@inf-monkeys-tech/monkeys 1.1.24 → 1.1.25
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 +25 -0
- package/lib/contracts/declarative-control-http.d.ts +148 -0
- package/lib/contracts/declarative-control-http.d.ts.map +1 -1
- package/lib/contracts/declarative-control.d.ts +31 -0
- package/lib/contracts/declarative-control.d.ts.map +1 -1
- package/lib/contracts/declarative-control.js +6 -0
- package/lib/contracts/declarative-control.js.map +1 -1
- package/lib/contracts/declarative-document-import.d.ts +25 -0
- package/lib/contracts/declarative-document-import.d.ts.map +1 -1
- package/lib/contracts/declarative-publication-job.d.ts +16 -0
- package/lib/contracts/declarative-publication-job.d.ts.map +1 -1
- package/lib/esm/chunk-4H5MD2LH.mjs +7280 -0
- package/lib/esm/chunk-4H5MD2LH.mjs.map +1 -0
- package/lib/esm/chunk-4ZSCTEY6.mjs +1009 -0
- package/lib/esm/chunk-4ZSCTEY6.mjs.map +1 -0
- package/lib/esm/chunk-H7J4XGXK.mjs +159 -0
- package/lib/esm/chunk-H7J4XGXK.mjs.map +1 -0
- package/lib/esm/chunk-KRIKORSN.mjs +20328 -0
- package/lib/esm/chunk-KRIKORSN.mjs.map +1 -0
- package/lib/esm/chunk-X4YQITI2.mjs +205 -0
- package/lib/esm/chunk-X4YQITI2.mjs.map +1 -0
- package/lib/esm/chunk-YKM3R2KZ.mjs +78 -0
- package/lib/esm/chunk-YKM3R2KZ.mjs.map +1 -0
- package/lib/esm/contracts/index.mjs +585 -20882
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +765 -27904
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +144 -26592
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +352 -20670
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/json-schema/page-runtime-bundle.schema.json +15 -0
- package/lib/json-schema/page.schema.json +15 -0
- package/lib/runtime/declarative-control-compiler.d.ts.map +1 -1
- package/lib/runtime/declarative-control-compiler.js +2 -0
- package/lib/runtime/declarative-control-compiler.js.map +1 -1
- package/lib/runtime/index.d.ts +2 -0
- package/lib/runtime/index.d.ts.map +1 -1
- package/lib/runtime/index.js +2 -0
- package/lib/runtime/index.js.map +1 -1
- package/lib/runtime/page-composition.d.ts +35 -0
- package/lib/runtime/page-composition.d.ts.map +1 -0
- package/lib/runtime/page-composition.js +107 -0
- package/lib/runtime/page-composition.js.map +1 -0
- package/lib/runtime/runtime-definition-wire.d.ts +8275 -0
- package/lib/runtime/runtime-definition-wire.d.ts.map +1 -0
- package/lib/runtime/runtime-definition-wire.js +111 -0
- package/lib/runtime/runtime-definition-wire.js.map +1 -0
- package/lib/schemas/index.d.ts +14 -0
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/theme-tokens/core.d.ts.map +1 -1
- package/lib/theme-tokens/core.js +16 -8
- package/lib/theme-tokens/core.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AgentRuntimeEventSchema,
|
|
3
|
+
AggregateCommitRequestSchema,
|
|
4
|
+
ApplicationRunSchema,
|
|
5
|
+
ArtifactManifestSchema,
|
|
6
|
+
BodyRelationRecordSchema,
|
|
7
|
+
BrandBodySchema,
|
|
8
|
+
BrandGeneticsProfileSchema,
|
|
9
|
+
CompletionEventSchema,
|
|
10
|
+
CompletionHeaderSchema,
|
|
11
|
+
DataContinuityEnvelopeSchema,
|
|
12
|
+
ExecutionLinkSchema,
|
|
13
|
+
ExpiringAccessGrantSchema,
|
|
14
|
+
HotwordBodySchema,
|
|
15
|
+
OutputRecordSchema,
|
|
16
|
+
ProductBodySchema,
|
|
17
|
+
RadarActionRecordSchema,
|
|
18
|
+
RadarAnalysisDetailSchema,
|
|
19
|
+
RadarAnalysisRunSchema,
|
|
20
|
+
RadarOpportunityMatrixSchema,
|
|
21
|
+
RadarPanoramaSchema,
|
|
22
|
+
RadarQueryBodySchema,
|
|
23
|
+
RadarScoreModelBodySchema,
|
|
24
|
+
RadarScoreProjectionSchema,
|
|
25
|
+
RadarSelectionSchema,
|
|
26
|
+
RadarWritebackRecordSchema,
|
|
27
|
+
RequestScopeSchema,
|
|
28
|
+
SavedRadarQuerySchema,
|
|
29
|
+
TrendIngestRunSchema,
|
|
30
|
+
TrendMetricSnapshotSchema,
|
|
31
|
+
TrendRadarCollectionItemSchema,
|
|
32
|
+
TrendSourceRecordSchema,
|
|
33
|
+
WorkflowCatalogEntrySchema,
|
|
34
|
+
WorkflowCompletionCommitSchema,
|
|
35
|
+
WorkflowCompletionReceiptSchema,
|
|
36
|
+
WorkflowPublicationSchema
|
|
37
|
+
} from "./chunk-4ZSCTEY6.mjs";
|
|
38
|
+
import {
|
|
39
|
+
ActionProgramArtifactSchema,
|
|
40
|
+
ActionProgramDefinitionSchema,
|
|
41
|
+
AgentSessionCommandResultSchema,
|
|
42
|
+
AgentSessionCommandSchema,
|
|
43
|
+
AgentSessionContinuationRequestSchema,
|
|
44
|
+
AgentSessionContinuationResultSchema,
|
|
45
|
+
AgentSessionEventSchema,
|
|
46
|
+
AgentSessionRunEventSchema,
|
|
47
|
+
AgentSessionRunSchema,
|
|
48
|
+
AgentSessionTargetedCommandSchema,
|
|
49
|
+
AgentSessionViewModelSchema,
|
|
50
|
+
AgentWorkbenchComposerViewModelSchema,
|
|
51
|
+
AgentWorkbenchNavigationViewModelSchema,
|
|
52
|
+
AgentWorkbenchQuickStartViewModelSchema,
|
|
53
|
+
ApplicationHandoffSchema,
|
|
54
|
+
CapabilityManifestSchema,
|
|
55
|
+
CapabilityRegistryDocumentSchema,
|
|
56
|
+
ChangeImpactGraphSchema,
|
|
57
|
+
ConceptDefinitionSchema,
|
|
58
|
+
ConductorWorkflowDefinitionSchema,
|
|
59
|
+
DeclarativeControlOntologyDefinitionSchema,
|
|
60
|
+
DeclarativeRouteOwnerIndexSchema,
|
|
61
|
+
DeclarativeWorkbenchCatalogSchema,
|
|
62
|
+
DesignCapabilityCatalogArtifactSchema,
|
|
63
|
+
DomainCommandDefinitionSchema,
|
|
64
|
+
DomainCommandSchema,
|
|
65
|
+
DomainEventSchema,
|
|
66
|
+
DomainQueryDefinitionSchema,
|
|
67
|
+
LegacyRouteTakeoverAuthorizationSchema,
|
|
68
|
+
LineageRecordSchema,
|
|
69
|
+
MenuDefinitionSchema,
|
|
70
|
+
MenuDefinitionSetSchema,
|
|
71
|
+
MenuRuntimeBundleSchema,
|
|
72
|
+
NavigationReleaseSchema,
|
|
73
|
+
NavigationRuntimeBundleSchema,
|
|
74
|
+
NavigationSchema,
|
|
75
|
+
OntologyDefinitionSchema,
|
|
76
|
+
OverlayNodeSchema,
|
|
77
|
+
PageDefinitionSchema,
|
|
78
|
+
PageReleaseSchema,
|
|
79
|
+
PageRuntimeBundleSchema,
|
|
80
|
+
PageRuntimeDescriptorSchema,
|
|
81
|
+
PageRuntimeProjectionSchema,
|
|
82
|
+
PageSchema,
|
|
83
|
+
PermissionAlternativePolicySchema,
|
|
84
|
+
ProductDeclarationSchema,
|
|
85
|
+
ProjectionSpecSchema,
|
|
86
|
+
PublicationPlanSchema,
|
|
87
|
+
RenderNodeSchema,
|
|
88
|
+
RenderTreeSchema,
|
|
89
|
+
RouteSpaceSchema,
|
|
90
|
+
StableRefAliasMapSchema,
|
|
91
|
+
TenantProductConfigSchema,
|
|
92
|
+
TenantRuntimeConfigSchema,
|
|
93
|
+
ThemeTokensSchema,
|
|
94
|
+
ViewProviderDescriptorSchema,
|
|
95
|
+
WorkbenchReleaseSchema,
|
|
96
|
+
WorkbenchRuntimeBundleSchema,
|
|
97
|
+
WorkbenchSchema,
|
|
98
|
+
WorkflowColumnBindingSchema,
|
|
99
|
+
WorkflowDefinitionSchema
|
|
100
|
+
} from "./chunk-KRIKORSN.mjs";
|
|
101
|
+
|
|
102
|
+
// src/schemas/index.ts
|
|
103
|
+
var canonicalContractSchemas = {
|
|
104
|
+
"aggregate-commit-request": AggregateCommitRequestSchema,
|
|
105
|
+
"workflow-column-binding": WorkflowColumnBindingSchema,
|
|
106
|
+
"agent-session-command": AgentSessionCommandSchema,
|
|
107
|
+
"agent-session-targeted-command": AgentSessionTargetedCommandSchema,
|
|
108
|
+
"agent-session-command-result": AgentSessionCommandResultSchema,
|
|
109
|
+
"agent-session-continuation-request": AgentSessionContinuationRequestSchema,
|
|
110
|
+
"agent-session-continuation-result": AgentSessionContinuationResultSchema,
|
|
111
|
+
"agent-session-event": AgentSessionEventSchema,
|
|
112
|
+
"agent-session-run-event": AgentSessionRunEventSchema,
|
|
113
|
+
"agent-session-run": AgentSessionRunSchema,
|
|
114
|
+
"agent-session-view-model": AgentSessionViewModelSchema,
|
|
115
|
+
"agent-workbench-composer-view-model": AgentWorkbenchComposerViewModelSchema,
|
|
116
|
+
"agent-workbench-navigation-view-model": AgentWorkbenchNavigationViewModelSchema,
|
|
117
|
+
"agent-workbench-quick-start-view-model": AgentWorkbenchQuickStartViewModelSchema,
|
|
118
|
+
"agent-runtime-event": AgentRuntimeEventSchema,
|
|
119
|
+
"application-run": ApplicationRunSchema,
|
|
120
|
+
"application-handoff": ApplicationHandoffSchema,
|
|
121
|
+
"artifact-manifest": ArtifactManifestSchema,
|
|
122
|
+
"brand-body": BrandBodySchema,
|
|
123
|
+
"body-relation-record": BodyRelationRecordSchema,
|
|
124
|
+
"brand-genetics-profile": BrandGeneticsProfileSchema,
|
|
125
|
+
"capability-manifest": CapabilityManifestSchema,
|
|
126
|
+
"capability-registry": CapabilityRegistryDocumentSchema,
|
|
127
|
+
"change-impact-graph": ChangeImpactGraphSchema,
|
|
128
|
+
"concept-definition": ConceptDefinitionSchema,
|
|
129
|
+
"completion-event": CompletionEventSchema,
|
|
130
|
+
"completion-header": CompletionHeaderSchema,
|
|
131
|
+
"conductor-workflow-definition": ConductorWorkflowDefinitionSchema,
|
|
132
|
+
"domain-event": DomainEventSchema,
|
|
133
|
+
"domain-command": DomainCommandSchema,
|
|
134
|
+
"domain-command-definition": DomainCommandDefinitionSchema,
|
|
135
|
+
"action-program-definition": ActionProgramDefinitionSchema,
|
|
136
|
+
"action-program-artifact": ActionProgramArtifactSchema,
|
|
137
|
+
"data-continuity-envelope": DataContinuityEnvelopeSchema,
|
|
138
|
+
"domain-query-definition": DomainQueryDefinitionSchema,
|
|
139
|
+
"declarative-control-ontology-definition": DeclarativeControlOntologyDefinitionSchema,
|
|
140
|
+
"declarative-route-owner-index": DeclarativeRouteOwnerIndexSchema,
|
|
141
|
+
"declarative-workbench-catalog": DeclarativeWorkbenchCatalogSchema,
|
|
142
|
+
"design-capability-catalog-artifact": DesignCapabilityCatalogArtifactSchema,
|
|
143
|
+
"execution-link": ExecutionLinkSchema,
|
|
144
|
+
"expiring-access-grant": ExpiringAccessGrantSchema,
|
|
145
|
+
"hotword-body": HotwordBodySchema,
|
|
146
|
+
"lineage-record": LineageRecordSchema,
|
|
147
|
+
"legacy-route-takeover-authorization": LegacyRouteTakeoverAuthorizationSchema,
|
|
148
|
+
"menu-definition": MenuDefinitionSchema,
|
|
149
|
+
"menu-definition-set": MenuDefinitionSetSchema,
|
|
150
|
+
"menu-runtime-bundle": MenuRuntimeBundleSchema,
|
|
151
|
+
navigation: NavigationSchema,
|
|
152
|
+
"navigation-release": NavigationReleaseSchema,
|
|
153
|
+
"navigation-runtime-bundle": NavigationRuntimeBundleSchema,
|
|
154
|
+
"ontology-definition": OntologyDefinitionSchema,
|
|
155
|
+
"overlay-node": OverlayNodeSchema,
|
|
156
|
+
"output-record": OutputRecordSchema,
|
|
157
|
+
"page-definition": PageDefinitionSchema,
|
|
158
|
+
page: PageSchema,
|
|
159
|
+
"page-release": PageReleaseSchema,
|
|
160
|
+
"page-runtime-bundle": PageRuntimeBundleSchema,
|
|
161
|
+
"page-runtime-descriptor": PageRuntimeDescriptorSchema,
|
|
162
|
+
"page-runtime-projection": PageRuntimeProjectionSchema,
|
|
163
|
+
"permission-alternative-policy": PermissionAlternativePolicySchema,
|
|
164
|
+
"projection-spec": ProjectionSpecSchema,
|
|
165
|
+
"publication-plan": PublicationPlanSchema,
|
|
166
|
+
"product-declaration": ProductDeclarationSchema,
|
|
167
|
+
"product-body": ProductBodySchema,
|
|
168
|
+
"radar-action-record": RadarActionRecordSchema,
|
|
169
|
+
"radar-analysis-detail": RadarAnalysisDetailSchema,
|
|
170
|
+
"radar-analysis-run": RadarAnalysisRunSchema,
|
|
171
|
+
"radar-opportunity-matrix": RadarOpportunityMatrixSchema,
|
|
172
|
+
"radar-panorama": RadarPanoramaSchema,
|
|
173
|
+
"radar-query-body": RadarQueryBodySchema,
|
|
174
|
+
"radar-score-model-body": RadarScoreModelBodySchema,
|
|
175
|
+
"radar-score-projection": RadarScoreProjectionSchema,
|
|
176
|
+
"radar-selection": RadarSelectionSchema,
|
|
177
|
+
"radar-writeback-record": RadarWritebackRecordSchema,
|
|
178
|
+
"request-scope": RequestScopeSchema,
|
|
179
|
+
"route-space": RouteSpaceSchema,
|
|
180
|
+
"render-node": RenderNodeSchema,
|
|
181
|
+
"render-tree": RenderTreeSchema,
|
|
182
|
+
"saved-radar-query": SavedRadarQuerySchema,
|
|
183
|
+
"stable-ref-alias-map": StableRefAliasMapSchema,
|
|
184
|
+
"tenant-product-config": TenantProductConfigSchema,
|
|
185
|
+
"tenant-runtime-config": TenantRuntimeConfigSchema,
|
|
186
|
+
"theme-tokens": ThemeTokensSchema,
|
|
187
|
+
"trend-radar-collection-item": TrendRadarCollectionItemSchema,
|
|
188
|
+
"trend-ingest-run": TrendIngestRunSchema,
|
|
189
|
+
"trend-metric-snapshot": TrendMetricSnapshotSchema,
|
|
190
|
+
"trend-source-record": TrendSourceRecordSchema,
|
|
191
|
+
"view-provider-descriptor": ViewProviderDescriptorSchema,
|
|
192
|
+
workbench: WorkbenchSchema,
|
|
193
|
+
"workbench-release": WorkbenchReleaseSchema,
|
|
194
|
+
"workbench-runtime-bundle": WorkbenchRuntimeBundleSchema,
|
|
195
|
+
"workflow-definition": WorkflowDefinitionSchema,
|
|
196
|
+
"workflow-catalog-entry": WorkflowCatalogEntrySchema,
|
|
197
|
+
"workflow-publication": WorkflowPublicationSchema,
|
|
198
|
+
"workflow-completion-commit": WorkflowCompletionCommitSchema,
|
|
199
|
+
"workflow-completion-receipt": WorkflowCompletionReceiptSchema
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
export {
|
|
203
|
+
canonicalContractSchemas
|
|
204
|
+
};
|
|
205
|
+
//# sourceMappingURL=chunk-X4YQITI2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["import {\n ActionProgramDefinitionSchema,\n ActionProgramArtifactSchema,\n} from \"../contracts/declarative-control\";\nexport {\n AggregateAssetDeleteSchema,\n AggregateAssetRelationObjectSchema,\n AggregateAssetRelationReplaceSchema,\n AggregateAssetSchema,\n AggregateAssetUpsertSchema,\n AggregateCommitRequestSchema,\n AggregateContainerMembershipWriteSchema,\n AggregateFeatureRelationReplaceSchema,\n AggregateFeatureRelationTargetSchema,\n AggregateFeatureValueWriteSchema,\n} from \"../contracts/aggregate-commit\";\nexport {\n PermissionBundleSchema,\n PermissionDefinitionSchema,\n ProductAccessDeclarationSchema,\n SystemGroupDefinitionSchema,\n} from \"../contracts/access\";\nexport {\n ArtifactManifestSchema,\n OutputRecordSchema,\n StorageLocatorSchema,\n} from \"../contracts/artifact\";\nexport {\n CapabilityRegistryDocumentSchema,\n CapabilityRegistryEntrySchema,\n CapabilityRegistrySourceSchema,\n CapabilitySourceTypeSchema,\n CapabilityManifestSchema,\n ContractPortSchema,\n} from \"../contracts/capability\";\nexport {\n ContractMetadataSchema,\n EntityRefSchema,\n JsonObjectSchema,\n JsonValueSchema,\n SensitiveResultPathSchema,\n SensitiveResultPathsSchema,\n} from \"../contracts/common\";\nexport {\n AgentConfigurationCapabilitySchema,\n StudioAgentModeSchema,\n AgentModeSchema,\n AgentModeCapabilitiesSchema,\n AgentResourceModeSupportSchema,\n AgentSessionCapabilitiesSchema,\n AgentSessionCapabilitySchema,\n AgentSessionPermissionProfileSchema,\n AgentSessionActiveBranchSchema,\n AgentSessionCommandPolicySchema,\n AgentSessionCommandErrorCodeSchema,\n AgentSessionCommandResultSchema,\n AgentSessionCommandSchema,\n AgentSessionContinuationRequestSchema,\n AgentSessionContinuationResultSchema,\n AgentSessionCommandTypeSchema,\n AgentSessionEventSchema,\n AgentSessionContextInheritanceSchema,\n AgentSessionLineageSchema,\n AgentSessionRunEventSchema,\n AgentSessionSnapshotSchema,\n AgentSessionStatusSchema,\n AgentSessionTerminalStatusSchema,\n AgentSessionRunSchema,\n AgentSessionTargetedCommandSchema,\n AgentSessionViewModelSchema,\n AgentWorkbenchAgentItemSchema,\n AgentWorkbenchComposerAttachmentSchema,\n AgentWorkbenchComposerInputActionSchema,\n AgentWorkbenchComposerCapabilitiesSchema,\n AgentWorkbenchComposerModelOptionSchema,\n AgentWorkbenchComposerQueueItemSchema,\n AgentWorkbenchComposerStatusSchema,\n AgentWorkbenchComposerViewModelSchema,\n AgentWorkbenchQuickStartCategorySchema,\n AgentWorkbenchQuickStartIconSchema,\n AgentWorkbenchQuickStartSectionSchema,\n AgentWorkbenchQuickStartTemplateActionSchema,\n AgentWorkbenchQuickStartTemplateSchema,\n AgentWorkbenchQuickStartViewModelSchema,\n AgentWorkbenchSidebarConfigSchema,\n AgentWorkbenchSidebarGroupItemSchema,\n AgentWorkbenchSidebarGroupSchema,\n AgentWorkbenchSidebarNavigationModeSchema,\n AgentWorkbenchSidebarSectionSchema,\n AgentWorkbenchCollectionStatusSchema,\n AgentWorkbenchNavigationCapabilitiesSchema,\n AgentWorkbenchNavigationItemStatusSchema,\n AgentWorkbenchNavigationViewModelSchema,\n AgentWorkbenchSessionItemSchema,\n AgentExecutionModeSchema,\n} from \"../contracts/agent\";\nexport {\n AgentRuntimeEventSchema,\n CompletionEventSchema,\n CompletionHeaderSchema,\n ExecutionLinkSchema,\n RequestScopeSchema,\n} from \"../contracts/context\";\nexport {\n ApplicationRunSchema,\n BodyRelationRecordSchema,\n DataContinuityEnvelopeSchema,\n ExpiringAccessGrantSchema,\n} from \"../contracts/continuity\";\nexport {\n DomainEventSchema,\n LineageRecordSchema,\n OntologyDefinitionSchema,\n ProjectionSpecSchema,\n SourceRecordRefSchema,\n} from \"../contracts/data\";\nexport { LegacyRoutePolicySchema } from \"../contracts/legacy-route\";\nexport {\n AccessPolicySchema,\n ActionProgramDefinitionSchema,\n ActionProgramArtifactSchema,\n ActionBindingSchema,\n ActionResultClipboardEffectSchema,\n ActionResultBindingEffectSchema,\n BindingSourceSchema,\n CapabilityInstanceSchema,\n CursorWindowBindingSchema,\n DomainQueryDataSourceSchema,\n DomainQueryDefinitionSchema,\n GovernedCatalogDomainQueryDataSourceSchema,\n GovernedCatalogResourceKindSchema,\n RegisteredServiceDomainQueryDataSourceSchema,\n InteractionBindingSchema,\n LegacyBrowserPreferenceImportSchema,\n PageStateActivationSchema,\n PageStateConditionSchema,\n PageStateDefinitionSchema,\n QueryBindingSchema,\n CompiledNavigationGroupNodeSchema,\n CompiledNavigationDomainCommandTargetSchema,\n CompiledNavigationNodeSchema,\n CompiledNavigationRegisteredMenuActionTargetSchema,\n CompiledNavigationResolvedTargetSchema,\n CompiledNavigationSeparatorNodeSchema,\n CompiledNavigationTargetNodeSchema,\n CompiledRouteClaimSchema,\n CompiledRouteMatcherSchema,\n DeclarativeControlOntologyDefinitionSchema,\n DeclarativeLifecycleSchema,\n DeclarativeRouteOwnerIndexSchema,\n DeclarativeRuntimeShellDescriptorSchema,\n DeclarativeWorkbenchCatalogSchema,\n DeclarativeShellHeaderChromeSchema,\n DeclarativeShellSurfaceChromeSchema,\n I18nTextSchema,\n ManagementAccessSchema,\n LegacyRouteTakeoverAuthorizationSchema,\n NavigationGroupNodeSchema,\n NavigationNodeSchema,\n NavigationReleaseSchema,\n NavigationRuntimeBundleSchema,\n NavigationSchema,\n NavigationSeparatorNodeSchema,\n NavigationTargetNodeSchema,\n OntologyBindingSchema,\n LegacyOntologyBindingSchema,\n PersistedOntologyBindingSchema,\n ReadablePageRuntimeBundleSchema,\n PageReleaseSchema,\n PageRuntimeBundleSchema,\n LegacyPageRuntimeBundleSchema,\n PageMigrationEquivalenceDimensionSchema,\n PageMigrationEquivalenceSchema,\n PageSchema,\n ResolvedPageSchema,\n PermissionAlternativePolicySchema,\n ProductSurfaceSchema,\n PublicationPlanOperationSchema,\n PublicationPlanSchema,\n ReferenceVisibilitySchema,\n ReleaseDependencyRoleSchema,\n ReleaseDependencySchema,\n ReleaseEvidenceSchema,\n ReleaseOperationSchema,\n ReleaseValidationSchema,\n ResolvedNavigationTargetSchema,\n UnavailableNavigationTargetSchema,\n ResolvedWorkbenchAppInstanceSchema,\n RevisionRefSchema,\n RouteClaimSchema,\n RoutePathTemplateSchema,\n RouteSpaceParameterSchema,\n RouteSpaceSchema,\n ScopedIdentityRefSchema,\n StableRefAliasMapSchema,\n StableRefAliasSchema,\n StableRefSchema,\n TenantScopeSchema,\n WorkbenchAppInstanceSchema,\n WorkbenchGroupSchema,\n WorkbenchReleaseSchema,\n WorkbenchRuntimeBundleSchema,\n WorkbenchSchema,\n DeclarativeRouteClaimSchema,\n LegacyRouteClaimSchema,\n} from \"../contracts/declarative-control\";\nexport {\n DeclarativeAuthoringChoicePageQuerySchema,\n LegacyDeclarativeRuntimeActionExecuteIntentSchema,\n DeclarativeAuthoringChoicePageSchema,\n DeclarativeAuthoringPageInfoSchema,\n DeclarativeAuthoringResourcePageQuerySchema,\n DeclarativeAuthoringResourcePageSchema,\n DesignCapabilityCatalogArtifactSchema,\n ProductDeclarativeCapabilityRegistrationSchema,\n} from \"../contracts/declarative-control-http\";\n\nexport {\n CompiledMenuActionBehaviorSchema,\n CompiledMenuBehaviorSchema,\n CompiledMenuDividerNodeSchema,\n CompiledMenuGroupNodeSchema,\n CompiledMenuItemAccessSchema,\n CompiledMenuItemNodeSchema,\n CompiledMenuNodeSchema,\n CompiledMenuProjectionSchema,\n CompiledMenuNavigateBehaviorSchema,\n MenuAccessRequirementSchema,\n MenuActionBehaviorSchema,\n MenuActionRegistrationSchema,\n MenuBehaviorSchema,\n MenuBoundedInputSchema,\n MenuContributionProviderRegistrationSchema,\n MenuContributionResultSchema,\n MenuContributionSchema,\n MenuDefinitionSchema,\n MenuDefinitionSetSchema,\n MenuDividerNodeSchema,\n MenuGroupNodeSchema,\n MenuItemNodeSchema,\n MenuNavigateBehaviorSchema,\n MenuNavigationTargetSchema,\n MenuNodeSchema,\n MenuPageRefSchema,\n MenuPageRegistrationSchema,\n MenuRuntimeBundleSchema,\n MenuRuntimeInputBindingSchema,\n MenuSourceInputBindingSchema,\n} from \"../contracts/menu\";\nexport {\n PageDefinitionSchema,\n PageGuardProjectionSchema,\n PageNavigationProjectionSchema,\n PageRendererProjectionSchema,\n PageRouteProjectionSchema,\n PageRuntimeDescriptorSchema,\n PageRuntimeProjectionSchema,\n PageTypeSchema,\n PageVisibilitySchema,\n} from \"../contracts/page\";\nexport {\n ApplicationHandoffEndpointSchema,\n ApplicationHandoffSchema,\n OverlayNodeSchema,\n OverlayZIndexLaneSchema,\n ProductContextSchema,\n RenderActivationSchema,\n RenderLifecycleSchema,\n RenderLayoutSchema,\n RenderNodeKindSchema,\n RenderNodeSchema,\n RenderNodeStateSchema,\n RenderResponsiveRuleSchema,\n RenderScrollSchema,\n RenderSurfaceSchema,\n RenderTreeSchema,\n ViewProviderDescriptorSchema,\n} from \"../contracts/render\";\nexport {\n ChangeImpactGraphSchema,\n ConceptDefinitionSchema,\n DomainCommandDefinitionSchema,\n DomainCommandSchema,\n ProductDeclarationSchema,\n} from \"../contracts/semantic\";\nexport {\n CurrentUserMenuActionItemSchema,\n CurrentUserMenuConfigSchema,\n CurrentUserMenuControlItemSchema,\n CurrentUserMenuDisplayTextSchema,\n CurrentUserMenuItemSchema,\n CurrentUserMenuNavigationItemSchema,\n CurrentUserMenuProfileSchema,\n CurrentUserMenuSectionSchema,\n TenantApplicationConfigSchema,\n TenantAgentThemeConfigSchema,\n TenantListFooterConfigSchema,\n TenantLandingPageConfigSchema,\n TenantProductConfigSchema,\n TenantRuntimeConfigSchema,\n TenantTrendRadarCollectionTargetSchema,\n TenantTrendRadarDerivedMetricsSchema,\n TenantTrendRadarEvaluationSchema,\n TenantTrendRadarSourceSchema,\n TenantTrendRadarSourcesSchema,\n TenantWorkbenchConfigSchema,\n TenantWorkbenchPageContextSchema,\n TenantWorkbenchPageEnvelopeSchema,\n TenantWorkbenchPageGroupSchema,\n} from \"../contracts/tenant\";\nexport {\n ResolvedThemeTokensSchema,\n ThemeTokenGroupSchema,\n ThemeTokenTypeSchema,\n ThemeTokenSchema,\n ThemeTokensSchema,\n} from \"../contracts/theme\";\nexport {\n BrandGeneticsProfileSchema,\n BrandBodySchema,\n HotwordBodySchema,\n ProductBodySchema,\n RadarActionRecordSchema,\n RadarAnalysisAssetSchema,\n RadarAnalysisDetailSchema,\n RadarAnalysisRunSchema,\n RadarDecisionMetricsSchema,\n RadarOpportunityMatrixSchema,\n RadarOpportunityMatrixPointSchema,\n RadarPanoramaEdgeSchema,\n RadarPanoramaNodeSchema,\n RadarPanoramaSchema,\n RadarQueryBodySchema,\n RadarScoreModelBodySchema,\n RadarScoreProjectionSchema,\n RadarSelectionSchema,\n RadarWritebackRecordSchema,\n SavedRadarQuerySchema,\n TrendRadarCollectionArtifactProjectionSchema,\n TrendRadarCollectionArtifactRefSchema,\n TrendRadarCollectionAssetRefSchema,\n TrendRadarCollectionDecisionAxisSchema,\n TrendRadarCollectionDecisionProjectionSchema,\n TrendRadarCollectionItemSchema,\n TrendRadarCollectionProjectionWritebackSchema,\n TrendRadarCollectionRecipeEntrySchema,\n TrendRadarCollectionRecipeSchema,\n TrendRadarCollectionRunRefSchema,\n TrendRadarCollectionSelectionRefSchema,\n TrendRadarCollectionSubjectRefSchema,\n TrendIngestRunSchema,\n TrendMetricSnapshotSchema,\n TrendSourceSchema,\n TrendSourceRecordSchema,\n} from \"../contracts/trend\";\nexport {\n ConductorTaskDefinitionSchema,\n ConductorTaskTypeSchema,\n ConductorWorkflowDefinitionSchema,\n WorkflowDefinitionSchema,\n WorkflowEdgeSchema,\n WorkflowNodeSchema,\n WorkflowOutputBindingSchema,\n WorkflowParameterSchema,\n WorkflowParameterTypeSchema,\n WorkflowTriggerSchema,\n WorkflowValidationIssueSchema,\n} from \"../contracts/workflow-definition\";\nexport {\n WorkflowCatalogEntrySchema,\n WorkflowCompletionCommitSchema,\n WorkflowCompletionReceiptSchema,\n WorkflowPublicationSchema,\n} from \"../contracts/workflow-runtime\";\n\nimport { AggregateCommitRequestSchema } from \"../contracts/aggregate-commit\";\nimport {\n ArtifactManifestSchema,\n OutputRecordSchema,\n} from \"../contracts/artifact\";\nimport {\n AgentSessionCommandResultSchema,\n AgentSessionCommandSchema,\n AgentSessionContinuationRequestSchema,\n AgentSessionContinuationResultSchema,\n AgentSessionEventSchema,\n AgentSessionRunEventSchema,\n AgentSessionRunSchema,\n AgentSessionTargetedCommandSchema,\n AgentSessionViewModelSchema,\n AgentWorkbenchComposerViewModelSchema,\n AgentWorkbenchNavigationViewModelSchema,\n AgentWorkbenchQuickStartViewModelSchema,\n} from \"../contracts/agent\";\nimport {\n CapabilityManifestSchema,\n CapabilityRegistryDocumentSchema,\n} from \"../contracts/capability\";\nimport {\n AgentRuntimeEventSchema,\n CompletionEventSchema,\n CompletionHeaderSchema,\n ExecutionLinkSchema,\n RequestScopeSchema,\n} from \"../contracts/context\";\nimport {\n ApplicationRunSchema,\n BodyRelationRecordSchema,\n DataContinuityEnvelopeSchema,\n ExpiringAccessGrantSchema,\n} from \"../contracts/continuity\";\nimport {\n DomainEventSchema,\n LineageRecordSchema,\n OntologyDefinitionSchema,\n ProjectionSpecSchema,\n} from \"../contracts/data\";\nimport {\n DeclarativeControlOntologyDefinitionSchema,\n DeclarativeRouteOwnerIndexSchema,\n DeclarativeWorkbenchCatalogSchema,\n DomainQueryDefinitionSchema,\n LegacyRouteTakeoverAuthorizationSchema,\n NavigationReleaseSchema,\n NavigationRuntimeBundleSchema,\n NavigationSchema,\n PageReleaseSchema,\n PageRuntimeBundleSchema,\n PageMigrationEquivalenceDimensionSchema,\n PageMigrationEquivalenceSchema,\n PageSchema,\n ResolvedPageSchema,\n PermissionAlternativePolicySchema,\n PublicationPlanSchema,\n RouteSpaceSchema,\n StableRefAliasMapSchema,\n WorkbenchReleaseSchema,\n WorkbenchRuntimeBundleSchema,\n WorkbenchSchema,\n} from \"../contracts/declarative-control\";\nimport { DesignCapabilityCatalogArtifactSchema } from \"../contracts/declarative-control-http\";\nimport {\n MenuDefinitionSchema,\n MenuDefinitionSetSchema,\n MenuRuntimeBundleSchema,\n} from \"../contracts/menu\";\nimport {\n PageDefinitionSchema,\n PageRuntimeDescriptorSchema,\n PageRuntimeProjectionSchema,\n} from \"../contracts/page\";\nimport {\n ApplicationHandoffSchema,\n OverlayNodeSchema,\n RenderNodeSchema,\n RenderTreeSchema,\n ViewProviderDescriptorSchema,\n} from \"../contracts/render\";\nimport {\n TenantProductConfigSchema,\n TenantRuntimeConfigSchema,\n} from \"../contracts/tenant\";\nimport {\n ChangeImpactGraphSchema,\n ConceptDefinitionSchema,\n DomainCommandDefinitionSchema,\n DomainCommandSchema,\n ProductDeclarationSchema,\n} from \"../contracts/semantic\";\nimport { ThemeTokensSchema } from \"../contracts/theme\";\nimport {\n BrandGeneticsProfileSchema,\n BrandBodySchema,\n HotwordBodySchema,\n ProductBodySchema,\n RadarActionRecordSchema,\n RadarAnalysisDetailSchema,\n RadarAnalysisRunSchema,\n RadarOpportunityMatrixSchema,\n RadarPanoramaSchema,\n RadarQueryBodySchema,\n RadarScoreModelBodySchema,\n RadarScoreProjectionSchema,\n RadarSelectionSchema,\n RadarWritebackRecordSchema,\n SavedRadarQuerySchema,\n TrendRadarCollectionItemSchema,\n TrendIngestRunSchema,\n TrendMetricSnapshotSchema,\n TrendSourceRecordSchema,\n} from \"../contracts/trend\";\nimport {\n ConductorWorkflowDefinitionSchema,\n WorkflowDefinitionSchema,\n} from \"../contracts/workflow-definition\";\nimport {\n WorkflowCatalogEntrySchema,\n WorkflowCompletionCommitSchema,\n WorkflowCompletionReceiptSchema,\n WorkflowPublicationSchema,\n} from \"../contracts/workflow-runtime\";\n\nexport {\n WorkflowColumnBindingSchema,\n WorkflowColumnInputSchema,\n WorkflowColumnDependencySchema,\n WorkflowColumnOutputSchema,\n WorkflowColumnFieldRefSchema,\n} from \"../contracts/workflow-column\";\nimport { WorkflowColumnBindingSchema } from \"../contracts/workflow-column\";\n\nexport const canonicalContractSchemas = {\n \"aggregate-commit-request\": AggregateCommitRequestSchema,\n \"workflow-column-binding\": WorkflowColumnBindingSchema,\n \"agent-session-command\": AgentSessionCommandSchema,\n \"agent-session-targeted-command\": AgentSessionTargetedCommandSchema,\n \"agent-session-command-result\": AgentSessionCommandResultSchema,\n \"agent-session-continuation-request\": AgentSessionContinuationRequestSchema,\n \"agent-session-continuation-result\": AgentSessionContinuationResultSchema,\n \"agent-session-event\": AgentSessionEventSchema,\n \"agent-session-run-event\": AgentSessionRunEventSchema,\n \"agent-session-run\": AgentSessionRunSchema,\n \"agent-session-view-model\": AgentSessionViewModelSchema,\n \"agent-workbench-composer-view-model\": AgentWorkbenchComposerViewModelSchema,\n \"agent-workbench-navigation-view-model\":\n AgentWorkbenchNavigationViewModelSchema,\n \"agent-workbench-quick-start-view-model\":\n AgentWorkbenchQuickStartViewModelSchema,\n \"agent-runtime-event\": AgentRuntimeEventSchema,\n \"application-run\": ApplicationRunSchema,\n \"application-handoff\": ApplicationHandoffSchema,\n \"artifact-manifest\": ArtifactManifestSchema,\n \"brand-body\": BrandBodySchema,\n \"body-relation-record\": BodyRelationRecordSchema,\n \"brand-genetics-profile\": BrandGeneticsProfileSchema,\n \"capability-manifest\": CapabilityManifestSchema,\n \"capability-registry\": CapabilityRegistryDocumentSchema,\n \"change-impact-graph\": ChangeImpactGraphSchema,\n \"concept-definition\": ConceptDefinitionSchema,\n \"completion-event\": CompletionEventSchema,\n \"completion-header\": CompletionHeaderSchema,\n \"conductor-workflow-definition\": ConductorWorkflowDefinitionSchema,\n \"domain-event\": DomainEventSchema,\n \"domain-command\": DomainCommandSchema,\n \"domain-command-definition\": DomainCommandDefinitionSchema,\n \"action-program-definition\": ActionProgramDefinitionSchema,\n \"action-program-artifact\": ActionProgramArtifactSchema,\n \"data-continuity-envelope\": DataContinuityEnvelopeSchema,\n \"domain-query-definition\": DomainQueryDefinitionSchema,\n \"declarative-control-ontology-definition\":\n DeclarativeControlOntologyDefinitionSchema,\n \"declarative-route-owner-index\": DeclarativeRouteOwnerIndexSchema,\n \"declarative-workbench-catalog\": DeclarativeWorkbenchCatalogSchema,\n \"design-capability-catalog-artifact\": DesignCapabilityCatalogArtifactSchema,\n \"execution-link\": ExecutionLinkSchema,\n \"expiring-access-grant\": ExpiringAccessGrantSchema,\n \"hotword-body\": HotwordBodySchema,\n \"lineage-record\": LineageRecordSchema,\n \"legacy-route-takeover-authorization\": LegacyRouteTakeoverAuthorizationSchema,\n \"menu-definition\": MenuDefinitionSchema,\n \"menu-definition-set\": MenuDefinitionSetSchema,\n \"menu-runtime-bundle\": MenuRuntimeBundleSchema,\n navigation: NavigationSchema,\n \"navigation-release\": NavigationReleaseSchema,\n \"navigation-runtime-bundle\": NavigationRuntimeBundleSchema,\n \"ontology-definition\": OntologyDefinitionSchema,\n \"overlay-node\": OverlayNodeSchema,\n \"output-record\": OutputRecordSchema,\n \"page-definition\": PageDefinitionSchema,\n page: PageSchema,\n \"page-release\": PageReleaseSchema,\n \"page-runtime-bundle\": PageRuntimeBundleSchema,\n \"page-runtime-descriptor\": PageRuntimeDescriptorSchema,\n \"page-runtime-projection\": PageRuntimeProjectionSchema,\n \"permission-alternative-policy\": PermissionAlternativePolicySchema,\n \"projection-spec\": ProjectionSpecSchema,\n \"publication-plan\": PublicationPlanSchema,\n \"product-declaration\": ProductDeclarationSchema,\n \"product-body\": ProductBodySchema,\n \"radar-action-record\": RadarActionRecordSchema,\n \"radar-analysis-detail\": RadarAnalysisDetailSchema,\n \"radar-analysis-run\": RadarAnalysisRunSchema,\n \"radar-opportunity-matrix\": RadarOpportunityMatrixSchema,\n \"radar-panorama\": RadarPanoramaSchema,\n \"radar-query-body\": RadarQueryBodySchema,\n \"radar-score-model-body\": RadarScoreModelBodySchema,\n \"radar-score-projection\": RadarScoreProjectionSchema,\n \"radar-selection\": RadarSelectionSchema,\n \"radar-writeback-record\": RadarWritebackRecordSchema,\n \"request-scope\": RequestScopeSchema,\n \"route-space\": RouteSpaceSchema,\n \"render-node\": RenderNodeSchema,\n \"render-tree\": RenderTreeSchema,\n \"saved-radar-query\": SavedRadarQuerySchema,\n \"stable-ref-alias-map\": StableRefAliasMapSchema,\n \"tenant-product-config\": TenantProductConfigSchema,\n \"tenant-runtime-config\": TenantRuntimeConfigSchema,\n \"theme-tokens\": ThemeTokensSchema,\n \"trend-radar-collection-item\": TrendRadarCollectionItemSchema,\n \"trend-ingest-run\": TrendIngestRunSchema,\n \"trend-metric-snapshot\": TrendMetricSnapshotSchema,\n \"trend-source-record\": TrendSourceRecordSchema,\n \"view-provider-descriptor\": ViewProviderDescriptorSchema,\n workbench: WorkbenchSchema,\n \"workbench-release\": WorkbenchReleaseSchema,\n \"workbench-runtime-bundle\": WorkbenchRuntimeBundleSchema,\n \"workflow-definition\": WorkflowDefinitionSchema,\n \"workflow-catalog-entry\": WorkflowCatalogEntrySchema,\n \"workflow-publication\": WorkflowPublicationSchema,\n \"workflow-completion-commit\": WorkflowCompletionCommitSchema,\n \"workflow-completion-receipt\": WorkflowCompletionReceiptSchema,\n} as const;\n\nexport type CanonicalContractSchemaName = keyof typeof canonicalContractSchemas;\n\nexport {\n ComponentAssemblySchema,\n ComponentEventArgumentSchema,\n ComponentEventBindingSchema,\n} from \"../contracts/component-assembly\";\n\nexport {\n PageExpressionSchema,\n PagePropertyBindingSchema,\n} from \"../contracts/page-expression\";\n\nexport * from \"../contracts/record-editor-draft\";\nexport {\n DeclarativeImportDocumentSchema,\n DeclarativeDocumentImportRequestSchema,\n DeclarativeDocumentImportIntentSchema,\n DeclarativeDocumentImportPlanSchema,\n DeclarativeDocumentImportResultSchema,\n} from \"../contracts/declarative-document-import\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+fO,IAAM,2BAA2B;AAAA,EACtC,4BAA4B;AAAA,EAC5B,2BAA2B;AAAA,EAC3B,yBAAyB;AAAA,EACzB,kCAAkC;AAAA,EAClC,gCAAgC;AAAA,EAChC,sCAAsC;AAAA,EACtC,qCAAqC;AAAA,EACrC,uBAAuB;AAAA,EACvB,2BAA2B;AAAA,EAC3B,qBAAqB;AAAA,EACrB,4BAA4B;AAAA,EAC5B,uCAAuC;AAAA,EACvC,yCACE;AAAA,EACF,0CACE;AAAA,EACF,uBAAuB;AAAA,EACvB,mBAAmB;AAAA,EACnB,uBAAuB;AAAA,EACvB,qBAAqB;AAAA,EACrB,cAAc;AAAA,EACd,wBAAwB;AAAA,EACxB,0BAA0B;AAAA,EAC1B,uBAAuB;AAAA,EACvB,uBAAuB;AAAA,EACvB,uBAAuB;AAAA,EACvB,sBAAsB;AAAA,EACtB,oBAAoB;AAAA,EACpB,qBAAqB;AAAA,EACrB,iCAAiC;AAAA,EACjC,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,6BAA6B;AAAA,EAC7B,6BAA6B;AAAA,EAC7B,2BAA2B;AAAA,EAC3B,4BAA4B;AAAA,EAC5B,2BAA2B;AAAA,EAC3B,2CACE;AAAA,EACF,iCAAiC;AAAA,EACjC,iCAAiC;AAAA,EACjC,sCAAsC;AAAA,EACtC,kBAAkB;AAAA,EAClB,y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
+
IsoDateTimeSchema,
|
|
4
|
+
JsonObjectSchema
|
|
5
|
+
} from "./chunk-KRIKORSN.mjs";
|
|
6
|
+
|
|
7
|
+
// src/contracts/page-stream.ts
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
var PAGE_STREAM_MAX_FRAME_BYTES = 256 * 1024;
|
|
10
|
+
var PAGE_STREAM_MAX_BUFFER_BYTES = 2 * 1024 * 1024;
|
|
11
|
+
var PAGE_STREAM_MAX_BUFFER_EVENTS = 2048;
|
|
12
|
+
var PAGE_STREAM_MAX_CURSOR_LENGTH = 2048;
|
|
13
|
+
var PAGE_STREAM_MAX_INPUT_BYTES = 8192;
|
|
14
|
+
var PAGE_STREAM_MAX_EVENT_ITEMS = 256;
|
|
15
|
+
var StreamIdSchema = z.string().min(1).max(256).regex(/^[^\u0000-\u001f\u007f]+$/);
|
|
16
|
+
var CursorSchema = z.string().min(1).max(PAGE_STREAM_MAX_CURSOR_LENGTH).regex(/^[^\u0000-\u001f\u007f]+$/);
|
|
17
|
+
var SequenceSchema = z.number().int().min(1).max(Number.MAX_SAFE_INTEGER);
|
|
18
|
+
var PageStreamDescriptorSchema = z.object({
|
|
19
|
+
contract: z.literal("PageStreamDescriptor"),
|
|
20
|
+
schemaVersion: z.literal(1),
|
|
21
|
+
streamId: StreamIdSchema,
|
|
22
|
+
expiresAt: IsoDateTimeSchema,
|
|
23
|
+
channel: z.enum(["terminal", "events"]),
|
|
24
|
+
cursor: CursorSchema.optional()
|
|
25
|
+
}).strict();
|
|
26
|
+
var PageStreamConnectSchema = z.object({ cursor: CursorSchema.optional() }).strict();
|
|
27
|
+
var base = {
|
|
28
|
+
contract: z.literal("PageStreamEvent"),
|
|
29
|
+
schemaVersion: z.literal(1),
|
|
30
|
+
streamId: StreamIdSchema,
|
|
31
|
+
sequence: SequenceSchema,
|
|
32
|
+
cursor: CursorSchema
|
|
33
|
+
};
|
|
34
|
+
var PageStreamEventSchema = z.discriminatedUnion("type", [
|
|
35
|
+
z.object({ ...base, type: z.literal("snapshot"), payload: z.object({ model: JsonObjectSchema }).strict() }).strict(),
|
|
36
|
+
z.object({ ...base, type: z.literal("delta"), payload: z.object({ events: z.array(JsonObjectSchema).max(PAGE_STREAM_MAX_EVENT_ITEMS) }).strict() }).strict(),
|
|
37
|
+
z.object({ ...base, type: z.literal("end"), payload: z.object({}).strict() }).strict(),
|
|
38
|
+
z.object({ ...base, type: z.literal("error"), payload: z.object({ code: z.string().min(1).max(128), retryable: z.boolean() }).strict() }).strict()
|
|
39
|
+
]).superRefine((value, context) => {
|
|
40
|
+
if (new TextEncoder().encode(JSON.stringify(value)).byteLength > PAGE_STREAM_MAX_FRAME_BYTES)
|
|
41
|
+
context.addIssue({ code: "custom", message: "Page stream frame exceeds the UTF-8 byte limit." });
|
|
42
|
+
});
|
|
43
|
+
var PageStreamControlSchema = z.discriminatedUnion("port", [
|
|
44
|
+
z.object({ requestId: z.string().uuid(), port: z.literal("terminal.input"), payload: z.object({ data: z.string().min(1).max(PAGE_STREAM_MAX_INPUT_BYTES) }).strict() }).strict(),
|
|
45
|
+
z.object({ requestId: z.string().uuid(), port: z.literal("terminal.resize"), payload: z.object({ columns: z.number().int().min(1).max(1e3), rows: z.number().int().min(1).max(1e3) }).strict() }).strict(),
|
|
46
|
+
z.object({ requestId: z.string().uuid(), port: z.literal("stream.disconnect"), payload: z.object({}).strict() }).strict()
|
|
47
|
+
]).superRefine((value, context) => {
|
|
48
|
+
if (value.port === "terminal.input" && new TextEncoder().encode(value.payload.data).byteLength > PAGE_STREAM_MAX_INPUT_BYTES)
|
|
49
|
+
context.addIssue({ code: "custom", path: ["payload", "data"], message: "Terminal input exceeds the UTF-8 byte limit." });
|
|
50
|
+
});
|
|
51
|
+
var route = (releaseSlotId, bindingId, streamId) => {
|
|
52
|
+
StreamIdSchema.parse(streamId);
|
|
53
|
+
if (streamId === "." || streamId === "..") throw new TypeError("Invalid stream route identifier");
|
|
54
|
+
for (const segment of [releaseSlotId, bindingId]) if (!segment || segment.length > 256 || /[\u0000-\u001f\u007f]/.test(segment) || segment === "." || segment === "..") throw new TypeError("Invalid stream route identifier");
|
|
55
|
+
return `${DECLARATIVE_CONTROL_API_PREFIX}/runtime/pages/${encodeURIComponent(releaseSlotId)}/bindings/${encodeURIComponent(bindingId)}/streams/${encodeURIComponent(streamId)}`;
|
|
56
|
+
};
|
|
57
|
+
var pageStreamRoutes = {
|
|
58
|
+
events: (releaseSlotId, bindingId, streamId) => `${route(releaseSlotId, bindingId, streamId)}/events`,
|
|
59
|
+
terminal: (releaseSlotId, bindingId, streamId) => `${route(releaseSlotId, bindingId, streamId)}/terminal`,
|
|
60
|
+
control: (releaseSlotId, bindingId, streamId) => `${route(releaseSlotId, bindingId, streamId)}/control`
|
|
61
|
+
};
|
|
62
|
+
var PageStreamControlResultSchema = z.object({ requestId: z.string().uuid(), accepted: z.literal(true) }).strict();
|
|
63
|
+
|
|
64
|
+
export {
|
|
65
|
+
PAGE_STREAM_MAX_FRAME_BYTES,
|
|
66
|
+
PAGE_STREAM_MAX_BUFFER_BYTES,
|
|
67
|
+
PAGE_STREAM_MAX_BUFFER_EVENTS,
|
|
68
|
+
PAGE_STREAM_MAX_CURSOR_LENGTH,
|
|
69
|
+
PAGE_STREAM_MAX_INPUT_BYTES,
|
|
70
|
+
PAGE_STREAM_MAX_EVENT_ITEMS,
|
|
71
|
+
PageStreamDescriptorSchema,
|
|
72
|
+
PageStreamConnectSchema,
|
|
73
|
+
PageStreamEventSchema,
|
|
74
|
+
PageStreamControlSchema,
|
|
75
|
+
pageStreamRoutes,
|
|
76
|
+
PageStreamControlResultSchema
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=chunk-YKM3R2KZ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/contracts/page-stream.ts"],"sourcesContent":["import { z } from 'zod';\nimport { IsoDateTimeSchema, JsonObjectSchema } from './common';\nimport { DECLARATIVE_CONTROL_API_PREFIX } from './declarative-control-http';\n\n/** Draft: no shared exports until server/client fixed-route support is integrated. */\nexport const PAGE_STREAM_MAX_FRAME_BYTES = 256 * 1024;\nexport const PAGE_STREAM_MAX_BUFFER_BYTES = 2 * 1024 * 1024;\nexport const PAGE_STREAM_MAX_BUFFER_EVENTS = 2048;\nexport const PAGE_STREAM_MAX_CURSOR_LENGTH = 2048;\nexport const PAGE_STREAM_MAX_INPUT_BYTES = 8192;\nexport const PAGE_STREAM_MAX_EVENT_ITEMS = 256;\nconst StreamIdSchema = z.string().min(1).max(256).regex(/^[^\\u0000-\\u001f\\u007f]+$/);\nconst CursorSchema = z.string().min(1).max(PAGE_STREAM_MAX_CURSOR_LENGTH).regex(/^[^\\u0000-\\u001f\\u007f]+$/);\nconst SequenceSchema = z.number().int().min(1).max(Number.MAX_SAFE_INTEGER);\n\n/** Opaque handle, never authorization. Server binds principal/team/release/page/binding/scope\n * and reauthorizes each connect/control. Neither URLs nor caller-authored scope are accepted. */\nexport const PageStreamDescriptorSchema = z.object({\n contract: z.literal('PageStreamDescriptor'), schemaVersion: z.literal(1),\n streamId: StreamIdSchema, expiresAt: IsoDateTimeSchema,\n channel: z.enum(['terminal', 'events']), cursor: CursorSchema.optional(),\n}).strict();\nexport const PageStreamConnectSchema = z.object({ cursor: CursorSchema.optional() }).strict();\nconst base = {\n contract: z.literal('PageStreamEvent'), schemaVersion: z.literal(1),\n streamId: StreamIdSchema, sequence: SequenceSchema, cursor: CursorSchema,\n};\n/** First accepted frame must be snapshot. Exact duplicates compare cursor+payload;\n * conflicting duplicates/gaps reconnect using only last verified cursor. Transport rejects\n * oversized SSE frames before parsing and bounds retained bytes/events to constants above. */\nexport const PageStreamEventSchema = z.discriminatedUnion('type', [\n z.object({ ...base, type: z.literal('snapshot'), payload: z.object({ model: JsonObjectSchema }).strict() }).strict(),\n z.object({ ...base, type: z.literal('delta'), payload: z.object({ events: z.array(JsonObjectSchema).max(PAGE_STREAM_MAX_EVENT_ITEMS) }).strict() }).strict(),\n z.object({ ...base, type: z.literal('end'), payload: z.object({}).strict() }).strict(),\n z.object({ ...base, type: z.literal('error'), payload: z.object({ code: z.string().min(1).max(128), retryable: z.boolean() }).strict() }).strict(),\n]).superRefine((value, context) => {\n if (new TextEncoder().encode(JSON.stringify(value)).byteLength > PAGE_STREAM_MAX_FRAME_BYTES)\n context.addIssue({ code: 'custom', message: 'Page stream frame exceeds the UTF-8 byte limit.' });\n});\n/** Reuse requestId on retries. Server deduplicates before PTY mutation; credentials never\n * travel in payload. stream.disconnect closes this descriptor lease, not the backing workload. */\nexport const PageStreamControlSchema = z.discriminatedUnion('port', [\n z.object({ requestId: z.string().uuid(), port: z.literal('terminal.input'), payload: z.object({ data: z.string().min(1).max(PAGE_STREAM_MAX_INPUT_BYTES) }).strict() }).strict(),\n z.object({ requestId: z.string().uuid(), port: z.literal('terminal.resize'), payload: z.object({ columns: z.number().int().min(1).max(1000), rows: z.number().int().min(1).max(1000) }).strict() }).strict(),\n z.object({ requestId: z.string().uuid(), port: z.literal('stream.disconnect'), payload: z.object({}).strict() }).strict(),\n]).superRefine((value, context) => {\n if (value.port === 'terminal.input' && new TextEncoder().encode(value.payload.data).byteLength > PAGE_STREAM_MAX_INPUT_BYTES)\n context.addIssue({ code: 'custom', path: ['payload', 'data'], message: 'Terminal input exceeds the UTF-8 byte limit.' });\n});\nconst route = (releaseSlotId: string, bindingId: string, streamId: string) => {\n StreamIdSchema.parse(streamId);\n if (streamId === '.' || streamId === '..') throw new TypeError('Invalid stream route identifier');\n for (const segment of [releaseSlotId, bindingId]) if (!segment || segment.length > 256 || /[\\u0000-\\u001f\\u007f]/.test(segment) || segment === '.' || segment === '..') throw new TypeError('Invalid stream route identifier');\n return `${DECLARATIVE_CONTROL_API_PREFIX}/runtime/pages/${encodeURIComponent(releaseSlotId)}/bindings/${encodeURIComponent(bindingId)}/streams/${encodeURIComponent(streamId)}`;\n};\nexport const pageStreamRoutes = {\n events: (releaseSlotId: string, bindingId: string, streamId: string) => `${route(releaseSlotId, bindingId, streamId)}/events`,\n terminal: (releaseSlotId: string, bindingId: string, streamId: string) => `${route(releaseSlotId, bindingId, streamId)}/terminal`,\n control: (releaseSlotId: string, bindingId: string, streamId: string) => `${route(releaseSlotId, bindingId, streamId)}/control`,\n} as const;\nexport const PageStreamControlResultSchema = z.object({ requestId: z.string().uuid(), accepted: z.literal(true) }).strict();\nexport type PageStreamControlResult = z.infer<typeof PageStreamControlResultSchema>;\nexport type PageStreamDescriptor = z.infer<typeof PageStreamDescriptorSchema>;\nexport type PageStreamEvent = z.infer<typeof PageStreamEventSchema>;\nexport type PageStreamControl = z.infer<typeof PageStreamControlSchema>;\n"],"mappings":";;;;;;;AAAA,SAAS,SAAS;AAKX,IAAM,8BAA8B,MAAM;AAC1C,IAAM,+BAA+B,IAAI,OAAO;AAChD,IAAM,gCAAgC;AACtC,IAAM,gCAAgC;AACtC,IAAM,8BAA8B;AACpC,IAAM,8BAA8B;AAC3C,IAAM,iBAAiB,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,EAAE,MAAM,2BAA2B;AACnF,IAAM,eAAe,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,6BAA6B,EAAE,MAAM,2BAA2B;AAC3G,IAAM,iBAAiB,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,IAAI,OAAO,gBAAgB;AAInE,IAAM,6BAA6B,EAAE,OAAO;AAAA,EACjD,UAAU,EAAE,QAAQ,sBAAsB;AAAA,EAAG,eAAe,EAAE,QAAQ,CAAC;AAAA,EACvE,UAAU;AAAA,EAAgB,WAAW;AAAA,EACrC,SAAS,EAAE,KAAK,CAAC,YAAY,QAAQ,CAAC;AAAA,EAAG,QAAQ,aAAa,SAAS;AACzE,CAAC,EAAE,OAAO;AACH,IAAM,0BAA0B,EAAE,OAAO,EAAE,QAAQ,aAAa,SAAS,EAAE,CAAC,EAAE,OAAO;AAC5F,IAAM,OAAO;AAAA,EACX,UAAU,EAAE,QAA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