@openviking/react 0.1.2 → 0.1.4
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/LICENSE.arco-design +21 -0
- package/README.md +25 -15
- package/dist/0~0.js +19 -0
- package/dist/2~0.js +2360 -0
- package/dist/2~0.js.LICENSE.txt +23 -0
- package/dist/3c~0.js +2206 -0
- package/dist/3~0.js +1205 -1982
- package/dist/4~0.js +18 -0
- package/dist/9~0.js +43 -0
- package/dist/ae~0.js +487 -0
- package/dist/ark-message-list-view~0.js +530 -119
- package/dist/a~0.js +1289 -10
- package/dist/c7~0.js +38 -2
- package/dist/ck~0.js +23 -0
- package/dist/client/index.d.ts +2 -1
- package/dist/client/paths.d.ts +64 -0
- package/dist/client/provider.d.ts +5 -3
- package/dist/client/response.d.ts +31 -0
- package/dist/client/sse.d.ts +39 -0
- package/dist/client/stream.d.ts +26 -0
- package/dist/client/types.d.ts +109 -5
- package/dist/client.js +2 -239
- package/dist/components/agent-connect/agent-connect-copy.d.ts +19 -33
- package/dist/components/agent-connect/agent-connect-design.d.ts +1935 -167
- package/dist/components/agent-connect/agent-connect-instructions.d.ts +135 -0
- package/dist/components/agent-connect/locales/en-US.d.ts +20 -0
- package/dist/components/agent-connect/locales/zh-CN.d.ts +3 -0
- package/dist/components/agent-connect/style.css +14 -2
- package/dist/components/agent-connect/types.d.ts +2 -1
- package/dist/components/directory-tour/directory-tour.d.ts +3 -0
- package/dist/components/directory-tour/index.d.ts +3 -0
- package/dist/components/directory-tour/locales/en-US.d.ts +3 -0
- package/dist/components/directory-tour/locales/zh-CN.d.ts +3 -0
- package/dist/components/directory-tour/steps.d.ts +5 -0
- package/dist/components/directory-tour/style.css +237 -0
- package/dist/components/directory-tour/style.js +0 -0
- package/dist/components/directory-tour/types.d.ts +42 -0
- package/dist/components/directory-tour/use-tour-anchor.d.ts +5 -0
- package/dist/components/directory-tour/use-tour-position.d.ts +12 -0
- package/dist/components/directory-tour.js +40 -0
- package/dist/components/file-browser-entries/file-browser-entries-icons.d.ts +18 -0
- package/dist/components/file-browser-entries/file-browser-entries.d.ts +14 -0
- package/dist/components/file-browser-entries/index.d.ts +1 -0
- package/dist/components/file-browser-entries/labels.d.ts +3 -0
- package/dist/components/file-browser-entries/locales/en-US.d.ts +6 -0
- package/dist/components/file-browser-entries/locales/zh-CN.d.ts +6 -0
- package/dist/components/file-browser-entries/style.css +905 -0
- package/dist/components/file-browser-entries/style.js +0 -0
- package/dist/components/file-browser-entries/types.d.ts +63 -0
- package/dist/components/file-browser-entries.js +1 -0
- package/dist/components/file-preview/file-preview-adapters.d.ts +2 -1
- package/dist/components/file-preview/file-preview-body.d.ts +2 -1
- package/dist/components/file-preview/file-preview-breadcrumb-menu.d.ts +2 -1
- package/dist/components/file-preview/file-preview-breadcrumb.d.ts +2 -1
- package/dist/components/file-preview/file-preview-directory.d.ts +33 -0
- package/dist/components/file-preview/file-preview-handle-adapters.d.ts +2 -1
- package/dist/components/file-preview/file-preview-header.d.ts +25 -3
- package/dist/components/file-preview/file-preview-image-frame.d.ts +5 -0
- package/dist/components/file-preview/file-preview-labels.d.ts +2 -14
- package/dist/components/file-preview/file-preview-level-tabs.d.ts +7 -0
- package/dist/components/file-preview/file-preview-markdown-images.d.ts +13 -0
- package/dist/components/file-preview/file-preview-panels.d.ts +44 -0
- package/dist/components/file-preview/file-preview-state.d.ts +10 -3
- package/dist/components/file-preview/file-preview-viewer.d.ts +2 -1
- package/dist/components/file-preview/file-preview.d.ts +1 -1
- package/dist/components/file-preview/index.d.ts +2 -1
- package/dist/components/file-preview/level-selection.d.ts +25 -0
- package/dist/components/file-preview/locales/en-US.d.ts +16 -0
- package/dist/components/file-preview/locales/zh-CN.d.ts +16 -0
- package/dist/components/file-preview/style.css +234 -3
- package/dist/components/file-preview/types.d.ts +134 -11
- package/dist/components/file-preview/use-directory-level.d.ts +30 -0
- package/dist/components/file-preview/use-file-preview-actions-context.d.ts +6 -2
- package/dist/components/file-preview/use-file-preview-actions.d.ts +1 -1
- package/dist/components/file-preview/use-file-preview-levels.d.ts +7 -0
- package/dist/components/file-preview/use-file-preview-view-state.d.ts +15 -0
- package/dist/components/file-preview.js +1 -1
- package/dist/components/file-tree/file-tree-info-labels.d.ts +0 -15
- package/dist/components/file-tree/file-tree-info-tooltip.d.ts +7 -7
- package/dist/components/file-tree/file-tree-labels.d.ts +4 -0
- package/dist/components/file-tree/file-tree-row-context.d.ts +0 -5
- package/dist/components/file-tree/file-tree-row-shared.d.ts +1 -4
- package/dist/components/file-tree/file-tree-toolbar.d.ts +11 -0
- package/dist/components/file-tree/file-tree-tooltip-surface.d.ts +8 -8
- package/dist/components/file-tree/locales/en-US.d.ts +69 -0
- package/dist/components/file-tree/locales/zh-CN.d.ts +69 -0
- package/dist/components/file-tree/style.css +207 -42
- package/dist/components/file-tree/types.d.ts +58 -10
- package/dist/components/file-tree/use-file-tree-actions.d.ts +4 -1
- package/dist/components/scope-switcher/labels.d.ts +3 -0
- package/dist/components/scope-switcher/locales/en-US.d.ts +8 -0
- package/dist/components/scope-switcher/locales/zh-CN.d.ts +8 -0
- package/dist/components/scope-switcher/scope-panel.d.ts +1 -1
- package/dist/components/scope-switcher/scope-switcher.d.ts +1 -1
- package/dist/components/scope-switcher/style.css +14 -2
- package/dist/components/scope-switcher/types.d.ts +11 -5
- package/dist/components/style.css +10144 -6840
- package/dist/components/tui/locales/en-US.d.ts +35 -0
- package/dist/components/tui/locales/zh-CN.d.ts +35 -0
- package/dist/components/tui/style.css +310 -18
- package/dist/components/tui/tui-copy-button.d.ts +1 -1
- package/dist/components/tui/tui-empty.d.ts +25 -0
- package/dist/components/tui/tui-labels.d.ts +2 -2
- package/dist/components/tui/tui.d.ts +1 -1
- package/dist/components/tui/types.d.ts +35 -12
- package/dist/components/tui.js +1 -1
- package/dist/components/viking-bot/ark-adapter.d.ts +2 -0
- package/dist/components/viking-bot/ark-message-body.d.ts +1 -7
- package/dist/components/viking-bot/ark-message-list-view.d.ts +1 -1
- package/dist/components/viking-bot/ark-message-row.d.ts +3 -1
- package/dist/components/viking-bot/bot-popover.d.ts +9 -0
- package/dist/components/viking-bot/capabilities.d.ts +49 -0
- package/dist/components/viking-bot/composer-attachments.d.ts +13 -0
- package/dist/components/viking-bot/composer-controls.d.ts +10 -0
- package/dist/components/viking-bot/composer-footer.d.ts +17 -0
- package/dist/components/viking-bot/composer-references.d.ts +20 -0
- package/dist/components/viking-bot/composer-text.d.ts +10 -0
- package/dist/components/viking-bot/index.d.ts +3 -1
- package/dist/components/viking-bot/interaction/ask-human-fields.d.ts +1 -1
- package/dist/components/viking-bot/interaction/labels.d.ts +2 -1
- package/dist/components/viking-bot/interaction/locales/en-US.d.ts +17 -0
- package/dist/components/viking-bot/interaction/locales/zh-CN.d.ts +17 -0
- package/dist/components/viking-bot/interaction/types.d.ts +8 -3
- package/dist/components/viking-bot/interaction/viking-bot-interaction.d.ts +1 -1
- package/dist/components/viking-bot/labels.d.ts +2 -0
- package/dist/components/viking-bot/locales/en-US.d.ts +40 -0
- package/dist/components/viking-bot/locales/zh-CN.d.ts +40 -0
- package/dist/components/viking-bot/markdown-links.d.ts +27 -0
- package/dist/components/viking-bot/message-activity.d.ts +7 -0
- package/dist/components/viking-bot/message-code-block.d.ts +8 -0
- package/dist/components/viking-bot/message-footer.d.ts +8 -0
- package/dist/components/viking-bot/message-markdown.d.ts +9 -0
- package/dist/components/viking-bot/model.d.ts +37 -3
- package/dist/components/viking-bot/quick-input-tracker.d.ts +16 -0
- package/dist/components/viking-bot/quick-inputs.d.ts +6 -0
- package/dist/components/viking-bot/reference-picker.d.ts +16 -0
- package/dist/components/viking-bot/session-actions.d.ts +11 -0
- package/dist/components/viking-bot/style.css +1486 -48
- package/dist/components/viking-bot/tool-activity.d.ts +9 -0
- package/dist/components/viking-bot/tool-result-links.d.ts +6 -0
- package/dist/components/viking-bot/types.d.ts +21 -9
- package/dist/components/viking-bot/use-quick-input.d.ts +17 -0
- package/dist/components/viking-bot/viking-bot.d.ts +1 -6
- package/dist/components/viking-bot/welcome.d.ts +8 -0
- package/dist/components/viking-bot.js +1 -1
- package/dist/c~0.js +533 -66
- package/dist/e~0.js +333 -0
- package/dist/file-preview-viewer~0.js +90 -8
- package/dist/f~0.js +39 -47
- package/dist/h~0.js +5 -1
- package/dist/icons/console-icons.d.ts +12 -0
- package/dist/icons/index.d.ts +2 -0
- package/dist/icons/viking-bot-icons.d.ts +6 -0
- package/dist/icons.js +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -1
- package/dist/k~0.js +1 -0
- package/dist/lg~0.js +155 -0
- package/dist/lk~0.js +37 -8
- package/dist/l~0.js +1447 -25
- package/dist/modules/console/command-messages.d.ts +19 -0
- package/dist/modules/console/command-parser.d.ts +15 -0
- package/dist/modules/console/command-specs.d.ts +15 -0
- package/dist/modules/console/commands.d.ts +6 -0
- package/dist/modules/console/console-history.d.ts +10 -0
- package/dist/modules/console/console-toolbar.d.ts +18 -0
- package/dist/modules/console/console.d.ts +1 -3
- package/dist/modules/console/controller.d.ts +17 -0
- package/dist/modules/console/index.d.ts +2 -0
- package/dist/modules/console/labels.d.ts +61 -0
- package/dist/modules/console/locales/en-US.d.ts +49 -0
- package/dist/modules/console/locales/zh-CN.d.ts +3 -0
- package/dist/modules/console/localize-records.d.ts +11 -0
- package/dist/modules/console/results.d.ts +2 -0
- package/dist/modules/console/style.css +10905 -15
- package/dist/modules/console/types.d.ts +59 -80
- package/dist/modules/console/use-console.d.ts +3 -0
- package/dist/modules/console.js +1 -1
- package/dist/modules/file-browser/file-browser-detail-icons.d.ts +10 -0
- package/dist/modules/file-browser/file-browser-detail.d.ts +34 -0
- package/dist/modules/file-browser/file-browser-empty.d.ts +3 -0
- package/dist/modules/file-browser/file-browser-failure.d.ts +22 -0
- package/dist/modules/file-browser/file-browser-icons.d.ts +18 -0
- package/dist/modules/file-browser/file-browser-labels.d.ts +27 -0
- package/dist/modules/file-browser/file-browser-layout.d.ts +27 -0
- package/dist/modules/file-browser/file-browser-toolbar.d.ts +17 -0
- package/dist/modules/file-browser/file-browser-tree-pane.d.ts +32 -0
- package/dist/modules/file-browser/file-browser.d.ts +14 -5
- package/dist/modules/file-browser/find-result.d.ts +24 -0
- package/dist/modules/file-browser/fs-directories.d.ts +33 -0
- package/dist/modules/file-browser/fs-file-kind.d.ts +19 -0
- package/dist/modules/file-browser/fs-icon.d.ts +17 -0
- package/dist/modules/file-browser/fs-model.d.ts +106 -0
- package/dist/modules/file-browser/fs-page.d.ts +16 -0
- package/dist/modules/file-browser/fs-path.d.ts +16 -0
- package/dist/modules/file-browser/fs-read-directory.d.ts +16 -0
- package/dist/modules/file-browser/fs-scope.d.ts +22 -0
- package/dist/modules/file-browser/fs-stat.d.ts +25 -0
- package/dist/modules/file-browser/index.d.ts +3 -1
- package/dist/modules/file-browser/locales/en-US.d.ts +25 -0
- package/dist/modules/file-browser/locales/zh-CN.d.ts +25 -0
- package/dist/modules/file-browser/style.css +6388 -41
- package/dist/modules/file-browser/types.d.ts +206 -52
- package/dist/modules/file-browser/use-container-width.d.ts +17 -0
- package/dist/modules/file-browser/use-file-browser.d.ts +54 -0
- package/dist/modules/file-browser/use-fs-preview.d.ts +65 -0
- package/dist/modules/file-browser/use-fs-search.d.ts +35 -0
- package/dist/modules/file-browser/use-fs-tree.d.ts +43 -0
- package/dist/modules/file-browser/use-request-scope.d.ts +39 -0
- package/dist/modules/file-browser.js +1 -1
- package/dist/modules/scope-cascade/labels.d.ts +6 -0
- package/dist/modules/scope-cascade/locales/en-US.d.ts +6 -0
- package/dist/modules/scope-cascade/locales/zh-CN.d.ts +3 -0
- package/dist/modules/scope-cascade/scope-cascade.d.ts +1 -1
- package/dist/modules/scope-cascade/style.css +14 -2
- package/dist/modules/scope-cascade/types.d.ts +3 -0
- package/dist/modules/style.css +17338 -77
- package/dist/nx~0.js +15 -0
- package/dist/n~0.js +403 -144
- package/dist/o~0.js +106 -0
- package/dist/p~0.js +27 -0
- package/dist/rslib-runtime~0.js +42 -0
- package/dist/r~0.js +152 -0
- package/dist/shared/components/divider/divider.d.ts +18 -0
- package/dist/shared/components/divider/index.d.ts +1 -0
- package/dist/shared/components/divider/types.d.ts +35 -0
- package/dist/shared/components/drawer/drawer.d.ts +13 -0
- package/dist/shared/components/drawer/index.d.ts +1 -0
- package/dist/shared/components/overlay/types.d.ts +7 -0
- package/dist/shared/components/{tooltip/use-tooltip-position.d.ts → overlay/use-overlay-position.d.ts} +6 -6
- package/dist/shared/components/popover/index.d.ts +1 -0
- package/dist/shared/components/popover/popover.d.ts +23 -0
- package/dist/shared/components/popover/types.d.ts +50 -0
- package/dist/shared/components/resizable/clamp.d.ts +13 -0
- package/dist/shared/components/resizable/index.d.ts +2 -0
- package/dist/shared/components/resizable/resizable-handle.d.ts +25 -0
- package/dist/shared/components/resizable/types.d.ts +48 -0
- package/dist/shared/components/tooltip/types.d.ts +5 -5
- package/dist/shared/components/tooltip/use-portal-theme.d.ts +3 -0
- package/dist/shared/locale.d.ts +6 -0
- package/dist/style.css +27753 -7176
- package/dist/u~0.js +75 -58
- package/dist/viking-bot-composer~0.js +434 -77
- package/dist/viking-bot-interaction~0.js +11 -11
- package/package.json +18 -4
- package/dist/components/file-tree/file-tree-tooltip.d.ts +0 -17
- package/dist/components/tui/tui-labels-zh.d.ts +0 -2
- package/dist/g~0.js +0 -1207
- package/dist/modules/file-browser/file-browser-toolbar-button.d.ts +0 -10
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { TuiRecord } from '../../components/tui/index.js';
|
|
2
|
+
import type { Locale } from '../../shared/locale.js';
|
|
3
|
+
import { resolveConsoleLocale } from './labels.js';
|
|
4
|
+
export interface ConsoleMessage {
|
|
5
|
+
code: keyof ReturnType<typeof resolveConsoleLocale>['messages'];
|
|
6
|
+
value?: string;
|
|
7
|
+
usage?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Internal metadata is formatted by the Hook and never exposed in its records. */
|
|
10
|
+
export type ConsoleRecord = TuiRecord & {
|
|
11
|
+
localMessage?: ConsoleMessage;
|
|
12
|
+
};
|
|
13
|
+
export declare function formatConsoleMessage(message: ConsoleMessage, locale: Locale): string;
|
|
14
|
+
export declare class ConsoleCommandError extends Error implements ConsoleMessage {
|
|
15
|
+
readonly code: ConsoleMessage['code'];
|
|
16
|
+
readonly value?: string | undefined;
|
|
17
|
+
readonly usage?: string | undefined;
|
|
18
|
+
constructor(code: ConsoleMessage['code'], value?: string | undefined, usage?: string | undefined, locale?: Locale);
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface CommandToken {
|
|
2
|
+
value: string;
|
|
3
|
+
literal: boolean;
|
|
4
|
+
}
|
|
5
|
+
/** Parses arguments as data; never invokes a shell. */
|
|
6
|
+
export declare function tokenize(input: string): CommandToken[];
|
|
7
|
+
export interface Argument {
|
|
8
|
+
name: string;
|
|
9
|
+
kind?: 'uri' | 'integer' | 'boolean';
|
|
10
|
+
optional?: boolean;
|
|
11
|
+
choices?: readonly string[];
|
|
12
|
+
min?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare function parseArguments(tokens: readonly CommandToken[], positional: readonly Argument[], flags?: readonly Argument[]): Record<string, string | number | boolean>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type enUS from './locales/en-US.js';
|
|
2
|
+
import type { OvRequestSpec } from '../../client/types.js';
|
|
3
|
+
import type { TuiSkeletonKind } from '../../components/tui/index.js';
|
|
4
|
+
import type { Argument } from './command-parser.js';
|
|
5
|
+
type Values = Record<string, string | number | boolean>;
|
|
6
|
+
export interface CommandSpec {
|
|
7
|
+
name: keyof typeof enUS.commands;
|
|
8
|
+
positional?: readonly Argument[];
|
|
9
|
+
flags?: readonly Argument[];
|
|
10
|
+
skeleton?: TuiSkeletonKind;
|
|
11
|
+
request?: (values: Values) => OvRequestSpec;
|
|
12
|
+
}
|
|
13
|
+
/** One catalogue drives validation, execution, completion and help. */
|
|
14
|
+
export declare const COMMAND_SPECS: readonly CommandSpec[];
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { OvClient, OvRequestOptions } from '../../client/types.js';
|
|
2
|
+
import type { TuiCommandDefinition, TuiRecordContent } from '../../components/tui/index.js';
|
|
3
|
+
import type { Locale } from '../../shared/locale.js';
|
|
4
|
+
export declare function consoleCommands(locale: Locale): readonly TuiCommandDefinition[];
|
|
5
|
+
export declare function createCommandHelp(locale: Locale): TuiRecordContent;
|
|
6
|
+
export declare function executeCommand(input: string, client: OvClient, options: OvRequestOptions, locale: Locale): Promise<TuiRecordContent>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Locale } from '../../shared/locale.js';
|
|
2
|
+
import type { TuiRecord } from '../../components/tui/index.js';
|
|
3
|
+
import type { consoleLabels } from './labels.js';
|
|
4
|
+
export declare function ConsoleHistory({ records, isExecuting, locale, labels, onRecall, }: {
|
|
5
|
+
records: readonly TuiRecord[];
|
|
6
|
+
isExecuting: boolean;
|
|
7
|
+
locale: Locale;
|
|
8
|
+
labels: ReturnType<typeof consoleLabels>;
|
|
9
|
+
onRecall: (command: string) => void;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Locale } from '../../shared/locale.js';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { TuiRecord } from '../../components/tui/index.js';
|
|
4
|
+
import type { ConsoleMode } from './types.js';
|
|
5
|
+
import type { consoleLabels } from './labels.js';
|
|
6
|
+
export declare function ConsoleToolbar({ mode, panelId, locale, labels, records, isExecuting, onModeChange, onClear, onRecall, children, conversationActions, }: {
|
|
7
|
+
mode: ConsoleMode;
|
|
8
|
+
panelId: string;
|
|
9
|
+
locale: Locale;
|
|
10
|
+
labels: ReturnType<typeof consoleLabels>;
|
|
11
|
+
records: readonly TuiRecord[];
|
|
12
|
+
isExecuting: boolean;
|
|
13
|
+
onModeChange: (mode: ConsoleMode) => void;
|
|
14
|
+
onClear: () => void;
|
|
15
|
+
onRecall: (command: string) => void;
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
conversationActions?: ReactNode;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import type { ConsoleProps } from './types.js';
|
|
2
|
-
export
|
|
3
|
-
/** 占位组件:渲染一个带模块名的空容器,真实实现随模块 Hook 与组合视图迁入。 */
|
|
4
|
-
export declare function Console({ className, style, labels }: ConsoleProps): import("react").JSX.Element;
|
|
2
|
+
export declare function Console({ mode, defaultMode, locale, quickCommands, scopeKey, requestOptions, onModeChange, onOpenUri, conversation, slots, labels: overrides, className, ...rest }: ConsoleProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Locale } from '../../shared/locale.js';
|
|
2
|
+
import { type ConsoleRecord } from './command-messages.js';
|
|
3
|
+
import type { OvClient, OvRequestOptions } from '../../client/types.js';
|
|
4
|
+
import type { ConsoleState } from './types.js';
|
|
5
|
+
export declare function createConsoleController(client: OvClient, options?: OvRequestOptions): {
|
|
6
|
+
subscribe: (listener: () => void) => () => void;
|
|
7
|
+
getSnapshot: () => Omit<ConsoleState, "records"> & {
|
|
8
|
+
records: readonly ConsoleRecord[];
|
|
9
|
+
};
|
|
10
|
+
start(): () => void;
|
|
11
|
+
execute: (input?: string, locale?: Locale) => Promise<void>;
|
|
12
|
+
cancel: () => void | undefined;
|
|
13
|
+
clear: () => void;
|
|
14
|
+
setCommand: (command: string) => void;
|
|
15
|
+
setConversationDraft: (conversationDraft: string) => void;
|
|
16
|
+
retry: (locale: Locale) => Promise<void>;
|
|
17
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { type Locale } from '../../shared/locale.js';
|
|
2
|
+
import type { ConsoleLabels } from './types.js';
|
|
3
|
+
export declare function resolveConsoleLocale(locale: Locale): {
|
|
4
|
+
labels: {
|
|
5
|
+
conversation: string;
|
|
6
|
+
command: string;
|
|
7
|
+
mode: string;
|
|
8
|
+
description: string;
|
|
9
|
+
clear: string;
|
|
10
|
+
history: string;
|
|
11
|
+
emptyHistory: string;
|
|
12
|
+
};
|
|
13
|
+
commands: {
|
|
14
|
+
grep: string;
|
|
15
|
+
glob: string;
|
|
16
|
+
help: string;
|
|
17
|
+
clear: string;
|
|
18
|
+
health: string;
|
|
19
|
+
status: string;
|
|
20
|
+
ls: string;
|
|
21
|
+
tree: string;
|
|
22
|
+
stat: string;
|
|
23
|
+
read: string;
|
|
24
|
+
abstract: string;
|
|
25
|
+
overview: string;
|
|
26
|
+
find: string;
|
|
27
|
+
search: string;
|
|
28
|
+
mkdir: string;
|
|
29
|
+
cp: string;
|
|
30
|
+
mv: string;
|
|
31
|
+
rm: string;
|
|
32
|
+
write: string;
|
|
33
|
+
'task list': string;
|
|
34
|
+
'task status': string;
|
|
35
|
+
'task cancel': string;
|
|
36
|
+
};
|
|
37
|
+
availableCommands: string;
|
|
38
|
+
messages: {
|
|
39
|
+
cancelled: () => string;
|
|
40
|
+
unknownCommand: () => string;
|
|
41
|
+
shellSyntax: () => string;
|
|
42
|
+
unclosedQuote: () => string;
|
|
43
|
+
unexpectedArgument: (value: string) => string;
|
|
44
|
+
duplicateArgument: (value: string) => string;
|
|
45
|
+
missingValue: (value: string) => string;
|
|
46
|
+
expectedUri: (value: string) => string;
|
|
47
|
+
invalidArgument: (value: string) => string;
|
|
48
|
+
missingArgument: (value: string) => string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export declare function consoleLabels(locale: Locale, overrides?: ConsoleLabels): {
|
|
52
|
+
conversation: string;
|
|
53
|
+
command: string;
|
|
54
|
+
mode: string;
|
|
55
|
+
description: string;
|
|
56
|
+
clear: string;
|
|
57
|
+
history: string;
|
|
58
|
+
emptyHistory: string;
|
|
59
|
+
tui: import("../../components/tui/types.js").TuiLabels;
|
|
60
|
+
vikingBot: import("../../components/viking-bot/model.js").VikingBotLabels;
|
|
61
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare const messages: {
|
|
2
|
+
labels: {
|
|
3
|
+
conversation: string;
|
|
4
|
+
command: string;
|
|
5
|
+
mode: string;
|
|
6
|
+
description: string;
|
|
7
|
+
clear: string;
|
|
8
|
+
history: string;
|
|
9
|
+
emptyHistory: string;
|
|
10
|
+
};
|
|
11
|
+
commands: {
|
|
12
|
+
grep: string;
|
|
13
|
+
glob: string;
|
|
14
|
+
help: string;
|
|
15
|
+
clear: string;
|
|
16
|
+
health: string;
|
|
17
|
+
status: string;
|
|
18
|
+
ls: string;
|
|
19
|
+
tree: string;
|
|
20
|
+
stat: string;
|
|
21
|
+
read: string;
|
|
22
|
+
abstract: string;
|
|
23
|
+
overview: string;
|
|
24
|
+
find: string;
|
|
25
|
+
search: string;
|
|
26
|
+
mkdir: string;
|
|
27
|
+
cp: string;
|
|
28
|
+
mv: string;
|
|
29
|
+
rm: string;
|
|
30
|
+
write: string;
|
|
31
|
+
'task list': string;
|
|
32
|
+
'task status': string;
|
|
33
|
+
'task cancel': string;
|
|
34
|
+
};
|
|
35
|
+
availableCommands: string;
|
|
36
|
+
messages: {
|
|
37
|
+
cancelled: () => string;
|
|
38
|
+
unknownCommand: () => string;
|
|
39
|
+
shellSyntax: () => string;
|
|
40
|
+
unclosedQuote: () => string;
|
|
41
|
+
unexpectedArgument: (value: string) => string;
|
|
42
|
+
duplicateArgument: (value: string) => string;
|
|
43
|
+
missingValue: (value: string) => string;
|
|
44
|
+
expectedUri: (value: string) => string;
|
|
45
|
+
invalidArgument: (value: string) => string;
|
|
46
|
+
missingArgument: (value: string) => string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export default messages;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Locale } from '../../shared/locale.js';
|
|
2
|
+
import { type ConsoleRecord } from './command-messages.js';
|
|
3
|
+
/** Format library notices without changing server output or execution state. */
|
|
4
|
+
export declare function localizeConsoleRecords(records: readonly ConsoleRecord[], locale: Locale): {
|
|
5
|
+
id: string;
|
|
6
|
+
command: string;
|
|
7
|
+
status: import("../../components/tui/types.js").TuiRecordStatus;
|
|
8
|
+
content?: import("../../components/tui/types.js").TuiRecordContent;
|
|
9
|
+
createdAt?: string;
|
|
10
|
+
createdAtMs?: number;
|
|
11
|
+
}[];
|