@engineer-ai/plugin 1.4.2 → 1.5.1
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 +9 -7
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Event,
|
|
1
|
+
import type { Event, createEngineerClient, Project, Model, Provider, Permission, UserMessage, Message, Part, Auth, Config } from "@engineer-ai/sdk";
|
|
2
2
|
import type { BunShell } from "./shell";
|
|
3
3
|
import { type ToolDefinition } from "./tool";
|
|
4
4
|
export * from "./tool";
|
|
@@ -8,7 +8,7 @@ export type ProviderContext = {
|
|
|
8
8
|
options: Record<string, any>;
|
|
9
9
|
};
|
|
10
10
|
export type PluginInput = {
|
|
11
|
-
client: ReturnType<typeof
|
|
11
|
+
client: ReturnType<typeof createEngineerClient>;
|
|
12
12
|
project: Project;
|
|
13
13
|
directory: string;
|
|
14
14
|
worktree: string;
|
|
@@ -258,19 +258,21 @@ export interface Hooks {
|
|
|
258
258
|
success: boolean;
|
|
259
259
|
}) => Promise<void>;
|
|
260
260
|
/**
|
|
261
|
-
* Called when
|
|
261
|
+
* Called when files are changed (edited or written)
|
|
262
262
|
*/
|
|
263
263
|
"chat.file.changed"?: (input: {
|
|
264
|
-
|
|
265
|
-
|
|
264
|
+
changes: Array<{
|
|
265
|
+
filepath: string;
|
|
266
|
+
diff: string;
|
|
267
|
+
directory: string;
|
|
268
|
+
}>;
|
|
266
269
|
sessionID: string;
|
|
267
270
|
/** The most recent user message ID that this file change belongs to */
|
|
268
271
|
messageId: string;
|
|
269
272
|
title: string;
|
|
270
273
|
userId: string;
|
|
271
274
|
username: string;
|
|
272
|
-
/**
|
|
273
|
-
directory: string;
|
|
275
|
+
/** Access token for Authorization header (not included in request body) */
|
|
274
276
|
accessToken: string;
|
|
275
277
|
}, output: {}) => Promise<void>;
|
|
276
278
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@engineer-ai/plugin",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@engineer-ai/sdk": "1.
|
|
25
|
+
"@engineer-ai/sdk": "1.5.0",
|
|
26
26
|
"zod": "4.1.8"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|