@inf-monkeys-tech/monkeys 1.1.35 → 1.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/lib/contracts/design-board.d.ts +357 -0
- package/lib/contracts/design-board.d.ts.map +1 -0
- package/lib/contracts/design-board.js +75 -0
- package/lib/contracts/design-board.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 +5 -5
- package/lib/contracts/tenant.d.ts +1 -1
- package/lib/esm/{chunk-RSHMTLT6.mjs → chunk-2YGFLKSP.mjs} +7 -3
- package/lib/esm/{chunk-RSHMTLT6.mjs.map → chunk-2YGFLKSP.mjs.map} +1 -1
- package/lib/esm/{chunk-4QMWKKPP.mjs → chunk-AGT4MIWF.mjs} +56 -3
- package/lib/esm/chunk-AGT4MIWF.mjs.map +1 -0
- package/lib/esm/{chunk-TNA3ZX6I.mjs → chunk-GT5OGNJE.mjs} +2081 -1967
- package/lib/esm/chunk-GT5OGNJE.mjs.map +1 -0
- package/lib/esm/{chunk-EJJLMGKU.mjs → chunk-HLW3X2NX.mjs} +2 -2
- package/lib/esm/{chunk-DBIRUF5K.mjs → chunk-LYWJTAAM.mjs} +2 -2
- package/lib/esm/{chunk-NTH4LWR3.mjs → chunk-UF5TNIAZ.mjs} +2 -2
- package/lib/esm/contracts/index.mjs +24 -4
- package/lib/esm/index.mjs +30 -6
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +7 -3
- package/lib/esm/schemas/index.mjs +7 -3
- package/lib/json-schema/design-board-commit-command.schema.json +408 -0
- package/lib/json-schema/design-board-document.schema.json +380 -0
- package/lib/json-schema/index.json +2 -0
- package/lib/runtime/design-board.d.ts +4 -0
- package/lib/runtime/design-board.d.ts.map +1 -0
- package/lib/runtime/design-board.js +57 -0
- package/lib/runtime/design-board.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/schemas/index.d.ts +145 -2
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +7 -1
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
- package/lib/esm/chunk-4QMWKKPP.mjs.map +0 -1
- package/lib/esm/chunk-TNA3ZX6I.mjs.map +0 -1
- /package/lib/esm/{chunk-EJJLMGKU.mjs.map → chunk-HLW3X2NX.mjs.map} +0 -0
- /package/lib/esm/{chunk-DBIRUF5K.mjs.map → chunk-LYWJTAAM.mjs.map} +0 -0
- /package/lib/esm/{chunk-NTH4LWR3.mjs.map → chunk-UF5TNIAZ.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-GT5OGNJE.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-HLW3X2NX.mjs.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
JsonObjectSchema,
|
|
10
10
|
RevisionRefSchema,
|
|
11
11
|
Sha256Schema
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GT5OGNJE.mjs";
|
|
13
13
|
|
|
14
14
|
// src/contracts/agent-native-runtime.ts
|
|
15
15
|
import { z } from "zod";
|
|
@@ -252,4 +252,4 @@ export {
|
|
|
252
252
|
RuntimeProgramCallResultSchema,
|
|
253
253
|
RuntimeProgramDownloadResultSchema
|
|
254
254
|
};
|
|
255
|
-
//# sourceMappingURL=chunk-
|
|
255
|
+
//# sourceMappingURL=chunk-LYWJTAAM.mjs.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
RevisionRefSchema,
|
|
14
14
|
Sha256Schema,
|
|
15
15
|
TenantScopeSchema
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GT5OGNJE.mjs";
|
|
17
17
|
|
|
18
18
|
// src/contracts/artifact.ts
|
|
19
19
|
import { z } from "zod";
|
|
@@ -1006,4 +1006,4 @@ export {
|
|
|
1006
1006
|
WorkflowCompletionCommitSchema,
|
|
1007
1007
|
WorkflowCompletionReceiptSchema
|
|
1008
1008
|
};
|
|
1009
|
-
//# sourceMappingURL=chunk-
|
|
1009
|
+
//# sourceMappingURL=chunk-UF5TNIAZ.mjs.map
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
RuntimeProgramDownloadResultSchema,
|
|
30
30
|
RuntimeProgramLoadRequestSchema,
|
|
31
31
|
RuntimeProgramLoadResultSchema
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-LYWJTAAM.mjs";
|
|
33
33
|
import {
|
|
34
34
|
ActorRefSchema,
|
|
35
35
|
AgentRuntimeEventSchema,
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
WorkflowCompletionCommitSchema,
|
|
102
102
|
WorkflowCompletionReceiptSchema,
|
|
103
103
|
WorkflowPublicationSchema
|
|
104
|
-
} from "../chunk-
|
|
104
|
+
} from "../chunk-UF5TNIAZ.mjs";
|
|
105
105
|
import {
|
|
106
106
|
PAGE_STREAM_MAX_BUFFER_BYTES,
|
|
107
107
|
PAGE_STREAM_MAX_BUFFER_EVENTS,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
PageStreamDescriptorSchema,
|
|
116
116
|
PageStreamEventSchema,
|
|
117
117
|
pageStreamRoutes
|
|
118
|
-
} from "../chunk-
|
|
118
|
+
} from "../chunk-HLW3X2NX.mjs";
|
|
119
119
|
import {
|
|
120
120
|
ACTION_PROGRAM_ABI,
|
|
121
121
|
AGENT_MODE_CAPABILITIES,
|
|
@@ -337,6 +337,16 @@ import {
|
|
|
337
337
|
DeclarativeWorkbenchRuntimeBootstrapSchema,
|
|
338
338
|
DeclarativeWorkbenchSummarySchema,
|
|
339
339
|
DeclarativeWorkbenchTargetChoiceSchema,
|
|
340
|
+
DesignBoardChangesSchema,
|
|
341
|
+
DesignBoardCommitCommandSchema,
|
|
342
|
+
DesignBoardConnectionSchema,
|
|
343
|
+
DesignBoardDocumentSchema,
|
|
344
|
+
DesignBoardDomainSchema,
|
|
345
|
+
DesignBoardFileSchema,
|
|
346
|
+
DesignBoardNodeKindSchema,
|
|
347
|
+
DesignBoardNodeSchema,
|
|
348
|
+
DesignBoardPageSchema,
|
|
349
|
+
DesignBoardSceneElementSchema,
|
|
340
350
|
DesignCapabilityCatalogArtifactSchema,
|
|
341
351
|
DesignCapabilityCatalogEntrySchema,
|
|
342
352
|
DesignTokenSourceSchema,
|
|
@@ -605,7 +615,7 @@ import {
|
|
|
605
615
|
resolveAgentSessionCommandTransition,
|
|
606
616
|
resolveAgentWorkbenchSidebarConfig,
|
|
607
617
|
visitPageExpression
|
|
608
|
-
} from "../chunk-
|
|
618
|
+
} from "../chunk-GT5OGNJE.mjs";
|
|
609
619
|
import "../chunk-3QS3WKRC.mjs";
|
|
610
620
|
export {
|
|
611
621
|
ACTION_PROGRAM_ABI,
|
|
@@ -877,6 +887,16 @@ export {
|
|
|
877
887
|
DeclarativeWorkbenchRuntimeBootstrapSchema,
|
|
878
888
|
DeclarativeWorkbenchSummarySchema,
|
|
879
889
|
DeclarativeWorkbenchTargetChoiceSchema,
|
|
890
|
+
DesignBoardChangesSchema,
|
|
891
|
+
DesignBoardCommitCommandSchema,
|
|
892
|
+
DesignBoardConnectionSchema,
|
|
893
|
+
DesignBoardDocumentSchema,
|
|
894
|
+
DesignBoardDomainSchema,
|
|
895
|
+
DesignBoardFileSchema,
|
|
896
|
+
DesignBoardNodeKindSchema,
|
|
897
|
+
DesignBoardNodeSchema,
|
|
898
|
+
DesignBoardPageSchema,
|
|
899
|
+
DesignBoardSceneElementSchema,
|
|
880
900
|
DesignCapabilityCatalogArtifactSchema,
|
|
881
901
|
DesignCapabilityCatalogEntrySchema,
|
|
882
902
|
DesignTokenSourceSchema,
|
package/lib/esm/index.mjs
CHANGED
|
@@ -29,10 +29,10 @@ import {
|
|
|
29
29
|
RuntimeProgramDownloadResultSchema,
|
|
30
30
|
RuntimeProgramLoadRequestSchema,
|
|
31
31
|
RuntimeProgramLoadResultSchema
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-LYWJTAAM.mjs";
|
|
33
33
|
import {
|
|
34
34
|
canonicalContractSchemas
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-2YGFLKSP.mjs";
|
|
36
36
|
import {
|
|
37
37
|
ActorRefSchema,
|
|
38
38
|
AgentRuntimeEventSchema,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
WorkflowCompletionCommitSchema,
|
|
105
105
|
WorkflowCompletionReceiptSchema,
|
|
106
106
|
WorkflowPublicationSchema
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-UF5TNIAZ.mjs";
|
|
108
108
|
import {
|
|
109
109
|
APPLICATION_HANDOFF_QUERY_PARAMETER,
|
|
110
110
|
DEFAULT_CONDUCTOR_OWNER_EMAIL,
|
|
@@ -120,6 +120,7 @@ import {
|
|
|
120
120
|
RuntimeDefinitionResponseSchema,
|
|
121
121
|
acceptsPreviousSchema,
|
|
122
122
|
accessPolicyChainImplies,
|
|
123
|
+
applyDesignBoardChanges,
|
|
123
124
|
applyPageStreamEvent,
|
|
124
125
|
applyRecordEditorDraft,
|
|
125
126
|
applyViewRuntimeBindings,
|
|
@@ -180,6 +181,7 @@ import {
|
|
|
180
181
|
declarativeRuntimeProjectionId,
|
|
181
182
|
declarativeWorkbenchCatalogProjectionId,
|
|
182
183
|
designCapabilityCatalogArtifactHash,
|
|
184
|
+
diffDesignBoardDocuments,
|
|
183
185
|
encodeRuntimeDefinition,
|
|
184
186
|
evaluatePageExpression,
|
|
185
187
|
expandRuntimeDefinition,
|
|
@@ -233,7 +235,7 @@ import {
|
|
|
233
235
|
validateDomainCommand,
|
|
234
236
|
validateWorkbenchRuntimeSet,
|
|
235
237
|
writePageDraftPath
|
|
236
|
-
} from "./chunk-
|
|
238
|
+
} from "./chunk-AGT4MIWF.mjs";
|
|
237
239
|
import {
|
|
238
240
|
PAGE_STREAM_MAX_BUFFER_BYTES,
|
|
239
241
|
PAGE_STREAM_MAX_BUFFER_EVENTS,
|
|
@@ -247,7 +249,7 @@ import {
|
|
|
247
249
|
PageStreamDescriptorSchema,
|
|
248
250
|
PageStreamEventSchema,
|
|
249
251
|
pageStreamRoutes
|
|
250
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-HLW3X2NX.mjs";
|
|
251
253
|
import {
|
|
252
254
|
ACTION_PROGRAM_ABI,
|
|
253
255
|
AGENT_MODE_CAPABILITIES,
|
|
@@ -469,6 +471,16 @@ import {
|
|
|
469
471
|
DeclarativeWorkbenchRuntimeBootstrapSchema,
|
|
470
472
|
DeclarativeWorkbenchSummarySchema,
|
|
471
473
|
DeclarativeWorkbenchTargetChoiceSchema,
|
|
474
|
+
DesignBoardChangesSchema,
|
|
475
|
+
DesignBoardCommitCommandSchema,
|
|
476
|
+
DesignBoardConnectionSchema,
|
|
477
|
+
DesignBoardDocumentSchema,
|
|
478
|
+
DesignBoardDomainSchema,
|
|
479
|
+
DesignBoardFileSchema,
|
|
480
|
+
DesignBoardNodeKindSchema,
|
|
481
|
+
DesignBoardNodeSchema,
|
|
482
|
+
DesignBoardPageSchema,
|
|
483
|
+
DesignBoardSceneElementSchema,
|
|
472
484
|
DesignCapabilityCatalogArtifactSchema,
|
|
473
485
|
DesignCapabilityCatalogEntrySchema,
|
|
474
486
|
DesignTokenSourceSchema,
|
|
@@ -745,7 +757,7 @@ import {
|
|
|
745
757
|
validateThemeTokensDocument,
|
|
746
758
|
validateThemeTokensDocumentStructure,
|
|
747
759
|
visitPageExpression
|
|
748
|
-
} from "./chunk-
|
|
760
|
+
} from "./chunk-GT5OGNJE.mjs";
|
|
749
761
|
import "./chunk-3QS3WKRC.mjs";
|
|
750
762
|
|
|
751
763
|
// src/types/tool.ts
|
|
@@ -1058,6 +1070,16 @@ export {
|
|
|
1058
1070
|
DeclarativeWorkbenchRuntimeBootstrapSchema,
|
|
1059
1071
|
DeclarativeWorkbenchSummarySchema,
|
|
1060
1072
|
DeclarativeWorkbenchTargetChoiceSchema,
|
|
1073
|
+
DesignBoardChangesSchema,
|
|
1074
|
+
DesignBoardCommitCommandSchema,
|
|
1075
|
+
DesignBoardConnectionSchema,
|
|
1076
|
+
DesignBoardDocumentSchema,
|
|
1077
|
+
DesignBoardDomainSchema,
|
|
1078
|
+
DesignBoardFileSchema,
|
|
1079
|
+
DesignBoardNodeKindSchema,
|
|
1080
|
+
DesignBoardNodeSchema,
|
|
1081
|
+
DesignBoardPageSchema,
|
|
1082
|
+
DesignBoardSceneElementSchema,
|
|
1061
1083
|
DesignCapabilityCatalogArtifactSchema,
|
|
1062
1084
|
DesignCapabilityCatalogEntrySchema,
|
|
1063
1085
|
DesignTokenSourceSchema,
|
|
@@ -1386,6 +1408,7 @@ export {
|
|
|
1386
1408
|
accessPolicyChainImplies,
|
|
1387
1409
|
agentModeHasCapability,
|
|
1388
1410
|
analyzePageBindingDependencies,
|
|
1411
|
+
applyDesignBoardChanges,
|
|
1389
1412
|
applyPageStreamEvent,
|
|
1390
1413
|
applyRecordEditorDraft,
|
|
1391
1414
|
applyViewRuntimeBindings,
|
|
@@ -1456,6 +1479,7 @@ export {
|
|
|
1456
1479
|
declarativeRuntimeProjectionId,
|
|
1457
1480
|
declarativeWorkbenchCatalogProjectionId,
|
|
1458
1481
|
designCapabilityCatalogArtifactHash,
|
|
1482
|
+
diffDesignBoardDocuments,
|
|
1459
1483
|
encodeRuntimeDefinition,
|
|
1460
1484
|
evaluatePageExpression,
|
|
1461
1485
|
expandRuntimeDefinition,
|
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"]}
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
RuntimeDefinitionResponseSchema,
|
|
14
14
|
acceptsPreviousSchema,
|
|
15
15
|
accessPolicyChainImplies,
|
|
16
|
+
applyDesignBoardChanges,
|
|
16
17
|
applyPageStreamEvent,
|
|
17
18
|
applyRecordEditorDraft,
|
|
18
19
|
applyViewRuntimeBindings,
|
|
@@ -73,6 +74,7 @@ import {
|
|
|
73
74
|
declarativeRuntimeProjectionId,
|
|
74
75
|
declarativeWorkbenchCatalogProjectionId,
|
|
75
76
|
designCapabilityCatalogArtifactHash,
|
|
77
|
+
diffDesignBoardDocuments,
|
|
76
78
|
encodeRuntimeDefinition,
|
|
77
79
|
evaluatePageExpression,
|
|
78
80
|
expandRuntimeDefinition,
|
|
@@ -126,8 +128,8 @@ import {
|
|
|
126
128
|
validateDomainCommand,
|
|
127
129
|
validateWorkbenchRuntimeSet,
|
|
128
130
|
writePageDraftPath
|
|
129
|
-
} from "../chunk-
|
|
130
|
-
import "../chunk-
|
|
131
|
+
} from "../chunk-AGT4MIWF.mjs";
|
|
132
|
+
import "../chunk-HLW3X2NX.mjs";
|
|
131
133
|
import {
|
|
132
134
|
MONKEYS_REQUIRED_THEME_TOKEN_PATHS,
|
|
133
135
|
ThemeTokenValidationError,
|
|
@@ -137,7 +139,7 @@ import {
|
|
|
137
139
|
resolveThemeTokens,
|
|
138
140
|
validateThemeTokensDocument,
|
|
139
141
|
validateThemeTokensDocumentStructure
|
|
140
|
-
} from "../chunk-
|
|
142
|
+
} from "../chunk-GT5OGNJE.mjs";
|
|
141
143
|
import "../chunk-3QS3WKRC.mjs";
|
|
142
144
|
export {
|
|
143
145
|
APPLICATION_HANDOFF_QUERY_PARAMETER,
|
|
@@ -156,6 +158,7 @@ export {
|
|
|
156
158
|
ThemeTokenValidationError,
|
|
157
159
|
acceptsPreviousSchema,
|
|
158
160
|
accessPolicyChainImplies,
|
|
161
|
+
applyDesignBoardChanges,
|
|
159
162
|
applyPageStreamEvent,
|
|
160
163
|
applyRecordEditorDraft,
|
|
161
164
|
applyViewRuntimeBindings,
|
|
@@ -218,6 +221,7 @@ export {
|
|
|
218
221
|
declarativeRuntimeProjectionId,
|
|
219
222
|
declarativeWorkbenchCatalogProjectionId,
|
|
220
223
|
designCapabilityCatalogArtifactHash,
|
|
224
|
+
diffDesignBoardDocuments,
|
|
221
225
|
encodeRuntimeDefinition,
|
|
222
226
|
evaluatePageExpression,
|
|
223
227
|
expandRuntimeDefinition,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
canonicalContractSchemas
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-2YGFLKSP.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-UF5TNIAZ.mjs";
|
|
73
73
|
import {
|
|
74
74
|
AccessPolicySchema,
|
|
75
75
|
ActionBindingSchema,
|
|
@@ -186,6 +186,8 @@ import {
|
|
|
186
186
|
DeclarativeShellHeaderChromeSchema,
|
|
187
187
|
DeclarativeShellSurfaceChromeSchema,
|
|
188
188
|
DeclarativeWorkbenchCatalogSchema,
|
|
189
|
+
DesignBoardCommitCommandSchema,
|
|
190
|
+
DesignBoardDocumentSchema,
|
|
189
191
|
DesignCapabilityCatalogArtifactSchema,
|
|
190
192
|
DomainCommandDefinitionSchema,
|
|
191
193
|
DomainCommandSchema,
|
|
@@ -354,7 +356,7 @@ import {
|
|
|
354
356
|
WorkflowParameterTypeSchema,
|
|
355
357
|
WorkflowTriggerSchema,
|
|
356
358
|
WorkflowValidationIssueSchema
|
|
357
|
-
} from "../chunk-
|
|
359
|
+
} from "../chunk-GT5OGNJE.mjs";
|
|
358
360
|
import "../chunk-3QS3WKRC.mjs";
|
|
359
361
|
export {
|
|
360
362
|
AccessPolicySchema,
|
|
@@ -496,6 +498,8 @@ export {
|
|
|
496
498
|
DeclarativeShellHeaderChromeSchema,
|
|
497
499
|
DeclarativeShellSurfaceChromeSchema,
|
|
498
500
|
DeclarativeWorkbenchCatalogSchema,
|
|
501
|
+
DesignBoardCommitCommandSchema,
|
|
502
|
+
DesignBoardDocumentSchema,
|
|
499
503
|
DesignCapabilityCatalogArtifactSchema,
|
|
500
504
|
DomainCommandDefinitionSchema,
|
|
501
505
|
DomainCommandSchema,
|