Commit Graph

16 Commits

Author SHA1 Message Date
wonder 4449059d7d docs: 添加 CLAUDE.md 项目指南文件
为 Claude Code 提供项目架构、常用命令和关键实现细节的说明文档
2026-06-26 15:37:16 +08:00
wonder 24af74ab17 fix: map container port 8083 to match SERVER_PORT in .env 2026-06-26 15:32:37 +08:00
wonder 751f9d7eed fix: use Aliyun Alpine mirror and fix frontend COPY source 2026-06-26 15:30:54 +08:00
wonder 1991544a45 fix: use Qiniu Go mirror proxy in Dockerfile for China region 2026-06-26 15:27:52 +08:00
wonder d107c9a149 fix: use golang:1.24-alpine Docker image to match go.mod requirements
filippo.io/edwards25519 v1.2.0 requires go 1.24+.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-26 15:24:18 +08:00
wonder 4668de90e9 fix: downgrade go.mod to go 1.22 for Docker compatibility
Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-26 15:20:59 +08:00
wonder 42895423fb docs: update README with setup instructions and feature overview
Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-26 15:15:41 +08:00
wonder 173d857dbb feat: structure view in dashboard and settings persistence
- Add GET /api/claude/sessions/{session_id}/builder API for structure view
- Load builder session tags and snippets by Claude session ID
- Implement structure view in dashboard: shows tag selections and snippet details
- Add LoadSettings to persist LLM config changes across restarts
- Settings are now loaded from database on startup

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-26 15:14:10 +08:00
wonder e53113db55 fix: dashboard project tree rendering and session selection
- Use data-project attribute instead of index for project identification
- Fix toggleProject to use nextElementSibling for content panel
- Highlight selected session without re-rendering tree
- Add selected-session CSS class

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-26 15:10:57 +08:00
wonder 63aedf52d7 chore: add .gitignore, remove .env from tracking
Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-26 15:08:32 +08:00
wonder b7008afd29 fix: SPA routing and prompts table handling
- Add clean URL routing: /dashboard -> dashboard.html, /settings -> settings.html
- Add EnsurePromptsTable for dev environments where prompts table may not exist
- Fix nav links to use clean URLs instead of .html paths

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-26 15:08:12 +08:00
wonder f456cdb565 feat: add frontend — builder, dashboard, and settings pages
- common.css: 全局样式,支持亮色/暗色主题,完整组件库
- common.js: API 封装、认证模块、Toast 提示、主题切换、草稿管理
- index.html: Prompt 构建器完整 UI
  - 左侧面板:项目/会话选择、标签系统(搜索/折叠/单选)、片段选择(分组/搜索)、CLAUDE.md 输入、自定义内容
  - 右侧面板:实时 Prompt 预览、智能建议列表、复制到剪贴板
  - 草稿自动保存(localStorage,防抖 1s)
  - 新增个人标签模态框
  - 保存构建会话功能
- dashboard.html: 复盘看板
  - 左侧项目树(项目→会话层级)
  - 右侧 Prompt 列表(文本视图,XML 标签折叠)
  - 导出功能(Markdown/JSON/纯文本)
  - 关键词搜索
- settings.html: 设置页
  - LLM 配置(API URL/Key/模型)
  - 主题切换
  - 退出登录

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-26 15:05:46 +08:00
wonder 01ecdc8c23 feat: initialize project skeleton with Go backend, database, and config
- Go module with standard library + gorilla/sessions + mysql driver
- Config: env-based configuration with .env file support
- Database: MySQL connection with auto-migration for 6 tables
- Seed data: 12 system tags with options, 8 system snippets
- Auth: session cookie middleware
- Handlers: auth, tags, snippets, builder, claude, dashboard, suggestions, settings
- LLM: OpenAI-compatible client with 30s timeout
- Docker: Dockerfile + docker-compose.yml
- .env.example with all configuration options

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-26 14:58:15 +08:00
wonder 83ae0bfe74 docs: add Prompt content rendering strategy for system-injected XML tags
Add section 3.2.4 to define how system-injected XML tags (ide_opened_file,
system-reminder, gitStatus, etc.) in prompts should be rendered: collapsible
blocks with tag name shown, click to expand/collapse. List previews skip
XML tags and extract user-input text only.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-26 14:49:29 +08:00
wonder b1b025983b docs: add PRD for Prompt Generator tool 2026-06-26 14:41:04 +08:00
wonder 67f4c1a306 Initial commit 2026-06-26 13:43:23 +08:00