aegis-bridge 2.6.2 → 2.6.3

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.
@@ -12,6 +12,51 @@
12
12
  * Issue #48: https://github.com/OneStepAt4time/aegis/issues/48
13
13
  */
14
14
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
15
+ import { type SessionInfo } from './session.js';
16
+ import { type SessionMetrics, type SessionLatency, type SessionLatencySummary } from './metrics.js';
17
+ import { type PipelineState, type BatchResult } from './pipeline.js';
18
+ interface ServerHealthResponse {
19
+ status: string;
20
+ version: string;
21
+ uptime: number;
22
+ sessions: {
23
+ active: number;
24
+ total: number;
25
+ };
26
+ tmux: {
27
+ healthy: boolean;
28
+ [key: string]: unknown;
29
+ };
30
+ timestamp: string;
31
+ }
32
+ interface CreateSessionResponse {
33
+ id: string;
34
+ windowName: string;
35
+ workDir: string;
36
+ status: string;
37
+ promptDelivery?: {
38
+ delivered: boolean;
39
+ attempts: number;
40
+ };
41
+ reused?: boolean;
42
+ [key: string]: unknown;
43
+ }
44
+ interface SendMessageResponse {
45
+ ok: boolean;
46
+ delivered: boolean;
47
+ attempts: number;
48
+ }
49
+ interface OkResponse {
50
+ ok: boolean;
51
+ }
52
+ interface CapturePaneResponse {
53
+ pane: string;
54
+ }
55
+ interface SessionLatencyResponse {
56
+ sessionId: string;
57
+ realtime: SessionLatency | null;
58
+ aggregated: SessionLatencySummary | null;
59
+ }
15
60
  export declare class AegisClient {
16
61
  private baseUrl;
17
62
  private authToken?;
@@ -21,40 +66,44 @@ export declare class AegisClient {
21
66
  listSessions(filter?: {
22
67
  status?: string;
23
68
  workDir?: string;
24
- }): Promise<any[]>;
25
- getSession(id: string): Promise<any>;
26
- getHealth(id: string): Promise<any>;
27
- getTranscript(id: string): Promise<any>;
28
- sendMessage(id: string, text: string): Promise<any>;
69
+ }): Promise<SessionInfo[]>;
70
+ getSession(id: string): Promise<Record<string, unknown>>;
71
+ getHealth(id: string): Promise<Record<string, unknown>>;
72
+ getTranscript(id: string): Promise<Record<string, unknown>>;
73
+ sendMessage(id: string, text: string): Promise<SendMessageResponse>;
29
74
  createSession(opts: {
30
75
  workDir: string;
31
76
  name?: string;
32
77
  prompt?: string;
33
- }): Promise<any>;
34
- killSession(id: string): Promise<any>;
35
- approvePermission(id: string): Promise<any>;
36
- rejectPermission(id: string): Promise<any>;
37
- getServerHealth(): Promise<any>;
38
- escapeSession(id: string): Promise<any>;
39
- interruptSession(id: string): Promise<any>;
40
- capturePane(id: string): Promise<any>;
41
- getSessionMetrics(id: string): Promise<any>;
42
- getSessionSummary(id: string): Promise<any>;
43
- sendBash(id: string, command: string): Promise<any>;
44
- sendCommand(id: string, command: string): Promise<any>;
45
- getSessionLatency(id: string): Promise<any>;
78
+ }): Promise<CreateSessionResponse>;
79
+ killSession(id: string): Promise<OkResponse>;
80
+ approvePermission(id: string): Promise<OkResponse>;
81
+ rejectPermission(id: string): Promise<OkResponse>;
82
+ getServerHealth(): Promise<ServerHealthResponse>;
83
+ escapeSession(id: string): Promise<OkResponse>;
84
+ interruptSession(id: string): Promise<OkResponse>;
85
+ capturePane(id: string): Promise<CapturePaneResponse>;
86
+ getSessionMetrics(id: string): Promise<SessionMetrics>;
87
+ getSessionSummary(id: string): Promise<Record<string, unknown>>;
88
+ sendBash(id: string, command: string): Promise<OkResponse>;
89
+ sendCommand(id: string, command: string): Promise<OkResponse>;
90
+ getSessionLatency(id: string): Promise<SessionLatencyResponse>;
46
91
  batchCreateSessions(sessions: Array<{
47
92
  workDir: string;
48
93
  name?: string;
49
94
  prompt?: string;
50
- }>): Promise<any>;
51
- listPipelines(): Promise<any>;
95
+ }>): Promise<BatchResult>;
96
+ listPipelines(): Promise<PipelineState[]>;
52
97
  createPipeline(config: {
53
98
  name: string;
54
99
  workDir: string;
55
- steps: any[];
56
- }): Promise<any>;
57
- getSwarm(): Promise<any>;
100
+ steps: Array<{
101
+ name?: string;
102
+ prompt: string;
103
+ }>;
104
+ }): Promise<PipelineState>;
105
+ getSwarm(): Promise<Record<string, unknown>>;
58
106
  }
59
107
  export declare function createMcpServer(aegisPort: number, authToken?: string): McpServer;
60
108
  export declare function startMcpServer(port: number, authToken?: string): Promise<void>;
109
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aegis-bridge",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "type": "module",
5
5
  "description": "Orchestrate Claude Code sessions via API. Create, brief, monitor, refine, ship.",
6
6
  "main": "dist/server.js",