poe-code 12.0.7 → 12.0.9

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 (299) hide show
  1. package/README.md +44 -10
  2. package/dist/cli/commands/harness.js +1 -1
  3. package/dist/cli/commands/harness.js.map +1 -1
  4. package/dist/index.js +292 -263
  5. package/dist/index.js.map +3 -3
  6. package/dist/metafile.json +1 -1
  7. package/package.json +41 -16
  8. package/packages/agent-harness/dist/loader/extract-schema.js +1 -1
  9. package/packages/agent-harness/dist/loader/run.d.ts +1 -1
  10. package/packages/agent-harness/dist/loader/run.js +1 -1
  11. package/packages/package-lint/dist/bundle-policy.d.ts +13 -13
  12. package/packages/package-lint/dist/bundle-policy.js +13 -10
  13. package/packages/{safejs/dist/chunks/chunk-NDHGDM46.js → safe-js/dist/chunks/chunk-4D75HUZZ.js} +107 -104
  14. package/packages/{safejs/dist/chunks/chunk-NDHGDM46.js.map → safe-js/dist/chunks/chunk-4D75HUZZ.js.map} +2 -2
  15. package/packages/{safejs/dist/chunks/chunk-NTYX57KK.js → safe-js/dist/chunks/chunk-ETVJF5BE.js} +23 -23
  16. package/packages/{safejs → safe-js}/dist/cli.js +8 -6
  17. package/packages/{safejs → safe-js}/dist/cli.js.map +2 -2
  18. package/packages/{safejs → safe-js}/dist/core.js +1 -1
  19. package/packages/{safejs → safe-js}/dist/index.js +6 -6
  20. package/packages/{safejs → safe-js}/dist/interp/host-bridge.d.ts +1 -1
  21. package/packages/{safejs → safe-js}/dist/interp/host-bridge.js +4 -1
  22. package/packages/{safejs → safe-js}/dist/snapshot/policy.d.ts +1 -0
  23. package/packages/{safejs → safe-js}/dist/snapshot/policy.js +4 -1
  24. package/packages/toolcraft-codemode/dist/execute.d.ts +1 -1
  25. package/packages/toolcraft-codemode/dist/execute.js +1 -1
  26. /package/packages/{safejs → safe-js}/dist/browser/chunks/chunk-MUKMA7ZY.js +0 -0
  27. /package/packages/{safejs → safe-js}/dist/browser/chunks/chunk-MUKMA7ZY.js.map +0 -0
  28. /package/packages/{safejs → safe-js}/dist/browser/safe-fs-core.js +0 -0
  29. /package/packages/{safejs → safe-js}/dist/browser/safe-fs-core.js.map +0 -0
  30. /package/packages/{safejs → safe-js}/dist/browser/safe-fs.js +0 -0
  31. /package/packages/{safejs → safe-js}/dist/browser/safe-fs.js.map +0 -0
  32. /package/packages/{safejs → safe-js}/dist/chunks/chunk-4YIDX44G.js +0 -0
  33. /package/packages/{safejs → safe-js}/dist/chunks/chunk-4YIDX44G.js.map +0 -0
  34. /package/packages/{safejs/dist/chunks/chunk-NTYX57KK.js.map → safe-js/dist/chunks/chunk-ETVJF5BE.js.map} +0 -0
  35. /package/packages/{safejs → safe-js}/dist/chunks/chunk-F7NY24BF.js +0 -0
  36. /package/packages/{safejs → safe-js}/dist/chunks/chunk-F7NY24BF.js.map +0 -0
  37. /package/packages/{safejs → safe-js}/dist/chunks/chunk-YBQUQPZV.js +0 -0
  38. /package/packages/{safejs → safe-js}/dist/chunks/chunk-YBQUQPZV.js.map +0 -0
  39. /package/packages/{safejs → safe-js}/dist/cli.d.ts +0 -0
  40. /package/packages/{safejs → safe-js}/dist/core.d.ts +0 -0
  41. /package/packages/{safejs → safe-js}/dist/core.js.map +0 -0
  42. /package/packages/{safejs → safe-js}/dist/dump.d.ts +0 -0
  43. /package/packages/{safejs → safe-js}/dist/dump.js +0 -0
  44. /package/packages/{safejs → safe-js}/dist/error/format.d.ts +0 -0
  45. /package/packages/{safejs → safe-js}/dist/error/format.js +0 -0
  46. /package/packages/{safejs → safe-js}/dist/error/shape.d.ts +0 -0
  47. /package/packages/{safejs → safe-js}/dist/error/shape.js +0 -0
  48. /package/packages/{safejs → safe-js}/dist/error-codes.d.ts +0 -0
  49. /package/packages/{safejs → safe-js}/dist/error-codes.js +0 -0
  50. /package/packages/{safejs → safe-js}/dist/example-runner.d.ts +0 -0
  51. /package/packages/{safejs → safe-js}/dist/example-runner.js +0 -0
  52. /package/packages/{safejs → safe-js}/dist/graph-depth.d.ts +0 -0
  53. /package/packages/{safejs → safe-js}/dist/graph-depth.js +0 -0
  54. /package/packages/{safejs → safe-js}/dist/index.d.ts +0 -0
  55. /package/packages/{safejs → safe-js}/dist/index.js.map +0 -0
  56. /package/packages/{safejs → safe-js}/dist/interp/arguments.d.ts +0 -0
  57. /package/packages/{safejs → safe-js}/dist/interp/arguments.js +0 -0
  58. /package/packages/{safejs → safe-js}/dist/interp/async.d.ts +0 -0
  59. /package/packages/{safejs → safe-js}/dist/interp/async.js +0 -0
  60. /package/packages/{safejs → safe-js}/dist/interp/budget.d.ts +0 -0
  61. /package/packages/{safejs → safe-js}/dist/interp/budget.js +0 -0
  62. /package/packages/{safejs → safe-js}/dist/interp/cancel.d.ts +0 -0
  63. /package/packages/{safejs → safe-js}/dist/interp/cancel.js +0 -0
  64. /package/packages/{safejs → safe-js}/dist/interp/exceptions.d.ts +0 -0
  65. /package/packages/{safejs → safe-js}/dist/interp/exceptions.js +0 -0
  66. /package/packages/{safejs → safe-js}/dist/interp/float32.d.ts +0 -0
  67. /package/packages/{safejs → safe-js}/dist/interp/float32.js +0 -0
  68. /package/packages/{safejs → safe-js}/dist/interp/generator.d.ts +0 -0
  69. /package/packages/{safejs → safe-js}/dist/interp/generator.js +0 -0
  70. /package/packages/{safejs → safe-js}/dist/interp/globals/collections.d.ts +0 -0
  71. /package/packages/{safejs → safe-js}/dist/interp/globals/collections.js +0 -0
  72. /package/packages/{safejs → safe-js}/dist/interp/globals/console-json.d.ts +0 -0
  73. /package/packages/{safejs → safe-js}/dist/interp/globals/console-json.js +0 -0
  74. /package/packages/{safejs → safe-js}/dist/interp/globals/error.d.ts +0 -0
  75. /package/packages/{safejs → safe-js}/dist/interp/globals/error.js +0 -0
  76. /package/packages/{safejs → safe-js}/dist/interp/globals/float32array.d.ts +0 -0
  77. /package/packages/{safejs → safe-js}/dist/interp/globals/float32array.js +0 -0
  78. /package/packages/{safejs → safe-js}/dist/interp/globals/math.d.ts +0 -0
  79. /package/packages/{safejs → safe-js}/dist/interp/globals/math.js +0 -0
  80. /package/packages/{safejs → safe-js}/dist/interp/globals/misc.d.ts +0 -0
  81. /package/packages/{safejs → safe-js}/dist/interp/globals/misc.js +0 -0
  82. /package/packages/{safejs → safe-js}/dist/interp/globals/object-array.d.ts +0 -0
  83. /package/packages/{safejs → safe-js}/dist/interp/globals/object-array.js +0 -0
  84. /package/packages/{safejs → safe-js}/dist/interp/globals/regex.d.ts +0 -0
  85. /package/packages/{safejs → safe-js}/dist/interp/globals/regex.js +0 -0
  86. /package/packages/{safejs → safe-js}/dist/interp/host-call.d.ts +0 -0
  87. /package/packages/{safejs → safe-js}/dist/interp/host-call.js +0 -0
  88. /package/packages/{safejs → safe-js}/dist/interp/interpreter.d.ts +0 -0
  89. /package/packages/{safejs → safe-js}/dist/interp/interpreter.js +0 -0
  90. /package/packages/{safejs → safe-js}/dist/interp/iteration.d.ts +0 -0
  91. /package/packages/{safejs → safe-js}/dist/interp/iteration.js +0 -0
  92. /package/packages/{safejs → safe-js}/dist/interp/jobs.d.ts +0 -0
  93. /package/packages/{safejs → safe-js}/dist/interp/jobs.js +0 -0
  94. /package/packages/{safejs → safe-js}/dist/interp/methods/array.d.ts +0 -0
  95. /package/packages/{safejs → safe-js}/dist/interp/methods/array.js +0 -0
  96. /package/packages/{safejs → safe-js}/dist/interp/methods/collection-callback.d.ts +0 -0
  97. /package/packages/{safejs → safe-js}/dist/interp/methods/collection-callback.js +0 -0
  98. /package/packages/{safejs → safe-js}/dist/interp/methods/function.d.ts +0 -0
  99. /package/packages/{safejs → safe-js}/dist/interp/methods/function.js +0 -0
  100. /package/packages/{safejs → safe-js}/dist/interp/methods/generator.d.ts +0 -0
  101. /package/packages/{safejs → safe-js}/dist/interp/methods/generator.js +0 -0
  102. /package/packages/{safejs → safe-js}/dist/interp/methods/map.d.ts +0 -0
  103. /package/packages/{safejs → safe-js}/dist/interp/methods/map.js +0 -0
  104. /package/packages/{safejs → safe-js}/dist/interp/methods/number.d.ts +0 -0
  105. /package/packages/{safejs → safe-js}/dist/interp/methods/number.js +0 -0
  106. /package/packages/{safejs → safe-js}/dist/interp/methods/regex.d.ts +0 -0
  107. /package/packages/{safejs → safe-js}/dist/interp/methods/regex.js +0 -0
  108. /package/packages/{safejs → safe-js}/dist/interp/methods/set.d.ts +0 -0
  109. /package/packages/{safejs → safe-js}/dist/interp/methods/set.js +0 -0
  110. /package/packages/{safejs → safe-js}/dist/interp/methods/string.d.ts +0 -0
  111. /package/packages/{safejs → safe-js}/dist/interp/methods/string.js +0 -0
  112. /package/packages/{safejs → safe-js}/dist/interp/patterns.d.ts +0 -0
  113. /package/packages/{safejs → safe-js}/dist/interp/patterns.js +0 -0
  114. /package/packages/{safejs → safe-js}/dist/interp/promise-replay.d.ts +0 -0
  115. /package/packages/{safejs → safe-js}/dist/interp/promise-replay.js +0 -0
  116. /package/packages/{safejs → safe-js}/dist/interp/promise-tracker.d.ts +0 -0
  117. /package/packages/{safejs → safe-js}/dist/interp/promise-tracker.js +0 -0
  118. /package/packages/{safejs → safe-js}/dist/interp/promise.d.ts +0 -0
  119. /package/packages/{safejs → safe-js}/dist/interp/promise.js +0 -0
  120. /package/packages/{safejs → safe-js}/dist/interp/regex/engine.d.ts +0 -0
  121. /package/packages/{safejs → safe-js}/dist/interp/regex/engine.js +0 -0
  122. /package/packages/{safejs → safe-js}/dist/interp/regex/parse.d.ts +0 -0
  123. /package/packages/{safejs → safe-js}/dist/interp/regex/parse.js +0 -0
  124. /package/packages/{safejs → safe-js}/dist/interp/resources.d.ts +0 -0
  125. /package/packages/{safejs → safe-js}/dist/interp/resources.js +0 -0
  126. /package/packages/{safejs → safe-js}/dist/interp/running-state.d.ts +0 -0
  127. /package/packages/{safejs → safe-js}/dist/interp/running-state.js +0 -0
  128. /package/packages/{safejs → safe-js}/dist/interp/scope.d.ts +0 -0
  129. /package/packages/{safejs → safe-js}/dist/interp/scope.js +0 -0
  130. /package/packages/{safejs → safe-js}/dist/interp/values.d.ts +0 -0
  131. /package/packages/{safejs → safe-js}/dist/interp/values.js +0 -0
  132. /package/packages/{safejs → safe-js}/dist/interp/var-hoist.d.ts +0 -0
  133. /package/packages/{safejs → safe-js}/dist/interp/var-hoist.js +0 -0
  134. /package/packages/{safejs → safe-js}/dist/lint/index.d.ts +0 -0
  135. /package/packages/{safejs → safe-js}/dist/lint/index.js +0 -0
  136. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-async-not-needed.d.ts +0 -0
  137. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-async-not-needed.js +0 -0
  138. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-destructure-null-default.d.ts +0 -0
  139. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-destructure-null-default.js +0 -0
  140. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-export-import-meta.d.ts +0 -0
  141. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-export-import-meta.js +0 -0
  142. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-floating-promise.d.ts +0 -0
  143. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-floating-promise.js +0 -0
  144. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-frontmatter-field-unused.d.ts +0 -0
  145. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-frontmatter-field-unused.js +0 -0
  146. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-import-cycle.d.ts +0 -0
  147. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-import-cycle.js +0 -0
  148. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-jsdoc-type.d.ts +0 -0
  149. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-jsdoc-type.js +0 -0
  150. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-large-literal.d.ts +0 -0
  151. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-large-literal.js +0 -0
  152. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-missing-async.d.ts +0 -0
  153. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-missing-async.js +0 -0
  154. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-mutating-frozen.d.ts +0 -0
  155. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-mutating-frozen.js +0 -0
  156. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-needless-template.d.ts +0 -0
  157. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-needless-template.js +0 -0
  158. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-shadow-global.d.ts +0 -0
  159. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-shadow-global.js +0 -0
  160. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-unbounded-loop.d.ts +0 -0
  161. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-unbounded-loop.js +0 -0
  162. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-unreachable.d.ts +0 -0
  163. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-unreachable.js +0 -0
  164. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-unused-import.d.ts +0 -0
  165. /package/packages/{safejs → safe-js}/dist/lint/rules/AS-unused-import.js +0 -0
  166. /package/packages/{safejs → safe-js}/dist/lint/rules/AS001.d.ts +0 -0
  167. /package/packages/{safejs → safe-js}/dist/lint/rules/AS001.js +0 -0
  168. /package/packages/{safejs → safe-js}/dist/lint/rules/AS003.d.ts +0 -0
  169. /package/packages/{safejs → safe-js}/dist/lint/rules/AS003.js +0 -0
  170. /package/packages/{safejs → safe-js}/dist/lint/rules/AS004.d.ts +0 -0
  171. /package/packages/{safejs → safe-js}/dist/lint/rules/AS004.js +0 -0
  172. /package/packages/{safejs → safe-js}/dist/lint/rules/AS005.d.ts +0 -0
  173. /package/packages/{safejs → safe-js}/dist/lint/rules/AS005.js +0 -0
  174. /package/packages/{safejs → safe-js}/dist/lint/rules/AS006-007.d.ts +0 -0
  175. /package/packages/{safejs → safe-js}/dist/lint/rules/AS006-007.js +0 -0
  176. /package/packages/{safejs → safe-js}/dist/lint/rules/AS009.d.ts +0 -0
  177. /package/packages/{safejs → safe-js}/dist/lint/rules/AS009.js +0 -0
  178. /package/packages/{safejs → safe-js}/dist/lint/rules/AS010.d.ts +0 -0
  179. /package/packages/{safejs → safe-js}/dist/lint/rules/AS010.js +0 -0
  180. /package/packages/{safejs → safe-js}/dist/lint/rules/AS011.d.ts +0 -0
  181. /package/packages/{safejs → safe-js}/dist/lint/rules/AS011.js +0 -0
  182. /package/packages/{safejs → safe-js}/dist/lint/rules/AS013.d.ts +0 -0
  183. /package/packages/{safejs → safe-js}/dist/lint/rules/AS013.js +0 -0
  184. /package/packages/{safejs → safe-js}/dist/lint/rules/AS014.d.ts +0 -0
  185. /package/packages/{safejs → safe-js}/dist/lint/rules/AS014.js +0 -0
  186. /package/packages/{safejs → safe-js}/dist/lint/rules/AS015.d.ts +0 -0
  187. /package/packages/{safejs → safe-js}/dist/lint/rules/AS015.js +0 -0
  188. /package/packages/{safejs → safe-js}/dist/lint/rules/known-globals.d.ts +0 -0
  189. /package/packages/{safejs → safe-js}/dist/lint/rules/known-globals.js +0 -0
  190. /package/packages/{safejs → safe-js}/dist/lint/rules/module-registry.d.ts +0 -0
  191. /package/packages/{safejs → safe-js}/dist/lint/rules/module-registry.js +0 -0
  192. /package/packages/{safejs → safe-js}/dist/lint/runtime-modules.d.ts +0 -0
  193. /package/packages/{safejs → safe-js}/dist/lint/runtime-modules.js +0 -0
  194. /package/packages/{safejs → safe-js}/dist/lint.d.ts +0 -0
  195. /package/packages/{safejs → safe-js}/dist/lint.js +0 -0
  196. /package/packages/{safejs → safe-js}/dist/loader/extract-block.d.ts +0 -0
  197. /package/packages/{safejs → safe-js}/dist/loader/extract-block.js +0 -0
  198. /package/packages/{safejs → safe-js}/dist/loader/find-exported.d.ts +0 -0
  199. /package/packages/{safejs → safe-js}/dist/loader/find-exported.js +0 -0
  200. /package/packages/{safejs → safe-js}/dist/loader/frontmatter.d.ts +0 -0
  201. /package/packages/{safejs → safe-js}/dist/loader/frontmatter.js +0 -0
  202. /package/packages/{safejs → safe-js}/dist/migrate.d.ts +0 -0
  203. /package/packages/{safejs → safe-js}/dist/migrate.js +0 -0
  204. /package/packages/{safejs → safe-js}/dist/migration-file.d.ts +0 -0
  205. /package/packages/{safejs → safe-js}/dist/migration-file.js +0 -0
  206. /package/packages/{safejs → safe-js}/dist/modules/agent.d.ts +0 -0
  207. /package/packages/{safejs → safe-js}/dist/modules/agent.js +0 -0
  208. /package/packages/{safejs → safe-js}/dist/modules/canonical-path.d.ts +0 -0
  209. /package/packages/{safejs → safe-js}/dist/modules/canonical-path.js +0 -0
  210. /package/packages/{safejs → safe-js}/dist/modules/env.d.ts +0 -0
  211. /package/packages/{safejs → safe-js}/dist/modules/env.js +0 -0
  212. /package/packages/{safejs → safe-js}/dist/modules/fail.d.ts +0 -0
  213. /package/packages/{safejs → safe-js}/dist/modules/fail.js +0 -0
  214. /package/packages/{safejs → safe-js}/dist/modules/fs-config.d.ts +0 -0
  215. /package/packages/{safejs → safe-js}/dist/modules/fs-config.js +0 -0
  216. /package/packages/{safejs → safe-js}/dist/modules/fs.conformance-cases.d.ts +0 -0
  217. /package/packages/{safejs → safe-js}/dist/modules/fs.conformance-cases.js +0 -0
  218. /package/packages/{safejs → safe-js}/dist/modules/fs.d.ts +0 -0
  219. /package/packages/{safejs → safe-js}/dist/modules/fs.js +0 -0
  220. /package/packages/{safejs → safe-js}/dist/modules/git.d.ts +0 -0
  221. /package/packages/{safejs → safe-js}/dist/modules/git.js +0 -0
  222. /package/packages/{safejs → safe-js}/dist/modules/harness.d.ts +0 -0
  223. /package/packages/{safejs → safe-js}/dist/modules/harness.js +0 -0
  224. /package/packages/{safejs → safe-js}/dist/modules/log.d.ts +0 -0
  225. /package/packages/{safejs → safe-js}/dist/modules/log.js +0 -0
  226. /package/packages/{safejs → safe-js}/dist/modules/mcp-transport.d.ts +0 -0
  227. /package/packages/{safejs → safe-js}/dist/modules/mcp-transport.js +0 -0
  228. /package/packages/{safejs → safe-js}/dist/modules/mcp.d.ts +0 -0
  229. /package/packages/{safejs → safe-js}/dist/modules/mcp.js +0 -0
  230. /package/packages/{safejs → safe-js}/dist/modules/metric.d.ts +0 -0
  231. /package/packages/{safejs → safe-js}/dist/modules/metric.js +0 -0
  232. /package/packages/{safejs → safe-js}/dist/modules/registry.d.ts +0 -0
  233. /package/packages/{safejs → safe-js}/dist/modules/registry.js +0 -0
  234. /package/packages/{safejs → safe-js}/dist/modules/time.d.ts +0 -0
  235. /package/packages/{safejs → safe-js}/dist/modules/time.js +0 -0
  236. /package/packages/{safejs → safe-js}/dist/observability/otel.d.ts +0 -0
  237. /package/packages/{safejs → safe-js}/dist/observability/otel.js +0 -0
  238. /package/packages/{safejs → safe-js}/dist/output-stream.d.ts +0 -0
  239. /package/packages/{safejs → safe-js}/dist/output-stream.js +0 -0
  240. /package/packages/{safejs → safe-js}/dist/parse/assign-ids.d.ts +0 -0
  241. /package/packages/{safejs → safe-js}/dist/parse/assign-ids.js +0 -0
  242. /package/packages/{safejs → safe-js}/dist/parse/bindings.d.ts +0 -0
  243. /package/packages/{safejs → safe-js}/dist/parse/bindings.js +0 -0
  244. /package/packages/{safejs → safe-js}/dist/parse/format-error.d.ts +0 -0
  245. /package/packages/{safejs → safe-js}/dist/parse/format-error.js +0 -0
  246. /package/packages/{safejs → safe-js}/dist/parse/hash.d.ts +0 -0
  247. /package/packages/{safejs → safe-js}/dist/parse/hash.js +0 -0
  248. /package/packages/{safejs → safe-js}/dist/parse/parse-export.d.ts +0 -0
  249. /package/packages/{safejs → safe-js}/dist/parse/parse-export.js +0 -0
  250. /package/packages/{safejs → safe-js}/dist/parse/parse-import-meta.d.ts +0 -0
  251. /package/packages/{safejs → safe-js}/dist/parse/parse-import-meta.js +0 -0
  252. /package/packages/{safejs → safe-js}/dist/parse/parser.d.ts +0 -0
  253. /package/packages/{safejs → safe-js}/dist/parse/parser.js +0 -0
  254. /package/packages/{safejs → safe-js}/dist/parse/tokenizer.d.ts +0 -0
  255. /package/packages/{safejs → safe-js}/dist/parse/tokenizer.js +0 -0
  256. /package/packages/{safejs → safe-js}/dist/parse.d.ts +0 -0
  257. /package/packages/{safejs → safe-js}/dist/parse.js +0 -0
  258. /package/packages/{safejs → safe-js}/dist/random.d.ts +0 -0
  259. /package/packages/{safejs → safe-js}/dist/random.js +0 -0
  260. /package/packages/{safejs → safe-js}/dist/restore.d.ts +0 -0
  261. /package/packages/{safejs → safe-js}/dist/restore.js +0 -0
  262. /package/packages/{safejs → safe-js}/dist/run.d.ts +0 -0
  263. /package/packages/{safejs → safe-js}/dist/run.js +0 -0
  264. /package/packages/{safejs → safe-js}/dist/runner/run-harness.d.ts +0 -0
  265. /package/packages/{safejs → safe-js}/dist/runner/run-harness.js +0 -0
  266. /package/packages/{safejs → safe-js}/dist/runner/signal-dump.d.ts +0 -0
  267. /package/packages/{safejs → safe-js}/dist/runner/signal-dump.js +0 -0
  268. /package/packages/{safejs → safe-js}/dist/safe-fs-core.js +0 -0
  269. /package/packages/{safejs → safe-js}/dist/safe-fs-core.js.map +0 -0
  270. /package/packages/{safejs → safe-js}/dist/safe-fs-node.js +0 -0
  271. /package/packages/{safejs → safe-js}/dist/safe-fs-node.js.map +0 -0
  272. /package/packages/{safejs → safe-js}/dist/safe-fs.js +0 -0
  273. /package/packages/{safejs → safe-js}/dist/safe-fs.js.map +0 -0
  274. /package/packages/{safejs → safe-js}/dist/snapshot/arguments.d.ts +0 -0
  275. /package/packages/{safejs → safe-js}/dist/snapshot/arguments.js +0 -0
  276. /package/packages/{safejs → safe-js}/dist/snapshot/arrays.d.ts +0 -0
  277. /package/packages/{safejs → safe-js}/dist/snapshot/arrays.js +0 -0
  278. /package/packages/{safejs → safe-js}/dist/snapshot/backend.d.ts +0 -0
  279. /package/packages/{safejs → safe-js}/dist/snapshot/backend.js +0 -0
  280. /package/packages/{safejs → safe-js}/dist/snapshot/dump-format.d.ts +0 -0
  281. /package/packages/{safejs → safe-js}/dist/snapshot/dump-format.js +0 -0
  282. /package/packages/{safejs → safe-js}/dist/snapshot/dump.d.ts +0 -0
  283. /package/packages/{safejs → safe-js}/dist/snapshot/dump.js +0 -0
  284. /package/packages/{safejs → safe-js}/dist/snapshot/float32array.d.ts +0 -0
  285. /package/packages/{safejs → safe-js}/dist/snapshot/float32array.js +0 -0
  286. /package/packages/{safejs → safe-js}/dist/snapshot/migration.d.ts +0 -0
  287. /package/packages/{safejs → safe-js}/dist/snapshot/migration.js +0 -0
  288. /package/packages/{safejs → safe-js}/dist/snapshot/replay-data.d.ts +0 -0
  289. /package/packages/{safejs → safe-js}/dist/snapshot/replay-data.js +0 -0
  290. /package/packages/{safejs → safe-js}/dist/snapshot/replay-inputs.d.ts +0 -0
  291. /package/packages/{safejs → safe-js}/dist/snapshot/replay-inputs.js +0 -0
  292. /package/packages/{safejs → safe-js}/dist/snapshot/restore.d.ts +0 -0
  293. /package/packages/{safejs → safe-js}/dist/snapshot/restore.js +0 -0
  294. /package/packages/{safejs → safe-js}/dist/snapshot/scheduler.d.ts +0 -0
  295. /package/packages/{safejs → safe-js}/dist/snapshot/scheduler.js +0 -0
  296. /package/packages/{safejs → safe-js}/dist/snapshot/serialize.d.ts +0 -0
  297. /package/packages/{safejs → safe-js}/dist/snapshot/serialize.js +0 -0
  298. /package/packages/{safejs → safe-js}/dist/snapshot/validation.d.ts +0 -0
  299. /package/packages/{safejs → safe-js}/dist/snapshot/validation.js +0 -0
package/dist/index.js CHANGED
@@ -118807,7 +118807,7 @@ var init_error_codes21 = __esm({
118807
118807
  }
118808
118808
  });
118809
118809
 
118810
- // packages/safejs/src/parse/bindings.ts
118810
+ // packages/safe-js/src/parse/bindings.ts
118811
118811
  function getFunctionLength(params) {
118812
118812
  const firstOptional = params.findIndex(
118813
118813
  (param) => param.type === "AssignmentPattern" || param.type === "RestElement"
@@ -118899,12 +118899,12 @@ function* hoistedVarDeclarations(nodes) {
118899
118899
  }
118900
118900
  }
118901
118901
  var init_bindings = __esm({
118902
- "packages/safejs/src/parse/bindings.ts"() {
118902
+ "packages/safe-js/src/parse/bindings.ts"() {
118903
118903
  "use strict";
118904
118904
  }
118905
118905
  });
118906
118906
 
118907
- // packages/safejs/src/parse/tokenizer.ts
118907
+ // packages/safe-js/src/parse/tokenizer.ts
118908
118908
  function tokenize3(source, options = {}) {
118909
118909
  const lexer = new Lexer(source, options);
118910
118910
  return lexer.tokenize();
@@ -119000,7 +119000,7 @@ function popGroupingContext(groupingStack, expected) {
119000
119000
  }
119001
119001
  var KEYWORDS, EXPRESSION_ENDING_KEYWORDS, CONTROL_FLOW_PAREN_KEYWORDS, MAX_UNICODE_CODE_POINT, IDENTIFIER_START_PATTERN, IDENTIFIER_PART_PATTERN, PUNCTUATORS, Lexer;
119002
119002
  var init_tokenizer2 = __esm({
119003
- "packages/safejs/src/parse/tokenizer.ts"() {
119003
+ "packages/safe-js/src/parse/tokenizer.ts"() {
119004
119004
  "use strict";
119005
119005
  KEYWORDS = /* @__PURE__ */ new Set([
119006
119006
  "const",
@@ -119838,7 +119838,7 @@ var init_tokenizer2 = __esm({
119838
119838
  }
119839
119839
  });
119840
119840
 
119841
- // packages/safejs/src/parse/assign-ids.ts
119841
+ // packages/safe-js/src/parse/assign-ids.ts
119842
119842
  function assignIds(root) {
119843
119843
  const visited = /* @__PURE__ */ new Set();
119844
119844
  const children2 = [];
@@ -119939,12 +119939,12 @@ function isAstNode(value) {
119939
119939
  return typeof value === "object" && value !== null && "type" in value && typeof value.type === "string" && "span" in value && typeof value.span?.start.offset === "number" && typeof value.span?.end.offset === "number";
119940
119940
  }
119941
119941
  var init_assign_ids = __esm({
119942
- "packages/safejs/src/parse/assign-ids.ts"() {
119942
+ "packages/safe-js/src/parse/assign-ids.ts"() {
119943
119943
  "use strict";
119944
119944
  }
119945
119945
  });
119946
119946
 
119947
- // packages/safejs/src/error/shape.ts
119947
+ // packages/safe-js/src/error/shape.ts
119948
119948
  function formatErrorStack(name, message2, stackFrames = []) {
119949
119949
  const header = message2.length === 0 ? name : `${name}: ${message2}`;
119950
119950
  return [header, ...stackFrames].join("\n");
@@ -120072,7 +120072,7 @@ function findSourceOffset(source, line, column) {
120072
120072
  }
120073
120073
  var wrappedErrorCause, sandboxErrorNames, sandboxErrorTypes, hostErrorData;
120074
120074
  var init_shape = __esm({
120075
- "packages/safejs/src/error/shape.ts"() {
120075
+ "packages/safe-js/src/error/shape.ts"() {
120076
120076
  "use strict";
120077
120077
  wrappedErrorCause = /* @__PURE__ */ Symbol("wrappedErrorCause");
120078
120078
  sandboxErrorNames = [
@@ -120090,7 +120090,7 @@ var init_shape = __esm({
120090
120090
  }
120091
120091
  });
120092
120092
 
120093
- // packages/safejs/src/parse/format-error.ts
120093
+ // packages/safe-js/src/parse/format-error.ts
120094
120094
  function formatParseError(source, filename, error3) {
120095
120095
  const location = parseErrorLocation(error3.message);
120096
120096
  if (location === void 0) {
@@ -120248,7 +120248,7 @@ function findNumberEnd(value, startIndex) {
120248
120248
  }
120249
120249
  var ParseError, MAX_EXCERPT_CONTENT_LENGTH, ELLIPSIS2;
120250
120250
  var init_format_error = __esm({
120251
- "packages/safejs/src/parse/format-error.ts"() {
120251
+ "packages/safe-js/src/parse/format-error.ts"() {
120252
120252
  "use strict";
120253
120253
  init_shape();
120254
120254
  ParseError = class extends Error {
@@ -120276,7 +120276,7 @@ var init_format_error = __esm({
120276
120276
  }
120277
120277
  });
120278
120278
 
120279
- // packages/safejs/src/parse/parse-export.ts
120279
+ // packages/safe-js/src/parse/parse-export.ts
120280
120280
  function createExportNamedDeclaration(exportToken, declaration) {
120281
120281
  return {
120282
120282
  type: "ExportNamedDeclaration",
@@ -120298,12 +120298,12 @@ function createSpan(start, end) {
120298
120298
  };
120299
120299
  }
120300
120300
  var init_parse_export = __esm({
120301
- "packages/safejs/src/parse/parse-export.ts"() {
120301
+ "packages/safe-js/src/parse/parse-export.ts"() {
120302
120302
  "use strict";
120303
120303
  }
120304
120304
  });
120305
120305
 
120306
- // packages/safejs/src/parse/parse-import-meta.ts
120306
+ // packages/safe-js/src/parse/parse-import-meta.ts
120307
120307
  function isImportMetaTokenSequence(importToken, dotToken, metaToken) {
120308
120308
  return importToken.type === "keyword" && importToken.value === "import" && dotToken.type === "punctuator" && dotToken.value === "." && metaToken.type === "identifier" && metaToken.value === "meta" && importToken.end.offset === dotToken.start.offset && dotToken.end.offset === metaToken.start.offset;
120309
120309
  }
@@ -120329,12 +120329,12 @@ function createIdentifier(token, name) {
120329
120329
  };
120330
120330
  }
120331
120331
  var init_parse_import_meta = __esm({
120332
- "packages/safejs/src/parse/parse-import-meta.ts"() {
120332
+ "packages/safe-js/src/parse/parse-import-meta.ts"() {
120333
120333
  "use strict";
120334
120334
  }
120335
120335
  });
120336
120336
 
120337
- // packages/safejs/src/interp/regex/parse.ts
120337
+ // packages/safe-js/src/interp/regex/parse.ts
120338
120338
  function parseRegex(source, flags = "") {
120339
120339
  const parsedFlags = parseFlags(flags);
120340
120340
  const parser = new RegexParser(source);
@@ -120385,7 +120385,7 @@ function allHexDigits(value) {
120385
120385
  }
120386
120386
  var RegexParser;
120387
120387
  var init_parse5 = __esm({
120388
- "packages/safejs/src/interp/regex/parse.ts"() {
120388
+ "packages/safe-js/src/interp/regex/parse.ts"() {
120389
120389
  "use strict";
120390
120390
  RegexParser = class {
120391
120391
  constructor(source) {
@@ -120659,7 +120659,7 @@ var init_parse5 = __esm({
120659
120659
  }
120660
120660
  });
120661
120661
 
120662
- // packages/safejs/src/parse/parser.ts
120662
+ // packages/safe-js/src/parse/parser.ts
120663
120663
  function parse15(source, filename = "<input>") {
120664
120664
  try {
120665
120665
  const result = assignIds(parseTokens(tokenize3(source, { allowRegexLiterals: true })));
@@ -121527,7 +121527,7 @@ function matchingOpeningPunctuator(value) {
121527
121527
  }
121528
121528
  var MAX_CONDITIONAL_EXPRESSION_DEPTH, MAX_IF_STATEMENT_DEPTH, DisallowedSyntaxError, EQUALITY_OPERATORS, RELATIONAL_OPERATORS, SHIFT_OPERATORS, ADDITIVE_OPERATORS, MULTIPLICATIVE_OPERATORS, BITWISE_OR_OPERATORS, BITWISE_XOR_OPERATORS, BITWISE_AND_OPERATORS, MAX_UNICODE_CODE_POINT2, TOP_LEVEL_STATEMENT_KEYWORDS, Parser;
121529
121529
  var init_parser3 = __esm({
121530
- "packages/safejs/src/parse/parser.ts"() {
121530
+ "packages/safe-js/src/parse/parser.ts"() {
121531
121531
  "use strict";
121532
121532
  init_bindings();
121533
121533
  init_tokenizer2();
@@ -124148,15 +124148,15 @@ var init_parser3 = __esm({
124148
124148
  }
124149
124149
  });
124150
124150
 
124151
- // packages/safejs/src/parse.ts
124151
+ // packages/safe-js/src/parse.ts
124152
124152
  var init_parse6 = __esm({
124153
- "packages/safejs/src/parse.ts"() {
124153
+ "packages/safe-js/src/parse.ts"() {
124154
124154
  "use strict";
124155
124155
  init_parser3();
124156
124156
  }
124157
124157
  });
124158
124158
 
124159
- // packages/safejs/src/lint/rules/AS001.ts
124159
+ // packages/safe-js/src/lint/rules/AS001.ts
124160
124160
  function AS001(source, options = {}) {
124161
124161
  return new AS001Scanner(source, options.filename ?? "<input>").scan();
124162
124162
  }
@@ -124333,7 +124333,7 @@ function isExpressionEndingPunctuator2(value) {
124333
124333
  }
124334
124334
  var KEYWORDS2, EXPRESSION_ENDING_KEYWORDS2, CONTROL_FLOW_PAREN_KEYWORDS2, PUNCTUATORS2, AS001Scanner;
124335
124335
  var init_AS001 = __esm({
124336
- "packages/safejs/src/lint/rules/AS001.ts"() {
124336
+ "packages/safe-js/src/lint/rules/AS001.ts"() {
124337
124337
  "use strict";
124338
124338
  KEYWORDS2 = /* @__PURE__ */ new Set([
124339
124339
  "async",
@@ -124852,10 +124852,10 @@ var init_AS001 = __esm({
124852
124852
  }
124853
124853
  });
124854
124854
 
124855
- // packages/safejs/src/lint/rules/known-globals.ts
124855
+ // packages/safe-js/src/lint/rules/known-globals.ts
124856
124856
  var KNOWN_RUNTIME_GLOBALS;
124857
124857
  var init_known_globals = __esm({
124858
- "packages/safejs/src/lint/rules/known-globals.ts"() {
124858
+ "packages/safe-js/src/lint/rules/known-globals.ts"() {
124859
124859
  "use strict";
124860
124860
  KNOWN_RUNTIME_GLOBALS = [
124861
124861
  "AggregateError",
@@ -124888,7 +124888,7 @@ var init_known_globals = __esm({
124888
124888
  }
124889
124889
  });
124890
124890
 
124891
- // packages/safejs/src/lint/rules/AS003.ts
124891
+ // packages/safe-js/src/lint/rules/AS003.ts
124892
124892
  function AS003(source, options = {}) {
124893
124893
  return new AS003Scanner(
124894
124894
  options.filename ?? "<input>",
@@ -124928,7 +124928,7 @@ function getLevenshteinDistance2(left, right) {
124928
124928
  }
124929
124929
  var AS003Scanner;
124930
124930
  var init_AS003 = __esm({
124931
- "packages/safejs/src/lint/rules/AS003.ts"() {
124931
+ "packages/safe-js/src/lint/rules/AS003.ts"() {
124932
124932
  "use strict";
124933
124933
  init_parser3();
124934
124934
  init_known_globals();
@@ -125505,7 +125505,7 @@ var init_AS003 = __esm({
125505
125505
  }
125506
125506
  });
125507
125507
 
125508
- // packages/safejs/src/lint/rules/module-registry.ts
125508
+ // packages/safe-js/src/lint/rules/module-registry.ts
125509
125509
  function collectImportDeclarations(source, filename) {
125510
125510
  const module = parseModule(source, filename);
125511
125511
  return module.body.flatMap(
@@ -125609,13 +125609,13 @@ function normalizeAsyncExports(exports) {
125609
125609
  );
125610
125610
  }
125611
125611
  var init_module_registry = __esm({
125612
- "packages/safejs/src/lint/rules/module-registry.ts"() {
125612
+ "packages/safe-js/src/lint/rules/module-registry.ts"() {
125613
125613
  "use strict";
125614
125614
  init_parser3();
125615
125615
  }
125616
125616
  });
125617
125617
 
125618
- // packages/safejs/src/lint/rules/AS004.ts
125618
+ // packages/safe-js/src/lint/rules/AS004.ts
125619
125619
  function AS004(source, options = {}) {
125620
125620
  const filename = options.filename ?? "<input>";
125621
125621
  const modules = normalizeModules(options.modules);
@@ -125638,13 +125638,13 @@ function AS004(source, options = {}) {
125638
125638
  });
125639
125639
  }
125640
125640
  var init_AS004 = __esm({
125641
- "packages/safejs/src/lint/rules/AS004.ts"() {
125641
+ "packages/safe-js/src/lint/rules/AS004.ts"() {
125642
125642
  "use strict";
125643
125643
  init_module_registry();
125644
125644
  }
125645
125645
  });
125646
125646
 
125647
- // packages/safejs/src/lint/rules/AS005.ts
125647
+ // packages/safe-js/src/lint/rules/AS005.ts
125648
125648
  function AS005(source, options = {}) {
125649
125649
  const filename = options.filename ?? "<input>";
125650
125650
  const modules = normalizeModules(options.modules);
@@ -125681,19 +125681,19 @@ function AS005(source, options = {}) {
125681
125681
  });
125682
125682
  }
125683
125683
  var init_AS005 = __esm({
125684
- "packages/safejs/src/lint/rules/AS005.ts"() {
125684
+ "packages/safe-js/src/lint/rules/AS005.ts"() {
125685
125685
  "use strict";
125686
125686
  init_module_registry();
125687
125687
  }
125688
125688
  });
125689
125689
 
125690
- // packages/safejs/src/lint/rules/AS006-007.ts
125690
+ // packages/safe-js/src/lint/rules/AS006-007.ts
125691
125691
  function AS006_007(source, options = {}) {
125692
125692
  return new AS006007Scanner(options.filename ?? "<input>").scan(source);
125693
125693
  }
125694
125694
  var AS006007Scanner;
125695
125695
  var init_AS006_007 = __esm({
125696
- "packages/safejs/src/lint/rules/AS006-007.ts"() {
125696
+ "packages/safe-js/src/lint/rules/AS006-007.ts"() {
125697
125697
  "use strict";
125698
125698
  init_parser3();
125699
125699
  init_bindings();
@@ -126345,13 +126345,13 @@ var init_AS006_007 = __esm({
126345
126345
  }
126346
126346
  });
126347
126347
 
126348
- // packages/safejs/src/lint/rules/AS009.ts
126348
+ // packages/safe-js/src/lint/rules/AS009.ts
126349
126349
  function AS009(source, options = {}) {
126350
126350
  return new AS009Scanner(options.filename ?? "<input>").scan(source);
126351
126351
  }
126352
126352
  var MESSAGE, AS009Scanner;
126353
126353
  var init_AS009 = __esm({
126354
- "packages/safejs/src/lint/rules/AS009.ts"() {
126354
+ "packages/safe-js/src/lint/rules/AS009.ts"() {
126355
126355
  "use strict";
126356
126356
  init_parser3();
126357
126357
  MESSAGE = "Async arrow returns a host call without awaiting it. Add 'await' or document that this function intentionally returns a Promise.";
@@ -126832,13 +126832,13 @@ var init_AS009 = __esm({
126832
126832
  }
126833
126833
  });
126834
126834
 
126835
- // packages/safejs/src/lint/rules/AS010.ts
126835
+ // packages/safe-js/src/lint/rules/AS010.ts
126836
126836
  function AS010(source, options = {}) {
126837
126837
  return new AS010Scanner(options.filename ?? "<input>").scan(source);
126838
126838
  }
126839
126839
  var AS010Scanner;
126840
126840
  var init_AS010 = __esm({
126841
- "packages/safejs/src/lint/rules/AS010.ts"() {
126841
+ "packages/safe-js/src/lint/rules/AS010.ts"() {
126842
126842
  "use strict";
126843
126843
  init_parser3();
126844
126844
  AS010Scanner = class {
@@ -127496,13 +127496,13 @@ var init_AS010 = __esm({
127496
127496
  }
127497
127497
  });
127498
127498
 
127499
- // packages/safejs/src/lint/rules/AS011.ts
127499
+ // packages/safe-js/src/lint/rules/AS011.ts
127500
127500
  function AS011(source, options = {}) {
127501
127501
  return new AS011Scanner(options.filename ?? "<input>").scan(source);
127502
127502
  }
127503
127503
  var FORBIDDEN_PROPERTY_NAMES, MESSAGE2, AS011Scanner;
127504
127504
  var init_AS011 = __esm({
127505
- "packages/safejs/src/lint/rules/AS011.ts"() {
127505
+ "packages/safe-js/src/lint/rules/AS011.ts"() {
127506
127506
  "use strict";
127507
127507
  init_parser3();
127508
127508
  FORBIDDEN_PROPERTY_NAMES = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
@@ -127839,7 +127839,7 @@ var init_AS011 = __esm({
127839
127839
  }
127840
127840
  });
127841
127841
 
127842
- // packages/safejs/src/lint/rules/AS013.ts
127842
+ // packages/safe-js/src/lint/rules/AS013.ts
127843
127843
  function AS013(source, options = {}) {
127844
127844
  const filename = options.filename ?? "<input>";
127845
127845
  const reservedNames = new Set(normalizeModules(options.modules).keys());
@@ -127921,14 +127921,14 @@ function collectPatternDiagnostics(pattern, reservedNames, diagnostics, filename
127921
127921
  }
127922
127922
  }
127923
127923
  var init_AS013 = __esm({
127924
- "packages/safejs/src/lint/rules/AS013.ts"() {
127924
+ "packages/safe-js/src/lint/rules/AS013.ts"() {
127925
127925
  "use strict";
127926
127926
  init_parser3();
127927
127927
  init_module_registry();
127928
127928
  }
127929
127929
  });
127930
127930
 
127931
- // packages/safejs/src/lint/rules/AS015.ts
127931
+ // packages/safe-js/src/lint/rules/AS015.ts
127932
127932
  function AS015(source, options = {}) {
127933
127933
  return new AS015Scanner(options.filename ?? "<input>").scan(source);
127934
127934
  }
@@ -127947,7 +127947,7 @@ function isPromiseRace(node) {
127947
127947
  }
127948
127948
  var AS015Scanner;
127949
127949
  var init_AS015 = __esm({
127950
- "packages/safejs/src/lint/rules/AS015.ts"() {
127950
+ "packages/safe-js/src/lint/rules/AS015.ts"() {
127951
127951
  "use strict";
127952
127952
  init_parser3();
127953
127953
  AS015Scanner = class {
@@ -128252,7 +128252,7 @@ var init_AS015 = __esm({
128252
128252
  }
128253
128253
  });
128254
128254
 
128255
- // packages/safejs/src/lint/rules/AS-async-not-needed.ts
128255
+ // packages/safe-js/src/lint/rules/AS-async-not-needed.ts
128256
128256
  function AS_ASYNC_NOT_NEEDED(source, options = {}) {
128257
128257
  return new ASAsyncNotNeededScanner(source, options.filename ?? "<input>").scan();
128258
128258
  }
@@ -128431,7 +128431,7 @@ function patternTargetContainsAwait(node) {
128431
128431
  }
128432
128432
  var AS_ASYNC_NOT_NEEDED_MESSAGE, ASAsyncNotNeededScanner;
128433
128433
  var init_AS_async_not_needed = __esm({
128434
- "packages/safejs/src/lint/rules/AS-async-not-needed.ts"() {
128434
+ "packages/safe-js/src/lint/rules/AS-async-not-needed.ts"() {
128435
128435
  "use strict";
128436
128436
  init_parser3();
128437
128437
  AS_ASYNC_NOT_NEEDED_MESSAGE = "Async functions without await should remove the async keyword.";
@@ -128806,7 +128806,7 @@ var init_AS_async_not_needed = __esm({
128806
128806
  }
128807
128807
  });
128808
128808
 
128809
- // packages/safejs/src/lint/rules/AS-destructure-null-default.ts
128809
+ // packages/safe-js/src/lint/rules/AS-destructure-null-default.ts
128810
128810
  function AS_DESTRUCTURE_NULL_DEFAULT(source, options = {}) {
128811
128811
  return new ASDestructureNullDefaultScanner(options.filename ?? "<input>").scan(source);
128812
128812
  }
@@ -128851,7 +128851,7 @@ function getStaticPropertyKey(key3) {
128851
128851
  }
128852
128852
  var MESSAGE3, HINT, ASDestructureNullDefaultScanner;
128853
128853
  var init_AS_destructure_null_default = __esm({
128854
- "packages/safejs/src/lint/rules/AS-destructure-null-default.ts"() {
128854
+ "packages/safe-js/src/lint/rules/AS-destructure-null-default.ts"() {
128855
128855
  "use strict";
128856
128856
  init_parser3();
128857
128857
  MESSAGE3 = "Destructuring default values only apply to undefined, not null.";
@@ -129258,7 +129258,7 @@ var init_AS_destructure_null_default = __esm({
129258
129258
  }
129259
129259
  });
129260
129260
 
129261
- // packages/safejs/src/lint/rules/AS-export-import-meta.ts
129261
+ // packages/safe-js/src/lint/rules/AS-export-import-meta.ts
129262
129262
  function AS_EXPORT_IMPORT_META(source, options = {}) {
129263
129263
  return new Scanner(
129264
129264
  options.filename ?? "<input>",
@@ -129307,7 +129307,7 @@ function isImportMetaAssignmentTarget2(node) {
129307
129307
  }
129308
129308
  var Scanner;
129309
129309
  var init_AS_export_import_meta = __esm({
129310
- "packages/safejs/src/lint/rules/AS-export-import-meta.ts"() {
129310
+ "packages/safe-js/src/lint/rules/AS-export-import-meta.ts"() {
129311
129311
  "use strict";
129312
129312
  init_parser3();
129313
129313
  Scanner = class {
@@ -129698,13 +129698,13 @@ var init_AS_export_import_meta = __esm({
129698
129698
  }
129699
129699
  });
129700
129700
 
129701
- // packages/safejs/src/lint/rules/AS-floating-promise.ts
129701
+ // packages/safe-js/src/lint/rules/AS-floating-promise.ts
129702
129702
  function AS_FLOATING_PROMISE(source, options = {}) {
129703
129703
  return new ASFloatingPromiseScanner(options.filename ?? "<input>", options.modules).scan(source);
129704
129704
  }
129705
129705
  var AS_FLOATING_PROMISE_MESSAGE, PROMISE_CONSUMERS, PROMISE_FACTORIES, PROMISE_CHAIN_METHODS, ASFloatingPromiseScanner;
129706
129706
  var init_AS_floating_promise = __esm({
129707
- "packages/safejs/src/lint/rules/AS-floating-promise.ts"() {
129707
+ "packages/safe-js/src/lint/rules/AS-floating-promise.ts"() {
129708
129708
  "use strict";
129709
129709
  init_parser3();
129710
129710
  init_module_registry();
@@ -130306,7 +130306,7 @@ var init_AS_floating_promise = __esm({
130306
130306
  }
130307
130307
  });
130308
130308
 
130309
- // packages/safejs/src/lint/rules/AS-frontmatter-field-unused.ts
130309
+ // packages/safe-js/src/lint/rules/AS-frontmatter-field-unused.ts
130310
130310
  function AS_FRONTMATTER_FIELD_UNUSED(source, options = {}) {
130311
130311
  if (options.frontmatterFields === void 0) {
130312
130312
  return [];
@@ -130336,7 +130336,7 @@ function readPropertyKey(node) {
130336
130336
  }
130337
130337
  var ASFrontmatterFieldUnusedScanner;
130338
130338
  var init_AS_frontmatter_field_unused = __esm({
130339
- "packages/safejs/src/lint/rules/AS-frontmatter-field-unused.ts"() {
130339
+ "packages/safe-js/src/lint/rules/AS-frontmatter-field-unused.ts"() {
130340
130340
  "use strict";
130341
130341
  init_parser3();
130342
130342
  ASFrontmatterFieldUnusedScanner = class {
@@ -130738,7 +130738,7 @@ var init_AS_frontmatter_field_unused = __esm({
130738
130738
  }
130739
130739
  });
130740
130740
 
130741
- // packages/safejs/src/lint/rules/AS-import-cycle.ts
130741
+ // packages/safe-js/src/lint/rules/AS-import-cycle.ts
130742
130742
  function AS_IMPORT_CYCLE(source, options = {}) {
130743
130743
  const filename = options.filename ?? "<input>";
130744
130744
  const sourceModules = collectSafeJSSourceModules(options.modules);
@@ -130822,7 +130822,7 @@ function findPathToModule(currentModuleName, targetModuleName, dependencyGraph,
130822
130822
  return void 0;
130823
130823
  }
130824
130824
  var init_AS_import_cycle = __esm({
130825
- "packages/safejs/src/lint/rules/AS-import-cycle.ts"() {
130825
+ "packages/safe-js/src/lint/rules/AS-import-cycle.ts"() {
130826
130826
  "use strict";
130827
130827
  init_format_error();
130828
130828
  init_parser3();
@@ -130830,7 +130830,7 @@ var init_AS_import_cycle = __esm({
130830
130830
  }
130831
130831
  });
130832
130832
 
130833
- // packages/safejs/src/lint/rules/AS-jsdoc-type.ts
130833
+ // packages/safe-js/src/lint/rules/AS-jsdoc-type.ts
130834
130834
  function AS_JSDOC_TYPE(source, options = {}) {
130835
130835
  if (!hasTypedModuleRegistrations(options.modules)) {
130836
130836
  return [];
@@ -131178,7 +131178,7 @@ function positionAt(source, offset) {
131178
131178
  }
131179
131179
  var ASJsdocTypeScanner;
131180
131180
  var init_AS_jsdoc_type = __esm({
131181
- "packages/safejs/src/lint/rules/AS-jsdoc-type.ts"() {
131181
+ "packages/safe-js/src/lint/rules/AS-jsdoc-type.ts"() {
131182
131182
  "use strict";
131183
131183
  init_parser3();
131184
131184
  init_module_registry();
@@ -131575,7 +131575,7 @@ var init_AS_jsdoc_type = __esm({
131575
131575
  }
131576
131576
  });
131577
131577
 
131578
- // packages/safejs/src/lint/rules/AS-large-literal.ts
131578
+ // packages/safe-js/src/lint/rules/AS-large-literal.ts
131579
131579
  function AS_LARGE_LITERAL(source, options = {}) {
131580
131580
  return new ASLargeLiteralScanner(
131581
131581
  options.filename ?? "<input>",
@@ -131590,7 +131590,7 @@ function createObjectMessage(count, threshold) {
131590
131590
  }
131591
131591
  var DEFAULT_LARGE_LITERAL_THRESHOLD, ASLargeLiteralScanner;
131592
131592
  var init_AS_large_literal = __esm({
131593
- "packages/safejs/src/lint/rules/AS-large-literal.ts"() {
131593
+ "packages/safe-js/src/lint/rules/AS-large-literal.ts"() {
131594
131594
  "use strict";
131595
131595
  init_parser3();
131596
131596
  DEFAULT_LARGE_LITERAL_THRESHOLD = 1e3;
@@ -131946,7 +131946,7 @@ var init_AS_large_literal = __esm({
131946
131946
  }
131947
131947
  });
131948
131948
 
131949
- // packages/safejs/src/lint/rules/AS-missing-async.ts
131949
+ // packages/safe-js/src/lint/rules/AS-missing-async.ts
131950
131950
  function AS_MISSING_ASYNC(source, options = {}) {
131951
131951
  return new ASMissingAsyncScanner(options.filename ?? "<input>").scan(source);
131952
131952
  }
@@ -132115,7 +132115,7 @@ function patternTargetContainsAwait2(node) {
132115
132115
  }
132116
132116
  var AS_MISSING_ASYNC_MESSAGE, ASMissingAsyncScanner;
132117
132117
  var init_AS_missing_async = __esm({
132118
- "packages/safejs/src/lint/rules/AS-missing-async.ts"() {
132118
+ "packages/safe-js/src/lint/rules/AS-missing-async.ts"() {
132119
132119
  "use strict";
132120
132120
  init_parser3();
132121
132121
  AS_MISSING_ASYNC_MESSAGE = "Functions that contain await must be marked async.";
@@ -132477,7 +132477,7 @@ var init_AS_missing_async = __esm({
132477
132477
  }
132478
132478
  });
132479
132479
 
132480
- // packages/safejs/src/lint/rules/AS-mutating-frozen.ts
132480
+ // packages/safe-js/src/lint/rules/AS-mutating-frozen.ts
132481
132481
  function AS_MUTATING_FROZEN(source, options = {}) {
132482
132482
  return new ASMutatingFrozenScanner(options.filename ?? "<input>").scan(source);
132483
132483
  }
@@ -132516,7 +132516,7 @@ function isImmutableArrayFactoryCall(node, isBound) {
132516
132516
  }
132517
132517
  var MUTATING_ARRAY_METHODS, ASMutatingFrozenScanner;
132518
132518
  var init_AS_mutating_frozen = __esm({
132519
- "packages/safejs/src/lint/rules/AS-mutating-frozen.ts"() {
132519
+ "packages/safe-js/src/lint/rules/AS-mutating-frozen.ts"() {
132520
132520
  "use strict";
132521
132521
  init_parser3();
132522
132522
  MUTATING_ARRAY_METHODS = /* @__PURE__ */ new Set([
@@ -133004,7 +133004,7 @@ var init_AS_mutating_frozen = __esm({
133004
133004
  }
133005
133005
  });
133006
133006
 
133007
- // packages/safejs/src/lint/rules/AS-needless-template.ts
133007
+ // packages/safe-js/src/lint/rules/AS-needless-template.ts
133008
133008
  function AS_NEEDLESS_TEMPLATE(source, options = {}) {
133009
133009
  return new ASNeedlessTemplateScanner(source, options.filename ?? "<input>").scan();
133010
133010
  }
@@ -133025,7 +133025,7 @@ function isNeedlessTemplate(node) {
133025
133025
  }
133026
133026
  var AS_NEEDLESS_TEMPLATE_MESSAGE, ASNeedlessTemplateScanner;
133027
133027
  var init_AS_needless_template = __esm({
133028
- "packages/safejs/src/lint/rules/AS-needless-template.ts"() {
133028
+ "packages/safe-js/src/lint/rules/AS-needless-template.ts"() {
133029
133029
  "use strict";
133030
133030
  init_parser3();
133031
133031
  AS_NEEDLESS_TEMPLATE_MESSAGE = "Template literals with only one interpolation should use the value or String(value).";
@@ -133395,7 +133395,7 @@ var init_AS_needless_template = __esm({
133395
133395
  }
133396
133396
  });
133397
133397
 
133398
- // packages/safejs/src/lint/rules/AS-shadow-global.ts
133398
+ // packages/safe-js/src/lint/rules/AS-shadow-global.ts
133399
133399
  function AS_SHADOW_GLOBAL(source, options = {}) {
133400
133400
  return new ASShadowGlobalScanner(
133401
133401
  options.filename ?? "<input>",
@@ -133404,7 +133404,7 @@ function AS_SHADOW_GLOBAL(source, options = {}) {
133404
133404
  }
133405
133405
  var ASShadowGlobalScanner;
133406
133406
  var init_AS_shadow_global = __esm({
133407
- "packages/safejs/src/lint/rules/AS-shadow-global.ts"() {
133407
+ "packages/safe-js/src/lint/rules/AS-shadow-global.ts"() {
133408
133408
  "use strict";
133409
133409
  init_parser3();
133410
133410
  init_known_globals();
@@ -133807,7 +133807,7 @@ var init_AS_shadow_global = __esm({
133807
133807
  }
133808
133808
  });
133809
133809
 
133810
- // packages/safejs/src/lint/rules/AS-unbounded-loop.ts
133810
+ // packages/safe-js/src/lint/rules/AS-unbounded-loop.ts
133811
133811
  function AS_UNBOUNDED_LOOP(source, options = {}) {
133812
133812
  return new ASUnboundedLoopScanner(options.filename ?? "<input>").scan(source);
133813
133813
  }
@@ -133865,7 +133865,7 @@ function bodyHasExit(node, exitingLabels, allowUnlabeledBreak) {
133865
133865
  }
133866
133866
  var MESSAGE4, ASUnboundedLoopScanner;
133867
133867
  var init_AS_unbounded_loop = __esm({
133868
- "packages/safejs/src/lint/rules/AS-unbounded-loop.ts"() {
133868
+ "packages/safe-js/src/lint/rules/AS-unbounded-loop.ts"() {
133869
133869
  "use strict";
133870
133870
  init_parser3();
133871
133871
  MESSAGE4 = "Unbounded loop or generator source has no static exit with break, return, or throw.";
@@ -134177,7 +134177,7 @@ var init_AS_unbounded_loop = __esm({
134177
134177
  }
134178
134178
  });
134179
134179
 
134180
- // packages/safejs/src/lint/rules/AS-unreachable.ts
134180
+ // packages/safe-js/src/lint/rules/AS-unreachable.ts
134181
134181
  function AS_UNREACHABLE(source, options = {}) {
134182
134182
  return new ASUnreachableScanner(options.filename ?? "<input>").scan(source);
134183
134183
  }
@@ -134186,7 +134186,7 @@ function isEmptyBlockStatement(statement) {
134186
134186
  }
134187
134187
  var ASUnreachableScanner;
134188
134188
  var init_AS_unreachable = __esm({
134189
- "packages/safejs/src/lint/rules/AS-unreachable.ts"() {
134189
+ "packages/safe-js/src/lint/rules/AS-unreachable.ts"() {
134190
134190
  "use strict";
134191
134191
  init_parser3();
134192
134192
  ASUnreachableScanner = class {
@@ -134483,7 +134483,7 @@ var init_AS_unreachable = __esm({
134483
134483
  }
134484
134484
  });
134485
134485
 
134486
- // packages/safejs/src/lint/rules/AS-unused-import.ts
134486
+ // packages/safe-js/src/lint/rules/AS-unused-import.ts
134487
134487
  function AS_UNUSED_IMPORT(source, options = {}) {
134488
134488
  const filename = options.filename ?? "<input>";
134489
134489
  const unusedImports = collectUnusedImports(source, filename);
@@ -134588,7 +134588,7 @@ function skipInlineWhitespace(source, offset) {
134588
134588
  }
134589
134589
  var ASUnusedImportScanner;
134590
134590
  var init_AS_unused_import = __esm({
134591
- "packages/safejs/src/lint/rules/AS-unused-import.ts"() {
134591
+ "packages/safe-js/src/lint/rules/AS-unused-import.ts"() {
134592
134592
  "use strict";
134593
134593
  init_parser3();
134594
134594
  ASUnusedImportScanner = class {
@@ -135096,7 +135096,7 @@ var init_AS_unused_import = __esm({
135096
135096
  }
135097
135097
  });
135098
135098
 
135099
- // packages/safejs/src/lint/index.ts
135099
+ // packages/safe-js/src/lint/index.ts
135100
135100
  function lint(source, options = {}) {
135101
135101
  const diagnostics = collectDiagnostics(source, options);
135102
135102
  if (!options.fix) {
@@ -135433,7 +135433,7 @@ function hasOnlyRegexLiteralDiagnostics(diagnostics) {
135433
135433
  }
135434
135434
  var RULES, KNOWN_DIAGNOSTIC_CODES;
135435
135435
  var init_lint3 = __esm({
135436
- "packages/safejs/src/lint/index.ts"() {
135436
+ "packages/safe-js/src/lint/index.ts"() {
135437
135437
  "use strict";
135438
135438
  init_AS001();
135439
135439
  init_AS003();
@@ -135532,15 +135532,15 @@ var init_lint3 = __esm({
135532
135532
  }
135533
135533
  });
135534
135534
 
135535
- // packages/safejs/src/lint.ts
135535
+ // packages/safe-js/src/lint.ts
135536
135536
  var init_lint4 = __esm({
135537
- "packages/safejs/src/lint.ts"() {
135537
+ "packages/safe-js/src/lint.ts"() {
135538
135538
  "use strict";
135539
135539
  init_lint3();
135540
135540
  }
135541
135541
  });
135542
135542
 
135543
- // packages/safejs/src/parse/hash.ts
135543
+ // packages/safe-js/src/parse/hash.ts
135544
135544
  function hashSource(source) {
135545
135545
  try {
135546
135546
  return hashParsedAst(parse15(source));
@@ -135624,7 +135624,7 @@ function shouldIncludeTemplateRaw(record2, key3, includeTemplateRaw) {
135624
135624
  }
135625
135625
  var FNV_OFFSET_BASIS, FNV_PRIME, IGNORED_KEYS;
135626
135626
  var init_hash = __esm({
135627
- "packages/safejs/src/parse/hash.ts"() {
135627
+ "packages/safe-js/src/parse/hash.ts"() {
135628
135628
  "use strict";
135629
135629
  init_parser3();
135630
135630
  FNV_OFFSET_BASIS = 2166136261;
@@ -135633,7 +135633,7 @@ var init_hash = __esm({
135633
135633
  }
135634
135634
  });
135635
135635
 
135636
- // packages/safejs/src/interp/resources.ts
135636
+ // packages/safe-js/src/interp/resources.ts
135637
135637
  import { AsyncLocalStorage as AsyncLocalStorage3 } from "node:async_hooks";
135638
135638
  async function withRunResources(signal, execute2) {
135639
135639
  const controller = new AbortController();
@@ -135668,13 +135668,13 @@ async function withRunResources(signal, execute2) {
135668
135668
  }
135669
135669
  var runResources;
135670
135670
  var init_resources = __esm({
135671
- "packages/safejs/src/interp/resources.ts"() {
135671
+ "packages/safe-js/src/interp/resources.ts"() {
135672
135672
  "use strict";
135673
135673
  runResources = new AsyncLocalStorage3();
135674
135674
  }
135675
135675
  });
135676
135676
 
135677
- // packages/safejs/src/observability/otel.ts
135677
+ // packages/safe-js/src/observability/otel.ts
135678
135678
  function bindOtelSpan(value, span) {
135679
135679
  spanByAsyncValue.set(value, span);
135680
135680
  }
@@ -135754,7 +135754,7 @@ function readErrorMessage3(error3) {
135754
135754
  }
135755
135755
  var noopOtelSpan2, spanByAsyncValue, activeSpans, activeSinks;
135756
135756
  var init_otel2 = __esm({
135757
- "packages/safejs/src/observability/otel.ts"() {
135757
+ "packages/safe-js/src/observability/otel.ts"() {
135758
135758
  "use strict";
135759
135759
  noopOtelSpan2 = {
135760
135760
  setAttribute: () => void 0,
@@ -135767,7 +135767,7 @@ var init_otel2 = __esm({
135767
135767
  }
135768
135768
  });
135769
135769
 
135770
- // packages/safejs/src/interp/float32.ts
135770
+ // packages/safe-js/src/interp/float32.ts
135771
135771
  function isFloat32Array(value) {
135772
135772
  return ArrayBuffer.isView(value) && Object.getPrototypeOf(value) === Float32Array.prototype && Reflect.apply(readTag, value, []) === "Float32Array";
135773
135773
  }
@@ -135823,7 +135823,7 @@ function copyFloat32Storage(value, state) {
135823
135823
  }
135824
135824
  var typedArrayPrototype, readLength, readOffset, readBuffer, readTag, bufferLength, bufferResizable;
135825
135825
  var init_float32 = __esm({
135826
- "packages/safejs/src/interp/float32.ts"() {
135826
+ "packages/safe-js/src/interp/float32.ts"() {
135827
135827
  "use strict";
135828
135828
  typedArrayPrototype = Object.getPrototypeOf(Float32Array.prototype);
135829
135829
  readLength = Object.getOwnPropertyDescriptor(typedArrayPrototype, "length").get;
@@ -135835,7 +135835,7 @@ var init_float32 = __esm({
135835
135835
  }
135836
135836
  });
135837
135837
 
135838
- // packages/safejs/src/interp/budget.ts
135838
+ // packages/safe-js/src/interp/budget.ts
135839
135839
  function allocateRegexSteps(steps) {
135840
135840
  if (!Number.isInteger(steps) || steps < 0) {
135841
135841
  throw new Error("steps must be a non-negative integer.");
@@ -135861,7 +135861,7 @@ function normalizeLimit(name, value) {
135861
135861
  }
135862
135862
  var REGEX_STEP_LIMIT, DEADLINE_CHECK_INTERVAL, SandboxError, Budget;
135863
135863
  var init_budget2 = __esm({
135864
- "packages/safejs/src/interp/budget.ts"() {
135864
+ "packages/safe-js/src/interp/budget.ts"() {
135865
135865
  "use strict";
135866
135866
  init_shape();
135867
135867
  REGEX_STEP_LIMIT = 2e3;
@@ -136089,7 +136089,7 @@ var init_budget2 = __esm({
136089
136089
  }
136090
136090
  });
136091
136091
 
136092
- // packages/safejs/src/interp/promise-tracker.ts
136092
+ // packages/safe-js/src/interp/promise-tracker.ts
136093
136093
  import { AsyncLocalStorage as AsyncLocalStorage4 } from "node:async_hooks";
136094
136094
  function assertPromiseExecutionAllowed() {
136095
136095
  const failure = activePromiseTracker.getStore()?.failure;
@@ -136125,7 +136125,7 @@ async function flushPromiseJobs() {
136125
136125
  }
136126
136126
  var SandboxPromiseRejectionTracker, activePromiseTracker, fatalRejectionCleanup;
136127
136127
  var init_promise_tracker = __esm({
136128
- "packages/safejs/src/interp/promise-tracker.ts"() {
136128
+ "packages/safe-js/src/interp/promise-tracker.ts"() {
136129
136129
  "use strict";
136130
136130
  init_budget2();
136131
136131
  SandboxPromiseRejectionTracker = class {
@@ -136209,7 +136209,7 @@ var init_promise_tracker = __esm({
136209
136209
  }
136210
136210
  });
136211
136211
 
136212
- // packages/safejs/src/interp/arguments.ts
136212
+ // packages/safe-js/src/interp/arguments.ts
136213
136213
  function createSandboxArguments(values) {
136214
136214
  const result = /* @__PURE__ */ (function() {
136215
136215
  return arguments;
@@ -136254,13 +136254,13 @@ function copySandboxArgumentProperties(source, target, copyValue) {
136254
136254
  }
136255
136255
  var sandboxArgumentsBrand;
136256
136256
  var init_arguments = __esm({
136257
- "packages/safejs/src/interp/arguments.ts"() {
136257
+ "packages/safe-js/src/interp/arguments.ts"() {
136258
136258
  "use strict";
136259
136259
  sandboxArgumentsBrand = /* @__PURE__ */ Symbol("SandboxArguments");
136260
136260
  }
136261
136261
  });
136262
136262
 
136263
- // packages/safejs/src/graph-depth.ts
136263
+ // packages/safe-js/src/graph-depth.ts
136264
136264
  function assertSandboxDataDepth(depth) {
136265
136265
  if (depth > MAX_DATA_DEPTH) {
136266
136266
  throw new SandboxError({ budget: "dataDepth", current: depth, limit: MAX_DATA_DEPTH });
@@ -136324,7 +136324,7 @@ function graphEntries(value) {
136324
136324
  }
136325
136325
  var MAX_DATA_DEPTH, SnapshotBudgetError;
136326
136326
  var init_graph_depth = __esm({
136327
- "packages/safejs/src/graph-depth.ts"() {
136327
+ "packages/safe-js/src/graph-depth.ts"() {
136328
136328
  "use strict";
136329
136329
  init_shape();
136330
136330
  init_budget2();
@@ -136348,7 +136348,7 @@ var init_graph_depth = __esm({
136348
136348
  }
136349
136349
  });
136350
136350
 
136351
- // packages/safejs/src/snapshot/arguments.ts
136351
+ // packages/safe-js/src/snapshot/arguments.ts
136352
136352
  function serializeArguments(value, serializeValue) {
136353
136353
  const properties = /* @__PURE__ */ Object.create(null);
136354
136354
  for (const [key3, descriptor] of Object.entries(Object.getOwnPropertyDescriptors(value))) {
@@ -136381,12 +136381,12 @@ function serializeArguments(value, serializeValue) {
136381
136381
  };
136382
136382
  }
136383
136383
  var init_arguments2 = __esm({
136384
- "packages/safejs/src/snapshot/arguments.ts"() {
136384
+ "packages/safe-js/src/snapshot/arguments.ts"() {
136385
136385
  "use strict";
136386
136386
  }
136387
136387
  });
136388
136388
 
136389
- // packages/safejs/src/snapshot/arrays.ts
136389
+ // packages/safe-js/src/snapshot/arrays.ts
136390
136390
  function requiresArrayEntries(value) {
136391
136391
  const keys = Object.keys(value);
136392
136392
  return keys.length !== value.length || keys.some((key3, index) => key3 !== String(index));
@@ -136415,12 +136415,12 @@ function serializeArray(value, serializeValue) {
136415
136415
  return { kind: "array", length: value.length, entries };
136416
136416
  }
136417
136417
  var init_arrays = __esm({
136418
- "packages/safejs/src/snapshot/arrays.ts"() {
136418
+ "packages/safe-js/src/snapshot/arrays.ts"() {
136419
136419
  "use strict";
136420
136420
  }
136421
136421
  });
136422
136422
 
136423
- // packages/safejs/src/snapshot/float32array.ts
136423
+ // packages/safe-js/src/snapshot/float32array.ts
136424
136424
  function encodeFloat32Storage(value, id, buffers, reference) {
136425
136425
  const storage2 = float32Storage(value);
136426
136426
  const existing = buffers.get(storage2.buffer);
@@ -136456,13 +136456,13 @@ function decodeFloat32Storage(value, resolve17) {
136456
136456
  return new Float32Array(buffer, Number(value.byteOffset), Number(value.length));
136457
136457
  }
136458
136458
  var init_float32array = __esm({
136459
- "packages/safejs/src/snapshot/float32array.ts"() {
136459
+ "packages/safe-js/src/snapshot/float32array.ts"() {
136460
136460
  "use strict";
136461
136461
  init_float32();
136462
136462
  }
136463
136463
  });
136464
136464
 
136465
- // packages/safejs/src/snapshot/dump-format.ts
136465
+ // packages/safe-js/src/snapshot/dump-format.ts
136466
136466
  function serializeSafeJSSnapshot(snapshot2) {
136467
136467
  const replayError = Object.getOwnPropertyDescriptor(snapshot2, "replayError");
136468
136468
  if (replayError !== void 0) {
@@ -136670,7 +136670,7 @@ function getEnumerableDataValues(value) {
136670
136670
  }
136671
136671
  var DUMP_FORMAT_VERSION, EXECUTION_SEMANTICS, SKIP_VALUE;
136672
136672
  var init_dump_format = __esm({
136673
- "packages/safejs/src/snapshot/dump-format.ts"() {
136673
+ "packages/safe-js/src/snapshot/dump-format.ts"() {
136674
136674
  "use strict";
136675
136675
  init_graph_depth();
136676
136676
  init_shape();
@@ -136685,7 +136685,7 @@ var init_dump_format = __esm({
136685
136685
  }
136686
136686
  });
136687
136687
 
136688
- // packages/safejs/src/snapshot/validation.ts
136688
+ // packages/safe-js/src/snapshot/validation.ts
136689
136689
  import { types } from "node:util";
136690
136690
  function validateSnapshotData(value) {
136691
136691
  validateGenericValue(value, "$", 0, {
@@ -137097,7 +137097,7 @@ function fail2(code, path191, detail) {
137097
137097
  }
137098
137098
  var DEFAULT_MAX_DEPTH, DEFAULT_MAX_ENTRIES, DEFAULT_MAX_STRING_LENGTH, DEFAULT_MAX_DATA_SIZE, TAGGED_VALUE_KINDS, SnapshotValidationError;
137099
137099
  var init_validation = __esm({
137100
- "packages/safejs/src/snapshot/validation.ts"() {
137100
+ "packages/safe-js/src/snapshot/validation.ts"() {
137101
137101
  "use strict";
137102
137102
  init_shape();
137103
137103
  init_dump_format();
@@ -137136,7 +137136,7 @@ var init_validation = __esm({
137136
137136
  }
137137
137137
  });
137138
137138
 
137139
- // packages/safejs/src/interp/promise-replay.ts
137139
+ // packages/safe-js/src/interp/promise-replay.ts
137140
137140
  import { AsyncLocalStorage as AsyncLocalStorage5 } from "node:async_hooks";
137141
137141
  function validateReplay(value) {
137142
137142
  validateSnapshotData(value);
@@ -137215,7 +137215,7 @@ function isCounter(value) {
137215
137215
  }
137216
137216
  var PromiseReplay, promiseReplayContext;
137217
137217
  var init_promise_replay = __esm({
137218
- "packages/safejs/src/interp/promise-replay.ts"() {
137218
+ "packages/safe-js/src/interp/promise-replay.ts"() {
137219
137219
  "use strict";
137220
137220
  init_validation();
137221
137221
  init_budget2();
@@ -137490,7 +137490,7 @@ var init_promise_replay = __esm({
137490
137490
  }
137491
137491
  });
137492
137492
 
137493
- // packages/safejs/src/snapshot/replay-data.ts
137493
+ // packages/safe-js/src/snapshot/replay-data.ts
137494
137494
  function encodeReplayData(value, options = {}) {
137495
137495
  const nodes = [];
137496
137496
  const seen = /* @__PURE__ */ new WeakMap();
@@ -137781,7 +137781,7 @@ function own(value, key3) {
137781
137781
  }
137782
137782
  var MissingReplayCapabilityError;
137783
137783
  var init_replay_data = __esm({
137784
- "packages/safejs/src/snapshot/replay-data.ts"() {
137784
+ "packages/safe-js/src/snapshot/replay-data.ts"() {
137785
137785
  "use strict";
137786
137786
  init_graph_depth();
137787
137787
  init_float32();
@@ -137795,7 +137795,7 @@ var init_replay_data = __esm({
137795
137795
  }
137796
137796
  });
137797
137797
 
137798
- // packages/safejs/src/snapshot/policy.ts
137798
+ // packages/safe-js/src/snapshot/policy.ts
137799
137799
  function registerPendingHostCallPolicy(registration) {
137800
137800
  const moduleId = readRequiredString2(registration.moduleId, "moduleId");
137801
137801
  const operation = readRequiredString2(registration.operation, "operation");
@@ -137803,6 +137803,9 @@ function registerPendingHostCallPolicy(registration) {
137803
137803
  MODULE_PENDING_HOST_CALL_POLICIES[moduleId] ??= /* @__PURE__ */ Object.create(null);
137804
137804
  MODULE_PENDING_HOST_CALL_POLICIES[moduleId][operation] = policy;
137805
137805
  }
137806
+ function readRegisteredPendingHostCallPolicy(moduleId, operation) {
137807
+ return MODULE_PENDING_HOST_CALL_POLICIES[moduleId]?.[operation];
137808
+ }
137806
137809
  function pendingHostCallResumeIdentityMatches(expected, actual) {
137807
137810
  return actual.callId === expected.callId && actual.sourceHash === expected.sourceHash && actual.moduleId === expected.moduleId && actual.operation === expected.operation && actual.argumentDigest === expected.argumentDigest;
137808
137811
  }
@@ -137821,7 +137824,7 @@ function readPendingHostCallPolicyModeValue(value) {
137821
137824
  }
137822
137825
  var MODULE_PENDING_HOST_CALL_POLICIES;
137823
137826
  var init_policy = __esm({
137824
- "packages/safejs/src/snapshot/policy.ts"() {
137827
+ "packages/safe-js/src/snapshot/policy.ts"() {
137825
137828
  "use strict";
137826
137829
  MODULE_PENDING_HOST_CALL_POLICIES = Object.assign(
137827
137830
  /* @__PURE__ */ Object.create(null),
@@ -137844,7 +137847,7 @@ var init_policy = __esm({
137844
137847
  }
137845
137848
  });
137846
137849
 
137847
- // packages/safejs/src/interp/host-call.ts
137850
+ // packages/safe-js/src/interp/host-call.ts
137848
137851
  import { createHash as createHash13, randomUUID as randomUUID49 } from "node:crypto";
137849
137852
  function copyOutcome(outcome) {
137850
137853
  return outcome.status === "fulfilled" ? { status: "fulfilled", value: cloneSandboxValue(outcome.value) } : { status: "rejected", reason: cloneSandboxValue(outcome.reason) };
@@ -138063,7 +138066,7 @@ function normalize2(value, seen) {
138063
138066
  }
138064
138067
  var HostCallResumabilityError, UnresolvedReplayCapabilityError, HostCallJournal;
138065
138068
  var init_host_call = __esm({
138066
- "packages/safejs/src/interp/host-call.ts"() {
138069
+ "packages/safe-js/src/interp/host-call.ts"() {
138067
138070
  "use strict";
138068
138071
  init_float32();
138069
138072
  init_values();
@@ -138444,7 +138447,7 @@ var init_host_call = __esm({
138444
138447
  }
138445
138448
  });
138446
138449
 
138447
- // packages/safejs/src/interp/exceptions.ts
138450
+ // packages/safe-js/src/interp/exceptions.ts
138448
138451
  async function evaluateThrowStatement(node, context, evaluateNode3) {
138449
138452
  const argument = await evaluateNode3(node.argument, context);
138450
138453
  if (argument.kind !== "normal") {
@@ -138864,7 +138867,7 @@ function copyObjectRest(value, excludedKeys) {
138864
138867
  }
138865
138868
  var capturedExceptionBrand;
138866
138869
  var init_exceptions = __esm({
138867
- "packages/safejs/src/interp/exceptions.ts"() {
138870
+ "packages/safe-js/src/interp/exceptions.ts"() {
138868
138871
  "use strict";
138869
138872
  init_shape();
138870
138873
  init_budget2();
@@ -138875,7 +138878,7 @@ var init_exceptions = __esm({
138875
138878
  }
138876
138879
  });
138877
138880
 
138878
- // packages/safejs/src/interp/running-state.ts
138881
+ // packages/safe-js/src/interp/running-state.ts
138879
138882
  function enterRunningState(object) {
138880
138883
  if (runningObjects.has(object)) {
138881
138884
  throw new SandboxError("reentry");
@@ -138915,7 +138918,7 @@ function assertSnapshotInactive(snapshot2) {
138915
138918
  }
138916
138919
  var runningObjects, lockedCollections, activeSnapshots;
138917
138920
  var init_running_state = __esm({
138918
- "packages/safejs/src/interp/running-state.ts"() {
138921
+ "packages/safe-js/src/interp/running-state.ts"() {
138919
138922
  "use strict";
138920
138923
  init_budget2();
138921
138924
  runningObjects = /* @__PURE__ */ new WeakSet();
@@ -138924,7 +138927,7 @@ var init_running_state = __esm({
138924
138927
  }
138925
138928
  });
138926
138929
 
138927
- // packages/safejs/src/interp/iteration.ts
138930
+ // packages/safe-js/src/interp/iteration.ts
138928
138931
  function getSandboxIterator(value) {
138929
138932
  if (isFloat32Array(value)) {
138930
138933
  return syncIterator(Float32Array.prototype.values.call(value));
@@ -139022,7 +139025,7 @@ function syncIterator(iterator) {
139022
139025
  };
139023
139026
  }
139024
139027
  var init_iteration = __esm({
139025
- "packages/safejs/src/interp/iteration.ts"() {
139028
+ "packages/safe-js/src/interp/iteration.ts"() {
139026
139029
  "use strict";
139027
139030
  init_values();
139028
139031
  init_running_state();
@@ -139030,7 +139033,7 @@ var init_iteration = __esm({
139030
139033
  }
139031
139034
  });
139032
139035
 
139033
- // packages/safejs/src/interp/jobs.ts
139036
+ // packages/safe-js/src/interp/jobs.ts
139034
139037
  import { AsyncLocalStorage as AsyncLocalStorage6 } from "node:async_hooks";
139035
139038
  function runPromiseJob(task) {
139036
139039
  const job = activeJob.getStore();
@@ -139063,7 +139066,7 @@ async function suspendJob(pending) {
139063
139066
  }
139064
139067
  var activeJob, SandboxJobQueue;
139065
139068
  var init_jobs4 = __esm({
139066
- "packages/safejs/src/interp/jobs.ts"() {
139069
+ "packages/safe-js/src/interp/jobs.ts"() {
139067
139070
  "use strict";
139068
139071
  activeJob = new AsyncLocalStorage6();
139069
139072
  SandboxJobQueue = class {
@@ -139122,7 +139125,7 @@ var init_jobs4 = __esm({
139122
139125
  }
139123
139126
  });
139124
139127
 
139125
- // packages/safejs/src/interp/promise.ts
139128
+ // packages/safe-js/src/interp/promise.ts
139126
139129
  function isSandboxPromiseConstructor(value) {
139127
139130
  return isSandboxClosure(value) && promiseConstructors.has(value);
139128
139131
  }
@@ -139858,7 +139861,7 @@ function isPromiseLike3(value) {
139858
139861
  }
139859
139862
  var promiseConstructors, intrinsicPromiseConstructors, promisePrototypes;
139860
139863
  var init_promise = __esm({
139861
- "packages/safejs/src/interp/promise.ts"() {
139864
+ "packages/safe-js/src/interp/promise.ts"() {
139862
139865
  "use strict";
139863
139866
  init_budget2();
139864
139867
  init_exceptions();
@@ -139872,7 +139875,7 @@ var init_promise = __esm({
139872
139875
  }
139873
139876
  });
139874
139877
 
139875
- // packages/safejs/src/interp/cancel.ts
139878
+ // packages/safe-js/src/interp/cancel.ts
139876
139879
  import { AsyncLocalStorage as AsyncLocalStorage7 } from "node:async_hooks";
139877
139880
  function withCancellationSignal(signal, task) {
139878
139881
  return activeCancellation.run({ signal, host: false }, task);
@@ -140047,7 +140050,7 @@ function isPromiseLike4(value) {
140047
140050
  }
140048
140051
  var activeCancellation, sandboxPromises, cancelableOutcomes;
140049
140052
  var init_cancel2 = __esm({
140050
- "packages/safejs/src/interp/cancel.ts"() {
140053
+ "packages/safe-js/src/interp/cancel.ts"() {
140051
140054
  "use strict";
140052
140055
  init_values();
140053
140056
  init_promise_tracker();
@@ -140059,7 +140062,7 @@ var init_cancel2 = __esm({
140059
140062
  }
140060
140063
  });
140061
140064
 
140062
- // packages/safejs/src/interp/values.ts
140065
+ // packages/safe-js/src/interp/values.ts
140063
140066
  function createSandboxClosure(input) {
140064
140067
  const closure = {
140065
140068
  kind: "fn",
@@ -140746,7 +140749,7 @@ function joinArrayPath(path191, key3) {
140746
140749
  }
140747
140750
  var sandboxClosureBrand, sandboxGeneratorBrand, sandboxMapBrand, sandboxPromiseBrand, sandboxRegexBrand, sandboxRegexPattern, sandboxSetBrand, sandboxRetainedValues;
140748
140751
  var init_values = __esm({
140749
- "packages/safejs/src/interp/values.ts"() {
140752
+ "packages/safe-js/src/interp/values.ts"() {
140750
140753
  "use strict";
140751
140754
  init_otel2();
140752
140755
  init_float32();
@@ -140770,7 +140773,7 @@ var init_values = __esm({
140770
140773
  }
140771
140774
  });
140772
140775
 
140773
- // packages/safejs/src/interp/globals/math.ts
140776
+ // packages/safe-js/src/interp/globals/math.ts
140774
140777
  function createMathGlobals(options = {}) {
140775
140778
  const random = options.random ?? Math.random;
140776
140779
  const mathObject = {
@@ -140818,7 +140821,7 @@ function normalizeSeed(seed) {
140818
140821
  }
140819
140822
  var mathMethods;
140820
140823
  var init_math = __esm({
140821
- "packages/safejs/src/interp/globals/math.ts"() {
140824
+ "packages/safe-js/src/interp/globals/math.ts"() {
140822
140825
  "use strict";
140823
140826
  init_values();
140824
140827
  mathMethods = {
@@ -140860,7 +140863,7 @@ var init_math = __esm({
140860
140863
  }
140861
140864
  });
140862
140865
 
140863
- // packages/safejs/src/random.ts
140866
+ // packages/safe-js/src/random.ts
140864
140867
  import { randomInt } from "node:crypto";
140865
140868
  function createReplayableRandom(options = {}) {
140866
140869
  const snapshot2 = options.snapshot;
@@ -140875,13 +140878,13 @@ function createReplayableRandom(options = {}) {
140875
140878
  return { seed: saved?.seed ?? generator.snapshot(), ...generator };
140876
140879
  }
140877
140880
  var init_random = __esm({
140878
- "packages/safejs/src/random.ts"() {
140881
+ "packages/safe-js/src/random.ts"() {
140879
140882
  "use strict";
140880
140883
  init_math();
140881
140884
  }
140882
140885
  });
140883
140886
 
140884
- // packages/safejs/src/snapshot/migration.ts
140887
+ // packages/safe-js/src/snapshot/migration.ts
140885
140888
  function validateMigrationSemantics(value) {
140886
140889
  if (!["jobs-v1", "jobs-v2", "jobs-v3", "jobs-v4", "jobs-v5", "jobs-v6", "jobs-v7"].includes(
140887
140890
  value
@@ -140966,7 +140969,7 @@ function isCheckpointDigest(value) {
140966
140969
  return typeof value === "string" && value.length === 64 && [...value].every((character2) => "0123456789abcdef".includes(character2));
140967
140970
  }
140968
140971
  var init_migration = __esm({
140969
- "packages/safejs/src/snapshot/migration.ts"() {
140972
+ "packages/safe-js/src/snapshot/migration.ts"() {
140970
140973
  "use strict";
140971
140974
  init_host_call();
140972
140975
  init_replay_data();
@@ -140974,7 +140977,7 @@ var init_migration = __esm({
140974
140977
  }
140975
140978
  });
140976
140979
 
140977
- // packages/safejs/src/restore.ts
140980
+ // packages/safe-js/src/restore.ts
140978
140981
  function restore2(snapshot2, options) {
140979
140982
  assertSnapshotInactive(snapshot2);
140980
140983
  validateDumpEnvelope(snapshot2);
@@ -140994,7 +140997,7 @@ function restore2(snapshot2, options) {
140994
140997
  }
140995
140998
  var SnapshotMismatchError;
140996
140999
  var init_restore = __esm({
140997
- "packages/safejs/src/restore.ts"() {
141000
+ "packages/safe-js/src/restore.ts"() {
140998
141001
  "use strict";
140999
141002
  init_hash();
141000
141003
  init_shape();
@@ -141018,7 +141021,7 @@ var init_restore = __esm({
141018
141021
  }
141019
141022
  });
141020
141023
 
141021
- // packages/safejs/src/interp/generator.ts
141024
+ // packages/safe-js/src/interp/generator.ts
141022
141025
  function createGeneratorChannel(body) {
141023
141026
  let state = "unstarted";
141024
141027
  let signal = deferred();
@@ -141116,13 +141119,13 @@ function deferred() {
141116
141119
  return { promise, reject, resolve: resolve17 };
141117
141120
  }
141118
141121
  var init_generator = __esm({
141119
- "packages/safejs/src/interp/generator.ts"() {
141122
+ "packages/safe-js/src/interp/generator.ts"() {
141120
141123
  "use strict";
141121
141124
  init_running_state();
141122
141125
  }
141123
141126
  });
141124
141127
 
141125
- // packages/safejs/src/interp/patterns.ts
141128
+ // packages/safe-js/src/interp/patterns.ts
141126
141129
  async function bindPattern2(pattern, value, target, scope, context) {
141127
141130
  switch (pattern.type) {
141128
141131
  case "Identifier":
@@ -141330,13 +141333,13 @@ function defineProperty(target, key3, value) {
141330
141333
  });
141331
141334
  }
141332
141335
  var init_patterns = __esm({
141333
- "packages/safejs/src/interp/patterns.ts"() {
141336
+ "packages/safe-js/src/interp/patterns.ts"() {
141334
141337
  "use strict";
141335
141338
  init_values();
141336
141339
  }
141337
141340
  });
141338
141341
 
141339
- // packages/safejs/src/interp/var-hoist.ts
141342
+ // packages/safe-js/src/interp/var-hoist.ts
141340
141343
  function hoistVarDeclarations(node, scope) {
141341
141344
  for (const declaration of hoistedVarDeclarations([node])) {
141342
141345
  for (const declarator of declaration.declarations) {
@@ -141347,13 +141350,13 @@ function hoistVarDeclarations(node, scope) {
141347
141350
  }
141348
141351
  }
141349
141352
  var init_var_hoist = __esm({
141350
- "packages/safejs/src/interp/var-hoist.ts"() {
141353
+ "packages/safe-js/src/interp/var-hoist.ts"() {
141351
141354
  "use strict";
141352
141355
  init_bindings();
141353
141356
  }
141354
141357
  });
141355
141358
 
141356
- // packages/safejs/src/interp/async.ts
141359
+ // packages/safe-js/src/interp/async.ts
141357
141360
  function emitResumeBreakpoint(context, breakpoint) {
141358
141361
  context.onYield?.({
141359
141362
  ...breakpoint,
@@ -141618,7 +141621,7 @@ function normalizeClosureResult(result, budget) {
141618
141621
  });
141619
141622
  }
141620
141623
  var init_async = __esm({
141621
- "packages/safejs/src/interp/async.ts"() {
141624
+ "packages/safe-js/src/interp/async.ts"() {
141622
141625
  "use strict";
141623
141626
  init_generator();
141624
141627
  init_otel2();
@@ -141632,7 +141635,7 @@ var init_async = __esm({
141632
141635
  }
141633
141636
  });
141634
141637
 
141635
- // packages/safejs/src/interp/host-bridge.ts
141638
+ // packages/safe-js/src/interp/host-bridge.ts
141636
141639
  function declareHostOperation(operation, policy, options = {}) {
141637
141640
  hostOperationPolicies.set(operation, policy);
141638
141641
  if (options.onReplay !== void 0) hostOperationReplayHandlers.set(operation, options.onReplay);
@@ -141684,10 +141687,10 @@ function wrapCallerInjectedFunction(name, value, options, state) {
141684
141687
  const hostArgs = deepCopyFromSandbox([...args], {
141685
141688
  wrapClosure: (closure) => wrapSandboxClosureForHost(closure, stackFrames, options.budget, callbacks)
141686
141689
  });
141687
- const policy = readHostOperationPolicy(value) ?? "re-issue";
141688
141690
  const hostCalls = options.hostCalls;
141689
141691
  const operation = options.operation ?? bindingName;
141690
141692
  const moduleId = options.moduleId ?? "<bindings>";
141693
+ const policy = readHostOperationPolicy(value) ?? readRegisteredPendingHostCallPolicy(moduleId, operation) ?? "re-issue";
141691
141694
  if (hostCalls === void 0) {
141692
141695
  return copyHostResultToSandbox(
141693
141696
  invokeHostCallback(() => Reflect.apply(callable, void 0, hostArgs), options),
@@ -142507,7 +142510,7 @@ function describeValue2(value) {
142507
142510
  }
142508
142511
  var AsyncFunction, hostErrorMetadata, hostOperationPolicies, hostOperationReplayHandlers;
142509
142512
  var init_host_bridge = __esm({
142510
- "packages/safejs/src/interp/host-bridge.ts"() {
142513
+ "packages/safe-js/src/interp/host-bridge.ts"() {
142511
142514
  "use strict";
142512
142515
  init_async();
142513
142516
  init_shape();
@@ -142515,6 +142518,7 @@ var init_host_bridge = __esm({
142515
142518
  init_float32();
142516
142519
  init_exceptions();
142517
142520
  init_otel2();
142521
+ init_policy();
142518
142522
  init_host_call();
142519
142523
  init_values();
142520
142524
  init_running_state();
@@ -142534,7 +142538,7 @@ var init_host_bridge = __esm({
142534
142538
  }
142535
142539
  });
142536
142540
 
142537
- // packages/safejs/src/interp/globals/console-json.ts
142541
+ // packages/safe-js/src/interp/globals/console-json.ts
142538
142542
  function createConsoleJsonGlobals(options) {
142539
142543
  const sink = options.sink ?? console;
142540
142544
  return {
@@ -142809,14 +142813,14 @@ function defineDataProperty8(target, key3, value) {
142809
142813
  });
142810
142814
  }
142811
142815
  var init_console_json = __esm({
142812
- "packages/safejs/src/interp/globals/console-json.ts"() {
142816
+ "packages/safe-js/src/interp/globals/console-json.ts"() {
142813
142817
  "use strict";
142814
142818
  init_host_bridge();
142815
142819
  init_values();
142816
142820
  }
142817
142821
  });
142818
142822
 
142819
- // packages/safejs/src/interp/globals/collections.ts
142823
+ // packages/safe-js/src/interp/globals/collections.ts
142820
142824
  function createCollectionGlobals(options) {
142821
142825
  const mapConstructor = createSandboxClosure({
142822
142826
  sandbox: true,
@@ -142924,7 +142928,7 @@ function createBudgetedSet(values, budget) {
142924
142928
  }
142925
142929
  var mapConstructors, setConstructors;
142926
142930
  var init_collections = __esm({
142927
- "packages/safejs/src/interp/globals/collections.ts"() {
142931
+ "packages/safe-js/src/interp/globals/collections.ts"() {
142928
142932
  "use strict";
142929
142933
  init_iteration();
142930
142934
  init_values();
@@ -142933,7 +142937,7 @@ var init_collections = __esm({
142933
142937
  }
142934
142938
  });
142935
142939
 
142936
- // packages/safejs/src/interp/globals/float32array.ts
142940
+ // packages/safe-js/src/interp/globals/float32array.ts
142937
142941
  function createFloat32ArrayGlobal(budget) {
142938
142942
  const constructor = createSandboxClosure({
142939
142943
  sandbox: true,
@@ -143058,7 +143062,7 @@ function relativeIndex(value, length, fallback) {
143058
143062
  }
143059
143063
  var constructors;
143060
143064
  var init_float32array2 = __esm({
143061
- "packages/safejs/src/interp/globals/float32array.ts"() {
143065
+ "packages/safe-js/src/interp/globals/float32array.ts"() {
143062
143066
  "use strict";
143063
143067
  init_float32();
143064
143068
  init_values();
@@ -143066,7 +143070,7 @@ var init_float32array2 = __esm({
143066
143070
  }
143067
143071
  });
143068
143072
 
143069
- // packages/safejs/src/interp/globals/error.ts
143073
+ // packages/safe-js/src/interp/globals/error.ts
143070
143074
  function createErrorGlobals(options) {
143071
143075
  return Object.fromEntries(
143072
143076
  errorNames.map((name) => [name, createErrorConstructor(name, options.budget)])
@@ -143110,7 +143114,7 @@ function isObjectLike(value) {
143110
143114
  }
143111
143115
  var errorConstructorNames, errorNames;
143112
143116
  var init_error = __esm({
143113
- "packages/safejs/src/interp/globals/error.ts"() {
143117
+ "packages/safe-js/src/interp/globals/error.ts"() {
143114
143118
  "use strict";
143115
143119
  init_exceptions();
143116
143120
  init_values();
@@ -143126,7 +143130,7 @@ var init_error = __esm({
143126
143130
  }
143127
143131
  });
143128
143132
 
143129
- // packages/safejs/src/interp/globals/regex.ts
143133
+ // packages/safe-js/src/interp/globals/regex.ts
143130
143134
  function createRegexGlobals() {
143131
143135
  const construct = (args) => createSandboxRegex(String(args[0] ?? ""), String(args[1] ?? ""));
143132
143136
  return {
@@ -143134,13 +143138,13 @@ function createRegexGlobals() {
143134
143138
  };
143135
143139
  }
143136
143140
  var init_regex = __esm({
143137
- "packages/safejs/src/interp/globals/regex.ts"() {
143141
+ "packages/safe-js/src/interp/globals/regex.ts"() {
143138
143142
  "use strict";
143139
143143
  init_values();
143140
143144
  }
143141
143145
  });
143142
143146
 
143143
- // packages/safejs/src/interp/globals/misc.ts
143147
+ // packages/safe-js/src/interp/globals/misc.ts
143144
143148
  function createMiscGlobals(options) {
143145
143149
  return {
143146
143150
  structuredClone: createSandboxClosure({
@@ -143202,14 +143206,14 @@ function assertStructuredCloneable(value, seen) {
143202
143206
  }
143203
143207
  }
143204
143208
  var init_misc = __esm({
143205
- "packages/safejs/src/interp/globals/misc.ts"() {
143209
+ "packages/safe-js/src/interp/globals/misc.ts"() {
143206
143210
  "use strict";
143207
143211
  init_graph_depth();
143208
143212
  init_values();
143209
143213
  }
143210
143214
  });
143211
143215
 
143212
- // packages/safejs/src/interp/globals/object-array.ts
143216
+ // packages/safe-js/src/interp/globals/object-array.ts
143213
143217
  function createObjectArrayGlobals(options) {
143214
143218
  return {
143215
143219
  Object: {
@@ -143520,7 +143524,7 @@ function getTemplateRawParts(template2) {
143520
143524
  return raw;
143521
143525
  }
143522
143526
  var init_object_array = __esm({
143523
- "packages/safejs/src/interp/globals/object-array.ts"() {
143527
+ "packages/safe-js/src/interp/globals/object-array.ts"() {
143524
143528
  "use strict";
143525
143529
  init_shape();
143526
143530
  init_float32();
@@ -143530,7 +143534,7 @@ var init_object_array = __esm({
143530
143534
  }
143531
143535
  });
143532
143536
 
143533
- // packages/safejs/src/interp/methods/array.ts
143537
+ // packages/safe-js/src/interp/methods/array.ts
143534
143538
  function getArrayMember(value, property, options) {
143535
143539
  const index = getArrayIndex(property);
143536
143540
  if (index !== void 0) {
@@ -144121,7 +144125,7 @@ function toIntegerOrInfinity(value) {
144121
144125
  }
144122
144126
  var activeArrayCallbacks, arrayMethodNames;
144123
144127
  var init_array = __esm({
144124
- "packages/safejs/src/interp/methods/array.ts"() {
144128
+ "packages/safe-js/src/interp/methods/array.ts"() {
144125
144129
  "use strict";
144126
144130
  init_values();
144127
144131
  init_running_state();
@@ -144164,7 +144168,7 @@ var init_array = __esm({
144164
144168
  }
144165
144169
  });
144166
144170
 
144167
- // packages/safejs/src/interp/methods/function.ts
144171
+ // packages/safe-js/src/interp/methods/function.ts
144168
144172
  function getFunctionMember(target, property, options) {
144169
144173
  const propertyValue = target.properties?.[String(property)];
144170
144174
  if (propertyValue !== void 0 || Object.hasOwn(target.properties ?? {}, String(property))) {
@@ -144221,14 +144225,14 @@ function callFunctionMethod(target, methodName, args, options, stack) {
144221
144225
  }
144222
144226
  var functionMethodNames;
144223
144227
  var init_function = __esm({
144224
- "packages/safejs/src/interp/methods/function.ts"() {
144228
+ "packages/safe-js/src/interp/methods/function.ts"() {
144225
144229
  "use strict";
144226
144230
  init_values();
144227
144231
  functionMethodNames = /* @__PURE__ */ new Set(["apply", "bind", "call"]);
144228
144232
  }
144229
144233
  });
144230
144234
 
144231
- // packages/safejs/src/interp/methods/collection-callback.ts
144235
+ // packages/safe-js/src/interp/methods/collection-callback.ts
144232
144236
  function enterKeyedCollectionCallback(target, keys, budget) {
144233
144237
  let state = activeCallbacks.get(target);
144234
144238
  if (state === void 0) {
@@ -144289,14 +144293,14 @@ function updatePendingKeys(cursor2, mutation, key3) {
144289
144293
  }
144290
144294
  var activeCallbacks;
144291
144295
  var init_collection_callback = __esm({
144292
- "packages/safejs/src/interp/methods/collection-callback.ts"() {
144296
+ "packages/safe-js/src/interp/methods/collection-callback.ts"() {
144293
144297
  "use strict";
144294
144298
  init_running_state();
144295
144299
  activeCallbacks = /* @__PURE__ */ new WeakMap();
144296
144300
  }
144297
144301
  });
144298
144302
 
144299
- // packages/safejs/src/interp/methods/map.ts
144303
+ // packages/safe-js/src/interp/methods/map.ts
144300
144304
  function isMapMethodName(value) {
144301
144305
  return typeof value === "string" && mapMethodNames.has(value);
144302
144306
  }
@@ -144369,7 +144373,7 @@ async function callMapMethod(target, methodName, args, options, stack = []) {
144369
144373
  }
144370
144374
  var mapMethodNames;
144371
144375
  var init_map = __esm({
144372
- "packages/safejs/src/interp/methods/map.ts"() {
144376
+ "packages/safe-js/src/interp/methods/map.ts"() {
144373
144377
  "use strict";
144374
144378
  init_values();
144375
144379
  init_running_state();
@@ -144388,7 +144392,7 @@ var init_map = __esm({
144388
144392
  }
144389
144393
  });
144390
144394
 
144391
- // packages/safejs/src/interp/methods/number.ts
144395
+ // packages/safe-js/src/interp/methods/number.ts
144392
144396
  function getNumberMember(value, property, budget) {
144393
144397
  if (!isNumberMethodName(property)) {
144394
144398
  return void 0;
@@ -144453,7 +144457,7 @@ function toIntegerOrInfinity2(value) {
144453
144457
  }
144454
144458
  var numberMethodNames;
144455
144459
  var init_number = __esm({
144456
- "packages/safejs/src/interp/methods/number.ts"() {
144460
+ "packages/safe-js/src/interp/methods/number.ts"() {
144457
144461
  "use strict";
144458
144462
  init_values();
144459
144463
  numberMethodNames = /* @__PURE__ */ new Set([
@@ -144465,7 +144469,7 @@ var init_number = __esm({
144465
144469
  }
144466
144470
  });
144467
144471
 
144468
- // packages/safejs/src/interp/methods/generator.ts
144472
+ // packages/safe-js/src/interp/methods/generator.ts
144469
144473
  function getGeneratorMember(target, property, budget) {
144470
144474
  if (typeof property !== "string" || !generatorMethodNames.has(property)) {
144471
144475
  return void 0;
@@ -144485,7 +144489,7 @@ function getGeneratorMember(target, property, budget) {
144485
144489
  }
144486
144490
  var generatorMethodNames;
144487
144491
  var init_generator2 = __esm({
144488
- "packages/safejs/src/interp/methods/generator.ts"() {
144492
+ "packages/safe-js/src/interp/methods/generator.ts"() {
144489
144493
  "use strict";
144490
144494
  init_iteration();
144491
144495
  init_values();
@@ -144493,7 +144497,7 @@ var init_generator2 = __esm({
144493
144497
  }
144494
144498
  });
144495
144499
 
144496
- // packages/safejs/src/interp/regex/engine.ts
144500
+ // packages/safe-js/src/interp/regex/engine.ts
144497
144501
  function matchRegex(pattern, input, lastIndex = 0) {
144498
144502
  const startIndex = pattern.flags.global ? normalizeLastIndex(lastIndex) : 0;
144499
144503
  return matchRegexFrom(pattern, input, startIndex);
@@ -144723,13 +144727,13 @@ function isLineTerminator(character2) {
144723
144727
  return character2 === "\n" || character2 === "\r" || character2 === "\u2028" || character2 === "\u2029";
144724
144728
  }
144725
144729
  var init_engine2 = __esm({
144726
- "packages/safejs/src/interp/regex/engine.ts"() {
144730
+ "packages/safe-js/src/interp/regex/engine.ts"() {
144727
144731
  "use strict";
144728
144732
  init_budget2();
144729
144733
  }
144730
144734
  });
144731
144735
 
144732
- // packages/safejs/src/interp/methods/regex.ts
144736
+ // packages/safe-js/src/interp/methods/regex.ts
144733
144737
  function isRegexMethodName(property) {
144734
144738
  return typeof property === "string" && regexMethodNames.has(property);
144735
144739
  }
@@ -144774,7 +144778,7 @@ function toMatchArray(match, input) {
144774
144778
  }
144775
144779
  var regexMethodNames;
144776
144780
  var init_regex2 = __esm({
144777
- "packages/safejs/src/interp/methods/regex.ts"() {
144781
+ "packages/safe-js/src/interp/methods/regex.ts"() {
144778
144782
  "use strict";
144779
144783
  init_values();
144780
144784
  init_engine2();
@@ -144782,7 +144786,7 @@ var init_regex2 = __esm({
144782
144786
  }
144783
144787
  });
144784
144788
 
144785
- // packages/safejs/src/interp/methods/string.ts
144789
+ // packages/safe-js/src/interp/methods/string.ts
144786
144790
  function getStringMember(value, property, budget) {
144787
144791
  const index = getStringIndex(property);
144788
144792
  if (index !== void 0) {
@@ -145119,7 +145123,7 @@ function asStringOrUndefined(value) {
145119
145123
  }
145120
145124
  var SPLIT_STRING_MESSAGE, stringMethodNames;
145121
145125
  var init_string = __esm({
145122
- "packages/safejs/src/interp/methods/string.ts"() {
145126
+ "packages/safe-js/src/interp/methods/string.ts"() {
145123
145127
  "use strict";
145124
145128
  init_values();
145125
145129
  init_regex2();
@@ -145158,7 +145162,7 @@ var init_string = __esm({
145158
145162
  }
145159
145163
  });
145160
145164
 
145161
- // packages/safejs/src/interp/methods/set.ts
145165
+ // packages/safe-js/src/interp/methods/set.ts
145162
145166
  function isSetMethodName(value) {
145163
145167
  return typeof value === "string" && setMethodNames.has(value);
145164
145168
  }
@@ -145227,7 +145231,7 @@ async function callSetMethod(target, methodName, args, options, stack = []) {
145227
145231
  }
145228
145232
  var setMethodNames;
145229
145233
  var init_set = __esm({
145230
- "packages/safejs/src/interp/methods/set.ts"() {
145234
+ "packages/safe-js/src/interp/methods/set.ts"() {
145231
145235
  "use strict";
145232
145236
  init_values();
145233
145237
  init_running_state();
@@ -145245,7 +145249,7 @@ var init_set = __esm({
145245
145249
  }
145246
145250
  });
145247
145251
 
145248
- // packages/safejs/src/interp/scope.ts
145252
+ // packages/safe-js/src/interp/scope.ts
145249
145253
  function defineSnapshotBinding(target, name, value) {
145250
145254
  Object.defineProperty(target, name, {
145251
145255
  configurable: true,
@@ -145256,7 +145260,7 @@ function defineSnapshotBinding(target, name, value) {
145256
145260
  }
145257
145261
  var uninitialized, Scope;
145258
145262
  var init_scope = __esm({
145259
- "packages/safejs/src/interp/scope.ts"() {
145263
+ "packages/safe-js/src/interp/scope.ts"() {
145260
145264
  "use strict";
145261
145265
  uninitialized = /* @__PURE__ */ Symbol("uninitialized");
145262
145266
  Scope = class _Scope {
@@ -145470,7 +145474,7 @@ var init_scope = __esm({
145470
145474
  }
145471
145475
  });
145472
145476
 
145473
- // packages/safejs/src/interp/interpreter.ts
145477
+ // packages/safe-js/src/interp/interpreter.ts
145474
145478
  async function interpret(node, options = {}) {
145475
145479
  const budget = options.budget ?? new Budget();
145476
145480
  const scope = options.scope === void 0 ? new Scope(
@@ -147968,7 +147972,7 @@ function isPromiseLikeResult(value) {
147968
147972
  }
147969
147973
  var taggedTemplateRawArrays, dispatchTable;
147970
147974
  var init_interpreter = __esm({
147971
- "packages/safejs/src/interp/interpreter.ts"() {
147975
+ "packages/safe-js/src/interp/interpreter.ts"() {
147972
147976
  "use strict";
147973
147977
  init_promise_replay();
147974
147978
  init_promise_tracker();
@@ -148051,7 +148055,7 @@ var init_interpreter = __esm({
148051
148055
  }
148052
148056
  });
148053
148057
 
148054
- // packages/safejs/src/modules/registry.ts
148058
+ // packages/safe-js/src/modules/registry.ts
148055
148059
  function createUnknownModuleMessage2(moduleName, moduleNames) {
148056
148060
  if (moduleNames.length === 0) {
148057
148061
  return `Unknown module '${moduleName}'. No modules are registered.`;
@@ -148168,7 +148172,7 @@ function createBindingRecord(entries) {
148168
148172
  return Object.assign(/* @__PURE__ */ Object.create(null), entries);
148169
148173
  }
148170
148174
  var init_registry7 = __esm({
148171
- "packages/safejs/src/modules/registry.ts"() {
148175
+ "packages/safe-js/src/modules/registry.ts"() {
148172
148176
  "use strict";
148173
148177
  init_shape();
148174
148178
  init_cancel2();
@@ -148177,7 +148181,7 @@ var init_registry7 = __esm({
148177
148181
  }
148178
148182
  });
148179
148183
 
148180
- // packages/safejs/src/snapshot/dump.ts
148184
+ // packages/safe-js/src/snapshot/dump.ts
148181
148185
  function attachDumpController(result, controller) {
148182
148186
  Object.defineProperty(result, RUN_DUMP_CONTROLLER, {
148183
148187
  configurable: false,
@@ -148309,7 +148313,7 @@ function serializeRunSnapshot(snapshot2) {
148309
148313
  }
148310
148314
  var RUN_DUMP_CONTROLLER;
148311
148315
  var init_dump = __esm({
148312
- "packages/safejs/src/snapshot/dump.ts"() {
148316
+ "packages/safe-js/src/snapshot/dump.ts"() {
148313
148317
  "use strict";
148314
148318
  init_dump_format();
148315
148319
  init_budget2();
@@ -148317,7 +148321,7 @@ var init_dump = __esm({
148317
148321
  }
148318
148322
  });
148319
148323
 
148320
- // packages/safejs/src/error-codes.ts
148324
+ // packages/safe-js/src/error-codes.ts
148321
148325
  function getOwnErrorCode2(error3) {
148322
148326
  if (typeof error3 !== "object" || error3 === null || !Object.prototype.hasOwnProperty.call(error3, "code")) {
148323
148327
  return void 0;
@@ -148329,12 +148333,12 @@ function hasOwnErrorCode29(error3, code) {
148329
148333
  return getOwnErrorCode2(error3) === code;
148330
148334
  }
148331
148335
  var init_error_codes22 = __esm({
148332
- "packages/safejs/src/error-codes.ts"() {
148336
+ "packages/safe-js/src/error-codes.ts"() {
148333
148337
  "use strict";
148334
148338
  }
148335
148339
  });
148336
148340
 
148337
- // packages/safejs/src/snapshot/backend.ts
148341
+ // packages/safe-js/src/snapshot/backend.ts
148338
148342
  import { randomUUID as randomUUID50 } from "node:crypto";
148339
148343
  import { readFile as readFile52, rename as rename27, stat as stat33, unlink as unlink24, writeFile as writeFile28 } from "node:fs/promises";
148340
148344
  import { dirname as dirname12 } from "node:path";
@@ -148452,7 +148456,7 @@ function isLockedFileError(error3) {
148452
148456
  }
148453
148457
  var DEFAULT_WRITE_MAX_ATTEMPTS, DEFAULT_WRITE_RETRY_DELAY_MS, LOCKED_FILE_ERROR_CODES, pendingOperations, FileSnapshotBackend;
148454
148458
  var init_backend = __esm({
148455
- "packages/safejs/src/snapshot/backend.ts"() {
148459
+ "packages/safe-js/src/snapshot/backend.ts"() {
148456
148460
  "use strict";
148457
148461
  init_error_codes22();
148458
148462
  init_dump_format();
@@ -148506,7 +148510,7 @@ var init_backend = __esm({
148506
148510
  }
148507
148511
  });
148508
148512
 
148509
- // packages/safejs/src/snapshot/scheduler.ts
148513
+ // packages/safe-js/src/snapshot/scheduler.ts
148510
148514
  function createSnapshotScheduler(options) {
148511
148515
  const snapshotBackend = options.snapshotBackend ?? (options.snapshotPath === void 0 ? void 0 : new FileSnapshotBackend(options.snapshotPath, createFileSnapshotBackendOptions(options)));
148512
148516
  if (snapshotBackend === void 0) {
@@ -148591,17 +148595,17 @@ function createFileSnapshotBackendOptions(options) {
148591
148595
  }
148592
148596
  var DEFAULT_SNAPSHOT_INTERVAL_MS;
148593
148597
  var init_scheduler = __esm({
148594
- "packages/safejs/src/snapshot/scheduler.ts"() {
148598
+ "packages/safe-js/src/snapshot/scheduler.ts"() {
148595
148599
  "use strict";
148596
148600
  init_backend();
148597
148601
  DEFAULT_SNAPSHOT_INTERVAL_MS = 3e4;
148598
148602
  }
148599
148603
  });
148600
148604
 
148601
- // packages/safejs/src/snapshot/serialize.ts
148605
+ // packages/safe-js/src/snapshot/serialize.ts
148602
148606
  var UnsnapshotableValueError;
148603
148607
  var init_serialize = __esm({
148604
- "packages/safejs/src/snapshot/serialize.ts"() {
148608
+ "packages/safe-js/src/snapshot/serialize.ts"() {
148605
148609
  "use strict";
148606
148610
  init_hash();
148607
148611
  init_shape();
@@ -148624,7 +148628,7 @@ var init_serialize = __esm({
148624
148628
  }
148625
148629
  });
148626
148630
 
148627
- // packages/safejs/src/snapshot/replay-inputs.ts
148631
+ // packages/safe-js/src/snapshot/replay-inputs.ts
148628
148632
  function prepareReplayInputs(current, saved, preparePromise, onCapabilityRestored) {
148629
148633
  const identities = /* @__PURE__ */ new WeakMap();
148630
148634
  const capabilities = /* @__PURE__ */ new Map();
@@ -148719,7 +148723,7 @@ function assertReplayInputShape(restored) {
148719
148723
  }
148720
148724
  var validationPromise;
148721
148725
  var init_replay_inputs = __esm({
148722
- "packages/safejs/src/snapshot/replay-inputs.ts"() {
148726
+ "packages/safe-js/src/snapshot/replay-inputs.ts"() {
148723
148727
  "use strict";
148724
148728
  init_values();
148725
148729
  init_replay_data();
@@ -148727,7 +148731,7 @@ var init_replay_inputs = __esm({
148727
148731
  }
148728
148732
  });
148729
148733
 
148730
- // packages/safejs/src/run.ts
148734
+ // packages/safe-js/src/run.ts
148731
148735
  import { AsyncLocalStorage as AsyncLocalStorage8 } from "node:async_hooks";
148732
148736
  function run(source, options = {}) {
148733
148737
  const lifecycle = {
@@ -149253,7 +149257,7 @@ function createPendingAwaitSnapshot(yieldPoint) {
149253
149257
  }
149254
149258
  var UnhandledRejectionError, DEFAULT_MAX_CALL_DEPTH;
149255
149259
  var init_run7 = __esm({
149256
- "packages/safejs/src/run.ts"() {
149260
+ "packages/safe-js/src/run.ts"() {
149257
149261
  "use strict";
149258
149262
  init_hash();
149259
149263
  init_resources();
@@ -149301,16 +149305,16 @@ var init_run7 = __esm({
149301
149305
  }
149302
149306
  });
149303
149307
 
149304
- // packages/safejs/src/dump.ts
149308
+ // packages/safe-js/src/dump.ts
149305
149309
  var init_dump2 = __esm({
149306
- "packages/safejs/src/dump.ts"() {
149310
+ "packages/safe-js/src/dump.ts"() {
149307
149311
  "use strict";
149308
149312
  init_dump_format();
149309
149313
  init_dump();
149310
149314
  }
149311
149315
  });
149312
149316
 
149313
- // packages/safejs/src/migrate.ts
149317
+ // packages/safe-js/src/migrate.ts
149314
149318
  import { createHash as createHash14 } from "node:crypto";
149315
149319
  function inspectSnapshotMigration(snapshot2, options) {
149316
149320
  assertSnapshotInactive(snapshot2);
@@ -149380,7 +149384,7 @@ function canonicalData(value) {
149380
149384
  return JSON.stringify(value);
149381
149385
  }
149382
149386
  var init_migrate = __esm({
149383
- "packages/safejs/src/migrate.ts"() {
149387
+ "packages/safe-js/src/migrate.ts"() {
149384
149388
  "use strict";
149385
149389
  init_running_state();
149386
149390
  init_values();
@@ -149393,7 +149397,7 @@ var init_migrate = __esm({
149393
149397
  }
149394
149398
  });
149395
149399
 
149396
- // packages/safejs/src/migration-file.ts
149400
+ // packages/safe-js/src/migration-file.ts
149397
149401
  import { randomUUID as randomUUID51 } from "node:crypto";
149398
149402
  import { link as link3, open as open8, readFile as readFile53, unlink as unlink25 } from "node:fs/promises";
149399
149403
  import path184 from "node:path";
@@ -149469,7 +149473,7 @@ async function migrateSnapshotFile(options) {
149469
149473
  return { inspection, outputPath, dryRun: options.dryRun === true };
149470
149474
  }
149471
149475
  var init_migration_file = __esm({
149472
- "packages/safejs/src/migration-file.ts"() {
149476
+ "packages/safe-js/src/migration-file.ts"() {
149473
149477
  "use strict";
149474
149478
  init_error_codes22();
149475
149479
  init_migrate();
@@ -149477,22 +149481,22 @@ var init_migration_file = __esm({
149477
149481
  }
149478
149482
  });
149479
149483
 
149480
- // packages/safejs/src/error/format.ts
149484
+ // packages/safe-js/src/error/format.ts
149481
149485
  var init_format3 = __esm({
149482
- "packages/safejs/src/error/format.ts"() {
149486
+ "packages/safe-js/src/error/format.ts"() {
149483
149487
  "use strict";
149484
149488
  init_budget2();
149485
149489
  }
149486
149490
  });
149487
149491
 
149488
- // packages/safejs/src/loader/extract-block.ts
149492
+ // packages/safe-js/src/loader/extract-block.ts
149489
149493
  var init_extract_block = __esm({
149490
- "packages/safejs/src/loader/extract-block.ts"() {
149494
+ "packages/safe-js/src/loader/extract-block.ts"() {
149491
149495
  "use strict";
149492
149496
  }
149493
149497
  });
149494
149498
 
149495
- // packages/safejs/src/loader/frontmatter.ts
149499
+ // packages/safe-js/src/loader/frontmatter.ts
149496
149500
  function splitFrontmatter3(markdown) {
149497
149501
  try {
149498
149502
  const parsed = parseFrontmatterDocument(markdown);
@@ -149549,27 +149553,27 @@ function countLines3(value) {
149549
149553
  return count;
149550
149554
  }
149551
149555
  var init_frontmatter6 = __esm({
149552
- "packages/safejs/src/loader/frontmatter.ts"() {
149556
+ "packages/safe-js/src/loader/frontmatter.ts"() {
149553
149557
  "use strict";
149554
149558
  init_src();
149555
149559
  }
149556
149560
  });
149557
149561
 
149558
- // packages/safejs/src/lint/runtime-modules.ts
149562
+ // packages/safe-js/src/lint/runtime-modules.ts
149559
149563
  var AsyncFunction2;
149560
149564
  var init_runtime_modules = __esm({
149561
- "packages/safejs/src/lint/runtime-modules.ts"() {
149565
+ "packages/safe-js/src/lint/runtime-modules.ts"() {
149562
149566
  "use strict";
149563
149567
  init_values();
149564
149568
  AsyncFunction2 = (async () => void 0).constructor;
149565
149569
  }
149566
149570
  });
149567
149571
 
149568
- // packages/safejs/src/runner/run-harness.ts
149572
+ // packages/safe-js/src/runner/run-harness.ts
149569
149573
  import { readFile as readFile54, stat as stat34 } from "node:fs/promises";
149570
149574
  import { extname } from "node:path";
149571
149575
  var init_run_harness = __esm({
149572
- "packages/safejs/src/runner/run-harness.ts"() {
149576
+ "packages/safe-js/src/runner/run-harness.ts"() {
149573
149577
  "use strict";
149574
149578
  init_configs();
149575
149579
  init_types4();
@@ -149583,7 +149587,7 @@ var init_run_harness = __esm({
149583
149587
  }
149584
149588
  });
149585
149589
 
149586
- // packages/safejs/src/loader/find-exported.ts
149590
+ // packages/safe-js/src/loader/find-exported.ts
149587
149591
  function findExportedConstInitializer(module, name) {
149588
149592
  for (const statement of module.body) {
149589
149593
  if (statement.type === "ExportDefaultDeclaration") {
@@ -149617,12 +149621,12 @@ function findExportedConstInitializer(module, name) {
149617
149621
  return void 0;
149618
149622
  }
149619
149623
  var init_find_exported = __esm({
149620
- "packages/safejs/src/loader/find-exported.ts"() {
149624
+ "packages/safe-js/src/loader/find-exported.ts"() {
149621
149625
  "use strict";
149622
149626
  }
149623
149627
  });
149624
149628
 
149625
- // packages/safejs/src/modules/agent.ts
149629
+ // packages/safe-js/src/modules/agent.ts
149626
149630
  import { AsyncLocalStorage as AsyncLocalStorage9 } from "node:async_hooks";
149627
149631
  function createSpawnUsageAccumulator() {
149628
149632
  let inputTokens = 0;
@@ -150510,7 +150514,7 @@ function isRecord42(value) {
150510
150514
  }
150511
150515
  var AgentSpawnError, activeUsageAccumulator, oneAttemptRetryOptions;
150512
150516
  var init_agent3 = __esm({
150513
- "packages/safejs/src/modules/agent.ts"() {
150517
+ "packages/safe-js/src/modules/agent.ts"() {
150514
150518
  "use strict";
150515
150519
  init_configs();
150516
150520
  init_parallel();
@@ -150536,7 +150540,7 @@ var init_agent3 = __esm({
150536
150540
  }
150537
150541
  });
150538
150542
 
150539
- // packages/safejs/src/modules/env.ts
150543
+ // packages/safe-js/src/modules/env.ts
150540
150544
  function makeEnvModule(input) {
150541
150545
  const options = normalizeEnvOptions(Array.isArray(input) ? { allow: input } : input);
150542
150546
  const allowedNames = new Set(options.allow);
@@ -150611,7 +150615,7 @@ function readEnvName(value, label) {
150611
150615
  }
150612
150616
  var EnvAccessError;
150613
150617
  var init_env = __esm({
150614
- "packages/safejs/src/modules/env.ts"() {
150618
+ "packages/safe-js/src/modules/env.ts"() {
150615
150619
  "use strict";
150616
150620
  init_shape();
150617
150621
  EnvAccessError = class extends Error {
@@ -150627,7 +150631,7 @@ var init_env = __esm({
150627
150631
  }
150628
150632
  });
150629
150633
 
150630
- // packages/safejs/src/modules/fail.ts
150634
+ // packages/safe-js/src/modules/fail.ts
150631
150635
  function makeFailModule() {
150632
150636
  function fail3(message2) {
150633
150637
  throw new HarnessFailure(readNonEmptyString5(message2, "Harness failure message"));
@@ -150647,7 +150651,7 @@ function readNonEmptyString5(value, label) {
150647
150651
  }
150648
150652
  var HarnessFailure;
150649
150653
  var init_fail = __esm({
150650
- "packages/safejs/src/modules/fail.ts"() {
150654
+ "packages/safe-js/src/modules/fail.ts"() {
150651
150655
  "use strict";
150652
150656
  HarnessFailure = class extends Error {
150653
150657
  constructor(message2) {
@@ -150658,7 +150662,7 @@ var init_fail = __esm({
150658
150662
  }
150659
150663
  });
150660
150664
 
150661
- // packages/safejs/src/modules/canonical-path.ts
150665
+ // packages/safe-js/src/modules/canonical-path.ts
150662
150666
  import { basename as basename8, dirname as dirname13, isAbsolute as isAbsolute9, relative as relative7, resolve as resolve13, sep as sep6 } from "node:path";
150663
150667
  async function resolveCanonicalPath({ realpath: realpath20, readlink: readlink5 }, path191) {
150664
150668
  const missingSegments = [];
@@ -150757,7 +150761,7 @@ async function readIdentity(stat36, path191) {
150757
150761
  }
150758
150762
  var MISSING_PATH_CODES, NOT_A_SYMLINK_CODES, MAX_SYMLINK_FOLLOWS;
150759
150763
  var init_canonical_path = __esm({
150760
- "packages/safejs/src/modules/canonical-path.ts"() {
150764
+ "packages/safe-js/src/modules/canonical-path.ts"() {
150761
150765
  "use strict";
150762
150766
  init_error_codes22();
150763
150767
  MISSING_PATH_CODES = ["ENOENT", "ENOTDIR"];
@@ -150766,7 +150770,7 @@ var init_canonical_path = __esm({
150766
150770
  }
150767
150771
  });
150768
150772
 
150769
- // packages/safejs/src/modules/fs.ts
150773
+ // packages/safe-js/src/modules/fs.ts
150770
150774
  import { constants as nodeFsConstants } from "node:fs";
150771
150775
  import * as nodeFsPromises from "node:fs/promises";
150772
150776
  import { dirname as dirname14, isAbsolute as isAbsolute10, resolve as resolve14 } from "node:path";
@@ -151174,7 +151178,7 @@ function isObjectLike2(value) {
151174
151178
  }
151175
151179
  var BUFFER_BY_DEFAULT, REFUSED_OPTION_REASONS, UNKNOWN_OPTION_REASON, ROOT_REFUSED_DEREFERENCE_REASON, FS_OPTION_SURFACE, STAT_NUMBER_FIELDS, FILE_TYPE_PREDICATES, BUFFER_ENCODING, FS_SYSCALLS, FS_PATH_ARGUMENTS, ACCESS_DENIED_CODE, INVALID_ARGUMENT_CODE, INVALID_ARGUMENT_TYPE_CODE, NULL_BYTE, ACCESS_DENIED_ERRNO, ACCESS_DENIED_MESSAGE;
151176
151180
  var init_fs2 = __esm({
151177
- "packages/safejs/src/modules/fs.ts"() {
151181
+ "packages/safe-js/src/modules/fs.ts"() {
151178
151182
  "use strict";
151179
151183
  init_error_codes22();
151180
151184
  init_host_bridge();
@@ -151322,7 +151326,7 @@ var init_fs2 = __esm({
151322
151326
  }
151323
151327
  });
151324
151328
 
151325
- // packages/safejs/src/modules/fs-config.ts
151329
+ // packages/safe-js/src/modules/fs-config.ts
151326
151330
  import {
151327
151331
  createFileSystem,
151328
151332
  createNodeFileSystemAdapterRegistry,
@@ -151358,12 +151362,12 @@ async function resolveFsConfig(config2, options = {}) {
151358
151362
  return { adapter, ...paths };
151359
151363
  }
151360
151364
  var init_fs_config = __esm({
151361
- "packages/safejs/src/modules/fs-config.ts"() {
151365
+ "packages/safe-js/src/modules/fs-config.ts"() {
151362
151366
  "use strict";
151363
151367
  }
151364
151368
  });
151365
151369
 
151366
- // packages/safejs/src/modules/git.ts
151370
+ // packages/safe-js/src/modules/git.ts
151367
151371
  import { execFile as execFile3 } from "node:child_process";
151368
151372
  import { mkdir as mkdir38, readlink as readlink4, realpath as realpath19, rm as rm16, stat as stat35 } from "node:fs/promises";
151369
151373
  import { dirname as dirname15, isAbsolute as isAbsolute11, resolve as resolve15 } from "node:path";
@@ -151689,7 +151693,7 @@ function hasOwnProperty17(value, name) {
151689
151693
  }
151690
151694
  var GIT_EXEC_MAX_BUFFER, SAVEPOINT_REF_PREFIX;
151691
151695
  var init_git2 = __esm({
151692
- "packages/safejs/src/modules/git.ts"() {
151696
+ "packages/safe-js/src/modules/git.ts"() {
151693
151697
  "use strict";
151694
151698
  init_canonical_path();
151695
151699
  GIT_EXEC_MAX_BUFFER = 10 * 1024 * 1024;
@@ -151697,7 +151701,7 @@ var init_git2 = __esm({
151697
151701
  }
151698
151702
  });
151699
151703
 
151700
- // packages/safejs/src/modules/harness.ts
151704
+ // packages/safe-js/src/modules/harness.ts
151701
151705
  function makeHarnessModule(frontmatter, meta) {
151702
151706
  const copiedFrontmatter = copyHarnessValue(frontmatter);
151703
151707
  const constraints = readConstraints(copiedFrontmatter);
@@ -151744,13 +151748,13 @@ ${constraints.map((constraint) => `- ${constraint}`).join("\n")}`;
151744
151748
  ${prompt}`;
151745
151749
  }
151746
151750
  var init_harness2 = __esm({
151747
- "packages/safejs/src/modules/harness.ts"() {
151751
+ "packages/safe-js/src/modules/harness.ts"() {
151748
151752
  "use strict";
151749
151753
  init_values();
151750
151754
  }
151751
151755
  });
151752
151756
 
151753
- // packages/safejs/src/output-stream.ts
151757
+ // packages/safe-js/src/output-stream.ts
151754
151758
  function createBrokenPipeState() {
151755
151759
  return { closed: false };
151756
151760
  }
@@ -151789,13 +151793,13 @@ function isBrokenPipeError(error3) {
151789
151793
  return hasOwnErrorCode29(error3, "EPIPE");
151790
151794
  }
151791
151795
  var init_output_stream = __esm({
151792
- "packages/safejs/src/output-stream.ts"() {
151796
+ "packages/safe-js/src/output-stream.ts"() {
151793
151797
  "use strict";
151794
151798
  init_error_codes22();
151795
151799
  }
151796
151800
  });
151797
151801
 
151798
- // packages/safejs/src/modules/log.ts
151802
+ // packages/safe-js/src/modules/log.ts
151799
151803
  function makeLogModule(sink = createJsonlStdoutSink()) {
151800
151804
  const normalizedSink = readSink(sink);
151801
151805
  return {
@@ -151904,13 +151908,13 @@ function toJsonValue(value, seen) {
151904
151908
  return String(value);
151905
151909
  }
151906
151910
  var init_log2 = __esm({
151907
- "packages/safejs/src/modules/log.ts"() {
151911
+ "packages/safe-js/src/modules/log.ts"() {
151908
151912
  "use strict";
151909
151913
  init_output_stream();
151910
151914
  }
151911
151915
  });
151912
151916
 
151913
- // packages/safejs/src/modules/metric.ts
151917
+ // packages/safe-js/src/modules/metric.ts
151914
151918
  function makeMetricModule(npmRunner) {
151915
151919
  return {
151916
151920
  async run(name) {
@@ -151947,12 +151951,12 @@ function readNonEmptyString8(value, label) {
151947
151951
  return normalizedValue;
151948
151952
  }
151949
151953
  var init_metric = __esm({
151950
- "packages/safejs/src/modules/metric.ts"() {
151954
+ "packages/safe-js/src/modules/metric.ts"() {
151951
151955
  "use strict";
151952
151956
  }
151953
151957
  });
151954
151958
 
151955
- // packages/safejs/src/modules/mcp-transport.ts
151959
+ // packages/safe-js/src/modules/mcp-transport.ts
151956
151960
  import { spawn as spawn11 } from "node:child_process";
151957
151961
  import path185 from "node:path";
151958
151962
  function parseMcpConfig3(source, directory) {
@@ -152194,13 +152198,13 @@ function connectMcpTransport(server, options, signal) {
152194
152198
  return { ready, close };
152195
152199
  }
152196
152200
  var init_mcp_transport = __esm({
152197
- "packages/safejs/src/modules/mcp-transport.ts"() {
152201
+ "packages/safe-js/src/modules/mcp-transport.ts"() {
152198
152202
  "use strict";
152199
152203
  init_src19();
152200
152204
  }
152201
152205
  });
152202
152206
 
152203
- // packages/safejs/src/modules/mcp.ts
152207
+ // packages/safe-js/src/modules/mcp.ts
152204
152208
  function makeMcpModule(connectMcp) {
152205
152209
  if (typeof connectMcp !== "function") {
152206
152210
  const options = normalizeMcpOptions(connectMcp);
@@ -152588,7 +152592,7 @@ function isPlainObjectRecord(value) {
152588
152592
  }
152589
152593
  var DEFAULT_TOOL_BATCH_CONCURRENCY;
152590
152594
  var init_mcp5 = __esm({
152591
- "packages/safejs/src/modules/mcp.ts"() {
152595
+ "packages/safe-js/src/modules/mcp.ts"() {
152592
152596
  "use strict";
152593
152597
  init_src19();
152594
152598
  init_shape();
@@ -152599,7 +152603,7 @@ var init_mcp5 = __esm({
152599
152603
  }
152600
152604
  });
152601
152605
 
152602
- // packages/safejs/src/modules/time.ts
152606
+ // packages/safe-js/src/modules/time.ts
152603
152607
  function makeTimeModule(options = {}) {
152604
152608
  const hasDeterministicRandom = options.random !== void 0 || options.seed !== void 0;
152605
152609
  const random = options.random ?? (options.seed === void 0 ? () => Math.random() : createSeededRandom(options.seed).next);
@@ -152670,15 +152674,15 @@ function createSleepAbortError() {
152670
152674
  return new Error("time.sleep aborted.");
152671
152675
  }
152672
152676
  var init_time = __esm({
152673
- "packages/safejs/src/modules/time.ts"() {
152677
+ "packages/safe-js/src/modules/time.ts"() {
152674
152678
  "use strict";
152675
152679
  init_math();
152676
152680
  }
152677
152681
  });
152678
152682
 
152679
- // packages/safejs/src/index.ts
152683
+ // packages/safe-js/src/index.ts
152680
152684
  var init_src49 = __esm({
152681
- "packages/safejs/src/index.ts"() {
152685
+ "packages/safe-js/src/index.ts"() {
152682
152686
  "use strict";
152683
152687
  init_parse6();
152684
152688
  init_parser3();
@@ -156452,7 +156456,7 @@ var init_package2 = __esm({
156452
156456
  "package.json"() {
156453
156457
  package_default2 = {
156454
156458
  name: "poe-code",
156455
- version: "12.0.7",
156459
+ version: "12.0.9",
156456
156460
  description: "CLI tool to configure Poe API for developer workflows.",
156457
156461
  license: "MIT",
156458
156462
  type: "module",
@@ -156470,26 +156474,26 @@ var init_package2 = __esm({
156470
156474
  "./safejs": {
156471
156475
  types: {
156472
156476
  browser: "./packages/safe-fs/dist/node-unavailable.d.ts",
156473
- default: "./packages/safejs/dist/index.d.ts"
156477
+ default: "./packages/safe-js/dist/index.d.ts"
156474
156478
  },
156475
156479
  browser: null,
156476
- import: "./packages/safejs/dist/index.js"
156480
+ import: "./packages/safe-js/dist/index.js"
156477
156481
  },
156478
156482
  "./safejs/core": {
156479
156483
  types: {
156480
156484
  browser: "./packages/safe-fs/dist/node-unavailable.d.ts",
156481
- default: "./packages/safejs/dist/core.d.ts"
156485
+ default: "./packages/safe-js/dist/core.d.ts"
156482
156486
  },
156483
156487
  browser: null,
156484
- import: "./packages/safejs/dist/core.js"
156488
+ import: "./packages/safe-js/dist/core.js"
156485
156489
  },
156486
156490
  "./safejs/cli": {
156487
156491
  types: {
156488
156492
  browser: "./packages/safe-fs/dist/node-unavailable.d.ts",
156489
- default: "./packages/safejs/dist/cli.d.ts"
156493
+ default: "./packages/safe-js/dist/cli.d.ts"
156490
156494
  },
156491
156495
  browser: null,
156492
- import: "./packages/safejs/dist/cli.js"
156496
+ import: "./packages/safe-js/dist/cli.js"
156493
156497
  },
156494
156498
  "./agent": {
156495
156499
  types: "./dist/agent.d.ts",
@@ -156516,16 +156520,16 @@ var init_package2 = __esm({
156516
156520
  browser: "./packages/safe-fs/dist/core.d.ts",
156517
156521
  default: "./packages/safe-fs/dist/index.d.ts"
156518
156522
  },
156519
- browser: "./packages/safejs/dist/browser/safe-fs.js",
156520
- import: "./packages/safejs/dist/safe-fs.js"
156523
+ browser: "./packages/safe-js/dist/browser/safe-fs.js",
156524
+ import: "./packages/safe-js/dist/safe-fs.js"
156521
156525
  },
156522
156526
  "./safe-fs/core": {
156523
156527
  types: {
156524
156528
  browser: "./packages/safe-fs/dist/core.d.ts",
156525
156529
  default: "./packages/safe-fs/dist/core.d.ts"
156526
156530
  },
156527
- browser: "./packages/safejs/dist/browser/safe-fs-core.js",
156528
- import: "./packages/safejs/dist/safe-fs-core.js"
156531
+ browser: "./packages/safe-js/dist/browser/safe-fs-core.js",
156532
+ import: "./packages/safe-js/dist/safe-fs-core.js"
156529
156533
  },
156530
156534
  "./safe-fs/node": {
156531
156535
  types: {
@@ -156533,7 +156537,31 @@ var init_package2 = __esm({
156533
156537
  default: "./packages/safe-fs/dist/node-host.d.ts"
156534
156538
  },
156535
156539
  browser: null,
156536
- import: "./packages/safejs/dist/safe-fs-node.js"
156540
+ import: "./packages/safe-js/dist/safe-fs-node.js"
156541
+ },
156542
+ "./safe-js": {
156543
+ types: {
156544
+ browser: "./packages/safe-fs/dist/node-unavailable.d.ts",
156545
+ default: "./packages/safe-js/dist/index.d.ts"
156546
+ },
156547
+ browser: null,
156548
+ import: "./packages/safe-js/dist/index.js"
156549
+ },
156550
+ "./safe-js/core": {
156551
+ types: {
156552
+ browser: "./packages/safe-fs/dist/node-unavailable.d.ts",
156553
+ default: "./packages/safe-js/dist/core.d.ts"
156554
+ },
156555
+ browser: null,
156556
+ import: "./packages/safe-js/dist/core.js"
156557
+ },
156558
+ "./safe-js/cli": {
156559
+ types: {
156560
+ browser: "./packages/safe-fs/dist/node-unavailable.d.ts",
156561
+ default: "./packages/safe-js/dist/cli.d.ts"
156562
+ },
156563
+ browser: null,
156564
+ import: "./packages/safe-js/dist/cli.js"
156537
156565
  }
156538
156566
  },
156539
156567
  workspaces: [
@@ -156612,7 +156640,8 @@ var init_package2 = __esm({
156612
156640
  "poe-code": "dist/bin.cjs",
156613
156641
  "poe-agent": "dist/bin/poe-agent.js",
156614
156642
  "poe-superintendent-mcp": "packages/superintendent/dist/mcp.js",
156615
- "poe-safejs": "packages/safejs/dist/cli.js"
156643
+ "poe-safejs": "packages/safe-js/dist/cli.js",
156644
+ "poe-safe-js": "packages/safe-js/dist/cli.js"
156616
156645
  },
156617
156646
  files: [
156618
156647
  "LICENSE",
@@ -156638,7 +156667,7 @@ var init_package2 = __esm({
156638
156667
  "packages/agent-hook-config/dist",
156639
156668
  "packages/agent-human-in-loop/dist",
156640
156669
  "packages/maestro/dist",
156641
- "packages/safejs/dist",
156670
+ "packages/safe-js/dist",
156642
156671
  "packages/agent-spawn/dist",
156643
156672
  "packages/auth-store/dist",
156644
156673
  "packages/braintrust/dist",
@@ -156760,7 +156789,6 @@ var init_package2 = __esm({
156760
156789
  "@poe-code/py-poe-spawn": "*",
156761
156790
  "@poe-code/ralph": "*",
156762
156791
  "@poe-code/safe-fs": "*",
156763
- "@poe-code/safejs": "*",
156764
156792
  "@poe-code/superintendent": "*",
156765
156793
  "@poe-code/task-list": "*",
156766
156794
  "@poe-code/user-error": "*",
@@ -156809,7 +156837,8 @@ var init_package2 = __esm({
156809
156837
  typescript: "^5.9.3",
156810
156838
  "typescript-eslint": "8.55.0",
156811
156839
  vite: "6.4.3",
156812
- vitest: "^3.2.6"
156840
+ vitest: "^3.2.6",
156841
+ "@poe-code/safe-js": "*"
156813
156842
  },
156814
156843
  repository: {
156815
156844
  type: "git",