@patze/code-cli 0.41.0 → 0.42.0
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/CHANGELOG.md +9 -0
- package/VERSION +1 -1
- package/dist/cli/commands/diff-format.js +4 -4
- package/dist/cli/commands/diff-format.js.map +1 -1
- package/dist/cli/commands/doctor.js +2 -2
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/inspect-format.js +1 -1
- package/dist/cli/commands/inspect-format.js.map +1 -1
- package/dist/cli/commands/plan-format.js +1 -1
- package/dist/cli/commands/plan-format.js.map +1 -1
- package/dist/cli/commands/status-format.d.ts.map +1 -1
- package/dist/cli/commands/status-format.js +3 -3
- package/dist/cli/commands/status-format.js.map +1 -1
- package/dist/cli/help.js +3 -3
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/interactive/agent-turn-context.js +2 -2
- package/dist/cli/interactive/agent-turn-context.js.map +1 -1
- package/dist/cli/interactive/agent-turn-format.d.ts.map +1 -1
- package/dist/cli/interactive/agent-turn-format.js +0 -3
- package/dist/cli/interactive/agent-turn-format.js.map +1 -1
- package/dist/cli/interactive/codex-preview-feed.d.ts.map +1 -1
- package/dist/cli/interactive/codex-preview-feed.js +6 -9
- package/dist/cli/interactive/codex-preview-feed.js.map +1 -1
- package/dist/cli/interactive/header.d.ts.map +1 -1
- package/dist/cli/interactive/header.js +3 -5
- package/dist/cli/interactive/header.js.map +1 -1
- package/dist/cli/interactive/model-command.d.ts.map +1 -1
- package/dist/cli/interactive/model-command.js +2 -2
- package/dist/cli/interactive/model-command.js.map +1 -1
- package/dist/cli/interactive/permissions-command.d.ts.map +1 -1
- package/dist/cli/interactive/permissions-command.js +7 -8
- package/dist/cli/interactive/permissions-command.js.map +1 -1
- package/dist/cli/interactive/permissions-format.d.ts.map +1 -1
- package/dist/cli/interactive/permissions-format.js +5 -6
- package/dist/cli/interactive/permissions-format.js.map +1 -1
- package/dist/cli/interactive/session-store.d.ts +1 -1
- package/dist/cli/interactive/session-store.d.ts.map +1 -1
- package/dist/cli/interactive/session-store.js +2 -5
- package/dist/cli/interactive/session-store.js.map +1 -1
- package/dist/cli/interactive/slash-registry.js +4 -4
- package/dist/cli/interactive/slash-registry.js.map +1 -1
- package/dist/cli/interactive/tools-catalog.js +2 -2
- package/dist/cli/interactive/tools-catalog.js.map +1 -1
- package/dist/config/model-preferences.d.ts +1 -0
- package/dist/config/model-preferences.d.ts.map +1 -1
- package/dist/config/model-preferences.js +11 -2
- package/dist/config/model-preferences.js.map +1 -1
- package/dist/config/models.d.ts +9 -0
- package/dist/config/models.d.ts.map +1 -1
- package/dist/config/models.js +64 -12
- package/dist/config/models.js.map +1 -1
- package/dist/runtime/apply-verify.js +3 -3
- package/dist/runtime/apply-verify.js.map +1 -1
- package/dist/runtime/permissions.d.ts +2 -1
- package/dist/runtime/permissions.d.ts.map +1 -1
- package/dist/runtime/permissions.js +25 -11
- package/dist/runtime/permissions.js.map +1 -1
- package/dist/runtime/sandbox.d.ts +1 -0
- package/dist/runtime/sandbox.d.ts.map +1 -1
- package/dist/runtime/sandbox.js +4 -1
- package/dist/runtime/sandbox.js.map +1 -1
- package/opentui/src/App.tsx +35 -11
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../../src/runtime/sandbox.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,cAAc,CAAC,IAAiB;IAC9C,IAAI,IAAI,KAAK,iBAAiB,EAAE,CAAC;QAC/B,OAAO;YACL,IAAI;YACJ,cAAc,EAAE,KAAK;YACrB,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE,8EAA8E;SAC5F,CAAA;IACH,CAAC;IAED,OAAO;QACL,IAAI,EAAE,WAAW;QACjB,cAAc,EAAE,KAAK;QACrB,YAAY,EAAE,KAAK;QACnB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../../src/runtime/sandbox.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,sBAAsB,CAAC,IAAiB;IACtD,OAAO,IAAI,KAAK,iBAAiB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAA;AAC3D,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,IAAiB;IAC9C,IAAI,IAAI,KAAK,iBAAiB,EAAE,CAAC;QAC/B,OAAO;YACL,IAAI;YACJ,cAAc,EAAE,KAAK;YACrB,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE,8EAA8E;SAC5F,CAAA;IACH,CAAC;IAED,OAAO;QACL,IAAI,EAAE,WAAW;QACjB,cAAc,EAAE,KAAK;QACrB,YAAY,EAAE,KAAK;QACnB,WAAW,EAAE,qEAAqE;KACnF,CAAA;AACH,CAAC"}
|
package/opentui/src/App.tsx
CHANGED
|
@@ -24,6 +24,11 @@ import { classifyPlainOutput, createTranscriptSink, inferErrorKind } from "./tui
|
|
|
24
24
|
import { upsertTranscriptEntry } from "../../dist/cli/interactive/transcript-upsert.js"
|
|
25
25
|
import { applyOpenTuiAgentEvent } from "../../dist/cli/interactive/opentui-agent-event.js"
|
|
26
26
|
import type { AgentEvent } from "../../dist/cli/interactive/agent-events.js"
|
|
27
|
+
import {
|
|
28
|
+
formatModelDisplayName,
|
|
29
|
+
getModelCatalogEntry,
|
|
30
|
+
PATZE_MODEL_CATALOG,
|
|
31
|
+
} from "../../dist/config/models.js"
|
|
27
32
|
|
|
28
33
|
extend({ "tui-input": InputRenderable })
|
|
29
34
|
|
|
@@ -540,7 +545,7 @@ export function App({ cwd: cwdArg }: { cwd?: string }) {
|
|
|
540
545
|
: composerChromeRows)
|
|
541
546
|
)
|
|
542
547
|
|
|
543
|
-
const composerModelLabel = `${currentModel}${modelThinking ? " · thinking" : ""}${modelFast ? " · fast" : ""}`
|
|
548
|
+
const composerModelLabel = `${formatModelDisplayName(currentModel)}${modelThinking ? " · thinking" : ""}${modelFast ? " · fast" : ""}`
|
|
544
549
|
const composerPathLabel = shortenComposerPath(cwd)
|
|
545
550
|
|
|
546
551
|
const scrollableEntries = useMemo(() => transcript, [transcript])
|
|
@@ -571,17 +576,36 @@ export function App({ cwd: cwdArg }: { cwd?: string }) {
|
|
|
571
576
|
}, [input, slashMenuReady])
|
|
572
577
|
|
|
573
578
|
const modelItems = useMemo(() => {
|
|
574
|
-
const
|
|
575
|
-
|
|
576
|
-
: ["composer-2.5-fast", "composer-2.5", "composer-2", "gpt-5.4-mini", "gpt-5.4"]
|
|
579
|
+
const catalogIds = PATZE_MODEL_CATALOG.map((entry) => entry.id)
|
|
580
|
+
const merged = [...new Set([...catalogIds, ...supportedModels])]
|
|
577
581
|
const normalized = modelSearch.trim().toLowerCase()
|
|
578
|
-
return
|
|
579
|
-
.filter((model) =>
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
582
|
+
return merged
|
|
583
|
+
.filter((model) => {
|
|
584
|
+
if (!normalized) {
|
|
585
|
+
return true
|
|
586
|
+
}
|
|
587
|
+
const display = formatModelDisplayName(model).toLowerCase()
|
|
588
|
+
if (model.toLowerCase().includes(normalized) || display.includes(normalized)) {
|
|
589
|
+
return true
|
|
590
|
+
}
|
|
591
|
+
if (normalized === "patze" && model === "composer-2.5-fast") {
|
|
592
|
+
return true
|
|
593
|
+
}
|
|
594
|
+
return false
|
|
595
|
+
})
|
|
596
|
+
.map((model) => {
|
|
597
|
+
const entry = getModelCatalogEntry(model)
|
|
598
|
+
const isCurrent = model.toLowerCase() === currentModel.toLowerCase()
|
|
599
|
+
return {
|
|
600
|
+
name: formatModelDisplayName(model),
|
|
601
|
+
description: isCurrent
|
|
602
|
+
? entry?.description
|
|
603
|
+
? `${entry.description} · current`
|
|
604
|
+
: "current"
|
|
605
|
+
: entry?.description ?? model,
|
|
606
|
+
value: model,
|
|
607
|
+
}
|
|
608
|
+
})
|
|
585
609
|
}, [currentModel, modelSearch, supportedModels])
|
|
586
610
|
|
|
587
611
|
const toggleFeedExpand = useCallback((target: "think" | "diff") => {
|