Skip to content

refactor(onboarding): move the onboarding crate under crates/ - #13087

Merged
cv merged 1 commit into
v1from
refactor/onboarding-crate
Oct 13, 2026
Merged

cv merged 1 commit into
v1from
refactor/onboarding-crate

Conversation

@cv

@cv cv commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

The production CLI depends on examples/onboarding-tui, so the library behind nemoclaw onboard sits beside sample deployment files. This PR moves it to crates/nemoclaw-onboarding and keeps its git history. Nothing is left under examples/.

Changes

  • Location: the CLI dependency, the workspace members, .dockerignore, the Ollama proxy Dockerfile, and four docs links now use crates/nemoclaw-onboarding.
  • Source packaging: SOURCE_ROOTS drops examples/onboarding-tui, since crates already includes the crate. The nemoclaw-build test fixtures follow the new path.
  • Change detection: this PR removes the determinator rules that mapped examples/onboarding-tui to its package. A crate under crates/ maps to its package by default.
  • Paths that pointed into examples/: build.rs, example_reaches_review, and the test fixtures that read example templates now resolve ../../examples.
  • Standalone binary: nemoclaw-onboarding stays in the crate as a thin consumer of author.

The issue also asked to replace the TUI Step enum with EditableField. That no longer applies: the wizard already asks JourneyQuestion values from nemoclaw-authoring, and neither Step nor EditableField exists on v1.

Validation

  • cargo test --locked -p nemoclaw-onboarding -p nemoclaw-build -p nemoclaw-cli passed the same 272 tests before and after the move, including all 44 tests generated from the example deployment files.
  • cargo ci passed every step: fmt, Clippy, build, 1,384 workspace tests, schema, bundle, and lifecycle.
  • cargo run --locked -p nemoclaw-build -- fern check reported 0 errors and 1 warning; I didn't check whether the warning predates this change.

Closes #12524

The production CLI depended on examples/onboarding-tui, so the library that
`nemoclaw onboard` runs lived beside sample deployment files. Move it to
crates/nemoclaw-onboarding with its history, and point the CLI, workspace,
source packaging, Docker context, change detection, and documentation links
at the new location. No crate or duplicate remains under examples/.

Paths that resolved through examples/ now name it: build.rs and the example
journey tests read ../../examples, and the fixtures that included the
onboarding template and managed-ollama.yaml use the new depth. The
standalone nemoclaw-onboarding binary stays in the crate; it is a 117-line
consumer of `author`.

The determinator rules that mapped examples/onboarding-tui to its package
are gone: a crate under crates/ maps to its package by default. The source
roots drop the old entry because `crates` already covers the crate.

The second part of #12524, replacing the TUI Step enum with EditableField,
no longer applies: the wizard now asks JourneyQuestion values from
nemoclaw-authoring, and neither type exists on v1.

Validation: before and after the move, `cargo test --locked -p
nemoclaw-onboarding -p nemoclaw-build -p nemoclaw-cli` passed the same 272
tests, including all 44 generated example journeys. `cargo ci` (fmt,
strict Clippy, build, 1,384 workspace tests, schema, bundle, lifecycle) and
`cargo run -p nemoclaw-build -- fern check` pass.

Refs #12524
@cv
cv enabled auto-merge (squash) October 13, 2026 07:35
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit a5445c7 into v1 Oct 13, 2026
@cv
cv deleted the refactor/onboarding-crate branch October 13, 2026 07:40
@cv cv added the v1 NemoClaw v1 branch label Oct 13, 2026
sandl99 added a commit that referenced this pull request Oct 15, 2026
…sher build

Signed-off-by: San Dang <[email protected]>

#13087 moved examples/onboarding-tui under crates/ and removed the same copy from the Ollama proxy image. The publisher image still copied it, so the hosted Agent images build failed before compiling.
@wscurran wscurran added area: architecture Architecture, design debt, major refactors, or maintainability area: onboarding Onboarding FSM, provider setup, sandbox launch, or first-run flow refactor PR restructures code without intended behavior change labels Oct 28, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: architecture Architecture, design debt, major refactors, or maintainability area: onboarding Onboarding FSM, provider setup, sandbox launch, or first-run flow refactor PR restructures code without intended behavior change v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants