oh-my-opencode 3.0.0-beta.10 → 3.0.0-beta.11

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,8 +1,7 @@
1
1
  import type { AgentConfig } from "@opencode-ai/sdk";
2
- import type { AgentOverrideConfig, CategoryConfig } from "../config/schema";
2
+ import type { AgentOverrideConfig } from "../config/schema";
3
3
  export declare const SISYPHUS_JUNIOR_DEFAULTS: {
4
4
  readonly model: "anthropic/claude-sonnet-4-5";
5
5
  readonly temperature: 0.1;
6
6
  };
7
7
  export declare function createSisyphusJuniorAgentWithOverrides(override: AgentOverrideConfig | undefined, systemDefaultModel?: string): AgentConfig;
8
- export declare function createSisyphusJuniorAgent(categoryConfig: CategoryConfig, promptAppend?: string): AgentConfig;
package/dist/cli/index.js CHANGED
@@ -7672,7 +7672,7 @@ var import_picocolors2 = __toESM(require_picocolors(), 1);
7672
7672
  // package.json
7673
7673
  var package_default = {
7674
7674
  name: "oh-my-opencode",
7675
- version: "3.0.0-beta.10",
7675
+ version: "3.0.0-beta.11",
7676
7676
  description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
7677
7677
  main: "dist/index.js",
7678
7678
  types: "dist/index.d.ts",
@@ -7745,13 +7745,13 @@ var package_default = {
7745
7745
  typescript: "^5.7.3"
7746
7746
  },
7747
7747
  optionalDependencies: {
7748
- "oh-my-opencode-darwin-arm64": "3.0.0-beta.10",
7749
- "oh-my-opencode-darwin-x64": "3.0.0-beta.10",
7750
- "oh-my-opencode-linux-arm64": "3.0.0-beta.10",
7751
- "oh-my-opencode-linux-arm64-musl": "3.0.0-beta.10",
7752
- "oh-my-opencode-linux-x64": "3.0.0-beta.10",
7753
- "oh-my-opencode-linux-x64-musl": "3.0.0-beta.10",
7754
- "oh-my-opencode-windows-x64": "3.0.0-beta.10"
7748
+ "oh-my-opencode-darwin-arm64": "3.0.0-beta.11",
7749
+ "oh-my-opencode-darwin-x64": "3.0.0-beta.11",
7750
+ "oh-my-opencode-linux-arm64": "3.0.0-beta.11",
7751
+ "oh-my-opencode-linux-arm64-musl": "3.0.0-beta.11",
7752
+ "oh-my-opencode-linux-x64": "3.0.0-beta.11",
7753
+ "oh-my-opencode-linux-x64-musl": "3.0.0-beta.11",
7754
+ "oh-my-opencode-windows-x64": "3.0.0-beta.11"
7755
7755
  },
7756
7756
  trustedDependencies: [
7757
7757
  "@ast-grep/cli",
@@ -25,12 +25,17 @@ export declare class BackgroundManager {
25
25
  private concurrencyManager;
26
26
  private shutdownTriggered;
27
27
  private config?;
28
+ private queuesByKey;
29
+ private processingKeys;
28
30
  constructor(ctx: PluginInput, config?: BackgroundTaskConfig);
29
31
  launch(input: LaunchInput): Promise<BackgroundTask>;
32
+ private processKey;
33
+ private startTask;
30
34
  getTask(id: string): BackgroundTask | undefined;
31
35
  getTasksByParentSession(sessionID: string): BackgroundTask[];
32
36
  getAllDescendantTasks(sessionID: string): BackgroundTask[];
33
37
  findBySession(sessionID: string): BackgroundTask | undefined;
38
+ private getConcurrencyKeyFromInput;
34
39
  /**
35
40
  * Track a task created elsewhere (e.g., from delegate_task) for notification tracking.
36
41
  * This allows tasks created by other tools to receive the same toast/prompt notifications.
@@ -61,6 +66,11 @@ export declare class BackgroundManager {
61
66
  * Cleans up the parent entry if no pending tasks remain.
62
67
  */
63
68
  private cleanupPendingByParent;
69
+ /**
70
+ * Cancels a pending task by removing it from queue and marking as cancelled.
71
+ * Does NOT abort session (no session exists yet) or release concurrency slot (wasn't acquired).
72
+ */
73
+ cancelPendingTask(taskId: string): boolean;
64
74
  private startPolling;
65
75
  private stopPolling;
66
76
  private registerProcessCleanup;
@@ -1,4 +1,4 @@
1
- export type BackgroundTaskStatus = "running" | "completed" | "error" | "cancelled";
1
+ export type BackgroundTaskStatus = "pending" | "running" | "completed" | "error" | "cancelled";
2
2
  export interface TaskProgress {
3
3
  toolCalls: number;
4
4
  lastTool?: string;
@@ -8,14 +8,15 @@ export interface TaskProgress {
8
8
  }
9
9
  export interface BackgroundTask {
10
10
  id: string;
11
- sessionID: string;
11
+ sessionID?: string;
12
12
  parentSessionID: string;
13
13
  parentMessageID: string;
14
14
  description: string;
15
15
  prompt: string;
16
16
  agent: string;
17
17
  status: BackgroundTaskStatus;
18
- startedAt: Date;
18
+ queuedAt?: Date;
19
+ startedAt?: Date;
19
20
  completedAt?: Date;
20
21
  result?: string;
21
22
  error?: string;