Dashboard › cli › Distillation
Distillation
ID: f09770e5-707e-43ce-95c8-40162bc32b8d
Generation: 0
Tokens: 545
R_compression: 7.910
C_norm: 0.000
Archived: No
Created: 2026-09-09 08:47:33
Source IDs:
["lore_tm_v1_XuTsu4ppD9oAfqtsv7fr6DtkapHtISCQElQ2VHRG0RQ"]
Observations
- π΄ (08:45) User-provided source documentation states that streaming commands render each yield immediately, while output handling associated with the return value runs only on the return valueβnever on individual yields.
- π΄ (08:45) User-provided source defines
const LOG_LEVEL_KEY = "log-level" and documents the injected --log-level flag as always stripped before the command function runs.
- π΄ (08:45) User-provided source states that injected wrapper flags designated as always stripped are removed so the command never sees them.
- π΄ (08:45) User-provided source states that the relevant output flag is always injected when
output: { human: ... } is configured, regardless of other conditions described nearby.
- π΄ (08:45) User-provided source documents a hidden
--verbose flag injected into every command by buildCommand, while noting collision handling when a command already defines its own verbose flag, such as the api command.
- π΄ (08:45) User-provided source states that wrapper logic intercepts injected flags before the original
func runs and calls setLogLevel().
- π΄ (08:45) User-provided source documents
OutputConfig<T>.human as contravariant in T; the builder erases T because it does not know the output type, and uses any so commands can declare OutputConfig<SpecificType> while the wrapper handles output generically.
- π΄ (08:45) User-provided source states that a raw string flag value is pre-parsed by the wrapper into a
string[] before command execution.
- π΄ (08:45) User-provided source states that project-related global handling yields to command-owned flags such as
release create --project; those command-owned flags pass through to func().
- π΄ (08:45) User-provided source shows
const projectTrimmed = commandOwnsProject ? undefined : project?.trim();, preventing global project processing when the command owns project.
- π΄ (08:45) User-provided source states that explicit CLI project-related values outrank environment variables and overwrite existing environment variables.
- π΄ (08:45) User-provided source states that command documentation is enriched with a JSON-fields section when a schema is registered on the output configuration; the enrichment path returns early when
!outputConfig?.schema.
- π΄ (08:45) User-provided source defines
VERBOSE_FLAG within an injected-flags collection and separately defines a collection of flags that are always stripped before command invocation.