@quantform/core 0.7.0-beta.5 → 0.7.0-beta.50

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 (390) hide show
  1. package/jest.config.ts +1 -1
  2. package/{dist → lib}/asset/asset.d.ts +3 -0
  3. package/lib/asset/asset.d.ts.map +1 -0
  4. package/{dist → lib}/asset/asset.js +7 -1
  5. package/{dist → lib}/cli/index.js +9 -6
  6. package/lib/cli/internal/script.d.ts +8 -0
  7. package/lib/cli/internal/script.d.ts.map +1 -0
  8. package/lib/cli/internal/script.js +65 -0
  9. package/lib/cli/live.d.ts +5 -0
  10. package/lib/cli/live.d.ts.map +1 -0
  11. package/lib/cli/live.js +33 -0
  12. package/lib/cli/paper.d.ts +5 -0
  13. package/lib/cli/paper.d.ts.map +1 -0
  14. package/lib/cli/paper.js +33 -0
  15. package/lib/cli/pull.d.ts.map +1 -0
  16. package/lib/cli/pull.js +28 -0
  17. package/lib/cli/replay.d.ts +6 -0
  18. package/lib/cli/replay.d.ts.map +1 -0
  19. package/lib/cli/replay.js +37 -0
  20. package/{dist → lib}/core.js +3 -3
  21. package/lib/index.d.ts +21 -0
  22. package/lib/index.d.ts.map +1 -0
  23. package/{dist → lib}/index.js +6 -13
  24. package/{dist → lib}/instrument/instrument.d.ts +3 -0
  25. package/lib/instrument/instrument.d.ts.map +1 -0
  26. package/{dist → lib}/instrument/instrument.js +7 -1
  27. package/{dist → lib}/make-test-module.d.ts +3 -2
  28. package/lib/make-test-module.d.ts.map +1 -0
  29. package/{dist → lib}/make-test-module.js +11 -2
  30. package/lib/operators.d.ts +5 -0
  31. package/lib/operators.d.ts.map +1 -0
  32. package/lib/operators.js +16 -0
  33. package/lib/replay/index.d.ts +10 -0
  34. package/lib/replay/index.d.ts.map +1 -0
  35. package/{dist → lib}/replay/index.js +7 -4
  36. package/lib/replay/replay-guard.d.ts +10 -0
  37. package/lib/replay/replay-guard.d.ts.map +1 -0
  38. package/lib/replay/replay-guard.js +8 -0
  39. package/lib/replay/replay.d.ts +10 -0
  40. package/lib/replay/replay.d.ts.map +1 -0
  41. package/lib/replay/replay.js +9 -0
  42. package/lib/replay/storage/use-replay-storage-buffer.d.ts +15 -0
  43. package/lib/replay/storage/use-replay-storage-buffer.d.ts.map +1 -0
  44. package/lib/replay/storage/use-replay-storage-buffer.js +57 -0
  45. package/lib/replay/storage/use-replay-storage-cursor.d.ts +30 -0
  46. package/lib/replay/storage/use-replay-storage-cursor.d.ts.map +1 -0
  47. package/lib/replay/storage/use-replay-storage-cursor.js +49 -0
  48. package/lib/replay/storage/use-replay-storage.d.ts +13 -0
  49. package/lib/replay/storage/use-replay-storage.d.ts.map +1 -0
  50. package/lib/replay/storage/use-replay-storage.js +39 -0
  51. package/lib/replay/storage/use-replay-storage.spec.d.ts +2 -0
  52. package/lib/replay/storage/use-replay-storage.spec.d.ts.map +1 -0
  53. package/lib/replay/storage/use-replay-storage.spec.js +74 -0
  54. package/lib/replay/use-replay-breakpoint.d.ts +3 -0
  55. package/lib/replay/use-replay-breakpoint.d.ts.map +1 -0
  56. package/lib/replay/use-replay-breakpoint.js +22 -0
  57. package/lib/replay/use-replay-manager.d.ts +28 -0
  58. package/lib/replay/use-replay-manager.d.ts.map +1 -0
  59. package/lib/replay/use-replay-manager.js +68 -0
  60. package/{dist → lib}/replay/use-replay.d.ts +2 -2
  61. package/lib/replay/use-replay.d.ts.map +1 -0
  62. package/lib/replay/use-replay.js +20 -0
  63. package/lib/replay/use-replay.spec.js +130 -0
  64. package/lib/replay/when-replay-finished.d.ts +2 -0
  65. package/lib/replay/when-replay-finished.d.ts.map +1 -0
  66. package/lib/replay/when-replay-finished.js +15 -0
  67. package/{dist → lib}/session/use-session-storage.js +2 -2
  68. package/lib/session/use-session.d.ts +13 -0
  69. package/lib/session/use-session.d.ts.map +1 -0
  70. package/lib/session/use-session.js +14 -0
  71. package/lib/shared/decimals.d.ts +14 -0
  72. package/lib/shared/decimals.d.ts.map +1 -0
  73. package/lib/shared/decimals.js +18 -0
  74. package/{dist → lib}/simulator/use-simulator.spec.js +12 -18
  75. package/{dist → lib}/storage/index.d.ts +1 -0
  76. package/{dist → lib}/storage/index.d.ts.map +1 -1
  77. package/{dist → lib}/storage/index.js +1 -0
  78. package/lib/storage/use-storage-factory.d.ts +10 -0
  79. package/lib/storage/use-storage-factory.d.ts.map +1 -0
  80. package/lib/storage/use-storage-factory.js +13 -0
  81. package/lib/storage/use-storage.d.ts.map +1 -0
  82. package/{dist → lib}/storage/use-storage.js +2 -2
  83. package/lib/strategy.d.ts +15 -0
  84. package/lib/strategy.d.ts.map +1 -0
  85. package/lib/strategy.js +26 -0
  86. package/lib/strategy.spec.d.ts +2 -0
  87. package/lib/strategy.spec.d.ts.map +1 -0
  88. package/lib/strategy.spec.js +34 -0
  89. package/lib/use-execution-mode.d.ts +20 -0
  90. package/lib/use-execution-mode.d.ts.map +1 -0
  91. package/lib/use-execution-mode.js +33 -0
  92. package/{dist → lib}/use-logger.js +5 -5
  93. package/lib/use-memo.d.ts +8 -0
  94. package/lib/use-memo.d.ts.map +1 -0
  95. package/lib/use-memo.js +19 -0
  96. package/lib/use-socket.d.ts +19 -0
  97. package/lib/use-socket.d.ts.map +1 -0
  98. package/lib/use-socket.js +69 -0
  99. package/{dist → lib}/use-timestamp.js +2 -2
  100. package/lib/when-socket.d.ts +8 -0
  101. package/lib/when-socket.d.ts.map +1 -0
  102. package/{dist/use-socket.js → lib/when-socket.js} +6 -5
  103. package/lib/with-memo.d.ts +5 -0
  104. package/lib/with-memo.d.ts.map +1 -0
  105. package/{dist/use.js → lib/with-memo.js} +5 -5
  106. package/lib/with-memo.spec.d.ts +2 -0
  107. package/lib/with-memo.spec.d.ts.map +1 -0
  108. package/{dist/use.spec.js → lib/with-memo.spec.js} +3 -3
  109. package/{dist/use-request.d.ts → lib/with-request.d.ts} +6 -6
  110. package/lib/with-request.d.ts.map +1 -0
  111. package/lib/with-request.js +68 -0
  112. package/package.json +5 -5
  113. package/src/asset/asset.ts +6 -0
  114. package/src/cli/index.ts +11 -8
  115. package/src/cli/internal/script.ts +70 -0
  116. package/src/cli/live.ts +22 -0
  117. package/src/cli/paper.ts +22 -0
  118. package/src/cli/pull.ts +6 -66
  119. package/src/cli/replay.ts +15 -19
  120. package/src/core.ts +6 -6
  121. package/src/index.ts +6 -13
  122. package/src/instrument/instrument.ts +6 -0
  123. package/src/make-test-module.ts +20 -4
  124. package/src/operators.ts +18 -0
  125. package/src/replay/index.ts +7 -4
  126. package/src/replay/replay-guard.ts +11 -0
  127. package/src/replay/replay.ts +13 -0
  128. package/src/replay/storage/use-replay-storage-buffer.ts +52 -0
  129. package/src/replay/storage/use-replay-storage-cursor.ts +44 -0
  130. package/src/replay/storage/use-replay-storage.spec.ts +84 -0
  131. package/src/replay/storage/use-replay-storage.ts +29 -0
  132. package/src/replay/use-replay-breakpoint.ts +29 -0
  133. package/src/replay/use-replay-manager.ts +83 -0
  134. package/src/replay/use-replay.spec.ts +10 -4
  135. package/src/replay/use-replay.ts +11 -17
  136. package/src/replay/when-replay-finished.ts +20 -0
  137. package/src/session/use-session-storage.ts +2 -2
  138. package/src/session/use-session.ts +16 -4
  139. package/src/shared/decimals.ts +0 -45
  140. package/src/simulator/use-simulator.spec.ts +10 -26
  141. package/src/storage/index.ts +1 -0
  142. package/src/storage/use-storage-factory.ts +7 -7
  143. package/src/storage/use-storage.ts +2 -2
  144. package/src/strategy.spec.ts +42 -0
  145. package/src/strategy.ts +36 -0
  146. package/src/use-execution-mode.ts +27 -27
  147. package/src/use-logger.ts +7 -7
  148. package/src/use-memo.ts +6 -21
  149. package/src/use-socket.ts +63 -44
  150. package/src/use-timestamp.ts +2 -2
  151. package/src/when-socket.ts +61 -0
  152. package/src/{use.spec.ts → with-memo.spec.ts} +3 -3
  153. package/src/{use.ts → with-memo.ts} +4 -4
  154. package/src/with-request.ts +83 -0
  155. package/tsconfig.json +2 -2
  156. package/dist/as-readonly.d.ts +0 -3
  157. package/dist/as-readonly.d.ts.map +0 -1
  158. package/dist/as-readonly.js +0 -8
  159. package/dist/asset/asset.d.ts.map +0 -1
  160. package/dist/cli/dev.d.ts +0 -2
  161. package/dist/cli/dev.d.ts.map +0 -1
  162. package/dist/cli/dev.js +0 -61
  163. package/dist/cli/pull.d.ts.map +0 -1
  164. package/dist/cli/pull.js +0 -107
  165. package/dist/cli/replay.d.ts +0 -2
  166. package/dist/cli/replay.d.ts.map +0 -1
  167. package/dist/cli/replay.js +0 -64
  168. package/dist/cli/run.d.ts +0 -2
  169. package/dist/cli/run.d.ts.map +0 -1
  170. package/dist/cli/run.js +0 -62
  171. package/dist/defined.d.ts +0 -3
  172. package/dist/defined.d.ts.map +0 -1
  173. package/dist/defined.js +0 -8
  174. package/dist/exclude.d.ts +0 -3
  175. package/dist/exclude.d.ts.map +0 -1
  176. package/dist/exclude.js +0 -8
  177. package/dist/index.d.ts +0 -28
  178. package/dist/index.d.ts.map +0 -1
  179. package/dist/instrument/instrument.d.ts.map +0 -1
  180. package/dist/make-test-module.d.ts.map +0 -1
  181. package/dist/not-found.d.ts +0 -2
  182. package/dist/not-found.d.ts.map +0 -1
  183. package/dist/not-found.js +0 -4
  184. package/dist/replay/index.d.ts +0 -7
  185. package/dist/replay/index.d.ts.map +0 -1
  186. package/dist/replay/use-replay-coordinator.d.ts +0 -10
  187. package/dist/replay/use-replay-coordinator.d.ts.map +0 -1
  188. package/dist/replay/use-replay-coordinator.js +0 -119
  189. package/dist/replay/use-replay-reader.d.ts +0 -7
  190. package/dist/replay/use-replay-reader.d.ts.map +0 -1
  191. package/dist/replay/use-replay-reader.js +0 -32
  192. package/dist/replay/use-replay-reader.spec.d.ts +0 -2
  193. package/dist/replay/use-replay-reader.spec.d.ts.map +0 -1
  194. package/dist/replay/use-replay-reader.spec.js +0 -58
  195. package/dist/replay/use-replay-storage.d.ts +0 -10
  196. package/dist/replay/use-replay-storage.d.ts.map +0 -1
  197. package/dist/replay/use-replay-storage.js +0 -10
  198. package/dist/replay/use-replay-writer.d.ts +0 -6
  199. package/dist/replay/use-replay-writer.d.ts.map +0 -1
  200. package/dist/replay/use-replay-writer.js +0 -14
  201. package/dist/replay/use-replay-writer.spec.d.ts +0 -2
  202. package/dist/replay/use-replay-writer.spec.d.ts.map +0 -1
  203. package/dist/replay/use-replay-writer.spec.js +0 -53
  204. package/dist/replay/use-replay.d.ts.map +0 -1
  205. package/dist/replay/use-replay.js +0 -32
  206. package/dist/replay/use-replay.spec.js +0 -106
  207. package/dist/replay/with-replay.d.ts +0 -4
  208. package/dist/replay/with-replay.d.ts.map +0 -1
  209. package/dist/replay/with-replay.js +0 -8
  210. package/dist/session/use-session.d.ts +0 -4
  211. package/dist/session/use-session.d.ts.map +0 -1
  212. package/dist/session/use-session.js +0 -7
  213. package/dist/shared/decimals.d.ts +0 -30
  214. package/dist/shared/decimals.d.ts.map +0 -1
  215. package/dist/shared/decimals.js +0 -61
  216. package/dist/storage/use-storage-factory.d.ts +0 -10
  217. package/dist/storage/use-storage-factory.d.ts.map +0 -1
  218. package/dist/storage/use-storage-factory.js +0 -14
  219. package/dist/storage/use-storage.d.ts.map +0 -1
  220. package/dist/strat.d.ts +0 -7
  221. package/dist/strat.d.ts.map +0 -1
  222. package/dist/strat.js +0 -7
  223. package/dist/use-execution-mode.d.ts +0 -29
  224. package/dist/use-execution-mode.d.ts.map +0 -1
  225. package/dist/use-execution-mode.js +0 -37
  226. package/dist/use-lock.d.ts +0 -9
  227. package/dist/use-lock.d.ts.map +0 -1
  228. package/dist/use-lock.js +0 -40
  229. package/dist/use-memo.d.ts +0 -21
  230. package/dist/use-memo.d.ts.map +0 -1
  231. package/dist/use-memo.js +0 -35
  232. package/dist/use-request.d.ts.map +0 -1
  233. package/dist/use-request.js +0 -27
  234. package/dist/use-socket.d.ts +0 -6
  235. package/dist/use-socket.d.ts.map +0 -1
  236. package/dist/use-state.d.ts +0 -4
  237. package/dist/use-state.d.ts.map +0 -1
  238. package/dist/use-state.js +0 -24
  239. package/dist/use-state.spec.d.ts +0 -2
  240. package/dist/use-state.spec.d.ts.map +0 -1
  241. package/dist/use-state.spec.js +0 -36
  242. package/dist/use.d.ts +0 -5
  243. package/dist/use.d.ts.map +0 -1
  244. package/dist/use.spec.d.ts +0 -2
  245. package/dist/use.spec.d.ts.map +0 -1
  246. package/src/as-readonly.ts +0 -5
  247. package/src/cli/dev.ts +0 -31
  248. package/src/cli/run.ts +0 -29
  249. package/src/defined.ts +0 -6
  250. package/src/exclude.ts +0 -9
  251. package/src/not-found.ts +0 -1
  252. package/src/replay/use-replay-coordinator.ts +0 -142
  253. package/src/replay/use-replay-reader.spec.ts +0 -64
  254. package/src/replay/use-replay-reader.ts +0 -23
  255. package/src/replay/use-replay-storage.ts +0 -8
  256. package/src/replay/use-replay-writer.spec.ts +0 -56
  257. package/src/replay/use-replay-writer.ts +0 -17
  258. package/src/replay/with-replay.ts +0 -10
  259. package/src/strat.ts +0 -7
  260. package/src/use-lock.ts +0 -52
  261. package/src/use-request.ts +0 -47
  262. package/src/use-state.spec.ts +0 -31
  263. package/src/use-state.ts +0 -30
  264. /package/{dist → lib}/asset/asset.spec.d.ts +0 -0
  265. /package/{dist → lib}/asset/asset.spec.d.ts.map +0 -0
  266. /package/{dist → lib}/asset/asset.spec.js +0 -0
  267. /package/{dist → lib}/asset/index.d.ts +0 -0
  268. /package/{dist → lib}/asset/index.d.ts.map +0 -0
  269. /package/{dist → lib}/asset/index.js +0 -0
  270. /package/{dist → lib}/cli/build.d.ts +0 -0
  271. /package/{dist → lib}/cli/build.d.ts.map +0 -0
  272. /package/{dist → lib}/cli/build.js +0 -0
  273. /package/{dist → lib}/cli/index.d.ts +0 -0
  274. /package/{dist → lib}/cli/index.d.ts.map +0 -0
  275. /package/{dist → lib}/cli/internal/workspace.d.ts +0 -0
  276. /package/{dist → lib}/cli/internal/workspace.d.ts.map +0 -0
  277. /package/{dist → lib}/cli/internal/workspace.js +0 -0
  278. /package/{dist → lib}/cli/pull.d.ts +0 -0
  279. /package/{dist → lib}/component/distinct-until-timesamp-changed.d.ts +0 -0
  280. /package/{dist → lib}/component/distinct-until-timesamp-changed.d.ts.map +0 -0
  281. /package/{dist → lib}/component/distinct-until-timesamp-changed.js +0 -0
  282. /package/{dist → lib}/component/error.d.ts +0 -0
  283. /package/{dist → lib}/component/error.d.ts.map +0 -0
  284. /package/{dist → lib}/component/error.js +0 -0
  285. /package/{dist → lib}/component/index.d.ts +0 -0
  286. /package/{dist → lib}/component/index.d.ts.map +0 -0
  287. /package/{dist → lib}/component/index.js +0 -0
  288. /package/{dist → lib}/component/ohlc-operator.d.ts +0 -0
  289. /package/{dist → lib}/component/ohlc-operator.d.ts.map +0 -0
  290. /package/{dist → lib}/component/ohlc-operator.js +0 -0
  291. /package/{dist → lib}/component/ohlc-operator.spec.d.ts +0 -0
  292. /package/{dist → lib}/component/ohlc-operator.spec.d.ts.map +0 -0
  293. /package/{dist → lib}/component/ohlc-operator.spec.js +0 -0
  294. /package/{dist → lib}/component/ohlc.d.ts +0 -0
  295. /package/{dist → lib}/component/ohlc.d.ts.map +0 -0
  296. /package/{dist → lib}/component/ohlc.js +0 -0
  297. /package/{dist → lib}/component/ohlc.spec.d.ts +0 -0
  298. /package/{dist → lib}/component/ohlc.spec.d.ts.map +0 -0
  299. /package/{dist → lib}/component/ohlc.spec.js +0 -0
  300. /package/{dist → lib}/component/timeframe.d.ts +0 -0
  301. /package/{dist → lib}/component/timeframe.d.ts.map +0 -0
  302. /package/{dist → lib}/component/timeframe.js +0 -0
  303. /package/{dist → lib}/core.d.ts +0 -0
  304. /package/{dist → lib}/core.d.ts.map +0 -0
  305. /package/{dist → lib}/instrument/commission/commission.d.ts +0 -0
  306. /package/{dist → lib}/instrument/commission/commission.d.ts.map +0 -0
  307. /package/{dist → lib}/instrument/commission/commission.js +0 -0
  308. /package/{dist → lib}/instrument/commission/commission.spec.d.ts +0 -0
  309. /package/{dist → lib}/instrument/commission/commission.spec.d.ts.map +0 -0
  310. /package/{dist → lib}/instrument/commission/commission.spec.js +0 -0
  311. /package/{dist → lib}/instrument/index.d.ts +0 -0
  312. /package/{dist → lib}/instrument/index.d.ts.map +0 -0
  313. /package/{dist → lib}/instrument/index.js +0 -0
  314. /package/{dist → lib}/instrument/instrument.spec.d.ts +0 -0
  315. /package/{dist → lib}/instrument/instrument.spec.d.ts.map +0 -0
  316. /package/{dist → lib}/instrument/instrument.spec.js +0 -0
  317. /package/{dist → lib}/module.d.ts +0 -0
  318. /package/{dist → lib}/module.d.ts.map +0 -0
  319. /package/{dist → lib}/module.js +0 -0
  320. /package/{dist → lib}/module.spec.d.ts +0 -0
  321. /package/{dist → lib}/module.spec.d.ts.map +0 -0
  322. /package/{dist → lib}/module.spec.js +0 -0
  323. /package/{dist → lib}/replay/use-replay-options.d.ts +0 -0
  324. /package/{dist → lib}/replay/use-replay-options.d.ts.map +0 -0
  325. /package/{dist → lib}/replay/use-replay-options.js +0 -0
  326. /package/{dist → lib}/replay/use-replay.spec.d.ts +0 -0
  327. /package/{dist → lib}/replay/use-replay.spec.d.ts.map +0 -0
  328. /package/{dist → lib}/session/index.d.ts +0 -0
  329. /package/{dist → lib}/session/index.d.ts.map +0 -0
  330. /package/{dist → lib}/session/index.js +0 -0
  331. /package/{dist → lib}/session/use-session-object.d.ts +0 -0
  332. /package/{dist → lib}/session/use-session-object.d.ts.map +0 -0
  333. /package/{dist → lib}/session/use-session-object.js +0 -0
  334. /package/{dist → lib}/session/use-session-storage.d.ts +0 -0
  335. /package/{dist → lib}/session/use-session-storage.d.ts.map +0 -0
  336. /package/{dist → lib}/shared/datetime.d.ts +0 -0
  337. /package/{dist → lib}/shared/datetime.d.ts.map +0 -0
  338. /package/{dist → lib}/shared/datetime.js +0 -0
  339. /package/{dist → lib}/shared/decimals.spec.d.ts +0 -0
  340. /package/{dist → lib}/shared/decimals.spec.d.ts.map +0 -0
  341. /package/{dist → lib}/shared/decimals.spec.js +0 -0
  342. /package/{dist → lib}/shared/environment.d.ts +0 -0
  343. /package/{dist → lib}/shared/environment.d.ts.map +0 -0
  344. /package/{dist → lib}/shared/environment.js +0 -0
  345. /package/{dist → lib}/shared/index.d.ts +0 -0
  346. /package/{dist → lib}/shared/index.d.ts.map +0 -0
  347. /package/{dist → lib}/shared/index.js +0 -0
  348. /package/{dist → lib}/simulator/index.d.ts +0 -0
  349. /package/{dist → lib}/simulator/index.d.ts.map +0 -0
  350. /package/{dist → lib}/simulator/index.js +0 -0
  351. /package/{dist → lib}/simulator/use-simulator.d.ts +0 -0
  352. /package/{dist → lib}/simulator/use-simulator.d.ts.map +0 -0
  353. /package/{dist → lib}/simulator/use-simulator.js +0 -0
  354. /package/{dist → lib}/simulator/use-simulator.spec.d.ts +0 -0
  355. /package/{dist → lib}/simulator/use-simulator.spec.d.ts.map +0 -0
  356. /package/{dist → lib}/storage/in-memory/in-memory-storage.d.ts +0 -0
  357. /package/{dist → lib}/storage/in-memory/in-memory-storage.d.ts.map +0 -0
  358. /package/{dist → lib}/storage/in-memory/in-memory-storage.factory.d.ts +0 -0
  359. /package/{dist → lib}/storage/in-memory/in-memory-storage.factory.d.ts.map +0 -0
  360. /package/{dist → lib}/storage/in-memory/in-memory-storage.factory.js +0 -0
  361. /package/{dist → lib}/storage/in-memory/in-memory-storage.js +0 -0
  362. /package/{dist → lib}/storage/in-memory/in-memory-storage.spec.d.ts +0 -0
  363. /package/{dist → lib}/storage/in-memory/in-memory-storage.spec.d.ts.map +0 -0
  364. /package/{dist → lib}/storage/in-memory/in-memory-storage.spec.js +0 -0
  365. /package/{dist → lib}/storage/in-memory/index.d.ts +0 -0
  366. /package/{dist → lib}/storage/in-memory/index.d.ts.map +0 -0
  367. /package/{dist → lib}/storage/in-memory/index.js +0 -0
  368. /package/{dist → lib}/storage/storage.d.ts +0 -0
  369. /package/{dist → lib}/storage/storage.d.ts.map +0 -0
  370. /package/{dist → lib}/storage/storage.js +0 -0
  371. /package/{dist → lib}/storage/use-cache.d.ts +0 -0
  372. /package/{dist → lib}/storage/use-cache.d.ts.map +0 -0
  373. /package/{dist → lib}/storage/use-cache.js +0 -0
  374. /package/{dist → lib}/storage/use-cache.spec.d.ts +0 -0
  375. /package/{dist → lib}/storage/use-cache.spec.d.ts.map +0 -0
  376. /package/{dist → lib}/storage/use-cache.spec.js +0 -0
  377. /package/{dist → lib}/storage/use-storage.d.ts +0 -0
  378. /package/{dist → lib}/use-hash.d.ts +0 -0
  379. /package/{dist → lib}/use-hash.d.ts.map +0 -0
  380. /package/{dist → lib}/use-hash.js +0 -0
  381. /package/{dist → lib}/use-hash.spec.d.ts +0 -0
  382. /package/{dist → lib}/use-hash.spec.d.ts.map +0 -0
  383. /package/{dist → lib}/use-hash.spec.js +0 -0
  384. /package/{dist → lib}/use-logger.d.ts +0 -0
  385. /package/{dist → lib}/use-logger.d.ts.map +0 -0
  386. /package/{dist → lib}/use-memo.spec.d.ts +0 -0
  387. /package/{dist → lib}/use-memo.spec.d.ts.map +0 -0
  388. /package/{dist → lib}/use-memo.spec.js +0 -0
  389. /package/{dist → lib}/use-timestamp.d.ts +0 -0
  390. /package/{dist → lib}/use-timestamp.d.ts.map +0 -0
@@ -1,41 +1,41 @@
1
- import { useContext } from '@lib/module';
1
+ import { Dependency, useContext } from '@lib/module';
2
2
 
3
3
  const injectionToken = Symbol('execution-mode');
4
4
 
5
5
  type ExecutionMode = {
6
- mode: 'REPLAY' | 'PAPER' | 'LIVE';
6
+ mode: 'replay' | 'paper' | 'live' | 'idle';
7
7
  recording: boolean;
8
8
  };
9
9
 
10
- export function replayExecutionMode() {
11
- return {
12
- provide: injectionToken,
13
- useValue: { mode: 'REPLAY', recording: false } as ExecutionMode
14
- };
15
- }
10
+ export function useExecutionMode() {
11
+ const { mode, recording } = useContext<ExecutionMode>(injectionToken);
16
12
 
17
- export function paperExecutionMode(options: { recording: boolean }) {
18
13
  return {
19
- provide: injectionToken,
20
- useValue: { mode: 'PAPER', ...options } as ExecutionMode
14
+ isReplay: mode === 'replay',
15
+ isPaper: mode === 'paper',
16
+ isLive: mode === 'live',
17
+ isIdle: mode === 'idle',
18
+ isSimulation: mode !== 'live',
19
+ recording
21
20
  };
22
21
  }
23
22
 
24
- export function liveExecutionMode(options: { recording: boolean }) {
25
- return {
26
- provide: injectionToken,
27
- useValue: { mode: 'LIVE', ...options } as ExecutionMode
28
- };
29
- }
23
+ useExecutionMode.replayOptions = (): Dependency => ({
24
+ provide: injectionToken,
25
+ useValue: { mode: 'replay', recording: false } as ExecutionMode
26
+ });
30
27
 
31
- export const useExecutionMode = () => {
32
- const mode = useContext<ExecutionMode>(injectionToken);
28
+ useExecutionMode.paperOptions = (options: { recording: boolean }): Dependency => ({
29
+ provide: injectionToken,
30
+ useValue: { mode: 'paper', ...options } as ExecutionMode
31
+ });
33
32
 
34
- return {
35
- isReplay: mode.mode === 'REPLAY',
36
- isPaper: mode.mode === 'PAPER',
37
- isLive: mode.mode === 'LIVE',
38
- isSimulation: mode.mode !== 'LIVE',
39
- recording: mode.recording
40
- };
41
- };
33
+ useExecutionMode.liveOptions = (options: { recording: boolean }): Dependency => ({
34
+ provide: injectionToken,
35
+ useValue: { mode: 'live', ...options } as ExecutionMode
36
+ });
37
+
38
+ useExecutionMode.idleOptions = (): Dependency => ({
39
+ provide: injectionToken,
40
+ useValue: { mode: 'idle', recording: false } as ExecutionMode
41
+ });
package/src/use-logger.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import chalk from 'chalk';
2
2
 
3
- import { use } from './use';
4
3
  import { useTimestamp } from './use-timestamp';
4
+ import { withMemo } from './with-memo';
5
5
 
6
6
  const colorize = (content: string) => {
7
7
  let hash = 0x811c9dc5;
@@ -17,11 +17,11 @@ const colorize = (content: string) => {
17
17
  /**
18
18
  *
19
19
  */
20
- export const useLogger = use((context: string, tint?: string) => {
20
+ export const useLogger = withMemo((context: string, tint?: string) => {
21
21
  const prefix = () =>
22
- `${chalk.gray(new Date(useTimestamp()).toISOString())} ${chalk.hex(
23
- tint ?? colorize(context)
24
- )(context)}`;
22
+ `${chalk.hex(tint ?? colorize(context))(
23
+ new Date(useTimestamp()).toISOString()
24
+ )} ${chalk.hex(tint ?? colorize(context))(context)}`;
25
25
 
26
26
  return {
27
27
  info: (message: any, ...params: unknown[]) =>
@@ -41,7 +41,7 @@ export const useLogger = use((context: string, tint?: string) => {
41
41
 
42
42
  error: (message: any, ...params: unknown[]) =>
43
43
  params?.length
44
- ? console.error(`${prefix()}: ${message}`, params)
45
- : console.error(`${prefix()}: ${message}`)
44
+ ? console.error(`${prefix()}: ${chalk.red(message)}`, params)
45
+ : console.error(`${prefix()}: ${chalk.red(message)}`)
46
46
  };
47
47
  });
package/src/use-memo.ts CHANGED
@@ -1,28 +1,8 @@
1
- import { useContext } from '@lib/module';
1
+ import { Dependency, useContext } from '@lib/module';
2
2
  import { dependency, useHash } from '@lib/use-hash';
3
3
 
4
4
  export const token = Symbol('memo-token');
5
5
 
6
- /**
7
- *
8
- */
9
- export function memo() {
10
- return {
11
- provide: token,
12
- useValue: {}
13
- };
14
- }
15
-
16
- /**
17
- * @name useMemo
18
- * @description
19
- * A hook that caches the result of an expensive calculation, based on a set of dependencies.
20
- *
21
- * @template T The type of the value that is memoized.
22
- * @param {() => T} calculateValue A function that returns the value to memoize.
23
- * @param {dependency[]} dependencies An array of dependencies that determine when the value should be recalculated.
24
- * @returns {T} The memoized value.
25
- */
26
6
  export function useMemo<T>(calculateValue: () => T, dependencies: dependency[]) {
27
7
  const memory = useContext<Record<string, any>>(token);
28
8
  const hash = useHash(dependencies);
@@ -33,3 +13,8 @@ export function useMemo<T>(calculateValue: () => T, dependencies: dependency[])
33
13
 
34
14
  return (memory[hash] = calculateValue()) as T;
35
15
  }
16
+
17
+ useMemo.options = (): Dependency => ({
18
+ provide: token,
19
+ useValue: {}
20
+ });
package/src/use-socket.ts CHANGED
@@ -1,59 +1,78 @@
1
- import { Observable } from 'rxjs';
1
+ import { defer, Observable, of } from 'rxjs';
2
2
  import { WebSocket } from 'ws';
3
3
 
4
4
  import { useLogger } from './use-logger';
5
5
  import { useTimestamp } from './use-timestamp';
6
6
 
7
7
  export function useSocket(
8
- url: string
9
- ): [Observable<{ timestamp: number; payload: unknown }>, (message: unknown) => void] {
8
+ url: string,
9
+ options: { pingInterval?: number } = { pingInterval: 5000 }
10
+ ) {
10
11
  const { debug } = useLogger('useSocket');
12
+ const socket = new WebSocket(url);
11
13
 
12
- const message = new Observable<{ timestamp: number; payload: unknown }>(stream => {
13
- const socket = new WebSocket(url);
14
- let isAlive = false;
15
- let interval: NodeJS.Timer | undefined;
16
-
17
- socket.onmessage = it =>
18
- stream.next({ timestamp: useTimestamp(), payload: JSON.parse(it.data as string) });
19
- socket.onerror = it => {
20
- clearInterval(interval);
21
- stream.error(it);
22
- };
23
- socket.onclose = () => {
24
- debug('closed', url);
25
- clearInterval(interval);
26
- stream.error();
27
- };
28
- socket.onopen = () => {
29
- debug('opened', url);
30
- isAlive = true;
31
- interval = setInterval(() => {
32
- if (isAlive) {
33
- isAlive = false;
34
-
35
- socket.ping();
36
- } else {
37
- socket.terminate();
14
+ return {
15
+ /**
16
+ * Observes socket events and handles connection health monitoring via ping/pong
17
+ * @returns observable emitting message events with timestamps and parsed payloads
18
+ */
19
+ watch(): Observable<{ timestamp: number; payload: unknown }> {
20
+ let isAlive = false;
21
+ let interval: NodeJS.Timeout | undefined;
22
+
23
+ return new Observable(stream => {
24
+ socket.onmessage = it =>
25
+ stream.next({
26
+ timestamp: useTimestamp(),
27
+ payload: JSON.parse(it.data as string)
28
+ });
29
+ socket.onerror = it => {
30
+ clearInterval(interval);
31
+ debug('errored', url);
32
+ stream.error(it);
33
+ };
34
+ socket.onclose = () => {
35
+ debug('closed', url);
38
36
  clearInterval(interval);
39
- }
40
- }, 5000);
37
+ stream.error();
38
+ };
39
+ socket.onopen = () => {
40
+ debug('opened', url);
41
+ isAlive = true;
42
+ interval = setInterval(() => {
43
+ if (isAlive) {
44
+ isAlive = false;
41
45
 
42
- socket.on('pong', () => {
43
- isAlive = true;
44
- });
46
+ socket.ping();
47
+ } else {
48
+ socket.terminate();
49
+ clearInterval(interval);
50
+ }
51
+ }, options.pingInterval);
52
+
53
+ socket.on('pong', () => {
54
+ isAlive = true;
55
+ });
45
56
 
46
- socket.on('ping', () => {
47
- isAlive = true;
48
- socket.pong();
57
+ socket.on('ping', () => {
58
+ isAlive = true;
59
+ socket.pong();
60
+ });
61
+ };
62
+
63
+ return () => {
64
+ clearInterval(interval);
65
+ socket.terminate();
66
+ };
49
67
  });
50
- };
68
+ },
51
69
 
52
- return () => {
53
- socket.terminate();
54
- clearInterval(interval);
55
- };
56
- });
70
+ send(message: { payload: unknown }): Observable<{ timestamp: number }> {
71
+ return defer(() => {
72
+ socket.send(JSON.stringify(message.payload));
57
73
 
58
- return [message, (message: unknown) => JSON.stringify(message)];
74
+ return of({ timestamp: useTimestamp() });
75
+ });
76
+ }
77
+ };
59
78
  }
@@ -1,11 +1,11 @@
1
- import { useReplayCoordinator } from '@lib/replay/use-replay-coordinator';
1
+ import { useReplayManager } from '@lib/replay';
2
2
  import { useExecutionMode } from '@lib/use-execution-mode';
3
3
 
4
4
  export function useTimestamp() {
5
5
  const { isReplay } = useExecutionMode();
6
6
 
7
7
  if (isReplay) {
8
- return useReplayCoordinator().timestamp();
8
+ return useReplayManager().timestamp();
9
9
  }
10
10
 
11
11
  return Date.now();
@@ -0,0 +1,61 @@
1
+ import { Observable } from 'rxjs';
2
+ import { WebSocket } from 'ws';
3
+
4
+ import { useLogger } from './use-logger';
5
+ import { useTimestamp } from './use-timestamp';
6
+
7
+ export function whenSocket(
8
+ url: string,
9
+ options: { pingInterval?: number } = { pingInterval: 5000 }
10
+ ): [Observable<{ timestamp: number; payload: unknown }>, (message: unknown) => void] {
11
+ const { debug } = useLogger('whenSocket');
12
+
13
+ const message = new Observable<{ timestamp: number; payload: unknown }>(stream => {
14
+ const socket = new WebSocket(url);
15
+ let isAlive = false;
16
+ let interval: NodeJS.Timeout | undefined;
17
+
18
+ socket.onmessage = it =>
19
+ stream.next({ timestamp: useTimestamp(), payload: JSON.parse(it.data as string) });
20
+ socket.onerror = it => {
21
+ clearInterval(interval);
22
+ debug('errored', url);
23
+ stream.error(it);
24
+ };
25
+ socket.onclose = () => {
26
+ debug('closed', url);
27
+ clearInterval(interval);
28
+ stream.error();
29
+ };
30
+ socket.onopen = () => {
31
+ debug('opened', url);
32
+ isAlive = true;
33
+ interval = setInterval(() => {
34
+ if (isAlive) {
35
+ isAlive = false;
36
+
37
+ socket.ping();
38
+ } else {
39
+ socket.terminate();
40
+ clearInterval(interval);
41
+ }
42
+ }, options.pingInterval);
43
+
44
+ socket.on('pong', () => {
45
+ isAlive = true;
46
+ });
47
+
48
+ socket.on('ping', () => {
49
+ isAlive = true;
50
+ socket.pong();
51
+ });
52
+ };
53
+
54
+ return () => {
55
+ socket.terminate();
56
+ clearInterval(interval);
57
+ };
58
+ });
59
+
60
+ return [message, (message: unknown) => JSON.stringify(message)];
61
+ }
@@ -1,9 +1,9 @@
1
1
  import { makeTestModule } from '@lib/make-test-module';
2
2
 
3
3
  import { instrumentOf, InstrumentSelector } from './instrument';
4
- import { use } from './use';
4
+ import { withMemo } from './with-memo';
5
5
 
6
- describe(use.name, () => {
6
+ describe(withMemo.name, () => {
7
7
  let fixtures: Awaited<ReturnType<typeof getFixtures>>;
8
8
 
9
9
  beforeEach(async () => {
@@ -37,7 +37,7 @@ describe(use.name, () => {
37
37
  async function getFixtures() {
38
38
  const { act } = await makeTestModule([]);
39
39
 
40
- const getValue = use((instrument: InstrumentSelector) => instrument.id);
40
+ const getValue = withMemo((instrument: InstrumentSelector) => instrument.id);
41
41
 
42
42
  return {
43
43
  act,
@@ -1,19 +1,19 @@
1
1
  import { isObservable, Observable, shareReplay } from 'rxjs';
2
2
  import { v4 } from 'uuid';
3
3
 
4
- import { asReadonly } from './as-readonly';
5
4
  import { throwWithContext } from './module';
5
+ import { asReadonly } from './operators';
6
6
  import { dependency } from './use-hash';
7
7
  import { useMemo } from './use-memo';
8
8
 
9
- export function use<T extends Array<dependency>, U>(
9
+ export function withMemo<T extends Array<dependency>, U>(
10
10
  fn: (...args: T) => U
11
11
  ): (...args: T) => U;
12
- export function use<T extends Array<dependency>, U>(
12
+ export function withMemo<T extends Array<dependency>, U>(
13
13
  fn: (...args: T) => Observable<U>
14
14
  ): (...args: T) => Observable<U>;
15
15
 
16
- export function use<T extends Array<dependency>, U>(
16
+ export function withMemo<T extends Array<dependency>, U>(
17
17
  fn: (...args: T) => U | Observable<U>
18
18
  ): (...args: T) => U | Observable<U> {
19
19
  throwWithContext();
@@ -0,0 +1,83 @@
1
+ import { randomUUID } from 'node:crypto';
2
+ import { Observable } from 'rxjs';
3
+ import { request } from 'undici';
4
+
5
+ import { useLogger } from './use-logger';
6
+ import { useTimestamp } from './use-timestamp';
7
+
8
+ export type RequestMethod =
9
+ | 'GET'
10
+ | 'HEAD'
11
+ | 'POST'
12
+ | 'PUT'
13
+ | 'DELETE'
14
+ | 'CONNECT'
15
+ | 'OPTIONS'
16
+ | 'TRACE'
17
+ | 'PATCH';
18
+
19
+ export class RequestNetworkError extends Error {
20
+ constructor(readonly statusCode: number) {
21
+ super(`Request network error, received status code: ${statusCode}`);
22
+ }
23
+ }
24
+
25
+ export function withRequest({
26
+ method,
27
+ url,
28
+ headers,
29
+ body
30
+ }: {
31
+ method: RequestMethod;
32
+ url: string;
33
+ headers?: Record<string, any>;
34
+ body?: string;
35
+ }) {
36
+ const { error, debug } = useLogger(withRequest.name);
37
+
38
+ return new Observable<{ timestamp: number; payload: unknown }>(subscriber => {
39
+ const correlationId = randomUUID();
40
+
41
+ debug('requesting', { correlationId, method, url, headers, body });
42
+
43
+ request(url, { method, headers, body })
44
+ .then(async ({ statusCode, body }) => {
45
+ const json = await body.json();
46
+
47
+ debug('received', {
48
+ correlationId,
49
+ method,
50
+ url,
51
+ headers,
52
+ body: json,
53
+ statusCode
54
+ });
55
+
56
+ if (statusCode !== 200) {
57
+ error(`errored`, {
58
+ method,
59
+ url,
60
+ headers,
61
+ body,
62
+ statusCode
63
+ });
64
+
65
+ subscriber.error(new RequestNetworkError(statusCode));
66
+ } else {
67
+ subscriber.next({ timestamp: useTimestamp(), payload: json });
68
+ }
69
+ })
70
+ .catch((e: Error) => {
71
+ error(`errored`, {
72
+ method,
73
+ url,
74
+ headers,
75
+ body,
76
+ error: e
77
+ });
78
+
79
+ subscriber.error(error);
80
+ })
81
+ .finally(() => subscriber.complete());
82
+ });
83
+ }
package/tsconfig.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "compilerOptions": {
4
4
  "rootDir": "src",
5
5
  "baseUrl": ".",
6
- "outDir": "dist",
6
+ "outDir": "lib",
7
7
  "paths": {
8
8
  "@lib/*": ["src/*"]
9
9
  }
@@ -13,6 +13,6 @@
13
13
  ],
14
14
  "exclude": [
15
15
  "jest.config.js",
16
- "dist/**/*"
16
+ "lib/**/*"
17
17
  ]
18
18
  }
@@ -1,3 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- export declare function asReadonly<T>(): (input: Observable<T>) => Observable<Readonly<T>>;
3
- //# sourceMappingURL=as-readonly.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"as-readonly.d.ts","sourceRoot":"","sources":["../src/as-readonly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC,wBAAgB,UAAU,CAAC,CAAC,aACX,WAAW,CAAC,CAAC,6BAC7B"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.asReadonly = void 0;
4
- const rxjs_1 = require("rxjs");
5
- function asReadonly() {
6
- return (input) => input.pipe((0, rxjs_1.map)(it => it));
7
- }
8
- exports.asReadonly = asReadonly;
@@ -1 +0,0 @@
1
- {"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../src/asset/asset.ts"],"names":[],"mappings":"AACA,OAAO,EAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAEzC,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C;;GAEG;AACH,qBAAa,aAAa;IACxB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;gBAEjB,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAc7C,QAAQ;CAGT;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa,CAQvD;AAED;;;GAGG;AACH,qBAAa,KAAM,SAAQ,aAAa;aAGyB,KAAK,EAAE,MAAM;IAF5E,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;gBAEf,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAkB,KAAK,EAAE,MAAM;IAU5E;;OAEG;IACH,KAAK,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM;IAI9B;;OAEG;IACH,KAAK,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO;IAI/B;;OAEG;IACH,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO;CAG/B"}
package/dist/cli/dev.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export default function (name: string, options: any): Promise<void>;
2
- //# sourceMappingURL=dev.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/cli/dev.ts"],"names":[],"mappings":"AAUA,yBAA+B,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,iBAoBxD"}
package/dist/cli/dev.js DELETED
@@ -1,61 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
34
- var __importDefault = (this && this.__importDefault) || function (mod) {
35
- return (mod && mod.__esModule) ? mod : { "default": mod };
36
- };
37
- Object.defineProperty(exports, "__esModule", { value: true });
38
- const path_1 = require("path");
39
- const rxjs_1 = require("rxjs");
40
- const build_1 = __importDefault(require("../cli/build"));
41
- const workspace_1 = require("../cli/internal/workspace");
42
- const core_1 = require("../core");
43
- const module_1 = require("../module");
44
- const use_execution_mode_1 = require("../use-execution-mode");
45
- function default_1(name, options) {
46
- return __awaiter(this, void 0, void 0, function* () {
47
- if (yield (0, build_1.default)()) {
48
- return;
49
- }
50
- const script = (yield Promise.resolve(`${(0, path_1.join)((0, workspace_1.buildDirectory)(), name)}`).then(s => __importStar(require(s)))).default;
51
- const module = new module_1.Module([
52
- ...(0, core_1.core)(),
53
- ...script.dependencies,
54
- (0, use_execution_mode_1.paperExecutionMode)({ recording: false })
55
- ]);
56
- const { act } = yield module.awake();
57
- const output = yield act(() => (0, rxjs_1.lastValueFrom)(script.fn()));
58
- console.log(output);
59
- });
60
- }
61
- exports.default = default_1;
@@ -1 +0,0 @@
1
- {"version":3,"file":"pull.d.ts","sourceRoot":"","sources":["../../src/cli/pull.ts"],"names":[],"mappings":"AAUA,yBAA+B,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,iBAgE5E"}