Changelog
This file records externally observable changes for Luna CLI consumers. Exclude pack-package, documentation, CI, build, test, and release-process changes.
Version 1.8.0 - 2026-12-01
Added
luna cache info,luna cache clean, andluna cache prune --days <N>now report and safely remove Luna-owned Git caches and abandoned temporary workspaces. Cleanup is confirmed by default, supports--yesfor non-interactive use, skips active entries and aliases, continues after individual removal failures, and returns non-zero if required work fails. Project Git catalog metadata is stored in a project-hashed user-profile cache, legacy repository-local entries migrate on use, andluna initno longer creates or modifies.gitignorefor generated state.
Update this section before creating a release tag.
Project Policy
lunapack.ymlcan now define optional version-1 project policy with normalized source allow/deny rules, required Git commit pins, permitted lifecycle script modes, report or blocking enforcement, and exact expiring waivers. Report mode is the compatibility default. Blocking policy runs before source access, source approval, script trust, or project mutation and cannot be overridden by--scripts runor persisted trust.luna audit --strictevaluates current policy against locked provenance without network access; unwaived blocking findings return integrity exit code2.
Fixed
- Pack install and update failures now continue attempting every managed-file rollback entry. Luna keeps the original command error, returns a non-zero exit code, and reports unresolved project paths and reasons with an explicit warning when the project may be partially changed.
Version 1.7.0 - 2026-11-21
Resource Limits
- Luna now applies finite, configurable ceilings to project and pack manifests,
lock files, pack documents, snapshots, selected files, dependency graphs,
rendered content, Git output, and OCI downloads and archives.
luna configmanages scoped limits; project settings can only lower built-in defaults, and cannot raise a stricter user-project or global setting. Global-user and user-project settings can raise effective limits within finite hard ceilings. Over-limit inputs fail before parsing or project mutation with observed values and units in the diagnostic. The same effective limits protect OCI pack publication.
Git Sources
- Git operations now reject
http://andgit://sources by default. The scope-widegit.allow-insecure-transportpreference provides a warned opt-in; opted-in HTTP operations skip Git credential helpers. Secure HTTPS operations require certificate verification and a direct final URL because redirects are disabled. Git URLs containing queries or fragments and checkout smudge filters are rejected; option-like repository locations are rejected before Git runs.
Lifecycle Hooks
- Authorized scripts now warn with names of inherited environment variables outside the effective allow-list. Warnings do not filter the child environment. Each script hook now has a 300-second default timeout, with optional project and user policy from 1 through 1,800 seconds; the shortest configured timeout applies. Timeouts terminate the process tree and fail the lifecycle operation, separately from caller cancellation.
Added
luna audit --strictnow verifies every pack- and link-managed target against its locked SHA-256 digest. It returns2for missing or modified targets, while invalid usage or unreadable state returns1;--fail-faststops after the first integrity violation. Strict reads remain inside the selected workspace and reject symbolic-link or reparse-point paths. Strict audit uses text output; combining--strictwith--format jsonreturns exit code1with a JSON failure envelope.luna doctorreports project-relevant Git, credential-store, state, and profile/cache problems with remediation. Its default checks are offline;--networkenables bounded, noninteractive checks for configured Git and OCI sources.- Install, update, local pack validation, and OCI publication now screen
pack-managed UTF-8 text for hidden Unicode. Bidi controls and U+200B block
before side effects unless
--allow-hidden-charactersis supplied; other Unicode format characters remain warnings.luna auditreports installed findings without changing state or success behavior. BOM-tagged UTF-16 and UTF-32 content is decoded, and recoverable controls in NUL-containing or invalid UTF-8 payloads remain enforceable without rejecting opaque bytes alone. Managed paths reject terminal-control and hidden-format characters. Diagnostic retention is bounded to 1,000 findings per payload with an omission summary. luna audit,luna outdated, andluna validate <pack-reference>accept--format jsonfor versioned machine-readable results. JSON stays on standard output while human-readable diagnostics use standard error; audit results include stable finding codes and severity counts.luna sbomexports lock-derived dependency inventories as CycloneDX 1.6/1.7 or SPDX 2.3/3.0.1 JSON, with optional safe project-relative file output.- Luna records bounded per-user lifecycle script attempt history and adds
luna hooks historyfor read-only inspection of recent commands, authorization sources, durations, and outcomes. History persistence failures warn without changing script results or rollback behavior.
Fixed
- Lifecycle scripts now complete reliably on macOS by tracking hook descendants through process relationships instead of a platform-native process queue.
luna doctornow removes temporary writability probes explicitly after the probe handle closes on macOS and other Unix hosts, while allowing platform temp-directory aliases without weakening reparse-point checks.- Lifecycle consent always displays the pack ID, resolved command and arguments, and optional description even when informational output is suppressed.
- Canceling noninteractive lifecycle hooks no longer waits for detached descendants that retain output handles. Unread output may be discarded.
- Pack and link updates now preserve locally modified managed targets removed
from their next selection and warn that the files are no longer managed.
Pack updates support explicit deletion with
--remove-modified. - Git links now fetch selected files missing from cached content using the resolved commit.
- Luna resolves Git from trusted absolute
PATHentries instead of a same-directory executable, and rejects credential-bearing HTTP Git URLs.
Version 1.6.0 - 2026-11-17
Catalog Eligibility and Preferences
- Pack manifests can set
directInstallable: falsefor dependency-only releases. Discover and search show directly installable raw and composite packs by default, with--only-compositesavailable for composite-only results; install, update, and outdated selection exclude dependency-only roots while preserving composite dependency resolution, validation, and inspection.luna config set|list|removemanages scoped preferences for catalog filtering and next-step guidance. Use--projectto store values inlunapack.yml(--localremains an alias),--user-projectfor project-specific user settings, or--globalfor user-wide settings.
OCI Registry Sources And Publishing
luna sources add ociregisters normalized HTTPS OCI registry sources without contacting the registry.luna sources ignoreandunignoremanage per-project, per-user source state; source listings show local ignore status. Ignore updates leaveconfig.ymlunchanged for compatibility with older CLI readers.luna initnow adds/.lunapack/to the project-root.gitignorewhile preserving existing content.- OCI registry releases now participate in discovery, direct resolution, validation, inspection, installation, and updates. Lock files retain the registry, repository, version tag, and verified manifest/content digests.
luna publish <folder> --target <source>publishes a validated pack as an OCI artifact, rejects existing version tags, and reports the verified manifest digest without running pack hooks or changing project state.- Registry authentication now supports anonymous access, source-bound
operating-system credential storage, interactive challenge prompts, and
optional Azure
DefaultAzureCredentialfor ACR. Luna does not provide registry credentials through LunaPack-specific environment variables. Unavailable sources produce partial-result diagnostics instead of success-shaped empty catalogs.
Composite Packs
- Composite references can define file and directory remaps for their active dependency subtree. Consumer mappings retain precedence, and conflicting equal-depth composite mappings stop planning.
- Composite reference parameters now accept exact
${{ expression }}bindings for typed parameter pass-through andiif(condition, whenTrue, whenFalse)selection. Invalid references, cycles, and target-type mismatches stop before project changes.
Conditional Packs
- Lock files now persist only active conditional composite references, preventing inactive dependencies from invalidating later project state validation.
Lifecycle Hooks
- Hook conditions now support
scriptsSkipped()andpreviousScriptState()for fallback instructions based on global script suppression or the nearest earlier script in the same pack and event.
Fixed
- Pack installation no longer rejects equivalent Git repository URLs solely
because one has a trailing slash or
.gitsuffix. Genuine source identity mismatches still fail with pack- and source-specific diagnostics. - Project-state save failures now identify the affected state file and report its validation issues instead of returning a generic schema error.
Version 1.5.0 - 2026-09-02
Conditional Packs
-
Composite pack references now accept parameter conditions. False references and dependencies reachable only through them are omitted from files, hooks, ownership, lock state, and pack-defined external-source requirements.
-
Install and update dry runs now prompt for configurable parameters before planning. Use
--prompt-parameterson a real install or update to answer all optional parameters with their declared defaults offered. -
Parameters now support mutually exclusive
requiredWhenexpressions and deterministic declaration-order prompting. Parameters reachable only through inactive references are skipped while shared packs reached by an active path remain promptable. -
Install and update dry runs now accept
--skip-parametersfor noninteractive previews that use declared defaults and supplied values. -
Updates now accept explicit parameters, project-variable exclusions, and command target remappings. Named updates can persist provided remappings with
--save-remap.
Source Selection
- Install and update output now identifies the selected source name and type when the same pack release is available from multiple configured sources.
Fixed
- Dynamic pack and source completion candidates no longer replace stable
argument names in
--helpoutput. - Git source discovery and search no longer crash when a pack declares a multi-value parameter default.
luna validatenow validates directly referenced draft packs from configured Git sources as well as local sources.
Version 1.4.0 - 2026-09-01
Conditional Hooks
- Managed-file selectors and lifecycle hooks now support
isDefault(parameterName)conditions. Conditional hooks are omitted before instruction loading or script authorization, andluna pack add hookaccepts--conditionor-c.
Version 1.3.0 - 2026-08-31
Completions
luna completions scriptnow generates native Bash, Fish, Nushell, PowerShell, and Zsh Tab-completion registration without an external tool. Pass--installto preview and append registration to the shell's user configuration after an explicit confirmation that defaults to No. Completion includes commands, options, valid finite values, available and installed pack or link IDs, and configured source, link, and variable IDs.- Shell completion now handles cursor positions beyond a shell's rendered command line when trailing whitespace was stripped. Argument-taking commands return value candidates, while command containers return no candidates.
- Nushell completion installation now uses
XDG_DATA_HOMEwhen configured and the native macOS application data directory by default.
Changed
-
luna install --save-remapnow stores mappings on the installed pack'slunapack.ymlentry. Locked effective targets override pack remapping; pack remapping overrides top-level project remapping. -
Install, update, and their dry runs now identify whether each reported managed-target remapping came from command-line input, pack configuration, top-level project configuration, or
lunapack-lock.yml. -
Install and update dry runs now group source, managed-file, and lifecycle actions under labeled sections with colored action prefixes. Successful installs and updates list managed-file changes by default; use
--no-file-change-outputto suppress that list. -
Install and update dry runs no longer list locked source identities under lifecycle actions.
-
CLI status and dry-run actions now use distinct ASCII markers for consistent terminal rendering without relying on color to identify file operations. Lifecycle dry runs group hook details by phase and report whether policy, command arguments, persisted trust, or confirmation controls script consent.
Version 1.2.0 - 2026-08-29
Added
- Added persistent blanket lifecycle-script denial for portable project,
project-local user, and global-user scopes. Denial overrides
--scripts runand retained source or pack grants, reports every denying scope before lifecycle work, and appears aspolicy-deniedin dry runs. Trust commands can list, set, and confirm reset of denial without deleting grants. luna initandluna pack initnow generate minimal schema-valid YAML with only required properties and values.luna mvnow moves managed directories as atomic batches while preserving descendant paths.--save-remaprecords file or directory moves as reusable project mappings for future installs.luna install --save-remapnow persists command-line file and directory remappings after a successful pack or link installation.- Managed-target remappings now accept
@ignoreto omit matching pack or link files from installation, updates, and lock ownership. Newly ignored existing files remain unchanged, and removing the mapping allows omitted files to be installed later.
Fixed
- External-source identifier conflicts can now be canceled by submitting the empty value offered by the interactive prompt.
- Managed files expanded from pack directory and glob selectors now honor exact file remappings from project configuration and install command options.
- Project remappings with trailing
/or\\separators now match declared targets and persist effective targets without trailing separators.
Parameters
- Enum parameters can set
multiple: trueand resolve ordered, unique selections from repeated CLI input, prompts, array defaults, project variables, and composite bindings. - Managed-file conditions support
"docker" in features; Scriban templates, lifecycle instructions, and script arguments supportfeatures contains "docker". Invalid, duplicate, or incompatible selections fail before project mutation.
Pack Templates
- Managed-file Scriban templates can use
files.pathto resolve a declared managed target after consumer remapping andfiles.relative_pathto render a path relative to the current effective target. Paths use/on every platform. - Missing, conditionally excluded, or ambiguous managed-file references warn and preserve the supplied declared target during install, update, and dry-run.
Version 1.1.0 - 2026-08-27
Luna Links
- Luna
1.1.0adds project-owned links that select exact files, directories, and globs from configured local or Git sources without requiringpack.yml. luna search <query>now includes matching configured links with their source, target, and installation status.luna links add,list,show, andrmmanage link definitions. Install, update, outdated, audit, uninstall, and forced removal use lock-backed ownership, content digests, conflict checks, and transaction rollback.- Link installation now honors
--remap-directoryand--remap-file, recording declared and effective target paths in lock ownership. - Git links resolve immutable commits, materialize only selected blobs, and use
a verified user cache. Project and lock files containing links require Luna
1.1.0or later; version-1 files without links remain compatible.
Pack Authoring
- New
luna packcommands initialize, inspect, validate, and incrementally maintain managed content, composite references, ordered lifecycle hooks, parameters, tags, and metadata in localpack.yml. luna pack add hook,luna pack hooks, and positionedluna pack rm hookreplace the former script-specific authoring commands. Hook lists and resolved pack inspection now show ordered script and instruction details.- Pack manifests require ID, semantic version, non-empty author, and non-empty
license.
luna pack initaccepts--authorand--license, prompting for missing values interactively. Discovery and search exclude manifests missing either attribution value. - Pack manifests support optional non-empty
nameand absolute HTTP or HTTPShomepagemetadata.
CLI Workflow
- Packs can declare external Git source aliases and select files, directories,
or globs from immutable commits. Install and update reuse equivalent workspace
sources, request graph-wide consent for missing sources, support
--accept-sources, and commit source configuration, managed files, and lock provenance transactionally. Dry runs, outdated checks, audit, update, and uninstall now report or preserve external-source mappings and ownership. luna sources rm <name>is the canonical, concise configuration-removal command, withremoveretained as a compatibility alias; it now refuses to remove a source still used by an installed pack or its external content, and otherwise clears source configuration and bound project trust while retaining installed pack state, provenance, and managed files.luna sources add gitandluna sources add githubresolve a supplied short branch or tag name to its complete ref throughgit ls-remote, reject an ambiguous short name, and reject a repository that canonicalizes to an already-configured source under a different name, URL form, or casing.luna sources add githubnow requires--ref.luna sources rename <current-id> <new-id>renames a configured source and atomically updates its bound trust and lock-file references.- Running
lunawithout a subcommand displays command help, summarizes workspace maturity, and recommends the next setup, catalog, or lifecycle commands. - Successful core commands and recoverable missing-prerequisite or pack lookup failures now include up to three contextual command recommendations.
luna --suppress-next-stepssuppresses contextual next-step recommendations for any command.- Successful actions, guidance, and lifecycle instructions now use semantic terminal styling. Catalog and pack lifecycle summaries include duration, and install and update success output includes selected versions.
- Pack parameters support typed defaults. Required prompts offer the default for Enter acceptance; optional parameters bind it when no higher-precedence value exists.
Lifecycle Hooks
- Breaking: Pack manifests replace the top-level
scriptsmap with ordered event arrays underhooks. Every declaration requirestype: scriptortype: instruction; legacyscriptsmanifests are rejected. - Lifecycle events can interleave multiple scripts and Markdown instructions in declaration order. Script trust remains executable-only, while instructions display one H2/H3 step at a time interactively or print completely in noninteractive sessions.
luna installand everyluna updateform accept--skip-instructionsindependently of--scripts. Dry runs validate instructions and report their file, templating state, and step count without guided display.- Declining an untrusted lifecycle hook now warns and skips the hook instead of failing the pack operation.
- Windows lifecycle commands such as
npmnow resolve throughPATHEXT, avoiding invalid extensionless command shims. - Interactive lifecycle hooks now inherit terminal input and output, allowing
commands such as
npm initto display and handle their prompts. - Untrusted script consent now shows a concise command summary and defaults to no.
- Packs can declare ordered
preUninstallandpostUninstallhooks. Uninstall retrieves them from exact installed releases and warns but continues when the source is unavailable. - Install, update, and uninstall checkpoint managed ownership before post hooks, preventing hard interruption from leaving applied files under stale lock state. Handled post-hook failures still restore prior files and state. Instructions display automatically with a preface, omit H1 titles, and format headings, emphasis, code, and links.
Version 1.0.0 - 2026-08-25
LunaPack 1.0.0 is the first public release for managing reusable, versioned engineering packs in a consumer workspace.
CLI And Catalog
luna initcreates version-1lunapack.ymlandlunapack-lock.ymlfiles.luna sources add local,luna sources add git, andluna sources listconfigure and inspect local or Git pack catalogs. Git sources support a ref and a repository-relative pack path.luna discoverandluna searchshow the latest release by default in separate Pack and Version columns. Both accept--versions(-v) from one through 10 to display recent distinct releases per pack.luna validate <id>[@<version>]reports manifest and selected-source-file issues.luna inspect <id>[@<version>]shows selected pack metadata, parameters, and references. Discovery and search isolate invalid candidates in otherwise usable sources.luna variables list,set <name> <value>, andrm <name>manage project variables.luna remap list,set, andrmmanage target remapping.- Every command supports
--workspace; command options provide documented shorthand aliases and completion. --log-level(-ll) selects lower-case Spectre.Console output levels. Diagnostics use distinct prefixes, long operations show progress, and interactive decisions use console prompts.
Pack Lifecycle
luna installresolves latest or exact pack releases. It supports multiple ordered references, dry runs, project-relative destinations, parameters, variables, conditions, templates, matching-file adoption, and composite dependencies.- Install warns and skips already-installed roots while continuing remaining references. Missing explicit versions suggest the latest available version.
luna outdatedidentifies roots with available updates.luna updateupdates one root or all roots, supports dry runs, and can prompt for roots during an all-pack update.luna uninstallconservatively removes unchanged, unshared managed content. Missing targets warn without blocking ownership cleanup; line and JSON merge targets remain in place.luna mvrelocates one uniquely owned managed file and can rebind ownership after a matching manual move.luna auditreports resolved packs, source provenance, dependencies, and managed-file ownership.- Pack manifests can declare
preInstall,postInstall,preUpdate, andpostUpdatehooks. Install and update accept--scripts prompt|run|skip; prompt mode requires source-specific trust or interactive consent, while run mode explicitly authorizes hooks for that invocation. - Lifecycle script arguments are strict Scriban templates over resolved pack parameters. Luna renders each argument before dry-run output, authorization, and execution while preserving one manifest item as one process argument.
- Lifecycle writes and Luna-managed project state are transactional. SHA-256 ownership checks protect consumer edits and immutable operation snapshots protect approved script inputs.
Pack Authoring And Formats
- Version-1 schemas define project configuration, complete resolved lock state, and pack manifests. Paths accept either separator at input boundaries and persist with forward slashes.
- Lock files record exact dependency graphs, configured source identities, immutable source provenance, declared and effective targets, parameters, strategies, and installed-content digests.
- Packs support exact-version dependencies, composites, referenced-parameter bindings, source files, directories, globs, conditions, UTF-8 Scriban templates, and string, Boolean, or enum parameters.
- Managed files support copy, line merge, section merge, and JSON merge strategies. Shared targets require compatible merge strategies.
- Pack manifests require non-empty license and author attribution, accept up to
15 searchable tags, and require
template: truebefore Scriban rendering.
Distribution
- Luna ships self-contained Native AOT archives for Windows x64, Linux x64,
Linux Arm64, macOS x64, and macOS Arm64; the
@lunarisdigitalsolutions/lunapacknpm launcher with matching platform packages; theLunaris.Lunapack.Luna.NET tool package; and a Linux x64 OCI image. - Distribution packages expose the
lunaexecutable. Archive checksums and package provenance support artifact verification.