cli-jaw 1.3.0-preview.7 β 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ko.md +20 -0
- package/README.md +20 -0
- package/README.zh-CN.md +20 -0
- package/dist/src/agent/args.js +4 -2
- package/dist/src/agent/args.js.map +1 -1
- package/dist/src/agent/spawn.js +2 -2
- package/dist/src/agent/spawn.js.map +1 -1
- package/dist/src/cli/registry.js +5 -2
- package/dist/src/cli/registry.js.map +1 -1
- package/package.json +1 -1
- package/public/dist/bundle.js +23 -23
- package/public/dist/bundle.js.map +3 -3
- package/public/index.html +7 -0
- package/public/js/constants.ts +4 -1
- package/public/js/features/settings.ts +13 -2
- package/public/js/main.ts +12 -0
- package/public/js/ws.ts +9 -0
package/public/index.html
CHANGED
|
@@ -299,6 +299,13 @@
|
|
|
299
299
|
<option value="xhigh">π΄ xhigh</option>
|
|
300
300
|
</select>
|
|
301
301
|
</div>
|
|
302
|
+
<div class="settings-row sub-row">
|
|
303
|
+
<label>β‘ Fast Mode</label>
|
|
304
|
+
<div>
|
|
305
|
+
<button id="codexFastOff" class="perm-btn active" data-i18n="btn.off">λ</button>
|
|
306
|
+
<button id="codexFastOn" class="perm-btn" data-i18n="btn.on">μΌ¬</button>
|
|
307
|
+
</div>
|
|
308
|
+
</div>
|
|
302
309
|
</div>
|
|
303
310
|
|
|
304
311
|
<div class="settings-group">
|
package/public/js/constants.ts
CHANGED
|
@@ -19,7 +19,7 @@ const FALLBACK_CLI_REGISTRY: CliRegistry = {
|
|
|
19
19
|
codex: {
|
|
20
20
|
label: 'Codex',
|
|
21
21
|
efforts: ['low', 'medium', 'high', 'xhigh'],
|
|
22
|
-
models: ['gpt-5.3-codex', 'gpt-5.3-codex-spark', 'gpt-5.2-codex', 'gpt-5.1-codex-max', 'gpt-5.1-codex-mini'],
|
|
22
|
+
models: ['gpt-5.4', 'gpt-5.4-spark', 'gpt-5.3-codex', 'gpt-5.3-codex-spark', 'gpt-5.2-codex', 'gpt-5.1-codex-max', 'gpt-5.1-codex-mini'],
|
|
23
23
|
},
|
|
24
24
|
gemini: {
|
|
25
25
|
label: 'Gemini',
|
|
@@ -33,6 +33,8 @@ const FALLBACK_CLI_REGISTRY: CliRegistry = {
|
|
|
33
33
|
'anthropic/claude-opus-4-6-thinking',
|
|
34
34
|
'anthropic/claude-sonnet-4-6-thinking',
|
|
35
35
|
'anthropic/claude-sonnet-4-6',
|
|
36
|
+
'openai/gpt-5.4-xhigh',
|
|
37
|
+
'openai/gpt-5.4-high',
|
|
36
38
|
'openai/gpt-5.3-codex-xhigh',
|
|
37
39
|
'openai/gpt-5.3-codex-high',
|
|
38
40
|
'opencode/big-pickle',
|
|
@@ -52,6 +54,7 @@ const FALLBACK_CLI_REGISTRY: CliRegistry = {
|
|
|
52
54
|
'claude-opus-4.6',
|
|
53
55
|
'claude-opus-4.6-fast',
|
|
54
56
|
'claude-haiku-4.5',
|
|
57
|
+
'gpt-5.4',
|
|
55
58
|
'gpt-5.3-codex',
|
|
56
59
|
'gpt-5.2-codex',
|
|
57
60
|
'gpt-5.1-codex',
|
|
@@ -6,7 +6,7 @@ import { syncStoredLocale } from '../locale.js';
|
|
|
6
6
|
import { t } from './i18n.js';
|
|
7
7
|
import { api, apiJson, apiFire } from '../api.js';
|
|
8
8
|
|
|
9
|
-
interface PerCliConfig { model?: string; effort?: string; }
|
|
9
|
+
interface PerCliConfig { model?: string; effort?: string; fastMode?: boolean; }
|
|
10
10
|
interface TelegramConfig { enabled?: boolean; token?: string; allowedChatIds?: number[]; forwardAll?: boolean; }
|
|
11
11
|
interface QuotaWindow { label: string; percent: number; resetsAt?: string | number | null; }
|
|
12
12
|
interface QuotaEntry {
|
|
@@ -166,6 +166,11 @@ export async function loadSettings(): Promise<void> {
|
|
|
166
166
|
modelEl.value = cfg.model;
|
|
167
167
|
}
|
|
168
168
|
if (effortEl) effortEl.value = cfg.effort || '';
|
|
169
|
+
// Restore Codex fast mode toggle
|
|
170
|
+
if (cli === 'codex' && cfg.fastMode !== undefined) {
|
|
171
|
+
document.getElementById('codexFastOn')?.classList.toggle('active', cfg.fastMode);
|
|
172
|
+
document.getElementById('codexFastOff')?.classList.toggle('active', !cfg.fastMode);
|
|
173
|
+
}
|
|
169
174
|
}
|
|
170
175
|
}
|
|
171
176
|
|
|
@@ -364,10 +369,16 @@ export async function savePerCli(): Promise<void> {
|
|
|
364
369
|
const modelEl = getModelSelect(cli);
|
|
365
370
|
if (!modelEl) continue;
|
|
366
371
|
const effortEl = getEffortSelect(cli);
|
|
367
|
-
|
|
372
|
+
const entry: PerCliConfig = {
|
|
368
373
|
model: getModelValue(cli),
|
|
369
374
|
effort: effortEl ? effortEl.value : '',
|
|
370
375
|
};
|
|
376
|
+
// Codex fast mode toggle
|
|
377
|
+
if (cli === 'codex') {
|
|
378
|
+
const onBtn = document.getElementById('codexFastOn');
|
|
379
|
+
entry.fastMode = onBtn?.classList.contains('active') ?? false;
|
|
380
|
+
}
|
|
381
|
+
perCli[cli] = entry;
|
|
371
382
|
}
|
|
372
383
|
await apiJson('/api/settings', 'PUT', { perCli });
|
|
373
384
|
}
|
package/public/js/main.ts
CHANGED
|
@@ -170,6 +170,18 @@ document.getElementById('tgToken')?.addEventListener('change', saveTelegramSetti
|
|
|
170
170
|
document.getElementById('tgChatIds')?.addEventListener('change', saveTelegramSettings);
|
|
171
171
|
document.getElementById('fallbackOrderList')?.addEventListener('change', saveFallbackOrder);
|
|
172
172
|
|
|
173
|
+
// Codex fast mode toggle
|
|
174
|
+
function setCodexFast(on: boolean) {
|
|
175
|
+
const onBtn = document.getElementById('codexFastOn');
|
|
176
|
+
const offBtn = document.getElementById('codexFastOff');
|
|
177
|
+
if (onBtn && offBtn) {
|
|
178
|
+
onBtn.classList.toggle('active', on);
|
|
179
|
+
offBtn.classList.toggle('active', !on);
|
|
180
|
+
}
|
|
181
|
+
savePerCli();
|
|
182
|
+
}
|
|
183
|
+
document.getElementById('codexFastOn')?.addEventListener('click', () => setCodexFast(true));
|
|
184
|
+
document.getElementById('codexFastOff')?.addEventListener('click', () => setCodexFast(false));
|
|
173
185
|
// Per-CLI model selects
|
|
174
186
|
function bindPerCliControlEvents(): void {
|
|
175
187
|
for (const cli of getCliKeys()) {
|
package/public/js/ws.ts
CHANGED
|
@@ -159,6 +159,15 @@ export function connect(): void {
|
|
|
159
159
|
positionShark(roadmap, shark, currentSharkPhase);
|
|
160
160
|
}
|
|
161
161
|
}).observe(roadmap);
|
|
162
|
+
let rafId = 0;
|
|
163
|
+
window.addEventListener('resize', () => {
|
|
164
|
+
cancelAnimationFrame(rafId);
|
|
165
|
+
rafId = requestAnimationFrame(() => {
|
|
166
|
+
if (currentSharkPhase && shark.classList.contains('running')) {
|
|
167
|
+
positionShark(roadmap, shark, currentSharkPhase);
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
});
|
|
162
171
|
}
|
|
163
172
|
|
|
164
173
|
if (nextState === 'IDLE') {
|