@quanta-intellect/vessel-browser 0.1.19 → 0.1.21
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/README.md +53 -10
- package/out/main/index.js +1064 -172
- package/out/preload/index.js +63 -1
- package/out/renderer/assets/{index-CKOT_IZt.js → index-32axMD1q.js} +2444 -397
- package/out/renderer/assets/{index-DwRZftNk.css → index-BynCvURs.css} +831 -0
- package/out/renderer/index.html +2 -2
- package/package.json +5 -4
package/out/preload/index.js
CHANGED
|
@@ -15,6 +15,10 @@ const Channels = {
|
|
|
15
15
|
AI_STREAM_START: "ai:stream-start",
|
|
16
16
|
AI_STREAM_CHUNK: "ai:stream-chunk",
|
|
17
17
|
AI_STREAM_END: "ai:stream-end",
|
|
18
|
+
AI_STREAM_IDLE: "ai:stream-idle",
|
|
19
|
+
AUTOMATION_ACTIVITY_START: "automation:activity-start",
|
|
20
|
+
AUTOMATION_ACTIVITY_CHUNK: "automation:activity-chunk",
|
|
21
|
+
AUTOMATION_ACTIVITY_END: "automation:activity-end",
|
|
18
22
|
AI_CANCEL: "ai:cancel",
|
|
19
23
|
AI_FETCH_MODELS: "ai:fetch-models",
|
|
20
24
|
AGENT_RUNTIME_GET: "agent-runtime:get",
|
|
@@ -43,6 +47,7 @@ const Channels = {
|
|
|
43
47
|
SETTINGS_SET: "settings:set",
|
|
44
48
|
SETTINGS_UPDATE: "settings:update",
|
|
45
49
|
SETTINGS_HEALTH_GET: "settings:health:get",
|
|
50
|
+
SETTINGS_HEALTH_UPDATE: "settings:health:update",
|
|
46
51
|
// Bookmarks
|
|
47
52
|
BOOKMARKS_GET: "bookmarks:get",
|
|
48
53
|
BOOKMARKS_UPDATE: "bookmarks:update",
|
|
@@ -56,6 +61,7 @@ const Channels = {
|
|
|
56
61
|
HIGHLIGHT_CAPTURE: "highlights:capture",
|
|
57
62
|
HIGHLIGHT_CAPTURE_RESULT: "highlights:capture-result",
|
|
58
63
|
HIGHLIGHT_NAV_COUNT: "highlights:nav-count",
|
|
64
|
+
HIGHLIGHT_COUNT_UPDATE: "highlights:count-update",
|
|
59
65
|
HIGHLIGHT_NAV_SCROLL: "highlights:nav-scroll",
|
|
60
66
|
HIGHLIGHT_NAV_REMOVE: "highlights:nav-remove",
|
|
61
67
|
HIGHLIGHT_NAV_CLEAR: "highlights:nav-clear",
|
|
@@ -87,6 +93,16 @@ const Channels = {
|
|
|
87
93
|
VAULT_UPDATE: "vault:update",
|
|
88
94
|
VAULT_REMOVE: "vault:remove",
|
|
89
95
|
VAULT_AUDIT_LOG: "vault:audit-log",
|
|
96
|
+
// Automation kits
|
|
97
|
+
AUTOMATION_GET_INSTALLED: "automation:get-installed",
|
|
98
|
+
AUTOMATION_INSTALL_FROM_FILE: "automation:install-from-file",
|
|
99
|
+
AUTOMATION_UNINSTALL: "automation:uninstall",
|
|
100
|
+
// Scheduled jobs
|
|
101
|
+
SCHEDULE_GET_ALL: "schedule:get-all",
|
|
102
|
+
SCHEDULE_CREATE: "schedule:create",
|
|
103
|
+
SCHEDULE_UPDATE: "schedule:update",
|
|
104
|
+
SCHEDULE_DELETE: "schedule:delete",
|
|
105
|
+
SCHEDULE_JOBS_UPDATE: "schedule:jobs-update",
|
|
90
106
|
// Window controls
|
|
91
107
|
WINDOW_MINIMIZE: "window:minimize",
|
|
92
108
|
WINDOW_MAXIMIZE: "window:maximize",
|
|
@@ -97,7 +113,7 @@ const api = {
|
|
|
97
113
|
create: (url) => electron.ipcRenderer.invoke(Channels.TAB_CREATE, url),
|
|
98
114
|
close: (id) => electron.ipcRenderer.invoke(Channels.TAB_CLOSE, id),
|
|
99
115
|
switch: (id) => electron.ipcRenderer.invoke(Channels.TAB_SWITCH, id),
|
|
100
|
-
navigate: (id, url) => electron.ipcRenderer.invoke(Channels.TAB_NAVIGATE, id, url),
|
|
116
|
+
navigate: (id, url, postBody) => electron.ipcRenderer.invoke(Channels.TAB_NAVIGATE, id, url, postBody),
|
|
101
117
|
back: (id) => electron.ipcRenderer.invoke(Channels.TAB_BACK, id),
|
|
102
118
|
forward: (id) => electron.ipcRenderer.invoke(Channels.TAB_FORWARD, id),
|
|
103
119
|
reload: (id) => electron.ipcRenderer.invoke(Channels.TAB_RELOAD, id),
|
|
@@ -124,6 +140,26 @@ const api = {
|
|
|
124
140
|
electron.ipcRenderer.on(Channels.AI_STREAM_END, handler);
|
|
125
141
|
return () => electron.ipcRenderer.removeListener(Channels.AI_STREAM_END, handler);
|
|
126
142
|
},
|
|
143
|
+
onStreamIdle: (cb) => {
|
|
144
|
+
const handler = () => cb();
|
|
145
|
+
electron.ipcRenderer.on(Channels.AI_STREAM_IDLE, handler);
|
|
146
|
+
return () => electron.ipcRenderer.removeListener(Channels.AI_STREAM_IDLE, handler);
|
|
147
|
+
},
|
|
148
|
+
onAutomationActivityStart: (cb) => {
|
|
149
|
+
const handler = (_, entry) => cb(entry);
|
|
150
|
+
electron.ipcRenderer.on(Channels.AUTOMATION_ACTIVITY_START, handler);
|
|
151
|
+
return () => electron.ipcRenderer.removeListener(Channels.AUTOMATION_ACTIVITY_START, handler);
|
|
152
|
+
},
|
|
153
|
+
onAutomationActivityChunk: (cb) => {
|
|
154
|
+
const handler = (_, payload) => cb(payload);
|
|
155
|
+
electron.ipcRenderer.on(Channels.AUTOMATION_ACTIVITY_CHUNK, handler);
|
|
156
|
+
return () => electron.ipcRenderer.removeListener(Channels.AUTOMATION_ACTIVITY_CHUNK, handler);
|
|
157
|
+
},
|
|
158
|
+
onAutomationActivityEnd: (cb) => {
|
|
159
|
+
const handler = (_, payload) => cb(payload);
|
|
160
|
+
electron.ipcRenderer.on(Channels.AUTOMATION_ACTIVITY_END, handler);
|
|
161
|
+
return () => electron.ipcRenderer.removeListener(Channels.AUTOMATION_ACTIVITY_END, handler);
|
|
162
|
+
},
|
|
127
163
|
cancel: () => electron.ipcRenderer.invoke(Channels.AI_CANCEL),
|
|
128
164
|
fetchModels: (config) => electron.ipcRenderer.invoke(Channels.AI_FETCH_MODELS, config),
|
|
129
165
|
getRuntime: () => electron.ipcRenderer.invoke(Channels.AGENT_RUNTIME_GET),
|
|
@@ -153,6 +189,11 @@ const api = {
|
|
|
153
189
|
return () => electron.ipcRenderer.removeListener(Channels.HIGHLIGHT_CAPTURE_RESULT, handler);
|
|
154
190
|
},
|
|
155
191
|
getCount: () => electron.ipcRenderer.invoke(Channels.HIGHLIGHT_NAV_COUNT),
|
|
192
|
+
onCountUpdate: (cb) => {
|
|
193
|
+
const handler = (_, count) => cb(count);
|
|
194
|
+
electron.ipcRenderer.on(Channels.HIGHLIGHT_COUNT_UPDATE, handler);
|
|
195
|
+
return () => electron.ipcRenderer.removeListener(Channels.HIGHLIGHT_COUNT_UPDATE, handler);
|
|
196
|
+
},
|
|
156
197
|
scrollTo: (index) => electron.ipcRenderer.invoke(Channels.HIGHLIGHT_NAV_SCROLL, index),
|
|
157
198
|
remove: (index) => electron.ipcRenderer.invoke(Channels.HIGHLIGHT_NAV_REMOVE, index),
|
|
158
199
|
clearAll: () => electron.ipcRenderer.invoke(Channels.HIGHLIGHT_NAV_CLEAR),
|
|
@@ -178,6 +219,11 @@ const api = {
|
|
|
178
219
|
settings: {
|
|
179
220
|
get: () => electron.ipcRenderer.invoke(Channels.SETTINGS_GET),
|
|
180
221
|
getHealth: () => electron.ipcRenderer.invoke(Channels.SETTINGS_HEALTH_GET),
|
|
222
|
+
onHealthUpdate: (cb) => {
|
|
223
|
+
const handler = (_, health) => cb(health);
|
|
224
|
+
electron.ipcRenderer.on(Channels.SETTINGS_HEALTH_UPDATE, handler);
|
|
225
|
+
return () => electron.ipcRenderer.removeListener(Channels.SETTINGS_HEALTH_UPDATE, handler);
|
|
226
|
+
},
|
|
181
227
|
set: (key, value) => electron.ipcRenderer.invoke(Channels.SETTINGS_SET, key, value),
|
|
182
228
|
onUpdate: (cb) => {
|
|
183
229
|
const handler = (_, settings) => cb(settings);
|
|
@@ -255,6 +301,22 @@ const api = {
|
|
|
255
301
|
remove: (id) => electron.ipcRenderer.invoke(Channels.VAULT_REMOVE, id),
|
|
256
302
|
auditLog: (limit) => electron.ipcRenderer.invoke(Channels.VAULT_AUDIT_LOG, limit)
|
|
257
303
|
},
|
|
304
|
+
automation: {
|
|
305
|
+
getInstalled: () => electron.ipcRenderer.invoke(Channels.AUTOMATION_GET_INSTALLED),
|
|
306
|
+
installFromFile: () => electron.ipcRenderer.invoke(Channels.AUTOMATION_INSTALL_FROM_FILE),
|
|
307
|
+
uninstall: (id) => electron.ipcRenderer.invoke(Channels.AUTOMATION_UNINSTALL, id)
|
|
308
|
+
},
|
|
309
|
+
schedule: {
|
|
310
|
+
getAll: () => electron.ipcRenderer.invoke(Channels.SCHEDULE_GET_ALL),
|
|
311
|
+
create: (job) => electron.ipcRenderer.invoke(Channels.SCHEDULE_CREATE, job),
|
|
312
|
+
update: (id, updates) => electron.ipcRenderer.invoke(Channels.SCHEDULE_UPDATE, id, updates),
|
|
313
|
+
delete: (id) => electron.ipcRenderer.invoke(Channels.SCHEDULE_DELETE, id),
|
|
314
|
+
onJobsUpdate: (cb) => {
|
|
315
|
+
const handler = (_, updatedJobs) => cb(updatedJobs);
|
|
316
|
+
electron.ipcRenderer.on(Channels.SCHEDULE_JOBS_UPDATE, handler);
|
|
317
|
+
return () => electron.ipcRenderer.removeListener(Channels.SCHEDULE_JOBS_UPDATE, handler);
|
|
318
|
+
}
|
|
319
|
+
},
|
|
258
320
|
window: {
|
|
259
321
|
minimize: () => electron.ipcRenderer.invoke(Channels.WINDOW_MINIMIZE),
|
|
260
322
|
maximize: () => electron.ipcRenderer.invoke(Channels.WINDOW_MAXIMIZE),
|