@nylorun/harness 0.31.0-beta → 0.32.0-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 +12 -0
- package/dist/api/run.js +4 -1
- package/dist/tools/engine-tools.d.ts +7 -4
- package/dist/tools/engine-tools.js +5 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.32.0-beta
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 714bee2: The triggers capability (Host feature `agent-triggers`): an agent-folder/2 folder declares `engine: { triggers: true }` (the root agent's only; `engine.instructions.triggers` replaces its wording), which compiles to `harness.engine.triggers` and offers the root agent the `triggers` tool (`list`, `create`, `delete`) and the text block `triggers@1`. The Runtime serves each call as a `runtime` effect (operation `triggers`, `turn.start.agent.triggers`, Harness API v5.3): a trigger an agent makes is the Agent's (`origin: "agent"`, with its title and the session that made it), runs in the calling session (`session: "this"`) or one of its own (`"own"`, `<session>_t_<id>`), is checked against the limits in force (`runtime.limits.triggers` within the Tenant's), survives upgrades and waits paused while a version lacks the capability; a turn a trigger started can't create one. Tool rules take `kind: "runtime"`, so an `ask` rule can hold a `triggers` call (its interaction carries `metadata.input`); `DELETE /v1/agents/{id}/triggers/{triggerId}` deletes an agent's trigger (`409 trigger_from_manifest` for a manifest's); `GET /v1/runs/stream` serves the Tenant's runs as server-sent events from a cursor (`410 cursor_expired` across a reset). `client.agents.deleteTrigger`, `client.runs.stream` and `nylorun agents triggers rm` follow. The JSON Schemas are republished as `agent-manifest/v8.3`, `harness-manifest/v1.3`, `runtime-manifest/v1.2`, `agent-folder/v1/agent-md.3`, `agent-folder/v1/runtime.2` and `harness-api/v5.3`.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Pin core to the tested release.
|
|
12
|
+
- Updated dependencies [714bee2]
|
|
13
|
+
- @nylorun/core@0.35.0-beta
|
|
14
|
+
|
|
3
15
|
## 0.31.0-beta
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/api/run.js
CHANGED
|
@@ -69,13 +69,16 @@ export async function runTurn(ctx, run) {
|
|
|
69
69
|
: undefined;
|
|
70
70
|
const plan = loop?.plan === true;
|
|
71
71
|
const connections = loop?.connections === true;
|
|
72
|
+
// The triggers the agent sets up itself (D83): the version declares `harness.engine.triggers`,
|
|
73
|
+
// for the root agent only.
|
|
74
|
+
const triggers = start.engine === "agent" && start.agent?.triggers === true;
|
|
72
75
|
const engineTools = (agent) => engineToolsFor(agent, start.agent, ctx.engine, memory && {
|
|
73
76
|
access: memory.access,
|
|
74
77
|
...(memory.instructions === undefined ? {} : { instructions: memory.instructions }),
|
|
75
78
|
root: agent.id === rootId,
|
|
76
79
|
// No index is pinned when the version sets `harness.memory.index: false` (ADR-100).
|
|
77
80
|
index: memory.index !== undefined,
|
|
78
|
-
}, plan && agent.id === rootId, connections && agent.id === rootId);
|
|
81
|
+
}, plan && agent.id === rootId, connections && agent.id === rootId, triggers && agent.id === rootId);
|
|
79
82
|
const mcp = start.engine === "agent" && start.mcp
|
|
80
83
|
? mcpToolSet(start.mcp, start.manifest, {
|
|
81
84
|
config: ctx.engine.mcpTools,
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
* the artifact notes; the wake note; the memory rules; the plan and connection notes;
|
|
11
11
|
* - tools: the sandbox tools; the skill tools; `save_artifact`; `read_artifact`;
|
|
12
12
|
* `schedule_wake` when the session's version sets `runtime.selfWake` (track T4); `memory`
|
|
13
|
-
* when it sets `harness.memory` (track T5); and, for the root agent, `
|
|
14
|
-
* `harness.
|
|
13
|
+
* when it sets `harness.memory` (track T5); and, for the root agent, `triggers` when it
|
|
14
|
+
* declares `harness.engine.triggers` (D83, `turn.start.agent.triggers`), `update_plan` when it
|
|
15
|
+
* sets `harness.loop.plan` and `request_connection` when it sets `harness.loop.connections` (A2A
|
|
15
16
|
* profile v2).
|
|
16
17
|
*
|
|
17
18
|
* The code is `@nylorun/core/engine`'s (`engineProjection`), which the SDK's `previewTurn` runs
|
|
@@ -56,6 +57,8 @@ export interface EngineTools {
|
|
|
56
57
|
* which may only view memory; `memory.index` false when no index is pinned. `plan` offers
|
|
57
58
|
* `update_plan`: true for the session's root agent when the version sets `harness.loop.plan`
|
|
58
59
|
* (`turn.start.loop.plan`); `connections` offers `request_connection` alike
|
|
59
|
-
* (`harness.loop.connections`)
|
|
60
|
+
* (`harness.loop.connections`); `triggers` offers the `triggers` tool, for the root agent when the
|
|
61
|
+
* version declares `harness.engine.triggers` (`turn.start.agent.triggers`). An agent whose own
|
|
62
|
+
* tools name one of them keeps its own.
|
|
60
63
|
*/
|
|
61
|
-
export declare function engineToolsFor(agent: Pick<AgentManifest, "skills" | "tools" | "engine">, runsOn: TurnAgent | undefined, options: Pick<EngineToolOptions, "artifactPageBytes" | "sandboxTools" | "skillReadBytes">, memory?: EngineMemory, plan?: boolean, connections?: boolean): EngineTools;
|
|
64
|
+
export declare function engineToolsFor(agent: Pick<AgentManifest, "skills" | "tools" | "engine">, runsOn: TurnAgent | undefined, options: Pick<EngineToolOptions, "artifactPageBytes" | "sandboxTools" | "skillReadBytes">, memory?: EngineMemory, plan?: boolean, connections?: boolean, triggers?: boolean): EngineTools;
|
|
@@ -5,8 +5,10 @@ import { engineProjection, } from "@nylorun/core/engine";
|
|
|
5
5
|
* which may only view memory; `memory.index` false when no index is pinned. `plan` offers
|
|
6
6
|
* `update_plan`: true for the session's root agent when the version sets `harness.loop.plan`
|
|
7
7
|
* (`turn.start.loop.plan`); `connections` offers `request_connection` alike
|
|
8
|
-
* (`harness.loop.connections`)
|
|
8
|
+
* (`harness.loop.connections`); `triggers` offers the `triggers` tool, for the root agent when the
|
|
9
|
+
* version declares `harness.engine.triggers` (`turn.start.agent.triggers`). An agent whose own
|
|
10
|
+
* tools name one of them keeps its own.
|
|
9
11
|
*/
|
|
10
|
-
export function engineToolsFor(agent, runsOn, options, memory, plan = false, connections = false) {
|
|
11
|
-
return engineProjection(agent, runsOn, options, memory, plan, connections);
|
|
12
|
+
export function engineToolsFor(agent, runsOn, options, memory, plan = false, connections = false, triggers = false) {
|
|
13
|
+
return engineProjection(agent, runsOn, options, memory, plan, connections, triggers);
|
|
12
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nylorun/harness",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0-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.35.0-beta"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"zod": "^4.6.7"
|