@oktis-works/cms 0.13.25 → 0.14.5

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.
Files changed (30) hide show
  1. package/README.md +101 -0
  2. package/dist/generated/app-versions.js +7 -7
  3. package/dist/generated/app-versions.js.map +1 -1
  4. package/dist/generated/theme-assets.d.ts.map +1 -1
  5. package/dist/generated/theme-assets.js +20 -13
  6. package/dist/generated/theme-assets.js.map +1 -1
  7. package/dist/themes/default/archive.astro +3 -3
  8. package/dist/themes/default/page-blog.astro +3 -3
  9. package/dist/themes/default/page-home.astro +2 -2
  10. package/dist/themes/default/page.astro +4 -0
  11. package/dist/themes/default/single.astro +6 -2
  12. package/dist/themes/default/theme.json +2 -2
  13. package/migrations/V027__core__content_parent_and_hub.sql +32 -0
  14. package/migrations/mariadb/V001__core__add_core_fields_support.sql +2 -4
  15. package/migrations/mariadb/V005__core__add_user_locale.sql +1 -1
  16. package/migrations/mariadb/V006__core__expand_media_metadata.sql +2 -2
  17. package/migrations/mariadb/V007__core__expand_menus.sql +1 -2
  18. package/migrations/mariadb/V017__core__lazy_field_types.sql +1 -1
  19. package/migrations/mariadb/V018__core__timezone_system.sql +1 -1
  20. package/migrations/mariadb/V026__core__content_types_source_admin.sql +4 -0
  21. package/migrations/mariadb/V027__core__content_parent_and_hub.sql +4 -0
  22. package/migrations/mysql/V001__core__add_core_fields_support.sql +2 -4
  23. package/migrations/mysql/V005__core__add_user_locale.sql +1 -1
  24. package/migrations/mysql/V006__core__expand_media_metadata.sql +2 -2
  25. package/migrations/mysql/V007__core__expand_menus.sql +1 -2
  26. package/migrations/mysql/V017__core__lazy_field_types.sql +1 -1
  27. package/migrations/mysql/V018__core__timezone_system.sql +1 -1
  28. package/migrations/mysql/V026__core__content_types_source_admin.sql +4 -0
  29. package/migrations/mysql/V027__core__content_parent_and_hub.sql +4 -0
  30. package/package.json +7 -7
package/README.md ADDED
@@ -0,0 +1,101 @@
1
+ # @oktis-works/cli
2
+
3
+ Command-line interface — project scaffolding, theme management, migrations, builds.
4
+
5
+ ## Commands
6
+
7
+ ### Project
8
+
9
+ ```bash
10
+ okcms init [dir] # Scaffold new project (copies theme/default)
11
+ okcms theme:create <name> # Create new theme from default
12
+ okcms theme:build # Build active theme (CSS, components)
13
+ okcms theme:activate <name> # Set active theme in DB
14
+ ```
15
+
16
+ ### Database
17
+
18
+ ```bash
19
+ okcms db:migrate # Run migrations
20
+ okcms db:rollback # Rollback last migration
21
+ okcms db:seed # Run seed data
22
+ ```
23
+
24
+ ### Build & Deploy
25
+
26
+ ```bash
27
+ okcms build # Build all packages (bun run build)
28
+ okcms build:prod # Production build
29
+ okcms deploy # Deploy to configured target
30
+ ```
31
+
32
+ ### Development
33
+
34
+ ```bash
35
+ okcms dev # Start web + admin (concurrent)
36
+ okcms web # Start web server only
37
+ okcms admin # Start admin dev server
38
+ okcms worker # Start job queue worker
39
+ ```
40
+
41
+ ## Phase 1 Integration
42
+
43
+ ### `okcms init`
44
+
45
+ Scaffolds `themes/default/` byte-identical to monorepo theme.
46
+
47
+ **Verifies:**
48
+ - Theme assets copied (`dist/`, `templates/`, `assets/`)
49
+ - Theme manifest (`theme.json`)
50
+ - No hardcoded `/blog/` URLs — uses `{{url}}` template variable
51
+
52
+ ### Theme Assets
53
+
54
+ Built by `scripts/generate-theme-assets.mjs` → `src/generated/theme-assets.ts`.
55
+
56
+ ```typescript
57
+ export const themeAssets = {
58
+ 'themes/default/single.astro': '...',
59
+ 'themes/default/archive.astro': '...',
60
+ // ...
61
+ };
62
+ ```
63
+
64
+ Copied to CLI `dist/themes/default/` for `okcms init`.
65
+
66
+ ## Build Pipeline
67
+
68
+ ```bash
69
+ bun run build # Runs scripts/build-order.mjs
70
+ ```
71
+
72
+ **Order:** validation → types → config → database → auth → plugin-sdk → plugin-runtime → core → theme-sdk → theme-runtime → api-client → ui → cli
73
+
74
+ Each package: `tsc` → copy migrations (cli) → copy theme assets (cli).
75
+
76
+ ## Generated Files
77
+
78
+ | Script | Output |
79
+ |--------|--------|
80
+ | `generate-versions.mjs` | `src/generated/app-versions.ts` |
81
+ | `generate-theme-assets.mjs` | `src/generated/theme-assets.ts` |
82
+ | `copy-migrations.mjs` | `dist/migrations/` (79 files) |
83
+ | `copy-theme-assets.mjs` | `dist/themes/default/` |
84
+
85
+ ## Version Management
86
+
87
+ - Root `package.json` `version` = product version (e.g., `0.36.26`)
88
+ - `CMS_VERSION` synced to:
89
+ - `CMS_VERSION` file
90
+ - `packages/validation/src/compatibility.ts`
91
+ - `README.md` title (`# OkCMS vX.Y.Z`)
92
+ - Sync: `bun run sync-version --write`
93
+
94
+ ## Release Process
95
+
96
+ 1. Changeset: `bunx changeset` (creates `.changeset/*.md`)
97
+ 2. Version: `bun run version-packages` (bumps packages + syncs CMS_VERSION)
98
+ 3. Build: `bun run build && bun run test:run && bun run lint && bun run typecheck`
99
+ 4. Commit: `chore(release): vX.Y.Z`
100
+ 5. Tag & push: `git tag vX.Y.Z && git push origin main --tags`
101
+ 6. CI publishes to npm (OIDC, no token)
@@ -3,12 +3,12 @@
3
3
  // by `bun run build`. Used as the offline fallback for `okcms init` ranges
4
4
  // when the npm registry cannot be reached.
5
5
  export const APP_VERSIONS = {
6
- '@oktis-works/api': '0.16.10',
7
- '@oktis-works/admin': '0.24.2',
8
- '@oktis-works/web': '0.13.4',
9
- '@oktis-works/worker': '0.8.14',
10
- '@oktis-works/core': '0.15.6',
11
- '@oktis-works/plugin-runtime': '0.7.3',
12
- '@oktis-works/cms': '0.13.25',
6
+ '@oktis-works/api': '0.17.5',
7
+ '@oktis-works/admin': '0.25.0',
8
+ '@oktis-works/web': '0.13.5',
9
+ '@oktis-works/worker': '0.8.15',
10
+ '@oktis-works/core': '0.16.5',
11
+ '@oktis-works/plugin-runtime': '0.8.0',
12
+ '@oktis-works/cms': '0.14.5',
13
13
  };
14
14
  //# sourceMappingURL=app-versions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-versions.js","sourceRoot":"","sources":["../../src/generated/app-versions.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,4EAA4E;AAC5E,2EAA2E;AAC3E,2CAA2C;AAC3C,MAAM,CAAC,MAAM,YAAY,GAA2B;IAClD,kBAAkB,EAAE,SAAS;IAC7B,oBAAoB,EAAE,QAAQ;IAC9B,kBAAkB,EAAE,QAAQ;IAC5B,qBAAqB,EAAE,QAAQ;IAC/B,mBAAmB,EAAE,QAAQ;IAC7B,6BAA6B,EAAE,OAAO;IACtC,kBAAkB,EAAE,SAAS;CAC9B,CAAC"}
1
+ {"version":3,"file":"app-versions.js","sourceRoot":"","sources":["../../src/generated/app-versions.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,4EAA4E;AAC5E,2EAA2E;AAC3E,2CAA2C;AAC3C,MAAM,CAAC,MAAM,YAAY,GAA2B;IAClD,kBAAkB,EAAE,QAAQ;IAC5B,oBAAoB,EAAE,QAAQ;IAC9B,kBAAkB,EAAE,QAAQ;IAC5B,qBAAqB,EAAE,QAAQ;IAC/B,mBAAmB,EAAE,QAAQ;IAC7B,6BAA6B,EAAE,OAAO;IACtC,kBAAkB,EAAE,QAAQ;CAC7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"theme-assets.d.ts","sourceRoot":"","sources":["../../src/generated/theme-assets.ts"],"names":[],"mappings":"AAOA,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAukFtD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAE7D,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,sBAAsB,EAAE,MAAgD,CAAC;AAEtF,kFAAkF;AAClF,eAAO,MAAM,iBAAiB,EAAE,MAAoD,CAAC;AAErF,4EAA4E;AAC5E,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAEvD,CAAC"}
1
+ {"version":3,"file":"theme-assets.d.ts","sourceRoot":"","sources":["../../src/generated/theme-assets.ts"],"names":[],"mappings":"AAOA,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA8kFtD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAE7D,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,sBAAsB,EAAE,MAAgD,CAAC;AAEtF,kFAAkF;AAClF,eAAO,MAAM,iBAAiB,EAAE,MAAoD,CAAC;AAErF,4EAA4E;AAC5E,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAEvD,CAAC"}
@@ -32,7 +32,7 @@ export const DEFAULT_THEME_FILES = {
32
32
  <article class="post-card">
33
33
  {{#if thumbnail.url}}
34
34
  <figure class="post-card__image">
35
- <a href="/{{page.type}}/{{slug}}">
35
+ <a href="{{url}}">
36
36
  <img src="{{thumbnail.url}}" alt="{{thumbnail.alt}}" loading="lazy" />
37
37
  </a>
38
38
  </figure>
@@ -45,11 +45,11 @@ export const DEFAULT_THEME_FILES = {
45
45
  {{/if}}
46
46
  </time>
47
47
  </header>
48
- <h2 class="post-card__title"><a href="/{{page.type}}/{{slug}}">{{title}}</a></h2>
48
+ <h2 class="post-card__title"><a href="{{url}}">{{title}}</a></h2>
49
49
  {{#if excerpt}}
50
50
  <p class="post-card__excerpt">{{excerpt}}</p>
51
51
  {{/if}}
52
- <a href="/{{page.type}}/{{slug}}" class="btn btn-outline">Continue reading</a>
52
+ <a href="{{url}}" class="btn btn-outline">Continue reading</a>
53
53
  </div>
54
54
  </article>
55
55
  {{/each}}
@@ -1183,7 +1183,7 @@ export const DEFAULT_THEME_FILES = {
1183
1183
  <article class="post-card">
1184
1184
  {{#if thumbnail.url}}
1185
1185
  <figure class="post-card__image">
1186
- <a href="/blog/{{slug}}">
1186
+ <a href="{{url}}">
1187
1187
  <img src="{{thumbnail.url}}" alt="{{thumbnail.alt}}" loading="lazy" />
1188
1188
  </a>
1189
1189
  </figure>
@@ -1196,11 +1196,11 @@ export const DEFAULT_THEME_FILES = {
1196
1196
  {{/if}}
1197
1197
  </time>
1198
1198
  </header>
1199
- <h2 class="post-card__title"><a href="/blog/{{slug}}">{{title}}</a></h2>
1199
+ <h2 class="post-card__title"><a href="{{url}}">{{title}}</a></h2>
1200
1200
  {{#if excerpt}}
1201
1201
  <p class="post-card__excerpt">{{excerpt}}</p>
1202
1202
  {{/if}}
1203
- <a href="/blog/{{slug}}" class="btn btn-outline">Continue reading</a>
1203
+ <a href="{{url}}" class="btn btn-outline">Continue reading</a>
1204
1204
  </div>
1205
1205
  </article>
1206
1206
  {{/each}}
@@ -1326,11 +1326,11 @@ export const DEFAULT_THEME_FILES = {
1326
1326
  </figure>
1327
1327
  {{/if}}
1328
1328
  <div class="post-card__content">
1329
- <h3 class="post-card__title"><a href="/blog/{{slug}}">{{title}}</a></h3>
1329
+ <h3 class="post-card__title"><a href="{{url}}">{{title}}</a></h3>
1330
1330
  {{#if excerpt}}
1331
1331
  <p class="post-card__excerpt">{{excerpt}}</p>
1332
1332
  {{/if}}
1333
- <a href="/blog/{{slug}}" class="btn btn-outline">Continue reading</a>
1333
+ <a href="{{url}}" class="btn btn-outline">Continue reading</a>
1334
1334
  </div>
1335
1335
  </article>
1336
1336
  {{/each}}
@@ -1406,6 +1406,10 @@ export const DEFAULT_THEME_FILES = {
1406
1406
  {{/if}}
1407
1407
  </div>
1408
1408
  </main>
1409
+
1410
+ {{#if jsonLd}}
1411
+ <script type="application/ld+json">{{{jsonLd}}}</script>
1412
+ {{/if}}
1409
1413
  `,
1410
1414
  "post-first-post.astro": `<article data-template="post-first-post" data-type="post" class="post post-single">
1411
1415
  <header class="post-header">
@@ -1547,13 +1551,13 @@ export const DEFAULT_THEME_FILES = {
1547
1551
  <div class="container">
1548
1552
  <nav class="post-nav" aria-label="Post navigation">
1549
1553
  {{#if prevPost}}
1550
- <a href="/{{page.type}}/{{prevPost.slug}}" class="post-nav__prev" rel="prev">
1554
+ <a href="{{prevPost.url || ('/' + page.type + '/' + prevPost.slug)}}" class="post-nav__prev" rel="prev">
1551
1555
  <span class="post-nav__label">Previous article</span>
1552
1556
  <span class="post-nav__title">{{prevPost.title}}</span>
1553
1557
  </a>
1554
1558
  {{/if}}
1555
1559
  {{#if nextPost}}
1556
- <a href="/{{page.type}}/{{nextPost.slug}}" class="post-nav__next" rel="next">
1560
+ <a href="{{nextPost.url || ('/' + page.type + '/' + nextPost.slug)}}" class="post-nav__next" rel="next">
1557
1561
  <span class="post-nav__label">Next article</span>
1558
1562
  <span class="post-nav__title">{{nextPost.title}}</span>
1559
1563
  </a>
@@ -1562,6 +1566,10 @@ export const DEFAULT_THEME_FILES = {
1562
1566
  </div>
1563
1567
  </footer>
1564
1568
  </article>
1569
+
1570
+ {{#if jsonLd}}
1571
+ <script type="application/ld+json">{{{jsonLd}}}</script>
1572
+ {{/if}}
1565
1573
  `,
1566
1574
  "src/theme.css": `/**
1567
1575
  * Tema Default do OkCMS — Design System CSS
@@ -2585,7 +2593,7 @@ export const DEFAULT_THEME_FILES = {
2585
2593
  "type": "theme",
2586
2594
  "author": "Oktis Works",
2587
2595
  "compatibility": {
2588
- "okcms": "^0.36.0"
2596
+ "okcms": "^0.37.0"
2589
2597
  },
2590
2598
  "screenshots": [
2591
2599
  "screenshot.png"
@@ -2634,8 +2642,7 @@ export const DEFAULT_THEME_FILES = {
2634
2642
  "default": "Fill out the form or send us an email at hello@example.com"
2635
2643
  }
2636
2644
  ]
2637
- }
2638
- `,
2645
+ }`,
2639
2646
  };
2640
2647
  /**
2641
2648
  * Binary files of the default theme: base64 so the source stays valid TS,
@@ -1 +1 @@
1
- {"version":3,"file":"theme-assets.js","sourceRoot":"","sources":["../../src/generated/theme-assets.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,EAAE;AACF,2EAA2E;AAC3E,8EA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAs/BlB;IACC,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwDd;CACD,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAA2B;IAChE,gBAAgB,EAAE,k2FAAk2F;CACr3F,CAAC;AAEF,8EAA8E;AAC9E,MAAM,CAAC,MAAM,sBAAsB,GAAW,mBAAmB,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;AAEtF,kFAAkF;AAClF,MAAM,CAAC,MAAM,iBAAiB,GAAW,mBAAmB,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAC;AAErF,4EAA4E;AAC5E,MAAM,CAAC,MAAM,oBAAoB,GAA2B,MAAM,CAAC,WAAW,CAC5E,MAAM,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAChF,CAAC"}
@@ -16,7 +16,7 @@
16
16
  <article class="post-card">
17
17
  {{#if thumbnail.url}}
18
18
  <figure class="post-card__image">
19
- <a href="/{{page.type}}/{{slug}}">
19
+ <a href="{{url}}">
20
20
  <img src="{{thumbnail.url}}" alt="{{thumbnail.alt}}" loading="lazy" />
21
21
  </a>
22
22
  </figure>
@@ -29,11 +29,11 @@
29
29
  {{/if}}
30
30
  </time>
31
31
  </header>
32
- <h2 class="post-card__title"><a href="/{{page.type}}/{{slug}}">{{title}}</a></h2>
32
+ <h2 class="post-card__title"><a href="{{url}}">{{title}}</a></h2>
33
33
  {{#if excerpt}}
34
34
  <p class="post-card__excerpt">{{excerpt}}</p>
35
35
  {{/if}}
36
- <a href="/{{page.type}}/{{slug}}" class="btn btn-outline">Continue reading</a>
36
+ <a href="{{url}}" class="btn btn-outline">Continue reading</a>
37
37
  </div>
38
38
  </article>
39
39
  {{/each}}
@@ -16,7 +16,7 @@
16
16
  <article class="post-card">
17
17
  {{#if thumbnail.url}}
18
18
  <figure class="post-card__image">
19
- <a href="/blog/{{slug}}">
19
+ <a href="{{url}}">
20
20
  <img src="{{thumbnail.url}}" alt="{{thumbnail.alt}}" loading="lazy" />
21
21
  </a>
22
22
  </figure>
@@ -29,11 +29,11 @@
29
29
  {{/if}}
30
30
  </time>
31
31
  </header>
32
- <h2 class="post-card__title"><a href="/blog/{{slug}}">{{title}}</a></h2>
32
+ <h2 class="post-card__title"><a href="{{url}}">{{title}}</a></h2>
33
33
  {{#if excerpt}}
34
34
  <p class="post-card__excerpt">{{excerpt}}</p>
35
35
  {{/if}}
36
- <a href="/blog/{{slug}}" class="btn btn-outline">Continue reading</a>
36
+ <a href="{{url}}" class="btn btn-outline">Continue reading</a>
37
37
  </div>
38
38
  </article>
39
39
  {{/each}}
@@ -49,11 +49,11 @@
49
49
  </figure>
50
50
  {{/if}}
51
51
  <div class="post-card__content">
52
- <h3 class="post-card__title"><a href="/blog/{{slug}}">{{title}}</a></h3>
52
+ <h3 class="post-card__title"><a href="{{url}}">{{title}}</a></h3>
53
53
  {{#if excerpt}}
54
54
  <p class="post-card__excerpt">{{excerpt}}</p>
55
55
  {{/if}}
56
- <a href="/blog/{{slug}}" class="btn btn-outline">Continue reading</a>
56
+ <a href="{{url}}" class="btn btn-outline">Continue reading</a>
57
57
  </div>
58
58
  </article>
59
59
  {{/each}}
@@ -29,3 +29,7 @@
29
29
  {{/if}}
30
30
  </div>
31
31
  </main>
32
+
33
+ {{#if jsonLd}}
34
+ <script type="application/ld+json">{{{jsonLd}}}</script>
35
+ {{/if}}
@@ -34,13 +34,13 @@
34
34
  <div class="container">
35
35
  <nav class="post-nav" aria-label="Post navigation">
36
36
  {{#if prevPost}}
37
- <a href="/{{page.type}}/{{prevPost.slug}}" class="post-nav__prev" rel="prev">
37
+ <a href="{{prevPost.url || ('/' + page.type + '/' + prevPost.slug)}}" class="post-nav__prev" rel="prev">
38
38
  <span class="post-nav__label">Previous article</span>
39
39
  <span class="post-nav__title">{{prevPost.title}}</span>
40
40
  </a>
41
41
  {{/if}}
42
42
  {{#if nextPost}}
43
- <a href="/{{page.type}}/{{nextPost.slug}}" class="post-nav__next" rel="next">
43
+ <a href="{{nextPost.url || ('/' + page.type + '/' + nextPost.slug)}}" class="post-nav__next" rel="next">
44
44
  <span class="post-nav__label">Next article</span>
45
45
  <span class="post-nav__title">{{nextPost.title}}</span>
46
46
  </a>
@@ -49,3 +49,7 @@
49
49
  </div>
50
50
  </footer>
51
51
  </article>
52
+
53
+ {{#if jsonLd}}
54
+ <script type="application/ld+json">{{{jsonLd}}}</script>
55
+ {{/if}}
@@ -5,7 +5,7 @@
5
5
  "type": "theme",
6
6
  "author": "Oktis Works",
7
7
  "compatibility": {
8
- "okcms": "^0.36.0"
8
+ "okcms": "^0.37.0"
9
9
  },
10
10
  "screenshots": [
11
11
  "screenshot.png"
@@ -54,4 +54,4 @@
54
54
  "default": "Fill out the form or send us an email at hello@example.com"
55
55
  }
56
56
  ]
57
- }
57
+ }
@@ -0,0 +1,32 @@
1
+ -- @okcms domain=core_schema provider=postgres
2
+ -- Add parent_id to content for hierarchical URLs and url_redirects table for persistent redirects.
3
+ -- Enables dynamic hierarchy: hub pages per type (base) + nested items under parent.
4
+
5
+ -- 1) parent_id in content (self-reference, same tenant, SET NULL on delete)
6
+ -- Cycle prevention and same-type enforcement handled in application layer (content service).
7
+ ALTER TABLE content
8
+ ADD COLUMN IF NOT EXISTS parent_id UUID
9
+ REFERENCES content(id) ON DELETE SET NULL;
10
+
11
+ CREATE INDEX IF NOT EXISTS idx_content_parent ON content(parent_id);
12
+ CREATE INDEX IF NOT EXISTS idx_content_tenant_type_parent ON content(tenant_id, type, parent_id);
13
+
14
+ -- 2) Persistent redirects table (exact + prefix rules)
15
+ -- Stores redirects from old URLs to new ones when:
16
+ -- - slug changes (exact)
17
+ -- - parent changes (exact)
18
+ -- - hub page slug changes = base rename (prefix: /old-base/* -> /new-base/*)
19
+ CREATE TABLE IF NOT EXISTS url_redirects (
20
+ id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
21
+ tenant_id UUID NOT NULL REFERENCES tenants(id) ON DELETE CASCADE,
22
+ source_path TEXT NOT NULL, -- path without leading slash, e.g. 'blog/*' or 'projects/cliente-a/projeto-1'
23
+ target_path TEXT NOT NULL, -- path without leading slash, e.g. 'noticias/*'
24
+ redirect_type SMALLINT NOT NULL DEFAULT 301, -- 301 or 302
25
+ is_prefix BOOLEAN NOT NULL DEFAULT false, -- true = prefix match (source_path ends with *)
26
+ created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
27
+ created_by UUID REFERENCES users(id) ON DELETE SET NULL,
28
+ reason TEXT -- e.g. 'slug_change', 'parent_change', 'base_rename'
29
+ );
30
+
31
+ CREATE INDEX IF NOT EXISTS idx_url_redirects_tenant_source ON url_redirects(tenant_id, source_path);
32
+ CREATE INDEX IF NOT EXISTS idx_url_redirects_tenant_prefix ON url_redirects(tenant_id) WHERE is_prefix = true;
@@ -3,14 +3,12 @@
3
3
  -- Core Fields Support: is_locked, is_core_field, core_field_key
4
4
 
5
5
  -- field_definitions: campos de controle para core fields
6
- ALTER TABLE field_definitions
7
- ADD COLUMN IF NOT EXISTS is_core_field BOOLEAN NOT NULL DEFAULT false,
6
+ ALTER TABLE field_definitions ADD COLUMN is_core_field BOOLEAN NOT NULL DEFAULT false,
8
7
  ADD COLUMN IF NOT EXISTS is_locked BOOLEAN NOT NULL DEFAULT false,
9
8
  ADD COLUMN IF NOT EXISTS core_field_key VARCHAR(100);
10
9
 
11
10
  -- content_types: campos padrão por tipo de conteúdo
12
- ALTER TABLE content_types
13
- ADD COLUMN IF NOT EXISTS default_fields JSON
11
+ ALTER TABLE content_types ADD COLUMN default_fields JSON
14
12
  NOT NULL DEFAULT '["title","slug","content","excerpt","featured_image",
15
13
  "seo_title","seo_description","status","author"]';
16
14
 
@@ -1,7 +1,7 @@
1
1
  -- @okcms domain=core_schema provider=mariadb
2
2
  -- +migrate Up
3
3
  -- Locale preferido do usuário (i18n do admin: /api/v1/users/me/locale)
4
- ALTER TABLE users ADD COLUMN IF NOT EXISTS locale VARCHAR(10);
4
+ ALTER TABLE users ADD COLUMN locale VARCHAR(10);
5
5
 
6
6
  -- +migrate Down
7
7
  ALTER TABLE users DROP COLUMN IF EXISTS locale;
@@ -1,8 +1,8 @@
1
1
  -- @okcms domain=core_schema provider=mariadb
2
2
  -- +migrate Up
3
3
  -- WordPress-style attachment metadata: display title and long description.
4
- ALTER TABLE media ADD COLUMN IF NOT EXISTS title VARCHAR(500);
5
- ALTER TABLE media ADD COLUMN IF NOT EXISTS description TEXT;
4
+ ALTER TABLE media ADD COLUMN title VARCHAR(500);
5
+ ALTER TABLE media ADD COLUMN description TEXT;
6
6
 
7
7
  -- Existing uploads keep their filename as a useful initial attachment title.
8
8
  UPDATE media SET title = filename WHERE title IS NULL;
@@ -1,4 +1,3 @@
1
1
  -- @okcms domain=core_schema provider=mariadb
2
2
  -- WordPress-style menu settings and richer menu item metadata.
3
- ALTER TABLE menus
4
- ADD COLUMN IF NOT EXISTS settings JSON NOT NULL DEFAULT '{}';
3
+ ALTER TABLE menus ADD COLUMN settings JSON NOT NULL DEFAULT '{}';
@@ -3,4 +3,4 @@
3
3
  -- WordPress-parity item 25: lazy field types (lazy:true defers registry sync
4
4
  -- until first use — GET /api/v1/field-types).
5
5
 
6
- ALTER TABLE field_type_extensions ADD COLUMN IF NOT EXISTS lazy BOOLEAN NOT NULL DEFAULT false;
6
+ ALTER TABLE field_type_extensions ADD COLUMN lazy BOOLEAN NOT NULL DEFAULT false;
@@ -5,7 +5,7 @@
5
5
  -- 2. Add timezone settings to settings table (handled by seed)
6
6
 
7
7
  -- Add published_at_gmt column to content table
8
- ALTER TABLE content ADD COLUMN IF NOT EXISTS published_at_gmt TIMESTAMP;
8
+ ALTER TABLE content ADD COLUMN published_at_gmt TIMESTAMP;
9
9
 
10
10
  -- Index for GMT-based queries (archives, scheduling, etc.)
11
11
  CREATE INDEX idx_content_published_gmt ON content(published_at_gmt);
@@ -0,0 +1,4 @@
1
+ -- @okcms domain=core_schema provider=mariadb
2
+ -- +migrate Up
3
+ SELECT 1; -- MySQL: ALTER TABLE DROP CONSTRAINT IF EXISTS not supported; constraint may not exist
4
+ -- +migrate Down
@@ -0,0 +1,4 @@
1
+ -- @okcms domain=core_schema provider=mariadb
2
+ -- +migrate Up
3
+ SELECT 1; -- MySQL: schema already includes parent_id, url_redirects table, and indexes
4
+ -- +migrate Down
@@ -3,14 +3,12 @@
3
3
  -- Core Fields Support: is_locked, is_core_field, core_field_key
4
4
 
5
5
  -- field_definitions: campos de controle para core fields
6
- ALTER TABLE field_definitions
7
- ADD COLUMN IF NOT EXISTS is_core_field BOOLEAN NOT NULL DEFAULT false,
6
+ ALTER TABLE field_definitions ADD COLUMN is_core_field BOOLEAN NOT NULL DEFAULT false,
8
7
  ADD COLUMN IF NOT EXISTS is_locked BOOLEAN NOT NULL DEFAULT false,
9
8
  ADD COLUMN IF NOT EXISTS core_field_key VARCHAR(100);
10
9
 
11
10
  -- content_types: campos padrão por tipo de conteúdo
12
- ALTER TABLE content_types
13
- ADD COLUMN IF NOT EXISTS default_fields JSON
11
+ ALTER TABLE content_types ADD COLUMN default_fields JSON
14
12
  NOT NULL DEFAULT '["title","slug","content","excerpt","featured_image",
15
13
  "seo_title","seo_description","status","author"]';
16
14
 
@@ -1,7 +1,7 @@
1
1
  -- @okcms domain=core_schema provider=mysql
2
2
  -- +migrate Up
3
3
  -- Locale preferido do usuário (i18n do admin: /api/v1/users/me/locale)
4
- ALTER TABLE users ADD COLUMN IF NOT EXISTS locale VARCHAR(10);
4
+ ALTER TABLE users ADD COLUMN locale VARCHAR(10);
5
5
 
6
6
  -- +migrate Down
7
7
  ALTER TABLE users DROP COLUMN IF EXISTS locale;
@@ -1,8 +1,8 @@
1
1
  -- @okcms domain=core_schema provider=mysql
2
2
  -- +migrate Up
3
3
  -- WordPress-style attachment metadata: display title and long description.
4
- ALTER TABLE media ADD COLUMN IF NOT EXISTS title VARCHAR(500);
5
- ALTER TABLE media ADD COLUMN IF NOT EXISTS description TEXT;
4
+ ALTER TABLE media ADD COLUMN title VARCHAR(500);
5
+ ALTER TABLE media ADD COLUMN description TEXT;
6
6
 
7
7
  -- Existing uploads keep their filename as a useful initial attachment title.
8
8
  UPDATE media SET title = filename WHERE title IS NULL;
@@ -1,4 +1,3 @@
1
1
  -- @okcms domain=core_schema provider=mysql
2
2
  -- WordPress-style menu settings and richer menu item metadata.
3
- ALTER TABLE menus
4
- ADD COLUMN IF NOT EXISTS settings JSON NOT NULL DEFAULT '{}';
3
+ ALTER TABLE menus ADD COLUMN settings JSON NOT NULL DEFAULT '{}';
@@ -3,4 +3,4 @@
3
3
  -- WordPress-parity item 25: lazy field types (lazy:true defers registry sync
4
4
  -- until first use — GET /api/v1/field-types).
5
5
 
6
- ALTER TABLE field_type_extensions ADD COLUMN IF NOT EXISTS lazy BOOLEAN NOT NULL DEFAULT false;
6
+ ALTER TABLE field_type_extensions ADD COLUMN lazy BOOLEAN NOT NULL DEFAULT false;
@@ -5,7 +5,7 @@
5
5
  -- 2. Add timezone settings to settings table (handled by seed)
6
6
 
7
7
  -- Add published_at_gmt column to content table
8
- ALTER TABLE content ADD COLUMN IF NOT EXISTS published_at_gmt TIMESTAMP;
8
+ ALTER TABLE content ADD COLUMN published_at_gmt TIMESTAMP;
9
9
 
10
10
  -- Index for GMT-based queries (archives, scheduling, etc.)
11
11
  CREATE INDEX idx_content_published_gmt ON content(published_at_gmt);
@@ -0,0 +1,4 @@
1
+ -- @okcms domain=core_schema provider=mysql
2
+ -- +migrate Up
3
+ SELECT 1; -- MySQL: ALTER TABLE DROP CONSTRAINT IF EXISTS not supported; constraint may not exist
4
+ -- +migrate Down
@@ -0,0 +1,4 @@
1
+ -- @okcms domain=core_schema provider=mysql
2
+ -- +migrate Up
3
+ SELECT 1; -- MySQL: schema already includes parent_id, url_redirects table, and indexes
4
+ -- +migrate Down
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oktis-works/cms",
3
- "version": "0.13.25",
3
+ "version": "0.14.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -20,12 +20,12 @@
20
20
  "clean": "rm -rf dist migrations tsconfig.tsbuildinfo dist/themes"
21
21
  },
22
22
  "dependencies": {
23
- "@oktis-works/auth": "^0.8.4",
24
- "@oktis-works/config": "^0.6.5",
25
- "@oktis-works/core": "^0.15.6",
26
- "@oktis-works/database": "^0.14.8",
27
- "@oktis-works/validation": "^0.8.1",
28
- "@oktis-works/theme-runtime": "^0.11.1"
23
+ "@oktis-works/auth": "^0.8.5",
24
+ "@oktis-works/config": "^0.6.6",
25
+ "@oktis-works/core": "^0.16.5",
26
+ "@oktis-works/database": "^0.15.5",
27
+ "@oktis-works/validation": "^0.8.2",
28
+ "@oktis-works/theme-runtime": "^0.12.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "typescript": "5.7.3"