@nylorun/core 0.34.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/compatibility.d.ts +9 -1
  3. package/dist/compatibility.js +8 -0
  4. package/dist/contracts.d.ts +352 -6
  5. package/dist/contracts.js +180 -6
  6. package/dist/definition/variant.js +8 -1
  7. package/dist/engine/blocks.d.ts +2 -0
  8. package/dist/engine/blocks.js +7 -0
  9. package/dist/engine/explain.d.ts +1 -1
  10. package/dist/engine/explain.js +27 -5
  11. package/dist/engine/index.d.ts +1 -0
  12. package/dist/engine/index.js +1 -0
  13. package/dist/engine/names.d.ts +1 -1
  14. package/dist/engine/names.js +1 -0
  15. package/dist/engine/preview.d.ts +6 -0
  16. package/dist/engine/preview.js +3 -1
  17. package/dist/engine/projection.d.ts +10 -6
  18. package/dist/engine/projection.js +110 -6
  19. package/dist/engine/tools.d.ts +32 -0
  20. package/dist/engine/tools.js +85 -1
  21. package/dist/folder/compile.d.ts +3 -3
  22. package/dist/folder/compile.js +82 -12
  23. package/dist/folder/engine.d.ts +14 -2
  24. package/dist/folder/engine.js +17 -3
  25. package/dist/folder/index.d.ts +2 -0
  26. package/dist/folder/index.js +2 -0
  27. package/dist/folder/migrate-v3.d.ts +20 -0
  28. package/dist/folder/migrate-v3.js +124 -0
  29. package/dist/folder/nested.js +5 -0
  30. package/dist/folder/schemas.js +19 -6
  31. package/dist/folder/v3.d.ts +66 -0
  32. package/dist/folder/v3.js +139 -0
  33. package/dist/harness-api/harness-api.schema.json +19 -4
  34. package/dist/harness-api/json-schema.js +3 -2
  35. package/dist/harness-api/schema.d.ts +6 -0
  36. package/dist/harness-api/schema.js +9 -2
  37. package/dist/manifest-schemas.js +6 -4
  38. package/dist/plugins/bundle.generated.d.ts +120 -0
  39. package/dist/plugins/bundle.generated.js +143 -0
  40. package/dist/plugins/index.d.ts +65 -0
  41. package/dist/plugins/index.js +62 -0
  42. package/dist/schemas/agent-folder/agent-md.schema.json +26 -4
  43. package/dist/schemas/agent-folder/runtime.schema.json +22 -1
  44. package/dist/schemas/agent-manifest.schema.json +72 -1
  45. package/dist/schemas/harness-manifest.schema.json +51 -1
  46. package/dist/schemas/runtime-manifest.schema.json +22 -1
  47. package/dist/types/manifest.d.ts +14 -0
  48. 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.2.json",
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": {
@@ -545,6 +545,27 @@
545
545
  }
546
546
  },
547
547
  "additionalProperties": false
548
+ },
549
+ "triggers": {
550
+ "type": "object",
551
+ "properties": {
552
+ "count": {
553
+ "type": "integer",
554
+ "exclusiveMinimum": 0,
555
+ "maximum": 9007199254740991
556
+ },
557
+ "minIntervalMs": {
558
+ "type": "integer",
559
+ "exclusiveMinimum": 0,
560
+ "maximum": 9007199254740991
561
+ },
562
+ "runsPerHour": {
563
+ "type": "integer",
564
+ "exclusiveMinimum": 0,
565
+ "maximum": 9007199254740991
566
+ }
567
+ },
568
+ "additionalProperties": false
548
569
  }
549
570
  },
550
571
  "additionalProperties": false
@@ -1779,6 +1800,10 @@
1779
1800
  "description": "Defer MCP tools behind tool_search when their schemas pass the threshold",
1780
1801
  "type": "boolean"
1781
1802
  },
1803
+ "triggers": {
1804
+ "description": "The triggers tool and its text: the root agent sets up its own triggers; never a subagent's",
1805
+ "type": "boolean"
1806
+ },
1782
1807
  "instructions": {
1783
1808
  "description": "A block's wording replaced, by block name",
1784
1809
  "type": "object",
@@ -1792,6 +1817,7 @@
1792
1817
  "outputs",
1793
1818
  "artifacts_read",
1794
1819
  "wake",
1820
+ "triggers",
1795
1821
  "memory",
1796
1822
  "plan",
1797
1823
  "connection",
@@ -1819,6 +1845,7 @@
1819
1845
  "outputs",
1820
1846
  "artifacts_read",
1821
1847
  "wake",
1848
+ "triggers",
1822
1849
  "memory",
1823
1850
  "plan",
1824
1851
  "connection",
@@ -1846,6 +1873,50 @@
1846
1873
  ],
1847
1874
  "additionalProperties": false
1848
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
+ }
1849
1920
  }
1850
1921
  },
1851
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.2.json",
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": {
@@ -1327,6 +1327,10 @@
1327
1327
  "description": "Defer MCP tools behind tool_search when their schemas pass the threshold",
1328
1328
  "type": "boolean"
1329
1329
  },
1330
+ "triggers": {
1331
+ "description": "The triggers tool and its text: the root agent sets up its own triggers; never a subagent's",
1332
+ "type": "boolean"
1333
+ },
1330
1334
  "instructions": {
1331
1335
  "description": "A block's wording replaced, by block name",
1332
1336
  "type": "object",
@@ -1340,6 +1344,7 @@
1340
1344
  "outputs",
1341
1345
  "artifacts_read",
1342
1346
  "wake",
1347
+ "triggers",
1343
1348
  "memory",
1344
1349
  "plan",
1345
1350
  "connection",
@@ -1367,6 +1372,7 @@
1367
1372
  "outputs",
1368
1373
  "artifacts_read",
1369
1374
  "wake",
1375
+ "triggers",
1370
1376
  "memory",
1371
1377
  "plan",
1372
1378
  "connection",
@@ -1394,6 +1400,50 @@
1394
1400
  ],
1395
1401
  "additionalProperties": false
1396
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
+ }
1397
1447
  }
1398
1448
  },
1399
1449
  "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/runtime-manifest/v1.1.json",
3
+ "$id": "https://docs.nylorun.com/schemas/runtime-manifest/v1.2.json",
4
4
  "title": "Nylorun runtime manifest 1",
5
5
  "type": "object",
6
6
  "properties": {
@@ -208,6 +208,27 @@
208
208
  }
209
209
  },
210
210
  "additionalProperties": false
211
+ },
212
+ "triggers": {
213
+ "type": "object",
214
+ "properties": {
215
+ "count": {
216
+ "type": "integer",
217
+ "exclusiveMinimum": 0,
218
+ "maximum": 9007199254740991
219
+ },
220
+ "minIntervalMs": {
221
+ "type": "integer",
222
+ "exclusiveMinimum": 0,
223
+ "maximum": 9007199254740991
224
+ },
225
+ "runsPerHour": {
226
+ "type": "integer",
227
+ "exclusiveMinimum": 0,
228
+ "maximum": 9007199254740991
229
+ }
230
+ },
231
+ "additionalProperties": false
211
232
  }
212
233
  },
213
234
  "additionalProperties": false
@@ -184,10 +184,24 @@ export interface HarnessEngine {
184
184
  readonly outputs?: boolean;
185
185
  /** MCP tools deferred behind `tool_search` when their schemas pass the threshold. */
186
186
  readonly toolSearch?: boolean;
187
+ /** The `triggers` tool and its text (D83): the root agent sets up its own triggers. */
188
+ readonly triggers?: boolean;
187
189
  /** A block's wording replaced by the folder's text, by block name. */
188
190
  readonly instructions?: Readonly<Partial<Record<EngineBlockName, string>>>;
189
191
  /** The engine text blocks the agent gets, each with its version and the hash of its text. */
190
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[];
191
205
  }
192
206
  /** One engine text block an agent gets: `memory@1`, the SHA-256 of its text, and its source. */
193
207
  export interface EngineBlockRef {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nylorun/core",
3
- "version": "0.34.0-beta",
3
+ "version": "0.36.0-beta",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Shared agent definitions and wire contracts",