@openclaw/nostr 2026.10.10 → 2026.11.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.setup/{channel-C2iK5Fjg.mjs → channel-DtlupG0V.mjs} +183 -354
- package/dist/.source-module-urls/434fb4e7afdaac23908221824ec325d8f61be72ba97af41567f2cb4ebe3ad38c.json +1 -1
- package/dist/api.js +19 -30
- package/dist/channel-plugin-api.js +1 -1
- package/dist/control-ui/049680efcde098838c4459d157e51b99515dceb24211e236f157fca0abbdb516/chunk-1.js +1 -0
- package/dist/control-ui/049680efcde098838c4459d157e51b99515dceb24211e236f157fca0abbdb516/index.js +1 -0
- package/dist/openclaw.plugin.json +40 -0
- package/node_modules/@solidjs/web/README.md +25 -0
- package/node_modules/@solidjs/web/dist/server.dev.js +5070 -0
- package/node_modules/@solidjs/web/dist/server.js +4722 -0
- package/node_modules/@solidjs/web/dist/server.observe.js +4877 -0
- package/node_modules/@solidjs/web/dist/web.dev.js +2516 -0
- package/node_modules/@solidjs/web/dist/web.js +2204 -0
- package/node_modules/@solidjs/web/dist/web.observe.js +2255 -0
- package/node_modules/@solidjs/web/frames/dist/assets.js +92 -0
- package/node_modules/@solidjs/web/frames/dist/client.dev.js +2108 -0
- package/node_modules/@solidjs/web/frames/dist/client.js +1927 -0
- package/node_modules/@solidjs/web/frames/dist/client.observe.js +2041 -0
- package/node_modules/@solidjs/web/frames/dist/regions.js +171 -0
- package/node_modules/@solidjs/web/frames/dist/server.dev.js +2549 -0
- package/node_modules/@solidjs/web/frames/dist/server.js +2547 -0
- package/node_modules/@solidjs/web/frames/dist/server.observe.js +2548 -0
- package/node_modules/@solidjs/web/frames/dist/trace.js +45 -0
- package/node_modules/@solidjs/web/frames/dist/wire.js +594 -0
- package/node_modules/@solidjs/web/frames/package.json +7 -0
- package/node_modules/@solidjs/web/node_modules/seroval/LICENSE +7 -0
- package/node_modules/@solidjs/web/node_modules/seroval/README.md +117 -0
- package/node_modules/@solidjs/web/node_modules/seroval/dist/dev/index.cjs +3716 -0
- package/node_modules/@solidjs/web/node_modules/seroval/dist/dev/index.d.cts +820 -0
- package/node_modules/@solidjs/web/node_modules/seroval/dist/dev/index.d.ts +820 -0
- package/node_modules/@solidjs/web/node_modules/seroval/dist/dev/index.js +3669 -0
- package/node_modules/@solidjs/web/node_modules/seroval/dist/index.cjs +3700 -0
- package/node_modules/@solidjs/web/node_modules/seroval/dist/index.d.cts +820 -0
- package/node_modules/@solidjs/web/node_modules/seroval/dist/index.d.ts +820 -0
- package/node_modules/@solidjs/web/node_modules/seroval/dist/index.js +3653 -0
- package/node_modules/@solidjs/web/node_modules/seroval/package.json +77 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/LICENSE +7 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/README.md +50 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/dev/index-BG4YWylA.d.cts +101 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/dev/index.cjs +8 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/dev/index.d.cts +2 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/dev/index.d.ts +2 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/dev/index.js +2 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/dev/web-B1lHT9kZ.cjs +812 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/dev/web.cjs +16 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/dev/web.d.cts +2 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/dev/web.d.ts +97 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/dev/web.js +693 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/index-BG4YWylA.d.cts +101 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/index.cjs +8 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/index.d.cts +2 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/index.d.ts +2 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/index.js +2 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/web-B1lHT9kZ.cjs +812 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/web.cjs +16 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/web.d.cts +2 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/web.d.ts +97 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/dist/web.js +693 -0
- package/node_modules/@solidjs/web/node_modules/seroval-plugins/package.json +81 -0
- package/node_modules/@solidjs/web/package.json +396 -0
- package/node_modules/@solidjs/web/performance-tracks/dist/performance-tracks.dev.js +679 -0
- package/node_modules/@solidjs/web/performance-tracks/dist/performance-tracks.js +6 -0
- package/node_modules/@solidjs/web/performance-tracks/dist/performance-tracks.observe.js +667 -0
- package/node_modules/@solidjs/web/performance-tracks/package.json +7 -0
- package/node_modules/@solidjs/web/performance-tracks/types/index.d.ts +69 -0
- package/node_modules/@solidjs/web/serialization/decode/package.json +7 -0
- package/node_modules/@solidjs/web/serialization/dist/decode.js +229 -0
- package/node_modules/@solidjs/web/serialization/dist/serialization.js +398 -0
- package/node_modules/@solidjs/web/serialization/package.json +7 -0
- package/node_modules/@solidjs/web/serialization/types/index.d.ts +109 -0
- package/node_modules/@solidjs/web/serialization/types/serializer-decode.d.ts +241 -0
- package/node_modules/@solidjs/web/server-functions/dist/client.dev.js +1462 -0
- package/node_modules/@solidjs/web/server-functions/dist/client.js +1305 -0
- package/node_modules/@solidjs/web/server-functions/dist/client.observe.js +1441 -0
- package/node_modules/@solidjs/web/server-functions/dist/rich-args.js +92 -0
- package/node_modules/@solidjs/web/server-functions/dist/server.dev.js +3619 -0
- package/node_modules/@solidjs/web/server-functions/dist/server.js +3526 -0
- package/node_modules/@solidjs/web/server-functions/dist/server.observe.js +3589 -0
- package/node_modules/@solidjs/web/server-functions/package.json +7 -0
- package/node_modules/@solidjs/web/server-functions/rich-args/package.json +7 -0
- package/node_modules/@solidjs/web/skills/server-components/SKILL.md +117 -0
- package/node_modules/@solidjs/web/storage/dist/storage.js +10 -0
- package/node_modules/@solidjs/web/storage/package.json +7 -0
- package/node_modules/@solidjs/web/storage/types/index.d.ts +28 -0
- package/node_modules/@solidjs/web/types/client.d.ts +391 -0
- package/node_modules/@solidjs/web/types/constants.d.ts +22 -0
- package/node_modules/@solidjs/web/types/cookies.d.ts +41 -0
- package/node_modules/@solidjs/web/types/diagnostics.d.ts +80 -0
- package/node_modules/@solidjs/web/types/frames/assets-tier.d.ts +78 -0
- package/node_modules/@solidjs/web/types/frames/client.d.ts +75 -0
- package/node_modules/@solidjs/web/types/frames/frame-client.d.ts +519 -0
- package/node_modules/@solidjs/web/types/frames/frame-container-plugin.d.ts +64 -0
- package/node_modules/@solidjs/web/types/frames/frame-morph.d.ts +29 -0
- package/node_modules/@solidjs/web/types/frames/frame-sink.d.ts +174 -0
- package/node_modules/@solidjs/web/types/frames/frame-transport.d.ts +301 -0
- package/node_modules/@solidjs/web/types/frames/regions-tier.d.ts +60 -0
- package/node_modules/@solidjs/web/types/frames/server.d.ts +52 -0
- package/node_modules/@solidjs/web/types/frames/trace-tier.d.ts +2 -0
- package/node_modules/@solidjs/web/types/frames/tree-rewrite.d.ts +39 -0
- package/node_modules/@solidjs/web/types/frames/wire-tier.d.ts +169 -0
- package/node_modules/@solidjs/web/types/head.d.ts +20 -0
- package/node_modules/@solidjs/web/types/index.d.ts +261 -0
- package/node_modules/@solidjs/web/types/index.server.d.ts +159 -0
- package/node_modules/@solidjs/web/types/jsx-properties.d.ts +93 -0
- package/node_modules/@solidjs/web/types/jsx.d.ts +4164 -0
- package/node_modules/@solidjs/web/types/observe.d.ts +535 -0
- package/node_modules/@solidjs/web/types/reconcile.d.ts +1 -0
- package/node_modules/@solidjs/web/types/render.d.ts +11 -0
- package/node_modules/@solidjs/web/types/request-error-hook.d.ts +5 -0
- package/node_modules/@solidjs/web/types/response.d.ts +122 -0
- package/node_modules/@solidjs/web/types/server-functions/argument-codec.d.ts +30 -0
- package/node_modules/@solidjs/web/types/server-functions/client.d.ts +277 -0
- package/node_modules/@solidjs/web/types/server-functions/flash.d.ts +36 -0
- package/node_modules/@solidjs/web/types/server-functions/registry.d.ts +105 -0
- package/node_modules/@solidjs/web/types/server-functions/rich-args.d.ts +1 -0
- package/node_modules/@solidjs/web/types/server-functions/server.d.ts +689 -0
- package/node_modules/@solidjs/web/types/server-functions/shared.d.ts +496 -0
- package/node_modules/@solidjs/web/types/server-functions/uploads.d.ts +50 -0
- package/node_modules/@solidjs/web/types/server-mock.d.ts +393 -0
- package/node_modules/@solidjs/web/types/server-observe.d.ts +86 -0
- package/node_modules/@solidjs/web/types/server.d.ts +693 -0
- package/node_modules/@solidjs/web/types/trace.d.ts +127 -0
- package/node_modules/solid-js/CHEATSHEET.md +750 -0
- package/node_modules/solid-js/README.md +77 -0
- package/node_modules/solid-js/diagnostics.json +605 -0
- package/node_modules/solid-js/dist/attribution.js +1 -0
- package/node_modules/solid-js/dist/container-trace.js +267 -0
- package/node_modules/solid-js/dist/internal.js +29 -0
- package/node_modules/solid-js/dist/refresh.dev.js +286 -0
- package/node_modules/solid-js/dist/refresh.js +35 -0
- package/node_modules/solid-js/dist/server.dev.js +3672 -0
- package/node_modules/solid-js/dist/server.js +3314 -0
- package/node_modules/solid-js/dist/server.observe.js +3500 -0
- package/node_modules/solid-js/dist/solid.dev.js +1740 -0
- package/node_modules/solid-js/dist/solid.js +1644 -0
- package/node_modules/solid-js/dist/solid.observe.js +1690 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/LICENSE +21 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/README.md +260 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/dev-shared.js +6136 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/dev.attribution.js +3481 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/dev.js +10245 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/affects-marks.js +86 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/affects.js +102 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/attribution.js +7 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/boundaries.js +622 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/action.js +174 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/async.js +792 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/attribution-costs.js +66 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/attribution-feedback.js +280 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/attribution-hooks.js +83 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/attribution-queries.js +43 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/attribution.js +3077 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/constants.js +241 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/context.js +63 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/core.js +1599 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/dev.js +394 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/effect.js +188 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/error-hooks.js +71 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/error.js +82 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/external.js +97 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/graph.js +162 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/heap.js +124 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/identities.js +62 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/invariants.js +12 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/lanes.js +752 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/owner.js +370 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/scheduler.js +1099 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/truth.js +45 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/core/verdict.js +408 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/deferred.js +187 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/flatten.js +79 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/from.js +248 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/index.js +69 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/map.js +589 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/reveal.js +212 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/signals.js +675 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/store/affects.js +142 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/store/edges.js +39 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/store/hooks.js +13 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/store/index.js +47 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/store/optimistic.js +617 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/store/projection.js +321 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/store/reconcile.js +275 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/store/store.js +2081 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/store/storePath.js +103 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/store/target.js +46 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/store/types.js +73 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/observe/store/utils.js +1058 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/affects-marks.js +86 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/affects.js +102 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/attribution.js +45 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/boundaries.js +606 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/action.js +164 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/async.js +763 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/attribution-hooks.js +3 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/constants.js +233 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/context.js +63 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/core.js +1546 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/dev.js +20 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/effect.js +173 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/error-hooks.js +71 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/error.js +82 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/external.js +97 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/graph.js +162 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/heap.js +124 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/identities.js +62 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/invariants.js +12 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/lanes.js +714 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/owner.js +365 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/scheduler.js +1054 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/truth.js +45 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/core/verdict.js +403 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/deferred.js +185 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/flatten.js +77 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/from.js +248 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/index.js +67 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/map.js +585 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/reveal.js +212 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/signals.js +669 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/store/affects.js +142 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/store/edges.js +39 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/store/hooks.js +13 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/store/index.js +45 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/store/optimistic.js +611 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/store/projection.js +307 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/store/reconcile.js +275 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/store/store.js +1974 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/store/storePath.js +103 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/store/target.js +43 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/store/types.js +73 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/prod/store/utils.js +1058 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/affects-marks.d.ts +14 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/affects.d.ts +28 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/attribution.d.ts +19 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/attribution.prod.d.ts +22 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/boundaries.d.ts +138 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/carved.d.ts +1 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/action.d.ts +70 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/async.d.ts +48 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/attribution-costs.d.ts +35 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/attribution-feedback.d.ts +133 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/attribution-hooks.d.ts +351 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/attribution-queries.d.ts +24 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/attribution.d.ts +916 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/constants.d.ts +226 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/context.d.ts +36 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/core.d.ts +365 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/dev.d.ts +568 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/effect.d.ts +30 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/error-hooks.d.ts +71 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/error.d.ts +64 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/external.d.ts +15 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/graph.d.ts +45 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/heap.d.ts +22 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/identities.d.ts +17 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/index.d.ts +17 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/invariants.d.ts +34 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/lanes.d.ts +64 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/owner.d.ts +142 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/scheduler.d.ts +397 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/truth.d.ts +16 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/types.d.ts +212 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/core/verdict.d.ts +37 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/deferred.d.ts +28 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/flatten.d.ts +8 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/from.d.ts +47 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/index.d.ts +32 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/map.d.ts +71 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/reveal.d.ts +19 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/signals.d.ts +738 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/store/affects.d.ts +12 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/store/edges.d.ts +9 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/store/hooks.d.ts +48 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/store/index.d.ts +46 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/store/optimistic.d.ts +24 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/store/projection.d.ts +19 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/store/reconcile.d.ts +3 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/store/store.d.ts +134 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/store/storePath.d.ts +58 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/store/target.d.ts +159 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/store/types.d.ts +98 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/dist/types/store/utils.d.ts +262 -0
- package/node_modules/solid-js/node_modules/@solidjs/signals/package.json +74 -0
- package/node_modules/solid-js/node_modules/csstype/LICENSE +19 -0
- package/node_modules/solid-js/node_modules/csstype/README.md +291 -0
- package/node_modules/solid-js/node_modules/csstype/index.d.ts +22569 -0
- package/node_modules/solid-js/node_modules/csstype/index.js.flow +6863 -0
- package/node_modules/solid-js/node_modules/csstype/package.json +70 -0
- package/node_modules/solid-js/node_modules/seroval/LICENSE +7 -0
- package/node_modules/solid-js/node_modules/seroval/README.md +117 -0
- package/node_modules/solid-js/node_modules/seroval/dist/dev/index.cjs +3716 -0
- package/node_modules/solid-js/node_modules/seroval/dist/dev/index.d.cts +820 -0
- package/node_modules/solid-js/node_modules/seroval/dist/dev/index.d.ts +820 -0
- package/node_modules/solid-js/node_modules/seroval/dist/dev/index.js +3669 -0
- package/node_modules/solid-js/node_modules/seroval/dist/index.cjs +3700 -0
- package/node_modules/solid-js/node_modules/seroval/dist/index.d.cts +820 -0
- package/node_modules/solid-js/node_modules/seroval/dist/index.d.ts +820 -0
- package/node_modules/solid-js/node_modules/seroval/dist/index.js +3653 -0
- package/node_modules/solid-js/node_modules/seroval/package.json +77 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/LICENSE +7 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/README.md +50 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/dev/index-BG4YWylA.d.cts +101 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/dev/index.cjs +8 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/dev/index.d.cts +2 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/dev/index.d.ts +2 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/dev/index.js +2 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/dev/web-B1lHT9kZ.cjs +812 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/dev/web.cjs +16 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/dev/web.d.cts +2 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/dev/web.d.ts +97 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/dev/web.js +693 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/index-BG4YWylA.d.cts +101 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/index.cjs +8 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/index.d.cts +2 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/index.d.ts +2 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/index.js +2 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/web-B1lHT9kZ.cjs +812 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/web.cjs +16 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/web.d.cts +2 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/web.d.ts +97 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/dist/web.js +693 -0
- package/node_modules/solid-js/node_modules/seroval-plugins/package.json +81 -0
- package/node_modules/solid-js/package.json +142 -0
- package/node_modules/solid-js/skills/reactivity-diagnostics/SKILL.md +1023 -0
- package/node_modules/solid-js/skills/solid-2.0/SKILL.md +114 -0
- package/node_modules/solid-js/skills/solid-2.0-cheatsheet/SKILL.md +757 -0
- package/node_modules/solid-js/types/attribution.d.ts +11 -0
- package/node_modules/solid-js/types/client/component.d.ts +176 -0
- package/node_modules/solid-js/types/client/container-trace.d.ts +73 -0
- package/node_modules/solid-js/types/client/core.d.ts +186 -0
- package/node_modules/solid-js/types/client/dynamic.d.ts +55 -0
- package/node_modules/solid-js/types/client/flow.d.ts +323 -0
- package/node_modules/solid-js/types/client/hydration.d.ts +619 -0
- package/node_modules/solid-js/types/client/store-hydration.d.ts +1 -0
- package/node_modules/solid-js/types/console-footer.d.ts +2 -0
- package/node_modules/solid-js/types/from.d.ts +24 -0
- package/node_modules/solid-js/types/index.d.ts +35 -0
- package/node_modules/solid-js/types/internal.d.ts +190 -0
- package/node_modules/solid-js/types/recovery.d.ts +28 -0
- package/node_modules/solid-js/types/refresh/index.d.ts +76 -0
- package/node_modules/solid-js/types/server/component.d.ts +113 -0
- package/node_modules/solid-js/types/server/core.d.ts +48 -0
- package/node_modules/solid-js/types/server/diagnostics.d.ts +45 -0
- package/node_modules/solid-js/types/server/dynamic.d.ts +29 -0
- package/node_modules/solid-js/types/server/edges.d.ts +1 -0
- package/node_modules/solid-js/types/server/flow.d.ts +168 -0
- package/node_modules/solid-js/types/server/hydration.d.ts +52 -0
- package/node_modules/solid-js/types/server/index.d.ts +17 -0
- package/node_modules/solid-js/types/server/observe.d.ts +94 -0
- package/node_modules/solid-js/types/server/shared.d.ts +137 -0
- package/node_modules/solid-js/types/server/signals.d.ts +345 -0
- package/node_modules/solid-js/types/types.d.ts +15 -0
- package/node_modules/zod/package.json +1 -1
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +6 -0
- package/node_modules/zod/src/v4/core/compile.ts +9 -0
- package/node_modules/zod/src/v4/core/schemas.ts +35 -1
- package/node_modules/zod/src/v4/core/util.ts +13 -0
- package/node_modules/zod/src/v4/core/versions.ts +1 -1
- package/node_modules/zod/v4/core/compile.cjs +8 -0
- package/node_modules/zod/v4/core/compile.js +8 -0
- package/node_modules/zod/v4/core/schemas.cjs +30 -0
- package/node_modules/zod/v4/core/schemas.d.cts +3 -1
- package/node_modules/zod/v4/core/schemas.d.ts +3 -1
- package/node_modules/zod/v4/core/schemas.js +30 -0
- package/node_modules/zod/v4/core/util.cjs +15 -0
- package/node_modules/zod/v4/core/util.d.cts +2 -0
- package/node_modules/zod/v4/core/util.d.ts +2 -0
- package/node_modules/zod/v4/core/util.js +14 -0
- package/node_modules/zod/v4/core/versions.cjs +1 -1
- package/node_modules/zod/v4/core/versions.js +1 -1
- package/openclaw.plugin.json +11 -0
- package/package.json +17 -5
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { type AttributionOptions } from "solid-js/attribution";
|
|
2
|
+
export interface PerformanceTracksOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Options for the engine hold this adapter takes
|
|
5
|
+
* (`attribution.enable({ log: false, checks: false, ...attribution })`).
|
|
6
|
+
* The adapter asks for no console log and records only — the timeline is
|
|
7
|
+
* the output — which, the engine combining holds by the most demanding
|
|
8
|
+
* request, quiets the console and the cost checks (`hotRuns`, `hotTime`,
|
|
9
|
+
* `wideDeps`, `unstableMemos`, `fanOut`, `wastedRecompute`) only while
|
|
10
|
+
* nobody else wants them: a console session beside the tracks keeps its
|
|
11
|
+
* log and its checks. Pass `checks: true` to have the tracks' own hold
|
|
12
|
+
* run them, their findings painted as markers like any other.
|
|
13
|
+
*/
|
|
14
|
+
attribution?: AttributionOptions;
|
|
15
|
+
/**
|
|
16
|
+
* Floor for run spans on `Propagation`, `Effects` and `Memos` — compute
|
|
17
|
+
* runs (by `totalMs`), creation runs and effect callbacks (by their
|
|
18
|
+
* duration): spans under it are not painted. The wave span on
|
|
19
|
+
* `Propagation` always is, and its label carries the counts, so a
|
|
20
|
+
* fan-out of runs too small to paint still reads as `47 runs`. Default
|
|
21
|
+
* `0` in dev (every run; Chrome shows zero-width spans zoomed in) and
|
|
22
|
+
* `0.05` in observe builds, so a production trace carries the runs that
|
|
23
|
+
* cost something.
|
|
24
|
+
*/
|
|
25
|
+
minMs?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Emit through `performance.measure` with `detail.devtools` — tooltips
|
|
28
|
+
* (the why-chain of a re-run) and properties (causes, deps, blockers…)
|
|
29
|
+
* on every span — instead of `console.timeStamp`. Costs a User Timing
|
|
30
|
+
* entry per span; the adapter clears the entries it made in batches (a
|
|
31
|
+
* name it shares with an app measure is left alone). Default: dev builds.
|
|
32
|
+
* Each path falls back to the other where its API is missing.
|
|
33
|
+
*/
|
|
34
|
+
rich?: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Paint the attribution engine's records — and the web runtime's
|
|
38
|
+
* server-function `call` and `frame` records, with the server's own timing
|
|
39
|
+
* for each response under them (its `Server-Timing` metrics, placed by the
|
|
40
|
+
* browser's resource timing; the document's at enable) — as tracks in the
|
|
41
|
+
* Chrome Performance panel, from now until the returned function is called. The
|
|
42
|
+
* tracks themselves are Chrome's (its `detail.devtools` extension); in rich
|
|
43
|
+
* mode the spans are standard User Timing measures underneath, so any tool
|
|
44
|
+
* that reads those — Firefox's profiler, Lighthouse, RUM — sees the same
|
|
45
|
+
* spans as plain measures.
|
|
46
|
+
*
|
|
47
|
+
* Takes its own hold on the engine (`attribution.enable`): enabling beside
|
|
48
|
+
* a diagnostics capture or an APM adapter disturbs neither, and releasing
|
|
49
|
+
* here leaves theirs in place. Subscribing
|
|
50
|
+
* to the engine's timeline records (`create`, `effect`, `flush`, `flight`,
|
|
51
|
+
* `fallback`) is what turns them on — they are built only while a listener
|
|
52
|
+
* exists, so the engine pays for them only while the tracks are enabled.
|
|
53
|
+
* Every diagnostic delivered while enabled becomes a marker on the panel's
|
|
54
|
+
* Timings track (`SILENT_HOLD — <Search>`), annotated as a
|
|
55
|
+
* performance issue for the Insights sidebar when its severity is a
|
|
56
|
+
* warning or worse. In dev, spans and markers are emitted inside the
|
|
57
|
+
* `console.createTask` task of the component they belong to, so an entry's
|
|
58
|
+
* stack in the panel points at the JSX site that rendered the component.
|
|
59
|
+
*
|
|
60
|
+
* One instance per page: the tracks are a view of one engine, and a second
|
|
61
|
+
* painter would paint every span twice. A call while enabled joins the
|
|
62
|
+
* running instance — its options are not re-read; the first call's apply —
|
|
63
|
+
* and returns a release of its own; the instance is torn down when every
|
|
64
|
+
* release has been called (a module re-evaluated by HMR that enables again
|
|
65
|
+
* and disposes the old one lands back on one instance either way). A no-op
|
|
66
|
+
* (returning a no-op) in prod builds, where the observe tier is absent, and
|
|
67
|
+
* in an environment without `console.timeStamp` or `performance.measure`.
|
|
68
|
+
*/
|
|
69
|
+
export declare function enablePerformanceTracks(options?: PerformanceTracksOptions): () => void;
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { fromCrossJSON, isStream, Feature, createStream } from 'seroval';
|
|
2
|
+
import { AbortSignalPlugin, CustomEventPlugin, DOMExceptionPlugin, EventPlugin, FormDataPlugin, HeadersPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLSearchParamsPlugin, URLPlugin } from 'seroval-plugins/web';
|
|
3
|
+
|
|
4
|
+
const STATE = Symbol.for("solid.container-trace-state");
|
|
5
|
+
const state = globalThis[STATE] || (globalThis[STATE] = {
|
|
6
|
+
materialized: new WeakMap(),
|
|
7
|
+
materializedValues: new WeakSet()
|
|
8
|
+
});
|
|
9
|
+
function setContainerTraceStreamMint(fn) {
|
|
10
|
+
state.streamOf = fn;
|
|
11
|
+
}
|
|
12
|
+
const TRACE = Symbol.for("solid.container-trace");
|
|
13
|
+
function materialize(marker, claiming) {
|
|
14
|
+
let value = state.materialized.get(marker.$tr);
|
|
15
|
+
if (value === undefined) {
|
|
16
|
+
value = state.materializeTrace(marker, claiming);
|
|
17
|
+
state.materialized.set(marker.$tr, value);
|
|
18
|
+
if (value !== null && typeof value === "object") state.materializedValues.add(value);
|
|
19
|
+
}
|
|
20
|
+
return value;
|
|
21
|
+
}
|
|
22
|
+
function parseTrace(value, ctx) {
|
|
23
|
+
const trace = value[TRACE];
|
|
24
|
+
const sub = trace.subscribe();
|
|
25
|
+
return {
|
|
26
|
+
a: trace.array ? 1 : 0,
|
|
27
|
+
i: ctx.parse(state.streamOf ? state.streamOf(sub) : sub)
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
const ContainerTracePlugin = {
|
|
31
|
+
tag: "solid/container-trace",
|
|
32
|
+
test(value) {
|
|
33
|
+
return value != null && typeof value === "object" && TRACE in value;
|
|
34
|
+
},
|
|
35
|
+
parse: {
|
|
36
|
+
sync() {
|
|
37
|
+
throw new Error("A reactive container can only be serialized by a streaming serializer.");
|
|
38
|
+
},
|
|
39
|
+
async async(value, ctx) {
|
|
40
|
+
const trace = value[TRACE];
|
|
41
|
+
const sub = trace.subscribe();
|
|
42
|
+
return {
|
|
43
|
+
a: trace.array ? 1 : 0,
|
|
44
|
+
i: await ctx.parse(state.streamOf ? state.streamOf(sub) : sub)
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
stream: parseTrace
|
|
48
|
+
},
|
|
49
|
+
serialize(node, ctx) {
|
|
50
|
+
return "{$tr:" + ctx.serialize(node.i) + ",$ta:" + node.a + "}";
|
|
51
|
+
},
|
|
52
|
+
deserialize(node, ctx) {
|
|
53
|
+
const iterable = ctx.deserialize(node.i);
|
|
54
|
+
const marker = {
|
|
55
|
+
$tr: iterable,
|
|
56
|
+
$ta: node.a
|
|
57
|
+
};
|
|
58
|
+
return state.materializeTrace ? materialize(marker) : marker;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
setContainerTraceStreamMint(iterable => {
|
|
63
|
+
const stream = createStream();
|
|
64
|
+
(async () => {
|
|
65
|
+
try {
|
|
66
|
+
for await (const value of iterable) stream.next(value);
|
|
67
|
+
stream.return(undefined);
|
|
68
|
+
} catch (error) {
|
|
69
|
+
stream.throw(error);
|
|
70
|
+
}
|
|
71
|
+
})();
|
|
72
|
+
return stream;
|
|
73
|
+
});
|
|
74
|
+
const DEFAULT_WEB_PLUGINS = /* @__PURE__ */Object.freeze([AbortSignalPlugin,
|
|
75
|
+
CustomEventPlugin, DOMExceptionPlugin, EventPlugin,
|
|
76
|
+
FormDataPlugin, HeadersPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLSearchParamsPlugin, URLPlugin,
|
|
77
|
+
ContainerTracePlugin]);
|
|
78
|
+
function resolveSerializerPlugins(customPlugins) {
|
|
79
|
+
return customPlugins ? [...customPlugins, ...DEFAULT_WEB_PLUGINS] : [...DEFAULT_WEB_PLUGINS];
|
|
80
|
+
}
|
|
81
|
+
const jsonCodecDisabledFeatures = () => Feature.RegExp;
|
|
82
|
+
const JSON_CODEC_DEPTH_LIMIT = 64;
|
|
83
|
+
const RESOLVED_PLUGINS = Symbol.for("solid.codec.resolvedPlugins");
|
|
84
|
+
function resolveCodecOptions(options = {}) {
|
|
85
|
+
const {
|
|
86
|
+
plugins,
|
|
87
|
+
disabledFeatures,
|
|
88
|
+
depthLimit,
|
|
89
|
+
serializeErrorStacks
|
|
90
|
+
} = options;
|
|
91
|
+
return {
|
|
92
|
+
plugins: options[RESOLVED_PLUGINS] || resolveSerializerPlugins(plugins),
|
|
93
|
+
disabledFeatures: disabledFeatures === undefined ? jsonCodecDisabledFeatures() : disabledFeatures,
|
|
94
|
+
depthLimit: depthLimit === undefined ? JSON_CODEC_DEPTH_LIMIT : depthLimit,
|
|
95
|
+
serializeErrorStacks
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function createJSONDeserializer(options) {
|
|
99
|
+
const refs = new Map();
|
|
100
|
+
const resolved = resolveCodecOptions(options);
|
|
101
|
+
let owned = 0;
|
|
102
|
+
const pendingResolvers = new Set();
|
|
103
|
+
const streams = new Set();
|
|
104
|
+
const STREAM = 1;
|
|
105
|
+
const RESOLVER = 2;
|
|
106
|
+
function classify(value) {
|
|
107
|
+
if (value === null || typeof value !== "object") return 0;
|
|
108
|
+
try {
|
|
109
|
+
if (isStream(value) && typeof value.on === "function") return STREAM;
|
|
110
|
+
if (typeof value.s === "function" && typeof value.f === "function" && value.p instanceof Promise) return RESOLVER;
|
|
111
|
+
} catch {}
|
|
112
|
+
return 0;
|
|
113
|
+
}
|
|
114
|
+
function ownDecodedPromises() {
|
|
115
|
+
if (refs.size === owned) return;
|
|
116
|
+
let index = 0;
|
|
117
|
+
for (const value of refs.values()) {
|
|
118
|
+
if (index++ < owned) continue;
|
|
119
|
+
if (value instanceof Promise) value.then(undefined, () => {});else {
|
|
120
|
+
const kind = classify(value);
|
|
121
|
+
if (kind === STREAM) streams.add(value);else if (kind === RESOLVER) {
|
|
122
|
+
pendingResolvers.add(value);
|
|
123
|
+
const settled = () => pendingResolvers.delete(value);
|
|
124
|
+
value.p.then(settled, settled);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
owned = refs.size;
|
|
129
|
+
}
|
|
130
|
+
function isOpenStream(stream) {
|
|
131
|
+
let alive = true;
|
|
132
|
+
const close = () => {
|
|
133
|
+
alive = false;
|
|
134
|
+
};
|
|
135
|
+
let off;
|
|
136
|
+
try {
|
|
137
|
+
off = stream.on({
|
|
138
|
+
next() {},
|
|
139
|
+
throw: close,
|
|
140
|
+
return: close
|
|
141
|
+
});
|
|
142
|
+
} catch {
|
|
143
|
+
return stream.alive !== false;
|
|
144
|
+
}
|
|
145
|
+
if (typeof off === "function") off();
|
|
146
|
+
return alive;
|
|
147
|
+
}
|
|
148
|
+
function deserializeJSONChunk(node) {
|
|
149
|
+
try {
|
|
150
|
+
return fromCrossJSON(node, {
|
|
151
|
+
refs,
|
|
152
|
+
...resolved
|
|
153
|
+
});
|
|
154
|
+
} finally {
|
|
155
|
+
ownDecodedPromises();
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
deserializeJSONChunk.abort = function abort(error) {
|
|
159
|
+
for (const value of refs.values()) {
|
|
160
|
+
const kind = classify(value);
|
|
161
|
+
if (kind === STREAM) {
|
|
162
|
+
value.throw(error);
|
|
163
|
+
} else if (kind === RESOLVER) {
|
|
164
|
+
value.p.then(undefined, () => {});
|
|
165
|
+
value.f(error);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
deserializeJSONChunk.close = function close() {
|
|
170
|
+
for (const value of refs.values()) {
|
|
171
|
+
if (classify(value) === STREAM) value.return(undefined);
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
deserializeJSONChunk.open = function open() {
|
|
175
|
+
let count = pendingResolvers.size;
|
|
176
|
+
for (const stream of streams) {
|
|
177
|
+
if (isOpenStream(stream)) count++;else streams.delete(stream);
|
|
178
|
+
}
|
|
179
|
+
return count;
|
|
180
|
+
};
|
|
181
|
+
return deserializeJSONChunk;
|
|
182
|
+
}
|
|
183
|
+
function createJSONDataTable(options) {
|
|
184
|
+
const deserialize = createJSONDeserializer(options);
|
|
185
|
+
const table = new Map();
|
|
186
|
+
const waits = new Map();
|
|
187
|
+
const settle = (w, s, value) => {
|
|
188
|
+
const p = w.p;
|
|
189
|
+
p.s = s;
|
|
190
|
+
p.v = value;
|
|
191
|
+
s === 1 ? w.r(value) : w.j(value);
|
|
192
|
+
for (const c of p.c) c();
|
|
193
|
+
};
|
|
194
|
+
return {
|
|
195
|
+
apply(record) {
|
|
196
|
+
const value = deserialize(record.node);
|
|
197
|
+
if (record.initial) {
|
|
198
|
+
table.set(record.key, value);
|
|
199
|
+
const w = waits.get(record.key);
|
|
200
|
+
if (w) {
|
|
201
|
+
waits.delete(record.key);
|
|
202
|
+
settle(w, 1, value);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
get(key) {
|
|
207
|
+
return table.get(key);
|
|
208
|
+
},
|
|
209
|
+
resolve(ref) {
|
|
210
|
+
const key = ref.$ref;
|
|
211
|
+
if (table.has(key)) return table.get(key);
|
|
212
|
+
let w = waits.get(key);
|
|
213
|
+
if (!w) {
|
|
214
|
+
waits.set(key, w = {});
|
|
215
|
+
const p = w.p = new Promise((r, j) => (w.r = r, w.j = j));
|
|
216
|
+
p.s = 0;
|
|
217
|
+
p.c = [];
|
|
218
|
+
p.then(undefined, () => {});
|
|
219
|
+
}
|
|
220
|
+
return w.p;
|
|
221
|
+
},
|
|
222
|
+
close(error) {
|
|
223
|
+
for (const [key, w] of waits) settle(w, 2, error || new Error(`Stream ended without delivering {$ref: "${key}"}`));
|
|
224
|
+
waits.clear();
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export { DEFAULT_WEB_PLUGINS, createJSONDataTable, createJSONDeserializer, resolveCodecOptions, resolveSerializerPlugins };
|
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
import { isStream, fromCrossJSON, Feature, createStream, OpaqueReference as OpaqueReference$1, createPlugin as createPlugin$1, Serializer, getCrossReferenceHeader, toCrossJSONStream, crossSerializeStream } from 'seroval';
|
|
2
|
+
import { AbortSignalPlugin, CustomEventPlugin, DOMExceptionPlugin, EventPlugin, FormDataPlugin, HeadersPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLSearchParamsPlugin, URLPlugin } from 'seroval-plugins/web';
|
|
3
|
+
|
|
4
|
+
const STATE = Symbol.for("solid.container-trace-state");
|
|
5
|
+
const state = globalThis[STATE] || (globalThis[STATE] = {
|
|
6
|
+
materialized: new WeakMap(),
|
|
7
|
+
materializedValues: new WeakSet()
|
|
8
|
+
});
|
|
9
|
+
function setContainerTraceStreamMint(fn) {
|
|
10
|
+
state.streamOf = fn;
|
|
11
|
+
}
|
|
12
|
+
const TRACE = Symbol.for("solid.container-trace");
|
|
13
|
+
function materialize(marker, claiming) {
|
|
14
|
+
let value = state.materialized.get(marker.$tr);
|
|
15
|
+
if (value === undefined) {
|
|
16
|
+
value = state.materializeTrace(marker, claiming);
|
|
17
|
+
state.materialized.set(marker.$tr, value);
|
|
18
|
+
if (value !== null && typeof value === "object") state.materializedValues.add(value);
|
|
19
|
+
}
|
|
20
|
+
return value;
|
|
21
|
+
}
|
|
22
|
+
function parseTrace(value, ctx) {
|
|
23
|
+
const trace = value[TRACE];
|
|
24
|
+
const sub = trace.subscribe();
|
|
25
|
+
return {
|
|
26
|
+
a: trace.array ? 1 : 0,
|
|
27
|
+
i: ctx.parse(state.streamOf ? state.streamOf(sub) : sub)
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
const ContainerTracePlugin = {
|
|
31
|
+
tag: "solid/container-trace",
|
|
32
|
+
test(value) {
|
|
33
|
+
return value != null && typeof value === "object" && TRACE in value;
|
|
34
|
+
},
|
|
35
|
+
parse: {
|
|
36
|
+
sync() {
|
|
37
|
+
throw new Error("A reactive container can only be serialized by a streaming serializer.");
|
|
38
|
+
},
|
|
39
|
+
async async(value, ctx) {
|
|
40
|
+
const trace = value[TRACE];
|
|
41
|
+
const sub = trace.subscribe();
|
|
42
|
+
return {
|
|
43
|
+
a: trace.array ? 1 : 0,
|
|
44
|
+
i: await ctx.parse(state.streamOf ? state.streamOf(sub) : sub)
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
stream: parseTrace
|
|
48
|
+
},
|
|
49
|
+
serialize(node, ctx) {
|
|
50
|
+
return "{$tr:" + ctx.serialize(node.i) + ",$ta:" + node.a + "}";
|
|
51
|
+
},
|
|
52
|
+
deserialize(node, ctx) {
|
|
53
|
+
const iterable = ctx.deserialize(node.i);
|
|
54
|
+
const marker = {
|
|
55
|
+
$tr: iterable,
|
|
56
|
+
$ta: node.a
|
|
57
|
+
};
|
|
58
|
+
return state.materializeTrace ? materialize(marker) : marker;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
setContainerTraceStreamMint(iterable => {
|
|
63
|
+
const stream = createStream();
|
|
64
|
+
(async () => {
|
|
65
|
+
try {
|
|
66
|
+
for await (const value of iterable) stream.next(value);
|
|
67
|
+
stream.return(undefined);
|
|
68
|
+
} catch (error) {
|
|
69
|
+
stream.throw(error);
|
|
70
|
+
}
|
|
71
|
+
})();
|
|
72
|
+
return stream;
|
|
73
|
+
});
|
|
74
|
+
const DEFAULT_WEB_PLUGINS = /* @__PURE__ */Object.freeze([AbortSignalPlugin,
|
|
75
|
+
CustomEventPlugin, DOMExceptionPlugin, EventPlugin,
|
|
76
|
+
FormDataPlugin, HeadersPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLSearchParamsPlugin, URLPlugin,
|
|
77
|
+
ContainerTracePlugin]);
|
|
78
|
+
function resolveSerializerPlugins(customPlugins) {
|
|
79
|
+
return customPlugins ? [...customPlugins, ...DEFAULT_WEB_PLUGINS] : [...DEFAULT_WEB_PLUGINS];
|
|
80
|
+
}
|
|
81
|
+
const jsonCodecDisabledFeatures = () => Feature.RegExp;
|
|
82
|
+
const JSON_CODEC_DEPTH_LIMIT = 64;
|
|
83
|
+
const RESOLVED_PLUGINS = Symbol.for("solid.codec.resolvedPlugins");
|
|
84
|
+
function resolveCodecOptions(options = {}) {
|
|
85
|
+
const {
|
|
86
|
+
plugins,
|
|
87
|
+
disabledFeatures,
|
|
88
|
+
depthLimit,
|
|
89
|
+
serializeErrorStacks
|
|
90
|
+
} = options;
|
|
91
|
+
return {
|
|
92
|
+
plugins: options[RESOLVED_PLUGINS] || resolveSerializerPlugins(plugins),
|
|
93
|
+
disabledFeatures: disabledFeatures === undefined ? jsonCodecDisabledFeatures() : disabledFeatures,
|
|
94
|
+
depthLimit: depthLimit === undefined ? JSON_CODEC_DEPTH_LIMIT : depthLimit,
|
|
95
|
+
serializeErrorStacks
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function createJSONDeserializer(options) {
|
|
99
|
+
const refs = new Map();
|
|
100
|
+
const resolved = resolveCodecOptions(options);
|
|
101
|
+
let owned = 0;
|
|
102
|
+
const pendingResolvers = new Set();
|
|
103
|
+
const streams = new Set();
|
|
104
|
+
const STREAM = 1;
|
|
105
|
+
const RESOLVER = 2;
|
|
106
|
+
function classify(value) {
|
|
107
|
+
if (value === null || typeof value !== "object") return 0;
|
|
108
|
+
try {
|
|
109
|
+
if (isStream(value) && typeof value.on === "function") return STREAM;
|
|
110
|
+
if (typeof value.s === "function" && typeof value.f === "function" && value.p instanceof Promise) return RESOLVER;
|
|
111
|
+
} catch {}
|
|
112
|
+
return 0;
|
|
113
|
+
}
|
|
114
|
+
function ownDecodedPromises() {
|
|
115
|
+
if (refs.size === owned) return;
|
|
116
|
+
let index = 0;
|
|
117
|
+
for (const value of refs.values()) {
|
|
118
|
+
if (index++ < owned) continue;
|
|
119
|
+
if (value instanceof Promise) value.then(undefined, () => {});else {
|
|
120
|
+
const kind = classify(value);
|
|
121
|
+
if (kind === STREAM) streams.add(value);else if (kind === RESOLVER) {
|
|
122
|
+
pendingResolvers.add(value);
|
|
123
|
+
const settled = () => pendingResolvers.delete(value);
|
|
124
|
+
value.p.then(settled, settled);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
owned = refs.size;
|
|
129
|
+
}
|
|
130
|
+
function isOpenStream(stream) {
|
|
131
|
+
let alive = true;
|
|
132
|
+
const close = () => {
|
|
133
|
+
alive = false;
|
|
134
|
+
};
|
|
135
|
+
let off;
|
|
136
|
+
try {
|
|
137
|
+
off = stream.on({
|
|
138
|
+
next() {},
|
|
139
|
+
throw: close,
|
|
140
|
+
return: close
|
|
141
|
+
});
|
|
142
|
+
} catch {
|
|
143
|
+
return stream.alive !== false;
|
|
144
|
+
}
|
|
145
|
+
if (typeof off === "function") off();
|
|
146
|
+
return alive;
|
|
147
|
+
}
|
|
148
|
+
function deserializeJSONChunk(node) {
|
|
149
|
+
try {
|
|
150
|
+
return fromCrossJSON(node, {
|
|
151
|
+
refs,
|
|
152
|
+
...resolved
|
|
153
|
+
});
|
|
154
|
+
} finally {
|
|
155
|
+
ownDecodedPromises();
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
deserializeJSONChunk.abort = function abort(error) {
|
|
159
|
+
for (const value of refs.values()) {
|
|
160
|
+
const kind = classify(value);
|
|
161
|
+
if (kind === STREAM) {
|
|
162
|
+
value.throw(error);
|
|
163
|
+
} else if (kind === RESOLVER) {
|
|
164
|
+
value.p.then(undefined, () => {});
|
|
165
|
+
value.f(error);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
deserializeJSONChunk.close = function close() {
|
|
170
|
+
for (const value of refs.values()) {
|
|
171
|
+
if (classify(value) === STREAM) value.return(undefined);
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
deserializeJSONChunk.open = function open() {
|
|
175
|
+
let count = pendingResolvers.size;
|
|
176
|
+
for (const stream of streams) {
|
|
177
|
+
if (isOpenStream(stream)) count++;else streams.delete(stream);
|
|
178
|
+
}
|
|
179
|
+
return count;
|
|
180
|
+
};
|
|
181
|
+
return deserializeJSONChunk;
|
|
182
|
+
}
|
|
183
|
+
function createJSONDataTable(options) {
|
|
184
|
+
const deserialize = createJSONDeserializer(options);
|
|
185
|
+
const table = new Map();
|
|
186
|
+
const waits = new Map();
|
|
187
|
+
const settle = (w, s, value) => {
|
|
188
|
+
const p = w.p;
|
|
189
|
+
p.s = s;
|
|
190
|
+
p.v = value;
|
|
191
|
+
s === 1 ? w.r(value) : w.j(value);
|
|
192
|
+
for (const c of p.c) c();
|
|
193
|
+
};
|
|
194
|
+
return {
|
|
195
|
+
apply(record) {
|
|
196
|
+
const value = deserialize(record.node);
|
|
197
|
+
if (record.initial) {
|
|
198
|
+
table.set(record.key, value);
|
|
199
|
+
const w = waits.get(record.key);
|
|
200
|
+
if (w) {
|
|
201
|
+
waits.delete(record.key);
|
|
202
|
+
settle(w, 1, value);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
get(key) {
|
|
207
|
+
return table.get(key);
|
|
208
|
+
},
|
|
209
|
+
resolve(ref) {
|
|
210
|
+
const key = ref.$ref;
|
|
211
|
+
if (table.has(key)) return table.get(key);
|
|
212
|
+
let w = waits.get(key);
|
|
213
|
+
if (!w) {
|
|
214
|
+
waits.set(key, w = {});
|
|
215
|
+
const p = w.p = new Promise((r, j) => (w.r = r, w.j = j));
|
|
216
|
+
p.s = 0;
|
|
217
|
+
p.c = [];
|
|
218
|
+
p.then(undefined, () => {});
|
|
219
|
+
}
|
|
220
|
+
return w.p;
|
|
221
|
+
},
|
|
222
|
+
close(error) {
|
|
223
|
+
for (const [key, w] of waits) settle(w, 2, error || new Error(`Stream ended without delivering {$ref: "${key}"}`));
|
|
224
|
+
waits.clear();
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
const defaultDisabledFeatures = () => Feature.AggregateError | Feature.BigIntTypedArray;
|
|
230
|
+
const serializeOnlyDisabledFeatures = serializeErrorStacks => (serializeErrorStacks === undefined ? process.env.NODE_ENV === "development" : serializeErrorStacks) ? 0 : Feature.ErrorPrototypeStack;
|
|
231
|
+
const HYDRATION_GLOBAL = "_$HY.r";
|
|
232
|
+
const createPlugin = createPlugin$1;
|
|
233
|
+
const OpaqueReference = OpaqueReference$1;
|
|
234
|
+
function createSerializer(options) {
|
|
235
|
+
return new Serializer({
|
|
236
|
+
...options,
|
|
237
|
+
plugins: resolveSerializerPlugins(options.plugins),
|
|
238
|
+
disabledFeatures: (options.disabledFeatures === undefined ? defaultDisabledFeatures() : options.disabledFeatures) | serializeOnlyDisabledFeatures(options.serializeErrorStacks)
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
function createKeyedSerializer(serialize, onError, onDone) {
|
|
242
|
+
const cancels = new Set();
|
|
243
|
+
let pendingWrites = 0;
|
|
244
|
+
let flushed = false;
|
|
245
|
+
let done = false;
|
|
246
|
+
let closed = false;
|
|
247
|
+
const maybeDone = () => {
|
|
248
|
+
if (flushed && pendingWrites === 0 && !done) {
|
|
249
|
+
done = true;
|
|
250
|
+
onDone && onDone();
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
return {
|
|
254
|
+
write(key, value) {
|
|
255
|
+
if (flushed) return;
|
|
256
|
+
pendingWrites++;
|
|
257
|
+
let settled = false;
|
|
258
|
+
let failed = false;
|
|
259
|
+
let started = false;
|
|
260
|
+
let cancel = null;
|
|
261
|
+
const settle = () => {
|
|
262
|
+
if (settled) return;
|
|
263
|
+
settled = true;
|
|
264
|
+
if (cancel) cancels.delete(cancel);
|
|
265
|
+
pendingWrites--;
|
|
266
|
+
maybeDone();
|
|
267
|
+
};
|
|
268
|
+
let stream;
|
|
269
|
+
try {
|
|
270
|
+
stream = serialize(key, value, {
|
|
271
|
+
onError: onError && (err => {
|
|
272
|
+
failed = true;
|
|
273
|
+
onError(err);
|
|
274
|
+
if (cancel) {
|
|
275
|
+
cancel();
|
|
276
|
+
settle();
|
|
277
|
+
}
|
|
278
|
+
}),
|
|
279
|
+
onDone: settle
|
|
280
|
+
}, initial => {
|
|
281
|
+
if (initial) started = true;
|
|
282
|
+
return !closed;
|
|
283
|
+
});
|
|
284
|
+
} catch (err) {
|
|
285
|
+
settle();
|
|
286
|
+
throw err;
|
|
287
|
+
}
|
|
288
|
+
if (settled) return;
|
|
289
|
+
if (closed || failed) {
|
|
290
|
+
stream();
|
|
291
|
+
settle();
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
cancel = stream;
|
|
295
|
+
cancels.add(cancel);
|
|
296
|
+
},
|
|
297
|
+
flush() {
|
|
298
|
+
flushed = true;
|
|
299
|
+
maybeDone();
|
|
300
|
+
},
|
|
301
|
+
close() {
|
|
302
|
+
closed = flushed = true;
|
|
303
|
+
for (const cancel of cancels) cancel();
|
|
304
|
+
cancels.clear();
|
|
305
|
+
if (!done) {
|
|
306
|
+
done = true;
|
|
307
|
+
onDone && onDone();
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
const KEY_ESCAPES = {
|
|
313
|
+
'"': '\\"',
|
|
314
|
+
"\\": "\\\\",
|
|
315
|
+
"\n": "\\n",
|
|
316
|
+
"\r": "\\r",
|
|
317
|
+
"\b": "\\b",
|
|
318
|
+
"\t": "\\t",
|
|
319
|
+
"\f": "\\f",
|
|
320
|
+
"<": "\\x3C",
|
|
321
|
+
"\u2028": "\\u2028",
|
|
322
|
+
"\u2029": "\\u2029"
|
|
323
|
+
};
|
|
324
|
+
const serializeKey = key => ("" + key).replace(/["\\\n\r\b\t\f<\u2028\u2029]/g, c => KEY_ESCAPES[c]);
|
|
325
|
+
function createHydrationSerializer({
|
|
326
|
+
onData,
|
|
327
|
+
onDone,
|
|
328
|
+
scopeId,
|
|
329
|
+
onError,
|
|
330
|
+
plugins
|
|
331
|
+
}) {
|
|
332
|
+
const resolvedPlugins = resolveSerializerPlugins(plugins);
|
|
333
|
+
const disabledFeatures = defaultDisabledFeatures() | serializeOnlyDisabledFeatures();
|
|
334
|
+
const refs = new Map();
|
|
335
|
+
return createKeyedSerializer((key, value, callbacks, live) => crossSerializeStream(value, {
|
|
336
|
+
scopeId,
|
|
337
|
+
refs,
|
|
338
|
+
plugins: resolvedPlugins,
|
|
339
|
+
disabledFeatures,
|
|
340
|
+
onSerialize(data, initial) {
|
|
341
|
+
if (!live(initial)) return;
|
|
342
|
+
onData(initial ? HYDRATION_GLOBAL + '["' + serializeKey(key) + '"]=' + data : data);
|
|
343
|
+
},
|
|
344
|
+
...callbacks
|
|
345
|
+
}), onError, onDone);
|
|
346
|
+
}
|
|
347
|
+
function getLocalHeaderScript(id) {
|
|
348
|
+
return getCrossReferenceHeader(id) + ";";
|
|
349
|
+
}
|
|
350
|
+
function serializeJSON(value, {
|
|
351
|
+
onParse,
|
|
352
|
+
onDone,
|
|
353
|
+
onError,
|
|
354
|
+
refs,
|
|
355
|
+
...codecOptions
|
|
356
|
+
}) {
|
|
357
|
+
const resolved = resolveCodecOptions(codecOptions);
|
|
358
|
+
return toCrossJSONStream(value, {
|
|
359
|
+
onParse,
|
|
360
|
+
onDone,
|
|
361
|
+
onError,
|
|
362
|
+
refs,
|
|
363
|
+
...resolved,
|
|
364
|
+
disabledFeatures: resolved.disabledFeatures | serializeOnlyDisabledFeatures(resolved.serializeErrorStacks)
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
function createJSONSerializer({
|
|
368
|
+
onData,
|
|
369
|
+
onDone,
|
|
370
|
+
onError,
|
|
371
|
+
plugins,
|
|
372
|
+
disabledFeatures,
|
|
373
|
+
depthLimit,
|
|
374
|
+
serializeErrorStacks
|
|
375
|
+
}) {
|
|
376
|
+
const resolved = resolveCodecOptions({
|
|
377
|
+
plugins,
|
|
378
|
+
disabledFeatures,
|
|
379
|
+
depthLimit,
|
|
380
|
+
serializeErrorStacks
|
|
381
|
+
});
|
|
382
|
+
const refs = new Map();
|
|
383
|
+
return createKeyedSerializer((key, value, callbacks, live) => toCrossJSONStream(value, {
|
|
384
|
+
refs,
|
|
385
|
+
plugins: resolved.plugins,
|
|
386
|
+
disabledFeatures: resolved.disabledFeatures | serializeOnlyDisabledFeatures(resolved.serializeErrorStacks),
|
|
387
|
+
onParse(node, initial) {
|
|
388
|
+
if (live(initial)) onData({
|
|
389
|
+
key,
|
|
390
|
+
node,
|
|
391
|
+
initial
|
|
392
|
+
});
|
|
393
|
+
},
|
|
394
|
+
...callbacks
|
|
395
|
+
}), onError, onDone);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
export { DEFAULT_WEB_PLUGINS, OpaqueReference, createHydrationSerializer, createJSONDataTable, createJSONDeserializer, createJSONSerializer, createPlugin, createSerializer, getLocalHeaderScript, resolveSerializerPlugins, serializeJSON };
|