You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Updated openclaw-codex-app-server: unknown -> 0.2.6. (warning: beta channel fallback used openclaw-codex-app-server because openclaw-codex-app-server@beta could not be used).",
"plugin channel fallback: openclaw-codex-app-server used @latest because @beta was unavailable",
2199
+
});
2200
+
});
2201
+
2202
+
it("reports npm beta fallback as tentative during dry-run checks",async()=>{
2203
+
installPluginFromNpmSpecMock
2204
+
.mockResolvedValueOnce({
2205
+
ok: false,
2206
+
error:
2207
+
"npm ERR! code ETARGET\nnpm ERR! No matching version found for openclaw-codex-app-server@beta.",
2208
+
})
2209
+
.mockResolvedValueOnce(
2210
+
createSuccessfulNpmUpdateResult({
2211
+
pluginId: "openclaw-codex-app-server",
2212
+
targetDir: "/tmp/openclaw-codex-app-server",
2213
+
version: "0.2.6",
2214
+
npmResolution: {
2215
+
name: "openclaw-codex-app-server",
2216
+
version: "0.2.6",
2217
+
resolvedSpec: "openclaw-codex-app-server@0.2.6",
2218
+
},
2219
+
}),
2220
+
);
2221
+
2222
+
constresult=awaitupdateNpmInstalledPlugins({
2223
+
config: createCodexAppServerInstallConfig({
2224
+
spec: "openclaw-codex-app-server",
2225
+
}),
2226
+
pluginIds: ["openclaw-codex-app-server"],
2227
+
updateChannel: "beta",
2228
+
dryRun: true,
2229
+
});
2230
+
2231
+
expect(result.outcomes[0]?.message).toBe(
2232
+
"Would update openclaw-codex-app-server: unknown -> 0.2.6. (warning: beta channel fallback would use openclaw-codex-app-server because openclaw-codex-app-server@beta could not be used).",
"Updated openclaw-codex-app-server: unknown -> 0.2.6. (warning: beta channel fallback used openclaw-codex-app-server because openclaw-codex-app-server@beta could not be used).",
0 commit comments