@nodetool-ai/cli-common 0.8.14 → 0.8.17
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 +21 -0
- package/dist/.nodetool-build-stamp +1 -1
- package/package.json +5 -5
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# @nodetool-ai/cli-common
|
|
2
|
+
|
|
3
|
+
Helpers shared by the installed command features (`cli-workflow`, `cli-harness`,
|
|
4
|
+
`cli-chat` and the others). It registers no commands.
|
|
5
|
+
|
|
6
|
+
The package root exports `initializeCliRuntime`, `createRpcClient`, `isString`
|
|
7
|
+
and `isRecord`. Other modules are reached by subpath, such as
|
|
8
|
+
`@nodetool-ai/cli-common/debug-bundle`.
|
|
9
|
+
|
|
10
|
+
| Module | What it provides |
|
|
11
|
+
|---|---|
|
|
12
|
+
| `runtime-env` | `initializeCliRuntime(entryUrl)` sets `NODETOOL_HOST` (`npx`, `source` or `cli`, from the entry path) and `NODETOOL_CLI_VERSION` (from the entry's `package.json`) when unset. It throws on an unknown `NODETOOL_HOST`. |
|
|
13
|
+
| `rpc-client` | `createRpcClient(apiUrl)` builds an untyped tRPC client for `<apiUrl>/trpc`, batched over `POST`. |
|
|
14
|
+
| `debug-bundle` | `defaultDebugOutDir(kind, ref)` returns `nodetool-debug/<kind>-<slug>-<timestamp>`. `writeDebugBundle` writes `<kind>.json`, `report.json` and `report.md` into it. |
|
|
15
|
+
| `telemetry` | Opt-in anonymous CLI analytics: `startCliTelemetry`, `trackCliEvent`, `finishCliTelemetry`. Flushing waits at most `CLI_FLUSH_BUDGET_MS` (1 second). See [Product Analytics](../../docs/analytics.md). |
|
|
16
|
+
| `optional-node-root` | `optionalNodeRoot()` is `<data dir>/optional-node`, where `nodetool runtime add` installs heavy libraries the npm package does not ship. |
|
|
17
|
+
| `commands/` | Shared output formatting for validation and debug summaries, and the shared `<document> versions list|show|create|restore|delete` commands. |
|
|
18
|
+
|
|
19
|
+
Depends on `@nodetool-ai/protocol`, `@nodetool-ai/config`,
|
|
20
|
+
`@nodetool-ai/analytics` and `@nodetool-ai/pack-manager`. Run its tests with
|
|
21
|
+
`npm run test --workspace=packages/cli-common`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
2026-11-
|
|
1
|
+
2026-11-26T15:02:04.028Z
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nodetool-ai/cli-common",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.17",
|
|
4
4
|
"description": "Independent NodeTool common command module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"lint": "node ../../scripts/run-tsc.mjs --noEmit"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@nodetool-ai/protocol": "0.8.
|
|
32
|
-
"@nodetool-ai/config": "0.8.
|
|
33
|
-
"@nodetool-ai/analytics": "0.8.
|
|
34
|
-
"@nodetool-ai/pack-manager": "0.8.
|
|
31
|
+
"@nodetool-ai/protocol": "0.8.17",
|
|
32
|
+
"@nodetool-ai/config": "0.8.17",
|
|
33
|
+
"@nodetool-ai/analytics": "0.8.17",
|
|
34
|
+
"@nodetool-ai/pack-manager": "0.8.17",
|
|
35
35
|
"commander": "^12.1.0",
|
|
36
36
|
"zod": "^4.4.3",
|
|
37
37
|
"@trpc/client": "^11.0.0"
|