@nyte-ai/plugin 0.0.19 → 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.
- package/dist/chunks/{billing-kn3d30b4.js → billing-gs2h17jb.js} +2 -2
- package/dist/chunks/{billing-v3hg5rc7.js → billing-r2ftaajy.js} +17 -17
- package/dist/chunks/{billing-tm34gm2p.js → billing-wbe8w0te.js} +2 -0
- package/dist/src/acp/connection.js +1 -1
- package/dist/src/acp/index.js +1 -1
- package/dist/src/acp/thread.d.ts +1 -1
- package/dist/src/acp/transcript.d.ts +1 -1
- package/dist/src/acp/translate.d.ts +1 -1
- package/dist/src/bash-description.js +4 -1
- package/dist/src/canvas/canvas-compile.js +1 -1
- package/dist/src/canvas/canvas.js +1 -1
- package/dist/src/claude-code-sdk/index.js +1 -2
- package/dist/src/claude-code-sdk/session.js +1 -1
- package/dist/src/claude-code-sdk/transcript.d.ts +3 -1
- package/package.json +19 -19
|
@@ -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.
|
|
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": "
|
|
203
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.
|
|
204
|
-
"@earendil-works/pi-codemode": "1.
|
|
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.
|
|
209
|
-
"@opentelemetry/exporter-trace-otlp-http": "^0.
|
|
210
|
-
"@opentelemetry/resources": "^
|
|
211
|
-
"@opentelemetry/sdk-trace": "^
|
|
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": "
|
|
214
|
-
sucrase: "3.35.1",
|
|
215
|
-
typebox: "1.
|
|
216
|
-
zod: "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.
|
|
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.
|
|
228
|
-
react: "^19.
|
|
227
|
+
"@opentui/core": "^0.6.6",
|
|
228
|
+
react: "^19.3.1"
|
|
229
229
|
},
|
|
230
230
|
peerDependenciesMeta: {
|
|
231
231
|
"@opentui/core": {
|
|
@@ -137,6 +137,8 @@ class ClaudeCodeSession2 {
|
|
|
137
137
|
systemPrompt: { type: "preset", preset: "claude_code" },
|
|
138
138
|
includePartialMessages: true,
|
|
139
139
|
mcpServers: { [NYTE_SERVER2]: this.#server },
|
|
140
|
+
disallowedTools: ["Bash"],
|
|
141
|
+
allowedTools: ["Grep", "Glob"],
|
|
140
142
|
permissionMode: "default",
|
|
141
143
|
canUseTool: async (name, input, { signal, toolUseID, agentID }) => {
|
|
142
144
|
if (name.startsWith(NYTE_TOOL_PREFIX2))
|
package/dist/src/acp/index.js
CHANGED
package/dist/src/acp/thread.d.ts
CHANGED
|
@@ -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";
|
|
@@ -5,7 +5,10 @@ var parameters = standard(Type.Object({
|
|
|
5
5
|
command: Type.String({ description: "The shell command to run." }),
|
|
6
6
|
description: Type.String({
|
|
7
7
|
description: "Clear, concise description of what this command does in 5-10 words, in active voice."
|
|
8
|
-
})
|
|
8
|
+
}),
|
|
9
|
+
background: Type.Optional(Type.Boolean({
|
|
10
|
+
description: "Start the command and return a job id with its first output instead of waiting for it to exit. Use for servers, watchers, and other long-lived commands, without a trailing &. The command keeps running across turns, and you are told when it exits; read its output or stop it with the job tool. Do not use it to speed up ordinary commands."
|
|
11
|
+
}))
|
|
9
12
|
}));
|
|
10
13
|
var bash_description_default = {
|
|
11
14
|
id: "bash-description",
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "../../chunks/billing-ye3wk5r3.js";
|
|
17
17
|
import {
|
|
18
18
|
ClaudeCodeSession2
|
|
19
|
-
} from "../../chunks/billing-
|
|
19
|
+
} from "../../chunks/billing-wbe8w0te.js";
|
|
20
20
|
import {
|
|
21
21
|
mirrorArguments3,
|
|
22
22
|
userBlocks3,
|
|
@@ -53,7 +53,6 @@ var CLAUDE_CODE_HAS_ITS_OWN = new Set([
|
|
|
53
53
|
"write",
|
|
54
54
|
"edit",
|
|
55
55
|
"list",
|
|
56
|
-
"bash",
|
|
57
56
|
"web_search",
|
|
58
57
|
"question"
|
|
59
58
|
]);
|
|
@@ -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.
|
|
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": "
|
|
149
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.
|
|
150
|
-
"@earendil-works/pi-codemode": "1.
|
|
151
|
-
"@nyte-ai/ai": "0.0.
|
|
152
|
-
"@nyte-ai/core": "0.0.
|
|
153
|
-
"@nyte-ai/schema": "0.0.
|
|
154
|
-
"@opentelemetry/api": "^1.
|
|
155
|
-
"@opentelemetry/exporter-trace-otlp-http": "^0.
|
|
156
|
-
"@opentelemetry/resources": "^
|
|
157
|
-
"@opentelemetry/sdk-trace": "^
|
|
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": "
|
|
160
|
-
"sucrase": "3.35.1",
|
|
161
|
-
"typebox": "1.
|
|
162
|
-
"zod": "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.
|
|
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.
|
|
174
|
-
"react": "^19.
|
|
173
|
+
"@opentui/core": "^0.6.6",
|
|
174
|
+
"react": "^19.3.1"
|
|
175
175
|
},
|
|
176
176
|
"peerDependenciesMeta": {
|
|
177
177
|
"@opentui/core": {
|