opencode-swarm 7.200.6 → 7.200.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/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/cli/{attest-task-10qxnfg0.js → attest-task-dxrfae0t.js} +31 -27
- package/dist/cli/{auto-checkpoint-n4wjv3c3.js → auto-checkpoint-6sacb90s.js} +4 -4
- package/dist/cli/{checkpoint-hce4bjpa.js → checkpoint-nwp1j6zv.js} +8 -8
- package/dist/cli/{coder-settlement-wzccs5q0.js → coder-settlement-gw7yz6j8.js} +4 -3
- package/dist/cli/{config-doctor-zmrk4e62.js → config-doctor-9azv1kqx.js} +7 -7
- package/dist/cli/{core-91vc3hm8.js → core-0qgp0a8j.js} +1 -1
- package/dist/cli/{curator-drift-jnnfryzt.js → curator-drift-45snz8a6.js} +5 -5
- package/dist/cli/{curator-mx34qmvj.js → curator-ekthxye6.js} +25 -25
- package/dist/cli/{curator-llm-factory-mj9nwpqy.js → curator-llm-factory-ds4y7k0b.js} +25 -25
- package/dist/cli/{doctor-knowledge-receipt-phase-id-wsv9av6b.js → doctor-knowledge-receipt-phase-id-fggff61y.js} +4 -4
- package/dist/cli/{evidence-summary-service-t8jxvzse.js → evidence-summary-service-zc2fc8h1.js} +9 -9
- package/dist/cli/{gate-evidence-13evayfx.js → gate-evidence-r57ahtp0.js} +7 -2
- package/dist/cli/{guardrail-explain-w69nx4h3.js → guardrail-explain-bc8garre.js} +26 -26
- package/dist/cli/{guardrail-log-em42cpeg.js → guardrail-log-hskq7q1w.js} +3 -3
- package/dist/cli/{guardrail-reset-1z11c474.js → guardrail-reset-ywcnk88z.js} +25 -25
- package/dist/cli/{hive-promoter-et6yf4e4.js → hive-promoter-k66hgffk.js} +25 -25
- package/dist/cli/{index-zq1gna9j.js → index-057y0sbg.js} +1 -1
- package/dist/cli/{index-9ww8f1e9.js → index-0tvkfdwp.js} +3 -3
- package/dist/cli/{index-tw0bn65v.js → index-16n2s0zf.js} +1 -1
- package/dist/cli/{index-yy7hq6c5.js → index-21nbxx1t.js} +2 -2
- package/dist/cli/{index-z4qhqws0.js → index-2wryy5a7.js} +3 -3
- package/dist/cli/{index-hfzyp68b.js → index-4a3ey5g6.js} +27 -27
- package/dist/cli/{index-zv45anwx.js → index-4y90ecpz.js} +1 -1
- package/dist/cli/{index-fjh70sfg.js → index-5z4c9acx.js} +5 -5
- package/dist/cli/{index-ykwya5ff.js → index-6w1x38yd.js} +2 -2
- package/dist/cli/{index-1j9g90y9.js → index-76xnddca.js} +1 -1
- package/dist/cli/{index-zfzgt2hj.js → index-c5wk61ak.js} +4 -4
- package/dist/cli/{index-yd8k2081.js → index-ez0smmcc.js} +25 -25
- package/dist/cli/{index-w747vv23.js → index-h7t7hvq3.js} +1 -1
- package/dist/cli/{index-n61daqkj.js → index-jrpfzv5r.js} +2 -2
- package/dist/cli/{index-ehcp9r1f.js → index-k5h4mmwd.js} +1 -1
- package/dist/cli/{index-r9x74612.js → index-kekvdqj6.js} +2 -2
- package/dist/cli/{index-h21p9f69.js → index-kzyw3315.js} +1 -1
- package/dist/cli/{index-he1xpa9h.js → index-m6632p7f.js} +3 -3
- package/dist/cli/{index-6cgh59z6.js → index-q7z2yws5.js} +3 -3
- package/dist/cli/{index-n2vx9eb0.js → index-sg2sd66b.js} +3 -3
- package/dist/cli/{index-qxse4xm5.js → index-tfaf8zy8.js} +1 -1
- package/dist/cli/{index-e5b0ayxw.js → index-vpxdf79m.js} +3 -3
- package/dist/cli/{index-50h4hrhe.js → index-wfd267ma.js} +75 -62
- package/dist/cli/{index-kdp4rk4p.js → index-wgwg2b4d.js} +1 -1
- package/dist/cli/{index-wxh0624z.js → index-wkbdfy1g.js} +1 -1
- package/dist/cli/{index-gjzfy7zw.js → index-x8cac18k.js} +48 -3
- package/dist/cli/{index-k3nhzhkz.js → index-z1e9b5qk.js} +3 -3
- package/dist/cli/{index-bkdkkxxe.js → index-z72545mf.js} +1 -1
- package/dist/cli/{index-cbhkyfmm.js → index-zjjxe0q5.js} +2 -2
- package/dist/cli/{index-j2736j97.js → index-zvvavx1h.js} +6 -6
- package/dist/cli/index.js +26 -26
- package/dist/cli/{knowledge-escalator-6h3bwf6q.js → knowledge-escalator-9tz25k7f.js} +7 -7
- package/dist/cli/{knowledge-events-wp1j51h6.js → knowledge-events-dcmpbb23.js} +5 -5
- package/dist/cli/{knowledge-store-98jhzs3k.js → knowledge-store-dxwsme9q.js} +1 -1
- package/dist/cli/{knowledge-validator-jttph6bb.js → knowledge-validator-7q1w62s7.js} +2 -2
- package/dist/cli/{mcp-3fbk6v7e.js → mcp-k38cfqtg.js} +1 -1
- package/dist/cli/{model-preflight-vps41qvj.js → model-preflight-1tkjtc9z.js} +25 -25
- package/dist/cli/{pending-delegations-f3yj2qxg.js → pending-delegations-q1fksmee.js} +2 -2
- package/dist/cli/{pr-subscriptions-ash398n1.js → pr-subscriptions-pf6mwhwr.js} +1 -1
- package/dist/cli/{pr-workflow-gate-6za22msz.js → pr-workflow-gate-thazeaa1.js} +25 -25
- package/dist/cli/{scan-cursor-15x71ymh.js → scan-cursor-8k8rkrcj.js} +2 -2
- package/dist/cli/{schema-69za4986.js → schema-ff9v839b.js} +1 -1
- package/dist/cli/{scope-persistence-6qnvpm85.js → scope-persistence-mzyqtkwv.js} +5 -5
- package/dist/cli/{server-cdpsjzsp.js → server-ss4jqd5y.js} +25 -25
- package/dist/cli/{skill-generator-q77jzyw0.js → skill-generator-fgk15dd5.js} +8 -8
- package/dist/cli/{snapshot-coordination-init-gz9ak1be.js → snapshot-coordination-init-e9gvsaj7.js} +25 -25
- package/dist/cli/{speckit-checkoff-59xs6f5t.js → speckit-checkoff-ec4g0hhc.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-8zm5z35p.js → worktree-collision-ownership-egc9b97v.js} +2 -2
- package/dist/cli/{worktree-isolation-f7khy039.js → worktree-isolation-9evd232c.js} +25 -25
- package/dist/full-auto/policy.d.ts +19 -0
- package/dist/gate-evidence.d.ts +20 -0
- package/dist/index.js +9 -9
- package/package.json +1 -1
|
@@ -17,14 +17,14 @@ import {
|
|
|
17
17
|
protectedRoots,
|
|
18
18
|
redactDecisionLineForArchive,
|
|
19
19
|
stableCanonicalStringify
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-h7t7hvq3.js";
|
|
21
21
|
import {
|
|
22
22
|
detectStraySwarmDirs,
|
|
23
23
|
readDoctorArtifact,
|
|
24
24
|
removeStraySwarmDir,
|
|
25
25
|
resolvePlanParallelizationFlag,
|
|
26
26
|
runConfigDoctor
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-2wryy5a7.js";
|
|
28
28
|
import {
|
|
29
29
|
archiveEvidence,
|
|
30
30
|
checkRequirementCoverage,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
sanitizeTaskId,
|
|
37
37
|
saveEvidence,
|
|
38
38
|
validateProjectRoot
|
|
39
|
-
} from "./index-
|
|
39
|
+
} from "./index-tfaf8zy8.js";
|
|
40
40
|
import {
|
|
41
41
|
EvaluationTaskV1Schema,
|
|
42
42
|
GateAuditManifestV1Schema,
|
|
@@ -88,12 +88,12 @@ import {
|
|
|
88
88
|
import {
|
|
89
89
|
buildEscalationBriefing,
|
|
90
90
|
readRecentEscalations
|
|
91
|
-
} from "./index-
|
|
91
|
+
} from "./index-zvvavx1h.js";
|
|
92
92
|
import {
|
|
93
93
|
alreadyCuratedThisGeneration,
|
|
94
94
|
claimNextScanBatch,
|
|
95
95
|
resolveCohortId
|
|
96
|
-
} from "./index-
|
|
96
|
+
} from "./index-057y0sbg.js";
|
|
97
97
|
import {
|
|
98
98
|
CURATOR_CONSOLIDATION_PROMPT,
|
|
99
99
|
CURATOR_INIT_PROMPT,
|
|
@@ -112,13 +112,13 @@ import {
|
|
|
112
112
|
getGroupCommitWriter,
|
|
113
113
|
importLegacyJsonl,
|
|
114
114
|
readPriorDriftReports
|
|
115
|
-
} from "./index-
|
|
115
|
+
} from "./index-z72545mf.js";
|
|
116
116
|
import {
|
|
117
117
|
assertNoUnsettledCoderDispatch,
|
|
118
118
|
listCoderSettlementWalStates,
|
|
119
119
|
recoverCoderSettlement,
|
|
120
120
|
recoverStaleCoderSettlements
|
|
121
|
-
} from "./index-
|
|
121
|
+
} from "./index-z1e9b5qk.js";
|
|
122
122
|
import {
|
|
123
123
|
BUNDLED_PROJECT_SKILL_ROOT,
|
|
124
124
|
DEFAULT_SKILL_MIN_CONFIDENCE,
|
|
@@ -141,7 +141,7 @@ import {
|
|
|
141
141
|
skillContractDigest,
|
|
142
142
|
splitSkillFrontmatter,
|
|
143
143
|
syncBundledProjectSkillsIfMissingAsync
|
|
144
|
-
} from "./index-
|
|
144
|
+
} from "./index-q7z2yws5.js";
|
|
145
145
|
import {
|
|
146
146
|
fastForwardToRefAsync,
|
|
147
147
|
parsePorcelainV2Snapshot,
|
|
@@ -275,7 +275,7 @@ import {
|
|
|
275
275
|
writeAtomicJson,
|
|
276
276
|
writePrWorkflowAtomicJson,
|
|
277
277
|
writeStateWhileLocked
|
|
278
|
-
} from "./index-
|
|
278
|
+
} from "./index-m6632p7f.js";
|
|
279
279
|
import {
|
|
280
280
|
getLanguageForExtension
|
|
281
281
|
} from "./index-pt7h91zc.js";
|
|
@@ -318,7 +318,7 @@ import {
|
|
|
318
318
|
swarmOverwriteCandidates,
|
|
319
319
|
trackedDirtyCandidates,
|
|
320
320
|
transientBackoff
|
|
321
|
-
} from "./index-
|
|
321
|
+
} from "./index-vpxdf79m.js";
|
|
322
322
|
import {
|
|
323
323
|
EPIC_MODE_CONFIG_DISABLED_MESSAGE,
|
|
324
324
|
PlanRecoverySupersededError,
|
|
@@ -350,7 +350,7 @@ import {
|
|
|
350
350
|
updateEpicRecord,
|
|
351
351
|
updateTaskStatus,
|
|
352
352
|
withPlanLifecycleLock
|
|
353
|
-
} from "./index-
|
|
353
|
+
} from "./index-5z4c9acx.js";
|
|
354
354
|
import {
|
|
355
355
|
containsControlChars,
|
|
356
356
|
containsPathTraversal,
|
|
@@ -367,7 +367,7 @@ import {
|
|
|
367
367
|
resolveSpeckitProjection,
|
|
368
368
|
validateSpeckit,
|
|
369
369
|
writeProjectedSpecSync
|
|
370
|
-
} from "./index-
|
|
370
|
+
} from "./index-sg2sd66b.js";
|
|
371
371
|
import {
|
|
372
372
|
clearWorktreeMergeStatus,
|
|
373
373
|
getAllWorktreeMergeFailures,
|
|
@@ -409,7 +409,7 @@ import {
|
|
|
409
409
|
transitionTaskWorkflowEvidenceWithStatus,
|
|
410
410
|
withTaskEvidenceTransaction,
|
|
411
411
|
writeWorkflowWalFile
|
|
412
|
-
} from "./index-
|
|
412
|
+
} from "./index-x8cac18k.js";
|
|
413
413
|
import {
|
|
414
414
|
isPathUnderSwarmWorktreeBase,
|
|
415
415
|
listLiveLaneOwners,
|
|
@@ -418,7 +418,7 @@ import {
|
|
|
418
418
|
recordLiveLaneOwner,
|
|
419
419
|
removeWorktree,
|
|
420
420
|
resolveWorktreeBaseDir
|
|
421
|
-
} from "./index-
|
|
421
|
+
} from "./index-4y90ecpz.js";
|
|
422
422
|
import {
|
|
423
423
|
MAX_EVENT_LOG_ENTRIES,
|
|
424
424
|
_internals,
|
|
@@ -430,7 +430,7 @@ import {
|
|
|
430
430
|
recordHiveKnowledgeEvent,
|
|
431
431
|
recordKnowledgeEvent,
|
|
432
432
|
resolveKnowledgeEventsPath
|
|
433
|
-
} from "./index-
|
|
433
|
+
} from "./index-kekvdqj6.js";
|
|
434
434
|
import {
|
|
435
435
|
commitDisplayedMembership,
|
|
436
436
|
commitEmptyRetrieval,
|
|
@@ -443,7 +443,7 @@ import {
|
|
|
443
443
|
queryLiveMemberships,
|
|
444
444
|
reconcilePhaseClose,
|
|
445
445
|
recordPhaseCloseIntent
|
|
446
|
-
} from "./index-
|
|
446
|
+
} from "./index-jrpfzv5r.js";
|
|
447
447
|
import {
|
|
448
448
|
sanitizeContextText
|
|
449
449
|
} from "./index-m9zzj4ee.js";
|
|
@@ -465,7 +465,7 @@ import {
|
|
|
465
465
|
validateActionableFields,
|
|
466
466
|
validateLesson,
|
|
467
467
|
validateSkillPath
|
|
468
|
-
} from "./index-
|
|
468
|
+
} from "./index-wkbdfy1g.js";
|
|
469
469
|
import {
|
|
470
470
|
MAX_CURATION_PROPOSALS,
|
|
471
471
|
authorizeCuration,
|
|
@@ -476,7 +476,7 @@ import {
|
|
|
476
476
|
} from "./index-rtry5xyf.js";
|
|
477
477
|
import {
|
|
478
478
|
resolveWorktreeIsolationConfig
|
|
479
|
-
} from "./index-
|
|
479
|
+
} from "./index-6w1x38yd.js";
|
|
480
480
|
import {
|
|
481
481
|
RetrospectiveEvidenceSchema
|
|
482
482
|
} from "./index-g22dps7x.js";
|
|
@@ -488,7 +488,7 @@ import {
|
|
|
488
488
|
clearScopeBindings,
|
|
489
489
|
readAuthoritativeScopeBindingSet,
|
|
490
490
|
readDeclaredScopeFilesFromBindings
|
|
491
|
-
} from "./index-
|
|
491
|
+
} from "./index-16n2s0zf.js";
|
|
492
492
|
import {
|
|
493
493
|
DEFAULT_QA_GATES,
|
|
494
494
|
computeProfileHash,
|
|
@@ -513,7 +513,7 @@ import {
|
|
|
513
513
|
replayFromLedgerWithStatus,
|
|
514
514
|
resolvePlanningProfile,
|
|
515
515
|
takeSnapshotEvent
|
|
516
|
-
} from "./index-
|
|
516
|
+
} from "./index-zjjxe0q5.js";
|
|
517
517
|
import {
|
|
518
518
|
MAX_COORDINATION_STATE_LIST_ROWS,
|
|
519
519
|
deleteCoordinationImports,
|
|
@@ -602,7 +602,7 @@ import {
|
|
|
602
602
|
transactFile,
|
|
603
603
|
transactKnowledge,
|
|
604
604
|
wordBigrams
|
|
605
|
-
} from "./index-
|
|
605
|
+
} from "./index-c5wk61ak.js";
|
|
606
606
|
import {
|
|
607
607
|
readTailJsonl,
|
|
608
608
|
readTailJsonlDetailed,
|
|
@@ -687,7 +687,7 @@ import {
|
|
|
687
687
|
loadPluginConfig,
|
|
688
688
|
loadPluginConfigWithMeta,
|
|
689
689
|
resolveEpicConfig
|
|
690
|
-
} from "./index-
|
|
690
|
+
} from "./index-76xnddca.js";
|
|
691
691
|
import {
|
|
692
692
|
addDeferredWarning,
|
|
693
693
|
advisoryWarn,
|
|
@@ -735,7 +735,7 @@ import {
|
|
|
735
735
|
resolveContextWindow,
|
|
736
736
|
resolveGeneratedAgentRole,
|
|
737
737
|
stripKnownSwarmPrefix
|
|
738
|
-
} from "./index-
|
|
738
|
+
} from "./index-k5h4mmwd.js";
|
|
739
739
|
import {
|
|
740
740
|
AGENT_TOOL_MAP,
|
|
741
741
|
ALL_AGENT_NAMES,
|
|
@@ -9663,7 +9663,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
|
|
|
9663
9663
|
return extracted === expectedSessionId;
|
|
9664
9664
|
}
|
|
9665
9665
|
async function inspectStandardWorktreeCollisionOwnership(identity) {
|
|
9666
|
-
const collisionOwnership = await import("./worktree-collision-ownership-
|
|
9666
|
+
const collisionOwnership = await import("./worktree-collision-ownership-egc9b97v.js");
|
|
9667
9667
|
return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
|
|
9668
9668
|
}
|
|
9669
9669
|
async function runRecoveryGit(directory, args, timeoutMs = 15000) {
|
|
@@ -10091,7 +10091,7 @@ async function precreateStandardWorktreeSession(args) {
|
|
|
10091
10091
|
const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
|
|
10092
10092
|
if (laneProfile) {
|
|
10093
10093
|
try {
|
|
10094
|
-
const { writeLaneProfileToDiskReal } = await import("./core-
|
|
10094
|
+
const { writeLaneProfileToDiskReal } = await import("./core-0qgp0a8j.js");
|
|
10095
10095
|
await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
|
|
10096
10096
|
} catch {}
|
|
10097
10097
|
}
|
|
@@ -11085,7 +11085,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
|
|
|
11085
11085
|
}
|
|
11086
11086
|
clearWorktreeMergeStatus(statusKey);
|
|
11087
11087
|
try {
|
|
11088
|
-
const { removeLaneProfileFromDiskReal } = await import("./core-
|
|
11088
|
+
const { removeLaneProfileFromDiskReal } = await import("./core-0qgp0a8j.js");
|
|
11089
11089
|
await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
|
|
11090
11090
|
} catch {}
|
|
11091
11091
|
const state = serializationStateBySessionID.get(dispatch.parentSessionID);
|
|
@@ -13905,6 +13905,19 @@ var BLOCKED_NAMES = new Set([
|
|
|
13905
13905
|
var SIMPLE_ESCAPES = new Set(["n", "r", "t", '"', "'", "\\", "/"]);
|
|
13906
13906
|
|
|
13907
13907
|
// src/full-auto/policy.ts
|
|
13908
|
+
var FULL_AUTO_AUDITED_READ_ONLY_SWARM_TOOLS = [
|
|
13909
|
+
"skill_list",
|
|
13910
|
+
"skill_inspect",
|
|
13911
|
+
"external_skill_list",
|
|
13912
|
+
"external_skill_inspect",
|
|
13913
|
+
"knowledge_receipt_status",
|
|
13914
|
+
"retrieve_lane_output",
|
|
13915
|
+
"lean_turbo_plan_lanes",
|
|
13916
|
+
"plan_conflict_check",
|
|
13917
|
+
"scope_validate",
|
|
13918
|
+
"context_status",
|
|
13919
|
+
"suggest_patch"
|
|
13920
|
+
];
|
|
13908
13921
|
var READ_ONLY_TOOLS = new Set([
|
|
13909
13922
|
"check_gate_status",
|
|
13910
13923
|
"completion_verify",
|
|
@@ -13941,6 +13954,7 @@ var READ_ONLY_TOOLS = new Set([
|
|
|
13941
13954
|
"doc_extract",
|
|
13942
13955
|
"req_coverage",
|
|
13943
13956
|
"req_coverage".toLowerCase(),
|
|
13957
|
+
...FULL_AUTO_AUDITED_READ_ONLY_SWARM_TOOLS,
|
|
13944
13958
|
"read",
|
|
13945
13959
|
"glob",
|
|
13946
13960
|
"grep",
|
|
@@ -13968,8 +13982,7 @@ var WRITE_LIKE_TOOLS = new Set([
|
|
|
13968
13982
|
"knowledge_add",
|
|
13969
13983
|
"knowledge_remove",
|
|
13970
13984
|
"curator_analyze",
|
|
13971
|
-
"consensus_mine"
|
|
13972
|
-
"suggest_patch"
|
|
13985
|
+
"consensus_mine"
|
|
13973
13986
|
]);
|
|
13974
13987
|
var SHELL_TOOLS = new Set(["bash", "shell", "exec", "run"]);
|
|
13975
13988
|
var NETWORK_TOOLS = new Set([
|
|
@@ -28922,7 +28935,7 @@ function clearCriticalShownIds(sessionID) {
|
|
|
28922
28935
|
async function rehydratePrSubscriptions(sessionID, directory) {
|
|
28923
28936
|
const map = new Map;
|
|
28924
28937
|
try {
|
|
28925
|
-
const { listActive: listActive2 } = await import("./pr-subscriptions-
|
|
28938
|
+
const { listActive: listActive2 } = await import("./pr-subscriptions-pf6mwhwr.js");
|
|
28926
28939
|
const records = await listActive2(directory);
|
|
28927
28940
|
for (const record of records) {
|
|
28928
28941
|
if (record.sessionID !== sessionID)
|
|
@@ -39553,7 +39566,7 @@ async function handleAttestCommand(directory, args, sessionID) {
|
|
|
39553
39566
|
`);
|
|
39554
39567
|
}
|
|
39555
39568
|
const taskId = args[0];
|
|
39556
|
-
const { executeAttestTask } = await import("./attest-task-
|
|
39569
|
+
const { executeAttestTask } = await import("./attest-task-dxrfae0t.js");
|
|
39557
39570
|
const result = await executeAttestTask({
|
|
39558
39571
|
task_id: taskId,
|
|
39559
39572
|
working_directory: directory,
|
|
@@ -46745,9 +46758,9 @@ function hashContent(content) {
|
|
|
46745
46758
|
return createHash28("sha1").update(content).digest("hex");
|
|
46746
46759
|
}
|
|
46747
46760
|
async function loadConfigForPolicyCurator(directory) {
|
|
46748
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
46761
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-ff9v839b.js");
|
|
46749
46762
|
try {
|
|
46750
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
46763
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-0tvkfdwp.js");
|
|
46751
46764
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
46752
46765
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
46753
46766
|
} catch {
|
|
@@ -49805,7 +49818,7 @@ async function resolveCuratorLLMDelegate(directory, mode, sessionId) {
|
|
|
49805
49818
|
const seam = _internals49.createCuratorLLMDelegate;
|
|
49806
49819
|
if (seam)
|
|
49807
49820
|
return seam(directory, mode, sessionId);
|
|
49808
|
-
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-
|
|
49821
|
+
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-ds4y7k0b.js");
|
|
49809
49822
|
return createCuratorLLMDelegate(directory, mode, sessionId);
|
|
49810
49823
|
}
|
|
49811
49824
|
async function reconcileCloseTerminalStateForPlan(directory, targetPlan, options) {
|
|
@@ -50200,7 +50213,7 @@ async function runFinalizeStage(ctx) {
|
|
|
50200
50213
|
}
|
|
50201
50214
|
}
|
|
50202
50215
|
try {
|
|
50203
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
50216
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-ff9v839b.js");
|
|
50204
50217
|
const { config: pmLoadedConfig } = _internals49.loadPluginConfigWithMeta(ctx.directory);
|
|
50205
50218
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
50206
50219
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -54273,7 +54286,7 @@ function adviseClosingStop(directory) {
|
|
|
54273
54286
|
}
|
|
54274
54287
|
async function writeSnapshot(directory, state) {
|
|
54275
54288
|
try {
|
|
54276
|
-
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-
|
|
54289
|
+
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-e9gvsaj7.js");
|
|
54277
54290
|
await ensureSnapshotCoordinationReady(directory);
|
|
54278
54291
|
if (closingStopAdvisedRoots.size > 0) {
|
|
54279
54292
|
closingStopAdvisedRoots.delete(canonicalProjectKey(directory));
|
|
@@ -57502,7 +57515,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
57502
57515
|
};
|
|
57503
57516
|
}
|
|
57504
57517
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
57505
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
57518
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-0tvkfdwp.js");
|
|
57506
57519
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
57507
57520
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
57508
57521
|
if (sweepConfig?.enabled === false)
|
|
@@ -58626,7 +58639,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
58626
58639
|
}
|
|
58627
58640
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
58628
58641
|
try {
|
|
58629
|
-
const skillModule = await import("./skill-generator-
|
|
58642
|
+
const skillModule = await import("./skill-generator-fgk15dd5.js");
|
|
58630
58643
|
for (const cand of skillCandidates) {
|
|
58631
58644
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
58632
58645
|
continue;
|
|
@@ -59098,7 +59111,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
59098
59111
|
} catch {}
|
|
59099
59112
|
}
|
|
59100
59113
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
59101
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
59114
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-9tz25k7f.js");
|
|
59102
59115
|
for (const { id } of contradictedEntries) {
|
|
59103
59116
|
try {
|
|
59104
59117
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -59930,7 +59943,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
59930
59943
|
warnings.push("Failed to collect knowledge summary.");
|
|
59931
59944
|
}
|
|
59932
59945
|
try {
|
|
59933
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
59946
|
+
const { getScanStatus } = await import("./scan-cursor-8k8rkrcj.js");
|
|
59934
59947
|
const scanStatus = await getScanStatus(directory);
|
|
59935
59948
|
if (scanStatus.remaining_estimate > 0) {
|
|
59936
59949
|
warnings.push(`Fair scan: reviewed ${knowledgeSummary.length} entries this sweep (generation ${scanStatus.generation}); ${scanStatus.remaining_estimate} more eligible entries will be visited in future curation sweeps.`);
|
|
@@ -60102,9 +60115,9 @@ var _internals71 = {
|
|
|
60102
60115
|
verifyPostMortemKnowledgeActions,
|
|
60103
60116
|
repairPostMortemActions,
|
|
60104
60117
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
60105
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
60118
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-ff9v839b.js");
|
|
60106
60119
|
try {
|
|
60107
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
60120
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-0tvkfdwp.js");
|
|
60108
60121
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
60109
60122
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
60110
60123
|
} catch {
|
|
@@ -60112,11 +60125,11 @@ var _internals71 = {
|
|
|
60112
60125
|
}
|
|
60113
60126
|
},
|
|
60114
60127
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
60115
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
60128
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-ekthxye6.js");
|
|
60116
60129
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
60117
60130
|
},
|
|
60118
60131
|
checkHivePromotions: async (entries2, knowledgeConfig, directory) => {
|
|
60119
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
60132
|
+
const { checkHivePromotions } = await import("./hive-promoter-k66hgffk.js");
|
|
60120
60133
|
return checkHivePromotions(entries2, knowledgeConfig, directory);
|
|
60121
60134
|
},
|
|
60122
60135
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -60125,7 +60138,7 @@ var _internals71 = {
|
|
|
60125
60138
|
activateProposal,
|
|
60126
60139
|
listSkills: listSkills2,
|
|
60127
60140
|
sanitizeSlug
|
|
60128
|
-
} = await import("./skill-generator-
|
|
60141
|
+
} = await import("./skill-generator-fgk15dd5.js");
|
|
60129
60142
|
const result = {
|
|
60130
60143
|
approved: [],
|
|
60131
60144
|
rejected: [],
|
|
@@ -60167,7 +60180,7 @@ var _internals71 = {
|
|
|
60167
60180
|
return result;
|
|
60168
60181
|
},
|
|
60169
60182
|
readPriorDriftReports: async (directory) => {
|
|
60170
|
-
const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-
|
|
60183
|
+
const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-45snz8a6.js");
|
|
60171
60184
|
return readPriorDriftReports2(directory);
|
|
60172
60185
|
},
|
|
60173
60186
|
readSwarmKnowledge: (directory) => readKnowledge(resolveSwarmKnowledgePath(directory))
|
|
@@ -70438,9 +70451,9 @@ var _internals79 = {
|
|
|
70438
70451
|
loadPluginConfigWithMeta,
|
|
70439
70452
|
loadCuratorDeps: async () => {
|
|
70440
70453
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate }] = await Promise.all([
|
|
70441
|
-
import("./schema-
|
|
70442
|
-
import("./curator-
|
|
70443
|
-
import("./curator-llm-factory-
|
|
70454
|
+
import("./schema-ff9v839b.js"),
|
|
70455
|
+
import("./curator-ekthxye6.js"),
|
|
70456
|
+
import("./curator-llm-factory-ds4y7k0b.js")
|
|
70444
70457
|
]);
|
|
70445
70458
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate };
|
|
70446
70459
|
}
|
|
@@ -72888,7 +72901,7 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
72888
72901
|
let scanCompleted = false;
|
|
72889
72902
|
let scanRemaining = 0;
|
|
72890
72903
|
try {
|
|
72891
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
72904
|
+
const { getScanStatus } = await import("./scan-cursor-8k8rkrcj.js");
|
|
72892
72905
|
const status = await getScanStatus(directory);
|
|
72893
72906
|
scanGeneration = status.generation;
|
|
72894
72907
|
scanCompleted = status.completed;
|
|
@@ -72898,10 +72911,10 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
72898
72911
|
try {
|
|
72899
72912
|
const { isLinked: isLinked2 } = await import("./knowledge-link-13t3nfrz.js");
|
|
72900
72913
|
if (isLinked2(directory)) {
|
|
72901
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
72914
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-ff9v839b.js");
|
|
72902
72915
|
let config;
|
|
72903
72916
|
try {
|
|
72904
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
72917
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-0tvkfdwp.js");
|
|
72905
72918
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
72906
72919
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
72907
72920
|
} catch {
|
|
@@ -74381,7 +74394,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
74381
74394
|
const result = runConfigDoctor(config, directory, planParallelizationEnabled);
|
|
74382
74395
|
let output;
|
|
74383
74396
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
74384
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
74397
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-9azv1kqx.js");
|
|
74385
74398
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
74386
74399
|
applyLossy: true
|
|
74387
74400
|
});
|
|
@@ -74419,7 +74432,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
74419
74432
|
`;
|
|
74420
74433
|
}
|
|
74421
74434
|
try {
|
|
74422
|
-
const { runModelPreflight } = await import("./model-preflight-
|
|
74435
|
+
const { runModelPreflight } = await import("./model-preflight-1tkjtc9z.js");
|
|
74423
74436
|
const preflight = await runModelPreflight(config, swarmState.opencodeClient, { generatedAgentNames: swarmState.generatedAgentNames });
|
|
74424
74437
|
const missingSelection = preflight.resolutions.filter((resolution) => resolution.status === "missing-selection");
|
|
74425
74438
|
const unresolved = preflight.catalogAvailable ? preflight.resolutions.filter((resolution) => resolution.status === "unresolved") : [];
|
|
@@ -74453,7 +74466,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
74453
74466
|
}
|
|
74454
74467
|
} catch {}
|
|
74455
74468
|
try {
|
|
74456
|
-
const { renderKnowledgeReceiptPhaseIdSection } = await import("./doctor-knowledge-receipt-phase-id-
|
|
74469
|
+
const { renderKnowledgeReceiptPhaseIdSection } = await import("./doctor-knowledge-receipt-phase-id-fggff61y.js");
|
|
74457
74470
|
output += await renderKnowledgeReceiptPhaseIdSection(directory, enableAutoFix);
|
|
74458
74471
|
} catch {}
|
|
74459
74472
|
const strayDirs = detectStraySwarmDirs(directory);
|
|
@@ -76470,7 +76483,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
76470
76483
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
76471
76484
|
}
|
|
76472
76485
|
async function handleEvidenceSummaryCommand(directory) {
|
|
76473
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
76486
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-zc2fc8h1.js");
|
|
76474
76487
|
const artifact = await buildEvidenceSummary(directory);
|
|
76475
76488
|
if (!artifact) {
|
|
76476
76489
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -100908,7 +100921,7 @@ function createCuratorLLMDelegate(directory, mode = "init", sessionId) {
|
|
|
100908
100921
|
}
|
|
100909
100922
|
const sdkOpts = signal ? { signal } : {};
|
|
100910
100923
|
try {
|
|
100911
|
-
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-
|
|
100924
|
+
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-ez0smmcc.js");
|
|
100912
100925
|
const createResult = await client.session.create({
|
|
100913
100926
|
...sessionId ? {
|
|
100914
100927
|
body: {
|
|
@@ -103007,7 +103020,7 @@ async function cancelPrFeedbackLoopUnlocked(directory, sessionID, reason) {
|
|
|
103007
103020
|
clearedEvents: []
|
|
103008
103021
|
};
|
|
103009
103022
|
try {
|
|
103010
|
-
const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-
|
|
103023
|
+
const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-thazeaa1.js");
|
|
103011
103024
|
await cancelPrFeedbackPublication2(directory, sessionID, reason);
|
|
103012
103025
|
} catch (err) {
|
|
103013
103026
|
warn(`[pr-feedback-loop] cancelPrFeedbackPublication failed (fail-open): ${err instanceof Error ? err.message : String(err)}`);
|
|
@@ -119637,7 +119650,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
119637
119650
|
async function handleHelpCommand(ctx) {
|
|
119638
119651
|
const targetCommand = ctx.args.join(" ");
|
|
119639
119652
|
if (!targetCommand) {
|
|
119640
|
-
const { buildHelpText } = await import("./index-
|
|
119653
|
+
const { buildHelpText } = await import("./index-4a3ey5g6.js");
|
|
119641
119654
|
return buildHelpText();
|
|
119642
119655
|
}
|
|
119643
119656
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -119651,7 +119664,7 @@ async function handleHelpCommand(ctx) {
|
|
|
119651
119664
|
> Note: \`/swarm ${resolved.key}\` is a deprecated alias for \`/swarm ${aliasTarget}\`.` : detailed;
|
|
119652
119665
|
}
|
|
119653
119666
|
const similar = _internals38.findSimilarCommands(targetCommand);
|
|
119654
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
119667
|
+
const { buildHelpText: fullHelp } = await import("./index-4a3ey5g6.js");
|
|
119655
119668
|
if (similar.length > 0) {
|
|
119656
119669
|
return `Command '/swarm ${targetCommand}' not found.
|
|
119657
119670
|
|
|
@@ -119979,7 +119992,7 @@ var COMMAND_REGISTRY = {
|
|
|
119979
119992
|
},
|
|
119980
119993
|
"guardrail explain": {
|
|
119981
119994
|
handler: async (ctx) => {
|
|
119982
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
119995
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-bc8garre.js");
|
|
119983
119996
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
119984
119997
|
},
|
|
119985
119998
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -119989,7 +120002,7 @@ var COMMAND_REGISTRY = {
|
|
|
119989
120002
|
},
|
|
119990
120003
|
"guardrail reset": {
|
|
119991
120004
|
handler: async (ctx) => {
|
|
119992
|
-
const { handleGuardrailReset } = await import("./guardrail-reset-
|
|
120005
|
+
const { handleGuardrailReset } = await import("./guardrail-reset-ywcnk88z.js");
|
|
119993
120006
|
return handleGuardrailReset(ctx.args, ctx.sessionID);
|
|
119994
120007
|
},
|
|
119995
120008
|
description: "Reset one exact active invocation/action circuit after repair",
|
|
@@ -120010,7 +120023,7 @@ var COMMAND_REGISTRY = {
|
|
|
120010
120023
|
},
|
|
120011
120024
|
"guardrail-log": {
|
|
120012
120025
|
handler: async (ctx) => {
|
|
120013
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
120026
|
+
const { handleGuardrailLog } = await import("./guardrail-log-hskq7q1w.js");
|
|
120014
120027
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
120015
120028
|
},
|
|
120016
120029
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
autoCommitDirty,
|
|
4
4
|
cleanUntrackedFiles
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-4y90ecpz.js";
|
|
6
6
|
import {
|
|
7
7
|
isSpawnCwdMissing,
|
|
8
8
|
isSpawnCwdUnreadable
|
|
@@ -10,6 +10,10 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
validateSwarmPath
|
|
12
12
|
} from "./index-4krkevgc.js";
|
|
13
|
+
import {
|
|
14
|
+
derivePlanId,
|
|
15
|
+
derivePlanIdentityHash
|
|
16
|
+
} from "./index-7pmbnjvj.js";
|
|
13
17
|
import {
|
|
14
18
|
init_path_identity,
|
|
15
19
|
isPathWithinDeclaredScope,
|
|
@@ -1906,6 +1910,8 @@ var TaskEvidenceSchema = exports_external.object({
|
|
|
1906
1910
|
turbo: exports_external.boolean().optional(),
|
|
1907
1911
|
requirements_state: exports_external.enum(["known", "unknown"]).optional(),
|
|
1908
1912
|
test_engineer_exempt: exports_external.boolean().optional(),
|
|
1913
|
+
planId: exports_external.string().optional(),
|
|
1914
|
+
planIdentityHash: exports_external.string().regex(/^[a-f0-9]{64}$/).optional(),
|
|
1909
1915
|
workflow: TaskWorkflowMetadataSchema.optional(),
|
|
1910
1916
|
repair_provenance: exports_external.object({
|
|
1911
1917
|
source_sha256: exports_external.string().regex(/^[a-f0-9]{64}$/).nullable(),
|
|
@@ -1926,6 +1932,43 @@ function parseTaskEvidence(raw, expectedTaskId) {
|
|
|
1926
1932
|
}
|
|
1927
1933
|
return parsed;
|
|
1928
1934
|
}
|
|
1935
|
+
function resolveCurrentPlanIdentitySync(directory) {
|
|
1936
|
+
if (!directory)
|
|
1937
|
+
return null;
|
|
1938
|
+
try {
|
|
1939
|
+
const planPath = path4.join(directory, ".swarm", "plan.json");
|
|
1940
|
+
const raw = readFileSync3(planPath, "utf8");
|
|
1941
|
+
const plan = JSON.parse(raw);
|
|
1942
|
+
if (typeof plan.swarm !== "string" || typeof plan.title !== "string")
|
|
1943
|
+
return null;
|
|
1944
|
+
return {
|
|
1945
|
+
planId: derivePlanId(plan),
|
|
1946
|
+
planIdentityHash: derivePlanIdentityHash(plan)
|
|
1947
|
+
};
|
|
1948
|
+
} catch {
|
|
1949
|
+
return null;
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
function evidenceStampedForDifferentPlan(evidence, currentPlanIdentityHash) {
|
|
1953
|
+
if (evidence == null || currentPlanIdentityHash == null)
|
|
1954
|
+
return false;
|
|
1955
|
+
return typeof evidence.planIdentityHash === "string" && evidence.planIdentityHash !== currentPlanIdentityHash;
|
|
1956
|
+
}
|
|
1957
|
+
function planStampForPersist(nextEvidence, previous, planIdentity, campaignRestart) {
|
|
1958
|
+
if (nextEvidence.planIdentityHash !== undefined)
|
|
1959
|
+
return {};
|
|
1960
|
+
const carriesGates = Object.keys(nextEvidence.gates ?? {}).length > 0;
|
|
1961
|
+
if (carriesGates && previous != null && !campaignRestart) {
|
|
1962
|
+
return previous.planIdentityHash !== undefined ? {
|
|
1963
|
+
...previous.planId !== undefined ? { planId: previous.planId } : {},
|
|
1964
|
+
planIdentityHash: previous.planIdentityHash
|
|
1965
|
+
} : {};
|
|
1966
|
+
}
|
|
1967
|
+
return planIdentity ? {
|
|
1968
|
+
planId: planIdentity.planId,
|
|
1969
|
+
planIdentityHash: planIdentity.planIdentityHash
|
|
1970
|
+
} : {};
|
|
1971
|
+
}
|
|
1929
1972
|
var DEFAULT_REQUIRED_GATES = ["reviewer", "test_engineer"];
|
|
1930
1973
|
var DEFAULT_WORKFLOW_STATE = "idle";
|
|
1931
1974
|
var WORKFLOW_STATE_RANK = {
|
|
@@ -2501,9 +2544,11 @@ async function withTaskEvidenceTransaction(directory, taskId, agent, callback) {
|
|
|
2501
2544
|
throw error;
|
|
2502
2545
|
}
|
|
2503
2546
|
const persist = async (nextEvidence, event) => {
|
|
2547
|
+
const planIdentity = resolveCurrentPlanIdentitySync(directory);
|
|
2504
2548
|
const validated = TaskEvidenceSchema.parse({
|
|
2505
2549
|
...nextEvidence,
|
|
2506
|
-
taskId
|
|
2550
|
+
taskId,
|
|
2551
|
+
...planStampForPersist(nextEvidence, current, planIdentity, event?.type === "accepted_mutation" && event.agentType === "coder" && nextEvidence !== current)
|
|
2507
2552
|
});
|
|
2508
2553
|
await atomicWriteFile(evidencePath, JSON.stringify(validated, null, 2));
|
|
2509
2554
|
if (event) {
|
|
@@ -2663,4 +2708,4 @@ function compareTaskWorkflowStateRank(left, right) {
|
|
|
2663
2708
|
return WORKFLOW_STATE_RANK[left] - WORKFLOW_STATE_RANK[right];
|
|
2664
2709
|
}
|
|
2665
2710
|
|
|
2666
|
-
export { readTaskGateRequirementsReceiptsSync, routeEvidenceFromTaskGateRequirements, isLegacyTaskGateRequirementsChain, isStrictTaskId, sanitizeTaskId, validateTaskIdFormat, listRecoveryRecords, recoveryReadErrored, _internals, SOURCE_WORKTREE_GONE_STAGE, SOURCE_WORKTREE_UNCERTAIN_STAGE, getMergeStrategy, recoverMergeBackFromImmutableCoordinates, reconcileLandedMerge, postMergeCleanup, pruneStaleWorktreeMetadata, attemptMergeBackFromDirty, cleanupOrphanedBranches, startupOrphanRecovery, readWorkflowWalFile, writeWorkflowWalFile, _internals3 as _internals1, TASK_WORKFLOW_SCHEMA_MARKER, readCurrentTaskDeclaredFiles, TASK_GATE_REQUIREMENTS_RECONSTRUCTION_SENTINEL, assertTaskEvidenceWriteAllowed, ExternalEvidenceBundleSchema, parseTaskEvidence, DEFAULT_REQUIRED_GATES, isValidTaskId, getTaskWorkflowSnapshot, deriveApplicableGateSet, isReadOnlyNoMutationEligible, computeExternalDeclarationDigest, externalProofCurrent, isExternalEvidenceInitialCompletionEligible, reduceTaskWorkflowSnapshot, deriveRequiredGates, expandRequiredGates, transitionTaskWorkflowEvidence, transitionTaskWorkflowEvidenceWithStatus, withTaskEvidenceTransaction, ensureTaskGateRequirementsReceiptForSettledTransition, recordGateEvidence, recordTodoScanEvidence, recordAgentDispatch, readTaskEvidence, readTaskEvidenceState, readTaskEvidenceRaw, hasPassedAllGates, compareTaskWorkflowStateRank };
|
|
2711
|
+
export { readTaskGateRequirementsReceiptsSync, routeEvidenceFromTaskGateRequirements, isLegacyTaskGateRequirementsChain, isStrictTaskId, sanitizeTaskId, validateTaskIdFormat, listRecoveryRecords, recoveryReadErrored, _internals, SOURCE_WORKTREE_GONE_STAGE, SOURCE_WORKTREE_UNCERTAIN_STAGE, getMergeStrategy, recoverMergeBackFromImmutableCoordinates, reconcileLandedMerge, postMergeCleanup, pruneStaleWorktreeMetadata, attemptMergeBackFromDirty, cleanupOrphanedBranches, startupOrphanRecovery, readWorkflowWalFile, writeWorkflowWalFile, _internals3 as _internals1, TASK_WORKFLOW_SCHEMA_MARKER, readCurrentTaskDeclaredFiles, TASK_GATE_REQUIREMENTS_RECONSTRUCTION_SENTINEL, assertTaskEvidenceWriteAllowed, ExternalEvidenceBundleSchema, parseTaskEvidence, resolveCurrentPlanIdentitySync, evidenceStampedForDifferentPlan, DEFAULT_REQUIRED_GATES, isValidTaskId, getTaskWorkflowSnapshot, deriveApplicableGateSet, isReadOnlyNoMutationEligible, computeExternalDeclarationDigest, externalProofCurrent, isExternalEvidenceInitialCompletionEligible, reduceTaskWorkflowSnapshot, deriveRequiredGates, expandRequiredGates, transitionTaskWorkflowEvidence, transitionTaskWorkflowEvidenceWithStatus, withTaskEvidenceTransaction, ensureTaskGateRequirementsReceiptForSettledTransition, recordGateEvidence, recordTodoScanEvidence, recordAgentDispatch, readTaskEvidence, readTaskEvidenceState, readTaskEvidenceRaw, hasPassedAllGates, compareTaskWorkflowStateRank };
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reconcileLandedMerge,
|
|
15
15
|
withTaskEvidenceTransaction,
|
|
16
16
|
writeWorkflowWalFile
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-x8cac18k.js";
|
|
18
18
|
import {
|
|
19
19
|
validateSwarmPath
|
|
20
20
|
} from "./index-4krkevgc.js";
|
|
@@ -512,7 +512,7 @@ async function cleanupRecoveredWorktree(directory, descriptor, options) {
|
|
|
512
512
|
awaitingMergeByCallID,
|
|
513
513
|
cleanupStandardWorktreeForCallId,
|
|
514
514
|
standardWorktreeByCallID
|
|
515
|
-
} = await import("./worktree-isolation-
|
|
515
|
+
} = await import("./worktree-isolation-9evd232c.js");
|
|
516
516
|
standardWorktreeByCallID.delete(descriptor.callID);
|
|
517
517
|
if (hasResidue)
|
|
518
518
|
awaitingMergeByCallID.set(descriptor.callID, {
|
|
@@ -648,7 +648,7 @@ async function recoverCoderSettlement(directory, taskId) {
|
|
|
648
648
|
awaitingMergeByCallID,
|
|
649
649
|
finishStandardWorktreeDispatch,
|
|
650
650
|
standardWorktreeByCallID
|
|
651
|
-
} = await import("./worktree-isolation-
|
|
651
|
+
} = await import("./worktree-isolation-9evd232c.js");
|
|
652
652
|
const descriptor = wal.worktree;
|
|
653
653
|
const reconstructedDispatch = {
|
|
654
654
|
callID: descriptor.callID,
|