@nylorun/core 0.53.0-beta → 0.55.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 (81) hide show
  1. package/CHANGELOG.md +126 -99
  2. package/dist/compatibility.d.ts +39 -12
  3. package/dist/compatibility.js +37 -10
  4. package/dist/contracts.d.ts +126 -44
  5. package/dist/contracts.js +127 -69
  6. package/dist/define.d.ts +2 -2
  7. package/dist/define.js +1 -1
  8. package/dist/definition/bound.d.ts +3 -1
  9. package/dist/definition/declaration.js +1 -0
  10. package/dist/definition/delegate.d.ts +7 -4
  11. package/dist/definition/delegate.js +4 -3
  12. package/dist/definition/from.js +3 -1
  13. package/dist/definition/manifest.js +7 -1
  14. package/dist/definition/sections.d.ts +9 -8
  15. package/dist/definition/sections.js +13 -5
  16. package/dist/definition/variant.d.ts +2 -2
  17. package/dist/definition/variant.js +4 -4
  18. package/dist/definition/workflow/runnable.d.ts +1 -1
  19. package/dist/definition/workflow/runnable.js +1 -1
  20. package/dist/definition/workflow/verdict.d.ts +1 -1
  21. package/dist/definition/workflow/verdict.js +1 -1
  22. package/dist/engine/blocks.d.ts +2 -2
  23. package/dist/engine/blocks.js +3 -3
  24. package/dist/engine/explain.d.ts +1 -1
  25. package/dist/engine/explain.js +3 -3
  26. package/dist/engine/features.d.ts +1 -1
  27. package/dist/engine/features.js +1 -1
  28. package/dist/engine/index.d.ts +1 -1
  29. package/dist/engine/index.js +1 -1
  30. package/dist/engine/mcp.d.ts +4 -4
  31. package/dist/engine/mcp.js +4 -4
  32. package/dist/engine/names.d.ts +1 -1
  33. package/dist/engine/names.js +1 -1
  34. package/dist/engine/preview.d.ts +2 -2
  35. package/dist/engine/preview.js +1 -1
  36. package/dist/engine/projection.d.ts +3 -3
  37. package/dist/engine/projection.js +8 -8
  38. package/dist/engine/tools.d.ts +8 -8
  39. package/dist/engine/tools.js +7 -7
  40. package/dist/errors.d.ts +1 -1
  41. package/dist/folder/compile.d.ts +1 -1
  42. package/dist/folder/compile.js +23 -14
  43. package/dist/folder/decompile.js +7 -7
  44. package/dist/folder/engine.d.ts +3 -3
  45. package/dist/folder/engine.js +3 -3
  46. package/dist/folder/fix.js +1 -1
  47. package/dist/folder/flow.d.ts +1 -1
  48. package/dist/folder/flow.js +1 -1
  49. package/dist/folder/index.d.ts +2 -2
  50. package/dist/folder/index.js +2 -2
  51. package/dist/folder/migrate-v3.js +2 -2
  52. package/dist/folder/migrate-v4.js +1 -1
  53. package/dist/folder/nested.js +9 -6
  54. package/dist/folder/plugins.d.ts +13 -1
  55. package/dist/folder/plugins.js +49 -12
  56. package/dist/folder/schemas.js +7 -7
  57. package/dist/folder/subagent-files.d.ts +9 -5
  58. package/dist/folder/subagent-files.js +96 -22
  59. package/dist/folder/v3.d.ts +2 -2
  60. package/dist/folder/v3.js +2 -2
  61. package/dist/harness-api/artifacts.d.ts +1 -1
  62. package/dist/harness-api/json-schema.js +6 -6
  63. package/dist/harness-api/messages.d.ts +1 -1
  64. package/dist/harness-api/messages.js +1 -1
  65. package/dist/harness-api/schema.d.ts +2 -2
  66. package/dist/harness-api/schema.js +8 -8
  67. package/dist/manifest-schemas.js +9 -6
  68. package/dist/plugins/index.js +1 -1
  69. package/dist/schemas/agent-manifest.schema.json +65 -2
  70. package/dist/schemas/harness-manifest.schema.json +55 -2
  71. package/dist/types/manifest.d.ts +32 -7
  72. package/dist/types/model.d.ts +3 -3
  73. package/dist/types/observe.d.ts +1 -1
  74. package/dist/types/part.d.ts +5 -3
  75. package/dist/types/transcript.d.ts +1 -1
  76. package/dist/utils/definition-files.d.ts +23 -0
  77. package/dist/utils/definition-files.js +50 -4
  78. package/dist/utils/memory.js +1 -1
  79. package/dist/utils/runtime-limits.d.ts +2 -2
  80. package/dist/utils/runtime-limits.js +3 -3
  81. package/package.json +1 -1
@@ -10,7 +10,7 @@ export { MEMORY_ACCESS, MEMORY_COMMANDS, MEMORY_DESCRIPTION_MAX, MEMORY_INSTRUCT
10
10
  export type { AgentHarnessSection, AgentManifest, AgentMemorySettings, HarnessMcpServer, HarnessSection, HarnessSkill, WorkflowHarnessSection, } from "./types/manifest.js";
11
11
  export type { WorkflowManifest } from "./types/workflow.js";
12
12
  export { PROTOCOL_VERSION, ERROR_CODES } from "./compatibility.js";
13
- export { SKILL_TOTAL_BYTES_DEFAULT, definitionFilesOf, isDefinitionFileHash, skillsOf, } from "./utils/definition-files.js";
13
+ export { SKILL_TOTAL_BYTES_DEFAULT, definitionFilesOf, isDefinitionFileHash, mountedPluginsOf, skillsOf, } from "./utils/definition-files.js";
14
14
  export { HARNESS_LIMIT_DEFAULTS, HarnessLimitsSchema, JS_STRING_MAX_LENGTH, RECORD_ENVELOPE_RESERVE_BYTES, RUNTIME_LIMIT_CEILINGS, RUNTIME_LIMIT_DEFAULTS, RuntimeLimitsSchema, S2_RECORD_MAX_BYTES, TIMER_MAX_MS, harnessLimitsOf, inlineBodyBytes, limitExceededMessage, runtimeLimitIssues, runtimeLimitsOf, type HarnessLimit, type HarnessLimits, type RuntimeLimit, type RuntimeLimits, } from "./utils/runtime-limits.js";
15
15
  export { DEFAULT_CONTENT_TYPE, MODEL_IMAGE_TYPES, contentTypeFor, essence, extensionFor, inputLabel, isModelImage, isOffice, isText, matchesSignature, modelInputOf, normalizeContentType, } from "./utils/media-types.js";
16
16
  export type { ErrorCode } from "./compatibility.js";
@@ -254,7 +254,7 @@ export type EnvironmentLimits = z.infer<typeof EnvironmentLimitsSchema>;
254
254
  * waits for its next start; one that adds a required secret waits for its value. Its manifest's
255
255
  * name, kind, harness and storage are fixed (`409 agent_fixed_field`); fork it to change them. One
256
256
  * kind change is not: on a Runtime whose pods are computers, a `PUT` that moves a `virtual` Agent to
257
- * a `pod` version makes it a computer in place (ADR-154), with its id, sessions, memory, vault and
257
+ * a `pod` version makes it a computer in place, with its id, sessions, memory, vault and
258
258
  * triggers. `?dryRun=true` answers the move's plan (`AgentMovePlan`) and changes nothing.
259
259
  */
260
260
  export declare const PutAgentRequestSchema: z.ZodObject<{
@@ -728,9 +728,9 @@ export declare const MemoryUpdatedPayloadSchema: z.ZodObject<{
728
728
  version: z.ZodNumber;
729
729
  }, z.core.$strict>>;
730
730
  }, z.core.$loose>;
731
- export declare const AGENT_EVENT_TYPES: readonly ["agent.created", "agent.attached", "agent.detached", "agent.deleted", "agent.running", "agent.suspended", "agent.relaunched", "agent.lost", "agent.reset", "agent.failed", "agent.forked", "agent.outdated", "agent.version_changed", "agent.start_failed", "agent.egress", "agent.run", "agent.trigger_paused", "agent.trigger_resumed", "agent.trigger_secret_rotated", "agent.trigger_created", "agent.trigger_updated", "agent.trigger_deleted", "agent.memory_updated"];
731
+ export declare const AGENT_EVENT_TYPES: readonly ["agent.created", "agent.attached", "agent.detached", "agent.deleted", "agent.running", "agent.resumed", "agent.suspended", "agent.relaunched", "agent.lost", "agent.reset", "agent.failed", "agent.forked", "agent.outdated", "agent.version_changed", "agent.start_failed", "agent.egress", "agent.run", "agent.trigger_paused", "agent.trigger_resumed", "agent.trigger_secret_rotated", "agent.trigger_created", "agent.trigger_updated", "agent.trigger_deleted", "agent.memory_updated"];
732
732
  export type AgentEventType = (typeof AGENT_EVENT_TYPES)[number];
733
- /** `agent.trigger_created` and `agent.trigger_updated`'s payload (D83, D88). */
733
+ /** `agent.trigger_created` and `agent.trigger_updated`'s payload. */
734
734
  export declare const TriggerChangePayloadSchema: z.ZodObject<{
735
735
  triggerId: z.ZodString;
736
736
  kind: z.ZodEnum<{
@@ -794,11 +794,23 @@ export declare const AGENT_EVENT_PAYLOADS: {
794
794
  readonly "agent.running": z.ZodObject<{
795
795
  hostEpoch: z.ZodNumber;
796
796
  }, z.core.$loose>;
797
+ /**
798
+ * Its pod became ready, so its awake time starts at this event's `time`: created, resumed,
799
+ * restarted, or (`drain`) moved to another worker, written with the drain's `agent.suspended`.
800
+ * The awake time ends at the Agent's next `agent.suspended`, `.failed`, `.lost`, `.reset`,
801
+ * `.deleted`, `.start_failed` or `.resumed`.
802
+ */
803
+ readonly "agent.resumed": z.ZodObject<{
804
+ cause: z.ZodEnum<{
805
+ drain: "drain";
806
+ use: "use";
807
+ }>;
808
+ }, z.core.$loose>;
797
809
  /**
798
810
  * Stopped (`POST .../stop`, or idle): the volume is kept; the next turn starts it again.
799
811
  * `drain` (Agent Substrate): its worker stopped, so it was suspended with everything it held
800
812
  * and resumed on another worker; nothing was lost. `diskBytes`: a computer suspended as idle
801
- * had its disk measured first (`/workspace` and `/skills`, ADR-154); absent when it could not be.
813
+ * had its disk measured first (`/workspace` and `/skills`); absent when it could not be.
802
814
  */
803
815
  readonly "agent.suspended": z.ZodObject<{
804
816
  reason: z.ZodEnum<{
@@ -849,7 +861,7 @@ export declare const AGENT_EVENT_PAYLOADS: {
849
861
  }, z.core.$loose>;
850
862
  /**
851
863
  * Runs version `to` of its manifest now: turns that start from here run it. `kindFrom` and
852
- * `kindTo` when the move changed its kind: a `virtual` Agent became a computer (ADR-154).
864
+ * `kindTo` when the move changed its kind: a `virtual` Agent became a computer.
853
865
  */
854
866
  readonly "agent.version_changed": z.ZodObject<{
855
867
  from: z.ZodNumber;
@@ -924,8 +936,8 @@ export declare const AGENT_EVENT_PAYLOADS: {
924
936
  triggerId: z.ZodString;
925
937
  }, z.core.$loose>;
926
938
  /**
927
- * An agent made a trigger with the `triggers` tool (D83), or a client put one over the API
928
- * (D88), or either replaced one with the same id (`agent.trigger_updated`): where it came from
939
+ * An agent made a trigger with the `triggers` tool, or a client put one over the API
940
+ *, or either replaced one with the same id (`agent.trigger_updated`): where it came from
929
941
  * (`origin`), the session whose agent made it (`sessionId`, for `agent`) or who put it
930
942
  * (`principal`, for `api`), the session it runs in (`session`), its timing, its title, its next
931
943
  * run, and on an update the fields that changed (`changed`).
@@ -974,7 +986,7 @@ export declare const AGENT_EVENT_PAYLOADS: {
974
986
  }, z.core.$loose>;
975
987
  /**
976
988
  * A trigger an agent made or a client put was deleted: by an agent of `sessionId`, or over the
977
- * API (`principal`); `origin` says which kind of trigger it was (D88).
989
+ * API (`principal`); `origin` says which kind of trigger it was.
978
990
  */
979
991
  readonly "agent.trigger_deleted": z.ZodObject<{
980
992
  triggerId: z.ZodString;
@@ -1025,6 +1037,7 @@ export declare const AgentEventSchema: z.ZodObject<{
1025
1037
  "agent.outdated": "agent.outdated";
1026
1038
  "agent.relaunched": "agent.relaunched";
1027
1039
  "agent.reset": "agent.reset";
1040
+ "agent.resumed": "agent.resumed";
1028
1041
  "agent.run": "agent.run";
1029
1042
  "agent.running": "agent.running";
1030
1043
  "agent.start_failed": "agent.start_failed";
@@ -1061,6 +1074,7 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
1061
1074
  "agent.outdated": "agent.outdated";
1062
1075
  "agent.relaunched": "agent.relaunched";
1063
1076
  "agent.reset": "agent.reset";
1077
+ "agent.resumed": "agent.resumed";
1064
1078
  "agent.run": "agent.run";
1065
1079
  "agent.running": "agent.running";
1066
1080
  "agent.start_failed": "agent.start_failed";
@@ -1076,10 +1090,10 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
1076
1090
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1077
1091
  }, z.core.$strict>>;
1078
1092
  }, z.core.$strict>;
1079
- /** The schema id of the Tenant's events (its stream in the record, ADR-159). */
1093
+ /** The schema id of the Tenant's events (its stream in the record). */
1080
1094
  export declare const TENANT_EVENT_SCHEMA = "nylorun.tenant-event/1";
1081
1095
  /**
1082
- * The Tenant's stream (ADR-159, Host feature `tenant-audit`): who changed who may reach the Tenant
1096
+ * The Tenant's stream (Host feature `tenant-audit`): who changed who may reach the Tenant
1083
1097
  * and what its sessions may do, and each use of a vault credential, read with
1084
1098
  * `GET /v1/tenant/audit`. Every type is the Runtime's record (layer `runtime`): the Runtime saw it
1085
1099
  * happen, in the change's own transaction where it could; no harness writes one. No payload carries
@@ -1263,7 +1277,7 @@ export declare const StudioSignInRequestSchema: z.ZodObject<{
1263
1277
  }, z.core.$strict>;
1264
1278
  export type StudioSignInRequest = z.infer<typeof StudioSignInRequestSchema>;
1265
1279
  /**
1266
- * A model role's name (Host feature `model-roles`, ADR-154): a lowercase letter, then up to 31
1280
+ * A model role's name (Host feature `model-roles`): a lowercase letter, then up to 31
1267
1281
  * lowercase letters, digits and `-`, such as `builder`.
1268
1282
  */
1269
1283
  export declare const AGENT_ROLE_PATTERN: RegExp;
@@ -1584,7 +1598,7 @@ export declare function agentModelChoice(value: string): {
1584
1598
  model: string;
1585
1599
  } | undefined;
1586
1600
  /**
1587
- * `harness.roles` (Host feature `model-roles`, ADR-154): a model for each role a session may be
1601
+ * `harness.roles` (Host feature `model-roles`): a model for each role a session may be
1588
1602
  * opened with (`PUT /v1/sessions/{id}` `role`, an A2A message's `metadata.role`), checked as
1589
1603
  * `harness.model` is. A session opened with no role runs on `harness.model`.
1590
1604
  */
@@ -1624,7 +1638,7 @@ export declare function triggerKindOf(trigger: Trigger): Exclude<TriggerKind, "w
1624
1638
  */
1625
1639
  export declare const TRIGGER_STATUSES: readonly ["active", "paused", "completed"];
1626
1640
  /**
1627
- * Where a trigger's definition comes from (D83, D88): `manifest` (the version's `runtime.triggers`),
1641
+ * Where a trigger's definition comes from: `manifest` (the version's `runtime.triggers`),
1628
1642
  * `agent` (made by an agent of the Agent's sessions with the `triggers` tool, kept by the Agent),
1629
1643
  * `api` (put on the Agent by a client, `PUT /v1/agents/{id}/triggers/{triggerId}`, kept by the
1630
1644
  * Agent with the principal that put it) or `wake` (a session's booked wake, never listed).
@@ -1707,7 +1721,7 @@ export declare const TriggerListSchema: z.ZodObject<{
1707
1721
  /** The longest title an agent or a client gives a trigger it makes. */
1708
1722
  export declare const TRIGGER_TITLE_MAX = 80;
1709
1723
  /**
1710
- * The body of `PUT /v1/agents/{agentId}/triggers/{triggerId}` (D88): a `Trigger`, exactly as a
1724
+ * The body of `PUT /v1/agents/{agentId}/triggers/{triggerId}`: a `Trigger`, exactly as a
1711
1725
  * definition's `runtime.triggers` entry holds it, and an optional `title`. It creates the Agent's
1712
1726
  * `api` trigger with that id, or replaces it; the same body again changes nothing.
1713
1727
  */
@@ -1723,12 +1737,12 @@ export declare const TriggerPutSchema: z.ZodObject<{
1723
1737
  title: z.ZodOptional<z.ZodString>;
1724
1738
  }, z.core.$strict>;
1725
1739
  export type TriggerPut = z.infer<typeof TriggerPutSchema>;
1726
- /** `in` of the `triggers` tool (D83): a delay in minutes, hours or days, such as `30m`, `2h`, `1d`. */
1740
+ /** `in` of the `triggers` tool: a delay in minutes, hours or days, such as `30m`, `2h`, `1d`. */
1727
1741
  export declare const TRIGGER_DELAY_PATTERN: RegExp;
1728
1742
  /** Where an agent-made trigger runs: the calling session (`this`), or a session of its own (`own`). */
1729
1743
  export declare const TRIGGER_TOOL_SESSIONS: readonly ["this", "own"];
1730
1744
  /**
1731
- * A call of the `triggers` tool (D83), which the Runtime serves for an agent whose version
1745
+ * A call of the `triggers` tool, which the Runtime serves for an agent whose version
1732
1746
  * declares `engine.triggers`: `list` the triggers the calling session made; `create` one (or
1733
1747
  * replace the session's own with the same `id`) with exactly one of `schedule` (with `timezone`),
1734
1748
  * `at` or `in`, the `session` it runs in and its `prompt`; `delete` one by `id`.
@@ -1834,7 +1848,7 @@ export declare const TriggerRunSchema: z.ZodObject<{
1834
1848
  }, z.core.$strict>;
1835
1849
  export type TriggerRun = z.infer<typeof TriggerRunSchema>;
1836
1850
  /**
1837
- * One run on the Tenant's runs stream (D83, `GET /v1/runs/stream`): a run of any Agent's
1851
+ * One run on the Tenant's runs stream (`GET /v1/runs/stream`): a run of any Agent's
1838
1852
  * triggers, as `TriggerRunSchema` has it, with its Agent and its trigger's origin and title. A
1839
1853
  * run may arrive twice (after a crash between append and mark); a reader drops a `runId` it has
1840
1854
  * seen.
@@ -2344,6 +2358,10 @@ export declare const HarnessManifestFileSchema: z.ZodObject<{
2344
2358
  always: "always";
2345
2359
  never: "never";
2346
2360
  }>>;
2361
+ plugin: z.ZodOptional<z.ZodObject<{
2362
+ name: z.ZodString;
2363
+ version: z.ZodOptional<z.ZodString>;
2364
+ }, z.core.$strict>>;
2347
2365
  fn: z.ZodOptional<z.ZodUnknown & z.ZodType<undefined, unknown, z.core.$ZodTypeInternals<undefined, unknown>>>;
2348
2366
  command: z.ZodOptional<z.ZodUnknown & z.ZodType<undefined, unknown, z.core.$ZodTypeInternals<undefined, unknown>>>;
2349
2367
  }, z.core.$strict>>>;
@@ -2355,6 +2373,7 @@ export declare const HarnessManifestFileSchema: z.ZodObject<{
2355
2373
  name: z.ZodString;
2356
2374
  version: z.ZodOptional<z.ZodString>;
2357
2375
  }, z.core.$strict>>;
2376
+ disableModelInvocation: z.ZodOptional<z.ZodLiteral<true>>;
2358
2377
  secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
2359
2378
  }, z.core.$strict>>]>>;
2360
2379
  mcpServers: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -2625,6 +2644,10 @@ export declare const AgentManifestFileSchema: z.ZodObject<{
2625
2644
  always: "always";
2626
2645
  never: "never";
2627
2646
  }>>;
2647
+ plugin: z.ZodOptional<z.ZodObject<{
2648
+ name: z.ZodString;
2649
+ version: z.ZodOptional<z.ZodString>;
2650
+ }, z.core.$strict>>;
2628
2651
  fn: z.ZodOptional<z.ZodUnknown & z.ZodType<undefined, unknown, z.core.$ZodTypeInternals<undefined, unknown>>>;
2629
2652
  command: z.ZodOptional<z.ZodUnknown & z.ZodType<undefined, unknown, z.core.$ZodTypeInternals<undefined, unknown>>>;
2630
2653
  }, z.core.$strict>>>;
@@ -2636,6 +2659,7 @@ export declare const AgentManifestFileSchema: z.ZodObject<{
2636
2659
  name: z.ZodString;
2637
2660
  version: z.ZodOptional<z.ZodString>;
2638
2661
  }, z.core.$strict>>;
2662
+ disableModelInvocation: z.ZodOptional<z.ZodLiteral<true>>;
2639
2663
  secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
2640
2664
  }, z.core.$strict>>]>>;
2641
2665
  mcpServers: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -2980,7 +3004,7 @@ export declare const AgentManifestSavedBySchema: z.ZodObject<{
2980
3004
  }, z.core.$strict>;
2981
3005
  /** One version of an agent manifest. */
2982
3006
  /**
2983
- * The edit that fixes a diagnostic, when only one edit can (track T7, `nylorun check --fix`):
3007
+ * The edit that fixes a diagnostic, when only one edit can (`nylorun check --fix`):
2984
3008
  * `rename_key` renames the key at `line` and `column` of `file` from `from` to `to`, the one known
2985
3009
  * key it is close to; `crlf` makes `file`'s CRLF line ends LF; `move_skill_secrets` moves a
2986
3010
  * `SKILL.md`'s `secrets` to `AGENT.md`'s `skills` block, as `skills: { <skill>: { secrets } }`.
@@ -3003,7 +3027,7 @@ export declare const AgentFolderFixSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
3003
3027
  }, z.core.$strict>], "kind">;
3004
3028
  export type AgentFolderFix = z.infer<typeof AgentFolderFixSchema>;
3005
3029
  /**
3006
- * One problem or remark about an agent folder (track T6): an `error` keeps it from compiling.
3030
+ * One problem or remark about an agent folder: an `error` keeps it from compiling.
3007
3031
  * `file` is the path in the folder, with the line and column when known; `pointer` the field in
3008
3032
  * the manifest; `fix` the edit that fixes it, when only one edit can.
3009
3033
  */
@@ -3038,7 +3062,7 @@ export declare const AgentFolderDiagnosticSchema: z.ZodObject<{
3038
3062
  }, z.core.$strict>], "kind">>;
3039
3063
  }, z.core.$strict>;
3040
3064
  export type AgentFolderDiagnostic = z.infer<typeof AgentFolderDiagnosticSchema>;
3041
- /** The folder a version was compiled from (track T6): the compiler that built it, and its size. */
3065
+ /** The folder a version was compiled from: the compiler that built it, and its size. */
3042
3066
  export declare const AgentManifestSourceSummarySchema: z.ZodObject<{
3043
3067
  compiler: z.ZodString;
3044
3068
  files: z.ZodNumber;
@@ -3176,7 +3200,7 @@ export type AgentFolderEntry = z.infer<typeof AgentFolderEntrySchema>;
3176
3200
  export declare const AGENT_FOLDER_MEDIA_TYPE = "application/vnd.nylorun.folder+json";
3177
3201
  /**
3178
3202
  * `PUT /v1/agent-manifests/{name}` with `Content-Type: application/vnd.nylorun.folder+json`
3179
- * (track T6): an agent folder by hash, each file uploaded first with `PUT /v1/files/sha256:<hex>`.
3203
+ *: an agent folder by hash, each file uploaded first with `PUT /v1/files/sha256:<hex>`.
3180
3204
  */
3181
3205
  export declare const PutAgentFolderRequestSchema: z.ZodObject<{
3182
3206
  requestId: z.ZodOptional<z.ZodString>;
@@ -3205,7 +3229,7 @@ export declare const AgentManifestSourceSchema: z.ZodObject<{
3205
3229
  }, z.core.$strict>;
3206
3230
  export type AgentManifestSource = z.infer<typeof AgentManifestSourceSchema>;
3207
3231
  /**
3208
- * `GET /v1/agent-manifests/{name}/source/diff?from=&to=` (track T7): what changed between two
3232
+ * `GET /v1/agent-manifests/{name}/source/diff?from=&to=`: what changed between two
3209
3233
  * versions' sources, by path and SHA-256. Each list is sorted by path; `unchanged` counts the
3210
3234
  * files both hold with the same bytes.
3211
3235
  */
@@ -4175,7 +4199,7 @@ export declare const ModelCallHeaderSourceSchema: z.ZodDiscriminatedUnion<[z.Zod
4175
4199
  }, z.core.$strict>], "from">;
4176
4200
  export type ModelCallHeaderSource = z.infer<typeof ModelCallHeaderSourceSchema>;
4177
4201
  /**
4178
- * What the Runtime cannot learn from a custom OpenAI-compatible endpoint (Model Calls §7):
4202
+ * What the Runtime cannot learn from a custom OpenAI-compatible endpoint:
4179
4203
  * its context window and output limit (default `CUSTOM_MODEL_SETTING_DEFAULTS`), whether it
4180
4204
  * reasons, what it reads (`inputs`; default text only) and pi-ai `compat` settings
4181
4205
  * (`thinkingFormat`, `thinkingTokenBudgetField`, `chatTemplateKwargs`, …). `headers` are sent on
@@ -4212,7 +4236,7 @@ export type CustomModelSettings = z.infer<typeof CustomModelSettingsSchema>;
4212
4236
  * endpoint only) the Runtime's workload token, read from `NYLORUN_WORKLOAD_TOKEN_FILE` on every
4213
4237
  * call and never stored (#496), or (`google-vertex` only, Host feature `model-host-identity`) the
4214
4238
  * Host's own identity: Google's Application Default Credentials, found at each call and never
4215
- * stored, on a Host whose operator lends it with `NYLORUN_MODEL_HOST_IDENTITY` (ADR-71).
4239
+ * stored, on a Host whose operator lends it with `NYLORUN_MODEL_HOST_IDENTITY`.
4216
4240
  */
4217
4241
  export declare const HOST_MODEL_AUTH_TYPES: readonly ["api_key", "oauth", "workload", "host_identity"];
4218
4242
  export type HostModelAuthType = (typeof HOST_MODEL_AUTH_TYPES)[number];
@@ -4482,7 +4506,7 @@ export type CredentialCoverage = z.infer<typeof CredentialCoverageSchema>;
4482
4506
  /**
4483
4507
  * What a message to a busy session does (protocol 17): `queue` waits for the running turn to
4484
4508
  * end and starts the next one; `reject` is refused with `409 session_busy`. A protocol 17 client's
4485
- * default is `queue`, a protocol 16 client's `reject`. `steer` (Host feature `steer`, D85) joins
4509
+ * default is `queue`, a protocol 16 client's `reject`. `steer` (Host feature `steer`) joins
4486
4510
  * the running turn before its next step, when our engine runs it; a workflow session queues it,
4487
4511
  * and one the turn doesn't take starts the next turn like a queued message.
4488
4512
  */
@@ -4502,12 +4526,12 @@ export type MessageDelivery = z.infer<typeof MessageDeliverySchema>;
4502
4526
  * only narrows.
4503
4527
  */
4504
4528
  export declare const RemoveToolsSchema: z.ZodArray<z.ZodString>;
4505
- /** The most context items one message carries (ADR-157). */
4529
+ /** The most context items one message carries. */
4506
4530
  export declare const MESSAGE_CONTEXT_MAX_ITEMS = 16;
4507
- /** The most bytes a message's context items take, as JSON (ADR-157). */
4531
+ /** The most bytes a message's context items take, as JSON. */
4508
4532
  export declare const MESSAGE_CONTEXT_MAX_BYTES: number;
4509
4533
  /**
4510
- * A message's `context` (Host feature `message-context`, ADR-157): facts for its own turn only,
4534
+ * A message's `context` (Host feature `message-context`): facts for its own turn only,
4511
4535
  * such as the time or who the agent is today. Our engine puts them in the `<runtime-context>` block
4512
4536
  * of every model call of that turn, after the history; later turns leave them out. The
4513
4537
  * `command.message` event keeps them.
@@ -4550,6 +4574,7 @@ export declare const MessageEventBodySchema: z.ZodUnion<readonly [z.ZodObject<{
4550
4574
  type: z.ZodOptional<z.ZodString>;
4551
4575
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
4552
4576
  }, z.core.$strict>>>;
4577
+ skill: z.ZodOptional<z.ZodString>;
4553
4578
  content: z.ZodString;
4554
4579
  }, z.core.$strict>, z.ZodObject<{
4555
4580
  requestId: z.ZodString;
@@ -4566,6 +4591,7 @@ export declare const MessageEventBodySchema: z.ZodUnion<readonly [z.ZodObject<{
4566
4591
  type: z.ZodOptional<z.ZodString>;
4567
4592
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
4568
4593
  }, z.core.$strict>>>;
4594
+ skill: z.ZodOptional<z.ZodString>;
4569
4595
  data: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
4570
4596
  }, z.core.$strict>, z.ZodObject<{
4571
4597
  requestId: z.ZodString;
@@ -4582,6 +4608,7 @@ export declare const MessageEventBodySchema: z.ZodUnion<readonly [z.ZodObject<{
4582
4608
  type: z.ZodOptional<z.ZodString>;
4583
4609
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
4584
4610
  }, z.core.$strict>>>;
4611
+ skill: z.ZodOptional<z.ZodString>;
4585
4612
  parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4586
4613
  type: z.ZodLiteral<"text">;
4587
4614
  text: z.ZodString;
@@ -4612,6 +4639,7 @@ export declare const SessionCommandSchema: z.ZodUnion<readonly [z.ZodUnion<reado
4612
4639
  type: z.ZodOptional<z.ZodString>;
4613
4640
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
4614
4641
  }, z.core.$strict>>>;
4642
+ skill: z.ZodOptional<z.ZodString>;
4615
4643
  content: z.ZodString;
4616
4644
  }, z.core.$strict>, z.ZodObject<{
4617
4645
  requestId: z.ZodString;
@@ -4628,6 +4656,7 @@ export declare const SessionCommandSchema: z.ZodUnion<readonly [z.ZodUnion<reado
4628
4656
  type: z.ZodOptional<z.ZodString>;
4629
4657
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
4630
4658
  }, z.core.$strict>>>;
4659
+ skill: z.ZodOptional<z.ZodString>;
4631
4660
  data: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
4632
4661
  }, z.core.$strict>, z.ZodObject<{
4633
4662
  requestId: z.ZodString;
@@ -4644,6 +4673,7 @@ export declare const SessionCommandSchema: z.ZodUnion<readonly [z.ZodUnion<reado
4644
4673
  type: z.ZodOptional<z.ZodString>;
4645
4674
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
4646
4675
  }, z.core.$strict>>>;
4676
+ skill: z.ZodOptional<z.ZodString>;
4647
4677
  parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4648
4678
  type: z.ZodLiteral<"text">;
4649
4679
  text: z.ZodString;
@@ -4685,6 +4715,7 @@ export declare const SessionEventBodySchema: z.ZodUnion<readonly [z.ZodUnion<rea
4685
4715
  type: z.ZodOptional<z.ZodString>;
4686
4716
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
4687
4717
  }, z.core.$strict>>>;
4718
+ skill: z.ZodOptional<z.ZodString>;
4688
4719
  content: z.ZodString;
4689
4720
  }, z.core.$strict>, z.ZodObject<{
4690
4721
  requestId: z.ZodString;
@@ -4701,6 +4732,7 @@ export declare const SessionEventBodySchema: z.ZodUnion<readonly [z.ZodUnion<rea
4701
4732
  type: z.ZodOptional<z.ZodString>;
4702
4733
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
4703
4734
  }, z.core.$strict>>>;
4735
+ skill: z.ZodOptional<z.ZodString>;
4704
4736
  data: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
4705
4737
  }, z.core.$strict>, z.ZodObject<{
4706
4738
  requestId: z.ZodString;
@@ -4717,6 +4749,7 @@ export declare const SessionEventBodySchema: z.ZodUnion<readonly [z.ZodUnion<rea
4717
4749
  type: z.ZodOptional<z.ZodString>;
4718
4750
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
4719
4751
  }, z.core.$strict>>>;
4752
+ skill: z.ZodOptional<z.ZodString>;
4720
4753
  parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4721
4754
  type: z.ZodLiteral<"text">;
4722
4755
  text: z.ZodString;
@@ -4746,7 +4779,7 @@ export declare const SessionEventBodySchema: z.ZodUnion<readonly [z.ZodUnion<rea
4746
4779
  export type SessionCommand = z.infer<typeof SessionCommandSchema>;
4747
4780
  export type SessionEventBody = SessionCommand;
4748
4781
  export type MessageEventBody = z.infer<typeof MessageEventBodySchema>;
4749
- /** The envelope every session event carries (`nylorun.event/2`, Durable Streams §9.5). */
4782
+ /** The envelope every session event carries (`nylorun.event/2`). */
4750
4783
  export declare const EVENT_SCHEMA = "nylorun.event/2";
4751
4784
  /**
4752
4785
  * Who wrote an event: the writer says so, not the event's type. `client` is a
@@ -4775,7 +4808,7 @@ export declare const EventSourceKindSchema: z.ZodEnum<{
4775
4808
  }>;
4776
4809
  export type EventSourceKind = z.infer<typeof EventSourceKindSchema>;
4777
4810
  /**
4778
- * Whose account an event is: the agent's or the Runtime's (ADR-159). A session's events have one each
4811
+ * Whose account an event is: the agent's or the Runtime's. A session's events have one each
4779
4812
  * (`EVENT_CATALOG`); every event on an Agent's stream (`AGENT_EVENT_TYPES`) is the Runtime's.
4780
4813
  */
4781
4814
  export declare const EVENT_LAYERS: readonly ["agent", "runtime"];
@@ -4982,7 +5015,7 @@ export type AcceptedResponse = z.infer<typeof AcceptedResponseSchema>;
4982
5015
  /**
4983
5016
  * A message the session queued because a turn runs or waits (protocol 17): it starts the next
4984
5017
  * turn when this one ends. `position` counts from 1, the first to go. `delivery` is what applied
4985
- * (D85): `steer` when the running turn takes it before a step, `queue` otherwise; a Host without
5018
+ *: `steer` when the running turn takes it before a step, `queue` otherwise; a Host without
4986
5019
  * the feature `steer` leaves it out.
4987
5020
  */
4988
5021
  export declare const QueuedResponseSchema: z.ZodObject<{
@@ -5061,6 +5094,7 @@ export declare const RejectedResponseSchema: z.ZodObject<{
5061
5094
  trigger_expired: "trigger_expired";
5062
5095
  trigger_paused: "trigger_paused";
5063
5096
  unknown_role: "unknown_role";
5097
+ unknown_skill: "unknown_skill";
5064
5098
  unsupported_media_type: "unsupported_media_type";
5065
5099
  }>;
5066
5100
  message: z.ZodString;
@@ -5097,7 +5131,7 @@ export declare const MeteredUsageSchema: z.ZodObject<{
5097
5131
  costUsd: z.ZodOptional<z.ZodNumber>;
5098
5132
  }, z.core.$loose>;
5099
5133
  /**
5100
- * One retry of a model call (Model Calls §6): the attempt it started, the first counted as 1,
5134
+ * One retry of a model call: the attempt it started, the first counted as 1,
5101
5135
  * the delay waited before it, and the error that ended the attempt before it, as the provider or
5102
5136
  * its SDK worded it, cut to 300 characters.
5103
5137
  */
@@ -5159,7 +5193,7 @@ export declare function isEmptyAssistantMessage(payload: {
5159
5193
  readonly toolCalls?: readonly unknown[];
5160
5194
  }): boolean;
5161
5195
  /**
5162
- * `model.failed`: a model call that failed in a known way (Model Calls §6.4). The turn
5196
+ * `model.failed`: a model call that failed in a known way. The turn
5163
5197
  * then fails with `model.<code>`, or recovers.
5164
5198
  */
5165
5199
  export declare const ModelFailedPayloadSchema: z.ZodObject<{
@@ -5195,7 +5229,7 @@ export declare const ModelFailedPayloadSchema: z.ZodObject<{
5195
5229
  }, z.core.$loose>;
5196
5230
  /**
5197
5231
  * `context.compacted`: the harness summarized older history to fit the model's window
5198
- * (Model Calls §8), and said so with the transcript edit that replaced it (`kind: "compaction"`,
5232
+ *, and said so with the transcript edit that replaced it (`kind: "compaction"`,
5199
5233
  * protocol 15). Token counts are the harness's estimates; `invocationId` and the model facts are
5200
5234
  * the last summary call's. Written once per compaction, when the segment's edit is recorded.
5201
5235
  */
@@ -5384,7 +5418,7 @@ export declare const TurnCancelledPayloadSchema: z.ZodObject<{
5384
5418
  /**
5385
5419
  * `message.queued` (protocol 17): a message arrived while the session's turn ran or waited, and
5386
5420
  * waits in its queue. `position` counts from 1; the message's `command.message` is written when
5387
- * a turn takes it. `delivery` (D85) says whether the running turn may take it before a step.
5421
+ * a turn takes it. `delivery` says whether the running turn may take it before a step.
5388
5422
  */
5389
5423
  export declare const MessageQueuedPayloadSchema: z.ZodObject<{
5390
5424
  queuedMessageId: z.ZodString;
@@ -5451,7 +5485,7 @@ export declare const PlanUpdatedPayloadSchema: z.ZodObject<{
5451
5485
  }, z.core.$loose>;
5452
5486
  /**
5453
5487
  * `queue.taken` (protocol 17): the turn that started with the queued messages, in order. With
5454
- * `step` (D85), the running turn took steered messages before that step instead.
5488
+ * `step`, the running turn took steered messages before that step instead.
5455
5489
  */
5456
5490
  export declare const QueueTakenPayloadSchema: z.ZodObject<{
5457
5491
  turnId: z.ZodString;
@@ -5749,6 +5783,7 @@ export declare const CommandMessagePayloadSchema: z.ZodObject<{
5749
5783
  type: z.ZodOptional<z.ZodString>;
5750
5784
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
5751
5785
  }, z.core.$strict>>>;
5786
+ skill: z.ZodOptional<z.ZodString>;
5752
5787
  delivery: z.ZodOptional<z.ZodEnum<{
5753
5788
  queue: "queue";
5754
5789
  reject: "reject";
@@ -5896,7 +5931,7 @@ export declare const ArtifactSourceSchema: z.ZodEnum<{
5896
5931
  }>;
5897
5932
  export type ArtifactSource = z.infer<typeof ArtifactSourceSchema>;
5898
5933
  /**
5899
- * Who an artifact is for (ADR-139): `model` for a file our engine stored only so its model could
5934
+ * Who an artifact is for: `model` for a file our engine stored only so its model could
5900
5935
  * see it (a sandbox image or PDF it read). Such an artifact stays in the session, readable by id,
5901
5936
  * but is no output: no A2A task file, no AG-UI history entry, not in a session's artifact list.
5902
5937
  * Absent for everything else.
@@ -5984,7 +6019,7 @@ export declare const ArtifactExportFailedPayloadSchema: z.ZodObject<{
5984
6019
  }, z.core.$loose>;
5985
6020
  /**
5986
6021
  * `engine.diagnostic`: our engine met something about the session's agent that the agent's
5987
- * declarations decide, and says so instead of choosing for it (ADR-100), such as `mcp_tools_inline`:
6022
+ * declarations decide, and says so instead of choosing for it, such as `mcp_tools_inline`:
5988
6023
  * an agent that does not declare `engine.toolSearch` has MCP tool schemas past the share of the
5989
6024
  * model's context window at which they would be deferred, and keeps them all in its tool list.
5990
6025
  */
@@ -6160,7 +6195,7 @@ export declare const McpDiscoveredPayloadSchema: z.ZodObject<{
6160
6195
  rejoined: z.ZodOptional<z.ZodLiteral<true>>;
6161
6196
  }, z.core.$loose>;
6162
6197
  /**
6163
- * The event catalog (Durable Streams §9.5): every session event type, its payload schema, its
6198
+ * The event catalog: every session event type, its payload schema, its
6164
6199
  * payload schema version and who writes it. A type not listed here cannot be written. A type
6165
6200
  * with `visibility: "internal"` is recorded and folded by the Runtime but never served to
6166
6201
  * clients (SSE, history, AG-UI and A2A skip it).
@@ -6191,6 +6226,7 @@ export declare const EVENT_CATALOG: {
6191
6226
  type: z.ZodOptional<z.ZodString>;
6192
6227
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
6193
6228
  }, z.core.$strict>>>;
6229
+ skill: z.ZodOptional<z.ZodString>;
6194
6230
  delivery: z.ZodOptional<z.ZodEnum<{
6195
6231
  queue: "queue";
6196
6232
  reject: "reject";
@@ -6955,7 +6991,7 @@ export declare const EVENT_CATALOG: {
6955
6991
  };
6956
6992
  export type EventType = keyof typeof EVENT_CATALOG;
6957
6993
  export declare const EVENT_TYPES: readonly EventType[];
6958
- /** An event type's layer (ADR-159); `undefined` for a type this version does not know. */
6994
+ /** An event type's layer; `undefined` for a type this version does not know. */
6959
6995
  export declare function eventLayer(type: string): EventLayer | undefined;
6960
6996
  /** Drops the index signatures `passthrough` adds, so plain interfaces are assignable. */
6961
6997
  type Closed<T> = T extends readonly (infer U)[] ? Closed<U>[] : T extends object ? {
@@ -7107,7 +7143,7 @@ export declare const HostTenantSchema: z.ZodObject<{
7107
7143
  }, z.core.$strict>>;
7108
7144
  }, z.core.$strict>;
7109
7145
  export type HostTenant = z.infer<typeof HostTenantSchema>;
7110
- /** A stream relay's state (Durable Streams §7). */
7146
+ /** A stream relay's state. */
7111
7147
  export declare const StreamRelayStatusSchema: z.ZodObject<{
7112
7148
  active: z.ZodBoolean;
7113
7149
  pendingTxs: z.ZodNumber;
@@ -8339,7 +8375,7 @@ export declare const ToolInputConditionSchema: z.ZodObject<{
8339
8375
  export type ToolInputCondition = z.infer<typeof ToolInputConditionSchema>;
8340
8376
  /**
8341
8377
  * One rule of the Tenant's tool policy, applied at the Tool Gate to every MCP and HTTP tool call
8342
- * of every harness, and to the operations the Runtime serves itself (`kind: "runtime"`, D83). A
8378
+ * of every harness, and to the operations the Runtime serves itself (`kind: "runtime"`). A
8343
8379
  * rule matches a call when every selector it sets matches: `tool` (the tool's identity: an MCP
8344
8380
  * tool's own name on its server, an HTTP tool's declared name, or a runtime operation:
8345
8381
  * `triggers`, `memory`, `schedule_wake`; never the name a harness gave the model; `*` for any run
@@ -8504,6 +8540,7 @@ export declare const AgUiRunErrorCodeSchema: z.ZodEnum<{
8504
8540
  trigger_expired: "trigger_expired";
8505
8541
  trigger_paused: "trigger_paused";
8506
8542
  unknown_role: "unknown_role";
8543
+ unknown_skill: "unknown_skill";
8507
8544
  unsupported_media_type: "unsupported_media_type";
8508
8545
  }>;
8509
8546
  export type AgUiRunErrorCode = z.infer<typeof AgUiRunErrorCodeSchema>;
@@ -8547,7 +8584,7 @@ export declare const StudioThemeSchema: z.ZodObject<{
8547
8584
  foreground: z.ZodOptional<z.ZodString>;
8548
8585
  }, z.core.$strip>;
8549
8586
  export type StudioTheme = z.infer<typeof StudioThemeSchema>;
8550
- /** Every message between an embedder and Studio (Studio design §8.8). */
8587
+ /** Every message between an embedder and Studio. */
8551
8588
  export declare const StudioEmbedMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
8552
8589
  type: z.ZodLiteral<"nylorun.studio">;
8553
8590
  protocol: z.ZodNumber;
@@ -9507,6 +9544,51 @@ export declare const ModelCallExportPageSchema: z.ZodObject<{
9507
9544
  asOf: z.ZodString;
9508
9545
  }, z.core.$strict>;
9509
9546
  export type ModelCallExportPage = z.infer<typeof ModelCallExportPageSchema>;
9547
+ /**
9548
+ * A page of every Agent's events, in safe transaction order (`GET /v1/tenant/agent-events`):
9549
+ * `next` reads on, and `caughtUp` says the page reached the newest committed event.
9550
+ */
9551
+ export declare const AgentEventExportPageSchema: z.ZodObject<{
9552
+ events: z.ZodArray<z.ZodObject<{
9553
+ schema: z.ZodLiteral<"nylorun.agent-event/1">;
9554
+ eventId: z.ZodString;
9555
+ tenantId: z.ZodString;
9556
+ agentId: z.ZodString;
9557
+ seq: z.ZodNumber;
9558
+ time: z.ZodString;
9559
+ type: z.ZodEnum<{
9560
+ "agent.attached": "agent.attached";
9561
+ "agent.created": "agent.created";
9562
+ "agent.deleted": "agent.deleted";
9563
+ "agent.detached": "agent.detached";
9564
+ "agent.egress": "agent.egress";
9565
+ "agent.failed": "agent.failed";
9566
+ "agent.forked": "agent.forked";
9567
+ "agent.lost": "agent.lost";
9568
+ "agent.memory_updated": "agent.memory_updated";
9569
+ "agent.outdated": "agent.outdated";
9570
+ "agent.relaunched": "agent.relaunched";
9571
+ "agent.reset": "agent.reset";
9572
+ "agent.resumed": "agent.resumed";
9573
+ "agent.run": "agent.run";
9574
+ "agent.running": "agent.running";
9575
+ "agent.start_failed": "agent.start_failed";
9576
+ "agent.suspended": "agent.suspended";
9577
+ "agent.trigger_created": "agent.trigger_created";
9578
+ "agent.trigger_deleted": "agent.trigger_deleted";
9579
+ "agent.trigger_paused": "agent.trigger_paused";
9580
+ "agent.trigger_resumed": "agent.trigger_resumed";
9581
+ "agent.trigger_secret_rotated": "agent.trigger_secret_rotated";
9582
+ "agent.trigger_updated": "agent.trigger_updated";
9583
+ "agent.version_changed": "agent.version_changed";
9584
+ }>;
9585
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9586
+ }, z.core.$strict>>;
9587
+ next: z.ZodNullable<z.ZodString>;
9588
+ caughtUp: z.ZodBoolean;
9589
+ asOf: z.ZodString;
9590
+ }, z.core.$strict>;
9591
+ export type AgentEventExportPage = z.infer<typeof AgentEventExportPageSchema>;
9510
9592
  /**
9511
9593
  * A turn's status in the turn index (Host feature `turns`): `running` from its first
9512
9594
  * `command.message` and again after an answer, `paused` while it waits for a person, then one of