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.
- package/README.md +5 -1
- package/dist/cli/index.js +155 -13690
- package/dist/config/schema.d.ts +13 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/todo-continuation/index.d.ts +25 -0
- package/dist/index.js +7273 -34569
- package/dist/multiplexer/zellij/index.d.ts +0 -2
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/smartfetch/binary.d.ts +3 -0
- package/dist/tools/smartfetch/cache.d.ts +6 -0
- package/dist/tools/smartfetch/constants.d.ts +12 -0
- package/dist/tools/smartfetch/index.d.ts +3 -0
- package/dist/tools/smartfetch/network.d.ts +38 -0
- package/dist/tools/smartfetch/secondary-model.d.ts +28 -0
- package/dist/tools/smartfetch/tool.d.ts +3 -0
- package/dist/tools/smartfetch/types.d.ts +122 -0
- package/dist/tools/smartfetch/utils.d.ts +18 -0
- package/oh-my-opencode-slim.schema.json +31 -0
- package/package.json +9 -2
package/dist/config/schema.d.ts
CHANGED
|
@@ -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>;
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -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
|
+
};
|