opencode-swarm 7.91.1 → 7.93.0

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 (30) hide show
  1. package/.opencode/skills/codebase-review-swarm/SKILL.md +3 -1
  2. package/.opencode/skills/council/SKILL.md +17 -12
  3. package/.opencode/skills/deep-dive/SKILL.md +12 -2
  4. package/.opencode/skills/swarm-pr-review/SKILL.md +5 -3
  5. package/dist/agents/explorer.d.ts +1 -1
  6. package/dist/background/candidate-parser.d.ts +1 -0
  7. package/dist/cli/{config-doctor-g04wdz19.js → config-doctor-fkwyrtpq.js} +2 -2
  8. package/dist/cli/{explorer-h2fnj343.js → explorer-4ttwy7jd.js} +1 -1
  9. package/dist/cli/{guardrail-explain-h2007ev1.js → guardrail-explain-656752j3.js} +6 -6
  10. package/dist/cli/{guardrail-log-m3285thy.js → guardrail-log-x3w800x5.js} +3 -3
  11. package/dist/cli/{index-bm4f0nme.js → index-1x2608ga.js} +30 -0
  12. package/dist/cli/{index-bywt2171.js → index-2jpbaedv.js} +1 -1
  13. package/dist/cli/{index-h1cjgz2r.js → index-mf31xkvd.js} +921 -581
  14. package/dist/cli/{index-6tnmt41c.js → index-ne4g3mk1.js} +1 -1
  15. package/dist/cli/{index-sxm9y9a5.js → index-rbx55am1.js} +2 -2
  16. package/dist/cli/{index-07qr9he0.js → index-rh24fcmy.js} +7 -7
  17. package/dist/cli/{index-123s7kjc.js → index-xsbtbffr.js} +4 -4
  18. package/dist/cli/{index-gg589mfw.js → index-yykcmn6m.js} +1 -1
  19. package/dist/cli/index.js +5 -5
  20. package/dist/cli/{schema-t9th7frq.js → schema-1kndsf0c.js} +1 -1
  21. package/dist/commands/close.d.ts +3 -0
  22. package/dist/config/constants.d.ts +1 -1
  23. package/dist/index.js +2288 -1832
  24. package/dist/services/session-reflection.d.ts +86 -0
  25. package/dist/tools/apply-patch.d.ts +7 -1
  26. package/dist/tools/dispatch-lanes.d.ts +2 -0
  27. package/dist/tools/index.d.ts +3 -3
  28. package/dist/tools/manifest.d.ts +1 -1
  29. package/dist/tools/tool-metadata.d.ts +1 -1
  30. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  stripKnownSwarmPrefix
4
- } from "./index-123s7kjc.js";
4
+ } from "./index-xsbtbffr.js";
5
5
  import {
6
6
  init_logger,
7
7
  warn
@@ -12,14 +12,14 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-h1cjgz2r.js";
15
+ } from "./index-mf31xkvd.js";
16
16
  import {
17
17
  checkFileAuthority,
18
18
  classifyFile,
19
19
  isInDeclaredScope,
20
20
  redactPath,
21
21
  redactShellCommand
22
- } from "./index-6tnmt41c.js";
22
+ } from "./index-ne4g3mk1.js";
23
23
 
24
24
  // src/services/guardrail-explain-service.ts
25
25
  import path from "path";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-sxm9y9a5.js";
4
+ } from "./index-rbx55am1.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-gg589mfw.js";
7
+ } from "./index-yykcmn6m.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -78,17 +78,17 @@ import {
78
78
  handleWriteRetroCommand,
79
79
  normalizeSwarmCommandInput,
80
80
  resolveCommand
81
- } from "./index-h1cjgz2r.js";
82
- import"./index-6tnmt41c.js";
83
- import"./index-bm4f0nme.js";
81
+ } from "./index-mf31xkvd.js";
82
+ import"./index-ne4g3mk1.js";
83
+ import"./index-1x2608ga.js";
84
84
  import"./index-5hrexm02.js";
85
85
  import"./index-w7gkpmq8.js";
86
- import"./index-bywt2171.js";
86
+ import"./index-2jpbaedv.js";
87
87
  import {
88
88
  AGENT_TOOL_MAP,
89
89
  ORCHESTRATOR_NAME,
90
90
  stripKnownSwarmPrefix
91
- } from "./index-123s7kjc.js";
91
+ } from "./index-xsbtbffr.js";
92
92
  import"./index-y1z6yaq4.js";
93
93
  import"./index-adz3nk9b.js";
94
94
  import"./index-v4fcn4tr.js";
@@ -521,11 +521,11 @@ var TOOL_METADATA = {
521
521
  agents: ["architect"]
522
522
  },
523
523
  dispatch_lanes_async: {
524
- description: "launch read-only advisory lanes non-blockingly and return a batch id immediately so you can keep working; join later with collect_lane_results",
524
+ description: "launch read-only advisory lanes non-blockingly and return a batch id immediately so you can keep working; poll incrementally with collect_lane_results (wait omitted or false) while doing independent investigation, or join with wait: true when you need all results",
525
525
  agents: ["architect"]
526
526
  },
527
527
  collect_lane_results: {
528
- description: "collect or poll results for a dispatch_lanes_async batch; this is the required join barrier for advisory lane workflows and does not advance workflow gates",
528
+ description: "collect or poll results for a dispatch_lanes_async batch; supports both non-blocking polling (wait omitted or false) and blocking join (wait: true). Use non-blocking polls to check progress and process settled lanes incrementally while continuing independent work; use blocking join only when you need all lanes settled before proceeding. Does not advance workflow gates.",
529
529
  agents: ["architect"]
530
530
  },
531
531
  summarize_work: {
@@ -570,8 +570,8 @@ var TOOL_METADATA = {
570
570
  description: "returns Lean Turbo configuration and active status for the current session",
571
571
  agents: []
572
572
  },
573
- apply_patch: {
574
- description: "Apply a unified diff patch to workspace files with exact context matching, atomic writes, and path validation",
573
+ swarm_apply_patch: {
574
+ description: "Apply a unified diff patch to workspace files with exact context matching, atomic writes, and path validation. Use standard unified diff format only \u2014 does NOT support *** Begin Patch / *** Update File payloads (use native apply_patch for those).",
575
575
  agents: ["coder", "test_engineer"]
576
576
  },
577
577
  external_skill_discover: {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  redactPath,
4
4
  redactShellCommand
5
- } from "./index-6tnmt41c.js";
5
+ } from "./index-ne4g3mk1.js";
6
6
 
7
7
  // src/services/guardrail-log-service.ts
8
8
  import * as fs from "fs/promises";
package/dist/cli/index.js CHANGED
@@ -7,15 +7,15 @@ import {
7
7
  getPluginLockFilePaths,
8
8
  package_default,
9
9
  resolveCommand
10
- } from "./index-h1cjgz2r.js";
11
- import"./index-6tnmt41c.js";
12
- import"./index-bm4f0nme.js";
10
+ } from "./index-mf31xkvd.js";
11
+ import"./index-ne4g3mk1.js";
12
+ import"./index-1x2608ga.js";
13
13
  import"./index-5hrexm02.js";
14
14
  import"./index-w7gkpmq8.js";
15
- import"./index-bywt2171.js";
15
+ import"./index-2jpbaedv.js";
16
16
  import {
17
17
  DEFAULT_AGENT_CONFIGS
18
- } from "./index-123s7kjc.js";
18
+ } from "./index-xsbtbffr.js";
19
19
  import"./index-y1z6yaq4.js";
20
20
  import"./index-adz3nk9b.js";
21
21
  import"./index-v4fcn4tr.js";
@@ -81,7 +81,7 @@ import {
81
81
  resolveGeneratedAgentRole,
82
82
  resolveGuardrailsConfig,
83
83
  stripKnownSwarmPrefix
84
- } from "./index-123s7kjc.js";
84
+ } from "./index-xsbtbffr.js";
85
85
  import"./index-p0arc26j.js";
86
86
  import"./index-293f68mj.js";
87
87
  import"./index-a76rekgs.js";
@@ -7,6 +7,7 @@ import { runCuratorPostMortem } from '../hooks/curator-postmortem';
7
7
  import { checkHivePromotions } from '../hooks/hive-promoter';
8
8
  import { curateAndStoreSwarm } from '../hooks/knowledge-curator';
9
9
  import { closePlanTerminalState } from '../plan/manager';
10
+ import { type SessionReflectionResult } from '../services/session-reflection';
10
11
  import { resetSwarmStatePreservingSingletons } from '../state';
11
12
  interface PlanPhase {
12
13
  id: number;
@@ -66,6 +67,7 @@ export interface CloseStageContext {
66
67
  knowledgeSkillHint: string;
67
68
  skillReviewSummary: string;
68
69
  postMortemSummary: string;
70
+ sessionReflection: SessionReflectionResult | undefined;
69
71
  hivePromoted: number;
70
72
  sessionKnowledgeCreated: number;
71
73
  fallbackKnowledgeCreated: number;
@@ -175,6 +177,7 @@ export declare const _internals: {
175
177
  ACTIVE_STATE_DIRS_TO_CLEAN: string[];
176
178
  countSessionKnowledgeEntries: typeof countSessionKnowledgeEntries;
177
179
  CLOSE_SKILL_REVIEW_TIMEOUT_MS: number;
180
+ CLOSE_REFLECTION_TIMEOUT_MS: number;
178
181
  guaranteeAllPlansComplete: typeof guaranteeAllPlansComplete;
179
182
  getGitRepositoryStatus: typeof getGitRepositoryStatus;
180
183
  resetToMainAfterMerge: typeof resetToMainAfterMerge;
@@ -25,7 +25,7 @@ export declare const TURBO_AGENT_TOOL_MAP: Partial<Record<AgentName, ToolName[]>
25
25
  * NOTE: bash/shell tools are intentionally excluded — bash commands are opaque
26
26
  * to static scope analysis. Post-hoc detection via guardrails diff-scope provides secondary coverage.
27
27
  */
28
- export declare const WRITE_TOOL_NAMES: readonly ["write", "edit", "patch", "apply_patch", "create_file", "insert", "replace", "append", "prepend"];
28
+ export declare const WRITE_TOOL_NAMES: readonly ["write", "edit", "patch", "apply_patch", "swarm_apply_patch", "create_file", "insert", "replace", "append", "prepend"];
29
29
  export type WriteToolName = (typeof WRITE_TOOL_NAMES)[number];
30
30
  export declare const DEFAULT_MODELS: Record<string, string>;
31
31
  export declare const DEFAULT_AGENT_CONFIGS: Record<string, {