Skip to content

refactor: remove runtime CLI, move to packages/, separate lockfile I/O#510

Merged
FL4TLiN3 merged 4 commits intomainfrom
refactor/remove-runtime-cli-move-packages
Feb 15, 2026
Merged

refactor: remove runtime CLI, move to packages/, separate lockfile I/O#510
FL4TLiN3 merged 4 commits intomainfrom
refactor/remove-runtime-cli-move-packages

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • runtime CLI 削除: bin/, src/cli/ ディレクトリと commander/dotenv 依存を除去。CLI は apps/perstack に一本化
  • lockfile I/O 分離: findLockfile/loadLockfile@perstack/runtime から @perstack/tui へ移動。runtime には純粋関数 getLockfileExpertToolDefinitions のみ残す
  • runtime を packages/ へ移動: ライブラリとしての位置づけを明確化 (apps/runtimepackages/runtime)
  • e2e テスト統合: e2e/perstack-runtime/ の全15ファイルを e2e/perstack-cli/ へマージ。runRuntimeClirunCli に統一
  • CLI テストを TUI に移植: get-env, provider-config, perstack-toml, context のテストを packages/tui に追加
  • ベンチマーク・ドキュメント更新: パス参照を apps/perstack/bin/cli.ts に変更、README から二重 CLI の記述を削除

Test plan

  • pnpm typecheck — 21/21 pass
  • pnpm test — 100 files, 1093 tests pass
  • pnpm build — 21/21 pass
  • pnpm format-and-lint — exit 0 (pre-existing warnings only)

🤖 Generated with Claude Code

FL4TLiN3 and others added 4 commits February 15, 2026 07:26
- Delete runtime CLI (bin/, src/cli/) and remove commander/dotenv deps
- Separate lockfile I/O: move findLockfile/loadLockfile to @perstack/tui
- Move @perstack/runtime from apps/ to packages/ (library, not app)
- Merge e2e/perstack-runtime/ tests into e2e/perstack-cli/
- Update benchmarks to use apps/perstack/bin/cli.ts
- Port CLI tests (get-env, provider-config, perstack-toml, context) to TUI
- Update docs and README to reflect single CLI architecture

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Include minRuntimeVersion in expert mapping in resolveRunContext so
  runtime version validation works correctly via the perstack CLI
- Remove --run-id e2e test since perstack CLI doesn't have that option

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add patch changeset for @perstack/runtime and @perstack/tui
- Remove unused smol-toml dep from runtime (moved to tui with lockfile I/O)
- Remove unused memfs devDep from runtime (lockfile tests moved to tui)
- Fix knip entry pattern for apps/perstack

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace the old README (which was just the apps/runtime version minus
the CLI section) with a focused library README that documents the
public API surface, architecture overview, and links to detailed docs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 merged commit 8df1739 into main Feb 15, 2026
9 checks passed
@FL4TLiN3 FL4TLiN3 deleted the refactor/remove-runtime-cli-move-packages branch February 15, 2026 08:04
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