@anthonyhaussman/opencode-agy-auth 1.2.3-alpha.2 → 1.2.3-alpha.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.js +141 -48
- package/dist/index.js.map +1 -1
- package/dist/src/plugin/types.d.ts +6 -2
- package/package.json +1 -1
|
@@ -33,7 +33,9 @@ export interface OpenCodeV2TransformRegistry<T = any> {
|
|
|
33
33
|
transform: (fn: (target: T) => Promise<void> | void) => void;
|
|
34
34
|
}
|
|
35
35
|
export interface OpenCodeV2SessionRegistry {
|
|
36
|
-
hook: (name: string, handler: (...args: any[]) => any
|
|
36
|
+
hook: (name: string, handler: (...args: any[]) => any, options?: {
|
|
37
|
+
providerID?: string;
|
|
38
|
+
}) => void;
|
|
37
39
|
}
|
|
38
40
|
export interface OpenCodeV2PluginLocation {
|
|
39
41
|
root?: string;
|
|
@@ -44,7 +46,9 @@ export interface OpenCodeV2PluginContext {
|
|
|
44
46
|
tool: OpenCodeV2TransformRegistry;
|
|
45
47
|
command: OpenCodeV2TransformRegistry;
|
|
46
48
|
session: OpenCodeV2SessionRegistry;
|
|
47
|
-
integration
|
|
49
|
+
integration?: OpenCodeV2TransformRegistry | {
|
|
50
|
+
transform?: (transformer: (editor: any) => void) => void;
|
|
51
|
+
};
|
|
48
52
|
location: OpenCodeV2PluginLocation;
|
|
49
53
|
}
|
|
50
54
|
export interface OpenCodeV2PluginDefinition {
|