@se-studio/skills 1.9.2 → 1.9.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.9.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 4927e0e: Point the schema sync skill at migration 30 for slug regexp validation.
8
+
9
+ ## 1.9.3
10
+
11
+ ### Patch Changes
12
+
13
+ - cms-edit can create draft banners, page variants, page tests, and custom types, and add alternate page content on a page variant. Banner, page test, and custom type are in the content catalog (schema v5) and open by label or slug. A page variant only accepts alternate page content. The core cms-edit skill documents the new commands.
14
+
3
15
  ## 1.9.2
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@se-studio/skills",
3
- "version": "1.9.2",
3
+ "version": "1.9.4",
4
4
  "description": "SE Studio agent skills for marketing site development with Contentful CMS",
5
5
  "repository": {
6
6
  "type": "git",
@@ -456,9 +456,19 @@ cms-edit create taxonomy-from-json --json '{"tagTypes":[...]}' --if-not-exists
456
456
  cms-edit create tag-type --slug conference-venue --name "Conference Venue" --if-not-exists
457
457
  cms-edit create tag --slug asco-2025 --name "ASCO 2025" --tag-type conference-venue \
458
458
  --description "Annual ASCO conference." --featured-image <logoAssetId> --if-not-exists
459
+
460
+ # Site-wide and routing entries (drafts). See cms-edit help create-editor-entries.
461
+ cms-edit create banner --cms-label "Spring promo" --message "Free delivery this week"
462
+ cms-edit create page-test --cms-label "Home hero test" --control <pageId> --variant <pageVariantId>
463
+ cms-edit create page-variant --cms-label "Home B" --slug home-b --original-page /
464
+ cms-edit create custom-type --cms-label "People" --name "People" --slug people \
465
+ --index-page-name "Team" --index-page-title "Team" --index-page-description "The team" \
466
+ --featured-image <assetId>
459
467
  ```
460
468
 
461
- See `cms-edit help fields-taxonomy` and `cms-edit help taxonomy-from-json` for field reference and batch schema.
469
+ `create page-variant` and `create custom-type` open a session. Banner and page test do not. On an open page variant, the only `add` content type is `alternatePageContent` (`--source-id` required, optional `--replacement-id`). That content type is refused on a page or article, and a component is refused on a page variant.
470
+
471
+ See `cms-edit help fields-taxonomy`, `cms-edit help taxonomy-from-json`, and `cms-edit help create-editor-entries`.
462
472
 
463
473
  ## Person entries
464
474
 
@@ -839,7 +849,7 @@ cms-edit resolve 4xKj2abcDef
839
849
 
840
850
  ## Inventory & Status
841
851
 
842
- Use `list --type <type>` for inventory. Catalog types (page, article, pageVariant, template, taxonomy, navigation) use the local index. Use `--force-cma` for other types (person, customType, pageTest) or published-only with `--published`.
852
+ Use `list --type <type>` for inventory. Catalog types (page, article, pageVariant, template, taxonomy, navigation, banner, pageTest, customType) use the local index after `index sync`. Use `--force-cma` for types still outside the catalog (person) or published-only with `--published`.
843
853
 
844
854
  ```bash
845
855
  cms-edit list --type page
@@ -89,7 +89,7 @@ Standard order when diff shows these gaps:
89
89
  | 2b | `13-add-tag-type-fields-no-html.js` | Same as 13 **without** `htmlComponent` in topContent — use for Brightline / BLK while htmlComponent is WIP |
90
90
  | 3 | `14-add-tag-show-field.js` | `show` on tag / tagType |
91
91
  | 4 | `16-add-navigation-item-long-text.js` | `navigationItem.longText` |
92
- | 5 | `15-add-slug-regexp-validation.js` | Slug format validation |
92
+ | 5 | `30-add-slug-regexp-validation.js` | Slug format validation (no leading/trailing slash). Supersedes `15` for new applies. Skips missing fields, preserves `unique`, leaves `document.slug` alone. |
93
93
  | 6 | `17-add-article-authors.js` | `article.authors` array + backfill from `author` |
94
94
  | 7 | `21-add-article-bottom-content.js` | `article.bottomContent` array (idempotent; clones `content` link types) |
95
95
  | 8 | `25-add-meta-field.js` | Optional Long text `meta` JSON bag on template/page/article/tag/person and related types. Idempotent. Unused until filled. |
@@ -130,7 +130,7 @@ pnpm type-check
130
130
  ## Safety rules
131
131
 
132
132
  - Do **not** shrink `componentType` / `collectionType` `in` lists on live spaces.
133
- - Migration **15** does not fix existing invalid slug **entries** — editors must fix on save.
133
+ - Migration **30** does not fix existing invalid slug **entries**. Contentful rejects the schema save while any current slug fails the regexp. Fix those entries first. Migration **15** is historical.
134
134
  - Legacy media spaces (separate `video` / `illustration` types instead of `media`) need a **separate** consolidation project — not this skill’s default scope.
135
135
 
136
136
  ## Related docs