poe-code 12.0.2 → 12.0.4

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 (79) hide show
  1. package/README.md +24 -0
  2. package/dist/index.js +430 -6
  3. package/dist/index.js.map +4 -4
  4. package/dist/metafile.json +1 -1
  5. package/package.json +8 -2
  6. package/packages/package-lint/dist/bundle-policy.d.ts +45 -0
  7. package/packages/package-lint/dist/bundle-policy.js +169 -0
  8. package/packages/package-lint/dist/model.d.ts +4 -10
  9. package/packages/package-lint/dist/model.js +4 -2
  10. package/packages/package-lint/dist/packlist.js +5 -1
  11. package/packages/package-lint/dist/rules/bundle-self-contained.js +11 -25
  12. package/packages/safe-fs/dist/contracts/abort.d.ts +5 -0
  13. package/packages/safe-fs/dist/contracts/cleanup.d.ts +1 -0
  14. package/packages/safe-fs/dist/contracts/errors.d.ts +49 -0
  15. package/packages/safe-fs/dist/contracts/filesystem.d.ts +96 -0
  16. package/packages/safe-fs/dist/contracts/index.d.ts +4 -0
  17. package/packages/safe-fs/dist/contracts/io.d.ts +8 -0
  18. package/packages/safe-fs/dist/contracts/path.d.ts +13 -0
  19. package/packages/safe-fs/dist/fs/memory/index.d.ts +58 -0
  20. package/packages/safe-fs/dist/fs/mount/comparison.d.ts +18 -0
  21. package/packages/safe-fs/dist/fs/mount/identity.d.ts +2 -0
  22. package/packages/safe-fs/dist/fs/mount/index.d.ts +44 -0
  23. package/packages/safe-fs/dist/fs/overlay/index.d.ts +72 -0
  24. package/packages/safe-fs/dist/fs/readonly/index.d.ts +30 -0
  25. package/packages/safe-fs/dist/fs/real/allocation.d.ts +1 -0
  26. package/packages/safe-fs/dist/fs/real/index.d.ts +76 -0
  27. package/packages/safe-fs/dist/fs/s3/authority.d.ts +13 -0
  28. package/packages/safe-fs/dist/fs/s3/filesystem.d.ts +93 -0
  29. package/packages/safe-fs/dist/fs/s3/http/index.d.ts +2 -0
  30. package/packages/safe-fs/dist/fs/s3/http/request.d.ts +16 -0
  31. package/packages/safe-fs/dist/fs/s3/http/signature.d.ts +20 -0
  32. package/packages/safe-fs/dist/fs/s3/http/transport.d.ts +3 -0
  33. package/packages/safe-fs/dist/fs/s3/http/types.d.ts +30 -0
  34. package/packages/safe-fs/dist/fs/s3/http/xml.d.ts +11 -0
  35. package/packages/safe-fs/dist/fs/s3/index.d.ts +6 -0
  36. package/packages/safe-fs/dist/fs/s3/mock.d.ts +48 -0
  37. package/packages/safe-fs/dist/fs/s3/transport.d.ts +103 -0
  38. package/packages/safe-fs/dist/fs/webdav/index.d.ts +2 -0
  39. package/packages/safe-fs/dist/fs/webdav/resource-id.d.ts +18 -0
  40. package/packages/safe-fs/dist/fs/webdav/webdav.d.ts +98 -0
  41. package/packages/safe-fs/dist/fs/webdav/xml.d.ts +15 -0
  42. package/packages/safe-fs/dist/index.d.ts +11 -0
  43. package/packages/safe-fs/dist/node/filesystem.d.ts +11 -0
  44. package/packages/safe-fs/dist/node/index.d.ts +2 -0
  45. package/packages/safe-fs/dist/node/stats.d.ts +4 -0
  46. package/packages/safe-fs/dist/node/values.d.ts +6 -0
  47. package/packages/safejs/dist/chunks/{chunk-T55OILHA.js → chunk-LF5LY5O3.js} +2 -2
  48. package/packages/safejs/dist/chunks/{chunk-Z3ZMLYCK.js → chunk-XBRQ72W6.js} +387 -5
  49. package/packages/safejs/dist/chunks/chunk-XBRQ72W6.js.map +7 -0
  50. package/packages/safejs/dist/cli.js +2 -2
  51. package/packages/safejs/dist/core.js +1 -1
  52. package/packages/safejs/dist/index.js +2 -2
  53. package/packages/safejs/dist/interp/float32.d.ts +16 -0
  54. package/packages/safejs/dist/interp/float32.js +65 -0
  55. package/packages/safejs/dist/interp/globals/float32array.d.ts +6 -0
  56. package/packages/safejs/dist/interp/globals/float32array.js +130 -0
  57. package/packages/safejs/dist/interp/globals/object-array.js +6 -0
  58. package/packages/safejs/dist/interp/host-bridge.js +18 -0
  59. package/packages/safejs/dist/interp/host-call.js +15 -0
  60. package/packages/safejs/dist/interp/interpreter.js +17 -1
  61. package/packages/safejs/dist/interp/iteration.js +4 -0
  62. package/packages/safejs/dist/interp/values.d.ts +1 -1
  63. package/packages/safejs/dist/interp/values.js +56 -0
  64. package/packages/safejs/dist/lint/rules/known-globals.d.ts +1 -1
  65. package/packages/safejs/dist/lint/rules/known-globals.js +1 -0
  66. package/packages/safejs/dist/run.js +2 -0
  67. package/packages/safejs/dist/safe-fs.js +6476 -0
  68. package/packages/safejs/dist/safe-fs.js.map +7 -0
  69. package/packages/safejs/dist/snapshot/dump-format.js +20 -2
  70. package/packages/safejs/dist/snapshot/float32array.d.ts +12 -0
  71. package/packages/safejs/dist/snapshot/float32array.js +46 -0
  72. package/packages/safejs/dist/snapshot/replay-data.d.ts +5 -1
  73. package/packages/safejs/dist/snapshot/replay-data.js +29 -0
  74. package/packages/safejs/dist/snapshot/restore.js +14 -0
  75. package/packages/safejs/dist/snapshot/serialize.d.ts +5 -2
  76. package/packages/safejs/dist/snapshot/serialize.js +17 -2
  77. package/packages/safejs/dist/snapshot/validation.js +11 -1
  78. package/packages/safejs/dist/chunks/chunk-Z3ZMLYCK.js.map +0 -7
  79. /package/packages/safejs/dist/chunks/{chunk-T55OILHA.js.map → chunk-LF5LY5O3.js.map} +0 -0
package/README.md CHANGED
@@ -261,6 +261,30 @@ console.log(identity.name, identity.handle);
261
261
 
262
262
  Uses `POE_API_KEY` or the stored credential and honors `POE_BASE_URL`. Throws an API error when Poe rejects the credential.
263
263
 
264
+ ### Shared filesystem foundation (planned release)
265
+
266
+ The next foundation-only release is intended to expose `poe-code/safe-fs`.
267
+ Public packaging is still under validation; this import is not yet part of a
268
+ verified release. `@poe-code/safe-fs` is the private workspace name, not a public
269
+ npm import.
270
+
271
+ The implemented foundation contains memory, host-directory, S3 and WebDAV
272
+ adapters; mount, read-only and overlay wrappers; and the shared `FileSystem`,
273
+ `FsError` and `createNodeFsBridge` APIs. The intended public usage after release is:
274
+
275
+ ```typescript
276
+ import { MemoryFileSystem } from "poe-code/safe-fs";
277
+
278
+ const filesystem = new MemoryFileSystem();
279
+ await filesystem.writeFile("/note", new TextEncoder().encode("hello"));
280
+ ```
281
+
282
+ The public entry targets Node.js. Browser support, SafeJS/safe-bash runtime
283
+ migration, CLI adapter configuration and the `safe-js` rename are not complete.
284
+ The host-directory adapter is not race-proof OS isolation. See the
285
+ [foundation documentation](packages/safe-fs/README.md) for configuration,
286
+ capabilities and backend limitations.
287
+
264
288
  ## Building from Source
265
289
 
266
290
  Run `npm run build` to compile the workspace and generate the published bundles.