Skip to content

refactor: thin CLI interface + package extraction#501

Merged
FL4TLiN3 merged 2 commits intomainfrom
refactor/thin-cli-package-extraction
Feb 15, 2026
Merged

refactor: thin CLI interface + package extraction#501
FL4TLiN3 merged 2 commits intomainfrom
refactor/thin-cli-package-extraction

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • Extract @perstack/log package from apps/perstack/src/lib/log/ and src/log.ts (types, data-fetcher, filter, formatter, handler)
  • Extract @perstack/installer package from apps/perstack/src/install.ts (expert-resolver, lockfile-generator, handler)
  • Extend @perstack/tui with runHandler, PROVIDER_ENV_MAP, and findConfigPath
  • Rewrite apps/perstack/bin/cli.ts as a single declarative Commander file (~130 lines) delegating to package handlers
  • Remove apps/perstack/src/ directory entirely
  • Deduplicate PROVIDER_ENV_MAP across create-expert and create-expert-skill by importing from @perstack/tui/provider-config

Test plan

  • pnpm typecheck — 21/21 packages pass
  • pnpm test — 1094/1094 tests pass (100 test files, including moved tests in @perstack/log)
  • pnpm build — 21/21 packages build successfully
  • pnpm format-and-lint — 0 errors (only pre-existing warnings in unrelated files)

🤖 Generated with Claude Code

FL4TLiN3 and others added 2 commits February 15, 2026 03:38
…terface

- Create @perstack/log package from apps/perstack/src/lib/log/ and src/log.ts
- Create @perstack/installer package from apps/perstack/src/install.ts
- Extend @perstack/tui with runHandler, PROVIDER_ENV_MAP, findConfigPath
- Rewrite apps/perstack/bin/cli.ts as declarative Commander definitions
- Remove apps/perstack/src/ directory entirely
- Deduplicate PROVIDER_ENV_MAP across create-expert and create-expert-skill

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 merged commit 56d34ef into main Feb 15, 2026
9 checks passed
@FL4TLiN3 FL4TLiN3 mentioned this pull request Feb 15, 2026
@FL4TLiN3 FL4TLiN3 deleted the refactor/thin-cli-package-extraction branch February 25, 2026 13:36
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