@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
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Session CRUD storage for ARCS projects.
|
|
3
|
+
*
|
|
4
|
+
* Tracks agent runtime sessions (opencode, claude-code) that are attached to a
|
|
5
|
+
* project. Unlike tasks/plans/knowledge these records are volatile runtime
|
|
6
|
+
* state: they carry no markdown mirror and never invalidate the graph cache.
|
|
7
|
+
*/
|
|
8
|
+
export type { SessionLinkedNodeType, SessionRuntimeType, SessionStatus, } from "./storage-utils.js";
|
|
9
|
+
export { SESSION_LINKED_NODE_TYPES, SESSION_RUNTIME_TYPES, SESSION_STATUSES, } from "./storage-utils.js";
|
|
10
|
+
/**
|
|
11
|
+
* Where a session record came from — its provenance, not its state.
|
|
12
|
+
*
|
|
13
|
+
* - `observed` — a runtime session ARCS merely watches: a terminal `claude`
|
|
14
|
+
* session announcing itself through the hook bridge, or an opencode session
|
|
15
|
+
* discovered (or created) on a live opencode server. ARCS can nudge it, but
|
|
16
|
+
* something outside ARCS drives it.
|
|
17
|
+
* - `arcs` — a record ARCS minted for itself (the headless oneshot/stable
|
|
18
|
+
* threads). No terminal is attached, so nothing ever drains its message
|
|
19
|
+
* queue; it is driven by headless runs only.
|
|
20
|
+
*
|
|
21
|
+
* Declared here rather than in storage-utils alongside the other session enums
|
|
22
|
+
* because origin is derived by this module (legacy promotion below) and every
|
|
23
|
+
* consumer already imports the session enums through this file.
|
|
24
|
+
*/
|
|
25
|
+
export declare const SESSION_ORIGINS: readonly ["observed", "arcs"];
|
|
26
|
+
export type SessionOrigin = (typeof SESSION_ORIGINS)[number];
|
|
27
|
+
export interface SessionMeta {
|
|
28
|
+
id: string;
|
|
29
|
+
normalizedId: string;
|
|
30
|
+
runtimeType: import("./storage-utils.js").SessionRuntimeType;
|
|
31
|
+
/** Runtime-native session id, verbatim (e.g. opencode "ses_04f…"). */
|
|
32
|
+
runtimeSessionId: string;
|
|
33
|
+
/**
|
|
34
|
+
* Provenance of the record. Persisted, never client-settable, and never
|
|
35
|
+
* rewritten by an upsert — whoever created the record fixed it. Always
|
|
36
|
+
* present on a value read through this module even when the stored record
|
|
37
|
+
* predates the field (see `withDerivedOrigin`).
|
|
38
|
+
*/
|
|
39
|
+
origin: SessionOrigin;
|
|
40
|
+
status: import("./storage-utils.js").SessionStatus;
|
|
41
|
+
startedAt: string;
|
|
42
|
+
lastMessageAt?: string;
|
|
43
|
+
updatedAt: string;
|
|
44
|
+
userEmail?: string;
|
|
45
|
+
/**
|
|
46
|
+
* DAG node this session is working on. Always set together with
|
|
47
|
+
* `linkedNodeId` — a half-set link is never persisted.
|
|
48
|
+
*/
|
|
49
|
+
linkedNodeType?: import("./storage-utils.js").SessionLinkedNodeType;
|
|
50
|
+
/** Normalized task/plan id — never a diagram node id (T001…). */
|
|
51
|
+
linkedNodeId?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Messages accepted from the web UI but not yet delivered. Only runtimes
|
|
54
|
+
* without a live channel (claude-code) ever populate this: the runtime drains
|
|
55
|
+
* the queue itself at its next checkpoint. Absent means "nothing pending".
|
|
56
|
+
*/
|
|
57
|
+
messageQueue?: string[];
|
|
58
|
+
/**
|
|
59
|
+
* Id of the headless run currently claimed on this record — written when the
|
|
60
|
+
* run is spawned and cleared when it settles (`beginSessionRun` /
|
|
61
|
+
* `settleSessionRun`). Its presence IS the claim: a record carrying one is
|
|
62
|
+
* believed to have a live `claude` child behind it.
|
|
63
|
+
*
|
|
64
|
+
* Written for the runs ARCS drives itself, so in practice every `arcs`-origin
|
|
65
|
+
* thread; an `observed` record only carries one while a headless run targets
|
|
66
|
+
* it. Deliberately absent from `UpdateSessionInput`: a claim is a fact about
|
|
67
|
+
* a process, never something a caller hands in.
|
|
68
|
+
*/
|
|
69
|
+
currentRunId?: string;
|
|
70
|
+
/**
|
|
71
|
+
* OS pid of the claimed run's child. Persisted because in-memory liveness
|
|
72
|
+
* dies with the server and the restart case is exactly the one that has to be
|
|
73
|
+
* recoverable — the startup sweep probes this pid to tell a live run from an
|
|
74
|
+
* orphaned claim.
|
|
75
|
+
*/
|
|
76
|
+
currentRunPid?: number;
|
|
77
|
+
/**
|
|
78
|
+
* ISO-8601 proof of life for the claimed run. Same unit as every other
|
|
79
|
+
* top-level timestamp on this record; `metadata.run.*` keeps epoch ms and the
|
|
80
|
+
* two never mix.
|
|
81
|
+
*
|
|
82
|
+
* SHORTCUT: nothing refreshes this mid-run yet, so it equals the run's spawn
|
|
83
|
+
* time and RUN_HEARTBEAT_TTL_MS has to cover a whole run; upgrade to a
|
|
84
|
+
* periodic touch (and a far shorter TTL) when the runner grows a heartbeat.
|
|
85
|
+
*/
|
|
86
|
+
heartbeatAt?: string;
|
|
87
|
+
/**
|
|
88
|
+
* ISO-8601 time of the last runtime checkpoint ARCS observed — Claude Code's
|
|
89
|
+
* `UserPromptSubmit` and `Stop` hooks. The only liveness evidence an
|
|
90
|
+
* `observed` session ever produces: nothing else reports that a terminal
|
|
91
|
+
* session is still working.
|
|
92
|
+
*/
|
|
93
|
+
lastCheckpointAt?: string;
|
|
94
|
+
metadata?: Record<string, unknown>;
|
|
95
|
+
}
|
|
96
|
+
export interface SessionIndex {
|
|
97
|
+
sessions: SessionMeta[];
|
|
98
|
+
}
|
|
99
|
+
export interface CreateSessionInput {
|
|
100
|
+
runtimeType: import("./storage-utils.js").SessionRuntimeType;
|
|
101
|
+
runtimeSessionId: string;
|
|
102
|
+
/**
|
|
103
|
+
* Provenance, set once at creation and defaulting to `observed`. Only the
|
|
104
|
+
* ARCS-minted headless threads pass `arcs`. Deliberately absent from every
|
|
105
|
+
* request schema: origin is what capability is derived from, so a client that
|
|
106
|
+
* could set it could talk itself out of the queue refusal below.
|
|
107
|
+
*/
|
|
108
|
+
origin?: SessionOrigin;
|
|
109
|
+
status?: import("./storage-utils.js").SessionStatus;
|
|
110
|
+
startedAt?: string;
|
|
111
|
+
lastMessageAt?: string;
|
|
112
|
+
userEmail?: string;
|
|
113
|
+
metadata?: Record<string, unknown>;
|
|
114
|
+
now?: string;
|
|
115
|
+
}
|
|
116
|
+
export interface UpdateSessionInput {
|
|
117
|
+
id: string;
|
|
118
|
+
status?: import("./storage-utils.js").SessionStatus;
|
|
119
|
+
/** Pass `null` to clear; pass an ISO timestamp to set. */
|
|
120
|
+
lastMessageAt?: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* ISO timestamp of a runtime checkpoint just observed (`null` clears it).
|
|
123
|
+
* Settable here — unlike the run claim — because a checkpoint is a report the
|
|
124
|
+
* hook bridge relays, not a process ARCS owns.
|
|
125
|
+
*/
|
|
126
|
+
lastCheckpointAt?: string | null;
|
|
127
|
+
/** Pass `null` to clear; pass a string to set. */
|
|
128
|
+
userEmail?: string | null;
|
|
129
|
+
/** Pass `null` to clear; merged shallowly into the existing metadata. */
|
|
130
|
+
metadata?: Record<string, unknown> | null;
|
|
131
|
+
/**
|
|
132
|
+
* Link target kind. `null` (on either linkage field) clears the whole link.
|
|
133
|
+
* Setting a link requires both fields to resolve to a value.
|
|
134
|
+
*/
|
|
135
|
+
linkedNodeType?: import("./storage-utils.js").SessionLinkedNodeType | null;
|
|
136
|
+
/** Normalized task/plan id — validated against the task/plan store. */
|
|
137
|
+
linkedNodeId?: string | null;
|
|
138
|
+
/**
|
|
139
|
+
* Whole-queue replacement (`null` clears it). Appending/draining goes through
|
|
140
|
+
* `enqueueSessionMessage`/`drainSessionMessageQueue` instead — a shallow merge
|
|
141
|
+
* cannot express those safely under concurrent access.
|
|
142
|
+
*/
|
|
143
|
+
messageQueue?: string[] | null;
|
|
144
|
+
now?: string;
|
|
145
|
+
}
|
|
146
|
+
export interface SessionFilters {
|
|
147
|
+
status?: import("./storage-utils.js").SessionStatus;
|
|
148
|
+
runtimeType?: import("./storage-utils.js").SessionRuntimeType;
|
|
149
|
+
}
|
|
150
|
+
export declare function readSessionIndex(projectDir: string): Promise<SessionIndex>;
|
|
151
|
+
/**
|
|
152
|
+
* Capability: may a message be handed to this session through `messageQueue`?
|
|
153
|
+
*
|
|
154
|
+
* Queued delivery only works when something drains the queue, and the only
|
|
155
|
+
* drainer is the Claude Code hook script running inside a real terminal
|
|
156
|
+
* session — an `observed` claude-code record. An `arcs`-origin thread has no
|
|
157
|
+
* terminal attached, so a message queued for it would sit there forever
|
|
158
|
+
* (that black hole is what the queue refusal on POST /message closes), and
|
|
159
|
+
* opencode records take live injection instead of ever queueing.
|
|
160
|
+
*
|
|
161
|
+
* Derived from `origin`, never from a metadata string.
|
|
162
|
+
*/
|
|
163
|
+
export declare function canQueue(session: SessionMeta): boolean;
|
|
164
|
+
/**
|
|
165
|
+
* What a session is doing right now, as a reader of the UI would say it.
|
|
166
|
+
*
|
|
167
|
+
* DERIVED, never stored: there is no `phase` field on `SessionMeta` and no way
|
|
168
|
+
* to write one through this module. A stored phase is a second source of truth
|
|
169
|
+
* that goes stale the instant a process dies without telling anyone — which is
|
|
170
|
+
* precisely the "stuck on running forever" failure this replaces.
|
|
171
|
+
*/
|
|
172
|
+
export declare const SESSION_PHASES: readonly ["running", "idle", "failed", "ended"];
|
|
173
|
+
export type SessionPhase = (typeof SESSION_PHASES)[number];
|
|
174
|
+
/**
|
|
175
|
+
* Outcome vocabulary persisted on `metadata.run.outcome`. A superset of the
|
|
176
|
+
* runner's own `RunOutcome` ("success" | "error" | "timeout"): `interrupted` is
|
|
177
|
+
* never produced BY a run, it is written FOR a run whose process disappeared
|
|
178
|
+
* without ever settling — a restart's orphan. Declared here rather than
|
|
179
|
+
* imported from the web server because `utils/` must not depend on
|
|
180
|
+
* `web-server/`; claude-runner's union stays exactly what a child can return.
|
|
181
|
+
*/
|
|
182
|
+
export declare const SESSION_RUN_OUTCOMES: readonly ["success", "error", "timeout", "interrupted"];
|
|
183
|
+
export type SessionRunOutcome = (typeof SESSION_RUN_OUTCOMES)[number];
|
|
184
|
+
/**
|
|
185
|
+
* How long a run claim's heartbeat counts as proof of life. Sized to the
|
|
186
|
+
* runner's default 10-minute run ceiling because nothing refreshes the
|
|
187
|
+
* heartbeat mid-run yet (see `SessionMeta.heartbeatAt`) — a shorter window
|
|
188
|
+
* would demote a perfectly healthy long run to `idle`.
|
|
189
|
+
*/
|
|
190
|
+
export declare const RUN_HEARTBEAT_TTL_MS: number;
|
|
191
|
+
/**
|
|
192
|
+
* How long a runtime checkpoint counts as proof of life for an observed
|
|
193
|
+
* session. Deliberately shorter than the run TTL: checkpoints arrive at every
|
|
194
|
+
* prompt and every turn end, so a terminal that has produced neither in five
|
|
195
|
+
* minutes is waiting on a human, not working.
|
|
196
|
+
*/
|
|
197
|
+
export declare const CHECKPOINT_TTL_MS: number;
|
|
198
|
+
export interface SessionPhaseOptions {
|
|
199
|
+
/** Clock in epoch ms; defaults to `Date.now()`. */
|
|
200
|
+
now?: number;
|
|
201
|
+
heartbeatTtlMs?: number;
|
|
202
|
+
checkpointTtlMs?: number;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* The record's run claim, or `undefined` when it holds none. Validated rather
|
|
206
|
+
* than trusted: a hand-edited index can carry anything under this key.
|
|
207
|
+
*/
|
|
208
|
+
export declare function sessionRunClaim(session: SessionMeta): string | undefined;
|
|
209
|
+
/**
|
|
210
|
+
* Derives a session's phase from its own persisted evidence, in one place.
|
|
211
|
+
*
|
|
212
|
+
* Precedence, strongest first:
|
|
213
|
+
* 1. a terminal `status` — `failed` is `failed`, `completed`/`disconnected`
|
|
214
|
+
* are `ended`. Nothing observed later reopens a session that is over.
|
|
215
|
+
* 2. a run claim (`currentRunId`) — ARCS spawned a child for this record, so
|
|
216
|
+
* its `heartbeatAt` is the freshest evidence there is. Stale means the
|
|
217
|
+
* claim outlived its proof of life, which reads `idle`, not `failed`: the
|
|
218
|
+
* run is settled by the reconciler, not guessed at here.
|
|
219
|
+
* 3. `lastCheckpointAt` — the only signal an observed terminal session emits.
|
|
220
|
+
*
|
|
221
|
+
* `metadata.run.outcome` is deliberately NOT an input. That field is run-level
|
|
222
|
+
* history (rendered next to the run), while phase answers "is this session live
|
|
223
|
+
* right now" — a run that failed an hour ago leaves the session idle and ready
|
|
224
|
+
* for the next one, not permanently `failed`.
|
|
225
|
+
*
|
|
226
|
+
* Pure: a record plus a clock, no I/O, no process probing. Liveness that needs
|
|
227
|
+
* the world (a pid, `claude agents`) belongs to the reconciler, which starts
|
|
228
|
+
* from this value and can only ever demote it.
|
|
229
|
+
*
|
|
230
|
+
* SHORTCUT: checkpoint freshness cannot tell `UserPromptSubmit` (turn started)
|
|
231
|
+
* from `Stop` (turn ended), so a session reads `running` for the TTL after its
|
|
232
|
+
* last turn; upgrade to a persisted checkpoint kind when the panel needs
|
|
233
|
+
* turn-level precision.
|
|
234
|
+
*/
|
|
235
|
+
export declare function deriveSessionPhase(session: SessionMeta, options?: SessionPhaseOptions): SessionPhase;
|
|
236
|
+
export declare function createSession(projectDir: string, input: CreateSessionInput): Promise<SessionMeta>;
|
|
237
|
+
/**
|
|
238
|
+
* Create-or-update by runtime session id. Used by runtime discovery bridges,
|
|
239
|
+
* which see the same session many times and must stay idempotent.
|
|
240
|
+
*
|
|
241
|
+
* Deliberately never touches `linkedNodeType`/`linkedNodeId`: discovery
|
|
242
|
+
* refreshes carry status/metadata only and must not silently unlink a session
|
|
243
|
+
* a human just linked. Linkage is `updateSession`-only.
|
|
244
|
+
*/
|
|
245
|
+
export declare function upsertSession(projectDir: string, input: CreateSessionInput): Promise<SessionMeta>;
|
|
246
|
+
export declare function listSessions(projectDir: string, filters?: SessionFilters): Promise<SessionMeta[]>;
|
|
247
|
+
export declare function getSession(projectDir: string, sessionId: string): Promise<SessionMeta>;
|
|
248
|
+
export declare function updateSession(projectDir: string, input: UpdateSessionInput): Promise<SessionMeta>;
|
|
249
|
+
/**
|
|
250
|
+
* Appends a message to a session's pending queue.
|
|
251
|
+
*
|
|
252
|
+
* Deliberately not part of `updateSession`: the generic path shallow-merges
|
|
253
|
+
* whatever the caller passes, which would let two concurrent senders read the
|
|
254
|
+
* same array and write back a queue missing one message. Append happens inside
|
|
255
|
+
* the store lock, so the read-modify-write is atomic.
|
|
256
|
+
*
|
|
257
|
+
* The message is stored verbatim — callers validate content (the route rejects
|
|
258
|
+
* empty strings before it gets here).
|
|
259
|
+
*/
|
|
260
|
+
export declare function enqueueSessionMessage(projectDir: string, sessionId: string, message: string): Promise<SessionMeta>;
|
|
261
|
+
/**
|
|
262
|
+
* Reads and clears a session's pending queue in one lock acquisition.
|
|
263
|
+
*
|
|
264
|
+
* Read-then-clear must be atomic: a checkpoint that read the queue and cleared
|
|
265
|
+
* it in two calls would drop any message enqueued in between. Delivery is
|
|
266
|
+
* at-most-once — a consumer that crashes after draining loses the batch, which
|
|
267
|
+
* is the accepted trade for never replaying a message twice into a session.
|
|
268
|
+
*/
|
|
269
|
+
export declare function drainSessionMessageQueue(projectDir: string, sessionId: string): Promise<string[]>;
|
|
270
|
+
export interface BeginSessionRunInput {
|
|
271
|
+
/** Caller-minted id for this run — the claim's identity. */
|
|
272
|
+
runId: string;
|
|
273
|
+
/** OS pid of the spawned child; absent/`null` when the spawn produced none. */
|
|
274
|
+
pid?: number | null;
|
|
275
|
+
/** ISO override for the heartbeat and `updatedAt` stamps (tests). */
|
|
276
|
+
now?: string;
|
|
277
|
+
}
|
|
278
|
+
export interface SettleSessionRunInput {
|
|
279
|
+
/**
|
|
280
|
+
* Settles only when it matches the persisted claim. Omit to settle whatever
|
|
281
|
+
* claim is there (the startup sweep passes the id it read, so a run that
|
|
282
|
+
* started in between is never settled out from under itself).
|
|
283
|
+
*/
|
|
284
|
+
runId?: string;
|
|
285
|
+
outcome: SessionRunOutcome;
|
|
286
|
+
error?: string;
|
|
287
|
+
/** Epoch ms for `metadata.run.endedAt` — defaults to now. */
|
|
288
|
+
endedAt?: number;
|
|
289
|
+
/**
|
|
290
|
+
* Extra `metadata.run` fields stamped in the SAME write as the outcome: what
|
|
291
|
+
* the RUNNER measured and no claim could have known at spawn (the pid and
|
|
292
|
+
* startedAt the child actually reported, the run's mode, the stream
|
|
293
|
+
* observations). Merged UNDER the settle's own fields, so `outcome`/`endedAt`/
|
|
294
|
+
* `error` can never be smuggled past the settle that owns them.
|
|
295
|
+
*/
|
|
296
|
+
run?: Record<string, unknown>;
|
|
297
|
+
/**
|
|
298
|
+
* Sibling `metadata` keys written in the same read-modify-write, shallow
|
|
299
|
+
* merged as `updateSession` merges. The seed-decision repair rides here: a
|
|
300
|
+
* settle that released the claim in one write and repaired the record in a
|
|
301
|
+
* second is readable in between as "this run failed" while still carrying the
|
|
302
|
+
* seed state that failed it — and the second write can land AFTER a newer run
|
|
303
|
+
* has already claimed the record, clobbering its live `metadata.run`. Merged
|
|
304
|
+
* UNDER `run`, so `run` can never be rewritten through this door.
|
|
305
|
+
*/
|
|
306
|
+
metadata?: Record<string, unknown>;
|
|
307
|
+
/** ISO override for `updatedAt` (tests). */
|
|
308
|
+
now?: string;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Claims a session for a headless run: persists the run id, the child's pid and
|
|
312
|
+
* the first heartbeat, all of which survive the server process that made them.
|
|
313
|
+
*
|
|
314
|
+
* The claim is what makes a run recoverable. In-memory liveness (the runner's
|
|
315
|
+
* `liveRuns` map) dies with the server, so without a persisted claim a run
|
|
316
|
+
* interrupted by a restart would leave the session reading `running` forever
|
|
317
|
+
* with nothing left that could ever settle it.
|
|
318
|
+
*/
|
|
319
|
+
export declare function beginSessionRun(projectDir: string, sessionId: string, input: BeginSessionRunInput): Promise<SessionMeta>;
|
|
320
|
+
/**
|
|
321
|
+
* Releases a session's run claim, records how the run ended on `metadata.run`,
|
|
322
|
+
* and applies whatever the settle repaired — in ONE lock acquisition.
|
|
323
|
+
*
|
|
324
|
+
* Read-modify-write has to be atomic: `metadata.run` is replaced wholesale by
|
|
325
|
+
* every writer, so settling through the generic `updateSession` would race the
|
|
326
|
+
* route's own write-back and could drop the run's pid/startedAt.
|
|
327
|
+
*
|
|
328
|
+
* Everything a settle concludes therefore goes in HERE rather than in a
|
|
329
|
+
* follow-up `updateSession`. The claim is the only thing serializing a run
|
|
330
|
+
* against the next one, and releasing it is the LAST thing this write does — so
|
|
331
|
+
* a conclusion left to a second write is both observable in the gap (the record
|
|
332
|
+
* reads settled while still carrying the state the run just disproved) and
|
|
333
|
+
* unguarded outside it: the `input.runId` check above holds only for the
|
|
334
|
+
* duration of this lock, and a newer run can claim the record the moment it is
|
|
335
|
+
* released.
|
|
336
|
+
*/
|
|
337
|
+
export declare function settleSessionRun(projectDir: string, sessionId: string, input: SettleSessionRunInput): Promise<SessionMeta>;
|
|
338
|
+
export declare function deleteSession(projectDir: string, sessionId: string): Promise<void>;
|
|
339
|
+
//# sourceMappingURL=session-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../../src/utils/session-store.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA4BH,YAAY,EACV,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,GACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAM5B;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,+BAAgC,CAAC;AAC7D,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAM7D,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,OAAO,oBAAoB,EAAE,kBAAkB,CAAC;IAC7D,sEAAsE;IACtE,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;;OAKG;IACH,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,OAAO,oBAAoB,EAAE,aAAa,CAAC;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,oBAAoB,EAAE,qBA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