opencode-swarm 7.179.1 → 7.180.1
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/agents/architect.d.ts +67 -0
- package/dist/agents/council-prompts.d.ts +3 -3
- package/dist/agents/index.d.ts +1 -1
- package/dist/background/pr-event-subscribers.d.ts +2 -0
- package/dist/background/pr-feedback-event-queue.d.ts +7 -0
- package/dist/background/pr-feedback-loop.d.ts +162 -0
- package/dist/cli/{coder-settlement-f1nmezzv.js → coder-settlement-b57917a3.js} +14 -14
- package/dist/cli/{config-doctor-ena2803f.js → config-doctor-ebat06eq.js} +2 -2
- package/dist/cli/{core-fcfzme3m.js → core-8k41qh0d.js} +4 -5
- package/dist/cli/{curation-policy-c7mdsf7m.js → curation-policy-m3x9mkj9.js} +7 -6
- package/dist/cli/{curator-q9s5q9v4.js → curator-8yb3qkxs.js} +45 -43
- package/dist/cli/{curator-drift-d93pwt8h.js → curator-drift-3av9hffm.js} +22 -12
- package/dist/cli/curator-llm-factory-htgqafq0.js +74 -0
- package/dist/cli/{evidence-summary-service-wtj8mkm6.js → evidence-summary-service-s258ea5t.js} +23 -21
- package/dist/cli/{gate-evidence-h83yb8nd.js → gate-evidence-fqxpf3xz.js} +9 -9
- package/dist/cli/guardrail-explain-r0qxa4zy.js +75 -0
- package/dist/cli/{guardrail-log-zf1htf1d.js → guardrail-log-j2wdmvmy.js} +7 -7
- package/dist/cli/{guardrail-reset-f2p198j3.js → guardrail-reset-wb2eqbvf.js} +45 -43
- package/dist/cli/hive-promoter-kxpc3r17.js +89 -0
- package/dist/cli/{index-wrt875kh.js → index-0725jpp7.js} +1 -1
- package/dist/cli/{index-34bwqcea.js → index-12ewkms0.js} +1 -1
- package/dist/cli/{index-epfjc1c1.js → index-2q5m4m2r.js} +11 -11
- package/dist/cli/{index-h59vsbch.js → index-38cfx8g8.js} +2 -2
- package/dist/cli/{index-xy7k7f3k.js → index-3bbjpbmn.js} +2 -2
- package/dist/cli/{index-vp9pn7sv.js → index-3zvp7t5d.js} +5 -5
- package/dist/cli/{index-dz12bshh.js → index-50v672wd.js} +8 -8
- package/dist/cli/{index-yfpswnjt.js → index-516j9vsk.js} +4 -4
- package/dist/cli/{index-w4c2repz.js → index-600aqfvm.js} +47 -43
- package/dist/cli/{index-0h3cr7pn.js → index-6gcxgx84.js} +1 -1
- package/dist/cli/{index-qt0793qm.js → index-6mwha20t.js} +3 -3
- package/dist/cli/{index-93nx95me.js → index-855qxtdm.js} +8 -7
- package/dist/cli/{index-cvg402ha.js → index-91dhg3wr.js} +2 -2
- package/dist/cli/{index-3pzwsesm.js → index-92m05mew.js} +2 -2
- package/dist/cli/{index-ne9zamcs.js → index-989v83pb.js} +1 -1
- package/dist/cli/{index-9fb01jk5.js → index-as4xaams.js} +1 -1
- package/dist/cli/{index-2b0ktpbf.js → index-bdpgfep1.js} +5 -5
- package/dist/cli/{index-q375xdcw.js → index-bhmrgbyv.js} +9 -1
- package/dist/cli/{index-nzekzzs2.js → index-bv4b8tpa.js} +5 -5
- package/dist/cli/{index-rb9jmj30.js → index-cj64vp08.js} +7 -7
- package/dist/cli/{index-549wxbe1.js → index-cjapb4hy.js} +1 -1
- package/dist/cli/{index-5d224akk.js → index-dzm5nfh7.js} +4 -4
- package/dist/cli/{index-f2v90gfc.js → index-ea9fk6v0.js} +25 -166
- package/dist/cli/index-ejhxgyvm.js +147 -0
- package/dist/cli/{index-n1tcj1q7.js → index-g062wnw1.js} +187 -47
- package/dist/cli/{index-s4bkey0q.js → index-gc6h1fmf.js} +4 -4
- package/dist/cli/{index-pn023bf9.js → index-gw5egd8j.js} +49 -47
- package/dist/cli/index-gx2vp8gx.js +100 -0
- package/dist/cli/{index-yp25bc9n.js → index-gy3tcmk4.js} +7 -7
- package/dist/cli/{index-n2wjrgcs.js → index-k5vwnnym.js} +7 -9
- package/dist/cli/{index-ajm7ebyd.js → index-k6f0nryj.js} +2 -2
- package/dist/cli/{index-zbhvr9st.js → index-n5carmk0.js} +8 -10
- package/dist/cli/{index-h4nh6s8b.js → index-nhxykfyy.js} +1 -1
- package/dist/cli/{index-pskba939.js → index-rejpbgxp.js} +1 -1
- package/dist/cli/{index-9s1xzvnn.js → index-rp4akjrm.js} +13 -3
- package/dist/cli/{index-g6nyk713.js → index-s0zgz4p1.js} +1 -1
- package/dist/cli/{index-aqpwm350.js → index-tnhk72rs.js} +3 -3
- package/dist/cli/{index-sj29n50e.js → index-v0par978.js} +7 -7
- package/dist/cli/index-v7fx8q3z.js +339 -0
- package/dist/cli/{index-a11ztzs5.js → index-vmthakz0.js} +1 -1
- package/dist/cli/{index-b567t0cr.js → index-wx3wz7ya.js} +10 -8
- package/dist/cli/{index-y98fvmb8.js → index-xd0e4amf.js} +33 -18
- package/dist/cli/{index-m1w40kfw.js → index-xj5z92qz.js} +4 -103
- package/dist/cli/{index-6r92fw88.js → index-y30y1rkg.js} +9 -9
- package/dist/cli/{index-pfg3jwe9.js → index-yf7tdhpz.js} +3 -3
- package/dist/cli/{index-y94vwx2q.js → index-z2xf153n.js} +13 -15
- package/dist/cli/{index-ky262b73.js → index-z2zrcecq.js} +1721 -902
- package/dist/cli/{index-zz7gzw57.js → index-zxdawwc7.js} +88 -4
- package/dist/cli/index.js +46 -44
- package/dist/cli/{knowledge-escalator-z6tkgrjq.js → knowledge-escalator-n30h6ran.js} +17 -16
- package/dist/cli/{knowledge-events-2bgefatz.js → knowledge-events-k2qqase2.js} +15 -14
- package/dist/cli/{knowledge-link-gfz47ves.js → knowledge-link-s2qs178z.js} +6 -5
- package/dist/cli/{knowledge-store-1fphg9sa.js → knowledge-store-zy226v5a.js} +7 -6
- package/dist/cli/{knowledge-validator-723h2vck.js → knowledge-validator-qgyxdpc9.js} +9 -8
- package/dist/cli/{mcp-xyswgya5.js → mcp-pj7acze3.js} +1 -1
- package/dist/cli/{pending-delegations-5zm19yvv.js → pending-delegations-sgnnyw55.js} +14 -13
- package/dist/cli/{pr-subscriptions-5hm6hzv6.js → pr-subscriptions-7fb7xm3q.js} +14 -13
- package/dist/cli/{pr-workflow-gate-48rzb2bh.js → pr-workflow-gate-5dqcrkz6.js} +47 -43
- package/dist/cli/{runner-16b691ba.js → runner-p9hstpxn.js} +7 -6
- package/dist/cli/{scan-cursor-m28tddrg.js → scan-cursor-jc7wwb7e.js} +9 -9
- package/dist/cli/{schema-jt9axyj6.js → schema-5k68crjb.js} +3 -1
- package/dist/cli/{scope-persistence-d0358pw7.js → scope-persistence-xeg4khwk.js} +19 -18
- package/dist/cli/{server-d5jxcbxz.js → server-ej6tzd7t.js} +53 -51
- package/dist/cli/{skill-generator-qanka67x.js → skill-generator-nspt9b3n.js} +19 -18
- package/dist/cli/{snapshot-coordination-init-mhrq11p8.js → snapshot-coordination-init-3rs3zpaa.js} +45 -43
- package/dist/cli/speckit-checkoff-dqf636ya.js +31 -0
- package/dist/cli/{telemetry-qxav5cdk.js → telemetry-zhcgfe70.js} +1 -1
- package/dist/cli/{workspace-snapshot-rfnn80dg.js → workspace-snapshot-4m2ex1ey.js} +4 -5
- package/dist/cli/{worktree-collision-ownership-ygdbpexh.js → worktree-collision-ownership-rbzgbvj4.js} +17 -17
- package/dist/cli/{worktree-isolation-4855f2az.js → worktree-isolation-6zpnzr70.js} +45 -43
- package/dist/commands/pr-feedback-loop.d.ts +1 -0
- package/dist/commands/registry.d.ts +10 -2
- package/dist/config/schema.d.ts +27 -0
- package/dist/council/disagreement-detector.d.ts +23 -1
- package/dist/council/general-council-service.d.ts +40 -3
- package/dist/failures/invocation-failure.d.ts +11 -0
- package/dist/hooks/delegation-tracker.d.ts +6 -1
- package/dist/hooks/pr-workflow-gate.d.ts +1 -1
- package/dist/hooks/system-enhancer.d.ts +4 -2
- package/dist/hooks/system-render-boundary.d.ts +68 -0
- package/dist/index.js +634 -606
- package/dist/sdd/effective-spec.d.ts +35 -22
- package/dist/sdd/speckit-checkoff.d.ts +113 -0
- package/dist/session/hydration-ownership.d.ts +83 -0
- package/dist/session/snapshot-coordination-init.d.ts +2 -1
- package/dist/session/snapshot-reader.d.ts +25 -7
- package/dist/state.d.ts +32 -2
- package/dist/utils/provider-error-classification.d.ts +11 -0
- package/opencode-swarm.schema.json +40 -0
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-dds2fnhj.js +0 -72
- package/dist/cli/guardrail-explain-qm5wej7v.js +0 -73
- package/dist/cli/hive-promoter-1mhx2jh0.js +0 -87
- package/dist/cli/index-4ddpvd5c.js +0 -94
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
_internals3 as _internals,
|
|
4
|
-
checkHivePromotions,
|
|
5
|
-
countDistinctProjects,
|
|
6
|
-
createHivePromoterHook,
|
|
7
|
-
isHiveEligible,
|
|
8
|
-
promoteFromSwarm,
|
|
9
|
-
promoteToHive
|
|
10
|
-
} from "./index-ky262b73.js";
|
|
11
|
-
import"./index-hamqvzqn.js";
|
|
12
|
-
import"./index-pskba939.js";
|
|
13
|
-
import"./index-aqpwm350.js";
|
|
14
|
-
import"./index-h4nh6s8b.js";
|
|
15
|
-
import"./index-q375xdcw.js";
|
|
16
|
-
import"./index-y98fvmb8.js";
|
|
17
|
-
import"./index-g6nyk713.js";
|
|
18
|
-
import"./index-txdagbh7.js";
|
|
19
|
-
import"./index-n1tcj1q7.js";
|
|
20
|
-
import"./index-6b295cas.js";
|
|
21
|
-
import"./index-dz12bshh.js";
|
|
22
|
-
import"./index-vp9pn7sv.js";
|
|
23
|
-
import"./index-pfg3jwe9.js";
|
|
24
|
-
import"./index-rdec0y3z.js";
|
|
25
|
-
import"./index-6r92fw88.js";
|
|
26
|
-
import"./index-549wxbe1.js";
|
|
27
|
-
import"./index-zsrtt42s.js";
|
|
28
|
-
import"./index-y94vwx2q.js";
|
|
29
|
-
import"./index-2b0ktpbf.js";
|
|
30
|
-
import"./index-3pzwsesm.js";
|
|
31
|
-
import"./index-pt7h91zc.js";
|
|
32
|
-
import"./index-q7sjgr1y.js";
|
|
33
|
-
import"./index-n2wjrgcs.js";
|
|
34
|
-
import"./index-zbhvr9st.js";
|
|
35
|
-
import"./index-sj29n50e.js";
|
|
36
|
-
import"./index-epfjc1c1.js";
|
|
37
|
-
import"./index-s4bkey0q.js";
|
|
38
|
-
import"./index-2s7dvzff.js";
|
|
39
|
-
import"./index-5d224akk.js";
|
|
40
|
-
import"./index-0h3cr7pn.js";
|
|
41
|
-
import"./index-rtry5xyf.js";
|
|
42
|
-
import"./index-ajm7ebyd.js";
|
|
43
|
-
import"./index-frcemc0b.js";
|
|
44
|
-
import"./index-wrt875kh.js";
|
|
45
|
-
import"./index-rb9jmj30.js";
|
|
46
|
-
import"./index-b567t0cr.js";
|
|
47
|
-
import"./index-h59vsbch.js";
|
|
48
|
-
import"./index-cvg402ha.js";
|
|
49
|
-
import"./index-a11ztzs5.js";
|
|
50
|
-
import"./index-nzekzzs2.js";
|
|
51
|
-
import"./index-ry16d01s.js";
|
|
52
|
-
import"./index-rdm3px0g.js";
|
|
53
|
-
import"./index-yfpswnjt.js";
|
|
54
|
-
import {
|
|
55
|
-
resolveHiveKnowledgePath
|
|
56
|
-
} from "./index-yp25bc9n.js";
|
|
57
|
-
import"./index-vzm6zre7.js";
|
|
58
|
-
import"./index-ae75rja9.js";
|
|
59
|
-
import"./index-34bwqcea.js";
|
|
60
|
-
import"./index-f2v90gfc.js";
|
|
61
|
-
import"./index-7g4c7s5r.js";
|
|
62
|
-
import"./index-qt0793qm.js";
|
|
63
|
-
import"./index-ne9zamcs.js";
|
|
64
|
-
import"./index-1xnse449.js";
|
|
65
|
-
import"./index-c1ggtmpm.js";
|
|
66
|
-
import"./index-m1w40kfw.js";
|
|
67
|
-
import"./index-zz7gzw57.js";
|
|
68
|
-
import"./index-4ddpvd5c.js";
|
|
69
|
-
import"./index-9s1xzvnn.js";
|
|
70
|
-
import"./index-w872yykk.js";
|
|
71
|
-
import"./index-bk5tah7q.js";
|
|
72
|
-
import"./index-gknz3bv1.js";
|
|
73
|
-
import"./index-zpsr8rpc.js";
|
|
74
|
-
import"./index-wvghb3x6.js";
|
|
75
|
-
import"./index-9rwhas09.js";
|
|
76
|
-
import"./index-zgwm4ryv.js";
|
|
77
|
-
import"./index-a76rekgs.js";
|
|
78
|
-
export {
|
|
79
|
-
resolveHiveKnowledgePath,
|
|
80
|
-
promoteToHive,
|
|
81
|
-
promoteFromSwarm,
|
|
82
|
-
isHiveEligible,
|
|
83
|
-
createHivePromoterHook,
|
|
84
|
-
countDistinctProjects,
|
|
85
|
-
checkHivePromotions,
|
|
86
|
-
_internals
|
|
87
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
init_logger,
|
|
4
|
-
log
|
|
5
|
-
} from "./index-zgwm4ryv.js";
|
|
6
|
-
import {
|
|
7
|
-
__esm
|
|
8
|
-
} from "./index-a76rekgs.js";
|
|
9
|
-
|
|
10
|
-
// src/observability/startup-contract.ts
|
|
11
|
-
function noteStartupAdvisory() {
|
|
12
|
-
if (!state.advisoryWindowOpen)
|
|
13
|
-
return;
|
|
14
|
-
state.advisoryCount += 1;
|
|
15
|
-
}
|
|
16
|
-
var state;
|
|
17
|
-
var init_startup_contract = __esm(() => {
|
|
18
|
-
state = {
|
|
19
|
-
importMarkMs: null,
|
|
20
|
-
serverStartMark: null,
|
|
21
|
-
serverResolvedMark: null,
|
|
22
|
-
serverMs: null,
|
|
23
|
-
queueScheduledAt: null,
|
|
24
|
-
queuePending: 0,
|
|
25
|
-
queueTasks: 0,
|
|
26
|
-
queueCompleted: 0,
|
|
27
|
-
queueFailed: 0,
|
|
28
|
-
queueSettled: false,
|
|
29
|
-
queueSettledMs: null,
|
|
30
|
-
advisoryCount: 0,
|
|
31
|
-
advisoryWindowOpen: false,
|
|
32
|
-
firstTurnDone: false,
|
|
33
|
-
firstToolDone: false,
|
|
34
|
-
firstToolName: null,
|
|
35
|
-
firstTurnMs: null,
|
|
36
|
-
firstToolMs: null
|
|
37
|
-
};
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
// src/services/warning-buffer.ts
|
|
41
|
-
function sanitizeBufferedLine(s) {
|
|
42
|
-
return s.replace(/\s+/g, " ").replace(CONTROL_CHARS_RE, "").replace(/\s+/g, " ").trim();
|
|
43
|
-
}
|
|
44
|
-
function addDeferredWarning(warning) {
|
|
45
|
-
noteStartupAdvisory();
|
|
46
|
-
const sanitized = sanitizeBufferedLine(warning);
|
|
47
|
-
if (deferredWarnings.length < MAX_DEFERRED_WARNINGS - 1) {
|
|
48
|
-
deferredWarnings.push(sanitized);
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
if (!deferredWarningsTruncated) {
|
|
52
|
-
deferredWarnings.push(`[opencode-swarm] ${MAX_DEFERRED_WARNINGS - 1} deferred warnings buffered; additional advisories were dropped (cap reached). Run with OPENCODE_SWARM_DEBUG=1 to see all advisories in the debug log.`);
|
|
53
|
-
deferredWarningsTruncated = true;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
function renderAdvisoryDetail(data) {
|
|
57
|
-
if (data === undefined || data === null)
|
|
58
|
-
return "";
|
|
59
|
-
let raw;
|
|
60
|
-
if (typeof data === "string") {
|
|
61
|
-
raw = data;
|
|
62
|
-
} else if (data instanceof Error) {
|
|
63
|
-
raw = data.message;
|
|
64
|
-
} else if (Array.isArray(data) && data.every((d) => typeof d === "string")) {
|
|
65
|
-
raw = data.join("; ");
|
|
66
|
-
} else {
|
|
67
|
-
try {
|
|
68
|
-
raw = JSON.stringify(data) ?? String(data);
|
|
69
|
-
} catch {
|
|
70
|
-
raw = String(data);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
const collapsed = sanitizeBufferedLine(raw);
|
|
74
|
-
if (collapsed === "")
|
|
75
|
-
return "";
|
|
76
|
-
return collapsed.length > MAX_ADVISORY_DETAIL_CHARS ? `${collapsed.slice(0, MAX_ADVISORY_DETAIL_CHARS - 1)}\u2026` : collapsed;
|
|
77
|
-
}
|
|
78
|
-
function advisoryWarn(message, data) {
|
|
79
|
-
const detail = renderAdvisoryDetail(data);
|
|
80
|
-
addDeferredWarning(detail ? `${message} ${detail}` : message);
|
|
81
|
-
log(message, data);
|
|
82
|
-
}
|
|
83
|
-
function getDeferredWarnings() {
|
|
84
|
-
return [...deferredWarnings];
|
|
85
|
-
}
|
|
86
|
-
var deferredWarnings, MAX_DEFERRED_WARNINGS = 50, deferredWarningsTruncated = false, CONTROL_CHARS_RE, MAX_ADVISORY_DETAIL_CHARS = 600;
|
|
87
|
-
var init_warning_buffer = __esm(() => {
|
|
88
|
-
init_startup_contract();
|
|
89
|
-
init_logger();
|
|
90
|
-
deferredWarnings = [];
|
|
91
|
-
CONTROL_CHARS_RE = /[\x00-\x1F\x7F-\x9F]/g;
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
export { addDeferredWarning, advisoryWarn, getDeferredWarnings, init_warning_buffer };
|