@tailor-platform/sdk 1.63.0 → 1.66.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 +51 -0
- package/dist/{actor-J2gJ0eK5.d.mts → actor-D_2aJjYO.d.mts} +2 -2
- package/dist/{application-BezXGbrU.mjs → application-DGDmL8i_.mjs} +72 -9
- package/dist/application-DGDmL8i_.mjs.map +1 -0
- package/dist/application-nTydHJm8.mjs +4 -0
- package/dist/cli/index.mjs +66 -22
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +375 -375
- package/dist/cli/lib.mjs +3 -3
- package/dist/{client-CobIRHl-.mjs → client-F0a4cWUM.mjs} +3 -2
- package/dist/client-F0a4cWUM.mjs.map +1 -0
- package/dist/{client-C68VWo4g.mjs → client-boxXYevx.mjs} +1 -1
- package/dist/completion/zsh-worker.zsh +4043 -0
- package/dist/configure/index.d.mts +5 -5
- package/dist/configure/index.mjs +17 -1
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{crashreport-BhD0y14F.mjs → crashreport-0EHy-ayY.mjs} +2 -2
- package/dist/{crashreport-BhD0y14F.mjs.map → crashreport-0EHy-ayY.mjs.map} +1 -1
- package/dist/{crashreport-D1wKBJ8N.mjs → crashreport-Bf6uT6mf.mjs} +1 -1
- package/dist/{index-CLxubakC.d.mts → index-BdLqzJDu.d.mts} +19 -6
- package/dist/{index-CfRFkXIO.d.mts → index-Bhjep8cS.d.mts} +2 -2
- package/dist/{index-DUupuPhZ.d.mts → index-CZ2r3qiO.d.mts} +2 -2
- package/dist/{index-CPRnOjjt.d.mts → index-Db2RvnEH.d.mts} +2 -2
- package/dist/{index-CQZVJ5SX.d.mts → index-QpC0TNbH.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_FyVSdl.d.mts → plugin-DylAsA4Z.d.mts} +2 -2
- package/dist/{runtime-CW3jcQCc.mjs → runtime-2nzOZCUb.mjs} +728 -182
- package/dist/runtime-2nzOZCUb.mjs.map +1 -0
- package/dist/{tailordb-BlBGmQK-.d.mts → tailordb-C-ar4XCX.d.mts} +4 -4
- package/dist/utils/test/index.d.mts +3 -3
- package/dist/{workflow.generated-Bf1tWylx.d.mts → workflow.generated--1Qc15Et.d.mts} +62 -7
- package/docs/cli/auth.md +4 -4
- package/docs/cli/completion.md +3 -0
- package/docs/cli/function.md +8 -8
- package/docs/cli/query.md +1 -1
- package/docs/cli/workflow.md +10 -10
- package/docs/cli/workspace.md +14 -10
- package/docs/cli-reference.md +1 -1
- package/docs/services/aigateway.md +97 -0
- package/docs/services/auth.md +19 -0
- package/docs/services/idp.md +96 -0
- package/docs/services/tailordb-migration.md +17 -6
- package/package.json +12 -12
- package/dist/application-BezXGbrU.mjs.map +0 -1
- package/dist/application-DSXntqnV.mjs +0 -4
- package/dist/client-CobIRHl-.mjs.map +0 -1
- package/dist/runtime-CW3jcQCc.mjs.map +0 -1
package/dist/cli/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { Et as AuthInvokerSchema, L as CustomDomainStatus, Nt as PATScope, Q as FunctionExecution_Type, _ as userAgent, a as fetchAll, c as fetchPlatformMachineUserToken, d as initOAuth2Client, f as initOperatorClient, l as fetchUserInfo, r as closeConnectionPool, s as fetchPaged } from "../client-
|
|
3
|
+
import { Et as AuthInvokerSchema, L as CustomDomainStatus, Nt as PATScope, Q as FunctionExecution_Type, _ as userAgent, a as fetchAll, c as fetchPlatformMachineUserToken, d as initOAuth2Client, f as initOperatorClient, l as fetchUserInfo, r as closeConnectionPool, s as fetchPaged } from "../client-F0a4cWUM.mjs";
|
|
4
4
|
import { t as assertDefined } from "../assert-CKfwrmCV.mjs";
|
|
5
5
|
import { n as logger, r as styles } from "../logger-DpJyJvNz.mjs";
|
|
6
|
-
import { $ as listCommand$10, $t as INITIAL_SCHEMA_NUMBER, An as commonArgs, At as startCommand, B as logBetaWarning, C as listCommand$13, Cn as PluginManager, Dt as jobsCommand, E as resumeCommand, En as apiCommand, F as writeDbTypesFile, Fn as pagedLogArgs, Gt as MIGRATION_LABEL_KEY, H as removeCommand$1, Ht as executeScript, I as getConfiguredEditorCommand, In as paginationArgs, Jt as compareSnapshotWithRemote, K as treeCommand, Kt as handleOptionalToRequiredError, L as openInConfiguredEditor, Ln as toPageDirection, Lt as functionExecutionStatusToString, Mn as confirmationArgs, Mt as getCommand$6, N as generateCommand$1, Nn as deploymentArgs, O as listCommand$12, On as assertWritable, P as generateMigrationScript, Pn as isVerbose, Pt as executionsCommand, Rn as workspaceArgs, Rt as formatKeyValueTable, Sn as sdkNameLabelKey, St as triggerCommand, T as healthCommand, Tn as prompt, U as updateCommand$3, Vt as deploy, Xt as protoGqlPermission, Y as getCommand$5, Yt as generateAllTypeManifestsFromSnapshot, Z as updateCommand$2, _n as formatMigrationDiff, an as createSnapshotFromLocalTypes, at as createCommand$3, b as createCommand$4, bn as ensureConfigId, c as listCommand$14, cn as getMigrationFilePath, dn as isValidMigrationNumber, f as restoreCommand, fn as loadDiff, ft as tokenCommand, g as getCommand$7, gt as listCommand$7, hn as parseMigrationNumberArg, ht as generate, i as updateCommand$4, j as truncateCommand, jn as configArg, kn as defineAppCommand, ln as getMigrationFiles, lt as getCommand$3, m as listCommand$15, mn as formatMigrationNumber, nn as assertValidMigrationFiles, o as removeCommand, on as getLatestMigrationNumber, pn as reconstructSnapshotFromMigrations, pt as listCommand$8, q as listCommand$11, qt as parseMigrationLabelNumber, r as queryCommand, rn as compareLocalTypesWithSnapshot, rt as deleteCommand$3, st as listCommand$9, t as isNativeTypeScriptRuntime, tt as getCommand$4, u as inviteCommand, v as deleteCommand$4, vn as hasChanges, vt as getCommand$2, wn as generateUserTypes, wt as listCommand$6, xn as resourceTrn, xt as webhookCommand, yn as getNamespacesWithMigrations, z as showCommand, zt as getCommand$1 } from "../runtime-
|
|
7
|
-
import { A as
|
|
6
|
+
import { $ as listCommand$10, $t as INITIAL_SCHEMA_NUMBER, An as commonArgs, At as startCommand, B as logBetaWarning, C as listCommand$13, Cn as PluginManager, Dt as jobsCommand, E as resumeCommand, En as apiCommand, F as writeDbTypesFile, Fn as pagedLogArgs, Gt as MIGRATION_LABEL_KEY, H as removeCommand$1, Ht as executeScript, I as getConfiguredEditorCommand, In as paginationArgs, Jt as compareSnapshotWithRemote, K as treeCommand, Kt as handleOptionalToRequiredError, L as openInConfiguredEditor, Ln as toPageDirection, Lt as functionExecutionStatusToString, Mn as confirmationArgs, Mt as getCommand$6, N as generateCommand$1, Nn as deploymentArgs, O as listCommand$12, On as assertWritable, P as generateMigrationScript, Pn as isVerbose, Pt as executionsCommand, Rn as workspaceArgs, Rt as formatKeyValueTable, Sn as sdkNameLabelKey, St as triggerCommand, T as healthCommand, Tn as prompt, U as updateCommand$3, Vt as deploy, Xt as protoGqlPermission, Y as getCommand$5, Yt as generateAllTypeManifestsFromSnapshot, Z as updateCommand$2, _n as formatMigrationDiff, an as createSnapshotFromLocalTypes, at as createCommand$3, b as createCommand$4, bn as ensureConfigId, c as listCommand$14, cn as getMigrationFilePath, dn as isValidMigrationNumber, f as restoreCommand, fn as loadDiff, ft as tokenCommand, g as getCommand$7, gt as listCommand$7, hn as parseMigrationNumberArg, ht as generate, i as updateCommand$4, j as truncateCommand, jn as configArg, kn as defineAppCommand, ln as getMigrationFiles, lt as getCommand$3, m as listCommand$15, mn as formatMigrationNumber, nn as assertValidMigrationFiles, o as removeCommand, on as getLatestMigrationNumber, pn as reconstructSnapshotFromMigrations, pt as listCommand$8, q as listCommand$11, qt as parseMigrationLabelNumber, r as queryCommand, rn as compareLocalTypesWithSnapshot, rt as deleteCommand$3, st as listCommand$9, t as isNativeTypeScriptRuntime, tt as getCommand$4, u as inviteCommand, v as deleteCommand$4, vn as hasChanges, vt as getCommand$2, wn as generateUserTypes, wt as listCommand$6, xn as resourceTrn, xt as webhookCommand, yn as getNamespacesWithMigrations, z as showCommand, zt as getCommand$1 } from "../runtime-2nzOZCUb.mjs";
|
|
7
|
+
import { A as readPlatformConfig, C as loadConfig, E as loadAccessToken, M as saveUserTokens, N as writePlatformConfig, O as loadMachineUserName, T as fetchLatestToken, _ as createLogLevelTreeshakeOptions, a as WorkflowJobSchema, b as getDistDir, c as INVOKER_EXPR, g as composeFunctionTreeshakeOptions, h as platformBundleDefinePlugin, i as resolveInlineSourcemap, j as resolveTokens, k as loadWorkspaceId, o as ResolverSchema, t as defineApplication, v as resolveBundleLogLevel, w as deleteUserTokens, x as hashContent$1 } from "../application-DGDmL8i_.mjs";
|
|
8
8
|
import { n as ExecutorSchema } from "../service-wI3Hvrgx.mjs";
|
|
9
9
|
import { t as multiline } from "../multiline-Cf9ODpr1.mjs";
|
|
10
10
|
import { r as isPluginGeneratedType } from "../seed-BH2FbrPV.mjs";
|
|
11
11
|
import { t as readPackageJson } from "../package-json-DcQApfPQ.mjs";
|
|
12
12
|
import { n as isCLIError } from "../errors-EsY4XO6O.mjs";
|
|
13
|
-
import { a as JSON_FOOTER_MARKER, i as CRASH_LOG_EXTENSION, o as parseCrashReportConfig, r as sendCrashReport, t as initCrashReporting } from "../crashreport-
|
|
13
|
+
import { a as JSON_FOOTER_MARKER, i as CRASH_LOG_EXTENSION, o as parseCrashReportConfig, r as sendCrashReport, t as initCrashReporting } from "../crashreport-0EHy-ayY.mjs";
|
|
14
14
|
import { arg, defineCommand, runCommand, runMain } from "politty";
|
|
15
15
|
import { withCompletionCommand } from "politty/completion";
|
|
16
16
|
import { z } from "zod";
|
|
@@ -1400,7 +1400,7 @@ const testRunCommand = defineAppCommand({
|
|
|
1400
1400
|
}),
|
|
1401
1401
|
"machine-user": arg(z.string().optional(), {
|
|
1402
1402
|
alias: "m",
|
|
1403
|
-
description: "Machine user name for authentication",
|
|
1403
|
+
description: "Machine user name for authentication. Falls back to the active profile's default machine user.",
|
|
1404
1404
|
env: "TAILOR_PLATFORM_MACHINE_USER_NAME"
|
|
1405
1405
|
}),
|
|
1406
1406
|
config: arg(z.string().default("tailor.config.ts"), {
|
|
@@ -1434,7 +1434,11 @@ When a \`.js\` file is provided, detection and bundling are skipped and the file
|
|
|
1434
1434
|
if (!fs$1.existsSync(filePath)) throw new Error(`File not found: ${filePath}`);
|
|
1435
1435
|
const { config } = await loadConfig(args.config);
|
|
1436
1436
|
const authNamespace = resolveAuthNamespace(config.auth);
|
|
1437
|
-
const machineUserName = resolveMachineUserName(
|
|
1437
|
+
const machineUserName = await resolveMachineUserName({
|
|
1438
|
+
cliMachineUser: args["machine-user"],
|
|
1439
|
+
profile: args.profile,
|
|
1440
|
+
authConfig: config.auth
|
|
1441
|
+
});
|
|
1438
1442
|
const client = await initOperatorClient(await loadAccessToken({ profile: args.profile }));
|
|
1439
1443
|
const workspaceId = await loadWorkspaceId({
|
|
1440
1444
|
workspaceId: args["workspace-id"],
|
|
@@ -1542,13 +1546,18 @@ function resolveAuthNamespace(authConfig) {
|
|
|
1542
1546
|
throw new Error("Auth namespace is required. Ensure tailor.config.ts has an auth config.");
|
|
1543
1547
|
}
|
|
1544
1548
|
/**
|
|
1545
|
-
* Resolve machine user name from CLI args
|
|
1546
|
-
*
|
|
1547
|
-
* @param
|
|
1549
|
+
* Resolve machine user name from CLI args, profile default, or config.
|
|
1550
|
+
* Priority: --machine-user / env > profile default > first key of config.auth.machineUsers > error
|
|
1551
|
+
* @param options - Resolution options
|
|
1548
1552
|
* @returns Resolved machine user name
|
|
1549
1553
|
*/
|
|
1550
|
-
function resolveMachineUserName(
|
|
1551
|
-
|
|
1554
|
+
async function resolveMachineUserName(options) {
|
|
1555
|
+
const { cliMachineUser, profile, authConfig } = options;
|
|
1556
|
+
const resolved = await loadMachineUserName({
|
|
1557
|
+
machineUser: cliMachineUser,
|
|
1558
|
+
profile
|
|
1559
|
+
});
|
|
1560
|
+
if (resolved) return resolved;
|
|
1552
1561
|
if (authConfig && !("external" in authConfig && authConfig.external)) {
|
|
1553
1562
|
const machineUsers = authConfig.machineUsers;
|
|
1554
1563
|
if (machineUsers) {
|
|
@@ -1556,7 +1565,7 @@ function resolveMachineUserName(cliMachineUser, authConfig) {
|
|
|
1556
1565
|
if (keys.length > 0) return assertDefined(keys[0], "machine user key missing");
|
|
1557
1566
|
}
|
|
1558
1567
|
}
|
|
1559
|
-
throw new Error("Machine user is required. Provide --machine-user or ensure tailor.config.ts has machine users configured.");
|
|
1568
|
+
throw new Error("Machine user is required. Provide --machine-user, set TAILOR_PLATFORM_MACHINE_USER_NAME, set a profile default with 'tailor-sdk profile update <profile> --machine-user <name>', or ensure tailor.config.ts has machine users configured.");
|
|
1560
1569
|
}
|
|
1561
1570
|
/**
|
|
1562
1571
|
* Resolve full machine user info: name, id (from API), and attributes (from config).
|
|
@@ -1974,9 +1983,15 @@ const createCommand$2 = defineAppCommand({
|
|
|
1974
1983
|
alias: "w",
|
|
1975
1984
|
description: "Workspace ID"
|
|
1976
1985
|
}),
|
|
1977
|
-
permission: arg(z.enum(["write", "read"]).default("write"), { description: "Profile permission. 'read' blocks all write commands while the profile is active." })
|
|
1986
|
+
permission: arg(z.enum(["write", "read"]).default("write"), { description: "Profile permission. 'read' blocks all write commands while the profile is active." }),
|
|
1987
|
+
"machine-user": arg(z.string().optional(), {
|
|
1988
|
+
alias: "m",
|
|
1989
|
+
description: "Default machine user name for application-data commands (query, workflow start, function test-run, machineuser token)."
|
|
1990
|
+
}),
|
|
1991
|
+
"machine-user-override": arg(z.enum(["allow", "deny"]).optional(), { description: "Whether the command line or TAILOR_PLATFORM_MACHINE_USER_NAME may override the profile's machine user. 'deny' requires --machine-user." })
|
|
1978
1992
|
}).strict(),
|
|
1979
1993
|
run: async (args) => {
|
|
1994
|
+
if (args["machine-user-override"] === "deny" && !args["machine-user"]) throw new Error("--machine-user-override deny requires --machine-user.");
|
|
1980
1995
|
const config = await readPlatformConfig();
|
|
1981
1996
|
if (config.profiles[args.name]) throw new Error(`Profile "${args.name}" already exists.`);
|
|
1982
1997
|
const client = await initOperatorClient(await fetchLatestToken(config, args.user));
|
|
@@ -1990,7 +2005,9 @@ const createCommand$2 = defineAppCommand({
|
|
|
1990
2005
|
config.profiles[args.name] = {
|
|
1991
2006
|
user: args.user,
|
|
1992
2007
|
workspace_id: args["workspace-id"],
|
|
1993
|
-
...args.permission === "read" ? { readonly: true } : {}
|
|
2008
|
+
...args.permission === "read" ? { readonly: true } : {},
|
|
2009
|
+
...args["machine-user"] ? { machine_user: args["machine-user"] } : {},
|
|
2010
|
+
...args["machine-user-override"] === "deny" ? { machine_user_override: "deny" } : {}
|
|
1994
2011
|
};
|
|
1995
2012
|
writePlatformConfig(config);
|
|
1996
2013
|
if (!args.json) logger.success(`Profile "${args.name}" created successfully.`);
|
|
@@ -1998,7 +2015,11 @@ const createCommand$2 = defineAppCommand({
|
|
|
1998
2015
|
name: args.name,
|
|
1999
2016
|
user: args.user,
|
|
2000
2017
|
workspaceId: args["workspace-id"],
|
|
2001
|
-
permission: args.permission
|
|
2018
|
+
permission: args.permission,
|
|
2019
|
+
...args["machine-user"] ? {
|
|
2020
|
+
machineUser: args["machine-user"],
|
|
2021
|
+
machineUserOverride: args["machine-user-override"] ?? "allow"
|
|
2022
|
+
} : {}
|
|
2002
2023
|
};
|
|
2003
2024
|
logger.out(profileInfo);
|
|
2004
2025
|
}
|
|
@@ -2046,7 +2067,11 @@ const listCommand$4 = defineAppCommand({
|
|
|
2046
2067
|
name,
|
|
2047
2068
|
user: p.user,
|
|
2048
2069
|
workspaceId: p.workspace_id,
|
|
2049
|
-
permission: p.readonly === true ? "read" : "write"
|
|
2070
|
+
permission: p.readonly === true ? "read" : "write",
|
|
2071
|
+
...p.machine_user ? {
|
|
2072
|
+
machineUser: p.machine_user,
|
|
2073
|
+
machineUserOverride: p.machine_user_override ?? "allow"
|
|
2074
|
+
} : {}
|
|
2050
2075
|
};
|
|
2051
2076
|
});
|
|
2052
2077
|
logger.out(profileInfos);
|
|
@@ -2071,17 +2096,28 @@ const updateCommand$1 = defineAppCommand({
|
|
|
2071
2096
|
alias: "w",
|
|
2072
2097
|
description: "New workspace ID"
|
|
2073
2098
|
}),
|
|
2074
|
-
permission: arg(z.enum(["write", "read"]).optional(), { description: "Profile permission. 'read' blocks all write commands; 'write' lifts the restriction." })
|
|
2099
|
+
permission: arg(z.enum(["write", "read"]).optional(), { description: "Profile permission. 'read' blocks all write commands; 'write' lifts the restriction." }),
|
|
2100
|
+
"machine-user": arg(z.string().optional(), {
|
|
2101
|
+
alias: "m",
|
|
2102
|
+
description: "Default machine user name for application-data commands (query, workflow start, function test-run, machineuser token). Pass an empty string to clear."
|
|
2103
|
+
}),
|
|
2104
|
+
"machine-user-override": arg(z.enum(["allow", "deny"]).optional(), { description: "Whether the command line or TAILOR_PLATFORM_MACHINE_USER_NAME may override the profile's machine user. 'deny' requires --machine-user; 'allow' lifts the restriction." })
|
|
2075
2105
|
}).strict(),
|
|
2076
2106
|
run: async (args) => {
|
|
2077
2107
|
const config = await readPlatformConfig();
|
|
2078
2108
|
const profile = config.profiles[args.name];
|
|
2079
2109
|
if (!profile) throw new Error(`Profile "${args.name}" not found.`);
|
|
2080
|
-
if (!args.user && !args["workspace-id"] && args.permission === void 0) throw new Error("Please provide at least one property to update.");
|
|
2110
|
+
if (!args.user && !args["workspace-id"] && args.permission === void 0 && args["machine-user"] === void 0 && args["machine-user-override"] === void 0) throw new Error("Please provide at least one property to update.");
|
|
2081
2111
|
const oldUser = profile.user;
|
|
2082
2112
|
const newUser = args.user || oldUser;
|
|
2083
2113
|
const oldWorkspaceId = profile.workspace_id;
|
|
2084
2114
|
const newWorkspaceId = args["workspace-id"] || oldWorkspaceId;
|
|
2115
|
+
const finalMachineUser = args["machine-user"] === "" ? void 0 : args["machine-user"] ?? profile.machine_user;
|
|
2116
|
+
const finalOverride = args["machine-user-override"] === "allow" ? void 0 : args["machine-user-override"] ?? profile.machine_user_override;
|
|
2117
|
+
if ((args["machine-user"] !== void 0 || args["machine-user-override"] !== void 0) && finalOverride === "deny" && !finalMachineUser) {
|
|
2118
|
+
if (args["machine-user-override"] === "deny") throw new Error("--machine-user-override deny requires --machine-user.");
|
|
2119
|
+
throw new Error(`Cannot clear the machine user while machine-user-override is "deny". Also pass --machine-user-override allow.`);
|
|
2120
|
+
}
|
|
2085
2121
|
if (args.user !== void 0 || args["workspace-id"] !== void 0) {
|
|
2086
2122
|
const client = await initOperatorClient(await fetchLatestToken(config, newUser));
|
|
2087
2123
|
if (!(await fetchAll(async (pageToken, maxPageSize) => {
|
|
@@ -2096,13 +2132,21 @@ const updateCommand$1 = defineAppCommand({
|
|
|
2096
2132
|
profile.workspace_id = newWorkspaceId;
|
|
2097
2133
|
if (args.permission === "read") profile.readonly = true;
|
|
2098
2134
|
else if (args.permission === "write") delete profile.readonly;
|
|
2135
|
+
if (args["machine-user"] !== void 0) if (args["machine-user"] === "") delete profile.machine_user;
|
|
2136
|
+
else profile.machine_user = args["machine-user"];
|
|
2137
|
+
if (args["machine-user-override"] === "deny") profile.machine_user_override = "deny";
|
|
2138
|
+
else if (args["machine-user-override"] === "allow") delete profile.machine_user_override;
|
|
2099
2139
|
writePlatformConfig(config);
|
|
2100
2140
|
if (!args.json) logger.success(`Profile "${args.name}" updated successfully`);
|
|
2101
2141
|
const profileInfo = {
|
|
2102
2142
|
name: args.name,
|
|
2103
2143
|
user: newUser,
|
|
2104
2144
|
workspaceId: newWorkspaceId,
|
|
2105
|
-
permission: profile.readonly === true ? "read" : "write"
|
|
2145
|
+
permission: profile.readonly === true ? "read" : "write",
|
|
2146
|
+
...profile.machine_user ? {
|
|
2147
|
+
machineUser: profile.machine_user,
|
|
2148
|
+
machineUserOverride: profile.machine_user_override ?? "allow"
|
|
2149
|
+
} : {}
|
|
2106
2150
|
};
|
|
2107
2151
|
logger.out(profileInfo);
|
|
2108
2152
|
}
|
|
@@ -2675,7 +2719,7 @@ var setup_npm_default = "- id: tailor-setup-node\n uses: actions/setup-node@48b
|
|
|
2675
2719
|
|
|
2676
2720
|
//#endregion
|
|
2677
2721
|
//#region src/cli/commands/setup/github/setup-pnpm.yml
|
|
2678
|
-
var setup_pnpm_default = "- id: tailor-setup-pnpm\n uses: pnpm/action-setup@
|
|
2722
|
+
var setup_pnpm_default = "- id: tailor-setup-pnpm\n uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9\n- id: tailor-setup-node\n uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0\n with:\n node-version-file: package.json\n cache: pnpm\n- id: tailor-install\n run: pnpm install --frozen-lockfile\n";
|
|
2679
2723
|
|
|
2680
2724
|
//#endregion
|
|
2681
2725
|
//#region src/cli/commands/setup/github/setup-yarn.yml
|
|
@@ -4763,7 +4807,7 @@ async function fetchRemoteTypes(client, workspaceId, namespace) {
|
|
|
4763
4807
|
async function assertMigrationsReproduceLocalTypes(loaded, target) {
|
|
4764
4808
|
const { config, plugins } = loaded;
|
|
4765
4809
|
const pluginManager = plugins.length > 0 ? new PluginManager(plugins) : void 0;
|
|
4766
|
-
const { defineApplication, generatePluginFilesIfNeeded } = await import("../application-
|
|
4810
|
+
const { defineApplication, generatePluginFilesIfNeeded } = await import("../application-nTydHJm8.mjs");
|
|
4767
4811
|
const application = defineApplication({
|
|
4768
4812
|
config,
|
|
4769
4813
|
pluginManager
|
|
@@ -5478,7 +5522,7 @@ runMain(mainCommand, {
|
|
|
5478
5522
|
if (isVerbose() && error.stack) logger.debug(`\nStack trace:\n${error.stack}`);
|
|
5479
5523
|
} else logger.error(`Unknown error: ${error}`);
|
|
5480
5524
|
if (!isCLIError(error) && (!(error instanceof Error) || error instanceof TypeError || error instanceof RangeError)) {
|
|
5481
|
-
const { reportCrash } = await import("../crashreport-
|
|
5525
|
+
const { reportCrash } = await import("../crashreport-Bf6uT6mf.mjs");
|
|
5482
5526
|
await reportCrash(error, "handledError");
|
|
5483
5527
|
}
|
|
5484
5528
|
}
|