opencode-swarm 7.164.6 → 7.164.8
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/README.md +1 -1
- package/dist/background/pending-delegations.d.ts +3 -0
- package/dist/background/pr-subscriptions.d.ts +1 -8
- package/dist/cli/{coder-settlement-6qgvzx40.js → coder-settlement-qrtjv4jk.js} +14 -14
- package/dist/cli/{config-doctor-d1cbh67h.js → config-doctor-hp9dj0fg.js} +5 -3
- package/dist/cli/{core-g0cvvj3b.js → core-bmmrm36k.js} +2 -2
- package/dist/cli/{curation-policy-7f8x9yg6.js → curation-policy-de7emfqc.js} +7 -6
- package/dist/cli/{curator-drift-0r0scc8r.js → curator-drift-5sykmtf5.js} +8 -6
- package/dist/cli/{curator-q3qn89wn.js → curator-k8xdr1mn.js} +40 -38
- package/dist/cli/curator-llm-factory-pe61p0r6.js +68 -0
- package/dist/cli/{dispatch-q4v8x2pk.js → dispatch-dqybvj8v.js} +10 -6
- package/dist/cli/{evidence-summary-service-3meyb8rc.js → evidence-summary-service-qzpkdv7a.js} +20 -17
- package/dist/cli/{gate-evidence-mhc0w7vp.js → gate-evidence-jmns4e76.js} +14 -8
- package/dist/cli/guardrail-explain-vzwbmvyf.js +69 -0
- package/dist/cli/{guardrail-log-0nd1eqvz.js → guardrail-log-kckc7cg4.js} +9 -8
- package/dist/cli/{guardrail-reset-mzeyd6jh.js → guardrail-reset-acndbsv9.js} +40 -38
- package/dist/cli/hive-promoter-wvt5kk99.js +83 -0
- package/dist/cli/{index-x6zyc38w.js → index-0zjwnbze.js} +1 -1
- package/dist/cli/{index-x76mprg2.js → index-29w778rw.js} +185 -376
- package/dist/cli/{index-fxxja498.js → index-2czt53wz.js} +1 -1
- package/dist/cli/{index-pvp5tnn2.js → index-3sv8t7ca.js} +2 -2
- package/dist/cli/{index-kvb4dwgf.js → index-4pm3v7yc.js} +12 -6
- package/dist/cli/{index-jzvrvdmr.js → index-4v28t7jh.js} +4 -4
- package/dist/cli/{index-935ww10s.js → index-52m9kter.js} +1236 -1193
- package/dist/cli/index-7qefgq4j.js +71 -0
- package/dist/cli/{index-zfwd65c2.js → index-8ntf8jnj.js} +19 -18
- package/dist/cli/{index-m1nrd3yd.js → index-8psybzzf.js} +1 -1
- package/dist/cli/{index-2c3np82d.js → index-8tqqmsav.js} +1 -1
- package/dist/cli/{index-tegp2mny.js → index-93znbdam.js} +9 -5
- package/dist/cli/{index-hdapetg1.js → index-9ek9d96g.js} +3 -3
- package/dist/cli/{index-p56xc59p.js → index-9ydhzegh.js} +28 -17
- package/dist/cli/{index-ew99d4y6.js → index-apdp9bc1.js} +1 -1
- package/dist/cli/{index-12xzj0hm.js → index-b10yvv6h.js} +4 -4
- package/dist/cli/{index-zjg5ajf5.js → index-bv90qkyw.js} +72 -48
- package/dist/cli/{index-zypacgjc.js → index-bz8vsc8r.js} +5 -5
- package/dist/cli/{index-4k16cz8r.js → index-bzesypf5.js} +36 -27
- package/dist/cli/{index-ay9cr8tr.js → index-chcv8c7n.js} +1 -1
- package/dist/cli/index-cw912re7.js +200 -0
- package/dist/cli/{index-ty3vtqe2.js → index-espcjyrx.js} +4 -4
- package/dist/cli/{index-gwg7a00b.js → index-g2e8b3wm.js} +20 -15
- package/dist/cli/{index-rysxqae0.js → index-ghnbpez3.js} +7 -7
- package/dist/cli/{index-t1nkr7cz.js → index-gkqrk8dd.js} +2 -2
- package/dist/cli/{index-1dz8hv7p.js → index-kvq1e82k.js} +3 -3
- package/dist/cli/{index-ze5zyv28.js → index-mr3h3sm5.js} +2 -2
- package/dist/cli/{index-zaab1wz9.js → index-n4fzmqz8.js} +3 -1
- package/dist/cli/{index-g5714mpv.js → index-px4a2ve0.js} +17 -8
- package/dist/cli/index-ry16d01s.js +107 -0
- package/dist/cli/{index-j3hsjynw.js → index-s3z936wh.js} +100 -97
- package/dist/cli/{index-yh8wxegw.js → index-s6ejwhew.js} +21 -11
- package/dist/cli/{index-b0m3efpf.js → index-sxxh4ams.js} +2 -2
- package/dist/cli/{index-cyhw0der.js → index-t1qzjhnj.js} +13 -13
- package/dist/cli/{index-3f7hqtgg.js → index-w3gtqey0.js} +4 -1
- package/dist/cli/{index-9qvmsyab.js → index-wgqeqy68.js} +2 -2
- package/dist/cli/{index-y4z0rhsa.js → index-whz6am0v.js} +42 -40
- package/dist/cli/{index-g94qqwnz.js → index-wtnx33hz.js} +2 -2
- package/dist/cli/{index-j645xpsm.js → index-y6s0gpn3.js} +12 -5
- package/dist/cli/{index-6f9yvd67.js → index-ya4ta1pd.js} +2 -2
- package/dist/cli/{index-5p1tzpwh.js → index-ypjffdrg.js} +3 -2
- package/dist/cli/{index-59hvr3f4.js → index-yscwyq3t.js} +9 -6
- package/dist/cli/{index-7v3bb0h3.js → index-yzn1fm9a.js} +1 -1
- package/dist/cli/{index-qdbgc16x.js → index-z39vxvdx.js} +20 -12
- package/dist/cli/index.js +40 -38
- package/dist/cli/{knowledge-escalator-aca0nhqg.js → knowledge-escalator-h9834mrp.js} +15 -14
- package/dist/cli/{knowledge-events-n5t313ht.js → knowledge-events-e8hrmjf0.js} +13 -12
- package/dist/cli/{knowledge-link-8ea4ksda.js → knowledge-link-hhnmc4g1.js} +6 -5
- package/dist/cli/{knowledge-store-j97ejf6a.js → knowledge-store-w3w9gchr.js} +7 -6
- package/dist/cli/{knowledge-validator-01evhydg.js → knowledge-validator-exd900vc.js} +9 -8
- package/dist/cli/{model-preflight-pmnbfzjv.js → model-preflight-bq035tfh.js} +1 -1
- package/dist/cli/{pending-delegations-w73abdk3.js → pending-delegations-p4ak2e86.js} +7 -7
- package/dist/cli/{pr-subscriptions-05dzvavk.js → pr-subscriptions-73fs8y3n.js} +7 -6
- package/dist/cli/{pr-workflow-gate-t0tnkx5f.js → pr-workflow-gate-pvt2ra6e.js} +40 -38
- package/dist/cli/{runner-fh7t0mn9.js → runner-5qqh83e2.js} +6 -6
- package/dist/cli/{scan-cursor-63zx2qd8.js → scan-cursor-ysd8b563.js} +8 -7
- package/dist/cli/{schema-t1scx08g.js → schema-mbb9g4w4.js} +2 -2
- package/dist/cli/{scope-persistence-1a5qmchf.js → scope-persistence-jrbnhxvx.js} +12 -10
- package/dist/cli/{skill-generator-7werbwgv.js → skill-generator-b4ng5xky.js} +17 -16
- package/dist/cli/{sqlite-loader-8zefc142.js → sqlite-loader-xrnf6bq8.js} +1 -1
- package/dist/cli/{telemetry-j14cj552.js → telemetry-85gxedng.js} +1 -1
- package/dist/cli/{workspace-snapshot-yq0tc49d.js → workspace-snapshot-eh18vgkn.js} +2 -1
- package/dist/cli/{worktree-collision-ownership-wzdzky33.js → worktree-collision-ownership-ns8p2fks.js} +12 -15
- package/dist/cli/{worktree-isolation-m02ay3kg.js → worktree-isolation-j6zxhjab.js} +40 -38
- package/dist/db/canonical-project.d.ts +10 -3
- package/dist/db/driver-parity.d.ts +12 -0
- package/dist/db/project-db.d.ts +4 -0
- package/dist/evidence/task-gate-repair.d.ts +1 -1
- package/dist/gate-evidence.d.ts +19 -1
- package/dist/index.js +581 -581
- package/dist/plan/ledger.d.ts +2 -0
- package/dist/tools/pre-check-batch.d.ts +1 -1
- package/dist/utils/canonical-root.d.ts +21 -1
- package/dist/utils/filesystem-identity.d.ts +59 -0
- package/package.json +2 -1
- package/dist/cli/curator-llm-factory-dw7md4nr.js +0 -66
- package/dist/cli/guardrail-explain-6cbszhw1.js +0 -67
- package/dist/cli/hive-promoter-w7g879cm.js +0 -81
- package/dist/cli/index-ddszzne4.js +0 -42
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/utils/filesystem-identity.ts
|
|
3
|
+
import * as fsSync from "fs";
|
|
4
|
+
import * as path from "path";
|
|
5
|
+
var _internals = {
|
|
6
|
+
realpathSyncNative: fsSync.realpathSync.native,
|
|
7
|
+
realpathSync: fsSync.realpathSync,
|
|
8
|
+
lstatSync: fsSync.lstatSync,
|
|
9
|
+
platform: () => process.platform
|
|
10
|
+
};
|
|
11
|
+
function normalizeIdentityPath(resolved) {
|
|
12
|
+
const normalized = _internals.platform() === "win32" ? path.win32.normalize(resolved) : path.posix.normalize(resolved);
|
|
13
|
+
return _internals.platform() === "win32" ? normalized.replaceAll("\\", "/").toLowerCase() : normalized;
|
|
14
|
+
}
|
|
15
|
+
function canonicalExistingFilesystemPath(entryPath) {
|
|
16
|
+
if (typeof entryPath !== "string")
|
|
17
|
+
return null;
|
|
18
|
+
const resolvedInput = path.resolve(entryPath);
|
|
19
|
+
try {
|
|
20
|
+
return normalizeIdentityPath(_internals.realpathSyncNative(resolvedInput));
|
|
21
|
+
} catch {
|
|
22
|
+
try {
|
|
23
|
+
return normalizeIdentityPath(_internals.realpathSync(resolvedInput));
|
|
24
|
+
} catch {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function legacyCanonicalExistingFilesystemPath(entryPath) {
|
|
30
|
+
if (typeof entryPath !== "string")
|
|
31
|
+
return null;
|
|
32
|
+
try {
|
|
33
|
+
return normalizeIdentityPath(_internals.realpathSync(path.resolve(entryPath)));
|
|
34
|
+
} catch {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function appendLinkedAncestorWitnesses(witnesses, startPath) {
|
|
39
|
+
let probe = path.resolve(startPath);
|
|
40
|
+
for (let depth = 0;depth < 4096; depth++) {
|
|
41
|
+
const parent = path.dirname(probe);
|
|
42
|
+
if (parent === probe)
|
|
43
|
+
return;
|
|
44
|
+
probe = parent;
|
|
45
|
+
try {
|
|
46
|
+
if (!_internals.lstatSync(probe).isSymbolicLink())
|
|
47
|
+
continue;
|
|
48
|
+
} catch {
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
const canonical = canonicalExistingFilesystemPath(probe);
|
|
52
|
+
if (canonical !== null) {
|
|
53
|
+
witnesses.push({ lexicalPath: probe, canonicalPath: canonical });
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function filesystemIdentityWitnesses(entryPath) {
|
|
58
|
+
const lexicalPath = path.resolve(entryPath);
|
|
59
|
+
const canonicalPath = canonicalExistingFilesystemPath(lexicalPath);
|
|
60
|
+
if (canonicalPath === null)
|
|
61
|
+
return [];
|
|
62
|
+
const witnesses = [{ lexicalPath, canonicalPath }];
|
|
63
|
+
appendLinkedAncestorWitnesses(witnesses, lexicalPath);
|
|
64
|
+
return witnesses;
|
|
65
|
+
}
|
|
66
|
+
function canonicalPathFromExistingAncestor(entryPath) {
|
|
67
|
+
let probe = path.resolve(entryPath);
|
|
68
|
+
const tail = [];
|
|
69
|
+
for (let depth = 0;depth < 4096; depth++) {
|
|
70
|
+
let stat;
|
|
71
|
+
try {
|
|
72
|
+
stat = _internals.lstatSync(probe);
|
|
73
|
+
} catch (error) {
|
|
74
|
+
const code = error && typeof error === "object" && "code" in error ? String(error.code) : undefined;
|
|
75
|
+
if (code !== "ENOENT" && code !== "ENOTDIR")
|
|
76
|
+
return null;
|
|
77
|
+
const parent = path.dirname(probe);
|
|
78
|
+
if (parent === probe)
|
|
79
|
+
return null;
|
|
80
|
+
tail.unshift(path.basename(probe));
|
|
81
|
+
probe = parent;
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
const canonicalAncestor = canonicalExistingFilesystemPath(probe);
|
|
85
|
+
if (canonicalAncestor === null)
|
|
86
|
+
return null;
|
|
87
|
+
let existingAncestorIsLink = false;
|
|
88
|
+
existingAncestorIsLink = stat.isSymbolicLink();
|
|
89
|
+
return {
|
|
90
|
+
canonicalPath: normalizeIdentityPath(path.join(canonicalAncestor, ...tail)),
|
|
91
|
+
existingAncestor: probe,
|
|
92
|
+
existingAncestorIsLink,
|
|
93
|
+
identityWitnesses: filesystemIdentityWitnesses(probe)
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
function canonicalPathForFutureIo(entryPath) {
|
|
99
|
+
return canonicalExistingFilesystemPath(entryPath) ?? canonicalPathFromExistingAncestor(entryPath)?.canonicalPath ?? null;
|
|
100
|
+
}
|
|
101
|
+
function sameExistingFilesystemPath(a, b) {
|
|
102
|
+
const canonicalA = canonicalExistingFilesystemPath(a);
|
|
103
|
+
const canonicalB = canonicalExistingFilesystemPath(b);
|
|
104
|
+
return canonicalA !== null && canonicalB !== null && canonicalA === canonicalB;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export { canonicalExistingFilesystemPath, legacyCanonicalExistingFilesystemPath, filesystemIdentityWitnesses, canonicalPathFromExistingAncestor, canonicalPathForFutureIo, sameExistingFilesystemPath };
|