@datatechsolutions/ui 3.2.1 → 3.3.0
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/dist/astrlabe/contracts.d.mts +31 -3
- package/dist/astrlabe/contracts.d.ts +31 -3
- package/dist/astrlabe/index.js +115 -115
- package/dist/astrlabe/index.mjs +4 -4
- package/dist/astrlabe/utils.js +9 -9
- package/dist/astrlabe/utils.mjs +2 -2
- package/dist/astrlabe/workflow-canvas.js +3 -3
- package/dist/astrlabe/workflow-canvas.mjs +2 -2
- package/dist/{chunk-QYA53LUF.mjs → chunk-2WXRRQM3.mjs} +21 -4
- package/dist/chunk-2WXRRQM3.mjs.map +1 -0
- package/dist/{chunk-C3H4FM4A.js → chunk-72SWXOD5.js} +15 -2
- package/dist/chunk-72SWXOD5.js.map +1 -0
- package/dist/{chunk-H2D2CRTD.mjs → chunk-BR2GAZKG.mjs} +5 -5
- package/dist/{chunk-H2D2CRTD.mjs.map → chunk-BR2GAZKG.mjs.map} +1 -1
- package/dist/{chunk-NJS2YC3J.js → chunk-DJDZIRM6.js} +12 -2
- package/dist/chunk-DJDZIRM6.js.map +1 -0
- package/dist/{chunk-5W7L7BT7.mjs → chunk-G7JQ4OCE.mjs} +15 -2
- package/dist/chunk-G7JQ4OCE.mjs.map +1 -0
- package/dist/{chunk-YIB2YAM5.mjs → chunk-GIQXB3BG.mjs} +3 -3
- package/dist/{chunk-YIB2YAM5.mjs.map → chunk-GIQXB3BG.mjs.map} +1 -1
- package/dist/{chunk-RL35XATZ.js → chunk-IJAKZHXX.js} +82 -65
- package/dist/chunk-IJAKZHXX.js.map +1 -0
- package/dist/{chunk-U7XM3N7F.mjs → chunk-LEXBTVGM.mjs} +12 -2
- package/dist/chunk-LEXBTVGM.mjs.map +1 -0
- package/dist/{chunk-SU3YPWFW.js → chunk-MWPTSBAI.js} +4 -4
- package/dist/{chunk-SU3YPWFW.js.map → chunk-MWPTSBAI.js.map} +1 -1
- package/dist/{chunk-EFOXN3LC.js → chunk-NJFRJ6YD.js} +279 -19
- package/dist/chunk-NJFRJ6YD.js.map +1 -0
- package/dist/{chunk-YV72JM4B.mjs → chunk-O6M3KDGT.mjs} +3 -3
- package/dist/{chunk-YV72JM4B.mjs.map → chunk-O6M3KDGT.mjs.map} +1 -1
- package/dist/{chunk-RGI74SQH.js → chunk-OCELRSLO.js} +4 -4
- package/dist/{chunk-RGI74SQH.js.map → chunk-OCELRSLO.js.map} +1 -1
- package/dist/{chunk-IRT4T3CU.mjs → chunk-PCYL4MII.mjs} +274 -14
- package/dist/chunk-PCYL4MII.mjs.map +1 -0
- package/dist/{chunk-Y6AEE56Q.js → chunk-ZL6C2ZAF.js} +29 -29
- package/dist/{chunk-Y6AEE56Q.js.map → chunk-ZL6C2ZAF.js.map} +1 -1
- package/dist/platform/agents-workspace.js +6 -6
- package/dist/platform/agents-workspace.mjs +5 -5
- package/dist/platform/index.js +23 -23
- package/dist/platform/index.mjs +9 -9
- package/dist/platform/pages/index.js +12 -12
- package/dist/platform/pages/index.mjs +6 -6
- package/dist/platform/workflow-canvas-shell.js +4 -4
- package/dist/platform/workflow-canvas-shell.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-5W7L7BT7.mjs.map +0 -1
- package/dist/chunk-C3H4FM4A.js.map +0 -1
- package/dist/chunk-EFOXN3LC.js.map +0 -1
- package/dist/chunk-IRT4T3CU.mjs.map +0 -1
- package/dist/chunk-NJS2YC3J.js.map +0 -1
- package/dist/chunk-QYA53LUF.mjs.map +0 -1
- package/dist/chunk-RL35XATZ.js.map +0 -1
- package/dist/chunk-U7XM3N7F.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/astrlabe/utils/workflow-validator.ts"],"names":[],"mappings":";;;AAgDA,IAAM,WAAA,GAAwC;AAAA,EAC5C,gBAAA,EAAkB,qCAAA;AAAA,EAClB,qBAAA,EAAuB,gEAAA;AAAA,EACvB,qBAAA,EAA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AQ;AAC1C,IAAA,MAAM,IAAI,MAAM,+BAA+B,CAAA;AAAA,EACjD;AAEA,EAAA,OAAO,SAAA,CAAU,GAAA,CAAI,CAAC,MAAA,KAAW,QAAQ,GAAA,CAAI,MAAM,CAAC,CAAA,CAAE,MAAA,CAAO,CAAC,IAAA,KAA+B,OAAA,CAAQ,IAAI,CAAC,CAAA;AAC5G;AAEA,SAAS,WAAA,CACP,UAAA,EACA,KAAA,EACA,OAAA,EACA,MAAA,EACwB;AACxB,EAAA,IAAI;AACF,IAAA,qBAAA,CAAsB,UAAA,EAAY,OAAO,OAAO,CAAA;AAChD,IAAA,OAAO,IAAA;AAAA,EACT,CAAA,CAAA,MAAQ;AACN,IAAA,OAAO;AAAA,MACL,IAAA,EAAM,qBAAA;AAAA,MACN,OAAA,EAAS,QAAA,CAAS,qBAAA,EAAuB,MAAA,EAAW,MAAM;AAAA,KAC5D;AAAA,EACF;AACF","file":"chunk-DJDZIRM6.js","sourcesContent":["/**\n * Workflow Validator\n * =================\n * Localizes validation output inside the UI package while keeping issue codes\n * stable enough for future contract tests against the backend validator.\n */\n\nimport type { WorkflowEdge, WorkflowGraph, WorkflowNode } from '../contracts'\n\ntype JsonRecord = Record<string, unknown>\n\ntype SupportedLocale = 'en' | 'pt-BR' | 'es' | 'fr' | 'de' | 'it'\n\ntype ValidationMessageKey =\n | 'graph.noAgents'\n | 'graph.missingSource'\n | 'graph.missingTarget'\n | 'graph.orphanNode'\n | 'graph.toolToNonAgent'\n | 'graph.ruleNoAgent'\n | 'graph.cycleDetected'\n | 'graph.multipleStartNodes'\n | 'graph.multipleEndNodes'\n | 'graph.startHasIncoming'\n | 'graph.endHasOutgoing'\n | 'graph.iterationNoOutgoing'\n | 'node.required'\n | 'node.requiredWhenLanguageSet'\n | 'node.codeShapeRequired'\n | 'node.mustBeArray'\n | 'node.mustBeReferenceArray'\n | 'node.mustBeNonEmptyReferenceArray'\n | 'node.assignmentNeedsSourceOrValue'\n | 'node.invalidAggregationMode'\n | 'node.invalidListOperation'\n | 'node.invalidLogicalOperator'\n | 'node.mustBeNumber'\n | 'node.invalidHttpMethod'\n | 'node.providerIdentityRequired'\n | 'node.inputOrInstructionsRequired'\n | 'node.invalidExtractionMode'\n | 'node.s3WriteSourceOrBodyRequired'\n | 'node.unknownType'\n\ntype ValidationParams = Record<string, string | number | undefined>\n\ntype ValidationMessageCatalog = Record<ValidationMessageKey, string>\n\nconst EN_MESSAGES: ValidationMessageCatalog = {\n 'graph.noAgents': 'At least one agent node is required',\n 'graph.missingSource': 'Edge \"{edgeId}\" references non-existent source node \"{source}\"',\n 'graph.missingTarget': 'Edge \"{edgeId}\" references non-existent target node \"{target}\"',\n 'graph.orphanNode': 'Node \"{label}\" ({nodeType}) is not connected to any other node',\n 'graph.toolToNonAgent': 'Tool \"{label}\" can only connect to agent nodes, not {targetType} nodes',\n 'graph.ruleNoAgent': 'Rule \"{label}\" must have an incoming connection from an agent',\n 'graph.cycleDetected': 'Agent nodes form a cycle; workflows must be a DAG',\n 'graph.multipleStartNodes': 'Only one Start node is allowed',\n 'graph.multipleEndNodes': 'Only one End node is allowed',\n 'graph.startHasIncoming': 'Start node cannot have incoming connections',\n 'graph.endHasOutgoing': 'End node cannot have outgoing connections',\n 'graph.iterationNoOutgoing': 'Iteration node must have at least one outgoing connection',\n 'node.required': 'is required',\n 'node.requiredWhenLanguageSet': 'is required when language is set',\n 'node.codeShapeRequired': 'either {language, code} (UI) or {operation, ...} (engine) must be set',\n 'node.mustBeArray': 'must be an array',\n 'node.mustBeReferenceArray': 'must be an array of reference strings',\n 'node.mustBeNonEmptyReferenceArray': 'must be a non-empty array of reference strings',\n 'node.assignmentNeedsSourceOrValue': 'must set either `source` or `value`',\n 'node.invalidAggregationMode': 'must be one of: array | object | concatenate',\n 'node.invalidListOperation': 'must be one of: filter | map | sort | limit | deduplicate | flatten | count | sum | avg',\n 'node.invalidLogicalOperator': 'must be `and` or `or`',\n 'node.mustBeNumber': 'must be a number',\n 'node.invalidHttpMethod': 'must be one of: GET | POST | PUT | PATCH | DELETE',\n 'node.providerIdentityRequired': 'must set `connectionId`, `modelId`, or inline `provider` + `model`',\n 'node.inputOrInstructionsRequired': 'is required (or `instructions`)',\n 'node.invalidExtractionMode': 'must be one of: text | table | structured',\n 'node.s3WriteSourceOrBodyRequired': 'Either Source URL or Body must be provided',\n 'node.unknownType': 'unknown node type `{nodeType}`',\n}\n\nconst PT_BR_MESSAGES: ValidationMessageCatalog = {\n 'graph.noAgents': 'Pelo menos um nó de agente é necessário',\n 'graph.missingSource': 'A aresta \"{edgeId}\" referencia um nó de origem inexistente \"{source}\"',\n 'graph.missingTarget': 'A aresta \"{edgeId}\" referencia um nó de destino inexistente \"{target}\"',\n 'graph.orphanNode': 'O nó \"{label}\" ({nodeType}) não está conectado a nenhum outro nó',\n 'graph.toolToNonAgent': 'A ferramenta \"{label}\" só pode se conectar a nós de agente, não a nós {targetType}',\n 'graph.ruleNoAgent': 'A regra \"{label}\" deve ter uma conexão de entrada vinda de um agente',\n 'graph.cycleDetected': 'Os nós de agente formam um ciclo; workflows devem ser um DAG',\n 'graph.multipleStartNodes': 'Apenas um nó Start é permitido',\n 'graph.multipleEndNodes': 'Apenas um nó End é permitido',\n 'graph.startHasIncoming': 'O nó Start não pode ter conexões de entrada',\n 'graph.endHasOutgoing': 'O nó End não pode ter conexões de saída',\n 'graph.iterationNoOutgoing': 'O nó Iteration deve ter pelo menos uma conexão de saída',\n 'node.required': 'é obrigatório',\n 'node.requiredWhenLanguageSet': 'é obrigatório quando language está definido',\n 'node.codeShapeRequired': 'é necessário definir {language, code} (UI) ou {operation, ...} (engine)',\n 'node.mustBeArray': 'deve ser um array',\n 'node.mustBeReferenceArray': 'deve ser um array de strings de referência',\n 'node.mustBeNonEmptyReferenceArray': 'deve ser um array não vazio de strings de referência',\n 'node.assignmentNeedsSourceOrValue': 'deve definir `source` ou `value`',\n 'node.invalidAggregationMode': 'deve ser um de: array | object | concatenate',\n 'node.invalidListOperation': 'deve ser um de: filter | map | sort | limit | deduplicate | flatten | count | sum | avg',\n 'node.invalidLogicalOperator': 'deve ser `and` ou `or`',\n 'node.mustBeNumber': 'deve ser um número',\n 'node.invalidHttpMethod': 'deve ser um de: GET | POST | PUT | PATCH | DELETE',\n 'node.providerIdentityRequired': 'deve definir `connectionId`, `modelId` ou `provider` + `model` inline',\n 'node.inputOrInstructionsRequired': 'é obrigatório (ou `instructions`)',\n 'node.invalidExtractionMode': 'deve ser um de: text | table | structured',\n 'node.s3WriteSourceOrBodyRequired': 'Forneça Source URL ou Body',\n 'node.unknownType': 'tipo de nó desconhecido `{nodeType}`',\n}\n\nconst MESSAGE_CATALOG: Record<SupportedLocale, ValidationMessageCatalog> = {\n en: EN_MESSAGES,\n 'pt-BR': PT_BR_MESSAGES,\n es: EN_MESSAGES,\n fr: EN_MESSAGES,\n de: EN_MESSAGES,\n it: EN_MESSAGES,\n}\n\nexport type ValidationLocale = SupportedLocale | string\n\nexport type ValidationIssueCode =\n | 'graph.noAgents'\n | 'graph.missingSource'\n | 'graph.missingTarget'\n | 'graph.orphanNode'\n | 'graph.toolToNonAgent'\n | 'graph.ruleNoAgent'\n | 'graph.cycleDetected'\n | 'graph.multipleStartNodes'\n | 'graph.multipleEndNodes'\n | 'graph.startHasIncoming'\n | 'graph.endHasOutgoing'\n | 'graph.iterationNoOutgoing'\n | 'node.required'\n | 'node.requiredWhenLanguageSet'\n | 'node.codeShapeRequired'\n | 'node.mustBeArray'\n | 'node.mustBeReferenceArray'\n | 'node.mustBeNonEmptyReferenceArray'\n | 'node.assignmentNeedsSourceOrValue'\n | 'node.invalidAggregationMode'\n | 'node.invalidListOperation'\n | 'node.invalidLogicalOperator'\n | 'node.mustBeNumber'\n | 'node.invalidHttpMethod'\n | 'node.providerIdentityRequired'\n | 'node.inputOrInstructionsRequired'\n | 'node.invalidExtractionMode'\n | 'node.s3WriteSourceOrBodyRequired'\n | 'node.unknownType'\n\nexport type ValidationIssue = {\n code: ValidationIssueCode\n message: string\n params?: ValidationParams\n}\n\nexport type NodeValidationIssue = ValidationIssue & {\n nodeId: string\n nodeType: string\n field?: string\n}\n\nexport type ValidationResult = {\n valid: boolean\n errors: string[]\n issues: ValidationIssue[]\n nodeIssues: NodeValidationIssue[]\n}\n\nexport type ValidationOptions = {\n locale?: ValidationLocale\n}\n\nfunction normalizeLocale(locale?: ValidationLocale): SupportedLocale {\n if (!locale) {\n return 'en'\n }\n\n if (locale in MESSAGE_CATALOG) {\n return locale as SupportedLocale\n }\n\n const lowercase = locale.toLowerCase()\n if (lowercase.startsWith('pt')) {\n return 'pt-BR'\n }\n\n if (lowercase.startsWith('es')) {\n return 'es'\n }\n\n if (lowercase.startsWith('fr')) {\n return 'fr'\n }\n\n if (lowercase.startsWith('de')) {\n return 'de'\n }\n\n if (lowercase.startsWith('it')) {\n return 'it'\n }\n\n return 'en'\n}\n\nfunction template(messageKey: ValidationMessageKey, params?: ValidationParams, locale?: ValidationLocale): string {\n const catalog = MESSAGE_CATALOG[normalizeLocale(locale)] ?? EN_MESSAGES\n const message = catalog[messageKey] ?? EN_MESSAGES[messageKey]\n return message.replace(/\\{([^}]+)\\}/g, (_, key: string) => String(params?.[key] ?? ''))\n}\n\nfunction isRecord(value: unknown): value is JsonRecord {\n return typeof value === 'object' && value !== null && !Array.isArray(value)\n}\n\nfunction getConfig(node: WorkflowNode): JsonRecord {\n return isRecord(node.data.config) ? node.data.config : {}\n}\n\nfunction getString(config: JsonRecord, field: string): string | undefined {\n const value = config[field]\n return typeof value === 'string' ? value : undefined\n}\n\nfunction hasNonEmptyString(config: JsonRecord, field: string): boolean {\n const value = getString(config, field)\n return typeof value === 'string' && value.trim().length > 0\n}\n\nfunction getArray(config: JsonRecord, field: string): unknown[] | undefined {\n const value = config[field]\n return Array.isArray(value) ? value : undefined\n}\n\nfunction getNumber(config: JsonRecord, field: string): number | undefined {\n const value = config[field]\n return typeof value === 'number' ? value : undefined\n}\n\nfunction pushNodeIssue(\n issues: NodeValidationIssue[],\n node: WorkflowNode,\n locale: ValidationLocale | undefined,\n code: ValidationIssueCode,\n field?: string,\n params?: ValidationParams,\n) {\n issues.push({\n nodeId: node.id,\n nodeType: node.type,\n field,\n code,\n params,\n message: template(code, params, locale),\n })\n}\n\nfunction pushIssue(\n issues: ValidationIssue[],\n locale: ValidationLocale | undefined,\n code: ValidationIssueCode,\n params?: ValidationParams,\n) {\n issues.push({\n code,\n params,\n message: template(code, params, locale),\n })\n}\n\nfunction ensureProviderIdentifiable(\n node: WorkflowNode,\n config: JsonRecord,\n issues: NodeValidationIssue[],\n locale?: ValidationLocale,\n) {\n const hasConnection = hasNonEmptyString(config, 'connectionId')\n const hasModelId = hasNonEmptyString(config, 'modelId')\n const hasInline = hasNonEmptyString(config, 'provider') && hasNonEmptyString(config, 'model')\n if (!hasConnection && !hasModelId && !hasInline) {\n pushNodeIssue(issues, node, locale, 'node.providerIdentityRequired', 'provider')\n }\n}\n\nfunction formatNodeIssue(issue: NodeValidationIssue, nodeMap: Map<string, WorkflowNode>): string {\n const label = nodeMap.get(issue.nodeId)?.data.label ?? issue.nodeId\n const fieldRef = issue.field ? ` (${issue.field})` : ''\n return `Node \"${label}\" [${issue.nodeType}]${fieldRef}: ${issue.message}`\n}\n\nexport function validateNodeConfig(node: WorkflowNode, options: ValidationOptions = {}): NodeValidationIssue[] {\n const locale = options.locale\n const config = getConfig(node)\n const issues: NodeValidationIssue[] = []\n const nodeType = node.type as string\n\n switch (nodeType) {\n case 'start':\n case 'note':\n case 'group':\n case 'dashboard_output':\n break\n\n case 'end': {\n if ('outputVariables' in config && !Array.isArray(config.outputVariables)) {\n pushNodeIssue(issues, node, locale, 'node.mustBeReferenceArray', 'outputVariables')\n } else if (Array.isArray(config.outputs)) {\n config.outputs.forEach((entry, index) => {\n if (!isRecord(entry) || typeof entry.key !== 'string' || entry.key.trim().length === 0) {\n pushNodeIssue(issues, node, locale, 'node.required', `outputs[${index}].key`)\n }\n if (!isRecord(entry) || typeof entry.from !== 'string' || entry.from.trim().length === 0) {\n pushNodeIssue(issues, node, locale, 'node.required', `outputs[${index}].from`)\n }\n })\n }\n break\n }\n\n case 'code': {\n const hasLanguage = 'language' in config\n const hasOperation = 'operation' in config\n if (hasLanguage) {\n if (!hasNonEmptyString(config, 'code')) {\n pushNodeIssue(issues, node, locale, 'node.requiredWhenLanguageSet', 'code')\n }\n } else if (!hasOperation) {\n pushNodeIssue(issues, node, locale, 'node.codeShapeRequired', 'operation')\n }\n break\n }\n\n case 'iteration_start': {\n for (const field of ['iteratorVariable', 'itemVariable', 'indexVariable']) {\n if (!hasNonEmptyString(config, field)) {\n pushNodeIssue(issues, node, locale, 'node.required', field)\n }\n }\n break\n }\n\n case 'entity':\n if (!hasNonEmptyString(config, 'entityMasterId')) {\n pushNodeIssue(issues, node, locale, 'node.required', 'entityMasterId')\n }\n break\n\n case 'datasource':\n if (!hasNonEmptyString(config, 'datasourceId')) {\n pushNodeIssue(issues, node, locale, 'node.required', 'datasourceId')\n }\n break\n\n case 'model_provider':\n if (!hasNonEmptyString(config, 'providerType')) {\n pushNodeIssue(issues, node, locale, 'node.required', 'providerType')\n }\n break\n\n case 'variable_assigner': {\n const assignments = getArray(config, 'assignments')\n if (!assignments) {\n pushNodeIssue(issues, node, locale, 'node.mustBeArray', 'assignments')\n return issues\n }\n\n assignments.forEach((entry, index) => {\n const record = isRecord(entry) ? entry : {}\n const target = typeof record.target === 'string' && record.target.trim().length > 0\n const legacyTarget = typeof record.key === 'string' && record.key.trim().length > 0\n if (!target && !legacyTarget) {\n pushNodeIssue(issues, node, locale, 'node.required', `assignments[${index}].target`)\n }\n\n const source = typeof record.source === 'string' && record.source.trim().length > 0\n const legacySource = typeof record.from === 'string' && record.from.trim().length > 0\n const hasValue = 'value' in record\n if (!source && !legacySource && !hasValue) {\n pushNodeIssue(issues, node, locale, 'node.assignmentNeedsSourceOrValue', `assignments[${index}]`)\n }\n })\n break\n }\n\n case 'variable_aggregator': {\n if ('inputVariables' in config) {\n const inputVariables = getArray(config, 'inputVariables')\n if (!inputVariables || inputVariables.length === 0) {\n pushNodeIssue(issues, node, locale, 'node.mustBeNonEmptyReferenceArray', 'inputVariables')\n }\n if (!hasNonEmptyString(config, 'outputVariable')) {\n pushNodeIssue(issues, node, locale, 'node.required', 'outputVariable')\n }\n const aggregationMode = getString(config, 'aggregationMode')\n if (aggregationMode && !['array', 'object', 'concatenate'].includes(aggregationMode)) {\n pushNodeIssue(issues, node, locale, 'node.invalidAggregationMode', 'aggregationMode')\n }\n }\n break\n }\n\n case 'list_operator': {\n const operation = getString(config, 'operation') ?? ''\n if (!operation) {\n pushNodeIssue(issues, node, locale, 'node.required', 'operation')\n } else if (!['filter', 'map', 'sort', 'limit', 'deduplicate', 'flatten', 'count', 'sum', 'avg'].includes(operation)) {\n pushNodeIssue(issues, node, locale, 'node.invalidListOperation', 'operation')\n }\n\n const inputVariable = getString(config, 'inputVariable')\n const legacySource = getString(config, 'source')\n if (!(inputVariable && inputVariable.trim()) && !(legacySource && legacySource.trim())) {\n pushNodeIssue(issues, node, locale, 'node.required', 'inputVariable')\n }\n break\n }\n\n case 'template_transform':\n if (!hasNonEmptyString(config, 'template')) {\n pushNodeIssue(issues, node, locale, 'node.required', 'template')\n }\n break\n\n case 'answer': {\n const outputTemplate = getString(config, 'outputTemplate')\n const legacyAnswer = getString(config, 'answer')\n if (!(outputTemplate && outputTemplate.trim()) && !(legacyAnswer && legacyAnswer.trim())) {\n pushNodeIssue(issues, node, locale, 'node.required', 'outputTemplate')\n }\n break\n }\n\n case 'if_else': {\n const conditions = getArray(config, 'conditions')\n if (!conditions || conditions.length === 0) {\n pushNodeIssue(issues, node, locale, 'node.mustBeArray', 'conditions')\n } else {\n conditions.forEach((condition, index) => {\n const record = isRecord(condition) ? condition : {}\n if (typeof record.variable !== 'string' || record.variable.trim().length === 0) {\n pushNodeIssue(issues, node, locale, 'node.required', `conditions[${index}].variable`)\n }\n if (typeof record.operator !== 'string' || record.operator.trim().length === 0) {\n pushNodeIssue(issues, node, locale, 'node.required', `conditions[${index}].operator`)\n }\n })\n }\n\n const logicalOperator = getString(config, 'logicalOperator')\n if (logicalOperator && !['and', 'or'].includes(logicalOperator)) {\n pushNodeIssue(issues, node, locale, 'node.invalidLogicalOperator', 'logicalOperator')\n }\n break\n }\n\n case 'iteration': {\n const iteratorVariable = getString(config, 'iteratorVariable')\n const legacySource = getString(config, 'source')\n if (!(iteratorVariable && iteratorVariable.trim()) && !(legacySource && legacySource.trim())) {\n pushNodeIssue(issues, node, locale, 'node.required', 'iteratorVariable')\n }\n if ('maxIterations' in config && getNumber(config, 'maxIterations') === undefined) {\n pushNodeIssue(issues, node, locale, 'node.mustBeNumber', 'maxIterations')\n }\n break\n }\n\n case 'http_request': {\n const method = (getString(config, 'method') ?? '').toUpperCase()\n if (!['GET', 'POST', 'PUT', 'PATCH', 'DELETE'].includes(method)) {\n pushNodeIssue(issues, node, locale, 'node.invalidHttpMethod', 'method')\n }\n if (!hasNonEmptyString(config, 'url')) {\n pushNodeIssue(issues, node, locale, 'node.required', 'url')\n }\n break\n }\n\n case 's3_write': {\n // Mirrors the Rust `s3_write` arm in\n // `lambda-rs/crates/platform-workflow-handlers/src/engine/validation.rs`.\n // `key` is required; either `sourceUrl` or `body` must be present.\n if (!hasNonEmptyString(config, 'key')) {\n pushNodeIssue(issues, node, locale, 'node.required', 'key')\n }\n const hasSource = hasNonEmptyString(config, 'sourceUrl')\n const hasBody = hasNonEmptyString(config, 'body')\n if (!hasSource && !hasBody) {\n pushNodeIssue(issues, node, locale, 'node.s3WriteSourceOrBodyRequired', 'sourceUrl')\n }\n break\n }\n\n case 'rule':\n break\n\n case 'agent':\n if (!hasNonEmptyString(config, 'userPrompt')) {\n pushNodeIssue(issues, node, locale, 'node.required', 'userPrompt')\n }\n ensureProviderIdentifiable(node, config, issues, locale)\n break\n\n case 'question_classifier': {\n ensureProviderIdentifiable(node, config, issues, locale)\n const input = getString(config, 'input')\n const instructions = getString(config, 'instructions')\n if (!(input && input.trim()) && !(instructions && instructions.trim())) {\n pushNodeIssue(issues, node, locale, 'node.inputOrInstructionsRequired', 'input')\n }\n\n const categories = getArray(config, 'categories') ?? getArray(config, 'classes')\n if (!categories || categories.length === 0) {\n pushNodeIssue(issues, node, locale, 'node.mustBeArray', 'categories')\n }\n break\n }\n\n case 'parameter_extractor': {\n ensureProviderIdentifiable(node, config, issues, locale)\n if (!hasNonEmptyString(config, 'input')) {\n pushNodeIssue(issues, node, locale, 'node.required', 'input')\n }\n const parameters = getArray(config, 'parameters')\n if (!parameters || parameters.length === 0) {\n pushNodeIssue(issues, node, locale, 'node.mustBeArray', 'parameters')\n }\n break\n }\n\n case 'tool':\n if (!hasNonEmptyString(config, 'toolId')) {\n pushNodeIssue(issues, node, locale, 'node.required', 'toolId')\n }\n break\n\n case 'agent_tool':\n if (!hasNonEmptyString(config, 'agentId')) {\n pushNodeIssue(issues, node, locale, 'node.required', 'agentId')\n }\n if (!hasNonEmptyString(config, 'toolId')) {\n pushNodeIssue(issues, node, locale, 'node.required', 'toolId')\n }\n break\n\n case 'knowledge_base':\n if (!hasNonEmptyString(config, 'sourceId')) {\n pushNodeIssue(issues, node, locale, 'node.required', 'sourceId')\n }\n if ('topK' in config && getNumber(config, 'topK') === undefined) {\n pushNodeIssue(issues, node, locale, 'node.mustBeNumber', 'topK')\n }\n if ('similarityThreshold' in config && getNumber(config, 'similarityThreshold') === undefined) {\n pushNodeIssue(issues, node, locale, 'node.mustBeNumber', 'similarityThreshold')\n }\n break\n\n case 'document_extractor': {\n const extractionMode = getString(config, 'extractionMode')\n if (extractionMode && !['text', 'table', 'structured'].includes(extractionMode)) {\n pushNodeIssue(issues, node, locale, 'node.invalidExtractionMode', 'extractionMode')\n }\n break\n }\n\n case 'audio_input':\n if (!hasNonEmptyString(config, 'url')) {\n pushNodeIssue(issues, node, locale, 'node.required', 'url')\n }\n break\n\n case 'speech_transcriber':\n // The responseFormat enum is enforced by the Rust validator at publish\n // time — keeping this arm field-level only to stay in sync with the\n // \"Rust is the single source of truth for runtime checks\" rule.\n if (!hasNonEmptyString(config, 'audioUrl')) {\n pushNodeIssue(issues, node, locale, 'node.required', 'audioUrl')\n }\n break\n\n default:\n pushNodeIssue(issues, node, locale, 'node.unknownType', undefined, { nodeType })\n break\n }\n\n return issues\n}\n\nexport function validateGraphNodeConfigs(graph: WorkflowGraph, options: ValidationOptions = {}): NodeValidationIssue[] {\n return graph.nodes.flatMap((node) => validateNodeConfig(node, options))\n}\n\nexport function validateWorkflowGraph(graph: WorkflowGraph, options: ValidationOptions = {}): ValidationResult {\n const locale = options.locale\n const issues: ValidationIssue[] = []\n const nodeMap = new Map<string, WorkflowNode>()\n\n for (const node of graph.nodes) {\n nodeMap.set(node.id, node)\n }\n\n const agentNodes = graph.nodes.filter((node) => node.type === 'agent')\n if (agentNodes.length === 0) {\n pushIssue(issues, locale, 'graph.noAgents')\n }\n\n for (const edge of graph.edges) {\n if (!nodeMap.has(edge.source)) {\n pushIssue(issues, locale, 'graph.missingSource', { edgeId: edge.id, source: edge.source })\n }\n if (!nodeMap.has(edge.target)) {\n pushIssue(issues, locale, 'graph.missingTarget', { edgeId: edge.id, target: edge.target })\n }\n }\n\n const connectedNodeIds = new Set<string>()\n for (const edge of graph.edges) {\n connectedNodeIds.add(edge.source)\n connectedNodeIds.add(edge.target)\n }\n\n for (const node of graph.nodes) {\n if (node.type === 'note') continue\n if (!connectedNodeIds.has(node.id)) {\n pushIssue(issues, locale, 'graph.orphanNode', {\n label: node.data.label ?? node.id,\n nodeType: node.type,\n })\n }\n }\n\n for (const edge of graph.edges) {\n const sourceNode = nodeMap.get(edge.source)\n const targetNode = nodeMap.get(edge.target)\n if (!sourceNode || !targetNode) continue\n\n if (sourceNode.type === 'tool' && targetNode.type !== 'agent') {\n pushIssue(issues, locale, 'graph.toolToNonAgent', {\n label: sourceNode.data.label ?? sourceNode.id,\n targetType: targetNode.type,\n })\n }\n }\n\n const ruleNodes = graph.nodes.filter((node) => node.type === 'rule')\n for (const ruleNode of ruleNodes) {\n const incomingEdges = graph.edges.filter((edge) => edge.target === ruleNode.id)\n const hasAgentSource = incomingEdges.some((edge) => nodeMap.get(edge.source)?.type === 'agent')\n if (incomingEdges.length === 0 || !hasAgentSource) {\n pushIssue(issues, locale, 'graph.ruleNoAgent', {\n label: ruleNode.data.label ?? ruleNode.id,\n })\n }\n }\n\n if (agentNodes.length > 1) {\n const cycleIssue = detectCycle(agentNodes, graph.edges, nodeMap, locale)\n if (cycleIssue) {\n issues.push(cycleIssue)\n }\n }\n\n const startNodes = graph.nodes.filter((node) => node.type === 'start')\n if (startNodes.length > 1) {\n pushIssue(issues, locale, 'graph.multipleStartNodes')\n }\n\n const endNodes = graph.nodes.filter((node) => node.type === 'end')\n if (endNodes.length > 1) {\n pushIssue(issues, locale, 'graph.multipleEndNodes')\n }\n\n for (const startNode of startNodes) {\n const incomingEdges = graph.edges.filter((edge) => edge.target === startNode.id)\n if (incomingEdges.length > 0) {\n pushIssue(issues, locale, 'graph.startHasIncoming')\n }\n }\n\n for (const endNode of endNodes) {\n const outgoingEdges = graph.edges.filter((edge) => edge.source === endNode.id)\n if (outgoingEdges.length > 0) {\n pushIssue(issues, locale, 'graph.endHasOutgoing')\n }\n }\n\n const iterationNodes = graph.nodes.filter((node) => node.type === 'iteration')\n for (const iterationNode of iterationNodes) {\n const outgoingEdges = graph.edges.filter((edge) => edge.source === iterationNode.id)\n if (outgoingEdges.length === 0) {\n pushIssue(issues, locale, 'graph.iterationNoOutgoing')\n }\n }\n\n const nodeIssues = validateGraphNodeConfigs(graph, options)\n const errors = [\n ...issues.map((issue) => issue.message),\n ...nodeIssues.map((issue) => formatNodeIssue(issue, nodeMap)),\n ]\n\n return {\n valid: errors.length === 0,\n errors,\n issues,\n nodeIssues,\n }\n}\n\nexport function topologicalSortAgents(\n agentNodes: WorkflowNode[],\n edges: WorkflowEdge[],\n nodeMap: Map<string, WorkflowNode>,\n): WorkflowNode[] {\n const adjacency = new Map<string, string[]>()\n const inDegree = new Map<string, number>()\n\n for (const node of agentNodes) {\n adjacency.set(node.id, [])\n inDegree.set(node.id, 0)\n }\n\n for (const edge of edges) {\n const sourceNode = nodeMap.get(edge.source)\n const targetNode = nodeMap.get(edge.target)\n if (!sourceNode || !targetNode) continue\n\n if (sourceNode.type === 'agent' && targetNode.type === 'agent') {\n adjacency.get(edge.source)?.push(edge.target)\n inDegree.set(edge.target, (inDegree.get(edge.target) ?? 0) + 1)\n }\n }\n\n const queue = agentNodes\n .filter((node) => (inDegree.get(node.id) ?? 0) === 0)\n .map((node) => node.id)\n\n const sortedIds: string[] = []\n\n while (queue.length > 0) {\n const nodeId = queue.shift()\n if (!nodeId) break\n sortedIds.push(nodeId)\n\n const neighbors = adjacency.get(nodeId) ?? []\n for (const neighborId of neighbors) {\n const newInDegree = (inDegree.get(neighborId) ?? 1) - 1\n inDegree.set(neighborId, newInDegree)\n if (newInDegree === 0) {\n queue.push(neighborId)\n }\n }\n }\n\n if (sortedIds.length !== agentNodes.length) {\n throw new Error('Cycle detected in agent graph')\n }\n\n return sortedIds.map((nodeId) => nodeMap.get(nodeId)).filter((node): node is WorkflowNode => Boolean(node))\n}\n\nfunction detectCycle(\n agentNodes: WorkflowNode[],\n edges: WorkflowEdge[],\n nodeMap: Map<string, WorkflowNode>,\n locale?: ValidationLocale,\n): ValidationIssue | null {\n try {\n topologicalSortAgents(agentNodes, edges, nodeMap)\n return null\n } catch {\n return {\n code: 'graph.cycleDetected',\n message: template('graph.cycleDetected', undefined, locale),\n }\n }\n}\n"]}
|
|
@@ -128,6 +128,19 @@ function createDefaultLogicNodeConfig(nodeType) {
|
|
|
128
128
|
type: "dashboard_output",
|
|
129
129
|
dashboardFrom: ""
|
|
130
130
|
};
|
|
131
|
+
case "audio_input":
|
|
132
|
+
return {
|
|
133
|
+
type: "audio_input",
|
|
134
|
+
url: ""
|
|
135
|
+
};
|
|
136
|
+
case "speech_transcriber":
|
|
137
|
+
return {
|
|
138
|
+
type: "speech_transcriber",
|
|
139
|
+
audioUrl: "",
|
|
140
|
+
model: "whisper-1",
|
|
141
|
+
responseFormat: "verbose_json",
|
|
142
|
+
timeoutMs: 12e4
|
|
143
|
+
};
|
|
131
144
|
default:
|
|
132
145
|
return null;
|
|
133
146
|
}
|
|
@@ -201,5 +214,5 @@ function getAgentTier(elo) {
|
|
|
201
214
|
}
|
|
202
215
|
|
|
203
216
|
export { applyDagreLayout, createDefaultLogicNodeConfig, getAgentTier };
|
|
204
|
-
//# sourceMappingURL=chunk-
|
|
205
|
-
//# sourceMappingURL=chunk-
|
|
217
|
+
//# sourceMappingURL=chunk-G7JQ4OCE.mjs.map
|
|
218
|
+
//# sourceMappingURL=chunk-G7JQ4OCE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/astrlabe/utils/logic-node-defaults.ts","../src/astrlabe/utils/layout-engine.ts","../src/astrlabe/utils/agent-tier.ts"],"names":[],"mappings":";;;AAQO,SAAS,6BAA6B,QAAA,EAAoD;AAC/F,EAAA,QAAQ,QAAA;AAAU,IAChB,KAAK,OAAA;AACH,MAAA,OAAO,EAAE,IAAA,EAAM,OAAA,EAAS,cAAA,EAAgB,EAAC,EAAE;AAAA,IAC7C,KAAK,KAAA;AACH,MAAA,OAAO,EAAE,IAAA,EAAM,KAAA,EAAO,eAAA,EAAiB,EAAC,EAAE;AAAA,IAC5C,KAAK,SAAA;AACH,MAAA,OAAO;AAAA,QACL,IAAA,EAAM,SAAA;AAAA,QACN,UAAA,EAAY,CAAC,EAAE,QAAA,EAAU,IAAI,QAAA,EAAU,QAAA,EAAU,KAAA,EAAO,EAAA,EAAI,CAAA;AAAA,QAC5D,eAAA,EAAiB;AAAA,OACnB;AAAA,IACF,KAAK,MAAA;AACH,MAAA,OAAO,EAAE,IAAA,EAAM,MAAA,EAAQ,QAAA,EAAU,YAAA,EAAc,MAAM,EAAA,EAAG;AAAA,IAC1D,KAAK,cAAA;AACH,MAAA,OAAO;AAAA,QACL,IAAA,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;AAAA,EAC7H,EAAE,QAAQ,GAAA,EAAM,IAAA,EAAM,EAAE,GAAA,EAAK,UAAA,EAAY,SAAA,EAAW,sEAAA,EAAuE,EAAE;AAAA,EAC7H,EAAE,QAAQ,QAAA,EAAU,IAAA,EAAM,EAAE,GAAA,EAAK,QAAA,EAAU,SAAA,EAAW,8EAAA,EAA+E;AACvI,CAAA;AAEO,SAAS,aAAa,GAAA,EAAoC;AAC/D,EAAA,MAAM,WAAW,GAAA,IAAO,CAAA;AACxB,EAAA,KAAA,MAAW,EAAE,MAAA,EAAQ,IAAA,EAAK,IAAK,KAAA,EAAO;AACpC,IAAA,IAAI,QAAA,GAAW,QAAQ,OAAO,IAAA;AAAA,EAChC;AACA,EAAA,OAAO,KAAA,CAAM,KAAA,CAAM,MAAA,GAAS,CAAC,CAAA,CAAE,IAAA;AACjC","file":"chunk-G7JQ4OCE.mjs","sourcesContent":["/**\n * Logic Node Default Configs\n * ==========================\n * Factory function to create default configs for each logic node type.\n */\n\nimport type { WorkflowNodeType, LogicNodeConfig } from '../contracts'\n\nexport function createDefaultLogicNodeConfig(nodeType: WorkflowNodeType): LogicNodeConfig | null {\n switch (nodeType) {\n case 'start':\n return { type: 'start', inputVariables: [] }\n case 'end':\n return { type: 'end', outputVariables: [] }\n case 'if_else':\n return {\n type: 'if_else',\n conditions: [{ variable: '', operator: 'equals', value: '' }],\n logicalOperator: 'and',\n }\n case 'code':\n return { type: 'code', language: 'javascript', code: '' }\n case 'http_request':\n return {\n type: 'http_request',\n method: 'GET',\n url: '',\n headers: {},\n body: '',\n timeoutMs: 10000,\n }\n case 's3_write':\n return {\n type: 's3_write',\n bucket: '',\n key: '',\n sourceUrl: '',\n body: '',\n contentType: '',\n timeoutMs: 300000,\n connectionId: '',\n }\n case 'template_transform':\n return { type: 'template_transform', template: '', outputVariable: '' }\n case 'iteration':\n return { type: 'iteration', iteratorVariable: '', maxIterations: 100 }\n case 'knowledge_base':\n return { type: 'knowledge_base', sourceId: '', topK: 5, similarityThreshold: 0.7 }\n case 'answer':\n return { type: 'answer', outputTemplate: '', outputVariables: [] }\n case 'question_classifier':\n return {\n type: 'question_classifier',\n modelId: '',\n instructions: '',\n categories: [\n { id: crypto.randomUUID(), name: '', description: '' },\n { id: crypto.randomUUID(), name: '', description: '' },\n ],\n }\n case 'parameter_extractor':\n return {\n type: 'parameter_extractor',\n modelId: '',\n parameters: [{ name: '', type: 'string', description: '', required: true }],\n }\n case 'variable_assigner':\n return {\n type: 'variable_assigner',\n assignments: [{ target: '', source: '' }],\n }\n case 'variable_aggregator':\n return {\n type: 'variable_aggregator',\n inputVariables: [],\n outputVariable: '',\n aggregationMode: 'array',\n }\n case 'document_extractor':\n return {\n type: 'document_extractor',\n extractionMode: 'text',\n outputVariable: '',\n }\n case 'list_operator':\n return {\n type: 'list_operator',\n operation: 'filter',\n inputVariable: '',\n outputVariable: '',\n condition: '',\n }\n case 'iteration_start':\n return {\n type: 'iteration_start',\n iteratorVariable: '',\n itemVariable: 'item',\n indexVariable: 'index',\n }\n case 'note':\n return {\n type: 'note',\n text: '',\n color: 'yellow',\n width: 200,\n height: 150,\n }\n case 'group':\n return {\n type: 'group',\n label: 'Group',\n color: 'slate',\n isExpanded: true,\n width: 400,\n height: 300,\n collapsedWidth: 260,\n collapsedHeight: 60,\n }\n case 'datasource':\n return {\n type: 'datasource',\n datasourceId: '',\n dialect: '',\n table: '',\n selectedColumns: [],\n filterVariables: {},\n outputVariable: 'datasourceResult',\n limit: 100,\n }\n case 'dashboard_output':\n return {\n type: 'dashboard_output',\n dashboardFrom: '',\n }\n case 'audio_input':\n return {\n type: 'audio_input',\n url: '',\n }\n case 'speech_transcriber':\n return {\n type: 'speech_transcriber',\n audioUrl: '',\n model: 'whisper-1',\n responseFormat: 'verbose_json',\n timeoutMs: 120_000,\n }\n default:\n return null\n }\n}\n","/**\n * Layout Engine\n * =============\n * Auto-layout for workflow graphs using @dagrejs/dagre.\n * Pure utility — no React dependencies.\n */\n\nimport Dagre from '@dagrejs/dagre'\nimport type { Node, Edge } from '@xyflow/react'\n\n/** Layout direction: free means no auto-layout is applied. */\nexport type LayoutDirection = 'free' | 'LR' | 'TB'\n\nconst DEFAULT_NODE_WIDTH = 260\nconst DEFAULT_NODE_HEIGHT = 70\n\nfunction getNodeSize(node: Node): { width: number; height: number } {\n const measured = node.measured as { width?: number; height?: number } | undefined\n return {\n width: measured?.width ?? DEFAULT_NODE_WIDTH,\n height: measured?.height ?? DEFAULT_NODE_HEIGHT,\n }\n}\n\n/**\n * Apply dagre layout to the given nodes and edges.\n * Returns a new array of nodes with updated positions.\n * Group child nodes (parentId set) and note nodes are excluded from layout.\n */\nexport function applyDagreLayout(\n nodes: Node[],\n edges: Edge[],\n direction: Exclude<LayoutDirection, 'free'>,\n): Node[] {\n const nodeSpacingHorizontal = 80\n const nodeSpacingVertical = 50\n\n // Separate layoutable nodes from excluded ones\n const layoutNodes = nodes.filter(\n (node) => !node.parentId && node.type !== 'note',\n )\n\n // Build dagre graph\n const dagreGraph = new Dagre.graphlib.Graph({ directed: true })\n dagreGraph.setDefaultEdgeLabel(() => ({}))\n\n const isHorizontal = direction === 'LR'\n dagreGraph.setGraph({\n rankdir: direction,\n nodesep: isHorizontal ? nodeSpacingVertical : nodeSpacingHorizontal,\n ranksep: isHorizontal ? nodeSpacingHorizontal : nodeSpacingVertical,\n marginx: 40,\n marginy: 40,\n })\n\n const layoutNodeIds = new Set(layoutNodes.map((node) => node.id))\n\n for (const node of layoutNodes) {\n const { width, height } = getNodeSize(node)\n dagreGraph.setNode(node.id, { width, height })\n }\n\n for (const edge of edges) {\n if (layoutNodeIds.has(edge.source) && layoutNodeIds.has(edge.target)) {\n dagreGraph.setEdge(edge.source, edge.target)\n }\n }\n\n Dagre.layout(dagreGraph)\n\n // Build position map — dagre returns center coords, React Flow uses top-left\n const positionMap = new Map<string, { x: number; y: number }>()\n for (const node of layoutNodes) {\n const dagreNode = dagreGraph.node(node.id)\n if (!dagreNode) continue\n const { width, height } = getNodeSize(node)\n positionMap.set(node.id, {\n x: dagreNode.x - width / 2,\n y: dagreNode.y - height / 2,\n })\n }\n\n // Return all nodes with updated positions for layout-participating nodes\n return nodes.map((node) => {\n const newPosition = positionMap.get(node.id)\n if (!newPosition) return node\n return { ...node, position: newPosition }\n })\n}\n","/**\n * Agent ELO Tier\n * ==============\n * Derives difficulty tier from agent ELO rating.\n * Used in node palette, agent flow node, and agent modal.\n */\n\nexport type AgentTier = {\n key: 'beginner' | 'intermediate' | 'advanced' | 'expert'\n pillColor: string\n}\n\nconst TIERS: Array<{ maxElo: number; tier: AgentTier }> = [\n { maxElo: 1200, tier: { key: 'beginner', pillColor: 'bg-cyan-100 text-cyan-700 dark:bg-cyan-900/30 dark:text-cyan-400' } },\n { maxElo: 1600, tier: { key: 'intermediate', pillColor: 'bg-pink-100 text-pink-700 dark:bg-pink-900/30 dark:text-pink-400' } },\n { maxElo: 2000, tier: { key: 'advanced', pillColor: 'bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400' } },\n { maxElo: Infinity, tier: { key: 'expert', pillColor: 'bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400' } },\n]\n\nexport function getAgentTier(elo: number | undefined): AgentTier {\n const eloValue = elo ?? 0\n for (const { maxElo, tier } of TIERS) {\n if (eloValue < maxElo) return tier\n }\n return TIERS[TIERS.length - 1].tier\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Workspace } from './chunk-
|
|
2
|
+
import { Workspace } from './chunk-PCYL4MII.mjs';
|
|
3
3
|
import { useLocale } from './chunk-7VJ7CMMT.mjs';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -16,5 +16,5 @@ function WorkflowCanvasShell({ graph, messages }) {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export { WorkflowCanvasShell };
|
|
19
|
-
//# sourceMappingURL=chunk-
|
|
20
|
-
//# sourceMappingURL=chunk-
|
|
19
|
+
//# sourceMappingURL=chunk-GIQXB3BG.mjs.map
|
|
20
|
+
//# sourceMappingURL=chunk-GIQXB3BG.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/platform/workflow-canvas-shell.tsx"],"names":[],"mappings":";;;;AAkBO,SAAS,mBAAA,CAAoB,EAAE,KAAA,EAAO,QAAA,EAAS,EAAU;AAC9D,EAAA,MAAM,SAAS,SAAA,EAAU;AACzB,EAAA,uBACE,GAAA;AAAA,IAAC,SAAA;AAAA,IAAA;AAAA,MACC,YAAA,EAAc,KAAA;AAAA,MACd,MAAA;AAAA,MACC,GAAI,QAAA,GAAW,EAAE,QAAA,KAAa;AAAC;AAAA,GAClC;AAEJ","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/platform/workflow-canvas-shell.tsx"],"names":[],"mappings":";;;;AAkBO,SAAS,mBAAA,CAAoB,EAAE,KAAA,EAAO,QAAA,EAAS,EAAU;AAC9D,EAAA,MAAM,SAAS,SAAA,EAAU;AACzB,EAAA,uBACE,GAAA;AAAA,IAAC,SAAA;AAAA,IAAA;AAAA,MACC,YAAA,EAAc,KAAA;AAAA,MACd,MAAA;AAAA,MACC,GAAI,QAAA,GAAW,EAAE,QAAA,KAAa;AAAC;AAAA,GAClC;AAEJ","file":"chunk-GIQXB3BG.mjs","sourcesContent":["import { useLocale } from '@ui/lib/i18n-context'\nimport { Workspace } from '@ui/astrlabe/workflow-canvas'\nimport type { WorkflowGraph as UiWorkflowGraph } from '@ui/astrlabe'\nimport type { WorkflowCanvasShellProps } from '@datatechsolutions/shared-domain/common'\n\n/**\n * Workflow canvas shell with optional message bundle override.\n *\n * Most apps wrap their tree in `<I18nProvider>` and let the canvas read\n * messages from context — in that case `messages` can be omitted. Apps\n * that need to inject a precomputed bundle (e.g. for tests or app-specific\n * overrides not shipped with shared-domain) can pass it explicitly.\n */\ntype Props = WorkflowCanvasShellProps & {\n /** Optional override for the messages catalog passed into the canvas. */\n messages?: Record<string, unknown>\n}\n\nexport function WorkflowCanvasShell({ graph, messages }: Props) {\n const locale = useLocale()\n return (\n <Workspace\n initialGraph={graph as unknown as UiWorkflowGraph}\n locale={locale}\n {...(messages ? { messages } : {})}\n />\n )\n}\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkNJFRJ6YD_js = require('./chunk-NJFRJ6YD.js');
|
|
5
5
|
var chunkI2NZGVBG_js = require('./chunk-I2NZGVBG.js');
|
|
6
6
|
var chunkYXN2K77G_js = require('./chunk-YXN2K77G.js');
|
|
7
|
-
var
|
|
7
|
+
var chunk72SWXOD5_js = require('./chunk-72SWXOD5.js');
|
|
8
8
|
var react = require('react');
|
|
9
9
|
var react$1 = require('@xyflow/react');
|
|
10
10
|
var outline = require('@heroicons/react/24/outline');
|
|
@@ -17,10 +17,10 @@ var S3WriteFlowNode = react.memo(function S3WriteFlowNode2({ id, data, selected
|
|
|
17
17
|
const isCompact = data.displayMode === "compact";
|
|
18
18
|
const keyPreview = config.key ? config.key.slice(0, 30) : "";
|
|
19
19
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
20
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
20
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNJFRJ6YD_js.NodeRunningIndicator, { nodeId: id }),
|
|
21
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNJFRJ6YD_js.WorkflowHandle, { type: "target", position: react$1.Position.Left, id: "left-in", colorClass: "!bg-cyan-500" }),
|
|
22
22
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
23
|
-
|
|
23
|
+
chunkNJFRJ6YD_js.NodeInteractiveCard,
|
|
24
24
|
{
|
|
25
25
|
nodeId: id,
|
|
26
26
|
onEdit,
|
|
@@ -29,27 +29,27 @@ var S3WriteFlowNode = react.memo(function S3WriteFlowNode2({ id, data, selected
|
|
|
29
29
|
nodeType: "s3_write",
|
|
30
30
|
children: [
|
|
31
31
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
32
|
-
|
|
32
|
+
chunkNJFRJ6YD_js.NodeCardHeader,
|
|
33
33
|
{
|
|
34
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
34
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkNJFRJ6YD_js.NodeIconBubble, { tone: "s3_write", children: /* @__PURE__ */ jsxRuntime.jsx(outline.CloudArrowUpIcon, { className: "h-5 w-5 text-white" }) }),
|
|
35
35
|
title: label,
|
|
36
36
|
description: t("s3WriteNodeDescription"),
|
|
37
37
|
compact: isCompact,
|
|
38
38
|
iconClassName: ""
|
|
39
39
|
}
|
|
40
40
|
),
|
|
41
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
41
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkNJFRJ6YD_js.NodeCardMeta, { compact: isCompact, children: [
|
|
42
42
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
43
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
44
|
-
config.bucket && /* @__PURE__ */ jsxRuntime.jsx(
|
|
43
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNJFRJ6YD_js.NodeCardBadge, { tone: "s3_write", children: t("s3WriteNode") }),
|
|
44
|
+
config.bucket && /* @__PURE__ */ jsxRuntime.jsx(chunkNJFRJ6YD_js.NodeCardBadge, { tone: "s3_write", soft: true, children: config.bucket }),
|
|
45
45
|
keyPreview && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-[10px] text-gray-400 dark:text-gray-500", children: keyPreview })
|
|
46
46
|
] }),
|
|
47
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
47
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNJFRJ6YD_js.NodeCardDeleteAction, { nodeId: id, onDelete })
|
|
48
48
|
] })
|
|
49
49
|
]
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
52
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNJFRJ6YD_js.WorkflowHandle, { type: "source", position: react$1.Position.Right, id: "right-out", colorClass: "!bg-cyan-500" })
|
|
53
53
|
] });
|
|
54
54
|
});
|
|
55
55
|
function AnthropicModelIcon({ className }) {
|
|
@@ -325,7 +325,7 @@ function OutputCard({ label, value }) {
|
|
|
325
325
|
function AgentProfileHeader({ agent, models, t, selectedModelId, setSelectedModelId, selectedFramework, temperature, setTemperature, elo, setElo, onChanged }) {
|
|
326
326
|
const modelName = models.find((model) => model.id === selectedModelId)?.name ?? selectedModelId ?? "\u2014";
|
|
327
327
|
const avatarUrl = agent.avatar;
|
|
328
|
-
const frameworkMeta =
|
|
328
|
+
const frameworkMeta = chunkNJFRJ6YD_js.getFrameworkMeta(selectedFramework);
|
|
329
329
|
const tierInfo = getEloTier(elo);
|
|
330
330
|
const difficultyConfig = {
|
|
331
331
|
beginner: { color: "bg-cyan-100 text-cyan-700 dark:bg-cyan-900/30 dark:text-cyan-400", labelKey: "agentDrawer.tierBeginner" },
|
|
@@ -601,13 +601,13 @@ function AgentCapabilityCard({ elo, setElo, models, selectedModelId, setSelected
|
|
|
601
601
|
] });
|
|
602
602
|
}
|
|
603
603
|
function ConfigTab({ models, t, selectedModelId, setSelectedModelId, selectedFramework, setSelectedFramework, markDirty, connectedProviderTypes }) {
|
|
604
|
-
const frameworkKeys = Object.keys(
|
|
604
|
+
const frameworkKeys = Object.keys(chunkNJFRJ6YD_js.FRAMEWORK_META);
|
|
605
605
|
const hasProviderConstraints = connectedProviderTypes.length > 0;
|
|
606
|
-
const compatibleModels =
|
|
606
|
+
const compatibleModels = chunkNJFRJ6YD_js.getCompatibleModels(models, selectedFramework);
|
|
607
607
|
const handleFrameworkChange = react.useCallback((newFramework) => {
|
|
608
608
|
setSelectedFramework(newFramework);
|
|
609
|
-
if (!
|
|
610
|
-
const compatible =
|
|
609
|
+
if (!chunkNJFRJ6YD_js.isModelCompatibleWithFramework(selectedModelId, newFramework)) {
|
|
610
|
+
const compatible = chunkNJFRJ6YD_js.getCompatibleModels(models, newFramework);
|
|
611
611
|
if (compatible.length > 0) {
|
|
612
612
|
setSelectedModelId(compatible[0].id);
|
|
613
613
|
}
|
|
@@ -618,10 +618,10 @@ function ConfigTab({ models, t, selectedModelId, setSelectedModelId, selectedFra
|
|
|
618
618
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
619
619
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "mb-2 block text-xs font-medium text-gray-500 dark:text-gray-400", children: t("agentDrawer.framework") }),
|
|
620
620
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-1.5", children: frameworkKeys.map((key) => {
|
|
621
|
-
const meta =
|
|
621
|
+
const meta = chunkNJFRJ6YD_js.FRAMEWORK_META[key];
|
|
622
622
|
const isSelected = key === selectedFramework;
|
|
623
|
-
const compatCount =
|
|
624
|
-
const isCompatibleWithProviders = !hasProviderConstraints ||
|
|
623
|
+
const compatCount = chunkNJFRJ6YD_js.getCompatibleModels(models, key).length;
|
|
624
|
+
const isCompatibleWithProviders = !hasProviderConstraints || chunkNJFRJ6YD_js.isFrameworkCompatibleWithProviders(key, connectedProviderTypes);
|
|
625
625
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
626
626
|
"button",
|
|
627
627
|
{
|
|
@@ -653,7 +653,7 @@ function ConfigTab({ models, t, selectedModelId, setSelectedModelId, selectedFra
|
|
|
653
653
|
] }),
|
|
654
654
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-2 gap-2", children: models.map((model) => {
|
|
655
655
|
const isSelected = model.id === selectedModelId;
|
|
656
|
-
const isCompatible =
|
|
656
|
+
const isCompatible = chunkNJFRJ6YD_js.isModelCompatibleWithFramework(model.id, selectedFramework);
|
|
657
657
|
const { IconComponent, color, providerLabel } = getModelIcon(model.id);
|
|
658
658
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
659
659
|
"button",
|
|
@@ -777,7 +777,7 @@ function PromptTab({
|
|
|
777
777
|
] });
|
|
778
778
|
}
|
|
779
779
|
function ResultsTab({ agentId, t }) {
|
|
780
|
-
const nodeResults =
|
|
780
|
+
const nodeResults = chunkNJFRJ6YD_js.useWorkflowStore((state) => state.nodeResults);
|
|
781
781
|
const agentResult = react.useMemo(() => {
|
|
782
782
|
return nodeResults[agentId] ?? null;
|
|
783
783
|
}, [nodeResults, agentId]);
|
|
@@ -867,10 +867,10 @@ function ModelsTab({ modelProviders, selectedProviderId, onSelectProvider, model
|
|
|
867
867
|
const providerModels = modelsByProvider.find((p) => p.provider.id === selectedProviderId);
|
|
868
868
|
if (!providerModels || providerModels.models.length === 0) return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-gray-400 dark:text-gray-500", children: t("agentDrawer.noModelsForProvider") });
|
|
869
869
|
const compatibleModels = providerModels.models.filter(
|
|
870
|
-
(m) =>
|
|
870
|
+
(m) => chunkNJFRJ6YD_js.isModelCompatibleWithFramework(m.id, agentFramework)
|
|
871
871
|
);
|
|
872
872
|
const incompatibleModels = providerModels.models.filter(
|
|
873
|
-
(m) => !
|
|
873
|
+
(m) => !chunkNJFRJ6YD_js.isModelCompatibleWithFramework(m.id, agentFramework)
|
|
874
874
|
);
|
|
875
875
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
876
876
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "mb-2 block text-xs font-medium text-gray-500 dark:text-gray-400", children: t("agentDrawer.selectModel") }),
|
|
@@ -943,7 +943,7 @@ function ToolsTab({ agentTools, enabledToolIds, onToggle, agentFramework, t }) {
|
|
|
943
943
|
] }),
|
|
944
944
|
tool.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-[10px] text-gray-400 dark:text-gray-500", children: tool.description }),
|
|
945
945
|
tool.compatibleFrameworks && tool.compatibleFrameworks.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 flex flex-wrap gap-0.5", children: tool.compatibleFrameworks.map((framework) => {
|
|
946
|
-
const meta =
|
|
946
|
+
const meta = chunkNJFRJ6YD_js.getFrameworkMeta(framework);
|
|
947
947
|
const isCurrentFw = framework === agentFramework;
|
|
948
948
|
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: `inline-flex items-center gap-0.5 rounded px-1.5 py-0.5 text-[8px] font-medium ${isCurrentFw ? meta.badgeColor : "bg-gray-100 text-gray-500 dark:bg-white/5 dark:text-gray-400"}`, children: [
|
|
949
949
|
/* @__PURE__ */ jsxRuntime.jsx(meta.IconComponent, { className: "h-2.5 w-2.5" }),
|
|
@@ -1119,9 +1119,9 @@ function AdvancedTab({
|
|
|
1119
1119
|
}
|
|
1120
1120
|
function AgentModal({ onSaved, onPersist }) {
|
|
1121
1121
|
const t = chunkYXN2K77G_js.useTranslations("agents.workflow");
|
|
1122
|
-
const activeModal =
|
|
1123
|
-
const agentData =
|
|
1124
|
-
const closeModal =
|
|
1122
|
+
const activeModal = chunkNJFRJ6YD_js.useModalStore((s) => s.activeModal);
|
|
1123
|
+
const agentData = chunkNJFRJ6YD_js.useModalStore((s) => s.agentData);
|
|
1124
|
+
const closeModal = chunkNJFRJ6YD_js.useModalStore((s) => s.closeModal);
|
|
1125
1125
|
const open = activeModal === "agent";
|
|
1126
1126
|
const agent = agentData?.agent ?? null;
|
|
1127
1127
|
const models = agentData?.models ?? [];
|
|
@@ -1471,7 +1471,7 @@ function SubworkflowModal({ onSaved, onMaximize }) {
|
|
|
1471
1471
|
const markDirty = useSubworkflowStore((s) => s.markDirty);
|
|
1472
1472
|
const markSaved = useSubworkflowStore((s) => s.markSaved);
|
|
1473
1473
|
const closeModal = useSubworkflowStore((s) => s.closeModal);
|
|
1474
|
-
const agentBehind =
|
|
1474
|
+
const agentBehind = chunkNJFRJ6YD_js.useModalStore((s) => s.activeModal === "agent" ? s.agentData?.agent?.name : null);
|
|
1475
1475
|
const isCreateMode = !tool?.toolId;
|
|
1476
1476
|
const initialGraph = react.useMemo(() => {
|
|
1477
1477
|
const config = tool?.config;
|
|
@@ -1500,9 +1500,9 @@ function SubworkflowModal({ onSaved, onMaximize }) {
|
|
|
1500
1500
|
}, [tool, onSaved, name, category, description, timeoutMs, latestGraphRef, markSaved]);
|
|
1501
1501
|
if (!tool) return null;
|
|
1502
1502
|
const categoryKey = category ?? "external";
|
|
1503
|
-
const gradient = tool.color ??
|
|
1504
|
-
const categoryPill =
|
|
1505
|
-
const IconComponent =
|
|
1503
|
+
const gradient = tool.color ?? chunkNJFRJ6YD_js.CATEGORY_COLORS[categoryKey] ?? chunkNJFRJ6YD_js.CATEGORY_COLORS.external;
|
|
1504
|
+
const categoryPill = chunkNJFRJ6YD_js.CATEGORY_PILL_COLORS[categoryKey] ?? chunkNJFRJ6YD_js.CATEGORY_PILL_COLORS.external;
|
|
1505
|
+
const IconComponent = chunkNJFRJ6YD_js.ICON_MAP[tool.icon ?? ""] ?? outline.ArrowPathRoundedSquareIcon;
|
|
1506
1506
|
const graph = latestGraphRef.current;
|
|
1507
1507
|
const startNode = graph.nodes.find((n) => n.type === "start");
|
|
1508
1508
|
const endNode = graph.nodes.find((n) => n.type === "end");
|
|
@@ -1567,7 +1567,7 @@ function SubworkflowModal({ onSaved, onMaximize }) {
|
|
|
1567
1567
|
{
|
|
1568
1568
|
type: "button",
|
|
1569
1569
|
onClick: () => setCategory(cat),
|
|
1570
|
-
className: `rounded-full px-2 py-1 text-[9px] font-semibold transition-all ${cat === category ? `${
|
|
1570
|
+
className: `rounded-full px-2 py-1 text-[9px] font-semibold transition-all ${cat === category ? `${chunkNJFRJ6YD_js.CATEGORY_PILL_COLORS[cat] ?? chunkNJFRJ6YD_js.CATEGORY_PILL_COLORS.external} ring-1 ring-current/20` : "bg-white/30 text-gray-500 hover:bg-white/50 dark:bg-white/5 dark:text-gray-400"}`,
|
|
1571
1571
|
children: cat
|
|
1572
1572
|
},
|
|
1573
1573
|
cat
|
|
@@ -1654,7 +1654,7 @@ function SubworkflowModal({ onSaved, onMaximize }) {
|
|
|
1654
1654
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-auto" })
|
|
1655
1655
|
] }),
|
|
1656
1656
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1657
|
-
|
|
1657
|
+
chunkNJFRJ6YD_js.WorkflowCanvas,
|
|
1658
1658
|
{
|
|
1659
1659
|
initialGraph,
|
|
1660
1660
|
agents: [],
|
|
@@ -1670,9 +1670,9 @@ function SubworkflowModal({ onSaved, onMaximize }) {
|
|
|
1670
1670
|
}
|
|
1671
1671
|
function PipelineSettingsModal({ onSave }) {
|
|
1672
1672
|
const t = chunkYXN2K77G_js.useTranslations("agents.workflow");
|
|
1673
|
-
const activeModal =
|
|
1674
|
-
const data =
|
|
1675
|
-
const closeModal =
|
|
1673
|
+
const activeModal = chunkNJFRJ6YD_js.useModalStore((s) => s.activeModal);
|
|
1674
|
+
const data = chunkNJFRJ6YD_js.useModalStore((s) => s.pipelineSettingsData);
|
|
1675
|
+
const closeModal = chunkNJFRJ6YD_js.useModalStore((s) => s.closeModal);
|
|
1676
1676
|
const open = activeModal === "pipeline-settings";
|
|
1677
1677
|
const [nameValue, setNameValue] = react.useState("");
|
|
1678
1678
|
const [descriptionValue, setDescriptionValue] = react.useState("");
|
|
@@ -2951,6 +2951,8 @@ var LOGIC_NODE_ITEMS = [
|
|
|
2951
2951
|
{ nodeType: "answer", nameKey: "answerNode", descriptionKey: "answerNodeDescription", subcategory: "ai_ml" },
|
|
2952
2952
|
{ nodeType: "question_classifier", nameKey: "questionClassifierNode", descriptionKey: "questionClassifierNodeDescription", subcategory: "ai_ml" },
|
|
2953
2953
|
{ nodeType: "parameter_extractor", nameKey: "parameterExtractorNode", descriptionKey: "parameterExtractorNodeDescription", subcategory: "ai_ml" },
|
|
2954
|
+
{ nodeType: "audio_input", nameKey: "audioInputNode", descriptionKey: "audioInputNodeDescription", subcategory: "ai_ml" },
|
|
2955
|
+
{ nodeType: "speech_transcriber", nameKey: "speechTranscriberNode", descriptionKey: "speechTranscriberNodeDescription", subcategory: "ai_ml" },
|
|
2954
2956
|
// Annotation
|
|
2955
2957
|
{ nodeType: "note", nameKey: "noteNode", descriptionKey: "noteNodeDescription", subcategory: "annotation" },
|
|
2956
2958
|
// Output
|
|
@@ -3019,9 +3021,9 @@ function CollapsibleSection({ title, icon, colorClass, defaultOpen = true, count
|
|
|
3019
3021
|
] });
|
|
3020
3022
|
}
|
|
3021
3023
|
function LogicNodeItemCard({ item, translationFunction }) {
|
|
3022
|
-
const IconComponent =
|
|
3023
|
-
const gradient =
|
|
3024
|
-
const defaultConfig =
|
|
3024
|
+
const IconComponent = chunkNJFRJ6YD_js.LOGIC_ICON_MAP[item.nodeType];
|
|
3025
|
+
const gradient = chunkNJFRJ6YD_js.LOGIC_NODE_GRADIENTS[item.nodeType] ?? "from-gray-400 to-gray-500";
|
|
3026
|
+
const defaultConfig = chunk72SWXOD5_js.createDefaultLogicNodeConfig(item.nodeType);
|
|
3025
3027
|
const configJson = defaultConfig ? JSON.stringify(defaultConfig) : void 0;
|
|
3026
3028
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3027
3029
|
"div",
|
|
@@ -3091,7 +3093,7 @@ function NodePalette({ agents, tools, agentTools = [], rules, entities = [], mod
|
|
|
3091
3093
|
[entityTypes, normalizedQuery]
|
|
3092
3094
|
);
|
|
3093
3095
|
const filteredLogicItems = react.useMemo(() => {
|
|
3094
|
-
const visibleByDefault = LOGIC_NODE_ITEMS.filter((item) => !
|
|
3096
|
+
const visibleByDefault = LOGIC_NODE_ITEMS.filter((item) => !chunkNJFRJ6YD_js.EXPERIMENTAL_NODE_TYPES.has(item.nodeType));
|
|
3095
3097
|
if (!normalizedQuery) return visibleByDefault;
|
|
3096
3098
|
return visibleByDefault.filter(
|
|
3097
3099
|
(item) => t(item.nameKey).toLowerCase().includes(normalizedQuery) || t(item.descriptionKey).toLowerCase().includes(normalizedQuery)
|
|
@@ -3155,7 +3157,7 @@ function NodePalette({ agents, tools, agentTools = [], rules, entities = [], mod
|
|
|
3155
3157
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
3156
3158
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-xs font-medium text-gray-900 dark:text-white", children: agent.name }),
|
|
3157
3159
|
(() => {
|
|
3158
|
-
const tier =
|
|
3160
|
+
const tier = chunk72SWXOD5_js.getAgentTier(Number(agent.elo ?? 0));
|
|
3159
3161
|
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: `shrink-0 rounded-full px-1.5 py-px text-[8px] font-bold ${tier.pillColor}`, children: t(`agentDrawer.tier${tier.key.charAt(0).toUpperCase()}${tier.key.slice(1)}`) });
|
|
3160
3162
|
})()
|
|
3161
3163
|
] }),
|
|
@@ -3265,8 +3267,8 @@ function NodePalette({ agents, tools, agentTools = [], rules, entities = [], mod
|
|
|
3265
3267
|
limit: entity.defaultLimit
|
|
3266
3268
|
});
|
|
3267
3269
|
const dsLogo = getDatasourceLogo(entity.id);
|
|
3268
|
-
const EntityIcon =
|
|
3269
|
-
const entityGradient =
|
|
3270
|
+
const EntityIcon = chunkNJFRJ6YD_js.getEntityIcon(entity.id);
|
|
3271
|
+
const entityGradient = chunkNJFRJ6YD_js.getEntityGradient(entity.id);
|
|
3270
3272
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3271
3273
|
"div",
|
|
3272
3274
|
{
|
|
@@ -3664,9 +3666,9 @@ function formatDuration3(durationMs) {
|
|
|
3664
3666
|
}
|
|
3665
3667
|
function RunPanel({ open, onClose, onRun, onStop }) {
|
|
3666
3668
|
const translations = chunkYXN2K77G_js.useTranslations("agents.workflow.runPanel");
|
|
3667
|
-
const nodes =
|
|
3668
|
-
const isRunning =
|
|
3669
|
-
const nodeResults =
|
|
3669
|
+
const nodes = chunkNJFRJ6YD_js.useWorkflowStore((state) => state.nodes);
|
|
3670
|
+
const isRunning = chunkNJFRJ6YD_js.useWorkflowStore((state) => state.isRunning);
|
|
3671
|
+
const nodeResults = chunkNJFRJ6YD_js.useWorkflowStore((state) => state.nodeResults);
|
|
3670
3672
|
const startNode = nodes.find((node) => node.type === "start");
|
|
3671
3673
|
const hasEndNode = nodes.some((node) => node.type === "end");
|
|
3672
3674
|
const hasValidStartConfig = Boolean(
|
|
@@ -3849,6 +3851,21 @@ function inferVariables(config, nodeType) {
|
|
|
3849
3851
|
variables.push({ name: "body", direction: "input", variableType: "string" });
|
|
3850
3852
|
}
|
|
3851
3853
|
break;
|
|
3854
|
+
case "audio_input":
|
|
3855
|
+
variables.push({ name: "url", direction: "input", variableType: "string" });
|
|
3856
|
+
variables.push({ name: "url", direction: "output", variableType: "string" });
|
|
3857
|
+
variables.push({ name: "format", direction: "output", variableType: "string" });
|
|
3858
|
+
variables.push({ name: "sourceType", direction: "output", variableType: "string" });
|
|
3859
|
+
break;
|
|
3860
|
+
case "speech_transcriber":
|
|
3861
|
+
variables.push({ name: "audioUrl", direction: "input", variableType: "string" });
|
|
3862
|
+
variables.push({ name: "text", direction: "output", variableType: "string" });
|
|
3863
|
+
variables.push({ name: "language", direction: "output", variableType: "string" });
|
|
3864
|
+
variables.push({ name: "durationMs", direction: "output", variableType: "number" });
|
|
3865
|
+
variables.push({ name: "segments", direction: "output", variableType: "array" });
|
|
3866
|
+
variables.push({ name: "model", direction: "output", variableType: "string" });
|
|
3867
|
+
variables.push({ name: "provider", direction: "output", variableType: "string" });
|
|
3868
|
+
break;
|
|
3852
3869
|
case "s3_write":
|
|
3853
3870
|
variables.push({ name: "key", direction: "input", variableType: "string" });
|
|
3854
3871
|
if (config.sourceUrl) {
|
|
@@ -3968,8 +3985,8 @@ function inferVariables(config, nodeType) {
|
|
|
3968
3985
|
}
|
|
3969
3986
|
function VariableInspector({ open, onClose }) {
|
|
3970
3987
|
const translations = chunkYXN2K77G_js.useTranslations("agents.workflow.variableInspector");
|
|
3971
|
-
const nodes =
|
|
3972
|
-
const edges =
|
|
3988
|
+
const nodes = chunkNJFRJ6YD_js.useWorkflowStore((state) => state.nodes);
|
|
3989
|
+
const edges = chunkNJFRJ6YD_js.useWorkflowStore((state) => state.edges);
|
|
3973
3990
|
const [expandedNodes, setExpandedNodes] = react.useState(/* @__PURE__ */ new Set());
|
|
3974
3991
|
const toggleNodeExpansion = react.useCallback((nodeId) => {
|
|
3975
3992
|
setExpandedNodes((current) => {
|
|
@@ -4031,8 +4048,8 @@ function VariableInspector({ open, onClose }) {
|
|
|
4031
4048
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-sm text-gray-500 dark:text-gray-400", children: translations("noNodes") })
|
|
4032
4049
|
] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "divide-y divide-gray-100 dark:divide-gray-800", children: nodeVariableEntries.map((entry) => {
|
|
4033
4050
|
const isExpanded = expandedNodes.has(entry.nodeId);
|
|
4034
|
-
const IconComponent =
|
|
4035
|
-
const gradient =
|
|
4051
|
+
const IconComponent = chunkNJFRJ6YD_js.LOGIC_ICON_MAP[entry.nodeType];
|
|
4052
|
+
const gradient = chunkNJFRJ6YD_js.LOGIC_NODE_GRADIENTS[entry.nodeType] ?? "from-gray-400 to-gray-500";
|
|
4036
4053
|
const inputVariables = entry.variables.filter((variable) => variable.direction === "input");
|
|
4037
4054
|
const outputVariables = entry.variables.filter((variable) => variable.direction === "output");
|
|
4038
4055
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-testid": `variable-node-${entry.nodeId}`, children: [
|
|
@@ -4098,7 +4115,7 @@ function RunInputDialog({
|
|
|
4098
4115
|
onRun
|
|
4099
4116
|
}) {
|
|
4100
4117
|
const t = chunkYXN2K77G_js.useTranslations("agents.workflow.runInputDialog");
|
|
4101
|
-
const nodes =
|
|
4118
|
+
const nodes = chunkNJFRJ6YD_js.useWorkflowStore((state) => state.nodes);
|
|
4102
4119
|
const [values, setValues] = react.useState({});
|
|
4103
4120
|
const inputVariableNames = react.useMemo(() => {
|
|
4104
4121
|
const storeStartNode = nodes.find((node) => node.type === "start");
|
|
@@ -4179,8 +4196,8 @@ function PreviewPanel({ open, onClose, workflowId, loadRuns }) {
|
|
|
4179
4196
|
const [isLoadingRuns, setIsLoadingRuns] = react.useState(false);
|
|
4180
4197
|
const [selectedRun, setSelectedRun] = react.useState(null);
|
|
4181
4198
|
const [selectedNode, setSelectedNode] = react.useState(null);
|
|
4182
|
-
const isRunning =
|
|
4183
|
-
const nodeResults =
|
|
4199
|
+
const isRunning = chunkNJFRJ6YD_js.useWorkflowStore((state) => state.isRunning);
|
|
4200
|
+
const nodeResults = chunkNJFRJ6YD_js.useWorkflowStore((state) => state.nodeResults);
|
|
4184
4201
|
const refreshRuns = react.useCallback(async () => {
|
|
4185
4202
|
setIsLoadingRuns(true);
|
|
4186
4203
|
try {
|
|
@@ -4336,7 +4353,7 @@ var AutoSaveWorkspace = react.memo(function AutoSaveWorkspace2({
|
|
|
4336
4353
|
onAutoSaveGraph(graph);
|
|
4337
4354
|
}, [onAutoSaveGraph, onGraphSnapshot]);
|
|
4338
4355
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4339
|
-
|
|
4356
|
+
chunkNJFRJ6YD_js.Workspace,
|
|
4340
4357
|
{
|
|
4341
4358
|
...workspaceProps,
|
|
4342
4359
|
onGraphChange: handleGraphChange
|
|
@@ -4707,14 +4724,14 @@ function DslImportModal({ open, onClose, onImport }) {
|
|
|
4707
4724
|
}
|
|
4708
4725
|
|
|
4709
4726
|
// src/astrlabe/store/selectors.ts
|
|
4710
|
-
var useCanUndo = () =>
|
|
4711
|
-
var useCanRedo = () =>
|
|
4712
|
-
var useHasCopied = () =>
|
|
4713
|
-
var useContextMenu = () =>
|
|
4714
|
-
var useEditingNodeId = () =>
|
|
4715
|
-
var useSelectedNodeCount = () =>
|
|
4716
|
-
var useIsRunning = () =>
|
|
4717
|
-
var useNodeResults = () =>
|
|
4727
|
+
var useCanUndo = () => chunkNJFRJ6YD_js.useWorkflowStore((state) => state.past.length > 0);
|
|
4728
|
+
var useCanRedo = () => chunkNJFRJ6YD_js.useWorkflowStore((state) => state.future.length > 0);
|
|
4729
|
+
var useHasCopied = () => chunkNJFRJ6YD_js.useWorkflowStore((state) => state.clipboard !== null);
|
|
4730
|
+
var useContextMenu = () => chunkNJFRJ6YD_js.useWorkflowStore((state) => state.contextMenu);
|
|
4731
|
+
var useEditingNodeId = () => chunkNJFRJ6YD_js.useWorkflowStore((state) => state.editingNodeId);
|
|
4732
|
+
var useSelectedNodeCount = () => chunkNJFRJ6YD_js.useWorkflowStore((state) => state.nodes.filter((node) => node.selected).length);
|
|
4733
|
+
var useIsRunning = () => chunkNJFRJ6YD_js.useWorkflowStore((state) => state.isRunning);
|
|
4734
|
+
var useNodeResults = () => chunkNJFRJ6YD_js.useWorkflowStore((state) => state.nodeResults);
|
|
4718
4735
|
var DEFAULT_MAX_HISTORY = 50;
|
|
4719
4736
|
function useUndoRedo(nodes, edges, setNodes, setEdges, maxHistory = DEFAULT_MAX_HISTORY) {
|
|
4720
4737
|
const pastRef = react.useRef([]);
|
|
@@ -5037,5 +5054,5 @@ exports.useNodeResults = useNodeResults;
|
|
|
5037
5054
|
exports.useSelectedNodeCount = useSelectedNodeCount;
|
|
5038
5055
|
exports.useSubworkflowStore = useSubworkflowStore;
|
|
5039
5056
|
exports.useUndoRedo = useUndoRedo;
|
|
5040
|
-
//# sourceMappingURL=chunk-
|
|
5041
|
-
//# sourceMappingURL=chunk-
|
|
5057
|
+
//# sourceMappingURL=chunk-IJAKZHXX.js.map
|
|
5058
|
+
//# sourceMappingURL=chunk-IJAKZHXX.js.map
|