8000 fix(minimald,minimal): rename the in-box min add --session to --box and rewrite the helper's help by minimal-backporter[bot] · Pull Request #4071 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

fix(minimald,minimal): rename the in-box min add --session to --box and rewrite the helper's help - #4071

Open
minimal-backporter[bot] wants to merge 1 commit into
release/0.8.xfrom
backport/4027-to-release/0.8.x
Open

minimal-backporter[bot] wants to merge 1 commit into
release/0.8.xfrom
backport/4027-to-release/0.8.x

Conversation

@minimal-backporter
Copy link
Copy Markdown
Contributor

Backport of #4027 to release/0.8.x.

Squash-merge this PR and keep the PR title as the subject. The cherry-picked commit keeps the source subject.

…and rewrite the helper's help (#4027)

* feat(minimald): name the in-box min add flag --box, keep --session

The box helper's `min add --box <pkg>` installs the packages and
records them in the packages list of [defaults.session] in the box's
minimal.toml. That is what `min add --session` did. A plain
`min add <pkg>` is still the same command, and `min package add`
takes the same flags.

`--session` still works in 0.8. It sends the same request and prints
one line on stderr that names the new spelling with the packages
filled in. The error for an unknown flag lists --box, --build and
--runtime.

The request the helper sends the daemon keeps its name,
`add-session`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(minimald): group the in-box min help and explain each command

`min --help` now groups the box helper's commands under Packages,
Project and Network. It says that the box lifecycle commands run on
the host, and it names the short forms min pkg, min run and
min search. Its first line is "Usage: min <command> [args]".

Each command's help gives a usage line, says what the command does,
explains each flag and ends with an example. The flags come from what
the daemon reads from each request: --rebuild and --verbose for
package build, --fix, --packages and --stacks for check, -o and
--arch for materialize, and --public for net expose. `min task run
--help` and `min run --help` print the help of task run, not of task.

Help still makes no request to the daemon. The slots that read a bare
`help` as a help request are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(minimal,minimald): point host hints at min add --box

The texts that tell the user to install a package from inside a box
now name `min add --box`: the shell-missing notice, the box banner and
the note after a host-side `min add --session`. The shell-missing
notice also loses its em dash and says box, not session.

The e2e script greps the notice for the new text, and its egress
build leg runs `min add --box`.

The host CLI's own `min add --session`, in README.md and
docs/guide/dev-shell.md, is a different flag and stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(reference): describe min add --box in the box helper

The add section of the sandbox operations reference names --box as
the box helper's flag that records packages in [defaults.session]. It
says that --session still works in a box in 0.8, prints a line that
names --box, and leaves in 0.9. The mip run helper keeps --session.

The page also says what the box helper's --help prints now, and lists
the --rebuild and --verbose flags of package build. Every anchor stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit a3769fe)
@coderabbitai
coderabbitai Bot commented Dec 4, 2026
Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

Ask an organization administrator to verify that this bot has an active assigned CodeRabbit review seat. See the seat-assignment guide. After the seat is confirmed, request a review again.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2be32046-ffb9-44be-a039-8471a3e71bd7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@minimal-foundry
minimal-foundry Bot commented Dec 4, 2026 •
Copy link
Copy Markdown
Contributor

Approved: no findings at 303112a273d0.

Nothing to do.

Clobber: none found.

@minimal-foundry minimal-foundry Bot left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

minimal-review — approved

Verdict APPROVE — No findings.

Panel: 3 of 3 personas ran (correctness, security, supply-chain).

@minimal-foundry minimal-foundry Bot added the review:approved minimal-review approved the current head label Dec 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review:approved minimal-review approved the current head

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0