@iowarp/clio-coder 0.5.0 → 0.5.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 +11 -0
- package/README.md +12 -9
- package/dist/{acp-KS7ARGV6.js → acp-X3N7JDGS.js} +2 -2
- package/dist/{agents-YOGJ2YEJ.js → agents-UYGSMAWR.js} +3 -3
- package/dist/assets/codewiki.json +1 -1
- package/dist/{chunk-EOJPDNUP.js → chunk-3OODBJ45.js} +1 -1
- package/dist/{chunk-R7FGRZNF.js → chunk-4D7QM7S5.js} +2 -2
- package/dist/{chunk-X4CEFOSG.js → chunk-6B76U65H.js} +4 -4
- package/dist/{chunk-LTWH2ACR.js → chunk-7FHSA7VB.js} +5 -5
- package/dist/{chunk-GRHOXDKB.js → chunk-7KI4ZSEB.js} +2 -2
- package/dist/{chunk-LYJJ6546.js → chunk-7VNLPEUG.js} +6 -6
- package/dist/{chunk-D65E25JG.js → chunk-A7G7OUND.js} +2 -2
- package/dist/{chunk-3JLTRPN7.js → chunk-AKQ3N3L4.js} +2 -2
- package/dist/{chunk-AVSR2HKI.js → chunk-BIQLF3NZ.js} +3 -3
- package/dist/{chunk-D3KWFOUT.js → chunk-DGMY2DWE.js} +2 -2
- package/dist/{chunk-IN7DGBVS.js → chunk-FBXTHPNZ.js} +2 -2
- package/dist/{chunk-EX57VVWW.js → chunk-GGEEG7CD.js} +2 -2
- package/dist/{chunk-V35KZDUZ.js → chunk-GW2KVAVI.js} +2 -2
- package/dist/{chunk-SJGS3GDI.js → chunk-KIAUZGKF.js} +2 -2
- package/dist/{chunk-CBAQPTDU.js → chunk-LFYA3HYH.js} +2 -2
- package/dist/{chunk-4VDHLCF5.js → chunk-M5FPIZQW.js} +2 -2
- package/dist/{chunk-R2UUNSNQ.js → chunk-O3ZAF7UY.js} +18 -5
- package/dist/{chunk-QNUQ7K7D.js → chunk-OXWRE2QJ.js} +2 -2
- package/dist/{chunk-55RMDDFM.js → chunk-PGQG7ZMW.js} +2 -2
- package/dist/{chunk-HQVN7G4F.js → chunk-QM7HFPQQ.js} +4 -4
- package/dist/{chunk-ZR5YA6ZF.js → chunk-QTYRMBW6.js} +2 -2
- package/dist/{chunk-3LT34CAM.js → chunk-SAL2SBP4.js} +8 -8
- package/dist/{chunk-OJXOA6YU.js → chunk-TL6LNERH.js} +2 -2
- package/dist/{chunk-U6YTUVOX.js → chunk-VMTCZ2GR.js} +2 -2
- package/dist/{chunk-OQ2EOAHA.js → chunk-VWKR2NN5.js} +5 -5
- package/dist/{chunk-QDUUOZ3S.js → chunk-WAISUJNQ.js} +2 -2
- package/dist/{chunk-XDHUDE5K.js → chunk-XOH3SD7H.js} +3 -3
- package/dist/{chunk-62UK7AGW.js → chunk-ZNTGRDFA.js} +281 -14
- package/dist/cli/index.js +17 -17
- package/dist/{clio-K2PBVCEM.js → clio-Z3JTEL2I.js} +2 -2
- package/dist/{config-Q5J7UBAB.js → config-QYIRZHI7.js} +8 -8
- package/dist/{config-graph-P3555574.js → config-graph-TS3SGGQW.js} +8 -8
- package/dist/{configure-KIJ32ZO6.js → configure-OX7KVJTQ.js} +2 -2
- package/dist/{context-LFBQOSXT.js → context-2BNF6HTP.js} +12 -12
- package/dist/{context-WBH3KSVR.js → context-GTMUGAR4.js} +7 -7
- package/dist/{context-clear-YOHMQ6SQ.js → context-clear-FVJQBBL7.js} +7 -7
- package/dist/{context-working-set-MRAEVDNV.js → context-working-set-MOE72SD6.js} +2 -2
- package/dist/{detail-RHJOTGN4.js → detail-QZM3QAAU.js} +8 -8
- package/dist/{dispatch-runner-NC7PYNIO.js → dispatch-runner-2KSQO5FU.js} +8 -8
- package/dist/{doctor-S5KZ2GTN.js → doctor-2U6YR5NH.js} +3 -3
- package/dist/{eval-3D6M36N7.js → eval-ZKK77JWZ.js} +3 -3
- package/dist/{evidence-6IYN52ET.js → evidence-FMP7KZZ2.js} +7 -7
- package/dist/{evidence-JVECPI3F.js → evidence-PJTOE7JA.js} +7 -7
- package/dist/{evidence-XNVPPLVK.js → evidence-POSEQW4Q.js} +9 -9
- package/dist/{evolve-TLPUDJDM.js → evolve-JT6PAMZE.js} +7 -7
- package/dist/{fleet-WKVBF5SZ.js → fleet-4XR2ZEOF.js} +16 -16
- package/dist/{fleet-6RJWIOEO.js → fleet-6JJKNIMV.js} +8 -8
- package/dist/{fleet-inspect-236FZPRB.js → fleet-inspect-SWJMFVDP.js} +9 -9
- package/dist/{fleet-preflight-NZQHABWO.js → fleet-preflight-KSIHWQAU.js} +4 -4
- package/dist/{fleet-verify-E3RO6A5W.js → fleet-verify-QM6XU2KL.js} +7 -7
- package/dist/{fleet-view-KMZQY7YJ.js → fleet-view-RLKFHFCM.js} +8 -8
- package/dist/gui/reads-worker.js +4 -4
- package/dist/{init-DV5B6HQG.js → init-VBUPHABR.js} +11 -11
- package/dist/{interactive-OXGYZYAS.js → interactive-JCVBPVYT.js} +1597 -503
- package/dist/{inventory-OEGIL6PY.js → inventory-54G7FSVY.js} +8 -8
- package/dist/{mcp-2GSPYQ54.js → mcp-EFCWUPUR.js} +3 -3
- package/dist/{memory-J3STUUIK.js → memory-5BPQSSOP.js} +7 -7
- package/dist/{models-Y3GMFJ2V.js → models-R6HILX6X.js} +3 -3
- package/dist/{monitor-LHNH577J.js → monitor-HVRKSFEQ.js} +10 -10
- package/dist/{orchestrator-DTAPXULA.js → orchestrator-OR7V4YWK.js} +26 -26
- package/dist/{preload-OJBMAIXF.js → preload-KLXFOX2F.js} +7 -7
- package/dist/{run-H64MEVTA.js → run-UIDRUYAY.js} +16 -16
- package/dist/{skills-eval-CQ23MYQK.js → skills-eval-JDAXOPWC.js} +7 -7
- package/dist/{slash-commands-ROG3KIFJ.js → slash-commands-MNKQ5QP3.js} +4 -4
- package/dist/{startup-background-KDWCQMWT.js → startup-background-PJMWTKVO.js} +7 -7
- package/dist/{system-ZDW44ZGX.js → system-IVVZRKGI.js} +2 -2
- package/dist/{targets-AJWA6E7Z.js → targets-RFRUMCQ5.js} +4 -4
- package/dist/{terminal-lease-YFUSDPAD.js → terminal-lease-V2N2BIKQ.js} +2 -2
- package/dist/{usage-XSILDHKF.js → usage-LA33SG3R.js} +9 -9
- package/dist/{wiki-generate-RP22WP5K.js → wiki-generate-HL73TICA.js} +10 -10
- package/dist/worker/entry.js +4 -4
- package/docs/architecture/architecture.md +1 -0
- package/docs/architecture/context-engine.md +2 -2
- package/docs/architecture/observability.md +6 -4
- package/docs/architecture/prompt-envelope-and-tools.md +1 -1
- package/docs/architecture/session-lifecycle.md +1 -1
- package/docs/architecture/tui-design.md +12 -9
- package/docs/gui/parity/02-slash-and-surfaces.md +1 -1
- package/docs/guide/commands-and-modes.md +91 -5
- package/docs/guide/configuration-and-targets.md +2 -2
- package/docs/guide/proactive-memory.md +3 -3
- package/package.json +1 -1
- package/src/cli/usage.ts +2 -2
- package/src/domains/gateway/mcp/client.ts +1 -1
- package/src/domains/observability/background-memory-usage.ts +1 -1
- package/src/domains/observability/cost.ts +3 -3
- package/src/domains/observability/extension.ts +1 -1
- package/src/domains/observability/metrics.ts +1 -1
- package/src/domains/quota/anthropic-max-provider.ts +134 -0
- package/src/domains/quota/anthropic-usage.ts +220 -0
- package/src/domains/quota/antigravity-provider.ts +339 -0
- package/src/domains/quota/cache.ts +87 -0
- package/src/domains/quota/claude-code-provider.ts +169 -0
- package/src/domains/quota/codex-provider.ts +237 -0
- package/src/domains/quota/presentation.ts +240 -0
- package/src/domains/quota/registry.ts +23 -0
- package/src/domains/quota/service.ts +93 -0
- package/src/domains/quota/summary-feed.ts +86 -0
- package/src/domains/quota/types.ts +84 -0
- package/src/domains/session/usage.ts +2 -2
- package/src/engine/acp/commands.ts +1 -1
- package/src/entry/orchestrator.ts +2 -2
- package/src/interactive/chat-loop-messages.ts +2 -2
- package/src/interactive/chat-loop.ts +3 -3
- package/src/interactive/dispatch-board.ts +21 -3
- package/src/interactive/footer/dashboard.ts +13 -0
- package/src/interactive/footer/key-hints.ts +2 -2
- package/src/interactive/footer/pages.ts +55 -20
- package/src/interactive/footer-panel.ts +1 -1
- package/src/interactive/interactive-application.ts +5 -2
- package/src/interactive/interactive-input-runtime.ts +2 -2
- package/src/interactive/interactive-presentation.ts +15 -0
- package/src/interactive/interactive-slash-runtime.ts +2 -2
- package/src/interactive/interactive-tickers.ts +7 -1
- package/src/interactive/overlay-general-openers.ts +12 -8
- package/src/interactive/overlay-key-routing.ts +6 -9
- package/src/interactive/overlay-lifecycle.ts +10 -6
- package/src/interactive/overlay-session-lifecycle.ts +3 -3
- package/src/interactive/quota-view.ts +229 -0
- package/src/interactive/session-last-turn.ts +1 -1
- package/src/interactive/session-usage-reseed.ts +2 -2
- package/src/interactive/side-question.ts +2 -2
- package/src/interactive/slash-commands.ts +8 -8
- package/src/interactive/turn-context.ts +1 -1
- package/src/interactive/turn-prewarm.ts +1 -1
- package/src/interactive/{cost-overlay.ts → usage-overlay.ts} +121 -33
- package/src/interactive/welcome-dashboard.ts +26 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to Clio Coder are documented in this file. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and versions follow Semantic Versioning; pre-1.0 minor releases may include incompatible changes.
|
|
4
4
|
|
|
5
|
+
## 0.5.1 - 2026-09-21
|
|
6
|
+
|
|
7
|
+
### subscription quota and unified usage
|
|
8
|
+
|
|
9
|
+
- Read what each connected subscription account has left, before a refusal rather than after it. Adapters for Claude Code, `anthropic-max`, the Codex CLI, and Antigravity read stored credentials and normalize every reported window into one model of consumed percentage, so a provider's own percentages and another's remaining fractions are never interpreted interchangeably. Readings are cached for about five minutes and refreshed lazily when a surface that shows them renders, never on a background timer; a failed refresh keeps the last good reading and marks it stale instead of blanking the account. Reads are read-only: no token refresh, no credential write, no sign-in flow. An expired credential is reported with the provider's own guidance. A provider's own severity word outranks Clio's fallback thresholds, a provider that reports no 5h window gets no 5h row, and two credentials on one Anthropic subscription fold into a single account so the apparent budget is not doubled. Accounts that merely show equal percentages never merge.
|
|
10
|
+
- Replace `/cost` with `/usage`, with no alias period. The overlay keeps the session token and cost accounting `/cost` carried and adds four views over it: Accounts (subscription and credit meters, every reported model group, reset countdowns with local reset times and an explicit time zone, and stale or expired readings), Session (the existing token, cost, cache, reasoning, and background-call breakdown), Models (each model's share of recorded processed tokens beside its detailed breakdown), and Workers (recorded tokens, cost, and context per run beside the shared account limit). Keys 1–4, Tab/Shift+Tab, and the arrows change views; the arrows, PgUp/PgDn, and Home/End scroll, and each view keeps its own position. `clio-coder usage report` is unchanged and remains the cross-session command.
|
|
11
|
+
- Show the same cached readings on the welcome launchpad, the expanded dashboard, worker cards, and fleet islands. The launchpad's `Subscriptions` row sits in the field list beside the wordmark and wraps, so no connected account and not the free local-inference row is clipped. Status puts the session total above the account meters and no longer claims that providers report no quota; Activity shows shared account headroom on worker cards; Context states that request occupancy and account-wide limits are different quantities.
|
|
12
|
+
- Give every percentage a direction in its own label. Detailed meters fill by consumed capacity, label that number `used`, and print the complement as `remaining`; compact badges carry the other direction and say `left`. A weekly window at 9% used and a footer badge reading `weekly 91% left` are the same reading.
|
|
13
|
+
- Fix the compact footer's two-line contract. Line 1 carries active work and model identity, the selected model's weekly headroom beside it when the account and model group are identifiable, and thinking and context detail as width allows. Line 2 always keeps the working directory and Git branch or dirty state; notices, tips, and urgent prompts borrow the rotating hint area beside them rather than replacing the row. Quota never occupies line 2, and the footer never substitutes an unrelated account's busier window for the selected model's. Rendering stays bounded at narrow widths.
|
|
14
|
+
- Present worker quota as shared account headroom, never as a measured per-worker share. A badge appears only for a supported local credential owner and the matching model group, keeping Antigravity's Gemini group distinct from its Claude and GPT group. Remote workers and unknown credential mappings stay unlinked rather than attributed to an account that may not be theirs, and Clio's own `openai-codex` sign-in is treated as separate storage from the Codex CLI's `auth.json`. Local inference is listed at `$0.00` with no subscription window consumed; no saved-quota figure is claimed, because per-target token attribution does not exist yet.
|
|
15
|
+
|
|
5
16
|
## 0.5.0 - 2026-09-20
|
|
6
17
|
|
|
7
18
|
### public launch and documentation
|
package/README.md
CHANGED
|
@@ -39,10 +39,11 @@ engineering. Connect a model on your workstation, your institution's gateway,
|
|
|
39
39
|
or a cloud service. Start with one conversation; add workers and specialized
|
|
40
40
|
workflows when the task calls for them.
|
|
41
41
|
|
|
42
|
-
**v0.5.
|
|
43
|
-
interface, and the bundled browser app
|
|
44
|
-
preview of the wider graphical experience.
|
|
45
|
-
changes and validate scientific results with your
|
|
42
|
+
**v0.5.1 adds subscription quota monitoring and a unified `/usage` dashboard.**
|
|
43
|
+
The terminal is the primary working interface, and the bundled browser app
|
|
44
|
+
provides documentation and an early preview of the wider graphical experience.
|
|
45
|
+
Clio is pre-1.0 software. Review changes and validate scientific results with your
|
|
46
|
+
own reference checks.
|
|
46
47
|
|
|
47
48
|
## Get started
|
|
48
49
|
|
|
@@ -101,6 +102,7 @@ For the bootstrap installer, source builds, upgrades, and removal, see
|
|
|
101
102
|
| **Keep long tasks moving** | Context accounting, compaction, task memory, durable conversation history, and fork/resume navigation. | [Memory](docs/guide/proactive-memory.md) |
|
|
102
103
|
| **Add domain knowledge** | Operator-activated skills, prompt templates, plugins, harness extensions, and local MCP tool servers. | [Library](library/README.md) |
|
|
103
104
|
| **Inspect what happened** | Tool activity, usage, traces, decisions, evidence, and worker receipts. | [Observability](docs/architecture/observability.md) |
|
|
105
|
+
| **Know what you have left** | `/usage` gathers subscription headroom for your connected accounts beside this session's tokens, cost, per-model shares, and worker accounting. | [Quota and usage](docs/guide/commands-and-modes.md#subscription-quota-and-session-usage) |
|
|
104
106
|
|
|
105
107
|
These capabilities work together. A worker result is a lead you can inspect;
|
|
106
108
|
a successful command is evidence of that command's outcome; neither substitutes
|
|
@@ -109,15 +111,16 @@ for scientific validation.
|
|
|
109
111
|
### Work in the terminal
|
|
110
112
|
|
|
111
113
|
The TUI keeps the conversation, tool activity, diffs, and permission decisions
|
|
112
|
-
in one place. Its footer shows the active model
|
|
113
|
-
|
|
114
|
+
in one place. Its footer shows the active model, its remaining weekly
|
|
115
|
+
subscription headroom where a connected account reports one, and context use;
|
|
116
|
+
dashboards provide more detail without taking over the conversation.
|
|
114
117
|
|
|
115
118
|
| Want to… | Use… |
|
|
116
119
|
| --- | --- |
|
|
117
120
|
| Find commands and shortcuts | `/help` |
|
|
118
121
|
| Choose a model or change settings | `/model`, `/settings` |
|
|
119
122
|
| Attach a project file | Type `@` and choose a path |
|
|
120
|
-
| Inspect context, memory, or
|
|
123
|
+
| Inspect context, memory, or usage | `/context`, `/memory`, `/usage` |
|
|
121
124
|
| Browse skills and recipes | `/library` or `Alt+L` |
|
|
122
125
|
| Inspect workers | `Alt+W` |
|
|
123
126
|
| Manage the task board | `/tasks` |
|
|
@@ -245,12 +248,12 @@ bootstrap installer, upgrades, selective resets, and removal.
|
|
|
245
248
|
<details>
|
|
246
249
|
<summary><strong>Build and install a published release from source</strong></summary>
|
|
247
250
|
|
|
248
|
-
From source, pin the release you intend to run. The following selects v0.5.
|
|
251
|
+
From source, pin the release you intend to run. The following selects v0.5.1
|
|
249
252
|
once its release tag is published; for development before the tag, use the
|
|
250
253
|
[contributor checkout instructions](CONTRIBUTING.md#set-up-a-checkout).
|
|
251
254
|
|
|
252
255
|
```bash
|
|
253
|
-
git clone --branch v0.5.
|
|
256
|
+
git clone --branch v0.5.1 https://github.com/iowarp/clio-coder.git
|
|
254
257
|
cd clio-coder
|
|
255
258
|
corepack enable pnpm
|
|
256
259
|
pnpm run install:local
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __clioCreateRequire } from "node:module"; const require = __clioCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
runClioCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6B76U65H.js";
|
|
5
5
|
import {
|
|
6
6
|
restoreStdout,
|
|
7
7
|
takeOverStdout,
|
|
@@ -129,4 +129,4 @@ async function runAcpCommand(args, options = {}) {
|
|
|
129
129
|
export {
|
|
130
130
|
runAcpCommand
|
|
131
131
|
};
|
|
132
|
-
//# sourceMappingURL=acp-
|
|
132
|
+
//# sourceMappingURL=acp-X3N7JDGS.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __clioCreateRequire } from "node:module"; const require = __clioCreateRequire(import.meta.url);
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-M5FPIZQW.js";
|
|
3
3
|
import "./chunk-HOYZUKG7.js";
|
|
4
4
|
import "./chunk-QHSBROEW.js";
|
|
5
5
|
import "./chunk-NASYVWDB.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-FBXTHPNZ.js";
|
|
7
7
|
import {
|
|
8
8
|
ensureClioState
|
|
9
9
|
} from "./chunk-NOCSM22Y.js";
|
|
@@ -160,4 +160,4 @@ function renderLine(spec) {
|
|
|
160
160
|
export {
|
|
161
161
|
runAgentsCommand
|
|
162
162
|
};
|
|
163
|
-
//# sourceMappingURL=agents-
|
|
163
|
+
//# sourceMappingURL=agents-UYGSMAWR.js.map
|