Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions .github/workflows/release-cua-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,37 @@ jobs:

- run: npm run build --workspace @onkernel/cua-ai
- run: npm run build --workspace @onkernel/cua-agent
- run: npm run typecheck --workspace @onkernel/cua-agent

- name: Unit tests
run: npm test --workspace @onkernel/cua-agent -- test/agent.test.ts test/tool-exhaustiveness.test.ts
run: npm test --workspace @onkernel/cua-agent -- --exclude "**/*.live.test.ts"

- name: Verify dependency package is published
run: npm view @onkernel/cua-ai@$(node -p 'require("./packages/agent/package.json").dependencies["@onkernel/cua-ai"]') version

- name: Pack dry run
run: npm pack --workspace @onkernel/cua-agent --dry-run
- name: Pack tarballs
run: |
mkdir -p /tmp/pack
npm pack --workspace @onkernel/cua-ai --pack-destination /tmp/pack
npm pack --workspace @onkernel/cua-agent --pack-destination /tmp/pack

- name: ESM import smoke test
run: |
SMOKE_DIR=$(mktemp -d)
cd "$SMOKE_DIR"
npm init -y > /dev/null
npm install /tmp/pack/*.tgz
cat > smoke.mjs <<'EOF'
import { CuaAgent, CuaAgentHarness, createCuaComputerTools, NodeExecutionEnv } from "@onkernel/cua-agent";

for (const [name, value] of Object.entries({ CuaAgent, CuaAgentHarness, createCuaComputerTools, NodeExecutionEnv })) {
if (typeof value !== "function") {
throw new Error(`expected ${name} to be a function, got ${typeof value}`);
}
}
console.log("ESM import smoke OK");
EOF
node smoke.mjs

- name: Publish to npm
run: npm publish --workspace @onkernel/cua-agent --access public
4 changes: 2 additions & 2 deletions docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ someone who wants to read the code, contribute, or fork.
- provider payload transforms and protocol quirks (for example, Yutori tool serialization policy)
- canonical CUA tool-definition exports
- `@onkernel/cua-agent` owns browser execution orchestration:
- `CuaAgent` / `CuaAgentHarness` class wiring around vendored pi agent core
- `CuaAgent` / `CuaAgentHarness` class wiring around `@earendil-works/pi-agent-core`
- executing canonical CUA tool calls against Kernel browsers
- typed executor coverage and translator integration

Expand All @@ -66,7 +66,7 @@ Dev/test:
└── @onkernel/ptywright (PTY-backed TUI regression harness)

External:
├── vendored pi agent core # Agent loop, tool execution, streaming, steering
├── @earendil-works/pi-agent-core # Agent loop, tool execution, streaming, steering
│ └── @earendil-works/pi-ai # Provider transport (OpenAI Responses, Anthropic Messages, Google GenAI)
├── @earendil-works/pi-coding-agent # bash / read / write / edit / grep / find / ls AgentTools + SessionManager + skills
├── @earendil-works/pi-tui # Terminal, Editor, Image, differential renderer
Expand Down
Loading
Loading