@nyte-ai/plugin 0.0.23 → 0.0.25-beta.1
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-mvc33pv6.js → bash-description-1neewp76.js} +20 -9
- 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-r2ftaajy.js → bash-description-eqp7ap2w.js} +3 -9
- package/dist/chunks/{billing-hg64tqf1.js → bash-description-hg64tqf1.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-gs2h17jb.js → bash-description-zz15raxk.js} +1 -1
- package/dist/src/acp/connection.js +3 -3
- package/dist/src/acp/index.d.ts +3 -3
- package/dist/src/acp/index.js +6 -6
- package/dist/src/acp/registry.js +2 -2
- package/dist/src/acp/thread.js +2 -2
- package/dist/src/acp/transcript.js +2 -2
- package/dist/src/acp/translate.js +1 -1
- package/dist/src/approvals/approvals.d.ts +16 -16
- package/dist/src/approvals/approvals.js +1 -1
- package/dist/src/approvals/schema.d.ts +18 -18
- package/dist/src/approvals/schema.js +1 -1
- package/dist/src/bash-description.d.ts +1 -1
- package/dist/src/bash-description.js +3 -5
- 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 +12 -12
- package/dist/src/canvas/canvas-protocol.js +2 -2
- package/dist/src/canvas/canvas.d.ts +12 -3
- package/dist/src/canvas/canvas.js +37 -15
- package/dist/src/canvas/schema.d.ts +48 -8
- package/dist/src/canvas/schema.js +7 -3
- package/dist/src/claude-code-sdk/index.d.ts +1 -1
- 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.js +2 -2
- package/dist/src/claude-code-sdk/translate.js +1 -1
- package/dist/src/client/notifications.d.ts +1 -1
- package/dist/src/client/presentation.d.ts +1 -27
- package/dist/src/client/presentation.js +1 -19
- 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.d.ts +14 -14
- package/dist/src/question/question.js +2 -2
- package/dist/src/question/schema.d.ts +23 -23
- package/dist/src/question/schema.js +1 -1
- package/dist/src/rename.d.ts +10 -10
- package/dist/src/telemetry.d.ts +1 -1
- package/dist/src/web-search.d.ts +2 -2
- package/package.json +5 -10
- 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/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -45,39 +45,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
45
45
|
SOFTWARE.
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
## pi-claude-code (`earendil-works/pi-claude-code`)
|
|
49
|
-
|
|
50
|
-
- Repository: https://github.com/earendil-works/pi-claude-code
|
|
51
|
-
- What: the Claude Code CLI provider, single-turn relay, transcript replay,
|
|
52
|
-
process reuse, and billing guards in `packages/plugin/examples/claude-code`
|
|
53
|
-
are adapted from commit `70abb65186592ca788b29b3db22c3160d629c41f`.
|
|
54
|
-
|
|
55
|
-
License: MIT, with the following notice:
|
|
56
|
-
|
|
57
|
-
```text
|
|
58
|
-
MIT License
|
|
59
|
-
|
|
60
|
-
Copyright (c) 2026 Armin Ronacher
|
|
61
|
-
|
|
62
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
63
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
64
|
-
in the Software without restriction, including without limitation the rights
|
|
65
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
66
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
67
|
-
furnished to do so, subject to the following conditions:
|
|
68
|
-
|
|
69
|
-
The above copyright notice and this permission notice shall be included in all
|
|
70
|
-
copies or substantial portions of the Software.
|
|
71
|
-
|
|
72
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
73
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
74
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
75
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
76
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
77
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
78
|
-
SOFTWARE.
|
|
79
|
-
```
|
|
80
|
-
|
|
81
48
|
## pi (`earendil-works/pi`)
|
|
82
49
|
|
|
83
50
|
- Repository: https://github.com/earendil-works/pi
|
|
@@ -345,8 +312,8 @@ Copyright 2025 OpenAI
|
|
|
345
312
|
front of the queue (`packages/tui/src/model/interactions.ts`) is its
|
|
346
313
|
`onEmptySubmit`. The rename
|
|
347
314
|
plugin's context construction, prompt, model fallback, and output cleanup
|
|
348
|
-
(`packages/plugin/
|
|
349
|
-
plugin set (`packages/plugin/
|
|
315
|
+
(`packages/plugin/src/rename.ts`) port OpenCode v2. The web-search
|
|
316
|
+
plugin set (`packages/plugin/src/web-search.ts`) ports its Exa, Firecrawl,
|
|
350
317
|
Parallel, and Tavily adapters, its stateless MCP `tools/call` transport and
|
|
351
318
|
response bounds, its result and error vocabulary, and its arrangement of one
|
|
352
319
|
plugin per provider from OpenCode v2.
|
|
@@ -429,9 +396,6 @@ SOFTWARE.
|
|
|
429
396
|
bypass, and connection tuning in `packages/host/src/sqlite*.ts` are adapted
|
|
430
397
|
from `bf8ffe81a63c82d3de5fbaa9991fd5f30034a452`.
|
|
431
398
|
- Homepage: https://t3.codes
|
|
432
|
-
- What: the demo desktop app (`packages/demo/desktop`) follows T3 Code's
|
|
433
|
-
control-surface shape — agents in a sidebar, a conversation workspace, a
|
|
434
|
-
shared composer, and settings behind a dialog.
|
|
435
399
|
|
|
436
400
|
License: MIT, with the following notice:
|
|
437
401
|
|
|
@@ -1,25 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CANVAS_CODE_LIMIT2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./bash-description-dnvgk30y.js";
|
|
4
4
|
|
|
5
5
|
// src/canvas/schema.ts
|
|
6
6
|
import { definePart } from "@nyte-ai/core";
|
|
7
|
-
import { standard } from "@nyte-ai/schema";
|
|
7
|
+
import { idSchema, standard } from "@nyte-ai/schema";
|
|
8
8
|
import { Type } from "typebox";
|
|
9
|
-
var
|
|
9
|
+
var CANVAS_RENDER_TOOL2 = "canvas_render";
|
|
10
|
+
var CANVAS_REVISIONS_KEPT2 = 50;
|
|
11
|
+
var drawn = {
|
|
10
12
|
runtime: Type.Integer({ minimum: 1 }),
|
|
11
13
|
title: Type.String({ minLength: 1, maxLength: 120 }),
|
|
14
|
+
height: Type.Union([Type.Number(), Type.Null()])
|
|
15
|
+
};
|
|
16
|
+
var revision = Type.Object({
|
|
17
|
+
number: Type.Integer({ minimum: 1 }),
|
|
18
|
+
blob: idSchema(),
|
|
19
|
+
...drawn,
|
|
20
|
+
at: Type.Number()
|
|
21
|
+
});
|
|
22
|
+
var state = standard(Type.Object({
|
|
23
|
+
...drawn,
|
|
12
24
|
code: Type.String({ maxLength: CANVAS_CODE_LIMIT2 }),
|
|
13
|
-
|
|
14
|
-
|
|
25
|
+
error: Type.Union([Type.String(), Type.Null()]),
|
|
26
|
+
revisions: Type.Optional(Type.Array(revision, { maxItems: CANVAS_REVISIONS_KEPT2 }))
|
|
15
27
|
}));
|
|
16
28
|
var actions = {
|
|
17
29
|
replace: {
|
|
18
30
|
input: standard(Type.Object({
|
|
19
|
-
|
|
20
|
-
title: Type.String({ minLength: 1, maxLength: 120 }),
|
|
31
|
+
...drawn,
|
|
21
32
|
code: Type.String({ maxLength: CANVAS_CODE_LIMIT2 }),
|
|
22
|
-
|
|
33
|
+
blob: idSchema()
|
|
23
34
|
}))
|
|
24
35
|
},
|
|
25
36
|
report: {
|
|
@@ -33,4 +44,4 @@ var canvas2 = definePart({
|
|
|
33
44
|
fallback: (current, { id }) => `Canvas ${id}: ${current.title}.${current.error === null ? "" : ` It failed to render: ${current.error}. Fix it by calling canvas_render with canvas "${id}".`}`
|
|
34
45
|
});
|
|
35
46
|
|
|
36
|
-
export { canvas2 };
|
|
47
|
+
export { CANVAS_RENDER_TOOL2, CANVAS_REVISIONS_KEPT2, canvas2 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CANVAS_LIBRARIES2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./bash-description-zfpm2rt0.js";
|
|
4
4
|
|
|
5
5
|
// src/canvas/canvas-protocol.ts
|
|
6
6
|
var CANVAS_RUNTIME2 = 2;
|
|
@@ -113,7 +113,7 @@ var KIT2 = {
|
|
|
113
113
|
LineChart: '{ series: { id: string, data: { x: number | string, y: number }[], tint?: Tint }[], height?: number = 240, xFormat?: (x) => string, yFormat?: (y) => string, curve?: "linear" | "monotone" | "step", area?: boolean, legend?: boolean }: a full chart with axes and a readout',
|
|
114
114
|
BarChart: '{ data: Record<string, number | string>[], keys: (string | { key: string, label?: string, tint?: Tint })[], indexBy: string, height?: number = 240, layout?: "vertical" | "horizontal", mode?: "grouped" | "stacked" = "stacked", valueFormat?: (value: number) => string, legend?: boolean }: a full chart with axes and a readout with the total',
|
|
115
115
|
PieChart: "{ data: { id: string, value: number, label?: string, tint?: Tint }[], height?: number = 240, donut?: boolean, valueFormat?: (value: number) => string, legend?: boolean }",
|
|
116
|
-
Button: '{ variant?: "solid" | "outline" | "ghost"
|
|
116
|
+
Button: '{ variant?: "solid" | "outline" | "ghost", pill?: boolean, size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl", tone?: "neutral" | "primary" | "success" | "warning" | "danger", loading?: boolean, disabled?: boolean, onClick, children }',
|
|
117
117
|
Tabs: "Tabs.Root { value?, defaultValue?, onValueChange? } > Tabs.List { children: Tabs.Tab { value, children }[] } + Tabs.Panel { value, children }",
|
|
118
118
|
Select: "Select { value?, defaultValue?, onValueChange? } > SelectTrigger { children: <SelectValue /> } + SelectContent { children: SelectItem[] }",
|
|
119
119
|
SelectTrigger: "see Select",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AcpThread2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./bash-description-svrhh5a5.js";
|
|
4
4
|
|
|
5
5
|
// src/acp/connection.ts
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
@@ -15,7 +15,7 @@ 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.25-beta.1",
|
|
19
19
|
private: false,
|
|
20
20
|
license: "MIT",
|
|
21
21
|
repository: {
|
|
@@ -38,7 +38,6 @@ var package_default = {
|
|
|
38
38
|
"./core/canvas": "./src/canvas/canvas.ts",
|
|
39
39
|
"./core/canvas-compile": "./src/canvas/canvas-compile.ts",
|
|
40
40
|
"./core/canvas-preview": "./src/canvas/canvas-preview.ts",
|
|
41
|
-
"./core/claude-code": "./examples/claude-code/index.ts",
|
|
42
41
|
"./core/claude-code-sdk": "./src/claude-code-sdk/index.ts",
|
|
43
42
|
"./core/codemode": "./src/codemode.ts",
|
|
44
43
|
"./core/codemode-runtime": "./src/codemode-runtime.ts",
|
|
@@ -96,10 +95,6 @@ var package_default = {
|
|
|
96
95
|
types: "./dist/src/canvas/canvas-preview.d.ts",
|
|
97
96
|
import: "./dist/src/canvas/canvas-preview.js"
|
|
98
97
|
},
|
|
99
|
-
"./core/claude-code": {
|
|
100
|
-
types: "./dist/examples/claude-code/index.d.ts",
|
|
101
|
-
import: "./dist/examples/claude-code/index.js"
|
|
102
|
-
},
|
|
103
98
|
"./core/claude-code-sdk": {
|
|
104
99
|
types: "./dist/src/claude-code-sdk/index.d.ts",
|
|
105
100
|
import: "./dist/src/claude-code-sdk/index.js"
|
|
@@ -195,7 +190,7 @@ var package_default = {
|
|
|
195
190
|
scripts: {
|
|
196
191
|
clean: "rm -rf node_modules .turbo",
|
|
197
192
|
test: "vitest --run",
|
|
198
|
-
typecheck: "
|
|
193
|
+
typecheck: "tsc --noEmit",
|
|
199
194
|
"build:package": "bun ../../scripts/sdk-packages.mjs build plugin"
|
|
200
195
|
},
|
|
201
196
|
dependencies: {
|
|
@@ -220,7 +215,6 @@ var package_default = {
|
|
|
220
215
|
"@types/node": "^26.6.5",
|
|
221
216
|
"@types/react": "^19.3.0",
|
|
222
217
|
react: "^19.3.1",
|
|
223
|
-
typescript: "6.0.3",
|
|
224
218
|
vitest: "^5.0.5"
|
|
225
219
|
},
|
|
226
220
|
peerDependencies: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AcpProcess2
|
|
3
|
-
} from "../../chunks/
|
|
4
|
-
import"../../chunks/
|
|
5
|
-
import"../../chunks/
|
|
3
|
+
} from "../../chunks/bash-description-eqp7ap2w.js";
|
|
4
|
+
import"../../chunks/bash-description-svrhh5a5.js";
|
|
5
|
+
import"../../chunks/bash-description-9nn3yp18.js";
|
|
6
6
|
export {
|
|
7
7
|
AcpProcess2 as AcpProcess
|
|
8
8
|
};
|
package/dist/src/acp/index.d.ts
CHANGED
|
@@ -25,11 +25,11 @@ export declare function acpAgents(options?: {
|
|
|
25
25
|
id: string;
|
|
26
26
|
contribute: {
|
|
27
27
|
tools: ToolDefinition<{
|
|
28
|
+
thread: string;
|
|
28
29
|
id: string;
|
|
29
|
-
kind: string;
|
|
30
30
|
title: string;
|
|
31
|
+
kind: string;
|
|
31
32
|
input: Record<string, unknown>;
|
|
32
|
-
thread: string;
|
|
33
33
|
paths: string[];
|
|
34
34
|
}, unknown>[];
|
|
35
35
|
};
|
|
@@ -39,7 +39,7 @@ export declare function acpAgents(options?: {
|
|
|
39
39
|
readonly contribute: import("@nyte-ai/core").Registries<"core">;
|
|
40
40
|
readonly storage: import("@nyte-ai/core").PluginStorage;
|
|
41
41
|
readonly signal: AbortSignal;
|
|
42
|
-
hook<N extends "
|
|
42
|
+
hook<N extends import("@nyte-ai/core").HookName<"core">>(name: N, entry: import("@nyte-ai/core").HookEntry<"core", N>): import("@nyte-ai/schema").Disposer;
|
|
43
43
|
report(issue: import("@nyte-ai/schema").ValidationIssue): void;
|
|
44
44
|
reload(): void;
|
|
45
45
|
} & {
|
package/dist/src/acp/index.js
CHANGED
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
MIRROR_TOOL2,
|
|
5
5
|
mirrorArguments2,
|
|
6
6
|
mirrorClass2
|
|
7
|
-
} from "../../chunks/
|
|
8
|
-
import"../../chunks/
|
|
7
|
+
} from "../../chunks/bash-description-9nn3yp18.js";
|
|
8
|
+
import"../../chunks/bash-description-svrhh5a5.js";
|
|
9
9
|
import {
|
|
10
10
|
AcpProcess2
|
|
11
|
-
} from "../../chunks/
|
|
12
|
-
import"../../chunks/
|
|
11
|
+
} from "../../chunks/bash-description-eqp7ap2w.js";
|
|
12
|
+
import"../../chunks/bash-description-4vz9pxyx.js";
|
|
13
13
|
import {
|
|
14
14
|
registryEntries2,
|
|
15
15
|
installedAgents2
|
|
16
|
-
} from "../../chunks/
|
|
16
|
+
} from "../../chunks/bash-description-hg64tqf1.js";
|
|
17
17
|
import {
|
|
18
18
|
messageKey2,
|
|
19
19
|
userBlocks2,
|
|
20
20
|
transcriptText2
|
|
21
|
-
} from "../../chunks/
|
|
21
|
+
} from "../../chunks/bash-description-wmcbg6fw.js";
|
|
22
22
|
|
|
23
23
|
// src/acp/index.ts
|
|
24
24
|
import {
|
package/dist/src/acp/registry.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registryEntries2,
|
|
3
3
|
installedAgents2
|
|
4
|
-
} from "../../chunks/
|
|
5
|
-
import"../../chunks/
|
|
4
|
+
} from "../../chunks/bash-description-hg64tqf1.js";
|
|
5
|
+
import"../../chunks/bash-description-4vz9pxyx.js";
|
|
6
6
|
export {
|
|
7
7
|
installedAgents2 as installedAgents,
|
|
8
8
|
registryEntries2 as registryEntries
|
package/dist/src/acp/thread.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
messageKey2,
|
|
3
3
|
userBlocks2,
|
|
4
4
|
transcriptText2
|
|
5
|
-
} from "../../chunks/
|
|
6
|
-
import"../../chunks/
|
|
5
|
+
} from "../../chunks/bash-description-wmcbg6fw.js";
|
|
6
|
+
import"../../chunks/bash-description-9nn3yp18.js";
|
|
7
7
|
export {
|
|
8
8
|
messageKey2 as messageKey,
|
|
9
9
|
transcriptText2 as transcriptText,
|
|
@@ -32,6 +32,7 @@ export declare function approvalReason(policy: ApprovalPolicy, tool: ApprovalToo
|
|
|
32
32
|
* @since 0.1.0
|
|
33
33
|
*/
|
|
34
34
|
export declare const approval: import("@nyte-ai/core").PartDefinition<{
|
|
35
|
+
tool: string;
|
|
35
36
|
class: {
|
|
36
37
|
kind: "read";
|
|
37
38
|
path: string;
|
|
@@ -42,21 +43,20 @@ export declare const approval: import("@nyte-ai/core").PartDefinition<{
|
|
|
42
43
|
kind: "edit";
|
|
43
44
|
path: string;
|
|
44
45
|
} | {
|
|
45
|
-
description?: string | undefined;
|
|
46
46
|
kind: "shell";
|
|
47
47
|
command: string;
|
|
48
|
+
description?: string | undefined;
|
|
48
49
|
} | {
|
|
49
50
|
kind: "delegate";
|
|
50
|
-
title: string | null;
|
|
51
|
-
role: "read" | "task" | "create" | "send" | "await" | "stop";
|
|
52
51
|
child: import("@nyte-ai/schema").Id<"session"> | null;
|
|
52
|
+
role: "await" | "create" | "read" | "send" | "stop" | "task";
|
|
53
|
+
title: string | null;
|
|
53
54
|
} | {
|
|
54
55
|
kind: "custom";
|
|
55
56
|
label: string;
|
|
56
57
|
};
|
|
57
|
-
reason: "edit" | "
|
|
58
|
-
|
|
59
|
-
decision: "session" | "once" | "deny" | null;
|
|
58
|
+
reason: "edit" | "outside" | "shell" | "tool";
|
|
59
|
+
decision: "deny" | "once" | "session" | null;
|
|
60
60
|
}, {
|
|
61
61
|
once: {
|
|
62
62
|
input: import("@nyte-ai/schema").Schema<object>;
|
|
@@ -89,6 +89,7 @@ declare const _default: {
|
|
|
89
89
|
id: string;
|
|
90
90
|
contribute: {
|
|
91
91
|
parts: import("@nyte-ai/core").PartDefinition<{
|
|
92
|
+
tool: string;
|
|
92
93
|
class: {
|
|
93
94
|
kind: "read";
|
|
94
95
|
path: string;
|
|
@@ -99,21 +100,20 @@ declare const _default: {
|
|
|
99
100
|
kind: "edit";
|
|
100
101
|
path: string;
|
|
101
102
|
} | {
|
|
102
|
-
description?: string | undefined;
|
|
103
103
|
kind: "shell";
|
|
104
104
|
command: string;
|
|
105
|
+
description?: string | undefined;
|
|
105
106
|
} | {
|
|
106
107
|
kind: "delegate";
|
|
107
|
-
title: string | null;
|
|
108
|
-
role: "read" | "task" | "create" | "send" | "await" | "stop";
|
|
109
108
|
child: import("@nyte-ai/schema").Id<"session"> | null;
|
|
109
|
+
role: "await" | "create" | "read" | "send" | "stop" | "task";
|
|
110
|
+
title: string | null;
|
|
110
111
|
} | {
|
|
111
112
|
kind: "custom";
|
|
112
113
|
label: string;
|
|
113
114
|
};
|
|
114
|
-
reason: "edit" | "
|
|
115
|
-
|
|
116
|
-
decision: "session" | "once" | "deny" | null;
|
|
115
|
+
reason: "edit" | "outside" | "shell" | "tool";
|
|
116
|
+
decision: "deny" | "once" | "session" | null;
|
|
117
117
|
}, {
|
|
118
118
|
once: {
|
|
119
119
|
input: import("@nyte-ai/schema").Schema<object>;
|
|
@@ -143,14 +143,14 @@ declare const _default: {
|
|
|
143
143
|
readonly kind: "edit";
|
|
144
144
|
readonly path: string;
|
|
145
145
|
} | {
|
|
146
|
-
readonly description?: string | undefined;
|
|
147
146
|
readonly kind: "shell";
|
|
148
147
|
readonly command: string;
|
|
148
|
+
readonly description?: string | undefined;
|
|
149
149
|
} | {
|
|
150
150
|
readonly kind: "delegate";
|
|
151
|
-
readonly title: string | null;
|
|
152
|
-
readonly role: "read" | "task" | "create" | "send" | "await" | "stop";
|
|
153
151
|
readonly child: import("@nyte-ai/schema").Id<"session"> | null;
|
|
152
|
+
readonly role: "await" | "create" | "read" | "send" | "stop" | "task";
|
|
153
|
+
readonly title: string | null;
|
|
154
154
|
} | {
|
|
155
155
|
readonly kind: "custom";
|
|
156
156
|
readonly label: string;
|
|
@@ -162,7 +162,7 @@ declare const _default: {
|
|
|
162
162
|
readonly contribute: import("@nyte-ai/core").Registries<"core">;
|
|
163
163
|
readonly storage: import("@nyte-ai/core").PluginStorage;
|
|
164
164
|
readonly signal: AbortSignal;
|
|
165
|
-
hook<N extends "
|
|
165
|
+
hook<N extends import("@nyte-ai/core").HookName<"core">>(name: N, entry: import("@nyte-ai/core").HookEntry<"core", N>): import("@nyte-ai/schema").Disposer;
|
|
166
166
|
report(issue: import("@nyte-ai/schema").ValidationIssue): void;
|
|
167
167
|
reload(): void;
|
|
168
168
|
} & {
|
|
@@ -25,6 +25,7 @@ export declare const APPROVAL_POLICIES: readonly [{
|
|
|
25
25
|
readonly description: "Runs every tool without asking";
|
|
26
26
|
}];
|
|
27
27
|
declare const state: import("@nyte-ai/schema").Schema<{
|
|
28
|
+
tool: string;
|
|
28
29
|
class: {
|
|
29
30
|
kind: "read";
|
|
30
31
|
path: string;
|
|
@@ -35,21 +36,20 @@ declare const state: import("@nyte-ai/schema").Schema<{
|
|
|
35
36
|
kind: "edit";
|
|
36
37
|
path: string;
|
|
37
38
|
} | {
|
|
38
|
-
description?: string | undefined;
|
|
39
39
|
kind: "shell";
|
|
40
40
|
command: string;
|
|
41
|
+
description?: string | undefined;
|
|
41
42
|
} | {
|
|
42
43
|
kind: "delegate";
|
|
43
|
-
title: string | null;
|
|
44
|
-
role: "read" | "task" | "create" | "send" | "await" | "stop";
|
|
45
44
|
child: import("@nyte-ai/schema").Id<"session"> | null;
|
|
45
|
+
role: "await" | "create" | "read" | "send" | "stop" | "task";
|
|
46
|
+
title: string | null;
|
|
46
47
|
} | {
|
|
47
48
|
kind: "custom";
|
|
48
49
|
label: string;
|
|
49
50
|
};
|
|
50
|
-
reason: "edit" | "
|
|
51
|
-
|
|
52
|
-
decision: "session" | "once" | "deny" | null;
|
|
51
|
+
reason: "edit" | "outside" | "shell" | "tool";
|
|
52
|
+
decision: "deny" | "once" | "session" | null;
|
|
53
53
|
}>;
|
|
54
54
|
/**
|
|
55
55
|
* One gated tool call: its tool, its class, why it asks (`shell`, `edit` in
|
|
@@ -87,6 +87,7 @@ export declare function approvalPrompt(current: Pick<ApprovalState, "tool" | "cl
|
|
|
87
87
|
export declare const approval: {
|
|
88
88
|
kind: string;
|
|
89
89
|
state: import("@nyte-ai/schema").Schema<{
|
|
90
|
+
tool: string;
|
|
90
91
|
class: {
|
|
91
92
|
kind: "read";
|
|
92
93
|
path: string;
|
|
@@ -97,21 +98,20 @@ export declare const approval: {
|
|
|
97
98
|
kind: "edit";
|
|
98
99
|
path: string;
|
|
99
100
|
} | {
|
|
100
|
-
description?: string | undefined;
|
|
101
101
|
kind: "shell";
|
|
102
102
|
command: string;
|
|
103
|
+
description?: string | undefined;
|
|
103
104
|
} | {
|
|
104
105
|
kind: "delegate";
|
|
105
|
-
title: string | null;
|
|
106
|
-
role: "read" | "task" | "create" | "send" | "await" | "stop";
|
|
107
106
|
child: import("@nyte-ai/schema").Id<"session"> | null;
|
|
107
|
+
role: "await" | "create" | "read" | "send" | "stop" | "task";
|
|
108
|
+
title: string | null;
|
|
108
109
|
} | {
|
|
109
110
|
kind: "custom";
|
|
110
111
|
label: string;
|
|
111
112
|
};
|
|
112
|
-
reason: "edit" | "
|
|
113
|
-
|
|
114
|
-
decision: "session" | "once" | "deny" | null;
|
|
113
|
+
reason: "edit" | "outside" | "shell" | "tool";
|
|
114
|
+
decision: "deny" | "once" | "session" | null;
|
|
115
115
|
}>;
|
|
116
116
|
actions: {
|
|
117
117
|
once: {
|
|
@@ -125,6 +125,7 @@ export declare const approval: {
|
|
|
125
125
|
};
|
|
126
126
|
};
|
|
127
127
|
fallback: (current: {
|
|
128
|
+
tool: string;
|
|
128
129
|
class: {
|
|
129
130
|
kind: "read";
|
|
130
131
|
path: string;
|
|
@@ -135,21 +136,20 @@ export declare const approval: {
|
|
|
135
136
|
kind: "edit";
|
|
136
137
|
path: string;
|
|
137
138
|
} | {
|
|
138
|
-
description?: string | undefined;
|
|
139
139
|
kind: "shell";
|
|
140
140
|
command: string;
|
|
141
|
+
description?: string | undefined;
|
|
141
142
|
} | {
|
|
142
143
|
kind: "delegate";
|
|
143
|
-
title: string | null;
|
|
144
|
-
role: "read" | "task" | "create" | "send" | "await" | "stop";
|
|
145
144
|
child: import("@nyte-ai/schema").Id<"session"> | null;
|
|
145
|
+
role: "await" | "create" | "read" | "send" | "stop" | "task";
|
|
146
|
+
title: string | null;
|
|
146
147
|
} | {
|
|
147
148
|
kind: "custom";
|
|
148
149
|
label: string;
|
|
149
150
|
};
|
|
150
|
-
reason: "edit" | "
|
|
151
|
-
|
|
152
|
-
decision: "session" | "once" | "deny" | null;
|
|
151
|
+
reason: "edit" | "outside" | "shell" | "tool";
|
|
152
|
+
decision: "deny" | "once" | "session" | null;
|
|
153
153
|
}, { id }: {
|
|
154
154
|
readonly id: PartId;
|
|
155
155
|
}) => string;
|
|
@@ -15,7 +15,7 @@ declare const _default: {
|
|
|
15
15
|
readonly contribute: import("@nyte-ai/core").Registries<"core">;
|
|
16
16
|
readonly storage: import("@nyte-ai/core").PluginStorage;
|
|
17
17
|
readonly signal: AbortSignal;
|
|
18
|
-
hook<N extends "
|
|
18
|
+
hook<N extends import("@nyte-ai/core").HookName<"core">>(name: N, entry: import("@nyte-ai/core").HookEntry<"core", N>): import("@nyte-ai/schema").Disposer;
|
|
19
19
|
report(issue: import("@nyte-ai/schema").ValidationIssue): void;
|
|
20
20
|
reload(): void;
|
|
21
21
|
} & {
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
// src/bash-description.ts
|
|
2
|
+
import { bashProperties } from "@nyte-ai/core";
|
|
2
3
|
import { standard } from "@nyte-ai/schema";
|
|
3
4
|
import { Type } from "typebox";
|
|
4
5
|
var parameters = standard(Type.Object({
|
|
5
|
-
|
|
6
|
+
...bashProperties,
|
|
6
7
|
description: Type.String({
|
|
7
8
|
description: "Clear, concise description of what this command does in 5-10 words, in active voice."
|
|
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
11
|
var bash_description_default = {
|
|
14
12
|
id: "bash-description",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compileCanvas2
|
|
3
|
-
} from "../../chunks/
|
|
4
|
-
import"../../chunks/
|
|
5
|
-
import"../../chunks/
|
|
3
|
+
} from "../../chunks/bash-description-zz15raxk.js";
|
|
4
|
+
import"../../chunks/bash-description-dnvgk30y.js";
|
|
5
|
+
import"../../chunks/bash-description-zfpm2rt0.js";
|
|
6
6
|
export {
|
|
7
7
|
compileCanvas2 as compileCanvas
|
|
8
8
|
};
|