@nikcli-ai/plugin 1.225.0 → 1.235.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 +21 -0
  2. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -179,6 +179,27 @@ export interface Hooks {
179
179
  topK: number;
180
180
  options: Record<string, any>;
181
181
  }) => Promise<void>;
182
+ "chat.headers"?: (input: {
183
+ sessionID: string;
184
+ agent: string;
185
+ model: Model;
186
+ provider: ProviderContext;
187
+ message: UserMessage;
188
+ }, output: {
189
+ headers: Record<string, string>;
190
+ }) => Promise<void>;
191
+ /**
192
+ * Modify the final serialized HTTP request immediately before dispatch.
193
+ */
194
+ "chat.request"?: (input: {
195
+ sessionID: string;
196
+ agent: string;
197
+ model: Model;
198
+ }, output: {
199
+ url: string;
200
+ headers: Record<string, string>;
201
+ body: string | undefined;
202
+ }) => Promise<void>;
182
203
  "permission.ask"?: (input: PermissionRequest, output: {
183
204
  status: "ask" | "deny" | "allow";
184
205
  }) => Promise<void>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@nikcli-ai/plugin",
4
- "version": "1.225.0",
4
+ "version": "1.235.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -65,9 +65,9 @@
65
65
  }
66
66
  },
67
67
  "dependencies": {
68
- "@nikcli-ai/sdk": "1.225.0",
69
- "@opentui/core": "0.1.91",
70
- "@opentui/solid": "0.1.91",
68
+ "@nikcli-ai/sdk": "1.235.0",
69
+ "@opentui/core": "0.4.5",
70
+ "@opentui/solid": "0.4.5",
71
71
  "effect": "4.0.0-beta.83",
72
72
  "solid-js": "1.9.10",
73
73
  "zod": "4.1.8"