-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
@perstack/runtimeRuntime packageRuntime packagerefactorCode improvement without behavior changeCode improvement without behavior change
Description
Parent
Part of #504 — Make @perstack/runtime isomorphic
Problem
findLockfile() and loadLockfile() are exported from @perstack/runtime's public API but use Node.js-specific APIs:
readFileSyncfromnode:fspath.dirname,path.resolve,path.parse,path.joinfromnode:pathprocess.cwd()
These functions are only consumed by @perstack/tui (start-handler, run-handler).
Current state
RunOptions.lockfilealready exists — callers can pass a pre-resolvedLockfileobjectfindLockfile/loadLockfileare convenience helpers that resolve the lockfile from the filesystem
Goal
Remove findLockfile/loadLockfile from runtime's main export so that the core runtime package has no node:fs/node:path dependency for lockfile resolution. Determine the appropriate new home for these helpers (TUI layer, new utility package, or runtime sub-path export).
Files involved
apps/runtime/src/helpers/lockfile.tsapps/runtime/src/index.tspackages/tui/src/start-handler.tspackages/tui/src/run-handler.ts
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@perstack/runtimeRuntime packageRuntime packagerefactorCode improvement without behavior changeCode improvement without behavior change