@adonis-agora/agent-dashboard 0.2.0 → 0.2.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # @adonis-agora/agent-dashboard
2
2
 
3
+ ## 0.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#6](https://github.com/DavideCarvalho/adonis-agent/pull/6) [`363382b`](https://github.com/DavideCarvalho/adonis-agent/commit/363382b5bd182f8de6184cd1c509209113710111) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - `pricingStore` and `governanceQueries` now default to mirroring the main `store`.
8
+
9
+ When `store` is a `stores.lucid()` store, the agent now defaults the pricing store and the governance read-model to a Lucid store on the **same connection** (tables auto-created) with no extra config — so cost tracking and the `/agent/governance/*` routes work out of the box. Previously both were opt-in and omitting them left cost `null` and the governance routes unmounted.
10
+
11
+ - Override by passing a factory/instance as before (e.g. a different connection, or `pricingStores.memory()` for tests).
12
+ - Set `pricingStore: false` / `governanceQueries: false` to disable (cost stays `null`; governance routes not mounted).
13
+ - When the main store is not Lucid, both stay off unless set explicitly.
14
+
15
+ Adds `lucidStoreConnection(factory)` to read a `stores.lucid()` factory's connection (used internally for the mirroring). The `@adonis-agora/agent` peer range on `@adonis-agora/agent-dashboard` widens to `^0.4.0`.
16
+
17
+ ## 0.2.1
18
+
19
+ ### Patch Changes
20
+
21
+ - [#2](https://github.com/DavideCarvalho/adonis-agent/pull/2) [`3ed796f`](https://github.com/DavideCarvalho/adonis-agent/commit/3ed796f5106416726526651088fb98c1d2495172) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - `autoCreateTables` now defaults to **`true`** for the Lucid stores — the agent lib manages its own
22
+ schema by default, completing the ecosystem convention (mirrors `@adonis-agora/durable` and
23
+ `@adonis-agora/authz`). On first use a store provisions the six shared agent tables with `CREATE
24
+ TABLE IF NOT EXISTS`; set `autoCreateTables: false` (on `stores.lucid`, `pricingStores.lucid`, or
25
+ `governanceQueries.lucid`) to opt out and run the published migration instead.
26
+
27
+ Crucially, provisioning is no longer the agent store's job alone: the **pricing store** and the
28
+ **governance read-model** also auto-provision on first use, sharing one memoized `CREATE TABLE` pass
29
+ per db client (new exported `ensureAgentTables`). This closes two real gaps — seeding model prices
30
+ before the first agent run, and opening the governance dashboard on a fresh deploy — that the
31
+ store-only auto-create left broken.
32
+
33
+ The dashboard's peer range is bumped to `@adonis-agora/agent@^0.3.0`.
34
+
3
35
  ## 0.2.0
4
36
 
5
37
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adonis-agora/agent-dashboard",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Read-only governance console (spend by model/actor, usage trend, recent threads & tool calls, quota) for @adonis-agora/agent — a dependency-light React SPA served by a thin AdonisJS provider. Part of the Agora ecosystem.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -37,7 +37,7 @@
37
37
  "sideEffects": false,
38
38
  "peerDependencies": {
39
39
  "@adonisjs/core": "^7.3.0",
40
- "@adonis-agora/agent": "^0.2.0"
40
+ "@adonis-agora/agent": "^0.4.0"
41
41
  },
42
42
  "peerDependenciesMeta": {
43
43
  "@adonisjs/core": {
@@ -57,7 +57,7 @@
57
57
  "typescript": "^5.4.0",
58
58
  "vite": "^7.0.0",
59
59
  "vitest": "^3.0.0",
60
- "@adonis-agora/agent": "0.2.0"
60
+ "@adonis-agora/agent": "0.4.0"
61
61
  },
62
62
  "engines": {
63
63
  "node": ">=22.0.0"