opencode-swarm 7.103.0 → 7.103.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/{dispatch-kb69qw40.js → dispatch-e4ejrsz8.js} +1 -1
- package/dist/cli/{guardrail-explain-346nar9k.js → guardrail-explain-re6ffd1r.js} +3 -3
- package/dist/cli/{index-adz3nk9b.js → index-8w4d325g.js} +110 -2
- package/dist/cli/{index-a50d5e0h.js → index-jmh7av7a.js} +3 -3
- package/dist/cli/{index-gvf9afe8.js → index-w8rgb6re.js} +1 -1
- package/dist/cli/{index-j21pr24p.js → index-xtsxkeem.js} +8 -8
- package/dist/cli/index.js +2 -2
- package/dist/graph/types.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/lang/symbol-graph.d.ts +8 -1
- package/dist/tools/repo-graph/builder.d.ts +1 -1
- package/dist/tools/repo-graph/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-w8rgb6re.js";
|
|
5
|
+
import"./index-xtsxkeem.js";
|
|
6
6
|
import"./index-m9keg83x.js";
|
|
7
7
|
import"./index-ydgy7vg5.js";
|
|
8
8
|
import"./index-vwyjkzgs.js";
|
|
@@ -10,7 +10,7 @@ import"./index-f7nma02k.js";
|
|
|
10
10
|
import"./index-h0h4qjmc.js";
|
|
11
11
|
import"./index-ga7et2xw.js";
|
|
12
12
|
import"./index-k2rmw9sz.js";
|
|
13
|
-
import"./index-
|
|
13
|
+
import"./index-8w4d325g.js";
|
|
14
14
|
import"./index-v4fcn4tr.js";
|
|
15
15
|
import"./index-r8f89sm9.js";
|
|
16
16
|
import"./index-9b7qp18e.js";
|
|
@@ -76,9 +76,9 @@ class LanguageRegistry {
|
|
|
76
76
|
var LANGUAGE_REGISTRY = new LanguageRegistry;
|
|
77
77
|
LANGUAGE_REGISTRY.register({
|
|
78
78
|
id: "typescript",
|
|
79
|
-
displayName: "TypeScript
|
|
79
|
+
displayName: "TypeScript",
|
|
80
80
|
tier: 1,
|
|
81
|
-
extensions: [".ts", ".tsx"
|
|
81
|
+
extensions: [".ts", ".tsx"],
|
|
82
82
|
treeSitter: {
|
|
83
83
|
grammarId: "typescript",
|
|
84
84
|
wasmFile: "tree-sitter-typescript.wasm",
|
|
@@ -182,6 +182,114 @@ LANGUAGE_REGISTRY.register({
|
|
|
182
182
|
]
|
|
183
183
|
}
|
|
184
184
|
});
|
|
185
|
+
LANGUAGE_REGISTRY.register({
|
|
186
|
+
id: "javascript",
|
|
187
|
+
displayName: "JavaScript",
|
|
188
|
+
tier: 1,
|
|
189
|
+
extensions: [".js", ".jsx", ".mjs", ".cjs"],
|
|
190
|
+
treeSitter: {
|
|
191
|
+
grammarId: "javascript",
|
|
192
|
+
wasmFile: "tree-sitter-javascript.wasm",
|
|
193
|
+
commentNodes: ["comment", "line_comment", "block_comment"]
|
|
194
|
+
},
|
|
195
|
+
build: {
|
|
196
|
+
detectFiles: ["package.json"],
|
|
197
|
+
commands: [
|
|
198
|
+
{
|
|
199
|
+
name: "bun build",
|
|
200
|
+
cmd: "bun run build",
|
|
201
|
+
detectFile: "package.json",
|
|
202
|
+
priority: 10
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: "tsc",
|
|
206
|
+
cmd: "npx tsc --noEmit",
|
|
207
|
+
detectFile: "tsconfig.json",
|
|
208
|
+
priority: 9
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
name: "vite build",
|
|
212
|
+
cmd: "npx vite build",
|
|
213
|
+
detectFile: "vite.config.ts",
|
|
214
|
+
priority: 8
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
test: {
|
|
219
|
+
detectFiles: [
|
|
220
|
+
"package.json",
|
|
221
|
+
"vitest.config.ts",
|
|
222
|
+
"jest.config.js",
|
|
223
|
+
".mocharc.js",
|
|
224
|
+
".mocharc.json"
|
|
225
|
+
],
|
|
226
|
+
frameworks: [
|
|
227
|
+
{
|
|
228
|
+
name: "vitest",
|
|
229
|
+
detect: "vitest.config.ts",
|
|
230
|
+
cmd: "bun test",
|
|
231
|
+
priority: 10
|
|
232
|
+
},
|
|
233
|
+
{ name: "jest", detect: "jest.config.js", cmd: "npx jest", priority: 9 },
|
|
234
|
+
{
|
|
235
|
+
name: "bun:test",
|
|
236
|
+
detect: "bun.lock",
|
|
237
|
+
cmd: "bun test",
|
|
238
|
+
priority: 8
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
name: "mocha",
|
|
242
|
+
detect: ".mocharc.json",
|
|
243
|
+
cmd: "npx mocha",
|
|
244
|
+
priority: 7
|
|
245
|
+
}
|
|
246
|
+
]
|
|
247
|
+
},
|
|
248
|
+
lint: {
|
|
249
|
+
detectFiles: [
|
|
250
|
+
"biome.json",
|
|
251
|
+
"biome.jsonc",
|
|
252
|
+
".eslintrc.js",
|
|
253
|
+
".eslintrc.json"
|
|
254
|
+
],
|
|
255
|
+
linters: [
|
|
256
|
+
{
|
|
257
|
+
name: "biome",
|
|
258
|
+
detect: "biome.json",
|
|
259
|
+
cmd: "biome check --write .",
|
|
260
|
+
priority: 10
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
name: "eslint",
|
|
264
|
+
detect: ".eslintrc.js",
|
|
265
|
+
cmd: "npx eslint --fix .",
|
|
266
|
+
priority: 9
|
|
267
|
+
}
|
|
268
|
+
]
|
|
269
|
+
},
|
|
270
|
+
audit: {
|
|
271
|
+
detectFiles: ["package.json"],
|
|
272
|
+
command: "npm audit --json",
|
|
273
|
+
outputFormat: "json"
|
|
274
|
+
},
|
|
275
|
+
sast: { nativeRuleSet: "javascript", semgrepSupport: "ga" },
|
|
276
|
+
prompts: {
|
|
277
|
+
coderConstraints: [
|
|
278
|
+
"Use strict TypeScript; no implicit any or type assertions without justification",
|
|
279
|
+
"Prefer async/await over raw Promises; always handle rejections",
|
|
280
|
+
"Use const/let, never var; prefer immutable data structures",
|
|
281
|
+
"Follow existing import style (ESM); no require() in .ts files",
|
|
282
|
+
"Add JSDoc for all exported functions and types"
|
|
283
|
+
],
|
|
284
|
+
reviewerChecklist: [
|
|
285
|
+
"Verify no implicit any or unsafe type casts",
|
|
286
|
+
"Check async error handling \u2014 unhandled Promises are bugs",
|
|
287
|
+
"Confirm ESM import consistency (no mixed require/import)",
|
|
288
|
+
"Validate exported API surface matches declared types",
|
|
289
|
+
"Check for missing null/undefined guards on optional fields"
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
});
|
|
185
293
|
LANGUAGE_REGISTRY.register({
|
|
186
294
|
id: "python",
|
|
187
295
|
displayName: "Python",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-w8rgb6re.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
7
|
} from "./index-9zb70qfe.js";
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
handleWriteRetroCommand,
|
|
80
80
|
normalizeSwarmCommandInput,
|
|
81
81
|
resolveCommand
|
|
82
|
-
} from "./index-
|
|
82
|
+
} from "./index-xtsxkeem.js";
|
|
83
83
|
import"./index-m9keg83x.js";
|
|
84
84
|
import"./index-ydgy7vg5.js";
|
|
85
85
|
import"./index-vwyjkzgs.js";
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
stripKnownSwarmPrefix
|
|
92
92
|
} from "./index-ga7et2xw.js";
|
|
93
93
|
import"./index-k2rmw9sz.js";
|
|
94
|
-
import"./index-
|
|
94
|
+
import"./index-8w4d325g.js";
|
|
95
95
|
import"./index-v4fcn4tr.js";
|
|
96
96
|
import"./index-r8f89sm9.js";
|
|
97
97
|
import"./index-9b7qp18e.js";
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
_internals1 as _internals3,
|
|
124
124
|
isCommandAvailable,
|
|
125
125
|
tool
|
|
126
|
-
} from "./index-
|
|
126
|
+
} from "./index-8w4d325g.js";
|
|
127
127
|
import {
|
|
128
128
|
SandboxCapabilityProbe,
|
|
129
129
|
_internals,
|
|
@@ -912,7 +912,7 @@ var init_executor = __esm(() => {
|
|
|
912
912
|
// package.json
|
|
913
913
|
var package_default = {
|
|
914
914
|
name: "opencode-swarm",
|
|
915
|
-
version: "7.103.
|
|
915
|
+
version: "7.103.1",
|
|
916
916
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
917
917
|
main: "dist/index.js",
|
|
918
918
|
types: "dist/index.d.ts",
|
|
@@ -27971,7 +27971,7 @@ var DISPATCH_FRAMEWORK_MAP = {
|
|
|
27971
27971
|
};
|
|
27972
27972
|
async function detectTestFrameworkViaDispatch(cwd) {
|
|
27973
27973
|
try {
|
|
27974
|
-
const { pickBackend } = await import("./dispatch-
|
|
27974
|
+
const { pickBackend } = await import("./dispatch-e4ejrsz8.js");
|
|
27975
27975
|
const backend = await pickBackend(cwd);
|
|
27976
27976
|
if (!backend?.selectTestFramework)
|
|
27977
27977
|
return "none";
|
|
@@ -27987,7 +27987,7 @@ async function buildTestCommandViaDispatch(framework, scope, files, coverage, ba
|
|
|
27987
27987
|
if (framework === "none")
|
|
27988
27988
|
return null;
|
|
27989
27989
|
try {
|
|
27990
|
-
const { pickBackend } = await import("./dispatch-
|
|
27990
|
+
const { pickBackend } = await import("./dispatch-e4ejrsz8.js");
|
|
27991
27991
|
const backend = await pickBackend(baseDir);
|
|
27992
27992
|
if (backend?.buildTestCommand) {
|
|
27993
27993
|
const cmd = backend.buildTestCommand(framework, files, baseDir, {
|
|
@@ -28007,7 +28007,7 @@ async function parseTestOutputViaDispatch(framework, output, baseDir) {
|
|
|
28007
28007
|
if (framework === "none")
|
|
28008
28008
|
return null;
|
|
28009
28009
|
try {
|
|
28010
|
-
const { pickBackend } = await import("./dispatch-
|
|
28010
|
+
const { pickBackend } = await import("./dispatch-e4ejrsz8.js");
|
|
28011
28011
|
const backend = await pickBackend(baseDir);
|
|
28012
28012
|
if (!backend?.parseTestOutput)
|
|
28013
28013
|
return null;
|
|
@@ -33373,7 +33373,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
33373
33373
|
async function handleHelpCommand(ctx) {
|
|
33374
33374
|
const targetCommand = ctx.args.join(" ");
|
|
33375
33375
|
if (!targetCommand) {
|
|
33376
|
-
const { buildHelpText } = await import("./index-
|
|
33376
|
+
const { buildHelpText } = await import("./index-jmh7av7a.js");
|
|
33377
33377
|
return buildHelpText();
|
|
33378
33378
|
}
|
|
33379
33379
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -33382,7 +33382,7 @@ async function handleHelpCommand(ctx) {
|
|
|
33382
33382
|
return _internals47.buildDetailedHelp(resolved.key, resolved.entry);
|
|
33383
33383
|
}
|
|
33384
33384
|
const similar = _internals47.findSimilarCommands(targetCommand);
|
|
33385
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
33385
|
+
const { buildHelpText: fullHelp } = await import("./index-jmh7av7a.js");
|
|
33386
33386
|
if (similar.length > 0) {
|
|
33387
33387
|
return `Command '/swarm ${targetCommand}' not found.
|
|
33388
33388
|
|
|
@@ -33515,7 +33515,7 @@ var COMMAND_REGISTRY = {
|
|
|
33515
33515
|
},
|
|
33516
33516
|
"guardrail explain": {
|
|
33517
33517
|
handler: async (ctx) => {
|
|
33518
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
33518
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-re6ffd1r.js");
|
|
33519
33519
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
33520
33520
|
},
|
|
33521
33521
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
package/dist/cli/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
getPluginLockFilePaths,
|
|
8
8
|
package_default,
|
|
9
9
|
resolveCommand
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-xtsxkeem.js";
|
|
11
11
|
import"./index-m9keg83x.js";
|
|
12
12
|
import"./index-ydgy7vg5.js";
|
|
13
13
|
import"./index-vwyjkzgs.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
DEFAULT_AGENT_CONFIGS
|
|
18
18
|
} from "./index-ga7et2xw.js";
|
|
19
19
|
import"./index-k2rmw9sz.js";
|
|
20
|
-
import"./index-
|
|
20
|
+
import"./index-8w4d325g.js";
|
|
21
21
|
import"./index-v4fcn4tr.js";
|
|
22
22
|
import"./index-r8f89sm9.js";
|
|
23
23
|
import"./index-9b7qp18e.js";
|
package/dist/graph/types.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* All paths are RELATIVE to the workspace root and FORWARD-SLASH normalized
|
|
8
8
|
* for cross-platform comparison.
|
|
9
9
|
*/
|
|
10
|
-
export type ImportType = 'named' | 'default' | 'namespace' | 'sideeffect' | 'require';
|
|
10
|
+
export type ImportType = 'named' | 'default' | 'namespace' | 'sideeffect' | 'require' | 'type';
|
|
11
11
|
export interface ImportEdge {
|
|
12
12
|
/** Importing file (relative, forward-slash). */
|
|
13
13
|
source: string;
|