0fcf66fc22
Interactive Prompts: - Unified InteractivePrompt type across all 3 adapters (Claude/Codex/Gemini) - InteractivePromptOverlay component with options, text input, countdown - Gemini + Codex pane monitors detect tool confirmation, ask user, plan approval - respondInteractivePrompt routing: permission → respondPermission, options → _selectOption - Claude AskUserQuestion nested questions[0] structure parsing Cross-AI Review: - Client-generated reviewId, removed pendingReview state - FloatingReviewPanel uses CSS display:none instead of unmount (keeps hooks alive) - Child review sessions default to YOLO/bypass permission mode - Send back to parent, send to existing/new review, tab switching, end review - Collapsed review cards with read-only panel for ended reviews - Full reconnect support: active + ended reviews restore correctly AskUserQuestion Tool Card UI: - Dedicated renderer replaces raw JSON display - Options shown with selected (green) / unselected (gray) indicators - Free text answers shown in quoted format with green border - Collapsed summary: question → answer - Shared parseAskQuestionInput utility (client + server) - Historical tool results attached via _result on tool_use blocks Adapter Fixes: - Session→adapter mapping persisted in SQLite (survives server restart) - SESSION_CREATED deferred for pendingRekey adapters (Codex/Gemini) - session-rekeyed handler sends complete SESSION_CREATED with adapter + cwd - Gemini: auto-accept folder trust, privacy notice, IDE nudge, YOLO * prompt - Claude: auto-accept bypass permissions confirmation (v2.1.85+) - Port fallback (EADDRINUSE → try +1), statusLine shell script wrapper Other: - Desktop Enter sends / Shift+Enter newline; Mobile Enter newline - Strip CLAWTAP_REF marker from session list - Active sessions tab shows adapter badge - Rename CLAUDE_UI_PASSWORD → CLAWTAP_PASSWORD Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
84 lines
2.2 KiB
JSON
84 lines
2.2 KiB
JSON
{
|
|
"name": "@kuannnn/clawtap",
|
|
"version": "0.2.0",
|
|
"description": "Use Claude Code from your phone. Real-time mobile UI synced with your desktop terminal via tmux.",
|
|
"type": "module",
|
|
"bin": {
|
|
"clawtap": "bin/clawtap"
|
|
},
|
|
"scripts": {
|
|
"dev": "concurrently \"npx tsx --watch server/index.ts\" \"vite\"",
|
|
"dev:server": "npx tsx server/index.ts",
|
|
"dev:client": "vite",
|
|
"build": "vite build",
|
|
"start": "npx tsx server/index.ts",
|
|
"preview": "vite preview",
|
|
"prepublishOnly": "npm run build"
|
|
},
|
|
"keywords": [
|
|
"claude",
|
|
"claude-code",
|
|
"mobile",
|
|
"tmux",
|
|
"ai",
|
|
"coding-assistant"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/kuan0808/clawtap.git"
|
|
},
|
|
"homepage": "https://github.com/kuan0808/clawtap#readme",
|
|
"files": [
|
|
"bin/",
|
|
"server/",
|
|
"dist/",
|
|
"src/",
|
|
"index.html",
|
|
"vite.config.ts",
|
|
"tsconfig.json",
|
|
".env.example"
|
|
],
|
|
"dependencies": {
|
|
"@anthropic-ai/claude-agent-sdk": "^0.1.0",
|
|
"@tailwindcss/typography": "^0.5.19",
|
|
"bcrypt": "^6.0.0",
|
|
"better-sqlite3": "^12.8.0",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"express": "^5.1.0",
|
|
"jsonwebtoken": "^9.0.2",
|
|
"lucide-react": "^0.577.0",
|
|
"multer": "^2.1.1",
|
|
"react": "^19.1.0",
|
|
"react-dom": "^19.1.0",
|
|
"react-markdown": "^10.1.0",
|
|
"react-syntax-highlighter": "^15.6.1",
|
|
"smol-toml": "^1.6.1",
|
|
"tailwind-merge": "^3.5.0",
|
|
"web-push": "^3.6.7",
|
|
"workbox-precaching": "^7.4.0",
|
|
"ws": "^8.18.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/vite": "^4.1.3",
|
|
"@types/bcrypt": "^6.0.0",
|
|
"@types/better-sqlite3": "^7.6.13",
|
|
"@types/express": "^5.0.6",
|
|
"@types/jsonwebtoken": "^9.0.10",
|
|
"@types/multer": "^2.1.0",
|
|
"@types/react": "^19.1.2",
|
|
"@types/react-dom": "^19.1.2",
|
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
"@types/web-push": "^3.6.4",
|
|
"@types/ws": "^8.18.1",
|
|
"@vitejs/plugin-react": "^4.4.1",
|
|
"concurrently": "^9.1.2",
|
|
"tailwindcss": "^4.1.3",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.8.3",
|
|
"vite": "^6.3.2",
|
|
"vite-plugin-pwa": "^1.2.0"
|
|
}
|
|
}
|