copilotkit 2.0.0 → 2.0.1

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.1",
67
+ buildNumber: "25351112663",
68
+ commitSha: "5459b24cbefa934013f7caac0117a1f4f0bdeaa1"
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 });
@@ -16328,15 +16328,15 @@ var init_wsl_utils = __esm({
16328
16328
  const { stdout } = await executePowerShell(command, { powerShellPath: psPath });
16329
16329
  return stdout.trim();
16330
16330
  };
16331
- convertWslPathToWindows = async (path10) => {
16332
- if (/^[a-z]+:\/\//i.test(path10)) {
16333
- return path10;
16331
+ convertWslPathToWindows = async (path12) => {
16332
+ if (/^[a-z]+:\/\//i.test(path12)) {
16333
+ return path12;
16334
16334
  }
16335
16335
  try {
16336
- const { stdout } = await execFile2("wslpath", ["-aw", path10], { encoding: "utf8" });
16336
+ const { stdout } = await execFile2("wslpath", ["-aw", path12], { encoding: "utf8" });
16337
16337
  return stdout.trim();
16338
16338
  } catch {
16339
- return path10;
16339
+ return path12;
16340
16340
  }
16341
16341
  };
16342
16342
  }
@@ -30479,11 +30479,11 @@ var require_react_reconciler_development = __commonJS({
30479
30479
  fiber = fiber.next, id--;
30480
30480
  return fiber;
30481
30481
  }
30482
- function copyWithSetImpl(obj, path10, index, value) {
30483
- if (index >= path10.length)
30482
+ function copyWithSetImpl(obj, path12, index, value) {
30483
+ if (index >= path12.length)
30484
30484
  return value;
30485
- var key = path10[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);
30486
- updated[key] = copyWithSetImpl(obj[key], path10, index + 1, value);
30485
+ var key = path12[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);
30486
+ updated[key] = copyWithSetImpl(obj[key], path12, index + 1, value);
30487
30487
  return updated;
30488
30488
  }
30489
30489
  function copyWithRename(obj, oldPath, newPath) {
@@ -30510,11 +30510,11 @@ var require_react_reconciler_development = __commonJS({
30510
30510
  );
30511
30511
  return updated;
30512
30512
  }
30513
- function copyWithDeleteImpl(obj, path10, index) {
30514
- var key = path10[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);
30515
- if (index + 1 === path10.length)
30513
+ function copyWithDeleteImpl(obj, path12, index) {
30514
+ var key = path12[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);
30515
+ if (index + 1 === path12.length)
30516
30516
  return isArrayImpl(updated) ? updated.splice(key, 1) : delete updated[key], updated;
30517
- updated[key] = copyWithDeleteImpl(obj[key], path10, index + 1);
30517
+ updated[key] = copyWithDeleteImpl(obj[key], path12, index + 1);
30518
30518
  return updated;
30519
30519
  }
30520
30520
  function shouldSuspendImpl() {
@@ -43940,29 +43940,29 @@ var require_react_reconciler_development = __commonJS({
43940
43940
  var didWarnAboutNestedUpdates = false;
43941
43941
  var didWarnAboutFindNodeInStrictMode = {};
43942
43942
  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) {
43943
+ overrideHookState = function(fiber, id, path12, value) {
43944
43944
  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));
43945
+ 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
43946
  };
43947
- overrideHookStateDeletePath = function(fiber, id, path10) {
43947
+ overrideHookStateDeletePath = function(fiber, id, path12) {
43948
43948
  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));
43949
+ 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
43950
  };
43951
43951
  overrideHookStateRenamePath = function(fiber, id, oldPath, newPath) {
43952
43952
  id = findHook(fiber, id);
43953
43953
  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
43954
  };
43955
- overrideProps = function(fiber, path10, value) {
43956
- fiber.pendingProps = copyWithSetImpl(fiber.memoizedProps, path10, 0, value);
43955
+ overrideProps = function(fiber, path12, value) {
43956
+ fiber.pendingProps = copyWithSetImpl(fiber.memoizedProps, path12, 0, value);
43957
43957
  fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps);
43958
- path10 = enqueueConcurrentRenderForLane(fiber, 2);
43959
- null !== path10 && scheduleUpdateOnFiber(path10, fiber, 2);
43958
+ path12 = enqueueConcurrentRenderForLane(fiber, 2);
43959
+ null !== path12 && scheduleUpdateOnFiber(path12, fiber, 2);
43960
43960
  };
43961
- overridePropsDeletePath = function(fiber, path10) {
43962
- fiber.pendingProps = copyWithDeleteImpl(fiber.memoizedProps, path10, 0);
43961
+ overridePropsDeletePath = function(fiber, path12) {
43962
+ fiber.pendingProps = copyWithDeleteImpl(fiber.memoizedProps, path12, 0);
43963
43963
  fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps);
43964
- path10 = enqueueConcurrentRenderForLane(fiber, 2);
43965
- null !== path10 && scheduleUpdateOnFiber(path10, fiber, 2);
43964
+ path12 = enqueueConcurrentRenderForLane(fiber, 2);
43965
+ null !== path12 && scheduleUpdateOnFiber(path12, fiber, 2);
43966
43966
  };
43967
43967
  overridePropsRenamePath = function(fiber, oldPath, newPath) {
43968
43968
  fiber.pendingProps = copyWithRename(
@@ -53954,8 +53954,8 @@ var require_backend = __commonJS({
53954
53954
  }
53955
53955
  return false;
53956
53956
  }
53957
- function utils_getInObject(object2, path10) {
53958
- return path10.reduce(function(reduced, attr) {
53957
+ function utils_getInObject(object2, path12) {
53958
+ return path12.reduce(function(reduced, attr) {
53959
53959
  if (reduced) {
53960
53960
  if (utils_hasOwnProperty.call(reduced, attr)) {
53961
53961
  return reduced[attr];
@@ -53967,11 +53967,11 @@ var require_backend = __commonJS({
53967
53967
  return null;
53968
53968
  }, object2);
53969
53969
  }
53970
- function deletePathInObject(object2, path10) {
53971
- var length = path10.length;
53972
- var last = path10[length - 1];
53970
+ function deletePathInObject(object2, path12) {
53971
+ var length = path12.length;
53972
+ var last = path12[length - 1];
53973
53973
  if (object2 != null) {
53974
- var parent = utils_getInObject(object2, path10.slice(0, length - 1));
53974
+ var parent = utils_getInObject(object2, path12.slice(0, length - 1));
53975
53975
  if (parent) {
53976
53976
  if (src_isArray(parent)) {
53977
53977
  parent.splice(last, 1);
@@ -53997,11 +53997,11 @@ var require_backend = __commonJS({
53997
53997
  }
53998
53998
  }
53999
53999
  }
54000
- function utils_setInObject(object2, path10, value) {
54001
- var length = path10.length;
54002
- var last = path10[length - 1];
54000
+ function utils_setInObject(object2, path12, value) {
54001
+ var length = path12.length;
54002
+ var last = path12[length - 1];
54003
54003
  if (object2 != null) {
54004
- var parent = utils_getInObject(object2, path10.slice(0, length - 1));
54004
+ var parent = utils_getInObject(object2, path12.slice(0, length - 1));
54005
54005
  if (parent) {
54006
54006
  parent[last] = value;
54007
54007
  }
@@ -54537,8 +54537,8 @@ var require_backend = __commonJS({
54537
54537
  unserializable: Symbol("unserializable")
54538
54538
  };
54539
54539
  var LEVEL_THRESHOLD = 2;
54540
- function createDehydrated(type, inspectable, data, cleaned, path10) {
54541
- cleaned.push(path10);
54540
+ function createDehydrated(type, inspectable, data, cleaned, path12) {
54541
+ cleaned.push(path12);
54542
54542
  var dehydrated = {
54543
54543
  inspectable,
54544
54544
  type,
@@ -54556,13 +54556,13 @@ var require_backend = __commonJS({
54556
54556
  }
54557
54557
  return dehydrated;
54558
54558
  }
54559
- function dehydrate(data, cleaned, unserializable, path10, isPathAllowed) {
54559
+ function dehydrate(data, cleaned, unserializable, path12, isPathAllowed) {
54560
54560
  var level = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0;
54561
54561
  var type = getDataType(data);
54562
54562
  var isPathAllowedCheck;
54563
54563
  switch (type) {
54564
54564
  case "html_element":
54565
- cleaned.push(path10);
54565
+ cleaned.push(path12);
54566
54566
  return {
54567
54567
  inspectable: false,
54568
54568
  preview_short: formatDataForPreview(data, false),
@@ -54571,7 +54571,7 @@ var require_backend = __commonJS({
54571
54571
  type
54572
54572
  };
54573
54573
  case "function":
54574
- cleaned.push(path10);
54574
+ cleaned.push(path12);
54575
54575
  return {
54576
54576
  inspectable: false,
54577
54577
  preview_short: formatDataForPreview(data, false),
@@ -54580,14 +54580,14 @@ var require_backend = __commonJS({
54580
54580
  type
54581
54581
  };
54582
54582
  case "string":
54583
- isPathAllowedCheck = isPathAllowed(path10);
54583
+ isPathAllowedCheck = isPathAllowed(path12);
54584
54584
  if (isPathAllowedCheck) {
54585
54585
  return data;
54586
54586
  } else {
54587
54587
  return data.length <= 500 ? data : data.slice(0, 500) + "...";
54588
54588
  }
54589
54589
  case "bigint":
54590
- cleaned.push(path10);
54590
+ cleaned.push(path12);
54591
54591
  return {
54592
54592
  inspectable: false,
54593
54593
  preview_short: formatDataForPreview(data, false),
@@ -54596,7 +54596,7 @@ var require_backend = __commonJS({
54596
54596
  type
54597
54597
  };
54598
54598
  case "symbol":
54599
- cleaned.push(path10);
54599
+ cleaned.push(path12);
54600
54600
  return {
54601
54601
  inspectable: false,
54602
54602
  preview_short: formatDataForPreview(data, false),
@@ -54605,9 +54605,9 @@ var require_backend = __commonJS({
54605
54605
  type
54606
54606
  };
54607
54607
  case "react_element": {
54608
- isPathAllowedCheck = isPathAllowed(path10);
54608
+ isPathAllowedCheck = isPathAllowed(path12);
54609
54609
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
54610
- cleaned.push(path10);
54610
+ cleaned.push(path12);
54611
54611
  return {
54612
54612
  inspectable: true,
54613
54613
  preview_short: formatDataForPreview(data, false),
@@ -54624,19 +54624,19 @@ var require_backend = __commonJS({
54624
54624
  preview_long: formatDataForPreview(data, true),
54625
54625
  name: getDisplayNameForReactElement(data) || "Unknown"
54626
54626
  };
54627
- unserializableValue.key = dehydrate(data.key, cleaned, unserializable, path10.concat(["key"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54627
+ unserializableValue.key = dehydrate(data.key, cleaned, unserializable, path12.concat(["key"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54628
54628
  if (data.$$typeof === REACT_LEGACY_ELEMENT_TYPE) {
54629
- unserializableValue.ref = dehydrate(data.ref, cleaned, unserializable, path10.concat(["ref"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54629
+ unserializableValue.ref = dehydrate(data.ref, cleaned, unserializable, path12.concat(["ref"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54630
54630
  }
54631
- unserializableValue.props = dehydrate(data.props, cleaned, unserializable, path10.concat(["props"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54632
- unserializable.push(path10);
54631
+ unserializableValue.props = dehydrate(data.props, cleaned, unserializable, path12.concat(["props"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54632
+ unserializable.push(path12);
54633
54633
  return unserializableValue;
54634
54634
  }
54635
54635
  case "react_lazy": {
54636
- isPathAllowedCheck = isPathAllowed(path10);
54636
+ isPathAllowedCheck = isPathAllowed(path12);
54637
54637
  var payload = data._payload;
54638
54638
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
54639
- cleaned.push(path10);
54639
+ cleaned.push(path12);
54640
54640
  var inspectable = payload !== null && hydration_typeof(payload) === "object" && (payload._status === 1 || payload._status === 2 || payload.status === "fulfilled" || payload.status === "rejected");
54641
54641
  return {
54642
54642
  inspectable,
@@ -54653,13 +54653,13 @@ var require_backend = __commonJS({
54653
54653
  preview_long: formatDataForPreview(data, true),
54654
54654
  name: "lazy()"
54655
54655
  };
54656
- _unserializableValue._payload = dehydrate(payload, cleaned, unserializable, path10.concat(["_payload"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54657
- unserializable.push(path10);
54656
+ _unserializableValue._payload = dehydrate(payload, cleaned, unserializable, path12.concat(["_payload"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54657
+ unserializable.push(path12);
54658
54658
  return _unserializableValue;
54659
54659
  }
54660
54660
  case "array_buffer":
54661
54661
  case "data_view":
54662
- cleaned.push(path10);
54662
+ cleaned.push(path12);
54663
54663
  return {
54664
54664
  inspectable: false,
54665
54665
  preview_short: formatDataForPreview(data, false),
@@ -54669,21 +54669,21 @@ var require_backend = __commonJS({
54669
54669
  type
54670
54670
  };
54671
54671
  case "array":
54672
- isPathAllowedCheck = isPathAllowed(path10);
54672
+ isPathAllowedCheck = isPathAllowed(path12);
54673
54673
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
54674
- return createDehydrated(type, true, data, cleaned, path10);
54674
+ return createDehydrated(type, true, data, cleaned, path12);
54675
54675
  }
54676
54676
  var arr = [];
54677
54677
  for (var i = 0; i < data.length; i++) {
54678
- arr[i] = dehydrateKey(data, i, cleaned, unserializable, path10.concat([i]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54678
+ arr[i] = dehydrateKey(data, i, cleaned, unserializable, path12.concat([i]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54679
54679
  }
54680
54680
  return arr;
54681
54681
  case "html_all_collection":
54682
54682
  case "typed_array":
54683
54683
  case "iterator":
54684
- isPathAllowedCheck = isPathAllowed(path10);
54684
+ isPathAllowedCheck = isPathAllowed(path12);
54685
54685
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
54686
- return createDehydrated(type, true, data, cleaned, path10);
54686
+ return createDehydrated(type, true, data, cleaned, path12);
54687
54687
  } else {
54688
54688
  var _unserializableValue2 = {
54689
54689
  unserializable: true,
@@ -54695,13 +54695,13 @@ var require_backend = __commonJS({
54695
54695
  name: typeof data.constructor !== "function" || typeof data.constructor.name !== "string" || data.constructor.name === "Object" ? "" : data.constructor.name
54696
54696
  };
54697
54697
  Array.from(data).forEach(function(item, i2) {
54698
- return _unserializableValue2[i2] = dehydrate(item, cleaned, unserializable, path10.concat([i2]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54698
+ return _unserializableValue2[i2] = dehydrate(item, cleaned, unserializable, path12.concat([i2]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54699
54699
  });
54700
- unserializable.push(path10);
54700
+ unserializable.push(path12);
54701
54701
  return _unserializableValue2;
54702
54702
  }
54703
54703
  case "opaque_iterator":
54704
- cleaned.push(path10);
54704
+ cleaned.push(path12);
54705
54705
  return {
54706
54706
  inspectable: false,
54707
54707
  preview_short: formatDataForPreview(data, false),
@@ -54710,7 +54710,7 @@ var require_backend = __commonJS({
54710
54710
  type
54711
54711
  };
54712
54712
  case "date":
54713
- cleaned.push(path10);
54713
+ cleaned.push(path12);
54714
54714
  return {
54715
54715
  inspectable: false,
54716
54716
  preview_short: formatDataForPreview(data, false),
@@ -54719,7 +54719,7 @@ var require_backend = __commonJS({
54719
54719
  type
54720
54720
  };
54721
54721
  case "regexp":
54722
- cleaned.push(path10);
54722
+ cleaned.push(path12);
54723
54723
  return {
54724
54724
  inspectable: false,
54725
54725
  preview_short: formatDataForPreview(data, false),
@@ -54728,9 +54728,9 @@ var require_backend = __commonJS({
54728
54728
  type
54729
54729
  };
54730
54730
  case "thenable":
54731
- isPathAllowedCheck = isPathAllowed(path10);
54731
+ isPathAllowedCheck = isPathAllowed(path12);
54732
54732
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
54733
- cleaned.push(path10);
54733
+ cleaned.push(path12);
54734
54734
  return {
54735
54735
  inspectable: data.status === "fulfilled" || data.status === "rejected",
54736
54736
  preview_short: formatDataForPreview(data, false),
@@ -54751,8 +54751,8 @@ var require_backend = __commonJS({
54751
54751
  preview_long: formatDataForPreview(data, true),
54752
54752
  name: "fulfilled Thenable"
54753
54753
  };
54754
- _unserializableValue3.value = dehydrate(data.value, cleaned, unserializable, path10.concat(["value"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54755
- unserializable.push(path10);
54754
+ _unserializableValue3.value = dehydrate(data.value, cleaned, unserializable, path12.concat(["value"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54755
+ unserializable.push(path12);
54756
54756
  return _unserializableValue3;
54757
54757
  }
54758
54758
  case "rejected": {
@@ -54763,12 +54763,12 @@ var require_backend = __commonJS({
54763
54763
  preview_long: formatDataForPreview(data, true),
54764
54764
  name: "rejected Thenable"
54765
54765
  };
54766
- _unserializableValue4.reason = dehydrate(data.reason, cleaned, unserializable, path10.concat(["reason"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54767
- unserializable.push(path10);
54766
+ _unserializableValue4.reason = dehydrate(data.reason, cleaned, unserializable, path12.concat(["reason"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54767
+ unserializable.push(path12);
54768
54768
  return _unserializableValue4;
54769
54769
  }
54770
54770
  default:
54771
- cleaned.push(path10);
54771
+ cleaned.push(path12);
54772
54772
  return {
54773
54773
  inspectable: false,
54774
54774
  preview_short: formatDataForPreview(data, false),
@@ -54778,21 +54778,21 @@ var require_backend = __commonJS({
54778
54778
  };
54779
54779
  }
54780
54780
  case "object":
54781
- isPathAllowedCheck = isPathAllowed(path10);
54781
+ isPathAllowedCheck = isPathAllowed(path12);
54782
54782
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
54783
- return createDehydrated(type, true, data, cleaned, path10);
54783
+ return createDehydrated(type, true, data, cleaned, path12);
54784
54784
  } else {
54785
54785
  var object2 = {};
54786
54786
  getAllEnumerableKeys(data).forEach(function(key) {
54787
54787
  var name = key.toString();
54788
- object2[name] = dehydrateKey(data, key, cleaned, unserializable, path10.concat([name]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54788
+ object2[name] = dehydrateKey(data, key, cleaned, unserializable, path12.concat([name]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54789
54789
  });
54790
54790
  return object2;
54791
54791
  }
54792
54792
  case "class_instance": {
54793
- isPathAllowedCheck = isPathAllowed(path10);
54793
+ isPathAllowedCheck = isPathAllowed(path12);
54794
54794
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
54795
- return createDehydrated(type, true, data, cleaned, path10);
54795
+ return createDehydrated(type, true, data, cleaned, path12);
54796
54796
  }
54797
54797
  var value = {
54798
54798
  unserializable: true,
@@ -54804,15 +54804,15 @@ var require_backend = __commonJS({
54804
54804
  };
54805
54805
  getAllEnumerableKeys(data).forEach(function(key) {
54806
54806
  var keyAsString = key.toString();
54807
- value[keyAsString] = dehydrate(data[key], cleaned, unserializable, path10.concat([keyAsString]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54807
+ value[keyAsString] = dehydrate(data[key], cleaned, unserializable, path12.concat([keyAsString]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54808
54808
  });
54809
- unserializable.push(path10);
54809
+ unserializable.push(path12);
54810
54810
  return value;
54811
54811
  }
54812
54812
  case "error": {
54813
- isPathAllowedCheck = isPathAllowed(path10);
54813
+ isPathAllowedCheck = isPathAllowed(path12);
54814
54814
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
54815
- return createDehydrated(type, true, data, cleaned, path10);
54815
+ return createDehydrated(type, true, data, cleaned, path12);
54816
54816
  }
54817
54817
  var _value = {
54818
54818
  unserializable: true,
@@ -54822,22 +54822,22 @@ var require_backend = __commonJS({
54822
54822
  preview_long: formatDataForPreview(data, true),
54823
54823
  name: data.name
54824
54824
  };
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);
54825
+ _value.message = dehydrate(data.message, cleaned, unserializable, path12.concat(["message"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54826
+ _value.stack = dehydrate(data.stack, cleaned, unserializable, path12.concat(["stack"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54827
54827
  if ("cause" in data) {
54828
- _value.cause = dehydrate(data.cause, cleaned, unserializable, path10.concat(["cause"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54828
+ _value.cause = dehydrate(data.cause, cleaned, unserializable, path12.concat(["cause"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54829
54829
  }
54830
54830
  getAllEnumerableKeys(data).forEach(function(key) {
54831
54831
  var keyAsString = key.toString();
54832
- _value[keyAsString] = dehydrate(data[key], cleaned, unserializable, path10.concat([keyAsString]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54832
+ _value[keyAsString] = dehydrate(data[key], cleaned, unserializable, path12.concat([keyAsString]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
54833
54833
  });
54834
- unserializable.push(path10);
54834
+ unserializable.push(path12);
54835
54835
  return _value;
54836
54836
  }
54837
54837
  case "infinity":
54838
54838
  case "nan":
54839
54839
  case "undefined":
54840
- cleaned.push(path10);
54840
+ cleaned.push(path12);
54841
54841
  return {
54842
54842
  type
54843
54843
  };
@@ -54845,10 +54845,10 @@ var require_backend = __commonJS({
54845
54845
  return data;
54846
54846
  }
54847
54847
  }
54848
- function dehydrateKey(parent, key, cleaned, unserializable, path10, isPathAllowed) {
54848
+ function dehydrateKey(parent, key, cleaned, unserializable, path12, isPathAllowed) {
54849
54849
  var level = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : 0;
54850
54850
  try {
54851
- return dehydrate(parent[key], cleaned, unserializable, path10, isPathAllowed, level);
54851
+ return dehydrate(parent[key], cleaned, unserializable, path12, isPathAllowed, level);
54852
54852
  } catch (error48) {
54853
54853
  var preview = "";
54854
54854
  if (hydration_typeof(error48) === "object" && error48 !== null && typeof error48.stack === "string") {
@@ -54856,7 +54856,7 @@ var require_backend = __commonJS({
54856
54856
  } else if (typeof error48 === "string") {
54857
54857
  preview = error48;
54858
54858
  }
54859
- cleaned.push(path10);
54859
+ cleaned.push(path12);
54860
54860
  return {
54861
54861
  inspectable: false,
54862
54862
  preview_short: "[Exception]",
@@ -54866,8 +54866,8 @@ var require_backend = __commonJS({
54866
54866
  };
54867
54867
  }
54868
54868
  }
54869
- function fillInPath(object2, data, path10, value) {
54870
- var target = getInObject(object2, path10);
54869
+ function fillInPath(object2, data, path12, value) {
54870
+ var target = getInObject(object2, path12);
54871
54871
  if (target != null) {
54872
54872
  if (!target[meta3.unserializable]) {
54873
54873
  delete target[meta3.inspectable];
@@ -54882,9 +54882,9 @@ var require_backend = __commonJS({
54882
54882
  }
54883
54883
  if (value !== null && data.unserializable.length > 0) {
54884
54884
  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]) {
54885
+ var isMatch = unserializablePath.length === path12.length;
54886
+ for (var i = 0; i < path12.length; i++) {
54887
+ if (path12[i] !== unserializablePath[i]) {
54888
54888
  isMatch = false;
54889
54889
  break;
54890
54890
  }
@@ -54893,13 +54893,13 @@ var require_backend = __commonJS({
54893
54893
  upgradeUnserializable(value, value);
54894
54894
  }
54895
54895
  }
54896
- setInObject(object2, path10, value);
54896
+ setInObject(object2, path12, value);
54897
54897
  }
54898
54898
  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));
54899
+ cleaned.forEach(function(path12) {
54900
+ var length = path12.length;
54901
+ var last = path12[length - 1];
54902
+ var parent = getInObject(object2, path12.slice(0, length - 1));
54903
54903
  if (!parent || !parent.hasOwnProperty(last)) {
54904
54904
  return;
54905
54905
  }
@@ -54925,10 +54925,10 @@ var require_backend = __commonJS({
54925
54925
  parent[last] = replaced;
54926
54926
  }
54927
54927
  });
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));
54928
+ unserializable.forEach(function(path12) {
54929
+ var length = path12.length;
54930
+ var last = path12[length - 1];
54931
+ var parent = getInObject(object2, path12.slice(0, length - 1));
54932
54932
  if (!parent || !parent.hasOwnProperty(last)) {
54933
54933
  return;
54934
54934
  }
@@ -55051,11 +55051,11 @@ var require_backend = __commonJS({
55051
55051
  return gte(version2, FIRST_DEVTOOLS_BACKEND_LOCKSTEP_VER);
55052
55052
  }
55053
55053
  function cleanForBridge(data, isPathAllowed) {
55054
- var path10 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
55054
+ var path12 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
55055
55055
  if (data !== null) {
55056
55056
  var cleanedPaths = [];
55057
55057
  var unserializablePaths = [];
55058
- var cleanedData = dehydrate(data, cleanedPaths, unserializablePaths, path10, isPathAllowed);
55058
+ var cleanedData = dehydrate(data, cleanedPaths, unserializablePaths, path12, isPathAllowed);
55059
55059
  return {
55060
55060
  data: cleanedData,
55061
55061
  cleaned: cleanedPaths,
@@ -55065,18 +55065,18 @@ var require_backend = __commonJS({
55065
55065
  return null;
55066
55066
  }
55067
55067
  }
55068
- function copyWithDelete(obj, path10) {
55068
+ function copyWithDelete(obj, path12) {
55069
55069
  var index = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
55070
- var key = path10[index];
55070
+ var key = path12[index];
55071
55071
  var updated = shared_isArray(obj) ? obj.slice() : utils_objectSpread({}, obj);
55072
- if (index + 1 === path10.length) {
55072
+ if (index + 1 === path12.length) {
55073
55073
  if (shared_isArray(updated)) {
55074
55074
  updated.splice(key, 1);
55075
55075
  } else {
55076
55076
  delete updated[key];
55077
55077
  }
55078
55078
  } else {
55079
- updated[key] = copyWithDelete(obj[key], path10, index + 1);
55079
+ updated[key] = copyWithDelete(obj[key], path12, index + 1);
55080
55080
  }
55081
55081
  return updated;
55082
55082
  }
@@ -55097,14 +55097,14 @@ var require_backend = __commonJS({
55097
55097
  }
55098
55098
  return updated;
55099
55099
  }
55100
- function copyWithSet(obj, path10, value) {
55100
+ function copyWithSet(obj, path12, value) {
55101
55101
  var index = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0;
55102
- if (index >= path10.length) {
55102
+ if (index >= path12.length) {
55103
55103
  return value;
55104
55104
  }
55105
- var key = path10[index];
55105
+ var key = path12[index];
55106
55106
  var updated = shared_isArray(obj) ? obj.slice() : utils_objectSpread({}, obj);
55107
- updated[key] = copyWithSet(obj[key], path10, value, index + 1);
55107
+ updated[key] = copyWithSet(obj[key], path12, value, index + 1);
55108
55108
  return updated;
55109
55109
  }
55110
55110
  function getEffectDurations(root) {
@@ -56427,12 +56427,12 @@ var require_backend = __commonJS({
56427
56427
  }
56428
56428
  });
56429
56429
  bridge_defineProperty(_this, "overrideValueAtPath", function(_ref) {
56430
- var id = _ref.id, path10 = _ref.path, rendererID = _ref.rendererID, type = _ref.type, value = _ref.value;
56430
+ var id = _ref.id, path12 = _ref.path, rendererID = _ref.rendererID, type = _ref.type, value = _ref.value;
56431
56431
  switch (type) {
56432
56432
  case "context":
56433
56433
  _this.send("overrideContext", {
56434
56434
  id,
56435
- path: path10,
56435
+ path: path12,
56436
56436
  rendererID,
56437
56437
  wasForwarded: true,
56438
56438
  value
@@ -56441,7 +56441,7 @@ var require_backend = __commonJS({
56441
56441
  case "hooks":
56442
56442
  _this.send("overrideHookState", {
56443
56443
  id,
56444
- path: path10,
56444
+ path: path12,
56445
56445
  rendererID,
56446
56446
  wasForwarded: true,
56447
56447
  value
@@ -56450,7 +56450,7 @@ var require_backend = __commonJS({
56450
56450
  case "props":
56451
56451
  _this.send("overrideProps", {
56452
56452
  id,
56453
- path: path10,
56453
+ path: path12,
56454
56454
  rendererID,
56455
56455
  wasForwarded: true,
56456
56456
  value
@@ -56459,7 +56459,7 @@ var require_backend = __commonJS({
56459
56459
  case "state":
56460
56460
  _this.send("overrideState", {
56461
56461
  id,
56462
- path: path10,
56462
+ path: path12,
56463
56463
  rendererID,
56464
56464
  wasForwarded: true,
56465
56465
  value
@@ -56803,12 +56803,12 @@ var require_backend = __commonJS({
56803
56803
  }
56804
56804
  });
56805
56805
  agent_defineProperty(_this, "copyElementPath", function(_ref5) {
56806
- var id = _ref5.id, path10 = _ref5.path, rendererID = _ref5.rendererID;
56806
+ var id = _ref5.id, path12 = _ref5.path, rendererID = _ref5.rendererID;
56807
56807
  var renderer2 = _this._rendererInterfaces[rendererID];
56808
56808
  if (renderer2 == null) {
56809
56809
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
56810
56810
  } else {
56811
- var value = renderer2.getSerializedElementValueByPath(id, path10);
56811
+ var value = renderer2.getSerializedElementValueByPath(id, path12);
56812
56812
  if (value != null) {
56813
56813
  _this._bridge.send("saveToClipboard", value);
56814
56814
  } else {
@@ -56817,12 +56817,12 @@ var require_backend = __commonJS({
56817
56817
  }
56818
56818
  });
56819
56819
  agent_defineProperty(_this, "deletePath", function(_ref6) {
56820
- var hookID = _ref6.hookID, id = _ref6.id, path10 = _ref6.path, rendererID = _ref6.rendererID, type = _ref6.type;
56820
+ var hookID = _ref6.hookID, id = _ref6.id, path12 = _ref6.path, rendererID = _ref6.rendererID, type = _ref6.type;
56821
56821
  var renderer2 = _this._rendererInterfaces[rendererID];
56822
56822
  if (renderer2 == null) {
56823
56823
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
56824
56824
  } else {
56825
- renderer2.deletePath(type, id, hookID, path10);
56825
+ renderer2.deletePath(type, id, hookID, path12);
56826
56826
  }
56827
56827
  });
56828
56828
  agent_defineProperty(_this, "getBackendVersion", function() {
@@ -56859,12 +56859,12 @@ var require_backend = __commonJS({
56859
56859
  }
56860
56860
  });
56861
56861
  agent_defineProperty(_this, "inspectElement", function(_ref9) {
56862
- var forceFullData = _ref9.forceFullData, id = _ref9.id, path10 = _ref9.path, rendererID = _ref9.rendererID, requestID = _ref9.requestID;
56862
+ var forceFullData = _ref9.forceFullData, id = _ref9.id, path12 = _ref9.path, rendererID = _ref9.rendererID, requestID = _ref9.requestID;
56863
56863
  var renderer2 = _this._rendererInterfaces[rendererID];
56864
56864
  if (renderer2 == null) {
56865
56865
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
56866
56866
  } else {
56867
- _this._bridge.send("inspectedElement", renderer2.inspectElement(requestID, id, path10, forceFullData));
56867
+ _this._bridge.send("inspectedElement", renderer2.inspectElement(requestID, id, path12, forceFullData));
56868
56868
  if (_this._persistedSelectionMatch === null || _this._persistedSelectionMatch.id !== id) {
56869
56869
  _this._persistedSelection = null;
56870
56870
  _this._persistedSelectionMatch = null;
@@ -56898,15 +56898,15 @@ var require_backend = __commonJS({
56898
56898
  }
56899
56899
  for (var rendererID in _this._rendererInterfaces) {
56900
56900
  var renderer2 = _this._rendererInterfaces[rendererID];
56901
- var path10 = null;
56901
+ var path12 = null;
56902
56902
  if (suspendedByPathIndex !== null && rendererPath !== null) {
56903
56903
  var suspendedByPathRendererIndex = suspendedByPathIndex - suspendedByOffset;
56904
56904
  var rendererHasRequestedSuspendedByPath = renderer2.getElementAttributeByPath(id, ["suspendedBy", suspendedByPathRendererIndex]) !== void 0;
56905
56905
  if (rendererHasRequestedSuspendedByPath) {
56906
- path10 = ["suspendedBy", suspendedByPathRendererIndex].concat(rendererPath);
56906
+ path12 = ["suspendedBy", suspendedByPathRendererIndex].concat(rendererPath);
56907
56907
  }
56908
56908
  }
56909
- var inspectedRootsPayload = renderer2.inspectElement(requestID, id, path10, forceFullData);
56909
+ var inspectedRootsPayload = renderer2.inspectElement(requestID, id, path12, forceFullData);
56910
56910
  switch (inspectedRootsPayload.type) {
56911
56911
  case "hydrated-path":
56912
56912
  inspectedRootsPayload.path[1] += suspendedByOffset;
@@ -57000,20 +57000,20 @@ var require_backend = __commonJS({
57000
57000
  }
57001
57001
  });
57002
57002
  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;
57003
+ var hookID = _ref15.hookID, id = _ref15.id, path12 = _ref15.path, rendererID = _ref15.rendererID, type = _ref15.type, value = _ref15.value;
57004
57004
  var renderer2 = _this._rendererInterfaces[rendererID];
57005
57005
  if (renderer2 == null) {
57006
57006
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
57007
57007
  } else {
57008
- renderer2.overrideValueAtPath(type, id, hookID, path10, value);
57008
+ renderer2.overrideValueAtPath(type, id, hookID, path12, value);
57009
57009
  }
57010
57010
  });
57011
57011
  agent_defineProperty(_this, "overrideContext", function(_ref16) {
57012
- var id = _ref16.id, path10 = _ref16.path, rendererID = _ref16.rendererID, wasForwarded = _ref16.wasForwarded, value = _ref16.value;
57012
+ var id = _ref16.id, path12 = _ref16.path, rendererID = _ref16.rendererID, wasForwarded = _ref16.wasForwarded, value = _ref16.value;
57013
57013
  if (!wasForwarded) {
57014
57014
  _this.overrideValueAtPath({
57015
57015
  id,
57016
- path: path10,
57016
+ path: path12,
57017
57017
  rendererID,
57018
57018
  type: "context",
57019
57019
  value
@@ -57021,11 +57021,11 @@ var require_backend = __commonJS({
57021
57021
  }
57022
57022
  });
57023
57023
  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;
57024
+ var id = _ref17.id, hookID = _ref17.hookID, path12 = _ref17.path, rendererID = _ref17.rendererID, wasForwarded = _ref17.wasForwarded, value = _ref17.value;
57025
57025
  if (!wasForwarded) {
57026
57026
  _this.overrideValueAtPath({
57027
57027
  id,
57028
- path: path10,
57028
+ path: path12,
57029
57029
  rendererID,
57030
57030
  type: "hooks",
57031
57031
  value
@@ -57033,11 +57033,11 @@ var require_backend = __commonJS({
57033
57033
  }
57034
57034
  });
57035
57035
  agent_defineProperty(_this, "overrideProps", function(_ref18) {
57036
- var id = _ref18.id, path10 = _ref18.path, rendererID = _ref18.rendererID, wasForwarded = _ref18.wasForwarded, value = _ref18.value;
57036
+ var id = _ref18.id, path12 = _ref18.path, rendererID = _ref18.rendererID, wasForwarded = _ref18.wasForwarded, value = _ref18.value;
57037
57037
  if (!wasForwarded) {
57038
57038
  _this.overrideValueAtPath({
57039
57039
  id,
57040
- path: path10,
57040
+ path: path12,
57041
57041
  rendererID,
57042
57042
  type: "props",
57043
57043
  value
@@ -57045,11 +57045,11 @@ var require_backend = __commonJS({
57045
57045
  }
57046
57046
  });
57047
57047
  agent_defineProperty(_this, "overrideState", function(_ref19) {
57048
- var id = _ref19.id, path10 = _ref19.path, rendererID = _ref19.rendererID, wasForwarded = _ref19.wasForwarded, value = _ref19.value;
57048
+ var id = _ref19.id, path12 = _ref19.path, rendererID = _ref19.rendererID, wasForwarded = _ref19.wasForwarded, value = _ref19.value;
57049
57049
  if (!wasForwarded) {
57050
57050
  _this.overrideValueAtPath({
57051
57051
  id,
57052
- path: path10,
57052
+ path: path12,
57053
57053
  rendererID,
57054
57054
  type: "state",
57055
57055
  value
@@ -57116,12 +57116,12 @@ var require_backend = __commonJS({
57116
57116
  _this._bridge.send("stopInspectingHost", selected);
57117
57117
  });
57118
57118
  agent_defineProperty(_this, "storeAsGlobal", function(_ref23) {
57119
- var count = _ref23.count, id = _ref23.id, path10 = _ref23.path, rendererID = _ref23.rendererID;
57119
+ var count = _ref23.count, id = _ref23.id, path12 = _ref23.path, rendererID = _ref23.rendererID;
57120
57120
  var renderer2 = _this._rendererInterfaces[rendererID];
57121
57121
  if (renderer2 == null) {
57122
57122
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
57123
57123
  } else {
57124
- renderer2.storeAsGlobal(id, path10, count);
57124
+ renderer2.storeAsGlobal(id, path12, count);
57125
57125
  }
57126
57126
  });
57127
57127
  agent_defineProperty(_this, "updateHookSettings", function(settings) {
@@ -57138,12 +57138,12 @@ var require_backend = __commonJS({
57138
57138
  var rendererID = +rendererIDString;
57139
57139
  var renderer2 = _this._rendererInterfaces[rendererID];
57140
57140
  if (_this._lastSelectedRendererID === rendererID) {
57141
- var path10 = renderer2.getPathForElement(_this._lastSelectedElementID);
57142
- if (path10 !== null) {
57143
- renderer2.setTrackedPath(path10);
57141
+ var path12 = renderer2.getPathForElement(_this._lastSelectedElementID);
57142
+ if (path12 !== null) {
57143
+ renderer2.setTrackedPath(path12);
57144
57144
  _this._persistedSelection = {
57145
57145
  rendererID,
57146
- path: path10
57146
+ path: path12
57147
57147
  };
57148
57148
  }
57149
57149
  }
@@ -57218,11 +57218,11 @@ var require_backend = __commonJS({
57218
57218
  var rendererID = _this._lastSelectedRendererID;
57219
57219
  var id = _this._lastSelectedElementID;
57220
57220
  var renderer2 = _this._rendererInterfaces[rendererID];
57221
- var path10 = renderer2 != null ? renderer2.getPathForElement(id) : null;
57222
- if (path10 !== null) {
57221
+ var path12 = renderer2 != null ? renderer2.getPathForElement(id) : null;
57222
+ if (path12 !== null) {
57223
57223
  storage_sessionStorageSetItem(SESSION_STORAGE_LAST_SELECTION_KEY, JSON.stringify({
57224
57224
  rendererID,
57225
- path: path10
57225
+ path: path12
57226
57226
  }));
57227
57227
  } else {
57228
57228
  storage_sessionStorageRemoveItem(SESSION_STORAGE_LAST_SELECTION_KEY);
@@ -57955,7 +57955,7 @@ var require_backend = __commonJS({
57955
57955
  hasElementWithId: function hasElementWithId() {
57956
57956
  return false;
57957
57957
  },
57958
- inspectElement: function inspectElement(requestID, id, path10) {
57958
+ inspectElement: function inspectElement(requestID, id, path12) {
57959
57959
  return {
57960
57960
  id,
57961
57961
  responseID: requestID,
@@ -63252,9 +63252,9 @@ var require_backend = __commonJS({
63252
63252
  }
63253
63253
  return null;
63254
63254
  }
63255
- function getElementAttributeByPath(id, path10) {
63255
+ function getElementAttributeByPath(id, path12) {
63256
63256
  if (isMostRecentlyInspectedElement(id)) {
63257
- return utils_getInObject(mostRecentlyInspectedElement, path10);
63257
+ return utils_getInObject(mostRecentlyInspectedElement, path12);
63258
63258
  }
63259
63259
  return void 0;
63260
63260
  }
@@ -63961,9 +63961,9 @@ var require_backend = __commonJS({
63961
63961
  function isMostRecentlyInspectedElementCurrent(id) {
63962
63962
  return isMostRecentlyInspectedElement(id) && !hasElementUpdatedSinceLastInspected;
63963
63963
  }
63964
- function mergeInspectedPaths(path10) {
63964
+ function mergeInspectedPaths(path12) {
63965
63965
  var current = currentlyInspectedPaths;
63966
- path10.forEach(function(key) {
63966
+ path12.forEach(function(key) {
63967
63967
  if (!current[key]) {
63968
63968
  current[key] = {};
63969
63969
  }
@@ -63971,21 +63971,21 @@ var require_backend = __commonJS({
63971
63971
  });
63972
63972
  }
63973
63973
  function createIsPathAllowed(key, secondaryCategory) {
63974
- return function isPathAllowed(path10) {
63974
+ return function isPathAllowed(path12) {
63975
63975
  switch (secondaryCategory) {
63976
63976
  case "hooks":
63977
- if (path10.length === 1) {
63977
+ if (path12.length === 1) {
63978
63978
  return true;
63979
63979
  }
63980
- if (path10[path10.length - 2] === "hookSource" && path10[path10.length - 1] === "fileName") {
63980
+ if (path12[path12.length - 2] === "hookSource" && path12[path12.length - 1] === "fileName") {
63981
63981
  return true;
63982
63982
  }
63983
- if (path10[path10.length - 1] === "subHooks" || path10[path10.length - 2] === "subHooks") {
63983
+ if (path12[path12.length - 1] === "subHooks" || path12[path12.length - 2] === "subHooks") {
63984
63984
  return true;
63985
63985
  }
63986
63986
  break;
63987
63987
  case "suspendedBy":
63988
- if (path10.length < 5) {
63988
+ if (path12.length < 5) {
63989
63989
  return true;
63990
63990
  }
63991
63991
  break;
@@ -63996,8 +63996,8 @@ var require_backend = __commonJS({
63996
63996
  if (!current) {
63997
63997
  return false;
63998
63998
  }
63999
- for (var i = 0; i < path10.length; i++) {
64000
- current = current[path10[i]];
63999
+ for (var i = 0; i < path12.length; i++) {
64000
+ current = current[path12[i]];
64001
64001
  if (!current) {
64002
64002
  return false;
64003
64003
  }
@@ -64051,38 +64051,38 @@ var require_backend = __commonJS({
64051
64051
  break;
64052
64052
  }
64053
64053
  }
64054
- function storeAsGlobal(id, path10, count) {
64054
+ function storeAsGlobal(id, path12, count) {
64055
64055
  if (isMostRecentlyInspectedElement(id)) {
64056
- var value = utils_getInObject(mostRecentlyInspectedElement, path10);
64056
+ var value = utils_getInObject(mostRecentlyInspectedElement, path12);
64057
64057
  var key = "$reactTemp".concat(count);
64058
64058
  window[key] = value;
64059
64059
  console.log(key);
64060
64060
  console.log(value);
64061
64061
  }
64062
64062
  }
64063
- function getSerializedElementValueByPath(id, path10) {
64063
+ function getSerializedElementValueByPath(id, path12) {
64064
64064
  if (isMostRecentlyInspectedElement(id)) {
64065
- var valueToCopy = utils_getInObject(mostRecentlyInspectedElement, path10);
64065
+ var valueToCopy = utils_getInObject(mostRecentlyInspectedElement, path12);
64066
64066
  return serializeToString(valueToCopy);
64067
64067
  }
64068
64068
  }
64069
- function inspectElement(requestID, id, path10, forceFullData) {
64070
- if (path10 !== null) {
64071
- mergeInspectedPaths(path10);
64069
+ function inspectElement(requestID, id, path12, forceFullData) {
64070
+ if (path12 !== null) {
64071
+ mergeInspectedPaths(path12);
64072
64072
  }
64073
64073
  if (isMostRecentlyInspectedElement(id) && !forceFullData) {
64074
64074
  if (!hasElementUpdatedSinceLastInspected) {
64075
- if (path10 !== null) {
64075
+ if (path12 !== null) {
64076
64076
  var secondaryCategory = null;
64077
- if (path10[0] === "hooks" || path10[0] === "suspendedBy") {
64078
- secondaryCategory = path10[0];
64077
+ if (path12[0] === "hooks" || path12[0] === "suspendedBy") {
64078
+ secondaryCategory = path12[0];
64079
64079
  }
64080
64080
  return {
64081
64081
  id,
64082
64082
  responseID: requestID,
64083
64083
  type: "hydrated-path",
64084
- path: path10,
64085
- value: cleanForBridge(utils_getInObject(mostRecentlyInspectedElement, path10), createIsPathAllowed(null, secondaryCategory), path10)
64084
+ path: path12,
64085
+ value: cleanForBridge(utils_getInObject(mostRecentlyInspectedElement, path12), createIsPathAllowed(null, secondaryCategory), path12)
64086
64086
  };
64087
64087
  } else {
64088
64088
  return {
@@ -64271,7 +64271,7 @@ var require_backend = __commonJS({
64271
64271
  console.groupEnd();
64272
64272
  }
64273
64273
  }
64274
- function deletePath(type, id, hookID, path10) {
64274
+ function deletePath(type, id, hookID, path12) {
64275
64275
  var devtoolsInstance = idToDevToolsInstanceMap.get(id);
64276
64276
  if (devtoolsInstance === void 0) {
64277
64277
  console.warn('Could not find DevToolsInstance with id "'.concat(id, '"'));
@@ -64285,12 +64285,12 @@ var require_backend = __commonJS({
64285
64285
  var instance = fiber.stateNode;
64286
64286
  switch (type) {
64287
64287
  case "context":
64288
- path10 = path10.slice(1);
64288
+ path12 = path12.slice(1);
64289
64289
  switch (fiber.tag) {
64290
64290
  case ClassComponent:
64291
- if (path10.length === 0) {
64291
+ if (path12.length === 0) {
64292
64292
  } else {
64293
- deletePathInObject(instance.context, path10);
64293
+ deletePathInObject(instance.context, path12);
64294
64294
  }
64295
64295
  instance.forceUpdate();
64296
64296
  break;
@@ -64300,21 +64300,21 @@ var require_backend = __commonJS({
64300
64300
  break;
64301
64301
  case "hooks":
64302
64302
  if (typeof overrideHookStateDeletePath === "function") {
64303
- overrideHookStateDeletePath(fiber, hookID, path10);
64303
+ overrideHookStateDeletePath(fiber, hookID, path12);
64304
64304
  }
64305
64305
  break;
64306
64306
  case "props":
64307
64307
  if (instance === null) {
64308
64308
  if (typeof overridePropsDeletePath === "function") {
64309
- overridePropsDeletePath(fiber, path10);
64309
+ overridePropsDeletePath(fiber, path12);
64310
64310
  }
64311
64311
  } else {
64312
- fiber.pendingProps = copyWithDelete(instance.props, path10);
64312
+ fiber.pendingProps = copyWithDelete(instance.props, path12);
64313
64313
  instance.forceUpdate();
64314
64314
  }
64315
64315
  break;
64316
64316
  case "state":
64317
- deletePathInObject(instance.state, path10);
64317
+ deletePathInObject(instance.state, path12);
64318
64318
  instance.forceUpdate();
64319
64319
  break;
64320
64320
  }
@@ -64370,7 +64370,7 @@ var require_backend = __commonJS({
64370
64370
  }
64371
64371
  }
64372
64372
  }
64373
- function overrideValueAtPath(type, id, hookID, path10, value) {
64373
+ function overrideValueAtPath(type, id, hookID, path12, value) {
64374
64374
  var devtoolsInstance = idToDevToolsInstanceMap.get(id);
64375
64375
  if (devtoolsInstance === void 0) {
64376
64376
  console.warn('Could not find DevToolsInstance with id "'.concat(id, '"'));
@@ -64384,13 +64384,13 @@ var require_backend = __commonJS({
64384
64384
  var instance = fiber.stateNode;
64385
64385
  switch (type) {
64386
64386
  case "context":
64387
- path10 = path10.slice(1);
64387
+ path12 = path12.slice(1);
64388
64388
  switch (fiber.tag) {
64389
64389
  case ClassComponent:
64390
- if (path10.length === 0) {
64390
+ if (path12.length === 0) {
64391
64391
  instance.context = value;
64392
64392
  } else {
64393
- utils_setInObject(instance.context, path10, value);
64393
+ utils_setInObject(instance.context, path12, value);
64394
64394
  }
64395
64395
  instance.forceUpdate();
64396
64396
  break;
@@ -64400,18 +64400,18 @@ var require_backend = __commonJS({
64400
64400
  break;
64401
64401
  case "hooks":
64402
64402
  if (typeof overrideHookState === "function") {
64403
- overrideHookState(fiber, hookID, path10, value);
64403
+ overrideHookState(fiber, hookID, path12, value);
64404
64404
  }
64405
64405
  break;
64406
64406
  case "props":
64407
64407
  switch (fiber.tag) {
64408
64408
  case ClassComponent:
64409
- fiber.pendingProps = copyWithSet(instance.props, path10, value);
64409
+ fiber.pendingProps = copyWithSet(instance.props, path12, value);
64410
64410
  instance.forceUpdate();
64411
64411
  break;
64412
64412
  default:
64413
64413
  if (typeof overrideProps === "function") {
64414
- overrideProps(fiber, path10, value);
64414
+ overrideProps(fiber, path12, value);
64415
64415
  }
64416
64416
  break;
64417
64417
  }
@@ -64419,7 +64419,7 @@ var require_backend = __commonJS({
64419
64419
  case "state":
64420
64420
  switch (fiber.tag) {
64421
64421
  case ClassComponent:
64422
- utils_setInObject(instance.state, path10, value);
64422
+ utils_setInObject(instance.state, path12, value);
64423
64423
  instance.forceUpdate();
64424
64424
  break;
64425
64425
  }
@@ -64705,14 +64705,14 @@ var require_backend = __commonJS({
64705
64705
  var trackedPathMatchInstance = null;
64706
64706
  var trackedPathMatchDepth = -1;
64707
64707
  var mightBeOnTrackedPath = false;
64708
- function setTrackedPath(path10) {
64709
- if (path10 === null) {
64708
+ function setTrackedPath(path12) {
64709
+ if (path12 === null) {
64710
64710
  trackedPathMatchFiber = null;
64711
64711
  trackedPathMatchInstance = null;
64712
64712
  trackedPathMatchDepth = -1;
64713
64713
  mightBeOnTrackedPath = false;
64714
64714
  }
64715
- trackedPath = path10;
64715
+ trackedPath = path12;
64716
64716
  }
64717
64717
  function updateTrackedPathStateBeforeMount(fiber, fiberInstance) {
64718
64718
  if (trackedPath === null || !mightBeOnTrackedPath) {
@@ -65482,9 +65482,9 @@ var require_backend = __commonJS({
65482
65482
  }
65483
65483
  var currentlyInspectedElementID = null;
65484
65484
  var currentlyInspectedPaths = {};
65485
- function mergeInspectedPaths(path10) {
65485
+ function mergeInspectedPaths(path12) {
65486
65486
  var current = currentlyInspectedPaths;
65487
- path10.forEach(function(key) {
65487
+ path12.forEach(function(key) {
65488
65488
  if (!current[key]) {
65489
65489
  current[key] = {};
65490
65490
  }
@@ -65492,13 +65492,13 @@ var require_backend = __commonJS({
65492
65492
  });
65493
65493
  }
65494
65494
  function createIsPathAllowed(key) {
65495
- return function isPathAllowed(path10) {
65495
+ return function isPathAllowed(path12) {
65496
65496
  var current = currentlyInspectedPaths[key];
65497
65497
  if (!current) {
65498
65498
  return false;
65499
65499
  }
65500
- for (var i = 0; i < path10.length; i++) {
65501
- current = current[path10[i]];
65500
+ for (var i = 0; i < path12.length; i++) {
65501
+ current = current[path12[i]];
65502
65502
  if (!current) {
65503
65503
  return false;
65504
65504
  }
@@ -65548,24 +65548,24 @@ var require_backend = __commonJS({
65548
65548
  break;
65549
65549
  }
65550
65550
  }
65551
- function storeAsGlobal(id, path10, count) {
65551
+ function storeAsGlobal(id, path12, count) {
65552
65552
  var inspectedElement = inspectElementRaw(id);
65553
65553
  if (inspectedElement !== null) {
65554
- var value = utils_getInObject(inspectedElement, path10);
65554
+ var value = utils_getInObject(inspectedElement, path12);
65555
65555
  var key = "$reactTemp".concat(count);
65556
65556
  window[key] = value;
65557
65557
  console.log(key);
65558
65558
  console.log(value);
65559
65559
  }
65560
65560
  }
65561
- function getSerializedElementValueByPath(id, path10) {
65561
+ function getSerializedElementValueByPath(id, path12) {
65562
65562
  var inspectedElement = inspectElementRaw(id);
65563
65563
  if (inspectedElement !== null) {
65564
- var valueToCopy = utils_getInObject(inspectedElement, path10);
65564
+ var valueToCopy = utils_getInObject(inspectedElement, path12);
65565
65565
  return serializeToString(valueToCopy);
65566
65566
  }
65567
65567
  }
65568
- function inspectElement(requestID, id, path10, forceFullData) {
65568
+ function inspectElement(requestID, id, path12, forceFullData) {
65569
65569
  if (forceFullData || currentlyInspectedElementID !== id) {
65570
65570
  currentlyInspectedElementID = id;
65571
65571
  currentlyInspectedPaths = {};
@@ -65578,8 +65578,8 @@ var require_backend = __commonJS({
65578
65578
  type: "not-found"
65579
65579
  };
65580
65580
  }
65581
- if (path10 !== null) {
65582
- mergeInspectedPaths(path10);
65581
+ if (path12 !== null) {
65582
+ mergeInspectedPaths(path12);
65583
65583
  }
65584
65584
  updateSelectedElement(id);
65585
65585
  inspectedElement.context = cleanForBridge(inspectedElement.context, createIsPathAllowed("context"));
@@ -65782,10 +65782,10 @@ var require_backend = __commonJS({
65782
65782
  console.groupEnd();
65783
65783
  }
65784
65784
  }
65785
- function getElementAttributeByPath(id, path10) {
65785
+ function getElementAttributeByPath(id, path12) {
65786
65786
  var inspectedElement = inspectElementRaw(id);
65787
65787
  if (inspectedElement !== null) {
65788
- return utils_getInObject(inspectedElement, path10);
65788
+ return utils_getInObject(inspectedElement, path12);
65789
65789
  }
65790
65790
  return void 0;
65791
65791
  }
@@ -65802,14 +65802,14 @@ var require_backend = __commonJS({
65802
65802
  }
65803
65803
  return element.type;
65804
65804
  }
65805
- function deletePath(type, id, hookID, path10) {
65805
+ function deletePath(type, id, hookID, path12) {
65806
65806
  var internalInstance = idToInternalInstanceMap.get(id);
65807
65807
  if (internalInstance != null) {
65808
65808
  var publicInstance = internalInstance._instance;
65809
65809
  if (publicInstance != null) {
65810
65810
  switch (type) {
65811
65811
  case "context":
65812
- deletePathInObject(publicInstance.context, path10);
65812
+ deletePathInObject(publicInstance.context, path12);
65813
65813
  forceUpdate(publicInstance);
65814
65814
  break;
65815
65815
  case "hooks":
@@ -65817,12 +65817,12 @@ var require_backend = __commonJS({
65817
65817
  case "props":
65818
65818
  var element = internalInstance._currentElement;
65819
65819
  internalInstance._currentElement = legacy_renderer_objectSpread(legacy_renderer_objectSpread({}, element), {}, {
65820
- props: copyWithDelete(element.props, path10)
65820
+ props: copyWithDelete(element.props, path12)
65821
65821
  });
65822
65822
  forceUpdate(publicInstance);
65823
65823
  break;
65824
65824
  case "state":
65825
- deletePathInObject(publicInstance.state, path10);
65825
+ deletePathInObject(publicInstance.state, path12);
65826
65826
  forceUpdate(publicInstance);
65827
65827
  break;
65828
65828
  }
@@ -65856,14 +65856,14 @@ var require_backend = __commonJS({
65856
65856
  }
65857
65857
  }
65858
65858
  }
65859
- function overrideValueAtPath(type, id, hookID, path10, value) {
65859
+ function overrideValueAtPath(type, id, hookID, path12, value) {
65860
65860
  var internalInstance = idToInternalInstanceMap.get(id);
65861
65861
  if (internalInstance != null) {
65862
65862
  var publicInstance = internalInstance._instance;
65863
65863
  if (publicInstance != null) {
65864
65864
  switch (type) {
65865
65865
  case "context":
65866
- utils_setInObject(publicInstance.context, path10, value);
65866
+ utils_setInObject(publicInstance.context, path12, value);
65867
65867
  forceUpdate(publicInstance);
65868
65868
  break;
65869
65869
  case "hooks":
@@ -65871,12 +65871,12 @@ var require_backend = __commonJS({
65871
65871
  case "props":
65872
65872
  var element = internalInstance._currentElement;
65873
65873
  internalInstance._currentElement = legacy_renderer_objectSpread(legacy_renderer_objectSpread({}, element), {}, {
65874
- props: copyWithSet(element.props, path10, value)
65874
+ props: copyWithSet(element.props, path12, value)
65875
65875
  });
65876
65876
  forceUpdate(publicInstance);
65877
65877
  break;
65878
65878
  case "state":
65879
- utils_setInObject(publicInstance.state, path10, value);
65879
+ utils_setInObject(publicInstance.state, path12, value);
65880
65880
  forceUpdate(publicInstance);
65881
65881
  break;
65882
65882
  }
@@ -65921,7 +65921,7 @@ var require_backend = __commonJS({
65921
65921
  }
65922
65922
  function setTraceUpdatesEnabled(enabled) {
65923
65923
  }
65924
- function setTrackedPath(path10) {
65924
+ function setTrackedPath(path12) {
65925
65925
  }
65926
65926
  function getOwnersList(id) {
65927
65927
  return null;
@@ -67208,8 +67208,8 @@ var init_devtools = __esm({
67208
67208
 
67209
67209
  // 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
67210
  async function loadPackageJson() {
67211
- const fs12 = await import("node:fs");
67212
- const content = fs12.readFileSync(new URL("../package.json", import.meta.url), "utf8");
67211
+ const fs14 = await import("node:fs");
67212
+ const content = fs14.readFileSync(new URL("../package.json", import.meta.url), "utf8");
67213
67213
  return JSON.parse(content);
67214
67214
  }
67215
67215
  var import_react_reconciler, import_constants8, Scheduler, import_react, diff, cleanupYogaNode, currentUpdatePriority, currentRootNode, packageJson, reconciler_default;
@@ -70186,8 +70186,8 @@ var init_ErrorOverview = __esm({
70186
70186
  init_dist6();
70187
70187
  init_Box();
70188
70188
  init_Text();
70189
- cleanupPath = (path10) => {
70190
- return path10?.replace(`file://${cwd()}/`, "");
70189
+ cleanupPath = (path12) => {
70190
+ return path12?.replace(`file://${cwd()}/`, "");
70191
70191
  };
70192
70192
  stackUtils = new import_stack_utils.default({
70193
70193
  cwd: cwd(),
@@ -72737,7 +72737,183 @@ var init_docs = __esm({
72737
72737
  }
72738
72738
  });
72739
72739
 
72740
+ // apps/cli/src/services/agentcore-config.ts
72741
+ import * as fs11 from "node:fs";
72742
+ import * as path7 from "node:path";
72743
+ async function configureAgentCore(projectDir, variant) {
72744
+ const isLanggraph = variant === "agentcore-langgraph";
72745
+ const pattern = isLanggraph ? "langgraph-single-agent" : "strands-single-agent";
72746
+ const suffix = isLanggraph ? "-lg" : "-st";
72747
+ const examplePath = path7.join(projectDir, "config.yaml.example");
72748
+ const configPath = path7.join(projectDir, "config.yaml");
72749
+ if (!fs11.existsSync(examplePath)) {
72750
+ throw new Error(
72751
+ `config.yaml.example not found in the AgentCore template at "${projectDir}". The downloaded template may be incomplete. Please try again.`
72752
+ );
72753
+ }
72754
+ let content = fs11.readFileSync(examplePath, "utf-8");
72755
+ const patternRegex = /^(\s*pattern:\s*)\S+(.*)$/m;
72756
+ const stackRegex = /^(\s*stack_name_base:\s*)\S+(.*)$/m;
72757
+ if (!patternRegex.test(content) || !stackRegex.test(content)) {
72758
+ throw new Error(
72759
+ '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'
72760
+ );
72761
+ }
72762
+ content = content.replace(patternRegex, `$1${pattern}$2`);
72763
+ content = content.replace(
72764
+ stackRegex,
72765
+ `$1my-copilotkit-agentcore${suffix}$2`
72766
+ );
72767
+ fs11.writeFileSync(configPath, content, "utf-8");
72768
+ const removeAgent = isLanggraph ? "strands-single-agent" : "langgraph-single-agent";
72769
+ const removeScript = isLanggraph ? "deploy-strands.sh" : "deploy-langgraph.sh";
72770
+ const keepScript = isLanggraph ? "deploy-langgraph.sh" : "deploy-strands.sh";
72771
+ fs11.rmSync(path7.join(projectDir, "agents", removeAgent), {
72772
+ recursive: true,
72773
+ force: true
72774
+ });
72775
+ fs11.rmSync(path7.join(projectDir, removeScript), { force: true });
72776
+ fs11.rmSync(path7.join(projectDir, "infra-terraform"), {
72777
+ recursive: true,
72778
+ force: true
72779
+ });
72780
+ const keepScriptPath = path7.join(projectDir, keepScript);
72781
+ if (fs11.existsSync(keepScriptPath)) {
72782
+ fs11.renameSync(keepScriptPath, path7.join(projectDir, "deploy.sh"));
72783
+ }
72784
+ const deployShPath = path7.join(projectDir, "deploy.sh");
72785
+ if (fs11.existsSync(deployShPath)) {
72786
+ let deployContent = fs11.readFileSync(deployShPath, "utf-8");
72787
+ deployContent = deployContent.replace(/\(isolated from deploy-(?:langgraph|strands)\.sh\)\s*/g, "").replace(/# Using Terraform instead\?.*\n/g, "");
72788
+ fs11.writeFileSync(deployShPath, deployContent, "utf-8");
72789
+ }
72790
+ const configYamlPath = path7.join(projectDir, "config.yaml");
72791
+ if (fs11.existsSync(configYamlPath)) {
72792
+ let configContent = fs11.readFileSync(configYamlPath, "utf-8");
72793
+ configContent = configContent.replace(
72794
+ /# overwritten by deploy-langgraph\.sh \/ deploy-strands\.sh/g,
72795
+ "# set by the CLI \u2014 do not change"
72796
+ );
72797
+ fs11.writeFileSync(configYamlPath, configContent, "utf-8");
72798
+ }
72799
+ const agentShortName = isLanggraph ? "langgraph" : "strands";
72800
+ const otherShortName = isLanggraph ? "strands" : "langgraph";
72801
+ for (const relPath of ["docker/docker-compose.yml", "docker/up.sh"]) {
72802
+ const filePath = path7.join(projectDir, relPath);
72803
+ if (fs11.existsSync(filePath)) {
72804
+ let fileContent = fs11.readFileSync(filePath, "utf-8");
72805
+ fileContent = fileContent.replaceAll(
72806
+ `AGENT:-${otherShortName}`,
72807
+ `AGENT:-${agentShortName}`
72808
+ );
72809
+ fileContent = fileContent.replaceAll(
72810
+ `echo "${otherShortName}"`,
72811
+ `echo "${agentShortName}"`
72812
+ );
72813
+ fs11.writeFileSync(filePath, fileContent, "utf-8");
72814
+ }
72815
+ }
72816
+ const resolveEnvPath = path7.join(projectDir, "docker/resolve-env.py");
72817
+ if (fs11.existsSync(resolveEnvPath)) {
72818
+ let resolveContent = fs11.readFileSync(resolveEnvPath, "utf-8");
72819
+ resolveContent = resolveContent.replaceAll(
72820
+ `os.environ.get("AGENT", "${otherShortName}")`,
72821
+ `os.environ.get("AGENT", "${agentShortName}")`
72822
+ );
72823
+ fs11.writeFileSync(resolveEnvPath, resolveContent, "utf-8");
72824
+ }
72825
+ const frameworkLabel = isLanggraph ? "LangGraph" : "Strands";
72826
+ const stackSuffix = isLanggraph ? "lg" : "st";
72827
+ const agentFolder = isLanggraph ? "langgraph-single-agent" : "strands-single-agent";
72828
+ const readme = `# CopilotKit + AWS AgentCore (${frameworkLabel})
72829
+
72830
+ Chat UI with generative charts, shared-state todo canvas, and inline tool rendering \u2014 deployed on AWS Bedrock AgentCore.
72831
+
72832
+ ## Prerequisites
72833
+
72834
+ | Tool | Version |
72835
+ | ------- | ---------------------------- |
72836
+ | AWS CLI | configured (\`aws configure\`) |
72837
+ | Node.js | 18+ |
72838
+ | Python | 3.8+ |
72839
+ | Docker | running |
72840
+
72841
+ ## Deploy
72842
+
72843
+ 1. **Edit \`config.yaml\`** \u2014 set \`stack_name_base\` and \`admin_user_email\`
72844
+
72845
+ 2. **Deploy:**
72846
+
72847
+ \`\`\`bash
72848
+ ./deploy.sh # full deploy (infra + frontend)
72849
+ ./deploy.sh --skip-frontend # infra/agent only
72850
+ ./deploy.sh --skip-backend # frontend only
72851
+ \`\`\`
72852
+
72853
+ 3. **Open** the Amplify URL printed at the end. Sign in with your email.
72854
+
72855
+ ## Local Development
72856
+
72857
+ \`\`\`bash
72858
+ cd docker
72859
+ cp .env.example .env
72860
+ # Fill in AWS creds \u2014 STACK_NAME, MEMORY_ID, and aws-exports.json are auto-resolved
72861
+ ./up.sh --build
72862
+ \`\`\`
72863
+
72864
+ - **Frontend** \u2192 hot reloads on save
72865
+ - **Agent** \u2192 rebuild on changes: \`docker compose up --build agent\`
72866
+ - **Browser** \u2192 \`http://localhost:3000\`
72867
+
72868
+ The full chain runs locally: \`browser:3000 \u2192 bridge:3001 \u2192 agent:8080\`. AWS is only used for Memory and Gateway.
72869
+
72870
+ ## What's inside
72871
+
72872
+ | Piece | What it does |
72873
+ | ------------------------------ | ---------------------------------------------------------- |
72874
+ | \`frontend/\` | Vite + React with CopilotKit chat, charts, todo canvas |
72875
+ | \`agents/${agentFolder}/\` | ${frameworkLabel} agent with tools + shared todo state |
72876
+ | \`infra-cdk/\` | CDK: Cognito, AgentCore, CopilotKit Lambda, Amplify |
72877
+ | \`docker/\` | Local dev via Docker Compose |
72878
+
72879
+ ## Tear down
72880
+
72881
+ \`\`\`bash
72882
+ cd infra-cdk && npx cdk@latest destroy --all --output ../cdk.out-${stackSuffix}
72883
+ \`\`\`
72884
+
72885
+ ## Docs
72886
+
72887
+ - [CopilotKit](https://docs.copilotkit.ai)
72888
+ - [AWS Bedrock AgentCore](https://aws.amazon.com/bedrock/agentcore/)
72889
+ - [AgentCore + CopilotKit Guide](https://docs.copilotkit.ai/agentcore/quickstart)
72890
+ `;
72891
+ fs11.writeFileSync(path7.join(projectDir, "README.md"), readme, "utf-8");
72892
+ }
72893
+ var init_agentcore_config = __esm({
72894
+ "apps/cli/src/services/agentcore-config.ts"() {
72895
+ "use strict";
72896
+ }
72897
+ });
72898
+
72899
+ // apps/cli/src/services/showcase-config.ts
72900
+ import * as fs12 from "node:fs";
72901
+ import * as path8 from "node:path";
72902
+ async function writeShowcaseConfig(projectDir, showcase) {
72903
+ const configPath = path8.join(projectDir, "showcase.json");
72904
+ fs12.writeFileSync(configPath, `${JSON.stringify({ showcase }, null, 2)}
72905
+ `);
72906
+ }
72907
+ var init_showcase_config = __esm({
72908
+ "apps/cli/src/services/showcase-config.ts"() {
72909
+ "use strict";
72910
+ }
72911
+ });
72912
+
72740
72913
  // apps/cli/src/types.ts
72914
+ function resolveFrameworkAlias(value) {
72915
+ return FRAMEWORK_ALIASES[value] ?? value;
72916
+ }
72741
72917
  function isAgentFramework(value) {
72742
72918
  return AGENT_FRAMEWORKS.includes(value);
72743
72919
  }
@@ -72751,6 +72927,7 @@ function standardTemplate(framework, template, successEmoji) {
72751
72927
  "llamaindex",
72752
72928
  "agno",
72753
72929
  "pydantic-ai",
72930
+ "ag2",
72754
72931
  "adk",
72755
72932
  "aws-strands-py",
72756
72933
  "microsoft-agent-framework-py"
@@ -72783,10 +72960,12 @@ function resolveInitTemplate(options) {
72783
72960
  }
72784
72961
  return FRAMEWORK_TEMPLATES[options.framework];
72785
72962
  }
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;
72963
+ 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
72964
  var init_types = __esm({
72788
72965
  "apps/cli/src/types.ts"() {
72789
72966
  "use strict";
72967
+ init_agentcore_config();
72968
+ init_showcase_config();
72790
72969
  AGENT_FRAMEWORKS = [
72791
72970
  "langgraph-py",
72792
72971
  "langgraph-js",
@@ -72795,12 +72974,21 @@ var init_types = __esm({
72795
72974
  "pydantic-ai",
72796
72975
  "llamaindex",
72797
72976
  "agno",
72977
+ "ag2",
72798
72978
  "adk",
72799
72979
  "aws-strands-py",
72800
72980
  "a2a",
72801
72981
  "microsoft-agent-framework-dotnet",
72802
- "microsoft-agent-framework-py"
72982
+ "microsoft-agent-framework-py",
72983
+ "mcp-apps",
72984
+ "agentcore-langgraph",
72985
+ "agentcore-strands",
72986
+ "a2ui",
72987
+ "opengenui"
72803
72988
  ];
72989
+ FRAMEWORK_ALIASES = {
72990
+ "crew-ai": "flows"
72991
+ };
72804
72992
  FRAMEWORK_EMOJI = {
72805
72993
  "langgraph-py": "\u{1F99C}",
72806
72994
  "langgraph-js": "\u{1F99C}",
@@ -72809,11 +72997,17 @@ var init_types = __esm({
72809
72997
  "pydantic-ai": "\u{1F53C}",
72810
72998
  llamaindex: "\u{1F999}",
72811
72999
  agno: "\u{1F170}\uFE0F",
73000
+ ag2: "\u{1F916}",
72812
73001
  adk: "\u{1F916}",
72813
73002
  a2a: "\u{1F916}",
72814
73003
  "aws-strands-py": "\u{1F9EC}",
72815
73004
  "microsoft-agent-framework-dotnet": "\u{1F7E6}",
72816
- "microsoft-agent-framework-py": "\u{1F7E6}"
73005
+ "microsoft-agent-framework-py": "\u{1F7E6}",
73006
+ "mcp-apps": "\u264D",
73007
+ "agentcore-langgraph": "\u2601\uFE0F",
73008
+ "agentcore-strands": "\u2601\uFE0F",
73009
+ a2ui: "\u{1F3A8}",
73010
+ opengenui: "\u{1F5BC}\uFE0F"
72817
73011
  };
72818
73012
  FRAMEWORK_CHOICES = [
72819
73013
  {
@@ -72842,26 +73036,53 @@ var init_types = __esm({
72842
73036
  label: `${FRAMEWORK_EMOJI["microsoft-agent-framework-py"]} Microsoft Agent Framework (Python)`,
72843
73037
  value: "microsoft-agent-framework-py"
72844
73038
  },
72845
- // { label: "MCP Apps", value: "mcp-apps" },
73039
+ { label: `${FRAMEWORK_EMOJI["mcp-apps"]} MCP Apps`, value: "mcp-apps" },
72846
73040
  { label: `${FRAMEWORK_EMOJI.flows} CrewAI Flows`, value: "flows" },
72847
73041
  { 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" },
73042
+ { label: `${FRAMEWORK_EMOJI.agno} Agno`, value: "agno" },
73043
+ { label: `${FRAMEWORK_EMOJI.ag2} AG2`, value: "ag2" },
73044
+ { label: `${FRAMEWORK_EMOJI.a2a} A2A`, value: "a2a" },
73045
+ {
73046
+ label: `${FRAMEWORK_EMOJI["agentcore-langgraph"]} AgentCore + LangGraph`,
73047
+ value: "agentcore-langgraph"
73048
+ },
73049
+ {
73050
+ label: `${FRAMEWORK_EMOJI["agentcore-strands"]} AgentCore + Strands`,
73051
+ value: "agentcore-strands"
73052
+ },
73053
+ { label: `${FRAMEWORK_EMOJI.a2ui} A2UI`, value: "a2ui" },
73054
+ {
73055
+ label: `${FRAMEWORK_EMOJI.opengenui} Open Generative UI`,
73056
+ value: "opengenui"
73057
+ }
72851
73058
  ];
73059
+ AG2_TEMPLATE_SOURCE = {
73060
+ owner: "ag2ai",
73061
+ repo: "ag2-copilotkit-starter",
73062
+ branch: "main",
73063
+ path: ""
73064
+ };
73065
+ COPILOTKIT_LANGGRAPH_PYTHON_URL = "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/langgraph-python";
73066
+ COPILOTKIT_AGENTCORE_URL = "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/agentcore";
72852
73067
  TEMPLATE_REPOS = {
72853
- "langgraph-py": "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/langgraph-python",
73068
+ "langgraph-py": COPILOTKIT_LANGGRAPH_PYTHON_URL,
72854
73069
  "langgraph-js": "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/langgraph-js",
72855
73070
  mastra: "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/mastra",
72856
73071
  flows: "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/crewai-flows",
72857
73072
  llamaindex: "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/llamaindex",
72858
73073
  agno: "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/agno",
72859
73074
  "pydantic-ai": "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/pydantic-ai",
73075
+ ag2: AG2_TEMPLATE_SOURCE,
72860
73076
  adk: "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/adk",
72861
73077
  "aws-strands-py": "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/strands-python",
72862
73078
  a2a: "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/a2a-middleware",
72863
73079
  "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"
73080
+ "microsoft-agent-framework-py": "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/ms-agent-framework-python",
73081
+ "mcp-apps": "https://github.com/CopilotKit/CopilotKit/tree/main/examples/integrations/mcp-apps",
73082
+ "agentcore-langgraph": COPILOTKIT_AGENTCORE_URL,
73083
+ "agentcore-strands": COPILOTKIT_AGENTCORE_URL,
73084
+ a2ui: COPILOTKIT_LANGGRAPH_PYTHON_URL,
73085
+ opengenui: COPILOTKIT_LANGGRAPH_PYTHON_URL
72865
73086
  };
72866
73087
  UV_PREREQUISITE = {
72867
73088
  command: "uv",
@@ -72978,7 +73199,49 @@ var init_types = __esm({
72978
73199
  "microsoft-agent-framework-py",
72979
73200
  TEMPLATE_REPOS["microsoft-agent-framework-py"],
72980
73201
  `\u{1FA81}\u{1F91D}${FRAMEWORK_EMOJI["microsoft-agent-framework-py"]}`
72981
- )
73202
+ ),
73203
+ ag2: standardTemplate(
73204
+ "ag2",
73205
+ TEMPLATE_REPOS.ag2,
73206
+ `\u{1FA81}\u{1F91D}${FRAMEWORK_EMOJI.ag2}`
73207
+ ),
73208
+ "mcp-apps": standardTemplate(
73209
+ "mcp-apps",
73210
+ TEMPLATE_REPOS["mcp-apps"],
73211
+ `\u{1FA81}\u{1F91D}${FRAMEWORK_EMOJI["mcp-apps"]}`
73212
+ ),
73213
+ "agentcore-langgraph": {
73214
+ ...standardTemplate(
73215
+ "agentcore-langgraph",
73216
+ TEMPLATE_REPOS["agentcore-langgraph"],
73217
+ `\u{1FA81}\u{1F91D}${FRAMEWORK_EMOJI["agentcore-langgraph"]}`
73218
+ ),
73219
+ postScaffold: (projectDir) => configureAgentCore(projectDir, "agentcore-langgraph")
73220
+ },
73221
+ "agentcore-strands": {
73222
+ ...standardTemplate(
73223
+ "agentcore-strands",
73224
+ TEMPLATE_REPOS["agentcore-strands"],
73225
+ `\u{1FA81}\u{1F91D}${FRAMEWORK_EMOJI["agentcore-strands"]}`
73226
+ ),
73227
+ postScaffold: (projectDir) => configureAgentCore(projectDir, "agentcore-strands")
73228
+ },
73229
+ a2ui: {
73230
+ ...standardTemplate(
73231
+ "a2ui",
73232
+ TEMPLATE_REPOS.a2ui,
73233
+ `\u{1FA81}\u{1F91D}${FRAMEWORK_EMOJI.a2ui}`
73234
+ ),
73235
+ postScaffold: (projectDir) => writeShowcaseConfig(projectDir, "a2ui")
73236
+ },
73237
+ opengenui: {
73238
+ ...standardTemplate(
73239
+ "opengenui",
73240
+ TEMPLATE_REPOS.opengenui,
73241
+ `\u{1FA81}\u{1F91D}${FRAMEWORK_EMOJI.opengenui}`
73242
+ ),
73243
+ postScaffold: (projectDir) => writeShowcaseConfig(projectDir, "opengenui")
73244
+ }
72982
73245
  };
72983
73246
  THREADS_TEMPLATE = {
72984
73247
  id: "threads",
@@ -73015,14 +73278,14 @@ var init_feature_flags = __esm({
73015
73278
  });
73016
73279
 
73017
73280
  // apps/cli/src/services/project-scaffold.ts
73018
- import * as fs11 from "node:fs";
73019
- import * as path7 from "node:path";
73281
+ import * as fs13 from "node:fs";
73282
+ import * as path9 from "node:path";
73020
73283
  import * as os6 from "node:os";
73021
73284
  import { execSync } from "node:child_process";
73022
73285
  async function scaffoldProject(options) {
73023
73286
  const { projectDir, template } = options;
73024
- if (fs11.existsSync(projectDir)) {
73025
- const entries = fs11.readdirSync(projectDir);
73287
+ if (fs13.existsSync(projectDir)) {
73288
+ const entries = fs13.readdirSync(projectDir);
73026
73289
  if (entries.length > 0) {
73027
73290
  throw new Error(`${projectDir} already exists and is not empty`);
73028
73291
  }
@@ -73037,52 +73300,58 @@ async function scaffoldProject(options) {
73037
73300
  }
73038
73301
  async function cloneTemplate(source, destinationPath) {
73039
73302
  const { owner, repo, branch, subdirectoryPath } = source;
73040
- const tempDir = fs11.mkdtempSync(path7.join(os6.tmpdir(), "copilotkit-clone-"));
73303
+ const tempDir = fs13.mkdtempSync(path9.join(os6.tmpdir(), "copilotkit-clone-"));
73304
+ const isWholeRepo = subdirectoryPath === "";
73041
73305
  try {
73042
73306
  execSync("git init", { cwd: tempDir, stdio: "pipe" });
73043
73307
  execSync(`git remote add origin https://github.com/${owner}/${repo}.git`, {
73044
73308
  cwd: tempDir,
73045
73309
  stdio: "pipe"
73046
73310
  });
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
- );
73311
+ if (!isWholeRepo) {
73312
+ execSync("git config core.sparseCheckout true", {
73313
+ cwd: tempDir,
73314
+ stdio: "pipe"
73315
+ });
73316
+ fs13.writeFileSync(
73317
+ path9.join(tempDir, ".git/info/sparse-checkout"),
73318
+ subdirectoryPath
73319
+ );
73320
+ }
73055
73321
  execSync(`git pull origin ${branch} --depth=1`, {
73056
73322
  cwd: tempDir,
73057
73323
  stdio: "pipe"
73058
73324
  });
73059
- const sourcePath = path7.join(tempDir, subdirectoryPath);
73060
- if (!fs11.existsSync(sourcePath)) {
73325
+ const sourcePath = isWholeRepo ? tempDir : path9.join(tempDir, subdirectoryPath);
73326
+ if (!isWholeRepo && !fs13.existsSync(sourcePath)) {
73061
73327
  throw new Error(
73062
73328
  `Template directory '${subdirectoryPath}' not found in the repository.`
73063
73329
  );
73064
73330
  }
73065
- fs11.mkdirSync(destinationPath, { recursive: true });
73066
- await copyDirectory(sourcePath, destinationPath);
73331
+ fs13.mkdirSync(destinationPath, { recursive: true });
73332
+ await copyDirectory(sourcePath, destinationPath, isWholeRepo);
73067
73333
  } finally {
73068
73334
  try {
73069
- fs11.rmSync(tempDir, { recursive: true, force: true });
73335
+ fs13.rmSync(tempDir, { recursive: true, force: true });
73070
73336
  } catch {
73071
73337
  }
73072
73338
  }
73073
73339
  }
73074
- async function copyDirectory(source, destination) {
73075
- if (!fs11.existsSync(destination)) {
73076
- fs11.mkdirSync(destination, { recursive: true });
73340
+ async function copyDirectory(source, destination, excludeGit = false) {
73341
+ if (!fs13.existsSync(destination)) {
73342
+ fs13.mkdirSync(destination, { recursive: true });
73077
73343
  }
73078
- const entries = fs11.readdirSync(source, { withFileTypes: true });
73344
+ const entries = fs13.readdirSync(source, { withFileTypes: true });
73079
73345
  for (const entry of entries) {
73080
- const srcPath = path7.join(source, entry.name);
73081
- const destPath = path7.join(destination, entry.name);
73346
+ if (excludeGit && entry.name === ".git") {
73347
+ continue;
73348
+ }
73349
+ const srcPath = path9.join(source, entry.name);
73350
+ const destPath = path9.join(destination, entry.name);
73082
73351
  if (entry.isDirectory()) {
73083
- await copyDirectory(srcPath, destPath);
73352
+ await copyDirectory(srcPath, destPath, excludeGit);
73084
73353
  } else {
73085
- fs11.copyFileSync(srcPath, destPath);
73354
+ fs13.copyFileSync(srcPath, destPath);
73086
73355
  }
73087
73356
  }
73088
73357
  }
@@ -73106,22 +73375,22 @@ function parseGitHubUrl(githubUrl) {
73106
73375
  return { owner, repo, branch, subdirectoryPath };
73107
73376
  }
73108
73377
  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);
73378
+ const envPath = path9.join(projectDir, ".env");
73379
+ const envExamplePath = path9.join(projectDir, ".env.example");
73380
+ if (fs13.existsSync(envExamplePath) && !fs13.existsSync(envPath)) {
73381
+ fs13.copyFileSync(envExamplePath, envPath);
73113
73382
  return true;
73114
73383
  }
73115
73384
  return false;
73116
73385
  }
73117
73386
  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);
73387
+ const envPath = path9.join(projectDir, ".env");
73388
+ const envExamplePath = path9.join(projectDir, ".env.example");
73389
+ if (fs13.existsSync(envExamplePath) && !fs13.existsSync(envPath)) {
73390
+ fs13.copyFileSync(envExamplePath, envPath);
73122
73391
  }
73123
- if (fs11.existsSync(envPath)) {
73124
- let content = fs11.readFileSync(envPath, "utf8");
73392
+ if (fs13.existsSync(envPath)) {
73393
+ let content = fs13.readFileSync(envPath, "utf8");
73125
73394
  const licenseLine = `COPILOTKIT_LICENSE_TOKEN=${licenseKey}`;
73126
73395
  if (/^COPILOTKIT_LICENSE_TOKEN=.*$/m.test(content)) {
73127
73396
  content = content.replace(/^COPILOTKIT_LICENSE_TOKEN=.*$/m, licenseLine);
@@ -73130,9 +73399,9 @@ function writeEnvLicenseKey(projectDir, licenseKey) {
73130
73399
  content = `${content}${separator}${licenseLine}
73131
73400
  `;
73132
73401
  }
73133
- fs11.writeFileSync(envPath, content);
73402
+ fs13.writeFileSync(envPath, content);
73134
73403
  } else {
73135
- fs11.writeFileSync(envPath, `COPILOTKIT_LICENSE_TOKEN=${licenseKey}
73404
+ fs13.writeFileSync(envPath, `COPILOTKIT_LICENSE_TOKEN=${licenseKey}
73136
73405
  `);
73137
73406
  }
73138
73407
  }
@@ -74042,7 +74311,7 @@ __export(init_exports, {
74042
74311
  scaffoldInitProject: () => scaffoldInitProject
74043
74312
  });
74044
74313
  import { accessSync, constants as constants2 } from "node:fs";
74045
- import * as path8 from "node:path";
74314
+ import * as path10 from "node:path";
74046
74315
  import { execSync as execSync2 } from "node:child_process";
74047
74316
  function writeLicenseKey(projectDir, licenseKey) {
74048
74317
  writeEnvLicenseKey(projectDir, licenseKey);
@@ -74056,12 +74325,12 @@ async function initGit(projectDir) {
74056
74325
  function commandExists(command, environment = process.env, platform3 = process.platform) {
74057
74326
  const pathValue = environment.PATH ?? "";
74058
74327
  const pathExtensions = platform3 === "win32" ? (environment.PATHEXT ?? ".COM;.EXE;.BAT;.CMD").split(";").filter(Boolean) : [""];
74059
- for (const searchPath of pathValue.split(path8.delimiter)) {
74328
+ for (const searchPath of pathValue.split(path10.delimiter)) {
74060
74329
  if (!searchPath) {
74061
74330
  continue;
74062
74331
  }
74063
74332
  for (const extension of pathExtensions) {
74064
- const candidatePath = path8.join(searchPath, `${command}${extension}`);
74333
+ const candidatePath = path10.join(searchPath, `${command}${extension}`);
74065
74334
  try {
74066
74335
  accessSync(candidatePath, constants2.X_OK);
74067
74336
  return true;
@@ -74189,6 +74458,9 @@ async function scaffoldInitProject(options, dependencies = defaultInitScaffoldDe
74189
74458
  projectDir,
74190
74459
  template: templateDefinition.template
74191
74460
  });
74461
+ if (templateDefinition.postScaffold) {
74462
+ await templateDefinition.postScaffold(projectDir);
74463
+ }
74192
74464
  onPhaseChange?.("git");
74193
74465
  await dependencies.initGit(projectDir);
74194
74466
  const envCreatedFromExample = dependencies.copyEnvExample(projectDir);
@@ -74367,9 +74639,10 @@ function InitApp({
74367
74639
  async function runInit(flags) {
74368
74640
  const initialName = flags.name?.trim() ?? null;
74369
74641
  const initialIntelligence = flags.intelligence ?? null;
74370
- const frameworkFlag = flags.framework?.trim() ?? null;
74642
+ const frameworkFlagRaw = flags.framework?.trim() ?? null;
74643
+ const frameworkFlag = frameworkFlagRaw === null ? null : resolveFrameworkAlias(frameworkFlagRaw);
74371
74644
  if (frameworkFlag !== null && !isAgentFramework(frameworkFlag)) {
74372
- throw new Error(formatInvalidFrameworkError(frameworkFlag));
74645
+ throw new Error(formatInvalidFrameworkError(frameworkFlagRaw ?? ""));
74373
74646
  }
74374
74647
  const initialFramework = frameworkFlag;
74375
74648
  const { waitUntilExit } = render_default(
@@ -74414,7 +74687,7 @@ var init_init = __esm({
74414
74687
  copyEnvExample,
74415
74688
  writeLicenseKey,
74416
74689
  commandExists,
74417
- resolveProjectDir: (projectName) => path8.resolve(process.cwd(), projectName)
74690
+ resolveProjectDir: (projectName) => path10.resolve(process.cwd(), projectName)
74418
74691
  };
74419
74692
  }
74420
74693
  });
@@ -74895,10 +75168,10 @@ function mergeDefs(...defs) {
74895
75168
  function cloneDef(schema) {
74896
75169
  return mergeDefs(schema._zod.def);
74897
75170
  }
74898
- function getElementAtPath(obj, path10) {
74899
- if (!path10)
75171
+ function getElementAtPath(obj, path12) {
75172
+ if (!path12)
74900
75173
  return obj;
74901
- return path10.reduce((acc, key) => acc?.[key], obj);
75174
+ return path12.reduce((acc, key) => acc?.[key], obj);
74902
75175
  }
74903
75176
  function promiseAllObject(promisesObj) {
74904
75177
  const keys = Object.keys(promisesObj);
@@ -75210,11 +75483,11 @@ function aborted(x, startIndex = 0) {
75210
75483
  }
75211
75484
  return false;
75212
75485
  }
75213
- function prefixIssues(path10, issues) {
75486
+ function prefixIssues(path12, issues) {
75214
75487
  return issues.map((iss) => {
75215
75488
  var _a2;
75216
75489
  (_a2 = iss).path ?? (_a2.path = []);
75217
- iss.path.unshift(path10);
75490
+ iss.path.unshift(path12);
75218
75491
  return iss;
75219
75492
  });
75220
75493
  }
@@ -75457,7 +75730,7 @@ function formatError(error48, mapper = (issue2) => issue2.message) {
75457
75730
  }
75458
75731
  function treeifyError(error48, mapper = (issue2) => issue2.message) {
75459
75732
  const result = { errors: [] };
75460
- const processError = (error49, path10 = []) => {
75733
+ const processError = (error49, path12 = []) => {
75461
75734
  var _a2, _b;
75462
75735
  for (const issue2 of error49.issues) {
75463
75736
  if (issue2.code === "invalid_union" && issue2.errors.length) {
@@ -75467,7 +75740,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
75467
75740
  } else if (issue2.code === "invalid_element") {
75468
75741
  processError({ issues: issue2.issues }, issue2.path);
75469
75742
  } else {
75470
- const fullpath = [...path10, ...issue2.path];
75743
+ const fullpath = [...path12, ...issue2.path];
75471
75744
  if (fullpath.length === 0) {
75472
75745
  result.errors.push(mapper(issue2));
75473
75746
  continue;
@@ -75499,8 +75772,8 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
75499
75772
  }
75500
75773
  function toDotPath(_path) {
75501
75774
  const segs = [];
75502
- const path10 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
75503
- for (const seg of path10) {
75775
+ const path12 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
75776
+ for (const seg of path12) {
75504
75777
  if (typeof seg === "number")
75505
75778
  segs.push(`[${seg}]`);
75506
75779
  else if (typeof seg === "symbol")
@@ -88263,13 +88536,13 @@ function resolveRef(ref, ctx) {
88263
88536
  if (!ref.startsWith("#")) {
88264
88537
  throw new Error("External $ref is not supported, only local refs (#/...) are allowed");
88265
88538
  }
88266
- const path10 = ref.slice(1).split("/").filter(Boolean);
88267
- if (path10.length === 0) {
88539
+ const path12 = ref.slice(1).split("/").filter(Boolean);
88540
+ if (path12.length === 0) {
88268
88541
  return ctx.rootSchema;
88269
88542
  }
88270
88543
  const defsKey = ctx.version === "draft-2020-12" ? "$defs" : "definitions";
88271
- if (path10[0] === defsKey) {
88272
- const key = path10[1];
88544
+ if (path12[0] === defsKey) {
88545
+ const key = path12[1];
88273
88546
  if (!key || !ctx.defs[key]) {
88274
88547
  throw new Error(`Reference not found: ${ref}`);
88275
88548
  }
@@ -89215,7 +89488,7 @@ var init_kite = __esm({
89215
89488
  // apps/cli/src/index.ts
89216
89489
  import { parseArgs } from "node:util";
89217
89490
  import { realpathSync } from "node:fs";
89218
- import path9 from "node:path";
89491
+ import path11 from "node:path";
89219
89492
  import { fileURLToPath as fileURLToPath2 } from "node:url";
89220
89493
  var HELP_FLAGS = /* @__PURE__ */ new Set(["--help", "-h"]);
89221
89494
  var HELP_TEXT_BY_TOPIC = {
@@ -89636,7 +89909,7 @@ ${HELP_TEXT_BY_TOPIC.root}`);
89636
89909
  process.exit(1);
89637
89910
  }
89638
89911
  function resolveRealPath(candidatePath) {
89639
- const absolutePath = path9.resolve(candidatePath);
89912
+ const absolutePath = path11.resolve(candidatePath);
89640
89913
  try {
89641
89914
  return realpathSync.native(absolutePath);
89642
89915
  } catch {