opencode-swarm 7.107.2 → 7.107.3

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 (27) hide show
  1. package/dist/cli/{curator-6zvpn7fs.js → curator-1nr4qszq.js} +6 -6
  2. package/dist/cli/{curator-drift-6ad8mxxb.js → curator-drift-ed7p5mfy.js} +2 -2
  3. package/dist/cli/{curator-llm-factory-r3m5e7n8.js → curator-llm-factory-x9tk7e6m.js} +6 -6
  4. package/dist/cli/{evidence-summary-service-7nwhd8s4.js → evidence-summary-service-9r28ds8t.js} +3 -3
  5. package/dist/cli/{guardrail-explain-zajegz3a.js → guardrail-explain-etdrhd4d.js} +7 -7
  6. package/dist/cli/{guardrail-log-fsc85hwa.js → guardrail-log-2rns4g6d.js} +2 -2
  7. package/dist/cli/{hive-promoter-nwcsha2j.js → hive-promoter-j4e6rfa6.js} +6 -6
  8. package/dist/cli/{index-r87xhtmx.js → index-502f6np6.js} +8 -8
  9. package/dist/cli/{index-mpe0yk9s.js → index-57ymmh7h.js} +5 -3
  10. package/dist/cli/{index-357p0baj.js → index-91j1sqzm.js} +14 -2
  11. package/dist/cli/{index-168p3bfr.js → index-cyzzdbvw.js} +573 -509
  12. package/dist/cli/{index-t4hbye3v.js → index-hkpw4wwa.js} +1 -1
  13. package/dist/cli/{index-f12bmedv.js → index-kzfkggjx.js} +88 -31
  14. package/dist/cli/{index-w8dzxnx4.js → index-m1xjr58n.js} +1 -1
  15. package/dist/cli/{index-fxtrk7y8.js → index-tgtmbf3r.js} +1 -1
  16. package/dist/cli/{index-jr54w7pb.js → index-w15984gg.js} +2 -2
  17. package/dist/cli/index.js +6 -6
  18. package/dist/cli/{pending-delegations-46xf2n2e.js → pending-delegations-ws51m1e1.js} +1 -1
  19. package/dist/cli/{pr-subscriptions-3c34rnm1.js → pr-subscriptions-0dpn4epk.js} +2 -2
  20. package/dist/hooks/guardrails/file-authority.d.ts +1 -1
  21. package/dist/hooks/knowledge-injector.d.ts +3 -0
  22. package/dist/hooks/knowledge-reader.d.ts +17 -0
  23. package/dist/hooks/semantic-diff-injection.d.ts +19 -0
  24. package/dist/index.js +236 -237
  25. package/dist/services/directive-predicate-runner.d.ts +1 -1
  26. package/dist/tools/knowledge-remove.d.ts +11 -0
  27. package/package.json +1 -1
@@ -11,22 +11,22 @@ import {
11
11
  runCuratorInit,
12
12
  runCuratorPhase,
13
13
  writeCuratorSummary
14
- } from "./index-168p3bfr.js";
14
+ } from "./index-cyzzdbvw.js";
15
15
  import"./index-esg1554h.js";
16
- import"./index-f12bmedv.js";
16
+ import"./index-kzfkggjx.js";
17
17
  import"./index-8w4d325g.js";
18
- import"./index-fxtrk7y8.js";
18
+ import"./index-tgtmbf3r.js";
19
19
  import"./index-09xpycan.js";
20
20
  import"./index-2560cctg.js";
21
21
  import"./index-9wstcavp.js";
22
22
  import"./index-f7nma02k.js";
23
23
  import"./index-c8s9a3zh.js";
24
- import"./index-357p0baj.js";
24
+ import"./index-91j1sqzm.js";
25
25
  import"./index-v4fcn4tr.js";
26
26
  import"./index-r8f89sm9.js";
27
27
  import"./index-9b7qp18e.js";
28
- import"./index-t4hbye3v.js";
29
- import"./index-mpe0yk9s.js";
28
+ import"./index-hkpw4wwa.js";
29
+ import"./index-57ymmh7h.js";
30
30
  import"./index-5e4e2hvv.js";
31
31
  import"./index-p0arc26j.js";
32
32
  import"./index-jtqkh8jf.js";
@@ -4,11 +4,11 @@ import {
4
4
  } from "./index-c8s9a3zh.js";
5
5
  import {
6
6
  readEffectiveSpecSync
7
- } from "./index-357p0baj.js";
7
+ } from "./index-91j1sqzm.js";
8
8
  import {
9
9
  readSwarmFileAsync,
10
10
  validateSwarmPath
11
- } from "./index-mpe0yk9s.js";
11
+ } from "./index-57ymmh7h.js";
12
12
  import"./index-5e4e2hvv.js";
13
13
  import"./index-p0arc26j.js";
14
14
  import"./index-jtqkh8jf.js";
@@ -1,22 +1,22 @@
1
1
  // @bun
2
2
  import {
3
3
  createCuratorLLMDelegate
4
- } from "./index-168p3bfr.js";
4
+ } from "./index-cyzzdbvw.js";
5
5
  import"./index-esg1554h.js";
6
- import"./index-f12bmedv.js";
6
+ import"./index-kzfkggjx.js";
7
7
  import"./index-8w4d325g.js";
8
- import"./index-fxtrk7y8.js";
8
+ import"./index-tgtmbf3r.js";
9
9
  import"./index-09xpycan.js";
10
10
  import"./index-2560cctg.js";
11
11
  import"./index-9wstcavp.js";
12
12
  import"./index-f7nma02k.js";
13
13
  import"./index-c8s9a3zh.js";
14
- import"./index-357p0baj.js";
14
+ import"./index-91j1sqzm.js";
15
15
  import"./index-v4fcn4tr.js";
16
16
  import"./index-r8f89sm9.js";
17
17
  import"./index-9b7qp18e.js";
18
- import"./index-t4hbye3v.js";
19
- import"./index-mpe0yk9s.js";
18
+ import"./index-hkpw4wwa.js";
19
+ import"./index-57ymmh7h.js";
20
20
  import"./index-5e4e2hvv.js";
21
21
  import"./index-p0arc26j.js";
22
22
  import"./index-jtqkh8jf.js";
@@ -6,11 +6,11 @@ import {
6
6
  loadPlanJsonOnly,
7
7
  mergeDurableGateEntriesFromEvidence,
8
8
  readDurableGateEvidence
9
- } from "./index-f12bmedv.js";
10
- import"./index-357p0baj.js";
9
+ } from "./index-kzfkggjx.js";
10
+ import"./index-91j1sqzm.js";
11
11
  import"./index-r8f89sm9.js";
12
12
  import"./index-9b7qp18e.js";
13
- import"./index-mpe0yk9s.js";
13
+ import"./index-57ymmh7h.js";
14
14
  import"./index-5e4e2hvv.js";
15
15
  import"./index-p0arc26j.js";
16
16
  import"./index-jtqkh8jf.js";
@@ -1,23 +1,23 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-jr54w7pb.js";
5
- import"./index-168p3bfr.js";
4
+ } from "./index-w15984gg.js";
5
+ import"./index-cyzzdbvw.js";
6
6
  import"./index-esg1554h.js";
7
- import"./index-f12bmedv.js";
7
+ import"./index-kzfkggjx.js";
8
8
  import"./index-8w4d325g.js";
9
- import"./index-fxtrk7y8.js";
9
+ import"./index-tgtmbf3r.js";
10
10
  import"./index-09xpycan.js";
11
11
  import"./index-2560cctg.js";
12
12
  import"./index-9wstcavp.js";
13
13
  import"./index-f7nma02k.js";
14
14
  import"./index-c8s9a3zh.js";
15
- import"./index-357p0baj.js";
15
+ import"./index-91j1sqzm.js";
16
16
  import"./index-v4fcn4tr.js";
17
17
  import"./index-r8f89sm9.js";
18
18
  import"./index-9b7qp18e.js";
19
- import"./index-t4hbye3v.js";
20
- import"./index-mpe0yk9s.js";
19
+ import"./index-hkpw4wwa.js";
20
+ import"./index-57ymmh7h.js";
21
21
  import"./index-5e4e2hvv.js";
22
22
  import"./index-p0arc26j.js";
23
23
  import"./index-jtqkh8jf.js";
@@ -1,8 +1,8 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailLog
4
- } from "./index-w8dzxnx4.js";
5
- import"./index-fxtrk7y8.js";
4
+ } from "./index-m1xjr58n.js";
5
+ import"./index-tgtmbf3r.js";
6
6
  import"./index-2560cctg.js";
7
7
  import"./index-5e4e2hvv.js";
8
8
  import"./index-p0arc26j.js";
@@ -5,22 +5,22 @@ import {
5
5
  isHiveEligible,
6
6
  promoteFromSwarm,
7
7
  promoteToHive
8
- } from "./index-168p3bfr.js";
8
+ } from "./index-cyzzdbvw.js";
9
9
  import"./index-esg1554h.js";
10
- import"./index-f12bmedv.js";
10
+ import"./index-kzfkggjx.js";
11
11
  import"./index-8w4d325g.js";
12
- import"./index-fxtrk7y8.js";
12
+ import"./index-tgtmbf3r.js";
13
13
  import"./index-09xpycan.js";
14
14
  import"./index-2560cctg.js";
15
15
  import"./index-9wstcavp.js";
16
16
  import"./index-f7nma02k.js";
17
17
  import"./index-c8s9a3zh.js";
18
- import"./index-357p0baj.js";
18
+ import"./index-91j1sqzm.js";
19
19
  import"./index-v4fcn4tr.js";
20
20
  import"./index-r8f89sm9.js";
21
21
  import"./index-9b7qp18e.js";
22
- import"./index-t4hbye3v.js";
23
- import"./index-mpe0yk9s.js";
22
+ import"./index-hkpw4wwa.js";
23
+ import"./index-57ymmh7h.js";
24
24
  import"./index-5e4e2hvv.js";
25
25
  import"./index-p0arc26j.js";
26
26
  import"./index-jtqkh8jf.js";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-jr54w7pb.js";
4
+ } from "./index-w15984gg.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-w8dzxnx4.js";
7
+ } from "./index-m1xjr58n.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -80,11 +80,11 @@ import {
80
80
  handleWriteRetroCommand,
81
81
  normalizeSwarmCommandInput,
82
82
  resolveCommand
83
- } from "./index-168p3bfr.js";
83
+ } from "./index-cyzzdbvw.js";
84
84
  import"./index-esg1554h.js";
85
- import"./index-f12bmedv.js";
85
+ import"./index-kzfkggjx.js";
86
86
  import"./index-8w4d325g.js";
87
- import"./index-fxtrk7y8.js";
87
+ import"./index-tgtmbf3r.js";
88
88
  import"./index-09xpycan.js";
89
89
  import {
90
90
  AGENT_TOOL_MAP,
@@ -94,12 +94,12 @@ import {
94
94
  import"./index-9wstcavp.js";
95
95
  import"./index-f7nma02k.js";
96
96
  import"./index-c8s9a3zh.js";
97
- import"./index-357p0baj.js";
97
+ import"./index-91j1sqzm.js";
98
98
  import"./index-v4fcn4tr.js";
99
99
  import"./index-r8f89sm9.js";
100
100
  import"./index-9b7qp18e.js";
101
- import"./index-t4hbye3v.js";
102
- import"./index-mpe0yk9s.js";
101
+ import"./index-hkpw4wwa.js";
102
+ import"./index-57ymmh7h.js";
103
103
  import"./index-5e4e2hvv.js";
104
104
  import"./index-p0arc26j.js";
105
105
  import"./index-jtqkh8jf.js";
@@ -44,11 +44,13 @@ function composeHandlers(...fns) {
44
44
  if (fns.length === 0) {
45
45
  return async () => {};
46
46
  }
47
+ for (const fn of fns) {
48
+ if (isFailClosedHandler(fn)) {
49
+ throw new Error("composeHandlers cannot wrap fail-closed handlers; use composeBlockingHandlers or await them directly");
50
+ }
51
+ }
47
52
  return async (input, output) => {
48
53
  for (const fn of fns) {
49
- if (isFailClosedHandler(fn)) {
50
- throw new Error("composeHandlers cannot wrap fail-closed handlers; use composeBlockingHandlers or await them directly");
51
- }
52
54
  const safeFn = _internals.safeHook(fn);
53
55
  await safeFn(input, output);
54
56
  }
@@ -294,7 +294,15 @@ function renderRequirement(req, used, warnings, reserved) {
294
294
  function detectSpeckit(directory) {
295
295
  const root = path.resolve(directory);
296
296
  const markerPath = path.join(root, SPECKIT_MARKER);
297
- const markerPresent = fs.statSync(markerPath, { throwIfNoEntry: false })?.isDirectory() ?? false;
297
+ let markerPresent = false;
298
+ try {
299
+ markerPresent = fs.statSync(markerPath, { throwIfNoEntry: false })?.isDirectory() ?? false;
300
+ } catch (error) {
301
+ const code = error.code;
302
+ if (code !== "ENOENT" && code !== "ENOTDIR" && code !== "EACCES" && code !== "EPERM" && code !== "EUNKNOWN") {
303
+ throw error;
304
+ }
305
+ }
298
306
  if (!markerPresent) {
299
307
  return { markerPresent: false, features: [] };
300
308
  }
@@ -592,6 +600,9 @@ function buildOpenSpecProjectionSync(directory, options = {}) {
592
600
  };
593
601
  }
594
602
  function readEffectiveSpecSync(directory, opts) {
603
+ if (directory.includes("\x00")) {
604
+ return null;
605
+ }
595
606
  const root = path.resolve(directory);
596
607
  const swSpecPath = path.join(root, SWARM_SPEC_REL);
597
608
  try {
@@ -608,7 +619,8 @@ function readEffectiveSpecSync(directory, opts) {
608
619
  };
609
620
  }
610
621
  } catch (error) {
611
- if (error.code !== "ENOENT") {
622
+ const code = error.code;
623
+ if (code !== "ENOENT" && code !== "ENOTDIR" && code !== "EACCES" && code !== "EPERM" && code !== "EUNKNOWN") {
612
624
  throw error;
613
625
  }
614
626
  }