Commit Graph

11 Commits

Author SHA1 Message Date
xiaoju 0c3624ddca refactor(cli): migrate packages/cli from MJS to TypeScript
Migrate urec and uconn CLI tools from plain JavaScript (.mjs) to TypeScript (.ts) with full type safety and strict mode enabled.

Changes:
- Created TypeScript configuration (tsconfig.json) with strict mode
- Migrated src/urec.mjs to src/urec.ts with proper type annotations
- Migrated src/uconn.mjs to src/uconn.ts with proper type annotations
- Added type declarations for @uncaged/dashboard-server/protocol
- Updated package.json with build script and bin entries pointing to dist/
- Added comprehensive test suites for type safety and functionality
- Added .gitignore to exclude built artifacts

Type Safety:
- No implicit any types throughout the codebase
- Explicit type annotations for all variables and functions
- Proper null safety with strictNullChecks
- Full type coverage for Node.js built-ins and external dependencies

Testing:
- 22 passing tests covering type safety, build config, and functionality
- Tests verify TypeScript compilation succeeds
- Tests verify executables work correctly with preserved shebangs
- Tests verify backward compatibility of CLI behavior

Build:
- TypeScript compiles successfully with no errors
- Built files maintain ESM format
- Shebang lines preserved in output
- Source maps generated for debugging

Resolves #1

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-28 10:15:03 +00:00
xiaoju 6fd9e26903 chore: move solve-issue workflow to .workflows/
CI / check (push) Successful in 43s
小橘 <xiaoju@shazhou.work>
2026-05-28 09:56:52 +00:00
xiaoju 91f37cc91b chore: add solve-issue workflow
CI / check (push) Successful in 49s
小橘 <xiaoju@shazhou.work>
2026-05-28 09:54:51 +00:00
xiaoju cff9998987 fix: format cli package.json
CI / check (push) Successful in 44s
2026-05-28 08:59:52 +00:00
xiaoju 06aad41cae fix(ci): vitest passWithNoTests for empty suites
CI / check (push) Failing after 1m9s
2026-05-28 08:57:41 +00:00
xiaoju f120358223 fix: resolve all biome lint errors
CI / check (push) Failing after 1m18s
2026-05-28 08:55:23 +00:00
xiaoju 1da755a3c0 fix(ci): restore vite build instead of tsc for mjs project
CI / check (push) Failing after 58s
2026-05-28 08:50:38 +00:00
xiaoju 390172605c chore: normalize to bun monorepo conventions
CI / check (push) Failing after 38s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-28 08:49:03 +00:00
xiaoju 73553ae352 fix(ci): add missing test scripts
CI / check (push) Successful in 39s
2026-05-28 06:31:00 +00:00
xiaoju 1bae834dae ci: add Gitea Actions workflow
CI / check (push) Failing after 44s
2026-05-28 06:28:44 +00:00
xiaoju 897ba5fae8 feat: worker dashboard monorepo
- packages/cli: @uncaged/cli-dashboard (urec + uconn)
- packages/server: dashboard backend (port 3800)
- packages/frontend: React dark theme UI
- Normalized to bun monorepo conventions (TS, Biome, vitest, changesets, CI)

小橘 🍊(NEKO Team)
2026-05-28 05:56:21 +00:00