Skip to main content

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, and luna cache prune --days <N> now report and safely remove Luna-owned Git caches and abandoned temporary workspaces. Cleanup is confirmed by default, supports --yes for 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, and luna init no longer creates or modifies .gitignore for generated state.

Update this section before creating a release tag.

Project Policy​

  • lunapack.yml can 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 run or persisted trust. luna audit --strict evaluates current policy against locked provenance without network access; unwaived blocking findings return integrity exit code 2.

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 config manages 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:// and git:// sources by default. The scope-wide git.allow-insecure-transport preference 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 --strict now verifies every pack- and link-managed target against its locked SHA-256 digest. It returns 2 for missing or modified targets, while invalid usage or unreadable state returns 1; --fail-fast stops 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 --strict with --format json returns exit code 1 with a JSON failure envelope.
  • luna doctor reports project-relevant Git, credential-store, state, and profile/cache problems with remediation. Its default checks are offline; --network enables 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-characters is supplied; other Unicode format characters remain warnings. luna audit reports 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, and luna validate <pack-reference> accept --format json for 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 sbom exports 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 history for 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 doctor now 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 PATH entries 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: false for dependency-only releases. Discover and search show directly installable raw and composite packs by default, with --only-composites available 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|remove manages scoped preferences for catalog filtering and next-step guidance. Use --project to store values in lunapack.yml (--local remains an alias), --user-project for project-specific user settings, or --global for user-wide settings.

OCI Registry Sources And Publishing​

  • luna sources add oci registers normalized HTTPS OCI registry sources without contacting the registry. luna sources ignore and unignore manage per-project, per-user source state; source listings show local ignore status. Ignore updates leave config.yml unchanged for compatibility with older CLI readers.
  • luna init now adds /.lunapack/ to the project-root .gitignore while 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 DefaultAzureCredential for 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 and iif(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() and previousScriptState() 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 .git suffix. 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-parameters on a real install or update to answer all optional parameters with their declared defaults offered.

  • Parameters now support mutually exclusive requiredWhen expressions 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-parameters for 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 --help output.
  • Git source discovery and search no longer crash when a pack declares a multi-value parameter default.
  • luna validate now 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, and luna pack add hook accepts --condition or -c.

Version 1.3.0 - 2026-08-31​

Completions​

  • luna completions script now generates native Bash, Fish, Nushell, PowerShell, and Zsh Tab-completion registration without an external tool. Pass --install to 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_HOME when configured and the native macOS application data directory by default.

Changed​

  • luna install --save-remap now stores mappings on the installed pack's lunapack.yml entry. 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-output to 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 run and retained source or pack grants, reports every denying scope before lifecycle work, and appears as policy-denied in dry runs. Trust commands can list, set, and confirm reset of denial without deleting grants.
  • luna init and luna pack init now generate minimal schema-valid YAML with only required properties and values.
  • luna mv now moves managed directories as atomic batches while preserving descendant paths. --save-remap records file or directory moves as reusable project mappings for future installs.
  • luna install --save-remap now persists command-line file and directory remappings after a successful pack or link installation.
  • Managed-target remappings now accept @ignore to 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: true and 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 support features contains "docker". Invalid, duplicate, or incompatible selections fail before project mutation.

Pack Templates​

  • Managed-file Scriban templates can use files.path to resolve a declared managed target after consumer remapping and files.relative_path to 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 1.1.0 adds project-owned links that select exact files, directories, and globs from configured local or Git sources without requiring pack.yml.
  • luna search <query> now includes matching configured links with their source, target, and installation status.
  • luna links add, list, show, and rm manage 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-directory and --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.0 or later; version-1 files without links remain compatible.

Pack Authoring​

  • New luna pack commands initialize, inspect, validate, and incrementally maintain managed content, composite references, ordered lifecycle hooks, parameters, tags, and metadata in local pack.yml.
  • luna pack add hook, luna pack hooks, and positioned luna pack rm hook replace 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 init accepts --author and --license, prompting for missing values interactively. Discovery and search exclude manifests missing either attribution value.
  • Pack manifests support optional non-empty name and absolute HTTP or HTTPS homepage metadata.

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, with remove retained 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 git and luna sources add github resolve a supplied short branch or tag name to its complete ref through git 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 github now requires --ref.
  • luna sources rename <current-id> <new-id> renames a configured source and atomically updates its bound trust and lock-file references.
  • Running luna without 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-steps suppresses 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 scripts map with ordered event arrays under hooks. Every declaration requires type: script or type: instruction; legacy scripts manifests 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 install and every luna update form accept --skip-instructions independently 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 npm now resolve through PATHEXT, avoiding invalid extensionless command shims.
  • Interactive lifecycle hooks now inherit terminal input and output, allowing commands such as npm init to display and handle their prompts.
  • Untrusted script consent now shows a concise command summary and defaults to no.
  • Packs can declare ordered preUninstall and postUninstall hooks. 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 init creates version-1 lunapack.yml and lunapack-lock.yml files.
  • luna sources add local, luna sources add git, and luna sources list configure and inspect local or Git pack catalogs. Git sources support a ref and a repository-relative pack path.
  • luna discover and luna search show 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>, and rm <name> manage project variables. luna remap list, set, and rm manage 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 install resolves 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 outdated identifies roots with available updates. luna update updates one root or all roots, supports dry runs, and can prompt for roots during an all-pack update.
  • luna uninstall conservatively removes unchanged, unshared managed content. Missing targets warn without blocking ownership cleanup; line and JSON merge targets remain in place.
  • luna mv relocates one uniquely owned managed file and can rebind ownership after a matching manual move. luna audit reports resolved packs, source provenance, dependencies, and managed-file ownership.
  • Pack manifests can declare preInstall, postInstall, preUpdate, and postUpdate hooks. 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: true before Scriban rendering.

Distribution​

  • Luna ships self-contained Native AOT archives for Windows x64, Linux x64, Linux Arm64, macOS x64, and macOS Arm64; the @lunarisdigitalsolutions/lunapack npm launcher with matching platform packages; the Lunaris.Lunapack.Luna .NET tool package; and a Linux x64 OCI image.
  • Distribution packages expose the luna executable. Archive checksums and package provenance support artifact verification.