mirror of
https://github.com/paoloanzn/free-code.git
synced 2026-10-21 10:40:51 -05:00
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>
This commit is contained in:
1 parent
8e159b6ec3
commit
61a23c19bf
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
|
||||
: []),
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user