@linxiraos/pi-tui 1.3.2 → 1.4.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 (116) hide show
  1. package/CHANGELOG.md +181 -181
  2. package/dist/types/apps/session-picker.d.ts +13 -1
  3. package/dist/types/autocomplete.d.ts +6 -0
  4. package/dist/types/components/sparkline.d.ts +34 -0
  5. package/dist/types/index.d.ts +1 -0
  6. package/dist/types/native/describe.d.ts +7 -1
  7. package/dist/types/native/overlay.d.ts +2 -0
  8. package/dist/types/native/tone.d.ts +2 -0
  9. package/dist/types/overlays/agent-hub.d.ts +3 -3
  10. package/dist/types/overlays/approval-dialog.d.ts +15 -1
  11. package/dist/types/overlays/jobs-panel.d.ts +3 -0
  12. package/dist/types/overlays/model-browser.d.ts +1 -1
  13. package/dist/types/overlays/resume-picker.d.ts +293 -0
  14. package/dist/types/overlays/resume-tree.d.ts +353 -0
  15. package/dist/types/overlays/session-selector.d.ts +22 -4
  16. package/dist/types/render/output-block.d.ts +2 -0
  17. package/dist/types/render/tool-card.d.ts +2 -0
  18. package/dist/types/sixel.d.ts +28 -0
  19. package/dist/types/status-line/host.d.ts +3 -0
  20. package/dist/types/terminal-capabilities.d.ts +6 -1
  21. package/dist/types/tools/bash.d.ts +2 -0
  22. package/dist/types/tools/default-renderer.d.ts +3 -0
  23. package/dist/types/tools/eval.d.ts +9 -8
  24. package/dist/types/tools/hub.d.ts +3 -1
  25. package/dist/types/tools/irc.d.ts +11 -1
  26. package/dist/types/tools/job-widget.d.ts +226 -0
  27. package/dist/types/tools/json-tree.d.ts +2 -0
  28. package/dist/types/tools/line-ranges.d.ts +8 -1
  29. package/dist/types/tools/mcp.d.ts +23 -0
  30. package/dist/types/tools/output-meta.d.ts +1 -1
  31. package/dist/types/tools/read.d.ts +8 -2
  32. package/dist/types/tools/renderer.d.ts +8 -2
  33. package/dist/types/tools/result-card.d.ts +1 -1
  34. package/dist/types/tools/streaming-output.d.ts +1 -0
  35. package/dist/types/tools/task.d.ts +12 -0
  36. package/dist/types/tools/wait.d.ts +11 -0
  37. package/package.json +9 -9
  38. package/src/apps/session-picker.ts +20 -2
  39. package/src/autocomplete.d.ts +6 -0
  40. package/src/autocomplete.ts +21 -6
  41. package/src/chat/skill-message.ts +16 -17
  42. package/src/chat/tool-execution.ts +35 -0
  43. package/src/chrome/transcript-container.ts +85 -13
  44. package/src/components/editor.ts +17 -7
  45. package/src/components/image.ts +5 -4
  46. package/src/components/markdown.ts +11 -3
  47. package/src/components/sparkline.d.ts +34 -0
  48. package/src/components/sparkline.ts +89 -0
  49. package/src/index.d.ts +1 -0
  50. package/src/index.ts +1 -0
  51. package/src/native/backend.ts +32 -6
  52. package/src/native/describe.d.ts +7 -1
  53. package/src/native/describe.ts +18 -1
  54. package/src/native/overlay.d.ts +2 -0
  55. package/src/native/overlay.ts +3 -0
  56. package/src/native/tone.d.ts +2 -0
  57. package/src/native/tone.ts +22 -0
  58. package/src/overlays/agent-hub.ts +14 -10
  59. package/src/overlays/agent-transcript-viewer.ts +2 -2
  60. package/src/overlays/agents-hub.ts +2 -1
  61. package/src/overlays/approval-dialog.ts +59 -13
  62. package/src/overlays/hub-frame.ts +2 -1
  63. package/src/overlays/jobs-panel.ts +24 -2
  64. package/src/overlays/model-browser.ts +3 -0
  65. package/src/overlays/model-hub.ts +2 -1
  66. package/src/overlays/resume-picker.ts +706 -0
  67. package/src/overlays/resume-tree.ts +1901 -0
  68. package/src/overlays/session-selector.ts +579 -39
  69. package/src/prompt/attachment-chips.ts +1 -1
  70. package/src/render/output-block.d.ts +2 -0
  71. package/src/render/output-block.ts +25 -12
  72. package/src/render/tool-card.d.ts +2 -0
  73. package/src/render/tool-card.ts +6 -0
  74. package/src/sixel.d.ts +28 -0
  75. package/src/sixel.ts +185 -0
  76. package/src/status-line/component.ts +19 -2
  77. package/src/status-line/host.ts +3 -0
  78. package/src/terminal-capabilities.d.ts +6 -1
  79. package/src/terminal-capabilities.ts +54 -3
  80. package/src/theme/symbols.ts +5 -3
  81. package/src/tools/bash.d.ts +2 -0
  82. package/src/tools/bash.ts +25 -9
  83. package/src/tools/default-renderer.d.ts +3 -0
  84. package/src/tools/default-renderer.ts +54 -17
  85. package/src/tools/eval.d.ts +9 -8
  86. package/src/tools/eval.ts +32 -14
  87. package/src/tools/find.ts +4 -5
  88. package/src/tools/glob.ts +4 -6
  89. package/src/tools/grep.ts +2 -4
  90. package/src/tools/hub.ts +4 -1
  91. package/src/tools/irc.d.ts +11 -1
  92. package/src/tools/irc.ts +11 -1
  93. package/src/tools/job-widget.d.ts +226 -0
  94. package/src/tools/job-widget.ts +1036 -0
  95. package/src/tools/json-tree.d.ts +2 -0
  96. package/src/tools/json-tree.ts +8 -0
  97. package/src/tools/line-ranges.d.ts +8 -1
  98. package/src/tools/line-ranges.ts +23 -13
  99. package/src/tools/mcp.d.ts +23 -0
  100. package/src/tools/mcp.ts +44 -1
  101. package/src/tools/output-meta.d.ts +1 -1
  102. package/src/tools/output-meta.ts +1 -1
  103. package/src/tools/proc-render.ts +1 -0
  104. package/src/tools/read.d.ts +8 -2
  105. package/src/tools/read.ts +64 -21
  106. package/src/tools/renderer.d.ts +8 -2
  107. package/src/tools/renderer.ts +8 -2
  108. package/src/tools/result-card.d.ts +1 -1
  109. package/src/tools/result-card.ts +1 -2
  110. package/src/tools/streaming-output.d.ts +1 -0
  111. package/src/tools/streaming-output.ts +11 -9
  112. package/src/tools/task.d.ts +12 -0
  113. package/src/tools/task.ts +25 -1
  114. package/src/tools/wait.d.ts +11 -0
  115. package/src/tools/wait.ts +296 -147
  116. package/src/tui.ts +45 -5
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * Tool-approval prompt in the composer's place, presented like the ask
3
3
  * dialog: the approval title and its details over a list of choices —
4
- * Approve, an optional "approve for this session", and Deny — and an action
4
+ * optional grants (led by a toggle that keeps them across sessions), Approve,
5
+ * an optional "approve for this session", and Deny — and an action
5
6
  * bar. The arrows move between the choices and Enter takes the highlighted
6
7
  * one; `app.approval.approve` (Ctrl+Enter by default) approves this call
7
8
  * outright and Esc denies. Enter and the approve chord only arm
@@ -23,6 +24,13 @@ interface ApprovalDialogCallbacks {
23
24
  onApprove(): void;
24
25
  onDeny(): void;
25
26
  }
27
+ /** A choice that approves the call and remembers more than it: a folder, or the exact target. */
28
+ export interface ApprovalDialogGrant {
29
+ /** Label while the grant is remembered for this session. */
30
+ readonly label: string;
31
+ /** Label once the remember toggle keeps it across sessions. */
32
+ readonly alwaysLabel: string;
33
+ }
26
34
  /** The composer mounted beneath the dialog: it receives every key the dialog does not own. */
27
35
  export interface ApprovalDialogDraft {
28
36
  /** True while the composer holds a draft — text, attachments, or a paste still landing: keys then edit and send it. */
@@ -48,6 +56,12 @@ interface ApprovalDialogOptions {
48
56
  label: string;
49
57
  onApprove(): void;
50
58
  };
59
+ /**
60
+ * Grants to offer above Approve, led by a toggle that keeps them across sessions; Approve then
61
+ * reads "Approve Once". `onGrant` gets the chosen grant and whether the toggle was on.
62
+ */
63
+ grants?: readonly ApprovalDialogGrant[];
64
+ onGrant?(grant: ApprovalDialogGrant, always: boolean): void;
51
65
  }
52
66
  export declare class ApprovalDialogComponent implements Component {
53
67
  #private;
@@ -1,6 +1,7 @@
1
1
  import type { Component } from "../tui.js";
2
2
  import type { DescribeContext, NativeNode, NativeUiEvent } from "../native/node.js";
3
3
  import { type JobTreeAgent } from "./job-tree.js";
4
+ import { type JobWidgetView } from "../tools/job-widget.js";
4
5
  /** One async job as the session snapshots it. */
5
6
  export interface JobsPanelJob {
6
7
  readonly id: string;
@@ -35,6 +36,8 @@ export interface JobsPanelDetail {
35
36
  readonly output?: string;
36
37
  /** Artifact holding the full output when `output` is cut. */
37
38
  readonly artifactId?: string;
39
+ /** The job's live widget (frozen once it settles), drawn above the output. */
40
+ readonly widget?: JobWidgetView;
38
41
  }
39
42
  /** The session behind a {@link JobsSheet}. */
40
43
  export interface JobsSheetSource {
@@ -7,7 +7,7 @@ import { type ThemeColor } from "../theme/theme.js";
7
7
  import type { TspPickerColumn, TspPickerGroup, TspPickerItem, TspPickerMark } from "@linxiraos/pi-wire";
8
8
  import type { NativeChild, NativeNode, NativeUiEvent } from "../native/node.js";
9
9
  /** Canonical display ordering of built-in model roles. */
10
- export type ModelRole = "default" | "smol" | "slow" | "vision" | "plan" | "commit" | "tiny" | "memory" | "task" | "advisor" | "image" | "web" | "speech" | "dictation" | "judge";
10
+ export type ModelRole = "default" | "smol" | "slow" | "vision" | "plan" | "commit" | "tiny" | "memory" | "task" | "advisor" | "widget" | "image" | "web" | "speech" | "dictation" | "judge";
11
11
  export declare const MODEL_ROLE_IDS: ModelRole[];
12
12
  export declare const CHAT_MODEL_ROLE_IDS: ModelRole[];
13
13
  export declare const KIND_ROLE_IDS: ModelRole[];
@@ -0,0 +1,293 @@
1
+ /**
2
+ * Native (`picker`) mapping of the resume directory model.
3
+ *
4
+ * The coding-agent owns the data model (`ResumeDirectory` / `buildResumeView`:
5
+ * project → workspace → conversation). pi-tui cannot import it (dependency
6
+ * direction), so this module declares structurally compatible `*Like` types
7
+ * and accepts a {@link ResumeSourceLike} the host builds from its real
8
+ * directory and view builder (the ANSI tree passes the same object). Nothing
9
+ * here re-groups conversations: the rows come from the model, and this module
10
+ * only turns them into picker props.
11
+ */
12
+ import type { TspPickerGroup, TspPickerItem, TspPickerScope } from "@linxiraos/pi-wire";
13
+ import type { SessionSelectorStatus } from "./session-selector.js";
14
+ import type { NativeChild } from "../native/node.js";
15
+ export type ResumeScopeKindLike = "workspace" | "project" | "all";
16
+ export interface ResumeScopeLike {
17
+ readonly kind: ResumeScopeKindLike;
18
+ readonly key?: string;
19
+ readonly projectKey?: string;
20
+ readonly workspaceKey?: string;
21
+ }
22
+ export type ResumeScopeInputLike = ResumeScopeKindLike | ResumeScopeLike;
23
+ /** Parsed query, as far as the native renderer reads it (the ANSI tree passes a subset). */
24
+ export interface ResumeQueryLike {
25
+ readonly raw: string;
26
+ readonly terms?: readonly string[];
27
+ readonly project?: readonly string[];
28
+ readonly workspace?: readonly string[];
29
+ readonly branch?: readonly string[];
30
+ readonly status?: readonly string[];
31
+ readonly current?: boolean | null;
32
+ readonly fork?: boolean | null;
33
+ readonly pinned?: boolean | null;
34
+ }
35
+ /** The session fields the picker reads; the host's `SessionInfo` supplies all of them. */
36
+ export interface ResumeSessionLike {
37
+ readonly path: string;
38
+ readonly id: string;
39
+ readonly cwd: string;
40
+ readonly title?: string;
41
+ readonly modified: Date;
42
+ readonly size?: number;
43
+ readonly firstMessage?: string;
44
+ readonly allMessagesText?: string;
45
+ readonly status?: SessionSelectorStatus;
46
+ readonly parentSessionPath?: string;
47
+ readonly created?: Date;
48
+ readonly messageCount?: number;
49
+ readonly assistantTurns?: number;
50
+ /** Last model recorded in the session (`provider/modelId`), when one was persisted. */
51
+ readonly model?: string;
52
+ }
53
+ export interface ResumeConversationLike {
54
+ readonly session: ResumeSessionLike;
55
+ readonly key: string;
56
+ readonly id: string;
57
+ readonly path: string;
58
+ readonly title: string;
59
+ readonly cwd: string;
60
+ readonly projectKey: string;
61
+ readonly workspaceKey: string;
62
+ readonly created: Date;
63
+ readonly modified: Date;
64
+ readonly status?: SessionSelectorStatus;
65
+ readonly pinned: boolean;
66
+ readonly current: boolean;
67
+ readonly fork: boolean;
68
+ /** Subagent marker from `session_init.agent`; forks never set it. */
69
+ readonly isSubagent?: boolean;
70
+ readonly agentName?: string;
71
+ readonly parentKey?: string;
72
+ readonly subagents?: readonly ResumeConversationLike[];
73
+ readonly messageCount: number;
74
+ }
75
+ export interface ResumeWorkspaceLike {
76
+ readonly key: string;
77
+ readonly path: string;
78
+ readonly name: string;
79
+ readonly alias?: string | null;
80
+ readonly displayName?: string;
81
+ readonly projectKey: string;
82
+ readonly branch: string | null;
83
+ readonly isWorktree?: boolean;
84
+ readonly pinned: boolean;
85
+ readonly lastActivity: Date | null;
86
+ /** Flat conversation list; the core model keeps conversations on the directory only. */
87
+ readonly conversations?: readonly ResumeConversationLike[];
88
+ readonly counts: {
89
+ readonly conversations: number;
90
+ readonly pinnedConversations: number;
91
+ };
92
+ }
93
+ export interface ResumeProjectLike {
94
+ readonly key: string;
95
+ readonly root: string;
96
+ readonly name: string;
97
+ readonly alias: string | null;
98
+ readonly displayName: string;
99
+ readonly isDefault: boolean;
100
+ readonly pinned: boolean;
101
+ readonly removable?: boolean;
102
+ readonly collapsed: boolean;
103
+ readonly lastActivity: Date | null;
104
+ readonly workspaces?: readonly ResumeWorkspaceLike[];
105
+ readonly conversations?: readonly ResumeConversationLike[];
106
+ readonly counts: {
107
+ readonly conversations: number;
108
+ readonly workspaces: number;
109
+ readonly pinnedConversations: number;
110
+ };
111
+ }
112
+ export interface ResumeDirectoryLike {
113
+ readonly projects: readonly ResumeProjectLike[];
114
+ readonly workspaces: readonly ResumeWorkspaceLike[];
115
+ readonly conversations: readonly ResumeConversationLike[];
116
+ readonly defaultProjectKey: string;
117
+ readonly defaultWorkspaceKey: string;
118
+ readonly counts: {
119
+ readonly projects: number;
120
+ readonly workspaces: number;
121
+ readonly conversations: number;
122
+ readonly pinnedConversations: number;
123
+ };
124
+ }
125
+ export interface ResumeProjectRowLike {
126
+ readonly type: "project";
127
+ readonly key: string;
128
+ readonly project: ResumeProjectLike;
129
+ readonly depth?: 0;
130
+ readonly pinned: boolean;
131
+ readonly collapsed: boolean;
132
+ readonly conversationCount: number;
133
+ readonly totalConversationCount: number;
134
+ readonly workspaceCount: number;
135
+ readonly totalWorkspaceCount: number;
136
+ }
137
+ export interface ResumeWorkspaceRowLike {
138
+ readonly type: "workspace";
139
+ readonly key: string;
140
+ readonly workspace: ResumeWorkspaceLike;
141
+ readonly projectKey: string;
142
+ readonly depth?: 1;
143
+ readonly pinned: boolean;
144
+ readonly conversationCount: number;
145
+ readonly totalConversationCount: number;
146
+ }
147
+ export interface ResumeConversationRowLike {
148
+ readonly type: "conversation";
149
+ readonly key: string;
150
+ readonly conversation: ResumeConversationLike;
151
+ readonly projectKey: string;
152
+ readonly workspaceKey: string;
153
+ readonly depth?: number;
154
+ readonly pinned: boolean;
155
+ readonly current: boolean;
156
+ readonly score?: number;
157
+ readonly pinnedOnly?: boolean;
158
+ }
159
+ export type ResumeViewRowLike = ResumeProjectRowLike | ResumeWorkspaceRowLike | ResumeConversationRowLike;
160
+ export interface ResumeViewCountsLike {
161
+ readonly conversations: number;
162
+ readonly workspaces?: number;
163
+ readonly projects?: number;
164
+ readonly pinnedConversations?: number;
165
+ readonly totalConversations: number;
166
+ readonly totalWorkspaces?: number;
167
+ readonly totalProjects?: number;
168
+ }
169
+ export interface ResumeViewLike {
170
+ readonly scope: ResumeScopeLike;
171
+ readonly query: ResumeQueryLike;
172
+ readonly rows: readonly ResumeViewRowLike[];
173
+ /** Conversation rows; the ANSI tree leaves it out and read `rows` instead. */
174
+ readonly conversations?: readonly ResumeConversationRowLike[];
175
+ readonly counts: ResumeViewCountsLike;
176
+ readonly referenceBranch?: string | null;
177
+ readonly currentWorkspaceKey?: string;
178
+ }
179
+ export interface ResumeViewOptionsLike {
180
+ scope?: ResumeScopeInputLike;
181
+ query?: string;
182
+ currentSessionPath?: string;
183
+ }
184
+ /** Names and per-scope conversation totals for the segmented control. */
185
+ export interface ResumeScopeSummaryLike {
186
+ readonly workspaceName: string;
187
+ readonly projectName: string;
188
+ readonly counts: Readonly<Record<ResumeScopeKindLike, number>>;
189
+ }
190
+ /**
191
+ * The host's resume model: the loaded directory plus its pure view builder.
192
+ * Shared with the ANSI tree, which supplies the same object; `directory` is
193
+ * null until the first scan finishes, and `buildView` returns null then.
194
+ */
195
+ export interface ResumeSourceLike {
196
+ readonly directory: ResumeDirectoryLike | null;
197
+ readonly initialScope?: ResumeScopeKindLike;
198
+ readonly deleteMode?: "trash" | "permanent";
199
+ buildView(options: ResumeViewOptionsLike): ResumeViewLike | null;
200
+ scopeSummary?(): ResumeScopeSummaryLike;
201
+ persistScope?(scope: ResumeScopeKindLike): void | Promise<void>;
202
+ refresh?(): Promise<void>;
203
+ pinConversation?(conversation: ResumeConversationLike, pinned: boolean): void | Promise<void>;
204
+ deleteConversation?(conversation: ResumeConversationLike): boolean | Promise<boolean>;
205
+ isLoading?(): boolean;
206
+ loadError?(): string | undefined;
207
+ }
208
+ export declare const RESUME_SCOPE_ORDER: readonly ResumeScopeKindLike[];
209
+ /** The scope after `kind` in the three-way cycle (Tab). */
210
+ export declare function nextResumeScope(kind: ResumeScopeKindLike): ResumeScopeKindLike;
211
+ /** The segmented control's label for a scope kind. */
212
+ export declare function resumeScopeLabel(kind: ResumeScopeKindLike): string;
213
+ /**
214
+ * Per-scope conversation totals for the segmented control. The host summary
215
+ * wins when present (the ANSI tree already computes it); otherwise the active
216
+ * scope's own pre-query total is reused and the other scopes cost one
217
+ * empty-query view each, so the model's scope resolution (current session →
218
+ * default workspace) decides the group, not this module.
219
+ */
220
+ export declare function resumeScopeTabs(source: ResumeSourceLike, active: ResumeViewLike, currentSessionPath: string | undefined): TspPickerScope[];
221
+ /** Assistant turns the session persisted; older listings fall back to the message count. */
222
+ export declare function resumeTurnCount(conversation: ResumeConversationLike): number;
223
+ export interface ResumeItemOptions {
224
+ /** Show each conversation's working directory (multi-worktree scopes). */
225
+ readonly showCwd?: boolean;
226
+ readonly now?: number;
227
+ /** Branch of the current workspace; a repeated branch stays off the cards. */
228
+ readonly referenceBranch?: string | null;
229
+ }
230
+ /** One conversation card: the existing facts plus turns, branch and model. */
231
+ export declare function resumePickerItem(row: ResumeConversationRowLike, workspace: ResumeWorkspaceLike | undefined, options?: ResumeItemOptions): TspPickerItem;
232
+ /** Project and workspace section heads followed by their conversations, from the model's rows. */
233
+ export declare function resumePickerOrder(view: ResumeViewLike): (string | TspPickerGroup)[];
234
+ /** Free-text hit ranges for the displayed rows (structured tokens never highlight). */
235
+ export declare function resumePickerHits(view: ResumeViewLike, items: ReadonlyMap<string, TspPickerItem>): Record<string, readonly (readonly [number, number])[]> | undefined;
236
+ /** Catalogue items for every conversation in the target scope (identity stable while typing). */
237
+ export declare function resumePickerItems(catalogue: ResumeViewLike, directory: ResumeDirectoryLike, options?: ResumeItemOptions): {
238
+ items: TspPickerItem[];
239
+ byPath: Map<string, TspPickerItem>;
240
+ };
241
+ /** The selected conversation path: the caller's when still visible, else the first row. */
242
+ export declare function resumePickerSelection(view: ResumeViewLike, preferred: string | null | undefined): string | null;
243
+ /**
244
+ * The same view with locally deleted conversations (and the section heads
245
+ * left empty by them) removed. Deletes are host-driven; the directory is not
246
+ * rebuilt per keystroke, so the picker hides the removed rows itself.
247
+ */
248
+ export declare function resumeViewWithout(view: ResumeViewLike, hidden: ReadonlySet<string>): ResumeViewLike;
249
+ export interface ResumePickerModel {
250
+ readonly view: ResumeViewLike;
251
+ readonly catalogue: ResumeViewLike;
252
+ readonly items: readonly TspPickerItem[];
253
+ readonly order: readonly (string | TspPickerGroup)[];
254
+ readonly hits?: Readonly<Record<string, readonly (readonly [number, number])[]>>;
255
+ readonly tabs: readonly TspPickerScope[];
256
+ readonly selected: string | null;
257
+ readonly current: readonly string[];
258
+ readonly total: number;
259
+ /** Conversations the filter hides (the ANSI tree stays on screen while filtering). */
260
+ readonly hidden: number;
261
+ readonly empty: string;
262
+ readonly placeholder: string;
263
+ }
264
+ export interface ResumePickerModelOptions {
265
+ readonly scope: ResumeScopeInputLike;
266
+ readonly query: string;
267
+ readonly currentSessionPath?: string;
268
+ readonly hidden?: ReadonlySet<string>;
269
+ readonly showCwd?: boolean;
270
+ readonly now?: number;
271
+ /** Selection to keep when it survives the query; the first row otherwise. */
272
+ readonly preferredPath?: string | null;
273
+ }
274
+ /**
275
+ * Everything the native sheet needs for one scope + query: the model's
276
+ * filtered view (rows, counts, tokens), a stable catalogue built without the
277
+ * query, the picker items for it, section order, hits, scope tabs and copy.
278
+ */
279
+ export declare function buildResumePickerModel(source: ResumeSourceLike, options: ResumePickerModelOptions): ResumePickerModel | undefined;
280
+ /** True when the view carries any filter (free text or structured token). */
281
+ export declare function resumeQueryActive(view: ResumeViewLike): boolean;
282
+ /** The empty pane's copy: no matches while filtering, else the scope's own empty wording. */
283
+ export declare function resumeEmptyText(view: ResumeViewLike): string;
284
+ /** The search field's placeholder for the active scope (names come from the host summary). */
285
+ export declare function resumePlaceholder(source: ResumeSourceLike, scope: ResumeScopeInputLike): string;
286
+ /** The selected conversation's preview: project, workspace, branch, status, model, then the excerpt. */
287
+ export declare function resumeConversationPreview(conversation: ResumeConversationLike, project: ResumeProjectLike | undefined, workspace: ResumeWorkspaceLike | undefined): NativeChild[];
288
+ /** Project/workspace lookups for a conversation path, derived from the directory (no re-grouping). */
289
+ export declare function resumeConversationContext(directory: ResumeDirectoryLike, path: string): {
290
+ conversation: ResumeConversationLike;
291
+ project: ResumeProjectLike | undefined;
292
+ workspace: ResumeWorkspaceLike | undefined;
293
+ } | undefined;