@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.
Files changed (95) hide show
  1. package/THIRD-PARTY-NOTICES.md +2 -38
  2. package/dist/chunks/{billing-mvc33pv6.js → bash-description-1neewp76.js} +20 -9
  3. package/dist/chunks/{billing-2v3g7rd9.js → bash-description-2v3g7rd9.js} +1 -1
  4. package/dist/chunks/{billing-3j77ss7y.js → bash-description-3j77ss7y.js} +1 -1
  5. package/dist/chunks/{billing-bv5zr32b.js → bash-description-dnvgk30y.js} +2 -2
  6. package/dist/chunks/{billing-r2ftaajy.js → bash-description-eqp7ap2w.js} +3 -9
  7. package/dist/chunks/{billing-hg64tqf1.js → bash-description-hg64tqf1.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-gs2h17jb.js → bash-description-zz15raxk.js} +1 -1
  13. package/dist/src/acp/connection.js +3 -3
  14. package/dist/src/acp/index.d.ts +3 -3
  15. package/dist/src/acp/index.js +6 -6
  16. package/dist/src/acp/registry.js +2 -2
  17. package/dist/src/acp/thread.js +2 -2
  18. package/dist/src/acp/transcript.js +2 -2
  19. package/dist/src/acp/translate.js +1 -1
  20. package/dist/src/approvals/approvals.d.ts +16 -16
  21. package/dist/src/approvals/approvals.js +1 -1
  22. package/dist/src/approvals/schema.d.ts +18 -18
  23. package/dist/src/approvals/schema.js +1 -1
  24. package/dist/src/bash-description.d.ts +1 -1
  25. package/dist/src/bash-description.js +3 -5
  26. package/dist/src/canvas/canvas-compile.js +3 -3
  27. package/dist/src/canvas/canvas-libraries.js +1 -1
  28. package/dist/src/canvas/canvas-preview.js +3 -3
  29. package/dist/src/canvas/canvas-protocol.d.ts +12 -12
  30. package/dist/src/canvas/canvas-protocol.js +2 -2
  31. package/dist/src/canvas/canvas.d.ts +12 -3
  32. package/dist/src/canvas/canvas.js +37 -15
  33. package/dist/src/canvas/schema.d.ts +48 -8
  34. package/dist/src/canvas/schema.js +7 -3
  35. package/dist/src/claude-code-sdk/index.d.ts +1 -1
  36. package/dist/src/claude-code-sdk/index.js +6 -6
  37. package/dist/src/claude-code-sdk/session.js +2 -2
  38. package/dist/src/claude-code-sdk/transcript.js +2 -2
  39. package/dist/src/claude-code-sdk/translate.js +1 -1
  40. package/dist/src/client/notifications.d.ts +1 -1
  41. package/dist/src/client/presentation.d.ts +1 -27
  42. package/dist/src/client/presentation.js +1 -19
  43. package/dist/src/find-on-path.js +1 -1
  44. package/dist/src/question/client/questions-tui.js +1 -1
  45. package/dist/src/question/client/questions.js +1 -1
  46. package/dist/src/question/question.d.ts +14 -14
  47. package/dist/src/question/question.js +2 -2
  48. package/dist/src/question/schema.d.ts +23 -23
  49. package/dist/src/question/schema.js +1 -1
  50. package/dist/src/rename.d.ts +10 -10
  51. package/dist/src/telemetry.d.ts +1 -1
  52. package/dist/src/web-search.d.ts +2 -2
  53. package/package.json +5 -10
  54. package/dist/chunks/billing-0y7dfkp2.js +0 -146
  55. package/dist/chunks/billing-3scqmkzb.js +0 -559
  56. package/dist/chunks/billing-8rjk35gr.js +0 -444
  57. package/dist/chunks/billing-9qc0eqh4.js +0 -174
  58. package/dist/chunks/billing-a9vqn66p.js +0 -351
  59. package/dist/chunks/billing-cy1rg619.js +0 -302
  60. package/dist/chunks/billing-ejx2hv52.js +0 -323
  61. package/dist/chunks/billing-j643d12p.js +0 -197
  62. package/dist/chunks/billing-s4rrspsk.js +0 -7
  63. package/dist/chunks/billing-t1qrxe16.js +0 -41
  64. package/dist/chunks/billing-tzr3cebf.js +0 -20
  65. package/dist/examples/claude-code/LICENSE +0 -21
  66. package/dist/examples/claude-code/billing.d.ts +0 -7
  67. package/dist/examples/claude-code/billing.js +0 -11
  68. package/dist/examples/claude-code/claude-cli.d.ts +0 -35
  69. package/dist/examples/claude-code/claude-cli.js +0 -15
  70. package/dist/examples/claude-code/env.d.ts +0 -1
  71. package/dist/examples/claude-code/env.js +0 -6
  72. package/dist/examples/claude-code/index.d.ts +0 -24
  73. package/dist/examples/claude-code/index.js +0 -149
  74. package/dist/examples/claude-code/inert-mcp.d.ts +0 -1
  75. package/dist/examples/claude-code/inert-mcp.js +0 -6
  76. package/dist/examples/claude-code/model-catalog.d.ts +0 -27
  77. package/dist/examples/claude-code/model-catalog.js +0 -12
  78. package/dist/examples/claude-code/process.d.ts +0 -22
  79. package/dist/examples/claude-code/process.js +0 -25
  80. package/dist/examples/claude-code/replay.d.ts +0 -4
  81. package/dist/examples/claude-code/replay.js +0 -11
  82. package/dist/examples/claude-code/stream.d.ts +0 -3
  83. package/dist/examples/claude-code/stream.js +0 -16
  84. package/dist/examples/claude-code/transcript.d.ts +0 -83
  85. package/dist/examples/claude-code/transcript.js +0 -23
  86. package/dist/examples/claude-code/turn-relay.d.ts +0 -48
  87. package/dist/examples/claude-code/turn-relay.js +0 -9
  88. package/dist/examples/claude-code/wire.d.ts +0 -372
  89. package/dist/examples/claude-code/wire.js +0 -18
  90. /package/dist/chunks/{billing-4vz9pxyx.js → bash-description-4vz9pxyx.js} +0 -0
  91. /package/dist/chunks/{billing-6z2kgtyt.js → bash-description-6z2kgtyt.js} +0 -0
  92. /package/dist/chunks/{billing-9nn3yp18.js → bash-description-9nn3yp18.js} +0 -0
  93. /package/dist/chunks/{billing-h13r0byk.js → bash-description-h13r0byk.js} +0 -0
  94. /package/dist/chunks/{billing-ye3wk5r3.js → bash-description-ye3wk5r3.js} +0 -0
  95. /package/dist/chunks/{billing-zfpm2rt0.js → bash-description-zfpm2rt0.js} +0 -0
@@ -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/examples/rename.ts`) port OpenCode v2. The web-search
349
- plugin set (`packages/plugin/examples/web-search/`) ports its Exa, Firecrawl,
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 "./billing-bv5zr32b.js";
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 state = standard(Type.Object({
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
- height: Type.Union([Type.Number(), Type.Null()]),
14
- error: Type.Union([Type.String(), Type.Null()])
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
- runtime: Type.Integer({ minimum: 1 }),
20
- title: Type.String({ minLength: 1, maxLength: 120 }),
31
+ ...drawn,
21
32
  code: Type.String({ maxLength: CANVAS_CODE_LIMIT2 }),
22
- height: Type.Union([Type.Number(), Type.Null()])
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 };
@@ -3,7 +3,7 @@ import {
3
3
  MIRROR_TOOL3,
4
4
  BACKGROUND_TOOL2,
5
5
  NYTE_TOOL_PREFIX2
6
- } from "./billing-ye3wk5r3.js";
6
+ } from "./bash-description-ye3wk5r3.js";
7
7
 
8
8
  // src/claude-code-sdk/transcript.ts
9
9
  import { randomUUID } from "node:crypto";
@@ -3,7 +3,7 @@ import {
3
3
  questionOutput2,
4
4
  questionParameters2,
5
5
  question3
6
- } from "./billing-6z2kgtyt.js";
6
+ } from "./bash-description-6z2kgtyt.js";
7
7
 
8
8
  // src/question/question.ts
9
9
  import { definePart, dev } from "@nyte-ai/core";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CANVAS_LIBRARIES2
3
- } from "./billing-zfpm2rt0.js";
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" | "pill" | "chip", size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl", tone?: "neutral" | "primary" | "success" | "warning" | "danger", loading?: boolean, disabled?: boolean, onClick, children }',
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 "./billing-svrhh5a5.js";
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.23",
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: "tsrs --noEmit",
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,7 +1,7 @@
1
1
  import {
2
2
  executable2,
3
3
  findOnPath2
4
- } from "./billing-4vz9pxyx.js";
4
+ } from "./bash-description-4vz9pxyx.js";
5
5
 
6
6
  // src/acp/registry.ts
7
7
  import { readFile, realpath } from "node:fs/promises";
@@ -4,7 +4,7 @@ import {
4
4
  mirrorClass2,
5
5
  toolText2,
6
6
  Translator2
7
- } from "./billing-9nn3yp18.js";
7
+ } from "./bash-description-9nn3yp18.js";
8
8
 
9
9
  // src/acp/thread.ts
10
10
  import { posix } from "node:path";
@@ -5,7 +5,7 @@ import {
5
5
  emptyMessage3,
6
6
  mirrorCall2,
7
7
  Translator3
8
- } from "./billing-ye3wk5r3.js";
8
+ } from "./bash-description-ye3wk5r3.js";
9
9
 
10
10
  // src/claude-code-sdk/session.ts
11
11
  import { randomUUID } from "node:crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MIRROR_TOOL2
3
- } from "./billing-9nn3yp18.js";
3
+ } from "./bash-description-9nn3yp18.js";
4
4
 
5
5
  // src/acp/transcript.ts
6
6
  var RESULT_LIMIT = 2000;
@@ -4,7 +4,7 @@ import {
4
4
  initializeResult2,
5
5
  renderNotification2,
6
6
  clampCanvasHeight2
7
- } from "./billing-bv5zr32b.js";
7
+ } from "./bash-description-dnvgk30y.js";
8
8
 
9
9
  // src/canvas/canvas-preview.ts
10
10
  import { Type } from "typebox";
@@ -10,7 +10,7 @@ import {
10
10
  LIBRARY_EXPORTS2,
11
11
  canvasFilesComment2,
12
12
  KIT_EXPORTS2
13
- } from "./billing-bv5zr32b.js";
13
+ } from "./bash-description-dnvgk30y.js";
14
14
 
15
15
  // src/canvas/canvas-compile.ts
16
16
  import { init, parse } from "es-module-lexer/minimal";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  AcpProcess2
3
- } from "../../chunks/billing-r2ftaajy.js";
4
- import"../../chunks/billing-svrhh5a5.js";
5
- import"../../chunks/billing-9nn3yp18.js";
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
  };
@@ -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 "session_activated" | "before_send" | "run_started" | "transform_transcript" | "before_compaction" | "before_request" | "before_tool" | "after_tool" | "after_request" | "run_ended">(name: N, entry: import("@nyte-ai/core").HookEntry<"core", N>): import("@nyte-ai/schema").Disposer;
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
  } & {
@@ -4,21 +4,21 @@ import {
4
4
  MIRROR_TOOL2,
5
5
  mirrorArguments2,
6
6
  mirrorClass2
7
- } from "../../chunks/billing-9nn3yp18.js";
8
- import"../../chunks/billing-svrhh5a5.js";
7
+ } from "../../chunks/bash-description-9nn3yp18.js";
8
+ import"../../chunks/bash-description-svrhh5a5.js";
9
9
  import {
10
10
  AcpProcess2
11
- } from "../../chunks/billing-r2ftaajy.js";
12
- import"../../chunks/billing-4vz9pxyx.js";
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/billing-hg64tqf1.js";
16
+ } from "../../chunks/bash-description-hg64tqf1.js";
17
17
  import {
18
18
  messageKey2,
19
19
  userBlocks2,
20
20
  transcriptText2
21
- } from "../../chunks/billing-wmcbg6fw.js";
21
+ } from "../../chunks/bash-description-wmcbg6fw.js";
22
22
 
23
23
  // src/acp/index.ts
24
24
  import {
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  registryEntries2,
3
3
  installedAgents2
4
- } from "../../chunks/billing-hg64tqf1.js";
5
- import"../../chunks/billing-4vz9pxyx.js";
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
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AcpThread2
3
- } from "../../chunks/billing-svrhh5a5.js";
4
- import"../../chunks/billing-9nn3yp18.js";
3
+ } from "../../chunks/bash-description-svrhh5a5.js";
4
+ import"../../chunks/bash-description-9nn3yp18.js";
5
5
  export {
6
6
  AcpThread2 as AcpThread
7
7
  };
@@ -2,8 +2,8 @@ import {
2
2
  messageKey2,
3
3
  userBlocks2,
4
4
  transcriptText2
5
- } from "../../chunks/billing-wmcbg6fw.js";
6
- import"../../chunks/billing-9nn3yp18.js";
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,
@@ -7,7 +7,7 @@ import {
7
7
  mirrorClass2,
8
8
  toolText2,
9
9
  Translator2
10
- } from "../../chunks/billing-9nn3yp18.js";
10
+ } from "../../chunks/bash-description-9nn3yp18.js";
11
11
  export {
12
12
  ACP_API2 as ACP_API,
13
13
  ACP_PROVIDER2 as ACP_PROVIDER,
@@ -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" | "shell" | "tool" | "outside";
58
- tool: string;
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" | "shell" | "tool" | "outside";
115
- tool: string;
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 "session_activated" | "before_send" | "run_started" | "transform_transcript" | "before_compaction" | "before_request" | "before_tool" | "after_tool" | "after_request" | "run_ended">(name: N, entry: import("@nyte-ai/core").HookEntry<"core", N>): import("@nyte-ai/schema").Disposer;
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
  } & {
@@ -4,7 +4,7 @@ import {
4
4
  APPROVAL_POLICIES2,
5
5
  approval2,
6
6
  openApprovals2
7
- } from "../../chunks/billing-h13r0byk.js";
7
+ } from "../../chunks/bash-description-h13r0byk.js";
8
8
 
9
9
  // src/approvals/approvals.ts
10
10
  import { posix } from "node:path";
@@ -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" | "shell" | "tool" | "outside";
51
- tool: string;
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" | "shell" | "tool" | "outside";
113
- tool: string;
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" | "shell" | "tool" | "outside";
151
- tool: string;
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;
@@ -6,7 +6,7 @@ import {
6
6
  approvalPrompt2,
7
7
  approval2,
8
8
  openApprovals2
9
- } from "../../chunks/billing-h13r0byk.js";
9
+ } from "../../chunks/bash-description-h13r0byk.js";
10
10
  export {
11
11
  APPROVAL_ACTIONS2 as APPROVAL_ACTIONS,
12
12
  APPROVAL_POLICIES2 as APPROVAL_POLICIES,
@@ -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 "session_activated" | "before_send" | "run_started" | "transform_transcript" | "before_compaction" | "before_request" | "before_tool" | "after_tool" | "after_request" | "run_ended">(name: N, entry: import("@nyte-ai/core").HookEntry<"core", N>): import("@nyte-ai/schema").Disposer;
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
- command: Type.String({ description: "The shell command to run." }),
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/billing-gs2h17jb.js";
4
- import"../../chunks/billing-bv5zr32b.js";
5
- import"../../chunks/billing-zfpm2rt0.js";
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
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CANVAS_LIBRARIES2
3
- } from "../../chunks/billing-zfpm2rt0.js";
3
+ } from "../../chunks/bash-description-zfpm2rt0.js";
4
4
  export {
5
5
  CANVAS_LIBRARIES2 as CANVAS_LIBRARIES
6
6
  };