opencode-swarm 7.123.0 → 7.125.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.
Files changed (111) hide show
  1. package/.opencode/skills/critic-gate/SKILL.md +8 -0
  2. package/.opencode/skills/swarm/SKILL.md +12 -8
  3. package/.opencode/skills/swarm-pr-feedback/SKILL.md +252 -62
  4. package/.opencode/skills/swarm-pr-review/SKILL.md +242 -76
  5. package/README.md +6 -1
  6. package/dist/background/lane-output-store.d.ts +10 -0
  7. package/dist/background/pending-delegations.d.ts +3 -0
  8. package/dist/background/workspace-snapshot.d.ts +59 -0
  9. package/dist/cli/{config-doctor-3ksh1534.js → config-doctor-be9sxqx8.js} +6 -6
  10. package/dist/cli/{core-cwgb7ev8.js → core-d38hc85b.js} +4 -4
  11. package/dist/cli/{curation-policy-4j4qce5a.js → curation-policy-52kt6d7t.js} +2 -2
  12. package/dist/cli/{curator-drift-6b2fjsgr.js → curator-drift-h9a2sjvf.js} +7 -7
  13. package/dist/cli/{curator-tkyn9bzz.js → curator-hbst8nbc.js} +32 -30
  14. package/dist/cli/curator-llm-factory-frde1955.js +54 -0
  15. package/dist/cli/{dispatch-07jgc3hn.js → dispatch-f4hj1cj7.js} +3 -3
  16. package/dist/cli/{evidence-summary-service-96ndczbk.js → evidence-summary-service-9hq7n9k9.js} +12 -12
  17. package/dist/cli/{gate-evidence-xqks3kk2.js → gate-evidence-cy2te3x8.js} +2 -2
  18. package/dist/cli/guardrail-explain-112kqmbc.js +55 -0
  19. package/dist/cli/guardrail-log-c8zcab91.js +16 -0
  20. package/dist/cli/hive-promoter-448xs2tp.js +69 -0
  21. package/dist/cli/{index-hns7xjm7.js → index-09vd53pz.js} +4 -2
  22. package/dist/cli/{pending-delegations-68cbaqv2.js → index-0cz1ws47.js} +9 -21
  23. package/dist/cli/{index-det5jwfk.js → index-0y6tmm9v.js} +5 -1
  24. package/dist/cli/index-134d35c1.js +116 -0
  25. package/dist/cli/{index-m1abzg93.js → index-1kz6da87.js} +4 -2
  26. package/dist/cli/{index-22e127jw.js → index-23zsx7dm.js} +5 -3
  27. package/dist/cli/{index-kzj3fp7c.js → index-2445sx3d.js} +1 -1
  28. package/dist/cli/{index-ctpgsj84.js → index-2tn5h2zp.js} +1 -1
  29. package/dist/cli/{index-6xnxz6z0.js → index-3x761jqv.js} +4 -2
  30. package/dist/cli/{index-7cspygmb.js → index-4rzzzjtg.js} +11 -8
  31. package/dist/cli/{index-cqsak7bf.js → index-67hqr2zv.js} +1 -1
  32. package/dist/cli/{index-nprawcc0.js → index-6n2jpz7x.js} +1 -1
  33. package/dist/cli/{index-19zn67q6.js → index-6vfvc36k.js} +5 -1
  34. package/dist/cli/{index-6sgqnvpw.js → index-7j3sm7h8.js} +2 -2
  35. package/dist/cli/{index-2j25br0p.js → index-958hf0yr.js} +9 -9
  36. package/dist/cli/{index-j9kxwshw.js → index-99ed0h32.js} +8 -6
  37. package/dist/cli/{index-7g91saha.js → index-9hbwa5x1.js} +40 -32
  38. package/dist/cli/{index-jyrhy4ww.js → index-amspa811.js} +3179 -1557
  39. package/dist/cli/index-bk5tah7q.js +19 -0
  40. package/dist/cli/{index-293f68mj.js → index-bpmtbmy9.js} +4680 -4342
  41. package/dist/cli/{index-m0bmh3w0.js → index-dx2c2wjt.js} +2 -2
  42. package/dist/cli/{index-ye3fndsw.js → index-gacm5s2n.js} +9 -5
  43. package/dist/cli/{index-d6h5hq91.js → index-gnvg72y1.js} +2 -2
  44. package/dist/cli/{index-17eybc3z.js → index-jh6s75f6.js} +1 -1
  45. package/dist/cli/{index-vcgfqd8f.js → index-k5jrywpr.js} +4 -2
  46. package/dist/cli/{index-3rr0ese8.js → index-kt0awv1n.js} +41 -9
  47. package/dist/cli/index-mg54y5gc.js +564 -0
  48. package/dist/cli/{index-dywekeen.js → index-n6chz2g8.js} +1 -1
  49. package/dist/cli/{index-gnp9x6se.js → index-n832052r.js} +4 -2
  50. package/dist/cli/{index-816rkp4y.js → index-s9mj4rb9.js} +5 -3
  51. package/dist/cli/{index-gw3m5fw0.js → index-v2rdhwx8.js} +5 -3
  52. package/dist/cli/{index-q00e4s1s.js → index-vtwqjr4z.js} +11 -7
  53. package/dist/cli/index-xattnmyb.js +2502 -0
  54. package/dist/cli/{index-n2712byd.js → index-yt1v62pv.js} +8 -5
  55. package/dist/cli/{index-5e4e2hvv.js → index-z6xqpmqg.js} +4 -0
  56. package/dist/cli/{index-p0arc26j.js → index-zjygnfay.js} +7 -2
  57. package/dist/cli/index.js +35 -31
  58. package/dist/cli/{knowledge-escalator-dyxsm78k.js → knowledge-escalator-htafbhxg.js} +4 -4
  59. package/dist/cli/{knowledge-events-36q6nvae.js → knowledge-events-havw8c4t.js} +1 -1
  60. package/dist/cli/{knowledge-store-e07b4s54.js → knowledge-store-hqngpt2v.js} +2 -2
  61. package/dist/cli/{knowledge-validator-sfyf7wn2.js → knowledge-validator-g7mpnazh.js} +5 -5
  62. package/dist/cli/pending-delegations-7j8xqg5f.js +34 -0
  63. package/dist/cli/{pr-subscriptions-x653151h.js → pr-subscriptions-bxpqde8w.js} +5 -5
  64. package/dist/cli/{scan-cursor-hm0aqqae.js → scan-cursor-sx7cvh8v.js} +3 -3
  65. package/dist/cli/{schema-13bnng2n.js → schema-2418eqy3.js} +7 -4
  66. package/dist/cli/{scope-persistence-d9erwnvb.js → scope-persistence-habn4q8a.js} +4 -4
  67. package/dist/cli/{skill-generator-63r20a9k.js → skill-generator-zggy797r.js} +7 -7
  68. package/dist/cli/sqlite-loader-r1kgt2pq.js +12 -0
  69. package/dist/cli/workspace-snapshot-c9pxxt9a.js +48 -0
  70. package/dist/commands/memory-link.d.ts +28 -0
  71. package/dist/commands/registry.d.ts +26 -1
  72. package/dist/config/schema.d.ts +6 -0
  73. package/dist/hooks/pr-workflow-gate.d.ts +211 -0
  74. package/dist/hooks/pr-workflow-response-gate.d.ts +23 -0
  75. package/dist/hooks/pr-workflow-session-resolver.d.ts +14 -0
  76. package/dist/index.js +496 -451
  77. package/dist/knowledge/family-migration-shared.d.ts +24 -0
  78. package/dist/knowledge/family-migration.d.ts +5 -0
  79. package/dist/memory/config.d.ts +11 -0
  80. package/dist/memory/consolidation-log.d.ts +8 -2
  81. package/dist/memory/finalize-reward-sweep.d.ts +2 -1
  82. package/dist/memory/gateway.d.ts +13 -0
  83. package/dist/memory/index.d.ts +4 -2
  84. package/dist/memory/local-jsonl-provider.d.ts +25 -1
  85. package/dist/memory/memory-family-manifest.d.ts +52 -0
  86. package/dist/memory/memory-family-migration.d.ts +94 -0
  87. package/dist/memory/memory-link.d.ts +103 -0
  88. package/dist/memory/provider-pool.d.ts +35 -0
  89. package/dist/memory/redaction.d.ts +31 -0
  90. package/dist/memory/schema.d.ts +21 -0
  91. package/dist/memory/sqlite-provider.d.ts +58 -1
  92. package/dist/memory/storage-root.d.ts +93 -0
  93. package/dist/memory/types.d.ts +20 -1
  94. package/dist/services/knowledge-diagnostics.d.ts +25 -0
  95. package/dist/services/status-service.d.ts +16 -0
  96. package/dist/tools/complete-pr-workflow.d.ts +5 -0
  97. package/dist/tools/dispatch-lanes.d.ts +44 -0
  98. package/dist/tools/index.d.ts +2 -0
  99. package/dist/tools/manifest.d.ts +2 -0
  100. package/dist/tools/run-pr-feedback-stage-a.d.ts +69 -0
  101. package/dist/tools/tool-metadata.d.ts +8 -0
  102. package/dist/tools/write-pr-review-trigger-eval.d.ts +56 -46
  103. package/package.json +1 -1
  104. package/dist/cli/curator-llm-factory-mfvd4sqx.js +0 -52
  105. package/dist/cli/guardrail-explain-4vytbchb.js +0 -53
  106. package/dist/cli/guardrail-log-z291m4gw.js +0 -16
  107. package/dist/cli/hive-promoter-y5wsztkc.js +0 -67
  108. package/dist/cli/index-4rhcth7a.js +0 -14
  109. package/dist/cli/index-dqh3zhhc.js +0 -133
  110. package/dist/cli/index-wr8qgpz5.js +0 -2463
  111. package/dist/cli/workspace-snapshot-eyf6gd0d.js +0 -22
@@ -52,6 +52,8 @@ export interface BackgroundDelegationRecord {
52
52
  laneId?: string;
53
53
  /** Advisory workflow/mode that launched the lane. */
54
54
  mode?: string;
55
+ /** Mechanical PR workflow obligation identifier, distinct from retry-safe laneId. */
56
+ workflowLane?: string;
55
57
  /** Canonical hash of prompt/provenance inputs captured at dispatch time. */
56
58
  promptHash?: string;
57
59
  /** Project/root provenance captured at dispatch time. */
@@ -119,6 +121,7 @@ export interface RecordPendingInput {
119
121
  batchId?: string;
120
122
  laneId?: string;
121
123
  mode?: string;
124
+ workflowLane?: string;
122
125
  promptHash?: string;
123
126
  workspace?: BackgroundWorkspaceSnapshot;
124
127
  taskChangeContext?: BackgroundTaskChangeContext;
@@ -11,8 +11,65 @@ interface CaptureWorkspaceSnapshotOptions {
11
11
  */
12
12
  resolveCurrentPrHeadSha?: boolean;
13
13
  }
14
+ /**
15
+ * Read one bounded repository file from an immutable commit without consulting
16
+ * the mutable checkout. Callers compare this text with the checkout copy before
17
+ * treating a PR-provided contract as authority.
18
+ */
19
+ export declare function readGitTextAtRevision(directory: string, revision: string, relativePath: string): string | null;
20
+ /** Resolve the exact checked-out commit through the bounded Git snapshot path. */
21
+ export declare function resolveCurrentGitHead(directory: string): string | null;
22
+ /** Resolve one exact PR merge base without shell interpolation or unbounded I/O. */
23
+ export declare function resolveExactMergeBase(directory: string, baseRef: string, prHeadSha: string): string | null;
24
+ /** Resolve the current branch's exact remote-tracking publication target. */
25
+ export declare function resolveCurrentUpstreamRemoteRef(directory: string): string | null;
26
+ export interface PrUpstreamPushTarget {
27
+ remoteName: string;
28
+ remoteBranchRef: string;
29
+ remoteTrackingRef: string;
30
+ }
31
+ /** Resolve a branch's upstream without guessing where a remote name ends. */
32
+ export declare function resolveCurrentUpstreamPushTarget(directory: string): PrUpstreamPushTarget | null;
33
+ /** Query the actual remote ref; local tracking refs are not publication proof. */
34
+ export declare function resolveExactRemoteBranchHead(directory: string, remoteName: string, remoteBranchRef: string): string | null;
35
+ /** Bind Stage-A execution to Git refs, config, HEAD, and index metadata. */
36
+ export declare function resolveGitControlStateDigest(directory: string): string | null;
37
+ /** Require all independently reviewed content to be captured by the commit. */
38
+ export declare function resolveIsWorkingTreeClean(directory: string): boolean | null;
39
+ /** Count commits on the ancestry path from the immutable intake head to HEAD. */
40
+ export declare function resolveCommitCountSince(directory: string, baseHeadSha: string, currentHeadSha: string): number | null;
41
+ /** Prove the publication commit is a non-merge direct child of intake HEAD. */
42
+ export declare function resolveIsExactSingleChildCommit(directory: string, baseHeadSha: string, currentHeadSha: string): boolean | null;
43
+ /**
44
+ * Return remote-tracking refs whose tip equals the exact checked-out commit.
45
+ * Publication closeout uses this bounded local observation after a successful
46
+ * push; an empty list is not proof that the approved revision was published.
47
+ */
48
+ export declare function resolveRemoteRefsContainingHead(directory: string, headSha: string): string[] | null;
49
+ /**
50
+ * Bind a mutable working tree to its actual content, not merely porcelain status.
51
+ * This lets PR-feedback approvals fail closed when a same-path edit occurs after a
52
+ * gate. Paths come from Git, are containment-checked, and are hashed without
53
+ * following symlinks outside the project.
54
+ */
55
+ export declare function resolvePrWorkflowRevisionDigest(directory: string, baseHeadSha: string): string | null;
56
+ /**
57
+ * Asynchronously bind a mutable working tree to its actual content. File
58
+ * reads are chunked with bounded cooperative yields so a large, permitted
59
+ * revision cannot stall the synchronous plugin gate path.
60
+ */
61
+ export declare function resolvePrWorkflowRevisionDigestAsync(directory: string, baseHeadSha: string): Promise<string | null>;
14
62
  /** Parse `git status --porcelain=v1 -z`, including both sides of renames. */
15
63
  export declare function parsePorcelainPaths(output: string): string[] | null;
64
+ interface PorcelainV2Snapshot {
65
+ gitHead: string | null;
66
+ changedFiles: string[];
67
+ }
68
+ /**
69
+ * Parse the one-command `git status --porcelain=v2 --branch -z` snapshot used
70
+ * by background evidence capture. A malformed or unknown record fails closed.
71
+ */
72
+ declare function parsePorcelainV2Snapshot(output: string): PorcelainV2Snapshot | null;
16
73
  export declare function captureWorkspaceSnapshot(directory: string, optionsOrScope?: string | null | CaptureWorkspaceSnapshotOptions, prHeadShaArg?: string | null): BackgroundWorkspaceSnapshot;
17
74
  /**
18
75
  * Conservatively derive final paths changed since a pre-task snapshot.
@@ -34,5 +91,7 @@ export declare function compareWorkspaceSnapshots(expected: BackgroundWorkspaceS
34
91
  export declare function digest(text: string): string;
35
92
  export declare const _internals: {
36
93
  spawnSync: SpawnSync;
94
+ yieldControl: () => Promise<void>;
95
+ parsePorcelainV2Snapshot: typeof parsePorcelainV2Snapshot;
37
96
  };
38
97
  export {};
@@ -12,13 +12,13 @@ import {
12
12
  shouldRunOnStartup,
13
13
  writeBackupArtifact,
14
14
  writeDoctorArtifact
15
- } from "./index-det5jwfk.js";
16
- import"./index-wr8qgpz5.js";
17
- import"./index-4rhcth7a.js";
18
- import"./index-5e4e2hvv.js";
19
- import"./index-p0arc26j.js";
15
+ } from "./index-0y6tmm9v.js";
16
+ import"./index-xattnmyb.js";
17
+ import"./index-bk5tah7q.js";
18
+ import"./index-z6xqpmqg.js";
19
+ import"./index-zjygnfay.js";
20
20
  import"./index-zgwm4ryv.js";
21
- import"./index-293f68mj.js";
21
+ import"./index-bpmtbmy9.js";
22
22
  import"./index-a76rekgs.js";
23
23
  export {
24
24
  writeDoctorArtifact,
@@ -14,10 +14,10 @@ import {
14
14
  resolveWorktreeBaseDir,
15
15
  shortenWorktreePath,
16
16
  writeLaneProfileToDiskReal
17
- } from "./index-gw3m5fw0.js";
18
- import"./index-ye3fndsw.js";
19
- import"./index-5e4e2hvv.js";
20
- import"./index-p0arc26j.js";
17
+ } from "./index-v2rdhwx8.js";
18
+ import"./index-gacm5s2n.js";
19
+ import"./index-z6xqpmqg.js";
20
+ import"./index-zjygnfay.js";
21
21
  import"./index-zgwm4ryv.js";
22
22
  import"./index-qe3v54nb.js";
23
23
  import"./index-a76rekgs.js";
@@ -4,9 +4,9 @@ import {
4
4
  authorizeCuration,
5
5
  buildConfigFingerprintInput,
6
6
  readCohortConfigFingerprint
7
- } from "./index-cqsak7bf.js";
7
+ } from "./index-67hqr2zv.js";
8
8
  import"./index-rtry5xyf.js";
9
- import"./index-dywekeen.js";
9
+ import"./index-n6chz2g8.js";
10
10
  import"./index-ae75rja9.js";
11
11
  import"./index-q27bajqb.js";
12
12
  import"./index-zgwm4ryv.js";
@@ -4,21 +4,21 @@ import {
4
4
  } from "./index-c8s9a3zh.js";
5
5
  import {
6
6
  readEffectiveSpecSync
7
- } from "./index-816rkp4y.js";
8
- import"./index-gnp9x6se.js";
9
- import"./index-ye3fndsw.js";
7
+ } from "./index-s9mj4rb9.js";
8
+ import"./index-n832052r.js";
9
+ import"./index-gacm5s2n.js";
10
10
  import {
11
11
  readSwarmFileAsync,
12
12
  validateSwarmPath
13
- } from "./index-kzj3fp7c.js";
14
- import"./index-5e4e2hvv.js";
15
- import"./index-p0arc26j.js";
13
+ } from "./index-2445sx3d.js";
14
+ import"./index-z6xqpmqg.js";
15
+ import"./index-zjygnfay.js";
16
16
  import {
17
17
  init_logger,
18
18
  warn
19
19
  } from "./index-zgwm4ryv.js";
20
20
  import"./index-fsrp8wp3.js";
21
- import"./index-293f68mj.js";
21
+ import"./index-bpmtbmy9.js";
22
22
  import"./index-qe3v54nb.js";
23
23
  import"./index-a76rekgs.js";
24
24
 
@@ -14,49 +14,51 @@ import {
14
14
  runCuratorInit,
15
15
  runCuratorPhase,
16
16
  writeCuratorSummary
17
- } from "./index-jyrhy4ww.js";
18
- import"./index-19zn67q6.js";
19
- import"./index-det5jwfk.js";
20
- import"./index-7cspygmb.js";
17
+ } from "./index-amspa811.js";
18
+ import"./index-6vfvc36k.js";
19
+ import"./index-0y6tmm9v.js";
20
+ import"./index-4rzzzjtg.js";
21
21
  import"./index-4905hd2m.js";
22
- import"./index-nprawcc0.js";
23
- import"./index-q00e4s1s.js";
24
- import"./index-j9kxwshw.js";
25
- import"./index-hns7xjm7.js";
22
+ import"./index-134d35c1.js";
23
+ import"./index-6n2jpz7x.js";
24
+ import"./index-vtwqjr4z.js";
25
+ import"./index-99ed0h32.js";
26
+ import"./index-09vd53pz.js";
26
27
  import"./index-vxv732ex.js";
27
28
  import"./index-c8s9a3zh.js";
28
- import"./index-816rkp4y.js";
29
- import"./index-22e127jw.js";
30
- import"./index-m0bmh3w0.js";
31
- import"./index-cqsak7bf.js";
29
+ import"./index-s9mj4rb9.js";
30
+ import"./index-23zsx7dm.js";
31
+ import"./index-dx2c2wjt.js";
32
+ import"./index-67hqr2zv.js";
32
33
  import"./index-rtry5xyf.js";
33
- import"./index-n2712byd.js";
34
- import"./index-dywekeen.js";
34
+ import"./index-yt1v62pv.js";
35
+ import"./index-n6chz2g8.js";
35
36
  import"./index-ae75rja9.js";
36
37
  import"./index-q27bajqb.js";
37
- import"./index-3rr0ese8.js";
38
- import"./index-vcgfqd8f.js";
39
- import"./index-gnp9x6se.js";
40
- import"./index-wr8qgpz5.js";
41
- import"./index-4rhcth7a.js";
38
+ import"./index-kt0awv1n.js";
39
+ import"./index-k5jrywpr.js";
40
+ import"./index-n832052r.js";
41
+ import"./index-xattnmyb.js";
42
+ import"./index-bk5tah7q.js";
42
43
  import"./index-8fwhhayc.js";
43
44
  import"./index-q1exe2b3.js";
44
- import"./index-d6h5hq91.js";
45
- import"./index-ctpgsj84.js";
46
- import"./index-m1abzg93.js";
47
- import"./index-gw3m5fw0.js";
48
- import"./index-ye3fndsw.js";
49
- import"./index-kzj3fp7c.js";
50
- import"./index-5e4e2hvv.js";
51
- import"./index-p0arc26j.js";
45
+ import"./index-gnvg72y1.js";
46
+ import"./index-2tn5h2zp.js";
47
+ import"./index-1kz6da87.js";
48
+ import"./index-v2rdhwx8.js";
49
+ import"./index-gacm5s2n.js";
50
+ import"./index-0cz1ws47.js";
51
+ import"./index-2445sx3d.js";
52
+ import"./index-z6xqpmqg.js";
53
+ import"./index-zjygnfay.js";
52
54
  import"./index-zgwm4ryv.js";
53
- import"./index-dqh3zhhc.js";
54
- import"./index-6xnxz6z0.js";
55
+ import"./index-mg54y5gc.js";
56
+ import"./index-3x761jqv.js";
55
57
  import"./index-7mkpsw6g.js";
56
58
  import"./index-fsrp8wp3.js";
57
59
  import"./index-76kvm9z5.js";
58
60
  import"./index-q2rrv0cy.js";
59
- import"./index-293f68mj.js";
61
+ import"./index-bpmtbmy9.js";
60
62
  import"./index-7g4c7s5r.js";
61
63
  import"./index-qe3v54nb.js";
62
64
  import"./index-a76rekgs.js";
@@ -0,0 +1,54 @@
1
+ // @bun
2
+ import {
3
+ createCuratorLLMDelegate
4
+ } from "./index-amspa811.js";
5
+ import"./index-6vfvc36k.js";
6
+ import"./index-0y6tmm9v.js";
7
+ import"./index-4rzzzjtg.js";
8
+ import"./index-4905hd2m.js";
9
+ import"./index-134d35c1.js";
10
+ import"./index-6n2jpz7x.js";
11
+ import"./index-vtwqjr4z.js";
12
+ import"./index-99ed0h32.js";
13
+ import"./index-09vd53pz.js";
14
+ import"./index-vxv732ex.js";
15
+ import"./index-c8s9a3zh.js";
16
+ import"./index-s9mj4rb9.js";
17
+ import"./index-23zsx7dm.js";
18
+ import"./index-dx2c2wjt.js";
19
+ import"./index-67hqr2zv.js";
20
+ import"./index-rtry5xyf.js";
21
+ import"./index-yt1v62pv.js";
22
+ import"./index-n6chz2g8.js";
23
+ import"./index-ae75rja9.js";
24
+ import"./index-q27bajqb.js";
25
+ import"./index-kt0awv1n.js";
26
+ import"./index-k5jrywpr.js";
27
+ import"./index-n832052r.js";
28
+ import"./index-xattnmyb.js";
29
+ import"./index-bk5tah7q.js";
30
+ import"./index-8fwhhayc.js";
31
+ import"./index-q1exe2b3.js";
32
+ import"./index-gnvg72y1.js";
33
+ import"./index-2tn5h2zp.js";
34
+ import"./index-1kz6da87.js";
35
+ import"./index-v2rdhwx8.js";
36
+ import"./index-gacm5s2n.js";
37
+ import"./index-0cz1ws47.js";
38
+ import"./index-2445sx3d.js";
39
+ import"./index-z6xqpmqg.js";
40
+ import"./index-zjygnfay.js";
41
+ import"./index-zgwm4ryv.js";
42
+ import"./index-mg54y5gc.js";
43
+ import"./index-3x761jqv.js";
44
+ import"./index-7mkpsw6g.js";
45
+ import"./index-fsrp8wp3.js";
46
+ import"./index-76kvm9z5.js";
47
+ import"./index-q2rrv0cy.js";
48
+ import"./index-bpmtbmy9.js";
49
+ import"./index-7g4c7s5r.js";
50
+ import"./index-qe3v54nb.js";
51
+ import"./index-a76rekgs.js";
52
+ export {
53
+ createCuratorLLMDelegate
54
+ };
@@ -11,9 +11,9 @@ import {
11
11
  defaultTestFilesFor,
12
12
  detectProjectLanguages,
13
13
  tokenizeCommand
14
- } from "./index-nprawcc0.js";
15
- import"./index-5e4e2hvv.js";
16
- import"./index-p0arc26j.js";
14
+ } from "./index-6n2jpz7x.js";
15
+ import"./index-z6xqpmqg.js";
16
+ import"./index-zjygnfay.js";
17
17
  import"./index-zgwm4ryv.js";
18
18
  import"./index-qe3v54nb.js";
19
19
  import"./index-a76rekgs.js";
@@ -6,26 +6,26 @@ import {
6
6
  loadPlanJsonOnly,
7
7
  mergeDurableGateEntriesFromEvidence,
8
8
  readDurableGateEvidence
9
- } from "./index-7cspygmb.js";
10
- import"./index-816rkp4y.js";
11
- import"./index-vcgfqd8f.js";
12
- import"./index-gnp9x6se.js";
9
+ } from "./index-4rzzzjtg.js";
10
+ import"./index-s9mj4rb9.js";
11
+ import"./index-k5jrywpr.js";
12
+ import"./index-n832052r.js";
13
13
  import"./index-q1exe2b3.js";
14
- import"./index-ctpgsj84.js";
15
- import"./index-m1abzg93.js";
16
- import"./index-ye3fndsw.js";
17
- import"./index-kzj3fp7c.js";
18
- import"./index-5e4e2hvv.js";
19
- import"./index-p0arc26j.js";
14
+ import"./index-2tn5h2zp.js";
15
+ import"./index-1kz6da87.js";
16
+ import"./index-gacm5s2n.js";
17
+ import"./index-2445sx3d.js";
18
+ import"./index-z6xqpmqg.js";
19
+ import"./index-zjygnfay.js";
20
20
  import {
21
21
  log
22
22
  } from "./index-zgwm4ryv.js";
23
- import"./index-6xnxz6z0.js";
23
+ import"./index-3x761jqv.js";
24
24
  import"./index-7mkpsw6g.js";
25
25
  import"./index-fsrp8wp3.js";
26
26
  import"./index-76kvm9z5.js";
27
27
  import"./index-q2rrv0cy.js";
28
- import"./index-293f68mj.js";
28
+ import"./index-bpmtbmy9.js";
29
29
  import"./index-7g4c7s5r.js";
30
30
  import"./index-qe3v54nb.js";
31
31
  import"./index-a76rekgs.js";
@@ -9,12 +9,12 @@ import {
9
9
  readTaskEvidenceRaw,
10
10
  recordAgentDispatch,
11
11
  recordGateEvidence
12
- } from "./index-6xnxz6z0.js";
12
+ } from "./index-3x761jqv.js";
13
13
  import"./index-7mkpsw6g.js";
14
14
  import"./index-fsrp8wp3.js";
15
15
  import"./index-76kvm9z5.js";
16
16
  import"./index-q2rrv0cy.js";
17
- import"./index-293f68mj.js";
17
+ import"./index-bpmtbmy9.js";
18
18
  import"./index-7g4c7s5r.js";
19
19
  import"./index-qe3v54nb.js";
20
20
  import"./index-a76rekgs.js";
@@ -0,0 +1,55 @@
1
+ // @bun
2
+ import {
3
+ handleGuardrailExplain
4
+ } from "./index-7j3sm7h8.js";
5
+ import"./index-amspa811.js";
6
+ import"./index-6vfvc36k.js";
7
+ import"./index-0y6tmm9v.js";
8
+ import"./index-4rzzzjtg.js";
9
+ import"./index-4905hd2m.js";
10
+ import"./index-134d35c1.js";
11
+ import"./index-6n2jpz7x.js";
12
+ import"./index-vtwqjr4z.js";
13
+ import"./index-99ed0h32.js";
14
+ import"./index-09vd53pz.js";
15
+ import"./index-vxv732ex.js";
16
+ import"./index-c8s9a3zh.js";
17
+ import"./index-s9mj4rb9.js";
18
+ import"./index-23zsx7dm.js";
19
+ import"./index-dx2c2wjt.js";
20
+ import"./index-67hqr2zv.js";
21
+ import"./index-rtry5xyf.js";
22
+ import"./index-yt1v62pv.js";
23
+ import"./index-n6chz2g8.js";
24
+ import"./index-ae75rja9.js";
25
+ import"./index-q27bajqb.js";
26
+ import"./index-kt0awv1n.js";
27
+ import"./index-k5jrywpr.js";
28
+ import"./index-n832052r.js";
29
+ import"./index-xattnmyb.js";
30
+ import"./index-bk5tah7q.js";
31
+ import"./index-8fwhhayc.js";
32
+ import"./index-q1exe2b3.js";
33
+ import"./index-gnvg72y1.js";
34
+ import"./index-2tn5h2zp.js";
35
+ import"./index-1kz6da87.js";
36
+ import"./index-v2rdhwx8.js";
37
+ import"./index-gacm5s2n.js";
38
+ import"./index-0cz1ws47.js";
39
+ import"./index-2445sx3d.js";
40
+ import"./index-z6xqpmqg.js";
41
+ import"./index-zjygnfay.js";
42
+ import"./index-zgwm4ryv.js";
43
+ import"./index-mg54y5gc.js";
44
+ import"./index-3x761jqv.js";
45
+ import"./index-7mkpsw6g.js";
46
+ import"./index-fsrp8wp3.js";
47
+ import"./index-76kvm9z5.js";
48
+ import"./index-q2rrv0cy.js";
49
+ import"./index-bpmtbmy9.js";
50
+ import"./index-7g4c7s5r.js";
51
+ import"./index-qe3v54nb.js";
52
+ import"./index-a76rekgs.js";
53
+ export {
54
+ handleGuardrailExplain
55
+ };
@@ -0,0 +1,16 @@
1
+ // @bun
2
+ import {
3
+ handleGuardrailLog
4
+ } from "./index-jh6s75f6.js";
5
+ import"./index-6vfvc36k.js";
6
+ import"./index-xattnmyb.js";
7
+ import"./index-bk5tah7q.js";
8
+ import"./index-z6xqpmqg.js";
9
+ import"./index-zjygnfay.js";
10
+ import"./index-zgwm4ryv.js";
11
+ import"./index-bpmtbmy9.js";
12
+ import"./index-qe3v54nb.js";
13
+ import"./index-a76rekgs.js";
14
+ export {
15
+ handleGuardrailLog
16
+ };
@@ -0,0 +1,69 @@
1
+ // @bun
2
+ import {
3
+ _internals1 as _internals,
4
+ checkHivePromotions,
5
+ countDistinctProjects,
6
+ createHivePromoterHook,
7
+ isHiveEligible,
8
+ promoteFromSwarm,
9
+ promoteToHive
10
+ } from "./index-amspa811.js";
11
+ import"./index-6vfvc36k.js";
12
+ import"./index-0y6tmm9v.js";
13
+ import"./index-4rzzzjtg.js";
14
+ import"./index-4905hd2m.js";
15
+ import"./index-134d35c1.js";
16
+ import"./index-6n2jpz7x.js";
17
+ import"./index-vtwqjr4z.js";
18
+ import"./index-99ed0h32.js";
19
+ import"./index-09vd53pz.js";
20
+ import"./index-vxv732ex.js";
21
+ import"./index-c8s9a3zh.js";
22
+ import"./index-s9mj4rb9.js";
23
+ import"./index-23zsx7dm.js";
24
+ import"./index-dx2c2wjt.js";
25
+ import"./index-67hqr2zv.js";
26
+ import"./index-rtry5xyf.js";
27
+ import {
28
+ resolveHiveKnowledgePath
29
+ } from "./index-yt1v62pv.js";
30
+ import"./index-n6chz2g8.js";
31
+ import"./index-ae75rja9.js";
32
+ import"./index-q27bajqb.js";
33
+ import"./index-kt0awv1n.js";
34
+ import"./index-k5jrywpr.js";
35
+ import"./index-n832052r.js";
36
+ import"./index-xattnmyb.js";
37
+ import"./index-bk5tah7q.js";
38
+ import"./index-8fwhhayc.js";
39
+ import"./index-q1exe2b3.js";
40
+ import"./index-gnvg72y1.js";
41
+ import"./index-2tn5h2zp.js";
42
+ import"./index-1kz6da87.js";
43
+ import"./index-v2rdhwx8.js";
44
+ import"./index-gacm5s2n.js";
45
+ import"./index-0cz1ws47.js";
46
+ import"./index-2445sx3d.js";
47
+ import"./index-z6xqpmqg.js";
48
+ import"./index-zjygnfay.js";
49
+ import"./index-zgwm4ryv.js";
50
+ import"./index-mg54y5gc.js";
51
+ import"./index-3x761jqv.js";
52
+ import"./index-7mkpsw6g.js";
53
+ import"./index-fsrp8wp3.js";
54
+ import"./index-76kvm9z5.js";
55
+ import"./index-q2rrv0cy.js";
56
+ import"./index-bpmtbmy9.js";
57
+ import"./index-7g4c7s5r.js";
58
+ import"./index-qe3v54nb.js";
59
+ import"./index-a76rekgs.js";
60
+ export {
61
+ resolveHiveKnowledgePath,
62
+ promoteToHive,
63
+ promoteFromSwarm,
64
+ isHiveEligible,
65
+ createHivePromoterHook,
66
+ countDistinctProjects,
67
+ checkHivePromotions,
68
+ _internals
69
+ };
@@ -2,13 +2,14 @@
2
2
  import {
3
3
  readKnowledge,
4
4
  transactKnowledge
5
- } from "./index-n2712byd.js";
5
+ } from "./index-yt1v62pv.js";
6
6
  import {
7
7
  resolveKnowledgeStoreDir
8
8
  } from "./index-q27bajqb.js";
9
9
  import {
10
+ init_knowledge_types,
10
11
  isActiveStatus
11
- } from "./index-4rhcth7a.js";
12
+ } from "./index-bk5tah7q.js";
12
13
  import {
13
14
  init_logger,
14
15
  log
@@ -22,6 +23,7 @@ import {
22
23
  import { existsSync } from "fs";
23
24
  import { mkdir, readFile, writeFile } from "fs/promises";
24
25
  import * as path2 from "path";
26
+ init_knowledge_types();
25
27
  init_logger();
26
28
 
27
29
  // src/knowledge/cohort-identity.ts
@@ -1,26 +1,21 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-kzj3fp7c.js";
5
- import"./index-5e4e2hvv.js";
6
- import"./index-p0arc26j.js";
4
+ } from "./index-2445sx3d.js";
7
5
  import {
8
6
  init_logger,
9
7
  warn
10
8
  } from "./index-zgwm4ryv.js";
11
- import"./index-fsrp8wp3.js";
12
9
  import {
13
10
  withEvidenceLock
14
11
  } from "./index-76kvm9z5.js";
15
- import"./index-q2rrv0cy.js";
16
12
  import {
17
- exports_external
18
- } from "./index-293f68mj.js";
19
- import"./index-7g4c7s5r.js";
20
- import"./index-qe3v54nb.js";
21
- import"./index-a76rekgs.js";
13
+ exports_external,
14
+ init_zod
15
+ } from "./index-bpmtbmy9.js";
22
16
 
23
17
  // src/background/pending-delegations.ts
18
+ init_zod();
24
19
  import { createHash } from "crypto";
25
20
  import * as fs from "fs";
26
21
  import * as path from "path";
@@ -85,6 +80,7 @@ var RecordSchema = exports_external.object({
85
80
  batchId: exports_external.string().optional(),
86
81
  laneId: exports_external.string().optional(),
87
82
  mode: exports_external.string().optional(),
83
+ workflowLane: exports_external.string().optional(),
88
84
  promptHash: exports_external.string().optional(),
89
85
  workspace: WorkspaceSchema.optional(),
90
86
  taskChangeContext: TaskChangeContextSchema.optional(),
@@ -161,6 +157,7 @@ async function recordPendingDelegation(directory, input, options = {}) {
161
157
  ...input.batchId ? { batchId: input.batchId } : {},
162
158
  ...input.laneId ? { laneId: input.laneId } : {},
163
159
  ...input.mode ? { mode: input.mode } : {},
160
+ ...input.workflowLane ? { workflowLane: input.workflowLane } : {},
164
161
  ...input.promptHash ? { promptHash: input.promptHash } : {},
165
162
  ...input.workspace ? { workspace: input.workspace } : {},
166
163
  ...input.taskChangeContext ? { taskChangeContext: input.taskChangeContext } : {},
@@ -256,14 +253,5 @@ async function sweepStaleDelegations(directory, timeoutMs) {
256
253
  return 0;
257
254
  }
258
255
  }
259
- export {
260
- sweepStaleDelegations,
261
- recordPendingDelegation,
262
- readDelegations,
263
- findOpenAsyncLaneBatches,
264
- findByCorrelationId,
265
- findByBatchId,
266
- buildPromptSnapshot,
267
- appendDelegationTransition,
268
- BACKGROUND_DELEGATIONS_FILE
269
- };
256
+
257
+ export { BACKGROUND_DELEGATIONS_FILE, readDelegations, findByCorrelationId, recordPendingDelegation, buildPromptSnapshot, appendDelegationTransition, findByBatchId, findOpenAsyncLaneBatches, sweepStaleDelegations };
@@ -4,13 +4,17 @@ import {
4
4
  GATE_CONFIG_KNOWN_SECTION_KEYS,
5
5
  GateConfigSchema,
6
6
  PluginConfigSchema,
7
+ init_constants,
8
+ init_schema,
7
9
  stripKnownSwarmPrefix
8
- } from "./index-wr8qgpz5.js";
10
+ } from "./index-xattnmyb.js";
9
11
  import {
10
12
  log
11
13
  } from "./index-zgwm4ryv.js";
12
14
 
13
15
  // src/services/config-doctor.ts
16
+ init_constants();
17
+ init_schema();
14
18
  import * as crypto from "crypto";
15
19
  import * as fs from "fs";
16
20
  import * as os from "os";