@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.
- package/CHANGELOG.md +12 -0
- package/dist/compatibility.d.ts +9 -1
- package/dist/compatibility.js +8 -0
- package/dist/contracts.d.ts +352 -6
- package/dist/contracts.js +180 -6
- package/dist/definition/variant.js +8 -1
- package/dist/engine/blocks.d.ts +2 -0
- package/dist/engine/blocks.js +7 -0
- package/dist/engine/explain.d.ts +1 -1
- package/dist/engine/explain.js +27 -5
- package/dist/engine/index.d.ts +1 -0
- package/dist/engine/index.js +1 -0
- package/dist/engine/names.d.ts +1 -1
- package/dist/engine/names.js +1 -0
- package/dist/engine/preview.d.ts +6 -0
- package/dist/engine/preview.js +3 -1
- package/dist/engine/projection.d.ts +10 -6
- package/dist/engine/projection.js +110 -6
- package/dist/engine/tools.d.ts +32 -0
- package/dist/engine/tools.js +85 -1
- package/dist/folder/compile.d.ts +3 -3
- package/dist/folder/compile.js +82 -12
- package/dist/folder/engine.d.ts +14 -2
- package/dist/folder/engine.js +17 -3
- 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/nested.js +5 -0
- package/dist/folder/schemas.js +19 -6
- package/dist/folder/v3.d.ts +66 -0
- package/dist/folder/v3.js +139 -0
- package/dist/harness-api/harness-api.schema.json +19 -4
- package/dist/harness-api/json-schema.js +3 -2
- package/dist/harness-api/schema.d.ts +6 -0
- package/dist/harness-api/schema.js +9 -2
- package/dist/manifest-schemas.js +6 -4
- 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 +26 -4
- package/dist/schemas/agent-folder/runtime.schema.json +22 -1
- package/dist/schemas/agent-manifest.schema.json +72 -1
- package/dist/schemas/harness-manifest.schema.json +51 -1
- package/dist/schemas/runtime-manifest.schema.json +22 -1
- package/dist/types/manifest.d.ts +14 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @nylorun/core
|
|
2
2
|
|
|
3
|
+
## 0.36.0-beta
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2afa44d: The Runtime's primitives as its own Agent Plugins (ADR-106, D84). An `agent-folder/3` folder lists them under `plugins:` (`nylorun-memory`, `nylorun-triggers`, `nylorun-plan`, `nylorun-interactions`, `nylorun-artifacts`, `nylorun-sandbox`, which needs a computer), with no versions, and turns one of their tools off with `mcpServers.nylorun.tools.<tool>.enabled: false`. The compiler reads them as the `agent-folder/2` declarations they stand for (`memory`, `loop`, `engine.sandbox`, `engine.artifacts`, `engine.triggers`, which v3 refuses) and records them in `harness.engine.plugins`, each with its tools and the hash of its files. The engine presents their tools as the reserved server `nylorun`: the model reads `nylorun__memory` and the declared plugins' words as one text, with their skills (`memory`, `triggers`) in the catalog, served from the bundle; every effect keeps its target and `toolName`, so the record, tool policy (`kind: "runtime"` rules) and dispatch are unchanged. New: `ask` (`nylorun-interactions`, `harness.loop.ask`), a question that pauses the turn as an A2A `question`; `removeTools` takes `nylorun__<tool>`; `triggers` answers carry `now`; under `nylorun-triggers`, an agent-made trigger's run starts with a `[trigger <id> · <title> · nobody is watching]` line, and a turn a trigger started may set a one-off follow-up (`in` or `at`, `session: "this"`); the sandbox's instructions name the hosts `runtime.json` allows. `nylorun migrate folder <dir> --to 3` writes the plugins that keep an agent's tools and features, and `nylorun check --explain` names the plugin behind each. The JSON Schemas are republished as `agent-manifest/v8.4`, `harness-manifest/v1.4` and `agent-folder/v1/agent-md.4`.
|
|
8
|
+
|
|
9
|
+
## 0.35.0-beta
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 714bee2: The triggers capability (Host feature `agent-triggers`): an agent-folder/2 folder declares `engine: { triggers: true }` (the root agent's only; `engine.instructions.triggers` replaces its wording), which compiles to `harness.engine.triggers` and offers the root agent the `triggers` tool (`list`, `create`, `delete`) and the text block `triggers@1`. The Runtime serves each call as a `runtime` effect (operation `triggers`, `turn.start.agent.triggers`, Harness API v5.3): a trigger an agent makes is the Agent's (`origin: "agent"`, with its title and the session that made it), runs in the calling session (`session: "this"`) or one of its own (`"own"`, `<session>_t_<id>`), is checked against the limits in force (`runtime.limits.triggers` within the Tenant's), survives upgrades and waits paused while a version lacks the capability; a turn a trigger started can't create one. Tool rules take `kind: "runtime"`, so an `ask` rule can hold a `triggers` call (its interaction carries `metadata.input`); `DELETE /v1/agents/{id}/triggers/{triggerId}` deletes an agent's trigger (`409 trigger_from_manifest` for a manifest's); `GET /v1/runs/stream` serves the Tenant's runs as server-sent events from a cursor (`410 cursor_expired` across a reset). `client.agents.deleteTrigger`, `client.runs.stream` and `nylorun agents triggers rm` follow. The JSON Schemas are republished as `agent-manifest/v8.3`, `harness-manifest/v1.3`, `runtime-manifest/v1.2`, `agent-folder/v1/agent-md.3`, `agent-folder/v1/runtime.2` and `harness-api/v5.3`.
|
|
14
|
+
|
|
3
15
|
## 0.34.0-beta
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/compatibility.d.ts
CHANGED
|
@@ -250,7 +250,15 @@ export declare const OPTIONAL_HOST_FEATURES: readonly ["tenant-fixture-model", "
|
|
|
250
250
|
* version the turn runs after its first segment re-pins it to the Agent's, so a session that
|
|
251
251
|
* always sends it still moves to new versions.
|
|
252
252
|
*/
|
|
253
|
-
"remove-tools"
|
|
253
|
+
"remove-tools",
|
|
254
|
+
/**
|
|
255
|
+
* The triggers capability (D83): an agent whose version declares `harness.engine.triggers` sets
|
|
256
|
+
* up its own triggers with the `triggers` tool, kept by the Agent (`origin: agent` in
|
|
257
|
+
* `GET /v1/agents/{id}/triggers`); `DELETE /v1/agents/{id}/triggers/{triggerId}` deletes one;
|
|
258
|
+
* a tool rule of `kind: "runtime"` decides the operations the Runtime serves; the manifest's
|
|
259
|
+
* `runtime.limits.triggers`; and `GET /v1/runs/stream`, the Tenant's runs as server-sent events.
|
|
260
|
+
*/
|
|
261
|
+
"agent-triggers"];
|
|
254
262
|
export type OptionalHostFeature = (typeof OPTIONAL_HOST_FEATURES)[number];
|
|
255
263
|
export interface ProtocolRange {
|
|
256
264
|
min: number;
|
package/dist/compatibility.js
CHANGED
|
@@ -273,6 +273,14 @@ export const OPTIONAL_HOST_FEATURES = [
|
|
|
273
273
|
* always sends it still moves to new versions.
|
|
274
274
|
*/
|
|
275
275
|
"remove-tools",
|
|
276
|
+
/**
|
|
277
|
+
* The triggers capability (D83): an agent whose version declares `harness.engine.triggers` sets
|
|
278
|
+
* up its own triggers with the `triggers` tool, kept by the Agent (`origin: agent` in
|
|
279
|
+
* `GET /v1/agents/{id}/triggers`); `DELETE /v1/agents/{id}/triggers/{triggerId}` deletes one;
|
|
280
|
+
* a tool rule of `kind: "runtime"` decides the operations the Runtime serves; the manifest's
|
|
281
|
+
* `runtime.limits.triggers`; and `GET /v1/runs/stream`, the Tenant's runs as server-sent events.
|
|
282
|
+
*/
|
|
283
|
+
"agent-triggers",
|
|
276
284
|
];
|
|
277
285
|
/**
|
|
278
286
|
* What this Host serves: protocol 16, 17 and 18. Protocol 16 replaced agent definitions and
|