@nyte-ai/plugin 0.0.21 → 0.0.23

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.
@@ -13,7 +13,7 @@ import {
13
13
  } from "./billing-bv5zr32b.js";
14
14
 
15
15
  // src/canvas/canvas-compile.ts
16
- import { init, parse } from "es-module-lexer";
16
+ import { init, parse } from "es-module-lexer/minimal";
17
17
  import { transform } from "sucrase";
18
18
  var EXTERNAL = new Map([
19
19
  ["react", { value: `globalThis.${CANVAS_GLOBAL2}.react`, names: REACT_EXPORTS2 }],
@@ -216,7 +216,7 @@ async function compileCanvas2(source, files = {}, limits = {}) {
216
216
  }
217
217
  if (errors.length > 0)
218
218
  return failed(errors);
219
- await init;
219
+ await init();
220
220
  const externals = new Set;
221
221
  const units = sources.flatMap(([name = "", text = ""]) => {
222
222
  const unit = checkFile(name, text, names, errors, externals);
@@ -10,12 +10,12 @@ import {
10
10
  ndJsonStream,
11
11
  PROTOCOL_VERSION,
12
12
  RequestError
13
- } from "@agentclientprotocol/sdk";
13
+ } from "@agentclientprotocol/sdk/unstable";
14
14
  import { processEnvironment } from "@nyte-ai/core";
15
15
  // package.json
16
16
  var package_default = {
17
17
  name: "@nyte-ai/plugin",
18
- version: "0.0.21",
18
+ version: "0.0.23",
19
19
  private: false,
20
20
  license: "MIT",
21
21
  repository: {
@@ -199,33 +199,33 @@ var package_default = {
199
199
  "build:package": "bun ../../scripts/sdk-packages.mjs build plugin"
200
200
  },
201
201
  dependencies: {
202
- "@agentclientprotocol/sdk": "1.9.0",
203
- "@anthropic-ai/claude-agent-sdk": "0.3.296",
204
- "@earendil-works/pi-codemode": "1.0.0",
202
+ "@agentclientprotocol/sdk": "^2.0.0",
203
+ "@anthropic-ai/claude-agent-sdk": "^0.3.306",
204
+ "@earendil-works/pi-codemode": "^1.3.0",
205
205
  "@nyte-ai/ai": "workspace:*",
206
206
  "@nyte-ai/core": "workspace:*",
207
207
  "@nyte-ai/schema": "workspace:*",
208
- "@opentelemetry/api": "^1.9.1",
209
- "@opentelemetry/exporter-trace-otlp-http": "^0.223.0",
210
- "@opentelemetry/resources": "^2.12.0",
211
- "@opentelemetry/sdk-trace": "^2.12.0",
208
+ "@opentelemetry/api": "^1.10.0",
209
+ "@opentelemetry/exporter-trace-otlp-http": "^0.300.0",
210
+ "@opentelemetry/resources": "^3.0.0",
211
+ "@opentelemetry/sdk-trace": "^3.0.0",
212
212
  "@opentelemetry/semantic-conventions": "^1.43.0",
213
- "es-module-lexer": "2.3.2",
214
- sucrase: "3.35.1",
215
- typebox: "1.3.36",
216
- zod: "4.5.4"
213
+ "es-module-lexer": "^3.0.4",
214
+ sucrase: "^3.35.1",
215
+ typebox: "^1.4.2",
216
+ zod: "^4.6.7"
217
217
  },
218
218
  devDependencies: {
219
219
  "@opentui/core": "^0.6.6",
220
220
  "@types/node": "^26.6.5",
221
- "@types/react": "19.3.0",
222
- react: "19.3.0",
221
+ "@types/react": "^19.3.0",
222
+ react: "^19.3.1",
223
223
  typescript: "6.0.3",
224
224
  vitest: "^5.0.5"
225
225
  },
226
226
  peerDependencies: {
227
- "@opentui/core": "^0.6.5",
228
- react: "^19.2.0"
227
+ "@opentui/core": "^0.6.6",
228
+ react: "^19.3.1"
229
229
  },
230
230
  peerDependenciesMeta: {
231
231
  "@opentui/core": {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AcpProcess2
3
- } from "../../chunks/billing-wqjabjnc.js";
3
+ } from "../../chunks/billing-r2ftaajy.js";
4
4
  import"../../chunks/billing-svrhh5a5.js";
5
5
  import"../../chunks/billing-9nn3yp18.js";
6
6
  export {
@@ -8,7 +8,7 @@ import {
8
8
  import"../../chunks/billing-svrhh5a5.js";
9
9
  import {
10
10
  AcpProcess2
11
- } from "../../chunks/billing-wqjabjnc.js";
11
+ } from "../../chunks/billing-r2ftaajy.js";
12
12
  import"../../chunks/billing-4vz9pxyx.js";
13
13
  import {
14
14
  registryEntries2,
@@ -1,4 +1,4 @@
1
- import type { ContentBlock, PromptResponse, RequestPermissionRequest, RequestPermissionResponse, SessionUpdate } from "@agentclientprotocol/sdk";
1
+ import type { ContentBlock, PromptResponse, RequestPermissionRequest, RequestPermissionResponse, SessionUpdate } from "@agentclientprotocol/sdk/unstable";
2
2
  import type { Api, AssistantMessageEventStream, Model } from "@nyte-ai/ai";
3
3
  import type { RuntimeCall, RuntimeVerdict } from "@nyte-ai/core";
4
4
  /** Decides a call the agent asks permission for, under the session's policy. */
@@ -1,4 +1,4 @@
1
- import type { ContentBlock } from "@agentclientprotocol/sdk";
1
+ import type { ContentBlock } from "@agentclientprotocol/sdk/unstable";
2
2
  import type { Message, UserMessage } from "@nyte-ai/ai";
3
3
  /** A message's identity for telling whether the agent's session already holds it. */
4
4
  export declare function messageKey(message: Message): string;
@@ -1,4 +1,4 @@
1
- import type { ToolCallContent, Usage } from "@agentclientprotocol/sdk";
1
+ import type { ToolCallContent, Usage } from "@agentclientprotocol/sdk/unstable";
2
2
  import type { Api, AssistantMessage, AssistantMessageEventStream, Model, ToolCall } from "@nyte-ai/ai";
3
3
  import type { ToolClass } from "@nyte-ai/schema";
4
4
  import { Type } from "typebox";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  compileCanvas2
3
- } from "../../chunks/billing-kn3d30b4.js";
3
+ } from "../../chunks/billing-gs2h17jb.js";
4
4
  import"../../chunks/billing-bv5zr32b.js";
5
5
  import"../../chunks/billing-zfpm2rt0.js";
6
6
  export {
@@ -12,7 +12,7 @@ import {
12
12
  } from "../../chunks/billing-bv5zr32b.js";
13
13
  import {
14
14
  compileCanvas2
15
- } from "../../chunks/billing-kn3d30b4.js";
15
+ } from "../../chunks/billing-gs2h17jb.js";
16
16
  import {
17
17
  CANVAS_PREVIEW_WIDTHS2,
18
18
  describeCanvasPreview2
@@ -1,7 +1,9 @@
1
1
  import type { SDKUserMessage, SessionStoreEntry } from "@anthropic-ai/claude-agent-sdk";
2
2
  import type { Message, UserMessage } from "@nyte-ai/ai";
3
3
  import { Type } from "typebox";
4
- type MessageParam = SDKUserMessage["message"];
4
+ type MessageParam = Exclude<SDKUserMessage["message"], {
5
+ role: "system";
6
+ }>;
5
7
  export type ContentBlock = Exclude<MessageParam["content"], string>[number];
6
8
  export declare const mirrorArguments: Type.TObject<{
7
9
  id: Type.TString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyte-ai/plugin",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -145,33 +145,33 @@
145
145
  "provenance": true
146
146
  },
147
147
  "dependencies": {
148
- "@agentclientprotocol/sdk": "1.9.0",
149
- "@anthropic-ai/claude-agent-sdk": "0.3.296",
150
- "@earendil-works/pi-codemode": "1.0.0",
151
- "@nyte-ai/ai": "0.0.21",
152
- "@nyte-ai/core": "0.0.21",
153
- "@nyte-ai/schema": "0.0.21",
154
- "@opentelemetry/api": "^1.9.1",
155
- "@opentelemetry/exporter-trace-otlp-http": "^0.223.0",
156
- "@opentelemetry/resources": "^2.12.0",
157
- "@opentelemetry/sdk-trace": "^2.12.0",
148
+ "@agentclientprotocol/sdk": "^2.0.0",
149
+ "@anthropic-ai/claude-agent-sdk": "^0.3.306",
150
+ "@earendil-works/pi-codemode": "^1.3.0",
151
+ "@nyte-ai/ai": "0.0.23",
152
+ "@nyte-ai/core": "0.0.23",
153
+ "@nyte-ai/schema": "0.0.23",
154
+ "@opentelemetry/api": "^1.10.0",
155
+ "@opentelemetry/exporter-trace-otlp-http": "^0.300.0",
156
+ "@opentelemetry/resources": "^3.0.0",
157
+ "@opentelemetry/sdk-trace": "^3.0.0",
158
158
  "@opentelemetry/semantic-conventions": "^1.43.0",
159
- "es-module-lexer": "2.3.2",
160
- "sucrase": "3.35.1",
161
- "typebox": "1.3.36",
162
- "zod": "4.5.4"
159
+ "es-module-lexer": "^3.0.4",
160
+ "sucrase": "^3.35.1",
161
+ "typebox": "^1.4.2",
162
+ "zod": "^4.6.7"
163
163
  },
164
164
  "devDependencies": {
165
165
  "@opentui/core": "^0.6.6",
166
166
  "@types/node": "^26.6.5",
167
- "@types/react": "19.3.0",
168
- "react": "19.3.0",
167
+ "@types/react": "^19.3.0",
168
+ "react": "^19.3.1",
169
169
  "typescript": "6.0.3",
170
170
  "vitest": "^5.0.5"
171
171
  },
172
172
  "peerDependencies": {
173
- "@opentui/core": "^0.6.5",
174
- "react": "^19.2.0"
173
+ "@opentui/core": "^0.6.6",
174
+ "react": "^19.3.1"
175
175
  },
176
176
  "peerDependenciesMeta": {
177
177
  "@opentui/core": {