@raindrop-ai/opencode-plugin 0.0.1 → 0.0.3
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/dist/index.cjs +582 -281
- package/dist/index.d.cts +2 -34
- package/dist/index.d.ts +2 -34
- package/dist/index.js +582 -281
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PluginInput } from '@opencode-ai/plugin';
|
|
1
|
+
import { PluginInput, Hooks } from '@opencode-ai/plugin';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Raindrop plugin for OpenCode.
|
|
@@ -12,38 +12,6 @@ import { PluginInput } from '@opencode-ai/plugin';
|
|
|
12
12
|
*
|
|
13
13
|
* Optional config file: ~/.config/opencode/raindrop.json or .opencode/raindrop.json
|
|
14
14
|
*/
|
|
15
|
-
declare function plugin(input: PluginInput): Promise<
|
|
16
|
-
hooks: {};
|
|
17
|
-
} | {
|
|
18
|
-
hooks: {
|
|
19
|
-
event: ({ event, }: {
|
|
20
|
-
event: {
|
|
21
|
-
type: string;
|
|
22
|
-
properties: Record<string, unknown>;
|
|
23
|
-
};
|
|
24
|
-
}) => Promise<void>;
|
|
25
|
-
"chat.message": (messageInput: {
|
|
26
|
-
sessionID: string;
|
|
27
|
-
agent?: unknown;
|
|
28
|
-
model?: unknown;
|
|
29
|
-
}, output: {
|
|
30
|
-
parts?: Array<Record<string, unknown>>;
|
|
31
|
-
} | undefined) => Promise<void>;
|
|
32
|
-
"tool.execute.before": (toolInput: {
|
|
33
|
-
tool: string;
|
|
34
|
-
sessionID: string;
|
|
35
|
-
callID: string;
|
|
36
|
-
}, _output: unknown) => Promise<void>;
|
|
37
|
-
"tool.execute.after": (toolInput: {
|
|
38
|
-
tool: string;
|
|
39
|
-
sessionID: string;
|
|
40
|
-
callID: string;
|
|
41
|
-
}, result: {
|
|
42
|
-
output?: unknown;
|
|
43
|
-
metadata?: unknown;
|
|
44
|
-
title?: string;
|
|
45
|
-
}) => Promise<void>;
|
|
46
|
-
};
|
|
47
|
-
}>;
|
|
15
|
+
declare function plugin(input: PluginInput): Promise<Hooks>;
|
|
48
16
|
|
|
49
17
|
export { plugin as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PluginInput } from '@opencode-ai/plugin';
|
|
1
|
+
import { PluginInput, Hooks } from '@opencode-ai/plugin';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Raindrop plugin for OpenCode.
|
|
@@ -12,38 +12,6 @@ import { PluginInput } from '@opencode-ai/plugin';
|
|
|
12
12
|
*
|
|
13
13
|
* Optional config file: ~/.config/opencode/raindrop.json or .opencode/raindrop.json
|
|
14
14
|
*/
|
|
15
|
-
declare function plugin(input: PluginInput): Promise<
|
|
16
|
-
hooks: {};
|
|
17
|
-
} | {
|
|
18
|
-
hooks: {
|
|
19
|
-
event: ({ event, }: {
|
|
20
|
-
event: {
|
|
21
|
-
type: string;
|
|
22
|
-
properties: Record<string, unknown>;
|
|
23
|
-
};
|
|
24
|
-
}) => Promise<void>;
|
|
25
|
-
"chat.message": (messageInput: {
|
|
26
|
-
sessionID: string;
|
|
27
|
-
agent?: unknown;
|
|
28
|
-
model?: unknown;
|
|
29
|
-
}, output: {
|
|
30
|
-
parts?: Array<Record<string, unknown>>;
|
|
31
|
-
} | undefined) => Promise<void>;
|
|
32
|
-
"tool.execute.before": (toolInput: {
|
|
33
|
-
tool: string;
|
|
34
|
-
sessionID: string;
|
|
35
|
-
callID: string;
|
|
36
|
-
}, _output: unknown) => Promise<void>;
|
|
37
|
-
"tool.execute.after": (toolInput: {
|
|
38
|
-
tool: string;
|
|
39
|
-
sessionID: string;
|
|
40
|
-
callID: string;
|
|
41
|
-
}, result: {
|
|
42
|
-
output?: unknown;
|
|
43
|
-
metadata?: unknown;
|
|
44
|
-
title?: string;
|
|
45
|
-
}) => Promise<void>;
|
|
46
|
-
};
|
|
47
|
-
}>;
|
|
15
|
+
declare function plugin(input: PluginInput): Promise<Hooks>;
|
|
48
16
|
|
|
49
17
|
export { plugin as default };
|