perf: narrow mattermost setup imports · openclaw/openclaw@c21c8f3
steipete
·
2026-04-24
·
via Recent Commits to openclaw:main
File tree
extensions/mattermost/src
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id"; |
1 | 2 | import type { ChannelSetupAdapter } from "openclaw/plugin-sdk/channel-setup"; |
2 | | -import { createSetupInputPresenceValidator } from "openclaw/plugin-sdk/setup-runtime"; |
| 3 | +import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime"; |
3 | 4 | import { |
4 | 5 | applyAccountNameToChannelSection, |
5 | 6 | applySetupAccountConfigPatch, |
6 | | -DEFAULT_ACCOUNT_ID, |
7 | 7 | migrateBaseNameToDefaultAccount, |
8 | | -normalizeAccountId, |
9 | | -type OpenClawConfig, |
10 | | -} from "./runtime-api.js"; |
| 8 | +} from "openclaw/plugin-sdk/setup"; |
| 9 | +import { createSetupInputPresenceValidator } from "openclaw/plugin-sdk/setup-runtime"; |
11 | 10 | import { |
12 | 11 | resolveMattermostAccount, |
13 | 12 | type ResolvedMattermostAccount, |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id"; |
| 2 | +import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime"; |
1 | 3 | import { |
| 4 | +applySetupAccountConfigPatch, |
2 | 5 | createStandardChannelSetupStatus, |
3 | 6 | formatDocsLink, |
4 | 7 | type ChannelSetupWizard, |
5 | 8 | } from "openclaw/plugin-sdk/setup"; |
6 | | -import { |
7 | | -applySetupAccountConfigPatch, |
8 | | -DEFAULT_ACCOUNT_ID, |
9 | | -type OpenClawConfig, |
10 | | -} from "./runtime-api.js"; |
11 | 9 | import { isMattermostConfigured, resolveMattermostAccountWithSecrets } from "./setup-core.js"; |
12 | 10 | import { normalizeMattermostBaseUrl } from "./setup.client.runtime.js"; |
13 | 11 | import { hasConfiguredSecretInput } from "./setup.secret-input.runtime.js"; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。