opencode-swarm 7.139.2 → 7.139.4
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/phase-wrap/SKILL.md +2 -2
- package/README.md +2 -2
- package/dist/background/stage-b-gates.d.ts +5 -1
- package/dist/background/task-envelope.d.ts +4 -4
- package/dist/cli/{config-doctor-hrb61yqe.js → config-doctor-whxr386t.js} +6 -6
- package/dist/cli/{core-g2dfh9fq.js → core-aj5g7an6.js} +5 -5
- package/dist/cli/{curation-policy-4tp0mbcb.js → curation-policy-anym2y3v.js} +8 -8
- package/dist/cli/{curator-drift-vfh07mqy.js → curator-drift-49p3jnte.js} +7 -7
- package/dist/cli/{curator-vpcs1p1v.js → curator-e8cvb55d.js} +41 -41
- package/dist/cli/curator-llm-factory-h9xbpgmw.js +61 -0
- package/dist/cli/{dispatch-b1fge4xk.js → dispatch-2s23fbcs.js} +4 -4
- package/dist/cli/{evidence-summary-service-kzxr71yd.js → evidence-summary-service-g82bsjqa.js} +16 -16
- package/dist/cli/{gate-evidence-z2b1ymnw.js → gate-evidence-72cgrvs2.js} +6 -5
- package/dist/cli/guardrail-explain-0be7msvq.js +62 -0
- package/dist/cli/{guardrail-log-2ftew0p3.js → guardrail-log-9mm5443g.js} +9 -9
- package/dist/cli/{hive-promoter-mpf0cfkk.js → hive-promoter-nnzs5x1r.js} +41 -41
- package/dist/cli/{index-w71cq27a.js → index-0e95eck5.js} +5 -5
- package/dist/cli/{index-5zyk8qgv.js → index-0xkjhgrf.js} +5 -5
- package/dist/cli/{index-q7ezzgwq.js → index-1kyex7z2.js} +1 -1
- package/dist/cli/{index-668dpw5e.js → index-33skgk1a.js} +1 -1
- package/dist/cli/{index-vm4xw9z3.js → index-41hkt36g.js} +2 -2
- package/dist/cli/{index-y111zefa.js → index-4nt52yr9.js} +80 -31
- package/dist/cli/{index-3jcyn8g6.js → index-4wjk296r.js} +1 -1
- package/dist/cli/{index-3radty3f.js → index-5azdnaty.js} +2 -2
- package/dist/cli/{index-8p9pasnp.js → index-5s23pfsy.js} +8 -8
- package/dist/cli/{index-5w7ekpy3.js → index-5z2xps64.js} +2 -2
- package/dist/cli/{index-0wp67gqj.js → index-6nzmp937.js} +61 -111
- package/dist/cli/{index-gvhvz176.js → index-6r522srn.js} +2 -2
- package/dist/cli/{index-4xbyy6aw.js → index-6rxgb5r9.js} +10 -6
- package/dist/cli/{index-cyw81ngh.js → index-6vh6vrnk.js} +10 -10
- package/dist/cli/{index-a12906mj.js → index-6z0a940s.js} +8 -8
- package/dist/cli/{index-wsdnttf4.js → index-74hpm6sh.js} +1 -1
- package/dist/cli/{index-6w1re1qn.js → index-9cdj4020.js} +6 -6
- package/dist/cli/{index-y47dwge1.js → index-e1k9vpqn.js} +5 -5
- package/dist/cli/{index-y64jv2pe.js → index-ejbcpbzp.js} +7 -7
- package/dist/cli/{index-6c5f309q.js → index-gfmrw2f5.js} +2 -2
- package/dist/cli/{index-prmb5qfp.js → index-j77frjq8.js} +7 -7
- package/dist/cli/{index-ffpmqx30.js → index-jnfyxeap.js} +4 -4
- package/dist/cli/{index-e9tx99ds.js → index-k41dn8me.js} +3 -3
- package/dist/cli/{index-x9q4bbhd.js → index-k46me75h.js} +4 -4
- package/dist/cli/{index-s608d3hw.js → index-nrx08gcr.js} +6 -2
- package/dist/cli/{index-ktagrqxw.js → index-pg84msyc.js} +7 -7
- package/dist/cli/{index-a5eba0t8.js → index-rsrx77fg.js} +6 -6
- package/dist/cli/index-s0qc4gj6.js +298 -0
- package/dist/cli/{index-q11t5erh.js → index-s58vghgj.js} +7 -7
- package/dist/cli/{index-se8xc78k.js → index-sa15nfgg.js} +45 -45
- package/dist/cli/{index-wrt6m5ze.js → index-sd657fkp.js} +291 -75
- package/dist/cli/{index-yr6x707c.js → index-vfsqpcz6.js} +16 -16
- package/dist/cli/{index-a7nh382r.js → index-vyqd1hzm.js} +20593 -19882
- package/dist/cli/{index-8gftfvpp.js → index-xb1zq933.js} +1 -1
- package/dist/cli/{index-3eddtgxt.js → index-xmhhhjjw.js} +39 -4
- package/dist/cli/index.js +43 -43
- package/dist/cli/{knowledge-escalator-n9pmx4qr.js → knowledge-escalator-a6z30y9p.js} +10 -10
- package/dist/cli/{knowledge-events-raevm18w.js → knowledge-events-deq0ds8e.js} +7 -7
- package/dist/cli/{knowledge-link-3tq8w6gs.js → knowledge-link-bmbatt8s.js} +6 -6
- package/dist/cli/{knowledge-store-bcfqz8fr.js → knowledge-store-vdr19mnq.js} +8 -8
- package/dist/cli/{knowledge-validator-jxqj96cx.js → knowledge-validator-5hgacnrf.js} +11 -11
- package/dist/cli/{pending-delegations-tmyf18p4.js → pending-delegations-7ayryxbg.js} +8 -8
- package/dist/cli/{pr-subscriptions-hhx6yk24.js → pr-subscriptions-w5y08ebc.js} +8 -8
- package/dist/cli/{runner-w30gazew.js → runner-h7vmgkth.js} +7 -6
- package/dist/cli/{scan-cursor-ah5swtyh.js → scan-cursor-d6qcg9hr.js} +9 -9
- package/dist/cli/{schema-f7jgrtxj.js → schema-y1zekrag.js} +3 -3
- package/dist/cli/{scope-persistence-3f0d4fwv.js → scope-persistence-tj6qway9.js} +7 -7
- package/dist/cli/{skill-generator-hp7as46c.js → skill-generator-bw8xhzzn.js} +13 -13
- package/dist/cli/{task-envelope-qn0qtnh0.js → task-envelope-jp2fdsvn.js} +11 -8
- package/dist/cli/{telemetry-4tgrfhaz.js → telemetry-62cn5t24.js} +1 -1
- package/dist/cli/{workspace-snapshot-h5rzw37b.js → workspace-snapshot-w3tg4ne5.js} +2 -2
- package/dist/cli/{worktree-collision-ownership-vexb0b6r.js → worktree-collision-ownership-hs5c2qzp.js} +9 -9
- package/dist/commands/approve-plan-critic.d.ts +2 -2
- package/dist/commands/registry.d.ts +1 -1
- package/dist/config/agent-model.d.ts +35 -0
- package/dist/db/qa-gate-profile.d.ts +11 -3
- package/dist/evidence/manager.d.ts +5 -2
- package/dist/evidence/phase-participation.d.ts +44 -0
- package/dist/hooks/compaction-customizer.d.ts +30 -2
- package/dist/hooks/context-budget.d.ts +1 -1
- package/dist/hooks/delegation-gate.d.ts +3 -3
- package/dist/hooks/guardrails/index.d.ts +5 -1
- package/dist/hooks/guardrails/messages-transform.d.ts +2 -0
- package/dist/hooks/guardrails/pre-check-result.d.ts +20 -0
- package/dist/index.js +616 -609
- package/dist/prm/escalation.d.ts +34 -0
- package/dist/prm/index.d.ts +6 -2
- package/dist/prm/pattern-detector.d.ts +22 -1
- package/dist/prm/types.d.ts +12 -2
- package/dist/sast/semgrep.d.ts +15 -32
- package/dist/services/compaction-service.d.ts +3 -1
- package/dist/session/snapshot-writer.d.ts +1 -0
- package/dist/state.d.ts +119 -19
- package/dist/summaries/schema.d.ts +2 -2
- package/dist/tools/context-status.d.ts +4 -1
- package/dist/tools/convene-council.d.ts +1 -1
- package/dist/tools/lint.d.ts +48 -22
- package/dist/tools/pre-check-batch.d.ts +41 -13
- package/dist/tools/quality-budget.d.ts +3 -2
- package/dist/tools/resolve-working-directory.d.ts +4 -4
- package/dist/tools/sast-baseline.d.ts +1 -0
- package/dist/tools/sast-scan.d.ts +4 -1
- package/dist/tools/secretscan.d.ts +2 -2
- package/dist/tools/set-qa-gates.d.ts +5 -4
- package/dist/tools/submit-phase-council-verdicts.d.ts +1 -1
- package/dist/tools/write-final-council-evidence.d.ts +1 -1
- package/dist/utils/bun-compat.d.ts +20 -0
- package/dist/utils/external-tool-runner.d.ts +10 -0
- package/dist/utils/project-boundary.d.ts +34 -0
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-hvw13hmr.js +0 -61
- package/dist/cli/guardrail-explain-k62h3c92.js +0 -62
- package/dist/cli/index-5j6chvj8.js +0 -159
- package/dist/cli/{index-z6xqpmqg.js → index-ee3x66a5.js} +3 -3
|
@@ -5,16 +5,19 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
computePlanStructureHash,
|
|
7
7
|
derivePlanId
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-6rxgb5r9.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./index-
|
|
10
|
+
assertProjectRoot
|
|
11
|
+
} from "./index-s0qc4gj6.js";
|
|
12
12
|
import {
|
|
13
13
|
require_proper_lockfile
|
|
14
14
|
} from "./index-7g4c7s5r.js";
|
|
15
15
|
import {
|
|
16
16
|
bunWrite
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-4nt52yr9.js";
|
|
18
|
+
import {
|
|
19
|
+
PlanSchema
|
|
20
|
+
} from "./index-1kz6da87.js";
|
|
18
21
|
import {
|
|
19
22
|
__toESM
|
|
20
23
|
} from "./index-a76rekgs.js";
|
|
@@ -409,6 +412,11 @@ function hasDurableRetirementIntent(bindingPath, binding) {
|
|
|
409
412
|
}
|
|
410
413
|
function ensureLockTargetSync(targetPath) {
|
|
411
414
|
try {
|
|
415
|
+
const scopesDir = path2.dirname(targetPath);
|
|
416
|
+
const swarmDir = path2.dirname(scopesDir);
|
|
417
|
+
if (path2.basename(scopesDir) !== "scopes" || path2.basename(swarmDir) !== ".swarm")
|
|
418
|
+
return false;
|
|
419
|
+
assertProjectRoot(path2.dirname(swarmDir));
|
|
412
420
|
fs2.mkdirSync(path2.dirname(targetPath), { recursive: true });
|
|
413
421
|
const nofollow = fs2.constants.O_NOFOLLOW ?? 0;
|
|
414
422
|
const fd = fs2.openSync(targetPath, fs2.constants.O_WRONLY | fs2.constants.O_CREAT | nofollow);
|
|
@@ -505,6 +513,11 @@ function exactFilenameMatches(filePath, binding) {
|
|
|
505
513
|
return normalizePathForComparison(filePath) === normalizePathForComparison(getBindingFilePath(binding.workspaceIdentity, binding));
|
|
506
514
|
}
|
|
507
515
|
function migrateLegacyBindingsSync(directory, scanCapacity = bindingFileScanCapacity) {
|
|
516
|
+
try {
|
|
517
|
+
assertProjectRoot(directory);
|
|
518
|
+
} catch {
|
|
519
|
+
return false;
|
|
520
|
+
}
|
|
508
521
|
const scopesDir = getScopesDir(directory);
|
|
509
522
|
if (!isScopesDirSafe(directory, scopesDir))
|
|
510
523
|
return false;
|
|
@@ -599,6 +612,11 @@ async function writeScopeToDisk(directory, taskId, files, ttlMs = DEFAULT_TTL_MS
|
|
|
599
612
|
return;
|
|
600
613
|
if (files.length > MAX_FILES_PER_SCOPE)
|
|
601
614
|
return;
|
|
615
|
+
try {
|
|
616
|
+
assertProjectRoot(directory);
|
|
617
|
+
} catch {
|
|
618
|
+
return;
|
|
619
|
+
}
|
|
602
620
|
const scopesDir = getScopesDir(directory);
|
|
603
621
|
const scopePath = getScopeFilePath(directory, taskId);
|
|
604
622
|
try {
|
|
@@ -645,6 +663,11 @@ async function writeScopeToDisk(directory, taskId, files, ttlMs = DEFAULT_TTL_MS
|
|
|
645
663
|
}
|
|
646
664
|
}
|
|
647
665
|
async function writeScopeBindingToDisk(directory, binding) {
|
|
666
|
+
try {
|
|
667
|
+
assertProjectRoot(directory);
|
|
668
|
+
} catch (error) {
|
|
669
|
+
return persistenceFailure(`Scope persistence project-root validation failed: ${error instanceof Error ? error.message : "unknown validation error"}`);
|
|
670
|
+
}
|
|
648
671
|
if (!isSafeTaskId(binding.taskId) || binding.version !== 2)
|
|
649
672
|
return persistenceFailure("Invalid binding schema or task identity.");
|
|
650
673
|
const workspaceIdentity = canonicalWorkspaceIdentity(directory);
|
|
@@ -750,6 +773,11 @@ function isDispatchCorrelated(binding) {
|
|
|
750
773
|
return binding.activation === "active" && typeof binding.dispatchCallId === "string" && binding.dispatchCallId.length > 0 && binding.ownerMessageId === binding.dispatchCallId && typeof binding.parentOwnerSessionId === "string" && binding.parentOwnerSessionId.length > 0 && binding.ownerSessionId !== binding.parentOwnerSessionId && binding.parentCallId === binding.dispatchCallId;
|
|
751
774
|
}
|
|
752
775
|
function clearScopeBindingFromDisk(input) {
|
|
776
|
+
try {
|
|
777
|
+
assertProjectRoot(input.directory);
|
|
778
|
+
} catch (error) {
|
|
779
|
+
return persistenceFailure(`Scope retirement project-root validation failed: ${error instanceof Error ? error.message : "unknown validation error"}`);
|
|
780
|
+
}
|
|
753
781
|
const localRetirement = installScopeBindingRetirementIntent(input.binding);
|
|
754
782
|
let release;
|
|
755
783
|
try {
|
|
@@ -1186,6 +1214,11 @@ async function writeClaimReceipt(claimPath, previous, claimed, input) {
|
|
|
1186
1214
|
}
|
|
1187
1215
|
}
|
|
1188
1216
|
async function replaceExistingScopeDeclaration(input) {
|
|
1217
|
+
try {
|
|
1218
|
+
assertProjectRoot(input.directory);
|
|
1219
|
+
} catch (error) {
|
|
1220
|
+
return persistenceFailure(`Scope declaration project-root validation failed: ${error instanceof Error ? error.message : "unknown validation error"}`);
|
|
1221
|
+
}
|
|
1189
1222
|
const { binding } = input;
|
|
1190
1223
|
if (binding.activation !== "declaration" || binding.dispatchCallId !== undefined)
|
|
1191
1224
|
return persistenceFailure("declare_scope may persist only a declaration generation.");
|
|
@@ -1697,11 +1730,13 @@ function clearScopeForTask(directory, taskId) {
|
|
|
1697
1730
|
if (!isSafeTaskId(taskId))
|
|
1698
1731
|
return;
|
|
1699
1732
|
try {
|
|
1733
|
+
assertProjectRoot(directory);
|
|
1700
1734
|
fs2.unlinkSync(getScopeFilePath(directory, taskId));
|
|
1701
1735
|
} catch {}
|
|
1702
1736
|
}
|
|
1703
1737
|
function clearAllScopes(directory) {
|
|
1704
1738
|
try {
|
|
1739
|
+
assertProjectRoot(directory);
|
|
1705
1740
|
fs2.rmSync(getScopesDir(directory), { recursive: true, force: true });
|
|
1706
1741
|
} catch {}
|
|
1707
1742
|
}
|
package/dist/cli/index.js
CHANGED
|
@@ -6,66 +6,66 @@ import {
|
|
|
6
6
|
getPluginConfigDir,
|
|
7
7
|
getPluginLockFilePaths,
|
|
8
8
|
resolveCommand
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
9
|
+
} from "./index-vyqd1hzm.js";
|
|
10
|
+
import"./index-41hkt36g.js";
|
|
11
|
+
import"./index-sd657fkp.js";
|
|
12
|
+
import"./index-ejbcpbzp.js";
|
|
13
|
+
import"./index-e1k9vpqn.js";
|
|
14
|
+
import"./index-6nzmp937.js";
|
|
15
|
+
import"./index-nrx08gcr.js";
|
|
16
16
|
import"./index-y8552snf.js";
|
|
17
17
|
import"./index-4905hd2m.js";
|
|
18
18
|
import"./index-134d35c1.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
19
|
+
import"./index-pg84msyc.js";
|
|
20
|
+
import"./index-0e95eck5.js";
|
|
21
|
+
import"./index-9cdj4020.js";
|
|
22
22
|
import"./index-6mjf4vr1.js";
|
|
23
23
|
import"./index-c8s9a3zh.js";
|
|
24
24
|
import"./index-9ss2m4rs.js";
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
25
|
+
import"./index-0xkjhgrf.js";
|
|
26
|
+
import"./index-xmhhhjjw.js";
|
|
27
|
+
import"./index-556ja8an.js";
|
|
28
|
+
import"./index-6rxgb5r9.js";
|
|
29
|
+
import"./index-1kyex7z2.js";
|
|
30
|
+
import"./index-b8zgtz81.js";
|
|
31
|
+
import"./index-6z0a940s.js";
|
|
32
|
+
import"./index-j77frjq8.js";
|
|
33
|
+
import"./index-k46me75h.js";
|
|
34
|
+
import"./index-ee3x66a5.js";
|
|
35
|
+
import"./index-74hpm6sh.js";
|
|
36
|
+
import"./index-5z2xps64.js";
|
|
37
|
+
import"./index-8fwhhayc.js";
|
|
38
|
+
import"./index-q1exe2b3.js";
|
|
39
|
+
import"./index-jnfyxeap.js";
|
|
40
|
+
import"./index-5azdnaty.js";
|
|
29
41
|
import"./index-rtry5xyf.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
42
|
+
import"./index-6vh6vrnk.js";
|
|
43
|
+
import"./index-k41dn8me.js";
|
|
32
44
|
import"./index-ae75rja9.js";
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
45
|
+
import"./index-33skgk1a.js";
|
|
46
|
+
import"./index-6r522srn.js";
|
|
47
|
+
import"./index-ed5ykebp.js";
|
|
48
|
+
import"./index-s0qc4gj6.js";
|
|
49
|
+
import"./index-7g4c7s5r.js";
|
|
50
|
+
import"./index-4nt52yr9.js";
|
|
51
|
+
import"./index-s58vghgj.js";
|
|
36
52
|
import"./index-gprxjmm7.js";
|
|
37
53
|
import"./index-n832052r.js";
|
|
54
|
+
import"./index-1kz6da87.js";
|
|
55
|
+
import"./index-4rhhvd1a.js";
|
|
56
|
+
import"./index-zgwm4ryv.js";
|
|
38
57
|
import {
|
|
39
58
|
init_package,
|
|
40
59
|
package_default
|
|
41
|
-
} from "./index-
|
|
42
|
-
import"./index-bk5tah7q.js";
|
|
43
|
-
import"./index-8fwhhayc.js";
|
|
44
|
-
import"./index-q1exe2b3.js";
|
|
45
|
-
import"./index-5zyk8qgv.js";
|
|
46
|
-
import"./index-3eddtgxt.js";
|
|
47
|
-
import"./index-556ja8an.js";
|
|
48
|
-
import"./index-4xbyy6aw.js";
|
|
49
|
-
import"./index-1kz6da87.js";
|
|
50
|
-
import"./index-q7ezzgwq.js";
|
|
51
|
-
import"./index-b8zgtz81.js";
|
|
52
|
-
import"./index-a12906mj.js";
|
|
53
|
-
import"./index-4rhhvd1a.js";
|
|
60
|
+
} from "./index-5s23pfsy.js";
|
|
54
61
|
import {
|
|
55
62
|
DEFAULT_AGENT_CONFIGS,
|
|
56
63
|
init_constants
|
|
57
|
-
} from "./index-
|
|
58
|
-
import"./index-prmb5qfp.js";
|
|
59
|
-
import"./index-x9q4bbhd.js";
|
|
60
|
-
import"./index-ed5ykebp.js";
|
|
61
|
-
import"./index-5j6chvj8.js";
|
|
62
|
-
import"./index-7g4c7s5r.js";
|
|
63
|
-
import"./index-a5eba0t8.js";
|
|
64
|
-
import"./index-bpmtbmy9.js";
|
|
65
|
-
import"./index-z6xqpmqg.js";
|
|
64
|
+
} from "./index-4wjk296r.js";
|
|
66
65
|
import"./index-zjygnfay.js";
|
|
67
|
-
import"./index-
|
|
68
|
-
import"./index-
|
|
66
|
+
import"./index-bk5tah7q.js";
|
|
67
|
+
import"./index-rsrx77fg.js";
|
|
68
|
+
import"./index-bpmtbmy9.js";
|
|
69
69
|
import"./index-a76rekgs.js";
|
|
70
70
|
|
|
71
71
|
// src/cli/index.ts
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
maybeEscalateOnViolation,
|
|
9
9
|
maybeQuarantineOnContradiction,
|
|
10
10
|
readRecentEscalations
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
} from "./index-0e95eck5.js";
|
|
12
|
+
import"./index-6vh6vrnk.js";
|
|
13
|
+
import"./index-k41dn8me.js";
|
|
14
14
|
import"./index-ae75rja9.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-bk5tah7q.js";
|
|
15
|
+
import"./index-33skgk1a.js";
|
|
16
|
+
import"./index-6r522srn.js";
|
|
18
17
|
import"./index-ed5ykebp.js";
|
|
19
|
-
import"./index-
|
|
18
|
+
import"./index-s0qc4gj6.js";
|
|
20
19
|
import"./index-7g4c7s5r.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-bpmtbmy9.js";
|
|
23
|
-
import"./index-y111zefa.js";
|
|
20
|
+
import"./index-4nt52yr9.js";
|
|
24
21
|
import"./index-zgwm4ryv.js";
|
|
22
|
+
import"./index-bk5tah7q.js";
|
|
23
|
+
import"./index-rsrx77fg.js";
|
|
24
|
+
import"./index-bpmtbmy9.js";
|
|
25
25
|
import"./index-a76rekgs.js";
|
|
26
26
|
export {
|
|
27
27
|
readRecentEscalations,
|
|
@@ -28,17 +28,17 @@ import {
|
|
|
28
28
|
resolveKnowledgeCounterBaselinePath,
|
|
29
29
|
resolveKnowledgeEventsPath,
|
|
30
30
|
resolveLegacyApplicationLogPath
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-k41dn8me.js";
|
|
32
32
|
import"./index-ae75rja9.js";
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
33
|
+
import"./index-33skgk1a.js";
|
|
34
|
+
import"./index-6r522srn.js";
|
|
35
35
|
import"./index-ed5ykebp.js";
|
|
36
|
-
import"./index-
|
|
36
|
+
import"./index-s0qc4gj6.js";
|
|
37
37
|
import"./index-7g4c7s5r.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-bpmtbmy9.js";
|
|
40
|
-
import"./index-y111zefa.js";
|
|
38
|
+
import"./index-4nt52yr9.js";
|
|
41
39
|
import"./index-zgwm4ryv.js";
|
|
40
|
+
import"./index-rsrx77fg.js";
|
|
41
|
+
import"./index-bpmtbmy9.js";
|
|
42
42
|
import"./index-a76rekgs.js";
|
|
43
43
|
export {
|
|
44
44
|
resolveLegacyApplicationLogPath,
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
resolveLinkDir,
|
|
13
13
|
sanitizeLinkId,
|
|
14
14
|
writeLinkPointer
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-
|
|
15
|
+
} from "./index-33skgk1a.js";
|
|
16
|
+
import"./index-6r522srn.js";
|
|
17
17
|
import"./index-ed5ykebp.js";
|
|
18
|
-
import"./index-
|
|
18
|
+
import"./index-s0qc4gj6.js";
|
|
19
19
|
import"./index-7g4c7s5r.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-bpmtbmy9.js";
|
|
22
|
-
import"./index-y111zefa.js";
|
|
20
|
+
import"./index-4nt52yr9.js";
|
|
23
21
|
import"./index-zgwm4ryv.js";
|
|
22
|
+
import"./index-rsrx77fg.js";
|
|
23
|
+
import"./index-bpmtbmy9.js";
|
|
24
24
|
import"./index-a76rekgs.js";
|
|
25
25
|
export {
|
|
26
26
|
writeLinkPointer,
|
|
@@ -41,20 +41,20 @@ import {
|
|
|
41
41
|
transactKnowledge,
|
|
42
42
|
transactKnowledgeWithCas,
|
|
43
43
|
wordBigrams
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-6vh6vrnk.js";
|
|
45
45
|
import {
|
|
46
46
|
resolveHiveDataDir
|
|
47
47
|
} from "./index-ae75rja9.js";
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
50
|
-
import"./index-bk5tah7q.js";
|
|
48
|
+
import"./index-33skgk1a.js";
|
|
49
|
+
import"./index-6r522srn.js";
|
|
51
50
|
import"./index-ed5ykebp.js";
|
|
52
|
-
import"./index-
|
|
51
|
+
import"./index-s0qc4gj6.js";
|
|
53
52
|
import"./index-7g4c7s5r.js";
|
|
54
|
-
import"./index-
|
|
55
|
-
import"./index-bpmtbmy9.js";
|
|
56
|
-
import"./index-y111zefa.js";
|
|
53
|
+
import"./index-4nt52yr9.js";
|
|
57
54
|
import"./index-zgwm4ryv.js";
|
|
55
|
+
import"./index-bk5tah7q.js";
|
|
56
|
+
import"./index-rsrx77fg.js";
|
|
57
|
+
import"./index-bpmtbmy9.js";
|
|
58
58
|
import"./index-a76rekgs.js";
|
|
59
59
|
export {
|
|
60
60
|
wordBigrams,
|
|
@@ -23,22 +23,22 @@ import {
|
|
|
23
23
|
validateLesson,
|
|
24
24
|
validateSkillCandidatePath,
|
|
25
25
|
validateSkillPath
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-jnfyxeap.js";
|
|
27
|
+
import"./index-5azdnaty.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
import"./index-6vh6vrnk.js";
|
|
30
|
+
import"./index-k41dn8me.js";
|
|
31
31
|
import"./index-ae75rja9.js";
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-bk5tah7q.js";
|
|
32
|
+
import"./index-33skgk1a.js";
|
|
33
|
+
import"./index-6r522srn.js";
|
|
35
34
|
import"./index-ed5ykebp.js";
|
|
36
|
-
import"./index-
|
|
35
|
+
import"./index-s0qc4gj6.js";
|
|
37
36
|
import"./index-7g4c7s5r.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-bpmtbmy9.js";
|
|
40
|
-
import"./index-y111zefa.js";
|
|
37
|
+
import"./index-4nt52yr9.js";
|
|
41
38
|
import"./index-zgwm4ryv.js";
|
|
39
|
+
import"./index-bk5tah7q.js";
|
|
40
|
+
import"./index-rsrx77fg.js";
|
|
41
|
+
import"./index-bpmtbmy9.js";
|
|
42
42
|
import"./index-a76rekgs.js";
|
|
43
43
|
export {
|
|
44
44
|
validateSkillPath,
|
|
@@ -41,17 +41,17 @@ import {
|
|
|
41
41
|
sweepStaleDelegations,
|
|
42
42
|
updateCoderSettlement,
|
|
43
43
|
writeDelegationFallback
|
|
44
|
-
} from "./index-
|
|
45
|
-
import"./index-
|
|
44
|
+
} from "./index-j77frjq8.js";
|
|
45
|
+
import"./index-k46me75h.js";
|
|
46
|
+
import"./index-ee3x66a5.js";
|
|
46
47
|
import"./index-ed5ykebp.js";
|
|
47
|
-
import"./index-
|
|
48
|
+
import"./index-s0qc4gj6.js";
|
|
48
49
|
import"./index-7g4c7s5r.js";
|
|
49
|
-
import"./index-
|
|
50
|
-
import"./index-bpmtbmy9.js";
|
|
51
|
-
import"./index-z6xqpmqg.js";
|
|
52
|
-
import"./index-zjygnfay.js";
|
|
53
|
-
import"./index-y111zefa.js";
|
|
50
|
+
import"./index-4nt52yr9.js";
|
|
54
51
|
import"./index-zgwm4ryv.js";
|
|
52
|
+
import"./index-zjygnfay.js";
|
|
53
|
+
import"./index-rsrx77fg.js";
|
|
54
|
+
import"./index-bpmtbmy9.js";
|
|
55
55
|
import"./index-a76rekgs.js";
|
|
56
56
|
export {
|
|
57
57
|
writeDelegationFallback,
|
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
sweepStale,
|
|
10
10
|
unsubscribe,
|
|
11
11
|
updateSnapshot
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
} from "./index-0xkjhgrf.js";
|
|
13
|
+
import"./index-k46me75h.js";
|
|
14
|
+
import"./index-ee3x66a5.js";
|
|
14
15
|
import"./index-ed5ykebp.js";
|
|
15
|
-
import"./index-
|
|
16
|
+
import"./index-s0qc4gj6.js";
|
|
16
17
|
import"./index-7g4c7s5r.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-bpmtbmy9.js";
|
|
19
|
-
import"./index-z6xqpmqg.js";
|
|
20
|
-
import"./index-zjygnfay.js";
|
|
21
|
-
import"./index-y111zefa.js";
|
|
18
|
+
import"./index-4nt52yr9.js";
|
|
22
19
|
import"./index-zgwm4ryv.js";
|
|
20
|
+
import"./index-zjygnfay.js";
|
|
21
|
+
import"./index-rsrx77fg.js";
|
|
22
|
+
import"./index-bpmtbmy9.js";
|
|
23
23
|
import"./index-a76rekgs.js";
|
|
24
24
|
export {
|
|
25
25
|
updateSnapshot,
|
|
@@ -3,16 +3,17 @@ import {
|
|
|
3
3
|
_internals,
|
|
4
4
|
createModelEvaluationExecutor,
|
|
5
5
|
runEvaluation
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
6
|
+
} from "./index-sd657fkp.js";
|
|
7
|
+
import"./index-nrx08gcr.js";
|
|
8
8
|
import"./index-y8552snf.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-6r522srn.js";
|
|
10
10
|
import"./index-ed5ykebp.js";
|
|
11
|
-
import"./index-
|
|
11
|
+
import"./index-s0qc4gj6.js";
|
|
12
12
|
import"./index-7g4c7s5r.js";
|
|
13
|
-
import"./index-
|
|
13
|
+
import"./index-4nt52yr9.js";
|
|
14
|
+
import"./index-zgwm4ryv.js";
|
|
15
|
+
import"./index-rsrx77fg.js";
|
|
14
16
|
import"./index-bpmtbmy9.js";
|
|
15
|
-
import"./index-y111zefa.js";
|
|
16
17
|
import"./index-a76rekgs.js";
|
|
17
18
|
export {
|
|
18
19
|
runEvaluation,
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
alreadyCuratedThisGeneration,
|
|
5
5
|
claimNextScanBatch,
|
|
6
6
|
getScanStatus
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-9cdj4020.js";
|
|
8
|
+
import"./index-6vh6vrnk.js";
|
|
9
9
|
import"./index-ae75rja9.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-bk5tah7q.js";
|
|
10
|
+
import"./index-33skgk1a.js";
|
|
11
|
+
import"./index-6r522srn.js";
|
|
13
12
|
import"./index-ed5ykebp.js";
|
|
14
|
-
import"./index-
|
|
13
|
+
import"./index-s0qc4gj6.js";
|
|
15
14
|
import"./index-7g4c7s5r.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-bpmtbmy9.js";
|
|
18
|
-
import"./index-y111zefa.js";
|
|
15
|
+
import"./index-4nt52yr9.js";
|
|
19
16
|
import"./index-zgwm4ryv.js";
|
|
17
|
+
import"./index-bk5tah7q.js";
|
|
18
|
+
import"./index-rsrx77fg.js";
|
|
19
|
+
import"./index-bpmtbmy9.js";
|
|
20
20
|
import"./index-a76rekgs.js";
|
|
21
21
|
export {
|
|
22
22
|
getScanStatus,
|
|
@@ -96,11 +96,11 @@ import {
|
|
|
96
96
|
resolveGeneratedAgentRole,
|
|
97
97
|
resolveGuardrailsConfig,
|
|
98
98
|
stripKnownSwarmPrefix
|
|
99
|
-
} from "./index-
|
|
99
|
+
} from "./index-5s23pfsy.js";
|
|
100
|
+
import"./index-4wjk296r.js";
|
|
101
|
+
import"./index-zjygnfay.js";
|
|
100
102
|
import"./index-bk5tah7q.js";
|
|
101
|
-
import"./index-3jcyn8g6.js";
|
|
102
103
|
import"./index-bpmtbmy9.js";
|
|
103
|
-
import"./index-zjygnfay.js";
|
|
104
104
|
import"./index-a76rekgs.js";
|
|
105
105
|
init_schema();
|
|
106
106
|
|
|
@@ -23,16 +23,16 @@ import {
|
|
|
23
23
|
tombstoneScopeBinding,
|
|
24
24
|
writeScopeBindingToDisk,
|
|
25
25
|
writeScopeToDisk
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-xmhhhjjw.js";
|
|
27
27
|
import"./index-556ja8an.js";
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-5j6chvj8.js";
|
|
28
|
+
import"./index-6rxgb5r9.js";
|
|
29
|
+
import"./index-s0qc4gj6.js";
|
|
31
30
|
import"./index-7g4c7s5r.js";
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-y111zefa.js";
|
|
31
|
+
import"./index-4nt52yr9.js";
|
|
32
|
+
import"./index-1kz6da87.js";
|
|
35
33
|
import"./index-zgwm4ryv.js";
|
|
34
|
+
import"./index-rsrx77fg.js";
|
|
35
|
+
import"./index-bpmtbmy9.js";
|
|
36
36
|
import"./index-a76rekgs.js";
|
|
37
37
|
export {
|
|
38
38
|
writeScopeToDisk,
|
|
@@ -33,24 +33,24 @@ import {
|
|
|
33
33
|
sanitizeSlug,
|
|
34
34
|
selectCandidateEntries,
|
|
35
35
|
writeEvalStub
|
|
36
|
-
} from "./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
36
|
+
} from "./index-pg84msyc.js";
|
|
37
|
+
import"./index-jnfyxeap.js";
|
|
38
|
+
import"./index-5azdnaty.js";
|
|
39
39
|
import"./index-rtry5xyf.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
import"./index-6vh6vrnk.js";
|
|
41
|
+
import"./index-k41dn8me.js";
|
|
42
42
|
import"./index-ae75rja9.js";
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-bk5tah7q.js";
|
|
46
|
-
import"./index-4rhhvd1a.js";
|
|
43
|
+
import"./index-33skgk1a.js";
|
|
44
|
+
import"./index-6r522srn.js";
|
|
47
45
|
import"./index-ed5ykebp.js";
|
|
48
|
-
import"./index-
|
|
46
|
+
import"./index-s0qc4gj6.js";
|
|
49
47
|
import"./index-7g4c7s5r.js";
|
|
50
|
-
import"./index-
|
|
51
|
-
import"./index-
|
|
52
|
-
import"./index-y111zefa.js";
|
|
48
|
+
import"./index-4nt52yr9.js";
|
|
49
|
+
import"./index-4rhhvd1a.js";
|
|
53
50
|
import"./index-zgwm4ryv.js";
|
|
51
|
+
import"./index-bk5tah7q.js";
|
|
52
|
+
import"./index-rsrx77fg.js";
|
|
53
|
+
import"./index-bpmtbmy9.js";
|
|
54
54
|
import"./index-a76rekgs.js";
|
|
55
55
|
export {
|
|
56
56
|
writeEvalStub,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import"./index-a76rekgs.js";
|
|
3
3
|
|
|
4
4
|
// src/background/task-envelope.ts
|
|
5
|
-
var TASK_ENVELOPE_RE = /<task\s+id="([^"]+)"\s+state="(running|completed|error)"\s*>/;
|
|
5
|
+
var TASK_ENVELOPE_RE = /<task\s+id="([^"]+)"\s+state="(running|completed|error|cancelled|canceled)"\s*>/;
|
|
6
6
|
var MAX_TASK_ENVELOPE_TEXT_CHARS = 20000;
|
|
7
7
|
function parseTaskEnvelope(text) {
|
|
8
8
|
if (typeof text !== "string" || text.length === 0)
|
|
@@ -11,22 +11,25 @@ function parseTaskEnvelope(text) {
|
|
|
11
11
|
if (!match)
|
|
12
12
|
return null;
|
|
13
13
|
const sessionId = match[1];
|
|
14
|
-
const
|
|
14
|
+
const rawState = match[2];
|
|
15
|
+
const state = rawState === "canceled" ? "cancelled" : rawState;
|
|
15
16
|
if (!sessionId)
|
|
16
17
|
return null;
|
|
17
18
|
const summary = extractTagText(text, "summary");
|
|
18
|
-
const resultRaw = state === "error" ? extractTagText(text, "task_error") : extractTagText(text, "task_result");
|
|
19
|
+
const resultRaw = state === "error" || state === "cancelled" ? extractTagText(text, "task_error") ?? extractTagText(text, "task_result") : extractTagText(text, "task_result");
|
|
19
20
|
const bounded = boundEnvelopeText(resultRaw);
|
|
20
21
|
return {
|
|
21
22
|
sessionId,
|
|
22
23
|
state,
|
|
23
24
|
...summary !== undefined ? { summary } : {},
|
|
24
|
-
...state === "error"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
...state === "error" || state === "cancelled" ? {
|
|
26
|
+
...bounded ? {
|
|
27
|
+
errorText: bounded.text,
|
|
28
|
+
resultChars: bounded.chars,
|
|
29
|
+
resultTruncated: bounded.truncated
|
|
30
|
+
} : {}
|
|
28
31
|
} : {},
|
|
29
|
-
...state !== "error" && bounded ? {
|
|
32
|
+
...state !== "error" && state !== "cancelled" && bounded ? {
|
|
30
33
|
resultText: bounded.text,
|
|
31
34
|
resultChars: bounded.chars,
|
|
32
35
|
resultTruncated: bounded.truncated
|
|
@@ -37,8 +37,8 @@ import {
|
|
|
37
37
|
resolveRemoteRefsContainingHeadAsync,
|
|
38
38
|
switchPrFeedbackTrackingCandidateAsync,
|
|
39
39
|
workspaceSnapshotMatches
|
|
40
|
-
} from "./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
} from "./index-74hpm6sh.js";
|
|
41
|
+
import"./index-4nt52yr9.js";
|
|
42
42
|
import"./index-a76rekgs.js";
|
|
43
43
|
export {
|
|
44
44
|
workspaceSnapshotMatches,
|