opencode-swarm 6.25.8 → 6.25.9

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
@@ -14281,7 +14281,10 @@ function sanitizeTaskId(taskId) {
14281
14281
  if (RETRO_TASK_ID_REGEX.test(taskId)) {
14282
14282
  return taskId;
14283
14283
  }
14284
- throw new Error(`Invalid task ID: must match pattern ^\\d+\\.\\d+(\\.\\d+)*$ or ^retro-\\d+$, got "${taskId}"`);
14284
+ if (INTERNAL_TOOL_ID_REGEX.test(taskId)) {
14285
+ return taskId;
14286
+ }
14287
+ throw new Error(`Invalid task ID: must match pattern ^\\d+\\.\\d+(\\.\\d+)*$, ^retro-\\d+$, or ^(?:sast_scan|quality_budget|syntax_check|placeholder_scan|sbom_generate|build)$, got "${taskId}"`);
14285
14288
  }
14286
14289
  async function saveEvidence(directory, taskId, evidence) {
14287
14290
  const sanitizedTaskId = sanitizeTaskId(taskId);
@@ -14491,7 +14494,7 @@ async function archiveEvidence(directory, maxAgeDays, maxBundles) {
14491
14494
  }
14492
14495
  return archived;
14493
14496
  }
14494
- var TASK_ID_REGEX, RETRO_TASK_ID_REGEX, LEGACY_TASK_COMPLEXITY_MAP;
14497
+ var TASK_ID_REGEX, RETRO_TASK_ID_REGEX, INTERNAL_TOOL_ID_REGEX, LEGACY_TASK_COMPLEXITY_MAP;
14495
14498
  var init_manager = __esm(() => {
14496
14499
  init_zod();
14497
14500
  init_evidence_schema();
@@ -14499,6 +14502,7 @@ var init_manager = __esm(() => {
14499
14502
  init_utils();
14500
14503
  TASK_ID_REGEX = /^\d+\.\d+(\.\d+)*$/;
14501
14504
  RETRO_TASK_ID_REGEX = /^retro-\d+$/;
14505
+ INTERNAL_TOOL_ID_REGEX = /^(?:sast_scan|quality_budget|syntax_check|placeholder_scan|sbom_generate|build)$/;
14502
14506
  LEGACY_TASK_COMPLEXITY_MAP = {
14503
14507
  low: "simple",
14504
14508
  medium: "moderate",
@@ -34,9 +34,10 @@ export declare function isBuildEvidence(evidence: Evidence): evidence is BuildEv
34
34
  export declare function isQualityBudgetEvidence(evidence: Evidence): evidence is QualityBudgetEvidence;
35
35
  /**
36
36
  * Validate and sanitize task ID.
37
- * Accepts two formats:
37
+ * Accepts three formats:
38
38
  * 1. Canonical N.M or N.M.P numeric format (matches TASK_ID_REGEX)
39
39
  * 2. Retrospective format: retro-<number> (matches RETRO_TASK_ID_REGEX)
40
+ * 3. Internal automated-tool format: specific tool IDs (sast_scan, quality_budget, syntax_check, placeholder_scan, sbom_generate, build)
40
41
  * Rejects: .., ../, null bytes, control characters, empty string, other non-numeric IDs
41
42
  * @throws Error with descriptive message on failure
42
43
  */
package/dist/index.js CHANGED
@@ -15374,7 +15374,10 @@ function sanitizeTaskId(taskId) {
15374
15374
  if (RETRO_TASK_ID_REGEX.test(taskId)) {
15375
15375
  return taskId;
15376
15376
  }
15377
- throw new Error(`Invalid task ID: must match pattern ^\\d+\\.\\d+(\\.\\d+)*$ or ^retro-\\d+$, got "${taskId}"`);
15377
+ if (INTERNAL_TOOL_ID_REGEX.test(taskId)) {
15378
+ return taskId;
15379
+ }
15380
+ throw new Error(`Invalid task ID: must match pattern ^\\d+\\.\\d+(\\.\\d+)*$, ^retro-\\d+$, or ^(?:sast_scan|quality_budget|syntax_check|placeholder_scan|sbom_generate|build)$, got "${taskId}"`);
15378
15381
  }
15379
15382
  async function saveEvidence(directory, taskId, evidence) {
15380
15383
  const sanitizedTaskId = sanitizeTaskId(taskId);
@@ -15584,7 +15587,7 @@ async function archiveEvidence(directory, maxAgeDays, maxBundles) {
15584
15587
  }
15585
15588
  return archived;
15586
15589
  }
15587
- var VALID_EVIDENCE_TYPES, TASK_ID_REGEX, RETRO_TASK_ID_REGEX, LEGACY_TASK_COMPLEXITY_MAP;
15590
+ var VALID_EVIDENCE_TYPES, TASK_ID_REGEX, RETRO_TASK_ID_REGEX, INTERNAL_TOOL_ID_REGEX, LEGACY_TASK_COMPLEXITY_MAP;
15588
15591
  var init_manager = __esm(() => {
15589
15592
  init_zod();
15590
15593
  init_evidence_schema();
@@ -15606,6 +15609,7 @@ var init_manager = __esm(() => {
15606
15609
  ];
15607
15610
  TASK_ID_REGEX = /^\d+\.\d+(\.\d+)*$/;
15608
15611
  RETRO_TASK_ID_REGEX = /^retro-\d+$/;
15612
+ INTERNAL_TOOL_ID_REGEX = /^(?:sast_scan|quality_budget|syntax_check|placeholder_scan|sbom_generate|build)$/;
15609
15613
  LEGACY_TASK_COMPLEXITY_MAP = {
15610
15614
  low: "simple",
15611
15615
  medium: "moderate",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "6.25.8",
3
+ "version": "6.25.9",
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",