agent-orchestrator-mcp-server 0.1.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/README.md +172 -0
- package/build/index.integration-with-mock.js +36 -0
- package/build/index.js +98 -0
- package/package.json +49 -0
- package/shared/index.d.ts +7 -0
- package/shared/index.js +8 -0
- package/shared/logging.d.ts +20 -0
- package/shared/logging.js +34 -0
- package/shared/orchestrator-client/orchestrator-client.d.ts +109 -0
- package/shared/orchestrator-client/orchestrator-client.integration-mock.d.ts +20 -0
- package/shared/orchestrator-client/orchestrator-client.integration-mock.js +373 -0
- package/shared/orchestrator-client/orchestrator-client.js +166 -0
- package/shared/resources.d.ts +3 -0
- package/shared/resources.js +67 -0
- package/shared/server.d.ts +31 -0
- package/shared/server.js +34 -0
- package/shared/tools/action-session.d.ts +55 -0
- package/shared/tools/action-session.js +182 -0
- package/shared/tools/get-session.d.ts +95 -0
- package/shared/tools/get-session.js +271 -0
- package/shared/tools/search-sessions.d.ts +92 -0
- package/shared/tools/search-sessions.js +201 -0
- package/shared/tools/start-session.d.ts +119 -0
- package/shared/tools/start-session.js +146 -0
- package/shared/tools.d.ts +29 -0
- package/shared/tools.js +88 -0
- package/shared/types.d.ts +155 -0
- package/shared/types.js +4 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Orchestrator API Types
|
|
3
|
+
*/
|
|
4
|
+
export type SessionStatus = 'waiting' | 'running' | 'needs_input' | 'failed' | 'archived';
|
|
5
|
+
export type LogLevel = 'info' | 'error' | 'debug' | 'warning' | 'verbose';
|
|
6
|
+
export type SubagentStatus = 'running' | 'completed' | 'failed';
|
|
7
|
+
export interface Pagination {
|
|
8
|
+
page: number;
|
|
9
|
+
per_page: number;
|
|
10
|
+
total_count: number;
|
|
11
|
+
total_pages: number;
|
|
12
|
+
}
|
|
13
|
+
export interface Session {
|
|
14
|
+
id: number;
|
|
15
|
+
slug: string | null;
|
|
16
|
+
title: string;
|
|
17
|
+
status: SessionStatus;
|
|
18
|
+
agent_type: string;
|
|
19
|
+
prompt: string | null;
|
|
20
|
+
git_root: string | null;
|
|
21
|
+
branch: string | null;
|
|
22
|
+
subdirectory: string | null;
|
|
23
|
+
execution_provider: string;
|
|
24
|
+
stop_condition: string | null;
|
|
25
|
+
mcp_servers: string[];
|
|
26
|
+
config: Record<string, unknown>;
|
|
27
|
+
metadata: Record<string, unknown>;
|
|
28
|
+
custom_metadata: Record<string, unknown>;
|
|
29
|
+
session_id: string | null;
|
|
30
|
+
job_id: string | null;
|
|
31
|
+
running_job_id: string | null;
|
|
32
|
+
archived_at: string | null;
|
|
33
|
+
created_at: string;
|
|
34
|
+
updated_at: string;
|
|
35
|
+
transcript?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface Log {
|
|
38
|
+
id: number;
|
|
39
|
+
session_id: number;
|
|
40
|
+
content: string;
|
|
41
|
+
level: LogLevel;
|
|
42
|
+
created_at: string;
|
|
43
|
+
updated_at: string;
|
|
44
|
+
}
|
|
45
|
+
export interface SubagentTranscript {
|
|
46
|
+
id: number;
|
|
47
|
+
session_id: number;
|
|
48
|
+
agent_id: string;
|
|
49
|
+
tool_use_id: string | null;
|
|
50
|
+
transcript?: string;
|
|
51
|
+
filename: string | null;
|
|
52
|
+
message_count: number | null;
|
|
53
|
+
subagent_type: string | null;
|
|
54
|
+
description: string | null;
|
|
55
|
+
status: SubagentStatus | null;
|
|
56
|
+
duration_ms: number | null;
|
|
57
|
+
total_tokens: number | null;
|
|
58
|
+
tool_use_count: number | null;
|
|
59
|
+
formatted_duration: string | null;
|
|
60
|
+
formatted_tokens: string | null;
|
|
61
|
+
display_label: string | null;
|
|
62
|
+
created_at: string;
|
|
63
|
+
updated_at: string;
|
|
64
|
+
}
|
|
65
|
+
export interface SessionsResponse {
|
|
66
|
+
sessions: Session[];
|
|
67
|
+
pagination: Pagination;
|
|
68
|
+
}
|
|
69
|
+
export interface SearchSessionsResponse {
|
|
70
|
+
query: string;
|
|
71
|
+
search_contents: boolean;
|
|
72
|
+
sessions: Session[];
|
|
73
|
+
pagination: Pagination;
|
|
74
|
+
}
|
|
75
|
+
export interface SessionResponse {
|
|
76
|
+
session: Session;
|
|
77
|
+
}
|
|
78
|
+
export interface SessionActionResponse {
|
|
79
|
+
session: Session;
|
|
80
|
+
message?: string;
|
|
81
|
+
}
|
|
82
|
+
export interface LogsResponse {
|
|
83
|
+
logs: Log[];
|
|
84
|
+
pagination: Pagination;
|
|
85
|
+
}
|
|
86
|
+
export interface LogResponse {
|
|
87
|
+
log: Log;
|
|
88
|
+
}
|
|
89
|
+
export interface SubagentTranscriptsResponse {
|
|
90
|
+
subagent_transcripts: SubagentTranscript[];
|
|
91
|
+
pagination: Pagination;
|
|
92
|
+
}
|
|
93
|
+
export interface SubagentTranscriptResponse {
|
|
94
|
+
subagent_transcript: SubagentTranscript;
|
|
95
|
+
}
|
|
96
|
+
export interface ApiError {
|
|
97
|
+
error: string;
|
|
98
|
+
message?: string;
|
|
99
|
+
messages?: string[];
|
|
100
|
+
}
|
|
101
|
+
export interface CreateSessionRequest {
|
|
102
|
+
agent_type?: string;
|
|
103
|
+
prompt?: string;
|
|
104
|
+
git_root?: string;
|
|
105
|
+
branch?: string;
|
|
106
|
+
subdirectory?: string;
|
|
107
|
+
title?: string;
|
|
108
|
+
slug?: string;
|
|
109
|
+
stop_condition?: string;
|
|
110
|
+
execution_provider?: string;
|
|
111
|
+
mcp_servers?: string[];
|
|
112
|
+
config?: Record<string, unknown>;
|
|
113
|
+
custom_metadata?: Record<string, unknown>;
|
|
114
|
+
}
|
|
115
|
+
export interface UpdateSessionRequest {
|
|
116
|
+
title?: string;
|
|
117
|
+
slug?: string;
|
|
118
|
+
stop_condition?: string;
|
|
119
|
+
custom_metadata?: Record<string, unknown>;
|
|
120
|
+
}
|
|
121
|
+
export interface CreateLogRequest {
|
|
122
|
+
content: string;
|
|
123
|
+
level: LogLevel;
|
|
124
|
+
}
|
|
125
|
+
export interface UpdateLogRequest {
|
|
126
|
+
content?: string;
|
|
127
|
+
level?: LogLevel;
|
|
128
|
+
}
|
|
129
|
+
export interface CreateSubagentTranscriptRequest {
|
|
130
|
+
agent_id: string;
|
|
131
|
+
tool_use_id?: string;
|
|
132
|
+
transcript?: string;
|
|
133
|
+
filename?: string;
|
|
134
|
+
message_count?: number;
|
|
135
|
+
subagent_type?: string;
|
|
136
|
+
description?: string;
|
|
137
|
+
status?: SubagentStatus;
|
|
138
|
+
duration_ms?: number;
|
|
139
|
+
total_tokens?: number;
|
|
140
|
+
tool_use_count?: number;
|
|
141
|
+
}
|
|
142
|
+
export interface UpdateSubagentTranscriptRequest {
|
|
143
|
+
agent_id?: string;
|
|
144
|
+
tool_use_id?: string;
|
|
145
|
+
transcript?: string;
|
|
146
|
+
filename?: string;
|
|
147
|
+
message_count?: number;
|
|
148
|
+
subagent_type?: string;
|
|
149
|
+
description?: string;
|
|
150
|
+
status?: SubagentStatus;
|
|
151
|
+
duration_ms?: number;
|
|
152
|
+
total_tokens?: number;
|
|
153
|
+
tool_use_count?: number;
|
|
154
|
+
}
|
|
155
|
+
//# sourceMappingURL=types.d.ts.map
|
package/shared/types.js
ADDED