fix: keep build green after main rebase (#570) (thanks @azade-c)
This commit is contained in:
@@ -180,7 +180,10 @@ async function ensureDevWorkspace(dir: string) {
|
||||
path.join(resolvedDir, "TOOLS.md"),
|
||||
DEV_TOOLS_TEMPLATE,
|
||||
);
|
||||
await writeFileIfMissing(path.join(resolvedDir, "USER.md"), DEV_USER_TEMPLATE);
|
||||
await writeFileIfMissing(
|
||||
path.join(resolvedDir, "USER.md"),
|
||||
DEV_USER_TEMPLATE,
|
||||
);
|
||||
await writeFileIfMissing(
|
||||
path.join(resolvedDir, "HEARTBEAT.md"),
|
||||
DEV_HEARTBEAT_TEMPLATE,
|
||||
|
||||
@@ -392,7 +392,9 @@ export function registerModelsCli(program: Command) {
|
||||
|
||||
order
|
||||
.command("set")
|
||||
.description("Set per-agent auth order override (locks rotation to this list)")
|
||||
.description(
|
||||
"Set per-agent auth order override (locks rotation to this list)",
|
||||
)
|
||||
.requiredOption("--provider <name>", "Provider id (e.g. anthropic)")
|
||||
.option("--agent <id>", "Agent id (default: configured default agent)")
|
||||
.argument("<profileIds...>", "Auth profile ids (e.g. anthropic:claude-cli)")
|
||||
@@ -414,7 +416,9 @@ export function registerModelsCli(program: Command) {
|
||||
|
||||
order
|
||||
.command("clear")
|
||||
.description("Clear per-agent auth order override (fall back to config/round-robin)")
|
||||
.description(
|
||||
"Clear per-agent auth order override (fall back to config/round-robin)",
|
||||
)
|
||||
.requiredOption("--provider <name>", "Provider id (e.g. anthropic)")
|
||||
.option("--agent <id>", "Agent id (default: configured default agent)")
|
||||
.action(async (opts) => {
|
||||
|
||||
@@ -23,12 +23,7 @@ describe("parseCliProfileArgs", () => {
|
||||
});
|
||||
|
||||
it("still accepts global --dev before subcommand", () => {
|
||||
const res = parseCliProfileArgs([
|
||||
"node",
|
||||
"clawdbot",
|
||||
"--dev",
|
||||
"gateway",
|
||||
]);
|
||||
const res = parseCliProfileArgs(["node", "clawdbot", "--dev", "gateway"]);
|
||||
if (!res.ok) throw new Error(res.error);
|
||||
expect(res.profile).toBe("dev");
|
||||
expect(res.argv).toEqual(["node", "clawdbot", "gateway"]);
|
||||
|
||||
Reference in New Issue
Block a user