Files
openclaw/extensions/zalouser/src/setup-core.ts
2026-05-15 15:33:27 +01:00

37 lines
1.0 KiB
TypeScript

import {
createDelegatedSetupWizardProxy,
createPatchedAccountSetupAdapter,
createSetupTranslator,
type ChannelSetupWizard,
} from "openclaw/plugin-sdk/setup-runtime";
const t = createSetupTranslator();
const channel = "zalouser" as const;
export const zalouserSetupAdapter = createPatchedAccountSetupAdapter({
channelKey: channel,
validateInput: () => null,
buildPatch: () => ({}),
});
export function createZalouserSetupWizardProxy(
loadWizard: () => Promise<ChannelSetupWizard>,
): ChannelSetupWizard {
return createDelegatedSetupWizardProxy({
channel,
loadWizard,
status: {
configuredLabel: t("wizard.channels.statusLoggedIn"),
unconfiguredLabel: t("wizard.channels.statusNeedsQrLogin"),
configuredHint: t("wizard.channels.statusRecommendedLoggedIn"),
unconfiguredHint: t("wizard.channels.statusRecommendedQrLogin"),
configuredScore: 1,
unconfiguredScore: 15,
},
credentials: [],
delegatePrepare: true,
delegateFinalize: true,
});
}