@nylorun/core 0.52.0-beta → 0.54.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 +119 -98
- package/dist/compatibility.d.ts +39 -12
- package/dist/compatibility.js +37 -10
- package/dist/contracts.d.ts +126 -44
- package/dist/contracts.js +127 -69
- package/dist/define.d.ts +2 -2
- package/dist/define.js +1 -1
- package/dist/definition/bound.d.ts +3 -1
- package/dist/definition/declaration.js +1 -0
- package/dist/definition/delegate.d.ts +7 -4
- package/dist/definition/delegate.js +4 -3
- package/dist/definition/from.js +3 -1
- package/dist/definition/manifest.js +7 -1
- package/dist/definition/sections.d.ts +9 -8
- package/dist/definition/sections.js +13 -5
- package/dist/definition/variant.d.ts +2 -2
- package/dist/definition/variant.js +4 -4
- package/dist/definition/workflow/runnable.d.ts +1 -1
- package/dist/definition/workflow/runnable.js +1 -1
- package/dist/definition/workflow/verdict.d.ts +1 -1
- package/dist/definition/workflow/verdict.js +1 -1
- package/dist/engine/blocks.d.ts +2 -2
- package/dist/engine/blocks.js +3 -3
- package/dist/engine/explain.d.ts +1 -1
- package/dist/engine/explain.js +3 -3
- package/dist/engine/features.d.ts +1 -1
- package/dist/engine/features.js +1 -1
- package/dist/engine/index.d.ts +1 -1
- package/dist/engine/index.js +1 -1
- package/dist/engine/mcp.d.ts +4 -4
- package/dist/engine/mcp.js +4 -4
- package/dist/engine/names.d.ts +1 -1
- package/dist/engine/names.js +1 -1
- package/dist/engine/preview.d.ts +2 -2
- package/dist/engine/preview.js +1 -1
- package/dist/engine/projection.d.ts +3 -3
- package/dist/engine/projection.js +8 -8
- package/dist/engine/tools.d.ts +8 -8
- package/dist/engine/tools.js +7 -7
- package/dist/errors.d.ts +1 -1
- package/dist/folder/compile.d.ts +2 -2
- package/dist/folder/compile.js +111 -15
- package/dist/folder/decompile.js +7 -7
- package/dist/folder/engine.d.ts +8 -2
- package/dist/folder/engine.js +3 -3
- package/dist/folder/fix.js +1 -1
- package/dist/folder/flow.d.ts +1 -1
- package/dist/folder/flow.js +1 -1
- package/dist/folder/index.d.ts +4 -2
- package/dist/folder/index.js +4 -2
- package/dist/folder/migrate-v3.js +2 -2
- package/dist/folder/migrate-v4.d.ts +33 -0
- package/dist/folder/migrate-v4.js +207 -0
- package/dist/folder/nested.js +14 -6
- package/dist/folder/plugins.d.ts +13 -1
- package/dist/folder/plugins.js +49 -12
- package/dist/folder/schemas.js +29 -9
- package/dist/folder/subagent-files.d.ts +110 -0
- package/dist/folder/subagent-files.js +514 -0
- package/dist/folder/v3.d.ts +2 -2
- package/dist/folder/v3.js +2 -2
- package/dist/harness-api/artifacts.d.ts +1 -1
- package/dist/harness-api/json-schema.js +6 -6
- package/dist/harness-api/messages.d.ts +1 -1
- package/dist/harness-api/messages.js +1 -1
- package/dist/harness-api/schema.d.ts +2 -2
- package/dist/harness-api/schema.js +8 -8
- package/dist/manifest-schemas.js +9 -6
- package/dist/plugins/index.js +1 -1
- package/dist/schemas/agent-folder/agent-md.schema.json +67 -18
- package/dist/schemas/agent-manifest.schema.json +65 -2
- package/dist/schemas/harness-manifest.schema.json +55 -2
- package/dist/types/manifest.d.ts +32 -7
- package/dist/types/model.d.ts +3 -3
- package/dist/types/observe.d.ts +1 -1
- package/dist/types/part.d.ts +5 -3
- package/dist/types/transcript.d.ts +1 -1
- package/dist/utils/definition-files.d.ts +23 -0
- package/dist/utils/definition-files.js +50 -4
- package/dist/utils/memory.js +1 -1
- package/dist/utils/runtime-limits.d.ts +2 -2
- package/dist/utils/runtime-limits.js +3 -3
- package/package.json +1 -1
|
@@ -52,16 +52,16 @@ export function harnessApiSchemas() {
|
|
|
52
52
|
* The revision of v5's document: the claims a harness may make grew within v5 (`plan.updated`,
|
|
53
53
|
* additive: core accepts more, and a v5 harness that claims none of it is unchanged), and a
|
|
54
54
|
* published `$id` names one document for good. Revision 2: `engine.diagnostic` among the claims,
|
|
55
|
-
* `turn.start.memory.index` absent for a version that pins none
|
|
55
|
+
* `turn.start.memory.index` absent for a version that pins none, and
|
|
56
56
|
* `turn.start.memory.refresh` (an optional field a v5 harness may ignore, keeping the index it
|
|
57
|
-
* pinned). Revision 3: `turn.start.agent.triggers` and the `runtime` operation `triggers
|
|
57
|
+
* pinned). Revision 3: `turn.start.agent.triggers` and the `runtime` operation `triggers`,
|
|
58
58
|
* which a v5 harness that offers no `triggers` tool never sees. Revision 4: the effect kind `inputs`
|
|
59
|
-
|
|
59
|
+
: the messages steered into the running turn, which core answers at once and a v5 harness
|
|
60
60
|
that never asks for it never sees. Revision 5: `artifact.write` `begin` may carry
|
|
61
|
-
`audience: "model"
|
|
62
|
-
`routing.sandbox.computer` and the request `computer.open
|
|
61
|
+
`audience: "model"`, which core accepts and only our own engine sends. Revision 6:
|
|
62
|
+
`routing.sandbox.computer` and the request `computer.open`, which a v5 harness never
|
|
63
63
|
sees unless the Tenant's pod Agents are computers. Revision 7: the request `computer.current`,
|
|
64
|
-
which only a harness that drives computers sends. Revision 8: `turn.start.role
|
|
64
|
+
which only a harness that drives computers sends. Revision 8: `turn.start.role`, the
|
|
65
65
|
session's role, which the Runtime sends only to our own harness.
|
|
66
66
|
*/
|
|
67
67
|
const SCHEMA_REVISION = 8;
|
|
@@ -24,7 +24,7 @@ export type ReleaseReason = z.infer<typeof ReleaseReasonSchema>;
|
|
|
24
24
|
* outputs folder stores nothing (protocol 15), and `plan.updated` when the agent calls its
|
|
25
25
|
* built-in `update_plan` tool, and `engine.diagnostic` when an agent's declarations leave it
|
|
26
26
|
* something to say instead of choose, such as MCP tools past the deferral threshold of an agent
|
|
27
|
-
* that does not declare tool search (
|
|
27
|
+
* that does not declare tool search (both additive within v5).
|
|
28
28
|
*/
|
|
29
29
|
export declare const HARNESS_CLAIMS: readonly ["environment.state", "environment.exec", "artifact.export.skipped", "artifact.export.failed", "plan.updated", "engine.diagnostic"];
|
|
30
30
|
export type HarnessClaim = (typeof HARNESS_CLAIMS)[number];
|
|
@@ -8,7 +8,7 @@ export const ABORT_REASONS = ["cancel", "shutdown", "deadline", "ownership.lost"
|
|
|
8
8
|
* outputs folder stores nothing (protocol 15), and `plan.updated` when the agent calls its
|
|
9
9
|
* built-in `update_plan` tool, and `engine.diagnostic` when an agent's declarations leave it
|
|
10
10
|
* something to say instead of choose, such as MCP tools past the deferral threshold of an agent
|
|
11
|
-
* that does not declare tool search (
|
|
11
|
+
* that does not declare tool search (both additive within v5).
|
|
12
12
|
*/
|
|
13
13
|
export const HARNESS_CLAIMS = [
|
|
14
14
|
"environment.state",
|
|
@@ -131,7 +131,7 @@ export declare const EffectTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
131
131
|
* A model effect that writes a compaction's summary says so (`purpose: "summary"`): it is no
|
|
132
132
|
* assistant message, and the compaction edit that follows names it (`CompactionFactsSchema`).
|
|
133
133
|
*
|
|
134
|
-
* An `inputs` effect (
|
|
134
|
+
* An `inputs` effect (revision 4) asks core for the messages steered into the running turn
|
|
135
135
|
* (`delivery: "steer"`), before a step: core takes them in the transaction that journals the
|
|
136
136
|
* effect and answers `{value: {events}}` at once, the messages' input events in order (none when
|
|
137
137
|
* nothing waits). The journal keeps the answer, so a replay takes the same messages at that step.
|
|
@@ -1009,7 +1009,7 @@ export declare const harnessRequests: {
|
|
|
1009
1009
|
}, z.core.$strict>;
|
|
1010
1010
|
};
|
|
1011
1011
|
/**
|
|
1012
|
-
* Opens the computer of the run's session (
|
|
1012
|
+
* Opens the computer of the run's session (Harness API 5.6): `environmentId` must be
|
|
1013
1013
|
* the run's `routing.sandbox.environmentId` with `computer: true`. Core wakes it, waits until it
|
|
1014
1014
|
* is ready, writes a seed onto a new disk and runs the disk's setup when needed, and answers the
|
|
1015
1015
|
* sandbox gateway's URL for it, a ticket the gateway and the computer check, and when the ticket
|
|
@@ -86,7 +86,7 @@ export const EffectTargetSchema = z.discriminatedUnion("kind", [
|
|
|
86
86
|
* the effect id: `schedule_wake` books the session's next turn; `memory` is a
|
|
87
87
|
* call of the `memory` tool, with Anthropic's memory tool parameters as its input,
|
|
88
88
|
* on the Agent's memories; `triggers` lists, creates and deletes the triggers the session made
|
|
89
|
-
* (
|
|
89
|
+
* (`TriggerToolInputSchema`). Answered at once, unless the Tenant's tool policy holds it
|
|
90
90
|
* for a person; the harness never executes it.
|
|
91
91
|
*/
|
|
92
92
|
z.object({ kind: z.literal("runtime"), operation: z.enum(["schedule_wake", "memory", "triggers"]) }).strict(),
|
|
@@ -101,7 +101,7 @@ export const EffectTargetSchema = z.discriminatedUnion("kind", [
|
|
|
101
101
|
* A model effect that writes a compaction's summary says so (`purpose: "summary"`): it is no
|
|
102
102
|
* assistant message, and the compaction edit that follows names it (`CompactionFactsSchema`).
|
|
103
103
|
*
|
|
104
|
-
* An `inputs` effect (
|
|
104
|
+
* An `inputs` effect (revision 4) asks core for the messages steered into the running turn
|
|
105
105
|
* (`delivery: "steer"`), before a step: core takes them in the transaction that journals the
|
|
106
106
|
* effect and answers `{value: {events}}` at once, the messages' input events in order (none when
|
|
107
107
|
* nothing waits). The journal keeps the answer, so a replay takes the same messages at that step.
|
|
@@ -266,7 +266,7 @@ export const RunRoutingSchema = z
|
|
|
266
266
|
*/
|
|
267
267
|
environment: z.record(z.string(), z.string()).optional(),
|
|
268
268
|
/**
|
|
269
|
-
* The sandbox is a computer (
|
|
269
|
+
* The sandbox is a computer (Harness API 5.6): an Agent Substrate actor whose
|
|
270
270
|
* engine runs no loop. A harness opens it with `computer.open` and sends its sandbox
|
|
271
271
|
* calls to it through the sandbox gateway.
|
|
272
272
|
*/
|
|
@@ -339,7 +339,7 @@ export const TurnAgentSchema = z
|
|
|
339
339
|
*/
|
|
340
340
|
selfWake: z.boolean().optional(),
|
|
341
341
|
/**
|
|
342
|
-
* The version the session runs declares `harness.engine.triggers
|
|
342
|
+
* The version the session runs declares `harness.engine.triggers`: our engine offers
|
|
343
343
|
* the root agent the `triggers` tool, a `runtime` effect.
|
|
344
344
|
*/
|
|
345
345
|
triggers: z.literal(true).optional(),
|
|
@@ -358,7 +358,7 @@ export const TurnMemorySchema = z
|
|
|
358
358
|
.object({
|
|
359
359
|
access: z.enum(["read_write", "read_only"]),
|
|
360
360
|
instructions: z.string().optional(),
|
|
361
|
-
/** Absent when the version sets `harness.memory.index: false
|
|
361
|
+
/** Absent when the version sets `harness.memory.index: false`: nothing is pinned. */
|
|
362
362
|
index: z.string().optional(),
|
|
363
363
|
truncated: z.boolean(),
|
|
364
364
|
/**
|
|
@@ -392,7 +392,7 @@ export const TurnStartSchema = z
|
|
|
392
392
|
*/
|
|
393
393
|
loop: document.optional(),
|
|
394
394
|
/**
|
|
395
|
-
* The role the session was opened with (`PUT /v1/sessions/{id}` `role
|
|
395
|
+
* The role the session was opened with (`PUT /v1/sessions/{id}` `role`), so a harness
|
|
396
396
|
* can use its settings for that role. Absent for a session opened without one.
|
|
397
397
|
*/
|
|
398
398
|
role: z.string().min(1).max(64).optional(),
|
|
@@ -589,7 +589,7 @@ export const harnessRequests = {
|
|
|
589
589
|
result: z.object({ base64: z.string() }).strict(),
|
|
590
590
|
},
|
|
591
591
|
/**
|
|
592
|
-
* Opens the computer of the run's session (
|
|
592
|
+
* Opens the computer of the run's session (Harness API 5.6): `environmentId` must be
|
|
593
593
|
* the run's `routing.sandbox.environmentId` with `computer: true`. Core wakes it, waits until it
|
|
594
594
|
* is ready, writes a seed onto a new disk and runs the disk's setup when needed, and answers the
|
|
595
595
|
* sandbox gateway's URL for it, a ticket the gateway and the computer check, and when the ticket
|
|
@@ -675,7 +675,7 @@ export const harnessRequests = {
|
|
|
675
675
|
effectId: id.optional(),
|
|
676
676
|
base64: z.string().optional(),
|
|
677
677
|
/**
|
|
678
|
-
* `model` (
|
|
678
|
+
* `model` (revision 5): a file stored only for the model to see, never an
|
|
679
679
|
* output. Only our own engine sends it; core accepts it within v5.
|
|
680
680
|
*/
|
|
681
681
|
audience: ArtifactAudienceSchema.optional(),
|
package/dist/manifest-schemas.js
CHANGED
|
@@ -15,15 +15,18 @@ import { AGENT_MANIFEST_V8_SCHEMA_VERSION, AgentManifestFileSchema, HARNESS_MANI
|
|
|
15
15
|
* The revision of a document whose version kept its number while it gained an optional field (a
|
|
16
16
|
* published `$id` names one document for good): agent manifest v8 and the harness file v1 took
|
|
17
17
|
* `harness.model` (Host feature `agent-model`), published as `v8.1` and `v1.1`, then
|
|
18
|
-
* `harness.engine` and `harness.memory.index`
|
|
18
|
+
* `harness.engine` and `harness.memory.index` and a secret slot's `toolPrefix` (Host
|
|
19
19
|
* feature `secret-routing`), published as agent manifest `v8.2`, harness file `v1.2` and runtime
|
|
20
|
-
* file `v1.1`, then `harness.engine.triggers` and `runtime.limits.triggers
|
|
20
|
+
* file `v1.1`, then `harness.engine.triggers` and `runtime.limits.triggers`, published as
|
|
21
21
|
* agent manifest `v8.3`, harness file `v1.3` and runtime file `v1.2`, then `harness.engine.plugins`
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
*, published as agent manifest `v8.4` and harness file `v1.4`, then `harness.roles`
|
|
23
|
+
*, published as agent manifest `v8.5` and harness file `v1.5`, then a tool's `plugin` label (Host
|
|
24
|
+
* feature `plugin-subagents`), published as agent manifest `v8.6` and harness file `v1.6`, then a
|
|
25
|
+
* plugin's mounted `files` (Host feature `plugin-files`) and a skill's `disableModelInvocation`
|
|
26
|
+
* (Host feature `person-started-skills`), published as agent manifest `v8.7` and harness file `v1.7`.
|
|
24
27
|
*/
|
|
25
|
-
const AGENT_MANIFEST_REVISION =
|
|
26
|
-
const HARNESS_MANIFEST_FILE_REVISION =
|
|
28
|
+
const AGENT_MANIFEST_REVISION = 7;
|
|
29
|
+
const HARNESS_MANIFEST_FILE_REVISION = 7;
|
|
27
30
|
const RUNTIME_MANIFEST_FILE_REVISION = 2;
|
|
28
31
|
function document(schema, id, title) {
|
|
29
32
|
const { $schema: _, ...definition } = z.toJSONSchema(schema, { io: "input", unrepresentable: "any" });
|
package/dist/plugins/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The Runtime's own Agent Plugins
|
|
2
|
+
* The Runtime's own Agent Plugins: six plugins, one per Runtime primitive, which an
|
|
3
3
|
* `agent-folder/3` folder declares by name (`plugins:`) and which share one reserved server,
|
|
4
4
|
* `nylorun`. Their files are in `core/plugins/`; `bundle.generated.ts` holds them as data, so the
|
|
5
5
|
* compiler, the engine's projection, the harness and the Runtime read the same bytes offline.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://docs.nylorun.com/schemas/agent-folder/v1/agent-md.
|
|
3
|
+
"$id": "https://docs.nylorun.com/schemas/agent-folder/v1/agent-md.6.json",
|
|
4
4
|
"title": "Nylorun agent folder: AGENT.md frontmatter",
|
|
5
|
-
"description": "The frontmatter of an agent folder's AGENT.md; the body below it is the instructions",
|
|
5
|
+
"description": "The frontmatter of an agent folder's AGENT.md, or of a subagent file (agents/<id>.md, agent-folder/4); the body below it is the instructions",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
8
|
"name": {
|
|
@@ -20,11 +20,13 @@
|
|
|
20
20
|
1,
|
|
21
21
|
2,
|
|
22
22
|
3,
|
|
23
|
+
4,
|
|
23
24
|
"agent-folder/1",
|
|
24
25
|
"agent-folder/2",
|
|
25
|
-
"agent-folder/3"
|
|
26
|
+
"agent-folder/3",
|
|
27
|
+
"agent-folder/4"
|
|
26
28
|
],
|
|
27
|
-
"description": "The folder's format: agent-folder/1 (or 1, the default), which gets every engine feature by default; agent-folder/2 (or 2), which declares each in engine;
|
|
29
|
+
"description": "The folder's format: agent-folder/1 (or 1, the default), which gets every engine feature by default; agent-folder/2 (or 2), which declares each in engine; agent-folder/3 (or 3), which declares the Runtime's features as plugins; or agent-folder/4 (or 4), agent-folder/3 with each subagent one file, agents/<id>.md, drawing on the manifest's library"
|
|
28
30
|
},
|
|
29
31
|
"harness": {
|
|
30
32
|
"type": "string",
|
|
@@ -50,22 +52,33 @@
|
|
|
50
52
|
"description": "How this agent uses each MCP server of mcp.json or a plugin, by its name"
|
|
51
53
|
},
|
|
52
54
|
"skills": {
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
55
|
+
"anyOf": [
|
|
56
|
+
{
|
|
57
|
+
"type": "object",
|
|
58
|
+
"additionalProperties": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"properties": {
|
|
61
|
+
"secrets": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
|
|
66
|
+
},
|
|
67
|
+
"description": "The secret slots the skill's scripts read, as environment variables"
|
|
68
|
+
}
|
|
62
69
|
},
|
|
63
|
-
"
|
|
64
|
-
}
|
|
70
|
+
"additionalProperties": false
|
|
71
|
+
},
|
|
72
|
+
"description": "This agent's settings for each skill of skills/ or a plugin, by its name"
|
|
65
73
|
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
74
|
+
{
|
|
75
|
+
"type": "array",
|
|
76
|
+
"items": {
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
"description": "agent-folder/4, a subagent file: the only skills of the manifest's library it gets, by name"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
69
82
|
},
|
|
70
83
|
"memory": {
|
|
71
84
|
"type": "object",
|
|
@@ -206,6 +219,42 @@
|
|
|
206
219
|
"metadata": {
|
|
207
220
|
"type": "object",
|
|
208
221
|
"description": "The manifest's metadata, as it is"
|
|
222
|
+
},
|
|
223
|
+
"tools": {
|
|
224
|
+
"anyOf": [
|
|
225
|
+
{
|
|
226
|
+
"type": "array",
|
|
227
|
+
"items": {
|
|
228
|
+
"type": "string"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"type": "string"
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"description": "agent-folder/4: the only HTTP tools and Runtime plugin tools of the manifest's library this agent gets, by name ([read, grep, glob]); left out, a subagent file gets every one a subagent can use"
|
|
236
|
+
},
|
|
237
|
+
"disallowedTools": {
|
|
238
|
+
"anyOf": [
|
|
239
|
+
{
|
|
240
|
+
"type": "array",
|
|
241
|
+
"items": {
|
|
242
|
+
"type": "string"
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"type": "string"
|
|
247
|
+
}
|
|
248
|
+
],
|
|
249
|
+
"description": "agent-folder/4: library tools this agent does not get, by name"
|
|
250
|
+
},
|
|
251
|
+
"flow": {
|
|
252
|
+
"type": "string",
|
|
253
|
+
"description": "agent-folder/4, a subagent file: the flow file that drives it (./research.flow.json); its body is then empty"
|
|
254
|
+
},
|
|
255
|
+
"readonly": {
|
|
256
|
+
"type": "boolean",
|
|
257
|
+
"description": "agent-folder/4, a subagent file (Cursor's key): true reads as tools: [read, grep, glob] when tools is left out"
|
|
209
258
|
}
|
|
210
259
|
},
|
|
211
260
|
"required": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://docs.nylorun.com/schemas/agent-manifest/v8.
|
|
3
|
+
"$id": "https://docs.nylorun.com/schemas/agent-manifest/v8.7.json",
|
|
4
4
|
"title": "Nylorun agent manifest 8",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -90,6 +90,10 @@
|
|
|
90
90
|
"plugin": {
|
|
91
91
|
"$ref": "#/$defs/PluginLabel"
|
|
92
92
|
},
|
|
93
|
+
"disableModelInvocation": {
|
|
94
|
+
"type": "boolean",
|
|
95
|
+
"const": true
|
|
96
|
+
},
|
|
93
97
|
"secrets": {
|
|
94
98
|
"type": "array",
|
|
95
99
|
"items": {
|
|
@@ -851,6 +855,9 @@
|
|
|
851
855
|
"always"
|
|
852
856
|
]
|
|
853
857
|
},
|
|
858
|
+
"plugin": {
|
|
859
|
+
"$ref": "#/$defs/PluginLabel"
|
|
860
|
+
},
|
|
854
861
|
"fn": {
|
|
855
862
|
"description": "Reserved for a later kind of tool; refused for now."
|
|
856
863
|
},
|
|
@@ -940,6 +947,10 @@
|
|
|
940
947
|
},
|
|
941
948
|
"plugin": {
|
|
942
949
|
"$ref": "#/$defs/PluginLabel"
|
|
950
|
+
},
|
|
951
|
+
"disableModelInvocation": {
|
|
952
|
+
"type": "boolean",
|
|
953
|
+
"const": true
|
|
943
954
|
}
|
|
944
955
|
},
|
|
945
956
|
"required": [
|
|
@@ -1070,6 +1081,12 @@
|
|
|
1070
1081
|
]
|
|
1071
1082
|
}
|
|
1072
1083
|
},
|
|
1084
|
+
"plugins": {
|
|
1085
|
+
"type": "array",
|
|
1086
|
+
"items": {
|
|
1087
|
+
"$ref": "#/$defs/PluginManifest"
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1073
1090
|
"requires": {
|
|
1074
1091
|
"type": "object",
|
|
1075
1092
|
"properties": {
|
|
@@ -1281,6 +1298,10 @@
|
|
|
1281
1298
|
},
|
|
1282
1299
|
"plugin": {
|
|
1283
1300
|
"$ref": "#/$defs/PluginLabel"
|
|
1301
|
+
},
|
|
1302
|
+
"disableModelInvocation": {
|
|
1303
|
+
"type": "boolean",
|
|
1304
|
+
"const": true
|
|
1284
1305
|
}
|
|
1285
1306
|
},
|
|
1286
1307
|
"required": [
|
|
@@ -1411,6 +1432,12 @@
|
|
|
1411
1432
|
]
|
|
1412
1433
|
}
|
|
1413
1434
|
},
|
|
1435
|
+
"plugins": {
|
|
1436
|
+
"type": "array",
|
|
1437
|
+
"items": {
|
|
1438
|
+
"$ref": "#/$defs/PluginManifest"
|
|
1439
|
+
}
|
|
1440
|
+
},
|
|
1414
1441
|
"requires": {
|
|
1415
1442
|
"type": "object",
|
|
1416
1443
|
"properties": {
|
|
@@ -1776,6 +1803,32 @@
|
|
|
1776
1803
|
},
|
|
1777
1804
|
"additionalProperties": false
|
|
1778
1805
|
},
|
|
1806
|
+
"PluginManifest": {
|
|
1807
|
+
"type": "object",
|
|
1808
|
+
"properties": {
|
|
1809
|
+
"name": {
|
|
1810
|
+
"type": "string",
|
|
1811
|
+
"minLength": 1
|
|
1812
|
+
},
|
|
1813
|
+
"version": {
|
|
1814
|
+
"type": "string",
|
|
1815
|
+
"minLength": 1
|
|
1816
|
+
},
|
|
1817
|
+
"files": {
|
|
1818
|
+
"type": "object",
|
|
1819
|
+
"propertyNames": {
|
|
1820
|
+
"type": "string"
|
|
1821
|
+
},
|
|
1822
|
+
"additionalProperties": {
|
|
1823
|
+
"type": "string"
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
},
|
|
1827
|
+
"required": [
|
|
1828
|
+
"name"
|
|
1829
|
+
],
|
|
1830
|
+
"additionalProperties": false
|
|
1831
|
+
},
|
|
1779
1832
|
"HarnessEngine": {
|
|
1780
1833
|
"type": "object",
|
|
1781
1834
|
"properties": {
|
|
@@ -1890,7 +1943,7 @@
|
|
|
1890
1943
|
}
|
|
1891
1944
|
},
|
|
1892
1945
|
"plugins": {
|
|
1893
|
-
"description": "The Runtime's plugins the agent declares (agent-folder/3
|
|
1946
|
+
"description": "The Runtime's plugins the agent declares (agent-folder/3): each with the tools left on and the hash of its files",
|
|
1894
1947
|
"type": "array",
|
|
1895
1948
|
"items": {
|
|
1896
1949
|
"type": "object",
|
|
@@ -2047,6 +2100,10 @@
|
|
|
2047
2100
|
},
|
|
2048
2101
|
"plugin": {
|
|
2049
2102
|
"$ref": "#/$defs/PluginLabel"
|
|
2103
|
+
},
|
|
2104
|
+
"disableModelInvocation": {
|
|
2105
|
+
"type": "boolean",
|
|
2106
|
+
"const": true
|
|
2050
2107
|
}
|
|
2051
2108
|
},
|
|
2052
2109
|
"required": [
|
|
@@ -2177,6 +2234,12 @@
|
|
|
2177
2234
|
]
|
|
2178
2235
|
}
|
|
2179
2236
|
},
|
|
2237
|
+
"plugins": {
|
|
2238
|
+
"type": "array",
|
|
2239
|
+
"items": {
|
|
2240
|
+
"$ref": "#/$defs/PluginManifest"
|
|
2241
|
+
}
|
|
2242
|
+
},
|
|
2180
2243
|
"requires": {
|
|
2181
2244
|
"type": "object",
|
|
2182
2245
|
"properties": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://docs.nylorun.com/schemas/harness-manifest/v1.
|
|
3
|
+
"$id": "https://docs.nylorun.com/schemas/harness-manifest/v1.7.json",
|
|
4
4
|
"title": "Nylorun harness manifest 1",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -59,6 +59,10 @@
|
|
|
59
59
|
"plugin": {
|
|
60
60
|
"$ref": "#/$defs/PluginLabel"
|
|
61
61
|
},
|
|
62
|
+
"disableModelInvocation": {
|
|
63
|
+
"type": "boolean",
|
|
64
|
+
"const": true
|
|
65
|
+
},
|
|
62
66
|
"secrets": {
|
|
63
67
|
"type": "array",
|
|
64
68
|
"items": {
|
|
@@ -378,6 +382,9 @@
|
|
|
378
382
|
"always"
|
|
379
383
|
]
|
|
380
384
|
},
|
|
385
|
+
"plugin": {
|
|
386
|
+
"$ref": "#/$defs/PluginLabel"
|
|
387
|
+
},
|
|
381
388
|
"fn": {
|
|
382
389
|
"description": "Reserved for a later kind of tool; refused for now."
|
|
383
390
|
},
|
|
@@ -467,6 +474,10 @@
|
|
|
467
474
|
},
|
|
468
475
|
"plugin": {
|
|
469
476
|
"$ref": "#/$defs/PluginLabel"
|
|
477
|
+
},
|
|
478
|
+
"disableModelInvocation": {
|
|
479
|
+
"type": "boolean",
|
|
480
|
+
"const": true
|
|
470
481
|
}
|
|
471
482
|
},
|
|
472
483
|
"required": [
|
|
@@ -597,6 +608,12 @@
|
|
|
597
608
|
]
|
|
598
609
|
}
|
|
599
610
|
},
|
|
611
|
+
"plugins": {
|
|
612
|
+
"type": "array",
|
|
613
|
+
"items": {
|
|
614
|
+
"$ref": "#/$defs/PluginManifest"
|
|
615
|
+
}
|
|
616
|
+
},
|
|
600
617
|
"requires": {
|
|
601
618
|
"type": "object",
|
|
602
619
|
"properties": {
|
|
@@ -808,6 +825,10 @@
|
|
|
808
825
|
},
|
|
809
826
|
"plugin": {
|
|
810
827
|
"$ref": "#/$defs/PluginLabel"
|
|
828
|
+
},
|
|
829
|
+
"disableModelInvocation": {
|
|
830
|
+
"type": "boolean",
|
|
831
|
+
"const": true
|
|
811
832
|
}
|
|
812
833
|
},
|
|
813
834
|
"required": [
|
|
@@ -938,6 +959,12 @@
|
|
|
938
959
|
]
|
|
939
960
|
}
|
|
940
961
|
},
|
|
962
|
+
"plugins": {
|
|
963
|
+
"type": "array",
|
|
964
|
+
"items": {
|
|
965
|
+
"$ref": "#/$defs/PluginManifest"
|
|
966
|
+
}
|
|
967
|
+
},
|
|
941
968
|
"requires": {
|
|
942
969
|
"type": "object",
|
|
943
970
|
"properties": {
|
|
@@ -1303,6 +1330,32 @@
|
|
|
1303
1330
|
},
|
|
1304
1331
|
"additionalProperties": false
|
|
1305
1332
|
},
|
|
1333
|
+
"PluginManifest": {
|
|
1334
|
+
"type": "object",
|
|
1335
|
+
"properties": {
|
|
1336
|
+
"name": {
|
|
1337
|
+
"type": "string",
|
|
1338
|
+
"minLength": 1
|
|
1339
|
+
},
|
|
1340
|
+
"version": {
|
|
1341
|
+
"type": "string",
|
|
1342
|
+
"minLength": 1
|
|
1343
|
+
},
|
|
1344
|
+
"files": {
|
|
1345
|
+
"type": "object",
|
|
1346
|
+
"propertyNames": {
|
|
1347
|
+
"type": "string"
|
|
1348
|
+
},
|
|
1349
|
+
"additionalProperties": {
|
|
1350
|
+
"type": "string"
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
},
|
|
1354
|
+
"required": [
|
|
1355
|
+
"name"
|
|
1356
|
+
],
|
|
1357
|
+
"additionalProperties": false
|
|
1358
|
+
},
|
|
1306
1359
|
"HarnessEngine": {
|
|
1307
1360
|
"type": "object",
|
|
1308
1361
|
"properties": {
|
|
@@ -1417,7 +1470,7 @@
|
|
|
1417
1470
|
}
|
|
1418
1471
|
},
|
|
1419
1472
|
"plugins": {
|
|
1420
|
-
"description": "The Runtime's plugins the agent declares (agent-folder/3
|
|
1473
|
+
"description": "The Runtime's plugins the agent declares (agent-folder/3): each with the tools left on and the hash of its files",
|
|
1421
1474
|
"type": "array",
|
|
1422
1475
|
"items": {
|
|
1423
1476
|
"type": "object",
|
package/dist/types/manifest.d.ts
CHANGED
|
@@ -11,6 +11,15 @@ export interface PluginLabel {
|
|
|
11
11
|
readonly name: string;
|
|
12
12
|
readonly version?: string;
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* An Agent Plugin an agent was composed with. `files` is set when the plugin holds files beyond the
|
|
16
|
+
* parts the manifest carries (its skills, servers and subagent files): then every file of the
|
|
17
|
+
* plugin but secret-shaped ones, by path, as `sha256:<hex>`, mounted read-only in the sandbox at
|
|
18
|
+
* `/plugins/<name>@<hash>/` (`pluginFolderOf`).
|
|
19
|
+
*/
|
|
20
|
+
export interface PluginManifest extends PluginLabel {
|
|
21
|
+
readonly files?: Readonly<Record<string, string>>;
|
|
22
|
+
}
|
|
14
23
|
/**
|
|
15
24
|
* Whether each call waits for a person's approval, in a manifest saved before the Tenant's tool
|
|
16
25
|
* policy (the Tool Gate holds such a call). New definitions use the Tenant's tool policy instead.
|
|
@@ -61,6 +70,11 @@ export interface ToolManifest {
|
|
|
61
70
|
* agent (workflow manifest v3) runs in its own linked session on the Runtime.
|
|
62
71
|
*/
|
|
63
72
|
readonly agent?: AgentManifest | WorkflowManifest;
|
|
73
|
+
/**
|
|
74
|
+
* The Agent Plugin an agent used as a tool came from, as a plugin's skills and MCP servers are
|
|
75
|
+
* labelled: only with `agent`. Shown by `nylorun check` and Studio; the run ignores it.
|
|
76
|
+
*/
|
|
77
|
+
readonly plugin?: PluginLabel;
|
|
64
78
|
/** Present when the Runtime runs this tool as an HTTP request. Never with `agent`. */
|
|
65
79
|
readonly http?: HttpToolTarget;
|
|
66
80
|
/**
|
|
@@ -73,6 +87,12 @@ export interface ToolManifest {
|
|
|
73
87
|
export interface SkillManifest {
|
|
74
88
|
readonly name: string;
|
|
75
89
|
readonly description: string;
|
|
90
|
+
/**
|
|
91
|
+
* Only a person starts this skill (`SKILL.md`'s `disable-model-invocation: true`): the model's
|
|
92
|
+
* catalog and `load_skill` leave it out unless the turn's message names it (`skill`), and an
|
|
93
|
+
* agent used as a tool never gets it. Absent means the model may load it.
|
|
94
|
+
*/
|
|
95
|
+
readonly disableModelInvocation?: true;
|
|
76
96
|
/**
|
|
77
97
|
* Every file of the skill's folder, by its path in the folder (`/`-separated, e.g.
|
|
78
98
|
* `SKILL.md`, `scripts/run.py`, `assets/logo.png`), as `sha256:<hex>`: the definition files
|
|
@@ -156,10 +176,12 @@ export interface AgentManifest {
|
|
|
156
176
|
readonly tools?: readonly ToolManifest[];
|
|
157
177
|
readonly skills?: Readonly<Record<string, SkillManifest>>;
|
|
158
178
|
readonly mcpServers?: Readonly<Record<string, McpServerManifest>>;
|
|
179
|
+
/** The Agent Plugins whose files are mounted in the sandbox: each with its `files`. */
|
|
180
|
+
readonly plugins?: readonly PluginManifest[];
|
|
159
181
|
/** What the agent needs of its session's Environment, checked when a session opens. */
|
|
160
182
|
readonly requires?: AgentRequirements;
|
|
161
183
|
/**
|
|
162
|
-
* The engine features the agent declares (
|
|
184
|
+
* The engine features the agent declares (`agent-folder/2`): with it, our engine adds
|
|
163
185
|
* only what it names; without it, every default of `agent-folder/1`.
|
|
164
186
|
*/
|
|
165
187
|
readonly engine?: HarnessEngine;
|
|
@@ -167,7 +189,7 @@ export interface AgentManifest {
|
|
|
167
189
|
/** A sandbox tool our engine may offer: `bash`, `read`, `write`, `edit`, `grep` or `glob`. */
|
|
168
190
|
export type EngineSandboxTool = "bash" | "read" | "write" | "edit" | "grep" | "glob";
|
|
169
191
|
/**
|
|
170
|
-
* The engine features an agent declares
|
|
192
|
+
* The engine features an agent declares: `harness.engine` of an agent manifest v8,
|
|
171
193
|
* `engine` of the loop manifest the harness runs. Its presence turns the defaults off: an agent
|
|
172
194
|
* with it gets no engine tool and no engine text it does not name. Memory, skills, `loop` and
|
|
173
195
|
* `runtime.selfWake` stay declared by their own keys.
|
|
@@ -184,14 +206,14 @@ export interface HarnessEngine {
|
|
|
184
206
|
readonly outputs?: boolean;
|
|
185
207
|
/** MCP tools deferred behind `tool_search` when their schemas pass the threshold. */
|
|
186
208
|
readonly toolSearch?: boolean;
|
|
187
|
-
/** The `triggers` tool and its text
|
|
209
|
+
/** The `triggers` tool and its text: the root agent sets up its own triggers. */
|
|
188
210
|
readonly triggers?: boolean;
|
|
189
211
|
/** A block's wording replaced by the folder's text, by block name. */
|
|
190
212
|
readonly instructions?: Readonly<Partial<Record<EngineBlockName, string>>>;
|
|
191
213
|
/** The engine text blocks the agent gets, each with its version and the hash of its text. */
|
|
192
214
|
readonly blocks?: readonly EngineBlockRef[];
|
|
193
215
|
/**
|
|
194
|
-
* The Runtime's plugins the agent declares (`agent-folder/3
|
|
216
|
+
* The Runtime's plugins the agent declares (`agent-folder/3`), each with the tools left
|
|
195
217
|
* on and the hash of its files. With it, the engine presents its tools as the server `nylorun`.
|
|
196
218
|
*/
|
|
197
219
|
readonly plugins?: readonly HarnessEnginePlugin[];
|
|
@@ -250,8 +272,11 @@ export interface AgentHarnessSection {
|
|
|
250
272
|
readonly tools?: readonly ToolManifest[];
|
|
251
273
|
readonly skills?: Readonly<Record<string, HarnessSkill>>;
|
|
252
274
|
readonly mcpServers?: Readonly<Record<string, HarnessMcpServer>>;
|
|
253
|
-
/**
|
|
254
|
-
|
|
275
|
+
/**
|
|
276
|
+
* The Agent Plugins folded into it when it was composed, so a version records what built it; one
|
|
277
|
+
* with `files` is mounted in the sandbox.
|
|
278
|
+
*/
|
|
279
|
+
readonly plugins?: readonly PluginManifest[];
|
|
255
280
|
readonly outputSchema?: JsonObject;
|
|
256
281
|
/** The harness's own settings: passed to it in `turn.start`, never read by the Runtime. */
|
|
257
282
|
readonly loop?: JsonObject;
|
|
@@ -267,7 +292,7 @@ export interface AgentHarnessSection {
|
|
|
267
292
|
* feature `model-roles`): a session opened with `role` runs on that role's model.
|
|
268
293
|
*/
|
|
269
294
|
readonly roles?: Readonly<Record<string, string>>;
|
|
270
|
-
/** The engine features the agent declares
|
|
295
|
+
/** The engine features the agent declares, for itself; its subagents declare their own. */
|
|
271
296
|
readonly engine?: HarnessEngine;
|
|
272
297
|
}
|
|
273
298
|
/**
|