Repository navigation
feat: Sprint-1 项目初始化 + 数据导入 + SQLite 后台工作台 (issue #4) - #12
Merged
Merged
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4
按 Issue 要求以 Sprint 方式执行:先在
tasks/sprint-1/建计划与任务文档,拆分为独立任务并各建 GitHub Issue(labelfeeds-sprint-1),逐个完成后回填状态。交付内容
计划与流程(
tasks/sprint-1/)context.md:Sprint 目标、任务索引、依赖关系、Agent 工作流约定status.md:任务状态总表(单一事实来源)+ 执行日志 + 遗留事项research/调研产出.claude/skills/feeds-sprint/SKILL.md:把这套工作原理沉淀为 SKILL调研(research/)
json_documents文件注册表(TEMP 表,只读连接可用),实测 233 个真实 JSON 文件实现
innate-fe-cli install私有源接入 + 依赖安装,双端 typecheck 通过/api/admin/db/*— 表清单/schema/只读 SQL 执行(独立 readonly 连接硬保证 + 单条 SELECT 校验 + 500 行截断)/保存 SQL CRUD(预置 4 条示例)/JSON 目录扫描与查询;OpenAPI 同步;validateReadOnlySql单测 7 pass/admin三栏工作台 — 左:表列表(行数+列信息);中:CodeMirror 6 SQL 高亮编辑器(Ctrl/Cmd+Enter)+ 结果表格;右:保存的 SQL(覆盖保存/另存/删除)--no-admin或ADMIN_DB_UI=off关闭,启动日志打印状态,dev:no-admin便捷脚本顺带修复
server.ts mountWebsite:Windows 上反斜杠路径导致所有前端页面路由 404(POSIX 归一化后/admin、/trending等深链均 200)验证
bun run typecheck(backend + frontend)通过bun test src/app/admin-db.test.ts7 pass(注:仓库 vitest 配置对 bun 专属导入存在既有问题,测试以bun test执行)/admin由后端同源托管验证(含目录穿越防护检查)--no-admin/ADMIN_DB_UI=off)curl 实测符合预期🤖 Generated with Claude Code