opencode-swarm 7.200.5 → 7.200.6
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-0k72fh70.js → attest-task-10qxnfg0.js} +25 -25
- package/dist/cli/{auto-checkpoint-8g004dar.js → auto-checkpoint-n4wjv3c3.js} +4 -4
- package/dist/cli/{checkpoint-18wx2473.js → checkpoint-hce4bjpa.js} +8 -8
- package/dist/cli/{coder-settlement-r2q6pkxc.js → coder-settlement-wzccs5q0.js} +3 -3
- package/dist/cli/{config-doctor-h071vxsj.js → config-doctor-zmrk4e62.js} +7 -7
- package/dist/cli/{core-6767154r.js → core-91vc3hm8.js} +1 -1
- package/dist/cli/{curator-drift-gd7tckag.js → curator-drift-jnnfryzt.js} +5 -5
- package/dist/cli/{curator-llm-factory-mf701qb7.js → curator-llm-factory-mj9nwpqy.js} +25 -25
- package/dist/cli/{curator-pf0edk2z.js → curator-mx34qmvj.js} +25 -25
- package/dist/cli/{doctor-knowledge-receipt-phase-id-zz0tz3pt.js → doctor-knowledge-receipt-phase-id-wsv9av6b.js} +4 -4
- package/dist/cli/{evidence-summary-service-awjxt2am.js → evidence-summary-service-t8jxvzse.js} +9 -9
- package/dist/cli/{gate-evidence-tvkhkqwy.js → gate-evidence-13evayfx.js} +2 -2
- package/dist/cli/{guardrail-explain-m70anx1g.js → guardrail-explain-w69nx4h3.js} +26 -26
- package/dist/cli/{guardrail-log-3sf6n33b.js → guardrail-log-em42cpeg.js} +3 -3
- package/dist/cli/{guardrail-reset-t94jbv1q.js → guardrail-reset-1z11c474.js} +25 -25
- package/dist/cli/{hive-promoter-60h9tqgs.js → hive-promoter-et6yf4e4.js} +25 -25
- package/dist/cli/{index-dsqavehz.js → index-1j9g90y9.js} +1 -1
- package/dist/cli/{index-8c51asrp.js → index-50h4hrhe.js} +232 -97
- package/dist/cli/{index-b4amh1n3.js → index-6cgh59z6.js} +3 -3
- package/dist/cli/{index-vz1fh1v3.js → index-9ww8f1e9.js} +3 -3
- package/dist/cli/{index-74n7sz4s.js → index-bkdkkxxe.js} +1 -1
- package/dist/cli/{index-vxbj42j0.js → index-cbhkyfmm.js} +2 -2
- package/dist/cli/{index-687c2ze1.js → index-e5b0ayxw.js} +3 -3
- package/dist/cli/{index-se501ytb.js → index-ehcp9r1f.js} +1 -1
- package/dist/cli/{index-ryrg48c7.js → index-fjh70sfg.js} +5 -5
- package/dist/cli/{index-1akazdbj.js → index-gjzfy7zw.js} +1 -1
- package/dist/cli/{index-phz90w3t.js → index-h21p9f69.js} +1 -1
- package/dist/cli/{index-pvj101jx.js → index-he1xpa9h.js} +3 -3
- package/dist/cli/{index-xdk3cxs9.js → index-hfzyp68b.js} +27 -27
- package/dist/cli/{index-4mjfdpte.js → index-j2736j97.js} +6 -6
- package/dist/cli/{index-826kptfe.js → index-k3nhzhkz.js} +3 -3
- package/dist/cli/{index-yamz6830.js → index-kdp4rk4p.js} +1 -1
- package/dist/cli/{index-5qajesjq.js → index-n2vx9eb0.js} +3 -3
- package/dist/cli/{index-wyfag7r7.js → index-n61daqkj.js} +2 -2
- package/dist/cli/{index-cy2gbs5b.js → index-qxse4xm5.js} +1 -1
- package/dist/cli/{index-ee59rzwk.js → index-r9x74612.js} +2 -2
- package/dist/cli/{index-1asbb0r4.js → index-tw0bn65v.js} +1 -1
- package/dist/cli/{index-1by2qd8n.js → index-w747vv23.js} +1 -1
- package/dist/cli/{index-10myvh2k.js → index-wxh0624z.js} +1 -1
- package/dist/cli/{index-hfnj4s6r.js → index-yd8k2081.js} +25 -25
- package/dist/cli/{index-xh861gf3.js → index-ykwya5ff.js} +2 -2
- package/dist/cli/{index-g1b5xxzc.js → index-yy7hq6c5.js} +5 -4
- package/dist/cli/{index-k01n01sc.js → index-z4qhqws0.js} +3 -3
- package/dist/cli/{index-h8419k5d.js → index-zfzgt2hj.js} +4 -4
- package/dist/cli/{index-3x8mz39c.js → index-zq1gna9j.js} +1 -1
- package/dist/cli/{index-twwdx79t.js → index-zv45anwx.js} +1 -1
- package/dist/cli/index.js +26 -26
- package/dist/cli/{knowledge-escalator-3096yt7j.js → knowledge-escalator-6h3bwf6q.js} +7 -7
- package/dist/cli/{knowledge-events-st3j22za.js → knowledge-events-wp1j51h6.js} +5 -5
- package/dist/cli/{knowledge-store-9q8jvd0p.js → knowledge-store-98jhzs3k.js} +1 -1
- package/dist/cli/{knowledge-validator-fak1fvdm.js → knowledge-validator-jttph6bb.js} +2 -2
- package/dist/cli/{mcp-shvt5c9b.js → mcp-3fbk6v7e.js} +1 -1
- package/dist/cli/{model-preflight-cxhdzc9c.js → model-preflight-vps41qvj.js} +25 -25
- package/dist/cli/{pending-delegations-tjj8nhmm.js → pending-delegations-f3yj2qxg.js} +2 -2
- package/dist/cli/{pr-subscriptions-xtnbfg8m.js → pr-subscriptions-ash398n1.js} +1 -1
- package/dist/cli/{pr-workflow-gate-24ytg64p.js → pr-workflow-gate-6za22msz.js} +25 -25
- package/dist/cli/{scan-cursor-drax4dt3.js → scan-cursor-15x71ymh.js} +2 -2
- package/dist/cli/{schema-epr5xxb0.js → schema-69za4986.js} +1 -1
- package/dist/cli/{scope-persistence-pyn9vb4r.js → scope-persistence-6qnvpm85.js} +5 -5
- package/dist/cli/{server-c5b651kg.js → server-cdpsjzsp.js} +25 -25
- package/dist/cli/{skill-generator-r8kvvbh2.js → skill-generator-q77jzyw0.js} +8 -8
- package/dist/cli/{snapshot-coordination-init-wnt85258.js → snapshot-coordination-init-gz9ak1be.js} +25 -25
- package/dist/cli/{speckit-checkoff-64p4d5hf.js → speckit-checkoff-59xs6f5t.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-eej2phhm.js → worktree-collision-ownership-8zm5z35p.js} +2 -2
- package/dist/cli/{worktree-isolation-xsc0k2n3.js → worktree-isolation-f7khy039.js} +25 -25
- package/dist/hooks/guardrails/tool-before.d.ts +1 -1
- package/dist/hooks/shell-executor-context.d.ts +17 -0
- package/dist/hooks/shell-write-detect.d.ts +26 -0
- package/dist/host/v2/hooks.d.ts +20 -0
- package/dist/host/v2/types.d.ts +27 -0
- package/dist/index.js +13 -13
- 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-w747vv23.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-z4qhqws0.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-qxse4xm5.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-j2736j97.js";
|
|
92
92
|
import {
|
|
93
93
|
alreadyCuratedThisGeneration,
|
|
94
94
|
claimNextScanBatch,
|
|
95
95
|
resolveCohortId
|
|
96
|
-
} from "./index-
|
|
96
|
+
} from "./index-zq1gna9j.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-bkdkkxxe.js";
|
|
116
116
|
import {
|
|
117
117
|
assertNoUnsettledCoderDispatch,
|
|
118
118
|
listCoderSettlementWalStates,
|
|
119
119
|
recoverCoderSettlement,
|
|
120
120
|
recoverStaleCoderSettlements
|
|
121
|
-
} from "./index-
|
|
121
|
+
} from "./index-k3nhzhkz.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-6cgh59z6.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-he1xpa9h.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-e5b0ayxw.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-fjh70sfg.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-n2vx9eb0.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-gjzfy7zw.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-zv45anwx.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-r9x74612.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-n61daqkj.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-wxh0624z.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-ykwya5ff.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-tw0bn65v.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-cbhkyfmm.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-zfzgt2hj.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-1j9g90y9.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-ehcp9r1f.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-8zm5z35p.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-91vc3hm8.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-91vc3hm8.js");
|
|
11089
11089
|
await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
|
|
11090
11090
|
} catch {}
|
|
11091
11091
|
const state = serializationStateBySessionID.get(dispatch.parentSessionID);
|
|
@@ -12941,6 +12941,15 @@ function declaresWindowsWrapperLoose(command) {
|
|
|
12941
12941
|
var CMD_BUILTIN_PREFIX = new RegExp(String.raw`(?:(?:^|\s)(?:if\s+(?:not\s+)?exist\s+(?:"[^"]*"|\S+)\s+)|(?:^|[;|&\n])\s*cmd(?:\.exe)?\s+(?:${CMD_SWITCH}\s+)*\/c\s+|(?:^|\s)(?:call|start)\s+)*`, "i");
|
|
12942
12942
|
var CMD_STRIP_PREFIX = new RegExp(String.raw`^cmd(?:\.exe)?\s+(?:${CMD_SWITCH}\s+)*\/[ck]\s+`, "i");
|
|
12943
12943
|
var PS_STRIP_PREFIX = /^(?:powershell|pwsh)(?:\.exe)?\s+(?:-[A-Za-z]+\s+)*-(?:command|c)\s+/i;
|
|
12944
|
+
var observedHostShell;
|
|
12945
|
+
function getObservedHostShell() {
|
|
12946
|
+
return observedHostShell;
|
|
12947
|
+
}
|
|
12948
|
+
function hostShellGrammarFamily(hostShell) {
|
|
12949
|
+
const leaf = hostShell.split(/[\\/]/).filter(Boolean).pop() ?? hostShell;
|
|
12950
|
+
const name = leaf.replace(/\.exe$/i, "").toLowerCase();
|
|
12951
|
+
return name === "powershell" || name === "pwsh" || name === "cmd" ? "windows" : "posix";
|
|
12952
|
+
}
|
|
12944
12953
|
|
|
12945
12954
|
// src/hooks/guardrails/destructive-command.ts
|
|
12946
12955
|
var DC_MAX_UNWRAP_DEPTH = 5;
|
|
@@ -13033,7 +13042,8 @@ function dcStripOneWrapper(cmd) {
|
|
|
13033
13042
|
const evalMatch = /^eval\s+(.+)$/is.exec(t);
|
|
13034
13043
|
if (evalMatch)
|
|
13035
13044
|
return evalMatch[1].replace(/^["']|["']$/g, "").trim();
|
|
13036
|
-
const
|
|
13045
|
+
const envPrefix = /^env(?:\s+(?:[A-Za-z_][A-Za-z0-9_]*=\S+|(?:-[i0vVh]*[uUCSaP]|--u(?:n(?:s(?:e(?:t)?)?)?)?|--c(?:h(?:d(?:i(?:r)?)?)?)?|--a(?:r(?:g(?:v(?:0)?)?)?)?|--s(?:p(?:l(?:i(?:t(?:-(?:s(?:t(?:r(?:i(?:n(?:g)?)?)?)?)?)?)?)?)?)?)?|--e(?:n(?:v(?:0(?:-(?:f(?:r(?:o(?:m)?)?)?)?)?)?)?)?)\s+\S+|-\S+|--[A-Za-z][A-Za-z0-9-]*))*\s+(.+)$/is;
|
|
13046
|
+
const prefixMatch = /^(?:sudo|time|nohup)\s+(.+)$/is.exec(t) ?? envPrefix.exec(t) ?? /^nice\s+(?:-n\s+\d+\s+)?(.+)$/is.exec(t);
|
|
13037
13047
|
if (prefixMatch)
|
|
13038
13048
|
return prefixMatch[1].trim();
|
|
13039
13049
|
const wslMatch = /^wsl(?:\.exe)?\s+(?:-e|--)\s+(.+)$/is.exec(t);
|
|
@@ -23507,21 +23517,6 @@ function withoutEmptyDirectoryRemoval(write) {
|
|
|
23507
23517
|
const { emptyDirectoryRemoval: _dropped, ...rest } = write;
|
|
23508
23518
|
return rest;
|
|
23509
23519
|
}
|
|
23510
|
-
function dedupeWriteTargets(writes) {
|
|
23511
|
-
const keptIndex = new Map;
|
|
23512
|
-
const kept = [];
|
|
23513
|
-
for (const write of writes) {
|
|
23514
|
-
const key = buildDedupeKey(write.category, write.operator, write.path);
|
|
23515
|
-
const index = keptIndex.get(key);
|
|
23516
|
-
if (index === undefined) {
|
|
23517
|
-
keptIndex.set(key, kept.length);
|
|
23518
|
-
kept.push(write);
|
|
23519
|
-
continue;
|
|
23520
|
-
}
|
|
23521
|
-
kept[index] = withoutEmptyDirectoryRemoval(kept[index]);
|
|
23522
|
-
}
|
|
23523
|
-
return kept;
|
|
23524
|
-
}
|
|
23525
23520
|
var REDIRECT_WRITE_TOKENS = new Set([
|
|
23526
23521
|
"GREAT",
|
|
23527
23522
|
"DGREAT",
|
|
@@ -24163,6 +24158,101 @@ function getCommandName(cmd) {
|
|
|
24163
24158
|
return c.name;
|
|
24164
24159
|
return wordText(c.name);
|
|
24165
24160
|
}
|
|
24161
|
+
function basenameAnySep(word) {
|
|
24162
|
+
const leaf = word.split(/[\\/]/).filter(Boolean).pop() ?? word;
|
|
24163
|
+
return leaf.replace(/\.exe$/i, "").toLowerCase();
|
|
24164
|
+
}
|
|
24165
|
+
var ENV_FLAGS_WITH_ARG = new Set([
|
|
24166
|
+
"-u",
|
|
24167
|
+
"-U",
|
|
24168
|
+
"-C",
|
|
24169
|
+
"-S",
|
|
24170
|
+
"-a",
|
|
24171
|
+
"-P",
|
|
24172
|
+
"--split-string",
|
|
24173
|
+
"--unset",
|
|
24174
|
+
"--chdir",
|
|
24175
|
+
"--argv0",
|
|
24176
|
+
"--env0-from"
|
|
24177
|
+
]);
|
|
24178
|
+
function envFlagConsumesNextWord(token) {
|
|
24179
|
+
if (token.startsWith("--")) {
|
|
24180
|
+
const exact = ENV_FLAGS_WITH_ARG.has(token);
|
|
24181
|
+
if (exact)
|
|
24182
|
+
return true;
|
|
24183
|
+
if (token.length < 3)
|
|
24184
|
+
return false;
|
|
24185
|
+
return [...ENV_FLAGS_WITH_ARG].filter((flag) => flag.startsWith("--") && flag.startsWith(token)).length === 1;
|
|
24186
|
+
}
|
|
24187
|
+
if (token.startsWith("-") && token.length > 2) {
|
|
24188
|
+
const chars = token.slice(1).split("");
|
|
24189
|
+
const argTaking = ["u", "U", "C", "S", "a", "P"];
|
|
24190
|
+
const firstArgIndex = chars.findIndex((c) => argTaking.includes(c));
|
|
24191
|
+
return firstArgIndex === chars.length - 1 && chars.slice(0, -1).every((c) => !argTaking.includes(c));
|
|
24192
|
+
}
|
|
24193
|
+
return ENV_FLAGS_WITH_ARG.has(token);
|
|
24194
|
+
}
|
|
24195
|
+
function canonicalInterpreterName(cmd) {
|
|
24196
|
+
const name = getCommandName(cmd);
|
|
24197
|
+
if (!name)
|
|
24198
|
+
return null;
|
|
24199
|
+
const words = [name, ...getSuffixWords(cmd)];
|
|
24200
|
+
let i = 0;
|
|
24201
|
+
for (let hop = 0;hop < words.length; hop++) {
|
|
24202
|
+
const base = basenameAnySep(words[i] ?? "");
|
|
24203
|
+
if (base !== "env" && base !== "command" && base !== "exec")
|
|
24204
|
+
break;
|
|
24205
|
+
i += 1;
|
|
24206
|
+
if (base === "env") {
|
|
24207
|
+
while (i < words.length) {
|
|
24208
|
+
const token = words[i];
|
|
24209
|
+
if (token === undefined)
|
|
24210
|
+
break;
|
|
24211
|
+
if (envFlagConsumesNextWord(token)) {
|
|
24212
|
+
i += 2;
|
|
24213
|
+
continue;
|
|
24214
|
+
}
|
|
24215
|
+
if (token.startsWith("-")) {
|
|
24216
|
+
i += 1;
|
|
24217
|
+
continue;
|
|
24218
|
+
}
|
|
24219
|
+
if (/^[A-Za-z_][A-Za-z0-9_]*=/.test(token)) {
|
|
24220
|
+
i += 1;
|
|
24221
|
+
continue;
|
|
24222
|
+
}
|
|
24223
|
+
break;
|
|
24224
|
+
}
|
|
24225
|
+
} else {
|
|
24226
|
+
while (i < words.length) {
|
|
24227
|
+
const token = words[i];
|
|
24228
|
+
if (token === undefined)
|
|
24229
|
+
break;
|
|
24230
|
+
if (token === "-a" || token === "--arg0") {
|
|
24231
|
+
i += 2;
|
|
24232
|
+
continue;
|
|
24233
|
+
}
|
|
24234
|
+
if (token.startsWith("-")) {
|
|
24235
|
+
i += 1;
|
|
24236
|
+
continue;
|
|
24237
|
+
}
|
|
24238
|
+
break;
|
|
24239
|
+
}
|
|
24240
|
+
}
|
|
24241
|
+
if (i >= words.length)
|
|
24242
|
+
return null;
|
|
24243
|
+
}
|
|
24244
|
+
const word = words[i];
|
|
24245
|
+
if (word === undefined)
|
|
24246
|
+
return null;
|
|
24247
|
+
const full = basenameAnySep(word);
|
|
24248
|
+
if (INTERPRETER_EVAL_COMMANDS.has(full))
|
|
24249
|
+
return full;
|
|
24250
|
+
const stripped = full.replace(/\d+(\.\d+)*$/, "");
|
|
24251
|
+
if (stripped !== "" && stripped !== full && INTERPRETER_EVAL_COMMANDS.has(stripped)) {
|
|
24252
|
+
return stripped;
|
|
24253
|
+
}
|
|
24254
|
+
return null;
|
|
24255
|
+
}
|
|
24166
24256
|
function getSuffixWords(cmd) {
|
|
24167
24257
|
if (!cmd || typeof cmd !== "object")
|
|
24168
24258
|
return [];
|
|
@@ -24711,8 +24801,8 @@ function detectInterpreterEval(cmd) {
|
|
|
24711
24801
|
const name = getCommandName(cmd);
|
|
24712
24802
|
if (!name)
|
|
24713
24803
|
return results;
|
|
24714
|
-
const
|
|
24715
|
-
if (!
|
|
24804
|
+
const canonical = canonicalInterpreterName(cmd);
|
|
24805
|
+
if (!canonical)
|
|
24716
24806
|
return [];
|
|
24717
24807
|
const suffixWords = getSuffixWords(cmd);
|
|
24718
24808
|
const evalFlags = {
|
|
@@ -24730,22 +24820,24 @@ function detectInterpreterEval(cmd) {
|
|
|
24730
24820
|
zsh: ["-c"],
|
|
24731
24821
|
ksh: ["-c"]
|
|
24732
24822
|
};
|
|
24733
|
-
if (
|
|
24823
|
+
if (canonical === "eval") {
|
|
24734
24824
|
results.push({
|
|
24735
24825
|
category: "interpreter_eval",
|
|
24736
24826
|
operator: "eval",
|
|
24737
|
-
path: null
|
|
24827
|
+
path: null,
|
|
24828
|
+
capability: true
|
|
24738
24829
|
});
|
|
24739
24830
|
return results;
|
|
24740
24831
|
}
|
|
24741
|
-
const relevantFlags = evalFlags[
|
|
24832
|
+
const relevantFlags = evalFlags[canonical] ?? [];
|
|
24742
24833
|
const hasEvalFlag = suffixWords.some((word) => relevantFlags.some((f) => word === f || word.startsWith(f) && word.length > f.length));
|
|
24743
24834
|
if (!hasEvalFlag)
|
|
24744
24835
|
return [];
|
|
24745
24836
|
results.push({
|
|
24746
24837
|
category: "interpreter_eval",
|
|
24747
24838
|
operator: `${name} [eval]`,
|
|
24748
|
-
path: null
|
|
24839
|
+
path: null,
|
|
24840
|
+
capability: true
|
|
24749
24841
|
});
|
|
24750
24842
|
return results;
|
|
24751
24843
|
}
|
|
@@ -25610,7 +25702,26 @@ function detectPosixWrites(command) {
|
|
|
25610
25702
|
const procSubWrites = detectProcessSubstitutionWrites(command);
|
|
25611
25703
|
allWrites.push(...procSubWrites);
|
|
25612
25704
|
}
|
|
25613
|
-
|
|
25705
|
+
const seen = new Set;
|
|
25706
|
+
const occurrence = new Map;
|
|
25707
|
+
const collidingKeys = new Set;
|
|
25708
|
+
let writes = [];
|
|
25709
|
+
for (const wt of allWrites) {
|
|
25710
|
+
const key = buildDedupeKey(wt.category, wt.operator, wt.path);
|
|
25711
|
+
if (seen.has(key)) {
|
|
25712
|
+
collidingKeys.add(key);
|
|
25713
|
+
if (wt.capability !== true || wt.category !== "interpreter_eval") {
|
|
25714
|
+
continue;
|
|
25715
|
+
}
|
|
25716
|
+
const n = (occurrence.get(key) ?? 1) + 1;
|
|
25717
|
+
occurrence.set(key, n);
|
|
25718
|
+
writes.push({ ...wt, operator: `${wt.operator} #${n}` });
|
|
25719
|
+
continue;
|
|
25720
|
+
}
|
|
25721
|
+
seen.add(key);
|
|
25722
|
+
writes.push(wt);
|
|
25723
|
+
}
|
|
25724
|
+
writes = writes.map((wt) => wt.emptyDirectoryRemoval === true && collidingKeys.has(buildDedupeKey(wt.category, wt.operator, wt.path)) ? withoutEmptyDirectoryRemoval(wt) : wt);
|
|
25614
25725
|
if (!PLAIN_COMMAND_LINE.test(command)) {
|
|
25615
25726
|
writes = writes.map(withoutEmptyDirectoryRemoval);
|
|
25616
25727
|
}
|
|
@@ -25806,7 +25917,7 @@ function collectWritesWithNodes(node, out, cwdStack) {
|
|
|
25806
25917
|
for (const cmd of node.commands) {
|
|
25807
25918
|
const cdTarget = getCdTarget(cmd);
|
|
25808
25919
|
if (cdTarget) {
|
|
25809
|
-
currentStack[0] = path28.posix.resolve(currentStack[0] ?? "/", cdTarget);
|
|
25920
|
+
currentStack[0] = resolvePath(cdTarget, currentStack[0] ?? "/") ?? path28.posix.resolve(currentStack[0] ?? "/", cdTarget);
|
|
25810
25921
|
} else {
|
|
25811
25922
|
collectWritesWithNodes(cmd, out, currentStack);
|
|
25812
25923
|
}
|
|
@@ -25925,7 +26036,7 @@ function collectWritesWithNodes(node, out, cwdStack) {
|
|
|
25925
26036
|
const effectiveCwd = cwdStack[0] ?? "/";
|
|
25926
26037
|
const cdTarget = getCdTarget(node);
|
|
25927
26038
|
if (cdTarget) {
|
|
25928
|
-
cwdStack[0] = path28.posix.resolve(cwdStack[0] ?? "/", cdTarget);
|
|
26039
|
+
cwdStack[0] = resolvePath(cdTarget, cwdStack[0] ?? "/") ?? path28.posix.resolve(cwdStack[0] ?? "/", cdTarget);
|
|
25929
26040
|
return;
|
|
25930
26041
|
}
|
|
25931
26042
|
const writesFromRedirs = getWritesFromCommandRedirs(node, effectiveCwd);
|
|
@@ -26015,7 +26126,8 @@ function resolveWriteTargets(command, writes, cwd) {
|
|
|
26015
26126
|
return writes.map((original) => ({
|
|
26016
26127
|
original,
|
|
26017
26128
|
resolvedPath: resolvePath(original.path, cwd),
|
|
26018
|
-
resolved: original.path !== null && !isDynamicPath(original.path)
|
|
26129
|
+
resolved: original.path !== null && !isDynamicPath(original.path),
|
|
26130
|
+
...original.capability === true && original.category === "interpreter_eval" ? { evalDirectory: cwd } : {}
|
|
26019
26131
|
}));
|
|
26020
26132
|
}
|
|
26021
26133
|
let ast;
|
|
@@ -26029,23 +26141,35 @@ function resolveWriteTargets(command, writes, cwd) {
|
|
|
26029
26141
|
return writes.map((original) => ({
|
|
26030
26142
|
original,
|
|
26031
26143
|
resolvedPath: resolvePath(original.path, cwd),
|
|
26032
|
-
resolved: original.path !== null && !isDynamicPath(original.path)
|
|
26144
|
+
resolved: original.path !== null && !isDynamicPath(original.path),
|
|
26145
|
+
...original.capability === true && original.category === "interpreter_eval" ? { evalDirectory: cwd } : {}
|
|
26033
26146
|
}));
|
|
26034
26147
|
}
|
|
26035
26148
|
const cwdStack = [cwd];
|
|
26036
26149
|
const writesWithNodes = [];
|
|
26037
26150
|
collectWritesWithNodes(ast, writesWithNodes, cwdStack);
|
|
26038
26151
|
const seen = new Set;
|
|
26152
|
+
const occurrence = new Map;
|
|
26039
26153
|
const collidingKeys = new Set;
|
|
26040
|
-
const deduplicated =
|
|
26154
|
+
const deduplicated = [];
|
|
26155
|
+
for (const wwn of writesWithNodes) {
|
|
26041
26156
|
const key = buildDedupeKey(wwn.write.category, wwn.write.operator, wwn.write.path);
|
|
26042
26157
|
if (seen.has(key)) {
|
|
26043
26158
|
collidingKeys.add(key);
|
|
26044
|
-
|
|
26159
|
+
if (wwn.write.capability !== true || wwn.write.category !== "interpreter_eval") {
|
|
26160
|
+
continue;
|
|
26161
|
+
}
|
|
26162
|
+
const n = (occurrence.get(key) ?? 1) + 1;
|
|
26163
|
+
occurrence.set(key, n);
|
|
26164
|
+
deduplicated.push({
|
|
26165
|
+
write: { ...wwn.write, operator: `${wwn.write.operator} #${n}` },
|
|
26166
|
+
context: wwn.context
|
|
26167
|
+
});
|
|
26168
|
+
continue;
|
|
26045
26169
|
}
|
|
26046
26170
|
seen.add(key);
|
|
26047
|
-
|
|
26048
|
-
}
|
|
26171
|
+
deduplicated.push(wwn);
|
|
26172
|
+
}
|
|
26049
26173
|
const inputKeys = new Set;
|
|
26050
26174
|
for (const write of writes) {
|
|
26051
26175
|
const key = buildDedupeKey(write.category, write.operator, write.path);
|
|
@@ -26058,7 +26182,8 @@ function resolveWriteTargets(command, writes, cwd) {
|
|
|
26058
26182
|
const resolvedPath = resolvePath(write.path, context);
|
|
26059
26183
|
const resolved = write.path !== null && !isDynamicPath(write.path);
|
|
26060
26184
|
const key = buildDedupeKey(write.category, write.operator, write.path);
|
|
26061
|
-
|
|
26185
|
+
const evalDirectory = write.capability === true && write.category === "interpreter_eval" ? context : undefined;
|
|
26186
|
+
resolvedMap.set(key, { resolvedPath, resolved, evalDirectory });
|
|
26062
26187
|
}
|
|
26063
26188
|
return writes.map((input) => {
|
|
26064
26189
|
const key = buildDedupeKey(input.category, input.operator, input.path);
|
|
@@ -26068,13 +26193,15 @@ function resolveWriteTargets(command, writes, cwd) {
|
|
|
26068
26193
|
return {
|
|
26069
26194
|
original,
|
|
26070
26195
|
resolvedPath: resolved.resolvedPath,
|
|
26071
|
-
resolved: resolved.resolved
|
|
26196
|
+
resolved: resolved.resolved,
|
|
26197
|
+
...resolved.evalDirectory !== undefined ? { evalDirectory: resolved.evalDirectory } : {}
|
|
26072
26198
|
};
|
|
26073
26199
|
}
|
|
26074
26200
|
return {
|
|
26075
26201
|
original,
|
|
26076
26202
|
resolvedPath: resolvePath(original.path, cwd),
|
|
26077
|
-
resolved: original.path !== null && !isDynamicPath(original.path)
|
|
26203
|
+
resolved: original.path !== null && !isDynamicPath(original.path),
|
|
26204
|
+
...original.capability === true && original.category === "interpreter_eval" ? { evalDirectory: cwd } : {}
|
|
26078
26205
|
};
|
|
26079
26206
|
});
|
|
26080
26207
|
}
|
|
@@ -26580,7 +26707,7 @@ function isEmptyDirectoryRemovalWithinWorkspace(targetPath, workspace) {
|
|
|
26580
26707
|
return false;
|
|
26581
26708
|
}
|
|
26582
26709
|
}
|
|
26583
|
-
function resolveWindowsWriteAuthority(tool, command, detectedShellType, shaped, platform = process.platform) {
|
|
26710
|
+
function resolveWindowsWriteAuthority(tool, command, detectedShellType, shaped, platform = process.platform, hostShell) {
|
|
26584
26711
|
const cmdWrapper = CMD_WRAPPER_DECLARATION.test(command);
|
|
26585
26712
|
const psWrapper = declaresWindowsWrapperLoose(command);
|
|
26586
26713
|
const inheritedWindows = detectedShellType === "powershell" || detectedShellType === "cmd";
|
|
@@ -26588,10 +26715,18 @@ function resolveWindowsWriteAuthority(tool, command, detectedShellType, shaped,
|
|
|
26588
26715
|
return "cmd";
|
|
26589
26716
|
if (psWrapper || shaped)
|
|
26590
26717
|
return "powershell";
|
|
26591
|
-
|
|
26718
|
+
if (tool === "bash")
|
|
26719
|
+
return null;
|
|
26720
|
+
if (tool === "shell" && hostShell !== undefined && hostShell !== "") {
|
|
26721
|
+
return hostShellGrammarFamily(hostShell) === "windows" && inheritedWindows ? detectedShellType : null;
|
|
26722
|
+
}
|
|
26723
|
+
const posixShellTool = tool === "bash" || tool === "shell";
|
|
26592
26724
|
if (inheritedWindows && !posixShellTool) {
|
|
26593
26725
|
return detectedShellType;
|
|
26594
26726
|
}
|
|
26727
|
+
if (inheritedWindows && posixShellTool && platform === "win32") {
|
|
26728
|
+
return detectedShellType;
|
|
26729
|
+
}
|
|
26595
26730
|
return null;
|
|
26596
26731
|
}
|
|
26597
26732
|
// src/hooks/guardrails/index.ts
|
|
@@ -28787,7 +28922,7 @@ function clearCriticalShownIds(sessionID) {
|
|
|
28787
28922
|
async function rehydratePrSubscriptions(sessionID, directory) {
|
|
28788
28923
|
const map = new Map;
|
|
28789
28924
|
try {
|
|
28790
|
-
const { listActive: listActive2 } = await import("./pr-subscriptions-
|
|
28925
|
+
const { listActive: listActive2 } = await import("./pr-subscriptions-ash398n1.js");
|
|
28791
28926
|
const records = await listActive2(directory);
|
|
28792
28927
|
for (const record of records) {
|
|
28793
28928
|
if (record.sessionID !== sessionID)
|
|
@@ -39418,7 +39553,7 @@ async function handleAttestCommand(directory, args, sessionID) {
|
|
|
39418
39553
|
`);
|
|
39419
39554
|
}
|
|
39420
39555
|
const taskId = args[0];
|
|
39421
|
-
const { executeAttestTask } = await import("./attest-task-
|
|
39556
|
+
const { executeAttestTask } = await import("./attest-task-10qxnfg0.js");
|
|
39422
39557
|
const result = await executeAttestTask({
|
|
39423
39558
|
task_id: taskId,
|
|
39424
39559
|
working_directory: directory,
|
|
@@ -46610,9 +46745,9 @@ function hashContent(content) {
|
|
|
46610
46745
|
return createHash28("sha1").update(content).digest("hex");
|
|
46611
46746
|
}
|
|
46612
46747
|
async function loadConfigForPolicyCurator(directory) {
|
|
46613
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
46748
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-69za4986.js");
|
|
46614
46749
|
try {
|
|
46615
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
46750
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-9ww8f1e9.js");
|
|
46616
46751
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
46617
46752
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
46618
46753
|
} catch {
|
|
@@ -49670,7 +49805,7 @@ async function resolveCuratorLLMDelegate(directory, mode, sessionId) {
|
|
|
49670
49805
|
const seam = _internals49.createCuratorLLMDelegate;
|
|
49671
49806
|
if (seam)
|
|
49672
49807
|
return seam(directory, mode, sessionId);
|
|
49673
|
-
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-
|
|
49808
|
+
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-mj9nwpqy.js");
|
|
49674
49809
|
return createCuratorLLMDelegate(directory, mode, sessionId);
|
|
49675
49810
|
}
|
|
49676
49811
|
async function reconcileCloseTerminalStateForPlan(directory, targetPlan, options) {
|
|
@@ -50065,7 +50200,7 @@ async function runFinalizeStage(ctx) {
|
|
|
50065
50200
|
}
|
|
50066
50201
|
}
|
|
50067
50202
|
try {
|
|
50068
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
50203
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-69za4986.js");
|
|
50069
50204
|
const { config: pmLoadedConfig } = _internals49.loadPluginConfigWithMeta(ctx.directory);
|
|
50070
50205
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
50071
50206
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -54138,7 +54273,7 @@ function adviseClosingStop(directory) {
|
|
|
54138
54273
|
}
|
|
54139
54274
|
async function writeSnapshot(directory, state) {
|
|
54140
54275
|
try {
|
|
54141
|
-
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-
|
|
54276
|
+
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-gz9ak1be.js");
|
|
54142
54277
|
await ensureSnapshotCoordinationReady(directory);
|
|
54143
54278
|
if (closingStopAdvisedRoots.size > 0) {
|
|
54144
54279
|
closingStopAdvisedRoots.delete(canonicalProjectKey(directory));
|
|
@@ -57367,7 +57502,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
57367
57502
|
};
|
|
57368
57503
|
}
|
|
57369
57504
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
57370
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
57505
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-9ww8f1e9.js");
|
|
57371
57506
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
57372
57507
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
57373
57508
|
if (sweepConfig?.enabled === false)
|
|
@@ -58491,7 +58626,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
58491
58626
|
}
|
|
58492
58627
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
58493
58628
|
try {
|
|
58494
|
-
const skillModule = await import("./skill-generator-
|
|
58629
|
+
const skillModule = await import("./skill-generator-q77jzyw0.js");
|
|
58495
58630
|
for (const cand of skillCandidates) {
|
|
58496
58631
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
58497
58632
|
continue;
|
|
@@ -58963,7 +59098,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
58963
59098
|
} catch {}
|
|
58964
59099
|
}
|
|
58965
59100
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
58966
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
59101
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-6h3bwf6q.js");
|
|
58967
59102
|
for (const { id } of contradictedEntries) {
|
|
58968
59103
|
try {
|
|
58969
59104
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -59795,7 +59930,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
59795
59930
|
warnings.push("Failed to collect knowledge summary.");
|
|
59796
59931
|
}
|
|
59797
59932
|
try {
|
|
59798
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
59933
|
+
const { getScanStatus } = await import("./scan-cursor-15x71ymh.js");
|
|
59799
59934
|
const scanStatus = await getScanStatus(directory);
|
|
59800
59935
|
if (scanStatus.remaining_estimate > 0) {
|
|
59801
59936
|
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.`);
|
|
@@ -59967,9 +60102,9 @@ var _internals71 = {
|
|
|
59967
60102
|
verifyPostMortemKnowledgeActions,
|
|
59968
60103
|
repairPostMortemActions,
|
|
59969
60104
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
59970
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
60105
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-69za4986.js");
|
|
59971
60106
|
try {
|
|
59972
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
60107
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-9ww8f1e9.js");
|
|
59973
60108
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
59974
60109
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
59975
60110
|
} catch {
|
|
@@ -59977,11 +60112,11 @@ var _internals71 = {
|
|
|
59977
60112
|
}
|
|
59978
60113
|
},
|
|
59979
60114
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
59980
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
60115
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-mx34qmvj.js");
|
|
59981
60116
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
59982
60117
|
},
|
|
59983
60118
|
checkHivePromotions: async (entries2, knowledgeConfig, directory) => {
|
|
59984
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
60119
|
+
const { checkHivePromotions } = await import("./hive-promoter-et6yf4e4.js");
|
|
59985
60120
|
return checkHivePromotions(entries2, knowledgeConfig, directory);
|
|
59986
60121
|
},
|
|
59987
60122
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -59990,7 +60125,7 @@ var _internals71 = {
|
|
|
59990
60125
|
activateProposal,
|
|
59991
60126
|
listSkills: listSkills2,
|
|
59992
60127
|
sanitizeSlug
|
|
59993
|
-
} = await import("./skill-generator-
|
|
60128
|
+
} = await import("./skill-generator-q77jzyw0.js");
|
|
59994
60129
|
const result = {
|
|
59995
60130
|
approved: [],
|
|
59996
60131
|
rejected: [],
|
|
@@ -60032,7 +60167,7 @@ var _internals71 = {
|
|
|
60032
60167
|
return result;
|
|
60033
60168
|
},
|
|
60034
60169
|
readPriorDriftReports: async (directory) => {
|
|
60035
|
-
const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-
|
|
60170
|
+
const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-jnnfryzt.js");
|
|
60036
60171
|
return readPriorDriftReports2(directory);
|
|
60037
60172
|
},
|
|
60038
60173
|
readSwarmKnowledge: (directory) => readKnowledge(resolveSwarmKnowledgePath(directory))
|
|
@@ -70303,9 +70438,9 @@ var _internals79 = {
|
|
|
70303
70438
|
loadPluginConfigWithMeta,
|
|
70304
70439
|
loadCuratorDeps: async () => {
|
|
70305
70440
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate }] = await Promise.all([
|
|
70306
|
-
import("./schema-
|
|
70307
|
-
import("./curator-
|
|
70308
|
-
import("./curator-llm-factory-
|
|
70441
|
+
import("./schema-69za4986.js"),
|
|
70442
|
+
import("./curator-mx34qmvj.js"),
|
|
70443
|
+
import("./curator-llm-factory-mj9nwpqy.js")
|
|
70309
70444
|
]);
|
|
70310
70445
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate };
|
|
70311
70446
|
}
|
|
@@ -72753,7 +72888,7 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
72753
72888
|
let scanCompleted = false;
|
|
72754
72889
|
let scanRemaining = 0;
|
|
72755
72890
|
try {
|
|
72756
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
72891
|
+
const { getScanStatus } = await import("./scan-cursor-15x71ymh.js");
|
|
72757
72892
|
const status = await getScanStatus(directory);
|
|
72758
72893
|
scanGeneration = status.generation;
|
|
72759
72894
|
scanCompleted = status.completed;
|
|
@@ -72763,10 +72898,10 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
72763
72898
|
try {
|
|
72764
72899
|
const { isLinked: isLinked2 } = await import("./knowledge-link-13t3nfrz.js");
|
|
72765
72900
|
if (isLinked2(directory)) {
|
|
72766
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
72901
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-69za4986.js");
|
|
72767
72902
|
let config;
|
|
72768
72903
|
try {
|
|
72769
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
72904
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-9ww8f1e9.js");
|
|
72770
72905
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
72771
72906
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
72772
72907
|
} catch {
|
|
@@ -74246,7 +74381,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
74246
74381
|
const result = runConfigDoctor(config, directory, planParallelizationEnabled);
|
|
74247
74382
|
let output;
|
|
74248
74383
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
74249
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
74384
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-zmrk4e62.js");
|
|
74250
74385
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
74251
74386
|
applyLossy: true
|
|
74252
74387
|
});
|
|
@@ -74284,7 +74419,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
74284
74419
|
`;
|
|
74285
74420
|
}
|
|
74286
74421
|
try {
|
|
74287
|
-
const { runModelPreflight } = await import("./model-preflight-
|
|
74422
|
+
const { runModelPreflight } = await import("./model-preflight-vps41qvj.js");
|
|
74288
74423
|
const preflight = await runModelPreflight(config, swarmState.opencodeClient, { generatedAgentNames: swarmState.generatedAgentNames });
|
|
74289
74424
|
const missingSelection = preflight.resolutions.filter((resolution) => resolution.status === "missing-selection");
|
|
74290
74425
|
const unresolved = preflight.catalogAvailable ? preflight.resolutions.filter((resolution) => resolution.status === "unresolved") : [];
|
|
@@ -74318,7 +74453,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
74318
74453
|
}
|
|
74319
74454
|
} catch {}
|
|
74320
74455
|
try {
|
|
74321
|
-
const { renderKnowledgeReceiptPhaseIdSection } = await import("./doctor-knowledge-receipt-phase-id-
|
|
74456
|
+
const { renderKnowledgeReceiptPhaseIdSection } = await import("./doctor-knowledge-receipt-phase-id-wsv9av6b.js");
|
|
74322
74457
|
output += await renderKnowledgeReceiptPhaseIdSection(directory, enableAutoFix);
|
|
74323
74458
|
} catch {}
|
|
74324
74459
|
const strayDirs = detectStraySwarmDirs(directory);
|
|
@@ -76335,7 +76470,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
76335
76470
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
76336
76471
|
}
|
|
76337
76472
|
async function handleEvidenceSummaryCommand(directory) {
|
|
76338
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
76473
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-t8jxvzse.js");
|
|
76339
76474
|
const artifact = await buildEvidenceSummary(directory);
|
|
76340
76475
|
if (!artifact) {
|
|
76341
76476
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -100773,7 +100908,7 @@ function createCuratorLLMDelegate(directory, mode = "init", sessionId) {
|
|
|
100773
100908
|
}
|
|
100774
100909
|
const sdkOpts = signal ? { signal } : {};
|
|
100775
100910
|
try {
|
|
100776
|
-
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-
|
|
100911
|
+
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-yd8k2081.js");
|
|
100777
100912
|
const createResult = await client.session.create({
|
|
100778
100913
|
...sessionId ? {
|
|
100779
100914
|
body: {
|
|
@@ -102872,7 +103007,7 @@ async function cancelPrFeedbackLoopUnlocked(directory, sessionID, reason) {
|
|
|
102872
103007
|
clearedEvents: []
|
|
102873
103008
|
};
|
|
102874
103009
|
try {
|
|
102875
|
-
const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-
|
|
103010
|
+
const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-6za22msz.js");
|
|
102876
103011
|
await cancelPrFeedbackPublication2(directory, sessionID, reason);
|
|
102877
103012
|
} catch (err) {
|
|
102878
103013
|
warn(`[pr-feedback-loop] cancelPrFeedbackPublication failed (fail-open): ${err instanceof Error ? err.message : String(err)}`);
|
|
@@ -119502,7 +119637,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
119502
119637
|
async function handleHelpCommand(ctx) {
|
|
119503
119638
|
const targetCommand = ctx.args.join(" ");
|
|
119504
119639
|
if (!targetCommand) {
|
|
119505
|
-
const { buildHelpText } = await import("./index-
|
|
119640
|
+
const { buildHelpText } = await import("./index-hfzyp68b.js");
|
|
119506
119641
|
return buildHelpText();
|
|
119507
119642
|
}
|
|
119508
119643
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -119516,7 +119651,7 @@ async function handleHelpCommand(ctx) {
|
|
|
119516
119651
|
> Note: \`/swarm ${resolved.key}\` is a deprecated alias for \`/swarm ${aliasTarget}\`.` : detailed;
|
|
119517
119652
|
}
|
|
119518
119653
|
const similar = _internals38.findSimilarCommands(targetCommand);
|
|
119519
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
119654
|
+
const { buildHelpText: fullHelp } = await import("./index-hfzyp68b.js");
|
|
119520
119655
|
if (similar.length > 0) {
|
|
119521
119656
|
return `Command '/swarm ${targetCommand}' not found.
|
|
119522
119657
|
|
|
@@ -119844,7 +119979,7 @@ var COMMAND_REGISTRY = {
|
|
|
119844
119979
|
},
|
|
119845
119980
|
"guardrail explain": {
|
|
119846
119981
|
handler: async (ctx) => {
|
|
119847
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
119982
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-w69nx4h3.js");
|
|
119848
119983
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
119849
119984
|
},
|
|
119850
119985
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -119854,7 +119989,7 @@ var COMMAND_REGISTRY = {
|
|
|
119854
119989
|
},
|
|
119855
119990
|
"guardrail reset": {
|
|
119856
119991
|
handler: async (ctx) => {
|
|
119857
|
-
const { handleGuardrailReset } = await import("./guardrail-reset-
|
|
119992
|
+
const { handleGuardrailReset } = await import("./guardrail-reset-1z11c474.js");
|
|
119858
119993
|
return handleGuardrailReset(ctx.args, ctx.sessionID);
|
|
119859
119994
|
},
|
|
119860
119995
|
description: "Reset one exact active invocation/action circuit after repair",
|
|
@@ -119875,7 +120010,7 @@ var COMMAND_REGISTRY = {
|
|
|
119875
120010
|
},
|
|
119876
120011
|
"guardrail-log": {
|
|
119877
120012
|
handler: async (ctx) => {
|
|
119878
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
120013
|
+
const { handleGuardrailLog } = await import("./guardrail-log-em42cpeg.js");
|
|
119879
120014
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
119880
120015
|
},
|
|
119881
120016
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -125207,4 +125342,4 @@ function getAgentConfigs(config, directory, sessionId, projectContext) {
|
|
|
125207
125342
|
return result;
|
|
125208
125343
|
}
|
|
125209
125344
|
|
|
125210
|
-
export { resetActionCircuitExternally, getBlockingActionCircuit, resolveConfiguredAgentModel, resolveRegisteredAgentModel, resolveEffectiveAgentOverride, normalizePath, MAX_PARALLEL_VERDICT_TASKS, computeParallelVerdict, declaresWindowsWrapperLoose, dcNormalizeCommand, dcUnwrapWrappers, dcSplitSegments, dcExtractRecursiveRmTargets, dcEvaluateRecursiveDeleteTargets, dcCheckJunctionCreation, dcExtractWindowsCmdTargets, dcExtractPowerShellTargets, getSharedClassifierGuardrailBlock, classifyCommand, readReviewRouteReceiptSync, enforcePersistedReviewRouteReceipt, recoverPreparedTaskRepair, recoverPreparedTaskRepairUnderPlanLock, repairTaskWorkflowUnderPlanLock, recoverPreparedTaskTerminal, recoverPreparedTaskTerminalUnderPlanLock, commitTaskTerminalUnderPlanLock, matchesTier3, resetArchitectPromptBudgetAdvisories, createArchitectAgent, createCoderAgent, GENERALIST_COUNCIL_PROMPT, SKEPTIC_COUNCIL_PROMPT, DOMAIN_EXPERT_COUNCIL_PROMPT, createCriticAgent, createCuratorAgent, createDesignerAgent, createDocsAgent, createResearcherAgent, SECURITY_CATEGORIES, createReviewerAgent, createSMEAgent, createTestEngineerAgent, _internals146 as _internals, stripSwarmPrefix, extractSwarmIdFromAgentName, resolveFallbackModel, getSwarmAgents, createAgents, resolvePrimaryAgentNames, getAgentConfigs, SWARM_COMMAND_TOOL_COMMANDS, SWARM_COMMAND_TOOL_ALLOWLIST, HUMAN_ONLY_SWARM_COMMANDS, classifySwarmCommandToolUse, classifySwarmCommandChatFallbackUse, mergeWriteAnalyses, isPowerShellShaped, isPowerShellReadOnlyPipeline, detectPosixWrites, detectWindowsWrites, resolveWriteTargets, isPosixRmdirExecutor, isEmptyDirectoryRemovalWithinWorkspace, resolveWindowsWriteAuthority, swarmState, startAgentSession, getAgentSession, ensureAgentSession, hasModifiedFilesForTask, getModifiedFilesForTask, updateTaskWorkflowCache, advanceTaskState, getTaskState, recordStageBCompletion, getStageBRouteEvidence, isStageBRouteRequired, hasBothStageBCompletions, hasActiveTurboMode, hasActiveLeanTurbo, parseLeanLaneIndex, computeLaneRuntimeProfile, MAX_TRACKED_STANDARD_WORKTREE_CALLS, awaitingMergeByCallID, standardWorktreeByCallID, standardWorktreeSerializationSessions, laneChildSessionAgents, recordLaneChildSession, assertTaskIdNotForeignLaneSession, getStandardWorktreeDegradationReason, resetStandardWorktreeIsolationState, checkStandardWorktreeSerializationRelease, sanitizeWorktreeTaskId, preProvisionCollisionCheck, isLaneOwnedByCurrentSession, precreateStandardWorktreeSession, preserveBackgroundWorktreeOwnershipForCallId, preserveDirtyWorktreeForCallId, preserveDirtyWorktreeAtPath, cleanupStandardWorktreeForCallId, abortStandardWorktreeDispatch, runSerializedWithMergeBacks, finishStandardWorktreeDispatch, readLaneEnvFileFromDisk, _internals23 as _internals1, redactSecrets, PR_REVIEW_REPORT_VERDICTS, allowedPrReviewReportVerdicts, normalizePrReviewPartialBaseCoverageRecord, rollbackPrReviewPartialBaseCoverageAdmission, readPrReviewTerminalCoverageForReport, PR_REVIEW_REQUIRED_MICRO_LANE_IDS, PR_REVIEW_DEPTH_TIER_THRESHOLDS, PR_REVIEW_BASE_LANE_FLOORS, PR_REVIEW_TIER_L_CONSOLIDATED_LANE_FLOOR, PR_REVIEW_MICRO_LANE_FLOORS, computePrReviewDepthTier, MAX_PR_REVIEW_SUBMIT_REJECTIONS, MAX_PR_REVIEW_VERDICT_REJECTIONS, MAX_PR_FEEDBACK_INVENTORY_AMENDMENTS, activatePrWorkflow, appendPrWorkflowSkillContractAdvisories, readPrWorkflowGateState, recordPrReviewSubmitRejection, latestPrReviewSubmitRejectionMessage, recordPrReviewVerdictRejection, latestPrReviewVerdictRejectionForLane, submitPrReviewResult, withPrWorkflowCheckoutPreparationLock, withInactivePrWorkflowCheckoutRestoreLock, clearPrWorkflowGateState, terminalizePrWorkflowGateForSession2 as terminalizePrWorkflowGateForSession, PR_WORKFLOW_PROBE_SKIPPED_NO_BUDGET_REASON, collectPrWorkflowPendingLaneLiveness, settlePresumedStalePrWorkflowLanes, abortPrWorkflow, recoverArmedPrWorkflow, bindPrWorkflowHead, rebindPrFeedbackHead, bindPrReviewBase, assertCurrentCheckoutHead, assertPrReviewCleanCheckout, enforcePrWorkflowDispatchLanesAsync, PrReviewResilienceCircuitOpenError, PrReviewResilienceRetryExhaustedError, enforcePrReviewBaseDimensions, rollbackPrReviewBaseAdmissionIfUnlaunched, rollbackPrReviewValidationBatchIfUnlaunched, admitPrReviewPartialBaseCoverage2 as admitPrReviewPartialBaseCoverage, assertPrReviewBaseCoverageSettled2 as assertPrReviewBaseCoverageSettled, recordPrReviewMicroFamilyDispatch, recordPrReviewValidationBatch, assertPrReviewValidationSettled, declarePrFeedbackInventory, enforcePrFeedbackVerificationOwnership, assertPrFeedbackVerificationSettled, recordPrFeedbackStageA, recordPrFeedbackGateBatch, assertPrFeedbackGatePhaseSettled, assertPrFeedbackReadyToPublish, invalidatePrFeedbackPublication, describePrWorkflowPublicationSection, findDanglingLivePublicationGeneration, recordPrFeedbackPushAttemptResult, cancelPrFeedbackPublication, resolvePrReviewWriterRunId, markPrReviewTriggerEvaluationComplete, bindPrReviewTriggerLedger, assertPrReviewArtifactBoundary, assertPrReviewArtifactRecordsMatchAuthoritativeVerdicts, markPrReviewArtifactBoundary, markPrReviewHandoffComplete, readAuthoritativeFindingPolicy, readPrReviewFinalFindingPolicyForReport, transitionPrReviewToFeedback, declarePrFeedbackScope, resolvePrFeedbackScopeDeclaration, consumePrFeedbackScopeDeclaration, validatePrFeedbackScopeBinding, enforcePrWorkflowToolBefore, readPrReviewReentryBindingContext, hasActivePrReviewReentryAuthorization, reserveActivePrReviewReentryAuthorization, completePrWorkflow, _test_exports2 as _test_exports, normalizePrWorkflowShellCommand, describePrWorkflowRevisionDigestFailure, derivePrReviewCandidateInventoryForStatus, prReviewPhaseWindowForStatus, readPrReviewVerdictSettlementReceiptItems, readPrReviewVerdictSettlementEffectiveIds, readAuthoritativePrReviewCriticSettlements, readAuthoritativePrReviewCriticVerdicts, derivePrReviewPresentationOrder, derivePrReviewOrderUnstableItems, derivePrReviewReviewerSeverities, readAuthoritativePrReviewOrderAgreement, formatPrReviewLaneValidationFailure, validateExactStructuredReceiptCoverage2 as validateExactStructuredReceiptCoverage, validatePrReviewDiscoveryLaneCompletion2 as validatePrReviewDiscoveryLaneCompletion, validatePrWorkflowTransportRecovery, prReviewDiscoveryArtifactCoversLane, MAX_SALVAGED_SCHEMA_ERROR_CHARS, readPrWorkflowGateStateForRecovery, handleAcknowledgeSpecDriftCommand, handleAgentsCommand, handleAnalyzeCommand, handleApproveWriteCommand, handleArchiveCommand, applySessionWorkflowView, handleAttestCommand, handleAutoProceedCommand, handleBenchmarkCommand, handleBrainstormCommand, handleCheckpointCommand, DEFAULT_CI_DEADLINE_MS2 as DEFAULT_CI_DEADLINE_MS, createSignalCancellation, handleCiCommand, handleCiSimulateCommand, handleClarifyCommand, safeRealpathSync, createCuratorLLMDelegate, getCoChangePairs, startSnapshotCoordinationInitialization, ensureSnapshotCoordinationReady, retrySnapshotCoordinationInitialization, getSnapshotCoordinationStatus, beginSnapshotCoordinationReset, closeSnapshotCoordinationInitialization, markSnapshotCoordinationClosing, _snapshotCoordinationInternals, handleCloseCommand, _internals70 as _internals2, normalizeRecommendationEntryIdToken, parseKnowledgeRecommendations, parseKnowledgeRecommendationsWithDiagnostics, parseStructuredCuratorBlocks, readCuratorSummary, writeCuratorSummary, appendCuratorRecommendation, mergeCuratorPhaseSummary, filterPhaseEvents, checkPhaseCompliance, runCuratorInit, runCuratorPhase, applyCuratorKnowledgeUpdates, isHiveEligible, countDistinctProjects, checkHivePromotions, _internals74 as _internals3, createHivePromoterHook, promoteToHive, promoteFromSwarm, createMemoryGateway, handleCodebaseReviewCommand, handleConcurrencyCommand, handleConfigCommand, handleConsolidateCommand, handleCostsCommand, handleCouncilCommand, handleCurateCommand, handleDarkMatterCommand, handleDeepDiveCommand, handleDeepResearchCommand, getHostConfigDir, getPluginCachePaths, getPluginLockFilePaths, VERSION_PINNED_LEAF, discoverVersionPinnedCachePaths, readCachePackageVersion, handleDiagnoseCommand, handleDoctorCommand, handleEvidenceCommand, handleEvidenceSummaryCommand, handleExportCommand, handleFullAutoCommand, computeQualityBudget, computeSastScan, handleGateAuditCommand, handleGateStatsCommand, handleHandoffCommand, handleBlueprintValidateCommand, handleBlueprintCurrentCommand, handleBlueprintHistoryCommand, handleBlueprintDiffCommand, handleBlueprintExportCommand, handleHarnessCandidateValidateCommand, handleHarnessCandidateShowCommand, handleHarnessCandidateDiffCommand, handleHistoryCommand, handleKnowledgeQuarantineCommand, handleKnowledgeRestoreCommand, handleKnowledgeMigrateCommand, handleKnowledgeListCommand, handleKnowledgeUnactionableCommand, handleKnowledgeRetryHardeningCommand, handleLearningCommand, handleLinkCommand, searchKnowledge, symbols, handleMemoryCommand, handleMemoryStatusCommand, handleMemoryValueLogCommand, handleMemoryMigrateCommand, handleMemoryImportCommand, handleMemoryExportCommand, handlePlanCommand, handlePreflightCommand, handlePromoteCommand, handleQaGatesCommand, handleRecoverCommand, handleResetCommand, handleResetSessionCommand, handleRetrieveCommand, handleReviewCommand, handleRollbackCommand, handleSddStatusCommand, handleSddValidateCommand, handleSddProjectCommand, handleSddCommand, handleSimulateCommand, handleSpecifyCommand, handleStatusCommand, handleSyncPlanCommand, handleTurboCommand, handleUnlinkCommand, handleWriteRetroCommand, handleHelpCommand, isCommandFailure, COMMAND_REGISTRY, VALID_COMMANDS, _internals38 as _internals4, resolveCommand, normalizeSwarmCommandInput, canonicalCommandKey, formatCommandNotFound, executeSwarmCommand };
|
|
125345
|
+
export { resetActionCircuitExternally, getBlockingActionCircuit, resolveConfiguredAgentModel, resolveRegisteredAgentModel, resolveEffectiveAgentOverride, normalizePath, MAX_PARALLEL_VERDICT_TASKS, computeParallelVerdict, declaresWindowsWrapperLoose, getObservedHostShell, dcNormalizeCommand, dcUnwrapWrappers, dcSplitSegments, dcExtractRecursiveRmTargets, dcEvaluateRecursiveDeleteTargets, dcCheckJunctionCreation, dcExtractWindowsCmdTargets, dcExtractPowerShellTargets, getSharedClassifierGuardrailBlock, classifyCommand, readReviewRouteReceiptSync, enforcePersistedReviewRouteReceipt, recoverPreparedTaskRepair, recoverPreparedTaskRepairUnderPlanLock, repairTaskWorkflowUnderPlanLock, recoverPreparedTaskTerminal, recoverPreparedTaskTerminalUnderPlanLock, commitTaskTerminalUnderPlanLock, matchesTier3, resetArchitectPromptBudgetAdvisories, createArchitectAgent, createCoderAgent, GENERALIST_COUNCIL_PROMPT, SKEPTIC_COUNCIL_PROMPT, DOMAIN_EXPERT_COUNCIL_PROMPT, createCriticAgent, createCuratorAgent, createDesignerAgent, createDocsAgent, createResearcherAgent, SECURITY_CATEGORIES, createReviewerAgent, createSMEAgent, createTestEngineerAgent, _internals146 as _internals, stripSwarmPrefix, extractSwarmIdFromAgentName, resolveFallbackModel, getSwarmAgents, createAgents, resolvePrimaryAgentNames, getAgentConfigs, SWARM_COMMAND_TOOL_COMMANDS, SWARM_COMMAND_TOOL_ALLOWLIST, HUMAN_ONLY_SWARM_COMMANDS, classifySwarmCommandToolUse, classifySwarmCommandChatFallbackUse, mergeWriteAnalyses, isPowerShellShaped, isPowerShellReadOnlyPipeline, detectPosixWrites, detectWindowsWrites, resolveWriteTargets, isPosixRmdirExecutor, isEmptyDirectoryRemovalWithinWorkspace, resolveWindowsWriteAuthority, swarmState, startAgentSession, getAgentSession, ensureAgentSession, hasModifiedFilesForTask, getModifiedFilesForTask, updateTaskWorkflowCache, advanceTaskState, getTaskState, recordStageBCompletion, getStageBRouteEvidence, isStageBRouteRequired, hasBothStageBCompletions, hasActiveTurboMode, hasActiveLeanTurbo, parseLeanLaneIndex, computeLaneRuntimeProfile, MAX_TRACKED_STANDARD_WORKTREE_CALLS, awaitingMergeByCallID, standardWorktreeByCallID, standardWorktreeSerializationSessions, laneChildSessionAgents, recordLaneChildSession, assertTaskIdNotForeignLaneSession, getStandardWorktreeDegradationReason, resetStandardWorktreeIsolationState, checkStandardWorktreeSerializationRelease, sanitizeWorktreeTaskId, preProvisionCollisionCheck, isLaneOwnedByCurrentSession, precreateStandardWorktreeSession, preserveBackgroundWorktreeOwnershipForCallId, preserveDirtyWorktreeForCallId, preserveDirtyWorktreeAtPath, cleanupStandardWorktreeForCallId, abortStandardWorktreeDispatch, runSerializedWithMergeBacks, finishStandardWorktreeDispatch, readLaneEnvFileFromDisk, _internals23 as _internals1, redactSecrets, PR_REVIEW_REPORT_VERDICTS, allowedPrReviewReportVerdicts, normalizePrReviewPartialBaseCoverageRecord, rollbackPrReviewPartialBaseCoverageAdmission, readPrReviewTerminalCoverageForReport, PR_REVIEW_REQUIRED_MICRO_LANE_IDS, PR_REVIEW_DEPTH_TIER_THRESHOLDS, PR_REVIEW_BASE_LANE_FLOORS, PR_REVIEW_TIER_L_CONSOLIDATED_LANE_FLOOR, PR_REVIEW_MICRO_LANE_FLOORS, computePrReviewDepthTier, MAX_PR_REVIEW_SUBMIT_REJECTIONS, MAX_PR_REVIEW_VERDICT_REJECTIONS, MAX_PR_FEEDBACK_INVENTORY_AMENDMENTS, activatePrWorkflow, appendPrWorkflowSkillContractAdvisories, readPrWorkflowGateState, recordPrReviewSubmitRejection, latestPrReviewSubmitRejectionMessage, recordPrReviewVerdictRejection, latestPrReviewVerdictRejectionForLane, submitPrReviewResult, withPrWorkflowCheckoutPreparationLock, withInactivePrWorkflowCheckoutRestoreLock, clearPrWorkflowGateState, terminalizePrWorkflowGateForSession2 as terminalizePrWorkflowGateForSession, PR_WORKFLOW_PROBE_SKIPPED_NO_BUDGET_REASON, collectPrWorkflowPendingLaneLiveness, settlePresumedStalePrWorkflowLanes, abortPrWorkflow, recoverArmedPrWorkflow, bindPrWorkflowHead, rebindPrFeedbackHead, bindPrReviewBase, assertCurrentCheckoutHead, assertPrReviewCleanCheckout, enforcePrWorkflowDispatchLanesAsync, PrReviewResilienceCircuitOpenError, PrReviewResilienceRetryExhaustedError, enforcePrReviewBaseDimensions, rollbackPrReviewBaseAdmissionIfUnlaunched, rollbackPrReviewValidationBatchIfUnlaunched, admitPrReviewPartialBaseCoverage2 as admitPrReviewPartialBaseCoverage, assertPrReviewBaseCoverageSettled2 as assertPrReviewBaseCoverageSettled, recordPrReviewMicroFamilyDispatch, recordPrReviewValidationBatch, assertPrReviewValidationSettled, declarePrFeedbackInventory, enforcePrFeedbackVerificationOwnership, assertPrFeedbackVerificationSettled, recordPrFeedbackStageA, recordPrFeedbackGateBatch, assertPrFeedbackGatePhaseSettled, assertPrFeedbackReadyToPublish, invalidatePrFeedbackPublication, describePrWorkflowPublicationSection, findDanglingLivePublicationGeneration, recordPrFeedbackPushAttemptResult, cancelPrFeedbackPublication, resolvePrReviewWriterRunId, markPrReviewTriggerEvaluationComplete, bindPrReviewTriggerLedger, assertPrReviewArtifactBoundary, assertPrReviewArtifactRecordsMatchAuthoritativeVerdicts, markPrReviewArtifactBoundary, markPrReviewHandoffComplete, readAuthoritativeFindingPolicy, readPrReviewFinalFindingPolicyForReport, transitionPrReviewToFeedback, declarePrFeedbackScope, resolvePrFeedbackScopeDeclaration, consumePrFeedbackScopeDeclaration, validatePrFeedbackScopeBinding, enforcePrWorkflowToolBefore, readPrReviewReentryBindingContext, hasActivePrReviewReentryAuthorization, reserveActivePrReviewReentryAuthorization, completePrWorkflow, _test_exports2 as _test_exports, normalizePrWorkflowShellCommand, describePrWorkflowRevisionDigestFailure, derivePrReviewCandidateInventoryForStatus, prReviewPhaseWindowForStatus, readPrReviewVerdictSettlementReceiptItems, readPrReviewVerdictSettlementEffectiveIds, readAuthoritativePrReviewCriticSettlements, readAuthoritativePrReviewCriticVerdicts, derivePrReviewPresentationOrder, derivePrReviewOrderUnstableItems, derivePrReviewReviewerSeverities, readAuthoritativePrReviewOrderAgreement, formatPrReviewLaneValidationFailure, validateExactStructuredReceiptCoverage2 as validateExactStructuredReceiptCoverage, validatePrReviewDiscoveryLaneCompletion2 as validatePrReviewDiscoveryLaneCompletion, validatePrWorkflowTransportRecovery, prReviewDiscoveryArtifactCoversLane, MAX_SALVAGED_SCHEMA_ERROR_CHARS, readPrWorkflowGateStateForRecovery, handleAcknowledgeSpecDriftCommand, handleAgentsCommand, handleAnalyzeCommand, handleApproveWriteCommand, handleArchiveCommand, applySessionWorkflowView, handleAttestCommand, handleAutoProceedCommand, handleBenchmarkCommand, handleBrainstormCommand, handleCheckpointCommand, DEFAULT_CI_DEADLINE_MS2 as DEFAULT_CI_DEADLINE_MS, createSignalCancellation, handleCiCommand, handleCiSimulateCommand, handleClarifyCommand, safeRealpathSync, createCuratorLLMDelegate, getCoChangePairs, startSnapshotCoordinationInitialization, ensureSnapshotCoordinationReady, retrySnapshotCoordinationInitialization, getSnapshotCoordinationStatus, beginSnapshotCoordinationReset, closeSnapshotCoordinationInitialization, markSnapshotCoordinationClosing, _snapshotCoordinationInternals, handleCloseCommand, _internals70 as _internals2, normalizeRecommendationEntryIdToken, parseKnowledgeRecommendations, parseKnowledgeRecommendationsWithDiagnostics, parseStructuredCuratorBlocks, readCuratorSummary, writeCuratorSummary, appendCuratorRecommendation, mergeCuratorPhaseSummary, filterPhaseEvents, checkPhaseCompliance, runCuratorInit, runCuratorPhase, applyCuratorKnowledgeUpdates, isHiveEligible, countDistinctProjects, checkHivePromotions, _internals74 as _internals3, createHivePromoterHook, promoteToHive, promoteFromSwarm, createMemoryGateway, handleCodebaseReviewCommand, handleConcurrencyCommand, handleConfigCommand, handleConsolidateCommand, handleCostsCommand, handleCouncilCommand, handleCurateCommand, handleDarkMatterCommand, handleDeepDiveCommand, handleDeepResearchCommand, getHostConfigDir, getPluginCachePaths, getPluginLockFilePaths, VERSION_PINNED_LEAF, discoverVersionPinnedCachePaths, readCachePackageVersion, handleDiagnoseCommand, handleDoctorCommand, handleEvidenceCommand, handleEvidenceSummaryCommand, handleExportCommand, handleFullAutoCommand, computeQualityBudget, computeSastScan, handleGateAuditCommand, handleGateStatsCommand, handleHandoffCommand, handleBlueprintValidateCommand, handleBlueprintCurrentCommand, handleBlueprintHistoryCommand, handleBlueprintDiffCommand, handleBlueprintExportCommand, handleHarnessCandidateValidateCommand, handleHarnessCandidateShowCommand, handleHarnessCandidateDiffCommand, handleHistoryCommand, handleKnowledgeQuarantineCommand, handleKnowledgeRestoreCommand, handleKnowledgeMigrateCommand, handleKnowledgeListCommand, handleKnowledgeUnactionableCommand, handleKnowledgeRetryHardeningCommand, handleLearningCommand, handleLinkCommand, searchKnowledge, symbols, handleMemoryCommand, handleMemoryStatusCommand, handleMemoryValueLogCommand, handleMemoryMigrateCommand, handleMemoryImportCommand, handleMemoryExportCommand, handlePlanCommand, handlePreflightCommand, handlePromoteCommand, handleQaGatesCommand, handleRecoverCommand, handleResetCommand, handleResetSessionCommand, handleRetrieveCommand, handleReviewCommand, handleRollbackCommand, handleSddStatusCommand, handleSddValidateCommand, handleSddProjectCommand, handleSddCommand, handleSimulateCommand, handleSpecifyCommand, handleStatusCommand, handleSyncPlanCommand, handleTurboCommand, handleUnlinkCommand, handleWriteRetroCommand, handleHelpCommand, isCommandFailure, COMMAND_REGISTRY, VALID_COMMANDS, _internals38 as _internals4, resolveCommand, normalizeSwarmCommandInput, canonicalCommandKey, formatCommandNotFound, executeSwarmCommand };
|