opencode-swarm 7.48.0 → 7.48.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/index.js CHANGED
@@ -52,7 +52,7 @@ var package_default;
52
52
  var init_package = __esm(() => {
53
53
  package_default = {
54
54
  name: "opencode-swarm",
55
- version: "7.48.0",
55
+ version: "7.48.1",
56
56
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
57
57
  main: "dist/index.js",
58
58
  types: "dist/index.d.ts",
package/dist/index.js CHANGED
@@ -69,7 +69,7 @@ var package_default;
69
69
  var init_package = __esm(() => {
70
70
  package_default = {
71
71
  name: "opencode-swarm",
72
- version: "7.48.0",
72
+ version: "7.48.1",
73
73
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
74
74
  main: "dist/index.js",
75
75
  types: "dist/index.d.ts",
@@ -36017,12 +36017,13 @@ import { spawn, spawnSync } from "node:child_process";
36017
36017
  import * as fs8 from "node:fs";
36018
36018
  import * as os3 from "node:os";
36019
36019
  import * as path11 from "node:path";
36020
+ import { fileURLToPath } from "node:url";
36020
36021
  function findRunnerBinary() {
36021
36022
  const arch = process.arch === "x64" ? "x64" : "arm64";
36022
36023
  const platform = "win32";
36023
36024
  const packagePaths = [
36024
- path11.resolve(__dirname, "..", "..", "..", "binaries", `${platform}-${arch}`, "swarm-sandbox-runner.exe"),
36025
- path11.resolve(__dirname, "..", "..", "..", "..", "binaries", `${platform}-${arch}`, "swarm-sandbox-runner.exe")
36025
+ path11.resolve(_runtimeDir, "..", "..", "..", "binaries", `${platform}-${arch}`, "swarm-sandbox-runner.exe"),
36026
+ path11.resolve(_runtimeDir, "..", "..", "..", "..", "binaries", `${platform}-${arch}`, "swarm-sandbox-runner.exe")
36026
36027
  ];
36027
36028
  for (const p of packagePaths) {
36028
36029
  try {
@@ -36226,9 +36227,10 @@ function buildDefaultPolicy(workspaceRoot, runId) {
36226
36227
  deny_symlink_egress: true
36227
36228
  };
36228
36229
  }
36229
- var __dirname = "/home/runner/work/opencode-swarm/opencode-swarm/src/sandbox/win32", RUNNER_EXIT_CODES, _cachedProbe, _internals10;
36230
+ var _runtimeDir, RUNNER_EXIT_CODES, _cachedProbe, _internals10;
36230
36231
  var init_runner_client = __esm(() => {
36231
36232
  init_logger();
36233
+ _runtimeDir = fileURLToPath(new URL(".", import.meta.url));
36232
36234
  RUNNER_EXIT_CODES = {
36233
36235
  SUCCESS: 0,
36234
36236
  CHILD_NON_ZERO: 1,
@@ -62994,7 +62996,7 @@ var init_knowledge_diagnostics = __esm(() => {
62994
62996
  import * as child_process4 from "node:child_process";
62995
62997
  import { existsSync as existsSync21, readdirSync as readdirSync4, readFileSync as readFileSync9, statSync as statSync8 } from "node:fs";
62996
62998
  import path36 from "node:path";
62997
- import { fileURLToPath } from "node:url";
62999
+ import { fileURLToPath as fileURLToPath2 } from "node:url";
62998
63000
  function validateTaskDag(plan) {
62999
63001
  const allTaskIds = new Set;
63000
63002
  for (const phase of plan.phases) {
@@ -63357,7 +63359,7 @@ async function checkGrammarWasmFiles() {
63357
63359
  "tree-sitter-ini.wasm",
63358
63360
  "tree-sitter-regex.wasm"
63359
63361
  ];
63360
- const thisDir = path36.dirname(fileURLToPath(import.meta.url));
63362
+ const thisDir = path36.dirname(fileURLToPath2(import.meta.url));
63361
63363
  const grammarDir = resolveGrammarDir(thisDir);
63362
63364
  const missing = [];
63363
63365
  if (!existsSync21(path36.join(grammarDir, "tree-sitter.wasm"))) {
@@ -72486,7 +72488,7 @@ var init_memory = __esm(() => {
72486
72488
  // src/commands/memory.ts
72487
72489
  import { existsSync as existsSync30 } from "node:fs";
72488
72490
  import * as path49 from "node:path";
72489
- import { fileURLToPath as fileURLToPath2 } from "node:url";
72491
+ import { fileURLToPath as fileURLToPath3 } from "node:url";
72490
72492
  async function handleMemoryCommand(_directory, _args) {
72491
72493
  return [
72492
72494
  "## Swarm Memory",
@@ -72929,7 +72931,7 @@ var PACKAGE_ROOT;
72929
72931
  var init_memory2 = __esm(() => {
72930
72932
  init_loader();
72931
72933
  init_memory();
72932
- PACKAGE_ROOT = path49.resolve(resolvePackageRootFromModule(fileURLToPath2(import.meta.url)));
72934
+ PACKAGE_ROOT = path49.resolve(resolvePackageRootFromModule(fileURLToPath3(import.meta.url)));
72933
72935
  });
72934
72936
 
72935
72937
  // src/services/plan-service.ts
@@ -82975,9 +82977,11 @@ ${archBlock}`;
82975
82977
  if (!uiReview?.enabled) {
82976
82978
  prompt = prompt?.replace(", {{AGENT_PREFIX}}designer", "")?.replace(/\n 9\. \*\*UI\/UX DESIGN GATE\*\*:[\s\S]*?(?=\n10\. \*\*)/, `
82977
82979
  `)?.replace(`
82978
- {{AGENT_PREFIX}}designer - UI/UX design specs (scaffold generation for UI components — runs BEFORE coder on UI tasks)`, "")?.replace(/\n\{\{AGENT_PREFIX\}\}designer\nTASK: Design specification[\s\S]*?accessibility(?=\n\n## WORKFLOW)/, "")?.replace(`5a. **UI DESIGN GATE** (conditional Rule 9): If task matches UI trigger → {{AGENT_PREFIX}}designer produces scaffold → pass scaffold to coder as INPUT. If no match → skip.
82979
-
82980
- `, "")?.replace("→ After step 5a (or immediately if no UI task applies): Call update_task_status", "→ Call update_task_status")?.replace(" (if designer scaffold produced, include it as INPUT)", "");
82980
+ {{AGENT_PREFIX}}designer - UI/UX design specs (scaffold generation for UI components — runs BEFORE coder on UI tasks)`, "")?.replace(/\n\{\{AGENT_PREFIX\}\}designer\nTASK: Design specification[\s\S]*?(?=\n\n## WORKFLOW)/, "")?.replace(/, or designer/g, "")?.replace(`- the active swarm's designer agent = @{{AGENT_PREFIX}}designer
82981
+ `, "");
82982
+ if (/(?:@(?:\{\{AGENT_PREFIX\}\})?designer\b|\{\{AGENT_PREFIX\}\}designer\b)/i.test(prompt ?? "")) {
82983
+ console.warn("[swarm] WARNING: Custom architect prompt may still contain designer references after stripping. " + "Verify your custom prompt does not reference @designer when ui_review is disabled.");
82984
+ }
82981
82985
  }
82982
82986
  if (!designDocsEnabled) {
82983
82987
  prompt = prompt?.replace(", {{AGENT_PREFIX}}docs_design", "")?.replace(/### MODE: DESIGN_DOCS\n[\s\S]*?(?=### MODE: ISSUE_INGEST)/, "")?.replace(`- the active swarm's docs_design agent = @{{AGENT_PREFIX}}docs_design
@@ -90956,11 +90960,11 @@ __export(exports_runtime, {
90956
90960
  _internals: () => _internals45
90957
90961
  });
90958
90962
  import * as path93 from "node:path";
90959
- import { fileURLToPath as fileURLToPath3 } from "node:url";
90963
+ import { fileURLToPath as fileURLToPath4 } from "node:url";
90960
90964
  async function initTreeSitter() {
90961
90965
  if (!treeSitterInitPromise) {
90962
90966
  treeSitterInitPromise = (async () => {
90963
- const thisDir = path93.dirname(fileURLToPath3(import.meta.url));
90967
+ const thisDir = path93.dirname(fileURLToPath4(import.meta.url));
90964
90968
  const isSource = thisDir.replace(/\\/g, "/").endsWith("/src/lang");
90965
90969
  if (isSource) {
90966
90970
  await _internals45.parserInit();
@@ -90994,7 +90998,7 @@ function getWasmFileName(languageId) {
90994
90998
  return `tree-sitter-${sanitized}.wasm`;
90995
90999
  }
90996
91000
  function getGrammarsDirAbsolute() {
90997
- const thisDir = path93.dirname(fileURLToPath3(import.meta.url));
91001
+ const thisDir = path93.dirname(fileURLToPath4(import.meta.url));
90998
91002
  const normalized = thisDir.replace(/\\/g, "/");
90999
91003
  const isSource = normalized.endsWith("/src/lang");
91000
91004
  const isCliBundle = normalized.endsWith("/cli");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.48.0",
3
+ "version": "7.48.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",