opencode-swarm 7.153.1 → 7.154.0
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/dist/background/pending-delegations.d.ts +29 -0
- package/dist/background/pr-subscriptions.d.ts +258 -27
- package/dist/cli/{config-doctor-ze21qs6b.js → config-doctor-8p9y543t.js} +2 -2
- package/dist/cli/{core-qdmhh1kx.js → core-1h6x6k59.js} +1 -1
- package/dist/cli/{curation-policy-twa6agf8.js → curation-policy-9r902jw4.js} +6 -6
- package/dist/cli/{curator-llm-factory-s8atmc2n.js → curator-llm-factory-ypwf3a90.js} +29 -29
- package/dist/cli/{curator-hxb3wsxr.js → curator-yj00z1qz.js} +29 -29
- package/dist/cli/{evidence-summary-service-wzzym9r7.js → evidence-summary-service-npq04240.js} +12 -12
- package/dist/cli/{gate-evidence-f71dn9vv.js → gate-evidence-4b6t0ycn.js} +6 -6
- package/dist/cli/{guardrail-explain-5kzeem4m.js → guardrail-explain-dyxbhrdj.js} +30 -30
- package/dist/cli/{guardrail-log-38jnajpa.js → guardrail-log-eyecsekk.js} +5 -5
- package/dist/cli/{guardrail-reset-wzvtmpn2.js → guardrail-reset-269jdwhd.js} +29 -29
- package/dist/cli/{hive-promoter-55qcqgfx.js → hive-promoter-5936am48.js} +29 -29
- package/dist/cli/{index-0tyc8kdg.js → index-10zvxqra.js} +1 -1
- package/dist/cli/{index-6ybjrqf7.js → index-1tdsddab.js} +284 -107
- package/dist/cli/{index-23rneydq.js → index-2kzxkx50.js} +31 -31
- package/dist/cli/{index-tdzbm974.js → index-2mbs5q26.js} +108 -8
- package/dist/cli/{index-x3y6zhgj.js → index-3db7xza0.js} +1 -1
- package/dist/cli/{index-gn26q90p.js → index-3hdnfmhp.js} +2 -2
- package/dist/cli/{index-0tzv5zg2.js → index-3mhgv8d6.js} +2 -2
- package/dist/cli/{index-6vgb5fyb.js → index-48m4841x.js} +1 -1
- package/dist/cli/{index-mb7b1gye.js → index-4g00jhbs.js} +3 -3
- package/dist/cli/{index-1akn19mp.js → index-4y7g04py.js} +1 -1
- package/dist/cli/{index-n5pxkera.js → index-68w5jxv5.js} +4 -4
- package/dist/cli/{index-4pjkdcgc.js → index-6yc06dx9.js} +1 -1
- package/dist/cli/{index-2mqmvxac.js → index-7jnh1sgb.js} +7 -1
- package/dist/cli/{index-pk1gbqmq.js → index-c6dfyzdh.js} +1 -1
- package/dist/cli/{index-td0jz8xe.js → index-c809a69b.js} +2 -2
- package/dist/cli/{index-af0cqe6n.js → index-dwh02jmv.js} +7 -7
- package/dist/cli/{index-3cegckkq.js → index-garsang6.js} +1 -1
- package/dist/cli/{index-k10qtq71.js → index-hk4wa0v1.js} +6 -6
- package/dist/cli/{index-8v9sj4aq.js → index-mddgkqg9.js} +2 -2
- package/dist/cli/{index-4g0g3dqz.js → index-nkr634n6.js} +1 -1
- package/dist/cli/{index-ajkxx2k6.js → index-p4y7jefb.js} +2 -2
- package/dist/cli/{index-xkjrg9k4.js → index-pcj7jk4t.js} +3 -3
- package/dist/cli/{index-v689bmr2.js → index-qcz4xprd.js} +4 -4
- package/dist/cli/{index-zppxpc3y.js → index-s0a4ewkb.js} +2 -2
- package/dist/cli/{index-1dtshrzg.js → index-s70tmqn3.js} +5 -5
- package/dist/cli/{index-smqsp8hs.js → index-snnps1vm.js} +5 -5
- package/dist/cli/{index-n823qsae.js → index-tnm9bb8b.js} +11 -3
- package/dist/cli/{index-x8vw6ap1.js → index-ttqnhxxq.js} +59 -42
- package/dist/cli/{index-891g7hbf.js → index-vtdwkfbv.js} +1 -1
- package/dist/cli/index-wfxg3s7n.js +1158 -0
- package/dist/cli/{index-9v8d3c0k.js → index-wpstzk85.js} +4 -4
- package/dist/cli/{index-1gzdnjg9.js → index-y64jrbch.js} +2 -2
- package/dist/cli/{index-3ttktt56.js → index-yve4e8fx.js} +1 -1
- package/dist/cli/index.js +29 -29
- package/dist/cli/{knowledge-escalator-w05ztgvk.js → knowledge-escalator-bxpzeth0.js} +11 -11
- package/dist/cli/{knowledge-events-pwm9jc0m.js → knowledge-events-jxdpg2hj.js} +9 -9
- package/dist/cli/{knowledge-link-ge0rddxw.js → knowledge-link-nwxykjya.js} +5 -5
- package/dist/cli/{knowledge-store-4xv65tj2.js → knowledge-store-336hyzs8.js} +6 -6
- package/dist/cli/{knowledge-validator-0ttfsca7.js → knowledge-validator-9wkvnsv0.js} +8 -8
- package/dist/cli/{pending-delegations-nk78wx7h.js → pending-delegations-0fmj1qy6.js} +3 -3
- package/dist/cli/{pr-subscriptions-dq1f61ye.js → pr-subscriptions-1ndwgtbw.js} +15 -4
- package/dist/cli/{runner-n50w1y4w.js → runner-06dvm53x.js} +6 -6
- package/dist/cli/{scan-cursor-b6n15w8d.js → scan-cursor-3xxqtxwx.js} +7 -7
- package/dist/cli/{schema-jkbfwqr2.js → schema-jdx83m4m.js} +1 -1
- package/dist/cli/{scope-persistence-5xt2m5ep.js → scope-persistence-wgxn2kba.js} +8 -8
- package/dist/cli/{skill-generator-3keadpf7.js → skill-generator-vmxsc2fm.js} +13 -13
- package/dist/cli/{telemetry-hh1j99za.js → telemetry-q2km2zrz.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-4drcjymy.js → worktree-collision-ownership-gsay5210.js} +5 -5
- package/dist/cli/{worktree-isolation-1ymaxn4h.js → worktree-isolation-peb4bkg3.js} +29 -29
- package/dist/commands/pr-monitor-status.d.ts +8 -1
- package/dist/commands/registry.d.ts +1 -1
- package/dist/commands/reset-session.d.ts +8 -2
- package/dist/config/schema.d.ts +8 -0
- package/dist/hooks/knowledge-application-gate.d.ts +10 -1
- package/dist/hooks/knowledge-receipt-ledger.d.ts +1 -1
- package/dist/hooks/pr-review-resilience-circuit.d.ts +232 -0
- package/dist/hooks/pr-workflow-gate.d.ts +10 -11
- package/dist/index.js +249 -240
- package/dist/observability/catalog.d.ts +6 -3
- package/dist/state.d.ts +6 -4
- package/dist/telemetry.d.ts +21 -1
- package/package.json +7 -1
- package/dist/cli/index-meg33yyv.js +0 -247
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-3mhgv8d6.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-48m4841x.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -86,51 +86,51 @@ import {
|
|
|
86
86
|
handleWriteRetroCommand,
|
|
87
87
|
normalizeSwarmCommandInput,
|
|
88
88
|
resolveCommand
|
|
89
|
-
} from "./index-
|
|
90
|
-
import"./index-
|
|
91
|
-
import"./index-
|
|
92
|
-
import"./index-
|
|
89
|
+
} from "./index-1tdsddab.js";
|
|
90
|
+
import"./index-3hdnfmhp.js";
|
|
91
|
+
import"./index-10zvxqra.js";
|
|
92
|
+
import"./index-dwh02jmv.js";
|
|
93
93
|
import"./index-134d35c1.js";
|
|
94
94
|
import"./index-nj6rmyeh.js";
|
|
95
|
-
import"./index-
|
|
96
|
-
import"./index-
|
|
95
|
+
import"./index-6yc06dx9.js";
|
|
96
|
+
import"./index-y64jrbch.js";
|
|
97
97
|
import"./index-y8552snf.js";
|
|
98
|
-
import"./index-
|
|
98
|
+
import"./index-mddgkqg9.js";
|
|
99
99
|
import"./index-70ha9e09.js";
|
|
100
100
|
import"./index-c8s9a3zh.js";
|
|
101
101
|
import"./index-9ss2m4rs.js";
|
|
102
102
|
import"./index-vnn7qq8c.js";
|
|
103
|
-
import"./index-
|
|
104
|
-
import"./index-
|
|
105
|
-
import"./index-
|
|
106
|
-
import"./index-
|
|
107
|
-
import"./index-
|
|
103
|
+
import"./index-wfxg3s7n.js";
|
|
104
|
+
import"./index-68w5jxv5.js";
|
|
105
|
+
import"./index-snnps1vm.js";
|
|
106
|
+
import"./index-qcz4xprd.js";
|
|
107
|
+
import"./index-yve4e8fx.js";
|
|
108
108
|
import"./index-rtry5xyf.js";
|
|
109
|
-
import"./index-
|
|
109
|
+
import"./index-garsang6.js";
|
|
110
110
|
import"./index-zsrtt42s.js";
|
|
111
|
-
import"./index-
|
|
112
|
-
import"./index-
|
|
113
|
-
import"./index-
|
|
114
|
-
import"./index-
|
|
115
|
-
import"./index-
|
|
116
|
-
import"./index-
|
|
111
|
+
import"./index-wpstzk85.js";
|
|
112
|
+
import"./index-nkr634n6.js";
|
|
113
|
+
import"./index-7jnh1sgb.js";
|
|
114
|
+
import"./index-s70tmqn3.js";
|
|
115
|
+
import"./index-4g00jhbs.js";
|
|
116
|
+
import"./index-c6dfyzdh.js";
|
|
117
117
|
import"./index-556ja8an.js";
|
|
118
118
|
import"./index-b43rt5ph.js";
|
|
119
119
|
import"./index-q7sjgr1y.js";
|
|
120
120
|
import"./index-4fwbbad3.js";
|
|
121
|
-
import"./index-
|
|
122
|
-
import"./index-
|
|
123
|
-
import"./index-
|
|
121
|
+
import"./index-hk4wa0v1.js";
|
|
122
|
+
import"./index-2mbs5q26.js";
|
|
123
|
+
import"./index-p4y7jefb.js";
|
|
124
124
|
import"./index-gprxjmm7.js";
|
|
125
125
|
import"./index-n832052r.js";
|
|
126
126
|
import"./index-4cgee5vh.js";
|
|
127
127
|
import"./index-z6xqpmqg.js";
|
|
128
128
|
import"./index-r3mvsbtq.js";
|
|
129
|
-
import"./index-
|
|
129
|
+
import"./index-4y7g04py.js";
|
|
130
130
|
import {
|
|
131
131
|
init_schema,
|
|
132
132
|
stripKnownSwarmPrefix
|
|
133
|
-
} from "./index-
|
|
133
|
+
} from "./index-tnm9bb8b.js";
|
|
134
134
|
import {
|
|
135
135
|
AGENT_TOOL_MAP,
|
|
136
136
|
ORCHESTRATOR_NAME,
|
|
@@ -140,13 +140,13 @@ import"./index-9e6fdz2h.js";
|
|
|
140
140
|
import"./index-4rhhvd1a.js";
|
|
141
141
|
import"./index-zjygnfay.js";
|
|
142
142
|
import"./index-ae75rja9.js";
|
|
143
|
-
import"./index-
|
|
144
|
-
import"./index-
|
|
143
|
+
import"./index-3db7xza0.js";
|
|
144
|
+
import"./index-s0a4ewkb.js";
|
|
145
145
|
import"./index-bk5tah7q.js";
|
|
146
|
-
import"./index-
|
|
147
|
-
import"./index-
|
|
146
|
+
import"./index-c809a69b.js";
|
|
147
|
+
import"./index-vtdwkfbv.js";
|
|
148
148
|
import"./index-ed5ykebp.js";
|
|
149
|
-
import"./index-
|
|
149
|
+
import"./index-ttqnhxxq.js";
|
|
150
150
|
import"./index-7g4c7s5r.js";
|
|
151
151
|
import"./index-bpmtbmy9.js";
|
|
152
152
|
import"./index-zgwm4ryv.js";
|
|
@@ -4,26 +4,26 @@ import {
|
|
|
4
4
|
} from "./index-4cgee5vh.js";
|
|
5
5
|
import {
|
|
6
6
|
loadPluginConfigWithMeta
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-4y7g04py.js";
|
|
8
8
|
import {
|
|
9
9
|
KnowledgeConfigSchema,
|
|
10
10
|
init_schema
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-tnm9bb8b.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveHiveEventsPath
|
|
14
14
|
} from "./index-ae75rja9.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveKnowledgeStoreDir
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-3db7xza0.js";
|
|
18
18
|
import {
|
|
19
19
|
atomicWriteFile
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-s0a4ewkb.js";
|
|
21
21
|
import {
|
|
22
22
|
assertProjectRoot
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-vtdwkfbv.js";
|
|
24
24
|
import {
|
|
25
25
|
emit
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-ttqnhxxq.js";
|
|
27
27
|
import {
|
|
28
28
|
require_proper_lockfile
|
|
29
29
|
} from "./index-7g4c7s5r.js";
|
|
@@ -590,6 +590,7 @@ var CANONICAL_RECEIPT_SOURCES = new Set([
|
|
|
590
590
|
"phase_override",
|
|
591
591
|
"application_gate_staleness_release",
|
|
592
592
|
"application_gate_denial_limit_release",
|
|
593
|
+
"application_gate_session_reset_release",
|
|
593
594
|
"manual",
|
|
594
595
|
"migration",
|
|
595
596
|
"unknown"
|
|
@@ -1715,6 +1716,26 @@ function isLegacyUnverifiableTrace(state, traceId) {
|
|
|
1715
1716
|
return false;
|
|
1716
1717
|
return ![...state.memberships.values()].some((membership) => membership.origin === "v2");
|
|
1717
1718
|
}
|
|
1719
|
+
function overlappingRepairUncertainties(state, filters) {
|
|
1720
|
+
return [...state.repairUncertainties.values()].filter((uncertainty) => {
|
|
1721
|
+
if (filters.phase && filters.phase !== uncertainty.phase)
|
|
1722
|
+
return false;
|
|
1723
|
+
if (filters.session_id && filters.session_id !== uncertainty.session_id) {
|
|
1724
|
+
return false;
|
|
1725
|
+
}
|
|
1726
|
+
return true;
|
|
1727
|
+
});
|
|
1728
|
+
}
|
|
1729
|
+
function repairUncertaintyUnavailable(uncertainties) {
|
|
1730
|
+
const scoped = uncertainties.map((uncertainty) => `${uncertainty.session_id}/${uncertainty.phase}`).join(", ");
|
|
1731
|
+
const detail = `receipt authority pending re-evaluation for repaired phase/session scope: ${scoped}`;
|
|
1732
|
+
return {
|
|
1733
|
+
ok: false,
|
|
1734
|
+
code: "store_unavailable",
|
|
1735
|
+
detail,
|
|
1736
|
+
uncertainty: detail
|
|
1737
|
+
};
|
|
1738
|
+
}
|
|
1718
1739
|
async function runLocked(directory, graceDays, action, options = {}) {
|
|
1719
1740
|
const observations = [];
|
|
1720
1741
|
try {
|
|
@@ -1816,6 +1837,85 @@ async function commitApplicationMarkerBatch(directory, input) {
|
|
|
1816
1837
|
return { committed, idempotent, rejected };
|
|
1817
1838
|
});
|
|
1818
1839
|
}
|
|
1840
|
+
async function commitGateReleaseBatch(directory, input) {
|
|
1841
|
+
return runLocked(directory, input.grace_days, async (paths, state) => {
|
|
1842
|
+
const committed = [];
|
|
1843
|
+
const idempotent = [];
|
|
1844
|
+
const rejected = [];
|
|
1845
|
+
const releases = [];
|
|
1846
|
+
const traceExists = state.traceIds.has(input.trace_id);
|
|
1847
|
+
const staged = new Set;
|
|
1848
|
+
for (const item of input.items) {
|
|
1849
|
+
const membership = state.memberships.get(keyOf(input.trace_id, item.entry_id));
|
|
1850
|
+
if (!membership) {
|
|
1851
|
+
rejected.push({
|
|
1852
|
+
entry_id: item.entry_id,
|
|
1853
|
+
reason: traceExists ? "id_not_in_trace" : isLegacyUnverifiableTrace(state, input.trace_id) ? "legacy_unverifiable" : "trace_not_found"
|
|
1854
|
+
});
|
|
1855
|
+
continue;
|
|
1856
|
+
}
|
|
1857
|
+
if (membership.session_id !== input.session_id) {
|
|
1858
|
+
rejected.push({ entry_id: item.entry_id, reason: "wrong_session" });
|
|
1859
|
+
continue;
|
|
1860
|
+
}
|
|
1861
|
+
if (staged.has(item.entry_id)) {
|
|
1862
|
+
idempotent.push({
|
|
1863
|
+
entry_id: item.entry_id,
|
|
1864
|
+
event_id: membership.gate_release?.event_id ?? releases.at(-1)?.release.event_id ?? ""
|
|
1865
|
+
});
|
|
1866
|
+
continue;
|
|
1867
|
+
}
|
|
1868
|
+
staged.add(item.entry_id);
|
|
1869
|
+
if (membership.gate_release?.membership_event_id === membership.membership_event_id) {
|
|
1870
|
+
idempotent.push({
|
|
1871
|
+
entry_id: item.entry_id,
|
|
1872
|
+
event_id: membership.gate_release.event_id
|
|
1873
|
+
});
|
|
1874
|
+
continue;
|
|
1875
|
+
}
|
|
1876
|
+
const release = {
|
|
1877
|
+
source: normalizeReceiptSource(item.source),
|
|
1878
|
+
reason: item.reason,
|
|
1879
|
+
event_id: randomUUID2(),
|
|
1880
|
+
committed_at: nowIso(),
|
|
1881
|
+
membership_event_id: membership.membership_event_id
|
|
1882
|
+
};
|
|
1883
|
+
releases.push({
|
|
1884
|
+
trace_id: input.trace_id,
|
|
1885
|
+
entry_id: item.entry_id,
|
|
1886
|
+
release
|
|
1887
|
+
});
|
|
1888
|
+
committed.push({
|
|
1889
|
+
entry_id: item.entry_id,
|
|
1890
|
+
event_id: release.event_id,
|
|
1891
|
+
membership_event_id: release.membership_event_id
|
|
1892
|
+
});
|
|
1893
|
+
}
|
|
1894
|
+
if (releases.length) {
|
|
1895
|
+
await appendRecord(paths, state, makeRecord(state, "gate_release_committed", {
|
|
1896
|
+
releases
|
|
1897
|
+
}));
|
|
1898
|
+
}
|
|
1899
|
+
return { committed, idempotent, rejected };
|
|
1900
|
+
});
|
|
1901
|
+
}
|
|
1902
|
+
async function queryLiveMemberships(directory, filters = {}) {
|
|
1903
|
+
return runLocked(directory, filters.grace_days, async (_paths, state) => {
|
|
1904
|
+
const overlaps = overlappingRepairUncertainties(state, {
|
|
1905
|
+
phase: filters.phase,
|
|
1906
|
+
session_id: filters.session_id
|
|
1907
|
+
});
|
|
1908
|
+
if (overlaps.length > 0) {
|
|
1909
|
+
throw new ReceiptStoreError("store_unavailable", repairUncertaintyUnavailable(overlaps).detail);
|
|
1910
|
+
}
|
|
1911
|
+
return {
|
|
1912
|
+
memberships: [...state.memberships.values()].filter((m) => (!filters.phase || m.phase === filters.phase) && (!filters.task_id || m.task_id === filters.task_id) && (!filters.session_id || m.session_id === filters.session_id) && (filters.include_terminal !== false || !m.terminal) && (filters.include_phase_closed !== false || !m.phase_closed_at) && (!filters.exposure_kind || m.exposure_kind === filters.exposure_kind)).map((m) => ({
|
|
1913
|
+
...m,
|
|
1914
|
+
terminal: m.terminal ? { ...m.terminal } : undefined
|
|
1915
|
+
}))
|
|
1916
|
+
};
|
|
1917
|
+
}, { compact: false, writeSnapshot: false });
|
|
1918
|
+
}
|
|
1819
1919
|
async function queryHistoricalOutcomes(directory, entryIds, graceDays) {
|
|
1820
1920
|
return runLocked(directory, graceDays, async (paths, state) => {
|
|
1821
1921
|
const wanted = entryIds ? new Set(entryIds) : null;
|
|
@@ -2693,7 +2793,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
2693
2793
|
}
|
|
2694
2794
|
let bumps = 0;
|
|
2695
2795
|
if (deltas.length > 0) {
|
|
2696
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
2796
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-336hyzs8.js");
|
|
2697
2797
|
bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
2698
2798
|
}
|
|
2699
2799
|
return {
|
|
@@ -2730,4 +2830,4 @@ var _internals4 = {
|
|
|
2730
2830
|
mergeRollupInto
|
|
2731
2831
|
};
|
|
2732
2832
|
|
|
2733
|
-
export { queryHistoricalOutcomes, recordPhaseCloseIntent, reconcilePhaseClose, KNOWLEDGE_EVENT_SCHEMA_VERSION, MAX_EVENT_LOG_ENTRIES, RECEIPT_EVENT_TYPES, resolveKnowledgeEventsPath, resolveKnowledgeCounterBaselinePath, resolveHiveEventsPath2 as resolveHiveEventsPath, resolveLegacyApplicationLogPath, newTraceId, newEventId, appendKnowledgeEvent, appendKnowledgeEventsBatch, recordKnowledgeEvent, recordKnowledgeEventsBatch, appendHiveKnowledgeEvent, recordHiveKnowledgeEvent, readKnowledgeEvents, readHiveKnowledgeEvents, readLegacyApplicationRecords, MAX_VIOLATION_TIMESTAMPS, recomputeCounters, countViolationsInWindow, countEmptyTraceTerminals, countEntryViolationsInWindow, countEntryContradictionsInWindow, readKnowledgeCounterRollups, readAuthoritativeKnowledgeCounterRollups, effectiveRetrievalOutcomes, applyKnowledgeVerdictFeedback, _internals4 as _internals };
|
|
2833
|
+
export { commitGateReleaseBatch, queryLiveMemberships, queryHistoricalOutcomes, recordPhaseCloseIntent, reconcilePhaseClose, KNOWLEDGE_EVENT_SCHEMA_VERSION, MAX_EVENT_LOG_ENTRIES, RECEIPT_EVENT_TYPES, resolveKnowledgeEventsPath, resolveKnowledgeCounterBaselinePath, resolveHiveEventsPath2 as resolveHiveEventsPath, resolveLegacyApplicationLogPath, newTraceId, newEventId, appendKnowledgeEvent, appendKnowledgeEventsBatch, recordKnowledgeEvent, recordKnowledgeEventsBatch, appendHiveKnowledgeEvent, recordHiveKnowledgeEvent, readKnowledgeEvents, readHiveKnowledgeEvents, readLegacyApplicationRecords, MAX_VIOLATION_TIMESTAMPS, recomputeCounters, countViolationsInWindow, countEmptyTraceTerminals, countEntryViolationsInWindow, countEntryContradictionsInWindow, readKnowledgeCounterRollups, readAuthoritativeKnowledgeCounterRollups, effectiveRetrievalOutcomes, applyKnowledgeVerdictFeedback, _internals4 as _internals };
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
init_schema,
|
|
13
13
|
stripKnownSwarmPrefix
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-tnm9bb8b.js";
|
|
15
15
|
import {
|
|
16
16
|
init_constants
|
|
17
17
|
} from "./index-myt57pht.js";
|
|
18
18
|
import {
|
|
19
19
|
telemetry
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-ttqnhxxq.js";
|
|
21
21
|
import {
|
|
22
22
|
init_logger,
|
|
23
23
|
warn
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
detectWindowsWrites,
|
|
15
15
|
getSharedClassifierGuardrailBlock,
|
|
16
16
|
resolveWriteTargets
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-1tdsddab.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-3hdnfmhp.js";
|
|
25
25
|
|
|
26
26
|
// src/services/guardrail-explain-service.ts
|
|
27
27
|
import path from "path";
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
PlanSchema,
|
|
5
5
|
TaskStatusSchema,
|
|
6
6
|
init_loader
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-4y7g04py.js";
|
|
8
8
|
import {
|
|
9
9
|
assertProjectRoot,
|
|
10
10
|
withEvidenceLock
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-vtdwkfbv.js";
|
|
12
12
|
import {
|
|
13
13
|
emit
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-ttqnhxxq.js";
|
|
15
15
|
import {
|
|
16
16
|
criticalWarn,
|
|
17
17
|
init_logger,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
4
4
|
validateSkillPath
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-qcz4xprd.js";
|
|
6
6
|
import {
|
|
7
7
|
withTimeoutSignal
|
|
8
8
|
} from "./index-q7sjgr1y.js";
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
resolveHiveKnowledgePath,
|
|
13
13
|
resolveSwarmKnowledgePath,
|
|
14
14
|
transactKnowledge
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-hk4wa0v1.js";
|
|
16
16
|
import {
|
|
17
17
|
effectiveRetrievalOutcomes,
|
|
18
18
|
readAuthoritativeKnowledgeCounterRollups
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-2mbs5q26.js";
|
|
20
20
|
import {
|
|
21
21
|
advisoryWarn,
|
|
22
22
|
init_warning_buffer
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
atomicWriteFileAnyRoot,
|
|
30
30
|
atomicWriteSwarmFile
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-c809a69b.js";
|
|
32
32
|
import {
|
|
33
33
|
init_logger,
|
|
34
34
|
log,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
EvidenceLockTimeoutError,
|
|
10
10
|
withEvidenceLock
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-vtdwkfbv.js";
|
|
12
12
|
import {
|
|
13
13
|
exports_external,
|
|
14
14
|
init_zod
|
|
@@ -442,6 +442,12 @@ var ResultSchema = exports_external.object({
|
|
|
442
442
|
transcriptIncomplete: exports_external.boolean().optional(),
|
|
443
443
|
messageCount: exports_external.number().optional(),
|
|
444
444
|
workflowLaneFailureClass: exports_external.enum(["contract", "resource", "deadline"]).optional(),
|
|
445
|
+
terminalErrorClass: exports_external.object({
|
|
446
|
+
kind: exports_external.enum(["provider", "aborted", "output_length", "unknown"]),
|
|
447
|
+
category: exports_external.string().min(1).max(128),
|
|
448
|
+
statusCode: exports_external.number().int().optional(),
|
|
449
|
+
hostRetryable: exports_external.boolean().optional()
|
|
450
|
+
}).strict().optional(),
|
|
445
451
|
salvagedWorkflowLanes: exports_external.array(exports_external.string()).optional(),
|
|
446
452
|
salvagedWorkflowLaneRecoveries: exports_external.array(WorkflowLaneRecoverySchema).optional()
|
|
447
453
|
}).strict();
|
|
@@ -42,7 +42,7 @@ var SWARM_TEMP_GRAMMARS = [
|
|
|
42
42
|
token: "instance",
|
|
43
43
|
quarantineEligible: true,
|
|
44
44
|
parsesTarget: true,
|
|
45
|
-
producers: ["src/hooks/pr-workflow-gate.ts:
|
|
45
|
+
producers: ["src/hooks/pr-workflow-gate.ts:14774"],
|
|
46
46
|
note: "pre/post-rename file-identity verification (assertOpened/ClosedSwarmFileIdentity, pr-workflow-gate.ts:14547-14595) is writer-specific and load-bearing"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
@@ -123,7 +123,7 @@ var SWARM_TEMP_GRAMMARS = [
|
|
|
123
123
|
"src/tools/spec-write.ts:98",
|
|
124
124
|
"src/sdd/effective-spec.ts:1149",
|
|
125
125
|
"src/background/lane-output-store.ts:353",
|
|
126
|
-
"src/background/pending-delegations.ts:
|
|
126
|
+
"src/background/pending-delegations.ts:1053",
|
|
127
127
|
"src/background/delegation-health.ts:390",
|
|
128
128
|
"src/tools/submit-phase-council-verdicts.ts:458",
|
|
129
129
|
"src/summaries/store.ts:46 (pre-#2035)"
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
EvaluationRunV1Schema,
|
|
7
7
|
GateAuditResultV1Schema,
|
|
8
8
|
getProtectedEvaluationRunIds
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-y64jrbch.js";
|
|
10
10
|
import {
|
|
11
11
|
readEffectiveSpecSync
|
|
12
12
|
} from "./index-9ss2m4rs.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
readTaskEvidence,
|
|
24
24
|
readTaskEvidenceRaw,
|
|
25
25
|
sanitizeTaskId
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-wpstzk85.js";
|
|
27
27
|
import {
|
|
28
28
|
LedgerStaleWriterError,
|
|
29
29
|
appendLedgerEvent,
|
|
@@ -43,10 +43,10 @@ import {
|
|
|
43
43
|
replayFromLedgerWithStatus,
|
|
44
44
|
takeSnapshotEvent,
|
|
45
45
|
takeSnapshotWithRetry
|
|
46
|
-
} from "./index-
|
|
46
|
+
} from "./index-4g00jhbs.js";
|
|
47
47
|
import {
|
|
48
48
|
appendCoreEventSync
|
|
49
|
-
} from "./index-
|
|
49
|
+
} from "./index-c6dfyzdh.js";
|
|
50
50
|
import {
|
|
51
51
|
init_executor,
|
|
52
52
|
isUntrustedEnvKey,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
} from "./index-r3mvsbtq.js";
|
|
69
69
|
import {
|
|
70
70
|
PlanSchema
|
|
71
|
-
} from "./index-
|
|
71
|
+
} from "./index-4y7g04py.js";
|
|
72
72
|
import {
|
|
73
73
|
GIT_BINARY_ENV_VAR,
|
|
74
74
|
describeGitResolution,
|
|
@@ -79,14 +79,14 @@ import {
|
|
|
79
79
|
assertProjectRoot,
|
|
80
80
|
tryAcquireLock,
|
|
81
81
|
withEvidenceLock
|
|
82
|
-
} from "./index-
|
|
82
|
+
} from "./index-vtdwkfbv.js";
|
|
83
83
|
import {
|
|
84
84
|
invalidateCachedArtifact,
|
|
85
85
|
readCachedParsedFile
|
|
86
86
|
} from "./index-ed5ykebp.js";
|
|
87
87
|
import {
|
|
88
88
|
emit
|
|
89
|
-
} from "./index-
|
|
89
|
+
} from "./index-ttqnhxxq.js";
|
|
90
90
|
import {
|
|
91
91
|
ZodError,
|
|
92
92
|
init_zod
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./index-ae75rja9.js";
|
|
7
7
|
import {
|
|
8
8
|
resolveKnowledgeStoreDir
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-3db7xza0.js";
|
|
10
10
|
import {
|
|
11
11
|
atomicWriteFile
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-s0a4ewkb.js";
|
|
13
13
|
import {
|
|
14
14
|
init_knowledge_types,
|
|
15
15
|
isActiveStatus
|
|
@@ -713,7 +713,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
713
713
|
const {
|
|
714
714
|
readAuthoritativeKnowledgeCounterRollups,
|
|
715
715
|
effectiveRetrievalOutcomes
|
|
716
|
-
} = await import("./knowledge-events-
|
|
716
|
+
} = await import("./knowledge-events-jxdpg2hj.js");
|
|
717
717
|
const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
|
|
718
718
|
const flagIds = new Set;
|
|
719
719
|
for (const e of atFloor) {
|
|
@@ -780,11 +780,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
780
780
|
});
|
|
781
781
|
}
|
|
782
782
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
783
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
784
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
783
|
+
const { quarantineEntry } = await import("./knowledge-validator-9wkvnsv0.js");
|
|
784
|
+
const { KnowledgeConfigSchema } = await import("./schema-jdx83m4m.js");
|
|
785
785
|
let config;
|
|
786
786
|
try {
|
|
787
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
787
|
+
const { loadPluginConfigWithMeta } = await import("./index-pcj7jk4t.js");
|
|
788
788
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
789
789
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
790
790
|
} catch {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readKnowledge,
|
|
4
4
|
transactKnowledge
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-hk4wa0v1.js";
|
|
6
6
|
import {
|
|
7
7
|
init_git_executable,
|
|
8
8
|
resolveGitExecutableAsync
|
|
9
9
|
} from "./index-9e6fdz2h.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveKnowledgeStoreDir
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-3db7xza0.js";
|
|
13
13
|
import {
|
|
14
14
|
init_knowledge_types,
|
|
15
15
|
isActiveStatus
|
|
@@ -92,7 +92,7 @@ var _internals = {
|
|
|
92
92
|
symlinkSync: fs.symlinkSync
|
|
93
93
|
},
|
|
94
94
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
95
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
95
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-wgxn2kba.js");
|
|
96
96
|
return realWrite(directory, taskId, files);
|
|
97
97
|
},
|
|
98
98
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
init_loader,
|
|
4
4
|
loadPluginConfigWithMeta
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-4y7g04py.js";
|
|
6
6
|
import {
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-tnm9bb8b.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_WORKTREE_ISOLATION_CONFIG,
|
|
11
11
|
init_constants
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
_internals,
|
|
4
4
|
resolveWorktreeIsolationConfig
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-p4y7jefb.js";
|
|
6
6
|
import {
|
|
7
7
|
ApprovalEvidenceSchema,
|
|
8
8
|
BaseEvidenceSchema,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
loadPluginConfig,
|
|
43
43
|
loadPluginConfigWithMeta,
|
|
44
44
|
loadPluginConfigWithMetaAsync
|
|
45
|
-
} from "./index-
|
|
45
|
+
} from "./index-4y7g04py.js";
|
|
46
46
|
import {
|
|
47
47
|
AUTO_REVIEW_V8_BURN_IN_DECISION,
|
|
48
48
|
AgentOverrideConfigSchema,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
TurboConfigSchema,
|
|
65
65
|
WorktreeIsolationConfigSchema,
|
|
66
66
|
resolveAutoReviewConfig
|
|
67
|
-
} from "./index-
|
|
67
|
+
} from "./index-tnm9bb8b.js";
|
|
68
68
|
import {
|
|
69
69
|
ALL_AGENT_NAMES,
|
|
70
70
|
ALL_SUBAGENT_NAMES,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
authorizeCuration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-yve4e8fx.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-hk4wa0v1.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveKnowledgeStoreDir
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-3db7xza0.js";
|
|
16
16
|
import {
|
|
17
17
|
atomicWriteFile
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-s0a4ewkb.js";
|
|
19
19
|
import {
|
|
20
20
|
require_proper_lockfile
|
|
21
21
|
} from "./index-7g4c7s5r.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
atomicWriteFileAnyRoot
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-c809a69b.js";
|
|
5
5
|
import {
|
|
6
6
|
withEvidenceLock
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-vtdwkfbv.js";
|
|
8
8
|
|
|
9
9
|
// src/evidence/task-file.ts
|
|
10
10
|
import * as path from "path";
|