@tailor-platform/sdk 1.68.0 → 1.70.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.
Files changed (117) hide show
  1. package/CHANGELOG.md +105 -0
  2. package/dist/application-BakHtldG.mjs +4 -0
  3. package/dist/application-Df5_I83n.mjs +6432 -0
  4. package/dist/application-Df5_I83n.mjs.map +1 -0
  5. package/dist/cli/erd-viewer-assets/app.js +279 -36
  6. package/dist/cli/erd-viewer-assets/index.html +4 -0
  7. package/dist/cli/erd-viewer-assets/styles.css +252 -5
  8. package/dist/cli/index.mjs +650 -98
  9. package/dist/cli/index.mjs.map +1 -1
  10. package/dist/cli/lib.d.mts +247 -160
  11. package/dist/cli/lib.mjs +3 -3
  12. package/dist/cli/lib.mjs.map +1 -1
  13. package/dist/cli/skills.mjs +1 -1
  14. package/dist/completion/zsh-worker.zsh +175 -24
  15. package/dist/configure/index.d.mts +5 -5
  16. package/dist/configure/index.mjs +12 -6
  17. package/dist/configure/index.mjs.map +1 -1
  18. package/dist/{crashreport-u9y2npiy.mjs → crashreport-BqyvFk-_.mjs} +2 -2
  19. package/dist/{crashreport-u9y2npiy.mjs.map → crashreport-BqyvFk-_.mjs.map} +1 -1
  20. package/dist/{crashreport-6jpCceOF.mjs → crashreport-BwF8cHF0.mjs} +1 -1
  21. package/dist/enum-constants-C7DaWeQo.mjs.map +1 -1
  22. package/dist/field-C4zdJLW5.mjs.map +1 -1
  23. package/dist/file-utils-BHPxPXmn.mjs.map +1 -1
  24. package/dist/{idp-BlBPtXJ-.d.mts → idp-BmYwCXnJ.d.mts} +30 -3
  25. package/dist/{idp-BZPqpcYY.mjs → idp-ynUfzwpz.mjs} +9 -1
  26. package/dist/idp-ynUfzwpz.mjs.map +1 -0
  27. package/dist/{index-DvEUb3pX.d.mts → index-BAEaAqmz.d.mts} +112 -53
  28. package/dist/{index-CklcVeMG.d.mts → index-C-vsbx27.d.mts} +2 -2
  29. package/dist/{index-hXoO-AOC.d.mts → index-CKI0eZP6.d.mts} +2 -2
  30. package/dist/{index-DYhnxXYR.d.mts → index-CrqOgUF2.d.mts} +2 -2
  31. package/dist/{index-DlDRSzFZ.d.mts → index-DESLU9kI.d.mts} +2 -2
  32. package/dist/{index-DRhMpdnA.d.mts → index-dKNk8hjo.d.mts} +2 -2
  33. package/dist/job-BpsFXPbi.mjs.map +1 -1
  34. package/dist/{kysely-type-D1e0Vwkd.mjs → kysely-type-CSoZxVKN.mjs} +2 -2
  35. package/dist/{kysely-type-D1e0Vwkd.mjs.map → kysely-type-CSoZxVKN.mjs.map} +1 -1
  36. package/dist/{logger-DpJyJvNz.mjs → logger-DKF-JsAK.mjs} +3 -3
  37. package/dist/{logger-DpJyJvNz.mjs.map → logger-DKF-JsAK.mjs.map} +1 -1
  38. package/dist/{mock-DMgIygjE.mjs → mock-wf5qeZLi.mjs} +19 -9
  39. package/dist/mock-wf5qeZLi.mjs.map +1 -0
  40. package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
  41. package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
  42. package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
  43. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  44. package/dist/plugin/builtin/seed/index.d.mts +1 -1
  45. package/dist/plugin/index.d.mts +1 -1
  46. package/dist/plugin/index.mjs.map +1 -1
  47. package/dist/registry-D0uB0OrK.mjs.map +1 -1
  48. package/dist/{repl-editor-CJG3sz7A.mjs → repl-editor-DD5YP5mt.mjs} +4 -4
  49. package/dist/{repl-editor-CJG3sz7A.mjs.map → repl-editor-DD5YP5mt.mjs.map} +1 -1
  50. package/dist/runtime/globals.d.mts +3 -2
  51. package/dist/runtime/idp.d.mts +2 -2
  52. package/dist/runtime/idp.mjs +1 -1
  53. package/dist/runtime/index.d.mts +2 -2
  54. package/dist/runtime/index.mjs +1 -1
  55. package/dist/{runtime-DxaBq6U8.mjs → runtime-CSY0eD4_.mjs} +411 -221
  56. package/dist/runtime-CSY0eD4_.mjs.map +1 -0
  57. package/dist/{schema-1msIhXwA.mjs → schema-C4fkpWV_.mjs} +9 -15
  58. package/dist/schema-C4fkpWV_.mjs.map +1 -0
  59. package/dist/seed-YAbtMy65.mjs.map +1 -1
  60. package/dist/{service-wI3Hvrgx.mjs → service-B2Jd9CxS.mjs} +2 -2
  61. package/dist/service-B2Jd9CxS.mjs.map +1 -0
  62. package/dist/service-CRaa4Joe.mjs +4 -0
  63. package/dist/{service-DMohAx8a.mjs → service-DDWgZL_L2.mjs} +2 -2
  64. package/dist/service-DDWgZL_L2.mjs.map +1 -0
  65. package/dist/service_pb-DGSmn-aF.mjs +4 -0
  66. package/dist/{application-WpWwTyk9.mjs → service_pb-DSNjrcbW.mjs} +22 -6176
  67. package/dist/service_pb-DSNjrcbW.mjs.map +1 -0
  68. package/dist/telemetry-BQbbVo2t.mjs.map +1 -1
  69. package/dist/{types-2Be3wSMc.mjs → types-32lUMToj.mjs} +1 -1
  70. package/dist/{types-CmzfQP_m.mjs → types-D4QMmNWh.mjs} +1 -12
  71. package/dist/types-D4QMmNWh.mjs.map +1 -0
  72. package/dist/{types-Bzr0RQME.d.mts → types-Dynq4AJv.d.mts} +2 -2
  73. package/dist/{types-DZrtN6-H.d.mts → types-rj8YJcEe.d.mts} +5 -2
  74. package/dist/utils/test/index.d.mts +2 -2
  75. package/dist/utils/test/index.mjs.map +1 -1
  76. package/dist/vitest/environment.mjs +1 -1
  77. package/dist/vitest/environment.mjs.map +1 -1
  78. package/dist/vitest/index.mjs +4 -4
  79. package/dist/vitest/index.mjs.map +1 -1
  80. package/dist/vitest/setup.mjs +1 -1
  81. package/dist/{workflow.generated-1S50BhEb.d.mts → workflow.generated-DJULCuRr.d.mts} +274 -174
  82. package/docs/cli/application.md +39 -201
  83. package/docs/cli/auth.md +12 -256
  84. package/docs/cli/completion.md +0 -24
  85. package/docs/cli/crashreport.md +0 -58
  86. package/docs/cli/executor.md +2 -166
  87. package/docs/cli/function.md +2 -118
  88. package/docs/cli/organization.md +1 -211
  89. package/docs/cli/query.md +0 -20
  90. package/docs/cli/secret.md +70 -250
  91. package/docs/cli/setup.md +2 -41
  92. package/docs/cli/skills.md +0 -39
  93. package/docs/cli/staticwebsite.md +24 -172
  94. package/docs/cli/tailordb.md +25 -251
  95. package/docs/cli/upgrade.md +0 -20
  96. package/docs/cli/user.md +41 -246
  97. package/docs/cli/workflow.md +30 -189
  98. package/docs/cli/workspace.md +164 -537
  99. package/docs/cli-reference.md +61 -37
  100. package/docs/configuration.md +7 -1
  101. package/docs/github-actions.md +27 -0
  102. package/docs/multi-environment.md +22 -0
  103. package/docs/services/aigateway.md +4 -2
  104. package/docs/services/http-adapter.md +16 -1
  105. package/docs/services/idp.md +55 -2
  106. package/docs/services/staticwebsite.md +7 -1
  107. package/package.json +23 -18
  108. package/dist/application-Djeezk3m.mjs +0 -4
  109. package/dist/application-WpWwTyk9.mjs.map +0 -1
  110. package/dist/idp-BZPqpcYY.mjs.map +0 -1
  111. package/dist/mock-DMgIygjE.mjs.map +0 -1
  112. package/dist/runtime-DxaBq6U8.mjs.map +0 -1
  113. package/dist/schema-1msIhXwA.mjs.map +0 -1
  114. package/dist/service-BHQIerYh.mjs +0 -4
  115. package/dist/service-DMohAx8a.mjs.map +0 -1
  116. package/dist/service-wI3Hvrgx.mjs.map +0 -1
  117. package/dist/types-CmzfQP_m.mjs.map +0 -1
@@ -2,29 +2,17 @@
2
2
 
3
3
  Commands for managing TailorDB tables, data, and schema migrations.
4
4
 
5
- <!-- politty:command:tailordb:heading:start -->
6
-
7
5
  ## tailordb
8
6
 
9
- <!-- politty:command:tailordb:heading:end -->
10
-
11
- <!-- politty:command:tailordb:description:start -->
12
-
13
7
  Manage TailorDB tables and data.
14
8
 
15
- <!-- politty:command:tailordb:description:end -->
16
-
17
- <!-- politty:command:tailordb:usage:start -->
18
-
19
9
  **Usage**
20
10
 
21
11
  ```
22
- tailor-sdk tailordb [command]
12
+ tailor-sdk tailordb <command>
23
13
  ```
24
14
 
25
- <!-- politty:command:tailordb:usage:end -->
26
-
27
- <!-- politty:command:tailordb:subcommands:start -->
15
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
28
16
 
29
17
  **Commands**
30
18
 
@@ -34,48 +22,22 @@ tailor-sdk tailordb [command]
34
22
  | [`tailordb migration`](#tailordb-migration) | Manage TailorDB schema migrations. |
35
23
  | [`tailordb erd`](#tailordb-erd) | Generate TailorDB ERD viewer artifacts from local TailorDB schema. (beta) |
36
24
 
37
- <!-- politty:command:tailordb:subcommands:end -->
38
-
39
- <!-- politty:command:tailordb:global-options-link:start -->
40
-
41
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
42
-
43
- <!-- politty:command:tailordb:global-options-link:end -->
44
-
45
- <!-- politty:command:tailordb truncate:heading:start -->
46
-
47
25
  ### tailordb truncate
48
26
 
49
- <!-- politty:command:tailordb truncate:heading:end -->
50
-
51
- <!-- politty:command:tailordb truncate:description:start -->
52
-
53
27
  Truncate (delete all records from) TailorDB tables.
54
28
 
55
- <!-- politty:command:tailordb truncate:description:end -->
56
-
57
- <!-- politty:command:tailordb truncate:usage:start -->
58
-
59
29
  **Usage**
60
30
 
61
31
  ```
62
32
  tailor-sdk tailordb truncate [options] [types]
63
33
  ```
64
34
 
65
- <!-- politty:command:tailordb truncate:usage:end -->
66
-
67
- <!-- politty:command:tailordb truncate:arguments:start -->
68
-
69
35
  **Arguments**
70
36
 
71
37
  | Argument | Description | Required |
72
38
  | -------- | ---------------------- | -------- |
73
39
  | `types` | Type names to truncate | No |
74
40
 
75
- <!-- politty:command:tailordb truncate:arguments:end -->
76
-
77
- <!-- politty:command:tailordb truncate:options:start -->
78
-
79
41
  **Options**
80
42
 
81
43
  | Option | Alias | Description | Required | Default | Env |
@@ -87,14 +49,8 @@ tailor-sdk tailordb truncate [options] [types]
87
49
  | `--all` | `-a` | Truncate all tables in all owned namespaces (excludes external namespaces) | No | `false` | - |
88
50
  | `--namespace <NAMESPACE>` | `-n` | Truncate all tables in specified namespace | No | - | - |
89
51
 
90
- <!-- politty:command:tailordb truncate:options:end -->
91
-
92
- <!-- politty:command:tailordb truncate:global-options-link:start -->
93
-
94
52
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
95
53
 
96
- <!-- politty:command:tailordb truncate:global-options-link:end -->
97
-
98
54
  **Usage Examples:**
99
55
 
100
56
  ```bash
@@ -125,32 +81,18 @@ tailor-sdk tailordb truncate User Post --yes
125
81
  - Use `--yes` flag to skip confirmation prompts (useful for scripts and CI/CD)
126
82
  - Namespaces declared with `{ external: true }` are skipped by `--all` and rejected with a dedicated error when targeted by `--namespace`. Run truncate from the app that owns the namespace.
127
83
 
128
- <!-- politty:command:tailordb migration:heading:start -->
129
-
130
84
  ### tailordb migration
131
85
 
132
- <!-- politty:command:tailordb migration:heading:end -->
133
-
134
- <!-- politty:command:tailordb migration:description:start -->
135
-
136
86
  Manage TailorDB schema migrations.
137
87
 
138
- <!-- politty:command:tailordb migration:description:end -->
139
-
140
88
  Note: Migration scripts are automatically executed during `tailor-sdk deploy`. See [Automatic Migration Execution](../services/tailordb-migration.md#automatic-migration-execution) for details.
141
89
 
142
- <!-- politty:command:tailordb migration:usage:start -->
143
-
144
90
  **Usage**
145
91
 
146
92
  ```
147
- tailor-sdk tailordb migration [command]
93
+ tailor-sdk tailordb migration <command>
148
94
  ```
149
95
 
150
- <!-- politty:command:tailordb migration:usage:end -->
151
-
152
- <!-- politty:command:tailordb migration:subcommands:start -->
153
-
154
96
  **Commands**
155
97
 
156
98
  | Command | Description |
@@ -161,37 +103,18 @@ tailor-sdk tailordb migration [command]
161
103
  | [`tailordb migration status`](#tailordb-migration-status) | Show the current migration status for TailorDB namespaces, including applied and pending migrations. |
162
104
  | [`tailordb migration sync`](#tailordb-migration-sync) | Sync remote TailorDB schema to a specific migration snapshot (recovery from --no-schema-check drift). |
163
105
 
164
- <!-- politty:command:tailordb migration:subcommands:end -->
165
-
166
- <!-- politty:command:tailordb migration:global-options-link:start -->
167
-
168
106
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
169
107
 
170
- <!-- politty:command:tailordb migration:global-options-link:end -->
171
- <!-- politty:command:tailordb migration generate:heading:start -->
172
-
173
108
  #### tailordb migration generate
174
109
 
175
- <!-- politty:command:tailordb migration generate:heading:end -->
176
-
177
- <!-- politty:command:tailordb migration generate:description:start -->
178
-
179
110
  Generate migration files by detecting schema differences between current local types and the previous migration snapshot.
180
111
 
181
- <!-- politty:command:tailordb migration generate:description:end -->
182
-
183
- <!-- politty:command:tailordb migration generate:usage:start -->
184
-
185
112
  **Usage**
186
113
 
187
114
  ```
188
115
  tailor-sdk tailordb migration generate [options]
189
116
  ```
190
117
 
191
- <!-- politty:command:tailordb migration generate:usage:end -->
192
-
193
- <!-- politty:command:tailordb migration generate:options:start -->
194
-
195
118
  **Options**
196
119
 
197
120
  | Option | Alias | Description | Required | Default | Env |
@@ -201,47 +124,24 @@ tailor-sdk tailordb migration generate [options]
201
124
  | `--name <NAME>` | `-n` | Optional description for the migration | No | - | - |
202
125
  | `--init` | - | Delete existing migrations and start fresh | No | `false` | - |
203
126
 
204
- <!-- politty:command:tailordb migration generate:options:end -->
205
-
206
- <!-- politty:command:tailordb migration generate:global-options-link:start -->
207
-
208
127
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
209
128
 
210
- <!-- politty:command:tailordb migration generate:global-options-link:end -->
211
- <!-- politty:command:tailordb migration script:heading:start -->
212
-
213
129
  #### tailordb migration script
214
130
 
215
- <!-- politty:command:tailordb migration script:heading:end -->
216
-
217
- <!-- politty:command:tailordb migration script:description:start -->
218
-
219
131
  Add a migration script (migrate.ts) template to an existing migration directory.
220
132
 
221
- <!-- politty:command:tailordb migration script:description:end -->
222
-
223
- <!-- politty:command:tailordb migration script:usage:start -->
224
-
225
133
  **Usage**
226
134
 
227
135
  ```
228
136
  tailor-sdk tailordb migration script [options] <number>
229
137
  ```
230
138
 
231
- <!-- politty:command:tailordb migration script:usage:end -->
232
-
233
- <!-- politty:command:tailordb migration script:arguments:start -->
234
-
235
139
  **Arguments**
236
140
 
237
141
  | Argument | Description | Required |
238
142
  | -------- | ----------------------------------------------------- | -------- |
239
143
  | `number` | Migration number to add a script to (e.g., 0001 or 1) | Yes |
240
144
 
241
- <!-- politty:command:tailordb migration script:arguments:end -->
242
-
243
- <!-- politty:command:tailordb migration script:options:start -->
244
-
245
145
  **Options**
246
146
 
247
147
  | Option | Alias | Description | Required | Default | Env |
@@ -249,48 +149,24 @@ tailor-sdk tailordb migration script [options] <number>
249
149
  | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
250
150
  | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | No | - | - |
251
151
 
252
- <!-- politty:command:tailordb migration script:options:end -->
253
-
254
- <!-- politty:command:tailordb migration script:global-options-link:start -->
255
-
256
152
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
257
153
 
258
- <!-- politty:command:tailordb migration script:global-options-link:end -->
259
-
260
- <!-- politty:command:tailordb migration set:heading:start -->
261
-
262
154
  #### tailordb migration set
263
155
 
264
- <!-- politty:command:tailordb migration set:heading:end -->
265
-
266
- <!-- politty:command:tailordb migration set:description:start -->
267
-
268
156
  Set migration checkpoint to a specific number.
269
157
 
270
- <!-- politty:command:tailordb migration set:description:end -->
271
-
272
- <!-- politty:command:tailordb migration set:usage:start -->
273
-
274
158
  **Usage**
275
159
 
276
160
  ```
277
161
  tailor-sdk tailordb migration set [options] <number>
278
162
  ```
279
163
 
280
- <!-- politty:command:tailordb migration set:usage:end -->
281
-
282
- <!-- politty:command:tailordb migration set:arguments:start -->
283
-
284
164
  **Arguments**
285
165
 
286
166
  | Argument | Description | Required |
287
167
  | -------- | ----------------------------------------- | -------- |
288
168
  | `number` | Migration number to set (e.g., 0001 or 1) | Yes |
289
169
 
290
- <!-- politty:command:tailordb migration set:arguments:end -->
291
-
292
- <!-- politty:command:tailordb migration set:options:start -->
293
-
294
170
  **Options**
295
171
 
296
172
  | Option | Alias | Description | Required | Default | Env |
@@ -301,37 +177,18 @@ tailor-sdk tailordb migration set [options] <number>
301
177
  | `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
302
178
  | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | No | - | - |
303
179
 
304
- <!-- politty:command:tailordb migration set:options:end -->
305
-
306
- <!-- politty:command:tailordb migration set:global-options-link:start -->
307
-
308
180
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
309
181
 
310
- <!-- politty:command:tailordb migration set:global-options-link:end -->
311
- <!-- politty:command:tailordb migration status:heading:start -->
312
-
313
182
  #### tailordb migration status
314
183
 
315
- <!-- politty:command:tailordb migration status:heading:end -->
316
-
317
- <!-- politty:command:tailordb migration status:description:start -->
318
-
319
184
  Show the current migration status for TailorDB namespaces, including applied and pending migrations.
320
185
 
321
- <!-- politty:command:tailordb migration status:description:end -->
322
-
323
- <!-- politty:command:tailordb migration status:usage:start -->
324
-
325
186
  **Usage**
326
187
 
327
188
  ```
328
189
  tailor-sdk tailordb migration status [options]
329
190
  ```
330
191
 
331
- <!-- politty:command:tailordb migration status:usage:end -->
332
-
333
- <!-- politty:command:tailordb migration status:options:start -->
334
-
335
192
  **Options**
336
193
 
337
194
  | Option | Alias | Description | Required | Default | Env |
@@ -341,48 +198,24 @@ tailor-sdk tailordb migration status [options]
341
198
  | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
342
199
  | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (shows all namespaces if not specified) | No | - | - |
343
200
 
344
- <!-- politty:command:tailordb migration status:options:end -->
345
-
346
- <!-- politty:command:tailordb migration status:global-options-link:start -->
347
-
348
201
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
349
202
 
350
- <!-- politty:command:tailordb migration status:global-options-link:end -->
351
-
352
- <!-- politty:command:tailordb migration sync:heading:start -->
353
-
354
203
  #### tailordb migration sync
355
204
 
356
- <!-- politty:command:tailordb migration sync:heading:end -->
357
-
358
- <!-- politty:command:tailordb migration sync:description:start -->
359
-
360
205
  Sync remote TailorDB schema to a specific migration snapshot (recovery from --no-schema-check drift).
361
206
 
362
- <!-- politty:command:tailordb migration sync:description:end -->
363
-
364
- <!-- politty:command:tailordb migration sync:usage:start -->
365
-
366
207
  **Usage**
367
208
 
368
209
  ```
369
210
  tailor-sdk tailordb migration sync [options] <number>
370
211
  ```
371
212
 
372
- <!-- politty:command:tailordb migration sync:usage:end -->
373
-
374
- <!-- politty:command:tailordb migration sync:arguments:start -->
375
-
376
213
  **Arguments**
377
214
 
378
215
  | Argument | Description | Required |
379
216
  | -------- | ------------------------------------------------------------------------------ | -------- |
380
217
  | `number` | Migration number to sync to (e.g., 0001 or 1; 0 targets the baseline snapshot) | Yes |
381
218
 
382
- <!-- politty:command:tailordb migration sync:arguments:end -->
383
-
384
- <!-- politty:command:tailordb migration sync:options:start -->
385
-
386
219
  **Options**
387
220
 
388
221
  | Option | Alias | Description | Required | Default | Env |
@@ -393,79 +226,41 @@ tailor-sdk tailordb migration sync [options] <number>
393
226
  | `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
394
227
  | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | No | - | - |
395
228
 
396
- <!-- politty:command:tailordb migration sync:options:end -->
397
-
398
- <!-- politty:command:tailordb migration sync:global-options-link:start -->
399
-
400
229
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
401
230
 
402
- <!-- politty:command:tailordb migration sync:global-options-link:end -->
403
-
404
231
  **See also:** For migration concepts, configuration, workflow, and troubleshooting, see the [TailorDB Migrations guide](../services/tailordb-migration.md).
405
232
 
406
- <!-- politty:command:tailordb erd:heading:start -->
407
-
408
233
  ### tailordb erd
409
234
 
410
- <!-- politty:command:tailordb erd:heading:end -->
411
-
412
- <!-- politty:command:tailordb erd:description:start -->
413
-
414
235
  Generate TailorDB ERD viewer artifacts from local TailorDB schema. (beta)
415
236
 
416
- <!-- politty:command:tailordb erd:description:end -->
417
-
418
- <!-- politty:command:tailordb erd:usage:start -->
419
-
420
237
  **Usage**
421
238
 
422
239
  ```
423
- tailor-sdk tailordb erd [command]
240
+ tailor-sdk tailordb erd <command>
424
241
  ```
425
242
 
426
- <!-- politty:command:tailordb erd:usage:end -->
427
-
428
- <!-- politty:command:tailordb erd:subcommands:start -->
243
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
429
244
 
430
245
  **Commands**
431
246
 
432
247
  | Command | Description |
433
248
  | --------------------------------------------- | ----------------------------------------------------------------- |
434
249
  | [`tailordb erd export`](#tailordb-erd-export) | Export TailorDB ERD static viewer from local TailorDB schema. |
250
+ | [`tailordb erd diff`](#tailordb-erd-diff) | Render TailorDB ERD schema diff HTML from exported ERD viewers. |
435
251
  | [`tailordb erd serve`](#tailordb-erd-serve) | Generate and serve TailorDB ERD locally with watch reload. (beta) |
436
252
  | [`tailordb erd deploy`](#tailordb-erd-deploy) | Deploy ERD static website for TailorDB namespace(s). |
437
253
 
438
- <!-- politty:command:tailordb erd:subcommands:end -->
439
-
440
- <!-- politty:command:tailordb erd:global-options-link:start -->
441
-
442
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
443
-
444
- <!-- politty:command:tailordb erd:global-options-link:end -->
445
- <!-- politty:command:tailordb erd export:heading:start -->
446
-
447
254
  #### tailordb erd export
448
255
 
449
- <!-- politty:command:tailordb erd export:heading:end -->
450
-
451
- <!-- politty:command:tailordb erd export:description:start -->
452
-
453
256
  Export TailorDB ERD static viewer from local TailorDB schema.
454
257
 
455
- <!-- politty:command:tailordb erd export:description:end -->
456
-
457
- <!-- politty:command:tailordb erd export:usage:start -->
458
-
459
258
  **Usage**
460
259
 
461
260
  ```
462
261
  tailor-sdk tailordb erd export [options]
463
262
  ```
464
263
 
465
- <!-- politty:command:tailordb erd export:usage:end -->
466
-
467
- <!-- politty:command:tailordb erd export:options:start -->
468
-
469
264
  **Options**
470
265
 
471
266
  | Option | Alias | Description | Required | Default | Env |
@@ -474,26 +269,33 @@ tailor-sdk tailordb erd export [options]
474
269
  | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (optional if only one namespace is defined in config) | No | - | - |
475
270
  | `--output <OUTPUT>` | `-o` | Output directory path for TailorDB ERD viewer files (writes to `<outputDir>/<namespace>/dist`) | No | `".tailor-sdk/erd"` | - |
476
271
 
477
- <!-- politty:command:tailordb erd export:options:end -->
272
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
478
273
 
479
- <!-- politty:command:tailordb erd export:global-options-link:start -->
274
+ #### tailordb erd diff
480
275
 
481
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
276
+ Render TailorDB ERD schema diff HTML from exported ERD viewers.
482
277
 
483
- <!-- politty:command:tailordb erd export:global-options-link:end -->
484
- <!-- politty:command:tailordb erd serve:heading:start -->
278
+ **Usage**
485
279
 
486
- #### tailordb erd serve
280
+ ```
281
+ tailor-sdk tailordb erd diff [options]
282
+ ```
487
283
 
488
- <!-- politty:command:tailordb erd serve:heading:end -->
284
+ **Options**
489
285
 
490
- <!-- politty:command:tailordb erd serve:description:start -->
286
+ | Option | Alias | Description | Required | Default |
287
+ | ----------------------------- | ----- | ----------------------------------------------------------------------- | -------- | ------- |
288
+ | `--base-html <BASE_HTML>` | - | Base ERD viewer HTML file | No | - |
289
+ | `--head-html <HEAD_HTML>` | - | Head ERD viewer HTML file | No | - |
290
+ | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (defaults to the provided ERD schema namespace) | No | - |
291
+ | `--output <OUTPUT>` | `-o` | Output ERD diff HTML file | Yes | - |
292
+ | `--output-json <OUTPUT_JSON>` | - | Optional output JSON file for the computed diff | No | - |
491
293
 
492
- Generate and serve TailorDB ERD locally with watch reload. (beta)
294
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
493
295
 
494
- <!-- politty:command:tailordb erd serve:description:end -->
296
+ #### tailordb erd serve
495
297
 
496
- <!-- politty:command:tailordb erd serve:usage:start -->
298
+ Generate and serve TailorDB ERD locally with watch reload. (beta)
497
299
 
498
300
  **Usage**
499
301
 
@@ -501,10 +303,6 @@ Generate and serve TailorDB ERD locally with watch reload. (beta)
501
303
  tailor-sdk tailordb erd serve [options]
502
304
  ```
503
305
 
504
- <!-- politty:command:tailordb erd serve:usage:end -->
505
-
506
- <!-- politty:command:tailordb erd serve:options:start -->
507
-
508
306
  **Options**
509
307
 
510
308
  | Option | Alias | Description | Required | Default | Env |
@@ -514,37 +312,18 @@ tailor-sdk tailordb erd serve [options]
514
312
  | `--port <PORT>` | - | Local server port (0 selects a free port) | No | `0` | - |
515
313
  | `--open` | - | Open the ERD viewer in the default browser | No | `false` | - |
516
314
 
517
- <!-- politty:command:tailordb erd serve:options:end -->
518
-
519
- <!-- politty:command:tailordb erd serve:global-options-link:start -->
520
-
521
315
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
522
316
 
523
- <!-- politty:command:tailordb erd serve:global-options-link:end -->
524
- <!-- politty:command:tailordb erd deploy:heading:start -->
525
-
526
317
  #### tailordb erd deploy
527
318
 
528
- <!-- politty:command:tailordb erd deploy:heading:end -->
529
-
530
- <!-- politty:command:tailordb erd deploy:description:start -->
531
-
532
319
  Deploy ERD static website for TailorDB namespace(s).
533
320
 
534
- <!-- politty:command:tailordb erd deploy:description:end -->
535
-
536
- <!-- politty:command:tailordb erd deploy:usage:start -->
537
-
538
321
  **Usage**
539
322
 
540
323
  ```
541
324
  tailor-sdk tailordb erd deploy [options]
542
325
  ```
543
326
 
544
- <!-- politty:command:tailordb erd deploy:usage:end -->
545
-
546
- <!-- politty:command:tailordb erd deploy:options:start -->
547
-
548
327
  **Options**
549
328
 
550
329
  | Option | Alias | Description | Required | Default | Env |
@@ -554,18 +333,13 @@ tailor-sdk tailordb erd deploy [options]
554
333
  | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
555
334
  | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (optional - deploys all namespaces with erdSite if omitted) | No | - | - |
556
335
 
557
- <!-- politty:command:tailordb erd deploy:options:end -->
558
-
559
- <!-- politty:command:tailordb erd deploy:global-options-link:start -->
560
-
561
336
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
562
337
 
563
- <!-- politty:command:tailordb erd deploy:global-options-link:end -->
564
-
565
338
  **Notes:**
566
339
 
567
340
  - ERD commands build from the local TailorDB schema, including plugin-generated TailorDB types.
568
341
  - `tailordb erd export` writes a self-contained `index.html` viewer to `<output>/<namespace>/dist`.
342
+ - `tailordb erd diff` compares exported self-contained viewer HTML files and writes a visual ERD viewer that can switch between the current schema and the highlighted diff.
569
343
  - `tailordb erd serve` watches the config file and TailorDB type files, then reloads the browser viewer when the rebuilt `index.html` reports a new embedded schema revision.
570
344
  - `tailordb erd deploy` still requires `erdSite` in `tailor.config.ts` because it uploads the generated viewer to a configured Static Website.
571
345
 
@@ -1,27 +1,13 @@
1
- <!-- politty:command:upgrade:heading:start -->
2
-
3
1
  ## upgrade
4
2
 
5
- <!-- politty:command:upgrade:heading:end -->
6
-
7
- <!-- politty:command:upgrade:description:start -->
8
-
9
3
  Run codemods to upgrade your project to a newer SDK version.
10
4
 
11
- <!-- politty:command:upgrade:description:end -->
12
-
13
- <!-- politty:command:upgrade:usage:start -->
14
-
15
5
  **Usage**
16
6
 
17
7
  ```
18
8
  tailor-sdk upgrade [options]
19
9
  ```
20
10
 
21
- <!-- politty:command:upgrade:usage:end -->
22
-
23
- <!-- politty:command:upgrade:options:start -->
24
-
25
11
  **Options**
26
12
 
27
13
  | Option | Alias | Description | Required | Default |
@@ -30,14 +16,8 @@ tailor-sdk upgrade [options]
30
16
  | `--dry-run` | `-d` | Preview changes without modifying files | No | `false` |
31
17
  | `--path <PATH>` | - | Project directory to upgrade | No | `"."` |
32
18
 
33
- <!-- politty:command:upgrade:options:end -->
34
-
35
- <!-- politty:command:upgrade:global-options-link:start -->
36
-
37
19
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
38
20
 
39
- <!-- politty:command:upgrade:global-options-link:end -->
40
-
41
21
  ### How It Works
42
22
 
43
23
  The `upgrade` command runs codemods that automatically transform your project code for breaking changes between SDK versions. The target version (`--to`) is auto-detected from the installed `@tailor-platform/sdk` in `node_modules`.