mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 12:10:20 +00:00
refactor: rename setup wizard surfaces
This commit is contained in:
@@ -49,7 +49,7 @@ describe("normalizeRegisteredProvider", () => {
|
||||
{ id: " ", label: "Missing", kind: "custom", run: async () => ({ profiles: [] }) },
|
||||
],
|
||||
wizard: {
|
||||
onboarding: {
|
||||
setup: {
|
||||
choiceId: " demo-choice ",
|
||||
methodId: " missing ",
|
||||
},
|
||||
@@ -69,7 +69,7 @@ describe("normalizeRegisteredProvider", () => {
|
||||
envVars: ["DEMO_API_KEY"],
|
||||
auth: [{ id: "primary", label: "Primary" }],
|
||||
wizard: {
|
||||
onboarding: {
|
||||
setup: {
|
||||
choiceId: "demo-choice",
|
||||
},
|
||||
modelPicker: {
|
||||
@@ -89,7 +89,7 @@ describe("normalizeRegisteredProvider", () => {
|
||||
{
|
||||
level: "warn",
|
||||
message:
|
||||
'provider "demo" onboarding method "missing" not found; falling back to available methods',
|
||||
'provider "demo" setup method "missing" not found; falling back to available methods',
|
||||
},
|
||||
{
|
||||
level: "warn",
|
||||
@@ -107,7 +107,7 @@ describe("normalizeRegisteredProvider", () => {
|
||||
source: "/tmp/demo/index.ts",
|
||||
provider: makeProvider({
|
||||
wizard: {
|
||||
onboarding: {
|
||||
setup: {
|
||||
choiceId: "demo",
|
||||
},
|
||||
modelPicker: {
|
||||
@@ -120,7 +120,7 @@ describe("normalizeRegisteredProvider", () => {
|
||||
|
||||
expect(provider?.wizard).toBeUndefined();
|
||||
expect(diagnostics.map((diag) => diag.message)).toEqual([
|
||||
'provider "demo" onboarding metadata ignored because it has no auth methods',
|
||||
'provider "demo" setup metadata ignored because it has no auth methods',
|
||||
'provider "demo" model-picker metadata ignored because it has no auth methods',
|
||||
]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user