opencode-swarm 6.84.1 → 6.84.2

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.
Files changed (2) hide show
  1. package/dist/cli/index.js +10 -0
  2. package/package.json +1 -1
package/dist/cli/index.js CHANGED
@@ -45068,6 +45068,7 @@ var CONFIG_DIR = path33.join(process.env.XDG_CONFIG_HOME || path33.join(os7.home
45068
45068
  var OPENCODE_CONFIG_PATH = path33.join(CONFIG_DIR, "opencode.json");
45069
45069
  var PLUGIN_CONFIG_PATH = path33.join(CONFIG_DIR, "opencode-swarm.json");
45070
45070
  var PROMPTS_DIR = path33.join(CONFIG_DIR, "opencode-swarm");
45071
+ var OPENCODE_PLUGIN_CACHE_PATH = path33.join(process.env.XDG_CACHE_HOME || path33.join(os7.homedir(), ".cache"), "opencode", "packages", "opencode-swarm@latest");
45071
45072
  function ensureDir(dir) {
45072
45073
  if (!fs23.existsSync(dir)) {
45073
45074
  fs23.mkdirSync(dir, { recursive: true });
@@ -45122,6 +45123,15 @@ async function install() {
45122
45123
  saveJson(OPENCODE_CONFIG_PATH, opencodeConfig);
45123
45124
  console.log("\u2713 Added opencode-swarm to OpenCode plugins");
45124
45125
  console.log("\u2713 Disabled default OpenCode agents (explore, general)");
45126
+ try {
45127
+ if (fs23.existsSync(OPENCODE_PLUGIN_CACHE_PATH)) {
45128
+ fs23.rmSync(OPENCODE_PLUGIN_CACHE_PATH, { recursive: true, force: true });
45129
+ console.log("\u2713 Cleared opencode plugin cache (next start will fetch latest)");
45130
+ }
45131
+ } catch {
45132
+ console.warn("\u26A0 Could not clear opencode plugin cache \u2014 you may need to delete it manually:");
45133
+ console.warn(` ${OPENCODE_PLUGIN_CACHE_PATH}`);
45134
+ }
45125
45135
  if (!fs23.existsSync(PLUGIN_CONFIG_PATH)) {
45126
45136
  const defaultConfig = {
45127
45137
  agents: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "6.84.1",
3
+ "version": "6.84.2",
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",