aweshare 0.5.7 → 0.5.8

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 (54) hide show
  1. package/README.ai.md +4 -3
  2. package/README.md +17 -11
  3. package/apps/agent/dist/cli.js +124 -53
  4. package/apps/agent/dist/cli.js.map +1 -1
  5. package/apps/agent/dist/daemon.d.ts +2 -2
  6. package/apps/agent/dist/daemon.js +4 -3
  7. package/apps/agent/dist/daemon.js.map +1 -1
  8. package/apps/agent/dist/hub.d.ts +27 -0
  9. package/apps/agent/dist/hub.js +31 -2
  10. package/apps/agent/dist/hub.js.map +1 -1
  11. package/apps/agent/dist/table.d.ts +2 -3
  12. package/apps/agent/dist/table.js +4 -6
  13. package/apps/agent/dist/table.js.map +1 -1
  14. package/apps/hub/dist/admin.d.ts +3 -1
  15. package/apps/hub/dist/admin.js +72 -2
  16. package/apps/hub/dist/admin.js.map +1 -1
  17. package/apps/hub/dist/auth.js +1 -1
  18. package/apps/hub/dist/auth.js.map +1 -1
  19. package/apps/hub/dist/cli.js +159 -83
  20. package/apps/hub/dist/cli.js.map +1 -1
  21. package/apps/hub/dist/config.d.ts +4 -2
  22. package/apps/hub/dist/config.js +6 -4
  23. package/apps/hub/dist/config.js.map +1 -1
  24. package/apps/hub/dist/consumer.d.ts +5 -1
  25. package/apps/hub/dist/consumer.js +34 -13
  26. package/apps/hub/dist/consumer.js.map +1 -1
  27. package/apps/hub/dist/db.d.ts +34 -10
  28. package/apps/hub/dist/db.js +76 -16
  29. package/apps/hub/dist/db.js.map +1 -1
  30. package/apps/hub/dist/http.d.ts +6 -2
  31. package/apps/hub/dist/http.js +8 -3
  32. package/apps/hub/dist/http.js.map +1 -1
  33. package/apps/hub/dist/invites.js +2 -2
  34. package/apps/hub/dist/invites.js.map +1 -1
  35. package/apps/hub/dist/limiter.d.ts +35 -4
  36. package/apps/hub/dist/limiter.js +45 -8
  37. package/apps/hub/dist/limiter.js.map +1 -1
  38. package/apps/hub/dist/local.js +11 -0
  39. package/apps/hub/dist/local.js.map +1 -1
  40. package/apps/hub/dist/server.js +4 -2
  41. package/apps/hub/dist/server.js.map +1 -1
  42. package/apps/hub/dist/table.d.ts +14 -3
  43. package/apps/hub/dist/table.js +11 -5
  44. package/apps/hub/dist/table.js.map +1 -1
  45. package/apps/hub/dist/tunnel.js +14 -1
  46. package/apps/hub/dist/tunnel.js.map +1 -1
  47. package/bin/aweshare.mjs +3 -3
  48. package/package.json +1 -1
  49. package/packages/protocol/dist/index.d.ts +1 -0
  50. package/packages/protocol/dist/index.js +1 -0
  51. package/packages/protocol/dist/index.js.map +1 -1
  52. package/packages/protocol/dist/time.d.ts +8 -0
  53. package/packages/protocol/dist/time.js +69 -0
  54. package/packages/protocol/dist/time.js.map +1 -0
package/README.ai.md CHANGED
@@ -233,7 +233,7 @@ Remind the consumer: prompts and responses transit the hub in plaintext — only
233
233
  ```
234
234
  Consumers redeem codes themselves (`aweshare consumer join`); producers via `aweshare producer join`.
235
235
  3. Administering a remote hub: run admin commands on the server (`ssh` + CLI, or `docker exec aweshare-hub aweshare hub ...`), or locally with `AWESHARE_HUB_URL=https://<hub-host>` plus the admin-token file in a local data dir — otherwise they fail with "no admin token" / connection refused.
236
- 4. Guardrails you can tune on request: per-consumer `aweshare hub limits NAME [--rps N] [--tpm N] [--max-total-tokens N] ...`, suspension `aweshare hub revoke --id N` / `restore --id N` (reversible, invite-keyed).
236
+ 4. Guardrails you can tune on request: per-consumer `aweshare hub limits NAME [--rps N] [--tpm N] [--max-total-tokens N] ...`, suspension `aweshare hub invite revoke N` / `restore N` (reversible, invite-keyed).
237
237
  5. Security notes for the operator: keep :8787 off the public internet behind TLS; a redeemed consumer key can call **every** offering on the hub; tokens/codes stored plaintext-recoverable (`hub list invites --reveal` / `--token`) means a data-dir leak exposes identities — guard it.
238
238
 
239
239
  ---
@@ -268,7 +268,8 @@ aweshare producer config path # config/secrets locations
268
268
  aweshare producer config show # config, secrets redacted
269
269
  aweshare producer doctor [--status] # diagnosis (with --status: instant, no network)
270
270
  aweshare producer list [--json] # this producer's offerings + drift
271
- aweshare producer usage [...] # who used this producer's models
271
+ aweshare producer list usage [...] # who used this producer's models
272
+ aweshare producer status # one-glance summary: process, config counts, health rollup
272
273
  aweshare consumer list --hub URL --token asc_... # hub catalog view
273
274
  aweshare hub status [--all] # capacity + offering health; --all adds rosters
274
275
  aweshare hub list invites [--reveal|--token] # invite ledger / codes / minted tokens
@@ -287,7 +288,7 @@ aweshare producer reload # re-read config + re-reg
287
288
  aweshare hub init # create data dir + admin token (printed once!)
288
289
  aweshare hub invite [--role producer|consumer] ... # mint one-time codes (printed once)
289
290
  aweshare hub limits NAME [--rps N] [--burst N] [--max-concurrent N] [--tpm N] [--max-total-tokens N] [--clear]
290
- aweshare hub revoke --id N / restore --id N # reversible suspension, by invite handle
291
+ aweshare hub invite revoke N / restore N # reversible suspension, by invite handle
291
292
  ```
292
293
 
293
294
  User-only commands (long-running, TTY-confirming, or one-time-secret-printing):
package/README.md CHANGED
@@ -14,7 +14,7 @@
14
14
  <a href="https://ko-fi.com/mugpeng"><img src="https://img.shields.io/badge/Ko--fi-Buy%20me%20a%20coffee-FF5E5B?style=flat-square&logo=ko-fi&logoColor=white" alt="Ko-fi"></a>
15
15
  </p>
16
16
  <p>
17
- <a href="https://github.com/wehuman01/aweshare-source/releases"><img src="https://img.shields.io/badge/version-0.5.7-7C3AED?style=flat-square" alt="Version"></a>
17
+ <a href="https://github.com/wehuman01/aweshare-source/releases"><img src="https://img.shields.io/badge/version-0.5.8-7C3AED?style=flat-square" alt="Version"></a>
18
18
  <a href="https://github.com/wehuman01/aweshare"><img src="https://img.shields.io/badge/node-%E2%89%A522-0EA5E9?style=flat-square" alt="Node"></a>
19
19
  <a href="https://github.com/wehuman01/aweshare/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-proprietary-E34F26?style=flat-square" alt="License"></a>
20
20
  <a href="https://www.npmjs.com/package/aweshare"><img src="https://img.shields.io/badge/npm-aweshare-7C3AED?style=flat-square" alt="npm package"></a>
@@ -56,7 +56,7 @@ Consumer (standard SDK, zero changes) Producer side
56
56
 
57
57
  - To route and meter, **consumer prompts and model responses transit the hub in plaintext — this is not end-to-end encryption**. The hub persists no request/response content, but the hub operator can technically see it. Only use a hub instance you trust — which is why the hub is open source and self-hostable.
58
58
  - Upstream API keys never leave the producer's device and are never sent to consumers. Tokens are stored twice on purpose: a **peppered SHA-256 hash** drives authentication, and the plaintext is kept so the operator can hand a lost one back (`hub list invites --token`). Invite codes work the same way — their plaintext is re-viewable with `hub list invites --reveal`. A DB leak therefore exposes every identity, so guard the data dir.
59
- - Token revocation is **reversible suspension** (`hub revoke --id N` / `hub restore --id N`, by invite), and an invite and the producer it minted move together: revoking a redeemed code suspends that producer (and closes its tunnel), and restoring from either handle revives both. Nothing is deleted on revoke — offerings and usage history survive a suspension.
59
+ - Token revocation is **reversible suspension** (`hub invite revoke N` / `hub invite restore N`, by invite), and an invite and the producer it minted move together: revoking a redeemed code suspends that producer (and closes its tunnel), and restoring from either handle revives both. Nothing is deleted on revoke — offerings and usage history survive a suspension.
60
60
 
61
61
  ### Compliance and disclaimer
62
62
 
@@ -137,13 +137,13 @@ Three token roles, one per party:
137
137
 
138
138
  | Role | Who holds it | How it's used |
139
139
  |---|---|---|
140
- | `admin` | hub operator (you only) | the admin REST API (`/admin/v1/*`); CLI side: `hub invite` (mint; `--list` for the ledger) / `status` / `revoke` / `restore` |
140
+ | `admin` | hub operator (you only) | the admin REST API (`/admin/v1/*`); CLI side: `hub invite` (mint) / `invite revoke\|restore` / `list invites` / `status` |
141
141
  | `producer` (`asp_...`) | the agent on the producer's machine | set as `token` in `~/.aweshare/config.toml`; the agent registers its offerings with it |
142
142
  | `consumer` (`asc_...`) | whoever calls the models | set in SDK env vars (`ANTHROPIC_AUTH_TOKEN` / `OPENAI_API_KEY`); it identifies the consumer for metering, limits and suspension |
143
143
 
144
144
  The producer's `name` becomes their alias namespace (the `peng/` in `peng/gpt-4o`).
145
145
 
146
- The operator owns admission: one-time invite codes for both roles, the only admission path (every identity carries its invite handle for its whole lifecycle). A redeemed consumer key may call **every** offering on the hub — if you let someone in, they can use what is shared. Guardrails: per-consumer `hub limits` (rate, concurrency, token budgets), per-offering caps (`maxConcurrentUsers`, `dailyTokens`) and `hub revoke` suspension, all enforced by the hub.
146
+ The operator owns admission: one-time invite codes for both roles, the only admission path (every identity carries its invite handle for its whole lifecycle). A redeemed consumer key may call **every** offering on the hub — if you let someone in, they can use what is shared. Guardrails: per-consumer `hub limits` (rate, concurrency, token budgets), per-offering caps (`maxConcurrentUsers`, `dailyTokens`) and `hub invite revoke` suspension, all enforced by the hub.
147
147
 
148
148
  #### 2. Producer first run (in this order)
149
149
 
@@ -256,7 +256,7 @@ backend = "ollama"
256
256
  upstreamModel = "qwen2.5:7b" # the real backend id (full tag from `ollama list`)
257
257
  maxConcurrencyPerUser = 1 # concurrent requests per consumer on this alias
258
258
  # maxConcurrentUsers = 3 # distinct concurrent consumers (hub default 3)
259
- # dailyTokens = 1000000 # shared tokens per UTC day (default 1M; 0 = unlimited)
259
+ # dailyTokens = 1000000 # shared tokens per Beijing day (default 1M; 0 = unlimited)
260
260
  ```
261
261
 
262
262
  One offering exposes exactly one upstream model: consumers call the alias and the hub rewrites the request's model to `upstreamModel` before dispatch — they can never pick another model. To share more models, add more `[[offerings]]`.
@@ -269,10 +269,12 @@ One alias can also speak several wire protocols at once: replace `backend = "…
269
269
  |---|---|---|---|
270
270
  | `maxConcurrencyPerUser` | 1 | concurrent requests **per consumer** on this alias | 429 `PRODUCER_MAX_CONCURRENCY` |
271
271
  | `maxConcurrentUsers` | 3 | distinct consumers with a request in flight on this alias | 429 `PRODUCER_MAX_USERS` |
272
- | `dailyTokens` | 1000000 | tokens (prompt + completion) shared across all consumers on this alias, per UTC day; `0` = unlimited | 429 `QUOTA_EXCEEDED` (resets at UTC midnight) |
272
+ | `dailyTokens` | 1000000 | tokens (prompt + completion) shared across all consumers on this alias, per Beijing day (UTC+8); `0` = unlimited | 429 `QUOTA_EXCEEDED` (resets at Beijing midnight) |
273
273
 
274
274
  `maxConcurrencyPerUser` caps each consumer's in-flight **requests**; `maxConcurrentUsers` caps in-flight **people** — a consumer firing 5 parallel requests needs `maxConcurrencyPerUser ≥ 5` for itself alone, while the total on the alias is bounded by `maxConcurrentUsers × maxConcurrencyPerUser`. Daily caps count recorded usage (see "Honest limits" below). (Renamed in v0.4.3 from `maxConcurrency`, which capped the alias's total in-flight requests.)
275
275
 
276
+ An exhausted daily budget can be reopened mid-day by the offering's **owner** — no restart, no re-register: `aweshare producer refresh ns/model` on the producer's machine re-anchors today's window at this moment (usage before it stops counting), `--add N` raises today's cap by N tokens until Beijing midnight, `--clear` drops both markers. For hub-hosted models the same verbs live under `aweshare hub produce refresh name` (`hub/` prefix optional). The split is deliberate: quota expansion is the owner's call — the hub operator can restrict a producer's model (`offering block`) but never spends more of its upstream budget; markers survive re-registers and lapse at Beijing midnight on their own. A permanent raise belongs in the config (`dailyTokens`), which hot-reloads.
277
+
276
278
  Key hygiene: use dedicated, least-privilege, revocable keys with budget alerts; keep `secrets.json` at 0600 and out of git/screenshots; rotate on suspected leaks. Before sharing, check the upstream's terms: account rules, subscription limits, forwarding and commercial-use constraints.
277
279
 
278
280
  **Account-login backends** (`login = "codex"`) authenticate with the producer machine's own `codex login` instead of a key — the fixed official upstream is `https://chatgpt.com/backend-api/codex`, responses wire. Other protocols or base URLs are rejected so the account credential cannot be sent elsewhere. How it behaves:
@@ -320,7 +322,7 @@ Honest limits: token-based caps count what upstreams report — Ollama streams r
320
322
 
321
323
  Error semantics: `401` invalid key · `401 TOKEN_REVOKED` suspended token (ask the operator to restore it) · `403 HUB_FULL` producer capacity reached · `404` unknown alias · `400 PROTOCOL_MISMATCH` protocol/alias mismatch · `429` rate limit, TPM or producer concurrency cap (`PRODUCER_MAX_USERS` = distinct-consumer cap; `QUOTA_EXCEEDED` = lifetime or daily token budget hit) · `502` upstream/tunnel failure (upstream 4xx/5xx passes through verbatim) · `503` producer offline / backend degraded · `504` timeout. Errors carry `{error:{code,message,requestId}}`; the requestId spans both sides' logs.
322
324
 
323
- Usage metering: one row per request (alias, declared upstream model, response-reported model when available, status, duration, byte counts, best-effort token counts), **zero content stored**. `aweshare hub list usage` (and `aweshare producer usage` on a producer's machine, scoped to its own models) answers "who used how much" by default: server-side aggregation on the hub's SQLite, one row per consumer × model — a person's rows stay together, busiest person and busiest model first — with request/error counts, best-effort token totals, an explicit unknown-token count (streaming backends that report no counts) and mean duration. The window defaults to 7 days and is printed with the table (`--since 30m\|12h\|7d\|…\|all`); `--group-by consumer` rolls up to per-person totals, `--group-by alias` to per-model totals. `--details` switches to the per-request log (`GET /admin/v1/usage`; admin sees everything, producers and consumers their own slice, rows carry the consumer/producer names).
325
+ Usage metering: one row per request (alias, declared upstream model, response-reported model when available, status, duration, byte counts, best-effort token counts), **zero content stored**. `aweshare hub list usage` (and `aweshare producer list usage` on a producer's machine, scoped to its own models) answers "who used how much" by default: server-side aggregation on the hub's SQLite, one row per consumer × model — a person's rows stay together, busiest person and busiest model first — with request/error counts, best-effort token totals, an explicit unknown-token count (streaming backends that report no counts) and mean duration. The window defaults to 7 days and is printed with the table (`--since 30m\|12h\|7d\|…\|all`); `--group-by consumer` rolls up to per-person totals, `--group-by alias` to per-model totals. `--details` switches to the per-request log (`GET /admin/v1/usage`; admin sees everything, producers and consumers their own slice, rows carry the consumer/producer names).
324
326
 
325
327
  ## Command reference
326
328
 
@@ -334,12 +336,13 @@ Both sides at a glance — details in the sections above.
334
336
  | `aweshare hub serve [--host H] [--port N]` | run the hub |
335
337
  | `aweshare hub produce [--host H] [--port N]` | run the hub with its own models attached — same as `serve`; the `[[backends]]`/`[[offerings]]` sections of `config.produce.toml` become `hub/…` offerings served in-process (keys in the data dir's secrets.json; edits hot-reload) |
336
338
  | `aweshare hub invite [--role producer\|consumer] [--name NAME] [--count N] [--expires-in D\|none]` | mint one-time invite codes (`asi_…`, printed once, expire after 7 d by default; re-view with `list invites --reveal`); `--expires-in` also bounds the lifetime of the token it mints — an expired key fails auth with 401 `TOKEN_EXPIRED` (`none` = code and identity never expire; identities minted before this change never expire); producer codes: bound (`--name`) or unbound (name + email at redeem, `--count` batches); consumer codes: always bound to one name |
339
+ | `aweshare hub invite revoke N` · `aweshare hub invite restore N` | kill an invite / undo — a redeemed code suspends the producer it minted, restore revives both |
337
340
  | `aweshare hub list invites [--reveal] [--token] [--json]` | the invite ledger: every code, the identity it minted and its lifecycle (pending/used/suspended/revoked/expired; a redeemed code shows `expired` once its identity's expiry passes); `--reveal` re-shows the codes, `--token` the minted tokens with last seen |
338
341
  | `aweshare hub status [--all]` | the hub's live state: producer slots, offerings counted per deduplicated alias (several protocols → one verdict, the worst), a per-alias table — the same columns as `consumer list` and `producer list`, worst status first — with live occupancy (`IN USE n/max`) and today's remaining daily tokens, and a last-5m requests/ok-rate/errors line from the usage summary (hub-admission 429s are not metered); identities appear as counts — `--all` prints the full producer/consumer rosters |
339
342
  | `aweshare hub limits NAME [--rps N] [--burst N] [--max-concurrent N] [--tpm N] [--max-total-tokens N] [--clear] [--json]` | show, merge or clear one consumer's limit overrides (unset keys keep the hub-wide defaults) |
340
343
  | `aweshare hub list usage [--details] [--consumer NAME] [--producer NAME] [--alias ns/model] [--group-by consumer-alias\|consumer\|alias] [--since 7d\|all] [--limit N] [--json]` | who used how much (default): aggregate per consumer × model, a person's rows together, busiest first — requests, errors, rate, best-effort token totals, unknown-token count, mean duration; window defaults to 7d and is printed with the table · `--details`: per-request log, newest first, zero content stored, each row naming its consumer |
341
- | `aweshare hub revoke --id N` · `aweshare hub restore --id N` | kill an invite / undo — a redeemed code suspends the producer it minted, restore revives both |
342
344
  | `aweshare hub offering block ALIAS` · `aweshare hub offering restore ALIAS` | the per-alias scalpel between doing nothing and revoking a whole producer: block one offering (every protocol row of the alias) — new requests get 503 `OFFERING_BLOCKED`, status shows `blocked`, the producer's other offerings keep serving. Manual blocks survive re-registers; auto blocks (model mismatch, see `autoBlockModelMismatch`) clear once the producer re-declares a different `upstreamModel` |
345
+ | `aweshare hub produce refresh NAME [--add N] [--clear] [--json]` | reopen a hub-hosted model's daily token budget mid-day (`hub/` prefix optional): bare call re-anchors today's window at this moment, `--add N` raises today's cap by N tokens until Beijing midnight, `--clear` drops both markers. Hub-hosted (`hub/…`) offerings only — a producer's models are its own to refresh |
343
346
 
344
347
  Token issuance runs through invites (both roles). `limits` and `list usage` are thin wrappers over the admin REST API (`/admin/v1/*`, see Endpoints and errors) — curl works too.
345
348
 
@@ -353,10 +356,12 @@ Token issuance runs through invites (both roles). `limits` and `list usage` are
353
356
  | `aweshare producer join --hub URL --code asi_… [--name NAME --email YOU@EXAMPLE.COM]` | redeem an invite code into a producer token and write it into the config (`--name`/`--email` for unbound codes; probes the hub first — plain HTTP outside the LAN needs `--allow-http`) |
354
357
  | `aweshare producer config path` · `config show` · `config edit` | locate / inspect (secrets redacted) / edit the config |
355
358
  | `aweshare producer doctor [--status]` | diagnose end to end: background instance, config, backend probes, hub (including how many of your offerings are registered), recent log (`--status` skips the network probes for an instant answer) |
356
- | `aweshare producer list [--json]` | what this producer has registered on the hub — alias, protocol, live status, caps, live occupancy (`IN USE`, distinct consumers in flight right now), today's token use — plus the local background instance state and drift against config.toml (hubUrl/token come from config.toml) |
357
- | `aweshare producer usage [--details] [--consumer NAME] [--alias ns/model] [--group-by consumer-alias\|consumer\|alias] [--since 7d\|all] [--limit N] [--json]` | who used this producer's models (the producer token scopes the hub's metering to its own slice): aggregate per consumer × model by default — a person's rows together, busiest first, window defaults to 7d · `--details`: per-request log, newest first, each row naming its consumer |
359
+ | `aweshare producer list [offerings] [--json] [--all]` | what this producer has registered on the hub — alias, protocol, live status, caps, live occupancy (`IN USE`, distinct consumers in flight right now), today's token use — plus the local background instance state and drift against config.toml (hubUrl/token come from config.toml); `--all`: every producer's registrations, the discovery view |
360
+ | `aweshare producer list usage [--details] [--consumer NAME] [--alias ns/model] [--group-by consumer-alias\|consumer\|alias] [--since 7d\|all] [--limit N] [--json]` | who used this producer's models (the producer token scopes the hub's metering to its own slice): aggregate per consumer × model by default — a person's rows together, busiest first, window defaults to 7d · `--details`: per-request log, newest first, each row naming its consumer |
361
+ | `aweshare producer status` | the live one-glance summary: local process, config counts, registered-offering health rollup and drift — the full table is `list offerings` |
358
362
  | `aweshare producer start [--background]` | connect and relay (long-running; `--background` detaches it — logs to `~/.aweshare/producer.log`, pid to `producer.pid`) |
359
363
  | `aweshare producer reload` | signal the background producer (SIGHUP) to re-read `config.toml` + `secrets.json` and re-register its offerings on the open tunnel — no disconnect; a broken config keeps the previous values |
364
+ | `aweshare producer refresh ALIAS [--add N] [--clear] [--json]` | reopen one of this producer's offerings mid-day, hub-side and effective at once (works even while the agent is stopped): bare call re-anchors today's window at this moment — usage before it stops counting; `--add N` raises today's cap by N tokens until Beijing midnight (replaces an earlier bonus); `--clear` drops both markers. Own offerings only; a permanent raise belongs in `dailyTokens` |
360
365
  | `aweshare producer stop` | stop the background producer (SIGTERM, SIGKILL after 10s) and clean up its pidfile |
361
366
 
362
367
  **Consumer** — two commands, on the consumer's machine; day-to-day they point a standard SDK at the hub (see Consumer tool configuration):
@@ -390,10 +395,11 @@ The hub reads `config.toml` from its data dir (`~/.aweshare-hub/config.toml`; Do
390
395
  | `AWESHARE_MAX_PRODUCERS` | 10 | max active producers — token issuance (admin API), invite redeem and restore refuse with `403 HUB_FULL` when full |
391
396
  | `AWESHARE_AUTO_BLOCK_MODEL_MISMATCH` | false | auto-block an offering after 2 consecutive successful responses report a different model than declared. Off by default: mismatches are logged once (flip) and visible in `hub status` / `consumer list` / `list usage --details` either way — the hub is report-only until the operator opts in. An auto block clears when the producer re-declares a different `upstreamModel`; an explicit manual `offering block` takes precedence and always persists; reloads via SIGHUP |
392
397
  | `AWESHARE_NO_UPDATE_CHECK` | unset | set to `1` to disable the passive update reminder |
398
+ | `AWESHARE_TIMEZONE` | `Asia/Shanghai` | display zone for every human-readable time the CLIs print (table cells, `since …` windows, log lines). Any IANA name; the wire, SQLite and `--json` stay UTC ISO. Read by whichever CLI renders, so it also applies to `docker exec` — set it on the container to change `hub list`/`hub status` output. Not a server tunable: no SIGHUP reload, no config.toml key |
393
399
 
394
400
  Health: agent heartbeats every 15s, silent 45s = dead; backends with 2 consecutive AUTH/QUOTA failures auto-degrade (alias shows `degraded`, dispatch stops), 30s probes recover. A new connection with the same producer token replaces the old one (latest-wins).
395
401
 
396
- Model honesty: an offering's `upstreamModel` is the producer's claim — the hub compares it with the bounded model id reported by each successful response (`model` / `message.model` / `response.model`). This is consistency evidence, not proof of the model's underlying weights: a producer or upstream router can still rewrite that metadata. The observation rides the existing usage meter, never rewrites the relayed response, and is scoped to the same alias, protocol and current declaration. It appears in the `OBSERVED MODEL` column, `list usage --details`, and `/v1/catalog` as `observedModel`, `observedAt`, `modelMatch` and the backward-compatible `modelVerified`. Comparison is token-aware: exact ids and explicit date/revision suffixes are affirmative; vendor prefixes are tolerated; adjacent variants such as `gpt-4`/`gpt-4o` and `gpt-4o`/`gpt-4o-mini` mismatch; a less-specific response is marked `?`/`insufficient`, not verified. Handling is tiered: default **report-only**, manual `hub offering block ALIAS` or whole-producer `hub revoke`, and opt-in auto-block after 2 consecutive mismatches. Manual blocks override automatic ones. `producer doctor` probes every distinct configured model and reports the response-named id with the same evidence boundary.
402
+ Model honesty: an offering's `upstreamModel` is the producer's claim — the hub compares it with the bounded model id reported by each successful response (`model` / `message.model` / `response.model`). This is consistency evidence, not proof of the model's underlying weights: a producer or upstream router can still rewrite that metadata. The observation rides the existing usage meter, never rewrites the relayed response, and is scoped to the same alias, protocol and current declaration. It appears in the `OBSERVED MODEL` column, `list usage --details`, and `/v1/catalog` as `observedModel`, `observedAt`, `modelMatch` and the backward-compatible `modelVerified`. Comparison is token-aware: exact ids and explicit date/revision suffixes are affirmative; vendor prefixes are tolerated; adjacent variants such as `gpt-4`/`gpt-4o` and `gpt-4o`/`gpt-4o-mini` mismatch; a less-specific response is marked `?`/`insufficient`, not verified. Handling is tiered: default **report-only**, manual `hub offering block ALIAS` or whole-producer `hub invite revoke`, and opt-in auto-block after 2 consecutive mismatches. Manual blocks override automatic ones. `producer doctor` probes every distinct configured model and reports the response-named id with the same evidence boundary.
397
403
 
398
404
  Updating a npm install: `aweshare self-update` (asks before installing; `--check` only shows versions). The CLI also reminds you at most once a day when a newer npm release exists.
399
405
 
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
- // Command set: init, join, config (path|show|edit), doctor, list, status,
3
- // usage, start, reload, stop.
2
+ // Command set: init, join, config (path|show|edit), doctor, list
3
+ // (offerings|usage), status, start, reload, refresh, stop.
4
4
  // Everything that talks to the hub goes through src/hub.ts (one UA, one
5
5
  // timeout policy, one error shape).
6
6
  import { spawn } from 'node:child_process';
7
7
  import { existsSync, readFileSync, statSync, watchFile } from 'node:fs';
8
8
  import { join } from 'node:path';
9
- import { INVITE_PATTERN } from '../../../packages/protocol/dist/index.js';
9
+ import { fmtDate, INVITE_PATTERN } from '../../../packages/protocol/dist/index.js';
10
10
  import pino from 'pino';
11
11
  import { agentDir, applyJoinToConfig, CONFIG_TEMPLATE, escapeTomlString, loadAgentConfig, redactConfig, SECRETS_TEMPLATE, writeFileAtomic, } from './config.js';
12
12
  import { AgentConnection } from './connection.js';
13
13
  import { clearPidIfMine, formatLogLine, isProducerAlive, logFileOf, readPid, reloadBackground, spawnBackground, stopBackground, tailLog, uptimeOf, } from './daemon.js';
14
14
  import { runDoctor } from './doctor.js';
15
- import { assertWireCompatible, errorMessage, fetchOfferings, fetchUsage, fetchUsageSummary, hostIsLocal, plainHttpHost, probeHub, redeemInvite, } from './hub.js';
15
+ import { assertWireCompatible, errorMessage, fetchOfferings, fetchUsage, fetchUsageSummary, hostIsLocal, plainHttpHost, probeHub, redeemInvite, refreshQuota, } from './hub.js';
16
16
  import { driftSummary, renderOfferings, renderProducerStatus, renderUsage, renderUsageSummary, } from './table.js';
17
17
  const VERSION = JSON.parse(readFileSync(new URL('../../../package.json', import.meta.url), 'utf8')).version;
18
18
  // One-liners only; flags per command live in their own -h, everything else in README.
@@ -29,11 +29,11 @@ Commands:
29
29
  join Redeem an invite code into a producer token.
30
30
  config Show or edit the config (path | show | edit).
31
31
  doctor Diagnose: instance, config, backends, hub (--status for the quick view).
32
- list Show what this producer has registered on the hub.
33
- status Summarize this producer's config, process and registered models.
34
- usage Who used this producer's models: summary (default) or --details.
32
+ list Read records: offerings (the catalog, default) or usage (the meter).
33
+ status Live snapshot: process, config counts, registered health, drift.
35
34
  start Connect, register offerings, relay (--background to daemonize).
36
35
  reload Force the background producer to re-read its config now.
36
+ refresh Re-anchor or raise one offering's daily token budget for today.
37
37
  stop Stop the background producer and clean up its pidfile.`;
38
38
  const COMMAND_HELP = {
39
39
  init: `Usage: aweshare producer init [OPTIONS]
@@ -76,47 +76,50 @@ Options:
76
76
  --status Quick view: instance state and recent log only; skips every
77
77
  network probe, so it always answers instantly.
78
78
  -h, --help Show this message and exit.`,
79
- list: `Usage: aweshare producer list [OPTIONS]
79
+ list: `Usage: aweshare producer list [offerings|usage] [OPTIONS]
80
80
 
81
- Show what this producer has registered on the hub — alias, protocol, live
82
- status, per-offering caps, live occupancy (IN USE: distinct consumers with
83
- a request in flight right now) and today's remaining tokens — plus the local
84
- background instance state and any drift against config.toml.
81
+ Read this producer's records (default: offerings). The live one-glance
82
+ summary is 'aweshare producer status'; the per-check diagnosis is doctor.
85
83
 
86
- Options:
87
- --json Print the raw API response instead of a table.
88
- --all Show every producer's registrations on the hub (the discovery view
89
- consumers get from the catalog), not just this producer's. Skips
90
- the local instance line and drift check. Older hubs ignore the
91
- flag and answer with your slice only.
92
- -h, --help Show this message and exit.`,
93
- status: `Usage: aweshare producer status
84
+ Commands:
85
+ offerings What this producer has registered on the hub — alias, protocol,
86
+ live status, per-offering caps, live occupancy (IN USE: distinct
87
+ consumers with a request in flight right now) and today's
88
+ remaining tokens plus the local background instance state and
89
+ any drift against config.toml.
90
+ usage Who used this producer's models: aggregated on the hub, one row
91
+ per consumer × model (default) — a person's rows stay together,
92
+ busiest person and busiest model first. The producer token
93
+ scopes everything to this producer's slice. --details switches
94
+ to the request log instead: newest first, one row per request,
95
+ zero content stored, each row naming the consumer that made it.
94
96
 
95
- Summarize this producer's local process, config and registered offering
96
- health. The per-model table includes live status and configured caps; no
97
- token or upstream secret is shown.
98
-
99
- Options:
100
- -h, --help Show this message and exit.`,
101
- usage: `Usage: aweshare producer usage [OPTIONS]
97
+ Options (offerings only):
98
+ --json Print the raw API response instead of a table.
99
+ --all Show every producer's registrations on the hub (the discovery view
100
+ consumers get from the catalog), not just this producer's. Skips
101
+ the local instance line and drift check. Older hubs ignore the
102
+ flag and answer with your slice only.
102
103
 
103
- Who used this producer's models: aggregated on the hub, one row per
104
- consumer × model (default) a person's rows stay together, busiest person
105
- and busiest model first. The producer token scopes everything to this
106
- producer's slice; narrow further with --consumer/--alias.
104
+ Options (usage only):
105
+ --details Show the per-request log instead of the summary.
106
+ --consumer NAME Only rows for this consumer.
107
+ --alias ALIAS Only rows for this alias (one of your offerings).
108
+ --group-by KEY consumer × model (default), consumer or alias.
109
+ --since DUR Window: 30m, 12h, 7d (default), 30d… or all.
110
+ --limit N --details only: rows to show, 1..1000 (default 100).
111
+ --json Print the raw API response instead of a table.
112
+ -h, --help Show this message and exit.`,
113
+ status: `Usage: aweshare producer status
107
114
 
108
- --details switches to the request log instead: newest first, one row per
109
- request, zero content stored, each row naming the consumer that made it.
115
+ The live one-glance summary: local process, config counts, the health
116
+ rollup of registered offerings and any drift against config.toml. The
117
+ full per-model table lives in 'aweshare producer list offerings'; the
118
+ per-check diagnosis in 'aweshare producer doctor'. No token or upstream
119
+ secret is shown.
110
120
 
111
121
  Options:
112
- --details Show the per-request log instead of the summary.
113
- --consumer NAME Only rows for this consumer.
114
- --alias ALIAS Only rows for this alias (one of your offerings).
115
- --group-by KEY consumer × model (default), consumer or alias.
116
- --since DUR Window: 30m, 12h, 7d (default), 30d… or all.
117
- --limit N --details only: rows to show, 1..1000 (default 100).
118
- --json Print the raw API response instead of a table.
119
- -h, --help Show this message and exit.`,
122
+ -h, --help Show this message and exit.`,
120
123
  start: `Usage: aweshare producer start [OPTIONS]
121
124
 
122
125
  Connect to the hub, register offerings, relay requests.
@@ -141,6 +144,22 @@ changes need a restart.`,
141
144
  ('aweshare producer doctor --status' shows it).
142
145
 
143
146
  Options:
147
+ -h, --help Show this message and exit.`,
148
+ refresh: `Usage: aweshare producer refresh ALIAS [OPTIONS]
149
+
150
+ Act on the daily token budget of one of this producer's registered
151
+ offerings — hub-side state, effective at once, no reload or restart.
152
+ A bare call re-anchors today's window at this moment: usage before it
153
+ stops counting against the cap. --add N raises today's cap by N tokens
154
+ until Beijing midnight (replaces any earlier bonus). --clear drops both
155
+ markers. A permanent raise belongs in config.toml (dailyTokens), which
156
+ hot-reloads. Own offerings only — hub-hosted models (hub/...) are the
157
+ hub operator's to refresh (aweshare hub produce refresh).
158
+
159
+ Options:
160
+ --add N Raise today's cap by N tokens until Beijing midnight.
161
+ --clear Drop the window marker and any bonus.
162
+ --json Print the raw API response instead of text.
144
163
  -h, --help Show this message and exit.`,
145
164
  stop: `Usage: aweshare producer stop
146
165
 
@@ -151,15 +170,16 @@ Options:
151
170
  -h, --help Show this message and exit.`,
152
171
  };
153
172
  // Flags each command accepts (beyond -h/--help); anything else is a typo and must fail loudly.
173
+ // `list` holds the union — each subcommand rejects the other's flags below.
154
174
  const COMMAND_FLAGS = {
155
175
  init: ['hub', 'token'],
156
176
  join: ['hub', 'code', 'name', 'email', 'allow-http'],
157
177
  doctor: ['status'],
158
- list: ['json', 'all'],
178
+ list: ['json', 'all', 'details', 'consumer', 'alias', 'limit', 'group-by', 'since'],
159
179
  status: [],
160
- usage: ['consumer', 'alias', 'limit', 'group-by', 'since', 'details', 'json'],
161
180
  start: ['background'],
162
181
  reload: [],
182
+ refresh: ['add', 'clear', 'json'],
163
183
  stop: [],
164
184
  };
165
185
  function checkFlags(cmd, flags) {
@@ -347,7 +367,21 @@ function instanceLine(dir) {
347
367
  const up = uptimeOf(pid);
348
368
  return `background running (pid ${pid}${up ? `, up ${up}` : ''})`;
349
369
  }
350
- async function runList(dir, flags) {
370
+ async function runList(dir, flags, positional) {
371
+ // the read verbs: the catalog (default) and the meter; the live summary is
372
+ // `status` — same shape as the hub's `list invites|usage`
373
+ const sub = positional[0] ?? 'offerings';
374
+ if (positional[1])
375
+ fail(`unexpected argument '${positional[1]}' (see: aweshare producer list -h)`);
376
+ if (sub === 'usage')
377
+ return await runUsage(dir, flags);
378
+ if (sub !== 'offerings') {
379
+ fail(`unknown list target '${sub}' — expected offerings or usage`);
380
+ }
381
+ for (const flag of ['details', 'consumer', 'alias', 'limit', 'group-by', 'since']) {
382
+ if (flags.has(flag))
383
+ fail(`--${flag} applies to 'list usage', not the catalog`);
384
+ }
351
385
  const { config } = loadAgentConfig(dir);
352
386
  const all = flags.get('all') === 'true';
353
387
  const offerings = await fetchOfferings(config.hubUrl, config.token, all);
@@ -371,6 +405,8 @@ async function runList(dir, flags) {
371
405
  console.log(drift ?? `${configAliases.length} of ${configAliases.length} config offering(s) registered`);
372
406
  }
373
407
  async function runStatus(dir) {
408
+ // the compact live snapshot — the full table lives in `list offerings`, so
409
+ // this stays the one-glance view (rollup counts, no per-model rows)
374
410
  const { config } = loadAgentConfig(dir);
375
411
  const offerings = await fetchOfferings(config.hubUrl, config.token);
376
412
  const hubAliases = offerings.map((o) => o.alias);
@@ -383,14 +419,12 @@ async function runStatus(dir) {
383
419
  offerings,
384
420
  drift: driftSummary(configAliases, hubAliases),
385
421
  }));
386
- console.log();
387
- console.log(renderOfferings(offerings));
388
422
  }
389
423
  /** Usage views: detail log (default) or `summary` aggregate. The producer
390
424
  * token scopes both to this producer's models on the hub side. */
391
- async function runUsage(dir, flags, positional) {
392
- if (positional[0])
393
- fail(`unexpected argument '${positional[0]}' summaries are the default view now; the request log is --details (see: aweshare producer usage -h)`);
425
+ async function runUsage(dir, flags) {
426
+ if (flags.has('all'))
427
+ fail("--all applies to 'list offerings', not the meter");
394
428
  const { config } = loadAgentConfig(dir);
395
429
  const consumer = flags.get('consumer');
396
430
  const alias = flags.get('alias');
@@ -416,7 +450,7 @@ async function runUsage(dir, flags, positional) {
416
450
  }
417
451
  const window = since === 'all'
418
452
  ? 'all time'
419
- : `since ${new Date(Date.now() - sinceMs(since)).toISOString().slice(0, 10)} (${since})`;
453
+ : `since ${fmtDate(new Date(Date.now() - sinceMs(since)))} (${since})`;
420
454
  const grouping = group === 'alias' ? 'alias' : group === 'consumer' ? 'consumer' : 'consumer × model';
421
455
  console.log(`usage ${window} — group: ${grouping}`);
422
456
  console.log(renderUsageSummary(rows, usageGroup));
@@ -531,6 +565,41 @@ async function runReload(dir) {
531
565
  }
532
566
  console.log('reload signal sent — check producer.log for the result');
533
567
  }
568
+ /** Owner-side quota refresh for one of this producer's offerings: hub-side
569
+ * state, so it works whether or not the background producer is running. */
570
+ async function runRefresh(dir, flags, positional) {
571
+ const alias = positional[0];
572
+ if (!alias)
573
+ fail('offering alias is required (ns/model — see: aweshare producer refresh -h)');
574
+ if (positional[1])
575
+ fail(`unexpected argument '${positional[1]}' (see: aweshare producer refresh -h)`);
576
+ const rawAdd = flags.get('add');
577
+ let add;
578
+ if (rawAdd !== undefined) {
579
+ add = Number(rawAdd);
580
+ if (!Number.isSafeInteger(add) || add <= 0)
581
+ fail(`--add must be a positive integer, got '${rawAdd}'`);
582
+ }
583
+ const clear = flags.get('clear') === 'true';
584
+ if (clear && add !== undefined)
585
+ fail('--clear drops both markers — drop --add too');
586
+ const { config } = loadAgentConfig(dir);
587
+ const out = await refreshQuota(config.hubUrl, config.token, { alias, add, clear });
588
+ if (flags.get('json') === 'true') {
589
+ console.log(JSON.stringify(out, null, 2));
590
+ return;
591
+ }
592
+ const fmt = (n) => n.toLocaleString('en-US');
593
+ if (out.reset)
594
+ console.log(`✓ ${out.alias} — today's window restarts now`);
595
+ else if (out.bonus !== null)
596
+ console.log(`✓ ${out.alias} — today's cap +${fmt(out.bonus)} until ${out.bonusUntil}`);
597
+ else
598
+ console.log(`✓ ${out.alias} — refresh markers cleared, the declared budget applies`);
599
+ console.log(` today: ${fmt(out.quota.remaining)} of ${fmt(out.quota.cap)} left (${fmt(out.quota.used)} used) — resets ${out.quota.resetsAt}`);
600
+ if (out.reset)
601
+ console.log(` undo: aweshare producer refresh ${out.alias} --clear`);
602
+ }
534
603
  /** Stop needs neither config nor secrets — a stale pidfile must stay cleanable
535
604
  * even when config.toml is broken. */
536
605
  async function runStop(dir) {
@@ -579,19 +648,21 @@ async function main() {
579
648
  return await printDoctorReport(dir, flags);
580
649
  }
581
650
  case 'list':
582
- noPositionals(cmd, positional);
583
- return await runList(dir, flags);
651
+ return await runList(dir, flags, positional);
584
652
  case 'status':
585
653
  noPositionals(cmd, positional);
586
654
  return await runStatus(dir);
587
655
  case 'usage':
588
- return await runUsage(dir, flags, positional);
656
+ // usage became a `list` subcommand — the read surface is list + status
657
+ return fail("'producer usage' moved — it is 'aweshare producer list usage' now");
589
658
  case 'start':
590
659
  noPositionals(cmd, positional);
591
660
  return await runStart(dir, flags);
592
661
  case 'reload':
593
662
  noPositionals(cmd, positional);
594
663
  return await runReload(dir);
664
+ case 'refresh':
665
+ return await runRefresh(dir, flags, positional);
595
666
  case 'stop':
596
667
  noPositionals(cmd, positional);
597
668
  return await runStop(dir);
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,0EAA0E;AAC1E,8BAA8B;AAC9B,wEAAwE;AACxE,oCAAoC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CA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OAAO,MAAM,SAAS,CAAC,GAAG,CAAC,CAAA;QAC7B,KAAK,SAAS;YACZ,OAAO,MAAM,UAAU,CAAC,GAAG,EAAE,KAAK,EAAE,UAAU,CAAC,CAAA;QACjD,KAAK,MAAM;YACT,aAAa,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;YAC9B,OAAO,MAAM,OAAO,CAAC,GAAG,CAAC,CAAA;QAC3B;YACE,IAAI,CAAC,oBAAoB,GAAG,OAAO,KAAK,EAAE,CAAC,CAAA;IAC/C,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA"}
@@ -36,6 +36,6 @@ export declare function reloadBackground(dir: string): boolean;
36
36
  export declare function stopBackground(dir: string, opts?: StopOptions): Promise<StopResult>;
37
37
  /** Last n lines of the log file, oldest first; empty when there is no file. */
38
38
  export declare function tailLog(path: string, n: number): string[];
39
- /** Render one log line for humans: pino JSON becomes "TIME LEVEL msg",
40
- * anything else passes through untouched. */
39
+ /** Render one log line for humans: pino JSON becomes "TIME LEVEL msg"
40
+ * (TIME in the display zone), anything else passes through untouched. */
41
41
  export declare function formatLogLine(line: string): string;
@@ -5,6 +5,7 @@ import { execFileSync, spawn } from 'node:child_process';
5
5
  import { closeSync, existsSync, mkdirSync, openSync, readFileSync, rmSync } from 'node:fs';
6
6
  import { dirname, join } from 'node:path';
7
7
  import { fileURLToPath } from 'node:url';
8
+ import { fmtLogTime } from '../../../packages/protocol/dist/index.js';
8
9
  import { writeFileAtomic } from './config.js';
9
10
  const TERM_GRACE_MS = 10_000;
10
11
  const KILL_GRACE_MS = 2_000;
@@ -169,12 +170,12 @@ const LEVEL_NAMES = {
169
170
  50: 'ERROR',
170
171
  60: 'FATAL',
171
172
  };
172
- /** Render one log line for humans: pino JSON becomes "TIME LEVEL msg",
173
- * anything else passes through untouched. */
173
+ /** Render one log line for humans: pino JSON becomes "TIME LEVEL msg"
174
+ * (TIME in the display zone), anything else passes through untouched. */
174
175
  export function formatLogLine(line) {
175
176
  try {
176
177
  const rec = JSON.parse(line);
177
- const time = typeof rec.time === 'number' ? new Date(rec.time).toISOString() : rec.time;
178
+ const time = rec.time === undefined ? undefined : fmtLogTime(rec.time);
178
179
  const level = typeof rec.level === 'number' ? (LEVEL_NAMES[rec.level] ?? String(rec.level)) : undefined;
179
180
  return [time, level, rec.msg].filter(Boolean).join(' ');
180
181
  }