@quanta-intellect/vessel-browser 0.1.155 → 0.1.159
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 +35 -10
- package/package.json +1 -1
package/out/main/index.js
CHANGED
|
@@ -227,7 +227,14 @@ const SAVE_DEBOUNCE_MS$4 = 150;
|
|
|
227
227
|
const CHAT_PROVIDER_SECRET_FILENAME = "vessel-chat-provider-secret";
|
|
228
228
|
const CODEX_TOKENS_FILENAME = "vessel-codex-tokens";
|
|
229
229
|
const logger$C = createLogger("Settings");
|
|
230
|
-
const
|
|
230
|
+
const INTERNAL_SETTING_KEYS = /* @__PURE__ */ new Set([
|
|
231
|
+
"premium"
|
|
232
|
+
]);
|
|
233
|
+
const RENDERER_SETTABLE_KEYS = new Set(
|
|
234
|
+
Object.keys(defaults).filter(
|
|
235
|
+
(key2) => !INTERNAL_SETTING_KEYS.has(key2)
|
|
236
|
+
)
|
|
237
|
+
);
|
|
231
238
|
const SettingsValueSchemas = {
|
|
232
239
|
defaultUrl: zod.z.string().url(),
|
|
233
240
|
theme: zod.z.enum(["dark", "light"]),
|
|
@@ -23783,7 +23790,11 @@ const window$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
23783
23790
|
const TabIdSchema$1 = zod.z.string().min(1);
|
|
23784
23791
|
const GroupIdSchema = zod.z.string().min(1);
|
|
23785
23792
|
const UrlSchema = zod.z.string().min(1);
|
|
23786
|
-
const
|
|
23793
|
+
const NavigationPostBodySchema = zod.z.record(zod.z.string(), zod.z.string()).optional();
|
|
23794
|
+
const ColorSchema = zod.z.custom(
|
|
23795
|
+
(color) => typeof color === "string" && TAB_GROUP_COLORS.includes(color),
|
|
23796
|
+
{ message: "Invalid tab group color" }
|
|
23797
|
+
);
|
|
23787
23798
|
const FindActionSchema = zod.z.enum(["clearSelection", "keepSelection", "activateSelection"]);
|
|
23788
23799
|
const FindTextSchema = zod.z.string().min(1).max(1e4);
|
|
23789
23800
|
const FindOptionsSchema = zod.z.object({
|
|
@@ -23829,7 +23840,12 @@ function registerTabHandlers(windowState, _sendToRendererViews) {
|
|
|
23829
23840
|
assertTrustedIpcSender(event);
|
|
23830
23841
|
const validatedId = parseIpc(TabIdSchema$1, id, "tabId");
|
|
23831
23842
|
const validatedUrl = parseIpc(UrlSchema, url, "url");
|
|
23832
|
-
|
|
23843
|
+
const validatedPostBody = parseIpc(
|
|
23844
|
+
NavigationPostBodySchema,
|
|
23845
|
+
postBody,
|
|
23846
|
+
"postBody"
|
|
23847
|
+
);
|
|
23848
|
+
return tabManager.navigateTab(validatedId, validatedUrl, validatedPostBody);
|
|
23833
23849
|
}
|
|
23834
23850
|
);
|
|
23835
23851
|
electron.ipcMain.handle(Channels.TAB_BACK, (event, id) => {
|
|
@@ -28859,6 +28875,11 @@ function registerPromptTools(server, tabManager, runtime2) {
|
|
|
28859
28875
|
}
|
|
28860
28876
|
);
|
|
28861
28877
|
}
|
|
28878
|
+
const TAB_GROUP_COLOR_SET = new Set(TAB_GROUP_COLORS);
|
|
28879
|
+
const TabGroupColorSchema = zod.z.custom(
|
|
28880
|
+
(color) => typeof color === "string" && TAB_GROUP_COLOR_SET.has(color),
|
|
28881
|
+
{ message: "Invalid tab group color" }
|
|
28882
|
+
);
|
|
28862
28883
|
function registerGroupTools(server, tabManager, runtime2) {
|
|
28863
28884
|
server.registerTool(
|
|
28864
28885
|
"list_groups",
|
|
@@ -28887,7 +28908,7 @@ function registerGroupTools(server, tabManager, runtime2) {
|
|
|
28887
28908
|
inputSchema: {
|
|
28888
28909
|
tabId: zod.z.string().optional().describe("Tab ID to group (defaults to active tab)"),
|
|
28889
28910
|
name: zod.z.string().optional().describe("Optional group name"),
|
|
28890
|
-
color:
|
|
28911
|
+
color: TabGroupColorSchema.optional().describe("Optional group color")
|
|
28891
28912
|
}
|
|
28892
28913
|
},
|
|
28893
28914
|
async ({ tabId, name, color }) => withAction(runtime2, tabManager, "create_group", { tabId, name, color }, async () => {
|
|
@@ -28966,10 +28987,14 @@ function registerGroupTools(server, tabManager, runtime2) {
|
|
|
28966
28987
|
description: "Change the color of a tab group.",
|
|
28967
28988
|
inputSchema: {
|
|
28968
28989
|
groupId: zod.z.string().describe("Group ID"),
|
|
28969
|
-
color:
|
|
28990
|
+
color: TabGroupColorSchema.describe("New color")
|
|
28970
28991
|
}
|
|
28971
28992
|
},
|
|
28972
28993
|
async ({ groupId, color }) => withAction(runtime2, tabManager, "set_group_color", { groupId, color }, async () => {
|
|
28994
|
+
const groupExists = tabManager.getGroups().some((group) => group.id === groupId);
|
|
28995
|
+
if (!groupExists) {
|
|
28996
|
+
return "Error: Group not found";
|
|
28997
|
+
}
|
|
28973
28998
|
tabManager.setGroupColor(groupId, color);
|
|
28974
28999
|
return `Set group ${groupId} color to ${color}`;
|
|
28975
29000
|
})
|
|
@@ -30740,9 +30765,10 @@ async function submitFeedback(payload) {
|
|
|
30740
30765
|
return errorResult(getErrorMessage(error, "Failed to send feedback."));
|
|
30741
30766
|
}
|
|
30742
30767
|
}
|
|
30743
|
-
const SettingsKeySchema = zod.z.
|
|
30744
|
-
|
|
30745
|
-
}
|
|
30768
|
+
const SettingsKeySchema = zod.z.custom(
|
|
30769
|
+
(key2) => typeof key2 === "string" && RENDERER_SETTABLE_KEYS.has(key2),
|
|
30770
|
+
{ message: "Unknown setting key" }
|
|
30771
|
+
);
|
|
30746
30772
|
function registerSettingsHandlers(tabManager, runtime2, sendToRendererViews, getResearchOrchestrator) {
|
|
30747
30773
|
const applySettingChange = async (key2, value) => {
|
|
30748
30774
|
const updatedSettings = setSetting(key2, value);
|
|
@@ -30788,8 +30814,7 @@ function registerSettingsHandlers(tabManager, runtime2, sendToRendererViews, get
|
|
|
30788
30814
|
});
|
|
30789
30815
|
electron.ipcMain.handle(Channels.SETTINGS_SET, async (event, key2, value) => {
|
|
30790
30816
|
assertTrustedIpcSender(event);
|
|
30791
|
-
const
|
|
30792
|
-
const settingsKey = validatedKey;
|
|
30817
|
+
const settingsKey = parseIpc(SettingsKeySchema, key2, "key");
|
|
30793
30818
|
const validatedValue = parseSettingValue(settingsKey, value);
|
|
30794
30819
|
return applySettingChange(settingsKey, validatedValue);
|
|
30795
30820
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quanta-intellect/vessel-browser",
|
|
3
3
|
"mcpName": "io.github.unmodeled-tyler/vessel-browser",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.159",
|
|
5
5
|
"description": "AI-native web browser runtime for autonomous agents with human supervision",
|
|
6
6
|
"main": "./out/main/index.js",
|
|
7
7
|
"bin": {
|