opencode-swarm 7.18.2 → 7.18.3
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/README.md +8 -0
- package/dist/cli/index.js +10 -5
- package/dist/commands/index.d.ts +1 -0
- package/dist/index.js +10 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -231,6 +231,14 @@ Core subcommands at a glance:
|
|
|
231
231
|
|
|
232
232
|
Use `/swarm help` to see all available commands categorized by function. Use `/swarm help <command>` for detailed usage information on a specific command.
|
|
233
233
|
|
|
234
|
+
> ⚠️ **Chat-typed `/swarm` is currently LLM-mediated.** The OpenCode runtime invokes the model unconditionally after the plugin handles a `command.execute.before` slash command (upstream issue [anomalyco/opencode#9306](https://github.com/anomalyco/opencode/issues/9306)). What you see in chat is the model's reformulation of the canonical handler output, which can drift on weak models or in long sessions. For deterministic, scriptable output, run the underlying command directly:
|
|
235
|
+
>
|
|
236
|
+
> ```bash
|
|
237
|
+
> bunx opencode-swarm run <subcommand> # e.g. bunx opencode-swarm run agents
|
|
238
|
+
> ```
|
|
239
|
+
>
|
|
240
|
+
> This is a temporary mitigation. A deterministic in-chat path (either a `swarm` MCP tool or upstream `noReply` support) is tracked separately.
|
|
241
|
+
|
|
234
242
|
Nine commands display a ⚠️ warning in help output because they share names with Claude Code built-in slash commands (e.g., `/plan`, `/reset`, `/status`). The warning reminds you to always use `/swarm <command>` — the bare CC command does something different and sometimes destructive. See [docs/commands.md#claude-code-command-conflicts](docs/commands.md#claude-code-command-conflicts) for the full conflict registry.
|
|
235
243
|
|
|
236
244
|
See [docs/commands.md](docs/commands.md) for the full command reference.
|
package/dist/cli/index.js
CHANGED
|
@@ -34,7 +34,7 @@ var package_default;
|
|
|
34
34
|
var init_package = __esm(() => {
|
|
35
35
|
package_default = {
|
|
36
36
|
name: "opencode-swarm",
|
|
37
|
-
version: "7.18.
|
|
37
|
+
version: "7.18.3",
|
|
38
38
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
39
39
|
main: "dist/index.js",
|
|
40
40
|
types: "dist/index.d.ts",
|
|
@@ -51909,6 +51909,7 @@ __export(exports_commands, {
|
|
|
51909
51909
|
createSwarmCommandHandler: () => createSwarmCommandHandler,
|
|
51910
51910
|
buildHelpText: () => buildHelpText,
|
|
51911
51911
|
VALID_COMMANDS: () => VALID_COMMANDS,
|
|
51912
|
+
LLM_MEDIATION_WARNING: () => LLM_MEDIATION_WARNING,
|
|
51912
51913
|
COMMAND_REGISTRY: () => COMMAND_REGISTRY,
|
|
51913
51914
|
COMMAND_NAME_SET: () => COMMAND_NAME_SET,
|
|
51914
51915
|
COMMAND_NAMES: () => COMMAND_NAMES
|
|
@@ -51916,7 +51917,7 @@ __export(exports_commands, {
|
|
|
51916
51917
|
import fs28 from "fs";
|
|
51917
51918
|
import path46 from "path";
|
|
51918
51919
|
function buildHelpText() {
|
|
51919
|
-
const lines = ["## Swarm Commands", ""];
|
|
51920
|
+
const lines = ["## Swarm Commands", "", LLM_MEDIATION_WARNING, ""];
|
|
51920
51921
|
const CATEGORIES = [
|
|
51921
51922
|
"core",
|
|
51922
51923
|
"agent",
|
|
@@ -52082,11 +52083,13 @@ ${text}`;
|
|
|
52082
52083
|
`;
|
|
52083
52084
|
text = welcomeMessage + text;
|
|
52084
52085
|
}
|
|
52085
|
-
output.parts
|
|
52086
|
-
|
|
52087
|
-
|
|
52086
|
+
output.parts.splice(0, output.parts.length, {
|
|
52087
|
+
type: "text",
|
|
52088
|
+
text
|
|
52089
|
+
});
|
|
52088
52090
|
};
|
|
52089
52091
|
}
|
|
52092
|
+
var LLM_MEDIATION_WARNING;
|
|
52090
52093
|
var init_commands = __esm(() => {
|
|
52091
52094
|
init_registry();
|
|
52092
52095
|
init_acknowledge_spec_drift();
|
|
@@ -52124,6 +52127,8 @@ var init_commands = __esm(() => {
|
|
|
52124
52127
|
init_sync_plan();
|
|
52125
52128
|
init_turbo();
|
|
52126
52129
|
init_write_retro2();
|
|
52130
|
+
LLM_MEDIATION_WARNING = "> \u26A0\uFE0F Chat-typed `/swarm` is LLM-mediated in current OpenCode (see anomalyco/opencode#9306).\n" + `> The text below is the canonical handler output, but the model may rephrase it before display.
|
|
52131
|
+
` + "> For deterministic output, run `bunx opencode-swarm run <subcommand>` from a terminal.";
|
|
52127
52132
|
});
|
|
52128
52133
|
|
|
52129
52134
|
// src/commands/registry.ts
|
package/dist/commands/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export { handleStatusCommand } from './status';
|
|
|
40
40
|
export { handleSyncPlanCommand } from './sync-plan';
|
|
41
41
|
export { handleTurboCommand } from './turbo';
|
|
42
42
|
export { handleWriteRetroCommand } from './write-retro';
|
|
43
|
+
export declare const LLM_MEDIATION_WARNING: string;
|
|
43
44
|
export declare function buildHelpText(): string;
|
|
44
45
|
/**
|
|
45
46
|
* Creates a command.execute.before handler for /swarm commands.
|
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var package_default;
|
|
|
33
33
|
var init_package = __esm(() => {
|
|
34
34
|
package_default = {
|
|
35
35
|
name: "opencode-swarm",
|
|
36
|
-
version: "7.18.
|
|
36
|
+
version: "7.18.3",
|
|
37
37
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
38
38
|
main: "dist/index.js",
|
|
39
39
|
types: "dist/index.d.ts",
|
|
@@ -61074,6 +61074,7 @@ __export(exports_commands, {
|
|
|
61074
61074
|
createSwarmCommandHandler: () => createSwarmCommandHandler,
|
|
61075
61075
|
buildHelpText: () => buildHelpText,
|
|
61076
61076
|
VALID_COMMANDS: () => VALID_COMMANDS,
|
|
61077
|
+
LLM_MEDIATION_WARNING: () => LLM_MEDIATION_WARNING,
|
|
61077
61078
|
COMMAND_REGISTRY: () => COMMAND_REGISTRY,
|
|
61078
61079
|
COMMAND_NAME_SET: () => COMMAND_NAME_SET,
|
|
61079
61080
|
COMMAND_NAMES: () => COMMAND_NAMES
|
|
@@ -61081,7 +61082,7 @@ __export(exports_commands, {
|
|
|
61081
61082
|
import fs37 from "node:fs";
|
|
61082
61083
|
import path55 from "node:path";
|
|
61083
61084
|
function buildHelpText() {
|
|
61084
|
-
const lines = ["## Swarm Commands", ""];
|
|
61085
|
+
const lines = ["## Swarm Commands", "", LLM_MEDIATION_WARNING, ""];
|
|
61085
61086
|
const CATEGORIES = [
|
|
61086
61087
|
"core",
|
|
61087
61088
|
"agent",
|
|
@@ -61247,11 +61248,13 @@ ${text}`;
|
|
|
61247
61248
|
`;
|
|
61248
61249
|
text = welcomeMessage + text;
|
|
61249
61250
|
}
|
|
61250
|
-
output.parts
|
|
61251
|
-
|
|
61252
|
-
|
|
61251
|
+
output.parts.splice(0, output.parts.length, {
|
|
61252
|
+
type: "text",
|
|
61253
|
+
text
|
|
61254
|
+
});
|
|
61253
61255
|
};
|
|
61254
61256
|
}
|
|
61257
|
+
var LLM_MEDIATION_WARNING;
|
|
61255
61258
|
var init_commands = __esm(() => {
|
|
61256
61259
|
init_registry();
|
|
61257
61260
|
init_acknowledge_spec_drift();
|
|
@@ -61289,6 +61292,8 @@ var init_commands = __esm(() => {
|
|
|
61289
61292
|
init_sync_plan();
|
|
61290
61293
|
init_turbo();
|
|
61291
61294
|
init_write_retro2();
|
|
61295
|
+
LLM_MEDIATION_WARNING = "> ⚠️ Chat-typed `/swarm` is LLM-mediated in current OpenCode (see anomalyco/opencode#9306).\n" + `> The text below is the canonical handler output, but the model may rephrase it before display.
|
|
61296
|
+
` + "> For deterministic output, run `bunx opencode-swarm run <subcommand>` from a terminal.";
|
|
61292
61297
|
});
|
|
61293
61298
|
|
|
61294
61299
|
// src/commands/registry.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.18.
|
|
3
|
+
"version": "7.18.3",
|
|
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",
|