@inf-monkeys-tech/monkeys 1.1.54 → 1.1.56
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/lib/contracts/artifact-platform.d.ts +495 -0
- package/lib/contracts/artifact-platform.d.ts.map +1 -0
- package/lib/contracts/artifact-platform.js +311 -0
- package/lib/contracts/artifact-platform.js.map +1 -0
- package/lib/contracts/declarative-control-http.d.ts +398 -398
- package/lib/contracts/declarative-control.d.ts +41 -41
- package/lib/contracts/declarative-diagnostic.d.ts +2 -2
- package/lib/contracts/declarative-document-import.d.ts +7 -7
- package/lib/contracts/declarative-publication-job.d.ts +111 -111
- package/lib/contracts/declarative-publication-verification.d.ts +1 -1
- package/lib/contracts/design-board.d.ts +6 -6
- package/lib/contracts/index.d.ts +1 -0
- package/lib/contracts/index.d.ts.map +1 -1
- package/lib/contracts/index.js +1 -0
- package/lib/contracts/index.js.map +1 -1
- package/lib/contracts/render.d.ts +22 -22
- package/lib/contracts/tenant.d.ts +3 -3
- package/lib/contracts/theme.d.ts +1 -1
- package/lib/contracts/workflow-definition.d.ts +4 -4
- package/lib/esm/{chunk-RMZW3SVL.mjs → chunk-4LC3ZXUP.mjs} +3 -3
- package/lib/esm/chunk-4LC3ZXUP.mjs.map +1 -0
- package/lib/esm/{chunk-ITGLKSCE.mjs → chunk-74H5I3XN.mjs} +331 -3
- package/lib/esm/chunk-74H5I3XN.mjs.map +1 -0
- package/lib/esm/{chunk-E6YPJ4DR.mjs → chunk-DQJODDRF.mjs} +2 -2
- package/lib/esm/{chunk-DIIMDX7F.mjs → chunk-FIZWECL6.mjs} +2878 -2609
- package/lib/esm/chunk-FIZWECL6.mjs.map +1 -0
- package/lib/esm/{chunk-TROZIHS4.mjs → chunk-HJNQDSLC.mjs} +2 -2
- package/lib/esm/{chunk-66A4GGOV.mjs → chunk-Y7EZZ6IW.mjs} +2 -2
- package/lib/esm/contracts/index.mjs +42 -4
- package/lib/esm/index.mjs +56 -6
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +15 -3
- package/lib/esm/schemas/index.mjs +39 -3
- package/lib/runtime/artifact-session.d.ts +51 -0
- package/lib/runtime/artifact-session.d.ts.map +1 -0
- package/lib/runtime/artifact-session.js +335 -0
- package/lib/runtime/artifact-session.js.map +1 -0
- package/lib/runtime/index.d.ts +1 -0
- package/lib/runtime/index.d.ts.map +1 -1
- package/lib/runtime/index.js +1 -0
- package/lib/runtime/index.js.map +1 -1
- package/lib/runtime/runtime-definition-wire.d.ts +44 -44
- package/lib/schemas/index.d.ts +41 -40
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +27 -8
- package/lib/schemas/index.js.map +1 -1
- package/package.json +2 -2
- package/lib/esm/chunk-DIIMDX7F.mjs.map +0 -1
- package/lib/esm/chunk-ITGLKSCE.mjs.map +0 -1
- package/lib/esm/chunk-RMZW3SVL.mjs.map +0 -1
- /package/lib/esm/{chunk-E6YPJ4DR.mjs.map → chunk-DQJODDRF.mjs.map} +0 -0
- /package/lib/esm/{chunk-TROZIHS4.mjs.map → chunk-HJNQDSLC.mjs.map} +0 -0
- /package/lib/esm/{chunk-66A4GGOV.mjs.map → chunk-Y7EZZ6IW.mjs.map} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DECLARATIVE_CONTROL_API_PREFIX,
|
|
3
3
|
IsoDateTimeSchema,
|
|
4
4
|
JsonObjectSchema
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FIZWECL6.mjs";
|
|
6
6
|
|
|
7
7
|
// src/contracts/page-stream.ts
|
|
8
8
|
import { z } from "zod";
|
|
@@ -75,4 +75,4 @@ export {
|
|
|
75
75
|
pageStreamRoutes,
|
|
76
76
|
PageStreamControlResultSchema
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=chunk-
|
|
78
|
+
//# sourceMappingURL=chunk-HJNQDSLC.mjs.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
RevisionRefSchema,
|
|
14
14
|
Sha256Schema,
|
|
15
15
|
TenantScopeSchema
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FIZWECL6.mjs";
|
|
17
17
|
|
|
18
18
|
// src/contracts/artifact.ts
|
|
19
19
|
import { z } from "zod";
|
|
@@ -1077,4 +1077,4 @@ export {
|
|
|
1077
1077
|
WorkflowCompletionCommitSchema,
|
|
1078
1078
|
WorkflowCompletionReceiptSchema
|
|
1079
1079
|
};
|
|
1080
|
-
//# sourceMappingURL=chunk-
|
|
1080
|
+
//# sourceMappingURL=chunk-Y7EZZ6IW.mjs.map
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
RuntimeProgramLoadRequestSchema,
|
|
73
73
|
RuntimeProgramLoadResultSchema,
|
|
74
74
|
platformNotificationRoutes
|
|
75
|
-
} from "../chunk-
|
|
75
|
+
} from "../chunk-DQJODDRF.mjs";
|
|
76
76
|
import {
|
|
77
77
|
ActorRefSchema,
|
|
78
78
|
AgentRuntimeEventSchema,
|
|
@@ -152,7 +152,7 @@ import {
|
|
|
152
152
|
WorkflowCompletionCommitSchema,
|
|
153
153
|
WorkflowCompletionReceiptSchema,
|
|
154
154
|
WorkflowPublicationSchema
|
|
155
|
-
} from "../chunk-
|
|
155
|
+
} from "../chunk-Y7EZZ6IW.mjs";
|
|
156
156
|
import {
|
|
157
157
|
PAGE_STREAM_MAX_BUFFER_BYTES,
|
|
158
158
|
PAGE_STREAM_MAX_BUFFER_EVENTS,
|
|
@@ -166,7 +166,7 @@ import {
|
|
|
166
166
|
PageStreamDescriptorSchema,
|
|
167
167
|
PageStreamEventSchema,
|
|
168
168
|
pageStreamRoutes
|
|
169
|
-
} from "../chunk-
|
|
169
|
+
} from "../chunk-HJNQDSLC.mjs";
|
|
170
170
|
import {
|
|
171
171
|
ACTION_PROGRAM_ABI,
|
|
172
172
|
AGENT_MODE_CAPABILITIES,
|
|
@@ -238,6 +238,16 @@ import {
|
|
|
238
238
|
AgentWorkbenchSidebarSectionSchema,
|
|
239
239
|
ApplicationHandoffEndpointSchema,
|
|
240
240
|
ApplicationHandoffSchema,
|
|
241
|
+
ArtifactCollabClientMessageSchema,
|
|
242
|
+
ArtifactCollabRoomKeySchema,
|
|
243
|
+
ArtifactCollabServerMessageSchema,
|
|
244
|
+
ArtifactCrdtCodecSchema,
|
|
245
|
+
ArtifactKindSchema,
|
|
246
|
+
ArtifactPresenceCursorSchema,
|
|
247
|
+
ArtifactPresenceStateSchema,
|
|
248
|
+
ArtifactProfileSchema,
|
|
249
|
+
ArtifactStorageModeSchema,
|
|
250
|
+
BUILTIN_ARTIFACT_KINDS,
|
|
241
251
|
BindingSourceSchema,
|
|
242
252
|
CURRENT_USER_MENU_ACTION_REFS,
|
|
243
253
|
CURRENT_USER_MENU_CONTROL_REFS,
|
|
@@ -644,7 +654,16 @@ import {
|
|
|
644
654
|
ThemeTokenSchema,
|
|
645
655
|
ThemeTokenTypeSchema,
|
|
646
656
|
ThemeTokensSchema,
|
|
657
|
+
ViewBlockDataSourceSchema,
|
|
658
|
+
ViewBlockSchema,
|
|
659
|
+
ViewLayoutRegionSchema,
|
|
660
|
+
ViewLayoutSchema,
|
|
647
661
|
ViewProviderDescriptorSchema,
|
|
662
|
+
ViewQuerySchema,
|
|
663
|
+
ViewSortSchema,
|
|
664
|
+
ViewSpecSchema,
|
|
665
|
+
ViewSubjectSchema,
|
|
666
|
+
ViewWiringRuleSchema,
|
|
648
667
|
WorkbenchAppInstanceSchema,
|
|
649
668
|
WorkbenchGroupSchema,
|
|
650
669
|
WorkbenchIdentitySchema,
|
|
@@ -691,7 +710,7 @@ import {
|
|
|
691
710
|
resolveAgentSessionCommandTransition,
|
|
692
711
|
resolveAgentWorkbenchSidebarConfig,
|
|
693
712
|
visitPageExpression
|
|
694
|
-
} from "../chunk-
|
|
713
|
+
} from "../chunk-FIZWECL6.mjs";
|
|
695
714
|
import "../chunk-3QS3WKRC.mjs";
|
|
696
715
|
export {
|
|
697
716
|
ACTION_PROGRAM_ABI,
|
|
@@ -814,8 +833,18 @@ export {
|
|
|
814
833
|
ApplicationHandoffSchema,
|
|
815
834
|
ApplicationRunSchema,
|
|
816
835
|
ArtifactAccessSchema,
|
|
836
|
+
ArtifactCollabClientMessageSchema,
|
|
837
|
+
ArtifactCollabRoomKeySchema,
|
|
838
|
+
ArtifactCollabServerMessageSchema,
|
|
839
|
+
ArtifactCrdtCodecSchema,
|
|
840
|
+
ArtifactKindSchema,
|
|
817
841
|
ArtifactManifestSchema,
|
|
842
|
+
ArtifactPresenceCursorSchema,
|
|
843
|
+
ArtifactPresenceStateSchema,
|
|
844
|
+
ArtifactProfileSchema,
|
|
845
|
+
ArtifactStorageModeSchema,
|
|
818
846
|
AuthorityScopeSchema,
|
|
847
|
+
BUILTIN_ARTIFACT_KINDS,
|
|
819
848
|
BindingSourceSchema,
|
|
820
849
|
BodyRelationRecordSchema,
|
|
821
850
|
BrandBodySchema,
|
|
@@ -1327,7 +1356,16 @@ export {
|
|
|
1327
1356
|
TrendRadarCollectionSubjectRefSchema,
|
|
1328
1357
|
TrendSourceRecordSchema,
|
|
1329
1358
|
TrendSourceSchema,
|
|
1359
|
+
ViewBlockDataSourceSchema,
|
|
1360
|
+
ViewBlockSchema,
|
|
1361
|
+
ViewLayoutRegionSchema,
|
|
1362
|
+
ViewLayoutSchema,
|
|
1330
1363
|
ViewProviderDescriptorSchema,
|
|
1364
|
+
ViewQuerySchema,
|
|
1365
|
+
ViewSortSchema,
|
|
1366
|
+
ViewSpecSchema,
|
|
1367
|
+
ViewSubjectSchema,
|
|
1368
|
+
ViewWiringRuleSchema,
|
|
1331
1369
|
WorkbenchAppInstanceSchema,
|
|
1332
1370
|
WorkbenchGroupSchema,
|
|
1333
1371
|
WorkbenchIdentitySchema,
|
package/lib/esm/index.mjs
CHANGED
|
@@ -72,10 +72,10 @@ import {
|
|
|
72
72
|
RuntimeProgramLoadRequestSchema,
|
|
73
73
|
RuntimeProgramLoadResultSchema,
|
|
74
74
|
platformNotificationRoutes
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-DQJODDRF.mjs";
|
|
76
76
|
import {
|
|
77
77
|
canonicalContractSchemas
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-4LC3ZXUP.mjs";
|
|
79
79
|
import {
|
|
80
80
|
ActorRefSchema,
|
|
81
81
|
AgentRuntimeEventSchema,
|
|
@@ -155,10 +155,12 @@ import {
|
|
|
155
155
|
WorkflowCompletionCommitSchema,
|
|
156
156
|
WorkflowCompletionReceiptSchema,
|
|
157
157
|
WorkflowPublicationSchema
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-Y7EZZ6IW.mjs";
|
|
159
159
|
import {
|
|
160
160
|
APPLICATION_HANDOFF_QUERY_PARAMETER,
|
|
161
|
+
BUILTIN_ARTIFACT_PROFILES,
|
|
161
162
|
DEFAULT_CONDUCTOR_OWNER_EMAIL,
|
|
163
|
+
DESIGN_BOARD_ARTIFACT_PROFILE,
|
|
162
164
|
DeclarativeControlCompilationError,
|
|
163
165
|
MenuCompilationError,
|
|
164
166
|
PageComponentDefinitionSchema,
|
|
@@ -167,6 +169,7 @@ import {
|
|
|
167
169
|
RUNTIME_DEFINITION_FORMAT,
|
|
168
170
|
RUNTIME_DEFINITION_FORMAT_HEADER,
|
|
169
171
|
RuntimeDefinitionResponseSchema,
|
|
172
|
+
WORKFLOW_ARTIFACT_PROFILE,
|
|
170
173
|
acceptsPreviousSchema,
|
|
171
174
|
accessPolicyChainImplies,
|
|
172
175
|
applyDesignBoardChanges,
|
|
@@ -179,6 +182,7 @@ import {
|
|
|
179
182
|
assertProgramRegistration,
|
|
180
183
|
assertViewProviderContract,
|
|
181
184
|
buildApplicationHandoffUrl,
|
|
185
|
+
buildArtifactCollabRoomId,
|
|
182
186
|
buildChangeImpactGraph,
|
|
183
187
|
buildPageMountHref,
|
|
184
188
|
canonicalContentHash,
|
|
@@ -212,6 +216,7 @@ import {
|
|
|
212
216
|
compileToolCapabilityManifest,
|
|
213
217
|
compileViewProviderInput,
|
|
214
218
|
compileViewProviderRegistry,
|
|
219
|
+
compileViewSpecToRenderTree,
|
|
215
220
|
compileWorkbenchRuntimeBundle,
|
|
216
221
|
compileWorkflowDefinitionFromConductor,
|
|
217
222
|
compileWorkflowPersistenceProjection,
|
|
@@ -275,6 +280,7 @@ import {
|
|
|
275
280
|
recordEditorDraftIsDirty,
|
|
276
281
|
recordEditorPathKey,
|
|
277
282
|
recordEditorValuesEqual,
|
|
283
|
+
resolveBuiltinArtifactProfile,
|
|
278
284
|
resolveFileResourceReference,
|
|
279
285
|
resolveMenuActivationId,
|
|
280
286
|
resolvePage,
|
|
@@ -296,7 +302,7 @@ import {
|
|
|
296
302
|
validateDomainCommand,
|
|
297
303
|
validateWorkbenchRuntimeSet,
|
|
298
304
|
writePageDraftPath
|
|
299
|
-
} from "./chunk-
|
|
305
|
+
} from "./chunk-74H5I3XN.mjs";
|
|
300
306
|
import {
|
|
301
307
|
PAGE_STREAM_MAX_BUFFER_BYTES,
|
|
302
308
|
PAGE_STREAM_MAX_BUFFER_EVENTS,
|
|
@@ -310,7 +316,7 @@ import {
|
|
|
310
316
|
PageStreamDescriptorSchema,
|
|
311
317
|
PageStreamEventSchema,
|
|
312
318
|
pageStreamRoutes
|
|
313
|
-
} from "./chunk-
|
|
319
|
+
} from "./chunk-HJNQDSLC.mjs";
|
|
314
320
|
import {
|
|
315
321
|
ACTION_PROGRAM_ABI,
|
|
316
322
|
AGENT_MODE_CAPABILITIES,
|
|
@@ -382,6 +388,16 @@ import {
|
|
|
382
388
|
AgentWorkbenchSidebarSectionSchema,
|
|
383
389
|
ApplicationHandoffEndpointSchema,
|
|
384
390
|
ApplicationHandoffSchema,
|
|
391
|
+
ArtifactCollabClientMessageSchema,
|
|
392
|
+
ArtifactCollabRoomKeySchema,
|
|
393
|
+
ArtifactCollabServerMessageSchema,
|
|
394
|
+
ArtifactCrdtCodecSchema,
|
|
395
|
+
ArtifactKindSchema,
|
|
396
|
+
ArtifactPresenceCursorSchema,
|
|
397
|
+
ArtifactPresenceStateSchema,
|
|
398
|
+
ArtifactProfileSchema,
|
|
399
|
+
ArtifactStorageModeSchema,
|
|
400
|
+
BUILTIN_ARTIFACT_KINDS,
|
|
385
401
|
BindingSourceSchema,
|
|
386
402
|
CURRENT_USER_MENU_ACTION_REFS,
|
|
387
403
|
CURRENT_USER_MENU_CONTROL_REFS,
|
|
@@ -790,7 +806,16 @@ import {
|
|
|
790
806
|
ThemeTokenTypeSchema,
|
|
791
807
|
ThemeTokenValidationError,
|
|
792
808
|
ThemeTokensSchema,
|
|
809
|
+
ViewBlockDataSourceSchema,
|
|
810
|
+
ViewBlockSchema,
|
|
811
|
+
ViewLayoutRegionSchema,
|
|
812
|
+
ViewLayoutSchema,
|
|
793
813
|
ViewProviderDescriptorSchema,
|
|
814
|
+
ViewQuerySchema,
|
|
815
|
+
ViewSortSchema,
|
|
816
|
+
ViewSpecSchema,
|
|
817
|
+
ViewSubjectSchema,
|
|
818
|
+
ViewWiringRuleSchema,
|
|
794
819
|
WorkbenchAppInstanceSchema,
|
|
795
820
|
WorkbenchGroupSchema,
|
|
796
821
|
WorkbenchIdentitySchema,
|
|
@@ -843,7 +868,7 @@ import {
|
|
|
843
868
|
validateThemeTokensDocument,
|
|
844
869
|
validateThemeTokensDocumentStructure,
|
|
845
870
|
visitPageExpression
|
|
846
|
-
} from "./chunk-
|
|
871
|
+
} from "./chunk-FIZWECL6.mjs";
|
|
847
872
|
import "./chunk-3QS3WKRC.mjs";
|
|
848
873
|
|
|
849
874
|
// src/types/tool.ts
|
|
@@ -1004,8 +1029,19 @@ export {
|
|
|
1004
1029
|
ApplicationHandoffSchema,
|
|
1005
1030
|
ApplicationRunSchema,
|
|
1006
1031
|
ArtifactAccessSchema,
|
|
1032
|
+
ArtifactCollabClientMessageSchema,
|
|
1033
|
+
ArtifactCollabRoomKeySchema,
|
|
1034
|
+
ArtifactCollabServerMessageSchema,
|
|
1035
|
+
ArtifactCrdtCodecSchema,
|
|
1036
|
+
ArtifactKindSchema,
|
|
1007
1037
|
ArtifactManifestSchema,
|
|
1038
|
+
ArtifactPresenceCursorSchema,
|
|
1039
|
+
ArtifactPresenceStateSchema,
|
|
1040
|
+
ArtifactProfileSchema,
|
|
1041
|
+
ArtifactStorageModeSchema,
|
|
1008
1042
|
AuthorityScopeSchema,
|
|
1043
|
+
BUILTIN_ARTIFACT_KINDS,
|
|
1044
|
+
BUILTIN_ARTIFACT_PROFILES,
|
|
1009
1045
|
BindingSourceSchema,
|
|
1010
1046
|
BodyRelationRecordSchema,
|
|
1011
1047
|
BrandBodySchema,
|
|
@@ -1075,6 +1111,7 @@ export {
|
|
|
1075
1111
|
DEFAULT_ACTION_PROGRAM_BUDGETS,
|
|
1076
1112
|
DEFAULT_AGENT_WORKBENCH_SIDEBAR_SECTIONS,
|
|
1077
1113
|
DEFAULT_CONDUCTOR_OWNER_EMAIL,
|
|
1114
|
+
DESIGN_BOARD_ARTIFACT_PROFILE,
|
|
1078
1115
|
DataContinuityEnvelopeSchema,
|
|
1079
1116
|
DeclarationGraphEdgeSchema,
|
|
1080
1117
|
DeclarativeAudienceSimulationSchema,
|
|
@@ -1532,7 +1569,17 @@ export {
|
|
|
1532
1569
|
TrendSourceSchema,
|
|
1533
1570
|
ValidationIssueType,
|
|
1534
1571
|
ValidationReasonType,
|
|
1572
|
+
ViewBlockDataSourceSchema,
|
|
1573
|
+
ViewBlockSchema,
|
|
1574
|
+
ViewLayoutRegionSchema,
|
|
1575
|
+
ViewLayoutSchema,
|
|
1535
1576
|
ViewProviderDescriptorSchema,
|
|
1577
|
+
ViewQuerySchema,
|
|
1578
|
+
ViewSortSchema,
|
|
1579
|
+
ViewSpecSchema,
|
|
1580
|
+
ViewSubjectSchema,
|
|
1581
|
+
ViewWiringRuleSchema,
|
|
1582
|
+
WORKFLOW_ARTIFACT_PROFILE,
|
|
1536
1583
|
WorkbenchAppInstanceSchema,
|
|
1537
1584
|
WorkbenchGroupSchema,
|
|
1538
1585
|
WorkbenchIdentitySchema,
|
|
@@ -1581,6 +1628,7 @@ export {
|
|
|
1581
1628
|
assertThemeTokensDocumentStructure,
|
|
1582
1629
|
assertViewProviderContract,
|
|
1583
1630
|
buildApplicationHandoffUrl,
|
|
1631
|
+
buildArtifactCollabRoomId,
|
|
1584
1632
|
buildChangeImpactGraph,
|
|
1585
1633
|
buildPageMountHref,
|
|
1586
1634
|
canApplyAgentSessionRunStatus,
|
|
@@ -1619,6 +1667,7 @@ export {
|
|
|
1619
1667
|
compileToolCapabilityManifest,
|
|
1620
1668
|
compileViewProviderInput,
|
|
1621
1669
|
compileViewProviderRegistry,
|
|
1670
|
+
compileViewSpecToRenderTree,
|
|
1622
1671
|
compileWorkbenchRuntimeBundle,
|
|
1623
1672
|
compileWorkflowDefinitionFromConductor,
|
|
1624
1673
|
compileWorkflowPersistenceProjection,
|
|
@@ -1697,6 +1746,7 @@ export {
|
|
|
1697
1746
|
recordEditorValuesEqual,
|
|
1698
1747
|
resolveAgentSessionCommandTransition,
|
|
1699
1748
|
resolveAgentWorkbenchSidebarConfig,
|
|
1749
|
+
resolveBuiltinArtifactProfile,
|
|
1700
1750
|
resolveFileResourceReference,
|
|
1701
1751
|
resolveMenuActivationId,
|
|
1702
1752
|
resolvePage,
|
package/lib/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/tool.ts","../../src/types/workflow.ts"],"sourcesContent":["import { I18nValue } from \"./i18n\";\n\nexport type IJSONValue = string | number | boolean | IJSONObject | IJSONArray;\nexport type IJSONArray = Array<IJSONValue>;\nexport interface IJSONObject {\n [x: string]: IJSONValue;\n}\n\nexport type ToolPropertyTypes =\n | \"string\"\n | \"file\"\n | \"number\"\n | \"boolean\"\n | \"options\"\n | \"json\"\n | \"notice\"\n | \"canvas-assist\";\n\nexport const CODE_LANGUAGES = [\"javaScript\", \"json\", \"python\", \"sql\"] as const;\n\nexport type EditorType =\n | \"code\"\n | \"codeNodeEditor\"\n | \"htmlEditor\"\n | \"sqlEditor\"\n | \"json\";\nexport type CodeNodeEditorLanguage = (typeof CODE_LANGUAGES)[number];\n\nexport interface ToolPropertyTypeOptions {\n editor?: EditorType; // Supported by: string\n editorLanguage?: CodeNodeEditorLanguage; // Supported by: string in combination with editor: codeNodeEditor\n maxValue?: number; // Supported by: number\n minValue?: number; // Supported by: number\n multipleValues?: boolean; // Supported by: <All>\n multipleValueButtonText?: string; // Supported when \"multipleValues\" set to true\n numberPrecision?: number; // Supported by: number\n password?: boolean; // Supported by: string\n rows?: number; // Supported by: string\n assetType?: AssetType;\n accept?: string;\n max?: number;\n\n [key: string]: any;\n}\n\nexport type ToolPropertyParameterValue =\n | string\n | number\n | boolean\n | undefined\n | null;\n\nexport type ResourceLocatorModes = \"id\" | \"url\" | \"list\" | string;\nexport interface IResourceLocatorResult {\n name: string;\n value: string;\n url?: string;\n}\n\nexport interface ToolParameter {\n [key: string]: ToolParameterValueType;\n}\nexport type ToolParameterValueType =\n // TODO: Later also has to be possible to add multiple ones with the name name. So array has to be possible\n | ToolPropertyParameterValue\n | ToolParameter\n | ToolPropertyParameterValue[]\n | ToolParameter[];\n\nexport interface ToolPropertyDisplayOptions {\n hide?: {\n [key: string]: ToolPropertyParameterValue[] | undefined;\n };\n show?: {\n [key: string]: ToolPropertyParameterValue[] | undefined;\n };\n}\n\nexport interface ToolPropertyOptions {\n name: string | I18nValue;\n value: string | number | boolean;\n action?: string;\n description?: string | I18nValue;\n}\n\nexport interface ToolPropertyCollection {\n displayName: string;\n name: string;\n values: ToolProperty[];\n}\n\nexport interface ToolPropertyValueExtractorBase {\n type: string;\n}\n\nexport interface ToolPropertyValueExtractorRegex {\n type: \"regex\";\n regex: string | RegExp;\n}\n\nexport type AssetType =\n | \"llm-model\"\n | \"sd-model\"\n | \"workflow\"\n | \"workflow-association\"\n | \"design-project\"\n | \"design-association\"\n | \"design-board\"\n | \"workflow-view\"\n | \"media-file\"\n | \"sql-knowledge-base-table\"\n | \"sql-knowledge-base\"\n | \"knowledge-base\"\n | \"canvas\"\n | \"workflow-template\"\n | \"fork-join-branch\"\n | \"workflow-version\"\n | \"tools\"\n | \"comfyui-server\"\n | \"comfyui-workflow\"\n | \"comfyui-model-type\"\n | \"comfyui-model\"\n | \"llm-channel\"\n | \"conversation-app\"\n | \"oneapi-model\"\n | \"leaderboard\"\n | \"model-training\";\n\nexport interface ToolProperty {\n displayName: string | I18nValue;\n name: string;\n type: ToolPropertyTypes;\n typeOptions?: ToolPropertyTypeOptions;\n default?: ToolParameterValueType;\n description?: string | I18nValue;\n hint?: string;\n displayOptions?: ToolPropertyDisplayOptions;\n options?: Array<ToolPropertyOptions | ToolProperty | ToolPropertyCollection>;\n placeholder?: string | I18nValue;\n isNodeSetting?: boolean;\n noDataExpression?: boolean;\n required?: boolean;\n example?: string;\n extractValue?: ToolPropertyValueExtractorRegex;\n properties?: ToolProperty[];\n assetType?: AssetType;\n flag?: boolean;\n}\n\nexport type ToolCategory =\n | \"image\" // 图像处理\n | \"text\" // 文本处理\n | \"file\" // 文件处理\n | \"gen-image\" // 图像生成\n | \"gen-text\" // 文本生成\n | \"train-model\" // 模型训练\n | \"process\" // 流程控制\n | \"auto\" // 自动化\n | \"bio\" // 生命科学\n | \"human\" // 用户交互\n | \"query\" // 搜索增强\n | \"db\" // 数据存储\n | \"extra\"; // 扩展能力\n\nexport enum ToolType {\n SIMPLE = \"SIMPLE\",\n FORK_JOIN = \"FORK_JOIN\",\n JOIN = \"JOIN\",\n DO_WHILE = \"DO_WHILE\",\n SWITCH = \"SWITCH\",\n DYNAMIC = \"DYNAMIC\",\n FORK_JOIN_DYNAMIC = \"FORK_JOIN_DYNAMIC\",\n TERMINATE = \"TERMINATE\",\n HUMAN = \"HUMAN\",\n SUB_WORKFLOW = \"SUB_WORKFLOW\",\n INLINE = \"INLINE\",\n SET_VARIABLE = \"SET_VARIABLE\",\n}\n\nexport interface ToolRuleItem {\n type: string;\n [x: string]: any;\n}\n\nexport interface ToolExtraInfo {\n [x: string]: any;\n}\n\nexport interface ToolCredentialItem {\n name: string;\n required: boolean;\n}\n\nexport interface ToolDef {\n type: ToolType;\n name: string;\n displayName: string | I18nValue;\n description?: string | I18nValue;\n icon?: string;\n input: ToolProperty[];\n output: ToolProperty[];\n categories?: ToolCategory[];\n rules?: ToolRuleItem[];\n extra?: ToolExtraInfo;\n credentials?: ToolCredentialItem[];\n}\n","export enum ValidationIssueType {\n ERROR = 'ERROR',\n WANTING = 'WANTING',\n}\n\nexport enum ValidationReasonType {\n VALUE_REQUIRED = 'VALUE_REQUIRED',\n VALUE_TYPE_NOT_MATCH = 'VALUE_TYPE_NOT_MATCH',\n DO_WHILE_EMPTY_LOOP_OVER = 'DO_WHILE_EMPTY_LOOP_OVER',\n}\n\nexport interface ValidationIssueReason {\n type: ValidationReasonType;\n name: string;\n}\n\nexport interface WorkflowValidationIssue {\n taskReferenceName: string;\n issueType: ValidationIssueType;\n detailReason: ValidationIssueReason;\n humanMessage: {\n en: string;\n zh: string;\n };\n}\n\nexport interface WorkflowTriggerConfig {\n triggerType: WorkflowTriggerType;\n cron?: string;\n}\n\nexport enum WorkflowTriggerType {\n MANUALLY = 'MANUAL',\n SCHEDULER = 'SCHEDULER',\n WEBHOOK = 'WEBHOOK',\n}\n \n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/types/tool.ts","../../src/types/workflow.ts"],"sourcesContent":["import { I18nValue } from \"./i18n\";\n\nexport type IJSONValue = string | number | boolean | IJSONObject | IJSONArray;\nexport type IJSONArray = Array<IJSONValue>;\nexport interface IJSONObject {\n [x: string]: IJSONValue;\n}\n\nexport type ToolPropertyTypes =\n | \"string\"\n | \"file\"\n | \"number\"\n | \"boolean\"\n | \"options\"\n | \"json\"\n | \"notice\"\n | \"canvas-assist\";\n\nexport const CODE_LANGUAGES = [\"javaScript\", \"json\", \"python\", \"sql\"] as const;\n\nexport type EditorType =\n | \"code\"\n | \"codeNodeEditor\"\n | \"htmlEditor\"\n | \"sqlEditor\"\n | \"json\";\nexport type CodeNodeEditorLanguage = (typeof CODE_LANGUAGES)[number];\n\nexport interface ToolPropertyTypeOptions {\n editor?: EditorType; // Supported by: string\n editorLanguage?: CodeNodeEditorLanguage; // Supported by: string in combination with editor: codeNodeEditor\n maxValue?: number; // Supported by: number\n minValue?: number; // Supported by: number\n multipleValues?: boolean; // Supported by: <All>\n multipleValueButtonText?: string; // Supported when \"multipleValues\" set to true\n numberPrecision?: number; // Supported by: number\n password?: boolean; // Supported by: string\n rows?: number; // Supported by: string\n assetType?: AssetType;\n accept?: string;\n max?: number;\n\n [key: string]: any;\n}\n\nexport type ToolPropertyParameterValue =\n | string\n | number\n | boolean\n | undefined\n | null;\n\nexport type ResourceLocatorModes = \"id\" | \"url\" | \"list\" | string;\nexport interface IResourceLocatorResult {\n name: string;\n value: string;\n url?: string;\n}\n\nexport interface ToolParameter {\n [key: string]: ToolParameterValueType;\n}\nexport type ToolParameterValueType =\n // TODO: Later also has to be possible to add multiple ones with the name name. So array has to be possible\n | ToolPropertyParameterValue\n | ToolParameter\n | ToolPropertyParameterValue[]\n | ToolParameter[];\n\nexport interface ToolPropertyDisplayOptions {\n hide?: {\n [key: string]: ToolPropertyParameterValue[] | undefined;\n };\n show?: {\n [key: string]: ToolPropertyParameterValue[] | undefined;\n };\n}\n\nexport interface ToolPropertyOptions {\n name: string | I18nValue;\n value: string | number | boolean;\n action?: string;\n description?: string | I18nValue;\n}\n\nexport interface ToolPropertyCollection {\n displayName: string;\n name: string;\n values: ToolProperty[];\n}\n\nexport interface ToolPropertyValueExtractorBase {\n type: string;\n}\n\nexport interface ToolPropertyValueExtractorRegex {\n type: \"regex\";\n regex: string | RegExp;\n}\n\nexport type AssetType =\n | \"llm-model\"\n | \"sd-model\"\n | \"workflow\"\n | \"workflow-association\"\n | \"design-project\"\n | \"design-association\"\n | \"design-board\"\n | \"workflow-view\"\n | \"media-file\"\n | \"sql-knowledge-base-table\"\n | \"sql-knowledge-base\"\n | \"knowledge-base\"\n | \"canvas\"\n | \"workflow-template\"\n | \"fork-join-branch\"\n | \"workflow-version\"\n | \"tools\"\n | \"comfyui-server\"\n | \"comfyui-workflow\"\n | \"comfyui-model-type\"\n | \"comfyui-model\"\n | \"llm-channel\"\n | \"conversation-app\"\n | \"oneapi-model\"\n | \"leaderboard\"\n | \"model-training\";\n\nexport interface ToolProperty {\n displayName: string | I18nValue;\n name: string;\n type: ToolPropertyTypes;\n typeOptions?: ToolPropertyTypeOptions;\n default?: ToolParameterValueType;\n description?: string | I18nValue;\n hint?: string;\n displayOptions?: ToolPropertyDisplayOptions;\n options?: Array<ToolPropertyOptions | ToolProperty | ToolPropertyCollection>;\n placeholder?: string | I18nValue;\n isNodeSetting?: boolean;\n noDataExpression?: boolean;\n required?: boolean;\n example?: string;\n extractValue?: ToolPropertyValueExtractorRegex;\n properties?: ToolProperty[];\n assetType?: AssetType;\n flag?: boolean;\n}\n\nexport type ToolCategory =\n | \"image\" // 图像处理\n | \"text\" // 文本处理\n | \"file\" // 文件处理\n | \"gen-image\" // 图像生成\n | \"gen-text\" // 文本生成\n | \"train-model\" // 模型训练\n | \"process\" // 流程控制\n | \"auto\" // 自动化\n | \"bio\" // 生命科学\n | \"human\" // 用户交互\n | \"query\" // 搜索增强\n | \"db\" // 数据存储\n | \"extra\"; // 扩展能力\n\nexport enum ToolType {\n SIMPLE = \"SIMPLE\",\n FORK_JOIN = \"FORK_JOIN\",\n JOIN = \"JOIN\",\n DO_WHILE = \"DO_WHILE\",\n SWITCH = \"SWITCH\",\n DYNAMIC = \"DYNAMIC\",\n FORK_JOIN_DYNAMIC = \"FORK_JOIN_DYNAMIC\",\n TERMINATE = \"TERMINATE\",\n HUMAN = \"HUMAN\",\n SUB_WORKFLOW = \"SUB_WORKFLOW\",\n INLINE = \"INLINE\",\n SET_VARIABLE = \"SET_VARIABLE\",\n}\n\nexport interface ToolRuleItem {\n type: string;\n [x: string]: any;\n}\n\nexport interface ToolExtraInfo {\n [x: string]: any;\n}\n\nexport interface ToolCredentialItem {\n name: string;\n required: boolean;\n}\n\nexport interface ToolDef {\n type: ToolType;\n name: string;\n displayName: string | I18nValue;\n description?: string | I18nValue;\n icon?: string;\n input: ToolProperty[];\n output: ToolProperty[];\n categories?: ToolCategory[];\n rules?: ToolRuleItem[];\n extra?: ToolExtraInfo;\n credentials?: ToolCredentialItem[];\n}\n","export enum ValidationIssueType {\n ERROR = 'ERROR',\n WANTING = 'WANTING',\n}\n\nexport enum ValidationReasonType {\n VALUE_REQUIRED = 'VALUE_REQUIRED',\n VALUE_TYPE_NOT_MATCH = 'VALUE_TYPE_NOT_MATCH',\n DO_WHILE_EMPTY_LOOP_OVER = 'DO_WHILE_EMPTY_LOOP_OVER',\n}\n\nexport interface ValidationIssueReason {\n type: ValidationReasonType;\n name: string;\n}\n\nexport interface WorkflowValidationIssue {\n taskReferenceName: string;\n issueType: ValidationIssueType;\n detailReason: ValidationIssueReason;\n humanMessage: {\n en: string;\n zh: string;\n };\n}\n\nexport interface WorkflowTriggerConfig {\n triggerType: WorkflowTriggerType;\n cron?: string;\n}\n\nexport enum WorkflowTriggerType {\n MANUALLY = 'MANUAL',\n SCHEDULER = 'SCHEDULER',\n WEBHOOK = 'WEBHOOK',\n}\n \n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBO,IAAM,iBAAiB,CAAC,cAAc,QAAQ,UAAU,KAAK;AAkJ7D,IAAK,WAAL,kBAAKA,cAAL;AACL,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,eAAY;AACZ,EAAAA,UAAA,UAAO;AACP,EAAAA,UAAA,cAAW;AACX,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,aAAU;AACV,EAAAA,UAAA,uBAAoB;AACpB,EAAAA,UAAA,eAAY;AACZ,EAAAA,UAAA,WAAQ;AACR,EAAAA,UAAA,kBAAe;AACf,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,kBAAe;AAZL,SAAAA;AAAA,GAAA;;;ACpKL,IAAK,sBAAL,kBAAKC,yBAAL;AACL,EAAAA,qBAAA,WAAQ;AACR,EAAAA,qBAAA,aAAU;AAFA,SAAAA;AAAA,GAAA;AAKL,IAAK,uBAAL,kBAAKC,0BAAL;AACL,EAAAA,sBAAA,oBAAiB;AACjB,EAAAA,sBAAA,0BAAuB;AACvB,EAAAA,sBAAA,8BAA2B;AAHjB,SAAAA;AAAA,GAAA;AA0BL,IAAK,sBAAL,kBAAKC,yBAAL;AACL,EAAAA,qBAAA,cAAW;AACX,EAAAA,qBAAA,eAAY;AACZ,EAAAA,qBAAA,aAAU;AAHA,SAAAA;AAAA,GAAA;","names":["ToolType","ValidationIssueType","ValidationReasonType","WorkflowTriggerType"]}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APPLICATION_HANDOFF_QUERY_PARAMETER,
|
|
3
|
+
BUILTIN_ARTIFACT_PROFILES,
|
|
3
4
|
DEFAULT_CONDUCTOR_OWNER_EMAIL,
|
|
5
|
+
DESIGN_BOARD_ARTIFACT_PROFILE,
|
|
4
6
|
DeclarativeControlCompilationError,
|
|
5
7
|
MenuCompilationError,
|
|
6
8
|
PageComponentDefinitionSchema,
|
|
@@ -9,6 +11,7 @@ import {
|
|
|
9
11
|
RUNTIME_DEFINITION_FORMAT,
|
|
10
12
|
RUNTIME_DEFINITION_FORMAT_HEADER,
|
|
11
13
|
RuntimeDefinitionResponseSchema,
|
|
14
|
+
WORKFLOW_ARTIFACT_PROFILE,
|
|
12
15
|
acceptsPreviousSchema,
|
|
13
16
|
accessPolicyChainImplies,
|
|
14
17
|
applyDesignBoardChanges,
|
|
@@ -21,6 +24,7 @@ import {
|
|
|
21
24
|
assertProgramRegistration,
|
|
22
25
|
assertViewProviderContract,
|
|
23
26
|
buildApplicationHandoffUrl,
|
|
27
|
+
buildArtifactCollabRoomId,
|
|
24
28
|
buildChangeImpactGraph,
|
|
25
29
|
buildPageMountHref,
|
|
26
30
|
canonicalContentHash,
|
|
@@ -54,6 +58,7 @@ import {
|
|
|
54
58
|
compileToolCapabilityManifest,
|
|
55
59
|
compileViewProviderInput,
|
|
56
60
|
compileViewProviderRegistry,
|
|
61
|
+
compileViewSpecToRenderTree,
|
|
57
62
|
compileWorkbenchRuntimeBundle,
|
|
58
63
|
compileWorkflowDefinitionFromConductor,
|
|
59
64
|
compileWorkflowPersistenceProjection,
|
|
@@ -117,6 +122,7 @@ import {
|
|
|
117
122
|
recordEditorDraftIsDirty,
|
|
118
123
|
recordEditorPathKey,
|
|
119
124
|
recordEditorValuesEqual,
|
|
125
|
+
resolveBuiltinArtifactProfile,
|
|
120
126
|
resolveFileResourceReference,
|
|
121
127
|
resolveMenuActivationId,
|
|
122
128
|
resolvePage,
|
|
@@ -138,8 +144,8 @@ import {
|
|
|
138
144
|
validateDomainCommand,
|
|
139
145
|
validateWorkbenchRuntimeSet,
|
|
140
146
|
writePageDraftPath
|
|
141
|
-
} from "../chunk-
|
|
142
|
-
import "../chunk-
|
|
147
|
+
} from "../chunk-74H5I3XN.mjs";
|
|
148
|
+
import "../chunk-HJNQDSLC.mjs";
|
|
143
149
|
import {
|
|
144
150
|
MONKEYS_REQUIRED_THEME_TOKEN_PATHS,
|
|
145
151
|
ThemeTokenValidationError,
|
|
@@ -149,11 +155,13 @@ import {
|
|
|
149
155
|
resolveThemeTokens,
|
|
150
156
|
validateThemeTokensDocument,
|
|
151
157
|
validateThemeTokensDocumentStructure
|
|
152
|
-
} from "../chunk-
|
|
158
|
+
} from "../chunk-FIZWECL6.mjs";
|
|
153
159
|
import "../chunk-3QS3WKRC.mjs";
|
|
154
160
|
export {
|
|
155
161
|
APPLICATION_HANDOFF_QUERY_PARAMETER,
|
|
162
|
+
BUILTIN_ARTIFACT_PROFILES,
|
|
156
163
|
DEFAULT_CONDUCTOR_OWNER_EMAIL,
|
|
164
|
+
DESIGN_BOARD_ARTIFACT_PROFILE,
|
|
157
165
|
DeclarativeControlCompilationError,
|
|
158
166
|
MONKEYS_REQUIRED_THEME_TOKEN_PATHS,
|
|
159
167
|
MenuCompilationError,
|
|
@@ -164,6 +172,7 @@ export {
|
|
|
164
172
|
RUNTIME_DEFINITION_FORMAT_HEADER,
|
|
165
173
|
RuntimeDefinitionResponseSchema,
|
|
166
174
|
ThemeTokenValidationError,
|
|
175
|
+
WORKFLOW_ARTIFACT_PROFILE,
|
|
167
176
|
acceptsPreviousSchema,
|
|
168
177
|
accessPolicyChainImplies,
|
|
169
178
|
applyDesignBoardChanges,
|
|
@@ -178,6 +187,7 @@ export {
|
|
|
178
187
|
assertThemeTokensDocumentStructure,
|
|
179
188
|
assertViewProviderContract,
|
|
180
189
|
buildApplicationHandoffUrl,
|
|
190
|
+
buildArtifactCollabRoomId,
|
|
181
191
|
buildChangeImpactGraph,
|
|
182
192
|
buildPageMountHref,
|
|
183
193
|
canonicalContentHash,
|
|
@@ -211,6 +221,7 @@ export {
|
|
|
211
221
|
compileToolCapabilityManifest,
|
|
212
222
|
compileViewProviderInput,
|
|
213
223
|
compileViewProviderRegistry,
|
|
224
|
+
compileViewSpecToRenderTree,
|
|
214
225
|
compileWorkbenchRuntimeBundle,
|
|
215
226
|
compileWorkflowDefinitionFromConductor,
|
|
216
227
|
compileWorkflowPersistenceProjection,
|
|
@@ -275,6 +286,7 @@ export {
|
|
|
275
286
|
recordEditorDraftIsDirty,
|
|
276
287
|
recordEditorPathKey,
|
|
277
288
|
recordEditorValuesEqual,
|
|
289
|
+
resolveBuiltinArtifactProfile,
|
|
278
290
|
resolveFileResourceReference,
|
|
279
291
|
resolveMenuActivationId,
|
|
280
292
|
resolvePage,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
canonicalContractSchemas
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-4LC3ZXUP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
AgentRuntimeEventSchema,
|
|
6
6
|
AggregateAssetDeleteSchema,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
WorkflowCompletionCommitSchema,
|
|
70
70
|
WorkflowCompletionReceiptSchema,
|
|
71
71
|
WorkflowPublicationSchema
|
|
72
|
-
} from "../chunk-
|
|
72
|
+
} from "../chunk-Y7EZZ6IW.mjs";
|
|
73
73
|
import {
|
|
74
74
|
AccessPolicySchema,
|
|
75
75
|
ActionBindingSchema,
|
|
@@ -129,6 +129,15 @@ import {
|
|
|
129
129
|
AgentWorkbenchSidebarSectionSchema,
|
|
130
130
|
ApplicationHandoffEndpointSchema,
|
|
131
131
|
ApplicationHandoffSchema,
|
|
132
|
+
ArtifactCollabClientMessageSchema,
|
|
133
|
+
ArtifactCollabRoomKeySchema,
|
|
134
|
+
ArtifactCollabServerMessageSchema,
|
|
135
|
+
ArtifactCrdtCodecSchema,
|
|
136
|
+
ArtifactKindSchema,
|
|
137
|
+
ArtifactPresenceCursorSchema,
|
|
138
|
+
ArtifactPresenceStateSchema,
|
|
139
|
+
ArtifactProfileSchema,
|
|
140
|
+
ArtifactStorageModeSchema,
|
|
132
141
|
BindingSourceSchema,
|
|
133
142
|
CapabilityInstanceSchema,
|
|
134
143
|
CapabilityManifestSchema,
|
|
@@ -343,7 +352,16 @@ import {
|
|
|
343
352
|
ThemeTokenSchema,
|
|
344
353
|
ThemeTokenTypeSchema,
|
|
345
354
|
ThemeTokensSchema,
|
|
355
|
+
ViewBlockDataSourceSchema,
|
|
356
|
+
ViewBlockSchema,
|
|
357
|
+
ViewLayoutRegionSchema,
|
|
358
|
+
ViewLayoutSchema,
|
|
346
359
|
ViewProviderDescriptorSchema,
|
|
360
|
+
ViewQuerySchema,
|
|
361
|
+
ViewSortSchema,
|
|
362
|
+
ViewSpecSchema,
|
|
363
|
+
ViewSubjectSchema,
|
|
364
|
+
ViewWiringRuleSchema,
|
|
347
365
|
WorkbenchAppInstanceSchema,
|
|
348
366
|
WorkbenchGroupSchema,
|
|
349
367
|
WorkbenchReleaseSchema,
|
|
@@ -362,7 +380,7 @@ import {
|
|
|
362
380
|
WorkflowParameterTypeSchema,
|
|
363
381
|
WorkflowTriggerSchema,
|
|
364
382
|
WorkflowValidationIssueSchema
|
|
365
|
-
} from "../chunk-
|
|
383
|
+
} from "../chunk-FIZWECL6.mjs";
|
|
366
384
|
import "../chunk-3QS3WKRC.mjs";
|
|
367
385
|
export {
|
|
368
386
|
AccessPolicySchema,
|
|
@@ -435,7 +453,16 @@ export {
|
|
|
435
453
|
ApplicationHandoffEndpointSchema,
|
|
436
454
|
ApplicationHandoffSchema,
|
|
437
455
|
ApplicationRunSchema,
|
|
456
|
+
ArtifactCollabClientMessageSchema,
|
|
457
|
+
ArtifactCollabRoomKeySchema,
|
|
458
|
+
ArtifactCollabServerMessageSchema,
|
|
459
|
+
ArtifactCrdtCodecSchema,
|
|
460
|
+
ArtifactKindSchema,
|
|
438
461
|
ArtifactManifestSchema,
|
|
462
|
+
ArtifactPresenceCursorSchema,
|
|
463
|
+
ArtifactPresenceStateSchema,
|
|
464
|
+
ArtifactProfileSchema,
|
|
465
|
+
ArtifactStorageModeSchema,
|
|
439
466
|
BindingSourceSchema,
|
|
440
467
|
BodyRelationRecordSchema,
|
|
441
468
|
BrandBodySchema,
|
|
@@ -700,7 +727,16 @@ export {
|
|
|
700
727
|
TrendRadarCollectionSubjectRefSchema,
|
|
701
728
|
TrendSourceRecordSchema,
|
|
702
729
|
TrendSourceSchema,
|
|
730
|
+
ViewBlockDataSourceSchema,
|
|
731
|
+
ViewBlockSchema,
|
|
732
|
+
ViewLayoutRegionSchema,
|
|
733
|
+
ViewLayoutSchema,
|
|
703
734
|
ViewProviderDescriptorSchema,
|
|
735
|
+
ViewQuerySchema,
|
|
736
|
+
ViewSortSchema,
|
|
737
|
+
ViewSpecSchema,
|
|
738
|
+
ViewSubjectSchema,
|
|
739
|
+
ViewWiringRuleSchema,
|
|
704
740
|
WorkbenchAppInstanceSchema,
|
|
705
741
|
WorkbenchGroupSchema,
|
|
706
742
|
WorkbenchReleaseSchema,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ArtifactCollabRoomKey, ArtifactProfile, ArtifactPresenceState, ViewSpec } from '../contracts/artifact-platform';
|
|
2
|
+
import { RenderTree } from '../contracts/render';
|
|
3
|
+
export type ArtifactBodySessionStatus = 'idle' | 'loading' | 'connecting' | 'ready' | 'saving' | 'saved' | 'conflict' | 'offline' | 'error';
|
|
4
|
+
export interface ArtifactBodyChangeEvent<TDoc> {
|
|
5
|
+
document: TDoc;
|
|
6
|
+
status: ArtifactBodySessionStatus;
|
|
7
|
+
revision: number | null;
|
|
8
|
+
dirty: boolean;
|
|
9
|
+
origin: 'local' | 'remote' | 'hydration' | 'checkpoint' | 'system';
|
|
10
|
+
error?: unknown;
|
|
11
|
+
}
|
|
12
|
+
export interface ArtifactAwarenessController {
|
|
13
|
+
getPeers(): ArtifactPresenceState[];
|
|
14
|
+
setLocalState(patch: Partial<Omit<ArtifactPresenceState, 'peerId' | 'updatedAt'>>): void;
|
|
15
|
+
subscribe(listener: (peers: ArtifactPresenceState[]) => void): () => void;
|
|
16
|
+
}
|
|
17
|
+
export interface ArtifactBodySession<TDoc> {
|
|
18
|
+
readonly artifactRef: ArtifactCollabRoomKey;
|
|
19
|
+
readonly status: ArtifactBodySessionStatus;
|
|
20
|
+
readonly revision: number | null;
|
|
21
|
+
readonly dirty: boolean;
|
|
22
|
+
getSnapshot(): TDoc;
|
|
23
|
+
applyLocalChange(next: TDoc, meta?: {
|
|
24
|
+
origin?: string;
|
|
25
|
+
recordUndo?: boolean;
|
|
26
|
+
}): void;
|
|
27
|
+
flush(): Promise<void>;
|
|
28
|
+
commitCheckpoint?(note?: string): Promise<{
|
|
29
|
+
commitId?: string;
|
|
30
|
+
revision: number;
|
|
31
|
+
}>;
|
|
32
|
+
undo?(): boolean;
|
|
33
|
+
redo?(): boolean;
|
|
34
|
+
awareness?: ArtifactAwarenessController;
|
|
35
|
+
subscribe(listener: (event: ArtifactBodyChangeEvent<TDoc>) => void): () => void;
|
|
36
|
+
dispose(): void;
|
|
37
|
+
}
|
|
38
|
+
export declare function buildArtifactCollabRoomId(key: ArtifactCollabRoomKey): string;
|
|
39
|
+
/**
|
|
40
|
+
* Lowers a high-level ViewSpec (Subject + Query + Layout + Blocks + Wiring)
|
|
41
|
+
* into a canonical RenderTree compatible with the existing Declarative Page Runtime.
|
|
42
|
+
*/
|
|
43
|
+
export declare function compileViewSpecToRenderTree(specInput: ViewSpec, options?: {
|
|
44
|
+
product?: 'studio' | 'kernel';
|
|
45
|
+
ownerRepo?: string;
|
|
46
|
+
}): RenderTree;
|
|
47
|
+
export declare const DESIGN_BOARD_ARTIFACT_PROFILE: ArtifactProfile;
|
|
48
|
+
export declare const WORKFLOW_ARTIFACT_PROFILE: ArtifactProfile;
|
|
49
|
+
export declare const BUILTIN_ARTIFACT_PROFILES: Readonly<Record<string, ArtifactProfile>>;
|
|
50
|
+
export declare function resolveBuiltinArtifactProfile(artifactKind: string): ArtifactProfile | undefined;
|
|
51
|
+
//# sourceMappingURL=artifact-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifact-session.d.ts","sourceRoot":"","sources":["../../src/runtime/artifact-session.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,eAAe,EAEf,qBAAqB,EACrB,QAAQ,EAET,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAc,UAAU,EAAoB,MAAM,qBAAqB,CAAC;AAE/E,MAAM,MAAM,yBAAyB,GACjC,MAAM,GACN,SAAS,GACT,YAAY,GACZ,OAAO,GACP,QAAQ,GACR,OAAO,GACP,UAAU,GACV,SAAS,GACT,OAAO,CAAC;AAEZ,MAAM,WAAW,uBAAuB,CAAC,IAAI;IAC3C,QAAQ,EAAE,IAAI,CAAC;IACf,MAAM,EAAE,yBAAyB,CAAC;IAClC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,GAAG,QAAQ,GAAG,WAAW,GAAG,YAAY,GAAG,QAAQ,CAAC;IACnE,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,IAAI,qBAAqB,EAAE,CAAC;IACpC,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,QAAQ,GAAG,WAAW,CAAC,CAAC,GAAG,IAAI,CAAC;IACzF,SAAS,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,qBAAqB,EAAE,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;CAC3E;AAED,MAAM,WAAW,mBAAmB,CAAC,IAAI;IACvC,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;IAC5C,QAAQ,CAAC,MAAM,EAAE,yBAAyB,CAAC;IAC3C,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,WAAW,IAAI,IAAI,CAAC;IACpB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IACrF,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,gBAAgB,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACnF,IAAI,CAAC,IAAI,OAAO,CAAC;IACjB,IAAI,CAAC,IAAI,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,2BAA2B,CAAC;IACxC,SAAS,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,uBAAuB,CAAC,IAAI,CAAC,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;IAChF,OAAO,IAAI,IAAI,CAAC;CACjB;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,qBAAqB,GAAG,MAAM,CAG5E;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,SAAS,EAAE,QAAQ,EACnB,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GAClE,UAAU,CA6FZ;AAED,eAAO,MAAM,6BAA6B,EAAE,eA+F1C,CAAC;AAEH,eAAO,MAAM,yBAAyB,EAAE,eA8HtC,CAAC;AAEH,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAG9E,CAAC;AAEH,wBAAgB,6BAA6B,CAAC,YAAY,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAE/F"}
|