@inf-monkeys-tech/monkeys 1.1.56 → 1.1.57
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/engineering-artifacts.d.ts +359 -0
- package/lib/contracts/engineering-artifacts.d.ts.map +1 -0
- package/lib/contracts/engineering-artifacts.js +191 -0
- package/lib/contracts/engineering-artifacts.js.map +1 -0
- 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/menu.d.ts +10 -10
- package/lib/contracts/page-expression.d.ts +1 -1
- package/lib/contracts/tenant.d.ts +5 -5
- package/lib/esm/{chunk-Y7EZZ6IW.mjs → chunk-5ZGNWCL4.mjs} +465 -306
- package/lib/esm/chunk-5ZGNWCL4.mjs.map +1 -0
- package/lib/esm/{chunk-4LC3ZXUP.mjs → chunk-C3X5SSRD.mjs} +2 -2
- package/lib/esm/chunk-C3X5SSRD.mjs.map +1 -0
- package/lib/esm/{chunk-DQJODDRF.mjs → chunk-USWQ4YP5.mjs} +1 -1
- package/lib/esm/{chunk-74H5I3XN.mjs → chunk-VYC47WKJ.mjs} +211 -2
- package/lib/esm/chunk-VYC47WKJ.mjs.map +1 -0
- package/lib/esm/contracts/index.mjs +26 -2
- package/lib/esm/index.mjs +34 -4
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +7 -1
- package/lib/esm/schemas/index.mjs +26 -2
- package/lib/runtime/artifact-session.d.ts +3 -0
- package/lib/runtime/artifact-session.d.ts.map +1 -1
- package/lib/runtime/artifact-session.js +207 -1
- package/lib/runtime/artifact-session.js.map +1 -1
- package/lib/schemas/index.d.ts +7 -6
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +21 -8
- package/lib/schemas/index.js.map +1 -1
- package/package.json +2 -2
- package/lib/esm/chunk-4LC3ZXUP.mjs.map +0 -1
- package/lib/esm/chunk-74H5I3XN.mjs.map +0 -1
- package/lib/esm/chunk-Y7EZZ6IW.mjs.map +0 -1
- /package/lib/esm/{chunk-DQJODDRF.mjs.map → chunk-USWQ4YP5.mjs.map} +0 -0
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
RuntimeProgramLoadRequestSchema,
|
|
73
73
|
RuntimeProgramLoadResultSchema,
|
|
74
74
|
platformNotificationRoutes
|
|
75
|
-
} from "../chunk-
|
|
75
|
+
} from "../chunk-USWQ4YP5.mjs";
|
|
76
76
|
import {
|
|
77
77
|
ActorRefSchema,
|
|
78
78
|
AgentRuntimeEventSchema,
|
|
@@ -93,6 +93,10 @@ import {
|
|
|
93
93
|
BodyRelationRecordSchema,
|
|
94
94
|
BrandBodySchema,
|
|
95
95
|
BrandGeneticsProfileSchema,
|
|
96
|
+
CadAnnotationPinSchema,
|
|
97
|
+
CadArtifactDocumentSchema,
|
|
98
|
+
CadConstraintSchema,
|
|
99
|
+
CadFeatureNodeSchema,
|
|
96
100
|
CompletionEventSchema,
|
|
97
101
|
CompletionHeaderSchema,
|
|
98
102
|
DECLARATIVE_PUBLICATION_SCOPE_HEADER,
|
|
@@ -109,6 +113,12 @@ import {
|
|
|
109
113
|
DeclarativePublicationScopeSchema,
|
|
110
114
|
DeclarativePublicationVerificationRequestSchema,
|
|
111
115
|
DeclarativePublicationVerificationSchema,
|
|
116
|
+
EdaCircuitDocumentSchema,
|
|
117
|
+
EdaComponentInstanceSchema,
|
|
118
|
+
EdaNetSchema,
|
|
119
|
+
EdaPcbTraceSchema,
|
|
120
|
+
EdaSheetSchema,
|
|
121
|
+
EdaWireSchema,
|
|
112
122
|
ExecutionLinkSchema,
|
|
113
123
|
ExpiringAccessGrantSchema,
|
|
114
124
|
HotwordBodySchema,
|
|
@@ -132,6 +142,7 @@ import {
|
|
|
132
142
|
RequestScopeSchema,
|
|
133
143
|
SavedRadarQuerySchema,
|
|
134
144
|
StorageLocatorSchema,
|
|
145
|
+
Transform3DSchema,
|
|
135
146
|
TrendIngestRunSchema,
|
|
136
147
|
TrendMetricSnapshotSchema,
|
|
137
148
|
TrendRadarCollectionArtifactProjectionSchema,
|
|
@@ -148,11 +159,12 @@ import {
|
|
|
148
159
|
TrendRadarCollectionSubjectRefSchema,
|
|
149
160
|
TrendSourceRecordSchema,
|
|
150
161
|
TrendSourceSchema,
|
|
162
|
+
Vec3Schema,
|
|
151
163
|
WorkflowCatalogEntrySchema,
|
|
152
164
|
WorkflowCompletionCommitSchema,
|
|
153
165
|
WorkflowCompletionReceiptSchema,
|
|
154
166
|
WorkflowPublicationSchema
|
|
155
|
-
} from "../chunk-
|
|
167
|
+
} from "../chunk-5ZGNWCL4.mjs";
|
|
156
168
|
import {
|
|
157
169
|
PAGE_STREAM_MAX_BUFFER_BYTES,
|
|
158
170
|
PAGE_STREAM_MAX_BUFFER_EVENTS,
|
|
@@ -851,6 +863,10 @@ export {
|
|
|
851
863
|
BrandGeneticsProfileSchema,
|
|
852
864
|
CURRENT_USER_MENU_ACTION_REFS,
|
|
853
865
|
CURRENT_USER_MENU_CONTROL_REFS,
|
|
866
|
+
CadAnnotationPinSchema,
|
|
867
|
+
CadArtifactDocumentSchema,
|
|
868
|
+
CadConstraintSchema,
|
|
869
|
+
CadFeatureNodeSchema,
|
|
854
870
|
CapabilityInstanceSchema,
|
|
855
871
|
CapabilityManifestSchema,
|
|
856
872
|
CapabilityProviderBindingSchema,
|
|
@@ -1038,6 +1054,12 @@ export {
|
|
|
1038
1054
|
DomainEventSchema,
|
|
1039
1055
|
DomainQueryDataSourceSchema,
|
|
1040
1056
|
DomainQueryDefinitionSchema,
|
|
1057
|
+
EdaCircuitDocumentSchema,
|
|
1058
|
+
EdaComponentInstanceSchema,
|
|
1059
|
+
EdaNetSchema,
|
|
1060
|
+
EdaPcbTraceSchema,
|
|
1061
|
+
EdaSheetSchema,
|
|
1062
|
+
EdaWireSchema,
|
|
1041
1063
|
EntityRefSchema,
|
|
1042
1064
|
ExecutionLinkSchema,
|
|
1043
1065
|
ExpiringAccessGrantSchema,
|
|
@@ -1340,6 +1362,7 @@ export {
|
|
|
1340
1362
|
ThemeTokenSchema,
|
|
1341
1363
|
ThemeTokenTypeSchema,
|
|
1342
1364
|
ThemeTokensSchema,
|
|
1365
|
+
Transform3DSchema,
|
|
1343
1366
|
TrendIngestRunSchema,
|
|
1344
1367
|
TrendMetricSnapshotSchema,
|
|
1345
1368
|
TrendRadarCollectionArtifactProjectionSchema,
|
|
@@ -1356,6 +1379,7 @@ export {
|
|
|
1356
1379
|
TrendRadarCollectionSubjectRefSchema,
|
|
1357
1380
|
TrendSourceRecordSchema,
|
|
1358
1381
|
TrendSourceSchema,
|
|
1382
|
+
Vec3Schema,
|
|
1359
1383
|
ViewBlockDataSourceSchema,
|
|
1360
1384
|
ViewBlockSchema,
|
|
1361
1385
|
ViewLayoutRegionSchema,
|
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-USWQ4YP5.mjs";
|
|
76
76
|
import {
|
|
77
77
|
canonicalContractSchemas
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-C3X5SSRD.mjs";
|
|
79
79
|
import {
|
|
80
80
|
ActorRefSchema,
|
|
81
81
|
AgentRuntimeEventSchema,
|
|
@@ -96,6 +96,10 @@ import {
|
|
|
96
96
|
BodyRelationRecordSchema,
|
|
97
97
|
BrandBodySchema,
|
|
98
98
|
BrandGeneticsProfileSchema,
|
|
99
|
+
CadAnnotationPinSchema,
|
|
100
|
+
CadArtifactDocumentSchema,
|
|
101
|
+
CadConstraintSchema,
|
|
102
|
+
CadFeatureNodeSchema,
|
|
99
103
|
CompletionEventSchema,
|
|
100
104
|
CompletionHeaderSchema,
|
|
101
105
|
DECLARATIVE_PUBLICATION_SCOPE_HEADER,
|
|
@@ -112,6 +116,12 @@ import {
|
|
|
112
116
|
DeclarativePublicationScopeSchema,
|
|
113
117
|
DeclarativePublicationVerificationRequestSchema,
|
|
114
118
|
DeclarativePublicationVerificationSchema,
|
|
119
|
+
EdaCircuitDocumentSchema,
|
|
120
|
+
EdaComponentInstanceSchema,
|
|
121
|
+
EdaNetSchema,
|
|
122
|
+
EdaPcbTraceSchema,
|
|
123
|
+
EdaSheetSchema,
|
|
124
|
+
EdaWireSchema,
|
|
115
125
|
ExecutionLinkSchema,
|
|
116
126
|
ExpiringAccessGrantSchema,
|
|
117
127
|
HotwordBodySchema,
|
|
@@ -135,6 +145,7 @@ import {
|
|
|
135
145
|
RequestScopeSchema,
|
|
136
146
|
SavedRadarQuerySchema,
|
|
137
147
|
StorageLocatorSchema,
|
|
148
|
+
Transform3DSchema,
|
|
138
149
|
TrendIngestRunSchema,
|
|
139
150
|
TrendMetricSnapshotSchema,
|
|
140
151
|
TrendRadarCollectionArtifactProjectionSchema,
|
|
@@ -151,17 +162,21 @@ import {
|
|
|
151
162
|
TrendRadarCollectionSubjectRefSchema,
|
|
152
163
|
TrendSourceRecordSchema,
|
|
153
164
|
TrendSourceSchema,
|
|
165
|
+
Vec3Schema,
|
|
154
166
|
WorkflowCatalogEntrySchema,
|
|
155
167
|
WorkflowCompletionCommitSchema,
|
|
156
168
|
WorkflowCompletionReceiptSchema,
|
|
157
169
|
WorkflowPublicationSchema
|
|
158
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-5ZGNWCL4.mjs";
|
|
159
171
|
import {
|
|
160
172
|
APPLICATION_HANDOFF_QUERY_PARAMETER,
|
|
161
173
|
BUILTIN_ARTIFACT_PROFILES,
|
|
174
|
+
CAD_ASSEMBLY_ARTIFACT_PROFILE,
|
|
162
175
|
DEFAULT_CONDUCTOR_OWNER_EMAIL,
|
|
163
176
|
DESIGN_BOARD_ARTIFACT_PROFILE,
|
|
177
|
+
DOCUMENT_ARTIFACT_PROFILE,
|
|
164
178
|
DeclarativeControlCompilationError,
|
|
179
|
+
EDA_CIRCUIT_ARTIFACT_PROFILE,
|
|
165
180
|
MenuCompilationError,
|
|
166
181
|
PageComponentDefinitionSchema,
|
|
167
182
|
PageCompositionSchema,
|
|
@@ -302,7 +317,7 @@ import {
|
|
|
302
317
|
validateDomainCommand,
|
|
303
318
|
validateWorkbenchRuntimeSet,
|
|
304
319
|
writePageDraftPath
|
|
305
|
-
} from "./chunk-
|
|
320
|
+
} from "./chunk-VYC47WKJ.mjs";
|
|
306
321
|
import {
|
|
307
322
|
PAGE_STREAM_MAX_BUFFER_BYTES,
|
|
308
323
|
PAGE_STREAM_MAX_BUFFER_EVENTS,
|
|
@@ -1046,9 +1061,14 @@ export {
|
|
|
1046
1061
|
BodyRelationRecordSchema,
|
|
1047
1062
|
BrandBodySchema,
|
|
1048
1063
|
BrandGeneticsProfileSchema,
|
|
1064
|
+
CAD_ASSEMBLY_ARTIFACT_PROFILE,
|
|
1049
1065
|
CODE_LANGUAGES,
|
|
1050
1066
|
CURRENT_USER_MENU_ACTION_REFS,
|
|
1051
1067
|
CURRENT_USER_MENU_CONTROL_REFS,
|
|
1068
|
+
CadAnnotationPinSchema,
|
|
1069
|
+
CadArtifactDocumentSchema,
|
|
1070
|
+
CadConstraintSchema,
|
|
1071
|
+
CadFeatureNodeSchema,
|
|
1052
1072
|
CapabilityInstanceSchema,
|
|
1053
1073
|
CapabilityManifestSchema,
|
|
1054
1074
|
CapabilityProviderBindingSchema,
|
|
@@ -1112,6 +1132,7 @@ export {
|
|
|
1112
1132
|
DEFAULT_AGENT_WORKBENCH_SIDEBAR_SECTIONS,
|
|
1113
1133
|
DEFAULT_CONDUCTOR_OWNER_EMAIL,
|
|
1114
1134
|
DESIGN_BOARD_ARTIFACT_PROFILE,
|
|
1135
|
+
DOCUMENT_ARTIFACT_PROFILE,
|
|
1115
1136
|
DataContinuityEnvelopeSchema,
|
|
1116
1137
|
DeclarationGraphEdgeSchema,
|
|
1117
1138
|
DeclarativeAudienceSimulationSchema,
|
|
@@ -1239,6 +1260,13 @@ export {
|
|
|
1239
1260
|
DomainEventSchema,
|
|
1240
1261
|
DomainQueryDataSourceSchema,
|
|
1241
1262
|
DomainQueryDefinitionSchema,
|
|
1263
|
+
EDA_CIRCUIT_ARTIFACT_PROFILE,
|
|
1264
|
+
EdaCircuitDocumentSchema,
|
|
1265
|
+
EdaComponentInstanceSchema,
|
|
1266
|
+
EdaNetSchema,
|
|
1267
|
+
EdaPcbTraceSchema,
|
|
1268
|
+
EdaSheetSchema,
|
|
1269
|
+
EdaWireSchema,
|
|
1242
1270
|
EntityRefSchema,
|
|
1243
1271
|
ExecutionLinkSchema,
|
|
1244
1272
|
ExpiringAccessGrantSchema,
|
|
@@ -1551,6 +1579,7 @@ export {
|
|
|
1551
1579
|
ThemeTokenValidationError,
|
|
1552
1580
|
ThemeTokensSchema,
|
|
1553
1581
|
ToolType,
|
|
1582
|
+
Transform3DSchema,
|
|
1554
1583
|
TrendIngestRunSchema,
|
|
1555
1584
|
TrendMetricSnapshotSchema,
|
|
1556
1585
|
TrendRadarCollectionArtifactProjectionSchema,
|
|
@@ -1569,6 +1598,7 @@ export {
|
|
|
1569
1598
|
TrendSourceSchema,
|
|
1570
1599
|
ValidationIssueType,
|
|
1571
1600
|
ValidationReasonType,
|
|
1601
|
+
Vec3Schema,
|
|
1572
1602
|
ViewBlockDataSourceSchema,
|
|
1573
1603
|
ViewBlockSchema,
|
|
1574
1604
|
ViewLayoutRegionSchema,
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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L;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,9 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APPLICATION_HANDOFF_QUERY_PARAMETER,
|
|
3
3
|
BUILTIN_ARTIFACT_PROFILES,
|
|
4
|
+
CAD_ASSEMBLY_ARTIFACT_PROFILE,
|
|
4
5
|
DEFAULT_CONDUCTOR_OWNER_EMAIL,
|
|
5
6
|
DESIGN_BOARD_ARTIFACT_PROFILE,
|
|
7
|
+
DOCUMENT_ARTIFACT_PROFILE,
|
|
6
8
|
DeclarativeControlCompilationError,
|
|
9
|
+
EDA_CIRCUIT_ARTIFACT_PROFILE,
|
|
7
10
|
MenuCompilationError,
|
|
8
11
|
PageComponentDefinitionSchema,
|
|
9
12
|
PageCompositionSchema,
|
|
@@ -144,7 +147,7 @@ import {
|
|
|
144
147
|
validateDomainCommand,
|
|
145
148
|
validateWorkbenchRuntimeSet,
|
|
146
149
|
writePageDraftPath
|
|
147
|
-
} from "../chunk-
|
|
150
|
+
} from "../chunk-VYC47WKJ.mjs";
|
|
148
151
|
import "../chunk-HJNQDSLC.mjs";
|
|
149
152
|
import {
|
|
150
153
|
MONKEYS_REQUIRED_THEME_TOKEN_PATHS,
|
|
@@ -160,9 +163,12 @@ import "../chunk-3QS3WKRC.mjs";
|
|
|
160
163
|
export {
|
|
161
164
|
APPLICATION_HANDOFF_QUERY_PARAMETER,
|
|
162
165
|
BUILTIN_ARTIFACT_PROFILES,
|
|
166
|
+
CAD_ASSEMBLY_ARTIFACT_PROFILE,
|
|
163
167
|
DEFAULT_CONDUCTOR_OWNER_EMAIL,
|
|
164
168
|
DESIGN_BOARD_ARTIFACT_PROFILE,
|
|
169
|
+
DOCUMENT_ARTIFACT_PROFILE,
|
|
165
170
|
DeclarativeControlCompilationError,
|
|
171
|
+
EDA_CIRCUIT_ARTIFACT_PROFILE,
|
|
166
172
|
MONKEYS_REQUIRED_THEME_TOKEN_PATHS,
|
|
167
173
|
MenuCompilationError,
|
|
168
174
|
PageComponentDefinitionSchema,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
canonicalContractSchemas
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-C3X5SSRD.mjs";
|
|
4
4
|
import {
|
|
5
5
|
AgentRuntimeEventSchema,
|
|
6
6
|
AggregateAssetDeleteSchema,
|
|
@@ -18,6 +18,10 @@ import {
|
|
|
18
18
|
BodyRelationRecordSchema,
|
|
19
19
|
BrandBodySchema,
|
|
20
20
|
BrandGeneticsProfileSchema,
|
|
21
|
+
CadAnnotationPinSchema,
|
|
22
|
+
CadArtifactDocumentSchema,
|
|
23
|
+
CadConstraintSchema,
|
|
24
|
+
CadFeatureNodeSchema,
|
|
21
25
|
CompletionEventSchema,
|
|
22
26
|
CompletionHeaderSchema,
|
|
23
27
|
DataContinuityEnvelopeSchema,
|
|
@@ -26,6 +30,12 @@ import {
|
|
|
26
30
|
DeclarativeDocumentImportRequestSchema,
|
|
27
31
|
DeclarativeDocumentImportResultSchema,
|
|
28
32
|
DeclarativeImportDocumentSchema,
|
|
33
|
+
EdaCircuitDocumentSchema,
|
|
34
|
+
EdaComponentInstanceSchema,
|
|
35
|
+
EdaNetSchema,
|
|
36
|
+
EdaPcbTraceSchema,
|
|
37
|
+
EdaSheetSchema,
|
|
38
|
+
EdaWireSchema,
|
|
29
39
|
ExecutionLinkSchema,
|
|
30
40
|
ExpiringAccessGrantSchema,
|
|
31
41
|
HotwordBodySchema,
|
|
@@ -49,6 +59,7 @@ import {
|
|
|
49
59
|
RequestScopeSchema,
|
|
50
60
|
SavedRadarQuerySchema,
|
|
51
61
|
StorageLocatorSchema,
|
|
62
|
+
Transform3DSchema,
|
|
52
63
|
TrendIngestRunSchema,
|
|
53
64
|
TrendMetricSnapshotSchema,
|
|
54
65
|
TrendRadarCollectionArtifactProjectionSchema,
|
|
@@ -65,11 +76,12 @@ import {
|
|
|
65
76
|
TrendRadarCollectionSubjectRefSchema,
|
|
66
77
|
TrendSourceRecordSchema,
|
|
67
78
|
TrendSourceSchema,
|
|
79
|
+
Vec3Schema,
|
|
68
80
|
WorkflowCatalogEntrySchema,
|
|
69
81
|
WorkflowCompletionCommitSchema,
|
|
70
82
|
WorkflowCompletionReceiptSchema,
|
|
71
83
|
WorkflowPublicationSchema
|
|
72
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-5ZGNWCL4.mjs";
|
|
73
85
|
import {
|
|
74
86
|
AccessPolicySchema,
|
|
75
87
|
ActionBindingSchema,
|
|
@@ -467,6 +479,10 @@ export {
|
|
|
467
479
|
BodyRelationRecordSchema,
|
|
468
480
|
BrandBodySchema,
|
|
469
481
|
BrandGeneticsProfileSchema,
|
|
482
|
+
CadAnnotationPinSchema,
|
|
483
|
+
CadArtifactDocumentSchema,
|
|
484
|
+
CadConstraintSchema,
|
|
485
|
+
CadFeatureNodeSchema,
|
|
470
486
|
CapabilityInstanceSchema,
|
|
471
487
|
CapabilityManifestSchema,
|
|
472
488
|
CapabilityRegistryDocumentSchema,
|
|
@@ -539,6 +555,12 @@ export {
|
|
|
539
555
|
DomainEventSchema,
|
|
540
556
|
DomainQueryDataSourceSchema,
|
|
541
557
|
DomainQueryDefinitionSchema,
|
|
558
|
+
EdaCircuitDocumentSchema,
|
|
559
|
+
EdaComponentInstanceSchema,
|
|
560
|
+
EdaNetSchema,
|
|
561
|
+
EdaPcbTraceSchema,
|
|
562
|
+
EdaSheetSchema,
|
|
563
|
+
EdaWireSchema,
|
|
542
564
|
EntityRefSchema,
|
|
543
565
|
ExecutionLinkSchema,
|
|
544
566
|
ExpiringAccessGrantSchema,
|
|
@@ -711,6 +733,7 @@ export {
|
|
|
711
733
|
ThemeTokenSchema,
|
|
712
734
|
ThemeTokenTypeSchema,
|
|
713
735
|
ThemeTokensSchema,
|
|
736
|
+
Transform3DSchema,
|
|
714
737
|
TrendIngestRunSchema,
|
|
715
738
|
TrendMetricSnapshotSchema,
|
|
716
739
|
TrendRadarCollectionArtifactProjectionSchema,
|
|
@@ -727,6 +750,7 @@ export {
|
|
|
727
750
|
TrendRadarCollectionSubjectRefSchema,
|
|
728
751
|
TrendSourceRecordSchema,
|
|
729
752
|
TrendSourceSchema,
|
|
753
|
+
Vec3Schema,
|
|
730
754
|
ViewBlockDataSourceSchema,
|
|
731
755
|
ViewBlockSchema,
|
|
732
756
|
ViewLayoutRegionSchema,
|
|
@@ -46,6 +46,9 @@ export declare function compileViewSpecToRenderTree(specInput: ViewSpec, options
|
|
|
46
46
|
}): RenderTree;
|
|
47
47
|
export declare const DESIGN_BOARD_ARTIFACT_PROFILE: ArtifactProfile;
|
|
48
48
|
export declare const WORKFLOW_ARTIFACT_PROFILE: ArtifactProfile;
|
|
49
|
+
export declare const DOCUMENT_ARTIFACT_PROFILE: ArtifactProfile;
|
|
50
|
+
export declare const CAD_ASSEMBLY_ARTIFACT_PROFILE: ArtifactProfile;
|
|
51
|
+
export declare const EDA_CIRCUIT_ARTIFACT_PROFILE: ArtifactProfile;
|
|
49
52
|
export declare const BUILTIN_ARTIFACT_PROFILES: Readonly<Record<string, ArtifactProfile>>;
|
|
50
53
|
export declare function resolveBuiltinArtifactProfile(artifactKind: string): ArtifactProfile | undefined;
|
|
51
54
|
//# sourceMappingURL=artifact-session.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-session.d.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N_BOARD_ARTIFACT_PROFILE = exports.compileViewSpecToRenderTree = exports.buildArtifactCollabRoomId = void 0;
|
|
3
|
+
exports.resolveBuiltinArtifactProfile = exports.BUILTIN_ARTIFACT_PROFILES = exports.EDA_CIRCUIT_ARTIFACT_PROFILE = exports.CAD_ASSEMBLY_ARTIFACT_PROFILE = exports.DOCUMENT_ARTIFACT_PROFILE = exports.WORKFLOW_ARTIFACT_PROFILE = exports.DESIGN_BOARD_ARTIFACT_PROFILE = exports.compileViewSpecToRenderTree = exports.buildArtifactCollabRoomId = void 0;
|
|
4
4
|
const artifact_platform_1 = require("../contracts/artifact-platform");
|
|
5
5
|
const render_1 = require("../contracts/render");
|
|
6
6
|
function buildArtifactCollabRoomId(key) {
|
|
@@ -324,9 +324,215 @@ exports.WORKFLOW_ARTIFACT_PROFILE = artifact_platform_1.ArtifactProfileSchema.pa
|
|
|
324
324
|
},
|
|
325
325
|
],
|
|
326
326
|
});
|
|
327
|
+
exports.DOCUMENT_ARTIFACT_PROFILE = artifact_platform_1.ArtifactProfileSchema.parse({
|
|
328
|
+
contract: 'ArtifactProfile',
|
|
329
|
+
schemaVersion: 1,
|
|
330
|
+
artifactKind: 'document',
|
|
331
|
+
bodySchemaRef: 'markdown-document@1',
|
|
332
|
+
storageMode: 'loro-aggregate',
|
|
333
|
+
crdtCodec: 'loro-v1',
|
|
334
|
+
defaultViewId: 'document.editor',
|
|
335
|
+
views: [
|
|
336
|
+
{
|
|
337
|
+
contract: 'ViewSpec',
|
|
338
|
+
schemaVersion: 1,
|
|
339
|
+
viewId: 'document.editor',
|
|
340
|
+
title: { 'zh-CN': '文档视图', 'en-US': 'Document View' },
|
|
341
|
+
subject: { kind: 'artifact', ontologyId: 'documents', artifactKind: 'document', recordIdParam: 'documentId' },
|
|
342
|
+
query: { source: 'self' },
|
|
343
|
+
layout: { mode: 'single', regions: [{ id: 'main', slot: 'main' }] },
|
|
344
|
+
blocks: [
|
|
345
|
+
{
|
|
346
|
+
blockId: 'markdown',
|
|
347
|
+
capability: 'monkeys.design.markdown-document',
|
|
348
|
+
slot: 'main',
|
|
349
|
+
dataSource: { kind: 'artifact.body', session: 'loro' },
|
|
350
|
+
config: {},
|
|
351
|
+
},
|
|
352
|
+
],
|
|
353
|
+
wiring: [],
|
|
354
|
+
},
|
|
355
|
+
],
|
|
356
|
+
});
|
|
357
|
+
exports.CAD_ASSEMBLY_ARTIFACT_PROFILE = artifact_platform_1.ArtifactProfileSchema.parse({
|
|
358
|
+
contract: 'ArtifactProfile',
|
|
359
|
+
schemaVersion: 1,
|
|
360
|
+
artifactKind: 'cad.assembly',
|
|
361
|
+
bodySchemaRef: 'cad-artifact-document@1',
|
|
362
|
+
storageMode: 'loro-aggregate',
|
|
363
|
+
crdtCodec: 'loro-v1',
|
|
364
|
+
defaultViewId: 'cad.viewport3d',
|
|
365
|
+
views: [
|
|
366
|
+
{
|
|
367
|
+
contract: 'ViewSpec',
|
|
368
|
+
schemaVersion: 1,
|
|
369
|
+
viewId: 'cad.viewport3d',
|
|
370
|
+
title: { 'zh-CN': '3D 建模视图', 'en-US': '3D Modeling View' },
|
|
371
|
+
subject: { kind: 'artifact', ontologyId: 'cad-assemblies', artifactKind: 'cad.assembly', recordIdParam: 'artifactId' },
|
|
372
|
+
query: { source: 'self' },
|
|
373
|
+
layout: {
|
|
374
|
+
mode: 'three-pane',
|
|
375
|
+
regions: [
|
|
376
|
+
{ id: 'tree', slot: 'left', size: 280, collapsible: true },
|
|
377
|
+
{ id: 'viewport', slot: 'main' },
|
|
378
|
+
{ id: 'inspector', slot: 'right', size: 320, collapsible: true },
|
|
379
|
+
],
|
|
380
|
+
},
|
|
381
|
+
blocks: [
|
|
382
|
+
{
|
|
383
|
+
blockId: 'feature-tree',
|
|
384
|
+
capability: 'studio.capability.cad.feature-tree',
|
|
385
|
+
slot: 'left',
|
|
386
|
+
dataSource: { kind: 'artifact.body', session: 'loro', slice: 'features' },
|
|
387
|
+
config: {},
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
blockId: 'viewport-3d',
|
|
391
|
+
capability: 'studio.capability.cad.viewport-3d',
|
|
392
|
+
slot: 'main',
|
|
393
|
+
dataSource: { kind: 'artifact.body', session: 'loro' },
|
|
394
|
+
config: {},
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
blockId: 'inspector',
|
|
398
|
+
capability: 'monkeys.design.record-detail',
|
|
399
|
+
slot: 'right',
|
|
400
|
+
dataSource: { kind: 'record.fields', recordRef: '$state.selectedNodeId' },
|
|
401
|
+
config: {},
|
|
402
|
+
},
|
|
403
|
+
],
|
|
404
|
+
wiring: [
|
|
405
|
+
{
|
|
406
|
+
sourceBlockId: 'feature-tree',
|
|
407
|
+
event: 'node.selected',
|
|
408
|
+
targetBlockId: 'viewport-3d',
|
|
409
|
+
action: 'viewport.highlightNode',
|
|
410
|
+
},
|
|
411
|
+
],
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
contract: 'ViewSpec',
|
|
415
|
+
schemaVersion: 1,
|
|
416
|
+
viewId: 'cad.bom',
|
|
417
|
+
title: { 'zh-CN': 'BOM 视图', 'en-US': 'BOM View' },
|
|
418
|
+
subject: { kind: 'artifact', ontologyId: 'cad-assemblies', artifactKind: 'cad.assembly', recordIdParam: 'artifactId' },
|
|
419
|
+
query: { source: 'relation', relationPath: 'parts' },
|
|
420
|
+
layout: { mode: 'single', regions: [{ id: 'main', slot: 'main' }] },
|
|
421
|
+
blocks: [
|
|
422
|
+
{
|
|
423
|
+
blockId: 'bom-table',
|
|
424
|
+
capability: 'monkeys.design.ontology-table',
|
|
425
|
+
slot: 'main',
|
|
426
|
+
dataSource: { kind: 'collection.query', queryRef: 'view.query', relationPath: 'parts', mode: 'read-write' },
|
|
427
|
+
config: {},
|
|
428
|
+
},
|
|
429
|
+
],
|
|
430
|
+
wiring: [],
|
|
431
|
+
},
|
|
432
|
+
],
|
|
433
|
+
});
|
|
434
|
+
exports.EDA_CIRCUIT_ARTIFACT_PROFILE = artifact_platform_1.ArtifactProfileSchema.parse({
|
|
435
|
+
contract: 'ArtifactProfile',
|
|
436
|
+
schemaVersion: 1,
|
|
437
|
+
artifactKind: 'eda.circuit',
|
|
438
|
+
bodySchemaRef: 'eda-circuit-document@1',
|
|
439
|
+
storageMode: 'loro-aggregate',
|
|
440
|
+
crdtCodec: 'loro-v1',
|
|
441
|
+
defaultViewId: 'eda.schematic',
|
|
442
|
+
views: [
|
|
443
|
+
{
|
|
444
|
+
contract: 'ViewSpec',
|
|
445
|
+
schemaVersion: 1,
|
|
446
|
+
viewId: 'eda.schematic',
|
|
447
|
+
title: { 'zh-CN': '原理图视图', 'en-US': 'Schematic View' },
|
|
448
|
+
subject: { kind: 'artifact', ontologyId: 'eda-circuits', artifactKind: 'eda.circuit', recordIdParam: 'artifactId' },
|
|
449
|
+
query: { source: 'self' },
|
|
450
|
+
layout: {
|
|
451
|
+
mode: 'three-pane',
|
|
452
|
+
regions: [
|
|
453
|
+
{ id: 'library', slot: 'left', size: 280, collapsible: true },
|
|
454
|
+
{ id: 'schematic', slot: 'main' },
|
|
455
|
+
{ id: 'inspector', slot: 'right', size: 320, collapsible: true },
|
|
456
|
+
],
|
|
457
|
+
},
|
|
458
|
+
blocks: [
|
|
459
|
+
{
|
|
460
|
+
blockId: 'component-library',
|
|
461
|
+
capability: 'monkeys.design.ontology-table',
|
|
462
|
+
slot: 'left',
|
|
463
|
+
dataSource: { kind: 'collection.query', queryRef: 'global.electronic-components', mode: 'read' },
|
|
464
|
+
config: {},
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
blockId: 'schematic-canvas',
|
|
468
|
+
capability: 'studio.capability.eda.schematic-editor',
|
|
469
|
+
slot: 'main',
|
|
470
|
+
dataSource: { kind: 'artifact.body', session: 'loro', slice: 'schematic' },
|
|
471
|
+
config: {},
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
blockId: 'inspector',
|
|
475
|
+
capability: 'monkeys.design.record-detail',
|
|
476
|
+
slot: 'right',
|
|
477
|
+
dataSource: { kind: 'record.fields', recordRef: '$state.selectedComponentId' },
|
|
478
|
+
config: {},
|
|
479
|
+
},
|
|
480
|
+
],
|
|
481
|
+
wiring: [
|
|
482
|
+
{
|
|
483
|
+
sourceBlockId: 'schematic-canvas',
|
|
484
|
+
event: 'component.selected',
|
|
485
|
+
targetStateKey: 'selectedComponentId',
|
|
486
|
+
action: 'state.set',
|
|
487
|
+
},
|
|
488
|
+
],
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
contract: 'ViewSpec',
|
|
492
|
+
schemaVersion: 1,
|
|
493
|
+
viewId: 'eda.pcb',
|
|
494
|
+
title: { 'zh-CN': 'PCB 视图', 'en-US': 'PCB Layout View' },
|
|
495
|
+
subject: { kind: 'artifact', ontologyId: 'eda-circuits', artifactKind: 'eda.circuit', recordIdParam: 'artifactId' },
|
|
496
|
+
query: { source: 'self' },
|
|
497
|
+
layout: { mode: 'single', regions: [{ id: 'main', slot: 'main' }] },
|
|
498
|
+
blocks: [
|
|
499
|
+
{
|
|
500
|
+
blockId: 'pcb-canvas',
|
|
501
|
+
capability: 'studio.capability.eda.pcb-editor',
|
|
502
|
+
slot: 'main',
|
|
503
|
+
dataSource: { kind: 'artifact.body', session: 'loro', slice: 'pcb' },
|
|
504
|
+
config: {},
|
|
505
|
+
},
|
|
506
|
+
],
|
|
507
|
+
wiring: [],
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
contract: 'ViewSpec',
|
|
511
|
+
schemaVersion: 1,
|
|
512
|
+
viewId: 'eda.bom',
|
|
513
|
+
title: { 'zh-CN': 'BOM / 网表视图', 'en-US': 'BOM & Netlist View' },
|
|
514
|
+
subject: { kind: 'artifact', ontologyId: 'eda-circuits', artifactKind: 'eda.circuit', recordIdParam: 'artifactId' },
|
|
515
|
+
query: { source: 'relation', relationPath: 'bom_items' },
|
|
516
|
+
layout: { mode: 'single', regions: [{ id: 'main', slot: 'main' }] },
|
|
517
|
+
blocks: [
|
|
518
|
+
{
|
|
519
|
+
blockId: 'bom-table',
|
|
520
|
+
capability: 'monkeys.design.ontology-table',
|
|
521
|
+
slot: 'main',
|
|
522
|
+
dataSource: { kind: 'collection.query', queryRef: 'view.query', relationPath: 'bom_items', mode: 'read-write' },
|
|
523
|
+
config: {},
|
|
524
|
+
},
|
|
525
|
+
],
|
|
526
|
+
wiring: [],
|
|
527
|
+
},
|
|
528
|
+
],
|
|
529
|
+
});
|
|
327
530
|
exports.BUILTIN_ARTIFACT_PROFILES = Object.freeze({
|
|
328
531
|
board: exports.DESIGN_BOARD_ARTIFACT_PROFILE,
|
|
329
532
|
workflow: exports.WORKFLOW_ARTIFACT_PROFILE,
|
|
533
|
+
document: exports.DOCUMENT_ARTIFACT_PROFILE,
|
|
534
|
+
'cad.assembly': exports.CAD_ASSEMBLY_ARTIFACT_PROFILE,
|
|
535
|
+
'eda.circuit': exports.EDA_CIRCUIT_ARTIFACT_PROFILE,
|
|
330
536
|
});
|
|
331
537
|
function resolveBuiltinArtifactProfile(artifactKind) {
|
|
332
538
|
return exports.BUILTIN_ARTIFACT_PROFILES[artifactKind];
|