opencode-swarm 7.124.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 (58) 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 +3 -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-53mnpeke.js → config-doctor-be9sxqx8.js} +2 -2
  10. package/dist/cli/{curation-policy-ny033330.js → curation-policy-52kt6d7t.js} +2 -2
  11. package/dist/cli/{curator-nvn1pdq6.js → curator-hbst8nbc.js} +14 -13
  12. package/dist/cli/{curator-llm-factory-e0tjz8qq.js → curator-llm-factory-frde1955.js} +14 -13
  13. package/dist/cli/{guardrail-explain-d3dd57nf.js → guardrail-explain-112kqmbc.js} +15 -14
  14. package/dist/cli/{guardrail-log-3q2z9axs.js → guardrail-log-c8zcab91.js} +3 -3
  15. package/dist/cli/{hive-promoter-9gbpepgm.js → hive-promoter-448xs2tp.js} +14 -13
  16. package/dist/cli/{index-eeg04r0x.js → index-09vd53pz.js} +1 -1
  17. package/dist/cli/{pending-delegations-e3bcqj77.js → index-0cz1ws47.js} +4 -18
  18. package/dist/cli/{index-v5ecczts.js → index-0y6tmm9v.js} +1 -1
  19. package/dist/cli/{index-13d2g7k9.js → index-67hqr2zv.js} +1 -1
  20. package/dist/cli/{index-e19mxn9f.js → index-6vfvc36k.js} +1 -1
  21. package/dist/cli/{index-qd77aft9.js → index-7j3sm7h8.js} +2 -2
  22. package/dist/cli/{index-wqwpzhv1.js → index-958hf0yr.js} +2 -2
  23. package/dist/cli/{index-z0m4angq.js → index-99ed0h32.js} +5 -5
  24. package/dist/cli/{index-8pz0ypxz.js → index-9hbwa5x1.js} +16 -15
  25. package/dist/cli/{index-mkkx1a4f.js → index-amspa811.js} +1504 -882
  26. package/dist/cli/{index-zjedv2bd.js → index-dx2c2wjt.js} +2 -2
  27. package/dist/cli/{index-htbjqftb.js → index-jh6s75f6.js} +1 -1
  28. package/dist/cli/{index-3yyr4ynk.js → index-kt0awv1n.js} +1 -1
  29. package/dist/cli/index-mg54y5gc.js +564 -0
  30. package/dist/cli/{index-x2mmnrnx.js → index-n6chz2g8.js} +1 -1
  31. package/dist/cli/{index-tyg0zezw.js → index-vtwqjr4z.js} +3 -3
  32. package/dist/cli/{index-c6crt5rs.js → index-xattnmyb.js} +9 -1
  33. package/dist/cli/{index-2x4maxte.js → index-yt1v62pv.js} +4 -4
  34. package/dist/cli/index.js +14 -13
  35. package/dist/cli/{knowledge-escalator-r1s01m3z.js → knowledge-escalator-htafbhxg.js} +3 -3
  36. package/dist/cli/{knowledge-events-a9hmxvke.js → knowledge-events-havw8c4t.js} +1 -1
  37. package/dist/cli/{knowledge-store-jt31br5k.js → knowledge-store-hqngpt2v.js} +1 -1
  38. package/dist/cli/{knowledge-validator-9vrwxr3z.js → knowledge-validator-g7mpnazh.js} +4 -4
  39. package/dist/cli/pending-delegations-7j8xqg5f.js +34 -0
  40. package/dist/cli/{scan-cursor-bkjtsawg.js → scan-cursor-sx7cvh8v.js} +2 -2
  41. package/dist/cli/{schema-y3z416z7.js → schema-2418eqy3.js} +1 -1
  42. package/dist/cli/{skill-generator-794hyndw.js → skill-generator-zggy797r.js} +5 -5
  43. package/dist/cli/workspace-snapshot-c9pxxt9a.js +48 -0
  44. package/dist/commands/registry.d.ts +1 -1
  45. package/dist/hooks/pr-workflow-gate.d.ts +211 -0
  46. package/dist/hooks/pr-workflow-response-gate.d.ts +23 -0
  47. package/dist/hooks/pr-workflow-session-resolver.d.ts +14 -0
  48. package/dist/index.js +477 -445
  49. package/dist/tools/complete-pr-workflow.d.ts +5 -0
  50. package/dist/tools/dispatch-lanes.d.ts +44 -0
  51. package/dist/tools/index.d.ts +2 -0
  52. package/dist/tools/manifest.d.ts +2 -0
  53. package/dist/tools/run-pr-feedback-stage-a.d.ts +69 -0
  54. package/dist/tools/tool-metadata.d.ts +8 -0
  55. package/dist/tools/write-pr-review-trigger-eval.d.ts +56 -46
  56. package/package.json +1 -1
  57. package/dist/cli/index-dqh3zhhc.js +0 -133
  58. 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,8 +12,8 @@ import {
12
12
  shouldRunOnStartup,
13
13
  writeBackupArtifact,
14
14
  writeDoctorArtifact
15
- } from "./index-v5ecczts.js";
16
- import"./index-c6crt5rs.js";
15
+ } from "./index-0y6tmm9v.js";
16
+ import"./index-xattnmyb.js";
17
17
  import"./index-bk5tah7q.js";
18
18
  import"./index-z6xqpmqg.js";
19
19
  import"./index-zjygnfay.js";
@@ -4,9 +4,9 @@ import {
4
4
  authorizeCuration,
5
5
  buildConfigFingerprintInput,
6
6
  readCohortConfigFingerprint
7
- } from "./index-13d2g7k9.js";
7
+ } from "./index-67hqr2zv.js";
8
8
  import"./index-rtry5xyf.js";
9
- import"./index-x2mmnrnx.js";
9
+ import"./index-n6chz2g8.js";
10
10
  import"./index-ae75rja9.js";
11
11
  import"./index-q27bajqb.js";
12
12
  import"./index-zgwm4ryv.js";
@@ -14,31 +14,31 @@ import {
14
14
  runCuratorInit,
15
15
  runCuratorPhase,
16
16
  writeCuratorSummary
17
- } from "./index-mkkx1a4f.js";
18
- import"./index-e19mxn9f.js";
19
- import"./index-v5ecczts.js";
17
+ } from "./index-amspa811.js";
18
+ import"./index-6vfvc36k.js";
19
+ import"./index-0y6tmm9v.js";
20
20
  import"./index-4rzzzjtg.js";
21
21
  import"./index-4905hd2m.js";
22
22
  import"./index-134d35c1.js";
23
23
  import"./index-6n2jpz7x.js";
24
- import"./index-tyg0zezw.js";
25
- import"./index-z0m4angq.js";
26
- import"./index-eeg04r0x.js";
24
+ import"./index-vtwqjr4z.js";
25
+ import"./index-99ed0h32.js";
26
+ import"./index-09vd53pz.js";
27
27
  import"./index-vxv732ex.js";
28
28
  import"./index-c8s9a3zh.js";
29
29
  import"./index-s9mj4rb9.js";
30
30
  import"./index-23zsx7dm.js";
31
- import"./index-zjedv2bd.js";
32
- import"./index-13d2g7k9.js";
31
+ import"./index-dx2c2wjt.js";
32
+ import"./index-67hqr2zv.js";
33
33
  import"./index-rtry5xyf.js";
34
- import"./index-2x4maxte.js";
35
- import"./index-x2mmnrnx.js";
34
+ import"./index-yt1v62pv.js";
35
+ import"./index-n6chz2g8.js";
36
36
  import"./index-ae75rja9.js";
37
37
  import"./index-q27bajqb.js";
38
- import"./index-3yyr4ynk.js";
38
+ import"./index-kt0awv1n.js";
39
39
  import"./index-k5jrywpr.js";
40
40
  import"./index-n832052r.js";
41
- import"./index-c6crt5rs.js";
41
+ import"./index-xattnmyb.js";
42
42
  import"./index-bk5tah7q.js";
43
43
  import"./index-8fwhhayc.js";
44
44
  import"./index-q1exe2b3.js";
@@ -47,11 +47,12 @@ import"./index-2tn5h2zp.js";
47
47
  import"./index-1kz6da87.js";
48
48
  import"./index-v2rdhwx8.js";
49
49
  import"./index-gacm5s2n.js";
50
+ import"./index-0cz1ws47.js";
50
51
  import"./index-2445sx3d.js";
51
52
  import"./index-z6xqpmqg.js";
52
53
  import"./index-zjygnfay.js";
53
54
  import"./index-zgwm4ryv.js";
54
- import"./index-dqh3zhhc.js";
55
+ import"./index-mg54y5gc.js";
55
56
  import"./index-3x761jqv.js";
56
57
  import"./index-7mkpsw6g.js";
57
58
  import"./index-fsrp8wp3.js";
@@ -1,31 +1,31 @@
1
1
  // @bun
2
2
  import {
3
3
  createCuratorLLMDelegate
4
- } from "./index-mkkx1a4f.js";
5
- import"./index-e19mxn9f.js";
6
- import"./index-v5ecczts.js";
4
+ } from "./index-amspa811.js";
5
+ import"./index-6vfvc36k.js";
6
+ import"./index-0y6tmm9v.js";
7
7
  import"./index-4rzzzjtg.js";
8
8
  import"./index-4905hd2m.js";
9
9
  import"./index-134d35c1.js";
10
10
  import"./index-6n2jpz7x.js";
11
- import"./index-tyg0zezw.js";
12
- import"./index-z0m4angq.js";
13
- import"./index-eeg04r0x.js";
11
+ import"./index-vtwqjr4z.js";
12
+ import"./index-99ed0h32.js";
13
+ import"./index-09vd53pz.js";
14
14
  import"./index-vxv732ex.js";
15
15
  import"./index-c8s9a3zh.js";
16
16
  import"./index-s9mj4rb9.js";
17
17
  import"./index-23zsx7dm.js";
18
- import"./index-zjedv2bd.js";
19
- import"./index-13d2g7k9.js";
18
+ import"./index-dx2c2wjt.js";
19
+ import"./index-67hqr2zv.js";
20
20
  import"./index-rtry5xyf.js";
21
- import"./index-2x4maxte.js";
22
- import"./index-x2mmnrnx.js";
21
+ import"./index-yt1v62pv.js";
22
+ import"./index-n6chz2g8.js";
23
23
  import"./index-ae75rja9.js";
24
24
  import"./index-q27bajqb.js";
25
- import"./index-3yyr4ynk.js";
25
+ import"./index-kt0awv1n.js";
26
26
  import"./index-k5jrywpr.js";
27
27
  import"./index-n832052r.js";
28
- import"./index-c6crt5rs.js";
28
+ import"./index-xattnmyb.js";
29
29
  import"./index-bk5tah7q.js";
30
30
  import"./index-8fwhhayc.js";
31
31
  import"./index-q1exe2b3.js";
@@ -34,11 +34,12 @@ import"./index-2tn5h2zp.js";
34
34
  import"./index-1kz6da87.js";
35
35
  import"./index-v2rdhwx8.js";
36
36
  import"./index-gacm5s2n.js";
37
+ import"./index-0cz1ws47.js";
37
38
  import"./index-2445sx3d.js";
38
39
  import"./index-z6xqpmqg.js";
39
40
  import"./index-zjygnfay.js";
40
41
  import"./index-zgwm4ryv.js";
41
- import"./index-dqh3zhhc.js";
42
+ import"./index-mg54y5gc.js";
42
43
  import"./index-3x761jqv.js";
43
44
  import"./index-7mkpsw6g.js";
44
45
  import"./index-fsrp8wp3.js";
@@ -1,32 +1,32 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-qd77aft9.js";
5
- import"./index-mkkx1a4f.js";
6
- import"./index-e19mxn9f.js";
7
- import"./index-v5ecczts.js";
4
+ } from "./index-7j3sm7h8.js";
5
+ import"./index-amspa811.js";
6
+ import"./index-6vfvc36k.js";
7
+ import"./index-0y6tmm9v.js";
8
8
  import"./index-4rzzzjtg.js";
9
9
  import"./index-4905hd2m.js";
10
10
  import"./index-134d35c1.js";
11
11
  import"./index-6n2jpz7x.js";
12
- import"./index-tyg0zezw.js";
13
- import"./index-z0m4angq.js";
14
- import"./index-eeg04r0x.js";
12
+ import"./index-vtwqjr4z.js";
13
+ import"./index-99ed0h32.js";
14
+ import"./index-09vd53pz.js";
15
15
  import"./index-vxv732ex.js";
16
16
  import"./index-c8s9a3zh.js";
17
17
  import"./index-s9mj4rb9.js";
18
18
  import"./index-23zsx7dm.js";
19
- import"./index-zjedv2bd.js";
20
- import"./index-13d2g7k9.js";
19
+ import"./index-dx2c2wjt.js";
20
+ import"./index-67hqr2zv.js";
21
21
  import"./index-rtry5xyf.js";
22
- import"./index-2x4maxte.js";
23
- import"./index-x2mmnrnx.js";
22
+ import"./index-yt1v62pv.js";
23
+ import"./index-n6chz2g8.js";
24
24
  import"./index-ae75rja9.js";
25
25
  import"./index-q27bajqb.js";
26
- import"./index-3yyr4ynk.js";
26
+ import"./index-kt0awv1n.js";
27
27
  import"./index-k5jrywpr.js";
28
28
  import"./index-n832052r.js";
29
- import"./index-c6crt5rs.js";
29
+ import"./index-xattnmyb.js";
30
30
  import"./index-bk5tah7q.js";
31
31
  import"./index-8fwhhayc.js";
32
32
  import"./index-q1exe2b3.js";
@@ -35,11 +35,12 @@ import"./index-2tn5h2zp.js";
35
35
  import"./index-1kz6da87.js";
36
36
  import"./index-v2rdhwx8.js";
37
37
  import"./index-gacm5s2n.js";
38
+ import"./index-0cz1ws47.js";
38
39
  import"./index-2445sx3d.js";
39
40
  import"./index-z6xqpmqg.js";
40
41
  import"./index-zjygnfay.js";
41
42
  import"./index-zgwm4ryv.js";
42
- import"./index-dqh3zhhc.js";
43
+ import"./index-mg54y5gc.js";
43
44
  import"./index-3x761jqv.js";
44
45
  import"./index-7mkpsw6g.js";
45
46
  import"./index-fsrp8wp3.js";
@@ -1,9 +1,9 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailLog
4
- } from "./index-htbjqftb.js";
5
- import"./index-e19mxn9f.js";
6
- import"./index-c6crt5rs.js";
4
+ } from "./index-jh6s75f6.js";
5
+ import"./index-6vfvc36k.js";
6
+ import"./index-xattnmyb.js";
7
7
  import"./index-bk5tah7q.js";
8
8
  import"./index-z6xqpmqg.js";
9
9
  import"./index-zjygnfay.js";
@@ -7,33 +7,33 @@ import {
7
7
  isHiveEligible,
8
8
  promoteFromSwarm,
9
9
  promoteToHive
10
- } from "./index-mkkx1a4f.js";
11
- import"./index-e19mxn9f.js";
12
- import"./index-v5ecczts.js";
10
+ } from "./index-amspa811.js";
11
+ import"./index-6vfvc36k.js";
12
+ import"./index-0y6tmm9v.js";
13
13
  import"./index-4rzzzjtg.js";
14
14
  import"./index-4905hd2m.js";
15
15
  import"./index-134d35c1.js";
16
16
  import"./index-6n2jpz7x.js";
17
- import"./index-tyg0zezw.js";
18
- import"./index-z0m4angq.js";
19
- import"./index-eeg04r0x.js";
17
+ import"./index-vtwqjr4z.js";
18
+ import"./index-99ed0h32.js";
19
+ import"./index-09vd53pz.js";
20
20
  import"./index-vxv732ex.js";
21
21
  import"./index-c8s9a3zh.js";
22
22
  import"./index-s9mj4rb9.js";
23
23
  import"./index-23zsx7dm.js";
24
- import"./index-zjedv2bd.js";
25
- import"./index-13d2g7k9.js";
24
+ import"./index-dx2c2wjt.js";
25
+ import"./index-67hqr2zv.js";
26
26
  import"./index-rtry5xyf.js";
27
27
  import {
28
28
  resolveHiveKnowledgePath
29
- } from "./index-2x4maxte.js";
30
- import"./index-x2mmnrnx.js";
29
+ } from "./index-yt1v62pv.js";
30
+ import"./index-n6chz2g8.js";
31
31
  import"./index-ae75rja9.js";
32
32
  import"./index-q27bajqb.js";
33
- import"./index-3yyr4ynk.js";
33
+ import"./index-kt0awv1n.js";
34
34
  import"./index-k5jrywpr.js";
35
35
  import"./index-n832052r.js";
36
- import"./index-c6crt5rs.js";
36
+ import"./index-xattnmyb.js";
37
37
  import"./index-bk5tah7q.js";
38
38
  import"./index-8fwhhayc.js";
39
39
  import"./index-q1exe2b3.js";
@@ -42,11 +42,12 @@ import"./index-2tn5h2zp.js";
42
42
  import"./index-1kz6da87.js";
43
43
  import"./index-v2rdhwx8.js";
44
44
  import"./index-gacm5s2n.js";
45
+ import"./index-0cz1ws47.js";
45
46
  import"./index-2445sx3d.js";
46
47
  import"./index-z6xqpmqg.js";
47
48
  import"./index-zjygnfay.js";
48
49
  import"./index-zgwm4ryv.js";
49
- import"./index-dqh3zhhc.js";
50
+ import"./index-mg54y5gc.js";
50
51
  import"./index-3x761jqv.js";
51
52
  import"./index-7mkpsw6g.js";
52
53
  import"./index-fsrp8wp3.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  readKnowledge,
4
4
  transactKnowledge
5
- } from "./index-2x4maxte.js";
5
+ } from "./index-yt1v62pv.js";
6
6
  import {
7
7
  resolveKnowledgeStoreDir
8
8
  } from "./index-q27bajqb.js";
@@ -2,24 +2,17 @@
2
2
  import {
3
3
  validateSwarmPath
4
4
  } from "./index-2445sx3d.js";
5
- import"./index-z6xqpmqg.js";
6
- import"./index-zjygnfay.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
13
  exports_external,
18
14
  init_zod
19
15
  } from "./index-bpmtbmy9.js";
20
- import"./index-7g4c7s5r.js";
21
- import"./index-qe3v54nb.js";
22
- import"./index-a76rekgs.js";
23
16
 
24
17
  // src/background/pending-delegations.ts
25
18
  init_zod();
@@ -87,6 +80,7 @@ var RecordSchema = exports_external.object({
87
80
  batchId: exports_external.string().optional(),
88
81
  laneId: exports_external.string().optional(),
89
82
  mode: exports_external.string().optional(),
83
+ workflowLane: exports_external.string().optional(),
90
84
  promptHash: exports_external.string().optional(),
91
85
  workspace: WorkspaceSchema.optional(),
92
86
  taskChangeContext: TaskChangeContextSchema.optional(),
@@ -163,6 +157,7 @@ async function recordPendingDelegation(directory, input, options = {}) {
163
157
  ...input.batchId ? { batchId: input.batchId } : {},
164
158
  ...input.laneId ? { laneId: input.laneId } : {},
165
159
  ...input.mode ? { mode: input.mode } : {},
160
+ ...input.workflowLane ? { workflowLane: input.workflowLane } : {},
166
161
  ...input.promptHash ? { promptHash: input.promptHash } : {},
167
162
  ...input.workspace ? { workspace: input.workspace } : {},
168
163
  ...input.taskChangeContext ? { taskChangeContext: input.taskChangeContext } : {},
@@ -258,14 +253,5 @@ async function sweepStaleDelegations(directory, timeoutMs) {
258
253
  return 0;
259
254
  }
260
255
  }
261
- export {
262
- sweepStaleDelegations,
263
- recordPendingDelegation,
264
- readDelegations,
265
- findOpenAsyncLaneBatches,
266
- findByCorrelationId,
267
- findByBatchId,
268
- buildPromptSnapshot,
269
- appendDelegationTransition,
270
- BACKGROUND_DELEGATIONS_FILE
271
- };
256
+
257
+ export { BACKGROUND_DELEGATIONS_FILE, readDelegations, findByCorrelationId, recordPendingDelegation, buildPromptSnapshot, appendDelegationTransition, findByBatchId, findOpenAsyncLaneBatches, sweepStaleDelegations };
@@ -7,7 +7,7 @@ import {
7
7
  init_constants,
8
8
  init_schema,
9
9
  stripKnownSwarmPrefix
10
- } from "./index-c6crt5rs.js";
10
+ } from "./index-xattnmyb.js";
11
11
  import {
12
12
  log
13
13
  } from "./index-zgwm4ryv.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-rtry5xyf.js";
5
5
  import {
6
6
  readKnowledgeEvents
7
- } from "./index-x2mmnrnx.js";
7
+ } from "./index-n6chz2g8.js";
8
8
  import {
9
9
  isLinked,
10
10
  readLinkPointer,
@@ -3,7 +3,7 @@ import {
3
3
  init_constants,
4
4
  init_schema,
5
5
  stripKnownSwarmPrefix
6
- } from "./index-c6crt5rs.js";
6
+ } from "./index-xattnmyb.js";
7
7
  import {
8
8
  init_logger,
9
9
  warn
@@ -12,14 +12,14 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-mkkx1a4f.js";
15
+ } from "./index-amspa811.js";
16
16
  import {
17
17
  checkFileAuthority,
18
18
  classifyFile,
19
19
  isInDeclaredScope,
20
20
  redactPath,
21
21
  redactShellCommand
22
- } from "./index-e19mxn9f.js";
22
+ } from "./index-6vfvc36k.js";
23
23
 
24
24
  // src/services/guardrail-explain-service.ts
25
25
  import path from "path";
@@ -6,7 +6,7 @@ import {
6
6
  loadPluginConfigWithMeta,
7
7
  loadPluginConfigWithMetaAsync,
8
8
  resolveWorktreeIsolationConfig
9
- } from "./index-3yyr4ynk.js";
9
+ } from "./index-kt0awv1n.js";
10
10
  import {
11
11
  ApprovalEvidenceSchema,
12
12
  BaseEvidenceSchema,
@@ -58,7 +58,7 @@ import {
58
58
  WorktreeIsolationConfigSchema,
59
59
  isQAAgent,
60
60
  isSubagent
61
- } from "./index-c6crt5rs.js";
61
+ } from "./index-xattnmyb.js";
62
62
  import"./index-bk5tah7q.js";
63
63
  import {
64
64
  MigrationStatusSchema,
@@ -6,13 +6,13 @@ import {
6
6
  resolveSwarmKnowledgePath,
7
7
  transactKnowledge,
8
8
  wordBigrams
9
- } from "./index-2x4maxte.js";
9
+ } from "./index-yt1v62pv.js";
10
10
  import {
11
11
  countEntryContradictionsInWindow,
12
12
  countEntryViolationsInWindow,
13
13
  readKnowledgeEvents,
14
14
  recordKnowledgeEvent
15
- } from "./index-x2mmnrnx.js";
15
+ } from "./index-n6chz2g8.js";
16
16
  import {
17
17
  init_knowledge_types,
18
18
  isActiveStatus
@@ -190,11 +190,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
190
190
  alreadyInactive: true
191
191
  };
192
192
  }
193
- const { quarantineEntry } = await import("./knowledge-validator-9vrwxr3z.js");
193
+ const { quarantineEntry } = await import("./knowledge-validator-g7mpnazh.js");
194
194
  let policyConfig;
195
195
  try {
196
- const { KnowledgeConfigSchema } = await import("./schema-y3z416z7.js");
197
- const { loadPluginConfigWithMeta } = await import("./index-wqwpzhv1.js");
196
+ const { KnowledgeConfigSchema } = await import("./schema-2418eqy3.js");
197
+ const { loadPluginConfigWithMeta } = await import("./index-958hf0yr.js");
198
198
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
199
199
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
200
200
  } catch {
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-qd77aft9.js";
4
+ } from "./index-7j3sm7h8.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-htbjqftb.js";
7
+ } from "./index-jh6s75f6.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -83,28 +83,28 @@ import {
83
83
  handleWriteRetroCommand,
84
84
  normalizeSwarmCommandInput,
85
85
  resolveCommand
86
- } from "./index-mkkx1a4f.js";
87
- import"./index-e19mxn9f.js";
88
- import"./index-v5ecczts.js";
86
+ } from "./index-amspa811.js";
87
+ import"./index-6vfvc36k.js";
88
+ import"./index-0y6tmm9v.js";
89
89
  import"./index-4rzzzjtg.js";
90
90
  import"./index-4905hd2m.js";
91
91
  import"./index-134d35c1.js";
92
92
  import"./index-6n2jpz7x.js";
93
- import"./index-tyg0zezw.js";
94
- import"./index-z0m4angq.js";
95
- import"./index-eeg04r0x.js";
93
+ import"./index-vtwqjr4z.js";
94
+ import"./index-99ed0h32.js";
95
+ import"./index-09vd53pz.js";
96
96
  import"./index-vxv732ex.js";
97
97
  import"./index-c8s9a3zh.js";
98
98
  import"./index-s9mj4rb9.js";
99
99
  import"./index-23zsx7dm.js";
100
- import"./index-zjedv2bd.js";
101
- import"./index-13d2g7k9.js";
100
+ import"./index-dx2c2wjt.js";
101
+ import"./index-67hqr2zv.js";
102
102
  import"./index-rtry5xyf.js";
103
- import"./index-2x4maxte.js";
104
- import"./index-x2mmnrnx.js";
103
+ import"./index-yt1v62pv.js";
104
+ import"./index-n6chz2g8.js";
105
105
  import"./index-ae75rja9.js";
106
106
  import"./index-q27bajqb.js";
107
- import"./index-3yyr4ynk.js";
107
+ import"./index-kt0awv1n.js";
108
108
  import"./index-k5jrywpr.js";
109
109
  import"./index-n832052r.js";
110
110
  import {
@@ -113,7 +113,7 @@ import {
113
113
  init_constants,
114
114
  init_schema,
115
115
  stripKnownSwarmPrefix
116
- } from "./index-c6crt5rs.js";
116
+ } from "./index-xattnmyb.js";
117
117
  import"./index-bk5tah7q.js";
118
118
  import"./index-8fwhhayc.js";
119
119
  import"./index-q1exe2b3.js";
@@ -122,11 +122,12 @@ import"./index-2tn5h2zp.js";
122
122
  import"./index-1kz6da87.js";
123
123
  import"./index-v2rdhwx8.js";
124
124
  import"./index-gacm5s2n.js";
125
+ import"./index-0cz1ws47.js";
125
126
  import"./index-2445sx3d.js";
126
127
  import"./index-z6xqpmqg.js";
127
128
  import"./index-zjygnfay.js";
128
129
  import"./index-zgwm4ryv.js";
129
- import"./index-dqh3zhhc.js";
130
+ import"./index-mg54y5gc.js";
130
131
  import"./index-3x761jqv.js";
131
132
  import"./index-7mkpsw6g.js";
132
133
  import"./index-fsrp8wp3.js";