@tailor-platform/sdk 1.30.0 → 1.32.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.
- package/CHANGELOG.md +64 -0
- package/README.md +3 -1
- package/dist/{application-Bf8SUAtR.mjs → application-B8vok3w2.mjs} +257 -42
- package/dist/application-B8vok3w2.mjs.map +1 -0
- package/dist/{application-DAQVP9CS.mjs → application-DHifc-oA.mjs} +2 -2
- package/dist/cli/index.mjs +67 -70
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +8 -8
- package/dist/cli/lib.mjs +8 -6
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/client-B0wrLUVK.mjs +6 -0
- package/dist/{client-CZmQBXAY.mjs → client-DfdgRZlQ.mjs} +25 -13
- package/dist/{client-CZmQBXAY.mjs.map → client-DfdgRZlQ.mjs.map} +1 -1
- package/dist/configure/index.d.mts +4 -4
- package/dist/configure/index.mjs +1 -1
- package/dist/{crash-report-CYrETw1c.mjs → crash-report-BMEhRxeg.mjs} +1 -1
- package/dist/{crash-report-DizNMVnm.mjs → crash-report-wNxS0IUJ.mjs} +2 -2
- package/dist/{crash-report-DizNMVnm.mjs.map → crash-report-wNxS0IUJ.mjs.map} +1 -1
- package/dist/{env-DiWYe80_.d.mts → env-BgdHfWDn.d.mts} +2 -2
- package/dist/{index-BU7Cd5I4.d.mts → index-BAud4CE7.d.mts} +15 -15
- package/dist/{index-HvMUWjvV.d.mts → index-CdDzh-T2.d.mts} +2 -2
- package/dist/{index-rH_De6hM.d.mts → index-CxgBnxKM.d.mts} +2 -2
- package/dist/{index-DCEMVfJA.d.mts → index-D4Y81vh1.d.mts} +2 -2
- package/dist/{index-2WQbf_LH.d.mts → index-FZMBoUWm.d.mts} +2 -2
- package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
- package/dist/plugin/builtin/seed/index.d.mts +1 -1
- package/dist/plugin/index.d.mts +2 -2
- package/dist/{plugin-C-UdAM8C.d.mts → plugin-DyVYXZWz.d.mts} +7 -7
- package/dist/{query-C3oQTLvb.mjs → runtime-DbX_UxlC.mjs} +67 -39
- package/dist/runtime-DbX_UxlC.mjs.map +1 -0
- package/dist/{schema-BePzTFBV.mjs → schema-CNWt2FKQ.mjs} +3 -14
- package/dist/schema-CNWt2FKQ.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +8 -3
- package/dist/utils/test/index.mjs +15 -1
- package/dist/utils/test/index.mjs.map +1 -1
- package/dist/{workflow.generated-C5wMcCjB.d.mts → workflow.generated-DMQ-cjyT.d.mts} +2 -2
- package/docs/quickstart.md +12 -0
- package/docs/services/resolver.md +72 -0
- package/docs/services/tailordb.md +78 -6
- package/package.json +15 -12
- package/dist/application-Bf8SUAtR.mjs.map +0 -1
- package/dist/client-CW4Oh3iz.mjs +0 -6
- package/dist/query-C3oQTLvb.mjs.map +0 -1
- package/dist/schema-BePzTFBV.mjs.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as db } from "./schema-
|
|
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
|
|
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
|
|
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-B8vok3w2.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-
|
|
10968
|
+
const { defineApplication } = await import("./application-DHifc-oA.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
|
-
|
|
13145
|
-
|
|
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-DbX_UxlC.mjs.map
|