@lunarisdigitalsolutions/lunapack 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +151 -0
  2. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -7,6 +7,157 @@ pack-package, documentation, CI, build, test, and release-process changes.
7
7
 
8
8
  Update this section before creating a release tag.
9
9
 
10
+ ## Version 1.7.0 - 2026-11-21
11
+
12
+ ### Resource Limits
13
+
14
+ - Luna now applies finite, configurable ceilings to project and pack manifests,
15
+ lock files, pack documents, snapshots, selected files, dependency graphs,
16
+ rendered content, Git output, and OCI downloads and archives. `luna config`
17
+ manages scoped limits; project settings can only lower built-in defaults,
18
+ and cannot raise a stricter user-project or global setting. Global-user and
19
+ user-project settings can raise effective limits within finite hard ceilings.
20
+ Over-limit inputs fail before parsing or project mutation with observed
21
+ values and units in the diagnostic. The same effective limits protect OCI
22
+ pack publication.
23
+
24
+ ### Git Sources
25
+
26
+ - Git operations now reject `http://` and `git://` sources by default. The
27
+ scope-wide `git.allow-insecure-transport` preference provides a warned
28
+ opt-in; opted-in HTTP operations skip Git credential helpers. Secure HTTPS
29
+ operations require certificate verification and a direct final URL because
30
+ redirects are disabled. Git URLs containing queries or fragments and
31
+ checkout smudge filters are rejected; option-like repository locations are
32
+ rejected before Git runs.
33
+
34
+ ### Lifecycle Hooks
35
+
36
+ - Authorized scripts now warn with names of inherited environment variables
37
+ outside the effective allow-list. Warnings do not filter the child
38
+ environment. Each script hook now has a 300-second default timeout, with
39
+ optional project and user policy from 1 through 1,800 seconds; the shortest
40
+ configured timeout applies. Timeouts terminate the process tree and fail the
41
+ lifecycle operation, separately from caller cancellation.
42
+
43
+ ### Added
44
+
45
+ - `luna audit --strict` now verifies every pack- and link-managed target against
46
+ its locked SHA-256 digest. It returns `2` for missing or modified targets,
47
+ while invalid usage or unreadable state returns `1`; `--fail-fast` stops after
48
+ the first integrity violation. Strict reads remain inside the selected
49
+ workspace and reject symbolic-link or reparse-point paths. Strict audit uses
50
+ text output; combining `--strict` with `--format json` returns exit code `1`
51
+ with a JSON failure envelope.
52
+ - `luna doctor` reports project-relevant Git, credential-store, state, and
53
+ profile/cache problems with remediation. Its default checks are offline;
54
+ `--network` enables bounded, noninteractive checks for configured Git and OCI
55
+ sources.
56
+ - Install, update, local pack validation, and OCI publication now screen
57
+ pack-managed UTF-8 text for hidden Unicode. Bidi controls and U+200B block
58
+ before side effects unless `--allow-hidden-characters` is supplied; other
59
+ Unicode format characters remain warnings. `luna audit` reports installed
60
+ findings without changing state or success behavior. BOM-tagged UTF-16 and
61
+ UTF-32 content is decoded, and recoverable controls in NUL-containing or
62
+ invalid UTF-8 payloads remain enforceable without rejecting opaque bytes
63
+ alone. Managed paths reject terminal-control and hidden-format characters.
64
+ Diagnostic retention is bounded to 1,000 findings per payload with an
65
+ omission summary.
66
+ - `luna audit`, `luna outdated`, and `luna validate <pack-reference>` accept
67
+ `--format json` for versioned machine-readable results. JSON stays on
68
+ standard output while human-readable diagnostics use standard error; audit
69
+ results include stable finding codes and severity counts.
70
+ - `luna sbom` exports lock-derived dependency inventories as CycloneDX 1.6/1.7
71
+ or SPDX 2.3/3.0.1 JSON, with optional safe project-relative file output.
72
+ - Luna records bounded per-user lifecycle script attempt history and adds
73
+ `luna hooks history` for read-only inspection of recent commands, authorization
74
+ sources, durations, and outcomes. History persistence failures warn without
75
+ changing script results or rollback behavior.
76
+
77
+ ### Fixed
78
+
79
+ - Lifecycle scripts now complete reliably on macOS by tracking hook descendants
80
+ through process relationships instead of a platform-native process queue.
81
+ - `luna doctor` now removes temporary writability probes explicitly after the
82
+ probe handle closes on macOS and other Unix hosts, while allowing platform
83
+ temp-directory aliases without weakening reparse-point checks.
84
+ - Lifecycle consent always displays the pack ID, resolved command and arguments,
85
+ and optional description even when informational output is suppressed.
86
+ - Canceling noninteractive lifecycle hooks no longer waits for detached
87
+ descendants that retain output handles. Unread output may be discarded.
88
+ - Pack and link updates now preserve locally modified managed targets removed
89
+ from their next selection and warn that the files are no longer managed.
90
+ Pack updates support explicit deletion with `--remove-modified`.
91
+ - Git links now fetch selected files missing from cached content using the
92
+ resolved commit.
93
+ - Luna resolves Git from trusted absolute `PATH` entries instead of a
94
+ same-directory executable, and rejects credential-bearing HTTP Git URLs.
95
+
96
+ ## Version 1.6.0 - 2026-11-17
97
+
98
+ ### Catalog Eligibility and Preferences
99
+
100
+ - Pack manifests can set `directInstallable: false` for dependency-only
101
+ releases. Discover and search show directly installable raw and composite
102
+ packs by default, with `--only-composites` available for composite-only
103
+ results; install, update, and outdated selection exclude dependency-only
104
+ roots while preserving composite dependency resolution, validation, and
105
+ inspection. `luna config set|list|remove` manages scoped preferences for
106
+ catalog filtering and next-step guidance. Use `--project` to store values in
107
+ `lunapack.yml` (`--local` remains an alias), `--user-project` for
108
+ project-specific user settings, or `--global` for user-wide settings.
109
+
110
+ ### OCI Registry Sources And Publishing
111
+
112
+ - `luna sources add oci` registers normalized HTTPS OCI registry sources without
113
+ contacting the registry. `luna sources ignore` and `unignore` manage
114
+ per-project, per-user source state; source listings show local ignore status.
115
+ Ignore updates leave `config.yml` unchanged for compatibility with older CLI
116
+ readers.
117
+ - `luna init` now adds `/.lunapack/` to the project-root `.gitignore` while
118
+ preserving existing content.
119
+ - OCI registry releases now participate in discovery, direct resolution,
120
+ validation, inspection, installation, and updates. Lock files retain the
121
+ registry, repository, version tag, and verified manifest/content digests.
122
+ - `luna publish <folder> --target <source>` publishes a validated pack as an
123
+ OCI artifact, rejects existing version tags, and reports the verified
124
+ manifest digest without running pack hooks or changing project state.
125
+ - Registry authentication now supports anonymous access, source-bound
126
+ operating-system credential storage, interactive challenge prompts, and
127
+ optional Azure `DefaultAzureCredential` for ACR. Luna does not provide
128
+ registry credentials through LunaPack-specific environment variables.
129
+ Unavailable sources produce partial-result diagnostics instead of
130
+ success-shaped empty catalogs.
131
+
132
+ ### Composite Packs
133
+
134
+ - Composite references can define file and directory remaps for their active
135
+ dependency subtree. Consumer mappings retain precedence, and conflicting
136
+ equal-depth composite mappings stop planning.
137
+ - Composite reference parameters now accept exact `${{ expression }}` bindings
138
+ for typed parameter pass-through and `iif(condition, whenTrue, whenFalse)`
139
+ selection. Invalid references, cycles, and target-type mismatches stop before
140
+ project changes.
141
+
142
+ ### Conditional Packs
143
+
144
+ - Lock files now persist only active conditional composite references, preventing
145
+ inactive dependencies from invalidating later project state validation.
146
+
147
+ ### Lifecycle Hooks
148
+
149
+ - Hook conditions now support `scriptsSkipped()` and
150
+ `previousScriptState()` for fallback instructions based on global script
151
+ suppression or the nearest earlier script in the same pack and event.
152
+
153
+ ### Fixed
154
+
155
+ - Pack installation no longer rejects equivalent Git repository URLs solely
156
+ because one has a trailing slash or `.git` suffix. Genuine source identity
157
+ mismatches still fail with pack- and source-specific diagnostics.
158
+ - Project-state save failures now identify the affected state file and report
159
+ its validation issues instead of returning a generic schema error.
160
+
10
161
  ## Version 1.5.0 - 2026-09-02
11
162
 
12
163
  ### Conditional Packs
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@lunarisdigitalsolutions/lunapack",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "description": "Luna CLI.",
5
5
  "bin": {
6
6
  "luna": "run-luna.mjs"
7
7
  },
8
8
  "optionalDependencies": {
9
- "@lunarisdigitalsolutions/lunapack-win64": "1.5.0",
10
- "@lunarisdigitalsolutions/lunapack-linux-x64": "1.5.0",
11
- "@lunarisdigitalsolutions/lunapack-linux-arm64": "1.5.0",
12
- "@lunarisdigitalsolutions/lunapack-macos-x64": "1.5.0",
13
- "@lunarisdigitalsolutions/lunapack-macos-arm64": "1.5.0"
9
+ "@lunarisdigitalsolutions/lunapack-win64": "1.7.0",
10
+ "@lunarisdigitalsolutions/lunapack-linux-x64": "1.7.0",
11
+ "@lunarisdigitalsolutions/lunapack-linux-arm64": "1.7.0",
12
+ "@lunarisdigitalsolutions/lunapack-macos-x64": "1.7.0",
13
+ "@lunarisdigitalsolutions/lunapack-macos-arm64": "1.7.0"
14
14
  },
15
15
  "files": [
16
16
  "run-luna.mjs",