@nylorun/harness 0.37.2-beta → 0.37.3-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 +9 -0
- package/dist/flow/engine.js +1 -1
- package/dist/loop/delegation.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.37.3-beta
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b9b0965: A subagent used as a tool receives `{ task }` as a string, so one that declares an `inputSchema` that can't take a string is now refused when it is built or saved (ADR-162): `delegation.input` in the builder and the manifest contract, `delegation_input` in a manifest's files. Before, the manifest saved and the flow's first stage got a string it didn't declare. Messages and Studio now use ADR-162's words: an agent manifest is driven by a model loop or by a flow, and a flow's stages can be subagents; "flow agent" is no longer a kind. Studio's Agent manifests list filters by **Driven by** (Model loop or Flow), a flow's section is **Stages**, and a subagent used as a tool shows as "Subagent". No code, diagnostic code or wire format changes.
|
|
8
|
+
- Pin core to the tested release.
|
|
9
|
+
- Updated dependencies [b9b0965]
|
|
10
|
+
- @nylorun/core@0.52.0-beta
|
|
11
|
+
|
|
3
12
|
## 0.37.2-beta
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/flow/engine.js
CHANGED
|
@@ -103,7 +103,7 @@ async function runAgent(ctx, scope, node, key, site, input, context) {
|
|
|
103
103
|
if (target === undefined)
|
|
104
104
|
throw new FlowNodeError({
|
|
105
105
|
code: "flow.unknown-agent",
|
|
106
|
-
message: `
|
|
106
|
+
message: `Subagent '${node.agent}' is not embedded in the flow of '${scope.manifest.id}'`,
|
|
107
107
|
path: site,
|
|
108
108
|
});
|
|
109
109
|
if (isWorkflowManifest(target)) {
|
package/dist/loop/delegation.js
CHANGED
|
@@ -41,7 +41,7 @@ export async function runDelegation(invocation, execute, call, delegate) {
|
|
|
41
41
|
try {
|
|
42
42
|
if (isFlowDelegate(delegate)) {
|
|
43
43
|
if (!host.flow)
|
|
44
|
-
throw new HarnessError("execution.invalid-input", `
|
|
44
|
+
throw new HarnessError("execution.invalid-input", `Subagent '${ref.id}' is driven by a flow; a subagent driven by a flow runs on the Runtime when used as a tool`);
|
|
45
45
|
outcome = settleFlow(await host.flow(delegate, ref, task), invocation.loop.partialOutputChars);
|
|
46
46
|
status = outcome.kind === "completed" ? "completed" : "failed";
|
|
47
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nylorun/harness",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.3-beta",
|
|
4
4
|
"description": "Nylorun's TypeScript agent execution engine. See github.com/nylorun/agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"zod": "^4.6.7"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@nylorun/core": "0.
|
|
80
|
+
"@nylorun/core": "0.52.0-beta"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"zod": "^4.6.7"
|