@adonis-agora/agent 0.80.2 → 0.81.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 +18 -0
- package/README.md +2 -0
- package/dist/assets/spa/assets/index-MrDjRM3K.js +9 -0
- package/dist/assets/spa/index.html +1 -1
- package/dist/providers/agent_provider.js +2 -2
- package/dist/providers/agent_provider.js.map +1 -1
- package/dist/src/ag-ui/adapter.js +1 -1
- package/dist/src/ag-ui/adapter.js.map +1 -1
- package/dist/src/agent-loop.d.ts.map +1 -1
- package/dist/src/agent-loop.js +22 -2
- package/dist/src/agent-loop.js.map +1 -1
- package/dist/src/agent-service.d.ts +6 -3
- package/dist/src/agent-service.d.ts.map +1 -1
- package/dist/src/agent-service.js +10 -7
- package/dist/src/agent-service.js.map +1 -1
- package/dist/src/delegation.d.ts +2 -0
- package/dist/src/delegation.d.ts.map +1 -1
- package/dist/src/delegation.js +1 -0
- package/dist/src/delegation.js.map +1 -1
- package/dist/src/durable/agent-run-workflow.d.ts.map +1 -1
- package/dist/src/durable/agent-run-workflow.js +2 -0
- package/dist/src/durable/agent-run-workflow.js.map +1 -1
- package/dist/src/durable/durable-agent-runner.d.ts.map +1 -1
- package/dist/src/durable/durable-agent-runner.js +1 -0
- package/dist/src/durable/durable-agent-runner.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/opencode/turn.d.ts.map +1 -1
- package/dist/src/opencode/turn.js +4 -2
- package/dist/src/opencode/turn.js.map +1 -1
- package/dist/src/poppy-connections/resume.js +1 -1
- package/dist/src/poppy-connections/resume.js.map +1 -1
- package/dist/src/runners/inline-agent-runner.d.ts.map +1 -1
- package/dist/src/runners/inline-agent-runner.js +2 -0
- package/dist/src/runners/inline-agent-runner.js.map +1 -1
- package/dist/src/spi/agent-store.d.ts +17 -5
- package/dist/src/spi/agent-store.d.ts.map +1 -1
- package/dist/src/spi/agent-store.js.map +1 -1
- package/dist/src/stores/lucid-governance-queries.d.ts.map +1 -1
- package/dist/src/stores/lucid-governance-queries.js +4 -4
- package/dist/src/stores/lucid-governance-queries.js.map +1 -1
- package/dist/src/stores/lucid-schema.d.ts +11 -2
- package/dist/src/stores/lucid-schema.d.ts.map +1 -1
- package/dist/src/stores/lucid-schema.js +18 -2
- package/dist/src/stores/lucid-schema.js.map +1 -1
- package/dist/src/stores/lucid.d.ts +34 -2
- package/dist/src/stores/lucid.d.ts.map +1 -1
- package/dist/src/stores/lucid.js +107 -20
- package/dist/src/stores/lucid.js.map +1 -1
- package/dist/src/testing/in-memory-store.d.ts +13 -2
- package/dist/src/testing/in-memory-store.d.ts.map +1 -1
- package/dist/src/testing/in-memory-store.js +29 -8
- package/dist/src/testing/in-memory-store.js.map +1 -1
- package/package.json +5 -5
- package/dist/assets/spa/assets/index-Csk8lqYx.js +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @adonis-agora/agent
|
|
2
2
|
|
|
3
|
+
## 0.81.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#394](https://github.com/DavideCarvalho/adonis-agora-agent/pull/394) [`3328840`](https://github.com/DavideCarvalho/adonis-agora-agent/commit/33288401f431901b6716ab5bdb814d4f083e0252) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Drop Node 20, which reached end-of-life on 2026-04-30, and Node 22, which AdonisJS 7 does not support (it requires Node >=24): `engines.node` is now `>=24`. The supported Node lines are 24 and 26, and CI runs the test suite on each of them.
|
|
8
|
+
|
|
9
|
+
## 0.80.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#384](https://github.com/DavideCarvalho/adonis-agora-agent/pull/384) [`7eabb1a`](https://github.com/DavideCarvalho/adonis-agora-agent/commit/7eabb1ad35c21dac07c1e7449e722dac04030320) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - fix(store): a tool call id handed out twice no longer collides ([#183](https://github.com/DavideCarvalho/adonis-agora-agent/issues/183)). A provider only promises a tool call id is unique within one response, and some (short `call_<digits>` ids behind OpenRouter) repeat one across runs: the second `agent_tool_call` insert failed on the primary key, and the thread was left with a call answered by nothing.
|
|
14
|
+
|
|
15
|
+
- `LucidAgentStore` keys a call by the assistant message that carries it, one per model response: the PK is `<message_id>:<toolCallId>`, and the model's id is kept as-is in the new `call_id` column (indexed with `run_id`). This also covers a provider that numbers calls per response (`call_0` again on the next step of the same run) and a call recorded without a run. Rows written before keep their PK and a NULL `call_id`, and are still found by the id the model gave them — nothing is rewritten. If you read `agent_tool_call` directly, take the model's id from `call_id` (falling back to `id` on an older row).
|
|
16
|
+
- **The schema repairs itself at boot.** With `autoCreateTables` on (the default), the agent provider adds the column and its index to an existing table as the app starts — there is nothing to do.
|
|
17
|
+
- With `autoCreateTables` off the schema is the app's: add a migration that calls `createAgentTables()` again. Until it runs the store does not fail: it detects the missing column at startup, warns once, and keeps the old layout (where the collision is still possible).
|
|
18
|
+
- `InMemoryAgentStore` keys calls the same way (it used to replace the first one).
|
|
19
|
+
- SPI: `UpdateToolCallInput.runId`, and an optional `runId` on `toolCallApproval` / `toolCallInput` (also `AgentService.toolCallApproval` / `answerProblem`), pick the call of that run — the newest under the id, which is the live one since a run's steps settle in order. The loop, the runners and the approve / reject / answer routes pass it. Without it, the newest call recorded under the id is used, which is also what `getToolCallRunId` and `toolCallOutcomes` answer.
|
|
20
|
+
|
|
3
21
|
## 0.80.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @adonis-agora/agent
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@adonis-agora/agent) [](https://www.npmjs.com/package/@adonis-agora/agent) [](https://github.com/DavideCarvalho/adonis-agora-agent/actions/workflows/ci.yml) [](https://www.npmjs.com/package/@adonis-agora/agent)
|
|
4
|
+
|
|
3
5
|
Governed, durable-backed AI agent (chat + tool-calling + governance) for **AdonisJS** — part of the
|
|
4
6
|
[Agora](https://github.com/DavideCarvalho) ecosystem.
|
|
5
7
|
|