@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-persistence.js","sourceRoot":"","sources":["../../../src/tools/orchestration/agent-persistence.ts"],"names":[],"mappings":";;;AAMA,wEAEC;AAYD,4DAEC;AAQD,8DAyBC;AAvDD,6CAAyC;AAI5B,QAAA,yBAAyB,GAAG,sBAAsB,CAAC;AAEhE,SAAgB,8BAA8B,CAAC,cAAsB;IACpE,OAAO,GAAG,iCAAyB,IAAI,cAAc,GAAG,CAAC;AAC1D,CAAC;AAED,SAAS,qBAAqB,CAAC,SAAiB;IAC/C,MAAM,UAAU,GAAG,SAAS;SAC1B,IAAI,EAAE;SACN,WAAW,EAAE;SACb,OAAO,CAAC,gBAAgB,EAAE,GAAG,CAAC;SAC9B,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IAE1B,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,wBAAwB,CAAC,cAAsB,EAAE,SAAiB;IACjF,OAAO,GAAG,8BAA8B,CAAC,cAAc,CAAC,GAAG,qBAAqB,CAAC,SAAS,CAAC,EAAE,CAAC;AAC/F,CAAC;AAQM,KAAK,UAAU,yBAAyB,CAC9C,OAA6B,EAC7B,OAAyC;IAEzC,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,IAAA,wBAAU,GAAE,CAAC;IAClD,MAAM,UAAU,GACf,OAAO,CAAC,UAAU,IAAI,wBAAwB,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACrF,MAAM,QAAQ,GAA4B;QACzC,gBAAgB,EAAE,IAAI;QACtB,oBAAoB,EAAE,WAAW;QACjC,cAAc,EAAE,OAAO,CAAC,QAAQ;QAChC,SAAS,EAAE,qBAAqB,CAAC,OAAO,CAAC,SAAS,CAAC;KACnD,CAAC;IAEF,MAAM,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC;QAChC,EAAE,EAAE,QAAQ;QACZ,UAAU;QACV,KAAK,EAAE,EAAE;QACT,QAAQ;KACR,CAAC,CAAC;IAEH,OAAO;QACN,QAAQ;QACR,UAAU;KACV,CAAC;AACH,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BlueprintCheckpointItem,
|
|
1
|
+
import type { BlueprintCheckpointItem, BlueprintDelegateItem, BlueprintWorkflowItem } from './blueprint.schema';
|
|
2
2
|
export interface PlannedTaskInput {
|
|
3
3
|
id: string;
|
|
4
4
|
title: string;
|
|
@@ -10,26 +10,20 @@ export interface PlannedTaskInput {
|
|
|
10
10
|
}
|
|
11
11
|
type BlueprintItem = (BlueprintWorkflowItem & {
|
|
12
12
|
kind: 'workflow';
|
|
13
|
-
}) | (BlueprintDataTableItem & {
|
|
14
|
-
kind: 'data-table';
|
|
15
|
-
}) | (BlueprintResearchItem & {
|
|
16
|
-
kind: 'research';
|
|
17
13
|
}) | (BlueprintDelegateItem & {
|
|
18
14
|
kind: 'delegate';
|
|
19
15
|
}) | (BlueprintCheckpointItem & {
|
|
20
16
|
kind: 'checkpoint';
|
|
21
17
|
});
|
|
22
|
-
export declare function formatTableSchema(dt: BlueprintDataTableItem): string;
|
|
23
18
|
export declare class BlueprintAccumulator {
|
|
24
|
-
private dataTables;
|
|
25
19
|
private workflows;
|
|
26
|
-
private researchItems;
|
|
27
20
|
private delegateItems;
|
|
28
21
|
private checkpoints;
|
|
29
22
|
private tasks;
|
|
30
23
|
private summary;
|
|
31
24
|
private assumptions;
|
|
32
25
|
private approved;
|
|
26
|
+
private denied;
|
|
33
27
|
addItem(item: BlueprintItem): PlannedTaskInput;
|
|
34
28
|
updateMeta(summary?: string, assumptions?: string[]): void;
|
|
35
29
|
getTaskList(): PlannedTaskInput[];
|
|
@@ -43,6 +37,8 @@ export declare class BlueprintAccumulator {
|
|
|
43
37
|
loadFromTasks(tasks: PlannedTaskInput[]): void;
|
|
44
38
|
markApproved(): void;
|
|
45
39
|
isApproved(): boolean;
|
|
40
|
+
markDenied(): void;
|
|
41
|
+
isDenied(): boolean;
|
|
46
42
|
isEmpty(): boolean;
|
|
47
43
|
getSummary(): string;
|
|
48
44
|
getAssumptions(): string[];
|
|
@@ -1,61 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BlueprintAccumulator = void 0;
|
|
4
|
-
|
|
5
|
-
function formatTableSchema(dt) {
|
|
6
|
-
if (!dt.columns || dt.columns.length === 0)
|
|
7
|
-
return `Table '${dt.name}'`;
|
|
8
|
-
const cols = dt.columns.map((c) => `${c.name} (${c.type})`).join(', ');
|
|
9
|
-
return `Table '${dt.name}': ${cols}`;
|
|
10
|
-
}
|
|
11
|
-
function dataTableItemToTask(dt) {
|
|
12
|
-
if (dt.columns && dt.columns.length > 0) {
|
|
13
|
-
const columnList = dt.columns.map((c) => `${c.name} (${c.type})`).join(', ');
|
|
14
|
-
return {
|
|
15
|
-
id: dt.id,
|
|
16
|
-
title: `Create '${dt.name}' data table`,
|
|
17
|
-
kind: 'manage-data-tables',
|
|
18
|
-
spec: `Create a data table named '${dt.name}'. Purpose: ${dt.purpose}\nColumns: ${columnList}`,
|
|
19
|
-
deps: dt.dependsOn,
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
return {
|
|
23
|
-
id: dt.id,
|
|
24
|
-
title: dt.name,
|
|
25
|
-
kind: 'manage-data-tables',
|
|
26
|
-
spec: dt.purpose,
|
|
27
|
-
deps: dt.dependsOn,
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
function workflowItemToTask(wf, knownTables, assumptions) {
|
|
4
|
+
function workflowItemToTask(wf, assumptions) {
|
|
31
5
|
const specParts = [wf.purpose];
|
|
32
6
|
if (wf.triggerDescription)
|
|
33
7
|
specParts.push(`Trigger: ${wf.triggerDescription}`);
|
|
34
8
|
if (wf.integrations.length > 0)
|
|
35
9
|
specParts.push(`Integrations: ${wf.integrations.join(', ')}`);
|
|
36
|
-
const tableIds = new Set(knownTables.map((dt) => dt.id));
|
|
37
|
-
const explicitDeps = new Set(wf.dependsOn);
|
|
38
|
-
const inferredDeps = [...explicitDeps];
|
|
39
|
-
const wfText = `${wf.purpose} ${wf.integrations.join(' ')}`;
|
|
40
|
-
const tablePatterns = knownTables
|
|
41
|
-
.filter((dt) => dt.name.length >= 4)
|
|
42
|
-
.map((dt) => ({
|
|
43
|
-
id: dt.id,
|
|
44
|
-
pattern: new RegExp(`\\b${dt.name.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}\\b`, 'i'),
|
|
45
|
-
}));
|
|
46
|
-
for (const { id, pattern } of tablePatterns) {
|
|
47
|
-
if (!explicitDeps.has(id) && pattern.test(wfText)) {
|
|
48
|
-
inferredDeps.push(id);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
const depTableIds = new Set(inferredDeps.filter((id) => tableIds.has(id)));
|
|
52
|
-
const depTables = knownTables.filter((dt) => depTableIds.has(dt.id));
|
|
53
|
-
if (depTables.length > 0) {
|
|
54
|
-
specParts.push('\nData table schemas:');
|
|
55
|
-
for (const dt of depTables) {
|
|
56
|
-
specParts.push(`- ${formatTableSchema(dt)}`);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
10
|
if (assumptions.length > 0) {
|
|
60
11
|
specParts.push('\nAssumptions:');
|
|
61
12
|
for (const a of assumptions) {
|
|
@@ -67,19 +18,10 @@ function workflowItemToTask(wf, knownTables, assumptions) {
|
|
|
67
18
|
title: `Build '${wf.name}' workflow`,
|
|
68
19
|
kind: 'build-workflow',
|
|
69
20
|
spec: specParts.join('\n'),
|
|
70
|
-
deps:
|
|
21
|
+
deps: wf.dependsOn,
|
|
71
22
|
workflowId: wf.existingWorkflowId,
|
|
72
23
|
};
|
|
73
24
|
}
|
|
74
|
-
function researchItemToTask(ri) {
|
|
75
|
-
return {
|
|
76
|
-
id: ri.id,
|
|
77
|
-
title: ri.question,
|
|
78
|
-
kind: 'research',
|
|
79
|
-
spec: ri.constraints ?? ri.question,
|
|
80
|
-
deps: ri.dependsOn,
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
25
|
function delegateItemToTask(di) {
|
|
84
26
|
return {
|
|
85
27
|
id: di.id,
|
|
@@ -100,34 +42,21 @@ function checkpointItemToTask(c) {
|
|
|
100
42
|
};
|
|
101
43
|
}
|
|
102
44
|
class BlueprintAccumulator {
|
|
103
|
-
dataTables = [];
|
|
104
45
|
workflows = [];
|
|
105
|
-
researchItems = [];
|
|
106
46
|
delegateItems = [];
|
|
107
47
|
checkpoints = [];
|
|
108
48
|
tasks = [];
|
|
109
49
|
summary = '';
|
|
110
50
|
assumptions = [];
|
|
111
51
|
approved = false;
|
|
52
|
+
denied = false;
|
|
112
53
|
addItem(item) {
|
|
113
54
|
let task;
|
|
114
55
|
switch (item.kind) {
|
|
115
|
-
case 'data-table': {
|
|
116
|
-
const { kind: _, ...dt } = item;
|
|
117
|
-
this.upsertArray(this.dataTables, dt);
|
|
118
|
-
task = dataTableItemToTask(dt);
|
|
119
|
-
break;
|
|
120
|
-
}
|
|
121
56
|
case 'workflow': {
|
|
122
57
|
const { kind: _, ...wf } = item;
|
|
123
58
|
this.upsertArray(this.workflows, wf);
|
|
124
|
-
task = workflowItemToTask(wf, this.
|
|
125
|
-
break;
|
|
126
|
-
}
|
|
127
|
-
case 'research': {
|
|
128
|
-
const { kind: _, ...ri } = item;
|
|
129
|
-
this.upsertArray(this.researchItems, ri);
|
|
130
|
-
task = researchItemToTask(ri);
|
|
59
|
+
task = workflowItemToTask(wf, this.assumptions);
|
|
131
60
|
break;
|
|
132
61
|
}
|
|
133
62
|
case 'delegate': {
|
|
@@ -165,7 +94,7 @@ class BlueprintAccumulator {
|
|
|
165
94
|
reconcileDependencies() {
|
|
166
95
|
for (let i = 0; i < this.workflows.length; i++) {
|
|
167
96
|
const wf = this.workflows[i];
|
|
168
|
-
const updatedTask = workflowItemToTask(wf, this.
|
|
97
|
+
const updatedTask = workflowItemToTask(wf, this.assumptions);
|
|
169
98
|
this.upsertTask(updatedTask);
|
|
170
99
|
}
|
|
171
100
|
}
|
|
@@ -174,9 +103,7 @@ class BlueprintAccumulator {
|
|
|
174
103
|
if (taskIdx < 0)
|
|
175
104
|
return false;
|
|
176
105
|
this.tasks.splice(taskIdx, 1);
|
|
177
|
-
this.removeFromArray(this.dataTables, id);
|
|
178
106
|
this.removeFromArray(this.workflows, id);
|
|
179
|
-
this.removeFromArray(this.researchItems, id);
|
|
180
107
|
this.removeFromArray(this.delegateItems, id);
|
|
181
108
|
this.removeFromArray(this.checkpoints, id);
|
|
182
109
|
for (const task of this.tasks) {
|
|
@@ -206,6 +133,12 @@ class BlueprintAccumulator {
|
|
|
206
133
|
isApproved() {
|
|
207
134
|
return this.approved;
|
|
208
135
|
}
|
|
136
|
+
markDenied() {
|
|
137
|
+
this.denied = true;
|
|
138
|
+
}
|
|
139
|
+
isDenied() {
|
|
140
|
+
return this.denied;
|
|
141
|
+
}
|
|
209
142
|
isEmpty() {
|
|
210
143
|
return this.tasks.length === 0;
|
|
211
144
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blueprint-accumulator.js","sourceRoot":"","sources":["../../../src/tools/orchestration/blueprint-accumulator.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"blueprint-accumulator.js","sourceRoot":"","sources":["../../../src/tools/orchestration/blueprint-accumulator.ts"],"names":[],"mappings":";;;AA2CA,SAAS,kBAAkB,CAAC,EAAyB,EAAE,WAAqB;IAC3E,MAAM,SAAS,GAAG,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;IAC/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EAAE,CAAC,CAAC;QAC1D,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC;YACd,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;QACxB,CAAC;aAAM,CAAC;YACP,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvB,CAAC;IACF,CAAC;CACD;AArLD,oDAqLC"}
|
|
@@ -24,56 +24,6 @@ export declare const blueprintWorkflowItemSchema: z.ZodObject<{
|
|
|
24
24
|
existingWorkflowId?: string | undefined;
|
|
25
25
|
dependsOn?: string[] | undefined;
|
|
26
26
|
}>;
|
|
27
|
-
export declare const blueprintDataTableItemSchema: z.ZodObject<{
|
|
28
|
-
id: z.ZodString;
|
|
29
|
-
name: z.ZodString;
|
|
30
|
-
purpose: z.ZodString;
|
|
31
|
-
columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32
|
-
name: z.ZodString;
|
|
33
|
-
type: z.ZodEnum<["string", "number", "boolean", "date"]>;
|
|
34
|
-
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
type: "string" | "number" | "boolean" | "date";
|
|
36
|
-
name: string;
|
|
37
|
-
}, {
|
|
38
|
-
type: "string" | "number" | "boolean" | "date";
|
|
39
|
-
name: string;
|
|
40
|
-
}>, "many">>;
|
|
41
|
-
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
42
|
-
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
name: string;
|
|
44
|
-
id: string;
|
|
45
|
-
purpose: string;
|
|
46
|
-
dependsOn: string[];
|
|
47
|
-
columns?: {
|
|
48
|
-
type: "string" | "number" | "boolean" | "date";
|
|
49
|
-
name: string;
|
|
50
|
-
}[] | undefined;
|
|
51
|
-
}, {
|
|
52
|
-
name: string;
|
|
53
|
-
id: string;
|
|
54
|
-
purpose: string;
|
|
55
|
-
columns?: {
|
|
56
|
-
type: "string" | "number" | "boolean" | "date";
|
|
57
|
-
name: string;
|
|
58
|
-
}[] | undefined;
|
|
59
|
-
dependsOn?: string[] | undefined;
|
|
60
|
-
}>;
|
|
61
|
-
export declare const blueprintResearchItemSchema: z.ZodObject<{
|
|
62
|
-
id: z.ZodString;
|
|
63
|
-
question: z.ZodString;
|
|
64
|
-
constraints: z.ZodOptional<z.ZodString>;
|
|
65
|
-
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
66
|
-
}, "strip", z.ZodTypeAny, {
|
|
67
|
-
id: string;
|
|
68
|
-
question: string;
|
|
69
|
-
dependsOn: string[];
|
|
70
|
-
constraints?: string | undefined;
|
|
71
|
-
}, {
|
|
72
|
-
id: string;
|
|
73
|
-
question: string;
|
|
74
|
-
dependsOn?: string[] | undefined;
|
|
75
|
-
constraints?: string | undefined;
|
|
76
|
-
}>;
|
|
77
27
|
export declare const blueprintDelegateItemSchema: z.ZodObject<{
|
|
78
28
|
id: z.ZodString;
|
|
79
29
|
title: z.ZodString;
|
|
@@ -81,15 +31,15 @@ export declare const blueprintDelegateItemSchema: z.ZodObject<{
|
|
|
81
31
|
requiredTools: z.ZodArray<z.ZodString, "many">;
|
|
82
32
|
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
83
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
title: string;
|
|
84
35
|
id: string;
|
|
85
36
|
description: string;
|
|
86
|
-
title: string;
|
|
87
37
|
dependsOn: string[];
|
|
88
38
|
requiredTools: string[];
|
|
89
39
|
}, {
|
|
40
|
+
title: string;
|
|
90
41
|
id: string;
|
|
91
42
|
description: string;
|
|
92
|
-
title: string;
|
|
93
43
|
requiredTools: string[];
|
|
94
44
|
dependsOn?: string[] | undefined;
|
|
95
45
|
}>;
|
|
@@ -99,14 +49,14 @@ export declare const blueprintCheckpointItemSchema: z.ZodObject<{
|
|
|
99
49
|
instructions: z.ZodString;
|
|
100
50
|
dependsOn: z.ZodArray<z.ZodString, "many">;
|
|
101
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
title: string;
|
|
102
53
|
id: string;
|
|
103
54
|
instructions: string;
|
|
104
|
-
title: string;
|
|
105
55
|
dependsOn: string[];
|
|
106
56
|
}, {
|
|
57
|
+
title: string;
|
|
107
58
|
id: string;
|
|
108
59
|
instructions: string;
|
|
109
|
-
title: string;
|
|
110
60
|
dependsOn: string[];
|
|
111
61
|
}>;
|
|
112
62
|
export declare const planningBlueprintSchema: z.ZodObject<{
|
|
@@ -136,56 +86,6 @@ export declare const planningBlueprintSchema: z.ZodObject<{
|
|
|
136
86
|
existingWorkflowId?: string | undefined;
|
|
137
87
|
dependsOn?: string[] | undefined;
|
|
138
88
|
}>, "many">>;
|
|
139
|
-
dataTables: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
140
|
-
id: z.ZodString;
|
|
141
|
-
name: z.ZodString;
|
|
142
|
-
purpose: z.ZodString;
|
|
143
|
-
columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
144
|
-
name: z.ZodString;
|
|
145
|
-
type: z.ZodEnum<["string", "number", "boolean", "date"]>;
|
|
146
|
-
}, "strip", z.ZodTypeAny, {
|
|
147
|
-
type: "string" | "number" | "boolean" | "date";
|
|
148
|
-
name: string;
|
|
149
|
-
}, {
|
|
150
|
-
type: "string" | "number" | "boolean" | "date";
|
|
151
|
-
name: string;
|
|
152
|
-
}>, "many">>;
|
|
153
|
-
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
154
|
-
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
name: string;
|
|
156
|
-
id: string;
|
|
157
|
-
purpose: string;
|
|
158
|
-
dependsOn: string[];
|
|
159
|
-
columns?: {
|
|
160
|
-
type: "string" | "number" | "boolean" | "date";
|
|
161
|
-
name: string;
|
|
162
|
-
}[] | undefined;
|
|
163
|
-
}, {
|
|
164
|
-
name: string;
|
|
165
|
-
id: string;
|
|
166
|
-
purpose: string;
|
|
167
|
-
columns?: {
|
|
168
|
-
type: "string" | "number" | "boolean" | "date";
|
|
169
|
-
name: string;
|
|
170
|
-
}[] | undefined;
|
|
171
|
-
dependsOn?: string[] | undefined;
|
|
172
|
-
}>, "many">>;
|
|
173
|
-
researchItems: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
174
|
-
id: z.ZodString;
|
|
175
|
-
question: z.ZodString;
|
|
176
|
-
constraints: z.ZodOptional<z.ZodString>;
|
|
177
|
-
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
178
|
-
}, "strip", z.ZodTypeAny, {
|
|
179
|
-
id: string;
|
|
180
|
-
question: string;
|
|
181
|
-
dependsOn: string[];
|
|
182
|
-
constraints?: string | undefined;
|
|
183
|
-
}, {
|
|
184
|
-
id: string;
|
|
185
|
-
question: string;
|
|
186
|
-
dependsOn?: string[] | undefined;
|
|
187
|
-
constraints?: string | undefined;
|
|
188
|
-
}>, "many">>;
|
|
189
89
|
delegateItems: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
190
90
|
id: z.ZodString;
|
|
191
91
|
title: z.ZodString;
|
|
@@ -193,15 +93,15 @@ export declare const planningBlueprintSchema: z.ZodObject<{
|
|
|
193
93
|
requiredTools: z.ZodArray<z.ZodString, "many">;
|
|
194
94
|
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
195
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
title: string;
|
|
196
97
|
id: string;
|
|
197
98
|
description: string;
|
|
198
|
-
title: string;
|
|
199
99
|
dependsOn: string[];
|
|
200
100
|
requiredTools: string[];
|
|
201
101
|
}, {
|
|
102
|
+
title: string;
|
|
202
103
|
id: string;
|
|
203
104
|
description: string;
|
|
204
|
-
title: string;
|
|
205
105
|
requiredTools: string[];
|
|
206
106
|
dependsOn?: string[] | undefined;
|
|
207
107
|
}>, "many">>;
|
|
@@ -211,19 +111,20 @@ export declare const planningBlueprintSchema: z.ZodObject<{
|
|
|
211
111
|
instructions: z.ZodString;
|
|
212
112
|
dependsOn: z.ZodArray<z.ZodString, "many">;
|
|
213
113
|
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
title: string;
|
|
214
115
|
id: string;
|
|
215
116
|
instructions: string;
|
|
216
|
-
title: string;
|
|
217
117
|
dependsOn: string[];
|
|
218
118
|
}, {
|
|
119
|
+
title: string;
|
|
219
120
|
id: string;
|
|
220
121
|
instructions: string;
|
|
221
|
-
title: string;
|
|
222
122
|
dependsOn: string[];
|
|
223
123
|
}>, "many">>;
|
|
224
124
|
assumptions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
225
125
|
openQuestions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
226
126
|
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
summary: string;
|
|
227
128
|
workflows: {
|
|
228
129
|
name: string;
|
|
229
130
|
id: string;
|
|
@@ -233,34 +134,17 @@ export declare const planningBlueprintSchema: z.ZodObject<{
|
|
|
233
134
|
triggerDescription?: string | undefined;
|
|
234
135
|
existingWorkflowId?: string | undefined;
|
|
235
136
|
}[];
|
|
236
|
-
summary: string;
|
|
237
|
-
dataTables: {
|
|
238
|
-
name: string;
|
|
239
|
-
id: string;
|
|
240
|
-
purpose: string;
|
|
241
|
-
dependsOn: string[];
|
|
242
|
-
columns?: {
|
|
243
|
-
type: "string" | "number" | "boolean" | "date";
|
|
244
|
-
name: string;
|
|
245
|
-
}[] | undefined;
|
|
246
|
-
}[];
|
|
247
|
-
researchItems: {
|
|
248
|
-
id: string;
|
|
249
|
-
question: string;
|
|
250
|
-
dependsOn: string[];
|
|
251
|
-
constraints?: string | undefined;
|
|
252
|
-
}[];
|
|
253
137
|
delegateItems: {
|
|
138
|
+
title: string;
|
|
254
139
|
id: string;
|
|
255
140
|
description: string;
|
|
256
|
-
title: string;
|
|
257
141
|
dependsOn: string[];
|
|
258
142
|
requiredTools: string[];
|
|
259
143
|
}[];
|
|
260
144
|
checkpointItems: {
|
|
145
|
+
title: string;
|
|
261
146
|
id: string;
|
|
262
147
|
instructions: string;
|
|
263
|
-
title: string;
|
|
264
148
|
dependsOn: string[];
|
|
265
149
|
}[];
|
|
266
150
|
assumptions: string[];
|
|
@@ -276,33 +160,17 @@ export declare const planningBlueprintSchema: z.ZodObject<{
|
|
|
276
160
|
existingWorkflowId?: string | undefined;
|
|
277
161
|
dependsOn?: string[] | undefined;
|
|
278
162
|
}[] | undefined;
|
|
279
|
-
dataTables?: {
|
|
280
|
-
name: string;
|
|
281
|
-
id: string;
|
|
282
|
-
purpose: string;
|
|
283
|
-
columns?: {
|
|
284
|
-
type: "string" | "number" | "boolean" | "date";
|
|
285
|
-
name: string;
|
|
286
|
-
}[] | undefined;
|
|
287
|
-
dependsOn?: string[] | undefined;
|
|
288
|
-
}[] | undefined;
|
|
289
|
-
researchItems?: {
|
|
290
|
-
id: string;
|
|
291
|
-
question: string;
|
|
292
|
-
dependsOn?: string[] | undefined;
|
|
293
|
-
constraints?: string | undefined;
|
|
294
|
-
}[] | undefined;
|
|
295
163
|
delegateItems?: {
|
|
164
|
+
title: string;
|
|
296
165
|
id: string;
|
|
297
166
|
description: string;
|
|
298
|
-
title: string;
|
|
299
167
|
requiredTools: string[];
|
|
300
168
|
dependsOn?: string[] | undefined;
|
|
301
169
|
}[] | undefined;
|
|
302
170
|
checkpointItems?: {
|
|
171
|
+
title: string;
|
|
303
172
|
id: string;
|
|
304
173
|
instructions: string;
|
|
305
|
-
title: string;
|
|
306
174
|
dependsOn: string[];
|
|
307
175
|
}[] | undefined;
|
|
308
176
|
assumptions?: string[] | undefined;
|
|
@@ -310,7 +178,5 @@ export declare const planningBlueprintSchema: z.ZodObject<{
|
|
|
310
178
|
}>;
|
|
311
179
|
export type PlanningBlueprint = z.infer<typeof planningBlueprintSchema>;
|
|
312
180
|
export type BlueprintWorkflowItem = z.infer<typeof blueprintWorkflowItemSchema>;
|
|
313
|
-
export type BlueprintDataTableItem = z.infer<typeof blueprintDataTableItemSchema>;
|
|
314
|
-
export type BlueprintResearchItem = z.infer<typeof blueprintResearchItemSchema>;
|
|
315
181
|
export type BlueprintDelegateItem = z.infer<typeof blueprintDelegateItemSchema>;
|
|
316
182
|
export type BlueprintCheckpointItem = z.infer<typeof blueprintCheckpointItemSchema>;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.planningBlueprintSchema = exports.blueprintCheckpointItemSchema = exports.blueprintDelegateItemSchema = exports.
|
|
3
|
+
exports.planningBlueprintSchema = exports.blueprintCheckpointItemSchema = exports.blueprintDelegateItemSchema = exports.blueprintWorkflowItemSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.blueprintWorkflowItemSchema = zod_1.z.object({
|
|
6
6
|
id: zod_1.z.string().describe('Stable ID — preserved as task ID in the execution plan'),
|
|
7
7
|
name: zod_1.z.string().describe('Workflow display name'),
|
|
8
|
-
purpose: zod_1.z
|
|
8
|
+
purpose: zod_1.z
|
|
9
|
+
.string()
|
|
10
|
+
.describe('1-2 sentence description of what the workflow does and why. Include any data table names, columns, seed/import needs, or existing-table requirements the workflow depends on.'),
|
|
9
11
|
integrations: zod_1.z.array(zod_1.z.string()).describe('Services/APIs this workflow connects'),
|
|
10
12
|
triggerDescription: zod_1.z
|
|
11
13
|
.string()
|
|
@@ -20,25 +22,6 @@ exports.blueprintWorkflowItemSchema = zod_1.z.object({
|
|
|
20
22
|
.default([])
|
|
21
23
|
.describe('IDs of items that must complete before this one starts'),
|
|
22
24
|
});
|
|
23
|
-
exports.blueprintDataTableItemSchema = zod_1.z.object({
|
|
24
|
-
id: zod_1.z.string().describe('Stable ID — preserved as task ID'),
|
|
25
|
-
name: zod_1.z.string().describe('Table name or short task label'),
|
|
26
|
-
purpose: zod_1.z.string().describe('What to do: create with schema, delete, modify, or seed data'),
|
|
27
|
-
columns: zod_1.z
|
|
28
|
-
.array(zod_1.z.object({
|
|
29
|
-
name: zod_1.z.string(),
|
|
30
|
-
type: zod_1.z.enum(['string', 'number', 'boolean', 'date']),
|
|
31
|
-
}))
|
|
32
|
-
.optional()
|
|
33
|
-
.describe('Column definitions for table creation — omit for delete/modify operations'),
|
|
34
|
-
dependsOn: zod_1.z.array(zod_1.z.string()).default([]),
|
|
35
|
-
});
|
|
36
|
-
exports.blueprintResearchItemSchema = zod_1.z.object({
|
|
37
|
-
id: zod_1.z.string().describe('Stable ID — preserved as task ID'),
|
|
38
|
-
question: zod_1.z.string().describe('Research question to answer'),
|
|
39
|
-
constraints: zod_1.z.string().optional().describe('Focus area or exclusions'),
|
|
40
|
-
dependsOn: zod_1.z.array(zod_1.z.string()).default([]),
|
|
41
|
-
});
|
|
42
25
|
exports.blueprintDelegateItemSchema = zod_1.z.object({
|
|
43
26
|
id: zod_1.z.string().describe('Stable ID — preserved as task ID'),
|
|
44
27
|
title: zod_1.z.string().describe('Short task title'),
|
|
@@ -62,8 +45,6 @@ exports.blueprintCheckpointItemSchema = zod_1.z.object({
|
|
|
62
45
|
exports.planningBlueprintSchema = zod_1.z.object({
|
|
63
46
|
summary: zod_1.z.string().describe('1-2 sentence overview of the solution'),
|
|
64
47
|
workflows: zod_1.z.array(exports.blueprintWorkflowItemSchema).default([]),
|
|
65
|
-
dataTables: zod_1.z.array(exports.blueprintDataTableItemSchema).default([]),
|
|
66
|
-
researchItems: zod_1.z.array(exports.blueprintResearchItemSchema).default([]),
|
|
67
48
|
delegateItems: zod_1.z.array(exports.blueprintDelegateItemSchema).default([]),
|
|
68
49
|
checkpointItems: zod_1.z.array(exports.blueprintCheckpointItemSchema).default([]),
|
|
69
50
|
assumptions: zod_1.z.array(zod_1.z.string()).default([]).describe('Assumptions the plan relies on'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blueprint.schema.js","sourceRoot":"","sources":["../../../src/tools/orchestration/blueprint.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAMX,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM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AAgC,CAAC;IACvF,aAAa,EAAE,OAAC;SACd,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SACjB,OAAO,CAAC,EAAE,CAAC;SACX,QAAQ,CAAC,gEAAgE,CAAC;CAC5E,CAAC,CAAC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
+
import type { AgentMessage } from '@n8n/agents';
|
|
1
2
|
export declare const NUDGE_PROMPT = "You stopped without confirming with the user. Call pause-for-user NOW to tell the user where the credential values live and to enter them privately in the n8n credential form.";
|
|
2
|
-
export declare function buildNudgeStreamInput<M>(priorMessages: readonly M[]): Array<M |
|
|
3
|
-
role: 'user';
|
|
4
|
-
content: string;
|
|
5
|
-
}> | string;
|
|
3
|
+
export declare function buildNudgeStreamInput<M extends AgentMessage>(priorMessages: readonly M[]): Array<M | AgentMessage> | string;
|
|
@@ -6,6 +6,6 @@ exports.NUDGE_PROMPT = 'You stopped without confirming with the user. Call pause
|
|
|
6
6
|
function buildNudgeStreamInput(priorMessages) {
|
|
7
7
|
if (priorMessages.length === 0)
|
|
8
8
|
return exports.NUDGE_PROMPT;
|
|
9
|
-
return [...priorMessages, { role: 'user', content: exports.NUDGE_PROMPT }];
|
|
9
|
+
return [...priorMessages, { role: 'user', content: [{ type: 'text', text: exports.NUDGE_PROMPT }] }];
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=browser-credential-setup.nudge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser-credential-setup.nudge.js","sourceRoot":"","sources":["../../../src/tools/orchestration/browser-credential-setup.nudge.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"browser-credential-setup.nudge.js","sourceRoot":"","sources":["../../../src/tools/orchestration/browser-credential-setup.nudge.ts"],"names":[],"mappings":";;;AAqBA,sDAKC;AAnBY,QAAA,YAAY,GACxB,iLAAiL,CAAC;AAanL,SAAgB,qBAAqB,CACpC,aAA2B;IAE3B,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,oBAAY,CAAC;IACpD,OAAO,CAAC,GAAG,aAAa,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAY,EAAE,CAAC,EAAE,CAAC,CAAC;AAC9F,CAAC"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
import { type BuiltTool } from '@n8n/agents';
|
|
1
2
|
import { z } from 'zod';
|
|
2
|
-
import type {
|
|
3
|
+
import type { WorkSummary } from '../../stream/work-summary-accumulator';
|
|
4
|
+
import type { InstanceAiToolRegistry, OrchestrationContext } from '../../types';
|
|
3
5
|
export { buildBrowserAgentPrompt, type BrowserToolSource } from './browser-credential-setup.prompt';
|
|
6
|
+
declare function isPermanentDenialResult(result: unknown): boolean;
|
|
7
|
+
declare function hasPermanentBrowserDenial(workSummary: WorkSummary): boolean;
|
|
8
|
+
declare function wrapBrowserToolsForDenialDetection(tools: InstanceAiToolRegistry, onDenied: () => void): InstanceAiToolRegistry;
|
|
9
|
+
export declare const __testIsPermanentDenialResult: typeof isPermanentDenialResult;
|
|
10
|
+
export declare const __testHasPermanentBrowserDenial: typeof hasPermanentBrowserDenial;
|
|
11
|
+
export declare const __testWrapBrowserToolsForDenialDetection: typeof wrapBrowserToolsForDenialDetection;
|
|
4
12
|
export declare const browserCredentialSetupInputSchema: z.ZodObject<{
|
|
5
13
|
message: z.ZodString;
|
|
6
14
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -15,4 +23,4 @@ export declare const browserCredentialSetupResumeSchema: z.ZodObject<{
|
|
|
15
23
|
}, {
|
|
16
24
|
approved: boolean;
|
|
17
25
|
}>;
|
|
18
|
-
export declare function createBrowserCredentialSetupTool(context: OrchestrationContext):
|
|
26
|
+
export declare function createBrowserCredentialSetupTool(context: OrchestrationContext): BuiltTool;
|