@tailor-platform/sdk 2.33.0 → 2.35.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 (336) hide show
  1. package/CHANGELOG.md +84 -0
  2. package/dist/ai/index.d.mts +1 -3
  3. package/dist/{application-Bet1K5C4.mjs → application-Bj2MtL-d.mjs} +1 -1
  4. package/dist/application-DIsQSnj3.mjs +207 -0
  5. package/dist/application-DIsQSnj3.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/migration-validation.d.mts +1 -2
  24. package/dist/cli/commands/deploy/tailordb/plan.d.mts +1 -0
  25. package/dist/cli/commands/deploy/workflow-execution-policy.d.mts +2 -1
  26. package/dist/cli/commands/deploy/workflow.d.mts +1 -0
  27. package/dist/cli/commands/executor/get.d.mts +0 -2
  28. package/dist/cli/commands/executor/jobs.d.mts +0 -2
  29. package/dist/cli/commands/executor/list.d.mts +1 -3
  30. package/dist/cli/commands/executor/transform.d.mts +1 -3
  31. package/dist/cli/commands/executor/trigger.d.mts +0 -2
  32. package/dist/cli/commands/executor/webhook.d.mts +1 -3
  33. package/dist/cli/commands/function/get.d.mts +0 -2
  34. package/dist/cli/commands/function/list.d.mts +0 -2
  35. package/dist/cli/commands/function/transform.d.mts +1 -3
  36. package/dist/cli/commands/generate/options.d.mts +1 -3
  37. package/dist/cli/commands/generate/seed/bundler.d.mts +1 -3
  38. package/dist/cli/commands/generate/service.d.mts +1 -3
  39. package/dist/cli/commands/machineuser/list.d.mts +1 -3
  40. package/dist/cli/commands/machineuser/token.d.mts +1 -3
  41. package/dist/cli/commands/oauth2client/get.d.mts +1 -3
  42. package/dist/cli/commands/oauth2client/list.d.mts +1 -3
  43. package/dist/cli/commands/oauth2client/transform.d.mts +1 -3
  44. package/dist/cli/commands/organization/folder/create.d.mts +0 -2
  45. package/dist/cli/commands/organization/folder/delete.d.mts +0 -2
  46. package/dist/cli/commands/organization/folder/get.d.mts +0 -2
  47. package/dist/cli/commands/organization/folder/list.d.mts +0 -2
  48. package/dist/cli/commands/organization/folder/update.d.mts +0 -2
  49. package/dist/cli/commands/organization/get.d.mts +0 -2
  50. package/dist/cli/commands/organization/list.d.mts +1 -3
  51. package/dist/cli/commands/organization/transform.d.mts +1 -3
  52. package/dist/cli/commands/organization/tree.d.mts +0 -2
  53. package/dist/cli/commands/organization/update.d.mts +0 -2
  54. package/dist/cli/commands/remove.d.mts +1 -3
  55. package/dist/cli/commands/show.d.mts +0 -2
  56. package/dist/cli/commands/staticwebsite/deploy.d.mts +1 -3
  57. package/dist/cli/commands/tailordb/migrate/bundler.d.mts +1 -3
  58. package/dist/cli/commands/tailordb/migrate/config.d.mts +1 -3
  59. package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +0 -2
  60. package/dist/cli/commands/tailordb/migrate/generate.d.mts +2 -4
  61. package/dist/cli/commands/tailordb/migrate/rename-detection.d.mts +1 -3
  62. package/dist/cli/commands/tailordb/migrate/snapshot-comparison.d.mts +1 -3
  63. package/dist/cli/commands/tailordb/migrate/snapshot-files.d.mts +1 -3
  64. package/dist/cli/commands/tailordb/migrate/snapshot-local.d.mts +1 -3
  65. package/dist/cli/commands/tailordb/migrate/snapshot-migrations.d.mts +1 -3
  66. package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +0 -2
  67. package/dist/cli/commands/tailordb/migrate/types.d.mts +1 -3
  68. package/dist/cli/commands/tailordb/truncate.d.mts +1 -3
  69. package/dist/cli/commands/workflow/executions.d.mts +0 -2
  70. package/dist/cli/commands/workflow/get.d.mts +0 -2
  71. package/dist/cli/commands/workflow/list.d.mts +1 -3
  72. package/dist/cli/commands/workflow/resume.d.mts +1 -3
  73. package/dist/cli/commands/workflow/start.d.mts +0 -2
  74. package/dist/cli/commands/workflow/status.d.mts +1 -3
  75. package/dist/cli/commands/workflow/transform.d.mts +1 -3
  76. package/dist/cli/commands/workflow/wait.d.mts +1 -3
  77. package/dist/cli/commands/workflow/waiter.d.mts +1 -3
  78. package/dist/cli/commands/workspace/app/health.d.mts +0 -2
  79. package/dist/cli/commands/workspace/app/list.d.mts +0 -2
  80. package/dist/cli/commands/workspace/app/transform.d.mts +1 -3
  81. package/dist/cli/commands/workspace/create.d.mts +0 -2
  82. package/dist/cli/commands/workspace/delete.d.mts +0 -2
  83. package/dist/cli/commands/workspace/expiry.d.mts +1 -3
  84. package/dist/cli/commands/workspace/get.d.mts +0 -2
  85. package/dist/cli/commands/workspace/list.d.mts +1 -3
  86. package/dist/cli/commands/workspace/restore.d.mts +0 -2
  87. package/dist/cli/commands/workspace/transform.d.mts +1 -3
  88. package/dist/cli/commands/workspace/user/invite.d.mts +0 -2
  89. package/dist/cli/commands/workspace/user/list.d.mts +0 -2
  90. package/dist/cli/commands/workspace/user/remove.d.mts +0 -2
  91. package/dist/cli/commands/workspace/user/transform.d.mts +1 -3
  92. package/dist/cli/commands/workspace/user/update.d.mts +0 -2
  93. package/dist/cli/lib.d.mts +1 -1
  94. package/dist/cli/lib.mjs +1 -1
  95. package/dist/cli/lib.mjs.map +1 -1
  96. package/dist/cli/main.d.mts +1 -3
  97. package/dist/cli/main.mjs +55 -51
  98. package/dist/cli/main.mjs.map +1 -1
  99. package/dist/cli/query/index.d.mts +0 -2
  100. package/dist/cli/services/application.d.mts +6 -4
  101. package/dist/cli/services/executor/service.d.mts +2 -2
  102. package/dist/cli/services/function-bundle.d.mts +8 -0
  103. package/dist/cli/services/http-adapter/bundler.d.mts +7 -1
  104. package/dist/cli/services/resolver/service.d.mts +2 -2
  105. package/dist/cli/services/workflow/bundler.d.mts +2 -3
  106. package/dist/cli/shared/args.d.mts +0 -2
  107. package/dist/cli/shared/beta.d.mts +1 -3
  108. package/dist/cli/shared/client.d.mts +4 -3
  109. package/dist/cli/shared/command.d.mts +2 -4
  110. package/dist/cli/shared/config-loader.d.mts +2 -4
  111. package/dist/cli/shared/config.d.mts +1 -3
  112. package/dist/cli/shared/context.d.mts +0 -2
  113. package/dist/cli/shared/error-diagnostics.d.mts +1 -3
  114. package/dist/cli/shared/error-json.d.mts +1 -3
  115. package/dist/cli/shared/function-execution.d.mts +1 -3
  116. package/dist/cli/shared/github-actions.d.mts +1 -3
  117. package/dist/cli/shared/logger.d.mts +7 -4
  118. package/dist/cli/shared/platform-bundle-plugin.d.mts +1 -0
  119. package/dist/cli/shared/prompt.d.mts +1 -3
  120. package/dist/cli/shared/readonly-guard.d.mts +0 -2
  121. package/dist/cli/shared/script-executor.d.mts +1 -3
  122. package/dist/cli/shared/sdk-builder-pure-plugin.d.mts +1 -0
  123. package/dist/cli/shared/seed-chunker.d.mts +1 -3
  124. package/dist/cli/shared/seed-context.d.mts +0 -2
  125. package/dist/cli/shared/sourcemap-sources.d.mts +1 -0
  126. package/dist/cli/shared/tailordb-namespaces.d.mts +1 -3
  127. package/dist/cli/shared/type-generator.d.mts +0 -2
  128. package/dist/cli/shared/workspace-name.d.mts +1 -3
  129. package/dist/completion/zsh-worker.zsh +5 -5
  130. package/dist/configure/config/index.d.mts +2 -4
  131. package/dist/configure/config/types.d.mts +27 -4
  132. package/dist/configure/index.d.mts +7 -9
  133. package/dist/configure/index.mjs +1 -1
  134. package/dist/configure/services/aigateway/index.d.mts +0 -2
  135. package/dist/configure/services/aigateway/types.d.mts +0 -2
  136. package/dist/configure/services/auth/index.d.mts +0 -2
  137. package/dist/configure/services/auth/types.d.mts +0 -2
  138. package/dist/configure/services/executor/executor.d.mts +0 -2
  139. package/dist/configure/services/executor/operation.d.mts +0 -2
  140. package/dist/configure/services/executor/trigger/event.d.mts +0 -2
  141. package/dist/configure/services/executor/trigger/index.d.mts +0 -2
  142. package/dist/configure/services/executor/trigger/schedule.d.mts +0 -2
  143. package/dist/configure/services/executor/trigger/webhook.d.mts +1 -3
  144. package/dist/configure/services/http-adapter/http-adapter.d.mts +0 -2
  145. package/dist/configure/services/idp/index.d.mts +0 -2
  146. package/dist/configure/services/idp/permission.d.mts +0 -2
  147. package/dist/configure/services/idp/types.d.mts +0 -2
  148. package/dist/configure/services/index.d.mts +5 -5
  149. package/dist/configure/services/resolver/index.d.mts +1 -1
  150. package/dist/configure/services/resolver/permission.d.mts +0 -2
  151. package/dist/configure/services/resolver/resolver.d.mts +1 -3
  152. package/dist/configure/services/resolver/types.d.mts +1 -3
  153. package/dist/configure/services/secrets/index.d.mts +0 -2
  154. package/dist/configure/services/secrets/types.d.mts +0 -2
  155. package/dist/configure/services/staticwebsite/index.d.mts +0 -2
  156. package/dist/configure/services/staticwebsite/types.d.mts +0 -2
  157. package/dist/configure/services/tailordb/permission.d.mts +0 -2
  158. package/dist/configure/services/tailordb/schema.d.mts +0 -2
  159. package/dist/configure/services/tailordb/types.d.mts +0 -2
  160. package/dist/configure/services/workflow/execution-policy.d.mts +0 -2
  161. package/dist/configure/services/workflow/execution-policy.types.d.mts +0 -2
  162. package/dist/configure/services/workflow/job.d.mts +0 -2
  163. package/dist/configure/services/workflow/wait-point.d.mts +0 -2
  164. package/dist/configure/services/workflow/workflow.d.mts +0 -2
  165. package/dist/configure/types/aigateway-name.d.mts +1 -3
  166. package/dist/configure/types/auth-namespace-name.d.mts +1 -3
  167. package/dist/configure/types/connection-name.d.mts +1 -3
  168. package/dist/configure/types/field.d.mts +1 -3
  169. package/dist/configure/types/field.types.d.mts +0 -2
  170. package/dist/configure/types/idp-name.d.mts +1 -3
  171. package/dist/configure/types/permission-operand.types.d.mts +0 -2
  172. package/dist/configure/types/secret-vault-name.d.mts +1 -3
  173. package/dist/configure/types/type.d.mts +0 -2
  174. package/dist/{crashreport-BCIy33Cz.mjs → crashreport-DGU6lwiX.mjs} +2 -2
  175. package/dist/{crashreport-BCIy33Cz.mjs.map → crashreport-DGU6lwiX.mjs.map} +1 -1
  176. package/dist/crashreport-WsYAWARW.mjs +1 -0
  177. package/dist/{logger-RgtbhJ83.mjs → errors-BXmGBX-7.mjs} +6 -3
  178. package/dist/errors-BXmGBX-7.mjs.map +1 -0
  179. package/dist/field-parse-BQhUAbpM.mjs +2 -0
  180. package/dist/{field-parse-C41e3UAF.mjs.map → field-parse-BQhUAbpM.mjs.map} +1 -1
  181. package/dist/guards-CiFVxoXR.mjs +2 -0
  182. package/dist/guards-CiFVxoXR.mjs.map +1 -0
  183. package/dist/kysely/index.d.mts +0 -2
  184. package/dist/{kysely-type-DxyIWXc6.mjs → kysely-type-B0ri1-Xs.mjs} +9 -7
  185. package/dist/kysely-type-B0ri1-Xs.mjs.map +1 -0
  186. package/dist/manager-B813m43t.mjs +2 -0
  187. package/dist/manager-B813m43t.mjs.map +1 -0
  188. package/dist/parser/service/idp/types.d.mts +1 -3
  189. package/dist/parser/service/tailordb/type-source.d.mts +1 -3
  190. package/dist/parser/service/tailordb/types.d.mts +0 -2
  191. package/dist/plugin/builtin/enum-constants/index.d.mts +0 -2
  192. package/dist/plugin/builtin/file-utils/index.d.mts +0 -2
  193. package/dist/plugin/builtin/kysely-type/index.d.mts +0 -2
  194. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  195. package/dist/plugin/builtin/seed/index.d.mts +0 -2
  196. package/dist/plugin/builtin/seed/seed-type-processor.d.mts +1 -3
  197. package/dist/plugin/get-generated-table.d.mts +1 -3
  198. package/dist/plugin/index.mjs +1 -1
  199. package/dist/plugin/types.d.mts +0 -2
  200. package/dist/plugin/with-context.d.mts +1 -3
  201. package/dist/register-ts-hook-CQ7shKO5.mjs +1055 -0
  202. package/dist/register-ts-hook-CQ7shKO5.mjs.map +1 -0
  203. package/dist/runtime/aigateway.d.mts +1 -3
  204. package/dist/runtime/authconnection.d.mts +1 -3
  205. package/dist/runtime/context.d.mts +0 -2
  206. package/dist/runtime/date.d.mts +0 -2
  207. package/dist/runtime/field-parse.d.mts +0 -2
  208. package/dist/runtime/file.d.mts +0 -2
  209. package/dist/runtime/globals.d.mts +0 -2
  210. package/dist/runtime/iconv.d.mts +1 -3
  211. package/dist/runtime/idp.d.mts +1 -3
  212. package/dist/runtime/index.d.mts +1 -3
  213. package/dist/runtime/index.mjs +1 -1
  214. package/dist/runtime/logger.d.mts +1 -3
  215. package/dist/runtime/secretmanager.d.mts +1 -3
  216. package/dist/runtime/temporal.d.mts +0 -2
  217. package/dist/runtime/types.d.mts +0 -2
  218. package/dist/runtime/workflow.d.mts +0 -2
  219. package/dist/{schema-B6hJQWp6.mjs → schema-BU1aIQ63.mjs} +2 -2
  220. package/dist/{schema-B6hJQWp6.mjs.map → schema-BU1aIQ63.mjs.map} +1 -1
  221. package/dist/secret-file-BxZ-J_Nz.mjs +2 -0
  222. package/dist/secret-file-BxZ-J_Nz.mjs.map +1 -0
  223. package/dist/seed/idp-user-password.d.mts +0 -2
  224. package/dist/seed/index.d.mts +0 -2
  225. package/dist/service-CaGmqg0r.mjs +2 -0
  226. package/dist/{service-9rwi_I4d.mjs.map → service-CaGmqg0r.mjs.map} +1 -1
  227. package/dist/service-DEq_hdht.mjs +1 -0
  228. package/dist/{service-9SBPNpK8.mjs → service-eeXdVrDK.mjs} +4 -4
  229. package/dist/service-eeXdVrDK.mjs.map +1 -0
  230. package/dist/shared/src/color.d.mts +1 -3
  231. package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +1 -3
  232. package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +1 -3
  233. package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +1 -3
  234. package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +1 -3
  235. package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +1 -3
  236. package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +1 -3
  237. package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +1 -3
  238. package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +1 -3
  239. package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +1 -3
  240. package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +1 -3
  241. package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +1 -3
  242. package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +1 -3
  243. package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +1 -3
  244. package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +1 -3
  245. package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +1 -3
  246. package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +1 -3
  247. package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +1 -3
  248. package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +1 -3
  249. package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +1 -3
  250. package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +1 -3
  251. package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +1 -3
  252. package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +1 -3
  253. package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +1 -3
  254. package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +1 -3
  255. package/dist/tailor-proto/src/tailor/v1/security_pb.d.mts +1 -3
  256. package/dist/tailor-proto/src/tailor/v1/security_resource_pb.d.mts +1 -3
  257. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +1 -3
  258. package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +1 -3
  259. package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +1 -3
  260. package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +1 -3
  261. package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +1 -3
  262. package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +1 -3
  263. package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +1 -3
  264. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +1 -3
  265. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +1 -3
  266. package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +1 -3
  267. package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +1 -3
  268. package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +1 -3
  269. package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +1 -3
  270. package/dist/types/aigateway.generated.d.mts +1 -3
  271. package/dist/types/app-config.generated.d.mts +1 -3
  272. package/dist/types/auth-connection.generated.d.mts +1 -3
  273. package/dist/types/auth.generated.d.mts +1 -3
  274. package/dist/types/executor.generated.d.mts +1 -3
  275. package/dist/types/field.generated.d.mts +1 -3
  276. package/dist/types/helpers.d.mts +1 -3
  277. package/dist/types/http-adapter.generated.d.mts +1 -3
  278. package/dist/types/idp.generated.d.mts +1 -3
  279. package/dist/types/resolver.generated.d.mts +1 -3
  280. package/dist/types/secrets.generated.d.mts +1 -3
  281. package/dist/types/staticwebsite.generated.d.mts +1 -3
  282. package/dist/types/tailordb.generated.d.mts +1 -3
  283. package/dist/types/workflow.generated.d.mts +1 -3
  284. package/dist/utils/test/index.d.mts +1 -3
  285. package/dist/utils/test/index.mjs +1 -1
  286. package/dist/vitest/date-representation.d.mts +1 -3
  287. package/dist/vitest/environment.d.mts +0 -2
  288. package/dist/vitest/index.d.mts +0 -2
  289. package/dist/vitest/migration-steps.d.mts +1 -3
  290. package/dist/vitest/mock-kysely.d.mts +0 -2
  291. package/dist/vitest/mocks/aigateway.d.mts +0 -2
  292. package/dist/vitest/mocks/authconnection.d.mts +0 -2
  293. package/dist/vitest/mocks/file.d.mts +0 -2
  294. package/dist/vitest/mocks/iconv.d.mts +0 -2
  295. package/dist/vitest/mocks/idp.d.mts +0 -2
  296. package/dist/vitest/mocks/logger.d.mts +0 -2
  297. package/dist/vitest/mocks/secretmanager.d.mts +0 -2
  298. package/dist/vitest/mocks/tailordb-pglite.d.mts +0 -2
  299. package/dist/vitest/mocks/tailordb.d.mts +0 -2
  300. package/dist/vitest/mocks/workflow.d.mts +0 -2
  301. package/dist/vitest/pglite-kysely.d.mts +0 -2
  302. package/dist/vitest/pglite-temporal.d.mts +1 -3
  303. package/dist/vitest/setup.d.mts +0 -2
  304. package/dist/vitest/workflow-local.d.mts +0 -2
  305. package/docs/cli/application.md +2 -1
  306. package/docs/cli/tailordb.md +9 -7
  307. package/docs/cli/user.md +5 -5
  308. package/docs/cli/workspace.md +1 -1
  309. package/docs/cli-reference.md +27 -26
  310. package/docs/configuration.md +15 -2
  311. package/docs/github-actions.md +33 -10
  312. package/docs/services/secret.md +6 -0
  313. package/docs/services/tailordb/index.md +23 -0
  314. package/docs/services/tailordb/migration.md +14 -9
  315. package/docs/testing.md +2 -2
  316. package/package.json +12 -12
  317. package/dist/application-B9_NHiUC.mjs +0 -207
  318. package/dist/application-B9_NHiUC.mjs.map +0 -1
  319. package/dist/cli/commands/tailordb/migrate/remote-state.d.mts +0 -1
  320. package/dist/crashreport-IN6H7GX3.mjs +0 -1
  321. package/dist/errors-BOF68LJ5.mjs +0 -5
  322. package/dist/errors-BOF68LJ5.mjs.map +0 -1
  323. package/dist/field-parse-C41e3UAF.mjs +0 -2
  324. package/dist/guards-yDXyKC9F.mjs +0 -2
  325. package/dist/guards-yDXyKC9F.mjs.map +0 -1
  326. package/dist/kysely-type-DxyIWXc6.mjs.map +0 -1
  327. package/dist/logger-RgtbhJ83.mjs.map +0 -1
  328. package/dist/manager-DTRhIupk.mjs +0 -2
  329. package/dist/manager-DTRhIupk.mjs.map +0 -1
  330. package/dist/register-ts-hook-Dp9reSRG.mjs +0 -1053
  331. package/dist/register-ts-hook-Dp9reSRG.mjs.map +0 -1
  332. package/dist/secret-file-C9wp_FCX.mjs +0 -2
  333. package/dist/secret-file-C9wp_FCX.mjs.map +0 -1
  334. package/dist/service-9SBPNpK8.mjs.map +0 -1
  335. package/dist/service-9rwi_I4d.mjs +0 -2
  336. 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
 
@@ -102,7 +102,7 @@ tailor tailordb migration <command>
102
102
  | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
103
103
  | [`tailordb migration generate`](#tailordb-migration-generate) | Generate migration files by detecting schema differences between current local tables and the previous migration snapshot. |
104
104
  | [`tailordb migration rebaseline`](#tailordb-migration-rebaseline) | Collapse the full migration history into a new 0000 baseline. |
105
- | [`tailordb migration resolve`](#tailordb-migration-resolve) | Settle a migration that a failed deploy left partially applied. |
105
+ | [`tailordb migration resolve`](#tailordb-migration-resolve) | Settle a migration that a failed deploy left partially applied, or whose run a deploy could not confirm. |
106
106
  | [`tailordb migration script`](#tailordb-migration-script) | Add a migration script (migrate.ts) template to an existing migration directory, or record with --no-script that a migration intentionally has none. |
107
107
  | [`tailordb migration set`](#tailordb-migration-set) | Set migration checkpoint to a specific number. |
108
108
  | [`tailordb migration status`](#tailordb-migration-status) | Show the current migration status for TailorDB namespaces, including applied and pending migrations. |
@@ -129,9 +129,9 @@ tailor tailordb migration generate [options]
129
129
  | `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
130
130
  | `--config <CONFIG>` | `-c` | Path to Tailor config file | No | `"tailor.config.ts"` | `TAILOR_CONFIG_PATH` |
131
131
  | `--name <NAME>` | `-n` | Optional description for the migration | No | - | - |
132
- | `--init` | - | Delete existing migrations and start fresh | No | `false` | - |
132
+ | `--init` | - | Delete existing migrations and start fresh (all namespaces with migrations configured, or only the one given by --namespace) | No | `false` | - |
133
133
  | `--data-only` | - | Create a migration with no schema changes whose migration script runs a standalone data transformation | No | `false` | - |
134
- | `--namespace <NAMESPACE>` | - | Target TailorDB namespace for --data-only (required if multiple namespaces exist) | No | - | - |
134
+ | `--namespace <NAMESPACE>` | - | Target TailorDB namespace for --data-only (required if multiple namespaces exist), or the only namespace --init resets | No | - | - |
135
135
  | `--rename <RENAME>` | - | Record a field, table, or nested member rename instead of remove + add (format: "Table.oldField:newField", "OldTable:NewTable", or "Table.field.oldMember:newMember"; repeatable). Renames require a migration script that copies the data. | No | - | - |
136
136
  | `--drop <DROP>` | - | Confirm that a removed field, table, or nested member is a genuine removal, not a rename (format: "Table.field", "Table", or "Table.field.member"; repeatable). Required in non-interactive runs for a removal with rename candidates. | No | - | - |
137
137
  | `--expand-contract <EXPAND_CONTRACT>` | - | Convert a field type, or a single value into an array, through a temporary field (format: "Table.field"; repeatable). Generates two migrations. | No | - | - |
@@ -166,7 +166,7 @@ Re-baselining removes migrations after 0000 from the working tree, records a new
166
166
 
167
167
  #### tailordb migration resolve
168
168
 
169
- Settle a migration that a failed deploy left partially applied.
169
+ Settle a migration that a failed deploy left partially applied, or whose run a deploy could not confirm.
170
170
 
171
171
  **Usage**
172
172
 
@@ -190,11 +190,13 @@ See [Global Options](../cli-reference.md#global-options) for options available t
190
190
 
191
191
  **Notes**
192
192
 
193
- Use this after a deploy failed partway through a migration whose `migrate.ts` exports `steps`. The failed migration stays in progress: when `maintenanceMode` is on in your config, the tables of its namespace stay in maintenance mode, and `sync` and `rebaseline` are refused, while `set` accepts only the number of the in-progress migration.
193
+ Use this after a deploy failed partway through a migration whose `migrate.ts` exports `steps`, or after a deploy could not confirm whether the script of a migration ran (`MIGRATION_OUTCOME_UNKNOWN`). The migration stays in progress: when `maintenanceMode` is on in your config, the tables of its namespace stay in maintenance mode, and `sync` and `rebaseline` are refused, while `set` accepts only the number of the in-progress migration. A deploy stops before changing anything while a run it could not confirm is not settled.
194
194
 
195
- - `--rollback` sends the schema of the migration before the failed one. The next deploy runs the failed migration again from its first step. Data changes made by steps that already completed are not undone.
195
+ - `--rollback` sends the schema of the migration before the failed one. The next deploy runs the failed migration again, from its first step for a script that exports `steps`. Data changes the script already made are not undone.
196
196
  - `--complete` sends the schema of the failed migration itself and records it as completed, without running its `migrate.ts` again. Fix the data first (for example with `tailor query`), and make sure no record lacks a value for a field that becomes required.
197
197
 
198
+ For a run that a deploy could not confirm, the command reads how the run ended and shows it before asking for confirmation: use `--complete` when it succeeded, and `--rollback` when it failed, was canceled, or did not start. It refuses while the run is still running, and warns when the option you chose does not fit how the run ended.
199
+
198
200
  Both options remove the in-progress record, take the tables out of maintenance mode, and remove the temporary resources of the failed run, so `deploy` and the other migration commands work again. As with `tailordb migration sync`, the local migration history must reproduce the current table definitions. If sending the schema stops partway, run the command again.
199
201
 
200
202
  #### tailordb migration script
@@ -286,7 +288,7 @@ See [Global Options](../cli-reference.md#global-options) for options available t
286
288
 
287
289
  **Notes**
288
290
 
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.
291
+ 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
292
 
291
293
  #### tailordb migration sync
292
294
 
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
 
@@ -331,7 +332,7 @@ Commands for managing TailorDB tables, data, and schema migrations.
331
332
  | [tailordb migration](./cli/tailordb.md#tailordb-migration) | Manage TailorDB schema migrations. |
332
333
  | [tailordb migration generate](./cli/tailordb.md#tailordb-migration-generate) | Generate migration files by detecting schema differences between current local tables and the previous migration snapshot. |
333
334
  | [tailordb migration rebaseline](./cli/tailordb.md#tailordb-migration-rebaseline) | Collapse the full migration history into a new 0000 baseline. |
334
- | [tailordb migration resolve](./cli/tailordb.md#tailordb-migration-resolve) | Settle a migration that a failed deploy left partially applied. |
335
+ | [tailordb migration resolve](./cli/tailordb.md#tailordb-migration-resolve) | Settle a migration that a failed deploy left partially applied, or whose run a deploy could not confirm. |
335
336
  | [tailordb migration script](./cli/tailordb.md#tailordb-migration-script) | Add a migration script (migrate.ts) template to an existing migration directory, or record with --no-script that a migration intentionally has none. |
336
337
  | [tailordb migration set](./cli/tailordb.md#tailordb-migration-set) | Set migration checkpoint to a specific number. |
337
338
  | [tailordb migration status](./cli/tailordb.md#tailordb-migration-status) | Show the current migration status for TailorDB namespaces, including applied and pending migrations. |
@@ -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
@@ -200,6 +211,8 @@ export default defineConfig({
200
211
 
201
212
  With `false`, a property read whose result is unused is removed, and so is a call that only exists to receive such a read. This also removes a read that exists only for its effect: a getter that initializes something when it is read, or a statement such as `settings.db.url;` that throws when `settings.db` is missing. Keep the default if your code or an installed package relies on a read like that.
202
213
 
214
+ Field and table definitions written with `db` and `t` count as having no effect, so they do not keep such a call in the bundle: with `propertyReadSideEffects: false`, `createService({ db: { company: shared.db.company }, fields: { note: db.string().index() } })` is removed when nothing uses its result. This applies to `db` and `t` that your own code imports by name from `@tailor-platform/sdk`, not to definitions in installed packages, and not when `treeshake.annotations` is `false`. A function called in a definition's arguments still runs, and keeps the whole definition in the bundle unless it is passed to the last method, as `label()` is in `db.string().description(label())` but not in `db.string().description(label()).index()`. A property read in a definition's arguments can be removed even with the default `propertyReadSideEffects`.
215
+
203
216
  `treeshake` has four switches that control how unused code is removed from bundles. The values below are the SDK's defaults, which are tuned for the Tailor Platform runtime and rarely need changing. Most switches ask whether something has side effects, so `true` keeps it, while `annotations` asks whether to honor annotations, so `true` removes more:
204
217
 
205
218
  ```typescript