@ericsanchezok/synergy-plugin 0.0.3 → 1.1.0
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.d.ts +20 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Event, createSynergyClient,
|
|
1
|
+
import type { Event, createSynergyClient, Model, Provider, PermissionRequest, UserMessage, Message, Part, Auth, Config } from "@ericsanchezok/synergy-sdk";
|
|
2
2
|
import type { BunShell } from "./shell";
|
|
3
3
|
import { type ToolDefinition } from "./tool";
|
|
4
4
|
export * from "./tool";
|
|
@@ -9,7 +9,24 @@ export type ProviderContext = {
|
|
|
9
9
|
};
|
|
10
10
|
export type PluginInput = {
|
|
11
11
|
client: ReturnType<typeof createSynergyClient>;
|
|
12
|
-
|
|
12
|
+
scope: {
|
|
13
|
+
type: "global" | "project";
|
|
14
|
+
id: string;
|
|
15
|
+
directory: string;
|
|
16
|
+
worktree: string;
|
|
17
|
+
vcs?: "git";
|
|
18
|
+
name?: string;
|
|
19
|
+
icon?: {
|
|
20
|
+
url?: string;
|
|
21
|
+
color?: string;
|
|
22
|
+
};
|
|
23
|
+
sandboxes?: string[];
|
|
24
|
+
time?: {
|
|
25
|
+
created: number;
|
|
26
|
+
updated: number;
|
|
27
|
+
initialized?: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
13
30
|
directory: string;
|
|
14
31
|
worktree: string;
|
|
15
32
|
serverUrl: URL;
|
|
@@ -143,7 +160,7 @@ export interface Hooks {
|
|
|
143
160
|
topK: number;
|
|
144
161
|
options: Record<string, any>;
|
|
145
162
|
}) => Promise<void>;
|
|
146
|
-
"permission.ask"?: (input:
|
|
163
|
+
"permission.ask"?: (input: PermissionRequest, output: {
|
|
147
164
|
status: "ask" | "deny" | "allow";
|
|
148
165
|
}) => Promise<void>;
|
|
149
166
|
"tool.execute.before"?: (input: {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@ericsanchezok/synergy-plugin",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/
|
|
9
|
+
"url": "https://github.com/SII-Holos/holos-synergy.git"
|
|
10
10
|
},
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"registry": "https://registry.npmjs.org",
|