| chore(branding): complete cleanup of legacy CloudCLI/Claude Code references
- CLOUDCLI_DISABLE_LOCAL_AUTH → PILOTDECK_DISABLE_LOCAL_AUTH
- CLOUDCLI_CRON_DAEMON_* → PILOTDECK_CRON_DAEMON_*
- CLOUDCLI_GITHUB_STARS → PILOTDECK_GITHUB_STARS
- ~/.claude-code-ui/plugins/ → ~/.pilotdeck/plugins/
- claudecodeui-server → pilotdeck-server
- edgeClawConfig i18n key → pilotDeckConfig (248 refs in TSX + settings.json)
- claude-code-main source provenance comments → generic descriptions
- CloudCLI user-facing strings → PilotDeck
- DEFAULT_PROVIDER_FALLBACK "edgeclaw" → "pilotdeck"
- .claude/ config home → .pilotdeck/ in cron daemon services
Co-authored-by: Cursor <cursoragent@cursor.com>
| 9 天前 |
| feat(tui): fix tool output flooding with smart truncation, grouping, and expand-on-demand
The TUI previously dumped full tool output inline, flooding the screen
and pushing model responses out of view. This commit introduces a
multi-layer rendering pipeline:
- ANSI-aware truncation (3 visual lines) via string-width / slice-ansi
- Content-aware smart summaries (test pass/fail, TS errors, line counts)
- Semantic grouping of 3+ consecutive same-tool calls (e.g. "read_file × 4")
- Tab/Shift-Tab focus navigation + Enter to expand inline or open viewer
- Ink-native fullscreen ToolOutputViewer with j/k/PgUp/PgDn/g/G navigation
- Gateway pipeline enrichment: resultLineCount, resultBytes, toolName,
resultPath on tool_call_finished; new tool_result_detail_available event
- Large outputs (>4KB) persisted to disk for on-demand retrieval
- ToolResultBudget head+tail preview for better model context
- Updated HelpDialog and PromptInput with discoverability hints
59 new tests (gateway, TUI reducer, truncate, summary, grouping, persist).
All 3 real-model E2E tests pass (DeepSeek V4 Flash).
Co-authored-by: Cursor <cursoragent@cursor.com>
| 20 天前 |
| 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 天前 |