feat(dashboard): SQLite migration + unified client.mjs CLI#3
Merged
Conversation
- Add client.mjs: unified CLI with scan/agents/stats/words/list/serve subcommands - Replace scan-project.js + agent-status.js with SQLite-backed client.mjs - Update server.mjs and vite.config.ts to read from SQLite via getStatus() - Update all 7 skills to call 'node client.mjs scan' instead of scan-project.js - Update all 7 agents to call 'node client.mjs agents' instead of agent-status.js - Bump version 0.2.0 → 0.3.0
…tate - Replace LIVE DATA toggle with UI_VERSION display in footer - Show example link and no-data hint when no projects exist - Update AGENTS.md: SQLite data layer, UI version bump instructions - Mark agent-status.js as deprecated in plugin structure docs
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.
Summary
JSON 기반 데이터 저장소를 SQLite(sql.js)로 마이그레이션하고, 분산된 스크립트를 단일
client.mjsCLI로 통합합니다.Changes
R1: SQLite DB layer
sql.js(WASM) 기반 SQLite — 네이티브 컴파일 없이 순수 npm 패키지~/.velith/velith.dbprojects,chapters,agents,scan_logR2: Unified CLI (
client.mjs)node client.mjs scan [dir]— 기존scan-project.js대체node client.mjs agents <id> <status> [task]— 기존agent-status.js대체node client.mjs stats [dir]— SQLite에서 프로젝트 통계 조회node client.mjs words <file>— 파일 단어/문자/라인 수 카운트node client.mjs list— DB 내 모든 프로젝트 목록node client.mjs serve— 대시보드 서버 실행R3: Server integration
server.mjs/vite.config.ts→ JSON 대신getStatus()로 SQLite 읽기R4: Skill/Agent updates
scan-project.js→client.mjs scanagent-status.js→client.mjs agentsBackward Compatibility
status.json,projects.json) 병행 기록 유지Version
0.2.0→0.3.0(MINOR: 새 기능 추가)