@qodalis/cli 2.0.0-beta.11 → 2.0.0-beta.13

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/public-api.d.mts CHANGED
@@ -1,7 +1,8 @@
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, ICliCompletionProvider, ICliFilePickerProvider, CliFullScreenOptions, ICliProcessRegistry, ICliBackgroundService, ICliServiceContext, ICliBackgroundServiceInfo, ICliServiceLogEntry, CliServiceEventHandler, ICliGlobalParameterHandler, CliForegroundColor, CliBackgroundColor, CliProvider, CliTableOptions, CliLogLevel, CliPercentageProgressBarUpdateValueOptions, CliTextAnimatorOptions, ICliModule, CliModuleRegistry, Package, ICliPingServerService, CliLineOptions, CliSelectOption, CliSelectOptions, CliMultiSelectOption, CliMultiSelectOptions, CliNumberOptions, CliDateOptions, CliFilePickerOptions, CliFileResult, ICliProcessRegisterOptions, ICliProcessEntry, ICliDragDropService, CliState, CliEngineSnapshot, CliServerConfig, CliServerCommandDescriptor, CliServerCapabilities, CliServerResponse, CliServerOutput, CliIcon } 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, ICliHttpClient, ICliNotifier, ICliManagedInterval, ICliManagedTimer, ICliKeyValueStore, ICliCompletionProvider, ICliFilePickerProvider, CliFullScreenOptions, ICliProcessRegistry, ICliBackgroundService, ICliServiceContext, ICliBackgroundServiceInfo, ICliServiceLogEntry, CliServiceEventHandler, ICliGlobalParameterHandler, CliForegroundColor, CliBackgroundColor, CliProvider, CliTableOptions, CliLogLevel, CliPercentageProgressBarUpdateValueOptions, CliTextAnimatorOptions, ICliModule, CliModuleRegistry, Package, ICliPingServerService, CliLineOptions, CliSelectOption, CliSelectOptions, CliMultiSelectOption, CliMultiSelectOptions, CliNumberOptions, CliDateOptions, CliFilePickerOptions, CliFileResult, ICliProcessRegisterOptions, ICliProcessEntry, ICliDragDropService, CliHttpRequestOptions, CliNotification, CliState, CliEngineSnapshot, CliServerConfig, ICliServerAuthService, CliServerCommandDescriptor, CliServerCapabilities, CliServerResponse, CliServerOutput, 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
+ import * as rxjs from 'rxjs';
5
6
  import { Subject, Observable, Subscription } from 'rxjs';
6
7
  import { FitAddon } from '@xterm/addon-fit';
7
8
  import { SerializeAddon } from '@xterm/addon-serialize';
@@ -141,8 +142,18 @@ declare const CliBackgroundServiceRegistry_TOKEN = "cli-background-service-regis
141
142
  * Used as a key in the service provider to retrieve the package manager.
142
143
  */
143
144
  declare const CliPackageManagerService_TOKEN = "cli-package-manager-service";
145
+ /**
146
+ * Framework-agnostic token for the CLI key-value store.
147
+ * Used as a key in the service provider to retrieve the persistent storage.
148
+ */
149
+ declare const CliKeyValueStore_TOKEN = "cli-key-value-store";
150
+ /**
151
+ * Framework-agnostic token for the syntax highlighter registry.
152
+ * Used as a key in the service provider to retrieve the syntax highlighter registry.
153
+ */
154
+ declare const SyntaxHighlighterRegistry_TOKEN = "syntax-highlighter-registry";
144
155
 
145
- declare const LIBRARY_VERSION = "2.0.0-beta.11";
156
+ declare const LIBRARY_VERSION = "2.0.0-beta.13";
146
157
  declare const API_VERSION = 2;
147
158
 
148
159
  declare class CliAliasCommandProcessor implements ICliCommandProcessor {
@@ -910,6 +921,8 @@ declare class CliCommandExecutionContext implements ICliExecutionContext {
910
921
  translator: ICliTranslationService;
911
922
  reader: ICliInputReader;
912
923
  readonly backgroundServices: ICliBackgroundServiceRegistry;
924
+ http: ICliHttpClient;
925
+ notifier: ICliNotifier;
913
926
  get promptLength(): number;
914
927
  set promptLength(value: number);
915
928
  get currentLine(): string;
@@ -928,6 +941,7 @@ declare class CliCommandExecutionContext implements ICliExecutionContext {
928
941
  exitFullScreenMode: () => void;
929
942
  createInterval: (callback: () => void, ms: number) => ICliManagedInterval;
930
943
  createTimeout: (callback: () => void, ms: number) => ICliManagedTimer;
944
+ submitCommand: (command: string) => Promise<void>;
931
945
  constructor(context: ICliExecutionContext, processor: ICliCommandProcessor);
932
946
  }
933
947
 
@@ -1189,10 +1203,25 @@ declare class CliExecutionContext implements ICliExecutionContext, InputModeHost
1189
1203
  readonly services: ICliServiceProvider;
1190
1204
  readonly translator: ICliTranslationService;
1191
1205
  readonly backgroundServices: ICliBackgroundServiceRegistry;
1206
+ http: ICliHttpClient;
1207
+ readonly notifier: ICliNotifier;
1192
1208
  promptPathProvider?: () => string | null;
1193
1209
  readonly completionEngine: CliCompletionEngine;
1194
1210
  promptLength: number;
1195
1211
  readonly reader: ICliInputReader;
1212
+ /**
1213
+ * Result of the most recently executed command.
1214
+ * Updated by the command executor after each command completes.
1215
+ */
1216
+ lastCommandResult?: {
1217
+ command: string;
1218
+ success: boolean;
1219
+ };
1220
+ /**
1221
+ * Whether a command is currently being executed.
1222
+ * Set by the command executor at start/end of executeCommand().
1223
+ */
1224
+ isExecuting: boolean;
1196
1225
  readonly lineBuffer: CliLineBuffer;
1197
1226
  readonly lineRenderer: CliTerminalLineRenderer;
1198
1227
  readonly commandHistory: CliCommandHistory;
@@ -1218,6 +1247,12 @@ declare class CliExecutionContext implements ICliExecutionContext, InputModeHost
1218
1247
  newLine?: boolean;
1219
1248
  keepCurrentLine?: boolean;
1220
1249
  }): void;
1250
+ /**
1251
+ * Submit and execute a command — shared by interactive Enter key
1252
+ * and programmatic engine.execute(). Adds to history, runs the
1253
+ * command, and shows a new prompt afterwards.
1254
+ */
1255
+ submitCommand(command: string): Promise<void>;
1221
1256
  clearCurrentLine(): void;
1222
1257
  refreshCurrentLine(previousContentLength?: number): void;
1223
1258
  /**
@@ -1349,6 +1384,11 @@ declare class CliTimerManager {
1349
1384
  interface ICliExecutionHost extends ICliExecutionContext {
1350
1385
  contextProcessor?: ICliCommandProcessor;
1351
1386
  abort?(): void;
1387
+ lastCommandResult?: {
1388
+ command: string;
1389
+ success: boolean;
1390
+ };
1391
+ isExecuting?: boolean;
1352
1392
  }
1353
1393
  declare class CliCommandExecutor implements ICliCommandExecutorService {
1354
1394
  protected readonly registry: ICliCommandProcessorRegistry;
@@ -1524,18 +1564,58 @@ declare function expandEnvironmentVars(command: string, context: ICliExecutionCo
1524
1564
  * and `get()` returns an array of resolved values.
1525
1565
  */
1526
1566
  declare class CliServiceContainer implements ICliServiceProvider {
1527
- /** Stores single-value providers (resolved or pending). */
1567
+ /** Stores single-value providers (resolved singletons). */
1528
1568
  private readonly services;
1529
1569
  /** Stores multi-provider arrays. */
1530
1570
  private readonly multiServices;
1571
+ /** Tokens that cannot be overwritten by subsequent `set()` calls. */
1572
+ private readonly sealedTokens;
1573
+ /** Stores provider recipes for transient tokens (re-resolved on every get). */
1574
+ private readonly transientRecipes;
1531
1575
  /**
1532
1576
  * Retrieve a service by its token.
1577
+ * Returns `undefined` when no provider is registered for the token.
1578
+ * For multi-provider tokens, returns the last registered value (use `getAll` for the full array).
1579
+ *
1580
+ * @param token The token used to register the service.
1581
+ * @returns The resolved service instance, or `undefined` if not registered.
1582
+ */
1583
+ get<T>(token: any): T | undefined;
1584
+ /**
1585
+ * Retrieve all registered services for a multi-provider token.
1586
+ * Returns an empty array when no provider is registered for the token.
1533
1587
  *
1534
1588
  * @param token The token used to register the service.
1535
- * @returns The resolved service instance (or array for multi providers).
1589
+ * @returns Array of all resolved service instances.
1590
+ */
1591
+ getAll<T>(token: any): T[];
1592
+ /**
1593
+ * Retrieve a service by its token, throwing if not registered.
1594
+ * Use this when the service is required and its absence is a programming error.
1595
+ * For multi-provider tokens, returns the last registered value (use `getAll` for the full array).
1596
+ *
1597
+ * @param token The token used to register the service.
1598
+ * @returns The resolved service instance.
1536
1599
  * @throws Error if the token has not been registered.
1537
1600
  */
1538
- get<T>(token: any): T;
1601
+ getRequired<T>(token: any): T;
1602
+ /**
1603
+ * Check whether a service is registered for the given token.
1604
+ */
1605
+ has(token: any): boolean;
1606
+ /**
1607
+ * Mark a token as sealed so it cannot be overwritten by future `set()` calls.
1608
+ * Only available on the concrete container — not exposed on `ICliServiceProvider`.
1609
+ */
1610
+ seal(token: any): void;
1611
+ /**
1612
+ * Mark multiple tokens as sealed at once.
1613
+ */
1614
+ sealAll(tokens: any[]): void;
1615
+ /**
1616
+ * Check whether a token is sealed.
1617
+ */
1618
+ isSealed(token: any): boolean;
1539
1619
  /**
1540
1620
  * Register one or more providers.
1541
1621
  *
@@ -1554,6 +1634,10 @@ declare class CliServiceContainer implements ICliServiceProvider {
1554
1634
  type: string;
1555
1635
  multi: boolean;
1556
1636
  }[];
1637
+ /**
1638
+ * Convert a token to a human-readable string for diagnostics/errors.
1639
+ */
1640
+ private tokenToString;
1557
1641
  /**
1558
1642
  * Describe a resolved value for diagnostic display.
1559
1643
  */
@@ -1564,6 +1648,9 @@ declare class CliServiceContainer implements ICliServiceProvider {
1564
1648
  private registerProvider;
1565
1649
  /**
1566
1650
  * Resolve a provider definition to a concrete value.
1651
+ *
1652
+ * Note: `deps` are resolved eagerly at registration time, so
1653
+ * dependency tokens must be registered before the provider that needs them.
1567
1654
  */
1568
1655
  private resolveProvider;
1569
1656
  }
@@ -1938,6 +2025,49 @@ declare class CliDragDropService implements ICliDragDropService {
1938
2025
  destroy(): void;
1939
2026
  }
1940
2027
 
2028
+ /**
2029
+ * Default HTTP client implementation.
2030
+ *
2031
+ * Wraps the global `fetch()` and automatically merges an abort signal
2032
+ * so that in-flight requests are cancelled when the user presses Ctrl+C.
2033
+ *
2034
+ * Created per-command by the executor — each instance is bound to the
2035
+ * command's own AbortSignal.
2036
+ */
2037
+ declare class CliHttpClient implements ICliHttpClient {
2038
+ private readonly signal?;
2039
+ constructor(signal?: AbortSignal | undefined);
2040
+ fetch(url: string, init?: RequestInit): Promise<Response>;
2041
+ get<T = any>(url: string, options?: CliHttpRequestOptions): Promise<T>;
2042
+ post<T = any>(url: string, body?: any, options?: CliHttpRequestOptions): Promise<T>;
2043
+ put<T = any>(url: string, body?: any, options?: CliHttpRequestOptions): Promise<T>;
2044
+ patch<T = any>(url: string, body?: any, options?: CliHttpRequestOptions): Promise<T>;
2045
+ delete<T = any>(url: string, options?: CliHttpRequestOptions): Promise<T>;
2046
+ head(url: string, options?: CliHttpRequestOptions): Promise<Response>;
2047
+ options<T = any>(url: string, options?: CliHttpRequestOptions): Promise<T>;
2048
+ private jsonRequest;
2049
+ private isRawBody;
2050
+ /**
2051
+ * Merge the command signal with any additional signals (caller, timeout).
2052
+ * Uses AbortSignal.any() when available, falls back to a manual composite
2053
+ * controller for older browsers (pre-Chrome 116 / Safari 17.4).
2054
+ */
2055
+ private mergeSignal;
2056
+ }
2057
+
2058
+ declare class CliNotifier implements ICliNotifier {
2059
+ private _current;
2060
+ private readonly _change$;
2061
+ readonly change$: rxjs.Observable<CliNotification | undefined>;
2062
+ get current(): CliNotification | undefined;
2063
+ info(message: string): void;
2064
+ success(message: string): void;
2065
+ warn(message: string): void;
2066
+ error(message: string): void;
2067
+ clear(): void;
2068
+ private set;
2069
+ }
2070
+
1941
2071
  declare class OverlayAddon implements ITerminalAddon {
1942
2072
  private terminal;
1943
2073
  private overlayNode;
@@ -2034,6 +2164,7 @@ declare class CliEngine {
2034
2164
  private resizeScheduled;
2035
2165
  private bootService?;
2036
2166
  private dragDropService?;
2167
+ private _startedAt?;
2037
2168
  constructor(container: HTMLElement, options?: CliEngineOptions | undefined);
2038
2169
  /**
2039
2170
  * Register a CLI module to be loaded on start().
@@ -2084,7 +2215,13 @@ declare class CliEngine {
2084
2215
  */
2085
2216
  getRegistry(): CliCommandProcessorRegistry;
2086
2217
  /**
2087
- * Execute a command programmatically.
2218
+ * Timestamp (ms since epoch) when the engine finished starting.
2219
+ */
2220
+ get startedAt(): number | undefined;
2221
+ /**
2222
+ * Execute a command programmatically, behaving the same as if the user
2223
+ * typed it and pressed Enter: echoes the command, adds it to history,
2224
+ * executes it, and shows a new prompt afterwards.
2088
2225
  */
2089
2226
  execute(command: string): Promise<void>;
2090
2227
  /**
@@ -2178,6 +2315,7 @@ declare class CliServerConnection {
2178
2315
  private readonly _config;
2179
2316
  private readonly _backgroundServices?;
2180
2317
  private readonly _logger?;
2318
+ private readonly _authService?;
2181
2319
  private _connected;
2182
2320
  private _commands;
2183
2321
  private _capabilities;
@@ -2194,12 +2332,18 @@ declare class CliServerConnection {
2194
2332
  private static readonly HEALTH_CHECK_MAX_ATTEMPTS;
2195
2333
  onDisconnect?: () => void;
2196
2334
  onReconnected?: () => void;
2197
- constructor(_config: CliServerConfig, _backgroundServices?: ICliBackgroundServiceRegistry | undefined, _logger?: ICliLogger | undefined);
2335
+ constructor(_config: CliServerConfig, _backgroundServices?: ICliBackgroundServiceRegistry | undefined, _logger?: ICliLogger | undefined, _authService?: ICliServerAuthService | undefined);
2198
2336
  get config(): CliServerConfig;
2199
2337
  get connected(): boolean;
2200
2338
  get commands(): CliServerCommandDescriptor[];
2201
2339
  get capabilities(): CliServerCapabilities | null;
2202
2340
  get apiVersion(): number;
2341
+ /**
2342
+ * Resolve auth headers for this server connection.
2343
+ * Uses the auth service (which merges config headers with registered
2344
+ * ICliServerAuthTokenProviders), or falls back to config headers directly.
2345
+ */
2346
+ resolveAuthHeaders(): Record<string, string>;
2203
2347
  connect(): Promise<void>;
2204
2348
  disconnect(): void;
2205
2349
  startHealthCheck(): void;
@@ -2285,12 +2429,13 @@ declare class CliServerMultiProxyProcessor implements ICliCommandProcessor {
2285
2429
  declare const CliServerManager_TOKEN = "cli-server-manager";
2286
2430
  declare class CliServerManager implements DefaultServerProvider {
2287
2431
  private readonly registry;
2432
+ private readonly authService?;
2288
2433
  readonly connections: Map<string, CliServerConnection>;
2289
2434
  private _logger?;
2290
2435
  private _cliLogger?;
2291
2436
  private _defaultServer;
2292
2437
  private _backgroundServices?;
2293
- constructor(registry: ICliCommandProcessorRegistry);
2438
+ constructor(registry: ICliCommandProcessorRegistry, authService?: ICliServerAuthService | undefined);
2294
2439
  get defaultServer(): string | null;
2295
2440
  setDefaultServer(name: string | null): void;
2296
2441
  connectAll(servers: CliServerConfig[], logger?: {
@@ -2487,4 +2632,4 @@ declare function getAccelerator(): ICliWasmAccelerator;
2487
2632
  */
2488
2633
  declare function isWasmAccelerated(): boolean;
2489
2634
 
2490
- 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, CliFullScreenManager, 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, CliTimerManager, 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, type InitializeServicesOptions, type InitializeServicesResult, JsFallbackAccelerator, LIBRARY_VERSION, type MultiProxyEntry, OverlayAddon, type ParsedArg, type ParsedToken, ProcessExitedError, ScriptLoaderService, type TerminalSetupResult, type ThemeState, appendOutputToFile, appendStderrToFile, builtinProcessors, computeDiff, contextGlobalParameter, createServerModule, executeOnServer, expandEnvironmentVars, formatDiff, getAccelerator, getCliNameArt, getGreetingBasedOnTime, getTerminalOptions, groupBy, helpGlobalParameter, hotkeysInfo, initWasmAccelerator, initializeServices, initializeTerminal, isWasmAccelerated, miscProcessors, openLink, reconcileArgs, renderServerResponse, renderSingleOutput, substituteVars, systemProcessors, themeInfos, themes, tryExecuteScript, versionGlobalParameter, waitForLayout, welcomeModule, writeOutputToFile, writeStderrToFile };
2635
+ 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, CliFullScreenManager, CliHelpCommandProcessor, CliHistoryCommandProcessor, CliHotKeysCommandProcessor, CliHtopCommandProcessor, CliHttpClient, CliInputReader, CliJsonCommandProcessor, CliKeyValueStore, CliKeyValueStore_TOKEN, CliKillCommandProcessor, CliLogger, CliLoremCommandProcessor, CliModuleRegistry_TOKEN, CliNanoCommandProcessor, CliNotifier, 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, CliTimerManager, 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, type InitializeServicesOptions, type InitializeServicesResult, JsFallbackAccelerator, LIBRARY_VERSION, type MultiProxyEntry, OverlayAddon, type ParsedArg, type ParsedToken, ProcessExitedError, ScriptLoaderService, SyntaxHighlighterRegistry_TOKEN, type TerminalSetupResult, type ThemeState, appendOutputToFile, appendStderrToFile, builtinProcessors, computeDiff, contextGlobalParameter, createServerModule, executeOnServer, expandEnvironmentVars, formatDiff, getAccelerator, getCliNameArt, getGreetingBasedOnTime, getTerminalOptions, groupBy, helpGlobalParameter, hotkeysInfo, initWasmAccelerator, initializeServices, initializeTerminal, isWasmAccelerated, miscProcessors, openLink, reconcileArgs, renderServerResponse, renderSingleOutput, substituteVars, systemProcessors, themeInfos, themes, tryExecuteScript, versionGlobalParameter, waitForLayout, welcomeModule, writeOutputToFile, writeStderrToFile };
package/public-api.d.ts CHANGED
@@ -1,7 +1,8 @@
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, ICliCompletionProvider, ICliFilePickerProvider, CliFullScreenOptions, ICliProcessRegistry, ICliBackgroundService, ICliServiceContext, ICliBackgroundServiceInfo, ICliServiceLogEntry, CliServiceEventHandler, ICliGlobalParameterHandler, CliForegroundColor, CliBackgroundColor, CliProvider, CliTableOptions, CliLogLevel, CliPercentageProgressBarUpdateValueOptions, CliTextAnimatorOptions, ICliModule, CliModuleRegistry, Package, ICliPingServerService, CliLineOptions, CliSelectOption, CliSelectOptions, CliMultiSelectOption, CliMultiSelectOptions, CliNumberOptions, CliDateOptions, CliFilePickerOptions, CliFileResult, ICliProcessRegisterOptions, ICliProcessEntry, ICliDragDropService, CliState, CliEngineSnapshot, CliServerConfig, CliServerCommandDescriptor, CliServerCapabilities, CliServerResponse, CliServerOutput, CliIcon } 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, ICliHttpClient, ICliNotifier, ICliManagedInterval, ICliManagedTimer, ICliKeyValueStore, ICliCompletionProvider, ICliFilePickerProvider, CliFullScreenOptions, ICliProcessRegistry, ICliBackgroundService, ICliServiceContext, ICliBackgroundServiceInfo, ICliServiceLogEntry, CliServiceEventHandler, ICliGlobalParameterHandler, CliForegroundColor, CliBackgroundColor, CliProvider, CliTableOptions, CliLogLevel, CliPercentageProgressBarUpdateValueOptions, CliTextAnimatorOptions, ICliModule, CliModuleRegistry, Package, ICliPingServerService, CliLineOptions, CliSelectOption, CliSelectOptions, CliMultiSelectOption, CliMultiSelectOptions, CliNumberOptions, CliDateOptions, CliFilePickerOptions, CliFileResult, ICliProcessRegisterOptions, ICliProcessEntry, ICliDragDropService, CliHttpRequestOptions, CliNotification, CliState, CliEngineSnapshot, CliServerConfig, ICliServerAuthService, CliServerCommandDescriptor, CliServerCapabilities, CliServerResponse, CliServerOutput, 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
+ import * as rxjs from 'rxjs';
5
6
  import { Subject, Observable, Subscription } from 'rxjs';
6
7
  import { FitAddon } from '@xterm/addon-fit';
7
8
  import { SerializeAddon } from '@xterm/addon-serialize';
@@ -141,8 +142,18 @@ declare const CliBackgroundServiceRegistry_TOKEN = "cli-background-service-regis
141
142
  * Used as a key in the service provider to retrieve the package manager.
142
143
  */
143
144
  declare const CliPackageManagerService_TOKEN = "cli-package-manager-service";
145
+ /**
146
+ * Framework-agnostic token for the CLI key-value store.
147
+ * Used as a key in the service provider to retrieve the persistent storage.
148
+ */
149
+ declare const CliKeyValueStore_TOKEN = "cli-key-value-store";
150
+ /**
151
+ * Framework-agnostic token for the syntax highlighter registry.
152
+ * Used as a key in the service provider to retrieve the syntax highlighter registry.
153
+ */
154
+ declare const SyntaxHighlighterRegistry_TOKEN = "syntax-highlighter-registry";
144
155
 
145
- declare const LIBRARY_VERSION = "2.0.0-beta.11";
156
+ declare const LIBRARY_VERSION = "2.0.0-beta.13";
146
157
  declare const API_VERSION = 2;
147
158
 
148
159
  declare class CliAliasCommandProcessor implements ICliCommandProcessor {
@@ -910,6 +921,8 @@ declare class CliCommandExecutionContext implements ICliExecutionContext {
910
921
  translator: ICliTranslationService;
911
922
  reader: ICliInputReader;
912
923
  readonly backgroundServices: ICliBackgroundServiceRegistry;
924
+ http: ICliHttpClient;
925
+ notifier: ICliNotifier;
913
926
  get promptLength(): number;
914
927
  set promptLength(value: number);
915
928
  get currentLine(): string;
@@ -928,6 +941,7 @@ declare class CliCommandExecutionContext implements ICliExecutionContext {
928
941
  exitFullScreenMode: () => void;
929
942
  createInterval: (callback: () => void, ms: number) => ICliManagedInterval;
930
943
  createTimeout: (callback: () => void, ms: number) => ICliManagedTimer;
944
+ submitCommand: (command: string) => Promise<void>;
931
945
  constructor(context: ICliExecutionContext, processor: ICliCommandProcessor);
932
946
  }
933
947
 
@@ -1189,10 +1203,25 @@ declare class CliExecutionContext implements ICliExecutionContext, InputModeHost
1189
1203
  readonly services: ICliServiceProvider;
1190
1204
  readonly translator: ICliTranslationService;
1191
1205
  readonly backgroundServices: ICliBackgroundServiceRegistry;
1206
+ http: ICliHttpClient;
1207
+ readonly notifier: ICliNotifier;
1192
1208
  promptPathProvider?: () => string | null;
1193
1209
  readonly completionEngine: CliCompletionEngine;
1194
1210
  promptLength: number;
1195
1211
  readonly reader: ICliInputReader;
1212
+ /**
1213
+ * Result of the most recently executed command.
1214
+ * Updated by the command executor after each command completes.
1215
+ */
1216
+ lastCommandResult?: {
1217
+ command: string;
1218
+ success: boolean;
1219
+ };
1220
+ /**
1221
+ * Whether a command is currently being executed.
1222
+ * Set by the command executor at start/end of executeCommand().
1223
+ */
1224
+ isExecuting: boolean;
1196
1225
  readonly lineBuffer: CliLineBuffer;
1197
1226
  readonly lineRenderer: CliTerminalLineRenderer;
1198
1227
  readonly commandHistory: CliCommandHistory;
@@ -1218,6 +1247,12 @@ declare class CliExecutionContext implements ICliExecutionContext, InputModeHost
1218
1247
  newLine?: boolean;
1219
1248
  keepCurrentLine?: boolean;
1220
1249
  }): void;
1250
+ /**
1251
+ * Submit and execute a command — shared by interactive Enter key
1252
+ * and programmatic engine.execute(). Adds to history, runs the
1253
+ * command, and shows a new prompt afterwards.
1254
+ */
1255
+ submitCommand(command: string): Promise<void>;
1221
1256
  clearCurrentLine(): void;
1222
1257
  refreshCurrentLine(previousContentLength?: number): void;
1223
1258
  /**
@@ -1349,6 +1384,11 @@ declare class CliTimerManager {
1349
1384
  interface ICliExecutionHost extends ICliExecutionContext {
1350
1385
  contextProcessor?: ICliCommandProcessor;
1351
1386
  abort?(): void;
1387
+ lastCommandResult?: {
1388
+ command: string;
1389
+ success: boolean;
1390
+ };
1391
+ isExecuting?: boolean;
1352
1392
  }
1353
1393
  declare class CliCommandExecutor implements ICliCommandExecutorService {
1354
1394
  protected readonly registry: ICliCommandProcessorRegistry;
@@ -1524,18 +1564,58 @@ declare function expandEnvironmentVars(command: string, context: ICliExecutionCo
1524
1564
  * and `get()` returns an array of resolved values.
1525
1565
  */
1526
1566
  declare class CliServiceContainer implements ICliServiceProvider {
1527
- /** Stores single-value providers (resolved or pending). */
1567
+ /** Stores single-value providers (resolved singletons). */
1528
1568
  private readonly services;
1529
1569
  /** Stores multi-provider arrays. */
1530
1570
  private readonly multiServices;
1571
+ /** Tokens that cannot be overwritten by subsequent `set()` calls. */
1572
+ private readonly sealedTokens;
1573
+ /** Stores provider recipes for transient tokens (re-resolved on every get). */
1574
+ private readonly transientRecipes;
1531
1575
  /**
1532
1576
  * Retrieve a service by its token.
1577
+ * Returns `undefined` when no provider is registered for the token.
1578
+ * For multi-provider tokens, returns the last registered value (use `getAll` for the full array).
1579
+ *
1580
+ * @param token The token used to register the service.
1581
+ * @returns The resolved service instance, or `undefined` if not registered.
1582
+ */
1583
+ get<T>(token: any): T | undefined;
1584
+ /**
1585
+ * Retrieve all registered services for a multi-provider token.
1586
+ * Returns an empty array when no provider is registered for the token.
1533
1587
  *
1534
1588
  * @param token The token used to register the service.
1535
- * @returns The resolved service instance (or array for multi providers).
1589
+ * @returns Array of all resolved service instances.
1590
+ */
1591
+ getAll<T>(token: any): T[];
1592
+ /**
1593
+ * Retrieve a service by its token, throwing if not registered.
1594
+ * Use this when the service is required and its absence is a programming error.
1595
+ * For multi-provider tokens, returns the last registered value (use `getAll` for the full array).
1596
+ *
1597
+ * @param token The token used to register the service.
1598
+ * @returns The resolved service instance.
1536
1599
  * @throws Error if the token has not been registered.
1537
1600
  */
1538
- get<T>(token: any): T;
1601
+ getRequired<T>(token: any): T;
1602
+ /**
1603
+ * Check whether a service is registered for the given token.
1604
+ */
1605
+ has(token: any): boolean;
1606
+ /**
1607
+ * Mark a token as sealed so it cannot be overwritten by future `set()` calls.
1608
+ * Only available on the concrete container — not exposed on `ICliServiceProvider`.
1609
+ */
1610
+ seal(token: any): void;
1611
+ /**
1612
+ * Mark multiple tokens as sealed at once.
1613
+ */
1614
+ sealAll(tokens: any[]): void;
1615
+ /**
1616
+ * Check whether a token is sealed.
1617
+ */
1618
+ isSealed(token: any): boolean;
1539
1619
  /**
1540
1620
  * Register one or more providers.
1541
1621
  *
@@ -1554,6 +1634,10 @@ declare class CliServiceContainer implements ICliServiceProvider {
1554
1634
  type: string;
1555
1635
  multi: boolean;
1556
1636
  }[];
1637
+ /**
1638
+ * Convert a token to a human-readable string for diagnostics/errors.
1639
+ */
1640
+ private tokenToString;
1557
1641
  /**
1558
1642
  * Describe a resolved value for diagnostic display.
1559
1643
  */
@@ -1564,6 +1648,9 @@ declare class CliServiceContainer implements ICliServiceProvider {
1564
1648
  private registerProvider;
1565
1649
  /**
1566
1650
  * Resolve a provider definition to a concrete value.
1651
+ *
1652
+ * Note: `deps` are resolved eagerly at registration time, so
1653
+ * dependency tokens must be registered before the provider that needs them.
1567
1654
  */
1568
1655
  private resolveProvider;
1569
1656
  }
@@ -1938,6 +2025,49 @@ declare class CliDragDropService implements ICliDragDropService {
1938
2025
  destroy(): void;
1939
2026
  }
1940
2027
 
2028
+ /**
2029
+ * Default HTTP client implementation.
2030
+ *
2031
+ * Wraps the global `fetch()` and automatically merges an abort signal
2032
+ * so that in-flight requests are cancelled when the user presses Ctrl+C.
2033
+ *
2034
+ * Created per-command by the executor — each instance is bound to the
2035
+ * command's own AbortSignal.
2036
+ */
2037
+ declare class CliHttpClient implements ICliHttpClient {
2038
+ private readonly signal?;
2039
+ constructor(signal?: AbortSignal | undefined);
2040
+ fetch(url: string, init?: RequestInit): Promise<Response>;
2041
+ get<T = any>(url: string, options?: CliHttpRequestOptions): Promise<T>;
2042
+ post<T = any>(url: string, body?: any, options?: CliHttpRequestOptions): Promise<T>;
2043
+ put<T = any>(url: string, body?: any, options?: CliHttpRequestOptions): Promise<T>;
2044
+ patch<T = any>(url: string, body?: any, options?: CliHttpRequestOptions): Promise<T>;
2045
+ delete<T = any>(url: string, options?: CliHttpRequestOptions): Promise<T>;
2046
+ head(url: string, options?: CliHttpRequestOptions): Promise<Response>;
2047
+ options<T = any>(url: string, options?: CliHttpRequestOptions): Promise<T>;
2048
+ private jsonRequest;
2049
+ private isRawBody;
2050
+ /**
2051
+ * Merge the command signal with any additional signals (caller, timeout).
2052
+ * Uses AbortSignal.any() when available, falls back to a manual composite
2053
+ * controller for older browsers (pre-Chrome 116 / Safari 17.4).
2054
+ */
2055
+ private mergeSignal;
2056
+ }
2057
+
2058
+ declare class CliNotifier implements ICliNotifier {
2059
+ private _current;
2060
+ private readonly _change$;
2061
+ readonly change$: rxjs.Observable<CliNotification | undefined>;
2062
+ get current(): CliNotification | undefined;
2063
+ info(message: string): void;
2064
+ success(message: string): void;
2065
+ warn(message: string): void;
2066
+ error(message: string): void;
2067
+ clear(): void;
2068
+ private set;
2069
+ }
2070
+
1941
2071
  declare class OverlayAddon implements ITerminalAddon {
1942
2072
  private terminal;
1943
2073
  private overlayNode;
@@ -2034,6 +2164,7 @@ declare class CliEngine {
2034
2164
  private resizeScheduled;
2035
2165
  private bootService?;
2036
2166
  private dragDropService?;
2167
+ private _startedAt?;
2037
2168
  constructor(container: HTMLElement, options?: CliEngineOptions | undefined);
2038
2169
  /**
2039
2170
  * Register a CLI module to be loaded on start().
@@ -2084,7 +2215,13 @@ declare class CliEngine {
2084
2215
  */
2085
2216
  getRegistry(): CliCommandProcessorRegistry;
2086
2217
  /**
2087
- * Execute a command programmatically.
2218
+ * Timestamp (ms since epoch) when the engine finished starting.
2219
+ */
2220
+ get startedAt(): number | undefined;
2221
+ /**
2222
+ * Execute a command programmatically, behaving the same as if the user
2223
+ * typed it and pressed Enter: echoes the command, adds it to history,
2224
+ * executes it, and shows a new prompt afterwards.
2088
2225
  */
2089
2226
  execute(command: string): Promise<void>;
2090
2227
  /**
@@ -2178,6 +2315,7 @@ declare class CliServerConnection {
2178
2315
  private readonly _config;
2179
2316
  private readonly _backgroundServices?;
2180
2317
  private readonly _logger?;
2318
+ private readonly _authService?;
2181
2319
  private _connected;
2182
2320
  private _commands;
2183
2321
  private _capabilities;
@@ -2194,12 +2332,18 @@ declare class CliServerConnection {
2194
2332
  private static readonly HEALTH_CHECK_MAX_ATTEMPTS;
2195
2333
  onDisconnect?: () => void;
2196
2334
  onReconnected?: () => void;
2197
- constructor(_config: CliServerConfig, _backgroundServices?: ICliBackgroundServiceRegistry | undefined, _logger?: ICliLogger | undefined);
2335
+ constructor(_config: CliServerConfig, _backgroundServices?: ICliBackgroundServiceRegistry | undefined, _logger?: ICliLogger | undefined, _authService?: ICliServerAuthService | undefined);
2198
2336
  get config(): CliServerConfig;
2199
2337
  get connected(): boolean;
2200
2338
  get commands(): CliServerCommandDescriptor[];
2201
2339
  get capabilities(): CliServerCapabilities | null;
2202
2340
  get apiVersion(): number;
2341
+ /**
2342
+ * Resolve auth headers for this server connection.
2343
+ * Uses the auth service (which merges config headers with registered
2344
+ * ICliServerAuthTokenProviders), or falls back to config headers directly.
2345
+ */
2346
+ resolveAuthHeaders(): Record<string, string>;
2203
2347
  connect(): Promise<void>;
2204
2348
  disconnect(): void;
2205
2349
  startHealthCheck(): void;
@@ -2285,12 +2429,13 @@ declare class CliServerMultiProxyProcessor implements ICliCommandProcessor {
2285
2429
  declare const CliServerManager_TOKEN = "cli-server-manager";
2286
2430
  declare class CliServerManager implements DefaultServerProvider {
2287
2431
  private readonly registry;
2432
+ private readonly authService?;
2288
2433
  readonly connections: Map<string, CliServerConnection>;
2289
2434
  private _logger?;
2290
2435
  private _cliLogger?;
2291
2436
  private _defaultServer;
2292
2437
  private _backgroundServices?;
2293
- constructor(registry: ICliCommandProcessorRegistry);
2438
+ constructor(registry: ICliCommandProcessorRegistry, authService?: ICliServerAuthService | undefined);
2294
2439
  get defaultServer(): string | null;
2295
2440
  setDefaultServer(name: string | null): void;
2296
2441
  connectAll(servers: CliServerConfig[], logger?: {
@@ -2487,4 +2632,4 @@ declare function getAccelerator(): ICliWasmAccelerator;
2487
2632
  */
2488
2633
  declare function isWasmAccelerated(): boolean;
2489
2634
 
2490
- 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, CliFullScreenManager, 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, CliTimerManager, 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, type InitializeServicesOptions, type InitializeServicesResult, JsFallbackAccelerator, LIBRARY_VERSION, type MultiProxyEntry, OverlayAddon, type ParsedArg, type ParsedToken, ProcessExitedError, ScriptLoaderService, type TerminalSetupResult, type ThemeState, appendOutputToFile, appendStderrToFile, builtinProcessors, computeDiff, contextGlobalParameter, createServerModule, executeOnServer, expandEnvironmentVars, formatDiff, getAccelerator, getCliNameArt, getGreetingBasedOnTime, getTerminalOptions, groupBy, helpGlobalParameter, hotkeysInfo, initWasmAccelerator, initializeServices, initializeTerminal, isWasmAccelerated, miscProcessors, openLink, reconcileArgs, renderServerResponse, renderSingleOutput, substituteVars, systemProcessors, themeInfos, themes, tryExecuteScript, versionGlobalParameter, waitForLayout, welcomeModule, writeOutputToFile, writeStderrToFile };
2635
+ 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, CliFullScreenManager, CliHelpCommandProcessor, CliHistoryCommandProcessor, CliHotKeysCommandProcessor, CliHtopCommandProcessor, CliHttpClient, CliInputReader, CliJsonCommandProcessor, CliKeyValueStore, CliKeyValueStore_TOKEN, CliKillCommandProcessor, CliLogger, CliLoremCommandProcessor, CliModuleRegistry_TOKEN, CliNanoCommandProcessor, CliNotifier, 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, CliTimerManager, 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, type InitializeServicesOptions, type InitializeServicesResult, JsFallbackAccelerator, LIBRARY_VERSION, type MultiProxyEntry, OverlayAddon, type ParsedArg, type ParsedToken, ProcessExitedError, ScriptLoaderService, SyntaxHighlighterRegistry_TOKEN, type TerminalSetupResult, type ThemeState, appendOutputToFile, appendStderrToFile, builtinProcessors, computeDiff, contextGlobalParameter, createServerModule, executeOnServer, expandEnvironmentVars, formatDiff, getAccelerator, getCliNameArt, getGreetingBasedOnTime, getTerminalOptions, groupBy, helpGlobalParameter, hotkeysInfo, initWasmAccelerator, initializeServices, initializeTerminal, isWasmAccelerated, miscProcessors, openLink, reconcileArgs, renderServerResponse, renderSingleOutput, substituteVars, systemProcessors, themeInfos, themes, tryExecuteScript, versionGlobalParameter, waitForLayout, welcomeModule, writeOutputToFile, writeStderrToFile };