@n8n/instance-ai 1.1.0 → 1.2.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/agent/instance-agent.js +17 -45
- package/dist/agent/instance-agent.js.map +1 -1
- package/dist/agent/register-with-mastra.d.ts +1 -1
- package/dist/agent/register-with-mastra.js +5 -9
- package/dist/agent/register-with-mastra.js.map +1 -1
- package/dist/agent/sub-agent-briefing.d.ts +20 -0
- package/dist/agent/sub-agent-briefing.js +39 -0
- package/dist/agent/sub-agent-briefing.js.map +1 -0
- package/dist/agent/sub-agent-debriefing.d.ts +71 -0
- package/dist/agent/sub-agent-debriefing.js +39 -0
- package/dist/agent/sub-agent-debriefing.js.map +1 -0
- package/dist/agent/sub-agent-factory.d.ts +1 -1
- package/dist/agent/sub-agent-factory.js +15 -3
- package/dist/agent/sub-agent-factory.js.map +1 -1
- package/dist/agent/system-prompt.d.ts +1 -0
- package/dist/agent/system-prompt.js +67 -43
- package/dist/agent/system-prompt.js.map +1 -1
- package/dist/agent/tool-access.d.ts +2 -0
- package/dist/agent/tool-access.js +28 -0
- package/dist/agent/tool-access.js.map +1 -0
- package/dist/build.tsbuildinfo +1 -1
- package/dist/domain-access/domain-gating.d.ts +1 -0
- package/dist/domain-access/domain-gating.js +3 -0
- package/dist/domain-access/domain-gating.js.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/memory/memory-config.js +1 -3
- package/dist/memory/memory-config.js.map +1 -1
- package/dist/parsers/structured-file-parser.d.ts +56 -0
- package/dist/parsers/structured-file-parser.js +354 -0
- package/dist/parsers/structured-file-parser.js.map +1 -0
- package/dist/planned-tasks/planned-task-service.js +6 -0
- package/dist/planned-tasks/planned-task-service.js.map +1 -1
- package/dist/runtime/background-task-manager.d.ts +2 -1
- package/dist/runtime/background-task-manager.js +13 -1
- package/dist/runtime/background-task-manager.js.map +1 -1
- package/dist/runtime/resumable-stream-executor.d.ts +6 -3
- package/dist/runtime/resumable-stream-executor.js +66 -119
- package/dist/runtime/resumable-stream-executor.js.map +1 -1
- package/dist/runtime/stream-runner.d.ts +2 -2
- package/dist/runtime/stream-runner.js +4 -25
- package/dist/runtime/stream-runner.js.map +1 -1
- package/dist/stream/consume-with-hitl.d.ts +4 -1
- package/dist/stream/consume-with-hitl.js +11 -2
- package/dist/stream/consume-with-hitl.js.map +1 -1
- package/dist/stream/map-chunk.d.ts +1 -1
- package/dist/stream/map-chunk.js +20 -15
- package/dist/stream/map-chunk.js.map +1 -1
- package/dist/stream/work-summary-accumulator.d.ts +63 -0
- package/dist/stream/work-summary-accumulator.js +66 -0
- package/dist/stream/work-summary-accumulator.js.map +1 -0
- package/dist/tools/attachments/parse-file.tool.d.ts +90 -0
- package/dist/tools/attachments/parse-file.tool.js +135 -0
- package/dist/tools/attachments/parse-file.tool.js.map +1 -0
- package/dist/tools/best-practices/get-best-practices.tool.d.ts +6 -9
- package/dist/tools/best-practices/get-best-practices.tool.js +7 -5
- package/dist/tools/best-practices/get-best-practices.tool.js.map +1 -1
- package/dist/tools/best-practices/index.js +5 -29
- package/dist/tools/best-practices/index.js.map +1 -1
- package/dist/tools/best-practices/techniques.d.ts +1 -20
- package/dist/tools/best-practices/techniques.js +3 -36
- package/dist/tools/best-practices/techniques.js.map +1 -1
- package/dist/tools/credentials/delete-credential.tool.d.ts +13 -14
- package/dist/tools/credentials/delete-credential.tool.js +18 -11
- package/dist/tools/credentials/delete-credential.tool.js.map +1 -1
- package/dist/tools/credentials/get-credential.tool.d.ts +8 -2
- package/dist/tools/credentials/get-credential.tool.js +13 -7
- package/dist/tools/credentials/get-credential.tool.js.map +1 -1
- package/dist/tools/credentials/list-credentials.tool.d.ts +13 -3
- package/dist/tools/credentials/list-credentials.tool.js +50 -8
- package/dist/tools/credentials/list-credentials.tool.js.map +1 -1
- package/dist/tools/credentials/search-credential-types.tool.d.ts +7 -3
- package/dist/tools/credentials/search-credential-types.tool.js +7 -5
- package/dist/tools/credentials/search-credential-types.tool.js.map +1 -1
- package/dist/tools/credentials/setup-credentials.tool.d.ts +40 -44
- package/dist/tools/credentials/setup-credentials.tool.js +37 -31
- package/dist/tools/credentials/setup-credentials.tool.js.map +1 -1
- package/dist/tools/credentials/test-credential.tool.d.ts +7 -4
- package/dist/tools/credentials/test-credential.tool.js +5 -3
- package/dist/tools/credentials/test-credential.tool.js.map +1 -1
- package/dist/tools/data-tables/add-data-table-column.tool.d.ts +15 -19
- package/dist/tools/data-tables/add-data-table-column.tool.js +16 -9
- package/dist/tools/data-tables/add-data-table-column.tool.js.map +1 -1
- package/dist/tools/data-tables/create-data-table.tool.d.ts +26 -24
- package/dist/tools/data-tables/create-data-table.tool.js +49 -22
- package/dist/tools/data-tables/create-data-table.tool.js.map +1 -1
- package/dist/tools/data-tables/delete-data-table-column.tool.d.ts +13 -14
- package/dist/tools/data-tables/delete-data-table-column.tool.js +15 -8
- package/dist/tools/data-tables/delete-data-table-column.tool.js.map +1 -1
- package/dist/tools/data-tables/delete-data-table-rows.tool.d.ts +49 -15
- package/dist/tools/data-tables/delete-data-table-rows.tool.js +25 -9
- package/dist/tools/data-tables/delete-data-table-rows.tool.js.map +1 -1
- package/dist/tools/data-tables/delete-data-table.tool.d.ts +11 -14
- package/dist/tools/data-tables/delete-data-table.tool.js +17 -9
- package/dist/tools/data-tables/delete-data-table.tool.js.map +1 -1
- package/dist/tools/data-tables/get-data-table-schema.tool.d.ts +7 -8
- package/dist/tools/data-tables/get-data-table-schema.tool.js +5 -3
- package/dist/tools/data-tables/get-data-table-schema.tool.js.map +1 -1
- package/dist/tools/data-tables/insert-data-table-rows.tool.d.ts +14 -15
- package/dist/tools/data-tables/insert-data-table-rows.tool.js +22 -12
- package/dist/tools/data-tables/insert-data-table-rows.tool.js.map +1 -1
- package/dist/tools/data-tables/list-data-tables.tool.d.ts +7 -3
- package/dist/tools/data-tables/list-data-tables.tool.js +8 -6
- package/dist/tools/data-tables/list-data-tables.tool.js.map +1 -1
- package/dist/tools/data-tables/query-data-table-rows.tool.d.ts +49 -8
- package/dist/tools/data-tables/query-data-table-rows.tool.js +14 -12
- package/dist/tools/data-tables/query-data-table-rows.tool.js.map +1 -1
- package/dist/tools/data-tables/rename-data-table-column.tool.d.ts +15 -14
- package/dist/tools/data-tables/rename-data-table-column.tool.js +16 -9
- package/dist/tools/data-tables/rename-data-table-column.tool.js.map +1 -1
- package/dist/tools/data-tables/update-data-table-rows.tool.d.ts +51 -14
- package/dist/tools/data-tables/update-data-table-rows.tool.js +19 -9
- package/dist/tools/data-tables/update-data-table-rows.tool.js.map +1 -1
- package/dist/tools/executions/debug-execution.tool.d.ts +8 -2
- package/dist/tools/executions/debug-execution.tool.js +5 -3
- package/dist/tools/executions/debug-execution.tool.js.map +1 -1
- package/dist/tools/executions/get-execution.tool.d.ts +8 -2
- package/dist/tools/executions/get-execution.tool.js +5 -3
- package/dist/tools/executions/get-execution.tool.js.map +1 -1
- package/dist/tools/executions/get-node-output.tool.d.ts +14 -2
- package/dist/tools/executions/get-node-output.tool.js +14 -17
- package/dist/tools/executions/get-node-output.tool.js.map +1 -1
- package/dist/tools/executions/list-executions.tool.d.ts +11 -3
- package/dist/tools/executions/list-executions.tool.js +16 -14
- package/dist/tools/executions/list-executions.tool.js.map +1 -1
- package/dist/tools/executions/run-workflow.tool.d.ts +17 -15
- package/dist/tools/executions/run-workflow.tool.js +35 -25
- package/dist/tools/executions/run-workflow.tool.js.map +1 -1
- package/dist/tools/executions/stop-execution.tool.d.ts +7 -4
- package/dist/tools/executions/stop-execution.tool.js +8 -3
- package/dist/tools/executions/stop-execution.tool.js.map +1 -1
- package/dist/tools/filesystem/create-tools-from-mcp-server.js +2 -1
- package/dist/tools/filesystem/create-tools-from-mcp-server.js.map +1 -1
- package/dist/tools/index.d.ts +67 -2380
- package/dist/tools/index.js +9 -15
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/nodes/explore-node-resources.tool.d.ts +23 -10
- package/dist/tools/nodes/explore-node-resources.tool.js +27 -25
- package/dist/tools/nodes/explore-node-resources.tool.js.map +1 -1
- package/dist/tools/nodes/get-node-description.tool.d.ts +7 -20
- package/dist/tools/nodes/get-node-description.tool.js +5 -3
- package/dist/tools/nodes/get-node-description.tool.js.map +1 -1
- package/dist/tools/nodes/get-node-type-definition.tool.d.ts +29 -6
- package/dist/tools/nodes/get-node-type-definition.tool.js +9 -7
- package/dist/tools/nodes/get-node-type-definition.tool.js.map +1 -1
- package/dist/tools/nodes/get-suggested-nodes.tool.d.ts +7 -12
- package/dist/tools/nodes/get-suggested-nodes.tool.js +9 -7
- package/dist/tools/nodes/get-suggested-nodes.tool.js.map +1 -1
- package/dist/tools/nodes/list-nodes.tool.d.ts +7 -3
- package/dist/tools/nodes/list-nodes.tool.js +8 -6
- package/dist/tools/nodes/list-nodes.tool.js.map +1 -1
- package/dist/tools/nodes/node-search-engine.d.ts +1 -0
- package/dist/tools/nodes/node-search-engine.js +12 -9
- package/dist/tools/nodes/node-search-engine.js.map +1 -1
- package/dist/tools/nodes/search-nodes.tool.d.ts +12 -24
- package/dist/tools/nodes/search-nodes.tool.js +21 -17
- package/dist/tools/nodes/search-nodes.tool.js.map +1 -1
- package/dist/tools/orchestration/add-plan-item.tool.d.ts +5 -0
- package/dist/tools/orchestration/add-plan-item.tool.js +91 -0
- package/dist/tools/orchestration/add-plan-item.tool.js.map +1 -0
- package/dist/tools/orchestration/blueprint-accumulator.d.ts +50 -0
- package/dist/tools/orchestration/blueprint-accumulator.js +215 -0
- package/dist/tools/orchestration/blueprint-accumulator.js.map +1 -0
- package/dist/tools/orchestration/blueprint.schema.d.ts +271 -0
- package/dist/tools/orchestration/blueprint.schema.js +61 -0
- package/dist/tools/orchestration/blueprint.schema.js.map +1 -0
- package/dist/tools/orchestration/browser-credential-setup.tool.d.ts +15 -12
- package/dist/tools/orchestration/browser-credential-setup.tool.js +26 -21
- package/dist/tools/orchestration/browser-credential-setup.tool.js.map +1 -1
- package/dist/tools/orchestration/build-workflow-agent.prompt.d.ts +1 -1
- package/dist/tools/orchestration/build-workflow-agent.prompt.js +43 -149
- package/dist/tools/orchestration/build-workflow-agent.prompt.js.map +1 -1
- package/dist/tools/orchestration/build-workflow-agent.tool.d.ts +11 -4
- package/dist/tools/orchestration/build-workflow-agent.tool.js +50 -82
- package/dist/tools/orchestration/build-workflow-agent.tool.js.map +1 -1
- package/dist/tools/orchestration/cancel-background-task.tool.d.ts +7 -3
- package/dist/tools/orchestration/cancel-background-task.tool.js +5 -3
- package/dist/tools/orchestration/cancel-background-task.tool.js.map +1 -1
- package/dist/tools/orchestration/correct-background-task.tool.d.ts +9 -3
- package/dist/tools/orchestration/correct-background-task.tool.js +8 -6
- package/dist/tools/orchestration/correct-background-task.tool.js.map +1 -1
- package/dist/tools/orchestration/data-table-agent.prompt.d.ts +1 -1
- package/dist/tools/orchestration/data-table-agent.prompt.js +20 -0
- package/dist/tools/orchestration/data-table-agent.prompt.js.map +1 -1
- package/dist/tools/orchestration/data-table-agent.tool.d.ts +9 -4
- package/dist/tools/orchestration/data-table-agent.tool.js +22 -25
- package/dist/tools/orchestration/data-table-agent.tool.js.map +1 -1
- package/dist/tools/orchestration/delegate.schemas.d.ts +12 -0
- package/dist/tools/orchestration/delegate.schemas.js +17 -0
- package/dist/tools/orchestration/delegate.schemas.js.map +1 -1
- package/dist/tools/orchestration/delegate.tool.d.ts +1 -10
- package/dist/tools/orchestration/delegate.tool.js +40 -41
- package/dist/tools/orchestration/delegate.tool.js.map +1 -1
- package/dist/tools/orchestration/plan-agent-prompt.d.ts +1 -0
- package/dist/tools/orchestration/plan-agent-prompt.js +76 -0
- package/dist/tools/orchestration/plan-agent-prompt.js.map +1 -0
- package/dist/tools/orchestration/plan-with-agent.tool.d.ts +2 -0
- package/dist/tools/orchestration/plan-with-agent.tool.js +277 -0
- package/dist/tools/orchestration/plan-with-agent.tool.js.map +1 -0
- package/dist/tools/orchestration/plan.tool.d.ts +7 -39
- package/dist/tools/orchestration/plan.tool.js +15 -13
- package/dist/tools/orchestration/plan.tool.js.map +1 -1
- package/dist/tools/orchestration/report-verification-verdict.tool.d.ts +23 -3
- package/dist/tools/orchestration/report-verification-verdict.tool.js +27 -28
- package/dist/tools/orchestration/report-verification-verdict.tool.js.map +1 -1
- package/dist/tools/orchestration/research-with-agent.tool.d.ts +11 -4
- package/dist/tools/orchestration/research-with-agent.tool.js +25 -21
- package/dist/tools/orchestration/research-with-agent.tool.js.map +1 -1
- package/dist/tools/orchestration/submit-plan.tool.d.ts +3 -0
- package/dist/tools/orchestration/submit-plan.tool.js +81 -0
- package/dist/tools/orchestration/submit-plan.tool.js.map +1 -0
- package/dist/tools/orchestration/update-tasks.tool.d.ts +1 -9
- package/dist/tools/orchestration/update-tasks.tool.js.map +1 -1
- package/dist/tools/orchestration/verify-built-workflow.tool.d.ts +13 -7
- package/dist/tools/orchestration/verify-built-workflow.tool.js +14 -15
- package/dist/tools/orchestration/verify-built-workflow.tool.js.map +1 -1
- package/dist/tools/shared/ask-user.tool.d.ts +42 -31
- package/dist/tools/shared/ask-user.tool.js +16 -15
- package/dist/tools/shared/ask-user.tool.js.map +1 -1
- package/dist/tools/templates/search-template-parameters.tool.d.ts +14 -7
- package/dist/tools/templates/search-template-parameters.tool.js +17 -15
- package/dist/tools/templates/search-template-parameters.tool.js.map +1 -1
- package/dist/tools/templates/search-template-structures.tool.d.ts +11 -8
- package/dist/tools/templates/search-template-structures.tool.js +13 -11
- package/dist/tools/templates/search-template-structures.tool.js.map +1 -1
- package/dist/tools/web-research/fetch-url.tool.d.ts +9 -23
- package/dist/tools/web-research/fetch-url.tool.js +30 -14
- package/dist/tools/web-research/fetch-url.tool.js.map +1 -1
- package/dist/tools/web-research/web-search.tool.d.ts +12 -2
- package/dist/tools/web-research/web-search.tool.js +20 -18
- package/dist/tools/web-research/web-search.tool.js.map +1 -1
- package/dist/tools/workflows/apply-workflow-credentials.tool.d.ts +11 -5
- package/dist/tools/workflows/apply-workflow-credentials.tool.js +7 -5
- package/dist/tools/workflows/apply-workflow-credentials.tool.js.map +1 -1
- package/dist/tools/workflows/build-workflow.tool.d.ts +26 -5
- package/dist/tools/workflows/build-workflow.tool.js +23 -20
- package/dist/tools/workflows/build-workflow.tool.js.map +1 -1
- package/dist/tools/workflows/delete-workflow.tool.d.ts +13 -14
- package/dist/tools/workflows/delete-workflow.tool.js +15 -11
- package/dist/tools/workflows/delete-workflow.tool.js.map +1 -1
- package/dist/tools/workflows/get-workflow-as-code.tool.d.ts +6 -10
- package/dist/tools/workflows/get-workflow-as-code.tool.js +5 -3
- package/dist/tools/workflows/get-workflow-as-code.tool.js.map +1 -1
- package/dist/tools/workflows/get-workflow-version.tool.d.ts +8 -16
- package/dist/tools/workflows/get-workflow-version.tool.js +6 -4
- package/dist/tools/workflows/get-workflow-version.tool.js.map +1 -1
- package/dist/tools/workflows/get-workflow.tool.d.ts +7 -15
- package/dist/tools/workflows/get-workflow.tool.js +5 -3
- package/dist/tools/workflows/get-workflow.tool.js.map +1 -1
- package/dist/tools/workflows/list-workflow-versions.tool.d.ts +11 -3
- package/dist/tools/workflows/list-workflow-versions.tool.js +13 -11
- package/dist/tools/workflows/list-workflow-versions.tool.js.map +1 -1
- package/dist/tools/workflows/list-workflows.tool.d.ts +9 -10
- package/dist/tools/workflows/list-workflows.tool.js +12 -10
- package/dist/tools/workflows/list-workflows.tool.js.map +1 -1
- package/dist/tools/workflows/materialize-node-type.tool.d.ts +29 -11
- package/dist/tools/workflows/materialize-node-type.tool.js +9 -7
- package/dist/tools/workflows/materialize-node-type.tool.js.map +1 -1
- package/dist/tools/workflows/publish-workflow.tool.d.ts +6 -20
- package/dist/tools/workflows/publish-workflow.tool.js +29 -24
- package/dist/tools/workflows/publish-workflow.tool.js.map +1 -1
- package/dist/tools/workflows/restore-workflow-version.tool.d.ts +13 -15
- package/dist/tools/workflows/restore-workflow-version.tool.js +15 -8
- package/dist/tools/workflows/restore-workflow-version.tool.js.map +1 -1
- package/dist/tools/workflows/setup-workflow.service.d.ts +0 -1
- package/dist/tools/workflows/setup-workflow.service.js +23 -6
- package/dist/tools/workflows/setup-workflow.service.js.map +1 -1
- package/dist/tools/workflows/setup-workflow.tool.d.ts +7 -144
- package/dist/tools/workflows/setup-workflow.tool.js +10 -14
- package/dist/tools/workflows/setup-workflow.tool.js.map +1 -1
- package/dist/tools/workflows/submit-workflow.tool.d.ts +12 -9
- package/dist/tools/workflows/submit-workflow.tool.js +15 -17
- package/dist/tools/workflows/submit-workflow.tool.js.map +1 -1
- package/dist/tools/workflows/unpublish-workflow.tool.d.ts +13 -15
- package/dist/tools/workflows/unpublish-workflow.tool.js +15 -11
- package/dist/tools/workflows/unpublish-workflow.tool.js.map +1 -1
- package/dist/tools/workflows/update-workflow-version.tool.d.ts +13 -3
- package/dist/tools/workflows/update-workflow-version.tool.js +12 -10
- package/dist/tools/workflows/update-workflow-version.tool.js.map +1 -1
- package/dist/tools/workflows/write-sandbox-file.tool.d.ts +9 -9
- package/dist/tools/workflows/write-sandbox-file.tool.js +8 -6
- package/dist/tools/workflows/write-sandbox-file.tool.js.map +1 -1
- package/dist/tools/workspace/cleanup-test-executions.tool.d.ts +15 -14
- package/dist/tools/workspace/cleanup-test-executions.tool.js +19 -15
- package/dist/tools/workspace/cleanup-test-executions.tool.js.map +1 -1
- package/dist/tools/workspace/create-folder.tool.d.ts +15 -16
- package/dist/tools/workspace/create-folder.tool.js +25 -12
- package/dist/tools/workspace/create-folder.tool.js.map +1 -1
- package/dist/tools/workspace/delete-folder.tool.d.ts +19 -14
- package/dist/tools/workspace/delete-folder.tool.js +24 -17
- package/dist/tools/workspace/delete-folder.tool.js.map +1 -1
- package/dist/tools/workspace/list-folders.tool.d.ts +7 -3
- package/dist/tools/workspace/list-folders.tool.js +5 -3
- package/dist/tools/workspace/list-folders.tool.js.map +1 -1
- package/dist/tools/workspace/list-projects.tool.d.ts +3 -3
- package/dist/tools/workspace/list-projects.tool.js +3 -1
- package/dist/tools/workspace/list-projects.tool.js.map +1 -1
- package/dist/tools/workspace/list-tags.tool.d.ts +3 -6
- package/dist/tools/workspace/list-tags.tool.js +3 -1
- package/dist/tools/workspace/list-tags.tool.js.map +1 -1
- package/dist/tools/workspace/move-workflow-to-folder.tool.d.ts +17 -14
- package/dist/tools/workspace/move-workflow-to-folder.tool.js +20 -16
- package/dist/tools/workspace/move-workflow-to-folder.tool.js.map +1 -1
- package/dist/tools/workspace/tag-workflow.tool.d.ts +15 -14
- package/dist/tools/workspace/tag-workflow.tool.js +16 -12
- package/dist/tools/workspace/tag-workflow.tool.js.map +1 -1
- package/dist/tracing/langsmith-tracing.d.ts +1 -0
- package/dist/tracing/langsmith-tracing.js +47 -57
- package/dist/tracing/langsmith-tracing.js.map +1 -1
- package/dist/types.d.ts +24 -50
- package/dist/utils/eval-agents.d.ts +10 -0
- package/dist/utils/eval-agents.js +54 -0
- package/dist/utils/eval-agents.js.map +1 -0
- package/dist/workflow-builder/sdk-prompt-sections.d.ts +1 -4
- package/dist/workflow-builder/sdk-prompt-sections.js +5 -513
- package/dist/workflow-builder/sdk-prompt-sections.js.map +1 -1
- package/dist/workflow-loop/guidance.js +3 -5
- package/dist/workflow-loop/guidance.js.map +1 -1
- package/dist/workspace/daytona-filesystem.js +15 -1
- package/dist/workspace/daytona-filesystem.js.map +1 -1
- package/package.json +15 -9
- package/dist/memory/working-memory-template.d.ts +0 -1
- package/dist/memory/working-memory-template.js +0 -25
- package/dist/memory/working-memory-template.js.map +0 -1
- package/dist/runtime/working-memory-tracing.d.ts +0 -19
- package/dist/runtime/working-memory-tracing.js +0 -111
- package/dist/runtime/working-memory-tracing.js.map +0 -1
- package/dist/tools/best-practices/guides/chatbot.d.ts +0 -1
- package/dist/tools/best-practices/guides/chatbot.js +0 -111
- package/dist/tools/best-practices/guides/chatbot.js.map +0 -1
- package/dist/tools/best-practices/guides/content-generation.d.ts +0 -1
- package/dist/tools/best-practices/guides/content-generation.js +0 -108
- package/dist/tools/best-practices/guides/content-generation.js.map +0 -1
- package/dist/tools/best-practices/guides/data-extraction.d.ts +0 -1
- package/dist/tools/best-practices/guides/data-extraction.js +0 -115
- package/dist/tools/best-practices/guides/data-extraction.js.map +0 -1
- package/dist/tools/best-practices/guides/data-persistence.d.ts +0 -1
- package/dist/tools/best-practices/guides/data-persistence.js +0 -198
- package/dist/tools/best-practices/guides/data-persistence.js.map +0 -1
- package/dist/tools/best-practices/guides/data-transformation.d.ts +0 -1
- package/dist/tools/best-practices/guides/data-transformation.js +0 -139
- package/dist/tools/best-practices/guides/data-transformation.js.map +0 -1
- package/dist/tools/best-practices/guides/document-processing.d.ts +0 -1
- package/dist/tools/best-practices/guides/document-processing.js +0 -326
- package/dist/tools/best-practices/guides/document-processing.js.map +0 -1
- package/dist/tools/best-practices/guides/form-input.d.ts +0 -1
- package/dist/tools/best-practices/guides/form-input.js +0 -166
- package/dist/tools/best-practices/guides/form-input.js.map +0 -1
- package/dist/tools/best-practices/guides/notification.d.ts +0 -1
- package/dist/tools/best-practices/guides/notification.js +0 -128
- package/dist/tools/best-practices/guides/notification.js.map +0 -1
- package/dist/tools/best-practices/guides/scheduling.d.ts +0 -1
- package/dist/tools/best-practices/guides/scheduling.js +0 -145
- package/dist/tools/best-practices/guides/scheduling.js.map +0 -1
- package/dist/tools/best-practices/guides/scraping-and-research.d.ts +0 -1
- package/dist/tools/best-practices/guides/scraping-and-research.js +0 -151
- package/dist/tools/best-practices/guides/scraping-and-research.js.map +0 -1
- package/dist/tools/best-practices/guides/triage.d.ts +0 -1
- package/dist/tools/best-practices/guides/triage.js +0 -142
- package/dist/tools/best-practices/guides/triage.js.map +0 -1
- package/dist/tools/filesystem/get-file-tree.tool.d.ts +0 -22
- package/dist/tools/filesystem/get-file-tree.tool.js +0 -64
- package/dist/tools/filesystem/get-file-tree.tool.js.map +0 -1
- package/dist/tools/filesystem/list-files.tool.d.ts +0 -30
- package/dist/tools/filesystem/list-files.tool.js +0 -100
- package/dist/tools/filesystem/list-files.tool.js.map +0 -1
- package/dist/tools/filesystem/read-file.tool.d.ts +0 -25
- package/dist/tools/filesystem/read-file.tool.js +0 -83
- package/dist/tools/filesystem/read-file.tool.js.map +0 -1
- package/dist/tools/filesystem/search-files.tool.d.ts +0 -31
- package/dist/tools/filesystem/search-files.tool.js +0 -96
- package/dist/tools/filesystem/search-files.tool.js.map +0 -1
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BUILDER_AGENT_PROMPT = void 0;
|
|
4
4
|
exports.createSandboxBuilderAgentPrompt = createSandboxBuilderAgentPrompt;
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const parameter_guides_1 = require("@n8n/workflow-sdk/prompts/node-guidance/parameter-guides");
|
|
6
|
+
const node_selection_1 = require("@n8n/workflow-sdk/prompts/node-selection");
|
|
7
|
+
const sdk_reference_1 = require("@n8n/workflow-sdk/prompts/sdk-reference");
|
|
8
|
+
const SDK_CODE_RULES = `## SDK Code Rules
|
|
7
9
|
|
|
8
10
|
- Do NOT specify node positions — they are auto-calculated by the layout engine.
|
|
9
11
|
- For credentials, see the credential rules in your specific workflow process section below.
|
|
@@ -13,53 +15,19 @@ const SDK_RULES_AND_PATTERNS = `## SDK Code Rules
|
|
|
13
15
|
- Use string values directly for discriminator fields like \`resource\` and \`operation\` (e.g., \`resource: 'message'\` not \`resource: 'message' as const\`).
|
|
14
16
|
- When editing a pre-loaded workflow, **remove \`position\` arrays** from node configs — they are auto-calculated.
|
|
15
17
|
- **No em-dash (\`—\`) or other special Unicode characters in node names or string values.** Use plain hyphen (\`-\`) instead. The SDK parser cannot handle em-dashes.
|
|
16
|
-
- **IF node combinator** must be \`'and'\` or \`'or'\` (not \`'any'\` or \`'all'\`)
|
|
17
|
-
|
|
18
|
-
${workflow_builder_1.WORKFLOW_RULES}
|
|
19
|
-
|
|
20
|
-
## SDK Patterns Reference
|
|
21
|
-
|
|
22
|
-
${workflow_builder_1.WORKFLOW_SDK_PATTERNS}
|
|
23
|
-
|
|
24
|
-
## Expression Reference
|
|
25
|
-
|
|
26
|
-
${workflow_builder_1.EXPRESSION_REFERENCE}
|
|
27
|
-
|
|
28
|
-
## Additional Functions
|
|
29
|
-
|
|
30
|
-
${workflow_builder_1.ADDITIONAL_FUNCTIONS}
|
|
31
|
-
|
|
32
|
-
## Critical Patterns (Common Mistakes)
|
|
18
|
+
- **IF node combinator** must be \`'and'\` or \`'or'\` (not \`'any'\` or \`'all'\`).`;
|
|
19
|
+
const BUILDER_SPECIFIC_PATTERNS = `## Critical Patterns (Common Mistakes)
|
|
33
20
|
|
|
34
21
|
**Pay attention to @builderHint annotations in search results and type definitions** — these provide critical guidance on how to correctly configure node parameters. Write them out as notes when reviewing — they prevent common configuration mistakes.
|
|
35
22
|
|
|
36
|
-
###
|
|
37
|
-
\`\`\`javascript
|
|
38
|
-
const checkScore = ifElse({
|
|
39
|
-
version: 2.2,
|
|
40
|
-
config: {
|
|
41
|
-
name: 'High Score?',
|
|
42
|
-
parameters: {
|
|
43
|
-
conditions: {
|
|
44
|
-
conditions: [{
|
|
45
|
-
leftValue: '={{ $json.score }}',
|
|
46
|
-
operator: { type: 'number', operation: 'gte' },
|
|
47
|
-
rightValue: 70
|
|
48
|
-
}]
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
});
|
|
23
|
+
### Self-check: conditional nodes and routing
|
|
53
24
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
\`\`\`
|
|
61
|
-
WRONG: \`.output(0).to()\` — this does NOT work for IF branching.
|
|
62
|
-
WRONG: \`.to(checkScore.onTrue(A)).add(sharedNode).to(B)\` — don't try fan-in with .add() after ifElse. Instead, include the full chain (including shared downstream nodes) in each branch.
|
|
25
|
+
After writing any workflow with IF, Switch, or Filter nodes, verify:
|
|
26
|
+
1. **Every \`conditions\` object has \`options\`, \`conditions\` array, and \`combinator\`** — missing any of these crashes the node at runtime.
|
|
27
|
+
2. **Switch uses \`rules.values\`** (not \`rules.rules\`) — the wrong key crashes during workflow loading.
|
|
28
|
+
3. **Each branch reaches the correct destination** — trace the data flow from the condition through \`.onTrue()\`/\`.onFalse()\`/\`.onCase()\` to the target node. Verify the routing matches the user's requirements.
|
|
29
|
+
4. **Condition expressions reference the right fields** — check that \`leftValue\` expressions use fields that actually exist in the upstream node's output.
|
|
30
|
+
5. **Merge nodes use the correct mode** — \`append\` to concatenate items from branches, \`combineBySql\` or \`combineByPosition\` only when matching items across inputs. Wrong mode silently drops or duplicates data.
|
|
63
31
|
|
|
64
32
|
### AI Agent with Subnodes — use factory functions in subnodes config
|
|
65
33
|
\`\`\`javascript
|
|
@@ -154,46 +122,6 @@ const storeData = node({
|
|
|
154
122
|
- To fetch many rows, use \`operation: 'get'\` with \`returnAll: true\`. Do NOT invent \`getAll\`.
|
|
155
123
|
- When filtering rows for update/delete, it is valid to match on the built-in row \`id\`, but that is not part of the user-defined table schema.
|
|
156
124
|
|
|
157
|
-
### Set Node (Edit Fields)
|
|
158
|
-
\`\`\`javascript
|
|
159
|
-
const setFields = node({
|
|
160
|
-
type: 'n8n-nodes-base.set',
|
|
161
|
-
version: 3.4,
|
|
162
|
-
config: {
|
|
163
|
-
name: 'Prepare Data',
|
|
164
|
-
parameters: {
|
|
165
|
-
assignments: {
|
|
166
|
-
assignments: [
|
|
167
|
-
{ id: '1', name: 'fullName', value: '={{ $json.firstName + " " + $json.lastName }}', type: 'string' },
|
|
168
|
-
{ id: '2', name: 'email', value: '={{ $json.email }}', type: 'string' }
|
|
169
|
-
]
|
|
170
|
-
},
|
|
171
|
-
options: {}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
\`\`\`
|
|
176
|
-
|
|
177
|
-
### HTTP Request — Credential Authentication
|
|
178
|
-
When using HTTP Request with a predefined API credential (SerpAPI, Notion, etc.):
|
|
179
|
-
\`\`\`javascript
|
|
180
|
-
// CORRECT — use predefinedCredentialType for API-specific credentials
|
|
181
|
-
const apiCall = node({
|
|
182
|
-
type: 'n8n-nodes-base.httpRequest',
|
|
183
|
-
version: 4.2,
|
|
184
|
-
config: {
|
|
185
|
-
name: 'API Call',
|
|
186
|
-
parameters: {
|
|
187
|
-
url: 'https://serpapi.com/search.json',
|
|
188
|
-
authentication: 'predefinedCredentialType',
|
|
189
|
-
nodeCredentialType: 'serpApi', // matches credential type from list-credentials
|
|
190
|
-
},
|
|
191
|
-
credentials: { serpApi: { id: 'credId', name: 'SerpAPI account' } }
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
\`\`\`
|
|
195
|
-
**Rule**: If \`list-credentials\` returns a credential with a specific type (e.g., \`serpApi\`, \`notionApi\`), use \`predefinedCredentialType\` with \`nodeCredentialType\` matching that type. Before using \`genericCredentialType\` with ANY generic auth type (\`httpHeaderAuth\`, \`httpBearerAuth\`, \`httpQueryAuth\`, \`httpBasicAuth\`, \`httpCustomAuth\`), call \`search-credential-types\` with the service name to check if a dedicated credential type exists. Only use \`genericCredentialType\` for truly custom/unknown APIs where no predefined credential type exists. When generic auth is truly needed, prefer \`httpBearerAuth\` (single "Bearer Token" field) over \`httpHeaderAuth\` (requires knowing the header name and format). Also prefer dedicated n8n nodes (e.g., \`n8n-nodes-base.linear\`) over HTTP Request when they exist — use \`search-nodes\` to check.
|
|
196
|
-
|
|
197
125
|
### Google Sheets — Column Mapping
|
|
198
126
|
The \`columns\` parameter requires a schema object, never a string:
|
|
199
127
|
\`\`\`javascript
|
|
@@ -242,31 +170,6 @@ export default workflow('id', 'name')
|
|
|
242
170
|
.add(scheduleTrigger).to(processNode);
|
|
243
171
|
\`\`\`
|
|
244
172
|
|
|
245
|
-
### Switch/Multi-Way Routing — switchCase with .onCase()
|
|
246
|
-
\`\`\`javascript
|
|
247
|
-
const router = switchCase({
|
|
248
|
-
version: 3.2,
|
|
249
|
-
config: {
|
|
250
|
-
name: 'Route by Type',
|
|
251
|
-
parameters: {
|
|
252
|
-
rules: {
|
|
253
|
-
rules: [
|
|
254
|
-
{ outputKey: 'email', conditions: { conditions: [{ leftValue: '={{ $json.type }}', operator: { type: 'string', operation: 'equals' }, rightValue: 'email' }] } },
|
|
255
|
-
{ outputKey: 'slack', conditions: { conditions: [{ leftValue: '={{ $json.type }}', operator: { type: 'string', operation: 'equals' }, rightValue: 'slack' }] } },
|
|
256
|
-
]
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
|
|
262
|
-
export default workflow('id', 'name')
|
|
263
|
-
.add(startTrigger)
|
|
264
|
-
.to(router
|
|
265
|
-
.onCase('email', sendEmail)
|
|
266
|
-
.onCase('slack', sendSlack)
|
|
267
|
-
.onDefault(logUnknown));
|
|
268
|
-
\`\`\`
|
|
269
|
-
|
|
270
173
|
### Web App (SPA served from a webhook)
|
|
271
174
|
|
|
272
175
|
Serve a single-page application from an n8n webhook. The workflow fetches data, then renders a full HTML page with a client-side framework.
|
|
@@ -470,7 +373,32 @@ documentId: 'YOUR_SPREADSHEET_ID', // Not an RLC object
|
|
|
470
373
|
// WRONG — expr() wrapper
|
|
471
374
|
documentId: expr('{{ "spreadsheetId" }}'), // RLC fields don't use expressions
|
|
472
375
|
\`\`\`
|
|
473
|
-
Always use the IDs from \`explore-node-resources\` results inside the RLC \`value\` field
|
|
376
|
+
Always use the IDs from \`explore-node-resources\` results inside the RLC \`value\` field.
|
|
377
|
+
|
|
378
|
+
### AI Tool Connection Patterns
|
|
379
|
+
${node_selection_1.AI_TOOL_PATTERNS}
|
|
380
|
+
|
|
381
|
+
### Connection-Changing Parameters
|
|
382
|
+
${node_selection_1.CONNECTION_CHANGING_PARAMETERS}
|
|
383
|
+
|
|
384
|
+
### Baseline Flow Control Nodes
|
|
385
|
+
${node_selection_1.BASELINE_FLOW_CONTROL}`;
|
|
386
|
+
const SDK_RULES_AND_PATTERNS = [
|
|
387
|
+
SDK_CODE_RULES,
|
|
388
|
+
sdk_reference_1.WORKFLOW_RULES,
|
|
389
|
+
'## SDK Patterns Reference\n\n' + sdk_reference_1.WORKFLOW_SDK_PATTERNS,
|
|
390
|
+
'## Expression Reference\n\n' + sdk_reference_1.EXPRESSION_REFERENCE,
|
|
391
|
+
'## Additional Functions\n\n' + sdk_reference_1.ADDITIONAL_FUNCTIONS,
|
|
392
|
+
'## Node-Specific Configuration Guides',
|
|
393
|
+
parameter_guides_1.IF_NODE_GUIDE.content,
|
|
394
|
+
parameter_guides_1.SWITCH_NODE_GUIDE.content,
|
|
395
|
+
parameter_guides_1.SET_NODE_GUIDE.content,
|
|
396
|
+
parameter_guides_1.HTTP_REQUEST_GUIDE.content,
|
|
397
|
+
parameter_guides_1.TOOL_NODES_GUIDE.content,
|
|
398
|
+
parameter_guides_1.EMBEDDING_NODES_GUIDE.content,
|
|
399
|
+
parameter_guides_1.RESOURCE_LOCATOR_GUIDE.content,
|
|
400
|
+
BUILDER_SPECIFIC_PATTERNS,
|
|
401
|
+
].join('\n\n');
|
|
474
402
|
exports.BUILDER_AGENT_PROMPT = `You are an expert n8n workflow builder. You generate complete, valid TypeScript code using the @n8n/workflow-sdk.
|
|
475
403
|
|
|
476
404
|
## Output Discipline
|
|
@@ -502,23 +430,6 @@ Do NOT produce visible output until step 4. All reasoning happens internally.
|
|
|
502
430
|
- When editing a pre-loaded workflow, the roundtripped code may have credentials as raw objects — replace them with \`newCredential()\` calls.
|
|
503
431
|
- Unresolved credentials (where the user chose mock data or no credential is available) will be automatically mocked via pinned data at submit time. Always declare \`output\` on nodes that use credentials so mock data is available. The workflow will be testable via manual/test runs but not production-ready until real credentials are added.
|
|
504
432
|
|
|
505
|
-
## Working Memory
|
|
506
|
-
Your working memory persists across conversations. Update it ONLY for:
|
|
507
|
-
- User style preferences (naming conventions, preferred triggers, structure patterns)
|
|
508
|
-
- Credential disambiguation (when multiple credentials of the same type exist, which one the user prefers)
|
|
509
|
-
- Node runtime quirks unique to this instance (NOT generic node docs — those are in get-node-type-definition)
|
|
510
|
-
- Recurring instance-specific failures worth remembering
|
|
511
|
-
|
|
512
|
-
Do NOT store:
|
|
513
|
-
- Credential inventories (use list-credentials tool)
|
|
514
|
-
- Workflow catalogs or IDs (use list-workflows or get-workflow-as-code tools)
|
|
515
|
-
- SDK patterns or code snippets (already in your prompt)
|
|
516
|
-
- Node schema details or parameter docs (use get-node-type-definition)
|
|
517
|
-
- Generic best practices or build recipes
|
|
518
|
-
|
|
519
|
-
Keep entries short (one bullet each). Remove stale entries when updating.
|
|
520
|
-
If your memory contains sections not in the current template, discard them and retain only matching facts.
|
|
521
|
-
|
|
522
433
|
${SDK_RULES_AND_PATTERNS}
|
|
523
434
|
`;
|
|
524
435
|
function createSandboxBuilderAgentPrompt(workspaceRoot) {
|
|
@@ -636,6 +547,7 @@ Supported input types: \`string\`, \`number\`, \`boolean\`, \`array\`, \`object\
|
|
|
636
547
|
- Sub-workflows with \`executeWorkflowTrigger\` can be tested immediately via \`run-workflow\` without publishing. However, they must be **published** via \`publish-workflow\` before the parent workflow can call them in production (trigger-based) executions.
|
|
637
548
|
2. Run the chunk: \`run-workflow\` with \`inputData\` matching the trigger schema.
|
|
638
549
|
- **Webhook workflows**: \`inputData\` IS the request body — do NOT wrap it in \`{ body: ... }\`. The system automatically places \`inputData\` into \`{ headers, query, body: inputData }\`. So to test a webhook expecting \`{ title: "Hello" }\`, pass \`inputData: { title: "Hello" }\`. Inside the workflow, the data arrives at \`$json.body.title\`.
|
|
550
|
+
- **Event-based triggers** (e.g. Linear Trigger, GitHub Trigger, Slack Trigger): pass \`inputData\` matching what the trigger would normally emit. The system injects it as the trigger node's output — e.g. \`inputData: { action: "create", data: { id: "123", title: "Test issue" } }\` for a Linear Trigger. No need to rebuild the workflow with a Manual Trigger.
|
|
639
551
|
3. If it fails, use \`debug-execution\` to investigate, fix, and re-submit.
|
|
640
552
|
|
|
641
553
|
### Step 3: Compose chunks in the main workflow
|
|
@@ -741,9 +653,9 @@ n8n normalizes column names to snake_case (e.g., \`dayName\` → \`day_name\`).
|
|
|
741
653
|
|
|
742
654
|
- **NEVER parallelize edit + submit.** Always: edit → wait → submit. Each step depends on the previous one completing.
|
|
743
655
|
- **Complex workflows (5+ nodes, 2+ integrations) MUST use the Compositional Workflow Pattern.** Decompose into sub-workflows, test each independently, then compose. Do NOT write everything in a single workflow.
|
|
744
|
-
- **If you edit code after submitting, you MUST call \`submit-workflow\` again before doing anything else (
|
|
656
|
+
- **If you edit code after submitting, you MUST call \`submit-workflow\` again before doing anything else (verify, run, or finish).** The system tracks file hashes — if the file changed since the last submit, your work is discarded. The sequence is always: edit → submit → then verify/run/finish.
|
|
745
657
|
- **Follow the runtime verification instructions in your briefing.** If the briefing says verification is required, do not stop after a successful submit.
|
|
746
|
-
- **
|
|
658
|
+
- **Do NOT call \`publish-workflow\`.** Publishing is the user's decision after they have tested the workflow. Your job ends at a successful submit.
|
|
747
659
|
|
|
748
660
|
## Mandatory Process
|
|
749
661
|
|
|
@@ -801,8 +713,7 @@ Follow the **Compositional Workflow Pattern** above. The process becomes:
|
|
|
801
713
|
d. Fix if needed (max 2 submission fix attempts per chunk).
|
|
802
714
|
6. **Write the main workflow** in \`${workspaceRoot}/src/workflow.ts\` that composes chunks via \`executeWorkflow\` nodes, referencing each chunk's workflow ID.
|
|
803
715
|
7. **Submit** the main workflow.
|
|
804
|
-
8. **
|
|
805
|
-
9. **Done**: Output ONE sentence summarizing what was built, including the workflow ID and any known issues.
|
|
716
|
+
8. **Done**: Output ONE sentence summarizing what was built, including the workflow ID and any known issues. Do NOT publish — the user will decide when to publish after testing.
|
|
806
717
|
|
|
807
718
|
Do NOT produce visible output until the final step. All reasoning happens internally.
|
|
808
719
|
|
|
@@ -813,23 +724,6 @@ When modifying an existing workflow, the current code is **already pre-loaded**
|
|
|
813
724
|
- Run tsc → submit-workflow with the \`workflowId\`
|
|
814
725
|
- Do NOT call \`get-workflow-as-code\` — the file is already populated
|
|
815
726
|
|
|
816
|
-
## Working Memory
|
|
817
|
-
Your working memory persists across conversations. Update it ONLY for:
|
|
818
|
-
- User style preferences (naming conventions, preferred triggers, structure patterns)
|
|
819
|
-
- Credential disambiguation (when multiple credentials of the same type exist, which one the user prefers)
|
|
820
|
-
- Node runtime quirks unique to this instance (NOT generic node docs — those are in get-node-type-definition)
|
|
821
|
-
- Recurring instance-specific failures worth remembering
|
|
822
|
-
|
|
823
|
-
Do NOT store:
|
|
824
|
-
- Credential inventories (use list-credentials tool)
|
|
825
|
-
- Workflow catalogs or IDs (use list-workflows or get-workflow-as-code tools)
|
|
826
|
-
- SDK patterns or code snippets (already in your prompt)
|
|
827
|
-
- Node schema details or parameter docs (use get-node-type-definition)
|
|
828
|
-
- Generic best practices or build recipes
|
|
829
|
-
|
|
830
|
-
Keep entries short (one bullet each). Remove stale entries when updating.
|
|
831
|
-
If your memory contains sections not in the current template, discard them and retain only matching facts.
|
|
832
|
-
|
|
833
727
|
${SDK_RULES_AND_PATTERNS}
|
|
834
728
|
`;
|
|
835
729
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-workflow-agent.prompt.js","sourceRoot":"","sources":["../../../src/tools/orchestration/build-workflow-agent.prompt.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"build-workflow-agent.prompt.js","sourceRoot":"","sources":["../../../src/tools/orchestration/build-workflow-agent.prompt.ts"],"names":[],"mappings":";;;AAodA,0EAsSC;AAlvBD,+FAQkE;AAClE,6EAIkD;AAClD,2EAKiD;AAIjD,MAAM,cAAc,GAAG;;;;;;;;;;qFAU8D,CAAC;AAEtF,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;6BAwBlB,aAAa;;;;sCAIJ,aAAa;;;;;;;yFAOsC,aAAa;;;;;;EAMpG,sBAAsB;CACvB,CAAC;AACF,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import type { OrchestrationContext } from '../../types';
|
|
2
3
|
export interface StartBuildWorkflowAgentInput {
|
|
3
4
|
task: string;
|
|
@@ -13,11 +14,17 @@ export interface StartedWorkflowBuildTask {
|
|
|
13
14
|
agentId: string;
|
|
14
15
|
}
|
|
15
16
|
export declare function startBuildWorkflowAgentTask(context: OrchestrationContext, input: StartBuildWorkflowAgentInput): Promise<StartedWorkflowBuildTask>;
|
|
16
|
-
export declare
|
|
17
|
+
export declare const buildWorkflowAgentInputSchema: z.ZodObject<{
|
|
18
|
+
task: z.ZodString;
|
|
19
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
conversationContext: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
22
|
task: string;
|
|
18
23
|
workflowId?: string | undefined;
|
|
19
24
|
conversationContext?: string | undefined;
|
|
20
25
|
}, {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
task: string;
|
|
27
|
+
workflowId?: string | undefined;
|
|
28
|
+
conversationContext?: string | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export declare function createBuildWorkflowAgentTool(context: OrchestrationContext): import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "build-workflow-with-agent", unknown>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildWorkflowAgentInputSchema = void 0;
|
|
3
4
|
exports.startBuildWorkflowAgentTask = startBuildWorkflowAgentTask;
|
|
4
5
|
exports.createBuildWorkflowAgentTool = createBuildWorkflowAgentTool;
|
|
5
6
|
const agent_1 = require("@mastra/core/agent");
|
|
@@ -8,21 +9,18 @@ const workflow_sdk_1 = require("@n8n/workflow-sdk");
|
|
|
8
9
|
const nanoid_1 = require("nanoid");
|
|
9
10
|
const node_crypto_1 = require("node:crypto");
|
|
10
11
|
const zod_1 = require("zod");
|
|
11
|
-
const browser_credential_setup_tool_1 = require("./browser-credential-setup.tool");
|
|
12
12
|
const build_workflow_agent_prompt_1 = require("./build-workflow-agent.prompt");
|
|
13
13
|
const display_utils_1 = require("./display-utils");
|
|
14
14
|
const tracing_utils_1 = require("./tracing-utils");
|
|
15
15
|
const verify_built_workflow_tool_1 = require("./verify-built-workflow.tool");
|
|
16
16
|
const register_with_mastra_1 = require("../../agent/register-with-mastra");
|
|
17
|
+
const sub_agent_briefing_1 = require("../../agent/sub-agent-briefing");
|
|
17
18
|
const resumable_stream_executor_1 = require("../../runtime/resumable-stream-executor");
|
|
18
|
-
const working_memory_tracing_1 = require("../../runtime/working-memory-tracing");
|
|
19
|
-
const iteration_log_1 = require("../../storage/iteration-log");
|
|
20
19
|
const consume_with_hitl_1 = require("../../stream/consume-with-hitl");
|
|
21
20
|
const langsmith_tracing_1 = require("../../tracing/langsmith-tracing");
|
|
22
21
|
const extract_code_1 = require("../../workflow-builder/extract-code");
|
|
23
22
|
const sandbox_fs_1 = require("../../workspace/sandbox-fs");
|
|
24
23
|
const sandbox_setup_1 = require("../../workspace/sandbox-setup");
|
|
25
|
-
const apply_workflow_credentials_tool_1 = require("../workflows/apply-workflow-credentials.tool");
|
|
26
24
|
const resolve_credentials_1 = require("../workflows/resolve-credentials");
|
|
27
25
|
const submit_workflow_tool_1 = require("../workflows/submit-workflow.tool");
|
|
28
26
|
const UNTESTABLE_TRIGGERS = new Set([
|
|
@@ -69,7 +67,7 @@ function buildOutcome(workItemId, taskId, attempt, finalText) {
|
|
|
69
67
|
summary: finalText,
|
|
70
68
|
};
|
|
71
69
|
}
|
|
72
|
-
const BUILDER_MAX_STEPS =
|
|
70
|
+
const BUILDER_MAX_STEPS = 60;
|
|
73
71
|
const DETACHED_BUILDER_REQUIREMENTS = `## Detached Task Contract
|
|
74
72
|
|
|
75
73
|
You are running as a detached background task. Do not stop after a successful submit — verify the workflow works.
|
|
@@ -77,29 +75,22 @@ You are running as a detached background task. Do not stop after a successful su
|
|
|
77
75
|
### Completion criteria
|
|
78
76
|
|
|
79
77
|
Your job is done when ONE of these is true:
|
|
80
|
-
- the workflow is verified (ran successfully
|
|
81
|
-
- the workflow uses only event triggers (${UNTESTABLE_TRIGGER_LABELS}) and cannot be runtime-tested — publish it and
|
|
78
|
+
- the workflow is verified (ran successfully)
|
|
79
|
+
- the workflow uses only event triggers (${UNTESTABLE_TRIGGER_LABELS}) and cannot be runtime-tested — stop after a successful submit. Do NOT publish it; the orchestrator will handle setup and publishing.
|
|
82
80
|
- you are blocked after one repair attempt per unique failure
|
|
83
81
|
|
|
84
82
|
### Submit discipline
|
|
85
83
|
|
|
86
84
|
**Every file edit MUST be followed by submit-workflow before you do anything else.**
|
|
87
|
-
The system tracks file hashes. If you edit the code and then call
|
|
85
|
+
The system tracks file hashes. If you edit the code and then call run-workflow or finish without re-submitting, your work is discarded. The sequence is always: edit → submit → then verify/run.
|
|
88
86
|
|
|
89
87
|
### Verification
|
|
90
88
|
|
|
91
89
|
- If submit-workflow returned mocked credentials, call verify-built-workflow with the workItemId
|
|
92
|
-
- Otherwise call run-workflow to test (skip for trigger-only workflows)
|
|
90
|
+
- Otherwise call run-workflow to test (skip for trigger-only workflows). For event-based triggers (Linear, GitHub, Slack, etc.), pass \`inputData\` with sample data matching the trigger's expected output shape — the system injects it as the trigger node's output.
|
|
93
91
|
- If verification fails, call debug-execution, fix the code, re-submit, and retry once
|
|
94
92
|
- If the same failure signature repeats, stop and explain the block
|
|
95
93
|
|
|
96
|
-
### Credential finalization
|
|
97
|
-
|
|
98
|
-
If verification succeeds with mocked credentials:
|
|
99
|
-
1. call setup-credentials with credentialFlow stage "finalize"
|
|
100
|
-
2. if it returns needsBrowserSetup=true, call browser-credential-setup then setup-credentials again
|
|
101
|
-
3. call apply-workflow-credentials with the workItemId and selected credentials
|
|
102
|
-
|
|
103
94
|
### Resource discovery
|
|
104
95
|
|
|
105
96
|
Before writing code that uses external services, **resolve real resource IDs**:
|
|
@@ -108,12 +99,9 @@ Before writing code that uses external services, **resolve real resource IDs**:
|
|
|
108
99
|
- Call get-suggested-nodes early if the workflow fits a known category (web_app, form_input, data_persistence, etc.) — the pattern hints prevent common mistakes
|
|
109
100
|
- Check @builderHint annotations in node type definitions for critical configuration guidance
|
|
110
101
|
|
|
111
|
-
###
|
|
102
|
+
### Publishing
|
|
112
103
|
|
|
113
|
-
|
|
114
|
-
- Resource list parameters (calendar, spreadsheet) need a real ID from explore-node-resources, not "primary"
|
|
115
|
-
- Expression parameters need the correct n8n expression syntax
|
|
116
|
-
- Required parameters missing from the node config
|
|
104
|
+
Do NOT call \`publish-workflow\` for the main workflow. Publishing is the user's decision after testing. Your job ends at a successful submit. The only exception is sub-workflows in the compositional pattern — those must be published so the parent workflow can reference them.
|
|
117
105
|
`;
|
|
118
106
|
function hashContent(content) {
|
|
119
107
|
return (0, node_crypto_1.createHash)('sha256')
|
|
@@ -145,7 +133,6 @@ async function startBuildWorkflowAgentTask(context, input) {
|
|
|
145
133
|
'list-workflows',
|
|
146
134
|
'list-credentials',
|
|
147
135
|
'test-credential',
|
|
148
|
-
'setup-credentials',
|
|
149
136
|
'ask-user',
|
|
150
137
|
'run-workflow',
|
|
151
138
|
'get-execution',
|
|
@@ -167,10 +154,6 @@ async function startBuildWorkflowAgentTask(context, input) {
|
|
|
167
154
|
}
|
|
168
155
|
if (context.workflowTaskService && context.domainContext) {
|
|
169
156
|
builderTools['verify-built-workflow'] = (0, verify_built_workflow_tool_1.createVerifyBuiltWorkflowTool)(context);
|
|
170
|
-
builderTools['apply-workflow-credentials'] = (0, apply_workflow_credentials_tool_1.createApplyWorkflowCredentialsTool)(context);
|
|
171
|
-
}
|
|
172
|
-
if (context.browserMcpConfig) {
|
|
173
|
-
builderTools['browser-credential-setup'] = (0, browser_credential_setup_tool_1.createBrowserCredentialSetupTool)(context);
|
|
174
157
|
}
|
|
175
158
|
}
|
|
176
159
|
else {
|
|
@@ -222,34 +205,30 @@ async function startBuildWorkflowAgentTask(context, input) {
|
|
|
222
205
|
},
|
|
223
206
|
});
|
|
224
207
|
const { workflowId } = input;
|
|
225
|
-
let
|
|
226
|
-
if (
|
|
227
|
-
|
|
228
|
-
try {
|
|
229
|
-
const entries = await context.iterationLog.getForTask(context.threadId, taskKey);
|
|
230
|
-
iterationContext = (0, iteration_log_1.formatPreviousAttempts)(entries);
|
|
231
|
-
}
|
|
232
|
-
catch {
|
|
233
|
-
}
|
|
208
|
+
let additionalContext = '';
|
|
209
|
+
if (useSandbox && workflowId) {
|
|
210
|
+
additionalContext = `[CONTEXT: Modifying existing workflow ${workflowId}. The current code is pre-loaded in ~/workspace/src/workflow.ts — read it first, then edit. Use workflowId "${workflowId}" when calling submit-workflow.]\n\n[WORK ITEM ID: ${workItemId}]`;
|
|
234
211
|
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
: '';
|
|
238
|
-
let briefing;
|
|
239
|
-
if (useSandbox) {
|
|
240
|
-
if (workflowId) {
|
|
241
|
-
briefing = `${input.task}${conversationCtx}\n\n[CONTEXT: Modifying existing workflow ${workflowId}. The current code is pre-loaded in ~/workspace/src/workflow.ts — read it first, then edit. Use workflowId "${workflowId}" when calling submit-workflow.]\n\n[WORK ITEM ID: ${workItemId}]\n\n${DETACHED_BUILDER_REQUIREMENTS}${iterationContext ? `\n\n${iterationContext}` : ''}`;
|
|
242
|
-
}
|
|
243
|
-
else {
|
|
244
|
-
briefing = `${input.task}${conversationCtx}\n\n[WORK ITEM ID: ${workItemId}]\n\n${DETACHED_BUILDER_REQUIREMENTS}${iterationContext ? `\n\n${iterationContext}` : ''}`;
|
|
245
|
-
}
|
|
212
|
+
else if (useSandbox) {
|
|
213
|
+
additionalContext = `[WORK ITEM ID: ${workItemId}]`;
|
|
246
214
|
}
|
|
247
215
|
else if (workflowId) {
|
|
248
|
-
|
|
249
|
-
}
|
|
250
|
-
else {
|
|
251
|
-
briefing = `${input.task}${conversationCtx}${iterationContext ? `\n\n${iterationContext}` : ''}`;
|
|
216
|
+
additionalContext = `[CONTEXT: Modifying existing workflow ${workflowId}. Use workflowId "${workflowId}" when calling build-workflow.]`;
|
|
252
217
|
}
|
|
218
|
+
const briefing = await (0, sub_agent_briefing_1.buildSubAgentBriefing)({
|
|
219
|
+
task: input.task,
|
|
220
|
+
conversationContext: input.conversationContext,
|
|
221
|
+
additionalContext: additionalContext || undefined,
|
|
222
|
+
requirements: useSandbox ? DETACHED_BUILDER_REQUIREMENTS : undefined,
|
|
223
|
+
iteration: context.iterationLog
|
|
224
|
+
? {
|
|
225
|
+
log: context.iterationLog,
|
|
226
|
+
threadId: context.threadId,
|
|
227
|
+
taskKey: `build:${workflowId ?? 'new'}`,
|
|
228
|
+
}
|
|
229
|
+
: undefined,
|
|
230
|
+
runningTasks: context.getRunningTaskSummaries?.(),
|
|
231
|
+
});
|
|
253
232
|
const traceContext = await (0, tracing_utils_1.createDetachedSubAgentTracing)(context, {
|
|
254
233
|
agentId: subAgentId,
|
|
255
234
|
role: 'workflow-builder',
|
|
@@ -271,7 +250,7 @@ async function startBuildWorkflowAgentTask(context, input) {
|
|
|
271
250
|
traceContext,
|
|
272
251
|
plannedTaskId: input.plannedTaskId,
|
|
273
252
|
workItemId,
|
|
274
|
-
run: async (signal, drainCorrections) => await (0, tracing_utils_1.withTraceContextActor)(traceContext, async () => {
|
|
253
|
+
run: async (signal, drainCorrections, waitForCorrection) => await (0, tracing_utils_1.withTraceContextActor)(traceContext, async () => {
|
|
275
254
|
let builderWs;
|
|
276
255
|
const submitAttempts = new Map();
|
|
277
256
|
try {
|
|
@@ -329,20 +308,14 @@ async function startBuildWorkflowAgentTask(context, input) {
|
|
|
329
308
|
const traceParent = (0, langsmith_tracing_1.getTraceParentRun)();
|
|
330
309
|
const hitlResult = await (0, langsmith_tracing_1.withTraceParentContext)(traceParent, async () => {
|
|
331
310
|
const llmStepTraceHooks = (0, resumable_stream_executor_1.createLlmStepTraceHooks)(traceParent);
|
|
332
|
-
const stream = await (
|
|
333
|
-
phase: 'initial',
|
|
334
|
-
agentId: subAgentId,
|
|
335
|
-
agentRole: 'workflow-builder',
|
|
336
|
-
threadId: context.threadId,
|
|
337
|
-
input: briefing,
|
|
338
|
-
}, async () => await subAgent.stream(briefing, {
|
|
311
|
+
const stream = await subAgent.stream(briefing, {
|
|
339
312
|
maxSteps: BUILDER_MAX_STEPS,
|
|
340
313
|
abortSignal: signal,
|
|
341
314
|
providerOptions: {
|
|
342
315
|
anthropic: { cacheControl: { type: 'ephemeral' } },
|
|
343
316
|
},
|
|
344
317
|
...(llmStepTraceHooks?.executionOptions ?? {}),
|
|
345
|
-
})
|
|
318
|
+
});
|
|
346
319
|
return await (0, consume_with_hitl_1.consumeStreamWithHitl)({
|
|
347
320
|
agent: subAgent,
|
|
348
321
|
stream: stream,
|
|
@@ -354,8 +327,8 @@ async function startBuildWorkflowAgentTask(context, input) {
|
|
|
354
327
|
abortSignal: signal,
|
|
355
328
|
waitForConfirmation: context.waitForConfirmation,
|
|
356
329
|
drainCorrections,
|
|
330
|
+
waitForCorrection,
|
|
357
331
|
llmStepTraceHooks,
|
|
358
|
-
workingMemoryEnabled: false,
|
|
359
332
|
});
|
|
360
333
|
});
|
|
361
334
|
const finalText = await hitlResult.text;
|
|
@@ -430,20 +403,14 @@ async function startBuildWorkflowAgentTask(context, input) {
|
|
|
430
403
|
const traceParent = (0, langsmith_tracing_1.getTraceParentRun)();
|
|
431
404
|
const hitlResult = await (0, langsmith_tracing_1.withTraceParentContext)(traceParent, async () => {
|
|
432
405
|
const llmStepTraceHooks = (0, resumable_stream_executor_1.createLlmStepTraceHooks)(traceParent);
|
|
433
|
-
const stream = await (
|
|
434
|
-
phase: 'initial',
|
|
435
|
-
agentId: subAgentId,
|
|
436
|
-
agentRole: 'workflow-builder',
|
|
437
|
-
threadId: context.threadId,
|
|
438
|
-
input: briefing,
|
|
439
|
-
}, async () => await subAgent.stream(briefing, {
|
|
406
|
+
const stream = await subAgent.stream(briefing, {
|
|
440
407
|
maxSteps: BUILDER_MAX_STEPS,
|
|
441
408
|
abortSignal: signal,
|
|
442
409
|
providerOptions: {
|
|
443
410
|
anthropic: { cacheControl: { type: 'ephemeral' } },
|
|
444
411
|
},
|
|
445
412
|
...(llmStepTraceHooks?.executionOptions ?? {}),
|
|
446
|
-
})
|
|
413
|
+
});
|
|
447
414
|
return await (0, consume_with_hitl_1.consumeStreamWithHitl)({
|
|
448
415
|
agent: subAgent,
|
|
449
416
|
stream: stream,
|
|
@@ -455,8 +422,8 @@ async function startBuildWorkflowAgentTask(context, input) {
|
|
|
455
422
|
abortSignal: signal,
|
|
456
423
|
waitForConfirmation: context.waitForConfirmation,
|
|
457
424
|
drainCorrections,
|
|
425
|
+
waitForCorrection,
|
|
458
426
|
llmStepTraceHooks,
|
|
459
|
-
workingMemoryEnabled: false,
|
|
460
427
|
});
|
|
461
428
|
});
|
|
462
429
|
const toolFinalText = await hitlResult.text;
|
|
@@ -473,25 +440,26 @@ async function startBuildWorkflowAgentTask(context, input) {
|
|
|
473
440
|
agentId: subAgentId,
|
|
474
441
|
};
|
|
475
442
|
}
|
|
443
|
+
exports.buildWorkflowAgentInputSchema = zod_1.z.object({
|
|
444
|
+
task: zod_1.z
|
|
445
|
+
.string()
|
|
446
|
+
.describe('What to build and any context: user requirements, available credential names/types.'),
|
|
447
|
+
workflowId: zod_1.z
|
|
448
|
+
.string()
|
|
449
|
+
.optional()
|
|
450
|
+
.describe('Existing workflow ID to modify. When provided, the agent starts with the current workflow code pre-loaded.'),
|
|
451
|
+
conversationContext: zod_1.z
|
|
452
|
+
.string()
|
|
453
|
+
.optional()
|
|
454
|
+
.describe('Brief summary of the conversation so far — what was discussed, decisions made, and information gathered (e.g., which credentials are available). The builder uses this to avoid repeating information the user already knows.'),
|
|
455
|
+
});
|
|
476
456
|
function createBuildWorkflowAgentTool(context) {
|
|
477
457
|
return (0, tools_1.createTool)({
|
|
478
458
|
id: 'build-workflow-with-agent',
|
|
479
459
|
description: 'Build or modify an n8n workflow using a specialized builder agent. ' +
|
|
480
460
|
'The agent handles node discovery, schema lookups, code generation, ' +
|
|
481
461
|
'and validation internally.',
|
|
482
|
-
inputSchema:
|
|
483
|
-
task: zod_1.z
|
|
484
|
-
.string()
|
|
485
|
-
.describe('What to build and any context: user requirements, available credential names/types.'),
|
|
486
|
-
workflowId: zod_1.z
|
|
487
|
-
.string()
|
|
488
|
-
.optional()
|
|
489
|
-
.describe('Existing workflow ID to modify. When provided, the agent starts with the current workflow code pre-loaded.'),
|
|
490
|
-
conversationContext: zod_1.z
|
|
491
|
-
.string()
|
|
492
|
-
.optional()
|
|
493
|
-
.describe('Brief summary of the conversation so far — what was discussed, decisions made, and information gathered (e.g., which credentials are available). The builder uses this to avoid repeating information the user already knows.'),
|
|
494
|
-
}),
|
|
462
|
+
inputSchema: exports.buildWorkflowAgentInputSchema,
|
|
495
463
|
outputSchema: zod_1.z.object({
|
|
496
464
|
result: zod_1.z.string(),
|
|
497
465
|
taskId: zod_1.z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-workflow-agent.tool.js","sourceRoot":"","sources":["../../../src/tools/orchestration/build-workflow-agent.tool.ts"],"names":[],"mappings":";;AAkLA,kEAqbC;AAED,oEAmCC;AAnoBD,8CAA2C;AAE3C,8CAAgD;AAChD,oDAAyD;AACzD,mCAAgC;AAChC,6CAAyC;AACzC,6BAAwB;AAExB,mFAAmF;AACnF,+EAGuC;AACvC,mDAAgD;AAChD,mDAIyB;AACzB,6EAA6E;AAC7E,2EAAsE;AACtE,uFAAkF;AAClF,iFAAiF;AACjF,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