Conversation
This reverts commit 4ebeae4.
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (29)
📝 WalkthroughWalkthroughThe PR reorganizes helper modules from ChangesModule Reorganization and Import Path Updates
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~30 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
## Summary Split the oclif command adapter layer out of the flat `src/lib/` directory and mirror the command tree under `src/lib/commands/**`. ## Stack Navigation - Position: 53 of 60 - Previous PR: [#2967 — refactor(cli): group oclif core modules](#2967) - Next PR: [#2984 — refactor(cli): group pure domain helpers](#2984) ## Changes - Moved the explicit oclif registry to `src/lib/commands/index.ts` and updated the oclif target in `package.json`. - Split registered oclif command classes to one command per production file, grouped by command family and sandbox scope. - Moved command adapter tests beside the new command tree and updated imports/mocks. - Kept behavior unchanged; command IDs, public syntax, parser flags, and action calls are preserved. ## Type of Change - [x] Code change (feature, bug fix, or refactor) - [ ] Code change with doc updates - [ ] Doc only (prose changes, no code sample modifications) - [ ] Doc only (includes code sample changes) ## Verification - [x] `npx prek run --all-files --stage pre-push` passes - [x] `npm run clean:cli && npm run build:cli && npm run dist:sourcemaps:check` - [x] `npm run typecheck:cli` - [x] Command adapter and metadata tests pass - [x] No secrets, API keys, or credentials committed - [ ] Docs updated for user-facing behavior changes - [ ] `make docs` builds without warnings (doc changes only) - [ ] Doc pages follow the style guide (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) --- Signed-off-by: Carlos Villela <cvillela@nvidia.com> --------- Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
prekshivyas
left a comment
There was a problem hiding this comment.
LGTM. Same #2967-pattern PR — pure file-organization, 29 files / +41 / -37.
Eight pure-domain helper modules (lifecycle/options, duration, policy-channel, maintenance/images, maintenance/upgrade, sandbox/destroy, sandbox/logs, sandbox/log-options) moved under src/lib/domain/**. 10 consumer files (actions + rebuild) have one-line import path updates. Test files renamed alongside their sources.
Most files are 0+/0- pure renames; the +1/-1 files are import-path migrations. Slightly larger domain/sandbox/destroy.ts (+5/-1) and test/shields.test.ts (+5/-5) are import re-exports / multi-import updates.
CI: pr.yaml mostly green (lint/dco/check-hash/legacy-path-guard/changes PASS); CodeRabbit SUCCESS; macos-e2e/wsl-e2e/checks + pr-self-hosted builds still in flight at review time. No failures.
## Summary Move OpenShell-facing adapter modules out of the flat `src/lib/` directory into `src/lib/adapters/openshell/**` so process/runtime boundaries are visible in paths. ## Stack Navigation - Position: 55 of 60 - Previous PR: [#2984 — refactor(cli): group pure domain helpers](#2984) - Next PR: [#2986 — test(cli): enforce initial layer import boundaries](#2986) ## Changes - Moved OpenShell command helpers to `src/lib/adapters/openshell/client.ts`. - Moved OpenShell runtime wrapper helpers to `src/lib/adapters/openshell/runtime.ts`. - Moved OpenShell binary resolution and timeout constants to `resolve.ts` and `timeouts.ts`. - Moved associated tests and updated action, command, and integration-test imports. - Kept behavior unchanged; this PR is a structural move plus import updates. ## Type of Change - [x] Code change (feature, bug fix, or refactor) - [ ] Code change with doc updates - [ ] Doc only (prose changes, no code sample modifications) - [ ] Doc only (includes code sample changes) ## Verification - [x] `npx prek run --all-files --stage pre-push` passes - [x] `npm run build:cli` - [x] `npm run typecheck:cli` - [x] OpenShell adapter targeted tests pass - [x] `npm run ts-migration:guard -- --base origin/refactor/layer-domain-helpers --head HEAD` - [x] No secrets, API keys, or credentials committed - [ ] Docs updated for user-facing behavior changes - [ ] `make docs` builds without warnings (doc changes only) - [ ] Doc pages follow the style guide (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) --- Signed-off-by: Carlos Villela <cvillela@nvidia.com> --------- Signed-off-by: Carlos Villela <cvillela@nvidia.com> Co-authored-by: Prekshi Vyas <34834085+prekshivyas@users.noreply.github.com>
Summary
Move pure CLI/domain helper modules out of the flat
src/lib/directory intosrc/lib/domain/**so parser, action, and domain boundaries are visible in paths.Stack Navigation
Changes
src/lib/domain/lifecycle/options.ts.src/lib/domain/**.Type of Change
Verification
npx prek run --all-files --stage pre-pushpassesnpm run build:clinpm run typecheck:climake docsbuilds without warnings (doc changes only)Signed-off-by: Carlos Villela cvillela@nvidia.com
Summary by CodeRabbit