@humain/terminal 0.1.0 → 0.1.1
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/CHANGELOG.md +17 -0
- package/dist/bundle/chunks/{chunk-RM336IEI.js → chunk-LYAMSPR2.js} +18 -18
- package/dist/bundle/cli.js +1 -1
- package/dist/bundle/index.js +1 -1
- package/dist/bundle/rpc-entry.js +1 -1
- package/dist/cli.js +1 -5
- package/dist/core/agent-session.js +2 -2
- package/dist/core/agent-session.js.map +1 -1
- package/dist/humain/index.d.ts.map +1 -1
- package/dist/humain/index.js +2 -0
- package/dist/humain/index.js.map +1 -1
- package/dist/humain/node-http.d.ts +3 -0
- package/dist/humain/node-http.d.ts.map +1 -0
- package/dist/humain/node-http.js +119 -0
- package/dist/humain/node-http.js.map +1 -0
- package/dist/humain/node-provider.d.ts +4 -0
- package/dist/humain/node-provider.d.ts.map +1 -0
- package/dist/humain/node-provider.js +359 -0
- package/dist/humain/node-provider.js.map +1 -0
- package/dist/index.js +1 -51
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +16 -0
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/login-dialog.d.ts +7 -2
- package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
- package/dist/modes/interactive/components/login-dialog.js +46 -21
- package/dist/modes/interactive/components/login-dialog.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +10 -13
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/docs/humain-terminal.md +6 -0
- package/docs/providers.md +19 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/docs/humain-terminal.md
CHANGED
|
@@ -55,6 +55,12 @@ Web settings and cached search content live under the HUMAIN agent directory. Th
|
|
|
55
55
|
|
|
56
56
|
Maintainers can run `npm run check:web-access-upstream` from the repository root to detect a newer upstream release requiring source and dependency review.
|
|
57
57
|
|
|
58
|
+
## HUMAIN Node
|
|
59
|
+
|
|
60
|
+
Use `/login humain-node` to enter a masked API key and optional base URL (default `https://api.node.humain.com/v1`). Alternatively, set `HUMAIN_NODE_API_KEY` and optionally `HUMAIN_NODE_BASE_URL` in your environment.
|
|
61
|
+
|
|
62
|
+
HUMAIN Terminal discovers the models available to that key before offering them in `/model`. Supported models use Node's Responses, Chat Completions, or Messages endpoint with normal streaming, tools, and reported token usage. Account spend, remaining quota, and pricing are not available from the supplied inference API. See [HUMAIN Node setup](providers.md#humain-node).
|
|
63
|
+
|
|
58
64
|
## Local Models
|
|
59
65
|
|
|
60
66
|
Set `HUMAIN_TERMINAL_LOCAL_BASE_URL` to an OpenAI-compatible `/v1` endpoint. Models come from `HUMAIN_TERMINAL_LOCAL_MODELS` when set, otherwise HUMAIN Terminal performs a bounded `/v1/models` discovery request.
|
package/docs/providers.md
CHANGED
|
@@ -6,6 +6,7 @@ HUMAIN Terminal supports subscription-based providers via OAuth and API key prov
|
|
|
6
6
|
|
|
7
7
|
- [Subscriptions](#subscriptions)
|
|
8
8
|
- [API Keys](#api-keys)
|
|
9
|
+
- [HUMAIN Node](#humain-node)
|
|
9
10
|
- [Auth File](#auth-file)
|
|
10
11
|
- [Cloud Providers](#cloud-providers)
|
|
11
12
|
- [llama.cpp](#llamacpp)
|
|
@@ -72,6 +73,7 @@ humain-terminal
|
|
|
72
73
|
| Ant Ling | `ANT_LING_API_KEY` | `ant-ling` |
|
|
73
74
|
| Azure OpenAI Responses | `AZURE_OPENAI_API_KEY` | `azure-openai-responses` |
|
|
74
75
|
| OpenAI | `OPENAI_API_KEY` | `openai` |
|
|
76
|
+
| HUMAIN Node | `HUMAIN_NODE_API_KEY` | `humain-node` |
|
|
75
77
|
| DeepSeek | `DEEPSEEK_API_KEY` | `deepseek` |
|
|
76
78
|
| NVIDIA NIM | `NVIDIA_API_KEY` | `nvidia` |
|
|
77
79
|
| Google Gemini | `GEMINI_API_KEY` | `google` |
|
|
@@ -104,7 +106,7 @@ humain-terminal
|
|
|
104
106
|
| Xiaomi MiMo Token Plan (Amsterdam) | `XIAOMI_TOKEN_PLAN_AMS_API_KEY` | `xiaomi-token-plan-ams` |
|
|
105
107
|
| Xiaomi MiMo Token Plan (Singapore) | `XIAOMI_TOKEN_PLAN_SGP_API_KEY` | `xiaomi-token-plan-sgp` |
|
|
106
108
|
|
|
107
|
-
Reference for environment variables and `auth.json` keys: [`const envMap`](../../ai/src/env-api-keys.ts).
|
|
109
|
+
Reference for built-in environment variables and `auth.json` keys: [`const envMap`](../../ai/src/env-api-keys.ts). HUMAIN Node is registered by the bundled HUMAIN extension.
|
|
108
110
|
|
|
109
111
|
#### Auth File
|
|
110
112
|
|
|
@@ -184,6 +186,22 @@ The `key` field supports command execution, environment interpolation, and liter
|
|
|
184
186
|
|
|
185
187
|
OAuth credentials are also stored here after `/login` and managed automatically.
|
|
186
188
|
|
|
189
|
+
## HUMAIN Node
|
|
190
|
+
|
|
191
|
+
Run `/login humain-node` (or select **HUMAIN Node** in `/login`). Enter the API key in the masked terminal prompt, then accept `https://api.node.humain.com/v1` or enter a custom base URL. Login validates the key with `GET /models` before saving credentials.
|
|
192
|
+
|
|
193
|
+
To obtain a key, open your Team's **Users** page in HUMAIN Node, select the user for this workload and environment, and create an API key. Save it in your local environment as `HUMAIN_NODE_API_KEY` or in a secret manager. Never paste it into chat. If the environment variable is set, leave the login key prompt blank to use it without copying the key into `auth.json`.
|
|
194
|
+
|
|
195
|
+
`HUMAIN_NODE_BASE_URL` optionally changes the default endpoint. A URL saved during login takes priority. Custom URLs must use HTTPS; HTTP is allowed for localhost testing.
|
|
196
|
+
|
|
197
|
+
After login, use `/model` to select a discovered Node model and submit a prompt normally. For headless use, set `HUMAIN_NODE_API_KEY`, run `humain-terminal --list-models`, then pass a returned model ID with `humain-terminal --provider humain-node --model MODEL_ID -p "Say hello"`.
|
|
198
|
+
|
|
199
|
+
Only models advertising a supported text API, streaming, and tool calling are offered for coding. Node's model metadata chooses Responses, Chat Completions, or Messages and supplies context/output limits and image-input support. Catalogs are refreshed from Node and kept in memory, scoped to the active key and URL; Node models are unavailable offline after a restart. Image generation and realtime sessions are outside the coding model picker.
|
|
200
|
+
|
|
201
|
+
Token and cache usage reported by Node flows into the normal session statistics. The supplied API does not expose account spend, remaining quota, or model prices: zero-valued internal cost fields mean pricing is unavailable, not free usage. Use HUMAIN Node for billing and account usage reports.
|
|
202
|
+
|
|
203
|
+
Failed requests include the supplied `X-Request-ID`. Temporary failures use bounded retries that respect `Retry-After`; quota and weekly-spend limits require action in Node. If a model becomes unavailable, open `/model` to refresh the catalog and select an available model. Run `/logout` and select **HUMAIN Node** to remove saved credentials; unset `HUMAIN_NODE_API_KEY` as well to disconnect an environment-based key.
|
|
204
|
+
|
|
187
205
|
## Cloud Providers
|
|
188
206
|
|
|
189
207
|
### Azure OpenAI
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@humain/terminal",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@humain/terminal",
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@humain/terminal-contracts": "0.1.0",
|