fix(setup): honor active client configuration and skill roots (#1504)
* refactor(setup): resolve skill destinations per client * fix(setup): honor active client configuration and skill roots * fix(setup): validate effective client scopes and Gemini trust * fix(setup): treat empty OpenCode overrides as unset An empty OPENCODE_CONFIG_DIR now stays on the XDG directory, and doctor and setup inspect global OpenCode files when a custom directory is absent. Uninstall reports one status per client so a missing earlier layer does not hide a removed registration. --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
@@ -98,7 +98,11 @@ cliTest(
|
||||
expect(doctor.exitCode).toBe(0);
|
||||
expect(doctor.json).toMatchObject({
|
||||
healthy: true,
|
||||
identity: { registrations: [{ client: "pi", state: "aligned" }] },
|
||||
identity: {
|
||||
registrations: expect.arrayContaining([
|
||||
expect.objectContaining({ client: "pi", state: "aligned" }),
|
||||
]),
|
||||
},
|
||||
});
|
||||
|
||||
const repeat = await run(["setup", "--client", "pi", "--yes", "--json"]);
|
||||
@@ -159,7 +163,11 @@ cliTest(
|
||||
expect(doctor.exitCode).toBe(0);
|
||||
expect(doctor.json).toMatchObject({
|
||||
healthy: true,
|
||||
identity: { registrations: [{ client: "pi", state: "aligned" }] },
|
||||
identity: {
|
||||
registrations: expect.arrayContaining([
|
||||
expect.objectContaining({ client: "pi", state: "aligned" }),
|
||||
]),
|
||||
},
|
||||
});
|
||||
await run(["uninstall", "--json"]);
|
||||
expect(
|
||||
@@ -215,7 +223,9 @@ cliTest(
|
||||
expect(doctorMalformed.json).toMatchObject({
|
||||
healthy: false,
|
||||
identity: {
|
||||
registrations: [{ client: "pi", state: "invalid" }],
|
||||
registrations: expect.arrayContaining([
|
||||
expect.objectContaining({ client: "pi", state: "invalid" }),
|
||||
]),
|
||||
},
|
||||
});
|
||||
const removed = await runMalformed(["uninstall", "--json"]);
|
||||
|
||||
Reference in New Issue
Block a user