@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,142 +0,0 @@
1
- /**
2
- * Reusable helpers for external application compatibility proofs.
3
- *
4
- * The helpers keep external integrations inside the supported public SDK
5
- * boundary: an integration describes the external project, records what the
6
- * harness actually executed, and receives a machine-readable report plus a
7
- * human-readable matrix. Statuses are always derived from observed execution,
8
- * never authored by hand, so a manifest can never imply that an external
9
- * application ran.
10
- */
11
- /** Result of a single compatibility check. */
12
- export type ExternalCompatibilityStatus = "pass" | "fail" | "skip" | "not_run";
13
- /**
14
- * How far an external project has progressed.
15
- *
16
- * - `declared`: a manifest exists, nothing has been built or executed.
17
- * - `scaffolded`: the integration exists but the application was not executed.
18
- * - `executable`: the external application started and its boundary was invoked.
19
- * - `verified`: the executed boundary satisfied the AppPort contract.
20
- * - `skipped`: execution is impossible in this environment (reason required).
21
- * - `failed`: execution was attempted and did not satisfy the contract.
22
- */
23
- export type ExternalIntegrationStatus = "declared" | "scaffolded" | "executable" | "verified" | "skipped" | "failed";
24
- /** What a project's evidence proves. */
25
- export type ExternalCompatibilityProofLevel = "manifest" | "contract" | "external-execution" | "provider-replacement" | "legacy-replacement";
26
- /** Where the external application source comes from. */
27
- export type ExternalProjectOrigin = "upstream-vendored" | "upstream-declared" | "harness-authored";
28
- /** Canonical manifest entry for an external application. */
29
- export interface ExternalCompatibilityProject {
30
- readonly project: string;
31
- readonly displayName: string;
32
- readonly origin: ExternalProjectOrigin;
33
- readonly repository: string;
34
- readonly commit: string;
35
- readonly license: string;
36
- readonly language: string;
37
- readonly runtime: string;
38
- readonly surface: string;
39
- readonly services: readonly string[];
40
- readonly startup: string;
41
- readonly shutdown: string;
42
- readonly capability: string;
43
- readonly contract: string;
44
- readonly integrationBoundary: string;
45
- readonly proofLevel: ExternalCompatibilityProofLevel;
46
- readonly capabilityMapping?: string;
47
- readonly expectedIntegration?: string;
48
- readonly skippedReason?: string;
49
- }
50
- /** Evidence recorded for one execution of an external capability. */
51
- export interface ExternalCompatibilityEvidence {
52
- readonly capability: string;
53
- readonly contract: string;
54
- readonly provider: string;
55
- readonly language: string;
56
- readonly surface: string;
57
- readonly boundary: string;
58
- readonly boundaryInvocations: number;
59
- readonly eligibility: string;
60
- readonly authorization: string;
61
- readonly resolution: string;
62
- readonly materialization: string;
63
- readonly execution: string;
64
- readonly environment: string;
65
- readonly evidenceId: string;
66
- }
67
- /** Per-check results for one project. */
68
- export interface ExternalCompatibilityTestResults {
69
- readonly contract: ExternalCompatibilityStatus;
70
- readonly discovery: ExternalCompatibilityStatus;
71
- readonly authorization: ExternalCompatibilityStatus;
72
- readonly resolution: ExternalCompatibilityStatus;
73
- readonly materialization: ExternalCompatibilityStatus;
74
- readonly execution: ExternalCompatibilityStatus;
75
- readonly revocation: ExternalCompatibilityStatus;
76
- readonly replacement: ExternalCompatibilityStatus;
77
- readonly legacyShutdown: ExternalCompatibilityStatus;
78
- }
79
- /** What an integration observed while driving one external project. */
80
- export interface ExternalCompatibilityObservation {
81
- readonly project: ExternalCompatibilityProject;
82
- /** The AppPort contract was verified against the external application. */
83
- readonly contractVerified?: boolean;
84
- readonly discovered?: boolean;
85
- readonly authorized?: boolean;
86
- readonly resolved?: boolean;
87
- readonly materialized?: boolean;
88
- /** Evidence for a real execution of the external application boundary. */
89
- readonly evidence?: ExternalCompatibilityEvidence;
90
- /** Provider revocation produced `appboundry.NO_ELIGIBLE_PROVIDER`. */
91
- readonly revoked?: boolean;
92
- /** Another provider served the same contract after this one was revoked. */
93
- readonly replaced?: boolean;
94
- /** The legacy application was stopped and the contract still resolved. */
95
- readonly legacyShutdown?: boolean;
96
- /** Execution is impossible in this environment. Forces `skipped`. */
97
- readonly skippedReason?: string;
98
- /** Execution was attempted and failed. Forces `failed`. */
99
- readonly failureReason?: string;
100
- }
101
- /** A project entry in the generated compatibility report. */
102
- export interface ExternalCompatibilityProjectReport extends ExternalCompatibilityProject {
103
- readonly status: ExternalIntegrationStatus;
104
- readonly tests: ExternalCompatibilityTestResults;
105
- readonly evidence?: ExternalCompatibilityEvidence;
106
- readonly failureReason?: string;
107
- }
108
- /** Machine-readable compatibility report. */
109
- export interface ExternalCompatibilityReport {
110
- readonly title: "AppBoundry External Compatibility Proof";
111
- readonly generatedBy: "appport.externalCompatibilityHarness";
112
- readonly projects: readonly ExternalCompatibilityProjectReport[];
113
- }
114
- /** One row of the human-readable compatibility matrix. */
115
- export interface ExternalCompatibilityMatrixRow {
116
- readonly project: string;
117
- readonly language: string;
118
- readonly surface: string;
119
- readonly capability: string;
120
- readonly integration: ExternalIntegrationStatus;
121
- readonly contract: ExternalCompatibilityStatus;
122
- readonly execution: ExternalCompatibilityStatus;
123
- readonly replacement: ExternalCompatibilityStatus;
124
- }
125
- /**
126
- * Derives a project report from what the harness observed.
127
- *
128
- * A project only reaches `verified` when its external application boundary was
129
- * actually invoked and the AppPort contract held for that execution.
130
- */
131
- export declare function recordExternalCompatibility(observation: ExternalCompatibilityObservation): ExternalCompatibilityProjectReport;
132
- /** Builds the machine-readable report from recorded project results. */
133
- export declare function createExternalCompatibilityReport(projects: readonly ExternalCompatibilityProjectReport[]): ExternalCompatibilityReport;
134
- /** Projects whose external application was actually executed and verified. */
135
- export declare function verifiedExternalProjects(report: ExternalCompatibilityReport): readonly ExternalCompatibilityProjectReport[];
136
- /** Reduces the report to matrix rows. */
137
- export declare function externalCompatibilityMatrix(report: ExternalCompatibilityReport): readonly ExternalCompatibilityMatrixRow[];
138
- /** Formats the compatibility matrix for the enterprise trace. */
139
- export declare function formatExternalCompatibilityMatrix(report: ExternalCompatibilityReport): string;
140
- /** Fails when the consumer source changed across provider replacement. */
141
- export declare function assertConsumerSourceUnchanged(before: string, after: string): void;
142
- //# sourceMappingURL=external-compatibility.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"external-compatibility.d.ts","sourceRoot":"","sources":["../src/external-compatibility.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,8CAA8C;AAC9C,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,MAAM,GAAG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,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,EAAE,yBAAyB,CAAC;IAChD,QAAQ,CAAC,QAAQ,EAAE,2BAA2B,CAAC;IAC/C,QAAQ,CAAC,SAAS,EAAE,2BAA2B,CAAC;IAChD,QAAQ,CAAC,WAAW,EAAE,2BAA2B,CAAC;CACnD;AAOD;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,WAAW,EAAE,gCAAgC,GAC5C,kCAAkC,CAqDpC;AAED,wEAAwE;AACxE,wBAAgB,iCAAiC,CAC/C,QAAQ,EAAE,SAAS,kCAAkC,EAAE,GACtD,2BAA2B,CAM7B;AAED,8EAA8E;AAC9E,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,2BAA2B,GAClC,SAAS,kCAAkC,EAAE,CAE/C;AAED,yCAAyC;AACzC,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,2BAA2B,GAClC,SAAS,8BAA8B,EAAE,CAW3C;AAiBD,iEAAiE;AACjE,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,2BAA2B,GAAG,MAAM,CAgB7F;AAED,0EAA0E;AAC1E,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAIjF"}
@@ -1,132 +0,0 @@
1
- /**
2
- * Reusable helpers for external application compatibility proofs.
3
- *
4
- * The helpers keep external integrations inside the supported public SDK
5
- * boundary: an integration describes the external project, records what the
6
- * harness actually executed, and receives a machine-readable report plus a
7
- * human-readable matrix. Statuses are always derived from observed execution,
8
- * never authored by hand, so a manifest can never imply that an external
9
- * application ran.
10
- */
11
- function optional(flag) {
12
- if (flag === undefined)
13
- return "not_run";
14
- return flag ? "pass" : "fail";
15
- }
16
- /**
17
- * Derives a project report from what the harness observed.
18
- *
19
- * A project only reaches `verified` when its external application boundary was
20
- * actually invoked and the AppPort contract held for that execution.
21
- */
22
- export function recordExternalCompatibility(observation) {
23
- const { project } = observation;
24
- const skippedReason = observation.skippedReason ?? project.skippedReason;
25
- if (skippedReason) {
26
- return {
27
- ...project,
28
- skippedReason,
29
- status: "skipped",
30
- tests: {
31
- contract: "skip",
32
- discovery: "skip",
33
- authorization: "skip",
34
- resolution: "skip",
35
- materialization: "skip",
36
- execution: "skip",
37
- revocation: "skip",
38
- replacement: "skip",
39
- legacyShutdown: "skip"
40
- }
41
- };
42
- }
43
- const executed = (observation.evidence?.boundaryInvocations ?? 0) > 0;
44
- const contract = optional(observation.contractVerified);
45
- const tests = {
46
- contract,
47
- discovery: optional(observation.discovered),
48
- authorization: optional(observation.authorized),
49
- resolution: optional(observation.resolved),
50
- materialization: optional(observation.materialized),
51
- execution: observation.failureReason ? "fail" : executed ? "pass" : "not_run",
52
- revocation: optional(observation.revoked),
53
- replacement: optional(observation.replaced),
54
- legacyShutdown: optional(observation.legacyShutdown)
55
- };
56
- const failed = observation.failureReason !== undefined || Object.values(tests).includes("fail");
57
- const status = failed
58
- ? "failed"
59
- : executed && contract === "pass"
60
- ? "verified"
61
- : executed
62
- ? "executable"
63
- : "scaffolded";
64
- return {
65
- ...project,
66
- status,
67
- tests,
68
- ...(observation.evidence ? { evidence: observation.evidence } : {}),
69
- ...(observation.failureReason ? { failureReason: observation.failureReason } : {})
70
- };
71
- }
72
- /** Builds the machine-readable report from recorded project results. */
73
- export function createExternalCompatibilityReport(projects) {
74
- return {
75
- title: "AppBoundry External Compatibility Proof",
76
- generatedBy: "appport.externalCompatibilityHarness",
77
- projects: projects.map((project) => ({ ...project }))
78
- };
79
- }
80
- /** Projects whose external application was actually executed and verified. */
81
- export function verifiedExternalProjects(report) {
82
- return report.projects.filter((project) => project.status === "verified");
83
- }
84
- /** Reduces the report to matrix rows. */
85
- export function externalCompatibilityMatrix(report) {
86
- return report.projects.map((project) => ({
87
- project: project.displayName,
88
- language: project.language,
89
- surface: project.surface,
90
- capability: project.capability,
91
- integration: project.status,
92
- contract: project.tests.contract,
93
- execution: project.tests.execution,
94
- replacement: project.tests.replacement
95
- }));
96
- }
97
- const COLUMNS = [
98
- ["Project", 16],
99
- ["Language", 15],
100
- ["Surface", 14],
101
- ["Capability", 18],
102
- ["Integration", 12],
103
- ["Contract", 9],
104
- ["Execution", 10],
105
- ["Replacement", 11]
106
- ];
107
- function row(values) {
108
- return values.map((value, index) => value.padEnd(COLUMNS[index][1])).join(" ").trimEnd();
109
- }
110
- /** Formats the compatibility matrix for the enterprise trace. */
111
- export function formatExternalCompatibilityMatrix(report) {
112
- const header = row(COLUMNS.map(([label]) => label));
113
- const divider = "-".repeat(header.length);
114
- const body = externalCompatibilityMatrix(report).map((entry) => row([
115
- entry.project,
116
- entry.language,
117
- entry.surface,
118
- entry.capability,
119
- entry.integration.toUpperCase(),
120
- entry.contract.toUpperCase(),
121
- entry.execution.toUpperCase(),
122
- entry.replacement.toUpperCase()
123
- ]));
124
- return [header, divider, ...body].join("\n");
125
- }
126
- /** Fails when the consumer source changed across provider replacement. */
127
- export function assertConsumerSourceUnchanged(before, after) {
128
- if (before !== after) {
129
- throw new Error("consumer source changed during provider replacement");
130
- }
131
- }
132
- //# sourceMappingURL=external-compatibility.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"external-compatibility.js","sourceRoot":"","sources":["../src/external-compatibility.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AA0IH,SAAS,QAAQ,CAAC,IAAyB;IACzC,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IACzC,OAAO,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;AAChC,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,2BAA2B,CACzC,WAA6C;IAE7C,MAAM,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC;IAChC,MAAM,aAAa,G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,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAC7D,GAAG,CAAC;QACF,KAAK,CAAC,OAAO;QACb,KAAK,CAAC,QAAQ;QACd,KAAK,CAAC,OAAO;QACb,KAAK,CAAC,UAAU;QAChB,KAAK,CAAC,WAAW,CAAC,WAAW,EAAE;QAC/B,KAAK,CAAC,QAAQ,CAAC,WAAW,EAAE;QAC5B,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE;QAC7B,KAAK,CAAC,WAAW,CAAC,WAAW,EAAE;KAChC,CAAC,CACH,CAAC;IACF,OAAO,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC/C,CAAC;AAED,0EAA0E;AAC1E,MAAM,UAAU,6BAA6B,CAAC,MAAc,EAAE,KAAa;IACzE,IAAI,MAAM,KAAK,KAAK,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;IACzE,CAAC;AACH,CAAC"}
@@ -1,247 +0,0 @@
1
- /**
2
- * Provider lifecycle and migration primitives.
3
- *
4
- * A capability contract is stable; the providers that fulfil it are not. These
5
- * helpers make that difference executable: a provider is registered against a
6
- * contract, becomes eligible, may be activated for resolution, and can be
7
- * drained, revoked and retired without the consumer ever learning which
8
- * implementation served it.
9
- *
10
- * The primitives are deliberately language, runtime and surface agnostic. A
11
- * provider is a provider identifier plus the contract it declares; nothing here
12
- * knows about COBOL, HTTP, Wasm or any other implementation detail. AppBoundry
13
- * owns lifecycle and resolution, AppPort owns the capability contract.
14
- */
15
- /**
16
- * The externally observable lifecycle of one provider registration.
17
- *
18
- * ```
19
- * registered → eligible → active ─┬→ draining → retired
20
- * └→ revoked → retired
21
- * ```
22
- *
23
- * - `registered`: the provider declared a contract. It is not resolvable.
24
- * - `eligible`: the provider satisfies the contract requirements. Still not
25
- * resolvable: eligibility describes fitness, activation describes service.
26
- * - `active`: the provider may be resolved for execution.
27
- * - `draining`: the provider is leaving service. New resolution must not select
28
- * it; work already resolved against it may complete.
29
- * - `revoked`: the provider is no longer eligible for new requests.
30
- * - `retired`: the registration is removed from the provider set, permanently.
31
- */
32
- export type ProviderLifecycleState = "registered" | "eligible" | "active" | "draining" | "revoked" | "retired";
33
- /** The only state in which a provider may be selected by resolution. */
34
- export declare const RESOLVABLE_PROVIDER_STATE: ProviderLifecycleState;
35
- /** Raised when a lifecycle operation is not permitted. */
36
- export declare class ProviderLifecycleError extends Error {
37
- readonly providerId: string;
38
- constructor(message: string, providerId: string);
39
- }
40
- /** Raised when a migration cannot be performed. No state changes when it is thrown. */
41
- export declare class ProviderMigrationRejected extends Error {
42
- readonly reason: string;
43
- constructor(message: string, reason: string);
44
- }
45
- /** A provider registration against one capability contract. */
46
- export interface ProviderRegistration {
47
- /** Stable identifier of the provider application. */
48
- readonly providerId: string;
49
- /** Capability the provider declares, for example `account.get@1`. */
50
- readonly capability: string;
51
- /** Contract identifier the provider declares, for example `appport.contract.account-get.v1`. */
52
- readonly contract: string;
53
- /** Fingerprint of the declared contract, used to check contract equivalence. */
54
- readonly contractFingerprint: string;
55
- /** Where the provider runs. Free-form and presentation neutral. */
56
- readonly environment?: string;
57
- }
58
- /** The current lifecycle record for one provider registration. */
59
- export interface ProviderLifecycleRecord extends ProviderRegistration {
60
- readonly state: ProviderLifecycleState;
61
- /** Changes whenever the provider is registered again after retirement. */
62
- readonly registrationId: string;
63
- }
64
- /** AppBoundry evidence identifiers observed for one execution. */
65
- export interface ProviderExecutionObservation {
66
- readonly authorization: string;
67
- readonly eligibility: string;
68
- readonly resolution: string;
69
- readonly materialization: string;
70
- readonly execution: string;
71
- }
72
- /** Structured evidence for one provider lifecycle transition. */
73
- export interface ProviderLifecycleEvidence {
74
- readonly capability: string;
75
- readonly contract: string;
76
- readonly provider: string;
77
- readonly providerState: ProviderLifecycleState;
78
- readonly previousProviderState: ProviderLifecycleState;
79
- readonly previousProvider?: string;
80
- readonly replacementProvider?: string;
81
- readonly migrationId?: string;
82
- readonly authorization: string;
83
- readonly eligibility: string;
84
- readonly resolution: string;
85
- readonly materialization: string;
86
- readonly execution: string;
87
- readonly environment: string;
88
- readonly timestamp: string;
89
- readonly evidenceId: string;
90
- }
91
- /** Recorded when a transition did not itself execute the capability. */
92
- export declare const NOT_OBSERVED: "not_observed";
93
- /** Optional context recorded alongside a transition. */
94
- export interface ProviderTransitionContext {
95
- readonly previousProvider?: string;
96
- readonly replacementProvider?: string;
97
- readonly migrationId?: string;
98
- readonly observed?: ProviderExecutionObservation;
99
- }
100
- /**
101
- * The authority for provider lifecycle state.
102
- *
103
- * Resolution must consult {@link ProviderLifecycleRegistry.resolvable} so that
104
- * eligibility, revocation and retirement affect real provider selection instead
105
- * of being descriptive metadata.
106
- */
107
- export declare class ProviderLifecycleRegistry {
108
- #private;
109
- private readonly now;
110
- constructor(now?: () => Date);
111
- /**
112
- * Registers a provider in the `registered` state.
113
- *
114
- * Registering an identifier that is currently retired is the explicit new
115
- * registration required to bring a retired provider back into service; it
116
- * always produces a new `registrationId`.
117
- */
118
- register(registration: ProviderRegistration): ProviderLifecycleRecord;
119
- /** The provider satisfies the contract requirements for its capability. */
120
- markEligible(providerId: string, context?: ProviderTransitionContext): ProviderLifecycleRecord;
121
- /** The provider may now be selected by resolution. */
122
- activate(providerId: string, context?: ProviderTransitionContext): ProviderLifecycleRecord;
123
- /** The provider is leaving service; new resolution must not select it. */
124
- drain(providerId: string, context?: ProviderTransitionContext): ProviderLifecycleRecord;
125
- /** The provider is no longer eligible for new requests. */
126
- revoke(providerId: string, context?: ProviderTransitionContext): ProviderLifecycleRecord;
127
- /** The provider registration is removed from the provider set, permanently. */
128
- retire(providerId: string, context?: ProviderTransitionContext): ProviderLifecycleRecord;
129
- /** The current record, or `undefined` when the provider was never registered. */
130
- record(providerId: string): ProviderLifecycleRecord | undefined;
131
- /** The current state, or `undefined` when the provider was never registered. */
132
- state(providerId: string): ProviderLifecycleState | undefined;
133
- /** Every known registration, in registration order. */
134
- records(): readonly ProviderLifecycleRecord[];
135
- /** Providers AppBoundry may currently select for `capability`. */
136
- resolvable(capability: string): readonly ProviderLifecycleRecord[];
137
- /** Whether resolution may currently select `providerId`. */
138
- isResolvable(providerId: string): boolean;
139
- /** Every transition recorded so far, oldest first. */
140
- evidence(): readonly ProviderLifecycleEvidence[];
141
- /** Records evidence for an execution that resolved to `providerId`. */
142
- recordExecution(providerId: string, observed: ProviderExecutionObservation): ProviderLifecycleEvidence;
143
- }
144
- /** A migration request: retire one provider and put another into service. */
145
- export interface ProviderMigrationInput {
146
- readonly capability: string;
147
- readonly contract: string;
148
- readonly retiringProvider: string;
149
- readonly replacementProvider: string;
150
- /** The capability contract the consumer requests. Must not change. */
151
- readonly consumerContract: string;
152
- /** Hash of the consumer source, recorded so migration cannot hide a rewrite. */
153
- readonly consumerSourceHash: string;
154
- readonly migrationId?: string;
155
- }
156
- /** The outcome of a completed migration. */
157
- export interface ProviderMigrationResult {
158
- readonly migrationId: string;
159
- readonly capability: string;
160
- readonly contract: string;
161
- readonly retiringProvider: string;
162
- readonly replacementProvider: string;
163
- readonly retiringProviderState: ProviderLifecycleState;
164
- readonly replacementProviderState: ProviderLifecycleState;
165
- readonly consumerContract: string;
166
- readonly consumerSourceHash: string;
167
- readonly evidence: readonly ProviderLifecycleEvidence[];
168
- }
169
- /**
170
- * Moves a capability from one provider to another as a single platform
171
- * operation.
172
- *
173
- * The migration is validated in full before any state changes, so a rejected
174
- * migration leaves the currently active provider untouched. On success the
175
- * retiring provider is drained, revoked and retired, and the replacement is
176
- * activated. The consumer is never involved: it keeps requesting the same
177
- * capability contract.
178
- */
179
- export declare function migrateProvider(registry: ProviderLifecycleRegistry, input: ProviderMigrationInput): ProviderMigrationResult;
180
- /** One recorded capability request, used to prove resolution during migration. */
181
- export interface ProviderResolutionRecord {
182
- readonly requestId: string;
183
- readonly capability: string;
184
- readonly contract: string;
185
- readonly resolvedProvider: string;
186
- readonly providerStateAtResolution: ProviderLifecycleState;
187
- readonly executionResult: "success" | "failure" | "not_observed";
188
- readonly evidenceId: string;
189
- /** PR88 policy context. Optional for pre-policy PR87 evidence. */
190
- readonly policyId?: string;
191
- readonly policyVersion?: string;
192
- }
193
- /**
194
- * Fails when a request resolved to a provider AppBoundry had already declared
195
- * ineligible.
196
- */
197
- export declare function assertResolutionInvariant(records: readonly ProviderResolutionRecord[]): void;
198
- /** A provider execution observed before or after migration. */
199
- export interface ProviderExecutionSummary {
200
- readonly provider: string;
201
- readonly state: ProviderLifecycleState;
202
- readonly execution: "pass" | "fail" | "not_run" | "skip";
203
- /** Where the implementation ran. Recorded for the trace, never for selection. */
204
- readonly environment?: string;
205
- }
206
- /** What the harness observed while proving a migration. */
207
- export interface ProviderMigrationObservation {
208
- readonly capability: string;
209
- readonly contract: string;
210
- readonly migration: ProviderMigrationResult;
211
- readonly consumerContractUnchanged: boolean;
212
- readonly consumerSourceUnchanged: boolean;
213
- readonly before: ProviderExecutionSummary;
214
- readonly after: ProviderExecutionSummary;
215
- readonly retirement: {
216
- readonly legacyProcessStopped: boolean;
217
- readonly legacyArtifactUnavailable: boolean;
218
- readonly directInvocationFailed: boolean;
219
- };
220
- readonly noEligibleProvider: {
221
- readonly verified: boolean;
222
- readonly code: string;
223
- };
224
- readonly restoration: {
225
- readonly verified: boolean;
226
- readonly provider: string;
227
- };
228
- readonly invalidMigration: {
229
- readonly rejected: boolean;
230
- readonly reason: string;
231
- readonly provider: string;
232
- };
233
- readonly resolutions: readonly ProviderResolutionRecord[];
234
- readonly providers: readonly ProviderLifecycleRecord[];
235
- readonly evidence: readonly ProviderLifecycleEvidence[];
236
- }
237
- /** Machine-readable provider migration report. */
238
- export interface ProviderMigrationReport extends ProviderMigrationObservation {
239
- readonly title: "AppBoundry Provider Migration Proof";
240
- readonly generatedBy: "appport.providerMigrationHarness";
241
- readonly result: "pass" | "fail";
242
- }
243
- /** Builds the machine-readable report from what the harness observed. */
244
- export declare function createProviderMigrationReport(observation: ProviderMigrationObservation): ProviderMigrationReport;
245
- /** Formats the human-readable migration proof trace. */
246
- export declare function formatProviderMigrationTrace(report: ProviderMigrationReport): string;
247
- //# sourceMappingURL=provider-lifecycle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"provider-lifecycle.d.ts","sourceRoot":"","sources":["../src/provider-lifecycle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,sBAAsB,GAC9B,YAAY,GACZ,UAAU,GACV,QAAQ,GACR,UAAU,GACV,SAAS,GACT,SAAS,CAAC;AAEd,wEAAwE;AACxE,eAAO,MAAM,yBAAyB,EAAE,sBAAiC,CAAC;AAW1E,0DAA0D;AAC1D,qBAAa,sBAAuB,SAAQ,KAAK;IAG7C,QAAQ,CAAC,UAAU,EAAE,MAAM;gBAD3B,OAAO,EAAE,MAAM,EACN,UAAU,EAAE,MAAM;CAK9B;AAED,uFAAuF;AACvF,qBAAa,yBAA0B,SAAQ,KAAK;IAGhD,QAAQ,CAAC,MAAM,EAAE,MAAM;gBADvB,OAAO,EAAE,MAAM,EACN,MAAM,EAAE,MAAM;CAK1B;AAED,+DAA+D;AAC/D,MAAM,WAAW,oBAAoB;IACnC,qDAAqD;IACrD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,qEAAqE;IACrE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,gGAAgG;IAChG,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,gFAAgF;IAChF,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,mEAAmE;IACnE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,kEAAkE;AAClE,MAAM,WAAW,uBAAwB,SAAQ,oBAAoB;IACnE,QAAQ,CAAC,KAAK,EAAE,sBAAsB,CAAC;IACvC,0EAA0E;IAC1E,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;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