@nylorun/harness 0.19.0-beta → 0.19.2-beta
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 +32 -0
- package/README.md +1 -2
- package/dist/loop/delegation.d.ts +7 -2
- package/dist/loop/delegation.js +2 -5
- package/dist/run/durable.js +4 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.19.2-beta
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a322696: **The session log now carries what a chat UI shows** (optional Host feature `transcript-events`).
|
|
8
|
+
|
|
9
|
+
- `message.assistant` for each completed model step: `{ invocationId, text, toolCalls: [{ callId, name, input }], agent? }`.
|
|
10
|
+
- `tool.completed` for an MCP or sandbox tool: `{ invocationId, callId, capabilityId, toolName, output }`, or `error: { code, message }` for a tool error.
|
|
11
|
+
- Tool `action.pending` and `action.completed` events, and `delegation.started` / `delegation.completed`, carry the model's `callId` (and `invocationId` on actions).
|
|
12
|
+
- Events are written in the transaction that completes the effect, so a replay writes none.
|
|
13
|
+
- `@nylorun/core/contracts` adds payload schemas and `parseTranscriptEvent(event)`; `LiveEvent.payload` stays `unknown`.
|
|
14
|
+
|
|
15
|
+
Fix: a tool with both `approval` and an `output` schema now pauses for approval. The Runtime validated its `interaction-required` result against the output schema and failed the tool with `tool.invalid-output`; `denied`, `interaction-required` and `deferred` results are no longer validated.
|
|
16
|
+
|
|
17
|
+
- Pin core to the tested release.
|
|
18
|
+
- Updated dependencies [a322696]
|
|
19
|
+
- Updated dependencies [844bff3]
|
|
20
|
+
- Updated dependencies [a322696]
|
|
21
|
+
- @nylorun/core@0.7.0-beta
|
|
22
|
+
|
|
23
|
+
## 0.19.1-beta
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Pin core to the tested release.
|
|
28
|
+
- Updated dependencies [bf1c2da]
|
|
29
|
+
- Updated dependencies [ba1b239]
|
|
30
|
+
- Updated dependencies [bf1c2da]
|
|
31
|
+
- Updated dependencies [bf1c2da]
|
|
32
|
+
- Updated dependencies [bf1c2da]
|
|
33
|
+
- @nylorun/core@0.6.0-beta
|
|
34
|
+
|
|
3
35
|
## 0.19.0-beta
|
|
4
36
|
|
|
5
37
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
Execution engine, checkpoints and durable host effects. Shared authoring and wire
|
|
4
4
|
contracts live in `@nylorun/core`; applications use `@nylorun/agents`.
|
|
5
5
|
OSS publishes harness for local Runtime; Cloud installs published packages from
|
|
6
|
-
npm independently.
|
|
7
|
-
[package architecture](../docs/design/package-architecture.md).
|
|
6
|
+
npm independently.
|
|
8
7
|
|
|
9
8
|
Use `/run` for explicit execution, `/model/adapters` for provider format adapters,
|
|
10
9
|
and `/compatibility` for checkpoint compatibility. Definitions and protocol
|
|
@@ -8,8 +8,13 @@ export interface DelegationHost {
|
|
|
8
8
|
readonly definition: AgentDefinition;
|
|
9
9
|
readonly onModelCall: ModelAdapter;
|
|
10
10
|
};
|
|
11
|
-
/**
|
|
12
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Journal a lifecycle point exactly once. Local runs have nothing to journal. `callId` is
|
|
13
|
+
* the parent model's tool call id, for display only; it is not part of the point's identity.
|
|
14
|
+
*/
|
|
15
|
+
announce?(phase: "started" | "settled", ref: AgentRef, payload: JsonObject, ids?: {
|
|
16
|
+
readonly callId: string;
|
|
17
|
+
}): Promise<void>;
|
|
13
18
|
}
|
|
14
19
|
/** Engine-internal options for execute(); not part of the public RunOptions. */
|
|
15
20
|
export interface ExecuteInternals {
|
package/dist/loop/delegation.js
CHANGED
|
@@ -35,7 +35,7 @@ export async function runDelegation(invocation, execute, call, delegate) {
|
|
|
35
35
|
};
|
|
36
36
|
const task = call.args.task;
|
|
37
37
|
const host = invocation.delegation ?? localDelegation(options.onModelCall);
|
|
38
|
-
await host.announce?.("started", ref, { task });
|
|
38
|
+
await host.announce?.("started", ref, { task }, { callId: call.callId });
|
|
39
39
|
invocation.observe({ type: "delegation.started", ...ids, attributes: { task } });
|
|
40
40
|
let outcome;
|
|
41
41
|
let status = "failed";
|
|
@@ -68,10 +68,7 @@ export async function runDelegation(invocation, execute, call, delegate) {
|
|
|
68
68
|
else
|
|
69
69
|
outcome = { kind: "failed", code: "delegation.failed", message: String(cause) };
|
|
70
70
|
}
|
|
71
|
-
await host.announce?.("settled", ref, {
|
|
72
|
-
status,
|
|
73
|
-
outcome: outcome,
|
|
74
|
-
});
|
|
71
|
+
await host.announce?.("settled", ref, { status, outcome: outcome }, { callId: call.callId });
|
|
75
72
|
invocation.observe({
|
|
76
73
|
type: "delegation.completed",
|
|
77
74
|
...ids,
|
package/dist/run/durable.js
CHANGED
|
@@ -169,8 +169,10 @@ export async function runDurable(options) {
|
|
|
169
169
|
definition: hostedDefinition(delegate.manifest, ref),
|
|
170
170
|
onModelCall: modelCall(ref),
|
|
171
171
|
}),
|
|
172
|
-
async announce(phase, ref, payload) {
|
|
173
|
-
await effect("delegation", payload, {}, `${ref.delegationId}:${phase}`, {
|
|
172
|
+
async announce(phase, ref, payload, ids) {
|
|
173
|
+
await effect("delegation", payload, { ...ids }, `${ref.delegationId}:${phase}`, {
|
|
174
|
+
agent: ref,
|
|
175
|
+
});
|
|
174
176
|
},
|
|
175
177
|
};
|
|
176
178
|
const hosted = hostedDefinition(manifest);
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nylorun/harness",
|
|
3
|
-
"version": "0.19.
|
|
4
|
-
"description": "Nylorun's TypeScript agent execution engine. See github.com/nylorun/
|
|
3
|
+
"version": "0.19.2-beta",
|
|
4
|
+
"description": "Nylorun's TypeScript agent execution engine. See github.com/nylorun/agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/nylorun/
|
|
9
|
+
"url": "git+https://github.com/nylorun/agents.git",
|
|
10
10
|
"directory": "harness"
|
|
11
11
|
},
|
|
12
|
-
"homepage": "https://github.com/nylorun/
|
|
13
|
-
"bugs": "https://github.com/nylorun/
|
|
12
|
+
"homepage": "https://github.com/nylorun/agents",
|
|
13
|
+
"bugs": "https://github.com/nylorun/agents/issues",
|
|
14
14
|
"author": "Nylo",
|
|
15
15
|
"keywords": [
|
|
16
16
|
"agent",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"zod": "^4.6.5"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@nylorun/core": "0.
|
|
79
|
+
"@nylorun/core": "0.7.0-beta"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"zod": "^4.6.5"
|