@flighthq/flow 0.5.1-next.973.788d3d7 → 0.6.0

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 (44) hide show
  1. package/README.md +2 -2
  2. package/dist/.tsbuildinfo.contract +1 -0
  3. package/dist/.tsbuildinfo.runtime +1 -0
  4. package/dist/contract.d.ts +6 -2
  5. package/dist/contract.d.ts.map +1 -1
  6. package/dist/contract.flow-types.d.ts +3 -0
  7. package/dist/contract.flow-types.d.ts.map +1 -0
  8. package/dist/contract.flow-types.js +2 -0
  9. package/dist/contract.flow-types.js.map +1 -0
  10. package/dist/contract.js +5 -2
  11. package/dist/contract.js.map +1 -1
  12. package/dist/flow.d.ts +46 -11
  13. package/dist/flow.d.ts.map +1 -1
  14. package/dist/flow.js +172 -93
  15. package/dist/flow.js.map +1 -1
  16. package/dist/flowGuards.d.ts +22 -4
  17. package/dist/flowGuards.d.ts.map +1 -1
  18. package/dist/flowGuards.js +72 -10
  19. package/dist/flowGuards.js.map +1 -1
  20. package/dist/flowStackCompat.d.ts +20 -0
  21. package/dist/flowStackCompat.d.ts.map +1 -0
  22. package/dist/flowStackCompat.js +47 -0
  23. package/dist/flowStackCompat.js.map +1 -0
  24. package/dist/flowTransitions.d.ts +3 -0
  25. package/dist/flowTransitions.d.ts.map +1 -0
  26. package/dist/flowTransitions.js +14 -0
  27. package/dist/flowTransitions.js.map +1 -0
  28. package/dist/flowTypes.d.ts +33 -0
  29. package/dist/flowTypes.d.ts.map +1 -0
  30. package/dist/flowTypes.js +4 -0
  31. package/dist/flowTypes.js.map +1 -0
  32. package/dist/index.d.ts +3 -2
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +4 -2
  35. package/dist/index.js.map +1 -1
  36. package/dist/types.d.ts +24 -0
  37. package/dist/types.d.ts.map +1 -0
  38. package/dist/types.js +4 -0
  39. package/dist/types.js.map +1 -0
  40. package/package.json +6 -5
  41. package/src/flow.test.ts +440 -175
  42. package/src/flowGuards.test.ts +131 -12
  43. package/src/flowStackCompat.test.ts +99 -0
  44. package/src/flowTransitions.test.ts +26 -0
package/README.md CHANGED
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/flow`. The `@flighth
13
13
  This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
14
14
 
15
15
  - [Flight project](https://github.com/flighthq/flight)
16
- - [Source for @flighthq/flow@0.5.1-next.973.788d3d7](https://github.com/flighthq/flight/tree/788d3d7375cca3a0233cecedda1a4e031bd26dec/packages/flow)
17
- - [License](https://github.com/flighthq/flight/blob/788d3d7375cca3a0233cecedda1a4e031bd26dec/LICENSE.md)
16
+ - [Source for @flighthq/flow@0.6.0](https://github.com/flighthq/flight/tree/ead804bfaef3e691a2e6e43e9711ddd3fd8a84a2/packages/flow)
17
+ - [License](https://github.com/flighthq/flight/blob/ead804bfaef3e691a2e6e43e9711ddd3fd8a84a2/LICENSE.md)
@@ -0,0 +1 @@
1
+ {"version":"7.0.2","root":[[74,75]],"packageJsons":["../../../node_modules/@standard-schema/spec/package.json","../../../node_modules/@testing-library/jest-dom/package.json","../../../node_modules/@types/aria-query/package.json","../../../node_modules/@types/chai/package.json","../../../node_modules/@types/deep-eql/package.json","../../../node_modules/@types/node/package.json","../../../node_modules/@vitest/coverage-v8/package.json","../../../node_modules/@vitest/expect/package.json","../../../node_modules/@vitest/mocker/package.json","../../../node_modules/@vitest/pretty-format/package.json","../../../node_modules/@vitest/runner/package.json","../../../node_modules/@vitest/snapshot/package.json","../../../node_modules/@vitest/spy/package.json","../../../node_modules/@vitest/utils/package.json","../../../node_modules/@webgpu/types/package.json","../../../node_modules/aria-query/package.json","../../../node_modules/assertion-error/package.json","../../../node_modules/chai/package.json","../../../node_modules/deep-eql/package.json","../../../node_modules/expect-type/package.json","../../../node_modules/jiti/package.json","../../../node_modules/jsdom/package.json","../../../node_modules/terser/package.json","../../../node_modules/tinybench/package.json","../../../node_modules/tinyrainbow/package.json","../../../node_modules/tsx/package.json","../../../node_modules/vite/package.json","../../../node_modules/vite/types/package.json","../../../node_modules/vitest/package.json","../../../node_modules/yaml/package.json","../../entity/package.json","../package.json"],"missingPackageJsons":["../../../node_modules/@edge-runtime/vm/package.json","../../../node_modules/@opentelemetry/api/package.json","../../../node_modules/@standard-schema/spec/dist/package.json","../../../node_modules/@testing-library/jest-dom/node_modules/aria-query/package.json","../../../node_modules/@testing-library/jest-dom/node_modules/jest/package.json","../../../node_modules/@testing-library/jest-dom/types/package.json","../../../node_modules/@types/jest/package.json","../../../node_modules/@types/testing-library__jest-dom/package.json","../../../node_modules/@types/vitest/globals/package.json","../../../node_modules/@types/webgpu__types/package.json","../../../node_modules/@vitest/browser-playwright/package.json","../../../node_modules/@vitest/browser-preview/package.json","../../../node_modules/@vitest/browser-webdriverio/package.json","../../../node_modules/@vitest/coverage-istanbul/package.json","../../../node_modules/@vitest/expect/dist/package.json","../../../node_modules/@vitest/mocker/dist/package.json","../../../node_modules/@vitest/pretty-format/dist/package.json","../../../node_modules/@vitest/runner/dist/package.json","../../../node_modules/@vitest/runner/utils/package.json","../../../node_modules/@vitest/snapshot/dist/package.json","../../../node_modules/@vitest/spy/dist/package.json","../../../node_modules/@vitest/ui/package.json","../../../node_modules/@vitest/utils/diff/package.json","../../../node_modules/@vitest/utils/display/package.json","../../../node_modules/@vitest/utils/dist/package.json","../../../node_modules/@webgpu/types/dist/package.json","../../../node_modules/expect-type/dist/package.json","../../../node_modules/happy-dom/package.json","../../../node_modules/jest/package.json","../../../node_modules/less/package.json","../../../node_modules/lightningcss/package.json","../../../node_modules/msw/package.json","../../../node_modules/sass-embedded/package.json","../../../node_modules/sass/package.json","../../../node_modules/stylus/package.json","../../../node_modules/sugarss/package.json","../../../node_modules/tinybench/dist/package.json","../../../node_modules/tinyrainbow/dist/package.json","../../../node_modules/vite/dist/node/chunks/package.json","../../../node_modules/vite/dist/node/package.json","../../../node_modules/vite/dist/package.json","../../../node_modules/vite/module-runner/package.json","../../../node_modules/vitest/dist/chunks/package.json","../../../node_modules/vitest/dist/package.json","../../../node_modules/vitest/globals/package.json"],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2022.d.ts","lib.dom.d.ts","lib.dom.iterable.d.ts","lib.dom.asynciterable.d.ts","lib.webworker.importscripts.d.ts","lib.scripthost.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2022.array.d.ts","lib.es2022.error.d.ts","lib.es2022.intl.d.ts","lib.es2022.object.d.ts","lib.es2022.string.d.ts","lib.es2022.regexp.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","lib.es2022.full.d.ts","../../entity/dist/types.d.ts","../../entity/dist/binding.d.ts","../../entity/dist/clone.d.ts","../../entity/dist/enableEntityRuntimeGuards.d.ts","../../entity/dist/entity.d.ts","../../entity/dist/entityUid.d.ts","../../entity/dist/explainEntityRuntimeWrite.d.ts","../../entity/dist/guards.d.ts","../../entity/dist/runtime.d.ts","../../entity/dist/contract.d.ts","../src/flowTypes.ts","../src/contract.flow-types.ts","../../../node_modules/@types/aria-query/index.d.ts","../../../node_modules/@testing-library/jest-dom/types/matchers.d.ts","../../../node_modules/@testing-library/jest-dom/types/jest.d.ts","../../../node_modules/@testing-library/jest-dom/types/index.d.ts","../../../node_modules/@vitest/pretty-format/dist/index.d.ts","../../../node_modules/@vitest/utils/dist/display.d.ts","../../../node_modules/@vitest/utils/dist/types.d.ts","../../../node_modules/@vitest/utils/dist/helpers.d.ts","../../../node_modules/@vitest/utils/dist/timers.d.ts","../../../node_modules/@vitest/utils/dist/index.d.ts","../../../node_modules/@vitest/utils/dist/types.d-BCElaP-c.d.ts","../../../node_modules/@vitest/utils/dist/diff.d.ts","../../../node_modules/@vitest/runner/dist/tasks.d-DEYaIMIu.d.ts","../../../node_modules/@vitest/runner/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/traces.d.D2T_R8rx.d.ts","../../../node_modules/vite/types/hmrPayload.d.ts","../../../node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts","../../../node_modules/vite/types/customEvent.d.ts","../../../node_modules/vite/types/hot.d.ts","../../../node_modules/vite/dist/node/module-runner.d.ts","../../../node_modules/@vitest/snapshot/dist/environment.d-DOJxxZV9.d.ts","../../../node_modules/@vitest/snapshot/dist/rawSnapshot.d-D_X3-62x.d.ts","../../../node_modules/@vitest/snapshot/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/config.d.A1h_Y6Jt.d.ts","../../../node_modules/vitest/dist/chunks/environment.d.CrsxCzP1.d.ts","../../../node_modules/vitest/dist/chunks/rpc.d.B_8sPU0w.d.ts","../../../node_modules/vitest/dist/chunks/worker.d.ZpHpO4yb.d.ts","../../../node_modules/vitest/dist/chunks/browser.d.BcoexmFG.d.ts","../../../node_modules/@vitest/spy/optional-types.d.ts","../../../node_modules/@vitest/spy/dist/index.d.ts","../../../node_modules/tinyrainbow/dist/index.d.ts","../../../node_modules/@standard-schema/spec/dist/index.d.ts","../../../node_modules/@types/deep-eql/index.d.ts","../../../node_modules/assertion-error/index.d.ts","../../../node_modules/@types/chai/index.d.ts","../../../node_modules/@vitest/expect/dist/index.d.ts","../../../node_modules/@vitest/runner/dist/utils.d.ts","../../../node_modules/tinybench/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/benchmark.d.DAaHLpsq.d.ts","../../../node_modules/vitest/dist/chunks/global.d.DVsSRdQ5.d.ts","../../../node_modules/vitest/optional-runtime-types.d.ts","../../../node_modules/@vitest/mocker/dist/types.d-BjI5eAwu.d.ts","../../../node_modules/@vitest/mocker/dist/index.d-B41z0AuW.d.ts","../../../node_modules/@vitest/mocker/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/suite.d.udJtyAgw.d.ts","../../../node_modules/vitest/dist/chunks/evaluatedModules.d.BxJ5omdx.d.ts","../../../node_modules/vitest/dist/runners.d.ts","../../../node_modules/expect-type/dist/utils.d.ts","../../../node_modules/expect-type/dist/overloads.d.ts","../../../node_modules/expect-type/dist/branding.d.ts","../../../node_modules/expect-type/dist/messages.d.ts","../../../node_modules/expect-type/dist/index.d.ts","../../../node_modules/vitest/dist/index.d.ts","../../../node_modules/vitest/globals.d.ts","../../../node_modules/@webgpu/types/dist/index.d.ts"],"fileInfos":[{"version":"16934abaab7026ac114da441aabea1a0","affectsGlobalScope":true,"impliedNodeFormat":1},"d4306fb2e47f74835e8674ffac07d76f","e437c5c1302869326c3bb93da85bbbcf","e4324975a566567b21d350615f1fc6ac","333b1b9a2a9ac3b8497dba5c63b5ba50","6cffacd662b6eb5fa7a36aa2ea366bfa","b4c34f9c23304dbef2d23698637ed638","e5cb86a5fc491796ecd1d2dd348d208f","feb6c6fb19cdb246a5d8acb36a6901c7",{"version":"aae8996e8b5684814785a42cbbefcd79","affectsGlobalScope":true,"impliedNodeFormat":1},"abad6dd56cc8caf095c165df8124d237","abad6dd56cc8caf095c165df8124d237",{"version":"2a9941db0809c9ad0e8837ed629b1dcc","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d051b93324f36bcc68d152a5ca0988cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"926204c28cd3d073865348473ae28d2e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f25e42c801b2cb3cf2b39792006a9beb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6344b55f26a4e81d9608777dbfb877dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3c0ed28e53d3695b363e256ec1c023fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c2761daba7f17141c25baa0821ac5da","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b87656acabd63e69379ff6ffcfe52fc7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"597469522da047a5af5222cc6989f405","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1708ea4d34dc37fadadc63ca01127e80","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55d97a8c6fbf34a30450a7b1e5f7a298","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ee05eb59426d33e374226d8dcfa708b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e347c14030993906efcfbb88915b6a05","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b0231263857c9b6a03641acdc9280ceb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3b15c4a83b598cacb4067676e6f0abed","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b417d97b7934cef63b1889abec0bbfbf","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"09a6cf4032ebba60ce22a501e663f881","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2b056277dd138e8f5650fc04e20eaa8d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e22cc07e3f3cc242ba52fa3f8ea1fc58","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c45da767a1bfbb220848df1bc4029e4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b44c3e0fbaf2130cdcf6ac38b120ffa1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b612fb5cf8e5d964b92063a75207632a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02705151a5e1551b9162a9ed8ab763f7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"41025e398be9215d32e4337335da8f0b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"52684c2b1f353a5538e4f275182a54cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6dedb6a4f90d1df3a6fbe5693e44886c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca3f36fe3562c07e0f0d71c2bebd3f6d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"409974d6129befbb8226ddd1c6558568","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4d9cfde2a1ae1b4925f1f9bc10848e5d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7e1daecc66dd564144e3bb1a0266b5fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a8e1d9bb35fd0637f2f9fd2b2a54f2ec","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f168501772a6543182765bfd5f2fbfe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19c80aad1b2162103496f5ba293a732","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b69afa63cd5d059851c78adb2856ee09","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ae2fc5d954e9b0f5feee3d481b953c27","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cfd3091a071d8b6feec15277643bafe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1da2c1f258970fd3cc91184f69e91a9d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a0d87491913d843139e0c993650a3235","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4ef72aa378127e7b7abba915b0110b1e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3ec74c6a7d4463f0254db3a74cf75646","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"84c2bdfa470d075526cce6322d81b0b6","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0b3844c2b8c73e4e1ab91431411cad11","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4fc71cf4a15b8d99675a31df77f26e07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d1b49564ddaeca3df5b6dbae925d2242","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6a25be566d60ccfc2d6e8b7bfdeefa83","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a20e27646985dfd58c57ca6566553dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9969f02ad3cdcbf4f709405cda44167f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c9be4792a7a4f42c15ae7360bf28779","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f64453cbf9671f28158677fa5c43967a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"33f317af5428801f944a478d2c1e38e5","affectsGlobalScope":true,"impliedNodeFormat":1},"0eb5b8b97bde45c8fde5cd07c33f6631","22772bc49abb63e5c9ba66ac5fb78a3d","daf7ba9e176366b3caf843bd266d163a","1cd6ad8dcb5625d764e0d55a82295469","76aca40ee07d543a14c24ba839109332","6f54f49ea7e96bdd7a9078f6c94e88fd","e9fd0536114fa9a746eacd5bc23969e5","add935c05420698ee2f670e9c7605d49","8202b77f954e4d5a21783859414fcc7c","524a08ff038d375ae8c86bf6481e17d2","9ff787c1324b2d4c07a342936293f47a",{"version":"faad7525b09e8dbda44bc78c54cd1355","signature":"4b7682dd268a70f90f827a2b3474aefa","impliedNodeFormat":1},{"version":"e4c886ce0ed62d95fd845d25c18298b8","signature":"8b0e8ed5494bfed78eea4add3cfbc00e","impliedNodeFormat":1},"56d080dfccb3c53a2d6c74c4f24252e3","75ebd62d9641cc8b34ba9b09be8283a9",{"version":"753f71e16f2994f332390bb1c997b0e3","affectsGlobalScope":true,"impliedNodeFormat":1},"8def0ea0e249f49397d74a4f5bdd45a5",{"version":"ed63d99e1e5c371dc120bef1b84057fc","impliedNodeFormat":99},{"version":"4d3fb552bfc7fb53c9195b2fafb512c0","impliedNodeFormat":99},{"version":"fbf7ba69043f86dc506ba28263e2e783","impliedNodeFormat":99},{"version":"a611eb6935df7737a77b34b01c631a4a","impliedNodeFormat":99},{"version":"6d08f6f1d0ee294c119d0e66f826331a","impliedNodeFormat":99},{"version":"d0abb8fa314728650d85450ff59db909","impliedNodeFormat":99},{"version":"abe007be89c2ad52c4d67fc2b0f6da6b","impliedNodeFormat":99},{"version":"ae1fe3925f3a2c8dfbb269ac2a50f5a6","impliedNodeFormat":99},{"version":"ee8ce731ff781ae7011350481a1af176","impliedNodeFormat":99},{"version":"08dcd98985ae16732a9be03d2b56aea6","impliedNodeFormat":99},{"version":"47f7401876f3c0a5b80bd01fbdfaed2b","impliedNodeFormat":99},"ab8e1ea59f16bc290a0451d09dc5a52e",{"version":"e9d43fb880595ac4ee66a56a364fd5fb","impliedNodeFormat":99},"24367c4ec7d778084b3a83bbdc5a23d4","edbf4843929ee5fe6521503f424e4464",{"version":"5e0eecd60ec8ccc15c22c507248ef1aa","impliedNodeFormat":99},{"version":"0221e2868d1f0d6df8321d945764aadb","impliedNodeFormat":99},{"version":"d2f6ad6f161f0a522886f64842c96a0e","impliedNodeFormat":99},{"version":"618ace1500cc84e42bc2e47c64f8c407","impliedNodeFormat":99},{"version":"9dd3c481cc870c4bf19e59d34f030a27","impliedNodeFormat":99},{"version":"b5c81396e966d59acab5a45f66b70866","impliedNodeFormat":99},{"version":"f94aa434ddb9e71f6e80395de85f6850","impliedNodeFormat":99},{"version":"3486e8f7f01b9874a793ddd451eb62a5","impliedNodeFormat":99},{"version":"cb0e7222aae349c2fb4f89b26efa81bd","impliedNodeFormat":99},{"version":"b9129d694ae6cf810850117dda49d045","impliedNodeFormat":99},{"version":"0d7bbad7f82c886c5f36730065aec119","impliedNodeFormat":99},{"version":"369460c2755240ac2d3d006f09adb5ca","impliedNodeFormat":99},{"version":"4509fca76e721cdf9edb2d028395a117","impliedNodeFormat":99},"548472bfd4ebe2f1c8f494b960a27836",{"version":"fa98b0905a86da0a95fa8fd3e974e038","impliedNodeFormat":99},{"version":"5ede871fecbb2b6f672a99d3c3c6bee7","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"2c51637edf65b89d39356deff680ed36","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"0bf0efdacfd4bfadb631a4376097e382","impliedNodeFormat":99},{"version":"bd01f3bcdc72c9256e5cd5093d132df3","impliedNodeFormat":99},{"version":"b01bdc9acbaf3eb24eef464959e8e627","impliedNodeFormat":99},{"version":"2a75a1a065e5d0439fa1514d9c89b0eb","impliedNodeFormat":99},{"version":"b9129d694ae6cf810850117dda49d045","impliedNodeFormat":99},{"version":"c01d22bc96b89eedc0ed1f11d8c270ab","impliedNodeFormat":99},{"version":"c15bc5b81c64386efb6f85fb596c4349","impliedNodeFormat":99},{"version":"5794a694c1f75a9cc38cb5e9c757224e","impliedNodeFormat":99},{"version":"4040d5640775a803b2ca1aa914f7a1d4","impliedNodeFormat":99},{"version":"5ed96746ee2e7eb084ad54f0e0e518bc","impliedNodeFormat":99},{"version":"eba7786b00a4e551c36bafa71bfb1876","impliedNodeFormat":99},"8d8a98bf45979ce5401d9ca4027940cd","7d98e95d38525423bbe0f05e0a508a41","96920299d013de56061cbc74a1d658b2","439adabdf29be1212ec7acc292679f21","3eb46d20ed056dcbfa5e75bad9014661",{"version":"b46aa1886055db890de9be52a97b301e","impliedNodeFormat":99},{"version":"23cbcf6109a45b21e5b22d5f36f59db4","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"851c83981c28a32944597c743f666820","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[78],[77],[76],[108,109],[81,87,105,106,107,110],[117],[117,118],[85,87,88],[85,87],[85],[80,85,96,97],[80,85,96],[104],[80,86],[80],[82],[80,81,82,83,84],[123,124],[123,124,125,126],[123,125],[123],[91],[91,92,93,94],[93],[89,112,113,115],[89,90,102,115],[80,87,89,90,98,115],[95],[80,89,90,98,111,114],[89,90,95,98,115],[89,112,113,114,115],[89,95,99,100,101,115],[80,85,87,89,90,95,98,99,100,101,102,103,105,111,112,113,114,115,116,119,120,121,122,127],[80,87,89,90,98,99,112,113,114,115,120],[128],[64],[64,65,66,67,68,69,70,71,72],[74],[73]],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","rewriteRelativeImportExtensions":true,"rootDir":"../src","skipLibCheck":true,"strict":true,"sourceMap":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo.contract","useDefineForClassFields":true},"referencedMap":[[79,1],[78,2],[77,3],[110,4],[111,5],[118,6],[119,7],[89,8],[88,9],[112,8],[96,10],[98,11],[97,12],[105,13],[87,14],[81,15],[83,16],[85,17],[86,15],[125,18],[127,19],[126,20],[124,21],[92,22],[95,23],[93,22],[94,24],[114,25],[103,26],[99,27],[100,10],[121,28],[115,29],[101,30],[120,31],[102,32],[128,33],[122,34],[129,35],[65,36],[66,36],[73,37],[67,36],[68,36],[69,36],[70,36],[71,36],[72,36],[75,38],[74,39]],"latestChangedDtsFile":"./contract.flow-types.d.ts"}
@@ -0,0 +1 @@
1
+ {"version":"7.0.2","root":[[90,92],[94,96],[146,150]],"packageJsons":["../../../node_modules/@standard-schema/spec/package.json","../../../node_modules/@testing-library/jest-dom/package.json","../../../node_modules/@types/aria-query/package.json","../../../node_modules/@types/chai/package.json","../../../node_modules/@types/deep-eql/package.json","../../../node_modules/@types/node/package.json","../../../node_modules/@vitest/coverage-v8/package.json","../../../node_modules/@vitest/expect/package.json","../../../node_modules/@vitest/mocker/package.json","../../../node_modules/@vitest/pretty-format/package.json","../../../node_modules/@vitest/runner/package.json","../../../node_modules/@vitest/snapshot/package.json","../../../node_modules/@vitest/spy/package.json","../../../node_modules/@vitest/utils/package.json","../../../node_modules/@webgpu/types/package.json","../../../node_modules/aria-query/package.json","../../../node_modules/assertion-error/package.json","../../../node_modules/chai/package.json","../../../node_modules/deep-eql/package.json","../../../node_modules/expect-type/package.json","../../../node_modules/jiti/package.json","../../../node_modules/jsdom/package.json","../../../node_modules/terser/package.json","../../../node_modules/tinybench/package.json","../../../node_modules/tinyrainbow/package.json","../../../node_modules/tsx/package.json","../../../node_modules/vite/package.json","../../../node_modules/vite/types/package.json","../../../node_modules/vitest/package.json","../../../node_modules/yaml/package.json","../../entity/package.json","../package.json","../../log/package.json","../../signals/package.json"],"missingPackageJsons":["../../../node_modules/@edge-runtime/vm/package.json","../../../node_modules/@opentelemetry/api/package.json","../../../node_modules/@standard-schema/spec/dist/package.json","../../../node_modules/@testing-library/jest-dom/node_modules/aria-query/package.json","../../../node_modules/@testing-library/jest-dom/node_modules/jest/package.json","../../../node_modules/@testing-library/jest-dom/types/package.json","../../../node_modules/@types/jest/package.json","../../../node_modules/@types/testing-library__jest-dom/package.json","../../../node_modules/@types/vitest/globals/package.json","../../../node_modules/@types/webgpu__types/package.json","../../../node_modules/@vitest/browser-playwright/package.json","../../../node_modules/@vitest/browser-preview/package.json","../../../node_modules/@vitest/browser-webdriverio/package.json","../../../node_modules/@vitest/coverage-istanbul/package.json","../../../node_modules/@vitest/expect/dist/package.json","../../../node_modules/@vitest/mocker/dist/package.json","../../../node_modules/@vitest/pretty-format/dist/package.json","../../../node_modules/@vitest/runner/dist/package.json","../../../node_modules/@vitest/runner/utils/package.json","../../../node_modules/@vitest/snapshot/dist/package.json","../../../node_modules/@vitest/spy/dist/package.json","../../../node_modules/@vitest/ui/package.json","../../../node_modules/@vitest/utils/diff/package.json","../../../node_modules/@vitest/utils/display/package.json","../../../node_modules/@vitest/utils/dist/package.json","../../../node_modules/@webgpu/types/dist/package.json","../../../node_modules/expect-type/dist/package.json","../../../node_modules/happy-dom/package.json","../../../node_modules/jest/package.json","../../../node_modules/less/package.json","../../../node_modules/lightningcss/package.json","../../../node_modules/msw/package.json","../../../node_modules/sass-embedded/package.json","../../../node_modules/sass/package.json","../../../node_modules/stylus/package.json","../../../node_modules/sugarss/package.json","../../../node_modules/tinybench/dist/package.json","../../../node_modules/tinyrainbow/dist/package.json","../../../node_modules/vite/dist/node/chunks/package.json","../../../node_modules/vite/dist/node/package.json","../../../node_modules/vite/dist/package.json","../../../node_modules/vite/module-runner/package.json","../../../node_modules/vitest/dist/chunks/package.json","../../../node_modules/vitest/dist/package.json","../../../node_modules/vitest/globals/package.json"],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2022.d.ts","lib.dom.d.ts","lib.dom.iterable.d.ts","lib.dom.asynciterable.d.ts","lib.webworker.importscripts.d.ts","lib.scripthost.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2022.array.d.ts","lib.es2022.error.d.ts","lib.es2022.intl.d.ts","lib.es2022.object.d.ts","lib.es2022.string.d.ts","lib.es2022.regexp.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","lib.es2022.full.d.ts","../../entity/dist/types.d.ts","../../entity/dist/binding.d.ts","../../entity/dist/clone.d.ts","../../entity/dist/enableEntityRuntimeGuards.d.ts","../../entity/dist/entity.d.ts","../../entity/dist/entityUid.d.ts","../../entity/dist/explainEntityRuntimeWrite.d.ts","../../entity/dist/guards.d.ts","../../entity/dist/runtime.d.ts","../../entity/dist/contract.d.ts","../../signals/dist/types.d.ts","../../signals/dist/connection.d.ts","../../signals/dist/emitter.d.ts","../../signals/dist/internal.d.ts","../../signals/dist/safe.d.ts","../../signals/dist/scope.d.ts","../../signals/dist/signal.d.ts","../../signals/dist/slot.d.ts","../../signals/dist/throttle.d.ts","../../signals/dist/signalTypes.d.ts","../../signals/dist/contract.d.ts","../../log/dist/types.d.ts","../../log/dist/log.d.ts","../../log/dist/consoleLogSink.d.ts","../../log/dist/fileLogSink.d.ts","../../log/dist/contract.d.ts","../src/types.ts","../src/flowGuards.ts","../src/flowTransitions.ts","./flowTypes.d.ts","../src/flow.ts","../src/flowStackCompat.ts","../src/contract.ts","../../../node_modules/@vitest/pretty-format/dist/index.d.ts","../../../node_modules/@vitest/utils/dist/display.d.ts","../../../node_modules/@vitest/utils/dist/types.d.ts","../../../node_modules/@vitest/utils/dist/helpers.d.ts","../../../node_modules/@vitest/utils/dist/timers.d.ts","../../../node_modules/@vitest/utils/dist/index.d.ts","../../../node_modules/@vitest/utils/dist/types.d-BCElaP-c.d.ts","../../../node_modules/@vitest/utils/dist/diff.d.ts","../../../node_modules/@vitest/runner/dist/tasks.d-DEYaIMIu.d.ts","../../../node_modules/@vitest/runner/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/traces.d.D2T_R8rx.d.ts","../../../node_modules/vite/types/hmrPayload.d.ts","../../../node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts","../../../node_modules/vite/types/customEvent.d.ts","../../../node_modules/vite/types/hot.d.ts","../../../node_modules/vite/dist/node/module-runner.d.ts","../../../node_modules/@vitest/snapshot/dist/environment.d-DOJxxZV9.d.ts","../../../node_modules/@vitest/snapshot/dist/rawSnapshot.d-D_X3-62x.d.ts","../../../node_modules/@vitest/snapshot/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/config.d.A1h_Y6Jt.d.ts","../../../node_modules/vitest/dist/chunks/environment.d.CrsxCzP1.d.ts","../../../node_modules/vitest/dist/chunks/rpc.d.B_8sPU0w.d.ts","../../../node_modules/vitest/dist/chunks/worker.d.ZpHpO4yb.d.ts","../../../node_modules/vitest/dist/chunks/browser.d.BcoexmFG.d.ts","../../../node_modules/@vitest/spy/optional-types.d.ts","../../../node_modules/@vitest/spy/dist/index.d.ts","../../../node_modules/tinyrainbow/dist/index.d.ts","../../../node_modules/@standard-schema/spec/dist/index.d.ts","../../../node_modules/@types/deep-eql/index.d.ts","../../../node_modules/assertion-error/index.d.ts","../../../node_modules/@types/chai/index.d.ts","../../../node_modules/@vitest/expect/dist/index.d.ts","../../../node_modules/@vitest/runner/dist/utils.d.ts","../../../node_modules/tinybench/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/benchmark.d.DAaHLpsq.d.ts","../../../node_modules/vitest/dist/chunks/global.d.DVsSRdQ5.d.ts","../../../node_modules/vitest/optional-runtime-types.d.ts","../../../node_modules/@vitest/mocker/dist/types.d-BjI5eAwu.d.ts","../../../node_modules/@vitest/mocker/dist/index.d-B41z0AuW.d.ts","../../../node_modules/@vitest/mocker/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/suite.d.udJtyAgw.d.ts","../../../node_modules/vitest/dist/chunks/evaluatedModules.d.BxJ5omdx.d.ts","../../../node_modules/vitest/dist/runners.d.ts","../../../node_modules/expect-type/dist/utils.d.ts","../../../node_modules/expect-type/dist/overloads.d.ts","../../../node_modules/expect-type/dist/branding.d.ts","../../../node_modules/expect-type/dist/messages.d.ts","../../../node_modules/expect-type/dist/index.d.ts","../../../node_modules/vitest/dist/index.d.ts","../src/flow.test.ts","../src/flowGuards.test.ts","../src/flowStackCompat.test.ts","../src/flowTransitions.test.ts","../src/index.ts","../../../node_modules/@types/aria-query/index.d.ts","../../../node_modules/@testing-library/jest-dom/types/matchers.d.ts","../../../node_modules/@testing-library/jest-dom/types/jest.d.ts","../../../node_modules/@testing-library/jest-dom/types/index.d.ts","../../../node_modules/vitest/globals.d.ts","../../../node_modules/@webgpu/types/dist/index.d.ts"],"fileInfos":[{"version":"16934abaab7026ac114da441aabea1a0","affectsGlobalScope":true,"impliedNodeFormat":1},"d4306fb2e47f74835e8674ffac07d76f","e437c5c1302869326c3bb93da85bbbcf","e4324975a566567b21d350615f1fc6ac","333b1b9a2a9ac3b8497dba5c63b5ba50","6cffacd662b6eb5fa7a36aa2ea366bfa","b4c34f9c23304dbef2d23698637ed638","e5cb86a5fc491796ecd1d2dd348d208f","feb6c6fb19cdb246a5d8acb36a6901c7",{"version":"aae8996e8b5684814785a42cbbefcd79","affectsGlobalScope":true,"impliedNodeFormat":1},"abad6dd56cc8caf095c165df8124d237","abad6dd56cc8caf095c165df8124d237",{"version":"2a9941db0809c9ad0e8837ed629b1dcc","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d051b93324f36bcc68d152a5ca0988cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"926204c28cd3d073865348473ae28d2e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f25e42c801b2cb3cf2b39792006a9beb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6344b55f26a4e81d9608777dbfb877dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3c0ed28e53d3695b363e256ec1c023fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c2761daba7f17141c25baa0821ac5da","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b87656acabd63e69379ff6ffcfe52fc7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"597469522da047a5af5222cc6989f405","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1708ea4d34dc37fadadc63ca01127e80","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55d97a8c6fbf34a30450a7b1e5f7a298","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ee05eb59426d33e374226d8dcfa708b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e347c14030993906efcfbb88915b6a05","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b0231263857c9b6a03641acdc9280ceb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3b15c4a83b598cacb4067676e6f0abed","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b417d97b7934cef63b1889abec0bbfbf","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"09a6cf4032ebba60ce22a501e663f881","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2b056277dd138e8f5650fc04e20eaa8d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e22cc07e3f3cc242ba52fa3f8ea1fc58","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c45da767a1bfbb220848df1bc4029e4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b44c3e0fbaf2130cdcf6ac38b120ffa1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b612fb5cf8e5d964b92063a75207632a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02705151a5e1551b9162a9ed8ab763f7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"41025e398be9215d32e4337335da8f0b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"52684c2b1f353a5538e4f275182a54cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6dedb6a4f90d1df3a6fbe5693e44886c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca3f36fe3562c07e0f0d71c2bebd3f6d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"409974d6129befbb8226ddd1c6558568","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4d9cfde2a1ae1b4925f1f9bc10848e5d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7e1daecc66dd564144e3bb1a0266b5fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a8e1d9bb35fd0637f2f9fd2b2a54f2ec","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f168501772a6543182765bfd5f2fbfe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19c80aad1b2162103496f5ba293a732","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b69afa63cd5d059851c78adb2856ee09","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ae2fc5d954e9b0f5feee3d481b953c27","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cfd3091a071d8b6feec15277643bafe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1da2c1f258970fd3cc91184f69e91a9d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a0d87491913d843139e0c993650a3235","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4ef72aa378127e7b7abba915b0110b1e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3ec74c6a7d4463f0254db3a74cf75646","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"84c2bdfa470d075526cce6322d81b0b6","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0b3844c2b8c73e4e1ab91431411cad11","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4fc71cf4a15b8d99675a31df77f26e07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d1b49564ddaeca3df5b6dbae925d2242","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6a25be566d60ccfc2d6e8b7bfdeefa83","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a20e27646985dfd58c57ca6566553dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9969f02ad3cdcbf4f709405cda44167f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c9be4792a7a4f42c15ae7360bf28779","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f64453cbf9671f28158677fa5c43967a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"33f317af5428801f944a478d2c1e38e5","affectsGlobalScope":true,"impliedNodeFormat":1},"0eb5b8b97bde45c8fde5cd07c33f6631","22772bc49abb63e5c9ba66ac5fb78a3d","daf7ba9e176366b3caf843bd266d163a","1cd6ad8dcb5625d764e0d55a82295469","76aca40ee07d543a14c24ba839109332","6f54f49ea7e96bdd7a9078f6c94e88fd","e9fd0536114fa9a746eacd5bc23969e5","add935c05420698ee2f670e9c7605d49","8202b77f954e4d5a21783859414fcc7c","524a08ff038d375ae8c86bf6481e17d2","9ff787c1324b2d4c07a342936293f47a","921f8c08344aa1539405420fcf952a20","21a1b4607cb18ab00b1254cb35a77c57","d80705d2e260aba56aa54c416f471fbd","a821537667385a2906566c8bc69a21ed","387cee0627331c24f641f87fc905bff1","859418c3a3f1b2e9500476d829fc6093","32e33ec68ba1aa1147aab680de3b7c90","67c59d76f923f64e85a373fb5a2bbb13","5676a2feb7e6b36f973571c4a4500566","dd2bc19aa76d59fe40aa6c6fb9a33365","7ef4fc8b5166fc742b557034c24ec46b","7b7ac86da6f4cee8d8019f1797f9739c","952f36610509d4b91537ef7e801ff09b","89454f6aa6b5e1c63d2f38afb594d129","1c4b4b661b3292ed090cac053108630f","1b14db2fdd7c89d2b6cebf55bff68307",{"version":"bd3ab899811e2cfc9a4a864a7677e86c","signature":"5fc50505f166645f620f51ad297891fc","impliedNodeFormat":1},{"version":"b0b07c37de3912ab467f18e0040b181c","signature":"e58e09c46acce562931d391ddc49a339","impliedNodeFormat":1},{"version":"98f40ce91d81bdd727b5230a60279e3c","signature":"4fbd0a0865804c63e69386e686ba90eb","impliedNodeFormat":1},"4900c9c2a775e5ed54341e456351f78f",{"version":"0a5c5e3ee5547bd364c0e68406d40ab4","signature":"686e9e972cae1bd4c65c70b3ee057878","impliedNodeFormat":1},{"version":"63895d1974a630b2bd42486b6819b278","signature":"35fe04b1af6da5de0347d52065249116","impliedNodeFormat":1},{"version":"b4690ce980dfe87bfcf648849bef8b34","signature":"eb9432e3fc9a43ff7b6ecfcdd153d0f0","impliedNodeFormat":1},{"version":"ed63d99e1e5c371dc120bef1b84057fc","impliedNodeFormat":99},{"version":"4d3fb552bfc7fb53c9195b2fafb512c0","impliedNodeFormat":99},{"version":"fbf7ba69043f86dc506ba28263e2e783","impliedNodeFormat":99},{"version":"a611eb6935df7737a77b34b01c631a4a","impliedNodeFormat":99},{"version":"6d08f6f1d0ee294c119d0e66f826331a","impliedNodeFormat":99},{"version":"d0abb8fa314728650d85450ff59db909","impliedNodeFormat":99},{"version":"abe007be89c2ad52c4d67fc2b0f6da6b","impliedNodeFormat":99},{"version":"ae1fe3925f3a2c8dfbb269ac2a50f5a6","impliedNodeFormat":99},{"version":"ee8ce731ff781ae7011350481a1af176","impliedNodeFormat":99},{"version":"08dcd98985ae16732a9be03d2b56aea6","impliedNodeFormat":99},{"version":"47f7401876f3c0a5b80bd01fbdfaed2b","impliedNodeFormat":99},"ab8e1ea59f16bc290a0451d09dc5a52e",{"version":"e9d43fb880595ac4ee66a56a364fd5fb","impliedNodeFormat":99},"24367c4ec7d778084b3a83bbdc5a23d4","edbf4843929ee5fe6521503f424e4464",{"version":"5e0eecd60ec8ccc15c22c507248ef1aa","impliedNodeFormat":99},{"version":"0221e2868d1f0d6df8321d945764aadb","impliedNodeFormat":99},{"version":"d2f6ad6f161f0a522886f64842c96a0e","impliedNodeFormat":99},{"version":"618ace1500cc84e42bc2e47c64f8c407","impliedNodeFormat":99},{"version":"9dd3c481cc870c4bf19e59d34f030a27","impliedNodeFormat":99},{"version":"b5c81396e966d59acab5a45f66b70866","impliedNodeFormat":99},{"version":"f94aa434ddb9e71f6e80395de85f6850","impliedNodeFormat":99},{"version":"3486e8f7f01b9874a793ddd451eb62a5","impliedNodeFormat":99},{"version":"cb0e7222aae349c2fb4f89b26efa81bd","impliedNodeFormat":99},{"version":"b9129d694ae6cf810850117dda49d045","impliedNodeFormat":99},{"version":"0d7bbad7f82c886c5f36730065aec119","impliedNodeFormat":99},{"version":"369460c2755240ac2d3d006f09adb5ca","impliedNodeFormat":99},{"version":"4509fca76e721cdf9edb2d028395a117","impliedNodeFormat":99},"548472bfd4ebe2f1c8f494b960a27836",{"version":"fa98b0905a86da0a95fa8fd3e974e038","impliedNodeFormat":99},{"version":"5ede871fecbb2b6f672a99d3c3c6bee7","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"2c51637edf65b89d39356deff680ed36","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"0bf0efdacfd4bfadb631a4376097e382","impliedNodeFormat":99},{"version":"bd01f3bcdc72c9256e5cd5093d132df3","impliedNodeFormat":99},{"version":"b01bdc9acbaf3eb24eef464959e8e627","impliedNodeFormat":99},{"version":"2a75a1a065e5d0439fa1514d9c89b0eb","impliedNodeFormat":99},{"version":"b9129d694ae6cf810850117dda49d045","impliedNodeFormat":99},{"version":"c01d22bc96b89eedc0ed1f11d8c270ab","impliedNodeFormat":99},{"version":"c15bc5b81c64386efb6f85fb596c4349","impliedNodeFormat":99},{"version":"5794a694c1f75a9cc38cb5e9c757224e","impliedNodeFormat":99},{"version":"4040d5640775a803b2ca1aa914f7a1d4","impliedNodeFormat":99},{"version":"5ed96746ee2e7eb084ad54f0e0e518bc","impliedNodeFormat":99},{"version":"eba7786b00a4e551c36bafa71bfb1876","impliedNodeFormat":99},"8d8a98bf45979ce5401d9ca4027940cd","7d98e95d38525423bbe0f05e0a508a41","96920299d013de56061cbc74a1d658b2","439adabdf29be1212ec7acc292679f21","3eb46d20ed056dcbfa5e75bad9014661",{"version":"b46aa1886055db890de9be52a97b301e","impliedNodeFormat":99},{"version":"4a377d3def7b5ce6b339c57733ee9de1","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},{"version":"73fa3c2d3a6b09e7a357c805e16658b4","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},{"version":"86b9a88f58dc420cc93729d82037a484","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},{"version":"6a11e78c40060c1f2e3658c3cf43c17a","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},{"version":"da8deaa5d169502e5a6153c74877234d","signature":"1449c6d47ab1f244fe5e9eba43081349","impliedNodeFormat":1},"56d080dfccb3c53a2d6c74c4f24252e3","75ebd62d9641cc8b34ba9b09be8283a9",{"version":"753f71e16f2994f332390bb1c997b0e3","affectsGlobalScope":true,"impliedNodeFormat":1},"8def0ea0e249f49397d74a4f5bdd45a5",{"version":"23cbcf6109a45b21e5b22d5f36f59db4","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"851c83981c28a32944597c743f666820","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[153],[152],[151],[125,126],[98,104,122,123,124,127],[134],[134,135],[102,104,105],[102,104],[102],[97,102,113,114],[97,102,113],[121],[97,103],[97],[99],[97,98,99,100,101],[140,141],[140,141,142,143],[140,142],[140],[108],[108,109,110,111],[110],[106,129,130,132],[106,107,119,132],[97,104,106,107,115,132],[112],[97,106,107,115,128,131],[106,107,112,115,132],[106,129,130,131,132],[106,112,116,117,118,132],[97,102,104,106,107,112,115,116,117,118,119,120,122,128,129,130,131,132,133,136,137,138,139,144],[97,104,106,107,115,116,129,130,131,132,137],[145],[64],[64,65,66,67,68,69,70,71,72],[73],[90,91,93,94,95],[73,89,96,145],[73,90,91,92,93],[89,96,145],[89,90,94],[73,90,93,94,95],[73,93,94],[90,94,145],[94],[95,96],[89],[85,86],[85,86,87,88],[73,85],[73,84],[74],[74,75,76,77,78,79,80,81,82,83]],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","rewriteRelativeImportExtensions":true,"rootDir":"../src","skipLibCheck":true,"strict":true,"sourceMap":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo.runtime","useDefineForClassFields":true},"referencedMap":[[154,1],[153,2],[152,3],[127,4],[128,5],[135,6],[136,7],[106,8],[105,9],[129,8],[113,10],[115,11],[114,12],[122,13],[104,14],[98,15],[100,16],[102,17],[103,15],[142,18],[144,19],[143,20],[141,21],[109,22],[112,23],[110,22],[111,24],[131,25],[120,26],[116,27],[117,10],[138,28],[132,29],[118,30],[137,31],[119,32],[145,33],[139,34],[155,35],[65,36],[66,36],[73,37],[67,36],[68,36],[69,36],[70,36],[71,36],[72,36],[93,38],[96,39],[146,40],[94,41],[147,42],[91,43],[148,44],[95,45],[149,46],[92,47],[150,48],[90,49],[87,50],[89,51],[88,50],[86,52],[85,53],[75,54],[84,55],[76,54],[78,54],[79,54],[80,54],[83,54],[81,54],[82,54],[74,38]],"latestChangedDtsFile":"./index.d.ts"}
@@ -1,3 +1,7 @@
1
- export { clearFlowStack, createFlowStack, getActiveFlowState, getFlowStackDepth, getFlowStackVisibleStates, initializeFlowStack, popFlowState, pushFlowState, replaceFlowState, updateFlowStack, } from './flow';
2
- export { disableFlowGuards, enableFlowGuards } from './flowGuards';
1
+ export { clearFlowStack, createFlowStack, getActiveFlowState, getFlowStackDepth, getFlowStackVisibleStates, initializeFlowStack, popFlowState, pushFlowState, replaceFlowState, updateFlowStack, } from './flow.ts';
2
+ export type { FlowGuardStateRef } from './flow.ts';
3
+ export { disableFlowGuards, enableFlowGuards, getFlowGuardKindString, parseFlowGuardKind, reportFlowGuard, } from './flowGuards.ts';
4
+ export { FlowStack } from './flowStackCompat.ts';
5
+ export type { FlowCallback, FlowStackRaw, FlowState, FlowUpdateCallback } from './flowTypes.ts';
6
+ export type { FlowGuardContext, FlowGuardKind, FlowGuardState } from './types.ts';
3
7
  //# sourceMappingURL=contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,yBAAyB,EACzB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,eAAe,GAChB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,yBAAyB,EACzB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,eAAe,GAChB,MAAM,WAAW,CAAC;AACnB,YAAY,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,GAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAChG,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ export type { FlowStackRaw as FlowStack } from './flowTypes.ts';
2
+ export type { FlowCallback, FlowStackRaw, FlowState, FlowUpdateCallback } from './flowTypes.ts';
3
+ //# sourceMappingURL=contract.flow-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.flow-types.d.ts","sourceRoot":"","sources":["../src/contract.flow-types.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,YAAY,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=contract.flow-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.flow-types.js","sourceRoot":"","sources":["../src/contract.flow-types.ts"],"names":[],"mappings":""}
package/dist/contract.js CHANGED
@@ -1,3 +1,6 @@
1
- export { clearFlowStack, createFlowStack, getActiveFlowState, getFlowStackDepth, getFlowStackVisibleStates, initializeFlowStack, popFlowState, pushFlowState, replaceFlowState, updateFlowStack, } from './flow';
2
- export { disableFlowGuards, enableFlowGuards } from './flowGuards';
1
+ // Generated from crates/flight-flow/src/lib.rs by flight-compiler.
2
+ // Rust is authoritative; run `npm run generate` after changing it.
3
+ export { clearFlowStack, createFlowStack, getActiveFlowState, getFlowStackDepth, getFlowStackVisibleStates, initializeFlowStack, popFlowState, pushFlowState, replaceFlowState, updateFlowStack, } from './flow.js';
4
+ export { disableFlowGuards, enableFlowGuards, getFlowGuardKindString, parseFlowGuardKind, reportFlowGuard, } from './flowGuards.js';
5
+ export { FlowStack } from './flowStackCompat.js';
3
6
  //# sourceMappingURL=contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,yBAAyB,EACzB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,eAAe,GAChB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,mEAAmE;AAEnE,OAAO,EACL,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,yBAAyB,EACzB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,eAAe,GAChB,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,GAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC"}
package/dist/flow.d.ts CHANGED
@@ -1,12 +1,47 @@
1
- import type { FlowStack, FlowState, EntityConstruction } from '@flighthq/types/contract';
2
- export declare function clearFlowStack(stack: FlowStack): void;
3
- export declare function createFlowStack(): FlowStack;
4
- export declare function getActiveFlowState(stack: Readonly<FlowStack>): FlowState | null;
5
- export declare function getFlowStackDepth(stack: Readonly<FlowStack>): number;
6
- export declare function getFlowStackVisibleStates(stack: Readonly<FlowStack>, out: FlowState[]): void;
7
- export declare function initializeFlowStack(out: EntityConstruction<FlowStack>): void;
8
- export declare function popFlowState(stack: FlowStack): FlowState | null;
9
- export declare function pushFlowState(stack: FlowStack, state: Readonly<FlowState>): void;
10
- export declare function replaceFlowState(stack: FlowStack, state: Readonly<FlowState>): void;
11
- export declare function updateFlowStack(stack: Readonly<FlowStack>, deltaTime: number): void;
1
+ import type { FlowStackRaw, FlowState } from './flowTypes.ts';
2
+ import type { FlowGuardState } from './types.ts';
3
+ /**
4
+ * Shared caller-owned flow-guard state.
5
+ */
6
+ export type FlowGuardStateRef = FlowGuardState;
7
+ /**
8
+ * Empty the stack, exiting every state top-to-bottom. Callbacks run after the stack write lock is
9
+ * released, so they may re-enter other flow operations.
10
+ */
11
+ export declare function clearFlowStack(stack: FlowStackRaw): void;
12
+ export declare function createFlowStack(): FlowStackRaw;
13
+ /**
14
+ * The active top of the stack, or None when the stack is empty.
15
+ */
16
+ export declare function getActiveFlowState(stack: FlowStackRaw): FlowState | null;
17
+ /**
18
+ * The number of states on the stack.
19
+ */
20
+ export declare function getFlowStackDepth(stack: FlowStackRaw): number;
21
+ /**
22
+ * Fill `out` (cleared first) with the render-visible states bottom-to-top.
23
+ */
24
+ export declare function getFlowStackVisibleStates(out: FlowState[], stack: FlowStackRaw): void;
25
+ /**
26
+ * Initialize a flow stack to its empty state, keeping the allocated runtime slot.
27
+ */
28
+ export declare function initializeFlowStack(out: FlowStackRaw): void;
29
+ /**
30
+ * Pop the active top, exiting it and resuming the revealed state. None on an empty stack.
31
+ */
32
+ export declare function popFlowState(stack: FlowStackRaw): FlowState | null;
33
+ /**
34
+ * Portable push behavior: pause the previous top, push, then enter. Target-native wrappers own the
35
+ * balanced unwind scope and pass the depth they observed.
36
+ */
37
+ export declare function pushFlowState(stack: FlowStackRaw, state: FlowState, guards: Readonly<FlowGuardStateRef>): void;
38
+ /**
39
+ * Portable replace behavior: swap the active top in place without touching the state beneath.
40
+ */
41
+ export declare function replaceFlowState(stack: FlowStackRaw, state: FlowState, guards: Readonly<FlowGuardStateRef>): void;
42
+ /**
43
+ * Tick one frame: the active top updates; each visited state with `updateBelow` also ticks the
44
+ * state beneath it. Callbacks run with no lock held.
45
+ */
46
+ export declare function updateFlowStack(stack: FlowStackRaw, deltaTime: number): void;
12
47
  //# sourceMappingURL=flow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../src/flow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAOzF,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,CAMrD;AAED,wBAAgB,eAAe,IAAI,SAAS,CAI3C;AAID,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,GAAG,SAAS,GAAG,IAAI,CAG/E;AAGD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,GAAG,MAAM,CAEpE;AAQD,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,IAAI,CAc5F;AAID,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,kBAAkB,CAAC,SAAS,CAAC,GAAG,IAAI,CAE5E;AAKD,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI,CAU/D;AAKD,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,GAAG,IAAI,CAahF;AAMD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,GAAG,IAAI,CAmBnF;AASD,wBAAgB,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAWnF"}
1
+ {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../src/flow.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAgB,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAE/C;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,CAcxD;AAED,wBAAgB,eAAe,IAAI,YAAY,CAI9C;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,YAAY,GAAG,SAAS,GAAG,IAAI,CAMxE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAE7D;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,YAAY,GAAG,IAAI,CAcrF;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,YAAY,GAAG,IAAI,CAE3D;AAkBD;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,YAAY,GAAG,SAAS,GAAG,IAAI,CAuBlE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAM9G;AA2BD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAMjH;AA8CD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAmB5E"}
package/dist/flow.js CHANGED
@@ -1,133 +1,212 @@
1
- import { allocateEntity, finishEntity } from '@flighthq/entity/contract';
2
- import { reportFlowGuard } from './flowGuards';
3
- // Empty the stack, exiting every state top-to-bottom (`onExit` on the active top first, down to the
4
- // bottom) so each unwinds in reverse of the order it entered. No `onPause`/`onResume` fire — the
5
- // whole stack is being torn down, not layered. After this the stack has depth 0.
1
+ // Generated from crates/flight-flow/src/flow.rs by flight-compiler.
2
+ // Rust is authoritative; run `npm run generate` after changing it.
3
+ import { allocateEntity } from '@flighthq/entity/contract';
4
+ import { reportFlowGuard } from './flowGuards.js';
5
+ import { runFlowTransition } from './flowTransitions.js';
6
+ /**
7
+ * Empty the stack, exiting every state top-to-bottom. Callbacks run after the stack write lock is
8
+ * released, so they may re-enter other flow operations.
9
+ */
6
10
  export function clearFlowStack(stack) {
7
- const states = stack.states;
8
- for (let i = states.length - 1; i >= 0; i--) {
9
- states[i].onExit?.();
11
+ let index = stack.states.length;
12
+ while (index > 0) {
13
+ index -= 1;
14
+ const maybeOnExit = (() => {
15
+ const current = stack;
16
+ return index < current.states.length ? current.states[index].onExit : null;
17
+ })();
18
+ const callback = maybeOnExit ?? noFlowCallback;
19
+ callback();
10
20
  }
21
+ let s = stack;
22
+ const states = s.states;
11
23
  states.length = 0;
12
24
  }
13
25
  export function createFlowStack() {
14
- const out = allocateEntity();
26
+ let out = Object.assign(allocateEntity(), { states: [] });
15
27
  initializeFlowStack(out);
16
- return finishEntity(out);
28
+ return out;
17
29
  }
18
- // The active top of the stack — the state currently receiving `onUpdate` — or `null` if the stack is
19
- // empty.
30
+ /**
31
+ * The active top of the stack, or None when the stack is empty.
32
+ */
20
33
  export function getActiveFlowState(stack) {
21
- const states = stack.states;
22
- return states.length > 0 ? states[states.length - 1] : null;
34
+ const current = stack;
35
+ if (current.states.length === 0) {
36
+ return null;
37
+ }
38
+ return current.states[current.states.length - 1];
23
39
  }
24
- // The number of states on the stack.
40
+ /**
41
+ * The number of states on the stack.
42
+ */
25
43
  export function getFlowStackDepth(stack) {
26
44
  return stack.states.length;
27
45
  }
28
- // Fill `out` (cleared first) with the render-visible states in draw order, bottom-to-top: the active
29
- // top plus the contiguous run of states beneath it reachable through `renderBelow`. Walking down from
30
- // the top, each state that sets `renderBelow` keeps the one beneath it visible; the walk stops at the
31
- // first opaque state (no `renderBelow`), which is itself visible but hides everything below it. The
32
- // caller draws `out` front-to-back (index 0 first) so higher states paint over lower ones. `out` is
33
- // empty for an empty stack.
34
- export function getFlowStackVisibleStates(stack, out) {
46
+ /**
47
+ * Fill `out` (cleared first) with the render-visible states bottom-to-top.
48
+ */
49
+ export function getFlowStackVisibleStates(out, stack) {
35
50
  out.length = 0;
36
- const states = stack.states;
37
- const top = states.length - 1;
51
+ const states = stack;
52
+ const top = (states.states.length | 0) - 1;
38
53
  if (top < 0) {
39
54
  return;
40
55
  }
41
- let lowest = top;
42
- while (lowest > 0 && states[lowest].renderBelow) {
43
- lowest--;
56
+ let lowest = top >>> 0;
57
+ while (lowest > 0 && (states.states[lowest].renderBelow ?? false)) {
58
+ lowest -= 1;
44
59
  }
45
- for (let i = lowest; i <= top; i++) {
46
- out.push(states[i]);
60
+ for (let index = lowest; index <= top >>> 0; index += 1) {
61
+ out.push(states.states[index]);
47
62
  }
48
63
  }
49
- // Allocate an empty flow-state stack. The only allocating function; every other stack function reads
50
- // or mutates an existing stack in place. Push states onto it to drive the enter/pause lifecycle.
64
+ /**
65
+ * Initialize a flow stack to its empty state, keeping the allocated runtime slot.
66
+ */
51
67
  export function initializeFlowStack(out) {
52
68
  out.states = [];
53
69
  }
54
- // Pop the active top off the stack, exiting it (`onExit`) and resuming the state it uncovers
55
- // (`onResume`) — the mirror of `pushFlowState`. Returns the popped state, or `null` if the stack was
56
- // empty (a sentinel, not a throw — popping an empty stack is an expected no-op query).
70
+ function getFlowStateOnPause(state) {
71
+ if (state !== null) {
72
+ const previous = state;
73
+ return previous.onPause ?? noFlowCallback;
74
+ }
75
+ return noFlowCallback;
76
+ }
77
+ function noFlowCallback() { }
78
+ function noFlowUpdateCallback(deltaTime) {
79
+ if (Number.isNaN(deltaTime)) {
80
+ return;
81
+ }
82
+ }
83
+ /**
84
+ * Pop the active top, exiting it and resuming the revealed state. None on an empty stack.
85
+ */
57
86
  export function popFlowState(stack) {
58
- const states = stack.states;
59
- if (states.length === 0) {
87
+ let popped;
88
+ const maybePopped = takeTopFlowState(stack);
89
+ if (maybePopped !== null) {
90
+ const value = maybePopped;
91
+ popped = value;
92
+ }
93
+ else {
60
94
  return null;
61
95
  }
62
- const popped = states.pop();
63
- popped.onExit?.();
64
- const revealed = states.length > 0 ? states[states.length - 1] : null;
65
- revealed?.onResume?.();
96
+ const maybeOnExit = popped.onExit;
97
+ const exitCallback = maybeOnExit ?? noFlowCallback;
98
+ exitCallback();
99
+ const maybeRevealed = (() => {
100
+ const current = stack;
101
+ return current.states.length === 0 ? null : current.states[current.states.length - 1];
102
+ })();
103
+ if (maybeRevealed !== null) {
104
+ const revealedState = maybeRevealed;
105
+ const maybeOnResume = revealedState.onResume;
106
+ const resumeCallback = maybeOnResume ?? noFlowCallback;
107
+ resumeCallback();
108
+ }
66
109
  return popped;
67
110
  }
68
- // Push `state` onto the stack, making it the active top. The previous top (if any) is paused first
69
- // (`onPause`), then `state` is pushed and entered (`onEnter`) — pause-then-enter, so the outgoing
70
- // state is suspended before the incoming one starts.
71
- export function pushFlowState(stack, state) {
72
- if (transitionDepth > 0)
73
- reportFlowGuard('transition-during-transition');
74
- if (stack.states.includes(state))
75
- reportFlowGuard('duplicate-state-push');
76
- const states = stack.states;
77
- const previousTop = states.length > 0 ? states[states.length - 1] : null;
78
- transitionDepth++;
79
- try {
80
- previousTop?.onPause?.();
81
- states.push(state);
82
- state.onEnter?.();
83
- }
84
- finally {
85
- transitionDepth--;
111
+ /**
112
+ * Portable push behavior: pause the previous top, push, then enter. Target-native wrappers own the
113
+ * balanced unwind scope and pass the depth they observed.
114
+ */
115
+ export function pushFlowState(stack, state, guards) {
116
+ const transitionStack = stack;
117
+ const transitionGuards = guards;
118
+ runFlowTransition(guards, (depth) => {
119
+ pushFlowStateCore(transitionStack, state, transitionGuards, depth);
120
+ });
121
+ }
122
+ function pushFlowStateCore(stack, state, guards, depth) {
123
+ if (depth > 0) {
124
+ reportFlowGuard(guards, 'transition-during-transition');
125
+ }
126
+ const duplicate = stack.states.some((existing) => existing === state);
127
+ if (duplicate) {
128
+ reportFlowGuard(guards, 'duplicate-state-push');
86
129
  }
130
+ const previousTop = (() => {
131
+ const current = stack;
132
+ return current.states.length === 0 ? null : current.states[current.states.length - 1];
133
+ })();
134
+ const previousOnPause = getFlowStateOnPause(previousTop ?? null);
135
+ const maybeOnEnter = state.onEnter;
136
+ previousOnPause();
137
+ stack.states.push(state);
138
+ const enterCallback = maybeOnEnter ?? noFlowCallback;
139
+ enterCallback();
87
140
  }
88
- // Swap the active top for `state` in place, keeping the stack depth the same. The current top (if
89
- // any) exits (`onExit`) and `state` enters (`onEnter`); the state beneath is NOT paused or resumed,
90
- // because it stays covered throughout — replace swaps the top layer, it does not uncover the one
91
- // below. On an empty stack this is just a push-and-enter.
92
- export function replaceFlowState(stack, state) {
93
- if (transitionDepth > 0)
94
- reportFlowGuard('transition-during-transition');
95
- const states = stack.states;
96
- if (states.length > 0) {
97
- const previousTop = states.pop();
98
- transitionDepth++;
99
- try {
100
- previousTop.onExit?.();
101
- }
102
- finally {
103
- transitionDepth--;
104
- }
141
+ /**
142
+ * Portable replace behavior: swap the active top in place without touching the state beneath.
143
+ */
144
+ export function replaceFlowState(stack, state, guards) {
145
+ const transitionStack = stack;
146
+ const transitionGuards = guards;
147
+ runFlowTransition(guards, (depth) => {
148
+ replaceFlowStateCore(transitionStack, state, transitionGuards, depth);
149
+ });
150
+ }
151
+ function replaceFlowStateCore(stack, state, guards, depth) {
152
+ if (depth > 0) {
153
+ reportFlowGuard(guards, 'transition-during-transition');
154
+ }
155
+ const maybePreviousTop = takeTopFlowState(stack);
156
+ if (maybePreviousTop !== null) {
157
+ const previousState = maybePreviousTop;
158
+ const maybeOnExit = previousState.onExit;
159
+ const exitCallback = maybeOnExit ?? noFlowCallback;
160
+ exitCallback();
161
+ }
162
+ const maybeOnEnter = state.onEnter;
163
+ stack.states.push(state);
164
+ const enterCallback = maybeOnEnter ?? noFlowCallback;
165
+ enterCallback();
166
+ }
167
+ function takeTopFlowState(stack) {
168
+ let current = stack;
169
+ if (current.states.length === 0) {
170
+ return null;
105
171
  }
106
- states.push(state);
107
- transitionDepth++;
108
- try {
109
- state.onEnter?.();
172
+ const top = current.states.length - 1;
173
+ let previous = [];
174
+ for (const state of current.states) {
175
+ previous.push(state);
110
176
  }
111
- finally {
112
- transitionDepth--;
177
+ const popped = previous[top];
178
+ const currentStates = current.states;
179
+ currentStates.length = 0;
180
+ for (const item of previous) {
181
+ if (current.states.length >= top) {
182
+ break;
183
+ }
184
+ current.states.push(item);
113
185
  }
186
+ return popped;
114
187
  }
115
- let transitionDepth = 0;
116
- // Tick the stack for one frame. The active top always updates (`onUpdate(deltaTime)`); then, walking
117
- // downward, each visited state that sets `updateBelow` also ticks the state immediately beneath it,
118
- // continuing the chain until a visited state does not set `updateBelow`. So a run of transparent
119
- // overlays all tick their underlying states, but an opaque overlay (no `updateBelow`) freezes
120
- // everything below it. A no-op on an empty stack.
188
+ /**
189
+ * Tick one frame: the active top updates; each visited state with `updateBelow` also ticks the
190
+ * state beneath it. Callbacks run with no lock held.
191
+ */
121
192
  export function updateFlowStack(stack, deltaTime) {
122
- const states = stack.states;
123
- let index = states.length - 1;
193
+ const states = [...stack.states];
194
+ let index = (states.length | 0) - 1;
124
195
  if (index < 0) {
125
196
  return;
126
197
  }
127
- states[index].onUpdate?.(deltaTime);
128
- while (index > 0 && states[index].updateBelow) {
129
- index--;
130
- states[index].onUpdate?.(deltaTime);
198
+ for (;;) {
199
+ const state = states[index >>> 0];
200
+ const [maybeOnUpdate, updateBelow] = (() => {
201
+ const borrowed = state;
202
+ return [borrowed.onUpdate, borrowed.updateBelow ?? false];
203
+ })();
204
+ const callback = maybeOnUpdate ?? noFlowUpdateCallback;
205
+ callback(deltaTime);
206
+ if (index <= 0 || !updateBelow) {
207
+ break;
208
+ }
209
+ index -= 1;
131
210
  }
132
211
  }
133
212
  //# sourceMappingURL=flow.js.map