poe-code 14.0.61 → 14.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/index.js +218 -70
  2. package/dist/index.js.map +4 -4
  3. package/dist/metafile.json +1 -1
  4. package/package.json +1 -1
  5. package/packages/safe-js/dist/chunks/{chunk-VAYQP2VZ.js → chunk-F7TJSPDZ.js} +7 -3
  6. package/packages/safe-js/dist/chunks/chunk-F7TJSPDZ.js.map +7 -0
  7. package/packages/safe-js/dist/chunks/{chunk-ZTGKRKQH.js → chunk-VKGWGZBH.js} +181 -66
  8. package/packages/safe-js/dist/chunks/chunk-VKGWGZBH.js.map +7 -0
  9. package/packages/safe-js/dist/cli.js +2 -2
  10. package/packages/safe-js/dist/core.js +1 -1
  11. package/packages/safe-js/dist/index.js +2 -2
  12. package/packages/safe-js/dist/interp/async.js +3 -0
  13. package/packages/safe-js/dist/interp/function-string.d.ts +2 -0
  14. package/packages/safe-js/dist/interp/function-string.js +21 -0
  15. package/packages/safe-js/dist/interp/globals/misc.js +11 -12
  16. package/packages/safe-js/dist/interp/globals/numeric-parsers.d.ts +5 -0
  17. package/packages/safe-js/dist/interp/globals/numeric-parsers.js +47 -0
  18. package/packages/safe-js/dist/interp/globals/object-array.js +2 -10
  19. package/packages/safe-js/dist/interp/interpreter.js +1 -0
  20. package/packages/safe-js/dist/interp/methods/function.d.ts +2 -0
  21. package/packages/safe-js/dist/interp/methods/function.js +10 -1
  22. package/packages/safe-js/dist/interp/resources.d.ts +1 -0
  23. package/packages/safe-js/dist/interp/string-coercion.js +3 -0
  24. package/packages/safe-js/dist/interp/values.d.ts +3 -0
  25. package/packages/safe-js/dist/interp/values.js +3 -0
  26. package/packages/safe-js/dist/migrate.js +1 -1
  27. package/packages/safe-js/dist/parse/function-source.d.ts +7 -0
  28. package/packages/safe-js/dist/parse/function-source.js +1 -0
  29. package/packages/safe-js/dist/parse/hash.d.ts +2 -2
  30. package/packages/safe-js/dist/parse/hash.js +23 -9
  31. package/packages/safe-js/dist/parse/parser.js +36 -23
  32. package/packages/safe-js/dist/restore.js +2 -1
  33. package/packages/safe-js/dist/run.js +16 -5
  34. package/packages/safe-js/dist/snapshot/dump-format.d.ts +1 -1
  35. package/packages/safe-js/dist/snapshot/dump-format.js +1 -1
  36. package/packages/safe-js/dist/snapshot/migration.js +2 -2
  37. package/packages/safe-js/dist/snapshot/restore.js +2 -0
  38. package/packages/safe-js/dist/chunks/chunk-VAYQP2VZ.js.map +0 -7
  39. package/packages/safe-js/dist/chunks/chunk-ZTGKRKQH.js.map +0 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-code",
3
- "version": "14.0.61",
3
+ "version": "14.0.62",
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-ZTGKRKQH.js";
30
+ } from "./chunk-VKGWGZBH.js";
31
31
  import {
32
32
  createFileSystem,
33
33
  createNodeFileSystemAdapterRegistry,
@@ -47,7 +47,11 @@ function inspectSnapshotMigration(snapshot, options) {
47
47
  validateSnapshotData(snapshot);
48
48
  validateDumpEnvelope(snapshot);
49
49
  validateMigrationSemantics(snapshot.executionSemantics);
50
- const sourceHash = hashSource(options.source);
50
+ const sourceHash = hashSource(
51
+ options.source,
52
+ void 0,
53
+ snapshot.executionSemantics === EXECUTION_SEMANTICS
54
+ );
51
55
  if (snapshot.sourceHash !== sourceHash)
52
56
  throw new TypeError(
53
57
  `Migration requires the original executable source (checkpoint hash ${snapshot.sourceHash}, supplied ${sourceHash}). Preserve the checkpoint; do not replace its hash.`
@@ -8245,4 +8249,4 @@ export {
8245
8249
  parseMcpConfig,
8246
8250
  makeMcpModule
8247
8251
  };
8248
- //# sourceMappingURL=chunk-VAYQP2VZ.js.map
8252
+ //# sourceMappingURL=chunk-F7TJSPDZ.js.map