@tailor-platform/sdk 1.30.0 → 1.31.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 (44) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/README.md +3 -1
  3. package/dist/{application-DAQVP9CS.mjs → application-B2-PymMz.mjs} +2 -2
  4. package/dist/{application-Bf8SUAtR.mjs → application-CASjzt3W.mjs} +253 -35
  5. package/dist/application-CASjzt3W.mjs.map +1 -0
  6. package/dist/cli/index.mjs +63 -63
  7. package/dist/cli/index.mjs.map +1 -1
  8. package/dist/cli/lib.d.mts +8 -8
  9. package/dist/cli/lib.mjs +8 -6
  10. package/dist/cli/lib.mjs.map +1 -1
  11. package/dist/client-B0wrLUVK.mjs +6 -0
  12. package/dist/{client-CZmQBXAY.mjs → client-DfdgRZlQ.mjs} +25 -13
  13. package/dist/{client-CZmQBXAY.mjs.map → client-DfdgRZlQ.mjs.map} +1 -1
  14. package/dist/configure/index.d.mts +4 -4
  15. package/dist/configure/index.mjs +1 -1
  16. package/dist/{crash-report-CYrETw1c.mjs → crash-report-BMEhRxeg.mjs} +1 -1
  17. package/dist/{crash-report-DizNMVnm.mjs → crash-report-wNxS0IUJ.mjs} +2 -2
  18. package/dist/{crash-report-DizNMVnm.mjs.map → crash-report-wNxS0IUJ.mjs.map} +1 -1
  19. package/dist/{env-DiWYe80_.d.mts → env-BgdHfWDn.d.mts} +2 -2
  20. package/dist/{index-HvMUWjvV.d.mts → index-CdDzh-T2.d.mts} +2 -2
  21. package/dist/{index-rH_De6hM.d.mts → index-CxgBnxKM.d.mts} +2 -2
  22. package/dist/{index-DCEMVfJA.d.mts → index-D4Y81vh1.d.mts} +2 -2
  23. package/dist/{index-2WQbf_LH.d.mts → index-FZMBoUWm.d.mts} +2 -2
  24. package/dist/{index-BU7Cd5I4.d.mts → index-RXv15__b.d.mts} +4 -4
  25. package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
  26. package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
  27. package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
  28. package/dist/plugin/builtin/seed/index.d.mts +1 -1
  29. package/dist/plugin/index.d.mts +2 -2
  30. package/dist/{plugin-C-UdAM8C.d.mts → plugin-DyVYXZWz.d.mts} +7 -7
  31. package/dist/{query-C3oQTLvb.mjs → runtime-Ofe7nHEG.mjs} +67 -39
  32. package/dist/runtime-Ofe7nHEG.mjs.map +1 -0
  33. package/dist/{schema-BePzTFBV.mjs → schema-CNWt2FKQ.mjs} +3 -14
  34. package/dist/schema-CNWt2FKQ.mjs.map +1 -0
  35. package/dist/utils/test/index.d.mts +2 -2
  36. package/dist/{workflow.generated-C5wMcCjB.d.mts → workflow.generated-DMQ-cjyT.d.mts} +2 -2
  37. package/docs/quickstart.md +12 -0
  38. package/docs/services/resolver.md +59 -0
  39. package/docs/services/tailordb.md +78 -6
  40. package/package.json +14 -11
  41. package/dist/application-Bf8SUAtR.mjs.map +0 -1
  42. package/dist/client-CW4Oh3iz.mjs +0 -6
  43. package/dist/query-C3oQTLvb.mjs.map +0 -1
  44. package/dist/schema-BePzTFBV.mjs.map +0 -1
@@ -1,8 +1,8 @@
1
- import { t as db } from "./schema-BePzTFBV.mjs";
1
+ import { t as db } from "./schema-CNWt2FKQ.mjs";
2
2
  import { i as symbols, n as logger, r as styles, t as CIPromptError } from "./logger-CqezTedh.mjs";
3
- import { A as AuthHookPoint, B as TenantProviderConfig_TenantProviderType, C as PipelineResolver_OperationType, D as ExecutorJobStatus, F as AuthSCIMAttribute_Mutability, G as FilterSchema, H as GetApplicationSchemaHealthResponse_ApplicationSchemaHealthStatus, I as AuthSCIMAttribute_Type, J as Subgraph_ServiceType, K as PageDirection, L as AuthSCIMAttribute_Uniqueness, M as AuthInvokerSchema, N as AuthOAuth2Client_ClientType, O as ExecutorTargetType, P as AuthOAuth2Client_GrantType, R as AuthSCIMConfig_AuthorizationType, S as TailorDBType_PermitAction, T as FunctionExecution_Status, U as ConditionSchema, V as UserProfileProviderConfig_UserProfileProviderType, W as Condition_Operator, _ as TailorDBGQLPermission_Action, b as TailorDBType_Permission_Operator, d as platformBaseUrl, f as resolveStaticWebsiteUrls, g as WorkflowJobExecution_Status, h as WorkflowExecution_Status, i as fetchMachineUserToken, j as AuthIDPConfig_AuthType, k as ExecutorTriggerType, l as initOperatorClient, m as WorkspacePlatformUserRole, p as userAgent, q as ApplicationSchemaUpdateAttemptStatus, r as fetchAll, v as TailorDBGQLPermission_Operator, w as IdPLang, x as TailorDBType_Permission_Permit, y as TailorDBGQLPermission_Permit } from "./client-CZmQBXAY.mjs";
3
+ import { A as ExecutorTriggerType, C as TailorDBType_PermitAction, E as FunctionExecution_Status, F as AuthOAuth2Client_GrantType, G as Condition_Operator, H as UserProfileProviderConfig_UserProfileProviderType, I as AuthSCIMAttribute_Mutability, J as ApplicationSchemaUpdateAttemptStatus, K as FilterSchema, L as AuthSCIMAttribute_Type, M as AuthIDPConfig_AuthType, N as AuthInvokerSchema, O as ExecutorJobStatus, P as AuthOAuth2Client_ClientType, R as AuthSCIMAttribute_Uniqueness, S as TailorDBType_Permission_Permit, T as IdPLang, U as GetApplicationSchemaHealthResponse_ApplicationSchemaHealthStatus, V as TenantProviderConfig_TenantProviderType, W as ConditionSchema, Y as Subgraph_ServiceType, _ as WorkflowJobExecution_Status, a as fetchMachineUserToken, b as TailorDBGQLPermission_Permit, f as platformBaseUrl, g as WorkflowExecution_Status, h as WorkspacePlatformUserRole, i as fetchAll, j as AuthHookPoint, k as ExecutorTargetType, m as userAgent, p as resolveStaticWebsiteUrls, q as PageDirection, u as initOperatorClient, v as TailorDBGQLPermission_Action, w as PipelineResolver_OperationType, x as TailorDBType_Permission_Operator, y as TailorDBGQLPermission_Operator, z as AuthSCIMConfig_AuthorizationType } from "./client-DfdgRZlQ.mjs";
4
4
  import { t as readPackageJson } from "./package-json-D3x2nBPB.mjs";
5
- import { S as writePlatformConfig, _ as hashFile, a as loadConfig, b as loadWorkspaceId, d as TailorDBTypeSchema, f as stringifyFunction, g as getDistDir, h as createBundleCache, l as OAuth2ClientSchema, m as loadFilesWithIgnores, n as generatePluginFilesIfNeeded, p as tailorUserMap, r as loadApplication, s as createExecutorService, t as defineApplication, x as readPlatformConfig, y as loadAccessToken } from "./application-Bf8SUAtR.mjs";
5
+ import { S as readPlatformConfig, T as writePlatformConfig, _ as hashFile, a as loadConfig, b as loadAccessToken, d as TailorDBTypeSchema, f as stringifyFunction, g as getDistDir, h as createBundleCache, l as OAuth2ClientSchema, m as loadFilesWithIgnores, n as generatePluginFilesIfNeeded, p as tailorUserMap, r as loadApplication, s as createExecutorService, t as defineApplication, x as loadWorkspaceId } from "./application-CASjzt3W.mjs";
6
6
  import { r as withSpan } from "./telemetry-BSUlYTs-.mjs";
7
7
  import { arg, createDefineCommand, defineCommand, runCommand } from "politty";
8
8
  import { z } from "zod";
@@ -6768,7 +6768,7 @@ async function apply(options) {
6768
6768
  useProfile: true,
6769
6769
  profile: options?.profile
6770
6770
  }));
6771
- const workspaceId = loadWorkspaceId({
6771
+ const workspaceId = await loadWorkspaceId({
6772
6772
  workspaceId: options?.workspaceId,
6773
6773
  profile: options?.profile
6774
6774
  });
@@ -7207,7 +7207,7 @@ async function getExecutor(options) {
7207
7207
  useProfile: true,
7208
7208
  profile: options.profile
7209
7209
  }));
7210
- const workspaceId = loadWorkspaceId({
7210
+ const workspaceId = await loadWorkspaceId({
7211
7211
  workspaceId: options.workspaceId,
7212
7212
  profile: options.profile
7213
7213
  });
@@ -7459,7 +7459,7 @@ async function listWorkflowExecutions(options) {
7459
7459
  useProfile: true,
7460
7460
  profile: options?.profile
7461
7461
  }));
7462
- const workspaceId = loadWorkspaceId({
7462
+ const workspaceId = await loadWorkspaceId({
7463
7463
  workspaceId: options?.workspaceId,
7464
7464
  profile: options?.profile
7465
7465
  });
@@ -7498,7 +7498,7 @@ async function getWorkflowExecution(options) {
7498
7498
  useProfile: true,
7499
7499
  profile: options.profile
7500
7500
  }));
7501
- const workspaceId = loadWorkspaceId({
7501
+ const workspaceId = await loadWorkspaceId({
7502
7502
  workspaceId: options.workspaceId,
7503
7503
  profile: options.profile
7504
7504
  });
@@ -7683,7 +7683,7 @@ async function getWorkflow(options) {
7683
7683
  useProfile: true,
7684
7684
  profile: options.profile
7685
7685
  }));
7686
- const workspaceId = loadWorkspaceId({
7686
+ const workspaceId = await loadWorkspaceId({
7687
7687
  workspaceId: options.workspaceId,
7688
7688
  profile: options.profile
7689
7689
  });
@@ -7830,7 +7830,7 @@ async function startWorkflowByName(options) {
7830
7830
  useProfile: true,
7831
7831
  profile: options.profile
7832
7832
  }));
7833
- const workspaceId = loadWorkspaceId({
7833
+ const workspaceId = await loadWorkspaceId({
7834
7834
  workspaceId: options.workspaceId,
7835
7835
  profile: options.profile
7836
7836
  });
@@ -7859,7 +7859,7 @@ async function startWorkflow(options) {
7859
7859
  useProfile: true,
7860
7860
  profile: options.profile
7861
7861
  })),
7862
- workspaceId: loadWorkspaceId({
7862
+ workspaceId: await loadWorkspaceId({
7863
7863
  workspaceId: options.workspaceId,
7864
7864
  profile: options.profile
7865
7865
  }),
@@ -7922,7 +7922,7 @@ async function listExecutorJobs(options) {
7922
7922
  useProfile: true,
7923
7923
  profile: options.profile
7924
7924
  }));
7925
- const workspaceId = loadWorkspaceId({
7925
+ const workspaceId = await loadWorkspaceId({
7926
7926
  workspaceId: options.workspaceId,
7927
7927
  profile: options.profile
7928
7928
  });
@@ -7959,7 +7959,7 @@ async function getExecutorJob(options) {
7959
7959
  useProfile: true,
7960
7960
  profile: options.profile
7961
7961
  }));
7962
- const workspaceId = loadWorkspaceId({
7962
+ const workspaceId = await loadWorkspaceId({
7963
7963
  workspaceId: options.workspaceId,
7964
7964
  profile: options.profile
7965
7965
  });
@@ -7999,7 +7999,7 @@ async function watchExecutorJob(options) {
7999
7999
  useProfile: true,
8000
8000
  profile: options.profile
8001
8001
  }));
8002
- const workspaceId = loadWorkspaceId({
8002
+ const workspaceId = await loadWorkspaceId({
8003
8003
  workspaceId: options.workspaceId,
8004
8004
  profile: options.profile
8005
8005
  });
@@ -8300,7 +8300,7 @@ async function listExecutors(options) {
8300
8300
  useProfile: true,
8301
8301
  profile: options?.profile
8302
8302
  }));
8303
- const workspaceId = loadWorkspaceId({
8303
+ const workspaceId = await loadWorkspaceId({
8304
8304
  workspaceId: options?.workspaceId,
8305
8305
  profile: options?.profile
8306
8306
  });
@@ -8367,7 +8367,7 @@ async function triggerExecutorByName(options) {
8367
8367
  useProfile: true,
8368
8368
  profile: options.profile
8369
8369
  }));
8370
- const workspaceId = loadWorkspaceId({
8370
+ const workspaceId = await loadWorkspaceId({
8371
8371
  workspaceId: options.workspaceId,
8372
8372
  profile: options.profile
8373
8373
  });
@@ -8465,7 +8465,7 @@ The \`--logs\` option displays logs from the downstream execution when available
8465
8465
  useProfile: true,
8466
8466
  profile: args.profile
8467
8467
  }));
8468
- const workspaceId = loadWorkspaceId({
8468
+ const workspaceId = await loadWorkspaceId({
8469
8469
  workspaceId: args["workspace-id"],
8470
8470
  profile: args.profile
8471
8471
  });
@@ -8565,7 +8565,7 @@ async function listWebhookExecutors(options) {
8565
8565
  useProfile: true,
8566
8566
  profile: options?.profile
8567
8567
  }));
8568
- const workspaceId = loadWorkspaceId({
8568
+ const workspaceId = await loadWorkspaceId({
8569
8569
  workspaceId: options?.workspaceId,
8570
8570
  profile: options?.profile
8571
8571
  });
@@ -9494,7 +9494,7 @@ async function listMachineUsers(options) {
9494
9494
  useProfile: true,
9495
9495
  profile: options?.profile
9496
9496
  }));
9497
- const workspaceId = loadWorkspaceId({
9497
+ const workspaceId = await loadWorkspaceId({
9498
9498
  workspaceId: options?.workspaceId,
9499
9499
  profile: options?.profile
9500
9500
  });
@@ -9543,7 +9543,7 @@ async function getMachineUserToken(options) {
9543
9543
  useProfile: true,
9544
9544
  profile: options.profile
9545
9545
  }));
9546
- const workspaceId = loadWorkspaceId({
9546
+ const workspaceId = await loadWorkspaceId({
9547
9547
  workspaceId: options.workspaceId,
9548
9548
  profile: options.profile
9549
9549
  });
@@ -9647,7 +9647,7 @@ async function getOAuth2Client(options) {
9647
9647
  useProfile: true,
9648
9648
  profile: options.profile
9649
9649
  }));
9650
- const workspaceId = loadWorkspaceId({
9650
+ const workspaceId = await loadWorkspaceId({
9651
9651
  workspaceId: options.workspaceId,
9652
9652
  profile: options.profile
9653
9653
  });
@@ -9702,7 +9702,7 @@ async function listOAuth2Clients(options) {
9702
9702
  useProfile: true,
9703
9703
  profile: options?.profile
9704
9704
  }));
9705
- const workspaceId = loadWorkspaceId({
9705
+ const workspaceId = await loadWorkspaceId({
9706
9706
  workspaceId: options?.workspaceId,
9707
9707
  profile: options?.profile
9708
9708
  });
@@ -10238,7 +10238,7 @@ async function loadOptions$10(options) {
10238
10238
  useProfile: true,
10239
10239
  profile: options?.profile
10240
10240
  }));
10241
- const workspaceId = loadWorkspaceId({
10241
+ const workspaceId = await loadWorkspaceId({
10242
10242
  workspaceId: options?.workspaceId,
10243
10243
  profile: options?.profile
10244
10244
  });
@@ -10360,7 +10360,7 @@ async function show(options) {
10360
10360
  useProfile: true,
10361
10361
  profile: options?.profile
10362
10362
  }));
10363
- const workspaceId = loadWorkspaceId({
10363
+ const workspaceId = await loadWorkspaceId({
10364
10364
  workspaceId: options?.workspaceId,
10365
10365
  profile: options?.profile
10366
10366
  });
@@ -10965,7 +10965,7 @@ async function generate(options) {
10965
10965
  if (options.init) await handleInitOption(namespacesWithMigrations, options.yes);
10966
10966
  let pluginManager;
10967
10967
  if (plugins.length > 0) pluginManager = new PluginManager(plugins);
10968
- const { defineApplication } = await import("./application-DAQVP9CS.mjs");
10968
+ const { defineApplication } = await import("./application-B2-PymMz.mjs");
10969
10969
  const application = defineApplication({
10970
10970
  config,
10971
10971
  pluginManager
@@ -11194,7 +11194,7 @@ async function $truncate(options) {
11194
11194
  useProfile: true,
11195
11195
  profile: options?.profile
11196
11196
  }));
11197
- const workspaceId = loadWorkspaceId({
11197
+ const workspaceId = await loadWorkspaceId({
11198
11198
  workspaceId: options?.workspaceId,
11199
11199
  profile: options?.profile
11200
11200
  });
@@ -11320,7 +11320,7 @@ async function listWorkflows(options) {
11320
11320
  useProfile: true,
11321
11321
  profile: options?.profile
11322
11322
  }));
11323
- const workspaceId = loadWorkspaceId({
11323
+ const workspaceId = await loadWorkspaceId({
11324
11324
  workspaceId: options?.workspaceId,
11325
11325
  profile: options?.profile
11326
11326
  });
@@ -11362,7 +11362,7 @@ async function resumeWorkflow(options) {
11362
11362
  useProfile: true,
11363
11363
  profile: options.profile
11364
11364
  }));
11365
- const workspaceId = loadWorkspaceId({
11365
+ const workspaceId = await loadWorkspaceId({
11366
11366
  workspaceId: options.workspaceId,
11367
11367
  profile: options.profile
11368
11368
  });
@@ -11472,7 +11472,7 @@ async function loadOptions$9(options) {
11472
11472
  if (!result.success) throw new Error(result.error.issues[0].message);
11473
11473
  return {
11474
11474
  client: await initOperatorClient(await loadAccessToken()),
11475
- workspaceId: loadWorkspaceId({
11475
+ workspaceId: await loadWorkspaceId({
11476
11476
  workspaceId: result.data.workspaceId,
11477
11477
  profile: result.data.profile
11478
11478
  }),
@@ -11528,7 +11528,7 @@ async function loadOptions$8(options) {
11528
11528
  if (!result.success) throw new Error(result.error.issues[0].message);
11529
11529
  return {
11530
11530
  client: await initOperatorClient(await loadAccessToken()),
11531
- workspaceId: loadWorkspaceId({
11531
+ workspaceId: await loadWorkspaceId({
11532
11532
  workspaceId: result.data.workspaceId,
11533
11533
  profile: result.data.profile
11534
11534
  }),
@@ -11686,7 +11686,7 @@ const createCommand = defineAppCommand({
11686
11686
  let profileInfo;
11687
11687
  const profileName = args["profile-name"];
11688
11688
  if (profileName) {
11689
- const config = readPlatformConfig();
11689
+ const config = await readPlatformConfig();
11690
11690
  if (config.profiles[profileName]) throw new Error(`Profile "${profileName}" already exists.`);
11691
11691
  const profileUser = args["profile-user"] || config.current_user;
11692
11692
  if (!profileUser) throw new Error("Current user not found. Please login or specify --profile-user to create a profile.");
@@ -11764,7 +11764,7 @@ const deleteCommand = defineAppCommand({
11764
11764
  }
11765
11765
  }
11766
11766
  await client.deleteWorkspace({ workspaceId });
11767
- const pfConfig = readPlatformConfig();
11767
+ const pfConfig = await readPlatformConfig();
11768
11768
  const profilesToDelete = Object.entries(pfConfig.profiles).filter(([, profile]) => profile?.workspace_id === workspaceId);
11769
11769
  if (profilesToDelete.length > 0) {
11770
11770
  for (const [profileName] of profilesToDelete) delete pfConfig.profiles[profileName];
@@ -11786,7 +11786,7 @@ async function loadOptions$6(options) {
11786
11786
  if (!result.success) throw new Error(result.error.issues[0].message);
11787
11787
  return {
11788
11788
  client: await initOperatorClient(await loadAccessToken()),
11789
- workspaceId: loadWorkspaceId({
11789
+ workspaceId: await loadWorkspaceId({
11790
11790
  workspaceId: result.data.workspaceId,
11791
11791
  profile: result.data.profile
11792
11792
  })
@@ -11950,7 +11950,7 @@ async function loadOptions$4(options) {
11950
11950
  if (!result.success) throw new Error(result.error.issues[0].message);
11951
11951
  return {
11952
11952
  client: await initOperatorClient(await loadAccessToken()),
11953
- workspaceId: loadWorkspaceId({
11953
+ workspaceId: await loadWorkspaceId({
11954
11954
  workspaceId: result.data.workspaceId,
11955
11955
  profile: result.data.profile
11956
11956
  }),
@@ -12005,7 +12005,7 @@ async function loadOptions$3(options) {
12005
12005
  if (!result.success) throw new Error(result.error.issues[0].message);
12006
12006
  return {
12007
12007
  client: await initOperatorClient(await loadAccessToken()),
12008
- workspaceId: loadWorkspaceId({
12008
+ workspaceId: await loadWorkspaceId({
12009
12009
  workspaceId: result.data.workspaceId,
12010
12010
  profile: result.data.profile
12011
12011
  }),
@@ -12071,7 +12071,7 @@ async function loadOptions$2(options) {
12071
12071
  if (!result.success) throw new Error(result.error.issues[0].message);
12072
12072
  return {
12073
12073
  client: await initOperatorClient(await loadAccessToken()),
12074
- workspaceId: loadWorkspaceId({
12074
+ workspaceId: await loadWorkspaceId({
12075
12075
  workspaceId: result.data.workspaceId,
12076
12076
  profile: result.data.profile
12077
12077
  }),
@@ -12127,7 +12127,7 @@ async function loadOptions$1(options) {
12127
12127
  if (!result.success) throw new Error(result.error.issues[0].message);
12128
12128
  return {
12129
12129
  client: await initOperatorClient(await loadAccessToken()),
12130
- workspaceId: loadWorkspaceId({
12130
+ workspaceId: await loadWorkspaceId({
12131
12131
  workspaceId: result.data.workspaceId,
12132
12132
  profile: result.data.profile
12133
12133
  }),
@@ -12604,7 +12604,7 @@ async function loadOptions(options) {
12604
12604
  useProfile: true,
12605
12605
  profile: result.data.profile
12606
12606
  }));
12607
- const workspaceId = loadWorkspaceId({
12607
+ const workspaceId = await loadWorkspaceId({
12608
12608
  workspaceId: result.data.workspaceId,
12609
12609
  profile: result.data.profile
12610
12610
  });
@@ -13141,5 +13141,33 @@ function printGqlResult(result, options = {}) {
13141
13141
  }
13142
13142
 
13143
13143
  //#endregion
13144
- export { deleteCommand$1 as $, isValidMigrationNumber as $t, truncate as A, formatKeyValueTable as At, updateOrganization as B, DIFF_FILE_NAME as Bt, listCommand$2 as C, startWorkflow as Ct, resumeWorkflow as D, getWorkflowExecution as Dt, resumeCommand as E, executionsCommand as Et, showCommand as F, waitForExecution$1 as Ft, getCommand$1 as G, compareSnapshots as Gt, treeCommand as H, MIGRATE_FILE_NAME as Ht, logBetaWarning as I, MIGRATION_LABEL_KEY as It, updateFolder as J, getLatestMigrationNumber as Jt, getOrganization as K, createSnapshotFromLocalTypes as Kt, remove as L, parseMigrationLabelNumber as Lt, generate as M, getExecutor as Mt, generateCommand as N, apply as Nt, listCommand$3 as O, listWorkflowExecutions as Ot, show as P, executeScript as Pt, getFolder as Q, getNextMigrationNumber as Qt, removeCommand$1 as R, bundleMigrationScript as Rt, listApps as S, startCommand as St, healthCommand as T, getWorkflow as Tt, listCommand$4 as U, SCHEMA_FILE_NAME as Ut, organizationTree as V, INITIAL_SCHEMA_NUMBER as Vt, listOrganizations as W, compareLocalTypesWithSnapshot as Wt, listFolders as X, getMigrationFilePath as Xt, listCommand$5 as Y, getMigrationDirPath as Yt, getCommand$2 as Z, getMigrationFiles as Zt, getWorkspace as _, workspaceArgs as _n, listExecutors as _t, updateUser as a, getNamespacesWithMigrations as an, getCommand$3 as at, createCommand as b, listExecutorJobs as bt, listCommand as c, trnPrefix as cn, tokenCommand as ct, inviteUser as d, apiCommand as dn, generate$1 as dt, loadDiff as en, deleteFolder as et, restoreCommand as f, defineAppCommand as fn, listWebhookExecutors as ft, getCommand as g, isVerbose as gn, listCommand$8 as gt, listWorkspaces as h, deploymentArgs as hn, triggerExecutor as ht, updateCommand as i, hasChanges as in, listOAuth2Clients as it, truncateCommand as j, getCommand$5 as jt, listWorkflows as k, functionExecutionStatusToString as kt, listUsers as l, generateUserTypes as ln, listCommand$7 as lt, listCommand$1 as m, confirmationArgs as mn, triggerCommand as mt, queryCommand as n, formatDiffSummary as nn, createFolder as nt, removeCommand as o, prompt as on, getOAuth2Client as ot, restoreWorkspace as p, commonArgs as pn, webhookCommand as pt, updateCommand$2 as q, formatMigrationNumber as qt, isCLIError as r, formatMigrationDiff as rn, listCommand$6 as rt, removeUser as s, sdkNameLabelKey as sn, getMachineUserToken as st, query as t, reconstructSnapshotFromMigrations as tn, createCommand$1 as tt, inviteCommand as u, apiCall as un, listMachineUsers as ut, deleteCommand as v, getExecutorJob as vt, getAppHealth as w, getCommand$4 as wt, createWorkspace as x, watchExecutorJob as xt, deleteWorkspace as y, jobsCommand as yt, updateCommand$1 as z, DB_TYPES_FILE_NAME as zt };
13145
- //# sourceMappingURL=query-C3oQTLvb.mjs.map
13144
+ //#region src/cli/shared/runtime.ts
13145
+ /**
13146
+ * Check if the current runtime natively supports TypeScript execution.
13147
+ * Bun and Deno can execute TypeScript without tsx or other loaders.
13148
+ *
13149
+ * Note: Deno is detected here for correct loader/transport selection, but
13150
+ * the CLI is not fully tested on Deno yet. Other dependencies may fail.
13151
+ * @returns true if running on Bun or Deno
13152
+ */
13153
+ function isNativeTypeScriptRuntime() {
13154
+ return isBun() || isDeno();
13155
+ }
13156
+ /**
13157
+ * Check if the current runtime is Bun.
13158
+ * @returns true if running on Bun
13159
+ */
13160
+ function isBun() {
13161
+ return "Bun" in globalThis;
13162
+ }
13163
+ /**
13164
+ * Check if the current runtime is Deno.
13165
+ * @returns true if running on Deno
13166
+ */
13167
+ function isDeno() {
13168
+ return "Deno" in globalThis;
13169
+ }
13170
+
13171
+ //#endregion
13172
+ export { getFolder as $, getNextMigrationNumber as $t, listWorkflows as A, functionExecutionStatusToString as At, updateCommand$1 as B, DB_TYPES_FILE_NAME as Bt, listApps as C, startCommand as Ct, resumeCommand as D, executionsCommand as Dt, healthCommand as E, getWorkflow as Et, show as F, executeScript as Ft, listOrganizations as G, compareLocalTypesWithSnapshot as Gt, organizationTree as H, INITIAL_SCHEMA_NUMBER as Ht, showCommand as I, waitForExecution$1 as It, updateCommand$2 as J, formatMigrationNumber as Jt, getCommand$1 as K, compareSnapshots as Kt, logBetaWarning as L, MIGRATION_LABEL_KEY as Lt, truncateCommand as M, getCommand$5 as Mt, generate as N, getExecutor as Nt, resumeWorkflow as O, getWorkflowExecution as Ot, generateCommand as P, apply as Pt, getCommand$2 as Q, getMigrationFiles as Qt, remove as R, parseMigrationLabelNumber as Rt, createWorkspace as S, watchExecutorJob as St, getAppHealth as T, getCommand$4 as Tt, treeCommand as U, MIGRATE_FILE_NAME as Ut, updateOrganization as V, DIFF_FILE_NAME as Vt, listCommand$4 as W, SCHEMA_FILE_NAME as Wt, listCommand$5 as X, getMigrationDirPath as Xt, updateFolder as Y, getLatestMigrationNumber as Yt, listFolders as Z, getMigrationFilePath as Zt, getCommand as _, isVerbose as _n, listCommand$8 as _t, updateCommand as a, hasChanges as an, listOAuth2Clients as at, deleteWorkspace as b, jobsCommand as bt, removeUser as c, sdkNameLabelKey as cn, getMachineUserToken as ct, inviteCommand as d, apiCall as dn, listMachineUsers as dt, isValidMigrationNumber as en, deleteCommand$1 as et, inviteUser as f, apiCommand as fn, generate$1 as ft, listWorkspaces as g, deploymentArgs as gn, triggerExecutor as gt, listCommand$1 as h, confirmationArgs as hn, triggerCommand as ht, isCLIError as i, formatMigrationDiff as in, listCommand$6 as it, truncate as j, formatKeyValueTable as jt, listCommand$3 as k, listWorkflowExecutions as kt, listCommand as l, trnPrefix as ln, tokenCommand as lt, restoreWorkspace as m, commonArgs as mn, webhookCommand as mt, query as n, reconstructSnapshotFromMigrations as nn, createCommand$1 as nt, updateUser as o, getNamespacesWithMigrations as on, getCommand$3 as ot, restoreCommand as p, defineAppCommand as pn, listWebhookExecutors as pt, getOrganization as q, createSnapshotFromLocalTypes as qt, queryCommand as r, formatDiffSummary as rn, createFolder as rt, removeCommand as s, prompt as sn, getOAuth2Client as st, isNativeTypeScriptRuntime as t, loadDiff as tn, deleteFolder as tt, listUsers as u, generateUserTypes as un, listCommand$7 as ut, getWorkspace as v, workspaceArgs as vn, listExecutors as vt, listCommand$2 as w, startWorkflow as wt, createCommand as x, listExecutorJobs as xt, deleteCommand as y, getExecutorJob as yt, removeCommand$1 as z, bundleMigrationScript as zt };
13173
+ //# sourceMappingURL=runtime-Ofe7nHEG.mjs.map