oh-my-opencode-slim 1.0.3 → 1.0.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 +9 -3
- package/dist/cli/config-io.d.ts +2 -0
- package/dist/cli/index.js +213 -9
- package/dist/cli/install.d.ts +1 -1
- package/dist/cli/paths.d.ts +4 -0
- package/dist/cli/providers.d.ts +36 -2
- package/dist/cli/types.d.ts +3 -0
- package/dist/config/constants.d.ts +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/loader.d.ts +9 -0
- package/dist/config/runtime-preset.d.ts +12 -0
- package/dist/hooks/apply-patch/matching.d.ts +9 -1
- package/dist/hooks/apply-patch/rewrite.d.ts +0 -3
- package/dist/hooks/phase-reminder/index.d.ts +1 -1
- package/dist/hooks/post-file-tool-nudge/index.d.ts +3 -19
- package/dist/hooks/task-session-manager/index.d.ts +16 -4
- package/dist/hooks/todo-continuation/index.d.ts +2 -5
- package/dist/hooks/todo-continuation/todo-hygiene.d.ts +2 -8
- package/dist/index.js +589 -277
- package/dist/multiplexer/session-manager.d.ts +3 -0
- package/dist/tui.d.ts +5 -0
- package/dist/tui.js +86 -0
- package/package.json +15 -2
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import type { PluginInput } from '@opencode-ai/plugin';
|
|
2
|
+
interface ChatMessagePart {
|
|
3
|
+
type: string;
|
|
4
|
+
text?: string;
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
}
|
|
7
|
+
interface ChatMessage {
|
|
8
|
+
info: {
|
|
9
|
+
role: string;
|
|
10
|
+
agent?: string;
|
|
11
|
+
sessionID?: string;
|
|
12
|
+
};
|
|
13
|
+
parts: ChatMessagePart[];
|
|
14
|
+
}
|
|
2
15
|
export declare function createTaskSessionManagerHook(_ctx: PluginInput, options: {
|
|
3
16
|
maxSessionsPerAgent: number;
|
|
4
17
|
readContextMinLines?: number;
|
|
@@ -20,10 +33,8 @@ export declare function createTaskSessionManagerHook(_ctx: PluginInput, options:
|
|
|
20
33
|
output: unknown;
|
|
21
34
|
metadata?: unknown;
|
|
22
35
|
}) => Promise<void>;
|
|
23
|
-
'experimental.chat.
|
|
24
|
-
|
|
25
|
-
}, output: {
|
|
26
|
-
system: string[];
|
|
36
|
+
'experimental.chat.messages.transform': (_input: Record<string, never>, output: {
|
|
37
|
+
messages: ChatMessage[];
|
|
27
38
|
}) => Promise<void>;
|
|
28
39
|
event: (input: {
|
|
29
40
|
event: {
|
|
@@ -38,3 +49,4 @@ export declare function createTaskSessionManagerHook(_ctx: PluginInput, options:
|
|
|
38
49
|
};
|
|
39
50
|
}) => Promise<void>;
|
|
40
51
|
};
|
|
52
|
+
export {};
|
|
@@ -23,11 +23,8 @@ export declare function createTodoContinuationHook(ctx: PluginInput, config?: {
|
|
|
23
23
|
handleToolExecuteAfter: (input: {
|
|
24
24
|
tool: string;
|
|
25
25
|
sessionID?: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
sessionID?: string;
|
|
29
|
-
}, output: {
|
|
30
|
-
system: string[];
|
|
26
|
+
}, output?: {
|
|
27
|
+
output?: unknown;
|
|
31
28
|
}) => Promise<void>;
|
|
32
29
|
handleMessagesTransform: (output: {
|
|
33
30
|
messages: ChatTransformMessage[];
|
|
@@ -4,12 +4,6 @@ interface ToolInput {
|
|
|
4
4
|
tool: string;
|
|
5
5
|
sessionID?: string;
|
|
6
6
|
}
|
|
7
|
-
interface SystemInput {
|
|
8
|
-
sessionID?: string;
|
|
9
|
-
}
|
|
10
|
-
interface SystemOutput {
|
|
11
|
-
system: string[];
|
|
12
|
-
}
|
|
13
7
|
interface EventInput {
|
|
14
8
|
type: string;
|
|
15
9
|
properties?: {
|
|
@@ -34,8 +28,8 @@ interface Options {
|
|
|
34
28
|
}
|
|
35
29
|
export declare function createTodoHygiene(options: Options): {
|
|
36
30
|
handleRequestStart(input: RequestStartInput): void;
|
|
37
|
-
handleToolExecuteAfter(input: ToolInput): Promise<void>;
|
|
38
|
-
|
|
31
|
+
handleToolExecuteAfter(input: ToolInput, _output?: unknown): Promise<void>;
|
|
32
|
+
getPendingReminder(sessionID: string): string | null;
|
|
39
33
|
handleEvent(event: EventInput): void;
|
|
40
34
|
};
|
|
41
35
|
export {};
|