opencode-swarm 7.136.4 → 7.136.5

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 (40) hide show
  1. package/dist/cli/{config-doctor-qwp5y9dk.js → config-doctor-n3hatm9d.js} +2 -2
  2. package/dist/cli/{curation-policy-8tsbaa4q.js → curation-policy-c4g08bg1.js} +2 -2
  3. package/dist/cli/{curator-763smew7.js → curator-jc5cc980.js} +12 -12
  4. package/dist/cli/{curator-llm-factory-dg8mmzy7.js → curator-llm-factory-atfnhbn6.js} +12 -12
  5. package/dist/cli/{guardrail-explain-6jc012g3.js → guardrail-explain-v6f8efve.js} +13 -13
  6. package/dist/cli/{guardrail-log-86aw7fne.js → guardrail-log-0mrq14g9.js} +3 -3
  7. package/dist/cli/{hive-promoter-en786ja4.js → hive-promoter-wyejhz8b.js} +12 -12
  8. package/dist/cli/{index-94pvh7hc.js → index-6kd0ezgd.js} +1 -1
  9. package/dist/cli/{index-06htxvzq.js → index-84se71v1.js} +1 -1
  10. package/dist/cli/{index-fhnbzz75.js → index-8f4346kf.js} +1 -1
  11. package/dist/cli/{index-qv1xc6rd.js → index-akc6rp3x.js} +2 -2
  12. package/dist/cli/{index-rkp6jvc3.js → index-bqan4y2y.js} +2 -2
  13. package/dist/cli/{index-pq8ge6fe.js → index-eeb35dnx.js} +1 -1
  14. package/dist/cli/{index-89fpahtg.js → index-f5qs217h.js} +6 -1
  15. package/dist/cli/{index-t1s4b5ha.js → index-hbzh7yyz.js} +669 -618
  16. package/dist/cli/{index-gjs5g97v.js → index-j7ja83v5.js} +1 -1
  17. package/dist/cli/{index-1hef020t.js → index-pyz1p8qv.js} +1 -1
  18. package/dist/cli/{index-bb3ks0v3.js → index-qhbr4h5n.js} +4 -4
  19. package/dist/cli/{index-wy2f83j5.js → index-tr0ctbhq.js} +5 -5
  20. package/dist/cli/{index-fkdxfdbx.js → index-vm05set2.js} +2 -2
  21. package/dist/cli/{index-g0sdhyqk.js → index-xp2pfbpq.js} +1 -1
  22. package/dist/cli/{index-et8b70c8.js → index-xvcctb2t.js} +14 -14
  23. package/dist/cli/{index-4cv991ra.js → index-yj61bped.js} +3 -3
  24. package/dist/cli/index.js +12 -12
  25. package/dist/cli/{knowledge-escalator-e815bveb.js → knowledge-escalator-2xe8z24p.js} +3 -3
  26. package/dist/cli/{knowledge-events-dz2tyhpw.js → knowledge-events-wecrshsx.js} +1 -1
  27. package/dist/cli/{knowledge-store-97qr7m9k.js → knowledge-store-9f74whxw.js} +1 -1
  28. package/dist/cli/{knowledge-validator-xsetvy4v.js → knowledge-validator-4ng7x9dr.js} +4 -4
  29. package/dist/cli/{scan-cursor-129fwf7e.js → scan-cursor-yzj9n225.js} +2 -2
  30. package/dist/cli/{schema-3xdza5gg.js → schema-cr1nr1w0.js} +1 -1
  31. package/dist/cli/{skill-generator-8zhprasg.js → skill-generator-ybncj9et.js} +5 -5
  32. package/dist/hooks/guardrails/file-authority.d.ts +20 -1
  33. package/dist/index.js +283 -284
  34. package/dist/memory/index.d.ts +1 -1
  35. package/dist/memory/local-jsonl-provider.d.ts +4 -1
  36. package/dist/memory/redaction.d.ts +91 -0
  37. package/dist/memory/sqlite-provider.d.ts +5 -1
  38. package/dist/utils/arg-hash.d.ts +113 -0
  39. package/dist/utils/stable-stringify.d.ts +47 -2
  40. package/package.json +1 -1
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  stripKnownSwarmPrefix
9
- } from "./index-pq8ge6fe.js";
9
+ } from "./index-eeb35dnx.js";
10
10
  import {
11
11
  ALL_AGENT_NAMES,
12
12
  init_constants
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  resolveExternalSkillsConfig
9
- } from "./index-pq8ge6fe.js";
9
+ } from "./index-eeb35dnx.js";
10
10
  import {
11
11
  advisoryWarn,
12
12
  init_warning_buffer
@@ -702,7 +702,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
702
702
  const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
703
703
  if (atFloor.length === 0 && recovered.length === 0)
704
704
  return;
705
- const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-dz2tyhpw.js");
705
+ const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-wecrshsx.js");
706
706
  const rollups = await readKnowledgeCounterRollups(directory);
707
707
  const flagIds = new Set;
708
708
  for (const e of atFloor) {
@@ -769,11 +769,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
769
769
  });
770
770
  }
771
771
  if (action === "quarantine" && toQuarantine.length > 0) {
772
- const { quarantineEntry } = await import("./knowledge-validator-xsetvy4v.js");
773
- const { KnowledgeConfigSchema } = await import("./schema-3xdza5gg.js");
772
+ const { quarantineEntry } = await import("./knowledge-validator-4ng7x9dr.js");
773
+ const { KnowledgeConfigSchema } = await import("./schema-cr1nr1w0.js");
774
774
  let config;
775
775
  try {
776
- const { loadPluginConfigWithMeta } = await import("./index-rkp6jvc3.js");
776
+ const { loadPluginConfigWithMeta } = await import("./index-bqan4y2y.js");
777
777
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
778
778
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
779
779
  } catch {
@@ -6,13 +6,13 @@ import {
6
6
  resolveSwarmKnowledgePath,
7
7
  transactKnowledge,
8
8
  wordBigrams
9
- } from "./index-bb3ks0v3.js";
9
+ } from "./index-qhbr4h5n.js";
10
10
  import {
11
11
  countEntryContradictionsInWindow,
12
12
  countEntryViolationsInWindow,
13
13
  readKnowledgeEvents,
14
14
  recordKnowledgeEvent
15
- } from "./index-06htxvzq.js";
15
+ } from "./index-84se71v1.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-xsetvy4v.js");
193
+ const { quarantineEntry } = await import("./knowledge-validator-4ng7x9dr.js");
194
194
  let policyConfig;
195
195
  try {
196
- const { KnowledgeConfigSchema } = await import("./schema-3xdza5gg.js");
197
- const { loadPluginConfigWithMeta } = await import("./index-rkp6jvc3.js");
196
+ const { KnowledgeConfigSchema } = await import("./schema-cr1nr1w0.js");
197
+ const { loadPluginConfigWithMeta } = await import("./index-bqan4y2y.js");
198
198
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
199
199
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
200
200
  } catch {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-94pvh7hc.js";
4
+ } from "./index-6kd0ezgd.js";
5
5
  import {
6
6
  findNearDuplicate,
7
7
  inferTags,
@@ -9,7 +9,7 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-bb3ks0v3.js";
12
+ } from "./index-qhbr4h5n.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
15
  } from "./index-zzhyws9g.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  redactPath,
4
4
  redactShellCommand
5
- } from "./index-89fpahtg.js";
5
+ } from "./index-f5qs217h.js";
6
6
 
7
7
  // src/services/guardrail-log-service.ts
8
8
  import * as fs from "fs/promises";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-qv1xc6rd.js";
4
+ } from "./index-akc6rp3x.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-g0sdhyqk.js";
7
+ } from "./index-xp2pfbpq.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -84,39 +84,39 @@ import {
84
84
  handleWriteRetroCommand,
85
85
  normalizeSwarmCommandInput,
86
86
  resolveCommand
87
- } from "./index-t1s4b5ha.js";
87
+ } from "./index-hbzh7yyz.js";
88
88
  import"./index-vm4xw9z3.js";
89
89
  import"./index-nfm9f10v.js";
90
- import"./index-89fpahtg.js";
91
- import"./index-gjs5g97v.js";
90
+ import"./index-f5qs217h.js";
91
+ import"./index-j7ja83v5.js";
92
92
  import"./index-45y0y3xh.js";
93
93
  import"./index-ne28wyyc.js";
94
94
  import"./index-y8552snf.js";
95
95
  import"./index-4905hd2m.js";
96
96
  import"./index-134d35c1.js";
97
- import"./index-4cv991ra.js";
98
- import"./index-wy2f83j5.js";
99
- import"./index-fhnbzz75.js";
97
+ import"./index-yj61bped.js";
98
+ import"./index-tr0ctbhq.js";
99
+ import"./index-8f4346kf.js";
100
100
  import"./index-6mjf4vr1.js";
101
101
  import"./index-c8s9a3zh.js";
102
102
  import"./index-9ss2m4rs.js";
103
103
  import"./index-wsdnttf4.js";
104
104
  import"./index-d2sf9an1.js";
105
- import"./index-fkdxfdbx.js";
106
- import"./index-94pvh7hc.js";
105
+ import"./index-vm05set2.js";
106
+ import"./index-6kd0ezgd.js";
107
107
  import"./index-rtry5xyf.js";
108
- import"./index-bb3ks0v3.js";
109
- import"./index-06htxvzq.js";
108
+ import"./index-qhbr4h5n.js";
109
+ import"./index-84se71v1.js";
110
110
  import"./index-ae75rja9.js";
111
111
  import"./index-zzhyws9g.js";
112
112
  import"./index-b3jfcptk.js";
113
- import"./index-1hef020t.js";
113
+ import"./index-pyz1p8qv.js";
114
114
  import"./index-k5jrywpr.js";
115
115
  import"./index-n832052r.js";
116
116
  import {
117
117
  init_schema,
118
118
  stripKnownSwarmPrefix
119
- } from "./index-pq8ge6fe.js";
119
+ } from "./index-eeb35dnx.js";
120
120
  import"./index-bk5tah7q.js";
121
121
  import"./index-8fwhhayc.js";
122
122
  import"./index-q1exe2b3.js";
@@ -2,18 +2,18 @@
2
2
  import {
3
3
  ALLOWED_SKILL_PATH_PREFIXES,
4
4
  validateSkillPath
5
- } from "./index-fkdxfdbx.js";
5
+ } from "./index-vm05set2.js";
6
6
  import {
7
7
  computeOutcomeSignal,
8
8
  readKnowledge,
9
9
  resolveHiveKnowledgePath,
10
10
  resolveSwarmKnowledgePath,
11
11
  transactKnowledge
12
- } from "./index-bb3ks0v3.js";
12
+ } from "./index-qhbr4h5n.js";
13
13
  import {
14
14
  effectiveRetrievalOutcomes,
15
15
  readKnowledgeCounterRollups
16
- } from "./index-06htxvzq.js";
16
+ } from "./index-84se71v1.js";
17
17
  import {
18
18
  init_knowledge_types,
19
19
  isActiveStatus
package/dist/cli/index.js CHANGED
@@ -6,39 +6,39 @@ import {
6
6
  getPluginConfigDir,
7
7
  getPluginLockFilePaths,
8
8
  resolveCommand
9
- } from "./index-t1s4b5ha.js";
9
+ } from "./index-hbzh7yyz.js";
10
10
  import"./index-vm4xw9z3.js";
11
11
  import"./index-nfm9f10v.js";
12
- import"./index-89fpahtg.js";
13
- import"./index-gjs5g97v.js";
12
+ import"./index-f5qs217h.js";
13
+ import"./index-j7ja83v5.js";
14
14
  import"./index-45y0y3xh.js";
15
15
  import"./index-ne28wyyc.js";
16
16
  import"./index-y8552snf.js";
17
17
  import"./index-4905hd2m.js";
18
18
  import"./index-134d35c1.js";
19
- import"./index-4cv991ra.js";
20
- import"./index-wy2f83j5.js";
21
- import"./index-fhnbzz75.js";
19
+ import"./index-yj61bped.js";
20
+ import"./index-tr0ctbhq.js";
21
+ import"./index-8f4346kf.js";
22
22
  import"./index-6mjf4vr1.js";
23
23
  import"./index-c8s9a3zh.js";
24
24
  import"./index-9ss2m4rs.js";
25
25
  import"./index-wsdnttf4.js";
26
26
  import"./index-d2sf9an1.js";
27
- import"./index-fkdxfdbx.js";
28
- import"./index-94pvh7hc.js";
27
+ import"./index-vm05set2.js";
28
+ import"./index-6kd0ezgd.js";
29
29
  import"./index-rtry5xyf.js";
30
- import"./index-bb3ks0v3.js";
31
- import"./index-06htxvzq.js";
30
+ import"./index-qhbr4h5n.js";
31
+ import"./index-84se71v1.js";
32
32
  import"./index-ae75rja9.js";
33
33
  import"./index-zzhyws9g.js";
34
34
  import"./index-b3jfcptk.js";
35
- import"./index-1hef020t.js";
35
+ import"./index-pyz1p8qv.js";
36
36
  import"./index-k5jrywpr.js";
37
37
  import"./index-n832052r.js";
38
38
  import {
39
39
  init_package,
40
40
  package_default
41
- } from "./index-pq8ge6fe.js";
41
+ } from "./index-eeb35dnx.js";
42
42
  import"./index-bk5tah7q.js";
43
43
  import"./index-8fwhhayc.js";
44
44
  import"./index-q1exe2b3.js";
@@ -8,9 +8,9 @@ import {
8
8
  maybeEscalateOnViolation,
9
9
  maybeQuarantineOnContradiction,
10
10
  readRecentEscalations
11
- } from "./index-wy2f83j5.js";
12
- import"./index-bb3ks0v3.js";
13
- import"./index-06htxvzq.js";
11
+ } from "./index-tr0ctbhq.js";
12
+ import"./index-qhbr4h5n.js";
13
+ import"./index-84se71v1.js";
14
14
  import"./index-ae75rja9.js";
15
15
  import"./index-zzhyws9g.js";
16
16
  import"./index-b3jfcptk.js";
@@ -28,7 +28,7 @@ import {
28
28
  resolveKnowledgeCounterBaselinePath,
29
29
  resolveKnowledgeEventsPath,
30
30
  resolveLegacyApplicationLogPath
31
- } from "./index-06htxvzq.js";
31
+ } from "./index-84se71v1.js";
32
32
  import"./index-ae75rja9.js";
33
33
  import"./index-zzhyws9g.js";
34
34
  import"./index-b3jfcptk.js";
@@ -41,7 +41,7 @@ import {
41
41
  transactKnowledge,
42
42
  transactKnowledgeWithCas,
43
43
  wordBigrams
44
- } from "./index-bb3ks0v3.js";
44
+ } from "./index-qhbr4h5n.js";
45
45
  import {
46
46
  resolveHiveDataDir
47
47
  } from "./index-ae75rja9.js";
@@ -23,11 +23,11 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-fkdxfdbx.js";
27
- import"./index-94pvh7hc.js";
26
+ } from "./index-vm05set2.js";
27
+ import"./index-6kd0ezgd.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-bb3ks0v3.js";
30
- import"./index-06htxvzq.js";
29
+ import"./index-qhbr4h5n.js";
30
+ import"./index-84se71v1.js";
31
31
  import"./index-ae75rja9.js";
32
32
  import"./index-zzhyws9g.js";
33
33
  import"./index-b3jfcptk.js";
@@ -4,8 +4,8 @@ import {
4
4
  alreadyCuratedThisGeneration,
5
5
  claimNextScanBatch,
6
6
  getScanStatus
7
- } from "./index-fhnbzz75.js";
8
- import"./index-bb3ks0v3.js";
7
+ } from "./index-8f4346kf.js";
8
+ import"./index-qhbr4h5n.js";
9
9
  import"./index-ae75rja9.js";
10
10
  import"./index-zzhyws9g.js";
11
11
  import"./index-b3jfcptk.js";
@@ -95,7 +95,7 @@ import {
95
95
  resolveGeneratedAgentRole,
96
96
  resolveGuardrailsConfig,
97
97
  stripKnownSwarmPrefix
98
- } from "./index-pq8ge6fe.js";
98
+ } from "./index-eeb35dnx.js";
99
99
  import"./index-bk5tah7q.js";
100
100
  import"./index-3jcyn8g6.js";
101
101
  import"./index-bpmtbmy9.js";
@@ -33,12 +33,12 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-4cv991ra.js";
37
- import"./index-fkdxfdbx.js";
38
- import"./index-94pvh7hc.js";
36
+ } from "./index-yj61bped.js";
37
+ import"./index-vm05set2.js";
38
+ import"./index-6kd0ezgd.js";
39
39
  import"./index-rtry5xyf.js";
40
- import"./index-bb3ks0v3.js";
41
- import"./index-06htxvzq.js";
40
+ import"./index-qhbr4h5n.js";
41
+ import"./index-84se71v1.js";
42
42
  import"./index-ae75rja9.js";
43
43
  import"./index-zzhyws9g.js";
44
44
  import"./index-b3jfcptk.js";
@@ -22,8 +22,27 @@ import { type FileZone } from '../../context/zone-classifier';
22
22
  * silently dropped nested keys, collapsing distinct todo contents to the same
23
23
  * hash.
24
24
  *
25
+ * When `stableCanonicalStringify` throws (cyclic refs, BigInt quirks), a
26
+ * constant fallback would make distinct-but-unserializable args collide,
27
+ * producing false-positive consecutive-equality detection (#2060-class
28
+ * bug). `coarseObjectDiscriminator` mixes in a shallow structural summary
29
+ * instead, so identical unserializable args still collide (true positive
30
+ * preserved) while distinct ones no longer do.
31
+ *
32
+ * Hash input is bounded by `boundedBunHash` (`src/utils/arg-hash.ts`), which
33
+ * hashes a length-prefixed head+tail SAMPLE rather than a bare prefix. That
34
+ * matters here more than anywhere: this hash drives the consecutive-repetition
35
+ * circuit breaker in `tool-before.ts`, which THROWS. Under a bare-prefix cap,
36
+ * ten consecutive large writes sharing a 64 KB boilerplate header but with
37
+ * differing appended bodies would have hashed identically and tripped it.
38
+ *
39
+ * Both this bounding and the fallback discriminator are shared verbatim with
40
+ * `hooks/adversarial-detector.ts:hashArgsForSpiral`; keep them in the shared
41
+ * module rather than re-inlining a copy here.
42
+ *
25
43
  * @param args Tool arguments to hash
26
- * @returns Numeric hash (0 for non-objects or if hashing fails)
44
+ * @returns Numeric hash (0 for non-objects; a discriminated fallback hash if
45
+ * stable stringification fails)
27
46
  */
28
47
  export declare function hashArgs(args: unknown): number;
29
48
  /** A record of an agent attesting to (resolving/suppressing/deferring) a finding. */