opencode-swarm 7.167.1 → 7.167.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.
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/agents/project-context.d.ts +12 -8
- package/dist/cli/{coder-settlement-2ye4s5xr.js → coder-settlement-jy9rad28.js} +16 -16
- package/dist/cli/{config-doctor-b0k8eyd6.js → config-doctor-p66vnpy3.js} +3 -3
- package/dist/cli/{core-xgzgjk8s.js → core-tw0wtntz.js} +4 -4
- package/dist/cli/{curation-policy-bvxf5pxv.js → curation-policy-ndp27v0c.js} +7 -7
- package/dist/cli/{curator-jpvzrxcv.js → curator-5nzde80g.js} +45 -45
- package/dist/cli/{curator-drift-20m2ab5w.js → curator-drift-gb651hcw.js} +8 -8
- package/dist/cli/curator-llm-factory-xy96x5x8.js +71 -0
- package/dist/cli/{dispatch-tmb929w8.js → dispatch-8ks9dyk5.js} +244 -70
- package/dist/cli/{evidence-summary-service-74az43cb.js → evidence-summary-service-bzpfaypy.js} +22 -22
- package/dist/cli/{explorer-zvk5kbcb.js → explorer-2cv64zfj.js} +1 -1
- package/dist/cli/{gate-evidence-f26h2gn3.js → gate-evidence-wa8cj8h6.js} +11 -11
- package/dist/cli/guardrail-explain-1ef5he6j.js +72 -0
- package/dist/cli/{guardrail-log-pnye3xw8.js → guardrail-log-7dv73e0q.js} +9 -9
- package/dist/cli/{guardrail-reset-0da7q8ap.js → guardrail-reset-1kng6y8x.js} +44 -44
- package/dist/cli/hive-promoter-87kk2pg5.js +86 -0
- package/dist/cli/{index-fmzz6aw7.js → index-09gv90d7.js} +4 -4
- package/dist/cli/{index-9e6fdz2h.js → index-0mhftbpp.js} +1 -1
- package/dist/cli/{index-t8tw1bhs.js → index-0q839sg6.js} +2 -2
- package/dist/cli/{index-9bhzbwa4.js → index-18rfc7qv.js} +9 -9
- package/dist/cli/{index-7qefgq4j.js → index-1xnse449.js} +11 -1
- package/dist/cli/index-25xeyjfx.js +116 -0
- package/dist/cli/{index-87agfprq.js → index-2b1hd1fx.js} +2 -2
- package/dist/cli/{index-bv8ha57q.js → index-3r6k6qa7.js} +6 -6
- package/dist/cli/{index-69y9p6dh.js → index-3ws11dq0.js} +2 -2
- package/dist/cli/{index-eretcr6t.js → index-5sjq3shs.js} +11 -11
- package/dist/cli/{index-8x4zwk0t.js → index-65s0vgb1.js} +47 -47
- package/dist/cli/{index-es13aqdb.js → index-79234evf.js} +1 -1
- package/dist/cli/{index-5bd84nxc.js → index-83r0v5tn.js} +1 -1
- package/dist/cli/{index-sahf5yz3.js → index-8vbahc4c.js} +1 -1
- package/dist/cli/{index-6d4dc99f.js → index-962qme08.js} +1 -1
- package/dist/cli/{index-9ss2m4rs.js → index-9br68j86.js} +1 -1
- package/dist/cli/{index-4rhhvd1a.js → index-a1w58b47.js} +1 -1
- package/dist/cli/{index-qyr17fbz.js → index-arqv4psy.js} +16 -16
- package/dist/cli/{index-qtd3hrk8.js → index-ce8p9t28.js} +5 -5
- package/dist/cli/{index-q265ytw6.js → index-dme7wvwg.js} +4 -4
- package/dist/cli/{index-54vzqy47.js → index-ehq2vtkq.js} +6 -6
- package/dist/cli/{index-1aex5zd9.js → index-f8cc92g7.js} +2 -2
- package/dist/cli/{index-bzdc4b7t.js → index-f91fhch0.js} +6 -6
- package/dist/cli/{index-70ha9e09.js → index-fyfbpz4f.js} +1 -1
- package/dist/cli/{index-75f9jj3h.js → index-g409c7ke.js} +2 -2
- package/dist/cli/{index-0tc0pcmh.js → index-g5m43paw.js} +37 -2
- package/dist/cli/{index-9wv6a3jx.js → index-gmjg65tm.js} +2 -2
- package/dist/cli/{index-qd726agw.js → index-gs12223x.js} +3 -3
- package/dist/cli/{index-rk10x4zr.js → index-hhkm64wh.js} +5 -5
- package/dist/cli/{index-mgc3c483.js → index-jhd3pmd1.js} +10 -10
- package/dist/cli/{index-m3tx1q9v.js → index-k73ehxa1.js} +1 -1
- package/dist/cli/{index-z5gdgdkp.js → index-m3z83nhs.js} +12 -12
- package/dist/cli/{index-251vrmge.js → index-m7cwnt9r.js} +4 -4
- package/dist/cli/{index-3nm1b3t2.js → index-mtepgqan.js} +8 -8
- package/dist/cli/{index-79wnzc8q.js → index-pdcperq5.js} +3 -3
- package/dist/cli/{index-bf6zx8cq.js → index-rrne6g2m.js} +2 -2
- package/dist/cli/{index-hdsg7yf6.js → index-s7a9dqtb.js} +3 -3
- package/dist/cli/{index-f8xk5q5j.js → index-shrf0wt3.js} +4 -4
- package/dist/cli/{index-zwsbegc1.js → index-sjkg2hc4.js} +7 -7
- package/dist/cli/{index-qww0h314.js → index-syedr4e3.js} +1 -1
- package/dist/cli/{index-f6zgz02s.js → index-tcj8v6my.js} +3 -3
- package/dist/cli/{index-2w0beg3s.js → index-vgpedapd.js} +5 -5
- package/dist/cli/{index-emwezg3y.js → index-wjet7x0a.js} +3 -3
- package/dist/cli/{index-m21x1bkx.js → index-x7pm61wk.js} +2 -0
- package/dist/cli/{index-32bxwzw0.js → index-y1sj2e1n.js} +92719 -90312
- package/dist/cli/{index-qd619x3r.js → index-z6we1abx.js} +2 -2
- package/dist/cli/{index-fenasyvr.js → index-z7z3g5wt.js} +62 -12
- package/dist/cli/index.js +44 -44
- package/dist/cli/{knowledge-escalator-p2a8xh8x.js → knowledge-escalator-5e4zxan5.js} +17 -17
- package/dist/cli/{knowledge-events-jmh28m8d.js → knowledge-events-abzm5vfh.js} +15 -15
- package/dist/cli/{knowledge-link-w1fwqts4.js → knowledge-link-9ga6hyd5.js} +6 -6
- package/dist/cli/{knowledge-store-8gmabtsn.js → knowledge-store-q4a92eq7.js} +7 -7
- package/dist/cli/{knowledge-validator-yk579vs4.js → knowledge-validator-pn3m5r41.js} +9 -9
- package/dist/cli/{model-preflight-b3b5pgsc.js → model-preflight-mw895vgt.js} +1 -1
- package/dist/cli/{pending-delegations-nw7ph53z.js → pending-delegations-3z0xjppd.js} +14 -14
- package/dist/cli/{pr-subscriptions-9815fxbc.js → pr-subscriptions-h7mwnp62.js} +14 -14
- package/dist/cli/{pr-workflow-gate-98a7b6py.js → pr-workflow-gate-fec04fa0.js} +44 -44
- package/dist/cli/{runner-nmrjv7te.js → runner-d9833azt.js} +7 -7
- package/dist/cli/{scan-cursor-6zcs0frg.js → scan-cursor-ymfvzdkz.js} +10 -10
- package/dist/cli/{schema-warvhy9h.js → schema-chc4aez6.js} +2 -2
- package/dist/cli/{scope-persistence-c2ck77cv.js → scope-persistence-3xnr59y8.js} +20 -20
- package/dist/cli/{skill-generator-jamm1cna.js → skill-generator-3mvaghxk.js} +19 -19
- package/dist/cli/{snapshot-coordination-init-st0xsn3f.js → snapshot-coordination-init-arnc77r9.js} +44 -44
- package/dist/cli/{telemetry-ce0tx41h.js → telemetry-g9pppt9e.js} +2 -2
- package/dist/cli/{workspace-snapshot-0kxj2grt.js → workspace-snapshot-hvsjtepd.js} +6 -6
- package/dist/cli/{worktree-collision-ownership-qra7r8pw.js → worktree-collision-ownership-vj8anvb7.js} +17 -17
- package/dist/cli/{worktree-isolation-yr9gnf64.js → worktree-isolation-mt7z75hz.js} +45 -45
- package/dist/commands/close/align-stage.d.ts +10 -0
- package/dist/commands/close/archive-stage.d.ts +34 -0
- package/dist/commands/close/clean-stage.d.ts +2 -0
- package/dist/commands/close/constants.d.ts +122 -0
- package/dist/commands/close/context.d.ts +129 -0
- package/dist/commands/close/db-helpers.d.ts +10 -0
- package/dist/commands/close/dry-run.d.ts +12 -0
- package/dist/commands/close/finalize-stage.d.ts +44 -0
- package/dist/commands/close/fs-helpers.d.ts +17 -0
- package/dist/commands/close/internals.d.ts +55 -0
- package/dist/commands/close/orchestrator.d.ts +32 -0
- package/dist/commands/close/wiring.d.ts +2 -0
- package/dist/commands/close.d.ts +10 -402
- package/dist/index.js +485 -485
- package/dist/lang/dispatch.d.ts +6 -6
- package/dist/utils/canonical-root.d.ts +19 -0
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-zeb0pe2j.js +0 -71
- package/dist/cli/guardrail-explain-5vhveypz.js +0 -72
- package/dist/cli/hive-promoter-2vj54xc4.js +0 -86
|
@@ -14,8 +14,9 @@ import {
|
|
|
14
14
|
} from "./index-d5qf7hvh.js";
|
|
15
15
|
import"./index-p612v1mv.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
canonicalRootKeyFreshAsync,
|
|
18
|
+
canonicalRootKeyLexical
|
|
19
|
+
} from "./index-1xnse449.js";
|
|
19
20
|
import"./index-ee6ydtfe.js";
|
|
20
21
|
import"./index-zpsr8rpc.js";
|
|
21
22
|
import"./index-zgwm4ryv.js";
|
|
@@ -398,52 +399,193 @@ var MANIFEST_SET = new Set(MANIFEST_FILES);
|
|
|
398
399
|
// src/lang/dispatch.ts
|
|
399
400
|
var _internals2 = {
|
|
400
401
|
detectProjectLanguages,
|
|
401
|
-
cacheCapacity: 64
|
|
402
|
+
cacheCapacity: 64,
|
|
403
|
+
get manifestRootCacheSize() {
|
|
404
|
+
return manifestRootCache.size;
|
|
405
|
+
}
|
|
402
406
|
};
|
|
403
407
|
var cache = new Map;
|
|
404
408
|
var insertCounter = 0;
|
|
405
|
-
function
|
|
409
|
+
async function tryReadDirectoryAsync(dir) {
|
|
406
410
|
try {
|
|
407
|
-
return new Set(fs4.
|
|
411
|
+
return new Set(await fs4.promises.readdir(dir));
|
|
408
412
|
} catch {
|
|
409
|
-
return
|
|
413
|
+
return null;
|
|
410
414
|
}
|
|
411
415
|
}
|
|
412
|
-
function manifestHash(dir) {
|
|
413
|
-
const entries =
|
|
414
|
-
|
|
416
|
+
async function manifestHash(dir, signal) {
|
|
417
|
+
const entries = await tryReadDirectoryAsync(dir);
|
|
418
|
+
throwIfAborted(signal);
|
|
419
|
+
if (entries === null || entries.size === 0)
|
|
415
420
|
return "";
|
|
416
|
-
const
|
|
417
|
-
|
|
418
|
-
if (!entries.has(name))
|
|
419
|
-
continue;
|
|
421
|
+
const names = MANIFEST_FILES.filter((name) => entries.has(name));
|
|
422
|
+
const parts = await Promise.all(names.map(async (name) => {
|
|
420
423
|
try {
|
|
421
|
-
const stat = fs4.
|
|
422
|
-
|
|
423
|
-
} catch {
|
|
424
|
-
|
|
425
|
-
|
|
424
|
+
const stat = await fs4.promises.stat(path4.join(dir, name));
|
|
425
|
+
return `${name}:${stat.size}:${stat.mtimeMs}:${stat.ino}`;
|
|
426
|
+
} catch {
|
|
427
|
+
return null;
|
|
428
|
+
}
|
|
429
|
+
}));
|
|
430
|
+
throwIfAborted(signal);
|
|
431
|
+
return parts.filter((part) => part !== null).join("|");
|
|
426
432
|
}
|
|
433
|
+
var MAX_MANIFEST_SEARCH_DEPTH = 32;
|
|
427
434
|
var manifestRootCache = new Map;
|
|
428
|
-
|
|
435
|
+
var manifestRootInsertCounter = 0;
|
|
436
|
+
var profileCacheKeyByInput = new Map;
|
|
437
|
+
function cacheProfileKey(input, cacheKey) {
|
|
438
|
+
const key = canonicalRootKeyLexical(input);
|
|
439
|
+
profileCacheKeyByInput.delete(key);
|
|
440
|
+
profileCacheKeyByInput.set(key, cacheKey);
|
|
441
|
+
while (profileCacheKeyByInput.size > _internals2.cacheCapacity) {
|
|
442
|
+
const oldest = profileCacheKeyByInput.keys().next().value;
|
|
443
|
+
if (oldest === undefined)
|
|
444
|
+
break;
|
|
445
|
+
profileCacheKeyByInput.delete(oldest);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
async function directoryFingerprint(dir) {
|
|
449
|
+
try {
|
|
450
|
+
const stat = await fs4.promises.stat(dir);
|
|
451
|
+
if (!stat.isDirectory())
|
|
452
|
+
return null;
|
|
453
|
+
return {
|
|
454
|
+
directory: dir,
|
|
455
|
+
dev: stat.dev,
|
|
456
|
+
ino: stat.ino,
|
|
457
|
+
size: stat.size,
|
|
458
|
+
mtimeMs: stat.mtimeMs,
|
|
459
|
+
ctimeMs: stat.ctimeMs
|
|
460
|
+
};
|
|
461
|
+
} catch {
|
|
462
|
+
return null;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
function fingerprintsMatch(expected, actual) {
|
|
466
|
+
return expected.dev === actual.dev && expected.ino === actual.ino && expected.size === actual.size && expected.mtimeMs === actual.mtimeMs && expected.ctimeMs === actual.ctimeMs;
|
|
467
|
+
}
|
|
468
|
+
async function readDirectoryForManifestWalk(dir) {
|
|
469
|
+
const entries = await tryReadDirectoryAsync(dir);
|
|
470
|
+
const fingerprint = await directoryFingerprint(dir);
|
|
471
|
+
const after = await tryReadDirectoryAsync(dir);
|
|
472
|
+
if (entries === null || fingerprint === null || after === null) {
|
|
473
|
+
return { entries: null, complete: false, stopAtCurrent: true };
|
|
474
|
+
}
|
|
475
|
+
if (entries.size !== after.size || [...entries].some((entry) => !after.has(entry))) {
|
|
476
|
+
return { entries: null, complete: false, stopAtCurrent: false };
|
|
477
|
+
}
|
|
478
|
+
return { entries, fingerprint, complete: true };
|
|
479
|
+
}
|
|
480
|
+
async function isManifestRootCacheEntryValid(entry) {
|
|
481
|
+
for (const fingerprint of entry.trace) {
|
|
482
|
+
const current = await directoryFingerprint(fingerprint.directory);
|
|
483
|
+
if (current === null || !fingerprintsMatch(fingerprint, current)) {
|
|
484
|
+
return false;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
return true;
|
|
488
|
+
}
|
|
489
|
+
async function isSelectedRootObservationStillValid(resolution, hash, signal) {
|
|
490
|
+
const currentHash = await manifestHash(resolution.root, signal);
|
|
491
|
+
throwIfAborted(signal);
|
|
492
|
+
if (currentHash !== hash || resolution.rootHadManifest && currentHash === "") {
|
|
493
|
+
return false;
|
|
494
|
+
}
|
|
495
|
+
return true;
|
|
496
|
+
}
|
|
497
|
+
function evictManifestRootCacheIfNeeded() {
|
|
498
|
+
if (manifestRootCache.size <= _internals2.cacheCapacity)
|
|
499
|
+
return;
|
|
500
|
+
let oldestKey;
|
|
501
|
+
let oldestOrder = Infinity;
|
|
502
|
+
for (const [key, value] of manifestRootCache) {
|
|
503
|
+
if (value.insertOrder < oldestOrder) {
|
|
504
|
+
oldestKey = key;
|
|
505
|
+
oldestOrder = value.insertOrder;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
if (oldestKey !== undefined)
|
|
509
|
+
manifestRootCache.delete(oldestKey);
|
|
510
|
+
}
|
|
511
|
+
function cacheManifestRoot(key, root, rootHadManifest, trace, cacheable, signal) {
|
|
512
|
+
if (!cacheable || signal?.aborted)
|
|
513
|
+
return;
|
|
514
|
+
manifestRootCache.set(key, {
|
|
515
|
+
root,
|
|
516
|
+
rootHadManifest,
|
|
517
|
+
trace,
|
|
518
|
+
insertOrder: manifestRootInsertCounter++
|
|
519
|
+
});
|
|
520
|
+
evictManifestRootCacheIfNeeded();
|
|
521
|
+
}
|
|
522
|
+
function throwIfAborted(signal) {
|
|
523
|
+
if (signal?.aborted) {
|
|
524
|
+
throw signal.reason ?? new Error("manifest-root lookup aborted");
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
async function findManifestRoot(start, signal) {
|
|
528
|
+
throwIfAborted(signal);
|
|
429
529
|
const resolved = path4.resolve(start);
|
|
430
|
-
const key =
|
|
530
|
+
const key = await canonicalRootKeyFreshAsync(resolved);
|
|
531
|
+
throwIfAborted(signal);
|
|
431
532
|
const cached = manifestRootCache.get(key);
|
|
432
|
-
if (cached !== undefined)
|
|
433
|
-
|
|
533
|
+
if (cached !== undefined) {
|
|
534
|
+
if (await isManifestRootCacheEntryValid(cached)) {
|
|
535
|
+
throwIfAborted(signal);
|
|
536
|
+
return {
|
|
537
|
+
root: cached.root,
|
|
538
|
+
rootHadManifest: cached.rootHadManifest,
|
|
539
|
+
key,
|
|
540
|
+
trace: [],
|
|
541
|
+
cacheable: false
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
manifestRootCache.delete(key);
|
|
545
|
+
}
|
|
434
546
|
let cur = resolved;
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
547
|
+
const trace = [];
|
|
548
|
+
let cacheable = true;
|
|
549
|
+
for (let i = 0;i < MAX_MANIFEST_SEARCH_DEPTH; i++) {
|
|
550
|
+
const snapshot = await readDirectoryForManifestWalk(cur);
|
|
551
|
+
throwIfAborted(signal);
|
|
552
|
+
if (!snapshot.complete) {
|
|
553
|
+
if (snapshot.stopAtCurrent) {
|
|
554
|
+
return {
|
|
555
|
+
root: cur,
|
|
556
|
+
rootHadManifest: false,
|
|
557
|
+
key,
|
|
558
|
+
trace,
|
|
559
|
+
cacheable: false
|
|
560
|
+
};
|
|
443
561
|
}
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
562
|
+
cacheable = false;
|
|
563
|
+
} else {
|
|
564
|
+
trace.push(snapshot.fingerprint);
|
|
565
|
+
}
|
|
566
|
+
const { entries } = snapshot;
|
|
567
|
+
if (entries !== null) {
|
|
568
|
+
if (entries.size > 0) {
|
|
569
|
+
for (const name of MANIFEST_FILES) {
|
|
570
|
+
if (entries.has(name)) {
|
|
571
|
+
return {
|
|
572
|
+
root: cur,
|
|
573
|
+
rootHadManifest: true,
|
|
574
|
+
key,
|
|
575
|
+
trace,
|
|
576
|
+
cacheable
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
if (entries.has(".git")) {
|
|
581
|
+
return {
|
|
582
|
+
root: cur,
|
|
583
|
+
rootHadManifest: false,
|
|
584
|
+
key,
|
|
585
|
+
trace,
|
|
586
|
+
cacheable
|
|
587
|
+
};
|
|
588
|
+
}
|
|
447
589
|
}
|
|
448
590
|
}
|
|
449
591
|
const parent = path4.dirname(cur);
|
|
@@ -451,8 +593,7 @@ function findManifestRoot(start) {
|
|
|
451
593
|
break;
|
|
452
594
|
cur = parent;
|
|
453
595
|
}
|
|
454
|
-
|
|
455
|
-
return start;
|
|
596
|
+
return { root: start, rootHadManifest: false, key, trace, cacheable };
|
|
456
597
|
}
|
|
457
598
|
function evictIfNeeded() {
|
|
458
599
|
if (cache.size <= _internals2.cacheCapacity)
|
|
@@ -468,55 +609,88 @@ function evictIfNeeded() {
|
|
|
468
609
|
if (oldestKey !== undefined)
|
|
469
610
|
cache.delete(oldestKey);
|
|
470
611
|
}
|
|
471
|
-
async function pickBackend(dir) {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
612
|
+
async function pickBackend(dir, signal) {
|
|
613
|
+
for (let attempt = 0;attempt < 2; attempt++) {
|
|
614
|
+
const resolution = await findManifestRoot(dir, signal);
|
|
615
|
+
const { root } = resolution;
|
|
616
|
+
throwIfAborted(signal);
|
|
617
|
+
const hash = await manifestHash(root, signal);
|
|
618
|
+
throwIfAborted(signal);
|
|
619
|
+
if (resolution.rootHadManifest && hash === "") {
|
|
620
|
+
manifestRootCache.delete(resolution.key);
|
|
621
|
+
if (attempt === 0)
|
|
622
|
+
continue;
|
|
623
|
+
profileCacheKeyByInput.delete(canonicalRootKeyLexical(dir));
|
|
624
|
+
return null;
|
|
625
|
+
}
|
|
626
|
+
const cacheKey = await canonicalRootKeyFreshAsync(root);
|
|
627
|
+
throwIfAborted(signal);
|
|
628
|
+
const cached = cache.get(cacheKey);
|
|
629
|
+
if (cached && cached.hash === hash) {
|
|
630
|
+
cacheManifestRoot(resolution.key, root, resolution.rootHadManifest, resolution.trace, resolution.cacheable, signal);
|
|
631
|
+
cacheProfileKey(dir, cacheKey);
|
|
632
|
+
return cached.backend;
|
|
633
|
+
}
|
|
634
|
+
if (hash === "") {
|
|
635
|
+
cacheManifestRoot(resolution.key, root, resolution.rootHadManifest, resolution.trace, resolution.cacheable, signal);
|
|
636
|
+
cache.set(cacheKey, {
|
|
637
|
+
hash,
|
|
638
|
+
backend: null,
|
|
639
|
+
profiles: [],
|
|
640
|
+
insertOrder: insertCounter++
|
|
641
|
+
});
|
|
642
|
+
evictIfNeeded();
|
|
643
|
+
cacheProfileKey(dir, cacheKey);
|
|
644
|
+
return null;
|
|
645
|
+
}
|
|
646
|
+
const profiles = await _internals2.detectProjectLanguages(root);
|
|
647
|
+
throwIfAborted(signal);
|
|
648
|
+
if (!await isSelectedRootObservationStillValid(resolution, hash, signal)) {
|
|
649
|
+
manifestRootCache.delete(resolution.key);
|
|
650
|
+
if (attempt === 0)
|
|
651
|
+
continue;
|
|
652
|
+
profileCacheKeyByInput.delete(canonicalRootKeyLexical(dir));
|
|
653
|
+
return null;
|
|
654
|
+
}
|
|
655
|
+
cacheManifestRoot(resolution.key, root, resolution.rootHadManifest, resolution.trace, resolution.cacheable, signal);
|
|
656
|
+
if (profiles.length === 0) {
|
|
657
|
+
cache.set(cacheKey, {
|
|
658
|
+
hash,
|
|
659
|
+
backend: null,
|
|
660
|
+
profiles: [],
|
|
661
|
+
insertOrder: insertCounter++
|
|
662
|
+
});
|
|
663
|
+
evictIfNeeded();
|
|
664
|
+
cacheProfileKey(dir, cacheKey);
|
|
665
|
+
return null;
|
|
666
|
+
}
|
|
667
|
+
const winner = profiles[0];
|
|
668
|
+
const backend = LANGUAGE_BACKEND_REGISTRY.getOrDefault(winner.id) ?? null;
|
|
491
669
|
cache.set(cacheKey, {
|
|
492
670
|
hash,
|
|
493
|
-
backend
|
|
494
|
-
profiles:
|
|
671
|
+
backend,
|
|
672
|
+
profiles: profiles.map((p) => ({ id: p.id })),
|
|
495
673
|
insertOrder: insertCounter++
|
|
496
674
|
});
|
|
497
675
|
evictIfNeeded();
|
|
498
|
-
|
|
676
|
+
cacheProfileKey(dir, cacheKey);
|
|
677
|
+
return backend;
|
|
499
678
|
}
|
|
500
|
-
|
|
501
|
-
const backend = LANGUAGE_BACKEND_REGISTRY.getOrDefault(winner.id) ?? null;
|
|
502
|
-
cache.set(cacheKey, {
|
|
503
|
-
hash,
|
|
504
|
-
backend,
|
|
505
|
-
profiles: profiles.map((p) => ({ id: p.id })),
|
|
506
|
-
insertOrder: insertCounter++
|
|
507
|
-
});
|
|
508
|
-
evictIfNeeded();
|
|
509
|
-
return backend;
|
|
679
|
+
return null;
|
|
510
680
|
}
|
|
511
681
|
function pickedProfiles(dir) {
|
|
512
|
-
const
|
|
513
|
-
|
|
682
|
+
const cacheKey = profileCacheKeyByInput.get(canonicalRootKeyLexical(dir));
|
|
683
|
+
if (cacheKey === undefined)
|
|
684
|
+
return [];
|
|
685
|
+
const cached = cache.get(cacheKey);
|
|
514
686
|
return cached?.profiles ?? [];
|
|
515
687
|
}
|
|
516
688
|
function clearDispatchCache() {
|
|
517
689
|
cache.clear();
|
|
518
690
|
manifestRootCache.clear();
|
|
691
|
+
profileCacheKeyByInput.clear();
|
|
519
692
|
insertCounter = 0;
|
|
693
|
+
manifestRootInsertCounter = 0;
|
|
520
694
|
}
|
|
521
695
|
export {
|
|
522
696
|
pickedProfiles,
|
package/dist/cli/{evidence-summary-service-74az43cb.js → evidence-summary-service-bzpfaypy.js}
RENAMED
|
@@ -6,36 +6,36 @@ import {
|
|
|
6
6
|
loadPlanJsonOnly,
|
|
7
7
|
mergeDurableGateEntriesFromEvidence,
|
|
8
8
|
readDurableGateEvidence
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
} from "./index-arqv4psy.js";
|
|
10
|
+
import"./index-83r0v5tn.js";
|
|
11
11
|
import"./index-txdagbh7.js";
|
|
12
|
+
import"./index-9br68j86.js";
|
|
12
13
|
import"./index-cw912re7.js";
|
|
13
|
-
import"./index-9ss2m4rs.js";
|
|
14
14
|
import"./index-zsrtt42s.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
15
|
+
import"./index-3r6k6qa7.js";
|
|
16
|
+
import"./index-09gv90d7.js";
|
|
17
|
+
import"./index-8vbahc4c.js";
|
|
18
18
|
import"./index-p612v1mv.js";
|
|
19
19
|
import"./index-3qf1vxtb.js";
|
|
20
20
|
import"./index-n832052r.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-ry16d01s.js";
|
|
21
|
+
import"./index-z7z3g5wt.js";
|
|
22
|
+
import"./index-z6we1abx.js";
|
|
23
|
+
import"./index-962qme08.js";
|
|
24
|
+
import"./index-hhkm64wh.js";
|
|
26
25
|
import"./index-n4fzmqz8.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-f6zgz02s.js";
|
|
31
|
-
import"./index-7qefgq4j.js";
|
|
32
|
-
import"./index-ee6ydtfe.js";
|
|
26
|
+
import"./index-ry16d01s.js";
|
|
27
|
+
import"./index-gs12223x.js";
|
|
28
|
+
import"./index-vgpedapd.js";
|
|
33
29
|
import"./index-7g4c7s5r.js";
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
30
|
+
import"./index-x7pm61wk.js";
|
|
31
|
+
import"./index-tcj8v6my.js";
|
|
32
|
+
import"./index-1xnse449.js";
|
|
33
|
+
import"./index-ee6ydtfe.js";
|
|
34
|
+
import"./index-wjet7x0a.js";
|
|
35
|
+
import"./index-0mhftbpp.js";
|
|
36
|
+
import"./index-a1w58b47.js";
|
|
37
|
+
import"./index-2b1hd1fx.js";
|
|
38
|
+
import"./index-g5m43paw.js";
|
|
39
39
|
import"./index-bk5tah7q.js";
|
|
40
40
|
import"./index-bpmtbmy9.js";
|
|
41
41
|
import"./index-zpsr8rpc.js";
|
|
@@ -21,19 +21,19 @@ import {
|
|
|
21
21
|
reduceTaskWorkflowSnapshot,
|
|
22
22
|
transitionTaskWorkflowEvidence,
|
|
23
23
|
withTaskEvidenceTransaction
|
|
24
|
-
} from "./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
24
|
+
} from "./index-3r6k6qa7.js";
|
|
25
|
+
import"./index-09gv90d7.js";
|
|
26
|
+
import"./index-8vbahc4c.js";
|
|
27
27
|
import"./index-p612v1mv.js";
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-m21x1bkx.js";
|
|
30
|
-
import"./index-f6zgz02s.js";
|
|
31
|
-
import"./index-7qefgq4j.js";
|
|
32
|
-
import"./index-ee6ydtfe.js";
|
|
28
|
+
import"./index-vgpedapd.js";
|
|
33
29
|
import"./index-7g4c7s5r.js";
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
30
|
+
import"./index-x7pm61wk.js";
|
|
31
|
+
import"./index-tcj8v6my.js";
|
|
32
|
+
import"./index-1xnse449.js";
|
|
33
|
+
import"./index-ee6ydtfe.js";
|
|
34
|
+
import"./index-0mhftbpp.js";
|
|
35
|
+
import"./index-a1w58b47.js";
|
|
36
|
+
import"./index-g5m43paw.js";
|
|
37
37
|
import"./index-bpmtbmy9.js";
|
|
38
38
|
import"./index-zpsr8rpc.js";
|
|
39
39
|
import"./index-yzjaj53h.js";
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
handleGuardrailExplain
|
|
4
|
+
} from "./index-3ws11dq0.js";
|
|
5
|
+
import"./index-y1sj2e1n.js";
|
|
6
|
+
import"./index-d5qf7hvh.js";
|
|
7
|
+
import"./index-k73ehxa1.js";
|
|
8
|
+
import"./index-dme7wvwg.js";
|
|
9
|
+
import"./index-f8cc92g7.js";
|
|
10
|
+
import"./index-rrne6g2m.js";
|
|
11
|
+
import"./index-arqv4psy.js";
|
|
12
|
+
import"./index-83r0v5tn.js";
|
|
13
|
+
import"./index-txdagbh7.js";
|
|
14
|
+
import"./index-9br68j86.js";
|
|
15
|
+
import"./index-cw912re7.js";
|
|
16
|
+
import"./index-f91fhch0.js";
|
|
17
|
+
import"./index-ce8p9t28.js";
|
|
18
|
+
import"./index-pdcperq5.js";
|
|
19
|
+
import"./index-fyfbpz4f.js";
|
|
20
|
+
import"./index-mtepgqan.js";
|
|
21
|
+
import"./index-zsrtt42s.js";
|
|
22
|
+
import"./index-5sjq3shs.js";
|
|
23
|
+
import"./index-m7cwnt9r.js";
|
|
24
|
+
import"./index-gmjg65tm.js";
|
|
25
|
+
import"./index-b43rt5ph.js";
|
|
26
|
+
import"./index-q7sjgr1y.js";
|
|
27
|
+
import"./index-3r6k6qa7.js";
|
|
28
|
+
import"./index-09gv90d7.js";
|
|
29
|
+
import"./index-sjkg2hc4.js";
|
|
30
|
+
import"./index-m3z83nhs.js";
|
|
31
|
+
import"./index-8vbahc4c.js";
|
|
32
|
+
import"./index-p612v1mv.js";
|
|
33
|
+
import"./index-shrf0wt3.js";
|
|
34
|
+
import"./index-syedr4e3.js";
|
|
35
|
+
import"./index-rtry5xyf.js";
|
|
36
|
+
import"./index-s7a9dqtb.js";
|
|
37
|
+
import"./index-3qf1vxtb.js";
|
|
38
|
+
import"./index-n832052r.js";
|
|
39
|
+
import"./index-jhd3pmd1.js";
|
|
40
|
+
import"./index-z7z3g5wt.js";
|
|
41
|
+
import"./index-z6we1abx.js";
|
|
42
|
+
import"./index-g409c7ke.js";
|
|
43
|
+
import"./index-962qme08.js";
|
|
44
|
+
import"./index-hhkm64wh.js";
|
|
45
|
+
import"./index-n4fzmqz8.js";
|
|
46
|
+
import"./index-ry16d01s.js";
|
|
47
|
+
import"./index-gs12223x.js";
|
|
48
|
+
import"./index-18rfc7qv.js";
|
|
49
|
+
import"./index-vzm6zre7.js";
|
|
50
|
+
import"./index-ae75rja9.js";
|
|
51
|
+
import"./index-0q839sg6.js";
|
|
52
|
+
import"./index-vgpedapd.js";
|
|
53
|
+
import"./index-7g4c7s5r.js";
|
|
54
|
+
import"./index-x7pm61wk.js";
|
|
55
|
+
import"./index-tcj8v6my.js";
|
|
56
|
+
import"./index-1xnse449.js";
|
|
57
|
+
import"./index-ee6ydtfe.js";
|
|
58
|
+
import"./index-wjet7x0a.js";
|
|
59
|
+
import"./index-0mhftbpp.js";
|
|
60
|
+
import"./index-a1w58b47.js";
|
|
61
|
+
import"./index-2b1hd1fx.js";
|
|
62
|
+
import"./index-g5m43paw.js";
|
|
63
|
+
import"./index-bk5tah7q.js";
|
|
64
|
+
import"./index-bpmtbmy9.js";
|
|
65
|
+
import"./index-zpsr8rpc.js";
|
|
66
|
+
import"./index-q1r1cfww.js";
|
|
67
|
+
import"./index-yzjaj53h.js";
|
|
68
|
+
import"./index-zgwm4ryv.js";
|
|
69
|
+
import"./index-a76rekgs.js";
|
|
70
|
+
export {
|
|
71
|
+
handleGuardrailExplain
|
|
72
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailLog
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-79234evf.js";
|
|
5
|
+
import"./index-dme7wvwg.js";
|
|
6
6
|
import"./index-p612v1mv.js";
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
7
|
+
import"./index-z6we1abx.js";
|
|
8
|
+
import"./index-gs12223x.js";
|
|
9
|
+
import"./index-x7pm61wk.js";
|
|
10
|
+
import"./index-tcj8v6my.js";
|
|
11
|
+
import"./index-1xnse449.js";
|
|
12
12
|
import"./index-ee6ydtfe.js";
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
13
|
+
import"./index-2b1hd1fx.js";
|
|
14
|
+
import"./index-g5m43paw.js";
|
|
15
15
|
import"./index-bk5tah7q.js";
|
|
16
16
|
import"./index-bpmtbmy9.js";
|
|
17
17
|
import"./index-zpsr8rpc.js";
|