@agentprojectcontext/apx 1.25.0 → 1.27.1
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 +42 -12
- package/skills/apx/SKILL.md +50 -119
- package/skills/apx-agency-agents/SKILL.md +141 -0
- package/skills/apx-agent/SKILL.md +100 -0
- package/skills/apx-mcp/SKILL.md +114 -0
- package/skills/apx-mcp-builder/SKILL.md +186 -0
- package/skills/apx-project/SKILL.md +100 -0
- package/skills/apx-routine/SKILL.md +138 -0
- package/skills/apx-runtime/SKILL.md +115 -0
- package/skills/apx-sessions/SKILL.md +281 -0
- package/skills/apx-skill-builder/SKILL.md +149 -0
- package/skills/apx-task/SKILL.md +95 -0
- package/skills/apx-telegram/SKILL.md +115 -0
- package/skills/apx-voice/SKILL.md +135 -0
- package/src/core/agent/constants.js +3 -0
- package/src/core/agent/ghost-guard.js +24 -0
- package/src/core/agent/index.js +35 -0
- package/src/core/agent/model-router.js +257 -0
- package/src/core/agent/prompt-builder.js +313 -0
- package/src/core/agent/prompts/channels/api.md +7 -0
- package/src/core/agent/prompts/channels/cli.md +6 -0
- package/src/core/agent/prompts/channels/code.md +20 -0
- package/src/core/agent/prompts/channels/deck.md +6 -0
- package/src/core/agent/prompts/channels/desktop.md +24 -0
- package/src/core/agent/prompts/channels/routine.md +9 -0
- package/src/core/agent/prompts/channels/telegram.md +9 -0
- package/src/core/agent/prompts/channels/terminal.md +16 -0
- package/src/core/agent/prompts/channels/web.md +7 -0
- package/src/core/agent/prompts/channels/web_sidebar.md +7 -0
- package/src/core/agent/prompts/modes/voice.md +4 -0
- package/src/core/agent/prompts/super-agent-base.md +42 -0
- package/src/core/agent/pseudo-tools.js +40 -0
- package/src/core/agent/retry.js +85 -0
- package/src/core/agent/run-agent.js +423 -0
- package/src/core/agent/self-memory.js +155 -0
- package/src/{daemon → core/agent}/tool-call-parser.js +83 -10
- package/src/core/agent/tools-overlap.js +66 -0
- package/src/core/apc-skill-sync.js +97 -0
- package/src/core/code-sessions-store.js +150 -0
- package/src/core/config.js +473 -11
- package/src/core/desktop/autostart.js +162 -0
- package/src/core/engines/_health.js +63 -0
- package/src/{daemon → core}/engines/anthropic.js +16 -0
- package/src/core/engines/gemini.js +168 -0
- package/src/core/engines/groq.js +8 -0
- package/src/{daemon → core}/engines/index.js +3 -1
- package/src/{daemon → core}/engines/mock.js +22 -0
- package/src/{daemon → core}/engines/ollama.js +35 -0
- package/src/core/engines/openai-compatible.js +145 -0
- package/src/core/engines/openai.js +8 -0
- package/src/core/engines/openrouter.js +8 -0
- package/src/core/git-baseline.js +147 -0
- package/src/core/identity.js +21 -0
- package/src/core/logging.js +1 -1
- package/src/core/mcp/index.js +14 -0
- package/src/{daemon/mcp-runner.js → core/mcp/runner.js} +18 -6
- package/src/core/mcp/sources.js +246 -0
- package/src/core/memory/active-threads.js +124 -0
- package/src/core/memory/broker.js +144 -0
- package/src/core/memory/compactor.js +186 -0
- package/src/core/memory/embed-engines/gemini.js +62 -0
- package/src/core/memory/embed-engines/index.js +148 -0
- package/src/core/memory/embed-engines/ollama.js +55 -0
- package/src/core/memory/embed-engines/openai.js +64 -0
- package/src/core/memory/embed-engines/tf.js +20 -0
- package/src/core/memory/embeddings.js +132 -0
- package/src/core/memory/index.js +161 -0
- package/src/core/memory/indexer.js +257 -0
- package/src/core/memory/store.js +231 -0
- package/src/core/messages-store.js +143 -25
- package/src/core/parser.js +78 -16
- package/src/core/scaffold.js +175 -79
- package/src/core/tasks-store.js +264 -0
- package/src/core/telegram-identity.js +126 -0
- package/src/core/tools/index.js +6 -0
- package/src/core/voice/engines/elevenlabs.js +96 -0
- package/src/core/voice/engines/gemini.js +148 -0
- package/src/core/voice/engines/index.js +144 -0
- package/src/core/voice/engines/mock.js +59 -0
- package/src/core/voice/engines/openai.js +82 -0
- package/src/core/voice/engines/piper.js +93 -0
- package/src/core/voice/index.js +3 -0
- package/src/core/voice/tts.js +89 -0
- package/src/{daemon → host/daemon}/apc-runtime-context.js +1 -1
- package/src/host/daemon/api/admin-config.js +159 -0
- package/src/host/daemon/api/admin.js +72 -0
- package/src/host/daemon/api/agents.js +284 -0
- package/src/host/daemon/api/artifacts.js +52 -0
- package/src/host/daemon/api/code.js +351 -0
- package/src/host/daemon/api/config.js +104 -0
- package/src/host/daemon/api/connections.js +42 -0
- package/src/host/daemon/api/conversations.js +161 -0
- package/src/host/daemon/api/deck.js +511 -0
- package/src/host/daemon/api/desktop.js +71 -0
- package/src/host/daemon/api/embeddings.js +65 -0
- package/src/host/daemon/api/engines.js +80 -0
- package/src/host/daemon/api/exec.js +193 -0
- package/src/host/daemon/api/health.js +10 -0
- package/src/host/daemon/api/identity.js +36 -0
- package/src/host/daemon/api/mcps.js +205 -0
- package/src/host/daemon/api/messages.js +83 -0
- package/src/host/daemon/api/pairing.js +194 -0
- package/src/host/daemon/api/plugins.js +19 -0
- package/src/host/daemon/api/projects.js +35 -0
- package/src/host/daemon/api/routines.js +84 -0
- package/src/host/daemon/api/run.js +55 -0
- package/src/host/daemon/api/runtimes.js +219 -0
- package/src/host/daemon/api/sessions-search.js +177 -0
- package/src/host/daemon/api/sessions.js +115 -0
- package/src/host/daemon/api/shared.js +217 -0
- package/src/host/daemon/api/super-agent.js +208 -0
- package/src/host/daemon/api/tasks.js +118 -0
- package/src/host/daemon/api/telegram.js +325 -0
- package/src/host/daemon/api/tools.js +21 -0
- package/src/host/daemon/api/top-level.js +131 -0
- package/src/host/daemon/api/transcribe.js +35 -0
- package/src/host/daemon/api/tts.js +44 -0
- package/src/host/daemon/api/voice.js +519 -0
- package/src/host/daemon/api/web.js +123 -0
- package/src/host/daemon/api.js +152 -0
- package/src/{daemon → host/daemon}/compact.js +1 -1
- package/src/{daemon → host/daemon}/db.js +19 -5
- package/src/{daemon/overlay-ws.js → host/daemon/desktop-ws.js} +7 -7
- package/src/host/daemon/engine-sessions.js +245 -0
- package/src/{daemon → host/daemon}/index.js +27 -10
- package/src/{daemon/plugins/overlay.js → host/daemon/plugins/desktop.js} +36 -28
- package/src/{daemon → host/daemon}/plugins/index.js +2 -2
- package/src/{daemon → host/daemon}/plugins/telegram.js +165 -33
- package/src/{daemon → host/daemon}/project-config.js +31 -7
- package/src/{daemon → host/daemon}/routines.js +27 -8
- package/src/{daemon → host/daemon}/skills-loader.js +4 -2
- package/src/{daemon → host/daemon}/smoke.js +9 -5
- package/src/{daemon → host/daemon}/super-agent-tools/helpers.js +1 -1
- package/src/host/daemon/super-agent-tools/index.js +157 -0
- package/src/{daemon → host/daemon}/super-agent-tools/registry-bridge.js +1 -1
- package/src/{daemon → host/daemon}/super-agent-tools/tools/add-project.js +2 -2
- package/src/{daemon → host/daemon}/super-agent-tools/tools/ask-questions.js +4 -0
- package/src/{daemon → host/daemon}/super-agent-tools/tools/call-agent.js +5 -2
- package/src/{daemon → host/daemon}/super-agent-tools/tools/call-runtime.js +117 -8
- package/src/host/daemon/super-agent-tools/tools/create-task.js +52 -0
- package/src/{daemon → host/daemon}/super-agent-tools/tools/import-agent.js +2 -3
- package/src/{daemon → host/daemon}/super-agent-tools/tools/list-agents.js +1 -1
- package/src/host/daemon/super-agent-tools/tools/list-tasks.js +52 -0
- package/src/{daemon → host/daemon}/super-agent-tools/tools/list-vault-agents.js +1 -1
- package/src/host/daemon/super-agent-tools/tools/read-self-memory.js +21 -0
- package/src/host/daemon/super-agent-tools/tools/remember.js +40 -0
- package/src/{daemon → host/daemon}/super-agent-tools/tools/search-messages.js +1 -1
- package/src/host/daemon/super-agent-tools/tools/search-sessions.js +134 -0
- package/src/{daemon → host/daemon}/super-agent-tools/tools/send-telegram.js +2 -2
- package/src/{daemon → host/daemon}/super-agent-tools/tools/set-identity.js +1 -1
- package/src/{daemon → host/daemon}/super-agent-tools/tools/set-permission-mode.js +1 -1
- package/src/{daemon → host/daemon}/super-agent-tools/tools/tail-messages.js +1 -1
- package/src/host/daemon/super-agent.js +129 -0
- package/src/host/daemon/token-store.js +118 -0
- package/src/host/daemon/tool-call-parser.js +2 -0
- package/src/{daemon → host/daemon}/transcription.js +1 -1
- package/src/{daemon → host/daemon}/wakeup.js +2 -2
- package/src/interfaces/cli/claude-permissions.js +33 -0
- package/src/{cli → interfaces/cli}/commands/agent.js +43 -8
- package/src/{cli → interfaces/cli}/commands/command.js +1 -1
- package/src/{cli → interfaces/cli}/commands/config.js +1 -1
- package/src/{cli → interfaces/cli}/commands/daemon.js +67 -0
- package/src/interfaces/cli/commands/desktop.js +335 -0
- package/src/interfaces/cli/commands/exec.js +92 -0
- package/src/{cli → interfaces/cli}/commands/identity.js +6 -63
- package/src/{cli → interfaces/cli}/commands/init.js +1 -1
- package/src/{cli → interfaces/cli}/commands/mcp.js +69 -10
- package/src/{cli → interfaces/cli}/commands/memory.js +2 -2
- package/src/interfaces/cli/commands/model.js +136 -0
- package/src/interfaces/cli/commands/pair.js +170 -0
- package/src/interfaces/cli/commands/project-config.js +131 -0
- package/src/{cli → interfaces/cli}/commands/project.js +1 -1
- package/src/{cli → interfaces/cli}/commands/search.js +1 -1
- package/src/interfaces/cli/commands/session.js +892 -0
- package/src/interfaces/cli/commands/sessions.js +997 -0
- package/src/{cli → interfaces/cli}/commands/setup.js +98 -4
- package/src/{cli → interfaces/cli}/commands/skills.js +117 -9
- package/src/{cli → interfaces/cli}/commands/status.js +9 -1
- package/src/{cli → interfaces/cli}/commands/sys.js +96 -17
- package/src/interfaces/cli/commands/task.js +179 -0
- package/src/interfaces/cli/commands/telegram.js +366 -0
- package/src/{cli → interfaces/cli}/commands/update.js +1 -1
- package/src/interfaces/cli/commands/voice.js +258 -0
- package/src/{cli → interfaces/cli}/http.js +6 -2
- package/src/{cli → interfaces/cli}/index.js +955 -63
- package/src/interfaces/cli/postinstall.js +34 -0
- package/src/interfaces/desktop/assets/app-icon-180.png +0 -0
- package/src/interfaces/desktop/assets/app-icon-32.png +0 -0
- package/src/interfaces/desktop/assets/app-icon.png +0 -0
- package/src/interfaces/desktop/assets/apx-logo.png +0 -0
- package/src/interfaces/desktop/assets/superagent.png +0 -0
- package/src/interfaces/desktop/assets/tray-icon.png +0 -0
- package/src/interfaces/desktop/index.html +18 -0
- package/src/interfaces/desktop/main.js +652 -0
- package/src/interfaces/desktop/preload.js +48 -0
- package/src/interfaces/desktop/renderer.js +1006 -0
- package/src/interfaces/desktop/style.css +400 -0
- package/src/{mcp → interfaces/mcp-server}/index.js +2 -2
- package/src/interfaces/tui/_shims/util-which.ts +53 -0
- package/src/{tui → interfaces/tui}/app.tsx +2 -2
- package/src/{tui → interfaces/tui}/component/prompt/index.tsx +4 -1
- package/src/{tui → interfaces/tui}/context/sdk-apx.tsx +84 -16
- package/src/interfaces/tui/context/sync-apx.tsx +398 -0
- package/src/interfaces/tui/routes/session/index.tsx +368 -0
- package/src/interfaces/tui/routes/session/message-actions.tsx +58 -0
- package/src/interfaces/tui/routes/session/sidebar-apx.tsx +114 -0
- package/src/{tui → interfaces/tui}/tsconfig.json +1 -0
- package/src/{tui → interfaces/tui}/util/clipboard.ts +1 -1
- package/src/interfaces/web/README.md +102 -0
- package/src/interfaces/web/coming-soon.html +65 -0
- package/src/interfaces/web/components.json +25 -0
- package/src/interfaces/web/dist/assets/index-BDUsA6L6.css +1 -0
- package/src/interfaces/web/dist/assets/index-CfWyjPBa.js +548 -0
- package/src/interfaces/web/dist/assets/index-CfWyjPBa.js.map +1 -0
- package/src/interfaces/web/dist/favicon/dark/android-chrome-192x192.png +0 -0
- package/src/interfaces/web/dist/favicon/dark/android-chrome-512x512.png +0 -0
- package/src/interfaces/web/dist/favicon/dark/apple-touch-icon.png +0 -0
- package/src/interfaces/web/dist/favicon/dark/favicon-16x16.png +0 -0
- package/src/interfaces/web/dist/favicon/dark/favicon-32x32.png +0 -0
- package/src/interfaces/web/dist/favicon/dark/favicon-48x48.png +0 -0
- package/src/interfaces/web/dist/favicon/dark/favicon.ico +0 -0
- package/src/interfaces/web/dist/favicon/dark/favicon.webp +0 -0
- package/src/interfaces/web/dist/favicon/dark/site.webmanifest +18 -0
- package/src/interfaces/web/dist/favicon/white/android-chrome-192x192.png +0 -0
- package/src/interfaces/web/dist/favicon/white/android-chrome-512x512.png +0 -0
- package/src/interfaces/web/dist/favicon/white/apple-touch-icon.png +0 -0
- package/src/interfaces/web/dist/favicon/white/favicon-16x16.png +0 -0
- package/src/interfaces/web/dist/favicon/white/favicon-32x32.png +0 -0
- package/src/interfaces/web/dist/favicon/white/favicon-48x48.png +0 -0
- package/src/interfaces/web/dist/favicon/white/favicon.ico +0 -0
- package/src/interfaces/web/dist/favicon/white/favicon.webp +0 -0
- package/src/interfaces/web/dist/favicon/white/site.webmanifest +18 -0
- package/src/interfaces/web/dist/index.html +27 -0
- package/src/interfaces/web/dist/logo/logo_dark.webp +0 -0
- package/src/interfaces/web/dist/logo/logo_only_dark.webp +0 -0
- package/src/interfaces/web/dist/logo/logo_only_white.webp +0 -0
- package/src/interfaces/web/dist/logo/logo_vertical_dark.webp +0 -0
- package/src/interfaces/web/dist/logo/logo_vertical_white.webp +0 -0
- package/src/interfaces/web/dist/logo/logo_white.webp +0 -0
- package/src/interfaces/web/dist/modules/superagent.png +0 -0
- package/src/interfaces/web/index.html +26 -0
- package/src/interfaces/web/package-lock.json +4253 -0
- package/src/interfaces/web/package.json +55 -0
- package/src/interfaces/web/playwright.config.ts +45 -0
- package/src/interfaces/web/pnpm-lock.yaml +2946 -0
- package/src/interfaces/web/public/favicon/dark/android-chrome-192x192.png +0 -0
- package/src/interfaces/web/public/favicon/dark/android-chrome-512x512.png +0 -0
- package/src/interfaces/web/public/favicon/dark/apple-touch-icon.png +0 -0
- package/src/interfaces/web/public/favicon/dark/favicon-16x16.png +0 -0
- package/src/interfaces/web/public/favicon/dark/favicon-32x32.png +0 -0
- package/src/interfaces/web/public/favicon/dark/favicon-48x48.png +0 -0
- package/src/interfaces/web/public/favicon/dark/favicon.ico +0 -0
- package/src/interfaces/web/public/favicon/dark/favicon.webp +0 -0
- package/src/interfaces/web/public/favicon/dark/site.webmanifest +18 -0
- package/src/interfaces/web/public/favicon/white/android-chrome-192x192.png +0 -0
- package/src/interfaces/web/public/favicon/white/android-chrome-512x512.png +0 -0
- package/src/interfaces/web/public/favicon/white/apple-touch-icon.png +0 -0
- package/src/interfaces/web/public/favicon/white/favicon-16x16.png +0 -0
- package/src/interfaces/web/public/favicon/white/favicon-32x32.png +0 -0
- package/src/interfaces/web/public/favicon/white/favicon-48x48.png +0 -0
- package/src/interfaces/web/public/favicon/white/favicon.ico +0 -0
- package/src/interfaces/web/public/favicon/white/favicon.webp +0 -0
- package/src/interfaces/web/public/favicon/white/site.webmanifest +18 -0
- package/src/interfaces/web/public/logo/logo_dark.webp +0 -0
- package/src/interfaces/web/public/logo/logo_only_dark.webp +0 -0
- package/src/interfaces/web/public/logo/logo_only_white.webp +0 -0
- package/src/interfaces/web/public/logo/logo_vertical_dark.webp +0 -0
- package/src/interfaces/web/public/logo/logo_vertical_white.webp +0 -0
- package/src/interfaces/web/public/logo/logo_white.webp +0 -0
- package/src/interfaces/web/public/modules/superagent.png +0 -0
- package/src/interfaces/web/src/App.tsx +199 -0
- package/src/interfaces/web/src/components/AddProjectDialog.tsx +121 -0
- package/src/interfaces/web/src/components/ModelCombobox.tsx +96 -0
- package/src/interfaces/web/src/components/RobyBubble.tsx +213 -0
- package/src/interfaces/web/src/components/Section.tsx +44 -0
- package/src/interfaces/web/src/components/TelegramChannelDialog.tsx +97 -0
- package/src/interfaces/web/src/components/TelegramSendDialog.tsx +48 -0
- package/src/interfaces/web/src/components/Toast.tsx +84 -0
- package/src/interfaces/web/src/components/UiSelect.tsx +74 -0
- package/src/interfaces/web/src/components/chat/Composer.tsx +43 -0
- package/src/interfaces/web/src/components/chat/ContextBar.tsx +111 -0
- package/src/interfaces/web/src/components/chat/MessageBubble.tsx +95 -0
- package/src/interfaces/web/src/components/chat/MessageList.tsx +35 -0
- package/src/interfaces/web/src/components/chat/ModelPicker.tsx +145 -0
- package/src/interfaces/web/src/components/chat/ToolCall.tsx +141 -0
- package/src/interfaces/web/src/components/code/CodeChangesTab.tsx +87 -0
- package/src/interfaces/web/src/components/code/CodeComposer.tsx +87 -0
- package/src/interfaces/web/src/components/code/CodeContextTab.tsx +83 -0
- package/src/interfaces/web/src/components/code/CodeProjectPicker.tsx +39 -0
- package/src/interfaces/web/src/components/code/CodeSessionList.tsx +97 -0
- package/src/interfaces/web/src/components/code/CodeSidePanel.tsx +44 -0
- package/src/interfaces/web/src/components/code/CodeToolTrail.tsx +29 -0
- package/src/interfaces/web/src/components/code/DiffView.tsx +67 -0
- package/src/interfaces/web/src/components/common/Qr.tsx +27 -0
- package/src/interfaces/web/src/components/common/TabLayout.tsx +46 -0
- package/src/interfaces/web/src/components/common/TabNav.tsx +113 -0
- package/src/interfaces/web/src/components/config/ConfigTabsEditor.tsx +202 -0
- package/src/interfaces/web/src/components/config/GlobalConfigEditor.tsx +42 -0
- package/src/interfaces/web/src/components/config/global-config-sections.ts +60 -0
- package/src/interfaces/web/src/components/config/project-config-sections.ts +58 -0
- package/src/interfaces/web/src/components/deck/DaemonCard.tsx +58 -0
- package/src/interfaces/web/src/components/deck/DesktopGroup.tsx +33 -0
- package/src/interfaces/web/src/components/deck/WidgetRow.tsx +100 -0
- package/src/interfaces/web/src/components/layout/Logo.tsx +59 -0
- package/src/interfaces/web/src/components/layout/ProjectAvatar.tsx +116 -0
- package/src/interfaces/web/src/components/layout/ProjectSidebar.tsx +151 -0
- package/src/interfaces/web/src/components/settings/AdvancedPanel.tsx +45 -0
- package/src/interfaces/web/src/components/settings/AppearancePanel.tsx +72 -0
- package/src/interfaces/web/src/components/settings/DefaultRouterCard.tsx +232 -0
- package/src/interfaces/web/src/components/settings/DevicesPanel.tsx +60 -0
- package/src/interfaces/web/src/components/settings/EnginesPanel.tsx +127 -0
- package/src/interfaces/web/src/components/settings/IdentityPanel.tsx +69 -0
- package/src/interfaces/web/src/components/settings/MemoryPanel.tsx +226 -0
- package/src/interfaces/web/src/components/settings/PairDeviceDialog.tsx +175 -0
- package/src/interfaces/web/src/components/settings/SuperAgentPanel.tsx +93 -0
- package/src/interfaces/web/src/components/settings/TelegramChannelsPanel.tsx +90 -0
- package/src/interfaces/web/src/components/settings/TelegramContactsPanel.tsx +101 -0
- package/src/interfaces/web/src/components/settings/TelegramGlobalPanel.tsx +100 -0
- package/src/interfaces/web/src/components/settings/TelegramRolesPanel.tsx +108 -0
- package/src/interfaces/web/src/components/settings/TelegramSettingsTabs.tsx +55 -0
- package/src/interfaces/web/src/components/settings/providers/ProviderCard.tsx +95 -0
- package/src/interfaces/web/src/components/settings/providers/ProviderModal.tsx +405 -0
- package/src/interfaces/web/src/components/settings/providers/typeStyles.ts +155 -0
- package/src/interfaces/web/src/components/settings/providers/types.ts +26 -0
- package/src/interfaces/web/src/components/ui/accordion.tsx +72 -0
- package/src/interfaces/web/src/components/ui/alert-dialog.tsx +187 -0
- package/src/interfaces/web/src/components/ui/alert.tsx +76 -0
- package/src/interfaces/web/src/components/ui/aspect-ratio.tsx +22 -0
- package/src/interfaces/web/src/components/ui/avatar.tsx +107 -0
- package/src/interfaces/web/src/components/ui/badge.tsx +52 -0
- package/src/interfaces/web/src/components/ui/breadcrumb.tsx +125 -0
- package/src/interfaces/web/src/components/ui/button-group.tsx +87 -0
- package/src/interfaces/web/src/components/ui/button.tsx +58 -0
- package/src/interfaces/web/src/components/ui/calendar.tsx +221 -0
- package/src/interfaces/web/src/components/ui/card.tsx +103 -0
- package/src/interfaces/web/src/components/ui/carousel.tsx +242 -0
- package/src/interfaces/web/src/components/ui/chart.tsx +371 -0
- package/src/interfaces/web/src/components/ui/chat-input.tsx +122 -0
- package/src/interfaces/web/src/components/ui/checkbox.tsx +29 -0
- package/src/interfaces/web/src/components/ui/collapsible.tsx +19 -0
- package/src/interfaces/web/src/components/ui/combobox.tsx +295 -0
- package/src/interfaces/web/src/components/ui/command.tsx +196 -0
- package/src/interfaces/web/src/components/ui/context-menu.tsx +271 -0
- package/src/interfaces/web/src/components/ui/dialog.tsx +158 -0
- package/src/interfaces/web/src/components/ui/direction.tsx +4 -0
- package/src/interfaces/web/src/components/ui/drawer.tsx +134 -0
- package/src/interfaces/web/src/components/ui/dropdown-menu.tsx +266 -0
- package/src/interfaces/web/src/components/ui/empty.tsx +104 -0
- package/src/interfaces/web/src/components/ui/field.tsx +236 -0
- package/src/interfaces/web/src/components/ui/hover-card.tsx +51 -0
- package/src/interfaces/web/src/components/ui/input-group.tsx +158 -0
- package/src/interfaces/web/src/components/ui/input-otp.tsx +85 -0
- package/src/interfaces/web/src/components/ui/input.tsx +20 -0
- package/src/interfaces/web/src/components/ui/item.tsx +201 -0
- package/src/interfaces/web/src/components/ui/kbd.tsx +26 -0
- package/src/interfaces/web/src/components/ui/label.tsx +20 -0
- package/src/interfaces/web/src/components/ui/menubar.tsx +280 -0
- package/src/interfaces/web/src/components/ui/native-select.tsx +61 -0
- package/src/interfaces/web/src/components/ui/navigation-menu.tsx +168 -0
- package/src/interfaces/web/src/components/ui/pagination.tsx +130 -0
- package/src/interfaces/web/src/components/ui/popover.tsx +88 -0
- package/src/interfaces/web/src/components/ui/progress.tsx +83 -0
- package/src/interfaces/web/src/components/ui/radio-group.tsx +36 -0
- package/src/interfaces/web/src/components/ui/resizable.tsx +50 -0
- package/src/interfaces/web/src/components/ui/scroll-area.tsx +53 -0
- package/src/interfaces/web/src/components/ui/select.tsx +201 -0
- package/src/interfaces/web/src/components/ui/separator.tsx +23 -0
- package/src/interfaces/web/src/components/ui/sheet.tsx +138 -0
- package/src/interfaces/web/src/components/ui/sidebar.tsx +723 -0
- package/src/interfaces/web/src/components/ui/skeleton.tsx +13 -0
- package/src/interfaces/web/src/components/ui/slider.tsx +52 -0
- package/src/interfaces/web/src/components/ui/sonner.tsx +49 -0
- package/src/interfaces/web/src/components/ui/spinner.tsx +10 -0
- package/src/interfaces/web/src/components/ui/switch.tsx +30 -0
- package/src/interfaces/web/src/components/ui/table.tsx +116 -0
- package/src/interfaces/web/src/components/ui/tabs.tsx +72 -0
- package/src/interfaces/web/src/components/ui/textarea.tsx +18 -0
- package/src/interfaces/web/src/components/ui/tip.tsx +21 -0
- package/src/interfaces/web/src/components/ui/toggle-group.tsx +87 -0
- package/src/interfaces/web/src/components/ui/toggle.tsx +45 -0
- package/src/interfaces/web/src/components/ui/tooltip.tsx +64 -0
- package/src/interfaces/web/src/components/ui.tsx +211 -0
- package/src/interfaces/web/src/components/voice/VoiceProviderList.tsx +197 -0
- package/src/interfaces/web/src/components/voice/VoiceProviderModal.tsx +213 -0
- package/src/interfaces/web/src/components/voice/VoiceSttCard.tsx +72 -0
- package/src/interfaces/web/src/components/voice/VoiceTestCard.tsx +112 -0
- package/src/interfaces/web/src/components/voice/useTtsPlayer.ts +59 -0
- package/src/interfaces/web/src/constants/index.ts +91 -0
- package/src/interfaces/web/src/hooks/use-mobile.ts +19 -0
- package/src/interfaces/web/src/hooks/useChat.ts +276 -0
- package/src/interfaces/web/src/hooks/useDaemonStatus.ts +12 -0
- package/src/interfaces/web/src/hooks/useDevices.ts +12 -0
- package/src/interfaces/web/src/hooks/useEngines.ts +10 -0
- package/src/interfaces/web/src/hooks/useGlobalConfig.ts +24 -0
- package/src/interfaces/web/src/hooks/useIdentity.ts +16 -0
- package/src/interfaces/web/src/hooks/useProjects.ts +27 -0
- package/src/interfaces/web/src/hooks/useTelegram.ts +35 -0
- package/src/interfaces/web/src/hooks/useTheme.tsx +57 -0
- package/src/interfaces/web/src/hooks/useTokenBootstrap.ts +122 -0
- package/src/interfaces/web/src/i18n/en.ts +767 -0
- package/src/interfaces/web/src/i18n/es.ts +770 -0
- package/src/interfaces/web/src/i18n/index.ts +86 -0
- package/src/interfaces/web/src/lib/api/admin.ts +30 -0
- package/src/interfaces/web/src/lib/api/agents.ts +46 -0
- package/src/interfaces/web/src/lib/api/code.ts +122 -0
- package/src/interfaces/web/src/lib/api/conversations.ts +16 -0
- package/src/interfaces/web/src/lib/api/deck.ts +106 -0
- package/src/interfaces/web/src/lib/api/desktop.ts +54 -0
- package/src/interfaces/web/src/lib/api/embeddings.ts +44 -0
- package/src/interfaces/web/src/lib/api/engines.ts +17 -0
- package/src/interfaces/web/src/lib/api/filesystem.ts +12 -0
- package/src/interfaces/web/src/lib/api/health.ts +6 -0
- package/src/interfaces/web/src/lib/api/identity.ts +7 -0
- package/src/interfaces/web/src/lib/api/mcps.ts +29 -0
- package/src/interfaces/web/src/lib/api/messages.ts +24 -0
- package/src/interfaces/web/src/lib/api/projects.ts +29 -0
- package/src/interfaces/web/src/lib/api/routines.ts +14 -0
- package/src/interfaces/web/src/lib/api/sessions.ts +16 -0
- package/src/interfaces/web/src/lib/api/super_agent.ts +29 -0
- package/src/interfaces/web/src/lib/api/tasks.ts +19 -0
- package/src/interfaces/web/src/lib/api/telegram.ts +57 -0
- package/src/interfaces/web/src/lib/api/tools.ts +13 -0
- package/src/interfaces/web/src/lib/api/voice.ts +169 -0
- package/src/interfaces/web/src/lib/api.ts +48 -0
- package/src/interfaces/web/src/lib/cn.ts +6 -0
- package/src/interfaces/web/src/lib/code-context.ts +83 -0
- package/src/interfaces/web/src/lib/config-values.ts +29 -0
- package/src/interfaces/web/src/lib/device.ts +10 -0
- package/src/interfaces/web/src/lib/http.ts +104 -0
- package/src/interfaces/web/src/lib/secrets.ts +15 -0
- package/src/interfaces/web/src/lib/utils.ts +6 -0
- package/src/interfaces/web/src/main.tsx +16 -0
- package/src/interfaces/web/src/screens/ApxAdminScreen.tsx +174 -0
- package/src/interfaces/web/src/screens/PairingScreen.tsx +105 -0
- package/src/interfaces/web/src/screens/ProjectScreen.tsx +178 -0
- package/src/interfaces/web/src/screens/SettingsScreen.tsx +111 -0
- package/src/interfaces/web/src/screens/base/AgentDefaultsTab.tsx +274 -0
- package/src/interfaces/web/src/screens/base/ComingSoon.tsx +16 -0
- package/src/interfaces/web/src/screens/base/GlobalTasksTab.tsx +53 -0
- package/src/interfaces/web/src/screens/base/LogsTab.tsx +188 -0
- package/src/interfaces/web/src/screens/base/ModelsTab.tsx +13 -0
- package/src/interfaces/web/src/screens/base/SessionsTab.tsx +58 -0
- package/src/interfaces/web/src/screens/base/WorkspacesTab.tsx +49 -0
- package/src/interfaces/web/src/screens/modules/CodeScreen.tsx +295 -0
- package/src/interfaces/web/src/screens/modules/DeckScreen.tsx +173 -0
- package/src/interfaces/web/src/screens/modules/DesktopScreen.tsx +304 -0
- package/src/interfaces/web/src/screens/modules/VoiceScreen.tsx +174 -0
- package/src/interfaces/web/src/screens/project/AgentBrainGraph.tsx +152 -0
- package/src/interfaces/web/src/screens/project/AgentDetailScreen.tsx +455 -0
- package/src/interfaces/web/src/screens/project/AgentsTab.tsx +364 -0
- package/src/interfaces/web/src/screens/project/ChatTab.tsx +198 -0
- package/src/interfaces/web/src/screens/project/ConfigTab.tsx +94 -0
- package/src/interfaces/web/src/screens/project/McpsTab.tsx +149 -0
- package/src/interfaces/web/src/screens/project/MemoriesTab.tsx +134 -0
- package/src/interfaces/web/src/screens/project/Overview.tsx +37 -0
- package/src/interfaces/web/src/screens/project/RoutinesTab.tsx +386 -0
- package/src/interfaces/web/src/screens/project/TasksTab.tsx +116 -0
- package/src/interfaces/web/src/screens/project/TelegramTab.tsx +126 -0
- package/src/interfaces/web/src/screens/project/ThreadsTab.tsx +100 -0
- package/src/interfaces/web/src/styles.css +128 -0
- package/src/interfaces/web/src/types/daemon.ts +289 -0
- package/src/interfaces/web/tailwind.config.js +53 -0
- package/src/interfaces/web/tsconfig.json +24 -0
- package/src/interfaces/web/vite.config.ts +50 -0
- package/src/cli/commands/exec.js +0 -56
- package/src/cli/commands/overlay.js +0 -253
- package/src/cli/commands/session.js +0 -395
- package/src/cli/commands/sessions.js +0 -517
- package/src/cli/commands/telegram.js +0 -77
- package/src/cli/postinstall.js +0 -75
- package/src/cli-ts/commands/agent.ts +0 -173
- package/src/cli-ts/commands/chat.ts +0 -119
- package/src/cli-ts/commands/daemon.ts +0 -112
- package/src/cli-ts/commands/exec.ts +0 -109
- package/src/cli-ts/commands/mcp.ts +0 -235
- package/src/cli-ts/commands/session.ts +0 -224
- package/src/cli-ts/commands/status.ts +0 -61
- package/src/cli-ts/http.ts +0 -36
- package/src/cli-ts/index.ts +0 -73
- package/src/cli-ts/ui.ts +0 -107
- package/src/daemon/api.js +0 -1558
- package/src/daemon/engines/gemini.js +0 -56
- package/src/daemon/engines/openai.js +0 -79
- package/src/daemon/mcp-sources.js +0 -114
- package/src/daemon/super-agent-tools/index.js +0 -84
- package/src/daemon/super-agent-tools.js +0 -1
- package/src/daemon/super-agent.js +0 -541
- package/src/overlay/index.html +0 -44
- package/src/overlay/main.js +0 -480
- package/src/overlay/preload.js +0 -34
- package/src/overlay/renderer.js +0 -371
- package/src/overlay/style.css +0 -250
- package/src/tui/context/sync-apx.tsx +0 -284
- package/src/tui/routes/session/index.tsx +0 -274
- package/src/tui/routes/session/sidebar-apx.tsx +0 -90
- /package/src/{daemon → core}/tools/browser.js +0 -0
- /package/src/{daemon → core}/tools/fetch.js +0 -0
- /package/src/{daemon → core}/tools/glob.js +0 -0
- /package/src/{daemon → core}/tools/grep.js +0 -0
- /package/src/{daemon → core}/tools/registry.js +0 -0
- /package/src/{daemon → core}/tools/search.js +0 -0
- /package/src/{daemon → host/daemon}/conversations.js +0 -0
- /package/src/{daemon → host/daemon}/env-detect.js +0 -0
- /package/src/{daemon → host/daemon}/runtimes/_spawn.js +0 -0
- /package/src/{daemon → host/daemon}/runtimes/aider.js +0 -0
- /package/src/{daemon → host/daemon}/runtimes/claude-code.js +0 -0
- /package/src/{daemon → host/daemon}/runtimes/codex.js +0 -0
- /package/src/{daemon → host/daemon}/runtimes/cursor-agent.js +0 -0
- /package/src/{daemon → host/daemon}/runtimes/gemini-cli.js +0 -0
- /package/src/{daemon → host/daemon}/runtimes/index.js +0 -0
- /package/src/{daemon → host/daemon}/runtimes/opencode.js +0 -0
- /package/src/{daemon → host/daemon}/runtimes/qwen-code.js +0 -0
- /package/src/{daemon → host/daemon}/super-agent-tools/tools/call-mcp.js +0 -0
- /package/src/{daemon → host/daemon}/super-agent-tools/tools/edit-file.js +0 -0
- /package/src/{daemon → host/daemon}/super-agent-tools/tools/list-files.js +0 -0
- /package/src/{daemon → host/daemon}/super-agent-tools/tools/list-mcps.js +0 -0
- /package/src/{daemon → host/daemon}/super-agent-tools/tools/list-projects.js +0 -0
- /package/src/{daemon → host/daemon}/super-agent-tools/tools/list-skills.js +0 -0
- /package/src/{daemon → host/daemon}/super-agent-tools/tools/load-skill.js +0 -0
- /package/src/{daemon → host/daemon}/super-agent-tools/tools/read-agent-memory.js +0 -0
- /package/src/{daemon → host/daemon}/super-agent-tools/tools/read-file.js +0 -0
- /package/src/{daemon → host/daemon}/super-agent-tools/tools/run-shell.js +0 -0
- /package/src/{daemon → host/daemon}/super-agent-tools/tools/search-files.js +0 -0
- /package/src/{daemon → host/daemon}/super-agent-tools/tools/transcribe-audio.js +0 -0
- /package/src/{daemon → host/daemon}/super-agent-tools/tools/write-file.js +0 -0
- /package/src/{daemon → host/daemon}/thinking.js +0 -0
- /package/src/{daemon → host/daemon}/whisper-server.py +0 -0
- /package/src/{daemon → host/daemon}/whisper-transcribe.py +0 -0
- /package/src/{cli → interfaces/cli}/commands/a2a.js +0 -0
- /package/src/{cli → interfaces/cli}/commands/artifact.js +0 -0
- /package/src/{cli → interfaces/cli}/commands/chat.js +0 -0
- /package/src/{cli → interfaces/cli}/commands/log.js +0 -0
- /package/src/{cli → interfaces/cli}/commands/messages.js +0 -0
- /package/src/{cli → interfaces/cli}/commands/plugins.js +0 -0
- /package/src/{cli → interfaces/cli}/commands/routine.js +0 -0
- /package/src/{cli → interfaces/cli}/commands/runtime.js +0 -0
- /package/src/{cli → interfaces/cli}/terminal-chat/renderer.js +0 -0
- /package/src/{overlay → interfaces/desktop}/package.json +0 -0
- /package/src/{tui → interfaces/tui}/_shims/cli-error.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/cli-logo.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/cli-ui.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/config-console-state.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/core-any.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/core-binary.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/core-flag.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/core-log.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/lsp-language.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/opencode-any.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/opencode-sdk-v2.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/plugin-tui.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/prompt-display.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/provider-provider.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/session-retry.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/session-schema.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/session-session.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/snapshot.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/tool-any.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/util-error.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/util-filesystem.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/util-format.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/util-iife.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/util-locale.ts +0 -0
- /package/src/{tui → interfaces/tui}/_shims/util-process.ts +0 -0
- /package/src/{tui → interfaces/tui}/asset/charge.wav +0 -0
- /package/src/{tui → interfaces/tui}/asset/pulse-a.wav +0 -0
- /package/src/{tui → interfaces/tui}/asset/pulse-b.wav +0 -0
- /package/src/{tui → interfaces/tui}/asset/pulse-c.wav +0 -0
- /package/src/{tui → interfaces/tui}/attach.ts +0 -0
- /package/src/{tui → interfaces/tui}/component/bg-pulse-render.ts +0 -0
- /package/src/{tui → interfaces/tui}/component/bg-pulse.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/border.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/dialog-agent.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/dialog-console-org.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/dialog-mcp.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/dialog-model.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/dialog-provider.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/dialog-retry-action.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/dialog-session-delete-failed.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/dialog-session-list.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/dialog-session-rename.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/dialog-skill.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/dialog-stash.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/dialog-status.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/dialog-tag.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/dialog-theme-list.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/dialog-variant.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/dialog-workspace-create.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/dialog-workspace-file-changes.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/dialog-workspace-unavailable.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/error-component.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/logo.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/plugin-route-missing.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/prompt/autocomplete.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/prompt/cwd.ts +0 -0
- /package/src/{tui → interfaces/tui}/component/prompt/frecency.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/prompt/history.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/prompt/part.ts +0 -0
- /package/src/{tui → interfaces/tui}/component/prompt/stash.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/prompt/traits.ts +0 -0
- /package/src/{tui → interfaces/tui}/component/spinner.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/startup-loading.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/todo-item.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/use-connected.tsx +0 -0
- /package/src/{tui → interfaces/tui}/component/workspace-label.tsx +0 -0
- /package/src/{tui → interfaces/tui}/config/cwd.ts +0 -0
- /package/src/{tui → interfaces/tui}/config/keybind.ts +0 -0
- /package/src/{tui → interfaces/tui}/config/tui-migrate.ts +0 -0
- /package/src/{tui → interfaces/tui}/config/tui-schema.ts +0 -0
- /package/src/{tui → interfaces/tui}/config/tui.ts +0 -0
- /package/src/{tui → interfaces/tui}/context/aggregate-failures.ts +0 -0
- /package/src/{tui → interfaces/tui}/context/args.tsx +0 -0
- /package/src/{tui → interfaces/tui}/context/command-palette.tsx +0 -0
- /package/src/{tui → interfaces/tui}/context/directory.ts +0 -0
- /package/src/{tui → interfaces/tui}/context/editor-zed.ts +0 -0
- /package/src/{tui → interfaces/tui}/context/editor.ts +0 -0
- /package/src/{tui → interfaces/tui}/context/event-apx.ts +0 -0
- /package/src/{tui → interfaces/tui}/context/event.ts +0 -0
- /package/src/{tui → interfaces/tui}/context/exit.tsx +0 -0
- /package/src/{tui → interfaces/tui}/context/helper.tsx +0 -0
- /package/src/{tui → interfaces/tui}/context/kv.tsx +0 -0
- /package/src/{tui → interfaces/tui}/context/local.tsx +0 -0
- /package/src/{tui → interfaces/tui}/context/path-format.tsx +0 -0
- /package/src/{tui → interfaces/tui}/context/project-apx.tsx +0 -0
- /package/src/{tui → interfaces/tui}/context/project.tsx +0 -0
- /package/src/{tui → interfaces/tui}/context/prompt.tsx +0 -0
- /package/src/{tui → interfaces/tui}/context/route.tsx +0 -0
- /package/src/{tui → interfaces/tui}/context/sdk.tsx +0 -0
- /package/src/{tui → interfaces/tui}/context/sync-v2.tsx +0 -0
- /package/src/{tui → interfaces/tui}/context/sync.tsx +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/aura.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/ayu.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/carbonfox.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/catppuccin-frappe.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/catppuccin-macchiato.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/catppuccin.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/cobalt2.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/cursor.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/dracula.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/everforest.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/flexoki.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/github.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/gruvbox.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/kanagawa.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/lucent-orng.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/material.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/matrix.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/mercury.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/monokai.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/nightowl.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/nord.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/one-dark.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/opencode.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/orng.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/osaka-jade.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/palenight.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/rosepine.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/solarized.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/synthwave84.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/tokyonight.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/vercel.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/vesper.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme/zenburn.json +0 -0
- /package/src/{tui → interfaces/tui}/context/theme.tsx +0 -0
- /package/src/{tui → interfaces/tui}/context/tui-config.tsx +0 -0
- /package/src/{tui → interfaces/tui}/event.ts +0 -0
- /package/src/{tui → interfaces/tui}/feature-plugins/home/footer.tsx +0 -0
- /package/src/{tui → interfaces/tui}/feature-plugins/home/tips-view.tsx +0 -0
- /package/src/{tui → interfaces/tui}/feature-plugins/home/tips.tsx +0 -0
- /package/src/{tui → interfaces/tui}/feature-plugins/sidebar/context.tsx +0 -0
- /package/src/{tui → interfaces/tui}/feature-plugins/sidebar/files.tsx +0 -0
- /package/src/{tui → interfaces/tui}/feature-plugins/sidebar/footer.tsx +0 -0
- /package/src/{tui → interfaces/tui}/feature-plugins/sidebar/lsp.tsx +0 -0
- /package/src/{tui → interfaces/tui}/feature-plugins/sidebar/mcp.tsx +0 -0
- /package/src/{tui → interfaces/tui}/feature-plugins/sidebar/todo.tsx +0 -0
- /package/src/{tui → interfaces/tui}/feature-plugins/system/plugins.tsx +0 -0
- /package/src/{tui → interfaces/tui}/feature-plugins/system/session-v2.tsx +0 -0
- /package/src/{tui → interfaces/tui}/feature-plugins/system/which-key.tsx +0 -0
- /package/src/{tui → interfaces/tui}/keymap.tsx +0 -0
- /package/src/{tui → interfaces/tui}/layer.ts +0 -0
- /package/src/{tui → interfaces/tui}/plugin/api.tsx +0 -0
- /package/src/{tui → interfaces/tui}/plugin/command-shim.ts +0 -0
- /package/src/{tui → interfaces/tui}/plugin/internal.ts +0 -0
- /package/src/{tui → interfaces/tui}/plugin/runtime.ts +0 -0
- /package/src/{tui → interfaces/tui}/plugin/slots.tsx +0 -0
- /package/src/{tui → interfaces/tui}/routes/home.tsx +0 -0
- /package/src/{tui → interfaces/tui}/routes/session/dialog-fork-from-timeline.tsx +0 -0
- /package/src/{tui → interfaces/tui}/routes/session/dialog-message.tsx +0 -0
- /package/src/{tui → interfaces/tui}/routes/session/dialog-subagent.tsx +0 -0
- /package/src/{tui → interfaces/tui}/routes/session/dialog-timeline.tsx +0 -0
- /package/src/{tui → interfaces/tui}/routes/session/footer.tsx +0 -0
- /package/src/{tui → interfaces/tui}/routes/session/permission.tsx +0 -0
- /package/src/{tui → interfaces/tui}/routes/session/question.tsx +0 -0
- /package/src/{tui → interfaces/tui}/routes/session/sidebar.tsx +0 -0
- /package/src/{tui → interfaces/tui}/routes/session/subagent-footer.tsx +0 -0
- /package/src/{tui → interfaces/tui}/run.ts +0 -0
- /package/src/{tui → interfaces/tui}/thread.ts +0 -0
- /package/src/{tui → interfaces/tui}/ui/dialog-alert.tsx +0 -0
- /package/src/{tui → interfaces/tui}/ui/dialog-confirm.tsx +0 -0
- /package/src/{tui → interfaces/tui}/ui/dialog-export-options.tsx +0 -0
- /package/src/{tui → interfaces/tui}/ui/dialog-help.tsx +0 -0
- /package/src/{tui → interfaces/tui}/ui/dialog-prompt.tsx +0 -0
- /package/src/{tui → interfaces/tui}/ui/dialog-select.tsx +0 -0
- /package/src/{tui → interfaces/tui}/ui/dialog.tsx +0 -0
- /package/src/{tui → interfaces/tui}/ui/link.tsx +0 -0
- /package/src/{tui → interfaces/tui}/ui/spinner.ts +0 -0
- /package/src/{tui → interfaces/tui}/ui/toast.tsx +0 -0
- /package/src/{tui → interfaces/tui}/util/editor.ts +0 -0
- /package/src/{tui → interfaces/tui}/util/model.ts +0 -0
- /package/src/{tui → interfaces/tui}/util/provider-origin.ts +0 -0
- /package/src/{tui → interfaces/tui}/util/revert-diff.ts +0 -0
- /package/src/{tui → interfaces/tui}/util/scroll.ts +0 -0
- /package/src/{tui → interfaces/tui}/util/selection.ts +0 -0
- /package/src/{tui → interfaces/tui}/util/signal.ts +0 -0
- /package/src/{tui → interfaces/tui}/util/sound.ts +0 -0
- /package/src/{tui → interfaces/tui}/util/transcript.ts +0 -0
- /package/src/{tui → interfaces/tui}/validate-session.ts +0 -0
- /package/src/{tui → interfaces/tui}/win32.ts +0 -0
- /package/src/{tui → interfaces/tui}/worker.ts +0 -0
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "tw-animate-css";
|
|
3
|
+
|
|
4
|
+
@custom-variant dark (&:is(.dark *));
|
|
5
|
+
|
|
6
|
+
@theme inline {
|
|
7
|
+
--color-background: hsl(var(--background));
|
|
8
|
+
--color-foreground: hsl(var(--foreground));
|
|
9
|
+
--color-card: hsl(var(--card));
|
|
10
|
+
--color-card-foreground: hsl(var(--card-foreground));
|
|
11
|
+
--color-popover: hsl(var(--popover));
|
|
12
|
+
--color-popover-foreground: hsl(var(--popover-foreground));
|
|
13
|
+
--color-muted: hsl(var(--muted));
|
|
14
|
+
--color-muted-fg: hsl(var(--muted-foreground));
|
|
15
|
+
--color-muted-foreground: hsl(var(--muted-foreground));
|
|
16
|
+
--color-accent: hsl(var(--accent));
|
|
17
|
+
--color-accent-fg: hsl(var(--accent-foreground));
|
|
18
|
+
--color-accent-foreground: hsl(var(--accent-foreground));
|
|
19
|
+
--color-secondary: hsl(var(--secondary));
|
|
20
|
+
--color-secondary-foreground: hsl(var(--secondary-foreground));
|
|
21
|
+
--color-border: hsl(var(--border));
|
|
22
|
+
--color-input: hsl(var(--input));
|
|
23
|
+
--color-ring: hsl(var(--ring));
|
|
24
|
+
--color-primary: hsl(var(--primary));
|
|
25
|
+
--color-primary-fg: hsl(var(--primary-foreground));
|
|
26
|
+
--color-primary-foreground: hsl(var(--primary-foreground));
|
|
27
|
+
--color-destructive: hsl(var(--destructive));
|
|
28
|
+
--color-destructive-foreground: hsl(var(--destructive-foreground));
|
|
29
|
+
--color-sidebar: hsl(var(--sidebar));
|
|
30
|
+
--color-sidebar-foreground: hsl(var(--sidebar-foreground));
|
|
31
|
+
--color-sidebar-primary: hsl(var(--sidebar-primary));
|
|
32
|
+
--color-sidebar-primary-foreground: hsl(var(--sidebar-primary-foreground));
|
|
33
|
+
--color-sidebar-accent: hsl(var(--sidebar-accent));
|
|
34
|
+
--color-sidebar-accent-foreground: hsl(var(--sidebar-accent-foreground));
|
|
35
|
+
--color-sidebar-border: hsl(var(--sidebar-border));
|
|
36
|
+
--color-sidebar-ring: hsl(var(--sidebar-ring));
|
|
37
|
+
--radius-lg: var(--radius);
|
|
38
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
39
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
40
|
+
--font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
41
|
+
--font-mono: ui-monospace, "SF Mono", Menlo, monospace;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* shadcn-new design tokens. Dark by default — light handled by toggling
|
|
45
|
+
.dark off the <html> tag. Match Tailwind's `colors` config above. */
|
|
46
|
+
@layer base {
|
|
47
|
+
:root {
|
|
48
|
+
--background: 220 16% 95%;
|
|
49
|
+
--foreground: 222 16% 16%;
|
|
50
|
+
--card: 0 0% 100%;
|
|
51
|
+
--card-foreground: 222 16% 16%;
|
|
52
|
+
--popover: 0 0% 100%;
|
|
53
|
+
--popover-foreground: 222 16% 16%;
|
|
54
|
+
--muted: 220 14% 96%;
|
|
55
|
+
--muted-foreground: 220 9% 46%;
|
|
56
|
+
--accent: 220 14% 96%;
|
|
57
|
+
--accent-foreground: 222 16% 16%;
|
|
58
|
+
--secondary: 220 14% 96%;
|
|
59
|
+
--secondary-foreground: 222 16% 16%;
|
|
60
|
+
--border: 220 13% 91%;
|
|
61
|
+
--input: 220 13% 91%;
|
|
62
|
+
--ring: 222 80% 56%;
|
|
63
|
+
--primary: 222 47% 11%;
|
|
64
|
+
--primary-foreground: 210 20% 98%;
|
|
65
|
+
--destructive: 0 72% 51%;
|
|
66
|
+
--destructive-foreground: 210 20% 98%;
|
|
67
|
+
--radius: 0.75rem;
|
|
68
|
+
--chart-1: 220 70% 50%;
|
|
69
|
+
--chart-2: 160 60% 45%;
|
|
70
|
+
--chart-3: 30 80% 55%;
|
|
71
|
+
--chart-4: 280 65% 60%;
|
|
72
|
+
--chart-5: 340 75% 55%;
|
|
73
|
+
--sidebar: 0 0% 100%;
|
|
74
|
+
--sidebar-foreground: 222 16% 16%;
|
|
75
|
+
--sidebar-primary: 222 47% 11%;
|
|
76
|
+
--sidebar-primary-foreground: 210 20% 98%;
|
|
77
|
+
--sidebar-accent: 220 14% 96%;
|
|
78
|
+
--sidebar-accent-foreground: 222 16% 16%;
|
|
79
|
+
--sidebar-border: 220 13% 91%;
|
|
80
|
+
--sidebar-ring: 222 80% 56%;
|
|
81
|
+
}
|
|
82
|
+
.dark {
|
|
83
|
+
--background: 222 22% 5%;
|
|
84
|
+
--foreground: 210 16% 92%;
|
|
85
|
+
--card: 222 16% 11%;
|
|
86
|
+
--card-foreground: 210 16% 92%;
|
|
87
|
+
--popover: 222 16% 11%;
|
|
88
|
+
--popover-foreground: 210 16% 92%;
|
|
89
|
+
--muted: 222 14% 14%;
|
|
90
|
+
--muted-foreground: 217 10% 64%;
|
|
91
|
+
--accent: 222 14% 17%;
|
|
92
|
+
--accent-foreground: 210 16% 92%;
|
|
93
|
+
--secondary: 222 14% 17%;
|
|
94
|
+
--secondary-foreground: 210 16% 92%;
|
|
95
|
+
--border: 222 14% 18%;
|
|
96
|
+
--input: 222 14% 18%;
|
|
97
|
+
--ring: 217 91% 60%;
|
|
98
|
+
--primary: 210 16% 92%;
|
|
99
|
+
--primary-foreground: 222 18% 8%;
|
|
100
|
+
--destructive: 0 62% 50%;
|
|
101
|
+
--destructive-foreground: 210 16% 92%;
|
|
102
|
+
--chart-1: 217 91% 60%;
|
|
103
|
+
--chart-2: 160 60% 45%;
|
|
104
|
+
--chart-3: 30 80% 55%;
|
|
105
|
+
--chart-4: 280 65% 60%;
|
|
106
|
+
--chart-5: 340 75% 55%;
|
|
107
|
+
--sidebar: 222 16% 11%;
|
|
108
|
+
--sidebar-foreground: 210 16% 92%;
|
|
109
|
+
--sidebar-primary: 217 91% 60%;
|
|
110
|
+
--sidebar-primary-foreground: 210 16% 92%;
|
|
111
|
+
--sidebar-accent: 222 14% 17%;
|
|
112
|
+
--sidebar-accent-foreground: 210 16% 92%;
|
|
113
|
+
--sidebar-border: 222 14% 18%;
|
|
114
|
+
--sidebar-ring: 217 91% 60%;
|
|
115
|
+
}
|
|
116
|
+
body {
|
|
117
|
+
font-feature-settings: "rlig" 1, "calt" 1;
|
|
118
|
+
@apply bg-background text-foreground;
|
|
119
|
+
}
|
|
120
|
+
* {
|
|
121
|
+
@apply border-border outline-ring/50;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Subtle scrollbar that doesn't fight the dark theme. */
|
|
126
|
+
::-webkit-scrollbar { width: 10px; height: 10px; }
|
|
127
|
+
::-webkit-scrollbar-thumb { background: hsl(var(--border)); border-radius: 5px; }
|
|
128
|
+
::-webkit-scrollbar-thumb:hover { background: hsl(var(--muted-foreground)); }
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
// Daemon shapes. Mirror the responses returned by src/host/daemon/api/*.
|
|
2
|
+
// If you find yourself reaching for `any`, add a type here first.
|
|
3
|
+
|
|
4
|
+
export type ProjectKind =
|
|
5
|
+
| "personal"
|
|
6
|
+
| "company"
|
|
7
|
+
| "app"
|
|
8
|
+
| "software"
|
|
9
|
+
| "default"
|
|
10
|
+
| "other";
|
|
11
|
+
|
|
12
|
+
export interface ProjectEntry {
|
|
13
|
+
id: number | string;
|
|
14
|
+
path: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
kind?: ProjectKind;
|
|
17
|
+
agents?: number;
|
|
18
|
+
storagePath?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface AgentEntry {
|
|
22
|
+
slug: string;
|
|
23
|
+
role: string | null;
|
|
24
|
+
model: string | null;
|
|
25
|
+
language: string | null;
|
|
26
|
+
description: string | null;
|
|
27
|
+
is_master?: boolean;
|
|
28
|
+
parent?: string | null;
|
|
29
|
+
type?: string | null;
|
|
30
|
+
area?: string | null;
|
|
31
|
+
skills: string[];
|
|
32
|
+
tools: string[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface AgentDetail extends AgentEntry {
|
|
36
|
+
memory: string;
|
|
37
|
+
system?: string;
|
|
38
|
+
extra?: Record<string, unknown>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface RoutineEntry {
|
|
42
|
+
name: string;
|
|
43
|
+
kind: "heartbeat" | "exec_agent" | "super_agent" | "telegram" | "shell";
|
|
44
|
+
schedule: string;
|
|
45
|
+
spec: Record<string, unknown>;
|
|
46
|
+
enabled: boolean;
|
|
47
|
+
next_run_at: string | null;
|
|
48
|
+
last_run_at: string | null;
|
|
49
|
+
last_status: string | null;
|
|
50
|
+
last_error: string | null;
|
|
51
|
+
pre_commands?: string[];
|
|
52
|
+
post_commands?: string[];
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface TaskEntry {
|
|
56
|
+
id: string;
|
|
57
|
+
state: "open" | "done" | "dropped";
|
|
58
|
+
title: string;
|
|
59
|
+
body: string | null;
|
|
60
|
+
tags: string[];
|
|
61
|
+
due: string | null;
|
|
62
|
+
agent: string | null;
|
|
63
|
+
source: string | null;
|
|
64
|
+
created_at: string;
|
|
65
|
+
updated_at: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface McpEntry {
|
|
69
|
+
name: string;
|
|
70
|
+
source: "apc" | "runtime" | "global" | string;
|
|
71
|
+
transport: string;
|
|
72
|
+
enabled: boolean;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface MessageEntry {
|
|
76
|
+
ts: string;
|
|
77
|
+
channel: string;
|
|
78
|
+
direction: "in" | "out";
|
|
79
|
+
type: string;
|
|
80
|
+
author: string | null;
|
|
81
|
+
actor_id: string | null;
|
|
82
|
+
actor_kind: string | null;
|
|
83
|
+
body: string;
|
|
84
|
+
meta: Record<string, unknown>;
|
|
85
|
+
agent_slug: string | null;
|
|
86
|
+
session_id: string | number | null;
|
|
87
|
+
external_id: string | null;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface TelegramChannel {
|
|
91
|
+
name: string;
|
|
92
|
+
bot_token?: string;
|
|
93
|
+
chat_id?: string;
|
|
94
|
+
project?: string;
|
|
95
|
+
route_to_agent?: string;
|
|
96
|
+
respond_with_engine?: boolean;
|
|
97
|
+
poll_interval_ms?: number;
|
|
98
|
+
owner_user_id?: number | string;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface TelegramChannelsResponse { channels: TelegramChannel[] }
|
|
102
|
+
|
|
103
|
+
export interface TelegramContact {
|
|
104
|
+
user_id: number | string;
|
|
105
|
+
name?: string;
|
|
106
|
+
username?: string;
|
|
107
|
+
role?: string;
|
|
108
|
+
note?: string;
|
|
109
|
+
first_seen?: string;
|
|
110
|
+
last_seen?: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface TelegramRole { tools: "*" | string[] }
|
|
114
|
+
|
|
115
|
+
export interface TelegramContactsResponse {
|
|
116
|
+
contacts: TelegramContact[];
|
|
117
|
+
roles: Record<string, TelegramRole>;
|
|
118
|
+
channel_owners: { name: string; owner_user_id: number | string | null }[];
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export interface EngineSummary { engines: string[] }
|
|
122
|
+
|
|
123
|
+
export interface HealthSummary { status: string; version: string; uptime_s: number }
|
|
124
|
+
|
|
125
|
+
export interface ConversationListEntry {
|
|
126
|
+
id: string;
|
|
127
|
+
filename: string;
|
|
128
|
+
agent_slug: string;
|
|
129
|
+
started_at: string;
|
|
130
|
+
ended_at?: string;
|
|
131
|
+
channel?: string;
|
|
132
|
+
messages?: number;
|
|
133
|
+
title?: string;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface ConversationMessage {
|
|
137
|
+
role: "user" | "assistant" | "system" | "tool";
|
|
138
|
+
content: string;
|
|
139
|
+
ts?: string;
|
|
140
|
+
name?: string;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export interface ConversationDetail {
|
|
144
|
+
id: string;
|
|
145
|
+
agent_slug: string;
|
|
146
|
+
channel?: string;
|
|
147
|
+
messages: ConversationMessage[];
|
|
148
|
+
meta?: Record<string, unknown>;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface PairedClient {
|
|
152
|
+
id: string;
|
|
153
|
+
label: string;
|
|
154
|
+
kind: string;
|
|
155
|
+
created_at: string;
|
|
156
|
+
last_seen: string | null;
|
|
157
|
+
token_suffix: string;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface PairInit {
|
|
161
|
+
pairing_id: string;
|
|
162
|
+
expires_at: string;
|
|
163
|
+
ttl_ms: number;
|
|
164
|
+
fingerprint: string;
|
|
165
|
+
daemon: { host: string; port: number };
|
|
166
|
+
lan_urls: string[];
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export interface PairStatus {
|
|
170
|
+
status: "pending" | "confirmed" | "expired" | "unknown";
|
|
171
|
+
device_label?: string;
|
|
172
|
+
client_id?: string;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export interface ProjectConfig {
|
|
176
|
+
effective: Record<string, unknown>;
|
|
177
|
+
project_only: Record<string, unknown>;
|
|
178
|
+
project_config_path: string;
|
|
179
|
+
apc_project: Record<string, unknown>;
|
|
180
|
+
project_json_path: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export interface Identity {
|
|
184
|
+
agent_name?: string;
|
|
185
|
+
owner_name?: string;
|
|
186
|
+
personality?: string;
|
|
187
|
+
owner_context?: string;
|
|
188
|
+
language?: string;
|
|
189
|
+
timezone?: string;
|
|
190
|
+
updated?: string;
|
|
191
|
+
created?: string;
|
|
192
|
+
last_wakeup?: string | null;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface SuperAgentConfig {
|
|
196
|
+
enabled: boolean;
|
|
197
|
+
name: string;
|
|
198
|
+
model: string;
|
|
199
|
+
system: string;
|
|
200
|
+
permission_mode: string;
|
|
201
|
+
allowed_tools: string[];
|
|
202
|
+
model_fallback: {
|
|
203
|
+
enabled?: boolean;
|
|
204
|
+
models?: string[];
|
|
205
|
+
order?: string[];
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/** ~/.apx/config.json shape (partial — only what we read/write today). */
|
|
210
|
+
export interface GlobalConfig {
|
|
211
|
+
port?: number;
|
|
212
|
+
host?: string;
|
|
213
|
+
log_level?: string;
|
|
214
|
+
projects?: Array<{ path: string }>;
|
|
215
|
+
user?: { language?: string; locale?: string; timezone?: string };
|
|
216
|
+
super_agent?: Partial<SuperAgentConfig>;
|
|
217
|
+
engines?: Record<string, {
|
|
218
|
+
api_key?: string;
|
|
219
|
+
base_url?: string;
|
|
220
|
+
name?: string;
|
|
221
|
+
engine?: string;
|
|
222
|
+
default_model?: string;
|
|
223
|
+
default_temperature?: number;
|
|
224
|
+
default_max_tokens?: number;
|
|
225
|
+
is_active?: boolean;
|
|
226
|
+
context_limit_tokens?: number;
|
|
227
|
+
model_context_limits?: Record<string, number>;
|
|
228
|
+
pricing?: {
|
|
229
|
+
input_per_million?: number;
|
|
230
|
+
output_per_million?: number;
|
|
231
|
+
cache_read_per_million?: number;
|
|
232
|
+
cache_write_per_million?: number;
|
|
233
|
+
};
|
|
234
|
+
}>;
|
|
235
|
+
telegram?: {
|
|
236
|
+
enabled?: boolean;
|
|
237
|
+
poll_interval_ms?: number;
|
|
238
|
+
route_to_agent?: string;
|
|
239
|
+
respond_with_engine?: boolean;
|
|
240
|
+
channels?: TelegramChannel[];
|
|
241
|
+
};
|
|
242
|
+
voice?: Record<string, unknown>;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/** Token accounting accumulated across a super-agent turn. */
|
|
246
|
+
export interface ChatUsage {
|
|
247
|
+
input_tokens?: number;
|
|
248
|
+
output_tokens?: number;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/** A single tool invocation as surfaced by the agent loop's trace. */
|
|
252
|
+
export interface ToolTrace {
|
|
253
|
+
id: string;
|
|
254
|
+
tool: string;
|
|
255
|
+
args?: Record<string, unknown>;
|
|
256
|
+
result?: unknown;
|
|
257
|
+
pending?: boolean;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* NDJSON events emitted by the super-agent loop (see core/agent/run-agent.js).
|
|
262
|
+
* The fields are a union over every event `type`; consumers branch on `type`.
|
|
263
|
+
*/
|
|
264
|
+
export interface ChatStreamEvent {
|
|
265
|
+
type?: string;
|
|
266
|
+
// text streaming (assistant_text carries `text`)
|
|
267
|
+
delta?: string;
|
|
268
|
+
text?: string;
|
|
269
|
+
content?: string;
|
|
270
|
+
// diagnostics
|
|
271
|
+
error?: string;
|
|
272
|
+
iteration?: number;
|
|
273
|
+
model?: string;
|
|
274
|
+
provider?: string;
|
|
275
|
+
reason?: string;
|
|
276
|
+
retry_with?: string;
|
|
277
|
+
from_fallback?: boolean;
|
|
278
|
+
tools?: string[];
|
|
279
|
+
streak?: number;
|
|
280
|
+
// tool_start / tool_result / tool_deduped
|
|
281
|
+
trace?: ToolTrace;
|
|
282
|
+
// final
|
|
283
|
+
result?: {
|
|
284
|
+
text?: string;
|
|
285
|
+
usage?: ChatUsage;
|
|
286
|
+
name?: string;
|
|
287
|
+
trace?: ToolTrace[];
|
|
288
|
+
};
|
|
289
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/** @type {import('tailwindcss').Config} */
|
|
2
|
+
export default {
|
|
3
|
+
darkMode: ["class"],
|
|
4
|
+
content: ["./index.html", "./src/**/*.{ts,tsx}"],
|
|
5
|
+
theme: {
|
|
6
|
+
extend: {
|
|
7
|
+
colors: {
|
|
8
|
+
// shadcn-new tokens. We use CSS vars so theme switching is one root
|
|
9
|
+
// class flip; no Tailwind config edits to add a theme.
|
|
10
|
+
background: "hsl(var(--background) / <alpha-value>)",
|
|
11
|
+
foreground: "hsl(var(--foreground) / <alpha-value>)",
|
|
12
|
+
card: "hsl(var(--card) / <alpha-value>)",
|
|
13
|
+
"card-foreground": "hsl(var(--card-foreground) / <alpha-value>)",
|
|
14
|
+
muted: "hsl(var(--muted) / <alpha-value>)",
|
|
15
|
+
"muted-fg": "hsl(var(--muted-foreground) / <alpha-value>)",
|
|
16
|
+
"muted-foreground": "hsl(var(--muted-foreground) / <alpha-value>)",
|
|
17
|
+
accent: "hsl(var(--accent) / <alpha-value>)",
|
|
18
|
+
"accent-fg":"hsl(var(--accent-foreground) / <alpha-value>)",
|
|
19
|
+
"accent-foreground":"hsl(var(--accent-foreground) / <alpha-value>)",
|
|
20
|
+
popover: "hsl(var(--popover) / <alpha-value>)",
|
|
21
|
+
"popover-foreground": "hsl(var(--popover-foreground) / <alpha-value>)",
|
|
22
|
+
secondary: "hsl(var(--secondary) / <alpha-value>)",
|
|
23
|
+
"secondary-foreground": "hsl(var(--secondary-foreground) / <alpha-value>)",
|
|
24
|
+
border: "hsl(var(--border) / <alpha-value>)",
|
|
25
|
+
input: "hsl(var(--input) / <alpha-value>)",
|
|
26
|
+
ring: "hsl(var(--ring) / <alpha-value>)",
|
|
27
|
+
primary: "hsl(var(--primary) / <alpha-value>)",
|
|
28
|
+
"primary-fg":"hsl(var(--primary-foreground) / <alpha-value>)",
|
|
29
|
+
"primary-foreground":"hsl(var(--primary-foreground) / <alpha-value>)",
|
|
30
|
+
destructive:"hsl(var(--destructive) / <alpha-value>)",
|
|
31
|
+
"destructive-foreground":"hsl(var(--destructive-foreground) / <alpha-value>)",
|
|
32
|
+
sidebar: "hsl(var(--sidebar) / <alpha-value>)",
|
|
33
|
+
"sidebar-foreground": "hsl(var(--sidebar-foreground) / <alpha-value>)",
|
|
34
|
+
"sidebar-primary": "hsl(var(--sidebar-primary) / <alpha-value>)",
|
|
35
|
+
"sidebar-primary-foreground": "hsl(var(--sidebar-primary-foreground) / <alpha-value>)",
|
|
36
|
+
"sidebar-accent": "hsl(var(--sidebar-accent) / <alpha-value>)",
|
|
37
|
+
"sidebar-accent-foreground": "hsl(var(--sidebar-accent-foreground) / <alpha-value>)",
|
|
38
|
+
"sidebar-border": "hsl(var(--sidebar-border) / <alpha-value>)",
|
|
39
|
+
"sidebar-ring": "hsl(var(--sidebar-ring) / <alpha-value>)",
|
|
40
|
+
},
|
|
41
|
+
borderRadius: {
|
|
42
|
+
lg: "var(--radius)",
|
|
43
|
+
md: "calc(var(--radius) - 2px)",
|
|
44
|
+
sm: "calc(var(--radius) - 4px)",
|
|
45
|
+
},
|
|
46
|
+
fontFamily: {
|
|
47
|
+
sans: ["ui-sans-serif", "system-ui", "-apple-system", "Segoe UI", "Roboto"],
|
|
48
|
+
mono: ["ui-monospace", "SF Mono", "Menlo", "monospace"],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
plugins: [],
|
|
53
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"allowImportingTsExtensions": true,
|
|
10
|
+
"resolveJsonModule": true,
|
|
11
|
+
"isolatedModules": true,
|
|
12
|
+
"moduleDetection": "force",
|
|
13
|
+
"noEmit": true,
|
|
14
|
+
"jsx": "react-jsx",
|
|
15
|
+
"strict": true,
|
|
16
|
+
"noUnusedLocals": false,
|
|
17
|
+
"noUnusedParameters": false,
|
|
18
|
+
"noFallthroughCasesInSwitch": true,
|
|
19
|
+
"paths": {
|
|
20
|
+
"@/*": ["./src/*"]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"include": ["src", "vite.config.ts"]
|
|
24
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineConfig } from "vite";
|
|
2
|
+
import react from "@vitejs/plugin-react";
|
|
3
|
+
import tailwindcss from "@tailwindcss/vite";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
|
|
6
|
+
// Vite config for the APX admin panel.
|
|
7
|
+
//
|
|
8
|
+
// - Single SPA, no SSR (this is a local admin tool).
|
|
9
|
+
// - During `vite dev`, every daemon API prefix is proxied to the running
|
|
10
|
+
// daemon so we develop the UI with hot reload against REAL data. Frontend
|
|
11
|
+
// routes (/, /settings, /p/:id) are NOT listed, so vite serves index.html
|
|
12
|
+
// for them (SPA routing).
|
|
13
|
+
// - `vite build` emits to ./dist; the daemon serves that folder when present.
|
|
14
|
+
|
|
15
|
+
const DAEMON_TARGET = process.env.APX_DAEMON_URL || "http://127.0.0.1:7430";
|
|
16
|
+
|
|
17
|
+
// Keep in sync with API_PREFIXES in src/host/daemon/api/shared.js — that's the
|
|
18
|
+
// source of truth for what is a daemon route. A missing prefix means `vite dev`
|
|
19
|
+
// silently serves the SPA shell for that call instead of the real response
|
|
20
|
+
// (e.g. an empty /pair/list).
|
|
21
|
+
const API_PREFIXES = [
|
|
22
|
+
"/health", "/admin", "/projects", "/telegram", "/engines", "/runtimes",
|
|
23
|
+
"/messages", "/sessions", "/tools", "/mcp", "/voice", "/tts", "/desktop", "/overlay",
|
|
24
|
+
"/transcribe", "/run", "/files", "/memory", "/env", "/pair", "/deck",
|
|
25
|
+
"/super-agent", "/identity", "/agents", "/tasks", "/code",
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
const proxy = Object.fromEntries(
|
|
29
|
+
API_PREFIXES.map((p) => [p, { target: DAEMON_TARGET, changeOrigin: false, ws: true }])
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
export default defineConfig({
|
|
33
|
+
plugins: [react(), tailwindcss()],
|
|
34
|
+
base: "/",
|
|
35
|
+
resolve: {
|
|
36
|
+
alias: {
|
|
37
|
+
"@": path.resolve(__dirname, "./src"),
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
server: {
|
|
41
|
+
port: 7431,
|
|
42
|
+
strictPort: false,
|
|
43
|
+
proxy,
|
|
44
|
+
},
|
|
45
|
+
build: {
|
|
46
|
+
outDir: "dist",
|
|
47
|
+
sourcemap: true,
|
|
48
|
+
target: "es2022",
|
|
49
|
+
},
|
|
50
|
+
});
|