Skip to content

Conversation

@brandonkachen
Copy link
Collaborator

No description provided.

@brandonkachen brandonkachen changed the title [codebuff-cli] chore(cli): scope env exports and drop theme poll override [codebuff-cli] feat: deploy new cli app Oct 19, 2025
@brandonkachen brandonkachen changed the title [codebuff-cli] feat: deploy new cli app [codecane] feat: deploy new cli app Oct 19, 2025
@brandonkachen brandonkachen reopened this Oct 19, 2025
@brandonkachen brandonkachen force-pushed the brandon/cli-env-filter branch from f630c52 to 1453f6d Compare October 19, 2025 04:57
brandonkachen and others added 23 commits October 20, 2025 22:07
…arding; align with production flow by introducing curated WELCOME_FLOW_TOPICS for onboarding and updating related UI logic to rely on new topic mappings.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
registry in the CLI staging workflow to ensure npm publish uses the
correct registry and credentials.

🤖 Generated with Codebuff Co-Authored-By: Codebuff
<noreply@codebuff.com>
…f-community. Use NEXT_PUBLIC_CODEBUFF_APP_URL to resolve /api/releases/download/{version}/{fileName}; fallback to codebuff.com/api/releases/download when not configured. Generated with Codebuff. Co-Authored-By: Codebuff <noreply@codebuff.com>
@codebuff-team
Copy link
Contributor

Bun v1.3.0 (b0a6feca) Linux x64 (baseline)
WSL Kernel v6.6.87 | glibc v2.39
CPU: sse42 popcnt avx avx2
Args: "/home/codebuff/.config/manicode/codecane"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) fetch jsc standalone_executable
Builtins: "bun:ffi" "bun:main" "node:buffer" "node:child_process" "node:console" "node:events" "node:fs" "node:module" "node:os" "node:path" "node:process" "node:stream" "node:url" "node:util" "ws"
Elapsed: 699ms | User: 575ms | Sys: 267ms
RSS: 1.09GB | Peak: 115.39MB | Commit: 1.09GB | Faults: 0 | Machine: 8.15GB

panic(main thread): Segmentation fault at address 0x72D5782A6248
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:

https://bun.report/1.3.0/B_1b0a6fecAz/7v//DkqqsvE+ypR__y9l7gEy9l7gE8m96gE___0rjzgEq0t4kF4m30uFi74i2F4wsvjE_y9l7gE0rjzgEq0t4kF63x5qFA2qt5Bwkxpl4D

@brandonkachen brandonkachen force-pushed the brandon/cli-env-filter branch from 981a01b to bdd404b Compare October 21, 2025 22:25
@codebuff-team
Copy link
Contributor

error: Cannot find package 'web-tree-sitter' from 'B:~BUN\root\codecane.exe'
69 | }
70 |
71 | if (initialPrompt) {
72 | render()
73 | } else {
74 | render()
^
TypeError: import_jsx_dev_runtime2.jsxDEV is not a function. (In 'import_jsx_dev_runtime2.jsxDEV(App, {
agentId: agent
}, undefined, false, undefined, this)', 'import_jsx_dev_runtime2.jsxDEV' is undefined)
at src\index.tsx:74:10

Bun v1.3.1-canary.106+7662de963 (Windows x64)

@codebuff-team
Copy link
Contributor

codebuff-team commented Oct 22, 2025

Bun v1.3.0 (b0a6feca) Windows x64 (baseline)
Windows v.win11_dt
CPU: sse42 avx avx2
Args: "C:\Users\team\Downloads\codecane-baseline.exe"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) fetch jsc standalone_executable
Builtins: "bun:ffi" "bun:main" "node:buffer" "node:child_process" "node:console" "node:events" "node:fs" "node:module" "node:os" "node:path" "node:process" "node:stream" "node:url" "node:util" "ws"
Elapsed: 851ms | User: 500ms | Sys: 140ms
RSS: 0.20GB | Peak: 0.20GB | Commit: 0.24GB | Faults: 49263 | Machine: 16.82GB

panic(main thread): Segmentation fault at address 0x1EB0ED61258
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:

https://bun.report/1.3.0/e_1b0a6fecAz/7v//DC8B.987ebf7fffebef6d-00000000.dllonyM_ipgkuB__qjyt1CA22ewlp46O

B:/~BUN/root/opentui-d94x8j91.dll

@brandonkachen brandonkachen force-pushed the brandon/cli-env-filter branch from b3280d9 to 783e239 Compare October 22, 2025 17:36
@brandonkachen brandonkachen force-pushed the brandon/cli-env-filter branch from 919a1f0 to d23e975 Compare October 22, 2025 20:58
Changes:
- SDK build:types now uses dts-bundle-generator to create bundled types
- Added pretypecheck hooks to npm-app and evals packages
- This ensures SDK types are properly bundled at dist/index.d.ts

Benefits:
- Single bundled type file instead of nested structure
- Works correctly with SDK's package.json types field
- Packages can resolve @codebuff/sdk types during typecheck
When the SDK is bundled and called from other packages during tests, the
ripgrep binary path resolution was failing because:
1. Caller's import.meta.url was passed to getBundledRgPath()
2. SDK tried to resolve vendor/ relative to the caller's location
3. This failed in workspace monorepo setups

Changes:
- SDK now uses its own import.meta.url as fallback when none provided
- Added distPath check for bundled SDK (dist/index.mjs → dist/vendor/)
- npm-app now calls getBundledRgPath() without passing import.meta.url
- Added pretest hook to build SDK before running npm-app tests

Fixes npm-app test failures where ripgrep binary couldn't be found.
Resolved conflicts in:
- cli/src/hooks/use-send-message.ts
- cli/src/state/chat-store.ts
The API endpoint changed from agent_run_id to run_id in origin/main.
Updated test expectations to match the new parameter names and error messages.

Changes:
- Updated request bodies: agent_run_id → run_id
- Updated error messages: agentRunId → runId
- Updated mock function parameter: agentRunId → runId
Test fixes to match updated API contracts and property names:

- code-map: queryText → queryPathOrContent
- billing: Updated mock implementations for async module loading
- openrouter-ai-sdk: Fixed streaming test mocks for ReadableStream handling

These test updates were previously in commit 119218a but were reverted.
Re-applying only the test fixes without other changes from that commit.
The Playwright test was causing errors when running bun test at the root level
since Playwright tests need to be run separately with playwright test command.
The --cwd flag requires '=' syntax when used with 'bun run' in bun 1.3.0.
Without it, bun displays help menu instead of executing the command, causing
SDK type generation to be skipped during CI typecheck.
The test jobs run individual test files with 'bun test <file>', which bypasses
the package.json pretest hook. This caused npm-app tests to fail with 'Cannot
find module @codebuff/sdk' because the SDK wasn't built.

Changes:
- Added 'Build SDK before tests' step in test job
- Added 'Build SDK before integration tests' step in test-integration job
- This ensures SDK dist artifacts (index.mjs, index.cjs, vendor/) exist
  before tests that depend on @codebuff/sdk are executed

Root cause: CI test command bypasses npm hooks by running test files directly.
@codebuff-team codebuff-team merged commit 64f4c35 into main Oct 22, 2025
24 checks passed
@codebuff-team codebuff-team deleted the brandon/cli-env-filter branch October 22, 2025 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants