oh-my-opencode 3.17.11 → 3.17.13

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.
@@ -21,6 +21,15 @@ export interface SubagentSessionCreatedEvent {
21
21
  title: string;
22
22
  }
23
23
  export type OnSubagentSessionCreated = (event: SubagentSessionCreatedEvent) => Promise<void>;
24
+ export interface BackgroundManagerConfig {
25
+ pluginContext: PluginInput;
26
+ config?: BackgroundTaskConfig;
27
+ tmuxConfig?: TmuxConfig;
28
+ onSubagentSessionCreated?: OnSubagentSessionCreated;
29
+ onShutdown?: () => void | Promise<void>;
30
+ enableParentSessionNotifications?: boolean;
31
+ modelFallbackControllerAccessor?: ModelFallbackControllerAccessor;
32
+ }
24
33
  export declare class BackgroundManager {
25
34
  private tasks;
26
35
  private tasksByParentSession;
@@ -49,15 +58,10 @@ export declare class BackgroundManager {
49
58
  private preStartDescendantReservations;
50
59
  private enableParentSessionNotifications;
51
60
  private modelFallbackControllerAccessor?;
61
+ private loggedSessionStatusUnavailable;
52
62
  readonly taskHistory: TaskHistory;
53
63
  private cachedCircuitBreakerSettings?;
54
- constructor(ctx: PluginInput, config?: BackgroundTaskConfig, options?: {
55
- tmuxConfig?: TmuxConfig;
56
- onSubagentSessionCreated?: OnSubagentSessionCreated;
57
- onShutdown?: () => void | Promise<void>;
58
- enableParentSessionNotifications?: boolean;
59
- modelFallbackControllerAccessor?: ModelFallbackControllerAccessor;
60
- });
64
+ constructor(config: BackgroundManagerConfig);
61
65
  private abortSessionWithLogging;
62
66
  assertCanSpawn(parentSessionID: string): Promise<SubagentSpawnContext>;
63
67
  reserveSubagentSpawn(parentSessionID: string): Promise<{
@@ -90,8 +94,8 @@ export declare class BackgroundManager {
90
94
  */
91
95
  trackTask(input: {
92
96
  taskId: string;
93
- sessionID: string;
94
- parentSessionID: string;
97
+ sessionId: string;
98
+ parentSessionId: string;
95
99
  description: string;
96
100
  agent?: string;
97
101
  parentAgent?: string;
@@ -18,11 +18,11 @@ export interface TaskProgress {
18
18
  }
19
19
  export type BackgroundTaskAttemptStatus = BackgroundTaskStatus;
20
20
  export interface BackgroundTaskAttempt {
21
- attemptID: string;
21
+ attemptId: string;
22
22
  attemptNumber: number;
23
- sessionID?: string;
24
- providerID?: string;
25
- modelID?: string;
23
+ sessionId?: string;
24
+ providerId?: string;
25
+ modelId?: string;
26
26
  variant?: string;
27
27
  status: BackgroundTaskAttemptStatus;
28
28
  error?: string;
@@ -31,10 +31,10 @@ export interface BackgroundTaskAttempt {
31
31
  }
32
32
  export interface BackgroundTask {
33
33
  id: string;
34
- sessionID?: string;
35
- rootSessionID?: string;
36
- parentSessionID: string;
37
- parentMessageID: string;
34
+ sessionId?: string;
35
+ rootSessionId?: string;
36
+ parentSessionId: string;
37
+ parentMessageId: string;
38
38
  description: string;
39
39
  prompt: string;
40
40
  agent: string;
@@ -89,8 +89,8 @@ export interface LaunchInput {
89
89
  description: string;
90
90
  prompt: string;
91
91
  agent: string;
92
- parentSessionID: string;
93
- parentMessageID: string;
92
+ parentSessionId: string;
93
+ parentMessageId: string;
94
94
  parentModel?: {
95
95
  providerID: string;
96
96
  modelID: string;
@@ -109,8 +109,8 @@ export interface LaunchInput {
109
109
  export interface ResumeInput {
110
110
  sessionId: string;
111
111
  prompt: string;
112
- parentSessionID: string;
113
- parentMessageID: string;
112
+ parentSessionId: string;
113
+ parentMessageId: string;
114
114
  parentModel?: {
115
115
  providerID: string;
116
116
  modelID: string;
@@ -4,7 +4,7 @@ type AbortSignalLike = {
4
4
  };
5
5
  interface TaskReader {
6
6
  getTask(taskID: string): {
7
- sessionID?: string;
7
+ sessionId?: string;
8
8
  status?: BackgroundTaskStatus;
9
9
  } | undefined;
10
10
  }
@@ -0,0 +1,8 @@
1
+ import { type TeamSpec } from "./types";
2
+ export type CallerTeamLead = {
3
+ agentTypeId?: string;
4
+ displayName?: string;
5
+ isEligibleForTeamLead: boolean;
6
+ };
7
+ export declare function resolveCallerTeamLead(rawAgentName: string | undefined): CallerTeamLead;
8
+ export declare function shouldReuseCallerLeadSession(spec: TeamSpec, callerAgentTypeId: string | undefined): boolean;
@@ -0,0 +1,7 @@
1
+ export declare function createLoopSessionRecovery(options?: {
2
+ recoveryWindowMs?: number;
3
+ }): {
4
+ isRecovering(sessionID: string): boolean;
5
+ markRecovering(sessionID: string): void;
6
+ clear(sessionID: string): void;
7
+ };
@@ -1,5 +1,4 @@
1
1
  import type { PluginInput } from "@opencode-ai/plugin";
2
- import type { Platform } from "./session-notification-sender";
3
2
  type SessionNotificationConfig = {
4
3
  playSound: boolean;
5
4
  soundPath: string;
@@ -11,11 +10,10 @@ type SessionNotificationConfig = {
11
10
  };
12
11
  export declare function createIdleNotificationScheduler(options: {
13
12
  ctx: PluginInput;
14
- platform: Platform;
15
13
  config: SessionNotificationConfig;
16
14
  hasIncompleteTodos: (ctx: PluginInput, sessionID: string) => Promise<boolean>;
17
- send: (ctx: PluginInput, platform: Platform, sessionID: string) => Promise<void>;
18
- playSound: (ctx: PluginInput, platform: Platform, soundPath: string) => Promise<void>;
15
+ send: (ctx: PluginInput, sessionID: string) => Promise<void>;
16
+ playSound: (ctx: PluginInput, soundPath: string) => Promise<void>;
19
17
  }): {
20
18
  markSessionActivity: (sessionID: string) => void;
21
19
  scheduleIdleNotification: (sessionID: string) => void;
@@ -6,5 +6,6 @@ export declare const getAfplayPath: () => Promise<string | null>;
6
6
  export declare const getPaplayPath: () => Promise<string | null>;
7
7
  export declare const getAplayPath: () => Promise<string | null>;
8
8
  export declare const getTerminalNotifierPath: () => Promise<string | null>;
9
+ export declare const getCmuxPath: () => Promise<string | null>;
9
10
  export declare function startBackgroundCheck(platform: Platform): void;
10
11
  export {};