@adonis-agora/agent-dashboard 0.4.0 → 0.5.0
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 +32 -0
- package/dist/spa/assets/index-CkOAJYbh.js +9 -0
- package/dist/spa/index.html +1 -1
- package/dist/src/client/agent-client.d.ts +9 -1
- package/dist/src/client/agent-client.d.ts.map +1 -1
- package/dist/src/client/agent-client.js +13 -0
- package/dist/src/client/agent-client.js.map +1 -1
- package/dist/src/client/types.d.ts +55 -1
- package/dist/src/client/types.d.ts.map +1 -1
- package/package.json +7 -7
- package/dist/spa/assets/index-DR5D-Xzw.js +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @adonis-agora/agent-dashboard
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`4e3a372`](https://github.com/DavideCarvalho/adonis-agent/commit/4e3a372e9ecf53ec4c34bbe31ab6177262b0dcd5) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Add `GET`/`POST /agent/governance/pricing` and a Pricing panel in the console.
|
|
8
|
+
|
|
9
|
+
The `pricingStore` bound to the agent (default-mirrored from a Lucid `store`, or opt-in for other
|
|
10
|
+
backends) was already driving cost accounting for runs, but had no read/write surface of its own —
|
|
11
|
+
operators had to reach for the database directly to see or change a model's per-1M-token rates. The
|
|
12
|
+
two new routes expose `AgentPricingStore.listCurrentPrices()`/`upsertModelPrice()` behind the same
|
|
13
|
+
authenticated + authorized governance gate as every other `/agent/governance/*` route, mounted only
|
|
14
|
+
when a pricing store is bound. The dashboard's new "Pricing" section reads and edits rates through
|
|
15
|
+
them.
|
|
16
|
+
|
|
17
|
+
- [`4e3a372`](https://github.com/DavideCarvalho/adonis-agent/commit/4e3a372e9ecf53ec4c34bbe31ab6177262b0dcd5) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Add a thread governance drill-down: `GET /agent/governance/threads/:id` and a `ThreadDetailView` you
|
|
18
|
+
reach by clicking a row in the console's Recent threads table.
|
|
19
|
+
|
|
20
|
+
`AgentGovernanceQueries` gets a new optional `threadDetail(threadId)` method returning the thread's
|
|
21
|
+
metadata plus a lifetime usage rollup (total tokens, cost, run/message counts) and its most recent
|
|
22
|
+
runs/messages — implemented in both `LucidGovernanceQueries` and `InMemoryGovernanceQueries`. It's
|
|
23
|
+
optional so a third-party or pre-existing adapter that predates it doesn't break: the route responds
|
|
24
|
+
`501` instead of the dashboard hitting a missing endpoint.
|
|
25
|
+
|
|
26
|
+
The Recent threads and Tool calls panels also gain "Load more" pagination instead of a fixed row cap.
|
|
27
|
+
|
|
28
|
+
- [`4e3a372`](https://github.com/DavideCarvalho/adonis-agent/commit/4e3a372e9ecf53ec4c34bbe31ab6177262b0dcd5) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - `RunReliability` (from `GET /agent/governance/reliability`) gains two optional fields: `byAgent` (run
|
|
29
|
+
and failure counts per agent, highest call count first) and `trend` (daily run/failure counts over the
|
|
30
|
+
same range, oldest first) — implemented in both `LucidGovernanceQueries` and
|
|
31
|
+
`InMemoryGovernanceQueries`. Both are optional so an adapter that predates them can keep returning the
|
|
32
|
+
existing shape; the dashboard's Reliability section renders a trend chart and a by-agent breakdown when
|
|
33
|
+
present and stays as before when absent.
|
|
34
|
+
|
|
3
35
|
## 0.4.0
|
|
4
36
|
|
|
5
37
|
### Minor Changes
|