@se-studio/skills 1.6.9 → 1.6.10

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,11 @@
1
1
  # @se-studio/skills
2
2
 
3
+ ## 1.6.10
4
+
5
+ ### Patch Changes
6
+
7
+ - 41cfadb: Allow agents to merge customer production only for cms-edit-only diffs (host package / editor-pack), one site at a time with a live health check.
8
+
3
9
  ## 1.6.9
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@se-studio/skills",
3
- "version": "1.6.9",
3
+ "version": "1.6.10",
4
4
  "description": "SE Studio agent skills for marketing site development with Contentful CMS",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,35 @@
1
+ # cms-edit-only production merge
2
+
3
+ The **only** agent exception to “no production git”. Marketing site source, core `main`, and Vercel CLI deploys stay human-only.
4
+
5
+ ## When it applies
6
+
7
+ All of the following must be true:
8
+
9
+ 1. The user asked to ship **hosted cms-edit** (host package bump, editor-pack-only, or continue a cms-edit host rollout).
10
+ 2. Any required `@se-studio/contentful-cms` version is **already on npm**.
11
+ 3. The merge is **customer** `develop` → that site’s production branch (`main`, HSD **`production`**). Never `se-core-product` `main`.
12
+ 4. `git diff --name-only origin/<productionBranch>...origin/develop` is **only**:
13
+ - `cms-edit/**`
14
+ - root `package.json` and/or `pnpm-lock.yaml` (and `pnpm-workspace.yaml` only if it already listed the package)
15
+ 5. Those package/lock changes are **only** `@se-studio/contentful-cms` (plus lockfile transitives). No `src/`, `apps/` marketing, smoke, server-config, or other dependency bumps.
16
+ 6. Merge **one customer repo at a time**. Wait for that repo’s cms-edit Vercel **production** deployment **Ready**. Then check live `https://<host>/api/health`: `ok`, `cmsEdit.version` matches npm, `redis` and `oauth` checks ok. Probe `/.well-known/oauth-authorization-server` (200). **Stop at the first failure.**
17
+
18
+ ## How to merge
19
+
20
+ From the **develop** checkout (not `productionPath`):
21
+
22
+ ```bash
23
+ git fetch origin
24
+ git diff --name-only origin/<productionBranch>...origin/develop # must pass the path gate
25
+ gh pr create --base <productionBranch> --head develop --title "cms-edit: <version or editor-pack>"
26
+ # or ff-only merge via gh
27
+ ```
28
+
29
+ Do **not** use HSD `production-hsd-website` (or any `productionPath`) as the working tree. Do **not** run `pnpm cms-edit:deploy`, `vercel deploy`, or `./scripts/deploy-cms-edit-host.sh`.
30
+
31
+ ## After a successful host
32
+
33
+ Reconnect Grok `/mcps` → `i` is an editor step if OAuth tokens were dead — not a substitute for the health check.
34
+
35
+ If the diff is not cms-edit-only, **stop and hand off** — no production merge.
@@ -6,9 +6,8 @@ Default mode for this repo: **site-first**.
6
6
 
7
7
  ### Branch policy
8
8
 
9
- - Agents may commit and push **`develop`** and **`feature/*`** only.
10
- - **Never** push to `main`, `master`, `production`, or any production branch — **human-only** for all customer sites.
11
- - Do **not** ship from a production checkout (e.g. HSD `~/source/customers/hopskipdrive/production-hsd-website`). Use the develop checkout only.
9
+ - Agents may commit and push **`develop`** and **`feature/*`**. Customer production (`main`, HSD `production`) only when the **cms-edit-only** gate passes (`se-core-product` `packages/skills/references/agent-session/cms-edit-prod-merge.md`).
10
+ - **Never** merge marketing `src/` to production. **Never** ship from a production checkout (e.g. HSD `production-hsd-website`). Use the develop checkout only.
12
11
  - Prefer **draft PRs** to `develop` over direct pushes when `gh` is available.
13
12
 
14
13
  ### Core vs customer placement
@@ -56,4 +55,4 @@ Never hand-edit `package.json` dependency versions.
56
55
 
57
56
  ### Production handoff
58
57
 
59
- When ready for production, agents **stop** and deliver a handoff note — they do not merge to `main` / `production` or promote Vercel/Netlify. Production promotion is always **human-only**. See skill Step 8.
58
+ When **marketing** work is ready, agents **stop** and hand off. **cms-edit-only** host rollouts may merge `develop` → production one site at a time (health-check, stop at first failure). No `vercel deploy`. See skill Step 7–8 and `cms-edit-prod-merge.md`.
@@ -5,7 +5,7 @@ description: "Start and manage agent work sessions across se-core-product and cu
5
5
 
6
6
  # Agent session workflow
7
7
 
8
- Orchestrates **where** to work, **where code belongs**, and **how to isolate parallel features**. **Humans only** merge/promote to `main` / production (all customer sites + core) — agents stop at handoff.
8
+ Orchestrates **where** to work, **where code belongs**, and **how to isolate parallel features**. **Humans only** merge marketing production and core `main` — except **cms-edit-only** customer merges (reference `cms-edit-prod-merge.md`).
9
9
 
10
10
  **Registry:** [`packages/skills/references/agent-session/projects.registry.json`](../../references/agent-session/projects.registry.json) — repo paths, `worktreesRoot`, `productionPath` / `productionBranch`, integration branches, hosted MCP keys.
11
11
 
@@ -57,12 +57,12 @@ feature/<scope>/<short-slug>
57
57
 
58
58
  Integration branches (agents push feature branches here via PR or merge — **never production**):
59
59
 
60
- | Repo type | Integration branch | Production (human-only) |
61
- |-----------|-------------------|-------------------------|
62
- | `se-core-product` | `dev` | `main` |
63
- | Customer sites | `develop` (or registry override) | Usually `main`; HSD uses branch **`production`** and checkout `productionPath` |
60
+ | Repo type | Integration branch | Production |
61
+ |-----------|-------------------|------------|
62
+ | `se-core-product` | `dev` | `main` — **never** agent |
63
+ | Customer sites | `develop` (or registry override) | Usually `main`; HSD **`production`**. Marketing: human-only. **cms-edit-only:** agents may merge — see below |
64
64
 
65
- **Never** push, merge, or promote registry `productionBranch` / work in `productionPath`. Agent work uses `path` (develop checkout) only.
65
+ **Never** work in `productionPath`. Agent work uses `path` (develop checkout) only.
66
66
 
67
67
  ---
68
68
 
@@ -253,8 +253,9 @@ Agents may push to:
253
253
 
254
254
  - `dev` / `develop` (via feature branch merge or direct if user prefers)
255
255
  - `feature/*` branches
256
+ - Customer production (`main`, HSD `production`) **only** when the [cms-edit-only gate](../../references/agent-session/cms-edit-prod-merge.md) passes
256
257
 
257
- Agents must **never** push to `main`, `master`, `production`, or any registry `productionBranch`. Agents must **never** ship from a registry `productionPath` (e.g. HSD `~/source/customers/hopskipdrive/production-hsd-website`).
258
+ Agents must **never** push **se-core-product** `main`, or customer production when the diff is not cms-edit-only. Agents must **never** ship from a registry `productionPath` (e.g. HSD `~/source/customers/hopskipdrive/production-hsd-website`).
258
259
 
259
260
  **Preferred:** open a **draft PR** targeting the integration branch:
260
261
 
@@ -268,7 +269,7 @@ If `gh` is unavailable or user prefers direct push, push `feature/*` and note in
268
269
 
269
270
  ## Step 8 — Handoff (production-ready)
270
271
 
271
- When work is ready for human review / production promotion, **stop** — do not merge to `main`, `production`, or any production branch. **Production promotion is human-only** for core and every customer site.
272
+ When **marketing** work is ready for production, **stop** — do not merge to `main` / `production`. **Exception:** cms-edit-only (Step 7 + [`cms-edit-prod-merge.md`](../../references/agent-session/cms-edit-prod-merge.md)) — merge one customer repo at a time, wait for cms-edit host Ready, verify `/api/health`, stop at the first failure.
272
273
 
273
274
  1. Set manifest `status: ready_for_review`
274
275
  2. Deliver handoff using template below
@@ -300,9 +301,9 @@ When work is ready for human review / production promotion, **stop** — do not
300
301
  2. <customer pnpm update @se-studio/...>
301
302
  3. <customer PR>
302
303
 
303
- ### Production (human-only)
304
- Ready for you to merge to production (`main` or site `productionBranch`) / promote Vercel.
305
- Agent will not push production or use productionPath checkouts.
304
+ ### Production
305
+ Marketing: human-only (`main` or site `productionBranch`).
306
+ cms-edit-only: agent may merge per `cms-edit-prod-merge.md` (not `productionPath`, not `vercel deploy`).
306
307
  ```
307
308
 
308
309
  ---
@@ -341,7 +342,7 @@ Agent must load this skill, write manifest (with `worktree` path), run placement
341
342
 
342
343
  ## Quick reference — project keys
343
344
 
344
- | key | Integration | Production (human-only) | Type |
345
+ | key | Integration | Production | Type |
345
346
  |-----|-------------|-------------------------|------|
346
347
  | `se-core-product` | `dev` | `main` | core monorepo |
347
348
  | `se2026` | `develop` | `main` | customer |
@@ -116,7 +116,7 @@ One feature = one `feature/<scope>/<slug>` branch. **Git worktree required** for
116
116
 
117
117
  ### Production handoff
118
118
 
119
- Agents stop at handoff — they do not merge to `main` / production or promote production deploys. Human-only. See skill `site-workflows-agent-session` Step 8.
119
+ Agents stop at handoff for **marketing** production. cms-edit-only host merges: see `site-workflows-agent-session` and `cms-edit-prod-merge.md`.
120
120
 
121
121
  ## CMS editing (cms-edit)
122
122
 
@@ -19,7 +19,7 @@ Remove **dead weight** from an SE Studio site repo without changing product beha
19
19
 
20
20
  **Default:** Plan mode first — present a classified audit table before deleting anything.
21
21
 
22
- **Never:** push to `main`/`master`/`production` or promote production (human-only for all customer sites); delete `docs/cms-editor/` or committed `cms-edit/*/editor-pack/` without explicit user request; fix Dependabot alerts unless the user asks.
22
+ **Never:** push marketing production or use production checkouts (cms-edit-only gate is in `cms-edit-prod-merge.md`); delete `docs/cms-editor/` or committed `cms-edit/*/editor-pack/` without explicit user request; fix Dependabot alerts unless the user asks.
23
23
 
24
24
  ---
25
25
 
@@ -153,7 +153,7 @@ pnpm validate # or repo-specific validate from AGENTS.md
153
153
 
154
154
  Commit on integration branch only. Suggested message: `chore: remove stale scripts, docs, and tooling`.
155
155
 
156
- Hand off production promotion to the human — never push `main` / `production` or use production checkouts to ship.
156
+ Hand off **marketing** production. Do not use production checkouts. cms-edit-only: `cms-edit-prod-merge.md`.
157
157
 
158
158
  ---
159
159