@n8n/instance-ai 1.7.1 → 1.8.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.d.ts +1 -1
- package/dist/agent/instance-agent.js +88 -75
- package/dist/agent/instance-agent.js.map +1 -1
- package/dist/agent/mcp-tool-name-validation.d.ts +4 -2
- package/dist/agent/mcp-tool-name-validation.js +2 -2
- package/dist/agent/mcp-tool-name-validation.js.map +1 -1
- package/dist/agent/runtime-workspace.d.ts +6 -0
- package/dist/agent/runtime-workspace.js +14 -0
- package/dist/agent/runtime-workspace.js.map +1 -0
- package/dist/agent/sanitize-mcp-schemas.d.ts +4 -3
- package/dist/agent/sanitize-mcp-schemas.js +53 -24
- package/dist/agent/sanitize-mcp-schemas.js.map +1 -1
- package/dist/agent/sub-agent-debriefing.d.ts +2 -2
- package/dist/agent/sub-agent-factory.d.ts +7 -4
- package/dist/agent/sub-agent-factory.js +24 -13
- package/dist/agent/sub-agent-factory.js.map +1 -1
- package/dist/agent/system-prompt.js +18 -15
- package/dist/agent/system-prompt.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/constants/max-steps.d.ts +1 -1
- package/dist/constants/max-steps.js +1 -1
- package/dist/constants/max-steps.js.map +1 -1
- package/dist/domain-access/domain-gating.d.ts +2 -2
- package/dist/error-formatting.d.ts +1 -0
- package/dist/error-formatting.js +159 -0
- package/dist/error-formatting.js.map +1 -0
- package/dist/index.d.ts +65 -24
- package/dist/index.js +96 -52
- package/dist/index.js.map +1 -1
- package/dist/mcp/mcp-client-manager.d.ts +5 -4
- package/dist/mcp/mcp-client-manager.js +42 -17
- package/dist/mcp/mcp-client-manager.js.map +1 -1
- package/dist/memory/title-utils.d.ts +4 -1
- package/dist/memory/title-utils.js +10 -2
- package/dist/memory/title-utils.js.map +1 -1
- package/dist/parsers/structured-file-parser.d.ts +5 -2
- package/dist/parsers/structured-file-parser.js +9 -2
- package/dist/parsers/structured-file-parser.js.map +1 -1
- package/dist/planned-tasks/planned-task-permissions.js +3 -5
- package/dist/planned-tasks/planned-task-permissions.js.map +1 -1
- package/dist/planned-tasks/planned-task-service.d.ts +1 -0
- package/dist/planned-tasks/planned-task-service.js +8 -0
- package/dist/planned-tasks/planned-task-service.js.map +1 -1
- package/dist/runtime/background-task-manager.d.ts +9 -2
- package/dist/runtime/background-task-manager.js +7 -2
- package/dist/runtime/background-task-manager.js.map +1 -1
- package/dist/runtime/liveness-policy.js +4 -3
- package/dist/runtime/liveness-policy.js.map +1 -1
- package/dist/runtime/resumable-stream-executor.d.ts +4 -24
- package/dist/runtime/resumable-stream-executor.js +103 -1318
- package/dist/runtime/resumable-stream-executor.js.map +1 -1
- package/dist/runtime/run-state-registry.d.ts +8 -2
- package/dist/runtime/run-state-registry.js +19 -1
- package/dist/runtime/run-state-registry.js.map +1 -1
- package/dist/runtime/stream-runner.d.ts +4 -4
- package/dist/runtime/stream-runner.js +11 -25
- package/dist/runtime/stream-runner.js.map +1 -1
- package/dist/skills/materialize-runtime-skills.d.ts +62 -0
- package/dist/skills/materialize-runtime-skills.js +465 -0
- package/dist/skills/materialize-runtime-skills.js.map +1 -0
- package/dist/skills/runtime-skills.d.ts +4 -0
- package/dist/skills/runtime-skills.js +17 -0
- package/dist/skills/runtime-skills.js.map +1 -0
- package/dist/source-map-filter.d.ts +17 -0
- package/dist/source-map-filter.js +39 -0
- package/dist/source-map-filter.js.map +1 -0
- package/dist/storage/agent-tree-snapshot.d.ts +2 -0
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.js +8 -7
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/planned-task-storage.d.ts +3 -3
- package/dist/storage/planned-task-storage.js +3 -8
- package/dist/storage/planned-task-storage.js.map +1 -1
- package/dist/storage/terminal-outcome-storage.d.ts +4 -4
- package/dist/storage/terminal-outcome-storage.js +1 -1
- package/dist/storage/terminal-outcome-storage.js.map +1 -1
- package/dist/storage/{mastra-iteration-log-storage.d.ts → thread-iteration-log-storage.d.ts} +3 -3
- package/dist/storage/{mastra-iteration-log-storage.js → thread-iteration-log-storage.js} +5 -5
- package/dist/storage/thread-iteration-log-storage.js.map +1 -0
- package/dist/storage/thread-patch.d.ts +16 -10
- package/dist/storage/thread-patch.js +37 -36
- package/dist/storage/thread-patch.js.map +1 -1
- package/dist/storage/{mastra-task-storage.d.ts → thread-task-storage.d.ts} +3 -3
- package/dist/storage/{mastra-task-storage.js → thread-task-storage.js} +5 -5
- package/dist/storage/thread-task-storage.js.map +1 -0
- package/dist/storage/workflow-loop-storage.d.ts +28 -28
- package/dist/storage/workflow-loop-storage.js +1 -1
- package/dist/storage/workflow-loop-storage.js.map +1 -1
- package/dist/stream/consume-with-hitl.d.ts +11 -11
- package/dist/stream/consume-with-hitl.js +27 -15
- 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 +153 -36
- package/dist/stream/map-chunk.js.map +1 -1
- package/dist/tool-registry.d.ts +8 -0
- package/dist/tool-registry.js +45 -0
- package/dist/tool-registry.js.map +1 -0
- package/dist/tools/attachments/parse-file.tool.d.ts +42 -45
- package/dist/tools/attachments/parse-file.tool.js +140 -97
- package/dist/tools/attachments/parse-file.tool.js.map +1 -1
- package/dist/tools/credentials.tool.d.ts +5 -5
- package/dist/tools/credentials.tool.js +31 -34
- package/dist/tools/credentials.tool.js.map +1 -1
- package/dist/tools/data-tables.tool.d.ts +3 -2
- package/dist/tools/data-tables.tool.js +99 -100
- package/dist/tools/data-tables.tool.js.map +1 -1
- package/dist/tools/evals/apply-pin-data.service.d.ts +3 -0
- package/dist/tools/evals/apply-pin-data.service.js +19 -0
- package/dist/tools/evals/apply-pin-data.service.js.map +1 -0
- package/dist/tools/evals/column-ref-utils.d.ts +3 -0
- package/dist/tools/evals/column-ref-utils.js +205 -48
- package/dist/tools/evals/column-ref-utils.js.map +1 -1
- package/dist/tools/evals/detect-agent-named-refs.service.js +20 -4
- package/dist/tools/evals/detect-agent-named-refs.service.js.map +1 -1
- package/dist/tools/evals/ensure-eval-data-table.service.d.ts +15 -0
- package/dist/tools/evals/ensure-eval-data-table.service.js +83 -0
- package/dist/tools/evals/ensure-eval-data-table.service.js.map +1 -0
- package/dist/tools/evals/eval-data-requirements.service.d.ts +1 -0
- package/dist/tools/evals/eval-data-requirements.service.js +23 -4
- package/dist/tools/evals/eval-data-requirements.service.js.map +1 -1
- package/dist/tools/evals/evals.tool.d.ts +2 -0
- package/dist/tools/evals/evals.tool.js +452 -0
- package/dist/tools/evals/evals.tool.js.map +1 -0
- package/dist/tools/evals/extract-rows-from-history.service.d.ts +17 -0
- package/dist/tools/evals/extract-rows-from-history.service.js +103 -0
- package/dist/tools/evals/extract-rows-from-history.service.js.map +1 -0
- package/dist/tools/evals/format-eval-setup-task.d.ts +16 -0
- package/dist/tools/evals/format-eval-setup-task.js +167 -0
- package/dist/tools/evals/format-eval-setup-task.js.map +1 -0
- package/dist/tools/evals/generate-sample-rows.service.d.ts +35 -0
- package/dist/tools/evals/generate-sample-rows.service.js +278 -0
- package/dist/tools/evals/generate-sample-rows.service.js.map +1 -0
- package/dist/tools/evals/generate-tool-ref-pin-data.service.d.ts +11 -0
- package/dist/tools/evals/generate-tool-ref-pin-data.service.js +125 -0
- package/dist/tools/evals/generate-tool-ref-pin-data.service.js.map +1 -0
- package/dist/tools/evals/metric-catalog.d.ts +10 -4
- package/dist/tools/evals/metric-catalog.js.map +1 -1
- package/dist/tools/executions.tool.d.ts +1 -1
- package/dist/tools/executions.tool.js +25 -34
- package/dist/tools/executions.tool.js.map +1 -1
- package/dist/tools/filesystem/create-tools-from-mcp-server.d.ts +2 -3
- package/dist/tools/filesystem/create-tools-from-mcp-server.js +129 -67
- package/dist/tools/filesystem/create-tools-from-mcp-server.js.map +1 -1
- package/dist/tools/index.d.ts +4 -16
- package/dist/tools/index.js +102 -92
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/nodes.tool.d.ts +1 -1
- package/dist/tools/nodes.tool.js +31 -33
- package/dist/tools/nodes.tool.js.map +1 -1
- package/dist/tools/orchestration/add-plan-item.tool.d.ts +2 -2
- package/dist/tools/orchestration/add-plan-item.tool.js +45 -49
- package/dist/tools/orchestration/add-plan-item.tool.js.map +1 -1
- package/dist/tools/orchestration/agent-persistence.d.ts +14 -0
- package/dist/tools/orchestration/agent-persistence.js +43 -0
- package/dist/tools/orchestration/agent-persistence.js.map +1 -0
- package/dist/tools/orchestration/blueprint-accumulator.d.ts +4 -8
- package/dist/tools/orchestration/blueprint-accumulator.js +11 -78
- package/dist/tools/orchestration/blueprint-accumulator.js.map +1 -1
- package/dist/tools/orchestration/blueprint.schema.d.ts +13 -147
- package/dist/tools/orchestration/blueprint.schema.js +4 -23
- package/dist/tools/orchestration/blueprint.schema.js.map +1 -1
- package/dist/tools/orchestration/browser-credential-setup.nudge.d.ts +2 -4
- package/dist/tools/orchestration/browser-credential-setup.nudge.js +1 -1
- package/dist/tools/orchestration/browser-credential-setup.nudge.js.map +1 -1
- package/dist/tools/orchestration/browser-credential-setup.tool.d.ts +10 -2
- package/dist/tools/orchestration/browser-credential-setup.tool.js +299 -270
- package/dist/tools/orchestration/browser-credential-setup.tool.js.map +1 -1
- package/dist/tools/orchestration/build-workflow-agent.prompt.d.ts +7 -1
- package/dist/tools/orchestration/build-workflow-agent.prompt.js +46 -20
- package/dist/tools/orchestration/build-workflow-agent.prompt.js.map +1 -1
- package/dist/tools/orchestration/build-workflow-agent.tool.d.ts +50 -5
- package/dist/tools/orchestration/build-workflow-agent.tool.js +748 -605
- package/dist/tools/orchestration/build-workflow-agent.tool.js.map +1 -1
- package/dist/tools/orchestration/builder-memory-compaction.d.ts +6 -2
- package/dist/tools/orchestration/builder-memory-compaction.js +32 -46
- package/dist/tools/orchestration/builder-memory-compaction.js.map +1 -1
- package/dist/tools/orchestration/complete-checkpoint.tool.d.ts +1 -1
- package/dist/tools/orchestration/complete-checkpoint.tool.js +46 -47
- package/dist/tools/orchestration/complete-checkpoint.tool.js.map +1 -1
- package/dist/tools/orchestration/delegate.tool.d.ts +1 -1
- package/dist/tools/orchestration/delegate.tool.js +170 -166
- package/dist/tools/orchestration/delegate.tool.js.map +1 -1
- package/dist/tools/orchestration/eval-data-agent.tool.d.ts +2 -0
- package/dist/tools/orchestration/eval-data-agent.tool.js +183 -0
- package/dist/tools/orchestration/eval-data-agent.tool.js.map +1 -0
- package/dist/tools/orchestration/eval-setup-agent.prompt.d.ts +1 -0
- package/dist/tools/orchestration/eval-setup-agent.prompt.js +238 -0
- package/dist/tools/orchestration/eval-setup-agent.prompt.js.map +1 -0
- package/dist/tools/orchestration/eval-setup-agent.tool.d.ts +31 -0
- package/dist/tools/orchestration/eval-setup-agent.tool.js +204 -0
- package/dist/tools/orchestration/eval-setup-agent.tool.js.map +1 -0
- package/dist/tools/orchestration/plan-agent-prompt.d.ts +1 -1
- package/dist/tools/orchestration/plan-agent-prompt.js +9 -9
- package/dist/tools/orchestration/plan-with-agent.tool.d.ts +1 -1
- package/dist/tools/orchestration/plan-with-agent.tool.js +210 -179
- package/dist/tools/orchestration/plan-with-agent.tool.js.map +1 -1
- package/dist/tools/orchestration/plan.tool.d.ts +5 -2
- package/dist/tools/orchestration/plan.tool.js +125 -105
- package/dist/tools/orchestration/plan.tool.js.map +1 -1
- package/dist/tools/orchestration/report-verification-verdict.tool.d.ts +3 -3
- package/dist/tools/orchestration/report-verification-verdict.tool.js +65 -66
- package/dist/tools/orchestration/report-verification-verdict.tool.js.map +1 -1
- package/dist/tools/orchestration/submit-plan.tool.d.ts +1 -1
- package/dist/tools/orchestration/submit-plan.tool.js +83 -66
- package/dist/tools/orchestration/submit-plan.tool.js.map +1 -1
- package/dist/tools/orchestration/tracing-utils.d.ts +3 -2
- package/dist/tools/orchestration/tracing-utils.js +58 -39
- package/dist/tools/orchestration/tracing-utils.js.map +1 -1
- package/dist/tools/orchestration/verify-built-workflow.tool.d.ts +5 -5
- package/dist/tools/orchestration/verify-built-workflow.tool.js +166 -166
- package/dist/tools/orchestration/verify-built-workflow.tool.js.map +1 -1
- package/dist/tools/research.tool.d.ts +1 -1
- package/dist/tools/research.tool.js +59 -27
- package/dist/tools/research.tool.js.map +1 -1
- package/dist/tools/shared/ask-user.tool.d.ts +3 -2
- package/dist/tools/shared/ask-user.tool.js +61 -63
- package/dist/tools/shared/ask-user.tool.js.map +1 -1
- package/dist/tools/task-control.tool.d.ts +1 -1
- package/dist/tools/task-control.tool.js +15 -16
- package/dist/tools/task-control.tool.js.map +1 -1
- package/dist/tools/templates.tool.d.ts +1 -1
- package/dist/tools/templates.tool.js +6 -7
- package/dist/tools/templates.tool.js.map +1 -1
- package/dist/tools/tool-ids.d.ts +40 -0
- package/dist/tools/tool-ids.js +62 -0
- package/dist/tools/tool-ids.js.map +1 -0
- package/dist/tools/workflows/apply-workflow-credentials.tool.d.ts +3 -3
- package/dist/tools/workflows/apply-workflow-credentials.tool.js +72 -73
- package/dist/tools/workflows/apply-workflow-credentials.tool.js.map +1 -1
- package/dist/tools/workflows/build-workflow.tool.d.ts +3 -3
- package/dist/tools/workflows/build-workflow.tool.js +113 -114
- package/dist/tools/workflows/build-workflow.tool.js.map +1 -1
- package/dist/tools/workflows/materialize-node-type.tool.d.ts +6 -6
- package/dist/tools/workflows/materialize-node-type.tool.js +64 -65
- package/dist/tools/workflows/materialize-node-type.tool.js.map +1 -1
- package/dist/tools/workflows/resolve-credentials.d.ts +3 -5
- package/dist/tools/workflows/resolve-credentials.js +15 -6
- package/dist/tools/workflows/resolve-credentials.js.map +1 -1
- package/dist/tools/workflows/setup-workflow.schema.d.ts +2 -2
- package/dist/tools/workflows/submit-workflow-identity.d.ts +8 -9
- package/dist/tools/workflows/submit-workflow-identity.js +41 -27
- package/dist/tools/workflows/submit-workflow-identity.js.map +1 -1
- package/dist/tools/workflows/submit-workflow.tool.d.ts +10 -7
- package/dist/tools/workflows/submit-workflow.tool.js +224 -191
- package/dist/tools/workflows/submit-workflow.tool.js.map +1 -1
- package/dist/tools/workflows/validate-workflow.service.d.ts +15 -0
- package/dist/tools/workflows/validate-workflow.service.js +289 -0
- package/dist/tools/workflows/validate-workflow.service.js.map +1 -0
- package/dist/tools/workflows/write-sandbox-file.tool.d.ts +2 -2
- package/dist/tools/workflows/write-sandbox-file.tool.js +29 -30
- package/dist/tools/workflows/write-sandbox-file.tool.js.map +1 -1
- package/dist/tools/workflows.tool.d.ts +5 -2
- package/dist/tools/workflows.tool.js +184 -85
- package/dist/tools/workflows.tool.js.map +1 -1
- package/dist/tools/workspace.tool.d.ts +1 -1
- package/dist/tools/workspace.tool.js +49 -65
- package/dist/tools/workspace.tool.js.map +1 -1
- package/dist/tracing/langsmith-tracing.d.ts +17 -18
- package/dist/tracing/langsmith-tracing.js +941 -677
- package/dist/tracing/langsmith-tracing.js.map +1 -1
- package/dist/tracing/trace-labels.d.ts +5 -0
- package/dist/tracing/trace-labels.js +36 -0
- package/dist/tracing/trace-labels.js.map +1 -0
- package/dist/tracing/trace-payloads.d.ts +23 -0
- package/dist/tracing/trace-payloads.js +1008 -0
- package/dist/tracing/trace-payloads.js.map +1 -0
- package/dist/types.d.ts +57 -25
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -1
- package/dist/utils/eval-agents.js +1 -1
- package/dist/utils/eval-agents.js.map +1 -1
- package/dist/utils/scrub-secrets.js +1 -1
- package/dist/utils/scrub-secrets.js.map +1 -1
- package/dist/utils/stream-helpers.d.ts +2 -5
- package/dist/utils/stream-helpers.js +12 -1
- package/dist/utils/stream-helpers.js.map +1 -1
- package/dist/workflow-loop/workflow-loop-state.d.ts +18 -18
- package/dist/workspace/builder-templates-service.d.ts +54 -0
- package/dist/workspace/builder-templates-service.js +442 -0
- package/dist/workspace/builder-templates-service.js.map +1 -0
- package/dist/workspace/create-workspace.d.ts +16 -3
- package/dist/workspace/create-workspace.js +45 -21
- package/dist/workspace/create-workspace.js.map +1 -1
- package/dist/workspace/daytona-auth-manager.d.ts +26 -0
- package/dist/workspace/daytona-auth-manager.js +90 -0
- package/dist/workspace/daytona-auth-manager.js.map +1 -0
- package/dist/workspace/daytona-filesystem.d.ts +5 -4
- package/dist/workspace/daytona-filesystem.js +25 -15
- package/dist/workspace/daytona-filesystem.js.map +1 -1
- package/dist/workspace/daytona-sandbox.d.ts +65 -0
- package/dist/workspace/daytona-sandbox.js +314 -0
- package/dist/workspace/daytona-sandbox.js.map +1 -0
- package/dist/workspace/lazy-daytona.d.ts +2 -0
- package/dist/workspace/lazy-daytona.js +12 -0
- package/dist/workspace/lazy-daytona.js.map +1 -0
- package/dist/workspace/lazy-runtime-workspace.d.ts +8 -0
- package/dist/workspace/lazy-runtime-workspace.js +246 -0
- package/dist/workspace/lazy-runtime-workspace.js.map +1 -0
- package/dist/workspace/local-filesystem.d.ts +48 -0
- package/dist/workspace/local-filesystem.js +250 -0
- package/dist/workspace/local-filesystem.js.map +1 -0
- package/dist/workspace/local-sandbox.d.ts +28 -0
- package/dist/workspace/local-sandbox.js +121 -0
- package/dist/workspace/local-sandbox.js.map +1 -0
- package/dist/workspace/n8n-sandbox-filesystem.d.ts +3 -3
- package/dist/workspace/n8n-sandbox-filesystem.js +3 -3
- package/dist/workspace/n8n-sandbox-filesystem.js.map +1 -1
- package/dist/workspace/n8n-sandbox-sandbox.d.ts +12 -3
- package/dist/workspace/n8n-sandbox-sandbox.js +54 -10
- package/dist/workspace/n8n-sandbox-sandbox.js.map +1 -1
- package/dist/workspace/sandbox-fs.d.ts +35 -4
- package/dist/workspace/sandbox-fs.js +1 -1
- package/dist/workspace/sandbox-fs.js.map +1 -1
- package/dist/workspace/sandbox-setup.d.ts +13 -4
- package/dist/workspace/sandbox-setup.js +250 -36
- package/dist/workspace/sandbox-setup.js.map +1 -1
- package/dist/workspace/scoped-workspace.d.ts +2 -0
- package/dist/workspace/scoped-workspace.js +141 -0
- package/dist/workspace/scoped-workspace.js.map +1 -0
- package/dist/workspace/snapshot-manager.d.ts +11 -5
- package/dist/workspace/snapshot-manager.js +74 -17
- package/dist/workspace/snapshot-manager.js.map +1 -1
- package/dist/workspace/template-telemetry.d.ts +4 -4
- package/dist/workspace/template-telemetry.js +18 -6
- package/dist/workspace/template-telemetry.js.map +1 -1
- package/package.json +13 -16
- package/skills/data-table-manager/SKILL.md +119 -0
- package/skills/data-table-manager/references/data-table-playbook.md +212 -0
- package/dist/agent/register-with-mastra.d.ts +0 -3
- package/dist/agent/register-with-mastra.js +0 -15
- package/dist/agent/register-with-mastra.js.map +0 -1
- package/dist/compaction/compaction-helper.d.ts +0 -9
- package/dist/compaction/compaction-helper.js +0 -58
- package/dist/compaction/compaction-helper.js.map +0 -1
- package/dist/compaction/index.d.ts +0 -2
- package/dist/compaction/index.js +0 -6
- package/dist/compaction/index.js.map +0 -1
- package/dist/memory/memory-config.d.ts +0 -3
- package/dist/memory/memory-config.js +0 -27
- package/dist/memory/memory-config.js.map +0 -1
- package/dist/runtime/builder-sandbox-session-registry.d.ts +0 -47
- package/dist/runtime/builder-sandbox-session-registry.js +0 -166
- package/dist/runtime/builder-sandbox-session-registry.js.map +0 -1
- package/dist/storage/mastra-iteration-log-storage.js.map +0 -1
- package/dist/storage/mastra-task-storage.js.map +0 -1
- package/dist/tools/orchestration/data-table-agent.prompt.d.ts +0 -1
- package/dist/tools/orchestration/data-table-agent.prompt.js +0 -47
- package/dist/tools/orchestration/data-table-agent.prompt.js.map +0 -1
- package/dist/tools/orchestration/data-table-agent.tool.d.ts +0 -26
- package/dist/tools/orchestration/data-table-agent.tool.js +0 -174
- package/dist/tools/orchestration/data-table-agent.tool.js.map +0 -1
- package/dist/tools/orchestration/research-agent-prompt.d.ts +0 -1
- package/dist/tools/orchestration/research-agent-prompt.js +0 -26
- package/dist/tools/orchestration/research-agent-prompt.js.map +0 -1
- package/dist/tools/orchestration/research-with-agent.tool.d.ts +0 -30
- package/dist/tools/orchestration/research-with-agent.tool.js +0 -179
- package/dist/tools/orchestration/research-with-agent.tool.js.map +0 -1
- package/dist/workspace/builder-sandbox-factory.d.ts +0 -30
- package/dist/workspace/builder-sandbox-factory.js +0 -289
- package/dist/workspace/builder-sandbox-factory.js.map +0 -1
- package/dist/workspace/guarded-filesystem.d.ts +0 -10
- package/dist/workspace/guarded-filesystem.js +0 -136
- package/dist/workspace/guarded-filesystem.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser-credential-setup.tool.js","sourceRoot":"","sources":["../../../src/tools/orchestration/browser-credential-setup.tool.ts"],"names":[],"mappings":";;;AA8IA,4EAuTC;AArcD,8CAA2C;AAE3C,8CAAgD;AAChD,8CAAsE;AACtE,mCAAgC;AAChC,6BAAwB;AAExB,qFAAyE;AACzE,uFAAoG;AACpG,mDAMyB;AACzB,2EAAsE;AACtE,yDAAsD;AACtD,uFAGiD;AACjD,uEAKyC;AAEzC,6FAA2F;AAC3F,oDAAsD;AACtD,2DAA4D;AAE5D,qFAAoG;AAA3F,0IAAA,uBAAuB,OAAA;AAEhC,MAAM,uBAAuB,GAAG,mCAAmC,CAAC;AACpE,MAAM,qBAAqB,GAC1B,gIAAgI,CAAC;AAElI,MAAM,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,iBAAiB,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxE,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;CACzE,CAAC,CAAC;AAEH,SAAS,uBAAuB,CAAC,MAAe;IAC/C,MAAM,MAAM,GAAG,4BAA4B,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAC9D,IAAI,CAAC,MAAM,CA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J,CAAC"}
|
|
1
|
+
{"version":3,"file":"browser-credential-setup.tool.js","sourceRoot":"","sources":["../../../src/tools/orchestration/browser-credential-setup.tool.ts"],"names":[],"mappings":";;;AA+MA,4EAiRC;AAheD,wCAA0D;AAC1D,8CAAsE;AACtE,mCAAgC;AAChC,6BAAwB;AAExB,2DAAgE;AAChE,qFAAyE;AACzE,uFAAoG;AACpG,mDAIyB;AACzB,qEAAmF;AACnF,yDAAsD;AACtD,uFAGiD;AAEjD,uDAA+F;AAC/F,uEAA6F;AAE7F,6FAA2F;AAC3F,oDAAsD;AACtD,2DAA4D;AAE5D,qFAAoG;AAA3F,0IAAA,uBAAuB,OAAA;AAEhC,MAAM,6BAA6B,GAAG,gCAAgC,CAAC;AACvE,MAAM,uBAAuB,GAAG,mCAAmC,CAAC;AACpE,MAAM,qBAAqB,GAC1B,gIAAgI,CAAC;AAElI,MAAM,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,iBAAiB,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IACtF,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;CACzE,CAAC,CAAC;AAEH,SAAS,uBAAuB,CAAC,MAAe;IAC/C,MAAM,MAAM,GAAG,4BAA4B,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAC9D,IAAI,CAAC,MAAM,CAAC,OAAO;QAAE,OAAO,KAAK,CAAC;IAElC,MAAM,QAAQ,GAAG;QAChB,MAAM,CAAC,IAAI,CAAC,iBAAiB,EAAE,KAAK,IAAI,EA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C,CAAC;gBACxE,CAAC;YACF,CAAC,CAAC;SACH,CAAC,CAAC;QAEH,IAAI,YAAY,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;YACzC,OAAO;gBACN,MAAM,EAAE,sDAAsD,YAAY,CAAC,QAAQ,CAAC,MAAM,2EAA2E;aACrK,CAAC;QACH,CAAC;QACD,IAAI,YAAY,CAAC,MAAM,KAAK,eAAe,EAAE,CAAC;YAC7C,OAAO;gBACN,MAAM,EACL,wIAAwI;aACzI,CAAC;QACH,CAAC;QAED,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE;YAC1C,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,OAAO,EAAE,UAAU;YACnB,OAAO,EAAE;gBACR,QAAQ,EAAE,OAAO,CAAC,mBAAmB;gBACrC,IAAI,EAAE,6BAA6B;gBACnC,KAAK,EAAE,IAAA,gCAAgB,EAAC,+BAA+B,CAAC;gBACxD,MAAM;gBACN,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,uBAAuB;gBAC9B,QAAQ,EAAE,KAAK,CAAC,cAAc;gBAC9B,IAAI,EAAE,UAAU,KAAK,CAAC,cAAc,EAAE;gBACtC,cAAc,EAAE,EAAE,IAAI,EAAE,YAAqB,EAAE;aAC/C;SACD,CAAC,CAAC;QAEH,OAAO;YACN,MAAM,EAAE,2CAA2C,MAAM,0EAA0E;SACnI,CAAC;IACH,CAAC,CAAC;SACD,KAAK,EAAE,CAAC;AACX,CAAC"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
export declare const BUILDER_AGENT_PROMPT: string;
|
|
2
|
-
export
|
|
2
|
+
export interface SandboxBuilderWorkspaceLayout {
|
|
3
|
+
mainWorkflowPath?: string;
|
|
4
|
+
sourceDir?: string;
|
|
5
|
+
chunksDir?: string;
|
|
6
|
+
tsconfigPath?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function createSandboxBuilderAgentPrompt(workspaceRoot: string, layout?: SandboxBuilderWorkspaceLayout): string;
|
|
@@ -37,6 +37,14 @@ const NODE_CONFIGURATION_SAFETY_RULES = `## Node Configuration Safety Rules
|
|
|
37
37
|
- Fetch \`nodes(action="type-definition")\` before configuring nodes. Generated definitions and \`@builderHint\` annotations are the source of truth.
|
|
38
38
|
- Use live \`nodes(action="explore-resources")\` for resource locator, list, and model fields when credentials are available.
|
|
39
39
|
- If a configuration is unclear after reading the definition, ask for clarification or use placeholders — do not guess.`;
|
|
40
|
+
const TOOL_NAMING_RULES = `## Tool Naming Rules
|
|
41
|
+
|
|
42
|
+
- Name tools by the action they perform, not by repeating the integration or tool family name.
|
|
43
|
+
- Always set an explicit \`config.name\` on every \`tool(...)\` node you create. Do not rely on auto-generated names for tools.
|
|
44
|
+
- Do NOT prefix a tool name with the service name when the tool already belongs to that service.
|
|
45
|
+
- Prefer concise snake_case action names like \`get_email\`, \`add_labels\`, or \`mark_as_read\`.
|
|
46
|
+
- Avoid redundant names like \`gmail_get_email\`, \`slack_send_message\`, or \`notion_create_page\` unless the user explicitly asked for that exact name.
|
|
47
|
+
- Keep names specific enough to distinguish sibling tools, but remove repeated vendor/type prefixes first.`;
|
|
40
48
|
const BUILDER_SPECIFIC_PATTERNS = `## Critical Patterns (Common Mistakes)
|
|
41
49
|
|
|
42
50
|
**Pay attention to @builderHint annotations in search results and type definitions** — they contain node-specific configuration rules and code examples. Read them carefully when configuring any node — they prevent common mistakes.`;
|
|
@@ -71,6 +79,7 @@ function composeSdkRulesAndPatterns(mode) {
|
|
|
71
79
|
return [
|
|
72
80
|
SDK_CODE_RULES,
|
|
73
81
|
mode === 'sandbox' ? SANDBOX_WORKFLOW_RULES : sdk_reference_1.WORKFLOW_RULES,
|
|
82
|
+
TOOL_NAMING_RULES,
|
|
74
83
|
'## SDK Patterns Reference\n\n' + sdk_reference_1.WORKFLOW_SDK_PATTERNS,
|
|
75
84
|
'## Expression Reference\n\n' + sdk_reference_1.EXPRESSION_REFERENCE,
|
|
76
85
|
'## Additional Functions\n\n' + sdk_reference_1.ADDITIONAL_FUNCTIONS,
|
|
@@ -111,7 +120,20 @@ Do NOT produce visible output until step 6. All reasoning happens internally.
|
|
|
111
120
|
|
|
112
121
|
${SDK_RULES_AND_PATTERNS_TOOL}
|
|
113
122
|
`;
|
|
114
|
-
function
|
|
123
|
+
function relativeToWorkspace(workspaceRoot, filePath) {
|
|
124
|
+
return filePath.startsWith(`${workspaceRoot}/`)
|
|
125
|
+
? filePath.slice(workspaceRoot.length + 1)
|
|
126
|
+
: filePath;
|
|
127
|
+
}
|
|
128
|
+
function createSandboxBuilderAgentPrompt(workspaceRoot, layout = {}) {
|
|
129
|
+
const sourceDir = layout.sourceDir ?? `${workspaceRoot}/src`;
|
|
130
|
+
const chunksDir = layout.chunksDir ?? `${workspaceRoot}/chunks`;
|
|
131
|
+
const mainWorkflowPath = layout.mainWorkflowPath ?? `${sourceDir}/workflow.ts`;
|
|
132
|
+
const tsconfigCommand = layout.tsconfigPath
|
|
133
|
+
? `cd ${workspaceRoot} && npx tsc --noEmit --project ${layout.tsconfigPath} 2>&1`
|
|
134
|
+
: `cd ${workspaceRoot} && npx tsc --noEmit 2>&1`;
|
|
135
|
+
const sourceDirLabel = relativeToWorkspace(workspaceRoot, sourceDir);
|
|
136
|
+
const chunksDirLabel = relativeToWorkspace(workspaceRoot, chunksDir);
|
|
115
137
|
return `You are an expert n8n workflow builder working inside a sandbox with real TypeScript tooling. You write workflow code as files and use \`tsc\` for validation.
|
|
116
138
|
|
|
117
139
|
${BUILDER_OUTPUT_DISCIPLINE}
|
|
@@ -128,18 +150,22 @@ ${workspaceRoot}/
|
|
|
128
150
|
workflows/ # existing n8n workflows as JSON
|
|
129
151
|
node-types/
|
|
130
152
|
index.txt # searchable catalog: nodeType | displayName | description | version
|
|
131
|
-
|
|
132
|
-
workflow.ts # write
|
|
133
|
-
|
|
134
|
-
*.ts # reusable node/workflow modules
|
|
153
|
+
${sourceDirLabel}/
|
|
154
|
+
workflow.ts # write this task's main workflow code here
|
|
155
|
+
${chunksDirLabel}/
|
|
156
|
+
*.ts # reusable node/workflow modules for this task
|
|
135
157
|
\`\`\`
|
|
136
158
|
|
|
159
|
+
Your active main workflow file is \`${mainWorkflowPath}\`.
|
|
160
|
+
Use \`${chunksDir}/\` for supporting chunk files in this task.
|
|
161
|
+
Do not write this task's workflow code into any other builder task directory.
|
|
162
|
+
|
|
137
163
|
## Modular Code
|
|
138
164
|
|
|
139
|
-
For complex workflows, split reusable pieces into separate files in
|
|
165
|
+
For complex workflows, split reusable pieces into separate files in \`${chunksDir}/\`:
|
|
140
166
|
|
|
141
167
|
\`\`\`typescript
|
|
142
|
-
// ${
|
|
168
|
+
// ${chunksDir}/weather.ts
|
|
143
169
|
import { node } from '@n8n/workflow-sdk';
|
|
144
170
|
|
|
145
171
|
export const weatherNode = node({
|
|
@@ -154,7 +180,7 @@ export const weatherNode = node({
|
|
|
154
180
|
\`\`\`
|
|
155
181
|
|
|
156
182
|
\`\`\`typescript
|
|
157
|
-
// ${
|
|
183
|
+
// ${mainWorkflowPath}
|
|
158
184
|
import { workflow, trigger } from '@n8n/workflow-sdk';
|
|
159
185
|
import { weatherNode } from '../chunks/weather';
|
|
160
186
|
|
|
@@ -164,7 +190,7 @@ export default workflow('my-workflow', 'My Workflow')
|
|
|
164
190
|
.to(weatherNode);
|
|
165
191
|
\`\`\`
|
|
166
192
|
|
|
167
|
-
The \`submit-workflow\` tool executes your code natively in the sandbox via tsx — local imports resolve naturally via Node.js module resolution. Both
|
|
193
|
+
The \`submit-workflow\` tool executes your code natively in the sandbox via tsx — local imports resolve naturally via Node.js module resolution. Both the active source and chunks directories are included in tsc validation.
|
|
168
194
|
|
|
169
195
|
## Compositional Workflow Pattern
|
|
170
196
|
|
|
@@ -175,7 +201,7 @@ For complex workflows, decompose into standalone sub-workflows (chunks) that can
|
|
|
175
201
|
Each chunk uses \`executeWorkflowTrigger\` (v1.1) with explicit input schema:
|
|
176
202
|
|
|
177
203
|
\`\`\`typescript
|
|
178
|
-
// ${
|
|
204
|
+
// ${chunksDir}/weather-data.ts
|
|
179
205
|
import { workflow, node, trigger } from '@n8n/workflow-sdk';
|
|
180
206
|
|
|
181
207
|
const inputTrigger = trigger({
|
|
@@ -229,7 +255,7 @@ Supported input types: \`string\`, \`number\`, \`boolean\`, \`array\`, \`object\
|
|
|
229
255
|
Reference the submitted chunk by its workflow ID using \`executeWorkflow\`:
|
|
230
256
|
|
|
231
257
|
\`\`\`typescript
|
|
232
|
-
// ${
|
|
258
|
+
// ${mainWorkflowPath}
|
|
233
259
|
import { workflow, node, trigger } from '@n8n/workflow-sdk';
|
|
234
260
|
|
|
235
261
|
const scheduleTrigger = trigger({
|
|
@@ -265,7 +291,7 @@ Replace \`CHUNK_WORKFLOW_ID\` with the actual ID returned by \`submit-workflow\`
|
|
|
265
291
|
|
|
266
292
|
### When to use this pattern
|
|
267
293
|
|
|
268
|
-
- **Simple workflows** (< 5 nodes): Write everything in \`
|
|
294
|
+
- **Simple workflows** (< 5 nodes): Write everything in \`${mainWorkflowPath}\` directly.
|
|
269
295
|
- **Complex workflows** (5+ nodes, multiple integrations): Decompose into chunks.
|
|
270
296
|
Build, test, and compose. Each chunk is reusable across workflows.
|
|
271
297
|
|
|
@@ -300,7 +326,7 @@ ${shared_prompts_1.ASK_USER_FALLBACK}
|
|
|
300
326
|
## Sandbox-Specific Rules
|
|
301
327
|
|
|
302
328
|
- **Full TypeScript/JavaScript support** — you can use any valid TS/JS: template literals, array methods (\`.map\`, \`.filter\`, \`.join\`), string methods (\`.trim\`, \`.split\`), loops, functions, \`readFileSync\`, etc. The code is executed natively via tsx.
|
|
303
|
-
- **For large HTML, use the file-based pattern.** Write HTML to
|
|
329
|
+
- **For large HTML, use the file-based pattern.** Write HTML to \`${chunksDir}/page.html\`, then \`readFileSync\` + \`JSON.stringify\` in your SDK code. NEVER embed large HTML directly in jsCode — it will break. See the web_app_pattern section.
|
|
304
330
|
- **Em-dash and Unicode**: the sandbox executes real JS so these technically work, but prefer plain hyphens for consistency with the shared SDK rules.
|
|
305
331
|
|
|
306
332
|
## Credentials (sandbox mode)
|
|
@@ -364,9 +390,9 @@ n8n normalizes column names to snake_case (e.g., \`dayName\` → \`day_name\`).
|
|
|
364
390
|
\`\`\`
|
|
365
391
|
Each line in \`examples/index.txt\` is \`filename | name | nodes | tags | source-id\`. Use the example as a reference for **structure** (which credential type each node uses, how nodes are wired, where sub-nodes attach to an agent, where sticky notes go) — not as a verbatim copy. The user's request will rarely match an example one-to-one.
|
|
366
392
|
|
|
367
|
-
The \`examples/\` directory is **read-only reference**. Never edit files there;
|
|
393
|
+
The \`examples/\` directory is **read-only reference**. Never edit files there; \`${sourceDir}/\` and \`${chunksDir}/\` are your scratch.
|
|
368
394
|
|
|
369
|
-
Examples use \`newCredential('Name', 'id')\` for clarity. When you copy a pattern into
|
|
395
|
+
Examples use \`newCredential('Name', 'id')\` for clarity. When you copy a pattern into \`${mainWorkflowPath}\`, replace those calls with raw \`{ id, name }\` from \`credentials(action="list")\` per the rules above.
|
|
370
396
|
|
|
371
397
|
If grep returns nothing, build from scratch. **Do not fabricate examples that do not exist.**
|
|
372
398
|
|
|
@@ -381,13 +407,13 @@ n8n normalizes column names to snake_case (e.g., \`dayName\` → \`day_name\`).
|
|
|
381
407
|
- **If \`explore-resources\` returns more than one match and the user did not name a specific one, use \`placeholder('Select <resource>')\` for that parameter** (e.g. \`placeholder('Select a calendar')\`, \`placeholder('Select a Slack channel')\`). Picking one silently is a guess; after the build, the inline setup card in the AI Assistant panel surfaces placeholders so the user can choose. Only pick a single match without prompting.
|
|
382
408
|
- If the resource can't be created via n8n (e.g., Slack channels), explain clearly in your summary what the user needs to set up.
|
|
383
409
|
|
|
384
|
-
5. **Write workflow code** to \`${
|
|
410
|
+
5. **Write workflow code** to \`${mainWorkflowPath}\`.
|
|
385
411
|
|
|
386
412
|
6. **Trace wiring before declaring done**: For workflows containing IF, Switch, or Merge nodes, trace each branch from its source to its target — confirm IF outputs are wired with \`.onTrue()\`/\`.onFalse()\`, every Switch rule output is wired by zero-based \`.onCase(index, target)\`, and the Merge mode matches the data shape. Read each node's \`@builderHint\` for selection criteria.
|
|
387
413
|
|
|
388
414
|
7. **Validate with tsc**: Run the TypeScript compiler for real type checking:
|
|
389
415
|
\`\`\`
|
|
390
|
-
execute_command:
|
|
416
|
+
execute_command: ${tsconfigCommand}
|
|
391
417
|
\`\`\`
|
|
392
418
|
Fix any errors using \`edit_file\` (with absolute path) to update the code, then re-run tsc. Iterate until clean.
|
|
393
419
|
**Important**: If tsc reports errors you cannot resolve after 2 attempts, skip tsc and proceed to submit-workflow. The submit tool has its own validation.
|
|
@@ -408,11 +434,11 @@ Follow the **Compositional Workflow Pattern** above. The process becomes:
|
|
|
408
434
|
3. **Resolve real resource IDs** (same as above — call \`nodes(action="explore-resources")\` for EVERY parameter with \`searchListMethod\` or \`loadOptionsMethod\`). Never assume IDs like "primary" or "default". If a resource doesn't exist, use a placeholder unless the user explicitly asked you to create that resource.
|
|
409
435
|
4. **Decompose** the workflow into logical chunks. Each chunk is a standalone sub-workflow with 2-4 nodes covering one capability (e.g., "fetch and format weather data", "generate AI recommendation", "store to data table").
|
|
410
436
|
5. **For each chunk**:
|
|
411
|
-
a. Write the chunk to \`${
|
|
437
|
+
a. Write the chunk to \`${chunksDir}/<name>.ts\` with an \`executeWorkflowTrigger\` and explicit input schema.
|
|
412
438
|
b. Run tsc.
|
|
413
439
|
c. Submit the chunk: \`submit-workflow\` with \`filePath\` pointing to the chunk file. Test via \`executions(action="run")\`.
|
|
414
440
|
d. Fix if needed (max 2 submission fix attempts per chunk).
|
|
415
|
-
6. **Write the main workflow** in \`${
|
|
441
|
+
6. **Write the main workflow** in \`${mainWorkflowPath}\` that composes chunks via \`executeWorkflow\` nodes, referencing each chunk's workflow ID.
|
|
416
442
|
7. **Trace wiring before declaring done**: For workflows containing IF, Switch, or Merge nodes, trace each branch from its source to its target — confirm IF outputs are wired with \`.onTrue()\`/\`.onFalse()\`, every Switch rule output is wired by zero-based \`.onCase(index, target)\`, and the Merge mode matches the data shape. Read each node's \`@builderHint\` for selection criteria.
|
|
417
443
|
8. **Submit** the main workflow.
|
|
418
444
|
9. **Done**: Output ONE sentence summarizing what was built, including the workflow ID and any known issues.
|
|
@@ -420,7 +446,7 @@ Follow the **Compositional Workflow Pattern** above. The process becomes:
|
|
|
420
446
|
Do NOT produce visible output until the final step. All reasoning happens internally.
|
|
421
447
|
|
|
422
448
|
## Modifying Existing Workflows
|
|
423
|
-
When modifying an existing workflow, the current code is **already pre-loaded** into \`${
|
|
449
|
+
When modifying an existing workflow, the current code is **already pre-loaded** into \`${mainWorkflowPath}\` with SDK imports.
|
|
424
450
|
|
|
425
451
|
**Pre-flight check before any edit**: If the change introduces a node type not already in the file, or touches parameter values you haven't just looked up (model IDs, RLC values, enum selections, credential types, versions, etc.), call \`nodes(action="type-definition")\` first. Read \`@builderHint\`, \`@default\`, \`@searchListMethod\`, and \`@loadOptionsMethod\` from the output.
|
|
426
452
|
|
|
@@ -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":";;;AA4KA,0EAqVC;AAzfD,2EAKiD;AAEjD,+DAAkF;AAIlF,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;8FAkB4D,CAAC;AAI/F,MAAM,cAAc,GAAG;;;;;;;;mHAQ4F,CAAC;AAEpH,MAAM,+BAA+B,GAAG;;;;wHAIgF,CAAC;AAEzH,MAAM,iBAAiB,GAAG;;;;;;;2GAOiF,CAAC;AAK5G,MAAM,yBAAyB,GAAG;;uOAEqM,CAAC;AAQxO,MAAM,sBAAsB,GAAG;;;;;;;;;;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AC,CAAC,MAAM,aAAa,2BAA2B,CAAC;IAClD,MAAM,cAAc,GAAG,mBAAmB,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;IACrE,MAAM,cAAc,GAAG,mBAAmB,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;IAErE,OAAO;;EAEN,yBAAyB;;;;0BAID,aAAa,6DAA6D,aAAa;;;EAG/G,aAAa;;;;;;;IAOX,cAAc;;IAEd,cAAc;;;;sCAIoB,gBAAgB;QAC9C,SAAS;;;;;wEAKuD,SAAS;;;KAG5E,SAAS;;;;;;;;;;;;;;;KAeT,gBAAgB;;;;;;;;;;;;;;;;;;;;;KAqBhB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsDT,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4DAoCuC,gBAAgB;;;;EAI1E,kCAAiB;;;;;;;;;;;;;;;;EAgBjB,kCAAiB;;;;;;;;;;;;;;;oEAeiD,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAsDvC,aAAa;;;oDAGC,aAAa;;0CAEvB,aAAa;0BAC7B,aAAa;;;;uFAIgD,SAAS,aAAa,SAAS;;8FAExB,gBAAgB;;;;;;;;;;;;;;;kCAe5E,gBAAgB;;;;;;sBAM5B,eAAe;;;;;;;;;;;;;;;;;;;;;6BAqBR,SAAS;;;;sCAIA,gBAAgB;;;;;;;;yFAQmC,gBAAgB;;;;;;;;;;;;;;EAcvG,8BAA8B;CAC/B,CAAC;AACF,CAAC"}
|
|
@@ -1,14 +1,37 @@
|
|
|
1
|
+
import { type BuiltTool, type RuntimeSkillSource, type Workspace } from '@n8n/agents';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
import type { OrchestrationContext } from '../../types';
|
|
3
4
|
import { type RemediationMetadata, type WorkflowBuildOutcome, type WorkflowSetupRequirement, type WorkflowVerificationReadiness, type WorkflowLoopState } from '../../workflow-loop';
|
|
4
5
|
import { type SubmitWorkflowAttempt, type SubmitWorkflowOutput } from '../workflows/submit-workflow.tool';
|
|
6
|
+
export interface BuildWorkflowAgentRunResult {
|
|
7
|
+
text: string;
|
|
8
|
+
outcome: WorkflowBuildOutcome;
|
|
9
|
+
}
|
|
10
|
+
export interface MainWorkflowSnapshot {
|
|
11
|
+
exists: boolean;
|
|
12
|
+
sourceHash?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function getBuilderSessionMemory(context: Pick<OrchestrationContext, 'memory'>, useSharedWorkspace: boolean): OrchestrationContext['memory'];
|
|
15
|
+
export interface BuilderWorkflowWorkspaceLayout {
|
|
16
|
+
workItemRoot: string;
|
|
17
|
+
sourceDir: string;
|
|
18
|
+
chunksDir: string;
|
|
19
|
+
mainWorkflowPath: string;
|
|
20
|
+
tsconfigPath: string;
|
|
21
|
+
relativeMainWorkflowPath: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function builderWorkflowWorkspaceLayout(root: string, workItemId: string): BuilderWorkflowWorkspaceLayout;
|
|
24
|
+
export declare function materializeBuilderRuntimeSkills(context: OrchestrationContext, workspace: Workspace, root: string): Promise<{
|
|
25
|
+
workspace: Workspace;
|
|
26
|
+
source?: RuntimeSkillSource;
|
|
27
|
+
}>;
|
|
5
28
|
export declare function buildWarmBuilderFollowUp(input: {
|
|
6
29
|
task: string;
|
|
7
30
|
conversationContext?: string;
|
|
8
31
|
workflowId: string;
|
|
9
32
|
workItemId: string;
|
|
10
33
|
}): string;
|
|
11
|
-
export declare function recordSuccessfulWorkflowBuilds(tool:
|
|
34
|
+
export declare function recordSuccessfulWorkflowBuilds(tool: BuiltTool | undefined, onWorkflowId: (workflowId: string) => void): void;
|
|
12
35
|
export type OutcomeForVerificationReadiness = Pick<WorkflowBuildOutcome, 'submitted' | 'workflowId' | 'triggerNodes' | 'mockedCredentialTypes' | 'mockedCredentialsByNode' | 'verificationPinData' | 'usesWorkflowPinDataForVerification' | 'hasUnresolvedPlaceholders' | 'verification' | 'remediation'>;
|
|
13
36
|
export declare function determineVerificationReadiness(outcome: OutcomeForVerificationReadiness): WorkflowVerificationReadiness;
|
|
14
37
|
export declare function determineSetupRequirement(outcome: OutcomeForVerificationReadiness): WorkflowSetupRequirement;
|
|
@@ -21,7 +44,12 @@ export declare function finalizeBuildResult(context: OrchestrationContext, workI
|
|
|
21
44
|
text: string;
|
|
22
45
|
outcome: WorkflowBuildOutcome;
|
|
23
46
|
}>;
|
|
24
|
-
export declare const DETACHED_BUILDER_REQUIREMENTS = "## Detached Task Contract\n\nYou are running as a detached background task. Do not stop after a successful submit \u2014 verify the workflow works.\n\n### Completion criteria\n\nYour job is done when ONE of these is true:\n- the workflow is verified (ran successfully)\n- you are blocked after one repair attempt per unique failure\n\nDo NOT stop after a successful submit without verifying. Every trigger type is testable:\nmanual / schedule via `executions(action=\"run\")`; event-based triggers (form, webhook,\nchat, mcp, linear, github, slack, etc.) via `verify-built-workflow` with an `inputData`\npayload. The pin-data adapter injects it as the trigger node's output.\n\n### Submit discipline\n\n**Every file edit MUST be followed by submit-workflow before you do anything else.**\nThe system tracks file hashes. If you edit the code and then call `executions(action=\"run\")` or finish without re-submitting, your work is discarded. The sequence is always: edit \u2192 submit \u2192 then verify/run.\n\n### Verification\n\n- If submit-workflow returned mocked credentials, call `verify-built-workflow` with the workItemId.\n- Otherwise pick based on trigger type:\n - **Manual / Schedule** \u2014 `executions(action=\"run\")`.\n - **Form Trigger** \u2014
|
|
47
|
+
export declare const DETACHED_BUILDER_REQUIREMENTS = "## Detached Task Contract\n\nYou are running as a detached background task. Do not stop after a successful submit \u2014 verify the workflow works.\n\n### Completion criteria\n\nYour job is done when ONE of these is true:\n- the workflow is verified (ran successfully)\n- you are blocked after one repair attempt per unique failure\n\nDo NOT stop after a successful submit without verifying. Every trigger type is testable:\nmanual / schedule via `executions(action=\"run\")`; event-based triggers (form, webhook,\nchat, mcp, linear, github, slack, etc.) via `verify-built-workflow` with an `inputData`\npayload. The pin-data adapter injects it as the trigger node's output.\n\n### Submit discipline\n\n**Every file edit MUST be followed by submit-workflow before you do anything else.**\nThe system tracks file hashes. If you edit the code and then call `executions(action=\"run\")`, `verify-built-workflow`, or finish without re-submitting, your work is discarded. The sequence is always: edit \u2192 submit \u2192 then verify/run.\n\n### Verification\n\n- If submit-workflow returned mocked credentials, call `verify-built-workflow` with the workItemId and workflowId from this task.\n- Otherwise pick based on trigger type:\n - **Manual / Schedule** \u2014 `executions(action=\"run\")`.\n - **Form Trigger** \u2014 pass `inputData` as a flat field map, e.g. `{name: \"Alice\", email: \"a@b.c\"}`. Do NOT wrap in `formFields` \u2014 production Form Trigger emits fields directly on `$json`, and the adapter rejects wrapped payloads.\n - **Webhook** \u2014 `verify-built-workflow` with `inputData` as the body payload, e.g. `{event: \"signup\", userId: \"...\"}`. Adapter wraps it under `body`; downstream expressions use `$json.body.<field>`.\n - **Chat Trigger** \u2014 `verify-built-workflow` with `{chatInput: \"user message\"}`.\n - **Other event triggers (Linear, GitHub, Slack, MCP, etc.)** \u2014 `verify-built-workflow` with `inputData` matching the trigger's expected payload shape.\n- If verify-built-workflow returns remediation with `shouldEdit: false`, stop editing and follow its guidance.\n- If verification fails with `shouldEdit: true`, make one batched code repair and re-submit. Never exceed the remaining repair budget in the remediation metadata.\n- If verification fails otherwise, call `executions(action=\"debug\")`, fix the code, re-submit, and retry once.\n- If the same failure signature repeats, stop and explain the block.\n\n### Resource discovery\n\nBefore writing code that uses external services, **resolve real resource IDs**:\n- Call `nodes(action=\"explore-resources\")` for any parameter with searchListMethod (calendars, spreadsheets, channels, models, etc.)\n- Do NOT use \"primary\", \"default\", or any assumed identifier \u2014 look up the actual value\n- Call `nodes(action=\"suggested\")` early if the workflow fits a known category (web_app, form_input, data_persistence, etc.) \u2014 the pattern hints prevent common mistakes\n- Check @builderHint annotations in node type definitions for critical configuration guidance\n\n### Publishing\n\nDo NOT call `workflows(action=\"publish\")` 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 \u2014 those must be published so the parent workflow can reference them.\n";
|
|
48
|
+
export declare function createMainWorkflowSnapshot(content: string | null): MainWorkflowSnapshot;
|
|
49
|
+
export declare function shouldFinalSubmitMainWorkflow(input: {
|
|
50
|
+
initial: MainWorkflowSnapshot;
|
|
51
|
+
current: MainWorkflowSnapshot;
|
|
52
|
+
}): boolean;
|
|
25
53
|
export declare function supportingWorkflowIdsFromSubmitAttempts(submitAttempts: SubmitWorkflowAttempt[], mainWorkflowPath: string, mainWorkflowId: string | undefined, referencedWorkflowIds?: string[]): string[];
|
|
26
54
|
export declare function resultFromPostStreamError(input: {
|
|
27
55
|
error: unknown;
|
|
@@ -63,6 +91,23 @@ export declare function attemptFromAutoResubmit(input: {
|
|
|
63
91
|
sourceHash: string;
|
|
64
92
|
}): SubmitWorkflowAttempt | undefined;
|
|
65
93
|
export declare function shouldRecoverSavedWorkflowAfterFailedSubmit(attempt: SubmitWorkflowAttempt): boolean;
|
|
94
|
+
export declare function settleMissingMainWorkflowSubmit(input: {
|
|
95
|
+
context: OrchestrationContext;
|
|
96
|
+
workItemId: string;
|
|
97
|
+
runId: string;
|
|
98
|
+
taskId: string;
|
|
99
|
+
workflowId: string | undefined;
|
|
100
|
+
mainWorkflowPath: string;
|
|
101
|
+
initialMainWorkflowSnapshot: MainWorkflowSnapshot;
|
|
102
|
+
currentMainWorkflow: string | null;
|
|
103
|
+
currentMainWorkflowHash: string;
|
|
104
|
+
submitTool: BuiltTool | undefined;
|
|
105
|
+
submitAttempts: Map<string, SubmitWorkflowAttempt>;
|
|
106
|
+
submitAttemptHistory: SubmitWorkflowAttempt[];
|
|
107
|
+
finalText: string;
|
|
108
|
+
onSuccessfulSubmit: (attempt: SubmitWorkflowAttempt) => Promise<BuildWorkflowAgentRunResult>;
|
|
109
|
+
onRecoveredSubmit: (result: BuildWorkflowAgentRunResult) => Promise<BuildWorkflowAgentRunResult>;
|
|
110
|
+
}): Promise<BuildWorkflowAgentRunResult>;
|
|
66
111
|
export interface StartBuildWorkflowAgentInput {
|
|
67
112
|
task: string;
|
|
68
113
|
workflowId?: string;
|
|
@@ -88,16 +133,16 @@ export declare const buildWorkflowAgentInputSchema: z.ZodObject<{
|
|
|
88
133
|
}, "strip", z.ZodTypeAny, {
|
|
89
134
|
task: string;
|
|
90
135
|
reason?: string | undefined;
|
|
91
|
-
workflowId?: string | undefined;
|
|
92
136
|
workItemId?: string | undefined;
|
|
137
|
+
workflowId?: string | undefined;
|
|
93
138
|
conversationContext?: string | undefined;
|
|
94
139
|
bypassPlan?: boolean | undefined;
|
|
95
140
|
}, {
|
|
96
141
|
task: string;
|
|
97
142
|
reason?: string | undefined;
|
|
98
|
-
workflowId?: string | undefined;
|
|
99
143
|
workItemId?: string | undefined;
|
|
144
|
+
workflowId?: string | undefined;
|
|
100
145
|
conversationContext?: string | undefined;
|
|
101
146
|
bypassPlan?: boolean | undefined;
|
|
102
147
|
}>;
|
|
103
|
-
export declare function createBuildWorkflowAgentTool(context: OrchestrationContext):
|
|
148
|
+
export declare function createBuildWorkflowAgentTool(context: OrchestrationContext): BuiltTool;
|