mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
d847a62e5d
* fix(opencode): keep API-key onboarding routes usable Amp-Thread-ID: https://ampcode.com/threads/T-019fe94f-6aac-73c9-995b-ced5336f3230 * refactor(opencode): simplify onboarding compatibility Amp-Thread-ID: https://ampcode.com/threads/T-019fe94f-6aac-73c9-995b-ced5336f3230 * fix(opencode): avoid unverified onboarding fallbacks Amp-Thread-ID: https://ampcode.com/threads/T-019fe94f-6aac-73c9-995b-ced5336f3230 * fix(opencode): reconcile dynamic tool deltas Amp-Thread-ID: https://ampcode.com/threads/T-019fe94f-6aac-73c9-995b-ced5336f3230 --------- Co-authored-by: Amp <amp@ampcode.com>
17 lines
560 B
TypeScript
17 lines
560 B
TypeScript
// Opencode tests cover onboard plugin behavior.
|
|
import { expectProviderOnboardAllowlistAlias } from "openclaw/plugin-sdk/provider-test-contracts";
|
|
import { describe, it } from "vitest";
|
|
import { applyOpencodeZenProviderConfig } from "./onboard.js";
|
|
|
|
const MODEL_REF = "opencode/claude-opus-5";
|
|
|
|
describe("opencode onboard", () => {
|
|
it("adds allowlist entry and preserves alias", () => {
|
|
expectProviderOnboardAllowlistAlias({
|
|
applyProviderConfig: applyOpencodeZenProviderConfig,
|
|
modelRef: MODEL_REF,
|
|
alias: "My Opus",
|
|
});
|
|
});
|
|
});
|