@se-studio/skills 1.7.2 → 1.7.4
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @se-studio/skills
|
|
2
2
|
|
|
3
|
+
## 1.7.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- All marketing sites are on Next 16.3: drop the PointMe 15.5 deps exception, require `supportedArchitectures` in new-project bootstrap, and point agents at version-matched `nextjs-agent-rules` instead of the Next 15 `agents-md` docs dump.
|
|
8
|
+
|
|
9
|
+
## 1.7.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Document `supportedArchitectures` so macOS lockfiles include linux-x64/glibc optional natives for hoisted frozen cms-edit installs.
|
|
14
|
+
|
|
3
15
|
## 1.7.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## Next.js docs (version-matched)
|
|
2
|
+
|
|
3
|
+
This site runs **Next.js 16.3**. Before writing Next.js code, read the relevant guide in `node_modules/next/dist/docs/` (in monorepos, resolve from the app that depends on `next`). Keep the managed `<!-- BEGIN:nextjs-agent-rules -->` block in `AGENTS.md`. Do **not** use `npx @next/codemod agents-md`, `.next-docs`, or `NEXT-AGENTS-MD-START` (Next 15 index: Pages Router, `middleware.ts`). Ignore `vercel-react-native-skills` if the vercel-labs pack installed it.
|
|
4
|
+
|
|
1
5
|
## Agent session workflow
|
|
2
6
|
|
|
3
7
|
**Load skill `site-workflows-agent-session` at the start of every coding session.**
|
|
@@ -30,6 +30,17 @@ See [`validate-workflow-snippet.yml`](validate-workflow-snippet.yml). Customer m
|
|
|
30
30
|
| Marketing app (monorepo root install) | `cd ../.. && pnpm install --frozen-lockfile` |
|
|
31
31
|
| cms-edit host | `cd ../.. && pnpm install --frozen-lockfile --config.node-linker=hoisted` |
|
|
32
32
|
|
|
33
|
+
## Linux optional natives (`supportedArchitectures`)
|
|
34
|
+
|
|
35
|
+
cms-edit Vercel and `check-lockfile-sync.sh` (full) run `pnpm install --frozen-lockfile --config.node-linker=hoisted`. That path requires lockfile snapshots for **linux-x64/glibc** optional binaries even when you generate the lockfile on macOS.
|
|
36
|
+
|
|
37
|
+
Every consumer `pnpm-workspace.yaml` must include `supportedArchitectures` (current + linux, current + x64, current + glibc). Canonical copy: skill `site-workflows-deps-update` Step 3. After adding it, run `pnpm install` (not frozen) so the lockfile gains those snapshots, then verify:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pnpm install --frozen-lockfile --config.node-linker=hoisted
|
|
41
|
+
pnpm install # restore isolated linker for local workspace packages
|
|
42
|
+
```
|
|
43
|
+
|
|
33
44
|
## After dependency changes
|
|
34
45
|
|
|
35
46
|
```bash
|
|
@@ -43,13 +54,13 @@ Use `pnpm install --no-frozen-lockfile` only when intentionally repairing the lo
|
|
|
43
54
|
|
|
44
55
|
Apply the full stack when touching deps or CI in each repo:
|
|
45
56
|
|
|
46
|
-
| Repo | Pre-commit | CI
|
|
47
|
-
|
|
48
|
-
| brightline-sites | yes | yes | yes | yes |
|
|
49
|
-
| pedestal-sites |
|
|
50
|
-
| om1-website |
|
|
51
|
-
| se-website-2026 | yes | yes | yes | yes |
|
|
52
|
-
| pointme |
|
|
53
|
-
| hsd (`develop-hsd-website`; prod human-only: `production-hsd-website`) | yes |
|
|
57
|
+
| Repo | Pre-commit | CI integration branch | CI hoisted | Vercel frozen (marketing) | Vercel cms-edit hoisted |
|
|
58
|
+
|------|------------|----------------------|------------|---------------------------|-------------------------|
|
|
59
|
+
| brightline-sites | yes | develop | yes | yes | yes |
|
|
60
|
+
| pedestal-sites | yes | develop | yes | yes | yes |
|
|
61
|
+
| om1-website | yes | develop | yes | yes | yes |
|
|
62
|
+
| se-website-2026 | yes | develop | yes | yes | yes |
|
|
63
|
+
| pointme | yes | develop | yes | yes | yes |
|
|
64
|
+
| hsd (`develop-hsd-website`; prod human-only: `production-hsd-website`) | yes | develop (+ `extended-port`) | yes | yes | yes |
|
|
54
65
|
|
|
55
|
-
Update this table as repos adopt the pattern.
|
|
66
|
+
Update this table as repos adopt the pattern. Every cms-edit host `pnpm-workspace.yaml` must include `supportedArchitectures` (current + linux, x64, glibc).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: site-workflows-deps-update
|
|
3
|
-
description: "Update npm dependencies to latest across se-core-product and consumer SE Studio sites, one repo at a time. Pins Next.js 16.3 and Node 24, updates pnpm to latest 11.x, enforces no pnpm patches everywhere. Validates, commits, and pushes to dev/develop.
|
|
3
|
+
description: "Update npm dependencies to latest across se-core-product and consumer SE Studio sites, one repo at a time. Pins Next.js 16.3 and Node 24, updates pnpm to latest 11.x, enforces no pnpm patches everywhere. Validates, commits, and pushes to dev/develop. Use when asked to update outdated packages or bump dependencies."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# SE dependency update (one project at a time)
|
|
@@ -11,7 +11,7 @@ Update npm dependencies to **latest** in se-core-product and consumer repos that
|
|
|
11
11
|
|
|
12
12
|
**Default:** Process **one repo per invocation**. At the end, summarize changes and offer the next project.
|
|
13
13
|
|
|
14
|
-
**Never:** push to `main`/`master`/`production` or any production branch; promote from production checkouts (e.g. HSD `production-hsd-website`); bump Next to 17; bump Node to 25+; use `pnpm patch` / `patchedDependencies` / `patches/`; bypass or remove `minimumReleaseAge`; **hand-edit `package.json` dependency versions** (use `pnpm update` instead). Production promotion is **human-only** for all customer sites.
|
|
14
|
+
**Never:** push to `main`/`master`/`production` or any production branch; promote from production checkouts (e.g. HSD `production-hsd-website`); bump Next to 17; bump Node to 25+; use `pnpm patch` / `patchedDependencies` / `patches/`; bypass or remove `minimumReleaseAge`; **hand-edit `package.json` dependency versions** (use `pnpm update` instead). Production promotion is **human-only** for all customer sites. All marketing sites pin `overrides.next` to `^16.3.x`.
|
|
15
15
|
|
|
16
16
|
---
|
|
17
17
|
|
|
@@ -105,15 +105,42 @@ overrides:
|
|
|
105
105
|
'@types/node': ^24.13.2
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
+
Every repo that runs **hoisted frozen install** (cms-edit host on Vercel, `check-lockfile-sync.sh` hoisted job) **must** also record Linux optional natives in the lockfile. Generate the lockfile on macOS with:
|
|
109
|
+
|
|
110
|
+
```yaml
|
|
111
|
+
# Record linux-x64/glibc optional natives (cms-edit Vercel + hoisted frozen install).
|
|
112
|
+
supportedArchitectures:
|
|
113
|
+
os:
|
|
114
|
+
- current
|
|
115
|
+
- linux
|
|
116
|
+
cpu:
|
|
117
|
+
- current
|
|
118
|
+
- x64
|
|
119
|
+
libc:
|
|
120
|
+
- current
|
|
121
|
+
- glibc
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Without this, isolated `pnpm install` on darwin can omit snapshots such as `@rollup/rollup-linux-x64-gnu`. Hoisted `--frozen-lockfile` then fails even though default-linker install succeeded. Vitest/Rollup sites (Brightline) hit this first; Sharp and other optional natives fail the same way on Vercel linux.
|
|
125
|
+
|
|
108
126
|
- **`minimumReleaseAge: 1440`** — do not install packages published in the last 24 hours (supply-chain guard).
|
|
109
127
|
- **`@se-studio/*` exclude** — our own packages may update immediately after npm publish.
|
|
110
128
|
- **Keep repo-specific additional excludes** when present (e.g. vitest pins in se-core-product, `@emnapi/runtime` in se-website-2026, PointMe `mapbox-gl` / `react-day-picker` overrides).
|
|
111
|
-
- **PointMe
|
|
129
|
+
- **PointMe:** keep extra overrides (`mapbox-gl`, `react-day-picker`, `caniuse-lite`) — still pin `next: ^16.3.x` like every other site.
|
|
112
130
|
|
|
113
131
|
`pnpm update -r --latest` would bump `next` past the supported 16.3 line and `@types/node` → 26 without the overrides block. The overrides prevent that.
|
|
114
132
|
|
|
115
133
|
**Never bypass `minimumReleaseAge`** during dependency updates. Do not remove the block, comment it out, or use undocumented pnpm flags. If a non-`@se-studio` package was published within 24 hours, it stays at the current version until it ages out — note that in the report and re-run later if needed.
|
|
116
134
|
|
|
135
|
+
### Next.js 16 agent docs (do not use the Next 15 dump)
|
|
136
|
+
|
|
137
|
+
Marketing sites run **Next.js 16.3**. Version-matched docs live in each app’s `node_modules/next/dist/docs/` (the `next` package may not be visible from a monorepo root).
|
|
138
|
+
|
|
139
|
+
- **Keep** the managed `<!-- BEGIN:nextjs-agent-rules -->` block that `next dev` writes in `AGENTS.md`.
|
|
140
|
+
- **Do not** run `npx @next/codemod agents-md` or restore `NEXT-AGENTS-MD-START` / `.next-docs` — that index is Next 15 (Pages Router, `middleware.ts`, upgrade guides only through v15).
|
|
141
|
+
- Cursor’s Vercel plugin **`nextjs`** skill is fine for App Router patterns; it is not a substitute for `node_modules/next/dist/docs/`.
|
|
142
|
+
- After `npx skills add vercel-labs/agent-skills`, **delete `vercel-react-native-skills`** — these are web sites. Do not treat React Native skills as Next guidance.
|
|
143
|
+
|
|
117
144
|
---
|
|
118
145
|
|
|
119
146
|
## Step 4 — Update pnpm (all repos)
|
|
@@ -218,7 +245,7 @@ Include in the summary:
|
|
|
218
245
|
|
|
219
246
|
- Major dependency bumps (from the Step 1 audit diff)
|
|
220
247
|
- pnpm version: before → after
|
|
221
|
-
- Confirmed pins: Next 16.3.x
|
|
248
|
+
- Confirmed pins: Next 16.3.x, Node 24, `@types/node` ^24
|
|
222
249
|
- Confirmed `minimumReleaseAge: 1440` and `@se-studio/*` exclude present
|
|
223
250
|
- Packages still outdated because they are inside the 24-hour release window (if any)
|
|
224
251
|
- Patches check bootstrapped (yes/no)
|
|
@@ -256,6 +283,7 @@ See [`references/lockfile-sync/README.md`](../../references/lockfile-sync/README
|
|
|
256
283
|
| Issue | Action |
|
|
257
284
|
|-------|--------|
|
|
258
285
|
| `ERR_PNPM_OUTDATED_LOCKFILE` on frozen/hoisted install | `package.json` and `pnpm-workspace.yaml` overrides out of sync with lockfile — re-run `pnpm update` for the package and align `overrides` |
|
|
286
|
+
| `ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY` (`rollup-linux-*`, Sharp, etc.) on hoisted frozen install | Missing `supportedArchitectures` (current + linux, x64, glibc) — add the Step 3 block, run `pnpm install`, then re-verify hoisted |
|
|
259
287
|
| `next` or `@types/node` still outdated to wrong major | Re-run overrides + safety re-pin; check `pnpm-workspace.yaml` overrides |
|
|
260
288
|
| Non-`@se-studio` package still outdated after update | Likely within 24h of npm publish — wait and re-run; **do not** bypass `minimumReleaseAge` |
|
|
261
289
|
| `corepack use` fails | Run `corepack enable` once, retry |
|
|
@@ -40,6 +40,36 @@ After cleanup, `pnpm validate` must pass before continuing.
|
|
|
40
40
|
|
|
41
41
|
---
|
|
42
42
|
|
|
43
|
+
## Step 2b — Workspace install policy (`pnpm-workspace.yaml`)
|
|
44
|
+
|
|
45
|
+
Merge these into the existing file (do not wipe `packages`, `allowBuilds`, or other keys). Canonical copy: skill `site-workflows-deps-update` Step 3.
|
|
46
|
+
|
|
47
|
+
```yaml
|
|
48
|
+
# Record linux-x64/glibc optional natives (cms-edit Vercel + hoisted frozen install).
|
|
49
|
+
supportedArchitectures:
|
|
50
|
+
os:
|
|
51
|
+
- current
|
|
52
|
+
- linux
|
|
53
|
+
cpu:
|
|
54
|
+
- current
|
|
55
|
+
- x64
|
|
56
|
+
libc:
|
|
57
|
+
- current
|
|
58
|
+
- glibc
|
|
59
|
+
|
|
60
|
+
minimumReleaseAge: 1440
|
|
61
|
+
minimumReleaseAgeExclude:
|
|
62
|
+
- '@se-studio/*'
|
|
63
|
+
|
|
64
|
+
overrides:
|
|
65
|
+
next: ^16.3.1
|
|
66
|
+
'@types/node': ^24.13.2
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Then `pnpm install` (not frozen) so the lockfile records linux optional snapshots. Confirm `AGENTS.md` uses `nextjs-agent-rules` (Next 16 `node_modules/next/dist/docs/`), not `NEXT-AGENTS-MD-START` / `.next-docs`.
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
43
73
|
## Step 3 — Update project identity in `src/lib/constants.ts`
|
|
44
74
|
|
|
45
75
|
Read `src/lib/constants.ts` and update:
|
|
@@ -84,6 +114,8 @@ This version has breaking changes — APIs, conventions, and file structure may
|
|
|
84
114
|
|
|
85
115
|
This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.
|
|
86
116
|
|
|
117
|
+
Do **not** replace this with `npx @next/codemod agents-md` (Next 15 `.next-docs` index).
|
|
118
|
+
|
|
87
119
|
<!-- END:nextjs-agent-rules -->
|
|
88
120
|
|
|
89
121
|
<!-- BEGIN:se-studio-package-rules -->
|