@tailor-platform/sdk 2.21.0 → 2.23.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 (119) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/agent-skills/tailor/SKILL.md +3 -1
  3. package/dist/aigateway-DsWDjzk4.mjs.map +1 -1
  4. package/dist/application-BtZ8hmx9.mjs +1 -0
  5. package/dist/{application-D4913edS.mjs → application-m2G91kKI.mjs} +29 -29
  6. package/dist/application-m2G91kKI.mjs.map +1 -0
  7. package/dist/assert-WeXvmG4j.mjs.map +1 -1
  8. package/dist/authconnection-CynFBIv8.mjs.map +1 -1
  9. package/dist/brand-C8nMKhJC.mjs.map +1 -1
  10. package/dist/cli/commands/deploy/app-id-lock.d.mts +31 -0
  11. package/dist/cli/lib.d.mts +2 -2
  12. package/dist/cli/lib.mjs +1 -1
  13. package/dist/cli/lib.mjs.map +1 -1
  14. package/dist/cli/main.mjs +41 -41
  15. package/dist/cli/main.mjs.map +1 -1
  16. package/dist/cli/shared/client.d.mts +17 -2
  17. package/dist/cli/shared/logger.d.mts +9 -0
  18. package/dist/cli/shared/tailordb-namespaces.d.mts +1 -1
  19. package/dist/completion/zsh-worker.zsh +13 -7
  20. package/dist/configure/config/index.d.mts +2 -0
  21. package/dist/configure/index.mjs.map +1 -1
  22. package/dist/context-D0QjfxzD.mjs.map +1 -1
  23. package/dist/crashreport-CBaRJl5h.mjs +1 -0
  24. package/dist/{crashreport-BAz-ph5O.mjs → crashreport-DFpRn-LS.mjs} +4 -4
  25. package/dist/crashreport-DFpRn-LS.mjs.map +1 -0
  26. package/dist/date-Dri6Yas-.mjs.map +1 -1
  27. package/dist/errors-CpvSChyL.mjs +7 -0
  28. package/dist/errors-CpvSChyL.mjs.map +1 -0
  29. package/dist/es-builtins-SfvXRVoG.mjs.map +1 -1
  30. package/dist/field-parse-DhnFs9WG.mjs.map +1 -1
  31. package/dist/file-DKBOj5q4.mjs.map +1 -1
  32. package/dist/globals-BCmGX05J.mjs.map +1 -1
  33. package/dist/guards-yDXyKC9F.mjs +2 -0
  34. package/dist/guards-yDXyKC9F.mjs.map +1 -0
  35. package/dist/iconv-DlFMt2gW.mjs.map +1 -1
  36. package/dist/idp-G_ojPBB5.mjs.map +1 -1
  37. package/dist/interceptor-DQg3cR_9.mjs.map +1 -1
  38. package/dist/kysely/index.mjs.map +1 -1
  39. package/dist/kysely-type-C-iyFFH7.mjs.map +1 -1
  40. package/dist/logger-DP2BjQ93.mjs.map +1 -1
  41. package/dist/logger-Db-YRTwK.mjs +9 -0
  42. package/dist/logger-Db-YRTwK.mjs.map +1 -0
  43. package/dist/{manager-C0dE7pd0.mjs → manager-8-JOvuLl.mjs} +2 -2
  44. package/dist/manager-8-JOvuLl.mjs.map +1 -0
  45. package/dist/multiline-EyzjEwn9.mjs.map +1 -1
  46. package/dist/node-builtins-DYfhPBnz.mjs.map +1 -1
  47. package/dist/package-json-C690ceex.mjs.map +1 -1
  48. package/dist/platform-serialize-DkiTdHOt.mjs.map +1 -1
  49. package/dist/plugin/builtin/enum-constants/index.mjs.map +1 -1
  50. package/dist/plugin/builtin/file-utils/index.mjs.map +1 -1
  51. package/dist/plugin/index.mjs +1 -1
  52. package/dist/plugin/index.mjs.map +1 -1
  53. package/dist/register-ts-hook-ztnEFW6n.mjs +922 -0
  54. package/dist/register-ts-hook-ztnEFW6n.mjs.map +1 -0
  55. package/dist/registry-BijIDRVA.mjs.map +1 -1
  56. package/dist/repl-editor-DGJBfIt1.mjs.map +1 -1
  57. package/dist/schema-CRtAmDcl.mjs.map +1 -1
  58. package/dist/secret-file-C9wp_FCX.mjs.map +1 -1
  59. package/dist/secretmanager-5olfnI1b.mjs.map +1 -1
  60. package/dist/secretmanager-vHQoXdQz.mjs.map +1 -1
  61. package/dist/seed/index.mjs +7 -6
  62. package/dist/seed/index.mjs.map +1 -1
  63. package/dist/seed-C3P_T_Eh.mjs.map +1 -1
  64. package/dist/service-Bx-7Lz06.mjs +1 -0
  65. package/dist/{service-BrGSi2IQ.mjs → service-CL1Bp4It.mjs} +3 -3
  66. package/dist/service-CL1Bp4It.mjs.map +1 -0
  67. package/dist/{service-8xznUrPU.mjs → service-DFmt9UJP.mjs} +2 -2
  68. package/dist/service-DFmt9UJP.mjs.map +1 -0
  69. package/dist/service_pb-ZClWtj1X.mjs +2 -0
  70. package/dist/service_pb-ZClWtj1X.mjs.map +1 -0
  71. package/dist/service_pb-dB3RrGeh.mjs +1 -0
  72. package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +83 -1
  73. package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +7 -1
  74. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +79 -7
  75. package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +40 -1
  76. package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +119 -2
  77. package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +7 -0
  78. package/dist/tailordb-ddl-DqInYupv.mjs.map +1 -1
  79. package/dist/telemetry-Bklv9kQY.mjs.map +1 -1
  80. package/dist/type-source--ZNcV8RJ.mjs.map +1 -1
  81. package/dist/user-agent-vdHYF3QL.mjs.map +1 -1
  82. package/dist/utils/test/index.mjs.map +1 -1
  83. package/dist/vitest/environment.mjs.map +1 -1
  84. package/dist/vitest/index.mjs.map +1 -1
  85. package/dist/vitest/mocks/file.d.mts +1 -1
  86. package/dist/vitest/setup.mjs.map +1 -1
  87. package/dist/wait-point-invoker-eiP-IIux.mjs.map +1 -1
  88. package/dist/wait-point-registry-B-ESkTZX.mjs.map +1 -1
  89. package/dist/workflow-Cs9ISw6j.mjs.map +1 -1
  90. package/dist/{workspace_resource_pb-D2njwgsE.mjs → workspace_resource_pb-CxR_6fyN.mjs} +2 -2
  91. package/dist/workspace_resource_pb-CxR_6fyN.mjs.map +1 -0
  92. package/docs/cli/application.md +23 -5
  93. package/docs/cli/function.md +2 -2
  94. package/docs/cli-reference.md +22 -12
  95. package/docs/configuration.md +1 -1
  96. package/docs/github-actions.md +90 -24
  97. package/docs/migration/v2.md +70 -5
  98. package/docs/plugin/index.md +1 -1
  99. package/package.json +10 -10
  100. package/dist/application-D4913edS.mjs.map +0 -1
  101. package/dist/application-DBHaxmJE.mjs +0 -1
  102. package/dist/crashreport-BAz-ph5O.mjs.map +0 -1
  103. package/dist/crashreport-BfOkOFgc.mjs +0 -1
  104. package/dist/errors-sNtg2Mv3.mjs +0 -7
  105. package/dist/errors-sNtg2Mv3.mjs.map +0 -1
  106. package/dist/guards-DsX7dJCP.mjs +0 -2
  107. package/dist/guards-DsX7dJCP.mjs.map +0 -1
  108. package/dist/logger-Cp5U2IDI.mjs +0 -9
  109. package/dist/logger-Cp5U2IDI.mjs.map +0 -1
  110. package/dist/manager-C0dE7pd0.mjs.map +0 -1
  111. package/dist/register-ts-hook-YtsAGTMD.mjs +0 -921
  112. package/dist/register-ts-hook-YtsAGTMD.mjs.map +0 -1
  113. package/dist/service-8xznUrPU.mjs.map +0 -1
  114. package/dist/service-BrGSi2IQ.mjs.map +0 -1
  115. package/dist/service-DWMm-4Vm.mjs +0 -1
  116. package/dist/service_pb-DNskuJQC.mjs +0 -1
  117. package/dist/service_pb-y2GYIgfs.mjs +0 -2
  118. package/dist/service_pb-y2GYIgfs.mjs.map +0 -1
  119. package/dist/workspace_resource_pb-D2njwgsE.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"assert-WeXvmG4j.mjs","names":[],"sources":["../src/utils/assert.ts"],"sourcesContent":["export function assertDefined<T>(value: T, message: string): NonNullable<T> {\n if (value == null) {\n throw new Error(message);\n }\n return value;\n}\n"],"mappings":"AAAA,SAAgB,cAAiB,EAAU,EAAiC,CAC1E,GAAI,GAAS,KACX,MAAU,MAAM,CAAO,EAEzB,OAAO,CACT"}
1
+ {"version":3,"file":"assert-WeXvmG4j.mjs","names":["value","message"],"sources":["../src/utils/assert.ts"],"sourcesContent":["export function assertDefined<T>(value: T, message: string): NonNullable<T> {\n if (value == null) {\n throw new Error(message);\n }\n return value;\n}\n"],"mappings":"AAAA,SAAgB,cAAiB,EAAU,EAAiC,CAC1E,GAAIA,GAAS,KACX,MAAU,MAAMC,CAAO,EAEzB,OAAOD,CACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"authconnection-CynFBIv8.mjs","names":[],"sources":["../src/runtime/authconnection.ts"],"sourcesContent":["/**\n * Auth connection utilities.\n *\n * Thin typed wrapper around the platform-provided `tailor.authconnection` runtime API.\n * At runtime this delegates to `globalThis.tailor.authconnection`. Use\n * `mockAuthconnection` from `@tailor-platform/sdk/vitest` to mock in unit tests.\n *\n * `connectionName` is narrowed to the connection names defined in `defineAuth()`'s\n * `connections` once `tailor.d.ts` has been generated (via `tailor deploy`/`generate`).\n * @example\n * import { authconnection } from \"@tailor-platform/sdk/runtime\";\n *\n * const token = await authconnection.getConnectionToken(\"my-connection\");\n */\n\nimport type { AuthConnectionTokenResult } from \"#/configure/services/auth/types\";\n// Import from the public entry (not `#/configure/types/connection-name`) so this d.ts\n// references `@tailor-platform/sdk` externally instead of inlining the registry — a single\n// generated `declare module \"@tailor-platform/sdk\"` then narrows this entry too.\nimport type { ConnectionName } from \"@tailor-platform/sdk\";\n\n/**\n * Platform API surface for `tailor.authconnection`. Describes the shape the\n * platform runtime injects on `globalThis.tailor.authconnection`.\n */\nexport interface TailorAuthconnectionAPI {\n /**\n * Returns the access token for the given auth connection.\n * @param connectionName - Auth connection name as defined in tailor.config\n * @returns Token payload\n */\n getConnectionToken(connectionName: ConnectionName): Promise<AuthConnectionTokenResult>;\n}\n\nconst api = (): TailorAuthconnectionAPI =>\n (globalThis as unknown as { tailor: { authconnection: TailorAuthconnectionAPI } }).tailor\n .authconnection;\n\nconst getConnectionToken: TailorAuthconnectionAPI[\"getConnectionToken\"] = (...args) =>\n api().getConnectionToken(...args);\n\n/** Runtime wrapper namespace for `tailor.authconnection`. */\nexport const authconnection = { getConnectionToken } as const satisfies TailorAuthconnectionAPI;\n"],"mappings":"AAkCA,MAAM,QACH,WAAkF,OAChF,eAMQ,EAAiB,CAAE,oBAJ2C,GAAG,IAC5E,IAAI,CAAC,CAAC,mBAAmB,GAAG,CAAI,CAGiB"}
1
+ {"version":3,"file":"authconnection-CynFBIv8.mjs","names":["authconnection","args"],"sources":["../src/runtime/authconnection.ts"],"sourcesContent":["/**\n * Auth connection utilities.\n *\n * Thin typed wrapper around the platform-provided `tailor.authconnection` runtime API.\n * At runtime this delegates to `globalThis.tailor.authconnection`. Use\n * `mockAuthconnection` from `@tailor-platform/sdk/vitest` to mock in unit tests.\n *\n * `connectionName` is narrowed to the connection names defined in `defineAuth()`'s\n * `connections` once `tailor.d.ts` has been generated (via `tailor deploy`/`generate`).\n * @example\n * import { authconnection } from \"@tailor-platform/sdk/runtime\";\n *\n * const token = await authconnection.getConnectionToken(\"my-connection\");\n */\n\nimport type { AuthConnectionTokenResult } from \"#/configure/services/auth/types\";\n// Import from the public entry (not `#/configure/types/connection-name`) so this d.ts\n// references `@tailor-platform/sdk` externally instead of inlining the registry — a single\n// generated `declare module \"@tailor-platform/sdk\"` then narrows this entry too.\nimport type { ConnectionName } from \"@tailor-platform/sdk\";\n\n/**\n * Platform API surface for `tailor.authconnection`. Describes the shape the\n * platform runtime injects on `globalThis.tailor.authconnection`.\n */\nexport interface TailorAuthconnectionAPI {\n /**\n * Returns the access token for the given auth connection.\n * @param connectionName - Auth connection name as defined in tailor.config\n * @returns Token payload\n */\n getConnectionToken(connectionName: ConnectionName): Promise<AuthConnectionTokenResult>;\n}\n\nconst api = (): TailorAuthconnectionAPI =>\n (globalThis as unknown as { tailor: { authconnection: TailorAuthconnectionAPI } }).tailor\n .authconnection;\n\nconst getConnectionToken: TailorAuthconnectionAPI[\"getConnectionToken\"] = (...args) =>\n api().getConnectionToken(...args);\n\n/** Runtime wrapper namespace for `tailor.authconnection`. */\nexport const authconnection = { getConnectionToken } as const satisfies TailorAuthconnectionAPI;\n"],"mappings":"AAkCA,MAAM,QACH,WAAkF,OAChF,eAMQA,EAAiB,CAAE,oBAJ2C,GAAGC,IAC5E,IAAI,CAAC,CAAC,mBAAmB,GAAGA,CAAI,CAGiB"}
@@ -1 +1 @@
1
- {"version":3,"file":"brand-C8nMKhJC.mjs","names":[],"sources":["../src/utils/brand.ts"],"sourcesContent":["// Symbol.for ensures the same symbol is returned across different ESM module instances,\n// avoiding identity mismatches when multiple copies of the SDK are loaded.\nexport const SDK_BRAND: unique symbol = Symbol.for(\"tailor-platform/sdk\");\n\nexport type SdkBrandKind =\n | \"tailordb-type\"\n | \"resolver\"\n | \"executor\"\n | \"workflow\"\n | \"workflow-job\"\n | \"wait-point\"\n | \"execution-policy\"\n | \"http-adapter\";\n\n/**\n * Adds a non-enumerable SDK brand symbol to the given object (in-place).\n * The brand stores the kind so service loaders can distinguish between\n * different SDK object types (e.g. a type loader skips executors).\n * @param value - The object to brand\n * @param kind - The kind of SDK object\n * @returns The same object with the brand applied\n */\nexport function brandValue<T extends object>(value: T, kind: SdkBrandKind): T {\n Object.defineProperty(value, SDK_BRAND, {\n value: kind,\n enumerable: false,\n configurable: false,\n writable: false,\n });\n return value;\n}\n\n/**\n * Checks whether the given value has been branded by the SDK.\n * When kind is specified, only returns true if the brand matches that kind.\n * Accepts a single kind or an array of kinds for multi-kind matching.\n * @param value - The value to check\n * @param kind - Optional kind or kinds to match against\n * @returns True if the value has the SDK brand symbol (and matches kind if specified)\n */\nexport function isSdkBranded(\n value: unknown,\n kind?: SdkBrandKind | readonly SdkBrandKind[],\n): boolean {\n if (value === null || typeof value !== \"object\" || !(SDK_BRAND in value)) return false;\n const stored = (value as Record<symbol, unknown>)[SDK_BRAND];\n // No kind filter → any brand matches. Legacy `true` brand → matches any kind.\n return (\n kind === undefined ||\n stored === true ||\n (Array.isArray(kind) ? kind.includes(stored) : stored === kind)\n );\n}\n"],"mappings":"AAEA,MAAa,EAA2B,OAAO,IAAI,qBAAqB,EAoBxE,SAAgB,WAA6B,EAAU,EAAuB,CAO5E,OANA,OAAO,eAAe,EAAO,EAAW,CACtC,MAAO,EACP,WAAY,GACZ,aAAc,GACd,SAAU,EACZ,CAAC,EACM,CACT,CAUA,SAAgB,aACd,EACA,EACS,CACT,GAAsB,OAAO,GAAU,WAAnC,GAA+C,EAAE,KAAa,GAAQ,MAAO,GACjF,IAAM,EAAU,EAAkC,GAElD,OACE,IAAS,IAAA,IACT,IAAW,KACV,MAAM,QAAQ,CAAI,EAAI,EAAK,SAAS,CAAM,EAAI,IAAW,EAE9D"}
1
+ {"version":3,"file":"brand-C8nMKhJC.mjs","names":["SDK_BRAND","value","kind","stored"],"sources":["../src/utils/brand.ts"],"sourcesContent":["// Symbol.for ensures the same symbol is returned across different ESM module instances,\n// avoiding identity mismatches when multiple copies of the SDK are loaded.\nexport const SDK_BRAND: unique symbol = Symbol.for(\"tailor-platform/sdk\");\n\nexport type SdkBrandKind =\n | \"tailordb-type\"\n | \"resolver\"\n | \"executor\"\n | \"workflow\"\n | \"workflow-job\"\n | \"wait-point\"\n | \"execution-policy\"\n | \"http-adapter\";\n\n/**\n * Adds a non-enumerable SDK brand symbol to the given object (in-place).\n * The brand stores the kind so service loaders can distinguish between\n * different SDK object types (e.g. a type loader skips executors).\n * @param value - The object to brand\n * @param kind - The kind of SDK object\n * @returns The same object with the brand applied\n */\nexport function brandValue<T extends object>(value: T, kind: SdkBrandKind): T {\n Object.defineProperty(value, SDK_BRAND, {\n value: kind,\n enumerable: false,\n configurable: false,\n writable: false,\n });\n return value;\n}\n\n/**\n * Checks whether the given value has been branded by the SDK.\n * When kind is specified, only returns true if the brand matches that kind.\n * Accepts a single kind or an array of kinds for multi-kind matching.\n * @param value - The value to check\n * @param kind - Optional kind or kinds to match against\n * @returns True if the value has the SDK brand symbol (and matches kind if specified)\n */\nexport function isSdkBranded(\n value: unknown,\n kind?: SdkBrandKind | readonly SdkBrandKind[],\n): boolean {\n if (value === null || typeof value !== \"object\" || !(SDK_BRAND in value)) return false;\n const stored = (value as Record<symbol, unknown>)[SDK_BRAND];\n // No kind filter → any brand matches. Legacy `true` brand → matches any kind.\n return (\n kind === undefined ||\n stored === true ||\n (Array.isArray(kind) ? kind.includes(stored) : stored === kind)\n );\n}\n"],"mappings":"AAEA,MAAaA,EAA2B,OAAO,IAAI,qBAAqB,EAoBxE,SAAgB,WAA6B,EAAU,EAAuB,CAO5E,OANA,OAAO,eAAeC,EAAOD,EAAW,CACtC,MAAOE,EACP,WAAY,GACZ,aAAc,GACd,SAAU,EACZ,CAAC,EACMD,CACT,CAUA,SAAgB,aACd,EACA,EACS,CACT,GAAsB,OAAOA,GAAU,WAAnCA,GAA+C,EAAED,KAAaC,GAAQ,MAAO,GACjF,IAAME,EAAUF,EAAkCD,GAElD,OACEE,IAAS,IAAA,IACTC,IAAW,KACV,MAAM,QAAQD,CAAI,EAAIA,EAAK,SAASC,CAAM,EAAIA,IAAWD,EAE9D"}
@@ -33,6 +33,37 @@ export declare function parseAppIds(value: unknown): AppIds;
33
33
  * @returns The lock, or null when no ancestor directory inside the repository has one
34
34
  */
35
35
  export declare function findAppIdLock(configPath: string): AppIdLock | null;
36
+ /**
37
+ * The `appIds` key of a config: its path relative to the repository root, with
38
+ * `/` separators.
39
+ * @param root - Directory that holds `.github/tailor.lock`
40
+ * @param configPath - Absolute path to the config file
41
+ * @returns The lock key
42
+ */
43
+ export declare function appIdLockKey(root: string, configPath: string): string;
44
+ /** Inputs to {@link resolveAppId}. */
45
+ export type ResolveAppIdParams = {
46
+ configPath: string;
47
+ configId: string | undefined;
48
+ };
49
+ /**
50
+ * Resolve a config's app id for a plugin that only needs to read it: the same
51
+ * lock-first precedence `deploy` applies (see {@link planAppIds}), scoped to
52
+ * one config, with no lock write, config edit, or prompt. A config whose id
53
+ * is not yet recorded anywhere resolves to undefined rather than warning —
54
+ * unlike a deploy or remove run, a plugin resolving this has no ownership
55
+ * decision riding on it, so the warning `planAppIds` raises for that case
56
+ * would be misleading here. A config id that disagrees with the lock, or
57
+ * that is already recorded for a different, still-existing config, is an
58
+ * `APP_ID_CONFLICT` — the same ambiguous states `planAppIds` refuses to
59
+ * resolve automatically, since a plugin trusting the wrong side would act on
60
+ * another application's identity. A defined `configId` that is not itself a
61
+ * UUID is a `CONFIG_ID_INVALID` error, regardless of whether a lock governs
62
+ * the config, so a malformed value never comes back as a resolved id.
63
+ * @param params - The config to resolve and the id its module evaluates to, if any
64
+ * @returns The resolved id, or undefined when neither the lock nor the config carries one
65
+ */
66
+ export declare function resolveAppId(params: ResolveAppIdParams): string | undefined;
36
67
  /**
37
68
  * How a command may treat a config whose id is not yet recorded.
38
69
  *
@@ -25,7 +25,7 @@ import "./commands/deploy/function-registry.mjs";
25
25
  import { NamespaceWithMigrations, getNamespacesWithMigrations } from "./commands/tailordb/migrate/config.mjs";
26
26
  import { DeployOptions, deploy } from "./commands/deploy/deploy.mjs";
27
27
  import { ensureConfigId } from "./commands/deploy/config-id-injector.mjs";
28
- import { AppIdEntry, AppIdEntryInput, AppIdLock, AppIdPlan, AppIdPlanMode, AppIds, PlanAppIdsParams, RemoveAdoptedConfigIdsResult, TAILOR_LOCK_FILENAME, TAILOR_LOCK_VERSION, findAppIdLock, parseAppIds, planAppIds, removeAdoptedConfigIds } from "./commands/deploy/app-id-lock.mjs";
28
+ import { AppIdEntry, AppIdEntryInput, AppIdLock, AppIdPlan, AppIdPlanMode, AppIds, PlanAppIdsParams, RemoveAdoptedConfigIdsResult, ResolveAppIdParams, TAILOR_LOCK_FILENAME, TAILOR_LOCK_VERSION, appIdLockKey, findAppIdLock, parseAppIds, planAppIds, removeAdoptedConfigIds, resolveAppId } from "./commands/deploy/app-id-lock.mjs";
29
29
  import { GenerateOptions } from "./commands/generate/options.mjs";
30
30
  import { generate } from "./commands/generate/service.mjs";
31
31
  import { extractOwnedNamespaces } from "./shared/config.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 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 ShowOptions, 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, 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, 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 ShowOptions, 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 };
package/dist/cli/lib.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{i as ee,n as te}from"../logger-Cp5U2IDI.mjs";import{$r as ne,A as e,At as t,Bt as n,C as r,Ct as i,Di as a,Dr as o,E as s,Ei as c,Er as l,Et as u,F as d,Fn as f,Ft as p,G as m,Gt as h,H as g,Hr as _,Ht as v,I as y,In as b,Ir as x,L as S,Ln as C,Lr as w,Mn as T,Mr as E,Mt as D,N as O,Nn as k,O as A,Oi as j,Or as M,Ot as N,P,Pn as F,Pt as I,Qt as L,Rn as R,Rt as z,Si as B,Sr as V,St as H,Tr as U,Ur as W,Vt as G,W as K,Wr as q,Wt as J,X as Y,Xn as X,Yt as Z,Z as re,Zr as ie,Zt as ae,_ as oe,_n as se,_r as Q,_t as ce,bt as le,cn as ue,ct as de,d as fe,ei as pe,et as me,fr as he,ft as ge,gr as _e,gt as ve,h as ye,hr as be,i as xe,it as Se,j as Ce,ji as we,ki as Te,kn as Ee,kt as De,l as Oe,ln as $,lr as ke,mn as Ae,mr as je,mt as Me,n as Ne,nr as Pe,nt as Fe,oi as Ie,ot as Le,p as Re,pi as ze,pr as Be,q as Ve,qt as He,r as Ue,s as We,t as Ge,ti as Ke,ut as qe,vr as Je,wr as Ye,x as Xe,xt as Ze,y as Qe,yr as $e,zi as et,zn as tt}from"../register-ts-hook-YtsAGTMD.mjs";import{it as nt}from"../application-D4913edS.mjs";import{t as rt}from"../type-source--ZNcV8RJ.mjs";import{arg as it,defineCommand as at,runCommand as ot,runMain as st}from"@politty/zod";await Ge(new URL(`./ts-hook.mjs`,import.meta.url));export{Be as DB_PGLITE_SCHEMA_FILE_NAME,je as DB_TYPES_FILE_NAME,be as DIFF_FILE_NAME,_e as INITIAL_SCHEMA_NUMBER,Q as MIGRATE_FILE_NAME,Je as MIGRATE_PGLITE_TEST_FILE_NAME,$e as MIGRATE_TEST_FILE_NAME,E as MIGRATION_LABEL_KEY,V as SCHEMA_FILE_NAME,T as TAILOR_LOCK_FILENAME,k as TAILOR_LOCK_VERSION,Ne as annotateTerminalError,ne as apiCall,$ as apply,$ as deploy,it as arg,pe as assertWritable,X as bundleMigrationScript,d as bundleSeedDumpScript,y as bundleSeedScript,P as chunkSeedData,x as compareLocalTypesWithSnapshot,w as compareSnapshots,c as configArg,a as confirmationArgs,j as createCommonArgs,ge as createFolder,ke as createSnapshotFromLocalTypes,se as createWorkspace,B as defineAppCommand,at as defineCommand,qe as deleteFolder,Qe as deleteWorkspace,K as deployStaticWebsite,Te as deploymentArgs,R as ensureConfigId,H as errorToJson,De as executeScript,N as extractOwnedNamespaces,F as findAppIdLock,_ as formatDiffSummary,W as formatMigrationDiff,Ze as generate,tt as generateUserTypes,r as getAppHealth,ue as getExecutor,G as getExecutorJob,v as getExecutorWaitFailureMessage,de as getFolder,I as getFunctionRegistry,Ye as getLatestMigrationNumber,ce as getMachineUserToken,U as getMigrationDirPath,l as getMigrationFilePath,o as getMigrationFiles,Pe as getNamespacesWithMigrations,M as getNextMigrationNumber,ve as getOAuth2Client,Fe as getOrganization,Z as getWorkflow,ae as getWorkflowExecution,oe as getWorkspace,q as hasChanges,nt as initOperatorClient,Re as inviteUser,rt as isPluginGeneratedTable,Xe as listApps,J as listExecutorJobs,n as listExecutors,Le as listFolders,D as listFunctionRegistries,le as listMachineUsers,Me as listOAuth2Clients,me as listOrganizations,fe as listUsers,p as listWebhookExecutors,L as listWorkflowExecutions,e as listWorkflows,Ae as listWorkspaces,Ie as loadAccessToken,Ke as loadConfig,we as loadEnvFiles,O as loadSeedContext,u as loadTailorDBNamespaces,ze as loadWorkspaceId,g as logBetaWarning,te as logger,S as migrateGenerate,re as organizationTree,f as parseAppIds,b as planAppIds,ie as prompt,xe as query,he as reconstructSnapshotFromMigrations,Ve as remove,C as removeAdoptedConfigIds,Oe as removeUser,ye as restoreWorkspace,A as resumeWorkflow,ot as runCommand,st as runMain,i as serializeError,m as show,He as startWorkflow,ee as styles,z as triggerExecutor,Ce as truncate,Se as updateFolder,Y as updateOrganization,We as updateUser,t as waitForExecution,s as waitWorkflowExecution,h as watchExecutorJob,Ue as withSourceLocation,et as workspaceArgs,Ee as workspaceNameSchema};
1
+ import{i as ee,o as te}from"../logger-Db-YRTwK.mjs";import{$n as ne,A as e,Ai as t,An as n,Ar as r,At as i,Br as a,Bt as o,C as s,Cn as c,Ct as l,Dn as u,Dr as d,E as f,En as p,Et as m,F as h,Fn as g,Fr as _,Ft as v,G as y,Gr as b,Gt as x,H as S,Hi as C,Ht as w,I as T,Kr as E,L as D,Mi as O,Mn as k,Mt as A,N as j,Nn as M,O as N,On as P,Or as F,Ot as I,P as L,Pi as R,Pn as z,Pt as B,Qt as V,Rt as H,Sr as U,St as W,Ti as G,Tr as K,Vt as q,W as J,Wt as Y,X,Yt as Z,Z as re,Zt as ie,_ as ae,_r as oe,_t as se,ar as Q,br as ce,bt as le,cn as ue,ct as de,d as fe,dn as pe,ei as me,et as he,fr as ge,ft as _e,gi as ve,gr as ye,gt as be,h as xe,hr as Se,i as Ce,ii as we,it as Te,j as Ee,ji as De,jn as Oe,jr as ke,ki as Ae,kn as je,kr as Me,kt as Ne,l as Pe,li as Fe,mt as Ie,n as Le,ni as Re,nn as ze,nt as Be,ot as Ve,p as He,q as Ue,qr as We,qt as Ge,r as Ke,ri as qe,rn as $,s as Je,t as Ye,ut as Xe,vr as Ze,x as Qe,xr as $e,xt as et,y as tt,yr as nt,zr as rt}from"../register-ts-hook-ztnEFW6n.mjs";import{it}from"../application-m2G91kKI.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 Ye(new URL(`./ts-hook.mjs`,import.meta.url));export{ye as DB_PGLITE_SCHEMA_FILE_NAME,oe as DB_TYPES_FILE_NAME,Ze as DIFF_FILE_NAME,nt as INITIAL_SCHEMA_NUMBER,ce as MIGRATE_FILE_NAME,$e as MIGRATE_PGLITE_TEST_FILE_NAME,U as MIGRATE_TEST_FILE_NAME,_ as MIGRATION_LABEL_KEY,K as SCHEMA_FILE_NAME,p as TAILOR_LOCK_FILENAME,u as TAILOR_LOCK_VERSION,Le as annotateTerminalError,Re as apiCall,P as appIdLockKey,$ as apply,$ as deploy,ot as arg,qe as assertWritable,ne as bundleMigrationScript,h as bundleSeedDumpScript,T as bundleSeedScript,L as chunkSeedData,rt as compareLocalTypesWithSnapshot,a as compareSnapshots,Ae as configArg,t as confirmationArgs,De as createCommonArgs,_e as createFolder,ge as createSnapshotFromLocalTypes,pe as createWorkspace,G as defineAppCommand,st as defineCommand,Xe as deleteFolder,tt as deleteWorkspace,J as deployStaticWebsite,O as deploymentArgs,z as ensureConfigId,W as errorToJson,Ne as executeScript,I as extractOwnedNamespaces,je as findAppIdLock,b as formatDiffSummary,E as formatMigrationDiff,et as generate,g as generateUserTypes,s as getAppHealth,ze as getExecutor,q as getExecutorJob,w as getExecutorWaitFailureMessage,de as getFolder,B as getFunctionRegistry,d as getLatestMigrationNumber,se as getMachineUserToken,F as getMigrationDirPath,Me as getMigrationFilePath,r as getMigrationFiles,Q as getNamespacesWithMigrations,ke as getNextMigrationNumber,be as getOAuth2Client,Be as getOrganization,Z as getWorkflow,ie as getWorkflowExecution,ae as getWorkspace,We as hasChanges,it as initOperatorClient,He as inviteUser,at as isPluginGeneratedTable,Qe as listApps,Y as listExecutorJobs,o as listExecutors,Ve as listFolders,A as listFunctionRegistries,le as listMachineUsers,Ie as listOAuth2Clients,he as listOrganizations,fe as listUsers,v as listWebhookExecutors,V as listWorkflowExecutions,e as listWorkflows,ue as listWorkspaces,Fe as loadAccessToken,we as loadConfig,R as loadEnvFiles,j as loadSeedContext,m as loadTailorDBNamespaces,ve as loadWorkspaceId,S as logBetaWarning,ee as logger,D as migrateGenerate,re as organizationTree,n as parseAppIds,Oe as planAppIds,me as prompt,Ce as query,Se as reconstructSnapshotFromMigrations,Ue as remove,k as removeAdoptedConfigIds,Pe as removeUser,M as resolveAppId,xe as restoreWorkspace,N as resumeWorkflow,ct as runCommand,lt as runMain,l as serializeError,y as show,Ge as startWorkflow,te as styles,H as triggerExecutor,Ee as truncate,Te as updateFolder,X as updateOrganization,Je as updateUser,i as waitForExecution,f as waitWorkflowExecution,x as watchExecutorJob,Ke as withSourceLocation,C as workspaceArgs,c as workspaceNameSchema};
2
2
  //# sourceMappingURL=lib.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"lib.mjs","names":[],"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 findAppIdLock,\n parseAppIds,\n planAppIds,\n removeAdoptedConfigIds,\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} 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} 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":"ipCAGA,MAAM,GAAe,IAAI,IAAI,gBAAiB,YAAY,GAAG,CAAC"}
1
+ {"version":3,"file":"lib.mjs","names":["logger","styles","bundleMigrationScript","listWorkflows","confirmationArgs","parseAppIds","getMigrationFiles","waitForExecution","compareSnapshots","listExecutors","getAppHealth","workspaceNameSchema","serializeError","TAILOR_LOCK_VERSION","getLatestMigrationNumber","waitWorkflowExecution","TAILOR_LOCK_FILENAME","loadTailorDBNamespaces","bundleSeedDumpScript","generateUserTypes","MIGRATION_LABEL_KEY","listWebhookExecutors","show","formatDiffSummary","watchExecutorJob","logBetaWarning","workspaceArgs","getExecutorWaitFailureMessage","bundleSeedScript","formatMigrationDiff","generate$1","deploymentArgs","removeAdoptedConfigIds","listFunctionRegistries","loadSeedContext","resolveAppId","resumeWorkflow","appIdLockKey","getMigrationDirPath","extractOwnedNamespaces","chunkSeedData","loadEnvFiles","ensureConfigId","getFunctionRegistry","listWorkflowExecutions","triggerExecutor","MIGRATE_TEST_FILE_NAME","errorToJson","defineAppCommand","SCHEMA_FILE_NAME","getExecutorJob","deployStaticWebsite","listExecutorJobs","getWorkflow","organizationTree","getWorkflowExecution","getWorkspace","DB_TYPES_FILE_NAME","getMachineUserToken","getNamespacesWithMigrations","MIGRATE_FILE_NAME","listMachineUsers","listWorkspaces","getFolder","listUsers","createWorkspace","prompt","listOrganizations","createSnapshotFromLocalTypes","createFolder","loadWorkspaceId","DB_PGLITE_SCHEMA_FILE_NAME","getOAuth2Client","restoreWorkspace","reconstructSnapshotFromMigrations","query","loadConfig","updateFolder","truncate","createCommonArgs","planAppIds","getNextMigrationNumber","configArg","findAppIdLock","getMigrationFilePath","executeScript","removeUser","loadAccessToken","listOAuth2Clients","annotateTerminalError","apiCall","getExecutor","getOrganization","listFolders","inviteUser","remove","hasChanges","startWorkflow","withSourceLocation","assertWritable","deploy","updateUser","registerTsHook","deleteFolder","DIFF_FILE_NAME","listApps","MIGRATE_PGLITE_TEST_FILE_NAME","generate","deleteWorkspace","INITIAL_SCHEMA_NUMBER","compareLocalTypesWithSnapshot","isPluginGeneratedTable","arg","defineCommand","initOperatorClient","runCommand","runMain","updateOrganization"],"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} 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":"6pCAGA,MAAMsG,GAAe,IAAI,IAAI,gBAAiB,YAAY,GAAG,CAAC"}