opencode-swarm 7.188.6 → 7.188.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  2. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  3. package/dist/cli/{auto-checkpoint-q2xwy0hz.js → auto-checkpoint-cdcf7yeb.js} +4 -4
  4. package/dist/cli/{checkpoint-9cbytsxe.js → checkpoint-jpc3a69d.js} +8 -8
  5. package/dist/cli/{coder-settlement-a74xcmtn.js → coder-settlement-rmaypr7g.js} +3 -3
  6. package/dist/cli/{config-doctor-jec44ph0.js → config-doctor-b5t9hrzb.js} +7 -7
  7. package/dist/cli/{core-yvx60mhw.js → core-ky5b3mh6.js} +1 -1
  8. package/dist/cli/{curator-wr25srz6.js → curator-bsafet3m.js} +25 -25
  9. package/dist/cli/{curator-drift-t95vqagz.js → curator-drift-2dwkkykq.js} +5 -5
  10. package/dist/cli/{curator-llm-factory-znjp0g9d.js → curator-llm-factory-ajtxk3sm.js} +25 -25
  11. package/dist/cli/{doctor-knowledge-receipt-phase-id-hxyxqqya.js → doctor-knowledge-receipt-phase-id-mckkwm0c.js} +4 -4
  12. package/dist/cli/{evidence-summary-service-pzr0aw1h.js → evidence-summary-service-svrt4se9.js} +9 -9
  13. package/dist/cli/{gate-evidence-0dwbqya4.js → gate-evidence-jcw4mvwr.js} +2 -2
  14. package/dist/cli/{guardrail-explain-etssbwma.js → guardrail-explain-5j0cg165.js} +26 -26
  15. package/dist/cli/{guardrail-log-055340sb.js → guardrail-log-h6fc7rnv.js} +3 -3
  16. package/dist/cli/{guardrail-reset-zdnshfqh.js → guardrail-reset-kjmqnr5r.js} +25 -25
  17. package/dist/cli/{hive-promoter-nphztsfb.js → hive-promoter-edp5c7k2.js} +25 -25
  18. package/dist/cli/{index-15836xvt.js → index-0g7wya30.js} +1 -1
  19. package/dist/cli/{index-mv2ptr24.js → index-11v15np0.js} +2 -2
  20. package/dist/cli/{index-2sc36smx.js → index-8gyt9j0a.js} +1 -1
  21. package/dist/cli/{index-yn5r962a.js → index-8hf3rt47.js} +4 -4
  22. package/dist/cli/{index-06c2j365.js → index-9m3pcjf2.js} +1 -1
  23. package/dist/cli/{index-jy33tgeb.js → index-b81wsm2s.js} +1 -1
  24. package/dist/cli/{index-1pfga0cy.js → index-chsaj89g.js} +1 -1
  25. package/dist/cli/{index-hshx5znv.js → index-d1yjbjf9.js} +3 -3
  26. package/dist/cli/{index-1r5k2b4v.js → index-d4vrpe06.js} +1 -1
  27. package/dist/cli/{index-46zge5zc.js → index-e69469z9.js} +2 -2
  28. package/dist/cli/{index-jp7qd7r4.js → index-f0kk9daj.js} +3 -3
  29. package/dist/cli/{index-s0r30djy.js → index-fbw4g7yh.js} +1 -1
  30. package/dist/cli/{index-35ythzj4.js → index-fqyd21v7.js} +3 -3
  31. package/dist/cli/{index-9c2t70wh.js → index-gfqz06ra.js} +599 -3
  32. package/dist/cli/{index-qkhssaay.js → index-h93hm2ew.js} +124 -62
  33. package/dist/cli/{index-fce5drxa.js → index-hsmvdecz.js} +2 -2
  34. package/dist/cli/{index-g1avjt26.js → index-js2jykf9.js} +1 -1
  35. package/dist/cli/{index-0bf26e0h.js → index-kwbgrb3y.js} +1 -1
  36. package/dist/cli/{index-6yb7fhah.js → index-kx0sr39t.js} +27 -27
  37. package/dist/cli/{index-16f28gya.js → index-mcnqpmw6.js} +2 -2
  38. package/dist/cli/{index-akg9rdt1.js → index-n8n94des.js} +25 -25
  39. package/dist/cli/{index-1cz2j033.js → index-nyy3hpwg.js} +6 -6
  40. package/dist/cli/{index-aq962xjf.js → index-pd9hkz4f.js} +3 -3
  41. package/dist/cli/{index-0gdyd1mx.js → index-qg3tx5az.js} +1 -1
  42. package/dist/cli/{index-xhgq58e1.js → index-r89wr177.js} +1 -1
  43. package/dist/cli/{index-71b12k03.js → index-s55t0cdc.js} +5 -5
  44. package/dist/cli/{index-9bdz8cbx.js → index-sarq27b9.js} +1 -1
  45. package/dist/cli/{index-sqkz9hyj.js → index-vhqcqq73.js} +1 -1
  46. package/dist/cli/{index-99h4ez5x.js → index-wbjk8xq9.js} +2 -2
  47. package/dist/cli/{index-6p6m98bb.js → index-yyh5kegx.js} +1 -1
  48. package/dist/cli/index.js +26 -26
  49. package/dist/cli/{knowledge-escalator-h4wqey95.js → knowledge-escalator-ndsm1023.js} +7 -7
  50. package/dist/cli/{knowledge-events-jdj0kg0x.js → knowledge-events-pcbxvykz.js} +5 -5
  51. package/dist/cli/{knowledge-store-9pkka657.js → knowledge-store-00t92ypz.js} +1 -1
  52. package/dist/cli/{knowledge-validator-2hh4838s.js → knowledge-validator-f8mkzp37.js} +2 -2
  53. package/dist/cli/{mcp-dr2qg42d.js → mcp-sawqgyk6.js} +1 -1
  54. package/dist/cli/{model-preflight-t6megn5m.js → model-preflight-7rrjh3wp.js} +25 -25
  55. package/dist/cli/{pending-delegations-96j63y3v.js → pending-delegations-2161efex.js} +2 -2
  56. package/dist/cli/{pr-subscriptions-qrc475pd.js → pr-subscriptions-m47zghfv.js} +1 -1
  57. package/dist/cli/{pr-workflow-gate-1hf06vw7.js → pr-workflow-gate-hmtae8gc.js} +25 -25
  58. package/dist/cli/{scan-cursor-wfa7239s.js → scan-cursor-gdy1qjed.js} +2 -2
  59. package/dist/cli/{schema-v3z4wgje.js → schema-qaxjz2de.js} +1 -1
  60. package/dist/cli/{scope-persistence-k2zq1h9h.js → scope-persistence-dnx61ybv.js} +5 -5
  61. package/dist/cli/{server-qk8e60ah.js → server-6wmhhy81.js} +25 -25
  62. package/dist/cli/{skill-generator-q6jzjcer.js → skill-generator-sgv3bdgt.js} +8 -8
  63. package/dist/cli/{snapshot-coordination-init-h8cqcmve.js → snapshot-coordination-init-qbtzxwga.js} +25 -25
  64. package/dist/cli/{speckit-checkoff-mh45c204.js → speckit-checkoff-yepzgcmj.js} +3 -3
  65. package/dist/cli/{worktree-collision-ownership-hm5y77hr.js → worktree-collision-ownership-cswsfrj6.js} +2 -2
  66. package/dist/cli/{worktree-isolation-tdst4qs1.js → worktree-isolation-vj7egepy.js} +25 -25
  67. package/dist/config/consumers.d.ts +35 -0
  68. package/dist/hooks/knowledge-receipt-ledger.d.ts +23 -0
  69. package/dist/hooks/knowledge-receipt-validator.d.ts +10 -0
  70. package/dist/index.js +14 -14
  71. package/dist/state.d.ts +48 -0
  72. package/package.json +1 -1
package/dist/state.d.ts CHANGED
@@ -844,6 +844,28 @@ export declare const swarmState: {
844
844
  modelID?: string;
845
845
  providerID?: string;
846
846
  }>;
847
+ /**
848
+ * Issue #3036: dispatch lineage — child session id → the session id of the
849
+ * architect whose Task call dispatched that child. Populated authoritatively
850
+ * by the delegation gate's taskMetadata hook (host-observed pair; the parent
851
+ * id always comes from `part.sessionID`, never from tool-controlled
852
+ * metadata) and best-effort by injection-time pending adoption at child
853
+ * registration. Read by the knowledge_receipt tool to authorize a child's
854
+ * filing against its dispatching architect's receipt-membership stamps.
855
+ * Bounded via {@link MAX_TRACKED_DISPATCH_PARENTS} (AGENTS.md invariant 8);
856
+ * cleared with the other session-keyed maps on reset and end-of-session.
857
+ */
858
+ dispatchParentByChildSession: Map<string, string>;
859
+ /**
860
+ * Issue #3036: injection-time dispatch facts awaiting child registration.
861
+ * Recorded when the architect-side delegate-directive injection commits a
862
+ * membership (parent session + delegated target role), consumed when a
863
+ * child session with a matching role is created before its taskMetadata
864
+ * event arrives. Entries expire via
865
+ * {@link PENDING_DISPATCH_AUTHORIZATION_TTL_MS} and the queue is capped by
866
+ * {@link MAX_TRACKED_DISPATCH_PARENTS}.
867
+ */
868
+ pendingDispatchAuthorizations: PendingDispatchAuthorization[];
847
869
  /** Per-session guardrail state — keyed by sessionID */
848
870
  agentSessions: Map<string, AgentSessionState>;
849
871
  /** In-flight rehydration promises — awaited by rehydrateState before clearing agentSessions */
@@ -883,6 +905,32 @@ export declare const MAX_REVIEWER_SCOPE_GENERATIONS = 256;
883
905
  export declare const MAX_REVIEWER_SCOPE_OWNERSHIP_HISTORY = 256;
884
906
  /** Generation expiry never exceeds the parent session's normal idle TTL. */
885
907
  export declare const REVIEWER_SCOPE_GENERATION_TTL_MS = 7200000;
908
+ /**
909
+ * Issue #3036: dispatch-lineage bounds (AGENTS.md invariant 8). Both the
910
+ * child→parent map and the pending-authorization queue are capped and
911
+ * FIFO-evicted at the same limit; pendings additionally expire so an
912
+ * unconsumed dispatch fact cannot be adopted much later.
913
+ */
914
+ export declare const MAX_TRACKED_DISPATCH_PARENTS = 200;
915
+ export declare const PENDING_DISPATCH_AUTHORIZATION_TTL_MS = 600000;
916
+ /** Issue #3036: an injection-time dispatch fact awaiting child registration. */
917
+ export interface PendingDispatchAuthorization {
918
+ parentSessionId: string;
919
+ agentName: string;
920
+ recordedAt: number;
921
+ }
922
+ /**
923
+ * Issue #3036: record an injection-time dispatch fact (parent session +
924
+ * delegated target role) so the child session created for that dispatch can
925
+ * adopt its dispatch parent at registration time if its taskMetadata event
926
+ * has not landed yet. Bounded FIFO; never throws.
927
+ */
928
+ export declare function recordPendingDispatchAuthorization(parentSessionId: string, agentName: string): void;
929
+ export declare function setDispatchParent(childSessionId: string, parentSessionId: string): void;
930
+ /** Issue #3036: resolve a child session's registered dispatch parent, if any. */
931
+ export declare function resolveDispatchParent(childSessionId: string): string | undefined;
932
+ /** Issue #3036: clear dispatch lineage for a session (child-keyed and parent-valued). */
933
+ export declare function clearDispatchLineageForSession(sessionId: string): void;
886
934
  /** Begin one exact coder generation after the full blocking before-chain passes. */
887
935
  export declare function startReviewerScopeGeneration(input: {
888
936
  parentSessionID: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.188.6",
3
+ "version": "7.188.8",
4
4
  "description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",