synabun 2.2.2 → 2.3.0
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/CHANGELOG.md +26 -0
- package/README.md +1 -1
- package/docs/whatsapp.md +52 -20
- package/lib/mcp-build.js +519 -0
- package/lib/mcp-dist.js +10 -4
- package/lib/server-supervisor.js +7 -1
- package/lib/virustotal.mjs +4 -2
- package/mcp-server/dist/http.d.ts +38 -0
- package/mcp-server/dist/http.d.ts.map +1 -1
- package/mcp-server/dist/http.js +75 -7
- package/mcp-server/dist/http.js.map +1 -1
- package/mcp-server/dist/services/browser-route-flow.d.ts +3 -2
- package/mcp-server/dist/services/browser-route-flow.d.ts.map +1 -1
- package/mcp-server/dist/services/browser-route-flow.js +4 -3
- package/mcp-server/dist/services/browser-route-flow.js.map +1 -1
- package/mcp-server/dist/services/embedding-service.d.ts.map +1 -1
- package/mcp-server/dist/services/embedding-service.js +2 -1
- package/mcp-server/dist/services/embedding-service.js.map +1 -1
- package/mcp-server/dist/services/neural-interface.d.ts +21 -0
- package/mcp-server/dist/services/neural-interface.d.ts.map +1 -1
- package/mcp-server/dist/services/neural-interface.js +76 -4
- package/mcp-server/dist/services/neural-interface.js.map +1 -1
- package/mcp-server/dist/services/tool-catalog.js +2 -2
- package/mcp-server/dist/services/tool-catalog.js.map +1 -1
- package/mcp-server/dist/tools/agents.d.ts +3 -2
- package/mcp-server/dist/tools/agents.d.ts.map +1 -1
- package/mcp-server/dist/tools/agents.js +6 -4
- package/mcp-server/dist/tools/agents.js.map +1 -1
- package/mcp-server/dist/tools/browser-advanced.d.ts +3 -1
- package/mcp-server/dist/tools/browser-advanced.d.ts.map +1 -1
- package/mcp-server/dist/tools/browser-advanced.js +30 -8
- package/mcp-server/dist/tools/browser-advanced.js.map +1 -1
- package/mcp-server/dist/tools/browser-navigate.d.ts +3 -3
- package/mcp-server/dist/tools/browser-navigate.d.ts.map +1 -1
- package/mcp-server/dist/tools/browser-navigate.js +19 -16
- package/mcp-server/dist/tools/browser-navigate.js.map +1 -1
- package/mcp-server/dist/tools/browser-observe.d.ts +2 -1
- package/mcp-server/dist/tools/browser-observe.d.ts.map +1 -1
- package/mcp-server/dist/tools/browser-observe.js +61 -20
- package/mcp-server/dist/tools/browser-observe.js.map +1 -1
- package/mcp-server/dist/tools/morelogin.d.ts +13 -3
- package/mcp-server/dist/tools/morelogin.d.ts.map +1 -1
- package/mcp-server/dist/tools/morelogin.js +81 -20
- package/mcp-server/dist/tools/morelogin.js.map +1 -1
- package/mcp-server/dist/tools/youtube/upload.d.ts.map +1 -1
- package/mcp-server/dist/tools/youtube/upload.js +225 -88
- package/mcp-server/dist/tools/youtube/upload.js.map +1 -1
- package/mcp-server/package-lock.json +2 -2
- package/mcp-server/package.json +1 -1
- package/mcp-server/src/http.ts +79 -7
- package/mcp-server/src/services/browser-route-flow.ts +4 -3
- package/mcp-server/src/services/embedding-service.ts +2 -1
- package/mcp-server/src/services/neural-interface.ts +77 -4
- package/mcp-server/src/services/tool-catalog.ts +2 -2
- package/mcp-server/src/tools/agents.ts +8 -4
- package/mcp-server/src/tools/browser-advanced.ts +29 -8
- package/mcp-server/src/tools/browser-navigate.ts +19 -16
- package/mcp-server/src/tools/browser-observe.ts +62 -20
- package/mcp-server/src/tools/morelogin.ts +81 -20
- package/mcp-server/src/tools/youtube/upload.ts +218 -99
- package/neural-interface/i18n/en.json +631 -123
- package/neural-interface/i18n/pt-BR.json +518 -10
- package/neural-interface/lib/assistant-api.js +26 -0
- package/neural-interface/lib/assistant-brains/claude.js +5 -0
- package/neural-interface/lib/assistant-catalog.js +114 -1
- package/neural-interface/lib/assistant-dispatch.js +71 -1
- package/neural-interface/lib/assistant-persona.js +14 -7
- package/neural-interface/lib/assistant-router.js +6 -4
- package/neural-interface/lib/assistant-runtime.js +3 -0
- package/neural-interface/lib/assistant-task-prompt.js +5 -0
- package/neural-interface/lib/automation-approval.js +249 -0
- package/neural-interface/lib/automation-browser-owner-access.js +82 -0
- package/neural-interface/lib/backup-service.js +16 -1
- package/neural-interface/lib/browser-background-tab.js +72 -3
- package/neural-interface/lib/browser-extraction.js +106 -45
- package/neural-interface/lib/browser-profile-choices.js +143 -0
- package/neural-interface/lib/browser-profiles.js +142 -0
- package/neural-interface/lib/browser-tab-recovery.js +153 -0
- package/neural-interface/lib/browser-tool-policy.js +2 -0
- package/neural-interface/lib/chromium-on-device-model.js +67 -0
- package/neural-interface/lib/claude-agent-bridge.js +7 -4
- package/neural-interface/lib/claude-model-catalog.js +12 -0
- package/neural-interface/lib/effort-levels.js +28 -2
- package/neural-interface/lib/local-profile-proxy.js +362 -0
- package/neural-interface/lib/local-profiles.js +929 -0
- package/neural-interface/lib/loop-logger.js +25 -4
- package/neural-interface/lib/maritaca/api.js +179 -0
- package/neural-interface/lib/maritaca/attachments.js +44 -0
- package/neural-interface/lib/maritaca/client.js +362 -0
- package/neural-interface/lib/maritaca/key-store.js +122 -0
- package/neural-interface/lib/maritaca/models.js +181 -0
- package/neural-interface/lib/maritaca/modes.js +39 -0
- package/neural-interface/lib/maritaca/opencode-proxy.js +236 -0
- package/neural-interface/lib/maritaca/opencode-stream.js +345 -0
- package/neural-interface/lib/maritaca/opencode.js +218 -0
- package/neural-interface/lib/maritaca/panel-bridge.js +273 -0
- package/neural-interface/lib/maritaca/sessions.js +198 -0
- package/neural-interface/lib/morelogin-agent-profiles.js +149 -0
- package/neural-interface/lib/morelogin.js +278 -14
- package/neural-interface/lib/native-loop-providers.js +3 -1
- package/neural-interface/lib/owner-authority.js +30 -12
- package/neural-interface/lib/page-session.js +43 -17
- package/neural-interface/lib/request-gate.js +2 -0
- package/neural-interface/lib/system-activity.js +1 -1
- package/neural-interface/lib/terminal-tokens.js +82 -5
- package/neural-interface/package-lock.json +3 -2
- package/neural-interface/package.json +2 -1
- package/neural-interface/public/assets/mascot/README.md +11 -0
- package/neural-interface/public/assets/mascot/ask.gif +0 -0
- package/neural-interface/public/assets/mascot/ask.png +0 -0
- package/neural-interface/public/assets/mascot/blocked.gif +0 -0
- package/neural-interface/public/assets/mascot/blocked.png +0 -0
- package/neural-interface/public/assets/mascot/budget.gif +0 -0
- package/neural-interface/public/assets/mascot/budget.png +0 -0
- package/neural-interface/public/assets/mascot/computer.gif +0 -0
- package/neural-interface/public/assets/mascot/computer.png +0 -0
- package/neural-interface/public/assets/mascot/edit.gif +0 -0
- package/neural-interface/public/assets/mascot/edit.png +0 -0
- package/neural-interface/public/assets/mascot/error.gif +0 -0
- package/neural-interface/public/assets/mascot/error.png +0 -0
- package/neural-interface/public/assets/mascot/hover-attention.gif +0 -0
- package/neural-interface/public/assets/mascot/hover-attention.png +0 -0
- package/neural-interface/public/assets/mascot/idle-hero.gif +0 -0
- package/neural-interface/public/assets/mascot/idle-hero.png +0 -0
- package/neural-interface/public/assets/mascot/idle.gif +0 -0
- package/neural-interface/public/assets/mascot/idle.png +0 -0
- package/neural-interface/public/assets/mascot/manifest.json +254 -0
- package/neural-interface/public/assets/mascot/mcp.gif +0 -0
- package/neural-interface/public/assets/mascot/mcp.png +0 -0
- package/neural-interface/public/assets/mascot/memory.gif +0 -0
- package/neural-interface/public/assets/mascot/memory.png +0 -0
- package/neural-interface/public/assets/mascot/offline.gif +0 -0
- package/neural-interface/public/assets/mascot/offline.png +0 -0
- package/neural-interface/public/assets/mascot/pick.gif +0 -0
- package/neural-interface/public/assets/mascot/pick.png +0 -0
- package/neural-interface/public/assets/mascot/plan.gif +0 -0
- package/neural-interface/public/assets/mascot/plan.png +0 -0
- package/neural-interface/public/assets/mascot/present.gif +0 -0
- package/neural-interface/public/assets/mascot/present.png +0 -0
- package/neural-interface/public/assets/mascot/project.gif +0 -0
- package/neural-interface/public/assets/mascot/project.png +0 -0
- package/neural-interface/public/assets/mascot/read.gif +0 -0
- package/neural-interface/public/assets/mascot/read.png +0 -0
- package/neural-interface/public/assets/mascot/runs.gif +0 -0
- package/neural-interface/public/assets/mascot/runs.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/automation.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/automation.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/browser.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/browser.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/code.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/code.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/complex.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/complex.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/computer.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/computer.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/design.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/design.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/edit.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/edit.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/generic.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/generic.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/image_gen.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/image_gen.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/manifest.json +173 -0
- package/neural-interface/public/assets/mascot/scenes/memory.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/memory.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/quick.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/quick.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/read.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/read.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/research.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/research.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/review.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/review.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/search.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/search.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/shell.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/shell.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/thinking.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/thinking.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/video_gen.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/video_gen.png +0 -0
- package/neural-interface/public/assets/mascot/scenes/web.gif +0 -0
- package/neural-interface/public/assets/mascot/scenes/web.png +0 -0
- package/neural-interface/public/assets/mascot/search.gif +0 -0
- package/neural-interface/public/assets/mascot/search.png +0 -0
- package/neural-interface/public/assets/mascot/shell.gif +0 -0
- package/neural-interface/public/assets/mascot/shell.png +0 -0
- package/neural-interface/public/assets/mascot/skill.gif +0 -0
- package/neural-interface/public/assets/mascot/skill.png +0 -0
- package/neural-interface/public/assets/mascot/sleep.gif +0 -0
- package/neural-interface/public/assets/mascot/sleep.png +0 -0
- package/neural-interface/public/assets/mascot/subagent.gif +0 -0
- package/neural-interface/public/assets/mascot/subagent.png +0 -0
- package/neural-interface/public/assets/mascot/success.gif +0 -0
- package/neural-interface/public/assets/mascot/success.png +0 -0
- package/neural-interface/public/assets/mascot/think.gif +0 -0
- package/neural-interface/public/assets/mascot/think.png +0 -0
- package/neural-interface/public/assets/mascot/wait.gif +0 -0
- package/neural-interface/public/assets/mascot/wait.png +0 -0
- package/neural-interface/public/assets/mascot/watch.gif +0 -0
- package/neural-interface/public/assets/mascot/watch.png +0 -0
- package/neural-interface/public/assets/mascot/web.gif +0 -0
- package/neural-interface/public/assets/mascot/web.png +0 -0
- package/neural-interface/public/onboarding.html +14 -1
- package/neural-interface/public/shared/agent-runtime-options.js +49 -8
- package/neural-interface/public/shared/agy/agy-panel.js +2 -2
- package/neural-interface/public/shared/api.js +4 -4
- package/neural-interface/public/shared/assistant/asst-ask-styles.js +8 -8
- package/neural-interface/public/shared/assistant/asst-ask.js +1 -1
- package/neural-interface/public/shared/assistant/asst-brain-picker.js +99 -9
- package/neural-interface/public/shared/assistant/asst-control.js +1 -1
- package/neural-interface/public/shared/assistant/asst-limit-wait.js +4 -4
- package/neural-interface/public/shared/assistant/asst-panel.js +6 -2
- package/neural-interface/public/shared/assistant/asst-rack-styles.js +4 -4
- package/neural-interface/public/shared/assistant/asst-render.js +6 -6
- package/neural-interface/public/shared/assistant/asst-route-models.js +64 -4
- package/neural-interface/public/shared/assistant/asst-route.js +24 -7
- package/neural-interface/public/shared/assistant/asst-routes-editor.js +154 -39
- package/neural-interface/public/shared/assistant/asst-run-stage.js +3 -3
- package/neural-interface/public/shared/assistant/asst-scene-styles.js +8 -111
- package/neural-interface/public/shared/assistant/asst-scenes.js +46 -318
- package/neural-interface/public/shared/assistant/asst-sidepanel.js +2 -2
- package/neural-interface/public/shared/assistant/asst-state.js +72 -2
- package/neural-interface/public/shared/assistant/asst-styles.js +58 -14
- package/neural-interface/public/shared/automation-approval-view.js +75 -0
- package/neural-interface/public/shared/cdx/cdx-panel.js +2 -2
- package/neural-interface/public/shared/context-menu-model.js +2 -0
- package/neural-interface/public/shared/editor/editor-panel-logic.js +10 -0
- package/neural-interface/public/shared/editor/editor-panel.js +10 -2
- package/neural-interface/public/shared/html-shell.js +30 -22
- package/neural-interface/public/shared/morelogin-profile-choices.js +107 -0
- package/neural-interface/public/shared/morelogin-profile-field.js +186 -0
- package/neural-interface/public/shared/mtc/mtc-client.js +181 -0
- package/neural-interface/public/shared/mtc/mtc-compose.js +40 -0
- package/neural-interface/public/shared/mtc/mtc-copy.js +253 -0
- package/neural-interface/public/shared/mtc/mtc-logic.js +478 -0
- package/neural-interface/public/shared/mtc/mtc-panel.js +1354 -0
- package/neural-interface/public/shared/mtc/mtc-render.js +172 -0
- package/neural-interface/public/shared/mtc/mtc-styles.js +437 -0
- package/neural-interface/public/shared/ocp-v2/ocp-v2-panel.js +6 -2
- package/neural-interface/public/shared/provider-icons.js +3 -0
- package/neural-interface/public/shared/schedules-view.js +7 -0
- package/neural-interface/public/shared/server-back.js +50 -0
- package/neural-interface/public/shared/settings/settings-browser-owner-access.js +72 -0
- package/neural-interface/public/shared/settings/settings-data.js +1 -0
- package/neural-interface/public/shared/settings/settings-ia.js +3 -1
- package/neural-interface/public/shared/settings/settings-local-profiles.js +153 -0
- package/neural-interface/public/shared/settings/settings-maritaca-opencode.js +105 -0
- package/neural-interface/public/shared/sidepanel-session-status.js +16 -2
- package/neural-interface/public/shared/state.js +1 -1
- package/neural-interface/public/shared/styles.css +356 -157
- package/neural-interface/public/shared/synabun-mascot-assets.js +67 -0
- package/neural-interface/public/shared/synabun-mascot.js +136 -12
- package/neural-interface/public/shared/synabun-ticker.js +3 -0
- package/neural-interface/public/shared/topright-overflow-logic.js +1 -0
- package/neural-interface/public/shared/ui-automation-approval.js +188 -0
- package/neural-interface/public/shared/ui-automation-studio.js +130 -90
- package/neural-interface/public/shared/ui-claude-panel.js +50 -2
- package/neural-interface/public/shared/ui-maritaca-panel.js +15 -0
- package/neural-interface/public/shared/ui-navbar.js +17 -0
- package/neural-interface/public/shared/ui-panels.js +3 -1
- package/neural-interface/public/shared/ui-schedules-studio.js +118 -17
- package/neural-interface/public/shared/ui-scroll-follow.js +3 -0
- package/neural-interface/public/shared/ui-settings.js +590 -27
- package/neural-interface/public/shared/ui-sidepanel-session-entry.js +8 -2
- package/neural-interface/public/shared/ui-sidepanel-sessions.js +3 -3
- package/neural-interface/public/shared/ui-sidepanel-tray.js +24 -0
- package/neural-interface/public/shared/ui-sidepanel-windows.js +1 -1
- package/neural-interface/scripts/build-mascot-assets.mjs +30 -0
- package/neural-interface/server.js +1784 -195
- package/npm-shrinkwrap.json +5 -17
- package/package.json +5 -6
- package/postinstall.js +38 -39
- package/setup.js +33 -31
- package/skills/synabun/modules/changelog.md +14 -0
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod/v3';
|
|
2
2
|
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
3
|
export declare const moreloginSchema: {
|
|
4
|
-
action: z.ZodEnum<["status", "list", "create", "start", "stop", "use_default"]>;
|
|
4
|
+
action: z.ZodEnum<["status", "list", "create", "start", "stop", "use", "use_default"]>;
|
|
5
5
|
envId: z.ZodOptional<z.ZodString>;
|
|
6
6
|
name: z.ZodOptional<z.ZodString>;
|
|
7
7
|
};
|
|
8
|
-
export declare const moreloginDescription = "Manage MoreLogin (anti-detect, multi-account browser) profiles. Actions: \"status\" (is MoreLogin installed/running,
|
|
8
|
+
export declare const moreloginDescription = "Manage MoreLogin (anti-detect, multi-account browser) profiles and pick the one you work in. Actions: \"status\" (is MoreLogin installed/running, the default profile, the profile you work in), \"list\" (profiles), \"create\" (new profile), \"use\" (work in a profile yourself: your browser_* tools drive it from then on, in your own tab, without changing the default or disturbing any other session; several sessions can work in different profiles at the same time), \"start\"/\"stop\" (launch/close a profile). \"use\" and \"start\" take only a profile the owner allowed agents to choose. \"use_default\" is always refused: the default AI browser is the owner's choice in Settings \u2192 Browser. To work in a profile other than the default, call \"use\" with its envId or name, then use the browser tools as usual: never tell the user you cannot control a second profile, and never change the default for that. You can choose only a profile the owner allowed agents to choose (the list is the owner's, in SynaBun's Settings; it is empty until the owner switches a profile on, and \"list\" / \"status\" show it). When \"use\" or \"start\" is refused because the profile is not on that list, nothing was opened, started or changed: tell the user which profile to switch on and where (SynaBun \u2192 Settings \u2192 Connected tools \u2192 MoreLogin \u2192 MoreLogin profiles \u2192 \"Agents may choose\"), and do not work in another profile or browser instead. Only Chrome-type profiles can be driven. Requires the MoreLogin desktop app to be running with its local API enabled. Profiles of two kinds are listed and used the same way, by the same ids: MoreLogin profiles, and local profiles (a Chrome SynaBun runs itself on this computer, with its own cookies, proxy, language and timezone; \"list\" marks them \"local\"; they work with MoreLogin closed or not installed). Both are on the same owner's list of profiles agents may choose. Local profiles are created, edited and deleted by the owner in Settings only; \"create\" makes a MoreLogin profile.";
|
|
9
|
+
/** Whether an id is a local profile's (neural-interface/lib/local-profiles.js: `lp-` and 12 hex characters). */
|
|
10
|
+
export declare function isLocalProfileId(id: unknown): boolean;
|
|
11
|
+
/** Where the owner edits the list of profiles agents may choose (neural-interface/lib/morelogin-agent-profiles.js). */
|
|
12
|
+
export declare const AGENT_PROFILES_WHERE = "SynaBun \u2192 Settings \u2192 Connected tools \u2192 MoreLogin \u2192 MoreLogin profiles \u2192 \"Agents may choose\"";
|
|
13
|
+
/** The owner's list as one sentence for "status" and "list" (`agentProfiles` of the server's answer). */
|
|
14
|
+
export declare function agentProfilesLine(list: unknown): string;
|
|
15
|
+
/** What "use_default" answers: agents never change the default AI browser (finding 1 of the re-review of 2026-11-11). */
|
|
16
|
+
export declare const USE_DEFAULT_REFUSAL = "use_default refused: the default AI browser (the default MoreLogin profile) is the owner's choice, made in SynaBun \u2192 Settings \u2192 Browser, and no agent or session can change it, whatever the profile. Nothing was changed. To work in another MoreLogin profile yourself, call morelogin with action \"use\" and its envId or name: only your own browser tools move there. Tell the user: if every automation should use that profile by default, set it in Settings \u2192 Browser.";
|
|
9
17
|
export declare function handleMoreLogin(args: {
|
|
10
18
|
action: string;
|
|
11
19
|
envId?: string;
|
|
@@ -16,9 +24,11 @@ export declare function handleMoreLogin(args: {
|
|
|
16
24
|
text: string;
|
|
17
25
|
}[];
|
|
18
26
|
}>;
|
|
27
|
+
/** What "use" answers: where the caller works now, what was closed, and what its next browser call does. */
|
|
28
|
+
export declare function useAnswer(r: Record<string, unknown>): string;
|
|
19
29
|
/**
|
|
20
30
|
* Register the MoreLogin MCP tool on the given server instance.
|
|
21
|
-
* Single tool with action-based dispatch: status, list, create, start, stop, use_default.
|
|
31
|
+
* Single tool with action-based dispatch: status, list, create, start, stop, use, use_default (always refused).
|
|
22
32
|
*/
|
|
23
33
|
export declare function registerMoreLoginTools(server: McpServer): import("@modelcontextprotocol/sdk/server/mcp.js").RegisteredTool[];
|
|
24
34
|
//# sourceMappingURL=morelogin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"morelogin.d.ts","sourceRoot":"","sources":["../../src/tools/morelogin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAQzE,eAAO,MAAM,eAAe;;;;CAU3B,CAAC;AAEF,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"morelogin.d.ts","sourceRoot":"","sources":["../../src/tools/morelogin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAQzE,eAAO,MAAM,eAAe;;;;CAU3B,CAAC;AAEF,eAAO,MAAM,oBAAoB,ygEACy6D,CAAC;AAI38D,gHAAgH;AAChH,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,CAErD;AASD,uHAAuH;AACvH,eAAO,MAAM,oBAAoB,2HAAgG,CAAC;AAElI,yGAAyG;AACzG,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAKvD;AAED,yHAAyH;AACzH,eAAO,MAAM,mBAAmB,oeAAod,CAAC;AAErf,wBAAsB,eAAe,CAAC,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;GAoE5F;AAED,4GAA4G;AAC5G,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAY5D;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,sEAIvD"}
|
|
@@ -5,23 +5,52 @@ import { text } from './response.js';
|
|
|
5
5
|
// morelogin — MoreLogin anti-detect browser MCP tool
|
|
6
6
|
// ═══════════════════════════════════════════
|
|
7
7
|
export const moreloginSchema = {
|
|
8
|
-
action: z.enum(['status', 'list', 'create', 'start', 'stop', 'use_default']).describe('MoreLogin action. "status" = installed/running
|
|
9
|
-
envId: z.string().optional().describe('MoreLogin environment
|
|
10
|
-
name: z.string().optional().describe('
|
|
8
|
+
action: z.enum(['status', 'list', 'create', 'start', 'stop', 'use', 'use_default']).describe('MoreLogin action. "status" = installed/running, the default profile and the profile you work in. "list" = browser profiles (environments). "create" = new profile. "use" = work in a profile yourself: from now on YOUR browser_* tools (with or without session and tab ids) open and drive pages in that profile, in a tab of your own; nobody else moves, and it works while other automations use the default or any other profile. Pass envId or name; envId "default" goes back to the default profile. Your next browser call opens your tab there (the profile is started then) and your tab in the profile you left is closed. Only a profile the owner allowed agents to choose can be used ("list" and "status" say which; none is allowed until the owner switches one on): a refusal with MORELOGIN_PROFILE_NOT_ALLOWED means the profile is not on the owner\'s list, so tell the user to switch it on in SynaBun → Settings → Connected tools → MoreLogin → MoreLogin profiles → "Agents may choose" and stop; never use another profile or browser instead. The same list holds for "start": it is refused with MORELOGIN_PROFILE_NOT_ALLOWED for a profile that is not on it. "start"/"stop" = launch/close a profile without working in it (stop closes every tab in that browser: you may stop only a profile you started or have a tab in, and never while other automations have a tab in it). "use_default" is always refused: the default AI browser is the owner\'s choice (Settings → Browser); to work in another profile, call "use". "use" works for any session of SynaBun\'s MCP that proves its id: a run SynaBun started, a side panel, or a CLI window\'s own session of SynaBun\'s HTTP MCP. "start" is for a run SynaBun started; the owner does the rest in Settings → Browser.'),
|
|
9
|
+
envId: z.string().optional().describe('Profile id (a MoreLogin environment id, or a local profile id that starts with "lp-"): required for start and stop; for "use" pass it or name ("default" = back to the default profile). Get ids from the "list" action.'),
|
|
10
|
+
name: z.string().optional().describe('A profile name: the profile to work in ("use" action, as "list" shows it), or the name of a new profile ("create", default "SynaBun").'),
|
|
11
11
|
};
|
|
12
|
-
export const moreloginDescription = 'Manage MoreLogin (anti-detect, multi-account browser) profiles. Actions: "status" (is MoreLogin installed/running,
|
|
12
|
+
export const moreloginDescription = 'Manage MoreLogin (anti-detect, multi-account browser) profiles and pick the one you work in. Actions: "status" (is MoreLogin installed/running, the default profile, the profile you work in), "list" (profiles), "create" (new profile), "use" (work in a profile yourself: your browser_* tools drive it from then on, in your own tab, without changing the default or disturbing any other session; several sessions can work in different profiles at the same time), "start"/"stop" (launch/close a profile). "use" and "start" take only a profile the owner allowed agents to choose. "use_default" is always refused: the default AI browser is the owner\'s choice in Settings → Browser. To work in a profile other than the default, call "use" with its envId or name, then use the browser tools as usual: never tell the user you cannot control a second profile, and never change the default for that. You can choose only a profile the owner allowed agents to choose (the list is the owner\'s, in SynaBun\'s Settings; it is empty until the owner switches a profile on, and "list" / "status" show it). When "use" or "start" is refused because the profile is not on that list, nothing was opened, started or changed: tell the user which profile to switch on and where (SynaBun → Settings → Connected tools → MoreLogin → MoreLogin profiles → "Agents may choose"), and do not work in another profile or browser instead. Only Chrome-type profiles can be driven. Requires the MoreLogin desktop app to be running with its local API enabled. Profiles of two kinds are listed and used the same way, by the same ids: MoreLogin profiles, and local profiles (a Chrome SynaBun runs itself on this computer, with its own cookies, proxy, language and timezone; "list" marks them "local"; they work with MoreLogin closed or not installed). Both are on the same owner\'s list of profiles agents may choose. Local profiles are created, edited and deleted by the owner in Settings only; "create" makes a MoreLogin profile.';
|
|
13
|
+
/** Whether an id is a local profile's (neural-interface/lib/local-profiles.js: `lp-` and 12 hex characters). */
|
|
14
|
+
export function isLocalProfileId(id) {
|
|
15
|
+
return typeof id === 'string' && /^lp-[0-9a-f]{12}$/.test(id);
|
|
16
|
+
}
|
|
17
|
+
/** "local profile" for one of SynaBun's own profiles, "MoreLogin env" for every other id. */
|
|
18
|
+
const profileNoun = (id) => (isLocalProfileId(id) ? 'local profile' : 'MoreLogin env');
|
|
19
|
+
/** What "status" adds about SynaBun's local profiles (`localProfileCount`; a server from before them says nothing). */
|
|
20
|
+
function localProfilesNote(count) {
|
|
21
|
+
const n = Number(count);
|
|
22
|
+
return Number.isFinite(n) && n > 0 ? ` SynaBun also has ${n} local profile(s) of its own, which need no MoreLogin ("list" shows them).` : '';
|
|
23
|
+
}
|
|
24
|
+
/** Where the owner edits the list of profiles agents may choose (neural-interface/lib/morelogin-agent-profiles.js). */
|
|
25
|
+
export const AGENT_PROFILES_WHERE = 'SynaBun → Settings → Connected tools → MoreLogin → MoreLogin profiles → "Agents may choose"';
|
|
26
|
+
/** The owner's list as one sentence for "status" and "list" (`agentProfiles` of the server's answer). */
|
|
27
|
+
export function agentProfilesLine(list) {
|
|
28
|
+
if (!Array.isArray(list))
|
|
29
|
+
return 'This SynaBun server does not say which profiles agents may choose (it was started before that list existed).';
|
|
30
|
+
const rows = list.filter(row => row && row.envId);
|
|
31
|
+
if (!rows.length)
|
|
32
|
+
return `Profiles agents may choose: none. The owner has allowed no profile, so "use", browser_session create with moreloginProfile and agent_dispatch morelogin_profile are refused for every profile; the default profile still works. The owner allows one in ${AGENT_PROFILES_WHERE}.`;
|
|
33
|
+
return `Profiles agents may choose (the owner's list): ${rows.map(row => (typeof row.name === 'string' && row.name ? `${row.name} (id ${row.envId})` : `id ${row.envId}`)).join(', ')}. Any other profile is refused; the owner adds one in ${AGENT_PROFILES_WHERE}.`;
|
|
34
|
+
}
|
|
35
|
+
/** What "use_default" answers: agents never change the default AI browser (finding 1 of the re-review of 2026-11-11). */
|
|
36
|
+
export const USE_DEFAULT_REFUSAL = 'use_default refused: the default AI browser (the default MoreLogin profile) is the owner\'s choice, made in SynaBun → Settings → Browser, and no agent or session can change it, whatever the profile. Nothing was changed. To work in another MoreLogin profile yourself, call morelogin with action "use" and its envId or name: only your own browser tools move there. Tell the user: if every automation should use that profile by default, set it in Settings → Browser.';
|
|
13
37
|
export async function handleMoreLogin(args) {
|
|
14
38
|
switch (args.action) {
|
|
15
39
|
case 'status': {
|
|
16
40
|
const r = await ni.moreloginStatus();
|
|
17
|
-
const
|
|
41
|
+
const mine = r.yourProfile;
|
|
42
|
+
const def = `${r.isDefault && r.defaultEnvId ? `default AI browser = env ${r.defaultEnvId}` : 'no MoreLogin default set'}${mine?.envId ? `; you work in ${mine.name ? `"${mine.name}" (env ${mine.envId})` : `env ${mine.envId}`} (your own choice or your run's profile, not the default)` : ''}.${mine?.refused ? ` Your browser calls are refused there: ${mine.refused}` : ''} ${agentProfilesLine(r.agentProfiles)}`.replace(/\.$/, '');
|
|
18
43
|
// An API that answered with an error is running: say what it rejected, never "unreachable".
|
|
44
|
+
const local = localProfilesNote(r.localProfileCount);
|
|
19
45
|
if (r.running && r.apiError)
|
|
20
|
-
return text(`MoreLogin running on port ${r.port}, API rejected: ${r.apiError}. ${r.profileCount || 0} profile(s). ${def}
|
|
46
|
+
return text(`MoreLogin running on port ${r.port}, API rejected: ${r.apiError}. ${r.profileCount || 0} profile(s). ${def}.${local}`);
|
|
21
47
|
if (r.running)
|
|
22
|
-
return text(`MoreLogin running on port ${r.port}. ${r.profileCount} profile(s). ${def}
|
|
48
|
+
return text(`MoreLogin running on port ${r.port}. ${r.profileCount} profile(s). ${def}.${local}`);
|
|
23
49
|
if (!r.installed && r.port == null && r.error)
|
|
24
50
|
return text(`MoreLogin unreachable: ${r.error}`);
|
|
51
|
+
// MoreLogin is closed or absent, and SynaBun's own local profiles work all the same: say both, with the list.
|
|
52
|
+
if (local)
|
|
53
|
+
return text(`${r.installed ? `MoreLogin is installed but its local API is not running on port ${r.port}` : 'MoreLogin is not installed'}.${local} ${def}.`);
|
|
25
54
|
if (!r.installed)
|
|
26
55
|
return text('MoreLogin is not installed (no app in a known folder and nothing answers on its port). Install it from https://www.morelogin.com, or set MORELOGIN_APP_PATH to a MoreLogin.exe in a custom folder.');
|
|
27
56
|
return text(`MoreLogin is installed but its local API is not running on port ${r.port}. Open the MoreLogin app and enable Settings → API & MCP.${r.error ? ` (${r.error})` : ''}`);
|
|
@@ -33,12 +62,20 @@ export async function handleMoreLogin(args) {
|
|
|
33
62
|
const envs = (r.envs || []);
|
|
34
63
|
if (!envs.length)
|
|
35
64
|
return text('No MoreLogin profiles found. Create one with action "create" (or one is auto-created on first use).');
|
|
36
|
-
|
|
65
|
+
// Each profile says whether the owner allowed agents to choose it, so nobody has to try to find out.
|
|
66
|
+
const mark = (e) => (e.browser === 'firefox' ? 'Firefox-type, cannot be driven' : e.agentsMayChoose === true ? 'agents may choose it' : e.agentsMayChoose === false ? 'not allowed for agents' : null);
|
|
67
|
+
// Local profiles (SynaBun's own Chrome on this computer) are listed with MoreLogin's and say their kind; the
|
|
68
|
+
// same ids work for "use", "start" and "stop". With none, the list reads as it always did.
|
|
69
|
+
const anyLocal = envs.some(e => e.kind === 'local');
|
|
70
|
+
const kind = (e) => (anyLocal ? ` — ${e.kind === 'local' ? 'local' : 'MoreLogin'}` : '');
|
|
71
|
+
const missing = typeof r.moreloginError === 'string' && r.moreloginError ? `\nMoreLogin's own profiles are not listed: ${r.moreloginError}` : '';
|
|
72
|
+
return text(`${anyLocal ? 'Profiles (MoreLogin and local)' : 'MoreLogin profiles'}:\n` + envs.map(e => ` • ${e.name} (id ${e.id})${kind(e)}${e.status ? ` — ${e.status}` : ''}${mark(e) ? ` — ${mark(e)}` : ''}`).join('\n') + `${missing}\n${agentProfilesLine(r.agentProfiles)}`);
|
|
37
73
|
}
|
|
38
74
|
case 'create': {
|
|
39
75
|
const r = await ni.moreloginCreate(args.name);
|
|
76
|
+
// MoreLogin's plan holds no more profiles: a local profile needs no slot, and only the owner creates one.
|
|
40
77
|
if (r.error)
|
|
41
|
-
return text(`Create failed: ${r.error}`);
|
|
78
|
+
return text(`Create failed: ${r.error}${r.code === 'MORELOGIN_PLAN_LIMIT' ? '\nNothing was created. A local profile is created by the owner in SynaBun → Settings → Connected tools → MoreLogin, never by an agent: tell the user, and stop there.' : ''}`);
|
|
42
79
|
const ids = (r.ids || []);
|
|
43
80
|
return text(`Created MoreLogin profile${ids.length ? ` (id ${ids.join(', ')})` : ''}.`);
|
|
44
81
|
}
|
|
@@ -46,11 +83,12 @@ export async function handleMoreLogin(args) {
|
|
|
46
83
|
if (!args.envId)
|
|
47
84
|
return text('envId is required for the "start" action. Use "list" to get ids.');
|
|
48
85
|
const r = await ni.moreloginStart(args.envId);
|
|
86
|
+
// A profile off the owner's list is not started for an agent (server: POST /api/morelogin/start, B1 of the 2026-11-10 re-review).
|
|
49
87
|
if (r.error)
|
|
50
|
-
return text(`Start failed: ${r.error}`);
|
|
88
|
+
return text(`Start failed: ${r.error}${r.code === 'MORELOGIN_PROFILE_NOT_ALLOWED' ? '\nNothing was started. Tell the user what to switch on, and stop there.' : ''}`);
|
|
51
89
|
// The owner's page gets the profile's debugging port; an automation does not (a raw CDP connection would drive
|
|
52
|
-
// the profile past every check SynaBun makes), and needs none: the browser tools drive the
|
|
53
|
-
return text(`Started
|
|
90
|
+
// the profile past every check SynaBun makes), and needs none: the browser tools drive the profile it works in.
|
|
91
|
+
return text(`Started ${profileNoun(args.envId)} ${args.envId}${r.debugPort ? ` (debug port ${r.debugPort})` : ''}. Starting a profile does not move your browser tools there: to work in it, call morelogin with action "use" and this envId.`);
|
|
54
92
|
}
|
|
55
93
|
case 'stop': {
|
|
56
94
|
if (!args.envId)
|
|
@@ -58,23 +96,46 @@ export async function handleMoreLogin(args) {
|
|
|
58
96
|
const r = await ni.moreloginStop(args.envId);
|
|
59
97
|
if (r.error)
|
|
60
98
|
return text(`Stop failed: ${r.error}`);
|
|
61
|
-
return text(`Stopped
|
|
99
|
+
return text(`Stopped ${profileNoun(args.envId)} ${args.envId}.`);
|
|
62
100
|
}
|
|
63
|
-
case '
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
101
|
+
case 'use': {
|
|
102
|
+
const toDefault = (args.envId || '').trim().toLowerCase() === 'default' || (!args.envId && (args.name || '').trim().toLowerCase() === 'default');
|
|
103
|
+
if (!toDefault && !args.envId && !args.name)
|
|
104
|
+
return text('The "use" action needs envId or name (the "list" action gives both), or envId "default" to go back to the default profile.');
|
|
105
|
+
const r = await ni.useSessionProfile(toDefault ? { default: true } : { ...(args.envId ? { envId: args.envId } : {}), ...(args.name ? { name: args.name } : {}) });
|
|
67
106
|
if (r.error)
|
|
68
|
-
return text(`
|
|
69
|
-
return text(
|
|
107
|
+
return text(`use failed: ${r.error}\nNothing changed: you still work where you did. Never fall back to another profile or browser by yourself.${r.code === 'MORELOGIN_PROFILE_NOT_ALLOWED' ? ' Tell the user what to switch on, and stop there.' : ''}`);
|
|
108
|
+
return text(useAnswer(r));
|
|
109
|
+
}
|
|
110
|
+
case 'use_default': {
|
|
111
|
+
// Finding 1 of the re-review of 2026-11-11: the default AI browser is the owner's choice alone, for every caller
|
|
112
|
+
// and every profile. The tool answers without asking the server, which refuses it too (403
|
|
113
|
+
// MORELOGIN_DEFAULT_OWNER_ONLY in POST /api/morelogin/use-default) for anything that is not the owner's page.
|
|
114
|
+
return text(USE_DEFAULT_REFUSAL);
|
|
70
115
|
}
|
|
71
116
|
default:
|
|
72
117
|
return text(`Unknown action: ${args.action}`);
|
|
73
118
|
}
|
|
74
119
|
}
|
|
120
|
+
/** What "use" answers: where the caller works now, what was closed, and what its next browser call does. */
|
|
121
|
+
export function useAnswer(r) {
|
|
122
|
+
const label = (envId, name) => (isLocalProfileId(envId)
|
|
123
|
+
? (typeof name === 'string' && name ? `local profile "${name}" (id ${envId})` : `local profile ${envId}`)
|
|
124
|
+
: (typeof name === 'string' && name ? `MoreLogin profile "${name}" (env ${envId})` : `MoreLogin profile env ${envId}`));
|
|
125
|
+
const now = r.default === true ? 'the default browser profile (Settings → Browser)' : label(r.envId, r.name);
|
|
126
|
+
if (r.changed !== true)
|
|
127
|
+
return `You already work in ${now}. Nothing changed.`;
|
|
128
|
+
const released = Array.isArray(r.released) ? r.released : [];
|
|
129
|
+
const closed = released.filter(x => x && x.tabId).map(x => `tab ${x.tabId} of session ${x.sessionId}`);
|
|
130
|
+
const lines = [`You now work in ${now}. Only your own browser tools moved: the default AI browser and every other session are unchanged.`];
|
|
131
|
+
if (closed.length)
|
|
132
|
+
lines.push(`Your ${closed.join(', ')} in the profile you left ${closed.length === 1 ? 'was' : 'were'} released: do not pass those ids again.`);
|
|
133
|
+
lines.push('Your next browser call (browser_navigate with a URL, without ids) opens a tab of your own there; the profile is started then if it is not running, which can take a minute or two. If it cannot start, that call fails and names the profile: report it, never switch to another profile or browser by yourself.');
|
|
134
|
+
return lines.join('\n');
|
|
135
|
+
}
|
|
75
136
|
/**
|
|
76
137
|
* Register the MoreLogin MCP tool on the given server instance.
|
|
77
|
-
* Single tool with action-based dispatch: status, list, create, start, stop, use_default.
|
|
138
|
+
* Single tool with action-based dispatch: status, list, create, start, stop, use, use_default (always refused).
|
|
78
139
|
*/
|
|
79
140
|
export function registerMoreLoginTools(server) {
|
|
80
141
|
return [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"morelogin.js","sourceRoot":"","sources":["../../src/tools/morelogin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,KAAK,EAAE,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,8CAA8C;AAC9C,qDAAqD;AACrD,8CAA8C;AAE9C,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"morelogin.js","sourceRoot":"","sources":["../../src/tools/morelogin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,KAAK,EAAE,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,8CAA8C;AAC9C,qDAAqD;AACrD,8CAA8C;AAE9C,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EA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AAC;AAED;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CAAC,MAAiB;IACtD,OAAO;QACL,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,oBAAoB,EAAE,eAAe,EAAE,eAAe,CAAC;KACjF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../src/tools/youtube/upload.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../src/tools/youtube/upload.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAiB3B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;CAgB/B,CAAC;AAEF,eAAO,MAAM,wBAAwB,QAK4L,CAAC;AAiJlO,wBAAsB,mBAAmB,CAAC,IAAI,EAAE;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;;;;;GA8LA"}
|