Skip to content

refactor(cli): group docker adapters - #2991

Merged
cv merged 90 commits into
mainfrom
refactor/layer-docker-adapters
May 6, 2026
Merged

refactor(cli): group docker adapters#2991
cv merged 90 commits into
mainfrom
refactor/layer-docker-adapters

Conversation

@cv

@cv cv commented May 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Move the Docker adapter package under src/lib/adapters/docker/** so Docker process boundaries live with the other adapter modules.

Stack Navigation

Changes

  • Moved src/lib/docker/** to src/lib/adapters/docker/**.
  • Updated Docker adapter imports across actions, onboarding/runtime helpers, services, shields, and tests.
  • Updated the Docker abstraction guard to use the new adapter path.
  • Kept behavior unchanged; this PR is a structural move plus import updates.

Type of Change

  • 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

  • npx prek run --all-files --stage pre-push passes
  • npm run build:cli
  • npm run typecheck:cli
  • npx tsx scripts/check-layer-import-boundaries.ts
  • Docker adapter targeted tests pass
  • 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

Summary by CodeRabbit

  • Refactor
    • Reorganized internal Docker utility modules for improved code organization and maintainability. This structural change enhances the codebase architecture without affecting any user-facing functionality or features.

cv added 30 commits May 2, 2026 13:36
@wscurran wscurran added NemoClaw CLI refactor PR restructures code without intended behavior change labels May 4, 2026
@cv cv mentioned this pull request May 4, 2026
14 tasks
@cv
cv requested a review from prekshivyas May 5, 2026 00:28
@cv cv added the v0.0.35 label May 5, 2026
@prekshivyas prekshivyas self-assigned this May 5, 2026
@cjagwani cjagwani assigned cjagwani and unassigned cjagwani May 5, 2026
@ericksoa ericksoa added v0.0.36 and removed v0.0.35 labels May 6, 2026
@cv

cv commented May 6, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented May 6, 2026

Copy link
Copy Markdown
Contributor
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

cv added a commit that referenced this pull request May 6, 2026
## Summary
Move registry, config, path, gateway, session, and sandbox persistence
modules into `src/lib/state/**` so persistence boundaries are visible in
paths.

## Stack Navigation
- Position: 59 of 60
- Previous PR: [#2988 — refactor(cli): group global
actions](#2988)
- Next PR: [#2991 — refactor(cli): group docker
adapters](#2991)

## Changes
- Moved registry/config/path/gateway/session/sandbox state modules under
`src/lib/state/`.
- Moved co-located state tests and updated dist/source paths in
integration tests.
- Updated action, command, onboarding, policy, service, and test imports
to the new state paths.
- Updated CodeRabbit path instructions and migrated-path guard canonical
paths for moved state modules.
- 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] `npx tsx scripts/check-layer-import-boundaries.ts`
- [x] State and registry targeted 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>


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Refactor**
* Reorganized internal state management modules into a dedicated
directory structure to improve code organization and maintainability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Carlos Villela <cvillela@nvidia.com>
@cv
cv marked this pull request as ready for review May 6, 2026 18:32
@cv
cv changed the base branch from refactor/layer-state-modules to main May 6, 2026 18:32
@cv
cv enabled auto-merge (squash) May 6, 2026 18:32
Signed-off-by: Carlos Villela <cvillela@nvidia.com>

@prekshivyas prekshivyas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Last PR in the 60-PR stack — same file-organization pattern, 26 files / +26 / -26.

Docker adapter modules moved src/lib/docker/**src/lib/adapters/docker/** (11 files). Most are 0+/0- pure renames; image.ts and run.ts have +1/-1 internal sibling-import updates. 15 consumer files have +1/-1 import-path migrations.

Docker abstraction guard test updated for the new path — necessary companion, not drift.

Verification checklist explicitly cites check-layer-import-boundaries.ts from #2986.

CI: pr.yaml mostly green (lint/dco/check-hash/legacy-path-guard/changes PASS); macos-e2e/wsl-e2e/checks + pr-self-hosted builds still in flight at review time. No failures.

@cv
cv merged commit f98f951 into main May 6, 2026
15 of 16 checks passed
@cv
cv deleted the refactor/layer-docker-adapters branch May 27, 2026 21:17
@wscurran wscurran added area: cli Command line interface, flags, terminal UX, or output area: packaging Packages, images, registries, installers, or distribution platform: container Affects Docker, containerd, Podman, or images and removed NemoClaw CLI labels Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli Command line interface, flags, terminal UX, or output area: packaging Packages, images, registries, installers, or distribution platform: container Affects Docker, containerd, Podman, or images refactor PR restructures code without intended behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants