@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.
Files changed (75) hide show
  1. package/package.json +1 -1
  2. package/skills/apx/SKILL.md +1 -1
  3. package/src/core/agent/build-agent-system.js +134 -58
  4. package/src/core/agent/channels/voice-context.js +4 -4
  5. package/src/core/agent/prompt-builder.js +176 -123
  6. package/src/core/agent/prompts/channels/code.md +12 -10
  7. package/src/core/agent/prompts/channels/desktop.md +5 -32
  8. package/src/core/agent/prompts/channels/telegram.md +4 -15
  9. package/src/core/agent/prompts/channels/web_code.md +11 -11
  10. package/src/core/agent/prompts/core/agent-base.md +24 -0
  11. package/src/core/agent/prompts/core/project-agent.md +11 -0
  12. package/src/core/agent/prompts/core/super-agent.md +21 -0
  13. package/src/core/agent/prompts/discipline/action.md +10 -0
  14. package/src/core/agent/prompts/discipline/single-segment.md +6 -0
  15. package/src/core/agent/prompts/discipline/two-segment.md +11 -0
  16. package/src/core/agent/self-memory.js +43 -1
  17. package/src/core/agent/skills/index-store.js +307 -0
  18. package/src/core/agent/skills/index.js +15 -1
  19. package/src/core/agent/skills/inspector.js +317 -0
  20. package/src/core/agent/super-agent.js +7 -1
  21. package/src/core/agent/tools/handlers/_git.js +50 -0
  22. package/src/core/agent/tools/handlers/git-diff.js +44 -0
  23. package/src/core/agent/tools/handlers/git-log.js +38 -0
  24. package/src/core/agent/tools/handlers/git-show.js +34 -0
  25. package/src/core/agent/tools/handlers/git-status.js +61 -0
  26. package/src/core/agent/tools/names.js +31 -0
  27. package/src/core/agent/tools/registry.js +36 -5
  28. package/src/core/config/index.js +21 -0
  29. package/src/core/runtime-skills/apx/SKILL.md +27 -39
  30. package/src/core/runtime-skills/apx-agency-agents/SKILL.md +40 -56
  31. package/src/core/runtime-skills/apx-agent/SKILL.md +27 -30
  32. package/src/core/runtime-skills/apx-mcp/SKILL.md +31 -36
  33. package/src/core/runtime-skills/apx-mcp-builder/SKILL.md +37 -51
  34. package/src/core/runtime-skills/apx-project/SKILL.md +20 -29
  35. package/src/core/runtime-skills/apx-routine/SKILL.md +34 -47
  36. package/src/core/runtime-skills/apx-runtime/SKILL.md +32 -50
  37. package/src/core/runtime-skills/apx-sessions/SKILL.md +96 -145
  38. package/src/core/runtime-skills/apx-skill-builder/SKILL.md +53 -77
  39. package/src/core/runtime-skills/apx-task/SKILL.md +18 -21
  40. package/src/core/runtime-skills/apx-telegram/SKILL.md +43 -54
  41. package/src/core/runtime-skills/apx-voice/SKILL.md +36 -56
  42. package/src/core/stores/conversations.js +27 -2
  43. package/src/host/daemon/api/exec.js +2 -0
  44. package/src/host/daemon/api/skills.js +140 -6
  45. package/src/host/daemon/api/super-agent.js +56 -1
  46. package/src/host/daemon/index.js +17 -0
  47. package/src/interfaces/cli/branding.js +53 -0
  48. package/src/interfaces/cli/commands/skills.js +254 -0
  49. package/src/interfaces/cli/index.js +84 -2
  50. package/src/interfaces/web/dist/assets/index-Cm0KyPoZ.css +1 -0
  51. package/src/interfaces/web/dist/assets/index-DJKA763h.js +628 -0
  52. package/src/interfaces/web/dist/assets/index-DJKA763h.js.map +1 -0
  53. package/src/interfaces/web/dist/index.html +2 -2
  54. package/src/interfaces/web/src/App.tsx +0 -1
  55. package/src/interfaces/web/src/components/chat/ChatList.tsx +412 -0
  56. package/src/interfaces/web/src/components/chat/MessageBubble.tsx +21 -1
  57. package/src/interfaces/web/src/components/settings/AppearancePanel.tsx +1 -1
  58. package/src/interfaces/web/src/components/settings/MemoryPanel.tsx +69 -1
  59. package/src/interfaces/web/src/components/settings/SkillsInspectorPanel.tsx +222 -0
  60. package/src/interfaces/web/src/hooks/useChat.ts +54 -2
  61. package/src/interfaces/web/src/i18n/en.ts +12 -1
  62. package/src/interfaces/web/src/i18n/es.ts +12 -1
  63. package/src/interfaces/web/src/lib/api/agents.ts +1 -1
  64. package/src/interfaces/web/src/lib/api/skills.ts +70 -0
  65. package/src/interfaces/web/src/screens/ProjectScreen.tsx +3 -5
  66. package/src/interfaces/web/src/screens/SettingsScreen.tsx +12 -6
  67. package/src/interfaces/web/src/screens/modules/VoiceScreen.tsx +1 -1
  68. package/src/interfaces/web/src/screens/project/ChatTab.tsx +120 -87
  69. package/src/interfaces/web/src/types/daemon.ts +10 -0
  70. package/src/core/agent/prompts/action-discipline.md +0 -24
  71. package/src/core/agent/prompts/super-agent-base.md +0 -42
  72. package/src/interfaces/web/dist/assets/index-DdmSRtsz.css +0 -1
  73. package/src/interfaces/web/dist/assets/index-M4FspaCH.js +0 -613
  74. package/src/interfaces/web/dist/assets/index-M4FspaCH.js.map +0 -1
  75. 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
- }