Merge branch 'pr/amDosion/93'

This commit is contained in:
claude-code-best
2026-04-04 00:00:40 +08:00
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':

View File

@@ -186,7 +186,7 @@ function ClaudeInChromeMenu(t0) {
} else {
options = $[8];
}
const isDisabled = isWSL || true && !isClaudeAISubscriber;
const isDisabled = isWSL;
let t5;
if ($[18] !== onDone) {
t5 = () => onDone();
@@ -212,7 +212,7 @@ function ClaudeInChromeMenu(t0) {
}
let t8;
if ($[23] !== isClaudeAISubscriber) {
t8 = true && !isClaudeAISubscriber && <Text color="error">Claude in Chrome requires a claude.ai subscription.</Text>;
t8 = false;
$[23] = isClaudeAISubscriber;
$[24] = t8;
} else {

View File

@@ -4,7 +4,7 @@ import type { Command } from '../../commands.js'
const command: Command = {
name: 'chrome',
description: 'Claude in Chrome (Beta) settings',
availability: ['claude-ai'],
availability: [],
isEnabled: () => !getIsNonInteractiveSession(),
type: 'local-jsx',
load: () => import('./chrome.js'),

View File

@@ -21,14 +21,7 @@ async function _temp() {
if (!shouldEnableClaudeInChrome(chromeFlag)) {
return null;
}
if (true && !isClaudeAISubscriber()) {
return {
key: "chrome-requires-subscription",
jsx: <Text color="error">Claude in Chrome requires a claude.ai subscription</Text>,
priority: "immediate",
timeoutMs: 5000
};
}
// Subscription check bypassed
const installed = await isChromeExtensionInstalled();
if (!installed && !isRunningOnHomespace()) {
return {

View File

@@ -1525,7 +1525,7 @@ async function run(): Promise<CommanderCommand> {
};
// Store the explicit CLI flag so teammates can inherit it
setChromeFlagOverride(chromeOpts.chrome);
const enableClaudeInChrome = shouldEnableClaudeInChrome(chromeOpts.chrome) && ((process.env.USER_TYPE) === 'ant' || isClaudeAISubscriber());
const enableClaudeInChrome = shouldEnableClaudeInChrome(chromeOpts.chrome);
const autoEnableClaudeInChrome = !enableClaudeInChrome && shouldAutoEnableClaudeInChrome();
if (enableClaudeInChrome) {
const platform = getPlatform();