opencode-swarm 7.126.3 → 7.126.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 (38) hide show
  1. package/.opencode/skills/issue-tracer/scripts/trace-init.sh +20 -0
  2. package/dist/cli/{config-doctor-mfx27331.js → config-doctor-2admdwc2.js} +2 -2
  3. package/dist/cli/{curation-policy-n944aq62.js → curation-policy-82czah39.js} +2 -2
  4. package/dist/cli/{curator-jm9ehfkg.js → curator-5crbtfm1.js} +12 -12
  5. package/dist/cli/{curator-llm-factory-3cy0h9yw.js → curator-llm-factory-y24xw3j4.js} +12 -12
  6. package/dist/cli/{guardrail-explain-va0kj05m.js → guardrail-explain-3r26pm2s.js} +13 -13
  7. package/dist/cli/{guardrail-log-61gya05m.js → guardrail-log-7cychbgs.js} +3 -3
  8. package/dist/cli/{hive-promoter-h9c4kyv0.js → hive-promoter-9d2g1xf3.js} +12 -12
  9. package/dist/cli/{index-b16153py.js → index-0543dz3t.js} +14 -14
  10. package/dist/cli/{index-6t5sa6v0.js → index-0y19k18q.js} +2 -2
  11. package/dist/cli/{index-nqp13m5a.js → index-1mwdhq2p.js} +1 -1
  12. package/dist/cli/{index-gwss5btk.js → index-3ntrn97w.js} +1 -1
  13. package/dist/cli/{index-pb8ag9vg.js → index-72envp1b.js} +4 -4
  14. package/dist/cli/{index-vcqwhe9d.js → index-7ttstfv6.js} +25 -3
  15. package/dist/cli/{index-bf76q8q7.js → index-8etcyr9r.js} +1 -1
  16. package/dist/cli/{index-7bxw3v5w.js → index-c4mcheyz.js} +3 -3
  17. package/dist/cli/{index-3xd9a2g7.js → index-cpssctv1.js} +1 -1
  18. package/dist/cli/{index-c48dvb6j.js → index-edv27z4p.js} +2 -2
  19. package/dist/cli/{index-f97dm6tz.js → index-ff3j65em.js} +5 -5
  20. package/dist/cli/{index-pf3xae4s.js → index-gn62e04k.js} +1 -1
  21. package/dist/cli/{index-5n868tw8.js → index-hczdkknj.js} +136 -124
  22. package/dist/cli/{index-gf9cxvp0.js → index-hv2p03f3.js} +7 -19
  23. package/dist/cli/{index-88dt7c9z.js → index-ns62nv6t.js} +2 -2
  24. package/dist/cli/{index-gxw20m1d.js → index-v4n224r1.js} +1 -1
  25. package/dist/cli/index.js +12 -12
  26. package/dist/cli/{knowledge-escalator-nna0zec3.js → knowledge-escalator-b3k4b8pk.js} +3 -3
  27. package/dist/cli/{knowledge-events-7k82xk36.js → knowledge-events-4z5rkefv.js} +1 -1
  28. package/dist/cli/{knowledge-store-efvtng9t.js → knowledge-store-c0t16yr4.js} +1 -1
  29. package/dist/cli/{knowledge-validator-jh93eagj.js → knowledge-validator-cs33ws57.js} +4 -4
  30. package/dist/cli/{scan-cursor-cydz8d9q.js → scan-cursor-rgnarf67.js} +2 -2
  31. package/dist/cli/{schema-fa033pqw.js → schema-2x7wsb0n.js} +1 -1
  32. package/dist/cli/{skill-generator-8v463kj7.js → skill-generator-e8c2r816.js} +5 -5
  33. package/dist/config/loader.d.ts +1 -3
  34. package/dist/config/schema.d.ts +4 -4
  35. package/dist/index.js +252 -252
  36. package/dist/tools/test-runner.d.ts +12 -2
  37. package/dist/utils/path-security.d.ts +2 -0
  38. package/package.json +1 -1
@@ -8,7 +8,7 @@ import {
8
8
  init_constants,
9
9
  init_schema,
10
10
  resolveExternalSkillsConfig
11
- } from "./index-vcqwhe9d.js";
11
+ } from "./index-7ttstfv6.js";
12
12
  import {
13
13
  advisoryWarn,
14
14
  init_warning_buffer
@@ -220,9 +220,6 @@ function stripUnrecognizedKeys(raw, error) {
220
220
  }
221
221
  return { cleaned, removed };
222
222
  }
223
- function warningForRemovedKeys(removedKeys) {
224
- return `Ignored ${removedKeys.length} invalid or unrecognized config key(s): ${removedKeys.join(", ")}. The rest of your configuration was preserved. Fix or remove these keys.`;
225
- }
226
223
  function rawFullAutoLocked(raw) {
227
224
  if (!raw || typeof raw !== "object")
228
225
  return false;
@@ -244,7 +241,6 @@ function buildConfigWithMeta(rawUserConfig, rawProjectConfig, loadedFromFile, co
244
241
  mergedRaw = migratePresetsConfig(mergedRaw);
245
242
  const { result: sanitized, strippedKeys: gatesStripped } = sanitizeSectionConfigs(mergedRaw);
246
243
  mergedRaw = sanitized;
247
- const sanitizedWarning = gatesStripped.length > 0 ? warningForRemovedKeys(gatesStripped) : undefined;
248
244
  const secure = (cfg) => loadedFromFile && configHadErrors ? PluginConfigSchema.parse({
249
245
  ...cfg,
250
246
  guardrails: { enabled: true }
@@ -253,39 +249,31 @@ function buildConfigWithMeta(rawUserConfig, rawProjectConfig, loadedFromFile, co
253
249
  if (firstResult.success) {
254
250
  const config = secure(firstResult.data);
255
251
  if (loadedFromFile && configHadErrors) {
256
- const securityWarning = "\u26A0\uFE0F SECURITY: Falling back to conservative defaults with guardrails ENABLED. Fix the config file to restore custom configuration.";
257
- advisoryWarn(`[opencode-swarm] ${securityWarning}`);
252
+ advisoryWarn("[opencode-swarm] \u26A0\uFE0F SECURITY: Falling back to conservative defaults with guardrails ENABLED. Fix the config file to restore custom configuration.");
258
253
  return {
259
254
  config,
260
255
  recovery: "guardrails_defaults",
261
256
  removedKeys: [...gatesStripped],
262
- warnings: [
263
- ...sanitizedWarning ? [sanitizedWarning] : [],
264
- securityWarning
265
- ]
257
+ warnings: []
266
258
  };
267
259
  }
268
- if (sanitizedWarning)
269
- advisoryWarn(`[opencode-swarm] ${sanitizedWarning}`);
270
260
  return {
271
261
  config,
272
262
  recovery: gatesStripped.length > 0 ? "stripped_keys" : "none",
273
263
  removedKeys: [...gatesStripped],
274
- warnings: sanitizedWarning ? [sanitizedWarning] : []
264
+ warnings: []
275
265
  };
276
266
  }
277
267
  const { cleaned, removed } = stripUnrecognizedKeys(mergedRaw, firstResult.error);
278
268
  if (removed.length > 0) {
279
269
  const recovered = PluginConfigSchema.safeParse(cleaned);
280
270
  if (recovered.success) {
281
- const removedKeys = [...gatesStripped, ...removed];
282
- const warning = warningForRemovedKeys(removedKeys);
283
- advisoryWarn(`[opencode-swarm] ${warning}`);
271
+ advisoryWarn(`[opencode-swarm] Ignored ${removed.length} unrecognized config key(s): ${removed.join(", ")}. The rest of your configuration was preserved. Fix or remove these keys.`);
284
272
  return {
285
273
  config: secure(recovered.data),
286
274
  recovery: "stripped_keys",
287
- removedKeys,
288
- warnings: [warning]
275
+ removedKeys: [...gatesStripped, ...removed],
276
+ warnings: []
289
277
  };
290
278
  }
291
279
  }
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-gwss5btk.js";
4
+ } from "./index-3ntrn97w.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-pb8ag9vg.js";
12
+ } from "./index-72envp1b.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
15
  } from "./index-q27bajqb.js";
@@ -3,7 +3,7 @@ import {
3
3
  init_constants,
4
4
  init_schema,
5
5
  stripKnownSwarmPrefix
6
- } from "./index-vcqwhe9d.js";
6
+ } from "./index-7ttstfv6.js";
7
7
  import {
8
8
  init_logger,
9
9
  warn
package/dist/cli/index.js CHANGED
@@ -7,34 +7,34 @@ import {
7
7
  getPluginLockFilePaths,
8
8
  package_default,
9
9
  resolveCommand
10
- } from "./index-5n868tw8.js";
11
- import"./index-gxw20m1d.js";
12
- import"./index-3xd9a2g7.js";
10
+ } from "./index-hczdkknj.js";
11
+ import"./index-v4n224r1.js";
12
+ import"./index-cpssctv1.js";
13
13
  import"./index-kk1scggc.js";
14
14
  import"./index-4905hd2m.js";
15
15
  import"./index-134d35c1.js";
16
16
  import"./index-6n2jpz7x.js";
17
- import"./index-7bxw3v5w.js";
18
- import"./index-f97dm6tz.js";
19
- import"./index-pf3xae4s.js";
17
+ import"./index-c4mcheyz.js";
18
+ import"./index-ff3j65em.js";
19
+ import"./index-gn62e04k.js";
20
20
  import"./index-vxv732ex.js";
21
21
  import"./index-c8s9a3zh.js";
22
22
  import"./index-9ss2m4rs.js";
23
23
  import"./index-23zsx7dm.js";
24
- import"./index-88dt7c9z.js";
25
- import"./index-gwss5btk.js";
24
+ import"./index-ns62nv6t.js";
25
+ import"./index-3ntrn97w.js";
26
26
  import"./index-rtry5xyf.js";
27
- import"./index-pb8ag9vg.js";
28
- import"./index-nqp13m5a.js";
27
+ import"./index-72envp1b.js";
28
+ import"./index-1mwdhq2p.js";
29
29
  import"./index-ae75rja9.js";
30
30
  import"./index-q27bajqb.js";
31
- import"./index-gf9cxvp0.js";
31
+ import"./index-hv2p03f3.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-vcqwhe9d.js";
37
+ } from "./index-7ttstfv6.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-f97dm6tz.js";
12
- import"./index-pb8ag9vg.js";
13
- import"./index-nqp13m5a.js";
11
+ } from "./index-ff3j65em.js";
12
+ import"./index-72envp1b.js";
13
+ import"./index-1mwdhq2p.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-nqp13m5a.js";
29
+ } from "./index-1mwdhq2p.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-pb8ag9vg.js";
43
+ } from "./index-72envp1b.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-88dt7c9z.js";
27
- import"./index-gwss5btk.js";
26
+ } from "./index-ns62nv6t.js";
27
+ import"./index-3ntrn97w.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-pb8ag9vg.js";
30
- import"./index-nqp13m5a.js";
29
+ import"./index-72envp1b.js";
30
+ import"./index-1mwdhq2p.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-pf3xae4s.js";
8
- import"./index-pb8ag9vg.js";
7
+ } from "./index-gn62e04k.js";
8
+ import"./index-72envp1b.js";
9
9
  import"./index-ae75rja9.js";
10
10
  import"./index-q27bajqb.js";
11
11
  import"./index-bk5tah7q.js";
@@ -89,7 +89,7 @@ import {
89
89
  resolveGeneratedAgentRole,
90
90
  resolveGuardrailsConfig,
91
91
  stripKnownSwarmPrefix
92
- } from "./index-vcqwhe9d.js";
92
+ } from "./index-7ttstfv6.js";
93
93
  import"./index-bk5tah7q.js";
94
94
  import"./index-zjygnfay.js";
95
95
  import"./index-bpmtbmy9.js";
@@ -33,12 +33,12 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-7bxw3v5w.js";
37
- import"./index-88dt7c9z.js";
38
- import"./index-gwss5btk.js";
36
+ } from "./index-c4mcheyz.js";
37
+ import"./index-ns62nv6t.js";
38
+ import"./index-3ntrn97w.js";
39
39
  import"./index-rtry5xyf.js";
40
- import"./index-pb8ag9vg.js";
41
- import"./index-nqp13m5a.js";
40
+ import"./index-72envp1b.js";
41
+ import"./index-1mwdhq2p.js";
42
42
  import"./index-ae75rja9.js";
43
43
  import"./index-q27bajqb.js";
44
44
  import"./index-bk5tah7q.js";
@@ -58,9 +58,7 @@ export type ConfigLoadResult = ConfigBuildResult & {
58
58
  * 1. User config: ~/.config/opencode/opencode-swarm.json
59
59
  * 2. Project config: <directory>/.opencode/opencode-swarm.json
60
60
  *
61
- * Project config takes precedence. Nested objects are deep-merged, except
62
- * `full_auto.locked`: it is a hard-off and OR-merges across both levels, so
63
- * `locked: true` at either level cannot be overridden by `locked: false`.
61
+ * Project config takes precedence. Nested objects are deep-merged.
64
62
  * IMPORTANT: Raw configs are merged BEFORE Zod parsing so that
65
63
  * Zod defaults don't override explicit user values.
66
64
  */
@@ -550,11 +550,11 @@ export declare const RepoGraphConfigSchema: z.ZodObject<{
550
550
  exclude_dirs: z.ZodDefault<z.ZodArray<z.ZodString>>;
551
551
  }, z.core.$strip>;
552
552
  export type RepoGraphConfig = z.infer<typeof RepoGraphConfigSchema>;
553
- export declare const CheckpointConfigSchema: z.ZodObject<{
553
+ export declare const CheckpointConfigSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
554
554
  enabled: z.ZodDefault<z.ZodBoolean>;
555
555
  auto_checkpoint_threshold: z.ZodDefault<z.ZodNumber>;
556
556
  allow_empty_commits: z.ZodDefault<z.ZodBoolean>;
557
- }, z.core.$strict>;
557
+ }, z.core.$strict>>;
558
558
  export type CheckpointConfig = z.infer<typeof CheckpointConfigSchema>;
559
559
  export declare const ApplyPatchConfigSchema: z.ZodObject<{
560
560
  fuzzy_match: z.ZodDefault<z.ZodBoolean>;
@@ -1882,11 +1882,11 @@ export declare const PluginConfigSchema: z.ZodObject<{
1882
1882
  exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
1883
1883
  extensions: z.ZodDefault<z.ZodArray<z.ZodString>>;
1884
1884
  }, z.core.$strip>>;
1885
- checkpoint: z.ZodOptional<z.ZodObject<{
1885
+ checkpoint: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
1886
1886
  enabled: z.ZodDefault<z.ZodBoolean>;
1887
1887
  auto_checkpoint_threshold: z.ZodDefault<z.ZodNumber>;
1888
1888
  allow_empty_commits: z.ZodDefault<z.ZodBoolean>;
1889
- }, z.core.$strict>>;
1889
+ }, z.core.$strict>>>;
1890
1890
  apply_patch: z.ZodOptional<z.ZodObject<{
1891
1891
  fuzzy_match: z.ZodDefault<z.ZodBoolean>;
1892
1892
  fuzzy_match_context_aware: z.ZodDefault<z.ZodBoolean>;