opencode-swarm 7.181.2 → 7.181.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/cli/{coder-settlement-993vdsd2.js → coder-settlement-vbs5rj3z.js} +10 -10
- package/dist/cli/{config-doctor-nr27vfv6.js → config-doctor-3cb51z08.js} +2 -2
- package/dist/cli/{core-t3tg4397.js → core-0h7y8z0s.js} +2 -2
- package/dist/cli/{curation-policy-m3x9mkj9.js → curation-policy-r4dkajw9.js} +4 -4
- package/dist/cli/{curator-gk392717.js → curator-9sn55eyk.js} +34 -34
- package/dist/cli/curator-drift-d4jkgrba.js +37 -0
- package/dist/cli/{curator-llm-factory-n01we8pa.js → curator-llm-factory-zwc2gpe7.js} +34 -34
- package/dist/cli/{evidence-summary-service-fkvj8ct1.js → evidence-summary-service-sb5seqs3.js} +14 -14
- package/dist/cli/{gate-evidence-1n6zffzb.js → gate-evidence-emq2y7kz.js} +5 -5
- package/dist/cli/{guardrail-explain-81jvm99e.js → guardrail-explain-a3hcrpwv.js} +35 -35
- package/dist/cli/{guardrail-log-mw9x5j8g.js → guardrail-log-ftv03v4x.js} +6 -6
- package/dist/cli/{guardrail-reset-6thsn6ad.js → guardrail-reset-d6qmnvff.js} +34 -34
- package/dist/cli/{hive-promoter-pym6se37.js → hive-promoter-pktjn46n.js} +34 -34
- package/dist/cli/{index-m65tnv4j.js → index-01r2wrwa.js} +1 -1
- package/dist/cli/{index-txx2mrsk.js → index-0ea0c676.js} +25 -11
- package/dist/cli/{index-gmqf6bjj.js → index-12fxtcce.js} +36 -36
- package/dist/cli/{index-cr61qv27.js → index-1epynxc4.js} +2 -2
- package/dist/cli/{index-1wpnt86a.js → index-1msszzg2.js} +5 -5
- package/dist/cli/{index-12ewkms0.js → index-23mdeh2a.js} +1 -1
- package/dist/cli/{index-5hxv1er2.js → index-3ga3ts3h.js} +56 -3
- package/dist/cli/{index-38cfx8g8.js → index-427x3j6p.js} +2 -2
- package/dist/cli/{index-wph45kyb.js → index-4qpz7mpn.js} +4 -4
- package/dist/cli/{index-7nr9p5bd.js → index-54sd9bbn.js} +5 -5
- package/dist/cli/{index-fmhd3zc8.js → index-68ben2q8.js} +2 -2
- package/dist/cli/{index-n5a9dq5s.js → index-6jrn46zy.js} +1 -1
- package/dist/cli/{index-ernt0wrg.js → index-9eg8f4zm.js} +4306 -1504
- package/dist/cli/{index-hbe56wtn.js → index-9s2rp2j5.js} +2 -2
- package/dist/cli/{index-gc6h1fmf.js → index-a2hvmc3a.js} +1 -1
- package/dist/cli/{index-ea9fk6v0.js → index-ap6hs8fj.js} +1 -1
- package/dist/cli/{index-92m05mew.js → index-by9wfeja.js} +1 -1
- package/dist/cli/{index-et28q7cp.js → index-dkprb20b.js} +1 -1
- package/dist/cli/{index-qw9aqays.js → index-dwc1wztn.js} +6 -6
- package/dist/cli/{index-0h39trak.js → index-enmvd9ap.js} +1 -1
- package/dist/cli/{index-kzmd4gs7.js → index-epq8am78.js} +1 -1
- package/dist/cli/{index-pqtmzee6.js → index-fsye9ygy.js} +4 -4
- package/dist/cli/{index-5q3xsqwm.js → index-gtpq64q7.js} +3 -3
- package/dist/cli/{index-5v8zws0s.js → index-hqa71xfm.js} +140 -9
- package/dist/cli/{index-5zy5k5w0.js → index-j97nc02q.js} +4 -4
- package/dist/cli/{index-bdpgfep1.js → index-jrxrjz89.js} +1 -1
- package/dist/cli/{index-516j9vsk.js → index-kkrbybgt.js} +27 -2
- package/dist/cli/{index-6mwha20t.js → index-mkpdcbye.js} +3 -3
- package/dist/cli/{index-6x36hhd3.js → index-myacmqmf.js} +34 -34
- package/dist/cli/{index-t93cp2tz.js → index-nw3z614g.js} +4 -4
- package/dist/cli/{index-ehvkz2zv.js → index-r4vve32m.js} +7 -7
- package/dist/cli/{index-m779twtf.js → index-rgfz80gt.js} +1 -1
- package/dist/cli/{index-6gcxgx84.js → index-s34y6gbh.js} +1 -1
- package/dist/cli/{index-s0zgz4p1.js → index-sf51gh68.js} +1 -1
- package/dist/cli/{index-2sqfrvxj.js → index-v4h99xhr.js} +2 -2
- package/dist/cli/{index-vmwmwahh.js → index-x4am0jxt.js} +3 -3
- package/dist/cli/{index-et7tg13p.js → index-y03jadcy.js} +269 -9
- package/dist/cli/{index-dpxg347z.js → index-y28np6j9.js} +3 -3
- package/dist/cli/{index-xz4q5vcg.js → index-zp6fss8c.js} +3 -3
- package/dist/cli/index.js +35 -35
- package/dist/cli/{knowledge-escalator-jmqbmfbf.js → knowledge-escalator-5q4y97e4.js} +11 -11
- package/dist/cli/{knowledge-events-5ksqpf4g.js → knowledge-events-x7q8yepd.js} +9 -9
- package/dist/cli/{knowledge-link-s2qs178z.js → knowledge-link-655xa3db.js} +3 -3
- package/dist/cli/{knowledge-store-q3yy56sc.js → knowledge-store-r7ng2nf8.js} +4 -4
- package/dist/cli/{knowledge-validator-r5kaz53f.js → knowledge-validator-e78m6cqe.js} +6 -6
- package/dist/cli/{mcp-h82hxnxr.js → mcp-208jwxps.js} +1 -1
- package/dist/cli/model-preflight-xakn1356.js +359 -0
- package/dist/cli/{pending-delegations-e4h6vjeb.js → pending-delegations-w4a5tg11.js} +7 -7
- package/dist/cli/{pr-subscriptions-j7hw3k6x.js → pr-subscriptions-8289esc9.js} +7 -7
- package/dist/cli/{pr-workflow-gate-js8dcry2.js → pr-workflow-gate-b7yx0x21.js} +34 -34
- package/dist/cli/{runner-tzgwvvn1.js → runner-b5vt1any.js} +4 -4
- package/dist/cli/{scan-cursor-yhf58mq2.js → scan-cursor-edpbzp72.js} +5 -5
- package/dist/cli/{schema-0k4st1qt.js → schema-dnsxhyr3.js} +1 -1
- package/dist/cli/{scope-persistence-bpptmh1e.js → scope-persistence-z1f7d4tw.js} +10 -10
- package/dist/cli/{server-axnran6h.js → server-t2edntv4.js} +69 -599
- package/dist/cli/{skill-generator-n2w032d1.js → skill-generator-5n7vf0s3.js} +13 -13
- package/dist/cli/{snapshot-coordination-init-kyf50x12.js → snapshot-coordination-init-t14dk9je.js} +34 -34
- package/dist/cli/{speckit-checkoff-m4184e1x.js → speckit-checkoff-4ws84g13.js} +3 -3
- package/dist/cli/{telemetry-zhcgfe70.js → telemetry-6k8t2mrw.js} +1 -1
- package/dist/cli/{workspace-snapshot-4m2ex1ey.js → workspace-snapshot-hsssm50w.js} +2 -2
- package/dist/cli/{worktree-collision-ownership-1g2414pf.js → worktree-collision-ownership-wj6337ec.js} +8 -8
- package/dist/cli/{worktree-isolation-x07f7cfp.js → worktree-isolation-9fyj85tc.js} +34 -34
- package/dist/commands/registry.d.ts +1 -1
- package/dist/config/agent-model.d.ts +14 -0
- package/dist/config/bundled-skill-dispositions.d.ts +29 -0
- package/dist/hooks/delegation-gate.d.ts +10 -8
- package/dist/hooks/task-id-resolver.d.ts +7 -0
- package/dist/index.js +285 -269
- package/dist/memory/index.d.ts +1 -0
- package/dist/memory/instruction-pairing.d.ts +112 -0
- package/dist/services/model-preflight.d.ts +103 -21
- package/package.json +1 -1
- package/dist/cli/curator-drift-hz3j3fad.js +0 -297
- package/dist/cli/model-preflight-5b81adsj.js +0 -170
|
@@ -7,68 +7,68 @@ import {
|
|
|
7
7
|
isHiveEligible,
|
|
8
8
|
promoteFromSwarm,
|
|
9
9
|
promoteToHive
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
} from "./index-9eg8f4zm.js";
|
|
11
|
+
import"./index-gtpq64q7.js";
|
|
12
12
|
import"./index-hamqvzqn.js";
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
13
|
+
import"./index-01r2wrwa.js";
|
|
14
|
+
import"./index-y03jadcy.js";
|
|
15
|
+
import"./index-dkprb20b.js";
|
|
16
|
+
import"./index-0ea0c676.js";
|
|
17
|
+
import"./index-sf51gh68.js";
|
|
18
18
|
import"./index-txdagbh7.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-rgfz80gt.js";
|
|
20
20
|
import"./index-6b295cas.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
21
|
+
import"./index-x4am0jxt.js";
|
|
22
|
+
import"./index-54sd9bbn.js";
|
|
23
|
+
import"./index-1epynxc4.js";
|
|
24
24
|
import"./index-rdec0y3z.js";
|
|
25
|
-
import"./index-
|
|
25
|
+
import"./index-nw3z614g.js";
|
|
26
26
|
import"./index-cjapb4hy.js";
|
|
27
27
|
import"./index-zsrtt42s.js";
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
28
|
+
import"./index-r4vve32m.js";
|
|
29
|
+
import"./index-jrxrjz89.js";
|
|
30
|
+
import"./index-by9wfeja.js";
|
|
31
31
|
import"./index-pt7h91zc.js";
|
|
32
32
|
import"./index-q7sjgr1y.js";
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
33
|
+
import"./index-epq8am78.js";
|
|
34
|
+
import"./index-j97nc02q.js";
|
|
35
|
+
import"./index-v4h99xhr.js";
|
|
36
|
+
import"./index-1msszzg2.js";
|
|
37
|
+
import"./index-hqa71xfm.js";
|
|
38
|
+
import"./index-a2hvmc3a.js";
|
|
39
39
|
import"./index-2s7dvzff.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
import"./index-4qpz7mpn.js";
|
|
41
|
+
import"./index-s34y6gbh.js";
|
|
42
42
|
import"./index-rtry5xyf.js";
|
|
43
|
-
import"./index-
|
|
43
|
+
import"./index-9s2rp2j5.js";
|
|
44
44
|
import"./index-frcemc0b.js";
|
|
45
45
|
import"./index-0725jpp7.js";
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
46
|
+
import"./index-y28np6j9.js";
|
|
47
|
+
import"./index-fsye9ygy.js";
|
|
48
|
+
import"./index-427x3j6p.js";
|
|
49
49
|
import"./index-ved1325w.js";
|
|
50
50
|
import"./index-w1ydvzef.js";
|
|
51
51
|
import"./index-vvgpgcyn.js";
|
|
52
52
|
import"./index-rdm3px0g.js";
|
|
53
53
|
import"./index-ry16d01s.js";
|
|
54
|
-
import"./index-
|
|
54
|
+
import"./index-kkrbybgt.js";
|
|
55
55
|
import {
|
|
56
56
|
resolveHiveKnowledgePath
|
|
57
|
-
} from "./index-
|
|
57
|
+
} from "./index-dwc1wztn.js";
|
|
58
58
|
import"./index-vzm6zre7.js";
|
|
59
59
|
import"./index-ae75rja9.js";
|
|
60
|
-
import"./index-
|
|
61
|
-
import"./index-
|
|
62
|
-
import"./index-
|
|
60
|
+
import"./index-23mdeh2a.js";
|
|
61
|
+
import"./index-ap6hs8fj.js";
|
|
62
|
+
import"./index-mkpdcbye.js";
|
|
63
63
|
import"./index-1xnse449.js";
|
|
64
64
|
import"./index-c1ggtmpm.js";
|
|
65
65
|
import"./index-ejhxgyvm.js";
|
|
66
66
|
import"./index-7g4c7s5r.js";
|
|
67
67
|
import"./index-989v83pb.js";
|
|
68
68
|
import"./index-gx2vp8gx.js";
|
|
69
|
-
import"./index-
|
|
69
|
+
import"./index-6jrn46zy.js";
|
|
70
70
|
import"./index-zxdawwc7.js";
|
|
71
|
-
import"./index-
|
|
71
|
+
import"./index-3ga3ts3h.js";
|
|
72
72
|
import"./index-2t21pv2v.js";
|
|
73
73
|
import"./index-bk5tah7q.js";
|
|
74
74
|
import"./index-gknz3bv1.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
EvaluationRunV1Schema,
|
|
4
4
|
GateAuditResultV1Schema,
|
|
5
5
|
getProtectedEvaluationRunIds
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-sf51gh68.js";
|
|
7
7
|
import {
|
|
8
8
|
readEffectiveSpecSync
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-rgfz80gt.js";
|
|
10
10
|
import {
|
|
11
11
|
validateWorkspaceRoot
|
|
12
12
|
} from "./index-6b295cas.js";
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
readTaskEvidence,
|
|
24
24
|
readTaskEvidenceRaw,
|
|
25
25
|
sanitizeTaskId
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-j97nc02q.js";
|
|
27
27
|
import {
|
|
28
28
|
estimateCharsForTokens,
|
|
29
29
|
estimateTokens,
|
|
30
30
|
readSwarmFileAsync,
|
|
31
31
|
validateSwarmPath
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-a2hvmc3a.js";
|
|
33
33
|
import {
|
|
34
34
|
bunHash,
|
|
35
35
|
bunWrite,
|
|
@@ -58,10 +58,10 @@ import {
|
|
|
58
58
|
replayFromLedgerWithStatus,
|
|
59
59
|
takeSnapshotEvent,
|
|
60
60
|
takeSnapshotWithRetry
|
|
61
|
-
} from "./index-
|
|
61
|
+
} from "./index-fsye9ygy.js";
|
|
62
62
|
import {
|
|
63
63
|
appendCoreEventSync
|
|
64
|
-
} from "./index-
|
|
64
|
+
} from "./index-427x3j6p.js";
|
|
65
65
|
import {
|
|
66
66
|
derivePlanId,
|
|
67
67
|
derivePlanIdentityHash,
|
|
@@ -79,10 +79,10 @@ import {
|
|
|
79
79
|
import {
|
|
80
80
|
assertProjectRoot,
|
|
81
81
|
withEvidenceLock
|
|
82
|
-
} from "./index-
|
|
82
|
+
} from "./index-ap6hs8fj.js";
|
|
83
83
|
import {
|
|
84
84
|
emit
|
|
85
|
-
} from "./index-
|
|
85
|
+
} from "./index-mkpdcbye.js";
|
|
86
86
|
import {
|
|
87
87
|
canonicalRootKeyFresh
|
|
88
88
|
} from "./index-1xnse449.js";
|
|
@@ -2940,7 +2940,7 @@ async function updateTaskStatus(directory, taskId, status, options) {
|
|
|
2940
2940
|
if (status === "completed") {
|
|
2941
2941
|
try {
|
|
2942
2942
|
const completedTask = updatedPlan.phases.flatMap((phase) => phase.tasks).find((candidate) => candidate.id === taskId);
|
|
2943
|
-
const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-
|
|
2943
|
+
const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-4ws84g13.js");
|
|
2944
2944
|
await maybePropagateSpeckitCheckoff(directory, {
|
|
2945
2945
|
taskId,
|
|
2946
2946
|
frRefs: completedTask?.fr_refs ?? [],
|
|
@@ -2965,7 +2965,7 @@ async function updateTaskStatus(directory, taskId, status, options) {
|
|
|
2965
2965
|
break;
|
|
2966
2966
|
}
|
|
2967
2967
|
}
|
|
2968
|
-
const { readDeclaredScopeFilesFromBindings } = await import("./scope-persistence-
|
|
2968
|
+
const { readDeclaredScopeFilesFromBindings } = await import("./scope-persistence-z1f7d4tw.js");
|
|
2969
2969
|
const canonicalScope = readDeclaredScopeFilesFromBindings({
|
|
2970
2970
|
directory,
|
|
2971
2971
|
taskId,
|
|
@@ -3077,6 +3077,20 @@ ${phases.join(`
|
|
|
3077
3077
|
return `${markdown.trim()}
|
|
3078
3078
|
`;
|
|
3079
3079
|
}
|
|
3080
|
+
function getCurrentTaskId(plan) {
|
|
3081
|
+
if (!plan)
|
|
3082
|
+
return;
|
|
3083
|
+
const currentPhase = resolveActivePhaseId(plan);
|
|
3084
|
+
const phase = plan.phases.find((p) => p.id === currentPhase);
|
|
3085
|
+
if (!phase)
|
|
3086
|
+
return;
|
|
3087
|
+
const sortedTasks = [...phase.tasks].sort((a, b) => compareTaskIds(a.id, b.id));
|
|
3088
|
+
const inProgress = sortedTasks.find((t) => t.status === "in_progress");
|
|
3089
|
+
if (inProgress)
|
|
3090
|
+
return inProgress.id;
|
|
3091
|
+
const incomplete = sortedTasks.find((t) => t.status !== "completed" && t.status !== "closed");
|
|
3092
|
+
return incomplete?.id;
|
|
3093
|
+
}
|
|
3080
3094
|
function migrateLegacyPlan(planContent, swarmId) {
|
|
3081
3095
|
const lines = planContent.split(`
|
|
3082
3096
|
`);
|
|
@@ -4157,4 +4171,4 @@ function mergeDurableGateEntriesFromEvidence(taskId, entries, evidence) {
|
|
|
4157
4171
|
return merged;
|
|
4158
4172
|
}
|
|
4159
4173
|
|
|
4160
|
-
export { buildTaskCompletionDescriptor, ensureTaskCheckpointReceipt, updateTaskCheckpointReceipt, MAX_TRANSIENT_RETRIES, isTransientSpawnError, transientBackoff, readLaneEnvFileFromDiskSync, getGitRepositoryStatus, isGitRepo, getDefaultBaseBranch, detectDefaultRemoteBranch, resetToRemoteBranch, resetToMainAfterMerge, isStateUnreadable, loadEpicSessionState, isEpicModeActive, enableEpicMode, disableEpicMode, loadPlanJsonOnly, loadPlan, withPlanLifecycleLock, savePlan, closePlanTerminalState, updateTaskStatus, derivePlanMarkdown, isValidEvidenceType, isSecretscanEvidence, sanitizeTaskId2 as sanitizeTaskId, validateProjectRoot, saveEvidence, loadEvidence, listEvidenceTaskIds, checkRequirementCoverage, archiveEvidence, _internals7 as _internals, readDurableGateEvidence, getDurableGateEvidenceStatus, getDurableGateEvidenceStatusForTask, mergeDurableGateEntriesFromEvidence };
|
|
4174
|
+
export { buildTaskCompletionDescriptor, ensureTaskCheckpointReceipt, updateTaskCheckpointReceipt, MAX_TRANSIENT_RETRIES, isTransientSpawnError, transientBackoff, readLaneEnvFileFromDiskSync, getGitRepositoryStatus, isGitRepo, getDefaultBaseBranch, detectDefaultRemoteBranch, resetToRemoteBranch, resetToMainAfterMerge, sanitizeContextText, getRunMemorySummary, isStateUnreadable, loadEpicSessionState, isEpicModeActive, enableEpicMode, disableEpicMode, loadPlanJsonOnly, loadPlan, withPlanLifecycleLock, savePlan, closePlanTerminalState, updateTaskStatus, derivePlanMarkdown, getCurrentTaskId, isValidEvidenceType, isSecretscanEvidence, sanitizeTaskId2 as sanitizeTaskId, validateProjectRoot, saveEvidence, loadEvidence, listEvidenceTaskIds, checkRequirementCoverage, archiveEvidence, _internals7 as _internals, readDurableGateEvidence, getDurableGateEvidenceStatus, getDurableGateEvidenceStatusForTask, mergeDurableGateEntriesFromEvidence };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailLog
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-enmvd9ap.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailExplain
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-68ben2q8.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
DEFAULT_CI_DEADLINE_MS,
|
|
@@ -97,69 +97,69 @@ import {
|
|
|
97
97
|
handleWriteRetroCommand,
|
|
98
98
|
normalizeSwarmCommandInput,
|
|
99
99
|
resolveCommand
|
|
100
|
-
} from "./index-
|
|
101
|
-
import"./index-
|
|
100
|
+
} from "./index-9eg8f4zm.js";
|
|
101
|
+
import"./index-gtpq64q7.js";
|
|
102
102
|
import"./index-hamqvzqn.js";
|
|
103
|
-
import"./index-
|
|
104
|
-
import"./index-
|
|
105
|
-
import"./index-
|
|
106
|
-
import"./index-
|
|
107
|
-
import"./index-
|
|
103
|
+
import"./index-01r2wrwa.js";
|
|
104
|
+
import"./index-y03jadcy.js";
|
|
105
|
+
import"./index-dkprb20b.js";
|
|
106
|
+
import"./index-0ea0c676.js";
|
|
107
|
+
import"./index-sf51gh68.js";
|
|
108
108
|
import"./index-txdagbh7.js";
|
|
109
|
-
import"./index-
|
|
109
|
+
import"./index-rgfz80gt.js";
|
|
110
110
|
import"./index-6b295cas.js";
|
|
111
|
-
import"./index-
|
|
112
|
-
import"./index-
|
|
113
|
-
import"./index-
|
|
111
|
+
import"./index-x4am0jxt.js";
|
|
112
|
+
import"./index-54sd9bbn.js";
|
|
113
|
+
import"./index-1epynxc4.js";
|
|
114
114
|
import"./index-rdec0y3z.js";
|
|
115
|
-
import"./index-
|
|
115
|
+
import"./index-nw3z614g.js";
|
|
116
116
|
import"./index-cjapb4hy.js";
|
|
117
117
|
import"./index-zsrtt42s.js";
|
|
118
|
-
import"./index-
|
|
119
|
-
import"./index-
|
|
120
|
-
import"./index-
|
|
118
|
+
import"./index-r4vve32m.js";
|
|
119
|
+
import"./index-jrxrjz89.js";
|
|
120
|
+
import"./index-by9wfeja.js";
|
|
121
121
|
import"./index-pt7h91zc.js";
|
|
122
122
|
import"./index-q7sjgr1y.js";
|
|
123
|
-
import"./index-
|
|
124
|
-
import"./index-
|
|
125
|
-
import"./index-
|
|
126
|
-
import"./index-
|
|
127
|
-
import"./index-
|
|
128
|
-
import"./index-
|
|
123
|
+
import"./index-epq8am78.js";
|
|
124
|
+
import"./index-j97nc02q.js";
|
|
125
|
+
import"./index-v4h99xhr.js";
|
|
126
|
+
import"./index-1msszzg2.js";
|
|
127
|
+
import"./index-hqa71xfm.js";
|
|
128
|
+
import"./index-a2hvmc3a.js";
|
|
129
129
|
import"./index-2s7dvzff.js";
|
|
130
|
-
import"./index-
|
|
131
|
-
import"./index-
|
|
130
|
+
import"./index-4qpz7mpn.js";
|
|
131
|
+
import"./index-s34y6gbh.js";
|
|
132
132
|
import"./index-rtry5xyf.js";
|
|
133
|
-
import"./index-
|
|
133
|
+
import"./index-9s2rp2j5.js";
|
|
134
134
|
import"./index-frcemc0b.js";
|
|
135
135
|
import"./index-0725jpp7.js";
|
|
136
|
-
import"./index-
|
|
137
|
-
import"./index-
|
|
138
|
-
import"./index-
|
|
136
|
+
import"./index-y28np6j9.js";
|
|
137
|
+
import"./index-fsye9ygy.js";
|
|
138
|
+
import"./index-427x3j6p.js";
|
|
139
139
|
import"./index-ved1325w.js";
|
|
140
140
|
import"./index-w1ydvzef.js";
|
|
141
141
|
import"./index-vvgpgcyn.js";
|
|
142
142
|
import"./index-rdm3px0g.js";
|
|
143
143
|
import"./index-ry16d01s.js";
|
|
144
|
-
import"./index-
|
|
145
|
-
import"./index-
|
|
144
|
+
import"./index-kkrbybgt.js";
|
|
145
|
+
import"./index-dwc1wztn.js";
|
|
146
146
|
import"./index-vzm6zre7.js";
|
|
147
147
|
import"./index-ae75rja9.js";
|
|
148
|
-
import"./index-
|
|
149
|
-
import"./index-
|
|
150
|
-
import"./index-
|
|
148
|
+
import"./index-23mdeh2a.js";
|
|
149
|
+
import"./index-ap6hs8fj.js";
|
|
150
|
+
import"./index-mkpdcbye.js";
|
|
151
151
|
import"./index-1xnse449.js";
|
|
152
152
|
import"./index-c1ggtmpm.js";
|
|
153
153
|
import"./index-ejhxgyvm.js";
|
|
154
154
|
import"./index-7g4c7s5r.js";
|
|
155
155
|
import"./index-989v83pb.js";
|
|
156
156
|
import"./index-gx2vp8gx.js";
|
|
157
|
-
import"./index-
|
|
157
|
+
import"./index-6jrn46zy.js";
|
|
158
158
|
import"./index-zxdawwc7.js";
|
|
159
159
|
import {
|
|
160
160
|
init_schema,
|
|
161
161
|
stripKnownSwarmPrefix
|
|
162
|
-
} from "./index-
|
|
162
|
+
} from "./index-3ga3ts3h.js";
|
|
163
163
|
import {
|
|
164
164
|
AGENT_TOOL_MAP,
|
|
165
165
|
ORCHESTRATOR_NAME,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readKnowledge,
|
|
4
4
|
transactKnowledge
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-dwc1wztn.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveKnowledgeStoreDir
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-23mdeh2a.js";
|
|
9
9
|
import {
|
|
10
10
|
init_git_executable,
|
|
11
11
|
resolveGitExecutableAsync
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
validateSwarmPath
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-a2hvmc3a.js";
|
|
5
5
|
import {
|
|
6
6
|
bunWrite
|
|
7
7
|
} from "./index-2s7dvzff.js";
|
|
@@ -25,14 +25,14 @@ import {
|
|
|
25
25
|
} from "./index-vvgpgcyn.js";
|
|
26
26
|
import {
|
|
27
27
|
observeDelegationLedgerPressure
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-kkrbybgt.js";
|
|
29
29
|
import {
|
|
30
30
|
EvidenceLockTimeoutError,
|
|
31
31
|
withEvidenceLock
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-ap6hs8fj.js";
|
|
33
33
|
import {
|
|
34
34
|
telemetry
|
|
35
|
-
} from "./index-
|
|
35
|
+
} from "./index-mkpdcbye.js";
|
|
36
36
|
import {
|
|
37
37
|
canonicalRootKeyFresh,
|
|
38
38
|
sameProjectRoot
|
|
@@ -4660,7 +4660,7 @@ async function reconcileLegacyCoderSettlements(directory, maxRecords, onReconcil
|
|
|
4660
4660
|
const candidates = readDelegations(directory).filter((record) => record.normalizedAgent === "coder" && Boolean(record.legacyCoderSettlementTransfer) && Boolean(record.terminalResult)).slice(0, maxRecords);
|
|
4661
4661
|
if (candidates.length === 0)
|
|
4662
4662
|
return 0;
|
|
4663
|
-
const { transferCoderSettlementToBackground } = await import("./coder-settlement-
|
|
4663
|
+
const { transferCoderSettlementToBackground } = await import("./coder-settlement-vbs5rj3z.js");
|
|
4664
4664
|
let transferred = 0;
|
|
4665
4665
|
for (const record of candidates) {
|
|
4666
4666
|
try {
|
|
@@ -21,7 +21,7 @@ var package_default;
|
|
|
21
21
|
var init_package = __esm(() => {
|
|
22
22
|
package_default = {
|
|
23
23
|
name: "opencode-swarm",
|
|
24
|
-
version: "7.181.
|
|
24
|
+
version: "7.181.4",
|
|
25
25
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
26
26
|
main: "dist/index.js",
|
|
27
27
|
types: "dist/index.d.ts",
|
|
@@ -192,7 +192,60 @@ var init_package = __esm(() => {
|
|
|
192
192
|
});
|
|
193
193
|
|
|
194
194
|
// src/config/context-window.ts
|
|
195
|
-
|
|
195
|
+
function normalizeLimitKey(key) {
|
|
196
|
+
return key.trim().toLowerCase();
|
|
197
|
+
}
|
|
198
|
+
function isUsableConfiguredWindow(value) {
|
|
199
|
+
return typeof value === "number" && Number.isFinite(value) && value >= 1;
|
|
200
|
+
}
|
|
201
|
+
function isUsableContextWindow(value) {
|
|
202
|
+
return typeof value === "number" && Number.isFinite(value) && value >= MIN_PLAUSIBLE_CONTEXT_TOKENS;
|
|
203
|
+
}
|
|
204
|
+
function resolveContextWindow(inputs) {
|
|
205
|
+
const { userLimits, modelID, providerID, liveContextLimit, fallbackLookup } = inputs;
|
|
206
|
+
if (userLimits) {
|
|
207
|
+
let normalized;
|
|
208
|
+
const normalizedLimits = () => {
|
|
209
|
+
if (normalized === undefined) {
|
|
210
|
+
normalized = {};
|
|
211
|
+
for (const [key, value] of Object.entries(userLimits)) {
|
|
212
|
+
normalized[normalizeLimitKey(key)] = value;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return normalized;
|
|
216
|
+
};
|
|
217
|
+
if (modelID && providerID) {
|
|
218
|
+
const compound = normalizedLimits()[normalizeLimitKey(`${providerID}/${modelID}`)];
|
|
219
|
+
if (isUsableConfiguredWindow(compound)) {
|
|
220
|
+
return { tokens: Math.floor(compound), source: "user_provider_model" };
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
if (modelID) {
|
|
224
|
+
const byModel = normalizedLimits()[normalizeLimitKey(modelID)];
|
|
225
|
+
if (isUsableConfiguredWindow(byModel)) {
|
|
226
|
+
return { tokens: Math.floor(byModel), source: "user_model" };
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
const byDefault = normalizedLimits().default;
|
|
230
|
+
if (isUsableConfiguredWindow(byDefault)) {
|
|
231
|
+
return { tokens: Math.floor(byDefault), source: "user_default" };
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
if (isUsableContextWindow(liveContextLimit)) {
|
|
235
|
+
return { tokens: Math.floor(liveContextLimit), source: "live_model_limit" };
|
|
236
|
+
}
|
|
237
|
+
if (fallbackLookup) {
|
|
238
|
+
const fromTable = fallbackLookup(modelID, providerID);
|
|
239
|
+
if (fromTable !== undefined && isUsableContextWindow(fromTable.tokens)) {
|
|
240
|
+
return {
|
|
241
|
+
tokens: Math.floor(fromTable.tokens),
|
|
242
|
+
source: fromTable.table === "provider_cap" ? "static_provider_cap" : "static_native"
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
return { tokens: DEFAULT_MODEL_CONTEXT_TOKENS, source: "static_default" };
|
|
247
|
+
}
|
|
248
|
+
var DEFAULT_MODEL_CONTEXT_TOKENS = 128000, MIN_PLAUSIBLE_CONTEXT_TOKENS = 1000;
|
|
196
249
|
var init_context_window = () => {};
|
|
197
250
|
|
|
198
251
|
// src/config/schema.ts
|
|
@@ -1978,4 +2031,4 @@ var init_schema = __esm(() => {
|
|
|
1978
2031
|
});
|
|
1979
2032
|
});
|
|
1980
2033
|
|
|
1981
|
-
export { init_package, package_default, DEFAULT_MODEL_CONTEXT_TOKENS, init_context_window, _internals, isKnownCanonicalRole, getCanonicalAgentRole, resolveGeneratedAgentRole, stripKnownSwarmPrefix, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_SECTION_SCHEMAS, GateConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GATE_CONFIG_READERS, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, RetentionConfigSchema, ReviewPassesConfigSchema, AUTO_REVIEW_V8_BURN_IN_DECISION, AutoReviewConfigSchema, resolveAutoReviewConfig, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, GitConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, resolveGuardrailsConfig, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, KnowledgeConfigSchema, LearningConfigSchema, ConsensusConfigSchema, OtlpExportConfigSchema, ObservabilityConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationConfigSchema, HarnessEvolutionConfigSchema, DEFAULT_HARNESS_EVOLUTION_CONFIG, HarnessOptConfigSchema, DEFAULT_HARNESS_OPT_CONFIG, SkillImproverConfigSchema, SkillsConfigSchema, SkillOptConfigSchema, DEFAULT_SKILL_OPT_CONFIG, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, PrFeedbackLoopConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, resolveExternalSkillsConfig, DEFAULT_PR_REVIEW_RESILIENCE_CONFIG, PrReviewResilienceConfigSchema, ReviewRoutingConfigSchema, DEFAULT_REVIEW_ROUTING_CONFIG, LaneLivenessWatchdogConfigSchema, DispatchProtectionConfigSchema, DashboardConfigSchema, DEFAULT_PR_REVIEW_LEGACY_TRANSCRIPT_COMPATIBILITY, PluginConfigSchema, init_schema };
|
|
2034
|
+
export { init_package, package_default, DEFAULT_MODEL_CONTEXT_TOKENS, isUsableConfiguredWindow, isUsableContextWindow, resolveContextWindow, init_context_window, _internals, isKnownCanonicalRole, getCanonicalAgentRole, resolveGeneratedAgentRole, stripKnownSwarmPrefix, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_SECTION_SCHEMAS, GateConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GATE_CONFIG_READERS, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, RetentionConfigSchema, ReviewPassesConfigSchema, AUTO_REVIEW_V8_BURN_IN_DECISION, AutoReviewConfigSchema, resolveAutoReviewConfig, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, GitConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, resolveGuardrailsConfig, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, KnowledgeConfigSchema, LearningConfigSchema, ConsensusConfigSchema, OtlpExportConfigSchema, ObservabilityConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationConfigSchema, HarnessEvolutionConfigSchema, DEFAULT_HARNESS_EVOLUTION_CONFIG, HarnessOptConfigSchema, DEFAULT_HARNESS_OPT_CONFIG, SkillImproverConfigSchema, SkillsConfigSchema, SkillOptConfigSchema, DEFAULT_SKILL_OPT_CONFIG, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, PrFeedbackLoopConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, resolveExternalSkillsConfig, DEFAULT_PR_REVIEW_RESILIENCE_CONFIG, PrReviewResilienceConfigSchema, ReviewRoutingConfigSchema, DEFAULT_REVIEW_ROUTING_CONFIG, LaneLivenessWatchdogConfigSchema, DispatchProtectionConfigSchema, DashboardConfigSchema, DEFAULT_PR_REVIEW_LEGACY_TRANSCRIPT_COMPATIBILITY, PluginConfigSchema, init_schema };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
authorizeCuration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-s34y6gbh.js";
|
|
5
5
|
import {
|
|
6
6
|
findNearDuplicate,
|
|
7
7
|
inferTags,
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
resolveSwarmKnowledgePath,
|
|
10
10
|
resolveSwarmRejectedPath,
|
|
11
11
|
transactKnowledge
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-dwc1wztn.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveKnowledgeStoreDir
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-23mdeh2a.js";
|
|
16
16
|
import {
|
|
17
17
|
atomicWriteFile
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-ap6hs8fj.js";
|
|
19
19
|
import {
|
|
20
20
|
require_proper_lockfile
|
|
21
21
|
} from "./index-7g4c7s5r.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
queryHistoricalOutcomes,
|
|
4
4
|
readKnowledgeEvents,
|
|
5
5
|
recordKnowledgeEvent
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-hqa71xfm.js";
|
|
7
7
|
import {
|
|
8
8
|
jaccardBigram,
|
|
9
9
|
readKnowledge,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveSwarmKnowledgePath,
|
|
12
12
|
transactKnowledge,
|
|
13
13
|
wordBigrams
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-dwc1wztn.js";
|
|
15
15
|
import {
|
|
16
16
|
init_knowledge_types,
|
|
17
17
|
isActiveStatus
|
|
@@ -224,11 +224,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
|
|
|
224
224
|
alreadyInactive: true
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
227
|
+
const { quarantineEntry } = await import("./knowledge-validator-e78m6cqe.js");
|
|
228
228
|
let policyConfig;
|
|
229
229
|
try {
|
|
230
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
231
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
230
|
+
const { KnowledgeConfigSchema } = await import("./schema-dnsxhyr3.js");
|
|
231
|
+
const { loadPluginConfigWithMeta } = await import("./index-zp6fss8c.js");
|
|
232
232
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
233
233
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
234
234
|
} catch {
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
detectWindowsWrites,
|
|
15
15
|
getSharedClassifierGuardrailBlock,
|
|
16
16
|
resolveWriteTargets
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-9eg8f4zm.js";
|
|
18
18
|
import {
|
|
19
19
|
checkFileAuthority,
|
|
20
20
|
classifyFile,
|
|
21
21
|
isInDeclaredScope,
|
|
22
22
|
redactPath,
|
|
23
23
|
redactShellCommand
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-gtpq64q7.js";
|
|
25
25
|
|
|
26
26
|
// src/services/guardrail-explain-service.ts
|
|
27
27
|
import path from "path";
|