feat(panel): Antigravity IDE & composer mount, modular preferences, session charts, and per-model context windows (v1.5.0)

This commit is contained in:
fish
2026-11-15 15:25:45 +09:00
parent 18c608ae63
commit ff2470481f
35 changed files with 2602 additions and 128 deletions
+17
View File
@@ -8,6 +8,7 @@
import { readFileSync, promises as fsPromises } from 'node:fs';
import { join } from 'node:path';
import { handleAccountCredentialAction } from './account-switch.mjs';
import {
HERE,
SETTINGS_FILE,
@@ -337,6 +338,16 @@ export async function executePluginUpdateAction() {
};
}
export async function executeAccountCredentialAction(data) {
const result = await handleAccountCredentialAction(data);
return {
status: 200,
contentType: 'application/json',
headers: { 'Cache-Control': 'no-store' },
body: JSON.stringify(result),
};
}
export async function dispatchBridgeApiRequest(pathname, method, data, opts = undefined) {
if (pathname === '/api/telemetry' && method === 'GET') {
return executeTelemetryAction(data, opts);
@@ -344,6 +355,12 @@ export async function dispatchBridgeApiRequest(pathname, method, data, opts = un
if (pathname === '/api/settings' && method === 'POST') {
return executeSettingsAction(data);
}
if (pathname === '/api/accounts' && method === 'GET') {
return executeAccountCredentialAction();
}
if (pathname === '/api/accounts/update' && method === 'POST') {
return executeAccountCredentialAction(data);
}
if (pathname === '/api/context-window' && method === 'POST') {
return executeModelContextWindowAction(data);
}