@i14ks/ccv 0.12.2 → 0.12.3

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.
Files changed (2) hide show
  1. package/bundle/ccv.mjs +4 -1
  2. package/package.json +1 -1
package/bundle/ccv.mjs CHANGED
@@ -2291,7 +2291,7 @@ var ClaudeSession = class extends EventEmitter {
2291
2291
  this.#capabilities = {
2292
2292
  ...this.#capabilities ?? this.#baseCapabilities(),
2293
2293
  commands: init.commands.map(toSlashCommand),
2294
- models: init.models.map((m) => ({
2294
+ models: init.models.filter((m) => isPlainModel(m.value)).map((m) => ({
2295
2295
  value: m.value,
2296
2296
  resolvedModel: m.resolvedModel ?? null,
2297
2297
  displayName: m.displayName,
@@ -2399,6 +2399,9 @@ function isApiErrorMessage(message) {
2399
2399
  function apiErrorReason(status) {
2400
2400
  return status === void 0 ? "\u0437\u0430\u043F\u0440\u043E\u0441 \u043A API \u043D\u0435 \u0434\u043E\u0448\u0451\u043B" : `API \u043E\u0442\u0432\u0435\u0442\u0438\u043B ${status}`;
2401
2401
  }
2402
+ function isPlainModel(value) {
2403
+ return /^[a-z]+$/.test(value);
2404
+ }
2402
2405
  function toSlashCommand(command) {
2403
2406
  return {
2404
2407
  name: command.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i14ks/ccv",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
4
4
  "license": "UNLICENSED",
5
5
  "description": "GUI для Claude Code: сессии агента в каталогах проектов, дерево файлов и редактор рядом с разговором.",
6
6
  "homepage": "https://claudevisual.com",