@raindrop-ai/opencode-plugin 0.1.2 → 0.1.4
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 +4 -0
- package/dist/index.cjs +1155 -308
- package/dist/index.d.cts +15 -2
- package/dist/index.d.ts +15 -2
- package/dist/index.js +1155 -308
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { Hooks, PluginInput } from '@opencode-ai/plugin';
|
|
2
2
|
|
|
3
|
+
/** Kept structural so public integration declarations do not depend on private schemas. */
|
|
4
|
+
type AppGitOptions = {
|
|
5
|
+
commitSha?: string | null;
|
|
6
|
+
commitDirty?: boolean | null;
|
|
7
|
+
branch?: string | null;
|
|
8
|
+
detectBranch?: boolean;
|
|
9
|
+
sourceDirectory?: string;
|
|
10
|
+
autoDetect?: boolean;
|
|
11
|
+
};
|
|
3
12
|
type IdentifyInput = {
|
|
4
13
|
userId: string;
|
|
5
14
|
traits?: Record<string, unknown>;
|
|
@@ -68,6 +77,10 @@ declare global {
|
|
|
68
77
|
var RAINDROP_ASYNC_LOCAL_STORAGE: (new <T>() => AsyncLocalStorageLike<T>) | undefined;
|
|
69
78
|
}
|
|
70
79
|
|
|
80
|
+
interface RaindropOpencodeOptions {
|
|
81
|
+
/** Application Git identity override. false disables enrichment. */
|
|
82
|
+
appGit?: AppGitOptions | false;
|
|
83
|
+
}
|
|
71
84
|
/**
|
|
72
85
|
* The Raindrop control handle exposed alongside the OpenCode hooks.
|
|
73
86
|
*
|
|
@@ -114,6 +127,6 @@ type RaindropOpencodeHooks = Hooks & {
|
|
|
114
127
|
*
|
|
115
128
|
* Optional config file: ~/.config/opencode/raindrop.json or .opencode/raindrop.json
|
|
116
129
|
*/
|
|
117
|
-
declare function plugin(input: PluginInput): Promise<RaindropOpencodeHooks>;
|
|
130
|
+
declare function plugin(input: PluginInput, opts?: RaindropOpencodeOptions): Promise<RaindropOpencodeHooks>;
|
|
118
131
|
|
|
119
|
-
export { type IdentifyInput, type RaindropOpencodeHandle, type RaindropOpencodeHooks, plugin as default };
|
|
132
|
+
export { type IdentifyInput, type RaindropOpencodeHandle, type RaindropOpencodeHooks, type RaindropOpencodeOptions, plugin as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { Hooks, PluginInput } from '@opencode-ai/plugin';
|
|
2
2
|
|
|
3
|
+
/** Kept structural so public integration declarations do not depend on private schemas. */
|
|
4
|
+
type AppGitOptions = {
|
|
5
|
+
commitSha?: string | null;
|
|
6
|
+
commitDirty?: boolean | null;
|
|
7
|
+
branch?: string | null;
|
|
8
|
+
detectBranch?: boolean;
|
|
9
|
+
sourceDirectory?: string;
|
|
10
|
+
autoDetect?: boolean;
|
|
11
|
+
};
|
|
3
12
|
type IdentifyInput = {
|
|
4
13
|
userId: string;
|
|
5
14
|
traits?: Record<string, unknown>;
|
|
@@ -68,6 +77,10 @@ declare global {
|
|
|
68
77
|
var RAINDROP_ASYNC_LOCAL_STORAGE: (new <T>() => AsyncLocalStorageLike<T>) | undefined;
|
|
69
78
|
}
|
|
70
79
|
|
|
80
|
+
interface RaindropOpencodeOptions {
|
|
81
|
+
/** Application Git identity override. false disables enrichment. */
|
|
82
|
+
appGit?: AppGitOptions | false;
|
|
83
|
+
}
|
|
71
84
|
/**
|
|
72
85
|
* The Raindrop control handle exposed alongside the OpenCode hooks.
|
|
73
86
|
*
|
|
@@ -114,6 +127,6 @@ type RaindropOpencodeHooks = Hooks & {
|
|
|
114
127
|
*
|
|
115
128
|
* Optional config file: ~/.config/opencode/raindrop.json or .opencode/raindrop.json
|
|
116
129
|
*/
|
|
117
|
-
declare function plugin(input: PluginInput): Promise<RaindropOpencodeHooks>;
|
|
130
|
+
declare function plugin(input: PluginInput, opts?: RaindropOpencodeOptions): Promise<RaindropOpencodeHooks>;
|
|
118
131
|
|
|
119
|
-
export { type IdentifyInput, type RaindropOpencodeHandle, type RaindropOpencodeHooks, plugin as default };
|
|
132
|
+
export { type IdentifyInput, type RaindropOpencodeHandle, type RaindropOpencodeHooks, type RaindropOpencodeOptions, plugin as default };
|