opencode-swarm 7.164.4 → 7.164.5
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/dist/cli/{coder-settlement-zzy2egsx.js → coder-settlement-x9wbqx46.js} +8 -8
- package/dist/cli/{config-doctor-62xd5far.js → config-doctor-axd9d6hs.js} +2 -2
- package/dist/cli/{core-7kdmc7h9.js → core-f1a1fk13.js} +1 -1
- package/dist/cli/{curation-policy-913dnxqq.js → curation-policy-2cy7wejw.js} +5 -5
- package/dist/cli/{curator-4s6ekk85.js → curator-b104f7a7.js} +29 -29
- package/dist/cli/{curator-llm-factory-q3t3r632.js → curator-llm-factory-cv7ft0mb.js} +29 -29
- package/dist/cli/{evidence-summary-service-gw936xgz.js → evidence-summary-service-5xsjs3x3.js} +12 -12
- package/dist/cli/{gate-evidence-4we18rhr.js → gate-evidence-ypja4156.js} +5 -5
- package/dist/cli/{guardrail-explain-jjbnrcqn.js → guardrail-explain-cvha7b9p.js} +30 -30
- package/dist/cli/{guardrail-log-9d4f09qt.js → guardrail-log-6t4e2j5f.js} +6 -6
- package/dist/cli/{guardrail-reset-1hpd6bkj.js → guardrail-reset-es0bg976.js} +29 -29
- package/dist/cli/{hive-promoter-nr8dsxhe.js → hive-promoter-yzv5g7jy.js} +29 -29
- package/dist/cli/{index-7zbk1e24.js → index-0trtcm9n.js} +8 -8
- package/dist/cli/{index-stj85yx1.js → index-164m995b.js} +1 -1
- package/dist/cli/{index-k1m9214q.js → index-1dz8hv7p.js} +3 -3
- package/dist/cli/{index-k8vy89vm.js → index-1q2dwv69.js} +1 -1
- package/dist/cli/{index-x9ayhkkx.js → index-25jze7sf.js} +1 -1
- package/dist/cli/{index-qfrrcdhj.js → index-25z5qwkk.js} +1 -1
- package/dist/cli/{index-qkwx4rrc.js → index-3gb7bw7h.js} +80 -69
- package/dist/cli/{index-ne38vr77.js → index-3rrc5x4v.js} +2 -2
- package/dist/cli/{index-5k226hxp.js → index-4emx8hhh.js} +1 -1
- package/dist/cli/{index-v7a8e7rv.js → index-4jmtdtm9.js} +2 -2
- package/dist/cli/{index-jba9jgse.js → index-4krjn1gn.js} +2 -2
- package/dist/cli/{index-z408nj03.js → index-50s9q4c1.js} +2 -2
- package/dist/cli/{index-vx28633q.js → index-553veay1.js} +75 -23
- package/dist/cli/{index-4tgtbptw.js → index-7rat6nyh.js} +3 -3
- package/dist/cli/{index-q9yz8da4.js → index-8h9nng7f.js} +4 -4
- package/dist/cli/{index-x63jqvj3.js → index-aaqbhn9h.js} +2 -2
- package/dist/cli/{index-nwpg81ke.js → index-aper29nf.js} +1 -1
- package/dist/cli/{index-pztdbtgw.js → index-ea7sehgy.js} +3 -3
- package/dist/cli/{index-cf54ftj1.js → index-er8ba9be.js} +3 -3
- package/dist/cli/{index-08e6x59x.js → index-fwebva1m.js} +5 -5
- package/dist/cli/{index-gt6p21cs.js → index-fxxja498.js} +1 -1
- package/dist/cli/{index-prammvxb.js → index-hnjkpk57.js} +1 -1
- package/dist/cli/{index-8fjx6k2s.js → index-j9a4fsxg.js} +1 -1
- package/dist/cli/{index-vzs3st30.js → index-maxz22c1.js} +7 -7
- package/dist/cli/{index-eh2k07pp.js → index-q0gtgwyr.js} +6 -6
- package/dist/cli/{index-t2tqbq62.js → index-rc6hec4j.js} +4 -4
- package/dist/cli/{index-xjw7j7et.js → index-s09b63xg.js} +5 -5
- package/dist/cli/{index-et9y4ga8.js → index-ssb67ff6.js} +31 -31
- package/dist/cli/{index-0m94jsss.js → index-wbnyc50b.js} +4 -4
- package/dist/cli/{index-yx3xqb0w.js → index-xm7dc14y.js} +3 -3
- package/dist/cli/{index-tme2kjvq.js → index-y42pra05.js} +3 -3
- package/dist/cli/{index-wzmchqry.js → index-yrsag0vs.js} +31 -52
- package/dist/cli/{index-a0jhxx5q.js → index-ywtcznk2.js} +12 -4
- package/dist/cli/index.js +29 -29
- package/dist/cli/{knowledge-escalator-hp1ctjpe.js → knowledge-escalator-evjd8g7y.js} +11 -11
- package/dist/cli/{knowledge-events-0qrenmng.js → knowledge-events-q46z1wy6.js} +9 -9
- package/dist/cli/{knowledge-link-f5g5d171.js → knowledge-link-ffmzf72f.js} +4 -4
- package/dist/cli/{knowledge-store-8er824g9.js → knowledge-store-z82f5x9k.js} +5 -5
- package/dist/cli/{knowledge-validator-0jd3htcj.js → knowledge-validator-19gbnxx2.js} +7 -7
- package/dist/cli/{pending-delegations-d1n5faxg.js → pending-delegations-t4cqk5ha.js} +4 -4
- package/dist/cli/{pr-subscriptions-s2b2yvbd.js → pr-subscriptions-3enjtq0k.js} +4 -4
- package/dist/cli/{pr-workflow-gate-51s842yy.js → pr-workflow-gate-3ecgfsge.js} +29 -29
- package/dist/cli/{runner-nkh65pcm.js → runner-wqy2hbxn.js} +5 -5
- package/dist/cli/{scan-cursor-gt55f3d6.js → scan-cursor-8wcy0dvf.js} +6 -6
- package/dist/cli/{schema-rpdz901j.js → schema-hsw9r2tm.js} +5 -1
- package/dist/cli/{scope-persistence-js1ywq04.js → scope-persistence-mbwt4grd.js} +8 -8
- package/dist/cli/{skill-generator-xsxes2w0.js → skill-generator-kg32a5jy.js} +13 -13
- package/dist/cli/{telemetry-9tfts5q2.js → telemetry-j14cj552.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-54ca6mb8.js → worktree-collision-ownership-0rfw6kp3.js} +4 -4
- package/dist/cli/{worktree-isolation-haesnft8.js → worktree-isolation-qcwt09ve.js} +29 -29
- package/dist/config/index.d.ts +3 -3
- package/dist/config/loader.d.ts +34 -1
- package/dist/config/schema.d.ts +61 -7
- package/dist/index.js +59 -59
- package/dist/tools/build-check.d.ts +8 -0
- package/dist/tools/placeholder-scan.d.ts +10 -1
- package/dist/tools/pre-check-batch.d.ts +20 -8
- package/dist/tools/quality-budget.d.ts +2 -0
- package/dist/tools/sast-scan.d.ts +10 -2
- package/dist/tools/sbom-generate.d.ts +14 -0
- package/dist/tools/syntax-check.d.ts +11 -3
- package/package.json +1 -1
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
detectWindowsWrites,
|
|
15
15
|
getSharedClassifierGuardrailBlock,
|
|
16
16
|
resolveWriteTargets
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-3gb7bw7h.js";
|
|
18
18
|
import {
|
|
19
19
|
checkFileAuthority,
|
|
20
20
|
classifyFile,
|
|
21
21
|
isInDeclaredScope,
|
|
22
22
|
redactPath,
|
|
23
23
|
redactShellCommand
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-ea7sehgy.js";
|
|
25
25
|
|
|
26
26
|
// src/services/guardrail-explain-service.ts
|
|
27
27
|
import path from "path";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
init_loader,
|
|
4
4
|
loadPluginConfigWithMeta
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-553veay1.js";
|
|
6
6
|
import {
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-yrsag0vs.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_WORKTREE_ISOLATION_CONFIG,
|
|
11
11
|
init_constants
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
} from "./index-txdagbh7.js";
|
|
10
10
|
import {
|
|
11
11
|
atomicWriteFile
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-4emx8hhh.js";
|
|
13
13
|
import {
|
|
14
14
|
assertProjectRoot,
|
|
15
15
|
withEvidenceLock
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-fxxja498.js";
|
|
17
17
|
import {
|
|
18
18
|
exports_external,
|
|
19
19
|
init_zod
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
PluginConfigSchema,
|
|
7
7
|
init_schema,
|
|
8
8
|
resolveExternalSkillsConfig
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-yrsag0vs.js";
|
|
10
10
|
import {
|
|
11
11
|
GIT_BINARY_ENV_VAR,
|
|
12
12
|
init_git_executable
|
|
@@ -237,9 +237,11 @@ var init_sanitize_malformed_values = () => {};
|
|
|
237
237
|
// src/config/loader.ts
|
|
238
238
|
var exports_loader = {};
|
|
239
239
|
__export(exports_loader, {
|
|
240
|
+
resetConfigAdvisoryDedup: () => resetConfigAdvisoryDedup,
|
|
240
241
|
loadPluginConfigWithMetaAsync: () => loadPluginConfigWithMetaAsync,
|
|
241
242
|
loadPluginConfigWithMeta: () => loadPluginConfigWithMeta,
|
|
242
243
|
loadPluginConfig: () => loadPluginConfig,
|
|
244
|
+
loadGateOverrides: () => loadGateOverrides,
|
|
243
245
|
loadAgentPrompt: () => loadAgentPrompt,
|
|
244
246
|
getSafeDefaultConfigLoadResult: () => getSafeDefaultConfigLoadResult,
|
|
245
247
|
formatZodIssues: () => formatZodIssues,
|
|
@@ -252,6 +254,15 @@ import * as fs from "fs";
|
|
|
252
254
|
import * as fsPromises from "fs/promises";
|
|
253
255
|
import * as os from "os";
|
|
254
256
|
import * as path from "path";
|
|
257
|
+
function gatesAdvisoryWarn(message, data) {
|
|
258
|
+
if (gatesAdvisorySignatures.has(message))
|
|
259
|
+
return;
|
|
260
|
+
if (gatesAdvisorySignatures.size >= MAX_GATES_ADVISORY_SIGNATURES) {
|
|
261
|
+
gatesAdvisorySignatures.clear();
|
|
262
|
+
}
|
|
263
|
+
gatesAdvisorySignatures.add(message);
|
|
264
|
+
advisoryWarn(message, data);
|
|
265
|
+
}
|
|
255
266
|
function getUserConfigDir() {
|
|
256
267
|
return process.env.XDG_CONFIG_HOME || path.join(os.homedir(), ".config");
|
|
257
268
|
}
|
|
@@ -346,7 +357,7 @@ function sanitizeGatesConfig(raw) {
|
|
|
346
357
|
return { result: raw, strippedKeys };
|
|
347
358
|
}
|
|
348
359
|
if (typeof raw.gates !== "object" || raw.gates === null || Array.isArray(raw.gates)) {
|
|
349
|
-
|
|
360
|
+
gatesAdvisoryWarn("[opencode-swarm] gates config validation failed: expected an object. Quality gates will use defaults; other config sections remain active.");
|
|
350
361
|
const cleaned2 = { ...raw };
|
|
351
362
|
delete cleaned2.gates;
|
|
352
363
|
strippedKeys.push("gates");
|
|
@@ -357,7 +368,7 @@ function sanitizeGatesConfig(raw) {
|
|
|
357
368
|
for (const [key, value] of Object.entries(cleanedGates)) {
|
|
358
369
|
const schema = gateSchemas[key];
|
|
359
370
|
if (!schema) {
|
|
360
|
-
|
|
371
|
+
gatesAdvisoryWarn(`[opencode-swarm] Unknown gates config section "gates.${key}" ignored. Other config sections remain active.`);
|
|
361
372
|
delete cleanedGates[key];
|
|
362
373
|
strippedKeys.push(`gates.${key}`);
|
|
363
374
|
continue;
|
|
@@ -369,7 +380,7 @@ function sanitizeGatesConfig(raw) {
|
|
|
369
380
|
const knownFieldSet = new Set(knownFields);
|
|
370
381
|
for (const fieldName of Object.keys(cleanedSection)) {
|
|
371
382
|
if (!knownFieldSet.has(fieldName)) {
|
|
372
|
-
|
|
383
|
+
gatesAdvisoryWarn(`[opencode-swarm] Unknown gates config key "gates.${key}.${fieldName}" ignored. Other config sections remain active.`);
|
|
373
384
|
delete cleanedSection[fieldName];
|
|
374
385
|
strippedKeys.push(`gates.${key}.${fieldName}`);
|
|
375
386
|
}
|
|
@@ -379,7 +390,7 @@ function sanitizeGatesConfig(raw) {
|
|
|
379
390
|
}
|
|
380
391
|
const sectionResult = schema.safeParse(sectionValue);
|
|
381
392
|
if (!sectionResult.success) {
|
|
382
|
-
|
|
393
|
+
gatesAdvisoryWarn(`[opencode-swarm] gates.${key} config validation failed; that gate section will use defaults and other config sections remain active:`, formatZodIssues(sectionResult.error));
|
|
383
394
|
delete cleanedGates[key];
|
|
384
395
|
if (!strippedKeys.includes(`gates.${key}`)) {
|
|
385
396
|
strippedKeys.push(`gates.${key}`);
|
|
@@ -390,10 +401,11 @@ function sanitizeGatesConfig(raw) {
|
|
|
390
401
|
if (gatesResult.success) {
|
|
391
402
|
return {
|
|
392
403
|
result: { ...raw, gates: gatesResult.data },
|
|
393
|
-
strippedKeys
|
|
404
|
+
strippedKeys,
|
|
405
|
+
rawGates: cleanedGates
|
|
394
406
|
};
|
|
395
407
|
}
|
|
396
|
-
|
|
408
|
+
gatesAdvisoryWarn("[opencode-swarm] gates config validation failed after section cleanup; quality gates will use defaults and other config sections remain active:", formatZodIssues(gatesResult.error));
|
|
397
409
|
const cleaned = { ...raw };
|
|
398
410
|
delete cleaned.gates;
|
|
399
411
|
if (!strippedKeys.includes("gates")) {
|
|
@@ -403,8 +415,16 @@ function sanitizeGatesConfig(raw) {
|
|
|
403
415
|
}
|
|
404
416
|
function sanitizeSectionConfigs(raw) {
|
|
405
417
|
const { result: afterExternal, strippedKeys: externalStripped } = sanitizeExternalSkillsConfig(raw);
|
|
406
|
-
const {
|
|
407
|
-
|
|
418
|
+
const {
|
|
419
|
+
result,
|
|
420
|
+
strippedKeys: gatesStripped,
|
|
421
|
+
rawGates
|
|
422
|
+
} = sanitizeGatesConfig(afterExternal);
|
|
423
|
+
return {
|
|
424
|
+
result,
|
|
425
|
+
strippedKeys: [...externalStripped, ...gatesStripped],
|
|
426
|
+
rawGates
|
|
427
|
+
};
|
|
408
428
|
}
|
|
409
429
|
function formatZodIssues(error) {
|
|
410
430
|
if (error.issues.length === 0)
|
|
@@ -491,7 +511,11 @@ function buildConfigWithMeta(rawUserConfig, rawProjectConfig, loadedFromFile, co
|
|
|
491
511
|
mergedRaw = { ...mergedRaw, full_auto: { ...fa, locked: true } };
|
|
492
512
|
}
|
|
493
513
|
mergedRaw = migratePresetsConfig(mergedRaw);
|
|
494
|
-
const {
|
|
514
|
+
const {
|
|
515
|
+
result: sanitized,
|
|
516
|
+
strippedKeys: gatesStripped,
|
|
517
|
+
rawGates
|
|
518
|
+
} = sanitizeSectionConfigs(mergedRaw);
|
|
495
519
|
mergedRaw = sanitized;
|
|
496
520
|
const knownTopLevel = new Set(Object.keys(PluginConfigSchema.shape));
|
|
497
521
|
const unknownTopLevel = Object.keys(mergedRaw).filter((key) => !knownTopLevel.has(key));
|
|
@@ -515,14 +539,16 @@ function buildConfigWithMeta(rawUserConfig, rawProjectConfig, loadedFromFile, co
|
|
|
515
539
|
config,
|
|
516
540
|
recovery: "guardrails_defaults",
|
|
517
541
|
removedKeys: [...gatesStripped],
|
|
518
|
-
warnings: []
|
|
542
|
+
warnings: [],
|
|
543
|
+
rawGates
|
|
519
544
|
};
|
|
520
545
|
}
|
|
521
546
|
return {
|
|
522
547
|
config,
|
|
523
548
|
recovery: gatesStripped.length > 0 ? "stripped_keys" : "none",
|
|
524
549
|
removedKeys: [...gatesStripped],
|
|
525
|
-
warnings: []
|
|
550
|
+
warnings: [],
|
|
551
|
+
rawGates
|
|
526
552
|
};
|
|
527
553
|
}
|
|
528
554
|
const { cleaned, removed } = stripUnrecognizedKeys(mergedRaw, firstResult.error);
|
|
@@ -534,12 +560,17 @@ function buildConfigWithMeta(rawUserConfig, rawProjectConfig, loadedFromFile, co
|
|
|
534
560
|
config: secure(recovered.data),
|
|
535
561
|
recovery: "stripped_keys",
|
|
536
562
|
removedKeys: [...gatesStripped, ...removed],
|
|
537
|
-
warnings: []
|
|
563
|
+
warnings: [],
|
|
564
|
+
rawGates
|
|
538
565
|
};
|
|
539
566
|
}
|
|
540
567
|
}
|
|
541
568
|
if (rawUserConfig) {
|
|
542
|
-
const {
|
|
569
|
+
const {
|
|
570
|
+
result: userSanitized,
|
|
571
|
+
strippedKeys: userGatesStripped,
|
|
572
|
+
rawGates: userRawGates
|
|
573
|
+
} = sanitizeSectionConfigs(rawUserConfig);
|
|
543
574
|
const userParseResult = PluginConfigSchema.safeParse(userSanitized);
|
|
544
575
|
if (userParseResult.success) {
|
|
545
576
|
advisoryWarn("[opencode-swarm] Project config ignored due to validation errors. Using user config.");
|
|
@@ -549,7 +580,8 @@ function buildConfigWithMeta(rawUserConfig, rawProjectConfig, loadedFromFile, co
|
|
|
549
580
|
removedKeys: [...gatesStripped, ...userGatesStripped],
|
|
550
581
|
warnings: [
|
|
551
582
|
"Project config ignored due to validation errors; using user config."
|
|
552
|
-
]
|
|
583
|
+
],
|
|
584
|
+
rawGates: userRawGates
|
|
553
585
|
};
|
|
554
586
|
}
|
|
555
587
|
const userStripped = stripUnrecognizedKeys(userSanitized, userParseResult.error);
|
|
@@ -567,7 +599,8 @@ function buildConfigWithMeta(rawUserConfig, rawProjectConfig, loadedFromFile, co
|
|
|
567
599
|
],
|
|
568
600
|
warnings: [
|
|
569
601
|
"Project config ignored due to validation errors; using user config."
|
|
570
|
-
]
|
|
602
|
+
],
|
|
603
|
+
rawGates: userRawGates
|
|
571
604
|
};
|
|
572
605
|
}
|
|
573
606
|
}
|
|
@@ -595,7 +628,8 @@ function buildConfigWithMeta(rawUserConfig, rawProjectConfig, loadedFromFile, co
|
|
|
595
628
|
config: secure(secureParse.data),
|
|
596
629
|
recovery: "sanitized_values",
|
|
597
630
|
removedKeys,
|
|
598
|
-
warnings: []
|
|
631
|
+
warnings: [],
|
|
632
|
+
rawGates
|
|
599
633
|
};
|
|
600
634
|
}
|
|
601
635
|
}
|
|
@@ -633,16 +667,29 @@ function loadPluginConfigWithMeta(directory) {
|
|
|
633
667
|
const projectResult = loadRawConfigFromPath(projectConfigPath);
|
|
634
668
|
const loadedFromFile = userResult.fileExisted || projectResult.fileExisted;
|
|
635
669
|
const configHadErrors = userResult.hadError || projectResult.hadError;
|
|
636
|
-
const { config, recovery, removedKeys, warnings } = buildConfigWithMeta(userResult.config, projectResult.config, loadedFromFile, configHadErrors);
|
|
670
|
+
const { config, recovery, removedKeys, warnings, rawGates } = buildConfigWithMeta(userResult.config, projectResult.config, loadedFromFile, configHadErrors);
|
|
637
671
|
return {
|
|
638
672
|
config,
|
|
639
673
|
loadedFromFile,
|
|
640
674
|
configHadErrors,
|
|
641
675
|
recovery,
|
|
642
676
|
removedKeys,
|
|
643
|
-
warnings
|
|
677
|
+
warnings,
|
|
678
|
+
rawGates
|
|
644
679
|
};
|
|
645
680
|
}
|
|
681
|
+
function loadGateOverrides(directory) {
|
|
682
|
+
try {
|
|
683
|
+
const meta = loadPluginConfigWithMeta(directory);
|
|
684
|
+
return meta.rawGates;
|
|
685
|
+
} catch {
|
|
686
|
+
return;
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
function resetConfigAdvisoryDedup() {
|
|
690
|
+
gatesAdvisorySignatures.clear();
|
|
691
|
+
lastUnknownTopLevelSig = null;
|
|
692
|
+
}
|
|
646
693
|
function getSafeDefaultConfigLoadResult() {
|
|
647
694
|
const { config, recovery, removedKeys, warnings } = buildConfigWithMeta(null, null, false, false);
|
|
648
695
|
return {
|
|
@@ -701,14 +748,15 @@ async function loadPluginConfigWithMetaAsync(directory) {
|
|
|
701
748
|
]);
|
|
702
749
|
const loadedFromFile = userResult.fileExisted || projectResult.fileExisted;
|
|
703
750
|
const configHadErrors = userResult.hadError || projectResult.hadError;
|
|
704
|
-
const { config, recovery, removedKeys, warnings } = buildConfigWithMeta(userResult.config, projectResult.config, loadedFromFile, configHadErrors);
|
|
751
|
+
const { config, recovery, removedKeys, warnings, rawGates } = buildConfigWithMeta(userResult.config, projectResult.config, loadedFromFile, configHadErrors);
|
|
705
752
|
return {
|
|
706
753
|
config,
|
|
707
754
|
loadedFromFile,
|
|
708
755
|
configHadErrors,
|
|
709
756
|
recovery,
|
|
710
757
|
removedKeys,
|
|
711
|
-
warnings
|
|
758
|
+
warnings,
|
|
759
|
+
rawGates
|
|
712
760
|
};
|
|
713
761
|
}
|
|
714
762
|
function loadAgentPrompt(agentName) {
|
|
@@ -732,7 +780,7 @@ function loadAgentPrompt(agentName) {
|
|
|
732
780
|
}
|
|
733
781
|
return result;
|
|
734
782
|
}
|
|
735
|
-
var CONFIG_FILENAME = "opencode-swarm.json", PROMPTS_DIR_NAME = "opencode-swarm", MAX_CONFIG_FILE_BYTES = 102400, lastUnknownTopLevelSig = null, _internals;
|
|
783
|
+
var CONFIG_FILENAME = "opencode-swarm.json", PROMPTS_DIR_NAME = "opencode-swarm", MAX_CONFIG_FILE_BYTES = 102400, lastUnknownTopLevelSig = null, gatesAdvisorySignatures, MAX_GATES_ADVISORY_SIGNATURES = 64, _internals;
|
|
736
784
|
var init_loader = __esm(() => {
|
|
737
785
|
init_warning_buffer();
|
|
738
786
|
init_git_executable();
|
|
@@ -740,9 +788,13 @@ var init_loader = __esm(() => {
|
|
|
740
788
|
init_schema();
|
|
741
789
|
init_merge();
|
|
742
790
|
init_merge();
|
|
791
|
+
gatesAdvisorySignatures = new Set;
|
|
743
792
|
_internals = {
|
|
744
793
|
resetUnknownTopLevelKeyWarning() {
|
|
745
794
|
lastUnknownTopLevelSig = null;
|
|
795
|
+
},
|
|
796
|
+
resetGatesAdvisoryDedup() {
|
|
797
|
+
gatesAdvisorySignatures.clear();
|
|
746
798
|
}
|
|
747
799
|
};
|
|
748
800
|
});
|
|
@@ -812,4 +864,4 @@ var PlanSchema = exports_external.object({
|
|
|
812
864
|
execution_profile: ExecutionProfileSchema.optional()
|
|
813
865
|
});
|
|
814
866
|
|
|
815
|
-
export { ExecutionProfileSchema, TaskStatusSchema, TaskSizeSchema, PhaseStatusSchema, MigrationStatusSchema, TaskSchema, PhaseSchema, PlanSchema, loadPluginConfig, loadPluginConfigWithMeta, getSafeDefaultConfigLoadResult, loadPluginConfigWithMetaAsync, loadAgentPrompt, exports_loader, init_loader };
|
|
867
|
+
export { ExecutionProfileSchema, TaskStatusSchema, TaskSizeSchema, PhaseStatusSchema, MigrationStatusSchema, TaskSchema, PhaseSchema, PlanSchema, loadPluginConfig, loadPluginConfigWithMeta, loadGateOverrides, resetConfigAdvisoryDedup, getSafeDefaultConfigLoadResult, loadPluginConfigWithMetaAsync, loadAgentPrompt, exports_loader, init_loader };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
4
4
|
validateSkillPath
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-rc6hec4j.js";
|
|
6
6
|
import {
|
|
7
7
|
withTimeoutSignal
|
|
8
8
|
} from "./index-q7sjgr1y.js";
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
resolveHiveKnowledgePath,
|
|
13
13
|
resolveSwarmKnowledgePath,
|
|
14
14
|
transactKnowledge
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-q0gtgwyr.js";
|
|
16
16
|
import {
|
|
17
17
|
effectiveRetrievalOutcomes,
|
|
18
18
|
readAuthoritativeKnowledgeCounterRollups
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-0trtcm9n.js";
|
|
20
20
|
import {
|
|
21
21
|
advisoryWarn,
|
|
22
22
|
init_warning_buffer
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import {
|
|
3
3
|
computePlanStructureHash,
|
|
4
4
|
derivePlanId
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-xm7dc14y.js";
|
|
6
6
|
import {
|
|
7
7
|
appendCoreEventSync
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-50s9q4c1.js";
|
|
9
9
|
import {
|
|
10
10
|
unsafePathTextReason
|
|
11
11
|
} from "./index-556ja8an.js";
|
|
12
12
|
import {
|
|
13
13
|
PlanSchema
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-553veay1.js";
|
|
15
15
|
import {
|
|
16
16
|
assertProjectRoot
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-fxxja498.js";
|
|
18
18
|
import {
|
|
19
19
|
atomicWriteSwarmFile,
|
|
20
20
|
atomicWriteSwarmFileSync
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readKnowledge,
|
|
4
4
|
transactKnowledge
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-q0gtgwyr.js";
|
|
6
6
|
import {
|
|
7
7
|
init_git_executable,
|
|
8
8
|
resolveGitExecutableAsync
|
|
9
9
|
} from "./index-9e6fdz2h.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveKnowledgeStoreDir
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-25z5qwkk.js";
|
|
13
13
|
import {
|
|
14
14
|
init_knowledge_types,
|
|
15
15
|
isActiveStatus
|
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
init_schema,
|
|
13
13
|
stripKnownSwarmPrefix
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-yrsag0vs.js";
|
|
15
15
|
import {
|
|
16
16
|
observeStoreHealth
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-164m995b.js";
|
|
18
18
|
import {
|
|
19
19
|
init_constants
|
|
20
20
|
} from "./index-m1nrd3yd.js";
|
|
21
21
|
import {
|
|
22
22
|
telemetry
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-1dz8hv7p.js";
|
|
24
24
|
import {
|
|
25
25
|
init_logger,
|
|
26
26
|
warn
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
} from "./index-r3mvsbtq.js";
|
|
11
11
|
import {
|
|
12
12
|
observeDelegationLedgerPressure
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-164m995b.js";
|
|
14
14
|
import {
|
|
15
15
|
EvidenceLockTimeoutError,
|
|
16
16
|
withEvidenceLock
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-fxxja498.js";
|
|
18
18
|
import {
|
|
19
19
|
exports_external,
|
|
20
20
|
init_zod
|
|
@@ -3947,7 +3947,7 @@ async function reconcileLegacyCoderSettlements(directory, maxRecords, onReconcil
|
|
|
3947
3947
|
const candidates = readDelegations(directory).filter((record) => record.normalizedAgent === "coder" && Boolean(record.legacyCoderSettlementTransfer) && Boolean(record.terminalResult)).slice(0, maxRecords);
|
|
3948
3948
|
if (candidates.length === 0)
|
|
3949
3949
|
return 0;
|
|
3950
|
-
const { transferCoderSettlementToBackground } = await import("./coder-settlement-
|
|
3950
|
+
const { transferCoderSettlementToBackground } = await import("./coder-settlement-x9wbqx46.js");
|
|
3951
3951
|
let transferred = 0;
|
|
3952
3952
|
for (const record of candidates) {
|
|
3953
3953
|
try {
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
reconcileLandedMerge,
|
|
14
14
|
withTaskEvidenceTransaction,
|
|
15
15
|
writeWorkflowWalFile
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-wbnyc50b.js";
|
|
17
17
|
import {
|
|
18
18
|
canonicalRootKeyFresh
|
|
19
19
|
} from "./index-ddszzne4.js";
|
|
20
20
|
import {
|
|
21
21
|
appendCoreEventSync
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-50s9q4c1.js";
|
|
23
23
|
import {
|
|
24
24
|
isPathWithinDeclaredScope
|
|
25
25
|
} from "./index-556ja8an.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
} from "./index-4rhhvd1a.js";
|
|
37
37
|
import {
|
|
38
38
|
tryAcquireLock
|
|
39
|
-
} from "./index-
|
|
39
|
+
} from "./index-fxxja498.js";
|
|
40
40
|
import {
|
|
41
41
|
criticalWarn,
|
|
42
42
|
init_logger
|
|
@@ -478,7 +478,7 @@ async function cleanupRecoveredWorktree(directory, descriptor) {
|
|
|
478
478
|
awaitingMergeByCallID,
|
|
479
479
|
cleanupStandardWorktreeForCallId,
|
|
480
480
|
standardWorktreeByCallID
|
|
481
|
-
} = await import("./worktree-isolation-
|
|
481
|
+
} = await import("./worktree-isolation-qcwt09ve.js");
|
|
482
482
|
standardWorktreeByCallID.delete(descriptor.callID);
|
|
483
483
|
if (hasResidue)
|
|
484
484
|
awaitingMergeByCallID.set(descriptor.callID, {
|
|
@@ -602,7 +602,7 @@ async function recoverCoderSettlement(directory, taskId) {
|
|
|
602
602
|
awaitingMergeByCallID,
|
|
603
603
|
finishStandardWorktreeDispatch,
|
|
604
604
|
standardWorktreeByCallID
|
|
605
|
-
} = await import("./worktree-isolation-
|
|
605
|
+
} = await import("./worktree-isolation-qcwt09ve.js");
|
|
606
606
|
const descriptor = wal.worktree;
|
|
607
607
|
const reconstructedDispatch = {
|
|
608
608
|
callID: descriptor.callID,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
readLinkPointer,
|
|
8
8
|
resolveKnowledgeStoreDir,
|
|
9
9
|
resolveLinkDir
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-25z5qwkk.js";
|
|
11
11
|
|
|
12
12
|
// src/knowledge/curation-policy.ts
|
|
13
13
|
import { appendFile, mkdir as mkdir2, readFile as readFile2 } from "fs/promises";
|
|
@@ -92,7 +92,7 @@ var _internals = {
|
|
|
92
92
|
symlinkSync: fs.symlinkSync
|
|
93
93
|
},
|
|
94
94
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
95
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
95
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-mbwt4grd.js");
|
|
96
96
|
return realWrite(directory, taskId, files);
|
|
97
97
|
},
|
|
98
98
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
EvaluationRunV1Schema,
|
|
4
4
|
GateAuditResultV1Schema,
|
|
5
5
|
getProtectedEvaluationRunIds
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-4krjn1gn.js";
|
|
7
7
|
import {
|
|
8
8
|
DURABILITY_CLASSES,
|
|
9
9
|
getProjectDb,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
readTaskEvidence,
|
|
25
25
|
readTaskEvidenceRaw,
|
|
26
26
|
sanitizeTaskId
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-wbnyc50b.js";
|
|
28
28
|
import {
|
|
29
29
|
LedgerStaleWriterError,
|
|
30
30
|
appendLedgerEvent,
|
|
@@ -44,10 +44,10 @@ import {
|
|
|
44
44
|
replayFromLedgerWithStatus,
|
|
45
45
|
takeSnapshotEvent,
|
|
46
46
|
takeSnapshotWithRetry
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-xm7dc14y.js";
|
|
48
48
|
import {
|
|
49
49
|
appendCoreEventSync
|
|
50
|
-
} from "./index-
|
|
50
|
+
} from "./index-50s9q4c1.js";
|
|
51
51
|
import {
|
|
52
52
|
init_executor,
|
|
53
53
|
isUntrustedEnvKey,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
} from "./index-r3mvsbtq.js";
|
|
72
72
|
import {
|
|
73
73
|
PlanSchema
|
|
74
|
-
} from "./index-
|
|
74
|
+
} from "./index-553veay1.js";
|
|
75
75
|
import {
|
|
76
76
|
GIT_BINARY_ENV_VAR,
|
|
77
77
|
describeGitResolution,
|
|
@@ -82,14 +82,14 @@ import {
|
|
|
82
82
|
assertProjectRoot,
|
|
83
83
|
tryAcquireLock,
|
|
84
84
|
withEvidenceLock
|
|
85
|
-
} from "./index-
|
|
85
|
+
} from "./index-fxxja498.js";
|
|
86
86
|
import {
|
|
87
87
|
invalidateCachedArtifact,
|
|
88
88
|
readCachedParsedFile
|
|
89
89
|
} from "./index-tfa2p4y4.js";
|
|
90
90
|
import {
|
|
91
91
|
emit
|
|
92
|
-
} from "./index-
|
|
92
|
+
} from "./index-1dz8hv7p.js";
|
|
93
93
|
import {
|
|
94
94
|
ZodError,
|
|
95
95
|
init_zod
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./index-ae75rja9.js";
|
|
7
7
|
import {
|
|
8
8
|
resolveKnowledgeStoreDir
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-25z5qwkk.js";
|
|
10
10
|
import {
|
|
11
11
|
atomicWriteFile
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-4emx8hhh.js";
|
|
13
13
|
import {
|
|
14
14
|
init_knowledge_types,
|
|
15
15
|
isActiveStatus
|
|
@@ -713,7 +713,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
713
713
|
const {
|
|
714
714
|
readAuthoritativeKnowledgeCounterRollups,
|
|
715
715
|
effectiveRetrievalOutcomes
|
|
716
|
-
} = await import("./knowledge-events-
|
|
716
|
+
} = await import("./knowledge-events-q46z1wy6.js");
|
|
717
717
|
const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
|
|
718
718
|
const flagIds = new Set;
|
|
719
719
|
for (const e of atFloor) {
|
|
@@ -780,11 +780,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
780
780
|
});
|
|
781
781
|
}
|
|
782
782
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
783
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
784
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
783
|
+
const { quarantineEntry } = await import("./knowledge-validator-19gbnxx2.js");
|
|
784
|
+
const { KnowledgeConfigSchema } = await import("./schema-hsw9r2tm.js");
|
|
785
785
|
let config;
|
|
786
786
|
try {
|
|
787
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
787
|
+
const { loadPluginConfigWithMeta } = await import("./index-ywtcznk2.js");
|
|
788
788
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
789
789
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
790
790
|
} catch {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
authorizeCuration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-hnjkpk57.js";
|
|
5
5
|
import {
|
|
6
6
|
findNearDuplicate,
|
|
7
7
|
inferTags,
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
resolveSwarmKnowledgePath,
|
|
10
10
|
resolveSwarmRejectedPath,
|
|
11
11
|
transactKnowledge
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-q0gtgwyr.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveKnowledgeStoreDir
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-25z5qwkk.js";
|
|
16
16
|
import {
|
|
17
17
|
atomicWriteFile
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-4emx8hhh.js";
|
|
19
19
|
import {
|
|
20
20
|
require_proper_lockfile
|
|
21
21
|
} from "./index-7g4c7s5r.js";
|