@iota-uz/sdk 0.46.0 → 0.47.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (535) hide show
  1. package/README.md +5 -0
  2. package/dist/client-host/identity.d.ts +4 -4
  3. package/dist/client-host/identity.js +2 -2
  4. package/dist/lens/{CascadePanel-Bha4qY7J.js → CascadePanel-BlYJd18G.js} +1 -1
  5. package/dist/lens/{ChartDataEquivalent-Bwgn4yYB.js → ChartDataEquivalent-B6xSOdzC.js} +1 -1
  6. package/dist/lens/{ChartPanel-BZpzBuwl.js → ChartPanel-BIJjrs5D.js} +159 -159
  7. package/dist/lens/{CoveragePanel-D40AuKkD.js → CoveragePanel-CHtXDMtt.js} +1 -1
  8. package/dist/lens/{GaugePanel-C9k2TuJH.js → GaugePanel-By0TOJPa.js} +1 -1
  9. package/dist/lens/LensDashboard.d.ts +13 -0
  10. package/dist/lens/LensDashboard.d.ts.map +1 -1
  11. package/dist/lens/{MapPanel-ZYxfDsPM.js → MapPanel-Cw4ELCiM.js} +3 -3
  12. package/dist/lens/{MetricFlowPanel-CmESLoLK.js → MetricFlowPanel-Gr5wi3nI.js} +2 -2
  13. package/dist/lens/{MetricHierarchyPanel-UZVuJ5P2.js → MetricHierarchyPanel-VLA_5LXX.js} +2 -2
  14. package/dist/lens/{MetricRelationshipPanel-CXLdScAy.js → MetricRelationshipPanel-DFP566_c.js} +2 -2
  15. package/dist/lens/{PrintReport-lrfdCTZO.js → PrintReport-C0OV1iHP.js} +5 -5
  16. package/dist/lens/{QualityChip-BYz-DHfs.js → QualityChip-DTi-0jdh.js} +1 -1
  17. package/dist/lens/SaveInvestigation-CX1Abyl8.js +309 -0
  18. package/dist/lens/TablePanel-BusKU7cU.js +994 -0
  19. package/dist/lens/{adapter-CeAqYWqm.js → adapter-CQg4-M7p.js} +7 -7
  20. package/dist/lens/contract/schemas.d.ts +2 -0
  21. package/dist/lens/contract/schemas.d.ts.map +1 -1
  22. package/dist/lens/contract/types.d.ts +12 -0
  23. package/dist/lens/contract/types.d.ts.map +1 -1
  24. package/dist/lens/{dashboardEdit-DKVE_6J_.js → dashboardEdit-CJgCVfi_.js} +1 -1
  25. package/dist/lens/explore/DrillOverlay.d.ts +38 -0
  26. package/dist/lens/explore/DrillOverlay.d.ts.map +1 -1
  27. package/dist/lens/explore/ExplorePanel.d.ts.map +1 -1
  28. package/dist/lens/explore/SaveInvestigation.d.ts +21 -0
  29. package/dist/lens/explore/SaveInvestigation.d.ts.map +1 -0
  30. package/dist/lens/explore/drillHost.d.ts +25 -0
  31. package/dist/lens/explore/drillHost.d.ts.map +1 -0
  32. package/dist/lens/explore/investigation.d.ts +174 -0
  33. package/dist/lens/explore/investigation.d.ts.map +1 -0
  34. package/dist/lens/explore/provenanceLabels.d.ts +10 -0
  35. package/dist/lens/explore/provenanceLabels.d.ts.map +1 -0
  36. package/dist/lens/index-DR7Hf8Km.js +19805 -0
  37. package/dist/lens/{index-DkVTXC8W.js → index-DZFw4cqF.js} +1 -1
  38. package/dist/lens/index.d.ts +7 -1
  39. package/dist/lens/index.d.ts.map +1 -1
  40. package/dist/lens/index.js +67 -53
  41. package/dist/lens/{install-CQ_iMuAE.js → install-B2lTK6uo.js} +1 -1
  42. package/dist/lens/{install-Ch0_qifK.js → install-BXr4Mnc0.js} +1 -1
  43. package/dist/lens/{install-CKmxqMe1.js → install-CicNQ_ks.js} +1 -1
  44. package/dist/lens/{install-BwD_xNlp.js → install-d8A0WPiw.js} +1 -1
  45. package/dist/lens/{keys-BBmWdfaH.js → keys-C-Akc9lZ.js} +2 -2
  46. package/dist/lens/panels/ChartPanel.d.ts.map +1 -1
  47. package/dist/lens/panels/TablePanel.d.ts.map +1 -1
  48. package/dist/lens/panels/actions.d.ts.map +1 -1
  49. package/dist/lens/panels/panelFailure.d.ts.map +1 -1
  50. package/dist/lens/{prefetch-BXoUIIgq.js → prefetch-C9kxuIs8.js} +2 -2
  51. package/dist/lens/{prefetchPanels-a-zs_bDm.js → prefetchPanels-gbY9RIqL.js} +1 -1
  52. package/dist/lens/{print-CpgWJxDG.js → print-CllsAP3d.js} +1 -1
  53. package/dist/lens/reports/ReportCompositionEditor.d.ts +8 -2
  54. package/dist/lens/reports/ReportCompositionEditor.d.ts.map +1 -1
  55. package/dist/lens/reports/ReportDefinitionEditor.d.ts +54 -0
  56. package/dist/lens/reports/ReportDefinitionEditor.d.ts.map +1 -0
  57. package/dist/lens/reports/ReportPicker.d.ts +6 -0
  58. package/dist/lens/reports/ReportPicker.d.ts.map +1 -1
  59. package/dist/lens/reports/dashboardEdit.d.ts +3 -0
  60. package/dist/lens/reports/dashboardEdit.d.ts.map +1 -1
  61. package/dist/lens/reports/editing.d.ts +35 -0
  62. package/dist/lens/reports/editing.d.ts.map +1 -1
  63. package/dist/lens/reports/picker.d.ts +4 -1
  64. package/dist/lens/reports/picker.d.ts.map +1 -1
  65. package/dist/lens/runtime/index.d.ts +0 -1
  66. package/dist/lens/runtime/index.d.ts.map +1 -1
  67. package/dist/lens/runtime/messages.d.ts +2 -2
  68. package/dist/lens/runtime/messages.d.ts.map +1 -1
  69. package/dist/lens/runtime/provider.d.ts +5 -1
  70. package/dist/lens/runtime/provider.d.ts.map +1 -1
  71. package/dist/lens/runtime/returnContext.d.ts +62 -0
  72. package/dist/lens/runtime/returnContext.d.ts.map +1 -0
  73. package/dist/lens/runtime/tableSummary.d.ts +9 -0
  74. package/dist/lens/runtime/tableSummary.d.ts.map +1 -0
  75. package/dist/lens/{scales-BLf9OweG.js → scales-CO6Q9RtG.js} +1 -1
  76. package/dist/lens/style.css +1 -1
  77. package/dist/runtime/README.md +24 -0
  78. package/dist/runtime/assert.d.ts +51 -0
  79. package/dist/runtime/assert.js +172 -0
  80. package/dist/runtime/build/README.txt +1 -0
  81. package/dist/runtime/build/extract.mjs +342 -0
  82. package/dist/runtime/build/shared-exports.json +388 -0
  83. package/dist/runtime/build/test-child.mjs +136 -0
  84. package/dist/runtime/build/theme/tailwind.config.js +121 -0
  85. package/dist/runtime/build/theme/theme.css +462 -0
  86. package/dist/runtime/build/theme/utilities.css +1 -0
  87. package/dist/runtime/build/vendor/lib/lib.d.ts +22 -0
  88. package/dist/runtime/build/vendor/lib/lib.decorators.d.ts +384 -0
  89. package/dist/runtime/build/vendor/lib/lib.decorators.legacy.d.ts +22 -0
  90. package/dist/runtime/build/vendor/lib/lib.dom.asynciterable.d.ts +41 -0
  91. package/dist/runtime/build/vendor/lib/lib.dom.d.ts +28983 -0
  92. package/dist/runtime/build/vendor/lib/lib.dom.iterable.d.ts +491 -0
  93. package/dist/runtime/build/vendor/lib/lib.es2015.collection.d.ts +147 -0
  94. package/dist/runtime/build/vendor/lib/lib.es2015.core.d.ts +597 -0
  95. package/dist/runtime/build/vendor/lib/lib.es2015.d.ts +28 -0
  96. package/dist/runtime/build/vendor/lib/lib.es2015.generator.d.ts +77 -0
  97. package/dist/runtime/build/vendor/lib/lib.es2015.iterable.d.ts +590 -0
  98. package/dist/runtime/build/vendor/lib/lib.es2015.promise.d.ts +81 -0
  99. package/dist/runtime/build/vendor/lib/lib.es2015.proxy.d.ts +128 -0
  100. package/dist/runtime/build/vendor/lib/lib.es2015.reflect.d.ts +144 -0
  101. package/dist/runtime/build/vendor/lib/lib.es2015.symbol.d.ts +46 -0
  102. package/dist/runtime/build/vendor/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
  103. package/dist/runtime/build/vendor/lib/lib.es2016.array.include.d.ts +116 -0
  104. package/dist/runtime/build/vendor/lib/lib.es2016.d.ts +21 -0
  105. package/dist/runtime/build/vendor/lib/lib.es2016.full.d.ts +23 -0
  106. package/dist/runtime/build/vendor/lib/lib.es2016.intl.d.ts +31 -0
  107. package/dist/runtime/build/vendor/lib/lib.es2017.arraybuffer.d.ts +21 -0
  108. package/dist/runtime/build/vendor/lib/lib.es2017.d.ts +26 -0
  109. package/dist/runtime/build/vendor/lib/lib.es2017.date.d.ts +31 -0
  110. package/dist/runtime/build/vendor/lib/lib.es2017.full.d.ts +23 -0
  111. package/dist/runtime/build/vendor/lib/lib.es2017.intl.d.ts +44 -0
  112. package/dist/runtime/build/vendor/lib/lib.es2017.object.d.ts +49 -0
  113. package/dist/runtime/build/vendor/lib/lib.es2017.sharedmemory.d.ts +135 -0
  114. package/dist/runtime/build/vendor/lib/lib.es2017.string.d.ts +45 -0
  115. package/dist/runtime/build/vendor/lib/lib.es2017.typedarrays.d.ts +53 -0
  116. package/dist/runtime/build/vendor/lib/lib.es2018.asyncgenerator.d.ts +77 -0
  117. package/dist/runtime/build/vendor/lib/lib.es2018.asynciterable.d.ts +53 -0
  118. package/dist/runtime/build/vendor/lib/lib.es2018.d.ts +24 -0
  119. package/dist/runtime/build/vendor/lib/lib.es2018.full.d.ts +24 -0
  120. package/dist/runtime/build/vendor/lib/lib.es2018.intl.d.ts +83 -0
  121. package/dist/runtime/build/vendor/lib/lib.es2018.promise.d.ts +30 -0
  122. package/dist/runtime/build/vendor/lib/lib.es2018.regexp.d.ts +37 -0
  123. package/dist/runtime/build/vendor/lib/lib.es2019.array.d.ts +79 -0
  124. package/dist/runtime/build/vendor/lib/lib.es2019.d.ts +24 -0
  125. package/dist/runtime/build/vendor/lib/lib.es2019.full.d.ts +24 -0
  126. package/dist/runtime/build/vendor/lib/lib.es2019.intl.d.ts +23 -0
  127. package/dist/runtime/build/vendor/lib/lib.es2019.object.d.ts +33 -0
  128. package/dist/runtime/build/vendor/lib/lib.es2019.string.d.ts +37 -0
  129. package/dist/runtime/build/vendor/lib/lib.es2019.symbol.d.ts +24 -0
  130. package/dist/runtime/build/vendor/lib/lib.es2020.bigint.d.ts +731 -0
  131. package/dist/runtime/build/vendor/lib/lib.es2020.d.ts +27 -0
  132. package/dist/runtime/build/vendor/lib/lib.es2020.date.d.ts +42 -0
  133. package/dist/runtime/build/vendor/lib/lib.es2020.full.d.ts +24 -0
  134. package/dist/runtime/build/vendor/lib/lib.es2020.intl.d.ts +474 -0
  135. package/dist/runtime/build/vendor/lib/lib.es2020.number.d.ts +28 -0
  136. package/dist/runtime/build/vendor/lib/lib.es2020.promise.d.ts +47 -0
  137. package/dist/runtime/build/vendor/lib/lib.es2020.sharedmemory.d.ts +99 -0
  138. package/dist/runtime/build/vendor/lib/lib.es2020.string.d.ts +44 -0
  139. package/dist/runtime/build/vendor/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
  140. package/dist/runtime/build/vendor/lib/lib.es2021.d.ts +23 -0
  141. package/dist/runtime/build/vendor/lib/lib.es2021.full.d.ts +24 -0
  142. package/dist/runtime/build/vendor/lib/lib.es2021.intl.d.ts +166 -0
  143. package/dist/runtime/build/vendor/lib/lib.es2021.promise.d.ts +48 -0
  144. package/dist/runtime/build/vendor/lib/lib.es2021.string.d.ts +33 -0
  145. package/dist/runtime/build/vendor/lib/lib.es2021.weakref.d.ts +78 -0
  146. package/dist/runtime/build/vendor/lib/lib.es2022.array.d.ts +121 -0
  147. package/dist/runtime/build/vendor/lib/lib.es2022.d.ts +25 -0
  148. package/dist/runtime/build/vendor/lib/lib.es2022.error.d.ts +75 -0
  149. package/dist/runtime/build/vendor/lib/lib.es2022.full.d.ts +24 -0
  150. package/dist/runtime/build/vendor/lib/lib.es2022.intl.d.ts +121 -0
  151. package/dist/runtime/build/vendor/lib/lib.es2022.object.d.ts +26 -0
  152. package/dist/runtime/build/vendor/lib/lib.es2022.regexp.d.ts +39 -0
  153. package/dist/runtime/build/vendor/lib/lib.es2022.string.d.ts +25 -0
  154. package/dist/runtime/build/vendor/lib/lib.es2023.array.d.ts +924 -0
  155. package/dist/runtime/build/vendor/lib/lib.es2023.collection.d.ts +21 -0
  156. package/dist/runtime/build/vendor/lib/lib.es2023.d.ts +22 -0
  157. package/dist/runtime/build/vendor/lib/lib.es2023.full.d.ts +24 -0
  158. package/dist/runtime/build/vendor/lib/lib.es2023.intl.d.ts +56 -0
  159. package/dist/runtime/build/vendor/lib/lib.es2024.arraybuffer.d.ts +65 -0
  160. package/dist/runtime/build/vendor/lib/lib.es2024.collection.d.ts +29 -0
  161. package/dist/runtime/build/vendor/lib/lib.es2024.d.ts +26 -0
  162. package/dist/runtime/build/vendor/lib/lib.es2024.full.d.ts +24 -0
  163. package/dist/runtime/build/vendor/lib/lib.es2024.object.d.ts +29 -0
  164. package/dist/runtime/build/vendor/lib/lib.es2024.promise.d.ts +35 -0
  165. package/dist/runtime/build/vendor/lib/lib.es2024.regexp.d.ts +25 -0
  166. package/dist/runtime/build/vendor/lib/lib.es2024.sharedmemory.d.ts +68 -0
  167. package/dist/runtime/build/vendor/lib/lib.es2024.string.d.ts +29 -0
  168. package/dist/runtime/build/vendor/lib/lib.es5.d.ts +4585 -0
  169. package/dist/runtime/build/vendor/lib/lib.es6.d.ts +23 -0
  170. package/dist/runtime/build/vendor/lib/lib.esnext.array.d.ts +35 -0
  171. package/dist/runtime/build/vendor/lib/lib.esnext.collection.d.ts +96 -0
  172. package/dist/runtime/build/vendor/lib/lib.esnext.d.ts +25 -0
  173. package/dist/runtime/build/vendor/lib/lib.esnext.decorators.d.ts +28 -0
  174. package/dist/runtime/build/vendor/lib/lib.esnext.disposable.d.ts +193 -0
  175. package/dist/runtime/build/vendor/lib/lib.esnext.full.d.ts +24 -0
  176. package/dist/runtime/build/vendor/lib/lib.esnext.intl.d.ts +21 -0
  177. package/dist/runtime/build/vendor/lib/lib.esnext.iterator.d.ts +148 -0
  178. package/dist/runtime/build/vendor/node-types/assert/strict.d.ts +111 -0
  179. package/dist/runtime/build/vendor/node-types/assert.d.ts +1115 -0
  180. package/dist/runtime/build/vendor/node-types/async_hooks.d.ts +619 -0
  181. package/dist/runtime/build/vendor/node-types/buffer.buffer.d.ts +477 -0
  182. package/dist/runtime/build/vendor/node-types/buffer.d.ts +1941 -0
  183. package/dist/runtime/build/vendor/node-types/child_process.d.ts +1480 -0
  184. package/dist/runtime/build/vendor/node-types/cluster.d.ts +578 -0
  185. package/dist/runtime/build/vendor/node-types/compatibility/iterators.d.ts +21 -0
  186. package/dist/runtime/build/vendor/node-types/console.d.ts +453 -0
  187. package/dist/runtime/build/vendor/node-types/constants.d.ts +21 -0
  188. package/dist/runtime/build/vendor/node-types/crypto.d.ts +5484 -0
  189. package/dist/runtime/build/vendor/node-types/dgram.d.ts +715 -0
  190. package/dist/runtime/build/vendor/node-types/diagnostics_channel.d.ts +576 -0
  191. package/dist/runtime/build/vendor/node-types/dns/promises.d.ts +503 -0
  192. package/dist/runtime/build/vendor/node-types/dns.d.ts +923 -0
  193. package/dist/runtime/build/vendor/node-types/domain.d.ts +166 -0
  194. package/dist/runtime/build/vendor/node-types/events.d.ts +967 -0
  195. package/dist/runtime/build/vendor/node-types/fs/promises.d.ts +1354 -0
  196. package/dist/runtime/build/vendor/node-types/fs.d.ts +4777 -0
  197. package/dist/runtime/build/vendor/node-types/globals.d.ts +170 -0
  198. package/dist/runtime/build/vendor/node-types/globals.typedarray.d.ts +41 -0
  199. package/dist/runtime/build/vendor/node-types/http.d.ts +2246 -0
  200. package/dist/runtime/build/vendor/node-types/http2.d.ts +2882 -0
  201. package/dist/runtime/build/vendor/node-types/https.d.ts +585 -0
  202. package/dist/runtime/build/vendor/node-types/index.d.ts +101 -0
  203. package/dist/runtime/build/vendor/node-types/inspector.d.ts +323 -0
  204. package/dist/runtime/build/vendor/node-types/inspector.generated.d.ts +4406 -0
  205. package/dist/runtime/build/vendor/node-types/module.d.ts +844 -0
  206. package/dist/runtime/build/vendor/node-types/net.d.ts +1197 -0
  207. package/dist/runtime/build/vendor/node-types/os.d.ts +507 -0
  208. package/dist/runtime/build/vendor/node-types/package.json +140 -0
  209. package/dist/runtime/build/vendor/node-types/path.d.ts +200 -0
  210. package/dist/runtime/build/vendor/node-types/perf_hooks.d.ts +1054 -0
  211. package/dist/runtime/build/vendor/node-types/process.d.ts +2101 -0
  212. package/dist/runtime/build/vendor/node-types/punycode.d.ts +117 -0
  213. package/dist/runtime/build/vendor/node-types/querystring.d.ts +152 -0
  214. package/dist/runtime/build/vendor/node-types/readline/promises.d.ts +161 -0
  215. package/dist/runtime/build/vendor/node-types/readline.d.ts +600 -0
  216. package/dist/runtime/build/vendor/node-types/repl.d.ts +438 -0
  217. package/dist/runtime/build/vendor/node-types/sea.d.ts +162 -0
  218. package/dist/runtime/build/vendor/node-types/sqlite.d.ts +1182 -0
  219. package/dist/runtime/build/vendor/node-types/stream/consumers.d.ts +45 -0
  220. package/dist/runtime/build/vendor/node-types/stream/promises.d.ts +90 -0
  221. package/dist/runtime/build/vendor/node-types/stream/web.d.ts +596 -0
  222. package/dist/runtime/build/vendor/node-types/stream.d.ts +1707 -0
  223. package/dist/runtime/build/vendor/node-types/string_decoder.d.ts +67 -0
  224. package/dist/runtime/build/vendor/node-types/test.d.ts +2656 -0
  225. package/dist/runtime/build/vendor/node-types/timers/promises.d.ts +108 -0
  226. package/dist/runtime/build/vendor/node-types/timers.d.ts +285 -0
  227. package/dist/runtime/build/vendor/node-types/tls.d.ts +1314 -0
  228. package/dist/runtime/build/vendor/node-types/trace_events.d.ts +197 -0
  229. package/dist/runtime/build/vendor/node-types/ts5.6/buffer.buffer.d.ts +473 -0
  230. package/dist/runtime/build/vendor/node-types/ts5.6/compatibility/float16array.d.ts +71 -0
  231. package/dist/runtime/build/vendor/node-types/ts5.6/globals.typedarray.d.ts +36 -0
  232. package/dist/runtime/build/vendor/node-types/ts5.6/index.d.ts +103 -0
  233. package/dist/runtime/build/vendor/node-types/ts5.7/compatibility/float16array.d.ts +72 -0
  234. package/dist/runtime/build/vendor/node-types/ts5.7/index.d.ts +103 -0
  235. package/dist/runtime/build/vendor/node-types/tty.d.ts +209 -0
  236. package/dist/runtime/build/vendor/node-types/url.d.ts +1103 -0
  237. package/dist/runtime/build/vendor/node-types/util.d.ts +2379 -0
  238. package/dist/runtime/build/vendor/node-types/v8.d.ts +1010 -0
  239. package/dist/runtime/build/vendor/node-types/vm.d.ts +1160 -0
  240. package/dist/runtime/build/vendor/node-types/wasi.d.ts +202 -0
  241. package/dist/runtime/build/vendor/node-types/web-globals/abortcontroller.d.ts +34 -0
  242. package/dist/runtime/build/vendor/node-types/web-globals/crypto.d.ts +32 -0
  243. package/dist/runtime/build/vendor/node-types/web-globals/domexception.d.ts +68 -0
  244. package/dist/runtime/build/vendor/node-types/web-globals/events.d.ts +97 -0
  245. package/dist/runtime/build/vendor/node-types/web-globals/fetch.d.ts +62 -0
  246. package/dist/runtime/build/vendor/node-types/web-globals/navigator.d.ts +25 -0
  247. package/dist/runtime/build/vendor/node-types/web-globals/storage.d.ts +24 -0
  248. package/dist/runtime/build/vendor/node-types/web-globals/streams.d.ts +22 -0
  249. package/dist/runtime/build/vendor/node-types/worker_threads.d.ts +894 -0
  250. package/dist/runtime/build/vendor/node-types/zlib.d.ts +768 -0
  251. package/dist/runtime/build/vendor/node_modules/csstype/LICENSE +19 -0
  252. package/dist/runtime/build/vendor/node_modules/csstype/index.d.ts +22569 -0
  253. package/dist/runtime/build/vendor/node_modules/csstype/index.js.flow +6863 -0
  254. package/dist/runtime/build/vendor/node_modules/csstype/package.json +70 -0
  255. package/dist/runtime/build/vendor/node_modules/seroval/LICENSE +7 -0
  256. package/dist/runtime/build/vendor/node_modules/seroval/dist/cjs/development/index.cjs +4232 -0
  257. package/dist/runtime/build/vendor/node_modules/seroval/dist/cjs/production/index.cjs +3 -0
  258. package/dist/runtime/build/vendor/node_modules/seroval/dist/esm/development/index.mjs +4209 -0
  259. package/dist/runtime/build/vendor/node_modules/seroval/dist/esm/production/index.mjs +3 -0
  260. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/Serializer.d.ts +28 -0
  261. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/base-primitives.d.ts +28 -0
  262. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/compat.d.ts +15 -0
  263. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/constants.d.ts +105 -0
  264. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/constructors.d.ts +50 -0
  265. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/async-parser.d.ts +20 -0
  266. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/deserializer.d.ts +52 -0
  267. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/parser.d.ts +62 -0
  268. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/serializer.d.ts +103 -0
  269. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/sync-parser.d.ts +61 -0
  270. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/cross/index.d.ts +24 -0
  271. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/errors.d.ts +47 -0
  272. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/function-string.d.ts +3 -0
  273. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/keys.d.ts +4 -0
  274. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/literals.d.ts +10 -0
  275. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/node.d.ts +8 -0
  276. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/opaque-reference.d.ts +9 -0
  277. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/plugin.d.ts +52 -0
  278. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/reference.d.ts +6 -0
  279. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/sequence.d.ts +11 -0
  280. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/special-reference.d.ts +16 -0
  281. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/stream.d.ts +17 -0
  282. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/string.d.ts +4 -0
  283. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/symbols.d.ts +14 -0
  284. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/tree/index.d.ts +21 -0
  285. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/types.d.ts +233 -0
  286. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/error.d.ts +6 -0
  287. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/get-identifier.d.ts +2 -0
  288. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/get-object-flag.d.ts +3 -0
  289. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/is-valid-identifier.d.ts +2 -0
  290. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/promise-to-result.d.ts +2 -0
  291. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/typed-array.d.ts +6 -0
  292. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/valid-properties.d.ts +3 -0
  293. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/index.d.ts +18 -0
  294. package/dist/runtime/build/vendor/node_modules/seroval/package.json +67 -0
  295. package/dist/runtime/build/vendor/node_modules/seroval/src/core/Serializer.ts +119 -0
  296. package/dist/runtime/build/vendor/node_modules/seroval/src/core/base-primitives.ts +537 -0
  297. package/dist/runtime/build/vendor/node_modules/seroval/src/core/compat.ts +23 -0
  298. package/dist/runtime/build/vendor/node_modules/seroval/src/core/constants.ts +202 -0
  299. package/dist/runtime/build/vendor/node_modules/seroval/src/core/constructors.ts +265 -0
  300. package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/async-parser.ts +666 -0
  301. package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/deserializer.ts +832 -0
  302. package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/parser.ts +335 -0
  303. package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/serializer.ts +1524 -0
  304. package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/sync-parser.ts +943 -0
  305. package/dist/runtime/build/vendor/node_modules/seroval/src/core/cross/index.ts +190 -0
  306. package/dist/runtime/build/vendor/node_modules/seroval/src/core/errors.ts +196 -0
  307. package/dist/runtime/build/vendor/node_modules/seroval/src/core/function-string.ts +31 -0
  308. package/dist/runtime/build/vendor/node_modules/seroval/src/core/keys.ts +17 -0
  309. package/dist/runtime/build/vendor/node_modules/seroval/src/core/literals.ts +43 -0
  310. package/dist/runtime/build/vendor/node_modules/seroval/src/core/node.ts +40 -0
  311. package/dist/runtime/build/vendor/node_modules/seroval/src/core/opaque-reference.ts +9 -0
  312. package/dist/runtime/build/vendor/node_modules/seroval/src/core/plugin.ts +105 -0
  313. package/dist/runtime/build/vendor/node_modules/seroval/src/core/reference.ts +66 -0
  314. package/dist/runtime/build/vendor/node_modules/seroval/src/core/sequence.ts +59 -0
  315. package/dist/runtime/build/vendor/node_modules/seroval/src/core/special-reference.ts +42 -0
  316. package/dist/runtime/build/vendor/node_modules/seroval/src/core/stream.ts +71 -0
  317. package/dist/runtime/build/vendor/node_modules/seroval/src/core/string.ts +86 -0
  318. package/dist/runtime/build/vendor/node_modules/seroval/src/core/symbols.ts +20 -0
  319. package/dist/runtime/build/vendor/node_modules/seroval/src/core/tree/index.ts +134 -0
  320. package/dist/runtime/build/vendor/node_modules/seroval/src/core/types.ts +377 -0
  321. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/error.ts +73 -0
  322. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/get-identifier.ts +18 -0
  323. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/get-object-flag.ts +14 -0
  324. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/is-valid-identifier.ts +12 -0
  325. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/promise-to-result.ts +9 -0
  326. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/typed-array.ts +56 -0
  327. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/valid-properties.ts +34 -0
  328. package/dist/runtime/build/vendor/node_modules/seroval/src/index.ts +36 -0
  329. package/dist/runtime/build/vendor/node_modules/seroval-plugins/LICENSE +7 -0
  330. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/cjs/development/web.cjs +826 -0
  331. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/cjs/production/web.cjs +1 -0
  332. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/esm/development/web.mjs +803 -0
  333. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/esm/production/web.mjs +1 -0
  334. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/abort-signal.d.ts +3 -0
  335. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/blob.d.ts +3 -0
  336. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/custom-event.d.ts +3 -0
  337. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/dom-exception.d.ts +3 -0
  338. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/event.d.ts +3 -0
  339. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/file.d.ts +3 -0
  340. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/form-data.d.ts +3 -0
  341. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/headers.d.ts +3 -0
  342. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/image-data.d.ts +3 -0
  343. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/index.d.ts +15 -0
  344. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/readable-stream.d.ts +3 -0
  345. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/request.d.ts +3 -0
  346. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/response.d.ts +3 -0
  347. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/url-search-params.d.ts +3 -0
  348. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/url.d.ts +3 -0
  349. package/dist/runtime/build/vendor/node_modules/seroval-plugins/package.json +70 -0
  350. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/abort-signal.ts +131 -0
  351. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/blob.ts +41 -0
  352. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/custom-event.ts +66 -0
  353. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/dom-exception.ts +57 -0
  354. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/event.ts +62 -0
  355. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/file.ts +50 -0
  356. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/form-data.ts +105 -0
  357. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/headers.ts +49 -0
  358. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/image-data.ts +74 -0
  359. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/index.ts +14 -0
  360. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/readable-stream.ts +148 -0
  361. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/request.ts +82 -0
  362. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/response.ts +65 -0
  363. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/url-search-params.ts +40 -0
  364. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/url.ts +37 -0
  365. package/dist/runtime/build/vendor/node_modules/solid-js/dist/server.cjs +824 -0
  366. package/dist/runtime/build/vendor/node_modules/solid-js/dist/server.js +770 -0
  367. package/dist/runtime/build/vendor/node_modules/solid-js/dist/solid.cjs +1808 -0
  368. package/dist/runtime/build/vendor/node_modules/solid-js/dist/solid.js +1753 -0
  369. package/dist/runtime/build/vendor/node_modules/solid-js/jsx-runtime.d.ts +1 -0
  370. package/dist/runtime/build/vendor/node_modules/solid-js/package.json +243 -0
  371. package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/server.cjs +133 -0
  372. package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/server.js +121 -0
  373. package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/store.cjs +463 -0
  374. package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/store.js +454 -0
  375. package/dist/runtime/build/vendor/node_modules/solid-js/store/package.json +46 -0
  376. package/dist/runtime/build/vendor/node_modules/solid-js/store/types/index.d.ts +12 -0
  377. package/dist/runtime/build/vendor/node_modules/solid-js/store/types/modifiers.d.ts +6 -0
  378. package/dist/runtime/build/vendor/node_modules/solid-js/store/types/mutable.d.ts +5 -0
  379. package/dist/runtime/build/vendor/node_modules/solid-js/store/types/server.d.ts +17 -0
  380. package/dist/runtime/build/vendor/node_modules/solid-js/store/types/store.d.ts +108 -0
  381. package/dist/runtime/build/vendor/node_modules/solid-js/types/index.d.ts +23 -0
  382. package/dist/runtime/build/vendor/node_modules/solid-js/types/jsx.d.ts +4253 -0
  383. package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/array.d.ts +44 -0
  384. package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/observable.d.ts +36 -0
  385. package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/scheduler.d.ts +10 -0
  386. package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/signal.d.ts +581 -0
  387. package/dist/runtime/build/vendor/node_modules/solid-js/types/render/Suspense.d.ts +26 -0
  388. package/dist/runtime/build/vendor/node_modules/solid-js/types/render/component.d.ts +111 -0
  389. package/dist/runtime/build/vendor/node_modules/solid-js/types/render/flow.d.ts +118 -0
  390. package/dist/runtime/build/vendor/node_modules/solid-js/types/render/hydration.d.ts +24 -0
  391. package/dist/runtime/build/vendor/node_modules/solid-js/types/render/index.d.ts +4 -0
  392. package/dist/runtime/build/vendor/node_modules/solid-js/types/server/index.d.ts +3 -0
  393. package/dist/runtime/build/vendor/node_modules/solid-js/types/server/reactive.d.ts +98 -0
  394. package/dist/runtime/build/vendor/node_modules/solid-js/types/server/rendering.d.ts +160 -0
  395. package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/server.cjs +900 -0
  396. package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/server.js +786 -0
  397. package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/web.cjs +884 -0
  398. package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/web.js +772 -0
  399. package/dist/runtime/build/vendor/node_modules/solid-js/web/package.json +46 -0
  400. package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/dist/storage.cjs +12 -0
  401. package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/dist/storage.js +10 -0
  402. package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/package.json +15 -0
  403. package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/types/index.d.ts +2 -0
  404. package/dist/runtime/build/vendor/node_modules/solid-js/web/types/client.d.ts +93 -0
  405. package/dist/runtime/build/vendor/node_modules/solid-js/web/types/core.d.ts +2 -0
  406. package/dist/runtime/build/vendor/node_modules/solid-js/web/types/index.d.ts +50 -0
  407. package/dist/runtime/build/vendor/node_modules/solid-js/web/types/jsx.d.ts +1 -0
  408. package/dist/runtime/build/vendor/node_modules/solid-js/web/types/server-mock.d.ts +65 -0
  409. package/dist/runtime/build/vendor/node_modules/solid-js/web/types/server.d.ts +187 -0
  410. package/dist/runtime/build/worker.mjs +293415 -0
  411. package/dist/runtime/catalog/sdk-natives.json +655 -0
  412. package/dist/runtime/cli/iota-ext.mjs +1028 -0
  413. package/dist/runtime/client-host/entry.d.ts +10 -0
  414. package/dist/runtime/client-host/entry.js +124 -0
  415. package/dist/runtime/client-host/hooks.d.ts +43 -0
  416. package/dist/runtime/client-host/hooks.js +94 -0
  417. package/dist/runtime/client-host/index.d.ts +9 -0
  418. package/dist/runtime/client-host/index.js +9 -0
  419. package/dist/runtime/client-host/islands.d.ts +44 -0
  420. package/dist/runtime/client-host/islands.js +165 -0
  421. package/dist/runtime/client-host/kit.d.ts +10 -0
  422. package/dist/runtime/client-host/kit.js +37 -0
  423. package/dist/runtime/client-host/page.d.ts +53 -0
  424. package/dist/runtime/client-host/page.js +217 -0
  425. package/dist/runtime/client-host/params.d.ts +8 -0
  426. package/dist/runtime/client-host/params.js +36 -0
  427. package/dist/runtime/client-host/protocol.d.ts +78 -0
  428. package/dist/runtime/client-host/protocol.js +26 -0
  429. package/dist/runtime/client-host/shared.d.ts +12 -0
  430. package/dist/runtime/client-host/shared.js +49 -0
  431. package/dist/runtime/client-host/shell.d.ts +88 -0
  432. package/dist/runtime/client-host/shell.js +195 -0
  433. package/dist/runtime/client-host/slots.d.ts +54 -0
  434. package/dist/runtime/client-host/slots.js +90 -0
  435. package/dist/runtime/client-host/styles.d.ts +7 -0
  436. package/dist/runtime/client-host/styles.js +61 -0
  437. package/dist/runtime/client-host/transport.d.ts +45 -0
  438. package/dist/runtime/client-host/transport.js +115 -0
  439. package/dist/runtime/client.d.ts +226 -0
  440. package/dist/runtime/client.js +121 -0
  441. package/dist/runtime/contracts.d.ts +204 -0
  442. package/dist/runtime/contracts.js +195 -0
  443. package/dist/runtime/docs/authoring.md +1609 -0
  444. package/dist/runtime/docs/example/docs/en/admin/limits.md +10 -0
  445. package/dist/runtime/docs/example/docs/en/getting-started.md +13 -0
  446. package/dist/runtime/docs/example/docs/en/points.md +9 -0
  447. package/dist/runtime/docs/example/docs/ru/getting-started.md +12 -0
  448. package/dist/runtime/docs/example/package.json +27 -0
  449. package/dist/runtime/docs/example/src/ClientScreen.tsx +10 -0
  450. package/dist/runtime/docs/example/src/RedemptionScreen.tsx +7 -0
  451. package/dist/runtime/docs/example/src/RewardsScreen.module.css +13 -0
  452. package/dist/runtime/docs/example/src/RewardsScreen.tsx +51 -0
  453. package/dist/runtime/docs/example/src/client.tsx +40 -0
  454. package/dist/runtime/docs/example/src/contracts.ts +132 -0
  455. package/dist/runtime/docs/example/src/css-modules.d.ts +5 -0
  456. package/dist/runtime/docs/example/src/server.test.ts +156 -0
  457. package/dist/runtime/docs/example/src/server.ts +188 -0
  458. package/dist/runtime/docs/example/tsconfig.json +16 -0
  459. package/dist/runtime/entity.d.ts +237 -0
  460. package/dist/runtime/entity.js +201 -0
  461. package/dist/runtime/fakes.d.ts +80 -0
  462. package/dist/runtime/fakes.js +88 -0
  463. package/dist/runtime/fixtures.d.ts +34 -0
  464. package/dist/runtime/fixtures.js +60 -0
  465. package/dist/runtime/help.d.ts +22 -0
  466. package/dist/runtime/help.js +51 -0
  467. package/dist/runtime/host/context.mjs +392 -0
  468. package/dist/runtime/host/errors.mjs +64 -0
  469. package/dist/runtime/host/loader.mjs +28 -0
  470. package/dist/runtime/host/protocol.mjs +4 -0
  471. package/dist/runtime/host/register.mjs +8 -0
  472. package/dist/runtime/host/sdk/assert.mjs +153 -0
  473. package/dist/runtime/host/sdk/client-host/hooks.mjs +86 -0
  474. package/dist/runtime/host/sdk/client-host/protocol.mjs +30 -0
  475. package/dist/runtime/host/sdk/client-host/slots.mjs +82 -0
  476. package/dist/runtime/host/sdk/client-host/styles.mjs +45 -0
  477. package/dist/runtime/host/sdk/client-host/transport.mjs +102 -0
  478. package/dist/runtime/host/sdk/client.mjs +115 -0
  479. package/dist/runtime/host/sdk/contracts.mjs +185 -0
  480. package/dist/runtime/host/sdk/entity.mjs +183 -0
  481. package/dist/runtime/host/sdk/fakes.mjs +88 -0
  482. package/dist/runtime/host/sdk/fixtures.mjs +56 -0
  483. package/dist/runtime/host/sdk/help.mjs +37 -0
  484. package/dist/runtime/host/sdk/index.mjs +83 -0
  485. package/dist/runtime/host/sdk/kit.mjs +11 -0
  486. package/dist/runtime/host/sdk/manifest.mjs +276 -0
  487. package/dist/runtime/host/sdk/model.mjs +4 -0
  488. package/dist/runtime/host/sdk/resource.mjs +34 -0
  489. package/dist/runtime/host/sdk/schema.mjs +75 -0
  490. package/dist/runtime/host/sdk/server.mjs +43 -0
  491. package/dist/runtime/host/sdk/testhost.mjs +992 -0
  492. package/dist/runtime/host/sdk/testing.mjs +21 -0
  493. package/dist/runtime/host/sdk/wire.mjs +207 -0
  494. package/dist/runtime/host/worker.mjs +252 -0
  495. package/dist/runtime/index.d.ts +10 -0
  496. package/dist/runtime/index.js +5 -0
  497. package/dist/runtime/kit.d.ts +5 -0
  498. package/dist/runtime/kit.js +14 -0
  499. package/dist/runtime/manifest.d.ts +17 -0
  500. package/dist/runtime/manifest.js +323 -0
  501. package/dist/runtime/model.d.ts +224 -0
  502. package/dist/runtime/model.js +3 -0
  503. package/dist/runtime/resource.d.ts +31 -0
  504. package/dist/runtime/resource.js +35 -0
  505. package/dist/runtime/schema.d.ts +97 -0
  506. package/dist/runtime/schema.js +73 -0
  507. package/dist/runtime/server.d.ts +445 -0
  508. package/dist/runtime/server.js +41 -0
  509. package/dist/runtime/testhost.d.ts +216 -0
  510. package/dist/runtime/testhost.js +1146 -0
  511. package/dist/runtime/testing.d.ts +10 -0
  512. package/dist/runtime/testing.js +7 -0
  513. package/dist/runtime/wire.d.ts +26 -0
  514. package/dist/runtime/wire.js +236 -0
  515. package/dist/sdk-identity.cjs +3 -3
  516. package/dist/sdk-identity.js +3 -3
  517. package/dist/sdk-identity.json +2 -2
  518. package/dist/solid-ui/embedded-css.d.ts +2 -0
  519. package/dist/solid-ui/embedded-css.js +1 -0
  520. package/dist/solid-ui/embedded.css +2 -0
  521. package/dist/testing/components.d.ts +73 -0
  522. package/dist/testing/components.js +96 -0
  523. package/dist/testing/htmx.d.ts +44 -0
  524. package/dist/testing/htmx.js +284 -0
  525. package/dist/testing/index.d.ts +4 -41
  526. package/dist/testing/index.js +3 -206
  527. package/dist/testing/scenarios.d.ts +83 -0
  528. package/dist/testing/scenarios.js +74 -0
  529. package/dist/testing/wait.d.ts +7 -0
  530. package/dist/testing/wait.js +19 -0
  531. package/package.json +33 -2
  532. package/dist/lens/TablePanel-C09tzJOL.js +0 -980
  533. package/dist/lens/index-DcVtZneD.js +0 -18473
  534. package/dist/lens/runtime/recovery.d.ts +0 -26
  535. package/dist/lens/runtime/recovery.d.ts.map +0 -1
@@ -0,0 +1,24 @@
1
+ # Extension packages: `iota-ext` and the runtime API
2
+
3
+ `@iota-uz/sdk` ships the author tooling for iota-sdk extension packages.
4
+
5
+ ```sh
6
+ npx iota-ext init loyalty --namespace acme.loyalty # scaffold + the offline developer kit (core, crm)
7
+ cd loyalty && npm install # the kit lives in .iota/kit, which npm does not touch
8
+ npx iota-ext check # typecheck, graph rules, manifest
9
+ npx iota-ext test # run *.test.ts on the in-memory test host
10
+ npx iota-ext build # artifacts + manifest.json in .iota/build
11
+ npx iota-ext kit pull --server https://erp.example.com --token-env IOTA_TOKEN # the live developer kit
12
+ npx iota-ext kit status # verify the kit in .iota/kit (modules, files, hashes)
13
+ ```
14
+
15
+ Import paths: `@iota-uz/sdk/runtime` (contracts), `@iota-uz/sdk/runtime/server` (handlers), `@iota-uz/sdk/runtime/client`
16
+ (pages, Solid), `@iota-uz/sdk/solid-ui` (the host's Solid UI kit, client graph only; styling with it, Tailwind utilities and
17
+ `*.module.css` is in the guide, "Styling"), `@iota-uz/sdk/runtime/testing` (test host, fixtures, fakes, `assert`; not `@iota-uz/sdk/testing`, the
18
+ Playwright package). `init` pins `@iota-uz/sdk` to the exact version of the CLI that ran it: the runtime ships from that
19
+ release on. Exit codes: 0 ok, 1 package errors or failing tests, 2 usage, 3 environment.
20
+
21
+ The full author guide is [`docs/authoring.md`](docs/authoring.md) (next to this file), with a complete example package in
22
+ [`docs/example`](docs/example). Contents of this directory: `cli/iota-ext.mjs` (the command), `build/` (the build worker
23
+ it drives), `host/` (the invocation runtime), `catalog/sdk-natives.json` (the SDK's native catalog the offline kit is
24
+ generated from) and the TypeScript declarations of the public subpaths.
@@ -0,0 +1,51 @@
1
+ import type { Json } from './model.ts';
2
+ /** Thrown by every failed assertion; the test runner prints `message` and the source location of the call. */
3
+ export declare class AssertionError extends Error {
4
+ readonly actual: unknown;
5
+ readonly expected: unknown;
6
+ readonly operator: string;
7
+ constructor(message: string, details: {
8
+ actual?: unknown;
9
+ expected?: unknown;
10
+ operator: string;
11
+ });
12
+ }
13
+ /** What a rejection or a throw must look like. A string or RegExp matches the message. */
14
+ export type ErrorMatcher = string | RegExp | (abstract new (...args: never[]) => Error) | {
15
+ readonly id: string;
16
+ readonly of: (...args: never[]) => unknown;
17
+ } | {
18
+ readonly code?: string;
19
+ readonly kind?: string;
20
+ readonly message?: string | RegExp;
21
+ readonly issue?: {
22
+ readonly id: string;
23
+ };
24
+ };
25
+ type Fn = () => unknown;
26
+ export interface Assert {
27
+ /** Fails unless `value` is truthy; narrows its type. */
28
+ ok(value: unknown, message?: string): asserts value;
29
+ /** Strict equality (`Object.is`): primitives and identical references. */
30
+ equal(actual: unknown, expected: unknown, message?: string): void;
31
+ notEqual(actual: unknown, expected: unknown, message?: string): void;
32
+ /** Structural equality of JSON-like values (objects, arrays, dates, primitives); the message names the first differing path. */
33
+ deepEqual(actual: unknown, expected: unknown, message?: string): void;
34
+ /** `actual` contains every property of `expected` (recursively for objects; arrays must match element for element). */
35
+ partial(actual: unknown, expected: Json | object, message?: string): void;
36
+ /** The text matches the pattern (RegExp) or contains the substring. */
37
+ match(text: string, pattern: RegExp | string, message?: string): void;
38
+ /** `fn` throws synchronously. */
39
+ throws(fn: Fn, expected?: ErrorMatcher, message?: string): void;
40
+ /**
41
+ * The promise rejects. Pass the promise itself, or a function that returns it (a handler that may be synchronous
42
+ * included: a synchronous throw counts as a rejection). `expected` may be a message substring or RegExp, an error
43
+ * class, a domain error contract (`NotActive`), or `{ code, kind, message, issue }`:
44
+ * `await assert.rejects(call(), { kind: "validation", issue: TooLong })`.
45
+ */
46
+ rejects(promiseOrFn: unknown, expected?: ErrorMatcher, message?: string): Promise<void>;
47
+ /** Always fails. */
48
+ fail(message: string): never;
49
+ }
50
+ export declare const assert: Assert;
51
+ export {};
@@ -0,0 +1,172 @@
1
+ /** Thrown by every failed assertion; the test runner prints `message` and the source location of the call. */
2
+ export class AssertionError extends Error {
3
+ actual;
4
+ expected;
5
+ operator;
6
+ constructor(message, details) {
7
+ super(message);
8
+ this.name = 'AssertionError';
9
+ this.actual = details.actual;
10
+ this.expected = details.expected;
11
+ this.operator = details.operator;
12
+ }
13
+ }
14
+ function show(value) {
15
+ const seen = new WeakSet();
16
+ const text = JSON.stringify(value, (_key, v) => {
17
+ if (typeof v === 'bigint')
18
+ return `${v}n`;
19
+ if (v === undefined)
20
+ return '[undefined]';
21
+ if (typeof v === 'function')
22
+ return `[function ${v.name}]`;
23
+ if (typeof v === 'object' && v !== null) {
24
+ if (seen.has(v))
25
+ return '[circular]';
26
+ seen.add(v);
27
+ if (v instanceof Error)
28
+ return { name: v.name, message: v.message };
29
+ }
30
+ return v;
31
+ }, 2);
32
+ return text === undefined ? String(value) : text;
33
+ }
34
+ const isObject = (v) => typeof v === 'object' && v !== null;
35
+ /** Path of the first difference between two values, or undefined when they are structurally equal. */
36
+ function firstDifference(a, b, path) {
37
+ if (Object.is(a, b))
38
+ return undefined;
39
+ if (!isObject(a) || !isObject(b))
40
+ return path === '' ? '(value)' : path;
41
+ if (Array.isArray(a) !== Array.isArray(b))
42
+ return path === '' ? '(value)' : path;
43
+ if (a instanceof Date && b instanceof Date)
44
+ return a.getTime() === b.getTime() ? undefined : path;
45
+ const keys = new Set([...Object.keys(a), ...Object.keys(b)]);
46
+ for (const key of [...keys].sort()) {
47
+ const next = Array.isArray(a) ? `${path}[${key}]` : path === '' ? key : `${path}.${key}`;
48
+ if (!(key in a) || !(key in b))
49
+ return next;
50
+ const d = firstDifference(a[key], b[key], next);
51
+ if (d !== undefined)
52
+ return d;
53
+ }
54
+ return undefined;
55
+ }
56
+ function fail(operator, message, fallback, actual, expected) {
57
+ throw new AssertionError(message ?? fallback, { actual, expected, operator });
58
+ }
59
+ function describeError(err) {
60
+ if (err instanceof Error) {
61
+ const code = err.code;
62
+ return `${err.name}${typeof code === 'string' ? ` [${code}]` : ''}: ${err.message}`;
63
+ }
64
+ return String(err);
65
+ }
66
+ function matches(err, expected) {
67
+ if (typeof expected === 'string')
68
+ return err instanceof Error && err.message.includes(expected);
69
+ if (expected instanceof RegExp)
70
+ return err instanceof Error && expected.test(err.message);
71
+ if (typeof expected === 'function')
72
+ return err instanceof expected;
73
+ if ('of' in expected && 'id' in expected)
74
+ return isObject(err) && err.code === expected.id;
75
+ const o = expected;
76
+ const e = err;
77
+ if (!isObject(err))
78
+ return false;
79
+ if (o.code !== undefined && e.code !== o.code)
80
+ return false;
81
+ if (o.kind !== undefined && e.kind !== o.kind)
82
+ return false;
83
+ if (o.issue !== undefined && !(e.issues ?? []).some((i) => i.code === o.issue?.id))
84
+ return false;
85
+ if (o.message !== undefined) {
86
+ const text = String(e.message ?? '');
87
+ if (typeof o.message === 'string' ? !text.includes(o.message) : !o.message.test(text))
88
+ return false;
89
+ }
90
+ return true;
91
+ }
92
+ function describeMatcher(expected) {
93
+ if (typeof expected === 'string' || expected instanceof RegExp)
94
+ return `message ${String(expected)}`;
95
+ if (typeof expected === 'function')
96
+ return `instance of ${expected.name}`;
97
+ if ('of' in expected && 'id' in expected)
98
+ return `domain error ${expected.id}`;
99
+ return show(expected);
100
+ }
101
+ export const assert = {
102
+ ok(value, message) {
103
+ if (!value)
104
+ fail('ok', message, `expected a truthy value, got ${show(value)}`, value, true);
105
+ },
106
+ equal(actual, expected, message) {
107
+ if (!Object.is(actual, expected)) {
108
+ fail('equal', message, `expected ${show(expected)}\n got ${show(actual)}`, actual, expected);
109
+ }
110
+ },
111
+ notEqual(actual, expected, message) {
112
+ if (Object.is(actual, expected))
113
+ fail('notEqual', message, `expected a value other than ${show(expected)}`, actual, expected);
114
+ },
115
+ deepEqual(actual, expected, message) {
116
+ const at = firstDifference(actual, expected, '');
117
+ if (at !== undefined) {
118
+ fail('deepEqual', message, `values differ at ${at}\nexpected ${show(expected)}\n got ${show(actual)}`, actual, expected);
119
+ }
120
+ },
121
+ partial(actual, expected, message) {
122
+ const visit = (a, e, path) => {
123
+ if (isObject(e) && !Array.isArray(e)) {
124
+ if (!isObject(a))
125
+ return path === '' ? '(value)' : path;
126
+ for (const [k, v] of Object.entries(e)) {
127
+ const d = visit(a[k], v, path === '' ? k : `${path}.${k}`);
128
+ if (d !== undefined)
129
+ return d;
130
+ }
131
+ return undefined;
132
+ }
133
+ return firstDifference(a, e, path);
134
+ };
135
+ const at = visit(actual, expected, '');
136
+ if (at !== undefined) {
137
+ fail('partial', message, `value does not contain the expected properties (first difference at ${at})\nexpected ${show(expected)}\n got ${show(actual)}`, actual, expected);
138
+ }
139
+ },
140
+ match(text, pattern, message) {
141
+ const ok = typeof pattern === 'string' ? text.includes(pattern) : pattern.test(text);
142
+ if (!ok)
143
+ fail('match', message, `expected ${show(text)} to match ${String(pattern)}`, text, pattern);
144
+ },
145
+ throws(fn, expected, message) {
146
+ try {
147
+ fn();
148
+ }
149
+ catch (err) {
150
+ if (expected !== undefined && !matches(err, expected)) {
151
+ fail('throws', message, `threw ${describeError(err)}, expected ${describeMatcher(expected)}`, err, expected);
152
+ }
153
+ return;
154
+ }
155
+ fail('throws', message, 'expected the function to throw');
156
+ },
157
+ async rejects(promiseOrFn, expected, message) {
158
+ try {
159
+ await (typeof promiseOrFn === 'function' ? promiseOrFn() : promiseOrFn);
160
+ }
161
+ catch (err) {
162
+ if (expected !== undefined && !matches(err, expected)) {
163
+ fail('rejects', message, `rejected with ${describeError(err)}, expected ${describeMatcher(expected)}`, err, expected);
164
+ }
165
+ return;
166
+ }
167
+ fail('rejects', message, 'expected the promise to reject');
168
+ },
169
+ fail(message) {
170
+ throw new AssertionError(message, { operator: 'fail' });
171
+ },
172
+ };
@@ -0,0 +1 @@
1
+ Generated by scripts/build-worker.mjs. See docs/extension-runtime.md section 4.
@@ -0,0 +1,342 @@
1
+ import { createRequire as __iotaCreateRequire } from "node:module";
2
+ import { fileURLToPath as __iotaFileURLToPath } from "node:url";
3
+ import { dirname as __iotaDirname } from "node:path";
4
+ const require = __iotaCreateRequire(import.meta.url);
5
+ const __filename = __iotaFileURLToPath(import.meta.url);
6
+ const __dirname = __iotaDirname(__filename);
7
+
8
+ // src/build/extract.ts
9
+ import { pathToFileURL } from "node:url";
10
+
11
+ // src/model.ts
12
+ var MANIFEST_SCHEMA = "iota.manifest/1";
13
+
14
+ // src/resource.ts
15
+ var RESOURCE = Symbol.for("iota.resource");
16
+ var KIT = Symbol.for("iota.kit");
17
+ function isBranded(value) {
18
+ return typeof value === "object" && value !== null && value[RESOURCE] === true;
19
+ }
20
+ function isContract(value) {
21
+ if (!isBranded(value)) return false;
22
+ const v = value;
23
+ return typeof v.id === "string" && typeof v.kind === "string" && typeof v.resource === "object";
24
+ }
25
+ function isKitIssued(value) {
26
+ return value.foreign && value[KIT] === true;
27
+ }
28
+
29
+ // src/manifest.ts
30
+ var ManifestError = class extends Error {
31
+ problems;
32
+ constructor(problems) {
33
+ super(`invalid extension package:
34
+ ${problems.map((p) => ` - ${p}`).join("\n")}`);
35
+ this.name = "ManifestError";
36
+ this.problems = problems;
37
+ }
38
+ };
39
+ var NAMESPACE_PATTERN = /^[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*$/;
40
+ var ID_PATTERN = /^[a-z][a-z0-9]*(\.[a-z][a-zA-Z0-9_]*)+$/;
41
+ var CRON_PATTERN = /^(@[a-z]+|\S+(\s+\S+){4})$/;
42
+ var CLIENT_KINDS = /* @__PURE__ */ new Set(["page", "navigation", "slot", "cell", "shell"]);
43
+ var CHANNELS = ["sms", "email", "inApp", "push"];
44
+ var IMPLEMENTABLE = {
45
+ operation: () => "operation",
46
+ command: (c) => c.atomic === true ? "atomic" : "command",
47
+ query: () => "query",
48
+ workflow: () => "workflow",
49
+ contactResolver: () => "contactResolver",
50
+ deliveryPolicy: () => "deliveryPolicy"
51
+ };
52
+ function typeRefs(type, out) {
53
+ if (!type) return;
54
+ if (type.kind === "ref" && type.entity) out.push(type.entity);
55
+ type.properties?.forEach((p) => typeRefs(p.type, out));
56
+ typeRefs(type.items, out);
57
+ }
58
+ function referencedIds(r) {
59
+ const out = [];
60
+ r.fields?.forEach((f) => typeRefs(f.type, out));
61
+ for (const t of [r.input, r.output, r.params, r.payload, r.props]) typeRefs(t, out);
62
+ Object.values(r.signals ?? {}).forEach((t) => typeRefs(t, out));
63
+ out.push(...r.errors ?? []);
64
+ for (const id of [r.base, r.subject, r.permission, r.route, r.overlay]) if (id) out.push(id);
65
+ if ((r.kind === "slot" || r.kind === "cell") && r.target) out.push(r.target);
66
+ return out;
67
+ }
68
+ function checkNavigation(resources, namespace, inPackage, problems) {
69
+ const ids = new Set(resources.map((r) => r.id));
70
+ const groups = new Set(resources.flatMap((r) => r.kind === "navigation" ? (r.groups ?? []).map((g) => g.id) : []));
71
+ const known = (id) => ids.has(id) || groups.has(id);
72
+ for (const r of resources) {
73
+ const where = `resource "${r.id}"`;
74
+ if (r.nav?.group && inPackage(r.nav.group) && !groups.has(r.nav.group)) {
75
+ problems.push(`${where}: nav.group "${r.nav.group}" is not declared by a navigation(...) groups entry of "${namespace}"`);
76
+ }
77
+ if (r.nav?.parent && inPackage(r.nav.parent) && !known(r.nav.parent)) {
78
+ problems.push(`${where}: nav.parent "${r.nav.parent}" is not a page or group of "${namespace}"`);
79
+ }
80
+ for (const entry of r.palette ?? []) {
81
+ if (inPackage(entry.target) && !ids.has(entry.target)) {
82
+ problems.push(`${where}: palette entry "${entry.id}" targets "${entry.target}", which is not exported by "${namespace}"`);
83
+ }
84
+ }
85
+ for (const patch of r.patches ?? []) {
86
+ for (const id of [patch.ref, patch.parent]) {
87
+ if (id && inPackage(id) && !known(id)) problems.push(`${where}: nav patch references "${id}", which is not declared by "${namespace}"`);
88
+ }
89
+ }
90
+ }
91
+ }
92
+ var lowerFirst = (name) => name.charAt(0).toLowerCase() + name.slice(1);
93
+ var MAX_SCAN_DEPTH = 6;
94
+ function nestedBranded(value, seen = /* @__PURE__ */ new Set(), depth = 0) {
95
+ if (typeof value !== "object" || value === null || depth > MAX_SCAN_DEPTH || seen.has(value)) return void 0;
96
+ seen.add(value);
97
+ const proto = Object.getPrototypeOf(value);
98
+ if (!Array.isArray(value) && proto !== Object.prototype && proto !== null) return void 0;
99
+ for (const [key, inner] of Object.entries(value)) {
100
+ if (isBranded(inner)) return key;
101
+ const found = nestedBranded(inner, seen, depth + 1);
102
+ if (found !== void 0) return `${key}.${found}`;
103
+ }
104
+ return void 0;
105
+ }
106
+ function collectManifest(input) {
107
+ const problems = [];
108
+ const { namespace } = input;
109
+ const inPackage = (id) => id === namespace || id.startsWith(`${namespace}.`);
110
+ if (!NAMESPACE_PATTERN.test(namespace)) problems.push(`invalid namespace "${namespace}"`);
111
+ const owned = /* @__PURE__ */ new Map();
112
+ const claim = (id, where) => {
113
+ if (!ID_PATTERN.test(id)) {
114
+ problems.push(`${where}: invalid id "${id}"`);
115
+ return false;
116
+ }
117
+ if (!id.startsWith(`${namespace}.`)) {
118
+ problems.push(`${where}: id "${id}" is outside namespace "${namespace}"`);
119
+ return false;
120
+ }
121
+ const prior = owned.get(id);
122
+ if (prior !== void 0) {
123
+ problems.push(`${where}: id "${id}" is already declared by ${prior}`);
124
+ return false;
125
+ }
126
+ owned.set(id, where);
127
+ return true;
128
+ };
129
+ const resources = [];
130
+ const seen = /* @__PURE__ */ new Set();
131
+ const declared = (id, where) => {
132
+ if (!resources.some((r) => r.id === id)) problems.push(`${where}: references "${id}" which is not exported by the contracts graph`);
133
+ };
134
+ const external = (c, where) => {
135
+ if (!isKitIssued(c)) problems.push(`${where}: "${c.id}" is marked foreign but was not issued by the developer kit`);
136
+ else if (inPackage(c.id)) problems.push(`${where}: kit contract "${c.id}" is inside this package's own namespace "${namespace}"`);
137
+ };
138
+ const reference = (c, where) => {
139
+ if (c.foreign) external(c, where);
140
+ else if (!inPackage(c.id)) problems.push(`${where}: "${c.id}" is outside namespace "${namespace}"; contracts of other packages come from the developer kit`);
141
+ else declared(c.id, where);
142
+ };
143
+ const collectResources = (graph, ns) => {
144
+ for (const [name, value] of Object.entries(ns)) {
145
+ const where = `${graph} export "${name}"`;
146
+ if (!isBranded(value)) {
147
+ const inner = nestedBranded(value);
148
+ if (inner !== void 0) problems.push(`${where}: contains "${inner}"; export resources as top-level named exports`);
149
+ continue;
150
+ }
151
+ if (!isContract(value)) {
152
+ problems.push(`${where}: server value exported from the ${graph} graph`);
153
+ continue;
154
+ }
155
+ if (seen.has(value)) continue;
156
+ seen.add(value);
157
+ if (value.foreign) {
158
+ external(value, where);
159
+ continue;
160
+ }
161
+ const isClient = CLIENT_KINDS.has(value.kind) && !(value.kind === "slot" && value.resource.target === void 0);
162
+ if (graph === "contracts" && isClient) {
163
+ problems.push(`${where}: ${value.kind} belongs to the client graph`);
164
+ continue;
165
+ }
166
+ if (graph === "client" && !isClient) {
167
+ problems.push(`${where}: ${value.kind} contract must be declared and exported from the contracts graph`);
168
+ continue;
169
+ }
170
+ const resource = { ...value.resource };
171
+ if (isClient) {
172
+ const implicit = value.implicitId;
173
+ if (implicit === "export") resource.id = `${namespace}.${lowerFirst(name)}`;
174
+ else if (implicit === "navigation") resource.id = `${namespace}.navigation`;
175
+ else if (implicit === "shell") resource.id = `${namespace}.shell`;
176
+ if (value.kind !== "navigation") resource.export = name;
177
+ }
178
+ if (claim(resource.id, where)) resources.push(resource);
179
+ }
180
+ };
181
+ collectResources("contracts", input.contracts);
182
+ collectResources("client", input.client);
183
+ for (const r of resources) for (const id of referencedIds(r)) if (inPackage(id)) declared(id, `resource "${r.id}"`);
184
+ checkNavigation(resources, namespace, inPackage, problems);
185
+ const implementations = [];
186
+ const subscriptions = [];
187
+ const guards = [];
188
+ const templates = [];
189
+ const schedules = [];
190
+ const endpoints = [];
191
+ const implemented = /* @__PURE__ */ new Map();
192
+ const templated = /* @__PURE__ */ new Map();
193
+ for (const [name, value] of Object.entries(input.server)) {
194
+ const where = `server export "${name}"`;
195
+ if (!isBranded(value)) {
196
+ const inner = nestedBranded(value);
197
+ if (inner !== void 0) problems.push(`${where}: contains "${inner}"; export resources as top-level named exports`);
198
+ continue;
199
+ }
200
+ if (isContract(value)) {
201
+ problems.push(`${where}: contract exported from the server graph; declare it in the contracts graph`);
202
+ continue;
203
+ }
204
+ if (seen.has(value)) continue;
205
+ seen.add(value);
206
+ const sv = value;
207
+ switch (sv.serverKind) {
208
+ case "implementation": {
209
+ const c = sv.contract;
210
+ const kind = IMPLEMENTABLE[c.kind]?.(c);
211
+ if (kind === void 0) {
212
+ problems.push(`${where}: cannot implement contract "${c.id}" of kind "${c.kind}"`);
213
+ break;
214
+ }
215
+ reference(c, where);
216
+ const prior = implemented.get(c.id);
217
+ if (prior !== void 0) {
218
+ problems.push(`${where}: "${c.id}" is already implemented by export "${prior}"`);
219
+ break;
220
+ }
221
+ implemented.set(c.id, name);
222
+ implementations.push({ export: name, implements: c.id, kind });
223
+ break;
224
+ }
225
+ case "subscription": {
226
+ reference(sv.event, where);
227
+ if (claim(sv.id, where)) subscriptions.push({ id: sv.id, export: name, event: sv.event.id });
228
+ break;
229
+ }
230
+ case "guard": {
231
+ const g = sv;
232
+ const target = g.target;
233
+ const ok = g.phase === "input" && target.kind === "command" && !target.atomic || g.phase === "operation" && (target.kind === "operation" || target.kind === "command" && target.atomic) || g.phase === "write" && target.kind === "entity";
234
+ if (!ok) {
235
+ problems.push(`${where}: ${g.phase} guard cannot target ${target.kind} "${target.id}"`);
236
+ break;
237
+ }
238
+ reference(target, where);
239
+ if (claim(g.id, where)) guards.push({ id: g.id, export: name, target: target.id, phase: g.phase });
240
+ break;
241
+ }
242
+ case "templates": {
243
+ const channels = CHANNELS.filter((ch) => typeof sv.renderers[ch] === "function");
244
+ const prior = templated.get(sv.notice.id);
245
+ if (prior !== void 0) {
246
+ problems.push(`${where}: notice "${sv.notice.id}" already has templates in export "${prior}"`);
247
+ break;
248
+ }
249
+ if (channels.length === 0) {
250
+ problems.push(`${where}: templates for "${sv.notice.id}" define no channel`);
251
+ break;
252
+ }
253
+ reference(sv.notice, where);
254
+ templated.set(sv.notice.id, name);
255
+ templates.push({ export: name, notice: sv.notice.id, channels });
256
+ break;
257
+ }
258
+ case "schedule": {
259
+ if (!CRON_PATTERN.test(sv.cron.trim())) problems.push(`${where}: invalid cron "${sv.cron}"`);
260
+ else if (claim(sv.id, where)) {
261
+ schedules.push({ id: sv.id, export: name, cron: sv.cron.trim(), ...sv.timezone ? { timezone: sv.timezone } : {} });
262
+ }
263
+ break;
264
+ }
265
+ case "endpoint": {
266
+ if (!sv.spec.path.startsWith("/")) problems.push(`${where}: endpoint path must start with "/"`);
267
+ else if (claim(sv.id, where)) {
268
+ endpoints.push({ id: sv.id, export: name, method: sv.spec.method, path: sv.spec.path, ...sv.spec.public ? { public: true } : {} });
269
+ }
270
+ break;
271
+ }
272
+ default:
273
+ problems.push(`${where}: unknown server value`);
274
+ }
275
+ }
276
+ if (problems.length > 0) throw new ManifestError(problems);
277
+ const byId = (a, b) => a.id.localeCompare(b.id);
278
+ const byExport = (a, b) => a.export.localeCompare(b.export);
279
+ const manifest = {
280
+ schema: MANIFEST_SCHEMA,
281
+ namespace,
282
+ resources: resources.sort(byId)
283
+ };
284
+ if (implementations.length > 0) manifest.implementations = implementations.sort(byExport);
285
+ if (subscriptions.length > 0) manifest.subscriptions = subscriptions.sort(byId);
286
+ if (guards.length > 0) manifest.guards = guards.sort(byId);
287
+ if (templates.length > 0) manifest.templates = templates.sort(byExport);
288
+ if (schedules.length > 0) manifest.schedules = schedules.sort(byId);
289
+ if (endpoints.length > 0) manifest.endpoints = endpoints.sort(byId);
290
+ manifest.capabilities = capabilitiesOf(input.capabilities);
291
+ if (input.dependencies && Object.keys(input.dependencies).length > 0) manifest.dependencies = { ...input.dependencies };
292
+ return manifest;
293
+ }
294
+ function capabilitiesOf(c) {
295
+ const out = {};
296
+ if (c?.network?.length) out.network = [...c.network];
297
+ if (c?.secrets?.length) out.secrets = [...c.secrets];
298
+ return out;
299
+ }
300
+
301
+ // src/build/extract.ts
302
+ async function main() {
303
+ const config = JSON.parse(process.argv[2] ?? "{}");
304
+ await import(config.loader);
305
+ const load = async (graph, file) => {
306
+ if (file === void 0) return {};
307
+ try {
308
+ return await import(pathToFileURL(file).href);
309
+ } catch (err) {
310
+ const e = err;
311
+ return { ok: false, kind: "import", graph, message: e.stack ?? e.message ?? String(err) };
312
+ }
313
+ };
314
+ const contracts = await load("contracts", config.contracts);
315
+ const server = await load("server", config.server);
316
+ const client = await load("client", config.client);
317
+ for (const graph of [contracts, server, client]) {
318
+ if ("ok" in graph && graph.ok === false) return graph;
319
+ }
320
+ try {
321
+ return {
322
+ ok: true,
323
+ manifest: collectManifest({
324
+ namespace: config.namespace,
325
+ contracts,
326
+ server,
327
+ client,
328
+ ...config.capabilities === void 0 ? {} : { capabilities: config.capabilities },
329
+ ...config.dependencies === void 0 ? {} : { dependencies: config.dependencies }
330
+ })
331
+ };
332
+ } catch (err) {
333
+ if (err instanceof ManifestError) return { ok: false, kind: "manifest", problems: err.problems };
334
+ throw err;
335
+ }
336
+ }
337
+ var log = (...args) => void process.stderr.write(args.map(String).join(" ") + "\n");
338
+ console.log = console.info = console.debug = console.warn = console.error = log;
339
+ var write = process.stdout.write.bind(process.stdout);
340
+ main().then((outcome) => write(JSON.stringify(outcome) + "\n", () => process.exit(0))).catch((err) => {
341
+ write(JSON.stringify({ ok: false, kind: "import", graph: "extract", message: err instanceof Error ? err.stack ?? err.message : String(err) }) + "\n", () => process.exit(0));
342
+ });