@se-studio/skills 1.6.8 → 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 +12 -0
- package/package.json +1 -1
- package/references/agent-session/cms-edit-prod-merge.md +35 -0
- package/references/agent-session/customer-agents-block.md +3 -4
- package/skills/contentful-cms-setup/SKILL.md +1 -1
- package/skills/site-workflows-agent-session/SKILL.md +13 -12
- package/skills/site-workflows-new-project/SKILL.md +1 -1
- package/skills/site-workflows-stale-files-cleanup/SKILL.md +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
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
|
+
|
|
9
|
+
## 1.6.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 34a8a7f: Stop rotating hosted MCP refresh tokens on `/oauth/token`. Grok retries and parallel sessions were hitting `invalid_refresh_token` after the 1-hour access JWT expired. Include `refresh_token_expires_in` (30 days) on token responses.
|
|
14
|
+
|
|
3
15
|
## 1.6.8
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -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
|
|
10
|
-
- **Never**
|
|
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
|
|
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`.
|
|
@@ -87,7 +87,7 @@ Do **not** register a local `mcpServers.cms-edit` entry in Claude Desktop — us
|
|
|
87
87
|
→ Confirm the user was invited to the Contentful space and is signing in with the correct account. In Grok, use `/mcps` → press `i` (not just toggle). Confirm config URL ends with `/api/mcp`.
|
|
88
88
|
|
|
89
89
|
**Grok: Failed to get tools after auth / auth required**
|
|
90
|
-
→ MCP refresh
|
|
90
|
+
→ On Vercel look for `[cms-edit:oauth] auth_failure`. `invalid_refresh_token` means the MCP refresh UUID is gone (rotation + parallel Grok sessions); cms-edit **3.6.1+** keeps the same refresh token. `missing_contentful_token` / `invalid_contentful_token` means the CMA cache is missing or Contentful rejected it — **3.5.3+** deletes the dead cache and returns `invalid_token` so Grok re-runs Contentful sign-in. If it still loops, delete the server’s entry in `~/.grok/mcp_credentials.json`, then `/mcps` → `i` and complete Contentful sign-in.
|
|
91
91
|
|
|
92
92
|
**Grok browser flashes and closes**
|
|
93
93
|
→ Usually a redirect_uri mismatch before cms-edit v2.7.7+; upgrade the hosted deployment and retry OAuth.
|
|
@@ -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
|
|
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
|
|
61
|
-
|
|
62
|
-
| `se-core-product` | `dev` | `main` |
|
|
63
|
-
| Customer sites | `develop` (or registry override) | Usually `main`; HSD
|
|
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**
|
|
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
|
|
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
|
|
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
|
|
304
|
-
|
|
305
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
156
|
+
Hand off **marketing** production. Do not use production checkouts. cms-edit-only: `cms-edit-prod-merge.md`.
|
|
157
157
|
|
|
158
158
|
---
|
|
159
159
|
|