Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ pids
*.pid
*.seed
*.pid.lock
*.sqlite
reports/

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
Expand Down Expand Up @@ -127,6 +129,7 @@ dist

# pnpm
.pnpm-store
package-lock.json

# yarn v3
.pnp.*
Expand Down
39 changes: 38 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,39 @@
# Computer-Doctor-CLI
AI command line toolkit for Computer Repairing

AI command line toolkit for Computer Repairing.

## MVP Framework

This repository now includes a TypeScript 6 + PNPM 11 oriented CLI framework with:

- `commander-jsx` command tree (JSX-defined CLI)
- React/JSX terminal rendering via `ink`
- Unified internal command execution via `zx`
- Vercel AI SDK planning skeleton (with controlled action allowlist)
- TypeORM + SQLite local persistence
- Core abstractions for platform / diagnostic / planning / action / session / report
- Platform adapter layout for Windows (first adapter), Linux, and macOS
- End-to-end MVP flow: session -> diagnostic -> plan -> action -> sqlite -> markdown reports

## Usage

```shell
cp computer-doctor ~/Desktop
cd ~/Desktop
computer-doctor -h
```

## Development

```bash
pnpm install
pnpm debug --verbose
```

## Generated artifacts

- `computer-doctor.sqlite`
- `reports/<session-id>/diagnostic.md`
- `reports/<session-id>/plan.md`
- `reports/<session-id>/repair.md`
- `reports/<session-id>/rollback.md`
35 changes: 35 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "computer-doctor-cli",
"version": "0.1.0",
"description": "Cross-platform CLI framework for computer repair technicians",
"type": "module",
"packageManager": "pnpm@11.0.0",
"bin": {
"computer-doctor": "dist/index.js"
},
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "tsx src/index.tsx",
"start": "node dist/index.js",
Comment on lines +8 to +13
"test": "tsx --test test/*.test.ts",
"debug": "tsx src/index.tsx mvp",
Comment thread
TechQuery marked this conversation as resolved.
"pack-exe": "pnpm pack-app"
},
"dependencies": {
"@ai-sdk/google": "^2.0.25",
"ai": "^6.0.184",
"better-sqlite3": "^12.4.1",
"commander-jsx": "^0.7.3",
"ink": "^6.8.0",
"react": "^19",
"reflect-metadata": "0.2.2",
"typeorm": "^0.3.29",
"zx": "^8.8.5"
Comment on lines +18 to +27
},
"devDependencies": {
"@types/node": "^24.10.1",
"@types/react": "^19",
"tsx": "^4.20.6",
"typescript": "^6.0.3"
}
}
Loading