@se-studio/skills 1.10.10 → 1.10.12
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.10.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 79757c2: Add the `add-cms-type` bin: append component, collection or external component type names to the `componentType` / `collectionType` / `externalComponentType` enum in Contentful. Append-only, idempotent, with `--dry-run`. Documented in the `contentful-cms-content-model` skill.
|
|
8
|
+
|
|
9
|
+
## 1.10.11
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 032ea2f: cms-edit: add `delete plan/choose/apply` (drafts are deleted; a published entry needs `--published delete|archive`, asked of the user), `release_plan` / `release_apply` MCP tools, `pageTest` as a publishable root type, person / personType lookups (`--person-slug`, `--person-name`, `--person-type-slug`, `--person-type-name`), and person / personType / tagType session root types. Document which field each kind of content belongs in.
|
|
14
|
+
|
|
3
15
|
## 1.10.10
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -14,6 +14,8 @@ The content model is a **development** concern. **cms-edit edits content (entrie
|
|
|
14
14
|
3. In se-core-product only, after a core migration, re-export the golden schema (`docs/schema-export.json`; see `contentful-cms-sync-schema`). Customer-specific migrations do not touch the golden file.
|
|
15
15
|
4. Regenerate types (`pnpm codegen`) and update `src/lib/registrations.ts` when a new component/collection/external component is added (skill `se-marketing-sites-register-cms-features`).
|
|
16
16
|
|
|
17
|
+
`add-cms-type` and `setup-colours` call the management API directly (they need `CONTENTFUL_MANAGEMENT_TOKEN`) instead of going through the CLI, so they leave no numbered migration behind. Both are safe to re-run. `add-cms-type` prints the target space and environment, refuses a content type that has unpublished changes, and never reorders or removes existing values. They still need the same human approval as a migration, and in se-core-product a core change still needs the golden schema re-exported.
|
|
18
|
+
|
|
17
19
|
Rules:
|
|
18
20
|
|
|
19
21
|
- Append-only for enums: never shrink live `componentType` / `collectionType` / `externalComponentType` lists.
|
|
@@ -23,12 +25,12 @@ Rules:
|
|
|
23
25
|
|
|
24
26
|
## The common changes
|
|
25
27
|
|
|
26
|
-
Most model changes are one of two kinds.
|
|
28
|
+
Most model changes are one of two kinds, and both have a script.
|
|
27
29
|
|
|
28
30
|
| Change | Route |
|
|
29
31
|
|---|---|
|
|
30
32
|
| Colours (names in the colour validation) | the `setup-colours` bin from `@se-studio/project-build` (sites usually wrap it as `pnpm setup:colours`). Colour values on entries are still set with cms-edit; only the allowed names are model. |
|
|
31
|
-
| New component, collection or external component type |
|
|
33
|
+
| New component, collection or external component type | `add-cms-type <kind> "Name" [...] [--dry-run]` where kind is `component`, `collection` or `externalComponent` (`@se-studio/project-build`). These types are enum values on the `component`, `collection` and `externalComponent` content types, so it appends to the enum and publishes. Append-only, idempotent. Then register it in `src/lib/registrations.ts` and run `pnpm codegen`. |
|
|
32
34
|
| Anything else (new field, validation, genuinely new content type) | Hand-written numbered migration. Check `contentful-cms-sync-schema` first for an existing one. Reference migrations that create content types: `12-add-html-component.js`, `32-add-person-type.js`. |
|
|
33
35
|
|
|
34
36
|
## Related skills
|
|
@@ -27,7 +27,7 @@ Use this skill when you need to read or edit content in Contentful using **hoste
|
|
|
27
27
|
|
|
28
28
|
## Safety Rules
|
|
29
29
|
|
|
30
|
-
`save` writes **drafts**. Publish, unpublish, and
|
|
30
|
+
`save` writes **drafts**. Publish, unpublish, archive and delete use `<action> plan`, then `<action> apply` after an explicit yes (or the `release_plan` / `release_apply` tools), and only when the signed-in Contentful role allows it. AI Editor cannot. Do not publish as part of save. Draft-only entries can be deleted. For a **published** entry, ask the user whether to unpublish then delete or unpublish then archive, and pass `--published delete|archive`; never choose for them.
|
|
31
31
|
|
|
32
32
|
**Assets:** Upload **is** supported (`asset upload`). Default workflow: **search and reuse** existing assets first (`index sync` → `asset search`). Search by concept (`asset search --concept` / `--concept-all`) finds a subject and a tone, including files no page uses yet. Concepts are not blog tags. When uploading:
|
|
33
33
|
- **Raster/video:** `cms_edit_request_staged_upload` → curl → `cms_edit_media` prepare → wait → catalog → import with real alt. Video, and an image master over 4MB, is a presigned direct PUT (100MB, `intake: direct`) then prepare with that URL. Smaller images still use `stagedUploadIds`. Never `asset upload --staged/--url/--base64` for jpeg/png/webp/gif/mp4. The stored asset is the processed file.
|