Files
deepseek-harness/packages/boot
Turtle 54dd75a969 refactor(cmdline): run the program's own commander action instead of a plan callback
parseCmdline(ctx, program): void only adapts commander control flow to
the launcher: it parses the immutable cmdlineArgs snapshot and turns
help, version, parse errors, and action rejections into a ctx.appExit
request. App validation and the ctx.provide of the app-owned service
live in the program's own synchronous .action(), which commander runs
inside parse — program.error(...) there shares the exit path with a
grammar rejection. Deletes the CmdlinePlan export, its unread ctx
parameter, the type-unsound (() => ({}) as T) default, and the
T | undefined return with its per-caller publish guard.
2026-08-12 13:07:41 +08:00
..

boot/ — shared app-bin boot glue

English | 中文

The channel-neutral boot library shared by apps/cli and the examples/ demo bins.

Package Role ctx key
app-boot/ Shared boot glue for the app bins: .env loading, fail-loud Loader guards, snapshot-aware config resolution, the settle-the-tree boot sequence (library for the bins)
cmdline/ Launcher-to-app command-line handoff and app-owned startup parsing cmdlineArgs, appExit

The boot sequence and personal-config contract are documented in app-boot/README.md; app-owned command lines are documented in cmdline/README.md.