@terminai/core 0.26.0 → 0.50.0

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.
Files changed (97) hide show
  1. package/LICENSE +247 -0
  2. package/README.md +422 -0
  3. package/dist/docs/CONTRIBUTING.md +8 -8
  4. package/dist/docs/changelogs/index.md +5 -5
  5. package/dist/docs/cli/commands.md +43 -17
  6. package/dist/docs/cli/quick-reference.md +61 -0
  7. package/dist/docs/cli/telemetry.md +3 -792
  8. package/dist/docs/extensions/index.md +1 -1
  9. package/dist/docs/get-started/configuration.md +6 -2
  10. package/dist/docs/index.md +17 -17
  11. package/dist/docs/{termai-comparison.md → terminai-comparison.md} +18 -18
  12. package/dist/docs/{termai-examples.md → terminai-examples.md} +2 -2
  13. package/dist/docs/{termai-operator-recipes.md → terminai-operator-recipes.md} +1 -1
  14. package/dist/docs/{termai-process-manager.md → terminai-process-manager.md} +7 -7
  15. package/dist/docs/{termai-quickstart.md → terminai-quickstart.md} +10 -10
  16. package/dist/docs/{termai-system.md → terminai-system.md} +2 -2
  17. package/dist/index.d.ts +0 -1
  18. package/dist/index.js +0 -1
  19. package/dist/index.js.map +1 -1
  20. package/dist/src/auth/wizardSettings.js +3 -0
  21. package/dist/src/auth/wizardSettings.js.map +1 -1
  22. package/dist/src/auth/wizardSettings.test.js +3 -0
  23. package/dist/src/auth/wizardSettings.test.js.map +1 -1
  24. package/dist/src/brain/__tests__/advisors.test.js +25 -6
  25. package/dist/src/brain/__tests__/advisors.test.js.map +1 -1
  26. package/dist/src/brain/__tests__/cognitiveArchitecture.test.js +24 -0
  27. package/dist/src/brain/__tests__/cognitiveArchitecture.test.js.map +1 -1
  28. package/dist/src/brain/__tests__/thinkingOrchestrator.test.js +29 -5
  29. package/dist/src/brain/__tests__/thinkingOrchestrator.test.js.map +1 -1
  30. package/dist/src/config/builder.js +4 -1
  31. package/dist/src/config/builder.js.map +1 -1
  32. package/dist/src/config/settings/loader.d.ts +1 -0
  33. package/dist/src/config/settings/loader.js +10 -0
  34. package/dist/src/config/settings/loader.js.map +1 -1
  35. package/dist/src/config/settings/schema.d.ts +2 -5
  36. package/dist/src/config/settings/schema.js +2 -3
  37. package/dist/src/config/settings/schema.js.map +1 -1
  38. package/dist/src/core/client.test.js +0 -2
  39. package/dist/src/core/client.test.js.map +1 -1
  40. package/dist/src/core/coreToolScheduler.test.js +1 -1
  41. package/dist/src/core/coreToolScheduler.test.js.map +1 -1
  42. package/dist/src/generated/git-commit.d.ts +2 -2
  43. package/dist/src/generated/git-commit.js +2 -2
  44. package/dist/src/generated/git-commit.js.map +1 -1
  45. package/dist/src/mcp/token-storage/hybrid-token-storage.d.ts +3 -0
  46. package/dist/src/mcp/token-storage/hybrid-token-storage.js +34 -13
  47. package/dist/src/mcp/token-storage/hybrid-token-storage.js.map +1 -1
  48. package/dist/src/mcp/token-storage/hybrid-token-storage.test.js +25 -0
  49. package/dist/src/mcp/token-storage/hybrid-token-storage.test.js.map +1 -1
  50. package/dist/src/openai_chatgpt/imports.test.js +17 -1
  51. package/dist/src/openai_chatgpt/imports.test.js.map +1 -1
  52. package/dist/src/telemetry/config.d.ts +1 -0
  53. package/dist/src/telemetry/config.js +3 -4
  54. package/dist/src/telemetry/config.js.map +1 -1
  55. package/dist/src/telemetry/config.test.js +6 -4
  56. package/dist/src/telemetry/config.test.js.map +1 -1
  57. package/dist/src/telemetry/index.d.ts +0 -2
  58. package/dist/src/telemetry/index.js +0 -2
  59. package/dist/src/telemetry/index.js.map +1 -1
  60. package/dist/src/telemetry/loggers.js +0 -36
  61. package/dist/src/telemetry/loggers.js.map +1 -1
  62. package/dist/src/telemetry/loggers.test.js +17 -1
  63. package/dist/src/telemetry/loggers.test.js.map +1 -1
  64. package/dist/src/telemetry/sdk.js +24 -19
  65. package/dist/src/telemetry/sdk.js.map +1 -1
  66. package/dist/src/telemetry/sdk.test.js +17 -135
  67. package/dist/src/telemetry/sdk.test.js.map +1 -1
  68. package/dist/src/tools/confirmation-policy.test.js +1 -1
  69. package/dist/src/tools/confirmation-policy.test.js.map +1 -1
  70. package/dist/src/utils/paths.js +7 -3
  71. package/dist/src/utils/paths.js.map +1 -1
  72. package/dist/src/utils/paths.test.js +31 -2
  73. package/dist/src/utils/paths.test.js.map +1 -1
  74. package/dist/src/utils/shell-permissions.test.js +4 -2
  75. package/dist/src/utils/shell-permissions.test.js.map +1 -1
  76. package/dist/src/utils/shell-utils.test.js +4 -2
  77. package/dist/src/utils/shell-utils.test.js.map +1 -1
  78. package/dist/tsconfig.tsbuildinfo +1 -1
  79. package/package.json +1 -5
  80. package/dist/src/telemetry/clearcut-logger/clearcut-logger.d.ts +0 -159
  81. package/dist/src/telemetry/clearcut-logger/clearcut-logger.js +0 -1210
  82. package/dist/src/telemetry/clearcut-logger/clearcut-logger.js.map +0 -1
  83. package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.d.ts +0 -20
  84. package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.js +0 -835
  85. package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.js.map +0 -1
  86. package/dist/src/telemetry/clearcut-logger/event-metadata-key.d.ts +0 -140
  87. package/dist/src/telemetry/clearcut-logger/event-metadata-key.js +0 -350
  88. package/dist/src/telemetry/clearcut-logger/event-metadata-key.js.map +0 -1
  89. package/dist/src/telemetry/gcp-exporters.d.ts +0 -36
  90. package/dist/src/telemetry/gcp-exporters.js +0 -121
  91. package/dist/src/telemetry/gcp-exporters.js.map +0 -1
  92. package/dist/src/telemetry/gcp-exporters.test.d.ts +0 -7
  93. package/dist/src/telemetry/gcp-exporters.test.js +0 -319
  94. package/dist/src/telemetry/gcp-exporters.test.js.map +0 -1
  95. package/dist/src/telemetry/integration.test.circular.d.ts +0 -7
  96. package/dist/src/telemetry/integration.test.circular.js +0 -55
  97. package/dist/src/telemetry/integration.test.circular.js.map +0 -1
@@ -14,8 +14,8 @@ logs), you’re in the right place.
14
14
  ```bash
15
15
  git clone https://github.com/Prof-Harita/terminaI.git
16
16
  cd terminaI
17
- npm ci
18
- npm run build
17
+ npm install
18
+ turbo run build
19
19
 
20
20
  # Link the launcher
21
21
  npm link --workspace packages/termai
@@ -63,7 +63,7 @@ High-impact areas (with suggested entry points):
63
63
  Fast local checks:
64
64
 
65
65
  ```bash
66
- npm test --workspaces --if-present
66
+ npm test
67
67
  ```
68
68
 
69
69
  If you’re changing linted areas:
@@ -96,7 +96,7 @@ agree that your contributions are licensed under the same terms.
96
96
 
97
97
  - Please adhere to the coding style, patterns, and conventions used throughout
98
98
  the existing codebase.
99
- - Consult [terminaI.md](../terminaI.md) (typically found in the project root)
99
+ - Consult [TerminAI.md](../TerminAI.md) (typically found in the project root)
100
100
  for specific instructions related to AI-assisted development, including
101
101
  conventions for React, comments, and Git usage.
102
102
  - **Imports:** Pay special attention to import paths. The project uses ESLint to
@@ -175,7 +175,7 @@ used for the CLI's interface, is compatible with React DevTools version 4.x.
175
175
  ```
176
176
 
177
177
  Your running CLI application should then connect to React DevTools.
178
- ![](/docs/assets/connected_devtools.png)
178
+ ![](assets/connected_devtools.png)
179
179
 
180
180
  ### Sandboxing
181
181
 
@@ -269,8 +269,8 @@ code.
269
269
 
270
270
  ### Documentation structure
271
271
 
272
- Our documentation is organized using [sidebar.json](/docs/sidebar.json) as the
273
- table of contents. When adding new documentation:
272
+ Our documentation is organized using [sidebar.json](sidebar.json) as the source
273
+ of truth for structure. When adding new documentation:
274
274
 
275
275
  1. Create your markdown file **in the appropriate directory** under `/docs`.
276
276
  2. Add an entry to `sidebar.json` in the relevant section.
@@ -318,7 +318,7 @@ Before submitting your documentation pull request, please:
318
318
 
319
319
  If you have questions about contributing documentation:
320
320
 
321
- - Check our [FAQ](/docs/faq.md).
321
+ - Check our [FAQ](faq.md).
322
322
  - Review existing documentation for examples.
323
323
  - Open [an issue](https://github.com/google-gemini/gemini-cli/issues) to discuss
324
324
  your proposed changes.
@@ -7,7 +7,7 @@ On this page, you can find information regarding the current releases and
7
7
  announcements from each release.
8
8
 
9
9
  For the full changelog, refer to
10
- [Releases - google-gemini/gemini-cli](https://github.com/google-gemini/gemini-cli/releases)
10
+ [Releases - Prof-Harita/terminaI](https://github.com/Prof-Harita/terminaI/releases)
11
11
  on GitHub.
12
12
 
13
13
  ## Current releases
@@ -334,12 +334,12 @@ on GitHub.
334
334
  - 🎉 **Our New Home Page & Better Documentation** 🎉
335
335
  - Check out our new home page for better getting started material, reference
336
336
  documentation, extensions and more!
337
- - _Homepage:_ [https://geminicli.com](https://geminicli.com)
337
+ - _Homepage:_ [https://terminai.org](https://terminai.org)
338
338
  - ‼️*NEW documentation:*
339
- [https://geminicli.com/docs](https://geminicli.com/docs) (Have any
340
- [suggestions](https://github.com/google-gemini/gemini-cli/discussions/8722)?)
339
+ [https://terminai.org/docs](https://terminai.org/docs) (Have any
340
+ [suggestions](https://github.com/Prof-Harita/terminaI/discussions/8722)?)
341
341
  - _Extensions:_
342
- [https://geminicli.com/extensions](https://geminicli.com/extensions)
342
+ [https://terminai.org/extensions](https://terminai.org/extensions)
343
343
  - **Non-Interactive Allowed Tools:** `--allowed-tools` will now also work in
344
344
  non-interactive mode.
345
345
  ([pr](https://github.com/google-gemini/gemini-cli/pull/9114) by
@@ -1,6 +1,6 @@
1
1
  # CLI commands
2
2
 
3
- Gemini CLI supports several built-in commands to help you manage your session,
3
+ TerminaI supports several built-in commands to help you manage your session,
4
4
  customize the interface, and control its behavior. These commands are prefixed
5
5
  with a forward slash (`/`), an at symbol (`@`), or an exclamation mark (`!`).
6
6
 
@@ -11,11 +11,11 @@ Slash commands provide meta-level control over the CLI itself.
11
11
  ### Built-in Commands
12
12
 
13
13
  - **`/bug`**
14
- - **Description:** File an issue about Gemini CLI. By default, the issue is
15
- filed within the GitHub repository for Gemini CLI. The string you enter
16
- after `/bug` will become the headline for the bug being filed. The default
17
- `/bug` behavior can be modified using the `advanced.bugCommand` setting in
18
- your `.terminai/settings.json` files.
14
+ - **Description:** File an issue about TerminaI. By default, the issue is
15
+ filed within the GitHub repository. The string you enter after `/bug` will
16
+ become the headline for the bug being filed. The default `/bug` behavior can
17
+ be modified using the `advanced.bugCommand` setting in your
18
+ `.terminai/settings.json` files.
19
19
 
20
20
  - **`/chat`**
21
21
  - **Description:** Save and resume conversation history for branching
@@ -99,12 +99,15 @@ Slash commands provide meta-level control over the CLI itself.
99
99
  - **Description:** Open a dialog for selecting supported editors.
100
100
 
101
101
  - **`/extensions`**
102
- - **Description:** Lists all active extensions in the current Gemini CLI
103
- session. See [Gemini CLI Extensions](../extensions/index.md).
102
+ - **Description:** Lists all active extensions in the current TerminaI
103
+ session. See [TerminaI Extensions](../extensions/index.md).
104
104
 
105
105
  - **`/help`** (or **`/?`**)
106
- - **Description:** Display help information about Gemini CLI, including
106
+ - **Description:** Display help information about TerminaI, including
107
107
  available commands and their usage.
108
+ - **Sub-commands:**
109
+ - **`all`**:
110
+ - **Description:** Show all commands including hidden internal ones.
108
111
 
109
112
  - **`/mcp`**
110
113
  - **Description:** Manage configured Model Context Protocol (MCP) servers.
@@ -181,10 +184,10 @@ Slash commands provide meta-level control over the CLI itself.
181
184
  complete details.
182
185
 
183
186
  - [**`/settings`**](./settings.md)
184
- - **Description:** Open the settings editor to view and modify Gemini CLI
187
+ - **Description:** Open the settings editor to view and modify TerminaI
185
188
  settings.
186
189
  - **Details:** This command provides a user-friendly interface for changing
187
- settings that control the behavior and appearance of Gemini CLI. It is
190
+ settings that control the behavior and appearance of TerminaI. It is
188
191
  equivalent to manually editing the `.terminai/settings.json` file, but with
189
192
  validation and guidance to prevent errors. See the
190
193
  [settings documentation](./settings.md) for a full list of available
@@ -203,11 +206,34 @@ Slash commands provide meta-level control over the CLI itself.
203
206
 
204
207
  - [**`/theme`**](./themes.md)
205
208
  - **Description:** Open a dialog that lets you change the visual theme of
206
- Gemini CLI.
209
+ TerminaI.
207
210
 
208
- - **`/auth`**
209
- - **Description:** Open a dialog that lets you change the authentication
210
- method.
211
+ - **`/llm`** (or **`/auth`**)
212
+ - **Description:** Manage LLM provider and authentication.
213
+ - **Sub-commands:**
214
+ - **`login`**:
215
+ - **Description:** Configure provider and authentication.
216
+ - **`logout`**:
217
+ - **Description:** Log out and clear all cached credentials.
218
+ - **`wizard`**:
219
+ - **Description:** Open the provider selection wizard to switch LLM
220
+ providers.
221
+ - **`reset`**:
222
+ - **Description:** Nuclear reset: clear ALL credentials and auth settings.
223
+ - **`status`**:
224
+ - **Description:** Show current authentication status and provider.
225
+ - **Note:** Running `/llm` without a subcommand opens the provider wizard.
226
+
227
+ - **`/logs`** (or **`/audit`**)
228
+ - **Description:** View or export session logs (audit ledger).
229
+ - **Sub-commands:**
230
+ - **`show`**:
231
+ - **Description:** Show recent log entries (default action).
232
+ - **`verify`**:
233
+ - **Description:** Verify the log hash chain integrity.
234
+ - **`export`**:
235
+ - **Description:** Export logs with current redaction settings.
236
+ - **Note:** Running `/logs` without a subcommand shows recent entries.
211
237
 
212
238
  - **`/about`**
213
239
  - **Description:** Show version info. Please share this information when
@@ -215,7 +241,7 @@ Slash commands provide meta-level control over the CLI itself.
215
241
 
216
242
  - [**`/tools`**](../tools/index.md)
217
243
  - **Description:** Display a list of tools that are currently available within
218
- Gemini CLI.
244
+ TerminaI.
219
245
  - **Usage:** `/tools [desc]`
220
246
  - **Sub-commands:**
221
247
  - **`desc`** or **`descriptions`**:
@@ -230,7 +256,7 @@ Slash commands provide meta-level control over the CLI itself.
230
256
  purposes.
231
257
 
232
258
  - **`/quit`** (or **`/exit`**)
233
- - **Description:** Exit Gemini CLI.
259
+ - **Description:** Exit TerminaI.
234
260
 
235
261
  - **`/vim`**
236
262
  - **Description:** Toggle vim mode on or off. When vim mode is enabled, the
@@ -0,0 +1,61 @@
1
+ # TerminaI Quick Reference
2
+
3
+ Essential commands and shortcuts for efficient operation.
4
+
5
+ ## Commands
6
+
7
+ | Command | Description | Default Action |
8
+ | -------------------- | ----------------------- | ------------------ |
9
+ | `/help` | Command reference | Show core commands |
10
+ | `/help all` | Show all commands | Including hidden |
11
+ | `/llm` | LLM provider management | Open wizard |
12
+ | `/model` | Switch model | Open selector |
13
+ | `/chat` | Session management | List saved chats |
14
+ | `/chat save <tag>` | Save current chat | - |
15
+ | `/chat resume <tag>` | Resume saved chat | - |
16
+ | `/mcp` | MCP server management | List servers |
17
+ | `/tools` | Available tools | List tool names |
18
+ | `/extensions` | Active extensions | List extensions |
19
+ | `/logs` | Session logs | Show recent |
20
+ | `/settings` | Configuration | Open dialog |
21
+ | `/restore` | Undo changes | List checkpoints |
22
+ | `/stats` | Token usage | Show stats |
23
+ | `/clear` | Clear screen | (Ctrl+L) |
24
+ | `/copy` | Copy last output | - |
25
+ | `/quit` | Exit TerminaI | (Ctrl+C) |
26
+
27
+ ## Keyboard Shortcuts
28
+
29
+ | Shortcut | Action |
30
+ | -------------- | -------------------- |
31
+ | `Ctrl+C` | Quit / Cancel |
32
+ | `Ctrl+L` | Clear screen |
33
+ | `Ctrl+S` | Selection mode |
34
+ | `Ctrl+Y` | Toggle YOLO mode |
35
+ | `Ctrl+J` | New line (Linux) |
36
+ | `Ctrl+Enter` | New line (Windows) |
37
+ | `Shift+Tab` | Toggle auto-accept |
38
+ | `Esc` | Cancel / Clear input |
39
+ | `Up/Down` | Prompt history |
40
+ | `Page Up/Down` | Scroll |
41
+
42
+ ## Context Commands
43
+
44
+ | Pattern | Description |
45
+ | ---------- | --------------------- |
46
+ | `@file.ts` | Include file content |
47
+ | `@src/` | Include directory |
48
+ | `!command` | Execute shell command |
49
+
50
+ ## LLM Providers
51
+
52
+ Use `/llm` to switch between:
53
+
54
+ - **Google Gemini** - OAuth or API key
55
+ - **ChatGPT** - OAuth authentication
56
+ - **OpenAI-compatible** - Custom endpoint + API key
57
+ - **Local LLM** - Ollama, etc.
58
+
59
+ ---
60
+
61
+ _See `/help` for complete command list. Full docs: `docs/cli/commands.md`_