zidane-gui 8.1.0 → 8.2.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.
@@ -1,6 +1,6 @@
1
1
  import { DatabaseSync } from "node:sqlite";
2
2
  import { parentPort } from "node:worker_threads";
3
- import { r as runUsageAggregates } from "./chunks/usage-sql-CqAEudo_.js";
3
+ import { r as runUsageAggregates } from "./chunks/usage-sql-C2Tg1u44.js";
4
4
  if (!parentPort) {
5
5
  throw new Error("usage-worker must run as a worker thread");
6
6
  }
@@ -69,14 +69,17 @@ const api = {
69
69
  generateTitle: (id) => ipcRenderer.invoke("sessions:generateTitle", id),
70
70
  compact: (id) => ipcRenderer.invoke("sessions:compact", id),
71
71
  export: (id, format) => ipcRenderer.invoke("sessions:export", id, format),
72
- loadEvents: (id) => ipcRenderer.invoke("sessions:loadEvents", id),
72
+ loadEvents: (id, opts) => ipcRenderer.invoke("sessions:loadEvents", id, opts),
73
73
  loadEventsBefore: (id, beforeSeq) => ipcRenderer.invoke("sessions:loadEventsBefore", id, beforeSeq),
74
- toolResultText: (id, callId) => ipcRenderer.invoke("sessions:toolResultText", id, callId),
74
+ toolResultText: (id, callId, turnId) => ipcRenderer.invoke("sessions:toolResultText", id, callId, turnId),
75
75
  contextStatus: (id) => ipcRenderer.invoke("sessions:contextStatus", id),
76
76
  contextBreakdown: (id) => ipcRenderer.invoke("sessions:contextBreakdown", id),
77
77
  systemMd: (id) => ipcRenderer.invoke("sessions:systemMd", id),
78
78
  contextSegments: (id) => ipcRenderer.invoke("sessions:contextSegments", id),
79
+ cacheImpact: (id, change) => ipcRenderer.invoke("sessions:cacheImpact", id, change),
80
+ cacheReport: (id) => ipcRenderer.invoke("sessions:cacheReport", id),
79
81
  costStatus: (id) => ipcRenderer.invoke("sessions:costStatus", id),
82
+ runProgress: (id) => ipcRenderer.invoke("sessions:runProgress", id),
80
83
  setArchived: (id, archived) => ipcRenderer.invoke("sessions:setArchived", id, archived),
81
84
  setFavorite: (id, favorite) => ipcRenderer.invoke("sessions:setFavorite", id, favorite),
82
85
  setSpace: (id, spaceId) => ipcRenderer.invoke("sessions:setSpace", id, spaceId),
@@ -88,6 +91,12 @@ const api = {
88
91
  setLastUsed: (path) => ipcRenderer.invoke("folder:setLastUsed", path),
89
92
  locationOf: (cwd) => ipcRenderer.invoke("folder:locationOf", cwd)
90
93
  },
94
+ sidebar: {
95
+ getViews: () => ipcRenderer.invoke("sidebar:getViews"),
96
+ setView: (spaceId, view) => ipcRenderer.invoke("sidebar:setView", spaceId, view),
97
+ getSpace: () => ipcRenderer.invoke("sidebar:getSpace"),
98
+ setSpace: (spaceId) => ipcRenderer.invoke("sidebar:setSpace", spaceId)
99
+ },
91
100
  repo: {
92
101
  defaultParent: () => ipcRenderer.invoke("repo:defaultParent"),
93
102
  clone: (input, parent) => ipcRenderer.invoke("repo:clone", input, parent),
@@ -159,7 +168,15 @@ const api = {
159
168
  pushQueued: (sessionId, message, activatedSkills) => ipcRenderer.invoke("chat:pushQueued", sessionId, message, activatedSkills),
160
169
  listWork: (sessionId) => ipcRenderer.invoke("chat:listWork", sessionId),
161
170
  cancelWork: (sessionId, id, reason) => ipcRenderer.invoke("chat:cancelWork", sessionId, id, reason),
162
- onStreamSignal: (cb) => subscribe("chat:stream", cb),
171
+ // One bridged callback for both channels (renderer `ipc-bus.ts` fans it out); main sends them in order.
172
+ onStreamSignals: (cb) => {
173
+ const offOne = subscribe("chat:stream", (signal) => cb([signal]));
174
+ const offBatch = subscribe("chat:stream:batch", cb);
175
+ return () => {
176
+ offOne();
177
+ offBatch();
178
+ };
179
+ },
163
180
  onSkillsChanged: (cb) => subscribe("skills:changed", cb),
164
181
  onSuggestionReady: (cb) => subscribe("suggestion:ready", cb)
165
182
  },
@@ -264,6 +281,8 @@ const api = {
264
281
  lspClose: (cwd, path) => ipcRenderer.invoke("workspace:lspClose", cwd, path),
265
282
  lspDefinition: (cwd, path, line, column) => ipcRenderer.invoke("workspace:lspDefinition", cwd, path, line, column),
266
283
  lspHover: (cwd, path, line, column) => ipcRenderer.invoke("workspace:lspHover", cwd, path, line, column),
284
+ lspCompletion: (cwd, path, text, changes, line, column, trigger) => ipcRenderer.invoke("workspace:lspCompletion", cwd, path, text, changes, line, column, trigger),
285
+ lspResolveCompletion: (cwd, path, id, index) => ipcRenderer.invoke("workspace:lspResolveCompletion", cwd, path, id, index),
267
286
  diagnostics: (cwd, paths, opts) => ipcRenderer.invoke("workspace:diagnostics", cwd, paths, opts),
268
287
  gitStatus: (cwd) => ipcRenderer.invoke("workspace:gitStatus", cwd),
269
288
  // Infinity does not survive structured clone; null stands for it.
@@ -364,6 +383,7 @@ const api = {
364
383
  },
365
384
  skills: {
366
385
  list: (cwd) => ipcRenderer.invoke("skills:list", cwd),
386
+ browse: (input) => ipcRenderer.invoke("skills:browse", input),
367
387
  install: (cwd, req) => ipcRenderer.invoke("skills:install", cwd, req),
368
388
  remove: (cwd, skill) => ipcRenderer.invoke("skills:remove", cwd, skill),
369
389
  read: (cwd, name) => ipcRenderer.invoke("skills:read", cwd, name),
@@ -394,7 +414,7 @@ const api = {
394
414
  },
395
415
  auth: {
396
416
  detect: (cwd) => ipcRenderer.invoke("auth:detect", cwd),
397
- hasAny: () => ipcRenderer.invoke("auth:hasAny"),
417
+ hasAny: (cwd) => ipcRenderer.invoke("auth:hasAny", cwd),
398
418
  setApiKey: (provider, key, cwd) => ipcRenderer.invoke("auth:setApiKey", provider, key, cwd),
399
419
  configureProvider: (provider, input, cwd) => ipcRenderer.invoke("auth:configureProvider", provider, input, cwd),
400
420
  clear: (provider, cwd) => ipcRenderer.invoke("auth:clear", provider, cwd),
@@ -403,8 +423,17 @@ const api = {
403
423
  renameCredential: (provider, key, label, cwd) => ipcRenderer.invoke("auth:renameCredential", provider, key, label, cwd),
404
424
  startOAuth: (provider, options) => ipcRenderer.invoke("auth:startOAuth", provider, options),
405
425
  cancelOAuth: (requestId) => ipcRenderer.invoke("auth:cancelOAuth", requestId),
426
+ oauthRespond: (requestId, text) => ipcRenderer.invoke("auth:oauthRespond", requestId, text),
406
427
  onOAuthProgress: (cb) => subscribe("auth:oauth", cb)
407
428
  },
429
+ onboarding: {
430
+ status: (surfaceFirstRun) => ipcRenderer.invoke("onboarding:status", surfaceFirstRun),
431
+ detect: (surfaceFirstRun, cwd) => ipcRenderer.invoke("onboarding:detect", surfaceFirstRun, cwd),
432
+ providers: (cwd) => ipcRenderer.invoke("onboarding:providers", cwd),
433
+ setup: () => ipcRenderer.invoke("onboarding:setup"),
434
+ complete: (input) => ipcRenderer.invoke("onboarding:complete", input),
435
+ githubToken: () => ipcRenderer.invoke("onboarding:githubToken")
436
+ },
408
437
  keybindings: {
409
438
  load: () => ipcRenderer.invoke("keybindings:load"),
410
439
  save: (map) => ipcRenderer.invoke("keybindings:save", map),
@@ -434,6 +463,7 @@ const api = {
434
463
  },
435
464
  claudeImport: {
436
465
  detect: (cwd) => ipcRenderer.invoke("claudeImport:detect", cwd),
466
+ preview: (cwd) => ipcRenderer.invoke("claudeImport:preview", cwd),
437
467
  run: (cwd, opts) => ipcRenderer.invoke("claudeImport:run", cwd, opts)
438
468
  },
439
469
  hosts: {
@@ -1,4 +1,4 @@
1
- import { _ as __vitePreload } from "./index-DlEFfgBI.js";
1
+ import { _ as __vitePreload } from "./index-CPTV1As9.js";
2
2
  var p = /* @__PURE__ */ ((B) => (B[B.CURSOR_KEY_APPLICATION = 0] = "CURSOR_KEY_APPLICATION", B[B.KEYPAD_KEY_APPLICATION = 1] = "KEYPAD_KEY_APPLICATION", B[B.IGNORE_KEYPAD_WITH_NUMLOCK = 2] = "IGNORE_KEYPAD_WITH_NUMLOCK", B[B.ALT_ESC_PREFIX = 3] = "ALT_ESC_PREFIX", B[B.MODIFY_OTHER_KEYS_STATE_2 = 4] = "MODIFY_OTHER_KEYS_STATE_2", B[B.KITTY_KEYBOARD_FLAGS = 5] = "KITTY_KEYBOARD_FLAGS", B))(p || {}), u = /* @__PURE__ */ ((B) => (B[B.RELEASE = 0] = "RELEASE", B[B.PRESS = 1] = "PRESS", B[B.REPEAT = 2] = "REPEAT", B))(u || {}), i = /* @__PURE__ */ ((B) => (B[B.UNIDENTIFIED = 0] = "UNIDENTIFIED", B[B.GRAVE = 1] = "GRAVE", B[B.BACKSLASH = 2] = "BACKSLASH", B[B.BRACKET_LEFT = 3] = "BRACKET_LEFT", B[B.BRACKET_RIGHT = 4] = "BRACKET_RIGHT", B[B.COMMA = 5] = "COMMA", B[B.ZERO = 6] = "ZERO", B[B.ONE = 7] = "ONE", B[B.TWO = 8] = "TWO", B[B.THREE = 9] = "THREE", B[B.FOUR = 10] = "FOUR", B[B.FIVE = 11] = "FIVE", B[B.SIX = 12] = "SIX", B[B.SEVEN = 13] = "SEVEN", B[B.EIGHT = 14] = "EIGHT", B[B.NINE = 15] = "NINE", B[B.EQUAL = 16] = "EQUAL", B[B.INTL_BACKSLASH = 17] = "INTL_BACKSLASH", B[B.INTL_RO = 18] = "INTL_RO", B[B.INTL_YEN = 19] = "INTL_YEN", B[B.A = 20] = "A", B[B.B = 21] = "B", B[B.C = 22] = "C", B[B.D = 23] = "D", B[B.E = 24] = "E", B[B.F = 25] = "F", B[B.G = 26] = "G", B[B.H = 27] = "H", B[B.I = 28] = "I", B[B.J = 29] = "J", B[B.K = 30] = "K", B[B.L = 31] = "L", B[B.M = 32] = "M", B[B.N = 33] = "N", B[B.O = 34] = "O", B[B.P = 35] = "P", B[B.Q = 36] = "Q", B[B.R = 37] = "R", B[B.S = 38] = "S", B[B.T = 39] = "T", B[B.U = 40] = "U", B[B.V = 41] = "V", B[B.W = 42] = "W", B[B.X = 43] = "X", B[B.Y = 44] = "Y", B[B.Z = 45] = "Z", B[B.MINUS = 46] = "MINUS", B[B.PERIOD = 47] = "PERIOD", B[B.QUOTE = 48] = "QUOTE", B[B.SEMICOLON = 49] = "SEMICOLON", B[B.SLASH = 50] = "SLASH", B[B.ALT_LEFT = 51] = "ALT_LEFT", B[B.ALT_RIGHT = 52] = "ALT_RIGHT", B[B.BACKSPACE = 53] = "BACKSPACE", B[B.CAPS_LOCK = 54] = "CAPS_LOCK", B[B.CONTEXT_MENU = 55] = "CONTEXT_MENU", B[B.CONTROL_LEFT = 56] = "CONTROL_LEFT", B[B.CONTROL_RIGHT = 57] = "CONTROL_RIGHT", B[B.ENTER = 58] = "ENTER", B[B.META_LEFT = 59] = "META_LEFT", B[B.META_RIGHT = 60] = "META_RIGHT", B[B.SHIFT_LEFT = 61] = "SHIFT_LEFT", B[B.SHIFT_RIGHT = 62] = "SHIFT_RIGHT", B[B.SPACE = 63] = "SPACE", B[B.TAB = 64] = "TAB", B[B.CONVERT = 65] = "CONVERT", B[B.KANA_MODE = 66] = "KANA_MODE", B[B.NON_CONVERT = 67] = "NON_CONVERT", B[B.DELETE = 68] = "DELETE", B[B.END = 69] = "END", B[B.HELP = 70] = "HELP", B[B.HOME = 71] = "HOME", B[B.INSERT = 72] = "INSERT", B[B.PAGE_DOWN = 73] = "PAGE_DOWN", B[B.PAGE_UP = 74] = "PAGE_UP", B[B.DOWN = 75] = "DOWN", B[B.LEFT = 76] = "LEFT", B[B.RIGHT = 77] = "RIGHT", B[B.UP = 78] = "UP", B[B.NUM_LOCK = 79] = "NUM_LOCK", B[B.KP_0 = 80] = "KP_0", B[B.KP_1 = 81] = "KP_1", B[B.KP_2 = 82] = "KP_2", B[B.KP_3 = 83] = "KP_3", B[B.KP_4 = 84] = "KP_4", B[B.KP_5 = 85] = "KP_5", B[B.KP_6 = 86] = "KP_6", B[B.KP_7 = 87] = "KP_7", B[B.KP_8 = 88] = "KP_8", B[B.KP_9 = 89] = "KP_9", B[B.KP_PLUS = 90] = "KP_PLUS", B[B.KP_BACKSPACE = 91] = "KP_BACKSPACE", B[B.KP_CLEAR = 92] = "KP_CLEAR", B[B.KP_CLEAR_ENTRY = 93] = "KP_CLEAR_ENTRY", B[B.KP_COMMA = 94] = "KP_COMMA", B[B.KP_PERIOD = 95] = "KP_PERIOD", B[B.KP_DIVIDE = 96] = "KP_DIVIDE", B[B.KP_ENTER = 97] = "KP_ENTER", B[B.KP_EQUAL = 98] = "KP_EQUAL", B[B.KP_MEMORY_ADD = 99] = "KP_MEMORY_ADD", B[B.KP_MEMORY_CLEAR = 100] = "KP_MEMORY_CLEAR", B[B.KP_MEMORY_RECALL = 101] = "KP_MEMORY_RECALL", B[B.KP_MEMORY_STORE = 102] = "KP_MEMORY_STORE", B[B.KP_MEMORY_SUBTRACT = 103] = "KP_MEMORY_SUBTRACT", B[B.KP_MULTIPLY = 104] = "KP_MULTIPLY", B[B.KP_PAREN_LEFT = 105] = "KP_PAREN_LEFT", B[B.KP_PAREN_RIGHT = 106] = "KP_PAREN_RIGHT", B[B.KP_MINUS = 107] = "KP_MINUS", B[B.KP_SEPARATOR = 108] = "KP_SEPARATOR", B[B.NUMPAD_UP = 109] = "NUMPAD_UP", B[B.NUMPAD_DOWN = 110] = "NUMPAD_DOWN", B[B.NUMPAD_RIGHT = 111] = "NUMPAD_RIGHT", B[B.NUMPAD_LEFT = 112] = "NUMPAD_LEFT", B[B.NUMPAD_BEGIN = 113] = "NUMPAD_BEGIN", B[B.NUMPAD_HOME = 114] = "NUMPAD_HOME", B[B.NUMPAD_END = 115] = "NUMPAD_END", B[B.NUMPAD_INSERT = 116] = "NUMPAD_INSERT", B[B.NUMPAD_DELETE = 117] = "NUMPAD_DELETE", B[B.NUMPAD_PAGE_UP = 118] = "NUMPAD_PAGE_UP", B[B.NUMPAD_PAGE_DOWN = 119] = "NUMPAD_PAGE_DOWN", B[B.ESCAPE = 120] = "ESCAPE", B[B.F1 = 121] = "F1", B[B.F2 = 122] = "F2", B[B.F3 = 123] = "F3", B[B.F4 = 124] = "F4", B[B.F5 = 125] = "F5", B[B.F6 = 126] = "F6", B[B.F7 = 127] = "F7", B[B.F8 = 128] = "F8", B[B.F9 = 129] = "F9", B[B.F10 = 130] = "F10", B[B.F11 = 131] = "F11", B[B.F12 = 132] = "F12", B[B.F13 = 133] = "F13", B[B.F14 = 134] = "F14", B[B.F15 = 135] = "F15", B[B.F16 = 136] = "F16", B[B.F17 = 137] = "F17", B[B.F18 = 138] = "F18", B[B.F19 = 139] = "F19", B[B.F20 = 140] = "F20", B[B.F21 = 141] = "F21", B[B.F22 = 142] = "F22", B[B.F23 = 143] = "F23", B[B.F24 = 144] = "F24", B[B.F25 = 145] = "F25", B[B.FN_LOCK = 146] = "FN_LOCK", B[B.PRINT_SCREEN = 147] = "PRINT_SCREEN", B[B.SCROLL_LOCK = 148] = "SCROLL_LOCK", B[B.PAUSE = 149] = "PAUSE", B[B.BROWSER_BACK = 150] = "BROWSER_BACK", B[B.BROWSER_FAVORITES = 151] = "BROWSER_FAVORITES", B[B.BROWSER_FORWARD = 152] = "BROWSER_FORWARD", B[B.BROWSER_HOME = 153] = "BROWSER_HOME", B[B.BROWSER_REFRESH = 154] = "BROWSER_REFRESH", B[B.BROWSER_SEARCH = 155] = "BROWSER_SEARCH", B[B.BROWSER_STOP = 156] = "BROWSER_STOP", B[B.EJECT = 157] = "EJECT", B[B.LAUNCH_APP_1 = 158] = "LAUNCH_APP_1", B[B.LAUNCH_APP_2 = 159] = "LAUNCH_APP_2", B[B.LAUNCH_MAIL = 160] = "LAUNCH_MAIL", B[B.MEDIA_PLAY_PAUSE = 161] = "MEDIA_PLAY_PAUSE", B[B.MEDIA_SELECT = 162] = "MEDIA_SELECT", B[B.MEDIA_STOP = 163] = "MEDIA_STOP", B[B.MEDIA_TRACK_NEXT = 164] = "MEDIA_TRACK_NEXT", B[B.MEDIA_TRACK_PREVIOUS = 165] = "MEDIA_TRACK_PREVIOUS", B[B.POWER = 166] = "POWER", B[B.SLEEP = 167] = "SLEEP", B[B.AUDIO_VOLUME_DOWN = 168] = "AUDIO_VOLUME_DOWN", B[B.AUDIO_VOLUME_MUTE = 169] = "AUDIO_VOLUME_MUTE", B[B.AUDIO_VOLUME_UP = 170] = "AUDIO_VOLUME_UP", B[B.WAKE_UP = 171] = "WAKE_UP", B[B.COPY = 172] = "COPY", B[B.CUT = 173] = "CUT", B[B.PASTE = 174] = "PASTE", B))(i || {}), r = /* @__PURE__ */ ((B) => (B[B.NONE = 0] = "NONE", B[B.SHIFT = 1] = "SHIFT", B[B.CTRL = 2] = "CTRL", B[B.ALT = 4] = "ALT", B[B.SUPER = 8] = "SUPER", B[B.CAPSLOCK = 16] = "CAPSLOCK", B[B.NUMLOCK = 32] = "NUMLOCK", B))(r || {}), S = /* @__PURE__ */ ((B) => (B[B.NONE = 0] = "NONE", B[B.PARTIAL = 1] = "PARTIAL", B[B.FULL = 2] = "FULL", B))(S || {});
3
3
  const f = 80;
4
4
  var G = /* @__PURE__ */ ((B) => (B[B.BOLD = 1] = "BOLD", B[B.ITALIC = 2] = "ITALIC", B[B.UNDERLINE = 4] = "UNDERLINE", B[B.STRIKETHROUGH = 8] = "STRIKETHROUGH", B[B.INVERSE = 16] = "INVERSE", B[B.INVISIBLE = 32] = "INVISIBLE", B[B.BLINK = 64] = "BLINK", B[B.FAINT = 128] = "FAINT", B))(G || {});