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
@@ -0,0 +1,116 @@
1
+ // @bun
2
+ // src/db/sqlite-loader.ts
3
+ import { createRequire } from "module";
4
+ function createNodeDatabaseCtor(DatabaseSyncCtor) {
5
+
6
+ class NodeSqliteDatabase {
7
+ raw;
8
+ stmts = new Map;
9
+ savepointCounter = 0;
10
+ constructor(filename) {
11
+ this.raw = new DatabaseSyncCtor(filename, { allowExtension: true });
12
+ }
13
+ statement(sql) {
14
+ let stmt = this.stmts.get(sql);
15
+ if (!stmt) {
16
+ stmt = this.raw.prepare(sql);
17
+ this.stmts.set(sql, stmt);
18
+ }
19
+ return stmt;
20
+ }
21
+ run(sql, ...rest) {
22
+ if (rest.length === 0) {
23
+ this.raw.exec(sql);
24
+ return;
25
+ }
26
+ const params = rest.length === 1 && Array.isArray(rest[0]) ? rest[0] : rest;
27
+ return this.statement(sql).run(...params);
28
+ }
29
+ query(sql) {
30
+ const stmt = this.statement(sql);
31
+ return {
32
+ get: (...params) => stmt.get(...params),
33
+ all: (...params) => stmt.all(...params),
34
+ iterate: (...params) => stmt.iterate(...params)
35
+ };
36
+ }
37
+ get inTransaction() {
38
+ return this.raw.isTransaction;
39
+ }
40
+ transaction(fn) {
41
+ return (...args) => {
42
+ if (this.raw.isTransaction) {
43
+ const sp = `swarm_sp_${this.savepointCounter++}`;
44
+ this.raw.exec(`SAVEPOINT ${sp}`);
45
+ try {
46
+ const result = fn(...args);
47
+ this.raw.exec(`RELEASE ${sp}`);
48
+ return result;
49
+ } catch (err) {
50
+ try {
51
+ this.raw.exec(`ROLLBACK TO ${sp}`);
52
+ this.raw.exec(`RELEASE ${sp}`);
53
+ } catch {}
54
+ throw err;
55
+ }
56
+ }
57
+ this.raw.exec("BEGIN");
58
+ try {
59
+ const result = fn(...args);
60
+ this.raw.exec("COMMIT");
61
+ return result;
62
+ } catch (err) {
63
+ try {
64
+ this.raw.exec("ROLLBACK");
65
+ } catch {}
66
+ throw err;
67
+ }
68
+ };
69
+ }
70
+ loadExtension(path) {
71
+ this.raw.enableLoadExtension(true);
72
+ try {
73
+ this.raw.loadExtension(path);
74
+ } finally {
75
+ this.raw.enableLoadExtension(false);
76
+ }
77
+ }
78
+ close() {
79
+ this.stmts.clear();
80
+ this.raw.close();
81
+ }
82
+ }
83
+ return NodeSqliteDatabase;
84
+ }
85
+ var _DatabaseCtor = null;
86
+ var _internals = {
87
+ requireModule(id) {
88
+ return createRequire(import.meta.url)(id);
89
+ },
90
+ reset() {
91
+ _DatabaseCtor = null;
92
+ }
93
+ };
94
+ function loadDatabaseCtor() {
95
+ if (_DatabaseCtor)
96
+ return _DatabaseCtor;
97
+ let bunError;
98
+ try {
99
+ const mod = _internals.requireModule("bun:sqlite");
100
+ _DatabaseCtor = mod.Database;
101
+ return _DatabaseCtor;
102
+ } catch (err) {
103
+ bunError = err;
104
+ }
105
+ try {
106
+ const mod = _internals.requireModule("node:sqlite");
107
+ _DatabaseCtor = createNodeDatabaseCtor(mod.DatabaseSync);
108
+ return _DatabaseCtor;
109
+ } catch (nodeError) {
110
+ const bunMsg = bunError instanceof Error ? bunError.message : String(bunError);
111
+ const nodeMsg = nodeError instanceof Error ? nodeError.message : String(nodeError);
112
+ throw new Error("opencode-swarm: no SQLite driver available. This build needs Bun " + "(bun:sqlite) or Node.js 22.13+ (node:sqlite). " + `bun:sqlite: ${bunMsg}; node:sqlite: ${nodeMsg}`);
113
+ }
114
+ }
115
+
116
+ export { createNodeDatabaseCtor, _internals, loadDatabaseCtor };
@@ -1,9 +1,11 @@
1
1
  // @bun
2
2
  import {
3
- exports_external
4
- } from "./index-293f68mj.js";
3
+ exports_external,
4
+ init_zod
5
+ } from "./index-bpmtbmy9.js";
5
6
 
6
7
  // src/config/plan-schema.ts
8
+ init_zod();
7
9
  var ExecutionProfileSchema = exports_external.object({
8
10
  parallelization_enabled: exports_external.boolean().default(false),
9
11
  max_concurrent_tasks: exports_external.number().int().min(1).max(64).default(10),
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-kzj3fp7c.js";
4
+ } from "./index-2445sx3d.js";
5
5
  import {
6
6
  log
7
7
  } from "./index-zgwm4ryv.js";
@@ -9,10 +9,12 @@ import {
9
9
  withEvidenceLock
10
10
  } from "./index-76kvm9z5.js";
11
11
  import {
12
- exports_external
13
- } from "./index-293f68mj.js";
12
+ exports_external,
13
+ init_zod
14
+ } from "./index-bpmtbmy9.js";
14
15
 
15
16
  // src/background/pr-subscriptions.ts
17
+ init_zod();
16
18
  import * as fs from "fs";
17
19
  import * as path from "path";
18
20
  var PR_SUBSCRIPTIONS_FILE = "pr-monitor/subscriptions.jsonl";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  SwarmError
4
- } from "./index-5e4e2hvv.js";
4
+ } from "./index-z6xqpmqg.js";
5
5
  import {
6
6
  warn
7
7
  } from "./index-zgwm4ryv.js";
@@ -3,7 +3,7 @@ import {
3
3
  ExecutionProfileSchema,
4
4
  PlanSchema,
5
5
  TaskStatusSchema
6
- } from "./index-m1abzg93.js";
6
+ } from "./index-1kz6da87.js";
7
7
  import {
8
8
  criticalWarn,
9
9
  init_logger,
@@ -8,10 +8,12 @@ import {
8
8
  telemetry
9
9
  } from "./index-q2rrv0cy.js";
10
10
  import {
11
- exports_external
12
- } from "./index-293f68mj.js";
11
+ exports_external,
12
+ init_zod
13
+ } from "./index-bpmtbmy9.js";
13
14
 
14
15
  // src/gate-evidence.ts
16
+ init_zod();
15
17
  import { mkdirSync, readFileSync, realpathSync } from "fs";
16
18
  import * as path from "path";
17
19
 
@@ -1,12 +1,12 @@
1
1
  // @bun
2
2
  import {
3
3
  readEffectiveSpecSync
4
- } from "./index-816rkp4y.js";
4
+ } from "./index-s9mj4rb9.js";
5
5
  import {
6
6
  EVIDENCE_MAX_JSON_BYTES,
7
7
  EvidenceBundleSchema,
8
8
  EvidenceSchema
9
- } from "./index-vcgfqd8f.js";
9
+ } from "./index-k5jrywpr.js";
10
10
  import {
11
11
  _internals,
12
12
  buildDefaultPolicy,
@@ -29,14 +29,14 @@ import {
29
29
  replayFromLedgerWithStatus,
30
30
  takeSnapshotEvent,
31
31
  takeSnapshotWithRetry
32
- } from "./index-ctpgsj84.js";
32
+ } from "./index-2tn5h2zp.js";
33
33
  import {
34
34
  PlanSchema
35
- } from "./index-m1abzg93.js";
35
+ } from "./index-1kz6da87.js";
36
36
  import {
37
37
  readSwarmFileAsync,
38
38
  validateSwarmPath
39
- } from "./index-kzj3fp7c.js";
39
+ } from "./index-2445sx3d.js";
40
40
  import {
41
41
  criticalWarn,
42
42
  error,
@@ -48,7 +48,7 @@ import {
48
48
  readTaskEvidence,
49
49
  readTaskEvidenceRaw,
50
50
  sanitizeTaskId
51
- } from "./index-6xnxz6z0.js";
51
+ } from "./index-3x761jqv.js";
52
52
  import {
53
53
  atomicWriteFile
54
54
  } from "./index-7mkpsw6g.js";
@@ -63,8 +63,9 @@ import {
63
63
  } from "./index-q2rrv0cy.js";
64
64
  import {
65
65
  ZodError,
66
- exports_external
67
- } from "./index-293f68mj.js";
66
+ exports_external,
67
+ init_zod
68
+ } from "./index-bpmtbmy9.js";
68
69
  import {
69
70
  bunHash,
70
71
  bunWrite,
@@ -3421,6 +3422,7 @@ function migrateLegacyPlan(planContent, swarmId) {
3421
3422
  }
3422
3423
 
3423
3424
  // src/evidence/manager.ts
3425
+ init_zod();
3424
3426
  import {
3425
3427
  mkdirSync as mkdirSync5,
3426
3428
  readdirSync as readdirSync2,
@@ -3437,6 +3439,7 @@ import * as fs5 from "fs/promises";
3437
3439
  import * as path11 from "path";
3438
3440
 
3439
3441
  // src/evaluation/contracts.ts
3442
+ init_zod();
3440
3443
  var IdentifierSchema = exports_external.string().min(1).max(160).regex(/^[A-Za-z0-9][A-Za-z0-9._-]*$/);
3441
3444
  var Sha256Schema = exports_external.string().regex(/^[a-f0-9]{64}$/);
3442
3445
  var IsoDateSchema = exports_external.iso.datetime({ offset: true });
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-rtry5xyf.js";
5
5
  import {
6
6
  readKnowledgeEvents
7
- } from "./index-dywekeen.js";
7
+ } from "./index-n6chz2g8.js";
8
8
  import {
9
9
  isLinked,
10
10
  readLinkPointer,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  simpleGlobToRegex
4
- } from "./index-5e4e2hvv.js";
4
+ } from "./index-z6xqpmqg.js";
5
5
  import {
6
6
  warn
7
7
  } from "./index-zgwm4ryv.js";
@@ -1,7 +1,9 @@
1
1
  // @bun
2
2
  import {
3
+ init_constants,
4
+ init_schema,
3
5
  stripKnownSwarmPrefix
4
- } from "./index-wr8qgpz5.js";
6
+ } from "./index-xattnmyb.js";
5
7
  import {
6
8
  init_logger,
7
9
  warn
@@ -2027,6 +2029,7 @@ class QuickLRU extends Map {
2027
2029
  }
2028
2030
 
2029
2031
  // src/hooks/guardrails/file-authority.ts
2032
+ init_schema();
2030
2033
  var pathNormalizationCache = new QuickLRU({
2031
2034
  maxSize: 500
2032
2035
  });
@@ -2335,6 +2338,7 @@ function checkFileAuthority(agentName, filePath, cwd, authorityConfig, options)
2335
2338
  }
2336
2339
 
2337
2340
  // src/hooks/guardrails/helpers.ts
2341
+ init_constants();
2338
2342
  import * as path2 from "path";
2339
2343
  function isInDeclaredScope2(filePath, scopeEntries, cwd) {
2340
2344
  const dir = cwd ?? process.cwd();
@@ -12,14 +12,14 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-jyrhy4ww.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-19zn67q6.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-3rr0ese8.js";
9
+ } from "./index-kt0awv1n.js";
10
10
  import {
11
11
  ApprovalEvidenceSchema,
12
12
  BaseEvidenceSchema,
@@ -21,7 +21,7 @@ import {
21
21
  NoteEvidenceSchema,
22
22
  ReviewEvidenceSchema,
23
23
  TestEvidenceSchema
24
- } from "./index-vcgfqd8f.js";
24
+ } from "./index-k5jrywpr.js";
25
25
  import {
26
26
  DeltaSpecSchema,
27
27
  ObligationSchema,
@@ -31,7 +31,7 @@ import {
31
31
  SpecSectionSchema,
32
32
  SwarmSpecSchema,
33
33
  validateSpecContent
34
- } from "./index-gnp9x6se.js";
34
+ } from "./index-n832052r.js";
35
35
  import {
36
36
  ALL_AGENT_NAMES,
37
37
  ALL_SUBAGENT_NAMES,
@@ -58,8 +58,8 @@ import {
58
58
  WorktreeIsolationConfigSchema,
59
59
  isQAAgent,
60
60
  isSubagent
61
- } from "./index-wr8qgpz5.js";
62
- import"./index-4rhcth7a.js";
61
+ } from "./index-xattnmyb.js";
62
+ import"./index-bk5tah7q.js";
63
63
  import {
64
64
  MigrationStatusSchema,
65
65
  PhaseSchema,
@@ -68,11 +68,11 @@ import {
68
68
  TaskSchema,
69
69
  TaskSizeSchema,
70
70
  TaskStatusSchema
71
- } from "./index-m1abzg93.js";
72
- import"./index-ye3fndsw.js";
73
- import"./index-p0arc26j.js";
71
+ } from "./index-1kz6da87.js";
72
+ import"./index-gacm5s2n.js";
73
+ import"./index-zjygnfay.js";
74
74
  import"./index-zgwm4ryv.js";
75
- import"./index-293f68mj.js";
75
+ import"./index-bpmtbmy9.js";
76
76
  import"./index-a76rekgs.js";
77
77
  export {
78
78
  validateSpecContent,
@@ -6,22 +6,24 @@ import {
6
6
  resolveSwarmKnowledgePath,
7
7
  transactKnowledge,
8
8
  wordBigrams
9
- } from "./index-n2712byd.js";
9
+ } from "./index-yt1v62pv.js";
10
10
  import {
11
11
  countEntryContradictionsInWindow,
12
12
  countEntryViolationsInWindow,
13
13
  readKnowledgeEvents,
14
14
  recordKnowledgeEvent
15
- } from "./index-dywekeen.js";
15
+ } from "./index-n6chz2g8.js";
16
16
  import {
17
+ init_knowledge_types,
17
18
  isActiveStatus
18
- } from "./index-4rhcth7a.js";
19
+ } from "./index-bk5tah7q.js";
19
20
  import {
20
21
  __require
21
22
  } from "./index-a76rekgs.js";
22
23
 
23
24
  // src/hooks/knowledge-escalator.ts
24
25
  import { existsSync } from "fs";
26
+ init_knowledge_types();
25
27
  var NEAR_DUPLICATE_THRESHOLD = 0.6;
26
28
  var ESCALATION_WINDOW_DAYS = 30;
27
29
  var ESCALATION_THRESHOLD = 2;
@@ -188,11 +190,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
188
190
  alreadyInactive: true
189
191
  };
190
192
  }
191
- const { quarantineEntry } = await import("./knowledge-validator-sfyf7wn2.js");
193
+ const { quarantineEntry } = await import("./knowledge-validator-g7mpnazh.js");
192
194
  let policyConfig;
193
195
  try {
194
- const { KnowledgeConfigSchema } = await import("./schema-13bnng2n.js");
195
- const { loadPluginConfigWithMeta } = await import("./index-2j25br0p.js");
196
+ const { KnowledgeConfigSchema } = await import("./schema-2418eqy3.js");
197
+ const { loadPluginConfigWithMeta } = await import("./index-958hf0yr.js");
196
198
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
197
199
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
198
200
  } catch {
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-6sgqnvpw.js";
4
+ } from "./index-7j3sm7h8.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-17eybc3z.js";
7
+ } from "./index-jh6s75f6.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -83,56 +83,64 @@ import {
83
83
  handleWriteRetroCommand,
84
84
  normalizeSwarmCommandInput,
85
85
  resolveCommand
86
- } from "./index-jyrhy4ww.js";
87
- import"./index-19zn67q6.js";
88
- import"./index-det5jwfk.js";
89
- import"./index-7cspygmb.js";
86
+ } from "./index-amspa811.js";
87
+ import"./index-6vfvc36k.js";
88
+ import"./index-0y6tmm9v.js";
89
+ import"./index-4rzzzjtg.js";
90
90
  import"./index-4905hd2m.js";
91
- import"./index-nprawcc0.js";
92
- import"./index-q00e4s1s.js";
93
- import"./index-j9kxwshw.js";
94
- import"./index-hns7xjm7.js";
91
+ import"./index-134d35c1.js";
92
+ import"./index-6n2jpz7x.js";
93
+ import"./index-vtwqjr4z.js";
94
+ import"./index-99ed0h32.js";
95
+ import"./index-09vd53pz.js";
95
96
  import"./index-vxv732ex.js";
96
97
  import"./index-c8s9a3zh.js";
97
- import"./index-816rkp4y.js";
98
- import"./index-22e127jw.js";
99
- import"./index-m0bmh3w0.js";
100
- import"./index-cqsak7bf.js";
98
+ import"./index-s9mj4rb9.js";
99
+ import"./index-23zsx7dm.js";
100
+ import"./index-dx2c2wjt.js";
101
+ import"./index-67hqr2zv.js";
101
102
  import"./index-rtry5xyf.js";
102
- import"./index-n2712byd.js";
103
- import"./index-dywekeen.js";
103
+ import"./index-yt1v62pv.js";
104
+ import"./index-n6chz2g8.js";
104
105
  import"./index-ae75rja9.js";
105
106
  import"./index-q27bajqb.js";
106
- import"./index-3rr0ese8.js";
107
- import"./index-vcgfqd8f.js";
108
- import"./index-gnp9x6se.js";
107
+ import"./index-kt0awv1n.js";
108
+ import"./index-k5jrywpr.js";
109
+ import"./index-n832052r.js";
109
110
  import {
110
111
  AGENT_TOOL_MAP,
111
112
  ORCHESTRATOR_NAME,
113
+ init_constants,
114
+ init_schema,
112
115
  stripKnownSwarmPrefix
113
- } from "./index-wr8qgpz5.js";
114
- import"./index-4rhcth7a.js";
116
+ } from "./index-xattnmyb.js";
117
+ import"./index-bk5tah7q.js";
115
118
  import"./index-8fwhhayc.js";
116
119
  import"./index-q1exe2b3.js";
117
- import"./index-d6h5hq91.js";
118
- import"./index-ctpgsj84.js";
119
- import"./index-m1abzg93.js";
120
- import"./index-gw3m5fw0.js";
121
- import"./index-ye3fndsw.js";
122
- import"./index-kzj3fp7c.js";
123
- import"./index-5e4e2hvv.js";
124
- import"./index-p0arc26j.js";
120
+ import"./index-gnvg72y1.js";
121
+ import"./index-2tn5h2zp.js";
122
+ import"./index-1kz6da87.js";
123
+ import"./index-v2rdhwx8.js";
124
+ import"./index-gacm5s2n.js";
125
+ import"./index-0cz1ws47.js";
126
+ import"./index-2445sx3d.js";
127
+ import"./index-z6xqpmqg.js";
128
+ import"./index-zjygnfay.js";
125
129
  import"./index-zgwm4ryv.js";
126
- import"./index-dqh3zhhc.js";
127
- import"./index-6xnxz6z0.js";
130
+ import"./index-mg54y5gc.js";
131
+ import"./index-3x761jqv.js";
128
132
  import"./index-7mkpsw6g.js";
129
133
  import"./index-fsrp8wp3.js";
130
134
  import"./index-76kvm9z5.js";
131
135
  import"./index-q2rrv0cy.js";
132
- import"./index-293f68mj.js";
136
+ import"./index-bpmtbmy9.js";
133
137
  import"./index-7g4c7s5r.js";
134
138
  import"./index-qe3v54nb.js";
135
139
  import"./index-a76rekgs.js";
140
+
141
+ // src/commands/index.ts
142
+ init_constants();
143
+ init_schema();
136
144
  // src/commands/command-names.ts
137
145
  var COMMAND_NAMES = Object.freeze(Object.keys(COMMAND_REGISTRY));
138
146
  var COMMAND_NAME_SET = new Set(COMMAND_NAMES);