@cortex-agent/server 2026.5.25 → 2026.6.15
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/defaults/config/thread-templates.json +28 -1
- package/defaults/hooks/cortex-md-injector.mjs +47 -31
- package/defaults/hooks/post-task-hook.mjs +6 -0
- package/defaults/hooks/task-status-check.mjs +8 -0
- package/defaults/mcp-config-slack.json +11 -0
- package/defaults/plugins/cortex-stage-gate/skills/task/SKILL.md +18 -0
- package/defaults/plugins/cortex-system/skills/schedule/SKILL.md +5 -6
- package/defaults/prompts/directives/manager.md +67 -0
- package/dist/agent-adapter/claude/adapter-tui.d.ts +35 -3
- package/dist/agent-adapter/claude/adapter-tui.js +91 -12
- package/dist/agent-adapter/claude/adapter.js +11 -0
- package/dist/agent-adapter/claude/defaults.d.ts +30 -0
- package/dist/agent-adapter/claude/defaults.js +30 -0
- package/dist/agent-adapter/claude/jsonl-tail.d.ts +2 -2
- package/dist/agent-adapter/claude/jsonl-tail.js +25 -20
- package/dist/agent-adapter/claude/spawn-args.d.ts +11 -0
- package/dist/agent-adapter/claude/spawn-args.js +49 -7
- package/dist/agent-adapter/claude/tmux-control.d.ts +20 -0
- package/dist/agent-adapter/claude/tmux-control.js +54 -8
- package/dist/agent-adapter/codex/adapter.js +1 -1
- package/dist/agent-adapter/normalize/event-types.d.ts +1 -0
- package/dist/agent-adapter/pi/adapter.js +46 -19
- package/dist/agent-adapter/pi/agent-dir.d.ts +21 -0
- package/dist/agent-adapter/pi/agent-dir.js +53 -2
- package/dist/agent-adapter/pi/event-parser.js +13 -1
- package/dist/agent-adapter/pi/mcp-bridge.d.ts +12 -0
- package/dist/agent-adapter/pi/mcp-bridge.js +47 -9
- package/dist/agent-adapter/pi/tool-shims.d.ts +14 -0
- package/dist/agent-adapter/pi/tool-shims.js +167 -140
- package/dist/agent-adapter/types.d.ts +7 -2
- package/dist/core/atomic-write.js +21 -0
- package/dist/core/config-generator.d.ts +10 -0
- package/dist/core/config-generator.js +28 -0
- package/dist/core/gateway-generator.d.ts +77 -7
- package/dist/core/gateway-generator.js +323 -30
- package/dist/core/i18n.d.ts +19 -0
- package/dist/core/i18n.js +46 -0
- package/dist/core/icons.d.ts +68 -0
- package/dist/core/icons.js +67 -0
- package/dist/core/locales/en.d.ts +438 -0
- package/dist/core/locales/en.js +24 -0
- package/dist/core/locales/slices/commands.d.ts +214 -0
- package/dist/core/locales/slices/commands.js +462 -0
- package/dist/core/locales/slices/init.d.ts +121 -0
- package/dist/core/locales/slices/init.js +380 -0
- package/dist/core/locales/slices/interactions.d.ts +47 -0
- package/dist/core/locales/slices/interactions.js +102 -0
- package/dist/core/locales/slices/lang.d.ts +8 -0
- package/dist/core/locales/slices/lang.js +18 -0
- package/dist/core/locales/slices/scheduling.d.ts +36 -0
- package/dist/core/locales/slices/scheduling.js +74 -0
- package/dist/core/locales/slices/startup.d.ts +6 -0
- package/dist/core/locales/slices/startup.js +14 -0
- package/dist/core/locales/slices/status.d.ts +20 -0
- package/dist/core/locales/slices/status.js +48 -0
- package/dist/core/locales/zh.d.ts +5 -0
- package/dist/core/locales/zh.js +23 -0
- package/dist/core/profile-generator.d.ts +6 -0
- package/dist/core/profile-generator.js +35 -7
- package/dist/core/running-executions.d.ts +51 -41
- package/dist/core/running-executions.js +120 -73
- package/dist/core/singleton-lock.d.ts +23 -0
- package/dist/core/singleton-lock.js +53 -0
- package/dist/core/status-format.js +4 -2
- package/dist/core/task-parser.d.ts +3 -0
- package/dist/core/task-parser.js +3 -1
- package/dist/core/types/thread-types.d.ts +54 -8
- package/dist/core/utils.d.ts +9 -1
- package/dist/core/utils.js +9 -1
- package/dist/domain/agents/config.d.ts +2 -1
- package/dist/domain/agents/config.js +25 -6
- package/dist/domain/agents/facade.d.ts +18 -0
- package/dist/domain/agents/facade.js +26 -3
- package/dist/domain/agents/profile-manager.d.ts +11 -0
- package/dist/domain/agents/profile-manager.js +21 -2
- package/dist/domain/costs/codex-usage-monitor.js +2 -1
- package/dist/domain/costs/rate-limit-throttle.js +14 -2
- package/dist/domain/executions/registry.d.ts +24 -0
- package/dist/domain/executions/registry.js +38 -0
- package/dist/domain/mcp/core-server.js +15 -3
- package/dist/domain/mcp/feishu/bitable.d.ts +3 -0
- package/dist/domain/mcp/feishu/bitable.js +168 -0
- package/dist/domain/mcp/feishu/block-types.d.ts +44 -0
- package/dist/domain/mcp/feishu/block-types.js +127 -0
- package/dist/domain/mcp/feishu/blocks-to-text.d.ts +19 -0
- package/dist/domain/mcp/feishu/blocks-to-text.js +43 -0
- package/dist/domain/mcp/feishu/client.d.ts +46 -0
- package/dist/domain/mcp/feishu/client.js +87 -0
- package/dist/domain/mcp/feishu/docx.d.ts +3 -0
- package/dist/domain/mcp/feishu/docx.js +163 -0
- package/dist/domain/mcp/feishu/drive.d.ts +23 -0
- package/dist/domain/mcp/feishu/drive.js +66 -0
- package/dist/domain/mcp/feishu/file.d.ts +14 -0
- package/dist/domain/mcp/feishu/file.js +107 -0
- package/dist/domain/mcp/feishu/index.d.ts +6 -0
- package/dist/domain/mcp/feishu/index.js +61 -0
- package/dist/domain/mcp/feishu/markdown-to-blocks.d.ts +40 -0
- package/dist/domain/mcp/feishu/markdown-to-blocks.js +191 -0
- package/dist/domain/mcp/feishu/sheets.d.ts +3 -0
- package/dist/domain/mcp/feishu/sheets.js +119 -0
- package/dist/domain/mcp/feishu/types.d.ts +26 -0
- package/dist/domain/mcp/feishu/types.js +38 -0
- package/dist/domain/mcp/feishu/user-auth.d.ts +140 -0
- package/dist/domain/mcp/feishu/user-auth.js +286 -0
- package/dist/domain/mcp/feishu/wiki.d.ts +3 -0
- package/dist/domain/mcp/feishu/wiki.js +77 -0
- package/dist/domain/mcp/feishu-server.d.ts +2 -0
- package/dist/domain/mcp/feishu-server.js +33 -0
- package/dist/domain/mcp/server.d.ts +0 -1
- package/dist/domain/mcp/server.js +6 -25
- package/dist/domain/mcp/slack-server.d.ts +3 -0
- package/dist/domain/mcp/slack-server.js +46 -0
- package/dist/domain/mcp/tools/context.js +1 -1
- package/dist/domain/mcp/tools/schedule.d.ts +1 -1
- package/dist/domain/mcp/tools/schedule.js +6 -20
- package/dist/domain/mcp/tools/slack.js +20 -7
- package/dist/domain/mcp/tools/thread-ops.d.ts +2 -0
- package/dist/domain/mcp/tools/thread-ops.js +121 -0
- package/dist/domain/mcp/tools/time.d.ts +2 -0
- package/dist/domain/mcp/tools/time.js +66 -0
- package/dist/domain/mcp/tools/tui-ask.js +1 -1
- package/dist/domain/mcp/tools/tui-plan.js +2 -2
- package/dist/domain/mcp/tui-server.js +1 -0
- package/dist/domain/monitor/disk-monitor.js +2 -1
- package/dist/domain/monitor/gpu-monitor.js +2 -1
- package/dist/domain/remote/client-hot-reload.js +3 -2
- package/dist/domain/remote/client-manager.js +8 -6
- package/dist/domain/scheduling/job-registry.d.ts +4 -0
- package/dist/domain/scheduling/job-registry.js +1 -0
- package/dist/domain/scheduling/jobs/_shared.js +2 -1
- package/dist/domain/scheduling/jobs/memory-index-regen.js +3 -2
- package/dist/domain/scheduling/jobs/scheduled-task.js +9 -23
- package/dist/domain/scheduling/jobs/sync-public.js +4 -3
- package/dist/domain/scheduling/jobs/target-dispatch.d.ts +1 -8
- package/dist/domain/scheduling/jobs/target-dispatch.js +0 -7
- package/dist/domain/scheduling/jobs/task-archive.js +3 -2
- package/dist/domain/scheduling/jobs/task-dispatch.js +126 -20
- package/dist/domain/scheduling/schedule-command.js +45 -43
- package/dist/domain/scheduling/scheduler.d.ts +1 -1
- package/dist/domain/scheduling/scheduler.js +2 -1
- package/dist/domain/sessions/session-hooks.d.ts +2 -2
- package/dist/domain/sessions/session-hooks.js +19 -18
- package/dist/domain/sessions/session-lifecycle.d.ts +38 -0
- package/dist/domain/sessions/session-lifecycle.js +44 -0
- package/dist/domain/system/github-release.d.ts +18 -0
- package/dist/domain/system/github-release.js +106 -0
- package/dist/domain/system/install-cli.d.ts +7 -0
- package/dist/domain/system/install-cli.js +106 -0
- package/dist/domain/system/preferences.d.ts +12 -0
- package/dist/domain/system/preferences.js +36 -0
- package/dist/domain/system/server-update-check.js +2 -2
- package/dist/domain/tasks/dispatch-utils.d.ts +58 -1
- package/dist/domain/tasks/dispatch-utils.js +53 -4
- package/dist/domain/tasks/dispatcher.d.ts +11 -2
- package/dist/domain/tasks/dispatcher.js +63 -7
- package/dist/domain/tasks/lint.js +28 -0
- package/dist/domain/tasks/mutator.d.ts +16 -3
- package/dist/domain/tasks/mutator.js +41 -12
- package/dist/domain/tasks/pending-tracker.js +6 -5
- package/dist/domain/tasks/system/task-cli.d.ts +2 -0
- package/dist/domain/tasks/system/task-cli.js +37 -6
- package/dist/domain/tasks/system/task-lifecycle-edit.js +6 -1
- package/dist/domain/tasks/system/task-mutations.d.ts +41 -3
- package/dist/domain/tasks/system/task-mutations.js +166 -8
- package/dist/domain/threads/contract.d.ts +17 -0
- package/dist/domain/threads/contract.js +59 -0
- package/dist/domain/threads/hook-runner.js +7 -6
- package/dist/domain/threads/index.d.ts +2 -0
- package/dist/domain/threads/index.js +3 -1
- package/dist/domain/threads/prompt-builder.d.ts +21 -1
- package/dist/domain/threads/prompt-builder.js +60 -4
- package/dist/domain/threads/runner.d.ts +6 -5
- package/dist/domain/threads/runner.js +128 -79
- package/dist/domain/threads/state-machine.d.ts +23 -21
- package/dist/domain/threads/state-machine.js +113 -54
- package/dist/domain/threads/template-loader.js +3 -2
- package/dist/domain/threads/tree.d.ts +45 -0
- package/dist/domain/threads/tree.js +171 -0
- package/dist/domain/tui-session/index.d.ts +2 -0
- package/dist/domain/tui-session/index.js +3 -0
- package/dist/domain/tui-session/tui-session-service.d.ts +2 -0
- package/dist/domain/tui-session/tui-session-service.js +103 -0
- package/dist/domain/tui-session/types.d.ts +67 -0
- package/dist/domain/tui-session/types.js +4 -0
- package/dist/domain/ui-service/index.d.ts +5 -0
- package/dist/domain/ui-service/index.js +3 -0
- package/dist/domain/ui-service/mutate/executions.d.ts +4 -0
- package/dist/domain/ui-service/mutate/executions.js +15 -0
- package/dist/domain/ui-service/mutate/schedules.d.ts +10 -0
- package/dist/domain/ui-service/mutate/schedules.js +39 -0
- package/dist/domain/ui-service/mutate/tasks.d.ts +23 -0
- package/dist/domain/ui-service/mutate/tasks.js +59 -0
- package/dist/domain/ui-service/mutate/threads.d.ts +4 -0
- package/dist/domain/ui-service/mutate/threads.js +21 -0
- package/dist/domain/ui-service/query/cost.d.ts +3 -0
- package/dist/domain/ui-service/query/cost.js +6 -0
- package/dist/domain/ui-service/query/executions.d.ts +2 -0
- package/dist/domain/ui-service/query/executions.js +35 -0
- package/dist/domain/ui-service/query/projects.d.ts +2 -0
- package/dist/domain/ui-service/query/projects.js +30 -0
- package/dist/domain/ui-service/query/schedules.d.ts +2 -0
- package/dist/domain/ui-service/query/schedules.js +23 -0
- package/dist/domain/ui-service/query/sessions.d.ts +2 -0
- package/dist/domain/ui-service/query/sessions.js +35 -0
- package/dist/domain/ui-service/query/tasks.d.ts +2 -0
- package/dist/domain/ui-service/query/tasks.js +30 -0
- package/dist/domain/ui-service/query/threads.d.ts +2 -0
- package/dist/domain/ui-service/query/threads.js +27 -0
- package/dist/domain/ui-service/subscribe.d.ts +5 -0
- package/dist/domain/ui-service/subscribe.js +118 -0
- package/dist/domain/ui-service/types.d.ts +237 -0
- package/dist/domain/ui-service/types.js +5 -0
- package/dist/domain/ui-service/ui-service.d.ts +2 -0
- package/dist/domain/ui-service/ui-service.js +83 -0
- package/dist/entry/app.js +130 -8
- package/dist/entry/cli.d.ts +12 -0
- package/dist/entry/cli.js +122 -12
- package/dist/entry/daemon.js +12 -30
- package/dist/entry/feishu-login.d.ts +28 -0
- package/dist/entry/feishu-login.js +218 -0
- package/dist/entry/init.d.ts +29 -5
- package/dist/entry/init.js +323 -233
- package/dist/entry/startup-notify.js +6 -3
- package/dist/events/event-types.d.ts +14 -0
- package/dist/hooks/cortex-md-injector.mjs +47 -31
- package/dist/hooks/post-task-hook.mjs +6 -0
- package/dist/hooks/task-status-check.mjs +8 -0
- package/dist/orchestration/agent-runner.d.ts +2 -1
- package/dist/orchestration/agent-runner.js +55 -55
- package/dist/orchestration/conduit-queue.d.ts +18 -0
- package/dist/orchestration/conduit-queue.js +32 -0
- package/dist/orchestration/conversation-runner.d.ts +48 -0
- package/dist/orchestration/conversation-runner.js +109 -0
- package/dist/orchestration/dispatch-reconciler.js +8 -1
- package/dist/orchestration/interactions/ask-user-question.d.ts +1 -1
- package/dist/orchestration/interactions/ask-user-question.js +3 -3
- package/dist/orchestration/interactions/interaction-handlers.js +55 -23
- package/dist/orchestration/interactions/plan-handler.d.ts +2 -2
- package/dist/orchestration/interactions/plan-handler.js +4 -3
- package/dist/orchestration/interactions/update-prompt-slack.js +11 -10
- package/dist/orchestration/interactions/update-prompt.d.ts +6 -0
- package/dist/orchestration/interactions/update-prompt.js +155 -0
- package/dist/orchestration/lifecycle.d.ts +4 -4
- package/dist/orchestration/lifecycle.js +25 -22
- package/dist/orchestration/orchestrator.d.ts +1 -1
- package/dist/orchestration/routing/commands/cancel.js +45 -52
- package/dist/orchestration/routing/commands/channel.js +41 -27
- package/dist/orchestration/routing/commands/cost.js +11 -2
- package/dist/orchestration/routing/commands/device.js +12 -9
- package/dist/orchestration/routing/commands/dispatch.js +11 -10
- package/dist/orchestration/routing/commands/index.d.ts +1 -1
- package/dist/orchestration/routing/commands/index.js +15 -10
- package/dist/orchestration/routing/commands/lang.d.ts +3 -0
- package/dist/orchestration/routing/commands/lang.js +31 -0
- package/dist/orchestration/routing/commands/mode.js +32 -30
- package/dist/orchestration/routing/commands/nvtop.js +15 -13
- package/dist/orchestration/routing/commands/orient.js +2 -1
- package/dist/orchestration/routing/commands/schedule.js +23 -22
- package/dist/orchestration/routing/commands/sendfile.js +9 -7
- package/dist/orchestration/routing/commands/session.d.ts +1 -1
- package/dist/orchestration/routing/commands/session.js +24 -39
- package/dist/orchestration/routing/commands/status.js +78 -71
- package/dist/orchestration/routing/commands/tail.js +7 -5
- package/dist/orchestration/routing/commands/task.js +25 -23
- package/dist/orchestration/routing/commands/thread-handlers.js +55 -44
- package/dist/orchestration/routing/edit-handler.js +8 -7
- package/dist/orchestration/routing/hook-bridge-subscribers.js +17 -1
- package/dist/orchestration/routing/message-router.d.ts +1 -1
- package/dist/orchestration/routing/message-router.js +9 -9
- package/dist/orchestration/routing/webhook.js +233 -2
- package/dist/orchestration/status-helpers.d.ts +5 -1
- package/dist/orchestration/status-helpers.js +13 -11
- package/dist/orchestration/thread-callback.d.ts +67 -0
- package/dist/orchestration/thread-callback.js +465 -0
- package/dist/orchestration/thread-executor.d.ts +22 -1
- package/dist/orchestration/thread-executor.js +85 -36
- package/dist/platform/adapter.d.ts +6 -2
- package/dist/platform/adapters/composite-adapter.d.ts +89 -0
- package/dist/platform/adapters/composite-adapter.js +318 -0
- package/dist/platform/adapters/feishu-output-stream.d.ts +26 -4
- package/dist/platform/adapters/feishu-output-stream.js +274 -36
- package/dist/platform/adapters/feishu.d.ts +50 -5
- package/dist/platform/adapters/feishu.js +370 -116
- package/dist/platform/adapters/index.d.ts +24 -3
- package/dist/platform/adapters/index.js +89 -11
- package/dist/platform/adapters/project-conduits.d.ts +9 -0
- package/dist/platform/adapters/project-conduits.js +42 -0
- package/dist/platform/adapters/slack-project-conduits.d.ts +1 -9
- package/dist/platform/adapters/slack-project-conduits.js +6 -40
- package/dist/platform/adapters/slack.d.ts +9 -2
- package/dist/platform/adapters/slack.js +83 -39
- package/dist/platform/adapters/tui/index.d.ts +9 -0
- package/dist/platform/adapters/tui/index.js +10 -0
- package/dist/platform/adapters/tui/ports.d.ts +20 -0
- package/dist/platform/adapters/tui/ports.js +4 -0
- package/dist/platform/adapters/tui/tui-conduit-state.d.ts +10 -0
- package/dist/platform/adapters/tui/tui-conduit-state.js +17 -0
- package/dist/platform/adapters/tui/tui-connection.d.ts +30 -0
- package/dist/platform/adapters/tui/tui-connection.js +53 -0
- package/dist/platform/adapters/tui/tui-gateway.d.ts +120 -0
- package/dist/platform/adapters/tui/tui-gateway.js +919 -0
- package/dist/platform/adapters/tui/tui-notifications.d.ts +12 -0
- package/dist/platform/adapters/tui/tui-notifications.js +60 -0
- package/dist/platform/adapters/tui/tui-output-stream.d.ts +36 -0
- package/dist/platform/adapters/tui/tui-output-stream.js +99 -0
- package/dist/platform/adapters/tui/tui-transcript.d.ts +8 -0
- package/dist/platform/adapters/tui/tui-transcript.js +56 -0
- package/dist/platform/index.d.ts +1 -0
- package/dist/platform/index.js +2 -1
- package/dist/platform/interactive-builder.js +21 -19
- package/dist/platform/output-stream.d.ts +5 -0
- package/dist/platform/testing.d.ts +7 -11
- package/dist/platform/testing.js +18 -15
- package/dist/platform/tool-trace.js +15 -5
- package/dist/platform/tui/protocol.d.ts +355 -0
- package/dist/platform/tui/protocol.js +199 -0
- package/dist/platform/types.d.ts +12 -3
- package/dist/store/execution-repo.d.ts +6 -1
- package/dist/store/execution-repo.js +13 -3
- package/dist/store/hook-sync.d.ts +18 -0
- package/dist/store/hook-sync.js +92 -0
- package/dist/store/outbound-queue.js +2 -2
- package/dist/store/profile-repo.js +3 -2
- package/dist/store/schedule-repo.d.ts +1 -8
- package/dist/store/session-registry-repo.d.ts +9 -1
- package/dist/store/session-registry-repo.js +19 -3
- package/dist/store/session-repo.d.ts +14 -0
- package/dist/store/session-repo.js +23 -0
- package/dist/store/thread-repo.d.ts +3 -0
- package/dist/store/thread-repo.js +49 -2
- package/dist/store/version-migrations.d.ts +7 -0
- package/dist/store/version-migrations.js +183 -0
- package/dist/tui/App.d.ts +27 -0
- package/dist/tui/App.js +219 -0
- package/dist/tui/components/AskUserModal.d.ts +11 -0
- package/dist/tui/components/AskUserModal.js +364 -0
- package/dist/tui/components/ConfirmModal.d.ts +12 -0
- package/dist/tui/components/ConfirmModal.js +31 -0
- package/dist/tui/components/Dashboard.d.ts +23 -0
- package/dist/tui/components/Dashboard.js +80 -0
- package/dist/tui/components/DashboardCostTab.d.ts +7 -0
- package/dist/tui/components/DashboardCostTab.js +16 -0
- package/dist/tui/components/DashboardExecutionsTab.d.ts +11 -0
- package/dist/tui/components/DashboardExecutionsTab.js +94 -0
- package/dist/tui/components/DashboardSchedulesTab.d.ts +11 -0
- package/dist/tui/components/DashboardSchedulesTab.js +124 -0
- package/dist/tui/components/DashboardTasksTab.d.ts +12 -0
- package/dist/tui/components/DashboardTasksTab.js +200 -0
- package/dist/tui/components/DashboardThreadsTab.d.ts +11 -0
- package/dist/tui/components/DashboardThreadsTab.js +81 -0
- package/dist/tui/components/Header.d.ts +11 -0
- package/dist/tui/components/Header.js +5 -0
- package/dist/tui/components/InputBox.d.ts +10 -0
- package/dist/tui/components/InputBox.js +19 -0
- package/dist/tui/components/MessageRow.d.ts +7 -0
- package/dist/tui/components/MessageRow.js +10 -0
- package/dist/tui/components/Notifications.d.ts +19 -0
- package/dist/tui/components/Notifications.js +72 -0
- package/dist/tui/components/PlanFeedbackModal.d.ts +11 -0
- package/dist/tui/components/PlanFeedbackModal.js +161 -0
- package/dist/tui/components/ProjectSwitcher.d.ts +18 -0
- package/dist/tui/components/ProjectSwitcher.js +43 -0
- package/dist/tui/components/SessionPicker.d.ts +14 -0
- package/dist/tui/components/SessionPicker.js +34 -0
- package/dist/tui/components/SidePanel.d.ts +19 -0
- package/dist/tui/components/SidePanel.js +8 -0
- package/dist/tui/components/StatusLine.d.ts +10 -0
- package/dist/tui/components/StatusLine.js +29 -0
- package/dist/tui/components/Transcript.d.ts +13 -0
- package/dist/tui/components/Transcript.js +56 -0
- package/dist/tui/hooks/useDashboardData.d.ts +32 -0
- package/dist/tui/hooks/useDashboardData.js +104 -0
- package/dist/tui/hooks/useKeybindings.d.ts +19 -0
- package/dist/tui/hooks/useKeybindings.js +87 -0
- package/dist/tui/hooks/useMutate.d.ts +22 -0
- package/dist/tui/hooks/useMutate.js +56 -0
- package/dist/tui/hooks/useNotifications.d.ts +28 -0
- package/dist/tui/hooks/useNotifications.js +70 -0
- package/dist/tui/hooks/useTranscript.d.ts +39 -0
- package/dist/tui/hooks/useTranscript.js +265 -0
- package/dist/tui/hooks/useWsClient.d.ts +29 -0
- package/dist/tui/hooks/useWsClient.js +69 -0
- package/dist/tui/index.d.ts +2 -0
- package/dist/tui/index.js +210 -0
- package/dist/tui/logic.d.ts +16 -0
- package/dist/tui/logic.js +49 -0
- package/dist/tui/render/markdown.d.ts +10 -0
- package/dist/tui/render/markdown.js +38 -0
- package/dist/tui/render/rich-blocks.d.ts +11 -0
- package/dist/tui/render/rich-blocks.js +24 -0
- package/dist/tui/ws-client.d.ts +44 -0
- package/dist/tui/ws-client.js +157 -0
- package/package.json +11 -3
- package/dist/orchestration/channel-queue.d.ts +0 -18
- package/dist/orchestration/channel-queue.js +0 -32
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
/** Canonical English message table, aggregated from per-cluster slices. Keys are dot-namespaced
|
|
2
|
+
* by area (lang/cmd/status/...). Values may contain ${param} placeholders resolved by i18n.t().
|
|
3
|
+
* Icons (core/icons.ts) are kept in code, NOT in these strings — only human-readable text here. */
|
|
4
|
+
export declare const en: {
|
|
5
|
+
'init.clipboard.prompt': "\nPress \"c\" to copy manifest to clipboard (any other key to skip)...";
|
|
6
|
+
'init.clipboard.copied': "Manifest copied to clipboard!";
|
|
7
|
+
'init.clipboard.failed': "Could not copy. If running in a terminal, ensure OSC 52 is enabled.";
|
|
8
|
+
'init.clipboard.manual': "The manifest text is shown above — please copy it manually.";
|
|
9
|
+
'init.backend.alreadyInstalled': "${label} is already installed.";
|
|
10
|
+
'init.backend.installing': "Installing ${label}...";
|
|
11
|
+
'init.backend.installed': "${label} installed successfully.";
|
|
12
|
+
'init.backend.installFailed': "Failed to install ${label}.";
|
|
13
|
+
'init.backend.installFailedHint': "Installation failed. Install manually: ${command}";
|
|
14
|
+
'init.backend.loginHint.claude': "Run `claude login` to authenticate.";
|
|
15
|
+
'init.backend.loginHint.pi': "Configure your provider in PI settings.";
|
|
16
|
+
'init.backend.label.claude': "Claude Code";
|
|
17
|
+
'init.backend.label.pi': "PI";
|
|
18
|
+
'init.service.launchdWritten': "launchd plist written to ${path}";
|
|
19
|
+
'init.service.launchdStartHint': "To start now: launchctl load ${path}";
|
|
20
|
+
'init.service.systemdUserWritten': "systemd unit written to ${path}";
|
|
21
|
+
'init.service.systemdUserEnableHint': "To enable: sudo systemctl --user enable --now cortex";
|
|
22
|
+
'init.service.systemdInstalled': "systemd unit installed to ${path}";
|
|
23
|
+
'init.service.systemdEnableHint': "To enable: sudo systemctl enable --now cortex";
|
|
24
|
+
'init.service.systemInstallFailed': "Failed to install system service: ${message}";
|
|
25
|
+
'init.service.noSudo': "No sudo access. Service file saved locally.";
|
|
26
|
+
'init.service.manualInstallHint': "To install manually:\n sudo cp ${localPath} ${systemPath}\n sudo systemctl daemon-reload\n sudo systemctl enable --now cortex";
|
|
27
|
+
'init.service.unsupported': "Service registration is not supported on ${platform}. Start Cortex manually with `cortex daemon`.";
|
|
28
|
+
'init.cancel': "Init cancelled.";
|
|
29
|
+
'init.slack.manifestTitle': "Slack App Manifest — copy and paste when creating the app";
|
|
30
|
+
'init.slack.guide': string;
|
|
31
|
+
'init.slack.guideTitle': "Slack App Setup Guide";
|
|
32
|
+
'init.slack.prefillFound': "Found existing Slack configuration. Press Enter to skip, or type anything to re-enter.";
|
|
33
|
+
'init.slack.skipPrompt': "Skip Slack configuration? (Enter = skip, any key + Enter = re-enter)";
|
|
34
|
+
'init.slack.skipPlaceholder': "Press Enter to skip";
|
|
35
|
+
'init.slack.signingSecretPrompt': "Step 1/3: SLACK_SIGNING_SECRET (from Basic Information):";
|
|
36
|
+
'init.slack.signingSecretRequired': "Signing secret is required.";
|
|
37
|
+
'init.slack.appTokenPrompt': "Step 2/3: SLACK_APP_TOKEN (App-Level Token, starts with xapp-):";
|
|
38
|
+
'init.slack.appTokenRequired': "App token is required.";
|
|
39
|
+
'init.slack.appTokenPrefix': "Token should start with xapp-";
|
|
40
|
+
'init.slack.botTokenPrompt': "Step 3/3: SLACK_BOT_TOKEN (Bot User OAuth Token, starts with xoxb-):";
|
|
41
|
+
'init.slack.botTokenRequired': "Bot token is required.";
|
|
42
|
+
'init.slack.botTokenPrefix': "Token should start with xoxb-";
|
|
43
|
+
'init.feishu.guide': string;
|
|
44
|
+
'init.feishu.guideTitle': "Feishu App Setup Guide";
|
|
45
|
+
'init.feishu.appIdPrompt': "FEISHU_APP_ID:";
|
|
46
|
+
'init.feishu.appIdRequired': "App ID is required.";
|
|
47
|
+
'init.feishu.appSecretPrompt': "FEISHU_APP_SECRET:";
|
|
48
|
+
'init.feishu.appSecretRequired': "App secret is required.";
|
|
49
|
+
'init.feishu.domainPrompt': "FEISHU_DOMAIN (optional, \"feishu\" or \"lark\"):";
|
|
50
|
+
'init.feishu.domainPlaceholder': "feishu (leave blank to use default)";
|
|
51
|
+
'init.feishu.authModePrompt': "Identity for MCP document operations:";
|
|
52
|
+
'init.feishu.authModeBotLabel': "bot";
|
|
53
|
+
'init.feishu.authModeBotHint': "documents owned by the app";
|
|
54
|
+
'init.feishu.authModeUserLabel': "user (Recommended)";
|
|
55
|
+
'init.feishu.authModeUserHint': "documents owned by your Feishu account";
|
|
56
|
+
'init.feishu.loginStarting': "Starting Feishu user login (OAuth device flow)...";
|
|
57
|
+
'init.feishu.loginComplete': "Feishu user login complete.";
|
|
58
|
+
'init.feishu.loginIncomplete': "Feishu user login did not complete. Retry later with `cortex feishu login`.";
|
|
59
|
+
'init.intro': "Cortex Setup";
|
|
60
|
+
'init.backend.noteBody': "Both Claude Code and PI support API key access to any model.";
|
|
61
|
+
'init.backend.noteTitle': "Backend info";
|
|
62
|
+
'init.backend.prompt': "Which backends would you like to use?";
|
|
63
|
+
'init.backend.claudeLabel': "Claude Code";
|
|
64
|
+
'init.backend.claudeHint': "recommended, for Claude subscription";
|
|
65
|
+
'init.backend.piLabel': "PI";
|
|
66
|
+
'init.backend.piHint': "for other subscription";
|
|
67
|
+
'init.platform.prompt': "Which interaction platform(s) would you like to use? (space to toggle, enter to confirm, leave empty to skip)";
|
|
68
|
+
'init.platform.slackLabel': "Slack";
|
|
69
|
+
'init.platform.slackHint': "recommended";
|
|
70
|
+
'init.platform.feishuLabel': "Feishu (飞书)";
|
|
71
|
+
'init.machine.prompt': "Machine name for this device:";
|
|
72
|
+
'init.machine.required': "Machine name is required.";
|
|
73
|
+
'init.machine.gpuDetected': "Detected ${count} NVIDIA GPU(s)";
|
|
74
|
+
'init.machine.gpuNone': "No NVIDIA GPU detected (gpuCount=0)";
|
|
75
|
+
'init.gateway.note': string;
|
|
76
|
+
'init.gateway.noteTitle': "Gateway & aistatus";
|
|
77
|
+
'init.gateway.enablePrompt': "Enable token usage reporting to aistatus?";
|
|
78
|
+
'init.gateway.namePrompt': "Name:";
|
|
79
|
+
'init.gateway.namePlaceholder': "your name";
|
|
80
|
+
'init.gateway.orgPrompt': "Organization:";
|
|
81
|
+
'init.gateway.orgPlaceholder': "your organization";
|
|
82
|
+
'init.gateway.emailPrompt': "Email (identity only, not displayed):";
|
|
83
|
+
'init.gateway.emailPlaceholder': "you@example.com";
|
|
84
|
+
'init.serviceRegister.prompt': "Register Cortex as a system service (auto-start on boot)?";
|
|
85
|
+
'init.gatewaySetup.overwritePrompt': "Existing `plan` or `execute` profile detected. Overwrite with a new selection?";
|
|
86
|
+
'init.gatewaySetup.planPrompt': "Pick model for the `plan` profile (used by executor agents — planner, doc-writer, coder, etc.):";
|
|
87
|
+
'init.gatewaySetup.executePrompt': "Pick model for the `execute` profile (used by reviewer agents — reviewer, doc-reviewer, coder-reviewer, etc.):";
|
|
88
|
+
'init.gatewaySetup.planFallbackPrompt': "Pick fallback models for `plan` (in order, space to toggle, enter to confirm, leave empty for no fallback):";
|
|
89
|
+
'init.gatewaySetup.executeFallbackPrompt': "Pick fallback models for `execute` (in order, space to toggle, enter to confirm, leave empty for no fallback):";
|
|
90
|
+
'init.gatewaySetup.extraProfilesPrompt': "Pick additional models to register as standalone profiles (profile name = model name, space to toggle, enter to confirm, leave empty to skip):";
|
|
91
|
+
'init.gatewaySetup.noBackends': "No backends discovered. Make sure you have logged into Claude Code and/or PI first.";
|
|
92
|
+
'init.gatewaySetup.rerunHint': "You can re-run detection later with: cortex setup-gateway";
|
|
93
|
+
'init.gatewaySetup.discovered': "Discovered ${count} endpoint modes:\n${summary}";
|
|
94
|
+
'init.gatewaySetup.gatewayWritten': "Gateway config written to ${path}";
|
|
95
|
+
'init.gatewaySetup.preservedModes': "Preserved ${count} existing gateway mode(s) that discovery did not report: ${list}";
|
|
96
|
+
'init.gatewaySetup.preservedModesHint': "If these should have been auto-detected, check `pi /login` / `pi --list-models` and re-run.";
|
|
97
|
+
'init.gatewaySetup.profilesWritten': "Profiles written to ${path}";
|
|
98
|
+
'init.gatewaySetup.generatedProfiles': "Generated profiles: ${names} (default: ${default})";
|
|
99
|
+
'init.gatewaySetup.profileIssues': "${count} profile(s) reference a gateway mode that is not configured:\n${lines}";
|
|
100
|
+
'init.gatewaySetup.profileIssuesHint': "These would fail at runtime with \"Unknown mode\". Add the mode to gateway.yaml or fix the profile.";
|
|
101
|
+
'init.gatewayProfile.note': string;
|
|
102
|
+
'init.gatewayProfile.noteTitle': "Gateway & Profile Setup";
|
|
103
|
+
'init.gatewayProfile.readyPrompt': "Have you logged in and are ready to auto-detect?";
|
|
104
|
+
'init.gatewayProfile.loginNow': "Please log in now. Once done, come back and select \"Yes\".\n${loginHints}";
|
|
105
|
+
'init.gatewayProfile.actionPrompt': "What would you like to do?";
|
|
106
|
+
'init.gatewayProfile.retryLabel': "I've logged in, retry detection";
|
|
107
|
+
'init.gatewayProfile.skipLabel': "Skip for now (run `cortex setup-gateway` later)";
|
|
108
|
+
'init.gatewayProfile.skipped': "Skipped. Run `cortex setup-gateway` later to auto-configure.";
|
|
109
|
+
'init.outro': "Cortex initialized at ${dataDir}. Run `cortex start` to launch.";
|
|
110
|
+
'init.git.required': "Git is required but was not found on your system.";
|
|
111
|
+
'init.git.initFailed': "git init failed: ${message}";
|
|
112
|
+
'init.git.autoInstalling': "Attempting automatic git installation...";
|
|
113
|
+
'init.git.installed': "Git installed successfully.";
|
|
114
|
+
'init.git.notOnPath': "Git was installed but is not on PATH. You may need to restart your shell.";
|
|
115
|
+
'init.git.autoInstallFailed': "Automatic installation failed.";
|
|
116
|
+
'init.git.manualHint': "Please install git manually: ${hint}";
|
|
117
|
+
'init.config.title': "Cortex configuration:";
|
|
118
|
+
'init.config.statusTitle': "Status:";
|
|
119
|
+
'init.config.initialized': "initialized";
|
|
120
|
+
'init.config.notInitialized': "not initialized";
|
|
121
|
+
'init.config.found': "found";
|
|
122
|
+
'init.config.missing': "missing";
|
|
123
|
+
'startup.started': "Cortex agent v${version} started on ${machine}.";
|
|
124
|
+
'startup.restarted': "Cortex agent v${version} restarted on ${machine}.";
|
|
125
|
+
'startup.reason': " Reason: ${reason}.";
|
|
126
|
+
'interaction.askExpired': "This AskUserQuestion prompt has expired. Please ask again if you still need it.";
|
|
127
|
+
'interaction.askInactive': "This AskUserQuestion prompt is no longer active.";
|
|
128
|
+
'interaction.selectOrType': "Please select an option or type a custom answer.";
|
|
129
|
+
'interaction.questionsProgress': "Questions (${answered}/${total} answered)";
|
|
130
|
+
'interaction.planApproved': "Plan approved — Cortex will proceed.";
|
|
131
|
+
'interaction.planApprovedRich': "*Plan approved* — Cortex will proceed.";
|
|
132
|
+
'interaction.planFeedbackSent': "Plan feedback sent — Cortex will revise.\n> ${feedback}";
|
|
133
|
+
'interaction.noSpecificFeedback': "No specific feedback";
|
|
134
|
+
'interaction.cancelledPreserved': "Cancelled. Session preserved — next message will resume.";
|
|
135
|
+
'interaction.sessionActive': "Session `${sessionName}` active — send your message below.${profileNote}";
|
|
136
|
+
'interaction.sessionProfileNote': " (profile: ${profileName})";
|
|
137
|
+
'interaction.newConversation': "--- new conversation --- (profile: ${profileName})";
|
|
138
|
+
'update.installing': "Installing @cortex-agent/server@${version}... daemon will restart shortly.";
|
|
139
|
+
'update.skipped': "Skipped version ${version}.";
|
|
140
|
+
'update.cancelled': "Update cancelled. Will check again at next interval.";
|
|
141
|
+
'update.releaseNotesTitle': "Cortex Server v${version} Release Notes";
|
|
142
|
+
'update.releaseNotesEmpty': "(No release notes available)";
|
|
143
|
+
'update.releaseNotesTruncated': "\n\n_[Truncated — view full notes on GitHub]_";
|
|
144
|
+
'update.releaseNotesBody': "**${name}**\n\n${body}\n\n[View full release notes](${url})";
|
|
145
|
+
'update.releaseNotesFetchFailed': "Failed to fetch release notes for v${version}. View on GitHub: ${url}";
|
|
146
|
+
'update.available': "Cortex Server v${version} is available. Update now?";
|
|
147
|
+
'update.availableSection': "Cortex Server v${version} is available.";
|
|
148
|
+
'update.superseded': "Superseded by a newer update prompt.";
|
|
149
|
+
'update.timedOut': "Update prompt timed out.";
|
|
150
|
+
'update.button.update': "Update";
|
|
151
|
+
'update.button.releaseNote': "Release Note";
|
|
152
|
+
'update.button.skip': "Skip this version";
|
|
153
|
+
'update.button.cancel': "Cancel";
|
|
154
|
+
'modal.answer': "Answer (${answered}/${total})";
|
|
155
|
+
'modal.selectOneOrMore': "Select one or more";
|
|
156
|
+
'modal.selectOne': "Select one";
|
|
157
|
+
'modal.typeAnswerLabel': "Or type your answer";
|
|
158
|
+
'modal.customAnswerPlaceholder': "Custom answer (overrides selection above)";
|
|
159
|
+
'modal.yourAnswerLabel': "Your answer";
|
|
160
|
+
'modal.yourAnswerPlaceholder': "Type your answer";
|
|
161
|
+
'modal.questionsTitle': "Questions";
|
|
162
|
+
'modal.submit': "Submit";
|
|
163
|
+
'modal.cancel': "Cancel";
|
|
164
|
+
'modal.planReady': "*Plan ready for review.* Approve to proceed or provide feedback.";
|
|
165
|
+
'modal.approve': "Approve";
|
|
166
|
+
'modal.provideFeedback': "Provide Feedback";
|
|
167
|
+
'modal.planFeedbackTitle': "Plan Feedback";
|
|
168
|
+
'modal.feedbackLabel': "Your feedback (Cortex will revise the plan)";
|
|
169
|
+
'modal.feedbackPlaceholder': "What should be changed?";
|
|
170
|
+
'schedule.help.title': "*Schedule commands:*";
|
|
171
|
+
'schedule.help.addInterval': "`!schedule add interval <duration> [--profile <name>] <message>` — repeat every duration (e.g. `30m`, `2h`, `1d`)";
|
|
172
|
+
'schedule.help.addDaily': "`!schedule add daily <HH:MM> [--profile <name>] <message>` — run every day at a fixed time (24-hour)";
|
|
173
|
+
'schedule.help.addWeekly': "`!schedule add weekly <day> <HH:MM> [--profile <name>] <message>` — run every week (day: mon,tue,wed,thu,fri,sat,sun)";
|
|
174
|
+
'schedule.help.addOnce': "`!schedule add once <duration> [--profile <name>] <message>` — run once after a delay";
|
|
175
|
+
'schedule.help.list': "`!schedule list` — show all scheduled tasks";
|
|
176
|
+
'schedule.help.pause': "`!schedule pause <id>` — pause a recurring task";
|
|
177
|
+
'schedule.help.resume': "`!schedule resume <id>` — resume a paused recurring task";
|
|
178
|
+
'schedule.help.remove': "`!schedule remove <id>` — remove a task by id";
|
|
179
|
+
'schedule.help.availableProfiles': "Available profiles: ${profileNames}";
|
|
180
|
+
'schedule.list.empty': "No scheduled tasks.";
|
|
181
|
+
'schedule.list.header': "*Scheduled tasks (${count}):*\n${lines}";
|
|
182
|
+
'schedule.remove.usage': "Usage: `!schedule remove <id>`";
|
|
183
|
+
'schedule.remove.ok': "Removed task `${id}`.";
|
|
184
|
+
'schedule.taskNotFound': "Task not found: `${id}`";
|
|
185
|
+
'schedule.pause.usage': "Usage: `!schedule pause <id>`";
|
|
186
|
+
'schedule.pause.ok': "Paused task `${id}`.";
|
|
187
|
+
'schedule.resume.usage': "Usage: `!schedule resume <id>`";
|
|
188
|
+
'schedule.resume.ok': "Resumed task `${id}`.${nextAt}";
|
|
189
|
+
'schedule.resume.nextRun': " Next run: ${time}.";
|
|
190
|
+
'schedule.invalidDuration': "Invalid duration: `${duration}`. Use e.g. `30s`, `5m`, `2h`, `1d`";
|
|
191
|
+
'schedule.invalidTime': "Invalid time: `${time}`. Use 24-hour HH:MM, e.g. `${example}`";
|
|
192
|
+
'schedule.invalidDay': "Invalid day: `${day}`. Use: mon, tue, wed, thu, fri, sat, sun";
|
|
193
|
+
'schedule.add.intervalUsage': "Usage: `!schedule add interval <duration> [--profile <name>] <message>`";
|
|
194
|
+
'schedule.add.dailyUsage': "Usage: `!schedule add daily <HH:MM> [--profile <name>] <message>`";
|
|
195
|
+
'schedule.add.weeklyUsage': "Usage: `!schedule add weekly <day> <HH:MM> [--profile <name>] <message>`";
|
|
196
|
+
'schedule.add.onceUsage': "Usage: `!schedule add once <duration> [--profile <name>] <message>`";
|
|
197
|
+
'schedule.add.scheduledInterval': "Scheduled every *${duration}*: \"${message}\"";
|
|
198
|
+
'schedule.add.scheduledDaily': "Scheduled daily at *${time}*: \"${message}\"";
|
|
199
|
+
'schedule.add.scheduledWeekly': "Scheduled weekly *${day} ${time}*: \"${message}\"";
|
|
200
|
+
'schedule.add.scheduledOnce': "Scheduled once in *${duration}*: \"${message}\"";
|
|
201
|
+
'schedule.add.unknownType': "Unknown type: `${type}`. Use `interval`, `daily`, `weekly`, or `once`";
|
|
202
|
+
'schedule.profileUsage': "Usage: ${usage}";
|
|
203
|
+
'cmd.cancel.nothingRunning': "Nothing running to cancel.";
|
|
204
|
+
'cmd.cancel.cancelledN': "Cancelled ${n} execution(s).";
|
|
205
|
+
'cmd.cancel.cancelledShort': "Cancelled (${id})";
|
|
206
|
+
'cmd.cancel.threadCancelled': "Thread `${id}` cancelled.";
|
|
207
|
+
'cmd.cancel.threadNotFound': "No running thread `${id}` found to cancel.";
|
|
208
|
+
'cmd.cancel.dispatchUnavailable': "Dispatched-task cancellation is not available in this process.";
|
|
209
|
+
'cmd.cancel.cancelledSessionPreserved': "Cancelled. Session preserved — next message will resume.";
|
|
210
|
+
'cmd.cancel.runningTasks': "Running tasks (${n}):";
|
|
211
|
+
'cmd.cancel.cancelButton': "Cancel ${id}";
|
|
212
|
+
'cmd.mode.switched': "Switched to *${mode}* mode";
|
|
213
|
+
'cmd.mode.apiLabel': "API";
|
|
214
|
+
'cmd.mode.planLabel': "Plan";
|
|
215
|
+
'cmd.backend.switched': "Backend: *${backend}*";
|
|
216
|
+
'cmd.backend.claudeLabel': "Claude Code";
|
|
217
|
+
'cmd.backend.codexLabel': "Codex";
|
|
218
|
+
'cmd.model.current': "Current Claude model: *${model}*";
|
|
219
|
+
'cmd.model.usage': "Usage: `!model <model-name>`";
|
|
220
|
+
'cmd.model.set': "Claude model set to *${model}*";
|
|
221
|
+
'cmd.profile.channelSet': "Channel profile set to *${name}*";
|
|
222
|
+
'cmd.profile.channelHeader': "Channel profile: *${effective}* (global: ${global})";
|
|
223
|
+
'cmd.profile.activeHeader': "Active profile: *${effective}*";
|
|
224
|
+
'cmd.profile.markerDefault': "default";
|
|
225
|
+
'cmd.profile.markerGlobal': "global";
|
|
226
|
+
'cmd.profile.markerChannel': "channel";
|
|
227
|
+
'cmd.profile.cleared': "Channel profile cleared, using global: *${name}*";
|
|
228
|
+
'cmd.profile.globalUsage': "Usage: `!profile global <name>`";
|
|
229
|
+
'cmd.profile.globalSet': "Global profile set to *${name}*";
|
|
230
|
+
'cmd.skills.none': "No skills found.";
|
|
231
|
+
'cmd.skills.header': "*Available skills*";
|
|
232
|
+
'cmd.skills.localGroup': ".claude/skills";
|
|
233
|
+
'cmd.agent.defaultSet': "Default agent set to *${name}* (${detail})";
|
|
234
|
+
'cmd.agent.disabled': "Default agent disabled.";
|
|
235
|
+
'cmd.agent.disableButton': "Disable";
|
|
236
|
+
'cmd.agent.current': "Default agent: *${name}* (${detail})";
|
|
237
|
+
'cmd.agent.none': "No default agent set.\nAvailable: ${agents}";
|
|
238
|
+
'cmd.agent.unknown': "Unknown agent: `${name}`\nAvailable: ${available}";
|
|
239
|
+
'cmd.channel.noProjects': "No projects found.";
|
|
240
|
+
'cmd.channel.projectsHeader': "*Projects*\n${list}";
|
|
241
|
+
'cmd.channel.registeredNotification': "Registered for `${project}` task notifications.";
|
|
242
|
+
'cmd.channel.unknownProject': "Unknown project: `${project}`\nAvailable: ${available}";
|
|
243
|
+
'cmd.channel.channelRegistered': "This channel is now registered for project `${project}` task notifications.";
|
|
244
|
+
'cmd.channel.registeredList': "Registered: ${list}";
|
|
245
|
+
'cmd.channel.notRegisteredAny': "This channel is not registered to any project.";
|
|
246
|
+
'cmd.channel.availableList': "Available: ${list}";
|
|
247
|
+
'cmd.channel.unregisterUsage': "Usage: `!unregister <project>`";
|
|
248
|
+
'cmd.channel.notRegistered': "This channel is not registered for project `${project}`.";
|
|
249
|
+
'cmd.channel.unregistered': "Unregistered this channel from project `${project}`.";
|
|
250
|
+
'cmd.channel.modalTitle': "Add Project Directory";
|
|
251
|
+
'cmd.channel.modalSubmit': "Save";
|
|
252
|
+
'cmd.channel.modalProjectLabel': "Project name";
|
|
253
|
+
'cmd.channel.modalProjectPlaceholder': "e.g. example-project-dataset";
|
|
254
|
+
'cmd.channel.modalMachineLabel': "Machine";
|
|
255
|
+
'cmd.channel.modalPathLabel': "Directory path";
|
|
256
|
+
'cmd.channel.modalPathPlaceholder': "e.g. /home/user/project";
|
|
257
|
+
'cmd.channel.dirSet': "`${project}` on `${machine}` → `${dir}`";
|
|
258
|
+
'cmd.channel.projectDirUsage': "Usage: `!project-dir <project> <machine> <path>` or `!project-dir <project> <machine> --remove`";
|
|
259
|
+
'cmd.channel.unknownMachine': "Unknown machine: `${machine}`\nValid: ${valid}";
|
|
260
|
+
'cmd.channel.dirRemoved': "Removed `${project}` directory on `${machine}`.";
|
|
261
|
+
'cmd.channel.dirShow': "`${project}` on `${machine}` → `${dir}`";
|
|
262
|
+
'cmd.channel.dirNone': "No directory registered for `${project}` on `${machine}`.";
|
|
263
|
+
'cmd.channel.projectDirsHeader': "*Project Directories*\n${list}";
|
|
264
|
+
'cmd.channel.noProjectDirs': "No project directories registered.";
|
|
265
|
+
'cmd.channel.addButton': "Add";
|
|
266
|
+
'cmd.nvtop.unknownMachineGpu': "Unknown machine: `${machine}`\nGPU machines: ${valid}";
|
|
267
|
+
'cmd.nvtop.noGpu': "`${machine}` has no GPU.";
|
|
268
|
+
'cmd.nvtop.deviceOffline': "Device `${machine}` is not online.";
|
|
269
|
+
'cmd.nvtop.smiHeader': "*nvidia-smi* on `${machine}`\n```\n${output}\n```";
|
|
270
|
+
'cmd.nvtop.noOutput': "(no output)";
|
|
271
|
+
'cmd.nvtop.smiFailed': "nvidia-smi failed on `${machine}`: ${error}";
|
|
272
|
+
'cmd.nvtop.noActive': "No active nvtop monitor in this channel.";
|
|
273
|
+
'cmd.nvtop.stopped': "nvtop stopped on `${machine}`.";
|
|
274
|
+
'cmd.nvtop.alreadyRunning': "nvtop already running. Use `!nvtop stop` first.";
|
|
275
|
+
'cmd.nvtop.notSupported': "nvtop monitoring is not supported on `${machine}` yet.";
|
|
276
|
+
'cmd.nvtop.failed': "nvtop failed on `${machine}`: ${error}";
|
|
277
|
+
'cmd.sendfile.fileNotFound': "File not found: `${path}`";
|
|
278
|
+
'cmd.sendfile.notAFile': "Not a file: `${path}`";
|
|
279
|
+
'cmd.sendfile.sent': "Sent `${name}` (${size} KB) from ${machine}";
|
|
280
|
+
'cmd.sendfile.fetchFailed': "Failed to fetch from ${machine}: ${error}";
|
|
281
|
+
'cmd.sendfile.usage': "Usage: `!sendFile <machine> <path>`\nPath can be absolute, relative to Cortex root, or start with `~`";
|
|
282
|
+
'cmd.sendfile.unknownMachine': "Unknown machine: `${machine}`. Known: ${known}";
|
|
283
|
+
'cmd.session.newConversation': "--- new conversation --- (profile: ${profile})";
|
|
284
|
+
'cmd.session.notFound': "Session `${name}` not found.";
|
|
285
|
+
'cmd.session.switched': "Switched to session `${name}`${profileNote}";
|
|
286
|
+
'cmd.session.notFoundList': "Session `${name}` not found. Run `!resume` to list sessions.";
|
|
287
|
+
'cmd.session.profileNote': " (profile: ${profile})";
|
|
288
|
+
'cmd.session.noSessions': "No sessions recorded yet.";
|
|
289
|
+
'cmd.session.recentHeader': "*Recent sessions*";
|
|
290
|
+
'cmd.session.activeTag': " *(active)*";
|
|
291
|
+
'cmd.task.header': "*Tasks for `${project}`* (${shown}/${total})${filterLabel}";
|
|
292
|
+
'cmd.task.filterLabel': " — ${filter}";
|
|
293
|
+
'cmd.task.statusCompleted': "completed";
|
|
294
|
+
'cmd.task.statusBlocked': "blocked: ${by}";
|
|
295
|
+
'cmd.task.statusInProgress': "in-progress: ${by}";
|
|
296
|
+
'cmd.task.statusPaused': "paused";
|
|
297
|
+
'cmd.task.statusApprovalNeeded': "approval-needed";
|
|
298
|
+
'cmd.task.statusActionable': "actionable";
|
|
299
|
+
'cmd.task.statusOpen': "open";
|
|
300
|
+
'cmd.task.statusLine': " Status: ${status} · Priority: ${priority}";
|
|
301
|
+
'cmd.task.tagsLine': " Tags: ${tags}";
|
|
302
|
+
'cmd.task.whyLine': " Why: ${why}";
|
|
303
|
+
'cmd.task.doneWhenLine': " Done when: ${doneWhen}";
|
|
304
|
+
'cmd.task.dependsLine': " Depends on: ${depends}";
|
|
305
|
+
'cmd.task.noneFound': "No ${filter} tasks found.";
|
|
306
|
+
'cmd.task.filterAll': "All";
|
|
307
|
+
'cmd.task.filterActionable': "Actionable";
|
|
308
|
+
'cmd.task.filterInProgress': "In Progress";
|
|
309
|
+
'cmd.task.filterBlocked': "Blocked";
|
|
310
|
+
'cmd.task.usage': "Usage: `!tasks <project>`";
|
|
311
|
+
'cmd.task.projectNotFound': "Project not found: `${project}`";
|
|
312
|
+
'cmd.task.noTasks': "No tasks found for `${project}`.";
|
|
313
|
+
'cmd.dispatch.usage': "Usage: `!dispatch <threadId> [--profile <name>]`";
|
|
314
|
+
'cmd.dispatch.threadNotFound': "Thread not found: `${threadId}`";
|
|
315
|
+
'cmd.dispatch.notDispatchThread': "Thread `${threadId}` is not a dispatch thread.";
|
|
316
|
+
'cmd.dispatch.terminalWarning': "Dispatch `${threadId}` is `${status}`. Profile override will only apply if the thread is continued via `!thread add`.";
|
|
317
|
+
'cmd.dispatch.currentOverride': "Dispatch `${threadId}`: current `profileOverride` = `${current}`";
|
|
318
|
+
'cmd.dispatch.unknownProfile': "Unknown profile: `${profile}`. Use `!profile` to see available profiles.";
|
|
319
|
+
'cmd.dispatch.overrideSet': "Dispatch `${threadId}`: `profileOverride` set to `${profile}`. Next step will use this profile.";
|
|
320
|
+
'cmd.tail.noActive': "No active tail in this channel.";
|
|
321
|
+
'cmd.tail.stopped': "Tail stopped.";
|
|
322
|
+
'cmd.tail.preview': "*Tailing daemon.log* (last ${n} lines, refresh every 3s)\n```\n${content}\n```\nUse `!tail stop` to stop.";
|
|
323
|
+
'cmd.tail.cannotRead': "Cannot read daemon.log: ${error}";
|
|
324
|
+
'cmd.tail.alreadyTailing': "Already tailing. Use `!tail stop` to stop first.";
|
|
325
|
+
'cmd.status.unavailable': "Execution status reporting is not available in this process.";
|
|
326
|
+
'cmd.status.refreshButton': "Refresh";
|
|
327
|
+
'cmd.help.catSession': "Session";
|
|
328
|
+
'cmd.help.catConfig': "Config";
|
|
329
|
+
'cmd.help.catMonitoring': "Monitoring";
|
|
330
|
+
'cmd.help.catTasks': "Tasks";
|
|
331
|
+
'cmd.help.catDevices': "Devices";
|
|
332
|
+
'cmd.help.catThreads': "Threads";
|
|
333
|
+
'cmd.help.session.new': "`!new` — start a new conversation; runs pre-close hook (`!newq` to skip)";
|
|
334
|
+
'cmd.help.session.cancel': "`!cancel [taskId]` — stop current task, or a dispatched task by id";
|
|
335
|
+
'cmd.help.session.resume': "`!resume [cortex-XXXX]` — list recent sessions, or switch to one";
|
|
336
|
+
'cmd.help.config.mode': "`!mode` — toggle API / Plan mode";
|
|
337
|
+
'cmd.help.config.backend': "`!backend` — toggle Claude Code / Codex backend";
|
|
338
|
+
'cmd.help.config.model': "`!model [name]` — show or set Claude model";
|
|
339
|
+
'cmd.help.config.profile': "`!profile [name]` — show active profile or switch to one";
|
|
340
|
+
'cmd.help.config.skills': "`!skills` — list available skills";
|
|
341
|
+
'cmd.help.monitoring.cost': "`!cost [project]` — show cost summary (global or per-project)";
|
|
342
|
+
'cmd.help.monitoring.status': "`!status` — show running execution summary";
|
|
343
|
+
'cmd.help.monitoring.budget': "`!budget $X/d $Y/m` — set daily/monthly budget";
|
|
344
|
+
'cmd.help.monitoring.schedule': "`!schedule` — list, add, pause, resume, or remove scheduled tasks";
|
|
345
|
+
'cmd.help.tasks.tasks': "`!tasks <project>` — list all tasks with details for a project";
|
|
346
|
+
'cmd.help.tasks.projects': "`!projects` — list projects and their registered channels";
|
|
347
|
+
'cmd.help.tasks.register': "`!register <project>` — register this channel for project task notifications";
|
|
348
|
+
'cmd.help.tasks.unregister': "`!unregister <project>` — unregister this channel from a project";
|
|
349
|
+
'cmd.help.tasks.projectDir': "`!project-dir` — manage project code directories per machine";
|
|
350
|
+
'cmd.help.devices.devices': "`!devices` — show online/offline status of all cortex-client devices";
|
|
351
|
+
'cmd.help.devices.nvidiaSmi': "`!nvidia-smi [machine]` — show GPU status (default: local)";
|
|
352
|
+
'cmd.help.devices.nvtop': "`!nvtop [machine|stop]` — live GPU monitor with sparkline view";
|
|
353
|
+
'cmd.help.devices.tail': "`!tail [stop]` — live-tail daemon.log";
|
|
354
|
+
'cmd.help.devices.sendfile': "`!sendFile <machine> <path>` — send a file to Slack";
|
|
355
|
+
'cmd.help.threads.thread': "`!thread` — manage threads: status, start, add agent, cancel, list agents/templates";
|
|
356
|
+
'cmd.help.threads.agent': "`!agent [name|off]` — show, set, or disable default agent";
|
|
357
|
+
'cmd.help.heading': "*Commands*";
|
|
358
|
+
'cmd.help.headingCategory': "*Commands — ${label}*";
|
|
359
|
+
'cmd.help.selfLine': "`!help` — this message";
|
|
360
|
+
'cmd.help.showAll': "Show All";
|
|
361
|
+
'cmd.schedule.none': "No scheduled tasks.";
|
|
362
|
+
'cmd.schedule.header': "*Scheduled tasks (${n}):*";
|
|
363
|
+
'cmd.schedule.removeButton': "Remove ${id}";
|
|
364
|
+
'cmd.schedule.resumeButton': "Resume ${id}";
|
|
365
|
+
'cmd.schedule.pauseButton': "Pause ${id}";
|
|
366
|
+
'cmd.schedule.now': "now";
|
|
367
|
+
'cmd.schedule.paused': "paused";
|
|
368
|
+
'cmd.schedule.nextLabel': "next";
|
|
369
|
+
'cmd.device.header': "*Devices*";
|
|
370
|
+
'cmd.device.online': "`${name}` ${platform} connected ${connAgo} heartbeat ${hbAgo}";
|
|
371
|
+
'cmd.device.offline': "`${name}` offline";
|
|
372
|
+
'cmd.device.none': "No devices registered or online.";
|
|
373
|
+
'cmd.device.refreshButton': "Refresh";
|
|
374
|
+
'cmd.orient.notImplemented': "`!orient` command not yet implemented.";
|
|
375
|
+
'cmd.thread.noActive': "No active thread in this channel.";
|
|
376
|
+
'cmd.thread.activeHeader': "*Active Thread* `${id}` (${mode})";
|
|
377
|
+
'cmd.thread.statusLine': "Status: ${status} | Active agent: ${agent}";
|
|
378
|
+
'cmd.thread.stepsLine': "Steps: ${steps} | Cost: $${cost}";
|
|
379
|
+
'cmd.thread.agentsLine': "Agents: ${agents}";
|
|
380
|
+
'cmd.thread.abortLine': "Abort reason: ${reason}";
|
|
381
|
+
'cmd.thread.adHoc': "ad-hoc";
|
|
382
|
+
'cmd.thread.noTemplates': "No thread templates configured.";
|
|
383
|
+
'cmd.thread.templatesHeader': "*Available Thread Templates*";
|
|
384
|
+
'cmd.thread.templateLine': "`${name}` — ${description} [agents: ${agents}]";
|
|
385
|
+
'cmd.thread.agentsTitle': "*Available Agents*";
|
|
386
|
+
'cmd.thread.agentLine': "`${name}` (${profile}) — ${description}";
|
|
387
|
+
'cmd.thread.noAgents': "No agents configured.";
|
|
388
|
+
'cmd.thread.activeThreadHeader': "*Active Thread* `${id}`";
|
|
389
|
+
'cmd.thread.noSession': "no session";
|
|
390
|
+
'cmd.thread.slotLine': "*${slotId}* (${profile}) — ${status} | ${session}";
|
|
391
|
+
'cmd.thread.cancelledSessionPreserved': "Cancelled. Session preserved — next message will resume.";
|
|
392
|
+
'cmd.thread.nothingRunning': "Nothing running to cancel.";
|
|
393
|
+
'cmd.thread.noThreadsChannel': "No threads found for this channel.";
|
|
394
|
+
'cmd.thread.recentHeader': "*Recent Threads*";
|
|
395
|
+
'cmd.thread.recentLine': "`${id}` ${mode} — ${status} | ${steps} steps | $${cost}";
|
|
396
|
+
'cmd.thread.noRunning': "No running threads.";
|
|
397
|
+
'cmd.thread.runningHeader': "*Running Threads*";
|
|
398
|
+
'cmd.thread.runningLine': "`${id}` — ${channel} | ${mode} | ${steps} step(s) | $${cost}";
|
|
399
|
+
'cmd.thread.usageHeader': "*Thread Commands*";
|
|
400
|
+
'cmd.thread.usageStatus': "`!thread` — show active thread status";
|
|
401
|
+
'cmd.thread.usageAgents': "`!thread agents` — list available agents";
|
|
402
|
+
'cmd.thread.usageTemplates': "`!thread templates` — list available templates";
|
|
403
|
+
'cmd.thread.usageAdHoc': "`!thread <agent> <message>` — start ad-hoc thread with one agent";
|
|
404
|
+
'cmd.thread.usageTemplate': "`!thread <template> <message>` — start template-based thread";
|
|
405
|
+
'cmd.thread.usageAdd': "`!thread add <agent> [message]` — add agent to current thread";
|
|
406
|
+
'cmd.thread.usageCancel': "`!cancel` — cancel active thread (also `!thread cancel`)";
|
|
407
|
+
'cmd.thread.usageList': "`!thread list` — list recent threads";
|
|
408
|
+
'cmd.thread.usageListRunning': "`!thread list --running` — list running threads across channels";
|
|
409
|
+
'cmd.cost.budgetHeader': "*Budget*\n• Daily: $${dailyBudget} (spent: $${dailySpent}, remaining: $${dailyRemaining})\n• Monthly: $${monthlyBudget} (spent: $${monthlySpent}, remaining: $${monthlyRemaining})";
|
|
410
|
+
'cmd.cost.budgetUpdated': "Budget updated: $${daily}/day, $${monthly}/month";
|
|
411
|
+
'cmd.unknown': "Unknown command: `${cmd}`. Run `!help` for available commands.";
|
|
412
|
+
'cmd.error': "Command error: ${error}";
|
|
413
|
+
'cmd.errorUnknown': "unknown error";
|
|
414
|
+
'status.processing': "Processing";
|
|
415
|
+
'status.done': "Done";
|
|
416
|
+
'status.waitingForUserInput': "Waiting for user input";
|
|
417
|
+
'status.cancelled': "Cancelled";
|
|
418
|
+
'status.error': "Error";
|
|
419
|
+
'status.supersededByEdit': "Superseded by edit";
|
|
420
|
+
'status.retryEdited': "edited";
|
|
421
|
+
'status.retry': "Retry";
|
|
422
|
+
'status.rateLimitedExhausted': "Rate limited — all fallbacks exhausted";
|
|
423
|
+
'status.supersededSeeNewReply': "see new reply";
|
|
424
|
+
'status.processingAskResponse': "Processing AskUserQuestion response...";
|
|
425
|
+
'status.errorBody': "Error: ${message}";
|
|
426
|
+
'status.noRunningExecutions': "No running executions.";
|
|
427
|
+
'status.runningExecutions': "Running executions: ${count}";
|
|
428
|
+
'btn.cancel': "Cancel";
|
|
429
|
+
'btn.resume': "Resume";
|
|
430
|
+
'btn.new': "New";
|
|
431
|
+
'lang.current': "Current language: *${lang}*";
|
|
432
|
+
'lang.switched': "Language switched to *${lang}*.";
|
|
433
|
+
'lang.usage': "Usage: `!lang <en|zh>`";
|
|
434
|
+
'lang.available': "Available languages: `en` (English), `zh` (中文)";
|
|
435
|
+
'lang.unknown': "Unknown language `${lang}`. Available: `en`, `zh`.";
|
|
436
|
+
};
|
|
437
|
+
/** The exact keyset every locale must provide. zh.ts is typed against this. */
|
|
438
|
+
export type MessageKey = keyof typeof en;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// input: per-cluster English slices (./slices/*)
|
|
2
|
+
// output: `en` — aggregated canonical English message table + MessageKey type
|
|
3
|
+
// pos: L0 locale barrel; zh.ts mirrors it. Each cluster lives in its own slice so i18n
|
|
4
|
+
// extraction work stays conflict-free; this file only spreads them together.
|
|
5
|
+
// >>> If I am updated, update zh.ts to match, and the parent folder's CORTEX.md <<<
|
|
6
|
+
import { langEn } from './slices/lang.js';
|
|
7
|
+
import { statusEn } from './slices/status.js';
|
|
8
|
+
import { commandsEn } from './slices/commands.js';
|
|
9
|
+
import { schedulingEn } from './slices/scheduling.js';
|
|
10
|
+
import { interactionsEn } from './slices/interactions.js';
|
|
11
|
+
import { startupEn } from './slices/startup.js';
|
|
12
|
+
import { initEn } from './slices/init.js';
|
|
13
|
+
/** Canonical English message table, aggregated from per-cluster slices. Keys are dot-namespaced
|
|
14
|
+
* by area (lang/cmd/status/...). Values may contain ${param} placeholders resolved by i18n.t().
|
|
15
|
+
* Icons (core/icons.ts) are kept in code, NOT in these strings — only human-readable text here. */
|
|
16
|
+
export const en = {
|
|
17
|
+
...langEn,
|
|
18
|
+
...statusEn,
|
|
19
|
+
...commandsEn,
|
|
20
|
+
...schedulingEn,
|
|
21
|
+
...interactionsEn,
|
|
22
|
+
...startupEn,
|
|
23
|
+
...initEn,
|
|
24
|
+
};
|