zidane-gui 7.0.8 → 7.0.10

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/out/main/index.js CHANGED
@@ -6,7 +6,7 @@ import { parseEditorCommand, keybindingsPath, stripJsonComments, ensureKeybindin
6
6
  import { spawn, execFile } from "node:child_process";
7
7
  import { mkdirSync, readFileSync, writeFileSync, readdirSync, existsSync, copyFileSync, rmSync } from "node:fs";
8
8
  import { homedir, userInfo } from "node:os";
9
- import { migrateSessionArtifactDirs, createRingBufferSink, fanoutSink, consoleSink, createLogger, createExtensionBus, toWireConfigSchema, resolveCompletionSubmit, inlineLoadedExtension, discoverAndBuildExtensionRegistry, disposeExtensionRegistry, installExtensionFromSpec, ExtensionInstallError, updateInstalledExtension, removeInstalledExtension, sanitizeExtensionConfigActionPatch, loginMcpServer, McpOAuthProvider, extensionScaffold, resolveInlineSuggestion, createPathAutocompleteProvider, editSessionMetadata, loadSession } from "zidane";
9
+ import { migrateSessionArtifactDirs, createRingBufferSink, fanoutSink, consoleSink, createLogger, createExtensionBus, createExtensionHostRuntimeBridge, toWireConfigSchema, resolveCompletionSubmit, inlineLoadedExtension, discoverAndBuildExtensionRegistry, disposeExtensionRegistry, installExtensionFromSpec, ExtensionInstallError, updateInstalledExtension, removeInstalledExtension, sanitizeExtensionConfigActionPatch, loginMcpServer, McpOAuthProvider, extensionScaffold, resolveInlineSuggestion, createPathAutocompleteProvider, editSessionMetadata, loadSession } from "zidane";
10
10
  import { IPC_BUILD_ID, defaultSocketPath, probeSocket, connectIpcClient, IpcVersionMismatchError } from "zidane/ipc";
11
11
  import { DatabaseSync } from "node:sqlite";
12
12
  import { P as PARENT_USER_TURN, u as usageAssistantDaily$1, b as usageUserDaily$1, a as usageSessionDaily$1 } from "./chunks/usage-sql-BdDLRz11.js";
@@ -1033,6 +1033,7 @@ function isPlainRecord(value) {
1033
1033
  }
1034
1034
  const registryCache = /* @__PURE__ */ new Map();
1035
1035
  const extensionBus = createExtensionBus();
1036
+ const extensionHostRuntime = createExtensionHostRuntimeBridge();
1036
1037
  function deliverExtensionSignal(envelope) {
1037
1038
  extensionBus.deliver(envelope);
1038
1039
  }
@@ -1083,6 +1084,7 @@ async function getExtensionRegistry(cwd, settings) {
1083
1084
  inlineExtensions: inline,
1084
1085
  sink: extensionSink(),
1085
1086
  bus: extensionBus,
1087
+ hostRuntime: extensionHostRuntime,
1086
1088
  // Live config reads for extension hooks/tools — read the DB fresh on
1087
1089
  // each `ctx.config.get` (not the snapshot used for the cache key), so
1088
1090
  // a value edited via Settings takes effect without a registry rebuild.
@@ -2049,10 +2051,10 @@ function broadcast(signal) {
2049
2051
  });
2050
2052
  }
2051
2053
  return;
2054
+ // Forwarded in BOTH modes: the renderer has one queue path (the host's),
2055
+ // so the embedded host's queue must reach it exactly like the daemon's.
2052
2056
  case "queue:changed":
2053
- if (daemonSignalsLive) {
2054
- sendToAllWindows("queue:changed", { sessionId: signal.sessionId, items: signal.items });
2055
- }
2057
+ sendToAllWindows("queue:changed", { sessionId: signal.sessionId, items: signal.items });
2056
2058
  return;
2057
2059
  case "presence:changed":
2058
2060
  if (daemonSignalsLive) {
@@ -2130,6 +2132,7 @@ function getChatHost() {
2130
2132
  store: getSessionStore(),
2131
2133
  readSettings,
2132
2134
  runtimeConfig: getRuntimeConfig,
2135
+ hostRuntime: extensionHostRuntime,
2133
2136
  userDataDir,
2134
2137
  applyAuthEnv,
2135
2138
  mcpCredentialStore: getMcpCredentialStore,
@@ -3734,6 +3737,13 @@ function registerChatIpc() {
3734
3737
  }
3735
3738
  return getChatHost().queueRemove(sessionId, id);
3736
3739
  });
3740
+ ipcMain.handle("queue:update", (_e, sessionId, id, text) => {
3741
+ const daemon = getDaemonClient();
3742
+ if (daemon) {
3743
+ return daemon.request("queue.update", { sessionId, id, text });
3744
+ }
3745
+ return getChatHost().queueUpdate(sessionId, id, text);
3746
+ });
3737
3747
  ipcMain.handle("queue:pushNow", (_e, sessionId, id) => {
3738
3748
  const daemon = getDaemonClient();
3739
3749
  if (daemon) {
@@ -78,6 +78,7 @@ const api = {
78
78
  list: (sessionId) => ipcRenderer.invoke("queue:list", sessionId),
79
79
  add: (sessionId, text, activatedSkills, attachments) => ipcRenderer.invoke("queue:add", sessionId, text, activatedSkills, attachments),
80
80
  remove: (sessionId, id) => ipcRenderer.invoke("queue:remove", sessionId, id),
81
+ update: (sessionId, id, text) => ipcRenderer.invoke("queue:update", sessionId, id, text),
81
82
  pushNow: (sessionId, id) => ipcRenderer.invoke("queue:pushNow", sessionId, id),
82
83
  onChanged: (cb) => subscribe("queue:changed", cb)
83
84
  },