zidane-gui 8.0.4 → 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.
Files changed (30) hide show
  1. package/README.md +43 -37
  2. package/out/main/chunks/history-pager-Bd5PUapJ.js +191 -0
  3. package/out/main/chunks/{remote-hosts-CdVisI0d.js → remote-hosts-DlvE2ELX.js} +2 -1
  4. package/out/main/chunks/usage-sql-C2Tg1u44.js +81 -0
  5. package/out/main/history-worker.js +20 -0
  6. package/out/main/index.js +5961 -3881
  7. package/out/main/lsp-host.js +671 -104
  8. package/out/main/usage-worker.js +1 -1
  9. package/out/preload/index.mjs +82 -12
  10. package/out/renderer/assets/{ghostty-web-DPKNHpFa.js → ghostty-web-BCAZYtuA.js} +1 -1
  11. package/out/renderer/assets/index-CBxNp5Xb.css +6324 -0
  12. package/out/renderer/assets/{index-rup1hjNH.js → index-CPTV1As9.js} +168933 -143574
  13. package/out/renderer/index.html +6 -3
  14. package/package.json +13 -5
  15. package/resources/app-icons/cobalt-blue.png +0 -0
  16. package/resources/app-icons/holographic-chrome.png +0 -0
  17. package/resources/app-icons/light.png +0 -0
  18. package/resources/app-icons/midnight-blue-grainy.png +0 -0
  19. package/resources/app-icons/modern.png +0 -0
  20. package/resources/app-icons/smooth-chrome-sticker.png +0 -0
  21. package/resources/app-icons/smooth-chrome.png +0 -0
  22. package/resources/app-icons/smooth-holographic-chrome-sticker.png +0 -0
  23. package/resources/app-icons/smooth-holographic-chrome.png +0 -0
  24. package/resources/icon-macos.png +0 -0
  25. package/resources/icon.png +0 -0
  26. package/scripts/app-installer.mjs +8 -12
  27. package/scripts/postinstall.mjs +1 -2
  28. package/out/main/chunks/usage-sql-CqAEudo_.js +0 -58
  29. package/out/renderer/assets/index-miPiOG60.css +0 -4096
  30. /package/out/renderer/assets/{shiki-html.worker-gURcNJD7.js → highlight.worker-gURcNJD7.js} +0 -0
@@ -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
  }
@@ -41,6 +41,7 @@ const subscribe = createChannelFanout({
41
41
  const api = {
42
42
  sessions: {
43
43
  list: (filter, hostId) => ipcRenderer.invoke("sessions:list", filter, hostId),
44
+ ids: () => ipcRenderer.invoke("sessions:ids"),
44
45
  search: (query, filter) => ipcRenderer.invoke("sessions:search", query, filter),
45
46
  create: (input) => ipcRenderer.invoke("sessions:create", input),
46
47
  setTitle: (id, title) => ipcRenderer.invoke("sessions:setTitle", id, title),
@@ -49,28 +50,39 @@ const api = {
49
50
  detachFolder: (id) => ipcRenderer.invoke("sessions:detachFolder", id),
50
51
  setEffort: (id, effort) => ipcRenderer.invoke("sessions:setEffort", id, effort),
51
52
  setModelOptions: (id, options) => ipcRenderer.invoke("sessions:setModelOptions", id, options),
52
- setModel: (id, providerKey, modelId, fallbacks) => ipcRenderer.invoke("sessions:setModel", id, providerKey, modelId, fallbacks),
53
+ setModel: (id, pick, fallbacks) => ipcRenderer.invoke("sessions:setModel", id, pick, fallbacks),
53
54
  listModels: (cwd, hostId) => ipcRenderer.invoke("sessions:listModels", cwd, hostId),
55
+ listDecisionModels: (cwd, hostId) => ipcRenderer.invoke("sessions:listDecisionModels", cwd, hostId),
56
+ testDecisionModel: (cwd, hostId, model) => ipcRenderer.invoke("sessions:testDecisionModel", cwd, hostId, model),
57
+ testModel: (cwd, hostId, model) => ipcRenderer.invoke("sessions:testModel", cwd, hostId, model),
58
+ titleStatus: (id) => ipcRenderer.invoke("sessions:titleStatus", id),
54
59
  fork: (id, turnId, opts) => ipcRenderer.invoke("sessions:fork", id, turnId, opts),
55
60
  deleteTurn: (id, turnId) => ipcRenderer.invoke("sessions:deleteTurn", id, turnId),
56
61
  getTurn: (id, turnId) => ipcRenderer.invoke("sessions:getTurn", id, turnId),
57
62
  editTurnText: (id, turnId, text) => ipcRenderer.invoke("sessions:editTurnText", id, turnId, text),
63
+ rewind: (id, turnId, opts) => ipcRenderer.invoke("sessions:rewind", id, turnId, opts),
58
64
  delete: (id) => ipcRenderer.invoke("sessions:delete", id),
65
+ sideSession: (parent) => ipcRenderer.invoke("sessions:sideSession", parent),
59
66
  retryEnvironment: (id) => ipcRenderer.invoke("sessions:retryEnvironment", id),
60
67
  environmentActions: (id) => ipcRenderer.invoke("sessions:environmentActions", id),
61
68
  runEnvironmentAction: (id, actionId) => ipcRenderer.invoke("sessions:runEnvironmentAction", id, actionId),
62
69
  generateTitle: (id) => ipcRenderer.invoke("sessions:generateTitle", id),
63
70
  compact: (id) => ipcRenderer.invoke("sessions:compact", id),
64
71
  export: (id, format) => ipcRenderer.invoke("sessions:export", id, format),
65
- loadEvents: (id) => ipcRenderer.invoke("sessions:loadEvents", id),
72
+ loadEvents: (id, opts) => ipcRenderer.invoke("sessions:loadEvents", id, opts),
66
73
  loadEventsBefore: (id, beforeSeq) => ipcRenderer.invoke("sessions:loadEventsBefore", id, beforeSeq),
67
- toolResultText: (id, callId) => ipcRenderer.invoke("sessions:toolResultText", id, callId),
74
+ toolResultText: (id, callId, turnId) => ipcRenderer.invoke("sessions:toolResultText", id, callId, turnId),
68
75
  contextStatus: (id) => ipcRenderer.invoke("sessions:contextStatus", id),
69
76
  contextBreakdown: (id) => ipcRenderer.invoke("sessions:contextBreakdown", id),
70
77
  systemMd: (id) => ipcRenderer.invoke("sessions:systemMd", id),
71
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),
72
81
  costStatus: (id) => ipcRenderer.invoke("sessions:costStatus", id),
82
+ runProgress: (id) => ipcRenderer.invoke("sessions:runProgress", id),
73
83
  setArchived: (id, archived) => ipcRenderer.invoke("sessions:setArchived", id, archived),
84
+ setFavorite: (id, favorite) => ipcRenderer.invoke("sessions:setFavorite", id, favorite),
85
+ setSpace: (id, spaceId) => ipcRenderer.invoke("sessions:setSpace", id, spaceId),
74
86
  onChanged: (cb) => subscribe("sessions:changed", cb)
75
87
  },
76
88
  folder: {
@@ -79,6 +91,12 @@ const api = {
79
91
  setLastUsed: (path) => ipcRenderer.invoke("folder:setLastUsed", path),
80
92
  locationOf: (cwd) => ipcRenderer.invoke("folder:locationOf", cwd)
81
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
+ },
82
100
  repo: {
83
101
  defaultParent: () => ipcRenderer.invoke("repo:defaultParent"),
84
102
  clone: (input, parent) => ipcRenderer.invoke("repo:clone", input, parent),
@@ -114,6 +132,7 @@ const api = {
114
132
  panelAction: (sessionKey, action) => ipcRenderer.invoke("windows:panelAction", sessionKey, action),
115
133
  onChanged: (cb) => subscribe("windows:changed", cb),
116
134
  onShow: (cb) => subscribe("windows:show", cb),
135
+ takePendingShow: () => ipcRenderer.invoke("windows:takePendingShow"),
117
136
  onPanelAction: (cb) => subscribe("windows:panelAction", cb)
118
137
  },
119
138
  appearance: {
@@ -128,6 +147,11 @@ const api = {
128
147
  setNativeTheme: (mode) => ipcRenderer.invoke("appearance:nativeTheme", mode),
129
148
  setWindowBackground: (hex) => ipcRenderer.invoke("appearance:background", hex)
130
149
  },
150
+ appIcon: {
151
+ state: () => ipcRenderer.invoke("appIcon:state"),
152
+ set: (id) => ipcRenderer.invoke("appIcon:set", id),
153
+ onChanged: (cb) => subscribe("appIcon:changed", cb)
154
+ },
131
155
  update: {
132
156
  state: () => ipcRenderer.invoke("update:state"),
133
157
  check: () => ipcRenderer.invoke("update:check"),
@@ -144,8 +168,17 @@ const api = {
144
168
  pushQueued: (sessionId, message, activatedSkills) => ipcRenderer.invoke("chat:pushQueued", sessionId, message, activatedSkills),
145
169
  listWork: (sessionId) => ipcRenderer.invoke("chat:listWork", sessionId),
146
170
  cancelWork: (sessionId, id, reason) => ipcRenderer.invoke("chat:cancelWork", sessionId, id, reason),
147
- onStreamSignal: (cb) => subscribe("chat:stream", cb),
148
- onSkillsChanged: (cb) => subscribe("skills:changed", 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
+ },
180
+ onSkillsChanged: (cb) => subscribe("skills:changed", cb),
181
+ onSuggestionReady: (cb) => subscribe("suggestion:ready", cb)
149
182
  },
150
183
  drafts: {
151
184
  get: (sessionId) => ipcRenderer.invoke("drafts:get", sessionId),
@@ -171,6 +204,10 @@ const api = {
171
204
  list: () => ipcRenderer.invoke("presence:list"),
172
205
  onChanged: (cb) => subscribe("presence:changed", cb)
173
206
  },
207
+ hud: {
208
+ get: () => ipcRenderer.invoke("hud:get"),
209
+ onState: (cb) => subscribe("hud:state", cb)
210
+ },
174
211
  daemon: {
175
212
  onState: (cb) => subscribe("daemon:state", cb),
176
213
  health: () => ipcRenderer.invoke("daemon:health"),
@@ -213,7 +250,8 @@ const api = {
213
250
  },
214
251
  providerUsage: {
215
252
  fetchAll: (cwd, opts) => ipcRenderer.invoke("usage:fetchAll", cwd, opts),
216
- fetch: (providerKey, cwd, opts) => ipcRenderer.invoke("usage:fetch", providerKey, cwd, opts)
253
+ fetch: (providerKey, cwd, opts) => ipcRenderer.invoke("usage:fetch", providerKey, cwd, opts),
254
+ fetchGithub: (opts) => ipcRenderer.invoke("usage:github", opts)
217
255
  },
218
256
  usage: {
219
257
  summary: (range) => ipcRenderer.invoke("usage:summary", range)
@@ -231,6 +269,7 @@ const api = {
231
269
  },
232
270
  workspace: {
233
271
  list: (cwd, options) => ipcRenderer.invoke("workspace:list", cwd, options),
272
+ projectRoot: (cwd) => ipcRenderer.invoke("workspace:projectRoot", cwd),
234
273
  read: (cwd, path) => ipcRenderer.invoke("workspace:read", cwd, path),
235
274
  resolvePaths: (cwd, texts) => ipcRenderer.invoke("workspace:resolvePaths", cwd, texts),
236
275
  write: (cwd, path, contents, expectedMtimeMs) => ipcRenderer.invoke("workspace:write", cwd, path, contents, expectedMtimeMs),
@@ -242,19 +281,19 @@ const api = {
242
281
  lspClose: (cwd, path) => ipcRenderer.invoke("workspace:lspClose", cwd, path),
243
282
  lspDefinition: (cwd, path, line, column) => ipcRenderer.invoke("workspace:lspDefinition", cwd, path, line, column),
244
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),
245
286
  diagnostics: (cwd, paths, opts) => ipcRenderer.invoke("workspace:diagnostics", cwd, paths, opts),
246
287
  gitStatus: (cwd) => ipcRenderer.invoke("workspace:gitStatus", cwd),
247
288
  // Infinity does not survive structured clone; null stands for it.
248
289
  gitDiff: (cwd, path, context) => ipcRenderer.invoke("workspace:gitDiff", cwd, path, context === Infinity ? null : context),
249
290
  gitShowHead: (cwd, path) => ipcRenderer.invoke("workspace:gitShowHead", cwd, path),
291
+ gitCommit: (cwd, sha) => ipcRenderer.invoke("workspace:gitCommit", cwd, sha),
250
292
  search: (cwd, query, opts) => ipcRenderer.invoke("workspace:search", cwd, query, opts),
251
293
  gitInfo: (cwd) => ipcRenderer.invoke("workspace:gitInfo", cwd),
252
294
  gitPr: (cwd, branch, fresh) => ipcRenderer.invoke("workspace:gitPr", cwd, branch, fresh),
253
295
  gitBranches: (cwd) => ipcRenderer.invoke("workspace:gitBranches", cwd),
254
296
  gitPrList: (cwd, query, fresh) => ipcRenderer.invoke("workspace:gitPrList", cwd, query, fresh),
255
- gitWatch: (cwd) => ipcRenderer.invoke("workspace:gitWatch", cwd),
256
- gitUnwatch: (cwd) => ipcRenderer.invoke("workspace:gitUnwatch", cwd),
257
- onGitChanged: (cb) => subscribe("git:changed", cb),
258
297
  gitSwitch: (cwd, target, sessionId) => ipcRenderer.invoke("workspace:gitSwitch", cwd, target, sessionId ?? null),
259
298
  gitSync: (cwd, sessionId) => ipcRenderer.invoke("workspace:gitSync", cwd, sessionId ?? null)
260
299
  },
@@ -271,11 +310,19 @@ const api = {
271
310
  onDevTools: (cb) => subscribe("browser:devtools", cb),
272
311
  onOpen: (cb) => subscribe("browser:open", cb),
273
312
  onDriving: (cb) => subscribe("browser:driving", cb),
274
- onPointer: (cb) => subscribe("browser:pointer", cb)
313
+ onPointer: (cb) => subscribe("browser:pointer", cb),
314
+ annotateStart: (sessionId, from) => ipcRenderer.invoke("browser:annotateStart", sessionId, from),
315
+ annotate: (sessionId, op, n) => ipcRenderer.invoke("browser:annotate", sessionId, op, n ?? null),
316
+ captureAnnotated: (sessionId) => ipcRenderer.invoke("browser:captureAnnotated", sessionId),
317
+ onAnnotation: (cb) => subscribe("browser:annotation", cb)
275
318
  },
276
319
  terminal: {
277
320
  state: (sessionId) => ipcRenderer.invoke("terminal:state", sessionId),
278
321
  open: (sessionId, target, cols, rows) => ipcRenderer.invoke("terminal:open", sessionId, target, cols, rows),
322
+ projectState: (cwd, draftId) => ipcRenderer.invoke("terminal:projectState", cwd, draftId),
323
+ openInProject: (cwd, draftId, cols, rows) => ipcRenderer.invoke("terminal:openInProject", cwd, draftId, cols, rows),
324
+ adopt: (draftId, sessionId) => ipcRenderer.invoke("terminal:adopt", draftId, sessionId),
325
+ releaseDraft: (draftId) => ipcRenderer.invoke("terminal:releaseDraft", draftId),
279
326
  attach: (terminalId, clientId) => ipcRenderer.invoke("terminal:attach", terminalId, clientId),
280
327
  detach: (terminalId, clientId) => ipcRenderer.invoke("terminal:detach", terminalId, clientId),
281
328
  write: (terminalId, data, from) => ipcRenderer.invoke("terminal:write", terminalId, data, from),
@@ -285,6 +332,7 @@ const api = {
285
332
  close: (terminalId) => ipcRenderer.invoke("terminal:close", terminalId),
286
333
  setHidden: (terminalId, hidden) => ipcRenderer.invoke("terminal:setHidden", terminalId, hidden),
287
334
  onChanged: (cb) => subscribe("terminal:changed", cb),
335
+ onProjectChanged: (cb) => subscribe("terminal:project-changed", cb),
288
336
  onOutput: (cb) => subscribe("terminal:output", cb),
289
337
  onReset: (cb) => subscribe("terminal:reset", cb)
290
338
  },
@@ -335,8 +383,11 @@ const api = {
335
383
  },
336
384
  skills: {
337
385
  list: (cwd) => ipcRenderer.invoke("skills:list", cwd),
386
+ browse: (input) => ipcRenderer.invoke("skills:browse", input),
338
387
  install: (cwd, req) => ipcRenderer.invoke("skills:install", cwd, req),
339
- remove: (cwd, skill) => ipcRenderer.invoke("skills:remove", cwd, skill)
388
+ remove: (cwd, skill) => ipcRenderer.invoke("skills:remove", cwd, skill),
389
+ read: (cwd, name) => ipcRenderer.invoke("skills:read", cwd, name),
390
+ write: (cwd, name, contents, expectedMtimeMs) => ipcRenderer.invoke("skills:write", cwd, name, contents, expectedMtimeMs)
340
391
  },
341
392
  commands: {
342
393
  list: (cwd, hostId) => ipcRenderer.invoke("commands:list", cwd, hostId),
@@ -363,7 +414,7 @@ const api = {
363
414
  },
364
415
  auth: {
365
416
  detect: (cwd) => ipcRenderer.invoke("auth:detect", cwd),
366
- hasAny: () => ipcRenderer.invoke("auth:hasAny"),
417
+ hasAny: (cwd) => ipcRenderer.invoke("auth:hasAny", cwd),
367
418
  setApiKey: (provider, key, cwd) => ipcRenderer.invoke("auth:setApiKey", provider, key, cwd),
368
419
  configureProvider: (provider, input, cwd) => ipcRenderer.invoke("auth:configureProvider", provider, input, cwd),
369
420
  clear: (provider, cwd) => ipcRenderer.invoke("auth:clear", provider, cwd),
@@ -372,8 +423,17 @@ const api = {
372
423
  renameCredential: (provider, key, label, cwd) => ipcRenderer.invoke("auth:renameCredential", provider, key, label, cwd),
373
424
  startOAuth: (provider, options) => ipcRenderer.invoke("auth:startOAuth", provider, options),
374
425
  cancelOAuth: (requestId) => ipcRenderer.invoke("auth:cancelOAuth", requestId),
426
+ oauthRespond: (requestId, text) => ipcRenderer.invoke("auth:oauthRespond", requestId, text),
375
427
  onOAuthProgress: (cb) => subscribe("auth:oauth", cb)
376
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
+ },
377
437
  keybindings: {
378
438
  load: () => ipcRenderer.invoke("keybindings:load"),
379
439
  save: (map) => ipcRenderer.invoke("keybindings:save", map),
@@ -382,6 +442,7 @@ const api = {
382
442
  },
383
443
  logs: {
384
444
  list: () => ipcRenderer.invoke("logs:list"),
445
+ report: (report) => ipcRenderer.send("logs:report", report),
385
446
  onRecord: (cb) => {
386
447
  const listener = (_e, record) => cb(record);
387
448
  ipcRenderer.on("logs:record", listener);
@@ -402,6 +463,7 @@ const api = {
402
463
  },
403
464
  claudeImport: {
404
465
  detect: (cwd) => ipcRenderer.invoke("claudeImport:detect", cwd),
466
+ preview: (cwd) => ipcRenderer.invoke("claudeImport:preview", cwd),
405
467
  run: (cwd, opts) => ipcRenderer.invoke("claudeImport:run", cwd, opts)
406
468
  },
407
469
  hosts: {
@@ -450,6 +512,14 @@ const api = {
450
512
  listDirs: (hostId, machineId, path) => ipcRenderer.invoke("machines:listDirs", hostId, machineId, path),
451
513
  onLinks: (cb) => subscribe("machines:links", cb),
452
514
  onStatus: (cb) => subscribe("machines:status", cb)
515
+ },
516
+ // Main sends one batch per tick (`main/invalidation.ts`); callers get one call per event.
517
+ invalidation: {
518
+ onInvalidate: (cb) => subscribe("invalidate", (events) => {
519
+ for (const event of events) cb(event);
520
+ }),
521
+ watch: (topic, cwd) => ipcRenderer.invoke("invalidate:watch", topic, cwd),
522
+ unwatch: (topic, cwd) => ipcRenderer.invoke("invalidate:unwatch", topic, cwd)
453
523
  }
454
524
  };
455
525
  contextBridge.exposeInMainWorld("api", api);
@@ -1,4 +1,4 @@
1
- import { _ as __vitePreload } from "./index-rup1hjNH.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 || {});