opencode-swarm 7.200.10 → 7.200.11
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-yx2t832n.js → attest-task-y0n69zgb.js} +26 -26
- package/dist/cli/{auto-checkpoint-15mvj9zm.js → auto-checkpoint-hyaksmtg.js} +4 -4
- package/dist/cli/{checkpoint-65whgvwa.js → checkpoint-t0p781sc.js} +8 -8
- package/dist/cli/{coder-settlement-sdg1he8p.js → coder-settlement-nh88s6es.js} +4 -4
- package/dist/cli/{config-doctor-4af2p2y4.js → config-doctor-sf7hc0q4.js} +7 -7
- package/dist/cli/{core-8swqc6kw.js → core-p168fw3r.js} +1 -1
- package/dist/cli/{curator-6ze04fz3.js → curator-5ayzhk7v.js} +26 -26
- package/dist/cli/{curator-drift-ktf137da.js → curator-drift-jx9kyndc.js} +5 -5
- package/dist/cli/{curator-llm-factory-7vq4rgg7.js → curator-llm-factory-ytfkvtxs.js} +26 -26
- package/dist/cli/{doctor-knowledge-receipt-phase-id-0smwq3ar.js → doctor-knowledge-receipt-phase-id-2gjvxndy.js} +4 -4
- package/dist/cli/{evidence-summary-service-3bhq2gef.js → evidence-summary-service-972sqht5.js} +10 -10
- package/dist/cli/{gate-evidence-gcv0xgfc.js → gate-evidence-n1m842gj.js} +3 -3
- package/dist/cli/{guardrail-explain-9t3mvm92.js → guardrail-explain-6yv78gmk.js} +27 -27
- package/dist/cli/{guardrail-log-ehgpan5n.js → guardrail-log-z5pzgkcv.js} +3 -3
- package/dist/cli/{guardrail-reset-q7m265wy.js → guardrail-reset-w0nxcs6a.js} +26 -26
- package/dist/cli/{hive-promoter-857ranjf.js → hive-promoter-3q0738xg.js} +26 -26
- package/dist/cli/{index-66b4f2qd.js → index-0an54fza.js} +3 -3
- package/dist/cli/{index-mamw83wm.js → index-0g0x9ets.js} +26 -26
- package/dist/cli/{index-vm3j8fvn.js → index-2n7a184b.js} +2 -2
- package/dist/cli/{index-8c6zshfj.js → index-2vj8d8te.js} +1 -1
- package/dist/cli/{index-fbn2mv67.js → index-5k88v1e7.js} +76 -31
- package/dist/cli/{index-06sj5bjh.js → index-814q5t5s.js} +1 -1
- package/dist/cli/{index-vqknke9n.js → index-8g9rn3rp.js} +5 -5
- package/dist/cli/{index-60m7qnds.js → index-aj41bscz.js} +3 -3
- package/dist/cli/{index-ev46f132.js → index-bnbhqvsn.js} +1 -1
- package/dist/cli/{index-rnm6c33a.js → index-bv9tqmpm.js} +1 -1
- package/dist/cli/{index-4dvqvn4k.js → index-ce6qarfq.js} +179 -75
- package/dist/cli/{index-ffm3d4cn.js → index-gkvk9et2.js} +3 -3
- package/dist/cli/{index-tm6nwe43.js → index-h1chaf63.js} +5 -5
- package/dist/cli/{index-r3wyt8za.js → index-hhzwfyd7.js} +1 -1
- package/dist/cli/{index-bt3pxs7r.js → index-jt9j02tm.js} +1 -1
- package/dist/cli/{index-6ehx0pj4.js → index-ke881z7m.js} +2 -2
- package/dist/cli/{index-3h5ztpn5.js → index-krjamprc.js} +2 -2
- package/dist/cli/{index-gsnj3a0h.js → index-kzr3nby8.js} +2 -2
- package/dist/cli/{index-ww5ne0g6.js → index-mq4eyhtf.js} +1 -1
- package/dist/cli/{index-c34tgnwm.js → index-njg8zvqe.js} +3 -3
- package/dist/cli/{index-2dey2mtg.js → index-nnc23ddw.js} +3 -3
- package/dist/cli/{index-43zgg04r.js → index-nzhfhpng.js} +1 -1
- package/dist/cli/{index-vajbtn3v.js → index-qdz6zysj.js} +4 -4
- package/dist/cli/{index-xkavxqf2.js → index-r097ettz.js} +1 -1
- package/dist/cli/{index-6e7jxxys.js → index-ra3erqpk.js} +2 -2
- package/dist/cli/{index-mx34b7bm.js → index-ssp4t8g6.js} +28 -28
- package/dist/cli/{index-h9qhy8r6.js → index-ve74c3a8.js} +6 -6
- package/dist/cli/{index-ywwazz81.js → index-x8sh8v4a.js} +1 -1
- package/dist/cli/{index-zmp1k0mb.js → index-xht6gprr.js} +35 -22
- package/dist/cli/{index-kxxy7zq4.js → index-yn6jrxen.js} +3 -3
- package/dist/cli/{index-nv8tx9v4.js → index-yq73sd3w.js} +1 -1
- package/dist/cli/index.js +27 -27
- package/dist/cli/{knowledge-escalator-6p7m6gkc.js → knowledge-escalator-2e92rdsx.js} +7 -7
- package/dist/cli/{knowledge-events-w3ep12sq.js → knowledge-events-gzqwr94e.js} +5 -5
- package/dist/cli/{knowledge-store-g4cpw0hz.js → knowledge-store-6j8d1gm4.js} +1 -1
- package/dist/cli/{knowledge-validator-zhy6mgxv.js → knowledge-validator-wt2tcfg7.js} +2 -2
- package/dist/cli/{mcp-j1dy60mx.js → mcp-ky6xn6ys.js} +1 -1
- package/dist/cli/{model-preflight-962y2z1d.js → model-preflight-ajt55s59.js} +26 -26
- package/dist/cli/{pending-delegations-erjwa1y6.js → pending-delegations-wry31649.js} +2 -2
- package/dist/cli/{pr-subscriptions-7fcawjg9.js → pr-subscriptions-dsdjbfr4.js} +1 -1
- package/dist/cli/{pr-workflow-gate-j8ee9c6g.js → pr-workflow-gate-0vcq1m95.js} +26 -26
- package/dist/cli/{scan-cursor-msz8j44s.js → scan-cursor-1zgrg7kp.js} +2 -2
- package/dist/cli/{schema-kep9t01t.js → schema-q9xbwkec.js} +1 -1
- package/dist/cli/{scope-persistence-tx71g0ac.js → scope-persistence-4wwmytwh.js} +5 -5
- package/dist/cli/{server-6enk6sfw.js → server-q8ydxk7z.js} +35 -26
- package/dist/cli/{skill-generator-p9fkx1g3.js → skill-generator-b1eqcxej.js} +8 -8
- package/dist/cli/{snapshot-coordination-init-kgftbdmq.js → snapshot-coordination-init-0yva5015.js} +26 -26
- package/dist/cli/{speckit-checkoff-jfdwsy5n.js → speckit-checkoff-sh9w7j5b.js} +3 -3
- package/dist/cli/{workflow-wal-file-xvvwcxr1.js → workflow-wal-file-a2c8e920.js} +2 -2
- package/dist/cli/{worktree-collision-ownership-hac3t2xv.js → worktree-collision-ownership-xr6crt8c.js} +2 -2
- package/dist/cli/{worktree-isolation-tjvxcsr9.js → worktree-isolation-0126b5e7.js} +26 -26
- package/dist/hooks/delegation-gate.d.ts +6 -0
- package/dist/hooks/guardrails/audit-log.d.ts +2 -0
- package/dist/hooks/guardrails/cmd-delete-grammar.d.ts +47 -0
- package/dist/hooks/guardrails/destructive-command.d.ts +11 -3
- package/dist/hooks/guardrails/shell-audit-store.d.ts +2 -0
- package/dist/hooks/guardrails/tool-before.d.ts +16 -0
- package/dist/index.js +17 -17
- 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-5k88v1e7.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-yn6jrxen.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-x8sh8v4a.js";
|
|
40
40
|
import {
|
|
41
41
|
EvaluationTaskV1Schema,
|
|
42
42
|
GateAuditManifestV1Schema,
|
|
@@ -107,16 +107,16 @@ import {
|
|
|
107
107
|
skillContractDigest,
|
|
108
108
|
splitSkillFrontmatter,
|
|
109
109
|
syncBundledProjectSkillsIfMissingAsync
|
|
110
|
-
} from "./index-
|
|
110
|
+
} from "./index-aj41bscz.js";
|
|
111
111
|
import {
|
|
112
112
|
buildEscalationBriefing,
|
|
113
113
|
readRecentEscalations
|
|
114
|
-
} from "./index-
|
|
114
|
+
} from "./index-ve74c3a8.js";
|
|
115
115
|
import {
|
|
116
116
|
alreadyCuratedThisGeneration,
|
|
117
117
|
claimNextScanBatch,
|
|
118
118
|
resolveCohortId
|
|
119
|
-
} from "./index-
|
|
119
|
+
} from "./index-jt9j02tm.js";
|
|
120
120
|
import {
|
|
121
121
|
CURATOR_CONSOLIDATION_PROMPT,
|
|
122
122
|
CURATOR_INIT_PROMPT,
|
|
@@ -135,13 +135,13 @@ import {
|
|
|
135
135
|
getGroupCommitWriter,
|
|
136
136
|
importLegacyJsonl,
|
|
137
137
|
readPriorDriftReports
|
|
138
|
-
} from "./index-
|
|
138
|
+
} from "./index-bv9tqmpm.js";
|
|
139
139
|
import {
|
|
140
140
|
assertNoUnsettledCoderDispatch,
|
|
141
141
|
listCoderSettlementWalStates,
|
|
142
142
|
recoverCoderSettlement,
|
|
143
143
|
recoverStaleCoderSettlements
|
|
144
|
-
} from "./index-
|
|
144
|
+
} from "./index-8g9rn3rp.js";
|
|
145
145
|
import {
|
|
146
146
|
TASK_WORKFLOW_SCHEMA_MARKER,
|
|
147
147
|
compareTaskWorkflowStateRank,
|
|
@@ -155,7 +155,7 @@ import {
|
|
|
155
155
|
readTaskEvidenceState,
|
|
156
156
|
transitionTaskWorkflowEvidenceWithStatus,
|
|
157
157
|
withTaskEvidenceTransaction
|
|
158
|
-
} from "./index-
|
|
158
|
+
} from "./index-r097ettz.js";
|
|
159
159
|
import {
|
|
160
160
|
fastForwardToRefAsync,
|
|
161
161
|
parsePorcelainV2Snapshot,
|
|
@@ -289,7 +289,7 @@ import {
|
|
|
289
289
|
writeAtomicJson,
|
|
290
290
|
writePrWorkflowAtomicJson,
|
|
291
291
|
writeStateWhileLocked
|
|
292
|
-
} from "./index-
|
|
292
|
+
} from "./index-0an54fza.js";
|
|
293
293
|
import {
|
|
294
294
|
MAX_PENDING_SCOPE_BINDINGS,
|
|
295
295
|
canonicalWorkspaceIdentity,
|
|
@@ -298,7 +298,7 @@ import {
|
|
|
298
298
|
clearScopeBindings,
|
|
299
299
|
readAuthoritativeScopeBindingSet,
|
|
300
300
|
readDeclaredScopeFilesFromBindings
|
|
301
|
-
} from "./index-
|
|
301
|
+
} from "./index-bnbhqvsn.js";
|
|
302
302
|
import {
|
|
303
303
|
DEFAULT_QA_GATES,
|
|
304
304
|
computeProfileHash,
|
|
@@ -349,7 +349,7 @@ import {
|
|
|
349
349
|
swarmOverwriteCandidates,
|
|
350
350
|
trackedDirtyCandidates,
|
|
351
351
|
transientBackoff
|
|
352
|
-
} from "./index-
|
|
352
|
+
} from "./index-gkvk9et2.js";
|
|
353
353
|
import {
|
|
354
354
|
EPIC_MODE_CONFIG_DISABLED_MESSAGE,
|
|
355
355
|
PlanRecoverySupersededError,
|
|
@@ -381,7 +381,7 @@ import {
|
|
|
381
381
|
updateEpicRecord,
|
|
382
382
|
updateTaskStatus,
|
|
383
383
|
withPlanLifecycleLock
|
|
384
|
-
} from "./index-
|
|
384
|
+
} from "./index-h1chaf63.js";
|
|
385
385
|
import {
|
|
386
386
|
containsControlChars,
|
|
387
387
|
containsPathTraversal,
|
|
@@ -398,7 +398,7 @@ import {
|
|
|
398
398
|
resolveSpeckitProjection,
|
|
399
399
|
validateSpeckit,
|
|
400
400
|
writeProjectedSpecSync
|
|
401
|
-
} from "./index-
|
|
401
|
+
} from "./index-nnc23ddw.js";
|
|
402
402
|
import {
|
|
403
403
|
clearWorktreeMergeStatus,
|
|
404
404
|
getAllWorktreeMergeFailures,
|
|
@@ -421,7 +421,7 @@ import {
|
|
|
421
421
|
replayFromLedgerWithStatus,
|
|
422
422
|
resolvePlanningProfile,
|
|
423
423
|
takeSnapshotEvent
|
|
424
|
-
} from "./index-
|
|
424
|
+
} from "./index-ra3erqpk.js";
|
|
425
425
|
import {
|
|
426
426
|
MAX_COORDINATION_STATE_LIST_ROWS,
|
|
427
427
|
deleteCoordinationImports,
|
|
@@ -485,7 +485,7 @@ import {
|
|
|
485
485
|
recordHiveKnowledgeEvent,
|
|
486
486
|
recordKnowledgeEvent,
|
|
487
487
|
resolveKnowledgeEventsPath
|
|
488
|
-
} from "./index-
|
|
488
|
+
} from "./index-kzr3nby8.js";
|
|
489
489
|
import {
|
|
490
490
|
commitDisplayedMembership,
|
|
491
491
|
commitEmptyRetrieval,
|
|
@@ -498,7 +498,7 @@ import {
|
|
|
498
498
|
queryLiveMemberships,
|
|
499
499
|
reconcilePhaseClose,
|
|
500
500
|
recordPhaseCloseIntent
|
|
501
|
-
} from "./index-
|
|
501
|
+
} from "./index-ke881z7m.js";
|
|
502
502
|
import {
|
|
503
503
|
sanitizeContextText
|
|
504
504
|
} from "./index-m9zzj4ee.js";
|
|
@@ -519,7 +519,7 @@ import {
|
|
|
519
519
|
validateActionableFields,
|
|
520
520
|
validateLesson,
|
|
521
521
|
validateSkillPath
|
|
522
|
-
} from "./index-
|
|
522
|
+
} from "./index-yq73sd3w.js";
|
|
523
523
|
import {
|
|
524
524
|
MAX_CURATION_PROPOSALS,
|
|
525
525
|
authorizeCuration,
|
|
@@ -558,7 +558,7 @@ import {
|
|
|
558
558
|
transactFile,
|
|
559
559
|
transactKnowledge,
|
|
560
560
|
wordBigrams
|
|
561
|
-
} from "./index-
|
|
561
|
+
} from "./index-qdz6zysj.js";
|
|
562
562
|
import {
|
|
563
563
|
readTailJsonl,
|
|
564
564
|
readTailJsonlDetailed,
|
|
@@ -582,7 +582,7 @@ import {
|
|
|
582
582
|
} from "./index-erp7fk72.js";
|
|
583
583
|
import {
|
|
584
584
|
resolveWorktreeIsolationConfig
|
|
585
|
-
} from "./index-
|
|
585
|
+
} from "./index-krjamprc.js";
|
|
586
586
|
import {
|
|
587
587
|
RetrospectiveEvidenceSchema
|
|
588
588
|
} from "./index-g22dps7x.js";
|
|
@@ -603,7 +603,7 @@ import {
|
|
|
603
603
|
loadPluginConfig,
|
|
604
604
|
loadPluginConfigWithMeta,
|
|
605
605
|
resolveEpicConfig
|
|
606
|
-
} from "./index-
|
|
606
|
+
} from "./index-mq4eyhtf.js";
|
|
607
607
|
import {
|
|
608
608
|
DEFAULT_HARNESS_EVOLUTION_CONFIG,
|
|
609
609
|
DEFAULT_HARNESS_OPT_CONFIG,
|
|
@@ -625,7 +625,7 @@ import {
|
|
|
625
625
|
resolveContextWindow,
|
|
626
626
|
resolveGeneratedAgentRole,
|
|
627
627
|
stripKnownSwarmPrefix
|
|
628
|
-
} from "./index-
|
|
628
|
+
} from "./index-814q5t5s.js";
|
|
629
629
|
import {
|
|
630
630
|
KNOWLEDGE_SCHEMA_VERSION,
|
|
631
631
|
OUTCOME_BLOCK_THRESHOLD,
|
|
@@ -647,7 +647,7 @@ import {
|
|
|
647
647
|
recoveryReadErrored,
|
|
648
648
|
startupOrphanRecovery,
|
|
649
649
|
writeWorkflowWalFile
|
|
650
|
-
} from "./index-
|
|
650
|
+
} from "./index-hhzwfyd7.js";
|
|
651
651
|
import {
|
|
652
652
|
assertSettlementArtifactsRemovable,
|
|
653
653
|
isPathUnderSwarmWorktreeBase,
|
|
@@ -658,7 +658,7 @@ import {
|
|
|
658
658
|
removeWorktree,
|
|
659
659
|
resolveWorktreeBaseDir,
|
|
660
660
|
withSettlementArtifactLifecycle
|
|
661
|
-
} from "./index-
|
|
661
|
+
} from "./index-2n7a184b.js";
|
|
662
662
|
import {
|
|
663
663
|
estimateCharsForTokens,
|
|
664
664
|
estimateTokens,
|
|
@@ -9675,7 +9675,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
|
|
|
9675
9675
|
return extracted === expectedSessionId;
|
|
9676
9676
|
}
|
|
9677
9677
|
async function inspectStandardWorktreeCollisionOwnership(identity) {
|
|
9678
|
-
const collisionOwnership = await import("./worktree-collision-ownership-
|
|
9678
|
+
const collisionOwnership = await import("./worktree-collision-ownership-xr6crt8c.js");
|
|
9679
9679
|
return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
|
|
9680
9680
|
}
|
|
9681
9681
|
async function runRecoveryGit(directory, args, timeoutMs = 15000) {
|
|
@@ -10103,7 +10103,7 @@ async function precreateStandardWorktreeSession(args) {
|
|
|
10103
10103
|
const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
|
|
10104
10104
|
if (laneProfile) {
|
|
10105
10105
|
try {
|
|
10106
|
-
const { writeLaneProfileToDiskReal } = await import("./core-
|
|
10106
|
+
const { writeLaneProfileToDiskReal } = await import("./core-p168fw3r.js");
|
|
10107
10107
|
await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
|
|
10108
10108
|
} catch {}
|
|
10109
10109
|
}
|
|
@@ -11103,7 +11103,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
|
|
|
11103
11103
|
}
|
|
11104
11104
|
clearWorktreeMergeStatus(statusKey);
|
|
11105
11105
|
try {
|
|
11106
|
-
const { removeLaneProfileFromDiskReal } = await import("./core-
|
|
11106
|
+
const { removeLaneProfileFromDiskReal } = await import("./core-p168fw3r.js");
|
|
11107
11107
|
await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
|
|
11108
11108
|
} catch {}
|
|
11109
11109
|
const state = serializationStateBySessionID.get(dispatch.parentSessionID);
|
|
@@ -12975,6 +12975,102 @@ function hostShellGrammarFamily(hostShell) {
|
|
|
12975
12975
|
init_path_identity();
|
|
12976
12976
|
import * as path16 from "path";
|
|
12977
12977
|
import parse from "bash-parser";
|
|
12978
|
+
|
|
12979
|
+
// src/hooks/guardrails/cmd-delete-grammar.ts
|
|
12980
|
+
function dcIsSwitchClusterText(text) {
|
|
12981
|
+
if (text.length === 0)
|
|
12982
|
+
return false;
|
|
12983
|
+
const segments = text.split("/");
|
|
12984
|
+
return segments.length > 0 && segments.every((seg) => /^[A-Za-z]{1,2}$/.test(seg));
|
|
12985
|
+
}
|
|
12986
|
+
function dcScanCmdTokens(args) {
|
|
12987
|
+
const tokens = [];
|
|
12988
|
+
let current = "";
|
|
12989
|
+
let inQuote = false;
|
|
12990
|
+
for (const ch of args) {
|
|
12991
|
+
if (ch === '"') {
|
|
12992
|
+
inQuote = !inQuote;
|
|
12993
|
+
current += ch;
|
|
12994
|
+
continue;
|
|
12995
|
+
}
|
|
12996
|
+
if (!inQuote && /[\s,;=]/.test(ch)) {
|
|
12997
|
+
if (current.length > 0)
|
|
12998
|
+
tokens.push(current);
|
|
12999
|
+
current = "";
|
|
13000
|
+
continue;
|
|
13001
|
+
}
|
|
13002
|
+
current += ch;
|
|
13003
|
+
}
|
|
13004
|
+
if (current.length > 0)
|
|
13005
|
+
tokens.push(current);
|
|
13006
|
+
return tokens;
|
|
13007
|
+
}
|
|
13008
|
+
function dcParseWindowsRecursiveDelete(args) {
|
|
13009
|
+
const tokens = dcScanCmdTokens(args);
|
|
13010
|
+
const fires = tokens.some((token) => {
|
|
13011
|
+
let inQuote = false;
|
|
13012
|
+
let slashIdx = -1;
|
|
13013
|
+
for (let i = 0;i < token.length; i += 1) {
|
|
13014
|
+
if (token[i] === '"') {
|
|
13015
|
+
inQuote = !inQuote;
|
|
13016
|
+
continue;
|
|
13017
|
+
}
|
|
13018
|
+
if (!inQuote && token[i] === "/") {
|
|
13019
|
+
slashIdx = i;
|
|
13020
|
+
break;
|
|
13021
|
+
}
|
|
13022
|
+
}
|
|
13023
|
+
if (slashIdx < 0)
|
|
13024
|
+
return false;
|
|
13025
|
+
const afterSlash = token.slice(slashIdx + 1);
|
|
13026
|
+
const quoteIdx = afterSlash.indexOf('"');
|
|
13027
|
+
const switchText = (quoteIdx >= 0 ? afterSlash.slice(0, quoteIdx) : afterSlash).replace(/["']/g, "");
|
|
13028
|
+
return dcIsSwitchClusterText(switchText) && switchText.replace(/\//g, "").toLowerCase().includes("s");
|
|
13029
|
+
});
|
|
13030
|
+
const targets = [];
|
|
13031
|
+
for (const token of tokens) {
|
|
13032
|
+
let inQuote = false;
|
|
13033
|
+
let slashIdx = -1;
|
|
13034
|
+
for (let i = 0;i < token.length; i += 1) {
|
|
13035
|
+
if (token[i] === '"') {
|
|
13036
|
+
inQuote = !inQuote;
|
|
13037
|
+
continue;
|
|
13038
|
+
}
|
|
13039
|
+
if (!inQuote && token[i] === "/") {
|
|
13040
|
+
slashIdx = i;
|
|
13041
|
+
break;
|
|
13042
|
+
}
|
|
13043
|
+
}
|
|
13044
|
+
if (slashIdx < 0) {
|
|
13045
|
+
targets.push(token.replace(/["']/g, ""));
|
|
13046
|
+
continue;
|
|
13047
|
+
}
|
|
13048
|
+
const afterSlash = token.slice(slashIdx + 1);
|
|
13049
|
+
const quoteIdx = afterSlash.indexOf('"');
|
|
13050
|
+
const switchText = (quoteIdx >= 0 ? afterSlash.slice(0, quoteIdx) : afterSlash).replace(/["']/g, "");
|
|
13051
|
+
const prefix = token.slice(0, slashIdx).replace(/["']/g, "").trim();
|
|
13052
|
+
if (!dcIsSwitchClusterText(switchText)) {
|
|
13053
|
+
if (fires && prefix.length > 0)
|
|
13054
|
+
targets.push(prefix);
|
|
13055
|
+
continue;
|
|
13056
|
+
}
|
|
13057
|
+
if (!switchText.replace(/\//g, "").toLowerCase().includes("s")) {
|
|
13058
|
+
if (fires && prefix.length > 0)
|
|
13059
|
+
targets.push(prefix);
|
|
13060
|
+
continue;
|
|
13061
|
+
}
|
|
13062
|
+
if (prefix.length > 0)
|
|
13063
|
+
targets.push(prefix);
|
|
13064
|
+
if (quoteIdx >= 0) {
|
|
13065
|
+
const rest = afterSlash.slice(quoteIdx).replace(/["']/g, "").trim();
|
|
13066
|
+
if (rest.length > 0)
|
|
13067
|
+
targets.push(rest);
|
|
13068
|
+
}
|
|
13069
|
+
}
|
|
13070
|
+
return { fires, targets };
|
|
13071
|
+
}
|
|
13072
|
+
|
|
13073
|
+
// src/hooks/shell-write-detect.ts
|
|
12978
13074
|
function unsafeShellCommandTextReason(value) {
|
|
12979
13075
|
return unsafePathTextReason(value.replace(/[\r\n]/g, ""));
|
|
12980
13076
|
}
|
|
@@ -13481,7 +13577,7 @@ function detectBuiltinWritesFromString(cmd) {
|
|
|
13481
13577
|
const name = detectorSetMember(leaf, BUILTIN_WRITE_COMMANDS);
|
|
13482
13578
|
if (!name)
|
|
13483
13579
|
return null;
|
|
13484
|
-
if (name === "rmdir" &&
|
|
13580
|
+
if (name === "rmdir" && dcParseWindowsRecursiveDelete(cmd).fires) {
|
|
13485
13581
|
return null;
|
|
13486
13582
|
}
|
|
13487
13583
|
for (let i = tokens.length - 1;i >= 1; i--) {
|
|
@@ -13837,6 +13933,22 @@ function canonicalInterpreterName(cmd) {
|
|
|
13837
13933
|
}
|
|
13838
13934
|
return null;
|
|
13839
13935
|
}
|
|
13936
|
+
function rawSuffixWords(cmd) {
|
|
13937
|
+
const c = cmd;
|
|
13938
|
+
const suffix = c.suffix;
|
|
13939
|
+
if (!Array.isArray(suffix))
|
|
13940
|
+
return [];
|
|
13941
|
+
const words = [];
|
|
13942
|
+
for (const s of suffix) {
|
|
13943
|
+
if (!isBashWord(s))
|
|
13944
|
+
continue;
|
|
13945
|
+
const raw = RAW_WORD_TEXT.get(s);
|
|
13946
|
+
if (raw === undefined)
|
|
13947
|
+
return null;
|
|
13948
|
+
words.push(raw);
|
|
13949
|
+
}
|
|
13950
|
+
return words;
|
|
13951
|
+
}
|
|
13840
13952
|
function getSuffixWords(cmd) {
|
|
13841
13953
|
if (!cmd || typeof cmd !== "object")
|
|
13842
13954
|
return [];
|
|
@@ -14187,10 +14299,11 @@ function detectBuiltinWrites(cmd) {
|
|
|
14187
14299
|
}
|
|
14188
14300
|
if (!BUILTIN_WRITE_COMMANDS.has(lowerName))
|
|
14189
14301
|
return results;
|
|
14190
|
-
const
|
|
14191
|
-
if (lowerName === "rmdir" &&
|
|
14302
|
+
const rawWords = rawSuffixWords(cmd);
|
|
14303
|
+
if (lowerName === "rmdir" && rawWords !== null && dcParseWindowsRecursiveDelete(rawWords.join(" ")).fires) {
|
|
14192
14304
|
return results;
|
|
14193
14305
|
}
|
|
14306
|
+
const suffixWords = getSuffixWords(cmd);
|
|
14194
14307
|
if (lowerName === "rmdir" && suffixWords.length === 1 && isBareRmdirOperand(suffixWords[0])) {
|
|
14195
14308
|
results.push({
|
|
14196
14309
|
category: "builtin_write",
|
|
@@ -16124,7 +16237,7 @@ var DC_REMOTE_PREFIXES = [
|
|
|
16124
16237
|
function dcNormalizeCommand(cmd) {
|
|
16125
16238
|
let s = cmd.normalize("NFKC");
|
|
16126
16239
|
s = s.replace(/`(.)/g, "$1");
|
|
16127
|
-
s = s.replace(/\^([a-zA-Z0-9 ])/g, "$1");
|
|
16240
|
+
s = s.replace(/\^([a-zA-Z0-9 /])/g, "$1");
|
|
16128
16241
|
s = s.replace(/""/g, "");
|
|
16129
16242
|
s = s.replace(/''/g, "");
|
|
16130
16243
|
return s;
|
|
@@ -16594,15 +16707,6 @@ function dcCheckJunctionCreation(segment, cwd) {
|
|
|
16594
16707
|
}
|
|
16595
16708
|
return null;
|
|
16596
16709
|
}
|
|
16597
|
-
function dcExtractWindowsCmdTargets(segment) {
|
|
16598
|
-
const rmdirMatch = /^(?:rmdir|rd)(?:\.exe)?\s+(?:\/[sqSQ]\s+)*"?(.+?)"?\s*$/i.exec(segment);
|
|
16599
|
-
if (rmdirMatch)
|
|
16600
|
-
return [rmdirMatch[1].trim()];
|
|
16601
|
-
const delMatch = /^del(?:\.exe)?\s+(?:\/[sqfSQF]\s+)*"?(.+?)"?\s*$/i.exec(segment);
|
|
16602
|
-
if (delMatch)
|
|
16603
|
-
return [delMatch[1].trim()];
|
|
16604
|
-
return [];
|
|
16605
|
-
}
|
|
16606
16710
|
function dcExtractPowerShellTargets(segment) {
|
|
16607
16711
|
const verbMatch = /^(?:Remove-Item|ri|rm|rmdir|del|erase|rd)\s+/i.exec(segment);
|
|
16608
16712
|
if (!verbMatch)
|
|
@@ -29406,7 +29510,7 @@ function clearCriticalShownIds(sessionID) {
|
|
|
29406
29510
|
async function rehydratePrSubscriptions(sessionID, directory) {
|
|
29407
29511
|
const map = new Map;
|
|
29408
29512
|
try {
|
|
29409
|
-
const { listActive: listActive2 } = await import("./pr-subscriptions-
|
|
29513
|
+
const { listActive: listActive2 } = await import("./pr-subscriptions-dsdjbfr4.js");
|
|
29410
29514
|
const records = await listActive2(directory);
|
|
29411
29515
|
for (const record of records) {
|
|
29412
29516
|
if (record.sessionID !== sessionID)
|
|
@@ -40047,7 +40151,7 @@ async function handleAttestCommand(directory, args, sessionID) {
|
|
|
40047
40151
|
`);
|
|
40048
40152
|
}
|
|
40049
40153
|
const taskId = args[0];
|
|
40050
|
-
const { executeAttestTask } = await import("./attest-task-
|
|
40154
|
+
const { executeAttestTask } = await import("./attest-task-y0n69zgb.js");
|
|
40051
40155
|
const result = await executeAttestTask({
|
|
40052
40156
|
task_id: taskId,
|
|
40053
40157
|
working_directory: directory,
|
|
@@ -47239,9 +47343,9 @@ function hashContent(content) {
|
|
|
47239
47343
|
return createHash28("sha1").update(content).digest("hex");
|
|
47240
47344
|
}
|
|
47241
47345
|
async function loadConfigForPolicyCurator(directory) {
|
|
47242
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
47346
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-q9xbwkec.js");
|
|
47243
47347
|
try {
|
|
47244
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
47348
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-njg8zvqe.js");
|
|
47245
47349
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
47246
47350
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
47247
47351
|
} catch {
|
|
@@ -50299,7 +50403,7 @@ async function resolveCuratorLLMDelegate(directory, mode, sessionId) {
|
|
|
50299
50403
|
const seam = _internals49.createCuratorLLMDelegate;
|
|
50300
50404
|
if (seam)
|
|
50301
50405
|
return seam(directory, mode, sessionId);
|
|
50302
|
-
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-
|
|
50406
|
+
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-ytfkvtxs.js");
|
|
50303
50407
|
return createCuratorLLMDelegate(directory, mode, sessionId);
|
|
50304
50408
|
}
|
|
50305
50409
|
async function reconcileCloseTerminalStateForPlan(directory, targetPlan, options) {
|
|
@@ -50694,7 +50798,7 @@ async function runFinalizeStage(ctx) {
|
|
|
50694
50798
|
}
|
|
50695
50799
|
}
|
|
50696
50800
|
try {
|
|
50697
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
50801
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-q9xbwkec.js");
|
|
50698
50802
|
const { config: pmLoadedConfig } = _internals49.loadPluginConfigWithMeta(ctx.directory);
|
|
50699
50803
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
50700
50804
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -54767,7 +54871,7 @@ function adviseClosingStop(directory) {
|
|
|
54767
54871
|
}
|
|
54768
54872
|
async function writeSnapshot(directory, state) {
|
|
54769
54873
|
try {
|
|
54770
|
-
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-
|
|
54874
|
+
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-0yva5015.js");
|
|
54771
54875
|
await ensureSnapshotCoordinationReady(directory);
|
|
54772
54876
|
if (closingStopAdvisedRoots.size > 0) {
|
|
54773
54877
|
closingStopAdvisedRoots.delete(canonicalProjectKey(directory));
|
|
@@ -57996,7 +58100,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
57996
58100
|
};
|
|
57997
58101
|
}
|
|
57998
58102
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
57999
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
58103
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-njg8zvqe.js");
|
|
58000
58104
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
58001
58105
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
58002
58106
|
if (sweepConfig?.enabled === false)
|
|
@@ -59120,7 +59224,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
59120
59224
|
}
|
|
59121
59225
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
59122
59226
|
try {
|
|
59123
|
-
const skillModule = await import("./skill-generator-
|
|
59227
|
+
const skillModule = await import("./skill-generator-b1eqcxej.js");
|
|
59124
59228
|
for (const cand of skillCandidates) {
|
|
59125
59229
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
59126
59230
|
continue;
|
|
@@ -59592,7 +59696,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
59592
59696
|
} catch {}
|
|
59593
59697
|
}
|
|
59594
59698
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
59595
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
59699
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-2e92rdsx.js");
|
|
59596
59700
|
for (const { id } of contradictedEntries) {
|
|
59597
59701
|
try {
|
|
59598
59702
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -60424,7 +60528,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
60424
60528
|
warnings.push("Failed to collect knowledge summary.");
|
|
60425
60529
|
}
|
|
60426
60530
|
try {
|
|
60427
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
60531
|
+
const { getScanStatus } = await import("./scan-cursor-1zgrg7kp.js");
|
|
60428
60532
|
const scanStatus = await getScanStatus(directory);
|
|
60429
60533
|
if (scanStatus.remaining_estimate > 0) {
|
|
60430
60534
|
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.`);
|
|
@@ -60596,9 +60700,9 @@ var _internals71 = {
|
|
|
60596
60700
|
verifyPostMortemKnowledgeActions,
|
|
60597
60701
|
repairPostMortemActions,
|
|
60598
60702
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
60599
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
60703
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-q9xbwkec.js");
|
|
60600
60704
|
try {
|
|
60601
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
60705
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-njg8zvqe.js");
|
|
60602
60706
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
60603
60707
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
60604
60708
|
} catch {
|
|
@@ -60606,11 +60710,11 @@ var _internals71 = {
|
|
|
60606
60710
|
}
|
|
60607
60711
|
},
|
|
60608
60712
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
60609
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
60713
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-5ayzhk7v.js");
|
|
60610
60714
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
60611
60715
|
},
|
|
60612
60716
|
checkHivePromotions: async (entries2, knowledgeConfig, directory) => {
|
|
60613
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
60717
|
+
const { checkHivePromotions } = await import("./hive-promoter-3q0738xg.js");
|
|
60614
60718
|
return checkHivePromotions(entries2, knowledgeConfig, directory);
|
|
60615
60719
|
},
|
|
60616
60720
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -60619,7 +60723,7 @@ var _internals71 = {
|
|
|
60619
60723
|
activateProposal,
|
|
60620
60724
|
listSkills: listSkills2,
|
|
60621
60725
|
sanitizeSlug
|
|
60622
|
-
} = await import("./skill-generator-
|
|
60726
|
+
} = await import("./skill-generator-b1eqcxej.js");
|
|
60623
60727
|
const result = {
|
|
60624
60728
|
approved: [],
|
|
60625
60729
|
rejected: [],
|
|
@@ -60661,7 +60765,7 @@ var _internals71 = {
|
|
|
60661
60765
|
return result;
|
|
60662
60766
|
},
|
|
60663
60767
|
readPriorDriftReports: async (directory) => {
|
|
60664
|
-
const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-
|
|
60768
|
+
const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-jx9kyndc.js");
|
|
60665
60769
|
return readPriorDriftReports2(directory);
|
|
60666
60770
|
},
|
|
60667
60771
|
readSwarmKnowledge: (directory) => readKnowledge(resolveSwarmKnowledgePath(directory))
|
|
@@ -70932,9 +71036,9 @@ var _internals79 = {
|
|
|
70932
71036
|
loadPluginConfigWithMeta,
|
|
70933
71037
|
loadCuratorDeps: async () => {
|
|
70934
71038
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate }] = await Promise.all([
|
|
70935
|
-
import("./schema-
|
|
70936
|
-
import("./curator-
|
|
70937
|
-
import("./curator-llm-factory-
|
|
71039
|
+
import("./schema-q9xbwkec.js"),
|
|
71040
|
+
import("./curator-5ayzhk7v.js"),
|
|
71041
|
+
import("./curator-llm-factory-ytfkvtxs.js")
|
|
70938
71042
|
]);
|
|
70939
71043
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate };
|
|
70940
71044
|
}
|
|
@@ -73382,7 +73486,7 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
73382
73486
|
let scanCompleted = false;
|
|
73383
73487
|
let scanRemaining = 0;
|
|
73384
73488
|
try {
|
|
73385
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
73489
|
+
const { getScanStatus } = await import("./scan-cursor-1zgrg7kp.js");
|
|
73386
73490
|
const status = await getScanStatus(directory);
|
|
73387
73491
|
scanGeneration = status.generation;
|
|
73388
73492
|
scanCompleted = status.completed;
|
|
@@ -73392,10 +73496,10 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
73392
73496
|
try {
|
|
73393
73497
|
const { isLinked: isLinked2 } = await import("./knowledge-link-r7e2t5c1.js");
|
|
73394
73498
|
if (isLinked2(directory)) {
|
|
73395
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
73499
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-q9xbwkec.js");
|
|
73396
73500
|
let config;
|
|
73397
73501
|
try {
|
|
73398
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
73502
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-njg8zvqe.js");
|
|
73399
73503
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
73400
73504
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
73401
73505
|
} catch {
|
|
@@ -74875,7 +74979,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
74875
74979
|
const result = runConfigDoctor(config, directory, planParallelizationEnabled);
|
|
74876
74980
|
let output;
|
|
74877
74981
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
74878
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
74982
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-sf7hc0q4.js");
|
|
74879
74983
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
74880
74984
|
applyLossy: true
|
|
74881
74985
|
});
|
|
@@ -74913,7 +75017,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
74913
75017
|
`;
|
|
74914
75018
|
}
|
|
74915
75019
|
try {
|
|
74916
|
-
const { runModelPreflight } = await import("./model-preflight-
|
|
75020
|
+
const { runModelPreflight } = await import("./model-preflight-ajt55s59.js");
|
|
74917
75021
|
const preflight = await runModelPreflight(config, swarmState.opencodeClient, { generatedAgentNames: swarmState.generatedAgentNames });
|
|
74918
75022
|
const missingSelection = preflight.resolutions.filter((resolution) => resolution.status === "missing-selection");
|
|
74919
75023
|
const unresolved = preflight.catalogAvailable ? preflight.resolutions.filter((resolution) => resolution.status === "unresolved") : [];
|
|
@@ -74947,7 +75051,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
74947
75051
|
}
|
|
74948
75052
|
} catch {}
|
|
74949
75053
|
try {
|
|
74950
|
-
const { renderKnowledgeReceiptPhaseIdSection } = await import("./doctor-knowledge-receipt-phase-id-
|
|
75054
|
+
const { renderKnowledgeReceiptPhaseIdSection } = await import("./doctor-knowledge-receipt-phase-id-2gjvxndy.js");
|
|
74951
75055
|
output += await renderKnowledgeReceiptPhaseIdSection(directory, enableAutoFix);
|
|
74952
75056
|
} catch {}
|
|
74953
75057
|
const strayDirs = detectStraySwarmDirs(directory);
|
|
@@ -76964,7 +77068,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
76964
77068
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
76965
77069
|
}
|
|
76966
77070
|
async function handleEvidenceSummaryCommand(directory) {
|
|
76967
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
77071
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-972sqht5.js");
|
|
76968
77072
|
const artifact = await buildEvidenceSummary(directory);
|
|
76969
77073
|
if (!artifact) {
|
|
76970
77074
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -101402,7 +101506,7 @@ function createCuratorLLMDelegate(directory, mode = "init", sessionId) {
|
|
|
101402
101506
|
}
|
|
101403
101507
|
const sdkOpts = signal ? { signal } : {};
|
|
101404
101508
|
try {
|
|
101405
|
-
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-
|
|
101509
|
+
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-0g0x9ets.js");
|
|
101406
101510
|
const createResult = await client.session.create({
|
|
101407
101511
|
...sessionId ? {
|
|
101408
101512
|
body: {
|
|
@@ -103501,7 +103605,7 @@ async function cancelPrFeedbackLoopUnlocked(directory, sessionID, reason) {
|
|
|
103501
103605
|
clearedEvents: []
|
|
103502
103606
|
};
|
|
103503
103607
|
try {
|
|
103504
|
-
const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-
|
|
103608
|
+
const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-0vcq1m95.js");
|
|
103505
103609
|
await cancelPrFeedbackPublication2(directory, sessionID, reason);
|
|
103506
103610
|
} catch (err) {
|
|
103507
103611
|
warn(`[pr-feedback-loop] cancelPrFeedbackPublication failed (fail-open): ${err instanceof Error ? err.message : String(err)}`);
|
|
@@ -120141,7 +120245,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
120141
120245
|
async function handleHelpCommand(ctx) {
|
|
120142
120246
|
const targetCommand = ctx.args.join(" ");
|
|
120143
120247
|
if (!targetCommand) {
|
|
120144
|
-
const { buildHelpText } = await import("./index-
|
|
120248
|
+
const { buildHelpText } = await import("./index-ssp4t8g6.js");
|
|
120145
120249
|
return buildHelpText();
|
|
120146
120250
|
}
|
|
120147
120251
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -120155,7 +120259,7 @@ async function handleHelpCommand(ctx) {
|
|
|
120155
120259
|
> Note: \`/swarm ${resolved.key}\` is a deprecated alias for \`/swarm ${aliasTarget}\`.` : detailed;
|
|
120156
120260
|
}
|
|
120157
120261
|
const similar = _internals38.findSimilarCommands(targetCommand);
|
|
120158
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
120262
|
+
const { buildHelpText: fullHelp } = await import("./index-ssp4t8g6.js");
|
|
120159
120263
|
if (similar.length > 0) {
|
|
120160
120264
|
return `Command '/swarm ${targetCommand}' not found.
|
|
120161
120265
|
|
|
@@ -120483,7 +120587,7 @@ var COMMAND_REGISTRY = {
|
|
|
120483
120587
|
},
|
|
120484
120588
|
"guardrail explain": {
|
|
120485
120589
|
handler: async (ctx) => {
|
|
120486
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
120590
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-6yv78gmk.js");
|
|
120487
120591
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
120488
120592
|
},
|
|
120489
120593
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -120493,7 +120597,7 @@ var COMMAND_REGISTRY = {
|
|
|
120493
120597
|
},
|
|
120494
120598
|
"guardrail reset": {
|
|
120495
120599
|
handler: async (ctx) => {
|
|
120496
|
-
const { handleGuardrailReset } = await import("./guardrail-reset-
|
|
120600
|
+
const { handleGuardrailReset } = await import("./guardrail-reset-w0nxcs6a.js");
|
|
120497
120601
|
return handleGuardrailReset(ctx.args, ctx.sessionID);
|
|
120498
120602
|
},
|
|
120499
120603
|
description: "Reset one exact active invocation/action circuit after repair",
|
|
@@ -120514,7 +120618,7 @@ var COMMAND_REGISTRY = {
|
|
|
120514
120618
|
},
|
|
120515
120619
|
"guardrail-log": {
|
|
120516
120620
|
handler: async (ctx) => {
|
|
120517
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
120621
|
+
const { handleGuardrailLog } = await import("./guardrail-log-z5pzgkcv.js");
|
|
120518
120622
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
120519
120623
|
},
|
|
120520
120624
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -125846,4 +125950,4 @@ function getAgentConfigs(config, directory, sessionId, projectContext) {
|
|
|
125846
125950
|
return result;
|
|
125847
125951
|
}
|
|
125848
125952
|
|
|
125849
|
-
export { resetActionCircuitExternally, getBlockingActionCircuit, resolveConfiguredAgentModel, resolveRegisteredAgentModel, resolveEffectiveAgentOverride, normalizePath, MAX_PARALLEL_VERDICT_TASKS, computeParallelVerdict, declaresWindowsWrapperLoose, getObservedHostShell, mergeWriteAnalyses, isPowerShellShaped, isPowerShellReadOnlyPipeline, detectPosixWrites, detectWindowsWrites, resolveWriteTargets, dcNormalizeCommand, dcUnwrapWrappers, dcSplitSegments, dcExtractRecursiveRmTargets, dcEvaluateRecursiveDeleteTargets, dcCheckJunctionCreation,
|
|
125953
|
+
export { resetActionCircuitExternally, getBlockingActionCircuit, resolveConfiguredAgentModel, resolveRegisteredAgentModel, resolveEffectiveAgentOverride, normalizePath, MAX_PARALLEL_VERDICT_TASKS, computeParallelVerdict, declaresWindowsWrapperLoose, getObservedHostShell, dcParseWindowsRecursiveDelete, mergeWriteAnalyses, isPowerShellShaped, isPowerShellReadOnlyPipeline, detectPosixWrites, detectWindowsWrites, resolveWriteTargets, dcNormalizeCommand, dcUnwrapWrappers, dcSplitSegments, dcExtractRecursiveRmTargets, dcEvaluateRecursiveDeleteTargets, dcCheckJunctionCreation, 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, 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 };
|