opencode-swarm 7.125.1 → 7.125.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 (37) hide show
  1. package/dist/cli/{config-doctor-g3m2q646.js → config-doctor-8df6hk58.js} +2 -2
  2. package/dist/cli/{curation-policy-vgbx8530.js → curation-policy-7pvghg6f.js} +2 -2
  3. package/dist/cli/{curator-xk4g1nx2.js → curator-dw2zb74h.js} +12 -12
  4. package/dist/cli/{curator-llm-factory-7pvqy94w.js → curator-llm-factory-bntt6v8j.js} +12 -12
  5. package/dist/cli/{guardrail-explain-wfk16bpr.js → guardrail-explain-vmr4db9n.js} +13 -13
  6. package/dist/cli/{guardrail-log-5zz9xx6z.js → guardrail-log-8prd6cnc.js} +3 -3
  7. package/dist/cli/{hive-promoter-njwc5rt0.js → hive-promoter-xymt9vf2.js} +12 -12
  8. package/dist/cli/{index-txragda9.js → index-1s7jzcsy.js} +1 -1
  9. package/dist/cli/{index-kws8zn6y.js → index-39p1yyag.js} +1 -1
  10. package/dist/cli/{index-ghteqdy1.js → index-7mtvvt8p.js} +2 -2
  11. package/dist/cli/{index-kvrk3h8p.js → index-7ne6q2a0.js} +1 -1
  12. package/dist/cli/{index-dsf1yv4s.js → index-8ed9rz7y.js} +38 -36
  13. package/dist/cli/{index-z4sc6yxc.js → index-92xyawa7.js} +1 -1
  14. package/dist/cli/{index-mhhmecsw.js → index-em4h33my.js} +2 -2
  15. package/dist/cli/{index-3k8pg467.js → index-j8ptbcxz.js} +1 -1
  16. package/dist/cli/{index-mwdcvh0e.js → index-pgya7cnn.js} +4 -4
  17. package/dist/cli/{index-tn3shyqj.js → index-ptmhxsaf.js} +3 -3
  18. package/dist/cli/{index-8yvqkbw7.js → index-qcrah1jk.js} +3 -1
  19. package/dist/cli/{index-pbjenws7.js → index-sxdh19nk.js} +1 -1
  20. package/dist/cli/{index-83rwq7pb.js → index-tdpct4cz.js} +1 -1
  21. package/dist/cli/{index-93cq8t5b.js → index-v3f7jvm8.js} +5 -5
  22. package/dist/cli/{index-cz6fv84h.js → index-yrk6hfp1.js} +14 -14
  23. package/dist/cli/{index-rpg8qqjs.js → index-zbsxek49.js} +2 -2
  24. package/dist/cli/index.js +12 -12
  25. package/dist/cli/{knowledge-escalator-jtyykzqc.js → knowledge-escalator-47hfstmk.js} +3 -3
  26. package/dist/cli/{knowledge-events-qhr97sy9.js → knowledge-events-j5dpp72w.js} +1 -1
  27. package/dist/cli/{knowledge-store-332x3pjv.js → knowledge-store-58gt7m85.js} +1 -1
  28. package/dist/cli/{knowledge-validator-3t8tgzsz.js → knowledge-validator-jjxw5mwc.js} +4 -4
  29. package/dist/cli/{scan-cursor-q21c9k9q.js → scan-cursor-h8we8dfv.js} +2 -2
  30. package/dist/cli/{schema-y2d7j2jk.js → schema-xpqbhcyp.js} +1 -1
  31. package/dist/cli/{skill-generator-3gkxx98d.js → skill-generator-k8d0vff0.js} +5 -5
  32. package/dist/config/schema.d.ts +4 -0
  33. package/dist/hooks/knowledge-application-gate.d.ts +8 -2
  34. package/dist/hooks/knowledge-application.d.ts +2 -0
  35. package/dist/index.js +6 -6
  36. package/dist/state.d.ts +33 -2
  37. package/package.json +1 -1
@@ -3,7 +3,7 @@ import {
3
3
  init_constants,
4
4
  init_schema,
5
5
  stripKnownSwarmPrefix
6
- } from "./index-8yvqkbw7.js";
6
+ } from "./index-qcrah1jk.js";
7
7
  import {
8
8
  init_logger,
9
9
  warn
@@ -608,7 +608,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
608
608
  deltas.push({ id, delta });
609
609
  }
610
610
  if (deltas.length > 0) {
611
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-332x3pjv.js");
611
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-58gt7m85.js");
612
612
  await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
613
613
  }
614
614
  return {
@@ -6,13 +6,13 @@ import {
6
6
  resolveSwarmKnowledgePath,
7
7
  transactKnowledge,
8
8
  wordBigrams
9
- } from "./index-mwdcvh0e.js";
9
+ } from "./index-pgya7cnn.js";
10
10
  import {
11
11
  countEntryContradictionsInWindow,
12
12
  countEntryViolationsInWindow,
13
13
  readKnowledgeEvents,
14
14
  recordKnowledgeEvent
15
- } from "./index-83rwq7pb.js";
15
+ } from "./index-tdpct4cz.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-3t8tgzsz.js");
193
+ const { quarantineEntry } = await import("./knowledge-validator-jjxw5mwc.js");
194
194
  let policyConfig;
195
195
  try {
196
- const { KnowledgeConfigSchema } = await import("./schema-y2d7j2jk.js");
197
- const { loadPluginConfigWithMeta } = await import("./index-rpg8qqjs.js");
196
+ const { KnowledgeConfigSchema } = await import("./schema-xpqbhcyp.js");
197
+ const { loadPluginConfigWithMeta } = await import("./index-zbsxek49.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-mhhmecsw.js";
4
+ } from "./index-em4h33my.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-txragda9.js";
7
+ } from "./index-1s7jzcsy.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-dsf1yv4s.js";
87
- import"./index-pbjenws7.js";
88
- import"./index-z4sc6yxc.js";
86
+ } from "./index-8ed9rz7y.js";
87
+ import"./index-sxdh19nk.js";
88
+ import"./index-92xyawa7.js";
89
89
  import"./index-fs02c7tz.js";
90
90
  import"./index-4905hd2m.js";
91
91
  import"./index-134d35c1.js";
92
92
  import"./index-6n2jpz7x.js";
93
- import"./index-tn3shyqj.js";
94
- import"./index-93cq8t5b.js";
95
- import"./index-kws8zn6y.js";
93
+ import"./index-ptmhxsaf.js";
94
+ import"./index-v3f7jvm8.js";
95
+ import"./index-39p1yyag.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-ghteqdy1.js";
101
- import"./index-kvrk3h8p.js";
100
+ import"./index-7mtvvt8p.js";
101
+ import"./index-7ne6q2a0.js";
102
102
  import"./index-rtry5xyf.js";
103
- import"./index-mwdcvh0e.js";
104
- import"./index-83rwq7pb.js";
103
+ import"./index-pgya7cnn.js";
104
+ import"./index-tdpct4cz.js";
105
105
  import"./index-ae75rja9.js";
106
106
  import"./index-q27bajqb.js";
107
- import"./index-3k8pg467.js";
107
+ import"./index-j8ptbcxz.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-8yvqkbw7.js";
116
+ } from "./index-qcrah1jk.js";
117
117
  import"./index-bk5tah7q.js";
118
118
  import"./index-8fwhhayc.js";
119
119
  import"./index-q1exe2b3.js";
@@ -6,7 +6,7 @@ import {
6
6
  loadPluginConfigWithMeta,
7
7
  loadPluginConfigWithMetaAsync,
8
8
  resolveWorktreeIsolationConfig
9
- } from "./index-3k8pg467.js";
9
+ } from "./index-j8ptbcxz.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-8yvqkbw7.js";
61
+ } from "./index-qcrah1jk.js";
62
62
  import"./index-bk5tah7q.js";
63
63
  import {
64
64
  MigrationStatusSchema,
package/dist/cli/index.js CHANGED
@@ -7,34 +7,34 @@ import {
7
7
  getPluginLockFilePaths,
8
8
  package_default,
9
9
  resolveCommand
10
- } from "./index-dsf1yv4s.js";
11
- import"./index-pbjenws7.js";
12
- import"./index-z4sc6yxc.js";
10
+ } from "./index-8ed9rz7y.js";
11
+ import"./index-sxdh19nk.js";
12
+ import"./index-92xyawa7.js";
13
13
  import"./index-fs02c7tz.js";
14
14
  import"./index-4905hd2m.js";
15
15
  import"./index-134d35c1.js";
16
16
  import"./index-6n2jpz7x.js";
17
- import"./index-tn3shyqj.js";
18
- import"./index-93cq8t5b.js";
19
- import"./index-kws8zn6y.js";
17
+ import"./index-ptmhxsaf.js";
18
+ import"./index-v3f7jvm8.js";
19
+ import"./index-39p1yyag.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-ghteqdy1.js";
25
- import"./index-kvrk3h8p.js";
24
+ import"./index-7mtvvt8p.js";
25
+ import"./index-7ne6q2a0.js";
26
26
  import"./index-rtry5xyf.js";
27
- import"./index-mwdcvh0e.js";
28
- import"./index-83rwq7pb.js";
27
+ import"./index-pgya7cnn.js";
28
+ import"./index-tdpct4cz.js";
29
29
  import"./index-ae75rja9.js";
30
30
  import"./index-q27bajqb.js";
31
- import"./index-3k8pg467.js";
31
+ import"./index-j8ptbcxz.js";
32
32
  import"./index-k5jrywpr.js";
33
33
  import"./index-n832052r.js";
34
34
  import {
35
35
  DEFAULT_AGENT_CONFIGS,
36
36
  init_constants
37
- } from "./index-8yvqkbw7.js";
37
+ } from "./index-qcrah1jk.js";
38
38
  import"./index-bk5tah7q.js";
39
39
  import"./index-8fwhhayc.js";
40
40
  import"./index-q1exe2b3.js";
@@ -8,9 +8,9 @@ import {
8
8
  maybeEscalateOnViolation,
9
9
  maybeQuarantineOnContradiction,
10
10
  readRecentEscalations
11
- } from "./index-93cq8t5b.js";
12
- import"./index-mwdcvh0e.js";
13
- import"./index-83rwq7pb.js";
11
+ } from "./index-v3f7jvm8.js";
12
+ import"./index-pgya7cnn.js";
13
+ import"./index-tdpct4cz.js";
14
14
  import"./index-ae75rja9.js";
15
15
  import"./index-q27bajqb.js";
16
16
  import"./index-bk5tah7q.js";
@@ -26,7 +26,7 @@ import {
26
26
  resolveKnowledgeCounterBaselinePath,
27
27
  resolveKnowledgeEventsPath,
28
28
  resolveLegacyApplicationLogPath
29
- } from "./index-83rwq7pb.js";
29
+ } from "./index-tdpct4cz.js";
30
30
  import"./index-ae75rja9.js";
31
31
  import"./index-q27bajqb.js";
32
32
  import"./index-zgwm4ryv.js";
@@ -40,7 +40,7 @@ import {
40
40
  transactKnowledge,
41
41
  transactKnowledgeWithCas,
42
42
  wordBigrams
43
- } from "./index-mwdcvh0e.js";
43
+ } from "./index-pgya7cnn.js";
44
44
  import {
45
45
  resolveHiveDataDir
46
46
  } from "./index-ae75rja9.js";
@@ -23,11 +23,11 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-ghteqdy1.js";
27
- import"./index-kvrk3h8p.js";
26
+ } from "./index-7mtvvt8p.js";
27
+ import"./index-7ne6q2a0.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-mwdcvh0e.js";
30
- import"./index-83rwq7pb.js";
29
+ import"./index-pgya7cnn.js";
30
+ import"./index-tdpct4cz.js";
31
31
  import"./index-ae75rja9.js";
32
32
  import"./index-q27bajqb.js";
33
33
  import"./index-bk5tah7q.js";
@@ -4,8 +4,8 @@ import {
4
4
  alreadyCuratedThisGeneration,
5
5
  claimNextScanBatch,
6
6
  getScanStatus
7
- } from "./index-kws8zn6y.js";
8
- import"./index-mwdcvh0e.js";
7
+ } from "./index-39p1yyag.js";
8
+ import"./index-pgya7cnn.js";
9
9
  import"./index-ae75rja9.js";
10
10
  import"./index-q27bajqb.js";
11
11
  import"./index-bk5tah7q.js";
@@ -88,7 +88,7 @@ import {
88
88
  resolveGeneratedAgentRole,
89
89
  resolveGuardrailsConfig,
90
90
  stripKnownSwarmPrefix
91
- } from "./index-8yvqkbw7.js";
91
+ } from "./index-qcrah1jk.js";
92
92
  import"./index-bk5tah7q.js";
93
93
  import"./index-zjygnfay.js";
94
94
  import"./index-bpmtbmy9.js";
@@ -33,12 +33,12 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-tn3shyqj.js";
37
- import"./index-ghteqdy1.js";
38
- import"./index-kvrk3h8p.js";
36
+ } from "./index-ptmhxsaf.js";
37
+ import"./index-7mtvvt8p.js";
38
+ import"./index-7ne6q2a0.js";
39
39
  import"./index-rtry5xyf.js";
40
- import"./index-mwdcvh0e.js";
41
- import"./index-83rwq7pb.js";
40
+ import"./index-pgya7cnn.js";
41
+ import"./index-tdpct4cz.js";
42
42
  import"./index-ae75rja9.js";
43
43
  import"./index-q27bajqb.js";
44
44
  import"./index-bk5tah7q.js";
@@ -825,6 +825,8 @@ export declare const KnowledgeApplicationConfigSchema: z.ZodObject<{
825
825
  critical_requires_ack: z.ZodDefault<z.ZodBoolean>;
826
826
  require_skill_refs: z.ZodDefault<z.ZodBoolean>;
827
827
  high_risk_tools: z.ZodDefault<z.ZodArray<z.ZodString>>;
828
+ max_gate_denials: z.ZodDefault<z.ZodNumber>;
829
+ gate_staleness_ms: z.ZodDefault<z.ZodNumber>;
828
830
  }, z.core.$strip>;
829
831
  export type KnowledgeApplicationConfig = z.infer<typeof KnowledgeApplicationConfigSchema>;
830
832
  export declare const SkillPropagationConfigSchema: z.ZodObject<{
@@ -2130,6 +2132,8 @@ export declare const PluginConfigSchema: z.ZodObject<{
2130
2132
  critical_requires_ack: z.ZodDefault<z.ZodBoolean>;
2131
2133
  require_skill_refs: z.ZodDefault<z.ZodBoolean>;
2132
2134
  high_risk_tools: z.ZodDefault<z.ZodArray<z.ZodString>>;
2135
+ max_gate_denials: z.ZodDefault<z.ZodNumber>;
2136
+ gate_staleness_ms: z.ZodDefault<z.ZodNumber>;
2133
2137
  }, z.core.$strip>>;
2134
2138
  skillPropagation: z.ZodOptional<z.ZodObject<{
2135
2139
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -15,8 +15,14 @@
15
15
  * assemble the set of critical directives that have been shown but
16
16
  * not acknowledged. In `mode: 'enforce'` it THROWS to block the
17
17
  * action (per the FAIL-CLOSED contract — `output.error` is NOT a
18
- * write API at toolBefore time). In `mode: 'warn'` it appends to
19
- * `events.jsonl` and lets the action proceed.
18
+ * write API at toolBefore time) UNLESS one of two bounded escape
19
+ * hatches has fired first (a per-directive denial-count limit, or a
20
+ * staleness TTL since the directive was shown; see
21
+ * `incrementGateDenialCount`/`buildGateDenialDirectiveKey` in
22
+ * `../state.js`), in which case the pending directives are
23
+ * auto-acknowledged and an audit event is durably written before the
24
+ * action is allowed to proceed. In `mode: 'warn'` it appends to
25
+ * `events.jsonl` and always lets the action proceed.
20
26
  *
21
27
  * Tools considered high-risk:
22
28
  * - save_plan
@@ -68,6 +68,8 @@ export interface KnowledgeApplicationConfig {
68
68
  critical_requires_ack: boolean;
69
69
  require_skill_refs: boolean;
70
70
  high_risk_tools?: string[];
71
+ max_gate_denials?: number;
72
+ gate_staleness_ms?: number;
71
73
  }
72
74
  export declare const DEFAULT_KNOWLEDGE_APPLICATION_CONFIG: KnowledgeApplicationConfig;
73
75
  export interface GateResult {