@i14ks/ccv 0.9.4 → 0.9.5

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 +9 -0
  2. package/package.json +1 -1
package/bundle/ccv.mjs CHANGED
@@ -2182,6 +2182,7 @@ var ClaudeSession = class extends EventEmitter {
2182
2182
  if (message.subtype === "init") {
2183
2183
  this.#model = message.model;
2184
2184
  this.#permissionMode = message.permissionMode;
2185
+ const previousClaudeSessionId = this.#claudeSessionId;
2185
2186
  this.#claudeSessionId = message.session_id;
2186
2187
  const catalog = this.#capabilities ?? this.#baseCapabilities();
2187
2188
  this.#capabilities = {
@@ -2197,6 +2198,9 @@ var ClaudeSession = class extends EventEmitter {
2197
2198
  };
2198
2199
  this.emit("capabilities", this.#capabilities);
2199
2200
  this.emit("summary", this.summary());
2201
+ if (previousClaudeSessionId && previousClaudeSessionId !== message.session_id) {
2202
+ this.emit("claudeSessionId", { from: previousClaudeSessionId, to: message.session_id });
2203
+ }
2200
2204
  if (catalog.commands.length === 0)
2201
2205
  void this.#loadCatalog();
2202
2206
  if (this.#unpersistedTitle)
@@ -6075,6 +6079,11 @@ var HostServer = class {
6075
6079
  return;
6076
6080
  void this.#pins.migrate(summary.id, summary.claudeSessionId).then((moved) => moved ? this.#sendPinned() : void 0).catch(() => void 0);
6077
6081
  });
6082
+ session.on("claudeSessionId", ({ from, to }) => {
6083
+ if (!this.#pins.has(from))
6084
+ return;
6085
+ void this.#pins.migrate(from, to).then((moved) => moved ? this.#sendPinned() : void 0).catch(() => void 0);
6086
+ });
6078
6087
  session.on("capabilities", () => {
6079
6088
  if (!session.capabilities)
6080
6089
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i14ks/ccv",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "license": "UNLICENSED",
5
5
  "description": "GUI для Claude Code: сессии агента в каталогах проектов, дерево файлов и редактор рядом с разговором.",
6
6
  "homepage": "https://claudevisual.com",