@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.
Files changed (83) hide show
  1. package/THIRD-PARTY-NOTICES.md +2 -38
  2. package/dist/chunks/{billing-2v3g7rd9.js → bash-description-2v3g7rd9.js} +1 -1
  3. package/dist/chunks/{billing-3j77ss7y.js → bash-description-3j77ss7y.js} +1 -1
  4. package/dist/chunks/{billing-bv5zr32b.js → bash-description-dnvgk30y.js} +2 -2
  5. package/dist/chunks/{billing-hg64tqf1.js → bash-description-hg64tqf1.js} +1 -1
  6. package/dist/chunks/{billing-wqjabjnc.js → bash-description-necnb2k7.js} +18 -23
  7. package/dist/chunks/{billing-mvc33pv6.js → bash-description-qnwggxq3.js} +1 -1
  8. package/dist/chunks/{billing-svrhh5a5.js → bash-description-svrhh5a5.js} +1 -1
  9. package/dist/chunks/{billing-wbe8w0te.js → bash-description-wbe8w0te.js} +1 -1
  10. package/dist/chunks/{billing-wmcbg6fw.js → bash-description-wmcbg6fw.js} +1 -1
  11. package/dist/chunks/{billing-sxc70w72.js → bash-description-yyd9jznf.js} +1 -1
  12. package/dist/chunks/{billing-kn3d30b4.js → bash-description-zz15raxk.js} +3 -3
  13. package/dist/src/acp/connection.js +3 -3
  14. package/dist/src/acp/index.js +6 -6
  15. package/dist/src/acp/registry.js +2 -2
  16. package/dist/src/acp/thread.d.ts +1 -1
  17. package/dist/src/acp/thread.js +2 -2
  18. package/dist/src/acp/transcript.d.ts +1 -1
  19. package/dist/src/acp/transcript.js +2 -2
  20. package/dist/src/acp/translate.d.ts +1 -1
  21. package/dist/src/acp/translate.js +1 -1
  22. package/dist/src/approvals/approvals.js +1 -1
  23. package/dist/src/approvals/schema.js +1 -1
  24. package/dist/src/canvas/canvas-compile.js +3 -3
  25. package/dist/src/canvas/canvas-libraries.js +1 -1
  26. package/dist/src/canvas/canvas-preview.js +3 -3
  27. package/dist/src/canvas/canvas-protocol.d.ts +1 -1
  28. package/dist/src/canvas/canvas-protocol.js +2 -2
  29. package/dist/src/canvas/canvas.js +5 -5
  30. package/dist/src/canvas/schema.js +3 -3
  31. package/dist/src/claude-code-sdk/index.js +6 -6
  32. package/dist/src/claude-code-sdk/session.js +2 -2
  33. package/dist/src/claude-code-sdk/transcript.d.ts +3 -1
  34. package/dist/src/claude-code-sdk/transcript.js +2 -2
  35. package/dist/src/claude-code-sdk/translate.js +1 -1
  36. package/dist/src/find-on-path.js +1 -1
  37. package/dist/src/question/client/questions-tui.js +1 -1
  38. package/dist/src/question/client/questions.js +1 -1
  39. package/dist/src/question/question.js +2 -2
  40. package/dist/src/question/schema.js +1 -1
  41. package/package.json +19 -23
  42. package/dist/chunks/billing-0y7dfkp2.js +0 -146
  43. package/dist/chunks/billing-3scqmkzb.js +0 -559
  44. package/dist/chunks/billing-8rjk35gr.js +0 -444
  45. package/dist/chunks/billing-9qc0eqh4.js +0 -174
  46. package/dist/chunks/billing-a9vqn66p.js +0 -351
  47. package/dist/chunks/billing-cy1rg619.js +0 -302
  48. package/dist/chunks/billing-ejx2hv52.js +0 -323
  49. package/dist/chunks/billing-j643d12p.js +0 -197
  50. package/dist/chunks/billing-s4rrspsk.js +0 -7
  51. package/dist/chunks/billing-t1qrxe16.js +0 -41
  52. package/dist/chunks/billing-tzr3cebf.js +0 -20
  53. package/dist/examples/claude-code/LICENSE +0 -21
  54. package/dist/examples/claude-code/billing.d.ts +0 -7
  55. package/dist/examples/claude-code/billing.js +0 -11
  56. package/dist/examples/claude-code/claude-cli.d.ts +0 -35
  57. package/dist/examples/claude-code/claude-cli.js +0 -15
  58. package/dist/examples/claude-code/env.d.ts +0 -1
  59. package/dist/examples/claude-code/env.js +0 -6
  60. package/dist/examples/claude-code/index.d.ts +0 -24
  61. package/dist/examples/claude-code/index.js +0 -149
  62. package/dist/examples/claude-code/inert-mcp.d.ts +0 -1
  63. package/dist/examples/claude-code/inert-mcp.js +0 -6
  64. package/dist/examples/claude-code/model-catalog.d.ts +0 -27
  65. package/dist/examples/claude-code/model-catalog.js +0 -12
  66. package/dist/examples/claude-code/process.d.ts +0 -22
  67. package/dist/examples/claude-code/process.js +0 -25
  68. package/dist/examples/claude-code/replay.d.ts +0 -4
  69. package/dist/examples/claude-code/replay.js +0 -11
  70. package/dist/examples/claude-code/stream.d.ts +0 -3
  71. package/dist/examples/claude-code/stream.js +0 -16
  72. package/dist/examples/claude-code/transcript.d.ts +0 -83
  73. package/dist/examples/claude-code/transcript.js +0 -23
  74. package/dist/examples/claude-code/turn-relay.d.ts +0 -48
  75. package/dist/examples/claude-code/turn-relay.js +0 -9
  76. package/dist/examples/claude-code/wire.d.ts +0 -372
  77. package/dist/examples/claude-code/wire.js +0 -18
  78. /package/dist/chunks/{billing-4vz9pxyx.js → bash-description-4vz9pxyx.js} +0 -0
  79. /package/dist/chunks/{billing-6z2kgtyt.js → bash-description-6z2kgtyt.js} +0 -0
  80. /package/dist/chunks/{billing-9nn3yp18.js → bash-description-9nn3yp18.js} +0 -0
  81. /package/dist/chunks/{billing-h13r0byk.js → bash-description-h13r0byk.js} +0 -0
  82. /package/dist/chunks/{billing-ye3wk5r3.js → bash-description-ye3wk5r3.js} +0 -0
  83. /package/dist/chunks/{billing-zfpm2rt0.js → bash-description-zfpm2rt0.js} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  questionParameters2,
5
5
  question3,
6
6
  openQuestions2
7
- } from "../../chunks/billing-6z2kgtyt.js";
7
+ } from "../../chunks/bash-description-6z2kgtyt.js";
8
8
  export {
9
9
  answerInput2 as answerInput,
10
10
  openQuestions2 as openQuestions,
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.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": "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",
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": "2.3.2",
160
- "sucrase": "3.35.1",
161
- "typebox": "1.3.36",
162
- "zod": "4.5.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.0",
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.5",
174
- "react": "^19.2.0"
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 };