@quanta-intellect/vessel-browser 0.1.114 → 0.1.116
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/preload/index.js
CHANGED
|
@@ -214,6 +214,10 @@ const Channels = {
|
|
|
214
214
|
CODEX_CANCEL_AUTH: "codex:cancel-auth",
|
|
215
215
|
CODEX_AUTH_STATUS: "codex:auth-status",
|
|
216
216
|
CODEX_DISCONNECT: "codex:disconnect",
|
|
217
|
+
// OpenRouter OAuth
|
|
218
|
+
OPENROUTER_START_AUTH: "openrouter:start-auth",
|
|
219
|
+
OPENROUTER_CANCEL_AUTH: "openrouter:cancel-auth",
|
|
220
|
+
OPENROUTER_AUTH_STATUS: "openrouter:auth-status",
|
|
217
221
|
// Updates
|
|
218
222
|
UPDATES_CHECK: "updates:check",
|
|
219
223
|
UPDATES_OPEN_DOWNLOAD: "updates:open-download",
|
|
@@ -617,6 +621,15 @@ const api = {
|
|
|
617
621
|
electron.ipcRenderer.on(Channels.CODEX_AUTH_STATUS, handler);
|
|
618
622
|
return () => electron.ipcRenderer.removeListener(Channels.CODEX_AUTH_STATUS, handler);
|
|
619
623
|
}
|
|
624
|
+
},
|
|
625
|
+
openrouter: {
|
|
626
|
+
startAuth: () => electron.ipcRenderer.invoke(Channels.OPENROUTER_START_AUTH),
|
|
627
|
+
cancelAuth: () => electron.ipcRenderer.invoke(Channels.OPENROUTER_CANCEL_AUTH),
|
|
628
|
+
onAuthStatus: (cb) => {
|
|
629
|
+
const handler = (_, payload) => cb(payload);
|
|
630
|
+
electron.ipcRenderer.on(Channels.OPENROUTER_AUTH_STATUS, handler);
|
|
631
|
+
return () => electron.ipcRenderer.removeListener(Channels.OPENROUTER_AUTH_STATUS, handler);
|
|
632
|
+
}
|
|
620
633
|
}
|
|
621
634
|
};
|
|
622
635
|
electron.contextBridge.exposeInMainWorld("vessel", api);
|
|
@@ -2282,14 +2282,41 @@
|
|
|
2282
2282
|
transform var(--duration-fast) var(--ease-out-expo);
|
|
2283
2283
|
}
|
|
2284
2284
|
|
|
2285
|
-
.command-bar-no-provider-btn:hover {
|
|
2285
|
+
.command-bar-no-provider-btn:hover:not(:disabled) {
|
|
2286
2286
|
background: var(--button-primary-hover-bg);
|
|
2287
2287
|
}
|
|
2288
2288
|
|
|
2289
|
-
.command-bar-no-provider-btn:active {
|
|
2289
|
+
.command-bar-no-provider-btn:active:not(:disabled) {
|
|
2290
2290
|
transform: scale(0.97);
|
|
2291
2291
|
}
|
|
2292
2292
|
|
|
2293
|
+
.command-bar-no-provider-btn:disabled {
|
|
2294
|
+
opacity: 0.65;
|
|
2295
|
+
cursor: wait;
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
.command-bar-no-provider-link {
|
|
2299
|
+
height: 32px;
|
|
2300
|
+
margin-left: 8px;
|
|
2301
|
+
padding: 0 10px;
|
|
2302
|
+
border: 1px solid var(--border-subtle);
|
|
2303
|
+
border-radius: var(--radius-md);
|
|
2304
|
+
background: transparent;
|
|
2305
|
+
color: var(--text-secondary);
|
|
2306
|
+
font-size: 12px;
|
|
2307
|
+
cursor: pointer;
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
.command-bar-no-provider-link:hover {
|
|
2311
|
+
color: var(--text-primary);
|
|
2312
|
+
border-color: var(--border-visible);
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
.command-bar-no-provider-error {
|
|
2316
|
+
color: var(--status-error) !important;
|
|
2317
|
+
margin-top: 10px !important;
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2293
2320
|
.command-bar-no-provider-btn kbd {
|
|
2294
2321
|
margin-left: 6px;
|
|
2295
2322
|
background: color-mix(in srgb, var(--bg-primary) 15%, transparent);
|