@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
|
@@ -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.2.json",
|
|
4
4
|
"title": "Nylorun harness manifest 1",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -246,6 +246,10 @@
|
|
|
246
246
|
"description": "What this agent should remember, after the engine's own memory rules",
|
|
247
247
|
"type": "string",
|
|
248
248
|
"maxLength": 4096
|
|
249
|
+
},
|
|
250
|
+
"index": {
|
|
251
|
+
"description": "agent-folder/2: false pins no memory index in a session. Default true",
|
|
252
|
+
"type": "boolean"
|
|
249
253
|
}
|
|
250
254
|
},
|
|
251
255
|
"additionalProperties": false
|
|
@@ -256,6 +260,9 @@
|
|
|
256
260
|
"pattern": "^[A-Za-z0-9._-]+\\/\\S+$",
|
|
257
261
|
"description": "The model the agent runs on: <provider>/<model>, such as anthropic/claude-sonnet-4-5"
|
|
258
262
|
},
|
|
263
|
+
"engine": {
|
|
264
|
+
"$ref": "#/$defs/HarnessEngine"
|
|
265
|
+
},
|
|
259
266
|
"credentials": {
|
|
260
267
|
"type": "object",
|
|
261
268
|
"propertyNames": {
|
|
@@ -596,6 +603,9 @@
|
|
|
596
603
|
},
|
|
597
604
|
"additionalProperties": false
|
|
598
605
|
},
|
|
606
|
+
"engine": {
|
|
607
|
+
"$ref": "#/$defs/HarnessEngine"
|
|
608
|
+
},
|
|
599
609
|
"functions": {
|
|
600
610
|
"description": "Reserved: Functions are not available yet"
|
|
601
611
|
}
|
|
@@ -934,6 +944,9 @@
|
|
|
934
944
|
},
|
|
935
945
|
"additionalProperties": false
|
|
936
946
|
},
|
|
947
|
+
"engine": {
|
|
948
|
+
"$ref": "#/$defs/HarnessEngine"
|
|
949
|
+
},
|
|
937
950
|
"functions": {
|
|
938
951
|
"description": "Reserved: Functions are not available yet"
|
|
939
952
|
}
|
|
@@ -1274,6 +1287,116 @@
|
|
|
1274
1287
|
}
|
|
1275
1288
|
},
|
|
1276
1289
|
"additionalProperties": false
|
|
1290
|
+
},
|
|
1291
|
+
"HarnessEngine": {
|
|
1292
|
+
"type": "object",
|
|
1293
|
+
"properties": {
|
|
1294
|
+
"sandbox": {
|
|
1295
|
+
"description": "The sandbox tools offered: any of bash, read, write, edit, grep and glob; needs a computer",
|
|
1296
|
+
"type": "array",
|
|
1297
|
+
"items": {
|
|
1298
|
+
"type": "string",
|
|
1299
|
+
"enum": [
|
|
1300
|
+
"bash",
|
|
1301
|
+
"read",
|
|
1302
|
+
"write",
|
|
1303
|
+
"edit",
|
|
1304
|
+
"grep",
|
|
1305
|
+
"glob"
|
|
1306
|
+
]
|
|
1307
|
+
}
|
|
1308
|
+
},
|
|
1309
|
+
"artifacts": {
|
|
1310
|
+
"description": "read: read_artifact and its text; save: save_artifact and its text (needs a computer)",
|
|
1311
|
+
"type": "object",
|
|
1312
|
+
"properties": {
|
|
1313
|
+
"read": {
|
|
1314
|
+
"type": "boolean"
|
|
1315
|
+
},
|
|
1316
|
+
"save": {
|
|
1317
|
+
"type": "boolean"
|
|
1318
|
+
}
|
|
1319
|
+
},
|
|
1320
|
+
"additionalProperties": false
|
|
1321
|
+
},
|
|
1322
|
+
"outputs": {
|
|
1323
|
+
"description": "Save /workspace/outputs when a turn ends; needs a computer",
|
|
1324
|
+
"type": "boolean"
|
|
1325
|
+
},
|
|
1326
|
+
"toolSearch": {
|
|
1327
|
+
"description": "Defer MCP tools behind tool_search when their schemas pass the threshold",
|
|
1328
|
+
"type": "boolean"
|
|
1329
|
+
},
|
|
1330
|
+
"instructions": {
|
|
1331
|
+
"description": "A block's wording replaced, by block name",
|
|
1332
|
+
"type": "object",
|
|
1333
|
+
"propertyNames": {
|
|
1334
|
+
"type": "string",
|
|
1335
|
+
"enum": [
|
|
1336
|
+
"skills",
|
|
1337
|
+
"sandbox",
|
|
1338
|
+
"skill_folder",
|
|
1339
|
+
"artifacts_save",
|
|
1340
|
+
"outputs",
|
|
1341
|
+
"artifacts_read",
|
|
1342
|
+
"wake",
|
|
1343
|
+
"memory",
|
|
1344
|
+
"plan",
|
|
1345
|
+
"connection",
|
|
1346
|
+
"tool_search"
|
|
1347
|
+
]
|
|
1348
|
+
},
|
|
1349
|
+
"additionalProperties": {
|
|
1350
|
+
"type": "string",
|
|
1351
|
+
"minLength": 1
|
|
1352
|
+
}
|
|
1353
|
+
},
|
|
1354
|
+
"blocks": {
|
|
1355
|
+
"description": "The engine text blocks the agent gets, with their hashes",
|
|
1356
|
+
"type": "array",
|
|
1357
|
+
"items": {
|
|
1358
|
+
"type": "object",
|
|
1359
|
+
"properties": {
|
|
1360
|
+
"name": {
|
|
1361
|
+
"type": "string",
|
|
1362
|
+
"enum": [
|
|
1363
|
+
"skills",
|
|
1364
|
+
"sandbox",
|
|
1365
|
+
"skill_folder",
|
|
1366
|
+
"artifacts_save",
|
|
1367
|
+
"outputs",
|
|
1368
|
+
"artifacts_read",
|
|
1369
|
+
"wake",
|
|
1370
|
+
"memory",
|
|
1371
|
+
"plan",
|
|
1372
|
+
"connection",
|
|
1373
|
+
"tool_search"
|
|
1374
|
+
]
|
|
1375
|
+
},
|
|
1376
|
+
"version": {
|
|
1377
|
+
"type": "integer",
|
|
1378
|
+
"exclusiveMinimum": 0,
|
|
1379
|
+
"maximum": 9007199254740991
|
|
1380
|
+
},
|
|
1381
|
+
"sha256": {
|
|
1382
|
+
"type": "string",
|
|
1383
|
+
"pattern": "^sha256:[0-9a-f]{64}$"
|
|
1384
|
+
},
|
|
1385
|
+
"source": {
|
|
1386
|
+
"type": "string",
|
|
1387
|
+
"minLength": 1
|
|
1388
|
+
}
|
|
1389
|
+
},
|
|
1390
|
+
"required": [
|
|
1391
|
+
"name",
|
|
1392
|
+
"version",
|
|
1393
|
+
"sha256"
|
|
1394
|
+
],
|
|
1395
|
+
"additionalProperties": false
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
},
|
|
1399
|
+
"additionalProperties": false
|
|
1277
1400
|
}
|
|
1278
1401
|
}
|
|
1279
1402
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://docs.nylorun.com/schemas/runtime-manifest/v1.json",
|
|
3
|
+
"$id": "https://docs.nylorun.com/schemas/runtime-manifest/v1.1.json",
|
|
4
4
|
"title": "Nylorun runtime manifest 1",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -310,6 +310,12 @@
|
|
|
310
310
|
],
|
|
311
311
|
"additionalProperties": false
|
|
312
312
|
},
|
|
313
|
+
"toolPrefix": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"minLength": 1,
|
|
316
|
+
"maxLength": 64,
|
|
317
|
+
"pattern": "^[\\x21-\\x7e]+$"
|
|
318
|
+
},
|
|
313
319
|
"required": {
|
|
314
320
|
"type": "boolean"
|
|
315
321
|
},
|
|
@@ -350,6 +356,12 @@
|
|
|
350
356
|
],
|
|
351
357
|
"additionalProperties": false
|
|
352
358
|
},
|
|
359
|
+
"toolPrefix": {
|
|
360
|
+
"type": "string",
|
|
361
|
+
"minLength": 1,
|
|
362
|
+
"maxLength": 64,
|
|
363
|
+
"pattern": "^[\\x21-\\x7e]+$"
|
|
364
|
+
},
|
|
353
365
|
"required": {
|
|
354
366
|
"type": "boolean"
|
|
355
367
|
},
|
package/dist/types/manifest.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { JsonObject } from "./shared.js";
|
|
2
|
+
import type { EngineBlockName } from "../engine/names.js";
|
|
2
3
|
import type { WorkflowManifest, WorkflowNode } from "./workflow.js";
|
|
3
4
|
/**
|
|
4
5
|
* Published manifest schema version (no top-level model — Runtime-owned). Version 7 is flat: the
|
|
@@ -157,6 +158,45 @@ export interface AgentManifest {
|
|
|
157
158
|
readonly mcpServers?: Readonly<Record<string, McpServerManifest>>;
|
|
158
159
|
/** What the agent needs of its session's Environment, checked when a session opens. */
|
|
159
160
|
readonly requires?: AgentRequirements;
|
|
161
|
+
/**
|
|
162
|
+
* The engine features the agent declares (ADR-100, `agent-folder/2`): with it, our engine adds
|
|
163
|
+
* only what it names; without it, every default of `agent-folder/1`.
|
|
164
|
+
*/
|
|
165
|
+
readonly engine?: HarnessEngine;
|
|
166
|
+
}
|
|
167
|
+
/** A sandbox tool our engine may offer: `bash`, `read`, `write`, `edit`, `grep` or `glob`. */
|
|
168
|
+
export type EngineSandboxTool = "bash" | "read" | "write" | "edit" | "grep" | "glob";
|
|
169
|
+
/**
|
|
170
|
+
* The engine features an agent declares (ADR-100): `harness.engine` of an agent manifest v8,
|
|
171
|
+
* `engine` of the loop manifest the harness runs. Its presence turns the defaults off: an agent
|
|
172
|
+
* with it gets no engine tool and no engine text it does not name. Memory, skills, `loop` and
|
|
173
|
+
* `runtime.selfWake` stay declared by their own keys.
|
|
174
|
+
*/
|
|
175
|
+
export interface HarnessEngine {
|
|
176
|
+
/** The sandbox tools offered, in our engine's order; needs a computer. */
|
|
177
|
+
readonly sandbox?: readonly EngineSandboxTool[];
|
|
178
|
+
/** `read_artifact` and its text; `save_artifact` and its text (needs a computer). */
|
|
179
|
+
readonly artifacts?: {
|
|
180
|
+
readonly read?: boolean;
|
|
181
|
+
readonly save?: boolean;
|
|
182
|
+
};
|
|
183
|
+
/** `/workspace/outputs` saved as the session's outputs folder when a turn ends; needs a computer. */
|
|
184
|
+
readonly outputs?: boolean;
|
|
185
|
+
/** MCP tools deferred behind `tool_search` when their schemas pass the threshold. */
|
|
186
|
+
readonly toolSearch?: boolean;
|
|
187
|
+
/** A block's wording replaced by the folder's text, by block name. */
|
|
188
|
+
readonly instructions?: Readonly<Partial<Record<EngineBlockName, string>>>;
|
|
189
|
+
/** The engine text blocks the agent gets, each with its version and the hash of its text. */
|
|
190
|
+
readonly blocks?: readonly EngineBlockRef[];
|
|
191
|
+
}
|
|
192
|
+
/** One engine text block an agent gets: `memory@1`, the SHA-256 of its text, and its source. */
|
|
193
|
+
export interface EngineBlockRef {
|
|
194
|
+
readonly name: EngineBlockName;
|
|
195
|
+
readonly version: number;
|
|
196
|
+
/** `sha256:<hex>` of the block's text (its template, where the text names session facts). */
|
|
197
|
+
readonly sha256: string;
|
|
198
|
+
/** The folder file whose text replaces the engine's wording, when one does. */
|
|
199
|
+
readonly source?: string;
|
|
160
200
|
}
|
|
161
201
|
/** What an agent needs of the Environment its session opens on (protocol 14). */
|
|
162
202
|
export interface AgentRequirements {
|
|
@@ -208,6 +248,8 @@ export interface AgentHarnessSection {
|
|
|
208
248
|
* is connected and lists it (Host feature `agent-model`).
|
|
209
249
|
*/
|
|
210
250
|
readonly model?: string;
|
|
251
|
+
/** The engine features the agent declares (ADR-100), for itself; its subagents declare their own. */
|
|
252
|
+
readonly engine?: HarnessEngine;
|
|
211
253
|
}
|
|
212
254
|
/**
|
|
213
255
|
* `harness.memory`: the Agent's memory, the same in every turn whoever starts it.
|
|
@@ -217,6 +259,11 @@ export interface AgentHarnessSection {
|
|
|
217
259
|
export interface AgentMemorySettings {
|
|
218
260
|
readonly access?: "read_write" | "read_only";
|
|
219
261
|
readonly instructions?: string;
|
|
262
|
+
/**
|
|
263
|
+
* `false` (an `agent-folder/2` folder only): no memory index is pinned in a session, and the
|
|
264
|
+
* memory rules do not mention one. Default true.
|
|
265
|
+
*/
|
|
266
|
+
readonly index?: boolean;
|
|
220
267
|
}
|
|
221
268
|
/**
|
|
222
269
|
* A flow's `harness` section: workflow manifest v3's flow without its identity, which the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nylorun/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.0-beta",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "Shared agent definitions and wire contracts",
|
|
@@ -76,6 +76,10 @@
|
|
|
76
76
|
"types": "./dist/folder/index.d.ts",
|
|
77
77
|
"import": "./dist/folder/index.js"
|
|
78
78
|
},
|
|
79
|
+
"./engine": {
|
|
80
|
+
"types": "./dist/engine/index.d.ts",
|
|
81
|
+
"import": "./dist/engine/index.js"
|
|
82
|
+
},
|
|
79
83
|
"./schemas/agent-manifest.json": "./dist/schemas/agent-manifest.schema.json",
|
|
80
84
|
"./schemas/harness-manifest.json": "./dist/schemas/harness-manifest.schema.json",
|
|
81
85
|
"./schemas/runtime-manifest.json": "./dist/schemas/runtime-manifest.schema.json",
|