superbased 1.4.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/LICENSE +31 -0
- package/README.md +84 -0
- package/SUPERBASED_SKILL.md +358 -0
- package/dist/electron/ai/ai-client.d.ts +45 -0
- package/dist/electron/ai/ai-client.d.ts.map +1 -0
- package/dist/electron/ai/ai-client.js +205 -0
- package/dist/electron/ai/ai-client.js.map +1 -0
- package/dist/electron/ai/context-builder.d.ts +8 -0
- package/dist/electron/ai/context-builder.d.ts.map +1 -0
- package/dist/electron/ai/context-builder.js +28 -0
- package/dist/electron/ai/context-builder.js.map +1 -0
- package/dist/electron/ai/instruction-parser.d.ts +11 -0
- package/dist/electron/ai/instruction-parser.d.ts.map +1 -0
- package/dist/electron/ai/instruction-parser.js +47 -0
- package/dist/electron/ai/instruction-parser.js.map +1 -0
- package/dist/electron/ai/orchestrator.d.ts +17 -0
- package/dist/electron/ai/orchestrator.d.ts.map +1 -0
- package/dist/electron/ai/orchestrator.js +53 -0
- package/dist/electron/ai/orchestrator.js.map +1 -0
- package/dist/electron/ai/providers/anthropic.d.ts +6 -0
- package/dist/electron/ai/providers/anthropic.d.ts.map +1 -0
- package/dist/electron/ai/providers/anthropic.js +67 -0
- package/dist/electron/ai/providers/anthropic.js.map +1 -0
- package/dist/electron/ai/providers/azure-openai.d.ts +12 -0
- package/dist/electron/ai/providers/azure-openai.d.ts.map +1 -0
- package/dist/electron/ai/providers/azure-openai.js +87 -0
- package/dist/electron/ai/providers/azure-openai.js.map +1 -0
- package/dist/electron/ai/providers/gemini.d.ts +6 -0
- package/dist/electron/ai/providers/gemini.d.ts.map +1 -0
- package/dist/electron/ai/providers/gemini.js +49 -0
- package/dist/electron/ai/providers/gemini.js.map +1 -0
- package/dist/electron/ai/providers/openai.d.ts +6 -0
- package/dist/electron/ai/providers/openai.d.ts.map +1 -0
- package/dist/electron/ai/providers/openai.js +68 -0
- package/dist/electron/ai/providers/openai.js.map +1 -0
- package/dist/electron/core/auth-store.d.ts +15 -0
- package/dist/electron/core/auth-store.d.ts.map +1 -0
- package/dist/electron/core/auth-store.js +86 -0
- package/dist/electron/core/auth-store.js.map +1 -0
- package/dist/electron/core/config.d.ts +6 -0
- package/dist/electron/core/config.d.ts.map +1 -0
- package/dist/electron/core/config.js +81 -0
- package/dist/electron/core/config.js.map +1 -0
- package/dist/electron/core/file-logger.d.ts +17 -0
- package/dist/electron/core/file-logger.d.ts.map +1 -0
- package/dist/electron/core/file-logger.js +74 -0
- package/dist/electron/core/file-logger.js.map +1 -0
- package/dist/electron/core/json-store.d.ts +4 -0
- package/dist/electron/core/json-store.d.ts.map +1 -0
- package/dist/electron/core/json-store.js +118 -0
- package/dist/electron/core/json-store.js.map +1 -0
- package/dist/electron/core/paths.d.ts +17 -0
- package/dist/electron/core/paths.d.ts.map +1 -0
- package/dist/electron/core/paths.js +117 -0
- package/dist/electron/core/paths.js.map +1 -0
- package/dist/electron/core/platform.d.ts +21 -0
- package/dist/electron/core/platform.d.ts.map +1 -0
- package/dist/electron/core/platform.js +18 -0
- package/dist/electron/core/platform.js.map +1 -0
- package/dist/electron/core/process-coord.d.ts +19 -0
- package/dist/electron/core/process-coord.d.ts.map +1 -0
- package/dist/electron/core/process-coord.js +124 -0
- package/dist/electron/core/process-coord.js.map +1 -0
- package/dist/electron/db/database.d.ts +154 -0
- package/dist/electron/db/database.d.ts.map +1 -0
- package/dist/electron/db/database.js +637 -0
- package/dist/electron/db/database.js.map +1 -0
- package/dist/electron/db/models.d.ts +26 -0
- package/dist/electron/db/models.d.ts.map +1 -0
- package/dist/electron/db/models.js +4 -0
- package/dist/electron/db/models.js.map +1 -0
- package/dist/electron/logger.d.ts +9 -0
- package/dist/electron/logger.d.ts.map +1 -0
- package/dist/electron/logger.js +18 -0
- package/dist/electron/logger.js.map +1 -0
- package/dist/electron/main.js +3286 -0
- package/dist/electron/modules/active-window.d.ts +6 -0
- package/dist/electron/modules/active-window.d.ts.map +1 -0
- package/dist/electron/modules/active-window.js +68 -0
- package/dist/electron/modules/active-window.js.map +1 -0
- package/dist/electron/modules/api-server.d.ts +8 -0
- package/dist/electron/modules/api-server.d.ts.map +1 -0
- package/dist/electron/modules/api-server.js +1324 -0
- package/dist/electron/modules/api-server.js.map +1 -0
- package/dist/electron/modules/auth.d.ts +28 -0
- package/dist/electron/modules/auth.d.ts.map +1 -0
- package/dist/electron/modules/auth.js +150 -0
- package/dist/electron/modules/auth.js.map +1 -0
- package/dist/electron/modules/azure-speech-realtime.d.ts +38 -0
- package/dist/electron/modules/azure-speech-realtime.d.ts.map +1 -0
- package/dist/electron/modules/azure-speech-realtime.js +354 -0
- package/dist/electron/modules/azure-speech-realtime.js.map +1 -0
- package/dist/electron/modules/capture-modes.d.ts +19 -0
- package/dist/electron/modules/capture-modes.d.ts.map +1 -0
- package/dist/electron/modules/capture-modes.js +100 -0
- package/dist/electron/modules/capture-modes.js.map +1 -0
- package/dist/electron/modules/capture.d.ts +16 -0
- package/dist/electron/modules/capture.d.ts.map +1 -0
- package/dist/electron/modules/capture.js +139 -0
- package/dist/electron/modules/capture.js.map +1 -0
- package/dist/electron/modules/clipboard.d.ts +6 -0
- package/dist/electron/modules/clipboard.d.ts.map +1 -0
- package/dist/electron/modules/clipboard.js +26 -0
- package/dist/electron/modules/clipboard.js.map +1 -0
- package/dist/electron/modules/color-picker.d.ts +4 -0
- package/dist/electron/modules/color-picker.d.ts.map +1 -0
- package/dist/electron/modules/color-picker.js +233 -0
- package/dist/electron/modules/color-picker.js.map +1 -0
- package/dist/electron/modules/dictation.d.ts +25 -0
- package/dist/electron/modules/dictation.d.ts.map +1 -0
- package/dist/electron/modules/dictation.js +1058 -0
- package/dist/electron/modules/dictation.js.map +1 -0
- package/dist/electron/modules/error-reporter.d.ts +7 -0
- package/dist/electron/modules/error-reporter.d.ts.map +1 -0
- package/dist/electron/modules/error-reporter.js +65 -0
- package/dist/electron/modules/error-reporter.js.map +1 -0
- package/dist/electron/modules/hotkeys.d.ts +4 -0
- package/dist/electron/modules/hotkeys.d.ts.map +1 -0
- package/dist/electron/modules/hotkeys.js +40 -0
- package/dist/electron/modules/hotkeys.js.map +1 -0
- package/dist/electron/modules/keystroke.d.ts +7 -0
- package/dist/electron/modules/keystroke.d.ts.map +1 -0
- package/dist/electron/modules/keystroke.js +53 -0
- package/dist/electron/modules/keystroke.js.map +1 -0
- package/dist/electron/modules/license.d.ts +25 -0
- package/dist/electron/modules/license.d.ts.map +1 -0
- package/dist/electron/modules/license.js +175 -0
- package/dist/electron/modules/license.js.map +1 -0
- package/dist/electron/modules/mcp-config.d.ts +16 -0
- package/dist/electron/modules/mcp-config.d.ts.map +1 -0
- package/dist/electron/modules/mcp-config.js +146 -0
- package/dist/electron/modules/mcp-config.js.map +1 -0
- package/dist/electron/modules/ocr.d.ts +3 -0
- package/dist/electron/modules/ocr.d.ts.map +1 -0
- package/dist/electron/modules/ocr.js +176 -0
- package/dist/electron/modules/ocr.js.map +1 -0
- package/dist/electron/modules/pin-window.d.ts +3 -0
- package/dist/electron/modules/pin-window.d.ts.map +1 -0
- package/dist/electron/modules/pin-window.js +63 -0
- package/dist/electron/modules/pin-window.js.map +1 -0
- package/dist/electron/modules/recording/ai-analysis.d.ts +8 -0
- package/dist/electron/modules/recording/ai-analysis.d.ts.map +1 -0
- package/dist/electron/modules/recording/ai-analysis.js +88 -0
- package/dist/electron/modules/recording/ai-analysis.js.map +1 -0
- package/dist/electron/modules/recording/capture-queue.d.ts +48 -0
- package/dist/electron/modules/recording/capture-queue.d.ts.map +1 -0
- package/dist/electron/modules/recording/capture-queue.js +376 -0
- package/dist/electron/modules/recording/capture-queue.js.map +1 -0
- package/dist/electron/modules/recording/cli.d.ts +13 -0
- package/dist/electron/modules/recording/cli.d.ts.map +1 -0
- package/dist/electron/modules/recording/cli.js +135 -0
- package/dist/electron/modules/recording/cli.js.map +1 -0
- package/dist/electron/modules/recording/http-api.d.ts +3 -0
- package/dist/electron/modules/recording/http-api.d.ts.map +1 -0
- package/dist/electron/modules/recording/http-api.js +236 -0
- package/dist/electron/modules/recording/http-api.js.map +1 -0
- package/dist/electron/modules/recording/index.d.ts +15 -0
- package/dist/electron/modules/recording/index.d.ts.map +1 -0
- package/dist/electron/modules/recording/index.js +148 -0
- package/dist/electron/modules/recording/index.js.map +1 -0
- package/dist/electron/modules/recording/input-hook-provider.d.ts +15 -0
- package/dist/electron/modules/recording/input-hook-provider.d.ts.map +1 -0
- package/dist/electron/modules/recording/input-hook-provider.js +5 -0
- package/dist/electron/modules/recording/input-hook-provider.js.map +1 -0
- package/dist/electron/modules/recording/mcp-tool.d.ts +13 -0
- package/dist/electron/modules/recording/mcp-tool.d.ts.map +1 -0
- package/dist/electron/modules/recording/mcp-tool.js +81 -0
- package/dist/electron/modules/recording/mcp-tool.js.map +1 -0
- package/dist/electron/modules/recording/providers/periodic-provider.d.ts +15 -0
- package/dist/electron/modules/recording/providers/periodic-provider.d.ts.map +1 -0
- package/dist/electron/modules/recording/providers/periodic-provider.js +55 -0
- package/dist/electron/modules/recording/providers/periodic-provider.js.map +1 -0
- package/dist/electron/modules/recording/providers/provider-factory.d.ts +9 -0
- package/dist/electron/modules/recording/providers/provider-factory.d.ts.map +1 -0
- package/dist/electron/modules/recording/providers/provider-factory.js +70 -0
- package/dist/electron/modules/recording/providers/provider-factory.js.map +1 -0
- package/dist/electron/modules/recording/providers/uiohook-provider.d.ts +19 -0
- package/dist/electron/modules/recording/providers/uiohook-provider.d.ts.map +1 -0
- package/dist/electron/modules/recording/providers/uiohook-provider.js +263 -0
- package/dist/electron/modules/recording/providers/uiohook-provider.js.map +1 -0
- package/dist/electron/modules/recording/recording-session.d.ts +25 -0
- package/dist/electron/modules/recording/recording-session.d.ts.map +1 -0
- package/dist/electron/modules/recording/recording-session.js +317 -0
- package/dist/electron/modules/recording/recording-session.js.map +1 -0
- package/dist/electron/modules/recording/session-alignment.d.ts +32 -0
- package/dist/electron/modules/recording/session-alignment.d.ts.map +1 -0
- package/dist/electron/modules/recording/session-alignment.js +103 -0
- package/dist/electron/modules/recording/session-alignment.js.map +1 -0
- package/dist/electron/modules/recording/session-export.d.ts +2 -0
- package/dist/electron/modules/recording/session-export.d.ts.map +1 -0
- package/dist/electron/modules/recording/session-export.js +287 -0
- package/dist/electron/modules/recording/session-export.js.map +1 -0
- package/dist/electron/modules/recording/trigger-engine.d.ts +62 -0
- package/dist/electron/modules/recording/trigger-engine.d.ts.map +1 -0
- package/dist/electron/modules/recording/trigger-engine.js +546 -0
- package/dist/electron/modules/recording/trigger-engine.js.map +1 -0
- package/dist/electron/modules/recording/visual-diff.d.ts +17 -0
- package/dist/electron/modules/recording/visual-diff.d.ts.map +1 -0
- package/dist/electron/modules/recording/visual-diff.js +109 -0
- package/dist/electron/modules/recording/visual-diff.js.map +1 -0
- package/dist/electron/modules/redact.d.ts +34 -0
- package/dist/electron/modules/redact.d.ts.map +1 -0
- package/dist/electron/modules/redact.js +583 -0
- package/dist/electron/modules/redact.js.map +1 -0
- package/dist/electron/modules/scroll-capture.d.ts +19 -0
- package/dist/electron/modules/scroll-capture.d.ts.map +1 -0
- package/dist/electron/modules/scroll-capture.js +185 -0
- package/dist/electron/modules/scroll-capture.js.map +1 -0
- package/dist/electron/modules/store.d.ts +59 -0
- package/dist/electron/modules/store.d.ts.map +1 -0
- package/dist/electron/modules/store.js +100 -0
- package/dist/electron/modules/store.js.map +1 -0
- package/dist/electron/modules/tce/content-analyzer.d.ts +20 -0
- package/dist/electron/modules/tce/content-analyzer.d.ts.map +1 -0
- package/dist/electron/modules/tce/content-analyzer.js +123 -0
- package/dist/electron/modules/tce/content-analyzer.js.map +1 -0
- package/dist/electron/modules/tce/index.d.ts +54 -0
- package/dist/electron/modules/tce/index.d.ts.map +1 -0
- package/dist/electron/modules/tce/index.js +174 -0
- package/dist/electron/modules/tce/index.js.map +1 -0
- package/dist/electron/modules/tce/layout-engine.d.ts +68 -0
- package/dist/electron/modules/tce/layout-engine.d.ts.map +1 -0
- package/dist/electron/modules/tce/layout-engine.js +313 -0
- package/dist/electron/modules/tce/layout-engine.js.map +1 -0
- package/dist/electron/modules/tce/renderer.d.ts +16 -0
- package/dist/electron/modules/tce/renderer.d.ts.map +1 -0
- package/dist/electron/modules/tce/renderer.js +196 -0
- package/dist/electron/modules/tce/renderer.js.map +1 -0
- package/dist/electron/modules/tce/themes.d.ts +14 -0
- package/dist/electron/modules/tce/themes.d.ts.map +1 -0
- package/dist/electron/modules/tce/themes.js +68 -0
- package/dist/electron/modules/tce/themes.js.map +1 -0
- package/dist/electron/modules/tce/token-estimator.d.ts +30 -0
- package/dist/electron/modules/tce/token-estimator.d.ts.map +1 -0
- package/dist/electron/modules/tce/token-estimator.js +59 -0
- package/dist/electron/modules/tce/token-estimator.js.map +1 -0
- package/dist/electron/modules/telemetry.d.ts +44 -0
- package/dist/electron/modules/telemetry.d.ts.map +1 -0
- package/dist/electron/modules/telemetry.js +316 -0
- package/dist/electron/modules/telemetry.js.map +1 -0
- package/dist/electron/modules/tray.d.ts +22 -0
- package/dist/electron/modules/tray.d.ts.map +1 -0
- package/dist/electron/modules/tray.js +221 -0
- package/dist/electron/modules/tray.js.map +1 -0
- package/dist/electron/modules/updater.d.ts +14 -0
- package/dist/electron/modules/updater.d.ts.map +1 -0
- package/dist/electron/modules/updater.js +102 -0
- package/dist/electron/modules/updater.js.map +1 -0
- package/dist/electron/modules/usage-link.d.ts +7 -0
- package/dist/electron/modules/usage-link.d.ts.map +1 -0
- package/dist/electron/modules/usage-link.js +63 -0
- package/dist/electron/modules/usage-link.js.map +1 -0
- package/dist/electron/modules/version-check.d.ts +3 -0
- package/dist/electron/modules/version-check.d.ts.map +1 -0
- package/dist/electron/modules/version-check.js +76 -0
- package/dist/electron/modules/version-check.js.map +1 -0
- package/dist/electron/modules/window-picker.d.ts +6 -0
- package/dist/electron/modules/window-picker.d.ts.map +1 -0
- package/dist/electron/modules/window-picker.js +192 -0
- package/dist/electron/modules/window-picker.js.map +1 -0
- package/dist/headless/electron/ai/ai-client.js +204 -0
- package/dist/headless/electron/ai/context-builder.js +27 -0
- package/dist/headless/electron/ai/instruction-parser.js +46 -0
- package/dist/headless/electron/core/auth-store.js +85 -0
- package/dist/headless/electron/core/config.js +80 -0
- package/dist/headless/electron/core/file-logger.js +73 -0
- package/dist/headless/electron/core/json-store.js +117 -0
- package/dist/headless/electron/core/paths.js +116 -0
- package/dist/headless/electron/core/platform.js +17 -0
- package/dist/headless/electron/core/process-coord.js +123 -0
- package/dist/headless/electron/db/database.js +636 -0
- package/dist/headless/electron/db/models.js +3 -0
- package/dist/headless/electron/logger.js +17 -0
- package/dist/headless/electron/modules/active-window.js +67 -0
- package/dist/headless/electron/modules/api-server.js +1323 -0
- package/dist/headless/electron/modules/auth.js +149 -0
- package/dist/headless/electron/modules/azure-speech-realtime.js +353 -0
- package/dist/headless/electron/modules/capture.js +138 -0
- package/dist/headless/electron/modules/clipboard.js +25 -0
- package/dist/headless/electron/modules/dictation.js +1057 -0
- package/dist/headless/electron/modules/keystroke.js +52 -0
- package/dist/headless/electron/modules/license.js +174 -0
- package/dist/headless/electron/modules/mcp-config.js +145 -0
- package/dist/headless/electron/modules/ocr.js +175 -0
- package/dist/headless/electron/modules/recording/ai-analysis.js +87 -0
- package/dist/headless/electron/modules/recording/capture-queue.js +375 -0
- package/dist/headless/electron/modules/recording/cli.js +134 -0
- package/dist/headless/electron/modules/recording/http-api.js +235 -0
- package/dist/headless/electron/modules/recording/index.js +147 -0
- package/dist/headless/electron/modules/recording/input-hook-provider.js +4 -0
- package/dist/headless/electron/modules/recording/mcp-tool.js +80 -0
- package/dist/headless/electron/modules/recording/providers/periodic-provider.js +54 -0
- package/dist/headless/electron/modules/recording/providers/provider-factory.js +69 -0
- package/dist/headless/electron/modules/recording/providers/uiohook-provider.js +262 -0
- package/dist/headless/electron/modules/recording/recording-session.js +316 -0
- package/dist/headless/electron/modules/recording/session-alignment.js +102 -0
- package/dist/headless/electron/modules/recording/session-export.js +286 -0
- package/dist/headless/electron/modules/recording/trigger-engine.js +545 -0
- package/dist/headless/electron/modules/recording/visual-diff.js +108 -0
- package/dist/headless/electron/modules/redact.js +582 -0
- package/dist/headless/electron/modules/store.js +99 -0
- package/dist/headless/electron/modules/tce/content-analyzer.js +122 -0
- package/dist/headless/electron/modules/tce/index.js +173 -0
- package/dist/headless/electron/modules/tce/layout-engine.js +312 -0
- package/dist/headless/electron/modules/tce/renderer.js +195 -0
- package/dist/headless/electron/modules/tce/themes.js +67 -0
- package/dist/headless/electron/modules/tce/token-estimator.js +58 -0
- package/dist/headless/electron/modules/telemetry.js +315 -0
- package/dist/headless/headless/capture-hotkey.js +155 -0
- package/dist/headless/headless/cli-auth.js +158 -0
- package/dist/headless/headless/cli.js +220 -0
- package/dist/headless/headless/dictation-hotkey.js +360 -0
- package/dist/headless/headless/mic-capture.js +312 -0
- package/dist/headless/headless/platform-headless.js +121 -0
- package/dist/headless/headless/server.js +159 -0
- package/dist/headless/mic-capture.d.ts +29 -0
- package/dist/headless/mic-capture.d.ts.map +1 -0
- package/dist/headless/mic-capture.js +313 -0
- package/dist/headless/mic-capture.js.map +1 -0
- package/dist/headless/shared/constants.js +63 -0
- package/dist/headless/shared/design-tokens.js +189 -0
- package/dist/headless/shared/recording-types.js +93 -0
- package/dist/headless/shared/types.js +3 -0
- package/dist/shared/constants.d.ts +98 -0
- package/dist/shared/constants.d.ts.map +1 -0
- package/dist/shared/constants.js +64 -0
- package/dist/shared/constants.js.map +1 -0
- package/dist/shared/design-tokens.d.ts +112 -0
- package/dist/shared/design-tokens.d.ts.map +1 -0
- package/dist/shared/design-tokens.js +190 -0
- package/dist/shared/design-tokens.js.map +1 -0
- package/dist/shared/recording-types.d.ts +174 -0
- package/dist/shared/recording-types.d.ts.map +1 -0
- package/dist/shared/recording-types.js +94 -0
- package/dist/shared/recording-types.js.map +1 -0
- package/dist/shared/types.d.ts +135 -0
- package/dist/shared/types.d.ts.map +1 -0
- package/dist/shared/types.js +4 -0
- package/dist/shared/types.js.map +1 -0
- package/mcp-server/dist/api-client.js +261 -0
- package/mcp-server/dist/index.js +824 -0
- package/mcp-server/package.json +16 -0
- package/package.json +125 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
SuperBased End User License Agreement (EULA)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Gaja AI Private Limited. All rights reserved.
|
|
4
|
+
|
|
5
|
+
By installing or using SuperBased, you agree to the following terms:
|
|
6
|
+
|
|
7
|
+
1. LICENSE GRANT
|
|
8
|
+
Gaja AI Private Limited grants you a limited, non-exclusive,
|
|
9
|
+
non-transferable, revocable license to install and use SuperBased
|
|
10
|
+
on the number of devices permitted by your subscription plan.
|
|
11
|
+
|
|
12
|
+
2. RESTRICTIONS
|
|
13
|
+
You may not copy, modify, distribute, sell, or sublicense the software.
|
|
14
|
+
You may not reverse-engineer, decompile, or disassemble the software.
|
|
15
|
+
|
|
16
|
+
3. INTELLECTUAL PROPERTY
|
|
17
|
+
The software and all related intellectual property remain the property
|
|
18
|
+
of Gaja AI Private Limited. Your content (screenshots, recordings,
|
|
19
|
+
notes) belongs to you.
|
|
20
|
+
|
|
21
|
+
4. THIRD-PARTY SERVICES
|
|
22
|
+
SuperBased integrates with third-party AI providers. Your use of these
|
|
23
|
+
services is governed by their respective terms.
|
|
24
|
+
|
|
25
|
+
5. DISCLAIMER
|
|
26
|
+
The software is provided "AS IS" without warranty of any kind.
|
|
27
|
+
|
|
28
|
+
6. GOVERNING LAW
|
|
29
|
+
This agreement is governed by the laws of India.
|
|
30
|
+
|
|
31
|
+
For full terms, visit: https://superbased.app/legal/eula.html
|
package/README.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# SuperBased
|
|
2
|
+
|
|
3
|
+
Screenshot capture, AI analysis, OCR, visual regression testing, token compression, and voice dictation — as a headless server with 28 MCP tools for AI coding CLIs.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g superbased
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# Start the server
|
|
15
|
+
superbased
|
|
16
|
+
|
|
17
|
+
# Sign in (opens browser)
|
|
18
|
+
superbased auth login
|
|
19
|
+
|
|
20
|
+
# Take a screenshot
|
|
21
|
+
superbased capture
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
The API server runs on `http://127.0.0.1:47592` and exposes 28 MCP tools.
|
|
25
|
+
|
|
26
|
+
## MCP Setup
|
|
27
|
+
|
|
28
|
+
### Claude Code
|
|
29
|
+
|
|
30
|
+
Add to `~/.claude/settings.json`:
|
|
31
|
+
```json
|
|
32
|
+
{
|
|
33
|
+
"mcpServers": {
|
|
34
|
+
"superbased": {
|
|
35
|
+
"command": "node",
|
|
36
|
+
"args": ["/path/to/superbased/mcp-server/dist/index.js"]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Other AI CLIs
|
|
43
|
+
|
|
44
|
+
Cursor, Windsurf, Cline, OpenCode, and Zed all support the same MCP format. See the [full setup guide](https://superbased.app/setup).
|
|
45
|
+
|
|
46
|
+
## What Works Without Auth
|
|
47
|
+
|
|
48
|
+
- Screen capture (fullscreen, region, window targeting)
|
|
49
|
+
- OCR text extraction (local Tesseract)
|
|
50
|
+
- Capture gallery with full-text search
|
|
51
|
+
- Token compression (text → optimized images)
|
|
52
|
+
- Settings and preset management
|
|
53
|
+
|
|
54
|
+
## What Requires Auth
|
|
55
|
+
|
|
56
|
+
- AI vision analysis
|
|
57
|
+
- Voice dictation + transcription
|
|
58
|
+
- Recording sessions + visual regression
|
|
59
|
+
- Auto-redaction of secrets/PII
|
|
60
|
+
- Usage analytics sync
|
|
61
|
+
|
|
62
|
+
## CLI Commands
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
superbased Start headless server (default)
|
|
66
|
+
superbased serve Start server with options (--port N)
|
|
67
|
+
superbased auth login Sign in via browser
|
|
68
|
+
superbased auth status Show authentication state
|
|
69
|
+
superbased auth logout Clear stored token
|
|
70
|
+
superbased capture Take a fullscreen screenshot
|
|
71
|
+
superbased --version Show version
|
|
72
|
+
superbased --help Show all commands
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Desktop App
|
|
76
|
+
|
|
77
|
+
Want the full GUI? Download the desktop app from [superbased.app/download](https://superbased.app/download). Everything carries over automatically — captures, settings, auth, presets, recordings. Zero migration.
|
|
78
|
+
|
|
79
|
+
## Links
|
|
80
|
+
|
|
81
|
+
- [Website](https://superbased.app)
|
|
82
|
+
- [Setup Guide](https://superbased.app/setup)
|
|
83
|
+
- [GitHub](https://github.com/marmutapp/superbased)
|
|
84
|
+
- [Issues](https://github.com/marmutapp/superbased-issues)
|
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
# SuperBased — AI Screenshot Tool for Developers
|
|
2
|
+
|
|
3
|
+
SuperBased is a desktop screenshot + AI tool. You can control it via MCP tools to capture screenshots, view them inline, run AI analysis, extract text, redact secrets, dictate, record sessions, run visual regression tests, and compress text — all programmatically from your coding environment.
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
### 1. Make sure SuperBased is running
|
|
8
|
+
The desktop app must be running for the MCP tools to work. It starts an HTTP API on `http://127.0.0.1:47592` automatically.
|
|
9
|
+
|
|
10
|
+
### 2. Add MCP server to Claude Code
|
|
11
|
+
Create `.mcp.json` in your project root:
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"mcpServers": {
|
|
16
|
+
"superbased": {
|
|
17
|
+
"command": "node",
|
|
18
|
+
"args": ["/path/to/superbased/mcp-server/dist/index.js"]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Check `~/.superbased/superbased-mcp.json` for the correct path after starting SuperBased. Restart Claude Code after creating the file.
|
|
25
|
+
|
|
26
|
+
### 3. Verify connection
|
|
27
|
+
Ask: "Check the SuperBased health status" — Claude should call `superbased_health` and show version, uptime, and features.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Tools Reference
|
|
32
|
+
|
|
33
|
+
### Capture & View
|
|
34
|
+
|
|
35
|
+
#### superbased_capture
|
|
36
|
+
Take a screenshot. Returns capture ID and metadata (no image inline — use `superbased_capture_image` to see the image).
|
|
37
|
+
|
|
38
|
+
| Parameter | Type | Description |
|
|
39
|
+
|-----------|------|-------------|
|
|
40
|
+
| `mode` | `fullscreen` / `region` / `active_window` | What to capture |
|
|
41
|
+
| `x`, `y`, `width`, `height` | number | Coordinates for region mode |
|
|
42
|
+
| `projectDir` | string | Where to save (default: CWD) |
|
|
43
|
+
|
|
44
|
+
#### superbased_capture_image
|
|
45
|
+
Capture screen and return the **image inline** so you can see it. Supports resolution control for token efficiency and window targeting.
|
|
46
|
+
|
|
47
|
+
| Parameter | Type | Description |
|
|
48
|
+
|-----------|------|-------------|
|
|
49
|
+
| `mode` | `fullscreen` / `region` / `active_window` | Capture mode (default: fullscreen) |
|
|
50
|
+
| `resolution` | `full` / `high` / `half` / `quarter` / `thumbnail` | Image resolution (default: half — saves ~4x tokens vs full) |
|
|
51
|
+
| `window` | string | Capture a specific window by name substring |
|
|
52
|
+
| `x`, `y`, `width`, `height` | number | For region mode |
|
|
53
|
+
|
|
54
|
+
**Token savings**: A 1920x1080 screenshot at `full` = ~2,765 tokens. At `half` = ~691 tokens. At `quarter` = ~173 tokens.
|
|
55
|
+
|
|
56
|
+
#### superbased_gallery_image
|
|
57
|
+
Retrieve a saved capture's image inline from the gallery.
|
|
58
|
+
|
|
59
|
+
| Parameter | Type | Description |
|
|
60
|
+
|-----------|------|-------------|
|
|
61
|
+
| `captureId` | number | Gallery capture ID |
|
|
62
|
+
| `resolution` | `full` / `high` / `half` / `quarter` / `thumbnail` | Image resolution (default: half) |
|
|
63
|
+
|
|
64
|
+
#### superbased_window_list
|
|
65
|
+
List all visible windows on screen. Use this to find window names for targeted capture.
|
|
66
|
+
|
|
67
|
+
Returns: list of windows with names and active status.
|
|
68
|
+
|
|
69
|
+
### AI & OCR
|
|
70
|
+
|
|
71
|
+
#### superbased_ai
|
|
72
|
+
Send a screenshot to AI for analysis. If no image provided, captures the screen automatically.
|
|
73
|
+
|
|
74
|
+
| Parameter | Type | Description |
|
|
75
|
+
|-----------|------|-------------|
|
|
76
|
+
| `instruction` | string | What to do. Slash commands: `/extract`, `/summarize`, `/code`, `/explain`, `/translate`, `/table`, `/edit`, `/reformat` |
|
|
77
|
+
| `captureId` | number | Use an existing capture from gallery |
|
|
78
|
+
| `screenshotPath` | string | Path to an image file |
|
|
79
|
+
| `projectDir` | string | For auto-captures |
|
|
80
|
+
|
|
81
|
+
#### superbased_ocr
|
|
82
|
+
Extract text from a screenshot using Tesseract OCR (runs locally — no data leaves your machine).
|
|
83
|
+
|
|
84
|
+
| Parameter | Type | Description |
|
|
85
|
+
|-----------|------|-------------|
|
|
86
|
+
| `screenshotPath` | string | Path to image file |
|
|
87
|
+
| `captureId` | number | Use an existing capture |
|
|
88
|
+
|
|
89
|
+
#### superbased_ai_usage
|
|
90
|
+
Check your daily AI quota (used/remaining/limit). Requires sign-in.
|
|
91
|
+
|
|
92
|
+
#### superbased_transcribe
|
|
93
|
+
Transcribe an audio file to text via Whisper.
|
|
94
|
+
|
|
95
|
+
| Parameter | Type | Description |
|
|
96
|
+
|-----------|------|-------------|
|
|
97
|
+
| `audioPath` | string | Path to audio file (wav, mp3, webm) |
|
|
98
|
+
| `audioBase64` | string | Base64-encoded audio data |
|
|
99
|
+
| `language` | string | BCP 47 language code (e.g. en-US) |
|
|
100
|
+
|
|
101
|
+
#### superbased_compress_text
|
|
102
|
+
Convert text to token-efficient images using the Token Compression Engine.
|
|
103
|
+
|
|
104
|
+
| Parameter | Type | Description |
|
|
105
|
+
|-----------|------|-------------|
|
|
106
|
+
| `text` | string | Text to compress |
|
|
107
|
+
| `preset` | `compact` / `standard` / `tall` / `wide` / `full` / `auto` | Resolution preset |
|
|
108
|
+
| `columns` | `auto` / `1` / `2` / `3` | Column layout |
|
|
109
|
+
| `theme` | `dark` / `light` / `terminal` / `high-contrast` / `paper` | Visual theme |
|
|
110
|
+
| `render_style` | `auto` / `code` / `document` / `terminal` | Rendering style |
|
|
111
|
+
|
|
112
|
+
### Gallery
|
|
113
|
+
|
|
114
|
+
#### superbased_gallery
|
|
115
|
+
Browse and search the capture gallery.
|
|
116
|
+
|
|
117
|
+
| Parameter | Type | Description |
|
|
118
|
+
|-----------|------|-------------|
|
|
119
|
+
| `action` | `list` / `get` / `search` / `stats` | What to do |
|
|
120
|
+
| `captureId` | number | For `get` action |
|
|
121
|
+
| `query` | string | For `search` action (full-text) |
|
|
122
|
+
| `limit` | number | Max results (default 20) |
|
|
123
|
+
|
|
124
|
+
#### superbased_gallery_update
|
|
125
|
+
Update tags or notes on a capture.
|
|
126
|
+
|
|
127
|
+
| Parameter | Type | Description |
|
|
128
|
+
|-----------|------|-------------|
|
|
129
|
+
| `captureId` | number | Capture to update |
|
|
130
|
+
| `tags` | string | Comma-separated tags |
|
|
131
|
+
| `notes` | string | Notes text |
|
|
132
|
+
|
|
133
|
+
### Privacy & Security
|
|
134
|
+
|
|
135
|
+
#### superbased_redact
|
|
136
|
+
Auto-redact secrets (API keys, tokens, passwords) and PII (emails, phone numbers) from captures.
|
|
137
|
+
|
|
138
|
+
| Parameter | Type | Description |
|
|
139
|
+
|-----------|------|-------------|
|
|
140
|
+
| `captureId` | number | Capture to redact |
|
|
141
|
+
| `screenshotPath` | string | Path to image file |
|
|
142
|
+
| `secrets` | boolean | Redact API keys, tokens (default: true) |
|
|
143
|
+
| `pii` | boolean | Redact emails, phones, names (default: false) |
|
|
144
|
+
|
|
145
|
+
Returns the redacted image inline + list of regions found.
|
|
146
|
+
|
|
147
|
+
### Annotations
|
|
148
|
+
|
|
149
|
+
#### superbased_annotate
|
|
150
|
+
Add programmatic annotations to captures (rectangles, highlights, blur, text labels, arrows).
|
|
151
|
+
|
|
152
|
+
| Parameter | Type | Description |
|
|
153
|
+
|-----------|------|-------------|
|
|
154
|
+
| `captureId` | number | Capture to annotate |
|
|
155
|
+
| `annotations` | array | Annotation objects (see below) |
|
|
156
|
+
| `save` | boolean | Save over the original (default: false) |
|
|
157
|
+
|
|
158
|
+
Annotation types:
|
|
159
|
+
- `rectangle`: bounding box outline (x, y, width, height, color)
|
|
160
|
+
- `highlight`: semi-transparent overlay (x, y, width, height, color)
|
|
161
|
+
- `blur`: pixelate a region (x, y, width, height)
|
|
162
|
+
- `text`: text label (x, y, text, color, fontSize)
|
|
163
|
+
- `arrow`: arrow from one point to another (x, y, toX, toY, color)
|
|
164
|
+
|
|
165
|
+
### Dictation & Voice
|
|
166
|
+
|
|
167
|
+
#### superbased_dictate
|
|
168
|
+
Transcribe audio with text cleanup (filler word removal, deduplication).
|
|
169
|
+
|
|
170
|
+
| Parameter | Type | Description |
|
|
171
|
+
|-----------|------|-------------|
|
|
172
|
+
| `audioPath` | string | Path to audio file |
|
|
173
|
+
| `audioBase64` | string | Base64-encoded audio |
|
|
174
|
+
| `language` | string | BCP 47 language code |
|
|
175
|
+
| `cleanup` | boolean | Apply filler removal + dedup (default: true) |
|
|
176
|
+
|
|
177
|
+
#### superbased_dictation_history
|
|
178
|
+
Query past voice transcriptions.
|
|
179
|
+
|
|
180
|
+
| Parameter | Type | Description |
|
|
181
|
+
|-----------|------|-------------|
|
|
182
|
+
| `limit` | number | Max entries to return (default: 20) |
|
|
183
|
+
|
|
184
|
+
### Recording & Visual QA
|
|
185
|
+
|
|
186
|
+
#### superbased_recording
|
|
187
|
+
Control automated screenshot recording sessions.
|
|
188
|
+
|
|
189
|
+
| Parameter | Type | Description |
|
|
190
|
+
|-----------|------|-------------|
|
|
191
|
+
| `action` | `start` / `stop` / `pause` / `resume` / `status` / `capture` | Recording action |
|
|
192
|
+
| `name` | string | Session name |
|
|
193
|
+
| `profile` | `automated_test` / `bug_report` / `user_journey` / `compliance` | Recording profile |
|
|
194
|
+
| `targetApp` | string | Process name to scope to |
|
|
195
|
+
|
|
196
|
+
#### superbased_sessions
|
|
197
|
+
List past recording sessions and their frames.
|
|
198
|
+
|
|
199
|
+
| Parameter | Type | Description |
|
|
200
|
+
|-----------|------|-------------|
|
|
201
|
+
| `action` | `list` / `frames` | What to do |
|
|
202
|
+
| `sessionId` | string | For `frames` action |
|
|
203
|
+
|
|
204
|
+
#### superbased_describe_frames
|
|
205
|
+
AI-describe each frame in a recording session (what's visible, UI state, changes).
|
|
206
|
+
|
|
207
|
+
| Parameter | Type | Description |
|
|
208
|
+
|-----------|------|-------------|
|
|
209
|
+
| `sessionId` | string | Recording session ID |
|
|
210
|
+
| `limit` | number | Max frames to describe (default: 20) |
|
|
211
|
+
|
|
212
|
+
#### superbased_narrate
|
|
213
|
+
Generate a prose narrative summary of a recording session from frame descriptions.
|
|
214
|
+
|
|
215
|
+
| Parameter | Type | Description |
|
|
216
|
+
|-----------|------|-------------|
|
|
217
|
+
| `sessionId` | string | Recording session ID |
|
|
218
|
+
| `descriptions` | array | Frame descriptions from `superbased_describe_frames` |
|
|
219
|
+
|
|
220
|
+
#### superbased_diff
|
|
221
|
+
Compare two recording sessions for visual differences (visual regression testing).
|
|
222
|
+
|
|
223
|
+
| Parameter | Type | Description |
|
|
224
|
+
|-----------|------|-------------|
|
|
225
|
+
| `baselineSessionId` | string | Baseline session ID |
|
|
226
|
+
| `currentSessionId` | string | Current session ID |
|
|
227
|
+
|
|
228
|
+
#### superbased_baseline
|
|
229
|
+
Manage workflow baselines for visual regression testing.
|
|
230
|
+
|
|
231
|
+
| Parameter | Type | Description |
|
|
232
|
+
|-----------|------|-------------|
|
|
233
|
+
| `action` | `set` / `get` / `history` | Baseline action |
|
|
234
|
+
| `workflowName` | string | Workflow name (e.g. "checkout-flow") |
|
|
235
|
+
| `sessionId` | string | Session ID (for set action) |
|
|
236
|
+
|
|
237
|
+
#### superbased_export
|
|
238
|
+
Export a recording session in various formats.
|
|
239
|
+
|
|
240
|
+
| Parameter | Type | Description |
|
|
241
|
+
|-----------|------|-------------|
|
|
242
|
+
| `sessionId` | string | Session to export |
|
|
243
|
+
| `format` | `zip` / `markdown` / `pdf` / `html` / `gif` | Export format |
|
|
244
|
+
|
|
245
|
+
### Settings & Config
|
|
246
|
+
|
|
247
|
+
#### superbased_settings
|
|
248
|
+
View or update app settings. API keys are never exposed.
|
|
249
|
+
|
|
250
|
+
| Parameter | Type | Description |
|
|
251
|
+
|-----------|------|-------------|
|
|
252
|
+
| `action` | `get` / `set` / `get_provider` | What to do |
|
|
253
|
+
| `key` | string | Setting key for `set` |
|
|
254
|
+
| `value` | string | New value for `set` |
|
|
255
|
+
|
|
256
|
+
#### superbased_presets
|
|
257
|
+
Manage AI instruction presets (saved templates).
|
|
258
|
+
|
|
259
|
+
| Parameter | Type | Description |
|
|
260
|
+
|-----------|------|-------------|
|
|
261
|
+
| `action` | `list` / `create` / `update` / `delete` | What to do |
|
|
262
|
+
| `name` | string | Preset name |
|
|
263
|
+
| `instruction` | string | AI instruction template |
|
|
264
|
+
| `id` | number | Preset ID (for update/delete) |
|
|
265
|
+
|
|
266
|
+
### Status & Auth
|
|
267
|
+
|
|
268
|
+
#### superbased_health
|
|
269
|
+
Check if SuperBased is running and what features are available.
|
|
270
|
+
|
|
271
|
+
#### superbased_auth
|
|
272
|
+
Check authentication status (email, plan, authenticated).
|
|
273
|
+
|
|
274
|
+
#### superbased_license
|
|
275
|
+
View plan limits, feature gates, and device info.
|
|
276
|
+
|
|
277
|
+
#### superbased_clipboard
|
|
278
|
+
Read or write system clipboard.
|
|
279
|
+
|
|
280
|
+
| Parameter | Type | Description |
|
|
281
|
+
|-----------|------|-------------|
|
|
282
|
+
| `action` | `read` / `write` / `readImage` | Clipboard action |
|
|
283
|
+
| `text` | string | Text to write (for write action) |
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
## Common Workflows
|
|
288
|
+
|
|
289
|
+
### See what's on screen
|
|
290
|
+
```
|
|
291
|
+
superbased_capture_image mode=fullscreen resolution=half
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
### Capture a specific window (saves tokens)
|
|
295
|
+
```
|
|
296
|
+
1. superbased_window_list → find the window name
|
|
297
|
+
2. superbased_capture_image window="VS Code" resolution=quarter
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
### Screenshot and extract text
|
|
301
|
+
```
|
|
302
|
+
1. superbased_capture mode=fullscreen
|
|
303
|
+
2. superbased_ocr captureId=<id from step 1>
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
### Quick text extraction (one step)
|
|
307
|
+
```
|
|
308
|
+
superbased_ai instruction="/extract"
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
### Capture, redact secrets, then share
|
|
312
|
+
```
|
|
313
|
+
1. superbased_capture mode=fullscreen
|
|
314
|
+
2. superbased_redact captureId=<id> secrets=true pii=true
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
### Visual regression testing
|
|
318
|
+
```
|
|
319
|
+
1. superbased_recording action=start name="Before: login flow" profile=automated_test
|
|
320
|
+
2. (navigate through the login UI)
|
|
321
|
+
3. superbased_recording action=stop
|
|
322
|
+
4. superbased_baseline action=set workflowName="login-flow" sessionId=<id>
|
|
323
|
+
5. (make code changes)
|
|
324
|
+
6. superbased_recording action=start name="After: login flow" profile=automated_test
|
|
325
|
+
7. (navigate through the same flow)
|
|
326
|
+
8. superbased_recording action=stop
|
|
327
|
+
9. superbased_diff baselineSessionId=<baseline> currentSessionId=<after>
|
|
328
|
+
10. superbased_describe_frames sessionId=<after>
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
### Annotate a capture for a bug report
|
|
332
|
+
```
|
|
333
|
+
1. superbased_capture_image mode=fullscreen resolution=half
|
|
334
|
+
2. superbased_annotate captureId=<id> annotations=[{type:"rectangle", x:100, y:200, width:300, height:50, color:"#ff0000"}, {type:"text", x:100, y:190, text:"Bug: button is misaligned"}] save=true
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
### Compress large text for token savings
|
|
338
|
+
```
|
|
339
|
+
superbased_compress_text text="<large text content>" preset=compact theme=dark
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
## Tips
|
|
343
|
+
|
|
344
|
+
- **Use `resolution=half` or `quarter`** to save tokens when you don't need full detail
|
|
345
|
+
- **Use `window` param** to capture just the window you care about — much smaller image
|
|
346
|
+
- **The `/extract` slash command** is the fastest way to get text from screen
|
|
347
|
+
- **Captures are saved to your project** when `projectDir` is set (automatic in Claude Code)
|
|
348
|
+
- **Gallery persists across sessions** — search for past captures anytime
|
|
349
|
+
- **OCR is local** (Tesseract) — no data leaves your machine for text extraction
|
|
350
|
+
- **Redact before sharing** — use `superbased_redact` to remove API keys and PII
|
|
351
|
+
- **Visual QA workflow**: record → change → record → diff → report
|
|
352
|
+
|
|
353
|
+
## Troubleshooting
|
|
354
|
+
|
|
355
|
+
- **"Cannot connect to SuperBased"** — Make sure the desktop app is running
|
|
356
|
+
- **"Authentication required"** — Sign in via SuperBased app, or run `superbased_auth`
|
|
357
|
+
- **Recording tools return errors** — Enable recording in SuperBased Settings > Recording
|
|
358
|
+
- **Check app status**: Use `superbased_health` or check `~/.superbased/mcp.json`
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface AIProxyRequest {
|
|
2
|
+
imagesBase64: string[];
|
|
3
|
+
instruction: string;
|
|
4
|
+
conversationHistory?: {
|
|
5
|
+
role: 'user' | 'assistant';
|
|
6
|
+
content: string;
|
|
7
|
+
}[];
|
|
8
|
+
source?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Streams AI chat responses from the backend proxy.
|
|
12
|
+
* Same AsyncGenerator<string> interface as the old local orchestrator — drop-in replacement.
|
|
13
|
+
*/
|
|
14
|
+
export declare function streamAIFromBackend(request: AIProxyRequest): AsyncGenerator<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Transcribes audio via the backend proxy (OpenAI Whisper).
|
|
17
|
+
*/
|
|
18
|
+
export declare function transcribeViaBackend(audioBase64: string, language?: string, source?: string): Promise<string>;
|
|
19
|
+
export interface ActivePromo {
|
|
20
|
+
code: string;
|
|
21
|
+
dailyAiLimit: number;
|
|
22
|
+
expiresAt: string;
|
|
23
|
+
daysRemaining: number;
|
|
24
|
+
}
|
|
25
|
+
export interface AIUsageResponse {
|
|
26
|
+
used: number;
|
|
27
|
+
limit: number;
|
|
28
|
+
plan: string;
|
|
29
|
+
resetsAt: string;
|
|
30
|
+
activePromo?: ActivePromo;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Fetches the user's current daily AI usage.
|
|
34
|
+
*/
|
|
35
|
+
export declare function getAIUsage(): Promise<AIUsageResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Redeems a promo code for the current user. Returns the new redemption details
|
|
38
|
+
* on success, or throws with a user-friendly message on failure.
|
|
39
|
+
*/
|
|
40
|
+
export declare function redeemPromoCode(code: string): Promise<{
|
|
41
|
+
code: string;
|
|
42
|
+
dailyAiLimit: number;
|
|
43
|
+
expiresAt: string;
|
|
44
|
+
}>;
|
|
45
|
+
//# sourceMappingURL=ai-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-client.d.ts","sourceRoot":"","sources":["../../../electron/ai/ai-client.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACxE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,wBAAuB,mBAAmB,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc,CAAC,MAAM,CAAC,CA6F1F;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmCnH;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,eAAe,CAAC,CAsB3D;AAED;;;GAGG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC,CAmCD"}
|