@cortex-agent/server 2026.9.25 → 2026.10.2
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/README.md +1 -1
- package/defaults/hooks/agents-md-injector.mjs +1 -25
- package/defaults/hooks/cortex-hook-api.mjs +1 -4
- package/defaults/hooks/memory-ref-tracker.mjs +0 -3
- package/defaults/hooks/new-session-hook.mjs +3 -9
- package/defaults/hooks/rules-loader.mjs +3 -12
- package/defaults/hooks/session-activity-tracker.mjs +1 -21
- package/defaults/hooks/status-md-guard.mjs +0 -11
- package/defaults/hooks/task-status-check.mjs +0 -4
- package/defaults/hooks/tasks-yaml-guard.mjs +0 -6
- package/defaults/plugins/cortex-system/skills/task/SKILL.md +3 -6
- package/dist/agent-adapter/bg-wait.d.ts +0 -5
- package/dist/agent-adapter/bg-wait.js +1 -16
- package/dist/agent-adapter/capabilities.d.ts +0 -11
- package/dist/agent-adapter/capabilities.js +2 -39
- package/dist/agent-adapter/claude/active-capture-registry.d.ts +0 -1
- package/dist/agent-adapter/claude/active-capture-registry.js +1 -4
- package/dist/agent-adapter/claude/adapter.d.ts +8 -25
- package/dist/agent-adapter/claude/adapter.js +18 -53
- package/dist/agent-adapter/claude/bg-task-tracker.d.ts +4 -4
- package/dist/agent-adapter/claude/bg-task-tracker.js +2 -4
- package/dist/agent-adapter/claude/defaults.d.ts +1 -13
- package/dist/agent-adapter/claude/defaults.js +1 -13
- package/dist/agent-adapter/claude/engine.d.ts +3 -9
- package/dist/agent-adapter/claude/engine.js +2 -12
- package/dist/agent-adapter/claude/event-parser.d.ts +1 -6
- package/dist/agent-adapter/claude/event-parser.js +4 -17
- package/dist/agent-adapter/claude/event-translator.d.ts +0 -3
- package/dist/agent-adapter/claude/event-translator.js +0 -7
- package/dist/agent-adapter/claude/tmux-control.d.ts +0 -48
- package/dist/agent-adapter/claude/tmux-control.js +0 -133
- package/dist/agent-adapter/claude/transcript-path.d.ts +10 -0
- package/dist/agent-adapter/claude/transcript-path.js +78 -1
- package/dist/agent-adapter/claude/turn-machine.d.ts +4 -3
- package/dist/agent-adapter/claude/turn-machine.js +11 -13
- package/dist/agent-adapter/pi/adapter.js +3 -5
- package/dist/agent-adapter/pi/agent-dir.d.ts +0 -2
- package/dist/agent-adapter/pi/agent-dir.js +3 -7
- package/dist/agent-adapter/pi/background-subagent.d.ts +9 -4
- package/dist/agent-adapter/pi/child-events.d.ts +1 -18
- package/dist/agent-adapter/pi/child-events.js +0 -23
- package/dist/agent-adapter/pi/child-session.js +13 -16
- package/dist/agent-adapter/pi/defaults.d.ts +0 -2
- package/dist/agent-adapter/pi/defaults.js +1 -3
- package/dist/agent-adapter/pi/discovery.d.ts +1 -5
- package/dist/agent-adapter/pi/discovery.js +0 -8
- package/dist/agent-adapter/pi/engine.d.ts +3 -8
- package/dist/agent-adapter/pi/engine.js +3 -15
- package/dist/agent-adapter/pi/event-parser.d.ts +1 -34
- package/dist/agent-adapter/pi/extensions.d.ts +2 -2
- package/dist/agent-adapter/pi/extensions.js +4 -2
- package/dist/agent-adapter/pi/hook-bridge.d.ts +5 -32
- package/dist/agent-adapter/pi/hook-bridge.js +14 -46
- package/dist/agent-adapter/pi/image-first.d.ts +3 -0
- package/dist/agent-adapter/pi/image-first.js +31 -0
- package/dist/agent-adapter/pi/mcp-bridge.js +9 -22
- package/dist/agent-adapter/pi/pi-session.d.ts +2 -11
- package/dist/agent-adapter/pi/pi-session.js +2 -15
- package/dist/agent-adapter/pi/providers-config.d.ts +1 -7
- package/dist/agent-adapter/pi/providers-config.js +1 -2
- package/dist/agent-adapter/pi/runtime-settings.d.ts +2 -0
- package/dist/agent-adapter/pi/runtime-settings.js +17 -0
- package/dist/agent-adapter/pi/runtime.js +20 -29
- package/dist/agent-adapter/pi/session-support.d.ts +1 -5
- package/dist/agent-adapter/pi/session-support.js +0 -9
- package/dist/agent-adapter/pi/subagent.d.ts +2 -8
- package/dist/agent-adapter/pi/subagent.js +57 -54
- package/dist/agent-adapter/pi/tool-shims.d.ts +1 -1
- package/dist/agent-adapter/pi/tool-shims.js +5 -2
- package/dist/agent-adapter/types.d.ts +2 -8
- package/dist/core/agents/subagent/attribution.d.ts +5 -1
- package/dist/core/agents/subagent/attribution.js +6 -0
- package/dist/core/agents/subagent/types.d.ts +21 -0
- package/dist/core/anthropic-model-discovery.d.ts +0 -6
- package/dist/core/anthropic-model-discovery.js +2 -11
- package/dist/core/anthropic-models.js +0 -4
- package/dist/core/atomic-write.js +4 -4
- package/dist/core/auth.js +1 -6
- package/dist/core/cached-scan.js +0 -6
- package/dist/core/claude-credentials.d.ts +8 -2
- package/dist/core/claude-credentials.js +14 -9
- package/dist/core/cli-utils.d.ts +7 -1
- package/dist/core/codex-quota.d.ts +0 -4
- package/dist/core/codex-quota.js +0 -37
- package/dist/core/config-generator.d.ts +1 -1
- package/dist/core/config-generator.js +6 -24
- package/dist/core/gateway-generator.d.ts +0 -8
- package/dist/core/gateway-generator.js +2 -50
- package/dist/core/i18n.js +2 -5
- package/dist/core/locales/en.d.ts +394 -17
- package/dist/core/locales/en.js +8 -4
- package/dist/core/locales/slices/commands.d.ts +1 -6
- package/dist/core/locales/slices/commands.js +10 -20
- package/dist/core/locales/slices/init.js +2 -5
- package/dist/core/locales/slices/interactions.d.ts +0 -5
- package/dist/core/locales/slices/interactions.js +6 -19
- package/dist/core/locales/slices/lang.js +0 -3
- package/dist/core/locales/slices/notices.d.ts +121 -0
- package/dist/core/locales/slices/notices.js +242 -0
- package/dist/core/locales/slices/providers.d.ts +0 -2
- package/dist/core/locales/slices/providers.js +0 -4
- package/dist/core/locales/slices/scheduling.d.ts +0 -2
- package/dist/core/locales/slices/scheduling.js +0 -7
- package/dist/core/locales/slices/startup.js +0 -3
- package/dist/core/locales/slices/status.d.ts +0 -2
- package/dist/core/locales/slices/status.js +0 -4
- package/dist/core/locales/slices/tui.d.ts +117 -0
- package/dist/core/locales/slices/tui.js +240 -0
- package/dist/core/locales/slices/uiextra.d.ts +65 -0
- package/dist/core/locales/slices/uiextra.js +134 -0
- package/dist/core/locales/slices/uimsg.d.ts +102 -0
- package/dist/core/locales/slices/uimsg.js +214 -0
- package/dist/core/locales/zh.js +8 -3
- package/dist/core/mcp-tool-gate.js +1 -4
- package/dist/core/paths.js +0 -4
- package/dist/core/pi-sdk.d.ts +0 -8
- package/dist/core/pi-sdk.js +0 -12
- package/dist/core/platform-settings-spec.js +0 -4
- package/dist/core/settings-spec.js +0 -4
- package/dist/core/settings.js +2 -8
- package/dist/core/status-format.js +5 -5
- package/dist/core/task-node.d.ts +4 -7
- package/dist/core/task-node.js +8 -23
- package/dist/core/task-parser.d.ts +1 -3
- package/dist/core/task-parser.js +2 -35
- package/dist/core/tool-names.d.ts +0 -4
- package/dist/core/tool-names.js +0 -9
- package/dist/core/types/agent-types.d.ts +17 -0
- package/dist/core/utils.d.ts +1 -2
- package/dist/core/utils.js +2 -7
- package/dist/domain/agents/agent-state.d.ts +0 -3
- package/dist/domain/agents/agent-state.js +0 -3
- package/dist/domain/agents/agent-switch.js +0 -11
- package/dist/domain/agents/config.d.ts +1 -12
- package/dist/domain/agents/config.js +8 -88
- package/dist/domain/agents/index.d.ts +0 -1
- package/dist/domain/agents/index.js +0 -4
- package/dist/domain/agents/profile-manager.d.ts +4 -4
- package/dist/domain/agents/profile-manager.js +4 -4
- package/dist/domain/agents/profile-switch.js +0 -9
- package/dist/domain/agents/provider-run-lifecycle.d.ts +1 -1
- package/dist/domain/agents/subagent/foreign.js +0 -1
- package/dist/domain/agents/subagent/registry.d.ts +8 -4
- package/dist/domain/agents/subagent/registry.js +32 -7
- package/dist/domain/agents/subagent/runner.d.ts +1 -2
- package/dist/domain/agents/subagent/runner.js +0 -4
- package/dist/domain/agents/subagent/service.d.ts +1 -1
- package/dist/domain/agents/subagent/service.js +4 -4
- package/dist/domain/auth/auth-format.js +3 -4
- package/dist/domain/auth/auth-status.js +2 -1
- package/dist/domain/auth/cc-auth-cli.d.ts +1 -1
- package/dist/domain/auth/cc-auth-cli.js +3 -3
- package/dist/domain/auth/cc-login.js +2 -1
- package/dist/domain/auth/cc-subscription.d.ts +2 -5
- package/dist/domain/auth/cc-subscription.js +8 -13
- package/dist/domain/auth/claude-user-settings.js +1 -10
- package/dist/domain/auth/login-flow.d.ts +1 -1
- package/dist/domain/auth/login-flow.js +5 -4
- package/dist/domain/auth/logout.d.ts +2 -4
- package/dist/domain/auth/logout.js +13 -16
- package/dist/domain/auth/pi-login.d.ts +1 -13
- package/dist/domain/auth/pi-login.js +7 -13
- package/dist/domain/auth/pi-oauth.d.ts +1 -13
- package/dist/domain/auth/pi-oauth.js +8 -14
- package/dist/domain/benchmark/atif.d.ts +3 -34
- package/dist/domain/benchmark/atif.js +15 -38
- package/dist/domain/benchmark/attempt-record.d.ts +0 -74
- package/dist/domain/benchmark/attempt-record.js +0 -51
- package/dist/domain/benchmark/composite-manifest.d.ts +2 -39
- package/dist/domain/benchmark/composite-manifest.js +2 -131
- package/dist/domain/benchmark/decimal-text.d.ts +0 -5
- package/dist/domain/benchmark/decimal-text.js +0 -21
- package/dist/domain/benchmark/identity.d.ts +0 -10
- package/dist/domain/benchmark/identity.js +0 -18
- package/dist/domain/benchmark/journal.d.ts +0 -8
- package/dist/domain/benchmark/journal.js +5 -13
- package/dist/domain/benchmark/manifest-contract.d.ts +1 -15
- package/dist/domain/benchmark/manifest-contract.js +1 -1
- package/dist/domain/benchmark/production-attempt-identity.d.ts +0 -3
- package/dist/domain/benchmark/production-attempt-identity.js +2 -19
- package/dist/domain/benchmark/production-attempt-journal.d.ts +3 -3
- package/dist/domain/benchmark/production-attempt-journal.js +9 -11
- package/dist/domain/benchmark/production-evidence-export.d.ts +1 -2
- package/dist/domain/benchmark/production-evidence-export.js +0 -1
- package/dist/domain/benchmark/production-evidence-projection.d.ts +1 -2
- package/dist/domain/benchmark/production-evidence-projection.js +4 -6
- package/dist/domain/benchmark/role-surface.js +1 -8
- package/dist/domain/commissions/decision-projection.d.ts +0 -3
- package/dist/domain/commissions/decision-projection.js +3 -3
- package/dist/domain/costs/cost-tracker.d.ts +2 -15
- package/dist/domain/costs/cost-tracker.js +47 -96
- package/dist/domain/costs/gateway-manager.js +1 -1
- package/dist/domain/costs/rate-limit-throttle.d.ts +2 -9
- package/dist/domain/costs/rate-limit-throttle.js +12 -26
- package/dist/domain/costs/resume-registry.d.ts +1 -4
- package/dist/domain/costs/resume-registry.js +1 -13
- package/dist/domain/costs/usage-service.d.ts +2 -2
- package/dist/domain/costs/usage-service.js +16 -20
- package/dist/domain/costs/usage-store.d.ts +2 -3
- package/dist/domain/costs/usage-store.js +2 -5
- package/dist/domain/executions/registry.d.ts +6 -13
- package/dist/domain/executions/registry.js +5 -31
- package/dist/domain/mcp/bundled-server.js +3 -3
- package/dist/domain/mcp/feishu/client.js +0 -6
- package/dist/domain/mcp/feishu/file.js +3 -27
- package/dist/domain/mcp/feishu/types.d.ts +1 -1
- package/dist/domain/mcp/feishu/user-auth.js +1 -8
- package/dist/domain/mcp/tools/agents-md.d.ts +0 -1
- package/dist/domain/mcp/tools/context.d.ts +1 -2
- package/dist/domain/mcp/tools/cost.js +11 -14
- package/dist/domain/mcp/tools/interaction-plan.d.ts +0 -3
- package/dist/domain/mcp/tools/interaction-plan.js +0 -1
- package/dist/domain/mcp/tools/remote-file.d.ts +4 -0
- package/dist/domain/mcp/tools/remote-file.js +8 -0
- package/dist/domain/mcp/tools/schedule.d.ts +2 -16
- package/dist/domain/mcp/tools/schedule.js +4 -8
- package/dist/domain/mcp/tools/slack.d.ts +1 -3
- package/dist/domain/mcp/tools/slack.js +4 -45
- package/dist/domain/mcp/tools/task-monitor.js +0 -7
- package/dist/domain/mcp/tools/task-ops.js +2 -4
- package/dist/domain/mcp/tools/ui-file.js +56 -30
- package/dist/domain/memory/agents-md-injector.d.ts +0 -1
- package/dist/domain/memory/agents-md-injector.js +2 -4
- package/dist/domain/memory/consolidate.d.ts +0 -1
- package/dist/domain/memory/consolidate.js +3 -9
- package/dist/domain/memory/index-regen.d.ts +1 -7
- package/dist/domain/memory/index-regen.js +3 -2
- package/dist/domain/memory/rules-loader.d.ts +3 -25
- package/dist/domain/memory/rules-loader.js +8 -49
- package/dist/domain/memory/skill-scanner.d.ts +1 -2
- package/dist/domain/memory/skill-scanner.js +2 -10
- package/dist/domain/memory/user-context.js +1 -1
- package/dist/domain/memory/watcher.d.ts +0 -1
- package/dist/domain/memory/watcher.js +1 -17
- package/dist/domain/monitor/disk-monitor.d.ts +1 -4
- package/dist/domain/monitor/disk-monitor.js +4 -6
- package/dist/domain/monitor/event-loop-monitor.d.ts +1 -5
- package/dist/domain/monitor/event-loop-monitor.js +1 -9
- package/dist/domain/pi-providers/custom-provider-model.d.ts +2 -6
- package/dist/domain/pi-providers/custom-provider-model.js +1 -3
- package/dist/domain/pi-providers/custom-provider-service.d.ts +0 -2
- package/dist/domain/pi-providers/custom-provider-service.js +1 -1
- package/dist/domain/pi-providers/index.d.ts +3 -4
- package/dist/domain/pi-providers/index.js +1 -2
- package/dist/domain/pi-providers/models-json-store.d.ts +1 -1
- package/dist/domain/pi-providers/models-json-store.js +1 -1
- package/dist/domain/plugins/agent-plugins-v1.d.ts +0 -3
- package/dist/domain/plugins/authoring.js +7 -7
- package/dist/domain/plugins/catalog-types.d.ts +3 -0
- package/dist/domain/plugins/catalog-types.js +11 -0
- package/dist/domain/plugins/catalog.d.ts +1 -2
- package/dist/domain/plugins/catalog.js +13 -27
- package/dist/domain/plugins/fs-helpers.d.ts +2 -1
- package/dist/domain/plugins/fs-helpers.js +2 -5
- package/dist/domain/plugins/mcp.js +3 -13
- package/dist/domain/plugins/runtime.js +4 -11
- package/dist/domain/plugins/skill-projection.js +0 -3
- package/dist/domain/remote/client-hot-reload.js +4 -3
- package/dist/domain/remote/client-manager.d.ts +8 -6
- package/dist/domain/remote/client-manager.js +21 -2
- package/dist/domain/remote/client-remove.d.ts +61 -0
- package/dist/domain/remote/client-remove.js +137 -0
- package/dist/domain/remote/client-ssh-tunnel.d.ts +5 -0
- package/dist/domain/remote/client-ssh-tunnel.js +12 -1
- package/dist/domain/remote/device-chrome-commands.d.ts +0 -3
- package/dist/domain/remote/device-chrome-commands.js +1 -10
- package/dist/domain/remote/device-port.d.ts +2 -8
- package/dist/domain/remote/device-port.js +7 -15
- package/dist/domain/runs/adapters.js +2 -2
- package/dist/domain/runs/attempt.js +1 -5
- package/dist/domain/runs/engine-spec.d.ts +0 -13
- package/dist/domain/runs/engine-spec.js +0 -42
- package/dist/domain/runs/engines.d.ts +3 -4
- package/dist/domain/runs/engines.js +2 -8
- package/dist/domain/runs/events.js +0 -6
- package/dist/domain/runs/prompt.js +1 -1
- package/dist/domain/runs/request.d.ts +1 -2
- package/dist/domain/runs/run.d.ts +0 -1
- package/dist/domain/runs/run.js +6 -16
- package/dist/domain/scheduling/job-registry.d.ts +0 -5
- package/dist/domain/scheduling/job-registry.js +0 -24
- package/dist/domain/scheduling/jobs/auth-expiry-scan.d.ts +1 -0
- package/dist/domain/scheduling/jobs/auth-expiry-scan.js +6 -13
- package/dist/domain/scheduling/jobs/memory-index-regen.js +3 -5
- package/dist/domain/scheduling/jobs/register-thread-session.d.ts +3 -4
- package/dist/domain/scheduling/jobs/register-thread-session.js +2 -7
- package/dist/domain/scheduling/jobs/scheduled-task.js +5 -15
- package/dist/domain/scheduling/jobs/sync-public.d.ts +3 -0
- package/dist/domain/scheduling/jobs/sync-public.js +7 -8
- package/dist/domain/scheduling/jobs/target-dispatch.js +0 -5
- package/dist/domain/scheduling/jobs/task-archive.js +4 -6
- package/dist/domain/scheduling/jobs/task-dispatch.js +8 -14
- package/dist/domain/scheduling/runner.d.ts +0 -3
- package/dist/domain/scheduling/runner.js +10 -11
- package/dist/domain/scheduling/schedule-cli.d.ts +0 -4
- package/dist/domain/scheduling/schedule-cli.js +7 -8
- package/dist/domain/scheduling/schedule-command.js +1 -39
- package/dist/domain/scheduling/scheduler.d.ts +4 -18
- package/dist/domain/scheduling/scheduler.js +8 -45
- package/dist/domain/sessions/session-backup.d.ts +3 -3
- package/dist/domain/sessions/session-backup.js +8 -73
- package/dist/domain/sessions/session-hooks.d.ts +5 -23
- package/dist/domain/sessions/session-hooks.js +20 -45
- package/dist/domain/sessions/session-lifecycle.d.ts +1 -8
- package/dist/domain/sessions/session-lifecycle.js +6 -6
- package/dist/domain/sessions/session-retention.d.ts +1 -1
- package/dist/domain/sessions/session-use.d.ts +0 -4
- package/dist/domain/sessions/session-use.js +0 -18
- package/dist/domain/sessions/session.d.ts +3 -3
- package/dist/domain/sessions/session.js +6 -6
- package/dist/domain/system/doctor.js +4 -8
- package/dist/domain/system/github-release.d.ts +0 -2
- package/dist/domain/system/github-release.js +0 -5
- package/dist/domain/system/install-cli.js +1 -1
- package/dist/domain/system/notice-history.js +0 -4
- package/dist/domain/system/preferences.js +1 -7
- package/dist/domain/system/rebuild-hold.d.ts +1 -11
- package/dist/domain/system/rebuild-hold.js +3 -16
- package/dist/domain/system/server-update-check.d.ts +3 -2
- package/dist/domain/system/server-update-check.js +15 -65
- package/dist/domain/system/server-update-coordinator.d.ts +43 -0
- package/dist/domain/system/server-update-coordinator.js +137 -0
- package/dist/domain/system/system-notice.d.ts +2 -1
- package/dist/domain/system/update-state.js +1 -4
- package/dist/domain/system/update-ui-state.js +0 -7
- package/dist/domain/tasks/acceptance-ledger.d.ts +1 -7
- package/dist/domain/tasks/acceptance-ledger.js +7 -9
- package/dist/domain/tasks/archiver.js +2 -2
- package/dist/domain/tasks/claim-recovery.d.ts +0 -1
- package/dist/domain/tasks/claim-recovery.js +0 -13
- package/dist/domain/tasks/dispatch-utils.d.ts +2 -3
- package/dist/domain/tasks/dispatch-utils.js +19 -22
- package/dist/domain/tasks/dispatcher.d.ts +5 -8
- package/dist/domain/tasks/dispatcher.js +9 -15
- package/dist/domain/tasks/lint.js +1 -1
- package/dist/domain/tasks/mutator.d.ts +1 -12
- package/dist/domain/tasks/mutator.js +8 -124
- package/dist/domain/tasks/system/task-cli.d.ts +1 -51
- package/dist/domain/tasks/system/task-cli.js +6 -22
- package/dist/domain/tasks/system/task-completion.js +8 -14
- package/dist/domain/tasks/system/task-id-utils.js +2 -1
- package/dist/domain/tasks/system/task-lifecycle-edit.d.ts +2 -5
- package/dist/domain/tasks/system/task-lifecycle-edit.js +4 -10
- package/dist/domain/tasks/system/task-lock.d.ts +1 -5
- package/dist/domain/tasks/system/task-lock.js +5 -45
- package/dist/domain/tasks/system/task-mutations.d.ts +1 -12
- package/dist/domain/tasks/system/task-mutations.js +2 -19
- package/dist/domain/tasks/system/task-state.d.ts +2 -6
- package/dist/domain/tasks/system/task-state.js +1 -6
- package/dist/domain/threads/artifact-io.d.ts +0 -2
- package/dist/domain/threads/artifact-io.js +2 -17
- package/dist/domain/threads/contract.js +0 -4
- package/dist/domain/threads/hook-runner.d.ts +0 -2
- package/dist/domain/threads/hook-runner.js +2 -5
- package/dist/domain/threads/index.js +1 -2
- package/dist/domain/threads/prompt-builder.d.ts +3 -4
- package/dist/domain/threads/prompt-builder.js +3 -3
- package/dist/domain/threads/runner.d.ts +2 -3
- package/dist/domain/threads/runner.js +40 -40
- package/dist/domain/threads/shell-templates.js +0 -8
- package/dist/domain/threads/state-machine.d.ts +1 -1
- package/dist/domain/threads/state-machine.js +10 -18
- package/dist/domain/threads/template-loader.d.ts +2 -2
- package/dist/domain/threads/template-loader.js +7 -11
- package/dist/domain/threads/template-validate.d.ts +3 -0
- package/dist/domain/threads/template-validate.js +49 -51
- package/dist/domain/threads/template-validate.parity.js +0 -7
- package/dist/domain/threads/template-writer.d.ts +3 -1
- package/dist/domain/threads/template-writer.js +16 -20
- package/dist/domain/threads/tree.d.ts +0 -1
- package/dist/domain/threads/tree.js +0 -10
- package/dist/domain/threads/utils.d.ts +0 -2
- package/dist/domain/threads/utils.js +0 -10
- package/dist/domain/tui-session/index.js +0 -2
- package/dist/domain/tui-session/tui-session-service.js +16 -26
- package/dist/domain/tui-session/types.d.ts +1 -36
- package/dist/domain/tui-session/types.js +0 -3
- package/dist/domain/ui-service/app-router.d.ts +30 -12
- package/dist/domain/ui-service/app-router.js +4 -6
- package/dist/domain/ui-service/assistant-snapshots.d.ts +10 -0
- package/dist/domain/ui-service/assistant-snapshots.js +43 -0
- package/dist/domain/ui-service/index.d.ts +1 -2
- package/dist/domain/ui-service/index.js +0 -2
- package/dist/domain/ui-service/input-schemas.d.ts +16 -23
- package/dist/domain/ui-service/input-schemas.js +22 -77
- package/dist/domain/ui-service/mutate/approvals.js +10 -18
- package/dist/domain/ui-service/mutate/auth.js +14 -12
- package/dist/domain/ui-service/mutate/commissions.js +4 -3
- package/dist/domain/ui-service/mutate/config.js +5 -14
- package/dist/domain/ui-service/mutate/errors.d.ts +7 -0
- package/dist/domain/ui-service/mutate/errors.js +14 -0
- package/dist/domain/ui-service/mutate/executions.js +2 -4
- package/dist/domain/ui-service/mutate/hooks.d.ts +0 -4
- package/dist/domain/ui-service/mutate/hooks.js +4 -28
- package/dist/domain/ui-service/mutate/issues.js +4 -15
- package/dist/domain/ui-service/mutate/platform-settings.js +3 -6
- package/dist/domain/ui-service/mutate/plugin-packages.js +10 -19
- package/dist/domain/ui-service/mutate/plugins.js +11 -40
- package/dist/domain/ui-service/mutate/profiles.d.ts +15 -0
- package/dist/domain/ui-service/mutate/profiles.js +10 -9
- package/dist/domain/ui-service/mutate/projects.js +0 -3
- package/dist/domain/ui-service/mutate/schedules.js +14 -34
- package/dist/domain/ui-service/mutate/session-metadata.d.ts +3 -0
- package/dist/domain/ui-service/mutate/session-metadata.js +28 -0
- package/dist/domain/ui-service/mutate/sessions.js +55 -45
- package/dist/domain/ui-service/mutate/system.d.ts +2 -1
- package/dist/domain/ui-service/mutate/system.js +24 -36
- package/dist/domain/ui-service/mutate/tasks.d.ts +5 -5
- package/dist/domain/ui-service/mutate/tasks.js +18 -20
- package/dist/domain/ui-service/mutate/thread-templates.js +4 -28
- package/dist/domain/ui-service/mutate/threads.js +3 -5
- package/dist/domain/ui-service/mutate/waitpoints.js +3 -7
- package/dist/domain/ui-service/platform-settings.js +3 -6
- package/dist/domain/ui-service/plugins-shared.d.ts +3 -0
- package/dist/domain/ui-service/plugins-shared.js +17 -25
- package/dist/domain/ui-service/query/approvals.js +0 -5
- package/dist/domain/ui-service/query/config.d.ts +3 -3
- package/dist/domain/ui-service/query/config.js +5 -23
- package/dist/domain/ui-service/query/cost.js +0 -3
- package/dist/domain/ui-service/query/executions.js +2 -4
- package/dist/domain/ui-service/query/issues.js +0 -7
- package/dist/domain/ui-service/query/machine-detail.js +3 -2
- package/dist/domain/ui-service/query/machines.js +0 -7
- package/dist/domain/ui-service/query/memory.js +0 -5
- package/dist/domain/ui-service/query/notes.js +2 -1
- package/dist/domain/ui-service/query/plugins.js +3 -23
- package/dist/domain/ui-service/query/projects.js +0 -3
- package/dist/domain/ui-service/query/schedules.d.ts +3 -0
- package/dist/domain/ui-service/query/schedules.js +15 -14
- package/dist/domain/ui-service/query/sessions.js +18 -28
- package/dist/domain/ui-service/query/skills.js +0 -7
- package/dist/domain/ui-service/query/system.d.ts +1 -0
- package/dist/domain/ui-service/query/system.js +5 -16
- package/dist/domain/ui-service/query/task-verification.js +2 -4
- package/dist/domain/ui-service/query/thread-template-detail.d.ts +1 -7
- package/dist/domain/ui-service/query/thread-template-detail.js +6 -42
- package/dist/domain/ui-service/query/thread-templates.d.ts +8 -3
- package/dist/domain/ui-service/query/thread-templates.js +6 -17
- package/dist/domain/ui-service/query/threads.js +2 -1
- package/dist/domain/ui-service/query/waitpoints.js +0 -7
- package/dist/domain/ui-service/query-input-schemas.d.ts +1 -1
- package/dist/domain/ui-service/session-metadata-schemas.d.ts +13 -0
- package/dist/domain/ui-service/session-metadata-schemas.js +9 -0
- package/dist/domain/ui-service/subscribe.d.ts +2 -1
- package/dist/domain/ui-service/subscribe.js +31 -50
- package/dist/domain/ui-service/trpc.js +2 -5
- package/dist/domain/ui-service/types.d.ts +37 -32
- package/dist/domain/ui-service/types.js +0 -4
- package/dist/domain/ui-service/ui-service.js +8 -6
- package/dist/domain/waitpoints/notices.js +0 -5
- package/dist/domain/waitpoints/service.d.ts +1 -1
- package/dist/domain/waitpoints/service.js +0 -5
- package/dist/entry/app.js +29 -37
- package/dist/entry/auth-cli.d.ts +2 -6
- package/dist/entry/auth-cli.js +1 -5
- package/dist/entry/auth-login-cli.d.ts +2 -2
- package/dist/entry/auth-login-cli.js +0 -4
- package/dist/entry/auth-login-terminal.js +0 -4
- package/dist/entry/cli-help.d.ts +1 -0
- package/dist/entry/cli-help.js +28 -0
- package/dist/entry/cli.d.ts +1 -6
- package/dist/entry/cli.js +30 -62
- package/dist/entry/client-cli.d.ts +4 -0
- package/dist/entry/client-cli.js +62 -0
- package/dist/entry/daemon-notice.js +3 -2
- package/dist/entry/daemon.d.ts +0 -10
- package/dist/entry/daemon.js +8 -4
- package/dist/entry/doctor-cli.d.ts +1 -5
- package/dist/entry/doctor-cli.js +0 -5
- package/dist/entry/fast-install.d.ts +0 -2
- package/dist/entry/fast-install.js +1 -1
- package/dist/entry/feishu-login.d.ts +1 -5
- package/dist/entry/feishu-login.js +1 -1
- package/dist/entry/hook-cli.d.ts +2 -7
- package/dist/entry/hook-cli.js +8 -32
- package/dist/entry/init-auth.js +0 -4
- package/dist/entry/init.d.ts +4 -7
- package/dist/entry/init.js +17 -32
- package/dist/entry/local-ui.js +4 -8
- package/dist/entry/provider-cli.d.ts +2 -6
- package/dist/entry/signal-cli.d.ts +2 -7
- package/dist/entry/signal-cli.js +1 -7
- package/dist/entry/start-ui-http.d.ts +0 -21
- package/dist/entry/start-ui-http.js +8 -19
- package/dist/entry/startup-notify.d.ts +2 -6
- package/dist/entry/startup-notify.js +2 -2
- package/dist/entry/ui-cli.d.ts +1 -5
- package/dist/entry/ui-http-gate.d.ts +3 -1
- package/dist/entry/ui-http-gate.js +5 -5
- package/dist/events/event-logger.d.ts +1 -1
- package/dist/events/event-types.d.ts +2 -9
- package/dist/hooks/agents-md-injector.mjs +1 -25
- package/dist/hooks/cortex-hook-api.mjs +1 -4
- package/dist/hooks/memory-ref-tracker.mjs +0 -3
- package/dist/hooks/new-session-hook.mjs +3 -9
- package/dist/hooks/rules-loader.mjs +3 -12
- package/dist/hooks/session-activity-tracker.mjs +1 -21
- package/dist/hooks/status-md-guard.mjs +0 -11
- package/dist/hooks/task-status-check.mjs +0 -4
- package/dist/hooks/tasks-yaml-guard.mjs +0 -6
- package/dist/orchestration/agent-file-send.d.ts +17 -8
- package/dist/orchestration/agent-file-send.js +30 -17
- package/dist/orchestration/agent-runner.d.ts +1 -4
- package/dist/orchestration/agent-runner.js +5 -19
- package/dist/orchestration/attachments-store.js +2 -30
- package/dist/orchestration/conversation-request.d.ts +0 -5
- package/dist/orchestration/conversation-request.js +5 -16
- package/dist/orchestration/delta-coalescer.d.ts +0 -2
- package/dist/orchestration/delta-coalescer.js +1 -8
- package/dist/orchestration/dispatch-reconciler.js +1 -3
- package/dist/orchestration/durable-helpers.d.ts +0 -1
- package/dist/orchestration/durable-helpers.js +0 -1
- package/dist/orchestration/edit-retry.d.ts +4 -9
- package/dist/orchestration/edit-retry.js +4 -11
- package/dist/orchestration/human-answer-backstop.js +0 -10
- package/dist/orchestration/interactions/ask-user-question.d.ts +1 -4
- package/dist/orchestration/interactions/ask-user-question.js +2 -26
- package/dist/orchestration/interactions/ask-user-resume.d.ts +1 -1
- package/dist/orchestration/interactions/ask-user-resume.js +1 -1
- package/dist/orchestration/interactions/command-action-router.d.ts +1 -17
- package/dist/orchestration/interactions/command-action-router.js +0 -42
- package/dist/orchestration/interactions/interaction-handlers.js +4 -6
- package/dist/orchestration/interactions/interaction-records.d.ts +0 -3
- package/dist/orchestration/interactions/interaction-records.js +8 -30
- package/dist/orchestration/interactions/plan-approvals.d.ts +0 -14
- package/dist/orchestration/interactions/plan-approvals.js +1 -13
- package/dist/orchestration/interactions/plan-handler.d.ts +1 -4
- package/dist/orchestration/interactions/plan-handler.js +6 -6
- package/dist/orchestration/interactions/plan-response.js +0 -10
- package/dist/orchestration/interactions/ui-update-prompt.js +31 -39
- package/dist/orchestration/interactions/update-prompt.js +0 -4
- package/dist/orchestration/manager-qa.d.ts +0 -6
- package/dist/orchestration/manager-qa.js +1 -10
- package/dist/orchestration/mid-turn-inject.d.ts +0 -2
- package/dist/orchestration/mid-turn-inject.js +0 -5
- package/dist/orchestration/outputs-store.d.ts +5 -0
- package/dist/orchestration/outputs-store.js +5 -7
- package/dist/orchestration/pi-background-subagent.js +4 -2
- package/dist/orchestration/resume-dispatcher.d.ts +1 -2
- package/dist/orchestration/resume-dispatcher.js +3 -6
- package/dist/orchestration/resume-target-sink.js +0 -4
- package/dist/orchestration/routing/commands/cancel.js +1 -1
- package/dist/orchestration/routing/commands/channel.d.ts +0 -4
- package/dist/orchestration/routing/commands/channel.js +0 -10
- package/dist/orchestration/routing/commands/command-context.d.ts +0 -15
- package/dist/orchestration/routing/commands/command-context.js +0 -3
- package/dist/orchestration/routing/commands/compact.d.ts +2 -6
- package/dist/orchestration/routing/commands/device.d.ts +0 -2
- package/dist/orchestration/routing/commands/device.js +1 -18
- package/dist/orchestration/routing/commands/dispatch.js +0 -3
- package/dist/orchestration/routing/commands/index.js +6 -9
- package/dist/orchestration/routing/commands/lang.js +0 -5
- package/dist/orchestration/routing/commands/login.d.ts +0 -3
- package/dist/orchestration/routing/commands/login.js +1 -1
- package/dist/orchestration/routing/commands/mode.d.ts +0 -4
- package/dist/orchestration/routing/commands/mode.js +1 -11
- package/dist/orchestration/routing/commands/restart.js +1 -4
- package/dist/orchestration/routing/commands/schedule.js +0 -2
- package/dist/orchestration/routing/commands/sendfile.js +1 -1
- package/dist/orchestration/routing/commands/session.d.ts +0 -2
- package/dist/orchestration/routing/commands/session.js +3 -38
- package/dist/orchestration/routing/commands/status.d.ts +0 -2
- package/dist/orchestration/routing/commands/status.js +0 -5
- package/dist/orchestration/routing/commands/tail.js +1 -1
- package/dist/orchestration/routing/commands/task.d.ts +0 -2
- package/dist/orchestration/routing/commands/task.js +2 -7
- package/dist/orchestration/routing/commands/time-ago.d.ts +2 -0
- package/dist/orchestration/routing/commands/time-ago.js +14 -0
- package/dist/orchestration/routing/edit-handler.d.ts +0 -1
- package/dist/orchestration/routing/edit-handler.js +6 -11
- package/dist/orchestration/routing/file-handler.d.ts +3 -13
- package/dist/orchestration/routing/file-handler.js +7 -2
- package/dist/orchestration/routing/hook-bridge-subscribers.js +5 -9
- package/dist/orchestration/routing/hook-bridge.d.ts +1 -6
- package/dist/orchestration/routing/hook-bridge.js +1 -13
- package/dist/orchestration/routing/webhook.d.ts +2 -8
- package/dist/orchestration/routing/webhook.js +15 -13
- package/dist/orchestration/session-compact.js +0 -2
- package/dist/orchestration/session-retention-controller.d.ts +0 -2
- package/dist/orchestration/session-retention-controller.js +5 -7
- package/dist/orchestration/session-rewind.d.ts +3 -0
- package/dist/orchestration/session-rewind.js +8 -6
- package/dist/orchestration/status-helpers.d.ts +1 -6
- package/dist/orchestration/status-helpers.js +3 -8
- package/dist/orchestration/subagent-adopt.d.ts +2 -19
- package/dist/orchestration/subagent-adopt.js +7 -18
- package/dist/orchestration/subagent-attribution.d.ts +22 -2
- package/dist/orchestration/subagent-attribution.js +8 -9
- package/dist/orchestration/subagent-delivery.js +6 -14
- package/dist/orchestration/subagent-rows.d.ts +1 -6
- package/dist/orchestration/subagent-rows.js +1 -10
- package/dist/orchestration/subagent-webhook.js +7 -15
- package/dist/orchestration/thread-callback.js +2 -2
- package/dist/orchestration/thread-delivery.js +0 -8
- package/dist/orchestration/thread-executor.d.ts +1 -1
- package/dist/orchestration/thread-executor.js +14 -12
- package/dist/orchestration/thread-input.d.ts +0 -2
- package/dist/orchestration/thread-input.js +4 -14
- package/dist/orchestration/thread-notices.d.ts +0 -2
- package/dist/orchestration/thread-notices.js +0 -13
- package/dist/orchestration/thread-run/index.d.ts +3 -3
- package/dist/orchestration/thread-run/index.js +2 -3
- package/dist/orchestration/thread-run/render-summary.js +7 -15
- package/dist/orchestration/thread-run/render-task.d.ts +0 -2
- package/dist/orchestration/thread-run/render-task.js +13 -24
- package/dist/orchestration/thread-run/settle.js +0 -6
- package/dist/orchestration/thread-run/thread-run.d.ts +0 -17
- package/dist/orchestration/thread-run/thread-run.js +4 -14
- package/dist/orchestration/thread-run/thread-surface.js +0 -6
- package/dist/orchestration/thread-run/verdict.js +0 -4
- package/dist/orchestration/transcript-sink.d.ts +2 -0
- package/dist/orchestration/transcript-sink.js +1 -7
- package/dist/orchestration/turn/active-turns.d.ts +3 -23
- package/dist/orchestration/turn/active-turns.js +3 -40
- package/dist/orchestration/turn/background-hold.d.ts +0 -15
- package/dist/orchestration/turn/background-hold.js +4 -23
- package/dist/orchestration/turn/hold-render-platform.js +0 -9
- package/dist/orchestration/turn/hold-render-web.d.ts +3 -3
- package/dist/orchestration/turn/hold-render-web.js +2 -14
- package/dist/orchestration/turn/terminal.js +1 -8
- package/dist/orchestration/turn/turn-prep.d.ts +1 -15
- package/dist/orchestration/turn/turn-prep.js +3 -69
- package/dist/orchestration/turn/turn.d.ts +1 -3
- package/dist/orchestration/turn/turn.js +8 -33
- package/dist/orchestration/waitpoint-ingress.d.ts +0 -10
- package/dist/orchestration/waitpoint-ingress.js +8 -24
- package/dist/orchestration/waitpoint-notifier.js +0 -7
- package/dist/orchestration/waitpoint-remote-drain.d.ts +2 -0
- package/dist/orchestration/waitpoint-remote-drain.js +2 -7
- package/dist/orchestration/waitpoint-sweep.d.ts +1 -2
- package/dist/orchestration/waitpoint-sweep.js +2 -9
- package/dist/platform/adapters/chunked-output-stream.d.ts +71 -0
- package/dist/platform/adapters/chunked-output-stream.js +382 -0
- package/dist/platform/adapters/composite-adapter.d.ts +1 -1
- package/dist/platform/adapters/composite-adapter.js +1 -1
- package/dist/platform/adapters/feishu-http.d.ts +6 -11
- package/dist/platform/adapters/feishu-http.js +11 -9
- package/dist/platform/adapters/feishu-image.js +0 -7
- package/dist/platform/adapters/feishu-output-stream.d.ts +4 -42
- package/dist/platform/adapters/feishu-output-stream.js +14 -336
- package/dist/platform/adapters/feishu.d.ts +10 -3
- package/dist/platform/adapters/feishu.js +47 -73
- package/dist/platform/adapters/index.d.ts +0 -21
- package/dist/platform/adapters/index.js +0 -28
- package/dist/platform/adapters/project-conduits.js +0 -5
- package/dist/platform/adapters/slack-output-stream.d.ts +4 -44
- package/dist/platform/adapters/slack-output-stream.js +14 -377
- package/dist/platform/adapters/slack.d.ts +2 -6
- package/dist/platform/adapters/slack.js +30 -48
- package/dist/platform/adapters/tui/index.d.ts +0 -7
- package/dist/platform/adapters/tui/index.js +0 -4
- package/dist/platform/adapters/tui/ports.d.ts +27 -0
- package/dist/platform/adapters/tui/ports.js +0 -3
- package/dist/platform/adapters/tui/tui-conduit-state.d.ts +0 -2
- package/dist/platform/adapters/tui/tui-conduit-state.js +0 -3
- package/dist/platform/adapters/tui/tui-connection.d.ts +0 -10
- package/dist/platform/adapters/tui/tui-connection.js +0 -5
- package/dist/platform/adapters/tui/tui-gateway.d.ts +4 -42
- package/dist/platform/adapters/tui/tui-gateway.js +12 -35
- package/dist/platform/adapters/tui/tui-output-stream.d.ts +0 -2
- package/dist/platform/adapters/tui/tui-output-stream.js +1 -3
- package/dist/platform/adapters/tui/tui-transcript.js +2 -5
- package/dist/platform/browser/display.d.ts +0 -2
- package/dist/platform/browser/display.js +0 -1
- package/dist/platform/browser/managed-browser.d.ts +4 -9
- package/dist/platform/browser/managed-browser.js +5 -10
- package/dist/platform/index.d.ts +3 -9
- package/dist/platform/index.js +3 -5
- package/dist/platform/output-stream-chunk.js +0 -3
- package/dist/platform/output-stream-helpers.js +0 -3
- package/dist/platform/testing.d.ts +0 -2
- package/dist/platform/testing.js +3 -11
- package/dist/platform/tool-trace.d.ts +0 -11
- package/dist/platform/tool-trace.js +0 -1
- package/dist/platform/ui-http/access-jwt.js +0 -13
- package/dist/platform/ui-http/app-update.js +3 -17
- package/dist/platform/ui-http/device-ports.js +3 -20
- package/dist/platform/ui-http/http-json.d.ts +8 -0
- package/dist/platform/ui-http/http-json.js +33 -0
- package/dist/platform/ui-http/listening-ports.js +4 -6
- package/dist/platform/ui-http/port-forward.d.ts +1 -2
- package/dist/platform/ui-http/port-forward.js +1 -2
- package/dist/platform/ui-http/ui-auth-routes.d.ts +3 -3
- package/dist/platform/ui-http/ui-auth-routes.js +2 -29
- package/dist/platform/ui-http/ui-http-server.d.ts +4 -12
- package/dist/platform/ui-http/ui-ota.js +4 -26
- package/dist/platform/ui-http/ui-session.js +0 -10
- package/dist/platform/ui-http/zip-writer.js +0 -8
- package/dist/platform/utils/rate-limiter.d.ts +0 -2
- package/dist/platform/utils/rate-limiter.js +0 -6
- package/dist/platform/utils/reaction-diagnostics.d.ts +1 -1
- package/dist/platform/utils/reaction-diagnostics.js +3 -3
- package/dist/platform/utils/readable-file.d.ts +9 -0
- package/dist/platform/utils/readable-file.js +18 -0
- package/dist/store/conversation-display-projection.d.ts +3 -2
- package/dist/store/conversation-display-projection.js +10 -23
- package/dist/store/conversation-history-reader.d.ts +1 -2
- package/dist/store/conversation-history-reader.js +1 -19
- package/dist/store/conversation-history-repo.d.ts +11 -29
- package/dist/store/conversation-history-repo.js +12 -13
- package/dist/store/conversation-ledger-repo.d.ts +0 -2
- package/dist/store/conversation-ledger-repo.js +0 -10
- package/dist/store/cost-repo.d.ts +1 -1
- package/dist/store/cost-repo.js +7 -12
- package/dist/store/execution-repo.d.ts +3 -25
- package/dist/store/execution-repo.js +4 -29
- package/dist/store/hook-registry.d.ts +7 -1
- package/dist/store/hook-registry.js +31 -6
- package/dist/store/hook-sync.d.ts +1 -1
- package/dist/store/hook-sync.js +1 -8
- package/dist/store/hook-writer.d.ts +1 -3
- package/dist/store/hook-writer.js +2 -2
- package/dist/store/outbound-queue.d.ts +1 -8
- package/dist/store/outbound-queue.js +3 -8
- package/dist/store/pending-injection-repo.d.ts +2 -8
- package/dist/store/plugin-retirement.d.ts +0 -4
- package/dist/store/plugin-retirement.js +3 -12
- package/dist/store/plugin-sync.js +0 -6
- package/dist/store/profile-repo.d.ts +3 -13
- package/dist/store/profile-repo.js +3 -36
- package/dist/store/project-dir-repo.js +0 -4
- package/dist/store/retention-candidate-repo.d.ts +0 -1
- package/dist/store/retention-candidate-repo.js +0 -6
- package/dist/store/schedule-repo.d.ts +0 -1
- package/dist/store/schedule-repo.js +0 -2
- package/dist/store/session-registry-import.js +0 -9
- package/dist/store/session-registry-journal.d.ts +2 -0
- package/dist/store/session-registry-journal.js +17 -38
- package/dist/store/session-registry-repo.d.ts +5 -2
- package/dist/store/session-registry-repo.js +12 -12
- package/dist/store/session-totals-repo.js +0 -4
- package/dist/store/task-repo.d.ts +0 -1
- package/dist/store/task-repo.js +1 -10
- package/dist/store/version-migrations.d.ts +3 -3
- package/dist/store/version-migrations.js +4 -8
- package/dist/store/waitpoint-repo.d.ts +0 -3
- package/dist/store/waitpoint-repo.js +0 -16
- package/dist/tui/App.js +22 -31
- package/dist/tui/components/AskUserModal.d.ts +1 -2
- package/dist/tui/components/AskUserModal.js +6 -8
- package/dist/tui/components/ConfirmModal.js +3 -5
- package/dist/tui/components/Dashboard.d.ts +1 -2
- package/dist/tui/components/Dashboard.js +16 -19
- package/dist/tui/components/DashboardCostTab.js +6 -5
- package/dist/tui/components/DashboardExecutionsTab.js +7 -9
- package/dist/tui/components/DashboardSchedulesTab.js +14 -11
- package/dist/tui/components/DashboardTasksTab.js +12 -21
- package/dist/tui/components/DashboardThreadsTab.js +8 -11
- package/dist/tui/components/InputBox.js +3 -5
- package/dist/tui/components/Notifications.d.ts +1 -8
- package/dist/tui/components/Notifications.js +6 -24
- package/dist/tui/components/ProjectSwitcher.d.ts +1 -2
- package/dist/tui/components/ProjectSwitcher.js +7 -15
- package/dist/tui/components/SessionPicker.js +4 -6
- package/dist/tui/components/SidePanel.d.ts +1 -3
- package/dist/tui/components/SidePanel.js +2 -4
- package/dist/tui/components/SlashMenu.js +3 -2
- package/dist/tui/components/StatusLine.js +7 -16
- package/dist/tui/components/Transcript.d.ts +2 -3
- package/dist/tui/components/Transcript.js +2 -13
- package/dist/tui/components/dashboard-constants.js +0 -6
- package/dist/tui/hooks/useDashboardData.d.ts +1 -9
- package/dist/tui/hooks/useDashboardData.js +8 -33
- package/dist/tui/hooks/useKeybindings.d.ts +0 -1
- package/dist/tui/hooks/useKeybindings.js +0 -7
- package/dist/tui/hooks/useMouseHandler.d.ts +2 -4
- package/dist/tui/hooks/useMouseHandler.js +1 -14
- package/dist/tui/hooks/useMutate.js +2 -4
- package/dist/tui/hooks/useNotifications.d.ts +0 -2
- package/dist/tui/hooks/useNotifications.js +0 -10
- package/dist/tui/hooks/useTranscript.d.ts +0 -2
- package/dist/tui/hooks/useTranscript.js +0 -7
- package/dist/tui/index.js +7 -5
- package/dist/tui/logic.d.ts +0 -15
- package/dist/tui/logic.js +0 -61
- package/dist/tui/raf-batch.d.ts +0 -2
- package/dist/tui/raf-batch.js +0 -14
- package/dist/tui/render/markdown.js +0 -3
- package/dist/tui/render-output.d.ts +2 -6
- package/dist/tui/render-output.js +0 -5
- package/dist/tui/slash-commands.js +33 -32
- package/dist/tui/turn-status.js +3 -8
- package/dist/tui/ws-client.d.ts +1 -6
- package/dist/tui/ws-client.js +0 -18
- package/package.json +4 -4
- package/web/dist/assets/index-C9sEss8T.css +1 -0
- package/web/dist/assets/index-fVf_wSMQ.js +447 -0
- package/web/dist/assets/{index-BAeLybF0.js → index-zvUjPRjt.js} +1 -1
- package/web/dist/index.html +2 -5
- package/web/dist/theme.css +3 -5
- package/defaults/config/AGENTS.md +0 -10
- package/defaults/config/hooks/AGENTS.md +0 -15
- package/defaults/config/mcp-config-empty.json +0 -3
- package/defaults/hooks/AGENTS.md +0 -15
- package/defaults/mcp-config-slack.json +0 -12
- package/defaults/mcp-config-web.json +0 -12
- package/dist/agent-adapter/index.d.ts +0 -5
- package/dist/agent-adapter/index.js +0 -5
- package/dist/agent-adapter/normalize/event-stream.d.ts +0 -9
- package/dist/agent-adapter/normalize/event-stream.js +0 -43
- package/dist/agent-adapter/normalize/hooks.d.ts +0 -26
- package/dist/agent-adapter/normalize/hooks.js +0 -1
- package/dist/domain/commissions/prompt-block.d.ts +0 -19
- package/dist/domain/commissions/prompt-block.js +0 -76
- package/dist/domain/mcp/core-server.d.ts +0 -1
- package/dist/domain/mcp/core-server.js +0 -26
- package/dist/domain/mcp/feishu/index.d.ts +0 -4
- package/dist/domain/mcp/feishu/index.js +0 -9
- package/dist/domain/mcp/feishu-server.d.ts +0 -1
- package/dist/domain/mcp/feishu-server.js +0 -34
- package/dist/domain/mcp/interaction-server.d.ts +0 -1
- package/dist/domain/mcp/interaction-server.js +0 -38
- package/dist/domain/mcp/manager-qa-server.d.ts +0 -1
- package/dist/domain/mcp/manager-qa-server.js +0 -22
- package/dist/domain/mcp/server.d.ts +0 -1
- package/dist/domain/mcp/server.js +0 -33
- package/dist/domain/mcp/slack-server.d.ts +0 -2
- package/dist/domain/mcp/slack-server.js +0 -35
- package/dist/domain/mcp/tasks-server.d.ts +0 -1
- package/dist/domain/mcp/tasks-server.js +0 -22
- package/dist/domain/mcp/thread-server.d.ts +0 -1
- package/dist/domain/mcp/thread-server.js +0 -26
- package/dist/domain/mcp/web-server.d.ts +0 -1
- package/dist/domain/mcp/web-server.js +0 -30
- package/dist/domain/remote/cortex-client-config.d.ts +0 -32
- package/dist/domain/remote/cortex-client-config.js +0 -45
- package/dist/domain/tasks/parser.d.ts +0 -1
- package/dist/domain/tasks/parser.js +0 -5
- package/dist/domain/tasks/pending-tracker.d.ts +0 -70
- package/dist/domain/tasks/pending-tracker.js +0 -165
- package/dist/domain/tasks/recommendation/extractor.d.ts +0 -12
- package/dist/domain/tasks/recommendation/extractor.js +0 -559
- package/dist/domain/tasks/recommendation/patterns.d.ts +0 -11
- package/dist/domain/tasks/recommendation/patterns.js +0 -95
- package/dist/domain/tasks/recommendation/types.d.ts +0 -67
- package/dist/domain/tasks/recommendation/types.js +0 -1
- package/dist/domain/tasks/store.d.ts +0 -1
- package/dist/domain/tasks/store.js +0 -3
- package/dist/domain/tasks/system/task-process.d.ts +0 -37
- package/dist/domain/tasks/system/task-process.js +0 -117
- package/dist/domain/threads/auto-thread.d.ts +0 -3
- package/dist/domain/threads/auto-thread.js +0 -15
- package/dist/events/event-replay.d.ts +0 -1
- package/dist/events/event-replay.js +0 -47
- package/dist/orchestration/interactions/update-prompt-slack.d.ts +0 -6
- package/dist/orchestration/interactions/update-prompt-slack.js +0 -100
- package/dist/orchestration/routing/commands/thread.d.ts +0 -2
- package/dist/orchestration/routing/commands/thread.js +0 -2
- package/dist/platform/adapters/slack-project-conduits.d.ts +0 -1
- package/dist/platform/adapters/slack-project-conduits.js +0 -5
- package/dist/platform/adapters/tui/tui-notifications.d.ts +0 -12
- package/dist/platform/adapters/tui/tui-notifications.js +0 -56
- package/dist/store/in-memory-repository.d.ts +0 -14
- package/dist/store/in-memory-repository.js +0 -27
- package/dist/tui/components/PlanFeedbackModal.d.ts +0 -11
- package/dist/tui/components/PlanFeedbackModal.js +0 -161
- package/dist/tui/hooks/useWsClient.d.ts +0 -29
- package/dist/tui/hooks/useWsClient.js +0 -69
- package/dist/tui/render/rich-blocks.d.ts +0 -11
- package/dist/tui/render/rich-blocks.js +0 -26
- package/web/dist/AGENTS.md +0 -10
- package/web/dist/assets/index-B1dBi8Za.css +0 -1
- package/web/dist/assets/index-BcQI8Fh5.js +0 -445
|
@@ -17,11 +17,9 @@ export const commandsEn = {
|
|
|
17
17
|
'cmd.compact.unsupported': 'This session backend does not support manual context compaction.',
|
|
18
18
|
'cmd.compact.noSession': 'No active session to compact.',
|
|
19
19
|
// --- mode / backend / model / profile / skills / agent ---
|
|
20
|
-
'cmd.mode.switched': 'Switched to *${mode}* mode',
|
|
21
20
|
'cmd.mode.fromProfile': 'This channel runs in *${mode}* mode, from profile *${profile}*. Mode is part of the profile — change it with `!profile <name>` or in profiles.json.',
|
|
22
21
|
'cmd.mode.apiLabel': 'API',
|
|
23
22
|
'cmd.mode.planLabel': 'Plan',
|
|
24
|
-
'cmd.backend.switched': 'Backend: *${backend}*',
|
|
25
23
|
'cmd.backend.claudeLabel': 'Claude Code',
|
|
26
24
|
'cmd.backend.piLabel': 'PI',
|
|
27
25
|
'cmd.model.current': 'Model for this channel: *${model}* (profile *${profile}*)',
|
|
@@ -55,8 +53,6 @@ export const commandsEn = {
|
|
|
55
53
|
'cmd.skills.localGroup': '.claude/skills',
|
|
56
54
|
'cmd.agent.defaultSet': 'Default agent set to *${name}* (${detail})',
|
|
57
55
|
'cmd.agent.disabled': 'Default agent disabled.',
|
|
58
|
-
'cmd.agent.current': 'Default agent: *${name}* (${detail})',
|
|
59
|
-
'cmd.agent.none': 'No default agent set.\nAvailable: ${agents}',
|
|
60
56
|
'cmd.agent.unknown': 'Unknown agent: `${name}`\nAvailable: ${available}',
|
|
61
57
|
'cmd.agent.channelSet': 'Agent for this conversation set to *${name}* (${detail}). Takes effect on the next message.',
|
|
62
58
|
'cmd.agent.crossBackendBlocked': 'Can\'t switch to *${name}* — it pins a profile on the `${target}` backend but this conversation is on `${current}`. Backends can\'t be swapped mid-conversation. Start a new session (`!new`) to switch backend.',
|
|
@@ -183,9 +179,8 @@ export const commandsEn = {
|
|
|
183
179
|
'cmd.auth.state.unknown': 'Unknown',
|
|
184
180
|
'cmd.auth.accountLine': '• ${backend} · ${label} · ${authType} · ${state}${inUse}',
|
|
185
181
|
'cmd.auth.credentials': ' Credentials:',
|
|
186
|
-
'cmd.auth.credentialLine': ' - ${authType} · ${state} · ${source}${expires}
|
|
182
|
+
'cmd.auth.credentialLine': ' - ${authType} · ${state} · ${source}${expires}',
|
|
187
183
|
'cmd.auth.expires': ' · expires ${time}',
|
|
188
|
-
'cmd.auth.refreshExpires': ' · refresh expires ${time}',
|
|
189
184
|
'cmd.auth.hiddenLoggedOut': '${n} logged-out provider hidden.',
|
|
190
185
|
'cmd.auth.usage': 'Usage: `!login [status|cc|pi [provider]]`',
|
|
191
186
|
'cmd.auth.loginReady': '${authType} login is ready for `${provider}`.',
|
|
@@ -395,11 +390,9 @@ export const commandsZh = {
|
|
|
395
390
|
'cmd.compact.unsupported': '此会话后端不支持手动压缩上下文。',
|
|
396
391
|
'cmd.compact.noSession': '当前没有可压缩的活动会话。',
|
|
397
392
|
// --- mode / backend / model / profile / skills / agent ---
|
|
398
|
-
'cmd.mode.switched': '已切换到 *${mode}* 模式',
|
|
399
393
|
'cmd.mode.fromProfile': '本频道运行在 *${mode}* 模式,来自配置 *${profile}*。模式是配置的一部分 —— 用 `!profile <name>` 切换,或直接改 profiles.json。',
|
|
400
394
|
'cmd.mode.apiLabel': 'API',
|
|
401
395
|
'cmd.mode.planLabel': 'Plan',
|
|
402
|
-
'cmd.backend.switched': '后端:*${backend}*',
|
|
403
396
|
'cmd.backend.claudeLabel': 'Claude Code',
|
|
404
397
|
'cmd.backend.piLabel': 'PI',
|
|
405
398
|
'cmd.model.current': '本频道模型:*${model}*(配置 *${profile}*)',
|
|
@@ -422,9 +415,9 @@ export const commandsZh = {
|
|
|
422
415
|
'cmd.profile.crossBackendBlocked': '无法切换到 *${name}* —— 它使用 `${target}` backend,而当前对话在 `${current}` 上。对话进行中不能切换 backend。请开启新会话(`!new`)后再切换。',
|
|
423
416
|
'cmd.profile.channelHeader': '频道配置:*${effective}*(全局:${global})',
|
|
424
417
|
'cmd.profile.activeHeader': '当前配置:*${effective}*',
|
|
425
|
-
'cmd.profile.markerDefault': '
|
|
426
|
-
'cmd.profile.markerGlobal': '
|
|
427
|
-
'cmd.profile.markerChannel': '
|
|
418
|
+
'cmd.profile.markerDefault': '默认',
|
|
419
|
+
'cmd.profile.markerGlobal': '全局',
|
|
420
|
+
'cmd.profile.markerChannel': '频道',
|
|
428
421
|
'cmd.profile.cleared': '频道配置已清除,使用全局:*${name}*',
|
|
429
422
|
'cmd.profile.globalUsage': '用法:`!profile global <name>`',
|
|
430
423
|
'cmd.profile.globalSet': '全局配置已设为 *${name}*',
|
|
@@ -433,8 +426,6 @@ export const commandsZh = {
|
|
|
433
426
|
'cmd.skills.localGroup': '.claude/skills',
|
|
434
427
|
'cmd.agent.defaultSet': '默认 agent 已设为 *${name}*(${detail})',
|
|
435
428
|
'cmd.agent.disabled': '默认 agent 已禁用。',
|
|
436
|
-
'cmd.agent.current': '默认 agent:*${name}*(${detail})',
|
|
437
|
-
'cmd.agent.none': '未设置默认 agent。\n可用:${agents}',
|
|
438
429
|
'cmd.agent.unknown': '未知 agent:`${name}`\n可用:${available}',
|
|
439
430
|
'cmd.agent.channelSet': '本对话的 agent 已设为 *${name}*(${detail}),下一条消息生效。',
|
|
440
431
|
'cmd.agent.crossBackendBlocked': '无法切换到 *${name}* —— 它钉死的配置使用 `${target}` backend,而当前对话在 `${current}` 上。对话进行中不能切换 backend。请开启新会话(`!new`)后再切换。',
|
|
@@ -561,9 +552,8 @@ export const commandsZh = {
|
|
|
561
552
|
'cmd.auth.state.unknown': '未知',
|
|
562
553
|
'cmd.auth.accountLine': '• ${backend} · ${label} · ${authType} · ${state}${inUse}',
|
|
563
554
|
'cmd.auth.credentials': ' 凭据:',
|
|
564
|
-
'cmd.auth.credentialLine': ' - ${authType} · ${state} · ${source}${expires}
|
|
555
|
+
'cmd.auth.credentialLine': ' - ${authType} · ${state} · ${source}${expires}',
|
|
565
556
|
'cmd.auth.expires': ' · 过期时间 ${time}',
|
|
566
|
-
'cmd.auth.refreshExpires': ' · 刷新凭据过期时间 ${time}',
|
|
567
557
|
'cmd.auth.hiddenLoggedOut': '已隐藏 ${n} 个未登录 provider。',
|
|
568
558
|
'cmd.auth.usage': '用法:`!login [status|cc|pi [provider]]`',
|
|
569
559
|
'cmd.auth.loginReady': '`${provider}` 的 ${authType} 登录已就绪。',
|
|
@@ -705,12 +695,12 @@ export const commandsZh = {
|
|
|
705
695
|
'cmd.thread.activeHeader': '*活动线程* `${id}`(${mode})',
|
|
706
696
|
'cmd.thread.statusLine': '状态:${status} | 活动 agent:${agent}',
|
|
707
697
|
'cmd.thread.stepsLine': '步骤:${steps} | 成本:$${cost}',
|
|
708
|
-
'cmd.thread.agentsLine': '
|
|
698
|
+
'cmd.thread.agentsLine': 'Agent:${agents}',
|
|
709
699
|
'cmd.thread.abortLine': '中止原因:${reason}',
|
|
710
|
-
'cmd.thread.adHoc': '
|
|
700
|
+
'cmd.thread.adHoc': '临时',
|
|
711
701
|
'cmd.thread.noTemplates': '未配置线程模板。',
|
|
712
702
|
'cmd.thread.templatesHeader': '*可用线程模板*',
|
|
713
|
-
'cmd.thread.templateLine': '`${name}` — ${description}
|
|
703
|
+
'cmd.thread.templateLine': '`${name}` — ${description}(agent:${agents})',
|
|
714
704
|
'cmd.thread.agentsTitle': '*可用 Agents*',
|
|
715
705
|
'cmd.thread.agentLine': '`${name}`(${profile})— ${description}',
|
|
716
706
|
'cmd.thread.noAgents': '未配置 agents。',
|
|
@@ -721,10 +711,10 @@ export const commandsZh = {
|
|
|
721
711
|
'cmd.thread.nothingRunning': '没有正在运行的任务可取消。',
|
|
722
712
|
'cmd.thread.noThreadsChannel': '本频道未找到线程。',
|
|
723
713
|
'cmd.thread.recentHeader': '*最近线程*',
|
|
724
|
-
'cmd.thread.recentLine': '`${id}` ${mode} — ${status} | ${steps}
|
|
714
|
+
'cmd.thread.recentLine': '`${id}` ${mode} — ${status} | ${steps} 个步骤 | $${cost}',
|
|
725
715
|
'cmd.thread.noRunning': '没有运行中的线程。',
|
|
726
716
|
'cmd.thread.runningHeader': '*运行中的线程*',
|
|
727
|
-
'cmd.thread.runningLine': '`${id}` — ${channel} | ${mode} | ${steps}
|
|
717
|
+
'cmd.thread.runningLine': '`${id}` — ${channel} | ${mode} | ${steps} 个步骤 | $${cost}',
|
|
728
718
|
'cmd.thread.usageHeader': '*线程命令*',
|
|
729
719
|
'cmd.thread.usageStatus': '`!thread` — 显示活动线程状态',
|
|
730
720
|
'cmd.thread.usageAgents': '`!thread agents` — 列出可用 agents',
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// input: nothing (leaf data slice)
|
|
2
|
-
// output: initEn / initZh — init/config wizard and provider login CLI messages
|
|
3
|
-
// pos: one locale slice; aggregated by core/locales/en.ts & zh.ts barrels
|
|
4
1
|
// >>> Keep en and zh keys in lockstep (zh typed against keyof typeof initEn) <<<
|
|
5
2
|
export const initEn = {
|
|
6
3
|
// ── Provider login CLI / init onboarding (protocol values stay untranslated) ──
|
|
@@ -359,9 +356,9 @@ export const initZh = {
|
|
|
359
356
|
'init.feishu.domainPrompt': 'FEISHU_DOMAIN(可选,"feishu" 或 "lark"):',
|
|
360
357
|
'init.feishu.domainPlaceholder': 'feishu(留空使用默认值)',
|
|
361
358
|
'init.feishu.authModePrompt': 'MCP 文档操作的身份:',
|
|
362
|
-
'init.feishu.authModeBotLabel': '
|
|
359
|
+
'init.feishu.authModeBotLabel': '机器人',
|
|
363
360
|
'init.feishu.authModeBotHint': '文档由应用拥有',
|
|
364
|
-
'init.feishu.authModeUserLabel': '
|
|
361
|
+
'init.feishu.authModeUserLabel': '用户(推荐)',
|
|
365
362
|
'init.feishu.authModeUserHint': '文档由你的飞书账号拥有',
|
|
366
363
|
'init.feishu.loginStarting': '正在启动飞书用户登录(OAuth 设备流程)...',
|
|
367
364
|
'init.feishu.loginComplete': '飞书用户登录完成。',
|
|
@@ -43,11 +43,6 @@ export declare const interactionsEn: {
|
|
|
43
43
|
readonly 'modal.planFeedbackTitle': "Plan Feedback";
|
|
44
44
|
readonly 'modal.feedbackLabel': "Your feedback (Cortex will revise the plan)";
|
|
45
45
|
readonly 'modal.feedbackPlaceholder': "What should be changed?";
|
|
46
|
-
readonly 'subtask.fromTask': "Subtask #${taskId}";
|
|
47
|
-
readonly 'subtask.fromUnknown': "a subtask";
|
|
48
|
-
readonly 'subtask.escalateHeader': "[Subtask question — escalated to you] ${from} hit something unclear/contradictory while executing and has no manager above it, so it is checking with you:";
|
|
49
|
-
readonly 'subtask.questionLabel': "Question: ${question}";
|
|
50
|
-
readonly 'subtask.escalateReply': "Just reply in this channel — your next message will be returned to that subtask as the answer.";
|
|
51
46
|
readonly 'subtask.replyDelivered': "Your reply has been delivered to the subtask that asked.";
|
|
52
47
|
};
|
|
53
48
|
export declare const interactionsZh: Record<keyof typeof interactionsEn, string>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// input: nothing (leaf data slice)
|
|
2
|
-
// output: interactionsEn / interactionsZh — message slice (filled by i18n extraction)
|
|
3
|
-
// pos: one locale slice; aggregated by core/locales/en.ts & zh.ts barrels
|
|
4
1
|
// >>> Keep en and zh keys in lockstep (zh typed against keyof typeof interactionsEn) <<<
|
|
5
2
|
export const interactionsEn = {
|
|
6
3
|
// --- interaction-handlers.ts ---
|
|
@@ -16,7 +13,7 @@ export const interactionsEn = {
|
|
|
16
13
|
'interaction.sessionActive': 'Session `${sessionName}` active — send your message below.${profileNote}',
|
|
17
14
|
'interaction.sessionProfileNote': ' (profile: ${profileName})',
|
|
18
15
|
'interaction.newConversation': '--- new conversation --- (profile: ${profileName})',
|
|
19
|
-
// --- update-prompt.ts
|
|
16
|
+
// --- update-prompt.ts ---
|
|
20
17
|
'update.installing': 'Installing @cortex-agent/server@${version}... daemon will restart shortly.',
|
|
21
18
|
'update.skipped': 'Skipped version ${version}.',
|
|
22
19
|
'update.cancelled': 'Update cancelled. Will check again at next interval.',
|
|
@@ -50,12 +47,7 @@ export const interactionsEn = {
|
|
|
50
47
|
'modal.planFeedbackTitle': 'Plan Feedback',
|
|
51
48
|
'modal.feedbackLabel': 'Your feedback (Cortex will revise the plan)',
|
|
52
49
|
'modal.feedbackPlaceholder': 'What should be changed?',
|
|
53
|
-
// ---
|
|
54
|
-
'subtask.fromTask': 'Subtask #${taskId}',
|
|
55
|
-
'subtask.fromUnknown': 'a subtask',
|
|
56
|
-
'subtask.escalateHeader': '[Subtask question — escalated to you] ${from} hit something unclear/contradictory while executing and has no manager above it, so it is checking with you:',
|
|
57
|
-
'subtask.questionLabel': 'Question: ${question}',
|
|
58
|
-
'subtask.escalateReply': 'Just reply in this channel — your next message will be returned to that subtask as the answer.',
|
|
50
|
+
// --- agent-runner.ts (a human's reply routed back to a subtask's question) ---
|
|
59
51
|
'subtask.replyDelivered': 'Your reply has been delivered to the subtask that asked.',
|
|
60
52
|
};
|
|
61
53
|
export const interactionsZh = {
|
|
@@ -70,9 +62,9 @@ export const interactionsZh = {
|
|
|
70
62
|
'interaction.noSpecificFeedback': '没有具体反馈',
|
|
71
63
|
'interaction.cancelledPreserved': '已取消。会话已保留 — 下一条消息将继续。',
|
|
72
64
|
'interaction.sessionActive': '会话 `${sessionName}` 已激活 — 请在下方发送你的消息。${profileNote}',
|
|
73
|
-
'interaction.sessionProfileNote': '
|
|
74
|
-
'interaction.newConversation': '--- 新会话
|
|
75
|
-
// --- update-prompt.ts
|
|
65
|
+
'interaction.sessionProfileNote': '(配置:${profileName})',
|
|
66
|
+
'interaction.newConversation': '--- 新会话 ---(配置:${profileName})',
|
|
67
|
+
// --- update-prompt.ts ---
|
|
76
68
|
'update.installing': '正在安装 @cortex-agent/server@${version}……守护进程稍后将重启。',
|
|
77
69
|
'update.skipped': '已跳过版本 ${version}。',
|
|
78
70
|
'update.cancelled': '更新已取消。将在下次检查间隔再次检查。',
|
|
@@ -106,11 +98,6 @@ export const interactionsZh = {
|
|
|
106
98
|
'modal.planFeedbackTitle': '计划反馈',
|
|
107
99
|
'modal.feedbackLabel': '你的反馈(Cortex 将修订计划)',
|
|
108
100
|
'modal.feedbackPlaceholder': '应该修改什么?',
|
|
109
|
-
// ---
|
|
110
|
-
'subtask.fromTask': '子任务 #${taskId}',
|
|
111
|
-
'subtask.fromUnknown': '一个子任务',
|
|
112
|
-
'subtask.escalateHeader': '[子任务提问 — 已升级到你] ${from} 在执行中遇到不清楚/矛盾之处,没有上级 manager,转而向你确认:',
|
|
113
|
-
'subtask.questionLabel': '问题: ${question}',
|
|
114
|
-
'subtask.escalateReply': '直接在本频道回复即可——你的下一条消息会作为答复返回给该子任务。',
|
|
101
|
+
// --- agent-runner.ts (a human's reply routed back to a subtask's question) ---
|
|
115
102
|
'subtask.replyDelivered': '已把你的回复作为答复返回给提问的子任务。',
|
|
116
103
|
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// input: nothing (leaf data slice)
|
|
2
|
-
// output: langEn / langZh — !lang command message slice
|
|
3
|
-
// pos: one locale slice; aggregated by core/locales/en.ts & zh.ts barrels
|
|
4
1
|
// >>> Keep en and zh keys in lockstep (zh is typed against keyof typeof langEn) <<<
|
|
5
2
|
export const langEn = {
|
|
6
3
|
'lang.current': 'Current language: *${lang}*',
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
export declare const noticesEn: {
|
|
2
|
+
readonly 'notice.admin.autoRegistered': "This DM has been auto-registered as the Cortex admin channel. `${setting}=${channel}` has been written to `settings.json`. System notifications (startup, rate-limit, disk alerts) will be sent here.";
|
|
3
|
+
readonly 'notice.cancel.nothingRunning': "Nothing running to cancel.";
|
|
4
|
+
readonly 'notice.profile.unknown': "Unknown profile: ${name}";
|
|
5
|
+
readonly 'notice.cost.title': "Cost Report";
|
|
6
|
+
readonly 'notice.cost.titleProject': "Cost Report (project: ${project})";
|
|
7
|
+
readonly 'notice.cost.scopeProject': "per-project limits";
|
|
8
|
+
readonly 'notice.cost.scopeInherited': "inherited global limits";
|
|
9
|
+
readonly 'notice.cost.today': "Today: $${spent} / $${budget} (remaining: $${remaining})";
|
|
10
|
+
readonly 'notice.cost.month': "This month: $${spent} / $${budget} (remaining: $${remaining})";
|
|
11
|
+
readonly 'notice.cost.week': "This week: $${spent}";
|
|
12
|
+
readonly 'notice.cost.total': "Total (90d): $${spent}";
|
|
13
|
+
readonly 'notice.cost.byMode': "By cost mode:";
|
|
14
|
+
readonly 'notice.cost.modeLine': "${label}: today $${today} | week $${week} | month $${month} | total $${total}";
|
|
15
|
+
readonly 'notice.cost.bySource': "By source:";
|
|
16
|
+
readonly 'notice.cost.byBackend': "By backend:";
|
|
17
|
+
readonly 'notice.cost.byTrigger': "By trigger:";
|
|
18
|
+
readonly 'notice.cost.byProject': "By project:";
|
|
19
|
+
readonly 'notice.cost.statsLine': "${name}: today $${today} | month $${month} | total $${total}";
|
|
20
|
+
readonly 'notice.cost.projectLine': "${name}: today $${today} | month $${month}";
|
|
21
|
+
readonly 'notice.cost.tokenUsage': "Token usage:";
|
|
22
|
+
readonly 'notice.cost.tokensToday': "Today: ${input} in / ${output} out";
|
|
23
|
+
readonly 'notice.cost.tokensMonth': "Month: ${input} in / ${output} out";
|
|
24
|
+
readonly 'notice.cost.tokensTotal': "Total: ${input} in / ${output} out";
|
|
25
|
+
readonly 'notice.ago.seconds': "${n}s ago";
|
|
26
|
+
readonly 'notice.ago.minutes': "${n}m ago";
|
|
27
|
+
readonly 'notice.ago.hours': "${n}h ago";
|
|
28
|
+
readonly 'notice.ago.days': "${n}d ago";
|
|
29
|
+
readonly 'notice.plan.approvalCard': "Plan approval";
|
|
30
|
+
readonly 'notice.plan.noContent': "Plan generated but no content found.";
|
|
31
|
+
readonly 'notice.plan.generated': "Generated plan — use the buttons below to approve or provide feedback:";
|
|
32
|
+
readonly 'notice.fallback.rateLimited': "${from} rate limited, falling back to ${to}...";
|
|
33
|
+
readonly 'notice.unknownError': "Unknown error";
|
|
34
|
+
readonly 'notice.thread.failed': "Thread failed: ${error}";
|
|
35
|
+
readonly 'notice.thread.attachmentsFailed': "Could not download ${n} attachment(s); the thread runs without them:";
|
|
36
|
+
readonly 'notice.thread.adding': "Adding ${agent} to thread ${id}...";
|
|
37
|
+
readonly 'notice.thread.unknownAgent': "Unknown agent: `${name}`. Use `!thread agents` to see available agents.";
|
|
38
|
+
readonly 'notice.thread.noneFound': "No thread found. Start one first with `!thread <agent> <message>`.";
|
|
39
|
+
readonly 'notice.thread.busy': "Thread ${id} is currently running. Wait for it to finish.";
|
|
40
|
+
readonly 'notice.thread.continuing': "Continuing thread ${id}...";
|
|
41
|
+
readonly 'notice.thread.unknownTemplate': "Unknown template or agent: `${name}`. Use `!thread templates` or `!thread agents`.";
|
|
42
|
+
readonly 'notice.thread.starting': "Starting thread (${target})...";
|
|
43
|
+
readonly 'notice.thread.messageBuffered': "Message buffered — will be included in the next step’s prompt";
|
|
44
|
+
readonly 'notice.thread.suspended': "Thread suspended — waiting on ${n} child(ren)";
|
|
45
|
+
readonly 'notice.thread.failedAfter': "Thread failed (${elapsed}): ${error}";
|
|
46
|
+
readonly 'notice.task.dispatching': "Dispatching: ${label}...";
|
|
47
|
+
readonly 'notice.task.childThreads': "${n} child thread(s)";
|
|
48
|
+
readonly 'notice.task.childTasks': "${n} child task(s)";
|
|
49
|
+
readonly 'notice.task.children': "children";
|
|
50
|
+
readonly 'notice.task.suspended': "suspended — waiting on ${what}";
|
|
51
|
+
readonly 'notice.task.pausedLower': "paused — rate limited, will auto-resume";
|
|
52
|
+
readonly 'notice.task.paused': "Paused — rate limited, will auto-resume";
|
|
53
|
+
readonly 'notice.task.abortBlockFailed': "worker aborted but block failed: ${error}";
|
|
54
|
+
readonly 'notice.task.splitInvalid': "proposal invalid: ${error} — task unclaimed";
|
|
55
|
+
readonly 'notice.task.exhausted': "Rate limited — all fallbacks exhausted";
|
|
56
|
+
readonly 'notice.task.doneLabel': "Done: ${label}";
|
|
57
|
+
readonly 'notice.task.done': "Done";
|
|
58
|
+
readonly 'notice.task.error': "Error";
|
|
59
|
+
readonly 'notice.schedule.error': "Scheduled task error: ${error}";
|
|
60
|
+
readonly 'notice.thread.budgetExhausted': "Contract budget exhausted — not re-entering wait loop";
|
|
61
|
+
readonly 'notice.thread.suspendedThreads': "Thread suspended — waiting on ${n} child thread(s)";
|
|
62
|
+
readonly 'notice.thread.split': "Thread split by ${label} into ${n} subtask(s)";
|
|
63
|
+
readonly 'notice.thread.abortedBy': "Thread aborted by ${label}";
|
|
64
|
+
readonly 'notice.thread.stepStarting': "Step ${n}: ${label} starting (prev: ${prev})";
|
|
65
|
+
readonly 'notice.thread.summaryWaiting': "Thread suspended — waiting on ${n} child(ren) | ${steps} steps | $${cost}";
|
|
66
|
+
readonly 'notice.thread.summaryPaused': "Thread paused — rate limited, will auto-resume | ${steps} steps | $${cost}";
|
|
67
|
+
readonly 'notice.thread.summaryComplete': "Thread complete | ${steps} steps | $${cost} | ${duration}";
|
|
68
|
+
readonly 'notice.thread.turns': "${n} turns";
|
|
69
|
+
readonly 'notice.thread.abortedReason': "Aborted: ${reason}";
|
|
70
|
+
readonly 'notice.thread.abortedNoReason': "Aborted (no reason given)";
|
|
71
|
+
readonly 'notice.thread.errorLine': "Error: ${error}";
|
|
72
|
+
readonly 'notice.thread.hookStarting': "Hook agent (${label}) starting...";
|
|
73
|
+
readonly 'notice.thread.stepLabel': "Step ${n}: ${label}";
|
|
74
|
+
readonly 'notice.thread.idLabel': "Thread ${id}";
|
|
75
|
+
readonly 'notice.dispatch.autoBlocked': "Auto-blocked after ${n} consecutive dispatch failures. Reason recorded in TASKS.yaml. Task: ${task}. Last error: ${error}. Unblock with `cortex-task unblock --task-id ${id}`.";
|
|
76
|
+
readonly 'notice.dispatch.error': "Task dispatch error: ${error}";
|
|
77
|
+
readonly 'notice.dispatch.cancelled': "Cancelled task [${id}].";
|
|
78
|
+
readonly 'notice.dispatch.cancelFailed': "Failed to cancel `${id}`: ${error}";
|
|
79
|
+
readonly 'notice.schedule.skipped': "Scheduled task skipped — ${reason}";
|
|
80
|
+
readonly 'notice.rateLimit.title': "Rate limit";
|
|
81
|
+
readonly 'notice.rateLimit.outageTitle': "Provider outage";
|
|
82
|
+
readonly 'notice.rateLimit.resumeNow': "Resume now";
|
|
83
|
+
readonly 'notice.rateLimit.outageCleared': "${provider} provider outage window cleared.";
|
|
84
|
+
readonly 'notice.rateLimit.cleared': "${provider} rate limit throttle cleared.";
|
|
85
|
+
readonly 'notice.rateLimit.outageDetected': "${provider} provider outage detected.\nAutomated work will retry at ${at} (in ${remaining}).";
|
|
86
|
+
readonly 'notice.rateLimit.activated': "${provider} rate limit throttle activated [${type}] — utilization ${pct}%.\nAuto-resume at ${at} (in ${remaining}).";
|
|
87
|
+
readonly 'notice.rateLimit.clearedManually': "${provider} rate limit throttle cleared manually — paused work is resuming now.\nIf the provider is still rate-limited, the next request will re-activate the throttle automatically.";
|
|
88
|
+
readonly 'notice.disk.title': "Disk";
|
|
89
|
+
readonly 'notice.disk.low': "Disk low on `${path}`: only ${free} free (< ${threshold} threshold). Clean up or Cortex may crash.";
|
|
90
|
+
readonly 'notice.rebuild.title': "Rebuild";
|
|
91
|
+
readonly 'notice.rebuild.aborted': "Rebuild aborted at step \"${step}\" (${detail}) — app.ts was NOT restarted and is still running the previously installed build. Trigger: ${reason}";
|
|
92
|
+
readonly 'notice.ops.archivedTasks': "archived ${n} tasks";
|
|
93
|
+
readonly 'notice.ops.archiveHeader': "Task auto-archive:";
|
|
94
|
+
readonly 'notice.ops.archiveErrors': "Task archiver errors:";
|
|
95
|
+
readonly 'notice.ops.memoryRegen': "Memory index regen: ${n} projects updated";
|
|
96
|
+
readonly 'notice.ops.memoryRegenError': "Memory index regen error: ${error}";
|
|
97
|
+
readonly 'notice.ops.publicSync': "Public sync: ${detail}";
|
|
98
|
+
readonly 'notice.ops.publicSyncIssue': "Public sync issue:";
|
|
99
|
+
readonly 'notice.ops.publicSyncError': "Public sync error: ${error}";
|
|
100
|
+
readonly 'notice.client.updated': "client on `${device}` updated → `${hash}` (v${version})";
|
|
101
|
+
readonly 'notice.client.updateFailed': "client update failed on `${device}`: ${error}";
|
|
102
|
+
readonly 'notice.templates.reloaded': "prompts/`${file}` changed — thread-templates reloaded";
|
|
103
|
+
readonly 'notice.hook.newRunning': "Running `!new` hook…";
|
|
104
|
+
readonly 'notice.hook.newFailed': "`!new` hook failed: ${error}";
|
|
105
|
+
readonly 'notice.hook.empty': "hook returned empty output — nothing to inject.";
|
|
106
|
+
readonly 'notice.hook.lockChecking': "Checking for unreleased locks…";
|
|
107
|
+
readonly 'notice.hook.lockFailed': "Lock check failed: ${error}";
|
|
108
|
+
readonly 'notice.reply.branch': "branch: ${name}";
|
|
109
|
+
readonly 'notice.reply.callback': "callback: ${name}";
|
|
110
|
+
readonly 'notice.interaction.question': "Question";
|
|
111
|
+
readonly 'notice.interaction.planSubmitted': "Plan submitted for approval";
|
|
112
|
+
readonly 'notice.interaction.planExpired': "Plan approval expired";
|
|
113
|
+
readonly 'notice.interaction.questionExpired': "Question expired";
|
|
114
|
+
readonly 'notice.interaction.planCancelled': "Plan approval cancelled";
|
|
115
|
+
readonly 'notice.interaction.questionCancelled': "Question cancelled";
|
|
116
|
+
readonly 'notice.interaction.questionAnswered': "Question answered";
|
|
117
|
+
readonly 'notice.interaction.planApproved': "Plan approved";
|
|
118
|
+
readonly 'notice.interaction.planRejectedWith': "Plan rejected: ${feedback}";
|
|
119
|
+
readonly 'notice.interaction.planRejected': "Plan rejected";
|
|
120
|
+
};
|
|
121
|
+
export declare const noticesZh: Record<keyof typeof noticesEn, string>;
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
// Chat-platform notices from thread runs, dispatch, rate limits, disk, rebuild and ops jobs.
|
|
2
|
+
// Keep en and zh keys in lockstep (zh is typed against keyof typeof noticesEn).
|
|
3
|
+
export const noticesEn = {
|
|
4
|
+
'notice.admin.autoRegistered': 'This DM has been auto-registered as the Cortex admin channel. `${setting}=${channel}` has been written to `settings.json`. System notifications (startup, rate-limit, disk alerts) will be sent here.',
|
|
5
|
+
'notice.cancel.nothingRunning': 'Nothing running to cancel.',
|
|
6
|
+
'notice.profile.unknown': 'Unknown profile: ${name}',
|
|
7
|
+
'notice.cost.title': 'Cost Report',
|
|
8
|
+
'notice.cost.titleProject': 'Cost Report (project: ${project})',
|
|
9
|
+
'notice.cost.scopeProject': 'per-project limits',
|
|
10
|
+
'notice.cost.scopeInherited': 'inherited global limits',
|
|
11
|
+
'notice.cost.today': 'Today: $${spent} / $${budget} (remaining: $${remaining})',
|
|
12
|
+
'notice.cost.month': 'This month: $${spent} / $${budget} (remaining: $${remaining})',
|
|
13
|
+
'notice.cost.week': 'This week: $${spent}',
|
|
14
|
+
'notice.cost.total': 'Total (90d): $${spent}',
|
|
15
|
+
'notice.cost.byMode': 'By cost mode:',
|
|
16
|
+
'notice.cost.modeLine': '${label}: today $${today} | week $${week} | month $${month} | total $${total}',
|
|
17
|
+
'notice.cost.bySource': 'By source:',
|
|
18
|
+
'notice.cost.byBackend': 'By backend:',
|
|
19
|
+
'notice.cost.byTrigger': 'By trigger:',
|
|
20
|
+
'notice.cost.byProject': 'By project:',
|
|
21
|
+
'notice.cost.statsLine': '${name}: today $${today} | month $${month} | total $${total}',
|
|
22
|
+
'notice.cost.projectLine': '${name}: today $${today} | month $${month}',
|
|
23
|
+
'notice.cost.tokenUsage': 'Token usage:',
|
|
24
|
+
'notice.cost.tokensToday': 'Today: ${input} in / ${output} out',
|
|
25
|
+
'notice.cost.tokensMonth': 'Month: ${input} in / ${output} out',
|
|
26
|
+
'notice.cost.tokensTotal': 'Total: ${input} in / ${output} out',
|
|
27
|
+
'notice.ago.seconds': '${n}s ago',
|
|
28
|
+
'notice.ago.minutes': '${n}m ago',
|
|
29
|
+
'notice.ago.hours': '${n}h ago',
|
|
30
|
+
'notice.ago.days': '${n}d ago',
|
|
31
|
+
'notice.plan.approvalCard': 'Plan approval',
|
|
32
|
+
'notice.plan.noContent': 'Plan generated but no content found.',
|
|
33
|
+
'notice.plan.generated': 'Generated plan — use the buttons below to approve or provide feedback:',
|
|
34
|
+
'notice.fallback.rateLimited': '${from} rate limited, falling back to ${to}...',
|
|
35
|
+
'notice.unknownError': 'Unknown error',
|
|
36
|
+
'notice.thread.failed': 'Thread failed: ${error}',
|
|
37
|
+
'notice.thread.attachmentsFailed': 'Could not download ${n} attachment(s); the thread runs without them:',
|
|
38
|
+
'notice.thread.adding': 'Adding ${agent} to thread ${id}...',
|
|
39
|
+
'notice.thread.unknownAgent': 'Unknown agent: `${name}`. Use `!thread agents` to see available agents.',
|
|
40
|
+
'notice.thread.noneFound': 'No thread found. Start one first with `!thread <agent> <message>`.',
|
|
41
|
+
'notice.thread.busy': 'Thread ${id} is currently running. Wait for it to finish.',
|
|
42
|
+
'notice.thread.continuing': 'Continuing thread ${id}...',
|
|
43
|
+
'notice.thread.unknownTemplate': 'Unknown template or agent: `${name}`. Use `!thread templates` or `!thread agents`.',
|
|
44
|
+
'notice.thread.starting': 'Starting thread (${target})...',
|
|
45
|
+
'notice.thread.messageBuffered': 'Message buffered — will be included in the next step’s prompt',
|
|
46
|
+
'notice.thread.suspended': 'Thread suspended — waiting on ${n} child(ren)',
|
|
47
|
+
'notice.thread.failedAfter': 'Thread failed (${elapsed}): ${error}',
|
|
48
|
+
'notice.task.dispatching': 'Dispatching: ${label}...',
|
|
49
|
+
'notice.task.childThreads': '${n} child thread(s)',
|
|
50
|
+
'notice.task.childTasks': '${n} child task(s)',
|
|
51
|
+
'notice.task.children': 'children',
|
|
52
|
+
'notice.task.suspended': 'suspended — waiting on ${what}',
|
|
53
|
+
'notice.task.pausedLower': 'paused — rate limited, will auto-resume',
|
|
54
|
+
'notice.task.paused': 'Paused — rate limited, will auto-resume',
|
|
55
|
+
'notice.task.abortBlockFailed': 'worker aborted but block failed: ${error}',
|
|
56
|
+
'notice.task.splitInvalid': 'proposal invalid: ${error} — task unclaimed',
|
|
57
|
+
'notice.task.exhausted': 'Rate limited — all fallbacks exhausted',
|
|
58
|
+
'notice.task.doneLabel': 'Done: ${label}',
|
|
59
|
+
'notice.task.done': 'Done',
|
|
60
|
+
'notice.task.error': 'Error',
|
|
61
|
+
'notice.schedule.error': 'Scheduled task error: ${error}',
|
|
62
|
+
'notice.thread.budgetExhausted': 'Contract budget exhausted — not re-entering wait loop',
|
|
63
|
+
'notice.thread.suspendedThreads': 'Thread suspended — waiting on ${n} child thread(s)',
|
|
64
|
+
'notice.thread.split': 'Thread split by ${label} into ${n} subtask(s)',
|
|
65
|
+
'notice.thread.abortedBy': 'Thread aborted by ${label}',
|
|
66
|
+
'notice.thread.stepStarting': 'Step ${n}: ${label} starting (prev: ${prev})',
|
|
67
|
+
'notice.thread.summaryWaiting': 'Thread suspended — waiting on ${n} child(ren) | ${steps} steps | $${cost}',
|
|
68
|
+
'notice.thread.summaryPaused': 'Thread paused — rate limited, will auto-resume | ${steps} steps | $${cost}',
|
|
69
|
+
'notice.thread.summaryComplete': 'Thread complete | ${steps} steps | $${cost} | ${duration}',
|
|
70
|
+
'notice.thread.turns': '${n} turns',
|
|
71
|
+
'notice.thread.abortedReason': 'Aborted: ${reason}',
|
|
72
|
+
'notice.thread.abortedNoReason': 'Aborted (no reason given)',
|
|
73
|
+
'notice.thread.errorLine': 'Error: ${error}',
|
|
74
|
+
'notice.thread.hookStarting': 'Hook agent (${label}) starting...',
|
|
75
|
+
'notice.thread.stepLabel': 'Step ${n}: ${label}',
|
|
76
|
+
'notice.thread.idLabel': 'Thread ${id}',
|
|
77
|
+
'notice.dispatch.autoBlocked': 'Auto-blocked after ${n} consecutive dispatch failures. Reason recorded in TASKS.yaml. Task: ${task}. Last error: ${error}. Unblock with `cortex-task unblock --task-id ${id}`.',
|
|
78
|
+
'notice.dispatch.error': 'Task dispatch error: ${error}',
|
|
79
|
+
'notice.dispatch.cancelled': 'Cancelled task [${id}].',
|
|
80
|
+
'notice.dispatch.cancelFailed': 'Failed to cancel `${id}`: ${error}',
|
|
81
|
+
'notice.schedule.skipped': 'Scheduled task skipped — ${reason}',
|
|
82
|
+
'notice.rateLimit.title': 'Rate limit',
|
|
83
|
+
'notice.rateLimit.outageTitle': 'Provider outage',
|
|
84
|
+
'notice.rateLimit.resumeNow': 'Resume now',
|
|
85
|
+
'notice.rateLimit.outageCleared': '${provider} provider outage window cleared.',
|
|
86
|
+
'notice.rateLimit.cleared': '${provider} rate limit throttle cleared.',
|
|
87
|
+
'notice.rateLimit.outageDetected': '${provider} provider outage detected.\nAutomated work will retry at ${at} (in ${remaining}).',
|
|
88
|
+
'notice.rateLimit.activated': '${provider} rate limit throttle activated [${type}] — utilization ${pct}%.\nAuto-resume at ${at} (in ${remaining}).',
|
|
89
|
+
'notice.rateLimit.clearedManually': '${provider} rate limit throttle cleared manually — paused work is resuming now.\nIf the provider is still rate-limited, the next request will re-activate the throttle automatically.',
|
|
90
|
+
'notice.disk.title': 'Disk',
|
|
91
|
+
'notice.disk.low': 'Disk low on `${path}`: only ${free} free (< ${threshold} threshold). Clean up or Cortex may crash.',
|
|
92
|
+
'notice.rebuild.title': 'Rebuild',
|
|
93
|
+
'notice.rebuild.aborted': 'Rebuild aborted at step "${step}" (${detail}) — app.ts was NOT restarted and is still running the previously installed build. Trigger: ${reason}',
|
|
94
|
+
'notice.ops.archivedTasks': 'archived ${n} tasks',
|
|
95
|
+
'notice.ops.archiveHeader': 'Task auto-archive:',
|
|
96
|
+
'notice.ops.archiveErrors': 'Task archiver errors:',
|
|
97
|
+
'notice.ops.memoryRegen': 'Memory index regen: ${n} projects updated',
|
|
98
|
+
'notice.ops.memoryRegenError': 'Memory index regen error: ${error}',
|
|
99
|
+
'notice.ops.publicSync': 'Public sync: ${detail}',
|
|
100
|
+
'notice.ops.publicSyncIssue': 'Public sync issue:',
|
|
101
|
+
'notice.ops.publicSyncError': 'Public sync error: ${error}',
|
|
102
|
+
'notice.client.updated': 'client on `${device}` updated → `${hash}` (v${version})',
|
|
103
|
+
'notice.client.updateFailed': 'client update failed on `${device}`: ${error}',
|
|
104
|
+
'notice.templates.reloaded': 'prompts/`${file}` changed — thread-templates reloaded',
|
|
105
|
+
'notice.hook.newRunning': 'Running `!new` hook…',
|
|
106
|
+
'notice.hook.newFailed': '`!new` hook failed: ${error}',
|
|
107
|
+
'notice.hook.empty': 'hook returned empty output — nothing to inject.',
|
|
108
|
+
'notice.hook.lockChecking': 'Checking for unreleased locks…',
|
|
109
|
+
'notice.hook.lockFailed': 'Lock check failed: ${error}',
|
|
110
|
+
'notice.reply.branch': 'branch: ${name}',
|
|
111
|
+
'notice.reply.callback': 'callback: ${name}',
|
|
112
|
+
'notice.interaction.question': 'Question',
|
|
113
|
+
'notice.interaction.planSubmitted': 'Plan submitted for approval',
|
|
114
|
+
'notice.interaction.planExpired': 'Plan approval expired',
|
|
115
|
+
'notice.interaction.questionExpired': 'Question expired',
|
|
116
|
+
'notice.interaction.planCancelled': 'Plan approval cancelled',
|
|
117
|
+
'notice.interaction.questionCancelled': 'Question cancelled',
|
|
118
|
+
'notice.interaction.questionAnswered': 'Question answered',
|
|
119
|
+
'notice.interaction.planApproved': 'Plan approved',
|
|
120
|
+
'notice.interaction.planRejectedWith': 'Plan rejected: ${feedback}',
|
|
121
|
+
'notice.interaction.planRejected': 'Plan rejected',
|
|
122
|
+
};
|
|
123
|
+
export const noticesZh = {
|
|
124
|
+
'notice.admin.autoRegistered': '此私聊已自动注册为 Cortex 管理频道,`${setting}=${channel}` 已写入 `settings.json`。系统通知(启动、限流、磁盘告警)将发送到这里。',
|
|
125
|
+
'notice.cancel.nothingRunning': '当前没有正在运行的任务可取消。',
|
|
126
|
+
'notice.profile.unknown': '未知的配置:${name}',
|
|
127
|
+
'notice.cost.title': '费用报告',
|
|
128
|
+
'notice.cost.titleProject': '费用报告(项目:${project})',
|
|
129
|
+
'notice.cost.scopeProject': '项目独立限额',
|
|
130
|
+
'notice.cost.scopeInherited': '沿用全局限额',
|
|
131
|
+
'notice.cost.today': '今日:$${spent} / $${budget}(剩余:$${remaining})',
|
|
132
|
+
'notice.cost.month': '本月:$${spent} / $${budget}(剩余:$${remaining})',
|
|
133
|
+
'notice.cost.week': '本周:$${spent}',
|
|
134
|
+
'notice.cost.total': '合计(90 天):$${spent}',
|
|
135
|
+
'notice.cost.byMode': '按计费方式:',
|
|
136
|
+
'notice.cost.modeLine': '${label}:今日 $${today} | 本周 $${week} | 本月 $${month} | 合计 $${total}',
|
|
137
|
+
'notice.cost.bySource': '按来源:',
|
|
138
|
+
'notice.cost.byBackend': '按后端:',
|
|
139
|
+
'notice.cost.byTrigger': '按触发方式:',
|
|
140
|
+
'notice.cost.byProject': '按项目:',
|
|
141
|
+
'notice.cost.statsLine': '${name}:今日 $${today} | 本月 $${month} | 合计 $${total}',
|
|
142
|
+
'notice.cost.projectLine': '${name}:今日 $${today} | 本月 $${month}',
|
|
143
|
+
'notice.cost.tokenUsage': 'Token 用量:',
|
|
144
|
+
'notice.cost.tokensToday': '今日:输入 ${input} / 输出 ${output}',
|
|
145
|
+
'notice.cost.tokensMonth': '本月:输入 ${input} / 输出 ${output}',
|
|
146
|
+
'notice.cost.tokensTotal': '合计:输入 ${input} / 输出 ${output}',
|
|
147
|
+
'notice.ago.seconds': '${n} 秒前',
|
|
148
|
+
'notice.ago.minutes': '${n} 分钟前',
|
|
149
|
+
'notice.ago.hours': '${n} 小时前',
|
|
150
|
+
'notice.ago.days': '${n} 天前',
|
|
151
|
+
'notice.plan.approvalCard': '计划审批',
|
|
152
|
+
'notice.plan.noContent': '计划已生成,但未找到内容。',
|
|
153
|
+
'notice.plan.generated': '计划已生成,请使用下方按钮批准或提供反馈:',
|
|
154
|
+
'notice.fallback.rateLimited': '${from} 触发限流,正在切换到 ${to}……',
|
|
155
|
+
'notice.unknownError': '未知错误',
|
|
156
|
+
'notice.thread.failed': '线程失败:${error}',
|
|
157
|
+
'notice.thread.attachmentsFailed': '有 ${n} 个附件下载失败,线程将在没有这些附件的情况下运行:',
|
|
158
|
+
'notice.thread.adding': '正在将 ${agent} 加入线程 ${id}……',
|
|
159
|
+
'notice.thread.unknownAgent': '未知的 agent:`${name}`。使用 `!thread agents` 查看可用的 agent。',
|
|
160
|
+
'notice.thread.noneFound': '未找到线程。请先用 `!thread <agent> <message>` 启动一个。',
|
|
161
|
+
'notice.thread.busy': '线程 ${id} 正在运行,请等待其完成。',
|
|
162
|
+
'notice.thread.continuing': '正在继续线程 ${id}……',
|
|
163
|
+
'notice.thread.unknownTemplate': '未知的模板或 agent:`${name}`。使用 `!thread templates` 或 `!thread agents` 查看。',
|
|
164
|
+
'notice.thread.starting': '正在启动线程(${target})……',
|
|
165
|
+
'notice.thread.messageBuffered': '消息已缓存,将并入下一步骤的提示词',
|
|
166
|
+
'notice.thread.suspended': '线程已挂起,等待 ${n} 个子项',
|
|
167
|
+
'notice.thread.failedAfter': '线程失败(${elapsed}):${error}',
|
|
168
|
+
'notice.task.dispatching': '正在派发:${label}……',
|
|
169
|
+
'notice.task.childThreads': '${n} 个子线程',
|
|
170
|
+
'notice.task.childTasks': '${n} 个子任务',
|
|
171
|
+
'notice.task.children': '子项',
|
|
172
|
+
'notice.task.suspended': '已挂起,等待 ${what}',
|
|
173
|
+
'notice.task.pausedLower': '已暂停:触发限流,将自动恢复',
|
|
174
|
+
'notice.task.paused': '已暂停:触发限流,将自动恢复',
|
|
175
|
+
'notice.task.abortBlockFailed': 'worker 已中止,但标记阻塞失败:${error}',
|
|
176
|
+
'notice.task.splitInvalid': '拆分提案无效:${error},任务已释放',
|
|
177
|
+
'notice.task.exhausted': '触发限流,所有备用方案均已用尽',
|
|
178
|
+
'notice.task.doneLabel': '完成:${label}',
|
|
179
|
+
'notice.task.done': '完成',
|
|
180
|
+
'notice.task.error': '出错',
|
|
181
|
+
'notice.schedule.error': '定时任务出错:${error}',
|
|
182
|
+
'notice.thread.budgetExhausted': '契约预算已用尽,不再重新进入等待循环',
|
|
183
|
+
'notice.thread.suspendedThreads': '线程已挂起,等待 ${n} 个子线程',
|
|
184
|
+
'notice.thread.split': '线程已由 ${label} 拆分为 ${n} 个子任务',
|
|
185
|
+
'notice.thread.abortedBy': '线程已被 ${label} 中止',
|
|
186
|
+
'notice.thread.stepStarting': '步骤 ${n}:${label} 开始(上一步:${prev})',
|
|
187
|
+
'notice.thread.summaryWaiting': '线程已挂起,等待 ${n} 个子项 | ${steps} 个步骤 | $${cost}',
|
|
188
|
+
'notice.thread.summaryPaused': '线程已暂停:触发限流,将自动恢复 | ${steps} 个步骤 | $${cost}',
|
|
189
|
+
'notice.thread.summaryComplete': '线程已完成 | ${steps} 个步骤 | $${cost} | ${duration}',
|
|
190
|
+
'notice.thread.turns': '${n} 轮',
|
|
191
|
+
'notice.thread.abortedReason': '已中止:${reason}',
|
|
192
|
+
'notice.thread.abortedNoReason': '已中止(未说明原因)',
|
|
193
|
+
'notice.thread.errorLine': '错误:${error}',
|
|
194
|
+
'notice.thread.hookStarting': 'Hook agent(${label})启动中……',
|
|
195
|
+
'notice.thread.stepLabel': '步骤 ${n}:${label}',
|
|
196
|
+
'notice.thread.idLabel': '线程 ${id}',
|
|
197
|
+
'notice.dispatch.autoBlocked': '连续 ${n} 次派发失败,任务已自动阻塞,原因已记录在 TASKS.yaml。任务:${task}。最近一次错误:${error}。可用 `cortex-task unblock --task-id ${id}` 解除阻塞。',
|
|
198
|
+
'notice.dispatch.error': '任务派发出错:${error}',
|
|
199
|
+
'notice.dispatch.cancelled': '已取消任务 [${id}]。',
|
|
200
|
+
'notice.dispatch.cancelFailed': '取消 `${id}` 失败:${error}',
|
|
201
|
+
'notice.schedule.skipped': '定时任务已跳过:${reason}',
|
|
202
|
+
'notice.rateLimit.title': '限流',
|
|
203
|
+
'notice.rateLimit.outageTitle': '服务商故障',
|
|
204
|
+
'notice.rateLimit.resumeNow': '立即恢复',
|
|
205
|
+
'notice.rateLimit.outageCleared': '${provider} 服务商故障窗口已解除。',
|
|
206
|
+
'notice.rateLimit.cleared': '${provider} 限流节流已解除。',
|
|
207
|
+
'notice.rateLimit.outageDetected': '检测到 ${provider} 服务商故障。\n自动任务将于 ${at} 重试(${remaining} 后)。',
|
|
208
|
+
'notice.rateLimit.activated': '${provider} 已启用限流节流 [${type}],用量 ${pct}%。\n将于 ${at} 自动恢复(${remaining} 后)。',
|
|
209
|
+
'notice.rateLimit.clearedManually': '${provider} 限流节流已手动解除,暂停的工作正在恢复。\n如果服务商仍在限流,下一次请求会自动重新启用节流。',
|
|
210
|
+
'notice.disk.title': '磁盘',
|
|
211
|
+
'notice.disk.low': '`${path}` 磁盘空间不足:仅剩 ${free}(低于 ${threshold} 阈值)。请及时清理,否则 Cortex 可能崩溃。',
|
|
212
|
+
'notice.rebuild.title': '重新构建',
|
|
213
|
+
'notice.rebuild.aborted': '重新构建在步骤“${step}”中止(${detail})。app.ts 未重启,仍在运行之前安装的构建。触发原因:${reason}',
|
|
214
|
+
'notice.ops.archivedTasks': '已归档 ${n} 个任务',
|
|
215
|
+
'notice.ops.archiveHeader': '任务自动归档:',
|
|
216
|
+
'notice.ops.archiveErrors': '任务归档出错:',
|
|
217
|
+
'notice.ops.memoryRegen': '记忆索引已重建:更新了 ${n} 个项目',
|
|
218
|
+
'notice.ops.memoryRegenError': '记忆索引重建出错:${error}',
|
|
219
|
+
'notice.ops.publicSync': '公开仓库同步:${detail}',
|
|
220
|
+
'notice.ops.publicSyncIssue': '公开仓库同步异常:',
|
|
221
|
+
'notice.ops.publicSyncError': '公开仓库同步出错:${error}',
|
|
222
|
+
'notice.client.updated': '`${device}` 上的 client 已更新 → `${hash}`(v${version})',
|
|
223
|
+
'notice.client.updateFailed': '`${device}` 上的 client 更新失败:${error}',
|
|
224
|
+
'notice.templates.reloaded': 'prompts/`${file}` 已变更,线程模板已重新加载',
|
|
225
|
+
'notice.hook.newRunning': '正在运行 `!new` hook……',
|
|
226
|
+
'notice.hook.newFailed': '`!new` hook 执行失败:${error}',
|
|
227
|
+
'notice.hook.empty': 'hook 输出为空,无需注入。',
|
|
228
|
+
'notice.hook.lockChecking': '正在检查未释放的锁……',
|
|
229
|
+
'notice.hook.lockFailed': '锁检查失败:${error}',
|
|
230
|
+
'notice.reply.branch': '分支:${name}',
|
|
231
|
+
'notice.reply.callback': '回调:${name}',
|
|
232
|
+
'notice.interaction.question': '问题',
|
|
233
|
+
'notice.interaction.planSubmitted': '计划已提交审批',
|
|
234
|
+
'notice.interaction.planExpired': '计划审批已过期',
|
|
235
|
+
'notice.interaction.questionExpired': '问题已过期',
|
|
236
|
+
'notice.interaction.planCancelled': '计划审批已取消',
|
|
237
|
+
'notice.interaction.questionCancelled': '问题已取消',
|
|
238
|
+
'notice.interaction.questionAnswered': '问题已回答',
|
|
239
|
+
'notice.interaction.planApproved': '计划已批准',
|
|
240
|
+
'notice.interaction.planRejectedWith': '计划已驳回:${feedback}',
|
|
241
|
+
'notice.interaction.planRejected': '计划已驳回',
|
|
242
|
+
};
|
|
@@ -20,7 +20,6 @@ export declare const providersEn: {
|
|
|
20
20
|
'provider.cli.missingFlag': string;
|
|
21
21
|
'provider.cli.flagNeedsValue': string;
|
|
22
22
|
'provider.cli.notFound': string;
|
|
23
|
-
'provider.cli.writeFailed': string;
|
|
24
23
|
'provider.cli.validValues': string;
|
|
25
24
|
'provider.cli.hint': string;
|
|
26
25
|
'provider.cli.listEmpty': string;
|
|
@@ -32,7 +31,6 @@ export declare const providersEn: {
|
|
|
32
31
|
'provider.chat.keyNotice': string;
|
|
33
32
|
'provider.issue.name-required': string;
|
|
34
33
|
'provider.issue.name-charset': string;
|
|
35
|
-
'provider.issue.name-reserved': string;
|
|
36
34
|
'provider.issue.api-invalid': string;
|
|
37
35
|
'provider.issue.upstream-required': string;
|
|
38
36
|
'provider.issue.upstream-scheme': string;
|