@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.
Files changed (245) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/builtin/intercom/CHANGELOG.md +6 -0
  3. package/dist/builtin/intercom/package.json +1 -1
  4. package/dist/builtin/intercom/skills/intercom/SKILL.md +32 -1
  5. package/dist/builtin/mcp/package.json +1 -1
  6. package/dist/builtin/subagents/CHANGELOG.md +12 -0
  7. package/dist/builtin/subagents/README.md +2 -0
  8. package/dist/builtin/subagents/agents/code-simplifier.md +1 -1
  9. package/dist/builtin/subagents/agents/codebase-analyzer.md +1 -1
  10. package/dist/builtin/subagents/agents/codebase-online-researcher.md +3 -3
  11. package/dist/builtin/subagents/agents/debugger.md +7 -5
  12. package/dist/builtin/subagents/agents/worker.md +4 -2
  13. package/dist/builtin/subagents/package.json +1 -1
  14. package/dist/builtin/subagents/skills/agent-browser/SKILL.md +56 -0
  15. package/dist/builtin/subagents/skills/subagent/SKILL.md +32 -8
  16. package/dist/builtin/subagents/src/extension/index.bundle.mjs +7 -4
  17. package/dist/builtin/web-access/package.json +1 -1
  18. package/dist/builtin/workflows/CHANGELOG.md +30 -0
  19. package/dist/builtin/workflows/README.md +4 -2
  20. package/dist/builtin/workflows/builtin/adversarial-verification.js +3 -3
  21. package/dist/builtin/workflows/builtin/{chunk-n8g2da69.js → chunk-00ywx588.js} +1 -1
  22. package/dist/builtin/workflows/builtin/{chunk-d1xqh1rd.js → chunk-55p5dxjk.js} +1 -1
  23. package/dist/builtin/workflows/builtin/{chunk-1dydq7w3.js → chunk-7f381xnq.js} +62 -24
  24. package/dist/builtin/workflows/builtin/{chunk-k18g9me8.js → chunk-7h7s5xdj.js} +1 -1
  25. package/dist/builtin/workflows/builtin/{chunk-n4yxrsm9.js → chunk-e83tc6nr.js} +1 -1
  26. package/dist/builtin/workflows/builtin/{chunk-sn5mchnx.js → chunk-evfb0312.js} +1 -1
  27. package/dist/builtin/workflows/builtin/{chunk-scgprmdj.js → chunk-ne6vh5ct.js} +1 -1
  28. package/dist/builtin/workflows/builtin/{chunk-119kxb28.js → chunk-pfm1kgqz.js} +62 -43
  29. package/dist/builtin/workflows/builtin/{chunk-hnbbb5r0.js → chunk-tdqvdrg1.js} +4 -4
  30. package/dist/builtin/workflows/builtin/{chunk-kf5xpbkz.js → chunk-tvcydq13.js} +1 -1
  31. package/dist/builtin/workflows/builtin/{chunk-9y0f90rd.js → chunk-x2nftpgj.js} +1 -1
  32. package/dist/builtin/workflows/builtin/{chunk-vt9zgr9d.js → chunk-zj5162bh.js} +4 -4
  33. package/dist/builtin/workflows/builtin/classify-and-act.js +3 -3
  34. package/dist/builtin/workflows/builtin/fan-out-and-synthesize.js +3 -3
  35. package/dist/builtin/workflows/builtin/generate-and-filter.js +3 -3
  36. package/dist/builtin/workflows/builtin/goal.js +4 -4
  37. package/dist/builtin/workflows/builtin/index.d.ts +1 -1
  38. package/dist/builtin/workflows/builtin/index.js +12 -12
  39. package/dist/builtin/workflows/builtin/loop-until-done.js +3 -3
  40. package/dist/builtin/workflows/builtin/open-claude-design.d.ts +1 -1
  41. package/dist/builtin/workflows/builtin/open-claude-design.js +3 -3
  42. package/dist/builtin/workflows/builtin/ralph.js +4 -4
  43. package/dist/builtin/workflows/builtin/steering-context.js +1 -1
  44. package/dist/builtin/workflows/builtin/tournament.js +3 -3
  45. package/dist/builtin/workflows/package.json +1 -1
  46. package/dist/builtin/workflows/skills/impeccable/SKILL.md +18 -11
  47. package/dist/builtin/workflows/skills/impeccable/reference/adapt.md +1 -1
  48. package/dist/builtin/workflows/skills/impeccable/reference/adapt.native.md +1 -1
  49. package/dist/builtin/workflows/skills/impeccable/reference/animate.md +1 -1
  50. package/dist/builtin/workflows/skills/impeccable/reference/audit.md +5 -5
  51. package/dist/builtin/workflows/skills/impeccable/reference/audit.native.md +6 -6
  52. package/dist/builtin/workflows/skills/impeccable/reference/bolder.md +2 -2
  53. package/dist/builtin/workflows/skills/impeccable/reference/clarify.md +1 -1
  54. package/dist/builtin/workflows/skills/impeccable/reference/colorize.md +1 -1
  55. package/dist/builtin/workflows/skills/impeccable/reference/craft-floor.md +0 -6
  56. package/dist/builtin/workflows/skills/impeccable/reference/critique.md +19 -41
  57. package/dist/builtin/workflows/skills/impeccable/reference/degraded/asset-producer.md +11 -65
  58. package/dist/builtin/workflows/skills/impeccable/reference/degraded/documenter.md +3 -3
  59. package/dist/builtin/workflows/skills/impeccable/reference/degraded/finish-reviewer.md +4 -4
  60. package/dist/builtin/workflows/skills/impeccable/reference/degraded/manual-edit-applier.md +1 -1
  61. package/dist/builtin/workflows/skills/impeccable/reference/delight.md +1 -1
  62. package/dist/builtin/workflows/skills/impeccable/reference/distill.md +2 -2
  63. package/dist/builtin/workflows/skills/impeccable/reference/doctor.md +4 -4
  64. package/dist/builtin/workflows/skills/impeccable/reference/document.md +4 -4
  65. package/dist/builtin/workflows/skills/impeccable/reference/extract.md +1 -1
  66. package/dist/builtin/workflows/skills/impeccable/reference/harden.md +1 -1
  67. package/dist/builtin/workflows/skills/impeccable/reference/hooks.md +21 -21
  68. package/dist/builtin/workflows/skills/impeccable/reference/init.md +8 -8
  69. package/dist/builtin/workflows/skills/impeccable/reference/layout.md +2 -2
  70. package/dist/builtin/workflows/skills/impeccable/reference/live-setup.md +10 -8
  71. package/dist/builtin/workflows/skills/impeccable/reference/live.md +39 -38
  72. package/dist/builtin/workflows/skills/impeccable/reference/new-work.md +48 -21
  73. package/dist/builtin/workflows/skills/impeccable/reference/onboard.md +1 -1
  74. package/dist/builtin/workflows/skills/impeccable/reference/optimize.md +1 -1
  75. package/dist/builtin/workflows/skills/impeccable/reference/overdrive.md +1 -1
  76. package/dist/builtin/workflows/skills/impeccable/reference/polish.md +11 -3
  77. package/dist/builtin/workflows/skills/impeccable/reference/quieter.md +2 -2
  78. package/dist/builtin/workflows/skills/impeccable/reference/routing.md +13 -7
  79. package/dist/builtin/workflows/skills/impeccable/reference/typeset.md +2 -2
  80. package/dist/builtin/workflows/skills/impeccable/reference/visualize.md +13 -19
  81. package/dist/builtin/workflows/skills/impeccable/scripts/VERSION +1 -0
  82. package/dist/builtin/workflows/skills/impeccable/scripts/data/font-index-failures.json +121 -0
  83. package/dist/builtin/workflows/skills/impeccable/scripts/data/font-index.json +1 -0
  84. package/dist/builtin/workflows/skills/impeccable/scripts/impeccable +212 -0
  85. package/dist/builtin/workflows/skills/impeccable/scripts/impeccable.cmd +218 -0
  86. package/dist/builtin/workflows/skills/impeccable/scripts/live-browser-dom.js +21 -0
  87. package/dist/builtin/workflows/skills/impeccable/scripts/live-browser-ignores.js +242 -0
  88. package/dist/builtin/workflows/skills/impeccable/scripts/live-browser-session.js +25 -4
  89. package/dist/builtin/workflows/skills/impeccable/scripts/live-browser.js +666 -197
  90. package/dist/builtin/workflows/skills/research-codebase/SKILL.md +1 -1
  91. package/dist/builtin/workflows/src/extension/index.bundle.mjs +156 -84
  92. package/dist/builtin/workflows/src/index.js +62 -24
  93. package/dist/core/execution-model-router.d.ts +2 -0
  94. package/dist/core/execution-model-router.d.ts.map +1 -1
  95. package/dist/core/execution-model-router.js +30 -4
  96. package/dist/core/execution-model-router.js.map +1 -1
  97. package/dist/core/model-routing-task.d.ts +1 -1
  98. package/dist/core/model-routing-task.d.ts.map +1 -1
  99. package/dist/core/model-routing-task.js +4 -3
  100. package/dist/core/model-routing-task.js.map +1 -1
  101. package/dist/core/system-prompt.d.ts.map +1 -1
  102. package/dist/core/system-prompt.js +2 -1
  103. package/dist/core/system-prompt.js.map +1 -1
  104. package/dist/index.d.ts +1 -1
  105. package/dist/index.d.ts.map +1 -1
  106. package/dist/index.js +1 -1
  107. package/dist/index.js.map +1 -1
  108. package/dist/modes/interactive/components/chat-message-renderer.d.ts.map +1 -1
  109. package/dist/modes/interactive/components/chat-message-renderer.js +4 -0
  110. package/dist/modes/interactive/components/chat-message-renderer.js.map +1 -1
  111. package/docs/computer-use.md +22 -21
  112. package/docs/getting-started/first-session.md +2 -2
  113. package/docs/getting-started/installation.md +6 -2
  114. package/docs/intercom.md +6 -1
  115. package/docs/models/model-selection.md +11 -7
  116. package/docs/quickstart.md +1 -1
  117. package/docs/skills.md +1 -1
  118. package/docs/subagents/reference.md +2 -2
  119. package/docs/subagents.md +7 -1
  120. package/docs/usage.md +2 -0
  121. package/docs/windows.md +1 -1
  122. package/docs/workflows/api-reference.md +3 -4
  123. package/docs/workflows/builtins.md +2 -2
  124. package/docs/workflows/operations.md +1 -1
  125. package/docs/workflows/reliable-design.md +12 -1
  126. package/docs/workflows/verification.md +8 -8
  127. package/npm-shrinkwrap.json +32 -32
  128. package/package.json +3 -3
  129. package/dist/builtin/subagents/skills/playwright-cli/SKILL.md +0 -420
  130. package/dist/builtin/subagents/skills/playwright-cli/references/element-attributes.md +0 -23
  131. package/dist/builtin/subagents/skills/playwright-cli/references/playwright-tests.md +0 -39
  132. package/dist/builtin/subagents/skills/playwright-cli/references/request-mocking.md +0 -87
  133. package/dist/builtin/subagents/skills/playwright-cli/references/running-code.md +0 -241
  134. package/dist/builtin/subagents/skills/playwright-cli/references/session-management.md +0 -225
  135. package/dist/builtin/subagents/skills/playwright-cli/references/storage-state.md +0 -275
  136. package/dist/builtin/subagents/skills/playwright-cli/references/test-generation.md +0 -433
  137. package/dist/builtin/subagents/skills/playwright-cli/references/tracing.md +0 -139
  138. package/dist/builtin/subagents/skills/playwright-cli/references/video-recording.md +0 -143
  139. package/dist/builtin/workflows/skills/impeccable/agents/impeccable_asset_producer.toml +0 -94
  140. package/dist/builtin/workflows/skills/impeccable/agents/impeccable_documenter.toml +0 -27
  141. package/dist/builtin/workflows/skills/impeccable/agents/impeccable_finish_reviewer.toml +0 -41
  142. package/dist/builtin/workflows/skills/impeccable/agents/impeccable_manual_edit_applier.toml +0 -95
  143. package/dist/builtin/workflows/skills/impeccable/agents/openai.yaml +0 -4
  144. package/dist/builtin/workflows/skills/impeccable/scripts/concept-seed.mjs +0 -695
  145. package/dist/builtin/workflows/skills/impeccable/scripts/context-signals.mjs +0 -325
  146. package/dist/builtin/workflows/skills/impeccable/scripts/context.mjs +0 -1503
  147. package/dist/builtin/workflows/skills/impeccable/scripts/critique-storage.mjs +0 -222
  148. package/dist/builtin/workflows/skills/impeccable/scripts/detect-csp.mjs +0 -198
  149. package/dist/builtin/workflows/skills/impeccable/scripts/detect.mjs +0 -21
  150. package/dist/builtin/workflows/skills/impeccable/scripts/detector/browser/injected/index.mjs +0 -2073
  151. package/dist/builtin/workflows/skills/impeccable/scripts/detector/cli/main.mjs +0 -432
  152. package/dist/builtin/workflows/skills/impeccable/scripts/detector/design-system.mjs +0 -1121
  153. package/dist/builtin/workflows/skills/impeccable/scripts/detector/detect-antipatterns-browser.js +0 -8746
  154. package/dist/builtin/workflows/skills/impeccable/scripts/detector/detect-antipatterns.mjs +0 -51
  155. package/dist/builtin/workflows/skills/impeccable/scripts/detector/engines/browser/detect-url.mjs +0 -376
  156. package/dist/builtin/workflows/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs +0 -1168
  157. package/dist/builtin/workflows/skills/impeccable/scripts/detector/engines/static-html/css-cascade.mjs +0 -1192
  158. package/dist/builtin/workflows/skills/impeccable/scripts/detector/engines/static-html/detect-html.mjs +0 -290
  159. package/dist/builtin/workflows/skills/impeccable/scripts/detector/engines/visual/screenshot-contrast.mjs +0 -189
  160. package/dist/builtin/workflows/skills/impeccable/scripts/detector/findings.mjs +0 -18
  161. package/dist/builtin/workflows/skills/impeccable/scripts/detector/node/file-system.mjs +0 -213
  162. package/dist/builtin/workflows/skills/impeccable/scripts/detector/profile/profiler.mjs +0 -166
  163. package/dist/builtin/workflows/skills/impeccable/scripts/detector/registry/antipatterns.mjs +0 -617
  164. package/dist/builtin/workflows/skills/impeccable/scripts/detector/rules/checks.mjs +0 -5534
  165. package/dist/builtin/workflows/skills/impeccable/scripts/detector/shared/color.mjs +0 -588
  166. package/dist/builtin/workflows/skills/impeccable/scripts/detector/shared/constants.mjs +0 -112
  167. package/dist/builtin/workflows/skills/impeccable/scripts/detector/shared/fonts.mjs +0 -30
  168. package/dist/builtin/workflows/skills/impeccable/scripts/detector/shared/inline-ignores.mjs +0 -148
  169. package/dist/builtin/workflows/skills/impeccable/scripts/detector/shared/page.mjs +0 -35
  170. package/dist/builtin/workflows/skills/impeccable/scripts/doctor.mjs +0 -338
  171. package/dist/builtin/workflows/skills/impeccable/scripts/embed-prompt.mjs +0 -270
  172. package/dist/builtin/workflows/skills/impeccable/scripts/generate-image.mjs +0 -277
  173. package/dist/builtin/workflows/skills/impeccable/scripts/hook-admin.mjs +0 -783
  174. package/dist/builtin/workflows/skills/impeccable/scripts/hook-lib.mjs +0 -2305
  175. package/dist/builtin/workflows/skills/impeccable/scripts/hook.mjs +0 -78
  176. package/dist/builtin/workflows/skills/impeccable/scripts/lib/artifact-schema.mjs +0 -93
  177. package/dist/builtin/workflows/skills/impeccable/scripts/lib/composition-catalog.mjs +0 -200
  178. package/dist/builtin/workflows/skills/impeccable/scripts/lib/concept-catalog.mjs +0 -395
  179. package/dist/builtin/workflows/skills/impeccable/scripts/lib/design-parser.mjs +0 -925
  180. package/dist/builtin/workflows/skills/impeccable/scripts/lib/impeccable-config.mjs +0 -640
  181. package/dist/builtin/workflows/skills/impeccable/scripts/lib/impeccable-paths.mjs +0 -137
  182. package/dist/builtin/workflows/skills/impeccable/scripts/lib/is-generated.mjs +0 -72
  183. package/dist/builtin/workflows/skills/impeccable/scripts/lib/open-system-browser.mjs +0 -57
  184. package/dist/builtin/workflows/skills/impeccable/scripts/lib/provider.mjs +0 -5
  185. package/dist/builtin/workflows/skills/impeccable/scripts/lib/roll-selection.mjs +0 -369
  186. package/dist/builtin/workflows/skills/impeccable/scripts/lib/staleness-deep.mjs +0 -483
  187. package/dist/builtin/workflows/skills/impeccable/scripts/lib/staleness-notice.mjs +0 -169
  188. package/dist/builtin/workflows/skills/impeccable/scripts/lib/staleness.mjs +0 -528
  189. package/dist/builtin/workflows/skills/impeccable/scripts/lib/surface-briefs.mjs +0 -151
  190. package/dist/builtin/workflows/skills/impeccable/scripts/lib/target-args.mjs +0 -42
  191. package/dist/builtin/workflows/skills/impeccable/scripts/lib/target-slug.mjs +0 -33
  192. package/dist/builtin/workflows/skills/impeccable/scripts/lib/template-extensions.mjs +0 -146
  193. package/dist/builtin/workflows/skills/impeccable/scripts/live/accept-css.mjs +0 -617
  194. package/dist/builtin/workflows/skills/impeccable/scripts/live/accept-verify.mjs +0 -71
  195. package/dist/builtin/workflows/skills/impeccable/scripts/live/browser-script-parts.mjs +0 -77
  196. package/dist/builtin/workflows/skills/impeccable/scripts/live/completion.mjs +0 -28
  197. package/dist/builtin/workflows/skills/impeccable/scripts/live/event-validation.mjs +0 -199
  198. package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/astro.mjs +0 -47
  199. package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/detect-utils.mjs +0 -157
  200. package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/index.mjs +0 -143
  201. package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/journal.mjs +0 -205
  202. package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/nextjs.mjs +0 -49
  203. package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/nuxt.mjs +0 -170
  204. package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/script-src.mjs +0 -26
  205. package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/static-html.mjs +0 -26
  206. package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/sveltekit.mjs +0 -71
  207. package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/tag-strategy.mjs +0 -247
  208. package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/tanstack-start.mjs +0 -70
  209. package/dist/builtin/workflows/skills/impeccable/scripts/live/frameworks/vite-generic.mjs +0 -42
  210. package/dist/builtin/workflows/skills/impeccable/scripts/live/generation-preflight.mjs +0 -149
  211. package/dist/builtin/workflows/skills/impeccable/scripts/live/insert-ui.mjs +0 -458
  212. package/dist/builtin/workflows/skills/impeccable/scripts/live/instructions.mjs +0 -169
  213. package/dist/builtin/workflows/skills/impeccable/scripts/live/manual-apply.mjs +0 -939
  214. package/dist/builtin/workflows/skills/impeccable/scripts/live/manual-edit-routes.mjs +0 -357
  215. package/dist/builtin/workflows/skills/impeccable/scripts/live/manual-edits-buffer.mjs +0 -152
  216. package/dist/builtin/workflows/skills/impeccable/scripts/live/poll-lanes.mjs +0 -14
  217. package/dist/builtin/workflows/skills/impeccable/scripts/live/roots.mjs +0 -670
  218. package/dist/builtin/workflows/skills/impeccable/scripts/live/session-store.mjs +0 -563
  219. package/dist/builtin/workflows/skills/impeccable/scripts/live/source-lock.mjs +0 -105
  220. package/dist/builtin/workflows/skills/impeccable/scripts/live/source-search.mjs +0 -105
  221. package/dist/builtin/workflows/skills/impeccable/scripts/live/svelte-ast.mjs +0 -969
  222. package/dist/builtin/workflows/skills/impeccable/scripts/live/svelte-component.mjs +0 -1401
  223. package/dist/builtin/workflows/skills/impeccable/scripts/live/sveltekit-adapter.mjs +0 -314
  224. package/dist/builtin/workflows/skills/impeccable/scripts/live/tanstack-adapter.mjs +0 -280
  225. package/dist/builtin/workflows/skills/impeccable/scripts/live/ui-surfaces.mjs +0 -75
  226. package/dist/builtin/workflows/skills/impeccable/scripts/live/vocabulary.mjs +0 -171
  227. package/dist/builtin/workflows/skills/impeccable/scripts/live-accept.mjs +0 -961
  228. package/dist/builtin/workflows/skills/impeccable/scripts/live-commit-manual-edits.mjs +0 -1244
  229. package/dist/builtin/workflows/skills/impeccable/scripts/live-complete.mjs +0 -107
  230. package/dist/builtin/workflows/skills/impeccable/scripts/live-copy-edit-agent.mjs +0 -800
  231. package/dist/builtin/workflows/skills/impeccable/scripts/live-discard-manual-edits.mjs +0 -51
  232. package/dist/builtin/workflows/skills/impeccable/scripts/live-inject.mjs +0 -515
  233. package/dist/builtin/workflows/skills/impeccable/scripts/live-insert.mjs +0 -292
  234. package/dist/builtin/workflows/skills/impeccable/scripts/live-manual-edit-evidence.mjs +0 -371
  235. package/dist/builtin/workflows/skills/impeccable/scripts/live-poll.mjs +0 -427
  236. package/dist/builtin/workflows/skills/impeccable/scripts/live-resume.mjs +0 -123
  237. package/dist/builtin/workflows/skills/impeccable/scripts/live-server.mjs +0 -1675
  238. package/dist/builtin/workflows/skills/impeccable/scripts/live-status.mjs +0 -71
  239. package/dist/builtin/workflows/skills/impeccable/scripts/live-target.mjs +0 -30
  240. package/dist/builtin/workflows/skills/impeccable/scripts/live-wrap.mjs +0 -927
  241. package/dist/builtin/workflows/skills/impeccable/scripts/live.mjs +0 -365
  242. package/dist/builtin/workflows/skills/impeccable/scripts/palette.mjs +0 -628
  243. package/dist/builtin/workflows/skills/impeccable/scripts/pin.mjs +0 -224
  244. package/dist/builtin/workflows/skills/impeccable/scripts/serve-question.mjs +0 -1540
  245. 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
- const markerPath = join4(lockDir, `.owner-${token}`);
6704
- try {
6705
- mkdirSync2(lockDir);
6706
- try {
6707
- writeFileSync2(markerPath, serializeLockOwner({ token, pid: process.pid, heartbeatMonotonicMs: now.monotonicMs }), {
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 (!observation.hasUnexpectedState)
6855
- return observation.owners.length > 0;
6856
- return now.wallTimeMs < observation.latestMtimeMs || now.wallTimeMs - observation.latestMtimeMs > staleMs;
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);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  workflow,
3
3
  withBuiltinContext
4
- } from "./chunk-n8g2da69.js";
4
+ } from "./chunk-00ywx588.js";
5
5
  import {
6
6
  parse_rubric,
7
7
  normalize_criteria,
@@ -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 playwright-cli skill or delegate with `skill: "playwright-cli"`; capture snapshot, screenshot, DOM, or network evidence suited to the objective.',
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-n8g2da69.js";
4
+ } from "./chunk-00ywx588.js";
5
5
  import {
6
6
  score_progress,
7
7
  classify_trend
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  workflow,
3
3
  withBuiltinContext
4
- } from "./chunk-n8g2da69.js";
4
+ } from "./chunk-00ywx588.js";
5
5
  import {
6
6
  stableArtifactRoot
7
7
  } from "./chunk-rc5ec5xx.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  workflow,
3
3
  withBuiltinContext
4
- } from "./chunk-n8g2da69.js";
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 ensurePlaywrightCli() {
114
+ function ensureAgentBrowser() {
115
115
  const isWindows = process.platform === "win32";
116
116
  const onPath = () => {
117
117
  try {
118
- const probe = spawnSync(isWindows ? "where" : "which", ["playwright-cli"], {
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: "playwright-cli already on PATH; skipped install."
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", "@playwright/cli@latest"], {
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 === 0) {
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 playwright-cli via `npm install -g @playwright/cli@latest`."
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 = install.error?.message ?? (typeof install.status === "number" ? `npm install -g @playwright/cli@latest exited with code ${install.status}` : "npm install -g @playwright/cli@latest did not complete");
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: `Could not install playwright-cli (${reason}); stages will degrade gracefully.`,
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 playwright-cli (${reason}); stages will degrade gracefully.`,
183
+ summary: `Could not install agent-browser (${reason}); stages will degrade gracefully.`,
168
184
  error: reason
169
185
  };
170
186
  }
171
187
  }
172
- function buildPlaywrightCliBootstrapRules(status) {
173
- const probeRule = status.available ? "The playwright-cli skill's `playwright-cli` command is on PATH. Do not reinstall it unless a command reports it missing; then probe with `which playwright-cli` (or `npx --no-install playwright-cli --version`), run `npm install -g @playwright/cli@latest` once, and retry. Do not add project dependencies." : `The playwright-cli skill's \`playwright-cli\` command failed setup: "${status.error ?? "unknown error"}". Probe with \`which playwright-cli\` (or \`npx --no-install playwright-cli --version\`) and retry once with \`npm install -g @playwright/cli@latest\`. 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.`;
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 `playwright-cli open <url>` to show a local preview; use `playwright-cli snapshot` and `playwright-cli screenshot --filename=<file>` for review evidence.",
177
- "If a `playwright-cli` command reports a missing browser executable, run `npx playwright install chromium` once and retry.",
178
- "If `playwright-cli` is unavailable after three attempts or the browser runtime still fails, surface the manual file path / URL."
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 script = liveScriptPath("live-poll.mjs");
220
- const run = input.deps?.run ?? runNodeScript;
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(script, [], input.workflowCwd, input.signal), "live poll");
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 script = liveScriptPath("live-poll.mjs");
253
- const run = input.deps?.run ?? runNodeScript;
254
- return assertSuccessfulScript(await run(script, args, input.workflowCwd, input.signal), "live reply");
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
- function liveScriptPath(script) {
257
- return fileURLToPath(new URL(`../skills/impeccable/scripts/${script}`, import.meta.url));
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 runNodeScript(scriptPath, args, cwd, signal) {
277
+ function runLiveHelper(launcher, args, cwd, signal) {
260
278
  return new Promise((resolve, reject) => {
261
- const child = spawn(process.execPath, [scriptPath, ...args], {
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.mjs` with `--target` pointed at the preview file, or the equivalent `.impeccable/live/config.json` entry, and open the URL that serves it.",
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 playwright-cli skill to open each gallery; if `playwright-cli` reports a missing browser executable, follow the bootstrap rules and retry once.",
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 \`playwright-cli video-start ${join2(args.artifactDir, "ref-<site>-<n>.webm")}\`, scroll smoothly in small increments with waits (using \`playwright-cli run-code\` or repeated \`playwright-cli mousewheel 0 600\`) so animations fire and lazy content loads, then run \`playwright-cli video-stop\`.`,
492
- `Also run \`playwright-cli screenshot --full-page --filename=${join2(args.artifactDir, "ref-<site>-<n>.png")}\`; this still is the minimum when video is unavailable.`,
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 `playwright-cli` 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."
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 (playwright-cli command + manual fallback path)",
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 playwright-cli skill's `playwright-cli` 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."
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 \`playwright-cli open ${specFileUrl}\`, and if a browser executable is missing follow those rules and retry once before \`playwright-cli snapshot\`.`,
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 playwrightCli = ensurePlaywrightCli();
768
- const browserBootstrapRules = buildPlaywrightCliBootstrapRules(playwrightCli);
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
- playwright_cli_status: playwrightCli.summary,
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(playwrightCli.available, "development") && typeof designContext.exit === "function") {
804
+ if (shouldEarlyExitForBrowser(agentBrowser.available, "development") && typeof designContext.exit === "function") {
786
805
  designContext.exit({
787
- reason: `open-claude-design needs the playwright-cli skill's browser for interactive design review, which is unavailable (${playwrightCli.error ?? playwrightCli.summary}). No design was generated. Install it (\`npm install -g @playwright/cli@latest\` + \`npx playwright install chromium\`) and re-run.`,
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
- playwright_cli_status: playwrightCli.summary
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
- playwright_cli_status: Type2.Optional(Type2.String({ description: "Outcome of the initial deterministic step that ensures the playwright-cli skill's `playwright-cli` command is installed." }))
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-n8g2da69.js";
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-n4yxrsm9.js";
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-1dydq7w3.js";
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 playwright-cli video-start ${qaVideoPath} after opening the browser, exercise the complete scenario, then video-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.`,
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-n8g2da69.js";
4
+ } from "./chunk-00ywx588.js";
5
5
  import {
6
6
  stableArtifactRoot
7
7
  } from "./chunk-rc5ec5xx.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  workflow,
3
3
  withBuiltinContext
4
- } from "./chunk-n8g2da69.js";
4
+ } from "./chunk-00ywx588.js";
5
5
  import {
6
6
  parse_rubric,
7
7
  normalize_criteria,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  workflow,
3
3
  withBuiltinContext
4
- } from "./chunk-n8g2da69.js";
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-n4yxrsm9.js";
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-1dydq7w3.js";
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 playwright-cli 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.",
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-kf5xpbkz.js";
5
- import"./chunk-n8g2da69.js";
6
- import"./chunk-n4yxrsm9.js";
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-scgprmdj.js";
4
- import"./chunk-n8g2da69.js";
5
- import"./chunk-n4yxrsm9.js";
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-d1xqh1rd.js";
3
+ } from "./chunk-55p5dxjk.js";
4
4
  import"./chunk-2377r57g.js";
5
5
  import"./chunk-n1910xc4.js";
6
- import"./chunk-n8g2da69.js";
7
- import"./chunk-n4yxrsm9.js";
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-vt9zgr9d.js";
4
- import"./chunk-1dydq7w3.js";
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-n8g2da69.js";
9
- import"./chunk-n4yxrsm9.js";
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 playwright_cli_status?: string;
41
+ readonly agent_browser_status?: string;
42
42
  };
43
43
  export type OpenClaudeDesignWorkflowDefinition = WorkflowDefinition<
44
44
  OpenClaudeDesignWorkflowInputs,
@@ -1,36 +1,36 @@
1
- import"./chunk-n8g2da69.js";
2
- import"./chunk-n4yxrsm9.js";
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-k18g9me8.js";
7
+ } from "./chunk-7h7s5xdj.js";
8
8
  import {
9
9
  classify_and_act_default
10
- } from "./chunk-kf5xpbkz.js";
10
+ } from "./chunk-tvcydq13.js";
11
11
  import {
12
12
  fan_out_and_synthesize_default
13
- } from "./chunk-scgprmdj.js";
13
+ } from "./chunk-ne6vh5ct.js";
14
14
  import {
15
15
  generate_and_filter_default
16
- } from "./chunk-d1xqh1rd.js";
17
- import"./chunk-1dydq7w3.js";
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-vt9zgr9d.js";
21
+ } from "./chunk-zj5162bh.js";
22
22
  import {
23
23
  open_claude_design_default
24
- } from "./chunk-119kxb28.js";
24
+ } from "./chunk-pfm1kgqz.js";
25
25
  import {
26
26
  loop_until_done_default
27
- } from "./chunk-sn5mchnx.js";
27
+ } from "./chunk-evfb0312.js";
28
28
  import {
29
29
  ralph_default
30
- } from "./chunk-hnbbb5r0.js";
30
+ } from "./chunk-tdqvdrg1.js";
31
31
  import {
32
32
  tournament_default
33
- } from "./chunk-9y0f90rd.js";
33
+ } from "./chunk-x2nftpgj.js";
34
34
  export {
35
35
  adversarial_verification_default as adversarialVerification,
36
36
  classify_and_act_default as classifyAndAct,