@appport/sdk 1.1.17 → 1.1.19

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 (479) hide show
  1. package/README.md +9 -86
  2. package/dist/index.d.ts +13 -18
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +13 -18
  5. package/dist/index.js.map +1 -1
  6. package/dist/node.d.ts +1 -1
  7. package/dist/node.js +1 -1
  8. package/package.json +22 -32
  9. package/LICENSE +0 -126
  10. package/dist/application-onboarding.d.ts +0 -52
  11. package/dist/application-onboarding.d.ts.map +0 -1
  12. package/dist/application-onboarding.js +0 -50
  13. package/dist/application-onboarding.js.map +0 -1
  14. package/dist/external-compatibility.d.ts +0 -142
  15. package/dist/external-compatibility.d.ts.map +0 -1
  16. package/dist/external-compatibility.js +0 -132
  17. package/dist/external-compatibility.js.map +0 -1
  18. package/dist/provider-lifecycle.d.ts +0 -247
  19. package/dist/provider-lifecycle.d.ts.map +0 -1
  20. package/dist/provider-lifecycle.js +0 -314
  21. package/dist/provider-lifecycle.js.map +0 -1
  22. package/dist/resolution-policy.d.ts +0 -81
  23. package/dist/resolution-policy.d.ts.map +0 -1
  24. package/dist/resolution-policy.js +0 -131
  25. package/dist/resolution-policy.js.map +0 -1
  26. package/vendor/@appport/authorization/README.md +0 -28
  27. package/vendor/@appport/authorization/dist/index.d.ts +0 -94
  28. package/vendor/@appport/authorization/dist/index.d.ts.map +0 -1
  29. package/vendor/@appport/authorization/dist/index.js +0 -131
  30. package/vendor/@appport/authorization/dist/index.js.map +0 -1
  31. package/vendor/@appport/authorization/package.json +0 -28
  32. package/vendor/@appport/client/README.md +0 -35
  33. package/vendor/@appport/client/dist/channel.d.ts +0 -14
  34. package/vendor/@appport/client/dist/channel.d.ts.map +0 -1
  35. package/vendor/@appport/client/dist/channel.js +0 -58
  36. package/vendor/@appport/client/dist/channel.js.map +0 -1
  37. package/vendor/@appport/client/dist/client.d.ts +0 -61
  38. package/vendor/@appport/client/dist/client.d.ts.map +0 -1
  39. package/vendor/@appport/client/dist/client.js +0 -214
  40. package/vendor/@appport/client/dist/client.js.map +0 -1
  41. package/vendor/@appport/client/dist/contract.d.ts +0 -55
  42. package/vendor/@appport/client/dist/contract.d.ts.map +0 -1
  43. package/vendor/@appport/client/dist/contract.js +0 -12
  44. package/vendor/@appport/client/dist/contract.js.map +0 -1
  45. package/vendor/@appport/client/dist/discovery.d.ts +0 -17
  46. package/vendor/@appport/client/dist/discovery.d.ts.map +0 -1
  47. package/vendor/@appport/client/dist/discovery.js +0 -56
  48. package/vendor/@appport/client/dist/discovery.js.map +0 -1
  49. package/vendor/@appport/client/dist/duplex.d.ts +0 -25
  50. package/vendor/@appport/client/dist/duplex.d.ts.map +0 -1
  51. package/vendor/@appport/client/dist/duplex.js +0 -194
  52. package/vendor/@appport/client/dist/duplex.js.map +0 -1
  53. package/vendor/@appport/client/dist/host.d.ts +0 -62
  54. package/vendor/@appport/client/dist/host.d.ts.map +0 -1
  55. package/vendor/@appport/client/dist/host.js +0 -139
  56. package/vendor/@appport/client/dist/host.js.map +0 -1
  57. package/vendor/@appport/client/dist/index.d.ts +0 -14
  58. package/vendor/@appport/client/dist/index.d.ts.map +0 -1
  59. package/vendor/@appport/client/dist/index.js +0 -14
  60. package/vendor/@appport/client/dist/index.js.map +0 -1
  61. package/vendor/@appport/client/dist/transport.d.ts +0 -42
  62. package/vendor/@appport/client/dist/transport.d.ts.map +0 -1
  63. package/vendor/@appport/client/dist/transport.js +0 -2
  64. package/vendor/@appport/client/dist/transport.js.map +0 -1
  65. package/vendor/@appport/client/package.json +0 -32
  66. package/vendor/@appport/core/README.md +0 -91
  67. package/vendor/@appport/core/dist/appboundry-capability-catalog.d.ts +0 -930
  68. package/vendor/@appport/core/dist/appboundry-capability-catalog.d.ts.map +0 -1
  69. package/vendor/@appport/core/dist/appboundry-capability-catalog.js +0 -352
  70. package/vendor/@appport/core/dist/appboundry-capability-catalog.js.map +0 -1
  71. package/vendor/@appport/core/dist/appboundry-composition.d.ts +0 -93
  72. package/vendor/@appport/core/dist/appboundry-composition.d.ts.map +0 -1
  73. package/vendor/@appport/core/dist/appboundry-composition.js +0 -184
  74. package/vendor/@appport/core/dist/appboundry-composition.js.map +0 -1
  75. package/vendor/@appport/core/dist/appboundry-contract.d.ts +0 -80
  76. package/vendor/@appport/core/dist/appboundry-contract.d.ts.map +0 -1
  77. package/vendor/@appport/core/dist/appboundry-contract.js +0 -160
  78. package/vendor/@appport/core/dist/appboundry-contract.js.map +0 -1
  79. package/vendor/@appport/core/dist/appboundry-diagnostics.d.ts +0 -107
  80. package/vendor/@appport/core/dist/appboundry-diagnostics.d.ts.map +0 -1
  81. package/vendor/@appport/core/dist/appboundry-diagnostics.js +0 -358
  82. package/vendor/@appport/core/dist/appboundry-diagnostics.js.map +0 -1
  83. package/vendor/@appport/core/dist/appboundry-discovery.d.ts +0 -110
  84. package/vendor/@appport/core/dist/appboundry-discovery.d.ts.map +0 -1
  85. package/vendor/@appport/core/dist/appboundry-discovery.js +0 -141
  86. package/vendor/@appport/core/dist/appboundry-discovery.js.map +0 -1
  87. package/vendor/@appport/core/dist/appboundry-entitlements.d.ts +0 -128
  88. package/vendor/@appport/core/dist/appboundry-entitlements.d.ts.map +0 -1
  89. package/vendor/@appport/core/dist/appboundry-entitlements.js +0 -312
  90. package/vendor/@appport/core/dist/appboundry-entitlements.js.map +0 -1
  91. package/vendor/@appport/core/dist/appboundry-execution.d.ts +0 -84
  92. package/vendor/@appport/core/dist/appboundry-execution.d.ts.map +0 -1
  93. package/vendor/@appport/core/dist/appboundry-execution.js +0 -150
  94. package/vendor/@appport/core/dist/appboundry-execution.js.map +0 -1
  95. package/vendor/@appport/core/dist/appboundry-exercise.d.ts +0 -152
  96. package/vendor/@appport/core/dist/appboundry-exercise.d.ts.map +0 -1
  97. package/vendor/@appport/core/dist/appboundry-exercise.js +0 -416
  98. package/vendor/@appport/core/dist/appboundry-exercise.js.map +0 -1
  99. package/vendor/@appport/core/dist/appboundry-materialization.d.ts +0 -222
  100. package/vendor/@appport/core/dist/appboundry-materialization.d.ts.map +0 -1
  101. package/vendor/@appport/core/dist/appboundry-materialization.js +0 -494
  102. package/vendor/@appport/core/dist/appboundry-materialization.js.map +0 -1
  103. package/vendor/@appport/core/dist/appboundry-migration.d.ts +0 -195
  104. package/vendor/@appport/core/dist/appboundry-migration.d.ts.map +0 -1
  105. package/vendor/@appport/core/dist/appboundry-migration.js +0 -227
  106. package/vendor/@appport/core/dist/appboundry-migration.js.map +0 -1
  107. package/vendor/@appport/core/dist/appboundry-onboarding.d.ts +0 -70
  108. package/vendor/@appport/core/dist/appboundry-onboarding.d.ts.map +0 -1
  109. package/vendor/@appport/core/dist/appboundry-onboarding.js +0 -232
  110. package/vendor/@appport/core/dist/appboundry-onboarding.js.map +0 -1
  111. package/vendor/@appport/core/dist/appboundry-operation-discovery.d.ts +0 -93
  112. package/vendor/@appport/core/dist/appboundry-operation-discovery.d.ts.map +0 -1
  113. package/vendor/@appport/core/dist/appboundry-operation-discovery.js +0 -89
  114. package/vendor/@appport/core/dist/appboundry-operation-discovery.js.map +0 -1
  115. package/vendor/@appport/core/dist/appboundry-resolution.d.ts +0 -160
  116. package/vendor/@appport/core/dist/appboundry-resolution.d.ts.map +0 -1
  117. package/vendor/@appport/core/dist/appboundry-resolution.js +0 -218
  118. package/vendor/@appport/core/dist/appboundry-resolution.js.map +0 -1
  119. package/vendor/@appport/core/dist/appboundry-surface.d.ts +0 -96
  120. package/vendor/@appport/core/dist/appboundry-surface.d.ts.map +0 -1
  121. package/vendor/@appport/core/dist/appboundry-surface.js +0 -223
  122. package/vendor/@appport/core/dist/appboundry-surface.js.map +0 -1
  123. package/vendor/@appport/core/dist/appboundry-usage.d.ts +0 -94
  124. package/vendor/@appport/core/dist/appboundry-usage.d.ts.map +0 -1
  125. package/vendor/@appport/core/dist/appboundry-usage.js +0 -80
  126. package/vendor/@appport/core/dist/appboundry-usage.js.map +0 -1
  127. package/vendor/@appport/core/dist/application-implementation.d.ts +0 -125
  128. package/vendor/@appport/core/dist/application-implementation.d.ts.map +0 -1
  129. package/vendor/@appport/core/dist/application-implementation.js +0 -220
  130. package/vendor/@appport/core/dist/application-implementation.js.map +0 -1
  131. package/vendor/@appport/core/dist/application-lifecycle.d.ts +0 -150
  132. package/vendor/@appport/core/dist/application-lifecycle.d.ts.map +0 -1
  133. package/vendor/@appport/core/dist/application-lifecycle.js +0 -70
  134. package/vendor/@appport/core/dist/application-lifecycle.js.map +0 -1
  135. package/vendor/@appport/core/dist/application-package.d.ts +0 -105
  136. package/vendor/@appport/core/dist/application-package.d.ts.map +0 -1
  137. package/vendor/@appport/core/dist/application-package.js +0 -349
  138. package/vendor/@appport/core/dist/application-package.js.map +0 -1
  139. package/vendor/@appport/core/dist/application-source.d.ts +0 -109
  140. package/vendor/@appport/core/dist/application-source.d.ts.map +0 -1
  141. package/vendor/@appport/core/dist/application-source.js +0 -186
  142. package/vendor/@appport/core/dist/application-source.js.map +0 -1
  143. package/vendor/@appport/core/dist/application.d.ts +0 -124
  144. package/vendor/@appport/core/dist/application.d.ts.map +0 -1
  145. package/vendor/@appport/core/dist/application.js +0 -518
  146. package/vendor/@appport/core/dist/application.js.map +0 -1
  147. package/vendor/@appport/core/dist/artifact.d.ts +0 -395
  148. package/vendor/@appport/core/dist/artifact.d.ts.map +0 -1
  149. package/vendor/@appport/core/dist/artifact.js +0 -392
  150. package/vendor/@appport/core/dist/artifact.js.map +0 -1
  151. package/vendor/@appport/core/dist/assembly.d.ts +0 -237
  152. package/vendor/@appport/core/dist/assembly.d.ts.map +0 -1
  153. package/vendor/@appport/core/dist/assembly.js +0 -458
  154. package/vendor/@appport/core/dist/assembly.js.map +0 -1
  155. package/vendor/@appport/core/dist/authority-attestation.d.ts +0 -34
  156. package/vendor/@appport/core/dist/authority-attestation.d.ts.map +0 -1
  157. package/vendor/@appport/core/dist/authority-attestation.js +0 -72
  158. package/vendor/@appport/core/dist/authority-attestation.js.map +0 -1
  159. package/vendor/@appport/core/dist/authorization-grant.d.ts +0 -107
  160. package/vendor/@appport/core/dist/authorization-grant.d.ts.map +0 -1
  161. package/vendor/@appport/core/dist/authorization-grant.js +0 -131
  162. package/vendor/@appport/core/dist/authorization-grant.js.map +0 -1
  163. package/vendor/@appport/core/dist/binding.d.ts +0 -294
  164. package/vendor/@appport/core/dist/binding.d.ts.map +0 -1
  165. package/vendor/@appport/core/dist/binding.js +0 -263
  166. package/vendor/@appport/core/dist/binding.js.map +0 -1
  167. package/vendor/@appport/core/dist/builtins.d.ts +0 -18
  168. package/vendor/@appport/core/dist/builtins.d.ts.map +0 -1
  169. package/vendor/@appport/core/dist/builtins.js +0 -38
  170. package/vendor/@appport/core/dist/builtins.js.map +0 -1
  171. package/vendor/@appport/core/dist/capability.d.ts +0 -94
  172. package/vendor/@appport/core/dist/capability.d.ts.map +0 -1
  173. package/vendor/@appport/core/dist/capability.js +0 -85
  174. package/vendor/@appport/core/dist/capability.js.map +0 -1
  175. package/vendor/@appport/core/dist/concurrency.d.ts +0 -16
  176. package/vendor/@appport/core/dist/concurrency.d.ts.map +0 -1
  177. package/vendor/@appport/core/dist/concurrency.js +0 -46
  178. package/vendor/@appport/core/dist/concurrency.js.map +0 -1
  179. package/vendor/@appport/core/dist/context.d.ts +0 -59
  180. package/vendor/@appport/core/dist/context.d.ts.map +0 -1
  181. package/vendor/@appport/core/dist/context.js +0 -14
  182. package/vendor/@appport/core/dist/context.js.map +0 -1
  183. package/vendor/@appport/core/dist/contract-artifact.d.ts +0 -15
  184. package/vendor/@appport/core/dist/contract-artifact.d.ts.map +0 -1
  185. package/vendor/@appport/core/dist/contract-artifact.js +0 -161
  186. package/vendor/@appport/core/dist/contract-artifact.js.map +0 -1
  187. package/vendor/@appport/core/dist/contract-attestation.d.ts +0 -68
  188. package/vendor/@appport/core/dist/contract-attestation.d.ts.map +0 -1
  189. package/vendor/@appport/core/dist/contract-attestation.js +0 -76
  190. package/vendor/@appport/core/dist/contract-attestation.js.map +0 -1
  191. package/vendor/@appport/core/dist/crash-injection.d.ts +0 -3
  192. package/vendor/@appport/core/dist/crash-injection.d.ts.map +0 -1
  193. package/vendor/@appport/core/dist/crash-injection.js +0 -8
  194. package/vendor/@appport/core/dist/crash-injection.js.map +0 -1
  195. package/vendor/@appport/core/dist/events.d.ts +0 -33
  196. package/vendor/@appport/core/dist/events.d.ts.map +0 -1
  197. package/vendor/@appport/core/dist/events.js +0 -79
  198. package/vendor/@appport/core/dist/events.js.map +0 -1
  199. package/vendor/@appport/core/dist/execution-barrier.d.ts +0 -13
  200. package/vendor/@appport/core/dist/execution-barrier.d.ts.map +0 -1
  201. package/vendor/@appport/core/dist/execution-barrier.js +0 -33
  202. package/vendor/@appport/core/dist/execution-barrier.js.map +0 -1
  203. package/vendor/@appport/core/dist/execution-ledger.d.ts +0 -81
  204. package/vendor/@appport/core/dist/execution-ledger.d.ts.map +0 -1
  205. package/vendor/@appport/core/dist/execution-ledger.js +0 -173
  206. package/vendor/@appport/core/dist/execution-ledger.js.map +0 -1
  207. package/vendor/@appport/core/dist/execution.d.ts +0 -387
  208. package/vendor/@appport/core/dist/execution.d.ts.map +0 -1
  209. package/vendor/@appport/core/dist/execution.js +0 -165
  210. package/vendor/@appport/core/dist/execution.js.map +0 -1
  211. package/vendor/@appport/core/dist/idempotency.d.ts +0 -36
  212. package/vendor/@appport/core/dist/idempotency.d.ts.map +0 -1
  213. package/vendor/@appport/core/dist/idempotency.js +0 -36
  214. package/vendor/@appport/core/dist/idempotency.js.map +0 -1
  215. package/vendor/@appport/core/dist/implementation.d.ts +0 -110
  216. package/vendor/@appport/core/dist/implementation.d.ts.map +0 -1
  217. package/vendor/@appport/core/dist/implementation.js +0 -65
  218. package/vendor/@appport/core/dist/implementation.js.map +0 -1
  219. package/vendor/@appport/core/dist/index.d.ts +0 -61
  220. package/vendor/@appport/core/dist/index.d.ts.map +0 -1
  221. package/vendor/@appport/core/dist/index.js +0 -60
  222. package/vendor/@appport/core/dist/index.js.map +0 -1
  223. package/vendor/@appport/core/dist/invocation.d.ts +0 -253
  224. package/vendor/@appport/core/dist/invocation.d.ts.map +0 -1
  225. package/vendor/@appport/core/dist/invocation.js +0 -258
  226. package/vendor/@appport/core/dist/invocation.js.map +0 -1
  227. package/vendor/@appport/core/dist/manifest.d.ts +0 -157
  228. package/vendor/@appport/core/dist/manifest.d.ts.map +0 -1
  229. package/vendor/@appport/core/dist/manifest.js +0 -255
  230. package/vendor/@appport/core/dist/manifest.js.map +0 -1
  231. package/vendor/@appport/core/dist/memory-application-data-store.d.ts +0 -19
  232. package/vendor/@appport/core/dist/memory-application-data-store.d.ts.map +0 -1
  233. package/vendor/@appport/core/dist/memory-application-data-store.js +0 -161
  234. package/vendor/@appport/core/dist/memory-application-data-store.js.map +0 -1
  235. package/vendor/@appport/core/dist/operations.d.ts +0 -61
  236. package/vendor/@appport/core/dist/operations.d.ts.map +0 -1
  237. package/vendor/@appport/core/dist/operations.js +0 -210
  238. package/vendor/@appport/core/dist/operations.js.map +0 -1
  239. package/vendor/@appport/core/dist/provider-contract.d.ts +0 -89
  240. package/vendor/@appport/core/dist/provider-contract.d.ts.map +0 -1
  241. package/vendor/@appport/core/dist/provider-contract.js +0 -40
  242. package/vendor/@appport/core/dist/provider-contract.js.map +0 -1
  243. package/vendor/@appport/core/dist/public.d.ts +0 -20
  244. package/vendor/@appport/core/dist/public.d.ts.map +0 -1
  245. package/vendor/@appport/core/dist/public.js +0 -19
  246. package/vendor/@appport/core/dist/public.js.map +0 -1
  247. package/vendor/@appport/core/dist/registration.d.ts +0 -165
  248. package/vendor/@appport/core/dist/registration.d.ts.map +0 -1
  249. package/vendor/@appport/core/dist/registration.js +0 -253
  250. package/vendor/@appport/core/dist/registration.js.map +0 -1
  251. package/vendor/@appport/core/dist/registry.d.ts +0 -30
  252. package/vendor/@appport/core/dist/registry.d.ts.map +0 -1
  253. package/vendor/@appport/core/dist/registry.js +0 -149
  254. package/vendor/@appport/core/dist/registry.js.map +0 -1
  255. package/vendor/@appport/core/dist/repository-connection.d.ts +0 -100
  256. package/vendor/@appport/core/dist/repository-connection.d.ts.map +0 -1
  257. package/vendor/@appport/core/dist/repository-connection.js +0 -57
  258. package/vendor/@appport/core/dist/repository-connection.js.map +0 -1
  259. package/vendor/@appport/core/dist/resolver.d.ts +0 -130
  260. package/vendor/@appport/core/dist/resolver.d.ts.map +0 -1
  261. package/vendor/@appport/core/dist/resolver.js +0 -252
  262. package/vendor/@appport/core/dist/resolver.js.map +0 -1
  263. package/vendor/@appport/core/dist/runtime-manifest.d.ts +0 -68
  264. package/vendor/@appport/core/dist/runtime-manifest.d.ts.map +0 -1
  265. package/vendor/@appport/core/dist/runtime-manifest.js +0 -84
  266. package/vendor/@appport/core/dist/runtime-manifest.js.map +0 -1
  267. package/vendor/@appport/core/dist/sanitize.d.ts +0 -14
  268. package/vendor/@appport/core/dist/sanitize.d.ts.map +0 -1
  269. package/vendor/@appport/core/dist/sanitize.js +0 -49
  270. package/vendor/@appport/core/dist/sanitize.js.map +0 -1
  271. package/vendor/@appport/core/dist/server-internal.d.ts +0 -5
  272. package/vendor/@appport/core/dist/server-internal.d.ts.map +0 -1
  273. package/vendor/@appport/core/dist/server-internal.js +0 -4
  274. package/vendor/@appport/core/dist/server-internal.js.map +0 -1
  275. package/vendor/@appport/core/dist/sessions.d.ts +0 -29
  276. package/vendor/@appport/core/dist/sessions.d.ts.map +0 -1
  277. package/vendor/@appport/core/dist/sessions.js +0 -39
  278. package/vendor/@appport/core/dist/sessions.js.map +0 -1
  279. package/vendor/@appport/core/dist/sha256.d.ts +0 -3
  280. package/vendor/@appport/core/dist/sha256.d.ts.map +0 -1
  281. package/vendor/@appport/core/dist/sha256.js +0 -46
  282. package/vendor/@appport/core/dist/sha256.js.map +0 -1
  283. package/vendor/@appport/core/dist/source-verification.d.ts +0 -53
  284. package/vendor/@appport/core/dist/source-verification.d.ts.map +0 -1
  285. package/vendor/@appport/core/dist/source-verification.js +0 -92
  286. package/vendor/@appport/core/dist/source-verification.js.map +0 -1
  287. package/vendor/@appport/core/dist/state-context.d.ts +0 -312
  288. package/vendor/@appport/core/dist/state-context.d.ts.map +0 -1
  289. package/vendor/@appport/core/dist/state-context.js +0 -100
  290. package/vendor/@appport/core/dist/state-context.js.map +0 -1
  291. package/vendor/@appport/core/dist/state.d.ts +0 -96
  292. package/vendor/@appport/core/dist/state.d.ts.map +0 -1
  293. package/vendor/@appport/core/dist/state.js +0 -89
  294. package/vendor/@appport/core/dist/state.js.map +0 -1
  295. package/vendor/@appport/core/dist/streams.d.ts +0 -38
  296. package/vendor/@appport/core/dist/streams.d.ts.map +0 -1
  297. package/vendor/@appport/core/dist/streams.js +0 -123
  298. package/vendor/@appport/core/dist/streams.js.map +0 -1
  299. package/vendor/@appport/core/dist/telemetry.d.ts +0 -42
  300. package/vendor/@appport/core/dist/telemetry.d.ts.map +0 -1
  301. package/vendor/@appport/core/dist/telemetry.js +0 -32
  302. package/vendor/@appport/core/dist/telemetry.js.map +0 -1
  303. package/vendor/@appport/core/dist/wasm-engine.d.ts +0 -24
  304. package/vendor/@appport/core/dist/wasm-engine.d.ts.map +0 -1
  305. package/vendor/@appport/core/dist/wasm-engine.js +0 -376
  306. package/vendor/@appport/core/dist/wasm-engine.js.map +0 -1
  307. package/vendor/@appport/core/package.json +0 -58
  308. package/vendor/@appport/mcp/README.md +0 -29
  309. package/vendor/@appport/mcp/dist/index.d.ts +0 -58
  310. package/vendor/@appport/mcp/dist/index.d.ts.map +0 -1
  311. package/vendor/@appport/mcp/dist/index.js +0 -69
  312. package/vendor/@appport/mcp/dist/index.js.map +0 -1
  313. package/vendor/@appport/mcp/package.json +0 -29
  314. package/vendor/@appport/mobile/README.md +0 -10
  315. package/vendor/@appport/mobile/dist/index.d.ts +0 -66
  316. package/vendor/@appport/mobile/dist/index.d.ts.map +0 -1
  317. package/vendor/@appport/mobile/dist/index.js +0 -182
  318. package/vendor/@appport/mobile/dist/index.js.map +0 -1
  319. package/vendor/@appport/mobile/package.json +0 -33
  320. package/vendor/@appport/protocol/README.md +0 -41
  321. package/vendor/@appport/protocol/dist/blob.d.ts +0 -46
  322. package/vendor/@appport/protocol/dist/blob.d.ts.map +0 -1
  323. package/vendor/@appport/protocol/dist/blob.js +0 -23
  324. package/vendor/@appport/protocol/dist/blob.js.map +0 -1
  325. package/vendor/@appport/protocol/dist/compatibility.d.ts +0 -25
  326. package/vendor/@appport/protocol/dist/compatibility.d.ts.map +0 -1
  327. package/vendor/@appport/protocol/dist/compatibility.js +0 -189
  328. package/vendor/@appport/protocol/dist/compatibility.js.map +0 -1
  329. package/vendor/@appport/protocol/dist/envelopes.d.ts +0 -175
  330. package/vendor/@appport/protocol/dist/envelopes.d.ts.map +0 -1
  331. package/vendor/@appport/protocol/dist/envelopes.js +0 -97
  332. package/vendor/@appport/protocol/dist/envelopes.js.map +0 -1
  333. package/vendor/@appport/protocol/dist/errors.d.ts +0 -74
  334. package/vendor/@appport/protocol/dist/errors.d.ts.map +0 -1
  335. package/vendor/@appport/protocol/dist/errors.js +0 -92
  336. package/vendor/@appport/protocol/dist/errors.js.map +0 -1
  337. package/vendor/@appport/protocol/dist/ids.d.ts +0 -12
  338. package/vendor/@appport/protocol/dist/ids.d.ts.map +0 -1
  339. package/vendor/@appport/protocol/dist/ids.js +0 -50
  340. package/vendor/@appport/protocol/dist/ids.js.map +0 -1
  341. package/vendor/@appport/protocol/dist/index.d.ts +0 -21
  342. package/vendor/@appport/protocol/dist/index.d.ts.map +0 -1
  343. package/vendor/@appport/protocol/dist/index.js +0 -21
  344. package/vendor/@appport/protocol/dist/index.js.map +0 -1
  345. package/vendor/@appport/protocol/dist/jsonschema.d.ts +0 -50
  346. package/vendor/@appport/protocol/dist/jsonschema.d.ts.map +0 -1
  347. package/vendor/@appport/protocol/dist/jsonschema.js +0 -6
  348. package/vendor/@appport/protocol/dist/jsonschema.js.map +0 -1
  349. package/vendor/@appport/protocol/dist/manifest.d.ts +0 -134
  350. package/vendor/@appport/protocol/dist/manifest.d.ts.map +0 -1
  351. package/vendor/@appport/protocol/dist/manifest.js +0 -20
  352. package/vendor/@appport/protocol/dist/manifest.js.map +0 -1
  353. package/vendor/@appport/protocol/dist/materialization.d.ts +0 -59
  354. package/vendor/@appport/protocol/dist/materialization.d.ts.map +0 -1
  355. package/vendor/@appport/protocol/dist/materialization.js +0 -2
  356. package/vendor/@appport/protocol/dist/materialization.js.map +0 -1
  357. package/vendor/@appport/protocol/dist/names.d.ts +0 -26
  358. package/vendor/@appport/protocol/dist/names.d.ts.map +0 -1
  359. package/vendor/@appport/protocol/dist/names.js +0 -85
  360. package/vendor/@appport/protocol/dist/names.js.map +0 -1
  361. package/vendor/@appport/protocol/dist/operations.d.ts +0 -34
  362. package/vendor/@appport/protocol/dist/operations.d.ts.map +0 -1
  363. package/vendor/@appport/protocol/dist/operations.js +0 -9
  364. package/vendor/@appport/protocol/dist/operations.js.map +0 -1
  365. package/vendor/@appport/protocol/dist/session.d.ts +0 -27
  366. package/vendor/@appport/protocol/dist/session.d.ts.map +0 -1
  367. package/vendor/@appport/protocol/dist/session.js +0 -7
  368. package/vendor/@appport/protocol/dist/session.js.map +0 -1
  369. package/vendor/@appport/protocol/dist/validate.d.ts +0 -37
  370. package/vendor/@appport/protocol/dist/validate.d.ts.map +0 -1
  371. package/vendor/@appport/protocol/dist/validate.js +0 -321
  372. package/vendor/@appport/protocol/dist/validate.js.map +0 -1
  373. package/vendor/@appport/protocol/dist/version.d.ts +0 -27
  374. package/vendor/@appport/protocol/dist/version.d.ts.map +0 -1
  375. package/vendor/@appport/protocol/dist/version.js +0 -26
  376. package/vendor/@appport/protocol/dist/version.js.map +0 -1
  377. package/vendor/@appport/protocol/package.json +0 -25
  378. package/vendor/@appport/schema/README.md +0 -32
  379. package/vendor/@appport/schema/dist/builder.d.ts +0 -85
  380. package/vendor/@appport/schema/dist/builder.d.ts.map +0 -1
  381. package/vendor/@appport/schema/dist/builder.js +0 -278
  382. package/vendor/@appport/schema/dist/builder.js.map +0 -1
  383. package/vendor/@appport/schema/dist/from-json-schema.d.ts +0 -12
  384. package/vendor/@appport/schema/dist/from-json-schema.d.ts.map +0 -1
  385. package/vendor/@appport/schema/dist/from-json-schema.js +0 -186
  386. package/vendor/@appport/schema/dist/from-json-schema.js.map +0 -1
  387. package/vendor/@appport/schema/dist/index.d.ts +0 -23
  388. package/vendor/@appport/schema/dist/index.d.ts.map +0 -1
  389. package/vendor/@appport/schema/dist/index.js +0 -22
  390. package/vendor/@appport/schema/dist/index.js.map +0 -1
  391. package/vendor/@appport/schema/dist/standard.d.ts +0 -46
  392. package/vendor/@appport/schema/dist/standard.d.ts.map +0 -1
  393. package/vendor/@appport/schema/dist/standard.js +0 -42
  394. package/vendor/@appport/schema/dist/standard.js.map +0 -1
  395. package/vendor/@appport/schema/dist/types.d.ts +0 -40
  396. package/vendor/@appport/schema/dist/types.d.ts.map +0 -1
  397. package/vendor/@appport/schema/dist/types.js +0 -19
  398. package/vendor/@appport/schema/dist/types.js.map +0 -1
  399. package/vendor/@appport/schema/package.json +0 -28
  400. package/vendor/@appport/server/README.md +0 -39
  401. package/vendor/@appport/server/dist/connection.d.ts +0 -45
  402. package/vendor/@appport/server/dist/connection.d.ts.map +0 -1
  403. package/vendor/@appport/server/dist/connection.js +0 -217
  404. package/vendor/@appport/server/dist/connection.js.map +0 -1
  405. package/vendor/@appport/server/dist/fetch.d.ts +0 -10
  406. package/vendor/@appport/server/dist/fetch.d.ts.map +0 -1
  407. package/vendor/@appport/server/dist/fetch.js +0 -50
  408. package/vendor/@appport/server/dist/fetch.js.map +0 -1
  409. package/vendor/@appport/server/dist/http.d.ts +0 -80
  410. package/vendor/@appport/server/dist/http.d.ts.map +0 -1
  411. package/vendor/@appport/server/dist/http.js +0 -307
  412. package/vendor/@appport/server/dist/http.js.map +0 -1
  413. package/vendor/@appport/server/dist/index.d.ts +0 -11
  414. package/vendor/@appport/server/dist/index.d.ts.map +0 -1
  415. package/vendor/@appport/server/dist/index.js +0 -11
  416. package/vendor/@appport/server/dist/index.js.map +0 -1
  417. package/vendor/@appport/server/dist/node-entry.d.ts +0 -4
  418. package/vendor/@appport/server/dist/node-entry.d.ts.map +0 -1
  419. package/vendor/@appport/server/dist/node-entry.js +0 -4
  420. package/vendor/@appport/server/dist/node-entry.js.map +0 -1
  421. package/vendor/@appport/server/dist/node.d.ts +0 -45
  422. package/vendor/@appport/server/dist/node.d.ts.map +0 -1
  423. package/vendor/@appport/server/dist/node.js +0 -190
  424. package/vendor/@appport/server/dist/node.js.map +0 -1
  425. package/vendor/@appport/server/dist/server.d.ts +0 -83
  426. package/vendor/@appport/server/dist/server.d.ts.map +0 -1
  427. package/vendor/@appport/server/dist/server.js +0 -114
  428. package/vendor/@appport/server/dist/server.js.map +0 -1
  429. package/vendor/@appport/server/dist/websocket.d.ts +0 -25
  430. package/vendor/@appport/server/dist/websocket.d.ts.map +0 -1
  431. package/vendor/@appport/server/dist/websocket.js +0 -221
  432. package/vendor/@appport/server/dist/websocket.js.map +0 -1
  433. package/vendor/@appport/server/package.json +0 -34
  434. package/vendor/@appport/transport-electron/README.md +0 -56
  435. package/vendor/@appport/transport-electron/dist/index.d.ts +0 -11
  436. package/vendor/@appport/transport-electron/dist/index.d.ts.map +0 -1
  437. package/vendor/@appport/transport-electron/dist/index.js +0 -11
  438. package/vendor/@appport/transport-electron/dist/index.js.map +0 -1
  439. package/vendor/@appport/transport-electron/dist/main.d.ts +0 -31
  440. package/vendor/@appport/transport-electron/dist/main.d.ts.map +0 -1
  441. package/vendor/@appport/transport-electron/dist/main.js +0 -61
  442. package/vendor/@appport/transport-electron/dist/main.js.map +0 -1
  443. package/vendor/@appport/transport-electron/dist/preload.d.ts +0 -22
  444. package/vendor/@appport/transport-electron/dist/preload.d.ts.map +0 -1
  445. package/vendor/@appport/transport-electron/dist/preload.js +0 -29
  446. package/vendor/@appport/transport-electron/dist/preload.js.map +0 -1
  447. package/vendor/@appport/transport-electron/dist/renderer.d.ts +0 -16
  448. package/vendor/@appport/transport-electron/dist/renderer.d.ts.map +0 -1
  449. package/vendor/@appport/transport-electron/dist/renderer.js +0 -36
  450. package/vendor/@appport/transport-electron/dist/renderer.js.map +0 -1
  451. package/vendor/@appport/transport-electron/dist/types.d.ts +0 -49
  452. package/vendor/@appport/transport-electron/dist/types.d.ts.map +0 -1
  453. package/vendor/@appport/transport-electron/dist/types.js +0 -5
  454. package/vendor/@appport/transport-electron/dist/types.js.map +0 -1
  455. package/vendor/@appport/transport-electron/package.json +0 -46
  456. package/vendor/@appport/transport-http/README.md +0 -24
  457. package/vendor/@appport/transport-http/dist/index.d.ts +0 -18
  458. package/vendor/@appport/transport-http/dist/index.d.ts.map +0 -1
  459. package/vendor/@appport/transport-http/dist/index.js +0 -223
  460. package/vendor/@appport/transport-http/dist/index.js.map +0 -1
  461. package/vendor/@appport/transport-http/package.json +0 -29
  462. package/vendor/@appport/transport-inprocess/README.md +0 -24
  463. package/vendor/@appport/transport-inprocess/dist/index.d.ts +0 -16
  464. package/vendor/@appport/transport-inprocess/dist/index.d.ts.map +0 -1
  465. package/vendor/@appport/transport-inprocess/dist/index.js +0 -30
  466. package/vendor/@appport/transport-inprocess/dist/index.js.map +0 -1
  467. package/vendor/@appport/transport-inprocess/package.json +0 -30
  468. package/vendor/@appport/transport-tauri/README.md +0 -45
  469. package/vendor/@appport/transport-tauri/dist/index.d.ts +0 -23
  470. package/vendor/@appport/transport-tauri/dist/index.d.ts.map +0 -1
  471. package/vendor/@appport/transport-tauri/dist/index.js +0 -44
  472. package/vendor/@appport/transport-tauri/dist/index.js.map +0 -1
  473. package/vendor/@appport/transport-tauri/package.json +0 -29
  474. package/vendor/@appport/transport-websocket/README.md +0 -22
  475. package/vendor/@appport/transport-websocket/dist/index.d.ts +0 -26
  476. package/vendor/@appport/transport-websocket/dist/index.d.ts.map +0 -1
  477. package/vendor/@appport/transport-websocket/dist/index.js +0 -72
  478. package/vendor/@appport/transport-websocket/dist/index.js.map +0 -1
  479. package/vendor/@appport/transport-websocket/package.json +0 -29
@@ -1,312 +0,0 @@
1
- /**
2
- * Application State Context & Transaction (PR27)
3
- *
4
- * Establishes the invariant:
5
- * WASM execution is ephemeral; application state is durable.
6
- *
7
- * The ApplicationStateContext is the contract available to one invocation.
8
- * It provides typed state access with isolation, authorization, and transaction semantics.
9
- *
10
- * State is scoped to:
11
- * - Application identity (owns the state)
12
- * - Invocation identity (unique per execution)
13
- * - Transaction identity (unique per invocation)
14
- *
15
- * State operations:
16
- * - get(key): Read value, observing transaction writes
17
- * - set(key, value): Write value, isolated until commit
18
- * - delete(key): Remove value, isolated until commit
19
- * - query(pattern): Search state by key pattern
20
- *
21
- * Transaction lifecycle:
22
- * - OPEN: Accepts reads and writes
23
- * - COMMITTED: Durable, no mutations allowed
24
- * - ABORTED: Discarded, no mutations allowed
25
- */
26
- /**
27
- * Execution-facing state context for one invocation.
28
- *
29
- * Represents the contract between the host and guest for accessing
30
- * application durable state within a transactional boundary.
31
- *
32
- * The context is scoped to exactly one invocation and its transaction.
33
- */
34
- export interface ApplicationStateContext {
35
- /**
36
- * Unique identifier for this state context.
37
- * Matches the invocation's transaction ID.
38
- */
39
- readonly transactionId: string;
40
- /**
41
- * The application that owns this state.
42
- */
43
- readonly applicationId: string;
44
- /**
45
- * The invocation accessing this state.
46
- */
47
- readonly invocationId: string;
48
- /**
49
- * Read a state value by key.
50
- *
51
- * Reads observe the transaction's current view:
52
- * - Values written in this transaction are visible
53
- * - Values from prior committed transactions are visible
54
- * - Aborted transactions' writes are never visible
55
- *
56
- * @param key The state key to read
57
- * @returns The state value, or undefined if not found
58
- * @throws StateOperationError if authorization denies read
59
- * @throws TransactionStateError if transaction is not OPEN
60
- */
61
- get(key: string): Promise<unknown>;
62
- /**
63
- * Write a state value by key.
64
- *
65
- * Writes are isolated to this transaction:
66
- * - Visible to subsequent reads in this transaction
67
- * - Not visible to other concurrent transactions until this commits
68
- * - Discarded if this transaction aborts
69
- *
70
- * @param key The state key to write
71
- * @param value The value to write (serializable)
72
- * @throws StateOperationError if authorization denies write
73
- * @throws TransactionStateError if transaction is not OPEN
74
- * @throws InvalidValueError if value is not serializable
75
- */
76
- set(key: string, value: unknown): Promise<void>;
77
- /**
78
- * Delete a state value by key.
79
- *
80
- * Deletion is isolated to this transaction:
81
- * - Subsequent reads in this transaction won't find the key
82
- * - Not visible to other transactions until this commits
83
- * - Discarded if this transaction aborts
84
- *
85
- * @param key The state key to delete
86
- * @throws StateOperationError if authorization denies delete
87
- * @throws TransactionStateError if transaction is not OPEN
88
- */
89
- delete(key: string): Promise<void>;
90
- /**
91
- * Query state entries by key pattern.
92
- *
93
- * Returns entries matching a key prefix or pattern,
94
- * observing the transaction's current writes.
95
- *
96
- * @param pattern Key prefix or query pattern
97
- * @param limit Optional result limit (default 100, max 1000)
98
- * @returns Array of matching entries [{ key, value }, ...]
99
- * @throws StateOperationError if authorization denies read
100
- * @throws TransactionStateError if transaction is not OPEN
101
- */
102
- query(pattern: string, limit?: number): Promise<readonly {
103
- key: string;
104
- value: unknown;
105
- }[]>;
106
- }
107
- /**
108
- * Application state transaction lifecycle.
109
- *
110
- * Explicit state machine:
111
- * OPEN → COMMITTED
112
- * → ABORTED
113
- *
114
- * Invariants:
115
- * - Transition to COMMITTED or ABORTED is explicit
116
- * - No implicit auto-commit
117
- * - Committed transactions cannot be mutated
118
- * - Aborted transactions cannot be mutated
119
- * - Both commit and abort are idempotent
120
- * - Transaction identity is unique per invocation
121
- */
122
- export declare enum ApplicationStateTransactionState {
123
- /**
124
- * Transaction is open and accepting operations.
125
- * Reads and writes are allowed.
126
- */
127
- OPEN = "OPEN",
128
- /**
129
- * Transaction has been committed durably.
130
- * All writes are now visible to subsequent transactions.
131
- * No further mutations are allowed.
132
- */
133
- COMMITTED = "COMMITTED",
134
- /**
135
- * Transaction has been aborted.
136
- * All writes have been discarded.
137
- * No further mutations are allowed.
138
- */
139
- ABORTED = "ABORTED"
140
- }
141
- /**
142
- * Application state transaction.
143
- *
144
- * Represents an atomic unit of state mutations scoped to one invocation.
145
- *
146
- * The transaction:
147
- * - Starts in OPEN state
148
- * - Accepts reads and writes in OPEN state
149
- * - Transitions to COMMITTED or ABORTED explicitly
150
- * - Never reverts once committed or aborted
151
- * - Is idempotent (commit/abort can be called multiple times safely)
152
- *
153
- * CRITICAL: There is no auto-commit. The host is responsible for
154
- * explicit commit or abort based on execution outcome.
155
- */
156
- export interface ApplicationStateTransaction {
157
- /**
158
- * Unique transaction identifier.
159
- * Scoped to one invocation.
160
- */
161
- readonly transactionId: string;
162
- /**
163
- * Current transaction state.
164
- */
165
- readonly state: ApplicationStateTransactionState;
166
- /**
167
- * The application ID this transaction belongs to.
168
- */
169
- readonly applicationId: string;
170
- /**
171
- * The invocation ID this transaction serves.
172
- */
173
- readonly invocationId: string;
174
- /**
175
- * Commit this transaction durably.
176
- *
177
- * Transitions from OPEN to COMMITTED.
178
- * All writes become visible to subsequent transactions.
179
- *
180
- * Effects:
181
- * - OPEN state: transition to COMMITTED, persist writes
182
- * - COMMITTED state: idempotent, no-op
183
- * - ABORTED state: error, cannot commit after abort
184
- *
185
- * @returns Promise that resolves when commit is durable
186
- * @throws TransactionStateError if already ABORTED
187
- * @throws CommitFailureError if persistence fails
188
- */
189
- commit(): Promise<void>;
190
- /**
191
- * Abort this transaction.
192
- *
193
- * Transitions from OPEN to ABORTED.
194
- * All writes are discarded and never visible to other transactions.
195
- *
196
- * Effects:
197
- * - OPEN state: transition to ABORTED, discard writes
198
- * - ABORTED state: idempotent, no-op
199
- * - COMMITTED state: error, cannot abort after commit
200
- *
201
- * @returns Promise that resolves when abort is complete
202
- * @throws TransactionStateError if already COMMITTED
203
- */
204
- abort(): Promise<void>;
205
- }
206
- /**
207
- * State operation error: operation rejected by authorization or state.
208
- */
209
- export declare class StateOperationError extends Error {
210
- readonly message: string;
211
- readonly code: "unauthorized" | "not_found" | "already_exists" | "invalid_key" | "other";
212
- constructor(message: string, code?: "unauthorized" | "not_found" | "already_exists" | "invalid_key" | "other");
213
- }
214
- /**
215
- * Transaction state error: operation attempted in wrong transaction state.
216
- */
217
- export declare class TransactionStateError extends Error {
218
- readonly currentState: ApplicationStateTransactionState;
219
- readonly attemptedOperation: string;
220
- constructor(currentState: ApplicationStateTransactionState, attemptedOperation: string);
221
- }
222
- /**
223
- * Commit failure error: transaction commit failed.
224
- */
225
- export declare class CommitFailureError extends Error {
226
- readonly transactionId: string;
227
- readonly message: string;
228
- constructor(transactionId: string, message: string);
229
- }
230
- /**
231
- * State capability authorization.
232
- *
233
- * Defines the state operations an application is authorized to perform.
234
- * Authorization is checked at the host boundary before any FeltDB operation.
235
- *
236
- * The absence of an authorization grants deny-by-default.
237
- */
238
- export interface StateCapabilityAuthorization {
239
- /**
240
- * Application can read state.
241
- * Allows: get(), query()
242
- */
243
- readonly read?: boolean;
244
- /**
245
- * Application can write state.
246
- * Allows: set()
247
- */
248
- readonly write?: boolean;
249
- /**
250
- * Application can delete state.
251
- * Allows: delete()
252
- */
253
- readonly delete?: boolean;
254
- /**
255
- * Application can query state.
256
- * Allows: query()
257
- */
258
- readonly query?: boolean;
259
- }
260
- /**
261
- * Application state store: abstracts the durable state implementation.
262
- *
263
- * Stores application data (key-value pairs) that belong to applications,
264
- * separate from ApplicationState (which stores app metadata/registration).
265
- *
266
- * The store:
267
- * - Creates transactions scoped to invocations
268
- * - Persists state durably
269
- * - Enforces isolation between transactions
270
- * - Manages transaction lifecycle
271
- *
272
- * Implementation examples:
273
- * - FeltDbApplicationDataStore (real FeltDB)
274
- * - MemoryApplicationDataStore (for testing)
275
- *
276
- * Do NOT implement in-memory fakes in production paths.
277
- */
278
- export interface ApplicationDataStore {
279
- /**
280
- * Create a new transaction for an invocation.
281
- *
282
- * @param options Transaction creation options
283
- * @returns A new OPEN transaction
284
- */
285
- createTransaction(options: CreateTransactionOptions): Promise<ApplicationStateTransaction>;
286
- /**
287
- * Get an existing transaction by ID.
288
- *
289
- * @param transactionId The transaction to retrieve
290
- * @returns The transaction, or undefined if not found
291
- */
292
- getTransaction(transactionId: string): Promise<ApplicationStateTransaction | undefined>;
293
- }
294
- /**
295
- * Options for creating a new state transaction.
296
- */
297
- export interface CreateTransactionOptions {
298
- /**
299
- * The application owning this state.
300
- */
301
- readonly applicationId: string;
302
- /**
303
- * The invocation using this transaction.
304
- */
305
- readonly invocationId: string;
306
- /**
307
- * State capability authorization for this invocation.
308
- * If undefined, all operations are denied.
309
- */
310
- readonly authorization?: StateCapabilityAuthorization;
311
- }
312
- //# sourceMappingURL=state-context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state-context.d.ts","sourceRoot":"","sources":["../src/state-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH;;;;;;;GAOG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAE9B;;;;;;;;;;;;OAYG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEnC;;;;;;;;;;;;;OAaG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhD;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnC;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC,CAAC;CAC7F;AAED;;;;;;;;;;;;;;GAcG;AACH,oBAAY,gCAAgC;IAC1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,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAE1B;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;;OAKG;IACH,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAE3F;;;;;OAKG;IACH,cAAc,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,GAAG,SAAS,CAAC,CAAC;CACzF;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAE9B;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,4BAA4B,CAAC;CACvD"}
@@ -1,100 +0,0 @@
1
- /**
2
- * Application State Context & Transaction (PR27)
3
- *
4
- * Establishes the invariant:
5
- * WASM execution is ephemeral; application state is durable.
6
- *
7
- * The ApplicationStateContext is the contract available to one invocation.
8
- * It provides typed state access with isolation, authorization, and transaction semantics.
9
- *
10
- * State is scoped to:
11
- * - Application identity (owns the state)
12
- * - Invocation identity (unique per execution)
13
- * - Transaction identity (unique per invocation)
14
- *
15
- * State operations:
16
- * - get(key): Read value, observing transaction writes
17
- * - set(key, value): Write value, isolated until commit
18
- * - delete(key): Remove value, isolated until commit
19
- * - query(pattern): Search state by key pattern
20
- *
21
- * Transaction lifecycle:
22
- * - OPEN: Accepts reads and writes
23
- * - COMMITTED: Durable, no mutations allowed
24
- * - ABORTED: Discarded, no mutations allowed
25
- */
26
- /**
27
- * Application state transaction lifecycle.
28
- *
29
- * Explicit state machine:
30
- * OPEN → COMMITTED
31
- * → ABORTED
32
- *
33
- * Invariants:
34
- * - Transition to COMMITTED or ABORTED is explicit
35
- * - No implicit auto-commit
36
- * - Committed transactions cannot be mutated
37
- * - Aborted transactions cannot be mutated
38
- * - Both commit and abort are idempotent
39
- * - Transaction identity is unique per invocation
40
- */
41
- export var ApplicationStateTransactionState;
42
- (function (ApplicationStateTransactionState) {
43
- /**
44
- * Transaction is open and accepting operations.
45
- * Reads and writes are allowed.
46
- */
47
- ApplicationStateTransactionState["OPEN"] = "OPEN";
48
- /**
49
- * Transaction has been committed durably.
50
- * All writes are now visible to subsequent transactions.
51
- * No further mutations are allowed.
52
- */
53
- ApplicationStateTransactionState["COMMITTED"] = "COMMITTED";
54
- /**
55
- * Transaction has been aborted.
56
- * All writes have been discarded.
57
- * No further mutations are allowed.
58
- */
59
- ApplicationStateTransactionState["ABORTED"] = "ABORTED";
60
- })(ApplicationStateTransactionState || (ApplicationStateTransactionState = {}));
61
- /**
62
- * State operation error: operation rejected by authorization or state.
63
- */
64
- export class StateOperationError extends Error {
65
- message;
66
- code;
67
- constructor(message, code = "other") {
68
- super(`State operation failed: ${message}`);
69
- this.message = message;
70
- this.code = code;
71
- this.name = "StateOperationError";
72
- }
73
- }
74
- /**
75
- * Transaction state error: operation attempted in wrong transaction state.
76
- */
77
- export class TransactionStateError extends Error {
78
- currentState;
79
- attemptedOperation;
80
- constructor(currentState, attemptedOperation) {
81
- super(`Transaction state error: Cannot ${attemptedOperation} in ${currentState} state`);
82
- this.currentState = currentState;
83
- this.attemptedOperation = attemptedOperation;
84
- this.name = "TransactionStateError";
85
- }
86
- }
87
- /**
88
- * Commit failure error: transaction commit failed.
89
- */
90
- export class CommitFailureError extends Error {
91
- transactionId;
92
- message;
93
- constructor(transactionId, message) {
94
- super(`Commit failed for transaction ${transactionId}: ${message}`);
95
- this.transactionId = transactionId;
96
- this.message = message;
97
- this.name = "CommitFailureError";
98
- }
99
- }
100
- //# sourceMappingURL=state-context.js.map
@@ -1 +0,0 @@
1
- {"version":3,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- * Application State & Registration (PR20)
3
- *
4
- * Durable application state representation and registration lifecycle.
5
- *
6
- * An ApplicationState represents a registered, tracked application:
7
- * - Identity (id, name, version)
8
- * - Manifest (canonical contract)
9
- * - Fingerprint (contract hash)
10
- * - Verification state
11
- * - Lifecycle state
12
- * - Revision tracking
13
- * - History/timestamps
14
- *
15
- * CRITICAL INVARIANT: ApplicationState contains NO implementation details.
16
- * No functions, handlers, closures, runtime objects, or credentials.
17
- */
18
- import type { ApplicationManifest, ApplicationIdentity } from "./manifest.js";
19
- import type { VerificationResult } from "./assembly.js";
20
- /**
21
- * Application lifecycle states.
22
- *
23
- * - "registered": Application has been successfully registered
24
- * - "active": Application is operational and available
25
- * - "retired": Application has been deprecated/removed
26
- */
27
- export type ApplicationLifecycleState = "registered" | "active" | "retired";
28
- /**
29
- * Durable application state: captures everything AppBoundry knows about
30
- * an application without requiring its implementation to be present.
31
- *
32
- * This is suitable for storage, discovery, and transmission without
33
- * exposing implementation details.
34
- */
35
- export interface ApplicationState {
36
- /** Unique identity for this continuous registration incarnation. */
37
- readonly registrationId: string;
38
- /** Unique application identifier. */
39
- readonly id: string;
40
- /** Human-readable application name. */
41
- readonly name: string;
42
- /** Semantic version. */
43
- readonly version: string;
44
- /** Canonical application manifest (the application's contract). */
45
- readonly manifest: ApplicationManifest;
46
- /** SHA256 fingerprint of canonical manifest. */
47
- readonly fingerprint: string;
48
- /** Verification result at time of registration. */
49
- readonly verification: {
50
- readonly ready: boolean;
51
- readonly errorCount: number;
52
- readonly warningCount: number;
53
- };
54
- /** Application lifecycle state. */
55
- readonly status: ApplicationLifecycleState;
56
- /** Revision number (incremented on each update). */
57
- readonly revision: number;
58
- /** ISO 8601 timestamp when first registered. */
59
- readonly createdAt: string;
60
- /** ISO 8601 timestamp of last update. */
61
- readonly updatedAt: string;
62
- }
63
- /**
64
- * Options for registering a verified application.
65
- */
66
- export interface RegisterApplicationOptions {
67
- /** The verified application identity. */
68
- identity: ApplicationIdentity;
69
- /** The canonical manifest (PR19). */
70
- manifest: ApplicationManifest;
71
- /** The fingerprint hash (PR19). */
72
- fingerprint: string;
73
- /** Verification result (PR18). */
74
- verification: VerificationResult;
75
- /** Optional initial lifecycle state. Defaults to "registered". */
76
- status?: ApplicationLifecycleState;
77
- }
78
- /**
79
- * Create an ApplicationState from registration options.
80
- * Used internally during registration process.
81
- */
82
- export declare function createApplicationState(options: RegisterApplicationOptions, revision?: number): ApplicationState;
83
- /**
84
- * Update application state with new manifest and verification.
85
- * Used for revision updates.
86
- */
87
- export declare function updateApplicationState(existing: ApplicationState, options: Omit<RegisterApplicationOptions, "identity">): ApplicationState;
88
- /**
89
- * Lifecycle state transition: mark application as active.
90
- */
91
- export declare function markApplicationActive(state: ApplicationState): ApplicationState;
92
- /**
93
- * Lifecycle state transition: retire application.
94
- */
95
- export declare function retireApplication(state: ApplicationState): ApplicationState;
96
- //# sourceMappingURL=state.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../src/state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD;;;;;;GAMG;AACH,MAAM,MAAM,yBAAyB,GAAG,YAAY,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE5E;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,oEAAoE;IACpE,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAEhC,qCAAqC;IACrC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAEpB,uCAAuC;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,wBAAwB;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,mEAAmE;IACnE,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,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
- /**
2
- * Application State & Registration (PR20)
3
- *
4
- * Durable application state representation and registration lifecycle.
5
- *
6
- * An ApplicationState represents a registered, tracked application:
7
- * - Identity (id, name, version)
8
- * - Manifest (canonical contract)
9
- * - Fingerprint (contract hash)
10
- * - Verification state
11
- * - Lifecycle state
12
- * - Revision tracking
13
- * - History/timestamps
14
- *
15
- * CRITICAL INVARIANT: ApplicationState contains NO implementation details.
16
- * No functions, handlers, closures, runtime objects, or credentials.
17
- */
18
- import { randomUUID } from "node:crypto";
19
- /**
20
- * Create an ApplicationState from registration options.
21
- * Used internally during registration process.
22
- */
23
- export function createApplicationState(options, revision = 1) {
24
- const now = new Date().toISOString();
25
- return {
26
- registrationId: `reg_${randomUUID()}`,
27
- id: options.identity.id,
28
- name: options.identity.name,
29
- version: options.identity.version,
30
- manifest: options.manifest,
31
- fingerprint: options.fingerprint,
32
- verification: {
33
- ready: options.verification.ready,
34
- errorCount: options.verification.errors.length,
35
- warningCount: options.verification.warnings.length
36
- },
37
- status: options.status ?? "registered",
38
- revision,
39
- createdAt: now,
40
- updatedAt: now
41
- };
42
- }
43
- /**
44
- * Update application state with new manifest and verification.
45
- * Used for revision updates.
46
- */
47
- export function updateApplicationState(existing, options) {
48
- const now = new Date().toISOString();
49
- return {
50
- ...existing,
51
- manifest: options.manifest,
52
- fingerprint: options.fingerprint,
53
- verification: {
54
- ready: options.verification.ready,
55
- errorCount: options.verification.errors.length,
56
- warningCount: options.verification.warnings.length
57
- },
58
- status: options.status ?? existing.status,
59
- revision: existing.revision + 1,
60
- updatedAt: now
61
- };
62
- }
63
- /**
64
- * Lifecycle state transition: mark application as active.
65
- */
66
- export function markApplicationActive(state) {
67
- if (state.status === "active")
68
- return state;
69
- return {
70
- ...state,
71
- status: "active",
72
- revision: state.revision + 1,
73
- updatedAt: new Date().toISOString()
74
- };
75
- }
76
- /**
77
- * Lifecycle state transition: retire application.
78
- */
79
- export function retireApplication(state) {
80
- if (state.status === "retired")
81
- return state;
82
- return {
83
- ...state,
84
- status: "retired",
85
- revision: state.revision + 1,
86
- updatedAt: new Date().toISOString()
87
- };
88
- }
89
- //# sourceMappingURL=state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../src/state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA+EzC;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CACpC,OAAmC,EACnC,WAAmB,CAAC;IAEpB,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAErC,OAAO;QACL,cAAc,EAAE,OAAO,UAAU,EAAE,EAAE;QACrC,EAAE,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE;QACvB,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;QAC3B,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO;QACjC,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,YAAY,EAAE;YACZ,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK;YACjC,UAAU,EAAE,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM;YAC9C,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM;SACnD;QACD,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,YAAY;QACtC,QAAQ;QACR,SAAS,EAAE,GAAG;QACd,SAAS,EAAE,GAAG;KACf,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CACpC,QAA0B,EAC1B,OAAqD;IAErD,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAErC,OAAO;QACL,GAAG,QAAQ;QACX,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,YAAY,EAAE;YACZ,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK;YACjC,UAAU,EAAE,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM;YAC9C,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM;SACnD;QACD,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,QAAQ,CAAC,MAAM;QACzC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,GAAG,CAAC;QAC/B,SAAS,EAAE,GAAG;KACf,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,qBAAqB,CAAC,KAAuB;IAC3D,IAAI,KAAK,CAAC,MAAM,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5C,OAAO;QACL,GAAG,KAAK;QACR,MAAM,EAAE,QAAQ;QAChB,QAAQ,EAAE,KAAK,CAAC,QAAQ,GAAG,CAAC;QAC5B,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KACpC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAuB;IACvD,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC7C,OAAO;QACL,GAAG,KAAK;QACR,MAAM,EAAE,SAAS;QACjB,QAAQ,EAAE,KAAK,CAAC,QAAQ,GAAG,CAAC;QAC5B,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KACpC,CAAC;AACJ,CAAC"}
@@ -1,38 +0,0 @@
1
- import { AppPortError } from "../../protocol/dist/index.d.ts";
2
- /**
3
- * A bounded async channel: the plumbing behind capability streams (§20).
4
- *
5
- * `push` resolves once the value is buffered below the high-water mark, which
6
- * gives handlers natural backpressure without exposing transport details.
7
- */
8
- export declare class AsyncChannel<T> implements AsyncIterable<T> {
9
- #private;
10
- constructor(highWaterMark?: number);
11
- get closed(): boolean;
12
- get size(): number;
13
- push(value: T): Promise<void>;
14
- end(): void;
15
- fail(reason: unknown): void;
16
- [Symbol.asyncIterator](): AsyncIterator<T>;
17
- }
18
- /**
19
- * The stream handle exposed to capability handlers through
20
- * `context.createStream()` (§10). It is itself an async iterable, so a handler
21
- * can create it, hand the writer half to some producer and return it.
22
- */
23
- export interface StreamContext<Chunk = unknown> extends AsyncIterable<Chunk> {
24
- /** Emits one chunk. Resolves when the consumer has room for more. */
25
- write(chunk: Chunk): Promise<void>;
26
- /** Completes the stream normally. */
27
- end(): void;
28
- /** Terminates the stream with an error. */
29
- fail(error: unknown): void;
30
- /** Aborted when the client cancels or the connection drops (§21). */
31
- readonly signal: AbortSignal;
32
- readonly closed: boolean;
33
- }
34
- export declare function createStreamContext<Chunk>(signal: AbortSignal, highWaterMark?: number): StreamContext<Chunk>;
35
- export declare function abortReason(signal: AbortSignal): AppPortError;
36
- /** Turns any iterable, sync or async, into an async iterable. */
37
- export declare function toAsyncIterable<T>(source: AsyncIterable<T> | Iterable<T>): AsyncIterable<T>;
38
- //# sourceMappingURL=streams.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"streams.d.ts","sourceRoot":"","sources":["../src/streams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAU,MAAM,mBAAmB,CAAC;AAEzD;;;;;GAKG;AACH,qBAAa,YAAY,CAAC,CAAC,CAAE,YAAW,aAAa,CAAC,CAAC,CAAC;;gBAS1C,aAAa,SAAK;IAI9B,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,IAAI,IAAI,IAAI,MAAM,CAEjB;IAEK,IAAI,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAcnC,GAAG,IAAI,IAAI;IAUX,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI;IAgBpB,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC;CAqBlD;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa,CAA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