copilotkit 2.0.0 → 2.0.2

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/index.js CHANGED
@@ -63,9 +63,9 @@ function setOpsFrontendUrl(url2) {
63
63
  }
64
64
  function getBuildInfo() {
65
65
  return {
66
- version: "2.0.0",
67
- buildNumber: "25235077865",
68
- commitSha: "714c0005009447773496071e2c9f97b492440ecc"
66
+ version: "2.0.2",
67
+ buildNumber: "25375859015",
68
+ commitSha: "e3187072e0586422d8de0d64ce08406f77df265e"
69
69
  };
70
70
  }
71
71
  var opsApiUrlOverride, opsFrontendUrlOverride;
@@ -343,8 +343,8 @@ var require_req = __commonJS({
343
343
  if (req.originalUrl) {
344
344
  _req.url = req.originalUrl;
345
345
  } else {
346
- const path10 = req.path;
347
- _req.url = typeof path10 === "string" ? path10 : req.url ? req.url.path || req.url : void 0;
346
+ const path12 = req.path;
347
+ _req.url = typeof path12 === "string" ? path12 : req.url ? req.url.path || req.url : void 0;
348
348
  }
349
349
  if (req.query) {
350
350
  _req.query = req.query;
@@ -512,14 +512,14 @@ var require_redact = __commonJS({
512
512
  }
513
513
  return obj;
514
514
  }
515
- function parsePath2(path10) {
515
+ function parsePath2(path12) {
516
516
  const parts = [];
517
517
  let current = "";
518
518
  let inBrackets = false;
519
519
  let inQuotes = false;
520
520
  let quoteChar = "";
521
- for (let i = 0; i < path10.length; i++) {
522
- const char = path10[i];
521
+ for (let i = 0; i < path12.length; i++) {
522
+ const char = path12[i];
523
523
  if (!inBrackets && char === ".") {
524
524
  if (current) {
525
525
  parts.push(current);
@@ -650,10 +650,10 @@ var require_redact = __commonJS({
650
650
  return current;
651
651
  }
652
652
  function redactPaths(obj, paths, censor, remove = false) {
653
- for (const path10 of paths) {
654
- const parts = parsePath2(path10);
653
+ for (const path12 of paths) {
654
+ const parts = parsePath2(path12);
655
655
  if (parts.includes("*")) {
656
- redactWildcardPath(obj, parts, censor, path10, remove);
656
+ redactWildcardPath(obj, parts, censor, path12, remove);
657
657
  } else {
658
658
  if (remove) {
659
659
  removeKey(obj, parts);
@@ -740,8 +740,8 @@ var require_redact = __commonJS({
740
740
  }
741
741
  } else {
742
742
  if (afterWildcard.includes("*")) {
743
- const wrappedCensor = typeof censor === "function" ? (value, path10) => {
744
- const fullPath = [...pathArray.slice(0, pathLength), ...path10];
743
+ const wrappedCensor = typeof censor === "function" ? (value, path12) => {
744
+ const fullPath = [...pathArray.slice(0, pathLength), ...path12];
745
745
  return censor(value, fullPath);
746
746
  } : censor;
747
747
  redactWildcardPath(current, afterWildcard, wrappedCensor, originalPath, remove);
@@ -778,8 +778,8 @@ var require_redact = __commonJS({
778
778
  return null;
779
779
  }
780
780
  const pathStructure = /* @__PURE__ */ new Map();
781
- for (const path10 of pathsToClone) {
782
- const parts = parsePath2(path10);
781
+ for (const path12 of pathsToClone) {
782
+ const parts = parsePath2(path12);
783
783
  let current = pathStructure;
784
784
  for (let i = 0; i < parts.length; i++) {
785
785
  const part = parts[i];
@@ -831,24 +831,24 @@ var require_redact = __commonJS({
831
831
  }
832
832
  return cloneSelectively(obj, pathStructure);
833
833
  }
834
- function validatePath(path10) {
835
- if (typeof path10 !== "string") {
834
+ function validatePath(path12) {
835
+ if (typeof path12 !== "string") {
836
836
  throw new Error("Paths must be (non-empty) strings");
837
837
  }
838
- if (path10 === "") {
838
+ if (path12 === "") {
839
839
  throw new Error("Invalid redaction path ()");
840
840
  }
841
- if (path10.includes("..")) {
842
- throw new Error(`Invalid redaction path (${path10})`);
841
+ if (path12.includes("..")) {
842
+ throw new Error(`Invalid redaction path (${path12})`);
843
843
  }
844
- if (path10.includes(",")) {
845
- throw new Error(`Invalid redaction path (${path10})`);
844
+ if (path12.includes(",")) {
845
+ throw new Error(`Invalid redaction path (${path12})`);
846
846
  }
847
847
  let bracketCount = 0;
848
848
  let inQuotes = false;
849
849
  let quoteChar = "";
850
- for (let i = 0; i < path10.length; i++) {
851
- const char = path10[i];
850
+ for (let i = 0; i < path12.length; i++) {
851
+ const char = path12[i];
852
852
  if ((char === '"' || char === "'") && bracketCount > 0) {
853
853
  if (!inQuotes) {
854
854
  inQuotes = true;
@@ -862,20 +862,20 @@ var require_redact = __commonJS({
862
862
  } else if (char === "]" && !inQuotes) {
863
863
  bracketCount--;
864
864
  if (bracketCount < 0) {
865
- throw new Error(`Invalid redaction path (${path10})`);
865
+ throw new Error(`Invalid redaction path (${path12})`);
866
866
  }
867
867
  }
868
868
  }
869
869
  if (bracketCount !== 0) {
870
- throw new Error(`Invalid redaction path (${path10})`);
870
+ throw new Error(`Invalid redaction path (${path12})`);
871
871
  }
872
872
  }
873
873
  function validatePaths(paths) {
874
874
  if (!Array.isArray(paths)) {
875
875
  throw new TypeError("paths must be an array");
876
876
  }
877
- for (const path10 of paths) {
878
- validatePath(path10);
877
+ for (const path12 of paths) {
878
+ validatePath(path12);
879
879
  }
880
880
  }
881
881
  function slowRedact(options = {}) {
@@ -1043,8 +1043,8 @@ var require_redaction = __commonJS({
1043
1043
  if (shape[k] === null) {
1044
1044
  o[k] = (value) => topCensor(value, [k]);
1045
1045
  } else {
1046
- const wrappedCensor = typeof censor === "function" ? (value, path10) => {
1047
- return censor(value, [k, ...path10]);
1046
+ const wrappedCensor = typeof censor === "function" ? (value, path12) => {
1047
+ return censor(value, [k, ...path12]);
1048
1048
  } : censor;
1049
1049
  o[k] = Redact({
1050
1050
  paths: shape[k],
@@ -1265,10 +1265,10 @@ var require_atomic_sleep = __commonJS({
1265
1265
  var require_sonic_boom = __commonJS({
1266
1266
  "node_modules/.pnpm/sonic-boom@4.2.1/node_modules/sonic-boom/index.js"(exports, module) {
1267
1267
  "use strict";
1268
- var fs12 = __require("fs");
1268
+ var fs14 = __require("fs");
1269
1269
  var EventEmitter3 = __require("events");
1270
1270
  var inherits = __require("util").inherits;
1271
- var path10 = __require("path");
1271
+ var path12 = __require("path");
1272
1272
  var sleep = require_atomic_sleep();
1273
1273
  var assert3 = __require("assert");
1274
1274
  var BUSY_WRITE_TIMEOUT = 100;
@@ -1323,21 +1323,21 @@ var require_sonic_boom = __commonJS({
1323
1323
  if (sonic.sync) {
1324
1324
  try {
1325
1325
  if (sonic.mkdir)
1326
- fs12.mkdirSync(path10.dirname(file2), { recursive: true });
1327
- const fd = fs12.openSync(file2, flags, mode);
1326
+ fs14.mkdirSync(path12.dirname(file2), { recursive: true });
1327
+ const fd = fs14.openSync(file2, flags, mode);
1328
1328
  fileOpened(null, fd);
1329
1329
  } catch (err) {
1330
1330
  fileOpened(err);
1331
1331
  throw err;
1332
1332
  }
1333
1333
  } else if (sonic.mkdir) {
1334
- fs12.mkdir(path10.dirname(file2), { recursive: true }, (err) => {
1334
+ fs14.mkdir(path12.dirname(file2), { recursive: true }, (err) => {
1335
1335
  if (err)
1336
1336
  return fileOpened(err);
1337
- fs12.open(file2, flags, mode, fileOpened);
1337
+ fs14.open(file2, flags, mode, fileOpened);
1338
1338
  });
1339
1339
  } else {
1340
- fs12.open(file2, flags, mode, fileOpened);
1340
+ fs14.open(file2, flags, mode, fileOpened);
1341
1341
  }
1342
1342
  }
1343
1343
  function SonicBoom(opts) {
@@ -1378,8 +1378,8 @@ var require_sonic_boom = __commonJS({
1378
1378
  this.flush = flushBuffer;
1379
1379
  this.flushSync = flushBufferSync;
1380
1380
  this._actualWrite = actualWriteBuffer;
1381
- fsWriteSync = () => fs12.writeSync(this.fd, this._writingBuf);
1382
- fsWrite = () => fs12.write(this.fd, this._writingBuf, this.release);
1381
+ fsWriteSync = () => fs14.writeSync(this.fd, this._writingBuf);
1382
+ fsWrite = () => fs14.write(this.fd, this._writingBuf, this.release);
1383
1383
  } else if (contentMode === void 0 || contentMode === kContentModeUtf8) {
1384
1384
  this._writingBuf = "";
1385
1385
  this.write = write;
@@ -1388,15 +1388,15 @@ var require_sonic_boom = __commonJS({
1388
1388
  this._actualWrite = actualWrite;
1389
1389
  fsWriteSync = () => {
1390
1390
  if (Buffer.isBuffer(this._writingBuf)) {
1391
- return fs12.writeSync(this.fd, this._writingBuf);
1391
+ return fs14.writeSync(this.fd, this._writingBuf);
1392
1392
  }
1393
- return fs12.writeSync(this.fd, this._writingBuf, "utf8");
1393
+ return fs14.writeSync(this.fd, this._writingBuf, "utf8");
1394
1394
  };
1395
1395
  fsWrite = () => {
1396
1396
  if (Buffer.isBuffer(this._writingBuf)) {
1397
- return fs12.write(this.fd, this._writingBuf, this.release);
1397
+ return fs14.write(this.fd, this._writingBuf, this.release);
1398
1398
  }
1399
- return fs12.write(this.fd, this._writingBuf, "utf8", this.release);
1399
+ return fs14.write(this.fd, this._writingBuf, "utf8", this.release);
1400
1400
  };
1401
1401
  } else {
1402
1402
  throw new Error(`SonicBoom supports "${kContentModeUtf8}" and "${kContentModeBuffer}", but passed ${contentMode}`);
@@ -1453,7 +1453,7 @@ var require_sonic_boom = __commonJS({
1453
1453
  }
1454
1454
  }
1455
1455
  if (this._fsync) {
1456
- fs12.fsyncSync(this.fd);
1456
+ fs14.fsyncSync(this.fd);
1457
1457
  }
1458
1458
  const len = this._len;
1459
1459
  if (this._reopening) {
@@ -1568,7 +1568,7 @@ var require_sonic_boom = __commonJS({
1568
1568
  const onDrain = () => {
1569
1569
  if (!this._fsync) {
1570
1570
  try {
1571
- fs12.fsync(this.fd, (err) => {
1571
+ fs14.fsync(this.fd, (err) => {
1572
1572
  this._flushPending = false;
1573
1573
  cb(err);
1574
1574
  });
@@ -1670,7 +1670,7 @@ var require_sonic_boom = __commonJS({
1670
1670
  const fd = this.fd;
1671
1671
  this.once("ready", () => {
1672
1672
  if (fd !== this.fd) {
1673
- fs12.close(fd, (err) => {
1673
+ fs14.close(fd, (err) => {
1674
1674
  if (err) {
1675
1675
  return this.emit("error", err);
1676
1676
  }
@@ -1719,7 +1719,7 @@ var require_sonic_boom = __commonJS({
1719
1719
  buf = this._bufs[0];
1720
1720
  }
1721
1721
  try {
1722
- const n = Buffer.isBuffer(buf) ? fs12.writeSync(this.fd, buf) : fs12.writeSync(this.fd, buf, "utf8");
1722
+ const n = Buffer.isBuffer(buf) ? fs14.writeSync(this.fd, buf) : fs14.writeSync(this.fd, buf, "utf8");
1723
1723
  const releasedBufObj = releaseWritingBuf(buf, this._len, n);
1724
1724
  buf = releasedBufObj.writingBuf;
1725
1725
  this._len = releasedBufObj.len;
@@ -1735,7 +1735,7 @@ var require_sonic_boom = __commonJS({
1735
1735
  }
1736
1736
  }
1737
1737
  try {
1738
- fs12.fsyncSync(this.fd);
1738
+ fs14.fsyncSync(this.fd);
1739
1739
  } catch {
1740
1740
  }
1741
1741
  }
@@ -1756,7 +1756,7 @@ var require_sonic_boom = __commonJS({
1756
1756
  buf = mergeBuf(this._bufs[0], this._lens[0]);
1757
1757
  }
1758
1758
  try {
1759
- const n = fs12.writeSync(this.fd, buf);
1759
+ const n = fs14.writeSync(this.fd, buf);
1760
1760
  buf = buf.subarray(n);
1761
1761
  this._len = Math.max(this._len - n, 0);
1762
1762
  if (buf.length <= 0) {
@@ -1784,13 +1784,13 @@ var require_sonic_boom = __commonJS({
1784
1784
  this._writingBuf = this._writingBuf.length ? this._writingBuf : this._bufs.shift() || "";
1785
1785
  if (this.sync) {
1786
1786
  try {
1787
- const written = Buffer.isBuffer(this._writingBuf) ? fs12.writeSync(this.fd, this._writingBuf) : fs12.writeSync(this.fd, this._writingBuf, "utf8");
1787
+ const written = Buffer.isBuffer(this._writingBuf) ? fs14.writeSync(this.fd, this._writingBuf) : fs14.writeSync(this.fd, this._writingBuf, "utf8");
1788
1788
  release(null, written);
1789
1789
  } catch (err) {
1790
1790
  release(err);
1791
1791
  }
1792
1792
  } else {
1793
- fs12.write(this.fd, this._writingBuf, release);
1793
+ fs14.write(this.fd, this._writingBuf, release);
1794
1794
  }
1795
1795
  }
1796
1796
  function actualWriteBuffer() {
@@ -1799,7 +1799,7 @@ var require_sonic_boom = __commonJS({
1799
1799
  this._writingBuf = this._writingBuf.length ? this._writingBuf : mergeBuf(this._bufs.shift(), this._lens.shift());
1800
1800
  if (this.sync) {
1801
1801
  try {
1802
- const written = fs12.writeSync(this.fd, this._writingBuf);
1802
+ const written = fs14.writeSync(this.fd, this._writingBuf);
1803
1803
  release(null, written);
1804
1804
  } catch (err) {
1805
1805
  release(err);
@@ -1808,7 +1808,7 @@ var require_sonic_boom = __commonJS({
1808
1808
  if (kCopyBuffer) {
1809
1809
  this._writingBuf = Buffer.from(this._writingBuf);
1810
1810
  }
1811
- fs12.write(this.fd, this._writingBuf, release);
1811
+ fs14.write(this.fd, this._writingBuf, release);
1812
1812
  }
1813
1813
  }
1814
1814
  function actualClose(sonic) {
@@ -1824,12 +1824,12 @@ var require_sonic_boom = __commonJS({
1824
1824
  sonic._lens = [];
1825
1825
  assert3(typeof sonic.fd === "number", `sonic.fd must be a number, got ${typeof sonic.fd}`);
1826
1826
  try {
1827
- fs12.fsync(sonic.fd, closeWrapped);
1827
+ fs14.fsync(sonic.fd, closeWrapped);
1828
1828
  } catch {
1829
1829
  }
1830
1830
  function closeWrapped() {
1831
1831
  if (sonic.fd !== 1 && sonic.fd !== 2) {
1832
- fs12.close(sonic.fd, done);
1832
+ fs14.close(sonic.fd, done);
1833
1833
  } else {
1834
1834
  done();
1835
1835
  }
@@ -2076,7 +2076,7 @@ var require_thread_stream = __commonJS({
2076
2076
  var { version: version2 } = require_package();
2077
2077
  var { EventEmitter: EventEmitter3 } = __require("events");
2078
2078
  var { Worker } = __require("worker_threads");
2079
- var { join: join4 } = __require("path");
2079
+ var { join: join6 } = __require("path");
2080
2080
  var { pathToFileURL } = __require("url");
2081
2081
  var { wait } = require_wait();
2082
2082
  var {
@@ -2112,7 +2112,7 @@ var require_thread_stream = __commonJS({
2112
2112
  function createWorker(stream, opts) {
2113
2113
  const { filename, workerData } = opts;
2114
2114
  const bundlerOverrides = "__bundlerPathsOverrides" in globalThis ? globalThis.__bundlerPathsOverrides : {};
2115
- const toExecute = bundlerOverrides["thread-stream-worker"] || join4(__dirname, "lib", "worker.js");
2115
+ const toExecute = bundlerOverrides["thread-stream-worker"] || join6(__dirname, "lib", "worker.js");
2116
2116
  const worker = new Worker(toExecute, {
2117
2117
  ...opts.workerOpts,
2118
2118
  trackUnmanagedFds: false,
@@ -2501,9 +2501,9 @@ var require_transport = __commonJS({
2501
2501
  "node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/transport.js"(exports, module) {
2502
2502
  "use strict";
2503
2503
  var { createRequire } = __require("module");
2504
- var { existsSync: existsSync4 } = __require("node:fs");
2504
+ var { existsSync: existsSync5 } = __require("node:fs");
2505
2505
  var getCallers = require_caller();
2506
- var { join: join4, isAbsolute, sep } = __require("node:path");
2506
+ var { join: join6, isAbsolute, sep } = __require("node:path");
2507
2507
  var { fileURLToPath: fileURLToPath3 } = __require("node:url");
2508
2508
  var sleep = require_atomic_sleep();
2509
2509
  var onExit = require_on_exit_leak_free();
@@ -2567,15 +2567,15 @@ var require_transport = __commonJS({
2567
2567
  if (!unquoted) {
2568
2568
  return false;
2569
2569
  }
2570
- let path10 = unquoted;
2571
- if (path10.startsWith("file://")) {
2570
+ let path12 = unquoted;
2571
+ if (path12.startsWith("file://")) {
2572
2572
  try {
2573
- path10 = fileURLToPath3(path10);
2573
+ path12 = fileURLToPath3(path12);
2574
2574
  } catch {
2575
2575
  return false;
2576
2576
  }
2577
2577
  }
2578
- return isAbsolute(path10) && !existsSync4(path10);
2578
+ return isAbsolute(path12) && !existsSync5(path12);
2579
2579
  }
2580
2580
  function stripQuotes(value) {
2581
2581
  const first = value[0];
@@ -2656,7 +2656,7 @@ var require_transport = __commonJS({
2656
2656
  throw new Error("only one of target or targets can be specified");
2657
2657
  }
2658
2658
  if (targets) {
2659
- target = bundlerOverrides["pino-worker"] || join4(__dirname, "worker.js");
2659
+ target = bundlerOverrides["pino-worker"] || join6(__dirname, "worker.js");
2660
2660
  options.targets = targets.filter((dest) => dest.target).map((dest) => {
2661
2661
  return {
2662
2662
  ...dest,
@@ -2674,7 +2674,7 @@ var require_transport = __commonJS({
2674
2674
  });
2675
2675
  });
2676
2676
  } else if (pipeline) {
2677
- target = bundlerOverrides["pino-worker"] || join4(__dirname, "worker.js");
2677
+ target = bundlerOverrides["pino-worker"] || join6(__dirname, "worker.js");
2678
2678
  options.pipelines = [pipeline.map((dest) => {
2679
2679
  return {
2680
2680
  ...dest,
@@ -2697,7 +2697,7 @@ var require_transport = __commonJS({
2697
2697
  return origin;
2698
2698
  }
2699
2699
  if (origin === "pino/file") {
2700
- return join4(__dirname, "..", "file.js");
2700
+ return join6(__dirname, "..", "file.js");
2701
2701
  }
2702
2702
  let fixTarget2;
2703
2703
  for (const filePath of callers) {
@@ -3688,7 +3688,7 @@ var require_safe_stable_stringify = __commonJS({
3688
3688
  return circularValue;
3689
3689
  }
3690
3690
  let res = "";
3691
- let join4 = ",";
3691
+ let join6 = ",";
3692
3692
  const originalIndentation = indentation;
3693
3693
  if (Array.isArray(value)) {
3694
3694
  if (value.length === 0) {
@@ -3702,7 +3702,7 @@ var require_safe_stable_stringify = __commonJS({
3702
3702
  indentation += spacer;
3703
3703
  res += `
3704
3704
  ${indentation}`;
3705
- join4 = `,
3705
+ join6 = `,
3706
3706
  ${indentation}`;
3707
3707
  }
3708
3708
  const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
@@ -3710,13 +3710,13 @@ ${indentation}`;
3710
3710
  for (; i < maximumValuesToStringify - 1; i++) {
3711
3711
  const tmp2 = stringifyFnReplacer(String(i), value, stack, replacer, spacer, indentation);
3712
3712
  res += tmp2 !== void 0 ? tmp2 : "null";
3713
- res += join4;
3713
+ res += join6;
3714
3714
  }
3715
3715
  const tmp = stringifyFnReplacer(String(i), value, stack, replacer, spacer, indentation);
3716
3716
  res += tmp !== void 0 ? tmp : "null";
3717
3717
  if (value.length - 1 > maximumBreadth) {
3718
3718
  const removedKeys = value.length - maximumBreadth - 1;
3719
- res += `${join4}"... ${getItemCount(removedKeys)} not stringified"`;
3719
+ res += `${join6}"... ${getItemCount(removedKeys)} not stringified"`;
3720
3720
  }
3721
3721
  if (spacer !== "") {
3722
3722
  res += `
@@ -3737,7 +3737,7 @@ ${originalIndentation}`;
3737
3737
  let separator = "";
3738
3738
  if (spacer !== "") {
3739
3739
  indentation += spacer;
3740
- join4 = `,
3740
+ join6 = `,
3741
3741
  ${indentation}`;
3742
3742
  whitespace = " ";
3743
3743
  }
@@ -3751,13 +3751,13 @@ ${indentation}`;
3751
3751
  const tmp = stringifyFnReplacer(key2, value, stack, replacer, spacer, indentation);
3752
3752
  if (tmp !== void 0) {
3753
3753
  res += `${separator}${strEscape(key2)}:${whitespace}${tmp}`;
3754
- separator = join4;
3754
+ separator = join6;
3755
3755
  }
3756
3756
  }
3757
3757
  if (keyLength > maximumBreadth) {
3758
3758
  const removedKeys = keyLength - maximumBreadth;
3759
3759
  res += `${separator}"...":${whitespace}"${getItemCount(removedKeys)} not stringified"`;
3760
- separator = join4;
3760
+ separator = join6;
3761
3761
  }
3762
3762
  if (spacer !== "" && separator.length > 1) {
3763
3763
  res = `
@@ -3797,7 +3797,7 @@ ${originalIndentation}`;
3797
3797
  }
3798
3798
  const originalIndentation = indentation;
3799
3799
  let res = "";
3800
- let join4 = ",";
3800
+ let join6 = ",";
3801
3801
  if (Array.isArray(value)) {
3802
3802
  if (value.length === 0) {
3803
3803
  return "[]";
@@ -3810,7 +3810,7 @@ ${originalIndentation}`;
3810
3810
  indentation += spacer;
3811
3811
  res += `
3812
3812
  ${indentation}`;
3813
- join4 = `,
3813
+ join6 = `,
3814
3814
  ${indentation}`;
3815
3815
  }
3816
3816
  const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
@@ -3818,13 +3818,13 @@ ${indentation}`;
3818
3818
  for (; i < maximumValuesToStringify - 1; i++) {
3819
3819
  const tmp2 = stringifyArrayReplacer(String(i), value[i], stack, replacer, spacer, indentation);
3820
3820
  res += tmp2 !== void 0 ? tmp2 : "null";
3821
- res += join4;
3821
+ res += join6;
3822
3822
  }
3823
3823
  const tmp = stringifyArrayReplacer(String(i), value[i], stack, replacer, spacer, indentation);
3824
3824
  res += tmp !== void 0 ? tmp : "null";
3825
3825
  if (value.length - 1 > maximumBreadth) {
3826
3826
  const removedKeys = value.length - maximumBreadth - 1;
3827
- res += `${join4}"... ${getItemCount(removedKeys)} not stringified"`;
3827
+ res += `${join6}"... ${getItemCount(removedKeys)} not stringified"`;
3828
3828
  }
3829
3829
  if (spacer !== "") {
3830
3830
  res += `
@@ -3837,7 +3837,7 @@ ${originalIndentation}`;
3837
3837
  let whitespace = "";
3838
3838
  if (spacer !== "") {
3839
3839
  indentation += spacer;
3840
- join4 = `,
3840
+ join6 = `,
3841
3841
  ${indentation}`;
3842
3842
  whitespace = " ";
3843
3843
  }
@@ -3846,7 +3846,7 @@ ${indentation}`;
3846
3846
  const tmp = stringifyArrayReplacer(key2, value[key2], stack, replacer, spacer, indentation);
3847
3847
  if (tmp !== void 0) {
3848
3848
  res += `${separator}${strEscape(key2)}:${whitespace}${tmp}`;
3849
- separator = join4;
3849
+ separator = join6;
3850
3850
  }
3851
3851
  }
3852
3852
  if (spacer !== "" && separator.length > 1) {
@@ -3903,20 +3903,20 @@ ${originalIndentation}`;
3903
3903
  indentation += spacer;
3904
3904
  let res2 = `
3905
3905
  ${indentation}`;
3906
- const join5 = `,
3906
+ const join7 = `,
3907
3907
  ${indentation}`;
3908
3908
  const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
3909
3909
  let i = 0;
3910
3910
  for (; i < maximumValuesToStringify - 1; i++) {
3911
3911
  const tmp2 = stringifyIndent(String(i), value[i], stack, spacer, indentation);
3912
3912
  res2 += tmp2 !== void 0 ? tmp2 : "null";
3913
- res2 += join5;
3913
+ res2 += join7;
3914
3914
  }
3915
3915
  const tmp = stringifyIndent(String(i), value[i], stack, spacer, indentation);
3916
3916
  res2 += tmp !== void 0 ? tmp : "null";
3917
3917
  if (value.length - 1 > maximumBreadth) {
3918
3918
  const removedKeys = value.length - maximumBreadth - 1;
3919
- res2 += `${join5}"... ${getItemCount(removedKeys)} not stringified"`;
3919
+ res2 += `${join7}"... ${getItemCount(removedKeys)} not stringified"`;
3920
3920
  }
3921
3921
  res2 += `
3922
3922
  ${originalIndentation}`;
@@ -3932,16 +3932,16 @@ ${originalIndentation}`;
3932
3932
  return '"[Object]"';
3933
3933
  }
3934
3934
  indentation += spacer;
3935
- const join4 = `,
3935
+ const join6 = `,
3936
3936
  ${indentation}`;
3937
3937
  let res = "";
3938
3938
  let separator = "";
3939
3939
  let maximumPropertiesToStringify = Math.min(keyLength, maximumBreadth);
3940
3940
  if (isTypedArrayWithEntries(value)) {
3941
- res += stringifyTypedArray(value, join4, maximumBreadth);
3941
+ res += stringifyTypedArray(value, join6, maximumBreadth);
3942
3942
  keys = keys.slice(value.length);
3943
3943
  maximumPropertiesToStringify -= value.length;
3944
- separator = join4;
3944
+ separator = join6;
3945
3945
  }
3946
3946
  if (deterministic) {
3947
3947
  keys = sort(keys, comparator);
@@ -3952,13 +3952,13 @@ ${indentation}`;
3952
3952
  const tmp = stringifyIndent(key2, value[key2], stack, spacer, indentation);
3953
3953
  if (tmp !== void 0) {
3954
3954
  res += `${separator}${strEscape(key2)}: ${tmp}`;
3955
- separator = join4;
3955
+ separator = join6;
3956
3956
  }
3957
3957
  }
3958
3958
  if (keyLength > maximumBreadth) {
3959
3959
  const removedKeys = keyLength - maximumBreadth;
3960
3960
  res += `${separator}"...": "${getItemCount(removedKeys)} not stringified"`;
3961
- separator = join4;
3961
+ separator = join6;
3962
3962
  }
3963
3963
  if (separator !== "") {
3964
3964
  res = `
@@ -4617,16 +4617,16 @@ function processSegment(segment, parts) {
4617
4617
  }
4618
4618
  return true;
4619
4619
  }
4620
- function parsePath(path10) {
4621
- if (typeof path10 !== "string") {
4622
- throw new TypeError(`Expected a string, got ${typeof path10}`);
4620
+ function parsePath(path12) {
4621
+ if (typeof path12 !== "string") {
4622
+ throw new TypeError(`Expected a string, got ${typeof path12}`);
4623
4623
  }
4624
4624
  const parts = [];
4625
4625
  let currentSegment = "";
4626
4626
  let currentPart = "start";
4627
4627
  let isEscaping = false;
4628
4628
  let position = 0;
4629
- for (const character of path10) {
4629
+ for (const character of path12) {
4630
4630
  position++;
4631
4631
  if (isEscaping) {
4632
4632
  currentSegment += character;
@@ -4736,13 +4736,13 @@ function parsePath(path10) {
4736
4736
  }
4737
4737
  return parts;
4738
4738
  }
4739
- function normalizePath(path10) {
4740
- if (typeof path10 === "string") {
4741
- return parsePath(path10);
4739
+ function normalizePath(path12) {
4740
+ if (typeof path12 === "string") {
4741
+ return parsePath(path12);
4742
4742
  }
4743
- if (Array.isArray(path10)) {
4743
+ if (Array.isArray(path12)) {
4744
4744
  const normalized = [];
4745
- for (const [index, segment] of path10.entries()) {
4745
+ for (const [index, segment] of path12.entries()) {
4746
4746
  if (typeof segment !== "string" && typeof segment !== "number") {
4747
4747
  throw new TypeError(`Expected a string or number for path segment at index ${index}, got ${typeof segment}`);
4748
4748
  }
@@ -4762,11 +4762,11 @@ function normalizePath(path10) {
4762
4762
  }
4763
4763
  return [];
4764
4764
  }
4765
- function getProperty(object2, path10, value) {
4766
- if (!isObject(object2) || typeof path10 !== "string" && !Array.isArray(path10)) {
4765
+ function getProperty(object2, path12, value) {
4766
+ if (!isObject(object2) || typeof path12 !== "string" && !Array.isArray(path12)) {
4767
4767
  return value === void 0 ? object2 : value;
4768
4768
  }
4769
- const pathArray = normalizePath(path10);
4769
+ const pathArray = normalizePath(path12);
4770
4770
  if (pathArray.length === 0) {
4771
4771
  return value;
4772
4772
  }
@@ -4782,12 +4782,12 @@ function getProperty(object2, path10, value) {
4782
4782
  }
4783
4783
  return object2 === void 0 ? value : object2;
4784
4784
  }
4785
- function setProperty(object2, path10, value) {
4786
- if (!isObject(object2) || typeof path10 !== "string" && !Array.isArray(path10)) {
4785
+ function setProperty(object2, path12, value) {
4786
+ if (!isObject(object2) || typeof path12 !== "string" && !Array.isArray(path12)) {
4787
4787
  return object2;
4788
4788
  }
4789
4789
  const root = object2;
4790
- const pathArray = normalizePath(path10);
4790
+ const pathArray = normalizePath(path12);
4791
4791
  if (pathArray.length === 0) {
4792
4792
  return object2;
4793
4793
  }
@@ -4804,11 +4804,11 @@ function setProperty(object2, path10, value) {
4804
4804
  }
4805
4805
  return root;
4806
4806
  }
4807
- function deleteProperty(object2, path10) {
4808
- if (!isObject(object2) || typeof path10 !== "string" && !Array.isArray(path10)) {
4807
+ function deleteProperty(object2, path12) {
4808
+ if (!isObject(object2) || typeof path12 !== "string" && !Array.isArray(path12)) {
4809
4809
  return false;
4810
4810
  }
4811
- const pathArray = normalizePath(path10);
4811
+ const pathArray = normalizePath(path12);
4812
4812
  if (pathArray.length === 0) {
4813
4813
  return false;
4814
4814
  }
@@ -4828,11 +4828,11 @@ function deleteProperty(object2, path10) {
4828
4828
  }
4829
4829
  }
4830
4830
  }
4831
- function hasProperty(object2, path10) {
4832
- if (!isObject(object2) || typeof path10 !== "string" && !Array.isArray(path10)) {
4831
+ function hasProperty(object2, path12) {
4832
+ if (!isObject(object2) || typeof path12 !== "string" && !Array.isArray(path12)) {
4833
4833
  return false;
4834
4834
  }
4835
- const pathArray = normalizePath(path10);
4835
+ const pathArray = normalizePath(path12);
4836
4836
  if (pathArray.length === 0) {
4837
4837
  return false;
4838
4838
  }
@@ -8646,8 +8646,8 @@ var require_utils = __commonJS({
8646
8646
  }
8647
8647
  return ind;
8648
8648
  }
8649
- function removeDotSegments(path10) {
8650
- let input = path10;
8649
+ function removeDotSegments(path12) {
8650
+ let input = path12;
8651
8651
  const output = [];
8652
8652
  let nextSlash = -1;
8653
8653
  let len = 0;
@@ -8846,8 +8846,8 @@ var require_schemes = __commonJS({
8846
8846
  wsComponent.secure = void 0;
8847
8847
  }
8848
8848
  if (wsComponent.resourceName) {
8849
- const [path10, query] = wsComponent.resourceName.split("?");
8850
- wsComponent.path = path10 && path10 !== "/" ? path10 : void 0;
8849
+ const [path12, query] = wsComponent.resourceName.split("?");
8850
+ wsComponent.path = path12 && path12 !== "/" ? path12 : void 0;
8851
8851
  wsComponent.query = query;
8852
8852
  wsComponent.resourceName = void 0;
8853
8853
  }
@@ -13034,12 +13034,12 @@ var require_dist = __commonJS({
13034
13034
  throw new Error(`Unknown format "${name}"`);
13035
13035
  return f;
13036
13036
  };
13037
- function addFormats(ajv, list, fs12, exportName) {
13037
+ function addFormats(ajv, list, fs14, exportName) {
13038
13038
  var _a2;
13039
13039
  var _b;
13040
13040
  (_a2 = (_b = ajv.opts.code).formats) !== null && _a2 !== void 0 ? _a2 : _b.formats = (0, codegen_1._)`require("ajv-formats/dist/formats").${exportName}`;
13041
13041
  for (const f of list)
13042
- ajv.addFormat(f, fs12[f]);
13042
+ ajv.addFormat(f, fs14[f]);
13043
13043
  }
13044
13044
  module.exports = exports = formatsPlugin;
13045
13045
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -15961,15 +15961,6 @@ function createApiClient(baseUrl, token) {
15961
15961
  throw await readApiError(res);
15962
15962
  }
15963
15963
  return res.json();
15964
- },
15965
- async requestThreadsAccess() {
15966
- await fetch(`${baseUrl}/api/cli/threads-interest`, {
15967
- method: "POST",
15968
- headers: {
15969
- "Content-Type": "application/json",
15970
- Authorization: `Bearer ${token}`
15971
- }
15972
- });
15973
15964
  }
15974
15965
  };
15975
15966
  }
@@ -16328,15 +16319,15 @@ var init_wsl_utils = __esm({
16328
16319
  const { stdout } = await executePowerShell(command, { powerShellPath: psPath });
16329
16320
  return stdout.trim();
16330
16321
  };
16331
- convertWslPathToWindows = async (path10) => {
16332
- if (/^[a-z]+:\/\//i.test(path10)) {
16333
- return path10;
16322
+ convertWslPathToWindows = async (path12) => {
16323
+ if (/^[a-z]+:\/\//i.test(path12)) {
16324
+ return path12;
16334
16325
  }
16335
16326
  try {
16336
- const { stdout } = await execFile2("wslpath", ["-aw", path10], { encoding: "utf8" });
16327
+ const { stdout } = await execFile2("wslpath", ["-aw", path12], { encoding: "utf8" });
16337
16328
  return stdout.trim();
16338
16329
  } catch {
16339
- return path10;
16330
+ return path12;
16340
16331
  }
16341
16332
  };
16342
16333
  }
@@ -30479,11 +30470,11 @@ var require_react_reconciler_development = __commonJS({
30479
30470
  fiber = fiber.next, id--;
30480
30471
  return fiber;
30481
30472
  }
30482
- function copyWithSetImpl(obj, path10, index, value) {
30483
- if (index >= path10.length)
30473
+ function copyWithSetImpl(obj, path12, index, value) {
30474
+ if (index >= path12.length)
30484
30475
  return value;
30485
- var key = path10[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);
30486
- updated[key] = copyWithSetImpl(obj[key], path10, index + 1, value);
30476
+ var key = path12[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);
30477
+ updated[key] = copyWithSetImpl(obj[key], path12, index + 1, value);
30487
30478
  return updated;
30488
30479
  }
30489
30480
  function copyWithRename(obj, oldPath, newPath) {
@@ -30510,11 +30501,11 @@ var require_react_reconciler_development = __commonJS({
30510
30501
  );
30511
30502
  return updated;
30512
30503
  }
30513
- function copyWithDeleteImpl(obj, path10, index) {
30514
- var key = path10[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);
30515
- if (index + 1 === path10.length)
30504
+ function copyWithDeleteImpl(obj, path12, index) {
30505
+ var key = path12[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);
30506
+ if (index + 1 === path12.length)
30516
30507
  return isArrayImpl(updated) ? updated.splice(key, 1) : delete updated[key], updated;
30517
- updated[key] = copyWithDeleteImpl(obj[key], path10, index + 1);
30508
+ updated[key] = copyWithDeleteImpl(obj[key], path12, index + 1);
30518
30509
  return updated;
30519
30510
  }
30520
30511
  function shouldSuspendImpl() {
@@ -43940,29 +43931,29 @@ var require_react_reconciler_development = __commonJS({
43940
43931
  var didWarnAboutNestedUpdates = false;
43941
43932
  var didWarnAboutFindNodeInStrictMode = {};
43942
43933
  var overrideHookState = null, overrideHookStateDeletePath = null, overrideHookStateRenamePath = null, overrideProps = null, overridePropsDeletePath = null, overridePropsRenamePath = null, scheduleUpdate = null, scheduleRetry = null, setErrorHandler = null, setSuspenseHandler = null;
43943
- overrideHookState = function(fiber, id, path10, value) {
43934
+ overrideHookState = function(fiber, id, path12, value) {
43944
43935
  id = findHook(fiber, id);
43945
- null !== id && (path10 = copyWithSetImpl(id.memoizedState, path10, 0, value), id.memoizedState = path10, id.baseState = path10, fiber.memoizedProps = assign({}, fiber.memoizedProps), path10 = enqueueConcurrentRenderForLane(fiber, 2), null !== path10 && scheduleUpdateOnFiber(path10, fiber, 2));
43936
+ null !== id && (path12 = copyWithSetImpl(id.memoizedState, path12, 0, value), id.memoizedState = path12, id.baseState = path12, fiber.memoizedProps = assign({}, fiber.memoizedProps), path12 = enqueueConcurrentRenderForLane(fiber, 2), null !== path12 && scheduleUpdateOnFiber(path12, fiber, 2));
43946
43937
  };
43947
- overrideHookStateDeletePath = function(fiber, id, path10) {
43938
+ overrideHookStateDeletePath = function(fiber, id, path12) {
43948
43939
  id = findHook(fiber, id);
43949
- null !== id && (path10 = copyWithDeleteImpl(id.memoizedState, path10, 0), id.memoizedState = path10, id.baseState = path10, fiber.memoizedProps = assign({}, fiber.memoizedProps), path10 = enqueueConcurrentRenderForLane(fiber, 2), null !== path10 && scheduleUpdateOnFiber(path10, fiber, 2));
43940
+ null !== id && (path12 = copyWithDeleteImpl(id.memoizedState, path12, 0), id.memoizedState = path12, id.baseState = path12, fiber.memoizedProps = assign({}, fiber.memoizedProps), path12 = enqueueConcurrentRenderForLane(fiber, 2), null !== path12 && scheduleUpdateOnFiber(path12, fiber, 2));
43950
43941
  };
43951
43942
  overrideHookStateRenamePath = function(fiber, id, oldPath, newPath) {
43952
43943
  id = findHook(fiber, id);
43953
43944
  null !== id && (oldPath = copyWithRename(id.memoizedState, oldPath, newPath), id.memoizedState = oldPath, id.baseState = oldPath, fiber.memoizedProps = assign({}, fiber.memoizedProps), oldPath = enqueueConcurrentRenderForLane(fiber, 2), null !== oldPath && scheduleUpdateOnFiber(oldPath, fiber, 2));
43954
43945
  };
43955
- overrideProps = function(fiber, path10, value) {
43956
- fiber.pendingProps = copyWithSetImpl(fiber.memoizedProps, path10, 0, value);
43946
+ overrideProps = function(fiber, path12, value) {
43947
+ fiber.pendingProps = copyWithSetImpl(fiber.memoizedProps, path12, 0, value);
43957
43948
  fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps);
43958
- path10 = enqueueConcurrentRenderForLane(fiber, 2);
43959
- null !== path10 && scheduleUpdateOnFiber(path10, fiber, 2);
43949
+ path12 = enqueueConcurrentRenderForLane(fiber, 2);
43950
+ null !== path12 && scheduleUpdateOnFiber(path12, fiber, 2);
43960
43951
  };
43961
- overridePropsDeletePath = function(fiber, path10) {
43962
- fiber.pendingProps = copyWithDeleteImpl(fiber.memoizedProps, path10, 0);
43952
+ overridePropsDeletePath = function(fiber, path12) {
43953
+ fiber.pendingProps = copyWithDeleteImpl(fiber.memoizedProps, path12, 0);
43963
43954
  fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps);
43964
- path10 = enqueueConcurrentRenderForLane(fiber, 2);
43965
- null !== path10 && scheduleUpdateOnFiber(path10, fiber, 2);
43955
+ path12 = enqueueConcurrentRenderForLane(fiber, 2);
43956
+ null !== path12 && scheduleUpdateOnFiber(path12, fiber, 2);
43966
43957
  };
43967
43958
  overridePropsRenamePath = function(fiber, oldPath, newPath) {
43968
43959
  fiber.pendingProps = copyWithRename(
@@ -50341,7 +50332,7 @@ var require_backend = __commonJS({
50341
50332
  }
50342
50333
  throw Error("An unsupported type was passed to use(): " + String(usable));
50343
50334
  },
50344
- useCallback: function useCallback6(callback) {
50335
+ useCallback: function useCallback5(callback) {
50345
50336
  var hook = nextHook();
50346
50337
  hookLog.push({
50347
50338
  displayName: null,
@@ -53954,8 +53945,8 @@ var require_backend = __commonJS({
53954
53945
  }
53955
53946
  return false;
53956
53947
  }
53957
- function utils_getInObject(object2, path10) {
53958
- return path10.reduce(function(reduced, attr) {
53948
+ function utils_getInObject(object2, path12) {
53949
+ return path12.reduce(function(reduced, attr) {
53959
53950
  if (reduced) {
53960
53951
  if (utils_hasOwnProperty.call(reduced, attr)) {
53961
53952
  return reduced[attr];
@@ -53967,11 +53958,11 @@ var require_backend = __commonJS({
53967
53958
  return null;
53968
53959
  }, object2);
53969
53960
  }
53970
- function deletePathInObject(object2, path10) {
53971
- var length = path10.length;
53972
- var last = path10[length - 1];
53961
+ function deletePathInObject(object2, path12) {
53962
+ var length = path12.length;
53963
+ var last = path12[length - 1];
53973
53964
  if (object2 != null) {
53974
- var parent = utils_getInObject(object2, path10.slice(0, length - 1));
53965
+ var parent = utils_getInObject(object2, path12.slice(0, length - 1));
53975
53966
  if (parent) {
53976
53967
  if (src_isArray(parent)) {
53977
53968
  parent.splice(last, 1);
@@ -53997,11 +53988,11 @@ var require_backend = __commonJS({
53997
53988
  }
53998
53989
  }
53999
53990
  }
54000
- function utils_setInObject(object2, path10, value) {
54001
- var length = path10.length;
54002
- var last = path10[length - 1];
53991
+ function utils_setInObject(object2, path12, value) {
53992
+ var length = path12.length;
53993
+ var last = path12[length - 1];
54003
53994
  if (object2 != null) {
54004
- var parent = utils_getInObject(object2, path10.slice(0, length - 1));
53995
+ var parent = utils_getInObject(object2, path12.slice(0, length - 1));
54005
53996
  if (parent) {
54006
53997
  parent[last] = value;
54007
53998
  }
@@ -54537,8 +54528,8 @@ var require_backend = __commonJS({
54537
54528
  unserializable: Symbol("unserializable")
54538
54529
  };
54539
54530
  var LEVEL_THRESHOLD = 2;
54540
- function createDehydrated(type, inspectable, data, cleaned, path10) {
54541
- cleaned.push(path10);
54531
+ function createDehydrated(type, inspectable, data, cleaned, path12) {
54532
+ cleaned.push(path12);
54542
54533
  var dehydrated = {
54543
54534
  inspectable,
54544
54535
  type,
@@ -54556,13 +54547,13 @@ var require_backend = __commonJS({
54556
54547
  }
54557
54548
  return dehydrated;
54558
54549
  }
54559
- function dehydrate(data, cleaned, unserializable, path10, isPathAllowed) {
54550
+ function dehydrate(data, cleaned, unserializable, path12, isPathAllowed) {
54560
54551
  var level = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0;
54561
54552
  var type = getDataType(data);
54562
54553
  var isPathAllowedCheck;
54563
54554
  switch (type) {
54564
54555
  case "html_element":
54565
- cleaned.push(path10);
54556
+ cleaned.push(path12);
54566
54557
  return {
54567
54558
  inspectable: false,
54568
54559
  preview_short: formatDataForPreview(data, false),
@@ -54571,7 +54562,7 @@ var require_backend = __commonJS({
54571
54562
  type
54572
54563
  };
54573
54564
  case "function":
54574
- cleaned.push(path10);
54565
+ cleaned.push(path12);
54575
54566
  return {
54576
54567
  inspectable: false,
54577
54568
  preview_short: formatDataForPreview(data, false),
@@ -54580,14 +54571,14 @@ var require_backend = __commonJS({
54580
54571
  type
54581
54572
  };
54582
54573
  case "string":
54583
- isPathAllowedCheck = isPathAllowed(path10);
54574
+ isPathAllowedCheck = isPathAllowed(path12);
54584
54575
  if (isPathAllowedCheck) {
54585
54576
  return data;
54586
54577
  } else {
54587
54578
  return data.length <= 500 ? data : data.slice(0, 500) + "...";
54588
54579
  }
54589
54580
  case "bigint":
54590
- cleaned.push(path10);
54581
+ cleaned.push(path12);
54591
54582
  return {
54592
54583
  inspectable: false,
54593
54584
  preview_short: formatDataForPreview(data, false),
@@ -54596,7 +54587,7 @@ var require_backend = __commonJS({
54596
54587
  type
54597
54588
  };
54598
54589
  case "symbol":
54599
- cleaned.push(path10);
54590
+ cleaned.push(path12);
54600
54591
  return {
54601
54592
  inspectable: false,
54602
54593
  preview_short: formatDataForPreview(data, false),
@@ -54605,9 +54596,9 @@ var require_backend = __commonJS({
54605
54596
  type
54606
54597
  };
54607
54598
  case "react_element": {
54608
- isPathAllowedCheck = isPathAllowed(path10);
54599
+ isPathAllowedCheck = isPathAllowed(path12);
54609
54600
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
54610
- cleaned.push(path10);
54601
+ cleaned.push(path12);
54611
54602
  return {
54612
54603
  inspectable: true,
54613
54604
  preview_short: formatDataForPreview(data, false),
@@ -54624,19 +54615,19 @@ var require_backend = __commonJS({
54624
54615
  preview_long: formatDataForPreview(data, true),
54625
54616
  name: getDisplayNameForReactElement(data) || "Unknown"
54626
54617
  };
54627
- unserializableValue.key = dehydrate(data.key, cleaned, unserializable, path10.concat(["key"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54618
+ unserializableValue.key = dehydrate(data.key, cleaned, unserializable, path12.concat(["key"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54628
54619
  if (data.$$typeof === REACT_LEGACY_ELEMENT_TYPE) {
54629
- unserializableValue.ref = dehydrate(data.ref, cleaned, unserializable, path10.concat(["ref"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54620
+ unserializableValue.ref = dehydrate(data.ref, cleaned, unserializable, path12.concat(["ref"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54630
54621
  }
54631
- unserializableValue.props = dehydrate(data.props, cleaned, unserializable, path10.concat(["props"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54632
- unserializable.push(path10);
54622
+ unserializableValue.props = dehydrate(data.props, cleaned, unserializable, path12.concat(["props"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54623
+ unserializable.push(path12);
54633
54624
  return unserializableValue;
54634
54625
  }
54635
54626
  case "react_lazy": {
54636
- isPathAllowedCheck = isPathAllowed(path10);
54627
+ isPathAllowedCheck = isPathAllowed(path12);
54637
54628
  var payload = data._payload;
54638
54629
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
54639
- cleaned.push(path10);
54630
+ cleaned.push(path12);
54640
54631
  var inspectable = payload !== null && hydration_typeof(payload) === "object" && (payload._status === 1 || payload._status === 2 || payload.status === "fulfilled" || payload.status === "rejected");
54641
54632
  return {
54642
54633
  inspectable,
@@ -54653,13 +54644,13 @@ var require_backend = __commonJS({
54653
54644
  preview_long: formatDataForPreview(data, true),
54654
54645
  name: "lazy()"
54655
54646
  };
54656
- _unserializableValue._payload = dehydrate(payload, cleaned, unserializable, path10.concat(["_payload"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54657
- unserializable.push(path10);
54647
+ _unserializableValue._payload = dehydrate(payload, cleaned, unserializable, path12.concat(["_payload"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54648
+ unserializable.push(path12);
54658
54649
  return _unserializableValue;
54659
54650
  }
54660
54651
  case "array_buffer":
54661
54652
  case "data_view":
54662
- cleaned.push(path10);
54653
+ cleaned.push(path12);
54663
54654
  return {
54664
54655
  inspectable: false,
54665
54656
  preview_short: formatDataForPreview(data, false),
@@ -54669,21 +54660,21 @@ var require_backend = __commonJS({
54669
54660
  type
54670
54661
  };
54671
54662
  case "array":
54672
- isPathAllowedCheck = isPathAllowed(path10);
54663
+ isPathAllowedCheck = isPathAllowed(path12);
54673
54664
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
54674
- return createDehydrated(type, true, data, cleaned, path10);
54665
+ return createDehydrated(type, true, data, cleaned, path12);
54675
54666
  }
54676
54667
  var arr = [];
54677
54668
  for (var i = 0; i < data.length; i++) {
54678
- arr[i] = dehydrateKey(data, i, cleaned, unserializable, path10.concat([i]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54669
+ arr[i] = dehydrateKey(data, i, cleaned, unserializable, path12.concat([i]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54679
54670
  }
54680
54671
  return arr;
54681
54672
  case "html_all_collection":
54682
54673
  case "typed_array":
54683
54674
  case "iterator":
54684
- isPathAllowedCheck = isPathAllowed(path10);
54675
+ isPathAllowedCheck = isPathAllowed(path12);
54685
54676
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
54686
- return createDehydrated(type, true, data, cleaned, path10);
54677
+ return createDehydrated(type, true, data, cleaned, path12);
54687
54678
  } else {
54688
54679
  var _unserializableValue2 = {
54689
54680
  unserializable: true,
@@ -54695,13 +54686,13 @@ var require_backend = __commonJS({
54695
54686
  name: typeof data.constructor !== "function" || typeof data.constructor.name !== "string" || data.constructor.name === "Object" ? "" : data.constructor.name
54696
54687
  };
54697
54688
  Array.from(data).forEach(function(item, i2) {
54698
- return _unserializableValue2[i2] = dehydrate(item, cleaned, unserializable, path10.concat([i2]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54689
+ return _unserializableValue2[i2] = dehydrate(item, cleaned, unserializable, path12.concat([i2]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54699
54690
  });
54700
- unserializable.push(path10);
54691
+ unserializable.push(path12);
54701
54692
  return _unserializableValue2;
54702
54693
  }
54703
54694
  case "opaque_iterator":
54704
- cleaned.push(path10);
54695
+ cleaned.push(path12);
54705
54696
  return {
54706
54697
  inspectable: false,
54707
54698
  preview_short: formatDataForPreview(data, false),
@@ -54710,7 +54701,7 @@ var require_backend = __commonJS({
54710
54701
  type
54711
54702
  };
54712
54703
  case "date":
54713
- cleaned.push(path10);
54704
+ cleaned.push(path12);
54714
54705
  return {
54715
54706
  inspectable: false,
54716
54707
  preview_short: formatDataForPreview(data, false),
@@ -54719,7 +54710,7 @@ var require_backend = __commonJS({
54719
54710
  type
54720
54711
  };
54721
54712
  case "regexp":
54722
- cleaned.push(path10);
54713
+ cleaned.push(path12);
54723
54714
  return {
54724
54715
  inspectable: false,
54725
54716
  preview_short: formatDataForPreview(data, false),
@@ -54728,9 +54719,9 @@ var require_backend = __commonJS({
54728
54719
  type
54729
54720
  };
54730
54721
  case "thenable":
54731
- isPathAllowedCheck = isPathAllowed(path10);
54722
+ isPathAllowedCheck = isPathAllowed(path12);
54732
54723
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
54733
- cleaned.push(path10);
54724
+ cleaned.push(path12);
54734
54725
  return {
54735
54726
  inspectable: data.status === "fulfilled" || data.status === "rejected",
54736
54727
  preview_short: formatDataForPreview(data, false),
@@ -54751,8 +54742,8 @@ var require_backend = __commonJS({
54751
54742
  preview_long: formatDataForPreview(data, true),
54752
54743
  name: "fulfilled Thenable"
54753
54744
  };
54754
- _unserializableValue3.value = dehydrate(data.value, cleaned, unserializable, path10.concat(["value"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54755
- unserializable.push(path10);
54745
+ _unserializableValue3.value = dehydrate(data.value, cleaned, unserializable, path12.concat(["value"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54746
+ unserializable.push(path12);
54756
54747
  return _unserializableValue3;
54757
54748
  }
54758
54749
  case "rejected": {
@@ -54763,12 +54754,12 @@ var require_backend = __commonJS({
54763
54754
  preview_long: formatDataForPreview(data, true),
54764
54755
  name: "rejected Thenable"
54765
54756
  };
54766
- _unserializableValue4.reason = dehydrate(data.reason, cleaned, unserializable, path10.concat(["reason"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54767
- unserializable.push(path10);
54757
+ _unserializableValue4.reason = dehydrate(data.reason, cleaned, unserializable, path12.concat(["reason"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54758
+ unserializable.push(path12);
54768
54759
  return _unserializableValue4;
54769
54760
  }
54770
54761
  default:
54771
- cleaned.push(path10);
54762
+ cleaned.push(path12);
54772
54763
  return {
54773
54764
  inspectable: false,
54774
54765
  preview_short: formatDataForPreview(data, false),
@@ -54778,21 +54769,21 @@ var require_backend = __commonJS({
54778
54769
  };
54779
54770
  }
54780
54771
  case "object":
54781
- isPathAllowedCheck = isPathAllowed(path10);
54772
+ isPathAllowedCheck = isPathAllowed(path12);
54782
54773
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
54783
- return createDehydrated(type, true, data, cleaned, path10);
54774
+ return createDehydrated(type, true, data, cleaned, path12);
54784
54775
  } else {
54785
54776
  var object2 = {};
54786
54777
  getAllEnumerableKeys(data).forEach(function(key) {
54787
54778
  var name = key.toString();
54788
- object2[name] = dehydrateKey(data, key, cleaned, unserializable, path10.concat([name]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54779
+ object2[name] = dehydrateKey(data, key, cleaned, unserializable, path12.concat([name]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54789
54780
  });
54790
54781
  return object2;
54791
54782
  }
54792
54783
  case "class_instance": {
54793
- isPathAllowedCheck = isPathAllowed(path10);
54784
+ isPathAllowedCheck = isPathAllowed(path12);
54794
54785
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
54795
- return createDehydrated(type, true, data, cleaned, path10);
54786
+ return createDehydrated(type, true, data, cleaned, path12);
54796
54787
  }
54797
54788
  var value = {
54798
54789
  unserializable: true,
@@ -54804,15 +54795,15 @@ var require_backend = __commonJS({
54804
54795
  };
54805
54796
  getAllEnumerableKeys(data).forEach(function(key) {
54806
54797
  var keyAsString = key.toString();
54807
- value[keyAsString] = dehydrate(data[key], cleaned, unserializable, path10.concat([keyAsString]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54798
+ value[keyAsString] = dehydrate(data[key], cleaned, unserializable, path12.concat([keyAsString]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54808
54799
  });
54809
- unserializable.push(path10);
54800
+ unserializable.push(path12);
54810
54801
  return value;
54811
54802
  }
54812
54803
  case "error": {
54813
- isPathAllowedCheck = isPathAllowed(path10);
54804
+ isPathAllowedCheck = isPathAllowed(path12);
54814
54805
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
54815
- return createDehydrated(type, true, data, cleaned, path10);
54806
+ return createDehydrated(type, true, data, cleaned, path12);
54816
54807
  }
54817
54808
  var _value = {
54818
54809
  unserializable: true,
@@ -54822,22 +54813,22 @@ var require_backend = __commonJS({
54822
54813
  preview_long: formatDataForPreview(data, true),
54823
54814
  name: data.name
54824
54815
  };
54825
- _value.message = dehydrate(data.message, cleaned, unserializable, path10.concat(["message"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54826
- _value.stack = dehydrate(data.stack, cleaned, unserializable, path10.concat(["stack"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54816
+ _value.message = dehydrate(data.message, cleaned, unserializable, path12.concat(["message"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54817
+ _value.stack = dehydrate(data.stack, cleaned, unserializable, path12.concat(["stack"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54827
54818
  if ("cause" in data) {
54828
- _value.cause = dehydrate(data.cause, cleaned, unserializable, path10.concat(["cause"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54819
+ _value.cause = dehydrate(data.cause, cleaned, unserializable, path12.concat(["cause"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54829
54820
  }
54830
54821
  getAllEnumerableKeys(data).forEach(function(key) {
54831
54822
  var keyAsString = key.toString();
54832
- _value[keyAsString] = dehydrate(data[key], cleaned, unserializable, path10.concat([keyAsString]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54823
+ _value[keyAsString] = dehydrate(data[key], cleaned, unserializable, path12.concat([keyAsString]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54833
54824
  });
54834
- unserializable.push(path10);
54825
+ unserializable.push(path12);
54835
54826
  return _value;
54836
54827
  }
54837
54828
  case "infinity":
54838
54829
  case "nan":
54839
54830
  case "undefined":
54840
- cleaned.push(path10);
54831
+ cleaned.push(path12);
54841
54832
  return {
54842
54833
  type
54843
54834
  };
@@ -54845,10 +54836,10 @@ var require_backend = __commonJS({
54845
54836
  return data;
54846
54837
  }
54847
54838
  }
54848
- function dehydrateKey(parent, key, cleaned, unserializable, path10, isPathAllowed) {
54839
+ function dehydrateKey(parent, key, cleaned, unserializable, path12, isPathAllowed) {
54849
54840
  var level = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : 0;
54850
54841
  try {
54851
- return dehydrate(parent[key], cleaned, unserializable, path10, isPathAllowed, level);
54842
+ return dehydrate(parent[key], cleaned, unserializable, path12, isPathAllowed, level);
54852
54843
  } catch (error48) {
54853
54844
  var preview = "";
54854
54845
  if (hydration_typeof(error48) === "object" && error48 !== null && typeof error48.stack === "string") {
@@ -54856,7 +54847,7 @@ var require_backend = __commonJS({
54856
54847
  } else if (typeof error48 === "string") {
54857
54848
  preview = error48;
54858
54849
  }
54859
- cleaned.push(path10);
54850
+ cleaned.push(path12);
54860
54851
  return {
54861
54852
  inspectable: false,
54862
54853
  preview_short: "[Exception]",
@@ -54866,8 +54857,8 @@ var require_backend = __commonJS({
54866
54857
  };
54867
54858
  }
54868
54859
  }
54869
- function fillInPath(object2, data, path10, value) {
54870
- var target = getInObject(object2, path10);
54860
+ function fillInPath(object2, data, path12, value) {
54861
+ var target = getInObject(object2, path12);
54871
54862
  if (target != null) {
54872
54863
  if (!target[meta3.unserializable]) {
54873
54864
  delete target[meta3.inspectable];
@@ -54882,9 +54873,9 @@ var require_backend = __commonJS({
54882
54873
  }
54883
54874
  if (value !== null && data.unserializable.length > 0) {
54884
54875
  var unserializablePath = data.unserializable[0];
54885
- var isMatch = unserializablePath.length === path10.length;
54886
- for (var i = 0; i < path10.length; i++) {
54887
- if (path10[i] !== unserializablePath[i]) {
54876
+ var isMatch = unserializablePath.length === path12.length;
54877
+ for (var i = 0; i < path12.length; i++) {
54878
+ if (path12[i] !== unserializablePath[i]) {
54888
54879
  isMatch = false;
54889
54880
  break;
54890
54881
  }
@@ -54893,13 +54884,13 @@ var require_backend = __commonJS({
54893
54884
  upgradeUnserializable(value, value);
54894
54885
  }
54895
54886
  }
54896
- setInObject(object2, path10, value);
54887
+ setInObject(object2, path12, value);
54897
54888
  }
54898
54889
  function hydrate(object2, cleaned, unserializable) {
54899
- cleaned.forEach(function(path10) {
54900
- var length = path10.length;
54901
- var last = path10[length - 1];
54902
- var parent = getInObject(object2, path10.slice(0, length - 1));
54890
+ cleaned.forEach(function(path12) {
54891
+ var length = path12.length;
54892
+ var last = path12[length - 1];
54893
+ var parent = getInObject(object2, path12.slice(0, length - 1));
54903
54894
  if (!parent || !parent.hasOwnProperty(last)) {
54904
54895
  return;
54905
54896
  }
@@ -54925,10 +54916,10 @@ var require_backend = __commonJS({
54925
54916
  parent[last] = replaced;
54926
54917
  }
54927
54918
  });
54928
- unserializable.forEach(function(path10) {
54929
- var length = path10.length;
54930
- var last = path10[length - 1];
54931
- var parent = getInObject(object2, path10.slice(0, length - 1));
54919
+ unserializable.forEach(function(path12) {
54920
+ var length = path12.length;
54921
+ var last = path12[length - 1];
54922
+ var parent = getInObject(object2, path12.slice(0, length - 1));
54932
54923
  if (!parent || !parent.hasOwnProperty(last)) {
54933
54924
  return;
54934
54925
  }
@@ -55051,11 +55042,11 @@ var require_backend = __commonJS({
55051
55042
  return gte(version2, FIRST_DEVTOOLS_BACKEND_LOCKSTEP_VER);
55052
55043
  }
55053
55044
  function cleanForBridge(data, isPathAllowed) {
55054
- var path10 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
55045
+ var path12 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
55055
55046
  if (data !== null) {
55056
55047
  var cleanedPaths = [];
55057
55048
  var unserializablePaths = [];
55058
- var cleanedData = dehydrate(data, cleanedPaths, unserializablePaths, path10, isPathAllowed);
55049
+ var cleanedData = dehydrate(data, cleanedPaths, unserializablePaths, path12, isPathAllowed);
55059
55050
  return {
55060
55051
  data: cleanedData,
55061
55052
  cleaned: cleanedPaths,
@@ -55065,18 +55056,18 @@ var require_backend = __commonJS({
55065
55056
  return null;
55066
55057
  }
55067
55058
  }
55068
- function copyWithDelete(obj, path10) {
55059
+ function copyWithDelete(obj, path12) {
55069
55060
  var index = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
55070
- var key = path10[index];
55061
+ var key = path12[index];
55071
55062
  var updated = shared_isArray(obj) ? obj.slice() : utils_objectSpread({}, obj);
55072
- if (index + 1 === path10.length) {
55063
+ if (index + 1 === path12.length) {
55073
55064
  if (shared_isArray(updated)) {
55074
55065
  updated.splice(key, 1);
55075
55066
  } else {
55076
55067
  delete updated[key];
55077
55068
  }
55078
55069
  } else {
55079
- updated[key] = copyWithDelete(obj[key], path10, index + 1);
55070
+ updated[key] = copyWithDelete(obj[key], path12, index + 1);
55080
55071
  }
55081
55072
  return updated;
55082
55073
  }
@@ -55097,14 +55088,14 @@ var require_backend = __commonJS({
55097
55088
  }
55098
55089
  return updated;
55099
55090
  }
55100
- function copyWithSet(obj, path10, value) {
55091
+ function copyWithSet(obj, path12, value) {
55101
55092
  var index = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0;
55102
- if (index >= path10.length) {
55093
+ if (index >= path12.length) {
55103
55094
  return value;
55104
55095
  }
55105
- var key = path10[index];
55096
+ var key = path12[index];
55106
55097
  var updated = shared_isArray(obj) ? obj.slice() : utils_objectSpread({}, obj);
55107
- updated[key] = copyWithSet(obj[key], path10, value, index + 1);
55098
+ updated[key] = copyWithSet(obj[key], path12, value, index + 1);
55108
55099
  return updated;
55109
55100
  }
55110
55101
  function getEffectDurations(root) {
@@ -56427,12 +56418,12 @@ var require_backend = __commonJS({
56427
56418
  }
56428
56419
  });
56429
56420
  bridge_defineProperty(_this, "overrideValueAtPath", function(_ref) {
56430
- var id = _ref.id, path10 = _ref.path, rendererID = _ref.rendererID, type = _ref.type, value = _ref.value;
56421
+ var id = _ref.id, path12 = _ref.path, rendererID = _ref.rendererID, type = _ref.type, value = _ref.value;
56431
56422
  switch (type) {
56432
56423
  case "context":
56433
56424
  _this.send("overrideContext", {
56434
56425
  id,
56435
- path: path10,
56426
+ path: path12,
56436
56427
  rendererID,
56437
56428
  wasForwarded: true,
56438
56429
  value
@@ -56441,7 +56432,7 @@ var require_backend = __commonJS({
56441
56432
  case "hooks":
56442
56433
  _this.send("overrideHookState", {
56443
56434
  id,
56444
- path: path10,
56435
+ path: path12,
56445
56436
  rendererID,
56446
56437
  wasForwarded: true,
56447
56438
  value
@@ -56450,7 +56441,7 @@ var require_backend = __commonJS({
56450
56441
  case "props":
56451
56442
  _this.send("overrideProps", {
56452
56443
  id,
56453
- path: path10,
56444
+ path: path12,
56454
56445
  rendererID,
56455
56446
  wasForwarded: true,
56456
56447
  value
@@ -56459,7 +56450,7 @@ var require_backend = __commonJS({
56459
56450
  case "state":
56460
56451
  _this.send("overrideState", {
56461
56452
  id,
56462
- path: path10,
56453
+ path: path12,
56463
56454
  rendererID,
56464
56455
  wasForwarded: true,
56465
56456
  value
@@ -56803,12 +56794,12 @@ var require_backend = __commonJS({
56803
56794
  }
56804
56795
  });
56805
56796
  agent_defineProperty(_this, "copyElementPath", function(_ref5) {
56806
- var id = _ref5.id, path10 = _ref5.path, rendererID = _ref5.rendererID;
56797
+ var id = _ref5.id, path12 = _ref5.path, rendererID = _ref5.rendererID;
56807
56798
  var renderer2 = _this._rendererInterfaces[rendererID];
56808
56799
  if (renderer2 == null) {
56809
56800
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
56810
56801
  } else {
56811
- var value = renderer2.getSerializedElementValueByPath(id, path10);
56802
+ var value = renderer2.getSerializedElementValueByPath(id, path12);
56812
56803
  if (value != null) {
56813
56804
  _this._bridge.send("saveToClipboard", value);
56814
56805
  } else {
@@ -56817,12 +56808,12 @@ var require_backend = __commonJS({
56817
56808
  }
56818
56809
  });
56819
56810
  agent_defineProperty(_this, "deletePath", function(_ref6) {
56820
- var hookID = _ref6.hookID, id = _ref6.id, path10 = _ref6.path, rendererID = _ref6.rendererID, type = _ref6.type;
56811
+ var hookID = _ref6.hookID, id = _ref6.id, path12 = _ref6.path, rendererID = _ref6.rendererID, type = _ref6.type;
56821
56812
  var renderer2 = _this._rendererInterfaces[rendererID];
56822
56813
  if (renderer2 == null) {
56823
56814
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
56824
56815
  } else {
56825
- renderer2.deletePath(type, id, hookID, path10);
56816
+ renderer2.deletePath(type, id, hookID, path12);
56826
56817
  }
56827
56818
  });
56828
56819
  agent_defineProperty(_this, "getBackendVersion", function() {
@@ -56859,12 +56850,12 @@ var require_backend = __commonJS({
56859
56850
  }
56860
56851
  });
56861
56852
  agent_defineProperty(_this, "inspectElement", function(_ref9) {
56862
- var forceFullData = _ref9.forceFullData, id = _ref9.id, path10 = _ref9.path, rendererID = _ref9.rendererID, requestID = _ref9.requestID;
56853
+ var forceFullData = _ref9.forceFullData, id = _ref9.id, path12 = _ref9.path, rendererID = _ref9.rendererID, requestID = _ref9.requestID;
56863
56854
  var renderer2 = _this._rendererInterfaces[rendererID];
56864
56855
  if (renderer2 == null) {
56865
56856
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
56866
56857
  } else {
56867
- _this._bridge.send("inspectedElement", renderer2.inspectElement(requestID, id, path10, forceFullData));
56858
+ _this._bridge.send("inspectedElement", renderer2.inspectElement(requestID, id, path12, forceFullData));
56868
56859
  if (_this._persistedSelectionMatch === null || _this._persistedSelectionMatch.id !== id) {
56869
56860
  _this._persistedSelection = null;
56870
56861
  _this._persistedSelectionMatch = null;
@@ -56898,15 +56889,15 @@ var require_backend = __commonJS({
56898
56889
  }
56899
56890
  for (var rendererID in _this._rendererInterfaces) {
56900
56891
  var renderer2 = _this._rendererInterfaces[rendererID];
56901
- var path10 = null;
56892
+ var path12 = null;
56902
56893
  if (suspendedByPathIndex !== null && rendererPath !== null) {
56903
56894
  var suspendedByPathRendererIndex = suspendedByPathIndex - suspendedByOffset;
56904
56895
  var rendererHasRequestedSuspendedByPath = renderer2.getElementAttributeByPath(id, ["suspendedBy", suspendedByPathRendererIndex]) !== void 0;
56905
56896
  if (rendererHasRequestedSuspendedByPath) {
56906
- path10 = ["suspendedBy", suspendedByPathRendererIndex].concat(rendererPath);
56897
+ path12 = ["suspendedBy", suspendedByPathRendererIndex].concat(rendererPath);
56907
56898
  }
56908
56899
  }
56909
- var inspectedRootsPayload = renderer2.inspectElement(requestID, id, path10, forceFullData);
56900
+ var inspectedRootsPayload = renderer2.inspectElement(requestID, id, path12, forceFullData);
56910
56901
  switch (inspectedRootsPayload.type) {
56911
56902
  case "hydrated-path":
56912
56903
  inspectedRootsPayload.path[1] += suspendedByOffset;
@@ -57000,20 +56991,20 @@ var require_backend = __commonJS({
57000
56991
  }
57001
56992
  });
57002
56993
  agent_defineProperty(_this, "overrideValueAtPath", function(_ref15) {
57003
- var hookID = _ref15.hookID, id = _ref15.id, path10 = _ref15.path, rendererID = _ref15.rendererID, type = _ref15.type, value = _ref15.value;
56994
+ var hookID = _ref15.hookID, id = _ref15.id, path12 = _ref15.path, rendererID = _ref15.rendererID, type = _ref15.type, value = _ref15.value;
57004
56995
  var renderer2 = _this._rendererInterfaces[rendererID];
57005
56996
  if (renderer2 == null) {
57006
56997
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
57007
56998
  } else {
57008
- renderer2.overrideValueAtPath(type, id, hookID, path10, value);
56999
+ renderer2.overrideValueAtPath(type, id, hookID, path12, value);
57009
57000
  }
57010
57001
  });
57011
57002
  agent_defineProperty(_this, "overrideContext", function(_ref16) {
57012
- var id = _ref16.id, path10 = _ref16.path, rendererID = _ref16.rendererID, wasForwarded = _ref16.wasForwarded, value = _ref16.value;
57003
+ var id = _ref16.id, path12 = _ref16.path, rendererID = _ref16.rendererID, wasForwarded = _ref16.wasForwarded, value = _ref16.value;
57013
57004
  if (!wasForwarded) {
57014
57005
  _this.overrideValueAtPath({
57015
57006
  id,
57016
- path: path10,
57007
+ path: path12,
57017
57008
  rendererID,
57018
57009
  type: "context",
57019
57010
  value
@@ -57021,11 +57012,11 @@ var require_backend = __commonJS({
57021
57012
  }
57022
57013
  });
57023
57014
  agent_defineProperty(_this, "overrideHookState", function(_ref17) {
57024
- var id = _ref17.id, hookID = _ref17.hookID, path10 = _ref17.path, rendererID = _ref17.rendererID, wasForwarded = _ref17.wasForwarded, value = _ref17.value;
57015
+ var id = _ref17.id, hookID = _ref17.hookID, path12 = _ref17.path, rendererID = _ref17.rendererID, wasForwarded = _ref17.wasForwarded, value = _ref17.value;
57025
57016
  if (!wasForwarded) {
57026
57017
  _this.overrideValueAtPath({
57027
57018
  id,
57028
- path: path10,
57019
+ path: path12,
57029
57020
  rendererID,
57030
57021
  type: "hooks",
57031
57022
  value
@@ -57033,11 +57024,11 @@ var require_backend = __commonJS({
57033
57024
  }
57034
57025
  });
57035
57026
  agent_defineProperty(_this, "overrideProps", function(_ref18) {
57036
- var id = _ref18.id, path10 = _ref18.path, rendererID = _ref18.rendererID, wasForwarded = _ref18.wasForwarded, value = _ref18.value;
57027
+ var id = _ref18.id, path12 = _ref18.path, rendererID = _ref18.rendererID, wasForwarded = _ref18.wasForwarded, value = _ref18.value;
57037
57028
  if (!wasForwarded) {
57038
57029
  _this.overrideValueAtPath({
57039
57030
  id,
57040
- path: path10,
57031
+ path: path12,
57041
57032
  rendererID,
57042
57033
  type: "props",
57043
57034
  value
@@ -57045,11 +57036,11 @@ var require_backend = __commonJS({
57045
57036
  }
57046
57037
  });
57047
57038
  agent_defineProperty(_this, "overrideState", function(_ref19) {
57048
- var id = _ref19.id, path10 = _ref19.path, rendererID = _ref19.rendererID, wasForwarded = _ref19.wasForwarded, value = _ref19.value;
57039
+ var id = _ref19.id, path12 = _ref19.path, rendererID = _ref19.rendererID, wasForwarded = _ref19.wasForwarded, value = _ref19.value;
57049
57040
  if (!wasForwarded) {
57050
57041
  _this.overrideValueAtPath({
57051
57042
  id,
57052
- path: path10,
57043
+ path: path12,
57053
57044
  rendererID,
57054
57045
  type: "state",
57055
57046
  value
@@ -57116,12 +57107,12 @@ var require_backend = __commonJS({
57116
57107
  _this._bridge.send("stopInspectingHost", selected);
57117
57108
  });
57118
57109
  agent_defineProperty(_this, "storeAsGlobal", function(_ref23) {
57119
- var count = _ref23.count, id = _ref23.id, path10 = _ref23.path, rendererID = _ref23.rendererID;
57110
+ var count = _ref23.count, id = _ref23.id, path12 = _ref23.path, rendererID = _ref23.rendererID;
57120
57111
  var renderer2 = _this._rendererInterfaces[rendererID];
57121
57112
  if (renderer2 == null) {
57122
57113
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
57123
57114
  } else {
57124
- renderer2.storeAsGlobal(id, path10, count);
57115
+ renderer2.storeAsGlobal(id, path12, count);
57125
57116
  }
57126
57117
  });
57127
57118
  agent_defineProperty(_this, "updateHookSettings", function(settings) {
@@ -57138,12 +57129,12 @@ var require_backend = __commonJS({
57138
57129
  var rendererID = +rendererIDString;
57139
57130
  var renderer2 = _this._rendererInterfaces[rendererID];
57140
57131
  if (_this._lastSelectedRendererID === rendererID) {
57141
- var path10 = renderer2.getPathForElement(_this._lastSelectedElementID);
57142
- if (path10 !== null) {
57143
- renderer2.setTrackedPath(path10);
57132
+ var path12 = renderer2.getPathForElement(_this._lastSelectedElementID);
57133
+ if (path12 !== null) {
57134
+ renderer2.setTrackedPath(path12);
57144
57135
  _this._persistedSelection = {
57145
57136
  rendererID,
57146
- path: path10
57137
+ path: path12
57147
57138
  };
57148
57139
  }
57149
57140
  }
@@ -57218,11 +57209,11 @@ var require_backend = __commonJS({
57218
57209
  var rendererID = _this._lastSelectedRendererID;
57219
57210
  var id = _this._lastSelectedElementID;
57220
57211
  var renderer2 = _this._rendererInterfaces[rendererID];
57221
- var path10 = renderer2 != null ? renderer2.getPathForElement(id) : null;
57222
- if (path10 !== null) {
57212
+ var path12 = renderer2 != null ? renderer2.getPathForElement(id) : null;
57213
+ if (path12 !== null) {
57223
57214
  storage_sessionStorageSetItem(SESSION_STORAGE_LAST_SELECTION_KEY, JSON.stringify({
57224
57215
  rendererID,
57225
- path: path10
57216
+ path: path12
57226
57217
  }));
57227
57218
  } else {
57228
57219
  storage_sessionStorageRemoveItem(SESSION_STORAGE_LAST_SELECTION_KEY);
@@ -57955,7 +57946,7 @@ var require_backend = __commonJS({
57955
57946
  hasElementWithId: function hasElementWithId() {
57956
57947
  return false;
57957
57948
  },
57958
- inspectElement: function inspectElement(requestID, id, path10) {
57949
+ inspectElement: function inspectElement(requestID, id, path12) {
57959
57950
  return {
57960
57951
  id,
57961
57952
  responseID: requestID,
@@ -63252,9 +63243,9 @@ var require_backend = __commonJS({
63252
63243
  }
63253
63244
  return null;
63254
63245
  }
63255
- function getElementAttributeByPath(id, path10) {
63246
+ function getElementAttributeByPath(id, path12) {
63256
63247
  if (isMostRecentlyInspectedElement(id)) {
63257
- return utils_getInObject(mostRecentlyInspectedElement, path10);
63248
+ return utils_getInObject(mostRecentlyInspectedElement, path12);
63258
63249
  }
63259
63250
  return void 0;
63260
63251
  }
@@ -63961,9 +63952,9 @@ var require_backend = __commonJS({
63961
63952
  function isMostRecentlyInspectedElementCurrent(id) {
63962
63953
  return isMostRecentlyInspectedElement(id) && !hasElementUpdatedSinceLastInspected;
63963
63954
  }
63964
- function mergeInspectedPaths(path10) {
63955
+ function mergeInspectedPaths(path12) {
63965
63956
  var current = currentlyInspectedPaths;
63966
- path10.forEach(function(key) {
63957
+ path12.forEach(function(key) {
63967
63958
  if (!current[key]) {
63968
63959
  current[key] = {};
63969
63960
  }
@@ -63971,21 +63962,21 @@ var require_backend = __commonJS({
63971
63962
  });
63972
63963
  }
63973
63964
  function createIsPathAllowed(key, secondaryCategory) {
63974
- return function isPathAllowed(path10) {
63965
+ return function isPathAllowed(path12) {
63975
63966
  switch (secondaryCategory) {
63976
63967
  case "hooks":
63977
- if (path10.length === 1) {
63968
+ if (path12.length === 1) {
63978
63969
  return true;
63979
63970
  }
63980
- if (path10[path10.length - 2] === "hookSource" && path10[path10.length - 1] === "fileName") {
63971
+ if (path12[path12.length - 2] === "hookSource" && path12[path12.length - 1] === "fileName") {
63981
63972
  return true;
63982
63973
  }
63983
- if (path10[path10.length - 1] === "subHooks" || path10[path10.length - 2] === "subHooks") {
63974
+ if (path12[path12.length - 1] === "subHooks" || path12[path12.length - 2] === "subHooks") {
63984
63975
  return true;
63985
63976
  }
63986
63977
  break;
63987
63978
  case "suspendedBy":
63988
- if (path10.length < 5) {
63979
+ if (path12.length < 5) {
63989
63980
  return true;
63990
63981
  }
63991
63982
  break;
@@ -63996,8 +63987,8 @@ var require_backend = __commonJS({
63996
63987
  if (!current) {
63997
63988
  return false;
63998
63989
  }
63999
- for (var i = 0; i < path10.length; i++) {
64000
- current = current[path10[i]];
63990
+ for (var i = 0; i < path12.length; i++) {
63991
+ current = current[path12[i]];
64001
63992
  if (!current) {
64002
63993
  return false;
64003
63994
  }
@@ -64051,38 +64042,38 @@ var require_backend = __commonJS({
64051
64042
  break;
64052
64043
  }
64053
64044
  }
64054
- function storeAsGlobal(id, path10, count) {
64045
+ function storeAsGlobal(id, path12, count) {
64055
64046
  if (isMostRecentlyInspectedElement(id)) {
64056
- var value = utils_getInObject(mostRecentlyInspectedElement, path10);
64047
+ var value = utils_getInObject(mostRecentlyInspectedElement, path12);
64057
64048
  var key = "$reactTemp".concat(count);
64058
64049
  window[key] = value;
64059
64050
  console.log(key);
64060
64051
  console.log(value);
64061
64052
  }
64062
64053
  }
64063
- function getSerializedElementValueByPath(id, path10) {
64054
+ function getSerializedElementValueByPath(id, path12) {
64064
64055
  if (isMostRecentlyInspectedElement(id)) {
64065
- var valueToCopy = utils_getInObject(mostRecentlyInspectedElement, path10);
64056
+ var valueToCopy = utils_getInObject(mostRecentlyInspectedElement, path12);
64066
64057
  return serializeToString(valueToCopy);
64067
64058
  }
64068
64059
  }
64069
- function inspectElement(requestID, id, path10, forceFullData) {
64070
- if (path10 !== null) {
64071
- mergeInspectedPaths(path10);
64060
+ function inspectElement(requestID, id, path12, forceFullData) {
64061
+ if (path12 !== null) {
64062
+ mergeInspectedPaths(path12);
64072
64063
  }
64073
64064
  if (isMostRecentlyInspectedElement(id) && !forceFullData) {
64074
64065
  if (!hasElementUpdatedSinceLastInspected) {
64075
- if (path10 !== null) {
64066
+ if (path12 !== null) {
64076
64067
  var secondaryCategory = null;
64077
- if (path10[0] === "hooks" || path10[0] === "suspendedBy") {
64078
- secondaryCategory = path10[0];
64068
+ if (path12[0] === "hooks" || path12[0] === "suspendedBy") {
64069
+ secondaryCategory = path12[0];
64079
64070
  }
64080
64071
  return {
64081
64072
  id,
64082
64073
  responseID: requestID,
64083
64074
  type: "hydrated-path",
64084
- path: path10,
64085
- value: cleanForBridge(utils_getInObject(mostRecentlyInspectedElement, path10), createIsPathAllowed(null, secondaryCategory), path10)
64075
+ path: path12,
64076
+ value: cleanForBridge(utils_getInObject(mostRecentlyInspectedElement, path12), createIsPathAllowed(null, secondaryCategory), path12)
64086
64077
  };
64087
64078
  } else {
64088
64079
  return {
@@ -64271,7 +64262,7 @@ var require_backend = __commonJS({
64271
64262
  console.groupEnd();
64272
64263
  }
64273
64264
  }
64274
- function deletePath(type, id, hookID, path10) {
64265
+ function deletePath(type, id, hookID, path12) {
64275
64266
  var devtoolsInstance = idToDevToolsInstanceMap.get(id);
64276
64267
  if (devtoolsInstance === void 0) {
64277
64268
  console.warn('Could not find DevToolsInstance with id "'.concat(id, '"'));
@@ -64285,12 +64276,12 @@ var require_backend = __commonJS({
64285
64276
  var instance = fiber.stateNode;
64286
64277
  switch (type) {
64287
64278
  case "context":
64288
- path10 = path10.slice(1);
64279
+ path12 = path12.slice(1);
64289
64280
  switch (fiber.tag) {
64290
64281
  case ClassComponent:
64291
- if (path10.length === 0) {
64282
+ if (path12.length === 0) {
64292
64283
  } else {
64293
- deletePathInObject(instance.context, path10);
64284
+ deletePathInObject(instance.context, path12);
64294
64285
  }
64295
64286
  instance.forceUpdate();
64296
64287
  break;
@@ -64300,21 +64291,21 @@ var require_backend = __commonJS({
64300
64291
  break;
64301
64292
  case "hooks":
64302
64293
  if (typeof overrideHookStateDeletePath === "function") {
64303
- overrideHookStateDeletePath(fiber, hookID, path10);
64294
+ overrideHookStateDeletePath(fiber, hookID, path12);
64304
64295
  }
64305
64296
  break;
64306
64297
  case "props":
64307
64298
  if (instance === null) {
64308
64299
  if (typeof overridePropsDeletePath === "function") {
64309
- overridePropsDeletePath(fiber, path10);
64300
+ overridePropsDeletePath(fiber, path12);
64310
64301
  }
64311
64302
  } else {
64312
- fiber.pendingProps = copyWithDelete(instance.props, path10);
64303
+ fiber.pendingProps = copyWithDelete(instance.props, path12);
64313
64304
  instance.forceUpdate();
64314
64305
  }
64315
64306
  break;
64316
64307
  case "state":
64317
- deletePathInObject(instance.state, path10);
64308
+ deletePathInObject(instance.state, path12);
64318
64309
  instance.forceUpdate();
64319
64310
  break;
64320
64311
  }
@@ -64370,7 +64361,7 @@ var require_backend = __commonJS({
64370
64361
  }
64371
64362
  }
64372
64363
  }
64373
- function overrideValueAtPath(type, id, hookID, path10, value) {
64364
+ function overrideValueAtPath(type, id, hookID, path12, value) {
64374
64365
  var devtoolsInstance = idToDevToolsInstanceMap.get(id);
64375
64366
  if (devtoolsInstance === void 0) {
64376
64367
  console.warn('Could not find DevToolsInstance with id "'.concat(id, '"'));
@@ -64384,13 +64375,13 @@ var require_backend = __commonJS({
64384
64375
  var instance = fiber.stateNode;
64385
64376
  switch (type) {
64386
64377
  case "context":
64387
- path10 = path10.slice(1);
64378
+ path12 = path12.slice(1);
64388
64379
  switch (fiber.tag) {
64389
64380
  case ClassComponent:
64390
- if (path10.length === 0) {
64381
+ if (path12.length === 0) {
64391
64382
  instance.context = value;
64392
64383
  } else {
64393
- utils_setInObject(instance.context, path10, value);
64384
+ utils_setInObject(instance.context, path12, value);
64394
64385
  }
64395
64386
  instance.forceUpdate();
64396
64387
  break;
@@ -64400,18 +64391,18 @@ var require_backend = __commonJS({
64400
64391
  break;
64401
64392
  case "hooks":
64402
64393
  if (typeof overrideHookState === "function") {
64403
- overrideHookState(fiber, hookID, path10, value);
64394
+ overrideHookState(fiber, hookID, path12, value);
64404
64395
  }
64405
64396
  break;
64406
64397
  case "props":
64407
64398
  switch (fiber.tag) {
64408
64399
  case ClassComponent:
64409
- fiber.pendingProps = copyWithSet(instance.props, path10, value);
64400
+ fiber.pendingProps = copyWithSet(instance.props, path12, value);
64410
64401
  instance.forceUpdate();
64411
64402
  break;
64412
64403
  default:
64413
64404
  if (typeof overrideProps === "function") {
64414
- overrideProps(fiber, path10, value);
64405
+ overrideProps(fiber, path12, value);
64415
64406
  }
64416
64407
  break;
64417
64408
  }
@@ -64419,7 +64410,7 @@ var require_backend = __commonJS({
64419
64410
  case "state":
64420
64411
  switch (fiber.tag) {
64421
64412
  case ClassComponent:
64422
- utils_setInObject(instance.state, path10, value);
64413
+ utils_setInObject(instance.state, path12, value);
64423
64414
  instance.forceUpdate();
64424
64415
  break;
64425
64416
  }
@@ -64705,14 +64696,14 @@ var require_backend = __commonJS({
64705
64696
  var trackedPathMatchInstance = null;
64706
64697
  var trackedPathMatchDepth = -1;
64707
64698
  var mightBeOnTrackedPath = false;
64708
- function setTrackedPath(path10) {
64709
- if (path10 === null) {
64699
+ function setTrackedPath(path12) {
64700
+ if (path12 === null) {
64710
64701
  trackedPathMatchFiber = null;
64711
64702
  trackedPathMatchInstance = null;
64712
64703
  trackedPathMatchDepth = -1;
64713
64704
  mightBeOnTrackedPath = false;
64714
64705
  }
64715
- trackedPath = path10;
64706
+ trackedPath = path12;
64716
64707
  }
64717
64708
  function updateTrackedPathStateBeforeMount(fiber, fiberInstance) {
64718
64709
  if (trackedPath === null || !mightBeOnTrackedPath) {
@@ -65482,9 +65473,9 @@ var require_backend = __commonJS({
65482
65473
  }
65483
65474
  var currentlyInspectedElementID = null;
65484
65475
  var currentlyInspectedPaths = {};
65485
- function mergeInspectedPaths(path10) {
65476
+ function mergeInspectedPaths(path12) {
65486
65477
  var current = currentlyInspectedPaths;
65487
- path10.forEach(function(key) {
65478
+ path12.forEach(function(key) {
65488
65479
  if (!current[key]) {
65489
65480
  current[key] = {};
65490
65481
  }
@@ -65492,13 +65483,13 @@ var require_backend = __commonJS({
65492
65483
  });
65493
65484
  }
65494
65485
  function createIsPathAllowed(key) {
65495
- return function isPathAllowed(path10) {
65486
+ return function isPathAllowed(path12) {
65496
65487
  var current = currentlyInspectedPaths[key];
65497
65488
  if (!current) {
65498
65489
  return false;
65499
65490
  }
65500
- for (var i = 0; i < path10.length; i++) {
65501
- current = current[path10[i]];
65491
+ for (var i = 0; i < path12.length; i++) {
65492
+ current = current[path12[i]];
65502
65493
  if (!current) {
65503
65494
  return false;
65504
65495
  }
@@ -65548,24 +65539,24 @@ var require_backend = __commonJS({
65548
65539
  break;
65549
65540
  }
65550
65541
  }
65551
- function storeAsGlobal(id, path10, count) {
65542
+ function storeAsGlobal(id, path12, count) {
65552
65543
  var inspectedElement = inspectElementRaw(id);
65553
65544
  if (inspectedElement !== null) {
65554
- var value = utils_getInObject(inspectedElement, path10);
65545
+ var value = utils_getInObject(inspectedElement, path12);
65555
65546
  var key = "$reactTemp".concat(count);
65556
65547
  window[key] = value;
65557
65548
  console.log(key);
65558
65549
  console.log(value);
65559
65550
  }
65560
65551
  }
65561
- function getSerializedElementValueByPath(id, path10) {
65552
+ function getSerializedElementValueByPath(id, path12) {
65562
65553
  var inspectedElement = inspectElementRaw(id);
65563
65554
  if (inspectedElement !== null) {
65564
- var valueToCopy = utils_getInObject(inspectedElement, path10);
65555
+ var valueToCopy = utils_getInObject(inspectedElement, path12);
65565
65556
  return serializeToString(valueToCopy);
65566
65557
  }
65567
65558
  }
65568
- function inspectElement(requestID, id, path10, forceFullData) {
65559
+ function inspectElement(requestID, id, path12, forceFullData) {
65569
65560
  if (forceFullData || currentlyInspectedElementID !== id) {
65570
65561
  currentlyInspectedElementID = id;
65571
65562
  currentlyInspectedPaths = {};
@@ -65578,8 +65569,8 @@ var require_backend = __commonJS({
65578
65569
  type: "not-found"
65579
65570
  };
65580
65571
  }
65581
- if (path10 !== null) {
65582
- mergeInspectedPaths(path10);
65572
+ if (path12 !== null) {
65573
+ mergeInspectedPaths(path12);
65583
65574
  }
65584
65575
  updateSelectedElement(id);
65585
65576
  inspectedElement.context = cleanForBridge(inspectedElement.context, createIsPathAllowed("context"));
@@ -65782,10 +65773,10 @@ var require_backend = __commonJS({
65782
65773
  console.groupEnd();
65783
65774
  }
65784
65775
  }
65785
- function getElementAttributeByPath(id, path10) {
65776
+ function getElementAttributeByPath(id, path12) {
65786
65777
  var inspectedElement = inspectElementRaw(id);
65787
65778
  if (inspectedElement !== null) {
65788
- return utils_getInObject(inspectedElement, path10);
65779
+ return utils_getInObject(inspectedElement, path12);
65789
65780
  }
65790
65781
  return void 0;
65791
65782
  }
@@ -65802,14 +65793,14 @@ var require_backend = __commonJS({
65802
65793
  }
65803
65794
  return element.type;
65804
65795
  }
65805
- function deletePath(type, id, hookID, path10) {
65796
+ function deletePath(type, id, hookID, path12) {
65806
65797
  var internalInstance = idToInternalInstanceMap.get(id);
65807
65798
  if (internalInstance != null) {
65808
65799
  var publicInstance = internalInstance._instance;
65809
65800
  if (publicInstance != null) {
65810
65801
  switch (type) {
65811
65802
  case "context":
65812
- deletePathInObject(publicInstance.context, path10);
65803
+ deletePathInObject(publicInstance.context, path12);
65813
65804
  forceUpdate(publicInstance);
65814
65805
  break;
65815
65806
  case "hooks":
@@ -65817,12 +65808,12 @@ var require_backend = __commonJS({
65817
65808
  case "props":
65818
65809
  var element = internalInstance._currentElement;
65819
65810
  internalInstance._currentElement = legacy_renderer_objectSpread(legacy_renderer_objectSpread({}, element), {}, {
65820
- props: copyWithDelete(element.props, path10)
65811
+ props: copyWithDelete(element.props, path12)
65821
65812
  });
65822
65813
  forceUpdate(publicInstance);
65823
65814
  break;
65824
65815
  case "state":
65825
- deletePathInObject(publicInstance.state, path10);
65816
+ deletePathInObject(publicInstance.state, path12);
65826
65817
  forceUpdate(publicInstance);
65827
65818
  break;
65828
65819
  }
@@ -65856,14 +65847,14 @@ var require_backend = __commonJS({
65856
65847
  }
65857
65848
  }
65858
65849
  }
65859
- function overrideValueAtPath(type, id, hookID, path10, value) {
65850
+ function overrideValueAtPath(type, id, hookID, path12, value) {
65860
65851
  var internalInstance = idToInternalInstanceMap.get(id);
65861
65852
  if (internalInstance != null) {
65862
65853
  var publicInstance = internalInstance._instance;
65863
65854
  if (publicInstance != null) {
65864
65855
  switch (type) {
65865
65856
  case "context":
65866
- utils_setInObject(publicInstance.context, path10, value);
65857
+ utils_setInObject(publicInstance.context, path12, value);
65867
65858
  forceUpdate(publicInstance);
65868
65859
  break;
65869
65860
  case "hooks":
@@ -65871,12 +65862,12 @@ var require_backend = __commonJS({
65871
65862
  case "props":
65872
65863
  var element = internalInstance._currentElement;
65873
65864
  internalInstance._currentElement = legacy_renderer_objectSpread(legacy_renderer_objectSpread({}, element), {}, {
65874
- props: copyWithSet(element.props, path10, value)
65865
+ props: copyWithSet(element.props, path12, value)
65875
65866
  });
65876
65867
  forceUpdate(publicInstance);
65877
65868
  break;
65878
65869
  case "state":
65879
- utils_setInObject(publicInstance.state, path10, value);
65870
+ utils_setInObject(publicInstance.state, path12, value);
65880
65871
  forceUpdate(publicInstance);
65881
65872
  break;
65882
65873
  }
@@ -65921,7 +65912,7 @@ var require_backend = __commonJS({
65921
65912
  }
65922
65913
  function setTraceUpdatesEnabled(enabled) {
65923
65914
  }
65924
- function setTrackedPath(path10) {
65915
+ function setTrackedPath(path12) {
65925
65916
  }
65926
65917
  function getOwnersList(id) {
65927
65918
  return null;
@@ -67208,8 +67199,8 @@ var init_devtools = __esm({
67208
67199
 
67209
67200
  // node_modules/.pnpm/ink@6.8.0_@types+react@19.2.14_react-devtools-core@7.0.1_react@19.2.4/node_modules/ink/build/reconciler.js
67210
67201
  async function loadPackageJson() {
67211
- const fs12 = await import("node:fs");
67212
- const content = fs12.readFileSync(new URL("../package.json", import.meta.url), "utf8");
67202
+ const fs14 = await import("node:fs");
67203
+ const content = fs14.readFileSync(new URL("../package.json", import.meta.url), "utf8");
67213
67204
  return JSON.parse(content);
67214
67205
  }
67215
67206
  var import_react_reconciler, import_constants8, Scheduler, import_react, diff, cleanupYogaNode, currentUpdatePriority, currentRootNode, packageJson, reconciler_default;
@@ -70186,8 +70177,8 @@ var init_ErrorOverview = __esm({
70186
70177
  init_dist6();
70187
70178
  init_Box();
70188
70179
  init_Text();
70189
- cleanupPath = (path10) => {
70190
- return path10?.replace(`file://${cwd()}/`, "");
70180
+ cleanupPath = (path12) => {
70181
+ return path12?.replace(`file://${cwd()}/`, "");
70191
70182
  };
70192
70183
  stackUtils = new import_stack_utils.default({
70193
70184
  cwd: cwd(),
@@ -72737,7 +72728,183 @@ var init_docs = __esm({
72737
72728
  }
72738
72729
  });
72739
72730
 
72731
+ // apps/cli/src/services/agentcore-config.ts
72732
+ import * as fs11 from "node:fs";
72733
+ import * as path7 from "node:path";
72734
+ async function configureAgentCore(projectDir, variant) {
72735
+ const isLanggraph = variant === "agentcore-langgraph";
72736
+ const pattern = isLanggraph ? "langgraph-single-agent" : "strands-single-agent";
72737
+ const suffix = isLanggraph ? "-lg" : "-st";
72738
+ const examplePath = path7.join(projectDir, "config.yaml.example");
72739
+ const configPath = path7.join(projectDir, "config.yaml");
72740
+ if (!fs11.existsSync(examplePath)) {
72741
+ throw new Error(
72742
+ `config.yaml.example not found in the AgentCore template at "${projectDir}". The downloaded template may be incomplete. Please try again.`
72743
+ );
72744
+ }
72745
+ let content = fs11.readFileSync(examplePath, "utf-8");
72746
+ const patternRegex = /^(\s*pattern:\s*)\S+(.*)$/m;
72747
+ const stackRegex = /^(\s*stack_name_base:\s*)\S+(.*)$/m;
72748
+ if (!patternRegex.test(content) || !stackRegex.test(content)) {
72749
+ throw new Error(
72750
+ 'Unexpected config.yaml.example format in the AgentCore template. Expected "pattern:" and "stack_name_base:" keys. Please try again or report this issue at https://github.com/CopilotKit/CopilotKit/issues'
72751
+ );
72752
+ }
72753
+ content = content.replace(patternRegex, `$1${pattern}$2`);
72754
+ content = content.replace(
72755
+ stackRegex,
72756
+ `$1my-copilotkit-agentcore${suffix}$2`
72757
+ );
72758
+ fs11.writeFileSync(configPath, content, "utf-8");
72759
+ const removeAgent = isLanggraph ? "strands-single-agent" : "langgraph-single-agent";
72760
+ const removeScript = isLanggraph ? "deploy-strands.sh" : "deploy-langgraph.sh";
72761
+ const keepScript = isLanggraph ? "deploy-langgraph.sh" : "deploy-strands.sh";
72762
+ fs11.rmSync(path7.join(projectDir, "agents", removeAgent), {
72763
+ recursive: true,
72764
+ force: true
72765
+ });
72766
+ fs11.rmSync(path7.join(projectDir, removeScript), { force: true });
72767
+ fs11.rmSync(path7.join(projectDir, "infra-terraform"), {
72768
+ recursive: true,
72769
+ force: true
72770
+ });
72771
+ const keepScriptPath = path7.join(projectDir, keepScript);
72772
+ if (fs11.existsSync(keepScriptPath)) {
72773
+ fs11.renameSync(keepScriptPath, path7.join(projectDir, "deploy.sh"));
72774
+ }
72775
+ const deployShPath = path7.join(projectDir, "deploy.sh");
72776
+ if (fs11.existsSync(deployShPath)) {
72777
+ let deployContent = fs11.readFileSync(deployShPath, "utf-8");
72778
+ deployContent = deployContent.replace(/\(isolated from deploy-(?:langgraph|strands)\.sh\)\s*/g, "").replace(/# Using Terraform instead\?.*\n/g, "");
72779
+ fs11.writeFileSync(deployShPath, deployContent, "utf-8");
72780
+ }
72781
+ const configYamlPath = path7.join(projectDir, "config.yaml");
72782
+ if (fs11.existsSync(configYamlPath)) {
72783
+ let configContent = fs11.readFileSync(configYamlPath, "utf-8");
72784
+ configContent = configContent.replace(
72785
+ /# overwritten by deploy-langgraph\.sh \/ deploy-strands\.sh/g,
72786
+ "# set by the CLI \u2014 do not change"
72787
+ );
72788
+ fs11.writeFileSync(configYamlPath, configContent, "utf-8");
72789
+ }
72790
+ const agentShortName = isLanggraph ? "langgraph" : "strands";
72791
+ const otherShortName = isLanggraph ? "strands" : "langgraph";
72792
+ for (const relPath of ["docker/docker-compose.yml", "docker/up.sh"]) {
72793
+ const filePath = path7.join(projectDir, relPath);
72794
+ if (fs11.existsSync(filePath)) {
72795
+ let fileContent = fs11.readFileSync(filePath, "utf-8");
72796
+ fileContent = fileContent.replaceAll(
72797
+ `AGENT:-${otherShortName}`,
72798
+ `AGENT:-${agentShortName}`
72799
+ );
72800
+ fileContent = fileContent.replaceAll(
72801
+ `echo "${otherShortName}"`,
72802
+ `echo "${agentShortName}"`
72803
+ );
72804
+ fs11.writeFileSync(filePath, fileContent, "utf-8");
72805
+ }
72806
+ }
72807
+ const resolveEnvPath = path7.join(projectDir, "docker/resolve-env.py");
72808
+ if (fs11.existsSync(resolveEnvPath)) {
72809
+ let resolveContent = fs11.readFileSync(resolveEnvPath, "utf-8");
72810
+ resolveContent = resolveContent.replaceAll(
72811
+ `os.environ.get("AGENT", "${otherShortName}")`,
72812
+ `os.environ.get("AGENT", "${agentShortName}")`
72813
+ );
72814
+ fs11.writeFileSync(resolveEnvPath, resolveContent, "utf-8");
72815
+ }
72816
+ const frameworkLabel = isLanggraph ? "LangGraph" : "Strands";
72817
+ const stackSuffix = isLanggraph ? "lg" : "st";
72818
+ const agentFolder = isLanggraph ? "langgraph-single-agent" : "strands-single-agent";
72819
+ const readme = `# CopilotKit + AWS AgentCore (${frameworkLabel})
72820
+
72821
+ Chat UI with generative charts, shared-state todo canvas, and inline tool rendering \u2014 deployed on AWS Bedrock AgentCore.
72822
+
72823
+ ## Prerequisites
72824
+
72825
+ | Tool | Version |
72826
+ | ------- | ---------------------------- |
72827
+ | AWS CLI | configured (\`aws configure\`) |
72828
+ | Node.js | 18+ |
72829
+ | Python | 3.8+ |
72830
+ | Docker | running |
72831
+
72832
+ ## Deploy
72833
+
72834
+ 1. **Edit \`config.yaml\`** \u2014 set \`stack_name_base\` and \`admin_user_email\`
72835
+
72836
+ 2. **Deploy:**
72837
+
72838
+ \`\`\`bash
72839
+ ./deploy.sh # full deploy (infra + frontend)
72840
+ ./deploy.sh --skip-frontend # infra/agent only
72841
+ ./deploy.sh --skip-backend # frontend only
72842
+ \`\`\`
72843
+
72844
+ 3. **Open** the Amplify URL printed at the end. Sign in with your email.
72845
+
72846
+ ## Local Development
72847
+
72848
+ \`\`\`bash
72849
+ cd docker
72850
+ cp .env.example .env
72851
+ # Fill in AWS creds \u2014 STACK_NAME, MEMORY_ID, and aws-exports.json are auto-resolved
72852
+ ./up.sh --build
72853
+ \`\`\`
72854
+
72855
+ - **Frontend** \u2192 hot reloads on save
72856
+ - **Agent** \u2192 rebuild on changes: \`docker compose up --build agent\`
72857
+ - **Browser** \u2192 \`http://localhost:3000\`
72858
+
72859
+ The full chain runs locally: \`browser:3000 \u2192 bridge:3001 \u2192 agent:8080\`. AWS is only used for Memory and Gateway.
72860
+
72861
+ ## What's inside
72862
+
72863
+ | Piece | What it does |
72864
+ | ------------------------------ | ---------------------------------------------------------- |
72865
+ | \`frontend/\` | Vite + React with CopilotKit chat, charts, todo canvas |
72866
+ | \`agents/${agentFolder}/\` | ${frameworkLabel} agent with tools + shared todo state |
72867
+ | \`infra-cdk/\` | CDK: Cognito, AgentCore, CopilotKit Lambda, Amplify |
72868
+ | \`docker/\` | Local dev via Docker Compose |
72869
+
72870
+ ## Tear down
72871
+
72872
+ \`\`\`bash
72873
+ cd infra-cdk && npx cdk@latest destroy --all --output ../cdk.out-${stackSuffix}
72874
+ \`\`\`
72875
+
72876
+ ## Docs
72877
+
72878
+ - [CopilotKit](https://docs.copilotkit.ai)
72879
+ - [AWS Bedrock AgentCore](https://aws.amazon.com/bedrock/agentcore/)
72880
+ - [AgentCore + CopilotKit Guide](https://docs.copilotkit.ai/agentcore/quickstart)
72881
+ `;
72882
+ fs11.writeFileSync(path7.join(projectDir, "README.md"), readme, "utf-8");
72883
+ }
72884
+ var init_agentcore_config = __esm({
72885
+ "apps/cli/src/services/agentcore-config.ts"() {
72886
+ "use strict";
72887
+ }
72888
+ });
72889
+
72890
+ // apps/cli/src/services/showcase-config.ts
72891
+ import * as fs12 from "node:fs";
72892
+ import * as path8 from "node:path";
72893
+ async function writeShowcaseConfig(projectDir, showcase) {
72894
+ const configPath = path8.join(projectDir, "showcase.json");
72895
+ fs12.writeFileSync(configPath, `${JSON.stringify({ showcase }, null, 2)}
72896
+ `);
72897
+ }
72898
+ var init_showcase_config = __esm({
72899
+ "apps/cli/src/services/showcase-config.ts"() {
72900
+ "use strict";
72901
+ }
72902
+ });
72903
+
72740
72904
  // apps/cli/src/types.ts
72905
+ function resolveFrameworkAlias(value) {
72906
+ return FRAMEWORK_ALIASES[value] ?? value;
72907
+ }
72741
72908
  function isAgentFramework(value) {
72742
72909
  return AGENT_FRAMEWORKS.includes(value);
72743
72910
  }
@@ -72751,6 +72918,7 @@ function standardTemplate(framework, template, successEmoji) {
72751
72918
  "llamaindex",
72752
72919
  "agno",
72753
72920
  "pydantic-ai",
72921
+ "ag2",
72754
72922
  "adk",
72755
72923
  "aws-strands-py",
72756
72924
  "microsoft-agent-framework-py"
@@ -72783,10 +72951,12 @@ function resolveInitTemplate(options) {
72783
72951
  }
72784
72952
  return FRAMEWORK_TEMPLATES[options.framework];
72785
72953
  }
72786
- var AGENT_FRAMEWORKS, FRAMEWORK_EMOJI, FRAMEWORK_CHOICES, TEMPLATE_REPOS, UV_PREREQUISITE, DOCKER_PREREQUISITE, DOTNET_PREREQUISITE, PYTHON3_PREREQUISITE, OPENAI_ENV_KEY, GOOGLE_ENV_KEY, COPILOTKIT_LICENSE_ENV_KEY, FRAMEWORK_TEMPLATES, THREADS_TEMPLATE;
72954
+ var AGENT_FRAMEWORKS, FRAMEWORK_ALIASES, FRAMEWORK_EMOJI, FRAMEWORK_CHOICES, AG2_TEMPLATE_SOURCE, COPILOTKIT_LANGGRAPH_PYTHON_URL, COPILOTKIT_AGENTCORE_URL, TEMPLATE_REPOS, UV_PREREQUISITE, DOCKER_PREREQUISITE, DOTNET_PREREQUISITE, PYTHON3_PREREQUISITE, OPENAI_ENV_KEY, GOOGLE_ENV_KEY, COPILOTKIT_LICENSE_ENV_KEY, FRAMEWORK_TEMPLATES, THREADS_TEMPLATE;
72787
72955
  var init_types = __esm({
72788
72956
  "apps/cli/src/types.ts"() {
72789
72957
  "use strict";
72958
+ init_agentcore_config();
72959
+ init_showcase_config();
72790
72960
  AGENT_FRAMEWORKS = [
72791
72961
  "langgraph-py",
72792
72962
  "langgraph-js",
@@ -72795,12 +72965,21 @@ var init_types = __esm({
72795
72965
  "pydantic-ai",
72796
72966
  "llamaindex",
72797
72967
  "agno",
72968
+ "ag2",
72798
72969
  "adk",
72799
72970
  "aws-strands-py",
72800
72971
  "a2a",
72801
72972
  "microsoft-agent-framework-dotnet",
72802
- "microsoft-agent-framework-py"
72973
+ "microsoft-agent-framework-py",
72974
+ "mcp-apps",
72975
+ "agentcore-langgraph",
72976
+ "agentcore-strands",
72977
+ "a2ui",
72978
+ "opengenui"
72803
72979
  ];
72980
+ FRAMEWORK_ALIASES = {
72981
+ "crew-ai": "flows"
72982
+ };
72804
72983
  FRAMEWORK_EMOJI = {
72805
72984
  "langgraph-py": "\u{1F99C}",
72806
72985
  "langgraph-js": "\u{1F99C}",
@@ -72809,11 +72988,17 @@ var init_types = __esm({
72809
72988
  "pydantic-ai": "\u{1F53C}",
72810
72989
  llamaindex: "\u{1F999}",
72811
72990
  agno: "\u{1F170}\uFE0F",
72991
+ ag2: "\u{1F916}",
72812
72992
  adk: "\u{1F916}",
72813
72993
  a2a: "\u{1F916}",
72814
72994
  "aws-strands-py": "\u{1F9EC}",
72815
72995
  "microsoft-agent-framework-dotnet": "\u{1F7E6}",
72816
- "microsoft-agent-framework-py": "\u{1F7E6}"
72996
+ "microsoft-agent-framework-py": "\u{1F7E6}",
72997
+ "mcp-apps": "\u264D",
72998
+ "agentcore-langgraph": "\u2601\uFE0F",
72999
+ "agentcore-strands": "\u2601\uFE0F",
73000
+ a2ui: "\u{1F3A8}",
73001
+ opengenui: "\u{1F5BC}\uFE0F"
72817
73002
  };
72818
73003
  FRAMEWORK_CHOICES = [
72819
73004
  {
@@ -72842,26 +73027,53 @@ var init_types = __esm({
72842
73027
  label: `${FRAMEWORK_EMOJI["microsoft-agent-framework-py"]} Microsoft Agent Framework (Python)`,
72843
73028
  value: "microsoft-agent-framework-py"
72844
73029
  },
72845
- // { label: "MCP Apps", value: "mcp-apps" },
73030
+ { label: `${FRAMEWORK_EMOJI["mcp-apps"]} MCP Apps`, value: "mcp-apps" },
72846
73031
  { label: `${FRAMEWORK_EMOJI.flows} CrewAI Flows`, value: "flows" },
72847
73032
  { label: `${FRAMEWORK_EMOJI.llamaindex} LlamaIndex`, value: "llamaindex" },
72848
- { label: `${FRAMEWORK_EMOJI.agno} Agno`, value: "agno" }
72849
- // { label: "AG2", value: "ag2" },
72850
- // { label: "A2A", value: "a2a" },
73033
+ { label: `${FRAMEWORK_EMOJI.agno} Agno`, value: "agno" },
73034
+ { label: `${FRAMEWORK_EMOJI.ag2} AG2`, value: "ag2" },
73035
+ { label: `${FRAMEWORK_EMOJI.a2a} A2A`, value: "a2a" },
73036
+ {
73037
+ label: `${FRAMEWORK_EMOJI["agentcore-langgraph"]} AgentCore + LangGraph`,
73038
+ value: "agentcore-langgraph"
73039
+ },
73040
+ {
73041
+ label: `${FRAMEWORK_EMOJI["agentcore-strands"]} AgentCore + Strands`,
73042
+ value: "agentcore-strands"
73043
+ },
73044
+ { label: `${FRAMEWORK_EMOJI.a2ui} A2UI`, value: "a2ui" },
73045
+ {
73046
+ label: `${FRAMEWORK_EMOJI.opengenui} Open Generative UI`,
73047
+ value: "opengenui"
73048
+ }
72851
73049
  ];
73050
+ AG2_TEMPLATE_SOURCE = {
73051
+ owner: "ag2ai",
73052
+ repo: "ag2-copilotkit-starter",
73053
+ branch: "main",
73054
+ path: ""
73055
+ };
73056
+ COPILOTKIT_LANGGRAPH_PYTHON_URL = "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/langgraph-python";
73057
+ COPILOTKIT_AGENTCORE_URL = "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/agentcore";
72852
73058
  TEMPLATE_REPOS = {
72853
- "langgraph-py": "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/langgraph-python",
73059
+ "langgraph-py": COPILOTKIT_LANGGRAPH_PYTHON_URL,
72854
73060
  "langgraph-js": "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/langgraph-js",
72855
73061
  mastra: "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/mastra",
72856
73062
  flows: "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/crewai-flows",
72857
73063
  llamaindex: "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/llamaindex",
72858
73064
  agno: "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/agno",
72859
73065
  "pydantic-ai": "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/pydantic-ai",
73066
+ ag2: AG2_TEMPLATE_SOURCE,
72860
73067
  adk: "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/adk",
72861
73068
  "aws-strands-py": "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/strands-python",
72862
73069
  a2a: "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/a2a-middleware",
72863
73070
  "microsoft-agent-framework-dotnet": "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/ms-agent-framework-dotnet",
72864
- "microsoft-agent-framework-py": "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/ms-agent-framework-python"
73071
+ "microsoft-agent-framework-py": "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/ms-agent-framework-python",
73072
+ "mcp-apps": "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/mcp-apps",
73073
+ "agentcore-langgraph": COPILOTKIT_AGENTCORE_URL,
73074
+ "agentcore-strands": COPILOTKIT_AGENTCORE_URL,
73075
+ a2ui: COPILOTKIT_LANGGRAPH_PYTHON_URL,
73076
+ opengenui: COPILOTKIT_LANGGRAPH_PYTHON_URL
72865
73077
  };
72866
73078
  UV_PREREQUISITE = {
72867
73079
  command: "uv",
@@ -72978,7 +73190,49 @@ var init_types = __esm({
72978
73190
  "microsoft-agent-framework-py",
72979
73191
  TEMPLATE_REPOS["microsoft-agent-framework-py"],
72980
73192
  `\u{1FA81}\u{1F91D}${FRAMEWORK_EMOJI["microsoft-agent-framework-py"]}`
72981
- )
73193
+ ),
73194
+ ag2: standardTemplate(
73195
+ "ag2",
73196
+ TEMPLATE_REPOS.ag2,
73197
+ `\u{1FA81}\u{1F91D}${FRAMEWORK_EMOJI.ag2}`
73198
+ ),
73199
+ "mcp-apps": standardTemplate(
73200
+ "mcp-apps",
73201
+ TEMPLATE_REPOS["mcp-apps"],
73202
+ `\u{1FA81}\u{1F91D}${FRAMEWORK_EMOJI["mcp-apps"]}`
73203
+ ),
73204
+ "agentcore-langgraph": {
73205
+ ...standardTemplate(
73206
+ "agentcore-langgraph",
73207
+ TEMPLATE_REPOS["agentcore-langgraph"],
73208
+ `\u{1FA81}\u{1F91D}${FRAMEWORK_EMOJI["agentcore-langgraph"]}`
73209
+ ),
73210
+ postScaffold: (projectDir) => configureAgentCore(projectDir, "agentcore-langgraph")
73211
+ },
73212
+ "agentcore-strands": {
73213
+ ...standardTemplate(
73214
+ "agentcore-strands",
73215
+ TEMPLATE_REPOS["agentcore-strands"],
73216
+ `\u{1FA81}\u{1F91D}${FRAMEWORK_EMOJI["agentcore-strands"]}`
73217
+ ),
73218
+ postScaffold: (projectDir) => configureAgentCore(projectDir, "agentcore-strands")
73219
+ },
73220
+ a2ui: {
73221
+ ...standardTemplate(
73222
+ "a2ui",
73223
+ TEMPLATE_REPOS.a2ui,
73224
+ `\u{1FA81}\u{1F91D}${FRAMEWORK_EMOJI.a2ui}`
73225
+ ),
73226
+ postScaffold: (projectDir) => writeShowcaseConfig(projectDir, "a2ui")
73227
+ },
73228
+ opengenui: {
73229
+ ...standardTemplate(
73230
+ "opengenui",
73231
+ TEMPLATE_REPOS.opengenui,
73232
+ `\u{1FA81}\u{1F91D}${FRAMEWORK_EMOJI.opengenui}`
73233
+ ),
73234
+ postScaffold: (projectDir) => writeShowcaseConfig(projectDir, "opengenui")
73235
+ }
72982
73236
  };
72983
73237
  THREADS_TEMPLATE = {
72984
73238
  id: "threads",
@@ -72998,31 +73252,15 @@ var init_types = __esm({
72998
73252
  }
72999
73253
  });
73000
73254
 
73001
- // apps/cli/src/services/feature-flags.ts
73002
- function hasThreadsAccess() {
73003
- return configStore.get("threads-access") === true;
73004
- }
73005
- function grantThreadsAccess() {
73006
- configStore.set("threads-access", true);
73007
- }
73008
- var THREADS_PASSWORD;
73009
- var init_feature_flags = __esm({
73010
- "apps/cli/src/services/feature-flags.ts"() {
73011
- "use strict";
73012
- init_config_service();
73013
- THREADS_PASSWORD = "earlyaccess";
73014
- }
73015
- });
73016
-
73017
73255
  // apps/cli/src/services/project-scaffold.ts
73018
- import * as fs11 from "node:fs";
73019
- import * as path7 from "node:path";
73256
+ import * as fs13 from "node:fs";
73257
+ import * as path9 from "node:path";
73020
73258
  import * as os6 from "node:os";
73021
73259
  import { execSync } from "node:child_process";
73022
73260
  async function scaffoldProject(options) {
73023
73261
  const { projectDir, template } = options;
73024
- if (fs11.existsSync(projectDir)) {
73025
- const entries = fs11.readdirSync(projectDir);
73262
+ if (fs13.existsSync(projectDir)) {
73263
+ const entries = fs13.readdirSync(projectDir);
73026
73264
  if (entries.length > 0) {
73027
73265
  throw new Error(`${projectDir} already exists and is not empty`);
73028
73266
  }
@@ -73037,52 +73275,58 @@ async function scaffoldProject(options) {
73037
73275
  }
73038
73276
  async function cloneTemplate(source, destinationPath) {
73039
73277
  const { owner, repo, branch, subdirectoryPath } = source;
73040
- const tempDir = fs11.mkdtempSync(path7.join(os6.tmpdir(), "copilotkit-clone-"));
73278
+ const tempDir = fs13.mkdtempSync(path9.join(os6.tmpdir(), "copilotkit-clone-"));
73279
+ const isWholeRepo = subdirectoryPath === "";
73041
73280
  try {
73042
73281
  execSync("git init", { cwd: tempDir, stdio: "pipe" });
73043
73282
  execSync(`git remote add origin https://github.com/${owner}/${repo}.git`, {
73044
73283
  cwd: tempDir,
73045
73284
  stdio: "pipe"
73046
73285
  });
73047
- execSync("git config core.sparseCheckout true", {
73048
- cwd: tempDir,
73049
- stdio: "pipe"
73050
- });
73051
- fs11.writeFileSync(
73052
- path7.join(tempDir, ".git/info/sparse-checkout"),
73053
- subdirectoryPath
73054
- );
73286
+ if (!isWholeRepo) {
73287
+ execSync("git config core.sparseCheckout true", {
73288
+ cwd: tempDir,
73289
+ stdio: "pipe"
73290
+ });
73291
+ fs13.writeFileSync(
73292
+ path9.join(tempDir, ".git/info/sparse-checkout"),
73293
+ subdirectoryPath
73294
+ );
73295
+ }
73055
73296
  execSync(`git pull origin ${branch} --depth=1`, {
73056
73297
  cwd: tempDir,
73057
73298
  stdio: "pipe"
73058
73299
  });
73059
- const sourcePath = path7.join(tempDir, subdirectoryPath);
73060
- if (!fs11.existsSync(sourcePath)) {
73300
+ const sourcePath = isWholeRepo ? tempDir : path9.join(tempDir, subdirectoryPath);
73301
+ if (!isWholeRepo && !fs13.existsSync(sourcePath)) {
73061
73302
  throw new Error(
73062
73303
  `Template directory '${subdirectoryPath}' not found in the repository.`
73063
73304
  );
73064
73305
  }
73065
- fs11.mkdirSync(destinationPath, { recursive: true });
73066
- await copyDirectory(sourcePath, destinationPath);
73306
+ fs13.mkdirSync(destinationPath, { recursive: true });
73307
+ await copyDirectory(sourcePath, destinationPath, isWholeRepo);
73067
73308
  } finally {
73068
73309
  try {
73069
- fs11.rmSync(tempDir, { recursive: true, force: true });
73310
+ fs13.rmSync(tempDir, { recursive: true, force: true });
73070
73311
  } catch {
73071
73312
  }
73072
73313
  }
73073
73314
  }
73074
- async function copyDirectory(source, destination) {
73075
- if (!fs11.existsSync(destination)) {
73076
- fs11.mkdirSync(destination, { recursive: true });
73315
+ async function copyDirectory(source, destination, excludeGit = false) {
73316
+ if (!fs13.existsSync(destination)) {
73317
+ fs13.mkdirSync(destination, { recursive: true });
73077
73318
  }
73078
- const entries = fs11.readdirSync(source, { withFileTypes: true });
73319
+ const entries = fs13.readdirSync(source, { withFileTypes: true });
73079
73320
  for (const entry of entries) {
73080
- const srcPath = path7.join(source, entry.name);
73081
- const destPath = path7.join(destination, entry.name);
73321
+ if (excludeGit && entry.name === ".git") {
73322
+ continue;
73323
+ }
73324
+ const srcPath = path9.join(source, entry.name);
73325
+ const destPath = path9.join(destination, entry.name);
73082
73326
  if (entry.isDirectory()) {
73083
- await copyDirectory(srcPath, destPath);
73327
+ await copyDirectory(srcPath, destPath, excludeGit);
73084
73328
  } else {
73085
- fs11.copyFileSync(srcPath, destPath);
73329
+ fs13.copyFileSync(srcPath, destPath);
73086
73330
  }
73087
73331
  }
73088
73332
  }
@@ -73106,22 +73350,22 @@ function parseGitHubUrl(githubUrl) {
73106
73350
  return { owner, repo, branch, subdirectoryPath };
73107
73351
  }
73108
73352
  function copyEnvExample(projectDir) {
73109
- const envPath = path7.join(projectDir, ".env");
73110
- const envExamplePath = path7.join(projectDir, ".env.example");
73111
- if (fs11.existsSync(envExamplePath) && !fs11.existsSync(envPath)) {
73112
- fs11.copyFileSync(envExamplePath, envPath);
73353
+ const envPath = path9.join(projectDir, ".env");
73354
+ const envExamplePath = path9.join(projectDir, ".env.example");
73355
+ if (fs13.existsSync(envExamplePath) && !fs13.existsSync(envPath)) {
73356
+ fs13.copyFileSync(envExamplePath, envPath);
73113
73357
  return true;
73114
73358
  }
73115
73359
  return false;
73116
73360
  }
73117
73361
  function writeEnvLicenseKey(projectDir, licenseKey) {
73118
- const envPath = path7.join(projectDir, ".env");
73119
- const envExamplePath = path7.join(projectDir, ".env.example");
73120
- if (fs11.existsSync(envExamplePath) && !fs11.existsSync(envPath)) {
73121
- fs11.copyFileSync(envExamplePath, envPath);
73362
+ const envPath = path9.join(projectDir, ".env");
73363
+ const envExamplePath = path9.join(projectDir, ".env.example");
73364
+ if (fs13.existsSync(envExamplePath) && !fs13.existsSync(envPath)) {
73365
+ fs13.copyFileSync(envExamplePath, envPath);
73122
73366
  }
73123
- if (fs11.existsSync(envPath)) {
73124
- let content = fs11.readFileSync(envPath, "utf8");
73367
+ if (fs13.existsSync(envPath)) {
73368
+ let content = fs13.readFileSync(envPath, "utf8");
73125
73369
  const licenseLine = `COPILOTKIT_LICENSE_TOKEN=${licenseKey}`;
73126
73370
  if (/^COPILOTKIT_LICENSE_TOKEN=.*$/m.test(content)) {
73127
73371
  content = content.replace(/^COPILOTKIT_LICENSE_TOKEN=.*$/m, licenseLine);
@@ -73130,9 +73374,9 @@ function writeEnvLicenseKey(projectDir, licenseKey) {
73130
73374
  content = `${content}${separator}${licenseLine}
73131
73375
  `;
73132
73376
  }
73133
- fs11.writeFileSync(envPath, content);
73377
+ fs13.writeFileSync(envPath, content);
73134
73378
  } else {
73135
- fs11.writeFileSync(envPath, `COPILOTKIT_LICENSE_TOKEN=${licenseKey}
73379
+ fs13.writeFileSync(envPath, `COPILOTKIT_LICENSE_TOKEN=${licenseKey}
73136
73380
  `);
73137
73381
  }
73138
73382
  }
@@ -73766,20 +74010,17 @@ function InitFlow({
73766
74010
  initialName,
73767
74011
  initialIntelligence,
73768
74012
  initialFramework,
73769
- onComplete,
73770
- onRequestThreadsAccess
74013
+ onComplete
73771
74014
  }) {
73772
74015
  const [name, setName] = (0, import_react35.useState)(initialName ?? "");
73773
74016
  const [nameError, setNameError] = (0, import_react35.useState)(null);
73774
- const [password, setPassword] = (0, import_react35.useState)("");
73775
74017
  function firstStep() {
73776
74018
  if (initialName === null)
73777
74019
  return "name";
73778
74020
  if (initialFramework !== null)
73779
74021
  return "done";
73780
- if (initialIntelligence === true) {
73781
- return hasThreadsAccess() ? "done" : "password-menu";
73782
- }
74022
+ if (initialIntelligence === true)
74023
+ return "done";
73783
74024
  if (initialIntelligence === false)
73784
74025
  return "framework";
73785
74026
  return "intelligence";
@@ -73832,15 +74073,11 @@ function InitFlow({
73832
74073
  return;
73833
74074
  }
73834
74075
  if (initialIntelligence === true) {
73835
- if (hasThreadsAccess()) {
73836
- onComplete({
73837
- name: resolvedName,
73838
- intelligence: true,
73839
- framework: null
73840
- });
73841
- return;
73842
- }
73843
- setStep("password-menu");
74076
+ onComplete({
74077
+ name: resolvedName,
74078
+ intelligence: true,
74079
+ framework: null
74080
+ });
73844
74081
  return;
73845
74082
  }
73846
74083
  if (initialIntelligence === false) {
@@ -73851,46 +74088,11 @@ function InitFlow({
73851
74088
  }
73852
74089
  function handleIntelligenceSelect(item) {
73853
74090
  if (item.value === "yes") {
73854
- if (hasThreadsAccess()) {
73855
- completeWithIntelligence();
73856
- return;
73857
- }
73858
- setStep("password-menu");
73859
- } else {
73860
- setStep("framework");
73861
- }
73862
- }
73863
- function handlePasswordMenuSelect(item) {
73864
- if (item.value === "enter-password") {
73865
- setStep("password-input");
73866
- } else if (item.value === "request-access") {
73867
- setStep("mailing-list");
73868
- } else if (item.value === "skip") {
73869
- setStep("framework");
73870
- }
73871
- }
73872
- function handlePasswordSubmit(value) {
73873
- if (value === THREADS_PASSWORD) {
73874
- grantThreadsAccess();
73875
- setPassword("");
73876
74091
  completeWithIntelligence();
73877
74092
  } else {
73878
- setPassword("");
73879
- setStep("password-wrong");
73880
- }
73881
- }
73882
- function handlePasswordRetrySelect(item) {
73883
- if (item.value === "retry") {
73884
- setStep("password-input");
73885
- } else if (item.value === "request-access") {
73886
- setStep("mailing-list");
73887
- } else if (item.value === "skip") {
73888
74093
  setStep("framework");
73889
74094
  }
73890
74095
  }
73891
- function handleMailingListDone() {
73892
- setStep("password-menu");
73893
- }
73894
74096
  function handleFrameworkSelect(item) {
73895
74097
  const chosen = item.value;
73896
74098
  onComplete({
@@ -73925,91 +74127,13 @@ function InitFlow({
73925
74127
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { color: "gray", children: "Intelligence adds durable threads, state persistence, and insights." }),
73926
74128
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectInput_default, { items: INTELLIGENCE_CHOICES, onSelect: handleIntelligenceSelect })
73927
74129
  ] }),
73928
- step === "password-menu" && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Box_default, { flexDirection: "column", children: [
73929
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { bold: true, children: "Intelligence requires an access password." }),
73930
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectInput_default, { items: PASSWORD_MENU_CHOICES, onSelect: handlePasswordMenuSelect })
73931
- ] }),
73932
- step === "password-input" && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Box_default, { flexDirection: "column", children: [
73933
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { bold: true, children: "Enter your Intelligence access password" }),
73934
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Box_default, { children: [
73935
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Text, { children: [
73936
- ">",
73937
- " "
73938
- ] }),
73939
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
73940
- build_default,
73941
- {
73942
- value: password,
73943
- onChange: setPassword,
73944
- onSubmit: handlePasswordSubmit,
73945
- placeholder: "password",
73946
- mask: "*"
73947
- }
73948
- )
73949
- ] })
73950
- ] }),
73951
- step === "password-wrong" && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Box_default, { flexDirection: "column", children: [
73952
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { color: "red", children: "Incorrect password." }),
73953
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
73954
- SelectInput_default,
73955
- {
73956
- items: [
73957
- { label: "Try again", value: "retry" },
73958
- { label: "I don't have a password \u2014 how do I get one?", value: "request-access" },
73959
- { label: "Continue without Intelligence", value: "skip" }
73960
- ],
73961
- onSelect: handlePasswordRetrySelect
73962
- }
73963
- )
73964
- ] }),
73965
- step === "mailing-list" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
73966
- MailingListScreen,
73967
- {
73968
- onRequestAccess: onRequestThreadsAccess,
73969
- onDone: handleMailingListDone
73970
- }
73971
- ),
73972
74130
  step === "framework" && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Box_default, { flexDirection: "column", children: [
73973
74131
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { bold: true, children: "Select agent framework" }),
73974
74132
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectInput_default, { items: FRAMEWORK_CHOICES, onSelect: handleFrameworkSelect })
73975
74133
  ] })
73976
74134
  ] });
73977
74135
  }
73978
- function MailingListScreen({ onRequestAccess, onDone }) {
73979
- const [status, setStatus] = (0, import_react35.useState)("sending");
73980
- (0, import_react35.useEffect)(() => {
73981
- let cancelled = false;
73982
- async function run() {
73983
- try {
73984
- await onRequestAccess();
73985
- } catch {
73986
- }
73987
- if (!cancelled) {
73988
- setStatus("sent");
73989
- }
73990
- }
73991
- run();
73992
- return () => {
73993
- cancelled = true;
73994
- };
73995
- }, [onRequestAccess]);
73996
- if (status === "sending") {
73997
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { color: "gray", children: "Registering your interest\u2026" }) });
73998
- }
73999
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Box_default, { flexDirection: "column", children: [
74000
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { color: "green", children: "Thanks! We've registered your interest." }),
74001
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { color: "gray", children: "You'll receive access details via email." }),
74002
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Box_default, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { children: "Press enter to go back and enter your password." }) }),
74003
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
74004
- SelectInput_default,
74005
- {
74006
- items: [{ label: "Back to password", value: "back" }],
74007
- onSelect: onDone
74008
- }
74009
- )
74010
- ] });
74011
- }
74012
- var import_react35, import_jsx_runtime5, PROJECT_NAME_RE, INTELLIGENCE_CHOICES, PASSWORD_MENU_CHOICES;
74136
+ var import_react35, import_jsx_runtime5, PROJECT_NAME_RE, INTELLIGENCE_CHOICES;
74013
74137
  var init_init_flow = __esm({
74014
74138
  async "apps/cli/src/ui/init-flow.tsx"() {
74015
74139
  "use strict";
@@ -74018,18 +74142,12 @@ var init_init_flow = __esm({
74018
74142
  await init_build3();
74019
74143
  await init_build4();
74020
74144
  init_types();
74021
- init_feature_flags();
74022
74145
  import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1);
74023
74146
  PROJECT_NAME_RE = /^[a-z0-9-]{1,30}$/;
74024
74147
  INTELLIGENCE_CHOICES = [
74025
74148
  { label: "Yes \u2014 enable Intelligence (threads, persistence, insights)", value: "yes" },
74026
74149
  { label: "No \u2014 standard setup", value: "no" }
74027
74150
  ];
74028
- PASSWORD_MENU_CHOICES = [
74029
- { label: "Enter password", value: "enter-password" },
74030
- { label: "I don't have a password \u2014 how do I get one?", value: "request-access" },
74031
- { label: "Continue without Intelligence", value: "skip" }
74032
- ];
74033
74151
  }
74034
74152
  });
74035
74153
 
@@ -74042,7 +74160,7 @@ __export(init_exports, {
74042
74160
  scaffoldInitProject: () => scaffoldInitProject
74043
74161
  });
74044
74162
  import { accessSync, constants as constants2 } from "node:fs";
74045
- import * as path8 from "node:path";
74163
+ import * as path10 from "node:path";
74046
74164
  import { execSync as execSync2 } from "node:child_process";
74047
74165
  function writeLicenseKey(projectDir, licenseKey) {
74048
74166
  writeEnvLicenseKey(projectDir, licenseKey);
@@ -74056,12 +74174,12 @@ async function initGit(projectDir) {
74056
74174
  function commandExists(command, environment = process.env, platform3 = process.platform) {
74057
74175
  const pathValue = environment.PATH ?? "";
74058
74176
  const pathExtensions = platform3 === "win32" ? (environment.PATHEXT ?? ".COM;.EXE;.BAT;.CMD").split(";").filter(Boolean) : [""];
74059
- for (const searchPath of pathValue.split(path8.delimiter)) {
74177
+ for (const searchPath of pathValue.split(path10.delimiter)) {
74060
74178
  if (!searchPath) {
74061
74179
  continue;
74062
74180
  }
74063
74181
  for (const extension of pathExtensions) {
74064
- const candidatePath = path8.join(searchPath, `${command}${extension}`);
74182
+ const candidatePath = path10.join(searchPath, `${command}${extension}`);
74065
74183
  try {
74066
74184
  accessSync(candidatePath, constants2.X_OK);
74067
74185
  return true;
@@ -74189,6 +74307,9 @@ async function scaffoldInitProject(options, dependencies = defaultInitScaffoldDe
74189
74307
  projectDir,
74190
74308
  template: templateDefinition.template
74191
74309
  });
74310
+ if (templateDefinition.postScaffold) {
74311
+ await templateDefinition.postScaffold(projectDir);
74312
+ }
74192
74313
  onPhaseChange?.("git");
74193
74314
  await dependencies.initGit(projectDir);
74194
74315
  const envCreatedFromExample = dependencies.copyEnvExample(projectDir);
@@ -74323,7 +74444,7 @@ function resolvePrefilledOptions(name, intelligence, framework) {
74323
74444
  framework
74324
74445
  };
74325
74446
  }
74326
- if (intelligence === true && hasThreadsAccess()) {
74447
+ if (intelligence === true) {
74327
74448
  return { name, intelligence: true, framework: null };
74328
74449
  }
74329
74450
  return null;
@@ -74339,13 +74460,6 @@ function InitApp({
74339
74460
  initialFramework
74340
74461
  );
74341
74462
  const [options, setOptions] = (0, import_react36.useState)(prefilled);
74342
- const handleRequestThreadsAccess = (0, import_react36.useCallback)(async () => {
74343
- const cliToken = authStore.getToken();
74344
- if (cliToken) {
74345
- const apiClient = createApiClient(getOpsApiUrl(), cliToken);
74346
- await apiClient.requestThreadsAccess();
74347
- }
74348
- }, []);
74349
74463
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Box_default, { flexDirection: "column", children: [
74350
74464
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Banner, {}),
74351
74465
  options !== null ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ScaffoldProgress, { options }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
@@ -74358,8 +74472,7 @@ function InitApp({
74358
74472
  if (resolved !== null) {
74359
74473
  setOptions(resolved);
74360
74474
  }
74361
- },
74362
- onRequestThreadsAccess: handleRequestThreadsAccess
74475
+ }
74363
74476
  }
74364
74477
  )
74365
74478
  ] });
@@ -74367,9 +74480,10 @@ function InitApp({
74367
74480
  async function runInit(flags) {
74368
74481
  const initialName = flags.name?.trim() ?? null;
74369
74482
  const initialIntelligence = flags.intelligence ?? null;
74370
- const frameworkFlag = flags.framework?.trim() ?? null;
74483
+ const frameworkFlagRaw = flags.framework?.trim() ?? null;
74484
+ const frameworkFlag = frameworkFlagRaw === null ? null : resolveFrameworkAlias(frameworkFlagRaw);
74371
74485
  if (frameworkFlag !== null && !isAgentFramework(frameworkFlag)) {
74372
- throw new Error(formatInvalidFrameworkError(frameworkFlag));
74486
+ throw new Error(formatInvalidFrameworkError(frameworkFlagRaw ?? ""));
74373
74487
  }
74374
74488
  const initialFramework = frameworkFlag;
74375
74489
  const { waitUntilExit } = render_default(
@@ -74392,7 +74506,6 @@ var init_init = __esm({
74392
74506
  await init_build2();
74393
74507
  await init_build2();
74394
74508
  init_types();
74395
- init_feature_flags();
74396
74509
  init_auth_service();
74397
74510
  init_api_client();
74398
74511
  init_project_scaffold();
@@ -74414,7 +74527,7 @@ var init_init = __esm({
74414
74527
  copyEnvExample,
74415
74528
  writeLicenseKey,
74416
74529
  commandExists,
74417
- resolveProjectDir: (projectName) => path8.resolve(process.cwd(), projectName)
74530
+ resolveProjectDir: (projectName) => path10.resolve(process.cwd(), projectName)
74418
74531
  };
74419
74532
  }
74420
74533
  });
@@ -74895,10 +75008,10 @@ function mergeDefs(...defs) {
74895
75008
  function cloneDef(schema) {
74896
75009
  return mergeDefs(schema._zod.def);
74897
75010
  }
74898
- function getElementAtPath(obj, path10) {
74899
- if (!path10)
75011
+ function getElementAtPath(obj, path12) {
75012
+ if (!path12)
74900
75013
  return obj;
74901
- return path10.reduce((acc, key) => acc?.[key], obj);
75014
+ return path12.reduce((acc, key) => acc?.[key], obj);
74902
75015
  }
74903
75016
  function promiseAllObject(promisesObj) {
74904
75017
  const keys = Object.keys(promisesObj);
@@ -75210,11 +75323,11 @@ function aborted(x, startIndex = 0) {
75210
75323
  }
75211
75324
  return false;
75212
75325
  }
75213
- function prefixIssues(path10, issues) {
75326
+ function prefixIssues(path12, issues) {
75214
75327
  return issues.map((iss) => {
75215
75328
  var _a2;
75216
75329
  (_a2 = iss).path ?? (_a2.path = []);
75217
- iss.path.unshift(path10);
75330
+ iss.path.unshift(path12);
75218
75331
  return iss;
75219
75332
  });
75220
75333
  }
@@ -75457,7 +75570,7 @@ function formatError(error48, mapper = (issue2) => issue2.message) {
75457
75570
  }
75458
75571
  function treeifyError(error48, mapper = (issue2) => issue2.message) {
75459
75572
  const result = { errors: [] };
75460
- const processError = (error49, path10 = []) => {
75573
+ const processError = (error49, path12 = []) => {
75461
75574
  var _a2, _b;
75462
75575
  for (const issue2 of error49.issues) {
75463
75576
  if (issue2.code === "invalid_union" && issue2.errors.length) {
@@ -75467,7 +75580,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
75467
75580
  } else if (issue2.code === "invalid_element") {
75468
75581
  processError({ issues: issue2.issues }, issue2.path);
75469
75582
  } else {
75470
- const fullpath = [...path10, ...issue2.path];
75583
+ const fullpath = [...path12, ...issue2.path];
75471
75584
  if (fullpath.length === 0) {
75472
75585
  result.errors.push(mapper(issue2));
75473
75586
  continue;
@@ -75499,8 +75612,8 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
75499
75612
  }
75500
75613
  function toDotPath(_path) {
75501
75614
  const segs = [];
75502
- const path10 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
75503
- for (const seg of path10) {
75615
+ const path12 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
75616
+ for (const seg of path12) {
75504
75617
  if (typeof seg === "number")
75505
75618
  segs.push(`[${seg}]`);
75506
75619
  else if (typeof seg === "symbol")
@@ -88263,13 +88376,13 @@ function resolveRef(ref, ctx) {
88263
88376
  if (!ref.startsWith("#")) {
88264
88377
  throw new Error("External $ref is not supported, only local refs (#/...) are allowed");
88265
88378
  }
88266
- const path10 = ref.slice(1).split("/").filter(Boolean);
88267
- if (path10.length === 0) {
88379
+ const path12 = ref.slice(1).split("/").filter(Boolean);
88380
+ if (path12.length === 0) {
88268
88381
  return ctx.rootSchema;
88269
88382
  }
88270
88383
  const defsKey = ctx.version === "draft-2020-12" ? "$defs" : "definitions";
88271
- if (path10[0] === defsKey) {
88272
- const key = path10[1];
88384
+ if (path12[0] === defsKey) {
88385
+ const key = path12[1];
88273
88386
  if (!key || !ctx.defs[key]) {
88274
88387
  throw new Error(`Reference not found: ${ref}`);
88275
88388
  }
@@ -89215,7 +89328,7 @@ var init_kite = __esm({
89215
89328
  // apps/cli/src/index.ts
89216
89329
  import { parseArgs } from "node:util";
89217
89330
  import { realpathSync } from "node:fs";
89218
- import path9 from "node:path";
89331
+ import path11 from "node:path";
89219
89332
  import { fileURLToPath as fileURLToPath2 } from "node:url";
89220
89333
  var HELP_FLAGS = /* @__PURE__ */ new Set(["--help", "-h"]);
89221
89334
  var HELP_TEXT_BY_TOPIC = {
@@ -89636,7 +89749,7 @@ ${HELP_TEXT_BY_TOPIC.root}`);
89636
89749
  process.exit(1);
89637
89750
  }
89638
89751
  function resolveRealPath(candidatePath) {
89639
- const absolutePath = path9.resolve(candidatePath);
89752
+ const absolutePath = path11.resolve(candidatePath);
89640
89753
  try {
89641
89754
  return realpathSync.native(absolutePath);
89642
89755
  } catch {