@qilin-agent/client-ui-workspace 0.0.0-stage → 3.1.3

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/lib/index.js ADDED
@@ -0,0 +1,11 @@
1
+ //#region lib/types/index.js
2
+ /**
3
+ * Workspace picker plugin, node half. Pure UI plugin: the empty apply exists
4
+ * so the plugin appears in the host cordis.yml / Loader (load and lifecycle
5
+ * follow the host; the browser half ships via exports["./client"], discovered
6
+ * through the package.json qilin.client declaration).
7
+ */
8
+ /** Host plugin body — no host-side behavior for the workspace picker plugin. */
9
+ function apply() {}
10
+ //#endregion
11
+ export { apply };
@@ -0,0 +1,10 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { AgentPresetChipProps } from './contract/slots.ts';
3
+ /**
4
+ * Render the run-mode chip.
5
+ * @param props - the bound workbench and roster selector hooks, the tag
6
+ * vocabulary and pick actions, and the locale seat.
7
+ * @returns the chip, or null when there is nothing to choose.
8
+ */
9
+ export declare function AgentPresetChip({ useWorkbench, useRoster, tagChoices, pick, t }: AgentPresetChipProps): ReactNode;
10
+ //# sourceMappingURL=AgentPresetChip.d.ts.map
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The sidebar-top workbench switch seat: the mutual-hide switch between the
3
+ * brand row and New Session. The shell renders the seat only while the column
4
+ * is wide; the switch itself keeps the browser's list panel as its aria panel.
5
+ */
6
+ import type { ReactNode } from 'react';
7
+ import type { WorkbenchSwitchSeatProps } from './contract/slots.ts';
8
+ /**
9
+ * Render the switch seat.
10
+ * @param props - shell owner share (wide), the bound workbench selector hook,
11
+ * the switch callback, and the locale seat.
12
+ * @returns the switch row, or null on the rail.
13
+ */
14
+ export declare function WorkbenchSwitchSeat({ wide, useWorkbench, onWorkbenchSwitch, t }: WorkbenchSwitchSeatProps): ReactNode;
15
+ //# sourceMappingURL=WorkbenchSwitchSeat.d.ts.map
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Workspace pick/add flow. WorkspacePickFlow is the reusable core (menu +
3
+ * path error dialog) consumed directly by WorkspaceBrowser (same package) and
4
+ * wrapped by WorkspacePicker for the conversation empty-state slot
5
+ * registration. Directory picking itself lives in the composed flow package's
6
+ * slot occupant (see the contract module doc): this core only opens the flow,
7
+ * adopts the picked path, and owns the error surface. Adding a workspace has
8
+ * exactly one route — pick a host directory, new or existing — because the
9
+ * occupant's own create-folder affordance already covers creating one.
10
+ */
11
+ import type { ReactNode, RefObject } from 'react';
12
+ import type { WorkspaceId, WorkspaceSnapshot, WorkspaceView } from '@qilin-agent/api-workspace-controller/client';
13
+ import type { SnapshotSelectorHook } from '@qilin-agent/client-ui-slots';
14
+ import type { DirectoryFlowOwnerProps, WorkspacePickerProps } from './contract/slots.ts';
15
+ /** Core flow props: the owner supplies popover control and pick semantics. */
16
+ export interface WorkspacePickFlowProps {
17
+ /** The standard locale seat, forwarded by whichever slot entry hosts the flow. */
18
+ t: WorkspacePickerProps['t'];
19
+ /** Popover visibility (anchor button toggle state, owner-local). */
20
+ open: boolean;
21
+ /** The anchor button element — the popover's placement anchor. */
22
+ anchorRef?: RefObject<HTMLElement | null> | undefined;
23
+ /** Selector hook over the workspace list (framework standard hook). */
24
+ useWorkspaces: <S>(selector: (state: WorkspaceSnapshot) => S) => S;
25
+ /** Adopt a picked host directory as a real Workspace. */
26
+ createWorkspace: (input: {
27
+ path: string;
28
+ }) => Promise<WorkspaceView>;
29
+ /** Bound occupancy selector hook for this surface's directory-flow hole (empty leaves the surface with no add action). */
30
+ useDirectoryFlow: SnapshotSelectorHook<boolean>;
31
+ /** Render this surface's directory-flow hole with the owner conversation (the entry's narrowed renderSlot). */
32
+ renderDirectoryFlow: (owner: DirectoryFlowOwnerProps) => ReactNode;
33
+ /** A real Workspace was picked or created. */
34
+ onPick: (workspaceId: WorkspaceId) => void;
35
+ /** Close the popover (outside click / Escape / post-pick). */
36
+ onClose: () => void;
37
+ /** Only offer the add action, hide existing workspaces. */
38
+ addOnly?: boolean;
39
+ /** Menu opening direction relative to the anchor. */
40
+ side?: 'bottom' | 'top' | 'right';
41
+ /** Currently active workspace (trailing check in the picker list). */
42
+ selectedId?: WorkspaceId | undefined;
43
+ }
44
+ /**
45
+ * Render the pick menu plus the adoption error dialog.
46
+ * @param props - owner-controlled flow props.
47
+ * @returns menu + dialog elements.
48
+ */
49
+ export declare function WorkspacePickFlow({ t, open, anchorRef, useWorkspaces, createWorkspace, useDirectoryFlow, renderDirectoryFlow, onPick, onClose, addOnly, side, selectedId, }: WorkspacePickFlowProps): import("react").JSX.Element;
50
+ /**
51
+ * The conversation empty-state registration: adapts the owner share to the
52
+ * core flow (all state and semantics live in the flow / the owner).
53
+ * @param props - empty-state slot props (owner share + injected creation callback).
54
+ * @returns the flow element.
55
+ */
56
+ export declare function WorkspacePicker({ open, anchorRef, useWorkspaces, selectedId, onPick, onClose, createWorkspace, useDirectoryFlow, renderSlot, t, }: WorkspacePickerProps): import("react").JSX.Element;
57
+ //# sourceMappingURL=WorkspacePicker.d.ts.map
@@ -0,0 +1,269 @@
1
+ /**
2
+ * ui-workspace contracts. Two registrations share this package:
3
+ *
4
+ * - WorkspaceBrowser fills the sidebar shell's `sidebar.workspaces` hole —
5
+ * the whole browsing region (section header, search, grouped/flat session
6
+ * list, workspace dialogs). It registers this package's viewing store and
7
+ * consumes the shell's two-fact owner share (wide / expandSidebar).
8
+ * - WorkspacePicker fills the conversation empty-state hole (menu + error
9
+ * dialog shared with the browser).
10
+ *
11
+ * Each registration also declares one **directory-flow hole** (`single`
12
+ * kind): the slot a composed picker package's client half fills with its
13
+ * picking interaction — a renderless native-chooser driver or an in-app
14
+ * browsing dialog. ui-workspace owns the trigger (the "Add workspace…"
15
+ * entry, present only while the hole is occupied) and the adoption
16
+ * semantics (`createWorkspace({ path })`, the retryable error dialog,
17
+ * Choose again); the occupant owns everything between `open` and the picked path,
18
+ * including creating a new directory to hand back. That occupant-owned
19
+ * creation is why adding a workspace has a single route: an unoccupied hole
20
+ * leaves the surface with no add affordance at all.
21
+ * Two holes exist because the two menu surfaces are independent slot entries
22
+ * and a hole has exactly one declaring entry — they carry the same owner
23
+ * contract and the same occupant.
24
+ */
25
+ import type { HostObservable, PropsHooks, PropsLocale, PropsRenderSlots, PropsRuntime, PropsStore } from '@qilin-agent/client-ui-slots';
26
+ import type { SessionSearchResultItem } from '@qilin-agent/api-session-controller/client';
27
+ import type { RemoteHostFacts } from '@qilin-agent/api-remotes/client';
28
+ import type { WorkspaceId, WorkspaceView } from '@qilin-agent/api-workspace-controller/client';
29
+ import type { SessionId } from '@qilin-agent/session/types';
30
+ import type { WorkbenchState, WorkbenchTag } from '@qilin-agent/client-ui-workbench/client';
31
+ import type { createWorkspaceViewStore } from '../stores.ts';
32
+ import type { ShortcutCatalogEntry } from '@qilin-agent/client-shortcuts/client';
33
+ import type { WorkspaceShortcutState } from '../shortcuts.ts';
34
+ /**
35
+ * Owner share of the directory-flow holes: the complete conversation between
36
+ * the trigger surface and the picking interaction. The occupant reads `open`
37
+ * to run/render its interaction and reports exactly one outcome per open.
38
+ */
39
+ export interface DirectoryFlowOwnerProps {
40
+ /** True while a picking interaction is requested; flipping back to false withdraws the request. */
41
+ open: boolean;
42
+ /** True while the owner adopts a picked path (`createWorkspace` in flight); occupants disable their commit affordances. */
43
+ busy: boolean;
44
+ /** The operator picked a directory (absolute host path); the owner adopts it. */
45
+ onPicked: (path: string) => void;
46
+ /** The operator dismissed the interaction; the owner just closes the flow. */
47
+ onCancel: () => void;
48
+ /** The interaction itself failed (chooser missing, listing denied); the owner shows its error surface. */
49
+ onError: (message: string) => void;
50
+ }
51
+ /**
52
+ * Owner share of the two Session-row schedule seats. Both receive only the
53
+ * row's Session identity: the occupant reads that Session's own scheduled
54
+ * tasks, and reading them activates nothing.
55
+ */
56
+ export interface SessionRowScheduleOwnerProps {
57
+ /** Session this row shows; the occupant addresses its own data by this id. */
58
+ readonly sessionId: SessionId;
59
+ }
60
+ declare module '@qilin-agent/client-ui-slots' {
61
+ interface SlotMap {
62
+ /** Directory-flow hole under the conversation empty-state picker (declared by the WorkspacePicker entry). */
63
+ 'conversation.hero.workspace.directoryFlow': {
64
+ kind: 'single';
65
+ scope: 'root';
66
+ owner: DirectoryFlowOwnerProps;
67
+ };
68
+ /** Directory-flow hole under the sidebar browsing region (declared by the WorkspaceBrowser entry). */
69
+ 'sidebar.workspaces.directoryFlow': {
70
+ kind: 'single';
71
+ scope: 'root';
72
+ owner: DirectoryFlowOwnerProps;
73
+ };
74
+ /**
75
+ * Leading decoration of one Session row, in the 16px cell before the title
76
+ * that the row's own state dot otherwise occupies. A higher-priority state
77
+ * (a pending interaction, a new message, live activity) replaces the seat
78
+ * with that dot for the same row, so an occupant here never renders beside
79
+ * a status dot and is mounted only by a row whose primary state is idle.
80
+ * An archived row keeps that cell blank — neither its status dot nor this
81
+ * seat renders there, and its live status appears on the hover card only.
82
+ */
83
+ 'sidebar.session.row.leading': {
84
+ kind: 'list';
85
+ scope: 'root';
86
+ owner: SessionRowScheduleOwnerProps;
87
+ };
88
+ /**
89
+ * Section of the Session row's hover card between its relative time and
90
+ * its trailing status line. Mounted only while that card is open.
91
+ */
92
+ 'sidebar.session.row.hover': {
93
+ kind: 'list';
94
+ scope: 'root';
95
+ owner: SessionRowScheduleOwnerProps;
96
+ };
97
+ }
98
+ }
99
+ /** The two directory-flow holes; a flow package's client half registers its one component into both. */
100
+ export type DirectoryFlowSlotName = 'conversation.hero.workspace.directoryFlow' | 'sidebar.workspaces.directoryFlow';
101
+ /**
102
+ * Directory-picking share both trigger surfaces consume. Occupancy rides the
103
+ * inject face's reserved `hooks` compartment: the renderer binds the source
104
+ * into the `useDirectoryFlow` selector hook, so an empty hole hides the
105
+ * "Add workspace…" entry reactively and the surface withdraws an open
106
+ * flow whose occupant unloaded mid-interaction (nobody is left to cancel).
107
+ */
108
+ export type DirectoryPickingInjected = {
109
+ hooks: {
110
+ /** True while this surface's directory-flow hole is occupied. */
111
+ directoryFlow: HostObservable<boolean>;
112
+ };
113
+ };
114
+ /** Component-side view of the picking share: the bound occupancy selector hook. */
115
+ export type DirectoryPickingHooks = PropsHooks<DirectoryPickingInjected['hooks']>;
116
+ /**
117
+ * Browser-private injected share (arrives via the register inject factory).
118
+ * Data reads use the global framework hooks; these are the Host actions the
119
+ * browsing region drives.
120
+ */
121
+ export type WorkspaceBrowserInjected = {
122
+ hooks: DirectoryPickingInjected['hooks'] & {
123
+ /**
124
+ * Fixed Host facts, reached through a hook rather than injected as values:
125
+ * the renderer memoizes an entry's inject result for the registration's
126
+ * lifetime, so facts read there would freeze at whatever the first render
127
+ * saw. Select the field the surface needs (`info => info.home`).
128
+ */
129
+ hostInfo: HostObservable<RemoteHostFacts>;
130
+ /** Keyboard-command opening requests the browser consumes. */
131
+ workspaceShortcuts: HostObservable<WorkspaceShortcutState>;
132
+ /** Effective command catalog for row shortcut hints. */
133
+ shortcuts: HostObservable<readonly ShortcutCatalogEntry[]>;
134
+ };
135
+ /** Open the browser search and focus its input. */
136
+ requestSearch: () => void;
137
+ /** Request the existing directory picker. */
138
+ requestAddWorkspace: () => void;
139
+ /** Consume the directory-picker opening request. */
140
+ closeAddWorkspace: () => void;
141
+ /** Consume the rename-dialog opening request. */
142
+ closeRenameRequest: () => void;
143
+ /** Publish directory interaction occupancy for command availability. */
144
+ setDirectoryBusy: (busy: boolean) => void;
145
+ /**
146
+ * Start a New Session in a Workspace: reuse-or-create its blank session and
147
+ * open it; without an explicit workspace, inherit the current Session
148
+ * Workspace, then the recent Workspace, or clear into the New Session view.
149
+ */
150
+ startSession: (workspaceId?: WorkspaceId) => void;
151
+ /** Open a real Session. */
152
+ open: (sessionId: SessionId) => void;
153
+ /**
154
+ * Search current visible conversation messages. The Host fixes the result
155
+ * bound; `hasMore` means the query needs narrowing.
156
+ */
157
+ searchSessions: (query: string, signal: AbortSignal) => Promise<{
158
+ items: readonly SessionSearchResultItem[];
159
+ hasMore: boolean;
160
+ }>;
161
+ /** Maximum number of merged rows rendered for one search. */
162
+ searchResultLimit: number;
163
+ /** Rename a Session (explicit user title; resolves on host acceptance). */
164
+ renameSession: (sessionId: SessionId, title: string) => Promise<void>;
165
+ /** Fork a Session at its last completed turn and open the child. */
166
+ forkSession: (sessionId: SessionId) => void;
167
+ /** Rename a Host Workspace (rejects on name conflict; resolves on durability). */
168
+ renameWorkspace: (workspaceId: WorkspaceId, title: string) => Promise<void>;
169
+ /** Delete only a Host Workspace registration; directory and Session logs remain. */
170
+ deleteWorkspace: (workspaceId: WorkspaceId) => Promise<void>;
171
+ /**
172
+ * Reorder a Workspace in the durable registry display order.
173
+ * Omitted anchor appends to the end.
174
+ */
175
+ insertWorkspaceBefore: (workspaceId: WorkspaceId, beforeWorkspaceId?: WorkspaceId) => Promise<void>;
176
+ /**
177
+ * Archive a Session into the registry-global set: hidden from grouping
178
+ * surfaces, log and accounting slot retained. Archiving the current
179
+ * session clears the selection into the New Session view state.
180
+ */
181
+ archiveSession: (sessionId: SessionId) => Promise<void>;
182
+ /**
183
+ * Pin a Session ahead of unpinned ones in its group and the flat list, and
184
+ * front its saved manual position. Rejects on Host failure so the caller
185
+ * can report it.
186
+ */
187
+ pinSession: (sessionId: SessionId) => Promise<void>;
188
+ /** Drop one Session's pin; saved positions stay as they are. */
189
+ unpinSession: (sessionId: SessionId) => Promise<void>;
190
+ /** Adopt a picked host directory as a real Workspace before targeting a Session. */
191
+ createWorkspace: (input: {
192
+ path: string;
193
+ }) => Promise<WorkspaceView>;
194
+ };
195
+ /**
196
+ * Injected share of the sidebar-top workbench switch: the tag selection and
197
+ * the switch callback (the same record-and-rebind path the browser list
198
+ * filters through).
199
+ */
200
+ export type WorkbenchSwitchInjected = {
201
+ hooks: {
202
+ /** The workbench tag selection and per-tag preset memory (the `workbench` service state). */
203
+ workbench: HostObservable<WorkbenchState>;
204
+ };
205
+ /** Switch the workbench tag (see {@link WorkspaceBrowserInjected.onWorkbenchSwitch}). */
206
+ onWorkbenchSwitch: (tag: WorkbenchTag) => void;
207
+ };
208
+ /** One preset row of the run-mode chip's menu: the fields the roster wire carries and the chip shows. */
209
+ export interface AgentPresetChoice {
210
+ /** The preset id new tasks are created with. */
211
+ readonly id: string;
212
+ /** Display name from the preset's own manifest; absent falls back to the id. */
213
+ readonly name?: string;
214
+ /** One-line description shown under the menu name. */
215
+ readonly description?: string;
216
+ }
217
+ /** The roster snapshot the chip's menu renders; an empty list hides the chip. */
218
+ export interface AgentPresetRosterState {
219
+ /** Read outcome: idle before the first read, failed keeps the chip hidden. */
220
+ readonly status: 'idle' | 'ready' | 'failed';
221
+ /** The deployment's presets (an optional service yields the empty list). */
222
+ readonly presets: readonly AgentPresetChoice[];
223
+ }
224
+ /**
225
+ * Injected share of the hero run-mode chip: the workbench state (active tag
226
+ * and each tag's remembered new-task preset), the live roster, and the pick
227
+ * action that records the tag's choice and rebinds the on-screen blank
228
+ * session.
229
+ */
230
+ export type AgentPresetChipInjected = {
231
+ hooks: {
232
+ /** The workbench tag selection and per-tag preset memory (the `workbench` service state). */
233
+ workbench: HostObservable<WorkbenchState>;
234
+ /** The preset roster snapshot; `failed` and empty rosters hide the chip. */
235
+ roster: HostObservable<AgentPresetRosterState>;
236
+ };
237
+ /**
238
+ * The shipped preset ids one tag's menu offers, in menu order — the
239
+ * workbench owner's vocabulary, reached as a service callback so this
240
+ * package imports no cross-plugin value (the purity gate forbids one).
241
+ */
242
+ tagChoices: (tag: WorkbenchTag) => readonly string[];
243
+ /** Record one tag's new-task preset choice and align the current blank session. */
244
+ pick: (presetId: string) => void;
245
+ };
246
+ /** Full run-mode chip props: hero owner share + injected state + the locale seat. */
247
+ export type AgentPresetChipProps = PropsRuntime<'conversation.hero.agentPreset'> & PropsHooks<AgentPresetChipInjected['hooks']> & Omit<AgentPresetChipInjected, 'hooks'> & PropsLocale<'workspace'>;
248
+ /** Full switch-seat props: shell owner share + injected selection + the locale seat. */
249
+ export type WorkbenchSwitchSeatProps = PropsRuntime<'sidebar.workbench'> & PropsHooks<WorkbenchSwitchInjected['hooks']> & Omit<WorkbenchSwitchInjected, 'hooks'> & PropsLocale<'workspace'>;
250
+ /** Full browser props: shell owner share + viewing store + injected actions + the locale seat. */
251
+ export type WorkspaceBrowserProps = PropsRuntime<'sidebar.workspaces'> & PropsRenderSlots<'sidebar.workspaces.directoryFlow' | 'sidebar.session.row.leading' | 'sidebar.session.row.hover'> & PropsStore<ReturnType<typeof createWorkspaceViewStore>> & Omit<WorkspaceBrowserInjected, 'hooks'> & PropsHooks<WorkspaceBrowserInjected['hooks']> & PropsLocale<'workspace'>;
252
+ /**
253
+ * Picker-private injected share. Pick semantics remain in the owner's onPick
254
+ * callback; this callback creates only the real Host Workspace. A type alias
255
+ * supplies the implicit index signature required by the registry.
256
+ */
257
+ export type WorkspacePickerInjected = DirectoryPickingInjected & {
258
+ /** Adopt a picked host directory as a real Workspace before targeting a Session. */
259
+ createWorkspace: (input: {
260
+ path: string;
261
+ }) => Promise<WorkspaceView>;
262
+ };
263
+ /**
264
+ * Full picker props: the owner share plus the creation callback and the
265
+ * locale seat. The two picker holes (blank-session hero / New-Session view)
266
+ * share one owner currency, so one composed type serves both registrations.
267
+ */
268
+ export type WorkspacePickerProps = PropsRuntime<'conversation.hero.workspace'> & PropsRenderSlots<'conversation.hero.workspace.directoryFlow'> & Omit<WorkspacePickerInjected, 'hooks'> & DirectoryPickingHooks & PropsLocale<'workspace'>;
269
+ //# sourceMappingURL=slots.d.ts.map
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Workspace plugin, browser half. Two registrations: WorkspaceBrowser fills
3
+ * the sidebar shell's `sidebar.workspaces` hole (the whole browsing region),
4
+ * and WorkspacePicker fills the conversation hero's picker hole
5
+ * (`conversation.hero.workspace` — both hero forms). Both read real Host
6
+ * Workspaces through the global useWorkspaces hook, and each declares its
7
+ * own `single` directory-flow child hole for the composed picker package's
8
+ * client half (see the contract module doc). Export discipline:
9
+ * packages/client/AGENTS.md.
10
+ */
11
+ import type { Context } from '@qilin-agent/kylin';
12
+ import type { WorkspaceSnapshot } from '@qilin-agent/api-workspace-controller/client';
13
+ import type { SnapshotSelectorHook } from '@qilin-agent/client-ui-slots';
14
+ import { type WorkspaceKey } from './locales.ts';
15
+ export type { MainSelection, UiWorkspace } from './navigation.ts';
16
+ export type { AgentPresetChipInjected, AgentPresetChipProps, AgentPresetChoice, AgentPresetRosterState, DirectoryFlowOwnerProps, DirectoryFlowSlotName, DirectoryPickingHooks, DirectoryPickingInjected, SessionRowScheduleOwnerProps, WorkbenchSwitchInjected, WorkbenchSwitchSeatProps, WorkspaceBrowserInjected, WorkspaceBrowserProps, WorkspacePickerInjected, WorkspacePickerProps, } from './contract/slots.ts';
17
+ export type { WorkspaceKey } from './locales.ts';
18
+ declare module '@qilin-agent/client-ui-slots' {
19
+ interface GlobalStandardProps {
20
+ /** Selector hook over the pure Workspace Controller snapshot. */
21
+ useWorkspaces: SnapshotSelectorHook<WorkspaceSnapshot>;
22
+ }
23
+ interface LocaleNamespaceMap {
24
+ /** The workspace browsing region and pick/create flow copy. */
25
+ workspace: WorkspaceKey;
26
+ }
27
+ }
28
+ declare module '@qilin-agent/api-session-controller/client' {
29
+ interface SessionReferenceSourceMap {
30
+ workspaceOperation: unknown;
31
+ }
32
+ }
33
+ /**
34
+ * Required services (cordis fiber inject). The target slots are declared by
35
+ * the ui-sidebar / ui-conversation applies, whose activation order relative
36
+ * to this one is NOT constrained: qilin.client.inject edges are informational
37
+ * (loading/prefetch metadata, never apply sequencing) and neither owner
38
+ * provides a waitable service. apply therefore depends on each slot
39
+ * declaration through `slots.inject()` instead of assuming order.
40
+ */
41
+ export declare const inject: string[];
42
+ /**
43
+ * Register the browser and picker once their slot declarations are on the
44
+ * ledger. Inject factories return plain callbacks; data reads use the
45
+ * framework's global hooks.
46
+ * @param ctx - client root context.
47
+ */
48
+ export declare function apply(ctx: Context): void;
49
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,170 @@
1
+ /**
2
+ * `workspace` namespace dictionaries: the browsing region (section header,
3
+ * search, tree rows, dialogs) and the pick/add flow. Runtime failure
4
+ * messages (wire error strings) pass through untranslated by policy.
5
+ */
6
+ /** Simplified Chinese dictionary (the key-set source of truth). */
7
+ export declare const zh: {
8
+ 'group.ungrouped': string;
9
+ 'session.new': string;
10
+ 'session.untitled': string;
11
+ 'shortcut.noSession': string;
12
+ 'shortcut.noPicker': string;
13
+ 'shortcut.directoryBusy': string;
14
+ 'shortcut.noCompletedTurn': string;
15
+ 'section.workspaces': string;
16
+ 'section.sessions': string;
17
+ 'workbench.tabs.aria': string;
18
+ 'workbench.general': string;
19
+ 'workbench.coding': string;
20
+ 'preset.aria': string;
21
+ 'preset.hint': string;
22
+ 'viewOptions.label': string;
23
+ 'groupBy.label': string;
24
+ 'groupBy.workspace': string;
25
+ 'groupBy.workspaceTree': string;
26
+ 'groupBy.flat': string;
27
+ 'orderBy.label': string;
28
+ 'orderBy.manual': string;
29
+ 'orderBy.updated': string;
30
+ 'sessions.expand': string;
31
+ 'sessions.collapse': string;
32
+ 'empty.none': string;
33
+ 'empty.noMatches': string;
34
+ 'workspace.add': string;
35
+ 'search.sessions.aria': string;
36
+ 'search.placeholder': string;
37
+ 'search.clear': string;
38
+ 'search.results.aria': string;
39
+ 'search.pending': string;
40
+ 'search.unavailable': string;
41
+ 'search.noMatches': string;
42
+ 'search.hasMore': string;
43
+ 'menu.addWorkspace': string;
44
+ 'picker.loading': string;
45
+ 'conflict.named': string;
46
+ 'folderError.title': string;
47
+ 'folderError.retry': string;
48
+ rename: string;
49
+ 'rename.workspace.title': string;
50
+ 'rename.session.title': string;
51
+ 'field.workspaceName': string;
52
+ 'field.sessionName': string;
53
+ 'delete.workspace': string;
54
+ 'delete.desc': string;
55
+ 'delete.pending': string;
56
+ 'menu.pinSession': string;
57
+ 'menu.unpinSession': string;
58
+ 'menu.fork': string;
59
+ 'menu.archiveSession': string;
60
+ 'row.pinned': string;
61
+ 'sessions.count.one': string;
62
+ 'sessions.count.other': string;
63
+ 'actions.workspace.aria': string;
64
+ 'actions.session.aria': string;
65
+ 'actions.newSession.aria': string;
66
+ 'actions.pin': string;
67
+ 'actions.unpin': string;
68
+ 'status.running': string;
69
+ 'status.subagentsRunning.one': string;
70
+ 'status.subagentsRunning.other': string;
71
+ 'status.idle': string;
72
+ 'status.waitingApproval': string;
73
+ 'status.planReview': string;
74
+ 'status.waitingAnswer': string;
75
+ 'status.completed': string;
76
+ 'hover.created': string;
77
+ 'hover.copied': string;
78
+ 'date.ymd': string;
79
+ 'time.now': string;
80
+ 'time.minutes': string;
81
+ 'time.hours': string;
82
+ 'time.days': string;
83
+ 'time.months': string;
84
+ 'time.years': string;
85
+ 'time.ago': string;
86
+ };
87
+ /** The workspace namespace key union. */
88
+ export type WorkspaceKey = keyof typeof zh;
89
+ /** English dictionary, checked complete against the zh key set. */
90
+ export declare const en: {
91
+ 'group.ungrouped': string;
92
+ 'session.new': string;
93
+ 'session.untitled': string;
94
+ 'shortcut.noSession': string;
95
+ 'shortcut.noPicker': string;
96
+ 'shortcut.directoryBusy': string;
97
+ 'shortcut.noCompletedTurn': string;
98
+ 'section.workspaces': string;
99
+ 'section.sessions': string;
100
+ 'workbench.tabs.aria': string;
101
+ 'workbench.general': string;
102
+ 'workbench.coding': string;
103
+ 'preset.aria': string;
104
+ 'preset.hint': string;
105
+ 'viewOptions.label': string;
106
+ 'groupBy.label': string;
107
+ 'groupBy.workspace': string;
108
+ 'groupBy.workspaceTree': string;
109
+ 'groupBy.flat': string;
110
+ 'orderBy.label': string;
111
+ 'orderBy.manual': string;
112
+ 'orderBy.updated': string;
113
+ 'sessions.expand': string;
114
+ 'sessions.collapse': string;
115
+ 'empty.none': string;
116
+ 'empty.noMatches': string;
117
+ 'workspace.add': string;
118
+ 'search.sessions.aria': string;
119
+ 'search.placeholder': string;
120
+ 'search.clear': string;
121
+ 'search.results.aria': string;
122
+ 'search.pending': string;
123
+ 'search.unavailable': string;
124
+ 'search.noMatches': string;
125
+ 'search.hasMore': string;
126
+ 'menu.addWorkspace': string;
127
+ 'picker.loading': string;
128
+ 'conflict.named': string;
129
+ 'folderError.title': string;
130
+ 'folderError.retry': string;
131
+ rename: string;
132
+ 'rename.workspace.title': string;
133
+ 'rename.session.title': string;
134
+ 'field.workspaceName': string;
135
+ 'field.sessionName': string;
136
+ 'delete.workspace': string;
137
+ 'delete.desc': string;
138
+ 'delete.pending': string;
139
+ 'menu.pinSession': string;
140
+ 'menu.unpinSession': string;
141
+ 'menu.fork': string;
142
+ 'menu.archiveSession': string;
143
+ 'row.pinned': string;
144
+ 'sessions.count.one': string;
145
+ 'sessions.count.other': string;
146
+ 'actions.workspace.aria': string;
147
+ 'actions.session.aria': string;
148
+ 'actions.newSession.aria': string;
149
+ 'actions.pin': string;
150
+ 'actions.unpin': string;
151
+ 'status.running': string;
152
+ 'status.subagentsRunning.one': string;
153
+ 'status.subagentsRunning.other': string;
154
+ 'status.idle': string;
155
+ 'status.waitingApproval': string;
156
+ 'status.planReview': string;
157
+ 'status.waitingAnswer': string;
158
+ 'status.completed': string;
159
+ 'hover.created': string;
160
+ 'hover.copied': string;
161
+ 'date.ymd': string;
162
+ 'time.now': string;
163
+ 'time.minutes': string;
164
+ 'time.hours': string;
165
+ 'time.days': string;
166
+ 'time.months': string;
167
+ 'time.years': string;
168
+ 'time.ago': string;
169
+ };
170
+ //# sourceMappingURL=locales.d.ts.map