feat: enable Remote Control (BRIDGE_MODE)#59
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
移除 shims/、xiaohongshu/、vendor/、旧版 docs、多余 src 组件等 107 个文件 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…st display Adds a default built-in status line that shows model name, context usage with token counts, 5h session and 7d weekly rate limit progress bars with countdowns, and cumulative cost. No configuration needed — displays automatically when no external statusLine command is configured. Refactors StatusLine.tsx into routing component with ExternalStatusLine (existing) and BuiltinStatusLineWrapper (new). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Simplify StatusLine.tsx by removing the external shell command path (ExternalStatusLine, buildStatusLineCommandInput, executeStatusLineCommand). The built-in status line is now the only implementation — no configuration needed, shows model, context, session/weekly quotas, and cost by default. Also adds status line screenshot for documentation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…st display Adds a default built-in status line that shows model name, context usage with token counts, 5h session and 7d weekly rate limit progress bars with countdowns, and cumulative cost. No configuration needed — displays automatically when no external statusLine command is configured. Refactors StatusLine.tsx into routing component with ExternalStatusLine (existing) and BuiltinStatusLineWrapper (new). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Simplify StatusLine.tsx by removing the external shell command path (ExternalStatusLine, buildStatusLineCommandInput, executeStatusLineCommand). The built-in status line is now the only implementation — no configuration needed, shows model, context, session/weekly quotas, and cost by default. Also adds status line screenshot for documentation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
feat: built-in status line with usage quota display
- Mock Date.now() in tests to eliminate flakiness from clock drift
- Use currentUsage (same source as contextUsedPct) for usedTokens instead
of cumulative session totals, fixing data inconsistency
- Switch all imports to src/ path aliases for consistency
- Remove dead feature('KAIROS') gate (always returns false in this build)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
# Conflicts: # src/components/BuiltinStatusLine.tsx # src/components/StatusLine.tsx # src/components/__tests__/BuiltinStatusLine.test.ts
- Add src/buddy/observer.ts: local template-based reactions for name mention, test failures, and errors; self-registers on globalThis - Add /buddy off and /buddy on as aliases for mute/unmute (matches original decompiled source) - Register observer via side-effect import in buddy index.ts Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add BRIDGE_MODE to DEFAULT_FEATURES in dev.ts - Implement peerSessions.ts: cross-session messaging via bridge API - Implement webhookSanitizer.ts: redact secrets from GitHub webhook payloads - Replace any stubs in controlTypes.ts with Zod schema-inferred types - Fix tengu_bridge_system_init default to true so app shows "active" status Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis pull request introduces a "Claude Code Buddy System" (an AI pet companion feature for Claude Code), refactors status line rendering to use a built-in component instead of dynamic command execution, strengthens SDK type safety with Zod schema validation, implements inter-Claude peer messaging, and enables webhook content sanitization and bridge mode. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment Warning |
|
Recreating with clean branch - only 5 files |
Add BRIDGE_MODE to default features, implement stub files, fix system_init default.
Summary by CodeRabbit
New Features
/buddycommands (on/off/pet subcommands).Documentation
Tests