@tailor-platform/sdk 2.0.0-next.2 → 2.0.0-next.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.
Files changed (441) hide show
  1. package/CHANGELOG.md +511 -10
  2. package/README.md +9 -9
  3. package/agent-skills/{tailor-sdk → tailor}/SKILL.md +3 -1
  4. package/dist/aigateway-DR4Kwuik.mjs +9 -0
  5. package/dist/aigateway-DR4Kwuik.mjs.map +1 -0
  6. package/dist/application-BO4ZF8wP.mjs +3 -0
  7. package/dist/application-BX13RArL.mjs +6669 -0
  8. package/dist/application-BX13RArL.mjs.map +1 -0
  9. package/dist/authconnection-CZvi9ANm.mjs +9 -0
  10. package/dist/authconnection-CZvi9ANm.mjs.map +1 -0
  11. package/dist/brand-Eo4pLXPJ.mjs.map +1 -1
  12. package/dist/cli/cache/bundle-cache.d.mts +1 -0
  13. package/dist/cli/cache/store.d.mts +1 -0
  14. package/dist/cli/cache/types.d.mts +1 -0
  15. package/dist/cli/commands/api/api-call.d.mts +19 -0
  16. package/dist/cli/commands/api/index.d.mts +3 -0
  17. package/dist/cli/commands/deploy/aigateway.d.mts +1 -0
  18. package/dist/cli/commands/deploy/application.d.mts +1 -0
  19. package/dist/cli/commands/deploy/apply-phases.d.mts +1 -0
  20. package/dist/cli/commands/deploy/auth.d.mts +1 -0
  21. package/dist/cli/commands/deploy/deploy.d.mts +24 -0
  22. package/dist/cli/commands/deploy/executor.d.mts +1 -0
  23. package/dist/cli/commands/deploy/function-registry-types.d.mts +12 -0
  24. package/dist/cli/commands/deploy/function-registry.d.mts +2 -0
  25. package/dist/cli/commands/deploy/idp.d.mts +1 -0
  26. package/dist/cli/commands/deploy/resolver.d.mts +1 -0
  27. package/dist/cli/commands/deploy/secret-manager.d.mts +1 -0
  28. package/dist/cli/commands/deploy/staticwebsite.d.mts +1 -0
  29. package/dist/cli/commands/deploy/tailordb/index.d.mts +1 -0
  30. package/dist/cli/commands/deploy/types.d.mts +1 -0
  31. package/dist/cli/commands/deploy/workflow-execution-policy.d.mts +1 -0
  32. package/dist/cli/commands/deploy/workflow.d.mts +1 -0
  33. package/dist/cli/commands/executor/get.d.mts +29 -0
  34. package/dist/cli/commands/executor/jobs.d.mts +123 -0
  35. package/dist/cli/commands/executor/list.d.mts +19 -0
  36. package/dist/cli/commands/executor/transform.d.mts +41 -0
  37. package/dist/cli/commands/executor/trigger.d.mts +41 -0
  38. package/dist/cli/commands/executor/webhook.d.mts +22 -0
  39. package/dist/cli/commands/function/get.d.mts +18 -0
  40. package/dist/cli/commands/function/list.d.mts +22 -0
  41. package/dist/cli/commands/function/transform.d.mts +11 -0
  42. package/dist/cli/commands/generate/options.d.mts +7 -0
  43. package/dist/cli/commands/generate/seed/bundler.d.mts +26 -0
  44. package/dist/cli/commands/generate/service.d.mts +11 -0
  45. package/dist/cli/commands/machineuser/list.d.mts +27 -0
  46. package/dist/cli/commands/machineuser/token.d.mts +22 -0
  47. package/dist/cli/commands/oauth2client/get.d.mts +18 -0
  48. package/dist/cli/commands/oauth2client/list.d.mts +20 -0
  49. package/dist/cli/commands/oauth2client/transform.d.mts +20 -0
  50. package/dist/cli/commands/organization/folder/create.d.mts +18 -0
  51. package/dist/cli/commands/organization/folder/delete.d.mts +16 -0
  52. package/dist/cli/commands/organization/folder/get.d.mts +17 -0
  53. package/dist/cli/commands/organization/folder/list.d.mts +22 -0
  54. package/dist/cli/commands/organization/folder/update.d.mts +18 -0
  55. package/dist/cli/commands/organization/get.d.mts +16 -0
  56. package/dist/cli/commands/organization/list.d.mts +15 -0
  57. package/dist/cli/commands/organization/transform.d.mts +27 -0
  58. package/dist/cli/commands/organization/tree.d.mts +25 -0
  59. package/dist/cli/commands/organization/update.d.mts +17 -0
  60. package/dist/cli/commands/remove.d.mts +16 -0
  61. package/dist/cli/commands/show.d.mts +34 -0
  62. package/dist/cli/commands/tailordb/migrate/bundler.d.mts +28 -0
  63. package/dist/cli/commands/tailordb/migrate/config.d.mts +19 -0
  64. package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +223 -0
  65. package/dist/cli/commands/tailordb/migrate/generate.d.mts +17 -0
  66. package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +202 -0
  67. package/dist/cli/commands/tailordb/migrate/snapshot.d.mts +98 -0
  68. package/dist/cli/commands/tailordb/migrate/types.d.mts +7 -0
  69. package/dist/cli/commands/tailordb/truncate.d.mts +19 -0
  70. package/dist/cli/commands/workflow/executions.d.mts +75 -0
  71. package/dist/cli/commands/workflow/get.d.mts +29 -0
  72. package/dist/cli/commands/workflow/list.d.mts +19 -0
  73. package/dist/cli/commands/workflow/resume.d.mts +23 -0
  74. package/dist/cli/commands/workflow/start.d.mts +61 -0
  75. package/dist/cli/commands/workflow/status.d.mts +5 -0
  76. package/dist/cli/commands/workflow/transform.d.mts +33 -0
  77. package/dist/cli/commands/workflow/wait.d.mts +16 -0
  78. package/dist/cli/commands/workflow/waiter.d.mts +23 -0
  79. package/dist/cli/commands/workspace/app/health.d.mts +18 -0
  80. package/dist/cli/commands/workspace/app/list.d.mts +22 -0
  81. package/dist/cli/commands/workspace/app/transform.d.mts +18 -0
  82. package/dist/cli/commands/workspace/create.d.mts +25 -0
  83. package/dist/cli/commands/workspace/delete.d.mts +15 -0
  84. package/dist/cli/commands/workspace/get.d.mts +17 -0
  85. package/dist/cli/commands/workspace/list.d.mts +17 -0
  86. package/dist/cli/commands/workspace/restore.d.mts +15 -0
  87. package/dist/cli/commands/workspace/transform.d.mts +16 -0
  88. package/dist/cli/commands/workspace/user/invite.d.mts +22 -0
  89. package/dist/cli/commands/workspace/user/list.d.mts +22 -0
  90. package/dist/cli/commands/workspace/user/remove.d.mts +17 -0
  91. package/dist/cli/commands/workspace/user/transform.d.mts +8 -0
  92. package/dist/cli/commands/workspace/user/update.d.mts +22 -0
  93. package/dist/cli/erd-viewer-assets/app.js +279 -36
  94. package/dist/cli/erd-viewer-assets/index.html +4 -0
  95. package/dist/cli/erd-viewer-assets/styles.css +252 -5
  96. package/dist/cli/index.d.mts +18 -3
  97. package/dist/cli/index.mjs +2237 -520
  98. package/dist/cli/index.mjs.map +1 -1
  99. package/dist/cli/lib.d.mts +81 -21107
  100. package/dist/cli/lib.mjs +7 -10
  101. package/dist/cli/lib.mjs.map +1 -1
  102. package/dist/cli/query/index.d.mts +39 -0
  103. package/dist/cli/services/application.d.mts +1 -0
  104. package/dist/cli/services/auth/service.d.mts +1 -0
  105. package/dist/cli/services/executor/service.d.mts +1 -0
  106. package/dist/cli/services/http-adapter/bundler.d.mts +1 -0
  107. package/dist/cli/services/http-adapter/service.d.mts +1 -0
  108. package/dist/cli/services/resolver/service.d.mts +1 -0
  109. package/dist/cli/services/tailordb/service.d.mts +1 -0
  110. package/dist/cli/services/workflow/bundler.d.mts +1 -0
  111. package/dist/cli/services/workflow/service.d.mts +1 -0
  112. package/dist/cli/shared/args.d.mts +13 -0
  113. package/dist/cli/shared/client.d.mts +1273 -0
  114. package/dist/cli/shared/config-loader.d.mts +26 -0
  115. package/dist/cli/shared/context.d.mts +28 -0
  116. package/dist/cli/shared/script-executor.d.mts +75 -0
  117. package/dist/cli/shared/seed-chunker.d.mts +46 -0
  118. package/dist/cli/shared/trigger-context.d.mts +1 -0
  119. package/dist/cli/shared/type-generator.d.mts +20 -0
  120. package/dist/cli/ts-hook.d.mts +4 -0
  121. package/dist/cli/ts-hook.mjs +333 -0
  122. package/dist/completion/zsh-worker.zsh +1531 -1131
  123. package/dist/configure/config/index.d.mts +21 -0
  124. package/dist/configure/config/types.d.mts +105 -0
  125. package/dist/configure/index.d.mts +124 -9
  126. package/dist/configure/index.mjs +136 -23
  127. package/dist/configure/index.mjs.map +1 -1
  128. package/dist/configure/services/aigateway/index.d.mts +17 -0
  129. package/dist/configure/services/aigateway/types.d.mts +11 -0
  130. package/dist/configure/services/auth/index.d.mts +34 -0
  131. package/dist/configure/services/auth/types.d.mts +172 -0
  132. package/dist/configure/services/executor/executor.d.mts +81 -0
  133. package/dist/configure/services/executor/index.d.mts +8 -0
  134. package/dist/configure/services/executor/operation.d.mts +45 -0
  135. package/dist/configure/services/executor/trigger/event.d.mts +272 -0
  136. package/dist/configure/services/executor/trigger/index.d.mts +8 -0
  137. package/dist/configure/services/executor/trigger/schedule.d.mts +25 -0
  138. package/dist/configure/services/executor/trigger/webhook.d.mts +44 -0
  139. package/dist/configure/services/executor/types.d.mts +2 -0
  140. package/dist/configure/services/http-adapter/http-adapter.d.mts +125 -0
  141. package/dist/configure/services/http-adapter/index.d.mts +2 -0
  142. package/dist/configure/services/idp/index.d.mts +64 -0
  143. package/dist/configure/services/idp/permission.d.mts +80 -0
  144. package/dist/configure/services/idp/types.d.mts +20 -0
  145. package/dist/configure/services/index.d.mts +34 -0
  146. package/dist/configure/services/resolver/index.d.mts +5 -0
  147. package/dist/configure/services/resolver/resolver.d.mts +75 -0
  148. package/dist/configure/services/resolver/types.d.mts +6 -0
  149. package/dist/configure/services/secrets/index.d.mts +38 -0
  150. package/dist/configure/services/secrets/types.d.mts +11 -0
  151. package/dist/configure/services/staticwebsite/index.d.mts +19 -0
  152. package/dist/configure/services/staticwebsite/types.d.mts +11 -0
  153. package/dist/configure/services/tailordb/index.d.mts +4 -0
  154. package/dist/configure/services/tailordb/permission.d.mts +119 -0
  155. package/dist/configure/services/tailordb/schema.d.mts +456 -0
  156. package/dist/configure/services/tailordb/types.d.mts +149 -0
  157. package/dist/configure/services/workflow/execution-policy.d.mts +71 -0
  158. package/dist/configure/services/workflow/execution-policy.types.d.mts +104 -0
  159. package/dist/configure/services/workflow/index.d.mts +8 -0
  160. package/dist/configure/services/workflow/job.d.mts +84 -0
  161. package/dist/configure/services/workflow/types.d.mts +2 -0
  162. package/dist/configure/services/workflow/wait-point.d.mts +73 -0
  163. package/dist/configure/services/workflow/workflow.d.mts +54 -0
  164. package/dist/configure/types/aigateway-name.d.mts +12 -0
  165. package/dist/configure/types/connection-name.d.mts +12 -0
  166. package/dist/configure/types/field-runtime.d.mts +17 -0
  167. package/dist/configure/types/field.d.mts +9 -0
  168. package/dist/configure/types/field.types.d.mts +109 -0
  169. package/dist/configure/types/idp-name.d.mts +12 -0
  170. package/dist/configure/types/index.d.mts +4 -0
  171. package/dist/configure/types/machine-user.d.mts +2 -0
  172. package/dist/configure/types/type.d.mts +82 -0
  173. package/dist/{context-Bd266-ru.mjs → context-DYQVYWqZ.mjs} +4 -5
  174. package/dist/context-DYQVYWqZ.mjs.map +1 -0
  175. package/dist/{crashreport-DFq-vsU0.mjs → crashreport-Cg-pqRJV.mjs} +6 -6
  176. package/dist/{crashreport-DFq-vsU0.mjs.map → crashreport-Cg-pqRJV.mjs.map} +1 -1
  177. package/dist/{crashreport-BMWcxeSE.mjs → crashreport-D3RjuSYb.mjs} +1 -1
  178. package/dist/enum-constants-j9QBF0cB.mjs.map +1 -1
  179. package/dist/{errors-Dtf2WPaW.mjs → errors-118wUDRr.mjs} +2 -2
  180. package/dist/errors-118wUDRr.mjs.map +1 -0
  181. package/dist/field-runtime-CAnh_oow.mjs +183 -0
  182. package/dist/field-runtime-CAnh_oow.mjs.map +1 -0
  183. package/dist/{file-BbdFGdMV.mjs → file-BUcmVIH2.mjs} +12 -14
  184. package/dist/file-BUcmVIH2.mjs.map +1 -0
  185. package/dist/{file-utils-CYZnO1pX.mjs → file-utils-yEiIS4nJ.mjs} +2 -2
  186. package/dist/file-utils-yEiIS4nJ.mjs.map +1 -0
  187. package/dist/{globals-Cf0sxIt8.mjs → globals-BjhJJ2dN.mjs} +5 -47
  188. package/dist/globals-BjhJJ2dN.mjs.map +1 -0
  189. package/dist/iconv-QWaZh0TT.mjs +38 -0
  190. package/dist/iconv-QWaZh0TT.mjs.map +1 -0
  191. package/dist/{idp-BDbK5gjm.mjs → idp-RA_swu-h.mjs} +12 -5
  192. package/dist/idp-RA_swu-h.mjs.map +1 -0
  193. package/dist/{interceptor-D-q1rvRl.mjs → interceptor-e33JtsC-.mjs} +2 -2
  194. package/dist/interceptor-e33JtsC-.mjs.map +1 -0
  195. package/dist/kysely/index.d.mts +2 -3
  196. package/dist/{kysely-type-DR8uzZTA.mjs → kysely-type-D-zflMGf.mjs} +2 -2
  197. package/dist/{kysely-type-DR8uzZTA.mjs.map → kysely-type-D-zflMGf.mjs.map} +1 -1
  198. package/dist/{logger-CxF-Ex5d.mjs → logger-BEiZZ3qT.mjs} +3 -3
  199. package/dist/{logger-CxF-Ex5d.mjs.map → logger-BEiZZ3qT.mjs.map} +1 -1
  200. package/dist/parser/service/auth/index.d.mts +1 -0
  201. package/dist/parser/service/auth/schema.d.mts +1 -0
  202. package/dist/parser/service/http-adapter/index.d.mts +1 -0
  203. package/dist/parser/service/http-adapter/schema.d.mts +1 -0
  204. package/dist/parser/service/idp/types.d.mts +4 -0
  205. package/dist/parser/service/tailordb/types.d.mts +126 -0
  206. package/dist/platform-serialize-RoRtBS0v.mjs +46 -0
  207. package/dist/platform-serialize-RoRtBS0v.mjs.map +1 -0
  208. package/dist/plugin/builtin/enum-constants/index.d.mts +16 -1
  209. package/dist/plugin/builtin/file-utils/index.d.mts +16 -1
  210. package/dist/plugin/builtin/file-utils/index.mjs +1 -1
  211. package/dist/plugin/builtin/kysely-type/index.d.mts +16 -1
  212. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  213. package/dist/plugin/builtin/seed/index.d.mts +45 -1
  214. package/dist/plugin/builtin/seed/index.mjs +1 -1
  215. package/dist/plugin/get-generated-type.d.mts +17 -0
  216. package/dist/plugin/index.d.mts +3 -118
  217. package/dist/plugin/index.mjs +1 -1
  218. package/dist/plugin/index.mjs.map +1 -1
  219. package/dist/plugin/manager.d.mts +1 -0
  220. package/dist/plugin/types.d.mts +243 -0
  221. package/dist/plugin/with-context.d.mts +102 -0
  222. package/dist/{runtime-CY4JvrDj.mjs → register-ts-hook-BM1caLT0.mjs} +4128 -2744
  223. package/dist/register-ts-hook-BM1caLT0.mjs.map +1 -0
  224. package/dist/{registry-DH4m7eYo.mjs → registry-BSbq6SPo.mjs} +4 -3
  225. package/dist/registry-BSbq6SPo.mjs.map +1 -0
  226. package/dist/{repl-editor-DmGr9zMw.mjs → repl-editor-BCozyiNq.mjs} +6 -5
  227. package/dist/{repl-editor-DmGr9zMw.mjs.map → repl-editor-BCozyiNq.mjs.map} +1 -1
  228. package/dist/resource_pb-BRv7AMXK.mjs +49 -0
  229. package/dist/resource_pb-BRv7AMXK.mjs.map +1 -0
  230. package/dist/runtime/aigateway.d.mts +26 -0
  231. package/dist/runtime/aigateway.mjs +3 -0
  232. package/dist/runtime/authconnection.d.mts +22 -2
  233. package/dist/runtime/authconnection.mjs +2 -2
  234. package/dist/runtime/context.d.mts +55 -2
  235. package/dist/runtime/context.mjs +2 -2
  236. package/dist/runtime/file.d.mts +170 -2
  237. package/dist/runtime/file.mjs +2 -2
  238. package/dist/runtime/globals.d.mts +31 -19
  239. package/dist/runtime/iconv.d.mts +73 -2
  240. package/dist/runtime/iconv.mjs +2 -2
  241. package/dist/runtime/idp.d.mts +129 -2
  242. package/dist/runtime/idp.mjs +2 -2
  243. package/dist/runtime/index.d.mts +47 -9
  244. package/dist/runtime/index.mjs +9 -8
  245. package/dist/runtime/secretmanager.d.mts +41 -2
  246. package/dist/runtime/secretmanager.mjs +2 -2
  247. package/dist/{types-BZ7QKVE8.d.mts → runtime/types.d.mts} +4 -5
  248. package/dist/runtime/workflow.d.mts +113 -2
  249. package/dist/runtime/workflow.mjs +2 -2
  250. package/dist/{schema-Dtw9Orye.mjs → schema-C4LYbXVG.mjs} +21 -186
  251. package/dist/schema-C4LYbXVG.mjs.map +1 -0
  252. package/dist/{secret-file-VSVGy1V0.mjs → secret-file-aoNXJmKa.mjs} +3 -3
  253. package/dist/secret-file-aoNXJmKa.mjs.map +1 -0
  254. package/dist/secretmanager-Bd45j7an.mjs +98 -0
  255. package/dist/secretmanager-Bd45j7an.mjs.map +1 -0
  256. package/dist/secretmanager-CYlpffsz.mjs +13 -0
  257. package/dist/secretmanager-CYlpffsz.mjs.map +1 -0
  258. package/dist/seed/index.d.mts +1 -2
  259. package/dist/{seed-izIEyP3z.mjs → seed-CRSQJI_z.mjs} +14 -3
  260. package/dist/seed-CRSQJI_z.mjs.map +1 -0
  261. package/dist/service-CkIwEctX.mjs +3 -0
  262. package/dist/{service-DU1mVzri2.mjs → service-DeZeYa06.mjs} +3 -3
  263. package/dist/service-DeZeYa06.mjs.map +1 -0
  264. package/dist/{service-DjyqbCaJ.mjs → service-ufH7sS8o.mjs} +396 -58
  265. package/dist/service-ufH7sS8o.mjs.map +1 -0
  266. package/dist/service_pb-B2FF59sP.mjs +3 -0
  267. package/dist/service_pb-B5w9rjPY.mjs +955 -0
  268. package/dist/service_pb-B5w9rjPY.mjs.map +1 -0
  269. package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +204 -0
  270. package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +58 -0
  271. package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +316 -0
  272. package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +161 -0
  273. package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +2070 -0
  274. package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +861 -0
  275. package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +112 -0
  276. package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +69 -0
  277. package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +439 -0
  278. package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +564 -0
  279. package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +145 -0
  280. package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +451 -0
  281. package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +192 -0
  282. package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +50 -0
  283. package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +407 -0
  284. package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +430 -0
  285. package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +73 -0
  286. package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +17 -0
  287. package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +309 -0
  288. package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +591 -0
  289. package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +330 -0
  290. package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +113 -0
  291. package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +346 -0
  292. package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +54 -0
  293. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +3576 -0
  294. package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +187 -0
  295. package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +29 -0
  296. package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +429 -0
  297. package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +90 -0
  298. package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +684 -0
  299. package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +797 -0
  300. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +330 -0
  301. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +183 -0
  302. package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +862 -0
  303. package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +310 -0
  304. package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +2015 -0
  305. package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +483 -0
  306. package/dist/{telemetry-CdqJEzkj.mjs → telemetry-BRVdwh14.mjs} +3 -3
  307. package/dist/telemetry-BRVdwh14.mjs.map +1 -0
  308. package/dist/telemetry-CkbkeJxl.mjs +3 -0
  309. package/dist/types/aigateway.generated.d.mts +9 -0
  310. package/dist/types/app-config.generated.d.mts +4 -0
  311. package/dist/types/auth-connection.generated.d.mts +20 -0
  312. package/dist/types/auth.generated.d.mts +145 -0
  313. package/dist/types/executor.generated.d.mts +177 -0
  314. package/dist/types/helpers.d.mts +39 -0
  315. package/dist/types/http-adapter.generated.d.mts +17 -0
  316. package/dist/{workflow.generated-ClEjBYhm.d.mts → types/idp.generated.d.mts} +98 -185
  317. package/dist/types/resolver.generated.d.mts +39 -0
  318. package/dist/types/secrets.generated.d.mts +14 -0
  319. package/dist/types/staticwebsite.generated.d.mts +10 -0
  320. package/dist/{types-CdcQh4Z2.d.mts → types/tailordb.generated.d.mts} +2 -287
  321. package/dist/types/workflow.generated.d.mts +12 -0
  322. package/dist/types-C-lQ4se3.mjs +4 -0
  323. package/dist/types-CXF2OYdR.mjs +199 -0
  324. package/dist/types-CXF2OYdR.mjs.map +1 -0
  325. package/dist/utils/test/index.d.mts +5 -89
  326. package/dist/utils/test/index.mjs.map +1 -1
  327. package/dist/utils/test/mock.d.mts +87 -0
  328. package/dist/vitest/environment.d.mts +1 -2
  329. package/dist/vitest/environment.mjs +2 -2
  330. package/dist/vitest/environment.mjs.map +1 -1
  331. package/dist/vitest/index.d.mts +12 -428
  332. package/dist/vitest/index.mjs +740 -9
  333. package/dist/vitest/index.mjs.map +1 -1
  334. package/dist/vitest/mock-kysely.d.mts +62 -0
  335. package/dist/vitest/mock.d.mts +9 -0
  336. package/dist/vitest/mocks/aigateway.d.mts +30 -0
  337. package/dist/vitest/mocks/authconnection.d.mts +28 -0
  338. package/dist/vitest/mocks/file.d.mts +41 -0
  339. package/dist/vitest/mocks/iconv.d.mts +27 -0
  340. package/dist/vitest/mocks/idp.d.mts +44 -0
  341. package/dist/vitest/mocks/secretmanager.d.mts +33 -0
  342. package/dist/vitest/mocks/tailordb.d.mts +71 -0
  343. package/dist/vitest/mocks/workflow.d.mts +117 -0
  344. package/dist/vitest/setup.d.mts +1 -2
  345. package/dist/vitest/setup.mjs +2 -2
  346. package/dist/vitest/workflow-local.d.mts +40 -0
  347. package/dist/workflow-GNuSnsTx.mjs +22 -0
  348. package/dist/workflow-GNuSnsTx.mjs.map +1 -0
  349. package/docs/cli/application.md +98 -250
  350. package/docs/cli/auth.md +51 -295
  351. package/docs/cli/completion.md +1 -25
  352. package/docs/cli/crashreport.md +3 -61
  353. package/docs/cli/executor.md +23 -187
  354. package/docs/cli/function.md +14 -130
  355. package/docs/cli/organization.md +11 -221
  356. package/docs/cli/plugin.md +29 -0
  357. package/docs/cli/query.md +2 -22
  358. package/docs/cli/secret.md +71 -251
  359. package/docs/cli/setup.md +137 -41
  360. package/docs/cli/skills.md +50 -39
  361. package/docs/cli/staticwebsite.md +32 -180
  362. package/docs/cli/tailordb.md +97 -323
  363. package/docs/cli/upgrade.md +2 -22
  364. package/docs/cli/user.md +78 -247
  365. package/docs/cli/workflow.md +44 -203
  366. package/docs/cli/workspace.md +165 -538
  367. package/docs/cli-reference.md +167 -67
  368. package/docs/configuration.md +34 -4
  369. package/docs/github-actions.md +46 -19
  370. package/docs/migration/v2.md +397 -26
  371. package/docs/multi-environment.md +29 -7
  372. package/docs/plugin/custom.md +4 -4
  373. package/docs/plugin/index.md +8 -8
  374. package/docs/quickstart.md +8 -7
  375. package/docs/runtime.md +9 -3
  376. package/docs/services/aigateway.md +18 -2
  377. package/docs/services/auth.md +34 -42
  378. package/docs/services/http-adapter.md +16 -1
  379. package/docs/services/idp.md +55 -2
  380. package/docs/services/resolver.md +2 -2
  381. package/docs/services/secret.md +11 -11
  382. package/docs/services/staticwebsite.md +8 -2
  383. package/docs/services/tailordb-migration.md +25 -23
  384. package/docs/services/tailordb.md +55 -32
  385. package/docs/services/workflow.md +92 -14
  386. package/docs/testing.md +49 -3
  387. package/package.json +42 -31
  388. package/postinstall.mjs +4 -6
  389. package/dist/application-Dtqap5jM.mjs +0 -3
  390. package/dist/application-XuMWK4eq.mjs +0 -7257
  391. package/dist/application-XuMWK4eq.mjs.map +0 -1
  392. package/dist/authconnection-D2MhtTN5.mjs +0 -15
  393. package/dist/authconnection-D2MhtTN5.mjs.map +0 -1
  394. package/dist/authconnection-DvUQAjQS.d.mts +0 -39
  395. package/dist/context-Bd266-ru.mjs.map +0 -1
  396. package/dist/context-C2lEi9uw.d.mts +0 -47
  397. package/dist/errors-Dtf2WPaW.mjs.map +0 -1
  398. package/dist/field-DOsJCPFa.mjs +0 -22
  399. package/dist/field-DOsJCPFa.mjs.map +0 -1
  400. package/dist/file-BbdFGdMV.mjs.map +0 -1
  401. package/dist/file-Dq3NIt_F.d.mts +0 -211
  402. package/dist/file-utils-CYZnO1pX.mjs.map +0 -1
  403. package/dist/globals-Cf0sxIt8.mjs.map +0 -1
  404. package/dist/http-adapter.generated-DFsXDdm5.d.mts +0 -581
  405. package/dist/iconv-Co-TOPuH.d.mts +0 -122
  406. package/dist/iconv-D2vi8G36.mjs +0 -63
  407. package/dist/iconv-D2vi8G36.mjs.map +0 -1
  408. package/dist/idp-BDbK5gjm.mjs.map +0 -1
  409. package/dist/idp-DrhVrLmV.d.mts +0 -160
  410. package/dist/index-BI-_j9Z3.d.mts +0 -1013
  411. package/dist/index-C4JirJH8.d.mts +0 -18
  412. package/dist/index-CZfWhr0a.d.mts +0 -18
  413. package/dist/index-Cg8VKAdN.d.mts +0 -46
  414. package/dist/index-DYRjoLXD.d.mts +0 -47
  415. package/dist/index-lFpcjHPU.d.mts +0 -201
  416. package/dist/index-nW7hE6oE.d.mts +0 -18
  417. package/dist/interceptor-D-q1rvRl.mjs.map +0 -1
  418. package/dist/mock-FPxmnt-y.mjs +0 -759
  419. package/dist/mock-FPxmnt-y.mjs.map +0 -1
  420. package/dist/registry-DH4m7eYo.mjs.map +0 -1
  421. package/dist/rolldown-runtime-DXywRVcq.mjs +0 -20
  422. package/dist/runtime-CY4JvrDj.mjs.map +0 -1
  423. package/dist/schema-Dtw9Orye.mjs.map +0 -1
  424. package/dist/secret-file-VSVGy1V0.mjs.map +0 -1
  425. package/dist/secretmanager-B3n4KHfm.d.mts +0 -55
  426. package/dist/secretmanager-BVxw3ih_.mjs +0 -24
  427. package/dist/secretmanager-BVxw3ih_.mjs.map +0 -1
  428. package/dist/seed-izIEyP3z.mjs.map +0 -1
  429. package/dist/service-DCqIWibD.mjs +0 -3
  430. package/dist/service-DU1mVzri2.mjs.map +0 -1
  431. package/dist/service-DjyqbCaJ.mjs.map +0 -1
  432. package/dist/telemetry-CdqJEzkj.mjs.map +0 -1
  433. package/dist/telemetry-ClwW5ohF.mjs +0 -3
  434. package/dist/types-74etvaxy.mjs +0 -4
  435. package/dist/types-BDRml5C3.d.mts +0 -574
  436. package/dist/types-BQijbo4m.mjs +0 -371
  437. package/dist/types-BQijbo4m.mjs.map +0 -1
  438. package/dist/types-BX4q6Mo6.d.mts +0 -339
  439. package/dist/workflow-BOmaZwwG.mjs +0 -43
  440. package/dist/workflow-BOmaZwwG.mjs.map +0 -1
  441. package/dist/workflow-BVy4XWjS.d.mts +0 -101
@@ -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 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,84 +22,52 @@ 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
- tailor-sdk tailordb truncate [options] [types]
32
+ tailor 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
- | Option | Alias | Description | Required | Default | Env |
82
- | ------------------------------- | ----- | -------------------------------------------------------------------------- | -------- | -------------------- | --------------------------------- |
83
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
84
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
85
- | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
86
- | `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
87
- | `--all` | `-a` | Truncate all tables in all owned namespaces (excludes external namespaces) | No | `false` | - |
88
- | `--namespace <NAMESPACE>` | `-n` | Truncate all tables in specified namespace | No | - | - |
89
-
90
- <!-- politty:command:tailordb truncate:options:end -->
91
-
92
- <!-- politty:command:tailordb truncate:global-options-link:start -->
43
+ | Option | Alias | Description | Required | Default | Env |
44
+ | ------------------------------- | ----- | -------------------------------------------------------------------------- | -------- | -------------------- | ------------------------------ |
45
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
46
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
47
+ | `--config <CONFIG>` | `-c` | Path to Tailor config file | No | `"tailor.config.ts"` | `TAILOR_CONFIG_PATH` |
48
+ | `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
49
+ | `--all` | `-a` | Truncate all tables in all owned namespaces (excludes external namespaces) | No | `false` | - |
50
+ | `--namespace <NAMESPACE>` | `-n` | Truncate all tables in specified namespace | No | - | - |
93
51
 
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
101
57
  # Truncate all tables in all namespaces (requires confirmation)
102
- tailor-sdk tailordb truncate --all
58
+ tailor tailordb truncate --all
103
59
 
104
60
  # Truncate all tables in all namespaces (skip confirmation)
105
- tailor-sdk tailordb truncate --all --yes
61
+ tailor tailordb truncate --all --yes
106
62
 
107
63
  # Truncate all tables in a specific namespace
108
- tailor-sdk tailordb truncate --namespace myNamespace
64
+ tailor tailordb truncate --namespace myNamespace
109
65
 
110
66
  # Truncate specific types (namespace is auto-detected)
111
- tailor-sdk tailordb truncate User Post Comment
67
+ tailor tailordb truncate User Post Comment
112
68
 
113
69
  # Truncate specific types with confirmation skipped
114
- tailor-sdk tailordb truncate User Post --yes
70
+ tailor tailordb truncate User Post --yes
115
71
  ```
116
72
 
117
73
  **Notes:**
@@ -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
- Note: Migration scripts are automatically executed during `tailor-sdk deploy`. See [Automatic Migration Execution](../services/tailordb-migration.md#automatic-migration-execution) for details.
141
-
142
- <!-- politty:command:tailordb migration:usage:start -->
88
+ Note: Migration scripts are automatically executed during `tailor deploy`. See [Automatic Migration Execution](../services/tailordb-migration.md#automatic-migration-execution) for details.
143
89
 
144
90
  **Usage**
145
91
 
146
92
  ```
147
- tailor-sdk tailordb migration [command]
93
+ tailor 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,411 +103,243 @@ 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
- tailor-sdk tailordb migration generate [options]
115
+ tailor 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
- | Option | Alias | Description | Required | Default | Env |
198
- | ------------------- | ----- | ------------------------------------------ | -------- | -------------------- | --------------------------------- |
199
- | `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
200
- | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
201
- | `--name <NAME>` | `-n` | Optional description for the migration | No | - | - |
202
- | `--init` | - | Delete existing migrations and start fresh | No | `false` | - |
203
-
204
- <!-- politty:command:tailordb migration generate:options:end -->
205
-
206
- <!-- politty:command:tailordb migration generate:global-options-link:start -->
120
+ | Option | Alias | Description | Required | Default | Env |
121
+ | ------------------- | ----- | ------------------------------------------ | -------- | -------------------- | -------------------- |
122
+ | `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
123
+ | `--config <CONFIG>` | `-c` | Path to Tailor config file | No | `"tailor.config.ts"` | `TAILOR_CONFIG_PATH` |
124
+ | `--name <NAME>` | `-n` | Optional description for the migration | No | - | - |
125
+ | `--init` | - | Delete existing migrations and start fresh | No | `false` | - |
207
126
 
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
- tailor-sdk tailordb migration script [options] <number>
136
+ tailor 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
- | Option | Alias | Description | Required | Default | Env |
248
- | ------------------------- | ----- | ----------------------------------------------------------------- | -------- | -------------------- | --------------------------------- |
249
- | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
250
- | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | No | - | - |
251
-
252
- <!-- politty:command:tailordb migration script:options:end -->
253
-
254
- <!-- politty:command:tailordb migration script:global-options-link:start -->
147
+ | Option | Alias | Description | Required | Default | Env |
148
+ | ------------------------- | ----- | ----------------------------------------------------------------- | -------- | -------------------- | -------------------- |
149
+ | `--config <CONFIG>` | `-c` | Path to Tailor config file | No | `"tailor.config.ts"` | `TAILOR_CONFIG_PATH` |
150
+ | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | No | - | - |
255
151
 
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
- tailor-sdk tailordb migration set [options] <number>
161
+ tailor 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
- | Option | Alias | Description | Required | Default | Env |
297
- | ------------------------------- | ----- | ----------------------------------------------------------------- | -------- | -------------------- | --------------------------------- |
298
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
299
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
300
- | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
301
- | `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
302
- | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | No | - | - |
303
-
304
- <!-- politty:command:tailordb migration set:options:end -->
305
-
306
- <!-- politty:command:tailordb migration set:global-options-link:start -->
172
+ | Option | Alias | Description | Required | Default | Env |
173
+ | ------------------------------- | ----- | ----------------------------------------------------------------- | -------- | -------------------- | ------------------------------ |
174
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
175
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
176
+ | `--config <CONFIG>` | `-c` | Path to Tailor config file | No | `"tailor.config.ts"` | `TAILOR_CONFIG_PATH` |
177
+ | `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
178
+ | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | No | - | - |
307
179
 
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
- tailor-sdk tailordb migration status [options]
189
+ tailor 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
- | Option | Alias | Description | Required | Default | Env |
338
- | ------------------------------- | ----- | ----------------------------------------------------------------- | -------- | -------------------- | --------------------------------- |
339
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
340
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
341
- | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
342
- | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (shows all namespaces if not specified) | No | - | - |
343
-
344
- <!-- politty:command:tailordb migration status:options:end -->
345
-
346
- <!-- politty:command:tailordb migration status:global-options-link:start -->
194
+ | Option | Alias | Description | Required | Default | Env |
195
+ | ------------------------------- | ----- | ----------------------------------------------------------------- | -------- | -------------------- | ------------------------------ |
196
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
197
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
198
+ | `--config <CONFIG>` | `-c` | Path to Tailor config file | No | `"tailor.config.ts"` | `TAILOR_CONFIG_PATH` |
199
+ | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (shows all namespaces if not specified) | No | - | - |
347
200
 
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
- tailor-sdk tailordb migration sync [options] <number>
210
+ tailor 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
- | Option | Alias | Description | Required | Default | Env |
389
- | ------------------------------- | ----- | ----------------------------------------------------------------- | -------- | -------------------- | --------------------------------- |
390
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
391
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
392
- | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
393
- | `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
394
- | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | No | - | - |
395
-
396
- <!-- politty:command:tailordb migration sync:options:end -->
397
-
398
- <!-- politty:command:tailordb migration sync:global-options-link:start -->
221
+ | Option | Alias | Description | Required | Default | Env |
222
+ | ------------------------------- | ----- | ----------------------------------------------------------------- | -------- | -------------------- | ------------------------------ |
223
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
224
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
225
+ | `--config <CONFIG>` | `-c` | Path to Tailor config file | No | `"tailor.config.ts"` | `TAILOR_CONFIG_PATH` |
226
+ | `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
227
+ | `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | No | - | - |
399
228
 
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 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 -->
254
+ #### tailordb erd export
441
255
 
442
- See [Global Options](../cli-reference.md#global-options) for options available to all commands.
256
+ Export TailorDB ERD static viewer from local TailorDB schema.
443
257
 
444
- <!-- politty:command:tailordb erd:global-options-link:end -->
445
- <!-- politty:command:tailordb erd export:heading:start -->
258
+ **Usage**
446
259
 
447
- #### tailordb erd export
260
+ ```
261
+ tailor tailordb erd export [options]
262
+ ```
448
263
 
449
- <!-- politty:command:tailordb erd export:heading:end -->
264
+ **Options**
450
265
 
451
- <!-- politty:command:tailordb erd export:description:start -->
266
+ | Option | Alias | Description | Required | Default | Env |
267
+ | ------------------------- | ----- | ---------------------------------------------------------------------------------------------- | -------- | -------------------- | -------------------- |
268
+ | `--config <CONFIG>` | `-c` | Path to Tailor config file | No | `"tailor.config.ts"` | `TAILOR_CONFIG_PATH` |
269
+ | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (optional if only one namespace is defined in config) | No | - | - |
270
+ | `--output <OUTPUT>` | `-o` | Output directory path for TailorDB ERD viewer files (writes to `<outputDir>/<namespace>/dist`) | No | `".tailor/erd"` | - |
452
271
 
453
- Export TailorDB ERD static viewer from local TailorDB schema.
272
+ See [Global Options](../cli-reference.md#global-options) for options available to all commands.
454
273
 
455
- <!-- politty:command:tailordb erd export:description:end -->
274
+ #### tailordb erd diff
456
275
 
457
- <!-- politty:command:tailordb erd export:usage:start -->
276
+ Render TailorDB ERD schema diff HTML from exported ERD viewers.
458
277
 
459
278
  **Usage**
460
279
 
461
280
  ```
462
- tailor-sdk tailordb erd export [options]
281
+ tailor tailordb erd diff [options]
463
282
  ```
464
283
 
465
- <!-- politty:command:tailordb erd export:usage:end -->
466
-
467
- <!-- politty:command:tailordb erd export:options:start -->
468
-
469
284
  **Options**
470
285
 
471
- | Option | Alias | Description | Required | Default | Env |
472
- | ------------------------- | ----- | ---------------------------------------------------------------------------------------------- | -------- | -------------------- | --------------------------------- |
473
- | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
474
- | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (optional if only one namespace is defined in config) | No | - | - |
475
- | `--output <OUTPUT>` | `-o` | Output directory path for TailorDB ERD viewer files (writes to `<outputDir>/<namespace>/dist`) | No | `".tailor-sdk/erd"` | - |
476
-
477
- <!-- politty:command:tailordb erd export:options:end -->
478
-
479
- <!-- politty:command:tailordb erd export:global-options-link: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 | - |
480
293
 
481
294
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
482
295
 
483
- <!-- politty:command:tailordb erd export:global-options-link:end -->
484
- <!-- politty:command:tailordb erd serve:heading:start -->
485
-
486
296
  #### tailordb erd serve
487
297
 
488
- <!-- politty:command:tailordb erd serve:heading:end -->
489
-
490
- <!-- politty:command:tailordb erd serve:description:start -->
491
-
492
298
  Generate and serve TailorDB ERD locally with watch reload. (beta)
493
299
 
494
- <!-- politty:command:tailordb erd serve:description:end -->
495
-
496
- <!-- politty:command:tailordb erd serve:usage:start -->
497
-
498
300
  **Usage**
499
301
 
500
302
  ```
501
- tailor-sdk tailordb erd serve [options]
303
+ tailor 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
- | Option | Alias | Description | Required | Default | Env |
511
- | ------------------------- | ----- | ------------------------------------------------------------------------- | -------- | -------------------- | --------------------------------- |
512
- | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
513
- | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (uses first namespace in config if not specified) | No | - | - |
514
- | `--port <PORT>` | - | Local server port (0 selects a free port) | No | `0` | - |
515
- | `--open` | - | Open the ERD viewer in the default browser | No | `false` | - |
516
-
517
- <!-- politty:command:tailordb erd serve:options:end -->
518
-
519
- <!-- politty:command:tailordb erd serve:global-options-link:start -->
308
+ | Option | Alias | Description | Required | Default | Env |
309
+ | ------------------------- | ----- | ------------------------------------------------------------------------- | -------- | -------------------- | -------------------- |
310
+ | `--config <CONFIG>` | `-c` | Path to Tailor config file | No | `"tailor.config.ts"` | `TAILOR_CONFIG_PATH` |
311
+ | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (uses first namespace in config if not specified) | No | - | - |
312
+ | `--port <PORT>` | - | Local server port (0 selects a free port) | No | `0` | - |
313
+ | `--open` | - | Open the ERD viewer in the default browser | No | `false` | - |
520
314
 
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
- tailor-sdk tailordb erd deploy [options]
324
+ tailor 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
- | Option | Alias | Description | Required | Default | Env |
551
- | ------------------------------- | ----- | ----------------------------------------------------------------------------------- | -------- | -------------------- | --------------------------------- |
552
- | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
553
- | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
554
- | `--config <CONFIG>` | `-c` | Path to SDK config file | No | `"tailor.config.ts"` | `TAILOR_PLATFORM_SDK_CONFIG_PATH` |
555
- | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (optional - deploys all namespaces with erdSite if omitted) | No | - | - |
556
-
557
- <!-- politty:command:tailordb erd deploy:options:end -->
558
-
559
- <!-- politty:command:tailordb erd deploy:global-options-link:start -->
329
+ | Option | Alias | Description | Required | Default | Env |
330
+ | ------------------------------- | ----- | ----------------------------------------------------------------------------------- | -------- | -------------------- | ------------------------------ |
331
+ | `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
332
+ | `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
333
+ | `--config <CONFIG>` | `-c` | Path to Tailor config file | No | `"tailor.config.ts"` | `TAILOR_CONFIG_PATH` |
334
+ | `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (optional - deploys all namespaces with erdSite if omitted) | No | - | - |
560
335
 
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
 
@@ -573,13 +347,13 @@ See [Global Options](../cli-reference.md#global-options) for options available t
573
347
 
574
348
  ```bash
575
349
  # Deploy ERD for all namespaces with erdSite configured
576
- tailor-sdk tailordb erd deploy
350
+ tailor tailordb erd deploy
577
351
 
578
352
  # Deploy ERD for a specific namespace
579
- tailor-sdk tailordb erd deploy --namespace myNamespace
353
+ tailor tailordb erd deploy --namespace myNamespace
580
354
 
581
355
  # Deploy ERD with JSON output
582
- tailor-sdk tailordb erd deploy --json
356
+ tailor tailordb erd deploy --json
583
357
  ```
584
358
 
585
359
  **Notes:**