fix: agent bin fields point to dist/cli.js instead of src/cli.ts #79

Merged
xiaomo merged 1 commits from fix/agent-bin-78 into main 2026-06-04 15:41:45 +00:00
Owner

What

修复三个 agent 包的 bin 字段,从 ./src/cli.ts 改为 ./dist/cli.js

Why

bun 时代遗留,node 无法直接执行 .ts 文件,导致 uwf thread execERR_MODULE_NOT_FOUND

Changes

  • packages/agent-builtin/package.json
  • packages/agent-hermes/package.json
  • packages/agent-claude-code/package.json

三行改动,bin 统一指向 ./dist/cli.js,与 cli 包对齐。

Ref

Closes #78

## What 修复三个 agent 包的 bin 字段,从 `./src/cli.ts` 改为 `./dist/cli.js`。 ## Why bun 时代遗留,node 无法直接执行 `.ts` 文件,导致 `uwf thread exec` 报 `ERR_MODULE_NOT_FOUND`。 ## Changes - `packages/agent-builtin/package.json` - `packages/agent-hermes/package.json` - `packages/agent-claude-code/package.json` 三行改动,bin 统一指向 `./dist/cli.js`,与 cli 包对齐。 ## Ref Closes #78
xiaoju added 1 commit 2026-06-04 15:25:53 +00:00
All three agent packages had bin pointing to ./src/cli.ts (bun-era
leftover). Node cannot execute .ts files directly, causing
ERR_MODULE_NOT_FOUND when spawning agents.

Closes #78
xiaomo approved these changes 2026-06-04 15:41:44 +00:00
xiaomo left a comment
Owner

LGTM

LGTM ✅
xiaomo merged commit 5fe97591de into main 2026-06-04 15:41:45 +00:00
xiaomo deleted branch fix/agent-bin-78 2026-06-04 15:41:46 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shazhou/united-workforce#79