@nyte-ai/plugin 0.0.27 → 0.0.28-nightly.20261107.65

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 (55) hide show
  1. package/dist/chunks/{bash-description-tc68h635.js → bash-description-4y8ey061.js} +1 -1
  2. package/dist/chunks/{bash-description-5zjawxsz.js → bash-description-7pkkngps.js} +1 -1
  3. package/dist/chunks/{bash-description-j2azw9sj.js → bash-description-ajjg78ww.js} +1 -1
  4. package/dist/chunks/{bash-description-jhrs22a3.js → bash-description-nn0tmjap.js} +16 -8
  5. package/dist/chunks/{bash-description-0gnxcq7q.js → bash-description-rckj413b.js} +1 -1
  6. package/dist/chunks/bash-description-wtcc8946.js +14 -0
  7. package/dist/src/acp/connection.d.ts +0 -11
  8. package/dist/src/acp/connection.js +1 -1
  9. package/dist/src/acp/index.js +1 -1
  10. package/dist/src/acp/registry.d.ts +0 -15
  11. package/dist/src/acp/thread.d.ts +0 -17
  12. package/dist/src/acp/transcript.d.ts +0 -3
  13. package/dist/src/acp/translate.d.ts +0 -5
  14. package/dist/src/approvals/approvals.d.ts +0 -1
  15. package/dist/src/approvals/schema.d.ts +0 -7
  16. package/dist/src/bash-description.d.ts +0 -9
  17. package/dist/src/browser-client.d.ts +0 -20
  18. package/dist/src/canvas/canvas-client.d.ts +0 -20
  19. package/dist/src/canvas/canvas-compile.js +2 -2
  20. package/dist/src/canvas/canvas-preview.js +2 -2
  21. package/dist/src/canvas/canvas-protocol.d.ts +16 -8
  22. package/dist/src/canvas/canvas-protocol.js +1 -1
  23. package/dist/src/canvas/canvas.js +4 -4
  24. package/dist/src/canvas/schema.js +2 -2
  25. package/dist/src/claude-code-sdk/session.d.ts +0 -17
  26. package/dist/src/claude-code-sdk/translate.d.ts +0 -1
  27. package/dist/src/client/citation.d.ts +8 -0
  28. package/dist/src/client/citation.js +6 -0
  29. package/dist/src/client/mount.d.ts +0 -12
  30. package/dist/src/client/notifications.js +2 -1
  31. package/dist/src/client/presentation.d.ts +2 -144
  32. package/dist/src/client/presentation.js +5 -1
  33. package/dist/src/client/transcript-tui.d.ts +0 -6
  34. package/dist/src/client/transcript.d.ts +0 -6
  35. package/dist/src/client/user-messages.d.ts +0 -10
  36. package/dist/src/client.d.ts +0 -25
  37. package/dist/src/codemode.d.ts +0 -6
  38. package/dist/src/codemode.js +2 -2
  39. package/dist/src/core.d.ts +0 -26
  40. package/dist/src/desktop-settings/schema.d.ts +0 -3
  41. package/dist/src/find-on-path.d.ts +0 -2
  42. package/dist/src/openai-astra-context.d.ts +0 -14
  43. package/dist/src/question/schema.d.ts +0 -8
  44. package/dist/src/rename.js +1 -1
  45. package/dist/src/subagents.d.ts +0 -8
  46. package/dist/src/subagents.js +65 -21
  47. package/dist/src/tool-search.d.ts +0 -1
  48. package/dist/src/web/body.d.ts +0 -1
  49. package/dist/src/web/fetch.d.ts +0 -5
  50. package/dist/src/web/html-markdown.d.ts +0 -6
  51. package/dist/src/web/index.d.ts +0 -6
  52. package/dist/src/web/providers.d.ts +0 -19
  53. package/dist/src/web/search.d.ts +0 -4
  54. package/package.json +4 -4
  55. /package/dist/chunks/{bash-description-spc5av5d.js → bash-description-sqknck2c.js} +0 -0
@@ -1,9 +1,10 @@
1
+ import"../../chunks/bash-description-wtcc8946.js";
1
2
  import"../../chunks/bash-description-t3hbavcc.js";
2
3
  import {
3
4
  taskLabel2,
4
5
  endedStatus2,
5
6
  sessionTitle2
6
- } from "../../chunks/bash-description-spc5av5d.js";
7
+ } from "../../chunks/bash-description-sqknck2c.js";
7
8
 
8
9
  // src/client/notifications.ts
9
10
  var notifications_default = {
@@ -2,65 +2,27 @@ import { text, thinking } from "@nyte-ai/core";
2
2
  import type { PartState } from "@nyte-ai/core";
3
3
  import type { Execution, Failure, HeadInfo, Message, RunEnd, RunId, SessionInfo, ToolClass, ToolPartState } from "@nyte-ai/schema";
4
4
  export { jobTaskState } from "@nyte-ai/schema";
5
+ export { parseCitation } from "./citation.ts";
6
+ export type { Citation } from "./citation.ts";
5
7
  export { showsAnswer, showsReport, shownContent } from "./user-messages.ts";
6
8
  export type { AnswerMessage, ReportMessage } from "./user-messages.ts";
7
- /**
8
- * A message the user sent, or one a child, job or action delivered for them.
9
- *
10
- * @category presentation
11
- */
12
9
  export type UserMessage = Extract<Message, {
13
10
  readonly kind: "user";
14
11
  }>;
15
- /**
16
- * A message that carries a part: text, thinking, a tool call or a plugin's part.
17
- *
18
- * @category presentation
19
- */
20
12
  export type PartMessage = Extract<Message, {
21
13
  readonly kind: "part";
22
14
  }>;
23
- /**
24
- * A part message holding a tool call.
25
- *
26
- * @category presentation
27
- */
28
15
  export type ToolMessage = PartMessage & {
29
16
  readonly state: ToolPartState;
30
17
  };
31
- /**
32
- * A part message holding assistant text.
33
- *
34
- * @category presentation
35
- */
36
18
  export type TextMessage = PartMessage & {
37
19
  readonly state: PartState<typeof text>;
38
20
  };
39
- /**
40
- * A part message holding the model's thinking.
41
- *
42
- * @category presentation
43
- */
44
21
  export type ThinkingMessage = PartMessage & {
45
22
  readonly state: PartState<typeof thinking>;
46
23
  };
47
- /**
48
- * Narrows to a tool call's part.
49
- *
50
- * @category presentation
51
- */
52
24
  export declare function showsTool(message: Message): message is ToolMessage;
53
- /**
54
- * Narrows to an assistant text part.
55
- *
56
- * @category presentation
57
- */
58
25
  export declare function showsText(message: Message): message is TextMessage;
59
- /**
60
- * Narrows to a thinking part.
61
- *
62
- * @category presentation
63
- */
64
26
  export declare function showsThinking(message: Message): message is ThinkingMessage;
65
27
  /**
66
28
  * A part a client has no renderer for, shown raw: the text its state carries
@@ -86,23 +48,8 @@ export declare function readRawPart(message: PartMessage): RawPart;
86
48
  * @category presentation
87
49
  */
88
50
  export type ToolTense = "running" | "past" | "none";
89
- /**
90
- * The colour family of a tool line's state.
91
- *
92
- * @category presentation
93
- */
94
51
  export type ToolTone = "running" | "attention" | "success" | "failure" | "stopped";
95
- /**
96
- * The word a tool line adds after its subject when the outcome needs saying.
97
- *
98
- * @category presentation
99
- */
100
52
  export type ToolWord = "Needs input" | "Failed" | "Blocked" | "Stopped" | "Interrupted";
101
- /**
102
- * How every client shows a tool call's state; clients change only case and glyphs.
103
- *
104
- * @category presentation
105
- */
106
53
  export interface ToolStatus {
107
54
  readonly tense: ToolTense;
108
55
  readonly tone: ToolTone;
@@ -129,23 +76,8 @@ export declare function toolOutput(state: ToolPartState): string;
129
76
  * @category presentation
130
77
  */
131
78
  export type TaskState = "waiting" | "retrying" | "working" | "background" | "failed" | "done";
132
- /**
133
- * Screen readers hear the same word sighted users see.
134
- *
135
- * @category presentation
136
- */
137
79
  export declare function taskLabel(state: TaskState): string;
138
- /**
139
- * A delegate call's state as a task, for a child no client knows yet.
140
- *
141
- * @category presentation
142
- */
143
80
  export declare function callTaskState(status: ToolStatus): TaskState;
144
- /**
145
- * Whether a task has finished, either done or failed.
146
- *
147
- * @category presentation
148
- */
149
81
  export declare function taskEnded(state: TaskState): boolean;
150
82
  /**
151
83
  * The heading over a group of agents: how many still run, else how many finished and failed.
@@ -182,11 +114,6 @@ export type RunStatus = {
182
114
  readonly kind: "waiting-for-approval";
183
115
  readonly run: RunId;
184
116
  };
185
- /**
186
- * How many of a head's background items are still working and how many wait on the user.
187
- *
188
- * @category presentation
189
- */
190
117
  export type BackgroundWork = HeadInfo["background"];
191
118
  /**
192
119
  * A head's execution as a run status; none reads as idle, and a run waiting on a child, job or
@@ -228,23 +155,8 @@ export declare function backgroundLabel(background: BackgroundWork): string | un
228
155
  * @category presentation
229
156
  */
230
157
  export declare function planningLabel(planningMs: number): string | undefined;
231
- /**
232
- * Also holds the live row's place before {@link planningLabel} shows it.
233
- *
234
- * @category presentation
235
- */
236
158
  export declare const PLANNING_LABEL = "Planning next moves";
237
- /**
238
- * How long without progress before the live row says a run is planning.
239
- *
240
- * @category presentation
241
- */
242
159
  export declare const PLANNING_DELAY_MS = 200;
243
- /**
244
- * How long without progress before the live row says a run is taking longer than expected.
245
- *
246
- * @category presentation
247
- */
248
160
  export declare const SLOW_PLANNING_MS = 15000;
249
161
  /**
250
162
  * An execution's own run as a task; a session without one is done.
@@ -258,11 +170,6 @@ export declare function executionMark(execution: Execution | undefined): TaskSta
258
170
  * @category presentation
259
171
  */
260
172
  export declare function mainHead(session: Pick<SessionInfo, "heads">): HeadInfo | undefined;
261
- /**
262
- * A session's state, the same in a list row, a tab and a parent's task list.
263
- *
264
- * @category presentation
265
- */
266
173
  export declare function sessionMark(session: Pick<SessionInfo, "heads">): TaskState;
267
174
  /**
268
175
  * A session's title: its name, else "New chat" for a top-level chat or {@link SUBAGENT_TITLE}.
@@ -270,11 +177,6 @@ export declare function sessionMark(session: Pick<SessionInfo, "heads">): TaskSt
270
177
  * @category presentation
271
178
  */
272
179
  export declare function sessionTitle(session: Pick<SessionInfo, "name" | "parent">): string;
273
- /**
274
- * A child session's title while it has no name or a client doesn't know it yet.
275
- *
276
- * @category presentation
277
- */
278
180
  export declare const SUBAGENT_TITLE = "Subagent";
279
181
  /**
280
182
  * The text after a one-line draft's leading `/name `, while the caret is past
@@ -294,11 +196,6 @@ export interface CommandArgument {
294
196
  * @category presentation
295
197
  */
296
198
  export declare function findCommandArgument(value: string, cursor: number): CommandArgument | undefined;
297
- /**
298
- * The `@` mention or `/` command the caret is in, with the word's bounds.
299
- *
300
- * @category presentation
301
- */
302
199
  export interface CompletionTrigger {
303
200
  readonly kind: "@" | "/";
304
201
  readonly start: number;
@@ -311,21 +208,10 @@ export interface CompletionTrigger {
311
208
  * @category presentation
312
209
  */
313
210
  export declare function completionTrigger(value: string, cursor?: number): CompletionTrigger | undefined;
314
- /**
315
- * The verb for each tense that asserts one.
316
- *
317
- * @category presentation
318
- */
319
211
  export type ToolVerbs = Readonly<Record<Exclude<ToolTense, "none">, string>>;
320
212
  type DelegateClass = Extract<ToolClass, {
321
213
  readonly kind: "delegate";
322
214
  }>;
323
- /**
324
- * How a custom tool reads: its verbs, and the name and server an MCP tool
325
- * carries, or a fixed detail for a built-in.
326
- *
327
- * @category presentation
328
- */
329
215
  export interface CustomTool {
330
216
  readonly verbs: ToolVerbs;
331
217
  readonly name?: string;
@@ -339,11 +225,6 @@ export interface CustomTool {
339
225
  * @category presentation
340
226
  */
341
227
  export declare function customTool(label: string): CustomTool;
342
- /**
343
- * The verbs a tool call speaks with.
344
- *
345
- * @category presentation
346
- */
347
228
  export declare function toolVerbs(toolClass: ToolClass): ToolVerbs;
348
229
  /**
349
230
  * What a verbless line adds after its subject so the tool stays named: a path
@@ -358,12 +239,6 @@ export declare function toolNoun(toolClass: ToolClass): string | undefined;
358
239
  * @category presentation
359
240
  */
360
241
  export declare function delegateSubject(toolClass: DelegateClass): string;
361
- /**
362
- * What a call acts on, in full: a path, a command, an agent's title, or a
363
- * custom tool's name.
364
- *
365
- * @category presentation
366
- */
367
242
  export declare function toolSubject(toolClass: ToolClass): string | undefined;
368
243
  /**
369
244
  * One line naming a call: the tense's verb before the subject, or the subject
@@ -420,27 +295,10 @@ export interface ToolDetail {
420
295
  * @category presentation
421
296
  */
422
297
  export declare function toolDetail(toolClass: ToolClass, cwd: string | undefined): ToolDetail | undefined;
423
- /**
424
- * The step that gets a failed run going again. Each client names it its own
425
- * way: a command, a key or a settings page.
426
- *
427
- * @category presentation
428
- */
429
298
  export type Recovery = "compact" | "sign-in" | "switch-model";
430
- /**
431
- * What a failed run says: one sentence, its tone, and the step that recovers
432
- * from it when the user has one to take.
433
- *
434
- * @category presentation
435
- */
436
299
  export interface FailureNotice {
437
300
  readonly text: string;
438
301
  readonly tone: "neutral" | "danger";
439
302
  readonly recovery: Recovery | undefined;
440
303
  }
441
- /**
442
- * The notice for a run's failure.
443
- *
444
- * @category presentation
445
- */
446
304
  export declare function failureNotice(failure: Failure): FailureNotice;
@@ -39,12 +39,15 @@ import {
39
39
  toolDetail2,
40
40
  failureNotice2,
41
41
  jobTaskState2
42
- } from "../../chunks/bash-description-spc5av5d.js";
42
+ } from "../../chunks/bash-description-sqknck2c.js";
43
43
  import {
44
44
  showsReport2,
45
45
  showsAnswer2,
46
46
  shownContent2
47
47
  } from "../../chunks/bash-description-t3hbavcc.js";
48
+ import {
49
+ parseCitation2
50
+ } from "../../chunks/bash-description-wtcc8946.js";
48
51
  export {
49
52
  PLANNING_DELAY_MS2 as PLANNING_DELAY_MS,
50
53
  PLANNING_LABEL2 as PLANNING_LABEL,
@@ -65,6 +68,7 @@ export {
65
68
  formatWholeDuration2 as formatWholeDuration,
66
69
  jobTaskState2 as jobTaskState,
67
70
  mainHead2 as mainHead,
71
+ parseCitation2 as parseCitation,
68
72
  placeName2 as placeName,
69
73
  planningLabel2 as planningLabel,
70
74
  readRawPart2 as readRawPart,
@@ -8,12 +8,6 @@ import type { Renderer } from "@nyte-ai/plugin/client";
8
8
  * @since 0.1.0
9
9
  */
10
10
  export declare const transcriptRenderers: readonly Renderer[];
11
- /**
12
- * The terminal renderers as a client plugin.
13
- *
14
- * @category plugins
15
- * @since 0.1.0
16
- */
17
11
  declare const _default: {
18
12
  id: string;
19
13
  contribute: {
@@ -8,12 +8,6 @@ import type { Renderer } from "@nyte-ai/plugin/client";
8
8
  * @since 0.1.0
9
9
  */
10
10
  export declare const transcriptRenderers: readonly Renderer[];
11
- /**
12
- * The React renderers as a client plugin.
13
- *
14
- * @category plugins
15
- * @since 0.1.0
16
- */
17
11
  declare const _default: {
18
12
  id: string;
19
13
  contribute: {
@@ -1,10 +1,5 @@
1
1
  import type { MessageSource, UserContent } from "@nyte-ai/schema";
2
2
  import type { UserMessage } from "./presentation.ts";
3
- /**
4
- * A user message a child session or background job delivered as its report.
5
- *
6
- * @category presentation
7
- */
8
3
  export type ReportMessage = UserMessage & {
9
4
  readonly source: Extract<MessageSource, {
10
5
  readonly kind: "child" | "job";
@@ -21,11 +16,6 @@ export type AnswerMessage = UserMessage & {
21
16
  readonly kind: "answer";
22
17
  }>;
23
18
  };
24
- /**
25
- * Narrows to the report a child or job delivered; a person or an action sent the rest.
26
- *
27
- * @category presentation
28
- */
29
19
  export declare function showsReport(message: UserMessage): message is ReportMessage;
30
20
  /**
31
21
  * Narrows to a late answer to a part's request, which clients mark instead of drawing as a prompt.
@@ -11,34 +11,9 @@ export type { ClientApi, Command, Keybinding, Part, PartDefinition, PartState, R
11
11
  * @since 0.1.0
12
12
  */
13
13
  export type Plugin = CorePlugin<"client">;
14
- /**
15
- * What a client plugin's `activate` and hook handlers receive: the app's
16
- * connection, the session on screen and notifications.
17
- *
18
- * @category plugins
19
- * @since 0.1.0
20
- */
21
14
  export type PluginApi = CorePluginApi<"client">;
22
- /**
23
- * Names a hook a client plugin may handle.
24
- *
25
- * @category hooks
26
- * @since 0.1.0
27
- */
28
15
  export type HookName = SideHookName<"client">;
29
- /**
30
- * Returns a client hook handler's signature.
31
- *
32
- * @category hooks
33
- * @since 0.1.0
34
- */
35
16
  export type HookHandler<N extends HookName> = SideHookHandler<"client", N>;
36
- /**
37
- * Returns a client hook entry: a handler, or a handler with an order.
38
- *
39
- * @category hooks
40
- * @since 0.1.0
41
- */
42
17
  export type HookEntry<N extends HookName> = SideHookEntry<"client", N>;
43
18
  /**
44
19
  * Returns a renderer for one part kind whose `draw` gets the state checked
@@ -11,11 +11,5 @@ import type { Plugin } from "@nyte-ai/plugin/core";
11
11
  * @since 0.1.0
12
12
  */
13
13
  export declare function codemodePlugin(runtime: Pick<CodemodeSandboxOptions, "workerUrl" | "wasm">): Plugin;
14
- /**
15
- * The codemode plugin over the installed sandbox runtime.
16
- *
17
- * @category plugins
18
- * @since 0.1.0
19
- */
20
14
  declare const _default: Plugin;
21
15
  export default _default;
@@ -13,10 +13,10 @@ import { attachFile, dev } from "@nyte-ai/core";
13
13
  import { isJson, isJsonObject, SdkError, standard } from "@nyte-ai/schema";
14
14
  import { Type } from "typebox";
15
15
  var DESCRIPTION = `Run JavaScript that calls other tools. The input is raw JavaScript (not JSON, no code fence), run as an async function body in a QuickJS sandbox: top-level \`await\` and \`return\` work. No Node, file system, network, or timers.
16
- - \`await tools.<name>({ ...args })\` resolves to the tool's output, or its text, and rejects with an Error on failure.
16
+ - \`await tools.<name>({ ...args })\` resolves to the tool's output, or its text, and rejects with an Error on failure. \`tools\` is predefined; don't declare your own.
17
17
  - Optional first line: \`// @options: {"timeout_ms": 60000}\`
18
18
  - \`text(value)\`, \`console.log(...)\` and \`return\` add output; \`store(key, value)\` and \`load(key)\` keep JSON values across codemode calls in this session.
19
- - \`ALL_TOOLS\`, \`await searchTools(query, { limit?, namespace? })\`, \`await describeTool(name)\` and \`await describeNamespace(name)\` find unlisted tools, such as MCP tools, and their declarations.`;
19
+ - Inside a script, \`ALL_TOOLS\`, \`await searchTools(query, { limit?, namespace? })\`, \`await describeTool(name)\` and \`await describeNamespace(name)\` find unlisted tools, such as MCP tools, and their declarations. They are script functions, not tools.`;
20
20
  var LISTING_TOKENS = 3000;
21
21
  var parameters = standard(Type.Object({ code: Type.String({ description: "Raw JavaScript source." }) }));
22
22
  function codemodePlugin(runtime) {
@@ -11,33 +11,7 @@ export type { CompactionPlan, Decision, ModelRequest, Submission, ToolCall, Tran
11
11
  * @since 0.1.0
12
12
  */
13
13
  export type Plugin = CorePlugin<"core">;
14
- /**
15
- * What a core plugin's `activate` and hook handlers receive: the session,
16
- * its environment, the registries, storage and `request`.
17
- *
18
- * @category plugins
19
- * @since 0.1.0
20
- */
21
14
  export type PluginApi = CorePluginApi<"core">;
22
- /**
23
- * Names a hook a core plugin may handle.
24
- *
25
- * @category hooks
26
- * @since 0.1.0
27
- */
28
15
  export type HookName = SideHookName<"core">;
29
- /**
30
- * Returns a core hook handler's signature, for a helper factored out of a
31
- * plugin's `hooks`.
32
- *
33
- * @category hooks
34
- * @since 0.1.0
35
- */
36
16
  export type HookHandler<N extends HookName> = SideHookHandler<"core", N>;
37
- /**
38
- * Returns a core hook entry: a handler, or a handler with an order.
39
- *
40
- * @category hooks
41
- * @since 0.1.0
42
- */
43
17
  export type HookEntry<N extends HookName> = SideHookEntry<"core", N>;
@@ -1,16 +1,13 @@
1
1
  import { Type } from "typebox";
2
2
  import type { Static } from "typebox";
3
- /** How a chat's state can reach you past its sidebar mark, which always shows. */
4
3
  export declare const ALERT_CHANNELS: readonly ["notification", "badge", "sound", "bounce", "remind"];
5
4
  export type AlertChannel = (typeof ALERT_CHANNELS)[number];
6
- /** The states that alert, each with the channels it offers. Working only marks the sidebar. */
7
5
  export declare const ALERT_OFFERS: {
8
6
  readonly waiting: readonly ["notification", "badge", "sound", "bounce", "remind"];
9
7
  readonly failed: readonly ["notification", "badge", "sound", "bounce"];
10
8
  readonly done: readonly ["notification", "badge", "sound"];
11
9
  };
12
10
  export type AlertState = keyof typeof ALERT_OFFERS;
13
- /** The desktop setting holding each state's chosen channels. */
14
11
  export declare const ALERT_SETTING: {
15
12
  readonly waiting: "alertsWaiting";
16
13
  readonly failed: "alertsFailed";
@@ -1,4 +1,2 @@
1
- /** Whether `path` is a file this process may run. */
2
1
  export declare function executable(path: string): Promise<boolean>;
3
- /** The first executable `name` in the directories of `path`, a `PATH`-style list. */
4
2
  export declare function findOnPath(name: string, path: string): Promise<string | undefined>;
@@ -1,19 +1,5 @@
1
1
  import type { ModelContextPolicy } from "@nyte-ai/core";
2
- /**
3
- * The context policy of `gpt-6-astra` on OpenAI and OpenAI Codex: a window
4
- * of one million tokens, compacted at 400 000.
5
- *
6
- * @category plugins
7
- * @since 0.1.0
8
- */
9
2
  export declare const astra: readonly ModelContextPolicy[];
10
- /**
11
- * Gives the astra models their context window and compaction threshold,
12
- * folded into their `ModelInfo` and the sessions that run them.
13
- *
14
- * @category plugins
15
- * @since 0.1.0
16
- */
17
3
  declare const _default: {
18
4
  id: string;
19
5
  contribute: {
@@ -1,5 +1,4 @@
1
1
  import type { CallId, Infer, PartId, PartView, SessionView } from "@nyte-ai/schema";
2
- /** The question tool's name, which clients match to draw its calls. */
3
2
  export declare const QUESTION_TOOL = "question";
4
3
  declare const info: import("@nyte-ai/schema").Schema<{
5
4
  question: string;
@@ -49,7 +48,6 @@ export declare const questionParameters: import("@nyte-ai/schema").Schema<{
49
48
  multiple?: boolean | undefined;
50
49
  }[];
51
50
  }>;
52
- /** A question, its described choices, and whether the user may select several. */
53
51
  export type QuestionInfo = Infer<typeof info>;
54
52
  /** One answer list per question, in request order. An empty list leaves a question unanswered. */
55
53
  export type QuestionAnswers = Infer<typeof answerInput>["answers"];
@@ -147,12 +145,6 @@ export type OpenQuestion = Pick<QuestionState, "questions"> & {
147
145
  * @since 0.1.0
148
146
  */
149
147
  export declare function openQuestions(view: Pick<SessionView, "parts"> | undefined): readonly OpenQuestion[];
150
- /**
151
- * The question part a call made, found by its `call` with one string comparison per part; the
152
- * caller validates only the match with {@link readQuestion}.
153
- *
154
- * @category plugins
155
- */
156
148
  export declare function findQuestionPart(parts: readonly PartView[], call: CallId): PartView | undefined;
157
149
  /**
158
150
  * A question part's state, or null when it doesn't parse.
@@ -60,7 +60,7 @@ var renameParameters = standard(Type.Object({
60
60
  }));
61
61
  var renameTool = {
62
62
  name: "session_rename",
63
- description: "Rename the current session. Use a short, specific title that summarizes the work being done.",
63
+ description: "Rename this chat when the user asks for a new name; chats get a title on their own. Use a short, specific title.",
64
64
  parameters: renameParameters,
65
65
  class: (args) => ({ kind: "custom", label: `Renaming to ${args.title.trim()}` }),
66
66
  effects: "none",
@@ -1,12 +1,4 @@
1
1
  import type { Session } from "@nyte-ai/core";
2
- /**
3
- * Contributes the subagent tools to top-level sessions: `task`, `create`,
4
- * `send`, `await`, `read_agent` and `stop`, built on child sessions and
5
- * durable waits.
6
- *
7
- * @category plugins
8
- * @since 0.1.0
9
- */
10
2
  declare const _default: {
11
3
  id: string;
12
4
  activate(api: {