opencode-swarm 7.90.0 → 7.90.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/dist/cli/{evidence-summary-service-5me91eq8.js → evidence-summary-service-mr9sns2d.js} +5 -5
- package/dist/cli/{gate-evidence-y8zn7fe2.js → gate-evidence-nphg8hay.js} +4 -4
- package/dist/cli/{guardrail-explain-han9f51y.js → guardrail-explain-w29j6dmx.js} +10 -10
- package/dist/cli/{index-mz2z7jtn.js → index-4gm78w6c.js} +13 -13
- package/dist/cli/{index-1ccnwh54.js → index-5hrexm02.js} +3 -3
- package/dist/cli/{index-bcp79s17.js → index-91qtsbce.js} +1 -1
- package/dist/cli/{index-q3265fxa.js → index-c5d6tgbs.js} +10 -10
- package/dist/cli/{index-prppjv2q.js → index-j49ge0mg.js} +1 -1
- package/dist/cli/{index-fjwwrwr5.js → index-kv4dd5c5.js} +1 -1
- package/dist/cli/{index-e7h9bb6v.js → index-mh1ej70w.js} +2 -2
- package/dist/cli/{index-vqyfscxd.js → index-sf08zj91.js} +1 -1
- package/dist/cli/{index-axwxkbdd.js → index-w7gkpmq8.js} +2 -2
- package/dist/cli/{index-p0ye10nd.js → index-xchgryg4.js} +10 -2
- package/dist/cli/{index-8y7qetpg.js → index-y1z6yaq4.js} +3 -3
- package/dist/cli/index.js +9 -9
- package/dist/cli/{knowledge-store-gsy6p46z.js → knowledge-store-eqans52j.js} +4 -4
- package/dist/cli/{pending-delegations-35fvcj7z.js → pending-delegations-shqbvfjc.js} +2 -2
- package/dist/cli/{pr-subscriptions-b18n1yd8.js → pr-subscriptions-2565fpsc.js} +3 -3
- package/dist/cli/{skill-generator-1hzfyhth.js → skill-generator-d0jzw6n2.js} +5 -5
- package/dist/cli/{telemetry-9bbyxrvn.js → telemetry-aa1ma1dr.js} +4 -2
- package/dist/index.js +11 -4
- package/dist/telemetry.d.ts +7 -0
- package/package.json +1 -1
package/dist/cli/{evidence-summary-service-5me91eq8.js → evidence-summary-service-mr9sns2d.js}
RENAMED
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
loadPlanJsonOnly,
|
|
7
7
|
mergeDurableGateEntriesFromEvidence,
|
|
8
8
|
readDurableGateEvidence
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
9
|
+
} from "./index-y1z6yaq4.js";
|
|
10
|
+
import"./index-mh1ej70w.js";
|
|
11
|
+
import"./index-kv4dd5c5.js";
|
|
12
12
|
import"./index-gn8n22th.js";
|
|
13
13
|
import"./index-jtqkh8jf.js";
|
|
14
14
|
import"./index-5e4e2hvv.js";
|
|
@@ -16,10 +16,10 @@ import"./index-p0arc26j.js";
|
|
|
16
16
|
import {
|
|
17
17
|
log
|
|
18
18
|
} from "./index-zgwm4ryv.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-91qtsbce.js";
|
|
20
20
|
import"./index-293f68mj.js";
|
|
21
21
|
import"./index-b9v501fr.js";
|
|
22
|
-
import"./index-
|
|
22
|
+
import"./index-xchgryg4.js";
|
|
23
23
|
import"./index-a76rekgs.js";
|
|
24
24
|
|
|
25
25
|
// src/services/evidence-summary-service.ts
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
readTaskEvidenceRaw,
|
|
10
10
|
recordAgentDispatch,
|
|
11
11
|
recordGateEvidence
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
12
|
+
} from "./index-mh1ej70w.js";
|
|
13
|
+
import"./index-kv4dd5c5.js";
|
|
14
|
+
import"./index-91qtsbce.js";
|
|
15
15
|
import"./index-293f68mj.js";
|
|
16
16
|
import"./index-b9v501fr.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-xchgryg4.js";
|
|
18
18
|
import"./index-a76rekgs.js";
|
|
19
19
|
export {
|
|
20
20
|
recordGateEvidence,
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-j49ge0mg.js";
|
|
5
|
+
import"./index-4gm78w6c.js";
|
|
6
6
|
import"./index-6tnmt41c.js";
|
|
7
7
|
import"./index-bm4f0nme.js";
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
8
|
+
import"./index-5hrexm02.js";
|
|
9
|
+
import"./index-w7gkpmq8.js";
|
|
10
10
|
import"./index-bywt2171.js";
|
|
11
11
|
import"./index-123s7kjc.js";
|
|
12
|
-
import"./index-
|
|
12
|
+
import"./index-y1z6yaq4.js";
|
|
13
13
|
import"./index-adz3nk9b.js";
|
|
14
14
|
import"./index-v4fcn4tr.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
15
|
+
import"./index-mh1ej70w.js";
|
|
16
|
+
import"./index-kv4dd5c5.js";
|
|
17
|
+
import"./index-sf08zj91.js";
|
|
18
18
|
import"./index-gn8n22th.js";
|
|
19
19
|
import"./index-jtqkh8jf.js";
|
|
20
20
|
import"./index-5e4e2hvv.js";
|
|
21
21
|
import"./index-p0arc26j.js";
|
|
22
22
|
import"./index-zgwm4ryv.js";
|
|
23
|
-
import"./index-
|
|
23
|
+
import"./index-91qtsbce.js";
|
|
24
24
|
import"./index-293f68mj.js";
|
|
25
25
|
import"./index-b9v501fr.js";
|
|
26
|
-
import"./index-
|
|
26
|
+
import"./index-xchgryg4.js";
|
|
27
27
|
import"./index-a76rekgs.js";
|
|
28
28
|
export {
|
|
29
29
|
handleGuardrailExplain
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
validateActionability,
|
|
21
21
|
validateActionableFields,
|
|
22
22
|
validateLesson
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-5hrexm02.js";
|
|
24
24
|
import {
|
|
25
25
|
appendKnowledge,
|
|
26
26
|
appendRejectedLesson,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
transactFile,
|
|
49
49
|
transactKnowledge,
|
|
50
50
|
writeLinkPointer
|
|
51
|
-
} from "./index-
|
|
51
|
+
} from "./index-w7gkpmq8.js";
|
|
52
52
|
import {
|
|
53
53
|
detectStraySwarmDirs,
|
|
54
54
|
readDoctorArtifact,
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
transientBackoff,
|
|
112
112
|
validateProjectRoot,
|
|
113
113
|
writeProjectedSpecSync
|
|
114
|
-
} from "./index-
|
|
114
|
+
} from "./index-y1z6yaq4.js";
|
|
115
115
|
import {
|
|
116
116
|
_internals as _internals2,
|
|
117
117
|
_internals1 as _internals3,
|
|
@@ -129,13 +129,13 @@ import {
|
|
|
129
129
|
} from "./index-v4fcn4tr.js";
|
|
130
130
|
import {
|
|
131
131
|
atomicWriteFile
|
|
132
|
-
} from "./index-
|
|
132
|
+
} from "./index-kv4dd5c5.js";
|
|
133
133
|
import {
|
|
134
134
|
buildCorrelationId,
|
|
135
135
|
listActive,
|
|
136
136
|
subscribe,
|
|
137
137
|
unsubscribe
|
|
138
|
-
} from "./index-
|
|
138
|
+
} from "./index-sf08zj91.js";
|
|
139
139
|
import {
|
|
140
140
|
readSwarmFileAsync,
|
|
141
141
|
safeHook,
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
import {
|
|
154
154
|
require_proper_lockfile,
|
|
155
155
|
tryAcquireLock
|
|
156
|
-
} from "./index-
|
|
156
|
+
} from "./index-91qtsbce.js";
|
|
157
157
|
import {
|
|
158
158
|
exports_external
|
|
159
159
|
} from "./index-293f68mj.js";
|
|
@@ -163,7 +163,7 @@ import {
|
|
|
163
163
|
} from "./index-b9v501fr.js";
|
|
164
164
|
import {
|
|
165
165
|
telemetry
|
|
166
|
-
} from "./index-
|
|
166
|
+
} from "./index-xchgryg4.js";
|
|
167
167
|
import {
|
|
168
168
|
__esm,
|
|
169
169
|
__export,
|
|
@@ -906,7 +906,7 @@ var init_executor = __esm(() => {
|
|
|
906
906
|
// package.json
|
|
907
907
|
var package_default = {
|
|
908
908
|
name: "opencode-swarm",
|
|
909
|
-
version: "7.90.
|
|
909
|
+
version: "7.90.1",
|
|
910
910
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
911
911
|
main: "dist/index.js",
|
|
912
912
|
types: "dist/index.d.ts",
|
|
@@ -4856,7 +4856,7 @@ function hasActiveEpicMode(sessionID) {
|
|
|
4856
4856
|
async function rehydratePrSubscriptions(sessionID, directory) {
|
|
4857
4857
|
const map = new Map;
|
|
4858
4858
|
try {
|
|
4859
|
-
const { listActive: listActive2 } = await import("./pr-subscriptions-
|
|
4859
|
+
const { listActive: listActive2 } = await import("./pr-subscriptions-2565fpsc.js");
|
|
4860
4860
|
const records = await listActive2(directory);
|
|
4861
4861
|
for (const record of records) {
|
|
4862
4862
|
if (record.sessionID !== sessionID)
|
|
@@ -16138,7 +16138,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
16138
16138
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
16139
16139
|
}
|
|
16140
16140
|
async function handleEvidenceSummaryCommand(directory) {
|
|
16141
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
16141
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-mr9sns2d.js");
|
|
16142
16142
|
const artifact = await buildEvidenceSummary(directory);
|
|
16143
16143
|
if (!artifact) {
|
|
16144
16144
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -30387,7 +30387,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
30387
30387
|
async function handleHelpCommand(ctx) {
|
|
30388
30388
|
const targetCommand = ctx.args.join(" ");
|
|
30389
30389
|
if (!targetCommand) {
|
|
30390
|
-
const { buildHelpText } = await import("./index-
|
|
30390
|
+
const { buildHelpText } = await import("./index-c5d6tgbs.js");
|
|
30391
30391
|
return buildHelpText();
|
|
30392
30392
|
}
|
|
30393
30393
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -30396,7 +30396,7 @@ async function handleHelpCommand(ctx) {
|
|
|
30396
30396
|
return _internals45.buildDetailedHelp(resolved.key, resolved.entry);
|
|
30397
30397
|
}
|
|
30398
30398
|
const similar = _internals45.findSimilarCommands(targetCommand);
|
|
30399
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
30399
|
+
const { buildHelpText: fullHelp } = await import("./index-c5d6tgbs.js");
|
|
30400
30400
|
if (similar.length > 0) {
|
|
30401
30401
|
return `Command '/swarm ${targetCommand}' not found.
|
|
30402
30402
|
|
|
@@ -30529,7 +30529,7 @@ var COMMAND_REGISTRY = {
|
|
|
30529
30529
|
},
|
|
30530
30530
|
"guardrail explain": {
|
|
30531
30531
|
handler: async (ctx) => {
|
|
30532
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
30532
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-w29j6dmx.js");
|
|
30533
30533
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
30534
30534
|
},
|
|
30535
30535
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -10,17 +10,17 @@ import {
|
|
|
10
10
|
resolveSwarmRejectedPath,
|
|
11
11
|
rewriteKnowledge,
|
|
12
12
|
transactKnowledge
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-w7gkpmq8.js";
|
|
14
14
|
import {
|
|
15
15
|
atomicWriteFile
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-kv4dd5c5.js";
|
|
17
17
|
import {
|
|
18
18
|
init_logger,
|
|
19
19
|
warn
|
|
20
20
|
} from "./index-zgwm4ryv.js";
|
|
21
21
|
import {
|
|
22
22
|
require_proper_lockfile
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-91qtsbce.js";
|
|
24
24
|
import {
|
|
25
25
|
__require,
|
|
26
26
|
__toESM
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-j49ge0mg.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
7
|
} from "./index-gg589mfw.js";
|
|
@@ -78,32 +78,32 @@ import {
|
|
|
78
78
|
handleWriteRetroCommand,
|
|
79
79
|
normalizeSwarmCommandInput,
|
|
80
80
|
resolveCommand
|
|
81
|
-
} from "./index-
|
|
81
|
+
} from "./index-4gm78w6c.js";
|
|
82
82
|
import"./index-6tnmt41c.js";
|
|
83
83
|
import"./index-bm4f0nme.js";
|
|
84
|
-
import"./index-
|
|
85
|
-
import"./index-
|
|
84
|
+
import"./index-5hrexm02.js";
|
|
85
|
+
import"./index-w7gkpmq8.js";
|
|
86
86
|
import"./index-bywt2171.js";
|
|
87
87
|
import {
|
|
88
88
|
AGENT_TOOL_MAP,
|
|
89
89
|
ORCHESTRATOR_NAME,
|
|
90
90
|
stripKnownSwarmPrefix
|
|
91
91
|
} from "./index-123s7kjc.js";
|
|
92
|
-
import"./index-
|
|
92
|
+
import"./index-y1z6yaq4.js";
|
|
93
93
|
import"./index-adz3nk9b.js";
|
|
94
94
|
import"./index-v4fcn4tr.js";
|
|
95
|
-
import"./index-
|
|
96
|
-
import"./index-
|
|
97
|
-
import"./index-
|
|
95
|
+
import"./index-mh1ej70w.js";
|
|
96
|
+
import"./index-kv4dd5c5.js";
|
|
97
|
+
import"./index-sf08zj91.js";
|
|
98
98
|
import"./index-gn8n22th.js";
|
|
99
99
|
import"./index-jtqkh8jf.js";
|
|
100
100
|
import"./index-5e4e2hvv.js";
|
|
101
101
|
import"./index-p0arc26j.js";
|
|
102
102
|
import"./index-zgwm4ryv.js";
|
|
103
|
-
import"./index-
|
|
103
|
+
import"./index-91qtsbce.js";
|
|
104
104
|
import"./index-293f68mj.js";
|
|
105
105
|
import"./index-b9v501fr.js";
|
|
106
|
-
import"./index-
|
|
106
|
+
import"./index-xchgryg4.js";
|
|
107
107
|
import"./index-a76rekgs.js";
|
|
108
108
|
// src/commands/command-names.ts
|
|
109
109
|
var COMMAND_NAMES = Object.freeze(Object.keys(COMMAND_REGISTRY));
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
atomicWriteFile,
|
|
4
4
|
taskEvidencePath,
|
|
5
5
|
withTaskEvidenceLock
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-kv4dd5c5.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_external
|
|
9
9
|
} from "./index-293f68mj.js";
|
|
10
10
|
import {
|
|
11
11
|
telemetry
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-xchgryg4.js";
|
|
13
13
|
|
|
14
14
|
// src/gate-evidence.ts
|
|
15
15
|
import { mkdirSync, readFileSync, realpathSync } from "fs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
atomicWriteFile
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-kv4dd5c5.js";
|
|
5
5
|
import {
|
|
6
6
|
readCachedParsedFile
|
|
7
7
|
} from "./index-jtqkh8jf.js";
|
|
8
8
|
import {
|
|
9
9
|
require_proper_lockfile
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-91qtsbce.js";
|
|
11
11
|
import {
|
|
12
12
|
__toESM
|
|
13
13
|
} from "./index-a76rekgs.js";
|
|
@@ -8,10 +8,13 @@ var _writeStream = null;
|
|
|
8
8
|
var _projectDirectory = null;
|
|
9
9
|
var _listeners = [];
|
|
10
10
|
var _disabled = false;
|
|
11
|
+
var _emitCount = 0;
|
|
12
|
+
var ROTATION_CHECK_INTERVAL = 50;
|
|
11
13
|
function resetTelemetryForTesting() {
|
|
12
14
|
_disabled = false;
|
|
13
15
|
_projectDirectory = null;
|
|
14
16
|
_listeners.length = 0;
|
|
17
|
+
_emitCount = 0;
|
|
15
18
|
if (_writeStream !== null) {
|
|
16
19
|
_writeStream.end();
|
|
17
20
|
_writeStream = null;
|
|
@@ -59,6 +62,11 @@ function emit(event, data) {
|
|
|
59
62
|
listener(event, data);
|
|
60
63
|
} catch {}
|
|
61
64
|
}
|
|
65
|
+
_emitCount++;
|
|
66
|
+
if (_emitCount >= ROTATION_CHECK_INTERVAL) {
|
|
67
|
+
_emitCount = 0;
|
|
68
|
+
_internals.rotateTelemetryIfNeeded();
|
|
69
|
+
}
|
|
62
70
|
} catch {}
|
|
63
71
|
}
|
|
64
72
|
function addTelemetryListener(callback) {
|
|
@@ -217,6 +225,6 @@ var telemetry = {
|
|
|
217
225
|
});
|
|
218
226
|
}
|
|
219
227
|
};
|
|
220
|
-
var _internals = { telemetry, emit };
|
|
228
|
+
var _internals = { telemetry, emit, rotateTelemetryIfNeeded };
|
|
221
229
|
|
|
222
|
-
export { resetTelemetryForTesting, initTelemetry, emit, addTelemetryListener, rotateTelemetryIfNeeded, telemetry, _internals };
|
|
230
|
+
export { ROTATION_CHECK_INTERVAL, resetTelemetryForTesting, initTelemetry, emit, addTelemetryListener, rotateTelemetryIfNeeded, telemetry, _internals };
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
readTaskEvidence,
|
|
5
5
|
readTaskEvidenceRaw,
|
|
6
6
|
sanitizeTaskId
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-mh1ej70w.js";
|
|
8
8
|
import {
|
|
9
9
|
readSwarmFileAsync,
|
|
10
10
|
validateSwarmPath
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./index-zgwm4ryv.js";
|
|
21
21
|
import {
|
|
22
22
|
withEvidenceLock
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-91qtsbce.js";
|
|
24
24
|
import {
|
|
25
25
|
ZodError,
|
|
26
26
|
exports_external
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./index-b9v501fr.js";
|
|
32
32
|
import {
|
|
33
33
|
emit
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-xchgryg4.js";
|
|
35
35
|
|
|
36
36
|
// src/plan/manager.ts
|
|
37
37
|
import {
|
package/dist/cli/index.js
CHANGED
|
@@ -7,30 +7,30 @@ import {
|
|
|
7
7
|
getPluginLockFilePaths,
|
|
8
8
|
package_default,
|
|
9
9
|
resolveCommand
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-4gm78w6c.js";
|
|
11
11
|
import"./index-6tnmt41c.js";
|
|
12
12
|
import"./index-bm4f0nme.js";
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
13
|
+
import"./index-5hrexm02.js";
|
|
14
|
+
import"./index-w7gkpmq8.js";
|
|
15
15
|
import"./index-bywt2171.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_AGENT_CONFIGS
|
|
18
18
|
} from "./index-123s7kjc.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-y1z6yaq4.js";
|
|
20
20
|
import"./index-adz3nk9b.js";
|
|
21
21
|
import"./index-v4fcn4tr.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
22
|
+
import"./index-mh1ej70w.js";
|
|
23
|
+
import"./index-kv4dd5c5.js";
|
|
24
|
+
import"./index-sf08zj91.js";
|
|
25
25
|
import"./index-gn8n22th.js";
|
|
26
26
|
import"./index-jtqkh8jf.js";
|
|
27
27
|
import"./index-5e4e2hvv.js";
|
|
28
28
|
import"./index-p0arc26j.js";
|
|
29
29
|
import"./index-zgwm4ryv.js";
|
|
30
|
-
import"./index-
|
|
30
|
+
import"./index-91qtsbce.js";
|
|
31
31
|
import"./index-293f68mj.js";
|
|
32
32
|
import"./index-b9v501fr.js";
|
|
33
|
-
import"./index-
|
|
33
|
+
import"./index-xchgryg4.js";
|
|
34
34
|
import"./index-a76rekgs.js";
|
|
35
35
|
|
|
36
36
|
// src/cli/index.ts
|
|
@@ -31,12 +31,12 @@ import {
|
|
|
31
31
|
transactFile,
|
|
32
32
|
transactKnowledge,
|
|
33
33
|
wordBigrams
|
|
34
|
-
} from "./index-
|
|
35
|
-
import"./index-
|
|
34
|
+
} from "./index-w7gkpmq8.js";
|
|
35
|
+
import"./index-kv4dd5c5.js";
|
|
36
36
|
import"./index-jtqkh8jf.js";
|
|
37
|
-
import"./index-
|
|
37
|
+
import"./index-91qtsbce.js";
|
|
38
38
|
import"./index-b9v501fr.js";
|
|
39
|
-
import"./index-
|
|
39
|
+
import"./index-xchgryg4.js";
|
|
40
40
|
import"./index-a76rekgs.js";
|
|
41
41
|
export {
|
|
42
42
|
wordBigrams,
|
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
} from "./index-zgwm4ryv.js";
|
|
12
12
|
import {
|
|
13
13
|
withEvidenceLock
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-91qtsbce.js";
|
|
15
15
|
import {
|
|
16
16
|
exports_external
|
|
17
17
|
} from "./index-293f68mj.js";
|
|
18
18
|
import"./index-b9v501fr.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-xchgryg4.js";
|
|
20
20
|
import"./index-a76rekgs.js";
|
|
21
21
|
|
|
22
22
|
// src/background/pending-delegations.ts
|
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
sweepStale,
|
|
10
10
|
unsubscribe,
|
|
11
11
|
updateSnapshot
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-sf08zj91.js";
|
|
13
13
|
import"./index-gn8n22th.js";
|
|
14
14
|
import"./index-jtqkh8jf.js";
|
|
15
15
|
import"./index-5e4e2hvv.js";
|
|
16
16
|
import"./index-p0arc26j.js";
|
|
17
17
|
import"./index-zgwm4ryv.js";
|
|
18
|
-
import"./index-
|
|
18
|
+
import"./index-91qtsbce.js";
|
|
19
19
|
import"./index-293f68mj.js";
|
|
20
20
|
import"./index-b9v501fr.js";
|
|
21
|
-
import"./index-
|
|
21
|
+
import"./index-xchgryg4.js";
|
|
22
22
|
import"./index-a76rekgs.js";
|
|
23
23
|
export {
|
|
24
24
|
updateSnapshot,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
retireSkill,
|
|
23
23
|
sanitizeSlug,
|
|
24
24
|
selectCandidateEntries
|
|
25
|
-
} from "./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
25
|
+
} from "./index-5hrexm02.js";
|
|
26
|
+
import"./index-w7gkpmq8.js";
|
|
27
|
+
import"./index-kv4dd5c5.js";
|
|
28
28
|
import"./index-jtqkh8jf.js";
|
|
29
29
|
import"./index-zgwm4ryv.js";
|
|
30
|
-
import"./index-
|
|
30
|
+
import"./index-91qtsbce.js";
|
|
31
31
|
import"./index-b9v501fr.js";
|
|
32
|
-
import"./index-
|
|
32
|
+
import"./index-xchgryg4.js";
|
|
33
33
|
import"./index-a76rekgs.js";
|
|
34
34
|
export {
|
|
35
35
|
selectCandidateEntries,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
+
ROTATION_CHECK_INTERVAL,
|
|
3
4
|
_internals,
|
|
4
5
|
addTelemetryListener,
|
|
5
6
|
emit,
|
|
@@ -7,7 +8,7 @@ import {
|
|
|
7
8
|
resetTelemetryForTesting,
|
|
8
9
|
rotateTelemetryIfNeeded,
|
|
9
10
|
telemetry
|
|
10
|
-
} from "./index-
|
|
11
|
+
} from "./index-xchgryg4.js";
|
|
11
12
|
import"./index-a76rekgs.js";
|
|
12
13
|
export {
|
|
13
14
|
telemetry,
|
|
@@ -16,5 +17,6 @@ export {
|
|
|
16
17
|
initTelemetry,
|
|
17
18
|
emit,
|
|
18
19
|
addTelemetryListener,
|
|
19
|
-
_internals
|
|
20
|
+
_internals,
|
|
21
|
+
ROTATION_CHECK_INTERVAL
|
|
20
22
|
};
|
package/dist/index.js
CHANGED
|
@@ -69,7 +69,7 @@ var package_default;
|
|
|
69
69
|
var init_package = __esm(() => {
|
|
70
70
|
package_default = {
|
|
71
71
|
name: "opencode-swarm",
|
|
72
|
-
version: "7.90.
|
|
72
|
+
version: "7.90.1",
|
|
73
73
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
74
74
|
main: "dist/index.js",
|
|
75
75
|
types: "dist/index.d.ts",
|
|
@@ -18786,7 +18786,8 @@ __export(exports_telemetry, {
|
|
|
18786
18786
|
initTelemetry: () => initTelemetry,
|
|
18787
18787
|
emit: () => emit,
|
|
18788
18788
|
addTelemetryListener: () => addTelemetryListener,
|
|
18789
|
-
_internals: () => _internals5
|
|
18789
|
+
_internals: () => _internals5,
|
|
18790
|
+
ROTATION_CHECK_INTERVAL: () => ROTATION_CHECK_INTERVAL
|
|
18790
18791
|
});
|
|
18791
18792
|
import * as fs6 from "node:fs";
|
|
18792
18793
|
import { createWriteStream } from "node:fs";
|
|
@@ -18796,6 +18797,7 @@ function resetTelemetryForTesting() {
|
|
|
18796
18797
|
_disabled = false;
|
|
18797
18798
|
_projectDirectory = null;
|
|
18798
18799
|
_listeners.length = 0;
|
|
18800
|
+
_emitCount = 0;
|
|
18799
18801
|
if (_writeStream !== null) {
|
|
18800
18802
|
_writeStream.end();
|
|
18801
18803
|
_writeStream = null;
|
|
@@ -18843,6 +18845,11 @@ function emit(event, data) {
|
|
|
18843
18845
|
listener(event, data);
|
|
18844
18846
|
} catch {}
|
|
18845
18847
|
}
|
|
18848
|
+
_emitCount++;
|
|
18849
|
+
if (_emitCount >= ROTATION_CHECK_INTERVAL) {
|
|
18850
|
+
_emitCount = 0;
|
|
18851
|
+
_internals5.rotateTelemetryIfNeeded();
|
|
18852
|
+
}
|
|
18846
18853
|
} catch {}
|
|
18847
18854
|
}
|
|
18848
18855
|
function addTelemetryListener(callback) {
|
|
@@ -18873,7 +18880,7 @@ function rotateTelemetryIfNeeded(maxBytes = 10 * 1024 * 1024) {
|
|
|
18873
18880
|
}
|
|
18874
18881
|
} catch {}
|
|
18875
18882
|
}
|
|
18876
|
-
var _writeStream = null, _projectDirectory = null, _listeners, _disabled = false, telemetry, _internals5;
|
|
18883
|
+
var _writeStream = null, _projectDirectory = null, _listeners, _disabled = false, _emitCount = 0, ROTATION_CHECK_INTERVAL = 50, telemetry, _internals5;
|
|
18877
18884
|
var init_telemetry = __esm(() => {
|
|
18878
18885
|
_listeners = [];
|
|
18879
18886
|
telemetry = {
|
|
@@ -19004,7 +19011,7 @@ var init_telemetry = __esm(() => {
|
|
|
19004
19011
|
});
|
|
19005
19012
|
}
|
|
19006
19013
|
};
|
|
19007
|
-
_internals5 = { telemetry, emit };
|
|
19014
|
+
_internals5 = { telemetry, emit, rotateTelemetryIfNeeded };
|
|
19008
19015
|
});
|
|
19009
19016
|
|
|
19010
19017
|
// src/turbo/epic/state.ts
|
package/dist/telemetry.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export type TelemetryEvent = 'session_started' | 'session_ended' | 'agent_activated' | 'delegation_begin' | 'delegation_end' | 'task_state_changed' | 'gate_passed' | 'gate_failed' | 'gate_parse_error' | 'phase_changed' | 'budget_updated' | 'model_fallback' | 'hard_limit_hit' | 'revision_limit_hit' | 'loop_detected' | 'scope_violation' | 'qa_skip_violation' | 'heartbeat' | 'turbo_mode_changed' | 'auto_oversight_escalation' | 'environment_detected' | 'evidence_lock_acquired' | 'evidence_lock_contended' | 'evidence_lock_stale_recovered' | 'plan_ledger_cas_retry' | 'plan_md_write_failed' | 'snapshot_failed' | 'prm_pattern_detected' | 'prm_course_correction_injected' | 'prm_escalation_triggered' | 'prm_hard_stop';
|
|
2
2
|
export type TelemetryListener = (event: TelemetryEvent, data: Record<string, unknown>) => void;
|
|
3
|
+
/**
|
|
4
|
+
* Number of emits between rotation checks. 50 keeps the overhead at one
|
|
5
|
+
* `statSync` per 50 telemetry writes (~once per few seconds in a busy
|
|
6
|
+
* session, roughly once per minute in a quiet one).
|
|
7
|
+
*/
|
|
8
|
+
export declare const ROTATION_CHECK_INTERVAL = 50;
|
|
3
9
|
/** @internal - For testing only */
|
|
4
10
|
export declare function resetTelemetryForTesting(): void;
|
|
5
11
|
/**
|
|
@@ -69,4 +75,5 @@ export declare const telemetry: {
|
|
|
69
75
|
export declare const _internals: {
|
|
70
76
|
telemetry: typeof telemetry;
|
|
71
77
|
emit: typeof emit;
|
|
78
|
+
rotateTelemetryIfNeeded: typeof rotateTelemetryIfNeeded;
|
|
72
79
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.90.
|
|
3
|
+
"version": "7.90.1",
|
|
4
4
|
"description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|