opencode-swarm 6.81.0 → 6.81.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.
Files changed (3) hide show
  1. package/README.md +167 -1510
  2. package/dist/cli/index.js +14 -6
  3. package/package.json +1 -1
package/dist/cli/index.js CHANGED
@@ -44960,8 +44960,14 @@ async function install() {
44960
44960
  if (!opencodeConfig.agent) {
44961
44961
  opencodeConfig.agent = {};
44962
44962
  }
44963
- opencodeConfig.agent.explore = { disable: true };
44964
- opencodeConfig.agent.general = { disable: true };
44963
+ opencodeConfig.agent.explore = {
44964
+ ...typeof opencodeConfig.agent.explore === "object" && opencodeConfig.agent.explore !== null ? opencodeConfig.agent.explore : {},
44965
+ disable: true
44966
+ };
44967
+ opencodeConfig.agent.general = {
44968
+ ...typeof opencodeConfig.agent.general === "object" && opencodeConfig.agent.general !== null ? opencodeConfig.agent.general : {},
44969
+ disable: true
44970
+ };
44965
44971
  saveJson(OPENCODE_CONFIG_PATH, opencodeConfig);
44966
44972
  console.log("\u2713 Added opencode-swarm to OpenCode plugins");
44967
44973
  console.log("\u2713 Disabled default OpenCode agents (explore, general)");
@@ -45129,10 +45135,12 @@ async function main() {
45129
45135
  process.exit(1);
45130
45136
  }
45131
45137
  }
45132
- main().catch((err) => {
45133
- console.error("Fatal error:", err);
45134
- process.exit(1);
45135
- });
45138
+ if (import.meta.main) {
45139
+ main().catch((err) => {
45140
+ console.error("Fatal error:", err);
45141
+ process.exit(1);
45142
+ });
45143
+ }
45136
45144
  async function run(args) {
45137
45145
  const cwd = process.cwd();
45138
45146
  if (!args || args.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "6.81.0",
3
+ "version": "6.81.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",