@inf-monkeys-tech/monkeys 1.1.44 → 1.1.47
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/agent-data.d.ts +7 -7
- package/lib/contracts/agent-native-runtime.d.ts +1 -1
- package/lib/contracts/agent.d.ts +75 -72
- package/lib/contracts/agent.d.ts.map +1 -1
- package/lib/contracts/agent.js +2 -0
- package/lib/contracts/agent.js.map +1 -1
- package/lib/contracts/declarative-control-http.d.ts +26 -26
- package/lib/contracts/declarative-control.d.ts +4 -4
- package/lib/contracts/declarative-control.js +2 -2
- package/lib/contracts/declarative-control.js.map +1 -1
- package/lib/contracts/declarative-publication-job.d.ts +11 -11
- package/lib/contracts/file.d.ts +21 -18
- package/lib/contracts/file.d.ts.map +1 -1
- package/lib/contracts/file.js +1 -0
- package/lib/contracts/file.js.map +1 -1
- 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/markdown-document.d.ts +311 -0
- package/lib/contracts/markdown-document.d.ts.map +1 -0
- package/lib/contracts/markdown-document.js +97 -0
- package/lib/contracts/markdown-document.js.map +1 -0
- package/lib/contracts/tenant.d.ts +4 -4
- package/lib/esm/{chunk-UY2ZSIR2.mjs → chunk-47IYYBR4.mjs} +3 -3
- package/lib/esm/{chunk-TKIVZQ6V.mjs → chunk-5IZFPLHB.mjs} +131 -16
- package/lib/esm/chunk-5IZFPLHB.mjs.map +1 -0
- package/lib/esm/{chunk-WYV3EFUS.mjs → chunk-B4OT6FRP.mjs} +2 -2
- package/lib/esm/{chunk-QPFYQ24T.mjs → chunk-DVKZ3G6M.mjs} +586 -584
- package/lib/esm/chunk-DVKZ3G6M.mjs.map +1 -0
- package/lib/esm/{chunk-AYNGVVND.mjs → chunk-KLSJHH23.mjs} +3 -3
- package/lib/esm/{chunk-DFALYXAY.mjs → chunk-Z6F4MXV2.mjs} +2 -2
- package/lib/esm/contracts/index.mjs +36 -4
- package/lib/esm/index.mjs +38 -6
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +3 -3
- package/lib/esm/schemas/index.mjs +3 -3
- package/lib/json-schema/agent-session-event.schema.json +4 -0
- package/lib/json-schema/agent-session-run-event.schema.json +4 -0
- package/lib/json-schema/agent-session-view-model.schema.json +4 -0
- package/lib/runtime/runtime-definition-wire.d.ts +2 -2
- package/lib/schemas/index.d.ts +52 -49
- package/lib/schemas/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/esm/chunk-QPFYQ24T.mjs.map +0 -1
- package/lib/esm/chunk-TKIVZQ6V.mjs.map +0 -1
- /package/lib/esm/{chunk-UY2ZSIR2.mjs.map → chunk-47IYYBR4.mjs.map} +0 -0
- /package/lib/esm/{chunk-WYV3EFUS.mjs.map → chunk-B4OT6FRP.mjs.map} +0 -0
- /package/lib/esm/{chunk-AYNGVVND.mjs.map → chunk-KLSJHH23.mjs.map} +0 -0
- /package/lib/esm/{chunk-DFALYXAY.mjs.map → chunk-Z6F4MXV2.mjs.map} +0 -0
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
WorkflowCompletionCommitSchema,
|
|
37
37
|
WorkflowCompletionReceiptSchema,
|
|
38
38
|
WorkflowPublicationSchema
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-B4OT6FRP.mjs";
|
|
40
40
|
import {
|
|
41
41
|
ActionProgramArtifactSchema,
|
|
42
42
|
ActionProgramDefinitionSchema,
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
WorkbenchSchema,
|
|
102
102
|
WorkflowColumnBindingSchema,
|
|
103
103
|
WorkflowDefinitionSchema
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-DVKZ3G6M.mjs";
|
|
105
105
|
|
|
106
106
|
// src/schemas/index.ts
|
|
107
107
|
var canonicalContractSchemas = {
|
|
@@ -210,4 +210,4 @@ var canonicalContractSchemas = {
|
|
|
210
210
|
export {
|
|
211
211
|
canonicalContractSchemas
|
|
212
212
|
};
|
|
213
|
-
//# sourceMappingURL=chunk-
|
|
213
|
+
//# sourceMappingURL=chunk-KLSJHH23.mjs.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DECLARATIVE_CONTROL_API_PREFIX,
|
|
3
3
|
IsoDateTimeSchema,
|
|
4
4
|
JsonObjectSchema
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DVKZ3G6M.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-Z6F4MXV2.mjs.map
|
|
@@ -41,6 +41,22 @@ import {
|
|
|
41
41
|
DeclarativePublicationJobReconciliationSchema,
|
|
42
42
|
DeclarativePublicationJobSchema,
|
|
43
43
|
DeclarativePublicationJobScopeSchema,
|
|
44
|
+
MARKDOWN_DOCUMENT_MAX_BYTES,
|
|
45
|
+
MarkdownDocumentErrorCodeSchema,
|
|
46
|
+
MarkdownDocumentFileSchema,
|
|
47
|
+
MarkdownDocumentHistoryQuerySchema,
|
|
48
|
+
MarkdownDocumentHistorySchema,
|
|
49
|
+
MarkdownDocumentPolicySchema,
|
|
50
|
+
MarkdownDocumentReceiptSchema,
|
|
51
|
+
MarkdownDocumentRecordSchema,
|
|
52
|
+
MarkdownDocumentRestoreSchema,
|
|
53
|
+
MarkdownDocumentSaveResultSchema,
|
|
54
|
+
MarkdownDocumentSaveSchema,
|
|
55
|
+
MarkdownDocumentSourceSchema,
|
|
56
|
+
MarkdownDocumentVersionSchema,
|
|
57
|
+
MarkdownDocumentViewSchema,
|
|
58
|
+
MarkdownDocumentWorkspaceQuerySchema,
|
|
59
|
+
MarkdownDocumentWorkspaceSchema,
|
|
44
60
|
PrepareActionProgramRequestSchema,
|
|
45
61
|
ReadActionProgramRequestSchema,
|
|
46
62
|
RegisterActionProgramRequestSchema,
|
|
@@ -49,7 +65,7 @@ import {
|
|
|
49
65
|
RuntimeProgramDownloadResultSchema,
|
|
50
66
|
RuntimeProgramLoadRequestSchema,
|
|
51
67
|
RuntimeProgramLoadResultSchema
|
|
52
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-5IZFPLHB.mjs";
|
|
53
69
|
import {
|
|
54
70
|
ActorRefSchema,
|
|
55
71
|
AgentRuntimeEventSchema,
|
|
@@ -126,7 +142,7 @@ import {
|
|
|
126
142
|
WorkflowCompletionCommitSchema,
|
|
127
143
|
WorkflowCompletionReceiptSchema,
|
|
128
144
|
WorkflowPublicationSchema
|
|
129
|
-
} from "../chunk-
|
|
145
|
+
} from "../chunk-B4OT6FRP.mjs";
|
|
130
146
|
import {
|
|
131
147
|
PAGE_STREAM_MAX_BUFFER_BYTES,
|
|
132
148
|
PAGE_STREAM_MAX_BUFFER_EVENTS,
|
|
@@ -140,7 +156,7 @@ import {
|
|
|
140
156
|
PageStreamDescriptorSchema,
|
|
141
157
|
PageStreamEventSchema,
|
|
142
158
|
pageStreamRoutes
|
|
143
|
-
} from "../chunk-
|
|
159
|
+
} from "../chunk-Z6F4MXV2.mjs";
|
|
144
160
|
import {
|
|
145
161
|
ACTION_PROGRAM_ABI,
|
|
146
162
|
AGENT_MODE_CAPABILITIES,
|
|
@@ -646,7 +662,7 @@ import {
|
|
|
646
662
|
resolveAgentSessionCommandTransition,
|
|
647
663
|
resolveAgentWorkbenchSidebarConfig,
|
|
648
664
|
visitPageExpression
|
|
649
|
-
} from "../chunk-
|
|
665
|
+
} from "../chunk-DVKZ3G6M.mjs";
|
|
650
666
|
import "../chunk-3QS3WKRC.mjs";
|
|
651
667
|
export {
|
|
652
668
|
ACTION_PROGRAM_ABI,
|
|
@@ -1004,6 +1020,7 @@ export {
|
|
|
1004
1020
|
LineageRecordSchema,
|
|
1005
1021
|
LocaleIdentifierSchema,
|
|
1006
1022
|
LocalizedTextSchema,
|
|
1023
|
+
MARKDOWN_DOCUMENT_MAX_BYTES,
|
|
1007
1024
|
MENU_ACTIVATION_QUERY_PARAMETER,
|
|
1008
1025
|
MENU_CONTRACT_VERSION,
|
|
1009
1026
|
MENU_MAX_DEFINITIONS,
|
|
@@ -1017,6 +1034,21 @@ export {
|
|
|
1017
1034
|
ManagedFileEventTypeSchema,
|
|
1018
1035
|
ManagedFileUriSchema,
|
|
1019
1036
|
ManagementAccessSchema,
|
|
1037
|
+
MarkdownDocumentErrorCodeSchema,
|
|
1038
|
+
MarkdownDocumentFileSchema,
|
|
1039
|
+
MarkdownDocumentHistoryQuerySchema,
|
|
1040
|
+
MarkdownDocumentHistorySchema,
|
|
1041
|
+
MarkdownDocumentPolicySchema,
|
|
1042
|
+
MarkdownDocumentReceiptSchema,
|
|
1043
|
+
MarkdownDocumentRecordSchema,
|
|
1044
|
+
MarkdownDocumentRestoreSchema,
|
|
1045
|
+
MarkdownDocumentSaveResultSchema,
|
|
1046
|
+
MarkdownDocumentSaveSchema,
|
|
1047
|
+
MarkdownDocumentSourceSchema,
|
|
1048
|
+
MarkdownDocumentVersionSchema,
|
|
1049
|
+
MarkdownDocumentViewSchema,
|
|
1050
|
+
MarkdownDocumentWorkspaceQuerySchema,
|
|
1051
|
+
MarkdownDocumentWorkspaceSchema,
|
|
1020
1052
|
MaterializedModelBudgetSchema,
|
|
1021
1053
|
MaterializedModelProjectionSchema,
|
|
1022
1054
|
MenuAccessRequirementSchema,
|
package/lib/esm/index.mjs
CHANGED
|
@@ -41,6 +41,22 @@ import {
|
|
|
41
41
|
DeclarativePublicationJobReconciliationSchema,
|
|
42
42
|
DeclarativePublicationJobSchema,
|
|
43
43
|
DeclarativePublicationJobScopeSchema,
|
|
44
|
+
MARKDOWN_DOCUMENT_MAX_BYTES,
|
|
45
|
+
MarkdownDocumentErrorCodeSchema,
|
|
46
|
+
MarkdownDocumentFileSchema,
|
|
47
|
+
MarkdownDocumentHistoryQuerySchema,
|
|
48
|
+
MarkdownDocumentHistorySchema,
|
|
49
|
+
MarkdownDocumentPolicySchema,
|
|
50
|
+
MarkdownDocumentReceiptSchema,
|
|
51
|
+
MarkdownDocumentRecordSchema,
|
|
52
|
+
MarkdownDocumentRestoreSchema,
|
|
53
|
+
MarkdownDocumentSaveResultSchema,
|
|
54
|
+
MarkdownDocumentSaveSchema,
|
|
55
|
+
MarkdownDocumentSourceSchema,
|
|
56
|
+
MarkdownDocumentVersionSchema,
|
|
57
|
+
MarkdownDocumentViewSchema,
|
|
58
|
+
MarkdownDocumentWorkspaceQuerySchema,
|
|
59
|
+
MarkdownDocumentWorkspaceSchema,
|
|
44
60
|
PrepareActionProgramRequestSchema,
|
|
45
61
|
ReadActionProgramRequestSchema,
|
|
46
62
|
RegisterActionProgramRequestSchema,
|
|
@@ -49,10 +65,10 @@ import {
|
|
|
49
65
|
RuntimeProgramDownloadResultSchema,
|
|
50
66
|
RuntimeProgramLoadRequestSchema,
|
|
51
67
|
RuntimeProgramLoadResultSchema
|
|
52
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-5IZFPLHB.mjs";
|
|
53
69
|
import {
|
|
54
70
|
canonicalContractSchemas
|
|
55
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-KLSJHH23.mjs";
|
|
56
72
|
import {
|
|
57
73
|
ActorRefSchema,
|
|
58
74
|
AgentRuntimeEventSchema,
|
|
@@ -129,7 +145,7 @@ import {
|
|
|
129
145
|
WorkflowCompletionCommitSchema,
|
|
130
146
|
WorkflowCompletionReceiptSchema,
|
|
131
147
|
WorkflowPublicationSchema
|
|
132
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-B4OT6FRP.mjs";
|
|
133
149
|
import {
|
|
134
150
|
APPLICATION_HANDOFF_QUERY_PARAMETER,
|
|
135
151
|
DEFAULT_CONDUCTOR_OWNER_EMAIL,
|
|
@@ -263,7 +279,7 @@ import {
|
|
|
263
279
|
validateDomainCommand,
|
|
264
280
|
validateWorkbenchRuntimeSet,
|
|
265
281
|
writePageDraftPath
|
|
266
|
-
} from "./chunk-
|
|
282
|
+
} from "./chunk-47IYYBR4.mjs";
|
|
267
283
|
import {
|
|
268
284
|
PAGE_STREAM_MAX_BUFFER_BYTES,
|
|
269
285
|
PAGE_STREAM_MAX_BUFFER_EVENTS,
|
|
@@ -277,7 +293,7 @@ import {
|
|
|
277
293
|
PageStreamDescriptorSchema,
|
|
278
294
|
PageStreamEventSchema,
|
|
279
295
|
pageStreamRoutes
|
|
280
|
-
} from "./chunk-
|
|
296
|
+
} from "./chunk-Z6F4MXV2.mjs";
|
|
281
297
|
import {
|
|
282
298
|
ACTION_PROGRAM_ABI,
|
|
283
299
|
AGENT_MODE_CAPABILITIES,
|
|
@@ -791,7 +807,7 @@ import {
|
|
|
791
807
|
validateThemeTokensDocument,
|
|
792
808
|
validateThemeTokensDocumentStructure,
|
|
793
809
|
visitPageExpression
|
|
794
|
-
} from "./chunk-
|
|
810
|
+
} from "./chunk-DVKZ3G6M.mjs";
|
|
795
811
|
import "./chunk-3QS3WKRC.mjs";
|
|
796
812
|
|
|
797
813
|
// src/types/tool.ts
|
|
@@ -1190,6 +1206,7 @@ export {
|
|
|
1190
1206
|
LineageRecordSchema,
|
|
1191
1207
|
LocaleIdentifierSchema,
|
|
1192
1208
|
LocalizedTextSchema,
|
|
1209
|
+
MARKDOWN_DOCUMENT_MAX_BYTES,
|
|
1193
1210
|
MENU_ACTIVATION_QUERY_PARAMETER,
|
|
1194
1211
|
MENU_CONTRACT_VERSION,
|
|
1195
1212
|
MENU_MAX_DEFINITIONS,
|
|
@@ -1204,6 +1221,21 @@ export {
|
|
|
1204
1221
|
ManagedFileEventTypeSchema,
|
|
1205
1222
|
ManagedFileUriSchema,
|
|
1206
1223
|
ManagementAccessSchema,
|
|
1224
|
+
MarkdownDocumentErrorCodeSchema,
|
|
1225
|
+
MarkdownDocumentFileSchema,
|
|
1226
|
+
MarkdownDocumentHistoryQuerySchema,
|
|
1227
|
+
MarkdownDocumentHistorySchema,
|
|
1228
|
+
MarkdownDocumentPolicySchema,
|
|
1229
|
+
MarkdownDocumentReceiptSchema,
|
|
1230
|
+
MarkdownDocumentRecordSchema,
|
|
1231
|
+
MarkdownDocumentRestoreSchema,
|
|
1232
|
+
MarkdownDocumentSaveResultSchema,
|
|
1233
|
+
MarkdownDocumentSaveSchema,
|
|
1234
|
+
MarkdownDocumentSourceSchema,
|
|
1235
|
+
MarkdownDocumentVersionSchema,
|
|
1236
|
+
MarkdownDocumentViewSchema,
|
|
1237
|
+
MarkdownDocumentWorkspaceQuerySchema,
|
|
1238
|
+
MarkdownDocumentWorkspaceSchema,
|
|
1207
1239
|
MaterializedModelBudgetSchema,
|
|
1208
1240
|
MaterializedModelProjectionSchema,
|
|
1209
1241
|
MenuAccessRequirementSchema,
|
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"]}
|
|
@@ -131,8 +131,8 @@ import {
|
|
|
131
131
|
validateDomainCommand,
|
|
132
132
|
validateWorkbenchRuntimeSet,
|
|
133
133
|
writePageDraftPath
|
|
134
|
-
} from "../chunk-
|
|
135
|
-
import "../chunk-
|
|
134
|
+
} from "../chunk-47IYYBR4.mjs";
|
|
135
|
+
import "../chunk-Z6F4MXV2.mjs";
|
|
136
136
|
import {
|
|
137
137
|
MONKEYS_REQUIRED_THEME_TOKEN_PATHS,
|
|
138
138
|
ThemeTokenValidationError,
|
|
@@ -142,7 +142,7 @@ import {
|
|
|
142
142
|
resolveThemeTokens,
|
|
143
143
|
validateThemeTokensDocument,
|
|
144
144
|
validateThemeTokensDocumentStructure
|
|
145
|
-
} from "../chunk-
|
|
145
|
+
} from "../chunk-DVKZ3G6M.mjs";
|
|
146
146
|
import "../chunk-3QS3WKRC.mjs";
|
|
147
147
|
export {
|
|
148
148
|
APPLICATION_HANDOFF_QUERY_PARAMETER,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
canonicalContractSchemas
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-KLSJHH23.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-B4OT6FRP.mjs";
|
|
73
73
|
import {
|
|
74
74
|
AccessPolicySchema,
|
|
75
75
|
ActionBindingSchema,
|
|
@@ -356,7 +356,7 @@ import {
|
|
|
356
356
|
WorkflowParameterTypeSchema,
|
|
357
357
|
WorkflowTriggerSchema,
|
|
358
358
|
WorkflowValidationIssueSchema
|
|
359
|
-
} from "../chunk-
|
|
359
|
+
} from "../chunk-DVKZ3G6M.mjs";
|
|
360
360
|
import "../chunk-3QS3WKRC.mjs";
|
|
361
361
|
export {
|
|
362
362
|
AccessPolicySchema,
|
|
@@ -1620,7 +1620,7 @@ export declare const RuntimeDefinitionResponseSchema: z.ZodPipe<z.ZodTransform<u
|
|
|
1620
1620
|
};
|
|
1621
1621
|
maxBytes: number;
|
|
1622
1622
|
upload?: {
|
|
1623
|
-
purpose: "
|
|
1623
|
+
purpose: "uploads" | "agent-attachments" | "agent-artifacts" | "agent-edited-images" | "agent-workbench" | "agent-skill-archives" | "asset-screenshots" | "data-exports" | "data-feature-media" | "design-assets" | "design-board-thumbnails" | "design-images" | "dev-agent-reference-images" | "dev-agent-review-artifacts" | "external-delivery-techpacks" | "llm-generated-images" | "media-generated" | "media-uploads" | "model-training-files" | "models" | "models-checkpoints" | "models-clip" | "models-controlnet" | "models-diffusion-models" | "models-loras-test" | "models-vae" | "output-images" | "plugin-data-imports" | "plugin-runtime" | "plugin-runtime-outputs" | "step-thumbnails" | "techpack-design-intent" | "user-files-base" | "user-files-design-board-background" | "user-files-design-project-cover" | "user-files-designs" | "user-files-icons" | "user-files-import-comfyui-image" | "user-files-import-comfyui-json" | "user-files-import-comfyui-json-url" | "user-files-instruction-input" | "user-files-linesheet" | "user-files-media" | "user-files-other" | "user-files-prompt-assistant" | "user-files-table-data" | "user-files-techpack-attachments" | "user-files-text-data-file" | "user-files-workflow-input" | "workflow-image-mask" | "workflow-image-overlay" | "workflow-import";
|
|
1624
1624
|
} | undefined;
|
|
1625
1625
|
accept?: string | undefined;
|
|
1626
1626
|
}[] | undefined;
|
|
@@ -4114,7 +4114,7 @@ export declare const RuntimeDefinitionResponseSchema: z.ZodPipe<z.ZodTransform<u
|
|
|
4114
4114
|
};
|
|
4115
4115
|
maxBytes: number;
|
|
4116
4116
|
upload?: {
|
|
4117
|
-
purpose: "
|
|
4117
|
+
purpose: "uploads" | "agent-attachments" | "agent-artifacts" | "agent-edited-images" | "agent-workbench" | "agent-skill-archives" | "asset-screenshots" | "data-exports" | "data-feature-media" | "design-assets" | "design-board-thumbnails" | "design-images" | "dev-agent-reference-images" | "dev-agent-review-artifacts" | "external-delivery-techpacks" | "llm-generated-images" | "media-generated" | "media-uploads" | "model-training-files" | "models" | "models-checkpoints" | "models-clip" | "models-controlnet" | "models-diffusion-models" | "models-loras-test" | "models-vae" | "output-images" | "plugin-data-imports" | "plugin-runtime" | "plugin-runtime-outputs" | "step-thumbnails" | "techpack-design-intent" | "user-files-base" | "user-files-design-board-background" | "user-files-design-project-cover" | "user-files-designs" | "user-files-icons" | "user-files-import-comfyui-image" | "user-files-import-comfyui-json" | "user-files-import-comfyui-json-url" | "user-files-instruction-input" | "user-files-linesheet" | "user-files-media" | "user-files-other" | "user-files-prompt-assistant" | "user-files-table-data" | "user-files-techpack-attachments" | "user-files-text-data-file" | "user-files-workflow-input" | "workflow-image-mask" | "workflow-image-overlay" | "workflow-import";
|
|
4118
4118
|
} | undefined;
|
|
4119
4119
|
accept?: string | undefined;
|
|
4120
4120
|
}[] | undefined;
|