opencode-swarm 7.153.1 → 7.153.2

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 (48) hide show
  1. package/dist/cli/{config-doctor-ze21qs6b.js → config-doctor-tv0ar88m.js} +2 -2
  2. package/dist/cli/{core-qdmhh1kx.js → core-kmsm50zn.js} +1 -1
  3. package/dist/cli/{curator-llm-factory-s8atmc2n.js → curator-llm-factory-dxkhdhwg.js} +17 -17
  4. package/dist/cli/{curator-hxb3wsxr.js → curator-wxe863k9.js} +17 -17
  5. package/dist/cli/{evidence-summary-service-wzzym9r7.js → evidence-summary-service-9akrdg9t.js} +6 -6
  6. package/dist/cli/{gate-evidence-f71dn9vv.js → gate-evidence-bdzqbg2y.js} +2 -2
  7. package/dist/cli/{guardrail-explain-5kzeem4m.js → guardrail-explain-kx9rem51.js} +18 -18
  8. package/dist/cli/{guardrail-log-38jnajpa.js → guardrail-log-zxzyx1de.js} +3 -3
  9. package/dist/cli/{guardrail-reset-wzvtmpn2.js → guardrail-reset-1mc3st34.js} +17 -17
  10. package/dist/cli/{hive-promoter-55qcqgfx.js → hive-promoter-gncwtq0z.js} +17 -17
  11. package/dist/cli/{index-9v8d3c0k.js → index-02rbfrab.js} +1 -1
  12. package/dist/cli/{index-af0cqe6n.js → index-0azn976d.js} +3 -3
  13. package/dist/cli/{index-6vgb5fyb.js → index-21pt4jwf.js} +1 -1
  14. package/dist/cli/{index-tdzbm974.js → index-3bh4h6ve.js} +104 -4
  15. package/dist/cli/{index-ajkxx2k6.js → index-3fpqpyp6.js} +2 -2
  16. package/dist/cli/{index-v689bmr2.js → index-56ejcj07.js} +1 -1
  17. package/dist/cli/{index-8v9sj4aq.js → index-5ad8xcv3.js} +1 -1
  18. package/dist/cli/{index-1akn19mp.js → index-5zp4c36c.js} +1 -1
  19. package/dist/cli/{index-0tzv5zg2.js → index-84m4per1.js} +2 -2
  20. package/dist/cli/{index-n823qsae.js → index-a58nmnmz.js} +7 -1
  21. package/dist/cli/{index-k10qtq71.js → index-bw55r5bz.js} +4 -4
  22. package/dist/cli/{index-mb7b1gye.js → index-ebshrg4x.js} +1 -1
  23. package/dist/cli/{index-1dtshrzg.js → index-h06112sh.js} +2 -2
  24. package/dist/cli/{index-gn26q90p.js → index-h3zhb18p.js} +1 -1
  25. package/dist/cli/{index-0tyc8kdg.js → index-hhv2pvab.js} +1 -1
  26. package/dist/cli/{index-6ybjrqf7.js → index-j4f8sz67.js} +139 -52
  27. package/dist/cli/{index-23rneydq.js → index-kenz5bja.js} +19 -19
  28. package/dist/cli/{index-xkjrg9k4.js → index-kvk65qzz.js} +3 -3
  29. package/dist/cli/{index-4g0g3dqz.js → index-s6b8jgtn.js} +1 -1
  30. package/dist/cli/{index-n5pxkera.js → index-vhbds89e.js} +3 -3
  31. package/dist/cli/{index-smqsp8hs.js → index-yvepnbyd.js} +5 -5
  32. package/dist/cli/index.js +17 -17
  33. package/dist/cli/{knowledge-escalator-w05ztgvk.js → knowledge-escalator-gp3mpbqe.js} +6 -6
  34. package/dist/cli/{knowledge-events-pwm9jc0m.js → knowledge-events-nvkhtqvn.js} +4 -4
  35. package/dist/cli/{knowledge-store-4xv65tj2.js → knowledge-store-2ngh8xvv.js} +1 -1
  36. package/dist/cli/{knowledge-validator-0ttfsca7.js → knowledge-validator-4bphyrec.js} +2 -2
  37. package/dist/cli/{scan-cursor-b6n15w8d.js → scan-cursor-c16xtygz.js} +2 -2
  38. package/dist/cli/{schema-jkbfwqr2.js → schema-83tbte2g.js} +1 -1
  39. package/dist/cli/{scope-persistence-5xt2m5ep.js → scope-persistence-gdbw8xh8.js} +4 -4
  40. package/dist/cli/{skill-generator-3keadpf7.js → skill-generator-gr13xeha.js} +7 -7
  41. package/dist/cli/{worktree-isolation-1ymaxn4h.js → worktree-isolation-jjkfg2pg.js} +17 -17
  42. package/dist/commands/registry.d.ts +1 -1
  43. package/dist/commands/reset-session.d.ts +8 -2
  44. package/dist/hooks/knowledge-application-gate.d.ts +10 -1
  45. package/dist/hooks/knowledge-receipt-ledger.d.ts +1 -1
  46. package/dist/index.js +72 -72
  47. package/dist/state.d.ts +6 -4
  48. package/package.json +7 -1
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-0tzv5zg2.js";
4
+ } from "./index-84m4per1.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-6vgb5fyb.js";
7
+ } from "./index-21pt4jwf.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -86,51 +86,51 @@ import {
86
86
  handleWriteRetroCommand,
87
87
  normalizeSwarmCommandInput,
88
88
  resolveCommand
89
- } from "./index-6ybjrqf7.js";
90
- import"./index-gn26q90p.js";
91
- import"./index-0tyc8kdg.js";
92
- import"./index-af0cqe6n.js";
89
+ } from "./index-j4f8sz67.js";
90
+ import"./index-h3zhb18p.js";
91
+ import"./index-hhv2pvab.js";
92
+ import"./index-0azn976d.js";
93
93
  import"./index-134d35c1.js";
94
94
  import"./index-nj6rmyeh.js";
95
95
  import"./index-4pjkdcgc.js";
96
96
  import"./index-1gzdnjg9.js";
97
97
  import"./index-y8552snf.js";
98
- import"./index-8v9sj4aq.js";
98
+ import"./index-5ad8xcv3.js";
99
99
  import"./index-70ha9e09.js";
100
100
  import"./index-c8s9a3zh.js";
101
101
  import"./index-9ss2m4rs.js";
102
102
  import"./index-vnn7qq8c.js";
103
103
  import"./index-meg33yyv.js";
104
- import"./index-n5pxkera.js";
105
- import"./index-smqsp8hs.js";
106
- import"./index-v689bmr2.js";
104
+ import"./index-vhbds89e.js";
105
+ import"./index-yvepnbyd.js";
106
+ import"./index-56ejcj07.js";
107
107
  import"./index-3ttktt56.js";
108
108
  import"./index-rtry5xyf.js";
109
109
  import"./index-3cegckkq.js";
110
110
  import"./index-zsrtt42s.js";
111
- import"./index-9v8d3c0k.js";
112
- import"./index-4g0g3dqz.js";
111
+ import"./index-02rbfrab.js";
112
+ import"./index-s6b8jgtn.js";
113
113
  import"./index-2mqmvxac.js";
114
- import"./index-1dtshrzg.js";
115
- import"./index-mb7b1gye.js";
114
+ import"./index-h06112sh.js";
115
+ import"./index-ebshrg4x.js";
116
116
  import"./index-pk1gbqmq.js";
117
117
  import"./index-556ja8an.js";
118
118
  import"./index-b43rt5ph.js";
119
119
  import"./index-q7sjgr1y.js";
120
120
  import"./index-4fwbbad3.js";
121
- import"./index-k10qtq71.js";
122
- import"./index-tdzbm974.js";
123
- import"./index-ajkxx2k6.js";
121
+ import"./index-bw55r5bz.js";
122
+ import"./index-3bh4h6ve.js";
123
+ import"./index-3fpqpyp6.js";
124
124
  import"./index-gprxjmm7.js";
125
125
  import"./index-n832052r.js";
126
126
  import"./index-4cgee5vh.js";
127
127
  import"./index-z6xqpmqg.js";
128
128
  import"./index-r3mvsbtq.js";
129
- import"./index-1akn19mp.js";
129
+ import"./index-5zp4c36c.js";
130
130
  import {
131
131
  init_schema,
132
132
  stripKnownSwarmPrefix
133
- } from "./index-n823qsae.js";
133
+ } from "./index-a58nmnmz.js";
134
134
  import {
135
135
  AGENT_TOOL_MAP,
136
136
  ORCHESTRATOR_NAME,
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  _internals,
4
4
  resolveWorktreeIsolationConfig
5
- } from "./index-ajkxx2k6.js";
5
+ } from "./index-3fpqpyp6.js";
6
6
  import {
7
7
  ApprovalEvidenceSchema,
8
8
  BaseEvidenceSchema,
@@ -42,7 +42,7 @@ import {
42
42
  loadPluginConfig,
43
43
  loadPluginConfigWithMeta,
44
44
  loadPluginConfigWithMetaAsync
45
- } from "./index-1akn19mp.js";
45
+ } from "./index-5zp4c36c.js";
46
46
  import {
47
47
  AUTO_REVIEW_V8_BURN_IN_DECISION,
48
48
  AgentOverrideConfigSchema,
@@ -64,7 +64,7 @@ import {
64
64
  TurboConfigSchema,
65
65
  WorktreeIsolationConfigSchema,
66
66
  resolveAutoReviewConfig
67
- } from "./index-n823qsae.js";
67
+ } from "./index-a58nmnmz.js";
68
68
  import {
69
69
  ALL_AGENT_NAMES,
70
70
  ALL_SUBAGENT_NAMES,
@@ -92,7 +92,7 @@ var _internals = {
92
92
  symlinkSync: fs.symlinkSync
93
93
  },
94
94
  writeScopeToDisk: async (directory, taskId, files) => {
95
- const { writeScopeToDisk: realWrite } = await import("./scope-persistence-5xt2m5ep.js");
95
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-gdbw8xh8.js");
96
96
  return realWrite(directory, taskId, files);
97
97
  },
98
98
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ALLOWED_SKILL_PATH_PREFIXES,
4
4
  validateSkillPath
5
- } from "./index-v689bmr2.js";
5
+ } from "./index-56ejcj07.js";
6
6
  import {
7
7
  withTimeoutSignal
8
8
  } from "./index-q7sjgr1y.js";
@@ -12,11 +12,11 @@ import {
12
12
  resolveHiveKnowledgePath,
13
13
  resolveSwarmKnowledgePath,
14
14
  transactKnowledge
15
- } from "./index-k10qtq71.js";
15
+ } from "./index-bw55r5bz.js";
16
16
  import {
17
17
  effectiveRetrievalOutcomes,
18
18
  readAuthoritativeKnowledgeCounterRollups
19
- } from "./index-tdzbm974.js";
19
+ } from "./index-3bh4h6ve.js";
20
20
  import {
21
21
  advisoryWarn,
22
22
  init_warning_buffer
@@ -6,12 +6,12 @@ import {
6
6
  resolveSwarmKnowledgePath,
7
7
  transactKnowledge,
8
8
  wordBigrams
9
- } from "./index-k10qtq71.js";
9
+ } from "./index-bw55r5bz.js";
10
10
  import {
11
11
  queryHistoricalOutcomes,
12
12
  readKnowledgeEvents,
13
13
  recordKnowledgeEvent
14
- } from "./index-tdzbm974.js";
14
+ } from "./index-3bh4h6ve.js";
15
15
  import {
16
16
  init_knowledge_types,
17
17
  isActiveStatus
@@ -224,11 +224,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
224
224
  alreadyInactive: true
225
225
  };
226
226
  }
227
- const { quarantineEntry } = await import("./knowledge-validator-0ttfsca7.js");
227
+ const { quarantineEntry } = await import("./knowledge-validator-4bphyrec.js");
228
228
  let policyConfig;
229
229
  try {
230
- const { KnowledgeConfigSchema } = await import("./schema-jkbfwqr2.js");
231
- const { loadPluginConfigWithMeta } = await import("./index-xkjrg9k4.js");
230
+ const { KnowledgeConfigSchema } = await import("./schema-83tbte2g.js");
231
+ const { loadPluginConfigWithMeta } = await import("./index-kvk65qzz.js");
232
232
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
233
233
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
234
234
  } catch {
package/dist/cli/index.js CHANGED
@@ -11,51 +11,51 @@ import {
11
11
  readCachePackageVersion,
12
12
  resolveCommand,
13
13
  safeRealpathSync
14
- } from "./index-6ybjrqf7.js";
15
- import"./index-gn26q90p.js";
16
- import"./index-0tyc8kdg.js";
17
- import"./index-af0cqe6n.js";
14
+ } from "./index-j4f8sz67.js";
15
+ import"./index-h3zhb18p.js";
16
+ import"./index-hhv2pvab.js";
17
+ import"./index-0azn976d.js";
18
18
  import"./index-134d35c1.js";
19
19
  import"./index-nj6rmyeh.js";
20
20
  import"./index-4pjkdcgc.js";
21
21
  import"./index-1gzdnjg9.js";
22
22
  import"./index-y8552snf.js";
23
- import"./index-8v9sj4aq.js";
23
+ import"./index-5ad8xcv3.js";
24
24
  import"./index-70ha9e09.js";
25
25
  import"./index-c8s9a3zh.js";
26
26
  import"./index-9ss2m4rs.js";
27
27
  import"./index-vnn7qq8c.js";
28
28
  import"./index-meg33yyv.js";
29
- import"./index-n5pxkera.js";
30
- import"./index-smqsp8hs.js";
31
- import"./index-v689bmr2.js";
29
+ import"./index-vhbds89e.js";
30
+ import"./index-yvepnbyd.js";
31
+ import"./index-56ejcj07.js";
32
32
  import"./index-3ttktt56.js";
33
33
  import"./index-rtry5xyf.js";
34
34
  import"./index-3cegckkq.js";
35
35
  import"./index-zsrtt42s.js";
36
- import"./index-9v8d3c0k.js";
37
- import"./index-4g0g3dqz.js";
36
+ import"./index-02rbfrab.js";
37
+ import"./index-s6b8jgtn.js";
38
38
  import"./index-2mqmvxac.js";
39
- import"./index-1dtshrzg.js";
40
- import"./index-mb7b1gye.js";
39
+ import"./index-h06112sh.js";
40
+ import"./index-ebshrg4x.js";
41
41
  import"./index-pk1gbqmq.js";
42
42
  import"./index-556ja8an.js";
43
43
  import"./index-b43rt5ph.js";
44
44
  import"./index-q7sjgr1y.js";
45
45
  import"./index-4fwbbad3.js";
46
- import"./index-k10qtq71.js";
47
- import"./index-tdzbm974.js";
48
- import"./index-ajkxx2k6.js";
46
+ import"./index-bw55r5bz.js";
47
+ import"./index-3bh4h6ve.js";
48
+ import"./index-3fpqpyp6.js";
49
49
  import"./index-gprxjmm7.js";
50
50
  import"./index-n832052r.js";
51
51
  import"./index-4cgee5vh.js";
52
52
  import"./index-z6xqpmqg.js";
53
53
  import"./index-r3mvsbtq.js";
54
- import"./index-1akn19mp.js";
54
+ import"./index-5zp4c36c.js";
55
55
  import {
56
56
  init_package,
57
57
  package_default
58
- } from "./index-n823qsae.js";
58
+ } from "./index-a58nmnmz.js";
59
59
  import {
60
60
  DEFAULT_AGENT_CONFIGS,
61
61
  init_constants
@@ -9,17 +9,17 @@ import {
9
9
  maybeEscalateOnViolation,
10
10
  maybeQuarantineOnContradiction,
11
11
  readRecentEscalations
12
- } from "./index-smqsp8hs.js";
13
- import"./index-k10qtq71.js";
14
- import"./index-tdzbm974.js";
15
- import"./index-ajkxx2k6.js";
12
+ } from "./index-yvepnbyd.js";
13
+ import"./index-bw55r5bz.js";
14
+ import"./index-3bh4h6ve.js";
15
+ import"./index-3fpqpyp6.js";
16
16
  import"./index-gprxjmm7.js";
17
17
  import"./index-n832052r.js";
18
18
  import"./index-4cgee5vh.js";
19
19
  import"./index-z6xqpmqg.js";
20
20
  import"./index-r3mvsbtq.js";
21
- import"./index-1akn19mp.js";
22
- import"./index-n823qsae.js";
21
+ import"./index-5zp4c36c.js";
22
+ import"./index-a58nmnmz.js";
23
23
  import"./index-myt57pht.js";
24
24
  import"./index-9e6fdz2h.js";
25
25
  import"./index-4rhhvd1a.js";
@@ -29,15 +29,15 @@ import {
29
29
  resolveKnowledgeCounterBaselinePath,
30
30
  resolveKnowledgeEventsPath,
31
31
  resolveLegacyApplicationLogPath
32
- } from "./index-tdzbm974.js";
33
- import"./index-ajkxx2k6.js";
32
+ } from "./index-3bh4h6ve.js";
33
+ import"./index-3fpqpyp6.js";
34
34
  import"./index-gprxjmm7.js";
35
35
  import"./index-n832052r.js";
36
36
  import"./index-4cgee5vh.js";
37
37
  import"./index-z6xqpmqg.js";
38
38
  import"./index-r3mvsbtq.js";
39
- import"./index-1akn19mp.js";
40
- import"./index-n823qsae.js";
39
+ import"./index-5zp4c36c.js";
40
+ import"./index-a58nmnmz.js";
41
41
  import"./index-myt57pht.js";
42
42
  import"./index-9e6fdz2h.js";
43
43
  import"./index-4rhhvd1a.js";
@@ -42,7 +42,7 @@ import {
42
42
  transactKnowledge,
43
43
  transactKnowledgeWithCas,
44
44
  wordBigrams
45
- } from "./index-k10qtq71.js";
45
+ } from "./index-bw55r5bz.js";
46
46
  import {
47
47
  resolveHiveDataDir
48
48
  } from "./index-ae75rja9.js";
@@ -23,10 +23,10 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-v689bmr2.js";
26
+ } from "./index-56ejcj07.js";
27
27
  import"./index-3ttktt56.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-k10qtq71.js";
29
+ import"./index-bw55r5bz.js";
30
30
  import"./index-ae75rja9.js";
31
31
  import"./index-x3y6zhgj.js";
32
32
  import"./index-zppxpc3y.js";
@@ -4,8 +4,8 @@ import {
4
4
  alreadyCuratedThisGeneration,
5
5
  claimNextScanBatch,
6
6
  getScanStatus
7
- } from "./index-8v9sj4aq.js";
8
- import"./index-k10qtq71.js";
7
+ } from "./index-5ad8xcv3.js";
8
+ import"./index-bw55r5bz.js";
9
9
  import"./index-9e6fdz2h.js";
10
10
  import"./index-4rhhvd1a.js";
11
11
  import"./index-ae75rja9.js";
@@ -99,7 +99,7 @@ import {
99
99
  resolveGeneratedAgentRole,
100
100
  resolveGuardrailsConfig,
101
101
  stripKnownSwarmPrefix
102
- } from "./index-n823qsae.js";
102
+ } from "./index-a58nmnmz.js";
103
103
  import"./index-myt57pht.js";
104
104
  import"./index-zjygnfay.js";
105
105
  import"./index-bk5tah7q.js";
@@ -23,12 +23,12 @@ import {
23
23
  tombstoneScopeBinding,
24
24
  writeScopeBindingToDisk,
25
25
  writeScopeToDisk
26
- } from "./index-1dtshrzg.js";
27
- import"./index-mb7b1gye.js";
26
+ } from "./index-h06112sh.js";
27
+ import"./index-ebshrg4x.js";
28
28
  import"./index-pk1gbqmq.js";
29
29
  import"./index-556ja8an.js";
30
- import"./index-1akn19mp.js";
31
- import"./index-n823qsae.js";
30
+ import"./index-5zp4c36c.js";
31
+ import"./index-a58nmnmz.js";
32
32
  import"./index-myt57pht.js";
33
33
  import"./index-9e6fdz2h.js";
34
34
  import"./index-4rhhvd1a.js";
@@ -33,21 +33,21 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-n5pxkera.js";
37
- import"./index-v689bmr2.js";
36
+ } from "./index-vhbds89e.js";
37
+ import"./index-56ejcj07.js";
38
38
  import"./index-3ttktt56.js";
39
39
  import"./index-rtry5xyf.js";
40
40
  import"./index-q7sjgr1y.js";
41
- import"./index-k10qtq71.js";
42
- import"./index-tdzbm974.js";
43
- import"./index-ajkxx2k6.js";
41
+ import"./index-bw55r5bz.js";
42
+ import"./index-3bh4h6ve.js";
43
+ import"./index-3fpqpyp6.js";
44
44
  import"./index-gprxjmm7.js";
45
45
  import"./index-n832052r.js";
46
46
  import"./index-4cgee5vh.js";
47
47
  import"./index-z6xqpmqg.js";
48
48
  import"./index-r3mvsbtq.js";
49
- import"./index-1akn19mp.js";
50
- import"./index-n823qsae.js";
49
+ import"./index-5zp4c36c.js";
50
+ import"./index-a58nmnmz.js";
51
51
  import"./index-myt57pht.js";
52
52
  import"./index-9e6fdz2h.js";
53
53
  import"./index-4rhhvd1a.js";
@@ -21,50 +21,50 @@ import {
21
21
  sanitizeWorktreeTaskId,
22
22
  standardWorktreeByCallID,
23
23
  standardWorktreeSerializationSessions
24
- } from "./index-6ybjrqf7.js";
25
- import"./index-gn26q90p.js";
26
- import"./index-0tyc8kdg.js";
27
- import"./index-af0cqe6n.js";
24
+ } from "./index-j4f8sz67.js";
25
+ import"./index-h3zhb18p.js";
26
+ import"./index-hhv2pvab.js";
27
+ import"./index-0azn976d.js";
28
28
  import"./index-134d35c1.js";
29
29
  import"./index-nj6rmyeh.js";
30
30
  import"./index-4pjkdcgc.js";
31
31
  import"./index-1gzdnjg9.js";
32
32
  import"./index-y8552snf.js";
33
- import"./index-8v9sj4aq.js";
33
+ import"./index-5ad8xcv3.js";
34
34
  import"./index-70ha9e09.js";
35
35
  import"./index-c8s9a3zh.js";
36
36
  import"./index-9ss2m4rs.js";
37
37
  import"./index-vnn7qq8c.js";
38
38
  import"./index-meg33yyv.js";
39
- import"./index-n5pxkera.js";
40
- import"./index-smqsp8hs.js";
41
- import"./index-v689bmr2.js";
39
+ import"./index-vhbds89e.js";
40
+ import"./index-yvepnbyd.js";
41
+ import"./index-56ejcj07.js";
42
42
  import"./index-3ttktt56.js";
43
43
  import"./index-rtry5xyf.js";
44
44
  import"./index-3cegckkq.js";
45
45
  import"./index-zsrtt42s.js";
46
- import"./index-9v8d3c0k.js";
47
- import"./index-4g0g3dqz.js";
46
+ import"./index-02rbfrab.js";
47
+ import"./index-s6b8jgtn.js";
48
48
  import"./index-2mqmvxac.js";
49
- import"./index-1dtshrzg.js";
50
- import"./index-mb7b1gye.js";
49
+ import"./index-h06112sh.js";
50
+ import"./index-ebshrg4x.js";
51
51
  import"./index-pk1gbqmq.js";
52
52
  import"./index-556ja8an.js";
53
53
  import"./index-b43rt5ph.js";
54
54
  import"./index-q7sjgr1y.js";
55
55
  import"./index-4fwbbad3.js";
56
- import"./index-k10qtq71.js";
57
- import"./index-tdzbm974.js";
56
+ import"./index-bw55r5bz.js";
57
+ import"./index-3bh4h6ve.js";
58
58
  import {
59
59
  resolveWorktreeIsolationConfig
60
- } from "./index-ajkxx2k6.js";
60
+ } from "./index-3fpqpyp6.js";
61
61
  import"./index-gprxjmm7.js";
62
62
  import"./index-n832052r.js";
63
63
  import"./index-4cgee5vh.js";
64
64
  import"./index-z6xqpmqg.js";
65
65
  import"./index-r3mvsbtq.js";
66
- import"./index-1akn19mp.js";
67
- import"./index-n823qsae.js";
66
+ import"./index-5zp4c36c.js";
67
+ import"./index-a58nmnmz.js";
68
68
  import"./index-myt57pht.js";
69
69
  import"./index-9e6fdz2h.js";
70
70
  import"./index-4rhhvd1a.js";
@@ -845,7 +845,7 @@ export declare const COMMAND_REGISTRY: {
845
845
  readonly 'reset-session': {
846
846
  readonly handler: (ctx: CommandContext) => Promise<string>;
847
847
  readonly description: "Clear session state while preserving plan, evidence, and knowledge";
848
- readonly details: "Deletes only .swarm/session/state.json and any other session files. Clears in-memory agent sessions, delegation chains, and active-agent mappings. Preserves plan, evidence, and knowledge for cross-session continuity. Also recovers stale coder settlements, releasing in-flight ownership held by this process, so dispatches cannot stay wedged on CODER_DISPATCH_IN_PROGRESS (issue #2268). Before deleting, auto-backs up the session files it removes to .swarm/reset-backups/<timestamp>/ (newest 5 kept).";
848
+ readonly details: "Deletes only .swarm/session/state.json and other session files. Clears in-memory agent sessions, delegation chains, and active-agent mappings. Preserves plan, evidence, and knowledge. Also releases this session's pending knowledge-gate obligations (#2398) and recovers stale coder settlements so dispatches cannot wedge on CODER_DISPATCH_IN_PROGRESS (#2268). Auto-backs up removed files to .swarm/reset-backups/ (newest 5 kept).";
849
849
  readonly args: "";
850
850
  readonly category: "utility";
851
851
  readonly toolPolicy: "restricted";
@@ -1,3 +1,4 @@
1
+ import { commitGateReleaseBatch, queryLiveMemberships } from '../hooks/knowledge-receipt-ledger';
1
2
  import { recoverStaleCoderSettlements } from '../workflow/coder-settlement.js';
2
3
  import { type OrphanCleanupResult } from '../worktree/merge';
3
4
  import { type ResetBackupResult } from './reset-backup';
@@ -11,11 +12,16 @@ export declare const _internals: {
11
12
  cleanupOrphanedBranches: (directory: string, activeSessionIds: string[]) => Promise<OrphanCleanupResult>;
12
13
  backupSwarmStateBeforeReset: (directory: string, kind: 'reset' | 'reset-session', relEntries: string[]) => ResetBackupResult;
13
14
  recoverStaleCoderSettlements: typeof recoverStaleCoderSettlements;
15
+ queryLiveMemberships: typeof queryLiveMemberships;
16
+ commitGateReleaseBatch: typeof commitGateReleaseBatch;
17
+ releaseKnowledgeGateObligations: (directory: string, sessionID: string) => Promise<string[]>;
14
18
  };
15
19
  /**
16
20
  * Handles the /swarm reset-session command.
17
21
  * Deletes only the session state file (.swarm/session/state.json)
18
22
  * and clears in-memory agent sessions. Preserves plan, evidence,
19
- * and knowledge for continuity across sessions.
23
+ * and knowledge for continuity across sessions — but DOES release this
24
+ * session's pending knowledge-application gate obligations (issue #2398) so
25
+ * the reset is a real escape from an enforce-mode lockout.
20
26
  */
21
- export declare function handleResetSessionCommand(directory: string, _args: string[]): Promise<string>;
27
+ export declare function handleResetSessionCommand(directory: string, _args: string[], sessionID?: string): Promise<string>;
@@ -30,13 +30,22 @@
30
30
  * - update_task_status
31
31
  * - phase_complete
32
32
  * - Task (delegations to coder/reviewer/test_engineer/sme/docs/designer)
33
+ * - skill_regenerate
34
+ * - skill_retire
33
35
  *
34
36
  * Non-architect agents are never gated.
35
37
  */
36
38
  import { type KnowledgeApplicationConfig } from './knowledge-application.js';
37
39
  import { type ReceiptMembership } from './knowledge-receipt-ledger.js';
38
40
  import type { MessageWithParts } from './knowledge-types.js';
39
- /** Tools that require knowledge-directive acknowledgment before execution. */
41
+ /**
42
+ * Fallback set used only when `config.high_risk_tools` is absent. The parsed
43
+ * config schema (`KnowledgeApplicationConfigSchema`) defaults
44
+ * `high_risk_tools` to a 5-tool list (save_plan, update_task_status,
45
+ * phase_complete, task, Task) that is always populated post-parse, so this
46
+ * constant is shadowed in practice and `skill_regenerate` / `skill_retire`
47
+ * are NOT gated unless the operator's config lists them explicitly.
48
+ */
40
49
  export declare const HIGH_RISK_TOOLS: Set<string>;
41
50
  export interface GateInput {
42
51
  tool: unknown;
@@ -27,7 +27,7 @@ export declare const RECEIPT_TERMINAL_OUTCOMES: ReadonlySet<ReceiptOutcome>;
27
27
  * preserved as `'unknown'` and is never coerced to delegate, ignored, or any
28
28
  * other class. New producers must stamp one of the closed values below.
29
29
  */
30
- export type ReceiptSourceCode = 'delegate' | 'reviewer' | 'architect' | 'architect_marker' | 'test_engineer' | 'phase_override' | 'application_gate_staleness_release' | 'application_gate_denial_limit_release' | 'manual' | 'migration' | 'unknown';
30
+ export type ReceiptSourceCode = 'delegate' | 'reviewer' | 'architect' | 'architect_marker' | 'test_engineer' | 'phase_override' | 'application_gate_staleness_release' | 'application_gate_denial_limit_release' | 'application_gate_session_reset_release' | 'manual' | 'migration' | 'unknown';
31
31
  /** Closed set form of {@link ReceiptSourceCode}. */
32
32
  export declare const CANONICAL_RECEIPT_SOURCES: ReadonlySet<string>;
33
33
  /**