@rryando/arcs 3.10.0 → 4.0.0
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/README.md +172 -146
- package/dist/cli/agent-registry.d.ts +12 -0
- package/dist/cli/agent-registry.d.ts.map +1 -0
- package/dist/cli/agent-registry.js +67 -0
- package/dist/cli/agent-registry.js.map +1 -0
- package/dist/cli/arcs-flash.d.ts +2 -0
- package/dist/cli/arcs-flash.d.ts.map +1 -0
- package/dist/cli/arcs-flash.js +68 -0
- package/dist/cli/arcs-flash.js.map +1 -0
- package/dist/cli/arcs-orchestrate-caveman.d.ts +2 -14
- package/dist/cli/arcs-orchestrate-caveman.d.ts.map +1 -1
- package/dist/cli/arcs-orchestrate-caveman.js +6 -97
- package/dist/cli/arcs-orchestrate-caveman.js.map +1 -1
- package/dist/cli/arcs-orchestrate.d.ts +1 -1
- package/dist/cli/arcs-orchestrate.d.ts.map +1 -1
- package/dist/cli/arcs-orchestrate.js +40 -383
- package/dist/cli/arcs-orchestrate.js.map +1 -1
- package/dist/cli/bundle-installer.d.ts +10 -4
- package/dist/cli/bundle-installer.d.ts.map +1 -1
- package/dist/cli/bundle-installer.js +99 -6
- package/dist/cli/bundle-installer.js.map +1 -1
- package/dist/cli/commands/batch.js +4 -0
- package/dist/cli/commands/batch.js.map +1 -1
- package/dist/cli/commands/hooks.d.ts +76 -0
- package/dist/cli/commands/hooks.d.ts.map +1 -0
- package/dist/cli/commands/hooks.js +436 -0
- package/dist/cli/commands/hooks.js.map +1 -0
- package/dist/cli/commands/index.d.ts +2 -0
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +2 -0
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/project.js +27 -0
- package/dist/cli/commands/project.js.map +1 -1
- package/dist/cli/commands/task.js +16 -1
- package/dist/cli/commands/task.js.map +1 -1
- package/dist/cli/commands/web.d.ts +2 -0
- package/dist/cli/commands/web.d.ts.map +1 -0
- package/dist/cli/commands/web.js +66 -0
- package/dist/cli/commands/web.js.map +1 -0
- package/dist/cli/config.d.ts +46 -3
- package/dist/cli/config.d.ts.map +1 -1
- package/dist/cli/config.js +95 -38
- package/dist/cli/config.js.map +1 -1
- package/dist/cli/instructions.d.ts +32 -7
- package/dist/cli/instructions.d.ts.map +1 -1
- package/dist/cli/instructions.js +99 -34
- package/dist/cli/instructions.js.map +1 -1
- package/dist/cli/orchestrator-shared-blocks.d.ts +31 -0
- package/dist/cli/orchestrator-shared-blocks.d.ts.map +1 -0
- package/dist/cli/orchestrator-shared-blocks.js +148 -0
- package/dist/cli/orchestrator-shared-blocks.js.map +1 -0
- package/dist/cli/setup.d.ts.map +1 -1
- package/dist/cli/setup.js +230 -91
- package/dist/cli/setup.js.map +1 -1
- package/dist/retrieval/index-builder.d.ts.map +1 -1
- package/dist/retrieval/index-builder.js +29 -1
- package/dist/retrieval/index-builder.js.map +1 -1
- package/dist/shared/session-vocabulary.d.ts +88 -0
- package/dist/shared/session-vocabulary.d.ts.map +1 -0
- package/dist/shared/session-vocabulary.js +114 -0
- package/dist/shared/session-vocabulary.js.map +1 -0
- package/dist/utils/claude-code-hook-install.d.ts +80 -0
- package/dist/utils/claude-code-hook-install.d.ts.map +1 -0
- package/dist/utils/claude-code-hook-install.js +211 -0
- package/dist/utils/claude-code-hook-install.js.map +1 -0
- package/dist/utils/claude-transcript.d.ts +206 -0
- package/dist/utils/claude-transcript.d.ts.map +1 -0
- package/dist/utils/claude-transcript.js +384 -0
- package/dist/utils/claude-transcript.js.map +1 -0
- package/dist/utils/diagram-generator.d.ts +1 -1
- package/dist/utils/diagram-generator.d.ts.map +1 -1
- package/dist/utils/diagram-generator.js +3 -2
- package/dist/utils/diagram-generator.js.map +1 -1
- package/dist/utils/errors.d.ts +6 -2
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js +12 -0
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/git.d.ts +21 -0
- package/dist/utils/git.d.ts.map +1 -1
- package/dist/utils/git.js +65 -1
- package/dist/utils/git.js.map +1 -1
- package/dist/utils/hook-contract.d.ts +36 -0
- package/dist/utils/hook-contract.d.ts.map +1 -0
- package/dist/utils/hook-contract.js +35 -0
- package/dist/utils/hook-contract.js.map +1 -0
- package/dist/utils/hook-token-store.d.ts +61 -0
- package/dist/utils/hook-token-store.d.ts.map +1 -0
- package/dist/utils/hook-token-store.js +86 -0
- package/dist/utils/hook-token-store.js.map +1 -0
- package/dist/utils/json-schemas.d.ts +186 -2
- package/dist/utils/json-schemas.d.ts.map +1 -1
- package/dist/utils/json-schemas.js +48 -4
- package/dist/utils/json-schemas.js.map +1 -1
- package/dist/utils/knowledge-store.d.ts +7 -1
- package/dist/utils/knowledge-store.d.ts.map +1 -1
- package/dist/utils/knowledge-store.js +97 -65
- package/dist/utils/knowledge-store.js.map +1 -1
- package/dist/utils/plan-store.d.ts +8 -0
- package/dist/utils/plan-store.d.ts.map +1 -1
- package/dist/utils/plan-store.js +98 -59
- package/dist/utils/plan-store.js.map +1 -1
- package/dist/utils/project-resolver.d.ts +8 -0
- package/dist/utils/project-resolver.d.ts.map +1 -1
- package/dist/utils/project-resolver.js +7 -2
- package/dist/utils/project-resolver.js.map +1 -1
- package/dist/utils/session-store.d.ts +339 -0
- package/dist/utils/session-store.d.ts.map +1 -0
- package/dist/utils/session-store.js +577 -0
- package/dist/utils/session-store.js.map +1 -0
- package/dist/utils/storage-utils.d.ts +31 -0
- package/dist/utils/storage-utils.d.ts.map +1 -1
- package/dist/utils/storage-utils.js +116 -5
- package/dist/utils/storage-utils.js.map +1 -1
- package/dist/utils/task-store.d.ts +7 -0
- package/dist/utils/task-store.d.ts.map +1 -1
- package/dist/utils/task-store.js +73 -23
- package/dist/utils/task-store.js.map +1 -1
- package/dist/web-client/assets/GraphCanvas-CTyf_XXQ.js +1 -0
- package/dist/web-client/assets/MarkdownEditor-af2vwQOX.js +77 -0
- package/dist/web-client/assets/abnfDiagram-VRR7QNED-CdxcKX9t.js +1 -0
- package/dist/web-client/assets/arc-Bfaogrm1.js +1 -0
- package/dist/web-client/assets/architecture-TIHT7OUA-Bt2-DmfV.js +1 -0
- package/dist/web-client/assets/architectureDiagram-ZJ3FMSHR-DOISDv6o.js +36 -0
- package/dist/web-client/assets/array-BifhSqXX.js +1 -0
- package/dist/web-client/assets/blockDiagram-677ZJIJ3-DKwtbttM.js +132 -0
- package/dist/web-client/assets/c4Diagram-LMCZKHZV-CilqK-Mm.js +10 -0
- package/dist/web-client/assets/channel-C2mb9np_.js +1 -0
- package/dist/web-client/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
- package/dist/web-client/assets/chunk-32BRIVSS-C79m1mkG.js +1 -0
- package/dist/web-client/assets/chunk-52WLFC77-C6WelGWJ.js +10 -0
- package/dist/web-client/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
- package/dist/web-client/assets/chunk-7BUUIJ7U-Bb538aSH.js +1 -0
- package/dist/web-client/assets/chunk-C7G6YPKG-DLg7ryWI.js +1 -0
- package/dist/web-client/assets/chunk-EX3LRPZG-DjWgo4gL.js +231 -0
- package/dist/web-client/assets/chunk-FWX5IMBZ-BgS9p_zy.js +2 -0
- package/dist/web-client/assets/chunk-HOUHSVGY-DuVR7dZO.js +1 -0
- package/dist/web-client/assets/chunk-ICXQ74PX-Y8DlnIJM.js +2 -0
- package/dist/web-client/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
- package/dist/web-client/assets/chunk-KEIR6QF5-DEvma7oi.js +161 -0
- package/dist/web-client/assets/chunk-MOJQB5TN-BEM3QgeD.js +88 -0
- package/dist/web-client/assets/chunk-OGEWGWER-DlM8LxGr.js +1 -0
- package/dist/web-client/assets/chunk-PUDLZKDR-c6cqNVTx.js +156 -0
- package/dist/web-client/assets/chunk-Q4XR5HBZ-C5lNmcka.js +70 -0
- package/dist/web-client/assets/chunk-RYQCIY6F-np2RyIY1.js +1 -0
- package/dist/web-client/assets/chunk-V7JOEXUC-nSswxvSG.js +206 -0
- package/dist/web-client/assets/chunk-VAUOI2AC-CqJkCkT0.js +1 -0
- package/dist/web-client/assets/chunk-VR4S4FIN-D3pFchin.js +1 -0
- package/dist/web-client/assets/chunk-WYO6CB5R-BI9c-NzI.js +125 -0
- package/dist/web-client/assets/chunk-XXDRQBXY-BvKO0v-W.js +1 -0
- package/dist/web-client/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
- package/dist/web-client/assets/chunk-ZGVPDNZ5-CKTF2kLR.js +62 -0
- package/dist/web-client/assets/chunk-ZIRB5QZD-BpeS1aZ7.js +32 -0
- package/dist/web-client/assets/classDiagram-OUVF2IWQ-CPd_w3Zr.js +1 -0
- package/dist/web-client/assets/classDiagram-v2-EOCWNBFH-CPd_w3Zr.js +1 -0
- package/dist/web-client/assets/cose-bilkent-JH36ORCC-BebHqzgp.js +1 -0
- package/dist/web-client/assets/cynefin-VYW2F7L2-BrJrnfh1.js +1 -0
- package/dist/web-client/assets/cynefinDiagram-TSTJHNR4-9jYzPWJZ.js +62 -0
- package/dist/web-client/assets/cytoscape-fcose-peAzqedC.js +1 -0
- package/dist/web-client/assets/cytoscape.esm-C3UvhD5t.js +321 -0
- package/dist/web-client/assets/dagre-Buvkdvvj.js +1 -0
- package/dist/web-client/assets/dagre-VKFMJZFB-B705Djpu.js +4 -0
- package/dist/web-client/assets/defaultLocale-BFoDCU3G.js +1 -0
- package/dist/web-client/assets/diagram-FQU43EPY-BfQAlUlJ.js +3 -0
- package/dist/web-client/assets/diagram-G47NLZAW-s1YDe06A.js +24 -0
- package/dist/web-client/assets/diagram-NH7WQ7WH-Dy3z11Hc.js +24 -0
- package/dist/web-client/assets/diagram-OA4YK3LP-Bius2xUN.js +30 -0
- package/dist/web-client/assets/diagram-WEI45ONY-D7x4VcHM.js +41 -0
- package/dist/web-client/assets/dist-B_J_HbC0.js +1 -0
- package/dist/web-client/assets/ebnfDiagram-CCIWWBDH-CBg1xrmD.js +1 -0
- package/dist/web-client/assets/erDiagram-Q63AITRT-CJRvTFvd.js +85 -0
- package/dist/web-client/assets/eventmodeling-45OFAUF4-CTKRC2Yj.js +1 -0
- package/dist/web-client/assets/flowDiagram-23GEKE2U-CaZjFyU1.js +1 -0
- package/dist/web-client/assets/ganttDiagram-NO4QXBWP-C_LsypZ4.js +292 -0
- package/dist/web-client/assets/gitGraph-TEB2WS4Q-Dx2XxdGk.js +1 -0
- package/dist/web-client/assets/gitGraphDiagram-IHSO6WYX-DiKWkGWQ.js +106 -0
- package/dist/web-client/assets/graphlib-DS17s2tU.js +1 -0
- package/dist/web-client/assets/index-CYwhkPtc.js +60 -0
- package/dist/web-client/assets/index-wSzUPvml.css +2 -0
- package/dist/web-client/assets/info-DKCQHKI2-DORwHenK.js +1 -0
- package/dist/web-client/assets/infoDiagram-FWYZ7A6U-CQecXS1E.js +2 -0
- package/dist/web-client/assets/init-C-OQMol4.js +1 -0
- package/dist/web-client/assets/ishikawaDiagram-FXEZZL3T-CWhj60Zp.js +70 -0
- package/dist/web-client/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/web-client/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/web-client/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/web-client/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/web-client/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/web-client/assets/journeyDiagram-5HDEW3XC-Cj3z2U8u.js +139 -0
- package/dist/web-client/assets/kanban-definition-HUTT4EX6-DFmBRenP.js +89 -0
- package/dist/web-client/assets/katex-DolUETbr.js +257 -0
- package/dist/web-client/assets/line-C_Hxz9xb.js +1 -0
- package/dist/web-client/assets/linear-DeUiD2wj.js +1 -0
- package/dist/web-client/assets/map-BaFkSB1l.js +1 -0
- package/dist/web-client/assets/mermaid-parser.core-E3xRdzPn.js +7 -0
- package/dist/web-client/assets/mermaid.core-C2_CcotH.js +11 -0
- package/dist/web-client/assets/mindmap-definition-LN4V7U3C-Bs7VxPid.js +96 -0
- package/dist/web-client/assets/ordinal-BDEzSJ7C.js +1 -0
- package/dist/web-client/assets/packet-7NZHBO7P-D2nqso7i.js +1 -0
- package/dist/web-client/assets/path-COt_16Va.js +1 -0
- package/dist/web-client/assets/pegDiagram-2B236MQR-Cepo1sIu.js +1 -0
- package/dist/web-client/assets/pie-RZYD4A2V-Sx0IGbXt.js +1 -0
- package/dist/web-client/assets/pieDiagram-ENE6RG2P-D-PMDNhk.js +39 -0
- package/dist/web-client/assets/quadrantDiagram-ABIIQ3AL-BNGC7Fms.js +7 -0
- package/dist/web-client/assets/radar-I7S5WNFK-CFf_-2OC.js +1 -0
- package/dist/web-client/assets/railroad-3IZDKUUU-BvZeVRGh.js +1 -0
- package/dist/web-client/assets/railroad-abnf-AHOZXSZD-DnGh6x2O.js +1 -0
- package/dist/web-client/assets/railroad-ebnf-EBAXGLYW-CGfgCoaE.js +1 -0
- package/dist/web-client/assets/railroad-peg-LSFZ7HO6-BzQxYdqp.js +1 -0
- package/dist/web-client/assets/railroadDiagram-RFXS5EU6-D0iK_k84.js +1 -0
- package/dist/web-client/assets/requirementDiagram-TGXJPOKE-BPdsw9tz.js +84 -0
- package/dist/web-client/assets/rolldown-runtime-Dd_uD5pT.js +1 -0
- package/dist/web-client/assets/rough.esm-By172zw-.js +1 -0
- package/dist/web-client/assets/sankeyDiagram-HTMAVEWB-maA6ukOJ.js +40 -0
- package/dist/web-client/assets/sequenceDiagram-DBY2YBRQ-DKmAjmgr.js +162 -0
- package/dist/web-client/assets/sizeCapture-X5ZJPWSS-B0uUizjq.js +1 -0
- package/dist/web-client/assets/src-oBChb5qS.js +1 -0
- package/dist/web-client/assets/stateDiagram-2N3HPSRC-esxmzk3w.js +1 -0
- package/dist/web-client/assets/stateDiagram-v2-6OUMAXLB-hcBqlOLc.js +1 -0
- package/dist/web-client/assets/swimlanes-5IMT3BWC-DFd-wGBv.js +2 -0
- package/dist/web-client/assets/swimlanesDiagram-G3AALYLV-DbSrPBYr.js +8 -0
- package/dist/web-client/assets/timeline-definition-FHXFAJF6-C7SG8MQH.js +120 -0
- package/dist/web-client/assets/treeView-QDETBFTQ-M0rhxbs2.js +1 -0
- package/dist/web-client/assets/treemap-6X3UGDF4-BQfkQxSh.js +1 -0
- package/dist/web-client/assets/vennDiagram-L72KCM5P-CyIlb8ju.js +34 -0
- package/dist/web-client/assets/wardley-OPB4EBWU-EE-7q8M1.js +1 -0
- package/dist/web-client/assets/wardleyDiagram-EHGQE667-bY8XdYYS.js +78 -0
- package/dist/web-client/assets/xychartDiagram-FW5EYKEG-AhuXJ3de.js +7 -0
- package/dist/web-client/index.html +15 -0
- package/dist/web-server/app.d.ts +16 -0
- package/dist/web-server/app.d.ts.map +1 -0
- package/dist/web-server/app.js +77 -0
- package/dist/web-server/app.js.map +1 -0
- package/dist/web-server/claude-runner.d.ts +188 -0
- package/dist/web-server/claude-runner.d.ts.map +1 -0
- package/dist/web-server/claude-runner.js +599 -0
- package/dist/web-server/claude-runner.js.map +1 -0
- package/dist/web-server/hook-auth.d.ts +12 -0
- package/dist/web-server/hook-auth.d.ts.map +1 -0
- package/dist/web-server/hook-auth.js +36 -0
- package/dist/web-server/hook-auth.js.map +1 -0
- package/dist/web-server/index.d.ts +23 -0
- package/dist/web-server/index.d.ts.map +1 -0
- package/dist/web-server/index.js +50 -0
- package/dist/web-server/index.js.map +1 -0
- package/dist/web-server/opencode-client.d.ts +123 -0
- package/dist/web-server/opencode-client.d.ts.map +1 -0
- package/dist/web-server/opencode-client.js +514 -0
- package/dist/web-server/opencode-client.js.map +1 -0
- package/dist/web-server/permission-policy.d.ts +46 -0
- package/dist/web-server/permission-policy.d.ts.map +1 -0
- package/dist/web-server/permission-policy.js +96 -0
- package/dist/web-server/permission-policy.js.map +1 -0
- package/dist/web-server/prompt-assembly.d.ts +454 -0
- package/dist/web-server/prompt-assembly.d.ts.map +1 -0
- package/dist/web-server/prompt-assembly.js +1122 -0
- package/dist/web-server/prompt-assembly.js.map +1 -0
- package/dist/web-server/respond.d.ts +33 -0
- package/dist/web-server/respond.d.ts.map +1 -0
- package/dist/web-server/respond.js +79 -0
- package/dist/web-server/respond.js.map +1 -0
- package/dist/web-server/routes/collections.d.ts +11 -0
- package/dist/web-server/routes/collections.d.ts.map +1 -0
- package/dist/web-server/routes/collections.js +217 -0
- package/dist/web-server/routes/collections.js.map +1 -0
- package/dist/web-server/routes/discovery.d.ts +7 -0
- package/dist/web-server/routes/discovery.d.ts.map +1 -0
- package/dist/web-server/routes/discovery.js +159 -0
- package/dist/web-server/routes/discovery.js.map +1 -0
- package/dist/web-server/routes/events.d.ts +6 -0
- package/dist/web-server/routes/events.d.ts.map +1 -0
- package/dist/web-server/routes/events.js +25 -0
- package/dist/web-server/routes/events.js.map +1 -0
- package/dist/web-server/routes/hook-events.d.ts +44 -0
- package/dist/web-server/routes/hook-events.d.ts.map +1 -0
- package/dist/web-server/routes/hook-events.js +320 -0
- package/dist/web-server/routes/hook-events.js.map +1 -0
- package/dist/web-server/routes/projects.d.ts +7 -0
- package/dist/web-server/routes/projects.d.ts.map +1 -0
- package/dist/web-server/routes/projects.js +272 -0
- package/dist/web-server/routes/projects.js.map +1 -0
- package/dist/web-server/routes/sessions.d.ts +18 -0
- package/dist/web-server/routes/sessions.d.ts.map +1 -0
- package/dist/web-server/routes/sessions.js +1298 -0
- package/dist/web-server/routes/sessions.js.map +1 -0
- package/dist/web-server/routes/workspace.d.ts +27 -0
- package/dist/web-server/routes/workspace.d.ts.map +1 -0
- package/dist/web-server/routes/workspace.js +280 -0
- package/dist/web-server/routes/workspace.js.map +1 -0
- package/dist/web-server/run-event-log.d.ts +167 -0
- package/dist/web-server/run-event-log.d.ts.map +1 -0
- package/dist/web-server/run-event-log.js +468 -0
- package/dist/web-server/run-event-log.js.map +1 -0
- package/dist/web-server/security.d.ts +7 -0
- package/dist/web-server/security.d.ts.map +1 -0
- package/dist/web-server/security.js +41 -0
- package/dist/web-server/security.js.map +1 -0
- package/dist/web-server/session-reconciler.d.ts +162 -0
- package/dist/web-server/session-reconciler.d.ts.map +1 -0
- package/dist/web-server/session-reconciler.js +363 -0
- package/dist/web-server/session-reconciler.js.map +1 -0
- package/dist/web-server/static.d.ts +17 -0
- package/dist/web-server/static.d.ts.map +1 -0
- package/dist/web-server/static.js +79 -0
- package/dist/web-server/static.js.map +1 -0
- package/dist/web-server/storage.d.ts +17 -0
- package/dist/web-server/storage.d.ts.map +1 -0
- package/dist/web-server/storage.js +42 -0
- package/dist/web-server/storage.js.map +1 -0
- package/dist/web-server/watcher.d.ts +37 -0
- package/dist/web-server/watcher.d.ts.map +1 -0
- package/dist/web-server/watcher.js +181 -0
- package/dist/web-server/watcher.js.map +1 -0
- package/dist/web-server/web-auth.d.ts +17 -0
- package/dist/web-server/web-auth.d.ts.map +1 -0
- package/dist/web-server/web-auth.js +33 -0
- package/dist/web-server/web-auth.js.map +1 -0
- package/dist/web-server/web-token.d.ts +39 -0
- package/dist/web-server/web-token.d.ts.map +1 -0
- package/dist/web-server/web-token.js +71 -0
- package/dist/web-server/web-token.js.map +1 -0
- package/opencode/arcs/bundle-runtime.json +5 -13
- package/opencode/arcs/manifest.json +215 -151
- package/opencode/arcs/prompts/arcs-docs.txt +53 -47
- package/opencode/arcs/prompts/arcs-flash.txt +190 -0
- package/opencode/arcs/prompts/arcs-orchestrate-caveman.txt +116 -422
- package/opencode/arcs/prompts/arcs-orchestrate.txt +114 -341
- package/opencode/arcs/prompts/code-reviewer.txt +37 -98
- package/opencode/arcs/prompts/devil-advocate.txt +44 -115
- package/opencode/arcs/prompts/graph-explorer.txt +31 -179
- package/opencode/arcs/prompts/software-engineer.txt +24 -6
- package/opencode/arcs/prompts/tech-architect.txt +25 -9
- package/opencode/arcs/skills/brainstorming/SKILL.md +65 -105
- package/opencode/arcs/skills/deep-pr-review/SKILL.md +5 -5
- package/opencode/arcs/skills/deep-pr-review/review-template.md +1 -1
- package/opencode/arcs/skills/enriching-codegraph-proposals/SKILL.md +17 -18
- package/opencode/arcs/skills/executing-plans/SKILL.md +26 -234
- package/opencode/arcs/skills/implementation/SKILL.md +61 -0
- package/opencode/arcs/skills/init-project/SKILL.md +16 -15
- package/opencode/arcs/skills/install-claude-code-hook/SKILL.md +143 -0
- package/opencode/arcs/skills/systematic-debugging/SKILL.md +7 -7
- package/opencode/arcs/skills/test-driven-development/SKILL.md +1 -1
- package/opencode/arcs/skills/to-diagram/SKILL.md +8 -3
- package/opencode/arcs/skills/writing-knowledge/SKILL.md +7 -6
- package/opencode/arcs/skills/writing-plans/SKILL.md +80 -130
- package/opencode/arcs/skills/writing-plans/plan-document-reviewer-prompt.md +38 -30
- package/package.json +14 -6
- package/scripts/build-opencode-bundle.mjs +22 -7
- package/scripts/claude-code-session-hook.mjs +171 -0
- package/scripts/deploy-claudecode-bundle.mjs +206 -132
- package/scripts/deploy-opencode-bundle.mjs +181 -5
- package/scripts/lib/bundle-helpers.mjs +26 -0
- package/scripts/lint-bundle.mjs +123 -3
- package/skills/explore-dag.md +5 -3
- package/skills/init-project.md +27 -26
- package/skills/orchestrate.md +29 -13
- package/skills/update-docs.md +8 -13
- package/opencode/arcs/prompts/docs-researcher.txt +0 -79
- package/opencode/arcs/prompts/oncall-ops.txt +0 -85
- package/opencode/arcs/skills/code-agent/SKILL.md +0 -63
- package/opencode/arcs/skills/executing-plans/code-quality-reviewer-prompt.md +0 -57
- package/opencode/arcs/skills/executing-plans/implementer-prompt.md +0 -152
- package/opencode/arcs/skills/executing-plans/spec-reviewer-prompt.md +0 -91
- package/opencode/arcs/skills/quick-dev/SKILL.md +0 -52
- package/opencode/arcs/skills/requesting-code-review/SKILL.md +0 -59
- package/opencode/arcs/skills/requesting-code-review/code-reviewer.md +0 -139
- package/opencode/arcs/skills/the-ladder/SKILL.md +0 -54
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagram-generator.js","sourceRoot":"","sources":["../../src/utils/diagram-generator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"diagram-generator.js","sourceRoot":"","sources":["../../src/utils/diagram-generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAiB,MAAM,iBAAiB,CAAC;AAa3E;;;;;;;GAOG;AACH,MAAM,UAAU,wBAAwB,CAAC,MAAc,EAAE,KAAiB;IACxE,MAAM,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAEnE,MAAM,KAAK,GAAkB,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QACjD,MAAM,EAAE,IAAI,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE;QAC5C,MAAM,EAAE,CAAC,CAAC,EAAE;QACZ,KAAK,EAAE,CAAC,CAAC,KAAK;KACf,CAAC,CAAC,CAAC;IAEJ,uDAAuD;IACvD,MAAM,cAAc,GAAG,IAAI,GAAG,EAAkB,CAAC;IACjD,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC/C,CAAC;IAED,2DAA2D;IAC3D,MAAM,cAAc,GAAG,IAAI,GAAG,EAAkB,CAAC;IACjD,KAAK,MAAM,CAAC,IAAI,MAAM,EAAE,CAAC;QACvB,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED,iCAAiC;IACjC,MAAM,YAAY,GAAa,EAAE,CAAC;I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;IACD,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEf,qEAAqE;IACrE,MAAM,SAAS,GAAa,EAAE,CAAC;IAC/B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACvC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QACpB,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QAC5B,MAAM,IAAI,GAAG,CAAC,CAAC,SAAS,IAAI,EAAE,CAAC;QAC/B,KAAK,MAAM,KAAK,IAAI,IAAI,EAAE,CAAC;YACzB,MAAM,YAAY,GAAG,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAC/C,IAAI,YAAY,EAAE,CAAC;gBACjB,SAAS,CAAC,IAAI,CAAC,OAAO,YAAY,QAAQ,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;YACjE,CAAC;QACH,CAAC;IACH,CAAC;IACD,SAAS,CAAC,IAAI,EAAE,CAAC;IACjB,KAAK,MAAM,IAAI,IAAI,SAAS,EAAE,CAAC;QAC7B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;IACD,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACzB,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IAED,OAAO,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;AACjD,CAAC"}
|
package/dist/utils/errors.d.ts
CHANGED
|
@@ -15,11 +15,15 @@ export declare function dependencyNotFound(ids: string[]): DagError;
|
|
|
15
15
|
export declare function invalidPlanStatus(status: string): DagError;
|
|
16
16
|
export declare function invalidTaskStatus(status: string): DagError;
|
|
17
17
|
export declare function invalidTaskPriority(priority: string): DagError;
|
|
18
|
+
export declare function invalidSessionStatus(status: string): DagError;
|
|
19
|
+
export declare function invalidSessionRuntimeType(runtimeType: string): DagError;
|
|
20
|
+
export declare function invalidSessionId(runtimeSessionId: string): DagError;
|
|
21
|
+
export declare function invalidSessionLink(detail: string): DagError;
|
|
18
22
|
export declare function invalidKnowledgeKind(kind: string): DagError;
|
|
19
23
|
export declare function invalidKeyword(keyword: string): DagError;
|
|
20
24
|
export declare function invalidFileRef(detail: string): DagError;
|
|
21
|
-
export declare function normalizedIdCollision(kind: "plan" | "knowledge entry" | "task", requestedId: string, normalizedId: string): DagError;
|
|
22
|
-
export declare function itemNotFound(kind: "plan" | "knowledge entry" | "task", id: string): DagError;
|
|
25
|
+
export declare function normalizedIdCollision(kind: "plan" | "knowledge entry" | "task" | "session", requestedId: string, normalizedId: string): DagError;
|
|
26
|
+
export declare function itemNotFound(kind: "plan" | "knowledge entry" | "task" | "session", id: string): DagError;
|
|
23
27
|
export declare function planNotFound(slug: string, planId: string): DagError;
|
|
24
28
|
export declare function invalidFileFormat(filePath: string, details: string): DagError;
|
|
25
29
|
export declare function indexRebuildFailed(kind: "plans" | "knowledge", reason: string): DagError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/utils/errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,qBAAa,QAAS,SAAQ,KAAK;aAEf,IAAI,EAAE,MAAM;gBAAZ,IAAI,EAAE,MAAM,EAC5B,OAAO,EAAE,MAAM;CAKlB;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAEtD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAE3D;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAKpD;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,CAKxE;AAED,wBAAgB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G,QAAQ,CAE7E;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,CAExF;AAED,wBAAgB,cAAc,CAAC,aAAa,EAAE,MAAM,GAAG,QAAQ,CAM9D;AAED,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,QAAQ,CAMtF;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAK3D;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAKvD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,QAAQ;;;;;;EAExC"}
|
package/dist/utils/errors.js
CHANGED
|
@@ -40,6 +40,18 @@ export function invalidTaskStatus(status) {
|
|
|
40
40
|
export function invalidTaskPriority(priority) {
|
|
41
41
|
return new DagError("INVALID_TASK_PRIORITY", `Invalid task priority "${priority}".`);
|
|
42
42
|
}
|
|
43
|
+
export function invalidSessionStatus(status) {
|
|
44
|
+
return new DagError("INVALID_SESSION_STATUS", `Invalid session status "${status}".`);
|
|
45
|
+
}
|
|
46
|
+
export function invalidSessionRuntimeType(runtimeType) {
|
|
47
|
+
return new DagError("INVALID_SESSION_RUNTIME_TYPE", `Invalid session runtime type "${runtimeType}".`);
|
|
48
|
+
}
|
|
49
|
+
export function invalidSessionId(runtimeSessionId) {
|
|
50
|
+
return new DagError("INVALID_SESSION_ID", `Invalid runtime session id "${runtimeSessionId}". Must contain at least one alphanumeric character.`);
|
|
51
|
+
}
|
|
52
|
+
export function invalidSessionLink(detail) {
|
|
53
|
+
return new DagError("INVALID_SESSION_LINK", `Invalid session link: ${detail}`);
|
|
54
|
+
}
|
|
43
55
|
export function invalidKnowledgeKind(kind) {
|
|
44
56
|
return new DagError("INVALID_KNOWLEDGE_KIND", `Invalid knowledge kind "${kind}".`);
|
|
45
57
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AoB,EACpB,8CAA8C,IAAI,iDAAiD,CACpG,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,GAAa;IACvC,OAAO,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;AAC1C,CAAC"}
|
package/dist/utils/git.d.ts
CHANGED
|
@@ -4,8 +4,29 @@ export interface GitLogEntry {
|
|
|
4
4
|
date: string;
|
|
5
5
|
filesChanged: string[];
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* Ceiling on one async git invocation. A `git` that never returns — a
|
|
9
|
+
* network-backed worktree, an index.lock held by another process — must fail
|
|
10
|
+
* closed to "no revision" rather than pin a request open forever. Generous
|
|
11
|
+
* enough that a cold `rev-parse` on a large repo still answers.
|
|
12
|
+
*
|
|
13
|
+
* Exported for the tests that assert the deadline is actually honoured.
|
|
14
|
+
*/
|
|
15
|
+
export declare const GIT_ASYNC_TIMEOUT_MS = 2000;
|
|
7
16
|
export declare function isGitRepo(cwd: string): boolean;
|
|
8
17
|
export declare function getHeadCommit(cwd: string): string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Async twin of `getHeadCommit`, for callers on a request path.
|
|
20
|
+
*
|
|
21
|
+
* The sync export stays as it is — its callers are CLI, where blocking costs
|
|
22
|
+
* nothing. A server is the opposite case: `execSync` holds the whole event
|
|
23
|
+
* loop for the child's entire lifetime, so one file view stalls every other
|
|
24
|
+
* in-flight request and every open SSE stream. Use this one from a handler.
|
|
25
|
+
*
|
|
26
|
+
* Settles within `GIT_ASYNC_TIMEOUT_MS` plus a small grace no matter what the
|
|
27
|
+
* child does — see `execAsync` for why that needs a race rather than a timeout.
|
|
28
|
+
*/
|
|
29
|
+
export declare function getHeadCommitAsync(cwd: string): Promise<string | null>;
|
|
9
30
|
export declare function getGitLog(cwd: string, options?: {
|
|
10
31
|
since?: string;
|
|
11
32
|
limit?: number;
|
package/dist/utils/git.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../src/utils/git.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../src/utils/git.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAID;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAyDzC,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAE9C;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAExD;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAE5E;AAED,wBAAgB,SAAS,CACvB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAC3C,WAAW,EAAE,CAkCf;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAIzE"}
|
package/dist/utils/git.js
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
import { execSync } from "node:child_process";
|
|
1
|
+
import { execFile, execSync } from "node:child_process";
|
|
2
|
+
import { promisify } from "node:util";
|
|
3
|
+
const execFileAsync = promisify(execFile);
|
|
4
|
+
/**
|
|
5
|
+
* Ceiling on one async git invocation. A `git` that never returns — a
|
|
6
|
+
* network-backed worktree, an index.lock held by another process — must fail
|
|
7
|
+
* closed to "no revision" rather than pin a request open forever. Generous
|
|
8
|
+
* enough that a cold `rev-parse` on a large repo still answers.
|
|
9
|
+
*
|
|
10
|
+
* Exported for the tests that assert the deadline is actually honoured.
|
|
11
|
+
*/
|
|
12
|
+
export const GIT_ASYNC_TIMEOUT_MS = 2000;
|
|
13
|
+
/** Slack the raced deadline allows the child's own kill path before giving up
|
|
14
|
+
* on it, so a child that DOES die on signal reports its real failure. */
|
|
15
|
+
const GIT_DEADLINE_GRACE_MS = 100;
|
|
2
16
|
function exec(cmd, cwd) {
|
|
3
17
|
try {
|
|
4
18
|
return execSync(cmd, {
|
|
@@ -11,12 +25,62 @@ function exec(cmd, cwd) {
|
|
|
11
25
|
return null;
|
|
12
26
|
}
|
|
13
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Async: run `git` with an argv array, never a shell, and never a sync spawn.
|
|
30
|
+
* Same contract as `exec` above — trimmed stdout, or `null` for any failure —
|
|
31
|
+
* so an async caller reads the same values a sync one would.
|
|
32
|
+
*
|
|
33
|
+
* The deadline is RACED, not delegated to `timeout`. Node's `timeout` option
|
|
34
|
+
* guarantees a kill ATTEMPT, not a settlement: it signals the child and then
|
|
35
|
+
* waits for `close`, so a child that cannot act on the signal never fires the
|
|
36
|
+
* callback and the promise stays pending forever — a request that hangs holding
|
|
37
|
+
* its connection even though the timeout fired. The realistic instance is
|
|
38
|
+
* D-state I/O on a stalled NFS/FUSE mount, which is exactly the wedged-worktree
|
|
39
|
+
* case this budget exists for; `killSignal: "SIGKILL"` narrows the window (it
|
|
40
|
+
* beats a child that merely ignores SIGTERM) but does not close it, since
|
|
41
|
+
* SIGKILL does not touch uninterruptible sleep either. Racing our own timer is
|
|
42
|
+
* what actually bounds the caller, and `unref` keeps a pending timer from
|
|
43
|
+
* holding the process open on the way out.
|
|
44
|
+
*
|
|
45
|
+
* What this does NOT do is reap the child: nothing can until the I/O returns.
|
|
46
|
+
* A caller that retries against a stalled mount still accumulates live children
|
|
47
|
+
* — bound that separately if it ever matters here.
|
|
48
|
+
*/
|
|
49
|
+
function execAsync(args, cwd) {
|
|
50
|
+
const ran = execFileAsync("git", args, {
|
|
51
|
+
encoding: "utf-8",
|
|
52
|
+
cwd,
|
|
53
|
+
timeout: GIT_ASYNC_TIMEOUT_MS,
|
|
54
|
+
killSignal: "SIGKILL",
|
|
55
|
+
windowsHide: true,
|
|
56
|
+
})
|
|
57
|
+
.then(({ stdout }) => stdout.trim())
|
|
58
|
+
.catch(() => null);
|
|
59
|
+
const expired = new Promise((resolve) => {
|
|
60
|
+
setTimeout(() => resolve(null), GIT_ASYNC_TIMEOUT_MS + GIT_DEADLINE_GRACE_MS).unref();
|
|
61
|
+
});
|
|
62
|
+
return Promise.race([ran, expired]);
|
|
63
|
+
}
|
|
14
64
|
export function isGitRepo(cwd) {
|
|
15
65
|
return exec("git rev-parse --is-inside-work-tree", cwd) === "true";
|
|
16
66
|
}
|
|
17
67
|
export function getHeadCommit(cwd) {
|
|
18
68
|
return exec("git rev-parse --short HEAD", cwd);
|
|
19
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Async twin of `getHeadCommit`, for callers on a request path.
|
|
72
|
+
*
|
|
73
|
+
* The sync export stays as it is — its callers are CLI, where blocking costs
|
|
74
|
+
* nothing. A server is the opposite case: `execSync` holds the whole event
|
|
75
|
+
* loop for the child's entire lifetime, so one file view stalls every other
|
|
76
|
+
* in-flight request and every open SSE stream. Use this one from a handler.
|
|
77
|
+
*
|
|
78
|
+
* Settles within `GIT_ASYNC_TIMEOUT_MS` plus a small grace no matter what the
|
|
79
|
+
* child does — see `execAsync` for why that needs a race rather than a timeout.
|
|
80
|
+
*/
|
|
81
|
+
export async function getHeadCommitAsync(cwd) {
|
|
82
|
+
return execAsync(["rev-parse", "--short", "HEAD"], cwd);
|
|
83
|
+
}
|
|
20
84
|
export function getGitLog(cwd, options) {
|
|
21
85
|
const limit = options?.limit ?? 50;
|
|
22
86
|
const since = options?.since;
|
package/dist/utils/git.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../src/utils/git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../src/utils/git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAStC,MAAM,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AAE1C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC;AAEzC;0EAC0E;AAC1E,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAElC,SAAS,IAAI,CAAC,GAAW,EAAE,GAAW;IACpC,IAAI,CAAC;QACH,OAAO,QAAQ,CAAC,GAAG,EAAE;YACnB,QAAQ,EAAE,OAAO;YACjB,GAAG;YACH,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;SAChC,CAAC,CAAC,IAAI,EAAE,CAAC;IACZ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAS,SAAS,CAAC,IAAc,EAAE,GAAW;IAC5C,MAAM,GAAG,GAAG,aAAa,CAAC,KAAK,EAAE,IAAI,EAAE;QACrC,QAAQ,EAAE,OAAO;QACjB,GAAG;QACH,OAAO,EAAE,oBAAoB;QAC7B,UAAU,EAAE,SAAS;QACrB,WAAW,EAAE,IAAI;KAClB,CAAC;SACC,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;SACnC,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;IAErB,MAAM,OAAO,GAAG,IAAI,OAAO,CAAO,CAAC,OAAO,E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+
* the event names the hook is registered under, and the address it posts to.
|
|
4
|
+
*
|
|
5
|
+
* These values are duplicated across process boundaries by necessity — the
|
|
6
|
+
* server validates them, the installer writes them into settings.json, and
|
|
7
|
+
* `scripts/claude-code-session-hook.mjs` runs standalone under Claude Code with
|
|
8
|
+
* no ARCS import available. Every duplicate that CAN import derives from here;
|
|
9
|
+
* the one that cannot (the `.mjs`, which must stay dependency-free so a broken
|
|
10
|
+
* bridge is inert rather than fatal) keeps its own literals and is pinned to
|
|
11
|
+
* this module by `test/hook-contract-parity.test.ts`, which fails on any
|
|
12
|
+
* divergence in either direction.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* The four Claude Code events the bridge registers for. One script is installed
|
|
16
|
+
* under all of them; it dispatches internally on `hook_event_name`.
|
|
17
|
+
*
|
|
18
|
+
* A readonly tuple so `z.enum()` consumes it directly — the route's validation
|
|
19
|
+
* and the installer's registration can never drift apart. Adding a fifth event
|
|
20
|
+
* here without adding it to the hook script breaks the parity test.
|
|
21
|
+
*/
|
|
22
|
+
export declare const HOOK_EVENTS: readonly ["SessionStart", "UserPromptSubmit", "SessionEnd", "Stop"];
|
|
23
|
+
export type HookEventName = (typeof HOOK_EVENTS)[number];
|
|
24
|
+
/** Loopback only: `arcs web` refuses to bind anything else. */
|
|
25
|
+
export declare const DEFAULT_WEB_HOST = "127.0.0.1";
|
|
26
|
+
/** Default `arcs web` port, and therefore the port every hook is installed with. */
|
|
27
|
+
export declare const DEFAULT_WEB_PORT = 4173;
|
|
28
|
+
/**
|
|
29
|
+
* Where an installed hook posts when `--url` was not given.
|
|
30
|
+
*
|
|
31
|
+
* Baked into the settings.json command string at install time, so changing it
|
|
32
|
+
* only affects hooks installed afterwards — an already-installed hook keeps
|
|
33
|
+
* posting to the URL it was written with.
|
|
34
|
+
*/
|
|
35
|
+
export declare const DEFAULT_SERVER_URL = "http://127.0.0.1:4173";
|
|
36
|
+
//# sourceMappingURL=hook-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hook-contract.d.ts","sourceRoot":"","sources":["../../src/utils/hook-contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,qEAAsE,CAAC;AAE/F,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,+DAA+D;AAC/D,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAE5C,oFAAoF;AACpF,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,0BAAmD,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The wire contract shared by everything on the Claude Code session bridge:
|
|
3
|
+
* the event names the hook is registered under, and the address it posts to.
|
|
4
|
+
*
|
|
5
|
+
* These values are duplicated across process boundaries by necessity — the
|
|
6
|
+
* server validates them, the installer writes them into settings.json, and
|
|
7
|
+
* `scripts/claude-code-session-hook.mjs` runs standalone under Claude Code with
|
|
8
|
+
* no ARCS import available. Every duplicate that CAN import derives from here;
|
|
9
|
+
* the one that cannot (the `.mjs`, which must stay dependency-free so a broken
|
|
10
|
+
* bridge is inert rather than fatal) keeps its own literals and is pinned to
|
|
11
|
+
* this module by `test/hook-contract-parity.test.ts`, which fails on any
|
|
12
|
+
* divergence in either direction.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* The four Claude Code events the bridge registers for. One script is installed
|
|
16
|
+
* under all of them; it dispatches internally on `hook_event_name`.
|
|
17
|
+
*
|
|
18
|
+
* A readonly tuple so `z.enum()` consumes it directly — the route's validation
|
|
19
|
+
* and the installer's registration can never drift apart. Adding a fifth event
|
|
20
|
+
* here without adding it to the hook script breaks the parity test.
|
|
21
|
+
*/
|
|
22
|
+
export const HOOK_EVENTS = ["SessionStart", "UserPromptSubmit", "SessionEnd", "Stop"];
|
|
23
|
+
/** Loopback only: `arcs web` refuses to bind anything else. */
|
|
24
|
+
export const DEFAULT_WEB_HOST = "127.0.0.1";
|
|
25
|
+
/** Default `arcs web` port, and therefore the port every hook is installed with. */
|
|
26
|
+
export const DEFAULT_WEB_PORT = 4173;
|
|
27
|
+
/**
|
|
28
|
+
* Where an installed hook posts when `--url` was not given.
|
|
29
|
+
*
|
|
30
|
+
* Baked into the settings.json command string at install time, so changing it
|
|
31
|
+
* only affects hooks installed afterwards — an already-installed hook keeps
|
|
32
|
+
* posting to the URL it was written with.
|
|
33
|
+
*/
|
|
34
|
+
export const DEFAULT_SERVER_URL = `http://${DEFAULT_WEB_HOST}:${DEFAULT_WEB_PORT}`;
|
|
35
|
+
//# sourceMappingURL=hook-contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hook-contract.js","sourceRoot":"","sources":["../../src/utils/hook-contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,cAAc,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,CAAU,CAAC;AAI/F,+DAA+D;AAC/D,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,CAAC;AAE5C,oFAAoF;AACpF,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,gBAAgB,IAAI,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-project auth token for the Claude Code session-bridge hook endpoint.
|
|
3
|
+
*
|
|
4
|
+
* Loopback-only is not enough on its own: every process on the machine shares
|
|
5
|
+
* localhost, so any local program could otherwise register sessions or drain a
|
|
6
|
+
* project's message queue. The token proves the caller is the hook script that
|
|
7
|
+
* `arcs hooks install-claude-code` provisioned for this project.
|
|
8
|
+
*
|
|
9
|
+
* Intentionally not a CRUD store — one token per project, rotated by rerunning
|
|
10
|
+
* the install command. No index, no markdown mirror, no lock (a rotation races
|
|
11
|
+
* only with itself, and the loser simply has to rerun install).
|
|
12
|
+
*/
|
|
13
|
+
export declare function hookTokenPath(projectDir: string): string;
|
|
14
|
+
export declare function readHookToken(projectDir: string): Promise<string | undefined>;
|
|
15
|
+
/**
|
|
16
|
+
* Rotates the on-disk token, owner-only.
|
|
17
|
+
*
|
|
18
|
+
* Unlike the web token there is no in-memory copy to verify against — the hook
|
|
19
|
+
* subprocess re-reads this file at every checkpoint, so the FILE is the
|
|
20
|
+
* credential and its mode is the whole control. `writeJson` stages a temp file
|
|
21
|
+
* and renames it into place with no mode argument, so the token lands 0644
|
|
22
|
+
* (world-readable) on a default umask — and it lands that way on EVERY write,
|
|
23
|
+
* not just the first: the rename swaps in the freshly created temp inode, whose
|
|
24
|
+
* mode came from the umask, and the previous file's mode is discarded with the
|
|
25
|
+
* inode it belonged to. (A mode passed at open() would in fact have covered this
|
|
26
|
+
* writer, precisely because every write creates the destination inode; the
|
|
27
|
+
* "applies only at create" caveat bites a direct non-atomic open(path,"w",mode)
|
|
28
|
+
* over an existing file, which is not this path.) The chmod is nonetheless
|
|
29
|
+
* unconditional rather than conditional on the mode read back, so the 0600
|
|
30
|
+
* guarantee survives a future switch away from the atomic writer.
|
|
31
|
+
*
|
|
32
|
+
* The directory is narrowed too: the staged temp file is a fresh inode born
|
|
33
|
+
* under the umask, so it is briefly world-readable between write and rename.
|
|
34
|
+
* 0o700 on the enclosing directory — which holds nothing but this token —
|
|
35
|
+
* denies another account the traversal needed to reach that window at all.
|
|
36
|
+
*
|
|
37
|
+
* What this buys, stated honestly: 0o600 is a cross-user control. It keeps
|
|
38
|
+
* other UNIX accounts out; it is NOT a defense against a process running as
|
|
39
|
+
* THIS user, which can read the file at any mode. Nor is this the token's only
|
|
40
|
+
* copy — `arcs hooks install-claude-code --write` embeds the same value in the
|
|
41
|
+
* workspace's .claude/settings.local.json, which is now created 0o600 and
|
|
42
|
+
* chmodded 0o600 unconditionally too (claude-code-hook-install.ts), though that
|
|
43
|
+
* copy is inlined into the hook command string and so still leaks to `ps` on
|
|
44
|
+
* every hook fire. So this is a floor on ARCS's own copy, not a guarantee about
|
|
45
|
+
* the secret.
|
|
46
|
+
*
|
|
47
|
+
* A chmod failure propagates and fails the install command. That is
|
|
48
|
+
* deliberate — the caller (`arcs hooks install-claude-code`) has not printed
|
|
49
|
+
* the snippet yet, so the run fails closed and the user reruns to rotate,
|
|
50
|
+
* rather than silently installing a token this process could not protect. The
|
|
51
|
+
* hook's own read path (readHookToken/verifyHookToken) is untouched by this and
|
|
52
|
+
* still never throws.
|
|
53
|
+
*/
|
|
54
|
+
export declare function writeHookToken(projectDir: string, token: string): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Constant-time token comparison. Returns false when the project has no token
|
|
57
|
+
* provisioned yet, so an uninstalled project cannot be driven by an empty
|
|
58
|
+
* `Authorization` header.
|
|
59
|
+
*/
|
|
60
|
+
export declare function verifyHookToken(projectDir: string, candidate: string): Promise<boolean>;
|
|
61
|
+
//# sourceMappingURL=hook-token-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hook-token-store.d.ts","sourceRoot":"","sources":["../../src/utils/hook-token-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAaH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,wBAAsB,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAGnF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAsB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAMrF;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAQ7F"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-project auth token for the Claude Code session-bridge hook endpoint.
|
|
3
|
+
*
|
|
4
|
+
* Loopback-only is not enough on its own: every process on the machine shares
|
|
5
|
+
* localhost, so any local program could otherwise register sessions or drain a
|
|
6
|
+
* project's message queue. The token proves the caller is the hook script that
|
|
7
|
+
* `arcs hooks install-claude-code` provisioned for this project.
|
|
8
|
+
*
|
|
9
|
+
* Intentionally not a CRUD store — one token per project, rotated by rerunning
|
|
10
|
+
* the install command. No index, no markdown mirror, no lock (a rotation races
|
|
11
|
+
* only with itself, and the loser simply has to rerun install).
|
|
12
|
+
*/
|
|
13
|
+
import { timingSafeEqual } from "node:crypto";
|
|
14
|
+
import { chmod } from "node:fs/promises";
|
|
15
|
+
import { dirname, join } from "node:path";
|
|
16
|
+
import { readJsonSafe } from "./json.js";
|
|
17
|
+
import { ensureDir, nowISO, writeJson } from "./storage-utils.js";
|
|
18
|
+
export function hookTokenPath(projectDir) {
|
|
19
|
+
return join(projectDir, "hooks", "claude-code-token.json");
|
|
20
|
+
}
|
|
21
|
+
export async function readHookToken(projectDir) {
|
|
22
|
+
const file = await readJsonSafe(hookTokenPath(projectDir));
|
|
23
|
+
return typeof file?.token === "string" && file.token ? file.token : undefined;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Rotates the on-disk token, owner-only.
|
|
27
|
+
*
|
|
28
|
+
* Unlike the web token there is no in-memory copy to verify against — the hook
|
|
29
|
+
* subprocess re-reads this file at every checkpoint, so the FILE is the
|
|
30
|
+
* credential and its mode is the whole control. `writeJson` stages a temp file
|
|
31
|
+
* and renames it into place with no mode argument, so the token lands 0644
|
|
32
|
+
* (world-readable) on a default umask — and it lands that way on EVERY write,
|
|
33
|
+
* not just the first: the rename swaps in the freshly created temp inode, whose
|
|
34
|
+
* mode came from the umask, and the previous file's mode is discarded with the
|
|
35
|
+
* inode it belonged to. (A mode passed at open() would in fact have covered this
|
|
36
|
+
* writer, precisely because every write creates the destination inode; the
|
|
37
|
+
* "applies only at create" caveat bites a direct non-atomic open(path,"w",mode)
|
|
38
|
+
* over an existing file, which is not this path.) The chmod is nonetheless
|
|
39
|
+
* unconditional rather than conditional on the mode read back, so the 0600
|
|
40
|
+
* guarantee survives a future switch away from the atomic writer.
|
|
41
|
+
*
|
|
42
|
+
* The directory is narrowed too: the staged temp file is a fresh inode born
|
|
43
|
+
* under the umask, so it is briefly world-readable between write and rename.
|
|
44
|
+
* 0o700 on the enclosing directory — which holds nothing but this token —
|
|
45
|
+
* denies another account the traversal needed to reach that window at all.
|
|
46
|
+
*
|
|
47
|
+
* What this buys, stated honestly: 0o600 is a cross-user control. It keeps
|
|
48
|
+
* other UNIX accounts out; it is NOT a defense against a process running as
|
|
49
|
+
* THIS user, which can read the file at any mode. Nor is this the token's only
|
|
50
|
+
* copy — `arcs hooks install-claude-code --write` embeds the same value in the
|
|
51
|
+
* workspace's .claude/settings.local.json, which is now created 0o600 and
|
|
52
|
+
* chmodded 0o600 unconditionally too (claude-code-hook-install.ts), though that
|
|
53
|
+
* copy is inlined into the hook command string and so still leaks to `ps` on
|
|
54
|
+
* every hook fire. So this is a floor on ARCS's own copy, not a guarantee about
|
|
55
|
+
* the secret.
|
|
56
|
+
*
|
|
57
|
+
* A chmod failure propagates and fails the install command. That is
|
|
58
|
+
* deliberate — the caller (`arcs hooks install-claude-code`) has not printed
|
|
59
|
+
* the snippet yet, so the run fails closed and the user reruns to rotate,
|
|
60
|
+
* rather than silently installing a token this process could not protect. The
|
|
61
|
+
* hook's own read path (readHookToken/verifyHookToken) is untouched by this and
|
|
62
|
+
* still never throws.
|
|
63
|
+
*/
|
|
64
|
+
export async function writeHookToken(projectDir, token) {
|
|
65
|
+
const path = hookTokenPath(projectDir);
|
|
66
|
+
await ensureDir(dirname(path));
|
|
67
|
+
await chmod(dirname(path), 0o700);
|
|
68
|
+
await writeJson(path, { token, createdAt: nowISO() });
|
|
69
|
+
await chmod(path, 0o600);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Constant-time token comparison. Returns false when the project has no token
|
|
73
|
+
* provisioned yet, so an uninstalled project cannot be driven by an empty
|
|
74
|
+
* `Authorization` header.
|
|
75
|
+
*/
|
|
76
|
+
export async function verifyHookToken(projectDir, candidate) {
|
|
77
|
+
const token = await readHookToken(projectDir);
|
|
78
|
+
if (!token || !candidate)
|
|
79
|
+
return false;
|
|
80
|
+
const expected = Buffer.from(token, "utf-8");
|
|
81
|
+
const actual = Buffer.from(candidate, "utf-8");
|
|
82
|
+
if (expected.length !== actual.length)
|
|
83
|
+
return false;
|
|
84
|
+
return timingSafeEqual(expected, actual);
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=hook-token-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hook-token-store.js","sourceRoot":"","sources":["../../src/utils/hook-token-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAOlE,MAAM,UAAU,aAAa,CAAC,UAAkB;IAC9C,OAAO,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,wBAAwB,CAAC,CAAC;AAC7D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,UAAkB;IACpD,MAAM,IAAI,GAAG,MAAM,YAAY,CAAgB,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC;IAC1E,OA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