opencode-swarm 7.159.2 → 7.160.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/delegation-health.d.ts +1 -1
- package/dist/cli/{coder-settlement-hny3vh3e.js → coder-settlement-zn552sp9.js} +11 -10
- package/dist/cli/{config-doctor-00ex0s3k.js → config-doctor-ddtdz2g0.js} +3 -3
- package/dist/cli/{core-03tedwzg.js → core-embasn2j.js} +2 -2
- package/dist/cli/{curation-policy-z0a5akng.js → curation-policy-agr6ga1s.js} +6 -6
- package/dist/cli/{curator-n81nzdw8.js → curator-dgp6dxxn.js} +32 -31
- package/dist/cli/curator-llm-factory-7cwvmc46.js +67 -0
- package/dist/cli/{evidence-summary-service-nz7y1w2a.js → evidence-summary-service-sbnyann4.js} +14 -13
- package/dist/cli/{gate-evidence-dxafmzrn.js → gate-evidence-5v67a1dz.js} +7 -7
- package/dist/cli/guardrail-explain-2gwarnca.js +68 -0
- package/dist/cli/{guardrail-log-t8c7acxg.js → guardrail-log-zbnbff1y.js} +9 -6
- package/dist/cli/{guardrail-reset-0ft2gf03.js → guardrail-reset-3cnz54hx.js} +32 -31
- package/dist/cli/{hive-promoter-brq9cx7c.js → hive-promoter-7cr7t2kg.js} +32 -31
- package/dist/cli/{index-1xcve0gc.js → index-1f4n43yz.js} +2 -2
- package/dist/cli/{index-b5s1n149.js → index-3055dgzp.js} +7 -7
- package/dist/cli/{index-bmst1sje.js → index-3yh737hc.js} +6 -6
- package/dist/cli/{index-0zerbq1v.js → index-4mm22fzj.js} +23 -14
- package/dist/cli/{index-qypnqmcj.js → index-5m7qjj29.js} +24 -7
- package/dist/cli/{index-rq461prn.js → index-7qv869f0.js} +6 -6
- package/dist/cli/{index-ky2r092m.js → index-85qjc7b2.js} +2 -2
- package/dist/cli/{index-y55hqgcj.js → index-8bjv01t8.js} +4 -4
- package/dist/cli/{index-dgt8z19x.js → index-962jgzdq.js} +1 -1
- package/dist/cli/{index-vq4d1h7t.js → index-9fspg1xw.js} +1 -1
- package/dist/cli/{index-7tjamatf.js → index-9k3zc2t8.js} +7 -7
- package/dist/cli/{index-p2m1skjz.js → index-9q6w7kke.js} +1 -1
- package/dist/cli/{index-av3gnekk.js → index-b5adxpy6.js} +1 -1
- package/dist/cli/{index-w1rhyqw2.js → index-cn233hsy.js} +1 -1
- package/dist/cli/{index-mcan50mx.js → index-d9s5hb0m.js} +4 -4
- package/dist/cli/{index-prknc0xn.js → index-dke4wzkn.js} +108 -44
- package/dist/cli/index-e75bzfgd.js +785 -0
- package/dist/cli/{index-8gh97gkz.js → index-fzkx24q5.js} +2 -2
- package/dist/cli/{index-m0gfzxw1.js → index-gt8cxfbp.js} +2 -2
- package/dist/cli/{index-yt75r1er.js → index-h3re5c78.js} +1 -1
- package/dist/cli/{index-k7kvrwbj.js → index-jmths6jj.js} +34 -33
- package/dist/cli/{index-8ahjx7vt.js → index-kkfgygvn.js} +4 -4
- package/dist/cli/{index-q8yma345.js → index-p39xem8b.js} +5 -5
- package/dist/cli/{index-e1jcdpdg.js → index-py6bqwnb.js} +2 -2
- package/dist/cli/{index-6sheh3yp.js → index-q6gjwy7m.js} +19 -10
- package/dist/cli/{index-200myvdx.js → index-rhc8jve7.js} +2 -2
- package/dist/cli/{index-9ev0bbqh.js → index-rnyt2z5r.js} +346 -98
- package/dist/cli/{index-1e9rzhmr.js → index-rq7k03rk.js} +4 -4
- package/dist/cli/{index-egc8d995.js → index-s7w428r3.js} +1 -1
- package/dist/cli/{index-caqjwnak.js → index-sy5aeegg.js} +11 -2
- package/dist/cli/{index-b2dh37cf.js → index-va1edd2n.js} +5 -5
- package/dist/cli/{index-eh1gh043.js → index-w699ekk9.js} +4 -4
- package/dist/cli/{index-nmp47dmm.js → index-wzx6atbv.js} +13 -4
- package/dist/cli/{index-jd7mz4yg.js → index-xs15netk.js} +1 -1
- package/dist/cli/{index-wzc6vzq6.js → index-yrar1ask.js} +3 -3
- package/dist/cli/{index-v7wm4mw8.js → index-zjvf7edj.js} +3 -3
- package/dist/cli/index.js +32 -31
- package/dist/cli/{knowledge-escalator-rxagfxnk.js → knowledge-escalator-zksm9833.js} +13 -12
- package/dist/cli/{knowledge-events-ymwdv799.js → knowledge-events-ayta750w.js} +11 -10
- package/dist/cli/{knowledge-link-n1825n09.js → knowledge-link-7c7fjnzc.js} +5 -5
- package/dist/cli/{knowledge-store-nxm4xvvq.js → knowledge-store-q5axge8b.js} +6 -6
- package/dist/cli/{knowledge-validator-gtmq35k8.js → knowledge-validator-3rrbva2p.js} +8 -8
- package/dist/cli/{model-preflight-w85ecyxh.js → model-preflight-x9szw1v4.js} +1 -1
- package/dist/cli/{pending-delegations-zdgazhdf.js → pending-delegations-kc7tzxg9.js} +5 -3
- package/dist/cli/{pr-review-reentry-authorization-jgzb0pma.js → pr-review-reentry-authorization-vag5gh50.js} +32 -31
- package/dist/cli/{pr-subscriptions-pxv24d5k.js → pr-subscriptions-wbdw9a82.js} +5 -4
- package/dist/cli/{runner-fzgkhx6a.js → runner-p9wg6z34.js} +6 -6
- package/dist/cli/{scan-cursor-fasdj7kj.js → scan-cursor-4fjwtt1k.js} +7 -7
- package/dist/cli/{schema-3x28z3rp.js → schema-d0nbzj5k.js} +2 -2
- package/dist/cli/{scope-persistence-p8dnxfhx.js → scope-persistence-bckcbc8h.js} +10 -9
- package/dist/cli/{skill-generator-6tjyffgd.js → skill-generator-kebhevet.js} +15 -14
- package/dist/cli/{telemetry-3rh94wv3.js → telemetry-gpr9s3sm.js} +3 -1
- package/dist/cli/{worktree-collision-ownership-3bbn1n2r.js → worktree-collision-ownership-h8qswnrp.js} +6 -5
- package/dist/cli/{worktree-isolation-1470tnxc.js → worktree-isolation-q0kbmadz.js} +32 -31
- package/dist/config/context-window.d.ts +11 -4
- package/dist/config/evidence-schema.d.ts +6 -6
- package/dist/context-map/telemetry.d.ts +1 -1
- package/dist/health/learning-health.d.ts +356 -0
- package/dist/hooks/context-budget.d.ts +10 -1
- package/dist/hooks/curator.d.ts +2 -0
- package/dist/hooks/final-context-accounting.d.ts +2 -0
- package/dist/hooks/model-limits.d.ts +56 -25
- package/dist/hooks/skill-usage-pending.d.ts +1 -1
- package/dist/index.js +588 -587
- package/dist/observability/catalog.d.ts +2 -2
- package/dist/observability/ids.d.ts +17 -0
- package/dist/prm/trajectory-store.d.ts +1 -1
- package/dist/services/diagnose-service.d.ts +7 -0
- package/dist/services/status-service.d.ts +18 -0
- package/dist/telemetry.d.ts +52 -1
- package/dist/tools/context-status.d.ts +15 -1
- package/dist/tools/repo-graph/ontology.d.ts +6 -0
- package/dist/tools/repo-graph/pack-query.d.ts +36 -0
- package/dist/tools/repo-graph/types.d.ts +198 -1
- package/dist/tools/repo-graph.d.ts +5 -3
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-24bfn7h1.js +0 -66
- package/dist/cli/guardrail-explain-b3k9xrx9.js +0 -67
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
SWARM_WORKTREE_DIR_NAME,
|
|
15
15
|
init_constants
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-h3re5c78.js";
|
|
17
17
|
import {
|
|
18
18
|
log
|
|
19
19
|
} from "./index-zgwm4ryv.js";
|
|
@@ -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-bckcbc8h.js");
|
|
96
96
|
return realWrite(directory, taskId, files);
|
|
97
97
|
},
|
|
98
98
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readKnowledge,
|
|
4
4
|
transactKnowledge
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-3yh737hc.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-9fspg1xw.js";
|
|
13
13
|
import {
|
|
14
14
|
init_knowledge_types,
|
|
15
15
|
isActiveStatus
|
|
@@ -558,7 +558,7 @@ var init_tool_metadata = __esm(() => {
|
|
|
558
558
|
agents: ["architect"]
|
|
559
559
|
},
|
|
560
560
|
context_status: {
|
|
561
|
-
description: "report current context-window headroom for the active session \u2014 returns tokens-used, usageSource (provider|estimated), model-limit, usage-percent, threshold-state (none/warn/critical), model name, and provider. Pure read-only: no state mutation, no warning injection. Works whether context_budget.enabled is true or false.",
|
|
561
|
+
description: "report current context-window headroom for the active session \u2014 returns tokens-used, usageSource (provider|estimated), model-limit with provenance (modelLimitSource: host|override|provider_cap|native|fallback; modelLimitResolution: user_provider_model|user_model|user_default|live_model_limit|static_provider_cap|static_native|static_default; fallbackActive: true when the denominator came from a static table or the flat 128k default \u2014 treat headroom as uncertain), usage-percent, threshold-state (none/warn/critical), model name, and provider. Pure read-only: no state mutation, no warning injection. Works whether context_budget.enabled is true or false.",
|
|
562
562
|
agents: ["architect"]
|
|
563
563
|
},
|
|
564
564
|
search: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-rhc8jve7.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-9q6w7kke.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -94,69 +94,70 @@ import {
|
|
|
94
94
|
handleWriteRetroCommand,
|
|
95
95
|
normalizeSwarmCommandInput,
|
|
96
96
|
resolveCommand
|
|
97
|
-
} from "./index-
|
|
98
|
-
import"./index-
|
|
99
|
-
import"./index-
|
|
100
|
-
import"./index-
|
|
101
|
-
import"./index-
|
|
102
|
-
import"./index-
|
|
97
|
+
} from "./index-rnyt2z5r.js";
|
|
98
|
+
import"./index-xs15netk.js";
|
|
99
|
+
import"./index-wzx6atbv.js";
|
|
100
|
+
import"./index-py6bqwnb.js";
|
|
101
|
+
import"./index-9k3zc2t8.js";
|
|
102
|
+
import"./index-85qjc7b2.js";
|
|
103
103
|
import"./index-txdagbh7.js";
|
|
104
104
|
import"./index-134d35c1.js";
|
|
105
105
|
import"./index-nj6rmyeh.js";
|
|
106
|
-
import"./index-
|
|
107
|
-
import"./index-
|
|
108
|
-
import"./index-
|
|
106
|
+
import"./index-8bjv01t8.js";
|
|
107
|
+
import"./index-va1edd2n.js";
|
|
108
|
+
import"./index-gt8cxfbp.js";
|
|
109
109
|
import"./index-70ha9e09.js";
|
|
110
110
|
import"./index-c8s9a3zh.js";
|
|
111
111
|
import"./index-9ss2m4rs.js";
|
|
112
|
-
import"./index-
|
|
112
|
+
import"./index-q6gjwy7m.js";
|
|
113
113
|
import"./index-zsrtt42s.js";
|
|
114
|
-
import"./index-
|
|
114
|
+
import"./index-7qv869f0.js";
|
|
115
115
|
import"./index-3f7hqtgg.js";
|
|
116
|
-
import"./index-
|
|
117
|
-
import"./index-
|
|
118
|
-
import"./index-
|
|
116
|
+
import"./index-cn233hsy.js";
|
|
117
|
+
import"./index-kkfgygvn.js";
|
|
118
|
+
import"./index-s7w428r3.js";
|
|
119
119
|
import"./index-rtry5xyf.js";
|
|
120
|
-
import"./index-
|
|
121
|
-
import"./index-
|
|
122
|
-
import"./index-
|
|
120
|
+
import"./index-w699ekk9.js";
|
|
121
|
+
import"./index-fzkx24q5.js";
|
|
122
|
+
import"./index-sy5aeegg.js";
|
|
123
123
|
import"./index-ddszzne4.js";
|
|
124
|
-
import"./index-
|
|
125
|
-
import"./index-
|
|
126
|
-
import"./index-
|
|
124
|
+
import"./index-3055dgzp.js";
|
|
125
|
+
import"./index-zjvf7edj.js";
|
|
126
|
+
import"./index-4mm22fzj.js";
|
|
127
127
|
import"./index-556ja8an.js";
|
|
128
128
|
import"./index-4fwbbad3.js";
|
|
129
129
|
import"./index-b43rt5ph.js";
|
|
130
130
|
import"./index-q7sjgr1y.js";
|
|
131
|
-
import"./index-
|
|
132
|
-
import"./index-
|
|
133
|
-
import"./index-
|
|
131
|
+
import"./index-3yh737hc.js";
|
|
132
|
+
import"./index-5m7qjj29.js";
|
|
133
|
+
import"./index-yrar1ask.js";
|
|
134
134
|
import"./index-ebz97mks.js";
|
|
135
135
|
import"./index-n832052r.js";
|
|
136
136
|
import"./index-dtn0pne5.js";
|
|
137
137
|
import"./index-z6xqpmqg.js";
|
|
138
138
|
import"./index-r3mvsbtq.js";
|
|
139
|
-
import"./index-
|
|
139
|
+
import"./index-962jgzdq.js";
|
|
140
140
|
import {
|
|
141
141
|
init_schema,
|
|
142
142
|
stripKnownSwarmPrefix
|
|
143
|
-
} from "./index-
|
|
143
|
+
} from "./index-1f4n43yz.js";
|
|
144
144
|
import"./index-9e6fdz2h.js";
|
|
145
145
|
import"./index-4rhhvd1a.js";
|
|
146
|
+
import"./index-e75bzfgd.js";
|
|
146
147
|
import {
|
|
147
148
|
AGENT_TOOL_MAP,
|
|
148
149
|
ORCHESTRATOR_NAME,
|
|
149
150
|
init_constants
|
|
150
|
-
} from "./index-
|
|
151
|
+
} from "./index-h3re5c78.js";
|
|
151
152
|
import"./index-zjygnfay.js";
|
|
152
153
|
import"./index-ae75rja9.js";
|
|
153
|
-
import"./index-
|
|
154
|
-
import"./index-
|
|
154
|
+
import"./index-9fspg1xw.js";
|
|
155
|
+
import"./index-rq7k03rk.js";
|
|
155
156
|
import"./index-bk5tah7q.js";
|
|
156
|
-
import"./index-
|
|
157
|
-
import"./index-
|
|
157
|
+
import"./index-b5adxpy6.js";
|
|
158
|
+
import"./index-p39xem8b.js";
|
|
158
159
|
import"./index-ed5ykebp.js";
|
|
159
|
-
import"./index-
|
|
160
|
+
import"./index-dke4wzkn.js";
|
|
160
161
|
import"./index-7g4c7s5r.js";
|
|
161
162
|
import"./index-bpmtbmy9.js";
|
|
162
163
|
import"./index-zgwm4ryv.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
authorizeCuration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-s7w428r3.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-3yh737hc.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveKnowledgeStoreDir
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-9fspg1xw.js";
|
|
16
16
|
import {
|
|
17
17
|
atomicWriteFile
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-rq7k03rk.js";
|
|
19
19
|
import {
|
|
20
20
|
require_proper_lockfile
|
|
21
21
|
} from "./index-7g4c7s5r.js";
|
|
@@ -124,7 +124,7 @@ var SWARM_TEMP_GRAMMARS = [
|
|
|
124
124
|
"src/sdd/effective-spec.ts:1149",
|
|
125
125
|
"src/background/lane-output-store.ts:353",
|
|
126
126
|
"src/background/pending-delegations.ts:1070",
|
|
127
|
-
"src/background/delegation-health.ts:
|
|
127
|
+
"src/background/delegation-health.ts:391",
|
|
128
128
|
"src/tools/submit-phase-council-verdicts.ts:458",
|
|
129
129
|
"src/summaries/store.ts:46 (pre-#2035)"
|
|
130
130
|
],
|
|
@@ -250,10 +250,10 @@ var SWARM_TEMP_GRAMMARS = [
|
|
|
250
250
|
"src/context-map/capsule-persistence.ts:109",
|
|
251
251
|
"src/test-impact/history-store.ts:225",
|
|
252
252
|
"src/test-impact/history-store.ts:353",
|
|
253
|
-
"src/hooks/promotion-evidence-store.ts:
|
|
254
|
-
"src/hooks/skill-usage-log.ts:
|
|
255
|
-
"src/hooks/skill-usage-log.ts:
|
|
256
|
-
"src/hooks/skill-usage-pending.ts:
|
|
253
|
+
"src/hooks/promotion-evidence-store.ts:112",
|
|
254
|
+
"src/hooks/skill-usage-log.ts:1165",
|
|
255
|
+
"src/hooks/skill-usage-log.ts:1675",
|
|
256
|
+
"src/hooks/skill-usage-pending.ts:817",
|
|
257
257
|
"src/parallel/file-locks.ts:113",
|
|
258
258
|
"src/plan/ledger.ts:1302",
|
|
259
259
|
"src/plan/ledger.ts:1303"
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
PluginConfigSchema,
|
|
7
7
|
init_schema,
|
|
8
8
|
stripKnownSwarmPrefix
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-1f4n43yz.js";
|
|
10
10
|
import {
|
|
11
11
|
ALL_AGENT_NAMES,
|
|
12
12
|
init_constants
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-h3re5c78.js";
|
|
14
14
|
import {
|
|
15
15
|
log
|
|
16
16
|
} from "./index-zgwm4ryv.js";
|
|
@@ -3,14 +3,17 @@ import {
|
|
|
3
3
|
validateSwarmPath
|
|
4
4
|
} from "./index-dtn0pne5.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./index-
|
|
6
|
+
observeStoreHealth
|
|
7
|
+
} from "./index-e75bzfgd.js";
|
|
8
8
|
import {
|
|
9
9
|
withEvidenceLock
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-b5adxpy6.js";
|
|
11
|
+
import {
|
|
12
|
+
atomicWriteSwarmFileSync
|
|
13
|
+
} from "./index-p39xem8b.js";
|
|
11
14
|
import {
|
|
12
15
|
telemetry
|
|
13
|
-
} from "./index-
|
|
16
|
+
} from "./index-dke4wzkn.js";
|
|
14
17
|
import {
|
|
15
18
|
exports_external,
|
|
16
19
|
init_zod
|
|
@@ -861,9 +864,9 @@ function cleanupStaleLegacyArchive(directory) {
|
|
|
861
864
|
}
|
|
862
865
|
} catch {}
|
|
863
866
|
}
|
|
864
|
-
function emitHealthTelemetry(trigger, checkpoint) {
|
|
867
|
+
function emitHealthTelemetry(directory, trigger, checkpoint) {
|
|
865
868
|
const records = Object.values(checkpoint.records);
|
|
866
|
-
|
|
869
|
+
const healthPayload = {
|
|
867
870
|
trigger,
|
|
868
871
|
active_count: records.filter((r) => r.status === "active").length,
|
|
869
872
|
terminal_count: records.filter((r) => r.status !== "active").length,
|
|
@@ -874,6 +877,12 @@ function emitHealthTelemetry(trigger, checkpoint) {
|
|
|
874
877
|
`, "utf-8"),
|
|
875
878
|
limit_bytes: PR_SUBSCRIPTION_LIMITS.maxCheckpointBytes,
|
|
876
879
|
recovery_resets: checkpoint.maintenance.resets
|
|
880
|
+
};
|
|
881
|
+
telemetry.prSubscriptionHealth(healthPayload);
|
|
882
|
+
observeStoreHealth({
|
|
883
|
+
directory,
|
|
884
|
+
kind: "pr_subscription_health",
|
|
885
|
+
payload: healthPayload
|
|
877
886
|
});
|
|
878
887
|
}
|
|
879
888
|
var legacyOverLimitWarned = new Map;
|
|
@@ -1099,9 +1108,9 @@ async function bootstrapCheckpointFromLegacy(directory) {
|
|
|
1099
1108
|
{ kind: "migrate-complete" },
|
|
1100
1109
|
...archiveEvent ? [archiveEvent] : []
|
|
1101
1110
|
], checkpoint.sequence, checkpoint.maintenance);
|
|
1102
|
-
emitHealthTelemetry("migrate-complete", checkpoint);
|
|
1111
|
+
emitHealthTelemetry(directory, "migrate-complete", checkpoint);
|
|
1103
1112
|
if (archiveEvent)
|
|
1104
|
-
emitHealthTelemetry("archive", checkpoint);
|
|
1113
|
+
emitHealthTelemetry(directory, "archive", checkpoint);
|
|
1105
1114
|
}, PR_SUBSCRIPTION_LIMITS.bootstrapLockTimeoutMs);
|
|
1106
1115
|
} catch (err) {
|
|
1107
1116
|
log(`[pr-monitor] read-bootstrap skipped: ${storageErrorCode(err)}`);
|
|
@@ -1333,7 +1342,7 @@ function finalizeWrite(directory, loaded, opAudit) {
|
|
|
1333
1342
|
persistCheckpointWithAuditCompaction(directory, checkpoint, auditCompaction2);
|
|
1334
1343
|
flushAuditEvents(directory, [archiveEvent2], checkpoint.sequence, checkpoint.maintenance);
|
|
1335
1344
|
cleanupStaleLegacyArchive(directory);
|
|
1336
|
-
emitHealthTelemetry("archive", checkpoint);
|
|
1345
|
+
emitHealthTelemetry(directory, "archive", checkpoint);
|
|
1337
1346
|
return;
|
|
1338
1347
|
}
|
|
1339
1348
|
checkpoint.records = loaded.view;
|
|
@@ -1359,7 +1368,7 @@ function finalizeWrite(directory, loaded, opAudit) {
|
|
|
1359
1368
|
"corrupt-quarantine"
|
|
1360
1369
|
]) {
|
|
1361
1370
|
if (events.some((event) => event.kind === kind)) {
|
|
1362
|
-
emitHealthTelemetry(kind, checkpoint);
|
|
1371
|
+
emitHealthTelemetry(directory, kind, checkpoint);
|
|
1363
1372
|
}
|
|
1364
1373
|
}
|
|
1365
1374
|
}
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
detectWindowsWrites,
|
|
15
15
|
getSharedClassifierGuardrailBlock,
|
|
16
16
|
resolveWriteTargets
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-rnyt2z5r.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-wzx6atbv.js";
|
|
25
25
|
|
|
26
26
|
// src/services/guardrail-explain-service.ts
|
|
27
27
|
import path from "path";
|