n8n 2.22.3 → 2.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/auth.service.d.ts +2 -0
- package/dist/auth/auth.service.js +15 -4
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/chat/chat-service.types.d.ts +4 -4
- package/dist/commands/execute.d.ts +2 -2
- package/dist/commands/export/workflow.js +1 -0
- package/dist/commands/export/workflow.js.map +1 -1
- package/dist/commands/license/info.js +4 -4
- package/dist/commands/license/info.js.map +1 -1
- package/dist/commands/start.js +21 -1
- package/dist/commands/start.js.map +1 -1
- package/dist/constants.js +1 -0
- package/dist/constants.js.map +1 -1
- package/dist/controllers/annotation-tags.controller.ee.d.ts +1 -1
- package/dist/controllers/e2e.controller.js +1 -0
- package/dist/controllers/e2e.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth1-credential.controller.d.ts +1 -1
- package/dist/controllers/oauth/oauth1-credential.controller.js +4 -7
- package/dist/controllers/oauth/oauth1-credential.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth2-credential.controller.js +3 -6
- package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
- package/dist/controllers/redaction-enforcement-mapper.d.ts +3 -0
- package/dist/controllers/redaction-enforcement-mapper.js +27 -0
- package/dist/controllers/redaction-enforcement-mapper.js.map +1 -0
- package/dist/controllers/security-settings.controller.d.ts +8 -2
- package/dist/controllers/security-settings.controller.js +35 -25
- package/dist/controllers/security-settings.controller.js.map +1 -1
- package/dist/credentials/credential-connection-status-provider.interface.d.ts +3 -0
- package/dist/credentials/credential-connection-status-provider.interface.js +3 -0
- package/dist/credentials/credential-connection-status-provider.interface.js.map +1 -0
- package/dist/credentials/credential-connection-status-proxy.d.ts +6 -0
- package/dist/credentials/credential-connection-status-proxy.js +25 -0
- package/dist/credentials/credential-connection-status-proxy.js.map +1 -0
- package/dist/credentials/credential-resolution-provider.interface.d.ts +1 -0
- package/dist/credentials/credentials.controller.d.ts +2 -0
- package/dist/credentials/credentials.service.d.ts +10 -1
- package/dist/credentials/credentials.service.ee.d.ts +2 -0
- package/dist/credentials/credentials.service.ee.js +13 -3
- package/dist/credentials/credentials.service.ee.js.map +1 -1
- package/dist/credentials/credentials.service.js +34 -7
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/credentials/dynamic-credentials-proxy.d.ts +2 -0
- package/dist/credentials/dynamic-credentials-proxy.js +9 -0
- package/dist/credentials/dynamic-credentials-proxy.js.map +1 -1
- package/dist/credentials-helper.js +2 -1
- package/dist/credentials-helper.js.map +1 -1
- package/dist/errors/feature-not-licensed.error.d.ts +3 -1
- package/dist/errors/feature-not-licensed.error.js +2 -2
- package/dist/errors/feature-not-licensed.error.js.map +1 -1
- package/dist/evaluation.ee/evaluation-collection.service.js +2 -0
- package/dist/evaluation.ee/evaluation-collection.service.js.map +1 -1
- package/dist/evaluation.ee/insights/eval-insights.controller.ee.d.ts +41 -0
- package/dist/evaluation.ee/insights/eval-insights.controller.ee.js +62 -0
- package/dist/evaluation.ee/insights/eval-insights.controller.ee.js.map +1 -0
- package/dist/evaluation.ee/insights/eval-insights.service.d.ts +25 -0
- package/dist/evaluation.ee/insights/eval-insights.service.js +206 -0
- package/dist/evaluation.ee/insights/eval-insights.service.js.map +1 -0
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.d.ts +3 -2
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js +16 -2
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.d.ts +3 -1
- package/dist/events/relays/telemetry.event-relay.js +9 -3
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.d.ts +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js +4 -2
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
- package/dist/executions/execution-data/db-store.d.ts +4 -2
- package/dist/executions/execution-data/db-store.js +9 -4
- package/dist/executions/execution-data/db-store.js.map +1 -1
- package/dist/executions/execution-data/missing-execution-data.error.d.ts +5 -0
- package/dist/executions/execution-data/missing-execution-data.error.js +11 -0
- package/dist/executions/execution-data/missing-execution-data.error.js.map +1 -0
- package/dist/executions/execution-data/types.d.ts +3 -2
- package/dist/executions/execution-data/types.js.map +1 -1
- package/dist/executions/execution-persistence.d.ts +12 -3
- package/dist/executions/execution-persistence.js +102 -26
- package/dist/executions/execution-persistence.js.map +1 -1
- package/dist/external-hooks.d.ts +6 -1
- package/dist/external-hooks.js.map +1 -1
- package/dist/instance-settings-loader/loaders/sso/provisioning.instance-settings-loader.d.ts +3 -2
- package/dist/instance-settings-loader/loaders/sso/provisioning.instance-settings-loader.js +17 -12
- package/dist/instance-settings-loader/loaders/sso/provisioning.instance-settings-loader.js.map +1 -1
- package/dist/interfaces.d.ts +1 -0
- package/dist/license.d.ts +2 -0
- package/dist/license.js +6 -0
- package/dist/license.js.map +1 -1
- package/dist/load-nodes-and-credentials.d.ts +32 -6
- package/dist/load-nodes-and-credentials.js +8 -79
- package/dist/load-nodes-and-credentials.js.map +1 -1
- package/dist/manual-execution.service.js +3 -0
- package/dist/manual-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-execution.service.js +5 -5
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-sse-stream.js +17 -1
- package/dist/modules/agents/agent-sse-stream.js.map +1 -1
- package/dist/modules/agents/agents-tools.service.js +7 -5
- package/dist/modules/agents/agents-tools.service.js.map +1 -1
- package/dist/modules/agents/agents.controller.d.ts +29 -3
- package/dist/modules/agents/agents.controller.js +88 -7
- package/dist/modules/agents/agents.controller.js.map +1 -1
- package/dist/modules/agents/agents.module.d.ts +1 -1
- package/dist/modules/agents/agents.module.js +12 -6
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/agents.service.d.ts +7 -8
- package/dist/modules/agents/agents.service.js +120 -65
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-model-recommendations.d.ts +1 -1
- package/dist/modules/agents/builder/agents-builder-model-recommendations.js +3 -3
- package/dist/modules/agents/builder/agents-builder-model-recommendations.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-prompts.d.ts +9 -17
- package/dist/modules/agents/builder/agents-builder-prompts.js +145 -549
- package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-settings.service.js +2 -2
- package/dist/modules/agents/builder/agents-builder-settings.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.js +10 -10
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder.service.d.ts +3 -1
- package/dist/modules/agents/builder/agents-builder.service.js +58 -9
- package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js +2 -2
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-llm.tool.js +2 -2
- package/dist/modules/agents/builder/interactive/ask-llm.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-question.tool.js +2 -2
- package/dist/modules/agents/builder/interactive/ask-question.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +2 -2
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.d.ts +1 -0
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +132 -0
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -0
- package/dist/modules/agents/builder/prompts/config-rules.prompt.d.ts +2 -0
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js +63 -0
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -0
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.d.ts +1 -0
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +47 -0
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js.map +1 -0
- package/dist/modules/agents/builder/prompts/memory.prompt.d.ts +1 -0
- package/dist/modules/agents/builder/prompts/memory.prompt.js +60 -0
- package/dist/modules/agents/builder/prompts/memory.prompt.js.map +1 -0
- package/dist/modules/agents/builder/prompts/tools.prompt.d.ts +1 -0
- package/dist/modules/agents/builder/prompts/tools.prompt.js +81 -0
- package/dist/modules/agents/builder/prompts/tools.prompt.js.map +1 -0
- package/dist/modules/agents/builder/skills/index.d.ts +2 -0
- package/dist/modules/agents/builder/skills/index.js +12 -0
- package/dist/modules/agents/builder/skills/index.js.map +1 -0
- package/dist/modules/agents/builder/skills/integrations.skill.d.ts +2 -0
- package/dist/modules/agents/builder/skills/integrations.skill.js +53 -0
- package/dist/modules/agents/builder/skills/integrations.skill.js.map +1 -0
- package/dist/modules/agents/builder/skills/research.skill.d.ts +2 -0
- package/dist/modules/agents/builder/skills/research.skill.js +42 -0
- package/dist/modules/agents/builder/skills/research.skill.js.map +1 -0
- package/dist/modules/agents/builder/skills/target-skills.skill.d.ts +2 -0
- package/dist/modules/agents/builder/skills/target-skills.skill.js +59 -0
- package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -0
- package/dist/modules/agents/entities/{agent-published-version.entity.d.ts → agent-history.entity.d.ts} +4 -7
- package/dist/modules/agents/entities/{agent-published-version.entity.js → agent-history.entity.js} +22 -34
- package/dist/modules/agents/entities/agent-history.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-memory-entry-cursor.entity.d.ts +7 -0
- package/dist/modules/agents/entities/agent-memory-entry-cursor.entity.js +38 -0
- package/dist/modules/agents/entities/agent-memory-entry-cursor.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-memory-entry-lock.entity.d.ts +7 -0
- package/dist/modules/{instance-ai/entities/instance-ai-workflow-snapshot.entity.js → agents/entities/agent-memory-entry-lock.entity.js} +16 -19
- package/dist/modules/agents/entities/agent-memory-entry-lock.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-memory-entry-source.entity.d.ts +9 -0
- package/dist/modules/agents/entities/agent-memory-entry-source.entity.js +49 -0
- package/dist/modules/agents/entities/agent-memory-entry-source.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-memory-entry.entity.d.ts +15 -0
- package/dist/modules/agents/entities/agent-memory-entry.entity.js +65 -0
- package/dist/modules/agents/entities/agent-memory-entry.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-observation-cursor.entity.d.ts +2 -3
- package/dist/modules/agents/entities/agent-observation-cursor.entity.js +5 -4
- package/dist/modules/agents/entities/agent-observation-cursor.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-observation-lock.entity.d.ts +2 -3
- package/dist/modules/agents/entities/agent-observation-lock.entity.js +5 -4
- package/dist/modules/agents/entities/agent-observation-lock.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-observation.entity.d.ts +2 -3
- package/dist/modules/agents/entities/agent-observation.entity.js +6 -5
- package/dist/modules/agents/entities/agent-observation.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent.entity.d.ts +3 -5
- package/dist/modules/agents/entities/agent.entity.js +7 -14
- package/dist/modules/agents/entities/agent.entity.js.map +1 -1
- package/dist/modules/agents/episodic-memory.d.ts +2 -0
- package/dist/modules/agents/episodic-memory.js +12 -0
- package/dist/modules/agents/episodic-memory.js.map +1 -0
- package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +2 -1
- package/dist/modules/agents/integrations/agent-chat-bridge.js +19 -5
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
- package/dist/modules/agents/integrations/agent-schedule.service.js +10 -6
- package/dist/modules/agents/integrations/agent-schedule.service.js.map +1 -1
- package/dist/modules/agents/integrations/chat-integration.service.js +1 -1
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
- package/dist/modules/agents/integrations/n8n-memory.d.ts +41 -18
- package/dist/modules/agents/integrations/n8n-memory.js +519 -77
- package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack-integration.js +2 -12
- package/dist/modules/agents/integrations/platforms/slack-integration.js.map +1 -1
- package/dist/modules/agents/integrations/rich-interaction-tool.d.ts +1 -1
- package/dist/modules/agents/integrations/rich-interaction-tool.js +2 -2
- package/dist/modules/agents/integrations/rich-interaction-tool.js.map +1 -1
- package/dist/modules/agents/integrations/slack-app-setup.service.d.ts +52 -0
- package/dist/modules/agents/integrations/slack-app-setup.service.js +316 -0
- package/dist/modules/agents/integrations/slack-app-setup.service.js.map +1 -0
- package/dist/modules/agents/json-config/from-json-config.d.ts +2 -3
- package/dist/modules/agents/json-config/from-json-config.js +76 -61
- package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
- package/dist/modules/agents/json-config/schema-text-serializer.js +2 -1
- package/dist/modules/agents/json-config/schema-text-serializer.js.map +1 -1
- package/dist/modules/agents/repositories/agent-history.repository.d.ts +19 -0
- package/dist/modules/agents/repositories/agent-history.repository.js +51 -0
- package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-memory-entry-cursor.repository.d.ts +5 -0
- package/dist/modules/{instance-ai/repositories/instance-ai-workflow-snapshot.repository.js → agents/repositories/agent-memory-entry-cursor.repository.js} +8 -8
- package/dist/modules/agents/repositories/agent-memory-entry-cursor.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-memory-entry-lock.repository.d.ts +5 -0
- package/dist/modules/{instance-ai/repositories/instance-ai-observational-memory.repository.js → agents/repositories/agent-memory-entry-lock.repository.js} +8 -8
- package/dist/modules/agents/repositories/agent-memory-entry-lock.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-memory-entry-source.repository.d.ts +5 -0
- package/dist/modules/agents/repositories/agent-memory-entry-source.repository.js +26 -0
- package/dist/modules/agents/repositories/agent-memory-entry-source.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-memory-entry.repository.d.ts +5 -0
- package/dist/modules/agents/repositories/agent-memory-entry.repository.js +26 -0
- package/dist/modules/agents/repositories/agent-memory-entry.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent.repository.js +3 -3
- package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
- package/dist/modules/agents/runtime/agent-secure-runtime.js +5 -5
- package/dist/modules/agents/runtime/agent-secure-runtime.js.map +1 -1
- package/dist/modules/agents/tools/environment-tool.d.ts +1 -1
- package/dist/modules/agents/tools/environment-tool.js +3 -3
- package/dist/modules/agents/tools/environment-tool.js.map +1 -1
- package/dist/modules/agents/tools/node-tool-factory.js +5 -5
- package/dist/modules/agents/tools/node-tool-factory.js.map +1 -1
- package/dist/modules/agents/tools/workflow-tool-factory.js +3 -3
- package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
- package/dist/modules/agents/tracing/builder-telemetry.d.ts +2 -3
- package/dist/modules/agents/tracing/builder-telemetry.js +36 -3
- package/dist/modules/agents/tracing/builder-telemetry.js.map +1 -1
- package/dist/modules/agents/utils/agent-draft.utils.js +1 -2
- package/dist/modules/agents/utils/agent-draft.utils.js.map +1 -1
- package/dist/modules/agents/utils/agent-memory-scope.d.ts +3 -0
- package/dist/modules/agents/utils/agent-memory-scope.js +15 -0
- package/dist/modules/agents/utils/agent-memory-scope.js.map +1 -0
- package/dist/modules/chat-hub/chat-hub.constants.js +4 -0
- package/dist/modules/chat-hub/chat-hub.constants.js.map +1 -1
- package/dist/modules/chat-hub/context-limits.js +1 -0
- package/dist/modules/chat-hub/context-limits.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/constants.d.ts +3 -0
- package/dist/modules/dynamic-credentials.ee/constants.js +7 -0
- package/dist/modules/dynamic-credentials.ee/constants.js.map +1 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js +14 -2
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers.controller.d.ts +2 -2
- package/dist/modules/dynamic-credentials.ee/credential-resolvers.controller.js +18 -4
- package/dist/modules/dynamic-credentials.ee/credential-resolvers.controller.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js +4 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/errors/system-resolver-modification.error.d.ts +4 -0
- package/dist/modules/dynamic-credentials.ee/errors/system-resolver-modification.error.js +11 -0
- package/dist/modules/dynamic-credentials.ee/errors/system-resolver-modification.error.js.map +1 -0
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.d.ts +7 -0
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.js +40 -0
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.js.map +1 -0
- package/dist/modules/dynamic-credentials.ee/services/credential-resolver-workflow.service.d.ts +3 -1
- package/dist/modules/dynamic-credentials.ee/services/credential-resolver-workflow.service.js +6 -3
- package/dist/modules/dynamic-credentials.ee/services/credential-resolver-workflow.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/credential-resolver.service.d.ts +2 -0
- package/dist/modules/dynamic-credentials.ee/services/credential-resolver.service.js +22 -0
- package/dist/modules/dynamic-credentials.ee/services/credential-resolver.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.d.ts +3 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.js +7 -3
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.d.ts +4 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js +11 -3
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/index.d.ts +2 -0
- package/dist/modules/dynamic-credentials.ee/services/index.js +2 -0
- package/dist/modules/dynamic-credentials.ee/services/index.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.d.ts +14 -0
- package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.js +70 -0
- package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.js.map +1 -0
- package/dist/modules/insights/insights-collection.service.js +1 -1
- package/dist/modules/insights/insights-collection.service.js.map +1 -1
- package/dist/modules/instance-ai/entities/index.d.ts +6 -2
- package/dist/modules/instance-ai/entities/index.js +9 -5
- package/dist/modules/instance-ai/entities/index.js.map +1 -1
- package/dist/modules/instance-ai/entities/instance-ai-checkpoint.entity.d.ts +12 -0
- package/dist/modules/instance-ai/entities/instance-ai-checkpoint.entity.js +54 -0
- package/dist/modules/instance-ai/entities/instance-ai-checkpoint.entity.js.map +1 -0
- package/dist/modules/instance-ai/entities/instance-ai-observation-cursor.entity.d.ts +6 -0
- package/dist/modules/instance-ai/entities/instance-ai-observation-cursor.entity.js +33 -0
- package/dist/modules/instance-ai/entities/instance-ai-observation-cursor.entity.js.map +1 -0
- package/dist/modules/instance-ai/entities/instance-ai-observation-lock.entity.d.ts +8 -0
- package/dist/modules/instance-ai/entities/instance-ai-observation-lock.entity.js +37 -0
- package/dist/modules/instance-ai/entities/instance-ai-observation-lock.entity.js.map +1 -0
- package/dist/modules/instance-ai/entities/instance-ai-observation.entity.d.ts +12 -0
- package/dist/modules/instance-ai/entities/instance-ai-observation.entity.js +52 -0
- package/dist/modules/instance-ai/entities/instance-ai-observation.entity.js.map +1 -0
- package/dist/modules/instance-ai/entities/instance-ai-pending-confirmation.entity.d.ts +19 -0
- package/dist/modules/instance-ai/entities/instance-ai-pending-confirmation.entity.js +82 -0
- package/dist/modules/instance-ai/entities/instance-ai-pending-confirmation.entity.js.map +1 -0
- package/dist/modules/instance-ai/entities/instance-ai-run-snapshot.entity.d.ts +2 -0
- package/dist/modules/instance-ai/entities/instance-ai-run-snapshot.entity.js +8 -0
- package/dist/modules/instance-ai/entities/instance-ai-run-snapshot.entity.js.map +1 -1
- package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.d.ts +12 -2
- package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.js +40 -4
- package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.js.map +1 -1
- package/dist/modules/instance-ai/eval/execution.service.d.ts +8 -2
- package/dist/modules/instance-ai/eval/execution.service.js +137 -47
- package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/llm-wire-server.d.ts +31 -0
- package/dist/modules/instance-ai/eval/llm-wire-server.js +127 -0
- package/dist/modules/instance-ai/eval/llm-wire-server.js.map +1 -0
- package/dist/modules/instance-ai/eval/openai-envelope.d.ts +6 -0
- package/dist/modules/instance-ai/eval/openai-envelope.js +96 -0
- package/dist/modules/instance-ai/eval/openai-envelope.js.map +1 -0
- package/dist/modules/instance-ai/eval/proxy-loopback.d.ts +1 -0
- package/dist/modules/instance-ai/eval/proxy-loopback.js +44 -0
- package/dist/modules/instance-ai/eval/proxy-loopback.js.map +1 -0
- package/dist/modules/instance-ai/eval/sub-agent-eval.service.js +29 -7
- package/dist/modules/instance-ai/eval/sub-agent-eval.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/workflow-analysis.d.ts +7 -1
- package/dist/modules/instance-ai/eval/workflow-analysis.js +178 -3
- package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-memory.service.d.ts +6 -6
- package/dist/modules/instance-ai/instance-ai-memory.service.js +44 -85
- package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +2 -1
- package/dist/modules/instance-ai/instance-ai-settings.service.js +11 -22
- package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +2 -0
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +105 -13
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.module.d.ts +1 -1
- package/dist/modules/instance-ai/instance-ai.module.js +10 -6
- package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +34 -12
- package/dist/modules/instance-ai/instance-ai.service.js +724 -264
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.d.ts +4 -1
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js +3 -1
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js.map +1 -1
- package/dist/modules/instance-ai/message-parser.d.ts +3 -3
- package/dist/modules/instance-ai/message-parser.js +65 -61
- package/dist/modules/instance-ai/message-parser.js.map +1 -1
- package/dist/modules/instance-ai/node-definition-resolver.js +12 -48
- package/dist/modules/instance-ai/node-definition-resolver.js.map +1 -1
- package/dist/modules/instance-ai/repositories/index.d.ts +4 -2
- package/dist/modules/instance-ai/repositories/index.js +9 -5
- package/dist/modules/instance-ai/repositories/index.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.d.ts +5 -0
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js +26 -0
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js.map +1 -0
- package/dist/modules/instance-ai/repositories/instance-ai-observation-cursor.repository.d.ts +5 -0
- package/dist/modules/instance-ai/repositories/instance-ai-observation-cursor.repository.js +26 -0
- package/dist/modules/instance-ai/repositories/instance-ai-observation-cursor.repository.js.map +1 -0
- package/dist/modules/instance-ai/repositories/instance-ai-observation-lock.repository.d.ts +5 -0
- package/dist/modules/instance-ai/repositories/instance-ai-observation-lock.repository.js +26 -0
- package/dist/modules/instance-ai/repositories/instance-ai-observation-lock.repository.js.map +1 -0
- package/dist/modules/instance-ai/repositories/instance-ai-observation.repository.d.ts +5 -0
- package/dist/modules/{agents/repositories/agent-published-version.repository.js → instance-ai/repositories/instance-ai-observation.repository.js} +8 -17
- package/dist/modules/instance-ai/repositories/instance-ai-observation.repository.js.map +1 -0
- package/dist/modules/instance-ai/storage/db-snapshot-storage.d.ts +2 -0
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js +12 -2
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js.map +1 -1
- package/dist/modules/instance-ai/storage/index.d.ts +2 -3
- package/dist/modules/instance-ai/storage/index.js +5 -7
- package/dist/modules/instance-ai/storage/index.js.map +1 -1
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.d.ts +15 -0
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js +94 -0
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js.map +1 -0
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.d.ts +94 -0
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js +324 -0
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js.map +1 -0
- package/dist/modules/instance-ai/storage/typeorm-observation-log-store.d.ts +37 -0
- package/dist/modules/instance-ai/storage/typeorm-observation-log-store.js +212 -0
- package/dist/modules/instance-ai/storage/typeorm-observation-log-store.js.map +1 -0
- package/dist/modules/instance-ai/web-research/fetch-and-extract.js +34 -11
- package/dist/modules/instance-ai/web-research/fetch-and-extract.js.map +1 -1
- package/dist/modules/mcp/mcp.service.js +5 -5
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/tools/schemas.d.ts +24 -24
- package/dist/modules/mcp/tools/search-projects.tool.js +59 -13
- package/dist/modules/mcp/tools/search-projects.tool.js.map +1 -1
- package/dist/modules/mcp/tools/test-workflow.tool.d.ts +2 -2
- package/dist/modules/mcp/tools/workflow-builder/connection-structure-check.d.ts +35 -0
- package/dist/modules/mcp/tools/workflow-builder/connection-structure-check.js +88 -0
- package/dist/modules/mcp/tools/workflow-builder/connection-structure-check.js.map +1 -0
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.d.ts +3 -2
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +41 -9
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/data-table-validation.d.ts +13 -0
- package/dist/modules/mcp/tools/workflow-builder/data-table-validation.js +87 -0
- package/dist/modules/mcp/tools/workflow-builder/data-table-validation.js.map +1 -0
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +2 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +42 -6
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.d.ts +2 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js +5 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-validation.utils.js +1 -1
- package/dist/modules/mcp/tools/workflow-validation.utils.js.map +1 -1
- package/dist/modules/mcp-registry/mcp-registry-test.controller.js +5 -1
- package/dist/modules/mcp-registry/mcp-registry-test.controller.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.d.ts +18 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +73 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.d.ts +5 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js +31 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js.map +1 -0
- package/dist/modules/n8n-packages/io/package-writer.d.ts +6 -0
- package/dist/{scaling/multi-main-setup.types.js → modules/n8n-packages/io/package-writer.js} +1 -1
- package/dist/modules/n8n-packages/io/package-writer.js.map +1 -0
- package/dist/modules/n8n-packages/io/slug.utils.d.ts +1 -0
- package/dist/modules/n8n-packages/io/slug.utils.js +16 -0
- package/dist/modules/n8n-packages/io/slug.utils.js.map +1 -0
- package/dist/modules/n8n-packages/io/tar/tar-package-writer.d.ts +9 -0
- package/dist/modules/n8n-packages/io/tar/tar-package-writer.js +71 -0
- package/dist/modules/n8n-packages/io/tar/tar-package-writer.js.map +1 -0
- package/dist/modules/n8n-packages/n8n-packages.controller.d.ts +10 -0
- package/dist/modules/n8n-packages/n8n-packages.controller.js +45 -0
- package/dist/modules/n8n-packages/n8n-packages.controller.js.map +1 -0
- package/dist/modules/{inbound-secrets/inbound-secrets.module.d.ts → n8n-packages/n8n-packages.module.d.ts} +1 -1
- package/dist/modules/{inbound-secrets/inbound-secrets.module.js → n8n-packages/n8n-packages.module.js} +12 -16
- package/dist/modules/n8n-packages/n8n-packages.module.js.map +1 -0
- package/dist/modules/n8n-packages/n8n-packages.service.d.ts +10 -0
- package/dist/modules/n8n-packages/n8n-packages.service.js +49 -0
- package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -0
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +5 -0
- package/dist/modules/n8n-packages/n8n-packages.types.js +3 -0
- package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -0
- package/dist/modules/n8n-packages/spec/constants.d.ts +1 -0
- package/dist/modules/n8n-packages/spec/constants.js +5 -0
- package/dist/modules/n8n-packages/spec/constants.js.map +1 -0
- package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +55 -0
- package/dist/modules/n8n-packages/spec/manifest.schema.js +17 -0
- package/dist/modules/n8n-packages/spec/manifest.schema.js.map +1 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.d.ts +169 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js +46 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js.map +1 -0
- package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.d.ts +5 -1
- package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.js +18 -2
- package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.js.map +1 -1
- package/dist/modules/oauth-jwe/oauth-jwe.utils.js +27 -2
- package/dist/modules/oauth-jwe/oauth-jwe.utils.js.map +1 -1
- package/dist/modules/otel/execution-level-tracer.js +1 -0
- package/dist/modules/otel/execution-level-tracer.js.map +1 -1
- package/dist/modules/otel/execution-level-tracer.types.d.ts +11 -6
- package/dist/modules/otel/execution-level-tracer.types.js.map +1 -1
- package/dist/modules/otel/otel-lifecycle-handler.d.ts +5 -1
- package/dist/modules/otel/otel-lifecycle-handler.js +30 -2
- package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
- package/dist/modules/otel/otel.constants.d.ts +1 -0
- package/dist/modules/otel/otel.constants.js +1 -0
- package/dist/modules/otel/otel.constants.js.map +1 -1
- package/dist/modules/runtime-credentials/path-traversal.js.map +1 -0
- package/dist/modules/runtime-credentials/runtime-credentials-access.service.d.ts +8 -0
- package/dist/modules/runtime-credentials/runtime-credentials-access.service.js +35 -0
- package/dist/modules/runtime-credentials/runtime-credentials-access.service.js.map +1 -0
- package/dist/modules/{inbound-secrets/inbound-secrets-context-hook.d.ts → runtime-credentials/runtime-credentials-context-hook.d.ts} +4 -5
- package/dist/modules/{inbound-secrets/inbound-secrets-context-hook.js → runtime-credentials/runtime-credentials-context-hook.js} +14 -22
- package/dist/modules/runtime-credentials/runtime-credentials-context-hook.js.map +1 -0
- package/dist/modules/runtime-credentials/runtime-credentials.config.d.ts +3 -0
- package/dist/modules/{inbound-secrets/inbound-secrets.config.js → runtime-credentials/runtime-credentials.config.js} +7 -7
- package/dist/modules/runtime-credentials/runtime-credentials.config.js.map +1 -0
- package/dist/modules/runtime-credentials/runtime-credentials.module.d.ts +4 -0
- package/dist/modules/runtime-credentials/runtime-credentials.module.js +65 -0
- package/dist/modules/runtime-credentials/runtime-credentials.module.js.map +1 -0
- package/dist/modules/runtime-credentials/runtime-credentials.schemas.d.ts +23 -0
- package/dist/modules/runtime-credentials/runtime-credentials.schemas.js +10 -0
- package/dist/modules/runtime-credentials/runtime-credentials.schemas.js.map +1 -0
- package/dist/modules/runtime-credentials/runtime-credentials.service.d.ts +18 -0
- package/dist/modules/{inbound-secrets/inbound-secrets.service.js → runtime-credentials/runtime-credentials.service.js} +31 -28
- package/dist/modules/runtime-credentials/runtime-credentials.service.js.map +1 -0
- package/dist/modules/source-control.ee/source-control-export.service.ee.d.ts +1 -1
- package/dist/modules/source-control.ee/source-control-export.service.ee.js +3 -1
- package/dist/modules/source-control.ee/source-control-export.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +2 -2
- package/dist/modules/source-control.ee/source-control-import.service.ee.js +29 -8
- package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-status.service.ee.js +4 -4
- package/dist/modules/source-control.ee/source-control-status.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +2 -2
- package/dist/modules/source-control.ee/source-control.service.ee.d.ts +1 -1
- package/dist/modules/source-control.ee/types/exportable-workflow.d.ts +2 -1
- package/dist/modules/sso-saml/saml.service.ee.js +5 -1
- package/dist/modules/sso-saml/saml.service.ee.js.map +1 -1
- package/dist/modules/workflow-index/workflow-dependency.controller.d.ts +1 -4
- package/dist/modules/workflow-index/workflow-dependency.controller.js +2 -13
- package/dist/modules/workflow-index/workflow-dependency.controller.js.map +1 -1
- package/dist/node-catalog/node-catalog.service.d.ts +1 -2
- package/dist/node-catalog/node-catalog.service.js +6 -10
- package/dist/node-catalog/node-catalog.service.js.map +1 -1
- package/dist/node-execution/ephemeral-node-executor.js +19 -11
- package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
- package/dist/oauth/oauth-jwe-service.proxy.d.ts +12 -2
- package/dist/oauth/oauth-jwe-service.proxy.js +5 -0
- package/dist/oauth/oauth-jwe-service.proxy.js.map +1 -1
- package/dist/oauth/oauth.service.d.ts +6 -1
- package/dist/oauth/oauth.service.js +42 -4
- package/dist/oauth/oauth.service.js.map +1 -1
- package/dist/permissions.ee/check-access.d.ts +2 -2
- package/dist/permissions.ee/check-access.js +15 -11
- package/dist/permissions.ee/check-access.js.map +1 -1
- package/dist/posthog/index.d.ts +2 -0
- package/dist/posthog/index.js +28 -6
- package/dist/posthog/index.js.map +1 -1
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +10 -0
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +42 -0
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -0
- package/dist/public-api/v1/openapi.yml +55 -0
- package/dist/requests.d.ts +1 -1
- package/dist/scaling/constants.js +3 -0
- package/dist/scaling/constants.js.map +1 -1
- package/dist/scaling/multi-main-setup.ee.d.ts +12 -7
- package/dist/scaling/multi-main-setup.ee.js +125 -22
- package/dist/scaling/multi-main-setup.ee.js.map +1 -1
- package/dist/server.d.ts +1 -0
- package/dist/server.js +3 -4
- package/dist/server.js.map +1 -1
- package/dist/services/dynamic-node-parameters.service.d.ts +0 -1
- package/dist/services/dynamic-node-parameters.service.js +6 -14
- package/dist/services/dynamic-node-parameters.service.js.map +1 -1
- package/dist/services/frontend.service.js +1 -1
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/import.service.js +3 -1
- package/dist/services/import.service.js.map +1 -1
- package/dist/services/proxy-token-manager.js +2 -13
- package/dist/services/proxy-token-manager.js.map +1 -1
- package/dist/services/runtime-credential-proxy.service.d.ts +9 -0
- package/dist/services/runtime-credential-proxy.service.js +29 -0
- package/dist/services/runtime-credential-proxy.service.js.map +1 -0
- package/dist/services/url.service.d.ts +1 -0
- package/dist/services/url.service.js +3 -0
- package/dist/services/url.service.js.map +1 -1
- package/dist/telemetry/index.d.ts +4 -1
- package/dist/telemetry/index.js +16 -8
- package/dist/telemetry/index.js.map +1 -1
- package/dist/utils.d.ts +2 -1
- package/dist/utils.js +10 -0
- package/dist/utils.js.map +1 -1
- package/dist/webhooks/live-webhooks.js +2 -2
- package/dist/webhooks/live-webhooks.js.map +1 -1
- package/dist/webhooks/webhook-helpers.js +1 -1
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/workflow-execute-additional-data.d.ts +3 -1
- package/dist/workflow-execute-additional-data.js +26 -3
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-helpers.d.ts +3 -1
- package/dist/workflow-helpers.js +39 -5
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflow-hook-context.service.d.ts +6 -0
- package/dist/workflow-hook-context.service.js +32 -0
- package/dist/workflow-hook-context.service.js.map +1 -0
- package/dist/workflow-runner.js +2 -1
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/utils.d.ts +3 -0
- package/dist/workflows/utils.js +19 -0
- package/dist/workflows/utils.js.map +1 -1
- package/dist/workflows/workflow-creation.service.js +4 -2
- package/dist/workflows/workflow-creation.service.js.map +1 -1
- package/dist/workflows/workflow-execution.service.d.ts +4 -3
- package/dist/workflows/workflow-execution.service.js +8 -3
- package/dist/workflows/workflow-execution.service.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +6 -2
- package/dist/workflows/workflow-finder.service.js +18 -0
- package/dist/workflows/workflow-finder.service.js.map +1 -1
- package/dist/workflows/workflow-history/workflow-history.controller.d.ts +1 -1
- package/dist/workflows/workflow-history/workflow-history.service.d.ts +2 -1
- package/dist/workflows/workflow-history/workflow-history.service.js +1 -0
- package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
- package/dist/workflows/workflow-validation.service.d.ts +3 -1
- package/dist/workflows/workflow-validation.service.js +6 -3
- package/dist/workflows/workflow-validation.service.js.map +1 -1
- package/dist/workflows/workflow.service.d.ts +3 -3
- package/dist/workflows/workflow.service.js +26 -4
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.d.ts +31 -21
- package/dist/workflows/workflows.controller.js +6 -2
- package/dist/workflows/workflows.controller.js.map +1 -1
- package/package.json +37 -35
- package/dist/modules/agents/entities/agent-published-version.entity.js.map +0 -1
- package/dist/modules/agents/repositories/agent-published-version.repository.d.ts +0 -20
- package/dist/modules/agents/repositories/agent-published-version.repository.js.map +0 -1
- package/dist/modules/inbound-secrets/inbound-secrets-context-hook.js.map +0 -1
- package/dist/modules/inbound-secrets/inbound-secrets.config.d.ts +0 -3
- package/dist/modules/inbound-secrets/inbound-secrets.config.js.map +0 -1
- package/dist/modules/inbound-secrets/inbound-secrets.module.js.map +0 -1
- package/dist/modules/inbound-secrets/inbound-secrets.schemas.d.ts +0 -3
- package/dist/modules/inbound-secrets/inbound-secrets.schemas.js +0 -6
- package/dist/modules/inbound-secrets/inbound-secrets.schemas.js.map +0 -1
- package/dist/modules/inbound-secrets/inbound-secrets.service.d.ts +0 -17
- package/dist/modules/inbound-secrets/inbound-secrets.service.js.map +0 -1
- package/dist/modules/inbound-secrets/path-traversal.js.map +0 -1
- package/dist/modules/instance-ai/compaction.service.d.ts +0 -24
- package/dist/modules/instance-ai/compaction.service.js +0 -213
- package/dist/modules/instance-ai/compaction.service.js.map +0 -1
- package/dist/modules/instance-ai/entities/instance-ai-observational-memory.entity.d.ts +0 -33
- package/dist/modules/instance-ai/entities/instance-ai-observational-memory.entity.js +0 -145
- package/dist/modules/instance-ai/entities/instance-ai-observational-memory.entity.js.map +0 -1
- package/dist/modules/instance-ai/entities/instance-ai-workflow-snapshot.entity.d.ts +0 -8
- package/dist/modules/instance-ai/entities/instance-ai-workflow-snapshot.entity.js.map +0 -1
- package/dist/modules/instance-ai/repositories/instance-ai-observational-memory.repository.d.ts +0 -5
- package/dist/modules/instance-ai/repositories/instance-ai-observational-memory.repository.js.map +0 -1
- package/dist/modules/instance-ai/repositories/instance-ai-workflow-snapshot.repository.d.ts +0 -5
- package/dist/modules/instance-ai/repositories/instance-ai-workflow-snapshot.repository.js.map +0 -1
- package/dist/modules/instance-ai/snapshot-pruning.service.d.ts +0 -17
- package/dist/modules/instance-ai/snapshot-pruning.service.js +0 -89
- package/dist/modules/instance-ai/snapshot-pruning.service.js.map +0 -1
- package/dist/modules/instance-ai/storage/typeorm-composite-store.d.ts +0 -9
- package/dist/modules/instance-ai/storage/typeorm-composite-store.js +0 -33
- package/dist/modules/instance-ai/storage/typeorm-composite-store.js.map +0 -1
- package/dist/modules/instance-ai/storage/typeorm-memory-storage.d.ts +0 -96
- package/dist/modules/instance-ai/storage/typeorm-memory-storage.js +0 -864
- package/dist/modules/instance-ai/storage/typeorm-memory-storage.js.map +0 -1
- package/dist/modules/instance-ai/storage/typeorm-workflows-storage.d.ts +0 -44
- package/dist/modules/instance-ai/storage/typeorm-workflows-storage.js +0 -156
- package/dist/modules/instance-ai/storage/typeorm-workflows-storage.js.map +0 -1
- package/dist/scaling/multi-main-setup-legacy.d.ts +0 -25
- package/dist/scaling/multi-main-setup-legacy.js +0 -75
- package/dist/scaling/multi-main-setup-legacy.js.map +0 -1
- package/dist/scaling/multi-main-setup-v2.d.ts +0 -25
- package/dist/scaling/multi-main-setup-v2.js +0 -143
- package/dist/scaling/multi-main-setup-v2.js.map +0 -1
- package/dist/scaling/multi-main-setup.types.d.ts +0 -6
- package/dist/scaling/multi-main-setup.types.js.map +0 -1
- /package/dist/modules/{inbound-secrets → runtime-credentials}/path-traversal.d.ts +0 -0
- /package/dist/modules/{inbound-secrets → runtime-credentials}/path-traversal.js +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { ToolDescriptor } from '@n8n/agents';
|
|
2
2
|
import { type AgentJsonConfig, type AgentSkill } from '@n8n/api-types';
|
|
3
|
-
import {
|
|
3
|
+
import { WithTimestamps } from '@n8n/db';
|
|
4
4
|
import { type Relation } from '@n8n/typeorm';
|
|
5
5
|
import type { Agent } from './agent.entity';
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class AgentHistory extends WithTimestamps {
|
|
7
|
+
versionId: string;
|
|
7
8
|
agentId: string;
|
|
8
9
|
agent: Relation<Agent>;
|
|
9
10
|
schema: AgentJsonConfig | null;
|
|
@@ -12,10 +13,6 @@ export declare class AgentPublishedVersion extends WithTimestamps {
|
|
|
12
13
|
descriptor: ToolDescriptor;
|
|
13
14
|
}> | null;
|
|
14
15
|
skills: Record<string, AgentSkill> | null;
|
|
15
|
-
publishedFromVersionId: string;
|
|
16
|
-
model: string | null;
|
|
17
|
-
provider: string | null;
|
|
18
|
-
credentialId: string | null;
|
|
19
16
|
publishedById: string | null;
|
|
20
|
-
|
|
17
|
+
author: string;
|
|
21
18
|
}
|
package/dist/modules/agents/entities/{agent-published-version.entity.js → agent-history.entity.js}
RENAMED
|
@@ -9,59 +9,47 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.AgentHistory = void 0;
|
|
13
13
|
const db_1 = require("@n8n/db");
|
|
14
14
|
const typeorm_1 = require("@n8n/typeorm");
|
|
15
|
-
let
|
|
15
|
+
let AgentHistory = class AgentHistory extends db_1.WithTimestamps {
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
17
|
+
exports.AgentHistory = AgentHistory;
|
|
18
18
|
__decorate([
|
|
19
19
|
(0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 36 }),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
|
-
],
|
|
21
|
+
], AgentHistory.prototype, "versionId", void 0);
|
|
22
22
|
__decorate([
|
|
23
|
-
(0, typeorm_1.
|
|
23
|
+
(0, typeorm_1.Index)(),
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 36 }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], AgentHistory.prototype, "agentId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.ManyToOne)('Agent', { onDelete: 'CASCADE' }),
|
|
24
29
|
(0, typeorm_1.JoinColumn)({ name: 'agentId' }),
|
|
25
30
|
__metadata("design:type", Object)
|
|
26
|
-
],
|
|
31
|
+
], AgentHistory.prototype, "agent", void 0);
|
|
27
32
|
__decorate([
|
|
28
33
|
(0, db_1.JsonColumn)({ nullable: true, default: null }),
|
|
29
34
|
__metadata("design:type", Object)
|
|
30
|
-
],
|
|
35
|
+
], AgentHistory.prototype, "schema", void 0);
|
|
31
36
|
__decorate([
|
|
32
37
|
(0, db_1.JsonColumn)({ nullable: true, default: null }),
|
|
33
38
|
__metadata("design:type", Object)
|
|
34
|
-
],
|
|
39
|
+
], AgentHistory.prototype, "tools", void 0);
|
|
35
40
|
__decorate([
|
|
36
41
|
(0, db_1.JsonColumn)({ nullable: true, default: null }),
|
|
37
42
|
__metadata("design:type", Object)
|
|
38
|
-
],
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 36 }),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], AgentPublishedVersion.prototype, "publishedFromVersionId", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 128, nullable: true }),
|
|
45
|
-
__metadata("design:type", Object)
|
|
46
|
-
], AgentPublishedVersion.prototype, "model", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 128, nullable: true }),
|
|
49
|
-
__metadata("design:type", Object)
|
|
50
|
-
], AgentPublishedVersion.prototype, "provider", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 36, nullable: true }),
|
|
53
|
-
__metadata("design:type", Object)
|
|
54
|
-
], AgentPublishedVersion.prototype, "credentialId", void 0);
|
|
43
|
+
], AgentHistory.prototype, "skills", void 0);
|
|
55
44
|
__decorate([
|
|
56
45
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
57
46
|
__metadata("design:type", Object)
|
|
58
|
-
],
|
|
47
|
+
], AgentHistory.prototype, "publishedById", void 0);
|
|
59
48
|
__decorate([
|
|
60
|
-
(0, typeorm_1.
|
|
61
|
-
(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
//# sourceMappingURL=agent-published-version.entity.js.map
|
|
49
|
+
(0, typeorm_1.Column)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], AgentHistory.prototype, "author", void 0);
|
|
52
|
+
exports.AgentHistory = AgentHistory = __decorate([
|
|
53
|
+
(0, typeorm_1.Entity)({ name: 'agent_history' })
|
|
54
|
+
], AgentHistory);
|
|
55
|
+
//# sourceMappingURL=agent-history.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-history.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-history.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gCAAqD;AACrD,0CAQsB;AAUf,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,mBAAc;CA0C/C,CAAA;AA1CY,oCAAY;AAExB;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;+CAC7B;AAIlB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;6CACxB;AAIhB;IAFC,IAAA,mBAAS,EAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC3C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;2CACT;AAGvB;IADC,IAAA,eAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;4CACf;AAG/B;IADC,IAAA,eAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;2CAOrC;AAGT;IADC,IAAA,eAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;4CACJ;AAQ1C;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACZ;AAQ7B;IADC,IAAA,gBAAM,GAAE;;4CACM;uBAzCH,YAAY;IADxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;GACrB,YAAY,CA0CxB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AgentMemoryEntryCursorEntity = void 0;
|
|
13
|
+
const db_1 = require("@n8n/db");
|
|
14
|
+
const typeorm_1 = require("@n8n/typeorm");
|
|
15
|
+
let AgentMemoryEntryCursorEntity = class AgentMemoryEntryCursorEntity extends db_1.WithTimestamps {
|
|
16
|
+
};
|
|
17
|
+
exports.AgentMemoryEntryCursorEntity = AgentMemoryEntryCursorEntity;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 36 }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], AgentMemoryEntryCursorEntity.prototype, "agentId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 255 }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], AgentMemoryEntryCursorEntity.prototype, "observationScopeId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 36 }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], AgentMemoryEntryCursorEntity.prototype, "lastIndexedObservationId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, db_1.DateTimeColumn)(),
|
|
32
|
+
__metadata("design:type", Date)
|
|
33
|
+
], AgentMemoryEntryCursorEntity.prototype, "lastIndexedObservationCreatedAt", void 0);
|
|
34
|
+
exports.AgentMemoryEntryCursorEntity = AgentMemoryEntryCursorEntity = __decorate([
|
|
35
|
+
(0, typeorm_1.Entity)({ name: 'agents_memory_entry_cursors' }),
|
|
36
|
+
(0, typeorm_1.Index)(['observationScopeId'])
|
|
37
|
+
], AgentMemoryEntryCursorEntity);
|
|
38
|
+
//# sourceMappingURL=agent-memory-entry-cursor.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-memory-entry-cursor.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-memory-entry-cursor.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAyD;AACzD,0CAAoE;AAI7D,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,mBAAc;CAY/D,CAAA;AAZY,oEAA4B;AAExC;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;6DAC/B;AAGhB;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;wEACrB;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;8EACP;AAGjC;IADC,IAAA,mBAAc,GAAE;8BACgB,IAAI;qFAAC;uCAX1B,4BAA4B;IAFxC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,6BAA6B,EAAE,CAAC;IAC/C,IAAA,eAAK,EAAC,CAAC,oBAAoB,CAAC,CAAC;GACjB,4BAA4B,CAYxC"}
|
|
@@ -9,33 +9,30 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.AgentMemoryEntryLockEntity = void 0;
|
|
13
13
|
const db_1 = require("@n8n/db");
|
|
14
14
|
const typeorm_1 = require("@n8n/typeorm");
|
|
15
|
-
let
|
|
15
|
+
let AgentMemoryEntryLockEntity = class AgentMemoryEntryLockEntity extends db_1.WithTimestamps {
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
17
|
+
exports.AgentMemoryEntryLockEntity = AgentMemoryEntryLockEntity;
|
|
18
18
|
__decorate([
|
|
19
19
|
(0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 36 }),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
|
-
],
|
|
21
|
+
], AgentMemoryEntryLockEntity.prototype, "agentId", void 0);
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 255 }),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
|
-
],
|
|
25
|
+
], AgentMemoryEntryLockEntity.prototype, "resourceId", void 0);
|
|
26
26
|
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({ type: 'varchar', length:
|
|
28
|
-
__metadata("design:type", Object)
|
|
29
|
-
], InstanceAiWorkflowSnapshot.prototype, "resourceId", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
32
|
-
__metadata("design:type", Object)
|
|
33
|
-
], InstanceAiWorkflowSnapshot.prototype, "status", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ type: 'text' }),
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
|
|
36
28
|
__metadata("design:type", String)
|
|
37
|
-
],
|
|
38
|
-
|
|
39
|
-
(0,
|
|
40
|
-
|
|
41
|
-
|
|
29
|
+
], AgentMemoryEntryLockEntity.prototype, "holderId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, db_1.DateTimeColumn)(),
|
|
32
|
+
__metadata("design:type", Date)
|
|
33
|
+
], AgentMemoryEntryLockEntity.prototype, "heldUntil", void 0);
|
|
34
|
+
exports.AgentMemoryEntryLockEntity = AgentMemoryEntryLockEntity = __decorate([
|
|
35
|
+
(0, typeorm_1.Entity)({ name: 'agents_memory_entry_locks' }),
|
|
36
|
+
(0, typeorm_1.Index)(['resourceId'])
|
|
37
|
+
], AgentMemoryEntryLockEntity);
|
|
38
|
+
//# sourceMappingURL=agent-memory-entry-lock.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-memory-entry-lock.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-memory-entry-lock.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAyD;AACzD,0CAAoE;AAI7D,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,mBAAc;CAY7D,CAAA;AAZY,gEAA0B;AAEtC;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;2DAC/B;AAGhB;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;8DAC7B;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;4DACvB;AAGjB;IADC,IAAA,mBAAc,GAAE;8BACN,IAAI;6DAAC;qCAXJ,0BAA0B;IAFtC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC;IAC7C,IAAA,eAAK,EAAC,CAAC,YAAY,CAAC,CAAC;GACT,0BAA0B,CAYtC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WithTimestampsAndStringId } from '@n8n/db';
|
|
2
|
+
export declare class AgentMemoryEntrySourceEntity extends WithTimestampsAndStringId {
|
|
3
|
+
agentId: string;
|
|
4
|
+
memoryEntryId: string;
|
|
5
|
+
observationId: string;
|
|
6
|
+
threadId: string;
|
|
7
|
+
evidenceHash: string;
|
|
8
|
+
evidenceText: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AgentMemoryEntrySourceEntity = void 0;
|
|
13
|
+
const db_1 = require("@n8n/db");
|
|
14
|
+
const typeorm_1 = require("@n8n/typeorm");
|
|
15
|
+
let AgentMemoryEntrySourceEntity = class AgentMemoryEntrySourceEntity extends db_1.WithTimestampsAndStringId {
|
|
16
|
+
};
|
|
17
|
+
exports.AgentMemoryEntrySourceEntity = AgentMemoryEntrySourceEntity;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 36 }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], AgentMemoryEntrySourceEntity.prototype, "agentId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 36 }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], AgentMemoryEntrySourceEntity.prototype, "memoryEntryId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 36 }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], AgentMemoryEntrySourceEntity.prototype, "observationId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], AgentMemoryEntrySourceEntity.prototype, "threadId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], AgentMemoryEntrySourceEntity.prototype, "evidenceHash", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], AgentMemoryEntrySourceEntity.prototype, "evidenceText", void 0);
|
|
42
|
+
exports.AgentMemoryEntrySourceEntity = AgentMemoryEntrySourceEntity = __decorate([
|
|
43
|
+
(0, typeorm_1.Entity)({ name: 'agents_memory_entry_sources' }),
|
|
44
|
+
(0, typeorm_1.Index)(['memoryEntryId', 'observationId', 'evidenceHash'], { unique: true }),
|
|
45
|
+
(0, typeorm_1.Index)(['observationId']),
|
|
46
|
+
(0, typeorm_1.Index)(['agentId', 'threadId']),
|
|
47
|
+
(0, typeorm_1.Index)(['threadId'])
|
|
48
|
+
], AgentMemoryEntrySourceEntity);
|
|
49
|
+
//# sourceMappingURL=agent-memory-entry-source.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-memory-entry-source.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-memory-entry-source.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAoD;AACpD,0CAAqD;AAO9C,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,8BAAyB;CAkB1E,CAAA;AAlBY,oEAA4B;AAExC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;6DACxB;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;mEAClB;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;mEAClB;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;8DACxB;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;kEACnB;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kEACJ;uCAjBT,4BAA4B;IALxC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,6BAA6B,EAAE,CAAC;IAC/C,IAAA,eAAK,EAAC,CAAC,eAAe,EAAE,eAAe,EAAE,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC3E,IAAA,eAAK,EAAC,CAAC,eAAe,CAAC,CAAC;IACxB,IAAA,eAAK,EAAC,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAC9B,IAAA,eAAK,EAAC,CAAC,UAAU,CAAC,CAAC;GACP,4BAA4B,CAkBxC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WithTimestampsAndStringId } from '@n8n/db';
|
|
2
|
+
import type { JSONObject } from '@n8n/agents';
|
|
3
|
+
export type MemoryEntryStatus = 'active' | 'superseded' | 'dropped';
|
|
4
|
+
export declare class AgentMemoryEntryEntity extends WithTimestampsAndStringId {
|
|
5
|
+
agentId: string;
|
|
6
|
+
resourceId: string;
|
|
7
|
+
content: string;
|
|
8
|
+
contentHash: string;
|
|
9
|
+
status: MemoryEntryStatus;
|
|
10
|
+
supersededBy: string | null;
|
|
11
|
+
embeddingModel: string | null;
|
|
12
|
+
embedding: number[] | null;
|
|
13
|
+
metadata: JSONObject | null;
|
|
14
|
+
lastSeenAt: Date;
|
|
15
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AgentMemoryEntryEntity = void 0;
|
|
13
|
+
const db_1 = require("@n8n/db");
|
|
14
|
+
const typeorm_1 = require("@n8n/typeorm");
|
|
15
|
+
let AgentMemoryEntryEntity = class AgentMemoryEntryEntity extends db_1.WithTimestampsAndStringId {
|
|
16
|
+
};
|
|
17
|
+
exports.AgentMemoryEntryEntity = AgentMemoryEntryEntity;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 36 }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], AgentMemoryEntryEntity.prototype, "agentId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], AgentMemoryEntryEntity.prototype, "resourceId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], AgentMemoryEntryEntity.prototype, "content", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], AgentMemoryEntryEntity.prototype, "contentHash", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 16 }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], AgentMemoryEntryEntity.prototype, "status", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 36, nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], AgentMemoryEntryEntity.prototype, "supersededBy", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 128, nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], AgentMemoryEntryEntity.prototype, "embeddingModel", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, db_1.JsonColumn)({ nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], AgentMemoryEntryEntity.prototype, "embedding", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, db_1.JsonColumn)({ nullable: true }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], AgentMemoryEntryEntity.prototype, "metadata", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, db_1.DateTimeColumn)(),
|
|
56
|
+
__metadata("design:type", Date)
|
|
57
|
+
], AgentMemoryEntryEntity.prototype, "lastSeenAt", void 0);
|
|
58
|
+
exports.AgentMemoryEntryEntity = AgentMemoryEntryEntity = __decorate([
|
|
59
|
+
(0, typeorm_1.Entity)({ name: 'agents_memory_entries' }),
|
|
60
|
+
(0, typeorm_1.Index)(['agentId', 'resourceId', 'status', 'createdAt', 'id']),
|
|
61
|
+
(0, typeorm_1.Index)(['agentId', 'resourceId', 'contentHash'], { unique: true }),
|
|
62
|
+
(0, typeorm_1.Index)(['resourceId']),
|
|
63
|
+
(0, typeorm_1.Index)(['supersededBy'])
|
|
64
|
+
], AgentMemoryEntryEntity);
|
|
65
|
+
//# sourceMappingURL=agent-memory-entry.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-memory-entry.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-memory-entry.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAgF;AAChF,0CAAqD;AAU9C,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,8BAAyB;CA8BpE,CAAA;AA9BY,wDAAsB;AAElC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;uDACxB;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;0DACtB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACT;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;2DACpB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;sDACd;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DAC5B;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DAC3B;AAG9B;IADC,IAAA,eAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACJ;AAG3B;IADC,IAAA,eAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACH;AAG5B;IADC,IAAA,mBAAc,GAAE;8BACL,IAAI;0DAAC;iCA7BL,sBAAsB;IALlC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC;IACzC,IAAA,eAAK,EAAC,CAAC,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;IAC7D,IAAA,eAAK,EAAC,CAAC,SAAS,EAAE,YAAY,EAAE,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACjE,IAAA,eAAK,EAAC,CAAC,YAAY,CAAC,CAAC;IACrB,IAAA,eAAK,EAAC,CAAC,cAAc,CAAC,CAAC;GACX,sBAAsB,CA8BlC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { WithTimestamps } from '@n8n/db';
|
|
2
|
-
import type { ObservationScopeKind } from './agent-observation.entity';
|
|
3
2
|
export declare class AgentObservationCursorEntity extends WithTimestamps {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
agentId: string;
|
|
4
|
+
observationScopeId: string;
|
|
6
5
|
lastObservedMessageId: string;
|
|
7
6
|
lastObservedAt: Date;
|
|
8
7
|
}
|
|
@@ -16,13 +16,13 @@ let AgentObservationCursorEntity = class AgentObservationCursorEntity extends db
|
|
|
16
16
|
};
|
|
17
17
|
exports.AgentObservationCursorEntity = AgentObservationCursorEntity;
|
|
18
18
|
__decorate([
|
|
19
|
-
(0, typeorm_1.PrimaryColumn)({ type: 'varchar', length:
|
|
19
|
+
(0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 36 }),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
|
-
], AgentObservationCursorEntity.prototype, "
|
|
21
|
+
], AgentObservationCursorEntity.prototype, "agentId", void 0);
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 255 }),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
|
-
], AgentObservationCursorEntity.prototype, "
|
|
25
|
+
], AgentObservationCursorEntity.prototype, "observationScopeId", void 0);
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, typeorm_1.Column)({ type: 'varchar', length: 36 }),
|
|
28
28
|
__metadata("design:type", String)
|
|
@@ -32,6 +32,7 @@ __decorate([
|
|
|
32
32
|
__metadata("design:type", Date)
|
|
33
33
|
], AgentObservationCursorEntity.prototype, "lastObservedAt", void 0);
|
|
34
34
|
exports.AgentObservationCursorEntity = AgentObservationCursorEntity = __decorate([
|
|
35
|
-
(0, typeorm_1.Entity)({ name: 'agents_observation_cursors' })
|
|
35
|
+
(0, typeorm_1.Entity)({ name: 'agents_observation_cursors' }),
|
|
36
|
+
(0, typeorm_1.Index)(['observationScopeId'])
|
|
36
37
|
], AgentObservationCursorEntity);
|
|
37
38
|
//# sourceMappingURL=agent-observation-cursor.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-observation-cursor.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-observation-cursor.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"agent-observation-cursor.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-observation-cursor.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAyD;AACzD,0CAAoE;AAI7D,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,mBAAc;CAY/D,CAAA;AAZY,oEAA4B;AAExC;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;6DAC/B;AAGhB;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;wEACrB;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;2EACV;AAG9B;IADC,IAAA,mBAAc,GAAE;8BACD,IAAI;oEAAC;uCAXT,4BAA4B;IAFxC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,4BAA4B,EAAE,CAAC;IAC9C,IAAA,eAAK,EAAC,CAAC,oBAAoB,CAAC,CAAC;GACjB,4BAA4B,CAYxC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { WithTimestamps } from '@n8n/db';
|
|
2
|
-
import type { ObservationScopeKind } from './agent-observation.entity';
|
|
3
2
|
export type ObservationTaskKind = 'observer' | 'reflector';
|
|
4
3
|
export declare class AgentObservationLockEntity extends WithTimestamps {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
agentId: string;
|
|
5
|
+
observationScopeId: string;
|
|
7
6
|
taskKind: ObservationTaskKind;
|
|
8
7
|
holderId: string;
|
|
9
8
|
heldUntil: Date;
|
|
@@ -16,13 +16,13 @@ let AgentObservationLockEntity = class AgentObservationLockEntity extends db_1.W
|
|
|
16
16
|
};
|
|
17
17
|
exports.AgentObservationLockEntity = AgentObservationLockEntity;
|
|
18
18
|
__decorate([
|
|
19
|
-
(0, typeorm_1.PrimaryColumn)({ type: 'varchar', length:
|
|
19
|
+
(0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 36 }),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
|
-
], AgentObservationLockEntity.prototype, "
|
|
21
|
+
], AgentObservationLockEntity.prototype, "agentId", void 0);
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 255 }),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
|
-
], AgentObservationLockEntity.prototype, "
|
|
25
|
+
], AgentObservationLockEntity.prototype, "observationScopeId", void 0);
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 20 }),
|
|
28
28
|
__metadata("design:type", String)
|
|
@@ -36,6 +36,7 @@ __decorate([
|
|
|
36
36
|
__metadata("design:type", Date)
|
|
37
37
|
], AgentObservationLockEntity.prototype, "heldUntil", void 0);
|
|
38
38
|
exports.AgentObservationLockEntity = AgentObservationLockEntity = __decorate([
|
|
39
|
-
(0, typeorm_1.Entity)({ name: 'agents_observation_locks' })
|
|
39
|
+
(0, typeorm_1.Entity)({ name: 'agents_observation_locks' }),
|
|
40
|
+
(0, typeorm_1.Index)(['observationScopeId'])
|
|
40
41
|
], AgentObservationLockEntity);
|
|
41
42
|
//# sourceMappingURL=agent-observation-lock.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-observation-lock.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-observation-lock.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"agent-observation-lock.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-observation-lock.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAyD;AACzD,0CAAoE;AAM7D,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,mBAAc;CAe7D,CAAA;AAfY,gEAA0B;AAEtC;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;2DAC/B;AAGhB;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;sEACrB;AAG3B;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;4DACjB;AAG9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;4DACvB;AAGjB;IADC,IAAA,mBAAc,GAAE;8BACN,IAAI;6DAAC;qCAdJ,0BAA0B;IAFtC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC;IAC5C,IAAA,eAAK,EAAC,CAAC,oBAAoB,CAAC,CAAC;GACjB,0BAA0B,CAetC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { WithTimestampsAndStringId } from '@n8n/db';
|
|
2
|
-
export type ObservationScopeKind = 'thread' | 'resource';
|
|
3
2
|
export type ObservationMarker = 'critical' | 'important' | 'info' | 'completion';
|
|
4
3
|
export type ObservationStatus = 'active' | 'superseded' | 'dropped';
|
|
5
4
|
export declare class AgentObservationEntity extends WithTimestampsAndStringId {
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
agentId: string;
|
|
6
|
+
observationScopeId: string;
|
|
8
7
|
marker: ObservationMarker;
|
|
9
8
|
text: string;
|
|
10
9
|
parentId: string | null;
|
|
@@ -16,13 +16,13 @@ let AgentObservationEntity = class AgentObservationEntity extends db_1.WithTimes
|
|
|
16
16
|
};
|
|
17
17
|
exports.AgentObservationEntity = AgentObservationEntity;
|
|
18
18
|
__decorate([
|
|
19
|
-
(0, typeorm_1.Column)({ type: 'varchar', length:
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 36 }),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
|
-
], AgentObservationEntity.prototype, "
|
|
21
|
+
], AgentObservationEntity.prototype, "agentId", void 0);
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
|
-
], AgentObservationEntity.prototype, "
|
|
25
|
+
], AgentObservationEntity.prototype, "observationScopeId", void 0);
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, typeorm_1.Column)({ type: 'varchar', length: 16 }),
|
|
28
28
|
__metadata("design:type", String)
|
|
@@ -49,8 +49,9 @@ __decorate([
|
|
|
49
49
|
], AgentObservationEntity.prototype, "supersededBy", void 0);
|
|
50
50
|
exports.AgentObservationEntity = AgentObservationEntity = __decorate([
|
|
51
51
|
(0, typeorm_1.Entity)({ name: 'agents_observations' }),
|
|
52
|
-
(0, typeorm_1.Index)(['
|
|
53
|
-
(0, typeorm_1.Index)(['
|
|
52
|
+
(0, typeorm_1.Index)(['agentId', 'observationScopeId', 'status', 'createdAt', 'id']),
|
|
53
|
+
(0, typeorm_1.Index)(['agentId', 'observationScopeId', 'createdAt', 'id']),
|
|
54
|
+
(0, typeorm_1.Index)(['observationScopeId']),
|
|
54
55
|
(0, typeorm_1.Index)(['parentId']),
|
|
55
56
|
(0, typeorm_1.Index)(['supersededBy'])
|
|
56
57
|
], AgentObservationEntity);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-observation.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-observation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAoD;AACpD,0CAAqD;AAW9C,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,8BAAyB;CAwBpE,CAAA;AAxBY,wDAAsB;AAElC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;
|
|
1
|
+
{"version":3,"file":"agent-observation.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent-observation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAoD;AACpD,0CAAqD;AAW9C,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,8BAAyB;CAwBpE,CAAA;AAxBY,wDAAsB;AAElC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;uDACxB;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;kEACd;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;sDACd;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACZ;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDAChC;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACjB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;sDACd;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DAC5B;iCAvBhB,sBAAsB;IANlC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;IACvC,IAAA,eAAK,EAAC,CAAC,SAAS,EAAE,oBAAoB,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;IACrE,IAAA,eAAK,EAAC,CAAC,SAAS,EAAE,oBAAoB,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;IAC3D,IAAA,eAAK,EAAC,CAAC,oBAAoB,CAAC,CAAC;IAC7B,IAAA,eAAK,EAAC,CAAC,UAAU,CAAC,CAAC;IACnB,IAAA,eAAK,EAAC,CAAC,cAAc,CAAC,CAAC;GACX,sBAAsB,CAwBlC"}
|
|
@@ -2,15 +2,12 @@ import type { AgentIntegrationConfig, AgentJsonConfig, AgentSkill } from '@n8n/a
|
|
|
2
2
|
import type { ToolDescriptor } from '@n8n/agents';
|
|
3
3
|
import { Project, WithTimestampsAndStringId } from '@n8n/db';
|
|
4
4
|
import { type Relation } from '@n8n/typeorm';
|
|
5
|
-
import type {
|
|
5
|
+
import type { AgentHistory } from './agent-history.entity';
|
|
6
6
|
export declare class Agent extends WithTimestampsAndStringId {
|
|
7
7
|
name: string;
|
|
8
8
|
description: string | null;
|
|
9
9
|
project: Project;
|
|
10
10
|
projectId: string;
|
|
11
|
-
credentialId: string | null;
|
|
12
|
-
provider: string | null;
|
|
13
|
-
model: string | null;
|
|
14
11
|
schema: AgentJsonConfig | null;
|
|
15
12
|
integrations: AgentIntegrationConfig[];
|
|
16
13
|
tools: Record<string, {
|
|
@@ -19,5 +16,6 @@ export declare class Agent extends WithTimestampsAndStringId {
|
|
|
19
16
|
}>;
|
|
20
17
|
skills: Record<string, AgentSkill>;
|
|
21
18
|
versionId: string | null;
|
|
22
|
-
|
|
19
|
+
activeVersionId: string | null;
|
|
20
|
+
activeVersion?: Relation<AgentHistory> | null;
|
|
23
21
|
}
|
|
@@ -32,18 +32,6 @@ __decorate([
|
|
|
32
32
|
(0, typeorm_1.Column)(),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
34
|
], Agent.prototype, "projectId", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
37
|
-
__metadata("design:type", Object)
|
|
38
|
-
], Agent.prototype, "credentialId", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
41
|
-
__metadata("design:type", Object)
|
|
42
|
-
], Agent.prototype, "provider", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
45
|
-
__metadata("design:type", Object)
|
|
46
|
-
], Agent.prototype, "model", void 0);
|
|
47
35
|
__decorate([
|
|
48
36
|
(0, db_1.JsonColumn)({ nullable: true, default: null }),
|
|
49
37
|
__metadata("design:type", Object)
|
|
@@ -65,9 +53,14 @@ __decorate([
|
|
|
65
53
|
__metadata("design:type", Object)
|
|
66
54
|
], Agent.prototype, "versionId", void 0);
|
|
67
55
|
__decorate([
|
|
68
|
-
(0, typeorm_1.
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 36, nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], Agent.prototype, "activeVersionId", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.ManyToOne)('AgentHistory', { onDelete: 'SET NULL', nullable: true }),
|
|
61
|
+
(0, typeorm_1.JoinColumn)({ name: 'activeVersionId' }),
|
|
69
62
|
__metadata("design:type", Object)
|
|
70
|
-
], Agent.prototype, "
|
|
63
|
+
], Agent.prototype, "activeVersion", void 0);
|
|
71
64
|
exports.Agent = Agent = __decorate([
|
|
72
65
|
(0, typeorm_1.Entity)({ name: 'agents' })
|
|
73
66
|
], Agent);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gCAAyE;AACzE,
|
|
1
|
+
{"version":3,"file":"agent.entity.js","sourceRoot":"","sources":["../../../../src/modules/agents/entities/agent.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gCAAyE;AACzE,0CAAoF;AAK7E,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,8BAAyB;CA2CnD,CAAA;AA3CY,sBAAK;AAEjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;mCAC5B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAC9B;AAI3B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,YAAO,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACjD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACzB,YAAO;sCAAC;AAGjB;IADC,IAAA,gBAAM,GAAE;;wCACS;AAGlB;IADC,IAAA,eAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;qCACf;AAG/B;IADC,IAAA,eAAU,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;2CACS;AAGvC;IADC,IAAA,eAAU,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;oCAO5B;AAGF;IADC,IAAA,eAAU,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;qCACK;AAInC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC/B;AAIzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACzB;AAI/B;IAFC,IAAA,mBAAS,EAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACnE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;;4CACM;gBA1ClC,KAAK;IADjB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;GACd,KAAK,CA2CjB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { DEFAULT_EPISODIC_MEMORY_EMBEDDING_MODEL, DEFAULT_EPISODIC_MEMORY_EXTRACTION_PROMPT, DEFAULT_EPISODIC_MEMORY_REFLECTION_PROMPT, buildEpisodicMemoryExtractorPrompt as buildN8nEpisodicMemoryExtractorPrompt, buildEpisodicMemoryReflectorPrompt as buildN8nEpisodicMemoryReflectorPrompt, createEpisodicMemoryExtractFn as createN8nEpisodicMemoryExtractFn, createEpisodicMemoryReflectFn as createN8nEpisodicMemoryReflectFn, } from '@n8n/agents';
|
|
2
|
+
export type { CreateEpisodicMemoryExtractFnOptions as CreateN8nEpisodicMemoryExtractFnOptions, CreateEpisodicMemoryReflectFnOptions as CreateN8nEpisodicMemoryReflectFnOptions, } from '@n8n/agents';
|