@bastani/atomic 0.9.20-alpha.4 → 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 +60 -0
- package/README.md +37 -0
- package/dist/builtin/intercom/CHANGELOG.md +16 -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 +43 -12
- package/dist/builtin/intercom/types.ts +3 -1
- package/dist/builtin/mcp/package.json +2 -2
- package/dist/builtin/subagents/CHANGELOG.md +18 -0
- package/dist/builtin/subagents/README.md +2 -0
- package/dist/builtin/subagents/agents/code-simplifier.md +1 -1
- package/dist/builtin/subagents/agents/codebase-analyzer.md +1 -1
- package/dist/builtin/subagents/agents/codebase-online-researcher.md +3 -3
- package/dist/builtin/subagents/agents/debugger.md +7 -5
- package/dist/builtin/subagents/agents/worker.md +4 -2
- package/dist/builtin/subagents/package.json +3 -3
- package/dist/builtin/subagents/skills/agent-browser/SKILL.md +56 -0
- 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/subagents/skills/subagent/SKILL.md +32 -8
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +7 -4
- package/dist/builtin/web-access/package.json +2 -2
- package/dist/builtin/workflows/CHANGELOG.md +43 -0
- package/dist/builtin/workflows/README.md +4 -2
- package/dist/builtin/workflows/builtin/adversarial-verification.js +3 -3
- package/dist/builtin/workflows/builtin/{chunk-1dydq7w3.js → chunk-2hzrv5y8.js} +202 -45
- package/dist/builtin/workflows/builtin/{chunk-n4yxrsm9.js → chunk-3tx8ry44.js} +3 -2
- package/dist/builtin/workflows/builtin/{chunk-n8g2da69.js → chunk-5724b0cf.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-scgprmdj.js → chunk-7n51c5gh.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-9y0f90rd.js → chunk-9z3ztr2a.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-vt9zgr9d.js → chunk-deq63d9p.js} +4 -4
- package/dist/builtin/workflows/builtin/{chunk-k18g9me8.js → chunk-dxjxtgmp.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-kf5xpbkz.js → chunk-ffdrv23t.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-119kxb28.js → chunk-hmt5w62g.js} +72 -45
- package/dist/builtin/workflows/builtin/{chunk-hnbbb5r0.js → chunk-jngsbbpm.js} +4 -4
- package/dist/builtin/workflows/builtin/{chunk-d1xqh1rd.js → chunk-njmf5ze7.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-sn5mchnx.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.d.ts +1 -1
- 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.d.ts +1 -1
- 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/skills/impeccable/SKILL.md +18 -11
- package/dist/builtin/workflows/skills/impeccable/reference/adapt.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/adapt.native.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/animate.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/audit.md +5 -5
- package/dist/builtin/workflows/skills/impeccable/reference/audit.native.md +6 -6
- package/dist/builtin/workflows/skills/impeccable/reference/bolder.md +2 -2
- package/dist/builtin/workflows/skills/impeccable/reference/clarify.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/colorize.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/craft-floor.md +0 -6
- package/dist/builtin/workflows/skills/impeccable/reference/critique.md +19 -41
- package/dist/builtin/workflows/skills/impeccable/reference/degraded/asset-producer.md +11 -65
- package/dist/builtin/workflows/skills/impeccable/reference/degraded/documenter.md +3 -3
- package/dist/builtin/workflows/skills/impeccable/reference/degraded/finish-reviewer.md +4 -4
- package/dist/builtin/workflows/skills/impeccable/reference/degraded/manual-edit-applier.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/delight.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/distill.md +2 -2
- package/dist/builtin/workflows/skills/impeccable/reference/doctor.md +4 -4
- package/dist/builtin/workflows/skills/impeccable/reference/document.md +4 -4
- package/dist/builtin/workflows/skills/impeccable/reference/extract.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/harden.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/hooks.md +21 -21
- package/dist/builtin/workflows/skills/impeccable/reference/init.md +8 -8
- package/dist/builtin/workflows/skills/impeccable/reference/layout.md +2 -2
- package/dist/builtin/workflows/skills/impeccable/reference/live-setup.md +10 -8
- package/dist/builtin/workflows/skills/impeccable/reference/live.md +39 -38
- package/dist/builtin/workflows/skills/impeccable/reference/new-work.md +48 -21
- package/dist/builtin/workflows/skills/impeccable/reference/onboard.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/optimize.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/overdrive.md +1 -1
- package/dist/builtin/workflows/skills/impeccable/reference/polish.md +11 -3
- package/dist/builtin/workflows/skills/impeccable/reference/quieter.md +2 -2
- package/dist/builtin/workflows/skills/impeccable/reference/routing.md +13 -7
- package/dist/builtin/workflows/skills/impeccable/reference/typeset.md +2 -2
- package/dist/builtin/workflows/skills/impeccable/reference/visualize.md +13 -19
- package/dist/builtin/workflows/skills/impeccable/scripts/VERSION +1 -0
- package/dist/builtin/workflows/skills/impeccable/scripts/data/font-index-failures.json +121 -0
- package/dist/builtin/workflows/skills/impeccable/scripts/data/font-index.json +1 -0
- package/dist/builtin/workflows/skills/impeccable/scripts/impeccable +212 -0
- package/dist/builtin/workflows/skills/impeccable/scripts/impeccable.cmd +218 -0
- package/dist/builtin/workflows/skills/impeccable/scripts/live-browser-dom.js +21 -0
- package/dist/builtin/workflows/skills/impeccable/scripts/live-browser-ignores.js +242 -0
- package/dist/builtin/workflows/skills/impeccable/scripts/live-browser-session.js +25 -4
- package/dist/builtin/workflows/skills/impeccable/scripts/live-browser.js +666 -197
- package/dist/builtin/workflows/skills/research-codebase/SKILL.md +1 -1
- package/dist/builtin/workflows/src/extension/index.bundle.mjs +352 -117
- package/dist/builtin/workflows/src/index.js +1403 -1218
- 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 +3 -0
- package/dist/core/execution-model-router.d.ts.map +1 -1
- package/dist/core/execution-model-router.js +45 -16
- 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/model-routing-task.d.ts +1 -1
- package/dist/core/model-routing-task.d.ts.map +1 -1
- package/dist/core/model-routing-task.js +4 -3
- package/dist/core/model-routing-task.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.d.ts.map +1 -1
- package/dist/core/system-prompt.js +2 -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 +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- 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/chat-message-renderer.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-message-renderer.js +4 -0
- package/dist/modes/interactive/components/chat-message-renderer.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 +123 -73
- package/docs/extensions/events.md +75 -7
- package/docs/extensions.md +6 -2
- package/docs/getting-started/first-session.md +3 -2
- package/docs/getting-started/installation.md +6 -2
- package/docs/intercom/operations.md +13 -1
- package/docs/intercom.md +7 -2
- package/docs/models/evals.md +68 -82
- package/docs/models/model-selection.md +11 -7
- 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/quickstart.md +1 -1
- 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 +6 -6
- package/docs/subagents.md +8 -2
- package/docs/usage.md +2 -0
- package/docs/windows.md +1 -1
- package/docs/workflows/api-reference.md +5 -4
- package/docs/workflows/authoring.md +191 -0
- package/docs/workflows/builtins.md +2 -2
- package/docs/workflows/operations.md +10 -4
- package/docs/workflows/reliable-design.md +12 -1
- package/docs/workflows/verification.md +27 -14
- package/npm-shrinkwrap.json +69 -69
- package/package.json +8 -8
- package/dist/builtin/subagents/skills/playwright-cli/SKILL.md +0 -420
- package/dist/builtin/subagents/skills/playwright-cli/references/element-attributes.md +0 -23
- package/dist/builtin/subagents/skills/playwright-cli/references/playwright-tests.md +0 -39
- package/dist/builtin/subagents/skills/playwright-cli/references/request-mocking.md +0 -87
- package/dist/builtin/subagents/skills/playwright-cli/references/running-code.md +0 -241
- package/dist/builtin/subagents/skills/playwright-cli/references/session-management.md +0 -225
- package/dist/builtin/subagents/skills/playwright-cli/references/storage-state.md +0 -275
- package/dist/builtin/subagents/skills/playwright-cli/references/test-generation.md +0 -433
- package/dist/builtin/subagents/skills/playwright-cli/references/tracing.md +0 -139
- package/dist/builtin/subagents/skills/playwright-cli/references/video-recording.md +0 -143
- package/dist/builtin/workflows/skills/impeccable/agents/impeccable_asset_producer.toml +0 -94
- package/dist/builtin/workflows/skills/impeccable/agents/impeccable_documenter.toml +0 -27
- package/dist/builtin/workflows/skills/impeccable/agents/impeccable_finish_reviewer.toml +0 -41
- package/dist/builtin/workflows/skills/impeccable/agents/impeccable_manual_edit_applier.toml +0 -95
- package/dist/builtin/workflows/skills/impeccable/agents/openai.yaml +0 -4
- package/dist/builtin/workflows/skills/impeccable/scripts/concept-seed.mjs +0 -695
- package/dist/builtin/workflows/skills/impeccable/scripts/context-signals.mjs +0 -325
- package/dist/builtin/workflows/skills/impeccable/scripts/context.mjs +0 -1503
- package/dist/builtin/workflows/skills/impeccable/scripts/critique-storage.mjs +0 -222
- package/dist/builtin/workflows/skills/impeccable/scripts/detect-csp.mjs +0 -198
- package/dist/builtin/workflows/skills/impeccable/scripts/detect.mjs +0 -21
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/browser/injected/index.mjs +0 -2073
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/cli/main.mjs +0 -432
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/design-system.mjs +0 -1121
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/detect-antipatterns-browser.js +0 -8746
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/detect-antipatterns.mjs +0 -51
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/engines/browser/detect-url.mjs +0 -376
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs +0 -1168
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/engines/static-html/css-cascade.mjs +0 -1192
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/engines/static-html/detect-html.mjs +0 -290
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/engines/visual/screenshot-contrast.mjs +0 -189
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/findings.mjs +0 -18
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/node/file-system.mjs +0 -213
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/profile/profiler.mjs +0 -166
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/registry/antipatterns.mjs +0 -617
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/rules/checks.mjs +0 -5534
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/shared/color.mjs +0 -588
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/shared/constants.mjs +0 -112
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/shared/fonts.mjs +0 -30
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/shared/inline-ignores.mjs +0 -148
- package/dist/builtin/workflows/skills/impeccable/scripts/detector/shared/page.mjs +0 -35
- package/dist/builtin/workflows/skills/impeccable/scripts/doctor.mjs +0 -338
- package/dist/builtin/workflows/skills/impeccable/scripts/embed-prompt.mjs +0 -270
- package/dist/builtin/workflows/skills/impeccable/scripts/generate-image.mjs +0 -277
- package/dist/builtin/workflows/skills/impeccable/scripts/hook-admin.mjs +0 -783
- package/dist/builtin/workflows/skills/impeccable/scripts/hook-lib.mjs +0 -2305
- package/dist/builtin/workflows/skills/impeccable/scripts/hook.mjs +0 -78
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/artifact-schema.mjs +0 -93
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/composition-catalog.mjs +0 -200
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/concept-catalog.mjs +0 -395
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/design-parser.mjs +0 -925
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/impeccable-config.mjs +0 -640
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/impeccable-paths.mjs +0 -137
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/is-generated.mjs +0 -72
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/open-system-browser.mjs +0 -57
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/provider.mjs +0 -5
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/roll-selection.mjs +0 -369
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/staleness-deep.mjs +0 -483
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/staleness-notice.mjs +0 -169
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/staleness.mjs +0 -528
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/surface-briefs.mjs +0 -151
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/target-args.mjs +0 -42
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/target-slug.mjs +0 -33
- package/dist/builtin/workflows/skills/impeccable/scripts/lib/template-extensions.mjs +0 -146
- package/dist/builtin/workflows/skills/impeccable/scripts/live/accept-css.mjs +0 -617
- package/dist/builtin/workflows/skills/impeccable/scripts/live/accept-verify.mjs +0 -71
- package/dist/builtin/workflows/skills/impeccable/scripts/live/browser-script-parts.mjs +0 -77
- package/dist/builtin/workflows/skills/impeccable/scripts/live/completion.mjs +0 -28
- package/dist/builtin/workflows/skills/impeccable/scripts/live/event-validation.mjs +0 -199
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/astro.mjs +0 -47
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/detect-utils.mjs +0 -157
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/index.mjs +0 -143
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/journal.mjs +0 -205
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/nextjs.mjs +0 -49
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/nuxt.mjs +0 -170
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/script-src.mjs +0 -26
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/static-html.mjs +0 -26
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/sveltekit.mjs +0 -71
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/tag-strategy.mjs +0 -247
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/tanstack-start.mjs +0 -70
- package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/vite-generic.mjs +0 -42
- package/dist/builtin/workflows/skills/impeccable/scripts/live/generation-preflight.mjs +0 -149
- package/dist/builtin/workflows/skills/impeccable/scripts/live/insert-ui.mjs +0 -458
- package/dist/builtin/workflows/skills/impeccable/scripts/live/instructions.mjs +0 -169
- package/dist/builtin/workflows/skills/impeccable/scripts/live/manual-apply.mjs +0 -939
- package/dist/builtin/workflows/skills/impeccable/scripts/live/manual-edit-routes.mjs +0 -357
- package/dist/builtin/workflows/skills/impeccable/scripts/live/manual-edits-buffer.mjs +0 -152
- package/dist/builtin/workflows/skills/impeccable/scripts/live/poll-lanes.mjs +0 -14
- package/dist/builtin/workflows/skills/impeccable/scripts/live/roots.mjs +0 -670
- package/dist/builtin/workflows/skills/impeccable/scripts/live/session-store.mjs +0 -563
- package/dist/builtin/workflows/skills/impeccable/scripts/live/source-lock.mjs +0 -105
- package/dist/builtin/workflows/skills/impeccable/scripts/live/source-search.mjs +0 -105
- package/dist/builtin/workflows/skills/impeccable/scripts/live/svelte-ast.mjs +0 -969
- package/dist/builtin/workflows/skills/impeccable/scripts/live/svelte-component.mjs +0 -1401
- package/dist/builtin/workflows/skills/impeccable/scripts/live/sveltekit-adapter.mjs +0 -314
- package/dist/builtin/workflows/skills/impeccable/scripts/live/tanstack-adapter.mjs +0 -280
- package/dist/builtin/workflows/skills/impeccable/scripts/live/ui-surfaces.mjs +0 -75
- package/dist/builtin/workflows/skills/impeccable/scripts/live/vocabulary.mjs +0 -171
- package/dist/builtin/workflows/skills/impeccable/scripts/live-accept.mjs +0 -961
- package/dist/builtin/workflows/skills/impeccable/scripts/live-commit-manual-edits.mjs +0 -1244
- package/dist/builtin/workflows/skills/impeccable/scripts/live-complete.mjs +0 -107
- package/dist/builtin/workflows/skills/impeccable/scripts/live-copy-edit-agent.mjs +0 -800
- package/dist/builtin/workflows/skills/impeccable/scripts/live-discard-manual-edits.mjs +0 -51
- package/dist/builtin/workflows/skills/impeccable/scripts/live-inject.mjs +0 -515
- package/dist/builtin/workflows/skills/impeccable/scripts/live-insert.mjs +0 -292
- package/dist/builtin/workflows/skills/impeccable/scripts/live-manual-edit-evidence.mjs +0 -371
- package/dist/builtin/workflows/skills/impeccable/scripts/live-poll.mjs +0 -427
- package/dist/builtin/workflows/skills/impeccable/scripts/live-resume.mjs +0 -123
- package/dist/builtin/workflows/skills/impeccable/scripts/live-server.mjs +0 -1675
- package/dist/builtin/workflows/skills/impeccable/scripts/live-status.mjs +0 -71
- package/dist/builtin/workflows/skills/impeccable/scripts/live-target.mjs +0 -30
- package/dist/builtin/workflows/skills/impeccable/scripts/live-wrap.mjs +0 -927
- package/dist/builtin/workflows/skills/impeccable/scripts/live.mjs +0 -365
- package/dist/builtin/workflows/skills/impeccable/scripts/palette.mjs +0 -628
- package/dist/builtin/workflows/skills/impeccable/scripts/pin.mjs +0 -224
- package/dist/builtin/workflows/skills/impeccable/scripts/serve-question.mjs +0 -1540
- package/dist/builtin/workflows/skills/impeccable/scripts/surface-brief.mjs +0 -74
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
workflow,
|
|
3
3
|
withBuiltinContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5724b0cf.js";
|
|
5
5
|
import {
|
|
6
6
|
keepContext,
|
|
7
7
|
REVIEWER_CALIBRATION_RULES,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
EVIDENCE_CLOSURE_POLICY,
|
|
25
25
|
WORKTREE_DISCIPLINE_CONTRACT,
|
|
26
26
|
REVIEW_CODE_DELTA_CONTRACT
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-3tx8ry44.js";
|
|
28
28
|
import {
|
|
29
29
|
workflowArtifactDirectoryPath,
|
|
30
30
|
ensureWorkflowArtifactDirectory,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
reviewerFailureText,
|
|
37
37
|
summarizeReviewConvergence,
|
|
38
38
|
reverify_consolidated_batch
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-2hzrv5y8.js";
|
|
40
40
|
import {
|
|
41
41
|
VERIFICATION_SCALE
|
|
42
42
|
} from "./chunk-n1910xc4.js";
|
|
@@ -723,7 +723,7 @@ function renderGoalOrchestratorPrompt(args) {
|
|
|
723
723
|
["objective", [
|
|
724
724
|
`Read the goal ledger at ${args.ledgerPath} and latest review artifacts from the workflow read hint.`,
|
|
725
725
|
"Perform the initialization preflight, then delegate the smallest coherent work that satisfies the literal objective, acceptance criteria, current state, and consolidated findings.",
|
|
726
|
-
"Run or delegate repository-relevant validation, including end-to-end
|
|
726
|
+
"Run or delegate repository-relevant validation, including end-to-end agent-browser or tmux validation for executable user scenarios. Incorporate results and follow-ups through completion; report a true blocker and safest partial state without inventing success.",
|
|
727
727
|
GOAL_ORCHESTRATOR_BEST_PRACTICES
|
|
728
728
|
].join(`
|
|
729
729
|
`)]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
workflow,
|
|
3
3
|
withBuiltinContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5724b0cf.js";
|
|
5
5
|
|
|
6
6
|
// dist/builtin/workflows/builtin/open-claude-design.ts
|
|
7
7
|
import { Type as Type2 } from "typebox";
|
|
@@ -75,7 +75,7 @@ function prepareArtifactDir(cwd = process.cwd()) {
|
|
|
75
75
|
join(tmpArtifactBase(), runId),
|
|
76
76
|
join(tmpdir(), "open-claude-design", runId)
|
|
77
77
|
];
|
|
78
|
-
const candidates = [join(cwd, "specs", "design", runId), ...tmpCandidates];
|
|
78
|
+
const candidates = process.env.NODE_ENV === "test" ? tmpCandidates : [join(cwd, "specs", "design", runId), ...tmpCandidates];
|
|
79
79
|
for (const candidate of candidates) {
|
|
80
80
|
try {
|
|
81
81
|
mkdirSync(candidate, { recursive: true });
|
|
@@ -111,11 +111,11 @@ var ANTI_SLOP_RULES = [
|
|
|
111
111
|
].join(`
|
|
112
112
|
`);
|
|
113
113
|
var REFERENCE_PRECEDENCE = "User references in <reference_context> are the PRIMARY visual authority and override conflicting DESIGN.md/PRODUCT.md guidance. DESIGN.md governs uncovered design decisions; PRODUCT.md still governs strategic register/voice.";
|
|
114
|
-
function
|
|
114
|
+
function ensureAgentBrowser() {
|
|
115
115
|
const isWindows = process.platform === "win32";
|
|
116
116
|
const onPath = () => {
|
|
117
117
|
try {
|
|
118
|
-
const probe = spawnSync(isWindows ? "where" : "which", ["
|
|
118
|
+
const probe = spawnSync(isWindows ? "where" : "which", ["agent-browser"], {
|
|
119
119
|
stdio: "ignore",
|
|
120
120
|
timeout: 15000,
|
|
121
121
|
shell: isWindows,
|
|
@@ -131,31 +131,55 @@ function ensurePlaywrightCli() {
|
|
|
131
131
|
available: true,
|
|
132
132
|
alreadyPresent: true,
|
|
133
133
|
installed: false,
|
|
134
|
-
summary: "
|
|
134
|
+
summary: "agent-browser already on PATH; skipped install."
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
if (process.env.NODE_ENV === "test") {
|
|
138
|
+
return {
|
|
139
|
+
available: false,
|
|
140
|
+
alreadyPresent: false,
|
|
141
|
+
installed: false,
|
|
142
|
+
summary: "agent-browser not found; skipped global install under the test environment.",
|
|
143
|
+
error: "global install skipped during tests"
|
|
135
144
|
};
|
|
136
145
|
}
|
|
137
|
-
if (false) {}
|
|
138
146
|
try {
|
|
139
|
-
const install = spawnSync("npm", ["install", "-g", "
|
|
147
|
+
const install = spawnSync("npm", ["install", "-g", "agent-browser"], {
|
|
140
148
|
stdio: "ignore",
|
|
141
149
|
timeout: 180000,
|
|
142
150
|
shell: isWindows,
|
|
143
151
|
env: createChildProcessEnvironment()
|
|
144
152
|
});
|
|
145
|
-
if (install.status
|
|
153
|
+
if (install.status !== 0) {
|
|
154
|
+
const reason = install.error?.message ?? (typeof install.status === "number" ? `npm install -g agent-browser exited with code ${install.status}` : "npm install -g agent-browser did not complete");
|
|
155
|
+
return {
|
|
156
|
+
available: false,
|
|
157
|
+
alreadyPresent: false,
|
|
158
|
+
installed: false,
|
|
159
|
+
summary: `Could not install agent-browser (${reason}); stages will degrade gracefully.`,
|
|
160
|
+
error: reason
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
const browserInstall = spawnSync("agent-browser", ["install"], {
|
|
164
|
+
stdio: "ignore",
|
|
165
|
+
timeout: 300000,
|
|
166
|
+
shell: isWindows,
|
|
167
|
+
env: createChildProcessEnvironment()
|
|
168
|
+
});
|
|
169
|
+
if (browserInstall.status === 0) {
|
|
146
170
|
return {
|
|
147
171
|
available: true,
|
|
148
172
|
alreadyPresent: false,
|
|
149
173
|
installed: true,
|
|
150
|
-
summary: "Installed
|
|
174
|
+
summary: "Installed agent-browser via `npm install -g agent-browser` and downloaded its browser with `agent-browser install`."
|
|
151
175
|
};
|
|
152
176
|
}
|
|
153
|
-
const reason =
|
|
177
|
+
const reason = browserInstall.error?.message ?? (typeof browserInstall.status === "number" ? `agent-browser install exited with code ${browserInstall.status}` : "agent-browser install did not complete");
|
|
154
178
|
return {
|
|
155
179
|
available: false,
|
|
156
180
|
alreadyPresent: false,
|
|
157
181
|
installed: false,
|
|
158
|
-
summary: `
|
|
182
|
+
summary: `Installed the agent-browser CLI, but its browser runtime download failed (${reason}); stages must retry \`agent-browser install\` or degrade gracefully.`,
|
|
159
183
|
error: reason
|
|
160
184
|
};
|
|
161
185
|
} catch (error) {
|
|
@@ -164,25 +188,25 @@ function ensurePlaywrightCli() {
|
|
|
164
188
|
available: false,
|
|
165
189
|
alreadyPresent: false,
|
|
166
190
|
installed: false,
|
|
167
|
-
summary: `Could not install
|
|
191
|
+
summary: `Could not install agent-browser (${reason}); stages will degrade gracefully.`,
|
|
168
192
|
error: reason
|
|
169
193
|
};
|
|
170
194
|
}
|
|
171
195
|
}
|
|
172
|
-
function
|
|
173
|
-
const probeRule = status.available ? "The
|
|
196
|
+
function buildAgentBrowserBootstrapRules(status) {
|
|
197
|
+
const probeRule = status.available ? "The agent-browser skill's `agent-browser` command is on PATH. Do not reinstall the CLI unless a command reports it missing; then probe with `which agent-browser`, run `npm install -g agent-browser && agent-browser install` once, and retry. A CLI on PATH does not prove its browser runtime is present: if any command reports a missing browser executable, run `agent-browser install` once and retry. Do not add project dependencies." : `The agent-browser skill's \`agent-browser\` command failed setup: "${status.error ?? "unknown error"}". Probe with \`which agent-browser\` and retry once with \`npm install -g agent-browser && agent-browser install\`. For permission errors, use a user-writable global prefix; report missing npm/Node or network/registry errors plainly. If still unavailable, surface the manual file path / URL. Do not add project dependencies.`;
|
|
174
198
|
return [
|
|
175
199
|
probeRule,
|
|
176
|
-
"Use `
|
|
177
|
-
"If
|
|
178
|
-
"If `
|
|
200
|
+
"Use `agent-browser open <url>` to show a local preview; use `agent-browser snapshot` and `agent-browser screenshot <file>` for review evidence. Run `agent-browser skills get core` for the full workflow.",
|
|
201
|
+
"If an `agent-browser` command reports a missing browser executable, run `agent-browser install` once (on Linux, `agent-browser install --with-deps`) and retry.",
|
|
202
|
+
"If `agent-browser` is unavailable after three attempts or the browser runtime still fails, surface the manual file path / URL."
|
|
179
203
|
].join(`
|
|
180
204
|
`);
|
|
181
205
|
}
|
|
182
206
|
|
|
183
207
|
// dist/builtin/workflows/builtin/open-claude-design-live-protocol.ts
|
|
184
|
-
import { spawn } from "node:child_process";
|
|
185
208
|
import { fileURLToPath } from "node:url";
|
|
209
|
+
import { spawnProcess } from "@bastani/atomic";
|
|
186
210
|
var MODEL_EVENTS = new Set(["generate", "steer", "manual_edit_apply", "variant_mount_failed"]);
|
|
187
211
|
function needsModel(event) {
|
|
188
212
|
return MODEL_EVENTS.has(event.type);
|
|
@@ -216,12 +240,12 @@ function assertSuccessfulScript(result, operation) {
|
|
|
216
240
|
return result;
|
|
217
241
|
}
|
|
218
242
|
async function pollLiveEvent(input) {
|
|
219
|
-
const
|
|
220
|
-
const run = input.deps?.run ??
|
|
243
|
+
const launcher = liveLauncherPath();
|
|
244
|
+
const run = input.deps?.run ?? runLiveHelper;
|
|
221
245
|
for (;; ) {
|
|
222
246
|
if (input.signal?.aborted === true)
|
|
223
247
|
return { type: "exit", raw: "aborted" };
|
|
224
|
-
const result = assertSuccessfulScript(await run(
|
|
248
|
+
const result = assertSuccessfulScript(await run(launcher, [LIVE_POLL_VERB], input.workflowCwd, input.signal), "live poll");
|
|
225
249
|
const event = parseLiveEvent(result.stdout);
|
|
226
250
|
if (event.type !== "timeout")
|
|
227
251
|
return event;
|
|
@@ -239,7 +263,7 @@ async function replyLiveEvent(input) {
|
|
|
239
263
|
if (status.length === 0 || status.startsWith("--")) {
|
|
240
264
|
throw new Error(`Cannot reply to live event ${id}: reply status is missing`);
|
|
241
265
|
}
|
|
242
|
-
const args = ["--reply", id, status];
|
|
266
|
+
const args = [LIVE_POLL_VERB, "--reply", id, status];
|
|
243
267
|
const file = input.file ?? input.event.file;
|
|
244
268
|
const message = input.message ?? input.event.message;
|
|
245
269
|
const data = input.data ?? input.event.data;
|
|
@@ -249,19 +273,22 @@ async function replyLiveEvent(input) {
|
|
|
249
273
|
args.push("--data", JSON.stringify(data));
|
|
250
274
|
if (message !== undefined)
|
|
251
275
|
args.push(message);
|
|
252
|
-
const
|
|
253
|
-
const run = input.deps?.run ??
|
|
254
|
-
return assertSuccessfulScript(await run(
|
|
276
|
+
const launcher = liveLauncherPath();
|
|
277
|
+
const run = input.deps?.run ?? runLiveHelper;
|
|
278
|
+
return assertSuccessfulScript(await run(launcher, args, input.workflowCwd, input.signal), "live reply");
|
|
255
279
|
}
|
|
256
|
-
|
|
257
|
-
|
|
280
|
+
var LIVE_POLL_VERB = "live-poll";
|
|
281
|
+
function liveLauncherPath(platform = process.platform) {
|
|
282
|
+
const launcher = platform === "win32" ? "impeccable.cmd" : "impeccable";
|
|
283
|
+
return fileURLToPath(new URL(`../skills/impeccable/scripts/${launcher}`, import.meta.url));
|
|
258
284
|
}
|
|
259
|
-
function
|
|
285
|
+
function runLiveHelper(launcher, args, cwd, signal) {
|
|
260
286
|
return new Promise((resolve, reject) => {
|
|
261
|
-
const child =
|
|
287
|
+
const child = spawnProcess(launcher, [...args], {
|
|
262
288
|
cwd,
|
|
263
289
|
env: { ...process.env, GH_PAGER: "cat" },
|
|
264
|
-
stdio: ["ignore", "pipe", "pipe"]
|
|
290
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
291
|
+
windowsHide: true
|
|
265
292
|
});
|
|
266
293
|
let stdout = "";
|
|
267
294
|
let stderr = "";
|
|
@@ -368,7 +395,7 @@ function buildLiveSessionStartPrompt(input) {
|
|
|
368
395
|
`),
|
|
369
396
|
[
|
|
370
397
|
"<instructions>",
|
|
371
|
-
"1. Drive `/skill:impeccable live` against the static preview: run `live
|
|
398
|
+
"1. Drive `/skill:impeccable live` against the static preview: run the bundled launcher's `impeccable live` verb with `--target` pointed at the preview file, or the equivalent `.impeccable/live/config.json` entry, and open the URL that serves it.",
|
|
372
399
|
"2. Print the live `http://` review URL in plain text, plus the preview file URL as the manual fallback, so anyone attaching to this run can find the review.",
|
|
373
400
|
"3. Directly under the URL, print how the user ends the review, in plain text: click exit in the Impeccable overlay, close the browser tab, or say `exit live`. State that the review waits indefinitely until they do, and that ending it exports the design as it then stands, with no further round.",
|
|
374
401
|
"4. Do NOT start a poll loop. The workflow owns polling and will call you back for each event that needs you. Ending your turn does not end the review.",
|
|
@@ -486,14 +513,14 @@ function buildReferenceDiscoveryPrompt(args) {
|
|
|
486
513
|
[
|
|
487
514
|
"instructions",
|
|
488
515
|
[
|
|
489
|
-
"Use the
|
|
516
|
+
"Use the agent-browser skill to open each gallery; if `agent-browser` reports a missing browser executable, follow the bootstrap rules and retry once.",
|
|
490
517
|
"From each gallery, choose 1-3 fitting designs and CLICK INTO each actual live or project-detail page; do not capture only the grid or thumbnail.",
|
|
491
|
-
`Capture motion across the entire page: start \`
|
|
492
|
-
`Also run \`
|
|
518
|
+
`Capture motion across the entire page: start \`agent-browser record start ${join2(args.artifactDir, "ref-<site>-<n>.webm")}\`, scroll smoothly in small increments with waits (using repeated \`agent-browser scroll down 600\` or \`agent-browser mouse wheel 600\`) so animations fire and lazy content loads, then run \`agent-browser record stop\`.`,
|
|
519
|
+
`Also run \`agent-browser screenshot ${join2(args.artifactDir, "ref-<site>-<n>.png")} --full\`; this still is the minimum when video is unavailable.`,
|
|
493
520
|
"Record the actual destination URL, title, and author. For each reference, cite observed layout, typography, color, spacing, and motion traits rather than inferred traits.",
|
|
494
521
|
"Assess fit against DESIGN.md, PRODUCT.md, and the ds-* discovery evidence in the design-context file; prefer on-brand references and flag departures.",
|
|
495
522
|
"Use ask_user_question to ask which reference direction they prefer, offering 2-4 strongest options plus `None of these fit`. If none fit, ask them to provide a reference image, screenshot, URL, or local file path and record the answer.",
|
|
496
|
-
"If `
|
|
523
|
+
"If `agent-browser` is unavailable or automation is blocked, use web search / page fetch to reach actual pages and mark missing recordings or screenshots. Never fabricate references or visual claims; report galleries with no usable result."
|
|
497
524
|
].join(`
|
|
498
525
|
`)
|
|
499
526
|
],
|
|
@@ -708,7 +735,7 @@ async function exportOpenClaudeDesign(options) {
|
|
|
708
735
|
"In at most 600 words, return Markdown, not the HTML:",
|
|
709
736
|
"1. Spec written to (absolute path)",
|
|
710
737
|
"2. Sections included",
|
|
711
|
-
"3. How to open the spec (
|
|
738
|
+
"3. How to open the spec (agent-browser command + manual fallback path)",
|
|
712
739
|
"4. Recommended files and components",
|
|
713
740
|
"5. Implementation steps",
|
|
714
741
|
"6. Usage example",
|
|
@@ -733,12 +760,12 @@ async function exportOpenClaudeDesign(options) {
|
|
|
733
760
|
["role", "You are an opinionated staff design engineer."],
|
|
734
761
|
[
|
|
735
762
|
"objective",
|
|
736
|
-
"Show the exported spec with the
|
|
763
|
+
"Show the exported spec with the agent-browser skill's `agent-browser` command. Export is complete, so do not solicit changes; direct further changes to a new `/workflow open-claude-design` run and degrade gracefully when browser automation is unavailable."
|
|
737
764
|
],
|
|
738
765
|
[
|
|
739
766
|
"instructions",
|
|
740
767
|
[
|
|
741
|
-
`Use the bootstrap rules, run \`
|
|
768
|
+
`Use the bootstrap rules, run \`agent-browser open ${specFileUrl}\`, and if a browser executable is missing follow those rules and retry once before \`agent-browser snapshot\`.`,
|
|
742
769
|
"Do not run `show --annotate` or invite changes because the review session has ended.",
|
|
743
770
|
`Prominently print the manual paths:
|
|
744
771
|
- Final spec: ${specPath}
|
|
@@ -764,8 +791,8 @@ var GROUNDED_REPORTING3 = "Before reporting progress, audit each claim against a
|
|
|
764
791
|
var DELEGATION_RULE = "Delegate further only work genuinely independent and too large for a handful of tool calls; do not delegate self-verification, and prefer one subagent over several.";
|
|
765
792
|
async function runOpenClaudeDesignWorkflow(ctx) {
|
|
766
793
|
const designContext = ctx;
|
|
767
|
-
const
|
|
768
|
-
const browserBootstrapRules =
|
|
794
|
+
const agentBrowser = ensureAgentBrowser();
|
|
795
|
+
const browserBootstrapRules = buildAgentBrowserBootstrapRules(agentBrowser);
|
|
769
796
|
const inputs = designContext.inputs;
|
|
770
797
|
const prompt = inputs.prompt;
|
|
771
798
|
const discoverReferences = inputs.discover_references !== false;
|
|
@@ -774,7 +801,7 @@ async function runOpenClaudeDesignWorkflow(ctx) {
|
|
|
774
801
|
const previewFileUrl = `file://${previewPath}`;
|
|
775
802
|
const specFileUrl = `file://${specPath}`;
|
|
776
803
|
const partialArtifactOutputs = {
|
|
777
|
-
|
|
804
|
+
agent_browser_status: agentBrowser.summary,
|
|
778
805
|
run_id: runId,
|
|
779
806
|
artifact_dir: artifactDir,
|
|
780
807
|
preview_path: previewPath,
|
|
@@ -782,9 +809,9 @@ async function runOpenClaudeDesignWorkflow(ctx) {
|
|
|
782
809
|
spec_path: specPath,
|
|
783
810
|
spec_file_url: specFileUrl
|
|
784
811
|
};
|
|
785
|
-
if (shouldEarlyExitForBrowser(
|
|
812
|
+
if (shouldEarlyExitForBrowser(agentBrowser.available, process.env.NODE_ENV) && typeof designContext.exit === "function") {
|
|
786
813
|
designContext.exit({
|
|
787
|
-
reason: `open-claude-design needs the
|
|
814
|
+
reason: `open-claude-design needs the agent-browser skill's browser for interactive design review, which is unavailable (${agentBrowser.error ?? agentBrowser.summary}). No design was generated. Install it (\`npm install -g agent-browser\` + \`agent-browser install\`) and re-run.`,
|
|
788
815
|
outputs: partialArtifactOutputs
|
|
789
816
|
});
|
|
790
817
|
}
|
|
@@ -993,7 +1020,7 @@ async function runOpenClaudeDesignWorkflow(ctx) {
|
|
|
993
1020
|
preview_file_url: previewFileUrl,
|
|
994
1021
|
spec_path: specPath,
|
|
995
1022
|
spec_file_url: specFileUrl,
|
|
996
|
-
|
|
1023
|
+
agent_browser_status: agentBrowser.summary
|
|
997
1024
|
};
|
|
998
1025
|
}
|
|
999
1026
|
|
|
@@ -1023,7 +1050,7 @@ var open_claude_design_default = workflow({
|
|
|
1023
1050
|
preview_file_url: Type2.Optional(Type2.String({ description: "file:// URL for the generated preview.html file." })),
|
|
1024
1051
|
spec_path: Type2.Optional(Type2.String({ description: "Absolute path to the generated spec.html file." })),
|
|
1025
1052
|
spec_file_url: Type2.Optional(Type2.String({ description: "file:// URL for the generated spec.html file." })),
|
|
1026
|
-
|
|
1053
|
+
agent_browser_status: Type2.Optional(Type2.String({ description: "Outcome of the initial deterministic step that ensures the agent-browser skill's `agent-browser` command is installed." }))
|
|
1027
1054
|
},
|
|
1028
1055
|
run: async (ctx) => await runOpenClaudeDesignWorkflow(withBuiltinContext(ctx))
|
|
1029
1056
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
workflow,
|
|
3
3
|
withBuiltinContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5724b0cf.js";
|
|
5
5
|
import {
|
|
6
6
|
keepContext,
|
|
7
7
|
REVIEWER_CALIBRATION_RULES,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
EVIDENCE_CLOSURE_POLICY,
|
|
25
25
|
WORKTREE_DISCIPLINE_CONTRACT,
|
|
26
26
|
REVIEW_CODE_DELTA_CONTRACT
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-3tx8ry44.js";
|
|
28
28
|
import {
|
|
29
29
|
VERIFICATION_SCALE
|
|
30
30
|
} from "./chunk-n1910xc4.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
reviewerFailureText,
|
|
39
39
|
summarizeReviewConvergence,
|
|
40
40
|
reverify_consolidated_batch
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-2hzrv5y8.js";
|
|
42
42
|
import {
|
|
43
43
|
fold_usage
|
|
44
44
|
} from "./chunk-tgt0s5e5.js";
|
|
@@ -185,7 +185,7 @@ async function createQaEvidenceVideoPath(runId) {
|
|
|
185
185
|
function renderQaE2eVideoGuidance(qaVideoPath) {
|
|
186
186
|
return [
|
|
187
187
|
E2E_VERIFICATION_GUIDANCE,
|
|
188
|
-
`For a browser UI scenario, record the QA pass using
|
|
188
|
+
`For a browser UI scenario, record the QA pass using agent-browser record start ${qaVideoPath} after opening the browser, exercise the complete scenario, then agent-browser record stop. For terminal or desktop/simulator scenarios, use the domain-appropriate tool from the guidance above, not a browser substitute. Save compatible video to exactly ${qaVideoPath} when produced; do not rename an incompatible format to look like a video.`,
|
|
189
189
|
`Add a \`## QA E2E Video\` entry to implementation notes with ${qaVideoPath} only if produced, the verified commit and proven scenario. Otherwise record why video was unavailable or did not apply and reference actual alternate screenshots, pane output or executable proof. Never fabricate evidence.`,
|
|
190
190
|
"Follow the environment-aware setup policy above: install missing recording tools only when permitted, stop after a bounded failed attempt or known restriction, and record the limitation and available validation. Do not overwrite unrelated artifacts."
|
|
191
191
|
].join(`
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_ACTION_CATEGORIES2,
|
|
3
3
|
classify_and_act_default
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import"./chunk-
|
|
6
|
-
import"./chunk-
|
|
4
|
+
} from "./chunk-ffdrv23t.js";
|
|
5
|
+
import"./chunk-5724b0cf.js";
|
|
6
|
+
import"./chunk-3tx8ry44.js";
|
|
7
7
|
export {
|
|
8
8
|
DEFAULT_ACTION_CATEGORIES2 as DEFAULT_ACTION_CATEGORIES,
|
|
9
9
|
classify_and_act_default as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fan_out_and_synthesize_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import"./chunk-
|
|
5
|
-
import"./chunk-
|
|
3
|
+
} from "./chunk-7n51c5gh.js";
|
|
4
|
+
import"./chunk-5724b0cf.js";
|
|
5
|
+
import"./chunk-3tx8ry44.js";
|
|
6
6
|
export {
|
|
7
7
|
fan_out_and_synthesize_default as default
|
|
8
8
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generate_and_filter_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-njmf5ze7.js";
|
|
4
4
|
import"./chunk-2377r57g.js";
|
|
5
5
|
import"./chunk-n1910xc4.js";
|
|
6
|
-
import"./chunk-
|
|
7
|
-
import"./chunk-
|
|
6
|
+
import"./chunk-5724b0cf.js";
|
|
7
|
+
import"./chunk-3tx8ry44.js";
|
|
8
8
|
export {
|
|
9
9
|
generate_and_filter_default as default
|
|
10
10
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
goal_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import"./chunk-
|
|
3
|
+
} from "./chunk-deq63d9p.js";
|
|
4
|
+
import"./chunk-2hzrv5y8.js";
|
|
5
5
|
import"./chunk-2377r57g.js";
|
|
6
6
|
import"./chunk-z0d03ktm.js";
|
|
7
7
|
import"./chunk-n1910xc4.js";
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
8
|
+
import"./chunk-5724b0cf.js";
|
|
9
|
+
import"./chunk-3tx8ry44.js";
|
|
10
10
|
export {
|
|
11
11
|
goal_default as default
|
|
12
12
|
};
|
|
@@ -38,7 +38,7 @@ export type OpenClaudeDesignWorkflowOutputs = WorkflowOutputValues & {
|
|
|
38
38
|
readonly preview_file_url?: string;
|
|
39
39
|
readonly spec_path?: string;
|
|
40
40
|
readonly spec_file_url?: string;
|
|
41
|
-
readonly
|
|
41
|
+
readonly agent_browser_status?: string;
|
|
42
42
|
};
|
|
43
43
|
export type OpenClaudeDesignWorkflowDefinition = WorkflowDefinition<
|
|
44
44
|
OpenClaudeDesignWorkflowInputs,
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import"./chunk-
|
|
2
|
-
import"./chunk-
|
|
1
|
+
import"./chunk-5724b0cf.js";
|
|
2
|
+
import"./chunk-3tx8ry44.js";
|
|
3
3
|
import"./chunk-n1910xc4.js";
|
|
4
4
|
import"./chunk-2377r57g.js";
|
|
5
5
|
import {
|
|
6
6
|
adversarial_verification_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-dxjxtgmp.js";
|
|
8
8
|
import {
|
|
9
9
|
classify_and_act_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ffdrv23t.js";
|
|
11
11
|
import {
|
|
12
12
|
fan_out_and_synthesize_default
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7n51c5gh.js";
|
|
14
14
|
import {
|
|
15
15
|
generate_and_filter_default
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import"./chunk-
|
|
16
|
+
} from "./chunk-njmf5ze7.js";
|
|
17
|
+
import"./chunk-2hzrv5y8.js";
|
|
18
18
|
import"./chunk-z0d03ktm.js";
|
|
19
19
|
import {
|
|
20
20
|
goal_default
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-deq63d9p.js";
|
|
22
22
|
import {
|
|
23
23
|
open_claude_design_default
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-hmt5w62g.js";
|
|
25
25
|
import {
|
|
26
26
|
loop_until_done_default
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-vn0wb31x.js";
|
|
28
28
|
import {
|
|
29
29
|
ralph_default
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-jngsbbpm.js";
|
|
31
31
|
import {
|
|
32
32
|
tournament_default
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-9z3ztr2a.js";
|
|
34
34
|
export {
|
|
35
35
|
adversarial_verification_default as adversarialVerification,
|
|
36
36
|
classify_and_act_default as classifyAndAct,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loop_until_done_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-vn0wb31x.js";
|
|
4
4
|
import"./chunk-z0d03ktm.js";
|
|
5
5
|
import"./chunk-n1910xc4.js";
|
|
6
|
-
import"./chunk-
|
|
7
|
-
import"./chunk-
|
|
6
|
+
import"./chunk-5724b0cf.js";
|
|
7
|
+
import"./chunk-3tx8ry44.js";
|
|
8
8
|
export {
|
|
9
9
|
loop_until_done_default as default
|
|
10
10
|
};
|
|
@@ -23,7 +23,7 @@ export type OpenClaudeDesignWorkflowOutputs = WorkflowOutputValues & {
|
|
|
23
23
|
readonly preview_file_url?: string;
|
|
24
24
|
readonly spec_path?: string;
|
|
25
25
|
readonly spec_file_url?: string;
|
|
26
|
-
readonly
|
|
26
|
+
readonly agent_browser_status?: string;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export type OpenClaudeDesignWorkflowDefinition = WorkflowDefinition<
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
open_claude_design_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import"./chunk-
|
|
5
|
-
import"./chunk-
|
|
3
|
+
} from "./chunk-hmt5w62g.js";
|
|
4
|
+
import"./chunk-5724b0cf.js";
|
|
5
|
+
import"./chunk-3tx8ry44.js";
|
|
6
6
|
export {
|
|
7
7
|
open_claude_design_default as default
|
|
8
8
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ralph_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import"./chunk-
|
|
3
|
+
} from "./chunk-jngsbbpm.js";
|
|
4
|
+
import"./chunk-2hzrv5y8.js";
|
|
5
5
|
import"./chunk-2377r57g.js";
|
|
6
6
|
import"./chunk-z0d03ktm.js";
|
|
7
7
|
import"./chunk-n1910xc4.js";
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
8
|
+
import"./chunk-5724b0cf.js";
|
|
9
|
+
import"./chunk-3tx8ry44.js";
|
|
10
10
|
export {
|
|
11
11
|
ralph_default as default
|
|
12
12
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tournament_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-9z3ztr2a.js";
|
|
4
4
|
import"./chunk-2377r57g.js";
|
|
5
5
|
import"./chunk-n1910xc4.js";
|
|
6
|
-
import"./chunk-
|
|
7
|
-
import"./chunk-
|
|
6
|
+
import"./chunk-5724b0cf.js";
|
|
7
|
+
import"./chunk-3tx8ry44.js";
|
|
8
8
|
export {
|
|
9
9
|
tournament_default as default
|
|
10
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/workflows",
|
|
3
|
-
"version": "0.9.20-alpha.
|
|
3
|
+
"version": "0.9.20-alpha.6",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Atomic extension for multi-stage workflow authoring and execution.",
|
|
6
6
|
"contributors": [
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"@bastani/atomic": "*",
|
|
89
|
-
"@earendil-works/pi-tui": "^0.
|
|
89
|
+
"@earendil-works/pi-tui": "^0.87.0"
|
|
90
90
|
},
|
|
91
91
|
"peerDependenciesMeta": {
|
|
92
92
|
"@bastani/atomic": {
|