@base44-preview/cli 0.0.15-pr.104.996eeac → 0.0.15-pr.104.dcaa6b4

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 (2) hide show
  1. package/dist/cli/index.js +106 -107
  2. package/package.json +1 -1
package/dist/cli/index.js CHANGED
@@ -4,7 +4,7 @@ import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:
4
4
  import childProcess, { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
5
5
  import path, { basename, dirname, join, posix, resolve, win32 } from "node:path";
6
6
  import fs, { appendFileSync, createReadStream, createWriteStream, readFileSync, statSync, writeFileSync } from "node:fs";
7
- import y, { execArgv, execPath, hrtime, platform, stdin, stdout } from "node:process";
7
+ import process$1, { execArgv, execPath, hrtime, platform, stdin, stdout } from "node:process";
8
8
  import { aborted, callbackify, debuglog, inspect, promisify, stripVTControlCharacters } from "node:util";
9
9
  import * as g from "node:readline";
10
10
  import O from "node:readline";
@@ -894,7 +894,7 @@ var require_command = /* @__PURE__ */ __commonJSMin(((exports) => {
894
894
  const childProcess$1 = __require("node:child_process");
895
895
  const path$15 = __require("node:path");
896
896
  const fs$10 = __require("node:fs");
897
- const process$3 = __require("node:process");
897
+ const process$4 = __require("node:process");
898
898
  const { Argument, humanReadableArgName } = require_argument();
899
899
  const { CommanderError } = require_error$1();
900
900
  const { Help } = require_help();
@@ -945,10 +945,10 @@ var require_command = /* @__PURE__ */ __commonJSMin(((exports) => {
945
945
  this._showHelpAfterError = false;
946
946
  this._showSuggestionAfterError = true;
947
947
  this._outputConfiguration = {
948
- writeOut: (str) => process$3.stdout.write(str),
949
- writeErr: (str) => process$3.stderr.write(str),
950
- getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
951
- getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
948
+ writeOut: (str) => process$4.stdout.write(str),
949
+ writeErr: (str) => process$4.stderr.write(str),
950
+ getOutHelpWidth: () => process$4.stdout.isTTY ? process$4.stdout.columns : void 0,
951
+ getErrHelpWidth: () => process$4.stderr.isTTY ? process$4.stderr.columns : void 0,
952
952
  outputError: (str, write) => write(str)
953
953
  };
954
954
  this._hidden = false;
@@ -1302,7 +1302,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1302
1302
  */
1303
1303
  _exit(exitCode, code$1, message) {
1304
1304
  if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code$1, message));
1305
- process$3.exit(exitCode);
1305
+ process$4.exit(exitCode);
1306
1306
  }
1307
1307
  /**
1308
1308
  * Register callback `fn` for the command.
@@ -1641,11 +1641,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
1641
1641
  if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
1642
1642
  parseOptions = parseOptions || {};
1643
1643
  if (argv === void 0 && parseOptions.from === void 0) {
1644
- if (process$3.versions?.electron) parseOptions.from = "electron";
1645
- const execArgv$1 = process$3.execArgv ?? [];
1644
+ if (process$4.versions?.electron) parseOptions.from = "electron";
1645
+ const execArgv$1 = process$4.execArgv ?? [];
1646
1646
  if (execArgv$1.includes("-e") || execArgv$1.includes("--eval") || execArgv$1.includes("-p") || execArgv$1.includes("--print")) parseOptions.from = "eval";
1647
1647
  }
1648
- if (argv === void 0) argv = process$3.argv;
1648
+ if (argv === void 0) argv = process$4.argv;
1649
1649
  this.rawArgs = argv.slice();
1650
1650
  let userArgs;
1651
1651
  switch (parseOptions.from) {
@@ -1655,7 +1655,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1655
1655
  userArgs = argv.slice(2);
1656
1656
  break;
1657
1657
  case "electron":
1658
- if (process$3.defaultApp) {
1658
+ if (process$4.defaultApp) {
1659
1659
  this._scriptPath = argv[1];
1660
1660
  userArgs = argv.slice(2);
1661
1661
  } else userArgs = argv.slice(1);
@@ -1769,15 +1769,15 @@ Expecting one of '${allowedValues.join("', '")}'`);
1769
1769
  }
1770
1770
  launchWithNode = sourceExt.includes(path$15.extname(executableFile));
1771
1771
  let proc$1;
1772
- if (process$3.platform !== "win32") if (launchWithNode) {
1772
+ if (process$4.platform !== "win32") if (launchWithNode) {
1773
1773
  args.unshift(executableFile);
1774
- args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
1775
- proc$1 = childProcess$1.spawn(process$3.argv[0], args, { stdio: "inherit" });
1774
+ args = incrementNodeInspectorPort(process$4.execArgv).concat(args);
1775
+ proc$1 = childProcess$1.spawn(process$4.argv[0], args, { stdio: "inherit" });
1776
1776
  } else proc$1 = childProcess$1.spawn(executableFile, args, { stdio: "inherit" });
1777
1777
  else {
1778
1778
  args.unshift(executableFile);
1779
- args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
1780
- proc$1 = childProcess$1.spawn(process$3.execPath, args, { stdio: "inherit" });
1779
+ args = incrementNodeInspectorPort(process$4.execArgv).concat(args);
1780
+ proc$1 = childProcess$1.spawn(process$4.execPath, args, { stdio: "inherit" });
1781
1781
  }
1782
1782
  if (!proc$1.killed) [
1783
1783
  "SIGUSR1",
@@ -1786,14 +1786,14 @@ Expecting one of '${allowedValues.join("', '")}'`);
1786
1786
  "SIGINT",
1787
1787
  "SIGHUP"
1788
1788
  ].forEach((signal) => {
1789
- process$3.on(signal, () => {
1789
+ process$4.on(signal, () => {
1790
1790
  if (proc$1.killed === false && proc$1.exitCode === null) proc$1.kill(signal);
1791
1791
  });
1792
1792
  });
1793
1793
  const exitCallback = this._exitCallback;
1794
1794
  proc$1.on("close", (code$1) => {
1795
1795
  code$1 = code$1 ?? 1;
1796
- if (!exitCallback) process$3.exit(code$1);
1796
+ if (!exitCallback) process$4.exit(code$1);
1797
1797
  else exitCallback(new CommanderError(code$1, "commander.executeSubCommandAsync", "(close)"));
1798
1798
  });
1799
1799
  proc$1.on("error", (err) => {
@@ -1805,7 +1805,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1805
1805
  - ${executableDirMessage}`;
1806
1806
  throw new Error(executableMissing);
1807
1807
  } else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
1808
- if (!exitCallback) process$3.exit(1);
1808
+ if (!exitCallback) process$4.exit(1);
1809
1809
  else {
1810
1810
  const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
1811
1811
  wrappedError.nestedError = err;
@@ -2211,13 +2211,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
2211
2211
  */
2212
2212
  _parseOptionsEnv() {
2213
2213
  this.options.forEach((option) => {
2214
- if (option.envVar && option.envVar in process$3.env) {
2214
+ if (option.envVar && option.envVar in process$4.env) {
2215
2215
  const optionKey = option.attributeName();
2216
2216
  if (this.getOptionValue(optionKey) === void 0 || [
2217
2217
  "default",
2218
2218
  "config",
2219
2219
  "env"
2220
- ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
2220
+ ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$4.env[option.envVar]);
2221
2221
  else this.emit(`optionEnv:${option.name()}`);
2222
2222
  }
2223
2223
  });
@@ -2596,7 +2596,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2596
2596
  */
2597
2597
  help(contextOptions) {
2598
2598
  this.outputHelp(contextOptions);
2599
- let exitCode = process$3.exitCode || 0;
2599
+ let exitCode = process$4.exitCode || 0;
2600
2600
  if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
2601
2601
  this._exit(exitCode, "commander.help", "(outputHelp)");
2602
2602
  }
@@ -2712,16 +2712,16 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2712
2712
  const CSI = `${ESC}[`;
2713
2713
  const beep = "\x07";
2714
2714
  const cursor = {
2715
- to(x$2, y$2) {
2716
- if (!y$2) return `${CSI}${x$2 + 1}G`;
2717
- return `${CSI}${y$2 + 1};${x$2 + 1}H`;
2715
+ to(x$2, y$1) {
2716
+ if (!y$1) return `${CSI}${x$2 + 1}G`;
2717
+ return `${CSI}${y$1 + 1};${x$2 + 1}H`;
2718
2718
  },
2719
- move(x$2, y$2) {
2719
+ move(x$2, y$1) {
2720
2720
  let ret = "";
2721
2721
  if (x$2 < 0) ret += `${CSI}${-x$2}D`;
2722
2722
  else if (x$2 > 0) ret += `${CSI}${x$2}C`;
2723
- if (y$2 < 0) ret += `${CSI}${-y$2}A`;
2724
- else if (y$2 > 0) ret += `${CSI}${y$2}B`;
2723
+ if (y$1 < 0) ret += `${CSI}${-y$1}A`;
2724
+ else if (y$1 > 0) ret += `${CSI}${y$1}B`;
2725
2725
  return ret;
2726
2726
  },
2727
2727
  up: (count$1 = 1) => `${CSI}${count$1}A`,
@@ -3031,13 +3031,13 @@ function rD() {
3031
3031
  }
3032
3032
  }), r;
3033
3033
  }
3034
- const ED = rD(), d$1 = new Set(["\x1B", "›"]), oD = 39, y$1 = "\x07", V$1 = "[", nD = "]", G$1 = "m", _$1 = `${nD}8;;`, z = (e$1) => `${d$1.values().next().value}${V$1}${e$1}${G$1}`, K$1 = (e$1) => `${d$1.values().next().value}${_$1}${e$1}${y$1}`, aD = (e$1) => e$1.split(" ").map((u$2) => p(u$2)), k$1 = (e$1, u$2, t) => {
3034
+ const ED = rD(), d$1 = new Set(["\x1B", "›"]), oD = 39, y = "\x07", V$1 = "[", nD = "]", G$1 = "m", _$1 = `${nD}8;;`, z = (e$1) => `${d$1.values().next().value}${V$1}${e$1}${G$1}`, K$1 = (e$1) => `${d$1.values().next().value}${_$1}${e$1}${y}`, aD = (e$1) => e$1.split(" ").map((u$2) => p(u$2)), k$1 = (e$1, u$2, t) => {
3035
3035
  const F$1 = [...u$2];
3036
3036
  let s = !1, i$1 = !1, D$1 = p(P$1(e$1[e$1.length - 1]));
3037
3037
  for (const [C$1, n$1] of F$1.entries()) {
3038
3038
  const E = p(n$1);
3039
3039
  if (D$1 + E <= t ? e$1[e$1.length - 1] += n$1 : (e$1.push(n$1), D$1 = 0), d$1.has(n$1) && (s = !0, i$1 = F$1.slice(C$1 + 1).join("").startsWith(_$1)), s) {
3040
- i$1 ? n$1 === y$1 && (s = !1, i$1 = !1) : n$1 === G$1 && (s = !1);
3040
+ i$1 ? n$1 === y && (s = !1, i$1 = !1) : n$1 === G$1 && (s = !1);
3041
3041
  continue;
3042
3042
  }
3043
3043
  D$1 += E, D$1 === t && C$1 < F$1.length - 1 && (e$1.push(""), D$1 = 0);
@@ -3079,7 +3079,7 @@ const ED = rD(), d$1 = new Set(["\x1B", "›"]), oD = 39, y$1 = "\x07", V$1 = "["
3079
3079
  `)];
3080
3080
  for (const [E, a$1] of n$1.entries()) {
3081
3081
  if (F$1 += a$1, d$1.has(a$1)) {
3082
- const { groups: c$1 } = (/* @__PURE__ */ new RegExp(`(?:\\${V$1}(?<code>\\d+)m|\\${_$1}(?<uri>.*)${y$1})`)).exec(n$1.slice(E).join("")) || { groups: {} };
3082
+ const { groups: c$1 } = (/* @__PURE__ */ new RegExp(`(?:\\${V$1}(?<code>\\d+)m|\\${_$1}(?<uri>.*)${y})`)).exec(n$1.slice(E).join("")) || { groups: {} };
3083
3083
  if (c$1.code !== void 0) {
3084
3084
  const f = Number.parseFloat(c$1.code);
3085
3085
  s = f === oD ? void 0 : f;
@@ -3480,7 +3480,7 @@ var RD = class extends x$1 {
3480
3480
  //#endregion
3481
3481
  //#region node_modules/@clack/prompts/dist/index.mjs
3482
3482
  function ce() {
3483
- return y.platform !== "win32" ? y.env.TERM !== "linux" : !!y.env.CI || !!y.env.WT_SESSION || !!y.env.TERMINUS_SUBLIME || y.env.ConEmuTask === "{cmd::Cmder}" || y.env.TERM_PROGRAM === "Terminus-Sublime" || y.env.TERM_PROGRAM === "vscode" || y.env.TERM === "xterm-256color" || y.env.TERM === "alacritty" || y.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
3483
+ return process$1.platform !== "win32" ? process$1.env.TERM !== "linux" : !!process$1.env.CI || !!process$1.env.WT_SESSION || !!process$1.env.TERMINUS_SUBLIME || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
3484
3484
  }
3485
3485
  const V = ce(), u$1 = (t, n$1) => V ? t : n$1, le = u$1("◆", "*"), L = u$1("■", "x"), W = u$1("▲", "x"), C = u$1("◇", "o"), ue = u$1("┌", "T"), o$1 = u$1("│", "|"), d = u$1("└", "—"), k = u$1("●", ">"), P = u$1("○", " "), A = u$1("◻", "[•]"), T = u$1("◼", "[+]"), F = u$1("◻", "[ ]"), $e = u$1("▪", "•"), _ = u$1("─", "-"), me = u$1("╮", "+"), de = u$1("├", "+"), pe = u$1("╯", "+"), q = u$1("●", "•"), D = u$1("◆", "*"), U = u$1("▲", "!"), K = u$1("■", "x"), b = (t) => {
3486
3486
  switch (t) {
@@ -6745,7 +6745,7 @@ function initializeContext(params) {
6745
6745
  external: params?.external ?? void 0
6746
6746
  };
6747
6747
  }
6748
- function process$2(schema, ctx, _params = {
6748
+ function process$3(schema, ctx, _params = {
6749
6749
  path: [],
6750
6750
  schemaPath: []
6751
6751
  }) {
@@ -6782,7 +6782,7 @@ function process$2(schema, ctx, _params = {
6782
6782
  const parent = schema._zod.parent;
6783
6783
  if (parent) {
6784
6784
  if (!result.ref) result.ref = parent;
6785
- process$2(parent, ctx, params);
6785
+ process$3(parent, ctx, params);
6786
6786
  ctx.seen.get(parent).isParent = true;
6787
6787
  }
6788
6788
  }
@@ -6994,7 +6994,7 @@ const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
6994
6994
  ...params,
6995
6995
  processors
6996
6996
  });
6997
- process$2(schema, ctx);
6997
+ process$3(schema, ctx);
6998
6998
  extractDefs(ctx, schema);
6999
6999
  return finalize(ctx, schema);
7000
7000
  };
@@ -7006,7 +7006,7 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
7006
7006
  io,
7007
7007
  processors
7008
7008
  });
7009
- process$2(schema, ctx);
7009
+ process$3(schema, ctx);
7010
7010
  extractDefs(ctx, schema);
7011
7011
  return finalize(ctx, schema);
7012
7012
  };
@@ -7093,7 +7093,7 @@ const arrayProcessor = (schema, ctx, _json, params) => {
7093
7093
  if (typeof minimum === "number") json.minItems = minimum;
7094
7094
  if (typeof maximum === "number") json.maxItems = maximum;
7095
7095
  json.type = "array";
7096
- json.items = process$2(def.element, ctx, {
7096
+ json.items = process$3(def.element, ctx, {
7097
7097
  ...params,
7098
7098
  path: [...params.path, "items"]
7099
7099
  });
@@ -7104,7 +7104,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
7104
7104
  json.type = "object";
7105
7105
  json.properties = {};
7106
7106
  const shape = def.shape;
7107
- for (const key in shape) json.properties[key] = process$2(shape[key], ctx, {
7107
+ for (const key in shape) json.properties[key] = process$3(shape[key], ctx, {
7108
7108
  ...params,
7109
7109
  path: [
7110
7110
  ...params.path,
@@ -7122,7 +7122,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
7122
7122
  if (def.catchall?._zod.def.type === "never") json.additionalProperties = false;
7123
7123
  else if (!def.catchall) {
7124
7124
  if (ctx.io === "output") json.additionalProperties = false;
7125
- } else if (def.catchall) json.additionalProperties = process$2(def.catchall, ctx, {
7125
+ } else if (def.catchall) json.additionalProperties = process$3(def.catchall, ctx, {
7126
7126
  ...params,
7127
7127
  path: [...params.path, "additionalProperties"]
7128
7128
  });
@@ -7130,7 +7130,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
7130
7130
  const unionProcessor = (schema, ctx, json, params) => {
7131
7131
  const def = schema._zod.def;
7132
7132
  const isExclusive = def.inclusive === false;
7133
- const options = def.options.map((x$2, i$1) => process$2(x$2, ctx, {
7133
+ const options = def.options.map((x$2, i$1) => process$3(x$2, ctx, {
7134
7134
  ...params,
7135
7135
  path: [
7136
7136
  ...params.path,
@@ -7143,7 +7143,7 @@ const unionProcessor = (schema, ctx, json, params) => {
7143
7143
  };
7144
7144
  const intersectionProcessor = (schema, ctx, json, params) => {
7145
7145
  const def = schema._zod.def;
7146
- const a$1 = process$2(def.left, ctx, {
7146
+ const a$1 = process$3(def.left, ctx, {
7147
7147
  ...params,
7148
7148
  path: [
7149
7149
  ...params.path,
@@ -7151,7 +7151,7 @@ const intersectionProcessor = (schema, ctx, json, params) => {
7151
7151
  0
7152
7152
  ]
7153
7153
  });
7154
- const b$2 = process$2(def.right, ctx, {
7154
+ const b$2 = process$3(def.right, ctx, {
7155
7155
  ...params,
7156
7156
  path: [
7157
7157
  ...params.path,
@@ -7168,7 +7168,7 @@ const tupleProcessor = (schema, ctx, _json, params) => {
7168
7168
  json.type = "array";
7169
7169
  const prefixPath$1 = ctx.target === "draft-2020-12" ? "prefixItems" : "items";
7170
7170
  const restPath = ctx.target === "draft-2020-12" ? "items" : ctx.target === "openapi-3.0" ? "items" : "additionalItems";
7171
- const prefixItems = def.items.map((x$2, i$1) => process$2(x$2, ctx, {
7171
+ const prefixItems = def.items.map((x$2, i$1) => process$3(x$2, ctx, {
7172
7172
  ...params,
7173
7173
  path: [
7174
7174
  ...params.path,
@@ -7176,7 +7176,7 @@ const tupleProcessor = (schema, ctx, _json, params) => {
7176
7176
  i$1
7177
7177
  ]
7178
7178
  }));
7179
- const rest = def.rest ? process$2(def.rest, ctx, {
7179
+ const rest = def.rest ? process$3(def.rest, ctx, {
7180
7180
  ...params,
7181
7181
  path: [
7182
7182
  ...params.path,
@@ -7207,7 +7207,7 @@ const recordProcessor = (schema, ctx, _json, params) => {
7207
7207
  const keyType = def.keyType;
7208
7208
  const patterns = keyType._zod.bag?.patterns;
7209
7209
  if (def.mode === "loose" && patterns && patterns.size > 0) {
7210
- const valueSchema = process$2(def.valueType, ctx, {
7210
+ const valueSchema = process$3(def.valueType, ctx, {
7211
7211
  ...params,
7212
7212
  path: [
7213
7213
  ...params.path,
@@ -7218,11 +7218,11 @@ const recordProcessor = (schema, ctx, _json, params) => {
7218
7218
  json.patternProperties = {};
7219
7219
  for (const pattern of patterns) json.patternProperties[pattern.source] = valueSchema;
7220
7220
  } else {
7221
- if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") json.propertyNames = process$2(def.keyType, ctx, {
7221
+ if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") json.propertyNames = process$3(def.keyType, ctx, {
7222
7222
  ...params,
7223
7223
  path: [...params.path, "propertyNames"]
7224
7224
  });
7225
- json.additionalProperties = process$2(def.valueType, ctx, {
7225
+ json.additionalProperties = process$3(def.valueType, ctx, {
7226
7226
  ...params,
7227
7227
  path: [...params.path, "additionalProperties"]
7228
7228
  });
@@ -7235,7 +7235,7 @@ const recordProcessor = (schema, ctx, _json, params) => {
7235
7235
  };
7236
7236
  const nullableProcessor = (schema, ctx, json, params) => {
7237
7237
  const def = schema._zod.def;
7238
- const inner = process$2(def.innerType, ctx, params);
7238
+ const inner = process$3(def.innerType, ctx, params);
7239
7239
  const seen = ctx.seen.get(schema);
7240
7240
  if (ctx.target === "openapi-3.0") {
7241
7241
  seen.ref = def.innerType;
@@ -7244,27 +7244,27 @@ const nullableProcessor = (schema, ctx, json, params) => {
7244
7244
  };
7245
7245
  const nonoptionalProcessor = (schema, ctx, _json, params) => {
7246
7246
  const def = schema._zod.def;
7247
- process$2(def.innerType, ctx, params);
7247
+ process$3(def.innerType, ctx, params);
7248
7248
  const seen = ctx.seen.get(schema);
7249
7249
  seen.ref = def.innerType;
7250
7250
  };
7251
7251
  const defaultProcessor = (schema, ctx, json, params) => {
7252
7252
  const def = schema._zod.def;
7253
- process$2(def.innerType, ctx, params);
7253
+ process$3(def.innerType, ctx, params);
7254
7254
  const seen = ctx.seen.get(schema);
7255
7255
  seen.ref = def.innerType;
7256
7256
  json.default = JSON.parse(JSON.stringify(def.defaultValue));
7257
7257
  };
7258
7258
  const prefaultProcessor = (schema, ctx, json, params) => {
7259
7259
  const def = schema._zod.def;
7260
- process$2(def.innerType, ctx, params);
7260
+ process$3(def.innerType, ctx, params);
7261
7261
  const seen = ctx.seen.get(schema);
7262
7262
  seen.ref = def.innerType;
7263
7263
  if (ctx.io === "input") json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
7264
7264
  };
7265
7265
  const catchProcessor = (schema, ctx, json, params) => {
7266
7266
  const def = schema._zod.def;
7267
- process$2(def.innerType, ctx, params);
7267
+ process$3(def.innerType, ctx, params);
7268
7268
  const seen = ctx.seen.get(schema);
7269
7269
  seen.ref = def.innerType;
7270
7270
  let catchValue;
@@ -7278,20 +7278,20 @@ const catchProcessor = (schema, ctx, json, params) => {
7278
7278
  const pipeProcessor = (schema, ctx, _json, params) => {
7279
7279
  const def = schema._zod.def;
7280
7280
  const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
7281
- process$2(innerType, ctx, params);
7281
+ process$3(innerType, ctx, params);
7282
7282
  const seen = ctx.seen.get(schema);
7283
7283
  seen.ref = innerType;
7284
7284
  };
7285
7285
  const readonlyProcessor = (schema, ctx, json, params) => {
7286
7286
  const def = schema._zod.def;
7287
- process$2(def.innerType, ctx, params);
7287
+ process$3(def.innerType, ctx, params);
7288
7288
  const seen = ctx.seen.get(schema);
7289
7289
  seen.ref = def.innerType;
7290
7290
  json.readOnly = true;
7291
7291
  };
7292
7292
  const optionalProcessor = (schema, ctx, _json, params) => {
7293
7293
  const def = schema._zod.def;
7294
- process$2(def.innerType, ctx, params);
7294
+ process$3(def.innerType, ctx, params);
7295
7295
  const seen = ctx.seen.get(schema);
7296
7296
  seen.ref = def.innerType;
7297
7297
  };
@@ -16345,7 +16345,7 @@ const createIgnorePredicate = (patterns, cwd, baseDir) => {
16345
16345
  };
16346
16346
  const normalizeOptions$2 = (options = {}) => {
16347
16347
  const ignoreOption = options.ignore ? Array.isArray(options.ignore) ? options.ignore : [options.ignore] : [];
16348
- const cwd = toPath$1(options.cwd) ?? y.cwd();
16348
+ const cwd = toPath$1(options.cwd) ?? process$1.cwd();
16349
16349
  const deep = typeof options.deep === "number" ? Math.max(0, options.deep) + 1 : Number.POSITIVE_INFINITY;
16350
16350
  return {
16351
16351
  cwd,
@@ -16442,7 +16442,7 @@ const getDirectoryGlob = ({ directoryPath, files, extensions }) => {
16442
16442
  const extensionGlob = extensions?.length > 0 ? `.${extensions.length > 1 ? `{${extensions.join(",")}}` : extensions[0]}` : "";
16443
16443
  return files ? files.map((file) => path.posix.join(directoryPath, `**/${path.extname(file) ? file : `${file}${extensionGlob}`}`)) : [path.posix.join(directoryPath, `**${extensionGlob ? `/*${extensionGlob}` : ""}`)];
16444
16444
  };
16445
- const directoryToGlob = async (directoryPaths, { cwd = y.cwd(), files, extensions, fs: fsImplementation } = {}) => {
16445
+ const directoryToGlob = async (directoryPaths, { cwd = process$1.cwd(), files, extensions, fs: fsImplementation } = {}) => {
16446
16446
  return (await Promise.all(directoryPaths.map(async (directoryPath) => {
16447
16447
  if (shouldExpandGlobstarDirectory(isNegativePattern(directoryPath) ? directoryPath.slice(1) : directoryPath)) return getDirectoryGlob({
16448
16448
  directoryPath,
@@ -16456,7 +16456,7 @@ const directoryToGlob = async (directoryPaths, { cwd = y.cwd(), files, extension
16456
16456
  }) : directoryPath;
16457
16457
  }))).flat();
16458
16458
  };
16459
- const directoryToGlobSync = (directoryPaths, { cwd = y.cwd(), files, extensions, fs: fsImplementation } = {}) => directoryPaths.flatMap((directoryPath) => {
16459
+ const directoryToGlobSync = (directoryPaths, { cwd = process$1.cwd(), files, extensions, fs: fsImplementation } = {}) => directoryPaths.flatMap((directoryPath) => {
16460
16460
  if (shouldExpandGlobstarDirectory(isNegativePattern(directoryPath) ? directoryPath.slice(1) : directoryPath)) return getDirectoryGlob({
16461
16461
  directoryPath,
16462
16462
  files,
@@ -16552,7 +16552,7 @@ const applyIgnoreFilesAndGetFilterSync = (options) => {
16552
16552
  };
16553
16553
  const createFilterFunction = (isIgnored, cwd) => {
16554
16554
  const seen = /* @__PURE__ */ new Set();
16555
- const basePath = cwd || y.cwd();
16555
+ const basePath = cwd || process$1.cwd();
16556
16556
  const pathCache = /* @__PURE__ */ new Map();
16557
16557
  return (fastGlobResult) => {
16558
16558
  const pathKey$1 = path.normalize(fastGlobResult.path ?? fastGlobResult);
@@ -30895,13 +30895,13 @@ var ansi_styles_default = ansiStyles;
30895
30895
 
30896
30896
  //#endregion
30897
30897
  //#region node_modules/chalk/source/vendor/supports-color/index.js
30898
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : y.argv) {
30898
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
30899
30899
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
30900
30900
  const position = argv.indexOf(prefix + flag);
30901
30901
  const terminatorPosition = argv.indexOf("--");
30902
30902
  return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
30903
30903
  }
30904
- const { env } = y;
30904
+ const { env } = process$1;
30905
30905
  let flagForceColor;
30906
30906
  if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
30907
30907
  else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
@@ -30934,7 +30934,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
30934
30934
  if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
30935
30935
  const min = forceColor || 0;
30936
30936
  if (env.TERM === "dumb") return min;
30937
- if (y.platform === "win32") {
30937
+ if (process$1.platform === "win32") {
30938
30938
  const osRelease = os.release().split(".");
30939
30939
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
30940
30940
  return 1;
@@ -31676,9 +31676,9 @@ const getSubprocessResult = ({ stdout: stdout$1 }) => {
31676
31676
  //#region node_modules/execa/lib/utils/standard-stream.js
31677
31677
  const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
31678
31678
  const STANDARD_STREAMS = [
31679
- y.stdin,
31680
- y.stdout,
31681
- y.stderr
31679
+ process$1.stdin,
31680
+ process$1.stdout,
31681
+ process$1.stderr
31682
31682
  ];
31683
31683
  const STANDARD_STREAMS_ALIASES = [
31684
31684
  "stdin",
@@ -31803,9 +31803,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
31803
31803
  //#endregion
31804
31804
  //#region node_modules/is-unicode-supported/index.js
31805
31805
  function isUnicodeSupported() {
31806
- const { env: env$1 } = y;
31806
+ const { env: env$1 } = process$1;
31807
31807
  const { TERM, TERM_PROGRAM } = env$1;
31808
- if (y.platform !== "win32") return TERM !== "linux";
31808
+ if (process$1.platform !== "win32") return TERM !== "linux";
31809
31809
  return Boolean(env$1.WT_SESSION) || Boolean(env$1.TERMINUS_SUBLIME) || env$1.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env$1.TERMINAL_EMULATOR === "JetBrains-JediTerm";
31810
31810
  }
31811
31811
 
@@ -32732,7 +32732,7 @@ const TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
32732
32732
 
32733
32733
  //#endregion
32734
32734
  //#region node_modules/npm-run-path/index.js
32735
- const npmRunPath = ({ cwd = y.cwd(), path: pathOption = y.env[pathKey()], preferLocal = true, execPath: execPath$1 = y.execPath, addExecPath = true } = {}) => {
32735
+ const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath: execPath$1 = process$1.execPath, addExecPath = true } = {}) => {
32736
32736
  const cwdPath = path.resolve(toPath(cwd));
32737
32737
  const result = [];
32738
32738
  const pathParts = pathOption.split(path.delimiter);
@@ -32750,7 +32750,7 @@ const applyExecPath = (result, pathParts, execPath$1, cwdPath) => {
32750
32750
  const pathPart = path.resolve(cwdPath, toPath(execPath$1), "..");
32751
32751
  if (!pathParts.includes(pathPart)) result.push(pathPart);
32752
32752
  };
32753
- const npmRunPathEnv = ({ env: env$1 = y.env, ...options } = {}) => {
32753
+ const npmRunPathEnv = ({ env: env$1 = process$1.env, ...options } = {}) => {
32754
32754
  env$1 = { ...env$1 };
32755
32755
  const pathName = pathKey({ env: env$1 });
32756
32756
  options.path = env$1[pathName];
@@ -33885,7 +33885,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
33885
33885
  };
33886
33886
  const getDefaultCwd = () => {
33887
33887
  try {
33888
- return y.cwd();
33888
+ return process$1.cwd();
33889
33889
  } catch (error) {
33890
33890
  error.message = `The current directory does not exist.\n${error.message}`;
33891
33891
  throw error;
@@ -33920,7 +33920,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
33920
33920
  options.killSignal = normalizeKillSignal(options.killSignal);
33921
33921
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
33922
33922
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
33923
- if (y.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
33923
+ if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
33924
33924
  return {
33925
33925
  file,
33926
33926
  commandArguments,
@@ -33947,7 +33947,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
33947
33947
  });
33948
33948
  const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
33949
33949
  const env$1 = extendEnv ? {
33950
- ...y.env,
33950
+ ...process$1.env,
33951
33951
  ...envOption
33952
33952
  } : envOption;
33953
33953
  if (preferLocal || node) return npmRunPathEnv({
@@ -34947,12 +34947,12 @@ const guessStreamDirection = {
34947
34947
  }
34948
34948
  };
34949
34949
  const getStandardStreamDirection = (value) => {
34950
- if ([0, y.stdin].includes(value)) return "input";
34950
+ if ([0, process$1.stdin].includes(value)) return "input";
34951
34951
  if ([
34952
34952
  1,
34953
34953
  2,
34954
- y.stdout,
34955
- y.stderr
34954
+ process$1.stdout,
34955
+ process$1.stderr
34956
34956
  ].includes(value)) return "output";
34957
34957
  };
34958
34958
  const DEFAULT_DIRECTION = "output";
@@ -36016,9 +36016,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
36016
36016
  Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
36017
36017
  };
36018
36018
  const getIpcExport = () => {
36019
- const anyProcess = y;
36019
+ const anyProcess = process$1;
36020
36020
  const isSubprocess = true;
36021
- const ipc = y.channel !== void 0;
36021
+ const ipc = process$1.channel !== void 0;
36022
36022
  return {
36023
36023
  ...getIpcMethods(anyProcess, isSubprocess, ipc),
36024
36024
  getCancelSignal: getCancelSignal$1.bind(void 0, {
@@ -36260,7 +36260,7 @@ if (process.platform === "linux") signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SI
36260
36260
 
36261
36261
  //#endregion
36262
36262
  //#region node_modules/signal-exit/dist/mjs/index.js
36263
- const processOk = (process$4) => !!process$4 && typeof process$4 === "object" && typeof process$4.removeListener === "function" && typeof process$4.emit === "function" && typeof process$4.reallyExit === "function" && typeof process$4.listeners === "function" && typeof process$4.kill === "function" && typeof process$4.pid === "number" && typeof process$4.on === "function";
36263
+ const processOk = (process$5) => !!process$5 && typeof process$5 === "object" && typeof process$5.removeListener === "function" && typeof process$5.emit === "function" && typeof process$5.reallyExit === "function" && typeof process$5.listeners === "function" && typeof process$5.kill === "function" && typeof process$5.pid === "number" && typeof process$5.on === "function";
36264
36264
  const kExitEmitter = Symbol.for("signal-exit emitter");
36265
36265
  const global$1 = globalThis;
36266
36266
  const ObjectDefineProperty = Object.defineProperty.bind(Object);
@@ -36328,7 +36328,7 @@ var SignalExitFallback = class extends SignalExitBase {
36328
36328
  };
36329
36329
  var SignalExit = class extends SignalExitBase {
36330
36330
  /* c8 ignore start */
36331
- #hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
36331
+ #hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
36332
36332
  /* c8 ignore stop */
36333
36333
  #emitter = new Emitter();
36334
36334
  #process;
@@ -36336,15 +36336,15 @@ var SignalExit = class extends SignalExitBase {
36336
36336
  #originalProcessReallyExit;
36337
36337
  #sigListeners = {};
36338
36338
  #loaded = false;
36339
- constructor(process$4) {
36339
+ constructor(process$5) {
36340
36340
  super();
36341
- this.#process = process$4;
36341
+ this.#process = process$5;
36342
36342
  this.#sigListeners = {};
36343
36343
  for (const sig of signals) this.#sigListeners[sig] = () => {
36344
36344
  const listeners = this.#process.listeners(sig);
36345
36345
  let { count: count$1 } = this.#emitter;
36346
36346
  /* c8 ignore start */
36347
- const p$1 = process$4;
36347
+ const p$1 = process$5;
36348
36348
  if (typeof p$1.__signal_exit_emitter__ === "object" && typeof p$1.__signal_exit_emitter__.count === "number") count$1 += p$1.__signal_exit_emitter__.count;
36349
36349
  /* c8 ignore stop */
36350
36350
  if (listeners.length === count$1) {
@@ -36352,11 +36352,11 @@ var SignalExit = class extends SignalExitBase {
36352
36352
  const ret = this.#emitter.emit("exit", null, sig);
36353
36353
  /* c8 ignore start */
36354
36354
  const s = sig === "SIGHUP" ? this.#hupSig : sig;
36355
- if (!ret) process$4.kill(process$4.pid, s);
36355
+ if (!ret) process$5.kill(process$5.pid, s);
36356
36356
  }
36357
36357
  };
36358
- this.#originalProcessReallyExit = process$4.reallyExit;
36359
- this.#originalProcessEmit = process$4.emit;
36358
+ this.#originalProcessReallyExit = process$5.reallyExit;
36359
+ this.#originalProcessEmit = process$5.emit;
36360
36360
  }
36361
36361
  onExit(cb, opts) {
36362
36362
  /* c8 ignore start */
@@ -36423,8 +36423,8 @@ var SignalExit = class extends SignalExitBase {
36423
36423
  } else return og.call(this.#process, ev, ...args);
36424
36424
  }
36425
36425
  };
36426
- const process$1 = globalThis.process;
36427
- const { onExit, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
36426
+ const process$2 = globalThis.process;
36427
+ const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
36428
36428
 
36429
36429
  //#endregion
36430
36430
  //#region node_modules/execa/lib/terminate/cleanup.js
@@ -38361,7 +38361,7 @@ function isInsideContainer() {
38361
38361
  //#endregion
38362
38362
  //#region node_modules/is-wsl/index.js
38363
38363
  const isWsl = () => {
38364
- if (y.platform !== "linux") return false;
38364
+ if (process$1.platform !== "linux") return false;
38365
38365
  if (os.release().toLowerCase().includes("microsoft")) {
38366
38366
  if (isInsideContainer()) return false;
38367
38367
  return true;
@@ -38372,12 +38372,12 @@ const isWsl = () => {
38372
38372
  return false;
38373
38373
  }
38374
38374
  };
38375
- var is_wsl_default = y.env.__IS_WSL_TEST__ ? isWsl : isWsl();
38375
+ var is_wsl_default = process$1.env.__IS_WSL_TEST__ ? isWsl : isWsl();
38376
38376
 
38377
38377
  //#endregion
38378
38378
  //#region node_modules/powershell-utils/index.js
38379
38379
  const execFile$2 = promisify(childProcess.execFile);
38380
- const powerShellPath$1 = () => `${y.env.SYSTEMROOT || y.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
38380
+ const powerShellPath$1 = () => `${process$1.env.SYSTEMROOT || process$1.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
38381
38381
  const executePowerShell = async (command, options = {}) => {
38382
38382
  const { powerShellPath: psPath, ...execFileOptions } = options;
38383
38383
  const encodedCommand = executePowerShell.encodeCommand(command);
@@ -38488,7 +38488,7 @@ function defineLazyProperty(object$1, propertyName, valueGetter) {
38488
38488
  //#region node_modules/default-browser-id/index.js
38489
38489
  const execFileAsync$3 = promisify(execFile);
38490
38490
  async function defaultBrowserId() {
38491
- if (y.platform !== "darwin") throw new Error("macOS only");
38491
+ if (process$1.platform !== "darwin") throw new Error("macOS only");
38492
38492
  const { stdout: stdout$1 } = await execFileAsync$3("defaults", [
38493
38493
  "read",
38494
38494
  "com.apple.LaunchServices/com.apple.launchservices.secure",
@@ -38503,7 +38503,7 @@ async function defaultBrowserId() {
38503
38503
  //#region node_modules/run-applescript/index.js
38504
38504
  const execFileAsync$2 = promisify(execFile);
38505
38505
  async function runAppleScript(script, { humanReadableOutput = true, signal } = {}) {
38506
- if (y.platform !== "darwin") throw new Error("macOS only");
38506
+ if (process$1.platform !== "darwin") throw new Error("macOS only");
38507
38507
  const outputArguments = humanReadableOutput ? [] : ["-ss"];
38508
38508
  const execOptions = {};
38509
38509
  if (signal) execOptions.signal = signal;
@@ -38612,14 +38612,14 @@ async function defaultBrowser$1(_execFileAsync = execFileAsync$1) {
38612
38612
  const execFileAsync = promisify(execFile);
38613
38613
  const titleize = (string$2) => string$2.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, (x$2) => x$2.toUpperCase());
38614
38614
  async function defaultBrowser() {
38615
- if (y.platform === "darwin") {
38615
+ if (process$1.platform === "darwin") {
38616
38616
  const id = await defaultBrowserId();
38617
38617
  return {
38618
38618
  name: await bundleName(id),
38619
38619
  id
38620
38620
  };
38621
38621
  }
38622
- if (y.platform === "linux") {
38622
+ if (process$1.platform === "linux") {
38623
38623
  const { stdout: stdout$1 } = await execFileAsync("xdg-mime", [
38624
38624
  "query",
38625
38625
  "default",
@@ -38631,13 +38631,13 @@ async function defaultBrowser() {
38631
38631
  id
38632
38632
  };
38633
38633
  }
38634
- if (y.platform === "win32") return defaultBrowser$1();
38634
+ if (process$1.platform === "win32") return defaultBrowser$1();
38635
38635
  throw new Error("Only macOS, Linux, and Windows are supported");
38636
38636
  }
38637
38637
 
38638
38638
  //#endregion
38639
38639
  //#region node_modules/is-in-ssh/index.js
38640
- const isInSsh = Boolean(y.env.SSH_CONNECTION || y.env.SSH_CLIENT || y.env.SSH_TTY);
38640
+ const isInSsh = Boolean(process$1.env.SSH_CONNECTION || process$1.env.SSH_CLIENT || process$1.env.SSH_TTY);
38641
38641
  var is_in_ssh_default = isInSsh;
38642
38642
 
38643
38643
  //#endregion
@@ -38645,7 +38645,7 @@ var is_in_ssh_default = isInSsh;
38645
38645
  const fallbackAttemptSymbol = Symbol("fallbackAttempt");
38646
38646
  const __dirname = import.meta.url ? path.dirname(fileURLToPath(import.meta.url)) : "";
38647
38647
  const localXdgOpenPath = path.join(__dirname, "xdg-open");
38648
- const { platform: platform$1, arch } = y;
38648
+ const { platform: platform$1, arch } = process$1;
38649
38649
  const tryEachApp = async (apps$1, opener) => {
38650
38650
  if (apps$1.length === 0) return;
38651
38651
  const errors = [];
@@ -38758,7 +38758,7 @@ const baseOpen = async (options) => {
38758
38758
  await fs$1.access(localXdgOpenPath, constants$1.X_OK);
38759
38759
  exeLocalXdgOpen = true;
38760
38760
  } catch {}
38761
- command = y.versions.electron ?? (platform$1 === "android" || isBundled || !exeLocalXdgOpen) ? "xdg-open" : localXdgOpenPath;
38761
+ command = process$1.versions.electron ?? (platform$1 === "android" || isBundled || !exeLocalXdgOpen) ? "xdg-open" : localXdgOpenPath;
38762
38762
  }
38763
38763
  if (appArguments.length > 0) cliArguments.push(...appArguments);
38764
38764
  if (!options.wait) {
@@ -39130,11 +39130,6 @@ async function removeConnector(integrationType) {
39130
39130
  //#endregion
39131
39131
  //#region src/core/connectors/constants.ts
39132
39132
  /**
39133
- * OAuth polling configuration
39134
- */
39135
- const OAUTH_POLL_INTERVAL_MS = 2e3;
39136
- const OAUTH_POLL_TIMEOUT_MS = 300 * 1e3;
39137
- /**
39138
39133
  * Supported OAuth connector integrations.
39139
39134
  * Based on apper/backend/app/external_auth/models/constants.py
39140
39135
  */
@@ -39240,6 +39235,8 @@ async function removeLocalConnector(type, projectRoot) {
39240
39235
 
39241
39236
  //#endregion
39242
39237
  //#region src/cli/commands/connectors/add.ts
39238
+ const POLL_INTERVAL_MS$1 = 2e3;
39239
+ const POLL_TIMEOUT_MS$1 = 300 * 1e3;
39243
39240
  async function promptForIntegrationType() {
39244
39241
  const selected = await ve({
39245
39242
  message: "Select an integration to connect:",
@@ -39269,8 +39266,8 @@ async function waitForOAuthCompletion(integrationType, connectionId) {
39269
39266
  updateMessage("Waiting for authorization in browser...");
39270
39267
  return false;
39271
39268
  }, {
39272
- interval: OAUTH_POLL_INTERVAL_MS,
39273
- timeout: OAUTH_POLL_TIMEOUT_MS
39269
+ interval: POLL_INTERVAL_MS$1,
39270
+ timeout: POLL_TIMEOUT_MS$1
39274
39271
  });
39275
39272
  }, {
39276
39273
  successMessage: "Authorization completed!",
@@ -39416,6 +39413,8 @@ const connectorsListCommand = new Command("list").description("List all connecte
39416
39413
 
39417
39414
  //#endregion
39418
39415
  //#region src/cli/commands/connectors/push.ts
39416
+ const POLL_INTERVAL_MS = 2e3;
39417
+ const POLL_TIMEOUT_MS = 300 * 1e3;
39419
39418
  function findPendingConnectors(local, backend) {
39420
39419
  const connectedTypes = new Set(backend.filter((c$1) => c$1.status.toLowerCase() === "active").map((c$1) => c$1.integrationType));
39421
39420
  return local.filter((c$1) => !connectedTypes.has(c$1.type)).map((c$1) => ({
@@ -39457,8 +39456,8 @@ async function connectSingleConnector(connector) {
39457
39456
  if (status.status === "FAILED") throw new Error(status.error || "Authorization failed");
39458
39457
  return false;
39459
39458
  }, {
39460
- interval: OAUTH_POLL_INTERVAL_MS,
39461
- timeout: OAUTH_POLL_TIMEOUT_MS
39459
+ interval: POLL_INTERVAL_MS,
39460
+ timeout: POLL_TIMEOUT_MS
39462
39461
  });
39463
39462
  }, {
39464
39463
  successMessage: "Authorization completed!",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/cli",
3
- "version": "0.0.15-pr.104.996eeac",
3
+ "version": "0.0.15-pr.104.dcaa6b4",
4
4
  "description": "Base44 CLI - Unified interface for managing Base44 applications",
5
5
  "type": "module",
6
6
  "main": "./dist/cli/index.js",