| feat: gateway config hot-reload via file watch + WebSocket reload_config RPC
The gateway now autonomously watches ~/.pilotdeck/pilotdeck.yaml for
changes and invalidates cached ProjectRuntime instances so the next
request picks up the new configuration. Additionally, the WebSocket
protocol is extended with a reload_config method so the UI server can
trigger an immediate config refresh after Settings saves.
Co-authored-by: Cursor <cursoragent@cursor.com>
| 20 天前 |
| refactor(always-on): remove legacy web execution path, rewire retry through DiscoveryFire
The old web-driven Always-On path (discovery trigger → auto-poll →
web chat execution) raced with the DiscoveryFire pipeline, causing
duplicate plan executions. This commit removes the entire legacy path:
- Add alwaysOnRerunPlan gateway RPC so the UI retry button triggers
DiscoveryFire phases 2-4 (workspace → execution → report) directly
- Remove MainContent auto-poll, discovery trigger handler, execution
lifecycle tracking, and all associated refs/callbacks/useEffects
- Delete queueExecution, updateExecution, buildExecutionPrompt
from DiscoveryPlanService and the PATCH execution REST endpoint
- Unregister /ao slash command; delete alwaysOnSlashActions.ts
- Delete discovery-trigger-client.js and its WS handler in index.js
- Delete old web discovery prompt and utility files
- Remove approvalMode field from WebPlanRecord, UI types, i18n, tests
Co-authored-by: Cursor <cursoragent@cursor.com>
| 7 天前 |
| refactor: rename Polit/PolitDeck to Pilot/PilotDeck across entire codebase
Automated global rename covering all case variants:
- PolitDeck → PilotDeck, politdeck → pilotdeck, POLITDECK → PILOTDECK
- Polit → Pilot, polit → pilot, POLIT → PILOT, politDeck → pilotDeck
Includes:
- 648 content replacements across 200+ source files
- 24 file renames + 3 directory renames (src/polit→pilot, tests/polit→pilot, docs/polit-config→pilot-config)
- package.json name, bin, env vars updated
- package-lock.json regenerated
- "Politely" in server-manager.ts preserved via placeholder mechanism
- All 587 unit tests pass, tsc --noEmit clean
- E2E tests verified against real OpenRouter API (model, tool-use, context, lifecycle hooks)
Co-authored-by: Cursor <cursoragent@cursor.com>
| 24 天前 |
| feat: add gateway/adapters/context/session and Ink TUI
Introduce the gateway and adapter layers needed to drive PolitDeck from
CLI, TUI, Web and Feishu through a single backend. Gateway exposes a
data-only Gateway interface with InProcessGateway, RemoteGateway and a
local WebSocket server (token auth, /ws upgrade, static UI mount).
Adapters add a Claude Code-style Ink TUI (welcome card, header,
PolitDeck/You/⎿ message labels, ink-text-input prompt, deep-blue
theme), a CLI/TUI remote-first entry that falls back to a local
in-process gateway, and Feishu webhook plus session mapper plugins.
Pull session, transcript and context out of agent into top-level
session/ and context/ modules, including the EdgeClaw memory provider.
Add gateway/adapters config parsing, a Vite/React UI skeleton, an
end-to-end OpenRouter Kimi K2.6 tool-use test plus a TUI recording
script driven by ink-testing-library.
Co-authored-by: Cursor <cursoragent@cursor.com>
| 25 天前 |
| feat: add gateway/adapters/context/session and Ink TUI
Introduce the gateway and adapter layers needed to drive PolitDeck from
CLI, TUI, Web and Feishu through a single backend. Gateway exposes a
data-only Gateway interface with InProcessGateway, RemoteGateway and a
local WebSocket server (token auth, /ws upgrade, static UI mount).
Adapters add a Claude Code-style Ink TUI (welcome card, header,
PolitDeck/You/⎿ message labels, ink-text-input prompt, deep-blue
theme), a CLI/TUI remote-first entry that falls back to a local
in-process gateway, and Feishu webhook plus session mapper plugins.
Pull session, transcript and context out of agent into top-level
session/ and context/ modules, including the EdgeClaw memory provider.
Add gateway/adapters config parsing, a Vite/React UI skeleton, an
end-to-end OpenRouter Kimi K2.6 tool-use test plus a TUI recording
script driven by ink-testing-library.
Co-authored-by: Cursor <cursoragent@cursor.com>
| 25 天前 |