opencode-swarm 6.84.1 → 6.84.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/dist/cli/index.js +14 -0
- package/dist/commands/registry.d.ts +4 -0
- package/dist/index.js +9 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -44854,6 +44854,10 @@ var COMMAND_REGISTRY = {
|
|
|
44854
44854
|
handler: (ctx) => handleDiagnoseCommand(ctx.directory, ctx.args),
|
|
44855
44855
|
description: "Run health check on swarm state"
|
|
44856
44856
|
},
|
|
44857
|
+
diagnosis: {
|
|
44858
|
+
handler: (ctx) => handleDiagnoseCommand(ctx.directory, ctx.args),
|
|
44859
|
+
description: "Run health check on swarm state"
|
|
44860
|
+
},
|
|
44857
44861
|
preflight: {
|
|
44858
44862
|
handler: (ctx) => handlePreflightCommand(ctx.directory, ctx.args),
|
|
44859
44863
|
description: "Run preflight automation checks"
|
|
@@ -45068,6 +45072,7 @@ var CONFIG_DIR = path33.join(process.env.XDG_CONFIG_HOME || path33.join(os7.home
|
|
|
45068
45072
|
var OPENCODE_CONFIG_PATH = path33.join(CONFIG_DIR, "opencode.json");
|
|
45069
45073
|
var PLUGIN_CONFIG_PATH = path33.join(CONFIG_DIR, "opencode-swarm.json");
|
|
45070
45074
|
var PROMPTS_DIR = path33.join(CONFIG_DIR, "opencode-swarm");
|
|
45075
|
+
var OPENCODE_PLUGIN_CACHE_PATH = path33.join(process.env.XDG_CACHE_HOME || path33.join(os7.homedir(), ".cache"), "opencode", "packages", "opencode-swarm@latest");
|
|
45071
45076
|
function ensureDir(dir) {
|
|
45072
45077
|
if (!fs23.existsSync(dir)) {
|
|
45073
45078
|
fs23.mkdirSync(dir, { recursive: true });
|
|
@@ -45122,6 +45127,15 @@ async function install() {
|
|
|
45122
45127
|
saveJson(OPENCODE_CONFIG_PATH, opencodeConfig);
|
|
45123
45128
|
console.log("\u2713 Added opencode-swarm to OpenCode plugins");
|
|
45124
45129
|
console.log("\u2713 Disabled default OpenCode agents (explore, general)");
|
|
45130
|
+
try {
|
|
45131
|
+
if (fs23.existsSync(OPENCODE_PLUGIN_CACHE_PATH)) {
|
|
45132
|
+
fs23.rmSync(OPENCODE_PLUGIN_CACHE_PATH, { recursive: true, force: true });
|
|
45133
|
+
console.log("\u2713 Cleared opencode plugin cache (next start will fetch latest)");
|
|
45134
|
+
}
|
|
45135
|
+
} catch {
|
|
45136
|
+
console.warn("\u26A0 Could not clear opencode plugin cache \u2014 you may need to delete it manually:");
|
|
45137
|
+
console.warn(` ${OPENCODE_PLUGIN_CACHE_PATH}`);
|
|
45138
|
+
}
|
|
45125
45139
|
if (!fs23.existsSync(PLUGIN_CONFIG_PATH)) {
|
|
45126
45140
|
const defaultConfig = {
|
|
45127
45141
|
agents: {
|
|
@@ -68,6 +68,10 @@ export declare const COMMAND_REGISTRY: {
|
|
|
68
68
|
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
69
69
|
readonly description: "Run health check on swarm state";
|
|
70
70
|
};
|
|
71
|
+
readonly diagnosis: {
|
|
72
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
73
|
+
readonly description: "Run health check on swarm state";
|
|
74
|
+
};
|
|
71
75
|
readonly preflight: {
|
|
72
76
|
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
73
77
|
readonly description: "Run preflight automation checks";
|
package/dist/index.js
CHANGED
|
@@ -53956,6 +53956,10 @@ var init_registry = __esm(() => {
|
|
|
53956
53956
|
handler: (ctx) => handleDiagnoseCommand(ctx.directory, ctx.args),
|
|
53957
53957
|
description: "Run health check on swarm state"
|
|
53958
53958
|
},
|
|
53959
|
+
diagnosis: {
|
|
53960
|
+
handler: (ctx) => handleDiagnoseCommand(ctx.directory, ctx.args),
|
|
53961
|
+
description: "Run health check on swarm state"
|
|
53962
|
+
},
|
|
53959
53963
|
preflight: {
|
|
53960
53964
|
handler: (ctx) => handlePreflightCommand(ctx.directory, ctx.args),
|
|
53961
53965
|
description: "Run preflight automation checks"
|
|
@@ -88378,7 +88382,7 @@ var OpenCodeSwarm = async (ctx) => {
|
|
|
88378
88382
|
...opencodeConfig.command || {},
|
|
88379
88383
|
swarm: {
|
|
88380
88384
|
template: "/swarm $ARGUMENTS",
|
|
88381
|
-
description: "Swarm management commands: /swarm [status|plan|agents|history|config|evidence|handoff|archive|diagnose|preflight|sync-plan|benchmark|export|reset|rollback|retrieve|clarify|analyze|specify|brainstorm|qa-gates|dark-matter|knowledge|curate|turbo|full-auto|write-retro|reset-session|simulate|promote|checkpoint|acknowledge-spec-drift|doctor-tools|close]"
|
|
88385
|
+
description: "Swarm management commands: /swarm [status|plan|agents|history|config|evidence|handoff|archive|diagnose|diagnosis|preflight|sync-plan|benchmark|export|reset|rollback|retrieve|clarify|analyze|specify|brainstorm|qa-gates|dark-matter|knowledge|curate|turbo|full-auto|write-retro|reset-session|simulate|promote|checkpoint|acknowledge-spec-drift|doctor-tools|close]"
|
|
88382
88386
|
},
|
|
88383
88387
|
"swarm-status": {
|
|
88384
88388
|
template: "/swarm status",
|
|
@@ -88416,6 +88420,10 @@ var OpenCodeSwarm = async (ctx) => {
|
|
|
88416
88420
|
template: "/swarm diagnose",
|
|
88417
88421
|
description: "Use /swarm diagnose to run health checks on swarm state"
|
|
88418
88422
|
},
|
|
88423
|
+
"swarm-diagnosis": {
|
|
88424
|
+
template: "/swarm diagnosis",
|
|
88425
|
+
description: "Use /swarm diagnosis to run health checks on swarm state"
|
|
88426
|
+
},
|
|
88419
88427
|
"swarm-preflight": {
|
|
88420
88428
|
template: "/swarm preflight",
|
|
88421
88429
|
description: "Use /swarm preflight to run preflight automation checks"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "6.84.
|
|
3
|
+
"version": "6.84.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",
|