@humain/humain-code 0.8.1 → 0.8.2
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 +25 -0
- package/dist/bundle/chunks/{chunk-3CGMVKHA.js → chunk-3E37CJCE.js} +1 -1
- package/dist/bundle/chunks/{chunk-7X6DNT45.js → chunk-3PJ7NPWN.js} +8 -6
- package/dist/bundle/chunks/{chunk-P2Y2H7SD.js → chunk-6JTCRCNF.js} +2 -2
- package/dist/bundle/chunks/{chunk-APNPBT7Y.js → chunk-BRSLXHED.js} +1 -1
- package/dist/bundle/chunks/{chunk-KONLZKPL.js → chunk-E4VUW4RI.js} +1 -1
- package/dist/bundle/chunks/{chunk-E7OBH44W.js → chunk-EFY2QPVP.js} +6 -6
- package/dist/bundle/chunks/{chunk-6YVORXTX.js → chunk-G2QMON4O.js} +253 -232
- package/dist/bundle/chunks/{chunk-QRRVZYTG.js → chunk-H2B3WLIM.js} +2 -2
- package/dist/bundle/chunks/{chunk-XZ7FTBXS.js → chunk-H7UPU2SH.js} +1187 -1196
- package/dist/bundle/chunks/{chunk-NICPFMOP.js → chunk-JKX5EGOT.js} +1 -1
- package/dist/bundle/chunks/{chunk-P42E6YY6.js → chunk-JQBZUFH7.js} +33 -32
- package/dist/bundle/chunks/{chunk-D3KYOSQY.js → chunk-JSHKS7VH.js} +1 -1
- package/dist/bundle/chunks/{chunk-SXOIQWNX.js → chunk-JX6YIPNK.js} +1 -1
- package/dist/bundle/chunks/{chunk-WBSGWISD.js → chunk-M5TVWJ5T.js} +5 -4
- package/dist/bundle/chunks/{chunk-6TTMNQXI.js → chunk-PJXBU6CR.js} +43 -40
- package/dist/bundle/chunks/{chunk-CQ2CE3RB.js → chunk-QFDZEUFU.js} +2 -2
- package/dist/bundle/chunks/{chunk-DD5UT56Y.js → chunk-R2KD2HFT.js} +67 -66
- package/dist/bundle/chunks/{chunk-IMUFBWEK.js → chunk-T2ZGMEMV.js} +42 -41
- package/dist/bundle/chunks/{chunk-ROFZVEFN.js → chunk-U4EAJPMO.js} +45 -44
- package/dist/bundle/chunks/{chunk-FQ4KS5S4.js → chunk-UZOIHLNU.js} +1 -1
- package/dist/bundle/chunks/{chunk-DJG2WUNM.js → chunk-ZSWU5KKA.js} +1 -1
- package/dist/bundle/chunks/{compat-SRCNS6OQ.js → compat-ELBUCH6U.js} +1 -1
- package/dist/bundle/chunks/{dist-4OMLHRJE.js → dist-NERIS6SW.js} +1 -1
- package/dist/bundle/chunks/{dist-TRAK7EXI.js → dist-QSYDYE3Y.js} +6 -6
- package/dist/bundle/chunks/{easter-egg-3d-VVUF3C3X.js → easter-egg-3d-VZC5WOYV.js} +1 -1
- package/dist/bundle/chunks/{execute-I3WGGPWL.js → execute-6MEJJF2T.js} +2 -2
- package/dist/bundle/chunks/{flow-implementer-4KO3Q4B5.js → flow-implementer-3P3BHQ7E.js} +4 -4
- package/dist/bundle/chunks/{inprocess-TOBRVK4C.js → inprocess-3PDJKE5F.js} +4 -4
- package/dist/bundle/chunks/{interactive-mode-BJJKPBXD.js → interactive-mode-SDUO5OLD.js} +2 -2
- package/dist/bundle/chunks/{session-picker-4JQEGLDD.js → session-picker-EYKCMFQR.js} +1 -1
- package/dist/bundle/chunks/{startup-ui-AKTA4NDP.js → startup-ui-7ODOR34R.js} +2 -2
- package/dist/bundle/chunks/{trace-command-7ORDQ3JS.js → trace-command-VM7FBWPE.js} +4 -4
- package/dist/bundle/chunks/{virtual-modules-3CT5BMBA.js → virtual-modules-IU5KWB2C.js} +8 -8
- package/dist/bundle/cli-runtime.js +3 -3
- package/dist/bundle/index.js +8 -8
- package/dist/bundle/rpc-entry.js +3 -3
- package/dist/core/model-resolver.js +2 -2
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/settings-manager.d.ts +4 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +17 -0
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/settings-schema.d.ts +2 -0
- package/dist/core/settings-schema.d.ts.map +1 -1
- package/dist/core/settings-schema.js +10 -0
- package/dist/core/settings-schema.js.map +1 -1
- package/dist/extensions/usage/index.js +5 -5
- package/dist/extensions/usage/index.js.map +1 -1
- package/dist/humain/gateway/client.d.ts.map +1 -1
- package/dist/humain/gateway/client.js +36 -9
- package/dist/humain/gateway/client.js.map +1 -1
- package/dist/humain/gateway/http.d.ts.map +1 -1
- package/dist/humain/gateway/http.js +26 -6
- package/dist/humain/gateway/http.js.map +1 -1
- package/dist/humain/gateway/provider.d.ts.map +1 -1
- package/dist/humain/gateway/provider.js +9 -2
- package/dist/humain/gateway/provider.js.map +1 -1
- package/dist/humain/hcode/facade.d.ts +12 -1
- package/dist/humain/hcode/facade.d.ts.map +1 -1
- package/dist/humain/hcode/facade.js +35 -8
- package/dist/humain/hcode/facade.js.map +1 -1
- package/dist/humain/hcode/login-copy.d.ts.map +1 -1
- package/dist/humain/hcode/login-copy.js +10 -0
- package/dist/humain/hcode/login-copy.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +6 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +26 -0
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/components/status-indicator.d.ts +35 -1
- package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -1
- package/dist/modes/interactive/components/status-indicator.js +179 -3
- package/dist/modes/interactive/components/status-indicator.js.map +1 -1
- package/dist/modes/interactive/components/working-indicator-engine.d.ts +32 -0
- package/dist/modes/interactive/components/working-indicator-engine.d.ts.map +1 -0
- package/dist/modes/interactive/components/working-indicator-engine.js +112 -0
- package/dist/modes/interactive/components/working-indicator-engine.js.map +1 -0
- package/dist/modes/interactive/fullscreen.d.ts +13 -0
- package/dist/modes/interactive/fullscreen.d.ts.map +1 -0
- package/dist/modes/interactive/fullscreen.js +25 -0
- package/dist/modes/interactive/fullscreen.js.map +1 -0
- package/dist/modes/interactive/interactive-mode.d.ts +4 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +117 -19
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/theme/humain-dark.json +5 -4
- package/dist/modes/interactive/theme/humain-light.json +6 -5
- package/docs/development.md +7 -0
- package/docs/providers.md +14 -4
- package/docs/settings.md +20 -0
- package/docs/usage.md +2 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/schemas/settings.schema.json +29 -0
- package/dist/bundle/chunks/chunk-YPZPCHNV.js +0 -3
|
@@ -66,11 +66,12 @@
|
|
|
66
66
|
"syntaxOperator": "text",
|
|
67
67
|
"syntaxPunctuation": "text",
|
|
68
68
|
"thinkingOff": "dimText",
|
|
69
|
-
"thinkingMinimal": "#
|
|
70
|
-
"thinkingLow": "#
|
|
71
|
-
"thinkingMedium": "
|
|
69
|
+
"thinkingMinimal": "#7d8c89",
|
|
70
|
+
"thinkingLow": "#00b89c",
|
|
71
|
+
"thinkingMedium": "#3fb8e6",
|
|
72
72
|
"thinkingHigh": "oasis",
|
|
73
|
-
"thinkingXhigh": "#
|
|
73
|
+
"thinkingXhigh": "#f2b134",
|
|
74
|
+
"thinkingMax": "#ff6b4a",
|
|
74
75
|
"bashMode": "green"
|
|
75
76
|
},
|
|
76
77
|
"export": {
|
|
@@ -65,12 +65,13 @@
|
|
|
65
65
|
"syntaxType": "#009688",
|
|
66
66
|
"syntaxOperator": "text",
|
|
67
67
|
"syntaxPunctuation": "text",
|
|
68
|
-
"thinkingOff": "
|
|
68
|
+
"thinkingOff": "#647170",
|
|
69
69
|
"thinkingMinimal": "#74827f",
|
|
70
|
-
"thinkingLow": "#
|
|
71
|
-
"thinkingMedium": "
|
|
72
|
-
"thinkingHigh": "#
|
|
73
|
-
"thinkingXhigh": "#
|
|
70
|
+
"thinkingLow": "#008570",
|
|
71
|
+
"thinkingMedium": "#007da3",
|
|
72
|
+
"thinkingHigh": "#638500",
|
|
73
|
+
"thinkingXhigh": "#a56a00",
|
|
74
|
+
"thinkingMax": "#c44628",
|
|
74
75
|
"bashMode": "green"
|
|
75
76
|
},
|
|
76
77
|
"export": {
|
package/docs/development.md
CHANGED
|
@@ -61,6 +61,13 @@ npm test # Run all tests
|
|
|
61
61
|
npm test -- test/specific.test.ts # Run specific test
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
+
Account and login selectors use fullscreen overlays. Test hosts that exercise the real `InteractiveMode.showSelector` must provide `ui.terminal.rows` and `ui.showOverlay()` with a hide handle, and read the opened overlay instead of an editor child. Keep usage/freshness assertions on the real components. After changing account or usage presentation, run the freshness regression as well as the fullscreen tests from the repository root:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
npm run hydrate:model-data:pinned
|
|
68
|
+
(cd packages/coding-agent && ../../test.sh node ../../node_modules/vitest/dist/cli.js --run test/suite/regressions/183-claude-usage-freshness.test.ts test/accounts-fullscreen.test.ts)
|
|
69
|
+
```
|
|
70
|
+
|
|
64
71
|
### Efficiency budgets
|
|
65
72
|
|
|
66
73
|
Before releases and for performance changes, run `npm run build` followed by `npm run bench:budgets` from the repository root on an idle machine. The offline workloads measure built Node startup, optional compiled Bun startup, session loading/rendering, streaming Markdown, shell spill output and fullscreen search, with one warm-up and seven measured runs. Any median more than 15% above `bench/budgets/<platform>-<arch>.json` fails; a missing baseline is informational. Review the ranges before establishing or deliberately replacing it with `npm run bench:budgets -- --write-baseline`; this check is not part of `npm run check` or CI.
|
package/docs/providers.md
CHANGED
|
@@ -17,6 +17,8 @@ On a remote or headless machine, an OAuth callback may not reach the local proce
|
|
|
17
17
|
|
|
18
18
|
Run `/accounts [provider]` to switch, rename, add, reauthenticate, or remove saved OAuth and API-key accounts. `/logout` can select a saved account to remove. Removing an active account selects the next account of the same credential type, or signs the provider out when none remains. It never silently selects an API key after removing OAuth. Removal defaults to keeping the account and does not revoke access at the provider.
|
|
19
19
|
|
|
20
|
+
Account selection, `/login` authentication-method and provider choices, and `/logout` provider selection use the same full-width, full-height opaque overlay as `/usage`. Escape closes the selector and restores the underlying chat; account confirmations also cover the chat.
|
|
21
|
+
|
|
20
22
|
Environment, runtime and configuration sources appear as read-only entries. Change those sources outside `/accounts`; removing an account does not unset them.
|
|
21
23
|
|
|
22
24
|
`auth.json` and `oauth-accounts.json` can contain API keys and OAuth tokens. Keep both files and their migration backups private and do not commit them.
|
|
@@ -263,13 +265,15 @@ To use a service-account key file instead, set `GOOGLE_APPLICATION_CREDENTIALS`
|
|
|
263
265
|
|
|
264
266
|
Native provider `humain-code-account` is shown as **HUMAIN Code** in production, **HUMAIN Code (Dev)** in dev, and **HUMAIN Code (Staging)** in staging. Under **Sign in with HUMAIN**, order is Code, Node, Gateway, Fuse. All entries render at once. Code shows `checking connection…` (greyed) until the selected environment's `/api/cli/config` proves the complete qualified native device/issuer/audience/scopes/expiry/revocation profile and the issuer's discovery document matches it; it then shows `✓ connected`. HUMAIN Code CLI starts this check at startup and reuses a ready result for 5 minutes, so the menu is usually already connected; otherwise opening the menu checks again and updates it without losing search or selection. Selecting Code while the check runs waits inline with a spinner and continues to sign-in when it succeeds. Failures never block independent providers and name the cause:
|
|
265
267
|
|
|
266
|
-
- `✗ Can't reach <host>: check VPN/Zscaler [Retry]`: DNS, connection, TLS
|
|
268
|
+
- `✗ Can't reach <host>: check VPN/Zscaler [Retry]`: DNS, connection, TLS or timeout; not an HTTP rejection. Enter retries and continues when ready.
|
|
269
|
+
- `✗ HUMAIN Code isn't available on <environment> yet (server: hcode_unavailable). Try another environment or contact support. [Retry]`: `/api/cli/config` returned HTTP 503 with `code: hcode_unavailable`; this is not a VPN failure.
|
|
270
|
+
- `✗ Sign-in server returned HTTP <status>: <message> [Retry]`: another HTTP rejection, with a bounded, sanitized server message when available; without a message, only the status is shown.
|
|
267
271
|
- `✗ Server sign-in settings don't match this CLI version [Details]`: the server answered with settings this CLI does not accept. Enter explains: update the CLI, or ask the HUMAIN Code platform team to check the server's CLI sign-in configuration.
|
|
268
|
-
- `✗ Sign-in is
|
|
272
|
+
- `✗ Sign-in is not available in this environment [Retry]`: offline mode or another failure.
|
|
269
273
|
|
|
270
274
|
Start with `humain-code --env dev`, `--env staging` (alias `stg`), or `--env production`. Origins are `https://code.dev.humain.com`, `https://code.stg.humain.com`, and `https://code.humain.com`; production is the default. There is no arbitrary endpoint override or cross-environment fallback. This flag does not redirect Node, Gateway, Fuse, Local or DeployNow.
|
|
271
275
|
|
|
272
|
-
Use `/login humain-code-account`. An unreachable server says `Can't reach <host>: check VPN/Zscaler, then try /login again.`; other unavailable readiness says `HUMAIN Code is unavailable for this environment. Try /login again later.` (with the selected environment suffix when applicable). Readiness proves presentation only, not account eligibility or model availability. Browser/device sign-in always displays the validated verification URI and user code for remote use; MFA remains issuer-controlled. Device-code polling retries DNS, connection and 5xx errors with backoff (1 s doubling to 30 s) until the code expires; an invalid token response still fails at once.
|
|
276
|
+
Use `/login humain-code-account`. A classified `503 hcode_unavailable` shows the same not-available-on-this-environment explanation as the menu; other HTTP rejections show the same status and sanitized message. Direct commands omit the menu's `[Retry]` label; run `/login humain-code-account` again to retry. An unreachable server still says `Can't reach <host>: check VPN/Zscaler, then try /login again.`; other unavailable readiness says `HUMAIN Code is unavailable for this environment. Try /login again later.` (with the selected environment suffix when applicable). Readiness proves presentation only, not account eligibility or model availability. Browser/device sign-in always displays the validated verification URI and user code for remote use; MFA remains issuer-controlled. Device-code polling retries DNS, connection and 5xx errors with backoff (1 s doubling to 30 s) until the code expires; an invalid token response still fails at once.
|
|
273
277
|
|
|
274
278
|
Persistent login encrypts private account files under the agent directory's `hcode/accounts/<environment>` with a purpose key in the OS keychain. Generic auth holds only an environment/account/generation reference, never access or refresh tokens. One native account is active per environment; native grants are not pooled or automatically switched. The saved sign-in is shared by every `humain-code` process that uses the same agent directory and environment: a terminal opened later starts signed in, and `/login` and `/model` re-read a sign-in or sign-out made in another terminal. A terminal started without `--env` targets production; when only another environment has a saved sign-in, startup and `/login status` name it and the `--env` flag that selects it.
|
|
275
279
|
|
|
@@ -328,6 +332,8 @@ Both Gateway hosts are reachable only from the HUMAIN corporate network.
|
|
|
328
332
|
|
|
329
333
|
Over SSH, or if the browser or local callback is unavailable, open the **HUMAIN Gateway sign-in (paste code)** link printed in the terminal. Sign in and paste the one-time `hc_...` code into the masked prompt. The code expires after 2 minutes, and any exchange attempt uses it up.
|
|
330
334
|
|
|
335
|
+
Sign-in exchanges the one-time code with `POST /ai-gateway/handoff/exchange`. A server error (5xx) leaves local sign-in unchanged: no new session is saved. The CLI may start one fresh sign-in, but never resends the same exchange code.
|
|
336
|
+
|
|
331
337
|
The Gateway issues a personal session key, which HUMAIN Code CLI stores in the OS keychain: macOS Keychain, Linux Secret Service, or Windows Credential Manager. WSL uses Windows Credential Manager through Windows PowerShell, not a Linux desktop keyring. `auth.json` keeps only the environment, a session ID, and your email. Before opening the browser, sign-in writes, reads back, and deletes a temporary non-session value to verify the store. It never falls back to a plaintext file or another credential backend.
|
|
332
338
|
|
|
333
339
|
#### Linux and WSL prerequisites
|
|
@@ -341,6 +347,8 @@ To smoke-test WSL persistence, sign in, exit HUMAIN Code CLI, save work, and run
|
|
|
341
347
|
|
|
342
348
|
### 3. Choose a model
|
|
343
349
|
|
|
350
|
+
After saving the session, the CLI discovers models with `GET /ai-gateway/v1/models` and account restrictions with `GET /ai-gateway/api/cli/me/access`. These read-only requests retry HTTP 500, 502, 503 and 504 at most twice, with 500 ms then 1 s backoff. A valid `Retry-After` can extend each wait to at most 2 s; a longer or unreadable delay, or `x-should-retry: false`, stops retries. Discovery failures do not undo a successful sign-in or erase the last model list for that session. Wait and reopen `/model`; you do not need to enter another key or sign in again for a 5xx.
|
|
351
|
+
|
|
344
352
|
Run `/model` and pick a `humain-gateway` model. Only chat models your account is entitled to appear; models the Gateway blocks for HUMAIN Code are hidden and named in a warning with the reason. Press `Ctrl+S` on a model to make it the default for new sessions.
|
|
345
353
|
|
|
346
354
|
For print mode, sign in interactively once, then pass the provider and model:
|
|
@@ -367,7 +375,9 @@ CI and unattended runs are not supported: every session needs an interactive Mic
|
|
|
367
375
|
| --- | --- |
|
|
368
376
|
| `Could not reach HUMAIN Gateway to finish sign-in.` / browser shows `ERR_CONNECTION_CLOSED` | Connect to the HUMAIN corporate network. Staging may require separate access from the Gateway team. |
|
|
369
377
|
| `HUMAIN Gateway sign-in code is invalid or expired.` | Run `/login` again; codes last 2 minutes and work once. |
|
|
370
|
-
| `HUMAIN Gateway
|
|
378
|
+
| `HUMAIN Gateway is temporarily unavailable (503); no new session was saved.` (or another 5xx) | Complete the fresh sign-in if prompted. If the error persists, wait and run `/login` again. Any existing local sign-in is unchanged. Do not reuse an earlier code. |
|
|
379
|
+
| `HUMAIN Gateway is temporarily unavailable (503); your saved sign-in is unchanged.` (or another 5xx) | Sign-in was already saved. Wait and reopen `/model` to retry discovery; do not delete credentials. If failures persist, ask the Gateway team to inspect the failing path and timestamp. |
|
|
380
|
+
| `HUMAIN Gateway is temporarily unavailable (HTTP 503). Try again in a moment.` (or another 5xx during a model call) | Wait before trying the prompt again. The CLI does not add inference retries for these outages: a request may already have reached a billed model. Saved sign-in is unchanged. HTTP status, request ID/error code when supplied, and a sanitized upstream reason (at most 120 characters) remain in diagnostics for the Gateway team. |
|
|
371
381
|
| Keychain or Secret Service error | Unlock the keychain. On Linux, check `secret-tool`, the current D-Bus session, and the running Secret Service keyring. |
|
|
372
382
|
| WSL Windows Credential Manager error | Check that Windows `powershell.exe` runs from WSL and Windows interoperability is enabled. Sign in as the Windows user whose credential store holds the session. |
|
|
373
383
|
| `HUMAIN Gateway CLI session unavailable. Sign in again.` | Your access was revoked or rotated; run `/login` again. |
|
package/docs/settings.md
CHANGED
|
@@ -158,6 +158,8 @@ See [Compaction Reference](compaction.md) for trigger, summarization, and valida
|
|
|
158
158
|
| Setting | Type | Default | Description |
|
|
159
159
|
|---|---|---|---|
|
|
160
160
|
| `theme` | string | `"system"` | Built-in or custom theme name. `system` derives colors from the terminal theme. |
|
|
161
|
+
| `workingIndicator` | `"rotate" \| "classic" \| "life" \| "rain" \| "decode"` | `"rotate"` | One session-stable random binary indicator, or a pinned style; live preview in `/settings`. |
|
|
162
|
+
| `reducedMotion` | boolean | `false` | Use a still working-indicator frame instead of animation. |
|
|
161
163
|
| `quietStartup` | boolean \| `"header"` | `false` | `true` hides the startup header and loaded-resource listing. `"header"` keeps the header (version and key hints) but hides the model scope line and loaded-resource listing. |
|
|
162
164
|
| `tuiMode` | `"regular" \| "fullscreen"` | `"fullscreen"` | Interactive terminal UI mode. |
|
|
163
165
|
| `fullscreenExitOutput` | `"transcript" \| "resume-hint"` | `"transcript"` | Output printed when fullscreen mode exits. |
|
|
@@ -182,6 +184,24 @@ See [Compaction Reference](compaction.md) for trigger, summarization, and valida
|
|
|
182
184
|
|
|
183
185
|
See [Themes](themes.md) and [Terminal Setup](terminal-setup.md) for format and platform details.
|
|
184
186
|
|
|
187
|
+
`workingIndicator` defaults to `rotate`: one random choice of `life`, `rain`, or `decode` per interactive session, stable across turns and settings previews. Set an explicit style to pin it; switching back to `rotate` restores the session's original choice without another random draw. Supported pins are `classic` (the existing braille frames, capped at 10 updates/s like all working indicators), `life` (6/8/10 binary cells with a Working suffix, 3–10 updates/s), `rain` (4–12 falling-bit columns with elapsed time and level on the right), or `decode` (binary scramble resolving left to right into the current action). Higher thinking levels lengthen decode scrambling and increase rain speed (4–12 rows/s, computed at a fixed 10 Hz) and trail length. Rain's inner rule uses the same thinking-level color as the editor border. Decoded labels hold until the phase changes: Thinking for reasoning, Writing for text, and Reading/Editing/Running/Searching for tools. Animation uses only the active model's thinking level; non-reasoning models use off.
|
|
188
|
+
|
|
189
|
+
`reducedMotion: true` disables working animation (default `false`). Redirected output and `NO_COLOR` also use a still frame of the selected style (decode shows the resolved phase). Print and JSON modes do not create these interactive animations. `/settings` offers both settings and previews changes immediately; the preview stops when settings close. A still-running response restores its working indicator only when no retry, compaction, or summary indicator owns the status area. While settings are open, the preview replaces the working animation rather than running alongside it. Thinking-level and theme changes update the visible animation without resetting elapsed time; decoded words stop ticking while held. Extension-supplied working-indicator frames retain precedence over built-in styles.
|
|
190
|
+
|
|
191
|
+
The built-in HUMAIN thinking-border colors follow this ramp. Light colors are darkened for at least 3:1 contrast against white and the theme's export/editor-panel backgrounds (minimum measured ratio: 3.435:1). Terminal background overrides can change contrast.
|
|
192
|
+
|
|
193
|
+
| Level | `humain-dark` | `humain-light` |
|
|
194
|
+
|---|---|---|
|
|
195
|
+
| off | `#647170` | `#647170` |
|
|
196
|
+
| minimal | `#7d8c89` | `#74827f` |
|
|
197
|
+
| low | `#00b89c` | `#008570` |
|
|
198
|
+
| medium | `#3fb8e6` | `#007da3` |
|
|
199
|
+
| high | `#b8e636` | `#638500` |
|
|
200
|
+
| xhigh | `#f2b134` | `#a56a00` |
|
|
201
|
+
| max (`thinkingMax`) | `#ff6b4a` | `#c44628` |
|
|
202
|
+
|
|
203
|
+
Each visible working indicator owns at most one timer, capped at 10 frames/s and stopped on disposal or while a decoded word is held. Only timer ticks advance preallocated engine buffers; input and theme renders never advance simulation. Rain computes only visible columns, reuses glyph/color strings and a scratch buffer, and caches its border rule until width, metadata length or theme changes. Elapsed metadata changes only once per second. Its known-width ASCII border bypasses generic ANSI wrapping; only changed terminal lines require new strings. Frames use the existing TUI diff renderer, so unchanged transcript and input lines are not rewritten. Performance regressions cover 10,000 ticks per binary engine under 100 ms thread CPU, each style's scheduled/rendered frames under 0.15 ms thread CPU per frame (median of five 10,000-frame runs after 1,000 warm-up frames, including scheduler overhead), and real-TUI typing/render latency under 100 ms. Run them from `packages/coding-agent` with `../../test.sh node ../../node_modules/vitest/dist/cli.js --run test/working-indicator-performance.test.ts test/status-indicator.test.ts` (Node 26 supports the thread CPU clock).
|
|
204
|
+
|
|
185
205
|
## Network and retries
|
|
186
206
|
|
|
187
207
|
| Setting | Type | Default | Description |
|
package/docs/usage.md
CHANGED
|
@@ -87,6 +87,8 @@ Type `/` to search the available commands. The commands you will use most often
|
|
|
87
87
|
- `/login` and `/logout` manage provider access.
|
|
88
88
|
- `/settings` changes common preferences.
|
|
89
89
|
|
|
90
|
+
Account selection (including `/login` account choices and `/accounts`) and Usage's Accounts view use the same full-width, fullscreen overlay. The opaque black surface covers the transcript, editor, and status area; Usage confirmations also cover the underlying view. Press `Escape` to go back without changing an account.
|
|
91
|
+
|
|
90
92
|
Automatic effort is off by default. Enable it under `/settings` → **Automation**. Selection shows `Choosing effort…` before dispatch; on failure it keeps the current effort. Explicitly enable **Auto effort this session** to resume automation after a manual choice. See [Automatic effort](settings.md#automatic-effort) for latency and usage costs.
|
|
91
93
|
|
|
92
94
|
Prompt templates, skills, and extensions can add more commands to the same menu. See [Choose a Model](models.md), [Configuration](configuration.md), or the complete [Slash Commands reference](slash-commands.md).
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@humain/humain-code",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@humain/humain-code",
|
|
9
|
-
"version": "0.8.
|
|
9
|
+
"version": "0.8.2",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@humain/humain-code-contracts": "0.4.22",
|
package/package.json
CHANGED
|
@@ -103,6 +103,35 @@
|
|
|
103
103
|
],
|
|
104
104
|
"default": "one-at-a-time"
|
|
105
105
|
},
|
|
106
|
+
"workingIndicator": {
|
|
107
|
+
"anyOf": [
|
|
108
|
+
{
|
|
109
|
+
"type": "string",
|
|
110
|
+
"const": "rotate"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"type": "string",
|
|
114
|
+
"const": "classic"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "string",
|
|
118
|
+
"const": "life"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"type": "string",
|
|
122
|
+
"const": "rain"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"type": "string",
|
|
126
|
+
"const": "decode"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"default": "rotate"
|
|
130
|
+
},
|
|
131
|
+
"reducedMotion": {
|
|
132
|
+
"type": "boolean",
|
|
133
|
+
"default": false
|
|
134
|
+
},
|
|
106
135
|
"theme": {
|
|
107
136
|
"type": "string"
|
|
108
137
|
},
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
|
|
2
|
-
var STRING_SEQUENCE=/\u001b[P\]X^_][\s\S]*?(?:\u0007|\u001b\\|$)|[\u0090\u0098\u009d-\u009f][\s\S]*?(?:\u0007|\u009c|\u001b\\|$)/g,CSI_SEQUENCE=/(?:\u001b\[|\u009b)[0-?]*[ -/]*[@-~]?/g,OTHER_ESCAPE=/\u001b[\s\S]?/g,CONTROL_CHARS=/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,BIDI_CONTROLS=/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/g;function sanitizeForTerminal(text){return text.replace(STRING_SEQUENCE,"").replace(CSI_SEQUENCE,"").replace(OTHER_ESCAPE,"").replace(CONTROL_CHARS,"").replace(BIDI_CONTROLS,
|
|
3
|
-
"")}export{sanitizeForTerminal};
|