@adonis-agora/agent 0.81.1 → 0.83.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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # @adonis-agora/agent
2
2
 
3
+ ## 0.83.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#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:
8
+
9
+ - **`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.
10
+ - **`agora:agent:run.cancelled`** when the run's abort signal fired.
11
+ - **`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.
12
+ - **`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.
13
+
14
+ ## 0.82.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [#434](https://github.com/DavideCarvalho/adonis-agora-agent/pull/434) [`3855b8f`](https://github.com/DavideCarvalho/adonis-agora-agent/commit/3855b8fa1cee64deced130d86a1b3bf4aeeb4447) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - `agora:agent:run.finished` carries the turn's timing: `durationMs` (turn start to end) and `ttftMs` (turn start to the first `text` frame on the stream, absent when no text went out). Both use the clock of the process running the turn, so a resumed run measures from its resume.
19
+
3
20
  ## 0.81.1
4
21
 
5
22
  ### Patch Changes