Skip to content

Commit 656848d

Browse files
committed
refactor: rename setup wizard surfaces
1 parent 07d71d2 commit 656848d

127 files changed

Lines changed: 617 additions & 622 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

extensions/bluebubbles/src/setup-core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { setTopLevelChannelDmPolicyWithAllowFrom } from "../../../src/channels/plugins/setup-flow-helpers.js";
21
import {
32
applyAccountNameToChannelSection,
43
migrateBaseNameToDefaultAccount,
54
patchScopedAccountConfig,
65
} from "../../../src/channels/plugins/setup-helpers.js";
6+
import { setTopLevelChannelDmPolicyWithAllowFrom } from "../../../src/channels/plugins/setup-wizard-helpers.js";
77
import type { ChannelSetupAdapter } from "../../../src/channels/plugins/types.adapters.js";
88
import type { OpenClawConfig } from "../../../src/config/config.js";
99
import type { DmPolicy } from "../../../src/config/types.js";

extensions/bluebubbles/src/setup-surface.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it, vi } from "vitest";
2-
import { buildChannelSetupFlowAdapterFromSetupWizard } from "../../../src/channels/plugins/setup-wizard.js";
2+
import { buildChannelSetupWizardAdapterFromSetupWizard } from "../../../src/channels/plugins/setup-wizard.js";
33
import { DEFAULT_ACCOUNT_ID } from "../../../src/routing/session-key.js";
44
import type { WizardPrompter } from "../../../src/wizard/prompts.js";
55
import { resolveBlueBubblesAccount } from "./accounts.js";
@@ -27,8 +27,8 @@ async function createBlueBubblesConfigureAdapter() {
2727
}).config.allowFrom ?? [],
2828
},
2929
setup: blueBubblesSetupAdapter,
30-
} as Parameters<typeof buildChannelSetupFlowAdapterFromSetupWizard>[0]["plugin"];
31-
return buildChannelSetupFlowAdapterFromSetupWizard({
30+
} as Parameters<typeof buildChannelSetupWizardAdapterFromSetupWizard>[0]["plugin"];
31+
return buildChannelSetupWizardAdapterFromSetupWizard({
3232
plugin,
3333
wizard: blueBubblesSetupWizard,
3434
});

extensions/bluebubbles/src/setup-surface.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {
22
mergeAllowFromEntries,
33
resolveSetupAccountId,
4-
} from "../../../src/channels/plugins/setup-flow-helpers.js";
5-
import type { ChannelSetupDmPolicy } from "../../../src/channels/plugins/setup-flow-types.js";
4+
} from "../../../src/channels/plugins/setup-wizard-helpers.js";
5+
import type { ChannelSetupDmPolicy } from "../../../src/channels/plugins/setup-wizard-types.js";
66
import type { ChannelSetupWizard } from "../../../src/channels/plugins/setup-wizard.js";
77
import type { OpenClawConfig } from "../../../src/config/config.js";
88
import type { DmPolicy } from "../../../src/config/types.js";

extensions/discord/src/setup-core.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1+
import {
2+
applyAccountNameToChannelSection,
3+
migrateBaseNameToDefaultAccount,
4+
} from "../../../src/channels/plugins/setup-helpers.js";
15
import {
26
noteChannelLookupFailure,
37
noteChannelLookupSummary,
48
parseMentionOrPrefixedId,
59
patchChannelConfigForAccount,
610
setLegacyChannelDmPolicyWithAllowFrom,
711
setSetupChannelEnabled,
8-
} from "../../../src/channels/plugins/setup-flow-helpers.js";
9-
import type { ChannelSetupDmPolicy } from "../../../src/channels/plugins/setup-flow-types.js";
10-
import {
11-
applyAccountNameToChannelSection,
12-
migrateBaseNameToDefaultAccount,
13-
} from "../../../src/channels/plugins/setup-helpers.js";
12+
} from "../../../src/channels/plugins/setup-wizard-helpers.js";
13+
import type { ChannelSetupDmPolicy } from "../../../src/channels/plugins/setup-wizard-types.js";
1414
import type { ChannelSetupWizard } from "../../../src/channels/plugins/setup-wizard.js";
1515
import type { ChannelSetupAdapter } from "../../../src/channels/plugins/types.adapters.js";
1616
import type { OpenClawConfig } from "../../../src/config/config.js";

extensions/discord/src/setup-surface.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {
77
resolveSetupAccountId,
88
setLegacyChannelDmPolicyWithAllowFrom,
99
setSetupChannelEnabled,
10-
} from "../../../src/channels/plugins/setup-flow-helpers.js";
11-
import type { ChannelSetupDmPolicy } from "../../../src/channels/plugins/setup-flow-types.js";
10+
} from "../../../src/channels/plugins/setup-wizard-helpers.js";
11+
import type { ChannelSetupDmPolicy } from "../../../src/channels/plugins/setup-wizard-types.js";
1212
import type { ChannelSetupWizard } from "../../../src/channels/plugins/setup-wizard.js";
1313
import type { OpenClawConfig } from "../../../src/config/config.js";
1414
import { DEFAULT_ACCOUNT_ID } from "../../../src/routing/session-key.js";

extensions/feishu/src/setup-status.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { OpenClawConfig } from "openclaw/plugin-sdk/feishu";
22
import { describe, expect, it } from "vitest";
3-
import { buildChannelSetupFlowAdapterFromSetupWizard } from "../../../src/channels/plugins/setup-wizard.js";
3+
import { buildChannelSetupWizardAdapterFromSetupWizard } from "../../../src/channels/plugins/setup-wizard.js";
44
import { feishuPlugin } from "./channel.js";
55

6-
const feishuConfigureAdapter = buildChannelSetupFlowAdapterFromSetupWizard({
6+
const feishuConfigureAdapter = buildChannelSetupWizardAdapterFromSetupWizard({
77
plugin: feishuPlugin,
88
wizard: feishuPlugin.setupWizard!,
99
});

extensions/feishu/src/setup-surface.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it, vi } from "vitest";
2-
import { buildChannelSetupFlowAdapterFromSetupWizard } from "../../../src/channels/plugins/setup-wizard.js";
2+
import { buildChannelSetupWizardAdapterFromSetupWizard } from "../../../src/channels/plugins/setup-wizard.js";
33

44
vi.mock("./probe.js", () => ({
55
probeFeishu: vi.fn(async () => ({ ok: false, error: "mocked" })),
@@ -56,7 +56,7 @@ async function getStatusWithEnvRefs(params: { appIdKey: string; appSecretKey: st
5656
});
5757
}
5858

59-
const feishuConfigureAdapter = buildChannelSetupFlowAdapterFromSetupWizard({
59+
const feishuConfigureAdapter = buildChannelSetupWizardAdapterFromSetupWizard({
6060
plugin: feishuPlugin,
6161
wizard: feishuPlugin.setupWizard!,
6262
});

extensions/feishu/src/setup-surface.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {
66
setTopLevelChannelDmPolicyWithAllowFrom,
77
setTopLevelChannelGroupPolicy,
88
splitSetupEntries,
9-
} from "../../../src/channels/plugins/setup-flow-helpers.js";
10-
import type { ChannelSetupDmPolicy } from "../../../src/channels/plugins/setup-flow-types.js";
9+
} from "../../../src/channels/plugins/setup-wizard-helpers.js";
10+
import type { ChannelSetupDmPolicy } from "../../../src/channels/plugins/setup-wizard-types.js";
1111
import type { ChannelSetupWizard } from "../../../src/channels/plugins/setup-wizard.js";
1212
import type { OpenClawConfig } from "../../../src/config/config.js";
1313
import type { DmPolicy } from "../../../src/config/types.js";

extensions/googlechat/src/setup-surface.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { OpenClawConfig, WizardPrompter } from "openclaw/plugin-sdk/googlechat";
22
import { describe, expect, it, vi } from "vitest";
3-
import { buildChannelSetupFlowAdapterFromSetupWizard } from "../../../src/channels/plugins/setup-wizard.js";
3+
import { buildChannelSetupWizardAdapterFromSetupWizard } from "../../../src/channels/plugins/setup-wizard.js";
44
import { createRuntimeEnv } from "../../test-utils/runtime-env.js";
55
import { googlechatPlugin } from "./channel.js";
66

@@ -26,7 +26,7 @@ function createPrompter(overrides: Partial<WizardPrompter>): WizardPrompter {
2626
};
2727
}
2828

29-
const googlechatConfigureAdapter = buildChannelSetupFlowAdapterFromSetupWizard({
29+
const googlechatConfigureAdapter = buildChannelSetupWizardAdapterFromSetupWizard({
3030
plugin: googlechatPlugin,
3131
wizard: googlechatPlugin.setupWizard!,
3232
});

extensions/googlechat/src/setup-surface.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1+
import {
2+
applySetupAccountConfigPatch,
3+
migrateBaseNameToDefaultAccount,
4+
} from "../../../src/channels/plugins/setup-helpers.js";
15
import {
26
addWildcardAllowFrom,
37
mergeAllowFromEntries,
48
setTopLevelChannelDmPolicyWithAllowFrom,
59
splitSetupEntries,
6-
} from "../../../src/channels/plugins/setup-flow-helpers.js";
7-
import type { ChannelSetupDmPolicy } from "../../../src/channels/plugins/setup-flow-types.js";
8-
import {
9-
applySetupAccountConfigPatch,
10-
migrateBaseNameToDefaultAccount,
11-
} from "../../../src/channels/plugins/setup-helpers.js";
10+
} from "../../../src/channels/plugins/setup-wizard-helpers.js";
11+
import type { ChannelSetupDmPolicy } from "../../../src/channels/plugins/setup-wizard-types.js";
1212
import type { ChannelSetupWizard } from "../../../src/channels/plugins/setup-wizard.js";
1313
import type { OpenClawConfig } from "../../../src/config/config.js";
1414
import type { DmPolicy } from "../../../src/config/types.js";

0 commit comments

Comments
 (0)