@adonis-agora/agent 0.83.0 → 0.85.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 +21 -0
- package/dist/assets/spa/assets/{index-DMoSumym.js → index-BsGunSCg.js} +2 -2
- package/dist/assets/spa/index.html +1 -1
- package/dist/providers/agent_provider.d.ts.map +1 -1
- package/dist/providers/agent_provider.js +16 -0
- package/dist/providers/agent_provider.js.map +1 -1
- package/dist/src/agent-loop.d.ts.map +1 -1
- package/dist/src/agent-loop.js +13 -1
- package/dist/src/agent-loop.js.map +1 -1
- package/dist/src/channels/executor.d.ts +91 -8
- package/dist/src/channels/executor.d.ts.map +1 -1
- package/dist/src/channels/executor.js +144 -20
- package/dist/src/channels/executor.js.map +1 -1
- package/dist/src/channels/handler.d.ts +79 -1
- package/dist/src/channels/handler.d.ts.map +1 -1
- package/dist/src/channels/handler.js +465 -93
- package/dist/src/channels/handler.js.map +1 -1
- package/dist/src/channels/index.d.ts +2 -2
- package/dist/src/channels/index.d.ts.map +1 -1
- package/dist/src/channels/index.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/durable/agent-run-context.d.ts +8 -0
- package/dist/src/durable/agent-run-context.d.ts.map +1 -1
- package/dist/src/durable/agent-run-context.js +13 -0
- package/dist/src/durable/agent-run-context.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 +9 -9
- package/skills/agent-setup/SKILL.md +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @adonis-agora/agent
|
|
2
2
|
|
|
3
|
+
## 0.85.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#453](https://github.com/DavideCarvalho/adonis-agora-agent/pull/453) [`3f8937e`](https://github.com/DavideCarvalho/adonis-agora-agent/commit/3f8937e22ace81cace1b84c7f26706947a9ce66b) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Text channels: bursts of messages become one turn, and durable jobs run their phases as dispatched steps.
|
|
8
|
+
|
|
9
|
+
- **`coalesce` (opt-in).** `channels.handle(adapter, { coalesce: { quietMs, maxWaitMs?, maxMessages?, when? } })` groups the messages a person sends in a row — "oi" / "tudo bem?" / "queria saber X", or ten PDFs — into ONE turn once the conversation has been quiet for `quietMs` (at most `maxWaitMs`, default 30 s; at most `maxMessages`, default 20): texts joined in order, every file attached, each message's files prepared and refused as if alone. Button presses, text decisions and answers to a question are never grouped and end a burst; messages that arrive while a grouped turn runs go to the next one. Under a durable engine the wait is the engine's durable sleep (resumable on any instance); inline, a timer. Every message keeps its own job and its own dedupe; the first to run leads and claims the others in the channel store, so nothing is answered twice or dropped across retries, recoveries and redelivered webhooks. Hooks see the burst through new optional fields: `ChannelHookContext.coalesced`, `ChannelInbound.parts`, and `coalesced` / `attachments` / `queueWaitMs` on `onTurnStarted` and `onTurnEnded` (set only with `coalesce` on). Off by default: nothing changes for a channel without it.
|
|
10
|
+
- **Dispatched phases.** The `agora.channel.job` / `agora.channel.timer` workflows are now at version `2`: each phase is a dispatched step (`agora.channel.prepare`, `agora.channel.act`, `agora.channel.read`, `agora.channel.gather`, `agora.channel.timeout`) served on the durable engine's transport by every process that created the channel's handler, so any process runs a phase and any process continues the job. Each carries a liveness timeout (a lost step is dispatched once more, then fails the job instead of hanging). The agent's engine is served on its container transport automatically; an engine passed as `durable: engine` takes `durableSteps: transport` (or an engine `handleStep`); `durableSteps: false` keeps the phases as local steps. Version `1` stays registered, so runs in flight during the upgrade finish on their old path. `ChannelWorkflowEngine` gains optional `handleStep`, `ChannelWorkflowCtx` optional `step` / `sleepUntil` / `sleep`; `ChannelStepServer`, `ChannelStepLog`, `ChannelCoalesceOptions` and `ChannelInboundPart` are exported.
|
|
11
|
+
|
|
12
|
+
## 0.84.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#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:
|
|
17
|
+
|
|
18
|
+
- **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.
|
|
19
|
+
- **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.
|
|
20
|
+
- **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`.
|
|
21
|
+
- **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.
|
|
22
|
+
- **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.
|
|
23
|
+
|
|
3
24
|
## 0.83.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|