@nylorun/core 0.24.0-beta → 0.25.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 (57) hide show
  1. package/CHANGELOG.md +14 -1
  2. package/dist/compatibility.d.ts +47 -36
  3. package/dist/compatibility.js +47 -36
  4. package/dist/contracts.d.ts +133 -87
  5. package/dist/contracts.js +185 -135
  6. package/dist/definition/approval.d.ts +1 -1
  7. package/dist/definition/bound.d.ts +2 -0
  8. package/dist/definition/builder.d.ts +2 -2
  9. package/dist/definition/builder.js +1 -1
  10. package/dist/definition/code-tools.d.ts +1 -1
  11. package/dist/definition/declaration.js +3 -0
  12. package/dist/definition/delegate.d.ts +1 -1
  13. package/dist/definition/delegate.js +1 -1
  14. package/dist/definition/from.d.ts +2 -2
  15. package/dist/definition/from.js +1 -1
  16. package/dist/definition/http-tool.d.ts +3 -3
  17. package/dist/definition/mcp.d.ts +4 -4
  18. package/dist/definition/mcp.js +3 -3
  19. package/dist/definition/sections.d.ts +5 -4
  20. package/dist/definition/sections.js +30 -7
  21. package/dist/definition/variant.d.ts +1 -1
  22. package/dist/definition/variant.js +4 -4
  23. package/dist/harness-api/entries.d.ts +1 -1
  24. package/dist/harness-api/entries.js +1 -1
  25. package/dist/harness-api/gates.d.ts +1 -1
  26. package/dist/harness-api/gates.js +1 -1
  27. package/dist/harness-api/json-schema.d.ts +1 -1
  28. package/dist/harness-api/json-schema.js +1 -1
  29. package/dist/harness-api/mcp.js +1 -1
  30. package/dist/harness-api/messages.d.ts +6 -6
  31. package/dist/harness-api/schema.d.ts +7 -7
  32. package/dist/harness-api/schema.js +16 -16
  33. package/dist/harness-api/transcript.d.ts +1 -1
  34. package/dist/harness-api/transport.d.ts +1 -1
  35. package/dist/harness-api/transport.js +1 -1
  36. package/dist/manifest-schemas.js +2 -1
  37. package/dist/schemas/agent-manifest.schema.json +3 -3
  38. package/dist/schemas/harness-manifest.schema.json +1 -1
  39. package/dist/schemas/runtime-manifest.schema.json +2 -2
  40. package/dist/types/manifest.d.ts +21 -17
  41. package/dist/types/model.d.ts +1 -1
  42. package/dist/types/observe.d.ts +1 -1
  43. package/dist/types/part.d.ts +5 -0
  44. package/dist/types/tool.d.ts +4 -4
  45. package/dist/utils/definition-files.d.ts +3 -2
  46. package/dist/utils/definition-files.js +4 -3
  47. package/dist/utils/file-systems.d.ts +1 -1
  48. package/dist/utils/file-systems.js +1 -1
  49. package/dist/utils/harness-id.d.ts +1 -1
  50. package/dist/utils/harness-id.js +1 -1
  51. package/dist/utils/memory.d.ts +2 -2
  52. package/dist/utils/memory.js +2 -2
  53. package/dist/utils/runtime-limits.d.ts +5 -5
  54. package/dist/utils/runtime-limits.js +5 -5
  55. package/dist/utils/runtime-tools.d.ts +3 -3
  56. package/dist/utils/runtime-tools.js +3 -3
  57. package/package.json +1 -1
@@ -20,7 +20,7 @@ export declare const IdempotencyKeySchema: z.ZodString;
20
20
  /** A remote MCP server as a manifest declares it (`streamable-http` or `sse`). */
21
21
  export declare const McpServerManifestSchema: z.ZodType<McpServerManifest>;
22
22
  /**
23
- * An environment variable name a shell secret or plain variable may take (R2c, D50): a POSIX
23
+ * An environment variable name a shell secret or plain variable may take: a POSIX
24
24
  * name, of any length (POSIX and Linux set none; a request's body bounds it). Names the sandbox
25
25
  * needs for itself (the proxy, the trust store, `PATH`, `HOME`) and `NYLORUN_*` are reserved.
26
26
  */
@@ -40,7 +40,7 @@ export declare const WorkflowManifestSchema: z.ZodType<WorkflowManifest, unknown
40
40
  export declare const DefinitionDocumentSchema: z.ZodUnion<readonly [z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>, z.ZodType<WorkflowManifest, unknown, z.core.$ZodTypeInternals<WorkflowManifest, unknown>>]>;
41
41
  export type DefinitionDocument = AgentManifest | WorkflowManifest;
42
42
  /**
43
- * An identifier's grammar is the protocol's (B15): it crosses the Runtime API, tokens and grants
43
+ * An identifier's grammar is the protocol's: it crosses the Runtime API, tokens and grants
44
44
  * and means the same in every installation, so its length is a constant of the protocol, not a
45
45
  * setting.
46
46
  */
@@ -71,7 +71,7 @@ export type SandboxKind = Exclude<EnvironmentKind, "none">;
71
71
  */
72
72
  export declare const EnvironmentLabelsSchema: z.ZodRecord<z.ZodString, z.ZodString>;
73
73
  export type EnvironmentLabels = z.infer<typeof EnvironmentLabelsSchema>;
74
- /** A harness id (track R4): what a harness names itself in `hello`. */
74
+ /** A harness id: what a harness names itself in `hello`. */
75
75
  export declare const HarnessIdSchema: z.ZodString;
76
76
  /**
77
77
  * An Environment's lifecycle. `idle`: stop compute after this long without a turn, at most the
@@ -102,7 +102,7 @@ export declare const EnvironmentSetupCommandSchema: z.ZodObject<{
102
102
  export type EnvironmentSetupCommand = z.infer<typeof EnvironmentSetupCommandSchema>;
103
103
  /**
104
104
  * One input file entry (pods only): an artifact version copied to `path` (a file artifact, or a
105
- * folder's files under it), or (Q6) files by content hash, each `sha256:<hex>` of a definition
105
+ * folder's files under it), or files by content hash, each `sha256:<hex>` of a definition
106
106
  * file the Tenant holds (`PUT /v1/files/sha256:<hex>`, at most 2 GiB each), copied under `path`
107
107
  * at its relative path. A manifest by hash moves to another Tenant with its files.
108
108
  */
@@ -119,7 +119,7 @@ export declare function isAgentManifestName(value: unknown): value is string;
119
119
  export declare const AgentManifestNameSchema: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
120
120
  /**
121
121
  * Which agent manifest an Agent is made from: `name` (tracking: the latest version when the Agent
122
- * is created; track T3 moves it on) or `name@n` (pinned to version `n`).
122
+ * is created, and each version saved later) or `name@n` (pinned to version `n`).
123
123
  */
124
124
  export declare function parseAgentManifestRef(ref: string): {
125
125
  name: string;
@@ -152,8 +152,8 @@ export type EnvironmentLimits = z.infer<typeof EnvironmentLimitsSchema>;
152
152
  * the live instance of one version of an agent manifest: `manifest: "name"` records that it
153
153
  * tracks the manifest (its latest version, and every version saved later) and `"name@n"` that it
154
154
  * is pinned to one; the version it runs is `resolvedVersion`. On an existing Agent, `labels`
155
- * replace its labels, `owner` sets or clears its owner guard, and `manifest` moves it (track T3,
156
- * D73): to another version of its manifest, tracking or pinned. A move changes no data: its id,
155
+ * replace its labels, `owner` sets or clears its owner guard, and `manifest` moves it:
156
+ * to another version of its manifest, tracking or pinned. A move changes no data: its id,
157
157
  * disk, vault and sessions stay. A harness-only change applies at once; a runtime change of a pod
158
158
  * waits for its next start; one that adds a required secret waits for its value. Its manifest's
159
159
  * name, kind, harness and storage are fixed (`409 agent_fixed_field`); fork it to change them.
@@ -171,9 +171,10 @@ export declare const PutAgentRequestSchema: z.ZodObject<{
171
171
  }, z.core.$strict>;
172
172
  export type PutAgentRequest = z.infer<typeof PutAgentRequestSchema>;
173
173
  /**
174
- * What an Agent's environment runs: its manifest version's runtime section resolved against the
175
- * Tenant's limits when the Agent was made, with the harness that runs its loop. It never changes
176
- * after that.
174
+ * What an Agent's environment runs: the runtime section of the manifest version it runs, resolved
175
+ * against the Tenant's limits when the Agent was made or moved to that version, with the harness
176
+ * that runs its loop. A move to another version changes it; its kind, harness and storage never
177
+ * change.
177
178
  */
178
179
  export declare const EnvironmentRecipeSchema: z.ZodObject<{
179
180
  image: z.ZodOptional<z.ZodString>;
@@ -250,7 +251,7 @@ export declare const EnvironmentRecipeSchema: z.ZodObject<{
250
251
  }, z.core.$strict>], "type">>>>;
251
252
  }, z.core.$strict>;
252
253
  export type EnvironmentRecipe = z.infer<typeof EnvironmentRecipeSchema>;
253
- /** A session on an Agent, as the Agent's view lists it: none is special (D71). */
254
+ /** A session on an Agent, as the Agent's view lists it: none is special. */
254
255
  export declare const AgentSessionSchema: z.ZodObject<{
255
256
  id: z.ZodString;
256
257
  ownerUserId: z.ZodString;
@@ -291,7 +292,7 @@ export declare const COMPUTE_STATES: readonly ["ready", "creating", "running", "
291
292
  /**
292
293
  * An Agent's state (protocol 16), derived when it is read, the first that holds:
293
294
  *
294
- * - `paused`: its desired state is `off` (nothing in protocol 16 sets it; track T6 adds the control).
295
+ * - `paused`: its desired state is `off` (nothing in protocol 16 sets it).
295
296
  * - `failing`: its compute failed or was lost, or a session's latest finished turn failed.
296
297
  * - `input_required`: a session waits on a person (an approval or interaction, or an uncertain
297
298
  * effect), even while another works.
@@ -549,22 +550,22 @@ export declare const DeleteAgentResponseSchema: z.ZodObject<{
549
550
  deleted: z.ZodBoolean;
550
551
  }, z.core.$strict>;
551
552
  export type DeleteAgentResponse = z.infer<typeof DeleteAgentResponseSchema>;
552
- /** A turn that was running on an Agent when one of its connections opened (D67). */
553
+ /** A turn that was running on an Agent when one of its connections opened. */
553
554
  export declare const EgressRunningTurnSchema: z.ZodObject<{
554
555
  sessionId: z.ZodString;
555
556
  turnId: z.ZodString;
556
557
  }, z.core.$strict>;
557
558
  export type EgressRunningTurn = z.infer<typeof EgressRunningTurnSchema>;
558
559
  /**
559
- * One connection a pod Agent opened through egress-gate (track R7, Q6): written when it closes,
560
- * or at once when the gate refused it, to the Agent's own stream as `agent.egress` (D67). The
560
+ * One connection a pod Agent opened through egress-gate: written when it closes,
561
+ * or at once when the gate refused it, to the Agent's own stream as `agent.egress`. The
561
562
  * connection is the Agent's: its egress token names the pod, and the Agent's sessions run turns
562
- * in parallel (D66). `runningTurns` lists the turns active on it as the connection opened, at
563
+ * in parallel. `runningTurns` lists the turns active on it as the connection opened, at
563
564
  * most 16, as context and never as the owner.
564
565
  *
565
566
  * `startedAt` is the gate's clock at CONNECT and `durationMs` runs from there to the close, so
566
567
  * the span is the gate's own measurement. `bytesUp` is what the sandbox sent, `bytesDown` what it
567
- * got. `mode: "credential"` is a host an `environment_secret` is bound to (R2c): the gate read
568
+ * got. `mode: "credential"` is a host an `environment_secret` is bound to: the gate read
568
569
  * each request (`requests`) and set a credential on it (`credentialIds`, ids only). It never
569
570
  * carries a header value, a URL path or a body.
570
571
  */
@@ -597,7 +598,7 @@ export declare const EgressConnectionPayloadSchema: z.ZodObject<{
597
598
  /** The schema id of an Agent's lifecycle events (its stream in the record). */
598
599
  export declare const AGENT_EVENT_SCHEMA = "nylorun.agent-event/1";
599
600
  /**
600
- * `memory.updated` (track T5, D72): the session's agent changed the Agent's memory with its
601
+ * `memory.updated`: the session's agent changed the Agent's memory with its
601
602
  * `memory` tool: each memory the call changed, what changed it and its version after. The Agent's
602
603
  * stream carries the same as `agent.memory_updated`, with the session.
603
604
  */
@@ -694,7 +695,7 @@ export declare const AGENT_EVENT_PAYLOADS: {
694
695
  secrets: z.ZodNumber;
695
696
  }, z.core.$loose>;
696
697
  /**
697
- * Asked to move to version `to` of its manifest, which waits (track T3): for a value of each
698
+ * Asked to move to version `to` of its manifest, which waits: for a value of each
698
699
  * required secret it adds (`secrets`), or for its pod's next start (`start`).
699
700
  */
700
701
  readonly "agent.outdated": z.ZodObject<{
@@ -705,14 +706,14 @@ export declare const AGENT_EVENT_PAYLOADS: {
705
706
  start: "start";
706
707
  }>;
707
708
  }, z.core.$loose>;
708
- /** Runs version `to` of its manifest now: turns that start from here run it (track T3). */
709
+ /** Runs version `to` of its manifest now: turns that start from here run it. */
709
710
  readonly "agent.version_changed": z.ZodObject<{
710
711
  from: z.ZodNumber;
711
712
  to: z.ZodNumber;
712
713
  }, z.core.$loose>;
713
714
  /**
714
715
  * Its pod did not start on version `to` (its setup failed, the pod failed, or it took longer
715
- * than the Host allows): it went back to version `from`, with its disk as it was (track T3).
716
+ * than the Host allows): it went back to version `from`, with its disk as it was.
716
717
  */
717
718
  readonly "agent.start_failed": z.ZodObject<{
718
719
  from: z.ZodNumber;
@@ -720,7 +721,7 @@ export declare const AGENT_EVENT_PAYLOADS: {
720
721
  reason: z.ZodString;
721
722
  reverted: z.ZodBoolean;
722
723
  }, z.core.$loose>;
723
- /** A connection through egress-gate, with the turns running as it opened (D67). */
724
+ /** A connection through egress-gate, with the turns running as it opened. */
724
725
  readonly "agent.egress": z.ZodObject<{
725
726
  agentId: z.ZodString;
726
727
  host: z.ZodString;
@@ -856,7 +857,7 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
856
857
  /**
857
858
  * `PUT /v1/sessions/{id}` (protocol 16): the session's Agent, owner and info. The session runs on
858
859
  * the Agent for its life (its sandbox, its vault's credentials) and pins the manifest version the
859
- * Agent runs when it opens. No session is special (D71): an app that keeps one conversation
860
+ * Agent runs when it opens. No session is special: an app that keeps one conversation
860
861
  * going reuses its id.
861
862
  */
862
863
  export declare const PutSessionRequestSchema: z.ZodObject<{
@@ -866,7 +867,7 @@ export declare const PutSessionRequestSchema: z.ZodObject<{
866
867
  info: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
867
868
  }, z.core.$strict>;
868
869
  export type PutSessionRequest = z.infer<typeof PutSessionRequestSchema>;
869
- /** The hosts a harness can run on (blueprint D38). */
870
+ /** The hosts a harness can run on. */
870
871
  export declare const PLACEMENT_HOSTS: readonly ["harness-container", "sandbox"];
871
872
  export type PlacementHost = (typeof PLACEMENT_HOSTS)[number];
872
873
  /**
@@ -930,14 +931,14 @@ export declare const HEADER_NAME_PATTERN: RegExp;
930
931
  /** A loopback host as a URL's `hostname` names it: plain `http` reaches only these. */
931
932
  export declare const LOOPBACK_HOSTS: RegExp;
932
933
  /**
933
- * `via` (R2b C2, Q11): where this installation reaches the credential's server, such as a
934
+ * `via`: where this installation reaches the credential's server, such as a
934
935
  * gateway's endpoint for it. An absolute `https` URL (`http` only to a loopback host), with no
935
936
  * userinfo, query string or fragment. Credentials are still matched by the URL the manifest
936
937
  * names; `via` changes only where the request goes.
937
938
  */
938
939
  export declare const CredentialViaSchema: z.ZodString;
939
940
  /**
940
- * The identity header (R2b C2, Q1–Q3): each request carries the session owner's subject in
941
+ * The identity header: each request carries the session owner's subject in
941
942
  * `header`, for a gateway that keeps each person's accounts. A session with no person as its
942
943
  * owner (the reserved `installation`) sends none.
943
944
  */
@@ -948,13 +949,13 @@ export type CredentialIdentity = z.infer<typeof CredentialIdentitySchema>;
948
949
  export declare const RESERVED_ENVIRONMENT_NAMES: ReadonlySet<string>;
949
950
  export declare function isReservedEnvironmentName(name: string): boolean;
950
951
  /**
951
- * The value a sandbox sees for every `environment_secret` (R2c, D50): never the secret. Word
952
+ * The value a sandbox sees for every `environment_secret`: never the secret. Word
952
953
  * characters only, so CLIs that check a token's format before sending it (the Vercel CLI
953
954
  * refuses anything matching `\W`) still send the request egress-gate sets the header on.
954
955
  */
955
956
  export declare const ENVIRONMENT_SECRET_SENTINEL = "nylorun_managed";
956
957
  /**
957
- * How egress-gate writes an `environment_secret` into a request (R2c, D50): one header, set on
958
+ * How egress-gate writes an `environment_secret` into a request: one header, set on
958
959
  * every request to a bound host. `format` is text with `{value}` once, optionally inside a
959
960
  * `{base64:…}` group, for example `Bearer {value}` (the default),
960
961
  * `Basic {base64:x-access-token:{value}}` or `{value}`.
@@ -973,13 +974,13 @@ export declare const EnvironmentSecretInjectSchema: z.ZodObject<{
973
974
  export type EnvironmentSecretInject = z.infer<typeof EnvironmentSecretInjectSchema>;
974
975
  /**
975
976
  * The name of a credential for a tool (`bearer` or `headers`): a label of 1–64 characters.
976
- * An identifier's grammar is the protocol's (B15): it crosses the Runtime API, tokens and grants
977
+ * An identifier's grammar is the protocol's: it crosses the Runtime API, tokens and grants
977
978
  * and means the same in every installation, so its length is a constant of protocol 15, not a
978
979
  * setting.
979
980
  */
980
981
  export declare const TOOL_SECRET_NAME_PATTERN: RegExp;
981
982
  /**
982
- * `PUT /v1/agents/{agentId}/secrets/{name}` (D56): creates or replaces one credential
983
+ * `PUT /v1/agents/{agentId}/secrets/{name}`: creates or replaces one credential
983
984
  * in the Environment's vault. For `environment_secret` and `environment_variable` the name is
984
985
  * the variable's name (a POSIX name, not reserved); for `bearer` and `headers` it is a label.
985
986
  * The same name and type keeps the credential and re-seals its value and binding; another type
@@ -1021,7 +1022,7 @@ export declare const PutAgentSecretRequestSchema: z.ZodDiscriminatedUnion<[z.Zod
1021
1022
  }, z.core.$strict>], "type">;
1022
1023
  export type PutAgentSecretRequest = z.infer<typeof PutAgentSecretRequestSchema>;
1023
1024
  /**
1024
- * A secret write on an Environment whose manifest declares the secret's slot (D64): only the
1025
+ * A secret write on an Environment whose manifest declares the secret's slot: only the
1025
1026
  * value, `value` (or `headers` for a `headers` slot). Its type and binding come from the slot.
1026
1027
  */
1027
1028
  export declare const PutAgentSecretValueRequestSchema: z.ZodObject<{
@@ -1033,7 +1034,7 @@ export type PutAgentSecretValueRequest = z.infer<typeof PutAgentSecretValueReque
1033
1034
  /** Whether `name` may name a secret of `type` (`PUT .../secrets/{name}`); a message when not. */
1034
1035
  export declare function environmentSecretNameError(type: PutAgentSecretRequest["type"], name: string): string | undefined;
1035
1036
  /**
1036
- * One secret an Environment of a kind needs (D64): its type and binding, never its value. The
1037
+ * One secret an Environment of a kind needs: its type and binding, never its value. The
1037
1038
  * value is written into each Environment's vault (`PUT /v1/agents/{id}/secrets/{name}`
1038
1039
  * with `{ value }`, or `{ headers }` for `headers`), and the binding comes from here.
1039
1040
  */
@@ -1113,21 +1114,21 @@ export declare const WorkflowHarnessSectionSchema: z.ZodType<WorkflowHarnessSect
1113
1114
  /** The `harness` section: an agent's loop, or a flow (`kind: "workflow"`). */
1114
1115
  export declare const HarnessSectionSchema: z.ZodUnion<readonly [z.ZodType<WorkflowHarnessSection, unknown, z.core.$ZodTypeInternals<WorkflowHarnessSection, unknown>>, z.ZodType<AgentHarnessSection, unknown, z.core.$ZodTypeInternals<AgentHarnessSection, unknown>>]>;
1115
1116
  /**
1116
- * A trigger's id in `runtime.triggers` (track T4, D74): 1–64 letters, digits, `.`, `_` and `-`,
1117
+ * A trigger's id in `runtime.triggers`: 1–64 letters, digits, `.`, `_` and `-`,
1117
1118
  * starting with a letter or digit. The map key; it names the trigger in routes and runs.
1118
1119
  */
1119
1120
  export declare const TriggerIdSchema: z.ZodString;
1120
- /** The signature schemes a webhook trigger verifies (D75): Standard Webhooks only in T4. */
1121
+ /** The signature schemes a webhook trigger verifies: Standard Webhooks only. */
1121
1122
  export declare const WEBHOOK_SCHEMES: readonly ["standard-webhooks"];
1122
1123
  /**
1123
- * One trigger of an agent manifest's `runtime.triggers` (track T4, D74): exactly one of
1124
+ * One trigger of an agent manifest's `runtime.triggers`: exactly one of
1124
1125
  * `schedule` (five-field cron, minute granularity, in `timezone`, an IANA name, default UTC), `at`
1125
1126
  * (one run at an RFC 3339 time with an offset) or `webhook` (a webhook endpoint verified with the
1126
1127
  * named scheme), plus the `session` each run goes to and the author's `prompt`.
1127
1128
  *
1128
1129
  * `session` is a session id of the Agent, opened on the trigger's first run if it does not
1129
- * exist, or `"new"` for a new session per run (`run-<runId>`). The Runtime keeps no main session
1130
- * (D71). The cron's smallest gap, the `at` time, the prompt's length and how many triggers a
1130
+ * exist, or `"new"` for a new session per run (`run-<runId>`). The Runtime keeps no main session.
1131
+ * The cron's smallest gap, the `at` time, the prompt's length and how many triggers a
1131
1132
  * manifest holds are checked against the Tenant's Runtime limits when it is saved.
1132
1133
  */
1133
1134
  export declare const TriggerSchema: z.ZodObject<{
@@ -1141,13 +1142,13 @@ export declare const TriggerSchema: z.ZodObject<{
1141
1142
  prompt: z.ZodString;
1142
1143
  }, z.core.$strict>;
1143
1144
  export type Trigger = z.infer<typeof TriggerSchema>;
1144
- /** What a trigger is: the field it has, or `wake` for a session's own booking (D77). */
1145
+ /** What a trigger is: the field it has, or `wake` for a session's own booking. */
1145
1146
  export declare const TRIGGER_KINDS: readonly ["schedule", "at", "webhook", "wake"];
1146
1147
  export type TriggerKind = (typeof TRIGGER_KINDS)[number];
1147
1148
  /** A trigger's kind, from its manifest entry. */
1148
1149
  export declare function triggerKindOf(trigger: Trigger): Exclude<TriggerKind, "wake">;
1149
1150
  /**
1150
- * A trigger's status on an Agent (D74): `active` fires, `paused` does not (`pausedReason`
1151
+ * A trigger's status on an Agent: `active` fires, `paused` does not (`pausedReason`
1151
1152
  * `manual`, or `new` for one an upgrade added), `completed` is an `at` that ran.
1152
1153
  */
1153
1154
  export declare const TRIGGER_STATUSES: readonly ["active", "paused", "completed"];
@@ -1202,7 +1203,7 @@ export declare const TriggerListSchema: z.ZodObject<{
1202
1203
  }, z.core.$strict>>;
1203
1204
  }, z.core.$strict>;
1204
1205
  /**
1205
- * What a run came to (D74): `started` a turn, `queued` a message behind a running turn,
1206
+ * What a run came to: `started` a turn, `queued` a message behind a running turn,
1206
1207
  * `skipped` (nothing started: `overlap`, `rate_limited`, `paused`) or `failed` (`queue_full`,
1207
1208
  * `session_conflict`, `agent_unavailable`).
1208
1209
  */
@@ -1261,7 +1262,7 @@ export declare const TriggerRunPageSchema: z.ZodObject<{
1261
1262
  }, z.core.$strict>;
1262
1263
  export type TriggerRunPage = z.infer<typeof TriggerRunPageSchema>;
1263
1264
  /**
1264
- * `POST /v1/agents/{id}/triggers/{triggerId}/secret` (D75): a webhook trigger's new signing secret,
1265
+ * `POST /v1/agents/{id}/triggers/{triggerId}/secret`: a webhook trigger's new signing secret,
1265
1266
  * in the Standard Webhooks format (`whsec_` and 32 random bytes in base64), shown this once. It
1266
1267
  * replaces the one before at once.
1267
1268
  */
@@ -1308,7 +1309,7 @@ export declare const RunTriggerResponseSchema: z.ZodObject<{
1308
1309
  }, z.core.$strict>;
1309
1310
  }, z.core.$strict>;
1310
1311
  /**
1311
- * One of an Agent's memories (track T5, D72), as `GET /v1/agents/{id}/memories` lists it: its
1312
+ * One of an Agent's memories, as `GET /v1/agents/{id}/memories` lists it: its
1312
1313
  * path under `/memories`, size, content hash (the precondition a `PUT` may send), the
1313
1314
  * `description` of its frontmatter when it has one, and its version, which every change bumps.
1314
1315
  */
@@ -1519,7 +1520,7 @@ export declare const RuntimeSectionSchema: z.ZodObject<{
1519
1520
  }, z.core.$strict>;
1520
1521
  export type RuntimeSection = z.infer<typeof RuntimeSectionSchema>;
1521
1522
  /**
1522
- * Agent manifest v8 (protocol 16, track T2): one versioned document with what runs inside the
1523
+ * Agent manifest v8 (protocol 16): one versioned document with what runs inside the
1523
1524
  * agent loop (`harness`) and what the Runtime provides around it (`runtime`), saved at
1524
1525
  * `PUT /v1/agent-manifests/{name}`. Without `runtime`, an Agent made from it is kind `none`.
1525
1526
  * The Runtime also checks the two sections against each other when it is saved (`sectionGaps`).
@@ -2396,7 +2397,7 @@ export type AgentManifestChange = z.infer<typeof AgentManifestChangeSchema>;
2396
2397
  * `PUT /v1/agent-manifests/{name}?dryRun=true`: what saving it would do, with nothing saved.
2397
2398
  * `errors` lists every reason the Runtime would refuse it: the gaps between its sections, the
2398
2399
  * Tenant's limits, its files; a save with errors is refused. A save moves every Agent that tracks
2399
- * the manifest (track T3): `moves` counts them by when the new version applies. `behind` counts
2400
+ * the manifest: `moves` counts them by when the new version applies. `behind` counts
2400
2401
  * the Agents that stay on an older version: pinned ones, and tracking ones it cannot move.
2401
2402
  */
2402
2403
  export declare const AgentManifestPlanSchema: z.ZodObject<{
@@ -2553,7 +2554,7 @@ export declare const DeleteAgentManifestResponseSchema: z.ZodObject<{
2553
2554
  }, z.core.$strict>;
2554
2555
  export type DeleteAgentManifestResponse = z.infer<typeof DeleteAgentManifestResponseSchema>;
2555
2556
  /**
2556
- * `POST /v1/agents/{id}/fork` (Q15): copies an Agent, with its disk and vault, into a new one,
2557
+ * `POST /v1/agents/{id}/fork`: copies an Agent, with its disk and vault, into a new one,
2557
2558
  * made from `manifest` (default the source's manifest at its latest version): how an Agent
2558
2559
  * changes what is fixed for its life (its kind, harness, storage or manifest). The source keeps
2559
2560
  * what it runs, its disk and its sessions.
@@ -2847,7 +2848,7 @@ export declare const ForkAgentResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2847
2848
  }, z.core.$strict>]>;
2848
2849
  export type ForkAgentResponse = z.infer<typeof ForkAgentResponseSchema>;
2849
2850
  /**
2850
- * `PUT /v1/agents/{id}?dryRun=true` on an existing Agent (track T3): what moving it to the
2851
+ * `PUT /v1/agents/{id}?dryRun=true` on an existing Agent: what moving it to the
2851
2852
  * version `manifest` names would do, with nothing changed. `applies`: `none` (it runs that
2852
2853
  * version), `now` (turns that start from here run it), `next_start` (a runtime change: its pod's
2853
2854
  * next start applies it), `secrets` (it waits for a value of each of `missingSecrets`), or
@@ -2895,7 +2896,7 @@ export declare const AgentMovePlanSchema: z.ZodObject<{
2895
2896
  }, z.core.$strict>;
2896
2897
  export type AgentMovePlan = z.infer<typeof AgentMovePlanSchema>;
2897
2898
  /**
2898
- * `POST /v1/agents/{id}/restart` (track T3): applies a pending version now. A running pod stops,
2899
+ * `POST /v1/agents/{id}/restart`: applies a pending version now. A running pod stops,
2899
2900
  * so the next turn starts it on the version (a stopped one starts at once); `retry` first moves
2900
2901
  * it to the version that failed to start (`failedVersion`) again.
2901
2902
  */
@@ -3103,7 +3104,7 @@ export type ListAgentSecretsResponse = z.infer<typeof ListAgentSecretsResponseSc
3103
3104
  /** The MCP transports a preview speaks: a manifest's remote server types. */
3104
3105
  export declare const MCP_PREVIEW_TYPES: readonly ["streamable-http", "sse"];
3105
3106
  /**
3106
- * `POST /v1/tenant/mcp/preview` (R2b C12): what a remote MCP server offers, before an agent
3107
+ * `POST /v1/tenant/mcp/preview`: what a remote MCP server offers, before an agent
3107
3108
  * names it. The Runtime connects with the credential for `url` in the vault of Agent `agentId`
3108
3109
  * (none without one), lists the tools and closes the connection; it never calls a tool.
3109
3110
  */
@@ -3128,7 +3129,7 @@ export declare const McpPreviewToolSchema: z.ZodObject<{
3128
3129
  }, z.core.$strict>;
3129
3130
  export type McpPreviewTool = z.infer<typeof McpPreviewToolSchema>;
3130
3131
  /**
3131
- * A preview (R2b C12). A server that answered `401` is `authRequired`, with its RFC 9728
3132
+ * A preview. A server that answered `401` is `authRequired`, with its RFC 9728
3132
3133
  * protected-resource metadata when it publishes any: it needs a person's sign-in or a key the
3133
3134
  * Environment's vault does not hold, so reach it with a key or through a gateway (`via`).
3134
3135
  */
@@ -3237,7 +3238,7 @@ export declare const CredentialCoverageSchema: z.ZodObject<{
3237
3238
  }, z.core.$strict>;
3238
3239
  export type CredentialCoverage = z.infer<typeof CredentialCoverageSchema>;
3239
3240
  /**
3240
- * What a message to a busy session does (protocol 17, D76): `queue` waits for the running turn to
3241
+ * What a message to a busy session does (protocol 17): `queue` waits for the running turn to
3241
3242
  * end and starts the next one; `reject` is refused with `409 session_busy`. A protocol 17 client's
3242
3243
  * default is `queue`, a protocol 16 client's `reject`.
3243
3244
  */
@@ -3424,11 +3425,11 @@ export type MessageEventBody = z.infer<typeof MessageEventBodySchema>;
3424
3425
  /** The envelope every session event carries (`nylorun.event/2`, Durable Streams §9.5). */
3425
3426
  export declare const EVENT_SCHEMA = "nylorun.event/2";
3426
3427
  /**
3427
- * Who wrote an event (track R4, R4.9): the writer says so, not the event's type. `client` is a
3428
+ * Who wrote an event: the writer says so, not the event's type. `client` is a
3428
3429
  * command over the Runtime API (its `principal` says who sent it), `core` is core's own logic
3429
3430
  * (settle, sweeps, the flow host, exports, the tools core serves), `harness` is what a harness
3430
3431
  * reported (`source.id` is its harness id, `runId` its run), and the gates are themselves.
3431
- * `loop` and `api` are what events written before R4 say.
3432
+ * `loop` and `api` are what older events say.
3432
3433
  */
3433
3434
  export declare const EventSourceKindSchema: z.ZodEnum<{
3434
3435
  api: "api";
@@ -3463,7 +3464,7 @@ export declare const EvidenceClassSchema: z.ZodEnum<{
3463
3464
  observed: "observed";
3464
3465
  }>;
3465
3466
  export type EvidenceClass = z.infer<typeof EvidenceClassSchema>;
3466
- /** A command's sender (R4.9): from the request's credential, never from its body. */
3467
+ /** A command's sender: from the request's credential, never from its body. */
3467
3468
  export declare const EventPrincipalSchema: z.ZodObject<{
3468
3469
  kind: z.ZodEnum<{
3469
3470
  application: "application";
@@ -3476,7 +3477,7 @@ export declare const EventPrincipalSchema: z.ZodObject<{
3476
3477
  }, z.core.$strict>;
3477
3478
  export type EventPrincipal = z.infer<typeof EventPrincipalSchema>;
3478
3479
  /**
3479
- * Who wrote an event, as its writer says (R4.9). Absent, core wrote it and saw it (`core`,
3480
+ * Who wrote an event, as its writer says. Absent, core wrote it and saw it (`core`,
3480
3481
  * `observed`).
3481
3482
  */
3482
3483
  export interface EventWriter {
@@ -3541,7 +3542,7 @@ declare const eventEnvelope: {
3541
3542
  measured: "measured";
3542
3543
  observed: "observed";
3543
3544
  }>;
3544
- /** Who sent a command (`command.*`, a cancel's `turn.cancelled`), from its credential (R4.9). */
3545
+ /** Who sent a command (`command.*`, a cancel's `turn.cancelled`), from its credential. */
3545
3546
  principal: z.ZodOptional<z.ZodObject<{
3546
3547
  kind: z.ZodEnum<{
3547
3548
  application: "application";
@@ -3733,7 +3734,7 @@ export declare const AgentRefSchema: z.ZodObject<{
3733
3734
  delegationId: z.ZodOptional<z.ZodString>;
3734
3735
  }, z.core.$strict>;
3735
3736
  /**
3736
- * When a gate served a call (R7.1): its own start and end, as it measured them. Absent when no
3737
+ * When a gate served a call: its own start and end, as it measured them. Absent when no
3737
3738
  * gate measured the call (a fixture model, a sandbox or core-served tool, a call refused before
3738
3739
  * it was sent).
3739
3740
  */
@@ -3742,7 +3743,7 @@ export declare const GateTimesSchema: z.ZodObject<{
3742
3743
  endedAt: z.ZodString;
3743
3744
  }, z.core.$loose>;
3744
3745
  /**
3745
- * What the Model Gate's meter recorded for a model call (R7.1), from the usage ledger: the
3746
+ * What the Model Gate's meter recorded for a model call, from the usage ledger: the
3746
3747
  * tokens and cost the Runtime counts, beside the `usage` the harness reported. `cachedTokens`
3747
3748
  * and `costUsd` are absent when zero.
3748
3749
  */
@@ -3793,7 +3794,7 @@ export declare const AssistantMessagePayloadSchema: z.ZodObject<{
3793
3794
  input: z.ZodUnknown;
3794
3795
  }, z.core.$loose>>;
3795
3796
  }, z.core.$loose>;
3796
- /** True when a `message.assistant` said nothing: no text and no tool calls (R7.1). */
3797
+ /** True when a `message.assistant` said nothing: no text and no tool calls. */
3797
3798
  export declare function isEmptyAssistantMessage(payload: {
3798
3799
  readonly text?: unknown;
3799
3800
  readonly toolCalls?: readonly unknown[];
@@ -3861,17 +3862,17 @@ export declare const ContextCompactedPayloadSchema: z.ZodObject<{
3861
3862
  tokensBefore: z.ZodNumber;
3862
3863
  tokensAfter: z.ZodNumber;
3863
3864
  }, z.core.$loose>;
3864
- /** How a tool call ended (R5.1): the tool answered, the Runtime ended it, or a cancel did. */
3865
+ /** How a tool call ended: the tool answered, the Runtime ended it, or a cancel did. */
3865
3866
  export declare const TOOL_CALL_STATUSES: readonly ["completed", "failed", "cancelled"];
3866
3867
  /**
3867
- * Where a tool call ran (R5.1), its effect's target kind (protocol 15): an MCP server, an HTTP
3868
+ * Where a tool call ran, its effect's target kind (protocol 15): an MCP server, an HTTP
3868
3869
  * tool's URL, the session's sandbox, the harness that runs the turn (`harness`: a tool it runs
3869
3870
  * in its own process, such as our engine's skill, artifact and `tool_search` tools), or the
3870
- * Runtime itself (`runtime`: `schedule_wake`, track T4).
3871
+ * Runtime itself (`runtime`: `schedule_wake`).
3871
3872
  */
3872
3873
  export declare const TOOL_CALL_KINDS: readonly ["mcp", "http", "sandbox", "harness", "runtime"];
3873
3874
  /**
3874
- * What the Tenant's tool policy did with a tool call (R5 step 2), when it did more than allow
3875
+ * What the Tenant's tool policy did with a tool call, when it did more than allow
3875
3876
  * it: `deny` refused it unsent; `ask` held it for a person, who approved it (`approvedBy`, when
3876
3877
  * known) or denied it.
3877
3878
  */
@@ -3884,7 +3885,7 @@ export declare const ToolPolicyFactSchema: z.ZodObject<{
3884
3885
  approvedBy: z.ZodOptional<z.ZodString>;
3885
3886
  }, z.core.$loose>;
3886
3887
  /**
3887
- * `tool.completed`: how one tool call ended, written once per call (R5.1). `status`
3888
+ * `tool.completed`: how one tool call ended, written once per call. `status`
3888
3889
  * `completed`: the tool answered, with its output or the tool error it reported (`error`).
3889
3890
  * `failed`: the Runtime ended the call (`tool.disabled`, `tool.unavailable`, `tool.denied`, or
3890
3891
  * `tool.interrupted` for a call a crash interrupted, which may have run). `cancelled`: the turn
@@ -4019,7 +4020,7 @@ export declare const MessageQueuedPayloadSchema: z.ZodObject<{
4019
4020
  requestId: z.ZodString;
4020
4021
  }, z.core.$loose>;
4021
4022
  /**
4022
- * `wake.booked` (track T4, D77): the session's agent booked its next turn with `schedule_wake`,
4023
+ * `wake.booked`: the session's agent booked its next turn with `schedule_wake`,
4023
4024
  * at `at`, replacing any booking before. `wake.cancelled`: it cancelled its booking.
4024
4025
  */
4025
4026
  export declare const WakeBookedPayloadSchema: z.ZodObject<{
@@ -4358,7 +4359,7 @@ export declare const NodeStartedPayloadSchema: z.ZodObject<{
4358
4359
  }, z.core.$loose>;
4359
4360
  /**
4360
4361
  * `node.completed`: a flow's HTTP stage or HTTP verifier ended, or a tool stage the Runtime
4361
- * refused to run (R7.1), named as its `node.started` names it. `status` reads as
4362
+ * refused to run, named as its `node.started` names it. `status` reads as
4362
4363
  * `tool.completed`'s: `completed` when the stage's server answered (an error answer included),
4363
4364
  * `failed` when the Runtime ended it, `cancelled` when a cancel did. `gate` is the Tool Gate's
4364
4365
  * own start and end of its last send.
@@ -4404,7 +4405,7 @@ export declare const LoopVerifiedPayloadSchema: z.ZodObject<{
4404
4405
  data: z.ZodOptional<z.ZodUnknown>;
4405
4406
  }, z.core.$loose>;
4406
4407
  /**
4407
- * `transcript.updated` (internal; blueprint P0.3): the own loop's model-facing transcript after a
4408
+ * `transcript.updated` (internal): the own loop's model-facing transcript after a
4408
4409
  * settled segment, as an edit of the previous one: keep its first `keep` entries, then append
4409
4410
  * `entries`; the result has `length` entries. `keep` is 0 for a snapshot (after compaction, or
4410
4411
  * for a session written before transcripts were recorded). Large edits are split into
@@ -4430,7 +4431,7 @@ export declare const ArtifactSourceSchema: z.ZodEnum<{
4430
4431
  }>;
4431
4432
  export type ArtifactSource = z.infer<typeof ArtifactSourceSchema>;
4432
4433
  /**
4433
- * What an artifact holds: one file, or a folder (F8.2), whose versions are manifests of paths to
4434
+ * What an artifact holds: one file, or a folder, whose versions are manifests of paths to
4434
4435
  * content-addressed files.
4435
4436
  */
4436
4437
  export declare const ArtifactKindSchema: z.ZodEnum<{
@@ -5319,7 +5320,7 @@ export declare const StreamRelayStatusSchema: z.ZodObject<{
5319
5320
  }, z.core.$strict>;
5320
5321
  export type StreamRelayStatus = z.infer<typeof StreamRelayStatusSchema>;
5321
5322
  /**
5322
- * The Tenant's harnesses (F6.2): `in-process` runs one in core's process; `remote` waits for
5323
+ * The Tenant's harnesses: `in-process` runs one in core's process; `remote` waits for
5323
5324
  * harnesses on the Harness API listener. `workspace` says one that serves the Tenant's
5324
5325
  * workspaces is connected.
5325
5326
  */
@@ -5605,7 +5606,7 @@ export declare const SUBJECT_SCOPES: readonly ["agents:read", "agents:write", "s
5605
5606
  export type SubjectScope = (typeof SUBJECT_SCOPES)[number];
5606
5607
  /**
5607
5608
  * The owner of a session opened for no person: an MCP server's or HTTP tool's identity header
5608
- * (R2b C2) names nobody for it. A reserved subject.
5609
+ * names nobody for it. A reserved subject.
5609
5610
  */
5610
5611
  export declare const INSTALLATION_OWNER = "installation";
5611
5612
  /** A valid subject: 1–200 visible ASCII characters, not reserved by the Runtime. */
@@ -6356,7 +6357,7 @@ export declare const ModelBudgetsSchema: z.ZodObject<{
6356
6357
  }, z.core.$strict>>;
6357
6358
  }, z.core.$strict>;
6358
6359
  export type ModelBudgets = z.infer<typeof ModelBudgetsSchema>;
6359
- /** What a tool policy rule does to a call it matches (R5 step 2). */
6360
+ /** What a tool policy rule does to a call it matches. */
6360
6361
  export declare const TOOL_POLICY_EFFECTS: readonly ["allow", "ask", "deny"];
6361
6362
  /** A test of one field of a tool call's input; every test it sets must hold. */
6362
6363
  export declare const ToolInputConditionSchema: z.ZodObject<{
@@ -6370,12 +6371,13 @@ export declare const ToolInputConditionSchema: z.ZodObject<{
6370
6371
  }, z.core.$strict>;
6371
6372
  export type ToolInputCondition = z.infer<typeof ToolInputConditionSchema>;
6372
6373
  /**
6373
- * One rule of the Tenant's tool policy (R5 step 2), applied at the Tool Gate to every MCP and
6374
- * HTTP tool call of every harness. A rule matches a call when every selector it sets matches:
6375
- * `tool` (the tool's identity: an MCP tool's own name on its server, or an HTTP tool's declared
6376
- * name; never the name a harness gave the model; `*` for any run of characters), `server` (an MCP
6377
- * server's name), `kind`, `agent` (the agent that calls it) and `when` (fields of the input, by
6378
- * dotted path). The strictest matching rule decides: `deny` refuses the call before it is sent,
6374
+ * One rule of the Tenant's tool policy, applied at the Tool Gate to every MCP and HTTP tool call
6375
+ * of every harness. A rule matches a call when every selector it sets matches: `tool` (the tool's
6376
+ * identity: an MCP tool's own name on its server, or an HTTP tool's declared name; never the name
6377
+ * a harness gave the model; `*` for any run of characters), `server` (an MCP server's name),
6378
+ * `kind`, `agent` (the agent that calls it: the agent manifest's name, or the id of an agent used
6379
+ * as a tool or of a flow's agent; never an Agent's id) and `when` (fields of the input, by dotted
6380
+ * path). The strictest matching rule decides: `deny` refuses the call before it is sent,
6379
6381
  * `ask` holds it until a person approves it on the session (`approve`), `allow` runs it. A call no
6380
6382
  * rule matches runs. Sandbox tools never cross the gate; their network side is egress policy.
6381
6383
  *
@@ -6672,7 +6674,7 @@ export declare const ARTIFACT_TOTAL_BYTES_DEFAULT: number;
6672
6674
  /**
6673
6675
  * The longest artifact name, in characters: the longest file name a workspace's file system takes
6674
6676
  * (`NAME_MAX`), since a name becomes one when the artifact is copied into a sandbox or downloaded.
6675
- * A standard's constant, not a limit (B15).
6677
+ * A standard's constant, not a limit.
6676
6678
  */
6677
6679
  export declare const ARTIFACT_NAME_MAX = 255;
6678
6680
  /**
@@ -6705,7 +6707,7 @@ export declare const ArtifactVersionViewSchema: z.ZodObject<{
6705
6707
  export type ArtifactVersionView = z.infer<typeof ArtifactVersionViewSchema>;
6706
6708
  /**
6707
6709
  * An artifact: an id, a name and numbered versions, its bytes in the Object store. A file's
6708
- * version is its bytes; a folder's (F8.2) is a manifest of paths to content-addressed files.
6710
+ * version is its bytes; a folder's is a manifest of paths to content-addressed files.
6709
6711
  */
6710
6712
  export declare const ArtifactViewSchema: z.ZodObject<{
6711
6713
  artifactId: z.ZodString;
@@ -6849,7 +6851,7 @@ export declare const UploadArtifactResponseSchema: z.ZodObject<{
6849
6851
  }, z.core.$strict>;
6850
6852
  export type UploadArtifactResponse = z.infer<typeof UploadArtifactResponseSchema>;
6851
6853
  /**
6852
- * `PUT /v1/files/sha256:{hex}`: a definition file the Runtime holds (track R2 M4), named by the
6854
+ * `PUT /v1/files/sha256:{hex}`: a definition file the Runtime holds, named by the
6853
6855
  * SHA-256 of its bytes. `201` stored it, `200` already had it.
6854
6856
  */
6855
6857
  export declare const DefinitionFileViewSchema: z.ZodObject<{
@@ -6884,7 +6886,7 @@ export declare const FOLDER_CONTENT_TYPE = "application/vnd.nylorun.folder+json"
6884
6886
  /** The manifest format a folder version is stored as. */
6885
6887
  export declare const FOLDER_MANIFEST_FORMAT = "nylorun.folder.v1";
6886
6888
  /**
6887
- * The manifest format of an Environment's disk versions (R2d step 3): v1's entries, plus file
6889
+ * The manifest format of an Environment's disk versions: v1's entries, plus file
6888
6890
  * modes and modification times, symbolic links and empty directories. Readers accept both.
6889
6891
  */
6890
6892
  export declare const FOLDER_MANIFEST_FORMAT_V2 = "nylorun.folder.v2";
@@ -6912,7 +6914,7 @@ export declare const FolderEntrySchema: z.ZodObject<{
6912
6914
  export type FolderEntry = z.infer<typeof FolderEntrySchema>;
6913
6915
  /**
6914
6916
  * A folder version as stored: the files, sorted by path, each naming its content-addressed
6915
- * bytes by SHA-256. The one manifest format for folders, reused by P5's snapshots.
6917
+ * bytes by SHA-256. The one manifest format for folders, reused by disk snapshots.
6916
6918
  */
6917
6919
  export declare const FolderManifestSchema: z.ZodObject<{
6918
6920
  format: z.ZodEnum<{
@@ -7065,7 +7067,7 @@ export declare const TenantSkillsViewSchema: z.ZodObject<{
7065
7067
  }, z.core.$strict>;
7066
7068
  export type TenantSkillsView = z.infer<typeof TenantSkillsViewSchema>;
7067
7069
  /**
7068
- * A Tenant's Runtime limits (harness boundary S0), stored as Tenant setting `limits.config`: what
7070
+ * A Tenant's Runtime limits, stored as Tenant setting `limits.config`: what
7069
7071
  * one record entry, model call, model file, tool answer, harness state and Harness API chunk may
7070
7072
  * hold. Each limit left out is its default (`RUNTIME_LIMIT_DEFAULTS`); none may pass its ceiling
7071
7073
  * (`RUNTIME_LIMIT_CEILINGS`, a `400` naming it).
@@ -7361,6 +7363,17 @@ export declare const HistoryPageSchema: z.ZodObject<{
7361
7363
  tail: z.ZodBoolean;
7362
7364
  }, z.core.$strip>;
7363
7365
  export type HistoryPage = z.infer<typeof HistoryPageSchema>;
7366
+ /**
7367
+ * A cost by the token kind it paid for, at the prices in force when the call was made:
7368
+ * uncached input, input read from the provider's cache, input written to it, and output.
7369
+ */
7370
+ export declare const CostSplitSchema: z.ZodObject<{
7371
+ input: z.ZodNumber;
7372
+ cacheRead: z.ZodNumber;
7373
+ cacheWrite: z.ZodNumber;
7374
+ output: z.ZodNumber;
7375
+ }, z.core.$strict>;
7376
+ export type CostSplit = z.infer<typeof CostSplitSchema>;
7364
7377
  export declare const SessionUsageTotalsSchema: z.ZodObject<{
7365
7378
  inputTokens: z.ZodNumber;
7366
7379
  outputTokens: z.ZodNumber;
@@ -7377,6 +7390,15 @@ export declare const SessionUsageTotalsSchema: z.ZodObject<{
7377
7390
  unpricedCalls: z.ZodNumber;
7378
7391
  unreportedCalls: z.ZodNumber;
7379
7392
  unknownQualityCalls: z.ZodNumber;
7393
+ costSplit: z.ZodObject<{
7394
+ input: z.ZodNumber;
7395
+ cacheRead: z.ZodNumber;
7396
+ cacheWrite: z.ZodNumber;
7397
+ output: z.ZodNumber;
7398
+ }, z.core.$strict>;
7399
+ splitCalls: z.ZodNumber;
7400
+ modelTimeMs: z.ZodNumber;
7401
+ timedCalls: z.ZodNumber;
7380
7402
  }, z.core.$strict>;
7381
7403
  export type SessionUsageTotals = z.infer<typeof SessionUsageTotalsSchema>;
7382
7404
  export declare const ModelCallSchema: z.ZodObject<{
@@ -7388,6 +7410,8 @@ export declare const ModelCallSchema: z.ZodObject<{
7388
7410
  provider: z.ZodNullable<z.ZodString>;
7389
7411
  model: z.ZodNullable<z.ZodString>;
7390
7412
  at: z.ZodString;
7413
+ startedAt: z.ZodNullable<z.ZodString>;
7414
+ endedAt: z.ZodNullable<z.ZodString>;
7391
7415
  outcome: z.ZodEnum<{
7392
7416
  completed: "completed";
7393
7417
  failed: "failed";
@@ -7403,6 +7427,12 @@ export declare const ModelCallSchema: z.ZodObject<{
7403
7427
  duplicate: z.ZodBoolean;
7404
7428
  tokensReported: z.ZodNullable<z.ZodBoolean>;
7405
7429
  costKnown: z.ZodNullable<z.ZodBoolean>;
7430
+ costSplit: z.ZodNullable<z.ZodObject<{
7431
+ input: z.ZodNumber;
7432
+ cacheRead: z.ZodNumber;
7433
+ cacheWrite: z.ZodNumber;
7434
+ output: z.ZodNumber;
7435
+ }, z.core.$strict>>;
7406
7436
  }, z.core.$strict>>;
7407
7437
  }, z.core.$strict>;
7408
7438
  export type ModelCall = z.infer<typeof ModelCallSchema>;
@@ -7416,6 +7446,8 @@ export declare const ModelCallsPageSchema: z.ZodObject<{
7416
7446
  provider: z.ZodNullable<z.ZodString>;
7417
7447
  model: z.ZodNullable<z.ZodString>;
7418
7448
  at: z.ZodString;
7449
+ startedAt: z.ZodNullable<z.ZodString>;
7450
+ endedAt: z.ZodNullable<z.ZodString>;
7419
7451
  outcome: z.ZodEnum<{
7420
7452
  completed: "completed";
7421
7453
  failed: "failed";
@@ -7431,6 +7463,12 @@ export declare const ModelCallsPageSchema: z.ZodObject<{
7431
7463
  duplicate: z.ZodBoolean;
7432
7464
  tokensReported: z.ZodNullable<z.ZodBoolean>;
7433
7465
  costKnown: z.ZodNullable<z.ZodBoolean>;
7466
+ costSplit: z.ZodNullable<z.ZodObject<{
7467
+ input: z.ZodNumber;
7468
+ cacheRead: z.ZodNumber;
7469
+ cacheWrite: z.ZodNumber;
7470
+ output: z.ZodNumber;
7471
+ }, z.core.$strict>>;
7434
7472
  }, z.core.$strict>>;
7435
7473
  }, z.core.$strict>>;
7436
7474
  nextCursor: z.ZodNullable<z.ZodString>;
@@ -7447,6 +7485,8 @@ export declare const ModelCallExportPageSchema: z.ZodObject<{
7447
7485
  provider: z.ZodNullable<z.ZodString>;
7448
7486
  model: z.ZodNullable<z.ZodString>;
7449
7487
  at: z.ZodString;
7488
+ startedAt: z.ZodNullable<z.ZodString>;
7489
+ endedAt: z.ZodNullable<z.ZodString>;
7450
7490
  outcome: z.ZodEnum<{
7451
7491
  completed: "completed";
7452
7492
  failed: "failed";
@@ -7462,6 +7502,12 @@ export declare const ModelCallExportPageSchema: z.ZodObject<{
7462
7502
  duplicate: z.ZodBoolean;
7463
7503
  tokensReported: z.ZodNullable<z.ZodBoolean>;
7464
7504
  costKnown: z.ZodNullable<z.ZodBoolean>;
7505
+ costSplit: z.ZodNullable<z.ZodObject<{
7506
+ input: z.ZodNumber;
7507
+ cacheRead: z.ZodNumber;
7508
+ cacheWrite: z.ZodNumber;
7509
+ output: z.ZodNumber;
7510
+ }, z.core.$strict>>;
7465
7511
  }, z.core.$strict>>;
7466
7512
  }, z.core.$strict>>;
7467
7513
  next: z.ZodNullable<z.ZodString>;
@@ -7470,9 +7516,9 @@ export declare const ModelCallExportPageSchema: z.ZodObject<{
7470
7516
  }, z.core.$strict>;
7471
7517
  export type ModelCallExportPage = z.infer<typeof ModelCallExportPageSchema>;
7472
7518
  /**
7473
- * One tool call of a session (R5.2), read from the effect journal: what ran, with what input,
7519
+ * One tool call of a session, read from the effect journal: what ran, with what input,
7474
7520
  * how many sends, and how it ended. `invoking` while it runs. `uncertain` only for a call
7475
- * recorded before R5. The output is in the session's log (`tool.completed`).
7521
+ * recorded by an older Runtime. The output is in the session's log (`tool.completed`).
7476
7522
  */
7477
7523
  export declare const ToolCallSchema: z.ZodObject<{
7478
7524
  effectId: z.ZodString;
@@ -7554,13 +7600,13 @@ export declare const ToolCallsPageSchema: z.ZodObject<{
7554
7600
  asOf: z.ZodString;
7555
7601
  }, z.core.$strict>;
7556
7602
  export type ToolCallsPage = z.infer<typeof ToolCallsPageSchema>;
7557
- /** One OTLP attribute (R7.5): a key and an `AnyValue` (`stringValue`, `intValue`, …). */
7603
+ /** One OTLP attribute: a key and an `AnyValue` (`stringValue`, `intValue`, …). */
7558
7604
  export declare const OtlpKeyValueSchema: z.ZodObject<{
7559
7605
  key: z.ZodString;
7560
7606
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7561
7607
  }, z.core.$loose>;
7562
7608
  /**
7563
- * One span as OTLP/HTTP JSON encodes it (R7.5): hex ids, times in nanoseconds as decimal strings,
7609
+ * One span as OTLP/HTTP JSON encodes it: hex ids, times in nanoseconds as decimal strings,
7564
7610
  * `kind` (1 internal, 3 client) and `status.code` (0 unset, 1 ok, 2 error) as numbers.
7565
7611
  */
7566
7612
  export declare const OtlpSpanSchema: z.ZodObject<{
@@ -7582,7 +7628,7 @@ export declare const OtlpSpanSchema: z.ZodObject<{
7582
7628
  }, z.core.$loose>;
7583
7629
  export type OtlpSpan = z.infer<typeof OtlpSpanSchema>;
7584
7630
  /**
7585
- * A turn's trace (R7.5, feature `traces`): the OTLP `ExportTraceServiceRequest` JSON the Runtime
7631
+ * A turn's trace (feature `traces`): the OTLP `ExportTraceServiceRequest` JSON the Runtime
7586
7632
  * posts to a collector, built from the turn's log rows. One resource, one scope.
7587
7633
  */
7588
7634
  export declare const TurnTraceSchema: z.ZodObject<{