Skip to content

Commit e7eceda

Browse files
committed
fix: support current Muse builds and normalise CLI paths
1 parent 3b59932 commit e7eceda

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"registry": "https://registry.npmjs.org/"
3535
},
3636
"bin": {
37-
"muse-auth": "./scripts/muse.mjs",
38-
"museauth": "./scripts/muse.mjs"
37+
"muse-auth": "scripts/muse.mjs",
38+
"museauth": "scripts/muse.mjs"
3939
},
4040
"scripts": {
4141
"test": "node --test test/*.test.js",

‎test/cli.test.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ test("published CLI entry supports help, JSON and cross-process global/project p
1919
assert.ifError(result.error);
2020
return result;
2121
};
22-
assert.equal(bin["muse-auth"], "./scripts/muse.mjs");
22+
assert.equal(bin["muse-auth"], "scripts/muse.mjs");
2323
assert.equal(bin.museauth, bin["muse-auth"]);
2424
const help = run("--help");
2525
assert.equal(help.status, 0); assert.match(help.stdout, /Usage: muse-auth/);

‎test/transport.test.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ test("native Muse CLI transports OpenCode tools, history, reasoning and SSE with
4242
const mock = fixture(async (url, init) => {
4343
calls.push({ url, init });
4444
assert.equal(init.headers.authorization, "Bearer fake-local-test-only");
45-
assert.match(init.headers["user-agent"], /^muse-build\/1\.4\.7/);
45+
assert.match(init.headers["user-agent"], /^muse-build\/\d+\.\d+\.\d+/);
4646
if (url.endsWith("/models")) return Response.json(catalog);
4747
return new Response(frame, { headers: { "content-type": "text/event-stream", "x-request-id": "native-test" } });
4848
});

0 commit comments

Comments
 (0)