@n8n/instance-ai 1.10.1 → 1.11.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/README.md +128 -0
- package/dist/agent/instance-agent.js +8 -0
- package/dist/agent/instance-agent.js.map +1 -1
- package/dist/agent/shared-prompts.d.ts +1 -0
- package/dist/agent/shared-prompts.js +25 -0
- package/dist/agent/shared-prompts.js.map +1 -1
- package/dist/agent/sub-agent-debriefing.d.ts +8 -8
- package/dist/agent/system-prompt.d.ts +2 -0
- package/dist/agent/system-prompt.js +52 -93
- package/dist/agent/system-prompt.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/constants/max-steps.d.ts +0 -1
- package/dist/constants/max-steps.js +0 -1
- package/dist/constants/max-steps.js.map +1 -1
- package/dist/index.d.ts +123 -33
- package/dist/index.js +103 -96
- package/dist/index.js.map +1 -1
- package/dist/knowledge-base/build-templates-index.d.ts +12 -0
- package/dist/knowledge-base/build-templates-index.js +113 -0
- package/dist/knowledge-base/build-templates-index.js.map +1 -0
- package/dist/knowledge-base/extract-builder-templates-archive.d.ts +2 -0
- package/dist/knowledge-base/extract-builder-templates-archive.js +89 -0
- package/dist/knowledge-base/extract-builder-templates-archive.js.map +1 -0
- package/dist/knowledge-base/materialize-knowledge-base.d.ts +67 -0
- package/dist/knowledge-base/materialize-knowledge-base.js +186 -0
- package/dist/knowledge-base/materialize-knowledge-base.js.map +1 -0
- package/dist/mcp/mcp-client-manager.js +6 -1
- package/dist/mcp/mcp-client-manager.js.map +1 -1
- package/dist/parsers/pdf-parser.js +4 -0
- package/dist/parsers/pdf-parser.js.map +1 -1
- package/dist/planned-tasks/planned-task-service.d.ts +5 -1
- package/dist/planned-tasks/planned-task-service.js +29 -1
- package/dist/planned-tasks/planned-task-service.js.map +1 -1
- package/dist/runtime/run-state-registry.d.ts +8 -0
- package/dist/runtime/run-state-registry.js.map +1 -1
- package/dist/runtime/terminal-response-guard.d.ts +2 -1
- package/dist/runtime/terminal-response-guard.js +20 -0
- package/dist/runtime/terminal-response-guard.js.map +1 -1
- package/dist/skills/materialize-runtime-skills.d.ts +1 -7
- package/dist/skills/materialize-runtime-skills.js +96 -176
- package/dist/skills/materialize-runtime-skills.js.map +1 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/planned-task-storage.js +1 -0
- package/dist/storage/planned-task-storage.js.map +1 -1
- package/dist/storage/terminal-outcome-storage.d.ts +2 -2
- package/dist/storage/workflow-loop-storage.d.ts +199 -70
- package/dist/storage/workflow-loop-storage.js +107 -0
- package/dist/storage/workflow-loop-storage.js.map +1 -1
- package/dist/stream/work-summary-accumulator.d.ts +6 -6
- package/dist/tools/attachments/parse-file.tool.d.ts +18 -18
- package/dist/tools/credentials.tool.d.ts +2 -5
- package/dist/tools/credentials.tool.js +2 -6
- package/dist/tools/credentials.tool.js.map +1 -1
- package/dist/tools/executions.tool.js +53 -7
- package/dist/tools/executions.tool.js.map +1 -1
- package/dist/tools/index.js +3 -9
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/nodes/node-search-engine.d.ts +2 -0
- package/dist/tools/nodes/node-search-engine.js +66 -7
- package/dist/tools/nodes/node-search-engine.js.map +1 -1
- package/dist/tools/nodes.tool.js +10 -3
- package/dist/tools/nodes.tool.js.map +1 -1
- package/dist/tools/orchestration/complete-checkpoint.tool.js +69 -0
- package/dist/tools/orchestration/complete-checkpoint.tool.js.map +1 -1
- package/dist/tools/orchestration/delegate.schemas.d.ts +5 -5
- package/dist/tools/orchestration/delegate.tool.js +1 -1
- package/dist/tools/orchestration/delegate.tool.js.map +1 -1
- package/dist/tools/orchestration/plan.tool.js +96 -60
- package/dist/tools/orchestration/plan.tool.js.map +1 -1
- package/dist/tools/orchestration/report-verification-verdict.tool.d.ts +9 -6
- package/dist/tools/orchestration/report-verification-verdict.tool.js +6 -1
- package/dist/tools/orchestration/report-verification-verdict.tool.js.map +1 -1
- package/dist/tools/orchestration/verify-built-workflow.tool.js +3 -2
- package/dist/tools/orchestration/verify-built-workflow.tool.js.map +1 -1
- package/dist/tools/tool-ids.d.ts +0 -5
- package/dist/tools/tool-ids.js +3 -7
- package/dist/tools/tool-ids.js.map +1 -1
- package/dist/tools/workflows/build-workflow.tool.d.ts +8 -2
- package/dist/tools/workflows/build-workflow.tool.js +371 -17
- 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/materialize-node-type.tool.js +2 -2
- package/dist/tools/workflows/materialize-node-type.tool.js.map +1 -1
- package/dist/tools/workflows/setup-workflow.schema.d.ts +32 -32
- package/dist/tools/workflows/submit-workflow.tool.d.ts +16 -12
- package/dist/tools/workflows/submit-workflow.tool.js +9 -2
- package/dist/tools/workflows/submit-workflow.tool.js.map +1 -1
- package/dist/tools/workflows/write-sandbox-file.tool.js +2 -2
- package/dist/tools/workflows/write-sandbox-file.tool.js.map +1 -1
- package/dist/tools/workflows.tool.js +5 -0
- package/dist/tools/workflows.tool.js.map +1 -1
- package/dist/tracing/langsmith-tracing.js +6 -1
- package/dist/tracing/langsmith-tracing.js.map +1 -1
- package/dist/tracing/trace-payloads.js +2 -6
- package/dist/tracing/trace-payloads.js.map +1 -1
- package/dist/types.d.ts +48 -9
- package/dist/types.js.map +1 -1
- package/dist/workflow-builder/build-failure-tracker.d.ts +10 -0
- package/dist/workflow-builder/build-failure-tracker.js +36 -0
- package/dist/workflow-builder/build-failure-tracker.js.map +1 -0
- package/dist/workflow-builder/index.d.ts +1 -0
- package/dist/workflow-builder/index.js +4 -1
- package/dist/workflow-builder/index.js.map +1 -1
- package/dist/workflow-loop/guidance.js +10 -6
- package/dist/workflow-loop/guidance.js.map +1 -1
- package/dist/workflow-loop/index.d.ts +3 -2
- package/dist/workflow-loop/index.js +14 -1
- package/dist/workflow-loop/index.js.map +1 -1
- package/dist/workflow-loop/runtime.js +3 -1
- package/dist/workflow-loop/runtime.js.map +1 -1
- package/dist/workflow-loop/verification-obligation.d.ts +15 -0
- package/dist/workflow-loop/verification-obligation.js +140 -0
- package/dist/workflow-loop/verification-obligation.js.map +1 -0
- package/dist/workflow-loop/workflow-loop-controller.js +26 -1
- package/dist/workflow-loop/workflow-loop-controller.js.map +1 -1
- package/dist/workflow-loop/workflow-loop-state.d.ts +416 -62
- package/dist/workflow-loop/workflow-loop-state.js +66 -1
- package/dist/workflow-loop/workflow-loop-state.js.map +1 -1
- package/dist/workspace/builder-templates-service.js.map +1 -1
- package/dist/workspace/compute-workspace-content-hash.d.ts +1 -0
- package/dist/workspace/compute-workspace-content-hash.js +15 -0
- package/dist/workspace/compute-workspace-content-hash.js.map +1 -0
- package/dist/workspace/create-workspace.d.ts +9 -43
- package/dist/workspace/create-workspace.js +45 -55
- package/dist/workspace/create-workspace.js.map +1 -1
- package/dist/workspace/lazy-runtime-workspace.js +1 -1
- package/dist/workspace/lazy-runtime-workspace.js.map +1 -1
- package/dist/workspace/prebaked-workspace-bundle.d.ts +39 -0
- package/dist/workspace/prebaked-workspace-bundle.js +75 -0
- package/dist/workspace/prebaked-workspace-bundle.js.map +1 -0
- package/dist/workspace/sandbox-fs.d.ts +9 -24
- package/dist/workspace/sandbox-fs.js +2 -16
- package/dist/workspace/sandbox-fs.js.map +1 -1
- package/dist/workspace/sandbox-setup.d.ts +1 -7
- package/dist/workspace/sandbox-setup.js +28 -170
- package/dist/workspace/sandbox-setup.js.map +1 -1
- package/dist/workspace/snapshot-image-context.d.ts +5 -0
- package/dist/workspace/snapshot-image-context.js +36 -0
- package/dist/workspace/snapshot-image-context.js.map +1 -0
- package/dist/workspace/snapshot-manager.d.ts +9 -9
- package/dist/workspace/snapshot-manager.js +57 -67
- package/dist/workspace/snapshot-manager.js.map +1 -1
- package/dist/workspace/template-telemetry.js +4 -4
- package/dist/workspace/template-telemetry.js.map +1 -1
- package/dist/workspace/workspace-file-content.d.ts +2 -0
- package/dist/workspace/workspace-file-content.js +11 -0
- package/dist/workspace/workspace-file-content.js.map +1 -0
- package/dist/workspace/workspace-files.d.ts +20 -0
- package/dist/workspace/workspace-files.js +74 -0
- package/dist/workspace/workspace-files.js.map +1 -0
- package/dist/workspace/workspace-manifest.d.ts +12 -0
- package/dist/workspace/workspace-manifest.js +28 -0
- package/dist/workspace/workspace-manifest.js.map +1 -0
- package/package.json +21 -15
- package/skills/data-table-manager/SKILL.md +6 -6
- package/skills/debugging-executions/SKILL.md +44 -0
- package/skills/planned-task-runtime/SKILL.md +163 -0
- package/skills/planning/SKILL.md +137 -0
- package/skills/post-build-flow/SKILL.md +119 -0
- package/skills/post-build-flow/references/trigger-input-data-shapes.md +38 -0
- package/skills/workflow-builder/SKILL.md +608 -0
- package/dist/tools/best-practices/index.d.ts +0 -2
- package/dist/tools/best-practices/index.js +0 -10
- package/dist/tools/best-practices/index.js.map +0 -1
- package/dist/tools/best-practices/techniques.d.ts +0 -1
- package/dist/tools/best-practices/techniques.js +0 -7
- package/dist/tools/best-practices/techniques.js.map +0 -1
- package/dist/tools/orchestration/add-plan-item.tool.d.ts +0 -5
- package/dist/tools/orchestration/add-plan-item.tool.js +0 -89
- package/dist/tools/orchestration/add-plan-item.tool.js.map +0 -1
- package/dist/tools/orchestration/blueprint-accumulator.d.ts +0 -49
- package/dist/tools/orchestration/blueprint-accumulator.js +0 -176
- package/dist/tools/orchestration/blueprint-accumulator.js.map +0 -1
- package/dist/tools/orchestration/blueprint.schema.d.ts +0 -182
- package/dist/tools/orchestration/blueprint.schema.js +0 -56
- package/dist/tools/orchestration/blueprint.schema.js.map +0 -1
- package/dist/tools/orchestration/build-workflow-agent.prompt.d.ts +0 -8
- package/dist/tools/orchestration/build-workflow-agent.prompt.js +0 -466
- package/dist/tools/orchestration/build-workflow-agent.prompt.js.map +0 -1
- package/dist/tools/orchestration/build-workflow-agent.tool.d.ts +0 -148
- package/dist/tools/orchestration/build-workflow-agent.tool.js +0 -1498
- package/dist/tools/orchestration/build-workflow-agent.tool.js.map +0 -1
- package/dist/tools/orchestration/builder-memory-compaction.d.ts +0 -42
- package/dist/tools/orchestration/builder-memory-compaction.js +0 -132
- package/dist/tools/orchestration/builder-memory-compaction.js.map +0 -1
- package/dist/tools/orchestration/plan-agent-prompt.d.ts +0 -1
- package/dist/tools/orchestration/plan-agent-prompt.js +0 -83
- package/dist/tools/orchestration/plan-agent-prompt.js.map +0 -1
- package/dist/tools/orchestration/plan-with-agent.tool.d.ts +0 -27
- package/dist/tools/orchestration/plan-with-agent.tool.js +0 -710
- package/dist/tools/orchestration/plan-with-agent.tool.js.map +0 -1
- package/dist/tools/orchestration/submit-plan.tool.d.ts +0 -3
- package/dist/tools/orchestration/submit-plan.tool.js +0 -98
- package/dist/tools/orchestration/submit-plan.tool.js.map +0 -1
- package/dist/tools/templates.tool.d.ts +0 -1
- package/dist/tools/templates.tool.js +0 -58
- package/dist/tools/templates.tool.js.map +0 -1
- package/dist/workspace/daytona-auth-manager.d.ts +0 -26
- package/dist/workspace/daytona-auth-manager.js +0 -90
- package/dist/workspace/daytona-auth-manager.js.map +0 -1
- package/dist/workspace/daytona-filesystem.d.ts +0 -25
- package/dist/workspace/daytona-filesystem.js +0 -132
- package/dist/workspace/daytona-filesystem.js.map +0 -1
- package/dist/workspace/daytona-sandbox.d.ts +0 -71
- package/dist/workspace/daytona-sandbox.js +0 -368
- package/dist/workspace/daytona-sandbox.js.map +0 -1
- package/dist/workspace/lazy-daytona.d.ts +0 -2
- package/dist/workspace/lazy-daytona.js +0 -12
- package/dist/workspace/lazy-daytona.js.map +0 -1
- package/dist/workspace/local-filesystem.d.ts +0 -48
- package/dist/workspace/local-filesystem.js +0 -250
- package/dist/workspace/local-filesystem.js.map +0 -1
- package/dist/workspace/local-sandbox.d.ts +0 -28
- package/dist/workspace/local-sandbox.js +0 -121
- package/dist/workspace/local-sandbox.js.map +0 -1
- package/dist/workspace/n8n-sandbox-filesystem.d.ts +0 -25
- package/dist/workspace/n8n-sandbox-filesystem.js +0 -128
- package/dist/workspace/n8n-sandbox-filesystem.js.map +0 -1
- package/dist/workspace/n8n-sandbox-sandbox.d.ts +0 -35
- package/dist/workspace/n8n-sandbox-sandbox.js +0 -143
- package/dist/workspace/n8n-sandbox-sandbox.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"max-steps.js","sourceRoot":"","sources":["../../src/constants/max-steps.ts"],"names":[],"mappings":";;;AAMa,QAAA,SAAS,GAAG;IAExB,YAAY,EAAE,GAAG;IAEjB,OAAO,EAAE,GAAG;IAEZ,OAAO,EAAE,EAAE;IAEX,UAAU,EAAE,EAAE;IAEd,
|
|
1
|
+
{"version":3,"file":"max-steps.js","sourceRoot":"","sources":["../../src/constants/max-steps.ts"],"names":[],"mappings":";;;AAMa,QAAA,SAAS,GAAG;IAExB,YAAY,EAAE,GAAG;IAEjB,OAAO,EAAE,GAAG;IAEZ,OAAO,EAAE,EAAE;IAEX,UAAU,EAAE,EAAE;IAEd,QAAQ,EAAE,EAAE;IAEZ,iBAAiB,EAAE,EAAE;CACZ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,46 @@
|
|
|
1
|
+
import type * as SharedSandboxMod from '@n8n/agents/sandbox';
|
|
1
2
|
import './source-map-filter';
|
|
2
3
|
import type * as InstanceAgentMod from './agent/instance-agent';
|
|
3
4
|
import type * as SubAgentFactoryMod from './agent/sub-agent-factory';
|
|
5
|
+
import type * as DomainAccessMod from './domain-access';
|
|
4
6
|
import type * as McpClientManagerMod from './mcp/mcp-client-manager';
|
|
5
7
|
import type * as TitleUtilsMod from './memory/title-utils';
|
|
8
|
+
import type * as StructuredFileParserMod from './parsers/structured-file-parser';
|
|
9
|
+
import type * as ValidateAttachmentsMod from './parsers/validate-attachments';
|
|
10
|
+
import type * as PlannedTaskPermissionsMod from './planned-tasks/planned-task-permissions';
|
|
11
|
+
import type * as PlannedTaskServiceMod from './planned-tasks/planned-task-service';
|
|
12
|
+
import type * as BackgroundTaskManagerMod from './runtime/background-task-manager';
|
|
13
|
+
import type * as LivenessPolicyMod from './runtime/liveness-policy';
|
|
14
|
+
import type * as ResumableStreamExecutorMod from './runtime/resumable-stream-executor';
|
|
15
|
+
import type * as RunStateRegistryMod from './runtime/run-state-registry';
|
|
16
|
+
import type * as StreamRunnerMod from './runtime/stream-runner';
|
|
17
|
+
import type * as TerminalResponseGuardMod from './runtime/terminal-response-guard';
|
|
6
18
|
import type * as MaterializeRuntimeSkillsMod from './skills/materialize-runtime-skills';
|
|
7
19
|
import type * as RuntimeSkillsMod from './skills/runtime-skills';
|
|
8
|
-
import type * as
|
|
9
|
-
import type * as
|
|
20
|
+
import type * as StorageMod from './storage';
|
|
21
|
+
import type * as MapChunkMod from './stream/map-chunk';
|
|
22
|
+
import type * as ToolsMod from './tools';
|
|
23
|
+
import type * as AgentPersistenceMod from './tools/orchestration/agent-persistence';
|
|
10
24
|
import type * as DelegateToolMod from './tools/orchestration/delegate.tool';
|
|
25
|
+
import type * as SanitizeWebContentMod from './tools/web-research/sanitize-web-content';
|
|
11
26
|
import type * as LangsmithTracingMod from './tracing/langsmith-tracing';
|
|
27
|
+
import type * as TraceReplayMod from './tracing/trace-replay';
|
|
28
|
+
import type * as AgentTreeMod from './utils/agent-tree';
|
|
12
29
|
import type * as EvalAgentsMod from './utils/eval-agents';
|
|
30
|
+
import type * as StreamHelpersMod from './utils/stream-helpers';
|
|
31
|
+
import type * as WorkflowLoopMod from './workflow-loop';
|
|
32
|
+
import type * as WorkflowLoopRuntimeMod from './workflow-loop/runtime';
|
|
13
33
|
import type * as BuilderTemplatesServiceMod from './workspace/builder-templates-service';
|
|
14
34
|
import type * as CreateWorkspaceMod from './workspace/create-workspace';
|
|
35
|
+
import type * as LazyRuntimeWorkspaceMod from './workspace/lazy-runtime-workspace';
|
|
36
|
+
import type * as SandboxSetupMod from './workspace/sandbox-setup';
|
|
37
|
+
import type * as ScopedWorkspaceMod from './workspace/scoped-workspace';
|
|
38
|
+
import type * as SnapshotManagerMod from './workspace/snapshot-manager';
|
|
15
39
|
export { MAX_STEPS } from './constants/max-steps';
|
|
16
40
|
export type { AgentDbMessage, AgentMessage, BuiltMemory, CheckpointStore, ContentToolCall, MessageContent, SerializableAgentState, Thread, } from '@n8n/agents';
|
|
17
|
-
export
|
|
41
|
+
export declare const wrapUntrustedData: typeof SanitizeWebContentMod.wrapUntrustedData;
|
|
18
42
|
export type { Logger } from './logger';
|
|
19
|
-
export
|
|
43
|
+
export declare const createDomainAccessTracker: typeof DomainAccessMod.createDomainAccessTracker;
|
|
20
44
|
export type { DomainAccessTracker } from './domain-access';
|
|
21
45
|
export type { SubmitLangsmithUserFeedbackOptions } from './tracing/langsmith-tracing';
|
|
22
46
|
export declare const appendGeneratedWorkflowIdToRootMetadata: typeof LangsmithTracingMod.appendGeneratedWorkflowIdToRootMetadata;
|
|
@@ -28,7 +52,14 @@ export declare const continueInstanceAiTraceContext: typeof LangsmithTracingMod.
|
|
|
28
52
|
export declare const releaseTraceClient: typeof LangsmithTracingMod.releaseTraceClient;
|
|
29
53
|
export declare const submitLangsmithUserFeedback: typeof LangsmithTracingMod.submitLangsmithUserFeedback;
|
|
30
54
|
export declare const withCurrentTraceSpan: typeof LangsmithTracingMod.withCurrentTraceSpan;
|
|
31
|
-
export
|
|
55
|
+
export type IdRemapper = TraceReplayMod.IdRemapper;
|
|
56
|
+
export declare const IdRemapper: typeof TraceReplayMod.IdRemapper;
|
|
57
|
+
export type TraceIndex = TraceReplayMod.TraceIndex;
|
|
58
|
+
export declare const TraceIndex: typeof TraceReplayMod.TraceIndex;
|
|
59
|
+
export type TraceWriter = TraceReplayMod.TraceWriter;
|
|
60
|
+
export declare const TraceWriter: typeof TraceReplayMod.TraceWriter;
|
|
61
|
+
export declare const parseTraceJsonl: typeof TraceReplayMod.parseTraceJsonl;
|
|
62
|
+
export declare const PURE_REPLAY_TOOLS: typeof TraceReplayMod.PURE_REPLAY_TOOLS;
|
|
32
63
|
export type { TraceEvent, TraceHeader, TraceToolCall, TraceToolSuspend, TraceToolResume, } from './tracing/trace-replay';
|
|
33
64
|
export type { SubAgentOptions } from './agent/sub-agent-factory';
|
|
34
65
|
export declare const INSTANCE_AI_SKILLS_DIR: typeof RuntimeSkillsMod.INSTANCE_AI_SKILLS_DIR;
|
|
@@ -37,7 +68,7 @@ export declare const loadInstanceAiRuntimeSkillSource: typeof RuntimeSkillsMod.l
|
|
|
37
68
|
export declare const createLazyWorkspaceRuntimeSkillSource: typeof MaterializeRuntimeSkillsMod.createLazyWorkspaceRuntimeSkillSource;
|
|
38
69
|
export declare const buildRuntimeSkillWorkspaceBundle: typeof MaterializeRuntimeSkillsMod.buildRuntimeSkillWorkspaceBundle;
|
|
39
70
|
export declare const materializeRuntimeSkillsIntoWorkspace: typeof MaterializeRuntimeSkillsMod.materializeRuntimeSkillsIntoWorkspace;
|
|
40
|
-
export declare const
|
|
71
|
+
export declare const loadPrebakedRuntimeSkillsBundle: typeof MaterializeRuntimeSkillsMod.loadPrebakedRuntimeSkillsBundle;
|
|
41
72
|
export declare const SANDBOX_RUNTIME_SKILLS_DIR: typeof MaterializeRuntimeSkillsMod.SANDBOX_RUNTIME_SKILLS_DIR;
|
|
42
73
|
export declare const SANDBOX_RUNTIME_SKILL_REGISTRY_FILE: typeof MaterializeRuntimeSkillsMod.SANDBOX_RUNTIME_SKILL_REGISTRY_FILE;
|
|
43
74
|
export declare const RUNTIME_SKILL_MANIFEST_FILE: typeof MaterializeRuntimeSkillsMod.RUNTIME_SKILL_MANIFEST_FILE;
|
|
@@ -48,19 +79,35 @@ export declare const N8N_WORKSPACE_DIR_ENV: typeof MaterializeRuntimeSkillsMod.N
|
|
|
48
79
|
export type { MaterializedRuntimeSkill, MaterializedRuntimeSkills, RuntimeSkillWorkspaceBundle, RuntimeSkillWorkspaceManifest, } from './skills/materialize-runtime-skills';
|
|
49
80
|
export declare const createInstanceAgent: typeof InstanceAgentMod.createInstanceAgent;
|
|
50
81
|
export declare const createSubAgent: typeof SubAgentFactoryMod.createSubAgent;
|
|
51
|
-
export
|
|
52
|
-
export
|
|
53
|
-
export declare const
|
|
54
|
-
export declare const
|
|
82
|
+
export declare const createAllTools: typeof ToolsMod.createAllTools;
|
|
83
|
+
export declare const createOrchestrationTools: typeof ToolsMod.createOrchestrationTools;
|
|
84
|
+
export declare const createSubAgentResourceId: typeof AgentPersistenceMod.createSubAgentResourceId;
|
|
85
|
+
export declare const createSubAgentResourceIdPrefix: typeof AgentPersistenceMod.createSubAgentResourceIdPrefix;
|
|
86
|
+
export declare const SUB_AGENT_RESOURCE_PREFIX: typeof AgentPersistenceMod.SUB_AGENT_RESOURCE_PREFIX;
|
|
55
87
|
export declare const startDetachedDelegateTask: typeof DelegateToolMod.startDetachedDelegateTask;
|
|
56
|
-
export
|
|
57
|
-
export
|
|
88
|
+
export declare const iterationEntrySchema: typeof StorageMod.iterationEntrySchema;
|
|
89
|
+
export declare const formatPreviousAttempts: typeof StorageMod.formatPreviousAttempts;
|
|
90
|
+
export type ThreadIterationLogStorage = StorageMod.ThreadIterationLogStorage;
|
|
91
|
+
export declare const ThreadIterationLogStorage: typeof StorageMod.ThreadIterationLogStorage;
|
|
92
|
+
export type ThreadTaskStorage = StorageMod.ThreadTaskStorage;
|
|
93
|
+
export declare const ThreadTaskStorage: typeof StorageMod.ThreadTaskStorage;
|
|
94
|
+
export type PlannedTaskStorage = StorageMod.PlannedTaskStorage;
|
|
95
|
+
export declare const PlannedTaskStorage: typeof StorageMod.PlannedTaskStorage;
|
|
96
|
+
export declare const getThread: typeof StorageMod.getThread;
|
|
97
|
+
export type TerminalOutcomeStorage = StorageMod.TerminalOutcomeStorage;
|
|
98
|
+
export declare const TerminalOutcomeStorage: typeof StorageMod.TerminalOutcomeStorage;
|
|
99
|
+
export declare const patchThread: typeof StorageMod.patchThread;
|
|
100
|
+
export type WorkflowLoopStorage = StorageMod.WorkflowLoopStorage;
|
|
101
|
+
export declare const WorkflowLoopStorage: typeof StorageMod.WorkflowLoopStorage;
|
|
102
|
+
export type { AgentTreeSnapshot, IterationEntry, IterationLog, PatchableThreadMemory, ThreadPatch, TerminalOutcome, WorkflowSetupRoutingClaim, WorkflowLoopWorkItemRecord, } from './storage';
|
|
58
103
|
export declare const truncateToTitle: typeof TitleUtilsMod.truncateToTitle;
|
|
59
104
|
export declare const generateTitleForRun: typeof TitleUtilsMod.generateTitleForRun;
|
|
60
105
|
export type McpClientManager = McpClientManagerMod.McpClientManager;
|
|
61
106
|
export declare const McpClientManager: typeof McpClientManagerMod.McpClientManager;
|
|
62
|
-
export
|
|
63
|
-
export
|
|
107
|
+
export declare const mapAgentChunkToEvent: typeof MapChunkMod.mapAgentChunkToEvent;
|
|
108
|
+
export declare const isRecord: typeof StreamHelpersMod.isRecord;
|
|
109
|
+
export declare const parseSuspension: typeof StreamHelpersMod.parseSuspension;
|
|
110
|
+
export declare const asResumable: typeof StreamHelpersMod.asResumable;
|
|
64
111
|
export declare const createEvalAgent: typeof EvalAgentsMod.createEvalAgent;
|
|
65
112
|
export declare const extractText: typeof EvalAgentsMod.extractText;
|
|
66
113
|
export type Tool = EvalAgentsMod.Tool;
|
|
@@ -68,39 +115,82 @@ export declare const Tool: typeof EvalAgentsMod.Tool;
|
|
|
68
115
|
export declare const SONNET_MODEL: typeof EvalAgentsMod.SONNET_MODEL;
|
|
69
116
|
export declare const HAIKU_MODEL: typeof EvalAgentsMod.HAIKU_MODEL;
|
|
70
117
|
export type { SuspensionInfo, Resumable } from './utils/stream-helpers';
|
|
71
|
-
export
|
|
118
|
+
export declare const buildAgentTreeFromEvents: typeof AgentTreeMod.buildAgentTreeFromEvents;
|
|
119
|
+
export declare const findAgentNodeInTree: typeof AgentTreeMod.findAgentNodeInTree;
|
|
72
120
|
export type { SandboxConfig } from './workspace/create-workspace';
|
|
73
|
-
export
|
|
121
|
+
export declare const createLazyRuntimeWorkspace: typeof LazyRuntimeWorkspaceMod.createLazyRuntimeWorkspace;
|
|
74
122
|
export type { RuntimeWorkspaceResolver } from './workspace/lazy-runtime-workspace';
|
|
75
|
-
export
|
|
123
|
+
export declare const getWorkspaceRoot: typeof SharedSandboxMod.getWorkspaceRoot;
|
|
124
|
+
export declare const getPromptWorkspaceRoot: typeof SharedSandboxMod.getPromptWorkspaceRoot;
|
|
125
|
+
export declare const setupSandboxWorkspace: typeof SandboxSetupMod.setupSandboxWorkspace;
|
|
126
|
+
export type BuilderTemplatesService = BuilderTemplatesServiceMod.BuilderTemplatesService;
|
|
127
|
+
export declare const createScopedWorkspace: typeof ScopedWorkspaceMod.createScopedWorkspace;
|
|
76
128
|
export declare const BuilderTemplatesService: typeof BuilderTemplatesServiceMod.BuilderTemplatesService;
|
|
77
129
|
export declare const builderTemplatesOptionsFromEnv: typeof BuilderTemplatesServiceMod.builderTemplatesOptionsFromEnv;
|
|
78
130
|
export type { BuilderTemplatesBundle, BuilderTemplatesServiceOptions, } from './workspace/builder-templates-service';
|
|
79
131
|
export declare const createSandbox: typeof CreateWorkspaceMod.createSandbox;
|
|
80
132
|
export declare const createWorkspace: typeof CreateWorkspaceMod.createWorkspace;
|
|
81
|
-
export
|
|
133
|
+
export type SnapshotManager = SnapshotManagerMod.SnapshotManager;
|
|
134
|
+
export declare const SnapshotManager: typeof SnapshotManagerMod.SnapshotManager;
|
|
82
135
|
export type { InstanceAiEventBus, StoredEvent } from './event-bus';
|
|
83
|
-
export
|
|
136
|
+
export type BackgroundTaskManager = BackgroundTaskManagerMod.BackgroundTaskManager;
|
|
137
|
+
export declare const BackgroundTaskManager: typeof BackgroundTaskManagerMod.BackgroundTaskManager;
|
|
138
|
+
export declare const enrichMessageWithRunningTasks: typeof BackgroundTaskManagerMod.enrichMessageWithRunningTasks;
|
|
139
|
+
export declare const enrichMessageWithBackgroundTasks: typeof BackgroundTaskManagerMod.enrichMessageWithRunningTasks;
|
|
84
140
|
export type { BackgroundTaskStatus, ManagedBackgroundTask, SpawnManagedBackgroundTaskOptions, } from './runtime/background-task-manager';
|
|
85
|
-
export
|
|
141
|
+
export type RunStateRegistry = RunStateRegistryMod.RunStateRegistry;
|
|
142
|
+
export declare const RunStateRegistry: typeof RunStateRegistryMod.RunStateRegistry;
|
|
86
143
|
export type { ActiveRunState, BackgroundTaskStatusSnapshot, ConfirmationData, PendingConfirmation, RunStateTimeoutDetails, StartedRunState, SuspendedRunState, } from './runtime/run-state-registry';
|
|
87
|
-
export
|
|
144
|
+
export type InstanceAiTerminalResponseGuard = TerminalResponseGuardMod.InstanceAiTerminalResponseGuard;
|
|
145
|
+
export declare const InstanceAiTerminalResponseGuard: typeof TerminalResponseGuardMod.InstanceAiTerminalResponseGuard;
|
|
88
146
|
export type { TerminalResponseDecision, TerminalResponseStatus, TerminalVisibilitySource, } from './runtime/terminal-response-guard';
|
|
89
|
-
export
|
|
147
|
+
export declare const executeResumableStream: typeof ResumableStreamExecutorMod.executeResumableStream;
|
|
90
148
|
export type { AutoResumeControl, ExecuteResumableStreamOptions, ExecuteResumableStreamResult, ManualSuspensionControl, ResumableStreamContext, ResumableStreamControl, ResumableStreamSource, } from './runtime/resumable-stream-executor';
|
|
91
149
|
export type { WorkSummary } from './stream/work-summary-accumulator';
|
|
92
|
-
export
|
|
93
|
-
export
|
|
150
|
+
export declare const resumeAgentRun: typeof StreamRunnerMod.resumeAgentRun;
|
|
151
|
+
export declare const streamAgentRun: typeof StreamRunnerMod.streamAgentRun;
|
|
152
|
+
export declare const createInstanceAiLivenessPolicyConfig: typeof LivenessPolicyMod.createInstanceAiLivenessPolicyConfig;
|
|
153
|
+
export declare const INSTANCE_AI_DEFAULT_LIVENESS_POLICY_CONFIG: typeof LivenessPolicyMod.INSTANCE_AI_DEFAULT_LIVENESS_POLICY_CONFIG;
|
|
154
|
+
export type InstanceAiLivenessPolicy = LivenessPolicyMod.InstanceAiLivenessPolicy;
|
|
155
|
+
export declare const InstanceAiLivenessPolicy: typeof LivenessPolicyMod.InstanceAiLivenessPolicy;
|
|
156
|
+
export type { InstanceAiLivenessDecision, InstanceAiLivenessInput, InstanceAiLivenessPolicyConfig, InstanceAiLivenessSurface, InstanceAiLivenessTimeoutReason, } from './runtime/liveness-policy';
|
|
94
157
|
export type { StreamableAgent, StreamRunOptions, StreamRunResult, } from './runtime/stream-runner';
|
|
95
|
-
export
|
|
96
|
-
export
|
|
97
|
-
export
|
|
98
|
-
export
|
|
99
|
-
export
|
|
100
|
-
export type
|
|
101
|
-
export
|
|
158
|
+
export declare const createWorkItem: typeof WorkflowLoopMod.createWorkItem;
|
|
159
|
+
export declare const formatWorkflowLoopGuidance: typeof WorkflowLoopMod.formatWorkflowLoopGuidance;
|
|
160
|
+
export declare const handleBuildOutcome: typeof WorkflowLoopMod.handleBuildOutcome;
|
|
161
|
+
export declare const handleVerificationVerdict: typeof WorkflowLoopMod.handleVerificationVerdict;
|
|
162
|
+
export declare const formatAttemptHistory: typeof WorkflowLoopMod.formatAttemptHistory;
|
|
163
|
+
export type WorkflowTaskCoordinator = WorkflowLoopMod.WorkflowTaskCoordinator;
|
|
164
|
+
export declare const WorkflowTaskCoordinator: typeof WorkflowLoopMod.WorkflowTaskCoordinator;
|
|
165
|
+
export declare const deriveWorkflowVerificationObligation: typeof WorkflowLoopMod.deriveWorkflowVerificationObligation;
|
|
166
|
+
export declare const deriveWorkflowVerificationObligationFromOutcome: typeof WorkflowLoopMod.deriveWorkflowVerificationObligationFromOutcome;
|
|
167
|
+
export declare const isWorkflowVerificationObligationUnsettled: typeof WorkflowLoopMod.isWorkflowVerificationObligationUnsettled;
|
|
168
|
+
export declare const resolveWorkflowBuildOwner: typeof WorkflowLoopMod.resolveWorkflowBuildOwner;
|
|
169
|
+
export declare const plannedTaskIdFromWorkflowBuildOwner: typeof WorkflowLoopMod.plannedTaskIdFromWorkflowBuildOwner;
|
|
170
|
+
export declare const isPlannedWorkflowBuildOwner: typeof WorkflowLoopMod.isPlannedWorkflowBuildOwner;
|
|
171
|
+
export declare const workflowBuildOutcomeSchema: typeof WorkflowLoopMod.workflowBuildOutcomeSchema;
|
|
172
|
+
export declare const workflowVerificationEvidenceSchema: typeof WorkflowLoopMod.workflowVerificationEvidenceSchema;
|
|
173
|
+
export declare const attemptRecordSchema: typeof WorkflowLoopMod.attemptRecordSchema;
|
|
174
|
+
export declare const workflowLoopStateSchema: typeof WorkflowLoopMod.workflowLoopStateSchema;
|
|
175
|
+
export declare const verificationResultSchema: typeof WorkflowLoopMod.verificationResultSchema;
|
|
176
|
+
export type { WorkflowLoopState, WorkflowLoopAction, WorkflowBuildOwner, WorkflowBuildOutcome, VerificationResult, AttemptRecord, WorkflowVerificationEvidence, WorkflowVerificationObligation, WorkflowVerificationObligationSource, } from './workflow-loop';
|
|
177
|
+
export type WorkflowLoopRuntime = WorkflowLoopRuntimeMod.WorkflowLoopRuntime;
|
|
178
|
+
export declare const WorkflowLoopRuntime: typeof WorkflowLoopRuntimeMod.WorkflowLoopRuntime;
|
|
179
|
+
export type PlannedTaskCoordinator = PlannedTaskServiceMod.PlannedTaskCoordinator;
|
|
180
|
+
export declare const PlannedTaskCoordinator: typeof PlannedTaskServiceMod.PlannedTaskCoordinator;
|
|
181
|
+
export declare const applyPlannedTaskPermissions: typeof PlannedTaskPermissionsMod.applyPlannedTaskPermissions;
|
|
182
|
+
export declare const PLANNED_TASK_PERMISSION_OVERRIDES: typeof PlannedTaskPermissionsMod.PLANNED_TASK_PERMISSION_OVERRIDES;
|
|
183
|
+
export type { InstanceAiContext, InstanceAiWorkflowService, InstanceAiExecutionService, InstanceAiCredentialService, InstanceAiNodeService, InstanceAiDataTableService, DataTableSummary, DataTableColumnInfo, DataTableFilterInput, LocalMcpServer, McpServerConfig, ModelConfig, InstanceAiMemoryConfig, CreateInstanceAgentOptions, TaskStorage, PlannedTask, PlannedTaskKind, PlannedTaskStatus, PlannedTaskRecord, PlannedTaskGraph, PlannedTaskGraphStatus, PlannedWorkflowVerification, PlannedTaskSchedulerAction, PlannedTaskService, OrchestrationContext, SpawnBackgroundTaskOptions, SpawnBackgroundTaskResult, BackgroundTaskResult, InstanceAiToolTraceOptions, InstanceAiTraceContext, InstanceAiTraceRun, InstanceAiTraceRunFinishOptions, InstanceAiTraceRunInit, WorkflowTaskService, WorkflowSummary, WorkflowDetail, WorkflowNode, WorkflowVersionSummary, WorkflowVersionDetail, ExecutionResult, ExecutionDebugInfo, NodeOutputResult, ResolvedNodeParametersResult, ResolvedParametersDebugBundle, ResolvedExpressionFailure, EmptyExpressionResolution, ExecutionSummary, CredentialSummary, CredentialDetail, CredentialTypeSearchResult, NodeSummary, NodeDescription, SearchableNodeDescription, ExploreResourcesParams, ExploreResourcesResult, FetchedPage, WebSearchResult, WebSearchResponse, InstanceAiWebResearchService, InstanceAiWorkspaceService, ProjectSummary, FolderSummary, ServiceProxyConfig, } from './types';
|
|
102
184
|
export type { DetachedDelegateTaskResult } from './tools/orchestration/delegate.tool';
|
|
103
|
-
export
|
|
185
|
+
export declare const classifyAttachments: typeof StructuredFileParserMod.classifyAttachments;
|
|
186
|
+
export declare const buildAttachmentManifest: typeof StructuredFileParserMod.buildAttachmentManifest;
|
|
187
|
+
export declare const isStructuredAttachment: typeof StructuredFileParserMod.isStructuredAttachment;
|
|
188
|
+
export declare const isParseableAttachment: typeof StructuredFileParserMod.isParseableAttachment;
|
|
104
189
|
export type { ClassifiedAttachment, ParseableFormat, TabularFormat, TextLikeFormat, SupportedFormat, } from './parsers/structured-file-parser';
|
|
105
|
-
export
|
|
190
|
+
export declare const getParseableAttachmentMimeTypes: typeof ValidateAttachmentsMod.getParseableAttachmentMimeTypes;
|
|
191
|
+
export declare const getSupportedAttachmentMimeTypes: typeof ValidateAttachmentsMod.getSupportedAttachmentMimeTypes;
|
|
192
|
+
export declare const isSupportedAttachmentMimeType: typeof ValidateAttachmentsMod.isSupportedAttachmentMimeType;
|
|
193
|
+
export declare const validateAttachmentMimeTypes: typeof ValidateAttachmentsMod.validateAttachmentMimeTypes;
|
|
194
|
+
export type UnsupportedAttachmentError = ValidateAttachmentsMod.UnsupportedAttachmentError;
|
|
195
|
+
export declare const UnsupportedAttachmentError: typeof ValidateAttachmentsMod.UnsupportedAttachmentError;
|
|
106
196
|
export type { UnsupportedAttachmentDetail } from './parsers/validate-attachments';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.extractText = exports.createEvalAgent = exports.asResumable = exports.parseSuspension = exports.isRecord = exports.mapAgentChunkToEvent = exports.McpClientManager = exports.generateTitleForRun = exports.truncateToTitle = exports.WorkflowLoopStorage = exports.patchThread = exports.TerminalOutcomeStorage = exports.getThread = exports.PlannedTaskStorage = exports.ThreadTaskStorage = exports.ThreadIterationLogStorage = exports.formatPreviousAttempts = exports.
|
|
4
|
-
exports.UnsupportedAttachmentError = exports.validateAttachmentMimeTypes = exports.isSupportedAttachmentMimeType = exports.getSupportedAttachmentMimeTypes = exports.getParseableAttachmentMimeTypes = exports.isParseableAttachment = exports.isStructuredAttachment = exports.buildAttachmentManifest = exports.classifyAttachments = exports.
|
|
3
|
+
exports.createLazyRuntimeWorkspace = exports.findAgentNodeInTree = exports.buildAgentTreeFromEvents = exports.Tool = exports.extractText = exports.createEvalAgent = exports.asResumable = exports.parseSuspension = exports.isRecord = exports.mapAgentChunkToEvent = exports.McpClientManager = exports.generateTitleForRun = exports.truncateToTitle = exports.WorkflowLoopStorage = exports.patchThread = exports.TerminalOutcomeStorage = exports.getThread = exports.PlannedTaskStorage = exports.ThreadTaskStorage = exports.ThreadIterationLogStorage = exports.formatPreviousAttempts = exports.startDetachedDelegateTask = exports.createSubAgentResourceIdPrefix = exports.createSubAgentResourceId = exports.createOrchestrationTools = exports.createAllTools = exports.createSubAgent = exports.createInstanceAgent = exports.loadPrebakedRuntimeSkillsBundle = exports.materializeRuntimeSkillsIntoWorkspace = exports.buildRuntimeSkillWorkspaceBundle = exports.createLazyWorkspaceRuntimeSkillSource = exports.loadInstanceAiRuntimeSkillSource = exports.hasRuntimeSkills = exports.parseTraceJsonl = exports.TraceWriter = exports.TraceIndex = exports.IdRemapper = exports.withCurrentTraceSpan = exports.submitLangsmithUserFeedback = exports.releaseTraceClient = exports.continueInstanceAiTraceContext = exports.createTraceReplayOnlyContext = exports.createInternalOperationTraceContext = exports.createInstanceAiTraceContext = exports.appendRootRunMetadata = exports.appendGeneratedWorkflowIdToRootMetadata = exports.createDomainAccessTracker = exports.wrapUntrustedData = exports.MAX_STEPS = void 0;
|
|
4
|
+
exports.UnsupportedAttachmentError = exports.validateAttachmentMimeTypes = exports.isSupportedAttachmentMimeType = exports.getSupportedAttachmentMimeTypes = exports.getParseableAttachmentMimeTypes = exports.isParseableAttachment = exports.isStructuredAttachment = exports.buildAttachmentManifest = exports.classifyAttachments = exports.applyPlannedTaskPermissions = exports.PlannedTaskCoordinator = exports.WorkflowLoopRuntime = exports.isPlannedWorkflowBuildOwner = exports.plannedTaskIdFromWorkflowBuildOwner = exports.resolveWorkflowBuildOwner = exports.isWorkflowVerificationObligationUnsettled = exports.deriveWorkflowVerificationObligationFromOutcome = exports.deriveWorkflowVerificationObligation = exports.WorkflowTaskCoordinator = exports.formatAttemptHistory = exports.handleVerificationVerdict = exports.handleBuildOutcome = exports.formatWorkflowLoopGuidance = exports.createWorkItem = exports.InstanceAiLivenessPolicy = exports.createInstanceAiLivenessPolicyConfig = exports.streamAgentRun = exports.resumeAgentRun = exports.executeResumableStream = exports.InstanceAiTerminalResponseGuard = exports.RunStateRegistry = exports.enrichMessageWithBackgroundTasks = exports.enrichMessageWithRunningTasks = exports.BackgroundTaskManager = exports.SnapshotManager = exports.createWorkspace = exports.createSandbox = exports.builderTemplatesOptionsFromEnv = exports.BuilderTemplatesService = exports.createScopedWorkspace = exports.setupSandboxWorkspace = exports.getPromptWorkspaceRoot = exports.getWorkspaceRoot = void 0;
|
|
5
5
|
require("./source-map-filter");
|
|
6
6
|
const lazyModule = (loader) => {
|
|
7
7
|
let cached;
|
|
@@ -32,24 +32,46 @@ const defineLazyExport = (name, load) => {
|
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
34
|
const loadLangsmithTracing = lazyModule(() => require('./tracing/langsmith-tracing'));
|
|
35
|
+
const loadTraceReplay = lazyModule(() => require('./tracing/trace-replay'));
|
|
35
36
|
const loadInstanceAgent = lazyModule(() => require('./agent/instance-agent'));
|
|
37
|
+
const loadDomainAccess = lazyModule(() => require('./domain-access'));
|
|
36
38
|
const loadSubAgentFactory = lazyModule(() => require('./agent/sub-agent-factory'));
|
|
37
|
-
const
|
|
38
|
-
const loadBuildWorkflowAgentTool = lazyModule(() => require('./tools/orchestration/build-workflow-agent.tool'));
|
|
39
|
+
const loadSanitizeWebContent = lazyModule(() => require('./tools/web-research/sanitize-web-content'));
|
|
39
40
|
const loadDelegateTool = lazyModule(() => require('./tools/orchestration/delegate.tool'));
|
|
41
|
+
const loadTools = lazyModule(() => require('./tools'));
|
|
42
|
+
const loadAgentPersistence = lazyModule(() => require('./tools/orchestration/agent-persistence'));
|
|
40
43
|
const loadTitleUtils = lazyModule(() => require('./memory/title-utils'));
|
|
41
44
|
const loadMcpClientManager = lazyModule(() => require('./mcp/mcp-client-manager'));
|
|
45
|
+
const loadStreamHelpers = lazyModule(() => require('./utils/stream-helpers'));
|
|
46
|
+
const loadStorage = lazyModule(() => require('./storage'));
|
|
47
|
+
const loadMapChunk = lazyModule(() => require('./stream/map-chunk'));
|
|
42
48
|
const loadRuntimeSkills = lazyModule(() => require('./skills/runtime-skills'));
|
|
43
49
|
const loadMaterializeRuntimeSkills = lazyModule(() => require('./skills/materialize-runtime-skills'));
|
|
44
50
|
const loadEvalAgents = lazyModule(() => require('./utils/eval-agents'));
|
|
51
|
+
const loadAgentTree = lazyModule(() => require('./utils/agent-tree'));
|
|
45
52
|
const loadBuilderTemplatesService = lazyModule(() => require('./workspace/builder-templates-service'));
|
|
46
53
|
const loadCreateWorkspace = lazyModule(() => require('./workspace/create-workspace'));
|
|
54
|
+
const loadSharedSandbox = lazyModule(() => require('@n8n/agents/sandbox'));
|
|
55
|
+
const loadLazyRuntimeWorkspace = lazyModule(() => require('./workspace/lazy-runtime-workspace'));
|
|
56
|
+
const loadSandboxSetup = lazyModule(() => require('./workspace/sandbox-setup'));
|
|
57
|
+
const loadScopedWorkspace = lazyModule(() => require('./workspace/scoped-workspace'));
|
|
58
|
+
const loadSnapshotManager = lazyModule(() => require('./workspace/snapshot-manager'));
|
|
59
|
+
const loadRunStateRegistry = lazyModule(() => require('./runtime/run-state-registry'));
|
|
60
|
+
const loadBackgroundTaskManager = lazyModule(() => require('./runtime/background-task-manager'));
|
|
61
|
+
const loadTerminalResponseGuard = lazyModule(() => require('./runtime/terminal-response-guard'));
|
|
62
|
+
const loadResumableStreamExecutor = lazyModule(() => require('./runtime/resumable-stream-executor'));
|
|
63
|
+
const loadStreamRunner = lazyModule(() => require('./runtime/stream-runner'));
|
|
64
|
+
const loadLivenessPolicy = lazyModule(() => require('./runtime/liveness-policy'));
|
|
65
|
+
const loadWorkflowLoop = lazyModule(() => require('./workflow-loop'));
|
|
66
|
+
const loadWorkflowLoopRuntime = lazyModule(() => require('./workflow-loop/runtime'));
|
|
67
|
+
const loadPlannedTaskService = lazyModule(() => require('./planned-tasks/planned-task-service'));
|
|
68
|
+
const loadPlannedTaskPermissions = lazyModule(() => require('./planned-tasks/planned-task-permissions'));
|
|
69
|
+
const loadStructuredFileParser = lazyModule(() => require('./parsers/structured-file-parser'));
|
|
70
|
+
const loadValidateAttachments = lazyModule(() => require('./parsers/validate-attachments'));
|
|
47
71
|
var max_steps_1 = require("./constants/max-steps");
|
|
48
72
|
Object.defineProperty(exports, "MAX_STEPS", { enumerable: true, get: function () { return max_steps_1.MAX_STEPS; } });
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
var domain_access_1 = require("./domain-access");
|
|
52
|
-
Object.defineProperty(exports, "createDomainAccessTracker", { enumerable: true, get: function () { return domain_access_1.createDomainAccessTracker; } });
|
|
73
|
+
exports.wrapUntrustedData = lazyFunction(() => loadSanitizeWebContent().wrapUntrustedData);
|
|
74
|
+
exports.createDomainAccessTracker = lazyFunction(() => loadDomainAccess().createDomainAccessTracker);
|
|
53
75
|
exports.appendGeneratedWorkflowIdToRootMetadata = lazyFunction(() => loadLangsmithTracing().appendGeneratedWorkflowIdToRootMetadata);
|
|
54
76
|
exports.appendRootRunMetadata = lazyFunction(() => loadLangsmithTracing().appendRootRunMetadata);
|
|
55
77
|
exports.createInstanceAiTraceContext = lazyFunction(() => loadLangsmithTracing().createInstanceAiTraceContext);
|
|
@@ -59,54 +81,46 @@ exports.continueInstanceAiTraceContext = lazyFunction(() => loadLangsmithTracing
|
|
|
59
81
|
exports.releaseTraceClient = lazyFunction(() => loadLangsmithTracing().releaseTraceClient);
|
|
60
82
|
exports.submitLangsmithUserFeedback = lazyFunction(() => loadLangsmithTracing().submitLangsmithUserFeedback);
|
|
61
83
|
exports.withCurrentTraceSpan = lazyFunction(() => loadLangsmithTracing().withCurrentTraceSpan);
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
Object.defineProperty(exports, "parseTraceJsonl", { enumerable: true, get: function () { return trace_replay_1.parseTraceJsonl; } });
|
|
67
|
-
Object.defineProperty(exports, "PURE_REPLAY_TOOLS", { enumerable: true, get: function () { return trace_replay_1.PURE_REPLAY_TOOLS; } });
|
|
84
|
+
exports.IdRemapper = lazyClass(() => loadTraceReplay().IdRemapper);
|
|
85
|
+
exports.TraceIndex = lazyClass(() => loadTraceReplay().TraceIndex);
|
|
86
|
+
exports.TraceWriter = lazyClass(() => loadTraceReplay().TraceWriter);
|
|
87
|
+
exports.parseTraceJsonl = lazyFunction(() => loadTraceReplay().parseTraceJsonl);
|
|
68
88
|
exports.hasRuntimeSkills = lazyFunction(() => loadRuntimeSkills().hasRuntimeSkills);
|
|
69
89
|
exports.loadInstanceAiRuntimeSkillSource = lazyFunction(() => loadRuntimeSkills().loadInstanceAiRuntimeSkillSource);
|
|
70
90
|
exports.createLazyWorkspaceRuntimeSkillSource = lazyFunction(() => loadMaterializeRuntimeSkills().createLazyWorkspaceRuntimeSkillSource);
|
|
71
91
|
exports.buildRuntimeSkillWorkspaceBundle = lazyFunction(() => loadMaterializeRuntimeSkills().buildRuntimeSkillWorkspaceBundle);
|
|
72
92
|
exports.materializeRuntimeSkillsIntoWorkspace = lazyFunction(() => loadMaterializeRuntimeSkills().materializeRuntimeSkillsIntoWorkspace);
|
|
73
|
-
exports.
|
|
93
|
+
exports.loadPrebakedRuntimeSkillsBundle = lazyFunction(() => loadMaterializeRuntimeSkills().loadPrebakedRuntimeSkillsBundle);
|
|
74
94
|
exports.createInstanceAgent = lazyFunction(() => loadInstanceAgent().createInstanceAgent);
|
|
75
95
|
exports.createSubAgent = lazyFunction(() => loadSubAgentFactory().createSubAgent);
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
Object.defineProperty(exports, "createSubAgentResourceId", { enumerable: true, get: function () { return agent_persistence_1.createSubAgentResourceId; } });
|
|
81
|
-
Object.defineProperty(exports, "createSubAgentResourceIdPrefix", { enumerable: true, get: function () { return agent_persistence_1.createSubAgentResourceIdPrefix; } });
|
|
82
|
-
Object.defineProperty(exports, "SUB_AGENT_RESOURCE_PREFIX", { enumerable: true, get: function () { return agent_persistence_1.SUB_AGENT_RESOURCE_PREFIX; } });
|
|
83
|
-
exports.startBuildWorkflowAgentTask = lazyFunction(() => loadBuildWorkflowAgentTool().startBuildWorkflowAgentTask);
|
|
96
|
+
exports.createAllTools = lazyFunction(() => loadTools().createAllTools);
|
|
97
|
+
exports.createOrchestrationTools = lazyFunction(() => loadTools().createOrchestrationTools);
|
|
98
|
+
exports.createSubAgentResourceId = lazyFunction(() => loadAgentPersistence().createSubAgentResourceId);
|
|
99
|
+
exports.createSubAgentResourceIdPrefix = lazyFunction(() => loadAgentPersistence().createSubAgentResourceIdPrefix);
|
|
84
100
|
exports.startDetachedDelegateTask = lazyFunction(() => loadDelegateTool().startDetachedDelegateTask);
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
Object.defineProperty(exports, "patchThread", { enumerable: true, get: function () { return storage_1.patchThread; } });
|
|
94
|
-
Object.defineProperty(exports, "WorkflowLoopStorage", { enumerable: true, get: function () { return storage_1.WorkflowLoopStorage; } });
|
|
101
|
+
exports.formatPreviousAttempts = lazyFunction(() => loadStorage().formatPreviousAttempts);
|
|
102
|
+
exports.ThreadIterationLogStorage = lazyClass(() => loadStorage().ThreadIterationLogStorage);
|
|
103
|
+
exports.ThreadTaskStorage = lazyClass(() => loadStorage().ThreadTaskStorage);
|
|
104
|
+
exports.PlannedTaskStorage = lazyClass(() => loadStorage().PlannedTaskStorage);
|
|
105
|
+
exports.getThread = lazyFunction(() => loadStorage().getThread);
|
|
106
|
+
exports.TerminalOutcomeStorage = lazyClass(() => loadStorage().TerminalOutcomeStorage);
|
|
107
|
+
exports.patchThread = lazyFunction(() => loadStorage().patchThread);
|
|
108
|
+
exports.WorkflowLoopStorage = lazyClass(() => loadStorage().WorkflowLoopStorage);
|
|
95
109
|
exports.truncateToTitle = lazyFunction(() => loadTitleUtils().truncateToTitle);
|
|
96
110
|
exports.generateTitleForRun = lazyFunction(() => loadTitleUtils().generateTitleForRun);
|
|
97
111
|
exports.McpClientManager = lazyClass(() => loadMcpClientManager().McpClientManager);
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
Object.defineProperty(exports, "parseSuspension", { enumerable: true, get: function () { return stream_helpers_1.parseSuspension; } });
|
|
103
|
-
Object.defineProperty(exports, "asResumable", { enumerable: true, get: function () { return stream_helpers_1.asResumable; } });
|
|
112
|
+
exports.mapAgentChunkToEvent = lazyFunction(() => loadMapChunk().mapAgentChunkToEvent);
|
|
113
|
+
exports.isRecord = lazyFunction(() => loadStreamHelpers().isRecord);
|
|
114
|
+
exports.parseSuspension = lazyFunction(() => loadStreamHelpers().parseSuspension);
|
|
115
|
+
exports.asResumable = lazyFunction(() => loadStreamHelpers().asResumable);
|
|
104
116
|
exports.createEvalAgent = lazyFunction(() => loadEvalAgents().createEvalAgent);
|
|
105
117
|
exports.extractText = lazyFunction(() => loadEvalAgents().extractText);
|
|
106
118
|
exports.Tool = lazyClass(() => loadEvalAgents().Tool);
|
|
107
|
-
defineLazyExport('BUILDER_AGENT_PROMPT', () => loadBuildWorkflowAgentPrompt().BUILDER_AGENT_PROMPT);
|
|
108
119
|
defineLazyExport('SONNET_MODEL', () => loadEvalAgents().SONNET_MODEL);
|
|
109
120
|
defineLazyExport('HAIKU_MODEL', () => loadEvalAgents().HAIKU_MODEL);
|
|
121
|
+
defineLazyExport('PURE_REPLAY_TOOLS', () => loadTraceReplay().PURE_REPLAY_TOOLS);
|
|
122
|
+
defineLazyExport('SUB_AGENT_RESOURCE_PREFIX', () => loadAgentPersistence().SUB_AGENT_RESOURCE_PREFIX);
|
|
123
|
+
defineLazyExport('iterationEntrySchema', () => loadStorage().iterationEntrySchema);
|
|
110
124
|
defineLazyExport('INSTANCE_AI_SKILLS_DIR', () => loadRuntimeSkills().INSTANCE_AI_SKILLS_DIR);
|
|
111
125
|
defineLazyExport('SANDBOX_RUNTIME_SKILLS_DIR', () => loadMaterializeRuntimeSkills().SANDBOX_RUNTIME_SKILLS_DIR);
|
|
112
126
|
defineLazyExport('SANDBOX_RUNTIME_SKILL_REGISTRY_FILE', () => loadMaterializeRuntimeSkills().SANDBOX_RUNTIME_SKILL_REGISTRY_FILE);
|
|
@@ -115,64 +129,57 @@ defineLazyExport('RUNTIME_SKILL_MANIFEST_SCHEMA_VERSION', () => loadMaterializeR
|
|
|
115
129
|
defineLazyExport('N8N_SKILLS_DIR_ENV', () => loadMaterializeRuntimeSkills().N8N_SKILLS_DIR_ENV);
|
|
116
130
|
defineLazyExport('N8N_SKILL_DIR_ENV', () => loadMaterializeRuntimeSkills().N8N_SKILL_DIR_ENV);
|
|
117
131
|
defineLazyExport('N8N_WORKSPACE_DIR_ENV', () => loadMaterializeRuntimeSkills().N8N_WORKSPACE_DIR_ENV);
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
132
|
+
defineLazyExport('INSTANCE_AI_DEFAULT_LIVENESS_POLICY_CONFIG', () => loadLivenessPolicy().INSTANCE_AI_DEFAULT_LIVENESS_POLICY_CONFIG);
|
|
133
|
+
defineLazyExport('workflowBuildOutcomeSchema', () => loadWorkflowLoop().workflowBuildOutcomeSchema);
|
|
134
|
+
defineLazyExport('workflowVerificationEvidenceSchema', () => loadWorkflowLoop().workflowVerificationEvidenceSchema);
|
|
135
|
+
defineLazyExport('attemptRecordSchema', () => loadWorkflowLoop().attemptRecordSchema);
|
|
136
|
+
defineLazyExport('workflowLoopStateSchema', () => loadWorkflowLoop().workflowLoopStateSchema);
|
|
137
|
+
defineLazyExport('verificationResultSchema', () => loadWorkflowLoop().verificationResultSchema);
|
|
138
|
+
defineLazyExport('PLANNED_TASK_PERMISSION_OVERRIDES', () => loadPlannedTaskPermissions().PLANNED_TASK_PERMISSION_OVERRIDES);
|
|
139
|
+
exports.buildAgentTreeFromEvents = lazyFunction(() => loadAgentTree().buildAgentTreeFromEvents);
|
|
140
|
+
exports.findAgentNodeInTree = lazyFunction(() => loadAgentTree().findAgentNodeInTree);
|
|
141
|
+
exports.createLazyRuntimeWorkspace = lazyFunction(() => loadLazyRuntimeWorkspace().createLazyRuntimeWorkspace);
|
|
142
|
+
exports.getWorkspaceRoot = lazyFunction(() => loadSharedSandbox().getWorkspaceRoot);
|
|
143
|
+
exports.getPromptWorkspaceRoot = lazyFunction(() => loadSharedSandbox().getPromptWorkspaceRoot);
|
|
144
|
+
exports.setupSandboxWorkspace = lazyFunction(() => loadSandboxSetup().setupSandboxWorkspace);
|
|
145
|
+
exports.createScopedWorkspace = lazyFunction(() => loadScopedWorkspace().createScopedWorkspace);
|
|
126
146
|
exports.BuilderTemplatesService = lazyClass(() => loadBuilderTemplatesService().BuilderTemplatesService);
|
|
127
147
|
exports.builderTemplatesOptionsFromEnv = lazyFunction(() => loadBuilderTemplatesService().builderTemplatesOptionsFromEnv);
|
|
128
148
|
exports.createSandbox = lazyFunction(() => loadCreateWorkspace().createSandbox);
|
|
129
149
|
exports.createWorkspace = lazyFunction(() => loadCreateWorkspace().createWorkspace);
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
Object.defineProperty(exports, "applyPlannedTaskPermissions", { enumerable: true, get: function () { return planned_task_permissions_1.applyPlannedTaskPermissions; } });
|
|
166
|
-
Object.defineProperty(exports, "PLANNED_TASK_PERMISSION_OVERRIDES", { enumerable: true, get: function () { return planned_task_permissions_1.PLANNED_TASK_PERMISSION_OVERRIDES; } });
|
|
167
|
-
var structured_file_parser_1 = require("./parsers/structured-file-parser");
|
|
168
|
-
Object.defineProperty(exports, "classifyAttachments", { enumerable: true, get: function () { return structured_file_parser_1.classifyAttachments; } });
|
|
169
|
-
Object.defineProperty(exports, "buildAttachmentManifest", { enumerable: true, get: function () { return structured_file_parser_1.buildAttachmentManifest; } });
|
|
170
|
-
Object.defineProperty(exports, "isStructuredAttachment", { enumerable: true, get: function () { return structured_file_parser_1.isStructuredAttachment; } });
|
|
171
|
-
Object.defineProperty(exports, "isParseableAttachment", { enumerable: true, get: function () { return structured_file_parser_1.isParseableAttachment; } });
|
|
172
|
-
var validate_attachments_1 = require("./parsers/validate-attachments");
|
|
173
|
-
Object.defineProperty(exports, "getParseableAttachmentMimeTypes", { enumerable: true, get: function () { return validate_attachments_1.getParseableAttachmentMimeTypes; } });
|
|
174
|
-
Object.defineProperty(exports, "getSupportedAttachmentMimeTypes", { enumerable: true, get: function () { return validate_attachments_1.getSupportedAttachmentMimeTypes; } });
|
|
175
|
-
Object.defineProperty(exports, "isSupportedAttachmentMimeType", { enumerable: true, get: function () { return validate_attachments_1.isSupportedAttachmentMimeType; } });
|
|
176
|
-
Object.defineProperty(exports, "validateAttachmentMimeTypes", { enumerable: true, get: function () { return validate_attachments_1.validateAttachmentMimeTypes; } });
|
|
177
|
-
Object.defineProperty(exports, "UnsupportedAttachmentError", { enumerable: true, get: function () { return validate_attachments_1.UnsupportedAttachmentError; } });
|
|
150
|
+
exports.SnapshotManager = lazyClass(() => loadSnapshotManager().SnapshotManager);
|
|
151
|
+
exports.BackgroundTaskManager = lazyClass(() => loadBackgroundTaskManager().BackgroundTaskManager);
|
|
152
|
+
exports.enrichMessageWithRunningTasks = lazyFunction(() => loadBackgroundTaskManager().enrichMessageWithRunningTasks);
|
|
153
|
+
exports.enrichMessageWithBackgroundTasks = exports.enrichMessageWithRunningTasks;
|
|
154
|
+
exports.RunStateRegistry = lazyClass(() => loadRunStateRegistry().RunStateRegistry);
|
|
155
|
+
exports.InstanceAiTerminalResponseGuard = lazyClass(() => loadTerminalResponseGuard().InstanceAiTerminalResponseGuard);
|
|
156
|
+
exports.executeResumableStream = lazyFunction(() => loadResumableStreamExecutor().executeResumableStream);
|
|
157
|
+
exports.resumeAgentRun = lazyFunction(() => loadStreamRunner().resumeAgentRun);
|
|
158
|
+
exports.streamAgentRun = lazyFunction(() => loadStreamRunner().streamAgentRun);
|
|
159
|
+
exports.createInstanceAiLivenessPolicyConfig = lazyFunction(() => loadLivenessPolicy().createInstanceAiLivenessPolicyConfig);
|
|
160
|
+
exports.InstanceAiLivenessPolicy = lazyClass(() => loadLivenessPolicy().InstanceAiLivenessPolicy);
|
|
161
|
+
exports.createWorkItem = lazyFunction(() => loadWorkflowLoop().createWorkItem);
|
|
162
|
+
exports.formatWorkflowLoopGuidance = lazyFunction(() => loadWorkflowLoop().formatWorkflowLoopGuidance);
|
|
163
|
+
exports.handleBuildOutcome = lazyFunction(() => loadWorkflowLoop().handleBuildOutcome);
|
|
164
|
+
exports.handleVerificationVerdict = lazyFunction(() => loadWorkflowLoop().handleVerificationVerdict);
|
|
165
|
+
exports.formatAttemptHistory = lazyFunction(() => loadWorkflowLoop().formatAttemptHistory);
|
|
166
|
+
exports.WorkflowTaskCoordinator = lazyClass(() => loadWorkflowLoop().WorkflowTaskCoordinator);
|
|
167
|
+
exports.deriveWorkflowVerificationObligation = lazyFunction(() => loadWorkflowLoop().deriveWorkflowVerificationObligation);
|
|
168
|
+
exports.deriveWorkflowVerificationObligationFromOutcome = lazyFunction(() => loadWorkflowLoop().deriveWorkflowVerificationObligationFromOutcome);
|
|
169
|
+
exports.isWorkflowVerificationObligationUnsettled = lazyFunction(() => loadWorkflowLoop().isWorkflowVerificationObligationUnsettled);
|
|
170
|
+
exports.resolveWorkflowBuildOwner = lazyFunction(() => loadWorkflowLoop().resolveWorkflowBuildOwner);
|
|
171
|
+
exports.plannedTaskIdFromWorkflowBuildOwner = lazyFunction(() => loadWorkflowLoop().plannedTaskIdFromWorkflowBuildOwner);
|
|
172
|
+
exports.isPlannedWorkflowBuildOwner = lazyFunction(() => loadWorkflowLoop().isPlannedWorkflowBuildOwner);
|
|
173
|
+
exports.WorkflowLoopRuntime = lazyClass(() => loadWorkflowLoopRuntime().WorkflowLoopRuntime);
|
|
174
|
+
exports.PlannedTaskCoordinator = lazyClass(() => loadPlannedTaskService().PlannedTaskCoordinator);
|
|
175
|
+
exports.applyPlannedTaskPermissions = lazyFunction(() => loadPlannedTaskPermissions().applyPlannedTaskPermissions);
|
|
176
|
+
exports.classifyAttachments = lazyFunction(() => loadStructuredFileParser().classifyAttachments);
|
|
177
|
+
exports.buildAttachmentManifest = lazyFunction(() => loadStructuredFileParser().buildAttachmentManifest);
|
|
178
|
+
exports.isStructuredAttachment = lazyFunction(() => loadStructuredFileParser().isStructuredAttachment);
|
|
179
|
+
exports.isParseableAttachment = lazyFunction(() => loadStructuredFileParser().isParseableAttachment);
|
|
180
|
+
exports.getParseableAttachmentMimeTypes = lazyFunction(() => loadValidateAttachments().getParseableAttachmentMimeTypes);
|
|
181
|
+
exports.getSupportedAttachmentMimeTypes = lazyFunction(() => loadValidateAttachments().getSupportedAttachmentMimeTypes);
|
|
182
|
+
exports.isSupportedAttachmentMimeType = lazyFunction(() => loadValidateAttachments().isSupportedAttachmentMimeType);
|
|
183
|
+
exports.validateAttachmentMimeTypes = lazyFunction(() => loadValidateAttachments().validateAttachmentMimeTypes);
|
|
184
|
+
exports.UnsupportedAttachmentError = lazyClass(() => loadValidateAttachments().UnsupportedAttachmentError);
|
|
178
185
|
//# sourceMappingURL=index.js.map
|