oh-my-opencode-slim 2.0.0-beta.13 → 2.0.0-beta.15

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,2 +1,7 @@
1
- import type { InstallArgs } from './types';
1
+ import type { InstallArgs, InstallConfig } from './types';
2
+ export declare function shouldPromptForBackgroundSubagents(config: InstallConfig): boolean;
3
+ export declare function configureBackgroundSubagents(config: InstallConfig): Promise<{
4
+ enabledNow: boolean;
5
+ configuredTarget?: string;
6
+ }>;
2
7
  export declare function install(args: InstallArgs): Promise<number>;
@@ -1,10 +1,13 @@
1
1
  export type BooleanArg = 'yes' | 'no';
2
+ export type BackgroundSubagentsArg = 'ask' | 'yes' | 'no';
2
3
  export interface InstallArgs {
3
4
  tui: boolean;
4
5
  skills?: BooleanArg;
5
6
  preset?: string;
6
7
  dryRun?: boolean;
7
8
  reset?: boolean;
9
+ backgroundSubagents?: BackgroundSubagentsArg;
10
+ backgroundSubagentsTarget?: string;
8
11
  }
9
12
  export interface OpenCodeConfig {
10
13
  plugin?: unknown[];
@@ -19,6 +22,8 @@ export interface InstallConfig {
19
22
  promptForStar?: boolean;
20
23
  dryRun?: boolean;
21
24
  reset: boolean;
25
+ backgroundSubagents: BackgroundSubagentsArg;
26
+ backgroundSubagentsTarget?: string;
22
27
  }
23
28
  export interface ConfigMergeResult {
24
29
  success: boolean;
@@ -20,7 +20,7 @@ export declare const DEFAULT_TIMEOUT_MS: number;
20
20
  export declare const MAX_POLL_TIME_MS: number;
21
21
  export declare const FALLBACK_FAILOVER_TIMEOUT_MS = 15000;
22
22
  export declare const DEFAULT_MAX_SUBAGENT_DEPTH = 3;
23
- export declare const PHASE_REMINDER_TEXT = "!IMPORTANT! Scheduler workflow: plan lanes/dependencies \u2192 dispatch background specialists \u2192 track task IDs \u2192 wait for hook-driven completion or use task_status only when needed \u2192 reconcile terminal results \u2192 verify. Do not consume running-job output or advance dependent work. !END!";
23
+ export declare const PHASE_REMINDER_TEXT = "!IMPORTANT! Scheduler workflow: plan lanes/dependencies \u2192 dispatch background specialists \u2192 track task IDs \u2192 wait for hook-driven completion \u2192 reconcile terminal results \u2192 verify. Do not poll running jobs, consume running-job output, or advance dependent work. !END!";
24
24
  export declare const WRITABLE_FILE_OPERATIONS_RULES = "**File Operations Rules**:\n- Prefer dedicated file tools for normal code work: glob/grep/ast_grep_search for discovery, read for file contents, and edit/write/apply_patch for targeted source changes.\n- Use bash for execution and automation: git, package managers, tests, builds, scripts, diagnostics, and shell-native filesystem operations.\n- Shell is acceptable for bulk or mechanical filesystem changes when it is clearer or safer than many individual edits (for example: truncate generated logs, remove build artifacts, batch rename/move files), especially when the user explicitly asks for that shell operation.\n- Before destructive or broad shell operations, verify the target set and quote paths. Prefer a dry-run/listing first when practical.\n- Do not use cat/head/tail/sed/awk only to read code into context; use read/grep unless a shell pipeline is genuinely the better diagnostic.";
25
25
  export declare const READONLY_FILE_OPERATIONS_RULES = "**File Operations Rules**:\n- READ-ONLY: inspect and report; do not modify files.\n- Prefer dedicated file tools for codebase inspection: glob/grep/ast_grep_search for discovery and read for file contents.\n- Bash is allowed for non-mutating diagnostics and shell-native inspection when it is the clearest tool, but not for modifying files.\n- Do not use cat/head/tail/sed/awk only to read code into context; use read/grep unless a shell pipeline is genuinely the better diagnostic.";
26
26
  export declare const NO_SHELL_READONLY_FILE_OPERATIONS_RULES = "**File Operations Rules**:\n- READ-ONLY: inspect and report; do not modify files.\n- Use glob/grep/ast_grep_search for discovery and read for file contents.\n- Do not use bash or shell commands.";
@@ -176,13 +176,6 @@ export declare const DivoomConfigSchema: z.ZodObject<{
176
176
  gifs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
177
177
  }, z.core.$strip>;
178
178
  export type DivoomConfig = z.infer<typeof DivoomConfigSchema>;
179
- export declare const TodoContinuationConfigSchema: z.ZodObject<{
180
- maxContinuations: z.ZodDefault<z.ZodNumber>;
181
- cooldownMs: z.ZodDefault<z.ZodNumber>;
182
- autoEnable: z.ZodDefault<z.ZodBoolean>;
183
- autoEnableThreshold: z.ZodDefault<z.ZodNumber>;
184
- }, z.core.$strip>;
185
- export type TodoContinuationConfig = z.infer<typeof TodoContinuationConfigSchema>;
186
179
  export declare const FailoverConfigSchema: z.ZodObject<{
187
180
  enabled: z.ZodDefault<z.ZodBoolean>;
188
181
  timeoutMs: z.ZodDefault<z.ZodNumber>;
@@ -332,12 +325,6 @@ export declare const PluginConfigSchema: z.ZodObject<{
332
325
  posterizeBits: z.ZodDefault<z.ZodNumber>;
333
326
  gifs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
334
327
  }, z.core.$strip>>;
335
- todoContinuation: z.ZodOptional<z.ZodObject<{
336
- maxContinuations: z.ZodDefault<z.ZodNumber>;
337
- cooldownMs: z.ZodDefault<z.ZodNumber>;
338
- autoEnable: z.ZodDefault<z.ZodBoolean>;
339
- autoEnableThreshold: z.ZodDefault<z.ZodNumber>;
340
- }, z.core.$strip>>;
341
328
  fallback: z.ZodOptional<z.ZodObject<{
342
329
  enabled: z.ZodDefault<z.ZodBoolean>;
343
330
  timeoutMs: z.ZodDefault<z.ZodNumber>;
@@ -11,4 +11,3 @@ export { createJsonErrorRecoveryHook } from './json-error-recovery';
11
11
  export { createPhaseReminderHook } from './phase-reminder';
12
12
  export { createPostFileToolNudgeHook } from './post-file-tool-nudge';
13
13
  export { createTaskSessionManagerHook } from './task-session-manager';
14
- export { createTodoContinuationHook } from './todo-continuation';
@@ -1,4 +1,4 @@
1
- export declare const PHASE_REMINDER = "<internal_reminder>!IMPORTANT! Scheduler workflow: plan lanes/dependencies \u2192 dispatch background specialists \u2192 track task IDs \u2192 wait for hook-driven completion or use task_status only when needed \u2192 reconcile terminal results \u2192 verify. Do not consume running-job output or advance dependent work. !END!</internal_reminder>";
1
+ export declare const PHASE_REMINDER = "<internal_reminder>!IMPORTANT! Scheduler workflow: plan lanes/dependencies \u2192 dispatch background specialists \u2192 track task IDs \u2192 wait for hook-driven completion \u2192 reconcile terminal results \u2192 verify. Do not poll running jobs, consume running-job output, or advance dependent work. !END!</internal_reminder>";
2
2
  interface MessageInfo {
3
3
  role: string;
4
4
  agent?: string;