@engineer-ai/plugin 1.4.1 → 1.5.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +14 -2
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Event, createOpencodeClient, Project, Model, Provider, Permission, UserMessage, Message, Part, Auth, Config } from "@engineer-ai/sdk";
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 createOpencodeClient>;
11
+ client: ReturnType<typeof createEngineerClient>;
12
12
  project: Project;
13
13
  directory: string;
14
14
  worktree: string;
@@ -213,6 +213,18 @@ export interface Hooks {
213
213
  agent?: string;
214
214
  }, output: {
215
215
  additionalContext?: string;
216
+ marker?: string;
217
+ }) => Promise<void>;
218
+ "chat.user.prompt.emphasize"?: (input: {
219
+ userPrompt?: string;
220
+ sessionID?: string;
221
+ model?: {
222
+ providerID: string;
223
+ modelID: string;
224
+ };
225
+ agent?: string;
226
+ }, output: {
227
+ text?: string;
216
228
  }) => Promise<void>;
217
229
  /**
218
230
  * Called before session compaction starts. Allows plugins to customize
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.1",
4
+ "version": "1.5.0",
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.4.0",
25
+ "@engineer-ai/sdk": "1.5.0",
26
26
  "zod": "4.1.8"
27
27
  },
28
28
  "devDependencies": {