feat(config): add commands.enableOpencode{User,Project} settings

Mirror the existing `commands.enableClaudeUser`/`commands.enableClaudeProject`
schema entries so the OpenCode discovery provider exposes the same
user/project toggle surface as Claude. Default remains true to preserve
current behavior.

Fixes #661
This commit is contained in:
can1357
2026-04-24 06:22:06 +02:00
parent cafa86a6cf
commit 7f81179b40
4 changed files with 92 additions and 38 deletions
@@ -292,9 +292,7 @@ describe("SQLite tool support", () => {
expect(() => parseSqliteSelector("users", "where=1=1 LIMIT 1000000 --&limit=2&offset=0")).toThrow(
/comments or statement terminators/i,
);
expect(() => parseSqliteSelector("users", "where=status='active' LIMIT 1")).toThrow(
/LIMIT\/OFFSET\/UNION/i,
);
expect(() => parseSqliteSelector("users", "where=status='active' LIMIT 1")).toThrow(/LIMIT\/OFFSET\/UNION/i);
expect(() => parseSqliteSelector("users", "where=1=1; DROP TABLE users")).toThrow(
/comments or statement terminators/i,
);