opencode-swarm 6.31.4 → 6.32.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.
@@ -1,10 +1,12 @@
1
1
  /**
2
2
  * Truncate tool output to a maximum number of lines.
3
+ * Preserves tail context (last N lines) in addition to head.
3
4
  * Adds a footer with omitted line count and guidance.
4
5
  *
5
6
  * @param output - The tool output to truncate
6
7
  * @param maxLines - Maximum number of lines to keep
7
8
  * @param toolName - Optional tool name for the footer
9
+ * @param tailLines - Number of tail lines to preserve (default: 10)
8
10
  * @returns Truncated output with footer, or original if within limit
9
11
  */
10
- export declare function truncateToolOutput(output: string, maxLines: number, toolName?: string): string;
12
+ export declare function truncateToolOutput(output: string, maxLines: number, toolName?: string, tailLines?: number): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "6.31.4",
3
+ "version": "6.32.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",