Skip to content

feat: Sprint-1 项目初始化 + 数据导入 + SQLite 后台工作台 (issue #4) - #12

Merged
qdriven merged 4 commits into
mainfrom
qdriven/issue-4
Oct 26, 2026
Merged

qdriven merged 4 commits into
mainfrom
qdriven/issue-4

Conversation

@qdriven

@qdriven qdriven commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Closes #4

按 Issue 要求以 Sprint 方式执行:先在 tasks/sprint-1/ 建计划与任务文档,拆分为独立任务并各建 GitHub Issue(label feeds-sprint-1),逐个完成后回填状态。

交付内容

计划与流程(tasks/sprint-1/)

  • context.md:Sprint 目标、任务索引、依赖关系、Agent 工作流约定
  • status.md:任务状态总表(单一事实来源)+ 执行日志 + 遗留事项
  • 7 个 task 文档(含验收记录回填)+ research/ 调研产出
  • .claude/skills/feeds-sprint/SKILL.md:把这套工作原理沉淀为 SKILL

调研(research/)

实现

顺带修复

  • server.ts mountWebsite:Windows 上反斜杠路径导致所有前端页面路由 404(POSIX 归一化后 /admin、/trending 等深链均 200)

验证

  • bun run typecheck(backend + frontend)通过
  • bun test src/app/admin-db.test.ts 7 pass(注:仓库 vitest 配置对 bun 专属导入存在既有问题,测试以 bun test 执行)
  • 前端生产构建成功,/admin 由后端同源托管验证(含目录穿越防护检查)
  • 三种启动模式(默认 / --no-admin / ADMIN_DB_UI=off)curl 实测符合预期

🤖 Generated with Claude Code

qdriven and others added 4 commits October 23, 2026 15:13
- tasks/sprint-1: context/status/task docs + research (similarity query, JSON query)
- .claude/skills/feeds-sprint: sprint workflow skill
- /api/admin/db/*: readonly SQL execution, table introspection,
  saved queries CRUD (seeded with R1 examples), JSON file registry scan
- openapi: AdminDb tag + endpoints; unit tests for SQL validation (7 pass)

Co-Authored-By: Claude Code <noreply@anthropic.com>
- /admin route + nav: tables panel (row counts, schema preview),
  CodeMirror 6 SQL editor (highlight, Ctrl+Enter), result table (500-row cap),
  saved-SQL sidebar (override save / save-as / delete), JSON scan entry
- admin enable flag: default on; --no-admin / ADMIN_DB_UI=off disable,
  startup log reports state; dev:no-admin script
- fix(mountWebsite): POSIX-normalize dist path checks so client routes
  don't 404 on Windows
- docs: AGENTS.md admin endpoints + env vars; sprint-1 status/task records

Co-Authored-By: Claude Code <noreply@anthropic.com>
- root test scripts: vitest -> bun test (vitest bundler cannot parse
  bun-only 'with { type: "text" }' imports; 41/41 tests pass)
- set INNATE_FE_TOKEN repo secret (unblocks private innate-fe checkout
  in ci.yml and deploy.yml); no workflow changes needed
- sync yc + github-topics collectors: admin JSON scan/query verified
  against 9 real collector files (2.3MB) in ~/.innate
- admin saved-query seed: JSON example now expands the real '$.items'
  array; AGENTS.md test-conventions note updated; sprint-1 status log

Co-Authored-By: Claude Code <noreply@anthropic.com>
…tch bun.lock integrity)

CI republishes @innate/* @0.1.0 to a per-run Verdaccio, so bun.lock's
pinned sha512 can never match (IntegrityCheckFailed). pnpm resolves
fresh; pnpm-lock.yaml is already gitignored — this is the repo's
designed install path. install:all + AGENTS.md setup updated to match.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@qdriven
qdriven merged commit 71aee1d into main Oct 26, 2026
2 checks passed
@qdriven
qdriven deleted the qdriven/issue-4 branch October 26, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

初始化当前项目

1 participant