@nylorun/core 0.22.0-beta → 0.23.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 +102 -0
- package/README.md +1 -1
- package/dist/compatibility.d.ts +32 -16
- package/dist/compatibility.js +33 -17
- package/dist/contracts.d.ts +531 -88
- package/dist/contracts.js +297 -199
- package/dist/define.d.ts +8 -12
- package/dist/define.js +7 -11
- package/dist/definition/assemble.d.ts +1 -3
- package/dist/definition/assemble.js +4 -8
- package/dist/definition/bound.d.ts +1 -1
- package/dist/definition/delegate.d.ts +5 -0
- package/dist/definition/delegate.js +6 -1
- package/dist/definition/from.d.ts +4 -2
- package/dist/definition/from.js +11 -29
- package/dist/definition/http-tool.d.ts +5 -3
- package/dist/definition/http-tool.js +8 -5
- package/dist/definition/manifest.d.ts +7 -6
- package/dist/definition/manifest.js +7 -6
- package/dist/definition/mcp.d.ts +1 -1
- package/dist/definition/media-reference.d.ts +2 -11
- package/dist/definition/media-reference.js +0 -12
- package/dist/definition/model-failure.js +1 -0
- package/dist/definition/removed.js +1 -0
- package/dist/definition/trace.d.ts +0 -7
- package/dist/definition/trace.js +0 -34
- package/dist/definition/variant.d.ts +1 -1
- package/dist/definition/variant.js +1 -3
- package/dist/harness-api/artifacts.d.ts +84 -0
- package/dist/harness-api/artifacts.js +128 -0
- package/dist/harness-api/gates.d.ts +0 -4
- package/dist/harness-api/gates.js +0 -4
- package/dist/harness-api/harness-api.schema.json +2422 -924
- package/dist/harness-api/index.d.ts +9 -6
- package/dist/harness-api/index.js +9 -6
- package/dist/harness-api/json-schema.js +5 -2
- package/dist/harness-api/mcp.d.ts +77 -30
- package/dist/harness-api/mcp.js +42 -25
- package/dist/harness-api/messages.d.ts +45 -17
- package/dist/harness-api/messages.js +20 -5
- package/dist/harness-api/schema.d.ts +538 -198
- package/dist/harness-api/schema.js +298 -59
- package/dist/harness-api/transcript.d.ts +8 -10
- package/dist/harness-api/transcript.js +27 -11
- package/dist/harness-api/transport.d.ts +7 -1
- package/dist/harness-api/transport.js +10 -7
- package/dist/schemas/agent-manifest.schema.json +5 -146
- package/dist/schemas/environment-manifest.schema.json +56 -16
- package/dist/types/manifest.d.ts +3 -13
- package/dist/types/model.d.ts +10 -5
- package/dist/utils/definition-files.d.ts +20 -6
- package/dist/utils/definition-files.js +31 -17
- package/dist/utils/file-systems.d.ts +20 -0
- package/dist/utils/file-systems.js +20 -0
- package/dist/utils/harness-id.d.ts +4 -1
- package/dist/utils/harness-id.js +4 -1
- package/dist/utils/media-types.d.ts +30 -0
- package/dist/utils/media-types.js +128 -0
- package/dist/utils/runtime-limits.d.ts +229 -0
- package/dist/utils/runtime-limits.js +482 -0
- package/dist/utils/runtime-tools.d.ts +8 -16
- package/dist/utils/runtime-tools.js +8 -27
- package/dist/utils/sandbox.d.ts +4 -1
- package/dist/utils/sandbox.js +4 -1
- package/package.json +1 -1
- package/dist/definition/deferred-tools.d.ts +0 -27
- package/dist/definition/deferred-tools.js +0 -82
- package/dist/definition/runtime-manifest.d.ts +0 -30
- package/dist/definition/runtime-manifest.js +0 -132
- package/dist/definition/sandbox-tools.d.ts +0 -5
- package/dist/definition/sandbox-tools.js +0 -109
- package/dist/definition/skill-tools.d.ts +0 -23
- package/dist/definition/skill-tools.js +0 -76
package/dist/contracts.d.ts
CHANGED
|
@@ -3,17 +3,27 @@ import { z } from "zod";
|
|
|
3
3
|
import type { AgentManifest, McpServerManifest } from "./types/manifest.js";
|
|
4
4
|
import type { JsonValue } from "./types/shared.js";
|
|
5
5
|
import type { WorkflowManifest } from "./types/workflow.js";
|
|
6
|
+
export { FILE_NAME_MAX, FILE_PATH_MAX } from "./utils/file-systems.js";
|
|
6
7
|
import { DEFAULT_HARNESS, HARNESS_ID_PATTERN, isHarnessId } from "./utils/harness-id.js";
|
|
7
8
|
export { DEFAULT_HARNESS, HARNESS_ID_PATTERN, isHarnessId };
|
|
8
9
|
export type { AgentManifest } from "./types/manifest.js";
|
|
9
10
|
export type { WorkflowManifest } from "./types/workflow.js";
|
|
10
11
|
export { PROTOCOL_VERSION, ERROR_CODES } from "./compatibility.js";
|
|
11
|
-
export {
|
|
12
|
+
export { SKILL_TOTAL_BYTES_DEFAULT, definitionFilesOf, isDefinitionFileHash, skillsOf, } from "./utils/definition-files.js";
|
|
13
|
+
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";
|
|
14
|
+
export { DEFAULT_CONTENT_TYPE, MODEL_IMAGE_TYPES, contentTypeFor, essence, extensionFor, inputLabel, isModelImage, isOffice, isText, modelInputOf, normalizeContentType, } from "./utils/media-types.js";
|
|
12
15
|
export type { ErrorCode } from "./compatibility.js";
|
|
13
16
|
export declare const RequestIdSchema: z.ZodString;
|
|
17
|
+
/** At most 256 characters: an identifier's grammar is the protocol's (it crosses the Runtime API, the Harness API and tokens, and means the same in every installation), so its length is a constant of protocol 15, not a setting. */
|
|
14
18
|
export declare const IdempotencyKeySchema: z.ZodString;
|
|
15
19
|
/** A remote MCP server as a manifest declares it (`streamable-http` or `sse`). */
|
|
16
20
|
export declare const McpServerManifestSchema: z.ZodType<McpServerManifest>;
|
|
21
|
+
/**
|
|
22
|
+
* An environment variable name a shell secret or plain variable may take (R2c, D50): a POSIX
|
|
23
|
+
* name, of any length (POSIX and Linux set none; a request's body bounds it). Names the sandbox
|
|
24
|
+
* needs for itself (the proxy, the trust store, `PATH`, `HOME`) and `NYLORUN_*` are reserved.
|
|
25
|
+
*/
|
|
26
|
+
export declare const ENVIRONMENT_NAME_PATTERN: RegExp;
|
|
17
27
|
/**
|
|
18
28
|
* An agent's manifest (manifest v7). Its output is checked against `AgentManifest` here and below
|
|
19
29
|
* (`ManifestDrift`): the hand-written type keeps its read-only fields and its docs.
|
|
@@ -30,6 +40,11 @@ export declare const PutAgentRequestSchema: z.ZodObject<{
|
|
|
30
40
|
implementationVersion: z.ZodString;
|
|
31
41
|
}, z.core.$strict>;
|
|
32
42
|
export type PutAgentRequest = z.infer<typeof PutAgentRequestSchema>;
|
|
43
|
+
/**
|
|
44
|
+
* An identifier's grammar is the protocol's (B15): it crosses the Runtime API, tokens and grants
|
|
45
|
+
* and means the same in every installation, so its length is a constant of protocol 15, not a
|
|
46
|
+
* setting.
|
|
47
|
+
*/
|
|
33
48
|
export declare const ENVIRONMENT_ID_MAX_LENGTH = 200;
|
|
34
49
|
export declare function isEnvironmentId(value: unknown): value is string;
|
|
35
50
|
/** An Environment grant: an exact Environment id, or a prefix ending in `/*` (`team-a/*`). */
|
|
@@ -50,8 +65,11 @@ export declare const ENVIRONMENT_KINDS: readonly ["virtual", "pod", "none"];
|
|
|
50
65
|
export type EnvironmentKind = (typeof ENVIRONMENT_KINDS)[number];
|
|
51
66
|
/** The kinds with a sandbox (a disk and the sandbox tools). */
|
|
52
67
|
export type SandboxKind = Exclude<EnvironmentKind, "none">;
|
|
53
|
-
|
|
54
|
-
|
|
68
|
+
/**
|
|
69
|
+
* The developer's own key-value pairs; the Runtime stores and filters them, never reads them. How
|
|
70
|
+
* many, and how long a key and a value may be, are the Tenant's Runtime limits
|
|
71
|
+
* `environmentLabels`, `labelKeyChars` and `labelValueChars`, checked when they are set.
|
|
72
|
+
*/
|
|
55
73
|
export declare const EnvironmentLabelsSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
56
74
|
export type EnvironmentLabels = z.infer<typeof EnvironmentLabelsSchema>;
|
|
57
75
|
/** A harness id (track R4): what a harness names itself in `hello`. */
|
|
@@ -67,10 +85,11 @@ export declare const EnvironmentLifecycleSchema: z.ZodObject<{
|
|
|
67
85
|
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
68
86
|
}, z.core.$strict>;
|
|
69
87
|
export type EnvironmentLifecycle = z.infer<typeof EnvironmentLifecycleSchema>;
|
|
70
|
-
/**
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
88
|
+
/**
|
|
89
|
+
* The default of a setup command's `timeout` setting. The longest one may ask for is the Tenant's
|
|
90
|
+
* Runtime limit `setupCommandMs`.
|
|
91
|
+
*/
|
|
92
|
+
export declare const ENVIRONMENT_SETUP_TIMEOUT_DEFAULT = "10m";
|
|
74
93
|
/**
|
|
75
94
|
* One setup command (pods only): run with `/bin/sh -c` when the pod's disk is made or reset,
|
|
76
95
|
* before the engine takes a turn, with the Environment's variables, secrets (as the sentinel)
|
|
@@ -82,17 +101,10 @@ export declare const EnvironmentSetupCommandSchema: z.ZodObject<{
|
|
|
82
101
|
timeout: z.ZodOptional<z.ZodString>;
|
|
83
102
|
}, z.core.$strict>;
|
|
84
103
|
export type EnvironmentSetupCommand = z.infer<typeof EnvironmentSetupCommandSchema>;
|
|
85
|
-
/**
|
|
86
|
-
* One input file (pods only): a version of a Tenant-wide artifact, copied in when the pod's disk
|
|
87
|
-
* is made or reset, before the setup commands. A file artifact is written at `path`; a folder
|
|
88
|
-
* artifact is unpacked under it.
|
|
89
|
-
*/
|
|
90
|
-
/** The most files one `files` entry by hash names (Q6). */
|
|
91
|
-
export declare const ENVIRONMENT_FILES_MAX = 1000;
|
|
92
104
|
/**
|
|
93
105
|
* One input file entry (pods only): an artifact version copied to `path` (a file artifact, or a
|
|
94
106
|
* folder's files under it), or (Q6) files by content hash, each `sha256:<hex>` of a definition
|
|
95
|
-
* file the Tenant holds (`PUT /v1/files/sha256:<hex>`, at most
|
|
107
|
+
* file the Tenant holds (`PUT /v1/files/sha256:<hex>`, at most 2 GiB each), copied under `path`
|
|
96
108
|
* at its relative path. A manifest by hash moves to another Tenant with its files.
|
|
97
109
|
*/
|
|
98
110
|
export declare const EnvironmentFileSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -115,6 +127,26 @@ export declare function parseEnvironmentManifestRef(ref: string): {
|
|
|
115
127
|
version?: number;
|
|
116
128
|
} | undefined;
|
|
117
129
|
export declare const EnvironmentManifestRefSchema: z.ZodString;
|
|
130
|
+
/**
|
|
131
|
+
* What an Environment's artifacts, its sessions' skills and its disk versions may hold: part of
|
|
132
|
+
* its manifest, fixed for its life. Each limit left out is the Tenant's (`/v1/tenant/artifacts`,
|
|
133
|
+
* `/v1/tenant/skills`, `/v1/tenant/limits`) as it is when the limit is checked, and none may be
|
|
134
|
+
* above the Tenant's.
|
|
135
|
+
*/
|
|
136
|
+
export declare const EnvironmentLimitsSchema: z.ZodObject<{
|
|
137
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
138
|
+
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
140
|
+
}, z.core.$strict>>;
|
|
141
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
142
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
}, z.core.$strict>>;
|
|
144
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
145
|
+
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
146
|
+
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
147
|
+
}, z.core.$strict>>;
|
|
148
|
+
}, z.core.$strict>;
|
|
149
|
+
export type EnvironmentLimits = z.infer<typeof EnvironmentLimitsSchema>;
|
|
118
150
|
/**
|
|
119
151
|
* `PUT /v1/environments/{environmentId}`: creates the Environment and its vault, or finds the
|
|
120
152
|
* one with this id, so "get or create" is one call. An Environment is made from one version of an
|
|
@@ -161,6 +193,19 @@ export declare const PutEnvironmentRequestSchema: z.ZodObject<{
|
|
|
161
193
|
path: z.ZodString;
|
|
162
194
|
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
163
195
|
}, z.core.$strict>]>>>;
|
|
196
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
197
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
198
|
+
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
199
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
200
|
+
}, z.core.$strict>>;
|
|
201
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
202
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
203
|
+
}, z.core.$strict>>;
|
|
204
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
206
|
+
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
207
|
+
}, z.core.$strict>>;
|
|
208
|
+
}, z.core.$strict>>;
|
|
164
209
|
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
165
210
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
166
211
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -231,6 +276,19 @@ export declare const EnvironmentRecipeSchema: z.ZodObject<{
|
|
|
231
276
|
path: z.ZodString;
|
|
232
277
|
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
233
278
|
}, z.core.$strict>]>>>;
|
|
279
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
280
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
281
|
+
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
282
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
283
|
+
}, z.core.$strict>>;
|
|
284
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
285
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
286
|
+
}, z.core.$strict>>;
|
|
287
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
288
|
+
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
289
|
+
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
290
|
+
}, z.core.$strict>>;
|
|
291
|
+
}, z.core.$strict>>;
|
|
234
292
|
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
235
293
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
236
294
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -338,6 +396,19 @@ export declare const EnvironmentViewSchema: z.ZodObject<{
|
|
|
338
396
|
path: z.ZodString;
|
|
339
397
|
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
340
398
|
}, z.core.$strict>]>>>;
|
|
399
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
400
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
401
|
+
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
402
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
403
|
+
}, z.core.$strict>>;
|
|
404
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
405
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
406
|
+
}, z.core.$strict>>;
|
|
407
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
408
|
+
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
409
|
+
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
410
|
+
}, z.core.$strict>>;
|
|
411
|
+
}, z.core.$strict>>;
|
|
341
412
|
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
342
413
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
343
414
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -374,6 +445,19 @@ export declare const EnvironmentViewSchema: z.ZodObject<{
|
|
|
374
445
|
manifestName: z.ZodOptional<z.ZodString>;
|
|
375
446
|
manifestVersion: z.ZodOptional<z.ZodNumber>;
|
|
376
447
|
manifestHash: z.ZodOptional<z.ZodString>;
|
|
448
|
+
limits: z.ZodObject<{
|
|
449
|
+
artifacts: z.ZodObject<{
|
|
450
|
+
fileBytes: z.ZodNumber;
|
|
451
|
+
totalBytes: z.ZodNumber;
|
|
452
|
+
}, z.core.$strict>;
|
|
453
|
+
skills: z.ZodObject<{
|
|
454
|
+
totalBytes: z.ZodNumber;
|
|
455
|
+
}, z.core.$strict>;
|
|
456
|
+
disk: z.ZodObject<{
|
|
457
|
+
versionBytes: z.ZodNumber;
|
|
458
|
+
versionEntries: z.ZodNumber;
|
|
459
|
+
}, z.core.$strict>;
|
|
460
|
+
}, z.core.$strict>;
|
|
377
461
|
forkedFrom: z.ZodOptional<z.ZodObject<{
|
|
378
462
|
environment: z.ZodString;
|
|
379
463
|
disk: z.ZodNullable<z.ZodNumber>;
|
|
@@ -507,6 +591,19 @@ export declare const ListEnvironmentsResponseSchema: z.ZodObject<{
|
|
|
507
591
|
path: z.ZodString;
|
|
508
592
|
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
509
593
|
}, z.core.$strict>]>>>;
|
|
594
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
595
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
596
|
+
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
597
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
598
|
+
}, z.core.$strict>>;
|
|
599
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
600
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
601
|
+
}, z.core.$strict>>;
|
|
602
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
603
|
+
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
604
|
+
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
605
|
+
}, z.core.$strict>>;
|
|
606
|
+
}, z.core.$strict>>;
|
|
510
607
|
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
511
608
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
512
609
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -543,6 +640,19 @@ export declare const ListEnvironmentsResponseSchema: z.ZodObject<{
|
|
|
543
640
|
manifestName: z.ZodOptional<z.ZodString>;
|
|
544
641
|
manifestVersion: z.ZodOptional<z.ZodNumber>;
|
|
545
642
|
manifestHash: z.ZodOptional<z.ZodString>;
|
|
643
|
+
limits: z.ZodObject<{
|
|
644
|
+
artifacts: z.ZodObject<{
|
|
645
|
+
fileBytes: z.ZodNumber;
|
|
646
|
+
totalBytes: z.ZodNumber;
|
|
647
|
+
}, z.core.$strict>;
|
|
648
|
+
skills: z.ZodObject<{
|
|
649
|
+
totalBytes: z.ZodNumber;
|
|
650
|
+
}, z.core.$strict>;
|
|
651
|
+
disk: z.ZodObject<{
|
|
652
|
+
versionBytes: z.ZodNumber;
|
|
653
|
+
versionEntries: z.ZodNumber;
|
|
654
|
+
}, z.core.$strict>;
|
|
655
|
+
}, z.core.$strict>;
|
|
546
656
|
forkedFrom: z.ZodOptional<z.ZodObject<{
|
|
547
657
|
environment: z.ZodString;
|
|
548
658
|
disk: z.ZodNullable<z.ZodNumber>;
|
|
@@ -889,16 +999,14 @@ export declare const CredentialIdentitySchema: z.ZodObject<{
|
|
|
889
999
|
header: z.ZodString;
|
|
890
1000
|
}, z.core.$strict>;
|
|
891
1001
|
export type CredentialIdentity = z.infer<typeof CredentialIdentitySchema>;
|
|
892
|
-
/**
|
|
893
|
-
* An environment variable name a shell secret or plain variable may take (R2c, D50): a POSIX
|
|
894
|
-
* name. Names the sandbox needs for itself (the proxy, the trust store, `PATH`, `HOME`) and
|
|
895
|
-
* `NYLORUN_*` are reserved.
|
|
896
|
-
*/
|
|
897
|
-
export declare const ENVIRONMENT_NAME_PATTERN: RegExp;
|
|
898
1002
|
export declare const RESERVED_ENVIRONMENT_NAMES: ReadonlySet<string>;
|
|
899
1003
|
export declare function isReservedEnvironmentName(name: string): boolean;
|
|
900
|
-
/**
|
|
901
|
-
|
|
1004
|
+
/**
|
|
1005
|
+
* The value a sandbox sees for every `environment_secret` (R2c, D50): never the secret. Word
|
|
1006
|
+
* characters only, so CLIs that check a token's format before sending it (the Vercel CLI
|
|
1007
|
+
* refuses anything matching `\W`) still send the request egress-gate sets the header on.
|
|
1008
|
+
*/
|
|
1009
|
+
export declare const ENVIRONMENT_SECRET_SENTINEL = "nylorun_managed";
|
|
902
1010
|
/**
|
|
903
1011
|
* How egress-gate writes an `environment_secret` into a request (R2c, D50): one header, set on
|
|
904
1012
|
* every request to a bound host. `format` is text with `{value}` once, optionally inside a
|
|
@@ -917,7 +1025,12 @@ export declare const EnvironmentSecretInjectSchema: z.ZodObject<{
|
|
|
917
1025
|
format: z.ZodString;
|
|
918
1026
|
}, z.core.$strict>;
|
|
919
1027
|
export type EnvironmentSecretInject = z.infer<typeof EnvironmentSecretInjectSchema>;
|
|
920
|
-
/**
|
|
1028
|
+
/**
|
|
1029
|
+
* The name of a credential for a tool (`bearer` or `headers`): a label of 1–64 characters.
|
|
1030
|
+
* An identifier's grammar is the protocol's (B15): it crosses the Runtime API, tokens and grants
|
|
1031
|
+
* and means the same in every installation, so its length is a constant of protocol 15, not a
|
|
1032
|
+
* setting.
|
|
1033
|
+
*/
|
|
921
1034
|
export declare const TOOL_SECRET_NAME_PATTERN: RegExp;
|
|
922
1035
|
/**
|
|
923
1036
|
* `PUT /v1/environments/{environmentId}/secrets/{name}` (D56): creates or replaces one credential
|
|
@@ -1011,8 +1124,7 @@ export declare const EnvironmentSecretSlotSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1011
1124
|
url: z.ZodString;
|
|
1012
1125
|
}, z.core.$strict>], "type">;
|
|
1013
1126
|
export type EnvironmentSecretSlot = z.infer<typeof EnvironmentSecretSlotSchema>;
|
|
1014
|
-
/**
|
|
1015
|
-
export declare const ENVIRONMENT_SECRET_SLOTS_MAX = 64;
|
|
1127
|
+
/** A manifest's secret slots: at most the Tenant's Runtime limit `environmentSecretSlots`. */
|
|
1016
1128
|
export declare const EnvironmentSecretSlotsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1017
1129
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1018
1130
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1090,6 +1202,19 @@ export declare const EnvironmentManifestSchema: z.ZodObject<{
|
|
|
1090
1202
|
path: z.ZodString;
|
|
1091
1203
|
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
1092
1204
|
}, z.core.$strict>]>>>;
|
|
1205
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1206
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
1207
|
+
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
1208
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
1209
|
+
}, z.core.$strict>>;
|
|
1210
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
1211
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
1212
|
+
}, z.core.$strict>>;
|
|
1213
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
1214
|
+
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
1215
|
+
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
1216
|
+
}, z.core.$strict>>;
|
|
1217
|
+
}, z.core.$strict>>;
|
|
1093
1218
|
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1094
1219
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1095
1220
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1161,6 +1286,19 @@ export declare const PutEnvironmentManifestRequestSchema: z.ZodObject<{
|
|
|
1161
1286
|
path: z.ZodString;
|
|
1162
1287
|
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
1163
1288
|
}, z.core.$strict>]>>>;
|
|
1289
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1290
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
1291
|
+
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
1292
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
1293
|
+
}, z.core.$strict>>;
|
|
1294
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
1295
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
1296
|
+
}, z.core.$strict>>;
|
|
1297
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
1298
|
+
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
1299
|
+
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
1300
|
+
}, z.core.$strict>>;
|
|
1301
|
+
}, z.core.$strict>>;
|
|
1164
1302
|
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1165
1303
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1166
1304
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1241,6 +1379,19 @@ export declare const EnvironmentManifestViewSchema: z.ZodObject<{
|
|
|
1241
1379
|
path: z.ZodString;
|
|
1242
1380
|
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
1243
1381
|
}, z.core.$strict>]>>>;
|
|
1382
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1383
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
1384
|
+
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
1385
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
1386
|
+
}, z.core.$strict>>;
|
|
1387
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
1388
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
1389
|
+
}, z.core.$strict>>;
|
|
1390
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
1391
|
+
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
1392
|
+
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
1393
|
+
}, z.core.$strict>>;
|
|
1394
|
+
}, z.core.$strict>>;
|
|
1244
1395
|
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1245
1396
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1246
1397
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1323,6 +1474,19 @@ export declare const ListEnvironmentManifestsResponseSchema: z.ZodObject<{
|
|
|
1323
1474
|
path: z.ZodString;
|
|
1324
1475
|
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
1325
1476
|
}, z.core.$strict>]>>>;
|
|
1477
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1478
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
1479
|
+
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
1480
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
1481
|
+
}, z.core.$strict>>;
|
|
1482
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
1483
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
1484
|
+
}, z.core.$strict>>;
|
|
1485
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
1486
|
+
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
1487
|
+
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
1488
|
+
}, z.core.$strict>>;
|
|
1489
|
+
}, z.core.$strict>>;
|
|
1326
1490
|
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1327
1491
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1328
1492
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1451,6 +1615,19 @@ export declare const SaveEnvironmentManifestResponseSchema: z.ZodObject<{
|
|
|
1451
1615
|
path: z.ZodString;
|
|
1452
1616
|
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
1453
1617
|
}, z.core.$strict>]>>>;
|
|
1618
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1619
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
1620
|
+
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
1621
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
1622
|
+
}, z.core.$strict>>;
|
|
1623
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
1624
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
1625
|
+
}, z.core.$strict>>;
|
|
1626
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
1627
|
+
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
1628
|
+
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
1629
|
+
}, z.core.$strict>>;
|
|
1630
|
+
}, z.core.$strict>>;
|
|
1454
1631
|
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1455
1632
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1456
1633
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1616,6 +1793,19 @@ export declare const ForkEnvironmentResponseSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1616
1793
|
path: z.ZodString;
|
|
1617
1794
|
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
1618
1795
|
}, z.core.$strict>]>>>;
|
|
1796
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1797
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
1798
|
+
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
1799
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
1800
|
+
}, z.core.$strict>>;
|
|
1801
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
1802
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
1803
|
+
}, z.core.$strict>>;
|
|
1804
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
1805
|
+
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
1806
|
+
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
1807
|
+
}, z.core.$strict>>;
|
|
1808
|
+
}, z.core.$strict>>;
|
|
1619
1809
|
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1620
1810
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1621
1811
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1652,6 +1842,19 @@ export declare const ForkEnvironmentResponseSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1652
1842
|
manifestName: z.ZodOptional<z.ZodString>;
|
|
1653
1843
|
manifestVersion: z.ZodOptional<z.ZodNumber>;
|
|
1654
1844
|
manifestHash: z.ZodOptional<z.ZodString>;
|
|
1845
|
+
limits: z.ZodObject<{
|
|
1846
|
+
artifacts: z.ZodObject<{
|
|
1847
|
+
fileBytes: z.ZodNumber;
|
|
1848
|
+
totalBytes: z.ZodNumber;
|
|
1849
|
+
}, z.core.$strict>;
|
|
1850
|
+
skills: z.ZodObject<{
|
|
1851
|
+
totalBytes: z.ZodNumber;
|
|
1852
|
+
}, z.core.$strict>;
|
|
1853
|
+
disk: z.ZodObject<{
|
|
1854
|
+
versionBytes: z.ZodNumber;
|
|
1855
|
+
versionEntries: z.ZodNumber;
|
|
1856
|
+
}, z.core.$strict>;
|
|
1857
|
+
}, z.core.$strict>;
|
|
1655
1858
|
forkedFrom: z.ZodOptional<z.ZodObject<{
|
|
1656
1859
|
environment: z.ZodString;
|
|
1657
1860
|
disk: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1747,11 +1950,20 @@ export declare const ModelInputSchema: z.ZodEnum<{
|
|
|
1747
1950
|
video: "video";
|
|
1748
1951
|
}>;
|
|
1749
1952
|
export type ModelInput = z.infer<typeof ModelInputSchema>;
|
|
1953
|
+
/**
|
|
1954
|
+
* The defaults of a custom endpoint's `contextWindow` and `maxTokens` settings (and the window
|
|
1955
|
+
* assumed for a model the Runtime knows nothing of): small, since an early compaction beats a
|
|
1956
|
+
* failed call.
|
|
1957
|
+
*/
|
|
1958
|
+
export declare const CUSTOM_MODEL_SETTING_DEFAULTS: Readonly<{
|
|
1959
|
+
contextWindow: 32768;
|
|
1960
|
+
maxTokens: 8192;
|
|
1961
|
+
}>;
|
|
1750
1962
|
/**
|
|
1751
1963
|
* What the Runtime cannot learn from a custom OpenAI-compatible endpoint (Model Calls §7):
|
|
1752
|
-
* its context window and output limit
|
|
1753
|
-
* only) and pi-ai `compat` settings
|
|
1754
|
-
* `chatTemplateKwargs`, …).
|
|
1964
|
+
* its context window and output limit (default `CUSTOM_MODEL_SETTING_DEFAULTS`), whether it
|
|
1965
|
+
* reasons, what it reads (`inputs`; default text only) and pi-ai `compat` settings
|
|
1966
|
+
* (`thinkingFormat`, `thinkingTokenBudgetField`, `chatTemplateKwargs`, …).
|
|
1755
1967
|
*/
|
|
1756
1968
|
export declare const CustomModelSettingsSchema: z.ZodObject<{
|
|
1757
1969
|
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2013,8 +2225,6 @@ export declare const CredentialCoverageSchema: z.ZodObject<{
|
|
|
2013
2225
|
}, z.core.$strict>>;
|
|
2014
2226
|
}, z.core.$strict>;
|
|
2015
2227
|
export type CredentialCoverage = z.infer<typeof CredentialCoverageSchema>;
|
|
2016
|
-
/** The most parts one message may carry (protocol 6). */
|
|
2017
|
-
export declare const MAX_MESSAGE_PARTS = 32;
|
|
2018
2228
|
/**
|
|
2019
2229
|
* One part of a user message (protocol 6): text, or a file by artifact id. A file part without
|
|
2020
2230
|
* `version` means the artifact's latest version when the message is accepted; the Runtime pins
|
|
@@ -2381,7 +2591,6 @@ export type AcceptedResponse = z.infer<typeof AcceptedResponseSchema>;
|
|
|
2381
2591
|
export declare const RejectedResponseSchema: z.ZodObject<{
|
|
2382
2592
|
status: z.ZodLiteral<"rejected">;
|
|
2383
2593
|
code: z.ZodEnum<{
|
|
2384
|
-
attachment_unsupported: "attachment_unsupported";
|
|
2385
2594
|
connection_missing: "connection_missing";
|
|
2386
2595
|
credential_conflict: "credential_conflict";
|
|
2387
2596
|
credential_invalid: "credential_invalid";
|
|
@@ -2528,9 +2737,10 @@ export declare const ModelFailedPayloadSchema: z.ZodObject<{
|
|
|
2528
2737
|
retryable: z.ZodBoolean;
|
|
2529
2738
|
}, z.core.$loose>;
|
|
2530
2739
|
/**
|
|
2531
|
-
* `context.compacted`: the
|
|
2532
|
-
* (Model Calls §8)
|
|
2533
|
-
*
|
|
2740
|
+
* `context.compacted`: the harness summarized older history to fit the model's window
|
|
2741
|
+
* (Model Calls §8), and said so with the transcript edit that replaced it (`kind: "compaction"`,
|
|
2742
|
+
* protocol 15). Token counts are the harness's estimates; `invocationId` and the model facts are
|
|
2743
|
+
* the last summary call's. Written once per compaction, when the segment's edit is recorded.
|
|
2534
2744
|
*/
|
|
2535
2745
|
export declare const ContextCompactedPayloadSchema: z.ZodObject<{
|
|
2536
2746
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -2559,17 +2769,15 @@ export declare const ContextCompactedPayloadSchema: z.ZodObject<{
|
|
|
2559
2769
|
}>;
|
|
2560
2770
|
tokensBefore: z.ZodNumber;
|
|
2561
2771
|
tokensAfter: z.ZodNumber;
|
|
2562
|
-
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2563
2772
|
}, z.core.$loose>;
|
|
2564
2773
|
/** How a tool call ended (R5.1): the tool answered, the Runtime ended it, or a cancel did. */
|
|
2565
2774
|
export declare const TOOL_CALL_STATUSES: readonly ["completed", "failed", "cancelled"];
|
|
2566
|
-
/** Where a tool call ran (R5.1): a remote MCP server, an HTTP tool, the sandbox, or core. */
|
|
2567
2775
|
/**
|
|
2568
|
-
* Where a tool call
|
|
2569
|
-
*
|
|
2570
|
-
*
|
|
2776
|
+
* Where a tool call ran (R5.1), its effect's target kind (protocol 15): an MCP server, an HTTP
|
|
2777
|
+
* tool's URL, the session's sandbox, or the harness that runs the turn (`harness`: a tool it runs
|
|
2778
|
+
* in its own process, such as our engine's skill, artifact and `tool_search` tools).
|
|
2571
2779
|
*/
|
|
2572
|
-
export declare const TOOL_CALL_KINDS: readonly ["mcp", "http", "sandbox", "
|
|
2780
|
+
export declare const TOOL_CALL_KINDS: readonly ["mcp", "http", "sandbox", "harness"];
|
|
2573
2781
|
/**
|
|
2574
2782
|
* What the Tenant's tool policy did with a tool call (R5 step 2), when it did more than allow
|
|
2575
2783
|
* it: `deny` refused it unsent; `ask` held it for a person, who approved it (`approvedBy`, when
|
|
@@ -2610,10 +2818,10 @@ export declare const ToolCompletedPayloadSchema: z.ZodObject<{
|
|
|
2610
2818
|
harness: "harness";
|
|
2611
2819
|
http: "http";
|
|
2612
2820
|
mcp: "mcp";
|
|
2613
|
-
platform: "platform";
|
|
2614
2821
|
sandbox: "sandbox";
|
|
2615
2822
|
}>>;
|
|
2616
2823
|
server: z.ZodOptional<z.ZodString>;
|
|
2824
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
2617
2825
|
skill: z.ZodOptional<z.ZodString>;
|
|
2618
2826
|
plugin: z.ZodOptional<z.ZodObject<{
|
|
2619
2827
|
name: z.ZodString;
|
|
@@ -2791,7 +2999,6 @@ declare const TRANSCRIPT_PAYLOADS: {
|
|
|
2791
2999
|
}>;
|
|
2792
3000
|
tokensBefore: z.ZodNumber;
|
|
2793
3001
|
tokensAfter: z.ZodNumber;
|
|
2794
|
-
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2795
3002
|
}, z.core.$loose>;
|
|
2796
3003
|
readonly "tool.completed": z.ZodObject<{
|
|
2797
3004
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -2812,10 +3019,10 @@ declare const TRANSCRIPT_PAYLOADS: {
|
|
|
2812
3019
|
harness: "harness";
|
|
2813
3020
|
http: "http";
|
|
2814
3021
|
mcp: "mcp";
|
|
2815
|
-
platform: "platform";
|
|
2816
3022
|
sandbox: "sandbox";
|
|
2817
3023
|
}>>;
|
|
2818
3024
|
server: z.ZodOptional<z.ZodString>;
|
|
3025
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
2819
3026
|
skill: z.ZodOptional<z.ZodString>;
|
|
2820
3027
|
plugin: z.ZodOptional<z.ZodObject<{
|
|
2821
3028
|
name: z.ZodString;
|
|
@@ -3051,9 +3258,10 @@ export declare const TranscriptUpdatedPayloadSchema: z.ZodObject<{
|
|
|
3051
3258
|
length: z.ZodNumber;
|
|
3052
3259
|
}, z.core.$loose>;
|
|
3053
3260
|
/**
|
|
3054
|
-
* Where an artifact version's bytes came from: a client's upload,
|
|
3055
|
-
*
|
|
3056
|
-
*
|
|
3261
|
+
* Where an artifact version's bytes came from: a client's upload, a harness over the artifact
|
|
3262
|
+
* seam (our engine's `save_artifact`, its tool results and its outputs folder), an Environment's
|
|
3263
|
+
* disk version (`snapshot`), or core's turn-end export of a sandbox's outputs, which versions
|
|
3264
|
+
* before protocol 15 name (`export`).
|
|
3057
3265
|
*/
|
|
3058
3266
|
export declare const ArtifactSourceSchema: z.ZodEnum<{
|
|
3059
3267
|
engine: "engine";
|
|
@@ -3102,8 +3310,12 @@ export declare const ArtifactDeletedPayloadSchema: z.ZodObject<{
|
|
|
3102
3310
|
artifactId: z.ZodString;
|
|
3103
3311
|
name: z.ZodString;
|
|
3104
3312
|
}, z.core.$loose>;
|
|
3105
|
-
/**
|
|
3313
|
+
/**
|
|
3314
|
+
* Why the turn-end save of a session's outputs folder stored nothing although the sandbox had
|
|
3315
|
+
* outputs: our engine's claim (protocol 15), with the limit it met.
|
|
3316
|
+
*/
|
|
3106
3317
|
export declare const ArtifactExportSkipReasonSchema: z.ZodEnum<{
|
|
3318
|
+
environment_total: "environment_total";
|
|
3107
3319
|
file_too_large: "file_too_large";
|
|
3108
3320
|
tenant_total: "tenant_total";
|
|
3109
3321
|
too_large: "too_large";
|
|
@@ -3117,6 +3329,7 @@ export type ArtifactExportSkipReason = z.infer<typeof ArtifactExportSkipReasonSc
|
|
|
3117
3329
|
export declare const ArtifactExportSkippedPayloadSchema: z.ZodObject<{
|
|
3118
3330
|
name: z.ZodString;
|
|
3119
3331
|
reason: z.ZodEnum<{
|
|
3332
|
+
environment_total: "environment_total";
|
|
3120
3333
|
file_too_large: "file_too_large";
|
|
3121
3334
|
tenant_total: "tenant_total";
|
|
3122
3335
|
too_large: "too_large";
|
|
@@ -3127,8 +3340,9 @@ export declare const ArtifactExportSkippedPayloadSchema: z.ZodObject<{
|
|
|
3127
3340
|
path: z.ZodOptional<z.ZodString>;
|
|
3128
3341
|
}, z.core.$loose>;
|
|
3129
3342
|
/**
|
|
3130
|
-
* `artifact.export.failed`: the turn-end
|
|
3131
|
-
* failed). The turn itself completed; the next turn
|
|
3343
|
+
* `artifact.export.failed`: the turn-end save of the outputs folder could not finish (the sandbox
|
|
3344
|
+
* or the artifact seam failed), as our engine claims it. The turn itself completed; the next turn
|
|
3345
|
+
* saves again.
|
|
3132
3346
|
*/
|
|
3133
3347
|
export declare const ArtifactExportFailedPayloadSchema: z.ZodObject<{
|
|
3134
3348
|
name: z.ZodString;
|
|
@@ -3149,14 +3363,9 @@ export declare const McpServerOutcomeSchema: z.ZodObject<{
|
|
|
3149
3363
|
}>;
|
|
3150
3364
|
message: z.ZodString;
|
|
3151
3365
|
tools: z.ZodNumber;
|
|
3152
|
-
deferred: z.ZodOptional<z.ZodNumber>;
|
|
3153
3366
|
disabled: z.ZodOptional<z.ZodNumber>;
|
|
3154
3367
|
unknownTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3155
3368
|
credentialIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3156
|
-
renamed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3157
|
-
serverToolName: z.ZodString;
|
|
3158
|
-
name: z.ZodString;
|
|
3159
|
-
}, z.core.$loose>>>;
|
|
3160
3369
|
}, z.core.$loose>;
|
|
3161
3370
|
export type McpServerOutcome = z.infer<typeof McpServerOutcomeSchema>;
|
|
3162
3371
|
/**
|
|
@@ -3179,14 +3388,9 @@ export declare const McpDiscoveredPayloadSchema: z.ZodObject<{
|
|
|
3179
3388
|
}>;
|
|
3180
3389
|
message: z.ZodString;
|
|
3181
3390
|
tools: z.ZodNumber;
|
|
3182
|
-
deferred: z.ZodOptional<z.ZodNumber>;
|
|
3183
3391
|
disabled: z.ZodOptional<z.ZodNumber>;
|
|
3184
3392
|
unknownTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3185
3393
|
credentialIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3186
|
-
renamed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3187
|
-
serverToolName: z.ZodString;
|
|
3188
|
-
name: z.ZodString;
|
|
3189
|
-
}, z.core.$loose>>>;
|
|
3190
3394
|
}, z.core.$loose>>;
|
|
3191
3395
|
}, z.core.$loose>;
|
|
3192
3396
|
/**
|
|
@@ -3405,7 +3609,6 @@ export declare const EVENT_CATALOG: {
|
|
|
3405
3609
|
}>;
|
|
3406
3610
|
tokensBefore: z.ZodNumber;
|
|
3407
3611
|
tokensAfter: z.ZodNumber;
|
|
3408
|
-
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3409
3612
|
}, z.core.$loose>;
|
|
3410
3613
|
readonly source: "loop";
|
|
3411
3614
|
readonly version: 1;
|
|
@@ -3430,10 +3633,10 @@ export declare const EVENT_CATALOG: {
|
|
|
3430
3633
|
harness: "harness";
|
|
3431
3634
|
http: "http";
|
|
3432
3635
|
mcp: "mcp";
|
|
3433
|
-
platform: "platform";
|
|
3434
3636
|
sandbox: "sandbox";
|
|
3435
3637
|
}>>;
|
|
3436
3638
|
server: z.ZodOptional<z.ZodString>;
|
|
3639
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
3437
3640
|
skill: z.ZodOptional<z.ZodString>;
|
|
3438
3641
|
plugin: z.ZodOptional<z.ZodObject<{
|
|
3439
3642
|
name: z.ZodString;
|
|
@@ -3513,14 +3716,9 @@ export declare const EVENT_CATALOG: {
|
|
|
3513
3716
|
}>;
|
|
3514
3717
|
message: z.ZodString;
|
|
3515
3718
|
tools: z.ZodNumber;
|
|
3516
|
-
deferred: z.ZodOptional<z.ZodNumber>;
|
|
3517
3719
|
disabled: z.ZodOptional<z.ZodNumber>;
|
|
3518
3720
|
unknownTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3519
3721
|
credentialIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3520
|
-
renamed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3521
|
-
serverToolName: z.ZodString;
|
|
3522
|
-
name: z.ZodString;
|
|
3523
|
-
}, z.core.$loose>>>;
|
|
3524
3722
|
}, z.core.$loose>>;
|
|
3525
3723
|
}, z.core.$loose>;
|
|
3526
3724
|
readonly source: "loop";
|
|
@@ -3688,6 +3886,7 @@ export declare const EVENT_CATALOG: {
|
|
|
3688
3886
|
readonly payload: z.ZodObject<{
|
|
3689
3887
|
name: z.ZodString;
|
|
3690
3888
|
reason: z.ZodEnum<{
|
|
3889
|
+
environment_total: "environment_total";
|
|
3691
3890
|
file_too_large: "file_too_large";
|
|
3692
3891
|
tenant_total: "tenant_total";
|
|
3693
3892
|
too_large: "too_large";
|
|
@@ -4190,14 +4389,7 @@ export declare function parseSubjectHeaders(subject: string, scopes: string | un
|
|
|
4190
4389
|
* Scopes a token caller (a trusted issuer's token) may carry: never `agents:write`.
|
|
4191
4390
|
*/
|
|
4192
4391
|
export declare const TOKEN_SCOPES: readonly ["agents:read", "sessions:own", "environments:write"];
|
|
4193
|
-
/** The most Environment grants one token caller carries. */
|
|
4194
|
-
export declare const TOKEN_ENVIRONMENT_GRANTS_MAX = 16;
|
|
4195
4392
|
export type TokenScope = (typeof TOKEN_SCOPES)[number];
|
|
4196
|
-
/**
|
|
4197
|
-
* The longest a token the Runtime signs itself lives, in seconds (capability links): rotating
|
|
4198
|
-
* signing keys revokes the previous key once the longest token it may have signed has expired.
|
|
4199
|
-
*/
|
|
4200
|
-
export declare const TOKEN_TTL_MAX_SECONDS = 900;
|
|
4201
4393
|
/**
|
|
4202
4394
|
* The `iss` of every token a Tenant's Runtime signs itself: capability links, run, host and
|
|
4203
4395
|
* egress tokens.
|
|
@@ -4792,11 +4984,15 @@ export type ToolInputCondition = z.infer<typeof ToolInputConditionSchema>;
|
|
|
4792
4984
|
/**
|
|
4793
4985
|
* One rule of the Tenant's tool policy (R5 step 2), applied at the Tool Gate to every MCP and
|
|
4794
4986
|
* HTTP tool call of every harness. A rule matches a call when every selector it sets matches:
|
|
4795
|
-
* `tool` (the
|
|
4987
|
+
* `tool` (the tool's identity: an MCP tool's own name on its server, or an HTTP tool's declared
|
|
4988
|
+
* name; never the name a harness gave the model; `*` for any run of characters), `server` (an MCP
|
|
4796
4989
|
* server's name), `kind`, `agent` (the agent that calls it) and `when` (fields of the input, by
|
|
4797
4990
|
* dotted path). The strictest matching rule decides: `deny` refuses the call before it is sent,
|
|
4798
4991
|
* `ask` holds it until a person approves it on the session (`approve`), `allow` runs it. A call no
|
|
4799
4992
|
* rule matches runs. Sandbox tools never cross the gate; their network side is egress policy.
|
|
4993
|
+
*
|
|
4994
|
+
* A `tool` with `__` in it is refused (protocol 15): no declared tool's name has one, so it can
|
|
4995
|
+
* only be an MCP tool's model-facing `server__tool` name. Name an MCP tool by `server` and `tool`.
|
|
4800
4996
|
*/
|
|
4801
4997
|
export declare const ToolRuleSchema: z.ZodObject<{
|
|
4802
4998
|
effect: z.ZodEnum<{
|
|
@@ -4901,7 +5097,6 @@ export type StreamClosedFrame = z.infer<typeof StreamClosedFrameSchema>;
|
|
|
4901
5097
|
* (another turn is running) or `runtime_error` (the Runtime failed). Never an HTTP body's code.
|
|
4902
5098
|
*/
|
|
4903
5099
|
export declare const AgUiRunErrorCodeSchema: z.ZodEnum<{
|
|
4904
|
-
attachment_unsupported: "attachment_unsupported";
|
|
4905
5100
|
connection_missing: "connection_missing";
|
|
4906
5101
|
credential_conflict: "credential_conflict";
|
|
4907
5102
|
credential_invalid: "credential_invalid";
|
|
@@ -5073,17 +5268,30 @@ export declare function isFrameAncestor(value: string): boolean;
|
|
|
5073
5268
|
export declare function parseFrameAncestors(value: string): string[];
|
|
5074
5269
|
/** The JWT `typ` of a capability link's token (RFC 8725 explicit typing). */
|
|
5075
5270
|
export declare const ARTIFACT_LINK_TOKEN_TYPE = "nylorun-artifact+jwt";
|
|
5076
|
-
/**
|
|
5077
|
-
|
|
5271
|
+
/**
|
|
5272
|
+
* How long a capability link lives when its request names no `expiresIn`: the request field's
|
|
5273
|
+
* default. A link lives no longer than any token the Runtime signs (the Host tuning's
|
|
5274
|
+
* `keys.tokenTtlMaxSeconds`, 900 s by default); a longer ask gets that.
|
|
5275
|
+
*/
|
|
5078
5276
|
export declare const ARTIFACT_LINK_DEFAULT_TTL_SECONDS = 300;
|
|
5079
5277
|
/** A Tenant's limits when it sets none: 100 MiB per file, 10 GiB in all. */
|
|
5080
5278
|
export declare const ARTIFACT_FILE_BYTES_DEFAULT: number;
|
|
5081
5279
|
export declare const ARTIFACT_TOTAL_BYTES_DEFAULT: number;
|
|
5082
|
-
/**
|
|
5280
|
+
/**
|
|
5281
|
+
* The longest artifact name, in characters: the longest file name a workspace's file system takes
|
|
5282
|
+
* (`NAME_MAX`), since a name becomes one when the artifact is copied into a sandbox or downloaded.
|
|
5283
|
+
* A standard's constant, not a limit (B15).
|
|
5284
|
+
*/
|
|
5083
5285
|
export declare const ARTIFACT_NAME_MAX = 255;
|
|
5084
|
-
/**
|
|
5286
|
+
/**
|
|
5287
|
+
* The longest path of a file in a folder artifact, in characters: the longest path a workspace's
|
|
5288
|
+
* file system takes (`PATH_MAX`), since the folder is unpacked there. A standard's constant.
|
|
5289
|
+
*/
|
|
5085
5290
|
export declare const ARTIFACT_PATH_MAX = 1024;
|
|
5086
|
-
/**
|
|
5291
|
+
/**
|
|
5292
|
+
* An artifact's labels. How many, and how long a key and a value may be, are the Tenant's Runtime
|
|
5293
|
+
* limits `artifactLabels`, `labelKeyChars` and `labelValueChars`, checked when they are set.
|
|
5294
|
+
*/
|
|
5087
5295
|
export declare const ArtifactLabelsSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5088
5296
|
/**
|
|
5089
5297
|
* One version of an artifact: immutable once it exists. A folder version's `size` is the sum of
|
|
@@ -5288,12 +5496,8 @@ export declare const FOLDER_MANIFEST_FORMAT = "nylorun.folder.v1";
|
|
|
5288
5496
|
* modes and modification times, symbolic links and empty directories. Readers accept both.
|
|
5289
5497
|
*/
|
|
5290
5498
|
export declare const FOLDER_MANIFEST_FORMAT_V2 = "nylorun.folder.v2";
|
|
5291
|
-
/** The folder artifact a session's turn
|
|
5499
|
+
/** The folder artifact our engine saves a session's outputs to at each turn's end, one per session. */
|
|
5292
5500
|
export declare const OUTPUTS_ARTIFACT_NAME = "outputs";
|
|
5293
|
-
/** The most files one turn-end export stores; past it the export is skipped. */
|
|
5294
|
-
export declare const EXPORT_MAX_FILES = 10000;
|
|
5295
|
-
/** The most bytes one turn-end export stores (before dedupe); past it the export is skipped. */
|
|
5296
|
-
export declare const EXPORT_MAX_BYTES: number;
|
|
5297
5501
|
/**
|
|
5298
5502
|
* One file of a folder: its path in the folder (`/`-separated, relative), size, hash and type.
|
|
5299
5503
|
* In a v2 manifest an entry may also be a symbolic link (`type: "link"`, its `target`) or an
|
|
@@ -5444,6 +5648,219 @@ export declare const TenantArtifactsViewSchema: z.ZodObject<{
|
|
|
5444
5648
|
usedBytes: z.ZodNumber;
|
|
5445
5649
|
}, z.core.$strict>;
|
|
5446
5650
|
export type TenantArtifactsView = z.infer<typeof TenantArtifactsViewSchema>;
|
|
5651
|
+
/**
|
|
5652
|
+
* A Tenant's skill limits, stored as Tenant setting `skills.config`: the most bytes one skill's
|
|
5653
|
+
* files may hold together. Unset, it is `SKILL_TOTAL_BYTES_DEFAULT` (2 GiB).
|
|
5654
|
+
*/
|
|
5655
|
+
export declare const TenantSkillsConfigSchema: z.ZodObject<{
|
|
5656
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
5657
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
5658
|
+
}, z.core.$strict>>;
|
|
5659
|
+
}, z.core.$strict>;
|
|
5660
|
+
export type TenantSkillsConfig = z.infer<typeof TenantSkillsConfigSchema>;
|
|
5661
|
+
/** `PUT /v1/tenant/skills`: replaces the Tenant's skill configuration. */
|
|
5662
|
+
export declare const PutTenantSkillsRequestSchema: z.ZodObject<{
|
|
5663
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
5664
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
5665
|
+
}, z.core.$strict>>;
|
|
5666
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
5667
|
+
}, z.core.$strict>;
|
|
5668
|
+
export type PutTenantSkillsRequest = z.infer<typeof PutTenantSkillsRequestSchema>;
|
|
5669
|
+
export declare const TenantSkillsViewSchema: z.ZodObject<{
|
|
5670
|
+
limits: z.ZodObject<{
|
|
5671
|
+
totalBytes: z.ZodNumber;
|
|
5672
|
+
}, z.core.$strict>;
|
|
5673
|
+
}, z.core.$strict>;
|
|
5674
|
+
export type TenantSkillsView = z.infer<typeof TenantSkillsViewSchema>;
|
|
5675
|
+
/**
|
|
5676
|
+
* A Tenant's Runtime limits (harness boundary S0), stored as Tenant setting `limits.config`: what
|
|
5677
|
+
* one record entry, model call, model file, tool answer, harness state and Harness API chunk may
|
|
5678
|
+
* hold. Each limit left out is its default (`RUNTIME_LIMIT_DEFAULTS`); none may pass its ceiling
|
|
5679
|
+
* (`RUNTIME_LIMIT_CEILINGS`, a `400` naming it).
|
|
5680
|
+
*/
|
|
5681
|
+
export declare const TenantLimitsConfigSchema: z.ZodObject<{
|
|
5682
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
5683
|
+
recordEntryBytes: z.ZodOptional<z.ZodNumber>;
|
|
5684
|
+
modelCallBytes: z.ZodOptional<z.ZodNumber>;
|
|
5685
|
+
modelFileBytes: z.ZodOptional<z.ZodNumber>;
|
|
5686
|
+
toolAnswerBytes: z.ZodOptional<z.ZodNumber>;
|
|
5687
|
+
harnessStateBytes: z.ZodOptional<z.ZodNumber>;
|
|
5688
|
+
chunkBytes: z.ZodOptional<z.ZodNumber>;
|
|
5689
|
+
folderEntries: z.ZodOptional<z.ZodNumber>;
|
|
5690
|
+
requestBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
5691
|
+
messageParts: z.ZodOptional<z.ZodNumber>;
|
|
5692
|
+
pageItems: z.ZodOptional<z.ZodNumber>;
|
|
5693
|
+
exportPageItems: z.ZodOptional<z.ZodNumber>;
|
|
5694
|
+
environmentEventItems: z.ZodOptional<z.ZodNumber>;
|
|
5695
|
+
inlineFileBytes: z.ZodOptional<z.ZodNumber>;
|
|
5696
|
+
a2aWaitMs: z.ZodOptional<z.ZodNumber>;
|
|
5697
|
+
errorExcerptChars: z.ZodOptional<z.ZodNumber>;
|
|
5698
|
+
traceContentBytes: z.ZodOptional<z.ZodNumber>;
|
|
5699
|
+
environmentLabels: z.ZodOptional<z.ZodNumber>;
|
|
5700
|
+
artifactLabels: z.ZodOptional<z.ZodNumber>;
|
|
5701
|
+
labelKeyChars: z.ZodOptional<z.ZodNumber>;
|
|
5702
|
+
labelValueChars: z.ZodOptional<z.ZodNumber>;
|
|
5703
|
+
environmentSetupCommands: z.ZodOptional<z.ZodNumber>;
|
|
5704
|
+
environmentFiles: z.ZodOptional<z.ZodNumber>;
|
|
5705
|
+
environmentFilesPerEntry: z.ZodOptional<z.ZodNumber>;
|
|
5706
|
+
environmentSecretSlots: z.ZodOptional<z.ZodNumber>;
|
|
5707
|
+
setupCommandChars: z.ZodOptional<z.ZodNumber>;
|
|
5708
|
+
setupCommandMs: z.ZodOptional<z.ZodNumber>;
|
|
5709
|
+
setupOutputChars: z.ZodOptional<z.ZodNumber>;
|
|
5710
|
+
setupReasonChars: z.ZodOptional<z.ZodNumber>;
|
|
5711
|
+
setupCommandExcerptChars: z.ZodOptional<z.ZodNumber>;
|
|
5712
|
+
manifestDescriptionChars: z.ZodOptional<z.ZodNumber>;
|
|
5713
|
+
secretDescriptionChars: z.ZodOptional<z.ZodNumber>;
|
|
5714
|
+
secretValueChars: z.ZodOptional<z.ZodNumber>;
|
|
5715
|
+
secretHosts: z.ZodOptional<z.ZodNumber>;
|
|
5716
|
+
diskVersionEntries: z.ZodOptional<z.ZodNumber>;
|
|
5717
|
+
diskVersionBytes: z.ZodOptional<z.ZodNumber>;
|
|
5718
|
+
diskLeaseMs: z.ZodOptional<z.ZodNumber>;
|
|
5719
|
+
diskPodWaitMs: z.ZodOptional<z.ZodNumber>;
|
|
5720
|
+
modelRequestMs: z.ZodOptional<z.ZodNumber>;
|
|
5721
|
+
modelIdleMs: z.ZodOptional<z.ZodNumber>;
|
|
5722
|
+
modelAttempts: z.ZodOptional<z.ZodNumber>;
|
|
5723
|
+
modelRetryDelayMs: z.ZodOptional<z.ZodNumber>;
|
|
5724
|
+
modelProviderRetries: z.ZodOptional<z.ZodNumber>;
|
|
5725
|
+
modelRetryDelayMaxMs: z.ZodOptional<z.ZodNumber>;
|
|
5726
|
+
toolAttempts: z.ZodOptional<z.ZodNumber>;
|
|
5727
|
+
httpToolTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
5728
|
+
mcpSnapshotBytes: z.ZodOptional<z.ZodNumber>;
|
|
5729
|
+
mcpPreviewMs: z.ZodOptional<z.ZodNumber>;
|
|
5730
|
+
mcpMetadataBytes: z.ZodOptional<z.ZodNumber>;
|
|
5731
|
+
toolRules: z.ZodOptional<z.ZodNumber>;
|
|
5732
|
+
toolRuleFieldChars: z.ZodOptional<z.ZodNumber>;
|
|
5733
|
+
toolRuleTextChars: z.ZodOptional<z.ZodNumber>;
|
|
5734
|
+
modelBudgets: z.ZodOptional<z.ZodNumber>;
|
|
5735
|
+
flowConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
5736
|
+
flowMapItems: z.ZodOptional<z.ZodNumber>;
|
|
5737
|
+
flowLoopIterations: z.ZodOptional<z.ZodNumber>;
|
|
5738
|
+
}, z.core.$strict>>;
|
|
5739
|
+
}, z.core.$strict>;
|
|
5740
|
+
export type TenantLimitsConfig = z.infer<typeof TenantLimitsConfigSchema>;
|
|
5741
|
+
/** `PUT /v1/tenant/limits`: replaces the Tenant's Runtime limits. */
|
|
5742
|
+
export declare const PutTenantLimitsRequestSchema: z.ZodObject<{
|
|
5743
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
5744
|
+
recordEntryBytes: z.ZodOptional<z.ZodNumber>;
|
|
5745
|
+
modelCallBytes: z.ZodOptional<z.ZodNumber>;
|
|
5746
|
+
modelFileBytes: z.ZodOptional<z.ZodNumber>;
|
|
5747
|
+
toolAnswerBytes: z.ZodOptional<z.ZodNumber>;
|
|
5748
|
+
harnessStateBytes: z.ZodOptional<z.ZodNumber>;
|
|
5749
|
+
chunkBytes: z.ZodOptional<z.ZodNumber>;
|
|
5750
|
+
folderEntries: z.ZodOptional<z.ZodNumber>;
|
|
5751
|
+
requestBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
5752
|
+
messageParts: z.ZodOptional<z.ZodNumber>;
|
|
5753
|
+
pageItems: z.ZodOptional<z.ZodNumber>;
|
|
5754
|
+
exportPageItems: z.ZodOptional<z.ZodNumber>;
|
|
5755
|
+
environmentEventItems: z.ZodOptional<z.ZodNumber>;
|
|
5756
|
+
inlineFileBytes: z.ZodOptional<z.ZodNumber>;
|
|
5757
|
+
a2aWaitMs: z.ZodOptional<z.ZodNumber>;
|
|
5758
|
+
errorExcerptChars: z.ZodOptional<z.ZodNumber>;
|
|
5759
|
+
traceContentBytes: z.ZodOptional<z.ZodNumber>;
|
|
5760
|
+
environmentLabels: z.ZodOptional<z.ZodNumber>;
|
|
5761
|
+
artifactLabels: z.ZodOptional<z.ZodNumber>;
|
|
5762
|
+
labelKeyChars: z.ZodOptional<z.ZodNumber>;
|
|
5763
|
+
labelValueChars: z.ZodOptional<z.ZodNumber>;
|
|
5764
|
+
environmentSetupCommands: z.ZodOptional<z.ZodNumber>;
|
|
5765
|
+
environmentFiles: z.ZodOptional<z.ZodNumber>;
|
|
5766
|
+
environmentFilesPerEntry: z.ZodOptional<z.ZodNumber>;
|
|
5767
|
+
environmentSecretSlots: z.ZodOptional<z.ZodNumber>;
|
|
5768
|
+
setupCommandChars: z.ZodOptional<z.ZodNumber>;
|
|
5769
|
+
setupCommandMs: z.ZodOptional<z.ZodNumber>;
|
|
5770
|
+
setupOutputChars: z.ZodOptional<z.ZodNumber>;
|
|
5771
|
+
setupReasonChars: z.ZodOptional<z.ZodNumber>;
|
|
5772
|
+
setupCommandExcerptChars: z.ZodOptional<z.ZodNumber>;
|
|
5773
|
+
manifestDescriptionChars: z.ZodOptional<z.ZodNumber>;
|
|
5774
|
+
secretDescriptionChars: z.ZodOptional<z.ZodNumber>;
|
|
5775
|
+
secretValueChars: z.ZodOptional<z.ZodNumber>;
|
|
5776
|
+
secretHosts: z.ZodOptional<z.ZodNumber>;
|
|
5777
|
+
diskVersionEntries: z.ZodOptional<z.ZodNumber>;
|
|
5778
|
+
diskVersionBytes: z.ZodOptional<z.ZodNumber>;
|
|
5779
|
+
diskLeaseMs: z.ZodOptional<z.ZodNumber>;
|
|
5780
|
+
diskPodWaitMs: z.ZodOptional<z.ZodNumber>;
|
|
5781
|
+
modelRequestMs: z.ZodOptional<z.ZodNumber>;
|
|
5782
|
+
modelIdleMs: z.ZodOptional<z.ZodNumber>;
|
|
5783
|
+
modelAttempts: z.ZodOptional<z.ZodNumber>;
|
|
5784
|
+
modelRetryDelayMs: z.ZodOptional<z.ZodNumber>;
|
|
5785
|
+
modelProviderRetries: z.ZodOptional<z.ZodNumber>;
|
|
5786
|
+
modelRetryDelayMaxMs: z.ZodOptional<z.ZodNumber>;
|
|
5787
|
+
toolAttempts: z.ZodOptional<z.ZodNumber>;
|
|
5788
|
+
httpToolTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
5789
|
+
mcpSnapshotBytes: z.ZodOptional<z.ZodNumber>;
|
|
5790
|
+
mcpPreviewMs: z.ZodOptional<z.ZodNumber>;
|
|
5791
|
+
mcpMetadataBytes: z.ZodOptional<z.ZodNumber>;
|
|
5792
|
+
toolRules: z.ZodOptional<z.ZodNumber>;
|
|
5793
|
+
toolRuleFieldChars: z.ZodOptional<z.ZodNumber>;
|
|
5794
|
+
toolRuleTextChars: z.ZodOptional<z.ZodNumber>;
|
|
5795
|
+
modelBudgets: z.ZodOptional<z.ZodNumber>;
|
|
5796
|
+
flowConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
5797
|
+
flowMapItems: z.ZodOptional<z.ZodNumber>;
|
|
5798
|
+
flowLoopIterations: z.ZodOptional<z.ZodNumber>;
|
|
5799
|
+
}, z.core.$strict>>;
|
|
5800
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
5801
|
+
}, z.core.$strict>;
|
|
5802
|
+
export type PutTenantLimitsRequest = z.infer<typeof PutTenantLimitsRequestSchema>;
|
|
5803
|
+
/** The Runtime limits in force: the Tenant's, with the default for each it leaves out. */
|
|
5804
|
+
export declare const TenantLimitsViewSchema: z.ZodObject<{
|
|
5805
|
+
limits: z.ZodObject<{
|
|
5806
|
+
recordEntryBytes: z.ZodNumber;
|
|
5807
|
+
modelCallBytes: z.ZodNumber;
|
|
5808
|
+
modelFileBytes: z.ZodNumber;
|
|
5809
|
+
toolAnswerBytes: z.ZodNumber;
|
|
5810
|
+
harnessStateBytes: z.ZodNumber;
|
|
5811
|
+
chunkBytes: z.ZodNumber;
|
|
5812
|
+
folderEntries: z.ZodNumber;
|
|
5813
|
+
requestBodyBytes: z.ZodNumber;
|
|
5814
|
+
messageParts: z.ZodNumber;
|
|
5815
|
+
pageItems: z.ZodNumber;
|
|
5816
|
+
exportPageItems: z.ZodNumber;
|
|
5817
|
+
environmentEventItems: z.ZodNumber;
|
|
5818
|
+
inlineFileBytes: z.ZodNumber;
|
|
5819
|
+
a2aWaitMs: z.ZodNumber;
|
|
5820
|
+
errorExcerptChars: z.ZodNumber;
|
|
5821
|
+
traceContentBytes: z.ZodNumber;
|
|
5822
|
+
environmentLabels: z.ZodNumber;
|
|
5823
|
+
artifactLabels: z.ZodNumber;
|
|
5824
|
+
labelKeyChars: z.ZodNumber;
|
|
5825
|
+
labelValueChars: z.ZodNumber;
|
|
5826
|
+
environmentSetupCommands: z.ZodNumber;
|
|
5827
|
+
environmentFiles: z.ZodNumber;
|
|
5828
|
+
environmentFilesPerEntry: z.ZodNumber;
|
|
5829
|
+
environmentSecretSlots: z.ZodNumber;
|
|
5830
|
+
setupCommandChars: z.ZodNumber;
|
|
5831
|
+
setupCommandMs: z.ZodNumber;
|
|
5832
|
+
setupOutputChars: z.ZodNumber;
|
|
5833
|
+
setupReasonChars: z.ZodNumber;
|
|
5834
|
+
setupCommandExcerptChars: z.ZodNumber;
|
|
5835
|
+
manifestDescriptionChars: z.ZodNumber;
|
|
5836
|
+
secretDescriptionChars: z.ZodNumber;
|
|
5837
|
+
secretValueChars: z.ZodNumber;
|
|
5838
|
+
secretHosts: z.ZodNumber;
|
|
5839
|
+
diskVersionEntries: z.ZodNumber;
|
|
5840
|
+
diskVersionBytes: z.ZodNumber;
|
|
5841
|
+
diskLeaseMs: z.ZodNumber;
|
|
5842
|
+
diskPodWaitMs: z.ZodNumber;
|
|
5843
|
+
modelRequestMs: z.ZodNumber;
|
|
5844
|
+
modelIdleMs: z.ZodNumber;
|
|
5845
|
+
modelAttempts: z.ZodNumber;
|
|
5846
|
+
modelRetryDelayMs: z.ZodNumber;
|
|
5847
|
+
modelProviderRetries: z.ZodNumber;
|
|
5848
|
+
modelRetryDelayMaxMs: z.ZodNumber;
|
|
5849
|
+
toolAttempts: z.ZodNumber;
|
|
5850
|
+
httpToolTimeoutMs: z.ZodNumber;
|
|
5851
|
+
mcpSnapshotBytes: z.ZodNumber;
|
|
5852
|
+
mcpPreviewMs: z.ZodNumber;
|
|
5853
|
+
mcpMetadataBytes: z.ZodNumber;
|
|
5854
|
+
toolRules: z.ZodNumber;
|
|
5855
|
+
toolRuleFieldChars: z.ZodNumber;
|
|
5856
|
+
toolRuleTextChars: z.ZodNumber;
|
|
5857
|
+
modelBudgets: z.ZodNumber;
|
|
5858
|
+
flowConcurrency: z.ZodNumber;
|
|
5859
|
+
flowMapItems: z.ZodNumber;
|
|
5860
|
+
flowLoopIterations: z.ZodNumber;
|
|
5861
|
+
}, z.core.$strict>;
|
|
5862
|
+
}, z.core.$strict>;
|
|
5863
|
+
export type TenantLimitsView = z.infer<typeof TenantLimitsViewSchema>;
|
|
5447
5864
|
/** Opt-in session reads (Host feature `session-reads`). */
|
|
5448
5865
|
export declare const SessionListItemSchema: z.ZodObject<{
|
|
5449
5866
|
id: z.ZodString;
|
|
@@ -5628,10 +6045,10 @@ export declare const ToolCallSchema: z.ZodObject<{
|
|
|
5628
6045
|
harness: "harness";
|
|
5629
6046
|
http: "http";
|
|
5630
6047
|
mcp: "mcp";
|
|
5631
|
-
platform: "platform";
|
|
5632
6048
|
sandbox: "sandbox";
|
|
5633
6049
|
}>>;
|
|
5634
6050
|
server: z.ZodNullable<z.ZodString>;
|
|
6051
|
+
tool: z.ZodNullable<z.ZodString>;
|
|
5635
6052
|
skill: z.ZodNullable<z.ZodString>;
|
|
5636
6053
|
plugin: z.ZodNullable<z.ZodObject<{
|
|
5637
6054
|
name: z.ZodString;
|
|
@@ -5666,10 +6083,10 @@ export declare const ToolCallsPageSchema: z.ZodObject<{
|
|
|
5666
6083
|
harness: "harness";
|
|
5667
6084
|
http: "http";
|
|
5668
6085
|
mcp: "mcp";
|
|
5669
|
-
platform: "platform";
|
|
5670
6086
|
sandbox: "sandbox";
|
|
5671
6087
|
}>>;
|
|
5672
6088
|
server: z.ZodNullable<z.ZodString>;
|
|
6089
|
+
tool: z.ZodNullable<z.ZodString>;
|
|
5673
6090
|
skill: z.ZodNullable<z.ZodString>;
|
|
5674
6091
|
plugin: z.ZodNullable<z.ZodObject<{
|
|
5675
6092
|
name: z.ZodString;
|
|
@@ -5799,6 +6216,19 @@ export declare const EnvironmentPageSchema: z.ZodObject<{
|
|
|
5799
6216
|
path: z.ZodString;
|
|
5800
6217
|
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
5801
6218
|
}, z.core.$strict>]>>>;
|
|
6219
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
6220
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
6221
|
+
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
6222
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
6223
|
+
}, z.core.$strict>>;
|
|
6224
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
6225
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
6226
|
+
}, z.core.$strict>>;
|
|
6227
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
6228
|
+
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
6229
|
+
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
6230
|
+
}, z.core.$strict>>;
|
|
6231
|
+
}, z.core.$strict>>;
|
|
5802
6232
|
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5803
6233
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
5804
6234
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -5835,6 +6265,19 @@ export declare const EnvironmentPageSchema: z.ZodObject<{
|
|
|
5835
6265
|
manifestName: z.ZodOptional<z.ZodString>;
|
|
5836
6266
|
manifestVersion: z.ZodOptional<z.ZodNumber>;
|
|
5837
6267
|
manifestHash: z.ZodOptional<z.ZodString>;
|
|
6268
|
+
limits: z.ZodObject<{
|
|
6269
|
+
artifacts: z.ZodObject<{
|
|
6270
|
+
fileBytes: z.ZodNumber;
|
|
6271
|
+
totalBytes: z.ZodNumber;
|
|
6272
|
+
}, z.core.$strict>;
|
|
6273
|
+
skills: z.ZodObject<{
|
|
6274
|
+
totalBytes: z.ZodNumber;
|
|
6275
|
+
}, z.core.$strict>;
|
|
6276
|
+
disk: z.ZodObject<{
|
|
6277
|
+
versionBytes: z.ZodNumber;
|
|
6278
|
+
versionEntries: z.ZodNumber;
|
|
6279
|
+
}, z.core.$strict>;
|
|
6280
|
+
}, z.core.$strict>;
|
|
5838
6281
|
forkedFrom: z.ZodOptional<z.ZodObject<{
|
|
5839
6282
|
environment: z.ZodString;
|
|
5840
6283
|
disk: z.ZodNullable<z.ZodNumber>;
|