oh-my-opencode 2.1.1 → 2.1.3

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,3 +1,3 @@
1
1
  export declare const BACKGROUND_TASK_DESCRIPTION = "Launch a background agent task that runs asynchronously.\n\nThe task runs in a separate session while you continue with other work. The system will notify you when the task completes.\n\nUse this for:\n- Long-running research tasks\n- Complex analysis that doesn't need immediate results\n- Parallel workloads to maximize throughput\n\nArguments:\n- description: Short task description (shown in status)\n- prompt: Full detailed prompt for the agent (MUST be in English for optimal LLM performance)\n- agent: Agent type to use (any agent allowed)\n\nIMPORTANT: Always write prompts in English regardless of user's language. LLMs perform significantly better with English prompts.\n\nReturns immediately with task ID and session info. Use `background_output` to check progress or retrieve results.";
2
2
  export declare const BACKGROUND_OUTPUT_DESCRIPTION = "Get output from a background task.\n\nArguments:\n- task_id: Required task ID to get output from\n- block: If true, wait for task completion. If false (default), return current status immediately.\n- timeout: Max wait time in ms when blocking (default: 60000, max: 600000)\n\nThe system automatically notifies when background tasks complete. You typically don't need block=true.";
3
- export declare const BACKGROUND_CANCEL_DESCRIPTION = "Cancel a running background task.\n\nOnly works for tasks with status \"running\". Aborts the background session and marks the task as cancelled.\n\nArguments:\n- taskId: Required task ID to cancel.";
3
+ export declare const BACKGROUND_CANCEL_DESCRIPTION = "Cancel running background task(s).\n\nOnly works for tasks with status \"running\". Aborts the background session and marks the task as cancelled.\n\nArguments:\n- taskId: Task ID to cancel (optional if all=true)\n- all: Set to true to cancel ALL running background tasks at once (default: false)\n\n**Cleanup Before Answer**: When you have gathered sufficient information and are ready to provide your final answer to the user, use `all=true` to cancel ALL running background tasks first, then deliver your response. This conserves resources and ensures clean workflow completion.";
@@ -30,10 +30,12 @@ export declare function createBackgroundOutput(manager: BackgroundManager, clien
30
30
  export declare function createBackgroundCancel(manager: BackgroundManager, client: OpencodeClient): {
31
31
  description: string;
32
32
  args: {
33
- taskId: import("zod").ZodString;
33
+ taskId: import("zod").ZodOptional<import("zod").ZodString>;
34
+ all: import("zod").ZodOptional<import("zod").ZodBoolean>;
34
35
  };
35
36
  execute(args: {
36
- taskId: string;
37
+ taskId?: string | undefined;
38
+ all?: boolean | undefined;
37
39
  }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
38
40
  };
39
41
  export {};
@@ -9,5 +9,6 @@ export interface BackgroundOutputArgs {
9
9
  timeout?: number;
10
10
  }
11
11
  export interface BackgroundCancelArgs {
12
- taskId: string;
12
+ taskId?: string;
13
+ all?: boolean;
13
14
  }
@@ -35,10 +35,12 @@ export declare function createBackgroundTools(manager: BackgroundManager, client
35
35
  background_cancel: {
36
36
  description: string;
37
37
  args: {
38
- taskId: import("zod").ZodString;
38
+ taskId: import("zod").ZodOptional<import("zod").ZodString>;
39
+ all: import("zod").ZodOptional<import("zod").ZodBoolean>;
39
40
  };
40
41
  execute(args: {
41
- taskId: string;
42
+ taskId?: string | undefined;
43
+ all?: boolean | undefined;
42
44
  }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
43
45
  };
44
46
  };
@@ -6,6 +6,7 @@ declare class LSPServerManager {
6
6
  private cleanupInterval;
7
7
  private readonly IDLE_TIMEOUT;
8
8
  private constructor();
9
+ private registerProcessCleanup;
9
10
  static getInstance(): LSPServerManager;
10
11
  private getKey;
11
12
  private startCleanupTimer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-opencode",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "OpenCode plugin - custom agents (oracle, librarian) and enhanced features",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",