@bastani/atomic 0.9.20-alpha.4 → 0.9.20-alpha.5
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 +19 -0
- package/dist/builtin/intercom/CHANGELOG.md +6 -0
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/intercom/skills/intercom/SKILL.md +32 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +12 -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 +1 -1
- package/dist/builtin/subagents/skills/agent-browser/SKILL.md +56 -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 +1 -1
- package/dist/builtin/workflows/CHANGELOG.md +30 -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-n8g2da69.js → chunk-00ywx588.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-d1xqh1rd.js → chunk-55p5dxjk.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-1dydq7w3.js → chunk-7f381xnq.js} +62 -24
- package/dist/builtin/workflows/builtin/{chunk-k18g9me8.js → chunk-7h7s5xdj.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-n4yxrsm9.js → chunk-e83tc6nr.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-sn5mchnx.js → chunk-evfb0312.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-scgprmdj.js → chunk-ne6vh5ct.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-119kxb28.js → chunk-pfm1kgqz.js} +62 -43
- package/dist/builtin/workflows/builtin/{chunk-hnbbb5r0.js → chunk-tdqvdrg1.js} +4 -4
- package/dist/builtin/workflows/builtin/{chunk-kf5xpbkz.js → chunk-tvcydq13.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-9y0f90rd.js → chunk-x2nftpgj.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-vt9zgr9d.js → chunk-zj5162bh.js} +4 -4
- 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 +1 -1
- 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 +156 -84
- package/dist/builtin/workflows/src/index.js +62 -24
- package/dist/core/execution-model-router.d.ts +2 -0
- package/dist/core/execution-model-router.d.ts.map +1 -1
- package/dist/core/execution-model-router.js +30 -4
- package/dist/core/execution-model-router.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/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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.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/docs/computer-use.md +22 -21
- package/docs/getting-started/first-session.md +2 -2
- package/docs/getting-started/installation.md +6 -2
- package/docs/intercom.md +6 -1
- package/docs/models/model-selection.md +11 -7
- package/docs/quickstart.md +1 -1
- package/docs/skills.md +1 -1
- package/docs/subagents/reference.md +2 -2
- package/docs/subagents.md +7 -1
- package/docs/usage.md +2 -0
- package/docs/windows.md +1 -1
- package/docs/workflows/api-reference.md +3 -4
- package/docs/workflows/builtins.md +2 -2
- package/docs/workflows/operations.md +1 -1
- package/docs/workflows/reliable-design.md +12 -1
- package/docs/workflows/verification.md +8 -8
- package/npm-shrinkwrap.json +32 -32
- package/package.json +3 -3
- 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
|
@@ -6674,7 +6674,7 @@ async function withSetupLock(lockDir, fn, options = {}) {
|
|
|
6674
6674
|
const isProcessAlive = options.isProcessAlive ?? processIsAlive2;
|
|
6675
6675
|
let lease;
|
|
6676
6676
|
for (let attempt = 0;attempt < attempts; attempt += 1) {
|
|
6677
|
-
lease = acquireSetupLock(lockDir, clock(), staleMs, isProcessAlive);
|
|
6677
|
+
lease = acquireSetupLock(lockDir, clock(), staleMs, isProcessAlive, options.beforeOwnerMarkerWrite);
|
|
6678
6678
|
if (lease !== undefined)
|
|
6679
6679
|
break;
|
|
6680
6680
|
if (attempt === attempts - 1) {
|
|
@@ -6696,29 +6696,15 @@ async function withSetupLock(lockDir, fn, options = {}) {
|
|
|
6696
6696
|
releaseSetupLock(lease);
|
|
6697
6697
|
}
|
|
6698
6698
|
}
|
|
6699
|
-
function acquireSetupLock(lockDir, now, staleMs, isProcessAlive) {
|
|
6699
|
+
function acquireSetupLock(lockDir, now, staleMs, isProcessAlive, beforeOwnerMarkerWrite) {
|
|
6700
6700
|
const abandonedOwnerTokens = new Set;
|
|
6701
6701
|
for (let attempt = 0;attempt < 2; attempt += 1) {
|
|
6702
6702
|
const token = `${process.pid}-${crypto.randomUUID()}`;
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
flag: "wx",
|
|
6709
|
-
mode: 384
|
|
6710
|
-
});
|
|
6711
|
-
return { lockDir, markerPath, token, ownerPid: process.pid, abandonedOwnerTokens };
|
|
6712
|
-
} catch (error) {
|
|
6713
|
-
try {
|
|
6714
|
-
rmdirSync(lockDir);
|
|
6715
|
-
} catch {}
|
|
6716
|
-
throw error;
|
|
6717
|
-
}
|
|
6718
|
-
} catch (error) {
|
|
6719
|
-
const code = error instanceof Error && "code" in error ? error.code : undefined;
|
|
6720
|
-
if (code !== "EEXIST")
|
|
6721
|
-
throw error;
|
|
6703
|
+
if (createSetupLockDirectory(lockDir)) {
|
|
6704
|
+
beforeOwnerMarkerWrite?.(lockDir);
|
|
6705
|
+
const lease = claimCreatedSetupLock(lockDir, token, now, abandonedOwnerTokens);
|
|
6706
|
+
if (lease !== undefined)
|
|
6707
|
+
return lease;
|
|
6722
6708
|
}
|
|
6723
6709
|
const observation = observeSetupLock(lockDir);
|
|
6724
6710
|
if (observation === undefined || !setupLockIsStale(observation, now, staleMs, isProcessAlive))
|
|
@@ -6731,6 +6717,52 @@ function acquireSetupLock(lockDir, now, staleMs, isProcessAlive) {
|
|
|
6731
6717
|
}
|
|
6732
6718
|
return;
|
|
6733
6719
|
}
|
|
6720
|
+
function createSetupLockDirectory(lockDir) {
|
|
6721
|
+
try {
|
|
6722
|
+
mkdirSync2(lockDir);
|
|
6723
|
+
return true;
|
|
6724
|
+
} catch (error) {
|
|
6725
|
+
if (errorCode(error) === "EEXIST")
|
|
6726
|
+
return false;
|
|
6727
|
+
throw error;
|
|
6728
|
+
}
|
|
6729
|
+
}
|
|
6730
|
+
function claimCreatedSetupLock(lockDir, token, now, abandonedOwnerTokens) {
|
|
6731
|
+
const markerName = `.owner-${token}`;
|
|
6732
|
+
const markerPath = join4(lockDir, markerName);
|
|
6733
|
+
try {
|
|
6734
|
+
writeFileSync2(markerPath, serializeLockOwner({ token, pid: process.pid, heartbeatMonotonicMs: now.monotonicMs }), {
|
|
6735
|
+
flag: "wx",
|
|
6736
|
+
mode: 384
|
|
6737
|
+
});
|
|
6738
|
+
} catch (error) {
|
|
6739
|
+
try {
|
|
6740
|
+
rmdirSync(lockDir);
|
|
6741
|
+
} catch {}
|
|
6742
|
+
if (errorCode(error) === "ENOENT")
|
|
6743
|
+
return;
|
|
6744
|
+
throw error;
|
|
6745
|
+
}
|
|
6746
|
+
if (createdSetupLockHoldsOnly(lockDir, markerName)) {
|
|
6747
|
+
return { lockDir, markerPath, token, ownerPid: process.pid, abandonedOwnerTokens };
|
|
6748
|
+
}
|
|
6749
|
+
rmSync2(markerPath, { force: true });
|
|
6750
|
+
try {
|
|
6751
|
+
rmdirSync(lockDir);
|
|
6752
|
+
} catch {}
|
|
6753
|
+
return;
|
|
6754
|
+
}
|
|
6755
|
+
function createdSetupLockHoldsOnly(lockDir, markerName) {
|
|
6756
|
+
try {
|
|
6757
|
+
const entries = readdirSync2(lockDir);
|
|
6758
|
+
return entries.length === 1 && entries[0] === markerName;
|
|
6759
|
+
} catch {
|
|
6760
|
+
return false;
|
|
6761
|
+
}
|
|
6762
|
+
}
|
|
6763
|
+
function errorCode(error) {
|
|
6764
|
+
return error instanceof Error && "code" in error && typeof error.code === "string" ? error.code : undefined;
|
|
6765
|
+
}
|
|
6734
6766
|
function refreshSetupLockLease(lease, now, beforeReplace) {
|
|
6735
6767
|
if (!ownsSetupLock(lease))
|
|
6736
6768
|
return false;
|
|
@@ -6851,9 +6883,15 @@ function setupLockIsStale(observation, now, staleMs, isProcessAlive) {
|
|
|
6851
6883
|
return false;
|
|
6852
6884
|
}
|
|
6853
6885
|
}
|
|
6854
|
-
if (
|
|
6855
|
-
return observation.
|
|
6856
|
-
|
|
6886
|
+
if (observation.hasUnexpectedState) {
|
|
6887
|
+
return now.wallTimeMs < observation.latestMtimeMs || now.wallTimeMs - observation.latestMtimeMs > staleMs;
|
|
6888
|
+
}
|
|
6889
|
+
if (observation.owners.length > 0)
|
|
6890
|
+
return true;
|
|
6891
|
+
return emptySetupLockIsAbandoned(observation, now, staleMs);
|
|
6892
|
+
}
|
|
6893
|
+
function emptySetupLockIsAbandoned(observation, now, staleMs) {
|
|
6894
|
+
return Number.isFinite(observation.latestMtimeMs) && now.wallTimeMs - observation.latestMtimeMs > staleMs;
|
|
6857
6895
|
}
|
|
6858
6896
|
function serializeLockOwner(owner) {
|
|
6859
6897
|
const serialized = JSON.stringify(owner);
|
|
@@ -63,7 +63,7 @@ var WORKER_PREFLIGHT_CONTRACT = [
|
|
|
63
63
|
`);
|
|
64
64
|
var E2E_VERIFICATION_GUIDANCE = [
|
|
65
65
|
"Verify correctness end-to-end whenever practical for user-visible behavior; an executable scenario is stronger proof than code inspection, unit tests, or stage summaries alone.",
|
|
66
|
-
'For web or frontend flows, including frontend changes whose correctness depends on backend/API behavior, use the
|
|
66
|
+
'For web or frontend flows, including frontend changes whose correctness depends on backend/API behavior, use the agent-browser skill or delegate with `skill: "agent-browser"`; capture snapshot, screenshot, DOM, or network evidence suited to the objective.',
|
|
67
67
|
"For TUI/terminal automation/testing, prefer the herdr skill on macOS, Linux and Windows. Install Herdr if missing when network access and permissions permit; fall back to the tmux skill or native Windows psmux if installation or use is not possible. Preserve the pinned herdr skill's explicit-request and HERDR_ENV=1 requirements; never control a focused session from outside Herdr. Check installed help: psmux uses tmux-style commands, while herdr has its own CLI, not interchangeable flags. Exercise the actual interactive flow and retain pane/text or terminal recording evidence.",
|
|
68
68
|
"For desktop and accessible simulator/emulator windows, use suitable PyAutoGUI or native platform tooling for a real visible app scenario and screenshots/video. Consult https://github.com/openai/openai-cua-sample-app#first-run and its Python README for setup and interruption guidance; the sample is optional and needs model/API access. Use a dedicated desktop/session, controlled fixtures and required screen-recording/accessibility permissions, inspect screenshots for other windows, and release held keys/buttons on interruption. Do not automate an arbitrary physical iPhone without an accessible simulator/emulator/mirroring or native automation setup, or label browser recordings as terminal/iOS proof.",
|
|
69
69
|
"Choose tools from observed environment capabilities. Prefer installed/cached tools; install missing tools, runtimes or plugins when online access and permissions permit. Known offline/restricted installation is sufficient evidence not to attempt prohibited downloads; otherwise check capabilities or make one bounded setup attempt. Do not loop on blocked downloads, require production credentials, or take unsafe actions.",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
workflow,
|
|
3
3
|
withBuiltinContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-00ywx588.js";
|
|
5
5
|
|
|
6
6
|
// dist/builtin/workflows/builtin/open-claude-design.ts
|
|
7
7
|
import { Type as Type2 } from "typebox";
|
|
@@ -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,47 @@ 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
135
|
};
|
|
136
136
|
}
|
|
137
137
|
if (false) {}
|
|
138
138
|
try {
|
|
139
|
-
const install = spawnSync("npm", ["install", "-g", "
|
|
139
|
+
const install = spawnSync("npm", ["install", "-g", "agent-browser"], {
|
|
140
140
|
stdio: "ignore",
|
|
141
141
|
timeout: 180000,
|
|
142
142
|
shell: isWindows,
|
|
143
143
|
env: createChildProcessEnvironment()
|
|
144
144
|
});
|
|
145
|
-
if (install.status
|
|
145
|
+
if (install.status !== 0) {
|
|
146
|
+
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");
|
|
147
|
+
return {
|
|
148
|
+
available: false,
|
|
149
|
+
alreadyPresent: false,
|
|
150
|
+
installed: false,
|
|
151
|
+
summary: `Could not install agent-browser (${reason}); stages will degrade gracefully.`,
|
|
152
|
+
error: reason
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
const browserInstall = spawnSync("agent-browser", ["install"], {
|
|
156
|
+
stdio: "ignore",
|
|
157
|
+
timeout: 300000,
|
|
158
|
+
shell: isWindows,
|
|
159
|
+
env: createChildProcessEnvironment()
|
|
160
|
+
});
|
|
161
|
+
if (browserInstall.status === 0) {
|
|
146
162
|
return {
|
|
147
163
|
available: true,
|
|
148
164
|
alreadyPresent: false,
|
|
149
165
|
installed: true,
|
|
150
|
-
summary: "Installed
|
|
166
|
+
summary: "Installed agent-browser via `npm install -g agent-browser` and downloaded its browser with `agent-browser install`."
|
|
151
167
|
};
|
|
152
168
|
}
|
|
153
|
-
const reason =
|
|
169
|
+
const reason = browserInstall.error?.message ?? (typeof browserInstall.status === "number" ? `agent-browser install exited with code ${browserInstall.status}` : "agent-browser install did not complete");
|
|
154
170
|
return {
|
|
155
171
|
available: false,
|
|
156
172
|
alreadyPresent: false,
|
|
157
173
|
installed: false,
|
|
158
|
-
summary: `
|
|
174
|
+
summary: `Installed the agent-browser CLI, but its browser runtime download failed (${reason}); stages must retry \`agent-browser install\` or degrade gracefully.`,
|
|
159
175
|
error: reason
|
|
160
176
|
};
|
|
161
177
|
} catch (error) {
|
|
@@ -164,25 +180,25 @@ function ensurePlaywrightCli() {
|
|
|
164
180
|
available: false,
|
|
165
181
|
alreadyPresent: false,
|
|
166
182
|
installed: false,
|
|
167
|
-
summary: `Could not install
|
|
183
|
+
summary: `Could not install agent-browser (${reason}); stages will degrade gracefully.`,
|
|
168
184
|
error: reason
|
|
169
185
|
};
|
|
170
186
|
}
|
|
171
187
|
}
|
|
172
|
-
function
|
|
173
|
-
const probeRule = status.available ? "The
|
|
188
|
+
function buildAgentBrowserBootstrapRules(status) {
|
|
189
|
+
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
190
|
return [
|
|
175
191
|
probeRule,
|
|
176
|
-
"Use `
|
|
177
|
-
"If
|
|
178
|
-
"If `
|
|
192
|
+
"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.",
|
|
193
|
+
"If an `agent-browser` command reports a missing browser executable, run `agent-browser install` once (on Linux, `agent-browser install --with-deps`) and retry.",
|
|
194
|
+
"If `agent-browser` is unavailable after three attempts or the browser runtime still fails, surface the manual file path / URL."
|
|
179
195
|
].join(`
|
|
180
196
|
`);
|
|
181
197
|
}
|
|
182
198
|
|
|
183
199
|
// dist/builtin/workflows/builtin/open-claude-design-live-protocol.ts
|
|
184
|
-
import { spawn } from "node:child_process";
|
|
185
200
|
import { fileURLToPath } from "node:url";
|
|
201
|
+
import { spawnProcess } from "@bastani/atomic";
|
|
186
202
|
var MODEL_EVENTS = new Set(["generate", "steer", "manual_edit_apply", "variant_mount_failed"]);
|
|
187
203
|
function needsModel(event) {
|
|
188
204
|
return MODEL_EVENTS.has(event.type);
|
|
@@ -216,12 +232,12 @@ function assertSuccessfulScript(result, operation) {
|
|
|
216
232
|
return result;
|
|
217
233
|
}
|
|
218
234
|
async function pollLiveEvent(input) {
|
|
219
|
-
const
|
|
220
|
-
const run = input.deps?.run ??
|
|
235
|
+
const launcher = liveLauncherPath();
|
|
236
|
+
const run = input.deps?.run ?? runLiveHelper;
|
|
221
237
|
for (;; ) {
|
|
222
238
|
if (input.signal?.aborted === true)
|
|
223
239
|
return { type: "exit", raw: "aborted" };
|
|
224
|
-
const result = assertSuccessfulScript(await run(
|
|
240
|
+
const result = assertSuccessfulScript(await run(launcher, [LIVE_POLL_VERB], input.workflowCwd, input.signal), "live poll");
|
|
225
241
|
const event = parseLiveEvent(result.stdout);
|
|
226
242
|
if (event.type !== "timeout")
|
|
227
243
|
return event;
|
|
@@ -239,7 +255,7 @@ async function replyLiveEvent(input) {
|
|
|
239
255
|
if (status.length === 0 || status.startsWith("--")) {
|
|
240
256
|
throw new Error(`Cannot reply to live event ${id}: reply status is missing`);
|
|
241
257
|
}
|
|
242
|
-
const args = ["--reply", id, status];
|
|
258
|
+
const args = [LIVE_POLL_VERB, "--reply", id, status];
|
|
243
259
|
const file = input.file ?? input.event.file;
|
|
244
260
|
const message = input.message ?? input.event.message;
|
|
245
261
|
const data = input.data ?? input.event.data;
|
|
@@ -249,19 +265,22 @@ async function replyLiveEvent(input) {
|
|
|
249
265
|
args.push("--data", JSON.stringify(data));
|
|
250
266
|
if (message !== undefined)
|
|
251
267
|
args.push(message);
|
|
252
|
-
const
|
|
253
|
-
const run = input.deps?.run ??
|
|
254
|
-
return assertSuccessfulScript(await run(
|
|
268
|
+
const launcher = liveLauncherPath();
|
|
269
|
+
const run = input.deps?.run ?? runLiveHelper;
|
|
270
|
+
return assertSuccessfulScript(await run(launcher, args, input.workflowCwd, input.signal), "live reply");
|
|
255
271
|
}
|
|
256
|
-
|
|
257
|
-
|
|
272
|
+
var LIVE_POLL_VERB = "live-poll";
|
|
273
|
+
function liveLauncherPath(platform = process.platform) {
|
|
274
|
+
const launcher = platform === "win32" ? "impeccable.cmd" : "impeccable";
|
|
275
|
+
return fileURLToPath(new URL(`../skills/impeccable/scripts/${launcher}`, import.meta.url));
|
|
258
276
|
}
|
|
259
|
-
function
|
|
277
|
+
function runLiveHelper(launcher, args, cwd, signal) {
|
|
260
278
|
return new Promise((resolve, reject) => {
|
|
261
|
-
const child =
|
|
279
|
+
const child = spawnProcess(launcher, [...args], {
|
|
262
280
|
cwd,
|
|
263
281
|
env: { ...process.env, GH_PAGER: "cat" },
|
|
264
|
-
stdio: ["ignore", "pipe", "pipe"]
|
|
282
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
283
|
+
windowsHide: true
|
|
265
284
|
});
|
|
266
285
|
let stdout = "";
|
|
267
286
|
let stderr = "";
|
|
@@ -368,7 +387,7 @@ function buildLiveSessionStartPrompt(input) {
|
|
|
368
387
|
`),
|
|
369
388
|
[
|
|
370
389
|
"<instructions>",
|
|
371
|
-
"1. Drive `/skill:impeccable live` against the static preview: run `live
|
|
390
|
+
"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
391
|
"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
392
|
"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
393
|
"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 +505,14 @@ function buildReferenceDiscoveryPrompt(args) {
|
|
|
486
505
|
[
|
|
487
506
|
"instructions",
|
|
488
507
|
[
|
|
489
|
-
"Use the
|
|
508
|
+
"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
509
|
"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 \`
|
|
510
|
+
`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\`.`,
|
|
511
|
+
`Also run \`agent-browser screenshot ${join2(args.artifactDir, "ref-<site>-<n>.png")} --full\`; this still is the minimum when video is unavailable.`,
|
|
493
512
|
"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
513
|
"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
514
|
"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 `
|
|
515
|
+
"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
516
|
].join(`
|
|
498
517
|
`)
|
|
499
518
|
],
|
|
@@ -708,7 +727,7 @@ async function exportOpenClaudeDesign(options) {
|
|
|
708
727
|
"In at most 600 words, return Markdown, not the HTML:",
|
|
709
728
|
"1. Spec written to (absolute path)",
|
|
710
729
|
"2. Sections included",
|
|
711
|
-
"3. How to open the spec (
|
|
730
|
+
"3. How to open the spec (agent-browser command + manual fallback path)",
|
|
712
731
|
"4. Recommended files and components",
|
|
713
732
|
"5. Implementation steps",
|
|
714
733
|
"6. Usage example",
|
|
@@ -733,12 +752,12 @@ async function exportOpenClaudeDesign(options) {
|
|
|
733
752
|
["role", "You are an opinionated staff design engineer."],
|
|
734
753
|
[
|
|
735
754
|
"objective",
|
|
736
|
-
"Show the exported spec with the
|
|
755
|
+
"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
756
|
],
|
|
738
757
|
[
|
|
739
758
|
"instructions",
|
|
740
759
|
[
|
|
741
|
-
`Use the bootstrap rules, run \`
|
|
760
|
+
`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
761
|
"Do not run `show --annotate` or invite changes because the review session has ended.",
|
|
743
762
|
`Prominently print the manual paths:
|
|
744
763
|
- Final spec: ${specPath}
|
|
@@ -764,8 +783,8 @@ var GROUNDED_REPORTING3 = "Before reporting progress, audit each claim against a
|
|
|
764
783
|
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
784
|
async function runOpenClaudeDesignWorkflow(ctx) {
|
|
766
785
|
const designContext = ctx;
|
|
767
|
-
const
|
|
768
|
-
const browserBootstrapRules =
|
|
786
|
+
const agentBrowser = ensureAgentBrowser();
|
|
787
|
+
const browserBootstrapRules = buildAgentBrowserBootstrapRules(agentBrowser);
|
|
769
788
|
const inputs = designContext.inputs;
|
|
770
789
|
const prompt = inputs.prompt;
|
|
771
790
|
const discoverReferences = inputs.discover_references !== false;
|
|
@@ -774,7 +793,7 @@ async function runOpenClaudeDesignWorkflow(ctx) {
|
|
|
774
793
|
const previewFileUrl = `file://${previewPath}`;
|
|
775
794
|
const specFileUrl = `file://${specPath}`;
|
|
776
795
|
const partialArtifactOutputs = {
|
|
777
|
-
|
|
796
|
+
agent_browser_status: agentBrowser.summary,
|
|
778
797
|
run_id: runId,
|
|
779
798
|
artifact_dir: artifactDir,
|
|
780
799
|
preview_path: previewPath,
|
|
@@ -782,9 +801,9 @@ async function runOpenClaudeDesignWorkflow(ctx) {
|
|
|
782
801
|
spec_path: specPath,
|
|
783
802
|
spec_file_url: specFileUrl
|
|
784
803
|
};
|
|
785
|
-
if (shouldEarlyExitForBrowser(
|
|
804
|
+
if (shouldEarlyExitForBrowser(agentBrowser.available, "development") && typeof designContext.exit === "function") {
|
|
786
805
|
designContext.exit({
|
|
787
|
-
reason: `open-claude-design needs the
|
|
806
|
+
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
807
|
outputs: partialArtifactOutputs
|
|
789
808
|
});
|
|
790
809
|
}
|
|
@@ -993,7 +1012,7 @@ async function runOpenClaudeDesignWorkflow(ctx) {
|
|
|
993
1012
|
preview_file_url: previewFileUrl,
|
|
994
1013
|
spec_path: specPath,
|
|
995
1014
|
spec_file_url: specFileUrl,
|
|
996
|
-
|
|
1015
|
+
agent_browser_status: agentBrowser.summary
|
|
997
1016
|
};
|
|
998
1017
|
}
|
|
999
1018
|
|
|
@@ -1023,7 +1042,7 @@ var open_claude_design_default = workflow({
|
|
|
1023
1042
|
preview_file_url: Type2.Optional(Type2.String({ description: "file:// URL for the generated preview.html file." })),
|
|
1024
1043
|
spec_path: Type2.Optional(Type2.String({ description: "Absolute path to the generated spec.html file." })),
|
|
1025
1044
|
spec_file_url: Type2.Optional(Type2.String({ description: "file:// URL for the generated spec.html file." })),
|
|
1026
|
-
|
|
1045
|
+
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
1046
|
},
|
|
1028
1047
|
run: async (ctx) => await runOpenClaudeDesignWorkflow(withBuiltinContext(ctx))
|
|
1029
1048
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
workflow,
|
|
3
3
|
withBuiltinContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-00ywx588.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-e83tc6nr.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-7f381xnq.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,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
workflow,
|
|
3
3
|
withBuiltinContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-00ywx588.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-e83tc6nr.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-7f381xnq.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,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-tvcydq13.js";
|
|
5
|
+
import"./chunk-00ywx588.js";
|
|
6
|
+
import"./chunk-e83tc6nr.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-ne6vh5ct.js";
|
|
4
|
+
import"./chunk-00ywx588.js";
|
|
5
|
+
import"./chunk-e83tc6nr.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-55p5dxjk.js";
|
|
4
4
|
import"./chunk-2377r57g.js";
|
|
5
5
|
import"./chunk-n1910xc4.js";
|
|
6
|
-
import"./chunk-
|
|
7
|
-
import"./chunk-
|
|
6
|
+
import"./chunk-00ywx588.js";
|
|
7
|
+
import"./chunk-e83tc6nr.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-zj5162bh.js";
|
|
4
|
+
import"./chunk-7f381xnq.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-00ywx588.js";
|
|
9
|
+
import"./chunk-e83tc6nr.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-00ywx588.js";
|
|
2
|
+
import"./chunk-e83tc6nr.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-7h7s5xdj.js";
|
|
8
8
|
import {
|
|
9
9
|
classify_and_act_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-tvcydq13.js";
|
|
11
11
|
import {
|
|
12
12
|
fan_out_and_synthesize_default
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ne6vh5ct.js";
|
|
14
14
|
import {
|
|
15
15
|
generate_and_filter_default
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import"./chunk-
|
|
16
|
+
} from "./chunk-55p5dxjk.js";
|
|
17
|
+
import"./chunk-7f381xnq.js";
|
|
18
18
|
import"./chunk-z0d03ktm.js";
|
|
19
19
|
import {
|
|
20
20
|
goal_default
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-zj5162bh.js";
|
|
22
22
|
import {
|
|
23
23
|
open_claude_design_default
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-pfm1kgqz.js";
|
|
25
25
|
import {
|
|
26
26
|
loop_until_done_default
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-evfb0312.js";
|
|
28
28
|
import {
|
|
29
29
|
ralph_default
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-tdqvdrg1.js";
|
|
31
31
|
import {
|
|
32
32
|
tournament_default
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-x2nftpgj.js";
|
|
34
34
|
export {
|
|
35
35
|
adversarial_verification_default as adversarialVerification,
|
|
36
36
|
classify_and_act_default as classifyAndAct,
|