@nyte-ai/plugin 0.0.21 → 0.0.24
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/THIRD-PARTY-NOTICES.md +2 -38
- package/dist/chunks/{billing-2v3g7rd9.js → bash-description-2v3g7rd9.js} +1 -1
- package/dist/chunks/{billing-3j77ss7y.js → bash-description-3j77ss7y.js} +1 -1
- package/dist/chunks/{billing-bv5zr32b.js → bash-description-dnvgk30y.js} +2 -2
- package/dist/chunks/{billing-hg64tqf1.js → bash-description-hg64tqf1.js} +1 -1
- package/dist/chunks/{billing-wqjabjnc.js → bash-description-necnb2k7.js} +18 -23
- package/dist/chunks/{billing-mvc33pv6.js → bash-description-qnwggxq3.js} +1 -1
- package/dist/chunks/{billing-svrhh5a5.js → bash-description-svrhh5a5.js} +1 -1
- package/dist/chunks/{billing-wbe8w0te.js → bash-description-wbe8w0te.js} +1 -1
- package/dist/chunks/{billing-wmcbg6fw.js → bash-description-wmcbg6fw.js} +1 -1
- package/dist/chunks/{billing-sxc70w72.js → bash-description-yyd9jznf.js} +1 -1
- package/dist/chunks/{billing-kn3d30b4.js → bash-description-zz15raxk.js} +3 -3
- package/dist/src/acp/connection.js +3 -3
- package/dist/src/acp/index.js +6 -6
- package/dist/src/acp/registry.js +2 -2
- package/dist/src/acp/thread.d.ts +1 -1
- package/dist/src/acp/thread.js +2 -2
- package/dist/src/acp/transcript.d.ts +1 -1
- package/dist/src/acp/transcript.js +2 -2
- package/dist/src/acp/translate.d.ts +1 -1
- package/dist/src/acp/translate.js +1 -1
- package/dist/src/approvals/approvals.js +1 -1
- package/dist/src/approvals/schema.js +1 -1
- package/dist/src/canvas/canvas-compile.js +3 -3
- package/dist/src/canvas/canvas-libraries.js +1 -1
- package/dist/src/canvas/canvas-preview.js +3 -3
- package/dist/src/canvas/canvas-protocol.d.ts +1 -1
- package/dist/src/canvas/canvas-protocol.js +2 -2
- package/dist/src/canvas/canvas.js +5 -5
- package/dist/src/canvas/schema.js +3 -3
- package/dist/src/claude-code-sdk/index.js +6 -6
- package/dist/src/claude-code-sdk/session.js +2 -2
- package/dist/src/claude-code-sdk/transcript.d.ts +3 -1
- package/dist/src/claude-code-sdk/transcript.js +2 -2
- package/dist/src/claude-code-sdk/translate.js +1 -1
- package/dist/src/find-on-path.js +1 -1
- package/dist/src/question/client/questions-tui.js +1 -1
- package/dist/src/question/client/questions.js +1 -1
- package/dist/src/question/question.js +2 -2
- package/dist/src/question/schema.js +1 -1
- package/package.json +19 -23
- package/dist/chunks/billing-0y7dfkp2.js +0 -146
- package/dist/chunks/billing-3scqmkzb.js +0 -559
- package/dist/chunks/billing-8rjk35gr.js +0 -444
- package/dist/chunks/billing-9qc0eqh4.js +0 -174
- package/dist/chunks/billing-a9vqn66p.js +0 -351
- package/dist/chunks/billing-cy1rg619.js +0 -302
- package/dist/chunks/billing-ejx2hv52.js +0 -323
- package/dist/chunks/billing-j643d12p.js +0 -197
- package/dist/chunks/billing-s4rrspsk.js +0 -7
- package/dist/chunks/billing-t1qrxe16.js +0 -41
- package/dist/chunks/billing-tzr3cebf.js +0 -20
- package/dist/examples/claude-code/LICENSE +0 -21
- package/dist/examples/claude-code/billing.d.ts +0 -7
- package/dist/examples/claude-code/billing.js +0 -11
- package/dist/examples/claude-code/claude-cli.d.ts +0 -35
- package/dist/examples/claude-code/claude-cli.js +0 -15
- package/dist/examples/claude-code/env.d.ts +0 -1
- package/dist/examples/claude-code/env.js +0 -6
- package/dist/examples/claude-code/index.d.ts +0 -24
- package/dist/examples/claude-code/index.js +0 -149
- package/dist/examples/claude-code/inert-mcp.d.ts +0 -1
- package/dist/examples/claude-code/inert-mcp.js +0 -6
- package/dist/examples/claude-code/model-catalog.d.ts +0 -27
- package/dist/examples/claude-code/model-catalog.js +0 -12
- package/dist/examples/claude-code/process.d.ts +0 -22
- package/dist/examples/claude-code/process.js +0 -25
- package/dist/examples/claude-code/replay.d.ts +0 -4
- package/dist/examples/claude-code/replay.js +0 -11
- package/dist/examples/claude-code/stream.d.ts +0 -3
- package/dist/examples/claude-code/stream.js +0 -16
- package/dist/examples/claude-code/transcript.d.ts +0 -83
- package/dist/examples/claude-code/transcript.js +0 -23
- package/dist/examples/claude-code/turn-relay.d.ts +0 -48
- package/dist/examples/claude-code/turn-relay.js +0 -9
- package/dist/examples/claude-code/wire.d.ts +0 -372
- package/dist/examples/claude-code/wire.js +0 -18
- /package/dist/chunks/{billing-4vz9pxyx.js → bash-description-4vz9pxyx.js} +0 -0
- /package/dist/chunks/{billing-6z2kgtyt.js → bash-description-6z2kgtyt.js} +0 -0
- /package/dist/chunks/{billing-9nn3yp18.js → bash-description-9nn3yp18.js} +0 -0
- /package/dist/chunks/{billing-h13r0byk.js → bash-description-h13r0byk.js} +0 -0
- /package/dist/chunks/{billing-ye3wk5r3.js → bash-description-ye3wk5r3.js} +0 -0
- /package/dist/chunks/{billing-zfpm2rt0.js → bash-description-zfpm2rt0.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nyte-ai/plugin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -47,10 +47,6 @@
|
|
|
47
47
|
"types": "./dist/src/canvas/canvas-preview.d.ts",
|
|
48
48
|
"import": "./dist/src/canvas/canvas-preview.js"
|
|
49
49
|
},
|
|
50
|
-
"./core/claude-code": {
|
|
51
|
-
"types": "./dist/examples/claude-code/index.d.ts",
|
|
52
|
-
"import": "./dist/examples/claude-code/index.js"
|
|
53
|
-
},
|
|
54
50
|
"./core/claude-code-sdk": {
|
|
55
51
|
"types": "./dist/src/claude-code-sdk/index.d.ts",
|
|
56
52
|
"import": "./dist/src/claude-code-sdk/index.js"
|
|
@@ -145,33 +141,33 @@
|
|
|
145
141
|
"provenance": true
|
|
146
142
|
},
|
|
147
143
|
"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": "^
|
|
144
|
+
"@agentclientprotocol/sdk": "^2.0.0",
|
|
145
|
+
"@anthropic-ai/claude-agent-sdk": "^0.3.306",
|
|
146
|
+
"@earendil-works/pi-codemode": "^1.3.0",
|
|
147
|
+
"@nyte-ai/ai": "0.0.24",
|
|
148
|
+
"@nyte-ai/core": "0.0.24",
|
|
149
|
+
"@nyte-ai/schema": "0.0.24",
|
|
150
|
+
"@opentelemetry/api": "^1.10.0",
|
|
151
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.300.0",
|
|
152
|
+
"@opentelemetry/resources": "^3.0.0",
|
|
153
|
+
"@opentelemetry/sdk-trace": "^3.0.0",
|
|
158
154
|
"@opentelemetry/semantic-conventions": "^1.43.0",
|
|
159
|
-
"es-module-lexer": "
|
|
160
|
-
"sucrase": "3.35.1",
|
|
161
|
-
"typebox": "1.
|
|
162
|
-
"zod": "4.
|
|
155
|
+
"es-module-lexer": "^3.0.4",
|
|
156
|
+
"sucrase": "^3.35.1",
|
|
157
|
+
"typebox": "^1.4.2",
|
|
158
|
+
"zod": "^4.6.7"
|
|
163
159
|
},
|
|
164
160
|
"devDependencies": {
|
|
165
161
|
"@opentui/core": "^0.6.6",
|
|
166
162
|
"@types/node": "^26.6.5",
|
|
167
|
-
"@types/react": "19.3.0",
|
|
168
|
-
"react": "19.3.
|
|
163
|
+
"@types/react": "^19.3.0",
|
|
164
|
+
"react": "^19.3.1",
|
|
169
165
|
"typescript": "6.0.3",
|
|
170
166
|
"vitest": "^5.0.5"
|
|
171
167
|
},
|
|
172
168
|
"peerDependencies": {
|
|
173
|
-
"@opentui/core": "^0.6.
|
|
174
|
-
"react": "^19.
|
|
169
|
+
"@opentui/core": "^0.6.6",
|
|
170
|
+
"react": "^19.3.1"
|
|
175
171
|
},
|
|
176
172
|
"peerDependenciesMeta": {
|
|
177
173
|
"@opentui/core": {
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
// examples/claude-code/wire.ts
|
|
2
|
-
import { Type } from "typebox";
|
|
3
|
-
import { Value } from "typebox/value";
|
|
4
|
-
var recordSchema = Type.Record(Type.String(), Type.Unknown());
|
|
5
|
-
var usageSchema = Type.Object({
|
|
6
|
-
input_tokens: Type.Number(),
|
|
7
|
-
output_tokens: Type.Number(),
|
|
8
|
-
cache_read_input_tokens: Type.Optional(Type.Number()),
|
|
9
|
-
cache_creation_input_tokens: Type.Optional(Type.Number()),
|
|
10
|
-
cache_creation: Type.Optional(Type.Object({ ephemeral_1h_input_tokens: Type.Optional(Type.Number()) })),
|
|
11
|
-
output_tokens_details: Type.Optional(Type.Object({ thinking_tokens: Type.Optional(Type.Number()) }))
|
|
12
|
-
});
|
|
13
|
-
var contentSchema = Type.Union([
|
|
14
|
-
Type.Object({ type: Type.Literal("text"), text: Type.String() }),
|
|
15
|
-
Type.Object({
|
|
16
|
-
type: Type.Literal("thinking"),
|
|
17
|
-
thinking: Type.String(),
|
|
18
|
-
signature: Type.Optional(Type.String())
|
|
19
|
-
}),
|
|
20
|
-
Type.Object({ type: Type.Literal("redacted_thinking"), data: Type.String() }),
|
|
21
|
-
Type.Object({
|
|
22
|
-
type: Type.Literal("tool_use"),
|
|
23
|
-
id: Type.String(),
|
|
24
|
-
name: Type.String(),
|
|
25
|
-
input: recordSchema
|
|
26
|
-
})
|
|
27
|
-
]);
|
|
28
|
-
var messageSchema2 = Type.Intersect([
|
|
29
|
-
recordSchema,
|
|
30
|
-
Type.Object({
|
|
31
|
-
id: Type.Optional(Type.String()),
|
|
32
|
-
role: Type.Literal("assistant"),
|
|
33
|
-
content: Type.Array(contentSchema),
|
|
34
|
-
usage: Type.Optional(usageSchema),
|
|
35
|
-
stop_reason: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
36
|
-
stop_sequence: Type.Optional(Type.Union([Type.String(), Type.Null()]))
|
|
37
|
-
})
|
|
38
|
-
]);
|
|
39
|
-
var streamEventSchema = Type.Union([
|
|
40
|
-
Type.Object({ type: Type.Literal("message_start"), message: messageSchema2 }),
|
|
41
|
-
Type.Object({
|
|
42
|
-
type: Type.Literal("content_block_start"),
|
|
43
|
-
index: Type.Integer({ minimum: 0 }),
|
|
44
|
-
content_block: contentSchema
|
|
45
|
-
}),
|
|
46
|
-
Type.Object({
|
|
47
|
-
type: Type.Literal("content_block_delta"),
|
|
48
|
-
index: Type.Integer({ minimum: 0 }),
|
|
49
|
-
delta: Type.Union([
|
|
50
|
-
Type.Object({ type: Type.Literal("text_delta"), text: Type.String() }),
|
|
51
|
-
Type.Object({ type: Type.Literal("thinking_delta"), thinking: Type.String() }),
|
|
52
|
-
Type.Object({ type: Type.Literal("signature_delta"), signature: Type.String() }),
|
|
53
|
-
Type.Object({ type: Type.Literal("input_json_delta"), partial_json: Type.String() })
|
|
54
|
-
])
|
|
55
|
-
}),
|
|
56
|
-
Type.Object({ type: Type.Literal("content_block_stop"), index: Type.Integer({ minimum: 0 }) }),
|
|
57
|
-
Type.Object({
|
|
58
|
-
type: Type.Literal("message_delta"),
|
|
59
|
-
delta: Type.Object({
|
|
60
|
-
stop_reason: Type.Optional(Type.Union([Type.String(), Type.Null()])),
|
|
61
|
-
stop_sequence: Type.Optional(Type.Union([Type.String(), Type.Null()]))
|
|
62
|
-
}),
|
|
63
|
-
usage: Type.Optional(Type.Partial(usageSchema))
|
|
64
|
-
}),
|
|
65
|
-
Type.Object({ type: Type.Literal("message_stop") }),
|
|
66
|
-
Type.Object({
|
|
67
|
-
type: Type.Literal("error"),
|
|
68
|
-
error: Type.Optional(Type.Object({ type: Type.Optional(Type.String()), message: Type.Optional(Type.String()) }))
|
|
69
|
-
})
|
|
70
|
-
]);
|
|
71
|
-
var outputEventSchema = Type.Union([
|
|
72
|
-
Type.Object({
|
|
73
|
-
type: Type.Literal("assistant"),
|
|
74
|
-
message: messageSchema2,
|
|
75
|
-
error: Type.Optional(Type.Unknown())
|
|
76
|
-
}),
|
|
77
|
-
Type.Object({
|
|
78
|
-
type: Type.Literal("result"),
|
|
79
|
-
subtype: Type.Optional(Type.String()),
|
|
80
|
-
is_error: Type.Optional(Type.Boolean()),
|
|
81
|
-
num_turns: Type.Optional(Type.Number()),
|
|
82
|
-
usage: Type.Optional(usageSchema),
|
|
83
|
-
total_cost_usd: Type.Optional(Type.Number()),
|
|
84
|
-
modelUsage: Type.Optional(recordSchema)
|
|
85
|
-
}),
|
|
86
|
-
Type.Object({ type: Type.Literal("stream_event"), event: streamEventSchema }),
|
|
87
|
-
Type.Object({
|
|
88
|
-
type: Type.Literal("rate_limit_event"),
|
|
89
|
-
rate_limit_info: Type.Optional(Type.Object({
|
|
90
|
-
status: Type.Optional(Type.String()),
|
|
91
|
-
rateLimitType: Type.Optional(Type.String()),
|
|
92
|
-
resetsAt: Type.Optional(Type.Number()),
|
|
93
|
-
isUsingOverage: Type.Optional(Type.Boolean()),
|
|
94
|
-
overageStatus: Type.Optional(Type.String()),
|
|
95
|
-
overageDisabledReason: Type.Optional(Type.String())
|
|
96
|
-
}))
|
|
97
|
-
}),
|
|
98
|
-
Type.Object({ type: Type.Literal("control_response"), response: recordSchema })
|
|
99
|
-
]);
|
|
100
|
-
var requestMessageSchema = Type.Object({
|
|
101
|
-
role: Type.Optional(Type.String()),
|
|
102
|
-
content: Type.Optional(Type.Unknown())
|
|
103
|
-
});
|
|
104
|
-
var requestMessagesSchema = Type.Array(requestMessageSchema);
|
|
105
|
-
var requestSchema = Type.Intersect([
|
|
106
|
-
recordSchema,
|
|
107
|
-
Type.Object({ messages: requestMessagesSchema, system: Type.Optional(Type.Unknown()) })
|
|
108
|
-
]);
|
|
109
|
-
function matchesRecord2(value) {
|
|
110
|
-
return Value.Check(recordSchema, value);
|
|
111
|
-
}
|
|
112
|
-
function parseRecord2(text) {
|
|
113
|
-
const value = JSON.parse(text);
|
|
114
|
-
if (!matchesRecord2(value))
|
|
115
|
-
throw new Error("Expected a JSON object");
|
|
116
|
-
return value;
|
|
117
|
-
}
|
|
118
|
-
function parseStreamEvent2(text) {
|
|
119
|
-
const value = JSON.parse(text);
|
|
120
|
-
if (matchesRecord2(value) && value.type === "ping")
|
|
121
|
-
return;
|
|
122
|
-
if (!Value.Check(streamEventSchema, value))
|
|
123
|
-
throw new Error("Invalid Anthropic stream event");
|
|
124
|
-
return value;
|
|
125
|
-
}
|
|
126
|
-
function parseOutputEvent2(text) {
|
|
127
|
-
const value = parseRecord2(text);
|
|
128
|
-
if (!["assistant", "result", "stream_event", "rate_limit_event", "control_response"].includes(String(value.type)))
|
|
129
|
-
return;
|
|
130
|
-
if (!Value.Check(outputEventSchema, value))
|
|
131
|
-
throw new Error("Invalid Claude Code output event");
|
|
132
|
-
return value;
|
|
133
|
-
}
|
|
134
|
-
function parseRequest2(body) {
|
|
135
|
-
const value = JSON.parse(body.toString("utf8"));
|
|
136
|
-
if (!Value.Check(requestSchema, value))
|
|
137
|
-
throw new Error("Invalid Claude Code request");
|
|
138
|
-
return value;
|
|
139
|
-
}
|
|
140
|
-
function parseRequestMessages2(value) {
|
|
141
|
-
if (!Value.Check(requestMessagesSchema, value))
|
|
142
|
-
throw new Error("Invalid Claude Code replay messages");
|
|
143
|
-
return value;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export { messageSchema2, matchesRecord2, parseRecord2, parseStreamEvent2, parseOutputEvent2, parseRequest2, parseRequestMessages2 };
|