refactor: remove type-only import cycles

This commit is contained in:
Peter Steinberger
2026-04-10 15:13:57 +01:00
parent fe1fd055d5
commit 9fd08f9d0f
37 changed files with 785 additions and 693 deletions

View File

@@ -1,4 +1,4 @@
import type { ChannelSetupWizard } from "../channels/plugins/setup-wizard.js";
import type { ChannelSetupWizard } from "../channels/plugins/setup-wizard-types.js";
import type { ChannelSetupAdapter } from "../channels/plugins/types.adapters.js";
import type { ChannelSetupInput } from "../channels/plugins/types.core.js";
import {

View File

@@ -40,7 +40,7 @@ export type {
export type {
ChannelSetupWizard,
ChannelSetupWizardAllowFromEntry,
} from "../channels/plugins/setup-wizard.js";
} from "../channels/plugins/setup-wizard-types.js";
export type {
AnyAgentTool,
CliBackendPlugin,

View File

@@ -1,4 +1,4 @@
import type { ChannelSetupWizard } from "../channels/plugins/setup-wizard.js";
import type { ChannelSetupWizard } from "../channels/plugins/setup-wizard-types.js";
import type { ChannelSetupAdapter } from "../channels/plugins/types.adapters.js";
import { DEFAULT_ACCOUNT_ID } from "../routing/session-key.js";
import { formatDocsLink } from "../terminal/links.js";

View File

@@ -1,12 +1,12 @@
export type { OpenClawConfig } from "../config/config.js";
export type { WizardPrompter } from "../wizard/prompts.js";
export type { ChannelSetupAdapter } from "../channels/plugins/types.adapters.js";
export type { ChannelSetupDmPolicy } from "../channels/plugins/setup-wizard-types.js";
export type {
ChannelSetupDmPolicy,
ChannelSetupWizard,
ChannelSetupWizardAllowFromEntry,
ChannelSetupWizardTextInput,
} from "../channels/plugins/setup-wizard.js";
} from "../channels/plugins/setup-wizard-types.js";
export { DEFAULT_ACCOUNT_ID } from "../routing/session-key.js";

View File

@@ -10,12 +10,10 @@ export type { ChannelSetupInput } from "../channels/plugins/types.core.js";
export type {
ChannelSetupDmPolicy,
ChannelSetupWizardAdapter,
} from "../channels/plugins/setup-wizard-types.js";
export type {
ChannelSetupWizard,
ChannelSetupWizardAllowFromEntry,
ChannelSetupWizardTextInput,
} from "../channels/plugins/setup-wizard.js";
} from "../channels/plugins/setup-wizard-types.js";
export { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "../routing/session-key.js";
export { formatCliCommand } from "../cli/command-format.js";