From e360cc55fb708b1431b16133ca5ecb4a03af29d2 Mon Sep 17 00:00:00 2001 From: waleed Date: Sat, 10 Jan 2026 00:05:11 -0800 Subject: [PATCH] fix(build): fixed circular dependencies --- apps/sim/lib/copilot/tools/client/knowledge/knowledge-base.ts | 2 +- apps/sim/lib/copilot/tools/client/navigation/navigate-ui.ts | 2 +- .../lib/copilot/tools/client/workflow/block-output-utils.ts | 4 ++-- apps/sim/lib/copilot/tools/client/workflow/deploy-workflow.ts | 2 +- .../lib/copilot/tools/client/workflow/manage-custom-tool.ts | 2 +- apps/sim/lib/copilot/tools/client/workflow/manage-mcp-tool.ts | 2 +- .../tools/client/workflow/set-global-workflow-variables.ts | 2 +- apps/sim/stores/workflows/registry/store.ts | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/sim/lib/copilot/tools/client/knowledge/knowledge-base.ts b/apps/sim/lib/copilot/tools/client/knowledge/knowledge-base.ts index 7918872c9e4..41afc2e853f 100644 --- a/apps/sim/lib/copilot/tools/client/knowledge/knowledge-base.ts +++ b/apps/sim/lib/copilot/tools/client/knowledge/knowledge-base.ts @@ -9,7 +9,7 @@ import { ExecuteResponseSuccessSchema, type KnowledgeBaseArgs, } from '@/lib/copilot/tools/shared/schemas' -import { useCopilotStore } from '@/stores/panel' +import { useCopilotStore } from '@/stores/panel/copilot/store' /** * Client tool for knowledge base operations diff --git a/apps/sim/lib/copilot/tools/client/navigation/navigate-ui.ts b/apps/sim/lib/copilot/tools/client/navigation/navigate-ui.ts index fff7833ff8c..5b9d30c0675 100644 --- a/apps/sim/lib/copilot/tools/client/navigation/navigate-ui.ts +++ b/apps/sim/lib/copilot/tools/client/navigation/navigate-ui.ts @@ -5,7 +5,7 @@ import { type BaseClientToolMetadata, ClientToolCallState, } from '@/lib/copilot/tools/client/base-tool' -import { useCopilotStore } from '@/stores/panel' +import { useCopilotStore } from '@/stores/panel/copilot/store' import { useWorkflowRegistry } from '@/stores/workflows/registry/store' type NavigationDestination = 'workflow' | 'logs' | 'templates' | 'vector_db' | 'settings' diff --git a/apps/sim/lib/copilot/tools/client/workflow/block-output-utils.ts b/apps/sim/lib/copilot/tools/client/workflow/block-output-utils.ts index 729fd80baa2..4916cb77000 100644 --- a/apps/sim/lib/copilot/tools/client/workflow/block-output-utils.ts +++ b/apps/sim/lib/copilot/tools/client/workflow/block-output-utils.ts @@ -5,8 +5,8 @@ import { import { getBlockOutputPaths } from '@/lib/workflows/blocks/block-outputs' import { getBlock } from '@/blocks' import { normalizeName } from '@/executor/constants' -import type { Variable } from '@/stores/panel' -import { useVariablesStore } from '@/stores/panel' +import { useVariablesStore } from '@/stores/panel/variables/store' +import type { Variable } from '@/stores/panel/variables/types' import { useSubBlockStore } from '@/stores/workflows/subblock/store' import type { BlockState, Loop, Parallel } from '@/stores/workflows/workflow/types' diff --git a/apps/sim/lib/copilot/tools/client/workflow/deploy-workflow.ts b/apps/sim/lib/copilot/tools/client/workflow/deploy-workflow.ts index cdcdac3b24f..dda9d7844b4 100644 --- a/apps/sim/lib/copilot/tools/client/workflow/deploy-workflow.ts +++ b/apps/sim/lib/copilot/tools/client/workflow/deploy-workflow.ts @@ -6,7 +6,7 @@ import { ClientToolCallState, } from '@/lib/copilot/tools/client/base-tool' import { getInputFormatExample } from '@/lib/workflows/operations/deployment-utils' -import { useCopilotStore } from '@/stores/panel' +import { useCopilotStore } from '@/stores/panel/copilot/store' import { useWorkflowRegistry } from '@/stores/workflows/registry/store' interface DeployWorkflowArgs { diff --git a/apps/sim/lib/copilot/tools/client/workflow/manage-custom-tool.ts b/apps/sim/lib/copilot/tools/client/workflow/manage-custom-tool.ts index 821eaf1fa58..5fecb00112b 100644 --- a/apps/sim/lib/copilot/tools/client/workflow/manage-custom-tool.ts +++ b/apps/sim/lib/copilot/tools/client/workflow/manage-custom-tool.ts @@ -7,7 +7,7 @@ import { ClientToolCallState, } from '@/lib/copilot/tools/client/base-tool' import { useCustomToolsStore } from '@/stores/custom-tools' -import { useCopilotStore } from '@/stores/panel' +import { useCopilotStore } from '@/stores/panel/copilot/store' import { useWorkflowRegistry } from '@/stores/workflows/registry/store' interface CustomToolSchema { diff --git a/apps/sim/lib/copilot/tools/client/workflow/manage-mcp-tool.ts b/apps/sim/lib/copilot/tools/client/workflow/manage-mcp-tool.ts index 3fb2ce39f5f..796574dc1b6 100644 --- a/apps/sim/lib/copilot/tools/client/workflow/manage-mcp-tool.ts +++ b/apps/sim/lib/copilot/tools/client/workflow/manage-mcp-tool.ts @@ -6,7 +6,7 @@ import { type BaseClientToolMetadata, ClientToolCallState, } from '@/lib/copilot/tools/client/base-tool' -import { useCopilotStore } from '@/stores/panel' +import { useCopilotStore } from '@/stores/panel/copilot/store' import { useWorkflowRegistry } from '@/stores/workflows/registry/store' interface McpServerConfig { diff --git a/apps/sim/lib/copilot/tools/client/workflow/set-global-workflow-variables.ts b/apps/sim/lib/copilot/tools/client/workflow/set-global-workflow-variables.ts index 1cbbbe065a7..8762865f8de 100644 --- a/apps/sim/lib/copilot/tools/client/workflow/set-global-workflow-variables.ts +++ b/apps/sim/lib/copilot/tools/client/workflow/set-global-workflow-variables.ts @@ -5,7 +5,7 @@ import { type BaseClientToolMetadata, ClientToolCallState, } from '@/lib/copilot/tools/client/base-tool' -import { useVariablesStore } from '@/stores/panel' +import { useVariablesStore } from '@/stores/panel/variables/store' import { useWorkflowRegistry } from '@/stores/workflows/registry/store' interface OperationItem { diff --git a/apps/sim/stores/workflows/registry/store.ts b/apps/sim/stores/workflows/registry/store.ts index 9782b5582eb..6ba54ec1fad 100644 --- a/apps/sim/stores/workflows/registry/store.ts +++ b/apps/sim/stores/workflows/registry/store.ts @@ -4,7 +4,7 @@ import { devtools } from 'zustand/middleware' import { withOptimisticUpdate } from '@/lib/core/utils/optimistic-update' import { DEFAULT_DUPLICATE_OFFSET } from '@/lib/workflows/autolayout/constants' import { buildDefaultWorkflowArtifacts } from '@/lib/workflows/defaults' -import { useVariablesStore } from '@/stores/panel' +import { useVariablesStore } from '@/stores/panel/variables/store' import type { DeploymentStatus, HydrationState,