@tailor-platform/sdk 1.28.0 → 1.30.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 (64) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/{application-CBJFUKrU.mjs → application-Bf8SUAtR.mjs} +97 -77
  3. package/dist/application-Bf8SUAtR.mjs.map +1 -0
  4. package/dist/{application-WyZetOky.mjs → application-DAQVP9CS.mjs} +3 -3
  5. package/dist/chunk-DEt8GZDa.mjs +8 -0
  6. package/dist/cli/index.mjs +118 -52
  7. package/dist/cli/index.mjs.map +1 -1
  8. package/dist/cli/lib.d.mts +208 -43
  9. package/dist/cli/lib.mjs +26 -28
  10. package/dist/cli/lib.mjs.map +1 -1
  11. package/dist/cli/skills.mjs +1 -1
  12. package/dist/client-CW4Oh3iz.mjs +6 -0
  13. package/dist/client-CZmQBXAY.mjs +16294 -0
  14. package/dist/client-CZmQBXAY.mjs.map +1 -0
  15. package/dist/configure/index.d.mts +4 -4
  16. package/dist/configure/index.mjs +1 -1
  17. package/dist/{crash-report-Cot_9Esm.mjs → crash-report-CYrETw1c.mjs} +2 -2
  18. package/dist/{crash-report-Ju8cQF-l.mjs → crash-report-DizNMVnm.mjs} +3 -3
  19. package/dist/{crash-report-Ju8cQF-l.mjs.map → crash-report-DizNMVnm.mjs.map} +1 -1
  20. package/dist/{env-BuMbIknz.d.mts → env-DiWYe80_.d.mts} +2 -2
  21. package/dist/{index-CbnLNm14.d.mts → index-2WQbf_LH.d.mts} +2 -2
  22. package/dist/{index-cD9sQLTh.d.mts → index-BU7Cd5I4.d.mts} +4 -4
  23. package/dist/{index-B0Lrzywd.d.mts → index-DCEMVfJA.d.mts} +2 -2
  24. package/dist/{index-D1AM_02Y.d.mts → index-HvMUWjvV.d.mts} +2 -2
  25. package/dist/{index-CyapgSFI.d.mts → index-rH_De6hM.d.mts} +2 -2
  26. package/dist/{interceptor-B0d_GrI5.mjs → interceptor-DgQNmwWJ.mjs} +2 -2
  27. package/dist/{interceptor-B0d_GrI5.mjs.map → interceptor-DgQNmwWJ.mjs.map} +1 -1
  28. package/dist/kysely/index.mjs +1 -1
  29. package/dist/{package-json-DHfTiUCS.mjs → package-json-DiZWrkIA.mjs} +1 -1
  30. package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
  31. package/dist/plugin/builtin/enum-constants/index.mjs +1 -1
  32. package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
  33. package/dist/plugin/builtin/file-utils/index.mjs +1 -1
  34. package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
  35. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  36. package/dist/plugin/builtin/seed/index.d.mts +1 -1
  37. package/dist/plugin/builtin/seed/index.mjs +1 -1
  38. package/dist/plugin/index.d.mts +2 -2
  39. package/dist/plugin/index.mjs +1 -1
  40. package/dist/{plugin-D3a0-qe0.d.mts → plugin-C-UdAM8C.d.mts} +2 -2
  41. package/dist/{query-WYq8RvYp.mjs → query-C3oQTLvb.mjs} +670 -132
  42. package/dist/query-C3oQTLvb.mjs.map +1 -0
  43. package/dist/schema-BePzTFBV.mjs.map +1 -1
  44. package/dist/seed/index.mjs +1 -1
  45. package/dist/{telemetry-VvNfsyEE.mjs → telemetry-BSUlYTs-.mjs} +2 -2
  46. package/dist/{telemetry-VvNfsyEE.mjs.map → telemetry-BSUlYTs-.mjs.map} +1 -1
  47. package/dist/telemetry-BtN2l0f1.mjs +4 -0
  48. package/dist/utils/test/index.d.mts +2 -2
  49. package/dist/utils/test/index.mjs +1 -1
  50. package/dist/{workflow.generated-BsgIlrH-.d.mts → workflow.generated-C5wMcCjB.d.mts} +2 -2
  51. package/docs/cli/function.md +1 -1
  52. package/docs/cli/organization.md +426 -0
  53. package/docs/cli/user.md +21 -22
  54. package/docs/cli/workspace.md +0 -7
  55. package/docs/cli-reference.md +32 -12
  56. package/docs/services/executor.md +46 -0
  57. package/package.json +8 -8
  58. package/dist/application-CBJFUKrU.mjs.map +0 -1
  59. package/dist/chunk-Cz-A8uMR.mjs +0 -3
  60. package/dist/client-C2_wgujH.mjs +0 -6
  61. package/dist/client-bTbnbQbB.mjs +0 -957
  62. package/dist/client-bTbnbQbB.mjs.map +0 -1
  63. package/dist/query-WYq8RvYp.mjs.map +0 -1
  64. package/dist/telemetry-BevrwWwF.mjs +0 -4
@@ -1,9 +1,9 @@
1
- import "./chunk-Cz-A8uMR.mjs";
1
+ import "./chunk-DEt8GZDa.mjs";
2
2
  import "./brand-GZnI4eYb.mjs";
3
3
  import "./logger-CqezTedh.mjs";
4
- import "./client-bTbnbQbB.mjs";
4
+ import "./client-CZmQBXAY.mjs";
5
5
  import "./package-json-D3x2nBPB.mjs";
6
- import { n as generatePluginFilesIfNeeded, r as loadApplication, t as defineApplication } from "./application-CBJFUKrU.mjs";
6
+ import { n as generatePluginFilesIfNeeded, r as loadApplication, t as defineApplication } from "./application-Bf8SUAtR.mjs";
7
7
  import "./seed-CWkIDWMb.mjs";
8
8
  import "./file-utils-Bctuzn3x.mjs";
9
9
  import "./kysely-type-B_IecdK9.mjs";
@@ -0,0 +1,8 @@
1
+ import { createRequire } from "node:module";
2
+
3
+ //#region \0rolldown/runtime.js
4
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
5
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
6
+
7
+ //#endregion
8
+ export { __require as n, __commonJSMin as t };
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
- import "../chunk-Cz-A8uMR.mjs";
2
+ import "../chunk-DEt8GZDa.mjs";
3
3
  import "../schema-BePzTFBV.mjs";
4
4
  import "../brand-GZnI4eYb.mjs";
5
5
  import { n as logger, r as styles } from "../logger-CqezTedh.mjs";
6
- import { $t as workspaceArgs, C as listCommand$10, E as resumeCommand, F as showCommand, Ft as isValidMigrationNumber, G as listCommand$7, Ht as prompt, I as logBetaWarning, It as loadDiff, Jt as defineAppCommand, Mt as getMigrationFilePath, N as generateCommand$1, Nt as getMigrationFiles, O as listCommand$9, Q as listCommand$6, Qt as isVerbose, R as removeCommand$1, T as healthCommand, Ut as sdkNameLabelKey, V as getCommand$2, Vt as getNamespacesWithMigrations, W as tokenCommand, Wt as trnPrefix, X as triggerCommand, Xt as confirmationArgs, Y as webhookCommand, Yt as commonArgs, Zt as deploymentArgs, b as createCommand$3, c as listCommand$11, ct as executionsCommand, dt as functionExecutionStatusToString, f as restoreCommand, ft as formatKeyValueTable, g as getCommand$4, gt as executeScript, ht as apply, i as updateCommand$2, it as startCommand, j as truncateCommand, kt as formatMigrationNumber, m as listCommand$12, n as queryCommand, o as removeCommand, ot as getCommand$3, pt as getCommand$1, q as generate, qt as apiCommand, r as isCLIError, tt as jobsCommand, u as inviteCommand, v as deleteCommand$3, yt as parseMigrationLabelNumber, z as listCommand$8 } from "../query-WYq8RvYp.mjs";
7
- import { A as AuthInvokerSchema, L as PATScope, d as userAgent, i as fetchUserInfo, n as fetchAll, o as initOAuth2Client, s as initOperatorClient, w as FunctionExecution_Type } from "../client-bTbnbQbB.mjs";
6
+ import { $ as deleteCommand$3, $t as isValidMigrationNumber, At as formatKeyValueTable, C as listCommand$12, E as resumeCommand, Et as executionsCommand, F as showCommand, G as getCommand$4, H as treeCommand, I as logBetaWarning, Lt as parseMigrationLabelNumber, N as generateCommand$1, Nt as apply, O as listCommand$11, Pt as executeScript, R as removeCommand$1, St as startCommand, T as healthCommand, U as listCommand$10, Xt as getMigrationFilePath, Y as listCommand$9, Z as getCommand$3, Zt as getMigrationFiles, _n as workspaceArgs, an as getNamespacesWithMigrations, at as getCommand$2, b as createCommand$4, c as listCommand$13, cn as trnPrefix, ct as tokenCommand, dn as apiCommand, dt as generate, en as loadDiff, f as restoreCommand, fn as defineAppCommand, g as getCommand$6, gn as isVerbose, gt as listCommand$6, hn as deploymentArgs, i as updateCommand$4, j as truncateCommand, jt as getCommand$1, kt as functionExecutionStatusToString, lt as listCommand$7, m as listCommand$14, mn as confirmationArgs, mt as triggerCommand, n as queryCommand, o as removeCommand, on as prompt, pn as commonArgs, pt as webhookCommand, q as updateCommand$2, qt as formatMigrationNumber, r as isCLIError, rt as listCommand$8, sn as sdkNameLabelKey, tt as createCommand$3, u as inviteCommand, v as deleteCommand$4, wt as getCommand$5, yt as jobsCommand, z as updateCommand$3 } from "../query-C3oQTLvb.mjs";
7
+ import { E as FunctionExecution_Type, M as AuthInvokerSchema, a as fetchPlatformMachineUserToken, c as initOAuth2Client, l as initOperatorClient, n as closeConnectionPool, o as fetchUserInfo, p as userAgent, r as fetchAll, z as PATScope } from "../client-CZmQBXAY.mjs";
8
8
  import { t as readPackageJson } from "../package-json-D3x2nBPB.mjs";
9
- import { S as writePlatformConfig, a as loadConfig, b as loadWorkspaceId, c as ExecutorSchema, g as getDistDir, i as resolveInlineSourcemap, o as WorkflowJobSchema, u as ResolverSchema, v as fetchLatestToken, x as readPlatformConfig, y as loadAccessToken } from "../application-CBJFUKrU.mjs";
9
+ import { S as writePlatformConfig, a as loadConfig, b as loadWorkspaceId, c as ExecutorSchema, g as getDistDir, i as resolveInlineSourcemap, o as WorkflowJobSchema, u as ResolverSchema, v as fetchLatestToken, x as readPlatformConfig, y as loadAccessToken } from "../application-Bf8SUAtR.mjs";
10
10
  import "../seed-CWkIDWMb.mjs";
11
11
  import "../file-utils-Bctuzn3x.mjs";
12
12
  import "../kysely-type-B_IecdK9.mjs";
13
- import "../telemetry-VvNfsyEE.mjs";
14
- import { a as JSON_FOOTER_MARKER, i as CRASH_LOG_EXTENSION, o as parseCrashReportConfig, r as sendCrashReport, t as initCrashReporting } from "../crash-report-Ju8cQF-l.mjs";
13
+ import "../telemetry-BSUlYTs-.mjs";
14
+ import { a as JSON_FOOTER_MARKER, i as CRASH_LOG_EXTENSION, o as parseCrashReportConfig, r as sendCrashReport, t as initCrashReporting } from "../crash-report-DizNMVnm.mjs";
15
15
  import { createRequire, register } from "node:module";
16
16
  import { arg, defineCommand, runCommand, runMain } from "politty";
17
17
  import { withCompletionCommand } from "politty/completion";
@@ -21,14 +21,14 @@ import * as path from "pathe";
21
21
  import { generateCodeVerifier } from "@badgateway/oauth2-client";
22
22
  import { timestampDate } from "@bufbuild/protobuf/wkt";
23
23
  import { Code, ConnectError } from "@connectrpc/connect";
24
+ import * as http from "node:http";
25
+ import * as crypto from "node:crypto";
26
+ import { pathToFileURL } from "node:url";
24
27
  import { resolveTSConfig } from "pkg-types";
25
28
  import ml from "multiline-ts";
26
- import * as crypto from "node:crypto";
27
29
  import * as rolldown from "rolldown";
28
- import { pathToFileURL } from "node:url";
29
30
  import { create } from "@bufbuild/protobuf";
30
31
  import { spawn, spawnSync } from "node:child_process";
31
- import * as http from "node:http";
32
32
  import open from "open";
33
33
  import * as fs from "fs";
34
34
  import { lookup } from "mime-types";
@@ -51,7 +51,7 @@ const applyCommand = defineAppCommand({
51
51
  "clean-cache": arg(z.boolean().optional(), { description: "Clean the bundle cache before building" })
52
52
  }).strict(),
53
53
  run: async (args) => {
54
- const { initTelemetry } = await import("../telemetry-BevrwWwF.mjs");
54
+ const { initTelemetry } = await import("../telemetry-BtN2l0f1.mjs");
55
55
  await initTelemetry();
56
56
  await apply({
57
57
  workspaceId: args["workspace-id"],
@@ -324,7 +324,6 @@ async function bundleForTestRun(options) {
324
324
  const baseName = `test-run--${detected.name}`;
325
325
  const scriptName = `${baseName}.js`;
326
326
  const entryPath = path.join(outputDir, `${baseName}.entry.js`);
327
- const outputPath = path.join(outputDir, scriptName);
328
327
  const entryContent = generateEntry(detected, sourceFile, env, machineUser, workspaceId);
329
328
  fs$1.writeFileSync(entryPath, entryContent);
330
329
  let tsconfig;
@@ -333,25 +332,24 @@ async function bundleForTestRun(options) {
333
332
  } catch {
334
333
  tsconfig = void 0;
335
334
  }
336
- await rolldown.build(rolldown.defineConfig({
337
- input: entryPath,
338
- output: {
339
- file: outputPath,
340
- format: "esm",
341
- sourcemap: inlineSourcemap ? "inline" : true,
342
- minify: inlineSourcemap ? { mangle: { keepNames: true } } : true,
343
- codeSplitting: false
344
- },
345
- tsconfig,
346
- treeshake: {
347
- moduleSideEffects: false,
348
- annotations: true,
349
- unknownGlobalSideEffects: false
350
- },
351
- logLevel: "silent"
352
- }));
353
335
  return {
354
- bundledCode: fs$1.readFileSync(outputPath, "utf-8"),
336
+ bundledCode: (await rolldown.build({
337
+ input: entryPath,
338
+ write: false,
339
+ output: {
340
+ format: "esm",
341
+ sourcemap: inlineSourcemap ? "inline" : true,
342
+ minify: inlineSourcemap ? { mangle: { keepNames: true } } : true,
343
+ codeSplitting: false
344
+ },
345
+ tsconfig,
346
+ treeshake: {
347
+ moduleSideEffects: false,
348
+ annotations: true,
349
+ unknownGlobalSideEffects: false
350
+ },
351
+ logLevel: "silent"
352
+ })).output[0].code,
355
353
  scriptName
356
354
  };
357
355
  }
@@ -617,7 +615,7 @@ When a \`.js\` file is provided, detection and bundling are skipped and the file
617
615
  desc: "Run a specific workflow job by name"
618
616
  },
619
617
  {
620
- cmd: ".tailor-sdk/resolvers/add.js --arg '{\"input\":{\"a\":1,\"b\":2}}'",
618
+ cmd: "build/resolvers/add.js --arg '{\"input\":{\"a\":1,\"b\":2}}'",
621
619
  desc: "Run a pre-bundled .js file directly"
622
620
  }
623
621
  ],
@@ -808,7 +806,7 @@ const generateCommand = defineAppCommand({
808
806
  })
809
807
  }).strict(),
810
808
  run: async (args) => {
811
- const { initTelemetry } = await import("../telemetry-BevrwWwF.mjs");
809
+ const { initTelemetry } = await import("../telemetry-BtN2l0f1.mjs");
812
810
  await initTelemetry();
813
811
  await generate({
814
812
  configPath: args.config,
@@ -935,13 +933,46 @@ const startAuthServer = async () => {
935
933
  });
936
934
  });
937
935
  };
936
+ async function loginAsMachineUser(args) {
937
+ const clientSecret = args.clientSecret ?? await prompt.password({ message: "Client secret" });
938
+ const tokens = await fetchPlatformMachineUserToken(args.clientId, clientSecret);
939
+ const pfConfig = readPlatformConfig();
940
+ pfConfig.users = {
941
+ ...pfConfig.users,
942
+ [args.clientId]: {
943
+ access_token: tokens.accessToken,
944
+ token_expires_at: new Date(tokens.expiresAt).toISOString()
945
+ }
946
+ };
947
+ pfConfig.current_user = args.clientId;
948
+ writePlatformConfig(pfConfig);
949
+ }
938
950
  const loginCommand = defineAppCommand({
939
951
  name: "login",
940
952
  description: "Login to Tailor Platform.",
941
- args: z.object({}).strict(),
942
- run: async () => {
943
- await startAuthServer();
953
+ args: z.xor([z.object({}).strict().describe("User Login"), z.object({
954
+ machineuser: arg(z.literal(true), {
955
+ description: "Login as a platform machine user.",
956
+ required: true
957
+ }),
958
+ "client-id": arg(z.string(), {
959
+ description: "Client ID",
960
+ env: "TAILOR_PLATFORM_MACHINE_USER_CLIENT_ID",
961
+ required: true
962
+ }),
963
+ "client-secret": arg(z.string().optional(), {
964
+ description: "Client secret",
965
+ env: "TAILOR_PLATFORM_MACHINE_USER_CLIENT_SECRET"
966
+ })
967
+ }).strict().describe("Machine User Login")]),
968
+ run: async (args) => {
969
+ if ("machineuser" in args && args.machineuser) await loginAsMachineUser({
970
+ clientId: args.clientId,
971
+ clientSecret: args.clientSecret
972
+ });
973
+ else await startAuthServer();
944
974
  logger.success("Successfully logged in to Tailor Platform.");
975
+ await closeConnectionPool();
945
976
  }
946
977
  });
947
978
 
@@ -958,11 +989,13 @@ const logoutCommand = defineAppCommand({
958
989
  logger.info("You are not logged in.");
959
990
  return;
960
991
  }
961
- initOAuth2Client().revoke({
992
+ const client = initOAuth2Client();
993
+ const tokenTypeHint = tokens.refresh_token ? "refresh_token" : "access_token";
994
+ client.revoke({
962
995
  accessToken: tokens.access_token,
963
- refreshToken: tokens.refresh_token,
996
+ refreshToken: tokens.refresh_token ?? null,
964
997
  expiresAt: Date.parse(tokens.token_expires_at)
965
- }, "refresh_token");
998
+ }, tokenTypeHint);
966
999
  delete pfConfig.users[pfConfig.current_user];
967
1000
  pfConfig.current_user = null;
968
1001
  writePlatformConfig(pfConfig);
@@ -1026,6 +1059,37 @@ const openCommand = defineAppCommand({
1026
1059
  }
1027
1060
  });
1028
1061
 
1062
+ //#endregion
1063
+ //#region src/cli/commands/organization/folder/index.ts
1064
+ const folderCommand = defineCommand({
1065
+ name: "folder",
1066
+ description: "Manage organization folders.",
1067
+ subCommands: {
1068
+ create: createCommand$3,
1069
+ delete: deleteCommand$3,
1070
+ get: getCommand$3,
1071
+ list: listCommand$9,
1072
+ update: updateCommand$2
1073
+ }
1074
+ });
1075
+
1076
+ //#endregion
1077
+ //#region src/cli/commands/organization/index.ts
1078
+ const organizationCommand = defineCommand({
1079
+ name: "organization",
1080
+ description: "Manage Tailor Platform organizations.",
1081
+ subCommands: {
1082
+ folder: folderCommand,
1083
+ get: getCommand$4,
1084
+ list: listCommand$10,
1085
+ tree: treeCommand,
1086
+ update: updateCommand$3
1087
+ },
1088
+ async run() {
1089
+ await runCommand(listCommand$10, []);
1090
+ }
1091
+ });
1092
+
1029
1093
  //#endregion
1030
1094
  //#region src/cli/commands/profile/create.ts
1031
1095
  const createCommand$2 = defineAppCommand({
@@ -3072,14 +3136,14 @@ const workflowCommand = defineCommand({
3072
3136
  name: "workflow",
3073
3137
  description: "Manage workflows and workflow executions.",
3074
3138
  subCommands: {
3075
- list: listCommand$9,
3076
- get: getCommand$3,
3139
+ list: listCommand$11,
3140
+ get: getCommand$5,
3077
3141
  start: startCommand,
3078
3142
  executions: executionsCommand,
3079
3143
  resume: resumeCommand
3080
3144
  },
3081
3145
  async run() {
3082
- await runCommand(listCommand$9, []);
3146
+ await runCommand(listCommand$11, []);
3083
3147
  }
3084
3148
  });
3085
3149
 
@@ -3090,10 +3154,10 @@ const appCommand = defineCommand({
3090
3154
  description: "Manage workspace applications",
3091
3155
  subCommands: {
3092
3156
  health: healthCommand,
3093
- list: listCommand$10
3157
+ list: listCommand$12
3094
3158
  },
3095
3159
  async run() {
3096
- await runCommand(listCommand$10, []);
3160
+ await runCommand(listCommand$12, []);
3097
3161
  }
3098
3162
  });
3099
3163
 
@@ -3104,12 +3168,12 @@ const userCommand = defineCommand({
3104
3168
  description: "Manage workspace users",
3105
3169
  subCommands: {
3106
3170
  invite: inviteCommand,
3107
- list: listCommand$11,
3171
+ list: listCommand$13,
3108
3172
  remove: removeCommand,
3109
- update: updateCommand$2
3173
+ update: updateCommand$4
3110
3174
  },
3111
3175
  async run() {
3112
- await runCommand(listCommand$11, []);
3176
+ await runCommand(listCommand$13, []);
3113
3177
  }
3114
3178
  });
3115
3179
 
@@ -3120,15 +3184,15 @@ const workspaceCommand = defineCommand({
3120
3184
  description: "Manage Tailor Platform workspaces.",
3121
3185
  subCommands: {
3122
3186
  app: appCommand,
3123
- create: createCommand$3,
3124
- delete: deleteCommand$3,
3125
- get: getCommand$4,
3126
- list: listCommand$12,
3187
+ create: createCommand$4,
3188
+ delete: deleteCommand$4,
3189
+ get: getCommand$6,
3190
+ list: listCommand$14,
3127
3191
  restore: restoreCommand,
3128
3192
  user: userCommand
3129
3193
  },
3130
3194
  async run() {
3131
- await runCommand(listCommand$12, []);
3195
+ await runCommand(listCommand$14, []);
3132
3196
  }
3133
3197
  });
3134
3198
 
@@ -3154,6 +3218,7 @@ const mainCommand = withCompletionCommand(defineCommand({
3154
3218
  machineuser: machineuserCommand,
3155
3219
  oauth2client: oauth2clientCommand,
3156
3220
  open: openCommand,
3221
+ organization: organizationCommand,
3157
3222
  profile: profileCommand,
3158
3223
  query: queryCommand,
3159
3224
  remove: removeCommand$1,
@@ -3170,6 +3235,7 @@ const mainCommand = withCompletionCommand(defineCommand({
3170
3235
  runMain(mainCommand, {
3171
3236
  version: packageJson.version,
3172
3237
  globalArgs: z.object(commonArgs),
3238
+ displayErrors: false,
3173
3239
  cleanup: async ({ error }) => {
3174
3240
  if (error) {
3175
3241
  if (isCLIError(error)) {
@@ -3180,11 +3246,11 @@ runMain(mainCommand, {
3180
3246
  if (isVerbose() && error.stack) logger.debug(`\nStack trace:\n${error.stack}`);
3181
3247
  } else logger.error(`Unknown error: ${error}`);
3182
3248
  if (!isCLIError(error) && (!(error instanceof Error) || error instanceof TypeError || error instanceof RangeError)) {
3183
- const { reportCrash } = await import("../crash-report-Cot_9Esm.mjs");
3249
+ const { reportCrash } = await import("../crash-report-CYrETw1c.mjs");
3184
3250
  await reportCrash(error, "handledError");
3185
3251
  }
3186
3252
  }
3187
- const { shutdownTelemetry } = await import("../telemetry-BevrwWwF.mjs");
3253
+ const { shutdownTelemetry } = await import("../telemetry-BtN2l0f1.mjs");
3188
3254
  await shutdownTelemetry();
3189
3255
  }
3190
3256
  });