@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,4 +1,3 @@
1
- //#region src/types/staticwebsite.generated.d.ts
2
1
  export type StaticWebsite = {
3
2
  /** Static website name */
4
3
  name: string;
@@ -17,5 +16,4 @@ export type StaticWebsite = {
17
16
  };
18
17
  })[] | undefined;
19
18
  };
20
- export type StaticWebsiteInput = StaticWebsite;
21
- //#endregion
19
+ export type StaticWebsiteInput = StaticWebsite;
@@ -1,4 +1,3 @@
1
- //#region src/types/tailordb.generated.d.ts
2
1
  /**
3
2
  * Configuration for GraphQL operations on a TailorDB table.
4
3
  * All operations are enabled by default (undefined or true = enabled, false = disabled).
@@ -465,5 +464,4 @@ export type TailorDBServiceConfigInput = {
465
464
  /** Enable read queries - get, list, aggregation (default: true) */
466
465
  read?: boolean | undefined;
467
466
  } | undefined;
468
- };
469
- //#endregion
467
+ };
@@ -1,4 +1,3 @@
1
- //#region src/types/workflow.generated.d.ts
2
1
  export type RetryPolicy = {
3
2
  /** Maximum number of retries (1-10) */
4
3
  maxRetries: number;
@@ -12,5 +11,4 @@ export type RetryPolicy = {
12
11
  export type ConcurrencyPolicy = {
13
12
  /** Maximum number of concurrent executions (1-1000) */
14
13
  maxConcurrentExecutions: number;
15
- };
16
- //#endregion
14
+ };
@@ -2,7 +2,6 @@ import { TailorDBType } from "../../configure/services/tailordb/schema.mjs";
2
2
  import { TailorField } from "../../configure/types/type.mjs";
3
3
  import { output } from "../../configure/index.mjs";
4
4
  import { StandardSchemaV1 } from "@standard-schema/spec";
5
- //#region src/utils/test/index.d.ts
6
5
  /**
7
6
  * Creates a hook function that processes TailorDB table fields
8
7
  * - Uses existing id from data if provided, otherwise generates UUID for id fields
@@ -37,5 +36,4 @@ export declare function createStandardSchema<T = Record<string, unknown>>(schema
37
36
  readonly vendor: "@tailor-platform/sdk";
38
37
  readonly validate: (value: unknown) => StandardSchemaV1.Result<T>;
39
38
  };
40
- };
41
- //#endregion
39
+ };
@@ -1,2 +1,2 @@
1
- import{t as e}from"../../field-parse-C41e3UAF.mjs";function setField(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0,configurable:!0})}function createTailorDBHook(t){return(n,r=/* @__PURE__ */ new Date)=>{let i=n&&typeof n==`object`?n:void 0,a=Object.entries(t.fields).reduce((t,[n,a])=>{let o=a,s=i&&Object.hasOwn(i,n)?i[n]:void 0,c;if(n===`id`)c=s??crypto.randomUUID();else if(o.type===`nested`){let t=createTailorDBHook({fields:o.fields});c=o.metadata.array?Array.isArray(s)?s.map(n=>e(n)?t(n,r):n):s:e(s)?t(s,r):s}else o.metadata.hooks?.create?(c=o.metadata.hooks.create({input:s,invoker:null,now:r}),c instanceof Date&&(c=c.toISOString())):c=s;if(c==null&&o.metadata.default!==void 0){let e=o.type===`datetime`||o.type===`date`||o.type===`time`;c=o.metadata.default===`now`&&e?r.toISOString():o.metadata.default}return setField(t,n,c),t},{});if(t.metadata?.typeHook?.create){let{id:e,...n}=a,i=t.metadata.typeHook.create({input:n,invoker:null,now:r});if(i&&typeof i==`object`)for(let[e,t]of Object.entries(i))setField(a,e,t instanceof Date?t.toISOString():t)}return a}}function typeLevelIssues(e,t){let n=e?.metadata?.typeValidate;if(!n)return[];let{id:r,...i}=t,a=[];return n({newRecord:i,oldRecord:null,invoker:null},(e,t)=>{a.push({message:t,path:[e]})}),a}function undeclaredFieldMessage(e){return`Field "${e}" is not declared by the table. Remove it from the row, or add it to the table definition and run \`tailor generate\`.`}function isRecord(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function collectUndeclaredFieldIssues(e,t,n,r){if(isRecord(e))for(let i of Object.keys(e)){if(!Object.hasOwn(t,i)){r.push({message:undeclaredFieldMessage(i),path:n.concat(i)});continue}let a=t[i];if(a?.type!==`nested`)continue;let o=e[i],s=a.fields;a.metadata.array?Array.isArray(o)&&o.forEach((e,t)=>{collectUndeclaredFieldIssues(e,s,n.concat(i,`[${t}]`),r)}):collectUndeclaredFieldIssues(o,s,n.concat(i),r)}}function createStandardSchema(e,t,n){let validateHooked=t=>{let r=typeLevelIssues(n,t);if(r.length>0)return{issues:r};let i=e.parse({value:t,data:t,invoker:null});return i.issues?i:{value:t}};return{"~standard":{version:1,vendor:`@tailor-platform/sdk`,validate:e=>{let r=t(e),i=[];n&&collectUndeclaredFieldIssues(e,n.fields,[],i);let a=validateHooked(r),o=[...i,...a.issues??[]];return o.length>0?{issues:o}:a}}}}export{createStandardSchema,createTailorDBHook};
1
+ import{t as e}from"../../field-parse-BQhUAbpM.mjs";function setField(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0,configurable:!0})}function createTailorDBHook(t){return(n,r=/* @__PURE__ */ new Date)=>{let i=n&&typeof n==`object`?n:void 0,a=Object.entries(t.fields).reduce((t,[n,a])=>{let o=a,s=i&&Object.hasOwn(i,n)?i[n]:void 0,c;if(n===`id`)c=s??crypto.randomUUID();else if(o.type===`nested`){let t=createTailorDBHook({fields:o.fields});c=o.metadata.array?Array.isArray(s)?s.map(n=>e(n)?t(n,r):n):s:e(s)?t(s,r):s}else o.metadata.hooks?.create?(c=o.metadata.hooks.create({input:s,invoker:null,now:r}),c instanceof Date&&(c=c.toISOString())):c=s;if(c==null&&o.metadata.default!==void 0){let e=o.type===`datetime`||o.type===`date`||o.type===`time`;c=o.metadata.default===`now`&&e?r.toISOString():o.metadata.default}return setField(t,n,c),t},{});if(t.metadata?.typeHook?.create){let{id:e,...n}=a,i=t.metadata.typeHook.create({input:n,invoker:null,now:r});if(i&&typeof i==`object`)for(let[e,t]of Object.entries(i))setField(a,e,t instanceof Date?t.toISOString():t)}return a}}function typeLevelIssues(e,t){let n=e?.metadata?.typeValidate;if(!n)return[];let{id:r,...i}=t,a=[];return n({newRecord:i,oldRecord:null,invoker:null},(e,t)=>{a.push({message:t,path:[e]})}),a}function undeclaredFieldMessage(e){return`Field "${e}" is not declared by the table. Remove it from the row, or add it to the table definition and run \`tailor generate\`.`}function isRecord(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function collectUndeclaredFieldIssues(e,t,n,r){if(isRecord(e))for(let i of Object.keys(e)){if(!Object.hasOwn(t,i)){r.push({message:undeclaredFieldMessage(i),path:n.concat(i)});continue}let a=t[i];if(a?.type!==`nested`)continue;let o=e[i],s=a.fields;a.metadata.array?Array.isArray(o)&&o.forEach((e,t)=>{collectUndeclaredFieldIssues(e,s,n.concat(i,`[${t}]`),r)}):collectUndeclaredFieldIssues(o,s,n.concat(i),r)}}function createStandardSchema(e,t,n){let validateHooked=t=>{let r=typeLevelIssues(n,t);if(r.length>0)return{issues:r};let i=e.parse({value:t,data:t,invoker:null});return i.issues?i:{value:t}};return{"~standard":{version:1,vendor:`@tailor-platform/sdk`,validate:e=>{let r=t(e),i=[];n&&collectUndeclaredFieldIssues(e,n.fields,[],i);let a=validateHooked(r),o=[...i,...a.issues??[]];return o.length>0?{issues:o}:a}}}}export{createStandardSchema,createTailorDBHook};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,6 +1,5 @@
1
1
  import { DateRepresentationOption } from "../configure/types/field.types.mjs";
2
2
  import { EffectiveDateDefault } from "../runtime/types.mjs";
3
- //#region src/vitest/date-representation.d.ts
4
3
  /**
5
4
  * Expose the date default to `t` date fields in this worker, the way the
6
5
  * define plugin folds it into deployed bundles.
@@ -19,5 +18,4 @@ export declare function applyDateDefault(dateDefault: EffectiveDateDefault): ()
19
18
  * @param representation - The representation to apply, as `as` names it
20
19
  * @returns A function that restores the previous representation
21
20
  */
22
- export declare function applyDateRepresentation(representation: DateRepresentationOption): () => void;
23
- //#endregion
21
+ export declare function applyDateRepresentation(representation: DateRepresentationOption): () => void;
@@ -1,4 +1,3 @@
1
- //#region src/vitest/environment.d.ts
2
1
  declare const _default: {
3
2
  name: string;
4
3
  viteEnvironment: string;
@@ -6,5 +5,4 @@ declare const _default: {
6
5
  teardown(global: typeof globalThis): void;
7
6
  }>;
8
7
  };
9
- //#endregion
10
8
  export { _default as default };
@@ -16,7 +16,6 @@ import { applyDateRepresentation } from "./date-representation.mjs";
16
16
  import { ExecutedQuery, KyselyMock, createKyselyMock } from "./mock-kysely.mjs";
17
17
  import { MigrationStepError, RunMigrationStepsOptions, RunnableMigrationStep, runMigrationSteps } from "./migration-steps.mjs";
18
18
  import { Plugin } from "vitest/config";
19
- //#region src/vitest/index.d.ts
20
19
  /**
21
20
  * Creates Vitest plugins that emulate the Tailor Platform function runtime environment.
22
21
  *
@@ -74,5 +73,4 @@ import { Plugin } from "vitest/config";
74
73
  export declare function tailorRuntime(options?: {
75
74
  config?: string;
76
75
  }): Plugin[];
77
- //#endregion
78
76
  export { type CreateKyselyPGliteOptions, type ExecutedPGliteQuery, type ExecutedQuery, type KyselyMock, MigrationStepError, type MockAigatewayOptions, type MockAuthconnectionOptions, type MockFileOptions, type MockIconvOptions, type MockIdpOptions, type MockLoggerOptions, type MockSecretmanagerOptions, type MockTailordbOptions, type MockTailordbPGliteOptions, type PGliteClient, type PGliteField, type PGliteQueryResult, type QueryBehavior, type QueryMatch, type QueryMatcher, type RunMigrationStepsOptions, type RunWorkflowLocallyOptions, type RunnableMigrationStep, type Unmigrated, applyDateRepresentation, createKyselyMock, createKyselyPGlite, mockAigateway, mockAuthconnection, mockFile, mockIconv, mockIdp, mockLogger, mockSecretmanager, mockTailordb, mockTailordbWithPGlite, mockWorkflow, prepareFixtures, runMigrationSteps, runWorkflowLocally };
@@ -1,4 +1,3 @@
1
- //#region src/vitest/migration-steps.d.ts
2
1
  /**
3
2
  * Run a multi-step migration script's `steps` in tests the way `tailor deploy`
4
3
  * does: in dependency order, each step in its own transaction.
@@ -41,5 +40,4 @@ export declare class MigrationStepError extends Error {
41
40
  */
42
41
  export declare function runMigrationSteps<Trx, Context extends {
43
42
  env: unknown;
44
- }>(steps: Readonly<Record<string, RunnableMigrationStep<Trx, Context>>>, options: RunMigrationStepsOptions<Trx, Context>): Promise<string[]>;
45
- //#endregion
43
+ }>(steps: Readonly<Record<string, RunnableMigrationStep<Trx, Context>>>, options: RunMigrationStepsOptions<Trx, Context>): Promise<string[]>;
@@ -1,5 +1,4 @@
1
1
  import { Kysely, OperationNode, OperationNodeKind, Transaction } from "kysely";
2
- //#region src/vitest/mock-kysely.d.ts
3
2
  /** A single statement executed against the mock, captured in order. */
4
3
  export interface ExecutedQuery {
5
4
  /** The Kysely operation node kind, e.g. `"SelectQueryNode"`. */
@@ -57,5 +56,4 @@ export interface KyselyMock<DB> {
57
56
  * @returns A {@link KyselyMock} with the mock `db`, recorded queries, and result staging.
58
57
  */
59
58
  export declare function createKyselyMock<DB = Record<string, never>>(): KyselyMock<DB>;
60
- //#endregion
61
59
  export {};
@@ -1,5 +1,4 @@
1
1
  import { AIGatewayName } from "@tailor-platform/sdk";
2
- //#region src/vitest/mocks/aigateway.d.ts
3
2
  interface AigatewayCall {
4
3
  name: AIGatewayName;
5
4
  }
@@ -36,5 +35,4 @@ export declare function mockAigateway(options?: MockAigatewayOptions): {
36
35
  clear(): void;
37
36
  reset(): void;
38
37
  } & Disposable;
39
- //#endregion
40
38
  export {};
@@ -1,5 +1,4 @@
1
1
  import { AuthConnectionTokenResult, ConnectionName } from "@tailor-platform/sdk";
2
- //#region src/vitest/mocks/authconnection.d.ts
3
2
  interface AuthConnectionCall {
4
3
  connectionName: ConnectionName;
5
4
  }
@@ -34,5 +33,4 @@ export declare function mockAuthconnection(options?: MockAuthconnectionOptions):
34
33
  clear(): void;
35
34
  reset(): void;
36
35
  } & Disposable;
37
- //#endregion
38
36
  export {};
@@ -1,6 +1,5 @@
1
1
  import { FileDownloadAsBase64Response, FileDownloadResponse, FileDownloadStreamResponse, FileMetadata, FileUploadBytes, FileUploadOptions, FileUploadResponse, FileUploadStreamOptions } from "../../runtime/file.mjs";
2
2
  import { Mock } from "vitest";
3
- //#region src/vitest/mocks/file.d.ts
4
3
  type FileResolver = (method: string, call: FileCall) => unknown;
5
4
  interface FileCall {
6
5
  method: string;
@@ -54,5 +53,4 @@ export declare function mockFile(options?: MockFileOptions): {
54
53
  uploadStream: Mock<(namespace: string, tableName: string, fieldName: string, recordId: string, readableStream: ReadableStream<Uint8Array | ArrayBuffer>, options?: FileUploadStreamOptions) => Promise<FileUploadResponse>>;
55
54
  upload: Mock<(namespace: string, tableName: string, fieldName: string, recordId: string, data: string | FileUploadBytes, options?: Omit<FileUploadOptions, "encoding">) => Promise<FileUploadResponse>>;
56
55
  } & Disposable;
57
- //#endregion
58
56
  export {};
@@ -1,5 +1,4 @@
1
1
  import { MockInstance } from "vitest";
2
- //#region src/vitest/mocks/iconv.d.ts
3
2
  type IconvResolver = (method: string, args: unknown[]) => unknown;
4
3
  type IconvMethod = "convert" | "convertBuffer" | "decode" | "encode" | "encodings";
5
4
  interface IconvCall {
@@ -47,5 +46,4 @@ export declare function mockIconv(options?: MockIconvOptions): {
47
46
  clear: () => void;
48
47
  reset(): void;
49
48
  } & Disposable;
50
- //#endregion
51
49
  export {};
@@ -1,6 +1,5 @@
1
1
  import { IdpClientConstructor, IdpClientInstance } from "../../runtime/idp.mjs";
2
2
  import { Mock } from "vitest";
3
- //#region src/vitest/mocks/idp.d.ts
4
3
  type IdpMethod = keyof IdpClientInstance;
5
4
  type IdpResolver = (method: string, args: unknown[], namespace: string) => unknown;
6
5
  interface IdpCall {
@@ -57,5 +56,4 @@ export declare function mockIdp(options?: MockIdpOptions): {
57
56
  clear(): void;
58
57
  reset(): void;
59
58
  } & Disposable;
60
- //#endregion
61
59
  export {};
@@ -1,5 +1,4 @@
1
1
  import { LogAttributes } from "../../runtime/logger.mjs";
2
- //#region src/vitest/mocks/logger.d.ts
3
2
  type LogSeverity = "debug" | "info" | "warn" | "error";
4
3
  /** A recorded `debug`/`info`/`warn`/`error` call. */
5
4
  interface LogCall {
@@ -41,5 +40,4 @@ export declare function mockLogger(_options?: MockLoggerOptions): {
41
40
  clear(): void;
42
41
  reset(): void;
43
42
  } & Disposable;
44
- //#endregion
45
43
  export {};
@@ -1,4 +1,3 @@
1
- //#region src/vitest/mocks/secretmanager.d.ts
2
1
  interface SecretCall {
3
2
  method: "getSecret" | "getSecrets";
4
3
  vault: string;
@@ -40,5 +39,4 @@ export declare function mockSecretmanager(options?: MockSecretmanagerOptions): {
40
39
  clear(): void;
41
40
  reset(): void;
42
41
  } & Disposable;
43
- //#endregion
44
42
  export {};
@@ -1,5 +1,4 @@
1
1
  import { PGliteClient } from "../pglite-kysely.mjs";
2
- //#region src/vitest/mocks/tailordb-pglite.d.ts
3
2
  /** A query executed through the PGlite-backed TailorDB client. */
4
3
  export interface ExecutedPGliteQuery {
5
4
  /** Namespace of the `getDB` call that issued the query. */
@@ -86,5 +85,4 @@ export declare function mockTailordbWithPGlite(options: MockTailordbPGliteOption
86
85
  */
87
86
  reset(): void;
88
87
  } & Disposable;
89
- //#endregion
90
88
  export {};
@@ -1,4 +1,3 @@
1
- //#region src/vitest/mocks/tailordb.d.ts
2
1
  type QueryResolver = (query: string, params: unknown[]) => unknown[] | undefined;
3
2
  /** Controls how unmatched TailorDB queries are handled. */
4
3
  export interface MockTailordbOptions {
@@ -111,5 +110,4 @@ export declare function mockTailordb(options?: MockTailordbOptions): {
111
110
  /** Reset query responses and recorded calls (keeps the mock installed). */
112
111
  reset(): void;
113
112
  } & Disposable;
114
- //#endregion
115
113
  export {};
@@ -4,7 +4,6 @@ import { WorkflowJob } from "../../configure/services/workflow/job.mjs";
4
4
  import { Workflow } from "../../configure/services/workflow/workflow.mjs";
5
5
  import { ParameterizedWaitPointInstance, WaitPointInstance } from "../../configure/services/workflow/wait-point.mjs";
6
6
  import { Mock } from "vitest";
7
- //#region src/vitest/mocks/workflow.d.ts
8
7
  type JobHandler = (jobName: string, args: unknown, options?: ExecJobFunctionOptions) => unknown;
9
8
  type StartHandlerFn = (workflowName: string, args: unknown, options?: StartWorkflowOptions) => string;
10
9
  type ResumeHandlerFn = (executionId: string) => string;
@@ -157,5 +156,4 @@ export declare function mockWorkflow(): {
157
156
  /** Reset all workflow responses and recorded calls (keeps the mock installed). */
158
157
  reset(): void;
159
158
  } & Disposable;
160
- //#endregion
161
159
  export {};
@@ -1,6 +1,5 @@
1
1
  import { PGliteField } from "./pglite-temporal.mjs";
2
2
  import { ColumnType, Kysely } from "kysely";
3
- //#region src/vitest/pglite-kysely.d.ts
4
3
  /** Result of a {@link PGliteClient.query} call. */
5
4
  export interface PGliteQueryResult {
6
5
  /** Rows returned by the statement. */
@@ -101,5 +100,4 @@ export declare function createKyselyPGlite<DB = Record<string, never>>(client: P
101
100
  * ```
102
101
  */
103
102
  export declare function prepareFixtures<T>(client: PGliteClient, prepare: () => Promise<T>): Promise<T>;
104
- //#endregion
105
103
  export {};
@@ -1,9 +1,7 @@
1
- //#region src/vitest/pglite-temporal.d.ts
2
1
  /** Name and Postgres type OID of a column PGlite returned. */
3
2
  export interface PGliteField {
4
3
  /** Column name */
5
4
  name: string;
6
5
  /** Postgres type OID */
7
6
  dataTypeID: number;
8
- }
9
- //#endregion
7
+ }
@@ -1,5 +1,4 @@
1
1
  import { applyDateDefault } from "./date-representation.mjs";
2
- //#region src/vitest/setup.d.ts
3
2
  /**
4
3
  * Extract a vault store from a secrets-shaped value.
5
4
  *
@@ -22,5 +21,4 @@ export declare function extractVaultStore(secrets: unknown): Record<string, Reco
22
21
  * @returns Vault store keyed by vault name, or null if unavailable
23
22
  */
24
23
  export declare function loadSecretsFromConfig(configPath: string): Promise<Record<string, Record<string, string>> | null>;
25
- //#endregion
26
24
  export { applyDateDefault };
@@ -2,7 +2,6 @@ import { TailorEnv } from "../runtime/types.mjs";
2
2
  import { WorkflowJob } from "../configure/services/workflow/job.mjs";
3
3
  import { Workflow } from "../configure/services/workflow/workflow.mjs";
4
4
  import "../configure/services/workflow/index.mjs";
5
- //#region src/vitest/workflow-local.d.ts
6
5
  type AnyWorkflowJob = WorkflowJob<string, any, any>;
7
6
  type AnyWorkflow = Workflow<AnyWorkflowJob>;
8
7
  type WorkflowInput<W extends AnyWorkflow> = W["mainJob"] extends WorkflowJob<string, infer I, any> ? I : never;
@@ -37,5 +36,4 @@ export declare function runWorkflowLocally<W extends Workflow<WorkflowJob<string
37
36
  * @returns The main job output
38
37
  */
39
38
  export declare function runWorkflowLocally<W extends AnyWorkflow>(workflow: W, args: WorkflowInput<W>, options?: RunWorkflowLocallyOptions): Promise<WorkflowOutput<W>>;
40
- //#endregion
41
39
  export {};
@@ -270,7 +270,8 @@ Pass the global `--json` / `-j` flag to get machine-readable output.
270
270
 
271
271
  - `summary` — counts of each change type. `forcedBySdkVersion` counts the updates forced by the SDK version, which are also included in `update`.
272
272
  - `changes` — planned resource changes, each with `action`, `name`, and optional `labels` / `namespace`. An update forced by the SDK version also has `forcedBySdkVersion: true`.
273
- - `warnings` — resources not in config (`type: "unmanaged"`) or secrets with missing values (`type: "skippedSecret"`). Unmanaged resources require confirmation in apply mode (apply is cancelled if declined); skipped secrets are non-blocking.
273
+ - `warnings` — resources not in config (`type: "unmanaged"`), secrets with missing values (`type: "skippedSecret"`), or applications recorded as depending on this deploy but missing from it (`type: "missingDependentApp"`). Unmanaged resources and missing dependent applications require confirmation in apply mode (apply is cancelled if declined); skipped secrets are non-blocking.
274
+ - A `missingDependentApp` entry names the missing application's `appId`, the `reason` it depends on this deploy, and the resource whose event publishing turns off when applying without it (`resourceType` and `name`, plus `namespace` for a TailorDB table or resolver). An entry about a workflow's jobs rather than the workflow itself has `scope: "jobs"`.
274
275
  - `conflicts` — resources owned by another application that conflict with the current config. Require confirmation in apply mode; apply is cancelled if declined.
275
276
  - `resourceType` in `warnings` and `conflicts` is a stable identifier of the resource kind, such as `executor`, `tailordb.service`, or `secret.secret`. The human-readable plan shows a display name instead.
276
277
 
@@ -286,7 +286,7 @@ See [Global Options](../cli-reference.md#global-options) for options available t
286
286
 
287
287
  **Notes**
288
288
 
289
- Every local migration file is checked for a compatible format version, and deployed migration history IDs must match the local baseline. Compatibility errors, history mismatches, and metadata lookup failures are reported per namespace and make the command exit non-zero; only a not-yet-deployed namespace is treated as having no applied migrations.
289
+ Local migration files are checked for a valid layout (numbering and required files in each migration directory) and a compatible format version, and deployed migration history IDs must match the local baseline. Invalid or incompatible files, history mismatches, and metadata lookup failures are reported per namespace and make the command exit non-zero; only a not-yet-deployed namespace is treated as having no applied migrations.
290
290
 
291
291
  #### tailordb migration sync
292
292
 
package/docs/cli/user.md CHANGED
@@ -70,10 +70,10 @@ See [Global Options](../cli-reference.md#global-options) for options available t
70
70
 
71
71
  **Commands**
72
72
 
73
- | Command | Description |
74
- | ----------------------------- | ------------------------------------------------------------------------------------- |
75
- | [`auth status`](#auth-status) | Show the active Tailor Platform authentication status without printing tokens. |
76
- | [`auth token`](#auth-token) | Print a valid Tailor Platform access token to stdout, refreshing it first if expired. |
73
+ | Command | Description |
74
+ | ----------------------------- | ------------------------------------------------------------------------------------------------------------ |
75
+ | [`auth status`](#auth-status) | Show the active Tailor Platform authentication status without printing tokens. |
76
+ | [`auth token`](#auth-token) | Print a valid Tailor Platform access token to stdout, refreshing it first if it expires within five minutes. |
77
77
 
78
78
  ### auth status
79
79
 
@@ -95,7 +95,7 @@ See [Global Options](../cli-reference.md#global-options) for options available t
95
95
 
96
96
  ### auth token
97
97
 
98
- Print a valid Tailor Platform access token to stdout, refreshing it first if expired.
98
+ Print a valid Tailor Platform access token to stdout, refreshing it first if it expires within five minutes.
99
99
 
100
100
  **Usage**
101
101
 
@@ -253,7 +253,7 @@ Manage when a workspace becomes prunable.
253
253
  **Usage**
254
254
 
255
255
  ```
256
- tailor workspace ttl [command]
256
+ tailor workspace ttl <command>
257
257
  ```
258
258
 
259
259
  See [Global Options](../cli-reference.md#global-options) for options available to all commands.
@@ -20,8 +20,8 @@ tailor <command> [options]
20
20
  | ------------------------------------------- | ----- | --------------------------------------------------- | -------- | ------- | -------------------- |
21
21
  | `--env-file <ENV_FILE>` | `-e` | Path to the environment file (error if not found) | No | - | - |
22
22
  | `--env-file-if-exists <ENV_FILE_IF_EXISTS>` | - | Path to the environment file (ignored if not found) | No | - | - |
23
- | `--verbose` | - | Enable verbose logging | No | `false` | - |
24
- | `--json` | `-j` | Output as JSON | No | `false` | `TAILOR_JSON_OUTPUT` |
23
+ | `--verbose` / `--no-verbose` | - | Enable verbose logging | No | `false` | - |
24
+ | `--json` / `--no-json` | `-j` | Output as JSON | No | `false` | `TAILOR_JSON_OUTPUT` |
25
25
 
26
26
  ### Progress and Detailed Logs
27
27
 
@@ -82,13 +82,13 @@ unexpected argument, or an option value that fails validation (including one set
82
82
  environment variable), and `1` for other failures, including checks a command makes after reading
83
83
  its arguments. A command that only warns about an unknown option or an extra argument keeps
84
84
  running. Cancelling an interactive prompt exits with `130`, and a CLI plugin exits with its own
85
- code. A command group run without a subcommand, such as `tailor` or `tailor tailordb`, can exit
86
- with `0` after printing its help or a warning even when an option is unknown or its value is
87
- invalid, so name the subcommand to rely on `2`.
85
+ code.
88
86
 
89
87
  Authentication failures distinguish missing credentials (`AUTH_TOKEN_NOT_FOUND`), a missing saved
90
88
  user (`AUTH_USER_NOT_FOUND`), an expired token (`AUTH_TOKEN_EXPIRED`), and a failed token refresh
91
- (`AUTH_TOKEN_REFRESH_FAILED`). Login recovery preserves the selected profile. For saved identities,
89
+ (`AUTH_TOKEN_REFRESH_FAILED`). `CONFIG_LOCK_TIMEOUT` means another `tailor` command kept the saved
90
+ credentials locked for too long; `error.context.lockPath` names the lock file to delete if no other
91
+ command is running. Login recovery preserves the selected profile. For saved identities,
92
92
  the next step opens login help so you can reuse the original browser or machine-user login method. Permission and
93
93
  connection failures include guidance in `error.suggestion`; API failures also identify the operation
94
94
  and affected resources in `error.context`.
@@ -107,7 +107,8 @@ excluded from that list.
107
107
  Use `--verbose` to include debug diagnostics and error stack traces. `DEBUG=true` or
108
108
  `RUNNER_DEBUG=1` also enables verbose output, including stacks in JSON errors. GitHub Actions
109
109
  sets `RUNNER_DEBUG=1` when debug logging is enabled, so the same command automatically includes
110
- these details in a debug run. These settings do not enable JSON output; pass `--json` separately.
110
+ these details in a debug run. `--no-verbose` turns verbose output off even when these are set.
111
+ These settings do not enable JSON output; pass `--json` separately.
111
112
 
112
113
  Capture the original failure's stderr and exit code before retrying. Failures before the CLI starts,
113
114
  a rejected `--json` or `TAILOR_JSON_OUTPUT` value, argument errors in the bundled CLI plugins, and
@@ -300,7 +301,7 @@ the plugin does not need to re-implement authentication or re-resolve the active
300
301
  The token, workspace ID, and user are best-effort: whatever the current context can resolve is injected,
301
302
  and auth-free plugins still run when you are not logged in. A long-running plugin (or one started on its
302
303
  own) can obtain a fresh token at any time with `tailor auth token`, which prints a valid access token to
303
- stdout, refreshing it first if it has expired.
304
+ stdout, refreshing it first if it expires within five minutes.
304
305
 
305
306
  ## Commands
306
307
 
@@ -362,23 +363,23 @@ Run ad-hoc SQL/GraphQL queries or enter the interactive REPL.
362
363
 
363
364
  Commands for authentication and user management.
364
365
 
365
- | Command | Description |
366
- | ------------------------------------------------ | ------------------------------------------------------------------------------------- |
367
- | [login](./cli/user.md#login) | Login to Tailor Platform. |
368
- | [logout](./cli/user.md#logout) | Logout from Tailor Platform. |
369
- | [auth](./cli/user.md#auth) | Authentication helpers for scripts and plugins. |
370
- | [auth status](./cli/user.md#auth-status) | Show the active Tailor Platform authentication status without printing tokens. |
371
- | [auth token](./cli/user.md#auth-token) | Print a valid Tailor Platform access token to stdout, refreshing it first if expired. |
372
- | [user](./cli/user.md#user) | Manage Tailor Platform users. |
373
- | [user current](./cli/user.md#user-current) | Show current user. |
374
- | [user list](./cli/user.md#user-list) | List all users. |
375
- | [user pat](./cli/user.md#user-pat) | Manage personal access tokens. |
376
- | [user pat create](./cli/user.md#user-pat-create) | Create a new personal access token. |
377
- | [user pat delete](./cli/user.md#user-pat-delete) | Delete a personal access token. |
378
- | [user pat list](./cli/user.md#user-pat-list) | List all personal access tokens. |
379
- | [user pat update](./cli/user.md#user-pat-update) | Update a personal access token (delete and recreate). |
380
- | [user switch](./cli/user.md#user-switch) | Set current user. |
381
- | [user update](./cli/user.md#user-update) | Set the current user's default organization and folder for new workspaces. |
366
+ | Command | Description |
367
+ | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
368
+ | [login](./cli/user.md#login) | Login to Tailor Platform. |
369
+ | [logout](./cli/user.md#logout) | Logout from Tailor Platform. |
370
+ | [auth](./cli/user.md#auth) | Authentication helpers for scripts and plugins. |
371
+ | [auth status](./cli/user.md#auth-status) | Show the active Tailor Platform authentication status without printing tokens. |
372
+ | [auth token](./cli/user.md#auth-token) | Print a valid Tailor Platform access token to stdout, refreshing it first if it expires within five minutes. |
373
+ | [user](./cli/user.md#user) | Manage Tailor Platform users. |
374
+ | [user current](./cli/user.md#user-current) | Show current user. |
375
+ | [user list](./cli/user.md#user-list) | List all users. |
376
+ | [user pat](./cli/user.md#user-pat) | Manage personal access tokens. |
377
+ | [user pat create](./cli/user.md#user-pat-create) | Create a new personal access token. |
378
+ | [user pat delete](./cli/user.md#user-pat-delete) | Delete a personal access token. |
379
+ | [user pat list](./cli/user.md#user-pat-list) | List all personal access tokens. |
380
+ | [user pat update](./cli/user.md#user-pat-update) | Update a personal access token (delete and recreate). |
381
+ | [user switch](./cli/user.md#user-switch) | Set current user. |
382
+ | [user update](./cli/user.md#user-update) | Set the current user's default organization and folder for new workspaces. |
382
383
 
383
384
  ### [Organization Commands](./cli/organization.md)
384
385
 
@@ -64,9 +64,9 @@ export default defineConfig({
64
64
 
65
65
  Entries are only added or overwritten. An entry removed from the config keeps its last deployed value on the platform, and labels the config does not name are left untouched. Because those retained labels count towards the platform's limit of 20 labels per resource, `deploy` reports the overflow and stops before changing the application when the labels it would leave behind exceed that limit. The labels are written when the application itself is deployed, so a config with no TailorDB, Resolver, IdP, or Auth service has no application to carry them.
66
66
 
67
- **Build Options**: `buildOptions` groups the settings that control how resolvers, executors, workflow jobs, and other functions are bundled: `logLevel` (below), `inlineSourcemap` (whether bundled functions embed an inline sourcemap for readable error stack traces; default `true`), `inlineSourcemapDependencySources` (below), `allowedRuntimeGlobals` (see [Node-only globals](#node-only-globals)), and `treeshake` (see [Removing unused code](#removing-unused-code)). The top-level `logLevel` and `inlineSourcemap` fields still work but are deprecated; `tailor upgrade` moves them into `buildOptions`. Setting the same option both at the top level and in `buildOptions` is rejected.
67
+ **Build Options**: `buildOptions` groups the settings that control how resolvers, executors, workflow jobs, and other functions are bundled: `logLevel` (below), `inlineSourcemap` (whether bundled functions embed an inline sourcemap for readable error stack traces; default `true`), `inlineSourcemapDependencySources` and `inlineSourcemapProjectSources` (below), `allowedRuntimeGlobals` (see [Node-only globals](#node-only-globals)), and `treeshake` (see [Removing unused code](#removing-unused-code)). The top-level `logLevel` and `inlineSourcemap` fields still work but are deprecated; `tailor upgrade` moves them into `buildOptions`. Setting the same option both at the top level and in `buildOptions` is rejected.
68
68
 
69
- **Sourcemap Sources** (`buildOptions.inlineSourcemapDependencySources`): Whether the inline sourcemap embeds the source text of installed packages, that is, everything under `node_modules`. The default is `false`: only your own source files are embedded, which makes bundled functions much smaller. Error positions in stack traces resolve to the original files and lines either way. With the default, `tailor function run` and `tailor function logs` show the code snippet for a frame inside an installed package from the package's file on your machine, so the snippet is missing when that file is not installed locally (for `tailor function logs`, run it from the project directory you deployed from). Set it to `true` to embed the source text of installed packages as well, or to a list of package names such as `["kysely", "@scope/lib"]` to embed only those packages. A listed package's own dependencies are not embedded unless they are listed too. It has no effect when `inlineSourcemap` is `false`.
69
+ **Sourcemap Sources** (`buildOptions.inlineSourcemapDependencySources`): Whether the inline sourcemap embeds the source text of installed packages, that is, everything under `node_modules`. The default is `false`: only your own source files are embedded, which makes bundled functions much smaller. Error positions in stack traces resolve to the original files and lines either way. With the default, `tailor function run` and `tailor function logs` show the code snippet for a frame inside an installed package from the package's file on your machine, so the snippet is missing when that file is not installed locally (for `tailor function logs`, run it from the project directory you deployed from). Set it to `true` to embed the source text of installed packages as well, or to a list of package names such as `["kysely", "@scope/lib"]` to embed only those packages. A listed package's own dependencies are not embedded unless they are listed too. Files under `node_modules` that belong to no package, such as a generated client in `node_modules/.prisma`, are embedded only when the option is `true`. It has no effect when `inlineSourcemap` is `false`.
70
70
 
71
71
  ```typescript
72
72
  export default defineConfig({
@@ -79,6 +79,17 @@ export default defineConfig({
79
79
 
80
80
  This is a bundle-time setting. It affects newly bundled deployments; already deployed functions keep the sourcemap they were deployed with until they are redeployed.
81
81
 
82
+ **Project Sourcemap Sources** (`buildOptions.inlineSourcemapProjectSources`): Which of your own source files embed their text in the inline sourcemap. By default all of them do. `include` and `exclude` are globs relative to the directory containing your config file, written without a leading `./` (a `./` prefix is ignored). Only files matching `include` (all files when omitted) and not matching `exclude` keep their text. `**` does not match a dot-directory such as `src/.cache`. Files under `node_modules` are controlled by `inlineSourcemapDependencySources` instead. Error positions still resolve to the original files and lines, but `tailor function run` shows no code snippet for a frame in a file whose text is left out. It has no effect when `inlineSourcemap` is `false`.
83
+
84
+ ```typescript
85
+ export default defineConfig({
86
+ name: "my-app",
87
+ buildOptions: {
88
+ inlineSourcemapProjectSources: { exclude: ["src/generated/**"] },
89
+ },
90
+ });
91
+ ```
92
+
82
93
  **Log Level** (`buildOptions.logLevel`): Controls which `console.*` and `logger.*` (from `@tailor-platform/sdk/runtime`) calls are kept when deployment functions are bundled. Supported values are `"DEBUG"`, `"INFO"`, `"WARN"`, `"ERROR"`, and `"SILENT"`. The default is `"DEBUG"` and keeps all calls. `console.log` is treated as a DEBUG-level call (matching the platform's OpenTelemetry severity mapping), so it is dropped at `"INFO"` and above, alongside `console.debug` and `logger.debug`. `logger.setAttributes` has no severity and is never dropped, regardless of `logLevel`. For production deployments, use `"WARN"` to keep warn/error calls while dropping debug, log, and info calls:
83
94
 
84
95
  ```typescript
@@ -249,6 +249,29 @@ For a preview target, the name can be at most 50 characters: each pull request
249
249
  gets its own workspace named `<name>-pr-<number>`, which must fit in 63
250
250
  characters.
251
251
 
252
+ ### Preview target (per-pull-request workspace)
253
+
254
+ The preview target deploys each pull request to its own workspace and deletes
255
+ that workspace when the pull request is closed:
256
+
257
+ ```bash
258
+ tailor setup ci preview --name my-app --region asia-northeast
259
+ ```
260
+
261
+ Fork pull requests are skipped. Every other pull request gets a preview, draft
262
+ pull requests included. `--require` narrows that to one of:
263
+
264
+ - `--require ready` skips draft pull requests. The preview is deployed when the
265
+ draft is marked ready for review.
266
+ - `--require label` deploys only pull requests labeled `tailor:preview`. A
267
+ labeled draft deploys too, because the label asks for the preview.
268
+
269
+ When `tailor setup update` regenerates a preview target generated before
270
+ `--require` existed, it reads the target as `--require ready`, or as
271
+ `--require label` if it required the label. The first keeps skipping drafts; the
272
+ second now also deploys a labeled draft. To deploy drafts as well, run
273
+ `tailor setup ci preview` again without `--require`.
274
+
252
275
  ## Targeting a workspace
253
276
 
254
277
  The generated `plan` and `deploy` jobs target a workspace by **id**, read from
@@ -385,8 +408,8 @@ A job that runs `tailor` against the workspace needs the machine-user
385
408
  that only uses `app-url`, such as end-to-end tests, does not.
386
409
 
387
410
  The job is skipped whenever `tailor-preview-deploy` is skipped: when a pull
388
- request is closed, for draft and fork pull requests, and for unlabeled ones with
389
- `--require-preview-label`.
411
+ request is closed, for fork pull requests, for draft pull requests with
412
+ `--require ready`, and for unlabeled ones with `--require label`.
390
413
 
391
414
  A preview workspace expires 7 days (`ttl: 7d` on `tailor-preview-deploy`) after
392
415
  the last push to its pull request. When a pull request is closed,
@@ -476,11 +499,11 @@ failed also counts as passing, so list every job of yours whose failure should
476
499
  block merging, not only the last one: above, `seed` is listed because `e2e`
477
500
  needs it.
478
501
 
479
- With `--require-preview-label`, the preview workflow does not start when a pull
480
- request is opened, so its check is not reported until the pull request is
481
- labeled, reopened, or pushed to. A draft pull request skips the preview deploy,
482
- and marking it ready for review does not start the workflow, so the check that
483
- passed while it was a draft stays until the next push. Tag workflows have no
502
+ With `--require label`, the preview workflow does not start when a pull request
503
+ is opened, so its check is not reported until the pull request is labeled,
504
+ reopened, or pushed to. With `--require ready`, a draft pull request skips the
505
+ preview deploy and its check passes; marking it ready for review starts the
506
+ workflow, so the deploy and its check follow right away. Tag workflows have no
484
507
  such job: they run on tags, not on pull requests.
485
508
 
486
509
  ### `.github/tailor.lock`
@@ -758,7 +781,7 @@ Before enabling it, note that:
758
781
  and validation run, `updatedAt` changes, and executors with
759
782
  `recordUpdatedTrigger` fire once per seeded row on every deploy.
760
783
  - Every preview deploy deletes the data reviewers added to the preview
761
- workspace. That is every push, and with `--require-preview-label` also every
784
+ workspace. That is every push, and with `--require label` also every
762
785
  label added to the pull request, since each one redeploys the preview.
763
786
  - A seed failure fails the deploy job and its notification, although the deploy
764
787
  itself went through.
@@ -1016,8 +1039,8 @@ targets it reports.
1016
1039
  Workflows generated by `setup ci branch`, `setup ci tag`, and `setup ci preview`
1017
1040
  self-audit: each contains a `tailor-drift-check` step that
1018
1041
  runs the check in CI. Preview workflows run it alongside each preview deploy,
1019
- so pull requests that deploy no preview (drafts, fork PRs, and unlabeled PRs
1020
- in label-triggered mode) skip the check. A single run audits every target
1042
+ so pull requests that deploy no preview (drafts with `--require ready`, fork
1043
+ PRs, and unlabeled PRs with `--require label`) skip the check. A single run audits every target
1021
1044
  recorded in `.github/tailor.lock`.
1022
1045
 
1023
1046
  Drift findings are advisory by default. Set the repository variable
@@ -32,6 +32,12 @@ workspace/
32
32
  └── analytics-connection-string
33
33
  ```
34
34
 
35
+ ### Reserved Vault Names
36
+
37
+ Vault names that start with `tailor--` (two hyphens) are reserved in advance for the platform and have no use today. Declaring such a vault in `defineSecretManager()` prints a warning on `tailor deploy` and will become an error in v3. A name that starts with a single `tailor-`, such as `tailor-reports`, is not reserved.
38
+
39
+ `tailor deploy` also creates a vault named `idp-<namespace>-<client>` for each IdP client of your application. A declared vault with exactly that name is an error, because both would write to the same vault.
40
+
35
41
  ### Secrets
36
42
 
37
43
  Secrets are key-value pairs stored within a vault. Secret values are encrypted at rest and only accessible at runtime by authorized services.