mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-15 12:55:51 +00:00
Merge branch 'pr/amDosion/93'
This commit is contained in:
@@ -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':
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user