@stardeck-customer-apps/compose 0.14.1 → 0.16.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.
package/SKILL.md CHANGED
@@ -38,6 +38,7 @@ Compose turns that declaration into the code Next.js actually builds:
38
38
  ```bash
39
39
  npx stardeck-compose [--enabled=a,b,c] [--prune] [--cwd=<repo root>]
40
40
  npx stardeck-compose --check-boundaries [--cwd=<repo root>]
41
+ npx stardeck-compose --check-ownership [--cwd=<repo root>]
41
42
  ```
42
43
 
43
44
  Run it from the repo root (the directory holding `apps/web`). The Blueprint
@@ -110,6 +111,21 @@ a silent fallback. It holds deployment facts: gitignore it (`apps/web/.gitignore
110
111
  listing the offending files. Library Modules are always composed and never
111
112
  count. Run it in Blueprint CI so such an import is caught before a customer
112
113
  prunes.
114
+ - `--check-ownership` — lint and pre-push; composes nothing. Exits 1 when the
115
+ checkout changed a Stardeck-owned file (a file in a Stardeck Module's folder
116
+ or in `apps/web/src/lib/modules/`, except `app-extensions.ts`). It compares
117
+ with Stardeck's newest version in the repo's history and counts staged,
118
+ unstaged, committed and new files, so it catches an edit before it is pushed.
119
+ `stardeck.ownership.json` at the repo root, written by Stardeck from the
120
+ Modules tab, says which Modules the app has taken over: the screens of a
121
+ customized Module (`components/`, `routes/`) and the whole folder of a Module
122
+ whose updates were stopped are the app's. Without that file every Stardeck
123
+ Module counts as Stardeck's. A failure lists the files and what to do
124
+ instead. Never edit `stardeck.ownership.json`: the editing tools refuse it,
125
+ and the pull-request check flags it. The check skips a repo with no Stardeck
126
+ version in its history (or one nested in a larger repo), and warns instead
127
+ of checking in a shallow clone (`git fetch --unshallow` fixes that). Needs
128
+ compose 0.15.0 or later.
113
129
 
114
130
  ## Rules
115
131