poe-code 11.0.29 → 11.0.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-code",
3
- "version": "11.0.29",
3
+ "version": "11.0.31",
4
4
  "description": "CLI tool to configure Poe API for developer workflows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -27,7 +27,7 @@ import {
27
27
  validateMigrationSemantics,
28
28
  validateSnapshotData,
29
29
  validateSnapshotMigration
30
- } from "./chunk-HC3QSP5N.js";
30
+ } from "./chunk-NPXVDTLX.js";
31
31
 
32
32
  // packages/safejs/src/migrate.ts
33
33
  import { createHash } from "node:crypto";
@@ -8055,4 +8055,4 @@ export {
8055
8055
  parseMcpConfig,
8056
8056
  makeMcpModule
8057
8057
  };
8058
- //# sourceMappingURL=chunk-DB2DNWCX.js.map
8058
+ //# sourceMappingURL=chunk-5IU6NPGM.js.map
@@ -21108,17 +21108,38 @@ function stableStringify(value) {
21108
21108
  return JSON.stringify(normalize(value, seen));
21109
21109
  }
21110
21110
  function normalize(value, seen) {
21111
- if (value === void 0) return { $type: "undefined" };
21111
+ if (typeof value === "function") return void 0;
21112
+ if (typeof value === "bigint") throw new TypeError("Do not know how to serialize a BigInt");
21113
+ if (value === void 0) return Object.assign(/* @__PURE__ */ Object.create(null), { $type: "undefined" });
21112
21114
  if (typeof value === "number" && !Number.isFinite(value))
21113
- return { $type: "number", value: String(value) };
21115
+ return Object.assign(/* @__PURE__ */ Object.create(null), { $type: "number", value: String(value) });
21114
21116
  if (value === null || typeof value !== "object") return value;
21115
21117
  if (seen.has(value)) throw new TypeError("Host call arguments cannot contain cycles.");
21116
21118
  seen.add(value);
21117
21119
  try {
21118
- if (Array.isArray(value)) return value.map((entry) => normalize(entry, seen));
21119
- return Object.fromEntries(
21120
- Object.keys(value).sort().map((key) => [key, normalize(value[key], seen)])
21121
- );
21120
+ if (Array.isArray(value)) {
21121
+ const normalized2 = new Array(value.length);
21122
+ Object.setPrototypeOf(normalized2, null);
21123
+ for (const [key, descriptor] of Object.entries(Object.getOwnPropertyDescriptors(value))) {
21124
+ if (!isArrayIndexKey(key)) continue;
21125
+ if (!("value" in descriptor)) {
21126
+ throw new TypeError("Host call arguments cannot contain accessor properties.");
21127
+ }
21128
+ defineOwnDataProperty(normalized2, key, normalize(descriptor.value, seen));
21129
+ }
21130
+ return normalized2;
21131
+ }
21132
+ const normalized = /* @__PURE__ */ Object.create(null);
21133
+ const descriptors = Object.getOwnPropertyDescriptors(value);
21134
+ for (const key of Object.keys(descriptors).sort()) {
21135
+ const descriptor = descriptors[key];
21136
+ if (!descriptor.enumerable) continue;
21137
+ if (!("value" in descriptor)) {
21138
+ throw new TypeError("Host call arguments cannot contain accessor properties.");
21139
+ }
21140
+ defineOwnDataProperty(normalized, key, normalize(descriptor.value, seen));
21141
+ }
21142
+ return normalized;
21122
21143
  } finally {
21123
21144
  seen.delete(value);
21124
21145
  }
@@ -29231,4 +29252,4 @@ export {
29231
29252
  FileSnapshotBackend,
29232
29253
  run
29233
29254
  };
29234
- //# sourceMappingURL=chunk-HC3QSP5N.js.map
29255
+ //# sourceMappingURL=chunk-NPXVDTLX.js.map