Skip to content

Commit 142d143

Browse files
committed
test(anthropic): pin the local retired-profile id to the plugin-sdk constant
The provider-policy artifact keeps this id as a local literal so it never imports the provider-auth barrel (#129052 regressed dist-less CI checkouts into 120s jiti compiles of ~2.2k modules); this parity test stops the two constants from drifting apart.
1 parent 8028cb0 commit 142d143

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { CLAUDE_CLI_PROFILE_ID as SDK_CLAUDE_CLI_PROFILE_ID } from "openclaw/plugin-sdk/provider-auth";
2+
import { describe, expect, it } from "vitest";
3+
import { CLAUDE_CLI_PROFILE_ID } from "./cli-constants.js";
4+
5+
describe("claude cli constants", () => {
6+
it("keeps the local retired profile id aligned with the plugin-sdk constant", () => {
7+
// The provider-policy artifact must stay light, so this plugin carries the
8+
// retired profile id locally instead of importing the provider-auth barrel
9+
// (#129052 regressed dist-less CI checkouts into 120s jiti compiles).
10+
expect(CLAUDE_CLI_PROFILE_ID).toBe(SDK_CLAUDE_CLI_PROFILE_ID);
11+
});
12+
});

0 commit comments

Comments
 (0)