Commit Graph

5 Commits

Author SHA1 Message Date
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