@tangle-network/agent-interface 1.7.0 → 1.8.0
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/README.md +2 -0
- package/dist/contract-limits.d.ts +3 -0
- package/dist/contract-limits.js +5 -0
- package/dist/environment-runtime.d.ts +53 -1
- package/dist/environment-runtime.js +53 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/workspace-confidentiality.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -73,6 +73,8 @@ Its successful receipt repeats the exact destination and carries the provider's
|
|
|
73
73
|
`NativeContextContinuationRequest.turnDigest` binds the operation to the exact new JSON-stable user turn; timeout and abort controls live outside that turn under `AgentNativeContextContinuationOptions`.
|
|
74
74
|
Continuation is valid only when the provider atomically proves the recorded token, revision, digest, or message boundary, sends zero copied history, and applies retry or changed-input conflict semantics.
|
|
75
75
|
Providers advertise `nativeContinuation` only when both guarantees are implemented and expose `AgentSession.continueNative()` as the single durable operation.
|
|
76
|
+
When `nativeContinuation.admissionControl` is true, `continueNative()` calls `onAdmission` once with the exact new run before it waits for terminal output.
|
|
77
|
+
This lets a runtime stream, inspect, and cancel the continued run through the same retained-control methods.
|
|
76
78
|
An accepted or replayed operation returns its original turn result and exact current control reference; `AgentNativeContextContinuationResultSchema` validates that shape and `agentNativeContextContinuationResultMatchesRequest()` checks its request and retained-session bindings.
|
|
77
79
|
A changed request with the same operation identifier conflicts without dispatch.
|
|
78
80
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/** Limits applied before a value is hashed, copied, or sent to a provider. */
|
|
3
3
|
export declare const CONTRACT_MAX_STRING_LENGTH = 16384;
|
|
4
|
+
/** Maximum length of one canonical confidential-attestation quote. */
|
|
5
|
+
export declare const CONTRACT_MAX_CONFIDENTIAL_ATTESTATION_QUOTE_LENGTH = 32768;
|
|
4
6
|
export declare const CONTRACT_MAX_IDENTIFIER_LENGTH = 512;
|
|
5
7
|
export declare const CONTRACT_MAX_ARRAY_LENGTH = 1024;
|
|
6
8
|
export declare const CONTRACT_MAX_MAP_ENTRIES = 256;
|
|
@@ -8,6 +10,7 @@ export declare const CONTRACT_MAX_JSON_DEPTH = 16;
|
|
|
8
10
|
export declare const CONTRACT_MAX_JSON_BYTES = 1048576;
|
|
9
11
|
export declare const CONTRACT_MAX_JSON_NODES = 8192;
|
|
10
12
|
export declare const boundedStringSchema: z.ZodString;
|
|
13
|
+
export declare const confidentialAttestationQuoteSchema: z.ZodString;
|
|
11
14
|
export declare const boundedIdentifierSchema: z.ZodString;
|
|
12
15
|
/**
|
|
13
16
|
* Validate JSON without asking Zod to recursively copy an attacker-sized
|
package/dist/contract-limits.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/** Limits applied before a value is hashed, copied, or sent to a provider. */
|
|
3
3
|
export const CONTRACT_MAX_STRING_LENGTH = 16_384;
|
|
4
|
+
/** Maximum length of one canonical confidential-attestation quote. */
|
|
5
|
+
export const CONTRACT_MAX_CONFIDENTIAL_ATTESTATION_QUOTE_LENGTH = 32_768;
|
|
4
6
|
export const CONTRACT_MAX_IDENTIFIER_LENGTH = 512;
|
|
5
7
|
export const CONTRACT_MAX_ARRAY_LENGTH = 1_024;
|
|
6
8
|
export const CONTRACT_MAX_MAP_ENTRIES = 256;
|
|
@@ -8,6 +10,9 @@ export const CONTRACT_MAX_JSON_DEPTH = 16;
|
|
|
8
10
|
export const CONTRACT_MAX_JSON_BYTES = 1_048_576;
|
|
9
11
|
export const CONTRACT_MAX_JSON_NODES = 8_192;
|
|
10
12
|
export const boundedStringSchema = z.string().max(CONTRACT_MAX_STRING_LENGTH);
|
|
13
|
+
export const confidentialAttestationQuoteSchema = z
|
|
14
|
+
.string()
|
|
15
|
+
.max(CONTRACT_MAX_CONFIDENTIAL_ATTESTATION_QUOTE_LENGTH);
|
|
11
16
|
export const boundedIdentifierSchema = boundedStringSchema
|
|
12
17
|
.min(1)
|
|
13
18
|
.max(CONTRACT_MAX_IDENTIFIER_LENGTH)
|
|
@@ -6,7 +6,7 @@ import type { StreamEvent } from "./stream-events.js";
|
|
|
6
6
|
import type { TokenUsage } from "./execution-types.js";
|
|
7
7
|
import { type InteractionAcknowledgement, type InteractionCapabilities, type InteractionResponseCommand, type RequestedInteractions } from "./interaction.js";
|
|
8
8
|
import { type ContextTransferReceipt, type ContextTransferRequest, type NativeContextBoundaryProof, type NativeContextContinuationRequest, type NativeContextContinuationTurn } from "./portable-context.js";
|
|
9
|
-
import { type AgentRunCancellationAcknowledgement, type AgentRunCancellationRequest, type AgentRunControlRef } from "./runtime-control.js";
|
|
9
|
+
import { type AgentExactRunControlRef, type AgentRunCancellationAcknowledgement, type AgentRunCancellationRequest, type AgentRunControlRef } from "./runtime-control.js";
|
|
10
10
|
import type { AgentWorkspaceBranching, AgentWorkspaceBranchingProvider } from "./workspace-branching.js";
|
|
11
11
|
import type { AgentEnvironmentQuery, AgentEnvironmentStatus, AgentEnvironmentSummary, AgentProfileRef, AgentSessionStatus, CheckpointRef, CheckpointRequest, ExecRequest, ExecResult, ForkRequest, PlacementInfo, ResourceRequest, WorkspaceRequest } from "./environment-requests.js";
|
|
12
12
|
import type { AgentExactProcessEgressMode, AgentExactProcessProvider } from "./environment-exact-process.js";
|
|
@@ -570,11 +570,60 @@ export declare const AgentNativeContextContinuationResultSchema: z.ZodUnion<read
|
|
|
570
570
|
}, z.core.$strip>>;
|
|
571
571
|
}, z.core.$strict>]>;
|
|
572
572
|
export type AgentNativeContextContinuationResult = z.infer<typeof AgentNativeContextContinuationResultSchema>;
|
|
573
|
+
/** Exact continued-run identity returned after durable admission. */
|
|
574
|
+
export declare const AgentNativeContextContinuationAdmissionSchema: z.ZodObject<{
|
|
575
|
+
phase: z.ZodLiteral<"admitted">;
|
|
576
|
+
acknowledgement: z.ZodObject<{
|
|
577
|
+
operationId: z.ZodString;
|
|
578
|
+
requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
579
|
+
historyMessagesSent: z.ZodLiteral<0>;
|
|
580
|
+
actualBoundary: z.ZodObject<{
|
|
581
|
+
runId: z.ZodString;
|
|
582
|
+
provider: z.ZodString;
|
|
583
|
+
environmentId: z.ZodString;
|
|
584
|
+
sessionId: z.ZodString;
|
|
585
|
+
executionId: z.ZodString;
|
|
586
|
+
requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
587
|
+
boundary: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
588
|
+
kind: z.ZodLiteral<"token">;
|
|
589
|
+
token: z.ZodString;
|
|
590
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
591
|
+
kind: z.ZodLiteral<"revision">;
|
|
592
|
+
revision: z.ZodString;
|
|
593
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
594
|
+
kind: z.ZodLiteral<"digest">;
|
|
595
|
+
digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
596
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
597
|
+
kind: z.ZodLiteral<"messages">;
|
|
598
|
+
messageIds: z.ZodArray<z.ZodString>;
|
|
599
|
+
digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
600
|
+
}, z.core.$strict>], "kind">;
|
|
601
|
+
observedAt: z.ZodISODateTime;
|
|
602
|
+
}, z.core.$strict>;
|
|
603
|
+
}, z.core.$strict>;
|
|
604
|
+
controlRef: z.ZodObject<{
|
|
605
|
+
runId: z.ZodString;
|
|
606
|
+
provider: z.ZodString;
|
|
607
|
+
environmentId: z.ZodString;
|
|
608
|
+
sessionId: z.ZodString;
|
|
609
|
+
executionId: z.ZodString;
|
|
610
|
+
requestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
611
|
+
}, z.core.$strict>;
|
|
612
|
+
}, z.core.$strict>;
|
|
613
|
+
export type AgentNativeContextContinuationAdmission = z.infer<typeof AgentNativeContextContinuationAdmissionSchema>;
|
|
614
|
+
/** Cross-check one early admission against its exact continuation request. */
|
|
615
|
+
export declare function agentNativeContextContinuationAdmissionMatchesRequest(request: NativeContextContinuationRequest, admission: AgentNativeContextContinuationAdmission): boolean;
|
|
573
616
|
/** Runtime-only controls kept outside the digest-bound user turn. */
|
|
574
617
|
export interface AgentNativeContextContinuationOptions {
|
|
575
618
|
turn: NativeContextContinuationTurn;
|
|
576
619
|
timeoutMs?: number;
|
|
577
620
|
signal?: AbortSignal;
|
|
621
|
+
/**
|
|
622
|
+
* Receives the exact new run identity after durable admission and before the
|
|
623
|
+
* provider waits for terminal output. Providers call this once only when
|
|
624
|
+
* `nativeContinuation.admissionControl` is true.
|
|
625
|
+
*/
|
|
626
|
+
onAdmission?: (controlRef: AgentExactRunControlRef) => void;
|
|
578
627
|
}
|
|
579
628
|
/** Cross-check a successful native continuation against its retained session. */
|
|
580
629
|
export declare function agentNativeContextContinuationResultMatchesRequest(request: NativeContextContinuationRequest, outcome: AgentNativeContextContinuationResult): boolean;
|
|
@@ -751,6 +800,8 @@ export interface AgentEnvironmentCapabilities {
|
|
|
751
800
|
nativeContinuation?: {
|
|
752
801
|
atomicBoundary: boolean;
|
|
753
802
|
requestIdempotency: boolean;
|
|
803
|
+
/** The provider exposes the exact continued run before terminal output. */
|
|
804
|
+
admissionControl?: boolean;
|
|
754
805
|
};
|
|
755
806
|
/** Absent when the provider cannot originate or answer interactions. */
|
|
756
807
|
interactions?: InteractionCapabilities;
|
|
@@ -859,6 +910,7 @@ export declare const AgentEnvironmentCapabilitiesSchema: z.ZodObject<{
|
|
|
859
910
|
nativeContinuation: z.ZodOptional<z.ZodObject<{
|
|
860
911
|
atomicBoundary: z.ZodBoolean;
|
|
861
912
|
requestIdempotency: z.ZodBoolean;
|
|
913
|
+
admissionControl: z.ZodOptional<z.ZodBoolean>;
|
|
862
914
|
}, z.core.$strict>>;
|
|
863
915
|
interactions: z.ZodOptional<z.ZodObject<{
|
|
864
916
|
kinds: z.ZodArray<z.ZodString>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { canonicalCandidateDigest } from "./agent-candidate-schema-common.js";
|
|
3
3
|
import { InteractionCapabilitiesSchema, RequestedInteractionsSchema } from "./interaction.js";
|
|
4
|
-
import { ContextTransferReceiptSchema, ContextTransferRequestSchema, NativeContextContinuationAcknowledgementSchema, NativeContextContinuationRequestSchema, nativeContextContinuationAcknowledgementMatches } from "./portable-context.js";
|
|
4
|
+
import { ContextTransferReceiptSchema, ContextTransferRequestSchema, NativeContextBoundaryProofSchema, NativeContextContinuationAcknowledgementSchema, NativeContextContinuationRequestSchema, nativeContextContinuationAcknowledgementMatches } from "./portable-context.js";
|
|
5
5
|
import { AgentExactRunControlRefSchema, AgentRunControlRefSchema, CanonicalStreamEventSchema } from "./runtime-control.js";
|
|
6
6
|
import { AgentProfileCapabilitiesSchema } from "./environment-profile-capabilities.js";
|
|
7
7
|
import { boundedIdentifierSchema, boundedJsonRecordSchema, boundedJsonSchema, boundedStringSchema, CONTRACT_MAX_ARRAY_LENGTH } from "./contract-limits.js";
|
|
@@ -92,6 +92,49 @@ export const AgentNativeContextContinuationResultSchema = z.union([
|
|
|
92
92
|
}
|
|
93
93
|
}),
|
|
94
94
|
]);
|
|
95
|
+
/** Exact continued-run identity returned after durable admission. */
|
|
96
|
+
export const AgentNativeContextContinuationAdmissionSchema = z
|
|
97
|
+
.strictObject({
|
|
98
|
+
phase: z.literal("admitted"),
|
|
99
|
+
acknowledgement: z.strictObject({
|
|
100
|
+
operationId: boundedIdentifierSchema,
|
|
101
|
+
requestDigest: AgentExactRunControlRefSchema.shape.requestDigest,
|
|
102
|
+
historyMessagesSent: z.literal(0),
|
|
103
|
+
actualBoundary: NativeContextBoundaryProofSchema,
|
|
104
|
+
}),
|
|
105
|
+
controlRef: AgentExactRunControlRefSchema,
|
|
106
|
+
})
|
|
107
|
+
.superRefine((admission, refinement) => {
|
|
108
|
+
const source = admission.acknowledgement.actualBoundary;
|
|
109
|
+
const current = admission.controlRef;
|
|
110
|
+
if (source.provider !== current.provider ||
|
|
111
|
+
source.environmentId !== current.environmentId ||
|
|
112
|
+
source.sessionId !== current.sessionId) {
|
|
113
|
+
refinement.addIssue({
|
|
114
|
+
code: "custom",
|
|
115
|
+
path: ["controlRef"],
|
|
116
|
+
message: "native continuation admission must stay in the retained session",
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
/** Cross-check one early admission against its exact continuation request. */
|
|
121
|
+
export function agentNativeContextContinuationAdmissionMatchesRequest(request, admission) {
|
|
122
|
+
const parsedRequest = NativeContextContinuationRequestSchema.safeParse(request);
|
|
123
|
+
const parsedAdmission = AgentNativeContextContinuationAdmissionSchema.safeParse(admission);
|
|
124
|
+
if (!parsedRequest.success || !parsedAdmission.success)
|
|
125
|
+
return false;
|
|
126
|
+
const expected = parsedRequest.data;
|
|
127
|
+
const actual = parsedAdmission.data;
|
|
128
|
+
const boundary = actual.acknowledgement.actualBoundary;
|
|
129
|
+
return (actual.acknowledgement.operationId === expected.operationId &&
|
|
130
|
+
actual.acknowledgement.requestDigest === expected.requestDigest &&
|
|
131
|
+
boundary.runId === expected.run.runId &&
|
|
132
|
+
boundary.provider === expected.run.provider &&
|
|
133
|
+
boundary.environmentId === expected.run.environmentId &&
|
|
134
|
+
boundary.sessionId === expected.run.sessionId &&
|
|
135
|
+
boundary.executionId === expected.run.executionId &&
|
|
136
|
+
boundary.requestDigest === expected.run.requestDigest);
|
|
137
|
+
}
|
|
95
138
|
/** Cross-check a successful native continuation against its retained session. */
|
|
96
139
|
export function agentNativeContextContinuationResultMatchesRequest(request, outcome) {
|
|
97
140
|
const parsedRequest = NativeContextContinuationRequestSchema.safeParse(request);
|
|
@@ -144,6 +187,7 @@ export const AgentEnvironmentCapabilitiesSchema = z
|
|
|
144
187
|
.strictObject({
|
|
145
188
|
atomicBoundary: z.boolean(),
|
|
146
189
|
requestIdempotency: z.boolean(),
|
|
190
|
+
admissionControl: z.boolean().optional(),
|
|
147
191
|
})
|
|
148
192
|
.optional(),
|
|
149
193
|
interactions: InteractionCapabilitiesSchema.optional(),
|
|
@@ -234,6 +278,14 @@ export const AgentEnvironmentCapabilitiesSchema = z
|
|
|
234
278
|
message: "native continuation requires session continuation, atomic boundary admission, and request idempotency together",
|
|
235
279
|
});
|
|
236
280
|
}
|
|
281
|
+
if (capabilities.nativeContinuation?.admissionControl === true &&
|
|
282
|
+
capabilities.retainedControl === undefined) {
|
|
283
|
+
refinement.addIssue({
|
|
284
|
+
code: "custom",
|
|
285
|
+
path: ["nativeContinuation", "admissionControl"],
|
|
286
|
+
message: "native continuation requires retained control for early admission",
|
|
287
|
+
});
|
|
288
|
+
}
|
|
237
289
|
const durableBranching = [
|
|
238
290
|
capabilities.branching.retrySafe ?? false,
|
|
239
291
|
capabilities.branching.lookup ?? false,
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export * from "./host-services.js";
|
|
|
8
8
|
export * from "./mcp.js";
|
|
9
9
|
export * from "./provider-adapter.js";
|
|
10
10
|
export type * from "./environment-provider.js";
|
|
11
|
-
export { AgentEnvironmentCapabilitiesSchema, AgentNativeContextContinuationResultSchema, AgentTurnInputSchema, AgentTurnResultSchema, agentEnvironmentCreateInputDigest, agentNativeContextContinuationResultMatchesRequest, AccountUsageSchema, AgentEnvironmentObservationSchema, AgentEnvironmentStatusSchema, ComputeBillingSchema, EnvironmentLifecycleSchema, ModelUsageSchema, ObservationProvenanceSchema, ObservationStateSchema, PlacementDescriptorSchema, ProviderIdentitySchema, ResourceProfileSchema, ResourceUseSampleSchema, SafeEndpointSchema, agentEnvironmentObservationIdentityMatches, assertObservationCredentialFree, observationContainsCredential, observationOf, AgentInteractiveSessionAttachSchema, AgentInteractiveSessionControlClaimAcknowledgementSchema, AgentInteractiveSessionControlClaimRequestSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionPromptAcknowledgementSchema, AgentInteractiveSessionPromptCommandSchema, AgentInteractiveSessionRefSchema, AgentInteractiveSessionStartSchema, AgentInteractiveSessionStopAcknowledgementSchema, AgentInteractiveSessionStopCommandSchema, AgentInteractiveSessionStatusSchema, agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, agentInteractiveSessionControlClaimRequestDigest, agentInteractiveSessionControlClaimMatchesRef, agentInteractiveSessionControlClaimIsNewer, agentInteractiveSessionPromptAcknowledgementMatchesCommand, agentInteractiveSessionPromptRequestDigest, agentInteractiveSessionStopAcknowledgementMatchesCommand, agentInteractiveSessionStopRequestDigest, agentInteractiveSessionRequestDigest, agentInteractiveSessionRefMatchesStart, agentInteractiveSessionRunRef, agentInteractiveSessionStatusMatchesRef, exactAgentInteractiveSessionStart, AgentEnvironmentCreationSchema, createAgentEnvironmentWithIdempotency, replayedAgentEnvironmentView, TerminalAttachRequestSchema, TerminalAttachResultSchema, TerminalDetachAckSchema, TerminalInputSchema, TerminalOutputEventSchema, TerminalReplayWindowSchema, TerminalResizeSchema, TerminalSessionRefSchema, terminalAttachResultMatchesRequest, terminalSessionUsable, } from "./environment-provider.js";
|
|
11
|
+
export { AgentEnvironmentCapabilitiesSchema, AgentNativeContextContinuationAdmissionSchema, AgentNativeContextContinuationResultSchema, AgentTurnInputSchema, AgentTurnResultSchema, agentEnvironmentCreateInputDigest, agentNativeContextContinuationAdmissionMatchesRequest, agentNativeContextContinuationResultMatchesRequest, AccountUsageSchema, AgentEnvironmentObservationSchema, AgentEnvironmentStatusSchema, ComputeBillingSchema, EnvironmentLifecycleSchema, ModelUsageSchema, ObservationProvenanceSchema, ObservationStateSchema, PlacementDescriptorSchema, ProviderIdentitySchema, ResourceProfileSchema, ResourceUseSampleSchema, SafeEndpointSchema, agentEnvironmentObservationIdentityMatches, assertObservationCredentialFree, observationContainsCredential, observationOf, AgentInteractiveSessionAttachSchema, AgentInteractiveSessionControlClaimAcknowledgementSchema, AgentInteractiveSessionControlClaimRequestSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionPromptAcknowledgementSchema, AgentInteractiveSessionPromptCommandSchema, AgentInteractiveSessionRefSchema, AgentInteractiveSessionStartSchema, AgentInteractiveSessionStopAcknowledgementSchema, AgentInteractiveSessionStopCommandSchema, AgentInteractiveSessionStatusSchema, agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, agentInteractiveSessionControlClaimRequestDigest, agentInteractiveSessionControlClaimMatchesRef, agentInteractiveSessionControlClaimIsNewer, agentInteractiveSessionPromptAcknowledgementMatchesCommand, agentInteractiveSessionPromptRequestDigest, agentInteractiveSessionStopAcknowledgementMatchesCommand, agentInteractiveSessionStopRequestDigest, agentInteractiveSessionRequestDigest, agentInteractiveSessionRefMatchesStart, agentInteractiveSessionRunRef, agentInteractiveSessionStatusMatchesRef, exactAgentInteractiveSessionStart, AgentEnvironmentCreationSchema, createAgentEnvironmentWithIdempotency, replayedAgentEnvironmentView, TerminalAttachRequestSchema, TerminalAttachResultSchema, TerminalDetachAckSchema, TerminalInputSchema, TerminalOutputEventSchema, TerminalReplayWindowSchema, TerminalResizeSchema, TerminalSessionRefSchema, terminalAttachResultMatchesRequest, terminalSessionUsable, } from "./environment-provider.js";
|
|
12
12
|
export * from "./plan.js";
|
|
13
13
|
export * from "./runtime-control.js";
|
|
14
14
|
export * from "./portable-context.js";
|
|
@@ -40,3 +40,4 @@ export * from "./harness-capabilities.js";
|
|
|
40
40
|
export * from "./profile-schema.js";
|
|
41
41
|
export * from "./profile-security.js";
|
|
42
42
|
export * from "./sandbox-size.js";
|
|
43
|
+
export { CONTRACT_MAX_CONFIDENTIAL_ATTESTATION_QUOTE_LENGTH, } from "./contract-limits.js";
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ export * from "./provider-config.js";
|
|
|
7
7
|
export * from "./host-services.js";
|
|
8
8
|
export * from "./mcp.js";
|
|
9
9
|
export * from "./provider-adapter.js";
|
|
10
|
-
export { AgentEnvironmentCapabilitiesSchema, AgentNativeContextContinuationResultSchema, AgentTurnInputSchema, AgentTurnResultSchema, agentEnvironmentCreateInputDigest, agentNativeContextContinuationResultMatchesRequest, AccountUsageSchema, AgentEnvironmentObservationSchema, AgentEnvironmentStatusSchema, ComputeBillingSchema, EnvironmentLifecycleSchema, ModelUsageSchema, ObservationProvenanceSchema, ObservationStateSchema, PlacementDescriptorSchema, ProviderIdentitySchema, ResourceProfileSchema, ResourceUseSampleSchema, SafeEndpointSchema, agentEnvironmentObservationIdentityMatches, assertObservationCredentialFree, observationContainsCredential, observationOf, AgentInteractiveSessionAttachSchema, AgentInteractiveSessionControlClaimAcknowledgementSchema, AgentInteractiveSessionControlClaimRequestSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionPromptAcknowledgementSchema, AgentInteractiveSessionPromptCommandSchema, AgentInteractiveSessionRefSchema, AgentInteractiveSessionStartSchema, AgentInteractiveSessionStopAcknowledgementSchema, AgentInteractiveSessionStopCommandSchema, AgentInteractiveSessionStatusSchema, agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, agentInteractiveSessionControlClaimRequestDigest, agentInteractiveSessionControlClaimMatchesRef, agentInteractiveSessionControlClaimIsNewer, agentInteractiveSessionPromptAcknowledgementMatchesCommand, agentInteractiveSessionPromptRequestDigest, agentInteractiveSessionStopAcknowledgementMatchesCommand, agentInteractiveSessionStopRequestDigest, agentInteractiveSessionRequestDigest, agentInteractiveSessionRefMatchesStart, agentInteractiveSessionRunRef, agentInteractiveSessionStatusMatchesRef, exactAgentInteractiveSessionStart, AgentEnvironmentCreationSchema, createAgentEnvironmentWithIdempotency, replayedAgentEnvironmentView, TerminalAttachRequestSchema, TerminalAttachResultSchema, TerminalDetachAckSchema, TerminalInputSchema, TerminalOutputEventSchema, TerminalReplayWindowSchema, TerminalResizeSchema, TerminalSessionRefSchema, terminalAttachResultMatchesRequest, terminalSessionUsable, } from "./environment-provider.js";
|
|
10
|
+
export { AgentEnvironmentCapabilitiesSchema, AgentNativeContextContinuationAdmissionSchema, AgentNativeContextContinuationResultSchema, AgentTurnInputSchema, AgentTurnResultSchema, agentEnvironmentCreateInputDigest, agentNativeContextContinuationAdmissionMatchesRequest, agentNativeContextContinuationResultMatchesRequest, AccountUsageSchema, AgentEnvironmentObservationSchema, AgentEnvironmentStatusSchema, ComputeBillingSchema, EnvironmentLifecycleSchema, ModelUsageSchema, ObservationProvenanceSchema, ObservationStateSchema, PlacementDescriptorSchema, ProviderIdentitySchema, ResourceProfileSchema, ResourceUseSampleSchema, SafeEndpointSchema, agentEnvironmentObservationIdentityMatches, assertObservationCredentialFree, observationContainsCredential, observationOf, AgentInteractiveSessionAttachSchema, AgentInteractiveSessionControlClaimAcknowledgementSchema, AgentInteractiveSessionControlClaimRequestSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionPromptAcknowledgementSchema, AgentInteractiveSessionPromptCommandSchema, AgentInteractiveSessionRefSchema, AgentInteractiveSessionStartSchema, AgentInteractiveSessionStopAcknowledgementSchema, AgentInteractiveSessionStopCommandSchema, AgentInteractiveSessionStatusSchema, agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, agentInteractiveSessionControlClaimRequestDigest, agentInteractiveSessionControlClaimMatchesRef, agentInteractiveSessionControlClaimIsNewer, agentInteractiveSessionPromptAcknowledgementMatchesCommand, agentInteractiveSessionPromptRequestDigest, agentInteractiveSessionStopAcknowledgementMatchesCommand, agentInteractiveSessionStopRequestDigest, agentInteractiveSessionRequestDigest, agentInteractiveSessionRefMatchesStart, agentInteractiveSessionRunRef, agentInteractiveSessionStatusMatchesRef, exactAgentInteractiveSessionStart, AgentEnvironmentCreationSchema, createAgentEnvironmentWithIdempotency, replayedAgentEnvironmentView, TerminalAttachRequestSchema, TerminalAttachResultSchema, TerminalDetachAckSchema, TerminalInputSchema, TerminalOutputEventSchema, TerminalReplayWindowSchema, TerminalResizeSchema, TerminalSessionRefSchema, terminalAttachResultMatchesRequest, terminalSessionUsable, } from "./environment-provider.js";
|
|
11
11
|
export * from "./plan.js";
|
|
12
12
|
export * from "./runtime-control.js";
|
|
13
13
|
export * from "./portable-context.js";
|
|
@@ -38,3 +38,4 @@ export * from "./harness-capabilities.js";
|
|
|
38
38
|
export * from "./profile-schema.js";
|
|
39
39
|
export * from "./profile-security.js";
|
|
40
40
|
export * from "./sandbox-size.js";
|
|
41
|
+
export { CONTRACT_MAX_CONFIDENTIAL_ATTESTATION_QUOTE_LENGTH, } from "./contract-limits.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { boundedStringSchema } from "./contract-limits.js";
|
|
2
|
+
import { boundedStringSchema, confidentialAttestationQuoteSchema, } from "./contract-limits.js";
|
|
3
3
|
import { AgentExactRunControlRefSchema, } from "./runtime-control.js";
|
|
4
4
|
import { idSchema, sha256DigestSchema, wireDigest } from "./workspace-branching-shared.js";
|
|
5
5
|
/**
|
|
@@ -18,7 +18,7 @@ export const ConfidentialAttestationSchema = z
|
|
|
18
18
|
requestDigest: sha256DigestSchema,
|
|
19
19
|
profileDigest: sha256DigestSchema,
|
|
20
20
|
policy: idSchema,
|
|
21
|
-
quote:
|
|
21
|
+
quote: confidentialAttestationQuoteSchema.min(1),
|
|
22
22
|
providerKeyId: idSchema,
|
|
23
23
|
providerSignature: boundedStringSchema.min(1),
|
|
24
24
|
verifiedAt: z.iso.datetime().max(64),
|