@tailor-platform/sdk 2.26.0 → 2.28.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 (222) hide show
  1. package/CHANGELOG.md +144 -0
  2. package/agent-skills/tailor/SKILL.md +4 -2
  3. package/dist/application-CgJLyJaF.mjs +200 -0
  4. package/dist/application-CgJLyJaF.mjs.map +1 -0
  5. package/dist/application-CvmKh5WT.mjs +1 -0
  6. package/dist/cli/commands/deploy/deploy.d.mts +2 -0
  7. package/dist/cli/commands/deploy/tailordb/migration-validation.d.mts +2 -1
  8. package/dist/cli/commands/executor/get.d.mts +2 -1
  9. package/dist/cli/commands/executor/jobs.d.mts +2 -1
  10. package/dist/cli/commands/executor/trigger.d.mts +2 -1
  11. package/dist/cli/commands/function/get.d.mts +2 -1
  12. package/dist/cli/commands/function/list.d.mts +2 -1
  13. package/dist/cli/commands/organization/folder/create.d.mts +2 -1
  14. package/dist/cli/commands/organization/folder/delete.d.mts +2 -1
  15. package/dist/cli/commands/organization/folder/get.d.mts +2 -1
  16. package/dist/cli/commands/organization/folder/list.d.mts +2 -1
  17. package/dist/cli/commands/organization/folder/update.d.mts +2 -1
  18. package/dist/cli/commands/organization/get.d.mts +2 -1
  19. package/dist/cli/commands/organization/tree.d.mts +2 -1
  20. package/dist/cli/commands/organization/update.d.mts +2 -1
  21. package/dist/cli/commands/show.d.mts +2 -1
  22. package/dist/cli/commands/tailordb/migrate/bundler.d.mts +4 -6
  23. package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +8 -1
  24. package/dist/cli/commands/tailordb/migrate/remote-state.d.mts +1 -0
  25. package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +3 -1
  26. package/dist/cli/commands/workflow/executions.d.mts +2 -1
  27. package/dist/cli/commands/workflow/get.d.mts +2 -1
  28. package/dist/cli/commands/workflow/start.d.mts +2 -1
  29. package/dist/cli/commands/workspace/app/health.d.mts +2 -1
  30. package/dist/cli/commands/workspace/app/list.d.mts +2 -1
  31. package/dist/cli/commands/workspace/create.d.mts +5 -2
  32. package/dist/cli/commands/workspace/delete.d.mts +2 -1
  33. package/dist/cli/commands/workspace/get.d.mts +2 -1
  34. package/dist/cli/commands/workspace/restore.d.mts +2 -1
  35. package/dist/cli/commands/workspace/user/invite.d.mts +2 -1
  36. package/dist/cli/commands/workspace/user/list.d.mts +2 -1
  37. package/dist/cli/commands/workspace/user/remove.d.mts +2 -1
  38. package/dist/cli/commands/workspace/user/update.d.mts +2 -1
  39. package/dist/cli/lib.d.mts +3 -3
  40. package/dist/cli/lib.mjs +1 -1
  41. package/dist/cli/lib.mjs.map +1 -1
  42. package/dist/cli/main.d.mts +2 -0
  43. package/dist/cli/main.mjs +68 -55
  44. package/dist/cli/main.mjs.map +1 -1
  45. package/dist/cli/query/index.d.mts +2 -1
  46. package/dist/cli/shared/args.d.mts +4 -2
  47. package/dist/cli/shared/client.d.mts +6 -1
  48. package/dist/cli/shared/context.d.mts +2 -1
  49. package/dist/cli/shared/logger.d.mts +5 -2
  50. package/dist/cli/shared/readonly-guard.d.mts +2 -1
  51. package/dist/cli/shared/seed-context.d.mts +5 -0
  52. package/dist/cli/shared/type-generator.d.mts +2 -1
  53. package/dist/cli/shared/workspace-name.d.mts +2 -0
  54. package/dist/completion/zsh-worker.zsh +220 -19
  55. package/dist/configure/config/types.d.mts +34 -1
  56. package/dist/configure/index.d.mts +6 -6
  57. package/dist/configure/index.mjs +1 -1
  58. package/dist/configure/index.mjs.map +1 -1
  59. package/dist/configure/services/aigateway/types.d.mts +2 -1
  60. package/dist/configure/services/auth/types.d.mts +8 -2
  61. package/dist/configure/services/executor/executor.d.mts +2 -1
  62. package/dist/configure/services/executor/operation.d.mts +2 -1
  63. package/dist/configure/services/executor/trigger/event.d.mts +3 -2
  64. package/dist/configure/services/executor/trigger/schedule.d.mts +2 -1
  65. package/dist/configure/services/executor/trigger/webhook.d.mts +1 -1
  66. package/dist/configure/services/http-adapter/http-adapter.d.mts +2 -1
  67. package/dist/configure/services/idp/permission.d.mts +4 -3
  68. package/dist/configure/services/idp/types.d.mts +2 -1
  69. package/dist/configure/services/resolver/permission.d.mts +2 -1
  70. package/dist/configure/services/resolver/resolver.d.mts +3 -2
  71. package/dist/configure/services/secrets/types.d.mts +2 -1
  72. package/dist/configure/services/staticwebsite/types.d.mts +2 -1
  73. package/dist/configure/services/tailordb/permission.d.mts +2 -1
  74. package/dist/configure/services/tailordb/schema.d.mts +5 -4
  75. package/dist/configure/services/tailordb/types.d.mts +13 -2
  76. package/dist/configure/services/workflow/execution-policy.types.d.mts +2 -1
  77. package/dist/configure/services/workflow/job.d.mts +3 -2
  78. package/dist/configure/services/workflow/wait-point.d.mts +2 -1
  79. package/dist/configure/types/field.types.d.mts +50 -12
  80. package/dist/configure/types/permission-operand.types.d.mts +2 -1
  81. package/dist/configure/types/type.d.mts +3 -2
  82. package/dist/{crashreport-DFpRn-LS.mjs → crashreport-BAG8c7hB.mjs} +4 -4
  83. package/dist/{crashreport-DFpRn-LS.mjs.map → crashreport-BAG8c7hB.mjs.map} +1 -1
  84. package/dist/crashreport-BcXuocwI.mjs +1 -0
  85. package/dist/date-CgP7gMG_.mjs +2 -0
  86. package/dist/date-CgP7gMG_.mjs.map +1 -0
  87. package/dist/{secretmanager-5olfnI1b.mjs → date-representation-Cr7W7Pn2.mjs} +2 -2
  88. package/dist/date-representation-Cr7W7Pn2.mjs.map +1 -0
  89. package/dist/{errors-CpvSChyL.mjs → errors-D3qpNHR6.mjs} +2 -2
  90. package/dist/{errors-CpvSChyL.mjs.map → errors-D3qpNHR6.mjs.map} +1 -1
  91. package/dist/{field-parse-DhnFs9WG.mjs → field-parse-C41e3UAF.mjs} +2 -2
  92. package/dist/{field-parse-DhnFs9WG.mjs.map → field-parse-C41e3UAF.mjs.map} +1 -1
  93. package/dist/idp-G_ojPBB5.mjs.map +1 -1
  94. package/dist/kysely-type-BWMfV301.mjs +48 -0
  95. package/dist/kysely-type-BWMfV301.mjs.map +1 -0
  96. package/dist/logger-DuaT2zY3.mjs +9 -0
  97. package/dist/logger-DuaT2zY3.mjs.map +1 -0
  98. package/dist/{manager-8-JOvuLl.mjs → manager-Bk-7vkwd.mjs} +2 -2
  99. package/dist/{manager-8-JOvuLl.mjs.map → manager-Bk-7vkwd.mjs.map} +1 -1
  100. package/dist/migration-steps-C6F3zNdQ.mjs +3 -0
  101. package/dist/migration-steps-C6F3zNdQ.mjs.map +1 -0
  102. package/dist/package-json-D1BRkjtr.mjs +1 -0
  103. package/dist/parser/service/tailordb/types.d.mts +3 -1
  104. package/dist/plugin/builtin/enum-constants/index.d.mts +2 -1
  105. package/dist/plugin/builtin/file-utils/index.d.mts +2 -1
  106. package/dist/plugin/builtin/kysely-type/index.d.mts +2 -1
  107. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  108. package/dist/plugin/builtin/seed/index.d.mts +11 -1
  109. package/dist/plugin/builtin/seed/index.mjs +1 -1
  110. package/dist/plugin/index.mjs +1 -1
  111. package/dist/register-ts-hook-yxshv0LV.mjs +1013 -0
  112. package/dist/register-ts-hook-yxshv0LV.mjs.map +1 -0
  113. package/dist/runtime/aigateway.mjs +1 -1
  114. package/dist/runtime/authconnection.mjs +1 -1
  115. package/dist/runtime/context.d.mts +2 -1
  116. package/dist/runtime/context.mjs +1 -1
  117. package/dist/runtime/date.d.mts +2 -1
  118. package/dist/runtime/field-parse.d.mts +2 -1
  119. package/dist/runtime/file.d.mts +2 -1
  120. package/dist/runtime/file.mjs +1 -1
  121. package/dist/runtime/globals.d.mts +2 -1
  122. package/dist/runtime/iconv.mjs +1 -1
  123. package/dist/runtime/idp.d.mts +6 -0
  124. package/dist/runtime/idp.mjs +1 -1
  125. package/dist/runtime/index.mjs +1 -1
  126. package/dist/runtime/logger.mjs +1 -1
  127. package/dist/runtime/secretmanager.mjs +1 -1
  128. package/dist/runtime/types.d.mts +7 -1
  129. package/dist/runtime/workflow.d.mts +2 -1
  130. package/dist/runtime/workflow.mjs +1 -1
  131. package/dist/{schema-CRtAmDcl.mjs → schema-B6hJQWp6.mjs} +2 -2
  132. package/dist/schema-B6hJQWp6.mjs.map +1 -0
  133. package/dist/seed/index.d.mts +19 -4
  134. package/dist/seed/index.mjs +7 -9
  135. package/dist/seed/index.mjs.map +1 -1
  136. package/dist/seed-C3P_T_Eh.mjs.map +1 -1
  137. package/dist/service-CETr0AKY.mjs +7 -0
  138. package/dist/service-CETr0AKY.mjs.map +1 -0
  139. package/dist/service-DREWLYxD.mjs +1 -0
  140. package/dist/{service-DFmt9UJP.mjs → service-b1g22NN9.mjs} +2 -2
  141. package/dist/{service-DFmt9UJP.mjs.map → service-b1g22NN9.mjs.map} +1 -1
  142. package/dist/service_pb-Bbu2QSIr.mjs +2 -0
  143. package/dist/service_pb-Bbu2QSIr.mjs.map +1 -0
  144. package/dist/service_pb-urxAIYHT.mjs +1 -0
  145. package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +53 -1
  146. package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +33 -0
  147. package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +0 -8
  148. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +18 -1
  149. package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +4 -0
  150. package/dist/telemetry-DpkFGBmu.mjs +1 -0
  151. package/dist/{telemetry-Bklv9kQY.mjs → telemetry-Xk7J829P.mjs} +2 -2
  152. package/dist/{telemetry-Bklv9kQY.mjs.map → telemetry-Xk7J829P.mjs.map} +1 -1
  153. package/dist/types/field.generated.d.mts +2 -2
  154. package/dist/types/tailordb.generated.d.mts +2 -0
  155. package/dist/utils/test/index.mjs +1 -1
  156. package/dist/vitest/date-representation.d.mts +23 -0
  157. package/dist/vitest/index.d.mts +3 -1
  158. package/dist/vitest/index.mjs +1 -1
  159. package/dist/vitest/index.mjs.map +1 -1
  160. package/dist/vitest/migration-steps.d.mts +45 -0
  161. package/dist/vitest/mock-kysely.d.mts +2 -1
  162. package/dist/vitest/mocks/aigateway.d.mts +2 -1
  163. package/dist/vitest/mocks/authconnection.d.mts +2 -1
  164. package/dist/vitest/mocks/file.d.mts +2 -1
  165. package/dist/vitest/mocks/iconv.d.mts +2 -1
  166. package/dist/vitest/mocks/idp.d.mts +3 -1
  167. package/dist/vitest/mocks/logger.d.mts +2 -1
  168. package/dist/vitest/mocks/secretmanager.d.mts +2 -1
  169. package/dist/vitest/mocks/tailordb-pglite.d.mts +2 -1
  170. package/dist/vitest/mocks/tailordb.d.mts +2 -1
  171. package/dist/vitest/mocks/workflow.d.mts +3 -1
  172. package/dist/vitest/pglite-kysely.d.mts +2 -1
  173. package/dist/vitest/setup.d.mts +3 -1
  174. package/dist/vitest/setup.mjs +1 -1
  175. package/dist/vitest/setup.mjs.map +1 -1
  176. package/dist/vitest/workflow-local.d.mts +2 -1
  177. package/dist/{workspace_resource_pb-CxR_6fyN.mjs → workspace_resource_pb-CaoM2npP.mjs} +2 -2
  178. package/dist/workspace_resource_pb-CaoM2npP.mjs.map +1 -0
  179. package/docs/cli/application.md +37 -16
  180. package/docs/cli/data.md +105 -0
  181. package/docs/cli/function.md +2 -0
  182. package/docs/cli/secret.md +6 -6
  183. package/docs/cli/tailordb.md +18 -16
  184. package/docs/cli/user.md +37 -7
  185. package/docs/cli/workspace.md +10 -2
  186. package/docs/cli-reference.md +25 -3
  187. package/docs/configuration.md +28 -6
  188. package/docs/github-actions.md +212 -63
  189. package/docs/multi-environment.md +24 -0
  190. package/docs/plugin/custom.md +2 -1
  191. package/docs/services/auth.md +20 -0
  192. package/docs/services/executor.md +2 -2
  193. package/docs/services/idp.md +6 -1
  194. package/docs/services/resolver.md +3 -1
  195. package/docs/services/staticwebsite.md +5 -5
  196. package/docs/services/tailordb-migration.md +222 -41
  197. package/docs/services/tailordb.md +17 -4
  198. package/docs/testing.md +4 -0
  199. package/package.json +18 -18
  200. package/dist/application-ChqHuhZW.mjs +0 -1
  201. package/dist/application-DS0XKBtK.mjs +0 -200
  202. package/dist/application-DS0XKBtK.mjs.map +0 -1
  203. package/dist/crashreport-CBaRJl5h.mjs +0 -1
  204. package/dist/date-Dri6Yas-.mjs +0 -2
  205. package/dist/date-Dri6Yas-.mjs.map +0 -1
  206. package/dist/kysely-type-RDX59E1j.mjs +0 -48
  207. package/dist/kysely-type-RDX59E1j.mjs.map +0 -1
  208. package/dist/logger-Db-YRTwK.mjs +0 -9
  209. package/dist/logger-Db-YRTwK.mjs.map +0 -1
  210. package/dist/package-json-CmqhDJ__.mjs +0 -1
  211. package/dist/register-ts-hook-BuwkLuxC.mjs +0 -925
  212. package/dist/register-ts-hook-BuwkLuxC.mjs.map +0 -1
  213. package/dist/schema-CRtAmDcl.mjs.map +0 -1
  214. package/dist/secretmanager-5olfnI1b.mjs.map +0 -1
  215. package/dist/service-Bx-7Lz06.mjs +0 -1
  216. package/dist/service-CL1Bp4It.mjs +0 -7
  217. package/dist/service-CL1Bp4It.mjs.map +0 -1
  218. package/dist/service_pb-ZClWtj1X.mjs +0 -2
  219. package/dist/service_pb-ZClWtj1X.mjs.map +0 -1
  220. package/dist/service_pb-dB3RrGeh.mjs +0 -1
  221. package/dist/telemetry-DXHP3VVi.mjs +0 -1
  222. package/dist/workspace_resource_pb-CxR_6fyN.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ export{t as defineApplication,n as generatePluginFilesIfNeeded}from"./application-CgJLyJaF.mjs";
@@ -13,6 +13,8 @@ export interface DeployOptions {
13
13
  dryRun?: boolean;
14
14
  yes?: boolean;
15
15
  noSchemaCheck?: boolean;
16
+ /** Steps of an in-progress multi-step migration to skip, keyed by namespace. */
17
+ migrationSkipSteps?: ReadonlyMap<string, readonly string[]>;
16
18
  noValidate?: boolean;
17
19
  noCache?: boolean;
18
20
  cleanCache?: boolean;
@@ -2,4 +2,5 @@ import "../../../shared/client.mjs";
2
2
  import "../../../shared/config-loader.mjs";
3
3
  import "../../tailordb/migrate/snapshot.mjs";
4
4
  import "../../tailordb/migrate/config.mjs";
5
- import "../../tailordb/migrate/schema-checks.mjs";
5
+ import "../../tailordb/migrate/schema-checks.mjs";
6
+ import "../../tailordb/migrate/remote-state.mjs";
@@ -15,4 +15,5 @@ export type GetExecutorTypedOptions<E extends ExecutorLike = ExecutorLike> = {
15
15
  * @returns Executor information
16
16
  */
17
17
  export declare function getExecutor<E extends ExecutorLike>(options: GetExecutorTypedOptions<E>): Promise<ExecutorInfo>;
18
- //#endregion
18
+ //#endregion
19
+ export {};
@@ -82,4 +82,5 @@ export declare function watchExecutorJob<E extends ExecutorLike>(options: WatchE
82
82
  * @returns Failure message, or undefined when the wait succeeded
83
83
  */
84
84
  export declare function getExecutorWaitFailureMessage(result: WatchExecutorJobResult): string | undefined;
85
- //#endregion
85
+ //#endregion
86
+ export {};
@@ -26,4 +26,5 @@ export interface TriggerExecutorResult {
26
26
  * @returns Result containing the job ID if available
27
27
  */
28
28
  export declare function triggerExecutor<E extends ManualTriggerExecutor>(options: TriggerExecutorTypedOptions<E>): Promise<TriggerExecutorResult>;
29
- //#endregion
29
+ //#endregion
30
+ export {};
@@ -13,4 +13,5 @@ export type GetFunctionRegistryOptions = z.input<typeof getFunctionRegistryOptio
13
13
  * @returns Function registry info
14
14
  */
15
15
  export declare function getFunctionRegistry(options: GetFunctionRegistryOptions): Promise<FunctionRegistryInfo>;
16
- //#endregion
16
+ //#endregion
17
+ export {};
@@ -17,4 +17,5 @@ export type ListFunctionRegistriesOptions = z.input<typeof listFunctionRegistrie
17
17
  * @returns List of function registries
18
18
  */
19
19
  export declare function listFunctionRegistries(options: ListFunctionRegistriesOptions): Promise<FunctionRegistryInfo[]>;
20
- //#endregion
20
+ //#endregion
21
+ export {};
@@ -13,4 +13,5 @@ export type CreateFolderOptions = z.input<typeof createFolderOptionsSchema>;
13
13
  * @returns Created folder details
14
14
  */
15
15
  export declare function createFolder(options: CreateFolderOptions): Promise<FolderInfo>;
16
- //#endregion
16
+ //#endregion
17
+ export {};
@@ -11,4 +11,5 @@ export type DeleteFolderOptions = z.input<typeof deleteFolderOptionsSchema>;
11
11
  * @returns Promise that resolves when deletion completes
12
12
  */
13
13
  export declare function deleteFolder(options: DeleteFolderOptions): Promise<void>;
14
- //#endregion
14
+ //#endregion
15
+ export {};
@@ -12,4 +12,5 @@ export type GetFolderOptions = z.input<typeof getFolderOptionsSchema>;
12
12
  * @returns Folder details
13
13
  */
14
14
  export declare function getFolder(options: GetFolderOptions): Promise<FolderInfo>;
15
- //#endregion
15
+ //#endregion
16
+ export {};
@@ -17,4 +17,5 @@ export type ListFoldersOptions = z.input<typeof listFoldersOptionsSchema>;
17
17
  * @returns List of folders
18
18
  */
19
19
  export declare function listFolders(options: ListFoldersOptions): Promise<FolderListInfo[]>;
20
- //#endregion
20
+ //#endregion
21
+ export {};
@@ -13,4 +13,5 @@ export type UpdateFolderOptions = z.input<typeof updateFolderOptionsSchema>;
13
13
  * @returns Updated folder details
14
14
  */
15
15
  export declare function updateFolder(options: UpdateFolderOptions): Promise<FolderInfo>;
16
- //#endregion
16
+ //#endregion
17
+ export {};
@@ -11,4 +11,5 @@ export type GetOrganizationOptions = z.input<typeof getOrganizationOptionsSchema
11
11
  * @returns Organization details
12
12
  */
13
13
  export declare function getOrganization(options: GetOrganizationOptions): Promise<OrganizationInfo>;
14
- //#endregion
14
+ //#endregion
15
+ export {};
@@ -20,4 +20,5 @@ interface FolderTreeJson {
20
20
  * @returns Organization tree as structured data
21
21
  */
22
22
  export declare function organizationTree(options?: OrganizationTreeOptions): Promise<OrganizationTreeJson[]>;
23
- //#endregion
23
+ //#endregion
24
+ export {};
@@ -12,4 +12,5 @@ export type UpdateOrganizationOptions = z.input<typeof updateOrganizationOptions
12
12
  * @returns Updated organization details
13
13
  */
14
14
  export declare function updateOrganization(options: UpdateOrganizationOptions): Promise<OrganizationInfo>;
15
- //#endregion
15
+ //#endregion
16
+ export {};
@@ -47,4 +47,5 @@ export interface ShowInfo extends ApplicationInfo, WorkspaceInfo {
47
47
  * @returns Deployed application, workspace, AI Gateway, static website, and OAuth2 client information
48
48
  */
49
49
  export declare function show(options?: ShowOptions): Promise<ShowInfo>;
50
- //#endregion
50
+ //#endregion
51
+ export {};
@@ -1,9 +1,5 @@
1
+ import { EffectiveDateDefault } from "../../../../runtime/types.mjs";
1
2
  //#region src/cli/commands/tailordb/migrate/bundler.d.ts
2
- /**
3
- * Migration script bundler for TailorDB migrations
4
- *
5
- * Bundles migration scripts for server-side execution
6
- */
7
3
  export interface MigrationBundleResult {
8
4
  namespace: string;
9
5
  migrationNumber: number;
@@ -25,7 +21,9 @@ export interface MigrationBundleResult {
25
21
  * @param {boolean} [temporal] - Whether `kyselyTypePlugin` was configured with `{ temporal: true }`; matches
26
22
  * the `tailordb.Client` this script runs against to the Temporal column types its `db.ts` was generated with.
27
23
  * Defaults to `false`.
24
+ * @param dateDefault - Representation applied to `t` date fields that omit `as`, as recorded in the
25
+ * migration's `diff.json` when it was generated. Defaults to `"legacy"`.
28
26
  * @returns {Promise<MigrationBundleResult>} Bundled migration result
29
27
  */
30
- export declare function bundleMigrationScript(sourceFile: string, namespace: string, migrationNumber: number, env?: Record<string, string | number | boolean>, baseDir?: string, temporal?: boolean): Promise<MigrationBundleResult>;
28
+ export declare function bundleMigrationScript(sourceFile: string, namespace: string, migrationNumber: number, env?: Record<string, string | number | boolean>, baseDir?: string, temporal?: boolean, dateDefault?: EffectiveDateDefault): Promise<MigrationBundleResult>;
31
29
  //#endregion
@@ -240,6 +240,12 @@ export interface MigrationDiff {
240
240
  * means `false`.
241
241
  */
242
242
  temporal?: boolean;
243
+ /**
244
+ * The `defaultDateRepresentation` in effect when this migration's script was
245
+ * generated. The script keeps running with it, whatever the config says later.
246
+ * Absent means string values.
247
+ */
248
+ dateRepresentation?: "temporal" | "date";
243
249
  }
244
250
  /**
245
251
  * Acknowledgment that a migration requiring or recommending a script intentionally has none.
@@ -293,4 +299,5 @@ export declare function formatMigrationDiff(diff: MigrationDiff): string;
293
299
  * @returns {string} Formatted summary string
294
300
  */
295
301
  export declare function formatDiffSummary(diff: MigrationDiff): string;
296
- //#endregion
302
+ //#endregion
303
+ export {};
@@ -0,0 +1 @@
1
+ import "../../../shared/client.mjs";
@@ -29,6 +29,7 @@ export interface SnapshotSerial {
29
29
  start: number;
30
30
  maxValue?: number;
31
31
  format?: string;
32
+ gapless?: boolean;
32
33
  }
33
34
  /**
34
35
  * Enum value with optional description in schema snapshot
@@ -213,4 +214,5 @@ declare const normalizedSchemaSnapshotBrand: unique symbol;
213
214
  export type NormalizedSchemaSnapshot = SchemaSnapshot & {
214
215
  readonly [normalizedSchemaSnapshotBrand]: true;
215
216
  };
216
- //#endregion
217
+ //#endregion
218
+ export {};
@@ -60,4 +60,5 @@ export declare function listWorkflowExecutions<W extends WorkflowLike>(options?:
60
60
  * @returns Workflow execution with optional logs
61
61
  */
62
62
  export declare function getWorkflowExecution(options: GetWorkflowExecutionOptions): Promise<GetWorkflowExecutionResult>;
63
- //#endregion
63
+ //#endregion
64
+ export {};
@@ -17,4 +17,5 @@ export type GetWorkflowTypedOptions<W extends WorkflowLike = WorkflowLike> = {
17
17
  * @returns Workflow information
18
18
  */
19
19
  export declare function getWorkflow<W extends WorkflowLike>(options: GetWorkflowTypedOptions<W>): Promise<WorkflowInfo>;
20
- //#endregion
20
+ //#endregion
21
+ export {};
@@ -44,4 +44,5 @@ export interface StartWorkflowResultWithWait {
44
44
  * @returns Start result with wait helper
45
45
  */
46
46
  export declare function startWorkflow<W extends WorkflowLike>(options: StartWorkflowTypedOptions<W>): Promise<StartWorkflowResultWithWait>;
47
- //#endregion
47
+ //#endregion
48
+ export {};
@@ -13,4 +13,5 @@ export type HealthOptions = z.input<typeof healthOptionsSchema>;
13
13
  * @returns Application health information
14
14
  */
15
15
  export declare function getAppHealth(options: HealthOptions): Promise<AppHealthInfo>;
16
- //#endregion
16
+ //#endregion
17
+ export {};
@@ -17,4 +17,5 @@ export type ListAppsOptions = z.input<typeof listAppsOptionsSchema>;
17
17
  * @returns List of applications
18
18
  */
19
19
  export declare function listApps(options: ListAppsOptions): Promise<AppInfo[]>;
20
- //#endregion
20
+ //#endregion
21
+ export {};
@@ -1,5 +1,6 @@
1
1
  import "../../shared/workspace-name.mjs";
2
2
  import "../../shared/client.mjs";
3
+ import "../../shared/context.mjs";
3
4
  import { WorkspaceInfo } from "./transform.mjs";
4
5
  import { z } from "zod";
5
6
  //#region src/cli/commands/workspace/create.d.ts
@@ -23,7 +24,8 @@ export type CreatedWorkspaceInfo = WorkspaceInfo & {
23
24
  ttl?: TtlWriteResult;
24
25
  };
25
26
  /**
26
- * Create a new workspace with the given options.
27
+ * Create a new workspace with the given options. When neither location ID is provided,
28
+ * use the selected user's defaults unless an environment token is set.
27
29
  * @param options - Workspace creation options
28
30
  * @returns Created workspace info
29
31
  */
@@ -38,4 +40,5 @@ export type TtlWriteResult = {
38
40
  requested: string;
39
41
  message: string;
40
42
  };
41
- //#endregion
43
+ //#endregion
44
+ export {};
@@ -10,4 +10,5 @@ export type DeleteWorkspaceOptions = z.input<typeof deleteWorkspaceOptionsSchema
10
10
  * @returns Promise that resolves when deletion completes
11
11
  */
12
12
  export declare function deleteWorkspace(options: DeleteWorkspaceOptions): Promise<void>;
13
- //#endregion
13
+ //#endregion
14
+ export {};
@@ -17,4 +17,5 @@ export type WorkspaceDetailsWithExpiry = WorkspaceDetails & {
17
17
  * @returns Workspace details
18
18
  */
19
19
  export declare function getWorkspace(options: GetWorkspaceOptions): Promise<WorkspaceDetailsWithExpiry>;
20
- //#endregion
20
+ //#endregion
21
+ export {};
@@ -10,4 +10,5 @@ export type RestoreWorkspaceOptions = z.input<typeof restoreWorkspaceOptionsSche
10
10
  * @returns Promise that resolves when restoration completes
11
11
  */
12
12
  export declare function restoreWorkspace(options: RestoreWorkspaceOptions): Promise<void>;
13
- //#endregion
13
+ //#endregion
14
+ export {};
@@ -17,4 +17,5 @@ export type InviteUserOptions = z.input<typeof inviteUserOptionsSchema>;
17
17
  * @returns Promise that resolves when invitation is sent
18
18
  */
19
19
  export declare function inviteUser(options: InviteUserOptions): Promise<void>;
20
- //#endregion
20
+ //#endregion
21
+ export {};
@@ -17,4 +17,5 @@ export type ListUsersOptions = z.input<typeof listUsersOptionsSchema>;
17
17
  * @returns List of workspace users
18
18
  */
19
19
  export declare function listUsers(options: ListUsersOptions): Promise<UserInfo[]>;
20
- //#endregion
20
+ //#endregion
21
+ export {};
@@ -12,4 +12,5 @@ export type RemoveUserOptions = z.input<typeof removeUserOptionsSchema>;
12
12
  * @returns Promise that resolves when removal completes
13
13
  */
14
14
  export declare function removeUser(options: RemoveUserOptions): Promise<void>;
15
- //#endregion
15
+ //#endregion
16
+ export {};
@@ -17,4 +17,5 @@ export type UpdateUserOptions = z.input<typeof updateUserOptionsSchema>;
17
17
  * @returns Promise that resolves when update completes
18
18
  */
19
19
  export declare function updateUser(options: UpdateUserOptions): Promise<void>;
20
- //#endregion
20
+ //#endregion
21
+ export {};
@@ -3,7 +3,7 @@ import { CommonArgsType, configArg, confirmationArgs, createCommonArgs, deployme
3
3
  import { defineAppCommand } from "./shared/command.mjs";
4
4
  import { logBetaWarning } from "./shared/beta.mjs";
5
5
  import { prompt } from "./shared/prompt.mjs";
6
- import { workspaceNameSchema } from "./shared/workspace-name.mjs";
6
+ import { WORKSPACE_NAME_MAX_LENGTH, workspaceNameSchema } from "./shared/workspace-name.mjs";
7
7
  import { BundledScripts } from "./commands/deploy/function-registry-types.mjs";
8
8
  import { PluginAttachment } from "../configure/services/tailordb/types.mjs";
9
9
  import { OperatorFieldConfig, ParsedField, PluginGeneratedTableSource, TailorDBType, TypeSourceInfoEntry } from "../parser/service/tailordb/types.mjs";
@@ -39,6 +39,7 @@ import { assertWritable } from "./shared/readonly-guard.mjs";
39
39
  import { isPluginGeneratedTable } from "../parser/service/tailordb/type-source.mjs";
40
40
  import { AIGatewayInfo, ApplicationInfo, ShowInfo, ShowOAuth2ClientInfo, ShowOptions, ShowStaticWebsiteInfo, show } from "./commands/show.mjs";
41
41
  import { RemoveOptions, remove } from "./commands/remove.mjs";
42
+ import { loadAccessToken, loadWorkspaceId } from "./shared/context.mjs";
42
43
  import { WorkspaceDetails, WorkspaceInfo } from "./commands/workspace/transform.mjs";
43
44
  import { CreateWorkspaceOptions, createWorkspace } from "./commands/workspace/create.mjs";
44
45
  import { ListWorkspacesOptions, listWorkspaces } from "./commands/workspace/list.mjs";
@@ -86,7 +87,6 @@ import { GetFolderOptions, getFolder } from "./commands/organization/folder/get.
86
87
  import { CreateFolderOptions, createFolder } from "./commands/organization/folder/create.mjs";
87
88
  import { UpdateFolderOptions, updateFolder } from "./commands/organization/folder/update.mjs";
88
89
  import { DeleteFolderOptions, deleteFolder } from "./commands/organization/folder/delete.mjs";
89
- import { loadAccessToken, loadWorkspaceId } from "./shared/context.mjs";
90
90
  import { ApiCallOptions, ApiCallResult, apiCall } from "./commands/api/api-call.mjs";
91
91
  import "./commands/api/index.mjs";
92
92
  import { query } from "./query/index.mjs";
@@ -100,4 +100,4 @@ import { MigrationBundleResult, bundleMigrationScript } from "./commands/tailord
100
100
  import { ExecutionWaitResult, ScriptExecutionOptions, ScriptExecutionResult, ScriptInvoker, executeScript, waitForExecution } from "./shared/script-executor.mjs";
101
101
  import { arg, defineCommand, runCommand, runMain } from "@politty/zod";
102
102
  import { MachineUserName } from "@tailor-platform/sdk";
103
- export { type AIGatewayInfo, type ApiCallOptions, type ApiCallResult, type AppHealthInfo, type AppIdEntry, type AppIdEntryInput, type AppIdLock, type AppIdPlan, type AppIdPlanMode, type AppIds, type AppInfo, type ApplicationInfo, type DeployOptions as ApplyOptions, type AuthInvoker, type BreakingChangeInfo, type BundledScripts, type ChunkSeedDataOptions, type CommonArgsType, type CreateFolderOptions, type CreateWorkspaceOptions, DB_PGLITE_SCHEMA_FILE_NAME, DB_TYPES_FILE_NAME, DIFF_FILE_NAME, type DeleteFolderOptions, type DeleteWorkspaceOptions, type DeployOptions, type ErrorSourceLocation, type ErrorToJsonOptions, type ExecutionWaitResult, type Executor, type ExecutorInfo, type ExecutorJobAttemptInfo, type ExecutorJobDetailInfo, type ExecutorJobInfo, type ExecutorJobListInfo, type ExecutorListInfo, type FolderInfo, type FolderListInfo, type FunctionLogEntryInfo, type FunctionRegistryInfo, type GenerateOptions, type GeneratorResult, type HealthOptions as GetAppHealthOptions, type GetExecutorJobTypedOptions, type GetExecutorTypedOptions, type GetFolderOptions, type GetFunctionRegistryOptions, type GetMachineUserTokenOptions, type GetOAuth2ClientOptions, type GetOrganizationOptions, type GetWorkflowExecutionOptions, type GetWorkflowExecutionResult, type GetWorkflowTypedOptions, type GetWorkspaceOptions, INITIAL_SCHEMA_NUMBER, type InviteUserOptions, type ListAppsOptions, type ListExecutorJobsTypedOptions, type ListExecutorsOptions, type ListFoldersOptions, type ListFunctionRegistriesOptions, type ListMachineUsersOptions, type ListOAuth2ClientsOptions, type ListOrganizationsOptions, type ListUsersOptions, type ListWebhookExecutorsOptions, type ListWorkflowExecutionsTypedOptions, type ListWorkflowsOptions, type ListWorkspacesOptions, type LoadSeedContextOptions, type LoadTailorDBNamespacesOptions, type LoadedConfig, type LoadedTailorDBNamespaces, type LogMode, type LogOptions, MIGRATE_FILE_NAME, MIGRATE_PGLITE_TEST_FILE_NAME, MIGRATE_TEST_FILE_NAME, MIGRATION_LABEL_KEY, type MachineUserInfo, type MachineUserName, type MachineUserTokenInfo, type GenerateOptions$1 as MigrateGenerateOptions, type MigrationBundleResult, type MigrationDiff, type NamespaceWithMigrations, type NormalizedSchemaSnapshot, type OAuth2ClientCredentials, type OAuth2ClientInfo, type OperatorClient, type OperatorFieldConfig, type OrganizationInfo, type OrganizationTreeOptions, type OutOptions, type ParsedField, type PlanAppIdsParams, type Plugin, type PluginAttachment, type PluginGeneratedTableSource, type RemoveAdoptedConfigIdsResult, type RemoveOptions, type RemoveUserOptions, type ResolveAppIdParams, type Resolver, type RestoreWorkspaceOptions, type ResumeWorkflowOptions, type ResumeWorkflowResultWithWait, SCHEMA_FILE_NAME, type SchemaSnapshot, type ScriptExecutionOptions, type ScriptExecutionResult, type ScriptInvoker, type SeedBundleResult, type SeedChunk, type SeedContext, type SeedData, type SeedDumpBundleResult, type SeedIdpUserContext, type SeedNamespaceConfig, type ShowInfo, type ShowOAuth2ClientInfo, type ShowOptions, type ShowStaticWebsiteInfo, type SnapshotFieldConfig, type StartWorkflowResultWithWait, type StartWorkflowTypedOptions, type DeployResult as StaticWebsiteDeployResult, TAILOR_LOCK_FILENAME, TAILOR_LOCK_VERSION, type TailorDBNamespaceData, type TailorDBNamespaceSelector, type TailorDBSnapshotType, type TailorDBType, type TriggerExecutorResult, type TriggerExecutorTypedOptions, type TruncateOptions, type TypeSourceInfoEntry, type UpdateFolderOptions, type UpdateOrganizationOptions, type UpdateUserOptions, type UserInfo, type UserOrganizationInfo, type WaitOptions, type WaitWorkflowExecutionOptions, type WatchExecutorJobResult, type WatchExecutorJobTypedOptions, type WebhookExecutorInfo, type WorkflowExecutionInfo, type WorkflowExecutionWaitInfo, type WorkflowInfo, type WorkflowJobExecutionInfo, type WorkflowListInfo, type WorkflowWaitOutput, type WorkflowWaitResult, type WorkspaceDetails, type WorkspaceInfo, annotateTerminalError, apiCall, appIdLockKey, deploy as apply, arg, assertWritable, bundleMigrationScript, bundleSeedDumpScript, bundleSeedScript, chunkSeedData, compareLocalTypesWithSnapshot, compareSnapshots, configArg, confirmationArgs, createCommonArgs, createFolder, createSnapshotFromLocalTypes, createWorkspace, defineAppCommand, defineCommand, deleteFolder, deleteWorkspace, deploy, deployStaticWebsite, deploymentArgs, ensureConfigId, errorToJson, executeScript, extractOwnedNamespaces, findAppIdLock, formatDiffSummary, formatMigrationDiff, generate, generateUserTypes, getAppHealth, getExecutor, getExecutorJob, getExecutorWaitFailureMessage, getFolder, getFunctionRegistry, getLatestMigrationNumber, getMachineUserToken, getMigrationDirPath, getMigrationFilePath, getMigrationFiles, getNamespacesWithMigrations, getNextMigrationNumber, getOAuth2Client, getOrganization, getWorkflow, getWorkflowExecution, getWorkspace, hasChanges, initOperatorClient, inviteUser, isPluginGeneratedTable, listApps, listExecutorJobs, listExecutors, listFolders, listFunctionRegistries, listMachineUsers, listOAuth2Clients, listOrganizations, listUsers, listWebhookExecutors, listWorkflowExecutions, listWorkflows, listWorkspaces, loadAccessToken, loadConfig, loadEnvFiles, loadSeedContext, loadTailorDBNamespaces, loadWorkspaceId, logBetaWarning, logger, generate$1 as migrateGenerate, organizationTree, parseAppIds, planAppIds, prompt, query, reconstructSnapshotFromMigrations, remove, removeAdoptedConfigIds, removeUser, resolveAppId, restoreWorkspace, resumeWorkflow, runCommand, runMain, serializeError, show, startWorkflow, styles, triggerExecutor, truncate, updateFolder, updateOrganization, updateUser, waitForExecution, waitWorkflowExecution, watchExecutorJob, withSourceLocation, workspaceArgs, workspaceNameSchema };
103
+ export { type AIGatewayInfo, type ApiCallOptions, type ApiCallResult, type AppHealthInfo, type AppIdEntry, type AppIdEntryInput, type AppIdLock, type AppIdPlan, type AppIdPlanMode, type AppIds, type AppInfo, type ApplicationInfo, type DeployOptions as ApplyOptions, type AuthInvoker, type BreakingChangeInfo, type BundledScripts, type ChunkSeedDataOptions, type CommonArgsType, type CreateFolderOptions, type CreateWorkspaceOptions, DB_PGLITE_SCHEMA_FILE_NAME, DB_TYPES_FILE_NAME, DIFF_FILE_NAME, type DeleteFolderOptions, type DeleteWorkspaceOptions, type DeployOptions, type ErrorSourceLocation, type ErrorToJsonOptions, type ExecutionWaitResult, type Executor, type ExecutorInfo, type ExecutorJobAttemptInfo, type ExecutorJobDetailInfo, type ExecutorJobInfo, type ExecutorJobListInfo, type ExecutorListInfo, type FolderInfo, type FolderListInfo, type FunctionLogEntryInfo, type FunctionRegistryInfo, type GenerateOptions, type GeneratorResult, type HealthOptions as GetAppHealthOptions, type GetExecutorJobTypedOptions, type GetExecutorTypedOptions, type GetFolderOptions, type GetFunctionRegistryOptions, type GetMachineUserTokenOptions, type GetOAuth2ClientOptions, type GetOrganizationOptions, type GetWorkflowExecutionOptions, type GetWorkflowExecutionResult, type GetWorkflowTypedOptions, type GetWorkspaceOptions, INITIAL_SCHEMA_NUMBER, type InviteUserOptions, type ListAppsOptions, type ListExecutorJobsTypedOptions, type ListExecutorsOptions, type ListFoldersOptions, type ListFunctionRegistriesOptions, type ListMachineUsersOptions, type ListOAuth2ClientsOptions, type ListOrganizationsOptions, type ListUsersOptions, type ListWebhookExecutorsOptions, type ListWorkflowExecutionsTypedOptions, type ListWorkflowsOptions, type ListWorkspacesOptions, type LoadSeedContextOptions, type LoadTailorDBNamespacesOptions, type LoadedConfig, type LoadedTailorDBNamespaces, type LogMode, type LogOptions, MIGRATE_FILE_NAME, MIGRATE_PGLITE_TEST_FILE_NAME, MIGRATE_TEST_FILE_NAME, MIGRATION_LABEL_KEY, type MachineUserInfo, type MachineUserName, type MachineUserTokenInfo, type GenerateOptions$1 as MigrateGenerateOptions, type MigrationBundleResult, type MigrationDiff, type NamespaceWithMigrations, type NormalizedSchemaSnapshot, type OAuth2ClientCredentials, type OAuth2ClientInfo, type OperatorClient, type OperatorFieldConfig, type OrganizationInfo, type OrganizationTreeOptions, type OutOptions, type ParsedField, type PlanAppIdsParams, type Plugin, type PluginAttachment, type PluginGeneratedTableSource, type RemoveAdoptedConfigIdsResult, type RemoveOptions, type RemoveUserOptions, type ResolveAppIdParams, type Resolver, type RestoreWorkspaceOptions, type ResumeWorkflowOptions, type ResumeWorkflowResultWithWait, SCHEMA_FILE_NAME, type SchemaSnapshot, type ScriptExecutionOptions, type ScriptExecutionResult, type ScriptInvoker, type SeedBundleResult, type SeedChunk, type SeedContext, type SeedData, type SeedDumpBundleResult, type SeedIdpUserContext, type SeedNamespaceConfig, type ShowInfo, type ShowOAuth2ClientInfo, type ShowOptions, type ShowStaticWebsiteInfo, type SnapshotFieldConfig, type StartWorkflowResultWithWait, type StartWorkflowTypedOptions, type DeployResult as StaticWebsiteDeployResult, TAILOR_LOCK_FILENAME, TAILOR_LOCK_VERSION, type TailorDBNamespaceData, type TailorDBNamespaceSelector, type TailorDBSnapshotType, type TailorDBType, type TriggerExecutorResult, type TriggerExecutorTypedOptions, type TruncateOptions, type TypeSourceInfoEntry, type UpdateFolderOptions, type UpdateOrganizationOptions, type UpdateUserOptions, type UserInfo, type UserOrganizationInfo, WORKSPACE_NAME_MAX_LENGTH, type WaitOptions, type WaitWorkflowExecutionOptions, type WatchExecutorJobResult, type WatchExecutorJobTypedOptions, type WebhookExecutorInfo, type WorkflowExecutionInfo, type WorkflowExecutionWaitInfo, type WorkflowInfo, type WorkflowJobExecutionInfo, type WorkflowListInfo, type WorkflowWaitOutput, type WorkflowWaitResult, type WorkspaceDetails, type WorkspaceInfo, annotateTerminalError, apiCall, appIdLockKey, deploy as apply, arg, assertWritable, bundleMigrationScript, bundleSeedDumpScript, bundleSeedScript, chunkSeedData, compareLocalTypesWithSnapshot, compareSnapshots, configArg, confirmationArgs, createCommonArgs, createFolder, createSnapshotFromLocalTypes, createWorkspace, defineAppCommand, defineCommand, deleteFolder, deleteWorkspace, deploy, deployStaticWebsite, deploymentArgs, ensureConfigId, errorToJson, executeScript, extractOwnedNamespaces, findAppIdLock, formatDiffSummary, formatMigrationDiff, generate, generateUserTypes, getAppHealth, getExecutor, getExecutorJob, getExecutorWaitFailureMessage, getFolder, getFunctionRegistry, getLatestMigrationNumber, getMachineUserToken, getMigrationDirPath, getMigrationFilePath, getMigrationFiles, getNamespacesWithMigrations, getNextMigrationNumber, getOAuth2Client, getOrganization, getWorkflow, getWorkflowExecution, getWorkspace, hasChanges, initOperatorClient, inviteUser, isPluginGeneratedTable, listApps, listExecutorJobs, listExecutors, listFolders, listFunctionRegistries, listMachineUsers, listOAuth2Clients, listOrganizations, listUsers, listWebhookExecutors, listWorkflowExecutions, listWorkflows, listWorkspaces, loadAccessToken, loadConfig, loadEnvFiles, loadSeedContext, loadTailorDBNamespaces, loadWorkspaceId, logBetaWarning, logger, generate$1 as migrateGenerate, organizationTree, parseAppIds, planAppIds, prompt, query, reconstructSnapshotFromMigrations, remove, removeAdoptedConfigIds, removeUser, resolveAppId, restoreWorkspace, resumeWorkflow, runCommand, runMain, serializeError, show, startWorkflow, styles, triggerExecutor, truncate, updateFolder, updateOrganization, updateUser, waitForExecution, waitWorkflowExecution, watchExecutorJob, withSourceLocation, workspaceArgs, workspaceNameSchema };
package/dist/cli/lib.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{at as ee}from"../application-DS0XKBtK.mjs";import{i as te,o as ne}from"../logger-Db-YRTwK.mjs";import{A as e,An as t,Ar as n,At as r,Br as i,Bt as a,C as o,Cn as s,Cr as c,Dn as l,Dr as u,Dt as d,E as f,En as p,Et as m,F as h,Fi as g,Fn as _,G as v,Gr as y,Gt as b,H as x,Ht as S,I as C,Ir as w,It as T,J as E,Kr as D,L as O,Ln as k,Mi as A,Mn as j,Mr as M,Mt as N,N as P,Ni as F,Nn as I,Nr as L,Nt as R,O as z,Oi as B,On as V,Ot as H,P as U,Pi as W,Pn as G,Q as K,Ri as q,Rt as J,Sr as Y,U as X,Ut as Z,Xt as re,Y as ie,Yt as ae,_ as oe,_r as se,ai as Q,br as ce,bt as le,ct as ue,d as de,en as fe,et as pe,fi as me,ft as he,h as ge,ht as _e,i as ve,it as ye,j as be,jn as xe,jr as Se,kn as Ce,kr as we,l as Te,ln as Ee,mr as De,mt as Oe,n as ke,ni as Ae,nt as je,oi as Me,on as Ne,ot as Pe,p as Fe,qi as Ie,qr as Le,qt as Re,r as ze,s as Be,si as Ve,sr as He,t as Ue,tn as $,tr as We,ut as Ge,vr as Ke,vt as qe,wr as Je,wt as Ye,x as Xe,xr as Ze,xt as Qe,y as $e,yi as et,yr as tt,yt as nt,zr as rt,zt as it}from"../register-ts-hook-BuwkLuxC.mjs";import{t as at}from"../type-source--ZNcV8RJ.mjs";import{arg as ot,defineCommand as st,runCommand as ct,runMain as lt}from"@politty/zod";await Ue(new URL(`./ts-hook.mjs`,import.meta.url));export{Ke as DB_PGLITE_SCHEMA_FILE_NAME,tt as DB_TYPES_FILE_NAME,ce as DIFF_FILE_NAME,Ze as INITIAL_SCHEMA_NUMBER,Y as MIGRATE_FILE_NAME,c as MIGRATE_PGLITE_TEST_FILE_NAME,Je as MIGRATE_TEST_FILE_NAME,w as MIGRATION_LABEL_KEY,u as SCHEMA_FILE_NAME,p as TAILOR_LOCK_FILENAME,l as TAILOR_LOCK_VERSION,ke as annotateTerminalError,Q as apiCall,V as appIdLockKey,$ as apply,$ as deploy,ot as arg,Me as assertWritable,We as bundleMigrationScript,h as bundleSeedDumpScript,C as bundleSeedScript,U as chunkSeedData,rt as compareLocalTypesWithSnapshot,i as compareSnapshots,A as configArg,F as confirmationArgs,W as createCommonArgs,Ge as createFolder,De as createSnapshotFromLocalTypes,Ee as createWorkspace,B as defineAppCommand,st as defineCommand,ue as deleteFolder,$e as deleteWorkspace,k as deployStaticWebsite,g as deploymentArgs,G as ensureConfigId,le as errorToJson,d as executeScript,m as extractOwnedNamespaces,Ce as findAppIdLock,y as formatDiffSummary,D as formatMigrationDiff,nt as generate,_ as generateUserTypes,o as getAppHealth,fe as getExecutor,it as getExecutorJob,a as getExecutorWaitFailureMessage,Pe as getFolder,N as getFunctionRegistry,we as getLatestMigrationNumber,_e as getMachineUserToken,n as getMigrationDirPath,Se as getMigrationFilePath,M as getMigrationFiles,He as getNamespacesWithMigrations,L as getNextMigrationNumber,Oe as getOAuth2Client,pe as getOrganization,Re as getWorkflow,ae as getWorkflowExecution,oe as getWorkspace,Le as hasChanges,ee as initOperatorClient,Fe as inviteUser,at as isPluginGeneratedTable,Xe as listApps,S as listExecutorJobs,J as listExecutors,ye as listFolders,r as listFunctionRegistries,qe as listMachineUsers,he as listOAuth2Clients,K as listOrganizations,de as listUsers,R as listWebhookExecutors,re as listWorkflowExecutions,e as listWorkflows,Ne as listWorkspaces,me as loadAccessToken,Ve as loadConfig,q as loadEnvFiles,P as loadSeedContext,Ye as loadTailorDBNamespaces,et as loadWorkspaceId,x as logBetaWarning,te as logger,O as migrateGenerate,ie as organizationTree,t as parseAppIds,xe as planAppIds,Ae as prompt,ve as query,se as reconstructSnapshotFromMigrations,v as remove,j as removeAdoptedConfigIds,Te as removeUser,I as resolveAppId,ge as restoreWorkspace,z as resumeWorkflow,ct as runCommand,lt as runMain,Qe as serializeError,X as show,b as startWorkflow,ne as styles,T as triggerExecutor,be as truncate,je as updateFolder,E as updateOrganization,Be as updateUser,H as waitForExecution,f as waitWorkflowExecution,Z as watchExecutorJob,ze as withSourceLocation,Ie as workspaceArgs,s as workspaceNameSchema};
1
+ import{ot as ee}from"../application-CgJLyJaF.mjs";import{a as te,c as e}from"../logger-DuaT2zY3.mjs";import{$ as t,A as n,An as r,Ar as i,At as a,B as o,Br as s,Bt as c,C as l,Cr as u,Ct as d,Dn as f,Dr as p,E as m,En as h,Er as g,Et as _,Fn as v,Ft as y,Gi as b,Gr as x,Gt as S,Hr as C,Ht as w,Ir as T,Jr as E,Jt as D,Ki as O,L as k,Lt as A,Mn as j,Mr as M,Mt as N,N as P,Nn as F,Nr as I,Nt as L,O as R,Oi as z,On as B,Or as V,Ot as H,Qt as U,R as W,Rr as G,St as K,Tn as q,U as J,Ui as Y,Ut as X,Vr as Z,W as Q,Wi as ne,Xi as re,Xt as ie,Y as ae,Yr as oe,Yt as $,Z as se,Zt as ce,_ as le,at as ue,bn as de,bt as fe,cr as pe,d as me,di as he,ei as ge,gi as _e,gr as ve,gt as ye,h as be,hi as xe,ht as Se,i as Ce,j as we,jn as Te,jr as Ee,kn as De,kr as Oe,kt as ke,l as Ae,lt as je,mi as Me,mt as Ne,n as Pe,ni as Fe,oa as Ie,on as Le,p as Re,pt as ze,q as Be,qt as Ve,r as He,rn as Ue,rt as We,s as Ge,st as Ke,t as qe,ti as Je,tt as Ye,ut as Xe,vt as Ze,wn as Qe,x as $e,xi as et,xn as tt,y as nt,zi as rt,zr as it,zt as at}from"../register-ts-hook-yxshv0LV.mjs";import{t as ot}from"../type-source--ZNcV8RJ.mjs";import{arg as st,defineCommand as ct,runCommand as lt,runMain as ut}from"@politty/zod";await qe(new URL(`./ts-hook.mjs`,import.meta.url));export{p as DB_PGLITE_SCHEMA_FILE_NAME,V as DB_TYPES_FILE_NAME,Oe as DIFF_FILE_NAME,i as INITIAL_SCHEMA_NUMBER,Ee as MIGRATE_FILE_NAME,M as MIGRATE_PGLITE_TEST_FILE_NAME,I as MIGRATE_TEST_FILE_NAME,x as MIGRATION_LABEL_KEY,T as SCHEMA_FILE_NAME,Qe as TAILOR_LOCK_FILENAME,q as TAILOR_LOCK_VERSION,de as WORKSPACE_NAME_MAX_LENGTH,Pe as annotateTerminalError,Me as apiCall,h as appIdLockKey,U as apply,U as deploy,st as arg,xe as assertWritable,pe as bundleMigrationScript,ie as bundleSeedDumpScript,ce as bundleSeedScript,Ve as chunkSeedData,E as compareLocalTypesWithSnapshot,oe as compareSnapshots,Y as configArg,ne as confirmationArgs,b as createCommonArgs,ue as createFolder,u as createSnapshotFromLocalTypes,Le as createWorkspace,rt as defineAppCommand,ct as defineCommand,We as deleteFolder,nt as deleteWorkspace,v as deployStaticWebsite,O as deploymentArgs,j as ensureConfigId,Se as errorToJson,D as executeScript,Ze as extractOwnedNamespaces,f as findAppIdLock,ge as formatDiffSummary,Je as formatMigrationDiff,Ne as generate,F as generateUserTypes,l as getAppHealth,w as getExecutor,ke as getExecutorJob,a as getExecutorWaitFailureMessage,Ye as getFolder,K as getFunctionRegistry,G as getLatestMigrationNumber,Xe as getMachineUserToken,it as getMigrationDirPath,s as getMigrationFilePath,Z as getMigrationFiles,ve as getNamespacesWithMigrations,C as getNextMigrationNumber,je as getOAuth2Client,ae as getOrganization,A as getWorkflow,at as getWorkflowExecution,le as getWorkspace,Fe as hasChanges,ee as initOperatorClient,Re as inviteUser,ot as isPluginGeneratedTable,$e as listApps,N as listExecutorJobs,H as listExecutors,t as listFolders,fe as listFunctionRegistries,ze as listMachineUsers,Ke as listOAuth2Clients,Be as listOrganizations,me as listUsers,d as listWebhookExecutors,c as listWorkflowExecutions,n as listWorkflows,Ue as listWorkspaces,et as loadAccessToken,_e as loadConfig,re as loadEnvFiles,X as loadSeedContext,S as loadTailorDBNamespaces,z as loadWorkspaceId,k as logBetaWarning,te as logger,P as migrateGenerate,Q as organizationTree,B as parseAppIds,De as planAppIds,he as prompt,Ce as query,g as reconstructSnapshotFromMigrations,o as remove,r as removeAdoptedConfigIds,Ae as removeUser,Te as resolveAppId,be as restoreWorkspace,R as resumeWorkflow,lt as runCommand,ut as runMain,ye as serializeError,W as show,y as startWorkflow,e as styles,_ as triggerExecutor,we as truncate,se as updateFolder,J as updateOrganization,Ge as updateUser,$ as waitForExecution,m as waitWorkflowExecution,L as watchExecutorJob,He as withSourceLocation,Ie as workspaceArgs,tt as workspaceNameSchema};
2
2
  //# sourceMappingURL=lib.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"lib.mjs","names":["initOperatorClient","logger","styles","listWorkflows","parseAppIds","getMigrationDirPath","listFunctionRegistries","compareSnapshots","getExecutorWaitFailureMessage","getAppHealth","workspaceNameSchema","MIGRATE_PGLITE_TEST_FILE_NAME","TAILOR_LOCK_VERSION","SCHEMA_FILE_NAME","executeScript","waitWorkflowExecution","TAILOR_LOCK_FILENAME","extractOwnedNamespaces","bundleSeedDumpScript","deploymentArgs","generateUserTypes","remove","formatDiffSummary","startWorkflow","logBetaWarning","listExecutorJobs","bundleSeedScript","MIGRATION_LABEL_KEY","triggerExecutor","updateOrganization","formatMigrationDiff","generate$1","deployStaticWebsite","configArg","removeAdoptedConfigIds","getMigrationFiles","getFunctionRegistry","loadSeedContext","confirmationArgs","resolveAppId","getNextMigrationNumber","listWebhookExecutors","resumeWorkflow","defineAppCommand","appIdLockKey","waitForExecution","chunkSeedData","createCommonArgs","ensureConfigId","listOrganizations","loadEnvFiles","listExecutors","MIGRATE_FILE_NAME","show","watchExecutorJob","listWorkflowExecutions","organizationTree","getWorkflowExecution","getWorkspace","reconstructSnapshotFromMigrations","apiCall","DIFF_FILE_NAME","errorToJson","deleteFolder","listUsers","getExecutor","getOrganization","loadAccessToken","listOAuth2Clients","restoreWorkspace","getMachineUserToken","query","listFolders","truncate","planAppIds","getMigrationFilePath","findAppIdLock","getLatestMigrationNumber","removeUser","createWorkspace","createSnapshotFromLocalTypes","getOAuth2Client","annotateTerminalError","prompt","updateFolder","assertWritable","listWorkspaces","getFolder","inviteUser","workspaceArgs","hasChanges","getWorkflow","withSourceLocation","updateUser","loadConfig","getNamespacesWithMigrations","registerTsHook","deploy","bundleMigrationScript","createFolder","DB_PGLITE_SCHEMA_FILE_NAME","listMachineUsers","MIGRATE_TEST_FILE_NAME","loadTailorDBNamespaces","listApps","INITIAL_SCHEMA_NUMBER","serializeError","deleteWorkspace","loadWorkspaceId","DB_TYPES_FILE_NAME","generate","compareLocalTypesWithSnapshot","getExecutorJob","isPluginGeneratedTable","arg","defineCommand","runCommand","runMain"],"sources":["../../src/cli/lib.ts"],"sourcesContent":["// CLI API exports for programmatic usage\nimport { registerTsHook } from \"./shared/register-ts-hook\";\n\nawait registerTsHook(new URL(\"./ts-hook.mjs\", import.meta.url));\n\n// CLI foundation shared with plugins. Plugins resolve this package at runtime,\n// so logger state (--json / --verbose) set through these args reaches the SDK\n// code paths they call into. The @politty/zod surface is re-exported for the\n// same reason: arg metadata (aliases, env bindings, effects) lives in a\n// @politty/zod module-level registry, so registration and parsing must use\n// one @politty/zod copy.\nexport { arg, defineCommand, runCommand, runMain } from \"@politty/zod\";\nexport { logger, styles, type LogMode, type LogOptions, type OutOptions } from \"./shared/logger\";\nexport { defineAppCommand } from \"./shared/command\";\nexport { logBetaWarning } from \"./shared/beta\";\nexport { prompt } from \"./shared/prompt\";\nexport { workspaceNameSchema } from \"./shared/workspace-name\";\nexport {\n createCommonArgs,\n workspaceArgs,\n configArg,\n confirmationArgs,\n deploymentArgs,\n loadEnvFiles,\n type CommonArgsType,\n} from \"./shared/args\";\nexport { deploy, deploy as apply } from \"./commands/deploy/deploy\";\nexport type { DeployOptions, DeployOptions as ApplyOptions } from \"./commands/deploy/deploy\";\nexport type { BundledScripts } from \"./commands/deploy/function-registry\";\nexport { ensureConfigId } from \"./commands/deploy/config-id-injector\";\nexport {\n TAILOR_LOCK_FILENAME,\n TAILOR_LOCK_VERSION,\n appIdLockKey,\n findAppIdLock,\n parseAppIds,\n planAppIds,\n removeAdoptedConfigIds,\n resolveAppId,\n type AppIdEntry,\n type AppIdEntryInput,\n type AppIdLock,\n type AppIdPlan,\n type AppIdPlanMode,\n type AppIds,\n type PlanAppIdsParams,\n type RemoveAdoptedConfigIdsResult,\n type ResolveAppIdParams,\n} from \"./commands/deploy/app-id-lock\";\nexport { generate } from \"./commands/generate/service\";\nexport type { GenerateOptions } from \"./commands/generate/options\";\nexport { loadConfig, type LoadedConfig } from \"./shared/config-loader\";\nexport { extractOwnedNamespaces } from \"./shared/config\";\nexport { errorToJson, serializeError, type ErrorToJsonOptions } from \"./shared/error-json\";\nexport { annotateTerminalError, withSourceLocation } from \"./shared/github-actions\";\nexport type { ErrorSourceLocation } from \"./shared/error-diagnostics\";\nexport { generateUserTypes } from \"./shared/type-generator\";\nexport {\n loadTailorDBNamespaces,\n type TailorDBNamespaceSelector,\n type LoadTailorDBNamespacesOptions,\n type LoadedTailorDBNamespaces,\n} from \"./shared/tailordb-namespaces\";\nexport {\n deployStaticWebsite,\n type DeployResult as StaticWebsiteDeployResult,\n} from \"./commands/staticwebsite/deploy\";\nexport { assertWritable } from \"./shared/readonly-guard\";\nexport { isPluginGeneratedTable } from \"#/parser/service/tailordb/type-source\";\nexport type {\n GeneratorResult,\n Plugin,\n PluginAttachment,\n TailorDBNamespaceData,\n} from \"#/plugin/types\";\nexport type {\n TailorDBType,\n TypeSourceInfoEntry,\n ParsedField,\n OperatorFieldConfig,\n PluginGeneratedTableSource,\n} from \"#/parser/service/tailordb/types\";\nexport type { Resolver } from \"#/types/resolver.generated\";\nexport type { Executor } from \"#/types/executor.generated\";\n\nexport {\n show,\n type ShowOptions,\n type ApplicationInfo,\n type ShowInfo,\n type AIGatewayInfo,\n type ShowStaticWebsiteInfo,\n type ShowOAuth2ClientInfo,\n} from \"./commands/show\";\nexport { remove, type RemoveOptions } from \"./commands/remove\";\nexport { createWorkspace, type CreateWorkspaceOptions } from \"./commands/workspace/create\";\nexport { listWorkspaces, type ListWorkspacesOptions } from \"./commands/workspace/list\";\nexport { deleteWorkspace, type DeleteWorkspaceOptions } from \"./commands/workspace/delete\";\nexport { getWorkspace, type GetWorkspaceOptions } from \"./commands/workspace/get\";\nexport { restoreWorkspace, type RestoreWorkspaceOptions } from \"./commands/workspace/restore\";\nexport type { WorkspaceInfo, WorkspaceDetails } from \"./commands/workspace/transform\";\nexport { listUsers, type ListUsersOptions } from \"./commands/workspace/user/list\";\nexport { inviteUser, type InviteUserOptions } from \"./commands/workspace/user/invite\";\nexport { updateUser, type UpdateUserOptions } from \"./commands/workspace/user/update\";\nexport { removeUser, type RemoveUserOptions } from \"./commands/workspace/user/remove\";\nexport type { UserInfo } from \"./commands/workspace/user/transform\";\nexport { listApps, type ListAppsOptions } from \"./commands/workspace/app/list\";\nexport {\n getAppHealth,\n type HealthOptions as GetAppHealthOptions,\n} from \"./commands/workspace/app/health\";\nexport type { AppInfo, AppHealthInfo } from \"./commands/workspace/app/transform\";\nexport { getFunctionRegistry, type GetFunctionRegistryOptions } from \"./commands/function/get\";\nexport {\n listFunctionRegistries,\n type ListFunctionRegistriesOptions,\n} from \"./commands/function/list\";\nexport type { FunctionRegistryInfo } from \"./commands/function/transform\";\nexport {\n listMachineUsers,\n type ListMachineUsersOptions,\n type MachineUserInfo,\n} from \"./commands/machineuser/list\";\nexport {\n getMachineUserToken,\n type GetMachineUserTokenOptions,\n type MachineUserTokenInfo,\n} from \"./commands/machineuser/token\";\nexport { getOAuth2Client, type GetOAuth2ClientOptions } from \"./commands/oauth2client/get\";\nexport { listOAuth2Clients, type ListOAuth2ClientsOptions } from \"./commands/oauth2client/list\";\nexport type { OAuth2ClientInfo, OAuth2ClientCredentials } from \"./commands/oauth2client/transform\";\nexport { listWorkflows, type ListWorkflowsOptions } from \"./commands/workflow/list\";\nexport { getWorkflow, type GetWorkflowTypedOptions } from \"./commands/workflow/get\";\nexport type { MachineUserName } from \"@tailor-platform/sdk\";\nexport {\n startWorkflow,\n type StartWorkflowTypedOptions,\n type StartWorkflowResultWithWait,\n type WaitOptions,\n} from \"./commands/workflow/start\";\nexport {\n listWorkflowExecutions,\n getWorkflowExecution,\n type ListWorkflowExecutionsTypedOptions,\n type GetWorkflowExecutionOptions,\n type GetWorkflowExecutionResult,\n type WorkflowExecutionWaitInfo,\n} from \"./commands/workflow/executions\";\nexport { waitWorkflowExecution, type WorkflowWaitOutput } from \"./commands/workflow/wait\";\nexport type { WaitWorkflowExecutionOptions, WorkflowWaitResult } from \"./commands/workflow/waiter\";\nexport {\n resumeWorkflow,\n type ResumeWorkflowOptions,\n type ResumeWorkflowResultWithWait,\n} from \"./commands/workflow/resume\";\nexport type {\n WorkflowListInfo,\n WorkflowInfo,\n WorkflowExecutionInfo,\n WorkflowJobExecutionInfo,\n} from \"./commands/workflow/transform\";\nexport type { FunctionLogEntryInfo } from \"./shared/function-execution\";\nexport {\n triggerExecutor,\n type TriggerExecutorTypedOptions,\n type TriggerExecutorResult,\n} from \"./commands/executor/trigger\";\nexport {\n listExecutorJobs,\n getExecutorJob,\n getExecutorWaitFailureMessage,\n watchExecutorJob,\n type ListExecutorJobsTypedOptions,\n type GetExecutorJobTypedOptions,\n type WatchExecutorJobTypedOptions,\n type ExecutorJobDetailInfo,\n type WatchExecutorJobResult,\n} from \"./commands/executor/jobs\";\nexport { listExecutors, type ListExecutorsOptions } from \"./commands/executor/list\";\nexport { getExecutor, type GetExecutorTypedOptions } from \"./commands/executor/get\";\nexport {\n listWebhookExecutors,\n type ListWebhookExecutorsOptions,\n type WebhookExecutorInfo,\n} from \"./commands/executor/webhook\";\nexport type {\n ExecutorJobListInfo,\n ExecutorJobInfo,\n ExecutorJobAttemptInfo,\n ExecutorListInfo,\n ExecutorInfo,\n} from \"./commands/executor/transform\";\nexport { listOrganizations, type ListOrganizationsOptions } from \"./commands/organization/list\";\nexport { getOrganization, type GetOrganizationOptions } from \"./commands/organization/get\";\nexport { updateOrganization, type UpdateOrganizationOptions } from \"./commands/organization/update\";\nexport { organizationTree, type OrganizationTreeOptions } from \"./commands/organization/tree\";\nexport type {\n UserOrganizationInfo,\n OrganizationInfo,\n FolderListInfo,\n FolderInfo,\n} from \"./commands/organization/transform\";\nexport { listFolders, type ListFoldersOptions } from \"./commands/organization/folder/list\";\nexport { getFolder, type GetFolderOptions } from \"./commands/organization/folder/get\";\nexport { createFolder, type CreateFolderOptions } from \"./commands/organization/folder/create\";\nexport { updateFolder, type UpdateFolderOptions } from \"./commands/organization/folder/update\";\nexport { deleteFolder, type DeleteFolderOptions } from \"./commands/organization/folder/delete\";\nexport { loadAccessToken, loadWorkspaceId } from \"./shared/context\";\nexport { apiCall, type ApiCallOptions, type ApiCallResult } from \"./commands/api\";\nexport { query } from \"./query\";\nexport { truncate, type TruncateOptions } from \"./commands/tailordb/truncate\";\n\n// Migration exports\nexport {\n generate as migrateGenerate,\n type GenerateOptions as MigrateGenerateOptions,\n} from \"./commands/tailordb/migrate/generate\";\nexport {\n createSnapshotFromLocalTypes,\n reconstructSnapshotFromMigrations,\n compareSnapshots,\n getNextMigrationNumber,\n getLatestMigrationNumber,\n getMigrationFiles,\n compareLocalTypesWithSnapshot,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport {\n getNamespacesWithMigrations,\n type NamespaceWithMigrations,\n} from \"./commands/tailordb/migrate/config\";\nexport {\n hasChanges,\n formatMigrationDiff,\n formatDiffSummary,\n type MigrationDiff,\n type BreakingChangeInfo,\n} from \"./commands/tailordb/migrate/diff-calculator\";\nexport {\n SCHEMA_FILE_NAME,\n DIFF_FILE_NAME,\n MIGRATE_FILE_NAME,\n MIGRATE_TEST_FILE_NAME,\n MIGRATE_PGLITE_TEST_FILE_NAME,\n DB_TYPES_FILE_NAME,\n DB_PGLITE_SCHEMA_FILE_NAME,\n INITIAL_SCHEMA_NUMBER,\n getMigrationDirPath,\n getMigrationFilePath,\n type SchemaSnapshot,\n type NormalizedSchemaSnapshot,\n type TailorDBSnapshotType,\n type SnapshotFieldConfig,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport { MIGRATION_LABEL_KEY } from \"./commands/tailordb/migrate/types\";\n\n// Seed exports\nexport {\n loadSeedContext,\n type LoadSeedContextOptions,\n type SeedContext,\n type SeedIdpUserContext,\n type SeedNamespaceConfig,\n} from \"./shared/seed-context\";\nexport {\n chunkSeedData,\n type SeedChunk,\n type ChunkSeedDataOptions,\n type SeedData,\n} from \"./shared/seed-chunker\";\nexport {\n bundleSeedScript,\n bundleSeedDumpScript,\n type SeedBundleResult,\n type SeedDumpBundleResult,\n} from \"./commands/generate/seed/bundler\";\nexport {\n bundleMigrationScript,\n type MigrationBundleResult,\n} from \"./commands/tailordb/migrate/bundler\";\nexport {\n executeScript,\n waitForExecution,\n type ScriptExecutionOptions,\n type ScriptExecutionResult,\n type ScriptInvoker,\n type ExecutionWaitResult,\n} from \"./shared/script-executor\";\nexport { initOperatorClient, type OperatorClient } from \"./shared/client\";\nexport type { AuthInvoker } from \"@tailor-platform/tailor-proto/auth_resource_pb\";\n"],"mappings":"wqCAGA,MAAMgG,GAAe,IAAI,IAAI,gBAAiB,YAAY,GAAG,CAAC"}
1
+ {"version":3,"file":"lib.mjs","names":["initOperatorClient","logger","styles","listFolders","listWorkflows","removeAdoptedConfigIds","INITIAL_SCHEMA_NUMBER","getExecutorWaitFailureMessage","remove","getMigrationFilePath","listWorkflowExecutions","getAppHealth","createSnapshotFromLocalTypes","listWebhookExecutors","findAppIdLock","DB_PGLITE_SCHEMA_FILE_NAME","waitWorkflowExecution","appIdLockKey","reconstructSnapshotFromMigrations","triggerExecutor","deployStaticWebsite","startWorkflow","createCommonArgs","MIGRATION_LABEL_KEY","loadTailorDBNamespaces","getNextMigrationNumber","getExecutor","SCHEMA_FILE_NAME","compareLocalTypesWithSnapshot","executeScript","deploymentArgs","logBetaWarning","getWorkflow","ensureConfigId","MIGRATE_PGLITE_TEST_FILE_NAME","listExecutorJobs","generate$1","generateUserTypes","MIGRATE_TEST_FILE_NAME","watchExecutorJob","resumeWorkflow","loadWorkspaceId","parseAppIds","DB_TYPES_FILE_NAME","listExecutors","deploy","show","getLatestMigrationNumber","getFunctionRegistry","TAILOR_LOCK_VERSION","updateOrganization","configArg","loadSeedContext","getMigrationFiles","organizationTree","confirmationArgs","loadEnvFiles","bundleSeedDumpScript","getOrganization","compareSnapshots","waitForExecution","updateFolder","bundleSeedScript","getWorkspace","createFolder","WORKSPACE_NAME_MAX_LENGTH","listFunctionRegistries","bundleMigrationScript","listUsers","prompt","formatDiffSummary","loadConfig","getNamespacesWithMigrations","serializeError","restoreWorkspace","assertWritable","errorToJson","query","truncate","resolveAppId","MIGRATE_FILE_NAME","planAppIds","DIFF_FILE_NAME","getExecutorJob","removeUser","getOAuth2Client","apiCall","generate","annotateTerminalError","hasChanges","workspaceArgs","createWorkspace","inviteUser","listMachineUsers","listOrganizations","chunkSeedData","withSourceLocation","listWorkspaces","deleteFolder","updateUser","listOAuth2Clients","registerTsHook","formatMigrationDiff","getFolder","getMachineUserToken","extractOwnedNamespaces","TAILOR_LOCK_FILENAME","listApps","loadAccessToken","workspaceNameSchema","deleteWorkspace","defineAppCommand","getMigrationDirPath","getWorkflowExecution","isPluginGeneratedTable","arg","defineCommand","runCommand","runMain"],"sources":["../../src/cli/lib.ts"],"sourcesContent":["// CLI API exports for programmatic usage\nimport { registerTsHook } from \"./shared/register-ts-hook\";\n\nawait registerTsHook(new URL(\"./ts-hook.mjs\", import.meta.url));\n\n// CLI foundation shared with plugins. Plugins resolve this package at runtime,\n// so logger state (--json / --verbose) set through these args reaches the SDK\n// code paths they call into. The @politty/zod surface is re-exported for the\n// same reason: arg metadata (aliases, env bindings, effects) lives in a\n// @politty/zod module-level registry, so registration and parsing must use\n// one @politty/zod copy.\nexport { arg, defineCommand, runCommand, runMain } from \"@politty/zod\";\nexport { logger, styles, type LogMode, type LogOptions, type OutOptions } from \"./shared/logger\";\nexport { defineAppCommand } from \"./shared/command\";\nexport { logBetaWarning } from \"./shared/beta\";\nexport { prompt } from \"./shared/prompt\";\nexport { WORKSPACE_NAME_MAX_LENGTH, workspaceNameSchema } from \"./shared/workspace-name\";\nexport {\n createCommonArgs,\n workspaceArgs,\n configArg,\n confirmationArgs,\n deploymentArgs,\n loadEnvFiles,\n type CommonArgsType,\n} from \"./shared/args\";\nexport { deploy, deploy as apply } from \"./commands/deploy/deploy\";\nexport type { DeployOptions, DeployOptions as ApplyOptions } from \"./commands/deploy/deploy\";\nexport type { BundledScripts } from \"./commands/deploy/function-registry\";\nexport { ensureConfigId } from \"./commands/deploy/config-id-injector\";\nexport {\n TAILOR_LOCK_FILENAME,\n TAILOR_LOCK_VERSION,\n appIdLockKey,\n findAppIdLock,\n parseAppIds,\n planAppIds,\n removeAdoptedConfigIds,\n resolveAppId,\n type AppIdEntry,\n type AppIdEntryInput,\n type AppIdLock,\n type AppIdPlan,\n type AppIdPlanMode,\n type AppIds,\n type PlanAppIdsParams,\n type RemoveAdoptedConfigIdsResult,\n type ResolveAppIdParams,\n} from \"./commands/deploy/app-id-lock\";\nexport { generate } from \"./commands/generate/service\";\nexport type { GenerateOptions } from \"./commands/generate/options\";\nexport { loadConfig, type LoadedConfig } from \"./shared/config-loader\";\nexport { extractOwnedNamespaces } from \"./shared/config\";\nexport { errorToJson, serializeError, type ErrorToJsonOptions } from \"./shared/error-json\";\nexport { annotateTerminalError, withSourceLocation } from \"./shared/github-actions\";\nexport type { ErrorSourceLocation } from \"./shared/error-diagnostics\";\nexport { generateUserTypes } from \"./shared/type-generator\";\nexport {\n loadTailorDBNamespaces,\n type TailorDBNamespaceSelector,\n type LoadTailorDBNamespacesOptions,\n type LoadedTailorDBNamespaces,\n} from \"./shared/tailordb-namespaces\";\nexport {\n deployStaticWebsite,\n type DeployResult as StaticWebsiteDeployResult,\n} from \"./commands/staticwebsite/deploy\";\nexport { assertWritable } from \"./shared/readonly-guard\";\nexport { isPluginGeneratedTable } from \"#/parser/service/tailordb/type-source\";\nexport type {\n GeneratorResult,\n Plugin,\n PluginAttachment,\n TailorDBNamespaceData,\n} from \"#/plugin/types\";\nexport type {\n TailorDBType,\n TypeSourceInfoEntry,\n ParsedField,\n OperatorFieldConfig,\n PluginGeneratedTableSource,\n} from \"#/parser/service/tailordb/types\";\nexport type { Resolver } from \"#/types/resolver.generated\";\nexport type { Executor } from \"#/types/executor.generated\";\n\nexport {\n show,\n type ShowOptions,\n type ApplicationInfo,\n type ShowInfo,\n type AIGatewayInfo,\n type ShowStaticWebsiteInfo,\n type ShowOAuth2ClientInfo,\n} from \"./commands/show\";\nexport { remove, type RemoveOptions } from \"./commands/remove\";\nexport { createWorkspace, type CreateWorkspaceOptions } from \"./commands/workspace/create\";\nexport { listWorkspaces, type ListWorkspacesOptions } from \"./commands/workspace/list\";\nexport { deleteWorkspace, type DeleteWorkspaceOptions } from \"./commands/workspace/delete\";\nexport { getWorkspace, type GetWorkspaceOptions } from \"./commands/workspace/get\";\nexport { restoreWorkspace, type RestoreWorkspaceOptions } from \"./commands/workspace/restore\";\nexport type { WorkspaceInfo, WorkspaceDetails } from \"./commands/workspace/transform\";\nexport { listUsers, type ListUsersOptions } from \"./commands/workspace/user/list\";\nexport { inviteUser, type InviteUserOptions } from \"./commands/workspace/user/invite\";\nexport { updateUser, type UpdateUserOptions } from \"./commands/workspace/user/update\";\nexport { removeUser, type RemoveUserOptions } from \"./commands/workspace/user/remove\";\nexport type { UserInfo } from \"./commands/workspace/user/transform\";\nexport { listApps, type ListAppsOptions } from \"./commands/workspace/app/list\";\nexport {\n getAppHealth,\n type HealthOptions as GetAppHealthOptions,\n} from \"./commands/workspace/app/health\";\nexport type { AppInfo, AppHealthInfo } from \"./commands/workspace/app/transform\";\nexport { getFunctionRegistry, type GetFunctionRegistryOptions } from \"./commands/function/get\";\nexport {\n listFunctionRegistries,\n type ListFunctionRegistriesOptions,\n} from \"./commands/function/list\";\nexport type { FunctionRegistryInfo } from \"./commands/function/transform\";\nexport {\n listMachineUsers,\n type ListMachineUsersOptions,\n type MachineUserInfo,\n} from \"./commands/machineuser/list\";\nexport {\n getMachineUserToken,\n type GetMachineUserTokenOptions,\n type MachineUserTokenInfo,\n} from \"./commands/machineuser/token\";\nexport { getOAuth2Client, type GetOAuth2ClientOptions } from \"./commands/oauth2client/get\";\nexport { listOAuth2Clients, type ListOAuth2ClientsOptions } from \"./commands/oauth2client/list\";\nexport type { OAuth2ClientInfo, OAuth2ClientCredentials } from \"./commands/oauth2client/transform\";\nexport { listWorkflows, type ListWorkflowsOptions } from \"./commands/workflow/list\";\nexport { getWorkflow, type GetWorkflowTypedOptions } from \"./commands/workflow/get\";\nexport type { MachineUserName } from \"@tailor-platform/sdk\";\nexport {\n startWorkflow,\n type StartWorkflowTypedOptions,\n type StartWorkflowResultWithWait,\n type WaitOptions,\n} from \"./commands/workflow/start\";\nexport {\n listWorkflowExecutions,\n getWorkflowExecution,\n type ListWorkflowExecutionsTypedOptions,\n type GetWorkflowExecutionOptions,\n type GetWorkflowExecutionResult,\n type WorkflowExecutionWaitInfo,\n} from \"./commands/workflow/executions\";\nexport { waitWorkflowExecution, type WorkflowWaitOutput } from \"./commands/workflow/wait\";\nexport type { WaitWorkflowExecutionOptions, WorkflowWaitResult } from \"./commands/workflow/waiter\";\nexport {\n resumeWorkflow,\n type ResumeWorkflowOptions,\n type ResumeWorkflowResultWithWait,\n} from \"./commands/workflow/resume\";\nexport type {\n WorkflowListInfo,\n WorkflowInfo,\n WorkflowExecutionInfo,\n WorkflowJobExecutionInfo,\n} from \"./commands/workflow/transform\";\nexport type { FunctionLogEntryInfo } from \"./shared/function-execution\";\nexport {\n triggerExecutor,\n type TriggerExecutorTypedOptions,\n type TriggerExecutorResult,\n} from \"./commands/executor/trigger\";\nexport {\n listExecutorJobs,\n getExecutorJob,\n getExecutorWaitFailureMessage,\n watchExecutorJob,\n type ListExecutorJobsTypedOptions,\n type GetExecutorJobTypedOptions,\n type WatchExecutorJobTypedOptions,\n type ExecutorJobDetailInfo,\n type WatchExecutorJobResult,\n} from \"./commands/executor/jobs\";\nexport { listExecutors, type ListExecutorsOptions } from \"./commands/executor/list\";\nexport { getExecutor, type GetExecutorTypedOptions } from \"./commands/executor/get\";\nexport {\n listWebhookExecutors,\n type ListWebhookExecutorsOptions,\n type WebhookExecutorInfo,\n} from \"./commands/executor/webhook\";\nexport type {\n ExecutorJobListInfo,\n ExecutorJobInfo,\n ExecutorJobAttemptInfo,\n ExecutorListInfo,\n ExecutorInfo,\n} from \"./commands/executor/transform\";\nexport { listOrganizations, type ListOrganizationsOptions } from \"./commands/organization/list\";\nexport { getOrganization, type GetOrganizationOptions } from \"./commands/organization/get\";\nexport { updateOrganization, type UpdateOrganizationOptions } from \"./commands/organization/update\";\nexport { organizationTree, type OrganizationTreeOptions } from \"./commands/organization/tree\";\nexport type {\n UserOrganizationInfo,\n OrganizationInfo,\n FolderListInfo,\n FolderInfo,\n} from \"./commands/organization/transform\";\nexport { listFolders, type ListFoldersOptions } from \"./commands/organization/folder/list\";\nexport { getFolder, type GetFolderOptions } from \"./commands/organization/folder/get\";\nexport { createFolder, type CreateFolderOptions } from \"./commands/organization/folder/create\";\nexport { updateFolder, type UpdateFolderOptions } from \"./commands/organization/folder/update\";\nexport { deleteFolder, type DeleteFolderOptions } from \"./commands/organization/folder/delete\";\nexport { loadAccessToken, loadWorkspaceId } from \"./shared/context\";\nexport { apiCall, type ApiCallOptions, type ApiCallResult } from \"./commands/api\";\nexport { query } from \"./query\";\nexport { truncate, type TruncateOptions } from \"./commands/tailordb/truncate\";\n\n// Migration exports\nexport {\n generate as migrateGenerate,\n type GenerateOptions as MigrateGenerateOptions,\n} from \"./commands/tailordb/migrate/generate\";\nexport {\n createSnapshotFromLocalTypes,\n reconstructSnapshotFromMigrations,\n compareSnapshots,\n getNextMigrationNumber,\n getLatestMigrationNumber,\n getMigrationFiles,\n compareLocalTypesWithSnapshot,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport {\n getNamespacesWithMigrations,\n type NamespaceWithMigrations,\n} from \"./commands/tailordb/migrate/config\";\nexport {\n hasChanges,\n formatMigrationDiff,\n formatDiffSummary,\n type MigrationDiff,\n type BreakingChangeInfo,\n} from \"./commands/tailordb/migrate/diff-calculator\";\nexport {\n SCHEMA_FILE_NAME,\n DIFF_FILE_NAME,\n MIGRATE_FILE_NAME,\n MIGRATE_TEST_FILE_NAME,\n MIGRATE_PGLITE_TEST_FILE_NAME,\n DB_TYPES_FILE_NAME,\n DB_PGLITE_SCHEMA_FILE_NAME,\n INITIAL_SCHEMA_NUMBER,\n getMigrationDirPath,\n getMigrationFilePath,\n type SchemaSnapshot,\n type NormalizedSchemaSnapshot,\n type TailorDBSnapshotType,\n type SnapshotFieldConfig,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport { MIGRATION_LABEL_KEY } from \"./commands/tailordb/migrate/types\";\n\n// Seed exports\nexport {\n loadSeedContext,\n type LoadSeedContextOptions,\n type SeedContext,\n type SeedIdpUserContext,\n type SeedNamespaceConfig,\n} from \"./shared/seed-context\";\nexport {\n chunkSeedData,\n type SeedChunk,\n type ChunkSeedDataOptions,\n type SeedData,\n} from \"./shared/seed-chunker\";\nexport {\n bundleSeedScript,\n bundleSeedDumpScript,\n type SeedBundleResult,\n type SeedDumpBundleResult,\n} from \"./commands/generate/seed/bundler\";\nexport {\n bundleMigrationScript,\n type MigrationBundleResult,\n} from \"./commands/tailordb/migrate/bundler\";\nexport {\n executeScript,\n waitForExecution,\n type ScriptExecutionOptions,\n type ScriptExecutionResult,\n type ScriptInvoker,\n type ExecutionWaitResult,\n} from \"./shared/script-executor\";\nexport { initOperatorClient, type OperatorClient } from \"./shared/client\";\nexport type { AuthInvoker } from \"@tailor-platform/tailor-proto/auth_resource_pb\";\n"],"mappings":"krCAGA,MAAMqG,GAAe,IAAI,IAAI,gBAAiB,YAAY,GAAG,CAAC"}
@@ -13,10 +13,12 @@ export declare const mainCommand: {
13
13
  setup?: ((context: import("@politty/zod").SetupContext<Record<string, never> & {
14
14
  $source?: (name: string) => import("@politty/zod").ArgSource;
15
15
  $invocation?: import("@politty/zod").RunInvocation;
16
+ $agent?: import("@politty/zod").AgentInfo | undefined;
16
17
  }>) => void | Promise<void>) | undefined;
17
18
  cleanup?: ((context: import("@politty/zod").CleanupContext<Record<string, never> & {
18
19
  $source?: (name: string) => import("@politty/zod").ArgSource;
19
20
  $invocation?: import("@politty/zod").RunInvocation;
21
+ $agent?: import("@politty/zod").AgentInfo | undefined;
20
22
  }>) => void | Promise<void>) | undefined;
21
23
  notes?: string | undefined;
22
24
  examples?: import("@politty/zod").Example[] | undefined;