@reinsjs/agent 0.6.0 → 0.6.1
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 +9 -0
- package/README.md +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @reinsjs/agent
|
|
2
2
|
|
|
3
|
+
## 0.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 720a809: HTTP mid-run input. `createAgentHandler(agent, { midRunInput: true })` queues a user message that arrives while the session's run is active in this process — sent by the run's own principal, without `resume` / `decisions` — into a per-run in-memory mailbox and answers `202 { status: "queued", sessionId, deliveryId }`; the run writes it into the timeline before its next model call. New request field `deliveryId` (also accepted when a `POST` starts a run) becomes the message's `provenance.ref` with `source: USER_DELIVERY_SOURCE`; delivery is judged by that event appearing in the timeline. Undelivered messages are dropped when the run ends; other cases still answer `409`, a full mailbox (16 waiting) answers `429 mailbox_full`. `@reinsjs/ui-agui` now copies a user message's `provenance` onto its `TEXT_MESSAGE_START` as `metadata.reins.provenance`; other events are unchanged.
|
|
8
|
+
- Updated dependencies [720a809]
|
|
9
|
+
- @reinsjs/server@0.6.0
|
|
10
|
+
- @reinsjs/ui-agui@0.4.0
|
|
11
|
+
|
|
3
12
|
## 0.6.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ for await (const event of agent.run({ input: "Ship staging" })) console.log(even
|
|
|
39
39
|
|
|
40
40
|
`run()` yields every event as it is appended and returns `done | paused | handoff | error`. A `paused` result carries a small signed `state`; resume from any process with `agent.run({ sessionId, resume: state, decisions: [{ toolCallId, approved: true, by: "alice" }] })`.
|
|
41
41
|
|
|
42
|
-
Messages that reach your host while a run is going can be handed to the model before its next call: pass `agent.run({ input, pullInput })` (see "Input that arrives mid-run" in `@reinsjs/core`). It is a per-run option — `createAgent` does not take it,
|
|
42
|
+
Messages that reach your host while a run is going can be handed to the model before its next call: pass `agent.run({ input, pullInput })` (see "Input that arrives mid-run" in `@reinsjs/core`). It is a per-run option — `createAgent` does not take it, and `asTool` sub-agents never pull. Over HTTP, `handler: { midRunInput: true }` queues a message that arrives while the session's run is active into that run instead of answering `409` (see "Messages during a run" in `@reinsjs/server`).
|
|
43
43
|
|
|
44
44
|
## Agents as tools
|
|
45
45
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reinsjs/agent",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "reins — hand the reins to the model. createAgent() + re-exports of @reinsjs/core, @reinsjs/server and @reinsjs/ui-agui",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@reinsjs/core": "0.11.0",
|
|
39
|
-
"@reinsjs/server": "0.
|
|
40
|
-
"@reinsjs/ui-agui": "0.
|
|
39
|
+
"@reinsjs/server": "0.6.0",
|
|
40
|
+
"@reinsjs/ui-agui": "0.4.0"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=22"
|