@tailor-platform/sdk 2.33.0 → 2.34.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 (329) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/dist/ai/index.d.mts +1 -3
  3. package/dist/{application-Bet1K5C4.mjs → application-CwpOIOTt.mjs} +1 -1
  4. package/dist/application-Nce5z46R.mjs +207 -0
  5. package/dist/application-Nce5z46R.mjs.map +1 -0
  6. package/dist/cli/cache/bundle-cache.d.mts +1 -0
  7. package/dist/cli/commands/api/api-call.d.mts +1 -3
  8. package/dist/cli/commands/deploy/aigateway.d.mts +1 -0
  9. package/dist/cli/commands/deploy/app-id-lock.d.mts +1 -3
  10. package/dist/cli/commands/deploy/application.d.mts +1 -0
  11. package/dist/cli/commands/deploy/auth.d.mts +1 -0
  12. package/dist/cli/commands/deploy/config-id-injector.d.mts +1 -3
  13. package/dist/cli/commands/deploy/confirm.d.mts +1 -0
  14. package/dist/cli/commands/deploy/deploy.d.mts +4 -3
  15. package/dist/cli/commands/deploy/executor.d.mts +1 -0
  16. package/dist/cli/commands/deploy/function-registry-types.d.mts +1 -3
  17. package/dist/cli/commands/deploy/function-registry.d.mts +1 -0
  18. package/dist/cli/commands/deploy/idp.d.mts +1 -0
  19. package/dist/cli/commands/deploy/owned-resource.d.mts +3 -0
  20. package/dist/cli/commands/deploy/resolver.d.mts +1 -0
  21. package/dist/cli/commands/deploy/secret-manager.d.mts +1 -0
  22. package/dist/cli/commands/deploy/staticwebsite.d.mts +1 -0
  23. package/dist/cli/commands/deploy/tailordb/plan.d.mts +1 -0
  24. package/dist/cli/commands/deploy/workflow-execution-policy.d.mts +2 -1
  25. package/dist/cli/commands/deploy/workflow.d.mts +1 -0
  26. package/dist/cli/commands/executor/get.d.mts +0 -2
  27. package/dist/cli/commands/executor/jobs.d.mts +0 -2
  28. package/dist/cli/commands/executor/list.d.mts +1 -3
  29. package/dist/cli/commands/executor/transform.d.mts +1 -3
  30. package/dist/cli/commands/executor/trigger.d.mts +0 -2
  31. package/dist/cli/commands/executor/webhook.d.mts +1 -3
  32. package/dist/cli/commands/function/get.d.mts +0 -2
  33. package/dist/cli/commands/function/list.d.mts +0 -2
  34. package/dist/cli/commands/function/transform.d.mts +1 -3
  35. package/dist/cli/commands/generate/options.d.mts +1 -3
  36. package/dist/cli/commands/generate/seed/bundler.d.mts +1 -3
  37. package/dist/cli/commands/generate/service.d.mts +1 -3
  38. package/dist/cli/commands/machineuser/list.d.mts +1 -3
  39. package/dist/cli/commands/machineuser/token.d.mts +1 -3
  40. package/dist/cli/commands/oauth2client/get.d.mts +1 -3
  41. package/dist/cli/commands/oauth2client/list.d.mts +1 -3
  42. package/dist/cli/commands/oauth2client/transform.d.mts +1 -3
  43. package/dist/cli/commands/organization/folder/create.d.mts +0 -2
  44. package/dist/cli/commands/organization/folder/delete.d.mts +0 -2
  45. package/dist/cli/commands/organization/folder/get.d.mts +0 -2
  46. package/dist/cli/commands/organization/folder/list.d.mts +0 -2
  47. package/dist/cli/commands/organization/folder/update.d.mts +0 -2
  48. package/dist/cli/commands/organization/get.d.mts +0 -2
  49. package/dist/cli/commands/organization/list.d.mts +1 -3
  50. package/dist/cli/commands/organization/transform.d.mts +1 -3
  51. package/dist/cli/commands/organization/tree.d.mts +0 -2
  52. package/dist/cli/commands/organization/update.d.mts +0 -2
  53. package/dist/cli/commands/remove.d.mts +1 -3
  54. package/dist/cli/commands/show.d.mts +0 -2
  55. package/dist/cli/commands/staticwebsite/deploy.d.mts +1 -3
  56. package/dist/cli/commands/tailordb/migrate/bundler.d.mts +1 -3
  57. package/dist/cli/commands/tailordb/migrate/config.d.mts +1 -3
  58. package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +0 -2
  59. package/dist/cli/commands/tailordb/migrate/generate.d.mts +1 -3
  60. package/dist/cli/commands/tailordb/migrate/rename-detection.d.mts +1 -3
  61. package/dist/cli/commands/tailordb/migrate/snapshot-comparison.d.mts +1 -3
  62. package/dist/cli/commands/tailordb/migrate/snapshot-files.d.mts +1 -3
  63. package/dist/cli/commands/tailordb/migrate/snapshot-local.d.mts +1 -3
  64. package/dist/cli/commands/tailordb/migrate/snapshot-migrations.d.mts +1 -3
  65. package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +0 -2
  66. package/dist/cli/commands/tailordb/migrate/types.d.mts +1 -3
  67. package/dist/cli/commands/tailordb/truncate.d.mts +1 -3
  68. package/dist/cli/commands/workflow/executions.d.mts +0 -2
  69. package/dist/cli/commands/workflow/get.d.mts +0 -2
  70. package/dist/cli/commands/workflow/list.d.mts +1 -3
  71. package/dist/cli/commands/workflow/resume.d.mts +1 -3
  72. package/dist/cli/commands/workflow/start.d.mts +0 -2
  73. package/dist/cli/commands/workflow/status.d.mts +1 -3
  74. package/dist/cli/commands/workflow/transform.d.mts +1 -3
  75. package/dist/cli/commands/workflow/wait.d.mts +1 -3
  76. package/dist/cli/commands/workflow/waiter.d.mts +1 -3
  77. package/dist/cli/commands/workspace/app/health.d.mts +0 -2
  78. package/dist/cli/commands/workspace/app/list.d.mts +0 -2
  79. package/dist/cli/commands/workspace/app/transform.d.mts +1 -3
  80. package/dist/cli/commands/workspace/create.d.mts +0 -2
  81. package/dist/cli/commands/workspace/delete.d.mts +0 -2
  82. package/dist/cli/commands/workspace/expiry.d.mts +1 -3
  83. package/dist/cli/commands/workspace/get.d.mts +0 -2
  84. package/dist/cli/commands/workspace/list.d.mts +1 -3
  85. package/dist/cli/commands/workspace/restore.d.mts +0 -2
  86. package/dist/cli/commands/workspace/transform.d.mts +1 -3
  87. package/dist/cli/commands/workspace/user/invite.d.mts +0 -2
  88. package/dist/cli/commands/workspace/user/list.d.mts +0 -2
  89. package/dist/cli/commands/workspace/user/remove.d.mts +0 -2
  90. package/dist/cli/commands/workspace/user/transform.d.mts +1 -3
  91. package/dist/cli/commands/workspace/user/update.d.mts +0 -2
  92. package/dist/cli/lib.d.mts +1 -1
  93. package/dist/cli/lib.mjs +1 -1
  94. package/dist/cli/lib.mjs.map +1 -1
  95. package/dist/cli/main.d.mts +1 -3
  96. package/dist/cli/main.mjs +55 -51
  97. package/dist/cli/main.mjs.map +1 -1
  98. package/dist/cli/query/index.d.mts +0 -2
  99. package/dist/cli/services/application.d.mts +5 -4
  100. package/dist/cli/services/executor/service.d.mts +2 -2
  101. package/dist/cli/services/function-bundle.d.mts +7 -0
  102. package/dist/cli/services/http-adapter/bundler.d.mts +7 -1
  103. package/dist/cli/services/resolver/service.d.mts +2 -2
  104. package/dist/cli/services/workflow/bundler.d.mts +2 -3
  105. package/dist/cli/shared/args.d.mts +0 -2
  106. package/dist/cli/shared/beta.d.mts +1 -3
  107. package/dist/cli/shared/client.d.mts +4 -3
  108. package/dist/cli/shared/command.d.mts +2 -4
  109. package/dist/cli/shared/config-loader.d.mts +2 -4
  110. package/dist/cli/shared/config.d.mts +1 -3
  111. package/dist/cli/shared/context.d.mts +0 -2
  112. package/dist/cli/shared/error-diagnostics.d.mts +1 -3
  113. package/dist/cli/shared/error-json.d.mts +1 -3
  114. package/dist/cli/shared/function-execution.d.mts +1 -3
  115. package/dist/cli/shared/github-actions.d.mts +1 -3
  116. package/dist/cli/shared/logger.d.mts +7 -4
  117. package/dist/cli/shared/platform-bundle-plugin.d.mts +1 -0
  118. package/dist/cli/shared/prompt.d.mts +1 -3
  119. package/dist/cli/shared/readonly-guard.d.mts +0 -2
  120. package/dist/cli/shared/script-executor.d.mts +1 -3
  121. package/dist/cli/shared/seed-chunker.d.mts +1 -3
  122. package/dist/cli/shared/seed-context.d.mts +0 -2
  123. package/dist/cli/shared/sourcemap-sources.d.mts +1 -0
  124. package/dist/cli/shared/tailordb-namespaces.d.mts +1 -3
  125. package/dist/cli/shared/type-generator.d.mts +0 -2
  126. package/dist/cli/shared/workspace-name.d.mts +1 -3
  127. package/dist/completion/zsh-worker.zsh +2 -2
  128. package/dist/configure/config/index.d.mts +2 -4
  129. package/dist/configure/config/types.d.mts +27 -4
  130. package/dist/configure/index.d.mts +7 -9
  131. package/dist/configure/index.mjs +1 -1
  132. package/dist/configure/services/aigateway/index.d.mts +0 -2
  133. package/dist/configure/services/aigateway/types.d.mts +0 -2
  134. package/dist/configure/services/auth/index.d.mts +0 -2
  135. package/dist/configure/services/auth/types.d.mts +0 -2
  136. package/dist/configure/services/executor/executor.d.mts +0 -2
  137. package/dist/configure/services/executor/operation.d.mts +0 -2
  138. package/dist/configure/services/executor/trigger/event.d.mts +0 -2
  139. package/dist/configure/services/executor/trigger/index.d.mts +0 -2
  140. package/dist/configure/services/executor/trigger/schedule.d.mts +0 -2
  141. package/dist/configure/services/executor/trigger/webhook.d.mts +1 -3
  142. package/dist/configure/services/http-adapter/http-adapter.d.mts +0 -2
  143. package/dist/configure/services/idp/index.d.mts +0 -2
  144. package/dist/configure/services/idp/permission.d.mts +0 -2
  145. package/dist/configure/services/idp/types.d.mts +0 -2
  146. package/dist/configure/services/index.d.mts +5 -5
  147. package/dist/configure/services/resolver/index.d.mts +1 -1
  148. package/dist/configure/services/resolver/permission.d.mts +0 -2
  149. package/dist/configure/services/resolver/resolver.d.mts +1 -3
  150. package/dist/configure/services/resolver/types.d.mts +1 -3
  151. package/dist/configure/services/secrets/index.d.mts +0 -2
  152. package/dist/configure/services/secrets/types.d.mts +0 -2
  153. package/dist/configure/services/staticwebsite/index.d.mts +0 -2
  154. package/dist/configure/services/staticwebsite/types.d.mts +0 -2
  155. package/dist/configure/services/tailordb/permission.d.mts +0 -2
  156. package/dist/configure/services/tailordb/schema.d.mts +0 -2
  157. package/dist/configure/services/tailordb/types.d.mts +0 -2
  158. package/dist/configure/services/workflow/execution-policy.d.mts +0 -2
  159. package/dist/configure/services/workflow/execution-policy.types.d.mts +0 -2
  160. package/dist/configure/services/workflow/job.d.mts +0 -2
  161. package/dist/configure/services/workflow/wait-point.d.mts +0 -2
  162. package/dist/configure/services/workflow/workflow.d.mts +0 -2
  163. package/dist/configure/types/aigateway-name.d.mts +1 -3
  164. package/dist/configure/types/auth-namespace-name.d.mts +1 -3
  165. package/dist/configure/types/connection-name.d.mts +1 -3
  166. package/dist/configure/types/field.d.mts +1 -3
  167. package/dist/configure/types/field.types.d.mts +0 -2
  168. package/dist/configure/types/idp-name.d.mts +1 -3
  169. package/dist/configure/types/permission-operand.types.d.mts +0 -2
  170. package/dist/configure/types/secret-vault-name.d.mts +1 -3
  171. package/dist/configure/types/type.d.mts +0 -2
  172. package/dist/{crashreport-BCIy33Cz.mjs → crashreport-DGU6lwiX.mjs} +2 -2
  173. package/dist/{crashreport-BCIy33Cz.mjs.map → crashreport-DGU6lwiX.mjs.map} +1 -1
  174. package/dist/crashreport-WsYAWARW.mjs +1 -0
  175. package/dist/{logger-RgtbhJ83.mjs → errors-BXmGBX-7.mjs} +6 -3
  176. package/dist/errors-BXmGBX-7.mjs.map +1 -0
  177. package/dist/field-parse-BQhUAbpM.mjs +2 -0
  178. package/dist/{field-parse-C41e3UAF.mjs.map → field-parse-BQhUAbpM.mjs.map} +1 -1
  179. package/dist/guards-CiFVxoXR.mjs +2 -0
  180. package/dist/guards-CiFVxoXR.mjs.map +1 -0
  181. package/dist/kysely/index.d.mts +0 -2
  182. package/dist/manager-B813m43t.mjs +2 -0
  183. package/dist/manager-B813m43t.mjs.map +1 -0
  184. package/dist/parser/service/idp/types.d.mts +1 -3
  185. package/dist/parser/service/tailordb/type-source.d.mts +1 -3
  186. package/dist/parser/service/tailordb/types.d.mts +0 -2
  187. package/dist/plugin/builtin/enum-constants/index.d.mts +0 -2
  188. package/dist/plugin/builtin/file-utils/index.d.mts +0 -2
  189. package/dist/plugin/builtin/kysely-type/index.d.mts +0 -2
  190. package/dist/plugin/builtin/seed/index.d.mts +0 -2
  191. package/dist/plugin/builtin/seed/seed-type-processor.d.mts +1 -3
  192. package/dist/plugin/get-generated-table.d.mts +1 -3
  193. package/dist/plugin/index.mjs +1 -1
  194. package/dist/plugin/types.d.mts +0 -2
  195. package/dist/plugin/with-context.d.mts +1 -3
  196. package/dist/register-ts-hook-CtWJL3EO.mjs +1054 -0
  197. package/dist/register-ts-hook-CtWJL3EO.mjs.map +1 -0
  198. package/dist/runtime/aigateway.d.mts +1 -3
  199. package/dist/runtime/authconnection.d.mts +1 -3
  200. package/dist/runtime/context.d.mts +0 -2
  201. package/dist/runtime/date.d.mts +0 -2
  202. package/dist/runtime/field-parse.d.mts +0 -2
  203. package/dist/runtime/file.d.mts +0 -2
  204. package/dist/runtime/globals.d.mts +0 -2
  205. package/dist/runtime/iconv.d.mts +1 -3
  206. package/dist/runtime/idp.d.mts +1 -3
  207. package/dist/runtime/index.d.mts +1 -3
  208. package/dist/runtime/index.mjs +1 -1
  209. package/dist/runtime/logger.d.mts +1 -3
  210. package/dist/runtime/secretmanager.d.mts +1 -3
  211. package/dist/runtime/temporal.d.mts +0 -2
  212. package/dist/runtime/types.d.mts +0 -2
  213. package/dist/runtime/workflow.d.mts +0 -2
  214. package/dist/{schema-B6hJQWp6.mjs → schema-BU1aIQ63.mjs} +2 -2
  215. package/dist/{schema-B6hJQWp6.mjs.map → schema-BU1aIQ63.mjs.map} +1 -1
  216. package/dist/secret-file-BxZ-J_Nz.mjs +2 -0
  217. package/dist/secret-file-BxZ-J_Nz.mjs.map +1 -0
  218. package/dist/seed/idp-user-password.d.mts +0 -2
  219. package/dist/seed/index.d.mts +0 -2
  220. package/dist/service-CaGmqg0r.mjs +2 -0
  221. package/dist/{service-9rwi_I4d.mjs.map → service-CaGmqg0r.mjs.map} +1 -1
  222. package/dist/service-DEq_hdht.mjs +1 -0
  223. package/dist/{service-9SBPNpK8.mjs → service-eeXdVrDK.mjs} +4 -4
  224. package/dist/service-eeXdVrDK.mjs.map +1 -0
  225. package/dist/shared/src/color.d.mts +1 -3
  226. package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +1 -3
  227. package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +1 -3
  228. package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +1 -3
  229. package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +1 -3
  230. package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +1 -3
  231. package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +1 -3
  232. package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +1 -3
  233. package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +1 -3
  234. package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +1 -3
  235. package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +1 -3
  236. package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +1 -3
  237. package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +1 -3
  238. package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +1 -3
  239. package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +1 -3
  240. package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +1 -3
  241. package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +1 -3
  242. package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +1 -3
  243. package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +1 -3
  244. package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +1 -3
  245. package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +1 -3
  246. package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +1 -3
  247. package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +1 -3
  248. package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +1 -3
  249. package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +1 -3
  250. package/dist/tailor-proto/src/tailor/v1/security_pb.d.mts +1 -3
  251. package/dist/tailor-proto/src/tailor/v1/security_resource_pb.d.mts +1 -3
  252. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +1 -3
  253. package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +1 -3
  254. package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +1 -3
  255. package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +1 -3
  256. package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +1 -3
  257. package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +1 -3
  258. package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +1 -3
  259. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +1 -3
  260. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +1 -3
  261. package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +1 -3
  262. package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +1 -3
  263. package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +1 -3
  264. package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +1 -3
  265. package/dist/types/aigateway.generated.d.mts +1 -3
  266. package/dist/types/app-config.generated.d.mts +1 -3
  267. package/dist/types/auth-connection.generated.d.mts +1 -3
  268. package/dist/types/auth.generated.d.mts +1 -3
  269. package/dist/types/executor.generated.d.mts +1 -3
  270. package/dist/types/field.generated.d.mts +1 -3
  271. package/dist/types/helpers.d.mts +1 -3
  272. package/dist/types/http-adapter.generated.d.mts +1 -3
  273. package/dist/types/idp.generated.d.mts +1 -3
  274. package/dist/types/resolver.generated.d.mts +1 -3
  275. package/dist/types/secrets.generated.d.mts +1 -3
  276. package/dist/types/staticwebsite.generated.d.mts +1 -3
  277. package/dist/types/tailordb.generated.d.mts +1 -3
  278. package/dist/types/workflow.generated.d.mts +1 -3
  279. package/dist/utils/test/index.d.mts +1 -3
  280. package/dist/utils/test/index.mjs +1 -1
  281. package/dist/vitest/date-representation.d.mts +1 -3
  282. package/dist/vitest/environment.d.mts +0 -2
  283. package/dist/vitest/index.d.mts +0 -2
  284. package/dist/vitest/migration-steps.d.mts +1 -3
  285. package/dist/vitest/mock-kysely.d.mts +0 -2
  286. package/dist/vitest/mocks/aigateway.d.mts +0 -2
  287. package/dist/vitest/mocks/authconnection.d.mts +0 -2
  288. package/dist/vitest/mocks/file.d.mts +0 -2
  289. package/dist/vitest/mocks/iconv.d.mts +0 -2
  290. package/dist/vitest/mocks/idp.d.mts +0 -2
  291. package/dist/vitest/mocks/logger.d.mts +0 -2
  292. package/dist/vitest/mocks/secretmanager.d.mts +0 -2
  293. package/dist/vitest/mocks/tailordb-pglite.d.mts +0 -2
  294. package/dist/vitest/mocks/tailordb.d.mts +0 -2
  295. package/dist/vitest/mocks/workflow.d.mts +0 -2
  296. package/dist/vitest/pglite-kysely.d.mts +0 -2
  297. package/dist/vitest/pglite-temporal.d.mts +1 -3
  298. package/dist/vitest/setup.d.mts +0 -2
  299. package/dist/vitest/workflow-local.d.mts +0 -2
  300. package/docs/cli/application.md +2 -1
  301. package/docs/cli/tailordb.md +1 -1
  302. package/docs/cli/user.md +5 -5
  303. package/docs/cli/workspace.md +1 -1
  304. package/docs/cli-reference.md +26 -25
  305. package/docs/configuration.md +13 -2
  306. package/docs/github-actions.md +33 -10
  307. package/docs/services/secret.md +6 -0
  308. package/docs/services/tailordb/index.md +19 -0
  309. package/docs/services/tailordb/migration.md +2 -2
  310. package/docs/testing.md +2 -2
  311. package/package.json +12 -12
  312. package/dist/application-B9_NHiUC.mjs +0 -207
  313. package/dist/application-B9_NHiUC.mjs.map +0 -1
  314. package/dist/crashreport-IN6H7GX3.mjs +0 -1
  315. package/dist/errors-BOF68LJ5.mjs +0 -5
  316. package/dist/errors-BOF68LJ5.mjs.map +0 -1
  317. package/dist/field-parse-C41e3UAF.mjs +0 -2
  318. package/dist/guards-yDXyKC9F.mjs +0 -2
  319. package/dist/guards-yDXyKC9F.mjs.map +0 -1
  320. package/dist/logger-RgtbhJ83.mjs.map +0 -1
  321. package/dist/manager-DTRhIupk.mjs +0 -2
  322. package/dist/manager-DTRhIupk.mjs.map +0 -1
  323. package/dist/register-ts-hook-Dp9reSRG.mjs +0 -1053
  324. package/dist/register-ts-hook-Dp9reSRG.mjs.map +0 -1
  325. package/dist/secret-file-C9wp_FCX.mjs +0 -2
  326. package/dist/secret-file-C9wp_FCX.mjs.map +0 -1
  327. package/dist/service-9SBPNpK8.mjs.map +0 -1
  328. package/dist/service-9rwi_I4d.mjs +0 -2
  329. package/dist/service-Ca1WwyIt.mjs +0 -1
@@ -1,5 +1,4 @@
1
1
  import { SnapshotFieldConfig, SnapshotGqlPermission, SnapshotIndexConfig, SnapshotRecordPermission, SnapshotRelationship, TailorDBSnapshotType } from "./snapshot-types.mjs";
2
- //#region src/cli/commands/tailordb/migrate/diff-calculator.d.ts
3
2
  /**
4
3
  * Properties shared by all diff change variants
5
4
  */
@@ -299,5 +298,4 @@ export declare function formatMigrationDiff(diff: MigrationDiff): string;
299
298
  * @returns {string} Formatted summary string
300
299
  */
301
300
  export declare function formatDiffSummary(diff: MigrationDiff): string;
302
- //#endregion
303
301
  export {};
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- //#region src/cli/commands/tailordb/migrate/generate.d.ts
3
2
  export interface GenerateOptions {
4
3
  configPath?: string;
5
4
  name?: string;
@@ -24,5 +23,4 @@ export interface GenerateOptions {
24
23
  * @param {GenerateOptions} options - Generation options
25
24
  * @returns {Promise<void>} Promise that resolves when generation is complete
26
25
  */
27
- export declare function generate(options: GenerateOptions): Promise<void>;
28
- //#endregion
26
+ export declare function generate(options: GenerateOptions): Promise<void>;
@@ -1,4 +1,3 @@
1
- //#region src/cli/commands/tailordb/migrate/rename-detection.d.ts
2
1
  /**
3
2
  * A confirmed field rename to record in the migration diff.
4
3
  */
@@ -30,5 +29,4 @@ export interface TypeRenameSpec {
30
29
  previousTableName: string;
31
30
  /** Type name after the rename. */
32
31
  tableName: string;
33
- }
34
- //#endregion
32
+ }
@@ -1,7 +1,6 @@
1
1
  import { NormalizedSchemaSnapshot, SchemaSnapshot, TailorDBSnapshotType } from "./snapshot-types.mjs";
2
2
  import { MigrationDiff } from "./diff-calculator.mjs";
3
3
  import { FieldRenameSpec, NestedMemberRenameSpec, TypeRenameSpec } from "./rename-detection.mjs";
4
- //#region src/cli/commands/tailordb/migrate/snapshot-comparison.d.ts
5
4
  /**
6
5
  * Options for {@link compareSnapshots}.
7
6
  */
@@ -44,5 +43,4 @@ export declare function compareSnapshots(previous: NormalizedSchemaSnapshot, cur
44
43
  * @param {string} namespace - Namespace for comparison
45
44
  * @returns {MigrationDiff} Migration diff
46
45
  */
47
- export declare function compareLocalTypesWithSnapshot(snapshot: SchemaSnapshot, localTypes: Record<string, TailorDBSnapshotType>, namespace: string): MigrationDiff;
48
- //#endregion
46
+ export declare function compareLocalTypesWithSnapshot(snapshot: SchemaSnapshot, localTypes: Record<string, TailorDBSnapshotType>, namespace: string): MigrationDiff;
@@ -1,4 +1,3 @@
1
- //#region src/cli/commands/tailordb/migrate/snapshot-files.d.ts
2
1
  /**
3
2
  * Initial schema migration number (0000)
4
3
  */
@@ -61,5 +60,4 @@ export declare function getNextMigrationNumber(migrationsDir: string): number;
61
60
  * @param {string} migrationsDir - Migrations directory path
62
61
  * @returns {number} Latest migration number or 0 if no migrations exist
63
62
  */
64
- export declare function getLatestMigrationNumber(migrationsDir: string): number;
65
- //#endregion
63
+ export declare function getLatestMigrationNumber(migrationsDir: string): number;
@@ -1,11 +1,9 @@
1
1
  import { TailorDBType } from "../../../../parser/service/tailordb/types.mjs";
2
2
  import { NormalizedSchemaSnapshot } from "./snapshot-types.mjs";
3
- //#region src/cli/commands/tailordb/migrate/snapshot-local.d.ts
4
3
  /**
5
4
  * Create a schema snapshot from local table definitions
6
5
  * @param {Record<string, TailorDBType>} types - Local table definitions
7
6
  * @param {string} namespace - Namespace for the snapshot
8
7
  * @returns {NormalizedSchemaSnapshot} Normalized schema snapshot
9
8
  */
10
- export declare function createSnapshotFromLocalTypes(types: Record<string, TailorDBType>, namespace: string): NormalizedSchemaSnapshot;
11
- //#endregion
9
+ export declare function createSnapshotFromLocalTypes(types: Record<string, TailorDBType>, namespace: string): NormalizedSchemaSnapshot;
@@ -1,5 +1,4 @@
1
1
  import { NormalizedSchemaSnapshot } from "./snapshot-types.mjs";
2
- //#region src/cli/commands/tailordb/migrate/snapshot-migrations.d.ts
3
2
  /**
4
3
  * Reconstruct the latest schema snapshot from all migration files
5
4
  * Returns null if no migrations exist
@@ -7,5 +6,4 @@ import { NormalizedSchemaSnapshot } from "./snapshot-types.mjs";
7
6
  * @param {number} [maxVersion] - Optional maximum migration version to apply
8
7
  * @returns {NormalizedSchemaSnapshot | null} Reconstructed normalized snapshot or null if no migrations exist
9
8
  */
10
- export declare function reconstructSnapshotFromMigrations(migrationsDir: string, maxVersion?: number): NormalizedSchemaSnapshot | null;
11
- //#endregion
9
+ export declare function reconstructSnapshotFromMigrations(migrationsDir: string, maxVersion?: number): NormalizedSchemaSnapshot | null;
@@ -1,4 +1,3 @@
1
- //#region src/cli/commands/tailordb/migrate/snapshot-types.d.ts
2
1
  /**
3
2
  * Schema snapshot data model for TailorDB migrations.
4
3
  *
@@ -214,5 +213,4 @@ declare const normalizedSchemaSnapshotBrand: unique symbol;
214
213
  export type NormalizedSchemaSnapshot = SchemaSnapshot & {
215
214
  readonly [normalizedSchemaSnapshotBrand]: true;
216
215
  };
217
- //#endregion
218
216
  export {};
@@ -1,6 +1,4 @@
1
- //#region src/cli/commands/tailordb/migrate/types.d.ts
2
1
  /**
3
2
  * Label key for storing migration state in TailorDB Service metadata
4
3
  */
5
- export declare const MIGRATION_LABEL_KEY = "sdk-migration";
6
- //#endregion
4
+ export declare const MIGRATION_LABEL_KEY = "sdk-migration";
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- //#region src/cli/commands/tailordb/truncate.d.ts
3
2
  export interface TruncateOptions {
4
3
  workspaceId?: string;
5
4
  profile?: string;
@@ -13,5 +12,4 @@ export interface TruncateOptions {
13
12
  * @param options - Truncate options (all, namespace, or tables)
14
13
  * @returns Promise that resolves when truncation completes
15
14
  */
16
- export declare function truncate(options?: TruncateOptions): Promise<void>;
17
- //#endregion
15
+ export declare function truncate(options?: TruncateOptions): Promise<void>;
@@ -4,7 +4,6 @@ import { WorkflowWaitUntil } from "./status.mjs";
4
4
  import { WorkflowWaitResult } from "./waiter.mjs";
5
5
  import { FunctionLogEntryInfo } from "../../shared/function-execution.mjs";
6
6
  import { z } from "zod";
7
- //#region src/cli/commands/workflow/executions.d.ts
8
7
  type WorkflowLike = {
9
8
  name: string;
10
9
  };
@@ -60,5 +59,4 @@ export declare function listWorkflowExecutions<W extends WorkflowLike>(options?:
60
59
  * @returns Workflow execution with optional logs
61
60
  */
62
61
  export declare function getWorkflowExecution(options: GetWorkflowExecutionOptions): Promise<GetWorkflowExecutionResult>;
63
- //#endregion
64
62
  export {};
@@ -2,7 +2,6 @@ import "../../../tailor-proto/src/tailor/v1/workflow_resource_pb.mjs";
2
2
  import "../../shared/client.mjs";
3
3
  import { WorkflowInfo } from "./transform.mjs";
4
4
  import { z } from "zod";
5
- //#region src/cli/commands/workflow/get.d.ts
6
5
  type WorkflowLike = {
7
6
  name: string;
8
7
  };
@@ -17,5 +16,4 @@ export type GetWorkflowTypedOptions<W extends WorkflowLike = WorkflowLike> = {
17
16
  * @returns Workflow information
18
17
  */
19
18
  export declare function getWorkflow<W extends WorkflowLike>(options: GetWorkflowTypedOptions<W>): Promise<WorkflowInfo>;
20
- //#endregion
21
19
  export {};
@@ -1,7 +1,6 @@
1
1
  import { Order } from "../../shared/args.mjs";
2
2
  import { WorkflowListInfo } from "./transform.mjs";
3
3
  import { z } from "zod";
4
- //#region src/cli/commands/workflow/list.d.ts
5
4
  export interface ListWorkflowsOptions {
6
5
  workspaceId?: string;
7
6
  profile?: string;
@@ -13,5 +12,4 @@ export interface ListWorkflowsOptions {
13
12
  * @param options - Workflow listing options
14
13
  * @returns List of workflows
15
14
  */
16
- export declare function listWorkflows(options?: ListWorkflowsOptions): Promise<WorkflowListInfo[]>;
17
- //#endregion
15
+ export declare function listWorkflows(options?: ListWorkflowsOptions): Promise<WorkflowListInfo[]>;
@@ -1,7 +1,6 @@
1
1
  import { WorkflowWaitResult } from "./waiter.mjs";
2
2
  import { WaitOptions } from "./start.mjs";
3
3
  import { z } from "zod";
4
- //#region src/cli/commands/workflow/resume.d.ts
5
4
  export interface ResumeWorkflowOptions {
6
5
  executionId: string;
7
6
  workspaceId?: string;
@@ -17,5 +16,4 @@ export interface ResumeWorkflowResultWithWait {
17
16
  * @param options - Resume options
18
17
  * @returns Resume result with wait helper
19
18
  */
20
- export declare function resumeWorkflow(options: ResumeWorkflowOptions): Promise<ResumeWorkflowResultWithWait>;
21
- //#endregion
19
+ export declare function resumeWorkflow(options: ResumeWorkflowOptions): Promise<ResumeWorkflowResultWithWait>;
@@ -4,7 +4,6 @@ import { WorkflowWaitResult } from "./waiter.mjs";
4
4
  import { z } from "zod";
5
5
  import { Jsonifiable } from "type-fest";
6
6
  import { MachineUserName } from "@tailor-platform/sdk";
7
- //#region src/cli/commands/workflow/start.d.ts
8
7
  type WorkflowLike = {
9
8
  name: string;
10
9
  mainJob: {
@@ -44,5 +43,4 @@ export interface StartWorkflowResultWithWait {
44
43
  * @returns Start result with wait helper
45
44
  */
46
45
  export declare function startWorkflow<W extends WorkflowLike>(options: StartWorkflowTypedOptions<W>): Promise<StartWorkflowResultWithWait>;
47
- //#endregion
48
46
  export {};
@@ -1,5 +1,3 @@
1
1
  import "../../../tailor-proto/src/tailor/v1/workflow_resource_pb.mjs";
2
- //#region src/cli/commands/workflow/status.d.ts
3
2
  export type WorkflowWaitUntil = "success" | "suspended" | "terminal";
4
- export type WorkflowExecutionStatusClass = "success" | "suspended" | "failure" | "transient";
5
- //#endregion
3
+ export type WorkflowExecutionStatusClass = "success" | "suspended" | "failure" | "transient";
@@ -1,5 +1,4 @@
1
1
  import "../../../tailor-proto/src/tailor/v1/workflow_resource_pb.mjs";
2
- //#region src/cli/commands/workflow/transform.d.ts
3
2
  export interface WorkflowListInfo {
4
3
  name: string;
5
4
  mainJob: string;
@@ -29,5 +28,4 @@ export interface WorkflowExecutionInfo {
29
28
  jobExecutions: number;
30
29
  startedAt: Date | null;
31
30
  finishedAt: Date | null;
32
- }
33
- //#endregion
31
+ }
@@ -1,7 +1,6 @@
1
1
  import { WaitWorkflowExecutionOptions, WorkflowWaitResult } from "./waiter.mjs";
2
2
  import { getWorkflowExecution } from "./executions.mjs";
3
3
  import { z } from "zod";
4
- //#region src/cli/commands/workflow/wait.d.ts
5
4
  export interface WorkflowWaitOutput extends WorkflowWaitResult {
6
5
  jobDetails?: Awaited<ReturnType<typeof getWorkflowExecution>>["execution"]["jobDetails"];
7
6
  }
@@ -10,5 +9,4 @@ export interface WorkflowWaitOutput extends WorkflowWaitResult {
10
9
  * @param options - Workflow wait options
11
10
  * @returns Workflow wait result
12
11
  */
13
- export declare function waitWorkflowExecution(options: WaitWorkflowExecutionOptions): Promise<WorkflowWaitResult>;
14
- //#endregion
12
+ export declare function waitWorkflowExecution(options: WaitWorkflowExecutionOptions): Promise<WorkflowWaitResult>;
@@ -2,7 +2,6 @@ import "../../shared/client.mjs";
2
2
  import "../../shared/errors.mjs";
3
3
  import { WorkflowExecutionInfo } from "./transform.mjs";
4
4
  import { WorkflowExecutionStatusClass, WorkflowWaitUntil } from "./status.mjs";
5
- //#region src/cli/commands/workflow/waiter.d.ts
6
5
  export interface WaitWorkflowExecutionOptions {
7
6
  executionId: string;
8
7
  workspaceId?: string;
@@ -19,5 +18,4 @@ export interface WorkflowWaitResult extends WorkflowExecutionInfo {
19
18
  attempts: number;
20
19
  timedOut: boolean;
21
20
  lastError: string | null;
22
- }
23
- //#endregion
21
+ }
@@ -1,6 +1,5 @@
1
1
  import { AppHealthInfo } from "./transform.mjs";
2
2
  import { z } from "zod";
3
- //#region src/cli/commands/workspace/app/health.d.ts
4
3
  declare const healthOptionsSchema: z.ZodObject<{
5
4
  workspaceId: z.ZodOptional<z.ZodUUID>;
6
5
  profile: z.ZodOptional<z.ZodString>;
@@ -13,5 +12,4 @@ export type HealthOptions = z.input<typeof healthOptionsSchema>;
13
12
  * @returns Application health information
14
13
  */
15
14
  export declare function getAppHealth(options: HealthOptions): Promise<AppHealthInfo>;
16
- //#endregion
17
15
  export {};
@@ -1,6 +1,5 @@
1
1
  import { AppInfo } from "./transform.mjs";
2
2
  import { z } from "zod";
3
- //#region src/cli/commands/workspace/app/list.d.ts
4
3
  declare const listAppsOptionsSchema: z.ZodObject<{
5
4
  workspaceId: z.ZodOptional<z.ZodUUID>;
6
5
  profile: z.ZodOptional<z.ZodString>;
@@ -17,5 +16,4 @@ export type ListAppsOptions = z.input<typeof listAppsOptionsSchema>;
17
16
  * @returns List of applications
18
17
  */
19
18
  export declare function listApps(options: ListAppsOptions): Promise<AppInfo[]>;
20
- //#endregion
21
19
  export {};
@@ -1,6 +1,5 @@
1
1
  import "../../../../tailor-proto/src/tailor/v1/application_resource_pb.mjs";
2
2
  import "../../../../tailor-proto/src/tailor/v1/application_pb.mjs";
3
- //#region src/cli/commands/workspace/app/transform.d.ts
4
3
  export interface AppInfo {
5
4
  name: string;
6
5
  domain: string;
@@ -15,5 +14,4 @@ export interface AppHealthInfo {
15
14
  lastAttemptStatus: string;
16
15
  lastAttemptAt: Date | null;
17
16
  lastAttemptError: string;
18
- }
19
- //#endregion
17
+ }
@@ -3,7 +3,6 @@ import "../../shared/client.mjs";
3
3
  import "../../shared/context.mjs";
4
4
  import { WorkspaceInfo } from "./transform.mjs";
5
5
  import { z } from "zod";
6
- //#region src/cli/commands/workspace/create.d.ts
7
6
  /**
8
7
  * Schema for workspace creation options
9
8
  * - name: 3-63 chars, lowercase alphanumeric and hyphens, cannot start/end with hyphen
@@ -40,5 +39,4 @@ export type TtlWriteResult = {
40
39
  requested: string;
41
40
  message: string;
42
41
  };
43
- //#endregion
44
42
  export {};
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- //#region src/cli/commands/workspace/delete.d.ts
3
2
  declare const deleteWorkspaceOptionsSchema: z.ZodObject<{
4
3
  workspaceId: z.ZodUUID;
5
4
  }, z.core.$strip>;
@@ -10,5 +9,4 @@ export type DeleteWorkspaceOptions = z.input<typeof deleteWorkspaceOptionsSchema
10
9
  * @returns Promise that resolves when deletion completes
11
10
  */
12
11
  export declare function deleteWorkspace(options: DeleteWorkspaceOptions): Promise<void>;
13
- //#endregion
14
12
  export {};
@@ -1,5 +1,3 @@
1
1
  import "../deploy/label.mjs";
2
- //#region src/cli/commands/workspace/expiry.d.ts
3
2
  /** How a command reports a workspace's recorded expiry. */
4
- export type ReportedExpiry = string | null | "invalid" | "unavailable";
5
- //#endregion
3
+ export type ReportedExpiry = string | null | "invalid" | "unavailable";
@@ -1,7 +1,6 @@
1
1
  import { WorkspaceDetails } from "./transform.mjs";
2
2
  import { ReportedExpiry } from "./expiry.mjs";
3
3
  import { z } from "zod";
4
- //#region src/cli/commands/workspace/get.d.ts
5
4
  declare const getWorkspaceOptionsSchema: z.ZodObject<{
6
5
  workspaceId: z.ZodOptional<z.ZodUUID>;
7
6
  profile: z.ZodOptional<z.ZodString>;
@@ -17,5 +16,4 @@ export type WorkspaceDetailsWithExpiry = WorkspaceDetails & {
17
16
  * @returns Workspace details
18
17
  */
19
18
  export declare function getWorkspace(options: GetWorkspaceOptions): Promise<WorkspaceDetailsWithExpiry>;
20
- //#endregion
21
19
  export {};
@@ -2,7 +2,6 @@ import { Order } from "../../shared/args.mjs";
2
2
  import { WorkspaceInfo } from "./transform.mjs";
3
3
  import "./expiry.mjs";
4
4
  import { z } from "zod";
5
- //#region src/cli/commands/workspace/list.d.ts
6
5
  export interface ListWorkspacesOptions {
7
6
  order?: Order;
8
7
  limit?: number;
@@ -13,5 +12,4 @@ export interface ListWorkspacesOptions {
13
12
  * @param options - Workspace listing options
14
13
  * @returns List of workspaces
15
14
  */
16
- export declare function listWorkspaces(options?: ListWorkspacesOptions): Promise<WorkspaceInfo[]>;
17
- //#endregion
15
+ export declare function listWorkspaces(options?: ListWorkspacesOptions): Promise<WorkspaceInfo[]>;
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- //#region src/cli/commands/workspace/restore.d.ts
3
2
  declare const restoreWorkspaceOptionsSchema: z.ZodObject<{
4
3
  workspaceId: z.ZodUUID;
5
4
  }, z.core.$strip>;
@@ -10,5 +9,4 @@ export type RestoreWorkspaceOptions = z.input<typeof restoreWorkspaceOptionsSche
10
9
  * @returns Promise that resolves when restoration completes
11
10
  */
12
11
  export declare function restoreWorkspace(options: RestoreWorkspaceOptions): Promise<void>;
13
- //#endregion
14
12
  export {};
@@ -1,6 +1,5 @@
1
1
  import "../../../tailor-proto/src/tailor/v1/workspace_resource_pb.mjs";
2
2
  import "../../shared/client.mjs";
3
- //#region src/cli/commands/workspace/transform.d.ts
4
3
  export interface WorkspaceInfo {
5
4
  id: string;
6
5
  name: string;
@@ -15,5 +14,4 @@ export interface WorkspaceDetails extends WorkspaceInfo {
15
14
  deleteProtection: boolean;
16
15
  organizationId: string;
17
16
  folderId: string;
18
- }
19
- //#endregion
17
+ }
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- //#region src/cli/commands/workspace/user/invite.d.ts
3
2
  declare const inviteUserOptionsSchema: z.ZodObject<{
4
3
  workspaceId: z.ZodOptional<z.ZodUUID>;
5
4
  profile: z.ZodOptional<z.ZodString>;
@@ -17,5 +16,4 @@ export type InviteUserOptions = z.input<typeof inviteUserOptionsSchema>;
17
16
  * @returns Promise that resolves when invitation is sent
18
17
  */
19
18
  export declare function inviteUser(options: InviteUserOptions): Promise<void>;
20
- //#endregion
21
19
  export {};
@@ -1,6 +1,5 @@
1
1
  import { UserInfo } from "./transform.mjs";
2
2
  import { z } from "zod";
3
- //#region src/cli/commands/workspace/user/list.d.ts
4
3
  declare const listUsersOptionsSchema: z.ZodObject<{
5
4
  workspaceId: z.ZodOptional<z.ZodUUID>;
6
5
  profile: z.ZodOptional<z.ZodString>;
@@ -17,5 +16,4 @@ export type ListUsersOptions = z.input<typeof listUsersOptionsSchema>;
17
16
  * @returns List of workspace users
18
17
  */
19
18
  export declare function listUsers(options: ListUsersOptions): Promise<UserInfo[]>;
20
- //#endregion
21
19
  export {};
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- //#region src/cli/commands/workspace/user/remove.d.ts
3
2
  declare const removeUserOptionsSchema: z.ZodObject<{
4
3
  workspaceId: z.ZodOptional<z.ZodUUID>;
5
4
  profile: z.ZodOptional<z.ZodString>;
@@ -12,5 +11,4 @@ export type RemoveUserOptions = z.input<typeof removeUserOptionsSchema>;
12
11
  * @returns Promise that resolves when removal completes
13
12
  */
14
13
  export declare function removeUser(options: RemoveUserOptions): Promise<void>;
15
- //#endregion
16
14
  export {};
@@ -1,8 +1,6 @@
1
1
  import "../../../../tailor-proto/src/tailor/v1/workspace_resource_pb.mjs";
2
- //#region src/cli/commands/workspace/user/transform.d.ts
3
2
  export interface UserInfo {
4
3
  userId: string;
5
4
  email: string;
6
5
  role: string;
7
- }
8
- //#endregion
6
+ }
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- //#region src/cli/commands/workspace/user/update.d.ts
3
2
  declare const updateUserOptionsSchema: z.ZodObject<{
4
3
  workspaceId: z.ZodOptional<z.ZodUUID>;
5
4
  profile: z.ZodOptional<z.ZodString>;
@@ -17,5 +16,4 @@ export type UpdateUserOptions = z.input<typeof updateUserOptionsSchema>;
17
16
  * @returns Promise that resolves when update completes
18
17
  */
19
18
  export declare function updateUser(options: UpdateUserOptions): Promise<void>;
20
- //#endregion
21
19
  export {};
@@ -15,11 +15,11 @@ import { OperatorClient, initOperatorClient } from "./shared/client.mjs";
15
15
  import { LoadedConfig, loadConfig } from "./shared/config-loader.mjs";
16
16
  import { NormalizedSchemaSnapshot, SchemaSnapshot, SnapshotFieldConfig, TailorDBSnapshotType } from "./commands/tailordb/migrate/snapshot-types.mjs";
17
17
  import { BreakingChangeInfo, MigrationDiff, formatDiffSummary, formatMigrationDiff, hasChanges } from "./commands/tailordb/migrate/diff-calculator.mjs";
18
+ import { MIGRATION_LABEL_KEY } from "./commands/tailordb/migrate/types.mjs";
18
19
  import { compareLocalTypesWithSnapshot, compareSnapshots } from "./commands/tailordb/migrate/snapshot-comparison.mjs";
19
20
  import { DB_PGLITE_SCHEMA_FILE_NAME, DB_TYPES_FILE_NAME, DIFF_FILE_NAME, INITIAL_SCHEMA_NUMBER, MIGRATE_FILE_NAME, MIGRATE_PGLITE_TEST_FILE_NAME, MIGRATE_TEST_FILE_NAME, SCHEMA_FILE_NAME, getLatestMigrationNumber, getMigrationDirPath, getMigrationFilePath, getMigrationFiles, getNextMigrationNumber } from "./commands/tailordb/migrate/snapshot-files.mjs";
20
21
  import { reconstructSnapshotFromMigrations } from "./commands/tailordb/migrate/snapshot-migrations.mjs";
21
22
  import { createSnapshotFromLocalTypes } from "./commands/tailordb/migrate/snapshot-local.mjs";
22
- import { MIGRATION_LABEL_KEY } from "./commands/tailordb/migrate/types.mjs";
23
23
  import "./commands/tailordb/migrate/snapshot.mjs";
24
24
  import "./commands/deploy/function-registry.mjs";
25
25
  import { NamespaceWithMigrations, getNamespacesWithMigrations } from "./commands/tailordb/migrate/config.mjs";
package/dist/cli/lib.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{a as ee,u as te}from"../logger-RgtbhJ83.mjs";import{$ as e,$i as t,A as n,An as r,Ar as i,At as a,B as o,Bt as s,C as c,Ct as l,Dn as u,E as d,En as f,Er as p,Et as m,Fn as h,Fr as g,Ft as _,Gr as v,Gt as y,Hi as b,Hr as x,Ht as S,Ir as C,Ji as w,Jr as T,Jt as E,Ki as D,L as O,Lt as k,Mn as A,Mr as j,Mt as M,N,Nn as P,Nr as F,Nt as I,O as L,On as R,Ot as z,Pr as B,Qr as V,Qt as H,R as U,St as W,Tn as G,U as K,Ur as q,Ut as J,Vr as Y,W as X,Wr as Z,Xt as Q,Y as ne,Yi as re,Yt as ie,Z as ae,Zr as oe,Zt as $,_ as se,_i as ce,ai as le,at as ue,bn as de,bt as fe,d as pe,dr as me,gt as he,h as ge,ht as _e,i as ve,ii as ye,j as be,ji as xe,jn as Se,jr as Ce,kn as we,kr as Te,kt as Ee,l as De,la as Oe,lt as ke,mi as Ae,mt as je,n as Me,on as Ne,p as Pe,pt as Fe,q as Ie,qi as Le,qt as Re,r as ze,ri as Be,rn as Ve,rt as He,s as Ue,st as We,t as Ge,tt as Ke,ut as qe,vi as Je,vt as Ye,wi as Xe,wn as Ze,x as Qe,xn as $e,y as et,yi as tt,yr as nt,zr as rt,zt as it}from"../register-ts-hook-Dp9reSRG.mjs";import{dt as at}from"../application-B9_NHiUC.mjs";import{t as ot}from"../type-source--ZNcV8RJ.mjs";import{arg as st,defineCommand as ct,runCommand as lt,runMain as ut}from"@politty/zod";await Ge(new URL(`./ts-hook.mjs`,import.meta.url));export{i as DB_PGLITE_SCHEMA_FILE_NAME,Ce as DB_TYPES_FILE_NAME,j as DIFF_FILE_NAME,F as INITIAL_SCHEMA_NUMBER,B as MIGRATE_FILE_NAME,g as MIGRATE_PGLITE_TEST_FILE_NAME,C as MIGRATE_TEST_FILE_NAME,T as MIGRATION_LABEL_KEY,rt as SCHEMA_FILE_NAME,Ze as TAILOR_LOCK_FILENAME,G as TAILOR_LOCK_VERSION,de as WORKSPACE_NAME_MAX_LENGTH,Me as annotateTerminalError,ce as apiCall,f as appIdLockKey,H as apply,H as deploy,st as arg,Je as assertWritable,me as bundleMigrationScript,Q as bundleSeedDumpScript,$ as bundleSeedScript,Re as chunkSeedData,oe as compareLocalTypesWithSnapshot,V as compareSnapshots,D as configArg,Le as confirmationArgs,w as createCommonArgs,ue as createFolder,p as createSnapshotFromLocalTypes,Ne as createWorkspace,b as defineAppCommand,ct as defineCommand,He as deleteFolder,et as deleteWorkspace,h as deployStaticWebsite,re as deploymentArgs,A as ensureConfigId,_e as errorToJson,E as executeScript,Ye as extractOwnedNamespaces,u as findAppIdLock,Be as formatDiffSummary,ye as formatMigrationDiff,je as generate,P as generateUserTypes,c as getAppHealth,S as getExecutor,Ee as getExecutorJob,a as getExecutorWaitFailureMessage,Ke as getFolder,W as getFunctionRegistry,Y as getLatestMigrationNumber,qe as getMachineUserToken,x as getMigrationDirPath,q as getMigrationFilePath,Z as getMigrationFiles,nt as getNamespacesWithMigrations,v as getNextMigrationNumber,ke as getOAuth2Client,ne as getOrganization,k as getWorkflow,it as getWorkflowExecution,se as getWorkspace,le as hasChanges,at as initOperatorClient,Pe as inviteUser,ot as isPluginGeneratedTable,Qe as listApps,M as listExecutorJobs,z as listExecutors,e as listFolders,fe as listFunctionRegistries,Fe as listMachineUsers,We as listOAuth2Clients,Ie as listOrganizations,pe as listUsers,l as listWebhookExecutors,s as listWorkflowExecutions,n as listWorkflows,Ve as listWorkspaces,Xe as loadAccessToken,tt as loadConfig,t as loadEnvFiles,J as loadSeedContext,y as loadTailorDBNamespaces,xe as loadWorkspaceId,O as logBetaWarning,ee as logger,N as migrateGenerate,X as organizationTree,R as parseAppIds,we as planAppIds,Ae as prompt,ve as query,Te as reconstructSnapshotFromMigrations,o as remove,r as removeAdoptedConfigIds,De as removeUser,Se as resolveAppId,ge as restoreWorkspace,L as resumeWorkflow,lt as runCommand,ut as runMain,he as serializeError,U as show,_ as startWorkflow,te as styles,m as triggerExecutor,be as truncate,ae as updateFolder,K as updateOrganization,Ue as updateUser,ie as waitForExecution,d as waitWorkflowExecution,I as watchExecutorJob,ze as withSourceLocation,Oe as workspaceArgs,$e as workspaceNameSchema};
1
+ import{_ as ee,f as te}from"../errors-BXmGBX-7.mjs";import{$ as e,$r as t,$t as n,A as r,An as i,Ar as a,At as o,B as s,Br as c,Bt as l,C as u,Ct as d,Dn as f,Dr as p,E as m,En as h,Et as g,Fr as _,Ft as v,Gr as y,Gt as b,Hr as x,Ht as S,In as C,Ir as w,Ji as T,Jt as E,Kr as D,L as O,Lr as k,Lt as A,Mi as j,Mn as M,Mr as N,Mt as P,N as F,Nn as I,Nr as L,Nt as R,O as z,On as B,Ot as V,Pn as H,Pr as U,Qr as W,Qt as G,R as K,Sn as q,St as J,Ti as Y,Tn as X,U as Z,Ur as Q,Ut as ne,W as re,Wi as ie,Wr as ae,Xi as oe,Xt as $,Y as se,Yi as ce,Yr as le,Yt as ue,Z as de,Zt as fe,_ as pe,ai as me,at as he,bi as ge,br as _e,bt as ve,d as ye,ea as be,fr as xe,gt as Se,h as Ce,hi as we,ht as Te,i as Ee,ii as De,in as Oe,j as ke,jn as Ae,jr as je,kn as Me,kt as Ne,l as Pe,lt as Fe,mt as Ie,n as Le,oi as Re,p as ze,pt as Be,q as Ve,qi as He,r as Ue,rt as We,s as Ge,sn as Ke,st as qe,t as Je,tt as Ye,ua as Xe,ut as Ze,vi as Qe,vt as $e,x as et,xn as tt,y as nt,yi as rt,zt as it}from"../register-ts-hook-CtWJL3EO.mjs";import{ft as at}from"../application-Nce5z46R.mjs";import{t as ot}from"../type-source--ZNcV8RJ.mjs";import{arg as st,defineCommand as ct,runCommand as lt,runMain as ut}from"@politty/zod";await Je(new URL(`./ts-hook.mjs`,import.meta.url));export{je as DB_PGLITE_SCHEMA_FILE_NAME,N as DB_TYPES_FILE_NAME,L as DIFF_FILE_NAME,U as INITIAL_SCHEMA_NUMBER,_ as MIGRATE_FILE_NAME,w as MIGRATE_PGLITE_TEST_FILE_NAME,k as MIGRATE_TEST_FILE_NAME,le as MIGRATION_LABEL_KEY,c as SCHEMA_FILE_NAME,X as TAILOR_LOCK_FILENAME,h as TAILOR_LOCK_VERSION,tt as WORKSPACE_NAME_MAX_LENGTH,Le as annotateTerminalError,Qe as apiCall,f as appIdLockKey,n as apply,n as deploy,st as arg,rt as assertWritable,xe as bundleMigrationScript,fe as bundleSeedDumpScript,G as bundleSeedScript,E as chunkSeedData,W as compareLocalTypesWithSnapshot,t as compareSnapshots,He as configArg,T as confirmationArgs,ce as createCommonArgs,he as createFolder,p as createSnapshotFromLocalTypes,Ke as createWorkspace,ie as defineAppCommand,ct as defineCommand,We as deleteFolder,nt as deleteWorkspace,C as deployStaticWebsite,oe as deploymentArgs,I as ensureConfigId,Te as errorToJson,ue as executeScript,$e as extractOwnedNamespaces,B as findAppIdLock,De as formatDiffSummary,me as formatMigrationDiff,Ie as generate,H as generateUserTypes,u as getAppHealth,S as getExecutor,Ne as getExecutorJob,o as getExecutorWaitFailureMessage,Ye as getFolder,J as getFunctionRegistry,x as getLatestMigrationNumber,Ze as getMachineUserToken,Q as getMigrationDirPath,ae as getMigrationFilePath,y as getMigrationFiles,_e as getNamespacesWithMigrations,D as getNextMigrationNumber,Fe as getOAuth2Client,se as getOrganization,A as getWorkflow,it as getWorkflowExecution,pe as getWorkspace,Re as hasChanges,at as initOperatorClient,ze as inviteUser,ot as isPluginGeneratedTable,et as listApps,P as listExecutorJobs,V as listExecutors,e as listFolders,ve as listFunctionRegistries,Be as listMachineUsers,qe as listOAuth2Clients,Ve as listOrganizations,ye as listUsers,d as listWebhookExecutors,l as listWorkflowExecutions,r as listWorkflows,Oe as listWorkspaces,Y as loadAccessToken,ge as loadConfig,be as loadEnvFiles,ne as loadSeedContext,b as loadTailorDBNamespaces,j as loadWorkspaceId,O as logBetaWarning,te as logger,F as migrateGenerate,re as organizationTree,Me as parseAppIds,i as planAppIds,we as prompt,Ee as query,a as reconstructSnapshotFromMigrations,s as remove,Ae as removeAdoptedConfigIds,Pe as removeUser,M as resolveAppId,Ce as restoreWorkspace,z as resumeWorkflow,lt as runCommand,ut as runMain,Se as serializeError,K as show,v as startWorkflow,ee as styles,g as triggerExecutor,ke as truncate,de as updateFolder,Z as updateOrganization,Ge as updateUser,$ as waitForExecution,m as waitWorkflowExecution,R as watchExecutorJob,Ue as withSourceLocation,Xe as workspaceArgs,q as workspaceNameSchema};
2
2
  //# sourceMappingURL=lib.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"lib.mjs","names":["logger","styles","listFolders","loadEnvFiles","listWorkflows","removeAdoptedConfigIds","DB_PGLITE_SCHEMA_FILE_NAME","getExecutorWaitFailureMessage","remove","listWorkflowExecutions","getAppHealth","listWebhookExecutors","findAppIdLock","waitWorkflowExecution","appIdLockKey","createSnapshotFromLocalTypes","triggerExecutor","deployStaticWebsite","MIGRATE_PGLITE_TEST_FILE_NAME","startWorkflow","getNextMigrationNumber","loadTailorDBNamespaces","defineAppCommand","getMigrationDirPath","getExecutor","MIGRATE_TEST_FILE_NAME","createCommonArgs","MIGRATION_LABEL_KEY","executeScript","configArg","logBetaWarning","getWorkflow","ensureConfigId","DIFF_FILE_NAME","listExecutorJobs","generateUserTypes","INITIAL_SCHEMA_NUMBER","watchExecutorJob","resumeWorkflow","parseAppIds","listExecutors","MIGRATE_FILE_NAME","compareSnapshots","deploy","show","getFunctionRegistry","TAILOR_LOCK_VERSION","updateOrganization","getMigrationFilePath","loadSeedContext","getLatestMigrationNumber","organizationTree","getMigrationFiles","bundleSeedDumpScript","getOrganization","deploymentArgs","waitForExecution","updateFolder","compareLocalTypesWithSnapshot","bundleSeedScript","getWorkspace","apiCall","hasChanges","createFolder","WORKSPACE_NAME_MAX_LENGTH","listFunctionRegistries","listUsers","bundleMigrationScript","serializeError","restoreWorkspace","errorToJson","query","formatMigrationDiff","truncate","loadWorkspaceId","resolveAppId","DB_TYPES_FILE_NAME","planAppIds","reconstructSnapshotFromMigrations","getExecutorJob","removeUser","workspaceArgs","getOAuth2Client","prompt","generate","annotateTerminalError","createWorkspace","inviteUser","listMachineUsers","listOrganizations","confirmationArgs","chunkSeedData","withSourceLocation","formatDiffSummary","listWorkspaces","deleteFolder","updateUser","listOAuth2Clients","registerTsHook","getFolder","getMachineUserToken","assertWritable","extractOwnedNamespaces","loadAccessToken","TAILOR_LOCK_FILENAME","listApps","workspaceNameSchema","deleteWorkspace","loadConfig","getNamespacesWithMigrations","SCHEMA_FILE_NAME","getWorkflowExecution","initOperatorClient","isPluginGeneratedTable","arg","defineCommand","generate$1","runCommand","runMain"],"sources":["../../src/cli/lib.ts"],"sourcesContent":["// CLI API exports for programmatic usage\nimport { registerTsHook } from \"./shared/register-ts-hook\";\n\nawait registerTsHook(new URL(\"./ts-hook.mjs\", import.meta.url));\n\n// CLI foundation shared with plugins. Plugins resolve this package at runtime,\n// so logger state (--json / --verbose) set through these args reaches the SDK\n// code paths they call into. The @politty/zod surface is re-exported for the\n// same reason: arg metadata (aliases, env bindings, effects) lives in a\n// @politty/zod module-level registry, so registration and parsing must use\n// one @politty/zod copy.\nexport { arg, defineCommand, runCommand, runMain } from \"@politty/zod\";\nexport { logger, styles, type LogMode, type LogOptions, type OutOptions } from \"./shared/logger\";\nexport { defineAppCommand } from \"./shared/command\";\nexport { logBetaWarning } from \"./shared/beta\";\nexport { prompt } from \"./shared/prompt\";\nexport { WORKSPACE_NAME_MAX_LENGTH, workspaceNameSchema } from \"./shared/workspace-name\";\nexport {\n createCommonArgs,\n workspaceArgs,\n configArg,\n confirmationArgs,\n deploymentArgs,\n loadEnvFiles,\n type CommonArgsType,\n} from \"./shared/args\";\nexport { deploy, deploy as apply } from \"./commands/deploy/deploy\";\nexport type { DeployOptions, DeployOptions as ApplyOptions } from \"./commands/deploy/deploy\";\nexport type { BundledScripts } from \"./commands/deploy/function-registry\";\nexport { ensureConfigId } from \"./commands/deploy/config-id-injector\";\nexport {\n TAILOR_LOCK_FILENAME,\n TAILOR_LOCK_VERSION,\n appIdLockKey,\n findAppIdLock,\n parseAppIds,\n planAppIds,\n removeAdoptedConfigIds,\n resolveAppId,\n type AppIdEntry,\n type AppIdEntryInput,\n type AppIdLock,\n type AppIdPlan,\n type AppIdPlanMode,\n type AppIds,\n type PlanAppIdsParams,\n type RemoveAdoptedConfigIdsResult,\n type ResolveAppIdParams,\n} from \"./commands/deploy/app-id-lock\";\nexport { generate } from \"./commands/generate/service\";\nexport type { GenerateOptions } from \"./commands/generate/options\";\nexport { loadConfig, type LoadedConfig } from \"./shared/config-loader\";\nexport { extractOwnedNamespaces } from \"./shared/config\";\nexport { errorToJson, serializeError, type ErrorToJsonOptions } from \"./shared/error-json\";\nexport { annotateTerminalError, withSourceLocation } from \"./shared/github-actions\";\nexport type { ErrorSourceLocation } from \"./shared/error-diagnostics\";\nexport { generateUserTypes } from \"./shared/type-generator\";\nexport {\n loadTailorDBNamespaces,\n type TailorDBNamespaceSelector,\n type LoadTailorDBNamespacesOptions,\n type LoadedTailorDBNamespaces,\n} from \"./shared/tailordb-namespaces\";\nexport {\n deployStaticWebsite,\n type DeployResult as StaticWebsiteDeployResult,\n} from \"./commands/staticwebsite/deploy\";\nexport { assertWritable } from \"./shared/readonly-guard\";\nexport { isPluginGeneratedTable } from \"#/parser/service/tailordb/type-source\";\nexport type {\n GeneratorResult,\n Plugin,\n PluginAttachment,\n TailorDBNamespaceData,\n} from \"#/plugin/types\";\nexport type {\n TailorDBType,\n TypeSourceInfoEntry,\n ParsedField,\n OperatorFieldConfig,\n PluginGeneratedTableSource,\n} from \"#/parser/service/tailordb/types\";\nexport type { Resolver } from \"#/types/resolver.generated\";\nexport type { Executor } from \"#/types/executor.generated\";\n\nexport {\n show,\n type ShowOptions,\n type ApplicationInfo,\n type ShowInfo,\n type AIGatewayInfo,\n type ShowStaticWebsiteInfo,\n type ShowOAuth2ClientInfo,\n} from \"./commands/show\";\nexport { remove, type RemoveOptions } from \"./commands/remove\";\nexport { createWorkspace, type CreateWorkspaceOptions } from \"./commands/workspace/create\";\nexport { listWorkspaces, type ListWorkspacesOptions } from \"./commands/workspace/list\";\nexport { deleteWorkspace, type DeleteWorkspaceOptions } from \"./commands/workspace/delete\";\nexport { getWorkspace, type GetWorkspaceOptions } from \"./commands/workspace/get\";\nexport { restoreWorkspace, type RestoreWorkspaceOptions } from \"./commands/workspace/restore\";\nexport type { WorkspaceInfo, WorkspaceDetails } from \"./commands/workspace/transform\";\nexport { listUsers, type ListUsersOptions } from \"./commands/workspace/user/list\";\nexport { inviteUser, type InviteUserOptions } from \"./commands/workspace/user/invite\";\nexport { updateUser, type UpdateUserOptions } from \"./commands/workspace/user/update\";\nexport { removeUser, type RemoveUserOptions } from \"./commands/workspace/user/remove\";\nexport type { UserInfo } from \"./commands/workspace/user/transform\";\nexport { listApps, type ListAppsOptions } from \"./commands/workspace/app/list\";\nexport {\n getAppHealth,\n type HealthOptions as GetAppHealthOptions,\n} from \"./commands/workspace/app/health\";\nexport type { AppInfo, AppHealthInfo } from \"./commands/workspace/app/transform\";\nexport { getFunctionRegistry, type GetFunctionRegistryOptions } from \"./commands/function/get\";\nexport {\n listFunctionRegistries,\n type ListFunctionRegistriesOptions,\n} from \"./commands/function/list\";\nexport type { FunctionRegistryInfo } from \"./commands/function/transform\";\nexport {\n listMachineUsers,\n type ListMachineUsersOptions,\n type MachineUserInfo,\n} from \"./commands/machineuser/list\";\nexport {\n getMachineUserToken,\n type GetMachineUserTokenOptions,\n type MachineUserTokenInfo,\n} from \"./commands/machineuser/token\";\nexport { getOAuth2Client, type GetOAuth2ClientOptions } from \"./commands/oauth2client/get\";\nexport { listOAuth2Clients, type ListOAuth2ClientsOptions } from \"./commands/oauth2client/list\";\nexport type { OAuth2ClientInfo, OAuth2ClientCredentials } from \"./commands/oauth2client/transform\";\nexport { listWorkflows, type ListWorkflowsOptions } from \"./commands/workflow/list\";\nexport { getWorkflow, type GetWorkflowTypedOptions } from \"./commands/workflow/get\";\nexport type { MachineUserName } from \"@tailor-platform/sdk\";\nexport {\n startWorkflow,\n type StartWorkflowTypedOptions,\n type StartWorkflowResultWithWait,\n type WaitOptions,\n} from \"./commands/workflow/start\";\nexport {\n listWorkflowExecutions,\n getWorkflowExecution,\n type ListWorkflowExecutionsTypedOptions,\n type GetWorkflowExecutionOptions,\n type GetWorkflowExecutionResult,\n type WorkflowExecutionWaitInfo,\n} from \"./commands/workflow/executions\";\nexport { waitWorkflowExecution, type WorkflowWaitOutput } from \"./commands/workflow/wait\";\nexport type { WaitWorkflowExecutionOptions, WorkflowWaitResult } from \"./commands/workflow/waiter\";\nexport {\n resumeWorkflow,\n type ResumeWorkflowOptions,\n type ResumeWorkflowResultWithWait,\n} from \"./commands/workflow/resume\";\nexport type {\n WorkflowListInfo,\n WorkflowInfo,\n WorkflowExecutionInfo,\n WorkflowJobExecutionInfo,\n} from \"./commands/workflow/transform\";\nexport type { FunctionLogEntryInfo } from \"./shared/function-execution\";\nexport {\n triggerExecutor,\n type TriggerExecutorTypedOptions,\n type TriggerExecutorResult,\n} from \"./commands/executor/trigger\";\nexport {\n listExecutorJobs,\n getExecutorJob,\n getExecutorWaitFailureMessage,\n watchExecutorJob,\n type ListExecutorJobsTypedOptions,\n type GetExecutorJobTypedOptions,\n type WatchExecutorJobTypedOptions,\n type ExecutorJobDetailInfo,\n type WatchExecutorJobResult,\n} from \"./commands/executor/jobs\";\nexport { listExecutors, type ListExecutorsOptions } from \"./commands/executor/list\";\nexport { getExecutor, type GetExecutorTypedOptions } from \"./commands/executor/get\";\nexport {\n listWebhookExecutors,\n type ListWebhookExecutorsOptions,\n type WebhookExecutorInfo,\n} from \"./commands/executor/webhook\";\nexport type {\n ExecutorJobListInfo,\n ExecutorJobInfo,\n ExecutorJobAttemptInfo,\n ExecutorListInfo,\n ExecutorInfo,\n} from \"./commands/executor/transform\";\nexport { listOrganizations, type ListOrganizationsOptions } from \"./commands/organization/list\";\nexport { getOrganization, type GetOrganizationOptions } from \"./commands/organization/get\";\nexport { updateOrganization, type UpdateOrganizationOptions } from \"./commands/organization/update\";\nexport { organizationTree, type OrganizationTreeOptions } from \"./commands/organization/tree\";\nexport type {\n UserOrganizationInfo,\n OrganizationInfo,\n FolderListInfo,\n FolderInfo,\n} from \"./commands/organization/transform\";\nexport { listFolders, type ListFoldersOptions } from \"./commands/organization/folder/list\";\nexport { getFolder, type GetFolderOptions } from \"./commands/organization/folder/get\";\nexport { createFolder, type CreateFolderOptions } from \"./commands/organization/folder/create\";\nexport { updateFolder, type UpdateFolderOptions } from \"./commands/organization/folder/update\";\nexport { deleteFolder, type DeleteFolderOptions } from \"./commands/organization/folder/delete\";\nexport { loadAccessToken, loadWorkspaceId } from \"./shared/context\";\nexport { apiCall, type ApiCallOptions, type ApiCallResult } from \"./commands/api\";\nexport { query } from \"./query\";\nexport { truncate, type TruncateOptions } from \"./commands/tailordb/truncate\";\n\n// Migration exports\nexport {\n generate as migrateGenerate,\n type GenerateOptions as MigrateGenerateOptions,\n} from \"./commands/tailordb/migrate/generate\";\nexport {\n createSnapshotFromLocalTypes,\n reconstructSnapshotFromMigrations,\n compareSnapshots,\n getNextMigrationNumber,\n getLatestMigrationNumber,\n getMigrationFiles,\n compareLocalTypesWithSnapshot,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport {\n getNamespacesWithMigrations,\n type NamespaceWithMigrations,\n} from \"./commands/tailordb/migrate/config\";\nexport {\n hasChanges,\n formatMigrationDiff,\n formatDiffSummary,\n type MigrationDiff,\n type BreakingChangeInfo,\n} from \"./commands/tailordb/migrate/diff-calculator\";\nexport {\n SCHEMA_FILE_NAME,\n DIFF_FILE_NAME,\n MIGRATE_FILE_NAME,\n MIGRATE_TEST_FILE_NAME,\n MIGRATE_PGLITE_TEST_FILE_NAME,\n DB_TYPES_FILE_NAME,\n DB_PGLITE_SCHEMA_FILE_NAME,\n INITIAL_SCHEMA_NUMBER,\n getMigrationDirPath,\n getMigrationFilePath,\n type SchemaSnapshot,\n type NormalizedSchemaSnapshot,\n type TailorDBSnapshotType,\n type SnapshotFieldConfig,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport { MIGRATION_LABEL_KEY } from \"./commands/tailordb/migrate/types\";\n\n// Seed exports\nexport {\n loadSeedContext,\n type LoadSeedContextOptions,\n type SeedContext,\n type SeedIdpUserContext,\n type SeedNamespaceConfig,\n} from \"./shared/seed-context\";\nexport {\n chunkSeedData,\n type SeedChunk,\n type ChunkSeedDataOptions,\n type SeedData,\n} from \"./shared/seed-chunker\";\nexport {\n bundleSeedScript,\n bundleSeedDumpScript,\n type SeedBundleResult,\n type SeedDumpBundleResult,\n} from \"./commands/generate/seed/bundler\";\nexport {\n bundleMigrationScript,\n type MigrationBundleResult,\n} from \"./commands/tailordb/migrate/bundler\";\nexport {\n executeScript,\n waitForExecution,\n type ScriptExecutionOptions,\n type ScriptExecutionResult,\n type ScriptInvoker,\n type ExecutionWaitResult,\n} from \"./shared/script-executor\";\nexport { initOperatorClient, type OperatorClient } from \"./shared/client\";\nexport type { AuthInvoker } from \"@tailor-platform/tailor-proto/auth_resource_pb\";\n"],"mappings":"A,6qCAGA,MAAMkG,GAAe,IAAI,IAAI,gBAAiB,YAAY,GAAG,CAAC,E"}
1
+ {"version":3,"file":"lib.mjs","names":["styles","logger","listFolders","compareSnapshots","deploy","listWorkflows","planAppIds","reconstructSnapshotFromMigrations","getExecutorWaitFailureMessage","remove","SCHEMA_FILE_NAME","listWorkflowExecutions","getAppHealth","listWebhookExecutors","appIdLockKey","createSnapshotFromLocalTypes","waitWorkflowExecution","TAILOR_LOCK_VERSION","triggerExecutor","MIGRATE_FILE_NAME","startWorkflow","getMigrationFiles","loadTailorDBNamespaces","getLatestMigrationNumber","getExecutor","deployStaticWebsite","MIGRATE_PGLITE_TEST_FILE_NAME","confirmationArgs","chunkSeedData","getNextMigrationNumber","logBetaWarning","MIGRATE_TEST_FILE_NAME","getWorkflow","loadWorkspaceId","resolveAppId","DB_TYPES_FILE_NAME","listExecutorJobs","generate$1","ensureConfigId","DIFF_FILE_NAME","watchExecutorJob","resumeWorkflow","findAppIdLock","listExecutors","generateUserTypes","INITIAL_SCHEMA_NUMBER","compareLocalTypesWithSnapshot","bundleSeedScript","show","workspaceNameSchema","getFunctionRegistry","loadAccessToken","TAILOR_LOCK_FILENAME","updateOrganization","getMigrationDirPath","loadSeedContext","organizationTree","defineAppCommand","getMigrationFilePath","deploymentArgs","waitForExecution","getOrganization","createCommonArgs","MIGRATION_LABEL_KEY","executeScript","updateFolder","bundleSeedDumpScript","getWorkspace","formatMigrationDiff","createFolder","loadConfig","getNamespacesWithMigrations","listFunctionRegistries","listUsers","loadEnvFiles","bundleMigrationScript","serializeError","restoreWorkspace","prompt","errorToJson","query","formatDiffSummary","listWorkspaces","truncate","removeAdoptedConfigIds","DB_PGLITE_SCHEMA_FILE_NAME","parseAppIds","getExecutorJob","removeUser","getOAuth2Client","generate","annotateTerminalError","hasChanges","inviteUser","listMachineUsers","listOrganizations","configArg","withSourceLocation","deleteFolder","updateUser","createWorkspace","listOAuth2Clients","registerTsHook","getFolder","workspaceArgs","getMachineUserToken","apiCall","extractOwnedNamespaces","listApps","WORKSPACE_NAME_MAX_LENGTH","deleteWorkspace","assertWritable","getWorkflowExecution","initOperatorClient","isPluginGeneratedTable","arg","defineCommand","runCommand","runMain"],"sources":["../../src/cli/lib.ts"],"sourcesContent":["// CLI API exports for programmatic usage\nimport { registerTsHook } from \"./shared/register-ts-hook\";\n\nawait registerTsHook(new URL(\"./ts-hook.mjs\", import.meta.url));\n\n// CLI foundation shared with plugins. Plugins resolve this package at runtime,\n// so logger state (--json / --verbose) set through these args reaches the SDK\n// code paths they call into. The @politty/zod surface is re-exported for the\n// same reason: arg metadata (aliases, env bindings, effects) lives in a\n// @politty/zod module-level registry, so registration and parsing must use\n// one @politty/zod copy.\nexport { arg, defineCommand, runCommand, runMain } from \"@politty/zod\";\nexport { logger, styles, type LogMode, type LogOptions, type OutOptions } from \"./shared/logger\";\nexport { defineAppCommand } from \"./shared/command\";\nexport { logBetaWarning } from \"./shared/beta\";\nexport { prompt } from \"./shared/prompt\";\nexport { WORKSPACE_NAME_MAX_LENGTH, workspaceNameSchema } from \"./shared/workspace-name\";\nexport {\n createCommonArgs,\n workspaceArgs,\n configArg,\n confirmationArgs,\n deploymentArgs,\n loadEnvFiles,\n type CommonArgsType,\n} from \"./shared/args\";\nexport { deploy, deploy as apply } from \"./commands/deploy/deploy\";\nexport type { DeployOptions, DeployOptions as ApplyOptions } from \"./commands/deploy/deploy\";\nexport type { BundledScripts } from \"./commands/deploy/function-registry\";\nexport { ensureConfigId } from \"./commands/deploy/config-id-injector\";\nexport {\n TAILOR_LOCK_FILENAME,\n TAILOR_LOCK_VERSION,\n appIdLockKey,\n findAppIdLock,\n parseAppIds,\n planAppIds,\n removeAdoptedConfigIds,\n resolveAppId,\n type AppIdEntry,\n type AppIdEntryInput,\n type AppIdLock,\n type AppIdPlan,\n type AppIdPlanMode,\n type AppIds,\n type PlanAppIdsParams,\n type RemoveAdoptedConfigIdsResult,\n type ResolveAppIdParams,\n} from \"./commands/deploy/app-id-lock\";\nexport { generate } from \"./commands/generate/service\";\nexport type { GenerateOptions } from \"./commands/generate/options\";\nexport { loadConfig, type LoadedConfig } from \"./shared/config-loader\";\nexport { extractOwnedNamespaces } from \"./shared/config\";\nexport { errorToJson, serializeError, type ErrorToJsonOptions } from \"./shared/error-json\";\nexport { annotateTerminalError, withSourceLocation } from \"./shared/github-actions\";\nexport type { ErrorSourceLocation } from \"./shared/error-diagnostics\";\nexport { generateUserTypes } from \"./shared/type-generator\";\nexport {\n loadTailorDBNamespaces,\n type TailorDBNamespaceSelector,\n type LoadTailorDBNamespacesOptions,\n type LoadedTailorDBNamespaces,\n} from \"./shared/tailordb-namespaces\";\nexport {\n deployStaticWebsite,\n type DeployResult as StaticWebsiteDeployResult,\n} from \"./commands/staticwebsite/deploy\";\nexport { assertWritable } from \"./shared/readonly-guard\";\nexport { isPluginGeneratedTable } from \"#/parser/service/tailordb/type-source\";\nexport type {\n GeneratorResult,\n Plugin,\n PluginAttachment,\n TailorDBNamespaceData,\n} from \"#/plugin/types\";\nexport type {\n TailorDBType,\n TypeSourceInfoEntry,\n ParsedField,\n OperatorFieldConfig,\n PluginGeneratedTableSource,\n} from \"#/parser/service/tailordb/types\";\nexport type { Resolver } from \"#/types/resolver.generated\";\nexport type { Executor } from \"#/types/executor.generated\";\n\nexport {\n show,\n type ShowOptions,\n type ApplicationInfo,\n type ShowInfo,\n type AIGatewayInfo,\n type ShowStaticWebsiteInfo,\n type ShowOAuth2ClientInfo,\n} from \"./commands/show\";\nexport { remove, type RemoveOptions } from \"./commands/remove\";\nexport { createWorkspace, type CreateWorkspaceOptions } from \"./commands/workspace/create\";\nexport { listWorkspaces, type ListWorkspacesOptions } from \"./commands/workspace/list\";\nexport { deleteWorkspace, type DeleteWorkspaceOptions } from \"./commands/workspace/delete\";\nexport { getWorkspace, type GetWorkspaceOptions } from \"./commands/workspace/get\";\nexport { restoreWorkspace, type RestoreWorkspaceOptions } from \"./commands/workspace/restore\";\nexport type { WorkspaceInfo, WorkspaceDetails } from \"./commands/workspace/transform\";\nexport { listUsers, type ListUsersOptions } from \"./commands/workspace/user/list\";\nexport { inviteUser, type InviteUserOptions } from \"./commands/workspace/user/invite\";\nexport { updateUser, type UpdateUserOptions } from \"./commands/workspace/user/update\";\nexport { removeUser, type RemoveUserOptions } from \"./commands/workspace/user/remove\";\nexport type { UserInfo } from \"./commands/workspace/user/transform\";\nexport { listApps, type ListAppsOptions } from \"./commands/workspace/app/list\";\nexport {\n getAppHealth,\n type HealthOptions as GetAppHealthOptions,\n} from \"./commands/workspace/app/health\";\nexport type { AppInfo, AppHealthInfo } from \"./commands/workspace/app/transform\";\nexport { getFunctionRegistry, type GetFunctionRegistryOptions } from \"./commands/function/get\";\nexport {\n listFunctionRegistries,\n type ListFunctionRegistriesOptions,\n} from \"./commands/function/list\";\nexport type { FunctionRegistryInfo } from \"./commands/function/transform\";\nexport {\n listMachineUsers,\n type ListMachineUsersOptions,\n type MachineUserInfo,\n} from \"./commands/machineuser/list\";\nexport {\n getMachineUserToken,\n type GetMachineUserTokenOptions,\n type MachineUserTokenInfo,\n} from \"./commands/machineuser/token\";\nexport { getOAuth2Client, type GetOAuth2ClientOptions } from \"./commands/oauth2client/get\";\nexport { listOAuth2Clients, type ListOAuth2ClientsOptions } from \"./commands/oauth2client/list\";\nexport type { OAuth2ClientInfo, OAuth2ClientCredentials } from \"./commands/oauth2client/transform\";\nexport { listWorkflows, type ListWorkflowsOptions } from \"./commands/workflow/list\";\nexport { getWorkflow, type GetWorkflowTypedOptions } from \"./commands/workflow/get\";\nexport type { MachineUserName } from \"@tailor-platform/sdk\";\nexport {\n startWorkflow,\n type StartWorkflowTypedOptions,\n type StartWorkflowResultWithWait,\n type WaitOptions,\n} from \"./commands/workflow/start\";\nexport {\n listWorkflowExecutions,\n getWorkflowExecution,\n type ListWorkflowExecutionsTypedOptions,\n type GetWorkflowExecutionOptions,\n type GetWorkflowExecutionResult,\n type WorkflowExecutionWaitInfo,\n} from \"./commands/workflow/executions\";\nexport { waitWorkflowExecution, type WorkflowWaitOutput } from \"./commands/workflow/wait\";\nexport type { WaitWorkflowExecutionOptions, WorkflowWaitResult } from \"./commands/workflow/waiter\";\nexport {\n resumeWorkflow,\n type ResumeWorkflowOptions,\n type ResumeWorkflowResultWithWait,\n} from \"./commands/workflow/resume\";\nexport type {\n WorkflowListInfo,\n WorkflowInfo,\n WorkflowExecutionInfo,\n WorkflowJobExecutionInfo,\n} from \"./commands/workflow/transform\";\nexport type { FunctionLogEntryInfo } from \"./shared/function-execution\";\nexport {\n triggerExecutor,\n type TriggerExecutorTypedOptions,\n type TriggerExecutorResult,\n} from \"./commands/executor/trigger\";\nexport {\n listExecutorJobs,\n getExecutorJob,\n getExecutorWaitFailureMessage,\n watchExecutorJob,\n type ListExecutorJobsTypedOptions,\n type GetExecutorJobTypedOptions,\n type WatchExecutorJobTypedOptions,\n type ExecutorJobDetailInfo,\n type WatchExecutorJobResult,\n} from \"./commands/executor/jobs\";\nexport { listExecutors, type ListExecutorsOptions } from \"./commands/executor/list\";\nexport { getExecutor, type GetExecutorTypedOptions } from \"./commands/executor/get\";\nexport {\n listWebhookExecutors,\n type ListWebhookExecutorsOptions,\n type WebhookExecutorInfo,\n} from \"./commands/executor/webhook\";\nexport type {\n ExecutorJobListInfo,\n ExecutorJobInfo,\n ExecutorJobAttemptInfo,\n ExecutorListInfo,\n ExecutorInfo,\n} from \"./commands/executor/transform\";\nexport { listOrganizations, type ListOrganizationsOptions } from \"./commands/organization/list\";\nexport { getOrganization, type GetOrganizationOptions } from \"./commands/organization/get\";\nexport { updateOrganization, type UpdateOrganizationOptions } from \"./commands/organization/update\";\nexport { organizationTree, type OrganizationTreeOptions } from \"./commands/organization/tree\";\nexport type {\n UserOrganizationInfo,\n OrganizationInfo,\n FolderListInfo,\n FolderInfo,\n} from \"./commands/organization/transform\";\nexport { listFolders, type ListFoldersOptions } from \"./commands/organization/folder/list\";\nexport { getFolder, type GetFolderOptions } from \"./commands/organization/folder/get\";\nexport { createFolder, type CreateFolderOptions } from \"./commands/organization/folder/create\";\nexport { updateFolder, type UpdateFolderOptions } from \"./commands/organization/folder/update\";\nexport { deleteFolder, type DeleteFolderOptions } from \"./commands/organization/folder/delete\";\nexport { loadAccessToken, loadWorkspaceId } from \"./shared/context\";\nexport { apiCall, type ApiCallOptions, type ApiCallResult } from \"./commands/api\";\nexport { query } from \"./query\";\nexport { truncate, type TruncateOptions } from \"./commands/tailordb/truncate\";\n\n// Migration exports\nexport {\n generate as migrateGenerate,\n type GenerateOptions as MigrateGenerateOptions,\n} from \"./commands/tailordb/migrate/generate\";\nexport {\n createSnapshotFromLocalTypes,\n reconstructSnapshotFromMigrations,\n compareSnapshots,\n getNextMigrationNumber,\n getLatestMigrationNumber,\n getMigrationFiles,\n compareLocalTypesWithSnapshot,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport {\n getNamespacesWithMigrations,\n type NamespaceWithMigrations,\n} from \"./commands/tailordb/migrate/config\";\nexport {\n hasChanges,\n formatMigrationDiff,\n formatDiffSummary,\n type MigrationDiff,\n type BreakingChangeInfo,\n} from \"./commands/tailordb/migrate/diff-calculator\";\nexport {\n SCHEMA_FILE_NAME,\n DIFF_FILE_NAME,\n MIGRATE_FILE_NAME,\n MIGRATE_TEST_FILE_NAME,\n MIGRATE_PGLITE_TEST_FILE_NAME,\n DB_TYPES_FILE_NAME,\n DB_PGLITE_SCHEMA_FILE_NAME,\n INITIAL_SCHEMA_NUMBER,\n getMigrationDirPath,\n getMigrationFilePath,\n type SchemaSnapshot,\n type NormalizedSchemaSnapshot,\n type TailorDBSnapshotType,\n type SnapshotFieldConfig,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport { MIGRATION_LABEL_KEY } from \"./commands/tailordb/migrate/types\";\n\n// Seed exports\nexport {\n loadSeedContext,\n type LoadSeedContextOptions,\n type SeedContext,\n type SeedIdpUserContext,\n type SeedNamespaceConfig,\n} from \"./shared/seed-context\";\nexport {\n chunkSeedData,\n type SeedChunk,\n type ChunkSeedDataOptions,\n type SeedData,\n} from \"./shared/seed-chunker\";\nexport {\n bundleSeedScript,\n bundleSeedDumpScript,\n type SeedBundleResult,\n type SeedDumpBundleResult,\n} from \"./commands/generate/seed/bundler\";\nexport {\n bundleMigrationScript,\n type MigrationBundleResult,\n} from \"./commands/tailordb/migrate/bundler\";\nexport {\n executeScript,\n waitForExecution,\n type ScriptExecutionOptions,\n type ScriptExecutionResult,\n type ScriptInvoker,\n type ExecutionWaitResult,\n} from \"./shared/script-executor\";\nexport { initOperatorClient, type OperatorClient } from \"./shared/client\";\nexport type { AuthInvoker } from \"@tailor-platform/tailor-proto/auth_resource_pb\";\n"],"mappings":"A,krCAGA,MAAMsG,GAAe,IAAI,IAAI,gBAAiB,YAAY,GAAG,CAAC,E"}
@@ -1,5 +1,4 @@
1
1
  import { AnyCommand } from "@politty/zod";
2
- //#region src/cli/main.d.ts
3
2
  export declare const mainCommand: {
4
3
  subCommands: {
5
4
  skills: AnyCommand;
@@ -28,5 +27,4 @@ export declare const mainCommand: {
28
27
  notes?: string | undefined;
29
28
  examples?: import("@politty/zod").Example[] | undefined;
30
29
  runMainHook?: ((argv: readonly string[]) => void) | undefined;
31
- };
32
- //#endregion
30
+ };