opencode-swarm 7.143.1 → 7.143.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 (42) hide show
  1. package/dist/cli/{config-doctor-ajq3sts3.js → config-doctor-xadt4kv5.js} +2 -2
  2. package/dist/cli/{core-0jn7sk7t.js → core-vpefadja.js} +1 -1
  3. package/dist/cli/{curator-llm-factory-2mz7fgd1.js → curator-llm-factory-xjw5j2jj.js} +17 -17
  4. package/dist/cli/{curator-ff53rwz5.js → curator-wahbxxw9.js} +17 -17
  5. package/dist/cli/{evidence-summary-service-08zcq836.js → evidence-summary-service-m0jes2yb.js} +6 -6
  6. package/dist/cli/{gate-evidence-2r7n4qjv.js → gate-evidence-sf9hbhm0.js} +2 -2
  7. package/dist/cli/{guardrail-explain-cm5je07b.js → guardrail-explain-9vdjkz5x.js} +18 -18
  8. package/dist/cli/{guardrail-log-jf4430p5.js → guardrail-log-xr0cv07v.js} +3 -3
  9. package/dist/cli/{hive-promoter-738bf1fj.js → hive-promoter-ften3m3h.js} +17 -17
  10. package/dist/cli/{index-crt7xw29.js → index-2pxq133w.js} +1 -1
  11. package/dist/cli/{index-3fg8kx7n.js → index-4g1bnzma.js} +2 -2
  12. package/dist/cli/{index-q7jv0c8e.js → index-6f80e8r5.js} +59 -47
  13. package/dist/cli/{index-91dz0zct.js → index-6hwedxn7.js} +3 -3
  14. package/dist/cli/{index-mpw32szm.js → index-6q3wx600.js} +1 -1
  15. package/dist/cli/{index-0kqs2fbm.js → index-700yppfy.js} +1 -1
  16. package/dist/cli/{index-x10a9cz6.js → index-7e91cs99.js} +5 -5
  17. package/dist/cli/{index-7317fvce.js → index-8hxbjgyk.js} +1 -1
  18. package/dist/cli/{index-srd87kxc.js → index-fq0b44vq.js} +4 -4
  19. package/dist/cli/{index-wnj1d1es.js → index-h5fmwg5b.js} +19 -19
  20. package/dist/cli/{index-qmfzfh7m.js → index-je3jmcc1.js} +3 -3
  21. package/dist/cli/{index-awzwmx8p.js → index-jvbqryky.js} +3 -3
  22. package/dist/cli/{index-cz9tc0h8.js → index-kc9tfc7e.js} +3 -3
  23. package/dist/cli/{index-q68a8h37.js → index-kjgma6hg.js} +1 -1
  24. package/dist/cli/{index-n48cwf1a.js → index-nvt1152n.js} +50 -15
  25. package/dist/cli/{index-zgq25ze6.js → index-qswsp6s3.js} +1 -1
  26. package/dist/cli/{index-n2jk8ajv.js → index-r0j1sh38.js} +1 -1
  27. package/dist/cli/{index-254xf5y6.js → index-x0ja3n3g.js} +2 -2
  28. package/dist/cli/{index-a5rky7fv.js → index-xacfcpyn.js} +2 -2
  29. package/dist/cli/{index-zky3vt90.js → index-yr997mhn.js} +1 -1
  30. package/dist/cli/{index-cfwdm1dx.js → index-yw4atzww.js} +1 -1
  31. package/dist/cli/index.js +17 -17
  32. package/dist/cli/{knowledge-escalator-9mdajq4s.js → knowledge-escalator-9xesv2xx.js} +6 -6
  33. package/dist/cli/{knowledge-events-pz58s2r1.js → knowledge-events-s8nvbdyk.js} +4 -4
  34. package/dist/cli/{knowledge-store-sz8vat89.js → knowledge-store-2zt0b10b.js} +1 -1
  35. package/dist/cli/{knowledge-validator-w5vmvf0a.js → knowledge-validator-nt955tw0.js} +2 -2
  36. package/dist/cli/{scan-cursor-p54xsx41.js → scan-cursor-emrg35t0.js} +2 -2
  37. package/dist/cli/{schema-p74hnrfz.js → schema-tpbz8f0x.js} +1 -1
  38. package/dist/cli/{scope-persistence-1fc2ncsk.js → scope-persistence-1hf839ys.js} +4 -4
  39. package/dist/cli/{skill-generator-yv46bt1a.js → skill-generator-fja22m4q.js} +7 -7
  40. package/dist/cli/{worktree-isolation-qfgc3vma.js → worktree-isolation-gnqvy10j.js} +17 -17
  41. package/dist/index.js +6 -6
  42. package/package.json +1 -1
@@ -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-1fc2ncsk.js");
89
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-1hf839ys.js");
90
90
  return realWrite(directory, taskId, files);
91
91
  },
92
92
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -274,8 +274,12 @@ async function provisionWorktree(directory, id, sessionId, options) {
274
274
  }
275
275
  };
276
276
  const expectedPath = normalizeGitPath(worktreePath);
277
- const entries = [];
278
- let current = { path: "", branch: undefined };
277
+ let entries = [];
278
+ let current = {
279
+ path: "",
280
+ branch: undefined,
281
+ prunable: false
282
+ };
279
283
  if (listResult.exitCode !== 0) {
280
284
  const raw = listResult.stderr.trim() || listResult.stdout.trim();
281
285
  const bounded = raw.length > 500 ? `${raw.slice(0, 500)}... (truncated)` : raw;
@@ -283,22 +287,53 @@ async function provisionWorktree(directory, id, sessionId, options) {
283
287
  error: `worktree enumeration failed: ${bounded}`
284
288
  };
285
289
  }
286
- for (const rawLine of listResult.stdout.split(`
290
+ const parsePorcelain = (stdout) => {
291
+ const parsed = [];
292
+ let cur = {
293
+ path: "",
294
+ branch: undefined,
295
+ prunable: false
296
+ };
297
+ for (const rawLine of stdout.split(`
287
298
  `)) {
288
- const line = rawLine.trim();
289
- if (line.startsWith("worktree ")) {
290
- if (current.path)
291
- entries.push(current);
292
- current = {
293
- path: normalizeGitPath(line.slice("worktree ".length)),
294
- branch: undefined
299
+ const line = rawLine.trim();
300
+ if (line.startsWith("worktree ")) {
301
+ if (cur.path)
302
+ parsed.push(cur);
303
+ cur = {
304
+ path: normalizeGitPath(line.slice("worktree ".length)),
305
+ branch: undefined,
306
+ prunable: false
307
+ };
308
+ } else if (line.startsWith("branch ")) {
309
+ cur.branch = line.slice("branch ".length);
310
+ } else if (line === "prunable" || line.startsWith("prunable ")) {
311
+ cur.prunable = true;
312
+ }
313
+ }
314
+ if (cur.path)
315
+ parsed.push(cur);
316
+ return parsed;
317
+ };
318
+ entries = parsePorcelain(listResult.stdout);
319
+ const hasPrunableCollision = entries.some((e) => e.prunable && (e.path === expectedPath || e.branch === `refs/heads/${branchName}`));
320
+ if (hasPrunableCollision) {
321
+ const pruneResult = await runGit(["worktree", "prune"], directory);
322
+ if (pruneResult.exitCode !== 0) {
323
+ return {
324
+ error: `Failed to prune stale worktree registration: ${pruneResult.stderr.trim() || pruneResult.stdout.trim()}`
325
+ };
326
+ }
327
+ const relistResult = await runGit(["worktree", "list", "--porcelain"], directory);
328
+ if (relistResult.exitCode !== 0) {
329
+ const raw = relistResult.stderr.trim() || relistResult.stdout.trim();
330
+ const bounded = raw.length > 500 ? `${raw.slice(0, 500)}... (truncated)` : raw;
331
+ return {
332
+ error: `worktree enumeration failed after prune: ${bounded}`
295
333
  };
296
- } else if (line.startsWith("branch ")) {
297
- current.branch = line.slice("branch ".length);
298
334
  }
335
+ entries = parsePorcelain(relistResult.stdout);
299
336
  }
300
- if (current.path)
301
- entries.push(current);
302
337
  const expectedPathIsRegistered = entries.some((e) => e.path === expectedPath);
303
338
  const branchIsActiveAtExpectedPath = entries.some((e) => e.branch === `refs/heads/${branchName}` && e.path === expectedPath);
304
339
  const branchIsActiveElsewhere = entries.some((e) => e.branch === `refs/heads/${branchName}` && e.path !== expectedPath);
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  resolveExternalSkillsConfig
9
- } from "./index-mpw32szm.js";
9
+ } from "./index-6q3wx600.js";
10
10
  import {
11
11
  advisoryWarn,
12
12
  init_warning_buffer
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  redactPath,
4
4
  redactShellCommand
5
- } from "./index-7317fvce.js";
5
+ } from "./index-8hxbjgyk.js";
6
6
 
7
7
  // src/services/guardrail-log-service.ts
8
8
  import * as fs from "fs/promises";
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  init_loader,
4
4
  loadPluginConfigWithMeta
5
- } from "./index-zgq25ze6.js";
5
+ } from "./index-qswsp6s3.js";
6
6
  import {
7
7
  init_schema
8
- } from "./index-mpw32szm.js";
8
+ } from "./index-6q3wx600.js";
9
9
  import {
10
10
  DEFAULT_WORKTREE_ISOLATION_CONFIG,
11
11
  init_constants
@@ -12,14 +12,14 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-q7jv0c8e.js";
15
+ } from "./index-6f80e8r5.js";
16
16
  import {
17
17
  checkFileAuthority,
18
18
  classifyFile,
19
19
  isInDeclaredScope,
20
20
  redactPath,
21
21
  redactShellCommand
22
- } from "./index-7317fvce.js";
22
+ } from "./index-8hxbjgyk.js";
23
23
 
24
24
  // src/services/guardrail-explain-service.ts
25
25
  import path from "path";
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  stripKnownSwarmPrefix
9
- } from "./index-mpw32szm.js";
9
+ } from "./index-6q3wx600.js";
10
10
  import {
11
11
  ALL_AGENT_NAMES,
12
12
  init_constants
@@ -9,7 +9,7 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-srd87kxc.js";
12
+ } from "./index-fq0b44vq.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
15
  } from "./index-w7x7qxz2.js";
package/dist/cli/index.js CHANGED
@@ -7,44 +7,44 @@ import {
7
7
  getPluginConfigDir,
8
8
  getPluginLockFilePaths,
9
9
  resolveCommand
10
- } from "./index-q7jv0c8e.js";
11
- import"./index-7317fvce.js";
12
- import"./index-zky3vt90.js";
13
- import"./index-awzwmx8p.js";
10
+ } from "./index-6f80e8r5.js";
11
+ import"./index-8hxbjgyk.js";
12
+ import"./index-yr997mhn.js";
13
+ import"./index-jvbqryky.js";
14
14
  import"./index-134d35c1.js";
15
15
  import"./index-b6e016tv.js";
16
16
  import"./index-4q9vfav6.js";
17
17
  import"./index-k92cagmt.js";
18
18
  import"./index-y8552snf.js";
19
- import"./index-crt7xw29.js";
19
+ import"./index-2pxq133w.js";
20
20
  import"./index-xmzmeknp.js";
21
21
  import"./index-c8s9a3zh.js";
22
22
  import"./index-9ss2m4rs.js";
23
- import"./index-0kqs2fbm.js";
23
+ import"./index-700yppfy.js";
24
24
  import"./index-74hpm6sh.js";
25
- import"./index-91dz0zct.js";
26
- import"./index-x10a9cz6.js";
27
- import"./index-3fg8kx7n.js";
28
- import"./index-q68a8h37.js";
25
+ import"./index-6hwedxn7.js";
26
+ import"./index-7e91cs99.js";
27
+ import"./index-4g1bnzma.js";
28
+ import"./index-kjgma6hg.js";
29
29
  import"./index-556ja8an.js";
30
30
  import"./index-gdd4jt6b.js";
31
31
  import"./index-zsrtt42s.js";
32
32
  import"./index-k3cxyk66.js";
33
33
  import"./index-8aabbfhv.js";
34
- import"./index-n48cwf1a.js";
34
+ import"./index-nvt1152n.js";
35
35
  import"./index-8fwhhayc.js";
36
36
  import"./index-q1exe2b3.js";
37
37
  import"./index-7sy3aa9m.js";
38
38
  import"./index-4905hd2m.js";
39
- import"./index-qmfzfh7m.js";
40
- import"./index-254xf5y6.js";
39
+ import"./index-je3jmcc1.js";
40
+ import"./index-x0ja3n3g.js";
41
41
  import"./index-gprxjmm7.js";
42
42
  import"./index-n832052r.js";
43
- import"./index-zgq25ze6.js";
43
+ import"./index-qswsp6s3.js";
44
44
  import {
45
45
  init_package,
46
46
  package_default
47
- } from "./index-mpw32szm.js";
47
+ } from "./index-6q3wx600.js";
48
48
  import"./index-rn0eq85g.js";
49
49
  import"./index-4rhhvd1a.js";
50
50
  import {
@@ -53,10 +53,10 @@ import {
53
53
  } from "./index-jqsfsqbx.js";
54
54
  import"./index-z6xqpmqg.js";
55
55
  import"./index-zjygnfay.js";
56
- import"./index-cfwdm1dx.js";
56
+ import"./index-yw4atzww.js";
57
57
  import"./index-tq5s07ta.js";
58
58
  import"./index-rtry5xyf.js";
59
- import"./index-srd87kxc.js";
59
+ import"./index-fq0b44vq.js";
60
60
  import"./index-ae75rja9.js";
61
61
  import"./index-w7x7qxz2.js";
62
62
  import"./index-erfnw81g.js";
@@ -9,19 +9,19 @@ import {
9
9
  maybeEscalateOnViolation,
10
10
  maybeQuarantineOnContradiction,
11
11
  readRecentEscalations
12
- } from "./index-x10a9cz6.js";
13
- import"./index-qmfzfh7m.js";
14
- import"./index-254xf5y6.js";
12
+ } from "./index-7e91cs99.js";
13
+ import"./index-je3jmcc1.js";
14
+ import"./index-x0ja3n3g.js";
15
15
  import"./index-gprxjmm7.js";
16
16
  import"./index-n832052r.js";
17
- import"./index-zgq25ze6.js";
18
- import"./index-mpw32szm.js";
17
+ import"./index-qswsp6s3.js";
18
+ import"./index-6q3wx600.js";
19
19
  import"./index-rn0eq85g.js";
20
20
  import"./index-4rhhvd1a.js";
21
21
  import"./index-jqsfsqbx.js";
22
22
  import"./index-z6xqpmqg.js";
23
23
  import"./index-zjygnfay.js";
24
- import"./index-srd87kxc.js";
24
+ import"./index-fq0b44vq.js";
25
25
  import"./index-ae75rja9.js";
26
26
  import"./index-w7x7qxz2.js";
27
27
  import"./index-erfnw81g.js";
@@ -29,12 +29,12 @@ import {
29
29
  resolveKnowledgeCounterBaselinePath,
30
30
  resolveKnowledgeEventsPath,
31
31
  resolveLegacyApplicationLogPath
32
- } from "./index-qmfzfh7m.js";
33
- import"./index-254xf5y6.js";
32
+ } from "./index-je3jmcc1.js";
33
+ import"./index-x0ja3n3g.js";
34
34
  import"./index-gprxjmm7.js";
35
35
  import"./index-n832052r.js";
36
- import"./index-zgq25ze6.js";
37
- import"./index-mpw32szm.js";
36
+ import"./index-qswsp6s3.js";
37
+ import"./index-6q3wx600.js";
38
38
  import"./index-rn0eq85g.js";
39
39
  import"./index-4rhhvd1a.js";
40
40
  import"./index-jqsfsqbx.js";
@@ -41,7 +41,7 @@ import {
41
41
  transactKnowledge,
42
42
  transactKnowledgeWithCas,
43
43
  wordBigrams
44
- } from "./index-srd87kxc.js";
44
+ } from "./index-fq0b44vq.js";
45
45
  import {
46
46
  resolveHiveDataDir
47
47
  } from "./index-ae75rja9.js";
@@ -23,10 +23,10 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-cfwdm1dx.js";
26
+ } from "./index-yw4atzww.js";
27
27
  import"./index-tq5s07ta.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-srd87kxc.js";
29
+ import"./index-fq0b44vq.js";
30
30
  import"./index-ae75rja9.js";
31
31
  import"./index-w7x7qxz2.js";
32
32
  import"./index-erfnw81g.js";
@@ -4,8 +4,8 @@ import {
4
4
  alreadyCuratedThisGeneration,
5
5
  claimNextScanBatch,
6
6
  getScanStatus
7
- } from "./index-crt7xw29.js";
8
- import"./index-srd87kxc.js";
7
+ } from "./index-2pxq133w.js";
8
+ import"./index-fq0b44vq.js";
9
9
  import"./index-ae75rja9.js";
10
10
  import"./index-w7x7qxz2.js";
11
11
  import"./index-erfnw81g.js";
@@ -96,7 +96,7 @@ import {
96
96
  resolveGeneratedAgentRole,
97
97
  resolveGuardrailsConfig,
98
98
  stripKnownSwarmPrefix
99
- } from "./index-mpw32szm.js";
99
+ } from "./index-6q3wx600.js";
100
100
  import"./index-jqsfsqbx.js";
101
101
  import"./index-zjygnfay.js";
102
102
  import"./index-bk5tah7q.js";
@@ -23,11 +23,11 @@ import {
23
23
  tombstoneScopeBinding,
24
24
  writeScopeBindingToDisk,
25
25
  writeScopeToDisk
26
- } from "./index-3fg8kx7n.js";
27
- import"./index-q68a8h37.js";
26
+ } from "./index-4g1bnzma.js";
27
+ import"./index-kjgma6hg.js";
28
28
  import"./index-556ja8an.js";
29
- import"./index-zgq25ze6.js";
30
- import"./index-mpw32szm.js";
29
+ import"./index-qswsp6s3.js";
30
+ import"./index-6q3wx600.js";
31
31
  import"./index-4rhhvd1a.js";
32
32
  import"./index-jqsfsqbx.js";
33
33
  import"./index-zjygnfay.js";
@@ -33,22 +33,22 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-91dz0zct.js";
37
- import"./index-qmfzfh7m.js";
38
- import"./index-254xf5y6.js";
36
+ } from "./index-6hwedxn7.js";
37
+ import"./index-je3jmcc1.js";
38
+ import"./index-x0ja3n3g.js";
39
39
  import"./index-gprxjmm7.js";
40
40
  import"./index-n832052r.js";
41
- import"./index-zgq25ze6.js";
42
- import"./index-mpw32szm.js";
41
+ import"./index-qswsp6s3.js";
42
+ import"./index-6q3wx600.js";
43
43
  import"./index-rn0eq85g.js";
44
44
  import"./index-4rhhvd1a.js";
45
45
  import"./index-jqsfsqbx.js";
46
46
  import"./index-z6xqpmqg.js";
47
47
  import"./index-zjygnfay.js";
48
- import"./index-cfwdm1dx.js";
48
+ import"./index-yw4atzww.js";
49
49
  import"./index-tq5s07ta.js";
50
50
  import"./index-rtry5xyf.js";
51
- import"./index-srd87kxc.js";
51
+ import"./index-fq0b44vq.js";
52
52
  import"./index-ae75rja9.js";
53
53
  import"./index-w7x7qxz2.js";
54
54
  import"./index-erfnw81g.js";
@@ -20,52 +20,52 @@ import {
20
20
  sanitizeWorktreeTaskId,
21
21
  standardWorktreeByCallID,
22
22
  standardWorktreeSerializationSessions
23
- } from "./index-q7jv0c8e.js";
24
- import"./index-7317fvce.js";
25
- import"./index-zky3vt90.js";
26
- import"./index-awzwmx8p.js";
23
+ } from "./index-6f80e8r5.js";
24
+ import"./index-8hxbjgyk.js";
25
+ import"./index-yr997mhn.js";
26
+ import"./index-jvbqryky.js";
27
27
  import"./index-134d35c1.js";
28
28
  import"./index-b6e016tv.js";
29
29
  import"./index-4q9vfav6.js";
30
30
  import"./index-k92cagmt.js";
31
31
  import"./index-y8552snf.js";
32
- import"./index-crt7xw29.js";
32
+ import"./index-2pxq133w.js";
33
33
  import"./index-xmzmeknp.js";
34
34
  import"./index-c8s9a3zh.js";
35
35
  import"./index-9ss2m4rs.js";
36
- import"./index-0kqs2fbm.js";
36
+ import"./index-700yppfy.js";
37
37
  import"./index-74hpm6sh.js";
38
- import"./index-91dz0zct.js";
39
- import"./index-x10a9cz6.js";
40
- import"./index-3fg8kx7n.js";
41
- import"./index-q68a8h37.js";
38
+ import"./index-6hwedxn7.js";
39
+ import"./index-7e91cs99.js";
40
+ import"./index-4g1bnzma.js";
41
+ import"./index-kjgma6hg.js";
42
42
  import"./index-556ja8an.js";
43
43
  import"./index-gdd4jt6b.js";
44
44
  import"./index-zsrtt42s.js";
45
45
  import"./index-k3cxyk66.js";
46
46
  import"./index-8aabbfhv.js";
47
- import"./index-n48cwf1a.js";
47
+ import"./index-nvt1152n.js";
48
48
  import"./index-8fwhhayc.js";
49
49
  import"./index-q1exe2b3.js";
50
50
  import"./index-7sy3aa9m.js";
51
51
  import"./index-4905hd2m.js";
52
- import"./index-qmfzfh7m.js";
52
+ import"./index-je3jmcc1.js";
53
53
  import {
54
54
  resolveWorktreeIsolationConfig
55
- } from "./index-254xf5y6.js";
55
+ } from "./index-x0ja3n3g.js";
56
56
  import"./index-gprxjmm7.js";
57
57
  import"./index-n832052r.js";
58
- import"./index-zgq25ze6.js";
59
- import"./index-mpw32szm.js";
58
+ import"./index-qswsp6s3.js";
59
+ import"./index-6q3wx600.js";
60
60
  import"./index-rn0eq85g.js";
61
61
  import"./index-4rhhvd1a.js";
62
62
  import"./index-jqsfsqbx.js";
63
63
  import"./index-z6xqpmqg.js";
64
64
  import"./index-zjygnfay.js";
65
- import"./index-cfwdm1dx.js";
65
+ import"./index-yw4atzww.js";
66
66
  import"./index-tq5s07ta.js";
67
67
  import"./index-rtry5xyf.js";
68
- import"./index-srd87kxc.js";
68
+ import"./index-fq0b44vq.js";
69
69
  import"./index-ae75rja9.js";
70
70
  import"./index-w7x7qxz2.js";
71
71
  import"./index-erfnw81g.js";