@nikcli-ai/plugin 1.225.0 → 1.240.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 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>;
@@ -1,4 +1,4 @@
1
- import type { Agent, Command, ConnectorStatus, Event, McpResource, McpStatus, Message, Model, NikcliClient, Part, PermissionRequest, PermissionRule, Provider, Pty, QuestionRequest, ReferenceConfig, Session, SessionEntryAssistantReasoning, SessionEntryAssistantRetry, SessionEntryAssistantText, SessionEntryAssistantTool, SessionEntrySynthetic, SessionEntryUser } from "@nikcli-ai/sdk/v2";
1
+ import type { Agent, Command, ConnectorStatus, Event, McpResource, McpStatus, Message, Model, NikcliClient, Part, PermissionRequest, PermissionRule, Provider, Pty, QuestionRequest, ReferenceConfig, Session, SessionEntry } from "@nikcli-ai/sdk/v2";
2
2
  import type { JSX } from "@opentui/solid";
3
3
  import type { Store } from "solid-js/store";
4
4
  export type LocationRef = {
@@ -6,7 +6,10 @@ export type LocationRef = {
6
6
  readonly workspaceID?: string;
7
7
  };
8
8
  export type SessionInfo = Session;
9
- export type SessionPendingInfo = SessionEntryUser | SessionEntrySynthetic | SessionEntryAssistantText | SessionEntryAssistantReasoning | SessionEntryAssistantTool | SessionEntryAssistantRetry;
9
+ /** A live v2 entry — flat, discriminated on `type` (see session/v2/entry.ts). */
10
+ export type SessionPendingInfo = SessionEntry;
11
+ /** A persisted v2 entry: the whole conversation, flat. */
12
+ export type SessionEntryInfo = SessionEntry;
10
13
  export type SessionMessageInfo = {
11
14
  readonly info: Message;
12
15
  readonly parts: Part[];
@@ -67,6 +70,16 @@ export interface Data {
67
70
  get(sessionID: string, messageID: string): SessionMessageInfo | undefined;
68
71
  refresh(sessionID: string): Promise<void>;
69
72
  };
73
+ /**
74
+ * The conversation as flat v2 entries — user, start, text, reasoning,
75
+ * tool, subtask, complete, retry, compaction. Backed by the persisted
76
+ * projection, so it covers committed and in-flight work alike; `pending`
77
+ * is the sub-flush-interval streaming tail on top of it.
78
+ */
79
+ readonly entry: {
80
+ list(sessionID: string): SessionEntryInfo[];
81
+ refresh(sessionID: string): Promise<void>;
82
+ };
70
83
  readonly permission: {
71
84
  list(sessionID: string): PermissionV2Request[] | undefined;
72
85
  refresh(sessionID: string): 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.240.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.240.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"