@inf-monkeys-tech/monkeys 1.1.56 → 1.1.58
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 +0 -2
- package/lib/contracts/artifact-platform.d.ts.map +1 -1
- package/lib/contracts/artifact-platform.js +1 -11
- package/lib/contracts/artifact-platform.js.map +1 -1
- package/lib/contracts/declarative-control-http.d.ts +47 -47
- package/lib/contracts/declarative-control.d.ts +3 -3
- package/lib/contracts/declarative-diagnostic.d.ts +2 -2
- package/lib/contracts/declarative-document-import.d.ts +2 -2
- package/lib/contracts/declarative-publication-job.d.ts +19 -19
- package/lib/contracts/declarative-publication-verification.d.ts +1 -1
- package/lib/esm/{chunk-Y7EZZ6IW.mjs → chunk-4D4UQIFA.mjs} +2 -2
- package/lib/esm/{chunk-4LC3ZXUP.mjs → chunk-JLTNBOQY.mjs} +3 -3
- package/lib/esm/{chunk-HJNQDSLC.mjs → chunk-MQOSI237.mjs} +2 -2
- package/lib/esm/{chunk-DQJODDRF.mjs → chunk-SK5C7NUN.mjs} +2 -2
- package/lib/esm/{chunk-74H5I3XN.mjs → chunk-SMJPC7BB.mjs} +34 -235
- package/lib/esm/chunk-SMJPC7BB.mjs.map +1 -0
- package/lib/esm/{chunk-FIZWECL6.mjs → chunk-WWNBSU45.mjs} +1 -12
- package/lib/esm/chunk-WWNBSU45.mjs.map +1 -0
- package/lib/esm/contracts/index.mjs +4 -6
- package/lib/esm/index.mjs +8 -16
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +5 -11
- package/lib/esm/schemas/index.mjs +3 -3
- package/lib/runtime/artifact-session.d.ts +19 -4
- package/lib/runtime/artifact-session.d.ts.map +1 -1
- package/lib/runtime/artifact-session.js +38 -230
- package/lib/runtime/artifact-session.js.map +1 -1
- package/lib/runtime/runtime-definition-wire.d.ts +6 -6
- package/lib/schemas/index.d.ts +4 -4
- package/package.json +2 -2
- package/lib/esm/chunk-74H5I3XN.mjs.map +0 -1
- package/lib/esm/chunk-FIZWECL6.mjs.map +0 -1
- /package/lib/esm/{chunk-Y7EZZ6IW.mjs.map → chunk-4D4UQIFA.mjs.map} +0 -0
- /package/lib/esm/{chunk-4LC3ZXUP.mjs.map → chunk-JLTNBOQY.mjs.map} +0 -0
- /package/lib/esm/{chunk-HJNQDSLC.mjs.map → chunk-MQOSI237.mjs.map} +0 -0
- /package/lib/esm/{chunk-DQJODDRF.mjs.map → chunk-SK5C7NUN.mjs.map} +0 -0
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
RuntimeProgramLoadRequestSchema,
|
|
73
73
|
RuntimeProgramLoadResultSchema,
|
|
74
74
|
platformNotificationRoutes
|
|
75
|
-
} from "../chunk-
|
|
75
|
+
} from "../chunk-SK5C7NUN.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-4D4UQIFA.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-MQOSI237.mjs";
|
|
170
170
|
import {
|
|
171
171
|
ACTION_PROGRAM_ABI,
|
|
172
172
|
AGENT_MODE_CAPABILITIES,
|
|
@@ -247,7 +247,6 @@ import {
|
|
|
247
247
|
ArtifactPresenceStateSchema,
|
|
248
248
|
ArtifactProfileSchema,
|
|
249
249
|
ArtifactStorageModeSchema,
|
|
250
|
-
BUILTIN_ARTIFACT_KINDS,
|
|
251
250
|
BindingSourceSchema,
|
|
252
251
|
CURRENT_USER_MENU_ACTION_REFS,
|
|
253
252
|
CURRENT_USER_MENU_CONTROL_REFS,
|
|
@@ -710,7 +709,7 @@ import {
|
|
|
710
709
|
resolveAgentSessionCommandTransition,
|
|
711
710
|
resolveAgentWorkbenchSidebarConfig,
|
|
712
711
|
visitPageExpression
|
|
713
|
-
} from "../chunk-
|
|
712
|
+
} from "../chunk-WWNBSU45.mjs";
|
|
714
713
|
import "../chunk-3QS3WKRC.mjs";
|
|
715
714
|
export {
|
|
716
715
|
ACTION_PROGRAM_ABI,
|
|
@@ -844,7 +843,6 @@ export {
|
|
|
844
843
|
ArtifactProfileSchema,
|
|
845
844
|
ArtifactStorageModeSchema,
|
|
846
845
|
AuthorityScopeSchema,
|
|
847
|
-
BUILTIN_ARTIFACT_KINDS,
|
|
848
846
|
BindingSourceSchema,
|
|
849
847
|
BodyRelationRecordSchema,
|
|
850
848
|
BrandBodySchema,
|
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-SK5C7NUN.mjs";
|
|
76
76
|
import {
|
|
77
77
|
canonicalContractSchemas
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-JLTNBOQY.mjs";
|
|
79
79
|
import {
|
|
80
80
|
ActorRefSchema,
|
|
81
81
|
AgentRuntimeEventSchema,
|
|
@@ -155,12 +155,10 @@ import {
|
|
|
155
155
|
WorkflowCompletionCommitSchema,
|
|
156
156
|
WorkflowCompletionReceiptSchema,
|
|
157
157
|
WorkflowPublicationSchema
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-4D4UQIFA.mjs";
|
|
159
159
|
import {
|
|
160
160
|
APPLICATION_HANDOFF_QUERY_PARAMETER,
|
|
161
|
-
BUILTIN_ARTIFACT_PROFILES,
|
|
162
161
|
DEFAULT_CONDUCTOR_OWNER_EMAIL,
|
|
163
|
-
DESIGN_BOARD_ARTIFACT_PROFILE,
|
|
164
162
|
DeclarativeControlCompilationError,
|
|
165
163
|
MenuCompilationError,
|
|
166
164
|
PageComponentDefinitionSchema,
|
|
@@ -169,7 +167,6 @@ import {
|
|
|
169
167
|
RUNTIME_DEFINITION_FORMAT,
|
|
170
168
|
RUNTIME_DEFINITION_FORMAT_HEADER,
|
|
171
169
|
RuntimeDefinitionResponseSchema,
|
|
172
|
-
WORKFLOW_ARTIFACT_PROFILE,
|
|
173
170
|
acceptsPreviousSchema,
|
|
174
171
|
accessPolicyChainImplies,
|
|
175
172
|
applyDesignBoardChanges,
|
|
@@ -222,6 +219,7 @@ import {
|
|
|
222
219
|
compileWorkflowPersistenceProjection,
|
|
223
220
|
compiledRouteClaimsOverlap,
|
|
224
221
|
createAgentSessionEventProjection,
|
|
222
|
+
createArtifactRegistry,
|
|
225
223
|
createCapabilityRegistrySource,
|
|
226
224
|
createOpenApiCapabilityRegistrySource,
|
|
227
225
|
createPageParameterValidator,
|
|
@@ -280,7 +278,6 @@ import {
|
|
|
280
278
|
recordEditorDraftIsDirty,
|
|
281
279
|
recordEditorPathKey,
|
|
282
280
|
recordEditorValuesEqual,
|
|
283
|
-
resolveBuiltinArtifactProfile,
|
|
284
281
|
resolveFileResourceReference,
|
|
285
282
|
resolveMenuActivationId,
|
|
286
283
|
resolvePage,
|
|
@@ -302,7 +299,7 @@ import {
|
|
|
302
299
|
validateDomainCommand,
|
|
303
300
|
validateWorkbenchRuntimeSet,
|
|
304
301
|
writePageDraftPath
|
|
305
|
-
} from "./chunk-
|
|
302
|
+
} from "./chunk-SMJPC7BB.mjs";
|
|
306
303
|
import {
|
|
307
304
|
PAGE_STREAM_MAX_BUFFER_BYTES,
|
|
308
305
|
PAGE_STREAM_MAX_BUFFER_EVENTS,
|
|
@@ -316,7 +313,7 @@ import {
|
|
|
316
313
|
PageStreamDescriptorSchema,
|
|
317
314
|
PageStreamEventSchema,
|
|
318
315
|
pageStreamRoutes
|
|
319
|
-
} from "./chunk-
|
|
316
|
+
} from "./chunk-MQOSI237.mjs";
|
|
320
317
|
import {
|
|
321
318
|
ACTION_PROGRAM_ABI,
|
|
322
319
|
AGENT_MODE_CAPABILITIES,
|
|
@@ -397,7 +394,6 @@ import {
|
|
|
397
394
|
ArtifactPresenceStateSchema,
|
|
398
395
|
ArtifactProfileSchema,
|
|
399
396
|
ArtifactStorageModeSchema,
|
|
400
|
-
BUILTIN_ARTIFACT_KINDS,
|
|
401
397
|
BindingSourceSchema,
|
|
402
398
|
CURRENT_USER_MENU_ACTION_REFS,
|
|
403
399
|
CURRENT_USER_MENU_CONTROL_REFS,
|
|
@@ -868,7 +864,7 @@ import {
|
|
|
868
864
|
validateThemeTokensDocument,
|
|
869
865
|
validateThemeTokensDocumentStructure,
|
|
870
866
|
visitPageExpression
|
|
871
|
-
} from "./chunk-
|
|
867
|
+
} from "./chunk-WWNBSU45.mjs";
|
|
872
868
|
import "./chunk-3QS3WKRC.mjs";
|
|
873
869
|
|
|
874
870
|
// src/types/tool.ts
|
|
@@ -1040,8 +1036,6 @@ export {
|
|
|
1040
1036
|
ArtifactProfileSchema,
|
|
1041
1037
|
ArtifactStorageModeSchema,
|
|
1042
1038
|
AuthorityScopeSchema,
|
|
1043
|
-
BUILTIN_ARTIFACT_KINDS,
|
|
1044
|
-
BUILTIN_ARTIFACT_PROFILES,
|
|
1045
1039
|
BindingSourceSchema,
|
|
1046
1040
|
BodyRelationRecordSchema,
|
|
1047
1041
|
BrandBodySchema,
|
|
@@ -1111,7 +1105,6 @@ export {
|
|
|
1111
1105
|
DEFAULT_ACTION_PROGRAM_BUDGETS,
|
|
1112
1106
|
DEFAULT_AGENT_WORKBENCH_SIDEBAR_SECTIONS,
|
|
1113
1107
|
DEFAULT_CONDUCTOR_OWNER_EMAIL,
|
|
1114
|
-
DESIGN_BOARD_ARTIFACT_PROFILE,
|
|
1115
1108
|
DataContinuityEnvelopeSchema,
|
|
1116
1109
|
DeclarationGraphEdgeSchema,
|
|
1117
1110
|
DeclarativeAudienceSimulationSchema,
|
|
@@ -1579,7 +1572,6 @@ export {
|
|
|
1579
1572
|
ViewSpecSchema,
|
|
1580
1573
|
ViewSubjectSchema,
|
|
1581
1574
|
ViewWiringRuleSchema,
|
|
1582
|
-
WORKFLOW_ARTIFACT_PROFILE,
|
|
1583
1575
|
WorkbenchAppInstanceSchema,
|
|
1584
1576
|
WorkbenchGroupSchema,
|
|
1585
1577
|
WorkbenchIdentitySchema,
|
|
@@ -1673,6 +1665,7 @@ export {
|
|
|
1673
1665
|
compileWorkflowPersistenceProjection,
|
|
1674
1666
|
compiledRouteClaimsOverlap,
|
|
1675
1667
|
createAgentSessionEventProjection,
|
|
1668
|
+
createArtifactRegistry,
|
|
1676
1669
|
createCapabilityRegistrySource,
|
|
1677
1670
|
createOpenApiCapabilityRegistrySource,
|
|
1678
1671
|
createPageParameterValidator,
|
|
@@ -1746,7 +1739,6 @@ export {
|
|
|
1746
1739
|
recordEditorValuesEqual,
|
|
1747
1740
|
resolveAgentSessionCommandTransition,
|
|
1748
1741
|
resolveAgentWorkbenchSidebarConfig,
|
|
1749
|
-
resolveBuiltinArtifactProfile,
|
|
1750
1742
|
resolveFileResourceReference,
|
|
1751
1743
|
resolveMenuActivationId,
|
|
1752
1744
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAA,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,8 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APPLICATION_HANDOFF_QUERY_PARAMETER,
|
|
3
|
-
BUILTIN_ARTIFACT_PROFILES,
|
|
4
3
|
DEFAULT_CONDUCTOR_OWNER_EMAIL,
|
|
5
|
-
DESIGN_BOARD_ARTIFACT_PROFILE,
|
|
6
4
|
DeclarativeControlCompilationError,
|
|
7
5
|
MenuCompilationError,
|
|
8
6
|
PageComponentDefinitionSchema,
|
|
@@ -11,7 +9,6 @@ import {
|
|
|
11
9
|
RUNTIME_DEFINITION_FORMAT,
|
|
12
10
|
RUNTIME_DEFINITION_FORMAT_HEADER,
|
|
13
11
|
RuntimeDefinitionResponseSchema,
|
|
14
|
-
WORKFLOW_ARTIFACT_PROFILE,
|
|
15
12
|
acceptsPreviousSchema,
|
|
16
13
|
accessPolicyChainImplies,
|
|
17
14
|
applyDesignBoardChanges,
|
|
@@ -64,6 +61,7 @@ import {
|
|
|
64
61
|
compileWorkflowPersistenceProjection,
|
|
65
62
|
compiledRouteClaimsOverlap,
|
|
66
63
|
createAgentSessionEventProjection,
|
|
64
|
+
createArtifactRegistry,
|
|
67
65
|
createCapabilityRegistrySource,
|
|
68
66
|
createOpenApiCapabilityRegistrySource,
|
|
69
67
|
createPageParameterValidator,
|
|
@@ -122,7 +120,6 @@ import {
|
|
|
122
120
|
recordEditorDraftIsDirty,
|
|
123
121
|
recordEditorPathKey,
|
|
124
122
|
recordEditorValuesEqual,
|
|
125
|
-
resolveBuiltinArtifactProfile,
|
|
126
123
|
resolveFileResourceReference,
|
|
127
124
|
resolveMenuActivationId,
|
|
128
125
|
resolvePage,
|
|
@@ -144,8 +141,8 @@ import {
|
|
|
144
141
|
validateDomainCommand,
|
|
145
142
|
validateWorkbenchRuntimeSet,
|
|
146
143
|
writePageDraftPath
|
|
147
|
-
} from "../chunk-
|
|
148
|
-
import "../chunk-
|
|
144
|
+
} from "../chunk-SMJPC7BB.mjs";
|
|
145
|
+
import "../chunk-MQOSI237.mjs";
|
|
149
146
|
import {
|
|
150
147
|
MONKEYS_REQUIRED_THEME_TOKEN_PATHS,
|
|
151
148
|
ThemeTokenValidationError,
|
|
@@ -155,13 +152,11 @@ import {
|
|
|
155
152
|
resolveThemeTokens,
|
|
156
153
|
validateThemeTokensDocument,
|
|
157
154
|
validateThemeTokensDocumentStructure
|
|
158
|
-
} from "../chunk-
|
|
155
|
+
} from "../chunk-WWNBSU45.mjs";
|
|
159
156
|
import "../chunk-3QS3WKRC.mjs";
|
|
160
157
|
export {
|
|
161
158
|
APPLICATION_HANDOFF_QUERY_PARAMETER,
|
|
162
|
-
BUILTIN_ARTIFACT_PROFILES,
|
|
163
159
|
DEFAULT_CONDUCTOR_OWNER_EMAIL,
|
|
164
|
-
DESIGN_BOARD_ARTIFACT_PROFILE,
|
|
165
160
|
DeclarativeControlCompilationError,
|
|
166
161
|
MONKEYS_REQUIRED_THEME_TOKEN_PATHS,
|
|
167
162
|
MenuCompilationError,
|
|
@@ -172,7 +167,6 @@ export {
|
|
|
172
167
|
RUNTIME_DEFINITION_FORMAT_HEADER,
|
|
173
168
|
RuntimeDefinitionResponseSchema,
|
|
174
169
|
ThemeTokenValidationError,
|
|
175
|
-
WORKFLOW_ARTIFACT_PROFILE,
|
|
176
170
|
acceptsPreviousSchema,
|
|
177
171
|
accessPolicyChainImplies,
|
|
178
172
|
applyDesignBoardChanges,
|
|
@@ -227,6 +221,7 @@ export {
|
|
|
227
221
|
compileWorkflowPersistenceProjection,
|
|
228
222
|
compiledRouteClaimsOverlap,
|
|
229
223
|
createAgentSessionEventProjection,
|
|
224
|
+
createArtifactRegistry,
|
|
230
225
|
createCapabilityRegistrySource,
|
|
231
226
|
createOpenApiCapabilityRegistrySource,
|
|
232
227
|
createPageParameterValidator,
|
|
@@ -286,7 +281,6 @@ export {
|
|
|
286
281
|
recordEditorDraftIsDirty,
|
|
287
282
|
recordEditorPathKey,
|
|
288
283
|
recordEditorValuesEqual,
|
|
289
|
-
resolveBuiltinArtifactProfile,
|
|
290
284
|
resolveFileResourceReference,
|
|
291
285
|
resolveMenuActivationId,
|
|
292
286
|
resolvePage,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
canonicalContractSchemas
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-JLTNBOQY.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-4D4UQIFA.mjs";
|
|
73
73
|
import {
|
|
74
74
|
AccessPolicySchema,
|
|
75
75
|
ActionBindingSchema,
|
|
@@ -380,7 +380,7 @@ import {
|
|
|
380
380
|
WorkflowParameterTypeSchema,
|
|
381
381
|
WorkflowTriggerSchema,
|
|
382
382
|
WorkflowValidationIssueSchema
|
|
383
|
-
} from "../chunk-
|
|
383
|
+
} from "../chunk-WWNBSU45.mjs";
|
|
384
384
|
import "../chunk-3QS3WKRC.mjs";
|
|
385
385
|
export {
|
|
386
386
|
AccessPolicySchema,
|
|
@@ -44,8 +44,23 @@ export declare function compileViewSpecToRenderTree(specInput: ViewSpec, options
|
|
|
44
44
|
product?: 'studio' | 'kernel';
|
|
45
45
|
ownerRepo?: string;
|
|
46
46
|
}): RenderTree;
|
|
47
|
-
export
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
export interface ArtifactRegistry {
|
|
48
|
+
registerProfile(profile: ArtifactProfile, options?: {
|
|
49
|
+
replace?: boolean;
|
|
50
|
+
}): ArtifactProfile;
|
|
51
|
+
unregisterProfile(artifactKind: string): boolean;
|
|
52
|
+
getProfile(artifactKind: string): ArtifactProfile | undefined;
|
|
53
|
+
listProfiles(): readonly ArtifactProfile[];
|
|
54
|
+
resolveView(artifactKind: string, viewId?: string): ViewSpec | undefined;
|
|
55
|
+
compileView(artifactKind: string, viewId?: string, options?: {
|
|
56
|
+
product?: 'studio' | 'kernel';
|
|
57
|
+
ownerRepo?: string;
|
|
58
|
+
}): RenderTree | undefined;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Domain-agnostic runtime registry for ArtifactProfiles.
|
|
62
|
+
* Vertical domains (board, workflow, CAD, EDA, plugins) register their profiles
|
|
63
|
+
* dynamically without modifying the core platform SDK.
|
|
64
|
+
*/
|
|
65
|
+
export declare function createArtifactRegistry(initialProfiles?: readonly ArtifactProfile[]): ArtifactRegistry;
|
|
51
66
|
//# sourceMappingURL=artifact-session.d.ts.map
|
|
@@ -1 +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,G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AAQ,EACnB,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GAClE,UAAU,CA8FZ;AAED,MAAM,WAAW,gBAAgB;IAC/B,eAAe,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,eAAe,CAAC;IAC5F,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC;IACjD,UAAU,CAAC,YAAY,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAAC;IAC9D,YAAY,IAAI,SAAS,eAAe,EAAE,CAAC;IAC3C,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IACzE,WAAW,CACT,YAAY,EAAE,MAAM,EACpB,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,GAC9D,UAAU,GAAG,SAAS,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,eAAe,GAAE,SAAS,eAAe,EAAO,GAAG,gBAAgB,CAwCzG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createArtifactRegistry = 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) {
|
|
@@ -101,235 +101,43 @@ function compileViewSpecToRenderTree(specInput, options = {}) {
|
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
exports.compileViewSpecToRenderTree = compileViewSpecToRenderTree;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
{
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
schemaVersion: 1,
|
|
140
|
-
viewId: 'board.linesheet',
|
|
141
|
-
title: { 'zh-CN': 'Linesheet 视图', 'en-US': 'Linesheet View' },
|
|
142
|
-
subject: {
|
|
143
|
-
kind: 'artifact',
|
|
144
|
-
ontologyId: 'DesignProjects',
|
|
145
|
-
artifactKind: 'board',
|
|
146
|
-
recordIdParam: 'designBoardId',
|
|
147
|
-
},
|
|
148
|
-
query: { source: 'relation', relationPath: 'linesheet_items' },
|
|
149
|
-
layout: { mode: 'single', regions: [{ id: 'main', slot: 'main' }] },
|
|
150
|
-
blocks: [
|
|
151
|
-
{
|
|
152
|
-
blockId: 'linesheet',
|
|
153
|
-
capability: 'studio.capability.workflow-page.linesheet',
|
|
154
|
-
slot: 'main',
|
|
155
|
-
dataSource: { kind: 'artifact.body', session: 'loro', slice: 'linesheet' },
|
|
156
|
-
config: {},
|
|
157
|
-
},
|
|
158
|
-
],
|
|
159
|
-
wiring: [],
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
contract: 'ViewSpec',
|
|
163
|
-
schemaVersion: 1,
|
|
164
|
-
viewId: 'board.properties',
|
|
165
|
-
title: { 'zh-CN': '属性与版本', 'en-US': 'Properties & History' },
|
|
166
|
-
subject: {
|
|
167
|
-
kind: 'artifact',
|
|
168
|
-
ontologyId: 'DesignProjects',
|
|
169
|
-
artifactKind: 'board',
|
|
170
|
-
recordIdParam: 'designBoardId',
|
|
171
|
-
},
|
|
172
|
-
query: { source: 'self' },
|
|
173
|
-
layout: {
|
|
174
|
-
mode: 'split-horizontal',
|
|
175
|
-
regions: [
|
|
176
|
-
{ id: 'properties', slot: 'left', size: '50%' },
|
|
177
|
-
{ id: 'history', slot: 'right', size: '50%' },
|
|
178
|
-
],
|
|
179
|
-
},
|
|
180
|
-
blocks: [
|
|
181
|
-
{
|
|
182
|
-
blockId: 'properties',
|
|
183
|
-
capability: 'monkeys.design.record-detail',
|
|
184
|
-
slot: 'left',
|
|
185
|
-
dataSource: { kind: 'record.fields', recordRef: 'subject' },
|
|
186
|
-
config: {},
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
blockId: 'history',
|
|
190
|
-
capability: 'monkeys.design.record-history',
|
|
191
|
-
slot: 'right',
|
|
192
|
-
dataSource: { kind: 'record.fields', recordRef: 'subject' },
|
|
193
|
-
config: {},
|
|
194
|
-
},
|
|
195
|
-
],
|
|
196
|
-
wiring: [],
|
|
197
|
-
},
|
|
198
|
-
],
|
|
199
|
-
});
|
|
200
|
-
exports.WORKFLOW_ARTIFACT_PROFILE = artifact_platform_1.ArtifactProfileSchema.parse({
|
|
201
|
-
contract: 'ArtifactProfile',
|
|
202
|
-
schemaVersion: 1,
|
|
203
|
-
artifactKind: 'workflow',
|
|
204
|
-
bodySchemaRef: 'workflow-definition@1',
|
|
205
|
-
storageMode: 'loro-aggregate',
|
|
206
|
-
crdtCodec: 'loro-v1',
|
|
207
|
-
defaultViewId: 'workflow.process',
|
|
208
|
-
views: [
|
|
209
|
-
{
|
|
210
|
-
contract: 'ViewSpec',
|
|
211
|
-
schemaVersion: 1,
|
|
212
|
-
viewId: 'workflow.process',
|
|
213
|
-
title: { 'zh-CN': '流程视图', 'en-US': 'Process View' },
|
|
214
|
-
subject: {
|
|
215
|
-
kind: 'artifact',
|
|
216
|
-
ontologyId: 'workflow-definitions',
|
|
217
|
-
artifactKind: 'workflow',
|
|
218
|
-
recordIdParam: 'workflowId',
|
|
219
|
-
},
|
|
220
|
-
query: { source: 'self' },
|
|
221
|
-
layout: { mode: 'single', regions: [{ id: 'main', slot: 'main' }] },
|
|
222
|
-
blocks: [
|
|
223
|
-
{
|
|
224
|
-
blockId: 'flow-dag',
|
|
225
|
-
capability: 'studio.capability.workflow-page.process',
|
|
226
|
-
slot: 'main',
|
|
227
|
-
dataSource: { kind: 'artifact.body', session: 'loro' },
|
|
228
|
-
config: {},
|
|
229
|
-
},
|
|
230
|
-
],
|
|
231
|
-
wiring: [],
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
contract: 'ViewSpec',
|
|
235
|
-
schemaVersion: 1,
|
|
236
|
-
viewId: 'workflow.preview',
|
|
237
|
-
title: { 'zh-CN': '表单视图', 'en-US': 'Form View' },
|
|
238
|
-
subject: {
|
|
239
|
-
kind: 'artifact',
|
|
240
|
-
ontologyId: 'workflow-definitions',
|
|
241
|
-
artifactKind: 'workflow',
|
|
242
|
-
recordIdParam: 'workflowId',
|
|
243
|
-
},
|
|
244
|
-
query: { source: 'relation', relationPath: 'runs' },
|
|
245
|
-
layout: {
|
|
246
|
-
mode: 'split-horizontal',
|
|
247
|
-
regions: [
|
|
248
|
-
{ id: 'form', slot: 'left', size: '34%', minSize: 320, collapsible: true },
|
|
249
|
-
{ id: 'waterfall', slot: 'right', size: '66%' },
|
|
250
|
-
],
|
|
251
|
-
},
|
|
252
|
-
blocks: [
|
|
253
|
-
{
|
|
254
|
-
blockId: 'run-form',
|
|
255
|
-
capability: 'studio.capability.workflow-run-form',
|
|
256
|
-
slot: 'left',
|
|
257
|
-
dataSource: { kind: 'collection.query', queryRef: 'view.query', relationPath: 'runs', mode: 'create' },
|
|
258
|
-
config: {},
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
blockId: 'run-waterfall',
|
|
262
|
-
capability: 'studio.capability.workflow-run-waterfall',
|
|
263
|
-
slot: 'right',
|
|
264
|
-
dataSource: { kind: 'collection.query', queryRef: 'view.query', relationPath: 'runs', mode: 'read' },
|
|
265
|
-
config: {},
|
|
266
|
-
},
|
|
267
|
-
],
|
|
268
|
-
wiring: [
|
|
269
|
-
{
|
|
270
|
-
sourceBlockId: 'run-form',
|
|
271
|
-
event: 'run.started',
|
|
272
|
-
targetBlockId: 'run-waterfall',
|
|
273
|
-
action: 'collection.prependPlaceholder',
|
|
274
|
-
},
|
|
275
|
-
],
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
contract: 'ViewSpec',
|
|
279
|
-
schemaVersion: 1,
|
|
280
|
-
viewId: 'workflow.log',
|
|
281
|
-
title: { 'zh-CN': '日志视图', 'en-US': 'Log View' },
|
|
282
|
-
subject: {
|
|
283
|
-
kind: 'artifact',
|
|
284
|
-
ontologyId: 'workflow-definitions',
|
|
285
|
-
artifactKind: 'workflow',
|
|
286
|
-
recordIdParam: 'workflowId',
|
|
287
|
-
},
|
|
288
|
-
query: { source: 'relation', relationPath: 'runs' },
|
|
289
|
-
layout: { mode: 'single', regions: [{ id: 'main', slot: 'main' }] },
|
|
290
|
-
blocks: [
|
|
291
|
-
{
|
|
292
|
-
blockId: 'run-log-table',
|
|
293
|
-
capability: 'studio.capability.workflow-page.log',
|
|
294
|
-
slot: 'main',
|
|
295
|
-
dataSource: { kind: 'collection.query', queryRef: 'view.query', relationPath: 'runs', mode: 'read' },
|
|
296
|
-
config: {},
|
|
297
|
-
},
|
|
298
|
-
],
|
|
299
|
-
wiring: [],
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
contract: 'ViewSpec',
|
|
303
|
-
schemaVersion: 1,
|
|
304
|
-
viewId: 'workflow.chat',
|
|
305
|
-
title: { 'zh-CN': '对话视图', 'en-US': 'Chat View' },
|
|
306
|
-
subject: {
|
|
307
|
-
kind: 'artifact',
|
|
308
|
-
ontologyId: 'workflow-definitions',
|
|
309
|
-
artifactKind: 'workflow',
|
|
310
|
-
recordIdParam: 'workflowId',
|
|
311
|
-
},
|
|
312
|
-
query: { source: 'relation', relationPath: 'sessions' },
|
|
313
|
-
layout: { mode: 'single', regions: [{ id: 'main', slot: 'main' }] },
|
|
314
|
-
blocks: [
|
|
315
|
-
{
|
|
316
|
-
blockId: 'chat-stream',
|
|
317
|
-
capability: 'studio.capability.workflow-page.chat',
|
|
318
|
-
slot: 'main',
|
|
319
|
-
dataSource: { kind: 'collection.query', queryRef: 'view.query', relationPath: 'sessions', mode: 'read-write' },
|
|
320
|
-
config: {},
|
|
321
|
-
},
|
|
322
|
-
],
|
|
323
|
-
wiring: [],
|
|
104
|
+
/**
|
|
105
|
+
* Domain-agnostic runtime registry for ArtifactProfiles.
|
|
106
|
+
* Vertical domains (board, workflow, CAD, EDA, plugins) register their profiles
|
|
107
|
+
* dynamically without modifying the core platform SDK.
|
|
108
|
+
*/
|
|
109
|
+
function createArtifactRegistry(initialProfiles = []) {
|
|
110
|
+
const profiles = new Map();
|
|
111
|
+
const registerProfile = (profileInput, options = {}) => {
|
|
112
|
+
const profile = artifact_platform_1.ArtifactProfileSchema.parse(profileInput);
|
|
113
|
+
if (profiles.has(profile.artifactKind) && !options.replace) {
|
|
114
|
+
throw new Error(`ArtifactProfile for kind "${profile.artifactKind}" is already registered.`);
|
|
115
|
+
}
|
|
116
|
+
profiles.set(profile.artifactKind, profile);
|
|
117
|
+
return profile;
|
|
118
|
+
};
|
|
119
|
+
for (const profile of initialProfiles) {
|
|
120
|
+
registerProfile(profile);
|
|
121
|
+
}
|
|
122
|
+
const getProfile = (artifactKind) => profiles.get(artifactKind);
|
|
123
|
+
const resolveView = (artifactKind, viewId) => {
|
|
124
|
+
const profile = profiles.get(artifactKind);
|
|
125
|
+
if (!profile)
|
|
126
|
+
return undefined;
|
|
127
|
+
const targetId = viewId ?? profile.defaultViewId;
|
|
128
|
+
return profile.views.find((view) => view.viewId === targetId);
|
|
129
|
+
};
|
|
130
|
+
return Object.freeze({
|
|
131
|
+
registerProfile,
|
|
132
|
+
unregisterProfile: (artifactKind) => profiles.delete(artifactKind),
|
|
133
|
+
getProfile,
|
|
134
|
+
listProfiles: () => Object.freeze(Array.from(profiles.values())),
|
|
135
|
+
resolveView,
|
|
136
|
+
compileView: (artifactKind, viewId, options) => {
|
|
137
|
+
const view = resolveView(artifactKind, viewId);
|
|
138
|
+
return view ? compileViewSpecToRenderTree(view, options) : undefined;
|
|
324
139
|
},
|
|
325
|
-
|
|
326
|
-
});
|
|
327
|
-
exports.BUILTIN_ARTIFACT_PROFILES = Object.freeze({
|
|
328
|
-
board: exports.DESIGN_BOARD_ARTIFACT_PROFILE,
|
|
329
|
-
workflow: exports.WORKFLOW_ARTIFACT_PROFILE,
|
|
330
|
-
});
|
|
331
|
-
function resolveBuiltinArtifactProfile(artifactKind) {
|
|
332
|
-
return exports.BUILTIN_ARTIFACT_PROFILES[artifactKind];
|
|
140
|
+
});
|
|
333
141
|
}
|
|
334
|
-
exports.
|
|
142
|
+
exports.createArtifactRegistry = createArtifactRegistry;
|
|
335
143
|
//# sourceMappingURL=artifact-session.js.map
|