@qodalis/cli 2.0.0-beta.7 → 2.0.0-beta.8
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/package.json +2 -2
- package/public-api.d.mts +99 -78
- package/public-api.d.ts +99 -78
- package/public-api.js +2874 -707
- package/public-api.js.map +1 -1
- package/public-api.mjs +2874 -708
- package/public-api.mjs.map +1 -1
- package/wasm/qodalis_cli_wasm_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qodalis/cli",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.8",
|
|
4
4
|
"description": "Framework-agnostic CLI engine for @qodalis terminal applications.",
|
|
5
5
|
"author": "Nicolae Lupei, Qodalis Solutions",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"./assets/*": "./assets/*"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@qodalis/cli-core": "2.0.0-beta.
|
|
33
|
+
"@qodalis/cli-core": "2.0.0-beta.8",
|
|
34
34
|
"@xterm/xterm": "^5.5.0",
|
|
35
35
|
"@xterm/addon-fit": "^0.10.0",
|
|
36
36
|
"@xterm/addon-web-links": "^0.11.0",
|
package/public-api.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _qodalis_cli_core from '@qodalis/cli-core';
|
|
2
|
-
import { ICliCommandProcessor, ICliCommandParameterDescriptor, ICliCommandProcessorRegistry, ICliCommandChildProcessor, CliProcessorMetadata, CliStateConfiguration, ICliExecutionContext, CliProcessCommand, ICliCommandAuthor, CliThemeInfo, ICliExecutionProcess, ICliUserSession, ICliSpinner, ICliPercentageProgressBar, ICliTextAnimator, ICliTerminalWriter, ICliCommandExecutorService, ICliClipboard, ICliStateStore, CliOptions, ICliLogger, ICliServiceProvider, ICliTranslationService, ICliInputReader, ICliBackgroundServiceRegistry, ICliManagedInterval, ICliManagedTimer, ICliKeyValueStore,
|
|
2
|
+
import { ICliCommandProcessor, ICliCommandParameterDescriptor, ICliCommandProcessorRegistry, ICliCommandChildProcessor, CliProcessorMetadata, CliStateConfiguration, ICliExecutionContext, CliProcessCommand, ICliCommandAuthor, CliThemeInfo, ICliExecutionProcess, ICliUserSession, ICliSpinner, ICliPercentageProgressBar, ICliTextAnimator, ICliTerminalWriter, ICliCommandExecutorService, ICliClipboard, ICliStateStore, CliOptions, ICliLogger, ICliServiceProvider, ICliTranslationService, ICliInputReader, ICliBackgroundServiceRegistry, ICliManagedInterval, ICliManagedTimer, ICliKeyValueStore, ICliCompletionProvider, ICliFilePickerProvider, ICliGlobalParameterHandler, CliProvider, CliForegroundColor, CliBackgroundColor, CliLogLevel, CliPercentageProgressBarUpdateValueOptions, CliTextAnimatorOptions, ICliModule, CliModuleRegistry, Package, ICliPingServerService, CliLineOptions, CliSelectOption, CliSelectOptions, CliMultiSelectOption, CliMultiSelectOptions, CliDateOptions, CliFilePickerOptions, CliFileResult, ICliProcessRegistry, ICliProcessRegisterOptions, ICliProcessEntry, ICliDragDropService, CliState, CliEngineSnapshot, CliServerConfig, CliServerCommandDescriptor, CliServerCapabilities, CliServerResponse, CliIcon } from '@qodalis/cli-core';
|
|
3
3
|
export { ICliUserSessionService_TOKEN, ICliUsersStoreService_TOKEN } from '@qodalis/cli-core';
|
|
4
4
|
import { ITheme, Terminal, ITerminalAddon, ITerminalOptions, ITerminalInitOnlyOptions } from '@xterm/xterm';
|
|
5
5
|
import { Subject, Observable, Subscription } from 'rxjs';
|
|
@@ -140,7 +140,7 @@ declare const CliBackgroundServiceRegistry_TOKEN = "cli-background-service-regis
|
|
|
140
140
|
*/
|
|
141
141
|
declare const CliPackageManagerService_TOKEN = "cli-package-manager-service";
|
|
142
142
|
|
|
143
|
-
declare const LIBRARY_VERSION = "2.0.0-beta.
|
|
143
|
+
declare const LIBRARY_VERSION = "2.0.0-beta.8";
|
|
144
144
|
declare const API_VERSION = 2;
|
|
145
145
|
|
|
146
146
|
declare class CliAliasCommandProcessor implements ICliCommandProcessor {
|
|
@@ -406,7 +406,6 @@ declare class CliUptimeCommandProcessor implements ICliCommandProcessor {
|
|
|
406
406
|
description: string;
|
|
407
407
|
author: _qodalis_cli_core.ICliCommandAuthor;
|
|
408
408
|
metadata?: CliProcessorMetadata;
|
|
409
|
-
private sessionStartTimes;
|
|
410
409
|
initialize(context: ICliExecutionContext): Promise<void>;
|
|
411
410
|
processCommand(_: CliProcessCommand, context: ICliExecutionContext): Promise<void>;
|
|
412
411
|
writeDescription(context: ICliExecutionContext): void;
|
|
@@ -600,6 +599,7 @@ declare class CliNanoCommandProcessor implements ICliCommandProcessor {
|
|
|
600
599
|
processCommand(command: CliProcessCommand, context: ICliExecutionContext): Promise<void>;
|
|
601
600
|
onData(data: string, context: ICliExecutionContext): Promise<void>;
|
|
602
601
|
writeDescription(context: ICliExecutionContext): void;
|
|
602
|
+
private setupHighlighting;
|
|
603
603
|
private render;
|
|
604
604
|
private renderPrompt;
|
|
605
605
|
private showStatus;
|
|
@@ -649,6 +649,43 @@ declare class CliKillCommandProcessor implements ICliCommandProcessor {
|
|
|
649
649
|
processCommand(command: CliProcessCommand, context: ICliExecutionContext): Promise<void>;
|
|
650
650
|
}
|
|
651
651
|
|
|
652
|
+
declare class CliHtopCommandProcessor implements ICliCommandProcessor {
|
|
653
|
+
command: string;
|
|
654
|
+
description: string;
|
|
655
|
+
author: _qodalis_cli_core.ICliCommandAuthor;
|
|
656
|
+
metadata?: CliProcessorMetadata;
|
|
657
|
+
private context;
|
|
658
|
+
private registry;
|
|
659
|
+
private refreshTimer;
|
|
660
|
+
private rows;
|
|
661
|
+
private selectedIndex;
|
|
662
|
+
private scrollOffset;
|
|
663
|
+
private termCols;
|
|
664
|
+
private termRows;
|
|
665
|
+
private showingLogs;
|
|
666
|
+
private errorMessage;
|
|
667
|
+
private errorTimeout;
|
|
668
|
+
processCommand(_command: CliProcessCommand, context: ICliExecutionContext): Promise<void>;
|
|
669
|
+
onData(data: string, context: ICliExecutionContext): Promise<void>;
|
|
670
|
+
onResize(cols: number, rows: number, _context: ICliExecutionContext): void;
|
|
671
|
+
onDispose(_context: ICliExecutionContext): void;
|
|
672
|
+
writeDescription(context: ICliExecutionContext): void;
|
|
673
|
+
private refreshData;
|
|
674
|
+
private actionKill;
|
|
675
|
+
private actionStart;
|
|
676
|
+
private actionStop;
|
|
677
|
+
private actionRestart;
|
|
678
|
+
private actionLogs;
|
|
679
|
+
private moveSelection;
|
|
680
|
+
private get visibleRows();
|
|
681
|
+
private clampScroll;
|
|
682
|
+
private render;
|
|
683
|
+
private buildFooter;
|
|
684
|
+
private renderLogsOverlay;
|
|
685
|
+
private showError;
|
|
686
|
+
private exit;
|
|
687
|
+
}
|
|
688
|
+
|
|
652
689
|
declare const systemProcessors: ICliCommandProcessor[];
|
|
653
690
|
|
|
654
691
|
declare class CliThemeCommandProcessor implements ICliCommandProcessor {
|
|
@@ -949,53 +986,6 @@ declare class CliStateStoreManager implements ICliStateStoreManager {
|
|
|
949
986
|
}[];
|
|
950
987
|
}
|
|
951
988
|
|
|
952
|
-
type ActiveInputRequestType = 'line' | 'password' | 'confirm' | 'select' | 'select-inline' | 'multi-select' | 'number';
|
|
953
|
-
interface ActiveInputRequest {
|
|
954
|
-
type: ActiveInputRequestType;
|
|
955
|
-
promptText: string;
|
|
956
|
-
resolve: (value: any) => void;
|
|
957
|
-
buffer: string;
|
|
958
|
-
cursorPosition: number;
|
|
959
|
-
defaultValue?: boolean;
|
|
960
|
-
options?: CliSelectOption[];
|
|
961
|
-
selectedIndex?: number;
|
|
962
|
-
onChange?: (value: string) => void;
|
|
963
|
-
checkedIndices?: Set<number>;
|
|
964
|
-
numberOptions?: {
|
|
965
|
-
min?: number;
|
|
966
|
-
max?: number;
|
|
967
|
-
default?: number;
|
|
968
|
-
};
|
|
969
|
-
scrollOffset?: number;
|
|
970
|
-
maxVisible?: number;
|
|
971
|
-
displayLines?: number;
|
|
972
|
-
}
|
|
973
|
-
interface CliInputReaderHost {
|
|
974
|
-
readonly activeInputRequest: ActiveInputRequest | null;
|
|
975
|
-
setActiveInputRequest(request: ActiveInputRequest | null): void;
|
|
976
|
-
writeToTerminal(text: string): void;
|
|
977
|
-
getTerminalRows?(): number;
|
|
978
|
-
}
|
|
979
|
-
declare class CliInputReader implements ICliInputReader {
|
|
980
|
-
private readonly host;
|
|
981
|
-
constructor(host: CliInputReaderHost);
|
|
982
|
-
readLine(prompt: string): Promise<string | null>;
|
|
983
|
-
readPassword(prompt: string): Promise<string | null>;
|
|
984
|
-
readConfirm(prompt: string, defaultValue?: boolean): Promise<boolean | null>;
|
|
985
|
-
readSelect(prompt: string, options: CliSelectOption[], onChange?: (value: string) => void): Promise<string | null>;
|
|
986
|
-
readSelectInline(prompt: string, options: CliSelectOption[], onChange?: (value: string) => void): Promise<string | null>;
|
|
987
|
-
readMultiSelect(prompt: string, options: CliMultiSelectOption[]): Promise<string[] | null>;
|
|
988
|
-
readNumber(prompt: string, options?: {
|
|
989
|
-
min?: number;
|
|
990
|
-
max?: number;
|
|
991
|
-
default?: number;
|
|
992
|
-
}): Promise<number | null>;
|
|
993
|
-
renderSelectOptions(options: CliSelectOption[], selectedIndex: number, scrollOffset?: number, maxVisible?: number): number;
|
|
994
|
-
renderInlineSelectOptions(options: CliSelectOption[], selectedIndex: number): string;
|
|
995
|
-
renderMultiSelectOptions(options: CliSelectOption[], selectedIndex: number, checkedIndices: Set<number>, scrollOffset?: number, maxVisible?: number): number;
|
|
996
|
-
private createInputRequest;
|
|
997
|
-
}
|
|
998
|
-
|
|
999
989
|
/**
|
|
1000
990
|
* Manages tab-completion by querying registered providers in priority order.
|
|
1001
991
|
* Implements bash-style behavior:
|
|
@@ -1042,7 +1032,7 @@ declare class CliCompletionEngine {
|
|
|
1042
1032
|
/**
|
|
1043
1033
|
* Reusable text buffer with cursor management.
|
|
1044
1034
|
* Eliminates duplicated line-editing logic across CommandLineMode,
|
|
1045
|
-
*
|
|
1035
|
+
* LineInputMode, and any future input mode.
|
|
1046
1036
|
*/
|
|
1047
1037
|
declare class CliLineBuffer {
|
|
1048
1038
|
private _text;
|
|
@@ -1086,6 +1076,28 @@ interface IInputMode {
|
|
|
1086
1076
|
* Called when this mode is no longer the active input mode.
|
|
1087
1077
|
*/
|
|
1088
1078
|
deactivate?(): void;
|
|
1079
|
+
/** Called when the terminal is resized while this mode is active. */
|
|
1080
|
+
onResize?(cols: number, rows: number): void;
|
|
1081
|
+
}
|
|
1082
|
+
/**
|
|
1083
|
+
* Host interface for input modes. Provides access to terminal I/O,
|
|
1084
|
+
* dimensions, and mode stack management.
|
|
1085
|
+
*/
|
|
1086
|
+
interface InputModeHost {
|
|
1087
|
+
/** Write raw text/ANSI to the terminal */
|
|
1088
|
+
writeToTerminal(text: string): void;
|
|
1089
|
+
/** Get terminal row count for scroll window sizing */
|
|
1090
|
+
getTerminalRows(): number;
|
|
1091
|
+
/** Get terminal column count for overflow calculations */
|
|
1092
|
+
getTerminalCols(): number;
|
|
1093
|
+
/** Push a mode onto the input mode stack */
|
|
1094
|
+
pushMode(mode: IInputMode): void;
|
|
1095
|
+
/** Pop the current mode from the input mode stack */
|
|
1096
|
+
popMode(): void;
|
|
1097
|
+
/** The xterm.js Terminal instance (for direct write when needed) */
|
|
1098
|
+
readonly terminal: Terminal;
|
|
1099
|
+
/** File picker provider for the current environment */
|
|
1100
|
+
readonly filePickerProvider: ICliFilePickerProvider;
|
|
1089
1101
|
}
|
|
1090
1102
|
|
|
1091
1103
|
interface PromptOptions {
|
|
@@ -1145,16 +1157,6 @@ interface CommandLineModeHost {
|
|
|
1145
1157
|
}): void;
|
|
1146
1158
|
}
|
|
1147
1159
|
|
|
1148
|
-
/**
|
|
1149
|
-
* Host interface for ReaderMode — provides access to the active input request.
|
|
1150
|
-
*/
|
|
1151
|
-
interface ReaderModeHost {
|
|
1152
|
-
readonly terminal: Terminal;
|
|
1153
|
-
getActiveInputRequest(): ActiveInputRequest | null;
|
|
1154
|
-
setActiveInputRequest(request: ActiveInputRequest | null): void;
|
|
1155
|
-
popMode(): void;
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
1160
|
interface CliExecutionContextDeps {
|
|
1159
1161
|
services: ICliServiceProvider;
|
|
1160
1162
|
logger: ICliLogger;
|
|
@@ -1162,7 +1164,7 @@ interface CliExecutionContextDeps {
|
|
|
1162
1164
|
stateStoreManager: CliStateStoreManager;
|
|
1163
1165
|
translator: ICliTranslationService;
|
|
1164
1166
|
}
|
|
1165
|
-
declare class CliExecutionContext implements ICliExecutionContext,
|
|
1167
|
+
declare class CliExecutionContext implements ICliExecutionContext, InputModeHost, CommandLineModeHost {
|
|
1166
1168
|
terminal: Terminal;
|
|
1167
1169
|
executor: ICliCommandExecutorService;
|
|
1168
1170
|
userSession?: ICliUserSession;
|
|
@@ -1187,20 +1189,14 @@ declare class CliExecutionContext implements ICliExecutionContext, CliInputReade
|
|
|
1187
1189
|
readonly lineBuffer: CliLineBuffer;
|
|
1188
1190
|
readonly lineRenderer: CliTerminalLineRenderer;
|
|
1189
1191
|
readonly commandHistory: CliCommandHistory;
|
|
1190
|
-
|
|
1192
|
+
readonly filePickerProvider: ICliFilePickerProvider;
|
|
1191
1193
|
private readonly modeStack;
|
|
1192
1194
|
private readonly managedTimers;
|
|
1193
1195
|
private resizeDisposable;
|
|
1194
1196
|
constructor(deps: CliExecutionContextDeps, terminal: Terminal, executor: ICliCommandExecutorService, cliOptions?: CliOptions);
|
|
1195
|
-
get activeInputRequest(): ActiveInputRequest | null;
|
|
1196
|
-
/**
|
|
1197
|
-
* Sets the active input request. When a non-null request is provided,
|
|
1198
|
-
* pushes ReaderMode onto the mode stack. ReaderMode pops itself on
|
|
1199
|
-
* completion, so passing null here does NOT pop the mode.
|
|
1200
|
-
*/
|
|
1201
|
-
setActiveInputRequest(request: ActiveInputRequest | null): void;
|
|
1202
1197
|
writeToTerminal(text: string): void;
|
|
1203
1198
|
getTerminalRows(): number;
|
|
1199
|
+
getTerminalCols(): number;
|
|
1204
1200
|
get currentLine(): string;
|
|
1205
1201
|
get cursorPosition(): number;
|
|
1206
1202
|
set cursorPosition(value: number);
|
|
@@ -1239,7 +1235,6 @@ declare class CliExecutionContext implements ICliExecutionContext, CliInputReade
|
|
|
1239
1235
|
getPromptLength(): number;
|
|
1240
1236
|
setPromptLength(value: number): void;
|
|
1241
1237
|
getExecutionContext(): ICliExecutionContext;
|
|
1242
|
-
getActiveInputRequest(): ActiveInputRequest | null;
|
|
1243
1238
|
private clearAllManagedTimers;
|
|
1244
1239
|
/**
|
|
1245
1240
|
* Dispose all resources. Called by CliEngine.destroy() when the
|
|
@@ -1271,6 +1266,8 @@ declare class CliCommandExecutor implements ICliCommandExecutorService {
|
|
|
1271
1266
|
private appendOutputToFile;
|
|
1272
1267
|
private writeOutputToFile;
|
|
1273
1268
|
private executeSingleCommand;
|
|
1269
|
+
private completeProcess;
|
|
1270
|
+
private failProcess;
|
|
1274
1271
|
private writeStderrToFile;
|
|
1275
1272
|
private appendStderrToFile;
|
|
1276
1273
|
showHelp(command: CliProcessCommand, context: ICliExecutionContext): Promise<void>;
|
|
@@ -1471,11 +1468,6 @@ declare class CliTerminalProgressBar implements ICliPercentageProgressBar {
|
|
|
1471
1468
|
complete(): void;
|
|
1472
1469
|
setText(text: string): void;
|
|
1473
1470
|
private updateProgressBar;
|
|
1474
|
-
/**
|
|
1475
|
-
* Returns an ANSI 256-color escape for a position in the progress bar.
|
|
1476
|
-
* Gradient: red (0%) -> yellow (50%) -> green (100%).
|
|
1477
|
-
*/
|
|
1478
|
-
private progressGradientColor;
|
|
1479
1471
|
private clearCurrentLine;
|
|
1480
1472
|
private calcLineCount;
|
|
1481
1473
|
}
|
|
@@ -1651,6 +1643,28 @@ declare class CliDefaultPingServerService implements ICliPingServerService {
|
|
|
1651
1643
|
ping(): Promise<void>;
|
|
1652
1644
|
}
|
|
1653
1645
|
|
|
1646
|
+
/**
|
|
1647
|
+
* Factory-based input reader. Creates the appropriate input mode
|
|
1648
|
+
* and pushes it onto the mode stack for each request.
|
|
1649
|
+
*/
|
|
1650
|
+
declare class CliInputReader implements ICliInputReader {
|
|
1651
|
+
private readonly host;
|
|
1652
|
+
constructor(host: InputModeHost);
|
|
1653
|
+
readLine(prompt: string, options?: CliLineOptions): Promise<string | null>;
|
|
1654
|
+
readPassword(prompt: string): Promise<string | null>;
|
|
1655
|
+
readConfirm(prompt: string, defaultValue?: boolean): Promise<boolean | null>;
|
|
1656
|
+
readSelect(prompt: string, options: CliSelectOption[], selectOptions?: CliSelectOptions): Promise<string | null>;
|
|
1657
|
+
readSelectInline(prompt: string, options: CliSelectOption[], selectOptions?: CliSelectOptions): Promise<string | null>;
|
|
1658
|
+
readMultiSelect(prompt: string, options: CliMultiSelectOption[], selectOptions?: CliMultiSelectOptions): Promise<string[] | null>;
|
|
1659
|
+
readNumber(prompt: string, options?: {
|
|
1660
|
+
min?: number;
|
|
1661
|
+
max?: number;
|
|
1662
|
+
default?: number;
|
|
1663
|
+
}): Promise<number | null>;
|
|
1664
|
+
readDate(prompt: string, options?: CliDateOptions): Promise<string | null>;
|
|
1665
|
+
readFile(prompt: string, options?: CliFilePickerOptions): Promise<CliFileResult[] | null>;
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1654
1668
|
/**
|
|
1655
1669
|
* A terminal writer wrapper that captures "stdout-equivalent" output
|
|
1656
1670
|
* (`write`, `writeln`, `writeJson`, `writeObjectsAsTable`, `writeTable`)
|
|
@@ -1735,7 +1749,7 @@ declare class CliProcessRegistry implements ICliProcessRegistry {
|
|
|
1735
1749
|
private _currentPid;
|
|
1736
1750
|
private maxHistory;
|
|
1737
1751
|
get currentPid(): number | undefined;
|
|
1738
|
-
register(command: string): {
|
|
1752
|
+
register(command: string, options?: ICliProcessRegisterOptions): {
|
|
1739
1753
|
pid: number;
|
|
1740
1754
|
abortController: AbortController;
|
|
1741
1755
|
};
|
|
@@ -2205,6 +2219,10 @@ interface ICliWasmAccelerator {
|
|
|
2205
2219
|
prefixMatch(candidates: string[], prefix: string): string[];
|
|
2206
2220
|
/** Longest common prefix of the given strings. */
|
|
2207
2221
|
commonPrefix(strings: string[]): string;
|
|
2222
|
+
/** Register a named rule set for syntax highlighting tokenization. */
|
|
2223
|
+
registerRuleSet(ruleSetId: string, rules: string): void;
|
|
2224
|
+
/** Tokenize a line using a previously registered rule set. Returns newline-separated "start,end,tokenType" entries. */
|
|
2225
|
+
tokenizeLine(line: string, ruleSetId: string): string;
|
|
2208
2226
|
}
|
|
2209
2227
|
|
|
2210
2228
|
/**
|
|
@@ -2218,6 +2236,9 @@ declare class JsFallbackAccelerator implements ICliWasmAccelerator {
|
|
|
2218
2236
|
text: string;
|
|
2219
2237
|
};
|
|
2220
2238
|
prefixMatch(candidates: string[], prefix: string): string[];
|
|
2239
|
+
private ruleSets;
|
|
2240
|
+
registerRuleSet(ruleSetId: string, rules: string): void;
|
|
2241
|
+
tokenizeLine(line: string, ruleSetId: string): string;
|
|
2221
2242
|
commonPrefix(strings: string[]): string;
|
|
2222
2243
|
}
|
|
2223
2244
|
|
|
@@ -2242,4 +2263,4 @@ declare function getAccelerator(): ICliWasmAccelerator;
|
|
|
2242
2263
|
*/
|
|
2243
2264
|
declare function isWasmAccelerated(): boolean;
|
|
2244
2265
|
|
|
2245
|
-
export { API_VERSION,
|
|
2266
|
+
export { API_VERSION, CLi_Name_Art, CapturingTerminalWriter, type CdnSourceName, CliAliasCommandProcessor, CliArgsParser, CliBackgroundServiceRegistry_TOKEN, CliBoot, CliCalCommandProcessor, CliCaptureCommandProcessor, CliClearCommandProcessor, CliClipboard, CliClipboardCommandProcessor, CliColorCommandProcessor, CliCommandExecutionContext, CliCommandExecutor, CliCommandHistory, CliCommandHistory_TOKEN, CliCommandProcessorRegistry, CliConfigureCommandProcessor, CliConvertCommandProcessor, CliDebugCommandProcessor, CliDefaultPingServerService, CliDiffCommandProcessor, CliDragDropService, CliEchoCommandProcessor, CliEngine, type CliEngineOptions, CliEnvCommandProcessor, CliEnvironment, CliEvalCommandProcessor, CliExecutionContext, type CliExecutionContextDeps, CliExecutionProcess, CliExportCommandProcessor, CliFeedbackCommandProcessor, CliFontSizeCommandProcessor, CliHelpCommandProcessor, CliHistoryCommandProcessor, CliHotKeysCommandProcessor, CliHtopCommandProcessor, CliInputReader, CliJsonCommandProcessor, CliKeyValueStore, CliKillCommandProcessor, CliLogger, CliLoremCommandProcessor, CliModuleRegistry_TOKEN, CliNanoCommandProcessor, CliOpenCommandProcessor, CliPackageManagerService, CliPackageManagerService_TOKEN, CliPackagesCommandProcessor, CliPingCommandProcessor, CliProcessRegistry, CliProcessRegistry_TOKEN, CliProcessorsRegistry_TOKEN, CliPsCommandProcessor, CliRandomCommandProcessor, CliScreenCommandProcessor, CliSeqCommandProcessor, CliServerCommandProcessor, CliServerConnection, CliServerManager, CliServerManager_TOKEN, CliServerMultiProxyProcessor, CliServerProxyProcessor, CliServiceContainer, CliServicesCommandProcessor, CliSleepCommandProcessor, CliSnippetCommandProcessor, CliSshCommandProcessor, CliStateStore, CliStateStoreManager, CliStateStoreManager_TOKEN, CliTerminalProgressBar, CliTerminalSpinner, CliTerminalTextAnimator, CliTerminalWriter, CliTestHarness, type CliTestResult, CliThemeCommandProcessor, CliTimeCommandProcessor, CliTimestampCommandProcessor, CliUnAliasCommandProcessor, CliUnameCommandProcessor, CliUnsetCommandProcessor, CliUptimeCommandProcessor, CliVersionCommandProcessor, type CliWelcomeMessageConfig, CliYesCommandProcessor, CommandParser, type CommandParserOutput, type CommandPart, type ConfigureState, type DefaultServerProvider, type DiffLine, type DiffType, type ICliEnvironment, ICliEnvironment_TOKEN, type ICliExecutionHost, ICliPingServerService_TOKEN, type ICliStateStoreManager, type ICliWasmAccelerator, JsFallbackAccelerator, LIBRARY_VERSION, type MultiProxyEntry, OverlayAddon, type ParsedArg, type ParsedToken, ProcessExitedError, ScriptLoaderService, type ThemeState, builtinProcessors, computeDiff, contextGlobalParameter, createServerModule, executeOnServer, formatDiff, getAccelerator, getCliNameArt, getGreetingBasedOnTime, groupBy, helpGlobalParameter, hotkeysInfo, initWasmAccelerator, isWasmAccelerated, miscProcessors, openLink, reconcileArgs, renderServerResponse, systemProcessors, themeInfos, themes, versionGlobalParameter, welcomeModule };
|
package/public-api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _qodalis_cli_core from '@qodalis/cli-core';
|
|
2
|
-
import { ICliCommandProcessor, ICliCommandParameterDescriptor, ICliCommandProcessorRegistry, ICliCommandChildProcessor, CliProcessorMetadata, CliStateConfiguration, ICliExecutionContext, CliProcessCommand, ICliCommandAuthor, CliThemeInfo, ICliExecutionProcess, ICliUserSession, ICliSpinner, ICliPercentageProgressBar, ICliTextAnimator, ICliTerminalWriter, ICliCommandExecutorService, ICliClipboard, ICliStateStore, CliOptions, ICliLogger, ICliServiceProvider, ICliTranslationService, ICliInputReader, ICliBackgroundServiceRegistry, ICliManagedInterval, ICliManagedTimer, ICliKeyValueStore,
|
|
2
|
+
import { ICliCommandProcessor, ICliCommandParameterDescriptor, ICliCommandProcessorRegistry, ICliCommandChildProcessor, CliProcessorMetadata, CliStateConfiguration, ICliExecutionContext, CliProcessCommand, ICliCommandAuthor, CliThemeInfo, ICliExecutionProcess, ICliUserSession, ICliSpinner, ICliPercentageProgressBar, ICliTextAnimator, ICliTerminalWriter, ICliCommandExecutorService, ICliClipboard, ICliStateStore, CliOptions, ICliLogger, ICliServiceProvider, ICliTranslationService, ICliInputReader, ICliBackgroundServiceRegistry, ICliManagedInterval, ICliManagedTimer, ICliKeyValueStore, ICliCompletionProvider, ICliFilePickerProvider, ICliGlobalParameterHandler, CliProvider, CliForegroundColor, CliBackgroundColor, CliLogLevel, CliPercentageProgressBarUpdateValueOptions, CliTextAnimatorOptions, ICliModule, CliModuleRegistry, Package, ICliPingServerService, CliLineOptions, CliSelectOption, CliSelectOptions, CliMultiSelectOption, CliMultiSelectOptions, CliDateOptions, CliFilePickerOptions, CliFileResult, ICliProcessRegistry, ICliProcessRegisterOptions, ICliProcessEntry, ICliDragDropService, CliState, CliEngineSnapshot, CliServerConfig, CliServerCommandDescriptor, CliServerCapabilities, CliServerResponse, CliIcon } from '@qodalis/cli-core';
|
|
3
3
|
export { ICliUserSessionService_TOKEN, ICliUsersStoreService_TOKEN } from '@qodalis/cli-core';
|
|
4
4
|
import { ITheme, Terminal, ITerminalAddon, ITerminalOptions, ITerminalInitOnlyOptions } from '@xterm/xterm';
|
|
5
5
|
import { Subject, Observable, Subscription } from 'rxjs';
|
|
@@ -140,7 +140,7 @@ declare const CliBackgroundServiceRegistry_TOKEN = "cli-background-service-regis
|
|
|
140
140
|
*/
|
|
141
141
|
declare const CliPackageManagerService_TOKEN = "cli-package-manager-service";
|
|
142
142
|
|
|
143
|
-
declare const LIBRARY_VERSION = "2.0.0-beta.
|
|
143
|
+
declare const LIBRARY_VERSION = "2.0.0-beta.8";
|
|
144
144
|
declare const API_VERSION = 2;
|
|
145
145
|
|
|
146
146
|
declare class CliAliasCommandProcessor implements ICliCommandProcessor {
|
|
@@ -406,7 +406,6 @@ declare class CliUptimeCommandProcessor implements ICliCommandProcessor {
|
|
|
406
406
|
description: string;
|
|
407
407
|
author: _qodalis_cli_core.ICliCommandAuthor;
|
|
408
408
|
metadata?: CliProcessorMetadata;
|
|
409
|
-
private sessionStartTimes;
|
|
410
409
|
initialize(context: ICliExecutionContext): Promise<void>;
|
|
411
410
|
processCommand(_: CliProcessCommand, context: ICliExecutionContext): Promise<void>;
|
|
412
411
|
writeDescription(context: ICliExecutionContext): void;
|
|
@@ -600,6 +599,7 @@ declare class CliNanoCommandProcessor implements ICliCommandProcessor {
|
|
|
600
599
|
processCommand(command: CliProcessCommand, context: ICliExecutionContext): Promise<void>;
|
|
601
600
|
onData(data: string, context: ICliExecutionContext): Promise<void>;
|
|
602
601
|
writeDescription(context: ICliExecutionContext): void;
|
|
602
|
+
private setupHighlighting;
|
|
603
603
|
private render;
|
|
604
604
|
private renderPrompt;
|
|
605
605
|
private showStatus;
|
|
@@ -649,6 +649,43 @@ declare class CliKillCommandProcessor implements ICliCommandProcessor {
|
|
|
649
649
|
processCommand(command: CliProcessCommand, context: ICliExecutionContext): Promise<void>;
|
|
650
650
|
}
|
|
651
651
|
|
|
652
|
+
declare class CliHtopCommandProcessor implements ICliCommandProcessor {
|
|
653
|
+
command: string;
|
|
654
|
+
description: string;
|
|
655
|
+
author: _qodalis_cli_core.ICliCommandAuthor;
|
|
656
|
+
metadata?: CliProcessorMetadata;
|
|
657
|
+
private context;
|
|
658
|
+
private registry;
|
|
659
|
+
private refreshTimer;
|
|
660
|
+
private rows;
|
|
661
|
+
private selectedIndex;
|
|
662
|
+
private scrollOffset;
|
|
663
|
+
private termCols;
|
|
664
|
+
private termRows;
|
|
665
|
+
private showingLogs;
|
|
666
|
+
private errorMessage;
|
|
667
|
+
private errorTimeout;
|
|
668
|
+
processCommand(_command: CliProcessCommand, context: ICliExecutionContext): Promise<void>;
|
|
669
|
+
onData(data: string, context: ICliExecutionContext): Promise<void>;
|
|
670
|
+
onResize(cols: number, rows: number, _context: ICliExecutionContext): void;
|
|
671
|
+
onDispose(_context: ICliExecutionContext): void;
|
|
672
|
+
writeDescription(context: ICliExecutionContext): void;
|
|
673
|
+
private refreshData;
|
|
674
|
+
private actionKill;
|
|
675
|
+
private actionStart;
|
|
676
|
+
private actionStop;
|
|
677
|
+
private actionRestart;
|
|
678
|
+
private actionLogs;
|
|
679
|
+
private moveSelection;
|
|
680
|
+
private get visibleRows();
|
|
681
|
+
private clampScroll;
|
|
682
|
+
private render;
|
|
683
|
+
private buildFooter;
|
|
684
|
+
private renderLogsOverlay;
|
|
685
|
+
private showError;
|
|
686
|
+
private exit;
|
|
687
|
+
}
|
|
688
|
+
|
|
652
689
|
declare const systemProcessors: ICliCommandProcessor[];
|
|
653
690
|
|
|
654
691
|
declare class CliThemeCommandProcessor implements ICliCommandProcessor {
|
|
@@ -949,53 +986,6 @@ declare class CliStateStoreManager implements ICliStateStoreManager {
|
|
|
949
986
|
}[];
|
|
950
987
|
}
|
|
951
988
|
|
|
952
|
-
type ActiveInputRequestType = 'line' | 'password' | 'confirm' | 'select' | 'select-inline' | 'multi-select' | 'number';
|
|
953
|
-
interface ActiveInputRequest {
|
|
954
|
-
type: ActiveInputRequestType;
|
|
955
|
-
promptText: string;
|
|
956
|
-
resolve: (value: any) => void;
|
|
957
|
-
buffer: string;
|
|
958
|
-
cursorPosition: number;
|
|
959
|
-
defaultValue?: boolean;
|
|
960
|
-
options?: CliSelectOption[];
|
|
961
|
-
selectedIndex?: number;
|
|
962
|
-
onChange?: (value: string) => void;
|
|
963
|
-
checkedIndices?: Set<number>;
|
|
964
|
-
numberOptions?: {
|
|
965
|
-
min?: number;
|
|
966
|
-
max?: number;
|
|
967
|
-
default?: number;
|
|
968
|
-
};
|
|
969
|
-
scrollOffset?: number;
|
|
970
|
-
maxVisible?: number;
|
|
971
|
-
displayLines?: number;
|
|
972
|
-
}
|
|
973
|
-
interface CliInputReaderHost {
|
|
974
|
-
readonly activeInputRequest: ActiveInputRequest | null;
|
|
975
|
-
setActiveInputRequest(request: ActiveInputRequest | null): void;
|
|
976
|
-
writeToTerminal(text: string): void;
|
|
977
|
-
getTerminalRows?(): number;
|
|
978
|
-
}
|
|
979
|
-
declare class CliInputReader implements ICliInputReader {
|
|
980
|
-
private readonly host;
|
|
981
|
-
constructor(host: CliInputReaderHost);
|
|
982
|
-
readLine(prompt: string): Promise<string | null>;
|
|
983
|
-
readPassword(prompt: string): Promise<string | null>;
|
|
984
|
-
readConfirm(prompt: string, defaultValue?: boolean): Promise<boolean | null>;
|
|
985
|
-
readSelect(prompt: string, options: CliSelectOption[], onChange?: (value: string) => void): Promise<string | null>;
|
|
986
|
-
readSelectInline(prompt: string, options: CliSelectOption[], onChange?: (value: string) => void): Promise<string | null>;
|
|
987
|
-
readMultiSelect(prompt: string, options: CliMultiSelectOption[]): Promise<string[] | null>;
|
|
988
|
-
readNumber(prompt: string, options?: {
|
|
989
|
-
min?: number;
|
|
990
|
-
max?: number;
|
|
991
|
-
default?: number;
|
|
992
|
-
}): Promise<number | null>;
|
|
993
|
-
renderSelectOptions(options: CliSelectOption[], selectedIndex: number, scrollOffset?: number, maxVisible?: number): number;
|
|
994
|
-
renderInlineSelectOptions(options: CliSelectOption[], selectedIndex: number): string;
|
|
995
|
-
renderMultiSelectOptions(options: CliSelectOption[], selectedIndex: number, checkedIndices: Set<number>, scrollOffset?: number, maxVisible?: number): number;
|
|
996
|
-
private createInputRequest;
|
|
997
|
-
}
|
|
998
|
-
|
|
999
989
|
/**
|
|
1000
990
|
* Manages tab-completion by querying registered providers in priority order.
|
|
1001
991
|
* Implements bash-style behavior:
|
|
@@ -1042,7 +1032,7 @@ declare class CliCompletionEngine {
|
|
|
1042
1032
|
/**
|
|
1043
1033
|
* Reusable text buffer with cursor management.
|
|
1044
1034
|
* Eliminates duplicated line-editing logic across CommandLineMode,
|
|
1045
|
-
*
|
|
1035
|
+
* LineInputMode, and any future input mode.
|
|
1046
1036
|
*/
|
|
1047
1037
|
declare class CliLineBuffer {
|
|
1048
1038
|
private _text;
|
|
@@ -1086,6 +1076,28 @@ interface IInputMode {
|
|
|
1086
1076
|
* Called when this mode is no longer the active input mode.
|
|
1087
1077
|
*/
|
|
1088
1078
|
deactivate?(): void;
|
|
1079
|
+
/** Called when the terminal is resized while this mode is active. */
|
|
1080
|
+
onResize?(cols: number, rows: number): void;
|
|
1081
|
+
}
|
|
1082
|
+
/**
|
|
1083
|
+
* Host interface for input modes. Provides access to terminal I/O,
|
|
1084
|
+
* dimensions, and mode stack management.
|
|
1085
|
+
*/
|
|
1086
|
+
interface InputModeHost {
|
|
1087
|
+
/** Write raw text/ANSI to the terminal */
|
|
1088
|
+
writeToTerminal(text: string): void;
|
|
1089
|
+
/** Get terminal row count for scroll window sizing */
|
|
1090
|
+
getTerminalRows(): number;
|
|
1091
|
+
/** Get terminal column count for overflow calculations */
|
|
1092
|
+
getTerminalCols(): number;
|
|
1093
|
+
/** Push a mode onto the input mode stack */
|
|
1094
|
+
pushMode(mode: IInputMode): void;
|
|
1095
|
+
/** Pop the current mode from the input mode stack */
|
|
1096
|
+
popMode(): void;
|
|
1097
|
+
/** The xterm.js Terminal instance (for direct write when needed) */
|
|
1098
|
+
readonly terminal: Terminal;
|
|
1099
|
+
/** File picker provider for the current environment */
|
|
1100
|
+
readonly filePickerProvider: ICliFilePickerProvider;
|
|
1089
1101
|
}
|
|
1090
1102
|
|
|
1091
1103
|
interface PromptOptions {
|
|
@@ -1145,16 +1157,6 @@ interface CommandLineModeHost {
|
|
|
1145
1157
|
}): void;
|
|
1146
1158
|
}
|
|
1147
1159
|
|
|
1148
|
-
/**
|
|
1149
|
-
* Host interface for ReaderMode — provides access to the active input request.
|
|
1150
|
-
*/
|
|
1151
|
-
interface ReaderModeHost {
|
|
1152
|
-
readonly terminal: Terminal;
|
|
1153
|
-
getActiveInputRequest(): ActiveInputRequest | null;
|
|
1154
|
-
setActiveInputRequest(request: ActiveInputRequest | null): void;
|
|
1155
|
-
popMode(): void;
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
1160
|
interface CliExecutionContextDeps {
|
|
1159
1161
|
services: ICliServiceProvider;
|
|
1160
1162
|
logger: ICliLogger;
|
|
@@ -1162,7 +1164,7 @@ interface CliExecutionContextDeps {
|
|
|
1162
1164
|
stateStoreManager: CliStateStoreManager;
|
|
1163
1165
|
translator: ICliTranslationService;
|
|
1164
1166
|
}
|
|
1165
|
-
declare class CliExecutionContext implements ICliExecutionContext,
|
|
1167
|
+
declare class CliExecutionContext implements ICliExecutionContext, InputModeHost, CommandLineModeHost {
|
|
1166
1168
|
terminal: Terminal;
|
|
1167
1169
|
executor: ICliCommandExecutorService;
|
|
1168
1170
|
userSession?: ICliUserSession;
|
|
@@ -1187,20 +1189,14 @@ declare class CliExecutionContext implements ICliExecutionContext, CliInputReade
|
|
|
1187
1189
|
readonly lineBuffer: CliLineBuffer;
|
|
1188
1190
|
readonly lineRenderer: CliTerminalLineRenderer;
|
|
1189
1191
|
readonly commandHistory: CliCommandHistory;
|
|
1190
|
-
|
|
1192
|
+
readonly filePickerProvider: ICliFilePickerProvider;
|
|
1191
1193
|
private readonly modeStack;
|
|
1192
1194
|
private readonly managedTimers;
|
|
1193
1195
|
private resizeDisposable;
|
|
1194
1196
|
constructor(deps: CliExecutionContextDeps, terminal: Terminal, executor: ICliCommandExecutorService, cliOptions?: CliOptions);
|
|
1195
|
-
get activeInputRequest(): ActiveInputRequest | null;
|
|
1196
|
-
/**
|
|
1197
|
-
* Sets the active input request. When a non-null request is provided,
|
|
1198
|
-
* pushes ReaderMode onto the mode stack. ReaderMode pops itself on
|
|
1199
|
-
* completion, so passing null here does NOT pop the mode.
|
|
1200
|
-
*/
|
|
1201
|
-
setActiveInputRequest(request: ActiveInputRequest | null): void;
|
|
1202
1197
|
writeToTerminal(text: string): void;
|
|
1203
1198
|
getTerminalRows(): number;
|
|
1199
|
+
getTerminalCols(): number;
|
|
1204
1200
|
get currentLine(): string;
|
|
1205
1201
|
get cursorPosition(): number;
|
|
1206
1202
|
set cursorPosition(value: number);
|
|
@@ -1239,7 +1235,6 @@ declare class CliExecutionContext implements ICliExecutionContext, CliInputReade
|
|
|
1239
1235
|
getPromptLength(): number;
|
|
1240
1236
|
setPromptLength(value: number): void;
|
|
1241
1237
|
getExecutionContext(): ICliExecutionContext;
|
|
1242
|
-
getActiveInputRequest(): ActiveInputRequest | null;
|
|
1243
1238
|
private clearAllManagedTimers;
|
|
1244
1239
|
/**
|
|
1245
1240
|
* Dispose all resources. Called by CliEngine.destroy() when the
|
|
@@ -1271,6 +1266,8 @@ declare class CliCommandExecutor implements ICliCommandExecutorService {
|
|
|
1271
1266
|
private appendOutputToFile;
|
|
1272
1267
|
private writeOutputToFile;
|
|
1273
1268
|
private executeSingleCommand;
|
|
1269
|
+
private completeProcess;
|
|
1270
|
+
private failProcess;
|
|
1274
1271
|
private writeStderrToFile;
|
|
1275
1272
|
private appendStderrToFile;
|
|
1276
1273
|
showHelp(command: CliProcessCommand, context: ICliExecutionContext): Promise<void>;
|
|
@@ -1471,11 +1468,6 @@ declare class CliTerminalProgressBar implements ICliPercentageProgressBar {
|
|
|
1471
1468
|
complete(): void;
|
|
1472
1469
|
setText(text: string): void;
|
|
1473
1470
|
private updateProgressBar;
|
|
1474
|
-
/**
|
|
1475
|
-
* Returns an ANSI 256-color escape for a position in the progress bar.
|
|
1476
|
-
* Gradient: red (0%) -> yellow (50%) -> green (100%).
|
|
1477
|
-
*/
|
|
1478
|
-
private progressGradientColor;
|
|
1479
1471
|
private clearCurrentLine;
|
|
1480
1472
|
private calcLineCount;
|
|
1481
1473
|
}
|
|
@@ -1651,6 +1643,28 @@ declare class CliDefaultPingServerService implements ICliPingServerService {
|
|
|
1651
1643
|
ping(): Promise<void>;
|
|
1652
1644
|
}
|
|
1653
1645
|
|
|
1646
|
+
/**
|
|
1647
|
+
* Factory-based input reader. Creates the appropriate input mode
|
|
1648
|
+
* and pushes it onto the mode stack for each request.
|
|
1649
|
+
*/
|
|
1650
|
+
declare class CliInputReader implements ICliInputReader {
|
|
1651
|
+
private readonly host;
|
|
1652
|
+
constructor(host: InputModeHost);
|
|
1653
|
+
readLine(prompt: string, options?: CliLineOptions): Promise<string | null>;
|
|
1654
|
+
readPassword(prompt: string): Promise<string | null>;
|
|
1655
|
+
readConfirm(prompt: string, defaultValue?: boolean): Promise<boolean | null>;
|
|
1656
|
+
readSelect(prompt: string, options: CliSelectOption[], selectOptions?: CliSelectOptions): Promise<string | null>;
|
|
1657
|
+
readSelectInline(prompt: string, options: CliSelectOption[], selectOptions?: CliSelectOptions): Promise<string | null>;
|
|
1658
|
+
readMultiSelect(prompt: string, options: CliMultiSelectOption[], selectOptions?: CliMultiSelectOptions): Promise<string[] | null>;
|
|
1659
|
+
readNumber(prompt: string, options?: {
|
|
1660
|
+
min?: number;
|
|
1661
|
+
max?: number;
|
|
1662
|
+
default?: number;
|
|
1663
|
+
}): Promise<number | null>;
|
|
1664
|
+
readDate(prompt: string, options?: CliDateOptions): Promise<string | null>;
|
|
1665
|
+
readFile(prompt: string, options?: CliFilePickerOptions): Promise<CliFileResult[] | null>;
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1654
1668
|
/**
|
|
1655
1669
|
* A terminal writer wrapper that captures "stdout-equivalent" output
|
|
1656
1670
|
* (`write`, `writeln`, `writeJson`, `writeObjectsAsTable`, `writeTable`)
|
|
@@ -1735,7 +1749,7 @@ declare class CliProcessRegistry implements ICliProcessRegistry {
|
|
|
1735
1749
|
private _currentPid;
|
|
1736
1750
|
private maxHistory;
|
|
1737
1751
|
get currentPid(): number | undefined;
|
|
1738
|
-
register(command: string): {
|
|
1752
|
+
register(command: string, options?: ICliProcessRegisterOptions): {
|
|
1739
1753
|
pid: number;
|
|
1740
1754
|
abortController: AbortController;
|
|
1741
1755
|
};
|
|
@@ -2205,6 +2219,10 @@ interface ICliWasmAccelerator {
|
|
|
2205
2219
|
prefixMatch(candidates: string[], prefix: string): string[];
|
|
2206
2220
|
/** Longest common prefix of the given strings. */
|
|
2207
2221
|
commonPrefix(strings: string[]): string;
|
|
2222
|
+
/** Register a named rule set for syntax highlighting tokenization. */
|
|
2223
|
+
registerRuleSet(ruleSetId: string, rules: string): void;
|
|
2224
|
+
/** Tokenize a line using a previously registered rule set. Returns newline-separated "start,end,tokenType" entries. */
|
|
2225
|
+
tokenizeLine(line: string, ruleSetId: string): string;
|
|
2208
2226
|
}
|
|
2209
2227
|
|
|
2210
2228
|
/**
|
|
@@ -2218,6 +2236,9 @@ declare class JsFallbackAccelerator implements ICliWasmAccelerator {
|
|
|
2218
2236
|
text: string;
|
|
2219
2237
|
};
|
|
2220
2238
|
prefixMatch(candidates: string[], prefix: string): string[];
|
|
2239
|
+
private ruleSets;
|
|
2240
|
+
registerRuleSet(ruleSetId: string, rules: string): void;
|
|
2241
|
+
tokenizeLine(line: string, ruleSetId: string): string;
|
|
2221
2242
|
commonPrefix(strings: string[]): string;
|
|
2222
2243
|
}
|
|
2223
2244
|
|
|
@@ -2242,4 +2263,4 @@ declare function getAccelerator(): ICliWasmAccelerator;
|
|
|
2242
2263
|
*/
|
|
2243
2264
|
declare function isWasmAccelerated(): boolean;
|
|
2244
2265
|
|
|
2245
|
-
export { API_VERSION,
|
|
2266
|
+
export { API_VERSION, CLi_Name_Art, CapturingTerminalWriter, type CdnSourceName, CliAliasCommandProcessor, CliArgsParser, CliBackgroundServiceRegistry_TOKEN, CliBoot, CliCalCommandProcessor, CliCaptureCommandProcessor, CliClearCommandProcessor, CliClipboard, CliClipboardCommandProcessor, CliColorCommandProcessor, CliCommandExecutionContext, CliCommandExecutor, CliCommandHistory, CliCommandHistory_TOKEN, CliCommandProcessorRegistry, CliConfigureCommandProcessor, CliConvertCommandProcessor, CliDebugCommandProcessor, CliDefaultPingServerService, CliDiffCommandProcessor, CliDragDropService, CliEchoCommandProcessor, CliEngine, type CliEngineOptions, CliEnvCommandProcessor, CliEnvironment, CliEvalCommandProcessor, CliExecutionContext, type CliExecutionContextDeps, CliExecutionProcess, CliExportCommandProcessor, CliFeedbackCommandProcessor, CliFontSizeCommandProcessor, CliHelpCommandProcessor, CliHistoryCommandProcessor, CliHotKeysCommandProcessor, CliHtopCommandProcessor, CliInputReader, CliJsonCommandProcessor, CliKeyValueStore, CliKillCommandProcessor, CliLogger, CliLoremCommandProcessor, CliModuleRegistry_TOKEN, CliNanoCommandProcessor, CliOpenCommandProcessor, CliPackageManagerService, CliPackageManagerService_TOKEN, CliPackagesCommandProcessor, CliPingCommandProcessor, CliProcessRegistry, CliProcessRegistry_TOKEN, CliProcessorsRegistry_TOKEN, CliPsCommandProcessor, CliRandomCommandProcessor, CliScreenCommandProcessor, CliSeqCommandProcessor, CliServerCommandProcessor, CliServerConnection, CliServerManager, CliServerManager_TOKEN, CliServerMultiProxyProcessor, CliServerProxyProcessor, CliServiceContainer, CliServicesCommandProcessor, CliSleepCommandProcessor, CliSnippetCommandProcessor, CliSshCommandProcessor, CliStateStore, CliStateStoreManager, CliStateStoreManager_TOKEN, CliTerminalProgressBar, CliTerminalSpinner, CliTerminalTextAnimator, CliTerminalWriter, CliTestHarness, type CliTestResult, CliThemeCommandProcessor, CliTimeCommandProcessor, CliTimestampCommandProcessor, CliUnAliasCommandProcessor, CliUnameCommandProcessor, CliUnsetCommandProcessor, CliUptimeCommandProcessor, CliVersionCommandProcessor, type CliWelcomeMessageConfig, CliYesCommandProcessor, CommandParser, type CommandParserOutput, type CommandPart, type ConfigureState, type DefaultServerProvider, type DiffLine, type DiffType, type ICliEnvironment, ICliEnvironment_TOKEN, type ICliExecutionHost, ICliPingServerService_TOKEN, type ICliStateStoreManager, type ICliWasmAccelerator, JsFallbackAccelerator, LIBRARY_VERSION, type MultiProxyEntry, OverlayAddon, type ParsedArg, type ParsedToken, ProcessExitedError, ScriptLoaderService, type ThemeState, builtinProcessors, computeDiff, contextGlobalParameter, createServerModule, executeOnServer, formatDiff, getAccelerator, getCliNameArt, getGreetingBasedOnTime, groupBy, helpGlobalParameter, hotkeysInfo, initWasmAccelerator, isWasmAccelerated, miscProcessors, openLink, reconcileArgs, renderServerResponse, systemProcessors, themeInfos, themes, versionGlobalParameter, welcomeModule };
|