mirror of
https://github.com/paoloanzn/free-code.git
synced 2026-10-19 01:30:18 -05:00
feat: enable voice mode in default builds
This commit is contained in:
1 parent
26d7bcc4a8
commit
98e2b98a83
2 files changed
+6
-4
No files matched your search
+1
-1
@@ -15,7 +15,7 @@
|
||||
"scripts": {
|
||||
"build": "bun run ./scripts/build.ts",
|
||||
"build:dev": "bun run ./scripts/build.ts --dev",
|
||||
"build:dev:full": "bun run ./scripts/build.ts --dev --feature=QUICK_SEARCH --feature=HISTORY_PICKER --feature=TOKEN_BUDGET --feature=VOICE_MODE --feature=ULTRAPLAN --feature=CACHED_MICROCOMPACT --feature=PROMPT_CACHE_BREAK_DETECTION",
|
||||
"build:dev:full": "bun run ./scripts/build.ts --dev --feature=QUICK_SEARCH --feature=HISTORY_PICKER --feature=TOKEN_BUDGET --feature=ULTRAPLAN --feature=CACHED_MICROCOMPACT --feature=PROMPT_CACHE_BREAK_DETECTION",
|
||||
"compile": "bun run ./scripts/build.ts --compile",
|
||||
"dev": "bun run ./src/entrypoints/cli.tsx"
|
||||
},
|
||||
|
||||
+5
-3
@@ -40,18 +40,20 @@ function getVersionChangelog(): string {
|
||||
)
|
||||
}
|
||||
|
||||
const features: string[] = []
|
||||
const defaultFeatures = ['VOICE_MODE']
|
||||
const featureSet = new Set(defaultFeatures)
|
||||
for (let i = 0; i < args.length; i += 1) {
|
||||
const arg = args[i]
|
||||
if (arg === '--feature' && args[i + 1]) {
|
||||
features.push(args[i + 1]!)
|
||||
featureSet.add(args[i + 1]!)
|
||||
i += 1
|
||||
continue
|
||||
}
|
||||
if (arg.startsWith('--feature=')) {
|
||||
features.push(arg.slice('--feature='.length))
|
||||
featureSet.add(arg.slice('--feature='.length))
|
||||
}
|
||||
}
|
||||
const features = [...featureSet]
|
||||
|
||||
const outfile = compile
|
||||
? dev
|
||||
|
||||
Reference in new issue
Block a user