@osstack/protocol 0.15.0 → 0.22.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/dist/attention.d.ts +863 -0
- package/dist/attention.d.ts.map +1 -0
- package/dist/attention.js +112 -0
- package/dist/attention.js.map +1 -0
- package/dist/autonomy.d.ts +14 -14
- package/dist/delivery-contract.d.ts +734 -0
- package/dist/delivery-contract.d.ts.map +1 -0
- package/dist/delivery-contract.js +111 -0
- package/dist/delivery-contract.js.map +1 -0
- package/dist/envelope.d.ts +42 -42
- package/dist/event.d.ts +4 -4
- package/dist/follow-up-delivery.d.ts +1831 -0
- package/dist/follow-up-delivery.d.ts.map +1 -0
- package/dist/follow-up-delivery.js +174 -0
- package/dist/follow-up-delivery.js.map +1 -0
- package/dist/follow-up.d.ts +1100 -0
- package/dist/follow-up.d.ts.map +1 -0
- package/dist/follow-up.js +28 -0
- package/dist/follow-up.js.map +1 -0
- package/dist/generate.d.ts +1 -0
- package/dist/generate.d.ts.map +1 -1
- package/dist/generate.js +61 -1
- package/dist/generate.js.map +1 -1
- package/dist/graph-checkpoint.d.ts +409 -0
- package/dist/graph-checkpoint.d.ts.map +1 -0
- package/dist/graph-checkpoint.js +91 -0
- package/dist/graph-checkpoint.js.map +1 -0
- package/dist/graph-worker.d.ts +1663 -0
- package/dist/graph-worker.d.ts.map +1 -0
- package/dist/graph-worker.js +152 -0
- package/dist/graph-worker.js.map +1 -0
- package/dist/graph.d.ts +13169 -0
- package/dist/graph.d.ts.map +1 -0
- package/dist/graph.js +427 -0
- package/dist/graph.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/policy.d.ts +10 -10
- package/dist/run.d.ts +4 -4
- package/dist/session-continuation-grant.d.ts +414 -0
- package/dist/session-continuation-grant.d.ts.map +1 -0
- package/dist/session-continuation-grant.js +59 -0
- package/dist/session-continuation-grant.js.map +1 -0
- package/dist/session-continuation.d.ts +129 -0
- package/dist/session-continuation.d.ts.map +1 -0
- package/dist/session-continuation.js +30 -0
- package/dist/session-continuation.js.map +1 -0
- package/dist/task.d.ts +2 -2
- package/package.json +11 -10
- package/schemas/attention-inbox.schema.json +271 -0
- package/schemas/attention-status.schema.json +434 -0
- package/schemas/continuation-grant-body.schema.json +189 -0
- package/schemas/continuation-output-check.schema.json +65 -0
- package/schemas/delivery-contract-v2.schema.json +238 -0
- package/schemas/delivery-verification-receipt-v2.schema.json +223 -0
- package/schemas/follow-up-create-params.schema.json +78 -0
- package/schemas/follow-up-draft-params.schema.json +39 -0
- package/schemas/follow-up-list-params.schema.json +42 -0
- package/schemas/follow-up-list-result.schema.json +241 -0
- package/schemas/follow-up-mutation-result.schema.json +361 -0
- package/schemas/follow-up-obligation.schema.json +343 -0
- package/schemas/follow-up-resolve-params.schema.json +53 -0
- package/schemas/frozen-delivery-contract-v2.schema.json +258 -0
- package/schemas/graph-checkpoint-request.schema.json +222 -0
- package/schemas/graph-checkpoint-response.schema.json +258 -0
- package/schemas/graph-worker.schema.json +546 -0
- package/schemas/graph.schema.json +1798 -0
- package/schemas/session-continuation-request.schema.json +62 -0
- package/schemas/session-decision.schema.json +107 -0
- package/schemas/signed-continuation-grant.schema.json +209 -0
- package/LICENSE +0 -21
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"follow-up.d.ts","sourceRoot":"","sources":["../src/follow-up.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,aAAa,6DAA2D,CAAC;AACtF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtB,CAAC;AACZ,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;EAAuK,CAAC;AACvM,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAAiE,CAAC;AAClG,eAAO,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEpB,CAAC;AACZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACxE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACpE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACpE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC5E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACpE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
const text = (bytes) => z.string().min(1).max(bytes).refine(value => /[^\p{White_Space}\p{C}]/u.test(value) && new TextEncoder().encode(value).length <= bytes);
|
|
3
|
+
const epoch = z.number().int().nonnegative().max(8_640_000_000_000_000);
|
|
4
|
+
const revision = z.number().int().positive().max(Number.MAX_SAFE_INTEGER - 1);
|
|
5
|
+
const scope = { repo_path: text(4096), default_tenant: z.literal(true) };
|
|
6
|
+
const identity = { obligation_id: z.string().uuid(), expected_revision: revision };
|
|
7
|
+
export const FollowUpState = z.enum(["open", "drafted", "fulfilled_local", "waived"]);
|
|
8
|
+
export const FollowUpCreateParams = z.object({ ...scope, source_session_id: text(256), expected_source_version: revision,
|
|
9
|
+
idempotency_key: text(128), actor: text(128), promise: text(4096), destination_ref: z.literal("local_operator"),
|
|
10
|
+
resolution_condition: z.enum(["manual", "session_completed"]), due_at: epoch.nullable().default(null),
|
|
11
|
+
}).strict();
|
|
12
|
+
export const FollowUpListParams = z.object({ ...scope, limit: z.number().int().min(1).max(50).default(20), cursor: z.string().min(1).max(1024).optional(), state: FollowUpState.optional() }).strict();
|
|
13
|
+
export const FollowUpDraftParams = z.object({ ...scope, ...identity, actor: text(128) }).strict();
|
|
14
|
+
export const FollowUpResolveParams = z.object({ ...scope, ...identity, actor: text(128), reason: text(1024), mode: z.enum(["waive", "condition"]) }).strict();
|
|
15
|
+
export const FollowUpSourceSnapshot = z.object({ state: z.enum(["starting", "running", "awaiting_decision", "idle", "completed", "failed", "cancelled"]), version: revision, updated_at: epoch }).strict();
|
|
16
|
+
const draft = z.object({ text: text(8192), content_digest: z.string().regex(/^[a-f0-9]{64}$/), source: FollowUpSourceSnapshot.nullable(), source_missing: z.boolean(), created_at: epoch, delivery_state: z.literal("unsent") }).strict();
|
|
17
|
+
const resolution = z.object({ mode: z.enum(["waive", "condition"]), actor: text(128), reason: text(1024), source: FollowUpSourceSnapshot.nullable(), resolved_at: epoch, external_delivery: z.literal("unsupported") }).strict();
|
|
18
|
+
export const FollowUpObligation = z.object({ ...scope, obligation_id: z.string().uuid(), source_session_id: text(256), source_task_id: text(256), source_run_id: text(256), source_creation_version: revision, source_identity_digest: z.string().regex(/^[a-f0-9]{64}$/),
|
|
19
|
+
actor: text(128), promise: text(4096), destination_ref: z.literal("local_operator"), resolution_condition: z.enum(["manual", "session_completed"]), due_at: epoch.nullable(),
|
|
20
|
+
state: FollowUpState, revision, created_at: epoch, updated_at: epoch, draft: draft.nullable(), resolution: resolution.nullable(),
|
|
21
|
+
source: FollowUpSourceSnapshot.nullable(), source_missing: z.boolean(), external_delivery: z.literal("unsupported"),
|
|
22
|
+
}).strict();
|
|
23
|
+
export const FollowUpMutationResult = z.object({ schema_version: z.literal(1), obligation: FollowUpObligation, duplicate: z.boolean() }).strict();
|
|
24
|
+
export const FollowUpListItem = FollowUpObligation.omit({ promise: true, draft: true, resolution: true }).extend({ promise_preview: z.string().max(160), has_draft: z.boolean() });
|
|
25
|
+
export const FollowUpListResult = z.object({ schema_version: z.literal(1), scope: z.object(scope).strict(), sampled_at_ms: epoch,
|
|
26
|
+
obligations: z.array(FollowUpListItem).max(50), next_cursor: z.string().max(1024).nullable(), overdue_count: z.number().int().nonnegative(), external_delivery: z.literal("unsupported"),
|
|
27
|
+
}).strict();
|
|
28
|
+
//# sourceMappingURL=follow-up.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"follow-up.js","sourceRoot":"","sources":["../src/follow-up.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,MAAM,IAAI,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,CAAC;AACxK,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;AACxE,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,gBAAgB,GAAG,CAAC,CAAC,CA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C,MAAM,EAAE,CAAC"}
|
package/dist/generate.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ interface SchemaEntry {
|
|
|
7
7
|
/** Optional top-level $comment embedded in the generated JSON Schema. */
|
|
8
8
|
comment?: string;
|
|
9
9
|
schema: ZodTypeAny;
|
|
10
|
+
references?: "root";
|
|
10
11
|
}
|
|
11
12
|
/** Public protocol contracts emitted as JSON Schema. Order is stable. */
|
|
12
13
|
export declare const SCHEMA_MANIFEST: readonly SchemaEntry[];
|
package/dist/generate.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../src/generate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../src/generate.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAuBtC,UAAU,WAAW;IACnB,+EAA+E;IAC/E,GAAG,EAAE,MAAM,CAAC;IACZ,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,yEAAyE;AACzE,eAAO,MAAM,eAAe,EAAE,SAAS,WAAW,EAmGjD,CAAC;AAkBF,2DAA2D;AAC3D,wBAAgB,WAAW,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAMpD"}
|
package/dist/generate.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FollowUpCreateParams, FollowUpListParams, FollowUpDraftParams, FollowUpResolveParams, FollowUpObligation, FollowUpMutationResult, FollowUpListResult } from "./follow-up.js";
|
|
1
2
|
// JSON Schema generation — Zod is the source of truth; this module emits the
|
|
2
3
|
// committed schemas/*.schema.json artifacts. A single manifest is the shared
|
|
3
4
|
// source of truth for both scripts/generate-schemas.mjs (writes/checks the
|
|
@@ -9,6 +10,11 @@
|
|
|
9
10
|
// cannot represent. The generated agent-command-result schema therefore
|
|
10
11
|
// documents the object SHAPE only; the conditional rules live in the superRefine
|
|
11
12
|
// and the tests. This is a known, documented limitation, not a gap.
|
|
13
|
+
import { DeliveryContractV2, FrozenDeliveryContractV2, DeliveryVerificationReceiptV2 } from "./delivery-contract.js";
|
|
14
|
+
import { AttentionInbox, AttentionStatus } from "./attention.js";
|
|
15
|
+
import { GraphWorkerMessage } from "./graph-worker.js";
|
|
16
|
+
import { GraphCheckpointRequest, GraphCheckpointResponse } from "./graph-checkpoint.js";
|
|
17
|
+
import { GraphProtocol } from "./graph.js";
|
|
12
18
|
import { zodToJsonSchema } from "zod-to-json-schema";
|
|
13
19
|
import { AgentCommand, AgentCommandResultObject, } from "./envelope.js";
|
|
14
20
|
import { ApprovalDecision, ApprovalRequest } from "./approval.js";
|
|
@@ -18,14 +24,68 @@ import { EventEnvelope } from "./event.js";
|
|
|
18
24
|
import { PolicyDecision } from "./policy.js";
|
|
19
25
|
import { RunSummary } from "./run.js";
|
|
20
26
|
import { Task } from "./task.js";
|
|
27
|
+
import { SessionContinuationRequest, SessionDecision } from "./session-continuation.js";
|
|
28
|
+
import { ContinuationGrantBody, OutputCheck, SignedContinuationGrant } from "./session-continuation-grant.js";
|
|
21
29
|
/** Public protocol contracts emitted as JSON Schema. Order is stable. */
|
|
22
30
|
export const SCHEMA_MANIFEST = [
|
|
31
|
+
{ key: "follow-up-create-params", title: "OSStack FollowUpCreateParams", schema: FollowUpCreateParams, comment: "Local ledger only; parsing does not authorize remote delivery. Runtime validates canonical repository, source binding, revisions and response byte budget." },
|
|
32
|
+
{ key: "follow-up-list-params", title: "OSStack FollowUpListParams", schema: FollowUpListParams, comment: "Local ledger only; parsing does not authorize remote delivery. Runtime validates canonical repository, source binding, revisions and response byte budget." },
|
|
33
|
+
{ key: "follow-up-draft-params", title: "OSStack FollowUpDraftParams", schema: FollowUpDraftParams, comment: "Local ledger only; parsing does not authorize remote delivery. Runtime validates canonical repository, source binding, revisions and response byte budget." },
|
|
34
|
+
{ key: "follow-up-resolve-params", title: "OSStack FollowUpResolveParams", schema: FollowUpResolveParams, comment: "Local ledger only; parsing does not authorize remote delivery. Runtime validates canonical repository, source binding, revisions and response byte budget." },
|
|
35
|
+
{ key: "follow-up-obligation", title: "OSStack FollowUpObligation", schema: FollowUpObligation, comment: "Local ledger only; parsing does not authorize remote delivery. Runtime validates canonical repository, source binding, revisions and response byte budget." },
|
|
36
|
+
{ key: "follow-up-mutation-result", title: "OSStack FollowUpMutationResult", schema: FollowUpMutationResult, comment: "Local ledger only; parsing does not authorize remote delivery. Runtime validates canonical repository, source binding, revisions and response byte budget." },
|
|
37
|
+
{ key: "follow-up-list-result", title: "OSStack FollowUpListResult", schema: FollowUpListResult, comment: "Local ledger only; parsing does not authorize remote delivery. Runtime validates canonical repository, source binding, revisions and response byte budget." },
|
|
38
|
+
{ key: "delivery-contract-v2", title: "OSStack Delivery Contract v2", schema: DeliveryContractV2,
|
|
39
|
+
comment: "Shape only. Zod additionally enforces completion/action/publication constraints, unique checks, canonical references and scout restrictions. Contract fields constrain existing host authorization; they never grant it." },
|
|
40
|
+
{ key: "frozen-delivery-contract-v2", title: "OSStack Frozen Delivery Contract v2", schema: FrozenDeliveryContractV2,
|
|
41
|
+
comment: "Shape only. The host must recompute the canonical contract digest and bind it to the actual repository and accepted policy." },
|
|
42
|
+
{ key: "delivery-verification-receipt-v2", title: "OSStack Host Delivery Verification Receipt v2", schema: DeliveryVerificationReceiptV2,
|
|
43
|
+
comment: "Parsing does not authenticate provenance. Verify host-owned receipt, run/task/candidate/contract/policy binding, actual command results and independent review before deriving completion." },
|
|
44
|
+
{ key: "attention-inbox", title: "OSStack Attention Inbox", schema: AttentionInbox },
|
|
45
|
+
{ key: "attention-status", title: "OSStack Attention Snapshot", schema: AttentionStatus },
|
|
46
|
+
{ key: "graph-worker", title: "Graph Worker IPC", schema: GraphWorkerMessage, references: "root", comment: "Dedicated length-prefixed fd3 transport; cap raw bytes before allocation and JSON.parse. Host registration supplies authority. done is not process exit evidence." },
|
|
47
|
+
{ key: "graph-checkpoint-request", title: "Graph Checkpoint Request", schema: GraphCheckpointRequest, comment: "Opaque bounded codec data; transport caps raw frames at 8 MiB. Host binds authenticated run and fences transaction before reads, writes and replay. No JSON field confers authority." },
|
|
48
|
+
{ key: "graph-checkpoint-response", title: "Graph Checkpoint Response", schema: GraphCheckpointResponse },
|
|
49
|
+
{
|
|
50
|
+
key: "graph", title: "Osstack Graph v1 Contract Registry", schema: GraphProtocol, references: "root",
|
|
51
|
+
comment: "Registry of strict versioned JSON graph contracts. Zod additionally enforces finite JSON values, 65536-byte/16-depth/4096-value envelope bounds, plain data properties, response outcome/error consistency and effect/error location. Transport must cap raw bytes before JSON.parse. Authentication, current scope/run/generation/spec/epoch checks, request/response pairing, canonical digests, idempotency and scoped revision decisions require the protocol helpers. Trusted daemon integration must verify identity, authority, artifacts and leases and enforce durable atomic CAS/dedup. No checkpoint or graph data grants authority.",
|
|
52
|
+
},
|
|
23
53
|
{ key: "task", title: "Osstack Protocol Task", schema: Task },
|
|
24
54
|
{ key: "run-summary", title: "Osstack Protocol Run Summary", schema: RunSummary },
|
|
25
55
|
{ key: "event-envelope", title: "Osstack Protocol Event Envelope", schema: EventEnvelope },
|
|
26
56
|
{ key: "evidence-ref", title: "Osstack Protocol Evidence Ref", schema: EvidenceRef },
|
|
27
57
|
{ key: "approval-request", title: "Osstack Protocol Approval Request", schema: ApprovalRequest },
|
|
28
58
|
{ key: "approval-decision", title: "Osstack Protocol Approval Decision", schema: ApprovalDecision },
|
|
59
|
+
{
|
|
60
|
+
key: "session-continuation-request",
|
|
61
|
+
title: "Osstack Session Continuation Request",
|
|
62
|
+
comment: "Agent-reported request only. Evidence references must be independently verified and this object never authorizes an action.",
|
|
63
|
+
schema: SessionContinuationRequest,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
key: "session-decision",
|
|
67
|
+
title: "Osstack Session Decision Request",
|
|
68
|
+
comment: "Choice ID uniqueness is additionally enforced by Zod. The optional continuation is an untrusted request, not an approval.",
|
|
69
|
+
schema: SessionDecision,
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
key: "continuation-output-check",
|
|
73
|
+
title: "Osstack Continuation Persisted Output Check",
|
|
74
|
+
comment: "Checks only a declared equality contract against persisted assistant_text. JSON paths use literal own-property keys; an empty path selects the root primitive. This is not proof of open-ended quality or permission to execute scripts.",
|
|
75
|
+
schema: OutputCheck,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
key: "continuation-grant-body",
|
|
79
|
+
title: "Osstack Session Continuation Grant Body",
|
|
80
|
+
comment: "Frozen finite instructions bound to a session and runtime policy. Zod additionally rejects NUL in repo_path and whitespace-only instructions without trimming their contents. Each step checks persisted output before sending its instruction. Completion means the delegated instructions finished, not that the user's whole task succeeded. Runtime verification enforces issued_at <= now < expires_at and a positive validity interval of at most 24 hours; durable consumption belongs to the session control plane.",
|
|
81
|
+
schema: ContinuationGrantBody,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
key: "signed-continuation-grant",
|
|
85
|
+
title: "Osstack Signed Session Continuation Grant",
|
|
86
|
+
comment: "Ed25519 signs UTF-8 canonical JSON of the strictly parsed body (defaults included, object keys sorted, array order preserved). Zod additionally rejects NUL in repo_path and whitespace-only instructions without rewriting their contents. Signature and trusted-key verification are required at runtime. This grant carries no R3 or GitHub approval authority.",
|
|
87
|
+
schema: SignedContinuationGrant,
|
|
88
|
+
},
|
|
29
89
|
{
|
|
30
90
|
key: "autonomy-risk-level",
|
|
31
91
|
title: "Osstack Guarded Autonomy Risk Level",
|
|
@@ -67,7 +127,7 @@ export const SCHEMA_MANIFEST = [
|
|
|
67
127
|
function renderSchema(entry) {
|
|
68
128
|
const json = zodToJsonSchema(entry.schema, {
|
|
69
129
|
target: "jsonSchema7",
|
|
70
|
-
$refStrategy: "none",
|
|
130
|
+
$refStrategy: entry.references ?? "none",
|
|
71
131
|
});
|
|
72
132
|
// Stable, self-describing header fields, independent of Zod internals.
|
|
73
133
|
const withMeta = {
|
package/dist/generate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../src/generate.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,6EAA6E;AAC7E,2EAA2E;AAC3E,sEAAsE;AACtE,gDAAgD;AAChD,EAAE;AACF,mEAAmE;AACnE,iFAAiF;AACjF,wEAAwE;AACxE,iFAAiF;AACjF,oEAAoE;
|
|
1
|
+
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../src/generate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACtL,6EAA6E;AAC7E,6EAA6E;AAC7E,2EAA2E;AAC3E,sEAAsE;AACtE,gDAAgD;AAChD,EAAE;AACF,mEAAmE;AACnE,iFAAiF;AACjF,wEAAwE;AACxE,iFAAiF;AACjF,oEAAoE;AAEpE,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AACrH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAExF,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,YAAY,EACZ,wBAAwB,GACzB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,eAAe,CA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AAC;AAED,2DAA2D;AAC3D,MAAM,UAAU,WAAW;IACzB,MAAM,GAAG,GAA2B,EAAE,CAAC;IACvC,KAAK,MAAM,KAAK,IAAI,eAAe,EAAE,CAAC;QACpC,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,cAAc,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IACxD,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GRAPH_CHECKPOINT_MAX_FRAME_BYTES: number;
|
|
3
|
+
export declare const GRAPH_CHECKPOINT_MAX_TUPLE_BYTES: number;
|
|
4
|
+
export declare const GRAPH_CHECKPOINT_MAX_PAGE_SIZE = 16;
|
|
5
|
+
export declare const GraphCheckpointTupleWire: z.ZodObject<{
|
|
6
|
+
parentCheckpointId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
checkpoint: z.ZodEffects<z.ZodString, string, string>;
|
|
8
|
+
metadata: z.ZodEffects<z.ZodString, string, string>;
|
|
9
|
+
newVersions: z.ZodEffects<z.ZodString, string, string>;
|
|
10
|
+
pendingWrites: z.ZodArray<z.ZodObject<{
|
|
11
|
+
channel: z.ZodString;
|
|
12
|
+
index: z.ZodNumber;
|
|
13
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
14
|
+
} & {
|
|
15
|
+
taskId: z.ZodString;
|
|
16
|
+
}, "strict", z.ZodTypeAny, {
|
|
17
|
+
value: string;
|
|
18
|
+
channel: string;
|
|
19
|
+
index: number;
|
|
20
|
+
taskId: string;
|
|
21
|
+
}, {
|
|
22
|
+
value: string;
|
|
23
|
+
channel: string;
|
|
24
|
+
index: number;
|
|
25
|
+
taskId: string;
|
|
26
|
+
}>, "many">;
|
|
27
|
+
threadId: z.ZodString;
|
|
28
|
+
namespace: z.ZodString;
|
|
29
|
+
checkpointId: z.ZodString;
|
|
30
|
+
}, "strict", z.ZodTypeAny, {
|
|
31
|
+
metadata: string;
|
|
32
|
+
checkpoint: string;
|
|
33
|
+
namespace: string;
|
|
34
|
+
checkpointId: string;
|
|
35
|
+
newVersions: string;
|
|
36
|
+
pendingWrites: {
|
|
37
|
+
value: string;
|
|
38
|
+
channel: string;
|
|
39
|
+
index: number;
|
|
40
|
+
taskId: string;
|
|
41
|
+
}[];
|
|
42
|
+
threadId: string;
|
|
43
|
+
parentCheckpointId?: string | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
metadata: string;
|
|
46
|
+
checkpoint: string;
|
|
47
|
+
namespace: string;
|
|
48
|
+
checkpointId: string;
|
|
49
|
+
newVersions: string;
|
|
50
|
+
pendingWrites: {
|
|
51
|
+
value: string;
|
|
52
|
+
channel: string;
|
|
53
|
+
index: number;
|
|
54
|
+
taskId: string;
|
|
55
|
+
}[];
|
|
56
|
+
threadId: string;
|
|
57
|
+
parentCheckpointId?: string | undefined;
|
|
58
|
+
}>;
|
|
59
|
+
export type GraphCheckpointTupleWire = z.infer<typeof GraphCheckpointTupleWire>;
|
|
60
|
+
export declare const GraphCheckpointRequest: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
61
|
+
checkpointId: z.ZodOptional<z.ZodString>;
|
|
62
|
+
threadId: z.ZodString;
|
|
63
|
+
namespace: z.ZodString;
|
|
64
|
+
kind: z.ZodLiteral<"get">;
|
|
65
|
+
}, "strict", z.ZodTypeAny, {
|
|
66
|
+
kind: "get";
|
|
67
|
+
namespace: string;
|
|
68
|
+
threadId: string;
|
|
69
|
+
checkpointId?: string | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
kind: "get";
|
|
72
|
+
namespace: string;
|
|
73
|
+
threadId: string;
|
|
74
|
+
checkpointId?: string | undefined;
|
|
75
|
+
}>, z.ZodObject<{
|
|
76
|
+
kind: z.ZodLiteral<"list">;
|
|
77
|
+
threadId: z.ZodString;
|
|
78
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
79
|
+
checkpointId: z.ZodOptional<z.ZodString>;
|
|
80
|
+
before: z.ZodOptional<z.ZodString>;
|
|
81
|
+
cursor: z.ZodOptional<z.ZodObject<{
|
|
82
|
+
namespace: z.ZodString;
|
|
83
|
+
checkpointId: z.ZodString;
|
|
84
|
+
}, "strict", z.ZodTypeAny, {
|
|
85
|
+
namespace: string;
|
|
86
|
+
checkpointId: string;
|
|
87
|
+
}, {
|
|
88
|
+
namespace: string;
|
|
89
|
+
checkpointId: string;
|
|
90
|
+
}>>;
|
|
91
|
+
pageSize: z.ZodNumber;
|
|
92
|
+
}, "strict", z.ZodTypeAny, {
|
|
93
|
+
kind: "list";
|
|
94
|
+
threadId: string;
|
|
95
|
+
pageSize: number;
|
|
96
|
+
cursor?: {
|
|
97
|
+
namespace: string;
|
|
98
|
+
checkpointId: string;
|
|
99
|
+
} | undefined;
|
|
100
|
+
namespace?: string | undefined;
|
|
101
|
+
checkpointId?: string | undefined;
|
|
102
|
+
before?: string | undefined;
|
|
103
|
+
}, {
|
|
104
|
+
kind: "list";
|
|
105
|
+
threadId: string;
|
|
106
|
+
pageSize: number;
|
|
107
|
+
cursor?: {
|
|
108
|
+
namespace: string;
|
|
109
|
+
checkpointId: string;
|
|
110
|
+
} | undefined;
|
|
111
|
+
namespace?: string | undefined;
|
|
112
|
+
checkpointId?: string | undefined;
|
|
113
|
+
before?: string | undefined;
|
|
114
|
+
}>, z.ZodObject<{
|
|
115
|
+
parentCheckpointId: z.ZodOptional<z.ZodString>;
|
|
116
|
+
checkpoint: z.ZodEffects<z.ZodString, string, string>;
|
|
117
|
+
metadata: z.ZodEffects<z.ZodString, string, string>;
|
|
118
|
+
newVersions: z.ZodEffects<z.ZodString, string, string>;
|
|
119
|
+
threadId: z.ZodString;
|
|
120
|
+
namespace: z.ZodString;
|
|
121
|
+
checkpointId: z.ZodString;
|
|
122
|
+
kind: z.ZodLiteral<"put">;
|
|
123
|
+
requestId: z.ZodString;
|
|
124
|
+
}, "strict", z.ZodTypeAny, {
|
|
125
|
+
kind: "put";
|
|
126
|
+
requestId: string;
|
|
127
|
+
metadata: string;
|
|
128
|
+
checkpoint: string;
|
|
129
|
+
namespace: string;
|
|
130
|
+
checkpointId: string;
|
|
131
|
+
newVersions: string;
|
|
132
|
+
threadId: string;
|
|
133
|
+
parentCheckpointId?: string | undefined;
|
|
134
|
+
}, {
|
|
135
|
+
kind: "put";
|
|
136
|
+
requestId: string;
|
|
137
|
+
metadata: string;
|
|
138
|
+
checkpoint: string;
|
|
139
|
+
namespace: string;
|
|
140
|
+
checkpointId: string;
|
|
141
|
+
newVersions: string;
|
|
142
|
+
threadId: string;
|
|
143
|
+
parentCheckpointId?: string | undefined;
|
|
144
|
+
}>, z.ZodObject<{
|
|
145
|
+
taskId: z.ZodString;
|
|
146
|
+
writes: z.ZodArray<z.ZodObject<{
|
|
147
|
+
channel: z.ZodString;
|
|
148
|
+
index: z.ZodNumber;
|
|
149
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
150
|
+
}, "strict", z.ZodTypeAny, {
|
|
151
|
+
value: string;
|
|
152
|
+
channel: string;
|
|
153
|
+
index: number;
|
|
154
|
+
}, {
|
|
155
|
+
value: string;
|
|
156
|
+
channel: string;
|
|
157
|
+
index: number;
|
|
158
|
+
}>, "many">;
|
|
159
|
+
threadId: z.ZodString;
|
|
160
|
+
namespace: z.ZodString;
|
|
161
|
+
checkpointId: z.ZodString;
|
|
162
|
+
kind: z.ZodLiteral<"writes">;
|
|
163
|
+
requestId: z.ZodString;
|
|
164
|
+
}, "strict", z.ZodTypeAny, {
|
|
165
|
+
kind: "writes";
|
|
166
|
+
requestId: string;
|
|
167
|
+
namespace: string;
|
|
168
|
+
checkpointId: string;
|
|
169
|
+
taskId: string;
|
|
170
|
+
threadId: string;
|
|
171
|
+
writes: {
|
|
172
|
+
value: string;
|
|
173
|
+
channel: string;
|
|
174
|
+
index: number;
|
|
175
|
+
}[];
|
|
176
|
+
}, {
|
|
177
|
+
kind: "writes";
|
|
178
|
+
requestId: string;
|
|
179
|
+
namespace: string;
|
|
180
|
+
checkpointId: string;
|
|
181
|
+
taskId: string;
|
|
182
|
+
threadId: string;
|
|
183
|
+
writes: {
|
|
184
|
+
value: string;
|
|
185
|
+
channel: string;
|
|
186
|
+
index: number;
|
|
187
|
+
}[];
|
|
188
|
+
}>]>;
|
|
189
|
+
export type GraphCheckpointRequest = z.infer<typeof GraphCheckpointRequest>;
|
|
190
|
+
export declare const GraphCheckpointResponse: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
191
|
+
kind: z.ZodLiteral<"get">;
|
|
192
|
+
tuple: z.ZodNullable<z.ZodObject<{
|
|
193
|
+
parentCheckpointId: z.ZodOptional<z.ZodString>;
|
|
194
|
+
checkpoint: z.ZodEffects<z.ZodString, string, string>;
|
|
195
|
+
metadata: z.ZodEffects<z.ZodString, string, string>;
|
|
196
|
+
newVersions: z.ZodEffects<z.ZodString, string, string>;
|
|
197
|
+
pendingWrites: z.ZodArray<z.ZodObject<{
|
|
198
|
+
channel: z.ZodString;
|
|
199
|
+
index: z.ZodNumber;
|
|
200
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
201
|
+
} & {
|
|
202
|
+
taskId: z.ZodString;
|
|
203
|
+
}, "strict", z.ZodTypeAny, {
|
|
204
|
+
value: string;
|
|
205
|
+
channel: string;
|
|
206
|
+
index: number;
|
|
207
|
+
taskId: string;
|
|
208
|
+
}, {
|
|
209
|
+
value: string;
|
|
210
|
+
channel: string;
|
|
211
|
+
index: number;
|
|
212
|
+
taskId: string;
|
|
213
|
+
}>, "many">;
|
|
214
|
+
threadId: z.ZodString;
|
|
215
|
+
namespace: z.ZodString;
|
|
216
|
+
checkpointId: z.ZodString;
|
|
217
|
+
}, "strict", z.ZodTypeAny, {
|
|
218
|
+
metadata: string;
|
|
219
|
+
checkpoint: string;
|
|
220
|
+
namespace: string;
|
|
221
|
+
checkpointId: string;
|
|
222
|
+
newVersions: string;
|
|
223
|
+
pendingWrites: {
|
|
224
|
+
value: string;
|
|
225
|
+
channel: string;
|
|
226
|
+
index: number;
|
|
227
|
+
taskId: string;
|
|
228
|
+
}[];
|
|
229
|
+
threadId: string;
|
|
230
|
+
parentCheckpointId?: string | undefined;
|
|
231
|
+
}, {
|
|
232
|
+
metadata: string;
|
|
233
|
+
checkpoint: string;
|
|
234
|
+
namespace: string;
|
|
235
|
+
checkpointId: string;
|
|
236
|
+
newVersions: string;
|
|
237
|
+
pendingWrites: {
|
|
238
|
+
value: string;
|
|
239
|
+
channel: string;
|
|
240
|
+
index: number;
|
|
241
|
+
taskId: string;
|
|
242
|
+
}[];
|
|
243
|
+
threadId: string;
|
|
244
|
+
parentCheckpointId?: string | undefined;
|
|
245
|
+
}>>;
|
|
246
|
+
}, "strict", z.ZodTypeAny, {
|
|
247
|
+
kind: "get";
|
|
248
|
+
tuple: {
|
|
249
|
+
metadata: string;
|
|
250
|
+
checkpoint: string;
|
|
251
|
+
namespace: string;
|
|
252
|
+
checkpointId: string;
|
|
253
|
+
newVersions: string;
|
|
254
|
+
pendingWrites: {
|
|
255
|
+
value: string;
|
|
256
|
+
channel: string;
|
|
257
|
+
index: number;
|
|
258
|
+
taskId: string;
|
|
259
|
+
}[];
|
|
260
|
+
threadId: string;
|
|
261
|
+
parentCheckpointId?: string | undefined;
|
|
262
|
+
} | null;
|
|
263
|
+
}, {
|
|
264
|
+
kind: "get";
|
|
265
|
+
tuple: {
|
|
266
|
+
metadata: string;
|
|
267
|
+
checkpoint: string;
|
|
268
|
+
namespace: string;
|
|
269
|
+
checkpointId: string;
|
|
270
|
+
newVersions: string;
|
|
271
|
+
pendingWrites: {
|
|
272
|
+
value: string;
|
|
273
|
+
channel: string;
|
|
274
|
+
index: number;
|
|
275
|
+
taskId: string;
|
|
276
|
+
}[];
|
|
277
|
+
threadId: string;
|
|
278
|
+
parentCheckpointId?: string | undefined;
|
|
279
|
+
} | null;
|
|
280
|
+
}>, z.ZodObject<{
|
|
281
|
+
kind: z.ZodLiteral<"list">;
|
|
282
|
+
tuples: z.ZodArray<z.ZodObject<{
|
|
283
|
+
parentCheckpointId: z.ZodOptional<z.ZodString>;
|
|
284
|
+
checkpoint: z.ZodEffects<z.ZodString, string, string>;
|
|
285
|
+
metadata: z.ZodEffects<z.ZodString, string, string>;
|
|
286
|
+
newVersions: z.ZodEffects<z.ZodString, string, string>;
|
|
287
|
+
pendingWrites: z.ZodArray<z.ZodObject<{
|
|
288
|
+
channel: z.ZodString;
|
|
289
|
+
index: z.ZodNumber;
|
|
290
|
+
value: z.ZodEffects<z.ZodString, string, string>;
|
|
291
|
+
} & {
|
|
292
|
+
taskId: z.ZodString;
|
|
293
|
+
}, "strict", z.ZodTypeAny, {
|
|
294
|
+
value: string;
|
|
295
|
+
channel: string;
|
|
296
|
+
index: number;
|
|
297
|
+
taskId: string;
|
|
298
|
+
}, {
|
|
299
|
+
value: string;
|
|
300
|
+
channel: string;
|
|
301
|
+
index: number;
|
|
302
|
+
taskId: string;
|
|
303
|
+
}>, "many">;
|
|
304
|
+
threadId: z.ZodString;
|
|
305
|
+
namespace: z.ZodString;
|
|
306
|
+
checkpointId: z.ZodString;
|
|
307
|
+
}, "strict", z.ZodTypeAny, {
|
|
308
|
+
metadata: string;
|
|
309
|
+
checkpoint: string;
|
|
310
|
+
namespace: string;
|
|
311
|
+
checkpointId: string;
|
|
312
|
+
newVersions: string;
|
|
313
|
+
pendingWrites: {
|
|
314
|
+
value: string;
|
|
315
|
+
channel: string;
|
|
316
|
+
index: number;
|
|
317
|
+
taskId: string;
|
|
318
|
+
}[];
|
|
319
|
+
threadId: string;
|
|
320
|
+
parentCheckpointId?: string | undefined;
|
|
321
|
+
}, {
|
|
322
|
+
metadata: string;
|
|
323
|
+
checkpoint: string;
|
|
324
|
+
namespace: string;
|
|
325
|
+
checkpointId: string;
|
|
326
|
+
newVersions: string;
|
|
327
|
+
pendingWrites: {
|
|
328
|
+
value: string;
|
|
329
|
+
channel: string;
|
|
330
|
+
index: number;
|
|
331
|
+
taskId: string;
|
|
332
|
+
}[];
|
|
333
|
+
threadId: string;
|
|
334
|
+
parentCheckpointId?: string | undefined;
|
|
335
|
+
}>, "many">;
|
|
336
|
+
cursor: z.ZodOptional<z.ZodObject<{
|
|
337
|
+
namespace: z.ZodString;
|
|
338
|
+
checkpointId: z.ZodString;
|
|
339
|
+
}, "strict", z.ZodTypeAny, {
|
|
340
|
+
namespace: string;
|
|
341
|
+
checkpointId: string;
|
|
342
|
+
}, {
|
|
343
|
+
namespace: string;
|
|
344
|
+
checkpointId: string;
|
|
345
|
+
}>>;
|
|
346
|
+
}, "strict", z.ZodTypeAny, {
|
|
347
|
+
kind: "list";
|
|
348
|
+
tuples: {
|
|
349
|
+
metadata: string;
|
|
350
|
+
checkpoint: string;
|
|
351
|
+
namespace: string;
|
|
352
|
+
checkpointId: string;
|
|
353
|
+
newVersions: string;
|
|
354
|
+
pendingWrites: {
|
|
355
|
+
value: string;
|
|
356
|
+
channel: string;
|
|
357
|
+
index: number;
|
|
358
|
+
taskId: string;
|
|
359
|
+
}[];
|
|
360
|
+
threadId: string;
|
|
361
|
+
parentCheckpointId?: string | undefined;
|
|
362
|
+
}[];
|
|
363
|
+
cursor?: {
|
|
364
|
+
namespace: string;
|
|
365
|
+
checkpointId: string;
|
|
366
|
+
} | undefined;
|
|
367
|
+
}, {
|
|
368
|
+
kind: "list";
|
|
369
|
+
tuples: {
|
|
370
|
+
metadata: string;
|
|
371
|
+
checkpoint: string;
|
|
372
|
+
namespace: string;
|
|
373
|
+
checkpointId: string;
|
|
374
|
+
newVersions: string;
|
|
375
|
+
pendingWrites: {
|
|
376
|
+
value: string;
|
|
377
|
+
channel: string;
|
|
378
|
+
index: number;
|
|
379
|
+
taskId: string;
|
|
380
|
+
}[];
|
|
381
|
+
threadId: string;
|
|
382
|
+
parentCheckpointId?: string | undefined;
|
|
383
|
+
}[];
|
|
384
|
+
cursor?: {
|
|
385
|
+
namespace: string;
|
|
386
|
+
checkpointId: string;
|
|
387
|
+
} | undefined;
|
|
388
|
+
}>, z.ZodObject<{
|
|
389
|
+
kind: z.ZodLiteral<"put">;
|
|
390
|
+
checkpointId: z.ZodString;
|
|
391
|
+
}, "strict", z.ZodTypeAny, {
|
|
392
|
+
kind: "put";
|
|
393
|
+
checkpointId: string;
|
|
394
|
+
}, {
|
|
395
|
+
kind: "put";
|
|
396
|
+
checkpointId: string;
|
|
397
|
+
}>, z.ZodObject<{
|
|
398
|
+
kind: z.ZodLiteral<"writes">;
|
|
399
|
+
}, "strict", z.ZodTypeAny, {
|
|
400
|
+
kind: "writes";
|
|
401
|
+
}, {
|
|
402
|
+
kind: "writes";
|
|
403
|
+
}>]>;
|
|
404
|
+
export type GraphCheckpointResponse = z.infer<typeof GraphCheckpointResponse>;
|
|
405
|
+
/** Supplied by trusted host binding. JSON fields never confer authenticated scope. */
|
|
406
|
+
export type GraphCheckpointTransport = (request: GraphCheckpointRequest) => Promise<GraphCheckpointResponse>;
|
|
407
|
+
export declare function parseGraphCheckpointRequest(value: unknown): GraphCheckpointRequest;
|
|
408
|
+
export declare function parseGraphCheckpointResponse(value: unknown): GraphCheckpointResponse;
|
|
409
|
+
//# sourceMappingURL=graph-checkpoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-checkpoint.d.ts","sourceRoot":"","sources":["../src/graph-checkpoint.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gCAAgC,QAAkB,CAAC;AAChE,eAAO,MAAM,gCAAgC,QAAkB,CAAC;AAChE,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAOjD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG1B,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAChF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;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