@qodalis/cli-core 2.0.0-beta.19 → 2.0.0-beta.20

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/README.md CHANGED
@@ -136,7 +136,7 @@ const options = {
136
136
  | `help` | `man` | Show all commands or help for a specific command |
137
137
  | `version` | `ver` | Display CLI version and documentation link |
138
138
  | `hotkeys` | `shortcuts`, `keys` | Show keyboard shortcuts |
139
- | `history` | `hist` | Browse and clear command history |
139
+ | `history` | `hist` | Browse and clear your command history (per user with the users plugin) |
140
140
  | `theme` | `themes` | Apply, customize, and save terminal themes (interactive selection with live preview) |
141
141
  | `feedback` | `support` | Report bugs or request features on GitHub |
142
142
  | `pkg` | `packages` | Install, update, remove, and browse packages |
@@ -796,8 +796,8 @@ await engine.start();
796
796
  - **Multi-framework** — Angular, React, Vue, or vanilla JS
797
797
  - **38 official plugins** — 24 utility, 6 games, 10 language packs
798
798
  - **Command chaining** with `&&`, `||`, `|`, and `>>` operators
799
- - **Command history** with arrow key navigation
800
- - **Tab-like completions** and keyboard shortcuts (`Ctrl+C`, `Ctrl+L`, `Escape`)
799
+ - **Command history** with arrow key navigation, per user when the users plugin is used (like `~/.bash_history`)
800
+ - **Tab-like completions** and readline keyboard shortcuts (`Ctrl+C`, `Ctrl+L`, `Escape`, `Ctrl+A/E`, `Ctrl+U/K/W/Y`, Home/End; `hotkeys` lists them)
801
801
  - **29 built-in themes** with custom color support
802
802
  - **Tabs & split panes** — multiple terminals in tabs with horizontal splitting
803
803
  - **User sessions** with multi-user support
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qodalis/cli-core",
3
- "version": "2.0.0-beta.19",
3
+ "version": "2.0.0-beta.20",
4
4
  "description": "Core interfaces, types, and utilities for the @qodalis CLI ecosystem.",
5
5
  "author": "Nicolae Lupei, Qodalis Solutions",
6
6
  "license": "MIT",
package/public-api.d.mts CHANGED
@@ -1111,12 +1111,17 @@ interface ICliAuthService {
1111
1111
  * only when the implementation allows passwordless sign-in.
1112
1112
  */
1113
1113
  login(username: string, password?: string): Promise<ICliUserSession>;
1114
- /** Ends the current session (the CLI is left signed out) */
1114
+ /**
1115
+ * Ends the current session. After `switchUser` the session it suspended is
1116
+ * resumed (Unix `exit` after `su`); otherwise the CLI is left signed out.
1117
+ */
1115
1118
  logout(): Promise<void>;
1116
1119
  /**
1117
1120
  * Switch to another user (`su`). Requires the target's password unless
1118
1121
  * the caller may skip it (implementation-defined, e.g. `users:update`).
1119
1122
  * Goes through the same lockout, events and audit as `login`.
1123
+ * Implementations may suspend the current session instead of ending it,
1124
+ * so that `logout` returns to it (like nested Unix shells).
1120
1125
  */
1121
1126
  switchUser?(username: string, password?: string): Promise<ICliUserSession>;
1122
1127
  /**
@@ -4044,7 +4049,7 @@ interface CliThemeInfo {
4044
4049
 
4045
4050
  declare const DefaultThemeInfos: Record<string, CliThemeInfo>;
4046
4051
 
4047
- declare const LIBRARY_VERSION = "2.0.0-beta.19";
4052
+ declare const LIBRARY_VERSION = "2.0.0-beta.20";
4048
4053
  declare const API_VERSION = 2;
4049
4054
 
4050
4055
  /**
package/public-api.d.ts CHANGED
@@ -1111,12 +1111,17 @@ interface ICliAuthService {
1111
1111
  * only when the implementation allows passwordless sign-in.
1112
1112
  */
1113
1113
  login(username: string, password?: string): Promise<ICliUserSession>;
1114
- /** Ends the current session (the CLI is left signed out) */
1114
+ /**
1115
+ * Ends the current session. After `switchUser` the session it suspended is
1116
+ * resumed (Unix `exit` after `su`); otherwise the CLI is left signed out.
1117
+ */
1115
1118
  logout(): Promise<void>;
1116
1119
  /**
1117
1120
  * Switch to another user (`su`). Requires the target's password unless
1118
1121
  * the caller may skip it (implementation-defined, e.g. `users:update`).
1119
1122
  * Goes through the same lockout, events and audit as `login`.
1123
+ * Implementations may suspend the current session instead of ending it,
1124
+ * so that `logout` returns to it (like nested Unix shells).
1120
1125
  */
1121
1126
  switchUser?(username: string, password?: string): Promise<ICliUserSession>;
1122
1127
  /**
@@ -4044,7 +4049,7 @@ interface CliThemeInfo {
4044
4049
 
4045
4050
  declare const DefaultThemeInfos: Record<string, CliThemeInfo>;
4046
4051
 
4047
- declare const LIBRARY_VERSION = "2.0.0-beta.19";
4052
+ declare const LIBRARY_VERSION = "2.0.0-beta.20";
4048
4053
  declare const API_VERSION = 2;
4049
4054
 
4050
4055
  /**
package/public-api.js CHANGED
@@ -2580,7 +2580,7 @@ function satisfiesVersionRange(installed, range) {
2580
2580
  }
2581
2581
 
2582
2582
  // src/lib/version.ts
2583
- var LIBRARY_VERSION = "2.0.0-beta.19";
2583
+ var LIBRARY_VERSION = "2.0.0-beta.20";
2584
2584
  var API_VERSION = 2;
2585
2585
 
2586
2586
  // src/lib/utils/server-version-negotiator.ts