@byline/cli 4.7.0 → 4.9.0

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.
@@ -96,7 +96,7 @@ export const DocsAdmin: CollectionAdminConfig = defineAdmin(Docs, {
96
96
  * rebuilds this collection's search index; it self-gates on the
97
97
  * `collections.docs.reindex` ability, so it only appears for actors who
98
98
  * hold it. Drop this (and the `search` config in schema.ts) if you don't
99
- * want search on this collection. See docs/05-reading-and-delivery/07-search.md.
99
+ * want search on this collection. See docs/06-search/index.md.
100
100
  */
101
101
  listActions: [ReindexButton],
102
102
 
@@ -46,7 +46,7 @@
46
46
  * Indexing is background maintenance that runs from out-of-band write paths
47
47
  * too (the import-docs script, seeds, migrations), where there is no HTTP
48
48
  * request to read a session cookie from. See
49
- * docs/05-reading-and-delivery/07-search.md.
49
+ * docs/06-search/index.md.
50
50
  */
51
51
 
52
52
  import { defineHooks } from '@byline/core'
@@ -47,7 +47,7 @@ export const Docs = defineCollection({
47
47
  // mean" affordance that needs no indexing and no lifecycle hooks. Falls back
48
48
  // to `useAsTitle` when omitted; declared explicitly here for guidance.
49
49
  listSearch: ['title'],
50
- // Search-*provider* config (docs/05-reading-and-delivery/07-search.md) —
50
+ // Search-*provider* config (docs/06-search/index.md) —
51
51
  // distinct from `listSearch` above. Each key names the part a field plays in
52
52
  // the index: `body` fields feed the full-text search vector (`title` is
53
53
  // display-only unless listed here, so we include it and boost it into the
@@ -56,7 +56,7 @@ export const Media = defineCollection({
56
56
  // mean" affordance that needs no indexing and no lifecycle hooks. Falls back
57
57
  // to `useAsTitle` when omitted; declared explicitly here for guidance.
58
58
  listSearch: ['title'],
59
- // Search-*provider* config (docs/05-reading-and-delivery/07-search.md) —
59
+ // Search-*provider* config (docs/06-search/index.md) —
60
60
  // distinct from `listSearch` above. This drives the pluggable SearchProvider
61
61
  // (full-text search in @byline/search-postgres) and offers richer options:
62
62
  // per-field weighting/`boost`, `facets`, `filters`, and `zones`. Unlike
@@ -36,7 +36,7 @@ export const News = defineCollection({
36
36
  // mean" affordance that needs no indexing and no lifecycle hooks. Falls back
37
37
  // to `useAsTitle` when omitted; declared explicitly here for guidance.
38
38
  listSearch: ['title'],
39
- // Search-*provider* config (docs/05-reading-and-delivery/07-search.md) —
39
+ // Search-*provider* config (docs/06-search/index.md) —
40
40
  // distinct from `listSearch` above. This drives the pluggable SearchProvider
41
41
  // (full-text search in @byline/search-postgres) and offers richer options:
42
42
  // per-field weighting/`boost`, `facets`, `filters`, and `zones`. Unlike
@@ -27,7 +27,7 @@ export const NewsCategories = defineCollection({
27
27
  // mean" affordance that needs no indexing and no lifecycle hooks. Falls back
28
28
  // to `useAsTitle` when omitted; declared explicitly here for guidance.
29
29
  listSearch: ['name'],
30
- // Search-*provider* config (docs/05-reading-and-delivery/07-search.md) —
30
+ // Search-*provider* config (docs/06-search/index.md) —
31
31
  // distinct from `listSearch` above. This drives the pluggable SearchProvider
32
32
  // (full-text search in @byline/search-postgres) and offers richer options:
33
33
  // per-field weighting/`boost`, `facets`, `filters`, and `zones`. Unlike
@@ -38,7 +38,7 @@ export const Pages = defineCollection({
38
38
  // mean" affordance that needs no indexing and no lifecycle hooks. Falls back
39
39
  // to `useAsTitle` when omitted; declared explicitly here for guidance.
40
40
  listSearch: ['title'],
41
- // Search-*provider* config (docs/05-reading-and-delivery/07-search.md) —
41
+ // Search-*provider* config (docs/06-search/index.md) —
42
42
  // distinct from `listSearch` above. This drives the pluggable SearchProvider
43
43
  // (full-text search in @byline/search-postgres) and offers richer options:
44
44
  // per-field weighting/`boost`, `facets`, `filters`, and `zones`. Unlike
@@ -18,7 +18,7 @@
18
18
  *
19
19
  * pnpm tsx byline/scripts/backfill-version-locales.ts
20
20
  *
21
- * See docs/07-internationalization/index.md.
21
+ * See docs/08-internationalization/index.md.
22
22
  */
23
23
 
24
24
  import '../load-env.js'
@@ -317,7 +317,7 @@ async function processFile(
317
317
  // Advertise the imported locale (editorial available-locales set), merged
318
318
  // with whatever is already advertised so a later-locale re-import doesn't
319
319
  // clobber an earlier one. The public set is still gated by the version
320
- // completeness ledger (intersection). See docs/07-internationalization/index.md.
320
+ // completeness ledger (intersection). See docs/08-internationalization/index.md.
321
321
  availableLocales: [...new Set([...(existing.availableLocales ?? []), locale])],
322
322
  })
323
323
  await walkToStatus(handle, result.documentId, workflowStatuses, defaultStatus, desiredStatus)
@@ -20,7 +20,7 @@
20
20
  * pnpm tsx byline/scripts/re-anchor.ts --to fr --collection pages
21
21
  * pnpm tsx byline/scripts/re-anchor.ts --to fr --dry-run
22
22
  *
23
- * See docs/07-internationalization/index.md.
23
+ * See docs/08-internationalization/index.md.
24
24
  */
25
25
 
26
26
  import '../load-env.js'
@@ -103,7 +103,7 @@ async function buildBylineCore(): Promise<BylineCore<AdminStore>> {
103
103
  // host's Drizzle migration stream. We run it deliberately here, rather
104
104
  // than relying on the driver's `autoMigrate` option, so startup DDL is an
105
105
  // explicit, awaited step. Reuses the adapter's pool — no second
106
- // connection. See docs/05-reading-and-delivery/07-search.md.
106
+ // connection. See docs/06-search/index.md.
107
107
  //
108
108
  // Wrapped defensively: a migration failure degrades search but must not
109
109
  // take down the whole app at boot. We log loudly and continue. (For
@@ -233,7 +233,7 @@ async function buildBylineCore(): Promise<BylineCore<AdminStore>> {
233
233
  // `body` fields to indexable text for `buildSearchDocument`. Pure
234
234
  // JSON walk, no client. Required by any collection that lists a
235
235
  // richText field in its `search.body`. See
236
- // docs/05-reading-and-delivery/07-search.md.
236
+ // docs/06-search/index.md.
237
237
  toText: lexicalEditorToTextServer(),
238
238
  },
239
239
  },
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@byline/cli",
3
3
  "private": false,
4
4
  "license": "MPL-2.0",
5
- "version": "4.7.0",
5
+ "version": "4.9.0",
6
6
  "engines": {
7
7
  "node": ">=20.9.0"
8
8
  },
@@ -48,7 +48,6 @@
48
48
  },
49
49
  "devDependencies": {
50
50
  "@biomejs/biome": "2.5.4",
51
- "@types/diff": "^8.0.0",
52
51
  "@types/mdast": "^4.0.4",
53
52
  "@types/node": "^26.1.1",
54
53
  "@types/pg": "^8.20.0",