oh-my-opencode-slim 0.9.2 → 0.9.5

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.
@@ -146,6 +146,13 @@ export declare const BackgroundTaskConfigSchema: z.ZodObject<{
146
146
  maxConcurrentStarts: z.ZodDefault<z.ZodNumber>;
147
147
  }, z.core.$strip>;
148
148
  export type BackgroundTaskConfig = z.infer<typeof BackgroundTaskConfigSchema>;
149
+ export declare const TodoContinuationConfigSchema: z.ZodObject<{
150
+ maxContinuations: z.ZodDefault<z.ZodNumber>;
151
+ cooldownMs: z.ZodDefault<z.ZodNumber>;
152
+ autoEnable: z.ZodDefault<z.ZodBoolean>;
153
+ autoEnableThreshold: z.ZodDefault<z.ZodNumber>;
154
+ }, z.core.$strip>;
155
+ export type TodoContinuationConfig = z.infer<typeof TodoContinuationConfigSchema>;
149
156
  export declare const FailoverConfigSchema: z.ZodObject<{
150
157
  enabled: z.ZodDefault<z.ZodBoolean>;
151
158
  timeoutMs: z.ZodDefault<z.ZodNumber>;
@@ -265,6 +272,12 @@ export declare const PluginConfigSchema: z.ZodObject<{
265
272
  background: z.ZodOptional<z.ZodObject<{
266
273
  maxConcurrentStarts: z.ZodDefault<z.ZodNumber>;
267
274
  }, z.core.$strip>>;
275
+ todoContinuation: z.ZodOptional<z.ZodObject<{
276
+ maxContinuations: z.ZodDefault<z.ZodNumber>;
277
+ cooldownMs: z.ZodDefault<z.ZodNumber>;
278
+ autoEnable: z.ZodDefault<z.ZodBoolean>;
279
+ autoEnableThreshold: z.ZodDefault<z.ZodNumber>;
280
+ }, z.core.$strip>>;
268
281
  fallback: z.ZodOptional<z.ZodObject<{
269
282
  enabled: z.ZodDefault<z.ZodBoolean>;
270
283
  timeoutMs: z.ZodDefault<z.ZodNumber>;
@@ -7,3 +7,4 @@ export { ForegroundFallbackManager, isRateLimitError, } from './foreground-fallb
7
7
  export { createJsonErrorRecoveryHook } from './json-error-recovery';
8
8
  export { createPhaseReminderHook } from './phase-reminder';
9
9
  export { createPostFileToolNudgeHook } from './post-file-tool-nudge';
10
+ export { createTodoContinuationHook } from './todo-continuation';
@@ -0,0 +1,25 @@
1
+ import type { PluginInput } from '@opencode-ai/plugin';
2
+ export declare function createTodoContinuationHook(ctx: PluginInput, config?: {
3
+ maxContinuations?: number;
4
+ cooldownMs?: number;
5
+ autoEnable?: boolean;
6
+ autoEnableThreshold?: number;
7
+ }): {
8
+ tool: Record<string, unknown>;
9
+ handleEvent: (input: {
10
+ event: {
11
+ type: string;
12
+ properties?: Record<string, unknown>;
13
+ };
14
+ }) => Promise<void>;
15
+ handleCommandExecuteBefore: (input: {
16
+ command: string;
17
+ sessionID: string;
18
+ arguments: string;
19
+ }, output: {
20
+ parts: Array<{
21
+ type: string;
22
+ text?: string;
23
+ }>;
24
+ }) => Promise<void>;
25
+ };