feat: 绕过 Claude Code 内的 claude 的账号需要; 但是浏览器扩展还是要权限

This commit is contained in:
claude-code-best
2026-04-03 23:57:27 +08:00
parent 6738a76152
commit 4c0b2aaedb
5 changed files with 6 additions and 13 deletions

View File

@@ -415,7 +415,7 @@ const getWorkflowCommands = feature('WORKFLOW_SCRIPTS')
* so this must be re-evaluated on every getCommands() call.
*/
export function meetsAvailabilityRequirement(cmd: Command): boolean {
if (!cmd.availability) return true
if (!cmd.availability || cmd.availability.length === 0) return true
for (const a of cmd.availability) {
switch (a) {
case 'claude-ai':