Explorar o código

fix: make ultraplan command available in external builds

ultraplan was blocked by two gates that restricted it to ant-only builds:
1. It was in INTERNAL_ONLY_COMMANDS (only included when USER_TYPE=ant)
2. Its own isEnabled checked process.env.USER_TYPE === 'ant'

Move it to the main COMMANDS array and remove the ant-only isEnabled gate.
The feature('ULTRAPLAN') flag already controls whether the code is loaded.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
paoloanzn hai 2 meses
pai
achega
61a23c19bf
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      src/commands.ts
  2. 1 1
      src/commands/ultraplan.tsx

+ 1 - 1
src/commands.ts

@@ -236,7 +236,6 @@ export const INTERNAL_ONLY_COMMANDS = [
   mockLimits,
   bridgeKick,
   version,
-  ...(ultraplan ? [ultraplan] : []),
   ...(subscribePr ? [subscribePr] : []),
   resetLimits,
   resetLimitsNonInteractive,
@@ -340,6 +339,7 @@ const COMMANDS = memoize((): Command[] => [
   tasks,
   ...(workflowsCmd ? [workflowsCmd] : []),
   ...(torch ? [torch] : []),
+  ...(ultraplan ? [ultraplan] : []),
   ...(process.env.USER_TYPE === 'ant' && !process.env.IS_DEMO
     ? INTERNAL_ONLY_COMMANDS
     : []),

+ 1 - 1
src/commands/ultraplan.tsx

@@ -463,7 +463,7 @@ export default {
   name: 'ultraplan',
   description: `~10–30 min · Claude Code on the web drafts an advanced plan you can edit and approve. See ${CCR_TERMS_URL}`,
   argumentHint: '<prompt>',
-  isEnabled: () => "external" === 'ant',
+  isEnabled: () => true,
   load: () => Promise.resolve({
     call
   })