@nylorun/core 0.24.0-beta → 0.26.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -1
- package/dist/compatibility.d.ts +51 -37
- package/dist/compatibility.js +51 -36
- package/dist/contracts.d.ts +262 -93
- package/dist/contracts.js +262 -141
- package/dist/definition/approval.d.ts +1 -1
- package/dist/definition/bound.d.ts +2 -0
- package/dist/definition/builder.d.ts +2 -2
- package/dist/definition/builder.js +1 -1
- package/dist/definition/code-tools.d.ts +1 -1
- package/dist/definition/declaration.js +3 -0
- package/dist/definition/delegate.d.ts +1 -1
- package/dist/definition/delegate.js +1 -1
- package/dist/definition/from.d.ts +2 -2
- package/dist/definition/from.js +1 -1
- package/dist/definition/http-tool.d.ts +3 -3
- package/dist/definition/mcp.d.ts +4 -4
- package/dist/definition/mcp.js +3 -3
- package/dist/definition/sections.d.ts +5 -4
- package/dist/definition/sections.js +30 -7
- package/dist/definition/variant.d.ts +1 -1
- package/dist/definition/variant.js +4 -4
- package/dist/harness-api/entries.d.ts +1 -1
- package/dist/harness-api/entries.js +1 -1
- package/dist/harness-api/gates.d.ts +1 -1
- package/dist/harness-api/gates.js +1 -1
- package/dist/harness-api/json-schema.d.ts +1 -1
- package/dist/harness-api/json-schema.js +1 -1
- package/dist/harness-api/mcp.js +1 -1
- package/dist/harness-api/messages.d.ts +6 -6
- package/dist/harness-api/schema.d.ts +7 -7
- package/dist/harness-api/schema.js +16 -16
- package/dist/harness-api/transcript.d.ts +1 -1
- package/dist/harness-api/transport.d.ts +1 -1
- package/dist/harness-api/transport.js +1 -1
- package/dist/manifest-schemas.js +2 -1
- package/dist/schemas/agent-manifest.schema.json +3 -3
- package/dist/schemas/harness-manifest.schema.json +1 -1
- package/dist/schemas/runtime-manifest.schema.json +2 -2
- package/dist/types/manifest.d.ts +21 -17
- package/dist/types/model.d.ts +1 -1
- package/dist/types/observe.d.ts +1 -1
- package/dist/types/part.d.ts +5 -0
- package/dist/types/tool.d.ts +4 -4
- package/dist/utils/definition-files.d.ts +3 -2
- package/dist/utils/definition-files.js +4 -3
- package/dist/utils/file-systems.d.ts +1 -1
- package/dist/utils/file-systems.js +1 -1
- package/dist/utils/harness-id.d.ts +1 -1
- package/dist/utils/harness-id.js +1 -1
- package/dist/utils/memory.d.ts +2 -2
- package/dist/utils/memory.js +2 -2
- package/dist/utils/runtime-limits.d.ts +5 -5
- package/dist/utils/runtime-limits.js +5 -5
- package/dist/utils/runtime-tools.d.ts +3 -3
- package/dist/utils/runtime-tools.js +3 -3
- package/package.json +1 -1
package/dist/contracts.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
156
|
-
*
|
|
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:
|
|
175
|
-
* Tenant's limits when the Agent was made
|
|
176
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
560
|
-
* or at once when the gate refused it, to the Agent's own stream as `agent.egress
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
*/
|
|
@@ -945,16 +946,24 @@ export declare const CredentialIdentitySchema: z.ZodObject<{
|
|
|
945
946
|
header: z.ZodString;
|
|
946
947
|
}, z.core.$strict>;
|
|
947
948
|
export type CredentialIdentity = z.infer<typeof CredentialIdentitySchema>;
|
|
949
|
+
/**
|
|
950
|
+
* `toolPrefix`: what the gateway at `via` puts before each tool name it lists, such as
|
|
951
|
+
* LiteLLM's `github-` (Host feature `gateway-credentials`). The Runtime lists the server's tools
|
|
952
|
+
* without it, so tool names, a manifest's `tools` settings and tool policy rules name the server's
|
|
953
|
+
* own tools, and calls a tool by the name the gateway listed. Only with `via`, and only on an
|
|
954
|
+
* Agent's secret: how a gateway names tools is the installation's routing, never a manifest's.
|
|
955
|
+
*/
|
|
956
|
+
export declare const CredentialToolPrefixSchema: z.ZodString;
|
|
948
957
|
export declare const RESERVED_ENVIRONMENT_NAMES: ReadonlySet<string>;
|
|
949
958
|
export declare function isReservedEnvironmentName(name: string): boolean;
|
|
950
959
|
/**
|
|
951
|
-
* The value a sandbox sees for every `environment_secret
|
|
960
|
+
* The value a sandbox sees for every `environment_secret`: never the secret. Word
|
|
952
961
|
* characters only, so CLIs that check a token's format before sending it (the Vercel CLI
|
|
953
962
|
* refuses anything matching `\W`) still send the request egress-gate sets the header on.
|
|
954
963
|
*/
|
|
955
964
|
export declare const ENVIRONMENT_SECRET_SENTINEL = "nylorun_managed";
|
|
956
965
|
/**
|
|
957
|
-
* How egress-gate writes an `environment_secret` into a request
|
|
966
|
+
* How egress-gate writes an `environment_secret` into a request: one header, set on
|
|
958
967
|
* every request to a bound host. `format` is text with `{value}` once, optionally inside a
|
|
959
968
|
* `{base64:…}` group, for example `Bearer {value}` (the default),
|
|
960
969
|
* `Basic {base64:x-access-token:{value}}` or `{value}`.
|
|
@@ -973,13 +982,13 @@ export declare const EnvironmentSecretInjectSchema: z.ZodObject<{
|
|
|
973
982
|
export type EnvironmentSecretInject = z.infer<typeof EnvironmentSecretInjectSchema>;
|
|
974
983
|
/**
|
|
975
984
|
* 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
|
|
985
|
+
* An identifier's grammar is the protocol's: it crosses the Runtime API, tokens and grants
|
|
977
986
|
* and means the same in every installation, so its length is a constant of protocol 15, not a
|
|
978
987
|
* setting.
|
|
979
988
|
*/
|
|
980
989
|
export declare const TOOL_SECRET_NAME_PATTERN: RegExp;
|
|
981
990
|
/**
|
|
982
|
-
* `PUT /v1/agents/{agentId}/secrets/{name}
|
|
991
|
+
* `PUT /v1/agents/{agentId}/secrets/{name}`: creates or replaces one credential
|
|
983
992
|
* in the Environment's vault. For `environment_secret` and `environment_variable` the name is
|
|
984
993
|
* the variable's name (a POSIX name, not reserved); for `bearer` and `headers` it is a label.
|
|
985
994
|
* The same name and type keeps the credential and re-seals its value and binding; another type
|
|
@@ -1009,6 +1018,7 @@ export declare const PutAgentSecretRequestSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1009
1018
|
type: z.ZodLiteral<"bearer">;
|
|
1010
1019
|
url: z.ZodString;
|
|
1011
1020
|
value: z.ZodString;
|
|
1021
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1012
1022
|
}, z.core.$strict>, z.ZodObject<{
|
|
1013
1023
|
via: z.ZodOptional<z.ZodString>;
|
|
1014
1024
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1018,22 +1028,34 @@ export declare const PutAgentSecretRequestSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1018
1028
|
type: z.ZodLiteral<"headers">;
|
|
1019
1029
|
url: z.ZodString;
|
|
1020
1030
|
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1031
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1032
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1033
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
1034
|
+
type: z.ZodLiteral<"workload">;
|
|
1035
|
+
url: z.ZodString;
|
|
1036
|
+
via: z.ZodString;
|
|
1037
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1038
|
+
header: z.ZodString;
|
|
1039
|
+
}, z.core.$strict>>;
|
|
1040
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1021
1041
|
}, z.core.$strict>], "type">;
|
|
1022
1042
|
export type PutAgentSecretRequest = z.infer<typeof PutAgentSecretRequestSchema>;
|
|
1023
1043
|
/**
|
|
1024
|
-
* A secret write on an Environment whose manifest declares the secret's slot
|
|
1025
|
-
* value, `value` (or `headers` for a `headers` slot). Its type and binding come from the slot
|
|
1044
|
+
* A secret write on an Environment whose manifest declares the secret's slot: only the
|
|
1045
|
+
* value, `value` (or `headers` for a `headers` slot). Its type and binding come from the slot,
|
|
1046
|
+
* except the gateway's `toolPrefix`, which this installation's write may add to a slot with `via`.
|
|
1026
1047
|
*/
|
|
1027
1048
|
export declare const PutAgentSecretValueRequestSchema: z.ZodObject<{
|
|
1028
1049
|
requestId: z.ZodOptional<z.ZodString>;
|
|
1029
1050
|
value: z.ZodOptional<z.ZodString>;
|
|
1030
1051
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1052
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
1031
1053
|
}, z.core.$strict>;
|
|
1032
1054
|
export type PutAgentSecretValueRequest = z.infer<typeof PutAgentSecretValueRequestSchema>;
|
|
1033
1055
|
/** Whether `name` may name a secret of `type` (`PUT .../secrets/{name}`); a message when not. */
|
|
1034
1056
|
export declare function environmentSecretNameError(type: PutAgentSecretRequest["type"], name: string): string | undefined;
|
|
1035
1057
|
/**
|
|
1036
|
-
* One secret an Environment of a kind needs
|
|
1058
|
+
* One secret an Environment of a kind needs: its type and binding, never its value. The
|
|
1037
1059
|
* value is written into each Environment's vault (`PUT /v1/agents/{id}/secrets/{name}`
|
|
1038
1060
|
* with `{ value }`, or `{ headers }` for `headers`), and the binding comes from here.
|
|
1039
1061
|
*/
|
|
@@ -1113,21 +1135,21 @@ export declare const WorkflowHarnessSectionSchema: z.ZodType<WorkflowHarnessSect
|
|
|
1113
1135
|
/** The `harness` section: an agent's loop, or a flow (`kind: "workflow"`). */
|
|
1114
1136
|
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
1137
|
/**
|
|
1116
|
-
* A trigger's id in `runtime.triggers
|
|
1138
|
+
* A trigger's id in `runtime.triggers`: 1–64 letters, digits, `.`, `_` and `-`,
|
|
1117
1139
|
* starting with a letter or digit. The map key; it names the trigger in routes and runs.
|
|
1118
1140
|
*/
|
|
1119
1141
|
export declare const TriggerIdSchema: z.ZodString;
|
|
1120
|
-
/** The signature schemes a webhook trigger verifies
|
|
1142
|
+
/** The signature schemes a webhook trigger verifies: Standard Webhooks only. */
|
|
1121
1143
|
export declare const WEBHOOK_SCHEMES: readonly ["standard-webhooks"];
|
|
1122
1144
|
/**
|
|
1123
|
-
* One trigger of an agent manifest's `runtime.triggers
|
|
1145
|
+
* One trigger of an agent manifest's `runtime.triggers`: exactly one of
|
|
1124
1146
|
* `schedule` (five-field cron, minute granularity, in `timezone`, an IANA name, default UTC), `at`
|
|
1125
1147
|
* (one run at an RFC 3339 time with an offset) or `webhook` (a webhook endpoint verified with the
|
|
1126
1148
|
* named scheme), plus the `session` each run goes to and the author's `prompt`.
|
|
1127
1149
|
*
|
|
1128
1150
|
* `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
|
-
*
|
|
1151
|
+
* exist, or `"new"` for a new session per run (`run-<runId>`). The Runtime keeps no main session.
|
|
1152
|
+
* The cron's smallest gap, the `at` time, the prompt's length and how many triggers a
|
|
1131
1153
|
* manifest holds are checked against the Tenant's Runtime limits when it is saved.
|
|
1132
1154
|
*/
|
|
1133
1155
|
export declare const TriggerSchema: z.ZodObject<{
|
|
@@ -1141,13 +1163,13 @@ export declare const TriggerSchema: z.ZodObject<{
|
|
|
1141
1163
|
prompt: z.ZodString;
|
|
1142
1164
|
}, z.core.$strict>;
|
|
1143
1165
|
export type Trigger = z.infer<typeof TriggerSchema>;
|
|
1144
|
-
/** What a trigger is: the field it has, or `wake` for a session's own booking
|
|
1166
|
+
/** What a trigger is: the field it has, or `wake` for a session's own booking. */
|
|
1145
1167
|
export declare const TRIGGER_KINDS: readonly ["schedule", "at", "webhook", "wake"];
|
|
1146
1168
|
export type TriggerKind = (typeof TRIGGER_KINDS)[number];
|
|
1147
1169
|
/** A trigger's kind, from its manifest entry. */
|
|
1148
1170
|
export declare function triggerKindOf(trigger: Trigger): Exclude<TriggerKind, "wake">;
|
|
1149
1171
|
/**
|
|
1150
|
-
* A trigger's status on an Agent
|
|
1172
|
+
* A trigger's status on an Agent: `active` fires, `paused` does not (`pausedReason`
|
|
1151
1173
|
* `manual`, or `new` for one an upgrade added), `completed` is an `at` that ran.
|
|
1152
1174
|
*/
|
|
1153
1175
|
export declare const TRIGGER_STATUSES: readonly ["active", "paused", "completed"];
|
|
@@ -1202,7 +1224,7 @@ export declare const TriggerListSchema: z.ZodObject<{
|
|
|
1202
1224
|
}, z.core.$strict>>;
|
|
1203
1225
|
}, z.core.$strict>;
|
|
1204
1226
|
/**
|
|
1205
|
-
* What a run came to
|
|
1227
|
+
* What a run came to: `started` a turn, `queued` a message behind a running turn,
|
|
1206
1228
|
* `skipped` (nothing started: `overlap`, `rate_limited`, `paused`) or `failed` (`queue_full`,
|
|
1207
1229
|
* `session_conflict`, `agent_unavailable`).
|
|
1208
1230
|
*/
|
|
@@ -1261,7 +1283,7 @@ export declare const TriggerRunPageSchema: z.ZodObject<{
|
|
|
1261
1283
|
}, z.core.$strict>;
|
|
1262
1284
|
export type TriggerRunPage = z.infer<typeof TriggerRunPageSchema>;
|
|
1263
1285
|
/**
|
|
1264
|
-
* `POST /v1/agents/{id}/triggers/{triggerId}/secret
|
|
1286
|
+
* `POST /v1/agents/{id}/triggers/{triggerId}/secret`: a webhook trigger's new signing secret,
|
|
1265
1287
|
* in the Standard Webhooks format (`whsec_` and 32 random bytes in base64), shown this once. It
|
|
1266
1288
|
* replaces the one before at once.
|
|
1267
1289
|
*/
|
|
@@ -1308,7 +1330,7 @@ export declare const RunTriggerResponseSchema: z.ZodObject<{
|
|
|
1308
1330
|
}, z.core.$strict>;
|
|
1309
1331
|
}, z.core.$strict>;
|
|
1310
1332
|
/**
|
|
1311
|
-
* One of an Agent's memories
|
|
1333
|
+
* One of an Agent's memories, as `GET /v1/agents/{id}/memories` lists it: its
|
|
1312
1334
|
* path under `/memories`, size, content hash (the precondition a `PUT` may send), the
|
|
1313
1335
|
* `description` of its frontmatter when it has one, and its version, which every change bumps.
|
|
1314
1336
|
*/
|
|
@@ -1519,7 +1541,7 @@ export declare const RuntimeSectionSchema: z.ZodObject<{
|
|
|
1519
1541
|
}, z.core.$strict>;
|
|
1520
1542
|
export type RuntimeSection = z.infer<typeof RuntimeSectionSchema>;
|
|
1521
1543
|
/**
|
|
1522
|
-
* Agent manifest v8 (protocol 16
|
|
1544
|
+
* Agent manifest v8 (protocol 16): one versioned document with what runs inside the
|
|
1523
1545
|
* agent loop (`harness`) and what the Runtime provides around it (`runtime`), saved at
|
|
1524
1546
|
* `PUT /v1/agent-manifests/{name}`. Without `runtime`, an Agent made from it is kind `none`.
|
|
1525
1547
|
* The Runtime also checks the two sections against each other when it is saved (`sectionGaps`).
|
|
@@ -2396,7 +2418,7 @@ export type AgentManifestChange = z.infer<typeof AgentManifestChangeSchema>;
|
|
|
2396
2418
|
* `PUT /v1/agent-manifests/{name}?dryRun=true`: what saving it would do, with nothing saved.
|
|
2397
2419
|
* `errors` lists every reason the Runtime would refuse it: the gaps between its sections, the
|
|
2398
2420
|
* Tenant's limits, its files; a save with errors is refused. A save moves every Agent that tracks
|
|
2399
|
-
* the manifest
|
|
2421
|
+
* the manifest: `moves` counts them by when the new version applies. `behind` counts
|
|
2400
2422
|
* the Agents that stay on an older version: pinned ones, and tracking ones it cannot move.
|
|
2401
2423
|
*/
|
|
2402
2424
|
export declare const AgentManifestPlanSchema: z.ZodObject<{
|
|
@@ -2553,7 +2575,7 @@ export declare const DeleteAgentManifestResponseSchema: z.ZodObject<{
|
|
|
2553
2575
|
}, z.core.$strict>;
|
|
2554
2576
|
export type DeleteAgentManifestResponse = z.infer<typeof DeleteAgentManifestResponseSchema>;
|
|
2555
2577
|
/**
|
|
2556
|
-
* `POST /v1/agents/{id}/fork
|
|
2578
|
+
* `POST /v1/agents/{id}/fork`: copies an Agent, with its disk and vault, into a new one,
|
|
2557
2579
|
* made from `manifest` (default the source's manifest at its latest version): how an Agent
|
|
2558
2580
|
* changes what is fixed for its life (its kind, harness, storage or manifest). The source keeps
|
|
2559
2581
|
* what it runs, its disk and its sessions.
|
|
@@ -2847,7 +2869,7 @@ export declare const ForkAgentResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2847
2869
|
}, z.core.$strict>]>;
|
|
2848
2870
|
export type ForkAgentResponse = z.infer<typeof ForkAgentResponseSchema>;
|
|
2849
2871
|
/**
|
|
2850
|
-
* `PUT /v1/agents/{id}?dryRun=true` on an existing Agent
|
|
2872
|
+
* `PUT /v1/agents/{id}?dryRun=true` on an existing Agent: what moving it to the
|
|
2851
2873
|
* version `manifest` names would do, with nothing changed. `applies`: `none` (it runs that
|
|
2852
2874
|
* version), `now` (turns that start from here run it), `next_start` (a runtime change: its pod's
|
|
2853
2875
|
* next start applies it), `secrets` (it waits for a value of each of `missingSecrets`), or
|
|
@@ -2895,7 +2917,7 @@ export declare const AgentMovePlanSchema: z.ZodObject<{
|
|
|
2895
2917
|
}, z.core.$strict>;
|
|
2896
2918
|
export type AgentMovePlan = z.infer<typeof AgentMovePlanSchema>;
|
|
2897
2919
|
/**
|
|
2898
|
-
* `POST /v1/agents/{id}/restart
|
|
2920
|
+
* `POST /v1/agents/{id}/restart`: applies a pending version now. A running pod stops,
|
|
2899
2921
|
* so the next turn starts it on the version (a stopped one starts at once); `retry` first moves
|
|
2900
2922
|
* it to the version that failed to start (`failedVersion`) again.
|
|
2901
2923
|
*/
|
|
@@ -2971,11 +2993,28 @@ export declare const CUSTOM_MODEL_SETTING_DEFAULTS: Readonly<{
|
|
|
2971
2993
|
contextWindow: 32768;
|
|
2972
2994
|
maxTokens: 8192;
|
|
2973
2995
|
}>;
|
|
2996
|
+
/**
|
|
2997
|
+
* Where a custom endpoint's per-call header takes its value from the call (#493): one of the
|
|
2998
|
+
* calling Agent's labels (`key`, such as `org`), the Agent's id, or the session's owner when it
|
|
2999
|
+
* is a person. A call whose source has no value sends no header.
|
|
3000
|
+
*/
|
|
3001
|
+
export declare const ModelCallHeaderSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3002
|
+
from: z.ZodLiteral<"agent.label">;
|
|
3003
|
+
key: z.ZodString;
|
|
3004
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3005
|
+
from: z.ZodLiteral<"agent.id">;
|
|
3006
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3007
|
+
from: z.ZodLiteral<"session.owner">;
|
|
3008
|
+
}, z.core.$strict>], "from">;
|
|
3009
|
+
export type ModelCallHeaderSource = z.infer<typeof ModelCallHeaderSourceSchema>;
|
|
2974
3010
|
/**
|
|
2975
3011
|
* What the Runtime cannot learn from a custom OpenAI-compatible endpoint (Model Calls §7):
|
|
2976
3012
|
* its context window and output limit (default `CUSTOM_MODEL_SETTING_DEFAULTS`), whether it
|
|
2977
3013
|
* reasons, what it reads (`inputs`; default text only) and pi-ai `compat` settings
|
|
2978
|
-
* (`thinkingFormat`, `thinkingTokenBudgetField`, `chatTemplateKwargs`, …).
|
|
3014
|
+
* (`thinkingFormat`, `thinkingTokenBudgetField`, `chatTemplateKwargs`, …). `headers` are sent on
|
|
3015
|
+
* every call and `callHeaders` resolved per call from the calling Agent, for a gateway that
|
|
3016
|
+
* attributes or budgets each call (#493): they are settings, never secrets, and read back as such,
|
|
3017
|
+
* so neither may set `authorization`.
|
|
2979
3018
|
*/
|
|
2980
3019
|
export declare const CustomModelSettingsSchema: z.ZodObject<{
|
|
2981
3020
|
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2990,8 +3029,24 @@ export declare const CustomModelSettingsSchema: z.ZodObject<{
|
|
|
2990
3029
|
video: "video";
|
|
2991
3030
|
}>>>;
|
|
2992
3031
|
compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3032
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3033
|
+
callHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3034
|
+
from: z.ZodLiteral<"agent.label">;
|
|
3035
|
+
key: z.ZodString;
|
|
3036
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3037
|
+
from: z.ZodLiteral<"agent.id">;
|
|
3038
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3039
|
+
from: z.ZodLiteral<"session.owner">;
|
|
3040
|
+
}, z.core.$strict>], "from">>>;
|
|
2993
3041
|
}, z.core.$strict>;
|
|
2994
3042
|
export type CustomModelSettings = z.infer<typeof CustomModelSettingsSchema>;
|
|
3043
|
+
/**
|
|
3044
|
+
* How the Runtime authenticates to the model: a stored key, a stored OAuth grant, or (a custom
|
|
3045
|
+
* endpoint only) the Runtime's workload token, read from `NYLORUN_WORKLOAD_TOKEN_FILE` on every
|
|
3046
|
+
* call and never stored (#496).
|
|
3047
|
+
*/
|
|
3048
|
+
export declare const HOST_MODEL_AUTH_TYPES: readonly ["api_key", "oauth", "workload"];
|
|
3049
|
+
export type HostModelAuthType = (typeof HOST_MODEL_AUTH_TYPES)[number];
|
|
2995
3050
|
export declare const PutHostModelRequestSchema: z.ZodObject<{
|
|
2996
3051
|
requestId: z.ZodString;
|
|
2997
3052
|
idempotencyKey: z.ZodString;
|
|
@@ -3011,6 +3066,15 @@ export declare const PutHostModelRequestSchema: z.ZodObject<{
|
|
|
3011
3066
|
video: "video";
|
|
3012
3067
|
}>>>;
|
|
3013
3068
|
compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3069
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3070
|
+
callHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3071
|
+
from: z.ZodLiteral<"agent.label">;
|
|
3072
|
+
key: z.ZodString;
|
|
3073
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3074
|
+
from: z.ZodLiteral<"agent.id">;
|
|
3075
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3076
|
+
from: z.ZodLiteral<"session.owner">;
|
|
3077
|
+
}, z.core.$strict>], "from">>>;
|
|
3014
3078
|
}, z.core.$strict>>;
|
|
3015
3079
|
auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3016
3080
|
type: z.ZodLiteral<"api_key">;
|
|
@@ -3021,7 +3085,9 @@ export declare const PutHostModelRequestSchema: z.ZodObject<{
|
|
|
3021
3085
|
refresh: z.ZodString;
|
|
3022
3086
|
access: z.ZodString;
|
|
3023
3087
|
expires: z.ZodNumber;
|
|
3024
|
-
}, z.core.$loose
|
|
3088
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3089
|
+
type: z.ZodLiteral<"workload">;
|
|
3090
|
+
}, z.core.$strict>], "type">;
|
|
3025
3091
|
}, z.core.$strict>;
|
|
3026
3092
|
export type PutHostModelRequest = z.infer<typeof PutHostModelRequestSchema>;
|
|
3027
3093
|
export type HostModelView = {
|
|
@@ -3030,7 +3096,7 @@ export type HostModelView = {
|
|
|
3030
3096
|
readonly configured: true;
|
|
3031
3097
|
readonly provider: string;
|
|
3032
3098
|
readonly model: string;
|
|
3033
|
-
readonly authType:
|
|
3099
|
+
readonly authType: HostModelAuthType;
|
|
3034
3100
|
readonly baseUrl?: string;
|
|
3035
3101
|
readonly settings?: CustomModelSettings;
|
|
3036
3102
|
};
|
|
@@ -3043,7 +3109,7 @@ export declare const SelectHostModelRequestSchema: z.ZodObject<{
|
|
|
3043
3109
|
}, z.core.$strict>;
|
|
3044
3110
|
export type SelectHostModelRequest = z.infer<typeof SelectHostModelRequestSchema>;
|
|
3045
3111
|
export type HostModelProviderInfo = z.infer<typeof HostModelProviderInfoSchema>;
|
|
3046
|
-
export declare const ENVIRONMENT_SECRET_TYPES: readonly ["bearer", "headers", "environment_secret", "environment_variable"];
|
|
3112
|
+
export declare const ENVIRONMENT_SECRET_TYPES: readonly ["bearer", "headers", "workload", "environment_secret", "environment_variable"];
|
|
3047
3113
|
/**
|
|
3048
3114
|
* One credential of an Environment's vault, never its value: what it is bound to (the server
|
|
3049
3115
|
* `url` for `bearer` and `headers`; the hosts and header for `environment_secret`).
|
|
@@ -3055,6 +3121,7 @@ export declare const AgentSecretViewSchema: z.ZodObject<{
|
|
|
3055
3121
|
environment_secret: "environment_secret";
|
|
3056
3122
|
environment_variable: "environment_variable";
|
|
3057
3123
|
headers: "headers";
|
|
3124
|
+
workload: "workload";
|
|
3058
3125
|
}>;
|
|
3059
3126
|
binding: z.ZodObject<{
|
|
3060
3127
|
url: z.ZodOptional<z.ZodString>;
|
|
@@ -3066,6 +3133,7 @@ export declare const AgentSecretViewSchema: z.ZodObject<{
|
|
|
3066
3133
|
}, z.core.$strict>;
|
|
3067
3134
|
headerNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3068
3135
|
via: z.ZodOptional<z.ZodString>;
|
|
3136
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
3069
3137
|
identity: z.ZodOptional<z.ZodObject<{
|
|
3070
3138
|
header: z.ZodString;
|
|
3071
3139
|
}, z.core.$strict>>;
|
|
@@ -3081,6 +3149,7 @@ export declare const ListAgentSecretsResponseSchema: z.ZodObject<{
|
|
|
3081
3149
|
environment_secret: "environment_secret";
|
|
3082
3150
|
environment_variable: "environment_variable";
|
|
3083
3151
|
headers: "headers";
|
|
3152
|
+
workload: "workload";
|
|
3084
3153
|
}>;
|
|
3085
3154
|
binding: z.ZodObject<{
|
|
3086
3155
|
url: z.ZodOptional<z.ZodString>;
|
|
@@ -3092,6 +3161,7 @@ export declare const ListAgentSecretsResponseSchema: z.ZodObject<{
|
|
|
3092
3161
|
}, z.core.$strict>;
|
|
3093
3162
|
headerNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3094
3163
|
via: z.ZodOptional<z.ZodString>;
|
|
3164
|
+
toolPrefix: z.ZodOptional<z.ZodString>;
|
|
3095
3165
|
identity: z.ZodOptional<z.ZodObject<{
|
|
3096
3166
|
header: z.ZodString;
|
|
3097
3167
|
}, z.core.$strict>>;
|
|
@@ -3103,7 +3173,7 @@ export type ListAgentSecretsResponse = z.infer<typeof ListAgentSecretsResponseSc
|
|
|
3103
3173
|
/** The MCP transports a preview speaks: a manifest's remote server types. */
|
|
3104
3174
|
export declare const MCP_PREVIEW_TYPES: readonly ["streamable-http", "sse"];
|
|
3105
3175
|
/**
|
|
3106
|
-
* `POST /v1/tenant/mcp/preview
|
|
3176
|
+
* `POST /v1/tenant/mcp/preview`: what a remote MCP server offers, before an agent
|
|
3107
3177
|
* names it. The Runtime connects with the credential for `url` in the vault of Agent `agentId`
|
|
3108
3178
|
* (none without one), lists the tools and closes the connection; it never calls a tool.
|
|
3109
3179
|
*/
|
|
@@ -3128,7 +3198,7 @@ export declare const McpPreviewToolSchema: z.ZodObject<{
|
|
|
3128
3198
|
}, z.core.$strict>;
|
|
3129
3199
|
export type McpPreviewTool = z.infer<typeof McpPreviewToolSchema>;
|
|
3130
3200
|
/**
|
|
3131
|
-
* A preview
|
|
3201
|
+
* A preview. A server that answered `401` is `authRequired`, with its RFC 9728
|
|
3132
3202
|
* protected-resource metadata when it publishes any: it needs a person's sign-in or a key the
|
|
3133
3203
|
* Environment's vault does not hold, so reach it with a key or through a gateway (`via`).
|
|
3134
3204
|
*/
|
|
@@ -3237,7 +3307,7 @@ export declare const CredentialCoverageSchema: z.ZodObject<{
|
|
|
3237
3307
|
}, z.core.$strict>;
|
|
3238
3308
|
export type CredentialCoverage = z.infer<typeof CredentialCoverageSchema>;
|
|
3239
3309
|
/**
|
|
3240
|
-
* What a message to a busy session does (protocol 17
|
|
3310
|
+
* What a message to a busy session does (protocol 17): `queue` waits for the running turn to
|
|
3241
3311
|
* end and starts the next one; `reject` is refused with `409 session_busy`. A protocol 17 client's
|
|
3242
3312
|
* default is `queue`, a protocol 16 client's `reject`.
|
|
3243
3313
|
*/
|
|
@@ -3424,11 +3494,11 @@ export type MessageEventBody = z.infer<typeof MessageEventBodySchema>;
|
|
|
3424
3494
|
/** The envelope every session event carries (`nylorun.event/2`, Durable Streams §9.5). */
|
|
3425
3495
|
export declare const EVENT_SCHEMA = "nylorun.event/2";
|
|
3426
3496
|
/**
|
|
3427
|
-
* Who wrote an event
|
|
3497
|
+
* Who wrote an event: the writer says so, not the event's type. `client` is a
|
|
3428
3498
|
* command over the Runtime API (its `principal` says who sent it), `core` is core's own logic
|
|
3429
3499
|
* (settle, sweeps, the flow host, exports, the tools core serves), `harness` is what a harness
|
|
3430
3500
|
* reported (`source.id` is its harness id, `runId` its run), and the gates are themselves.
|
|
3431
|
-
* `loop` and `api` are what events
|
|
3501
|
+
* `loop` and `api` are what older events say.
|
|
3432
3502
|
*/
|
|
3433
3503
|
export declare const EventSourceKindSchema: z.ZodEnum<{
|
|
3434
3504
|
api: "api";
|
|
@@ -3463,7 +3533,7 @@ export declare const EvidenceClassSchema: z.ZodEnum<{
|
|
|
3463
3533
|
observed: "observed";
|
|
3464
3534
|
}>;
|
|
3465
3535
|
export type EvidenceClass = z.infer<typeof EvidenceClassSchema>;
|
|
3466
|
-
/** A command's sender
|
|
3536
|
+
/** A command's sender: from the request's credential, never from its body. */
|
|
3467
3537
|
export declare const EventPrincipalSchema: z.ZodObject<{
|
|
3468
3538
|
kind: z.ZodEnum<{
|
|
3469
3539
|
application: "application";
|
|
@@ -3476,7 +3546,7 @@ export declare const EventPrincipalSchema: z.ZodObject<{
|
|
|
3476
3546
|
}, z.core.$strict>;
|
|
3477
3547
|
export type EventPrincipal = z.infer<typeof EventPrincipalSchema>;
|
|
3478
3548
|
/**
|
|
3479
|
-
* Who wrote an event, as its writer says
|
|
3549
|
+
* Who wrote an event, as its writer says. Absent, core wrote it and saw it (`core`,
|
|
3480
3550
|
* `observed`).
|
|
3481
3551
|
*/
|
|
3482
3552
|
export interface EventWriter {
|
|
@@ -3541,7 +3611,7 @@ declare const eventEnvelope: {
|
|
|
3541
3611
|
measured: "measured";
|
|
3542
3612
|
observed: "observed";
|
|
3543
3613
|
}>;
|
|
3544
|
-
/** Who sent a command (`command.*`, a cancel's `turn.cancelled`), from its credential
|
|
3614
|
+
/** Who sent a command (`command.*`, a cancel's `turn.cancelled`), from its credential. */
|
|
3545
3615
|
principal: z.ZodOptional<z.ZodObject<{
|
|
3546
3616
|
kind: z.ZodEnum<{
|
|
3547
3617
|
application: "application";
|
|
@@ -3733,7 +3803,7 @@ export declare const AgentRefSchema: z.ZodObject<{
|
|
|
3733
3803
|
delegationId: z.ZodOptional<z.ZodString>;
|
|
3734
3804
|
}, z.core.$strict>;
|
|
3735
3805
|
/**
|
|
3736
|
-
* When a gate served a call
|
|
3806
|
+
* When a gate served a call: its own start and end, as it measured them. Absent when no
|
|
3737
3807
|
* gate measured the call (a fixture model, a sandbox or core-served tool, a call refused before
|
|
3738
3808
|
* it was sent).
|
|
3739
3809
|
*/
|
|
@@ -3742,7 +3812,7 @@ export declare const GateTimesSchema: z.ZodObject<{
|
|
|
3742
3812
|
endedAt: z.ZodString;
|
|
3743
3813
|
}, z.core.$loose>;
|
|
3744
3814
|
/**
|
|
3745
|
-
* What the Model Gate's meter recorded for a model call
|
|
3815
|
+
* What the Model Gate's meter recorded for a model call, from the usage ledger: the
|
|
3746
3816
|
* tokens and cost the Runtime counts, beside the `usage` the harness reported. `cachedTokens`
|
|
3747
3817
|
* and `costUsd` are absent when zero.
|
|
3748
3818
|
*/
|
|
@@ -3793,7 +3863,7 @@ export declare const AssistantMessagePayloadSchema: z.ZodObject<{
|
|
|
3793
3863
|
input: z.ZodUnknown;
|
|
3794
3864
|
}, z.core.$loose>>;
|
|
3795
3865
|
}, z.core.$loose>;
|
|
3796
|
-
/** True when a `message.assistant` said nothing: no text and no tool calls
|
|
3866
|
+
/** True when a `message.assistant` said nothing: no text and no tool calls. */
|
|
3797
3867
|
export declare function isEmptyAssistantMessage(payload: {
|
|
3798
3868
|
readonly text?: unknown;
|
|
3799
3869
|
readonly toolCalls?: readonly unknown[];
|
|
@@ -3861,17 +3931,17 @@ export declare const ContextCompactedPayloadSchema: z.ZodObject<{
|
|
|
3861
3931
|
tokensBefore: z.ZodNumber;
|
|
3862
3932
|
tokensAfter: z.ZodNumber;
|
|
3863
3933
|
}, z.core.$loose>;
|
|
3864
|
-
/** How a tool call ended
|
|
3934
|
+
/** How a tool call ended: the tool answered, the Runtime ended it, or a cancel did. */
|
|
3865
3935
|
export declare const TOOL_CALL_STATUSES: readonly ["completed", "failed", "cancelled"];
|
|
3866
3936
|
/**
|
|
3867
|
-
* Where a tool call ran
|
|
3937
|
+
* Where a tool call ran, its effect's target kind (protocol 15): an MCP server, an HTTP
|
|
3868
3938
|
* tool's URL, the session's sandbox, the harness that runs the turn (`harness`: a tool it runs
|
|
3869
3939
|
* in its own process, such as our engine's skill, artifact and `tool_search` tools), or the
|
|
3870
|
-
* Runtime itself (`runtime`: `schedule_wake
|
|
3940
|
+
* Runtime itself (`runtime`: `schedule_wake`).
|
|
3871
3941
|
*/
|
|
3872
3942
|
export declare const TOOL_CALL_KINDS: readonly ["mcp", "http", "sandbox", "harness", "runtime"];
|
|
3873
3943
|
/**
|
|
3874
|
-
* What the Tenant's tool policy did with a tool call
|
|
3944
|
+
* What the Tenant's tool policy did with a tool call, when it did more than allow
|
|
3875
3945
|
* it: `deny` refused it unsent; `ask` held it for a person, who approved it (`approvedBy`, when
|
|
3876
3946
|
* known) or denied it.
|
|
3877
3947
|
*/
|
|
@@ -3884,7 +3954,7 @@ export declare const ToolPolicyFactSchema: z.ZodObject<{
|
|
|
3884
3954
|
approvedBy: z.ZodOptional<z.ZodString>;
|
|
3885
3955
|
}, z.core.$loose>;
|
|
3886
3956
|
/**
|
|
3887
|
-
* `tool.completed`: how one tool call ended, written once per call
|
|
3957
|
+
* `tool.completed`: how one tool call ended, written once per call. `status`
|
|
3888
3958
|
* `completed`: the tool answered, with its output or the tool error it reported (`error`).
|
|
3889
3959
|
* `failed`: the Runtime ended the call (`tool.disabled`, `tool.unavailable`, `tool.denied`, or
|
|
3890
3960
|
* `tool.interrupted` for a call a crash interrupted, which may have run). `cancelled`: the turn
|
|
@@ -3939,6 +4009,7 @@ export declare const ToolCompletedPayloadSchema: z.ZodObject<{
|
|
|
3939
4009
|
code: z.ZodString;
|
|
3940
4010
|
message: z.ZodString;
|
|
3941
4011
|
server: z.ZodOptional<z.ZodString>;
|
|
4012
|
+
gateway: z.ZodOptional<z.ZodString>;
|
|
3942
4013
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
3943
4014
|
}, z.core.$loose>>;
|
|
3944
4015
|
redacted: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4019,7 +4090,7 @@ export declare const MessageQueuedPayloadSchema: z.ZodObject<{
|
|
|
4019
4090
|
requestId: z.ZodString;
|
|
4020
4091
|
}, z.core.$loose>;
|
|
4021
4092
|
/**
|
|
4022
|
-
* `wake.booked
|
|
4093
|
+
* `wake.booked`: the session's agent booked its next turn with `schedule_wake`,
|
|
4023
4094
|
* at `at`, replacing any booking before. `wake.cancelled`: it cancelled its booking.
|
|
4024
4095
|
*/
|
|
4025
4096
|
export declare const WakeBookedPayloadSchema: z.ZodObject<{
|
|
@@ -4181,6 +4252,7 @@ declare const TRANSCRIPT_PAYLOADS: {
|
|
|
4181
4252
|
code: z.ZodString;
|
|
4182
4253
|
message: z.ZodString;
|
|
4183
4254
|
server: z.ZodOptional<z.ZodString>;
|
|
4255
|
+
gateway: z.ZodOptional<z.ZodString>;
|
|
4184
4256
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
4185
4257
|
}, z.core.$loose>>;
|
|
4186
4258
|
redacted: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4358,7 +4430,7 @@ export declare const NodeStartedPayloadSchema: z.ZodObject<{
|
|
|
4358
4430
|
}, z.core.$loose>;
|
|
4359
4431
|
/**
|
|
4360
4432
|
* `node.completed`: a flow's HTTP stage or HTTP verifier ended, or a tool stage the Runtime
|
|
4361
|
-
* refused to run
|
|
4433
|
+
* refused to run, named as its `node.started` names it. `status` reads as
|
|
4362
4434
|
* `tool.completed`'s: `completed` when the stage's server answered (an error answer included),
|
|
4363
4435
|
* `failed` when the Runtime ended it, `cancelled` when a cancel did. `gate` is the Tool Gate's
|
|
4364
4436
|
* own start and end of its last send.
|
|
@@ -4404,7 +4476,7 @@ export declare const LoopVerifiedPayloadSchema: z.ZodObject<{
|
|
|
4404
4476
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
4405
4477
|
}, z.core.$loose>;
|
|
4406
4478
|
/**
|
|
4407
|
-
* `transcript.updated` (internal
|
|
4479
|
+
* `transcript.updated` (internal): the own loop's model-facing transcript after a
|
|
4408
4480
|
* settled segment, as an edit of the previous one: keep its first `keep` entries, then append
|
|
4409
4481
|
* `entries`; the result has `length` entries. `keep` is 0 for a snapshot (after compaction, or
|
|
4410
4482
|
* for a session written before transcripts were recorded). Large edits are split into
|
|
@@ -4430,7 +4502,7 @@ export declare const ArtifactSourceSchema: z.ZodEnum<{
|
|
|
4430
4502
|
}>;
|
|
4431
4503
|
export type ArtifactSource = z.infer<typeof ArtifactSourceSchema>;
|
|
4432
4504
|
/**
|
|
4433
|
-
* What an artifact holds: one file, or a folder
|
|
4505
|
+
* What an artifact holds: one file, or a folder, whose versions are manifests of paths to
|
|
4434
4506
|
* content-addressed files.
|
|
4435
4507
|
*/
|
|
4436
4508
|
export declare const ArtifactKindSchema: z.ZodEnum<{
|
|
@@ -4898,6 +4970,7 @@ export declare const EVENT_CATALOG: {
|
|
|
4898
4970
|
code: z.ZodString;
|
|
4899
4971
|
message: z.ZodString;
|
|
4900
4972
|
server: z.ZodOptional<z.ZodString>;
|
|
4973
|
+
gateway: z.ZodOptional<z.ZodString>;
|
|
4901
4974
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
4902
4975
|
}, z.core.$loose>>;
|
|
4903
4976
|
redacted: z.ZodOptional<z.ZodNumber>;
|
|
@@ -5319,7 +5392,7 @@ export declare const StreamRelayStatusSchema: z.ZodObject<{
|
|
|
5319
5392
|
}, z.core.$strict>;
|
|
5320
5393
|
export type StreamRelayStatus = z.infer<typeof StreamRelayStatusSchema>;
|
|
5321
5394
|
/**
|
|
5322
|
-
* The Tenant's harnesses
|
|
5395
|
+
* The Tenant's harnesses: `in-process` runs one in core's process; `remote` waits for
|
|
5323
5396
|
* harnesses on the Harness API listener. `workspace` says one that serves the Tenant's
|
|
5324
5397
|
* workspaces is connected.
|
|
5325
5398
|
*/
|
|
@@ -5401,6 +5474,7 @@ export declare const HostModelViewSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
5401
5474
|
authType: z.ZodEnum<{
|
|
5402
5475
|
api_key: "api_key";
|
|
5403
5476
|
oauth: "oauth";
|
|
5477
|
+
workload: "workload";
|
|
5404
5478
|
}>;
|
|
5405
5479
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
5406
5480
|
settings: z.ZodOptional<z.ZodObject<{
|
|
@@ -5416,6 +5490,15 @@ export declare const HostModelViewSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
5416
5490
|
video: "video";
|
|
5417
5491
|
}>>>;
|
|
5418
5492
|
compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5493
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5494
|
+
callHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5495
|
+
from: z.ZodLiteral<"agent.label">;
|
|
5496
|
+
key: z.ZodString;
|
|
5497
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5498
|
+
from: z.ZodLiteral<"agent.id">;
|
|
5499
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5500
|
+
from: z.ZodLiteral<"session.owner">;
|
|
5501
|
+
}, z.core.$strict>], "from">>>;
|
|
5419
5502
|
}, z.core.$strict>>;
|
|
5420
5503
|
}, z.core.$strict>]>;
|
|
5421
5504
|
export declare const TenantStatusSchema: z.ZodObject<{
|
|
@@ -5442,6 +5525,7 @@ export declare const TenantStatusSchema: z.ZodObject<{
|
|
|
5442
5525
|
authType: z.ZodEnum<{
|
|
5443
5526
|
api_key: "api_key";
|
|
5444
5527
|
oauth: "oauth";
|
|
5528
|
+
workload: "workload";
|
|
5445
5529
|
}>;
|
|
5446
5530
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
5447
5531
|
settings: z.ZodOptional<z.ZodObject<{
|
|
@@ -5457,6 +5541,15 @@ export declare const TenantStatusSchema: z.ZodObject<{
|
|
|
5457
5541
|
video: "video";
|
|
5458
5542
|
}>>>;
|
|
5459
5543
|
compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5544
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5545
|
+
callHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5546
|
+
from: z.ZodLiteral<"agent.label">;
|
|
5547
|
+
key: z.ZodString;
|
|
5548
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5549
|
+
from: z.ZodLiteral<"agent.id">;
|
|
5550
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5551
|
+
from: z.ZodLiteral<"session.owner">;
|
|
5552
|
+
}, z.core.$strict>], "from">>>;
|
|
5460
5553
|
}, z.core.$strict>>;
|
|
5461
5554
|
}, z.core.$strict>]>;
|
|
5462
5555
|
agents: z.ZodArray<z.ZodObject<{
|
|
@@ -5561,6 +5654,15 @@ export declare const SeedTenantConfigRequestSchema: z.ZodObject<{
|
|
|
5561
5654
|
video: "video";
|
|
5562
5655
|
}>>>;
|
|
5563
5656
|
compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5657
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5658
|
+
callHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5659
|
+
from: z.ZodLiteral<"agent.label">;
|
|
5660
|
+
key: z.ZodString;
|
|
5661
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5662
|
+
from: z.ZodLiteral<"agent.id">;
|
|
5663
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5664
|
+
from: z.ZodLiteral<"session.owner">;
|
|
5665
|
+
}, z.core.$strict>], "from">>>;
|
|
5564
5666
|
}, z.core.$strict>>;
|
|
5565
5667
|
auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5566
5668
|
type: z.ZodLiteral<"api_key">;
|
|
@@ -5571,7 +5673,9 @@ export declare const SeedTenantConfigRequestSchema: z.ZodObject<{
|
|
|
5571
5673
|
refresh: z.ZodString;
|
|
5572
5674
|
access: z.ZodString;
|
|
5573
5675
|
expires: z.ZodNumber;
|
|
5574
|
-
}, z.core.$loose
|
|
5676
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
5677
|
+
type: z.ZodLiteral<"workload">;
|
|
5678
|
+
}, z.core.$strict>], "type">;
|
|
5575
5679
|
}, z.core.$strict>>;
|
|
5576
5680
|
fixtureModel: z.ZodOptional<z.ZodLiteral<true>>;
|
|
5577
5681
|
}, z.core.$strict>;
|
|
@@ -5605,7 +5709,7 @@ export declare const SUBJECT_SCOPES: readonly ["agents:read", "agents:write", "s
|
|
|
5605
5709
|
export type SubjectScope = (typeof SUBJECT_SCOPES)[number];
|
|
5606
5710
|
/**
|
|
5607
5711
|
* The owner of a session opened for no person: an MCP server's or HTTP tool's identity header
|
|
5608
|
-
*
|
|
5712
|
+
* names nobody for it. A reserved subject.
|
|
5609
5713
|
*/
|
|
5610
5714
|
export declare const INSTALLATION_OWNER = "installation";
|
|
5611
5715
|
/** A valid subject: 1–200 visible ASCII characters, not reserved by the Runtime. */
|
|
@@ -6068,6 +6172,7 @@ export declare const HostModelProviderInfoSchema: z.ZodObject<{
|
|
|
6068
6172
|
authType: z.ZodEnum<{
|
|
6069
6173
|
api_key: "api_key";
|
|
6070
6174
|
oauth: "oauth";
|
|
6175
|
+
workload: "workload";
|
|
6071
6176
|
}>;
|
|
6072
6177
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
6073
6178
|
settings: z.ZodOptional<z.ZodObject<{
|
|
@@ -6083,6 +6188,15 @@ export declare const HostModelProviderInfoSchema: z.ZodObject<{
|
|
|
6083
6188
|
video: "video";
|
|
6084
6189
|
}>>>;
|
|
6085
6190
|
compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6191
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6192
|
+
callHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6193
|
+
from: z.ZodLiteral<"agent.label">;
|
|
6194
|
+
key: z.ZodString;
|
|
6195
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6196
|
+
from: z.ZodLiteral<"agent.id">;
|
|
6197
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6198
|
+
from: z.ZodLiteral<"session.owner">;
|
|
6199
|
+
}, z.core.$strict>], "from">>>;
|
|
6086
6200
|
}, z.core.$strict>>;
|
|
6087
6201
|
inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
6088
6202
|
audio: "audio";
|
|
@@ -6136,6 +6250,7 @@ export declare const ListProvidersResponseSchema: z.ZodObject<{
|
|
|
6136
6250
|
authType: z.ZodEnum<{
|
|
6137
6251
|
api_key: "api_key";
|
|
6138
6252
|
oauth: "oauth";
|
|
6253
|
+
workload: "workload";
|
|
6139
6254
|
}>;
|
|
6140
6255
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
6141
6256
|
settings: z.ZodOptional<z.ZodObject<{
|
|
@@ -6151,6 +6266,15 @@ export declare const ListProvidersResponseSchema: z.ZodObject<{
|
|
|
6151
6266
|
video: "video";
|
|
6152
6267
|
}>>>;
|
|
6153
6268
|
compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6269
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6270
|
+
callHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6271
|
+
from: z.ZodLiteral<"agent.label">;
|
|
6272
|
+
key: z.ZodString;
|
|
6273
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6274
|
+
from: z.ZodLiteral<"agent.id">;
|
|
6275
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6276
|
+
from: z.ZodLiteral<"session.owner">;
|
|
6277
|
+
}, z.core.$strict>], "from">>>;
|
|
6154
6278
|
}, z.core.$strict>>;
|
|
6155
6279
|
inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
6156
6280
|
audio: "audio";
|
|
@@ -6356,7 +6480,7 @@ export declare const ModelBudgetsSchema: z.ZodObject<{
|
|
|
6356
6480
|
}, z.core.$strict>>;
|
|
6357
6481
|
}, z.core.$strict>;
|
|
6358
6482
|
export type ModelBudgets = z.infer<typeof ModelBudgetsSchema>;
|
|
6359
|
-
/** What a tool policy rule does to a call it matches
|
|
6483
|
+
/** What a tool policy rule does to a call it matches. */
|
|
6360
6484
|
export declare const TOOL_POLICY_EFFECTS: readonly ["allow", "ask", "deny"];
|
|
6361
6485
|
/** A test of one field of a tool call's input; every test it sets must hold. */
|
|
6362
6486
|
export declare const ToolInputConditionSchema: z.ZodObject<{
|
|
@@ -6370,12 +6494,13 @@ export declare const ToolInputConditionSchema: z.ZodObject<{
|
|
|
6370
6494
|
}, z.core.$strict>;
|
|
6371
6495
|
export type ToolInputCondition = z.infer<typeof ToolInputConditionSchema>;
|
|
6372
6496
|
/**
|
|
6373
|
-
* One rule of the Tenant's tool policy
|
|
6374
|
-
*
|
|
6375
|
-
*
|
|
6376
|
-
*
|
|
6377
|
-
*
|
|
6378
|
-
*
|
|
6497
|
+
* One rule of the Tenant's tool policy, applied at the Tool Gate to every MCP and HTTP tool call
|
|
6498
|
+
* of every harness. A rule matches a call when every selector it sets matches: `tool` (the tool's
|
|
6499
|
+
* identity: an MCP tool's own name on its server, or an HTTP tool's declared name; never the name
|
|
6500
|
+
* a harness gave the model; `*` for any run of characters), `server` (an MCP server's name),
|
|
6501
|
+
* `kind`, `agent` (the agent that calls it: the agent manifest's name, or the id of an agent used
|
|
6502
|
+
* as a tool or of a flow's agent; never an Agent's id) and `when` (fields of the input, by dotted
|
|
6503
|
+
* path). The strictest matching rule decides: `deny` refuses the call before it is sent,
|
|
6379
6504
|
* `ask` holds it until a person approves it on the session (`approve`), `allow` runs it. A call no
|
|
6380
6505
|
* rule matches runs. Sandbox tools never cross the gate; their network side is egress policy.
|
|
6381
6506
|
*
|
|
@@ -6672,7 +6797,7 @@ export declare const ARTIFACT_TOTAL_BYTES_DEFAULT: number;
|
|
|
6672
6797
|
/**
|
|
6673
6798
|
* The longest artifact name, in characters: the longest file name a workspace's file system takes
|
|
6674
6799
|
* (`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
|
|
6800
|
+
* A standard's constant, not a limit.
|
|
6676
6801
|
*/
|
|
6677
6802
|
export declare const ARTIFACT_NAME_MAX = 255;
|
|
6678
6803
|
/**
|
|
@@ -6705,7 +6830,7 @@ export declare const ArtifactVersionViewSchema: z.ZodObject<{
|
|
|
6705
6830
|
export type ArtifactVersionView = z.infer<typeof ArtifactVersionViewSchema>;
|
|
6706
6831
|
/**
|
|
6707
6832
|
* 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
|
|
6833
|
+
* version is its bytes; a folder's is a manifest of paths to content-addressed files.
|
|
6709
6834
|
*/
|
|
6710
6835
|
export declare const ArtifactViewSchema: z.ZodObject<{
|
|
6711
6836
|
artifactId: z.ZodString;
|
|
@@ -6849,7 +6974,7 @@ export declare const UploadArtifactResponseSchema: z.ZodObject<{
|
|
|
6849
6974
|
}, z.core.$strict>;
|
|
6850
6975
|
export type UploadArtifactResponse = z.infer<typeof UploadArtifactResponseSchema>;
|
|
6851
6976
|
/**
|
|
6852
|
-
* `PUT /v1/files/sha256:{hex}`: a definition file the Runtime holds
|
|
6977
|
+
* `PUT /v1/files/sha256:{hex}`: a definition file the Runtime holds, named by the
|
|
6853
6978
|
* SHA-256 of its bytes. `201` stored it, `200` already had it.
|
|
6854
6979
|
*/
|
|
6855
6980
|
export declare const DefinitionFileViewSchema: z.ZodObject<{
|
|
@@ -6884,7 +7009,7 @@ export declare const FOLDER_CONTENT_TYPE = "application/vnd.nylorun.folder+json"
|
|
|
6884
7009
|
/** The manifest format a folder version is stored as. */
|
|
6885
7010
|
export declare const FOLDER_MANIFEST_FORMAT = "nylorun.folder.v1";
|
|
6886
7011
|
/**
|
|
6887
|
-
* The manifest format of an Environment's disk versions
|
|
7012
|
+
* The manifest format of an Environment's disk versions: v1's entries, plus file
|
|
6888
7013
|
* modes and modification times, symbolic links and empty directories. Readers accept both.
|
|
6889
7014
|
*/
|
|
6890
7015
|
export declare const FOLDER_MANIFEST_FORMAT_V2 = "nylorun.folder.v2";
|
|
@@ -6912,7 +7037,7 @@ export declare const FolderEntrySchema: z.ZodObject<{
|
|
|
6912
7037
|
export type FolderEntry = z.infer<typeof FolderEntrySchema>;
|
|
6913
7038
|
/**
|
|
6914
7039
|
* 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
|
|
7040
|
+
* bytes by SHA-256. The one manifest format for folders, reused by disk snapshots.
|
|
6916
7041
|
*/
|
|
6917
7042
|
export declare const FolderManifestSchema: z.ZodObject<{
|
|
6918
7043
|
format: z.ZodEnum<{
|
|
@@ -7065,7 +7190,7 @@ export declare const TenantSkillsViewSchema: z.ZodObject<{
|
|
|
7065
7190
|
}, z.core.$strict>;
|
|
7066
7191
|
export type TenantSkillsView = z.infer<typeof TenantSkillsViewSchema>;
|
|
7067
7192
|
/**
|
|
7068
|
-
* A Tenant's Runtime limits
|
|
7193
|
+
* A Tenant's Runtime limits, stored as Tenant setting `limits.config`: what
|
|
7069
7194
|
* one record entry, model call, model file, tool answer, harness state and Harness API chunk may
|
|
7070
7195
|
* hold. Each limit left out is its default (`RUNTIME_LIMIT_DEFAULTS`); none may pass its ceiling
|
|
7071
7196
|
* (`RUNTIME_LIMIT_CEILINGS`, a `400` naming it).
|
|
@@ -7361,6 +7486,17 @@ export declare const HistoryPageSchema: z.ZodObject<{
|
|
|
7361
7486
|
tail: z.ZodBoolean;
|
|
7362
7487
|
}, z.core.$strip>;
|
|
7363
7488
|
export type HistoryPage = z.infer<typeof HistoryPageSchema>;
|
|
7489
|
+
/**
|
|
7490
|
+
* A cost by the token kind it paid for, at the prices in force when the call was made:
|
|
7491
|
+
* uncached input, input read from the provider's cache, input written to it, and output.
|
|
7492
|
+
*/
|
|
7493
|
+
export declare const CostSplitSchema: z.ZodObject<{
|
|
7494
|
+
input: z.ZodNumber;
|
|
7495
|
+
cacheRead: z.ZodNumber;
|
|
7496
|
+
cacheWrite: z.ZodNumber;
|
|
7497
|
+
output: z.ZodNumber;
|
|
7498
|
+
}, z.core.$strict>;
|
|
7499
|
+
export type CostSplit = z.infer<typeof CostSplitSchema>;
|
|
7364
7500
|
export declare const SessionUsageTotalsSchema: z.ZodObject<{
|
|
7365
7501
|
inputTokens: z.ZodNumber;
|
|
7366
7502
|
outputTokens: z.ZodNumber;
|
|
@@ -7377,6 +7513,15 @@ export declare const SessionUsageTotalsSchema: z.ZodObject<{
|
|
|
7377
7513
|
unpricedCalls: z.ZodNumber;
|
|
7378
7514
|
unreportedCalls: z.ZodNumber;
|
|
7379
7515
|
unknownQualityCalls: z.ZodNumber;
|
|
7516
|
+
costSplit: z.ZodObject<{
|
|
7517
|
+
input: z.ZodNumber;
|
|
7518
|
+
cacheRead: z.ZodNumber;
|
|
7519
|
+
cacheWrite: z.ZodNumber;
|
|
7520
|
+
output: z.ZodNumber;
|
|
7521
|
+
}, z.core.$strict>;
|
|
7522
|
+
splitCalls: z.ZodNumber;
|
|
7523
|
+
modelTimeMs: z.ZodNumber;
|
|
7524
|
+
timedCalls: z.ZodNumber;
|
|
7380
7525
|
}, z.core.$strict>;
|
|
7381
7526
|
export type SessionUsageTotals = z.infer<typeof SessionUsageTotalsSchema>;
|
|
7382
7527
|
export declare const ModelCallSchema: z.ZodObject<{
|
|
@@ -7388,6 +7533,8 @@ export declare const ModelCallSchema: z.ZodObject<{
|
|
|
7388
7533
|
provider: z.ZodNullable<z.ZodString>;
|
|
7389
7534
|
model: z.ZodNullable<z.ZodString>;
|
|
7390
7535
|
at: z.ZodString;
|
|
7536
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
7537
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
7391
7538
|
outcome: z.ZodEnum<{
|
|
7392
7539
|
completed: "completed";
|
|
7393
7540
|
failed: "failed";
|
|
@@ -7403,6 +7550,12 @@ export declare const ModelCallSchema: z.ZodObject<{
|
|
|
7403
7550
|
duplicate: z.ZodBoolean;
|
|
7404
7551
|
tokensReported: z.ZodNullable<z.ZodBoolean>;
|
|
7405
7552
|
costKnown: z.ZodNullable<z.ZodBoolean>;
|
|
7553
|
+
costSplit: z.ZodNullable<z.ZodObject<{
|
|
7554
|
+
input: z.ZodNumber;
|
|
7555
|
+
cacheRead: z.ZodNumber;
|
|
7556
|
+
cacheWrite: z.ZodNumber;
|
|
7557
|
+
output: z.ZodNumber;
|
|
7558
|
+
}, z.core.$strict>>;
|
|
7406
7559
|
}, z.core.$strict>>;
|
|
7407
7560
|
}, z.core.$strict>;
|
|
7408
7561
|
export type ModelCall = z.infer<typeof ModelCallSchema>;
|
|
@@ -7416,6 +7569,8 @@ export declare const ModelCallsPageSchema: z.ZodObject<{
|
|
|
7416
7569
|
provider: z.ZodNullable<z.ZodString>;
|
|
7417
7570
|
model: z.ZodNullable<z.ZodString>;
|
|
7418
7571
|
at: z.ZodString;
|
|
7572
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
7573
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
7419
7574
|
outcome: z.ZodEnum<{
|
|
7420
7575
|
completed: "completed";
|
|
7421
7576
|
failed: "failed";
|
|
@@ -7431,6 +7586,12 @@ export declare const ModelCallsPageSchema: z.ZodObject<{
|
|
|
7431
7586
|
duplicate: z.ZodBoolean;
|
|
7432
7587
|
tokensReported: z.ZodNullable<z.ZodBoolean>;
|
|
7433
7588
|
costKnown: z.ZodNullable<z.ZodBoolean>;
|
|
7589
|
+
costSplit: z.ZodNullable<z.ZodObject<{
|
|
7590
|
+
input: z.ZodNumber;
|
|
7591
|
+
cacheRead: z.ZodNumber;
|
|
7592
|
+
cacheWrite: z.ZodNumber;
|
|
7593
|
+
output: z.ZodNumber;
|
|
7594
|
+
}, z.core.$strict>>;
|
|
7434
7595
|
}, z.core.$strict>>;
|
|
7435
7596
|
}, z.core.$strict>>;
|
|
7436
7597
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
@@ -7447,6 +7608,8 @@ export declare const ModelCallExportPageSchema: z.ZodObject<{
|
|
|
7447
7608
|
provider: z.ZodNullable<z.ZodString>;
|
|
7448
7609
|
model: z.ZodNullable<z.ZodString>;
|
|
7449
7610
|
at: z.ZodString;
|
|
7611
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
7612
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
7450
7613
|
outcome: z.ZodEnum<{
|
|
7451
7614
|
completed: "completed";
|
|
7452
7615
|
failed: "failed";
|
|
@@ -7462,6 +7625,12 @@ export declare const ModelCallExportPageSchema: z.ZodObject<{
|
|
|
7462
7625
|
duplicate: z.ZodBoolean;
|
|
7463
7626
|
tokensReported: z.ZodNullable<z.ZodBoolean>;
|
|
7464
7627
|
costKnown: z.ZodNullable<z.ZodBoolean>;
|
|
7628
|
+
costSplit: z.ZodNullable<z.ZodObject<{
|
|
7629
|
+
input: z.ZodNumber;
|
|
7630
|
+
cacheRead: z.ZodNumber;
|
|
7631
|
+
cacheWrite: z.ZodNumber;
|
|
7632
|
+
output: z.ZodNumber;
|
|
7633
|
+
}, z.core.$strict>>;
|
|
7465
7634
|
}, z.core.$strict>>;
|
|
7466
7635
|
}, z.core.$strict>>;
|
|
7467
7636
|
next: z.ZodNullable<z.ZodString>;
|
|
@@ -7470,9 +7639,9 @@ export declare const ModelCallExportPageSchema: z.ZodObject<{
|
|
|
7470
7639
|
}, z.core.$strict>;
|
|
7471
7640
|
export type ModelCallExportPage = z.infer<typeof ModelCallExportPageSchema>;
|
|
7472
7641
|
/**
|
|
7473
|
-
* One tool call of a session
|
|
7642
|
+
* One tool call of a session, read from the effect journal: what ran, with what input,
|
|
7474
7643
|
* how many sends, and how it ended. `invoking` while it runs. `uncertain` only for a call
|
|
7475
|
-
* recorded
|
|
7644
|
+
* recorded by an older Runtime. The output is in the session's log (`tool.completed`).
|
|
7476
7645
|
*/
|
|
7477
7646
|
export declare const ToolCallSchema: z.ZodObject<{
|
|
7478
7647
|
effectId: z.ZodString;
|
|
@@ -7554,13 +7723,13 @@ export declare const ToolCallsPageSchema: z.ZodObject<{
|
|
|
7554
7723
|
asOf: z.ZodString;
|
|
7555
7724
|
}, z.core.$strict>;
|
|
7556
7725
|
export type ToolCallsPage = z.infer<typeof ToolCallsPageSchema>;
|
|
7557
|
-
/** One OTLP attribute
|
|
7726
|
+
/** One OTLP attribute: a key and an `AnyValue` (`stringValue`, `intValue`, …). */
|
|
7558
7727
|
export declare const OtlpKeyValueSchema: z.ZodObject<{
|
|
7559
7728
|
key: z.ZodString;
|
|
7560
7729
|
value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7561
7730
|
}, z.core.$loose>;
|
|
7562
7731
|
/**
|
|
7563
|
-
* One span as OTLP/HTTP JSON encodes it
|
|
7732
|
+
* One span as OTLP/HTTP JSON encodes it: hex ids, times in nanoseconds as decimal strings,
|
|
7564
7733
|
* `kind` (1 internal, 3 client) and `status.code` (0 unset, 1 ok, 2 error) as numbers.
|
|
7565
7734
|
*/
|
|
7566
7735
|
export declare const OtlpSpanSchema: z.ZodObject<{
|
|
@@ -7582,7 +7751,7 @@ export declare const OtlpSpanSchema: z.ZodObject<{
|
|
|
7582
7751
|
}, z.core.$loose>;
|
|
7583
7752
|
export type OtlpSpan = z.infer<typeof OtlpSpanSchema>;
|
|
7584
7753
|
/**
|
|
7585
|
-
* A turn's trace (
|
|
7754
|
+
* A turn's trace (feature `traces`): the OTLP `ExportTraceServiceRequest` JSON the Runtime
|
|
7586
7755
|
* posts to a collector, built from the turn's log rows. One resource, one scope.
|
|
7587
7756
|
*/
|
|
7588
7757
|
export declare const TurnTraceSchema: z.ZodObject<{
|