mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
refactor(editor): Migrate agentRequest store to @n8n/stores package (no-changelog) (#15462)
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
"@vitejs/plugin-vue": "catalog:frontend",
|
||||
"@vue/tsconfig": "catalog:frontend",
|
||||
"@vueuse/core": "catalog:frontend",
|
||||
"pinia": "catalog:frontend",
|
||||
"vue": "catalog:frontend",
|
||||
"tsup": "catalog:",
|
||||
"typescript": "catalog:frontend",
|
||||
@@ -54,6 +55,7 @@
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@vueuse/core": "catalog:frontend",
|
||||
"pinia": "catalog:frontend",
|
||||
"vue": "catalog:frontend"
|
||||
},
|
||||
"license": "See LICENSE.md file in the root of the repository"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { setActivePinia, createPinia } from 'pinia';
|
||||
import { useAgentRequestStore } from './agentRequest.store';
|
||||
import { useAgentRequestStore } from './useAgentRequestStore';
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
import { nextTick } from 'vue';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { type INodeParameters, type NodeParameterValueType } from 'n8n-workflow';
|
||||
import type { INodeParameters, NodeParameterValueType } from 'n8n-workflow';
|
||||
import { defineStore } from 'pinia';
|
||||
import { ref, watch } from 'vue';
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
"lodash-es": "^4.17.21",
|
||||
"luxon": "catalog:",
|
||||
"n8n-workflow": "workspace:*",
|
||||
"pinia": "^2.2.4",
|
||||
"pinia": "catalog:frontend",
|
||||
"prettier": "^3.3.3",
|
||||
"qrcode.vue": "^3.3.4",
|
||||
"stream-browserify": "^3.0.0",
|
||||
|
||||
@@ -5,7 +5,7 @@ import { FROM_AI_PARAMETERS_MODAL_KEY, AI_MCP_TOOL_NODE_TYPE } from '@/constants
|
||||
import { STORES } from '@n8n/stores';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { useWorkflowsStore } from '@/stores/workflows.store';
|
||||
import { useAgentRequestStore } from '@/stores/agentRequest.store';
|
||||
import { useAgentRequestStore } from '@n8n/stores/useAgentRequestStore';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { NodeConnectionTypes } from 'n8n-workflow';
|
||||
import { useNodeTypesStore } from '@/stores/nodeTypes.store';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { useI18n } from '@/composables/useI18n';
|
||||
import { useRunWorkflow } from '@/composables/useRunWorkflow';
|
||||
import { FROM_AI_PARAMETERS_MODAL_KEY, AI_MCP_TOOL_NODE_TYPE } from '@/constants';
|
||||
import { useAgentRequestStore } from '@/stores/agentRequest.store';
|
||||
import { useAgentRequestStore } from '@n8n/stores/useAgentRequestStore';
|
||||
import { useWorkflowsStore } from '@/stores/workflows.store';
|
||||
import { createEventBus } from '@n8n/utils/event-bus';
|
||||
import {
|
||||
|
||||
@@ -25,7 +25,7 @@ import { useSettingsStore } from '@/stores/settings.store';
|
||||
import { usePushConnectionStore } from '@/stores/pushConnection.store';
|
||||
import { createTestNode, createTestWorkflow } from '@/__tests__/mocks';
|
||||
import { waitFor } from '@testing-library/vue';
|
||||
import { useAgentRequestStore } from '@/stores/agentRequest.store';
|
||||
import { useAgentRequestStore } from '@n8n/stores/useAgentRequestStore';
|
||||
|
||||
vi.mock('@/stores/workflows.store', () => {
|
||||
const storeState: Partial<ReturnType<typeof useWorkflowsStore>> & {
|
||||
|
||||
@@ -43,7 +43,7 @@ import { useSettingsStore } from '@/stores/settings.store';
|
||||
import { usePushConnectionStore } from '@/stores/pushConnection.store';
|
||||
import { useNodeDirtiness } from '@/composables/useNodeDirtiness';
|
||||
import { useCanvasOperations } from './useCanvasOperations';
|
||||
import { useAgentRequestStore } from '@/stores/agentRequest.store';
|
||||
import { useAgentRequestStore } from '@n8n/stores/useAgentRequestStore';
|
||||
|
||||
export function useRunWorkflow(useRunWorkflowOpts: { router: ReturnType<typeof useRouter> }) {
|
||||
const nodeHelpers = useNodeHelpers();
|
||||
|
||||
@@ -120,7 +120,7 @@ import { useWorkflowSaving } from '@/composables/useWorkflowSaving';
|
||||
import { useBuilderStore } from '@/stores/builder.store';
|
||||
import { useFoldersStore } from '@/stores/folders.store';
|
||||
import KeyboardShortcutTooltip from '@/components/KeyboardShortcutTooltip.vue';
|
||||
import { useAgentRequestStore } from '@/stores/agentRequest.store';
|
||||
import { useAgentRequestStore } from '@n8n/stores/useAgentRequestStore';
|
||||
import { needsAgentInput } from '@/utils/nodes/nodeTransforms';
|
||||
import { useLogsStore } from '@/stores/logs.store';
|
||||
|
||||
|
||||
8
pnpm-lock.yaml
generated
8
pnpm-lock.yaml
generated
@@ -139,6 +139,9 @@ catalogs:
|
||||
highlight.js:
|
||||
specifier: ^11.8.0
|
||||
version: 11.9.0
|
||||
pinia:
|
||||
specifier: ^2.2.4
|
||||
version: 2.2.4
|
||||
vite:
|
||||
specifier: ^6.3.5
|
||||
version: 6.3.5
|
||||
@@ -1884,6 +1887,9 @@ importers:
|
||||
'@vueuse/core':
|
||||
specifier: catalog:frontend
|
||||
version: 10.11.0(vue@3.5.13(typescript@5.8.2))
|
||||
pinia:
|
||||
specifier: catalog:frontend
|
||||
version: 2.2.4(typescript@5.8.2)(vue@3.5.13(typescript@5.8.2))
|
||||
tsup:
|
||||
specifier: 'catalog:'
|
||||
version: 8.4.0(@microsoft/api-extractor@7.52.1(@types/node@18.16.16))(jiti@1.21.0)(postcss@8.5.3)(tsx@4.19.3)(typescript@5.8.2)
|
||||
@@ -2080,7 +2086,7 @@ importers:
|
||||
specifier: workspace:*
|
||||
version: link:../../workflow
|
||||
pinia:
|
||||
specifier: ^2.2.4
|
||||
specifier: catalog:frontend
|
||||
version: 2.2.4(typescript@5.8.2)(vue@3.5.13(typescript@5.8.2))
|
||||
prettier:
|
||||
specifier: ^3.3.3
|
||||
|
||||
@@ -52,6 +52,7 @@ catalogs:
|
||||
'@vitest/coverage-v8': ^3.1.3
|
||||
'@vitejs/plugin-vue': ^5.2.4
|
||||
'@sentry/vue': ^8.33.1
|
||||
pinia: ^2.2.4
|
||||
typescript: ^5.8.2
|
||||
vite: ^6.3.5
|
||||
vitest: ^3.1.3
|
||||
|
||||
Reference in New Issue
Block a user