opencode-swarm 7.142.1 → 7.143.1

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 (74) hide show
  1. package/.opencode/skills/execute/SKILL.md +1 -1
  2. package/.opencode/skills/loop/SKILL.md +4 -2
  3. package/.opencode/skills/phase-wrap/SKILL.md +2 -2
  4. package/dist/cli/ast-diff-ypptrcan.js +422 -0
  5. package/dist/cli/{config-doctor-2a3qmp5p.js → config-doctor-ajq3sts3.js} +4 -4
  6. package/dist/cli/{core-h9z49ant.js → core-0jn7sk7t.js} +4 -4
  7. package/dist/cli/curation-policy-pkb2eeb1.js +1 -1
  8. package/dist/cli/{curator-drift-49p3jnte.js → curator-drift-2jbjv03a.js} +6 -6
  9. package/dist/cli/{curator-mtz194wy.js → curator-ff53rwz5.js} +36 -35
  10. package/dist/cli/{curator-llm-factory-9fr243kj.js → curator-llm-factory-2mz7fgd1.js} +36 -35
  11. package/dist/cli/{dispatch-rd10kdk1.js → dispatch-1y1rnv1h.js} +3 -3
  12. package/dist/cli/{evidence-summary-service-fgckng0a.js → evidence-summary-service-08zcq836.js} +16 -16
  13. package/dist/cli/{gate-evidence-ppna7em4.js → gate-evidence-2r7n4qjv.js} +9 -9
  14. package/dist/cli/{guardrail-explain-ejdvvnjz.js → guardrail-explain-cm5je07b.js} +37 -36
  15. package/dist/cli/{guardrail-log-adjs25ye.js → guardrail-log-jf4430p5.js} +6 -6
  16. package/dist/cli/{hive-promoter-jejme31e.js → hive-promoter-738bf1fj.js} +36 -35
  17. package/dist/cli/{index-2mb5y2w1.js → index-0kqs2fbm.js} +15 -15
  18. package/dist/cli/{index-ktazgjqw.js → index-254xf5y6.js} +2 -2
  19. package/dist/cli/{index-9wmx9ca8.js → index-3fg8kx7n.js} +4 -4
  20. package/dist/cli/{runtime-ykafcwc6.js → index-5n69863d.js} +2 -10
  21. package/dist/cli/{index-rthq1a6w.js → index-7317fvce.js} +5 -5
  22. package/dist/cli/index-7sy3aa9m.js +115 -0
  23. package/dist/cli/{index-7c4bxgdh.js → index-8aabbfhv.js} +5 -5
  24. package/dist/cli/{index-k1xsjzm3.js → index-91dz0zct.js} +10 -10
  25. package/dist/cli/{index-bb4pcn58.js → index-a5rky7fv.js} +2 -2
  26. package/dist/cli/{index-gtkk5rx7.js → index-awzwmx8p.js} +32 -32
  27. package/dist/cli/{index-ebwznsfy.js → index-b6e016tv.js} +1 -1
  28. package/dist/cli/{index-9kf3mj08.js → index-cfwdm1dx.js} +1 -1
  29. package/dist/cli/{index-vy11zjvh.js → index-crt7xw29.js} +5 -5
  30. package/dist/cli/{index-kbshtwha.js → index-cz9tc0h8.js} +5 -5
  31. package/dist/cli/{index-82m5kwtd.js → index-gdd4jt6b.js} +4 -4
  32. package/dist/cli/{index-qwm6vdyv.js → index-k3cxyk66.js} +1 -1
  33. package/dist/cli/{index-we279je2.js → index-mpw32szm.js} +1 -1
  34. package/dist/cli/{index-vefjxxmb.js → index-n2jk8ajv.js} +1 -1
  35. package/dist/cli/{index-bkkxxwcd.js → index-n48cwf1a.js} +7 -7
  36. package/dist/cli/{index-myav90y6.js → index-q68a8h37.js} +6 -6
  37. package/dist/cli/{index-h7ye3bzp.js → index-q7jv0c8e.js} +343 -357
  38. package/dist/cli/{index-ajfa2wmj.js → index-qmfzfh7m.js} +9 -9
  39. package/dist/cli/{index-k46me75h.js → index-rn0eq85g.js} +1 -1
  40. package/dist/cli/{index-j02ez59y.js → index-srd87kxc.js} +8 -8
  41. package/dist/cli/{index-0r4qs243.js → index-wnj1d1es.js} +43 -42
  42. package/dist/cli/{index-xfhe29z3.js → index-x10a9cz6.js} +5 -5
  43. package/dist/cli/{index-sdqtecsd.js → index-zgq25ze6.js} +5 -5
  44. package/dist/cli/{index-xah70t2t.js → index-zky3vt90.js} +4 -4
  45. package/dist/cli/index.js +45 -41
  46. package/dist/cli/{knowledge-escalator-0b80ryka.js → knowledge-escalator-9mdajq4s.js} +15 -15
  47. package/dist/cli/{knowledge-events-8x2wt562.js → knowledge-events-pz58s2r1.js} +13 -13
  48. package/dist/cli/knowledge-link-fn5j3r4q.js +1 -1
  49. package/dist/cli/{knowledge-store-d0xj6wht.js → knowledge-store-sz8vat89.js} +3 -3
  50. package/dist/cli/{knowledge-validator-ewfj679a.js → knowledge-validator-w5vmvf0a.js} +4 -4
  51. package/dist/cli/{pending-delegations-0hb97ps1.js → pending-delegations-b3pt3w5w.js} +5 -5
  52. package/dist/cli/{pr-subscriptions-b63t252j.js → pr-subscriptions-jyav582d.js} +5 -5
  53. package/dist/cli/{runner-hrg7h2h4.js → runner-pde6b5sx.js} +2 -2
  54. package/dist/cli/runtime-te94z1zb.js +23 -0
  55. package/dist/cli/{scan-cursor-hfyz7zpw.js → scan-cursor-p54xsx41.js} +4 -4
  56. package/dist/cli/{schema-ney3c685.js → schema-p74hnrfz.js} +1 -1
  57. package/dist/cli/{scope-persistence-dbfgs7gh.js → scope-persistence-1fc2ncsk.js} +9 -9
  58. package/dist/cli/semantic-classifier-ygqk0me1.js +147 -0
  59. package/dist/cli/{skill-generator-p651jex5.js → skill-generator-yv46bt1a.js} +16 -16
  60. package/dist/cli/{worktree-collision-ownership-ymdxetnn.js → worktree-collision-ownership-bfz3drxm.js} +6 -6
  61. package/dist/cli/{worktree-isolation-513vx61s.js → worktree-isolation-qfgc3vma.js} +38 -37
  62. package/dist/cli/{worktree-provisioning-owner-sjh7te1h.js → worktree-provisioning-owner-g24xd417.js} +4 -4
  63. package/dist/commands/registry.d.ts +1 -1
  64. package/dist/config/constants.d.ts +2 -2
  65. package/dist/hooks/delegation-gate.d.ts +84 -2
  66. package/dist/index.js +393 -380
  67. package/dist/parallel/review-router.d.ts +16 -0
  68. package/dist/parallel/tier3-classifier.d.ts +11 -0
  69. package/dist/utils/patch-dedent.d.ts +33 -0
  70. package/dist/workflow/coder-settlement.d.ts +30 -0
  71. package/dist/workflow/workflow-wal-schema.d.ts +2 -0
  72. package/package.json +1 -1
  73. package/dist/cli/{index-y9h2vqf6.js → index-4q9vfav6.js} +3 -3
  74. package/dist/cli/{index-ee3x66a5.js → index-z6xqpmqg.js} +3 -3
@@ -0,0 +1,115 @@
1
+ // @bun
2
+ // src/lang/registry.ts
3
+ var languageDefinitions = [
4
+ {
5
+ id: "javascript",
6
+ extensions: [".js", ".jsx", ".mjs", ".cjs"],
7
+ commentNodes: ["comment", "line_comment", "block_comment"]
8
+ },
9
+ {
10
+ id: "typescript",
11
+ extensions: [".ts"],
12
+ commentNodes: ["comment", "line_comment", "block_comment"]
13
+ },
14
+ {
15
+ id: "python",
16
+ extensions: [".py"],
17
+ commentNodes: ["comment"]
18
+ },
19
+ {
20
+ id: "go",
21
+ extensions: [".go"],
22
+ commentNodes: ["comment"]
23
+ },
24
+ {
25
+ id: "rust",
26
+ extensions: [".rs"],
27
+ commentNodes: ["line_comment", "block_comment"]
28
+ },
29
+ {
30
+ id: "php",
31
+ extensions: [".php", ".phtml"],
32
+ commentNodes: ["comment"]
33
+ },
34
+ {
35
+ id: "java",
36
+ extensions: [".java"],
37
+ commentNodes: ["line_comment", "block_comment"]
38
+ },
39
+ {
40
+ id: "c",
41
+ extensions: [".c", ".h"],
42
+ commentNodes: ["comment"]
43
+ },
44
+ {
45
+ id: "cpp",
46
+ extensions: [".cpp", ".cxx", ".cc", ".hpp", ".hxx", ".hh"],
47
+ commentNodes: ["comment"]
48
+ },
49
+ {
50
+ id: "csharp",
51
+ extensions: [".cs"],
52
+ commentNodes: ["comment"]
53
+ },
54
+ {
55
+ id: "ruby",
56
+ extensions: [".rb"],
57
+ commentNodes: ["comment"]
58
+ },
59
+ {
60
+ id: "swift",
61
+ extensions: [".swift"],
62
+ commentNodes: ["comment", "multiline_comment"]
63
+ },
64
+ {
65
+ id: "kotlin",
66
+ extensions: [".kt", ".kts"],
67
+ commentNodes: ["line_comment", "multiline_comment"]
68
+ },
69
+ {
70
+ id: "dart",
71
+ extensions: [".dart"],
72
+ commentNodes: ["comment", "documentation_comment"]
73
+ },
74
+ {
75
+ id: "css",
76
+ extensions: [".css"],
77
+ commentNodes: ["comment"]
78
+ },
79
+ {
80
+ id: "bash",
81
+ extensions: [".sh", ".bash"],
82
+ commentNodes: ["comment"]
83
+ },
84
+ {
85
+ id: "powershell",
86
+ extensions: [".ps1", ".psm1"],
87
+ commentNodes: ["comment"]
88
+ },
89
+ {
90
+ id: "ini",
91
+ extensions: [".ini", ".cfg", ".conf"],
92
+ commentNodes: ["comment"]
93
+ },
94
+ {
95
+ id: "regex",
96
+ extensions: [".regex"],
97
+ commentNodes: []
98
+ },
99
+ {
100
+ id: "tsx",
101
+ extensions: [".tsx"],
102
+ commentNodes: ["comment"]
103
+ }
104
+ ];
105
+ var extensionMap = new Map;
106
+ for (const definition of languageDefinitions) {
107
+ for (const extension of definition.extensions) {
108
+ extensionMap.set(extension, definition);
109
+ }
110
+ }
111
+ function getLanguageForExtension(extension) {
112
+ return extensionMap.get(extension.toLowerCase());
113
+ }
114
+
115
+ export { getLanguageForExtension };
@@ -1,10 +1,14 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-k46me75h.js";
4
+ } from "./index-rn0eq85g.js";
5
5
  import {
6
6
  withEvidenceLock
7
7
  } from "./index-k31en0ja.js";
8
+ import {
9
+ exports_external,
10
+ init_zod
11
+ } from "./index-bpmtbmy9.js";
8
12
  import {
9
13
  bunWrite
10
14
  } from "./index-4nt52yr9.js";
@@ -12,10 +16,6 @@ import {
12
16
  init_logger,
13
17
  warn
14
18
  } from "./index-zgwm4ryv.js";
15
- import {
16
- exports_external,
17
- init_zod
18
- } from "./index-bpmtbmy9.js";
19
19
 
20
20
  // src/background/pending-delegations.ts
21
21
  init_zod();
@@ -2,31 +2,31 @@
2
2
  import {
3
3
  effectiveRetrievalOutcomes,
4
4
  readAuthoritativeKnowledgeCounterRollups
5
- } from "./index-ajfa2wmj.js";
5
+ } from "./index-qmfzfh7m.js";
6
+ import {
7
+ advisoryWarn,
8
+ init_warning_buffer
9
+ } from "./index-4rhhvd1a.js";
6
10
  import {
7
11
  ALLOWED_SKILL_PATH_PREFIXES,
8
12
  validateSkillPath
9
- } from "./index-9kf3mj08.js";
13
+ } from "./index-cfwdm1dx.js";
10
14
  import {
11
15
  computeOutcomeSignal,
12
16
  readKnowledge,
13
17
  resolveHiveKnowledgePath,
14
18
  resolveSwarmKnowledgePath,
15
19
  transactKnowledge
16
- } from "./index-j02ez59y.js";
20
+ } from "./index-srd87kxc.js";
17
21
  import {
18
- advisoryWarn,
19
- init_warning_buffer
20
- } from "./index-4rhhvd1a.js";
22
+ init_knowledge_types,
23
+ isActiveStatus
24
+ } from "./index-bk5tah7q.js";
21
25
  import {
22
26
  init_logger,
23
27
  log,
24
28
  warn
25
29
  } from "./index-zgwm4ryv.js";
26
- import {
27
- init_knowledge_types,
28
- isActiveStatus
29
- } from "./index-bk5tah7q.js";
30
30
  import {
31
31
  __require
32
32
  } from "./index-a76rekgs.js";
@@ -12,14 +12,14 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-h7ye3bzp.js";
15
+ } from "./index-q7jv0c8e.js";
16
16
  import {
17
17
  checkFileAuthority,
18
18
  classifyFile,
19
19
  isInDeclaredScope,
20
20
  redactPath,
21
21
  redactShellCommand
22
- } from "./index-rthq1a6w.js";
22
+ } from "./index-7317fvce.js";
23
23
 
24
24
  // src/services/guardrail-explain-service.ts
25
25
  import path from "path";
@@ -10,35 +10,12 @@ import {
10
10
  import {
11
11
  readEffectiveSpecSync
12
12
  } from "./index-9ss2m4rs.js";
13
- import {
14
- getWorktreeMergeFailure
15
- } from "./index-zsrtt42s.js";
16
13
  import {
17
14
  isValidTaskId,
18
15
  readTaskEvidence,
19
16
  readTaskEvidenceRaw,
20
17
  sanitizeTaskId
21
- } from "./index-2mb5y2w1.js";
22
- import {
23
- _internals,
24
- buildDefaultPolicy,
25
- execute,
26
- init_runner_client,
27
- probe
28
- } from "./index-q1exe2b3.js";
29
- import {
30
- readSwarmFileAsync,
31
- validateSwarmPath
32
- } from "./index-k46me75h.js";
33
- import {
34
- invalidateCachedArtifact,
35
- readCachedParsedFile
36
- } from "./index-ed5ykebp.js";
37
- import {
38
- EVIDENCE_MAX_JSON_BYTES,
39
- EvidenceBundleSchema,
40
- EvidenceSchema
41
- } from "./index-gprxjmm7.js";
18
+ } from "./index-0kqs2fbm.js";
42
19
  import {
43
20
  LedgerStaleWriterError,
44
21
  appendLedgerEvent,
@@ -58,7 +35,33 @@ import {
58
35
  replayFromLedgerWithStatus,
59
36
  takeSnapshotEvent,
60
37
  takeSnapshotWithRetry
61
- } from "./index-myav90y6.js";
38
+ } from "./index-q68a8h37.js";
39
+ import {
40
+ getWorktreeMergeFailure
41
+ } from "./index-zsrtt42s.js";
42
+ import {
43
+ _internals,
44
+ buildDefaultPolicy,
45
+ execute,
46
+ init_runner_client,
47
+ probe
48
+ } from "./index-q1exe2b3.js";
49
+ import {
50
+ EVIDENCE_MAX_JSON_BYTES,
51
+ EvidenceBundleSchema,
52
+ EvidenceSchema
53
+ } from "./index-gprxjmm7.js";
54
+ import {
55
+ PlanSchema
56
+ } from "./index-zgq25ze6.js";
57
+ import {
58
+ readSwarmFileAsync,
59
+ validateSwarmPath
60
+ } from "./index-rn0eq85g.js";
61
+ import {
62
+ invalidateCachedArtifact,
63
+ readCachedParsedFile
64
+ } from "./index-ed5ykebp.js";
62
65
  import {
63
66
  assertProjectRoot,
64
67
  tryAcquireLock,
@@ -67,24 +70,21 @@ import {
67
70
  import {
68
71
  emit
69
72
  } from "./index-s2rcz51a.js";
73
+ import {
74
+ ZodError,
75
+ init_zod
76
+ } from "./index-bpmtbmy9.js";
70
77
  import {
71
78
  bunHash,
72
79
  bunWrite,
73
80
  mergeEnvForChild
74
81
  } from "./index-4nt52yr9.js";
75
- import {
76
- PlanSchema
77
- } from "./index-sdqtecsd.js";
78
82
  import {
79
83
  criticalWarn,
80
84
  error,
81
85
  init_logger,
82
86
  warn
83
87
  } from "./index-zgwm4ryv.js";
84
- import {
85
- ZodError,
86
- init_zod
87
- } from "./index-bpmtbmy9.js";
88
88
  import {
89
89
  __esm,
90
90
  __export,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  simpleGlobToRegex
4
- } from "./index-ee3x66a5.js";
4
+ } from "./index-z6xqpmqg.js";
5
5
  import {
6
6
  bunSpawnSync
7
7
  } from "./index-4nt52yr9.js";
@@ -9,7 +9,7 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-j02ez59y.js";
12
+ } from "./index-srd87kxc.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
15
  } from "./index-w7x7qxz2.js";
@@ -2,18 +2,18 @@
2
2
  import {
3
3
  readKnowledge,
4
4
  transactKnowledge
5
- } from "./index-j02ez59y.js";
5
+ } from "./index-srd87kxc.js";
6
6
  import {
7
7
  resolveKnowledgeStoreDir
8
8
  } from "./index-w7x7qxz2.js";
9
- import {
10
- init_logger,
11
- log
12
- } from "./index-zgwm4ryv.js";
13
9
  import {
14
10
  init_knowledge_types,
15
11
  isActiveStatus
16
12
  } from "./index-bk5tah7q.js";
13
+ import {
14
+ init_logger,
15
+ log
16
+ } from "./index-zgwm4ryv.js";
17
17
  import {
18
18
  __require,
19
19
  __toESM
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  _internals,
4
4
  resolveWorktreeIsolationConfig
5
- } from "./index-ktazgjqw.js";
5
+ } from "./index-254xf5y6.js";
6
6
  import {
7
7
  ApprovalEvidenceSchema,
8
8
  BaseEvidenceSchema,
@@ -42,9 +42,7 @@ import {
42
42
  loadPluginConfig,
43
43
  loadPluginConfigWithMeta,
44
44
  loadPluginConfigWithMetaAsync
45
- } from "./index-sdqtecsd.js";
46
- import"./index-4rhhvd1a.js";
47
- import"./index-zgwm4ryv.js";
45
+ } from "./index-zgq25ze6.js";
48
46
  import {
49
47
  AUTO_REVIEW_V8_BURN_IN_DECISION,
50
48
  AgentOverrideConfigSchema,
@@ -66,7 +64,8 @@ import {
66
64
  TurboConfigSchema,
67
65
  WorktreeIsolationConfigSchema,
68
66
  resolveAutoReviewConfig
69
- } from "./index-we279je2.js";
67
+ } from "./index-mpw32szm.js";
68
+ import"./index-4rhhvd1a.js";
70
69
  import {
71
70
  ALL_AGENT_NAMES,
72
71
  ALL_SUBAGENT_NAMES,
@@ -80,6 +79,7 @@ import {
80
79
  import"./index-zjygnfay.js";
81
80
  import"./index-bk5tah7q.js";
82
81
  import"./index-bpmtbmy9.js";
82
+ import"./index-zgwm4ryv.js";
83
83
  import"./index-a76rekgs.js";
84
84
  export {
85
85
  validateSpecContent,
@@ -1,17 +1,17 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-k46me75h.js";
4
+ } from "./index-rn0eq85g.js";
5
5
  import {
6
6
  withEvidenceLock
7
7
  } from "./index-k31en0ja.js";
8
- import {
9
- log
10
- } from "./index-zgwm4ryv.js";
11
8
  import {
12
9
  exports_external,
13
10
  init_zod
14
11
  } from "./index-bpmtbmy9.js";
12
+ import {
13
+ log
14
+ } from "./index-zgwm4ryv.js";
15
15
 
16
16
  // src/background/pr-subscriptions.ts
17
17
  init_zod();
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-k46me75h.js";
4
+ } from "./index-rn0eq85g.js";
5
5
 
6
6
  // src/hooks/delegation-gate/worktree-provisioning-owner.ts
7
7
  import { createHash, randomBytes } from "crypto";
@@ -21,7 +21,7 @@ var package_default;
21
21
  var init_package = __esm(() => {
22
22
  package_default = {
23
23
  name: "opencode-swarm",
24
- version: "7.142.1",
24
+ version: "7.143.1",
25
25
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
26
26
  main: "dist/index.js",
27
27
  types: "dist/index.d.ts",
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  redactPath,
4
4
  redactShellCommand
5
- } from "./index-rthq1a6w.js";
5
+ } from "./index-7317fvce.js";
6
6
 
7
7
  // src/services/guardrail-log-service.ts
8
8
  import * as fs from "fs/promises";
@@ -1,18 +1,18 @@
1
1
  // @bun
2
- import {
3
- bunSpawn
4
- } from "./index-4nt52yr9.js";
5
2
  import {
6
3
  advisoryWarn,
7
4
  init_warning_buffer
8
5
  } from "./index-4rhhvd1a.js";
9
- import {
10
- log
11
- } from "./index-zgwm4ryv.js";
12
6
  import {
13
7
  SWARM_WORKTREE_DIR_NAME,
14
8
  init_constants
15
9
  } from "./index-jqsfsqbx.js";
10
+ import {
11
+ bunSpawn
12
+ } from "./index-4nt52yr9.js";
13
+ import {
14
+ log
15
+ } from "./index-zgwm4ryv.js";
16
16
  import {
17
17
  __require
18
18
  } from "./index-a76rekgs.js";
@@ -86,7 +86,7 @@ var _internals = {
86
86
  symlinkSync: fs.symlinkSync
87
87
  },
88
88
  writeScopeToDisk: async (directory, taskId, files) => {
89
- const { writeScopeToDisk: realWrite } = await import("./scope-persistence-dbfgs7gh.js");
89
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-1fc2ncsk.js");
90
90
  return realWrite(directory, taskId, files);
91
91
  },
92
92
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -1,4 +1,10 @@
1
1
  // @bun
2
+ import {
3
+ ExecutionProfileSchema,
4
+ PlanSchema,
5
+ TaskStatusSchema,
6
+ init_loader
7
+ } from "./index-zgq25ze6.js";
2
8
  import {
3
9
  assertProjectRoot,
4
10
  withEvidenceLock
@@ -6,12 +12,6 @@ import {
6
12
  import {
7
13
  emit
8
14
  } from "./index-s2rcz51a.js";
9
- import {
10
- ExecutionProfileSchema,
11
- PlanSchema,
12
- TaskStatusSchema,
13
- init_loader
14
- } from "./index-sdqtecsd.js";
15
15
  import {
16
16
  criticalWarn,
17
17
  init_logger,