apteva 0.2.1 → 0.2.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.
- package/dist/App.wfhmfhx7.js +213 -0
- package/dist/index.html +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/db.ts +43 -3
- package/src/routes/api.ts +12 -4
- package/src/routes/static.ts +2 -2
- package/src/server.ts +10 -2
- package/src/web/App.tsx +3 -0
- package/src/web/components/agents/AgentCard.tsx +28 -1
- package/src/web/components/agents/CreateAgentModal.tsx +46 -1
- package/src/web/components/common/Icons.tsx +50 -0
- package/src/web/components/common/index.ts +13 -1
- package/src/web/components/onboarding/OnboardingWizard.tsx +2 -2
- package/src/web/components/settings/SettingsPage.tsx +2 -2
- package/src/web/hooks/useAgents.ts +2 -1
- package/src/web/index.html +1 -1
- package/src/web/types.ts +20 -0
- package/dist/App.vsvrc987.js +0 -213
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
export { LoadingSpinner } from "./LoadingSpinner";
|
|
2
2
|
export { Modal } from "./Modal";
|
|
3
3
|
export { Select } from "./Select";
|
|
4
|
-
export {
|
|
4
|
+
export {
|
|
5
|
+
CheckIcon,
|
|
6
|
+
CloseIcon,
|
|
7
|
+
DashboardIcon,
|
|
8
|
+
AgentsIcon,
|
|
9
|
+
SettingsIcon,
|
|
10
|
+
MemoryIcon,
|
|
11
|
+
TasksIcon,
|
|
12
|
+
VisionIcon,
|
|
13
|
+
OperatorIcon,
|
|
14
|
+
McpIcon,
|
|
15
|
+
RealtimeIcon,
|
|
16
|
+
} from "./Icons";
|
|
@@ -223,7 +223,7 @@ function Step1AddKeys({
|
|
|
223
223
|
// Default view: show all providers
|
|
224
224
|
return (
|
|
225
225
|
<>
|
|
226
|
-
<h2 className="text-2xl font-semibold mb-2">Welcome to
|
|
226
|
+
<h2 className="text-2xl font-semibold mb-2">Welcome to apteva</h2>
|
|
227
227
|
<p className="text-[#666] mb-6">
|
|
228
228
|
To get started, you'll need to add at least one AI provider API key.
|
|
229
229
|
Your keys are encrypted and stored locally.
|
|
@@ -336,7 +336,7 @@ function Step2Complete({ configuredProviders, onAddMore, onComplete }: Step2Prop
|
|
|
336
336
|
onClick={onComplete}
|
|
337
337
|
className="flex-1 bg-[#f97316] hover:bg-[#fb923c] text-black px-4 py-3 rounded font-medium transition"
|
|
338
338
|
>
|
|
339
|
-
Start Using
|
|
339
|
+
Start Using apteva
|
|
340
340
|
</button>
|
|
341
341
|
</div>
|
|
342
342
|
</>
|
|
@@ -227,7 +227,7 @@ function UpdatesSettings() {
|
|
|
227
227
|
<div className="mb-6">
|
|
228
228
|
<h1 className="text-2xl font-semibold mb-1">Updates</h1>
|
|
229
229
|
<p className="text-[#666]">
|
|
230
|
-
Check for new versions of
|
|
230
|
+
Check for new versions of apteva.
|
|
231
231
|
</p>
|
|
232
232
|
</div>
|
|
233
233
|
|
|
@@ -258,7 +258,7 @@ function UpdatesSettings() {
|
|
|
258
258
|
Update available!
|
|
259
259
|
</div>
|
|
260
260
|
<p className="text-sm text-[#888] mb-3">
|
|
261
|
-
A new version of
|
|
261
|
+
A new version of apteva is available. Run this command to update:
|
|
262
262
|
</p>
|
|
263
263
|
<div className="flex items-center gap-2">
|
|
264
264
|
<code className="flex-1 bg-[#0a0a0a] px-3 py-2 rounded font-mono text-sm">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState, useEffect, useCallback } from "react";
|
|
2
|
-
import type { Agent } from "../types";
|
|
2
|
+
import type { Agent, AgentFeatures } from "../types";
|
|
3
3
|
|
|
4
4
|
export function useAgents(enabled: boolean) {
|
|
5
5
|
const [agents, setAgents] = useState<Agent[]>([]);
|
|
@@ -23,6 +23,7 @@ export function useAgents(enabled: boolean) {
|
|
|
23
23
|
model: string;
|
|
24
24
|
provider: string;
|
|
25
25
|
systemPrompt: string;
|
|
26
|
+
features: AgentFeatures;
|
|
26
27
|
}) => {
|
|
27
28
|
await fetch("/api/agents", {
|
|
28
29
|
method: "POST",
|
package/src/web/index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>
|
|
6
|
+
<title>apteva</title>
|
|
7
7
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
8
8
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
9
9
|
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
|
package/src/web/types.ts
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
// Shared types for the Apteva UI
|
|
2
2
|
|
|
3
|
+
export interface AgentFeatures {
|
|
4
|
+
memory: boolean;
|
|
5
|
+
tasks: boolean;
|
|
6
|
+
vision: boolean;
|
|
7
|
+
operator: boolean;
|
|
8
|
+
mcp: boolean;
|
|
9
|
+
realtime: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const DEFAULT_FEATURES: AgentFeatures = {
|
|
13
|
+
memory: true,
|
|
14
|
+
tasks: false,
|
|
15
|
+
vision: true,
|
|
16
|
+
operator: false,
|
|
17
|
+
mcp: false,
|
|
18
|
+
realtime: false,
|
|
19
|
+
};
|
|
20
|
+
|
|
3
21
|
export interface Agent {
|
|
4
22
|
id: string;
|
|
5
23
|
name: string;
|
|
@@ -8,6 +26,7 @@ export interface Agent {
|
|
|
8
26
|
systemPrompt: string;
|
|
9
27
|
status: "stopped" | "running";
|
|
10
28
|
port?: number;
|
|
29
|
+
features: AgentFeatures;
|
|
11
30
|
createdAt: string;
|
|
12
31
|
}
|
|
13
32
|
|
|
@@ -40,4 +59,5 @@ export interface NewAgentForm {
|
|
|
40
59
|
model: string;
|
|
41
60
|
provider: string;
|
|
42
61
|
systemPrompt: string;
|
|
62
|
+
features: AgentFeatures;
|
|
43
63
|
}
|