mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-09 16:59:43 +02:00
- Add addSession() to SessionPort, replacing unsafe ReadonlyMap casts - Restore getLightSessionsState() 1s TTL cache for GET /api/sessions - Deduplicate AUTH_COOKIE_NAME, CASES_DIR, SETTINGS_PATH constants - Fix eslint no-require-imports error in system-routes.ts - Remove unused imports (homedir) from cleaned-up route modules Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
962 B
TypeScript
24 lines
962 B
TypeScript
/**
|
|
* @fileoverview Config port — capabilities for app configuration and settings.
|
|
* Route modules that read or modify configuration depend on this port.
|
|
*/
|
|
|
|
import type { ClaudeMode, NiceConfig } from '../../types.js';
|
|
import type { StateStore } from '../../state-store.js';
|
|
|
|
export interface ConfigPort {
|
|
readonly store: StateStore;
|
|
readonly port: number;
|
|
readonly https: boolean;
|
|
readonly testMode: boolean;
|
|
readonly serverStartTime: number;
|
|
getGlobalNiceConfig(): Promise<NiceConfig | undefined>;
|
|
getModelConfig(): Promise<{ defaultModel?: string; agentTypeOverrides?: Record<string, string> } | null>;
|
|
getClaudeModeConfig(): Promise<{ claudeMode?: ClaudeMode; allowedTools?: string }>;
|
|
getDefaultClaudeMdPath(): Promise<string | undefined>;
|
|
getLightState(): unknown;
|
|
getLightSessionsState(): unknown[];
|
|
startTranscriptWatcher(sessionId: string, transcriptPath: string): void;
|
|
stopTranscriptWatcher(sessionId: string): void;
|
|
}
|