@nylorun/core 0.35.0-beta → 0.36.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 +6 -0
- package/dist/contracts.d.ts +41 -0
- package/dist/contracts.js +18 -2
- package/dist/definition/variant.js +8 -1
- package/dist/engine/explain.js +22 -5
- package/dist/engine/index.d.ts +1 -0
- package/dist/engine/index.js +1 -0
- package/dist/engine/preview.d.ts +1 -0
- package/dist/engine/preview.js +2 -1
- package/dist/engine/projection.d.ts +3 -1
- package/dist/engine/projection.js +97 -2
- package/dist/engine/tools.d.ts +22 -0
- package/dist/engine/tools.js +36 -0
- package/dist/folder/compile.d.ts +2 -2
- package/dist/folder/compile.js +79 -12
- package/dist/folder/engine.d.ts +9 -0
- package/dist/folder/engine.js +1 -1
- package/dist/folder/index.d.ts +2 -0
- package/dist/folder/index.js +2 -0
- package/dist/folder/migrate-v3.d.ts +20 -0
- package/dist/folder/migrate-v3.js +124 -0
- package/dist/folder/schemas.js +12 -4
- package/dist/folder/v3.d.ts +66 -0
- package/dist/folder/v3.js +139 -0
- package/dist/manifest-schemas.js +4 -3
- package/dist/plugins/bundle.generated.d.ts +120 -0
- package/dist/plugins/bundle.generated.js +143 -0
- package/dist/plugins/index.d.ts +65 -0
- package/dist/plugins/index.js +62 -0
- package/dist/schemas/agent-folder/agent-md.schema.json +20 -3
- package/dist/schemas/agent-manifest.schema.json +45 -1
- package/dist/schemas/harness-manifest.schema.json +45 -1
- package/dist/types/manifest.d.ts +12 -0
- package/package.json +1 -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/agent-manifest/v8.
|
|
3
|
+
"$id": "https://docs.nylorun.com/schemas/agent-manifest/v8.4.json",
|
|
4
4
|
"title": "Nylorun agent manifest 8",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -1873,6 +1873,50 @@
|
|
|
1873
1873
|
],
|
|
1874
1874
|
"additionalProperties": false
|
|
1875
1875
|
}
|
|
1876
|
+
},
|
|
1877
|
+
"plugins": {
|
|
1878
|
+
"description": "The Runtime's plugins the agent declares (agent-folder/3, ADR-106): each with the tools left on and the hash of its files",
|
|
1879
|
+
"type": "array",
|
|
1880
|
+
"items": {
|
|
1881
|
+
"type": "object",
|
|
1882
|
+
"properties": {
|
|
1883
|
+
"name": {
|
|
1884
|
+
"type": "string",
|
|
1885
|
+
"enum": [
|
|
1886
|
+
"nylorun-memory",
|
|
1887
|
+
"nylorun-triggers",
|
|
1888
|
+
"nylorun-plan",
|
|
1889
|
+
"nylorun-interactions",
|
|
1890
|
+
"nylorun-artifacts",
|
|
1891
|
+
"nylorun-sandbox"
|
|
1892
|
+
]
|
|
1893
|
+
},
|
|
1894
|
+
"tools": {
|
|
1895
|
+
"type": "array",
|
|
1896
|
+
"items": {
|
|
1897
|
+
"type": "string",
|
|
1898
|
+
"minLength": 1
|
|
1899
|
+
}
|
|
1900
|
+
},
|
|
1901
|
+
"sha256": {
|
|
1902
|
+
"type": "string",
|
|
1903
|
+
"pattern": "^sha256:[0-9a-f]{64}$"
|
|
1904
|
+
},
|
|
1905
|
+
"hosts": {
|
|
1906
|
+
"type": "array",
|
|
1907
|
+
"items": {
|
|
1908
|
+
"type": "string",
|
|
1909
|
+
"minLength": 1
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
},
|
|
1913
|
+
"required": [
|
|
1914
|
+
"name",
|
|
1915
|
+
"tools",
|
|
1916
|
+
"sha256"
|
|
1917
|
+
],
|
|
1918
|
+
"additionalProperties": false
|
|
1919
|
+
}
|
|
1876
1920
|
}
|
|
1877
1921
|
},
|
|
1878
1922
|
"additionalProperties": false
|
|
@@ -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.4.json",
|
|
4
4
|
"title": "Nylorun harness manifest 1",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -1400,6 +1400,50 @@
|
|
|
1400
1400
|
],
|
|
1401
1401
|
"additionalProperties": false
|
|
1402
1402
|
}
|
|
1403
|
+
},
|
|
1404
|
+
"plugins": {
|
|
1405
|
+
"description": "The Runtime's plugins the agent declares (agent-folder/3, ADR-106): each with the tools left on and the hash of its files",
|
|
1406
|
+
"type": "array",
|
|
1407
|
+
"items": {
|
|
1408
|
+
"type": "object",
|
|
1409
|
+
"properties": {
|
|
1410
|
+
"name": {
|
|
1411
|
+
"type": "string",
|
|
1412
|
+
"enum": [
|
|
1413
|
+
"nylorun-memory",
|
|
1414
|
+
"nylorun-triggers",
|
|
1415
|
+
"nylorun-plan",
|
|
1416
|
+
"nylorun-interactions",
|
|
1417
|
+
"nylorun-artifacts",
|
|
1418
|
+
"nylorun-sandbox"
|
|
1419
|
+
]
|
|
1420
|
+
},
|
|
1421
|
+
"tools": {
|
|
1422
|
+
"type": "array",
|
|
1423
|
+
"items": {
|
|
1424
|
+
"type": "string",
|
|
1425
|
+
"minLength": 1
|
|
1426
|
+
}
|
|
1427
|
+
},
|
|
1428
|
+
"sha256": {
|
|
1429
|
+
"type": "string",
|
|
1430
|
+
"pattern": "^sha256:[0-9a-f]{64}$"
|
|
1431
|
+
},
|
|
1432
|
+
"hosts": {
|
|
1433
|
+
"type": "array",
|
|
1434
|
+
"items": {
|
|
1435
|
+
"type": "string",
|
|
1436
|
+
"minLength": 1
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
},
|
|
1440
|
+
"required": [
|
|
1441
|
+
"name",
|
|
1442
|
+
"tools",
|
|
1443
|
+
"sha256"
|
|
1444
|
+
],
|
|
1445
|
+
"additionalProperties": false
|
|
1446
|
+
}
|
|
1403
1447
|
}
|
|
1404
1448
|
},
|
|
1405
1449
|
"additionalProperties": false
|
package/dist/types/manifest.d.ts
CHANGED
|
@@ -190,6 +190,18 @@ export interface HarnessEngine {
|
|
|
190
190
|
readonly instructions?: Readonly<Partial<Record<EngineBlockName, string>>>;
|
|
191
191
|
/** The engine text blocks the agent gets, each with its version and the hash of its text. */
|
|
192
192
|
readonly blocks?: readonly EngineBlockRef[];
|
|
193
|
+
/**
|
|
194
|
+
* The Runtime's plugins the agent declares (`agent-folder/3`, ADR-106), each with the tools left
|
|
195
|
+
* on and the hash of its files. With it, the engine presents its tools as the server `nylorun`.
|
|
196
|
+
*/
|
|
197
|
+
readonly plugins?: readonly HarnessEnginePlugin[];
|
|
198
|
+
}
|
|
199
|
+
/** One of the Runtime's plugins as a manifest records it (`harness.engine.plugins`). */
|
|
200
|
+
export interface HarnessEnginePlugin {
|
|
201
|
+
readonly name: "nylorun-memory" | "nylorun-triggers" | "nylorun-plan" | "nylorun-interactions" | "nylorun-artifacts" | "nylorun-sandbox";
|
|
202
|
+
readonly tools: readonly string[];
|
|
203
|
+
readonly sha256: string;
|
|
204
|
+
readonly hosts?: readonly string[];
|
|
193
205
|
}
|
|
194
206
|
/** One engine text block an agent gets: `memory@1`, the SHA-256 of its text, and its source. */
|
|
195
207
|
export interface EngineBlockRef {
|