oh-my-opencode-slim 0.9.12 → 0.9.14
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 +44 -8
- package/dist/agents/index.d.ts +8 -0
- package/dist/agents/observer.d.ts +2 -0
- package/dist/agents/orchestrator.d.ts +9 -2
- package/dist/background/background-manager.d.ts +1 -0
- package/dist/cli/index.js +13831 -225
- package/dist/config/constants.d.ts +13 -3
- package/dist/config/schema.d.ts +3 -0
- package/dist/hooks/image-hook.d.ts +19 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/todo-continuation/index.d.ts +18 -0
- package/dist/hooks/todo-continuation/todo-hygiene.d.ts +5 -0
- package/dist/index.js +40990 -2658
- package/dist/interview/dashboard.d.ts +62 -0
- package/dist/interview/document.d.ts +25 -0
- package/dist/interview/helpers.d.ts +10 -0
- package/dist/interview/manager.d.ts +9 -13
- package/dist/interview/server.d.ts +5 -1
- package/dist/interview/service.d.ts +7 -1
- package/dist/interview/{repository.d.ts → store.d.ts} +2 -5
- package/dist/interview/types.d.ts +51 -1
- package/dist/interview/ui.d.ts +12 -1
- package/dist/tools/quota/api.d.ts +5 -0
- package/dist/tools/quota/command.d.ts +1 -0
- package/dist/tools/quota/index.d.ts +21 -0
- package/dist/tools/quota/types.d.ts +41 -0
- package/dist/tools/smartfetch/utils.d.ts +1 -1
- package/dist/utils/compat.d.ts +30 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/logger.d.ts +5 -0
- package/oh-my-opencode-slim.schema.json +11 -0
- package/package.json +5 -3
- package/dist/hooks/autopilot/index.d.ts +0 -43
- package/dist/interview/schemas.d.ts +0 -27
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
export declare const AGENT_ALIASES: Record<string, string>;
|
|
2
|
-
export declare const SUBAGENT_NAMES: readonly ["explorer", "librarian", "oracle", "designer", "fixer", "council", "councillor", "council-master"];
|
|
2
|
+
export declare const SUBAGENT_NAMES: readonly ["explorer", "librarian", "oracle", "designer", "fixer", "observer", "council", "councillor", "council-master"];
|
|
3
3
|
export declare const ORCHESTRATOR_NAME: "orchestrator";
|
|
4
|
-
export declare const ALL_AGENT_NAMES: readonly ["orchestrator", "explorer", "librarian", "oracle", "designer", "fixer", "council", "councillor", "council-master"];
|
|
4
|
+
export declare const ALL_AGENT_NAMES: readonly ["orchestrator", "explorer", "librarian", "oracle", "designer", "fixer", "observer", "council", "councillor", "council-master"];
|
|
5
5
|
export type AgentName = (typeof ALL_AGENT_NAMES)[number];
|
|
6
|
-
export declare const ORCHESTRATABLE_AGENTS: readonly ["explorer", "librarian", "oracle", "designer", "fixer", "council"];
|
|
6
|
+
export declare const ORCHESTRATABLE_AGENTS: readonly ["explorer", "librarian", "oracle", "designer", "fixer", "observer", "council"];
|
|
7
|
+
/** Agents that cannot be disabled even if listed in disabled_agents config. */
|
|
8
|
+
export declare const PROTECTED_AGENTS: Set<string>;
|
|
9
|
+
/**
|
|
10
|
+
* Get the list of orchestratable agents, excluding any disabled agents.
|
|
11
|
+
* This is used for delegation validation at runtime.
|
|
12
|
+
*/
|
|
13
|
+
export declare function getOrchestratableAgents(disabledAgents?: Set<string>): string[];
|
|
7
14
|
export declare const SUBAGENT_DELEGATION_RULES: Record<AgentName, readonly string[]>;
|
|
8
15
|
export declare const DEFAULT_MODELS: Record<AgentName, string | undefined>;
|
|
9
16
|
export declare const POLL_INTERVAL_MS = 500;
|
|
@@ -17,3 +24,6 @@ export declare const PHASE_REMINDER_TEXT = "Recall Workflow Rules:\nUnderstand \
|
|
|
17
24
|
export declare const TMUX_SPAWN_DELAY_MS = 500;
|
|
18
25
|
export declare const COUNCILLOR_STAGGER_MS = 250;
|
|
19
26
|
export declare const STABLE_POLLS_THRESHOLD = 3;
|
|
27
|
+
/** Agents that are disabled by default. Users must explicitly enable them
|
|
28
|
+
* by removing from disabled_agents and configuring an appropriate model. */
|
|
29
|
+
export declare const DEFAULT_DISABLED_AGENTS: string[];
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -153,6 +153,7 @@ export declare const InterviewConfigSchema: z.ZodObject<{
|
|
|
153
153
|
outputFolder: z.ZodDefault<z.ZodString>;
|
|
154
154
|
autoOpenBrowser: z.ZodDefault<z.ZodBoolean>;
|
|
155
155
|
port: z.ZodDefault<z.ZodNumber>;
|
|
156
|
+
dashboard: z.ZodDefault<z.ZodBoolean>;
|
|
156
157
|
}, z.core.$strip>;
|
|
157
158
|
export type InterviewConfig = z.infer<typeof InterviewConfigSchema>;
|
|
158
159
|
export declare const TodoContinuationConfigSchema: z.ZodObject<{
|
|
@@ -246,6 +247,7 @@ export declare const PluginConfigSchema: z.ZodObject<{
|
|
|
246
247
|
mcps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
247
248
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
248
249
|
}, z.core.$strip>>>;
|
|
250
|
+
disabled_agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
249
251
|
disabled_mcps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
250
252
|
multiplexer: z.ZodOptional<z.ZodObject<{
|
|
251
253
|
type: z.ZodDefault<z.ZodEnum<{
|
|
@@ -288,6 +290,7 @@ export declare const PluginConfigSchema: z.ZodObject<{
|
|
|
288
290
|
outputFolder: z.ZodDefault<z.ZodString>;
|
|
289
291
|
autoOpenBrowser: z.ZodDefault<z.ZodBoolean>;
|
|
290
292
|
port: z.ZodDefault<z.ZodNumber>;
|
|
293
|
+
dashboard: z.ZodDefault<z.ZodBoolean>;
|
|
291
294
|
}, z.core.$strip>>;
|
|
292
295
|
todoContinuation: z.ZodOptional<z.ZodObject<{
|
|
293
296
|
maxContinuations: z.ZodDefault<z.ZodNumber>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface MessageWithParts {
|
|
2
|
+
info: {
|
|
3
|
+
role: string;
|
|
4
|
+
agent?: string;
|
|
5
|
+
sessionID?: string;
|
|
6
|
+
};
|
|
7
|
+
parts: Array<{
|
|
8
|
+
type: string;
|
|
9
|
+
text?: string;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
13
|
+
export declare function processImageAttachments(args: {
|
|
14
|
+
messages: MessageWithParts[];
|
|
15
|
+
workDir: string;
|
|
16
|
+
disabledAgents: Set<string>;
|
|
17
|
+
log: (msg: string) => void;
|
|
18
|
+
}): void;
|
|
19
|
+
export {};
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { createChatHeadersHook } from './chat-headers';
|
|
|
5
5
|
export { createDelegateTaskRetryHook } from './delegate-task-retry';
|
|
6
6
|
export { createFilterAvailableSkillsHook } from './filter-available-skills';
|
|
7
7
|
export { ForegroundFallbackManager, isRateLimitError, } from './foreground-fallback';
|
|
8
|
+
export { processImageAttachments } from './image-hook';
|
|
8
9
|
export { createJsonErrorRecoveryHook } from './json-error-recovery';
|
|
9
10
|
export { createPhaseReminderHook } from './phase-reminder';
|
|
10
11
|
export { createPostFileToolNudgeHook } from './post-file-tool-nudge';
|
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
import type { PluginInput } from '@opencode-ai/plugin';
|
|
2
|
+
interface MessagePart {
|
|
3
|
+
type?: string;
|
|
4
|
+
text?: string;
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
}
|
|
7
|
+
interface ChatTransformMessage {
|
|
8
|
+
info: {
|
|
9
|
+
id?: string;
|
|
10
|
+
role?: string;
|
|
11
|
+
agent?: string;
|
|
12
|
+
sessionID?: string;
|
|
13
|
+
};
|
|
14
|
+
parts: MessagePart[];
|
|
15
|
+
}
|
|
2
16
|
export declare function createTodoContinuationHook(ctx: PluginInput, config?: {
|
|
3
17
|
maxContinuations?: number;
|
|
4
18
|
cooldownMs?: number;
|
|
@@ -15,6 +29,9 @@ export declare function createTodoContinuationHook(ctx: PluginInput, config?: {
|
|
|
15
29
|
}, output: {
|
|
16
30
|
system: string[];
|
|
17
31
|
}) => Promise<void>;
|
|
32
|
+
handleMessagesTransform: (output: {
|
|
33
|
+
messages: ChatTransformMessage[];
|
|
34
|
+
}) => Promise<void>;
|
|
18
35
|
handleEvent: (input: {
|
|
19
36
|
event: {
|
|
20
37
|
type: string;
|
|
@@ -36,3 +53,4 @@ export declare function createTodoContinuationHook(ctx: PluginInput, config?: {
|
|
|
36
53
|
}>;
|
|
37
54
|
}) => Promise<void>;
|
|
38
55
|
};
|
|
56
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const TODO_HYGIENE_REMINDER = "If the active task changed or finished, update the todo list to match the current work state.";
|
|
2
2
|
export declare const TODO_FINAL_ACTIVE_REMINDER = "If you are finishing now, do not leave the active todo in_progress. Mark it completed, or move unfinished work back to pending.";
|
|
3
|
+
export declare const TODO_DELEGATION_RESUME_REMINDER = "A delegated result just returned. Reconcile the todo list before continuing or delegating again.";
|
|
3
4
|
interface ToolInput {
|
|
4
5
|
tool: string;
|
|
5
6
|
sessionID?: string;
|
|
@@ -19,6 +20,9 @@ interface EventInput {
|
|
|
19
20
|
sessionID?: string;
|
|
20
21
|
};
|
|
21
22
|
}
|
|
23
|
+
interface RequestStartInput {
|
|
24
|
+
sessionID: string;
|
|
25
|
+
}
|
|
22
26
|
interface Options {
|
|
23
27
|
getTodoState: (sessionID: string) => Promise<{
|
|
24
28
|
hasOpenTodos: boolean;
|
|
@@ -30,6 +34,7 @@ interface Options {
|
|
|
30
34
|
log?: (message: string, meta?: Record<string, unknown>) => void;
|
|
31
35
|
}
|
|
32
36
|
export declare function createTodoHygiene(options: Options): {
|
|
37
|
+
handleRequestStart(input: RequestStartInput): void;
|
|
33
38
|
handleToolExecuteAfter(input: ToolInput): Promise<void>;
|
|
34
39
|
handleChatSystemTransform(input: SystemInput, output: SystemOutput): Promise<void>;
|
|
35
40
|
handleEvent(event: EventInput): void;
|