@adonis-agora/agent 0.82.0 → 0.84.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 +23 -0
- package/dist/assets/spa/assets/{index-DMoSumym.js → index-BsGunSCg.js} +2 -2
- package/dist/assets/spa/index.html +1 -1
- package/dist/src/agent-loop.d.ts.map +1 -1
- package/dist/src/agent-loop.js +94 -6
- package/dist/src/agent-loop.js.map +1 -1
- package/dist/src/dead-run.d.ts +1 -0
- package/dist/src/dead-run.d.ts.map +1 -1
- package/dist/src/dead-run.js +7 -1
- package/dist/src/dead-run.js.map +1 -1
- package/dist/src/diagnostics.d.ts +48 -1
- package/dist/src/diagnostics.d.ts.map +1 -1
- package/dist/src/diagnostics.js +6 -0
- package/dist/src/diagnostics.js.map +1 -1
- package/dist/src/durable/agent-run-workflow.d.ts.map +1 -1
- package/dist/src/durable/agent-run-workflow.js +8 -2
- package/dist/src/durable/agent-run-workflow.js.map +1 -1
- package/dist/src/genui-telemetry.d.ts +3 -5
- package/dist/src/genui-telemetry.d.ts.map +1 -1
- package/dist/src/genui-telemetry.js +4 -19
- package/dist/src/genui-telemetry.js.map +1 -1
- package/dist/src/index.d.ts +3 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/opencode/turns.d.ts.map +1 -1
- package/dist/src/opencode/turns.js +2 -1
- package/dist/src/opencode/turns.js.map +1 -1
- package/dist/src/run-metrics.d.ts +45 -0
- package/dist/src/run-metrics.d.ts.map +1 -0
- package/dist/src/run-metrics.js +46 -0
- package/dist/src/run-metrics.js.map +1 -0
- package/dist/src/runners/inline-agent-runner.d.ts.map +1 -1
- package/dist/src/runners/inline-agent-runner.js +13 -3
- package/dist/src/runners/inline-agent-runner.js.map +1 -1
- package/dist/src/spi/agent-store.d.ts +9 -0
- package/dist/src/spi/agent-store.d.ts.map +1 -1
- package/dist/src/spi/agent-store.js.map +1 -1
- package/dist/src/spi/governance-queries.d.ts +29 -0
- package/dist/src/spi/governance-queries.d.ts.map +1 -1
- package/dist/src/stores/lucid-governance-queries.d.ts +3 -2
- package/dist/src/stores/lucid-governance-queries.d.ts.map +1 -1
- package/dist/src/stores/lucid-governance-queries.js +29 -9
- package/dist/src/stores/lucid-governance-queries.js.map +1 -1
- package/dist/src/stores/lucid-schema.d.ts.map +1 -1
- package/dist/src/stores/lucid-schema.js +8 -0
- package/dist/src/stores/lucid-schema.js.map +1 -1
- package/dist/src/stores/lucid.d.ts.map +1 -1
- package/dist/src/stores/lucid.js +6 -0
- package/dist/src/stores/lucid.js.map +1 -1
- package/dist/src/telescope/agent-governance-providers.d.ts.map +1 -1
- package/dist/src/telescope/agent-governance-providers.js +4 -5
- package/dist/src/telescope/agent-governance-providers.js.map +1 -1
- package/dist/src/telescope/dashboard.d.ts +2 -2
- package/dist/src/telescope/dashboard.d.ts.map +1 -1
- package/dist/src/telescope/dashboard.js +28 -2
- package/dist/src/telescope/dashboard.js.map +1 -1
- package/dist/src/telescope/data-providers.d.ts +18 -3
- package/dist/src/telescope/data-providers.d.ts.map +1 -1
- package/dist/src/telescope/data-providers.js +93 -7
- package/dist/src/telescope/data-providers.js.map +1 -1
- package/dist/src/telescope/extension.d.ts.map +1 -1
- package/dist/src/telescope/extension.js +3 -1
- package/dist/src/telescope/extension.js.map +1 -1
- package/dist/src/telescope/index.d.ts +1 -1
- package/dist/src/telescope/index.d.ts.map +1 -1
- package/dist/src/telescope/index.js +1 -1
- package/dist/src/telescope/index.js.map +1 -1
- package/dist/src/testing/in-memory-governance-queries.d.ts.map +1 -1
- package/dist/src/testing/in-memory-governance-queries.js +23 -7
- package/dist/src/testing/in-memory-governance-queries.js.map +1 -1
- package/dist/src/testing/in-memory-store.d.ts +3 -0
- package/dist/src/testing/in-memory-store.d.ts.map +1 -1
- package/dist/src/testing/in-memory-store.js +6 -0
- package/dist/src/testing/in-memory-store.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @adonis-agora/agent
|
|
2
2
|
|
|
3
|
+
## 0.84.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#440](https://github.com/DavideCarvalho/adonis-agora-agent/pull/440) [`c113c76`](https://github.com/DavideCarvalho/adonis-agora-agent/commit/c113c76a890b076caab8bc143c7d2a10d570b7be) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - A run's time to first token, failure code and model are stored, and the governance dashboard and the Telescope tab chart them:
|
|
8
|
+
|
|
9
|
+
- **Stored on the run.** `agent_run` gains nullable `ttft_ms`, `error_code` and `model_id`, added by `createAgentTables`' schema repair (run at boot; with `autoCreateTables: false`, re-run the `create_agent_tables` migration). `RecordRunEndInput` takes `ttftMs`, `errorCode` and `modelId`. A completed run records its time to first token and last model; a failed one records the same stable code its stream `error` frame carries (`quota_exceeded`, `model_no_output`, `run_failed`…), next to the `error` text as before. A run found dead, or failed by OpenCode, is `run_failed`. `RunSummaryRow` carries the three as optional fields.
|
|
10
|
+
- **Tool timing.** A tool call's `execution_ms` is now filled, measured inside its `tool:<id>` checkpoint: how long the tool ran, not how long a replay took to read it back. A replayed call writes none.
|
|
11
|
+
- **Read-model.** `RunReliability` gains optional `latency: { ttft, duration }` (`{ samples, p50Ms, p95Ms }`, nearest-rank, over completed turns a person started; a delegation's child run is left out) and `failuresByCode` (`{ code, count }[]`, most frequent first; a failure from before codes is `unknown`). `PerToolStatRow` gains optional `p50ExecutionMs` / `p95ExecutionMs`. `summarizeLatency` / `summarizeRunMetrics` are exported; `GenuiLatency` is now an alias of the shared `Latency`.
|
|
12
|
+
- **Dashboard.** Reliability shows time to first token and turn duration (p50 / p95) and a failures-by-code donut and table; Tools shows p50 / p95 per tool.
|
|
13
|
+
- **Telescope.** A new "Run latency" section: TTFT and turn-duration distributions (p50 / p95 / p99) from `run.finished`, and failures by code from `run.failed` (`agent.latency`, `agent.failuresByCode`). Active runs now subtract `run.failed` and `run.cancelled` too, and the tool-call counters skip a call re-published on replay.
|
|
14
|
+
|
|
15
|
+
## 0.83.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [#438](https://github.com/DavideCarvalho/adonis-agora-agent/pull/438) [`decd556`](https://github.com/DavideCarvalho/adonis-agora-agent/commit/decd556d9ed1e51be39efcd763e513fdbbe4c879) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - More of a run on its diagnostics, so an observer can chart failures, cost and slow tools without reading the store:
|
|
20
|
+
|
|
21
|
+
- **`agora:agent:run.failed`** when the loop throws, with the same stable `code` the stream's `error` frame carries (`quota_exceeded`, `model_no_output`, `run_failed`…) and `durationMs`. Never the error itself. A durable control-flow signal (suspend on an approval or a question) is not an ending and publishes nothing.
|
|
22
|
+
- **`agora:agent:run.cancelled`** when the run's abort signal fired.
|
|
23
|
+
- **`run.finished`** also carries `costUsd` (when any step's cost is known), `modelId` (the last model call's), and who the run is: `agentName`, `actorId`, `tenantRef`, and `parentRunId` on a delegation's child run. `run.failed` and `run.cancelled` carry the same.
|
|
24
|
+
- **`tool-call`** carries `toolCallId`, and `durationMs` when this process ran the tool. A call whose checkpoint the durable runtime read back from the journal is published again with `replayed: true` and no duration, so counting observers can skip it.
|
|
25
|
+
|
|
3
26
|
## 0.82.0
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|