opencode-swarm 7.144.4 → 7.144.6
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.
- package/.opencode/skills/swarm-pr-review/references/prompt-templates.md +2 -2
- package/dist/background/workspace-snapshot.d.ts +7 -0
- package/dist/cli/{capability-probe-f1paszww.js → capability-probe-976tt4ba.js} +6 -2
- package/dist/cli/{config-doctor-rw9zrjk6.js → config-doctor-4chz0b95.js} +2 -2
- package/dist/cli/{core-zjx9aqaf.js → core-p04nvknr.js} +4 -3
- package/dist/cli/{curation-policy-0wbrh11c.js → curation-policy-a511r0qz.js} +4 -4
- package/dist/cli/{curator-drift-2jbjv03a.js → curator-drift-ckjm272w.js} +2 -2
- package/dist/cli/curator-llm-factory-vc1mrc3r.js +63 -0
- package/dist/cli/{curator-g54a7wv0.js → curator-sxeh36gw.js} +33 -32
- package/dist/cli/{dispatch-1y1rnv1h.js → dispatch-ndxbsk98.js} +2 -2
- package/dist/cli/{evidence-summary-service-fnr5y54e.js → evidence-summary-service-spyxcgsx.js} +13 -12
- package/dist/cli/{gate-evidence-2xt1x07r.js → gate-evidence-nz0bwa15.js} +7 -6
- package/dist/cli/guardrail-explain-ass47kn8.js +64 -0
- package/dist/cli/{guardrail-log-5w4b9zrw.js → guardrail-log-fyzd55fp.js} +4 -4
- package/dist/cli/{hive-promoter-x63ehffd.js → hive-promoter-k8gtah3n.js} +33 -32
- package/dist/cli/{index-h98t1m88.js → index-01nhedm7.js} +29 -1
- package/dist/cli/{index-q4ed1jk7.js → index-42ezdzam.js} +1994 -1333
- package/dist/cli/{index-y8j8ehc8.js → index-68mqwvf5.js} +11 -5
- package/dist/cli/{index-1csyxv0f.js → index-6z5jtf7d.js} +2 -2
- package/dist/cli/{index-2m7mavaz.js → index-7zehmnv1.js} +2 -2
- package/dist/cli/index-9e6fdz2h.js +282 -0
- package/dist/cli/{index-mazgg5s2.js → index-9s8drsf9.js} +1 -1
- package/dist/cli/{index-b6e016tv.js → index-abtrcs16.js} +1 -1
- package/dist/cli/{index-8fwhhayc.js → index-b44qqqt2.js} +27 -18
- package/dist/cli/{index-yts89pqg.js → index-bac12jpv.js} +4 -4
- package/dist/cli/{index-psvxq93b.js → index-ckq719fr.js} +2 -2
- package/dist/cli/{index-k3cxyk66.js → index-cwtpqm5f.js} +1 -1
- package/dist/cli/{index-d12jd5mn.js → index-dj8cah6s.js} +1 -1
- package/dist/cli/{index-pw83zgny.js → index-dvybg11w.js} +3 -3
- package/dist/cli/{index-03pv47h2.js → index-ec1kywxg.js} +6 -6
- package/dist/cli/{index-74hpm6sh.js → index-f36ybbsv.js} +12 -6
- package/dist/cli/{index-az8etqpp.js → index-fgdhf6a5.js} +298 -1179
- package/dist/cli/{index-rn0eq85g.js → index-fv0s19g9.js} +1 -1
- package/dist/cli/{index-ywn7vtxp.js → index-h1p08s3n.js} +1 -1
- package/dist/cli/{index-nckg4gxb.js → index-h5krb653.js} +15 -4
- package/dist/cli/{index-bt9aa01f.js → index-hkdgkkhb.js} +1 -1
- package/dist/cli/{index-p7cm3gtj.js → index-jqvsh0g3.js} +35 -34
- package/dist/cli/{index-x6tp0hfr.js → index-n06653nr.js} +5 -5
- package/dist/cli/{index-jabkn643.js → index-n4hwcsbd.js} +2 -2
- package/dist/cli/{index-z6v7kwpa.js → index-q6bhmyxb.js} +1 -1
- package/dist/cli/{index-cz25e8xp.js → index-sqe3nqh5.js} +166 -34
- package/dist/cli/{index-q67jb94n.js → index-sswzhcqb.js} +1 -1
- package/dist/cli/{index-8j0va7jp.js → index-tq89td7b.js} +43 -22
- package/dist/cli/{index-dty5qgk2.js → index-vdha477y.js} +1 -1
- package/dist/cli/{index-zb0xcz9t.js → index-vngs0meh.js} +3 -3
- package/dist/cli/{index-fqcjragy.js → index-wknz5c8q.js} +1 -1
- package/dist/cli/{index-9qq7c18c.js → index-ytzz6pq1.js} +36 -1
- package/dist/cli/{index-4w5qdbk7.js → index-zde2mkmg.js} +6 -6
- package/dist/cli/{index-4nt52yr9.js → index-zj6t9zgx.js} +173 -25
- package/dist/cli/{index-btmsqv7p.js → index-zxr5r9b7.js} +5 -4
- package/dist/cli/index-zy7f84cs.js +1210 -0
- package/dist/cli/index.d.ts +11 -1
- package/dist/cli/index.js +61 -39
- package/dist/cli/{knowledge-escalator-ypg14d5r.js → knowledge-escalator-yaxzz0k5.js} +12 -11
- package/dist/cli/{knowledge-events-nkrym4wb.js → knowledge-events-rgcwewpn.js} +10 -9
- package/dist/cli/{knowledge-link-e4qgqmpx.js → knowledge-link-4cg4776a.js} +3 -3
- package/dist/cli/{knowledge-store-vh3nhtg2.js → knowledge-store-qf8t25sw.js} +4 -4
- package/dist/cli/{knowledge-validator-jrxvexv6.js → knowledge-validator-dx6zzcdf.js} +6 -6
- package/dist/cli/{pending-delegations-pw79c8ds.js → pending-delegations-9h1jmtw1.js} +3 -3
- package/dist/cli/{pr-subscriptions-fk628bhc.js → pr-subscriptions-8pg34pev.js} +3 -3
- package/dist/cli/{runner-b02sz2vx.js → runner-cqecp1na.js} +4 -4
- package/dist/cli/{scan-cursor-fp7w5jmc.js → scan-cursor-pbcaj8hj.js} +7 -5
- package/dist/cli/{schema-rptwqbm4.js → schema-tzcjwe8j.js} +3 -1
- package/dist/cli/{scope-persistence-0bkaxawa.js → scope-persistence-mjg4we75.js} +7 -6
- package/dist/cli/{skill-generator-nh8b4gjv.js → skill-generator-7jrzbaej.js} +14 -13
- package/dist/cli/{workspace-snapshot-w3tg4ne5.js → workspace-snapshot-d89zm6wm.js} +5 -2
- package/dist/cli/{worktree-collision-ownership-hqd9ypsz.js → worktree-collision-ownership-vy0kxa98.js} +26 -19
- package/dist/cli/{worktree-isolation-canf3rj8.js → worktree-isolation-awpkp0yh.js} +33 -32
- package/dist/cli/{worktree-provisioning-owner-g24xd417.js → worktree-provisioning-owner-zzkjycp1.js} +3 -3
- package/dist/commands/ci-simulate.d.ts +2 -0
- package/dist/config/cache-paths.d.ts +57 -0
- package/dist/config/evidence-schema.d.ts +3 -3
- package/dist/config/schema.d.ts +9 -0
- package/dist/git/branch.d.ts +2 -0
- package/dist/git/pr.d.ts +2 -0
- package/dist/hooks/delegation-gate/worktree-isolation.d.ts +7 -0
- package/dist/hooks/diff-scope.d.ts +7 -0
- package/dist/hooks/review-receipt-scope.d.ts +7 -0
- package/dist/hooks/reviewer-scope-lifecycle.d.ts +9 -0
- package/dist/hooks/semantic-diff-injection.d.ts +8 -0
- package/dist/index.js +599 -589
- package/dist/mutation/engine.d.ts +11 -0
- package/dist/review/diff-source.d.ts +2 -0
- package/dist/sandbox/capability-probe.d.ts +22 -0
- package/dist/sandbox/executor.d.ts +15 -0
- package/dist/sandbox/linux/bubblewrap-executor.d.ts +6 -0
- package/dist/sandbox/macos/sandbox-exec-executor.d.ts +41 -0
- package/dist/tools/checkpoint.d.ts +11 -0
- package/dist/tools/complexity-hotspots.d.ts +15 -0
- package/dist/tools/diff-summary.d.ts +12 -0
- package/dist/tools/dispatch-lanes.d.ts +8 -0
- package/dist/tools/gh-evidence.d.ts +17 -1
- package/dist/tools/knowledge-receipt.d.ts +1 -1
- package/dist/tools/pkg-audit.d.ts +13 -0
- package/dist/tools/prepare-pr-workflow-checkout.d.ts +1 -0
- package/dist/utils/bun-compat.d.ts +80 -3
- package/dist/utils/git-binary-missing-error.d.ts +80 -2
- package/dist/utils/git-executable.d.ts +179 -0
- package/dist/utils/gitignore-warning.d.ts +10 -0
- package/dist/workflow/coder-settlement.d.ts +18 -0
- package/dist/worktree/core.d.ts +8 -0
- package/dist/worktree/merge.d.ts +33 -0
- package/package.json +3 -2
- package/dist/cli/curator-llm-factory-xgb4pxmm.js +0 -62
- package/dist/cli/guardrail-explain-6wcgr9tz.js +0 -63
- package/dist/cli/index-q1exe2b3.js +0 -256
package/dist/cli/index.d.ts
CHANGED
|
@@ -53,10 +53,20 @@ export declare function isSafePluginConfigPath(p: string): boolean;
|
|
|
53
53
|
* Recursively delete every known opencode plugin cache location for
|
|
54
54
|
* opencode-swarm. Returns paths actually cleared and paths that errored.
|
|
55
55
|
* Skips paths that don't exist or fail the safety guard.
|
|
56
|
+
*
|
|
57
|
+
* `additionalPaths` lets a caller merge in dynamically-discovered cache
|
|
58
|
+
* locations — e.g. `discoverVersionPinnedCachePaths()` for version-pinned
|
|
59
|
+
* `opencode-swarm@<semver>` dirs (issue #2236 RC3) — without changing the
|
|
60
|
+
* fixed, pure `OPENCODE_PLUGIN_CACHE_PATHS` list every caller shares.
|
|
61
|
+
* Defaults to `[]` so existing callers (`install()`) are unaffected.
|
|
56
62
|
*/
|
|
57
|
-
export declare function evictPluginCaches(): {
|
|
63
|
+
export declare function evictPluginCaches(additionalPaths?: readonly string[]): {
|
|
58
64
|
cleared: string[];
|
|
59
65
|
failed: string[];
|
|
66
|
+
/** Version read from each cleared path's package.json BEFORE deletion,
|
|
67
|
+
* keyed by the canonical path that appears in `cleared`. `null` when the
|
|
68
|
+
* version could not be determined (missing/unreadable package.json). */
|
|
69
|
+
clearedVersions: Record<string, string | null>;
|
|
60
70
|
};
|
|
61
71
|
/**
|
|
62
72
|
* Delete every known opencode plugin lock file (bun.lock, bun.lockb,
|
package/dist/cli/index.js
CHANGED
|
@@ -3,71 +3,75 @@
|
|
|
3
3
|
import {
|
|
4
4
|
COMMAND_REGISTRY,
|
|
5
5
|
VALID_COMMANDS,
|
|
6
|
+
VERSION_PINNED_LEAF,
|
|
7
|
+
discoverVersionPinnedCachePaths,
|
|
6
8
|
getPluginCachePaths,
|
|
7
9
|
getPluginConfigDir,
|
|
8
10
|
getPluginLockFilePaths,
|
|
11
|
+
readCachePackageVersion,
|
|
9
12
|
resolveCommand,
|
|
10
13
|
safeRealpathSync
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
14
|
+
} from "./index-42ezdzam.js";
|
|
15
|
+
import"./index-dj8cah6s.js";
|
|
16
|
+
import"./index-01nhedm7.js";
|
|
17
|
+
import"./index-fgdhf6a5.js";
|
|
15
18
|
import"./index-134d35c1.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
+
import"./index-abtrcs16.js";
|
|
20
|
+
import"./index-6z5jtf7d.js";
|
|
21
|
+
import"./index-wknz5c8q.js";
|
|
19
22
|
import"./index-y8552snf.js";
|
|
20
|
-
import"./index-
|
|
23
|
+
import"./index-h5krb653.js";
|
|
21
24
|
import"./index-70ha9e09.js";
|
|
22
25
|
import"./index-c8s9a3zh.js";
|
|
23
26
|
import"./index-9ss2m4rs.js";
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
27
|
+
import"./index-f36ybbsv.js";
|
|
28
|
+
import"./index-hkdgkkhb.js";
|
|
29
|
+
import"./index-vngs0meh.js";
|
|
30
|
+
import"./index-n06653nr.js";
|
|
31
|
+
import"./index-bac12jpv.js";
|
|
32
|
+
import"./index-vdha477y.js";
|
|
30
33
|
import"./index-rtry5xyf.js";
|
|
31
34
|
import"./index-zsrtt42s.js";
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
35
|
+
import"./index-n4hwcsbd.js";
|
|
36
|
+
import"./index-cwtpqm5f.js";
|
|
37
|
+
import"./index-sqe3nqh5.js";
|
|
38
|
+
import"./index-tq89td7b.js";
|
|
39
|
+
import"./index-dvybg11w.js";
|
|
40
|
+
import"./index-q6bhmyxb.js";
|
|
38
41
|
import"./index-556ja8an.js";
|
|
39
42
|
import"./index-7sy3aa9m.js";
|
|
40
43
|
import"./index-wx8zdh4a.js";
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
44
|
+
import"./index-b44qqqt2.js";
|
|
45
|
+
import"./index-zy7f84cs.js";
|
|
46
|
+
import"./index-ec1kywxg.js";
|
|
47
|
+
import"./index-zde2mkmg.js";
|
|
48
|
+
import"./index-ckq719fr.js";
|
|
46
49
|
import"./index-gprxjmm7.js";
|
|
47
50
|
import"./index-n832052r.js";
|
|
48
|
-
import"./index-
|
|
51
|
+
import"./index-fv0s19g9.js";
|
|
49
52
|
import"./index-z6xqpmqg.js";
|
|
50
|
-
import"./index-
|
|
53
|
+
import"./index-ytzz6pq1.js";
|
|
51
54
|
import {
|
|
52
55
|
init_package,
|
|
53
56
|
package_default
|
|
54
|
-
} from "./index-
|
|
55
|
-
import"./index-4rhhvd1a.js";
|
|
57
|
+
} from "./index-68mqwvf5.js";
|
|
56
58
|
import {
|
|
57
59
|
DEFAULT_AGENT_CONFIGS,
|
|
58
60
|
init_constants
|
|
59
61
|
} from "./index-v3y3qg48.js";
|
|
62
|
+
import"./index-9e6fdz2h.js";
|
|
63
|
+
import"./index-4rhhvd1a.js";
|
|
60
64
|
import"./index-zjygnfay.js";
|
|
61
65
|
import"./index-ae75rja9.js";
|
|
62
|
-
import"./index-
|
|
63
|
-
import"./index-
|
|
66
|
+
import"./index-h1p08s3n.js";
|
|
67
|
+
import"./index-9s8drsf9.js";
|
|
64
68
|
import"./index-ed5ykebp.js";
|
|
65
69
|
import"./index-bk5tah7q.js";
|
|
66
70
|
import"./index-f9vvg5xb.js";
|
|
67
71
|
import"./index-1jsmmx7y.js";
|
|
68
72
|
import"./index-7g4c7s5r.js";
|
|
69
73
|
import"./index-bpmtbmy9.js";
|
|
70
|
-
import"./index-
|
|
74
|
+
import"./index-zj6t9zgx.js";
|
|
71
75
|
import"./index-zgwm4ryv.js";
|
|
72
76
|
import"./index-a76rekgs.js";
|
|
73
77
|
|
|
@@ -100,7 +104,7 @@ function isSafeCachePath(p) {
|
|
|
100
104
|
return false;
|
|
101
105
|
}
|
|
102
106
|
const leaf = path.basename(resolved);
|
|
103
|
-
if (leaf !== "opencode-swarm@latest" && leaf !== "opencode-swarm") {
|
|
107
|
+
if (leaf !== "opencode-swarm@latest" && leaf !== "opencode-swarm" && !VERSION_PINNED_LEAF.test(leaf)) {
|
|
104
108
|
return false;
|
|
105
109
|
}
|
|
106
110
|
const parent = path.basename(path.dirname(resolved));
|
|
@@ -298,11 +302,15 @@ Next steps:`);
|
|
|
298
302
|
async function update() {
|
|
299
303
|
console.log(`\uD83D\uDC1D Refreshing OpenCode Swarm plugin cache...
|
|
300
304
|
`);
|
|
301
|
-
|
|
305
|
+
console.log(`opencode-swarm ${version}`);
|
|
306
|
+
const discoveredCachePaths = discoverVersionPinnedCachePaths();
|
|
307
|
+
const result = evictPluginCaches(discoveredCachePaths);
|
|
302
308
|
const lockResult = evictLockFiles();
|
|
303
309
|
if (result.cleared.length > 0) {
|
|
304
310
|
for (const cleared of result.cleared) {
|
|
305
|
-
|
|
311
|
+
const beforeVersion = result.clearedVersions[cleared];
|
|
312
|
+
const versionSuffix = beforeVersion != null ? ` (was v${beforeVersion})` : "";
|
|
313
|
+
console.log(`\u2713 Cleared: ${cleared}${versionSuffix}`);
|
|
306
314
|
}
|
|
307
315
|
console.log(`
|
|
308
316
|
Restart OpenCode to fetch the latest version from npm.`);
|
|
@@ -320,7 +328,7 @@ Restart OpenCode to fetch the latest version from npm.`);
|
|
|
320
328
|
if (result.cleared.length === 0 && result.failed.length === 0 && lockResult.cleared.length === 0 && lockResult.failed.length === 0) {
|
|
321
329
|
console.log("No cached plugin found. Restart OpenCode to fetch the latest version from npm.");
|
|
322
330
|
console.log("Checked locations:");
|
|
323
|
-
for (const p of OPENCODE_PLUGIN_CACHE_PATHS) {
|
|
331
|
+
for (const p of [...OPENCODE_PLUGIN_CACHE_PATHS, ...discoveredCachePaths]) {
|
|
324
332
|
console.log(` - ${p}`);
|
|
325
333
|
}
|
|
326
334
|
console.log("Lock files checked:");
|
|
@@ -338,10 +346,14 @@ Restart OpenCode to fetch the latest version from npm.`);
|
|
|
338
346
|
}
|
|
339
347
|
return 0;
|
|
340
348
|
}
|
|
341
|
-
function evictPluginCaches() {
|
|
349
|
+
function evictPluginCaches(additionalPaths = []) {
|
|
342
350
|
const cleared = [];
|
|
343
351
|
const failed = [];
|
|
344
|
-
|
|
352
|
+
const clearedVersions = {};
|
|
353
|
+
for (const cachePath of [
|
|
354
|
+
...OPENCODE_PLUGIN_CACHE_PATHS,
|
|
355
|
+
...additionalPaths
|
|
356
|
+
]) {
|
|
345
357
|
if (!fs.existsSync(cachePath))
|
|
346
358
|
continue;
|
|
347
359
|
const canonical = safeRealpathSync(cachePath, cachePath);
|
|
@@ -351,14 +363,20 @@ function evictPluginCaches() {
|
|
|
351
363
|
failed.push(`${canonical} (refused: failed safety check)`);
|
|
352
364
|
continue;
|
|
353
365
|
}
|
|
366
|
+
const versionBeforeDelete = readCachePackageVersion(canonical);
|
|
354
367
|
try {
|
|
355
368
|
fs.rmSync(canonical, { recursive: true, force: true });
|
|
369
|
+
if (fs.existsSync(canonical)) {
|
|
370
|
+
failed.push(`${canonical} (rmSync returned without error, but the path still exists)`);
|
|
371
|
+
continue;
|
|
372
|
+
}
|
|
356
373
|
cleared.push(canonical);
|
|
374
|
+
clearedVersions[canonical] = versionBeforeDelete;
|
|
357
375
|
} catch (err) {
|
|
358
376
|
failed.push(`${canonical} (${err instanceof Error ? err.message : String(err)})`);
|
|
359
377
|
}
|
|
360
378
|
}
|
|
361
|
-
return { cleared, failed };
|
|
379
|
+
return { cleared, failed, clearedVersions };
|
|
362
380
|
}
|
|
363
381
|
function evictLockFiles() {
|
|
364
382
|
const cleared = [];
|
|
@@ -375,6 +393,10 @@ function evictLockFiles() {
|
|
|
375
393
|
}
|
|
376
394
|
try {
|
|
377
395
|
fs.unlinkSync(canonical);
|
|
396
|
+
if (fs.existsSync(canonical)) {
|
|
397
|
+
failed.push(`${canonical} (unlinkSync returned without error, but the path still exists)`);
|
|
398
|
+
continue;
|
|
399
|
+
}
|
|
378
400
|
cleared.push(canonical);
|
|
379
401
|
} catch (err) {
|
|
380
402
|
const code = err?.code;
|
|
@@ -9,29 +9,30 @@ import {
|
|
|
9
9
|
maybeEscalateOnViolation,
|
|
10
10
|
maybeQuarantineOnContradiction,
|
|
11
11
|
readRecentEscalations
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
12
|
+
} from "./index-n06653nr.js";
|
|
13
|
+
import"./index-ec1kywxg.js";
|
|
14
|
+
import"./index-zde2mkmg.js";
|
|
15
|
+
import"./index-ckq719fr.js";
|
|
16
16
|
import"./index-gprxjmm7.js";
|
|
17
17
|
import"./index-n832052r.js";
|
|
18
|
-
import"./index-
|
|
18
|
+
import"./index-fv0s19g9.js";
|
|
19
19
|
import"./index-z6xqpmqg.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-4rhhvd1a.js";
|
|
20
|
+
import"./index-ytzz6pq1.js";
|
|
21
|
+
import"./index-68mqwvf5.js";
|
|
23
22
|
import"./index-v3y3qg48.js";
|
|
23
|
+
import"./index-9e6fdz2h.js";
|
|
24
|
+
import"./index-4rhhvd1a.js";
|
|
24
25
|
import"./index-zjygnfay.js";
|
|
25
26
|
import"./index-ae75rja9.js";
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
27
|
+
import"./index-h1p08s3n.js";
|
|
28
|
+
import"./index-9s8drsf9.js";
|
|
28
29
|
import"./index-ed5ykebp.js";
|
|
29
30
|
import"./index-bk5tah7q.js";
|
|
30
31
|
import"./index-f9vvg5xb.js";
|
|
31
32
|
import"./index-1jsmmx7y.js";
|
|
32
33
|
import"./index-7g4c7s5r.js";
|
|
33
34
|
import"./index-bpmtbmy9.js";
|
|
34
|
-
import"./index-
|
|
35
|
+
import"./index-zj6t9zgx.js";
|
|
35
36
|
import"./index-zgwm4ryv.js";
|
|
36
37
|
import"./index-a76rekgs.js";
|
|
37
38
|
export {
|
|
@@ -29,27 +29,28 @@ import {
|
|
|
29
29
|
resolveKnowledgeCounterBaselinePath,
|
|
30
30
|
resolveKnowledgeEventsPath,
|
|
31
31
|
resolveLegacyApplicationLogPath
|
|
32
|
-
} from "./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
} from "./index-zde2mkmg.js";
|
|
33
|
+
import"./index-ckq719fr.js";
|
|
34
34
|
import"./index-gprxjmm7.js";
|
|
35
35
|
import"./index-n832052r.js";
|
|
36
|
-
import"./index-
|
|
36
|
+
import"./index-fv0s19g9.js";
|
|
37
37
|
import"./index-z6xqpmqg.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-4rhhvd1a.js";
|
|
38
|
+
import"./index-ytzz6pq1.js";
|
|
39
|
+
import"./index-68mqwvf5.js";
|
|
41
40
|
import"./index-v3y3qg48.js";
|
|
41
|
+
import"./index-9e6fdz2h.js";
|
|
42
|
+
import"./index-4rhhvd1a.js";
|
|
42
43
|
import"./index-zjygnfay.js";
|
|
43
44
|
import"./index-ae75rja9.js";
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
45
|
+
import"./index-h1p08s3n.js";
|
|
46
|
+
import"./index-9s8drsf9.js";
|
|
46
47
|
import"./index-ed5ykebp.js";
|
|
47
48
|
import"./index-bk5tah7q.js";
|
|
48
49
|
import"./index-f9vvg5xb.js";
|
|
49
50
|
import"./index-1jsmmx7y.js";
|
|
50
51
|
import"./index-7g4c7s5r.js";
|
|
51
52
|
import"./index-bpmtbmy9.js";
|
|
52
|
-
import"./index-
|
|
53
|
+
import"./index-zj6t9zgx.js";
|
|
53
54
|
import"./index-zgwm4ryv.js";
|
|
54
55
|
import"./index-a76rekgs.js";
|
|
55
56
|
export {
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
resolveLinkDir,
|
|
13
13
|
sanitizeLinkId,
|
|
14
14
|
writeLinkPointer
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-
|
|
15
|
+
} from "./index-h1p08s3n.js";
|
|
16
|
+
import"./index-9s8drsf9.js";
|
|
17
17
|
import"./index-ed5ykebp.js";
|
|
18
18
|
import"./index-f9vvg5xb.js";
|
|
19
19
|
import"./index-1jsmmx7y.js";
|
|
20
20
|
import"./index-7g4c7s5r.js";
|
|
21
21
|
import"./index-bpmtbmy9.js";
|
|
22
|
-
import"./index-
|
|
22
|
+
import"./index-zj6t9zgx.js";
|
|
23
23
|
import"./index-zgwm4ryv.js";
|
|
24
24
|
import"./index-a76rekgs.js";
|
|
25
25
|
export {
|
|
@@ -41,19 +41,19 @@ import {
|
|
|
41
41
|
transactKnowledge,
|
|
42
42
|
transactKnowledgeWithCas,
|
|
43
43
|
wordBigrams
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-ec1kywxg.js";
|
|
45
45
|
import {
|
|
46
46
|
resolveHiveDataDir
|
|
47
47
|
} from "./index-ae75rja9.js";
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
48
|
+
import"./index-h1p08s3n.js";
|
|
49
|
+
import"./index-9s8drsf9.js";
|
|
50
50
|
import"./index-ed5ykebp.js";
|
|
51
51
|
import"./index-bk5tah7q.js";
|
|
52
52
|
import"./index-f9vvg5xb.js";
|
|
53
53
|
import"./index-1jsmmx7y.js";
|
|
54
54
|
import"./index-7g4c7s5r.js";
|
|
55
55
|
import"./index-bpmtbmy9.js";
|
|
56
|
-
import"./index-
|
|
56
|
+
import"./index-zj6t9zgx.js";
|
|
57
57
|
import"./index-zgwm4ryv.js";
|
|
58
58
|
import"./index-a76rekgs.js";
|
|
59
59
|
export {
|
|
@@ -23,20 +23,20 @@ import {
|
|
|
23
23
|
validateLesson,
|
|
24
24
|
validateSkillCandidatePath,
|
|
25
25
|
validateSkillPath
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-bac12jpv.js";
|
|
27
|
+
import"./index-vdha477y.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-ec1kywxg.js";
|
|
30
30
|
import"./index-ae75rja9.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
31
|
+
import"./index-h1p08s3n.js";
|
|
32
|
+
import"./index-9s8drsf9.js";
|
|
33
33
|
import"./index-ed5ykebp.js";
|
|
34
34
|
import"./index-bk5tah7q.js";
|
|
35
35
|
import"./index-f9vvg5xb.js";
|
|
36
36
|
import"./index-1jsmmx7y.js";
|
|
37
37
|
import"./index-7g4c7s5r.js";
|
|
38
38
|
import"./index-bpmtbmy9.js";
|
|
39
|
-
import"./index-
|
|
39
|
+
import"./index-zj6t9zgx.js";
|
|
40
40
|
import"./index-zgwm4ryv.js";
|
|
41
41
|
import"./index-a76rekgs.js";
|
|
42
42
|
export {
|
|
@@ -54,8 +54,8 @@ import {
|
|
|
54
54
|
sweepStaleDelegations,
|
|
55
55
|
updateCoderSettlement,
|
|
56
56
|
writeDelegationFallback
|
|
57
|
-
} from "./index-
|
|
58
|
-
import"./index-
|
|
57
|
+
} from "./index-n4hwcsbd.js";
|
|
58
|
+
import"./index-fv0s19g9.js";
|
|
59
59
|
import"./index-z6xqpmqg.js";
|
|
60
60
|
import"./index-zjygnfay.js";
|
|
61
61
|
import"./index-ed5ykebp.js";
|
|
@@ -63,7 +63,7 @@ import"./index-f9vvg5xb.js";
|
|
|
63
63
|
import"./index-1jsmmx7y.js";
|
|
64
64
|
import"./index-7g4c7s5r.js";
|
|
65
65
|
import"./index-bpmtbmy9.js";
|
|
66
|
-
import"./index-
|
|
66
|
+
import"./index-zj6t9zgx.js";
|
|
67
67
|
import"./index-zgwm4ryv.js";
|
|
68
68
|
import"./index-a76rekgs.js";
|
|
69
69
|
export {
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
sweepStale,
|
|
10
10
|
unsubscribe,
|
|
11
11
|
updateSnapshot
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
} from "./index-hkdgkkhb.js";
|
|
13
|
+
import"./index-fv0s19g9.js";
|
|
14
14
|
import"./index-z6xqpmqg.js";
|
|
15
15
|
import"./index-zjygnfay.js";
|
|
16
16
|
import"./index-ed5ykebp.js";
|
|
@@ -18,7 +18,7 @@ import"./index-f9vvg5xb.js";
|
|
|
18
18
|
import"./index-1jsmmx7y.js";
|
|
19
19
|
import"./index-7g4c7s5r.js";
|
|
20
20
|
import"./index-bpmtbmy9.js";
|
|
21
|
-
import"./index-
|
|
21
|
+
import"./index-zj6t9zgx.js";
|
|
22
22
|
import"./index-zgwm4ryv.js";
|
|
23
23
|
import"./index-a76rekgs.js";
|
|
24
24
|
export {
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
_internals,
|
|
4
4
|
createModelEvaluationExecutor,
|
|
5
5
|
runEvaluation
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
6
|
+
} from "./index-6z5jtf7d.js";
|
|
7
|
+
import"./index-wknz5c8q.js";
|
|
8
8
|
import"./index-y8552snf.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-9s8drsf9.js";
|
|
10
10
|
import"./index-ed5ykebp.js";
|
|
11
11
|
import"./index-f9vvg5xb.js";
|
|
12
12
|
import"./index-1jsmmx7y.js";
|
|
13
13
|
import"./index-7g4c7s5r.js";
|
|
14
14
|
import"./index-bpmtbmy9.js";
|
|
15
|
-
import"./index-
|
|
15
|
+
import"./index-zj6t9zgx.js";
|
|
16
16
|
import"./index-zgwm4ryv.js";
|
|
17
17
|
import"./index-a76rekgs.js";
|
|
18
18
|
export {
|
|
@@ -4,18 +4,20 @@ import {
|
|
|
4
4
|
alreadyCuratedThisGeneration,
|
|
5
5
|
claimNextScanBatch,
|
|
6
6
|
getScanStatus
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-h5krb653.js";
|
|
8
|
+
import"./index-ec1kywxg.js";
|
|
9
|
+
import"./index-9e6fdz2h.js";
|
|
10
|
+
import"./index-4rhhvd1a.js";
|
|
9
11
|
import"./index-ae75rja9.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
+
import"./index-h1p08s3n.js";
|
|
13
|
+
import"./index-9s8drsf9.js";
|
|
12
14
|
import"./index-ed5ykebp.js";
|
|
13
15
|
import"./index-bk5tah7q.js";
|
|
14
16
|
import"./index-f9vvg5xb.js";
|
|
15
17
|
import"./index-1jsmmx7y.js";
|
|
16
18
|
import"./index-7g4c7s5r.js";
|
|
17
19
|
import"./index-bpmtbmy9.js";
|
|
18
|
-
import"./index-
|
|
20
|
+
import"./index-zj6t9zgx.js";
|
|
19
21
|
import"./index-zgwm4ryv.js";
|
|
20
22
|
import"./index-a76rekgs.js";
|
|
21
23
|
export {
|
|
@@ -43,6 +43,7 @@ import {
|
|
|
43
43
|
GateConfigSchema,
|
|
44
44
|
GateFeatureSchema,
|
|
45
45
|
GeneralCouncilConfigSchema,
|
|
46
|
+
GitConfigSchema,
|
|
46
47
|
GuardrailsConfigSchema,
|
|
47
48
|
GuardrailsProfileSchema,
|
|
48
49
|
HooksConfigSchema,
|
|
@@ -96,7 +97,7 @@ import {
|
|
|
96
97
|
resolveGeneratedAgentRole,
|
|
97
98
|
resolveGuardrailsConfig,
|
|
98
99
|
stripKnownSwarmPrefix
|
|
99
|
-
} from "./index-
|
|
100
|
+
} from "./index-68mqwvf5.js";
|
|
100
101
|
import"./index-v3y3qg48.js";
|
|
101
102
|
import"./index-zjygnfay.js";
|
|
102
103
|
import"./index-bk5tah7q.js";
|
|
@@ -157,6 +158,7 @@ export {
|
|
|
157
158
|
HooksConfigSchema,
|
|
158
159
|
GuardrailsProfileSchema,
|
|
159
160
|
GuardrailsConfigSchema,
|
|
161
|
+
GitConfigSchema,
|
|
160
162
|
GeneralCouncilConfigSchema,
|
|
161
163
|
GateFeatureSchema,
|
|
162
164
|
GateConfigSchema,
|
|
@@ -23,20 +23,21 @@ import {
|
|
|
23
23
|
tombstoneScopeBinding,
|
|
24
24
|
writeScopeBindingToDisk,
|
|
25
25
|
writeScopeToDisk
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-dvybg11w.js";
|
|
27
|
+
import"./index-q6bhmyxb.js";
|
|
28
28
|
import"./index-556ja8an.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-4rhhvd1a.js";
|
|
29
|
+
import"./index-ytzz6pq1.js";
|
|
30
|
+
import"./index-68mqwvf5.js";
|
|
32
31
|
import"./index-v3y3qg48.js";
|
|
32
|
+
import"./index-9e6fdz2h.js";
|
|
33
|
+
import"./index-4rhhvd1a.js";
|
|
33
34
|
import"./index-zjygnfay.js";
|
|
34
35
|
import"./index-bk5tah7q.js";
|
|
35
36
|
import"./index-f9vvg5xb.js";
|
|
36
37
|
import"./index-1jsmmx7y.js";
|
|
37
38
|
import"./index-7g4c7s5r.js";
|
|
38
39
|
import"./index-bpmtbmy9.js";
|
|
39
|
-
import"./index-
|
|
40
|
+
import"./index-zj6t9zgx.js";
|
|
40
41
|
import"./index-zgwm4ryv.js";
|
|
41
42
|
import"./index-a76rekgs.js";
|
|
42
43
|
export {
|
|
@@ -33,32 +33,33 @@ import {
|
|
|
33
33
|
sanitizeSlug,
|
|
34
34
|
selectCandidateEntries,
|
|
35
35
|
writeEvalStub
|
|
36
|
-
} from "./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
36
|
+
} from "./index-vngs0meh.js";
|
|
37
|
+
import"./index-bac12jpv.js";
|
|
38
|
+
import"./index-vdha477y.js";
|
|
39
39
|
import"./index-rtry5xyf.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
40
|
+
import"./index-ec1kywxg.js";
|
|
41
|
+
import"./index-zde2mkmg.js";
|
|
42
|
+
import"./index-ckq719fr.js";
|
|
43
43
|
import"./index-gprxjmm7.js";
|
|
44
44
|
import"./index-n832052r.js";
|
|
45
|
-
import"./index-
|
|
45
|
+
import"./index-fv0s19g9.js";
|
|
46
46
|
import"./index-z6xqpmqg.js";
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-4rhhvd1a.js";
|
|
47
|
+
import"./index-ytzz6pq1.js";
|
|
48
|
+
import"./index-68mqwvf5.js";
|
|
50
49
|
import"./index-v3y3qg48.js";
|
|
50
|
+
import"./index-9e6fdz2h.js";
|
|
51
|
+
import"./index-4rhhvd1a.js";
|
|
51
52
|
import"./index-zjygnfay.js";
|
|
52
53
|
import"./index-ae75rja9.js";
|
|
53
|
-
import"./index-
|
|
54
|
-
import"./index-
|
|
54
|
+
import"./index-h1p08s3n.js";
|
|
55
|
+
import"./index-9s8drsf9.js";
|
|
55
56
|
import"./index-ed5ykebp.js";
|
|
56
57
|
import"./index-bk5tah7q.js";
|
|
57
58
|
import"./index-f9vvg5xb.js";
|
|
58
59
|
import"./index-1jsmmx7y.js";
|
|
59
60
|
import"./index-7g4c7s5r.js";
|
|
60
61
|
import"./index-bpmtbmy9.js";
|
|
61
|
-
import"./index-
|
|
62
|
+
import"./index-zj6t9zgx.js";
|
|
62
63
|
import"./index-zgwm4ryv.js";
|
|
63
64
|
import"./index-a76rekgs.js";
|
|
64
65
|
export {
|
|
@@ -37,8 +37,11 @@ import {
|
|
|
37
37
|
resolveRemoteRefsContainingHeadAsync,
|
|
38
38
|
switchPrFeedbackTrackingCandidateAsync,
|
|
39
39
|
workspaceSnapshotMatches
|
|
40
|
-
} from "./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
} from "./index-f36ybbsv.js";
|
|
41
|
+
import"./index-9e6fdz2h.js";
|
|
42
|
+
import"./index-4rhhvd1a.js";
|
|
43
|
+
import"./index-zj6t9zgx.js";
|
|
44
|
+
import"./index-zgwm4ryv.js";
|
|
42
45
|
import"./index-a76rekgs.js";
|
|
43
46
|
export {
|
|
44
47
|
workspaceSnapshotMatches,
|
|
@@ -5,14 +5,19 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
scanDelegationFallbacksForRecovery,
|
|
7
7
|
scanDelegationsForRecovery
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-n4hwcsbd.js";
|
|
9
9
|
import {
|
|
10
10
|
WORKTREE_PROVISIONING_OWNER_LEASE_MS,
|
|
11
11
|
removeWorktreeProvisioningOwner,
|
|
12
12
|
scanWorktreeProvisioningOwnersForRecovery
|
|
13
|
-
} from "./index-
|
|
14
|
-
import"./index-
|
|
13
|
+
} from "./index-cwtpqm5f.js";
|
|
14
|
+
import"./index-fv0s19g9.js";
|
|
15
15
|
import"./index-z6xqpmqg.js";
|
|
16
|
+
import {
|
|
17
|
+
init_git_executable,
|
|
18
|
+
resolveGitExecutable
|
|
19
|
+
} from "./index-9e6fdz2h.js";
|
|
20
|
+
import"./index-4rhhvd1a.js";
|
|
16
21
|
import"./index-zjygnfay.js";
|
|
17
22
|
import"./index-ed5ykebp.js";
|
|
18
23
|
import"./index-f9vvg5xb.js";
|
|
@@ -21,7 +26,7 @@ import"./index-7g4c7s5r.js";
|
|
|
21
26
|
import"./index-bpmtbmy9.js";
|
|
22
27
|
import {
|
|
23
28
|
bunSpawn
|
|
24
|
-
} from "./index-
|
|
29
|
+
} from "./index-zj6t9zgx.js";
|
|
25
30
|
import"./index-zgwm4ryv.js";
|
|
26
31
|
import"./index-a76rekgs.js";
|
|
27
32
|
|
|
@@ -32,6 +37,7 @@ import * as path2 from "path";
|
|
|
32
37
|
// src/hooks/delegation-gate/worktree-ownership-tag.ts
|
|
33
38
|
import * as fs from "fs";
|
|
34
39
|
import * as path from "path";
|
|
40
|
+
init_git_executable();
|
|
35
41
|
var OWNERSHIP_TAG_SCAN_TIMEOUT_MS = 2000;
|
|
36
42
|
var MAX_OWNERSHIP_TAGS = 512;
|
|
37
43
|
function decodeTagPart(value) {
|
|
@@ -52,21 +58,22 @@ async function scanBackgroundWorktreeOwnershipTagsForRecovery(directory) {
|
|
|
52
58
|
reason: `Git metadata could not be inspected: ${error instanceof Error ? error.message : String(error)}`
|
|
53
59
|
};
|
|
54
60
|
}
|
|
55
|
-
|
|
56
|
-
"git",
|
|
57
|
-
"-C",
|
|
58
|
-
directory,
|
|
59
|
-
"for-each-ref",
|
|
60
|
-
`--count=${MAX_OWNERSHIP_TAGS + 1}`,
|
|
61
|
-
"--format=%(refname:strip=2)%00%(objectname)",
|
|
62
|
-
"refs/tags/swarm-preserved-owner/"
|
|
63
|
-
], {
|
|
64
|
-
stdin: "ignore",
|
|
65
|
-
stdout: "pipe",
|
|
66
|
-
stderr: "ignore",
|
|
67
|
-
timeout: OWNERSHIP_TAG_SCAN_TIMEOUT_MS
|
|
68
|
-
});
|
|
61
|
+
let proc;
|
|
69
62
|
try {
|
|
63
|
+
proc = bunSpawn([
|
|
64
|
+
resolveGitExecutable(),
|
|
65
|
+
"-C",
|
|
66
|
+
directory,
|
|
67
|
+
"for-each-ref",
|
|
68
|
+
`--count=${MAX_OWNERSHIP_TAGS + 1}`,
|
|
69
|
+
"--format=%(refname:strip=2)%00%(objectname)",
|
|
70
|
+
"refs/tags/swarm-preserved-owner/"
|
|
71
|
+
], {
|
|
72
|
+
stdin: "ignore",
|
|
73
|
+
stdout: "pipe",
|
|
74
|
+
stderr: "ignore",
|
|
75
|
+
timeout: OWNERSHIP_TAG_SCAN_TIMEOUT_MS
|
|
76
|
+
});
|
|
70
77
|
const exitCode = await proc.exited;
|
|
71
78
|
if (exitCode !== 0) {
|
|
72
79
|
return {
|
|
@@ -104,7 +111,7 @@ async function scanBackgroundWorktreeOwnershipTagsForRecovery(directory) {
|
|
|
104
111
|
};
|
|
105
112
|
} finally {
|
|
106
113
|
try {
|
|
107
|
-
proc
|
|
114
|
+
proc?.kill();
|
|
108
115
|
} catch {}
|
|
109
116
|
}
|
|
110
117
|
}
|