@agentprojectcontext/apx 1.34.0 → 1.36.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/package.json +1 -1
- package/skills/apx/SKILL.md +1 -1
- package/src/core/agent/build-agent-system.js +134 -58
- package/src/core/agent/channels/voice-context.js +4 -4
- package/src/core/agent/prompt-builder.js +176 -123
- package/src/core/agent/prompts/channels/code.md +12 -10
- package/src/core/agent/prompts/channels/desktop.md +5 -32
- package/src/core/agent/prompts/channels/telegram.md +4 -15
- package/src/core/agent/prompts/channels/web_code.md +11 -11
- package/src/core/agent/prompts/core/agent-base.md +24 -0
- package/src/core/agent/prompts/core/project-agent.md +11 -0
- package/src/core/agent/prompts/core/super-agent.md +21 -0
- package/src/core/agent/prompts/discipline/action.md +10 -0
- package/src/core/agent/prompts/discipline/single-segment.md +6 -0
- package/src/core/agent/prompts/discipline/two-segment.md +11 -0
- package/src/core/agent/self-memory.js +43 -1
- package/src/core/agent/skills/index-store.js +307 -0
- package/src/core/agent/skills/index.js +15 -1
- package/src/core/agent/skills/inspector.js +317 -0
- package/src/core/agent/super-agent.js +7 -1
- package/src/core/agent/tools/handlers/_git.js +50 -0
- package/src/core/agent/tools/handlers/git-diff.js +44 -0
- package/src/core/agent/tools/handlers/git-log.js +38 -0
- package/src/core/agent/tools/handlers/git-show.js +34 -0
- package/src/core/agent/tools/handlers/git-status.js +61 -0
- package/src/core/agent/tools/names.js +31 -0
- package/src/core/agent/tools/registry.js +36 -5
- package/src/core/config/index.js +21 -0
- package/src/core/runtime-skills/apx/SKILL.md +27 -39
- package/src/core/runtime-skills/apx-agency-agents/SKILL.md +40 -56
- package/src/core/runtime-skills/apx-agent/SKILL.md +27 -30
- package/src/core/runtime-skills/apx-mcp/SKILL.md +31 -36
- package/src/core/runtime-skills/apx-mcp-builder/SKILL.md +37 -51
- package/src/core/runtime-skills/apx-project/SKILL.md +20 -29
- package/src/core/runtime-skills/apx-routine/SKILL.md +34 -47
- package/src/core/runtime-skills/apx-runtime/SKILL.md +32 -50
- package/src/core/runtime-skills/apx-sessions/SKILL.md +96 -145
- package/src/core/runtime-skills/apx-skill-builder/SKILL.md +53 -77
- package/src/core/runtime-skills/apx-task/SKILL.md +18 -21
- package/src/core/runtime-skills/apx-telegram/SKILL.md +43 -54
- package/src/core/runtime-skills/apx-voice/SKILL.md +36 -56
- package/src/core/stores/conversations.js +27 -2
- package/src/host/daemon/api/exec.js +2 -0
- package/src/host/daemon/api/skills.js +140 -6
- package/src/host/daemon/api/super-agent.js +56 -1
- package/src/host/daemon/index.js +17 -0
- package/src/interfaces/cli/branding.js +53 -0
- package/src/interfaces/cli/commands/skills.js +254 -0
- package/src/interfaces/cli/index.js +84 -2
- package/src/interfaces/web/dist/assets/index-Cm0KyPoZ.css +1 -0
- package/src/interfaces/web/dist/assets/index-DJKA763h.js +628 -0
- package/src/interfaces/web/dist/assets/index-DJKA763h.js.map +1 -0
- package/src/interfaces/web/dist/index.html +2 -2
- package/src/interfaces/web/src/App.tsx +0 -1
- package/src/interfaces/web/src/components/chat/ChatList.tsx +412 -0
- package/src/interfaces/web/src/components/chat/MessageBubble.tsx +21 -1
- package/src/interfaces/web/src/components/settings/AppearancePanel.tsx +1 -1
- package/src/interfaces/web/src/components/settings/MemoryPanel.tsx +69 -1
- package/src/interfaces/web/src/components/settings/SkillsInspectorPanel.tsx +222 -0
- package/src/interfaces/web/src/hooks/useChat.ts +54 -2
- package/src/interfaces/web/src/i18n/en.ts +12 -1
- package/src/interfaces/web/src/i18n/es.ts +12 -1
- package/src/interfaces/web/src/lib/api/agents.ts +1 -1
- package/src/interfaces/web/src/lib/api/skills.ts +70 -0
- package/src/interfaces/web/src/screens/ProjectScreen.tsx +3 -5
- package/src/interfaces/web/src/screens/SettingsScreen.tsx +12 -6
- package/src/interfaces/web/src/screens/modules/VoiceScreen.tsx +1 -1
- package/src/interfaces/web/src/screens/project/ChatTab.tsx +120 -87
- package/src/interfaces/web/src/types/daemon.ts +10 -0
- package/src/core/agent/prompts/action-discipline.md +0 -24
- package/src/core/agent/prompts/super-agent-base.md +0 -42
- package/src/interfaces/web/dist/assets/index-DdmSRtsz.css +0 -1
- package/src/interfaces/web/dist/assets/index-M4FspaCH.js +0 -613
- package/src/interfaces/web/dist/assets/index-M4FspaCH.js.map +0 -1
- package/src/interfaces/web/src/screens/project/ThreadsTab.tsx +0 -100
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
import useSWR from "swr";
|
|
3
|
-
import { Agents, Conversations } from "../../lib/api";
|
|
4
|
-
import { Section } from "../../components/Section";
|
|
5
|
-
import { Badge, Dialog, Empty, Loading } from "../../components/ui";
|
|
6
|
-
import { cn } from "../../lib/cn";
|
|
7
|
-
import { t } from "../../i18n";
|
|
8
|
-
|
|
9
|
-
export function ThreadsTab({ pid }: { pid: string }) {
|
|
10
|
-
const agents = useSWR(`/projects/${pid}/agents`, () => Agents.list(pid));
|
|
11
|
-
const [activeSlug, setActiveSlug] = useState<string | null>(null);
|
|
12
|
-
const [openId, setOpenId] = useState<string | null>(null);
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<Section
|
|
16
|
-
title={t("project.threads.title")}
|
|
17
|
-
description={t("project.threads.subtitle")}
|
|
18
|
-
>
|
|
19
|
-
{agents.isLoading && <Loading />}
|
|
20
|
-
{!agents.isLoading && (agents.data?.length ?? 0) === 0 && (
|
|
21
|
-
<Empty>{t("project.threads.no_agents")}</Empty>
|
|
22
|
-
)}
|
|
23
|
-
<div className="grid grid-cols-1 gap-3 md:grid-cols-3">
|
|
24
|
-
<ul className="space-y-1 md:col-span-1">
|
|
25
|
-
{(agents.data || []).map((a) => (
|
|
26
|
-
<li key={a.slug}>
|
|
27
|
-
<button
|
|
28
|
-
type="button"
|
|
29
|
-
onClick={() => setActiveSlug(a.slug)}
|
|
30
|
-
className={cn(
|
|
31
|
-
"flex w-full items-center justify-between rounded-md px-2.5 py-1.5 text-sm",
|
|
32
|
-
activeSlug === a.slug ? "bg-accent text-accent-fg" : "text-foreground hover:bg-accent/60"
|
|
33
|
-
)}
|
|
34
|
-
>
|
|
35
|
-
<span>{a.slug}</span>
|
|
36
|
-
{a.model && <Badge tone="info">{a.model}</Badge>}
|
|
37
|
-
</button>
|
|
38
|
-
</li>
|
|
39
|
-
))}
|
|
40
|
-
</ul>
|
|
41
|
-
<div className="md:col-span-2">
|
|
42
|
-
{activeSlug ? <ConvList pid={pid} slug={activeSlug} onOpen={setOpenId} /> :
|
|
43
|
-
<Empty>{t("project.threads.pick")}</Empty>}
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
|
|
47
|
-
{activeSlug && openId && (
|
|
48
|
-
<ConvDialog pid={pid} slug={activeSlug} id={openId} onClose={() => setOpenId(null)} />
|
|
49
|
-
)}
|
|
50
|
-
</Section>
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function ConvList({ pid, slug, onOpen }: { pid: string; slug: string; onOpen: (id: string) => void }) {
|
|
55
|
-
const list = useSWR(`/projects/${pid}/agents/${slug}/conversations`, () => Conversations.list(pid, slug));
|
|
56
|
-
if (list.isLoading) return <Loading />;
|
|
57
|
-
if (!list.data?.length) return <Empty>{t("project.threads.empty", { slug })}</Empty>;
|
|
58
|
-
return (
|
|
59
|
-
<ul className="space-y-1 text-sm">
|
|
60
|
-
{list.data.map((c) => (
|
|
61
|
-
<li
|
|
62
|
-
key={c.id}
|
|
63
|
-
className="cursor-pointer rounded-md border border-border bg-muted/30 px-3 py-2 hover:bg-accent/40"
|
|
64
|
-
onClick={() => onOpen(c.id)}
|
|
65
|
-
>
|
|
66
|
-
<div className="flex items-center justify-between">
|
|
67
|
-
<span className="font-medium">{c.title || c.filename}</span>
|
|
68
|
-
<span className="text-xs text-muted-fg">{new Date(c.started_at).toLocaleString()}</span>
|
|
69
|
-
</div>
|
|
70
|
-
<div className="mt-0.5 text-xs text-muted-fg">
|
|
71
|
-
{c.channel && <>{t("project.threads.via")} {c.channel} · </>}
|
|
72
|
-
{(c.messages ?? 0)} {t("project.threads.messages")}
|
|
73
|
-
</div>
|
|
74
|
-
</li>
|
|
75
|
-
))}
|
|
76
|
-
</ul>
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function ConvDialog({ pid, slug, id, onClose }: { pid: string; slug: string; id: string; onClose: () => void }) {
|
|
81
|
-
const data = useSWR(`/projects/${pid}/agents/${slug}/conversations/${id}`, () => Conversations.get(pid, slug, id));
|
|
82
|
-
return (
|
|
83
|
-
<Dialog open onClose={onClose} title={t("project.threads.conversation_title", { id })} size="lg">
|
|
84
|
-
{data.isLoading && <Loading />}
|
|
85
|
-
{data.data && (
|
|
86
|
-
<div className="max-h-[60vh] space-y-3 overflow-y-auto pr-2">
|
|
87
|
-
{data.data.messages.map((m, i) => (
|
|
88
|
-
<div key={i} className="rounded-md border border-border bg-muted/30 p-3 text-sm">
|
|
89
|
-
<div className="mb-1 flex items-center justify-between text-xs text-muted-fg">
|
|
90
|
-
<span className="uppercase tracking-wide">{m.role}{m.name ? ` (${m.name})` : ""}</span>
|
|
91
|
-
{m.ts && <span>{new Date(m.ts).toLocaleString()}</span>}
|
|
92
|
-
</div>
|
|
93
|
-
<div className="whitespace-pre-wrap">{m.content}</div>
|
|
94
|
-
</div>
|
|
95
|
-
))}
|
|
96
|
-
</div>
|
|
97
|
-
)}
|
|
98
|
-
</Dialog>
|
|
99
|
-
);
|
|
100
|
-
}
|