@bastani/atomic 0.9.20-alpha.5 → 0.9.20-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/README.md +37 -0
- package/dist/builtin/intercom/CHANGELOG.md +10 -0
- package/dist/builtin/intercom/broker/broker.ts +110 -39
- package/dist/builtin/intercom/broker/client.ts +8 -1
- package/dist/builtin/intercom/index.bundle.mjs +61 -2
- package/dist/builtin/intercom/live-route-refusal.ts +69 -0
- package/dist/builtin/intercom/package.json +2 -2
- package/dist/builtin/intercom/recoverable-disconnect.ts +16 -4
- package/dist/builtin/intercom/skills/intercom/SKILL.md +11 -11
- package/dist/builtin/intercom/types.ts +3 -1
- package/dist/builtin/mcp/package.json +2 -2
- package/dist/builtin/subagents/CHANGELOG.md +6 -0
- package/dist/builtin/subagents/package.json +3 -3
- package/dist/builtin/subagents/skills/cua-driver/BROWSER.md +494 -0
- package/dist/builtin/subagents/skills/cua-driver/EMBEDDING.md +578 -0
- package/dist/builtin/subagents/skills/cua-driver/LINUX.md +364 -0
- package/dist/builtin/subagents/skills/cua-driver/MACOS.md +509 -0
- package/dist/builtin/subagents/skills/cua-driver/README.md +113 -0
- package/dist/builtin/subagents/skills/cua-driver/RECORDING.md +162 -0
- package/dist/builtin/subagents/skills/cua-driver/SKILL.md +1105 -0
- package/dist/builtin/subagents/skills/cua-driver/WINDOWS.md +866 -0
- package/dist/builtin/web-access/package.json +2 -2
- package/dist/builtin/workflows/CHANGELOG.md +13 -0
- package/dist/builtin/workflows/builtin/adversarial-verification.js +3 -3
- package/dist/builtin/workflows/builtin/{chunk-7f381xnq.js → chunk-2hzrv5y8.js} +140 -21
- package/dist/builtin/workflows/builtin/{chunk-e83tc6nr.js → chunk-3tx8ry44.js} +3 -2
- package/dist/builtin/workflows/builtin/{chunk-00ywx588.js → chunk-5724b0cf.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-ne6vh5ct.js → chunk-7n51c5gh.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-x2nftpgj.js → chunk-9z3ztr2a.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-zj5162bh.js → chunk-deq63d9p.js} +3 -3
- package/dist/builtin/workflows/builtin/{chunk-7h7s5xdj.js → chunk-dxjxtgmp.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-tvcydq13.js → chunk-ffdrv23t.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-pfm1kgqz.js → chunk-hmt5w62g.js} +12 -4
- package/dist/builtin/workflows/builtin/{chunk-tdqvdrg1.js → chunk-jngsbbpm.js} +3 -3
- package/dist/builtin/workflows/builtin/{chunk-55p5dxjk.js → chunk-njmf5ze7.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-evfb0312.js → chunk-vn0wb31x.js} +1 -1
- package/dist/builtin/workflows/builtin/classify-and-act.js +3 -3
- package/dist/builtin/workflows/builtin/fan-out-and-synthesize.js +3 -3
- package/dist/builtin/workflows/builtin/generate-and-filter.js +3 -3
- package/dist/builtin/workflows/builtin/goal.js +4 -4
- package/dist/builtin/workflows/builtin/index.js +12 -12
- package/dist/builtin/workflows/builtin/loop-until-done.js +3 -3
- package/dist/builtin/workflows/builtin/open-claude-design.js +3 -3
- package/dist/builtin/workflows/builtin/ralph.js +4 -4
- package/dist/builtin/workflows/builtin/steering-context.js +1 -1
- package/dist/builtin/workflows/builtin/tournament.js +3 -3
- package/dist/builtin/workflows/package.json +2 -2
- package/dist/builtin/workflows/src/extension/index.bundle.mjs +199 -36
- package/dist/builtin/workflows/src/index.js +1418 -1271
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +15 -4
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/file-processor.d.ts +1 -1
- package/dist/cli/file-processor.d.ts.map +1 -1
- package/dist/cli/file-processor.js.map +1 -1
- package/dist/core/agent-session-auto-compaction.d.ts.map +1 -1
- package/dist/core/agent-session-auto-compaction.js +40 -12
- package/dist/core/agent-session-auto-compaction.js.map +1 -1
- package/dist/core/agent-session-bash.d.ts.map +1 -1
- package/dist/core/agent-session-bash.js +9 -8
- package/dist/core/agent-session-bash.js.map +1 -1
- package/dist/core/agent-session-boundaries.d.ts +68 -0
- package/dist/core/agent-session-boundaries.d.ts.map +1 -0
- package/dist/core/agent-session-boundaries.js +334 -0
- package/dist/core/agent-session-boundaries.js.map +1 -0
- package/dist/core/agent-session-compaction.js +1 -1
- package/dist/core/agent-session-compaction.js.map +1 -1
- package/dist/core/agent-session-events.d.ts.map +1 -1
- package/dist/core/agent-session-events.js +27 -13
- package/dist/core/agent-session-events.js.map +1 -1
- package/dist/core/agent-session-export.d.ts.map +1 -1
- package/dist/core/agent-session-export.js +16 -20
- package/dist/core/agent-session-export.js.map +1 -1
- package/dist/core/agent-session-message-queue.d.ts.map +1 -1
- package/dist/core/agent-session-message-queue.js +3 -2
- package/dist/core/agent-session-message-queue.js.map +1 -1
- package/dist/core/agent-session-methods.d.ts +30 -4
- package/dist/core/agent-session-methods.d.ts.map +1 -1
- package/dist/core/agent-session-methods.js.map +1 -1
- package/dist/core/agent-session-persistent-custom-messages.d.ts.map +1 -1
- package/dist/core/agent-session-persistent-custom-messages.js +2 -1
- package/dist/core/agent-session-persistent-custom-messages.js.map +1 -1
- package/dist/core/agent-session-prompt.d.ts.map +1 -1
- package/dist/core/agent-session-prompt.js +93 -25
- package/dist/core/agent-session-prompt.js.map +1 -1
- package/dist/core/agent-session-retry.d.ts.map +1 -1
- package/dist/core/agent-session-retry.js +4 -9
- package/dist/core/agent-session-retry.js.map +1 -1
- package/dist/core/agent-session-runtime.js +1 -1
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-tool-hooks.d.ts.map +1 -1
- package/dist/core/agent-session-tool-hooks.js +15 -5
- package/dist/core/agent-session-tool-hooks.js.map +1 -1
- package/dist/core/agent-session-tree.d.ts.map +1 -1
- package/dist/core/agent-session-tree.js +2 -3
- package/dist/core/agent-session-tree.js.map +1 -1
- package/dist/core/agent-session-types.d.ts +6 -0
- package/dist/core/agent-session-types.d.ts.map +1 -1
- package/dist/core/agent-session-types.js.map +1 -1
- package/dist/core/agent-session.d.ts +15 -2
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +17 -1
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/dist/core/compaction/branch-summarization.js +1 -0
- package/dist/core/compaction/branch-summarization.js.map +1 -1
- package/dist/core/compaction/compaction-boundary.d.ts.map +1 -1
- package/dist/core/compaction/compaction-boundary.js +11 -6
- package/dist/core/compaction/compaction-boundary.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +3 -1
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +37 -0
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/crash-log.d.ts +6 -0
- package/dist/core/crash-log.d.ts.map +1 -0
- package/dist/core/crash-log.js +69 -0
- package/dist/core/crash-log.js.map +1 -0
- package/dist/core/execution-model-router.d.ts +1 -0
- package/dist/core/execution-model-router.d.ts.map +1 -1
- package/dist/core/execution-model-router.js +15 -12
- package/dist/core/execution-model-router.js.map +1 -1
- package/dist/core/export-html/template-js/tree-filter-render.js +6 -1
- package/dist/core/export-html/template.js +6 -1
- package/dist/core/extensions/agent-events.d.ts +69 -3
- package/dist/core/extensions/agent-events.d.ts.map +1 -1
- package/dist/core/extensions/agent-events.js.map +1 -1
- package/dist/core/extensions/api-types.d.ts +5 -3
- package/dist/core/extensions/api-types.d.ts.map +1 -1
- package/dist/core/extensions/api-types.js.map +1 -1
- package/dist/core/extensions/event-results.d.ts +3 -0
- package/dist/core/extensions/event-results.d.ts.map +1 -1
- package/dist/core/extensions/event-results.js.map +1 -1
- package/dist/core/extensions/event-types.d.ts +2 -2
- package/dist/core/extensions/event-types.d.ts.map +1 -1
- package/dist/core/extensions/event-types.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/provider-types.d.ts +2 -0
- package/dist/core/extensions/provider-types.d.ts.map +1 -1
- package/dist/core/extensions/provider-types.js.map +1 -1
- package/dist/core/extensions/runner-events.d.ts +16 -2
- package/dist/core/extensions/runner-events.d.ts.map +1 -1
- package/dist/core/extensions/runner-events.js +98 -5
- package/dist/core/extensions/runner-events.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +3 -2
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +4 -1
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/messages.d.ts +10 -0
- package/dist/core/messages.d.ts.map +1 -1
- package/dist/core/messages.js +57 -0
- package/dist/core/messages.js.map +1 -1
- package/dist/core/model-config.d.ts +52 -0
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-config.js +16 -0
- package/dist/core/model-config.js.map +1 -1
- package/dist/core/model-resolver-defaults.d.ts.map +1 -1
- package/dist/core/model-resolver-defaults.js +2 -1
- package/dist/core/model-resolver-defaults.js.map +1 -1
- package/dist/core/prompt-templates-async.d.ts +2 -2
- package/dist/core/prompt-templates-async.d.ts.map +1 -1
- package/dist/core/prompt-templates-async.js +57 -29
- package/dist/core/prompt-templates-async.js.map +1 -1
- package/dist/core/prompt-templates.d.ts +6 -1
- package/dist/core/prompt-templates.d.ts.map +1 -1
- package/dist/core/prompt-templates.js +61 -35
- package/dist/core/prompt-templates.js.map +1 -1
- package/dist/core/provider-composer-internal.d.ts +1 -0
- package/dist/core/provider-composer-internal.d.ts.map +1 -1
- package/dist/core/provider-composer-internal.js +19 -0
- package/dist/core/provider-composer-internal.js.map +1 -1
- package/dist/core/resource-loader-assets.d.ts.map +1 -1
- package/dist/core/resource-loader-assets.js +6 -6
- package/dist/core/resource-loader-assets.js.map +1 -1
- package/dist/core/sdk.js +3 -2
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-manager-core.d.ts +10 -3
- package/dist/core/session-manager-core.d.ts.map +1 -1
- package/dist/core/session-manager-core.js +65 -7
- package/dist/core/session-manager-core.js.map +1 -1
- package/dist/core/session-manager-entries.d.ts +4 -1
- package/dist/core/session-manager-entries.d.ts.map +1 -1
- package/dist/core/session-manager-entries.js +8 -0
- package/dist/core/session-manager-entries.js.map +1 -1
- package/dist/core/session-manager-history.d.ts +16 -1
- package/dist/core/session-manager-history.d.ts.map +1 -1
- package/dist/core/session-manager-history.js +105 -42
- package/dist/core/session-manager-history.js.map +1 -1
- package/dist/core/session-manager-types.d.ts +30 -3
- package/dist/core/session-manager-types.d.ts.map +1 -1
- package/dist/core/session-manager-types.js.map +1 -1
- package/dist/core/session-manager.d.ts +2 -2
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +1 -1
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/structured-output/index.d.ts +0 -1
- package/dist/core/structured-output/index.d.ts.map +1 -1
- package/dist/core/structured-output/index.js +3 -15
- package/dist/core/structured-output/index.js.map +1 -1
- package/dist/core/structured-output/jev-client.d.ts +4 -8
- package/dist/core/structured-output/jev-client.d.ts.map +1 -1
- package/dist/core/structured-output/jev-client.js +36 -32
- package/dist/core/structured-output/jev-client.js.map +1 -1
- package/dist/core/structured-output/jev.d.ts.map +1 -1
- package/dist/core/structured-output/jev.js +4 -12
- package/dist/core/structured-output/jev.js.map +1 -1
- package/dist/core/structured-output/types.d.ts +0 -2
- package/dist/core/structured-output/types.d.ts.map +1 -1
- package/dist/core/structured-output/types.js.map +1 -1
- package/dist/core/system-prompt.js +1 -1
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/tools/read.d.ts +4 -0
- package/dist/core/tools/read.d.ts.map +1 -1
- package/dist/core/tools/read.js +5 -1
- package/dist/core/tools/read.js.map +1 -1
- package/dist/index-extensions.d.ts +1 -1
- package/dist/index-extensions.d.ts.map +1 -1
- package/dist/index-extensions.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/main-app-mode.d.ts +1 -1
- package/dist/main-app-mode.d.ts.map +1 -1
- package/dist/main-app-mode.js +3 -2
- package/dist/main-app-mode.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector-content.d.ts.map +1 -1
- package/dist/modes/interactive/components/tree-selector-content.js +6 -0
- package/dist/modes/interactive/components/tree-selector-content.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector-model.d.ts.map +1 -1
- package/dist/modes/interactive/components/tree-selector-model.js +1 -0
- package/dist/modes/interactive/components/tree-selector-model.js.map +1 -1
- package/dist/modes/interactive/interactive-agent-events.js +17 -1
- package/dist/modes/interactive/interactive-agent-events.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-helpers.d.ts +1 -0
- package/dist/modes/interactive/interactive-mode-helpers.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode-helpers.js +16 -0
- package/dist/modes/interactive/interactive-mode-helpers.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-surface.d.ts +1 -0
- package/dist/modes/interactive/interactive-mode-surface.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode-surface.js.map +1 -1
- package/dist/modes/interactive/interactive-process-lifecycle.js +13 -1
- package/dist/modes/interactive/interactive-process-lifecycle.js.map +1 -1
- package/dist/modes/interactive/interactive-session-runtime.js +5 -1
- package/dist/modes/interactive/interactive-session-runtime.js.map +1 -1
- package/dist/utils/mime.js +1 -1
- package/dist/utils/mime.js.map +1 -1
- package/dist/utils/tool-result-images.d.ts +3 -1
- package/dist/utils/tool-result-images.d.ts.map +1 -1
- package/dist/utils/tool-result-images.js +4 -1
- package/dist/utils/tool-result-images.js.map +1 -1
- package/docs/compaction.md +5 -1
- package/docs/computer-use.md +105 -56
- package/docs/extensions/events.md +75 -7
- package/docs/extensions.md +6 -2
- package/docs/getting-started/first-session.md +1 -0
- package/docs/intercom/operations.md +13 -1
- package/docs/intercom.md +1 -1
- package/docs/models/evals.md +68 -82
- package/docs/models/reference.md +30 -2
- package/docs/packages.md +2 -0
- package/docs/prompt-templates.md +1 -0
- package/docs/providers.md +8 -2
- package/docs/sdk/reference.md +1 -2
- package/docs/sdk/structured-decisions.md +10 -9
- package/docs/sdk.md +13 -2
- package/docs/session-format.md +17 -2
- package/docs/settings.md +1 -1
- package/docs/skills.md +3 -1
- package/docs/subagents/reference.md +4 -4
- package/docs/subagents.md +1 -1
- package/docs/workflows/api-reference.md +2 -0
- package/docs/workflows/authoring.md +191 -0
- package/docs/workflows/operations.md +9 -3
- package/docs/workflows/verification.md +21 -8
- package/npm-shrinkwrap.json +69 -69
- package/package.json +8 -8
|
@@ -511,6 +511,197 @@ After exit is selected, new tracked work and retained stage operations are refus
|
|
|
511
511
|
|
|
512
512
|
On resume of an unfinished tool, a successful exit cannot skip that tool. Restore its matching call before new tracked work; otherwise Atomic reports `insufficient_state: replay topology mismatch`. Intentional failed, blocked, cancelled, or skipped exits remain available.
|
|
513
513
|
|
|
514
|
+
<a id="desktop-verification-with-cua-driver-in-ctx-tool" />
|
|
515
|
+
|
|
516
|
+
### Desktop verification with Cua Driver in `ctx.tool`
|
|
517
|
+
|
|
518
|
+
When a model chooses each desktop action, an authored model stage loads the bundled `cua-driver` skill and runs one-shot `cua-driver call <tool>` commands; see [Computer use](/computer-use#desktop-automation-with-cua-driver) for the face rule, installation, telemetry, and readiness. When your workflow's TypeScript owns the sequence and the postcondition, run the scenario with the [`@trycua/cua-driver`](https://www.npmjs.com/package/@trycua/cua-driver) TypeScript SDK inside `ctx.tool(name, args, fn, { timeoutMs })` so the observe → act → re-observe → assert loop is a durable, replayable node rather than a transcript.
|
|
519
|
+
|
|
520
|
+
Prerequisites and setup, each as one bounded attempt:
|
|
521
|
+
|
|
522
|
+
- `node` (preferred) or `bun` on the host. If neither is present, install one in a bounded attempt (Node via [fnm](https://github.com/Schniz/fnm) with `fnm install --lts` or the host's package manager, Bun via `curl -fsSL https://bun.sh/install | bash`) and report what the installer did; if the install is refused or fails, report that as the limitation rather than retrying.
|
|
523
|
+
- The `cua-driver` executable (`cua-driver --version`), installed with upstream's one-line installer if missing, followed by `cua-driver telemetry disable` once.
|
|
524
|
+
- The SDK installed at the exact driver version into a scratch directory outside the user's repository, for example `npm install @trycua/cua-driver@0.28.2 --prefix ~/.cache/atomic-cua`. The package ships per-platform native optional dependencies. Daemon-backed clients verify contract, tool-schema, capability, and protocol versions before each action and refuse on mismatch, so the pin must match `cua-driver --version`.
|
|
525
|
+
|
|
526
|
+
The scenario itself is a small script in that scratch directory. It acquires the driver with `CuaDriver.connect()` when a daemon is running, so it reuses the daemon's permission identity (on macOS, `CuaDriver.app`'s Accessibility and Screen Recording grants) and the persisted telemetry-off preference; upstream describes `connect()` as a compatibility and app-hosting path, which is exactly the role it plays here. Only when no daemon is reachable does it fall back to `CuaDriver.create()`, which loads the runtime into the node process. On macOS that in-process fallback attributes permissions to the node host, normally the terminal app, as a **separate grant** from the app's; `checkPermissions` is then read-only, and the host must fully quit and relaunch after granting. Save it as `~/.cache/atomic-cua/verify-counter.mjs`:
|
|
527
|
+
|
|
528
|
+
```js
|
|
529
|
+
// Reads {"daemon":true|false,"artifactsDir":"..."} from argv[2]; prints one JSON result line.
|
|
530
|
+
// Replace the app name, window title, element labels, and postcondition with ones you control.
|
|
531
|
+
import { mkdirSync, writeFileSync } from "node:fs";
|
|
532
|
+
import { join } from "node:path";
|
|
533
|
+
import {
|
|
534
|
+
ActionTarget, ClickButton, ClickInput, ClickPosition, CuaDriver,
|
|
535
|
+
GetWindowStateInput, InputDeliveryMode, ListAppsInput, ListWindowsInput,
|
|
536
|
+
} from "@trycua/cua-driver";
|
|
537
|
+
|
|
538
|
+
const { daemon, artifactsDir } = JSON.parse(process.argv[2]);
|
|
539
|
+
mkdirSync(artifactsDir, { recursive: true });
|
|
540
|
+
const unique = (items, what) => {
|
|
541
|
+
if (items.length !== 1) throw new Error(`Expected one ${what}, found ${items.length}`);
|
|
542
|
+
return items[0];
|
|
543
|
+
};
|
|
544
|
+
const finish = (result, detail) => {
|
|
545
|
+
process.stdout.write(`${JSON.stringify({ result, detail })}\n`);
|
|
546
|
+
process.exitCode = result === "verified" ? 0 : 1;
|
|
547
|
+
};
|
|
548
|
+
|
|
549
|
+
// The wrapper already set CUA_DRIVER_RS_TELEMETRY_ENABLED=false in this process's environment
|
|
550
|
+
// before the driver was constructed; the SDK is one of the faces that reports telemetry by default.
|
|
551
|
+
const driver = daemon ? await CuaDriver.connect() : CuaDriver.create(undefined);
|
|
552
|
+
try {
|
|
553
|
+
const apps = await driver.listApps(ListAppsInput.new({}));
|
|
554
|
+
const app = unique(apps.apps.filter((a) => a.name === "Window Demo" && a.running), "app");
|
|
555
|
+
const windows = await driver.listWindows(ListWindowsInput.new({ pid: app.pid, onScreenOnly: true }));
|
|
556
|
+
const window = unique(windows.windows.filter((w) => w.title === "Counter"), "window");
|
|
557
|
+
const target = new ActionTarget.Window({ pid: app.pid, windowId: window.windowId });
|
|
558
|
+
const snapshot = async (label) => {
|
|
559
|
+
const state = await driver.getWindowState(
|
|
560
|
+
GetWindowStateInput.new({
|
|
561
|
+
pid: app.pid, windowId: window.windowId,
|
|
562
|
+
includeAccessibilityTree: true, includeScreenshot: true,
|
|
563
|
+
screenshotOutFile: join(artifactsDir, `${label}.png`),
|
|
564
|
+
}),
|
|
565
|
+
);
|
|
566
|
+
if (state.degraded || state.truncated) throw new Error(`${label} snapshot is degraded or truncated`);
|
|
567
|
+
// Keep the whole result (snapshot id, screenshot reference, degraded/truncated flags), not just
|
|
568
|
+
// the elements, so the retained tree is provably from a complete snapshot. Ids are bigint.
|
|
569
|
+
const json = JSON.stringify(state, (_key, value) => (typeof value === "bigint" ? value.toString() : value), 2);
|
|
570
|
+
writeFileSync(join(artifactsDir, `${label}.json`), json);
|
|
571
|
+
return state;
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
const before = await snapshot("before");
|
|
575
|
+
const button = unique((before.elements ?? []).filter((e) => e.label === "Increment"), "button");
|
|
576
|
+
const counter = unique((before.elements ?? []).filter((e) => e.label === "Count"), "counter");
|
|
577
|
+
if (!button.elementToken || counter.value === undefined) throw new Error("Snapshot lacks the button token or counter value");
|
|
578
|
+
|
|
579
|
+
let clicked = false;
|
|
580
|
+
try {
|
|
581
|
+
await driver.click(ClickInput.new({
|
|
582
|
+
target,
|
|
583
|
+
position: new ClickPosition.Element({ elementToken: button.elementToken }),
|
|
584
|
+
deliveryMode: InputDeliveryMode.Background,
|
|
585
|
+
button: ClickButton.Left, count: 1,
|
|
586
|
+
}));
|
|
587
|
+
clicked = true;
|
|
588
|
+
} catch (error) {
|
|
589
|
+
// A timeout or interrupted action before its response is "unknown": the postcondition below
|
|
590
|
+
// decides, and the click is never replayed.
|
|
591
|
+
if (!/timed out|ActionInterrupted/u.test(String(error))) throw error;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
// Bounded poll on fresh snapshots; never a fixed sleep, never a second click.
|
|
595
|
+
const deadline = Date.now() + 10_000;
|
|
596
|
+
let after = await snapshot("after");
|
|
597
|
+
let updated = unique((after.elements ?? []).filter((e) => e.label === "Count"), "counter");
|
|
598
|
+
while (updated.value === counter.value && Date.now() < deadline) {
|
|
599
|
+
await new Promise((resolve) => setTimeout(resolve, 250));
|
|
600
|
+
after = await snapshot("after");
|
|
601
|
+
updated = unique((after.elements ?? []).filter((e) => e.label === "Count"), "counter");
|
|
602
|
+
}
|
|
603
|
+
if (updated.value !== undefined && updated.value !== counter.value) {
|
|
604
|
+
finish("verified", `Count ${counter.value} -> ${updated.value}`);
|
|
605
|
+
} else {
|
|
606
|
+
finish(clicked ? "refuted" : "unknown", `Count stayed ${counter.value}`);
|
|
607
|
+
}
|
|
608
|
+
} catch (error) {
|
|
609
|
+
finish("unknown", String(error));
|
|
610
|
+
} finally {
|
|
611
|
+
try {
|
|
612
|
+
await driver.shutdown();
|
|
613
|
+
} finally {
|
|
614
|
+
if ("uniffiDestroy" in driver && typeof driver.uniffiDestroy === "function") driver.uniffiDestroy();
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
```
|
|
618
|
+
|
|
619
|
+
The workflow runs a readiness preflight as its own `ctx.tool` first, so a missing permission or session ends the run with `ctx.exit({ status: "blocked", reason })`. A blocked author exit is terminal and not resumable (see [Early exit with `ctx.exit()`](#early-exit-with-ctx-exit)), and the preflight's `{ ready: false }` result is a completed, cached checkpoint, so after the user grants the permission start a new run: its fresh preflight checks again instead of replaying the cached result. The scenario tool spawns `node` with `CUA_DRIVER_RS_TELEMETRY_ENABLED=false` in the child environment, forwards `signal` so a quit or targeted abort kills the child, and maps anything but `verified` to a nonzero outcome:
|
|
620
|
+
|
|
621
|
+
```ts
|
|
622
|
+
import { spawn } from "node:child_process";
|
|
623
|
+
import { homedir } from "node:os";
|
|
624
|
+
import { join } from "node:path";
|
|
625
|
+
import { Type, workflow } from "@bastani/workflows";
|
|
626
|
+
|
|
627
|
+
const sdkDir = join(homedir(), ".cache", "atomic-cua");
|
|
628
|
+
const cuaEnv = { ...process.env, CUA_DRIVER_RS_TELEMETRY_ENABLED: "false" };
|
|
629
|
+
|
|
630
|
+
function run(command: string, args: string[], signal: AbortSignal, cwd?: string) {
|
|
631
|
+
return new Promise<{ code: number | null; stdout: string; stderr: string }>((resolve) => {
|
|
632
|
+
const child = spawn(command, args, { cwd, env: cuaEnv, signal, stdio: ["ignore", "pipe", "pipe"] });
|
|
633
|
+
let stdout = "";
|
|
634
|
+
let stderr = "";
|
|
635
|
+
child.stdout.on("data", (chunk: Buffer) => { stdout += chunk.toString(); });
|
|
636
|
+
child.stderr.on("data", (chunk: Buffer) => { stderr += chunk.toString(); });
|
|
637
|
+
// A missing executable (ENOENT) or an abort arrives here rather than on "close"; treat it as a
|
|
638
|
+
// failed command so the preflight can return its remediation instead of throwing.
|
|
639
|
+
child.on("error", (error) => resolve({ code: null, stdout, stderr: `${stderr}${error.message}` }));
|
|
640
|
+
child.on("close", (code) => resolve({ code, stdout, stderr }));
|
|
641
|
+
});
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
export default workflow({
|
|
645
|
+
name: "verify-counter",
|
|
646
|
+
description: "Prove the Increment button changes the Count field in the Counter window.",
|
|
647
|
+
inputs: { artifactsDir: Type.String({ description: "Directory for before/after state JSON and screenshots" }) },
|
|
648
|
+
outputs: { result: Type.String(), detail: Type.String() },
|
|
649
|
+
run: async (ctx) => {
|
|
650
|
+
const preflight = await ctx.tool(
|
|
651
|
+
"cua-preflight",
|
|
652
|
+
{ platform: process.platform },
|
|
653
|
+
async ({ signal }) => {
|
|
654
|
+
const version = await run("cua-driver", ["--version"], signal);
|
|
655
|
+
if (version.code !== 0) {
|
|
656
|
+
return { ready: false, reason: "cua-driver is not installed; run /bin/bash -c \"$(curl -fsSL https://cua.ai/driver/install.sh)\" (Windows: irm https://cua.ai/driver/install.ps1 | iex), then cua-driver telemetry disable" };
|
|
657
|
+
}
|
|
658
|
+
const status = await run("cua-driver", ["status"], signal);
|
|
659
|
+
const daemon = status.code === 0;
|
|
660
|
+
if (process.platform === "darwin" && daemon) {
|
|
661
|
+
const permissions = await run("cua-driver", ["permissions", "status", "--json"], signal);
|
|
662
|
+
const grants = permissions.code === 0
|
|
663
|
+
? (JSON.parse(permissions.stdout) as { accessibility?: boolean; screen_recording?: boolean })
|
|
664
|
+
: {};
|
|
665
|
+
if (grants.accessibility !== true || grants.screen_recording !== true) {
|
|
666
|
+
return { ready: false, reason: "Missing macOS grant: run `cua-driver permissions grant`, toggle CuaDriver on under System Settings → Privacy & Security → Accessibility and Screen & System Audio Recording, then relaunch the daemon with `open -n -g -a CuaDriver --args serve`" };
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
const apps = await run("cua-driver", ["call", "list_apps"], signal);
|
|
670
|
+
if (apps.code !== 0) {
|
|
671
|
+
return { ready: false, reason: `cua-driver call list_apps failed; start the daemon (macOS: open -n -g -a CuaDriver --args serve; Windows: cua-driver serve in the interactive session; Linux: cua-driver serve inside the graphical session): ${apps.stderr.trim()}` };
|
|
672
|
+
}
|
|
673
|
+
return { ready: true, daemon };
|
|
674
|
+
},
|
|
675
|
+
{ timeoutMs: 60_000 },
|
|
676
|
+
);
|
|
677
|
+
if (!preflight.ready) {
|
|
678
|
+
return ctx.exit({ status: "blocked", reason: preflight.reason });
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
const scenario = await ctx.tool(
|
|
682
|
+
"verify-counter-scenario",
|
|
683
|
+
{ artifactsDir: ctx.inputs.artifactsDir, daemon: preflight.daemon },
|
|
684
|
+
async ({ signal }) => {
|
|
685
|
+
const args = JSON.stringify({ daemon: preflight.daemon, artifactsDir: ctx.inputs.artifactsDir });
|
|
686
|
+
const child = await run("node", ["verify-counter.mjs", args], signal, sdkDir);
|
|
687
|
+
const line = child.stdout.trim().split("\n").at(-1) ?? "";
|
|
688
|
+
const parsed = line.startsWith("{") ? (JSON.parse(line) as { result: string; detail: string }) : undefined;
|
|
689
|
+
const result = parsed?.result ?? "unknown";
|
|
690
|
+
if (result !== "verified") {
|
|
691
|
+
throw new Error(`desktop verification ${result}: ${parsed?.detail ?? child.stderr.trim()}`);
|
|
692
|
+
}
|
|
693
|
+
return { result, detail: parsed?.detail ?? "" };
|
|
694
|
+
},
|
|
695
|
+
{ timeoutMs: 5 * 60_000 },
|
|
696
|
+
);
|
|
697
|
+
|
|
698
|
+
return scenario;
|
|
699
|
+
},
|
|
700
|
+
});
|
|
701
|
+
```
|
|
702
|
+
|
|
703
|
+
A `verified` result is cached durably, so a resumed run does not click again. A thrown `refuted`, `blocked`, or `unknown` result fails the node and is not replayed from cache; a new run executes the preflight and the scenario again from a fresh snapshot, and a durable retry of a resumable failure replays the completed preflight checkpoint and re-runs only the scenario. Keep the artifacts directory outside the repository unless the evidence belongs in the deliverable, and never post the installation UUID from `cua-driver telemetry status` in a result or reason. Safety is the same on both faces: one controller per desktop, a dedicated session or account where practical, and an explicit stopping point before destructive or publishing actions.
|
|
704
|
+
|
|
514
705
|
### Workflow Composition
|
|
515
706
|
|
|
516
707
|
Use workflow composition when a workflow calls a reusable user-defined workflow from the project or package, or a bundled builtin workflow, and consumes its outputs as a tracked boundary stage. Import the child definition with a normal TypeScript import, then pass it directly to `ctx.workflow(workflowDefinition, options)`. `ctx.workflow(...)` does not accept registry names, path objects, or string aliases.
|
|
@@ -8,7 +8,7 @@ For stages authored with `model: "auto"`, Atomic ranks up to three distinct elig
|
|
|
8
8
|
|
|
9
9
|
Model selection uses the actual stage prompt, stage name, hard constraints, eligible model catalog, and compact dated evaluation records, not full human guides. Stage system and appended system prompts are not sent to the model router. Put requirements that should influence model selection in the stage prompt; the execution session still receives its configured system prompts.
|
|
10
10
|
|
|
11
|
-
Malformed or schema-invalid routing answers receive up to three corrective retries after the initial attempt, independently for Jev and any current-chat fallback
|
|
11
|
+
Malformed or schema-invalid routing answers receive up to three corrective retries after the initial attempt, independently for Jev and any current-chat fallback. Model selection has no built-in wall-clock deadline; cancellation and independent provider limits still apply. With an empty `routerModel`, oversized Jev context, exhausted Jev repairs or a Jev HTTP/connection error triggers a reported switch to the current chat model. Explicit router selections remain pinned. An empty eligible catalog, stale decisions, credential-bearing routing context and cancellation prevent stage execution without fallback. Choose router and chat providers permitted to receive the stage task and reference context.
|
|
12
12
|
|
|
13
13
|
Replay reuses recorded results without routing. Resume of a saved auto stage retains its verified selection and revalidates it against the current catalog and restrictions before fresh session admission, without a hidden new decision. If it is no longer eligible, resume fails rather than choosing another model. See [authoring automatic stages](/workflows/authoring#automatic-stage-model-selection).
|
|
14
14
|
|
|
@@ -195,7 +195,7 @@ Set `routerModel` in [settings.json](/settings#routermodel), not workflow extens
|
|
|
195
195
|
|
|
196
196
|
A nonempty exact concrete `provider/model` selection wins. Choose `openrouter/~typesafe/jev-latest` explicitly to use Jev with your existing OpenRouter login or `OPENROUTER_API_KEY`, without TypeSafe credentials. Otherwise configured direct Jev credentials, saved through `/login typesafe-ai` or supplied by `TYPESAFE_API_KEY`, select `typesafe-ai/jev-latest`; without direct Jev credentials, Atomic uses the current chat model at invocation time. `"auto"`, unknown explicit selections, and malformed settings fail rather than silently selecting another provider. This setting selects only routing inference: it does not change the chat model, workflow stage models, or the `structured_output` tool. Configured credentials do not prove service access.
|
|
197
197
|
|
|
198
|
-
The router has
|
|
198
|
+
The router has no separate wall-clock deadline. By default, each provider gets an initial attempt plus three corrective retries for malformed or schema-invalid answers. A valid decision stops repairs; a valid `none` is never rerouted. With an empty `routerModel`, oversized Jev context, a Jev HTTP or connection failure, or exhausted output repairs triggers a reported switch to the current chat model, which gets its own repair allowance. Explicit router selections remain pinned. Invalid inputs, cancellation and stale-catalog rejection do not trigger fallback. Neither repairs nor fallback can launch a duplicate workflow. The enclosing workflow-tool request still has its two-minute deadline, and provider limits remain unchanged.
|
|
199
199
|
|
|
200
200
|
Jev asks independent questions about workflow fit, authorization, lifecycle benefit, the user's stated execution preference and duration. Code composes the answers: an explicit user request to work inline yields `none`, an explicit request for a workflow bypasses the lifecycle-benefit gate, and otherwise the fit, authorization and benefit judgments decide. Preference is judged from the user's own words in `state`, never supplied by the calling assistant. Atomic preserves exact user budgets in code rather than asking Jev to choose numbers. Workflow contracts appear only with their candidate, not as a second complete catalog repeated in every batch.
|
|
201
201
|
|
|
@@ -572,7 +572,13 @@ Restart Atomic after upgrading to enable health supervision in a session whose d
|
|
|
572
572
|
|
|
573
573
|
Custom Windows launchers can still use executable names resolved through `PATH` or relative executable paths. `.cmd` and `.bat` launchers accept arguments on administrative accounts, including when the launcher path contains spaces. Explicit `cmd.exe` invocations retain their usual argument handling. Working directories with a `\\?\` prefix are supported when removing the prefix preserves the exact path; if `cmd.exe` reports an unsupported UNC working directory, use an ordinary local directory path. If startup reports that batch file arguments are invalid, remove carriage returns and line breaks from those arguments. If it reports that a string contains NUL characters, check the supplied paths, arguments, and environment entries. Remove the embedded NUL rather than retrying with a truncated value; no server is started for that request.
|
|
574
574
|
|
|
575
|
-
If embedded provisioning fails without leaving retained-process cleanup pending, Atomic tries DBOS's reusable `dbos-db` Docker container. If DBOS still cannot become ready, workflows **degrade to a process-local in-memory backend with a loud warning** instead of refusing to run: the run executes normally, but its state does not survive the process and `/workflow resume` after exit has nothing to restore. Fix the configured database or set `DBOS_SYSTEM_DATABASE_URL` to a working Postgres to restore durability.
|
|
575
|
+
If embedded provisioning fails without leaving retained-process cleanup pending, Atomic tries DBOS's reusable `dbos-db` Docker container. A published TCP port is not enough: Atomic waits until PostgreSQL on that container's selected endpoint answers a query before initializing DBOS. Transient startup resets and connection refusals are retried until that bounded wait expires. If DBOS still cannot become ready, workflows **degrade to a process-local in-memory backend with a loud warning** instead of refusing to run: the run executes normally, but its state does not survive the process and `/workflow resume` after exit has nothing to restore. Fix the configured database or set `DBOS_SYSTEM_DATABASE_URL` to a working Postgres to restore durability.
|
|
576
|
+
|
|
577
|
+
The Docker readiness query uses the same `PGHOST`, `PGPORT`, `PGUSER`, `PGPASSWORD`, and `PGSSLMODE` settings as DBOS. If startup reports an invalid `PGPORT`, supply an integer from 1 through 65535. Authentication, TLS, schema and statement-timeout failures are not retried as database startup delays; correct the reported configuration or database problem.
|
|
578
|
+
|
|
579
|
+
New Docker fallback containers publish PostgreSQL on `127.0.0.1` at `PGPORT`, or port 5432 when unset. Atomic does not change an existing container's port mapping. When reusing `dbos-db`, keep `PGPORT` consistent with its published port, or set `DBOS_SYSTEM_DATABASE_URL` to the intended database endpoint.
|
|
580
|
+
|
|
581
|
+
Fallback starts only after failed DBOS initialization has been cleaned up. If Atomic reports `Workflow backend cleanup failed`, workflow startup stops rather than starting another backend alongside an unconfirmed executor. Correct the reported shutdown problem and restart Atomic; do not delete database data to bypass it.
|
|
576
582
|
|
|
577
583
|
**Multiple concurrent Atomic sessions.** A workflow running in another process is not a resume target. Fresh-heartbeat rows are hidden from resume pickers and refused by direct resume. After a crash, the heartbeat becomes stale in about two minutes and inspection reports `crashed`. Concurrent attempts to resume the same run admit one executor; a stale request reports that the run changed.
|
|
578
584
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Verify the behavior that changed, then give the reviewer enough evidence to understand the result. A small fix may need a focused test and a short explanation. An interactive change usually needs a real user scenario as well. A video is useful when it shows something a test log or screenshot cannot; it is not required for every PR.
|
|
4
4
|
|
|
5
|
-
For tool installation, automation techniques, platform permissions, and general work in applications, read [Computer use](/computer-use). That guide covers Herdr for terminals, agent-browser for browsers, and
|
|
5
|
+
For tool installation, automation techniques, platform permissions, and general work in applications, read [Computer use](/computer-use). That guide covers Herdr for terminals, agent-browser for browsers, and Cua Driver for desktop, simulator, and emulator CUA on macOS, Linux, and Windows. It also covers native accessibility and application tools when they are easier or more reliable.
|
|
6
6
|
|
|
7
7
|
<a id="select-the-verification-environment" />
|
|
8
8
|
|
|
@@ -13,8 +13,8 @@ Start with the project's existing tests, build, typecheck, and lint commands. Ad
|
|
|
13
13
|
| Changed behavior | Preferred mechanism | What to check |
|
|
14
14
|
| --- | --- | --- |
|
|
15
15
|
| Interactive terminal or TUI | **Herdr**, under its explicit-request and managed-pane requirements; tmux or native Windows psmux as fallbacks | Actual input, rendered output, navigation, resizing, and exit behavior relevant to the change. |
|
|
16
|
-
| Browser/frontend | **agent-browser
|
|
17
|
-
|
|
|
16
|
+
| Browser/frontend, Electron desktop app, Slack, or cloud browser | **agent-browser**, for the scope its skill covers; Cua Driver when agent-browser hits a limitation | The user flow and its visible result, with DOM or network assertions where useful. |
|
|
17
|
+
| Native desktop app, iOS simulator, or Android emulator | **Cua Driver**: the `cua-driver` CLI through the bundled skill when a model chooses actions, or the `@trycua/cua-driver` SDK inside `ctx.tool` when workflow code owns the scenario; supplemented by native/app APIs | The exact window's before/after accessibility state and screenshots, a checked postcondition, and the saved or exported result. |
|
|
18
18
|
| API, library, script, or other non-UI behavior | Existing test runner and shell commands | Inputs, outputs, error handling, and relevant build/type contracts. |
|
|
19
19
|
| Documentation | Documentation checks and example review | Links, navigation, command accuracy, and whether a reader can follow the instructions. |
|
|
20
20
|
|
|
@@ -72,11 +72,15 @@ See [terminal setup and capture commands](/computer-use#terminal-automation-with
|
|
|
72
72
|
|
|
73
73
|
### Desktop, simulator, and emulator changes
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
Use Cua Driver in a dedicated graphical session, following [the desktop guide](/computer-use#desktop-automation-with-cua-driver). When a language model chooses each action, whether in an interactive session or in any workflow stage acting outside `ctx.tool`, load the bundled `cua-driver` skill and drive the exact window with one-shot `cua-driver call <tool>` commands, running every command with `CUA_DRIVER_RS_TELEMETRY_ENABLED=false`. When a custom workflow's TypeScript owns the scenario and its postcondition, run it with the `@trycua/cua-driver` SDK inside `ctx.tool` as shown in [workflow authoring](/workflows/authoring#desktop-verification-with-cua-driver-in-ctx-tool). Either way the loop is the same: snapshot the window with `get_window_state`, act through a snapshot-bound element token, take a fresh snapshot, and check a postcondition with a bounded poll deadline. Application APIs can still give the strongest assertion, for example checking a saved document through the app API after exercising the visible Save flow.
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
Evidence is the structured window state plus screenshots, not a screenshot alone. Save each `get_window_state` JSON result and its `screenshot_out_file` image (before and after the action) to the artifacts directory, and state the postcondition that was checked. A `degraded` or `truncated` snapshot is a failed observation, not a reason to act.
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
Capture the actual application or simulator. A browser recording is not desktop or iOS evidence. Cua Driver can interact with a visible simulator/emulator window, but does not directly control an arbitrary physical phone. Use supported native tooling where needed, and name the device or emulator actually exercised.
|
|
80
|
+
|
|
81
|
+
Missing readiness is a blocked finding, not a failure to work around. Before the first action the stage checks `cua-driver --version` (one bounded install attempt with upstream's one-line installer if it is missing, then `cua-driver telemetry disable`), `cua-driver status`, `cua-driver doctor`, and `cua-driver call list_apps`, plus `cua-driver permissions status` on macOS. A builtin Goal or Ralph stage reports a missing macOS Accessibility or Screen Recording grant, a non-interactive Windows session, no graphical Linux session, or a refused or failed install as `blocked`/`needs_human` with the exact remediation (for macOS: `cua-driver permissions grant`, toggle CuaDriver on under System Settings → Privacy & Security → Accessibility and Screen & System Audio Recording, then relaunch the daemon with `open -n -g -a CuaDriver --args serve`), and re-runs the readiness check when the run resumes. A custom workflow does the same from a preflight `ctx.tool` that calls `ctx.exit({ status: "blocked", reason })`. Unlike a builtin stage, a blocked author exit is terminal and not resumable: after the user grants the permission, start a new run, whose fresh preflight checks again rather than replaying a cached result.
|
|
82
|
+
|
|
83
|
+
Inspect saved files and exports rather than assuming a returned action means a completed operation. An action that times out before its response is `unknown`; resolve it with a fresh snapshot and the postcondition, never by replaying the action.
|
|
80
84
|
|
|
81
85
|
## Use evidence in a workflow
|
|
82
86
|
|
|
@@ -121,7 +125,7 @@ Give the reviewer a short summary before linking logs or media. For example, rep
|
|
|
121
125
|
- Limits: <checks/platforms not exercised>
|
|
122
126
|
```
|
|
123
127
|
|
|
124
|
-
Attach a screenshot for a visual state, a short recording for an interaction, or logs for command behavior. Include reproduction steps even when media is available. Label local-only paths as local; reviewers cannot open a file on your machine. CI artifact links are useful when readers have access, but note retention limits where relevant.
|
|
128
|
+
Attach a screenshot for a visual state, a short recording for an interaction, or logs for command behavior. When a run used Cua Driver, the evidence is the before/after `screenshot_out_file` PNGs from `get_window_state`, one pair per verified postcondition, with the window-state JSON kept locally and cited by name; when it used agent-browser, the evidence is its `screenshot` PNGs and `record` recordings. Put them in the PR body next to the scenario they prove. Include reproduction steps even when media is available. Label local-only paths as local; reviewers cannot open a file on your machine. CI artifact links are useful when readers have access, but note retention limits where relevant.
|
|
125
129
|
|
|
126
130
|
Only upload to an authorized repository or destination. Inspect and redact secrets, personal information, private source content, and unrelated windows before attaching files. Permission to collect local evidence is not permission to publish it.
|
|
127
131
|
|
|
@@ -129,7 +133,16 @@ Only upload to an authorized repository or destination. Inspect and redact secre
|
|
|
129
133
|
|
|
130
134
|
[GitHub CLI 2.99.0 and newer](https://github.blog/changelog/2026-09-01-github-cli-media-in-issues-pull-requests-and-comments/) supports repeatable `--attach` on issue and PR `create`, `edit`, and `comment` commands. Check `gh --version`, the specific command's `--help`, and the host's [attachment support and limits](https://docs.github.com/en/github-cli/github-cli/attaching-files-with-github-cli).
|
|
131
135
|
|
|
132
|
-
|
|
136
|
+
Attach evidence when the PR is created so the body carries it from the first review; replace the file paths:
|
|
137
|
+
|
|
138
|
+
```sh
|
|
139
|
+
gh pr create --title "Fix settings save" --body-file body.md \
|
|
140
|
+
--attach 'before.png#Settings panel before saving' \
|
|
141
|
+
--attach 'after.png#Settings panel after saving' \
|
|
142
|
+
--attach flow.webm
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
For evidence produced after the PR exists, use `gh pr edit` or an authorized PR comment the same way:
|
|
133
146
|
|
|
134
147
|
```sh
|
|
135
148
|
gh pr comment 123 --repo owner/repo --body-file evidence.md \
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/atomic",
|
|
3
|
-
"version": "0.9.20-alpha.
|
|
3
|
+
"version": "0.9.20-alpha.6",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@bastani/atomic",
|
|
9
|
-
"version": "0.9.20-alpha.
|
|
9
|
+
"version": "0.9.20-alpha.6",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@bastani/atomic-natives": "0.9.20-alpha.
|
|
13
|
-
"@bastani/pi-ai": "0.9.20-alpha.
|
|
12
|
+
"@bastani/atomic-natives": "0.9.20-alpha.6",
|
|
13
|
+
"@bastani/pi-ai": "0.9.20-alpha.6",
|
|
14
14
|
"@dbos-inc/dbos-sdk": "4.25.14",
|
|
15
|
-
"@earendil-works/pi-agent-core": "0.
|
|
16
|
-
"@earendil-works/pi-client": "0.
|
|
17
|
-
"@earendil-works/pi-protocol": "0.
|
|
18
|
-
"@earendil-works/pi-tui": "0.
|
|
15
|
+
"@earendil-works/pi-agent-core": "0.87.0",
|
|
16
|
+
"@earendil-works/pi-client": "0.87.0",
|
|
17
|
+
"@earendil-works/pi-protocol": "0.87.0",
|
|
18
|
+
"@earendil-works/pi-tui": "0.87.0",
|
|
19
19
|
"@modelcontextprotocol/ext-apps": "^1.7.5",
|
|
20
20
|
"@modelcontextprotocol/sdk": "1.30.0",
|
|
21
21
|
"@mozilla/readability": "^0.6.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"ignore": "7.0.8",
|
|
33
33
|
"jiti": "2.7.0",
|
|
34
34
|
"linkedom": "^0.18.13",
|
|
35
|
-
"lru-cache": "11.5.
|
|
35
|
+
"lru-cache": "11.5.3",
|
|
36
36
|
"markit-ai": "0.5.3",
|
|
37
37
|
"minimatch": "10.2.6",
|
|
38
38
|
"open": "^11.0.1",
|
|
@@ -429,18 +429,18 @@
|
|
|
429
429
|
}
|
|
430
430
|
},
|
|
431
431
|
"node_modules/@bastani/atomic-natives": {
|
|
432
|
-
"version": "0.9.20-alpha.
|
|
433
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.20-alpha.
|
|
432
|
+
"version": "0.9.20-alpha.6",
|
|
433
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.20-alpha.6.tgz",
|
|
434
434
|
"license": "MIT",
|
|
435
435
|
"optionalDependencies": {
|
|
436
|
-
"@bastani/atomic-natives-darwin-arm64": "0.9.20-alpha.
|
|
437
|
-
"@bastani/atomic-natives-darwin-x64": "0.9.20-alpha.
|
|
438
|
-
"@bastani/atomic-natives-linux-arm64-gnu": "0.9.20-alpha.
|
|
439
|
-
"@bastani/atomic-natives-linux-arm64-musl": "0.9.20-alpha.
|
|
440
|
-
"@bastani/atomic-natives-linux-x64-gnu": "0.9.20-alpha.
|
|
441
|
-
"@bastani/atomic-natives-linux-x64-musl": "0.9.20-alpha.
|
|
442
|
-
"@bastani/atomic-natives-win32-arm64-msvc": "0.9.20-alpha.
|
|
443
|
-
"@bastani/atomic-natives-win32-x64-msvc": "0.9.20-alpha.
|
|
436
|
+
"@bastani/atomic-natives-darwin-arm64": "0.9.20-alpha.6",
|
|
437
|
+
"@bastani/atomic-natives-darwin-x64": "0.9.20-alpha.6",
|
|
438
|
+
"@bastani/atomic-natives-linux-arm64-gnu": "0.9.20-alpha.6",
|
|
439
|
+
"@bastani/atomic-natives-linux-arm64-musl": "0.9.20-alpha.6",
|
|
440
|
+
"@bastani/atomic-natives-linux-x64-gnu": "0.9.20-alpha.6",
|
|
441
|
+
"@bastani/atomic-natives-linux-x64-musl": "0.9.20-alpha.6",
|
|
442
|
+
"@bastani/atomic-natives-win32-arm64-msvc": "0.9.20-alpha.6",
|
|
443
|
+
"@bastani/atomic-natives-win32-x64-msvc": "0.9.20-alpha.6"
|
|
444
444
|
},
|
|
445
445
|
"engines": {
|
|
446
446
|
"bun": ">=1.4.2",
|
|
@@ -448,8 +448,8 @@
|
|
|
448
448
|
}
|
|
449
449
|
},
|
|
450
450
|
"node_modules/@bastani/atomic-natives-darwin-arm64": {
|
|
451
|
-
"version": "0.9.20-alpha.
|
|
452
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.20-alpha.
|
|
451
|
+
"version": "0.9.20-alpha.6",
|
|
452
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.20-alpha.6.tgz",
|
|
453
453
|
"license": "MIT",
|
|
454
454
|
"os": [
|
|
455
455
|
"darwin"
|
|
@@ -460,8 +460,8 @@
|
|
|
460
460
|
"optional": true
|
|
461
461
|
},
|
|
462
462
|
"node_modules/@bastani/atomic-natives-darwin-x64": {
|
|
463
|
-
"version": "0.9.20-alpha.
|
|
464
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.20-alpha.
|
|
463
|
+
"version": "0.9.20-alpha.6",
|
|
464
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.20-alpha.6.tgz",
|
|
465
465
|
"license": "MIT",
|
|
466
466
|
"os": [
|
|
467
467
|
"darwin"
|
|
@@ -472,8 +472,8 @@
|
|
|
472
472
|
"optional": true
|
|
473
473
|
},
|
|
474
474
|
"node_modules/@bastani/atomic-natives-linux-arm64-gnu": {
|
|
475
|
-
"version": "0.9.20-alpha.
|
|
476
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.20-alpha.
|
|
475
|
+
"version": "0.9.20-alpha.6",
|
|
476
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.20-alpha.6.tgz",
|
|
477
477
|
"license": "MIT",
|
|
478
478
|
"os": [
|
|
479
479
|
"linux"
|
|
@@ -487,8 +487,8 @@
|
|
|
487
487
|
"optional": true
|
|
488
488
|
},
|
|
489
489
|
"node_modules/@bastani/atomic-natives-linux-arm64-musl": {
|
|
490
|
-
"version": "0.9.20-alpha.
|
|
491
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.20-alpha.
|
|
490
|
+
"version": "0.9.20-alpha.6",
|
|
491
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.20-alpha.6.tgz",
|
|
492
492
|
"license": "MIT",
|
|
493
493
|
"os": [
|
|
494
494
|
"linux"
|
|
@@ -502,8 +502,8 @@
|
|
|
502
502
|
"optional": true
|
|
503
503
|
},
|
|
504
504
|
"node_modules/@bastani/atomic-natives-linux-x64-gnu": {
|
|
505
|
-
"version": "0.9.20-alpha.
|
|
506
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.20-alpha.
|
|
505
|
+
"version": "0.9.20-alpha.6",
|
|
506
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.20-alpha.6.tgz",
|
|
507
507
|
"license": "MIT",
|
|
508
508
|
"os": [
|
|
509
509
|
"linux"
|
|
@@ -517,8 +517,8 @@
|
|
|
517
517
|
"optional": true
|
|
518
518
|
},
|
|
519
519
|
"node_modules/@bastani/atomic-natives-linux-x64-musl": {
|
|
520
|
-
"version": "0.9.20-alpha.
|
|
521
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.20-alpha.
|
|
520
|
+
"version": "0.9.20-alpha.6",
|
|
521
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.20-alpha.6.tgz",
|
|
522
522
|
"license": "MIT",
|
|
523
523
|
"os": [
|
|
524
524
|
"linux"
|
|
@@ -532,8 +532,8 @@
|
|
|
532
532
|
"optional": true
|
|
533
533
|
},
|
|
534
534
|
"node_modules/@bastani/atomic-natives-win32-arm64-msvc": {
|
|
535
|
-
"version": "0.9.20-alpha.
|
|
536
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.20-alpha.
|
|
535
|
+
"version": "0.9.20-alpha.6",
|
|
536
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.20-alpha.6.tgz",
|
|
537
537
|
"license": "MIT",
|
|
538
538
|
"os": [
|
|
539
539
|
"win32"
|
|
@@ -544,8 +544,8 @@
|
|
|
544
544
|
"optional": true
|
|
545
545
|
},
|
|
546
546
|
"node_modules/@bastani/atomic-natives-win32-x64-msvc": {
|
|
547
|
-
"version": "0.9.20-alpha.
|
|
548
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.20-alpha.
|
|
547
|
+
"version": "0.9.20-alpha.6",
|
|
548
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.20-alpha.6.tgz",
|
|
549
549
|
"license": "MIT",
|
|
550
550
|
"os": [
|
|
551
551
|
"win32"
|
|
@@ -556,13 +556,13 @@
|
|
|
556
556
|
"optional": true
|
|
557
557
|
},
|
|
558
558
|
"node_modules/@bastani/pi-ai": {
|
|
559
|
-
"version": "0.9.20-alpha.
|
|
560
|
-
"resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.20-alpha.
|
|
559
|
+
"version": "0.9.20-alpha.6",
|
|
560
|
+
"resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.20-alpha.6.tgz",
|
|
561
561
|
"license": "MIT",
|
|
562
562
|
"dependencies": {
|
|
563
563
|
"@anthropic-ai/sdk": "0.124.0",
|
|
564
564
|
"@aws-sdk/client-bedrock-runtime": "3.1127.0",
|
|
565
|
-
"@earendil-works/pi-telemetry": "0.
|
|
565
|
+
"@earendil-works/pi-telemetry": "0.87.0",
|
|
566
566
|
"@google/genai": "2.21.0",
|
|
567
567
|
"@smithy/node-http-handler": "4.12.1",
|
|
568
568
|
"http-proxy-agent": "9.1.0",
|
|
@@ -663,9 +663,9 @@
|
|
|
663
663
|
}
|
|
664
664
|
},
|
|
665
665
|
"node_modules/@earendil-works/chord": {
|
|
666
|
-
"version": "0.
|
|
667
|
-
"resolved": "https://registry.npmjs.org/@earendil-works/chord/-/chord-0.
|
|
668
|
-
"integrity": "sha512-
|
|
666
|
+
"version": "0.87.0",
|
|
667
|
+
"resolved": "https://registry.npmjs.org/@earendil-works/chord/-/chord-0.87.0.tgz",
|
|
668
|
+
"integrity": "sha512-t8QOTf0GTHrsDSfcdtXuA9RCkh6mnR4l25N0SM/sgH7Ih25jH4tGXNbkGs9MWpV5xTu9MRPj4A7Zn1UEwQm9+g==",
|
|
669
669
|
"license": "MIT",
|
|
670
670
|
"dependencies": {
|
|
671
671
|
"esbuild": "0.28.2"
|
|
@@ -675,14 +675,14 @@
|
|
|
675
675
|
}
|
|
676
676
|
},
|
|
677
677
|
"node_modules/@earendil-works/pi-agent-core": {
|
|
678
|
-
"version": "0.
|
|
679
|
-
"resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-0.
|
|
680
|
-
"integrity": "sha512-
|
|
678
|
+
"version": "0.87.0",
|
|
679
|
+
"resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-0.87.0.tgz",
|
|
680
|
+
"integrity": "sha512-c5b2FMdJ7C++HBa6AyBmusdf96gdgRqpF7J+UCq2yVGB28UETJvJ190HkgDWUaLPnOQQPbanjKMAm/TgRmFE2w==",
|
|
681
681
|
"license": "MIT",
|
|
682
682
|
"dependencies": {
|
|
683
|
-
"@earendil-works/chord": "^0.
|
|
684
|
-
"@earendil-works/pi-ai": "^0.
|
|
685
|
-
"@earendil-works/pi-telemetry": "^0.
|
|
683
|
+
"@earendil-works/chord": "^0.87.0",
|
|
684
|
+
"@earendil-works/pi-ai": "^0.87.0",
|
|
685
|
+
"@earendil-works/pi-telemetry": "^0.87.0",
|
|
686
686
|
"diff": "8.0.4",
|
|
687
687
|
"ignore": "7.0.8",
|
|
688
688
|
"typebox": "1.3.27",
|
|
@@ -693,14 +693,14 @@
|
|
|
693
693
|
}
|
|
694
694
|
},
|
|
695
695
|
"node_modules/@earendil-works/pi-ai": {
|
|
696
|
-
"version": "0.
|
|
697
|
-
"resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-0.
|
|
698
|
-
"integrity": "sha512-
|
|
696
|
+
"version": "0.87.0",
|
|
697
|
+
"resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-0.87.0.tgz",
|
|
698
|
+
"integrity": "sha512-lbRm+EMY6Jx3l+HLpbqbm9Yrhkc5u7EffLk2id+zJQEoBuR5I+tijGiZU8zlnuuCclmQOgH0PVjL9PLbeqJ9MQ==",
|
|
699
699
|
"license": "MIT",
|
|
700
700
|
"dependencies": {
|
|
701
701
|
"@anthropic-ai/sdk": "0.124.0",
|
|
702
702
|
"@aws-sdk/client-bedrock-runtime": "3.1127.0",
|
|
703
|
-
"@earendil-works/pi-telemetry": "^0.
|
|
703
|
+
"@earendil-works/pi-telemetry": "^0.87.0",
|
|
704
704
|
"@google/genai": "2.21.0",
|
|
705
705
|
"@smithy/node-http-handler": "4.12.1",
|
|
706
706
|
"http-proxy-agent": "9.1.0",
|
|
@@ -740,25 +740,25 @@
|
|
|
740
740
|
}
|
|
741
741
|
},
|
|
742
742
|
"node_modules/@earendil-works/pi-client": {
|
|
743
|
-
"version": "0.
|
|
744
|
-
"resolved": "https://registry.npmjs.org/@earendil-works/pi-client/-/pi-client-0.
|
|
745
|
-
"integrity": "sha512-
|
|
743
|
+
"version": "0.87.0",
|
|
744
|
+
"resolved": "https://registry.npmjs.org/@earendil-works/pi-client/-/pi-client-0.87.0.tgz",
|
|
745
|
+
"integrity": "sha512-SzlKFULcz3VchpfVizd9fTxaFHxhIe/Dpn9CDHthqRzUx6Sym2tWwlveqdjD4V81yid+r7VEziZuHYYqNt4+kA==",
|
|
746
746
|
"license": "MIT",
|
|
747
747
|
"dependencies": {
|
|
748
|
-
"@earendil-works/chord": "^0.
|
|
749
|
-
"@earendil-works/pi-protocol": "^0.
|
|
748
|
+
"@earendil-works/chord": "^0.87.0",
|
|
749
|
+
"@earendil-works/pi-protocol": "^0.87.0"
|
|
750
750
|
},
|
|
751
751
|
"engines": {
|
|
752
752
|
"node": ">=22.19.0"
|
|
753
753
|
}
|
|
754
754
|
},
|
|
755
755
|
"node_modules/@earendil-works/pi-protocol": {
|
|
756
|
-
"version": "0.
|
|
757
|
-
"resolved": "https://registry.npmjs.org/@earendil-works/pi-protocol/-/pi-protocol-0.
|
|
758
|
-
"integrity": "sha512-
|
|
756
|
+
"version": "0.87.0",
|
|
757
|
+
"resolved": "https://registry.npmjs.org/@earendil-works/pi-protocol/-/pi-protocol-0.87.0.tgz",
|
|
758
|
+
"integrity": "sha512-H6tL0BGj5RbvwPQq7YnaGSudASvmPbHBP3FVqeIIJa91hURB6DdKCmITQkJwQz8nR/bc4B/r2tZXgzlVTBYOrQ==",
|
|
759
759
|
"license": "MIT",
|
|
760
760
|
"dependencies": {
|
|
761
|
-
"@earendil-works/chord": "^0.
|
|
761
|
+
"@earendil-works/chord": "^0.87.0",
|
|
762
762
|
"typebox": "1.3.27"
|
|
763
763
|
},
|
|
764
764
|
"engines": {
|
|
@@ -766,18 +766,18 @@
|
|
|
766
766
|
}
|
|
767
767
|
},
|
|
768
768
|
"node_modules/@earendil-works/pi-telemetry": {
|
|
769
|
-
"version": "0.
|
|
770
|
-
"resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-0.
|
|
771
|
-
"integrity": "sha512-
|
|
769
|
+
"version": "0.87.0",
|
|
770
|
+
"resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-0.87.0.tgz",
|
|
771
|
+
"integrity": "sha512-IEUMnV6mgHyOMfAxa4CKXoBKKfHM8KxNjbXWM4Bps/iLJcFMf8hQsEZ+95VnVTc7C0cU77Rmdxt773C35jb5AA==",
|
|
772
772
|
"license": "MIT",
|
|
773
773
|
"engines": {
|
|
774
774
|
"node": ">=22.19.0"
|
|
775
775
|
}
|
|
776
776
|
},
|
|
777
777
|
"node_modules/@earendil-works/pi-tui": {
|
|
778
|
-
"version": "0.
|
|
779
|
-
"resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-0.
|
|
780
|
-
"integrity": "sha512-
|
|
778
|
+
"version": "0.87.0",
|
|
779
|
+
"resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-0.87.0.tgz",
|
|
780
|
+
"integrity": "sha512-7gTC0XOgQfVWg4yGxwHINBpCnGl9p4KEC7PXIc8gAwc/cyxSW4VuFQrp+r1YD3oM+rBkoepKwAt6w6+VJ7BCaw==",
|
|
781
781
|
"license": "MIT",
|
|
782
782
|
"dependencies": {
|
|
783
783
|
"get-east-asian-width": "1.6.0",
|
|
@@ -3547,9 +3547,9 @@
|
|
|
3547
3547
|
}
|
|
3548
3548
|
},
|
|
3549
3549
|
"node_modules/lru-cache": {
|
|
3550
|
-
"version": "11.5.
|
|
3551
|
-
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.
|
|
3552
|
-
"integrity": "sha512-
|
|
3550
|
+
"version": "11.5.3",
|
|
3551
|
+
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz",
|
|
3552
|
+
"integrity": "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==",
|
|
3553
3553
|
"license": "BlueOak-1.0.0",
|
|
3554
3554
|
"engines": {
|
|
3555
3555
|
"node": "20 || >=22"
|