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:
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user