opencode-swarm 7.184.11 → 7.184.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.opencode/skills/swarm-ci-monitor/SKILL.md +1 -0
- package/.opencode/skills/swarm-pr-feedback/SKILL.md +1 -0
- package/.opencode/skills/swarm-pr-review/SKILL.md +21 -21
- package/.opencode/skills/swarm-pr-review/references/lane-output-recoverability.md +11 -0
- package/.opencode/skills/swarm-pr-review/references/parallel-work-example.md +20 -0
- package/.opencode/skills/swarm-pr-subscribe/SKILL.md +1 -0
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/background/delegation-lifecycle.d.ts +6 -2
- package/dist/background/pending-delegations.d.ts +23 -1
- package/dist/cli/auto-checkpoint-a2zbyh20.js +183 -0
- package/dist/cli/checkpoint-s444mhx5.js +51 -0
- package/dist/cli/{coder-settlement-6mhw6b36.js → coder-settlement-hnwwt3f0.js} +13 -11
- package/dist/cli/{config-doctor-tbaswv40.js → config-doctor-2qhay8ft.js} +2 -2
- package/dist/cli/{core-4389fcpc.js → core-567f7gbz.js} +3 -3
- package/dist/cli/{curation-policy-xe77n9zj.js → curation-policy-1rzheh1x.js} +6 -5
- package/dist/cli/{curator-asqb0cm7.js → curator-antxp3dg.js} +48 -42
- package/dist/cli/{curator-drift-nnge4dkk.js → curator-drift-ja4d9gq2.js} +9 -9
- package/dist/cli/curator-llm-factory-0a3svbcn.js +81 -0
- package/dist/cli/{dispatch-cv89p2y1.js → dispatch-0ejzwb45.js} +2 -1
- package/dist/cli/{evidence-summary-service-cdrwfdyp.js → evidence-summary-service-6ch3b0t5.js} +24 -19
- package/dist/cli/{gate-evidence-xbn83jeh.js → gate-evidence-zh4fpbnv.js} +8 -6
- package/dist/cli/guardrail-explain-pqyp8mx5.js +82 -0
- package/dist/cli/{guardrail-log-b6ef00v7.js → guardrail-log-99zsmp0p.js} +7 -7
- package/dist/cli/{guardrail-reset-77r7jfn2.js → guardrail-reset-mzs00j16.js} +48 -42
- package/dist/cli/hive-promoter-f3enyhkn.js +96 -0
- package/dist/cli/index-09wnx2ke.js +954 -0
- package/dist/cli/{index-kaay5kmx.js → index-0p0qwdyy.js} +2 -2
- package/dist/cli/{index-zz5rryxj.js → index-258a0p26.js} +7 -7
- package/dist/cli/{index-908zxswj.js → index-2n1ms79t.js} +44 -16
- package/dist/cli/{index-ejpxkrp6.js → index-2p3nzm9b.js} +1 -1
- package/dist/cli/index-2y9b45jj.js +24 -0
- package/dist/cli/{index-hk0eh9qb.js → index-4g4sr4ah.js} +1 -1
- package/dist/cli/{index-35cdceqf.js → index-6cjpmvpa.js} +2 -20
- package/dist/cli/{index-5cawm255.js → index-79y6dxa9.js} +8 -6
- package/dist/cli/index-7bxssqaf.js +2676 -0
- package/dist/cli/index-7pmbnjvj.js +11 -0
- package/dist/cli/{index-j4efx148.js → index-7r3pkgma.js} +5 -5
- package/dist/cli/{index-kg2mb1m5.js → index-7rzgdcvc.js} +2 -2
- package/dist/cli/{index-8gs8qkjs.js → index-7vb5rx5w.js} +1 -1
- package/dist/cli/{index-hamqvzqn.js → index-9nyqt3kb.js} +10 -2682
- package/dist/cli/{index-5njp971j.js → index-9rm7tw6y.js} +8 -8
- package/dist/cli/{index-c0dahh34.js → index-9y5b3nsk.js} +1 -1
- package/dist/cli/{index-xpcvwzdq.js → index-a96rm6zk.js} +3 -3
- package/dist/cli/{index-jhk62dp4.js → index-a9rfvc8j.js} +4 -4
- package/dist/cli/{index-xw8xdcrf.js → index-awkb5370.js} +5 -5
- package/dist/cli/{index-0mj7hc2z.js → index-bntwj2tp.js} +5 -5
- package/dist/cli/{index-aae38s4x.js → index-cftva3pa.js} +2 -11
- package/dist/cli/{index-hwjr3xyg.js → index-ck2hzp5b.js} +10 -38
- package/dist/cli/{index-e0rrj9kk.js → index-d2xdwz22.js} +9 -9
- package/dist/cli/{index-gnryhmak.js → index-dftztz4y.js} +1 -1
- package/dist/cli/{index-7k4ksbqd.js → index-djct2zsr.js} +1 -1
- package/dist/cli/{index-gqj1k2y6.js → index-e593fgq0.js} +2 -2
- package/dist/cli/{index-0ajyhjht.js → index-fxf3zhtq.js} +1 -1
- package/dist/cli/index-g4fs6z4e.js +37 -0
- package/dist/cli/{index-89nqyqxs.js → index-gz771bj7.js} +3 -3
- package/dist/cli/{index-tamg9rve.js → index-gzh04gxh.js} +2 -2
- package/dist/cli/index-hg1hqfy3.js +963 -0
- package/dist/cli/{index-nh5fxxc9.js → index-jtg0zsnx.js} +4 -2
- package/dist/cli/{index-3w96sd7p.js → index-kxm9wm5e.js} +3044 -3842
- package/dist/cli/{index-07fqfseh.js → index-m1pqenq9.js} +2 -2
- package/dist/cli/{index-be5h97z8.js → index-mfqge140.js} +1 -1
- package/dist/cli/{index-6z53ry5f.js → index-nt8g5952.js} +2 -2
- package/dist/cli/{index-cn67bp4y.js → index-pq35rmz5.js} +52 -46
- package/dist/cli/{index-5m1b70z3.js → index-pwcbtbhd.js} +4 -4
- package/dist/cli/{index-w0jbrttk.js → index-ra0z5wza.js} +3 -3
- package/dist/cli/{index-vx0wjfc1.js → index-sa061g64.js} +7 -7
- package/dist/cli/{index-7kmxy1rb.js → index-t7ck2nvk.js} +4 -4
- package/dist/cli/{index-ygdj73xq.js → index-tswsm3sw.js} +3 -3
- package/dist/cli/{index-q7q00ppx.js → index-tyzmjw2s.js} +7 -7
- package/dist/cli/{index-645ckyxy.js → index-v4ra6hz8.js} +55 -971
- package/dist/cli/{index-pbwfwc0v.js → index-vd1sd1m5.js} +48 -42
- package/dist/cli/{index-x1gyqgze.js → index-w6w6ny06.js} +2 -2
- package/dist/cli/{index-9xfxsx8y.js → index-wksedk4d.js} +1 -1
- package/dist/cli/{index-x119gdak.js → index-yx5z4200.js} +2 -2
- package/dist/cli/{index-dqpq8m9w.js → index-yydv4jfy.js} +2 -2
- package/dist/cli/index.js +49 -43
- package/dist/cli/{knowledge-escalator-8cc6jcw0.js → knowledge-escalator-6c813zv8.js} +13 -12
- package/dist/cli/{knowledge-events-b5g6ky4h.js → knowledge-events-9hbwedqb.js} +11 -10
- package/dist/cli/{knowledge-link-8tetyje0.js → knowledge-link-vvyfhhmr.js} +5 -4
- package/dist/cli/{knowledge-store-1w60j5xm.js → knowledge-store-8t9wy3ab.js} +6 -5
- package/dist/cli/{knowledge-validator-sd88rjcy.js → knowledge-validator-g61010aw.js} +8 -7
- package/dist/cli/{mcp-3052r65q.js → mcp-tyzj9cwy.js} +1 -1
- package/dist/cli/{model-preflight-m0nwfsx8.js → model-preflight-q8pnsjay.js} +48 -42
- package/dist/cli/{pending-delegations-5nx22evh.js → pending-delegations-8nah16wj.js} +16 -12
- package/dist/cli/{pr-subscriptions-kas44ty9.js → pr-subscriptions-rd3gnc3r.js} +14 -12
- package/dist/cli/{pr-workflow-gate-pmggnw1j.js → pr-workflow-gate-1y8by6bt.js} +56 -42
- package/dist/cli/{runner-ff0bj9w0.js → runner-cwmgb9rw.js} +6 -5
- package/dist/cli/{scan-cursor-yw12hvtc.js → scan-cursor-4s30je6f.js} +7 -6
- package/dist/cli/{schema-1g1y1d5q.js → schema-r3v5tb9r.js} +1 -1
- package/dist/cli/{scope-persistence-de472fxy.js → scope-persistence-vtz91b5n.js} +17 -15
- package/dist/cli/{server-1n00bga4.js → server-j1ybvgn4.js} +62 -54
- package/dist/cli/{skill-generator-c5wbbjqx.js → skill-generator-h27wtea0.js} +15 -14
- package/dist/cli/{snapshot-coordination-init-gwj594hc.js → snapshot-coordination-init-yntqf46w.js} +48 -42
- package/dist/cli/{speckit-checkoff-hc479v4r.js → speckit-checkoff-qxt03eh3.js} +4 -4
- package/dist/cli/{telemetry-39zmx4fp.js → telemetry-n6y2sjhg.js} +1 -1
- package/dist/cli/{workspace-snapshot-nrbvjh1c.js → workspace-snapshot-gnwak61t.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-jvgxxnf9.js → worktree-collision-ownership-0a7jtwwe.js} +18 -16
- package/dist/cli/{worktree-isolation-r9hr23r8.js → worktree-isolation-4re648a3.js} +48 -42
- package/dist/hooks/pr-workflow-gate.d.ts +59 -1
- package/dist/index.js +543 -543
- package/dist/plan/auto-checkpoint.d.ts +56 -0
- package/dist/plan/manager.d.ts +8 -12
- package/dist/tools/dispatch-lanes.d.ts +7 -0
- package/dist/tools/submit-pr-review-result.d.ts +17 -0
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-1gjzcafw.js +0 -75
- package/dist/cli/guardrail-explain-xtyxjmyz.js +0 -76
- package/dist/cli/hive-promoter-dsrj2ar2.js +0 -90
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
atomicWriteFileAnyRoot,
|
|
7
7
|
atomicWriteSwarmFileSync
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-bntwj2tp.js";
|
|
9
9
|
import {
|
|
10
10
|
init_loader,
|
|
11
11
|
loadPluginConfig
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-djct2zsr.js";
|
|
13
13
|
import {
|
|
14
14
|
init_logger,
|
|
15
15
|
log,
|
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
} from "./index-ae75rja9.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveKnowledgeStoreDir
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-4g4sr4ah.js";
|
|
15
15
|
import {
|
|
16
16
|
atomicWriteFile
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-2y9b45jj.js";
|
|
18
18
|
import {
|
|
19
19
|
require_proper_lockfile
|
|
20
20
|
} from "./index-7g4c7s5r.js";
|
|
21
21
|
import {
|
|
22
22
|
readCachedParsedFile
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-bntwj2tp.js";
|
|
24
24
|
import {
|
|
25
25
|
init_knowledge_types,
|
|
26
26
|
isActiveStatus
|
|
@@ -739,7 +739,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
739
739
|
const {
|
|
740
740
|
readAuthoritativeKnowledgeCounterRollups,
|
|
741
741
|
effectiveRetrievalOutcomes
|
|
742
|
-
} = await import("./knowledge-events-
|
|
742
|
+
} = await import("./knowledge-events-9hbwedqb.js");
|
|
743
743
|
const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
|
|
744
744
|
const flagIds = new Set;
|
|
745
745
|
for (const e of atFloor) {
|
|
@@ -806,11 +806,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
806
806
|
});
|
|
807
807
|
}
|
|
808
808
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
809
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
810
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
809
|
+
const { quarantineEntry } = await import("./knowledge-validator-g61010aw.js");
|
|
810
|
+
const { KnowledgeConfigSchema } = await import("./schema-r3v5tb9r.js");
|
|
811
811
|
let config;
|
|
812
812
|
try {
|
|
813
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
813
|
+
const { loadPluginConfigWithMeta } = await import("./index-tswsm3sw.js");
|
|
814
814
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
815
815
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
816
816
|
} catch {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
validateSwarmPath
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-dftztz4y.js";
|
|
5
5
|
import {
|
|
6
6
|
bunWrite
|
|
7
7
|
} from "./index-2s7dvzff.js";
|
|
@@ -18,21 +18,21 @@ import {
|
|
|
18
18
|
releaseCoordinationLease,
|
|
19
19
|
transitionCoordinationState,
|
|
20
20
|
withCoordinationTransaction
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-cftva3pa.js";
|
|
22
22
|
import {
|
|
23
23
|
getProjectDb,
|
|
24
24
|
projectDbExists
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-pwcbtbhd.js";
|
|
26
26
|
import {
|
|
27
27
|
observeDelegationLedgerPressure
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-yx5z4200.js";
|
|
29
29
|
import {
|
|
30
30
|
EvidenceLockTimeoutError,
|
|
31
31
|
withEvidenceLock
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-6cjpmvpa.js";
|
|
33
33
|
import {
|
|
34
34
|
telemetry
|
|
35
|
-
} from "./index-
|
|
35
|
+
} from "./index-w6w6ny06.js";
|
|
36
36
|
import {
|
|
37
37
|
canonicalRootKeyFresh,
|
|
38
38
|
sameProjectRoot
|
|
@@ -1207,7 +1207,7 @@ var WorktreeDescriptorSchema = exports_external.object({
|
|
|
1207
1207
|
}).strict();
|
|
1208
1208
|
var TerminalResultSchema = exports_external.object({
|
|
1209
1209
|
eventId: exports_external.string().min(1).max(256),
|
|
1210
|
-
status: exports_external.enum(["completed", "error", "cancelled", "rejected"]),
|
|
1210
|
+
status: exports_external.enum(["completed", "error", "cancelled", "rejected", "stale"]),
|
|
1211
1211
|
recordedAt: exports_external.number().int().nonnegative(),
|
|
1212
1212
|
result: ResultSchema
|
|
1213
1213
|
}).strict();
|
|
@@ -2866,6 +2866,9 @@ function buildPromptSnapshot(text, maxChars) {
|
|
|
2866
2866
|
digest: createHash3("sha256").update(text).digest("hex")
|
|
2867
2867
|
};
|
|
2868
2868
|
}
|
|
2869
|
+
function isTypedTerminalStatus(status) {
|
|
2870
|
+
return status === "completed" || status === "error" || status === "cancelled" || status === "stale";
|
|
2871
|
+
}
|
|
2869
2872
|
async function appendDelegationTransition(directory, correlationId, transition) {
|
|
2870
2873
|
const now = Date.now();
|
|
2871
2874
|
try {
|
|
@@ -2885,13 +2888,16 @@ async function appendDelegationTransition(directory, correlationId, transition)
|
|
|
2885
2888
|
next = current;
|
|
2886
2889
|
return;
|
|
2887
2890
|
}
|
|
2891
|
+
const effectiveUpdatedAt = transition.updatedAt ?? now;
|
|
2892
|
+
const typedTerminal = current.terminalResult ? undefined : isTypedTerminalStatus(transition.status) ? transition.terminalResult ?? (transition.result?.workflowLaneFailureClass ? buildTypedDelegationTerminal(current, transition.status, transition.result, effectiveUpdatedAt) : undefined) : undefined;
|
|
2888
2893
|
next = {
|
|
2889
2894
|
...current,
|
|
2890
|
-
schemaVersion: transition.result?.prReviewResultReceipt ? 4 : current.schemaVersion === 1 ? 2 : current.schemaVersion,
|
|
2895
|
+
schemaVersion: transition.result?.prReviewResultReceipt ? 4 : typedTerminal ? current.schemaVersion === 4 ? 4 : 3 : current.schemaVersion === 1 ? 2 : current.schemaVersion,
|
|
2891
2896
|
status: transition.status,
|
|
2892
|
-
updatedAt:
|
|
2893
|
-
...transition.completedAt !== undefined ? { completedAt: transition.completedAt } : transition.status === "completed" || transition.status === "error" ? { completedAt: now } : {},
|
|
2894
|
-
...transition.result ? { result: transition.result } : {}
|
|
2897
|
+
updatedAt: effectiveUpdatedAt,
|
|
2898
|
+
...transition.completedAt !== undefined ? { completedAt: transition.completedAt } : transition.status === "completed" || transition.status === "error" ? { completedAt: now } : typedTerminal ? { completedAt: typedTerminal.recordedAt } : {},
|
|
2899
|
+
...transition.result ? { result: transition.result } : {},
|
|
2900
|
+
...typedTerminal ? { terminalResult: typedTerminal } : {}
|
|
2895
2901
|
};
|
|
2896
2902
|
appendRecord(directory, next);
|
|
2897
2903
|
maybeCompactDelegationsLocked(directory);
|
|
@@ -2952,6 +2958,7 @@ async function publishPrReviewResultReceipt(directory, input) {
|
|
|
2952
2958
|
return;
|
|
2953
2959
|
}
|
|
2954
2960
|
}
|
|
2961
|
+
const parentRepairBackfill = input.parentRepair === true && (current.status === "cancelled" || current.status === "stale" || current.status === "error") && !current.terminalResult && current.result?.workflowLaneFailureClass === "liveness" ? buildTypedDelegationTerminal(current, current.status, current.result, Date.now()) : undefined;
|
|
2955
2962
|
const owned = current.ownedWorkflowLanes?.length ? current.ownedWorkflowLanes : current.workflowLane ? [current.workflowLane] : [];
|
|
2956
2963
|
const sameOwned = owned.length === parsed.data.ownedWorkflowLanes.length && owned.every((lane) => parsed.data.ownedWorkflowLanes.includes(lane));
|
|
2957
2964
|
const dispatchWorkflowInstanceId = decodePrReviewWorkflowBinding(current.jobId);
|
|
@@ -2973,7 +2980,11 @@ async function publishPrReviewResultReceipt(directory, input) {
|
|
|
2973
2980
|
digest: createHash3("sha256").update("").digest("hex")
|
|
2974
2981
|
},
|
|
2975
2982
|
prReviewResultReceipt: parsed.data
|
|
2976
|
-
}
|
|
2983
|
+
},
|
|
2984
|
+
...parentRepairBackfill ? {
|
|
2985
|
+
terminalResult: parentRepairBackfill,
|
|
2986
|
+
completedAt: parentRepairBackfill.recordedAt
|
|
2987
|
+
} : {}
|
|
2977
2988
|
};
|
|
2978
2989
|
appendRecord(directory, next);
|
|
2979
2990
|
maybeCompactDelegationsLocked(directory);
|
|
@@ -2996,6 +3007,19 @@ function buildBackgroundCompletionEventId(input) {
|
|
|
2996
3007
|
]);
|
|
2997
3008
|
return `bgc1:${createHash3("sha256").update(canonical).digest("hex")}`;
|
|
2998
3009
|
}
|
|
3010
|
+
function buildTypedDelegationTerminal(record, status, result, now) {
|
|
3011
|
+
return {
|
|
3012
|
+
eventId: buildBackgroundCompletionEventId({
|
|
3013
|
+
correlationId: record.correlationId,
|
|
3014
|
+
jobId: record.jobId,
|
|
3015
|
+
status,
|
|
3016
|
+
resultDigest: result.digest
|
|
3017
|
+
}),
|
|
3018
|
+
status,
|
|
3019
|
+
recordedAt: now,
|
|
3020
|
+
result
|
|
3021
|
+
};
|
|
3022
|
+
}
|
|
2999
3023
|
function sameJson(left, right) {
|
|
3000
3024
|
return JSON.stringify(left) === JSON.stringify(right);
|
|
3001
3025
|
}
|
|
@@ -3815,11 +3839,15 @@ function sweepStaleLocked(directory, timeoutMs, now, statuses = DEFAULT_SWEEPABL
|
|
|
3815
3839
|
digest: createHash3("sha256").update(staleReason).digest("hex"),
|
|
3816
3840
|
workflowLaneFailureClass: "liveness"
|
|
3817
3841
|
};
|
|
3842
|
+
const staleTerminal = buildTypedDelegationTerminal(record, "stale", livenessResult, now);
|
|
3818
3843
|
appendRecord(directory, {
|
|
3819
3844
|
...record,
|
|
3845
|
+
schemaVersion: record.schemaVersion === 4 ? 4 : 3,
|
|
3820
3846
|
status: "stale",
|
|
3821
|
-
updatedAt:
|
|
3822
|
-
|
|
3847
|
+
updatedAt: Math.max(staleTerminal.recordedAt, record.updatedAt),
|
|
3848
|
+
completedAt: staleTerminal.recordedAt,
|
|
3849
|
+
result: livenessResult,
|
|
3850
|
+
terminalResult: staleTerminal
|
|
3823
3851
|
});
|
|
3824
3852
|
try {
|
|
3825
3853
|
_staleSweepObserver?.(record, "stale");
|
|
@@ -4669,7 +4697,7 @@ async function reconcileLegacyCoderSettlements(directory, maxRecords, onReconcil
|
|
|
4669
4697
|
const candidates = readDelegations(directory).filter((record) => record.normalizedAgent === "coder" && Boolean(record.legacyCoderSettlementTransfer) && Boolean(record.terminalResult)).slice(0, maxRecords);
|
|
4670
4698
|
if (candidates.length === 0)
|
|
4671
4699
|
return 0;
|
|
4672
|
-
const { transferCoderSettlementToBackground } = await import("./coder-settlement-
|
|
4700
|
+
const { transferCoderSettlementToBackground } = await import("./coder-settlement-hnwwt3f0.js");
|
|
4673
4701
|
let transferred = 0;
|
|
4674
4702
|
for (const record of candidates) {
|
|
4675
4703
|
try {
|
|
@@ -5026,4 +5054,4 @@ async function maintainBackgroundDelegations(directory, options = {}) {
|
|
|
5026
5054
|
return emitObservation("ok");
|
|
5027
5055
|
}
|
|
5028
5056
|
|
|
5029
|
-
export { prReviewFindingRequiresCritic, PR_REVIEW_BASE_DIMENSION_IDS, PR_REVIEW_RISK_IMPACTS, PR_REVIEW_RISK_TAGS, prReviewLegacyTranscriptCompatibilityEnabled, PrReviewLaneResultEnvelopeSchema, decodePrReviewWorkflowBinding, prReviewLaneResultEnvelopeDigest, PrReviewResultReceiptSchema, PR_REVIEW_FINDINGS_MAX_BYTES, PR_REVIEW_HANDOFF_MAX_BYTES, PR_REVIEW_DISCARDED_EXAMPLE_ITEM_ID, PrReviewRunIdSchema, parsePrReviewRiskTagsField, PrReviewReviewerVerdictFieldsSchema, PrReviewCriticVerdictFieldsSchema, parsePrReviewVerdictRow, generatePrReviewRunId, MAX_RECOVERY_LEDGER_BYTES, readDelegationHealthArtifact, collectDelegationLedgerHealth, MAX_PR_REVIEW_COLLECTION_RECEIPT_ITEM_IDS, BACKGROUND_DELEGATIONS_FILE, BACKGROUND_DELEGATION_FALLBACK_DIR, BACKGROUND_CODER_RESERVATIONS_FILE, BACKGROUND_DELEGATIONS_CHECKPOINT_FILE, BACKGROUND_DELEGATIONS_MANIFEST_FILE, MAX_LIVE_BACKGROUND_FALLBACKS, MAX_LIVE_BACKGROUND_CODER_RESERVATIONS, MAX_BACKGROUND_OBSERVED_FILES, MAX_BACKGROUND_ADVISORY_CHARS, LEGACY_CODER_SETTLEMENT_PENDING_ADVISORY_MARKER, DELEGATION_COMPACTION_LOW_WATER_BYTES, DELEGATION_COMPACTION_HIGH_WATER_BYTES, MAX_CHECKPOINT_BYTES, MAX_CHECKPOINT_RECORDS, TOMBSTONE_MIN_AGE_MS, BACKGROUND_INGESTION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MAX_MS, BACKGROUND_CODER_RESERVATION_LEASE_MIN_MS, DEFAULT_STALE_DELEGATION_TIMEOUT_MS, DEFAULT_SWEEPABLE_DELEGATION_STATUSES, _checkpointInternals, isUnsettledWorktreeOwner, compactBackgroundDelegations, DELEGATION_READ_RETRY_DELAY_MS, readDelegationsDetailed, readDelegations, scanDelegationsForRecovery, findByCorrelationIdDetailed, findByCorrelationId, recordPendingDelegationDetailed, recordPendingDelegation, buildPromptSnapshot, appendDelegationTransition, publishPrReviewResultReceipt, buildBackgroundCompletionEventId, claimTerminalResult, claimCoderSettlement, normalizeBackgroundObservedFiles, updateCoderSettlement, registerLegacyCoderSettlementReconciler, _internals, markLegacyCoderSettlementTransferPending, clearLegacyCoderSettlementTransferPending, claimDelegationIngestion, recordDelegationIngestionResult, putPendingBackgroundAdvisory, replacePendingBackgroundAdvisory, preparePendingBackgroundAdvisories, acknowledgeObservedBackgroundAdvisories, releasePreparedBackgroundAdvisories, findByBatchIdDetailed, findByBatchId, findOpenAsyncLaneBatches, isTerminalDelegationStatus, registerStaleSweepObserver, sweepStaleDelegations, readDelegationFallback, listDelegationFallbacks, scanDelegationFallbacksForRecovery, writeDelegationFallback, removeDelegationFallback, findDelegationForCompletion, promoteDelegationFallback, buildBackgroundCoderReservationId, scanBackgroundCoderReservationsForAdmission, reserveBackgroundCoderSlot, bindBackgroundCoderReservation, releaseBackgroundCoderReservation, maintainBackgroundDelegations };
|
|
5057
|
+
export { prReviewFindingRequiresCritic, PR_REVIEW_BASE_DIMENSION_IDS, PR_REVIEW_RISK_IMPACTS, PR_REVIEW_RISK_TAGS, prReviewLegacyTranscriptCompatibilityEnabled, PrReviewLaneResultEnvelopeSchema, decodePrReviewWorkflowBinding, prReviewLaneResultEnvelopeDigest, PrReviewResultReceiptSchema, PR_REVIEW_FINDINGS_MAX_BYTES, PR_REVIEW_HANDOFF_MAX_BYTES, PR_REVIEW_DISCARDED_EXAMPLE_ITEM_ID, PrReviewRunIdSchema, parsePrReviewRiskTagsField, PrReviewReviewerVerdictFieldsSchema, PrReviewCriticVerdictFieldsSchema, parsePrReviewVerdictRow, generatePrReviewRunId, MAX_RECOVERY_LEDGER_BYTES, readDelegationHealthArtifact, collectDelegationLedgerHealth, MAX_PR_REVIEW_COLLECTION_RECEIPT_ITEM_IDS, BACKGROUND_DELEGATIONS_FILE, BACKGROUND_DELEGATION_FALLBACK_DIR, BACKGROUND_CODER_RESERVATIONS_FILE, BACKGROUND_DELEGATIONS_CHECKPOINT_FILE, BACKGROUND_DELEGATIONS_MANIFEST_FILE, MAX_LIVE_BACKGROUND_FALLBACKS, MAX_LIVE_BACKGROUND_CODER_RESERVATIONS, MAX_BACKGROUND_OBSERVED_FILES, MAX_BACKGROUND_ADVISORY_CHARS, LEGACY_CODER_SETTLEMENT_PENDING_ADVISORY_MARKER, DELEGATION_COMPACTION_LOW_WATER_BYTES, DELEGATION_COMPACTION_HIGH_WATER_BYTES, MAX_CHECKPOINT_BYTES, MAX_CHECKPOINT_RECORDS, TOMBSTONE_MIN_AGE_MS, BACKGROUND_INGESTION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MAX_MS, BACKGROUND_CODER_RESERVATION_LEASE_MIN_MS, DEFAULT_STALE_DELEGATION_TIMEOUT_MS, DEFAULT_SWEEPABLE_DELEGATION_STATUSES, _checkpointInternals, isUnsettledWorktreeOwner, compactBackgroundDelegations, DELEGATION_READ_RETRY_DELAY_MS, readDelegationsDetailed, readDelegations, scanDelegationsForRecovery, findByCorrelationIdDetailed, findByCorrelationId, recordPendingDelegationDetailed, recordPendingDelegation, buildPromptSnapshot, appendDelegationTransition, publishPrReviewResultReceipt, buildBackgroundCompletionEventId, buildTypedDelegationTerminal, claimTerminalResult, claimCoderSettlement, normalizeBackgroundObservedFiles, updateCoderSettlement, registerLegacyCoderSettlementReconciler, _internals, markLegacyCoderSettlementTransferPending, clearLegacyCoderSettlementTransferPending, claimDelegationIngestion, recordDelegationIngestionResult, putPendingBackgroundAdvisory, replacePendingBackgroundAdvisory, preparePendingBackgroundAdvisories, acknowledgeObservedBackgroundAdvisories, releasePreparedBackgroundAdvisories, findByBatchIdDetailed, findByBatchId, findOpenAsyncLaneBatches, isTerminalDelegationStatus, registerStaleSweepObserver, sweepStaleDelegations, readDelegationFallback, listDelegationFallbacks, scanDelegationFallbacksForRecovery, writeDelegationFallback, removeDelegationFallback, findDelegationForCompletion, promoteDelegationFallback, buildBackgroundCoderReservationId, scanBackgroundCoderReservationsForAdmission, reserveBackgroundCoderSlot, bindBackgroundCoderReservation, releaseBackgroundCoderReservation, maintainBackgroundDelegations };
|
|
@@ -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.184.
|
|
24
|
+
version: "7.184.13",
|
|
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",
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
withEvidenceLock
|
|
4
|
+
} from "./index-6cjpmvpa.js";
|
|
5
|
+
import {
|
|
6
|
+
atomicWriteFileAnyRoot
|
|
7
|
+
} from "./index-bntwj2tp.js";
|
|
8
|
+
|
|
9
|
+
// src/evidence/task-file.ts
|
|
10
|
+
import * as path from "path";
|
|
11
|
+
function taskEvidenceRelPath(taskId) {
|
|
12
|
+
return path.join("evidence", `${taskId}.json`);
|
|
13
|
+
}
|
|
14
|
+
function taskEvidencePath(directory, taskId) {
|
|
15
|
+
return path.join(directory, ".swarm", taskEvidenceRelPath(taskId));
|
|
16
|
+
}
|
|
17
|
+
async function atomicWriteFile(targetPath, content) {
|
|
18
|
+
await atomicWriteFileAnyRoot(targetPath, content);
|
|
19
|
+
}
|
|
20
|
+
function withTaskEvidenceLock(directory, taskId, agent, fn) {
|
|
21
|
+
return withEvidenceLock(directory, taskEvidenceRelPath(taskId), agent, taskId, fn);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { taskEvidencePath, atomicWriteFile, withTaskEvidenceLock };
|
|
@@ -4,13 +4,10 @@ import {
|
|
|
4
4
|
} from "./index-t7hmqgjy.js";
|
|
5
5
|
import {
|
|
6
6
|
emit
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-w6w6ny06.js";
|
|
8
8
|
import {
|
|
9
9
|
tryAcquireLock
|
|
10
10
|
} from "./index-ejhxgyvm.js";
|
|
11
|
-
import {
|
|
12
|
-
atomicWriteFileAnyRoot
|
|
13
|
-
} from "./index-0mj7hc2z.js";
|
|
14
11
|
|
|
15
12
|
// src/evidence/lock.ts
|
|
16
13
|
class EvidenceLockTimeoutError extends Error {
|
|
@@ -87,19 +84,4 @@ async function withEvidenceLock(directory, evidencePath, agent, taskId, fn, time
|
|
|
87
84
|
}
|
|
88
85
|
}
|
|
89
86
|
|
|
90
|
-
|
|
91
|
-
import * as path from "path";
|
|
92
|
-
function taskEvidenceRelPath(taskId) {
|
|
93
|
-
return path.join("evidence", `${taskId}.json`);
|
|
94
|
-
}
|
|
95
|
-
function taskEvidencePath(directory, taskId) {
|
|
96
|
-
return path.join(directory, ".swarm", taskEvidenceRelPath(taskId));
|
|
97
|
-
}
|
|
98
|
-
async function atomicWriteFile(targetPath, content) {
|
|
99
|
-
await atomicWriteFileAnyRoot(targetPath, content);
|
|
100
|
-
}
|
|
101
|
-
function withTaskEvidenceLock(directory, taskId, agent, fn) {
|
|
102
|
-
return withEvidenceLock(directory, taskEvidenceRelPath(taskId), agent, taskId, fn);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export { EvidenceLockTimeoutError, withEvidenceLock, taskEvidencePath, atomicWriteFile, withTaskEvidenceLock };
|
|
87
|
+
export { EvidenceLockTimeoutError, withEvidenceLock };
|
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
computePlanStructureHash
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-d2xdwz22.js";
|
|
5
5
|
import {
|
|
6
6
|
appendCoreEventSync
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-7rzgdcvc.js";
|
|
8
8
|
import {
|
|
9
9
|
deleteCoordinationState,
|
|
10
|
-
derivePlanId,
|
|
11
10
|
importCoordinationOnce,
|
|
12
11
|
listCoordinationStates,
|
|
13
12
|
transitionCoordinationState,
|
|
14
13
|
transitionCoordinationStateWithinTransaction,
|
|
15
14
|
withCoordinationTransaction
|
|
16
|
-
} from "./index-
|
|
15
|
+
} from "./index-cftva3pa.js";
|
|
17
16
|
import {
|
|
18
17
|
getProjectDb
|
|
19
|
-
} from "./index-
|
|
18
|
+
} from "./index-pwcbtbhd.js";
|
|
20
19
|
import {
|
|
21
20
|
canonicalExistingFilesystemPath,
|
|
22
21
|
legacyCanonicalExistingFilesystemPath
|
|
23
22
|
} from "./index-ry16d01s.js";
|
|
23
|
+
import {
|
|
24
|
+
derivePlanId
|
|
25
|
+
} from "./index-7pmbnjvj.js";
|
|
24
26
|
import {
|
|
25
27
|
assertProjectRoot
|
|
26
28
|
} from "./index-t7hmqgjy.js";
|
|
@@ -30,7 +32,7 @@ import {
|
|
|
30
32
|
import {
|
|
31
33
|
atomicWriteSwarmFile,
|
|
32
34
|
atomicWriteSwarmFileSync
|
|
33
|
-
} from "./index-
|
|
35
|
+
} from "./index-bntwj2tp.js";
|
|
34
36
|
import {
|
|
35
37
|
PlanSchema
|
|
36
38
|
} from "./index-gx2vp8gx.js";
|