* Add Agent Manager * Basic Mock UP * Fix Comand naming Ctrl+P Uses Category to group * Move the UI in views * Agent Manager Landing Page * Fix attachment buig * Change Session Name for multi run to incoporate groupSlug * First running UI * Fix Max Model Multi Run * Rework Agent Group detection * ignore false positives with ' ' in it * Simplify Logic * remove unused dropdowns * Clean up * Update Changelog
36 lines
1.3 KiB
TypeScript
36 lines
1.3 KiB
TypeScript
import type { RuntimeAPIs, TerminalAPI, NotificationsAPI } from '@openchamber/ui/lib/api/types';
|
|
import { createVSCodeFilesAPI } from './files';
|
|
import { createVSCodeSettingsAPI } from './settings';
|
|
import { createVSCodePermissionsAPI } from './permissions';
|
|
import { createVSCodeToolsAPI } from './tools';
|
|
import { createVSCodeEditorAPI } from './editor';
|
|
import { createVSCodeGitAPI } from './git';
|
|
import { createVSCodeActionsAPI } from './vscode';
|
|
|
|
// Stub APIs return sensible defaults instead of throwing
|
|
const createStubTerminalAPI = (): TerminalAPI => ({
|
|
createSession: async () => ({ sessionId: '', cols: 80, rows: 24 }),
|
|
connect: () => ({ close: () => {} }),
|
|
sendInput: async () => {},
|
|
resize: async () => {},
|
|
close: async () => {},
|
|
});
|
|
|
|
const createStubNotificationsAPI = (): NotificationsAPI => ({
|
|
notifyAgentCompletion: async () => true,
|
|
canNotify: () => true,
|
|
});
|
|
|
|
export const createVSCodeAPIs = (): RuntimeAPIs => ({
|
|
runtime: { platform: 'vscode', isDesktop: false, isVSCode: true, label: 'VS Code Extension' },
|
|
terminal: createStubTerminalAPI(),
|
|
git: createVSCodeGitAPI(),
|
|
files: createVSCodeFilesAPI(),
|
|
settings: createVSCodeSettingsAPI(),
|
|
permissions: createVSCodePermissionsAPI(),
|
|
notifications: createStubNotificationsAPI(),
|
|
tools: createVSCodeToolsAPI(),
|
|
editor: createVSCodeEditorAPI(),
|
|
vscode: createVSCodeActionsAPI(),
|
|
});
|