Skip to content

Commit a11d452

Browse files
authored
fix(build): fixed circular dependencies (#2761)
1 parent 6262503 commit a11d452

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

apps/sim/lib/copilot/tools/client/knowledge/knowledge-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
ExecuteResponseSuccessSchema,
1010
type KnowledgeBaseArgs,
1111
} from '@/lib/copilot/tools/shared/schemas'
12-
import { useCopilotStore } from '@/stores/panel'
12+
import { useCopilotStore } from '@/stores/panel/copilot/store'
1313

1414
/**
1515
* Client tool for knowledge base operations

apps/sim/lib/copilot/tools/client/navigation/navigate-ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
type BaseClientToolMetadata,
66
ClientToolCallState,
77
} from '@/lib/copilot/tools/client/base-tool'
8-
import { useCopilotStore } from '@/stores/panel'
8+
import { useCopilotStore } from '@/stores/panel/copilot/store'
99
import { useWorkflowRegistry } from '@/stores/workflows/registry/store'
1010

1111
type NavigationDestination = 'workflow' | 'logs' | 'templates' | 'vector_db' | 'settings'

apps/sim/lib/copilot/tools/client/workflow/block-output-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import {
55
import { getBlockOutputPaths } from '@/lib/workflows/blocks/block-outputs'
66
import { getBlock } from '@/blocks'
77
import { normalizeName } from '@/executor/constants'
8-
import type { Variable } from '@/stores/panel'
9-
import { useVariablesStore } from '@/stores/panel'
8+
import { useVariablesStore } from '@/stores/panel/variables/store'
9+
import type { Variable } from '@/stores/panel/variables/types'
1010
import { useSubBlockStore } from '@/stores/workflows/subblock/store'
1111
import type { BlockState, Loop, Parallel } from '@/stores/workflows/workflow/types'
1212

apps/sim/lib/copilot/tools/client/workflow/deploy-workflow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
ClientToolCallState,
77
} from '@/lib/copilot/tools/client/base-tool'
88
import { getInputFormatExample } from '@/lib/workflows/operations/deployment-utils'
9-
import { useCopilotStore } from '@/stores/panel'
9+
import { useCopilotStore } from '@/stores/panel/copilot/store'
1010
import { useWorkflowRegistry } from '@/stores/workflows/registry/store'
1111

1212
interface DeployWorkflowArgs {

apps/sim/lib/copilot/tools/client/workflow/manage-custom-tool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
ClientToolCallState,
88
} from '@/lib/copilot/tools/client/base-tool'
99
import { useCustomToolsStore } from '@/stores/custom-tools'
10-
import { useCopilotStore } from '@/stores/panel'
10+
import { useCopilotStore } from '@/stores/panel/copilot/store'
1111
import { useWorkflowRegistry } from '@/stores/workflows/registry/store'
1212

1313
interface CustomToolSchema {

apps/sim/lib/copilot/tools/client/workflow/manage-mcp-tool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
type BaseClientToolMetadata,
77
ClientToolCallState,
88
} from '@/lib/copilot/tools/client/base-tool'
9-
import { useCopilotStore } from '@/stores/panel'
9+
import { useCopilotStore } from '@/stores/panel/copilot/store'
1010
import { useWorkflowRegistry } from '@/stores/workflows/registry/store'
1111

1212
interface McpServerConfig {

apps/sim/lib/copilot/tools/client/workflow/set-global-workflow-variables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
type BaseClientToolMetadata,
66
ClientToolCallState,
77
} from '@/lib/copilot/tools/client/base-tool'
8-
import { useVariablesStore } from '@/stores/panel'
8+
import { useVariablesStore } from '@/stores/panel/variables/store'
99
import { useWorkflowRegistry } from '@/stores/workflows/registry/store'
1010

1111
interface OperationItem {

apps/sim/stores/workflows/registry/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { devtools } from 'zustand/middleware'
44
import { withOptimisticUpdate } from '@/lib/core/utils/optimistic-update'
55
import { DEFAULT_DUPLICATE_OFFSET } from '@/lib/workflows/autolayout/constants'
66
import { buildDefaultWorkflowArtifacts } from '@/lib/workflows/defaults'
7-
import { useVariablesStore } from '@/stores/panel'
7+
import { useVariablesStore } from '@/stores/panel/variables/store'
88
import type {
99
DeploymentStatus,
1010
HydrationState,

0 commit comments

Comments
 (0)