apteva 0.4.57 → 0.7.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 +216 -54
- package/cli.js +35 -0
- package/install.js +92 -0
- package/package.json +12 -79
- package/LICENSE +0 -63
- package/bin/apteva.js +0 -196
- package/dist/ActivityPage.kxzzb4yc.js +0 -3
- package/dist/ApiDocsPage.zq998hbm.js +0 -4
- package/dist/App.55rea8mn.js +0 -61
- package/dist/App.5ywb23z4.js +0 -53
- package/dist/App.6thds120.js +0 -4
- package/dist/App.9tctxzqm.js +0 -8
- package/dist/App.a8r8ttaz.js +0 -4
- package/dist/App.agsv5bje.js +0 -4
- package/dist/App.cepapqmx.js +0 -4
- package/dist/App.dp041gb3.js +0 -221
- package/dist/App.fds72zb5.js +0 -4
- package/dist/App.fg9qj2dq.js +0 -4
- package/dist/App.ndfejbm9.js +0 -4
- package/dist/App.nxmfmq1h.js +0 -13
- package/dist/App.qdfyt8ba.js +0 -4
- package/dist/App.x2d0ygt6.js +0 -4
- package/dist/App.yt9p4nr3.js +0 -20
- package/dist/App.zn4mw16t.js +0 -1
- package/dist/ConnectionsPage.8r96ryw7.js +0 -3
- package/dist/McpPage.3cwh0gnd.js +0 -3
- package/dist/SettingsPage.ykgdh5ev.js +0 -3
- package/dist/SkillsPage.4np1s65b.js +0 -3
- package/dist/TasksPage.4g08t7p6.js +0 -3
- package/dist/TelemetryPage.72w9pwcp.js +0 -3
- package/dist/TestsPage.z4fk3r7r.js +0 -3
- package/dist/ThreadsPage.63tcajeh.js +0 -3
- package/dist/apteva-kit.css +0 -1
- package/dist/icon.png +0 -0
- package/dist/index.html +0 -16
- package/dist/styles.css +0 -1
- package/scripts/postinstall.mjs +0 -102
- package/src/auth/index.ts +0 -394
- package/src/auth/middleware.ts +0 -213
- package/src/binary.ts +0 -536
- package/src/channels/index.ts +0 -40
- package/src/channels/telegram.ts +0 -311
- package/src/crypto.ts +0 -301
- package/src/db-tests.ts +0 -174
- package/src/db.ts +0 -3133
- package/src/integrations/agentdojo.ts +0 -559
- package/src/integrations/composio.ts +0 -437
- package/src/integrations/index.ts +0 -87
- package/src/integrations/skillsmp.ts +0 -318
- package/src/mcp-client.ts +0 -605
- package/src/mcp-handler.ts +0 -394
- package/src/mcp-platform.ts +0 -2403
- package/src/openapi.ts +0 -2410
- package/src/providers.ts +0 -597
- package/src/routes/api/agent-utils.ts +0 -890
- package/src/routes/api/agents.ts +0 -916
- package/src/routes/api/api-keys.ts +0 -95
- package/src/routes/api/channels.ts +0 -182
- package/src/routes/api/helpers.ts +0 -12
- package/src/routes/api/integrations.ts +0 -639
- package/src/routes/api/mcp.ts +0 -574
- package/src/routes/api/meta-agent.ts +0 -195
- package/src/routes/api/projects.ts +0 -112
- package/src/routes/api/providers.ts +0 -424
- package/src/routes/api/skills.ts +0 -537
- package/src/routes/api/system.ts +0 -333
- package/src/routes/api/telemetry.ts +0 -203
- package/src/routes/api/tests.ts +0 -148
- package/src/routes/api/triggers.ts +0 -518
- package/src/routes/api/users.ts +0 -148
- package/src/routes/api/webhooks.ts +0 -171
- package/src/routes/api.ts +0 -53
- package/src/routes/auth.ts +0 -251
- package/src/routes/share.ts +0 -86
- package/src/routes/static.ts +0 -131
- package/src/server.ts +0 -642
- package/src/test-runner.ts +0 -598
- package/src/triggers/agentdojo.ts +0 -253
- package/src/triggers/composio.ts +0 -264
- package/src/triggers/index.ts +0 -71
- package/src/tui/AgentList.tsx +0 -145
- package/src/tui/App.tsx +0 -102
- package/src/tui/Login.tsx +0 -104
- package/src/tui/api.ts +0 -72
- package/src/tui/index.tsx +0 -7
- package/src/web/App.tsx +0 -455
- package/src/web/components/activity/ActivityPage.tsx +0 -314
- package/src/web/components/activity/index.ts +0 -1
- package/src/web/components/agents/AgentCard.tsx +0 -189
- package/src/web/components/agents/AgentPanel.tsx +0 -2244
- package/src/web/components/agents/AgentsView.tsx +0 -180
- package/src/web/components/agents/CreateAgentModal.tsx +0 -475
- package/src/web/components/agents/index.ts +0 -4
- package/src/web/components/api/ApiDocsPage.tsx +0 -842
- package/src/web/components/auth/CreateAccountStep.tsx +0 -176
- package/src/web/components/auth/LoginPage.tsx +0 -91
- package/src/web/components/auth/index.ts +0 -2
- package/src/web/components/common/Icons.tsx +0 -250
- package/src/web/components/common/LoadingSpinner.tsx +0 -44
- package/src/web/components/common/Modal.tsx +0 -199
- package/src/web/components/common/Select.tsx +0 -97
- package/src/web/components/common/index.ts +0 -20
- package/src/web/components/connections/ConnectionsPage.tsx +0 -54
- package/src/web/components/connections/IntegrationsTab.tsx +0 -170
- package/src/web/components/connections/OverviewTab.tsx +0 -137
- package/src/web/components/connections/TriggersTab.tsx +0 -1346
- package/src/web/components/dashboard/Dashboard.tsx +0 -572
- package/src/web/components/dashboard/index.ts +0 -1
- package/src/web/components/index.ts +0 -21
- package/src/web/components/layout/ErrorBanner.tsx +0 -18
- package/src/web/components/layout/Header.tsx +0 -332
- package/src/web/components/layout/Sidebar.tsx +0 -231
- package/src/web/components/layout/index.ts +0 -3
- package/src/web/components/mcp/IntegrationsPanel.tsx +0 -857
- package/src/web/components/mcp/McpPage.tsx +0 -2515
- package/src/web/components/mcp/index.ts +0 -1
- package/src/web/components/meta-agent/MetaAgent.tsx +0 -245
- package/src/web/components/onboarding/OnboardingWizard.tsx +0 -404
- package/src/web/components/onboarding/index.ts +0 -1
- package/src/web/components/settings/SettingsPage.tsx +0 -2776
- package/src/web/components/settings/index.ts +0 -1
- package/src/web/components/skills/SkillsPage.tsx +0 -1200
- package/src/web/components/tasks/TasksPage.tsx +0 -1116
- package/src/web/components/tasks/index.ts +0 -1
- package/src/web/components/telemetry/TelemetryPage.tsx +0 -1129
- package/src/web/components/tests/TestsPage.tsx +0 -594
- package/src/web/components/threads/ThreadsPage.tsx +0 -315
- package/src/web/context/AuthContext.tsx +0 -242
- package/src/web/context/ProjectContext.tsx +0 -214
- package/src/web/context/TelemetryContext.tsx +0 -299
- package/src/web/context/ThemeContext.tsx +0 -90
- package/src/web/context/UIModeContext.tsx +0 -49
- package/src/web/context/index.ts +0 -12
- package/src/web/hooks/index.ts +0 -3
- package/src/web/hooks/useAgents.ts +0 -115
- package/src/web/hooks/useOnboarding.ts +0 -20
- package/src/web/hooks/useProviders.ts +0 -75
- package/src/web/icon.png +0 -0
- package/src/web/index.html +0 -16
- package/src/web/styles.css +0 -118
- package/src/web/themes.ts +0 -162
- package/src/web/types.ts +0 -298
package/src/web/types.ts
DELETED
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
// Shared types for the Apteva UI
|
|
2
|
-
|
|
3
|
-
export interface MultiAgentConfig {
|
|
4
|
-
enabled: boolean;
|
|
5
|
-
group?: string; // Defaults to projectId if not specified
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface AgentBuiltinTools {
|
|
9
|
-
webSearch: boolean;
|
|
10
|
-
webFetch: boolean;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface OperatorConfig {
|
|
14
|
-
enabled: boolean;
|
|
15
|
-
browser_provider?: string; // "browserengine" | "browserbase" | "steel" | "cdp"
|
|
16
|
-
display_width?: number;
|
|
17
|
-
display_height?: number;
|
|
18
|
-
max_actions_per_turn?: number;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface RealtimeConfig {
|
|
22
|
-
enabled: boolean;
|
|
23
|
-
provider?: "openai" | "gemini" | "standard"; // Voice mode
|
|
24
|
-
model?: string; // OpenAI realtime model
|
|
25
|
-
voice?: string; // OpenAI voice (alloy, ash, ballad, coral, sage, verse)
|
|
26
|
-
geminiModel?: string; // Gemini realtime model
|
|
27
|
-
geminiVoice?: string; // Gemini voice (Aoede, Charon, Fenrir, Kore, Puck)
|
|
28
|
-
vadType?: string; // "semantic_vad" | "server_vad"
|
|
29
|
-
googleSearch?: boolean; // Gemini: enable Google Search grounding
|
|
30
|
-
sttProvider?: string; // Standard mode: "elevenlabs" | "speaches" | "whisper_cpp" | etc.
|
|
31
|
-
sttModel?: string;
|
|
32
|
-
ttsProvider?: string; // Standard mode: "elevenlabs" | "kokoro" | "piper" | etc.
|
|
33
|
-
ttsModel?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// Realtime (native voice-to-voice) provider models and voices
|
|
37
|
-
export const REALTIME_PROVIDERS = {
|
|
38
|
-
openai: {
|
|
39
|
-
models: [
|
|
40
|
-
{ value: "gpt-realtime-1.5", label: "GPT Realtime 1.5 (Latest)", recommended: true },
|
|
41
|
-
{ value: "gpt-realtime", label: "GPT Realtime" },
|
|
42
|
-
{ value: "gpt-4o-realtime-preview", label: "GPT-4o Realtime Preview" },
|
|
43
|
-
],
|
|
44
|
-
voices: [
|
|
45
|
-
{ value: "alloy", label: "Alloy" },
|
|
46
|
-
{ value: "ash", label: "Ash" },
|
|
47
|
-
{ value: "ballad", label: "Ballad" },
|
|
48
|
-
{ value: "coral", label: "Coral" },
|
|
49
|
-
{ value: "marin", label: "Marin", recommended: true },
|
|
50
|
-
{ value: "sage", label: "Sage" },
|
|
51
|
-
{ value: "verse", label: "Verse" },
|
|
52
|
-
],
|
|
53
|
-
},
|
|
54
|
-
gemini: {
|
|
55
|
-
models: [
|
|
56
|
-
{ value: "models/gemini-2.5-flash-native-audio-preview-12-2025", label: "Gemini 2.5 Flash Audio", recommended: true },
|
|
57
|
-
],
|
|
58
|
-
voices: [
|
|
59
|
-
{ value: "Kore", label: "Kore", recommended: true },
|
|
60
|
-
{ value: "Puck", label: "Puck" },
|
|
61
|
-
{ value: "Charon", label: "Charon" },
|
|
62
|
-
{ value: "Aoede", label: "Aoede" },
|
|
63
|
-
{ value: "Fenrir", label: "Fenrir" },
|
|
64
|
-
],
|
|
65
|
-
},
|
|
66
|
-
} as const;
|
|
67
|
-
|
|
68
|
-
export interface AgentFeatures {
|
|
69
|
-
memory: boolean;
|
|
70
|
-
tasks: boolean;
|
|
71
|
-
vision: boolean;
|
|
72
|
-
operator: boolean | OperatorConfig; // Can be boolean for backwards compat or full config
|
|
73
|
-
mcp: boolean;
|
|
74
|
-
realtime: boolean | RealtimeConfig; // Can be boolean for backwards compat or full config
|
|
75
|
-
files: boolean;
|
|
76
|
-
agents: boolean | MultiAgentConfig; // Can be boolean for backwards compat or full config
|
|
77
|
-
builtinTools?: AgentBuiltinTools;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export const DEFAULT_FEATURES: AgentFeatures = {
|
|
81
|
-
memory: true,
|
|
82
|
-
tasks: false,
|
|
83
|
-
vision: true,
|
|
84
|
-
operator: false,
|
|
85
|
-
mcp: false,
|
|
86
|
-
realtime: false,
|
|
87
|
-
files: false,
|
|
88
|
-
agents: false,
|
|
89
|
-
builtinTools: { webSearch: false, webFetch: false },
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
// Helper to normalize operator feature to OperatorConfig
|
|
93
|
-
export function getOperatorConfig(features: AgentFeatures): OperatorConfig {
|
|
94
|
-
const op = features.operator;
|
|
95
|
-
if (typeof op === "boolean") {
|
|
96
|
-
return { enabled: op };
|
|
97
|
-
}
|
|
98
|
-
return op;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// Helper to normalize realtime feature to RealtimeConfig
|
|
102
|
-
export function getRealtimeConfig(features: AgentFeatures): RealtimeConfig {
|
|
103
|
-
const rt = features.realtime;
|
|
104
|
-
if (typeof rt === "boolean") {
|
|
105
|
-
return { enabled: rt };
|
|
106
|
-
}
|
|
107
|
-
return rt;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// Helper to check if realtime is enabled
|
|
111
|
-
export function isRealtimeEnabled(features: AgentFeatures): boolean {
|
|
112
|
-
if (typeof features.realtime === "boolean") return features.realtime;
|
|
113
|
-
return features.realtime.enabled;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// Helper to normalize agents feature to MultiAgentConfig
|
|
117
|
-
export function getMultiAgentConfig(features: AgentFeatures, projectId?: string | null): MultiAgentConfig {
|
|
118
|
-
const agents = features.agents;
|
|
119
|
-
if (typeof agents === "boolean") {
|
|
120
|
-
return {
|
|
121
|
-
enabled: agents,
|
|
122
|
-
group: projectId || undefined,
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
return {
|
|
126
|
-
...agents,
|
|
127
|
-
group: agents.group || projectId || undefined,
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export interface McpServerSummary {
|
|
132
|
-
id: string;
|
|
133
|
-
name: string;
|
|
134
|
-
type: string;
|
|
135
|
-
status: "stopped" | "running";
|
|
136
|
-
port: number | null;
|
|
137
|
-
url?: string | null; // For HTTP servers
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export interface SkillSummary {
|
|
141
|
-
id: string;
|
|
142
|
-
name: string;
|
|
143
|
-
description: string;
|
|
144
|
-
version: string;
|
|
145
|
-
enabled: boolean;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export interface Agent {
|
|
149
|
-
id: string;
|
|
150
|
-
name: string;
|
|
151
|
-
model: string;
|
|
152
|
-
provider: string;
|
|
153
|
-
systemPrompt: string;
|
|
154
|
-
status: "stopped" | "running";
|
|
155
|
-
port?: number;
|
|
156
|
-
features: AgentFeatures;
|
|
157
|
-
mcpServers: string[]; // Array of MCP server IDs
|
|
158
|
-
mcpServerDetails?: McpServerSummary[]; // Full details included from API
|
|
159
|
-
skills: string[]; // Array of Skill IDs
|
|
160
|
-
skillDetails?: SkillSummary[]; // Full details included from API
|
|
161
|
-
subscriptions?: { id: string; trigger_slug: string; enabled: boolean }[];
|
|
162
|
-
projectId: string | null; // Optional project grouping
|
|
163
|
-
createdAt: string;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export interface McpServer {
|
|
167
|
-
id: string;
|
|
168
|
-
name: string;
|
|
169
|
-
type: "npm" | "pip" | "github" | "http" | "custom";
|
|
170
|
-
package: string | null;
|
|
171
|
-
pip_module: string | null; // For pip type: module to run (e.g., "late.mcp")
|
|
172
|
-
command: string | null;
|
|
173
|
-
url: string | null;
|
|
174
|
-
headers: Record<string, string>;
|
|
175
|
-
port: number | null;
|
|
176
|
-
status: "stopped" | "running";
|
|
177
|
-
source: string | null; // "composio", "smithery", or null for local
|
|
178
|
-
project_id: string | null; // null = global, otherwise project-scoped
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
export interface McpTool {
|
|
182
|
-
name: string;
|
|
183
|
-
description?: string;
|
|
184
|
-
inputSchema: Record<string, unknown>;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export interface McpToolCallResult {
|
|
188
|
-
content: Array<{
|
|
189
|
-
type: "text" | "image" | "resource";
|
|
190
|
-
text?: string;
|
|
191
|
-
data?: string;
|
|
192
|
-
mimeType?: string;
|
|
193
|
-
}>;
|
|
194
|
-
isError?: boolean;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export interface ProviderModel {
|
|
198
|
-
value: string;
|
|
199
|
-
label: string;
|
|
200
|
-
recommended?: boolean;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
export interface Provider {
|
|
204
|
-
id: string;
|
|
205
|
-
name: string;
|
|
206
|
-
type: "llm" | "integration" | "browser" | "voice";
|
|
207
|
-
docsUrl: string;
|
|
208
|
-
description?: string;
|
|
209
|
-
models: ProviderModel[];
|
|
210
|
-
hasKey: boolean;
|
|
211
|
-
keyHint: string | null;
|
|
212
|
-
isValid: boolean | null;
|
|
213
|
-
configured?: boolean; // for backwards compatibility
|
|
214
|
-
isLocal?: boolean; // Uses URL instead of API key (ollama, local voice)
|
|
215
|
-
voiceSubtype?: "stt" | "tts" | "both"; // For voice providers
|
|
216
|
-
defaultBaseUrl?: string; // Default URL for local providers
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export interface OnboardingStatus {
|
|
220
|
-
completed: boolean;
|
|
221
|
-
providers_configured: string[];
|
|
222
|
-
has_any_keys: boolean;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export type Route = "dashboard" | "threads" | "agents" | "activity" | "tasks" | "connections" | "mcp" | "skills" | "tests" | "analytics" | "settings" | "api";
|
|
226
|
-
|
|
227
|
-
// Tool use content block in trajectory
|
|
228
|
-
export interface ToolUseBlock {
|
|
229
|
-
type: "tool_use";
|
|
230
|
-
id: string;
|
|
231
|
-
name: string;
|
|
232
|
-
input: Record<string, unknown>;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
// Tool result content block in trajectory
|
|
236
|
-
export interface ToolResultBlock {
|
|
237
|
-
type: "tool_result";
|
|
238
|
-
tool_use_id: string;
|
|
239
|
-
content: string;
|
|
240
|
-
is_error?: boolean;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
// Trajectory step from the agent API (chat message format)
|
|
244
|
-
export interface TaskTrajectoryStep {
|
|
245
|
-
id: string;
|
|
246
|
-
role: "user" | "assistant";
|
|
247
|
-
content: string | Array<ToolUseBlock | ToolResultBlock>;
|
|
248
|
-
created_at: string;
|
|
249
|
-
model?: string;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
export interface Task {
|
|
253
|
-
id: string;
|
|
254
|
-
title: string;
|
|
255
|
-
description?: string;
|
|
256
|
-
type: "once" | "recurring";
|
|
257
|
-
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
258
|
-
priority: number;
|
|
259
|
-
source: "local" | "delegated";
|
|
260
|
-
created_at: string;
|
|
261
|
-
execute_at?: string;
|
|
262
|
-
executed_at?: string;
|
|
263
|
-
completed_at?: string;
|
|
264
|
-
recurrence?: string;
|
|
265
|
-
next_run?: string;
|
|
266
|
-
result?: any;
|
|
267
|
-
error?: string;
|
|
268
|
-
trajectory?: TaskTrajectoryStep[];
|
|
269
|
-
agentId: string;
|
|
270
|
-
agentName: string;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
export interface DashboardStats {
|
|
274
|
-
agents: {
|
|
275
|
-
total: number;
|
|
276
|
-
running: number;
|
|
277
|
-
};
|
|
278
|
-
tasks: {
|
|
279
|
-
total: number;
|
|
280
|
-
pending: number;
|
|
281
|
-
running: number;
|
|
282
|
-
completed: number;
|
|
283
|
-
};
|
|
284
|
-
providers: {
|
|
285
|
-
configured: number;
|
|
286
|
-
};
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
export interface NewAgentForm {
|
|
290
|
-
name: string;
|
|
291
|
-
model: string;
|
|
292
|
-
provider: string;
|
|
293
|
-
systemPrompt: string;
|
|
294
|
-
features: AgentFeatures;
|
|
295
|
-
mcpServers: string[];
|
|
296
|
-
skills: string[];
|
|
297
|
-
projectId?: string | null;
|
|
298
|
-
}
|