@nylorun/core 0.32.0-beta → 0.34.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 +91 -0
- package/dist/compatibility.d.ts +17 -1
- package/dist/compatibility.js +16 -0
- package/dist/contracts.d.ts +447 -11
- package/dist/contracts.js +211 -16
- package/dist/define.d.ts +1 -1
- package/dist/define.js +1 -1
- package/dist/definition/assemble.d.ts +2 -1
- package/dist/definition/assemble.js +1 -0
- package/dist/definition/from.js +1 -0
- package/dist/definition/manifest.d.ts +2 -1
- package/dist/definition/manifest.js +1 -0
- package/dist/definition/sections.d.ts +1 -1
- package/dist/definition/sections.js +5 -1
- package/dist/definition/variant.d.ts +16 -1
- package/dist/definition/variant.js +81 -3
- package/dist/engine/blocks.d.ts +52 -0
- package/dist/engine/blocks.js +155 -0
- package/dist/engine/explain.d.ts +36 -0
- package/dist/engine/explain.js +108 -0
- package/dist/engine/features.d.ts +28 -0
- package/dist/engine/features.js +34 -0
- package/dist/engine/index.d.ts +14 -0
- package/dist/engine/index.js +14 -0
- package/dist/engine/mcp.d.ts +119 -0
- package/dist/engine/mcp.js +267 -0
- package/dist/engine/names.d.ts +12 -0
- package/dist/engine/names.js +25 -0
- package/dist/engine/preview.d.ts +88 -0
- package/dist/engine/preview.js +119 -0
- package/dist/engine/projection.d.ts +61 -0
- package/dist/engine/projection.js +100 -0
- package/dist/engine/tools.d.ts +108 -0
- package/dist/engine/tools.js +460 -0
- package/dist/folder/compile.d.ts +11 -4
- package/dist/folder/compile.js +123 -13
- package/dist/folder/context.d.ts +5 -0
- package/dist/folder/decompile.js +22 -1
- package/dist/folder/engine.d.ts +70 -0
- package/dist/folder/engine.js +210 -0
- package/dist/folder/nested.js +1 -0
- package/dist/folder/schemas.js +42 -3
- package/dist/harness-api/harness-api.schema.json +11 -4
- package/dist/harness-api/json-schema.js +5 -2
- package/dist/harness-api/messages.d.ts +4 -2
- package/dist/harness-api/messages.js +4 -1
- package/dist/harness-api/schema.d.ts +9 -4
- package/dist/harness-api/schema.js +11 -2
- package/dist/manifest-schemas.js +8 -4
- package/dist/schemas/agent-folder/agent-md.schema.json +79 -3
- package/dist/schemas/agent-folder/runtime.schema.json +13 -1
- package/dist/schemas/agent-manifest.schema.json +139 -1
- package/dist/schemas/harness-manifest.schema.json +124 -1
- package/dist/schemas/runtime-manifest.schema.json +13 -1
- package/dist/types/manifest.d.ts +47 -0
- package/package.json +5 -1
package/dist/folder/schemas.js
CHANGED
|
@@ -22,6 +22,8 @@ import { AGENT_MANIFEST_NAME_PATTERN, ENVIRONMENT_NAME_PATTERN, HarnessIdSchema,
|
|
|
22
22
|
import { DELEGATE_NAME_PATTERN } from "../definition/delegate.js";
|
|
23
23
|
import { AGENT_KEYS, FOLDER_SCHEMAS, MCP_KEYS, PLUGIN_SERVER_SETTING_KEYS, SERVER_KEYS, TOOL_KEYS, TRIGGER_KEYS, } from "./compile.js";
|
|
24
24
|
import { LOOP_KEYS, MAP_KEYS, NODE_KINDS, SWITCH_KEYS, VERIFY_KEYS } from "./flow.js";
|
|
25
|
+
import { SANDBOX_TOOL_NAMES } from "../utils/sandbox.js";
|
|
26
|
+
import { ENGINE_BLOCK_NAMES } from "../engine/names.js";
|
|
25
27
|
/** The kinds of file an agent folder has a JSON Schema document for. */
|
|
26
28
|
export const AGENT_FOLDER_SCHEMA_KINDS = ["agent-md", "trigger-md", "runtime", "tool", "mcp", "flow"];
|
|
27
29
|
const DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
@@ -50,9 +52,11 @@ function fromZod(schema, defs, description) {
|
|
|
50
52
|
/**
|
|
51
53
|
* A kind's revision within format 1, when its document gained an optional key (a published `$id`
|
|
52
54
|
* names one document for good): `AGENT.md` took `model` (Host feature `agent-model`), published
|
|
53
|
-
* as `agent-md.1.json
|
|
55
|
+
* as `agent-md.1.json`, then `format: agent-folder/2` and `engine` (ADR-100), as `agent-md.2.json`;
|
|
56
|
+
* `runtime.json` took a secret slot's `toolPrefix` (Host feature `secret-routing`), published as
|
|
57
|
+
* `runtime.1.json`.
|
|
54
58
|
*/
|
|
55
|
-
const REVISIONS = { "agent-md": 1 };
|
|
59
|
+
const REVISIONS = { "agent-md": 2, runtime: 1 };
|
|
56
60
|
/** One document: its `$id` from its kind, then the body, then the `$defs` its parts named. */
|
|
57
61
|
function document(kind, title, description, body, defs) {
|
|
58
62
|
const revision = REVISIONS[kind];
|
|
@@ -91,7 +95,10 @@ function agentMd() {
|
|
|
91
95
|
const properties = {
|
|
92
96
|
name: { type: "string", pattern: AGENT_MANIFEST_NAME_PATTERN.source, description: "The agent manifest's name, the folder's when it is saved under one" },
|
|
93
97
|
description: { type: "string", minLength: 1, description: "What the agent does, in a sentence" },
|
|
94
|
-
format: {
|
|
98
|
+
format: {
|
|
99
|
+
enum: [1, 2, "agent-folder/1", "agent-folder/2"],
|
|
100
|
+
description: "The folder's format: agent-folder/1 (or 1, the default), which gets every engine feature by default, or agent-folder/2 (or 2), which declares each in engine",
|
|
101
|
+
},
|
|
95
102
|
harness: fromZod(HarnessIdSchema, defs, "The harness that runs the loop: nylorun (ours, the default) or a custom harness's id"),
|
|
96
103
|
inputSchema: ref("JsonSchemaOrPath", "A flow's input (a folder with flow.json); an agent's input is the message"),
|
|
97
104
|
outputSchema: ref("JsonSchemaOrPath", "The JSON Schema of the agent's final answer"),
|
|
@@ -113,6 +120,38 @@ function agentMd() {
|
|
|
113
120
|
description: "The harness's own settings, passed to it each turn; the nylorun harness reads plan (true offers the agent update_plan) and connections (true offers it request_connection)",
|
|
114
121
|
},
|
|
115
122
|
model: fromZod(AgentModelSchema, defs, "The model the agent runs on: <provider>/<model>, such as anthropic/claude-sonnet-4-5"),
|
|
123
|
+
engine: {
|
|
124
|
+
type: "object",
|
|
125
|
+
description: "agent-folder/2: the engine features the agent uses, and nothing else is added: sandbox (the sandbox tools), artifacts (read_artifact, save_artifact), outputs (the outputs folder), toolSearch (MCP tools deferred past the threshold), instructions (a block's wording, from a file under engine/)",
|
|
126
|
+
properties: {
|
|
127
|
+
sandbox: {
|
|
128
|
+
type: "array",
|
|
129
|
+
items: { enum: [...SANDBOX_TOOL_NAMES] },
|
|
130
|
+
uniqueItems: true,
|
|
131
|
+
description: "The sandbox tools offered: any of bash, read, write, edit, grep and glob; needs a computer in runtime.json",
|
|
132
|
+
},
|
|
133
|
+
artifacts: {
|
|
134
|
+
type: "object",
|
|
135
|
+
properties: {
|
|
136
|
+
read: { type: "boolean", description: "read_artifact, and the text on results too large to show and files of earlier turns" },
|
|
137
|
+
save: { type: "boolean", description: "save_artifact and its text; needs a computer" },
|
|
138
|
+
},
|
|
139
|
+
additionalProperties: false,
|
|
140
|
+
},
|
|
141
|
+
outputs: { type: "boolean", description: "Save /workspace/outputs as the session's outputs folder when a turn ends; needs a computer" },
|
|
142
|
+
toolSearch: {
|
|
143
|
+
type: "boolean",
|
|
144
|
+
description: "Defer the MCP tools behind tool_search when their schemas pass the threshold; a server's own deferred applies either way",
|
|
145
|
+
},
|
|
146
|
+
instructions: {
|
|
147
|
+
type: "object",
|
|
148
|
+
propertyNames: { enum: [...ENGINE_BLOCK_NAMES] },
|
|
149
|
+
additionalProperties: { type: "string", pattern: "^(\\./)?engine/.+\\.md$" },
|
|
150
|
+
description: "A block's wording, replaced by a Markdown file under engine/, by block name; the memory rule that outside text is data stays",
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
additionalProperties: false,
|
|
154
|
+
},
|
|
116
155
|
metadata: { type: "object", description: "The manifest's metadata, as it is" },
|
|
117
156
|
};
|
|
118
157
|
return document("agent-md", "Nylorun agent folder: AGENT.md frontmatter", "The frontmatter of an agent folder's AGENT.md; the body below it is the instructions", { type: "object", properties, required: ["name", "description"], additionalProperties: false }, defs);
|
|
@@ -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-api/v5.
|
|
3
|
+
"$id": "https://docs.nylorun.com/schemas/harness-api/v5.2.json",
|
|
4
4
|
"title": "Nylorun Harness API 5",
|
|
5
5
|
"$defs": {
|
|
6
6
|
"ArtifactMeta": {
|
|
@@ -1194,11 +1194,14 @@
|
|
|
1194
1194
|
},
|
|
1195
1195
|
"truncated": {
|
|
1196
1196
|
"type": "boolean"
|
|
1197
|
+
},
|
|
1198
|
+
"refresh": {
|
|
1199
|
+
"type": "boolean",
|
|
1200
|
+
"const": true
|
|
1197
1201
|
}
|
|
1198
1202
|
},
|
|
1199
1203
|
"required": [
|
|
1200
1204
|
"access",
|
|
1201
|
-
"index",
|
|
1202
1205
|
"truncated"
|
|
1203
1206
|
],
|
|
1204
1207
|
"additionalProperties": false
|
|
@@ -3389,11 +3392,14 @@
|
|
|
3389
3392
|
},
|
|
3390
3393
|
"truncated": {
|
|
3391
3394
|
"type": "boolean"
|
|
3395
|
+
},
|
|
3396
|
+
"refresh": {
|
|
3397
|
+
"type": "boolean",
|
|
3398
|
+
"const": true
|
|
3392
3399
|
}
|
|
3393
3400
|
},
|
|
3394
3401
|
"required": [
|
|
3395
3402
|
"access",
|
|
3396
|
-
"index",
|
|
3397
3403
|
"truncated"
|
|
3398
3404
|
],
|
|
3399
3405
|
"additionalProperties": false
|
|
@@ -4302,7 +4308,8 @@
|
|
|
4302
4308
|
"environment.exec",
|
|
4303
4309
|
"artifact.export.skipped",
|
|
4304
4310
|
"artifact.export.failed",
|
|
4305
|
-
"plan.updated"
|
|
4311
|
+
"plan.updated",
|
|
4312
|
+
"engine.diagnostic"
|
|
4306
4313
|
]
|
|
4307
4314
|
},
|
|
4308
4315
|
"payload": {},
|
|
@@ -51,9 +51,12 @@ export function harnessApiSchemas() {
|
|
|
51
51
|
/**
|
|
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
|
-
* published `$id` names one document for good.
|
|
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 (ADR-100), and
|
|
56
|
+
* `turn.start.memory.refresh` (an optional field a v5 harness may ignore, keeping the index it
|
|
57
|
+
* pinned).
|
|
55
58
|
*/
|
|
56
|
-
const SCHEMA_REVISION =
|
|
59
|
+
const SCHEMA_REVISION = 2;
|
|
57
60
|
/** The JSON Schema document of the Harness API (draft 2020-12). */
|
|
58
61
|
export function harnessApiJsonSchema() {
|
|
59
62
|
const $defs = {};
|
|
@@ -22,9 +22,11 @@ export type ReleaseReason = z.infer<typeof ReleaseReasonSchema>;
|
|
|
22
22
|
* `environment.state` claim carries the workspace's compute record, which core keeps. Our engine
|
|
23
23
|
* claims `artifact.export.skipped` and `artifact.export.failed` when the turn-end save of its
|
|
24
24
|
* outputs folder stores nothing (protocol 15), and `plan.updated` when the agent calls its
|
|
25
|
-
* built-in `update_plan` tool
|
|
25
|
+
* built-in `update_plan` tool, and `engine.diagnostic` when an agent's declarations leave it
|
|
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 (ADR-100; both additive within v5).
|
|
26
28
|
*/
|
|
27
|
-
export declare const HARNESS_CLAIMS: readonly ["environment.state", "environment.exec", "artifact.export.skipped", "artifact.export.failed", "plan.updated"];
|
|
29
|
+
export declare const HARNESS_CLAIMS: readonly ["environment.state", "environment.exec", "artifact.export.skipped", "artifact.export.failed", "plan.updated", "engine.diagnostic"];
|
|
28
30
|
export type HarnessClaim = (typeof HARNESS_CLAIMS)[number];
|
|
29
31
|
export declare const HARNESS_ERROR_CODES: readonly ["run_not_held", "turn_cancelled", "ownership_lost", "effect_drift", "invalid", "unavailable", "internal",
|
|
30
32
|
/**
|
|
@@ -6,7 +6,9 @@ export const ABORT_REASONS = ["cancel", "shutdown", "deadline", "ownership.lost"
|
|
|
6
6
|
* `environment.state` claim carries the workspace's compute record, which core keeps. Our engine
|
|
7
7
|
* claims `artifact.export.skipped` and `artifact.export.failed` when the turn-end save of its
|
|
8
8
|
* outputs folder stores nothing (protocol 15), and `plan.updated` when the agent calls its
|
|
9
|
-
* built-in `update_plan` tool
|
|
9
|
+
* built-in `update_plan` tool, and `engine.diagnostic` when an agent's declarations leave it
|
|
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 (ADR-100; both additive within v5).
|
|
10
12
|
*/
|
|
11
13
|
export const HARNESS_CLAIMS = [
|
|
12
14
|
"environment.state",
|
|
@@ -14,6 +16,7 @@ export const HARNESS_CLAIMS = [
|
|
|
14
16
|
"artifact.export.skipped",
|
|
15
17
|
"artifact.export.failed",
|
|
16
18
|
"plan.updated",
|
|
19
|
+
"engine.diagnostic",
|
|
17
20
|
];
|
|
18
21
|
export const HARNESS_ERROR_CODES = [
|
|
19
22
|
"run_not_held",
|
|
@@ -414,7 +414,8 @@ export declare const TurnAgentSchema: z.ZodObject<{
|
|
|
414
414
|
* harness pins in the session (one line per memory, newest first, with its description, within
|
|
415
415
|
* the Runtime limits `memoryIndexLines` and `memoryIndexBytes`; `truncated` when some were left
|
|
416
416
|
* out). A harness offers the `memory` tool (a `runtime` effect, operation `memory`), view only for
|
|
417
|
-
* `read_only` and for its sub-agents.
|
|
417
|
+
* `read_only` and for its sub-agents. The index is the Runtime's as the segment starts; a harness
|
|
418
|
+
* keeps the one it pinned, and pins it again when `refresh` says the memory changed elsewhere.
|
|
418
419
|
*/
|
|
419
420
|
export declare const TurnMemorySchema: z.ZodObject<{
|
|
420
421
|
access: z.ZodEnum<{
|
|
@@ -422,8 +423,9 @@ export declare const TurnMemorySchema: z.ZodObject<{
|
|
|
422
423
|
read_write: "read_write";
|
|
423
424
|
}>;
|
|
424
425
|
instructions: z.ZodOptional<z.ZodString>;
|
|
425
|
-
index: z.ZodString
|
|
426
|
+
index: z.ZodOptional<z.ZodString>;
|
|
426
427
|
truncated: z.ZodBoolean;
|
|
428
|
+
refresh: z.ZodOptional<z.ZodLiteral<true>>;
|
|
427
429
|
}, z.core.$strict>;
|
|
428
430
|
/** What a run starts from: `turn.start` (message, continue, resume) or `approval.answer`. */
|
|
429
431
|
export declare const TurnStartSchema: z.ZodObject<{
|
|
@@ -447,8 +449,9 @@ export declare const TurnStartSchema: z.ZodObject<{
|
|
|
447
449
|
read_write: "read_write";
|
|
448
450
|
}>;
|
|
449
451
|
instructions: z.ZodOptional<z.ZodString>;
|
|
450
|
-
index: z.ZodString
|
|
452
|
+
index: z.ZodOptional<z.ZodString>;
|
|
451
453
|
truncated: z.ZodBoolean;
|
|
454
|
+
refresh: z.ZodOptional<z.ZodLiteral<true>>;
|
|
452
455
|
}, z.core.$strict>>;
|
|
453
456
|
checkpoint: z.ZodType<object, unknown, z.core.$ZodTypeInternals<object, unknown>>;
|
|
454
457
|
mcp: z.ZodOptional<z.ZodObject<{
|
|
@@ -688,8 +691,9 @@ export declare const harnessRequests: {
|
|
|
688
691
|
read_write: "read_write";
|
|
689
692
|
}>;
|
|
690
693
|
instructions: z.ZodOptional<z.ZodString>;
|
|
691
|
-
index: z.ZodString
|
|
694
|
+
index: z.ZodOptional<z.ZodString>;
|
|
692
695
|
truncated: z.ZodBoolean;
|
|
696
|
+
refresh: z.ZodOptional<z.ZodLiteral<true>>;
|
|
693
697
|
}, z.core.$strict>>;
|
|
694
698
|
checkpoint: z.ZodType<object, unknown, z.core.$ZodTypeInternals<object, unknown>>;
|
|
695
699
|
mcp: z.ZodOptional<z.ZodObject<{
|
|
@@ -905,6 +909,7 @@ export declare const harnessRequests: {
|
|
|
905
909
|
type: z.ZodEnum<{
|
|
906
910
|
"artifact.export.failed": "artifact.export.failed";
|
|
907
911
|
"artifact.export.skipped": "artifact.export.skipped";
|
|
912
|
+
"engine.diagnostic": "engine.diagnostic";
|
|
908
913
|
"environment.exec": "environment.exec";
|
|
909
914
|
"environment.state": "environment.state";
|
|
910
915
|
"plan.updated": "plan.updated";
|
|
@@ -333,14 +333,23 @@ export const TurnAgentSchema = z
|
|
|
333
333
|
* harness pins in the session (one line per memory, newest first, with its description, within
|
|
334
334
|
* the Runtime limits `memoryIndexLines` and `memoryIndexBytes`; `truncated` when some were left
|
|
335
335
|
* out). A harness offers the `memory` tool (a `runtime` effect, operation `memory`), view only for
|
|
336
|
-
* `read_only` and for its sub-agents.
|
|
336
|
+
* `read_only` and for its sub-agents. The index is the Runtime's as the segment starts; a harness
|
|
337
|
+
* keeps the one it pinned, and pins it again when `refresh` says the memory changed elsewhere.
|
|
337
338
|
*/
|
|
338
339
|
export const TurnMemorySchema = z
|
|
339
340
|
.object({
|
|
340
341
|
access: z.enum(["read_write", "read_only"]),
|
|
341
342
|
instructions: z.string().optional(),
|
|
342
|
-
index:
|
|
343
|
+
/** Absent when the version sets `harness.memory.index: false` (ADR-100): nothing is pinned. */
|
|
344
|
+
index: z.string().optional(),
|
|
343
345
|
truncated: z.boolean(),
|
|
346
|
+
/**
|
|
347
|
+
* Set at a turn's first segment when someone other than this session (another session of the
|
|
348
|
+
* Agent, or a person over the API) wrote its memory since the session's last turn started: the
|
|
349
|
+
* harness pins `index` again in place of the one it pinned before. Never set mid-turn. Within
|
|
350
|
+
* v5, core sends it only to Nylorun's own harness (`nylorun`, the Runtime's own version).
|
|
351
|
+
*/
|
|
352
|
+
refresh: z.literal(true).optional(),
|
|
344
353
|
})
|
|
345
354
|
.strict();
|
|
346
355
|
/** What a run starts from: `turn.start` (message, continue, resume) or `approval.answer`. */
|
package/dist/manifest-schemas.js
CHANGED
|
@@ -14,10 +14,14 @@ import { AGENT_MANIFEST_V8_SCHEMA_VERSION, AgentManifestFileSchema, HARNESS_MANI
|
|
|
14
14
|
/**
|
|
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
|
-
* `harness.model` (Host feature `agent-model`), published as `v8.1` and `v1.1
|
|
17
|
+
* `harness.model` (Host feature `agent-model`), published as `v8.1` and `v1.1`, then
|
|
18
|
+
* `harness.engine` and `harness.memory.index` (ADR-100) and a secret slot's `toolPrefix` (Host
|
|
19
|
+
* feature `secret-routing`), published as agent manifest `v8.2`, harness file `v1.2` and runtime
|
|
20
|
+
* file `v1.1`.
|
|
18
21
|
*/
|
|
19
|
-
const AGENT_MANIFEST_REVISION =
|
|
20
|
-
const HARNESS_MANIFEST_FILE_REVISION =
|
|
22
|
+
const AGENT_MANIFEST_REVISION = 2;
|
|
23
|
+
const HARNESS_MANIFEST_FILE_REVISION = 2;
|
|
24
|
+
const RUNTIME_MANIFEST_FILE_REVISION = 1;
|
|
21
25
|
function document(schema, id, title) {
|
|
22
26
|
const { $schema: _, ...definition } = z.toJSONSchema(schema, { io: "input", unrepresentable: "any" });
|
|
23
27
|
const properties = (definition.properties ?? {});
|
|
@@ -46,5 +50,5 @@ export function harnessManifestJsonSchema() {
|
|
|
46
50
|
}
|
|
47
51
|
/** `runtime.manifest.json`'s JSON Schema document: the runtime section as an authoring file. */
|
|
48
52
|
export function runtimeManifestJsonSchema() {
|
|
49
|
-
return document(RuntimeManifestFileSchema, `runtime-manifest/v${RUNTIME_MANIFEST_FILE_SCHEMA_VERSION}`, `Nylorun runtime manifest ${RUNTIME_MANIFEST_FILE_SCHEMA_VERSION}`);
|
|
53
|
+
return document(RuntimeManifestFileSchema, `runtime-manifest/v${RUNTIME_MANIFEST_FILE_SCHEMA_VERSION}.${RUNTIME_MANIFEST_FILE_REVISION}`, `Nylorun runtime manifest ${RUNTIME_MANIFEST_FILE_SCHEMA_VERSION}`);
|
|
50
54
|
}
|
|
@@ -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-folder/v1/agent-md.
|
|
3
|
+
"$id": "https://docs.nylorun.com/schemas/agent-folder/v1/agent-md.2.json",
|
|
4
4
|
"title": "Nylorun agent folder: AGENT.md frontmatter",
|
|
5
5
|
"description": "The frontmatter of an agent folder's AGENT.md; the body below it is the instructions",
|
|
6
6
|
"type": "object",
|
|
@@ -16,8 +16,13 @@
|
|
|
16
16
|
"description": "What the agent does, in a sentence"
|
|
17
17
|
},
|
|
18
18
|
"format": {
|
|
19
|
-
"
|
|
20
|
-
|
|
19
|
+
"enum": [
|
|
20
|
+
1,
|
|
21
|
+
2,
|
|
22
|
+
"agent-folder/1",
|
|
23
|
+
"agent-folder/2"
|
|
24
|
+
],
|
|
25
|
+
"description": "The folder's format: agent-folder/1 (or 1, the default), which gets every engine feature by default, or agent-folder/2 (or 2), which declares each in engine"
|
|
21
26
|
},
|
|
22
27
|
"harness": {
|
|
23
28
|
"type": "string",
|
|
@@ -75,6 +80,10 @@
|
|
|
75
80
|
"description": "What this agent should remember, after the engine's own memory rules",
|
|
76
81
|
"type": "string",
|
|
77
82
|
"maxLength": 4096
|
|
83
|
+
},
|
|
84
|
+
"index": {
|
|
85
|
+
"description": "agent-folder/2: false pins no memory index in a session. Default true",
|
|
86
|
+
"type": "boolean"
|
|
78
87
|
}
|
|
79
88
|
},
|
|
80
89
|
"additionalProperties": false,
|
|
@@ -90,6 +99,73 @@
|
|
|
90
99
|
"pattern": "^[A-Za-z0-9._-]+\\/\\S+$",
|
|
91
100
|
"description": "The model the agent runs on: <provider>/<model>, such as anthropic/claude-sonnet-4-5"
|
|
92
101
|
},
|
|
102
|
+
"engine": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"description": "agent-folder/2: the engine features the agent uses, and nothing else is added: sandbox (the sandbox tools), artifacts (read_artifact, save_artifact), outputs (the outputs folder), toolSearch (MCP tools deferred past the threshold), instructions (a block's wording, from a file under engine/)",
|
|
105
|
+
"properties": {
|
|
106
|
+
"sandbox": {
|
|
107
|
+
"type": "array",
|
|
108
|
+
"items": {
|
|
109
|
+
"enum": [
|
|
110
|
+
"bash",
|
|
111
|
+
"read",
|
|
112
|
+
"write",
|
|
113
|
+
"edit",
|
|
114
|
+
"grep",
|
|
115
|
+
"glob"
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
"uniqueItems": true,
|
|
119
|
+
"description": "The sandbox tools offered: any of bash, read, write, edit, grep and glob; needs a computer in runtime.json"
|
|
120
|
+
},
|
|
121
|
+
"artifacts": {
|
|
122
|
+
"type": "object",
|
|
123
|
+
"properties": {
|
|
124
|
+
"read": {
|
|
125
|
+
"type": "boolean",
|
|
126
|
+
"description": "read_artifact, and the text on results too large to show and files of earlier turns"
|
|
127
|
+
},
|
|
128
|
+
"save": {
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"description": "save_artifact and its text; needs a computer"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"additionalProperties": false
|
|
134
|
+
},
|
|
135
|
+
"outputs": {
|
|
136
|
+
"type": "boolean",
|
|
137
|
+
"description": "Save /workspace/outputs as the session's outputs folder when a turn ends; needs a computer"
|
|
138
|
+
},
|
|
139
|
+
"toolSearch": {
|
|
140
|
+
"type": "boolean",
|
|
141
|
+
"description": "Defer the MCP tools behind tool_search when their schemas pass the threshold; a server's own deferred applies either way"
|
|
142
|
+
},
|
|
143
|
+
"instructions": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"propertyNames": {
|
|
146
|
+
"enum": [
|
|
147
|
+
"skills",
|
|
148
|
+
"sandbox",
|
|
149
|
+
"skill_folder",
|
|
150
|
+
"artifacts_save",
|
|
151
|
+
"outputs",
|
|
152
|
+
"artifacts_read",
|
|
153
|
+
"wake",
|
|
154
|
+
"memory",
|
|
155
|
+
"plan",
|
|
156
|
+
"connection",
|
|
157
|
+
"tool_search"
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
"additionalProperties": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"pattern": "^(\\./)?engine/.+\\.md$"
|
|
163
|
+
},
|
|
164
|
+
"description": "A block's wording, replaced by a Markdown file under engine/, by block name; the memory rule that outside text is data stays"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"additionalProperties": false
|
|
168
|
+
},
|
|
93
169
|
"metadata": {
|
|
94
170
|
"type": "object",
|
|
95
171
|
"description": "The manifest's metadata, as it is"
|
|
@@ -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-folder/v1/runtime.json",
|
|
3
|
+
"$id": "https://docs.nylorun.com/schemas/agent-folder/v1/runtime.1.json",
|
|
4
4
|
"title": "Nylorun agent folder: runtime.json",
|
|
5
5
|
"description": "An agent folder's runtime.json: the runtime section of the agent manifest. kind is required unless extends names a file that gives it",
|
|
6
6
|
"type": "object",
|
|
@@ -296,6 +296,12 @@
|
|
|
296
296
|
],
|
|
297
297
|
"additionalProperties": false
|
|
298
298
|
},
|
|
299
|
+
"toolPrefix": {
|
|
300
|
+
"type": "string",
|
|
301
|
+
"minLength": 1,
|
|
302
|
+
"maxLength": 64,
|
|
303
|
+
"pattern": "^[\\x21-\\x7e]+$"
|
|
304
|
+
},
|
|
299
305
|
"required": {
|
|
300
306
|
"type": "boolean"
|
|
301
307
|
},
|
|
@@ -336,6 +342,12 @@
|
|
|
336
342
|
],
|
|
337
343
|
"additionalProperties": false
|
|
338
344
|
},
|
|
345
|
+
"toolPrefix": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"minLength": 1,
|
|
348
|
+
"maxLength": 64,
|
|
349
|
+
"pattern": "^[\\x21-\\x7e]+$"
|
|
350
|
+
},
|
|
339
351
|
"required": {
|
|
340
352
|
"type": "boolean"
|
|
341
353
|
},
|
|
@@ -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.2.json",
|
|
4
4
|
"title": "Nylorun agent manifest 8",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -277,6 +277,10 @@
|
|
|
277
277
|
"description": "What this agent should remember, after the engine's own memory rules",
|
|
278
278
|
"type": "string",
|
|
279
279
|
"maxLength": 4096
|
|
280
|
+
},
|
|
281
|
+
"index": {
|
|
282
|
+
"description": "agent-folder/2: false pins no memory index in a session. Default true",
|
|
283
|
+
"type": "boolean"
|
|
280
284
|
}
|
|
281
285
|
},
|
|
282
286
|
"additionalProperties": false
|
|
@@ -287,6 +291,9 @@
|
|
|
287
291
|
"pattern": "^[A-Za-z0-9._-]+\\/\\S+$",
|
|
288
292
|
"description": "The model the agent runs on: <provider>/<model>, such as anthropic/claude-sonnet-4-5"
|
|
289
293
|
},
|
|
294
|
+
"engine": {
|
|
295
|
+
"$ref": "#/$defs/HarnessEngine"
|
|
296
|
+
},
|
|
290
297
|
"credentials": {
|
|
291
298
|
"type": "object",
|
|
292
299
|
"propertyNames": {
|
|
@@ -640,6 +647,12 @@
|
|
|
640
647
|
],
|
|
641
648
|
"additionalProperties": false
|
|
642
649
|
},
|
|
650
|
+
"toolPrefix": {
|
|
651
|
+
"type": "string",
|
|
652
|
+
"minLength": 1,
|
|
653
|
+
"maxLength": 64,
|
|
654
|
+
"pattern": "^[\\x21-\\x7e]+$"
|
|
655
|
+
},
|
|
643
656
|
"required": {
|
|
644
657
|
"type": "boolean"
|
|
645
658
|
},
|
|
@@ -680,6 +693,12 @@
|
|
|
680
693
|
],
|
|
681
694
|
"additionalProperties": false
|
|
682
695
|
},
|
|
696
|
+
"toolPrefix": {
|
|
697
|
+
"type": "string",
|
|
698
|
+
"minLength": 1,
|
|
699
|
+
"maxLength": 64,
|
|
700
|
+
"pattern": "^[\\x21-\\x7e]+$"
|
|
701
|
+
},
|
|
683
702
|
"required": {
|
|
684
703
|
"type": "boolean"
|
|
685
704
|
},
|
|
@@ -1036,6 +1055,9 @@
|
|
|
1036
1055
|
},
|
|
1037
1056
|
"additionalProperties": false
|
|
1038
1057
|
},
|
|
1058
|
+
"engine": {
|
|
1059
|
+
"$ref": "#/$defs/HarnessEngine"
|
|
1060
|
+
},
|
|
1039
1061
|
"functions": {
|
|
1040
1062
|
"description": "Reserved: Functions are not available yet"
|
|
1041
1063
|
}
|
|
@@ -1374,6 +1396,9 @@
|
|
|
1374
1396
|
},
|
|
1375
1397
|
"additionalProperties": false
|
|
1376
1398
|
},
|
|
1399
|
+
"engine": {
|
|
1400
|
+
"$ref": "#/$defs/HarnessEngine"
|
|
1401
|
+
},
|
|
1377
1402
|
"functions": {
|
|
1378
1403
|
"description": "Reserved: Functions are not available yet"
|
|
1379
1404
|
}
|
|
@@ -1715,6 +1740,116 @@
|
|
|
1715
1740
|
},
|
|
1716
1741
|
"additionalProperties": false
|
|
1717
1742
|
},
|
|
1743
|
+
"HarnessEngine": {
|
|
1744
|
+
"type": "object",
|
|
1745
|
+
"properties": {
|
|
1746
|
+
"sandbox": {
|
|
1747
|
+
"description": "The sandbox tools offered: any of bash, read, write, edit, grep and glob; needs a computer",
|
|
1748
|
+
"type": "array",
|
|
1749
|
+
"items": {
|
|
1750
|
+
"type": "string",
|
|
1751
|
+
"enum": [
|
|
1752
|
+
"bash",
|
|
1753
|
+
"read",
|
|
1754
|
+
"write",
|
|
1755
|
+
"edit",
|
|
1756
|
+
"grep",
|
|
1757
|
+
"glob"
|
|
1758
|
+
]
|
|
1759
|
+
}
|
|
1760
|
+
},
|
|
1761
|
+
"artifacts": {
|
|
1762
|
+
"description": "read: read_artifact and its text; save: save_artifact and its text (needs a computer)",
|
|
1763
|
+
"type": "object",
|
|
1764
|
+
"properties": {
|
|
1765
|
+
"read": {
|
|
1766
|
+
"type": "boolean"
|
|
1767
|
+
},
|
|
1768
|
+
"save": {
|
|
1769
|
+
"type": "boolean"
|
|
1770
|
+
}
|
|
1771
|
+
},
|
|
1772
|
+
"additionalProperties": false
|
|
1773
|
+
},
|
|
1774
|
+
"outputs": {
|
|
1775
|
+
"description": "Save /workspace/outputs when a turn ends; needs a computer",
|
|
1776
|
+
"type": "boolean"
|
|
1777
|
+
},
|
|
1778
|
+
"toolSearch": {
|
|
1779
|
+
"description": "Defer MCP tools behind tool_search when their schemas pass the threshold",
|
|
1780
|
+
"type": "boolean"
|
|
1781
|
+
},
|
|
1782
|
+
"instructions": {
|
|
1783
|
+
"description": "A block's wording replaced, by block name",
|
|
1784
|
+
"type": "object",
|
|
1785
|
+
"propertyNames": {
|
|
1786
|
+
"type": "string",
|
|
1787
|
+
"enum": [
|
|
1788
|
+
"skills",
|
|
1789
|
+
"sandbox",
|
|
1790
|
+
"skill_folder",
|
|
1791
|
+
"artifacts_save",
|
|
1792
|
+
"outputs",
|
|
1793
|
+
"artifacts_read",
|
|
1794
|
+
"wake",
|
|
1795
|
+
"memory",
|
|
1796
|
+
"plan",
|
|
1797
|
+
"connection",
|
|
1798
|
+
"tool_search"
|
|
1799
|
+
]
|
|
1800
|
+
},
|
|
1801
|
+
"additionalProperties": {
|
|
1802
|
+
"type": "string",
|
|
1803
|
+
"minLength": 1
|
|
1804
|
+
}
|
|
1805
|
+
},
|
|
1806
|
+
"blocks": {
|
|
1807
|
+
"description": "The engine text blocks the agent gets, with their hashes",
|
|
1808
|
+
"type": "array",
|
|
1809
|
+
"items": {
|
|
1810
|
+
"type": "object",
|
|
1811
|
+
"properties": {
|
|
1812
|
+
"name": {
|
|
1813
|
+
"type": "string",
|
|
1814
|
+
"enum": [
|
|
1815
|
+
"skills",
|
|
1816
|
+
"sandbox",
|
|
1817
|
+
"skill_folder",
|
|
1818
|
+
"artifacts_save",
|
|
1819
|
+
"outputs",
|
|
1820
|
+
"artifacts_read",
|
|
1821
|
+
"wake",
|
|
1822
|
+
"memory",
|
|
1823
|
+
"plan",
|
|
1824
|
+
"connection",
|
|
1825
|
+
"tool_search"
|
|
1826
|
+
]
|
|
1827
|
+
},
|
|
1828
|
+
"version": {
|
|
1829
|
+
"type": "integer",
|
|
1830
|
+
"exclusiveMinimum": 0,
|
|
1831
|
+
"maximum": 9007199254740991
|
|
1832
|
+
},
|
|
1833
|
+
"sha256": {
|
|
1834
|
+
"type": "string",
|
|
1835
|
+
"pattern": "^sha256:[0-9a-f]{64}$"
|
|
1836
|
+
},
|
|
1837
|
+
"source": {
|
|
1838
|
+
"type": "string",
|
|
1839
|
+
"minLength": 1
|
|
1840
|
+
}
|
|
1841
|
+
},
|
|
1842
|
+
"required": [
|
|
1843
|
+
"name",
|
|
1844
|
+
"version",
|
|
1845
|
+
"sha256"
|
|
1846
|
+
],
|
|
1847
|
+
"additionalProperties": false
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
},
|
|
1851
|
+
"additionalProperties": false
|
|
1852
|
+
},
|
|
1718
1853
|
"WorkflowHarnessSection": {
|
|
1719
1854
|
"type": "object",
|
|
1720
1855
|
"properties": {
|
|
@@ -1977,6 +2112,9 @@
|
|
|
1977
2112
|
},
|
|
1978
2113
|
"additionalProperties": false
|
|
1979
2114
|
},
|
|
2115
|
+
"engine": {
|
|
2116
|
+
"$ref": "#/$defs/HarnessEngine"
|
|
2117
|
+
},
|
|
1980
2118
|
"functions": {
|
|
1981
2119
|
"description": "Reserved: Functions are not available yet"
|
|
1982
2120
|
}
|