@n8n/instance-ai 1.2.1 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/instance-agent.js +4 -12
- package/dist/agent/instance-agent.js.map +1 -1
- package/dist/agent/sanitize-mcp-schemas.d.ts +4 -0
- package/dist/agent/sanitize-mcp-schemas.js +88 -18
- package/dist/agent/sanitize-mcp-schemas.js.map +1 -1
- package/dist/agent/sub-agent-debriefing.d.ts +4 -4
- package/dist/agent/system-prompt.js +18 -18
- package/dist/agent/system-prompt.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/constants/max-steps.d.ts +9 -0
- package/dist/constants/max-steps.js +13 -0
- package/dist/constants/max-steps.js.map +1 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/memory/title-utils.d.ts +1 -1
- package/dist/memory/title-utils.js +5 -23
- package/dist/memory/title-utils.js.map +1 -1
- package/dist/planned-tasks/planned-task-service.js +42 -6
- package/dist/planned-tasks/planned-task-service.js.map +1 -1
- package/dist/storage/workflow-loop-storage.d.ts +10 -0
- package/dist/stream/work-summary-accumulator.d.ts +6 -6
- package/dist/tools/credentials.tool.d.ts +2 -0
- package/dist/tools/credentials.tool.js +253 -0
- package/dist/tools/credentials.tool.js.map +1 -0
- package/dist/tools/data-tables.tool.d.ts +2 -0
- package/dist/tools/data-tables.tool.js +410 -0
- package/dist/tools/data-tables.tool.js.map +1 -0
- package/dist/tools/executions.tool.d.ts +2 -0
- package/dist/tools/executions.tool.js +177 -0
- package/dist/tools/executions.tool.js.map +1 -0
- package/dist/tools/index.d.ts +21 -57
- package/dist/tools/index.js +35 -132
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/nodes.tool.d.ts +2 -0
- package/dist/tools/nodes.tool.js +298 -0
- package/dist/tools/nodes.tool.js.map +1 -0
- package/dist/tools/orchestration/blueprint.schema.d.ts +15 -15
- package/dist/tools/orchestration/browser-credential-setup.tool.js +13 -17
- package/dist/tools/orchestration/browser-credential-setup.tool.js.map +1 -1
- package/dist/tools/orchestration/build-workflow-agent.prompt.js +32 -28
- package/dist/tools/orchestration/build-workflow-agent.prompt.js.map +1 -1
- package/dist/tools/orchestration/build-workflow-agent.tool.d.ts +9 -1
- package/dist/tools/orchestration/build-workflow-agent.tool.js +73 -58
- package/dist/tools/orchestration/build-workflow-agent.tool.js.map +1 -1
- package/dist/tools/orchestration/data-table-agent.prompt.d.ts +1 -1
- package/dist/tools/orchestration/data-table-agent.prompt.js +7 -7
- package/dist/tools/orchestration/data-table-agent.tool.js +10 -22
- package/dist/tools/orchestration/data-table-agent.tool.js.map +1 -1
- package/dist/tools/orchestration/delegate.tool.js +3 -3
- package/dist/tools/orchestration/delegate.tool.js.map +1 -1
- package/dist/tools/orchestration/plan-agent-prompt.d.ts +1 -1
- package/dist/tools/orchestration/plan-agent-prompt.js +5 -5
- package/dist/tools/orchestration/plan-with-agent.tool.js +9 -11
- package/dist/tools/orchestration/plan-with-agent.tool.js.map +1 -1
- package/dist/tools/orchestration/research-with-agent.tool.js +6 -9
- package/dist/tools/orchestration/research-with-agent.tool.js.map +1 -1
- package/dist/tools/research.tool.d.ts +2 -0
- package/dist/tools/research.tool.js +159 -0
- package/dist/tools/research.tool.js.map +1 -0
- package/dist/tools/{orchestration/update-tasks.tool.d.ts → task-control.tool.d.ts} +2 -2
- package/dist/tools/task-control.tool.js +81 -0
- package/dist/tools/task-control.tool.js.map +1 -0
- package/dist/tools/templates.tool.d.ts +1 -0
- package/dist/tools/templates.tool.js +144 -0
- package/dist/tools/templates.tool.js.map +1 -0
- package/dist/tools/workflows/build-workflow.tool.js +2 -0
- package/dist/tools/workflows/build-workflow.tool.js.map +1 -1
- package/dist/tools/workflows/materialize-node-type.tool.d.ts +4 -4
- package/dist/tools/workflows/setup-workflow.service.d.ts +4 -1
- package/dist/tools/workflows/setup-workflow.service.js +91 -15
- package/dist/tools/workflows/setup-workflow.service.js.map +1 -1
- package/dist/tools/workflows/submit-workflow.tool.d.ts +1 -0
- package/dist/tools/workflows/submit-workflow.tool.js +5 -0
- package/dist/tools/workflows/submit-workflow.tool.js.map +1 -1
- package/dist/tools/workflows.tool.d.ts +2 -0
- package/dist/tools/workflows.tool.js +498 -0
- package/dist/tools/workflows.tool.js.map +1 -0
- package/dist/tools/workspace.tool.d.ts +2 -0
- package/dist/tools/workspace.tool.js +278 -0
- package/dist/tools/workspace.tool.js.map +1 -0
- package/dist/tracing/langsmith-tracing.d.ts +1 -0
- package/dist/tracing/langsmith-tracing.js +170 -2
- package/dist/tracing/langsmith-tracing.js.map +1 -1
- package/dist/tracing/trace-replay.d.ts +61 -0
- package/dist/tracing/trace-replay.js +208 -0
- package/dist/tracing/trace-replay.js.map +1 -0
- package/dist/types.d.ts +7 -0
- package/dist/workflow-loop/guidance.js +5 -5
- package/dist/workflow-loop/guidance.js.map +1 -1
- package/dist/workflow-loop/workflow-loop-controller.js +5 -0
- package/dist/workflow-loop/workflow-loop-controller.js.map +1 -1
- package/dist/workflow-loop/workflow-loop-state.d.ts +7 -0
- package/dist/workflow-loop/workflow-loop-state.js +2 -0
- package/dist/workflow-loop/workflow-loop-state.js.map +1 -1
- package/package.json +10 -8
- package/dist/agent/tool-access.d.ts +0 -2
- package/dist/agent/tool-access.js +0 -28
- package/dist/agent/tool-access.js.map +0 -1
- package/dist/tools/best-practices/get-best-practices.tool.d.ts +0 -9
- package/dist/tools/best-practices/get-best-practices.tool.js +0 -66
- package/dist/tools/best-practices/get-best-practices.tool.js.map +0 -1
- package/dist/tools/credentials/delete-credential.tool.d.ts +0 -20
- package/dist/tools/credentials/delete-credential.tool.js +0 -58
- package/dist/tools/credentials/delete-credential.tool.js.map +0 -1
- package/dist/tools/credentials/get-credential.tool.d.ts +0 -10
- package/dist/tools/credentials/get-credential.tool.js +0 -32
- package/dist/tools/credentials/get-credential.tool.js.map +0 -1
- package/dist/tools/credentials/list-credentials.tool.d.ts +0 -16
- package/dist/tools/credentials/list-credentials.tool.js +0 -72
- package/dist/tools/credentials/list-credentials.tool.js.map +0 -1
- package/dist/tools/credentials/search-credential-types.tool.d.ts +0 -10
- package/dist/tools/credentials/search-credential-types.tool.js +0 -46
- package/dist/tools/credentials/search-credential-types.tool.js.map +0 -1
- package/dist/tools/credentials/setup-credentials.tool.d.ts +0 -69
- package/dist/tools/credentials/setup-credentials.tool.js +0 -140
- package/dist/tools/credentials/setup-credentials.tool.js.map +0 -1
- package/dist/tools/credentials/test-credential.tool.d.ts +0 -10
- package/dist/tools/credentials/test-credential.tool.js +0 -32
- package/dist/tools/credentials/test-credential.tool.js.map +0 -1
- package/dist/tools/data-tables/add-data-table-column.tool.d.ts +0 -23
- package/dist/tools/data-tables/add-data-table-column.tool.js +0 -67
- package/dist/tools/data-tables/add-data-table-column.tool.js.map +0 -1
- package/dist/tools/data-tables/create-data-table.tool.d.ts +0 -38
- package/dist/tools/data-tables/create-data-table.tool.js +0 -106
- package/dist/tools/data-tables/create-data-table.tool.js.map +0 -1
- package/dist/tools/data-tables/delete-data-table-column.tool.d.ts +0 -20
- package/dist/tools/data-tables/delete-data-table-column.tool.js +0 -55
- package/dist/tools/data-tables/delete-data-table-column.tool.js.map +0 -1
- package/dist/tools/data-tables/delete-data-table-rows.tool.d.ts +0 -63
- package/dist/tools/data-tables/delete-data-table-rows.tool.js +0 -79
- package/dist/tools/data-tables/delete-data-table-rows.tool.js.map +0 -1
- package/dist/tools/data-tables/delete-data-table.tool.d.ts +0 -17
- package/dist/tools/data-tables/delete-data-table.tool.js +0 -54
- package/dist/tools/data-tables/delete-data-table.tool.js.map +0 -1
- package/dist/tools/data-tables/get-data-table-schema.tool.d.ts +0 -10
- package/dist/tools/data-tables/get-data-table-schema.tool.js +0 -29
- package/dist/tools/data-tables/get-data-table-schema.tool.js.map +0 -1
- package/dist/tools/data-tables/insert-data-table-rows.tool.d.ts +0 -20
- package/dist/tools/data-tables/insert-data-table-rows.tool.js +0 -62
- package/dist/tools/data-tables/insert-data-table-rows.tool.js.map +0 -1
- package/dist/tools/data-tables/list-data-tables.tool.d.ts +0 -10
- package/dist/tools/data-tables/list-data-tables.tool.js +0 -34
- package/dist/tools/data-tables/list-data-tables.tool.js.map +0 -1
- package/dist/tools/data-tables/query-data-table-rows.tool.d.ts +0 -62
- package/dist/tools/data-tables/query-data-table-rows.tool.js +0 -56
- package/dist/tools/data-tables/query-data-table-rows.tool.js.map +0 -1
- package/dist/tools/data-tables/rename-data-table-column.tool.d.ts +0 -23
- package/dist/tools/data-tables/rename-data-table-column.tool.js +0 -56
- package/dist/tools/data-tables/rename-data-table-column.tool.js.map +0 -1
- package/dist/tools/data-tables/update-data-table-rows.tool.d.ts +0 -66
- package/dist/tools/data-tables/update-data-table-rows.tool.js +0 -67
- package/dist/tools/data-tables/update-data-table-rows.tool.js.map +0 -1
- package/dist/tools/executions/debug-execution.tool.d.ts +0 -10
- package/dist/tools/executions/debug-execution.tool.js +0 -43
- package/dist/tools/executions/debug-execution.tool.js.map +0 -1
- package/dist/tools/executions/get-execution.tool.d.ts +0 -10
- package/dist/tools/executions/get-execution.tool.js +0 -28
- package/dist/tools/executions/get-execution.tool.js.map +0 -1
- package/dist/tools/executions/get-node-output.tool.d.ts +0 -19
- package/dist/tools/executions/get-node-output.tool.js +0 -41
- package/dist/tools/executions/get-node-output.tool.js.map +0 -1
- package/dist/tools/executions/list-executions.tool.d.ts +0 -16
- package/dist/tools/executions/list-executions.tool.js +0 -47
- package/dist/tools/executions/list-executions.tool.js.map +0 -1
- package/dist/tools/executions/run-workflow.tool.d.ts +0 -26
- package/dist/tools/executions/run-workflow.tool.js +0 -92
- package/dist/tools/executions/run-workflow.tool.js.map +0 -1
- package/dist/tools/executions/stop-execution.tool.d.ts +0 -10
- package/dist/tools/executions/stop-execution.tool.js +0 -27
- package/dist/tools/executions/stop-execution.tool.js.map +0 -1
- package/dist/tools/nodes/explore-node-resources.tool.d.ts +0 -34
- package/dist/tools/nodes/explore-node-resources.tool.js +0 -73
- package/dist/tools/nodes/explore-node-resources.tool.js.map +0 -1
- package/dist/tools/nodes/get-node-description.tool.d.ts +0 -10
- package/dist/tools/nodes/get-node-description.tool.js +0 -54
- package/dist/tools/nodes/get-node-description.tool.js.map +0 -1
- package/dist/tools/nodes/get-node-type-definition.tool.d.ts +0 -40
- package/dist/tools/nodes/get-node-type-definition.tool.js +0 -75
- package/dist/tools/nodes/get-node-type-definition.tool.js.map +0 -1
- package/dist/tools/nodes/get-suggested-nodes.tool.d.ts +0 -9
- package/dist/tools/nodes/get-suggested-nodes.tool.js +0 -56
- package/dist/tools/nodes/get-suggested-nodes.tool.js.map +0 -1
- package/dist/tools/nodes/list-nodes.tool.d.ts +0 -10
- package/dist/tools/nodes/list-nodes.tool.js +0 -35
- package/dist/tools/nodes/list-nodes.tool.js.map +0 -1
- package/dist/tools/nodes/search-nodes.tool.d.ts +0 -16
- package/dist/tools/nodes/search-nodes.tool.js +0 -91
- package/dist/tools/nodes/search-nodes.tool.js.map +0 -1
- package/dist/tools/orchestration/cancel-background-task.tool.d.ts +0 -10
- package/dist/tools/orchestration/cancel-background-task.tool.js +0 -26
- package/dist/tools/orchestration/cancel-background-task.tool.js.map +0 -1
- package/dist/tools/orchestration/correct-background-task.tool.d.ts +0 -13
- package/dist/tools/orchestration/correct-background-task.tool.js +0 -43
- package/dist/tools/orchestration/correct-background-task.tool.js.map +0 -1
- package/dist/tools/orchestration/update-tasks.tool.js +0 -26
- package/dist/tools/orchestration/update-tasks.tool.js.map +0 -1
- package/dist/tools/templates/search-template-parameters.tool.d.ts +0 -18
- package/dist/tools/templates/search-template-parameters.tool.js +0 -57
- package/dist/tools/templates/search-template-parameters.tool.js.map +0 -1
- package/dist/tools/templates/search-template-structures.tool.d.ts +0 -15
- package/dist/tools/templates/search-template-structures.tool.js +0 -47
- package/dist/tools/templates/search-template-structures.tool.js.map +0 -1
- package/dist/tools/web-research/fetch-url.tool.d.ts +0 -13
- package/dist/tools/web-research/fetch-url.tool.js +0 -132
- package/dist/tools/web-research/fetch-url.tool.js.map +0 -1
- package/dist/tools/web-research/index.d.ts +0 -1
- package/dist/tools/web-research/index.js +0 -6
- package/dist/tools/web-research/index.js.map +0 -1
- package/dist/tools/web-research/web-search.tool.d.ts +0 -16
- package/dist/tools/web-research/web-search.tool.js +0 -59
- package/dist/tools/web-research/web-search.tool.js.map +0 -1
- package/dist/tools/workflows/delete-workflow.tool.d.ts +0 -20
- package/dist/tools/workflows/delete-workflow.tool.js +0 -55
- package/dist/tools/workflows/delete-workflow.tool.js.map +0 -1
- package/dist/tools/workflows/get-workflow-as-code.tool.d.ts +0 -10
- package/dist/tools/workflows/get-workflow-as-code.tool.js +0 -39
- package/dist/tools/workflows/get-workflow-as-code.tool.js.map +0 -1
- package/dist/tools/workflows/get-workflow-version.tool.d.ts +0 -13
- package/dist/tools/workflows/get-workflow-version.tool.js +0 -40
- package/dist/tools/workflows/get-workflow-version.tool.js.map +0 -1
- package/dist/tools/workflows/get-workflow.tool.d.ts +0 -10
- package/dist/tools/workflows/get-workflow.tool.js +0 -38
- package/dist/tools/workflows/get-workflow.tool.js.map +0 -1
- package/dist/tools/workflows/list-workflow-versions.tool.d.ts +0 -16
- package/dist/tools/workflows/list-workflow-versions.tool.js +0 -49
- package/dist/tools/workflows/list-workflow-versions.tool.js.map +0 -1
- package/dist/tools/workflows/list-workflows.tool.d.ts +0 -13
- package/dist/tools/workflows/list-workflows.tool.js +0 -44
- package/dist/tools/workflows/list-workflows.tool.js.map +0 -1
- package/dist/tools/workflows/publish-workflow.tool.d.ts +0 -10
- package/dist/tools/workflows/publish-workflow.tool.js +0 -97
- package/dist/tools/workflows/publish-workflow.tool.js.map +0 -1
- package/dist/tools/workflows/restore-workflow-version.tool.d.ts +0 -20
- package/dist/tools/workflows/restore-workflow-version.tool.js +0 -72
- package/dist/tools/workflows/restore-workflow-version.tool.js.map +0 -1
- package/dist/tools/workflows/setup-workflow.tool.d.ts +0 -13
- package/dist/tools/workflows/setup-workflow.tool.js +0 -215
- package/dist/tools/workflows/setup-workflow.tool.js.map +0 -1
- package/dist/tools/workflows/unpublish-workflow.tool.d.ts +0 -20
- package/dist/tools/workflows/unpublish-workflow.tool.js +0 -65
- package/dist/tools/workflows/unpublish-workflow.tool.js.map +0 -1
- package/dist/tools/workflows/update-workflow-version.tool.d.ts +0 -19
- package/dist/tools/workflows/update-workflow-version.tool.js +0 -37
- package/dist/tools/workflows/update-workflow-version.tool.js.map +0 -1
- package/dist/tools/workspace/cleanup-test-executions.tool.d.ts +0 -23
- package/dist/tools/workspace/cleanup-test-executions.tool.js +0 -62
- package/dist/tools/workspace/cleanup-test-executions.tool.js.map +0 -1
- package/dist/tools/workspace/create-folder.tool.d.ts +0 -23
- package/dist/tools/workspace/create-folder.tool.js +0 -72
- package/dist/tools/workspace/create-folder.tool.js.map +0 -1
- package/dist/tools/workspace/delete-folder.tool.d.ts +0 -29
- package/dist/tools/workspace/delete-folder.tool.js +0 -67
- package/dist/tools/workspace/delete-folder.tool.js.map +0 -1
- package/dist/tools/workspace/list-folders.tool.d.ts +0 -10
- package/dist/tools/workspace/list-folders.tool.js +0 -28
- package/dist/tools/workspace/list-folders.tool.js.map +0 -1
- package/dist/tools/workspace/list-projects.tool.d.ts +0 -4
- package/dist/tools/workspace/list-projects.tool.js +0 -26
- package/dist/tools/workspace/list-projects.tool.js.map +0 -1
- package/dist/tools/workspace/list-tags.tool.d.ts +0 -4
- package/dist/tools/workspace/list-tags.tool.js +0 -25
- package/dist/tools/workspace/list-tags.tool.js.map +0 -1
- package/dist/tools/workspace/move-workflow-to-folder.tool.d.ts +0 -26
- package/dist/tools/workspace/move-workflow-to-folder.tool.js +0 -60
- package/dist/tools/workspace/move-workflow-to-folder.tool.js.map +0 -1
- package/dist/tools/workspace/tag-workflow.tool.d.ts +0 -23
- package/dist/tools/workspace/tag-workflow.tool.js +0 -56
- package/dist/tools/workspace/tag-workflow.tool.js.map +0 -1
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,72 +1,36 @@
|
|
|
1
1
|
import type { InstanceAiContext, OrchestrationContext } from '../types';
|
|
2
2
|
export declare function createAllTools(context: InstanceAiContext): {
|
|
3
3
|
'parse-file'?: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "parse-file", unknown> | undefined;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
'
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
'
|
|
13
|
-
'list-workflow-versions'?: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "list-workflow-versions", unknown> | undefined;
|
|
14
|
-
'get-workflow-version'?: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "get-workflow-version", unknown> | undefined;
|
|
15
|
-
'restore-workflow-version'?: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "restore-workflow-version", unknown> | undefined;
|
|
16
|
-
'web-search'?: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "web-search", unknown> | undefined;
|
|
17
|
-
'list-workflows': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "list-workflows", unknown>;
|
|
18
|
-
'get-workflow': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "get-workflow", unknown>;
|
|
19
|
-
'get-workflow-as-code': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "get-workflow-as-code", unknown>;
|
|
4
|
+
workflows: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "workflows", unknown>;
|
|
5
|
+
executions: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "executions", unknown>;
|
|
6
|
+
credentials: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "credentials", unknown>;
|
|
7
|
+
'data-tables': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "data-tables", unknown>;
|
|
8
|
+
workspace: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "workspace", unknown>;
|
|
9
|
+
research: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "research", unknown>;
|
|
10
|
+
nodes: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "nodes", unknown>;
|
|
11
|
+
templates: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "templates", unknown>;
|
|
12
|
+
'ask-user': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "ask-user", unknown>;
|
|
20
13
|
'build-workflow': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "build-workflow", unknown>;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
'
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
'list-credentials': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "list-credentials", unknown>;
|
|
32
|
-
'get-credential': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "get-credential", unknown>;
|
|
33
|
-
'delete-credential': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "delete-credential", unknown>;
|
|
34
|
-
'search-credential-types': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "search-credential-types", unknown>;
|
|
35
|
-
'setup-credentials': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "setup-credentials", unknown>;
|
|
36
|
-
'test-credential': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "test-credential", unknown>;
|
|
37
|
-
'list-nodes': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "list-nodes", unknown>;
|
|
38
|
-
'get-node-description': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "get-node-description", unknown>;
|
|
39
|
-
'get-node-type-definition': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "get-node-type-definition", unknown>;
|
|
40
|
-
'search-nodes': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "search-nodes", unknown>;
|
|
41
|
-
'get-suggested-nodes': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "get-suggested-nodes", unknown>;
|
|
42
|
-
'explore-node-resources': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "explore-node-resources", unknown>;
|
|
43
|
-
'search-template-structures': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "search-template-structures", unknown>;
|
|
44
|
-
'search-template-parameters': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "search-template-parameters", unknown>;
|
|
45
|
-
'get-best-practices': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "get-best-practices", unknown>;
|
|
46
|
-
'list-data-tables': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "list-data-tables", unknown>;
|
|
47
|
-
'create-data-table': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "create-data-table", unknown>;
|
|
48
|
-
'delete-data-table': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "delete-data-table", unknown>;
|
|
49
|
-
'get-data-table-schema': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "get-data-table-schema", unknown>;
|
|
50
|
-
'add-data-table-column': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "add-data-table-column", unknown>;
|
|
51
|
-
'delete-data-table-column': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "delete-data-table-column", unknown>;
|
|
52
|
-
'rename-data-table-column': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "rename-data-table-column", unknown>;
|
|
53
|
-
'query-data-table-rows': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "query-data-table-rows", unknown>;
|
|
54
|
-
'insert-data-table-rows': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "insert-data-table-rows", unknown>;
|
|
55
|
-
'update-data-table-rows': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "update-data-table-rows", unknown>;
|
|
56
|
-
'delete-data-table-rows': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "delete-data-table-rows", unknown>;
|
|
14
|
+
};
|
|
15
|
+
export declare function createOrchestratorDomainTools(context: InstanceAiContext): {
|
|
16
|
+
workflows: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "workflows", unknown>;
|
|
17
|
+
executions: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "executions", unknown>;
|
|
18
|
+
credentials: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "credentials", unknown>;
|
|
19
|
+
'data-tables': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "data-tables", unknown>;
|
|
20
|
+
workspace: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "workspace", unknown>;
|
|
21
|
+
research: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "research", unknown>;
|
|
22
|
+
nodes: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "nodes", unknown>;
|
|
23
|
+
templates: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "templates", unknown>;
|
|
57
24
|
'ask-user': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "ask-user", unknown>;
|
|
58
|
-
'fetch-url': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "fetch-url", unknown>;
|
|
59
25
|
};
|
|
60
26
|
export declare function createOrchestrationTools(context: OrchestrationContext): {
|
|
61
27
|
'apply-workflow-credentials'?: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "apply-workflow-credentials", unknown> | undefined;
|
|
62
28
|
'verify-built-workflow'?: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "verify-built-workflow", unknown> | undefined;
|
|
63
29
|
'report-verification-verdict'?: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "report-verification-verdict", unknown> | undefined;
|
|
64
30
|
'browser-credential-setup'?: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "browser-credential-setup", unknown> | undefined;
|
|
65
|
-
'correct-background-task'?: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "correct-background-task", unknown> | undefined;
|
|
66
|
-
'cancel-background-task'?: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "cancel-background-task", unknown> | undefined;
|
|
67
|
-
'create-tasks': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "create-tasks", unknown>;
|
|
68
31
|
plan: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "plan", unknown>;
|
|
69
|
-
'
|
|
32
|
+
'create-tasks': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "create-tasks", unknown>;
|
|
33
|
+
'task-control': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "task-control", unknown>;
|
|
70
34
|
delegate: import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "delegate", unknown>;
|
|
71
35
|
'build-workflow-with-agent': import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "build-workflow-with-agent", unknown>;
|
|
72
36
|
};
|
package/dist/tools/index.js
CHANGED
|
@@ -1,166 +1,69 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createAllTools = createAllTools;
|
|
4
|
+
exports.createOrchestratorDomainTools = createOrchestratorDomainTools;
|
|
4
5
|
exports.createOrchestrationTools = createOrchestrationTools;
|
|
5
6
|
const structured_file_parser_1 = require("../parsers/structured-file-parser");
|
|
6
7
|
const parse_file_tool_1 = require("./attachments/parse-file.tool");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const list_credentials_tool_1 = require("./credentials/list-credentials.tool");
|
|
11
|
-
const search_credential_types_tool_1 = require("./credentials/search-credential-types.tool");
|
|
12
|
-
const setup_credentials_tool_1 = require("./credentials/setup-credentials.tool");
|
|
13
|
-
const test_credential_tool_1 = require("./credentials/test-credential.tool");
|
|
14
|
-
const add_data_table_column_tool_1 = require("./data-tables/add-data-table-column.tool");
|
|
15
|
-
const create_data_table_tool_1 = require("./data-tables/create-data-table.tool");
|
|
16
|
-
const delete_data_table_column_tool_1 = require("./data-tables/delete-data-table-column.tool");
|
|
17
|
-
const delete_data_table_rows_tool_1 = require("./data-tables/delete-data-table-rows.tool");
|
|
18
|
-
const delete_data_table_tool_1 = require("./data-tables/delete-data-table.tool");
|
|
19
|
-
const get_data_table_schema_tool_1 = require("./data-tables/get-data-table-schema.tool");
|
|
20
|
-
const insert_data_table_rows_tool_1 = require("./data-tables/insert-data-table-rows.tool");
|
|
21
|
-
const list_data_tables_tool_1 = require("./data-tables/list-data-tables.tool");
|
|
22
|
-
const query_data_table_rows_tool_1 = require("./data-tables/query-data-table-rows.tool");
|
|
23
|
-
const rename_data_table_column_tool_1 = require("./data-tables/rename-data-table-column.tool");
|
|
24
|
-
const update_data_table_rows_tool_1 = require("./data-tables/update-data-table-rows.tool");
|
|
25
|
-
const debug_execution_tool_1 = require("./executions/debug-execution.tool");
|
|
26
|
-
const get_execution_tool_1 = require("./executions/get-execution.tool");
|
|
27
|
-
const get_node_output_tool_1 = require("./executions/get-node-output.tool");
|
|
28
|
-
const list_executions_tool_1 = require("./executions/list-executions.tool");
|
|
29
|
-
const run_workflow_tool_1 = require("./executions/run-workflow.tool");
|
|
30
|
-
const stop_execution_tool_1 = require("./executions/stop-execution.tool");
|
|
8
|
+
const credentials_tool_1 = require("./credentials.tool");
|
|
9
|
+
const data_tables_tool_1 = require("./data-tables.tool");
|
|
10
|
+
const executions_tool_1 = require("./executions.tool");
|
|
31
11
|
const create_tools_from_mcp_server_1 = require("./filesystem/create-tools-from-mcp-server");
|
|
32
|
-
const
|
|
33
|
-
const get_node_description_tool_1 = require("./nodes/get-node-description.tool");
|
|
34
|
-
const get_node_type_definition_tool_1 = require("./nodes/get-node-type-definition.tool");
|
|
35
|
-
const get_suggested_nodes_tool_1 = require("./nodes/get-suggested-nodes.tool");
|
|
36
|
-
const list_nodes_tool_1 = require("./nodes/list-nodes.tool");
|
|
37
|
-
const search_nodes_tool_1 = require("./nodes/search-nodes.tool");
|
|
12
|
+
const nodes_tool_1 = require("./nodes.tool");
|
|
38
13
|
const browser_credential_setup_tool_1 = require("./orchestration/browser-credential-setup.tool");
|
|
39
14
|
const build_workflow_agent_tool_1 = require("./orchestration/build-workflow-agent.tool");
|
|
40
|
-
const cancel_background_task_tool_1 = require("./orchestration/cancel-background-task.tool");
|
|
41
|
-
const correct_background_task_tool_1 = require("./orchestration/correct-background-task.tool");
|
|
42
15
|
const delegate_tool_1 = require("./orchestration/delegate.tool");
|
|
43
16
|
const plan_with_agent_tool_1 = require("./orchestration/plan-with-agent.tool");
|
|
44
17
|
const plan_tool_1 = require("./orchestration/plan.tool");
|
|
45
18
|
const report_verification_verdict_tool_1 = require("./orchestration/report-verification-verdict.tool");
|
|
46
|
-
const update_tasks_tool_1 = require("./orchestration/update-tasks.tool");
|
|
47
19
|
const verify_built_workflow_tool_1 = require("./orchestration/verify-built-workflow.tool");
|
|
20
|
+
const research_tool_1 = require("./research.tool");
|
|
48
21
|
const ask_user_tool_1 = require("./shared/ask-user.tool");
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const fetch_url_tool_1 = require("./web-research/fetch-url.tool");
|
|
52
|
-
const web_search_tool_1 = require("./web-research/web-search.tool");
|
|
22
|
+
const task_control_tool_1 = require("./task-control.tool");
|
|
23
|
+
const templates_tool_1 = require("./templates.tool");
|
|
53
24
|
const apply_workflow_credentials_tool_1 = require("./workflows/apply-workflow-credentials.tool");
|
|
54
25
|
const build_workflow_tool_1 = require("./workflows/build-workflow.tool");
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
const get_workflow_version_tool_1 = require("./workflows/get-workflow-version.tool");
|
|
58
|
-
const get_workflow_tool_1 = require("./workflows/get-workflow.tool");
|
|
59
|
-
const list_workflow_versions_tool_1 = require("./workflows/list-workflow-versions.tool");
|
|
60
|
-
const list_workflows_tool_1 = require("./workflows/list-workflows.tool");
|
|
61
|
-
const publish_workflow_tool_1 = require("./workflows/publish-workflow.tool");
|
|
62
|
-
const restore_workflow_version_tool_1 = require("./workflows/restore-workflow-version.tool");
|
|
63
|
-
const setup_workflow_tool_1 = require("./workflows/setup-workflow.tool");
|
|
64
|
-
const unpublish_workflow_tool_1 = require("./workflows/unpublish-workflow.tool");
|
|
65
|
-
const update_workflow_version_tool_1 = require("./workflows/update-workflow-version.tool");
|
|
66
|
-
const cleanup_test_executions_tool_1 = require("./workspace/cleanup-test-executions.tool");
|
|
67
|
-
const create_folder_tool_1 = require("./workspace/create-folder.tool");
|
|
68
|
-
const delete_folder_tool_1 = require("./workspace/delete-folder.tool");
|
|
69
|
-
const list_folders_tool_1 = require("./workspace/list-folders.tool");
|
|
70
|
-
const list_projects_tool_1 = require("./workspace/list-projects.tool");
|
|
71
|
-
const list_tags_tool_1 = require("./workspace/list-tags.tool");
|
|
72
|
-
const move_workflow_to_folder_tool_1 = require("./workspace/move-workflow-to-folder.tool");
|
|
73
|
-
const tag_workflow_tool_1 = require("./workspace/tag-workflow.tool");
|
|
26
|
+
const workflows_tool_1 = require("./workflows.tool");
|
|
27
|
+
const workspace_tool_1 = require("./workspace.tool");
|
|
74
28
|
function createAllTools(context) {
|
|
75
29
|
return {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
'
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
'list-executions': (0, list_executions_tool_1.createListExecutionsTool)(context),
|
|
85
|
-
'run-workflow': (0, run_workflow_tool_1.createRunWorkflowTool)(context),
|
|
86
|
-
'get-execution': (0, get_execution_tool_1.createGetExecutionTool)(context),
|
|
87
|
-
'debug-execution': (0, debug_execution_tool_1.createDebugExecutionTool)(context),
|
|
88
|
-
'get-node-output': (0, get_node_output_tool_1.createGetNodeOutputTool)(context),
|
|
89
|
-
'stop-execution': (0, stop_execution_tool_1.createStopExecutionTool)(context),
|
|
90
|
-
'list-credentials': (0, list_credentials_tool_1.createListCredentialsTool)(context),
|
|
91
|
-
'get-credential': (0, get_credential_tool_1.createGetCredentialTool)(context),
|
|
92
|
-
'delete-credential': (0, delete_credential_tool_1.createDeleteCredentialTool)(context),
|
|
93
|
-
'search-credential-types': (0, search_credential_types_tool_1.createSearchCredentialTypesTool)(context),
|
|
94
|
-
'setup-credentials': (0, setup_credentials_tool_1.createSetupCredentialsTool)(context),
|
|
95
|
-
'test-credential': (0, test_credential_tool_1.createTestCredentialTool)(context),
|
|
96
|
-
'list-nodes': (0, list_nodes_tool_1.createListNodesTool)(context),
|
|
97
|
-
'get-node-description': (0, get_node_description_tool_1.createGetNodeDescriptionTool)(context),
|
|
98
|
-
'get-node-type-definition': (0, get_node_type_definition_tool_1.createGetNodeTypeDefinitionTool)(context),
|
|
99
|
-
'search-nodes': (0, search_nodes_tool_1.createSearchNodesTool)(context),
|
|
100
|
-
'get-suggested-nodes': (0, get_suggested_nodes_tool_1.createGetSuggestedNodesTool)(),
|
|
101
|
-
'explore-node-resources': (0, explore_node_resources_tool_1.createExploreNodeResourcesTool)(context),
|
|
102
|
-
'search-template-structures': (0, search_template_structures_tool_1.createSearchTemplateStructuresTool)(),
|
|
103
|
-
'search-template-parameters': (0, search_template_parameters_tool_1.createSearchTemplateParametersTool)(),
|
|
104
|
-
'get-best-practices': (0, get_best_practices_tool_1.createGetBestPracticesTool)(),
|
|
105
|
-
'list-data-tables': (0, list_data_tables_tool_1.createListDataTablesTool)(context),
|
|
106
|
-
'create-data-table': (0, create_data_table_tool_1.createCreateDataTableTool)(context),
|
|
107
|
-
'delete-data-table': (0, delete_data_table_tool_1.createDeleteDataTableTool)(context),
|
|
108
|
-
'get-data-table-schema': (0, get_data_table_schema_tool_1.createGetDataTableSchemaTool)(context),
|
|
109
|
-
'add-data-table-column': (0, add_data_table_column_tool_1.createAddDataTableColumnTool)(context),
|
|
110
|
-
'delete-data-table-column': (0, delete_data_table_column_tool_1.createDeleteDataTableColumnTool)(context),
|
|
111
|
-
'rename-data-table-column': (0, rename_data_table_column_tool_1.createRenameDataTableColumnTool)(context),
|
|
112
|
-
'query-data-table-rows': (0, query_data_table_rows_tool_1.createQueryDataTableRowsTool)(context),
|
|
113
|
-
'insert-data-table-rows': (0, insert_data_table_rows_tool_1.createInsertDataTableRowsTool)(context),
|
|
114
|
-
'update-data-table-rows': (0, update_data_table_rows_tool_1.createUpdateDataTableRowsTool)(context),
|
|
115
|
-
'delete-data-table-rows': (0, delete_data_table_rows_tool_1.createDeleteDataTableRowsTool)(context),
|
|
30
|
+
workflows: (0, workflows_tool_1.createWorkflowsTool)(context),
|
|
31
|
+
executions: (0, executions_tool_1.createExecutionsTool)(context),
|
|
32
|
+
credentials: (0, credentials_tool_1.createCredentialsTool)(context),
|
|
33
|
+
'data-tables': (0, data_tables_tool_1.createDataTablesTool)(context),
|
|
34
|
+
workspace: (0, workspace_tool_1.createWorkspaceTool)(context),
|
|
35
|
+
research: (0, research_tool_1.createResearchTool)(context),
|
|
36
|
+
nodes: (0, nodes_tool_1.createNodesTool)(context),
|
|
37
|
+
templates: (0, templates_tool_1.createTemplatesTool)(),
|
|
116
38
|
'ask-user': (0, ask_user_tool_1.createAskUserTool)(),
|
|
117
|
-
'
|
|
118
|
-
...(context.webResearchService?.search ? { 'web-search': (0, web_search_tool_1.createWebSearchTool)(context) } : {}),
|
|
119
|
-
...(context.workflowService.listVersions
|
|
120
|
-
? {
|
|
121
|
-
'list-workflow-versions': (0, list_workflow_versions_tool_1.createListWorkflowVersionsTool)(context),
|
|
122
|
-
'get-workflow-version': (0, get_workflow_version_tool_1.createGetWorkflowVersionTool)(context),
|
|
123
|
-
'restore-workflow-version': (0, restore_workflow_version_tool_1.createRestoreWorkflowVersionTool)(context),
|
|
124
|
-
}
|
|
125
|
-
: {}),
|
|
126
|
-
...(context.workflowService.updateVersion
|
|
127
|
-
? { 'update-workflow-version': (0, update_workflow_version_tool_1.createUpdateWorkflowVersionTool)(context) }
|
|
128
|
-
: {}),
|
|
129
|
-
...(context.workspaceService
|
|
130
|
-
? {
|
|
131
|
-
'list-projects': (0, list_projects_tool_1.createListProjectsTool)(context),
|
|
132
|
-
'tag-workflow': (0, tag_workflow_tool_1.createTagWorkflowTool)(context),
|
|
133
|
-
'list-tags': (0, list_tags_tool_1.createListTagsTool)(context),
|
|
134
|
-
'cleanup-test-executions': (0, cleanup_test_executions_tool_1.createCleanupTestExecutionsTool)(context),
|
|
135
|
-
...(context.workspaceService.listFolders
|
|
136
|
-
? {
|
|
137
|
-
'list-folders': (0, list_folders_tool_1.createListFoldersTool)(context),
|
|
138
|
-
'create-folder': (0, create_folder_tool_1.createCreateFolderTool)(context),
|
|
139
|
-
'delete-folder': (0, delete_folder_tool_1.createDeleteFolderTool)(context),
|
|
140
|
-
'move-workflow-to-folder': (0, move_workflow_to_folder_tool_1.createMoveWorkflowToFolderTool)(context),
|
|
141
|
-
}
|
|
142
|
-
: {}),
|
|
143
|
-
}
|
|
144
|
-
: {}),
|
|
39
|
+
'build-workflow': (0, build_workflow_tool_1.createBuildWorkflowTool)(context),
|
|
145
40
|
...(context.localMcpServer ? (0, create_tools_from_mcp_server_1.createToolsFromLocalMcpServer)(context.localMcpServer) : {}),
|
|
146
41
|
...(context.currentUserAttachments?.some(structured_file_parser_1.isStructuredAttachment)
|
|
147
42
|
? { 'parse-file': (0, parse_file_tool_1.createParseFileTool)(context) }
|
|
148
43
|
: {}),
|
|
149
44
|
};
|
|
150
45
|
}
|
|
46
|
+
function createOrchestratorDomainTools(context) {
|
|
47
|
+
return {
|
|
48
|
+
workflows: (0, workflows_tool_1.createWorkflowsTool)(context, 'orchestrator'),
|
|
49
|
+
executions: (0, executions_tool_1.createExecutionsTool)(context),
|
|
50
|
+
credentials: (0, credentials_tool_1.createCredentialsTool)(context),
|
|
51
|
+
'data-tables': (0, data_tables_tool_1.createDataTablesTool)(context, 'orchestrator'),
|
|
52
|
+
workspace: (0, workspace_tool_1.createWorkspaceTool)(context),
|
|
53
|
+
research: (0, research_tool_1.createResearchTool)(context),
|
|
54
|
+
nodes: (0, nodes_tool_1.createNodesTool)(context, 'orchestrator'),
|
|
55
|
+
templates: (0, templates_tool_1.createTemplatesTool)(),
|
|
56
|
+
'ask-user': (0, ask_user_tool_1.createAskUserTool)(),
|
|
57
|
+
...(context.localMcpServer ? (0, create_tools_from_mcp_server_1.createToolsFromLocalMcpServer)(context.localMcpServer) : {}),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
151
60
|
function createOrchestrationTools(context) {
|
|
152
61
|
return {
|
|
153
|
-
'create-tasks': (0, plan_tool_1.createPlanTool)(context),
|
|
154
62
|
plan: (0, plan_with_agent_tool_1.createPlanWithAgentTool)(context),
|
|
155
|
-
'
|
|
63
|
+
'create-tasks': (0, plan_tool_1.createPlanTool)(context),
|
|
64
|
+
'task-control': (0, task_control_tool_1.createTaskControlTool)(context),
|
|
156
65
|
delegate: (0, delegate_tool_1.createDelegateTool)(context),
|
|
157
66
|
'build-workflow-with-agent': (0, build_workflow_agent_tool_1.createBuildWorkflowAgentTool)(context),
|
|
158
|
-
...(context.cancelBackgroundTask
|
|
159
|
-
? { 'cancel-background-task': (0, cancel_background_task_tool_1.createCancelBackgroundTaskTool)(context) }
|
|
160
|
-
: {}),
|
|
161
|
-
...(context.sendCorrectionToTask
|
|
162
|
-
? { 'correct-background-task': (0, correct_background_task_tool_1.createCorrectBackgroundTaskTool)(context) }
|
|
163
|
-
: {}),
|
|
164
67
|
...(context.browserMcpConfig || hasGatewayBrowserTools(context)
|
|
165
68
|
? {
|
|
166
69
|
'browser-credential-setup': (0, browser_credential_setup_tool_1.createBrowserCredentialSetupTool)(context),
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { InstanceAiContext } from '../types';
|
|
2
|
+
export declare function createNodesTool(context: InstanceAiContext, surface?: 'full' | 'orchestrator'): import("@mastra/core/tools").Tool<InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, InferPublicSchema<T>, import("@mastra/core/tools").ToolExecutionContext<InferPublicSchema<T>, InferPublicSchema<T>, unknown>, "nodes", unknown>;
|