xytara 3.1.16 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (390) hide show
  1. package/README.md +120 -92
  2. package/RELEASE_NOTES.md +7 -3
  3. package/START_HERE.md +56 -224
  4. package/bin/xytara.js +21 -8
  5. package/client.js +79 -1
  6. package/lib/{delivery_receipt.js → delivery_receipt_verify.js} +14 -100
  7. package/package.json +25 -35
  8. package/scripts/verify_client.js +418 -0
  9. package/scripts/verify_release_candidate.js +146 -45
  10. package/.env.example +0 -173
  11. package/ADAPTER_START_HERE.md +0 -56
  12. package/BSV_TERANODE_PLATFORM_DISCONTINUITY_RUNBOOK.md +0 -126
  13. package/CARRIED_HANDOFF_DEMO.md +0 -60
  14. package/EXAMPLE_PATHS.md +0 -53
  15. package/FINAL_CONTRACT.md +0 -498
  16. package/PARTNER_READY_PATH.md +0 -71
  17. package/PUBLIC_DEMO_SCRIPT.md +0 -78
  18. package/REAL_PAYMENT_SETUP.md +0 -320
  19. package/SERVICE_CONTRACT.md +0 -419
  20. package/SUPABASE_RUNTIME_STATE_SETUP.md +0 -61
  21. package/TERMINOLOGY.md +0 -50
  22. package/WHY_XYTARA_XOONYA.md +0 -63
  23. package/XT1_EXECUTION_TRUTH_STANDARD.md +0 -78
  24. package/XYTARA_ADAPTER_PROTOCOL_TRUTH_MODEL.md +0 -75
  25. package/XYTARA_AUTONOMOUS_ENTRY_MODEL.md +0 -124
  26. package/XYTARA_DEFAULT_PATH_MODEL.md +0 -84
  27. package/XYTARA_EXECUTION_TRUTH_MODEL.md +0 -171
  28. package/XYTARA_PAYMENT_RAIL_TRUTH_MODEL.md +0 -68
  29. package/adapters/AUTHORING_GUIDE.md +0 -244
  30. package/adapters/ONBOARDING_POSTURE.md +0 -61
  31. package/adapters/THIRD_PARTY_SUBMISSION_PROCESS.md +0 -84
  32. package/adapters/adapter-manifest.schema.json +0 -283
  33. package/adapters/examples/example-execution-adapter.js +0 -61
  34. package/adapters/examples/example-execution-adapter.manifest.json +0 -81
  35. package/adapters/examples/example-settlement-adapter.js +0 -55
  36. package/adapters/examples/example-settlement-adapter.manifest.json +0 -78
  37. package/adapters/examples/example-third-party-acp-registration.submission-bundle.json +0 -124
  38. package/adapters/examples/example-third-party-erc8004-registration.submission-bundle.json +0 -121
  39. package/adapters/examples/example-third-party-identity-registration.certification-pack.json +0 -22
  40. package/adapters/examples/example-third-party-identity-registration.record.json +0 -26
  41. package/adapters/examples/example-third-party-identity-registration.submission-bundle.json +0 -126
  42. package/adapters/examples/example-third-party-langchain-registration.submission-bundle.json +0 -124
  43. package/adapters/examples/example-third-party-mpp-registration.submission-bundle.json +0 -120
  44. package/adapters/examples/example-third-party-registration.certification-pack.json +0 -22
  45. package/adapters/examples/example-third-party-registration.record.json +0 -28
  46. package/adapters/examples/example-third-party-registration.submission-bundle.json +0 -126
  47. package/adapters/examples/example-third-party-settlement-registration.certification-pack.json +0 -22
  48. package/adapters/examples/example-third-party-settlement-registration.record.json +0 -26
  49. package/adapters/examples/example-third-party-settlement-registration.submission-bundle.json +0 -127
  50. package/adapters/examples/langchain-reference-execution-adapter.js +0 -81
  51. package/adapters/examples/langchain-reference-execution-adapter.manifest.json +0 -79
  52. package/adapters/examples/langgraph-reference-execution-adapter.js +0 -81
  53. package/adapters/examples/langgraph-reference-execution-adapter.manifest.json +0 -79
  54. package/adapters/examples/minimal-third-party-execution-adapter.js +0 -61
  55. package/adapters/examples/minimal-third-party-execution-adapter.manifest.json +0 -79
  56. package/adapters/examples/minimal-third-party-execution-registration.record.json +0 -26
  57. package/adapters/examples/minimal-third-party-execution.certification-pack.json +0 -22
  58. package/adapters/examples/minimal-third-party-execution.submission-bundle.json +0 -126
  59. package/adapters/integration-certification-pack.schema.json +0 -82
  60. package/adapters/integration-registration-record.schema.json +0 -114
  61. package/adapters/integration-submission-bundle-set.schema.json +0 -39
  62. package/adapters/integration-submission-bundle.schema.json +0 -34
  63. package/adapters/interfaces.js +0 -56
  64. package/bin/xytara-release.js +0 -1429
  65. package/examples/_demo_env.js +0 -40
  66. package/examples/adapter_review_walkthrough.js +0 -54
  67. package/examples/export_carried_handoff.js +0 -81
  68. package/examples/funded_runtime_walkthrough.js +0 -71
  69. package/examples/partner_launch_walkthrough.js +0 -44
  70. package/examples/quickstart.js +0 -3256
  71. package/fixtures/catalog.js +0 -1156
  72. package/index.js +0 -395
  73. package/integrations/dispatch.js +0 -276
  74. package/integrations/registry-snapshot.schema.json +0 -36
  75. package/integrations/registry.js +0 -2261
  76. package/integrations/views.js +0 -28
  77. package/lib/a2a_lane_contract.js +0 -104
  78. package/lib/a2a_rpc.js +0 -287
  79. package/lib/a2c_lane_contract.js +0 -111
  80. package/lib/account_auth.js +0 -585
  81. package/lib/acp_lane_contract.js +0 -54
  82. package/lib/activity_audit_contract.js +0 -322
  83. package/lib/adapter_certification_contract.js +0 -130
  84. package/lib/adapter_depth_contract.js +0 -218
  85. package/lib/adapter_pack.js +0 -118
  86. package/lib/adapter_partner_pack.js +0 -89
  87. package/lib/adapter_promotion_pack.js +0 -89
  88. package/lib/adapter_protocol_truth_contract.js +0 -229
  89. package/lib/agent_identity.js +0 -162
  90. package/lib/announcement_pack.js +0 -61
  91. package/lib/artifact_distribution_lane_contract.js +0 -54
  92. package/lib/asyncapi_contract.js +0 -150
  93. package/lib/auth_interop_contract.js +0 -80
  94. package/lib/authority_binding_lifecycle_contract.js +0 -182
  95. package/lib/autonomous_entry_contract.js +0 -409
  96. package/lib/bolt_adapter.js +0 -187
  97. package/lib/bolt_lane_contract.js +0 -55
  98. package/lib/bolt_payment_front.js +0 -224
  99. package/lib/business_cockpit.js +0 -378
  100. package/lib/buyer_event_log.js +0 -230
  101. package/lib/buyer_safety_policy.js +0 -132
  102. package/lib/capability_execution_truth.js +0 -276
  103. package/lib/capability_registry.js +0 -633
  104. package/lib/catalog_contract.js +0 -966
  105. package/lib/catalog_family_model.js +0 -193
  106. package/lib/catalog_views.js +0 -55
  107. package/lib/cdp_jwt.js +0 -57
  108. package/lib/checkout_event_security.js +0 -142
  109. package/lib/checkout_processor_adapter.js +0 -217
  110. package/lib/cloudevents_contract.js +0 -80
  111. package/lib/command_flow.js +0 -911
  112. package/lib/commerce_artifacts.js +0 -591
  113. package/lib/commerce_authority.js +0 -449
  114. package/lib/commerce_bridge.js +0 -274
  115. package/lib/commerce_cases.js +0 -399
  116. package/lib/commerce_checkout.js +0 -509
  117. package/lib/commerce_coordination.js +0 -346
  118. package/lib/commerce_economics.js +0 -4017
  119. package/lib/commerce_identity.js +0 -578
  120. package/lib/commerce_quotes.js +0 -266
  121. package/lib/commerce_reports.js +0 -14461
  122. package/lib/commerce_runtime.js +0 -322
  123. package/lib/commerce_shell.js +0 -257
  124. package/lib/crypto_agility_matrix.js +0 -125
  125. package/lib/default_path_contract.js +0 -412
  126. package/lib/delivery_summary_contract.js +0 -95
  127. package/lib/ecosystem_entry.js +0 -64
  128. package/lib/erc8004_lane_contract.js +0 -65
  129. package/lib/event_system_lane_contract.js +0 -75
  130. package/lib/execution_dedupe.js +0 -86
  131. package/lib/execution_truth_contract.js +0 -234
  132. package/lib/external_credit_bridge.js +0 -142
  133. package/lib/external_execution_policy.js +0 -143
  134. package/lib/external_execution_runtime.js +0 -238
  135. package/lib/feature_control_lane_contract.js +0 -54
  136. package/lib/first_run_conversion_contract.js +0 -290
  137. package/lib/framework_lane_contract.js +0 -89
  138. package/lib/framework_provider_promotion.js +0 -235
  139. package/lib/full_catalog_contract.js +0 -525
  140. package/lib/go_live_operator_pack.js +0 -391
  141. package/lib/http_transport.js +0 -99
  142. package/lib/identity_auth.js +0 -175
  143. package/lib/identity_interop_contract.js +0 -82
  144. package/lib/integration_matrix_contract.js +0 -102
  145. package/lib/l402_adapter.js +0 -241
  146. package/lib/l402_lane_contract.js +0 -55
  147. package/lib/l402_payment_front.js +0 -265
  148. package/lib/launch_narrative.js +0 -53
  149. package/lib/lifecycle_continuity_contract.js +0 -115
  150. package/lib/machine_identity_registry_contract.js +0 -199
  151. package/lib/major_rails_lane_contract.js +0 -150
  152. package/lib/market_lane_contract.js +0 -467
  153. package/lib/market_lane_depth_contract.js +0 -182
  154. package/lib/market_lane_promotion_contract.js +0 -210
  155. package/lib/market_lane_trace_contract.js +0 -278
  156. package/lib/mcp_lane_contract.js +0 -137
  157. package/lib/mpp_adapter.js +0 -237
  158. package/lib/network_transport.js +0 -110
  159. package/lib/offline_verifiability_recovery_contract.js +0 -155
  160. package/lib/openapi_contract.js +0 -300
  161. package/lib/operational_receipt_contract.js +0 -165
  162. package/lib/operator_intelligence.js +0 -407
  163. package/lib/outreach_copy_pack.js +0 -51
  164. package/lib/outreach_message_pack.js +0 -71
  165. package/lib/outreach_proof.js +0 -71
  166. package/lib/outreach_target_pack.js +0 -60
  167. package/lib/partner_intelligence.js +0 -105
  168. package/lib/payment_config.js +0 -257
  169. package/lib/payment_front_registry.js +0 -53
  170. package/lib/payment_protocol_contract.js +0 -165
  171. package/lib/payment_rail_truth_contract.js +0 -324
  172. package/lib/payment_verification.js +0 -357
  173. package/lib/phase_10_closeout_pack.js +0 -45
  174. package/lib/phase_10_completion_pack.js +0 -76
  175. package/lib/phase_10_decision_record_pack.js +0 -54
  176. package/lib/phase_10_decision_resolution_pack.js +0 -53
  177. package/lib/phase_10_demand_signal_adapters_runtime_pack.js +0 -74
  178. package/lib/phase_10_ecosystem_backlog_triage_runtime_pack.js +0 -74
  179. package/lib/phase_10_freeze_baseline_pack.js +0 -67
  180. package/lib/phase_10_freeze_review_pack.js +0 -64
  181. package/lib/phase_10_gate_pack.js +0 -57
  182. package/lib/phase_10_long_tail_continuity_pack.js +0 -80
  183. package/lib/phase_10_long_tail_ecosystem_pack.js +0 -66
  184. package/lib/phase_10_niche_extension_registry_runtime_pack.js +0 -74
  185. package/lib/phase_1_claude_mcp_pack.js +0 -60
  186. package/lib/phase_1_claude_mcp_runtime_pack.js +0 -52
  187. package/lib/phase_1_ecosystem_pack.js +0 -67
  188. package/lib/phase_1_openai_codex_pack.js +0 -60
  189. package/lib/phase_1_openai_codex_runtime_pack.js +0 -52
  190. package/lib/phase_2_base_runtime_pack.js +0 -71
  191. package/lib/phase_2_base_usdc_runtime_pack.js +0 -72
  192. package/lib/phase_2_closeout_pack.js +0 -65
  193. package/lib/phase_2_completion_pack.js +0 -113
  194. package/lib/phase_2_decision_record_pack.js +0 -66
  195. package/lib/phase_2_decision_resolution_pack.js +0 -69
  196. package/lib/phase_2_eth_runtime_pack.js +0 -70
  197. package/lib/phase_2_evm_base_runtime_pack.js +0 -73
  198. package/lib/phase_2_evm_runtime_pack.js +0 -71
  199. package/lib/phase_2_flip_preview_pack.js +0 -60
  200. package/lib/phase_2_freeze_review_pack.js +0 -99
  201. package/lib/phase_2_gate_pack.js +0 -77
  202. package/lib/phase_2_payment_rails_pack.js +0 -71
  203. package/lib/phase_2_usdc_runtime_pack.js +0 -71
  204. package/lib/phase_3_brc_runtime_pack.js +0 -81
  205. package/lib/phase_3_bsv_teranode_runtime_pack.js +0 -83
  206. package/lib/phase_3_closeout_pack.js +0 -62
  207. package/lib/phase_3_completion_pack.js +0 -94
  208. package/lib/phase_3_decision_record_pack.js +0 -64
  209. package/lib/phase_3_decision_resolution_pack.js +0 -69
  210. package/lib/phase_3_freeze_baseline_pack.js +0 -67
  211. package/lib/phase_3_freeze_review_pack.js +0 -80
  212. package/lib/phase_3_gate_pack.js +0 -76
  213. package/lib/phase_3_metanet_runtime_pack.js +0 -81
  214. package/lib/phase_3_native_bsv_pack.js +0 -91
  215. package/lib/phase_3_native_continuity_pack.js +0 -82
  216. package/lib/phase_4_attestation_runtime_pack.js +0 -75
  217. package/lib/phase_4_closeout_pack.js +0 -45
  218. package/lib/phase_4_completion_pack.js +0 -94
  219. package/lib/phase_4_decision_record_pack.js +0 -54
  220. package/lib/phase_4_decision_resolution_pack.js +0 -45
  221. package/lib/phase_4_erc8004_runtime_pack.js +0 -76
  222. package/lib/phase_4_freeze_baseline_pack.js +0 -67
  223. package/lib/phase_4_freeze_review_pack.js +0 -68
  224. package/lib/phase_4_gate_pack.js +0 -58
  225. package/lib/phase_4_identity_registry_runtime_pack.js +0 -75
  226. package/lib/phase_4_identity_trust_pack.js +0 -73
  227. package/lib/phase_4_trust_continuity_pack.js +0 -86
  228. package/lib/phase_5_antelope_runtime_pack.js +0 -76
  229. package/lib/phase_5_closeout_pack.js +0 -44
  230. package/lib/phase_5_completion_pack.js +0 -82
  231. package/lib/phase_5_constellation_dag_runtime_pack.js +0 -76
  232. package/lib/phase_5_decision_record_pack.js +0 -54
  233. package/lib/phase_5_decision_resolution_pack.js +0 -45
  234. package/lib/phase_5_digibyte_dgb_runtime_pack.js +0 -76
  235. package/lib/phase_5_freeze_baseline_pack.js +0 -67
  236. package/lib/phase_5_freeze_review_pack.js +0 -68
  237. package/lib/phase_5_gate_pack.js +0 -58
  238. package/lib/phase_5_hedera_hbar_runtime_pack.js +0 -76
  239. package/lib/phase_5_kaspa_kas_runtime_pack.js +0 -76
  240. package/lib/phase_5_major_rails_continuity_pack.js +0 -86
  241. package/lib/phase_5_major_rails_pack.js +0 -110
  242. package/lib/phase_5_metal_runtime_pack.js +0 -76
  243. package/lib/phase_5_polkadot_dot_runtime_pack.js +0 -76
  244. package/lib/phase_5_proton_xpr_runtime_pack.js +0 -76
  245. package/lib/phase_5_solana_runtime_pack.js +0 -76
  246. package/lib/phase_6_autogen_runtime_pack.js +0 -72
  247. package/lib/phase_6_closeout_pack.js +0 -46
  248. package/lib/phase_6_completion_pack.js +0 -77
  249. package/lib/phase_6_decision_record_pack.js +0 -54
  250. package/lib/phase_6_decision_resolution_pack.js +0 -53
  251. package/lib/phase_6_framework_continuity_pack.js +0 -81
  252. package/lib/phase_6_framework_runtime_pack.js +0 -68
  253. package/lib/phase_6_freeze_baseline_pack.js +0 -68
  254. package/lib/phase_6_freeze_review_pack.js +0 -65
  255. package/lib/phase_6_gate_pack.js +0 -59
  256. package/lib/phase_6_langchain_runtime_pack.js +0 -72
  257. package/lib/phase_6_langgraph_runtime_pack.js +0 -72
  258. package/lib/phase_6_semantic_kernel_runtime_pack.js +0 -72
  259. package/lib/phase_7_closeout_pack.js +0 -45
  260. package/lib/phase_7_completion_pack.js +0 -85
  261. package/lib/phase_7_decision_record_pack.js +0 -53
  262. package/lib/phase_7_decision_resolution_pack.js +0 -53
  263. package/lib/phase_7_event_system_continuity_pack.js +0 -89
  264. package/lib/phase_7_event_system_pack.js +0 -76
  265. package/lib/phase_7_freeze_baseline_pack.js +0 -74
  266. package/lib/phase_7_freeze_review_pack.js +0 -65
  267. package/lib/phase_7_gate_pack.js +0 -58
  268. package/lib/phase_7_kafka_runtime_pack.js +0 -74
  269. package/lib/phase_7_mqtt_runtime_pack.js +0 -74
  270. package/lib/phase_7_nats_runtime_pack.js +0 -74
  271. package/lib/phase_7_webhook_event_bus_runtime_pack.js +0 -74
  272. package/lib/phase_8_closeout_pack.js +0 -46
  273. package/lib/phase_8_completion_pack.js +0 -82
  274. package/lib/phase_8_decision_record_pack.js +0 -54
  275. package/lib/phase_8_decision_resolution_pack.js +0 -53
  276. package/lib/phase_8_external_receipt_import_runtime_pack.js +0 -74
  277. package/lib/phase_8_external_result_import_runtime_pack.js +0 -74
  278. package/lib/phase_8_freeze_baseline_pack.js +0 -71
  279. package/lib/phase_8_freeze_review_pack.js +0 -64
  280. package/lib/phase_8_gate_pack.js +0 -58
  281. package/lib/phase_8_proof_bridge_continuity_pack.js +0 -86
  282. package/lib/phase_8_proof_bridges_pack.js +0 -72
  283. package/lib/phase_8_proof_bundle_normalization_runtime_pack.js +0 -74
  284. package/lib/phase_9_closeout_pack.js +0 -46
  285. package/lib/phase_9_completion_pack.js +0 -82
  286. package/lib/phase_9_custody_refs_runtime_pack.js +0 -74
  287. package/lib/phase_9_decision_record_pack.js +0 -54
  288. package/lib/phase_9_decision_resolution_pack.js +0 -53
  289. package/lib/phase_9_freeze_baseline_pack.js +0 -71
  290. package/lib/phase_9_freeze_review_pack.js +0 -64
  291. package/lib/phase_9_gate_pack.js +0 -58
  292. package/lib/phase_9_operator_accounting_bridges_runtime_pack.js +0 -74
  293. package/lib/phase_9_treasury_connectivity_pack.js +0 -72
  294. package/lib/phase_9_treasury_continuity_pack.js +0 -86
  295. package/lib/phase_9_treasury_destinations_runtime_pack.js +0 -74
  296. package/lib/phase_program_pack.js +0 -120
  297. package/lib/pricing_optimization_contract.js +0 -775
  298. package/lib/protocol_lane_contract.js +0 -117
  299. package/lib/provenance_lane_contract.js +0 -54
  300. package/lib/provider_lane_contract.js +0 -240
  301. package/lib/provider_network_contract.js +0 -149
  302. package/lib/provider_payout_execution.js +0 -155
  303. package/lib/provider_registry.js +0 -852
  304. package/lib/provider_runtime_journey_contract.js +0 -183
  305. package/lib/public_surface_policy_contract.js +0 -111
  306. package/lib/publish_plan.js +0 -51
  307. package/lib/rate_limiter.js +0 -81
  308. package/lib/record_queries.js +0 -48
  309. package/lib/release_candidate.js +0 -50
  310. package/lib/release_center.js +0 -1093
  311. package/lib/release_history.js +0 -205
  312. package/lib/release_manifest.js +0 -113
  313. package/lib/release_pack.js +0 -453
  314. package/lib/request_rate_limit.js +0 -144
  315. package/lib/resource_views.js +0 -31
  316. package/lib/revenue_launch_path_contract.js +0 -326
  317. package/lib/route_matchers.js +0 -34
  318. package/lib/route_params.js +0 -19
  319. package/lib/runtime_bridge.js +0 -124
  320. package/lib/runtime_operations_worker.js +0 -282
  321. package/lib/runtime_state_store.js +0 -495
  322. package/lib/settlement_bsv_live.js +0 -600
  323. package/lib/settlement_bsv_teranode.js +0 -117
  324. package/lib/settlement_lane_contract.js +0 -111
  325. package/lib/shared_signals_lane_contract.js +0 -54
  326. package/lib/signed_audit_provenance_contract.js +0 -83
  327. package/lib/soft_launch_pack.js +0 -78
  328. package/lib/stablecoin_lane_contract.js +0 -76
  329. package/lib/stripe_mpp_lane_contract.js +0 -96
  330. package/lib/stripe_mpp_payment_front.js +0 -258
  331. package/lib/telemetry_lane_contract.js +0 -54
  332. package/lib/treasury_destinations_contract.js +0 -764
  333. package/lib/treasury_egress_policy_contract.js +0 -91
  334. package/lib/treasury_lane_contract.js +0 -84
  335. package/lib/trust_portability_boundary_contract.js +0 -72
  336. package/lib/x402_facilitator.js +0 -198
  337. package/lib/x402_lane_contract.js +0 -136
  338. package/lib/x402_settlement_recovery.js +0 -175
  339. package/scripts/buyer_events_daily_report.js +0 -79
  340. package/scripts/registry_cli.js +0 -275
  341. package/scripts/state_backup_offsite.js +0 -196
  342. package/scripts/verify_a2a_rpc.js +0 -131
  343. package/scripts/verify_adapters.js +0 -554
  344. package/scripts/verify_agent_identity.js +0 -153
  345. package/scripts/verify_all.js +0 -4963
  346. package/scripts/verify_bolt_adapter.js +0 -128
  347. package/scripts/verify_buyer_event_log.js +0 -128
  348. package/scripts/verify_buyer_safety.js +0 -141
  349. package/scripts/verify_cdp_facilitator.js +0 -110
  350. package/scripts/verify_checkout_processor.js +0 -109
  351. package/scripts/verify_commerce_bridge.js +0 -177
  352. package/scripts/verify_control_plane_contracts.js +0 -34
  353. package/scripts/verify_control_plane_routes.js +0 -70
  354. package/scripts/verify_delivery_summary.js +0 -112
  355. package/scripts/verify_examples.js +0 -19
  356. package/scripts/verify_execution_dedupe.js +0 -189
  357. package/scripts/verify_execution_surfacing.js +0 -76
  358. package/scripts/verify_external_execution_retry.js +0 -140
  359. package/scripts/verify_final_activation.js +0 -191
  360. package/scripts/verify_first_run_conversions.js +0 -81
  361. package/scripts/verify_framework_provider_promotion.js +0 -152
  362. package/scripts/verify_full_catalog.js +0 -174
  363. package/scripts/verify_integrations.js +0 -620
  364. package/scripts/verify_l402_adapter.js +0 -86
  365. package/scripts/verify_lifecycle_continuity.js +0 -96
  366. package/scripts/verify_lifecycle_spend_binding.js +0 -88
  367. package/scripts/verify_market_lane_depth.js +0 -94
  368. package/scripts/verify_market_lane_promotion.js +0 -103
  369. package/scripts/verify_market_lane_traces.js +0 -98
  370. package/scripts/verify_market_lanes.js +0 -102
  371. package/scripts/verify_mpp_adapter.js +0 -128
  372. package/scripts/verify_operator_observability_boundary.js +0 -83
  373. package/scripts/verify_pricing_experiment_plan.js +0 -124
  374. package/scripts/verify_production_readiness.js +0 -268
  375. package/scripts/verify_provider_network.js +0 -819
  376. package/scripts/verify_provider_runtime_breadth.js +0 -109
  377. package/scripts/verify_provider_runtime_journeys.js +0 -111
  378. package/scripts/verify_rate_limiter.js +0 -52
  379. package/scripts/verify_refund_credit.js +0 -106
  380. package/scripts/verify_revenue_launch_paths.js +0 -105
  381. package/scripts/verify_runtime_durability.js +0 -52
  382. package/scripts/verify_runtime_state_guard.js +0 -117
  383. package/scripts/verify_service.js +0 -15421
  384. package/scripts/verify_settlement.js +0 -116
  385. package/scripts/verify_tooling.js +0 -1412
  386. package/scripts/verify_treasury_public_boundary.js +0 -97
  387. package/scripts/verify_verify_execute_settle.js +0 -209
  388. package/scripts/verify_x402_facilitator.js +0 -307
  389. package/scripts/verify_x402_settlement_recovery.js +0 -153
  390. package/server.js +0 -12245
@@ -1,117 +0,0 @@
1
- "use strict";
2
-
3
- const DEFAULT_BSV_SETTLEMENT_MODE = "bsv_teranode";
4
- const BSV_SETTLEMENT_ALIASES = new Set([
5
- "bsv_teranode"
6
- ]);
7
-
8
- function firstEnv(...names) {
9
- for (const name of names) {
10
- const value = process.env[name];
11
- if (typeof value === "string" && value.trim().length > 0) {
12
- return value.trim();
13
- }
14
- }
15
- return null;
16
- }
17
-
18
- function normalizeSettlementMode(mode) {
19
- const normalized = String(mode || "").trim().toLowerCase();
20
- if (!normalized) return DEFAULT_BSV_SETTLEMENT_MODE;
21
- if (BSV_SETTLEMENT_ALIASES.has(normalized)) return DEFAULT_BSV_SETTLEMENT_MODE;
22
- return normalized;
23
- }
24
-
25
- function isBsvTeranodeSettlementMode(mode) {
26
- return normalizeSettlementMode(mode) === DEFAULT_BSV_SETTLEMENT_MODE;
27
- }
28
-
29
- function loadBsvTeranodeConfig() {
30
- const amountMultiplier = Number(
31
- firstEnv("XYTARA_BSV_SATS_PER_USD_CENT", "XYTARA_BSV_TERANODE_SATS_PER_USD_CENT") || 100
32
- );
33
- return {
34
- settlement_mode: DEFAULT_BSV_SETTLEMENT_MODE,
35
- rail: "bsv_teranode",
36
- network: String(firstEnv("XYTARA_BSV_NETWORK", "XYTARA_BSV_TERANODE_NETWORK") || "mainnet").trim() || "mainnet",
37
- rpc_url: firstEnv("XYTARA_BSV_ARC_RPC_URL", "XYTARA_BSV_ARC_URL", "XYTARA_BSV_TERANODE_RPC_URL"),
38
- mode: String(firstEnv("XYTARA_BSV_MODE", "XYTARA_BSV_TERANODE_MODE") || "opreturn").trim() || "opreturn",
39
- merchant_address: firstEnv("XYTARA_BSV_MERCHANT_ADDRESS", "XYTARA_BSV_TERANODE_MERCHANT_ADDRESS"),
40
- merchant_paymail: firstEnv("XYTARA_BSV_MERCHANT_PAYMAIL", "XYTARA_BSV_TERANODE_MERCHANT_PAYMAIL"),
41
- merchant_label: String(firstEnv("XYTARA_BSV_MERCHANT_LABEL", "XYTARA_BSV_TERANODE_MERCHANT_LABEL") || "naxytra-runtime").trim() || "naxytra-runtime",
42
- use_metanet: String(firstEnv("XYTARA_BSV_USE_METANET", "XYTARA_BSV_TERANODE_USE_METANET") || "").trim().toLowerCase() === "true",
43
- required_confirmations: Math.max(0, Number(firstEnv("XYTARA_BSV_REQUIRED_CONFIRMATIONS", "XYTARA_BSV_TERANODE_REQUIRED_CONFIRMATIONS") || 1)) || 1,
44
- sats_per_usd_cent: Number.isFinite(amountMultiplier) && amountMultiplier > 0 ? amountMultiplier : 100
45
- };
46
- }
47
-
48
- function buildBsvTeranodeTreasuryDestination(accountId, settlementMode) {
49
- if (!isBsvTeranodeSettlementMode(settlementMode)) return null;
50
- const config = loadBsvTeranodeConfig();
51
- const externalRef = config.merchant_address || config.merchant_paymail || null;
52
- if (!externalRef) return null;
53
- const kind = config.merchant_address ? "bsv_teranode_address" : "bsv_teranode_paymail";
54
- return {
55
- destination_id: config.merchant_address
56
- ? `bsv_teranode_${config.merchant_address}`
57
- : `bsv_teranode_${config.merchant_paymail.replace(/[^a-z0-9]+/gi, "_").toLowerCase()}`,
58
- destination_kind: kind,
59
- account_id: accountId || null,
60
- settlement_mode: DEFAULT_BSV_SETTLEMENT_MODE,
61
- external_ref: externalRef,
62
- rail: config.rail,
63
- network: config.network
64
- };
65
- }
66
-
67
- function buildBsvTeranodeSettlementHints({
68
- settlementMode,
69
- amountMinor,
70
- currency,
71
- settlementBindingHash,
72
- treasuryDestination
73
- }) {
74
- if (!isBsvTeranodeSettlementMode(settlementMode)) return null;
75
- const config = loadBsvTeranodeConfig();
76
- return {
77
- rail: config.rail,
78
- settlement_mode: DEFAULT_BSV_SETTLEMENT_MODE,
79
- network: config.network,
80
- mode: config.mode,
81
- amount_satoshis: Math.max(1, Number(amountMinor || 0) * config.sats_per_usd_cent),
82
- amount_minor: Number(amountMinor || 0),
83
- currency: currency || "USD_CENTS",
84
- merchant_address: config.merchant_address,
85
- merchant_paymail: config.merchant_paymail,
86
- merchant_label: config.merchant_label,
87
- settlement_reference: settlementBindingHash || null,
88
- treasury_destination_id:
89
- treasuryDestination && treasuryDestination.destination_id
90
- ? treasuryDestination.destination_id
91
- : null,
92
- custody_external_ref:
93
- treasuryDestination && treasuryDestination.external_ref
94
- ? treasuryDestination.external_ref
95
- : null,
96
- metanet_enabled: config.use_metanet,
97
- required_confirmations: config.required_confirmations,
98
- teranode_rpc_configured: !!config.rpc_url
99
- };
100
- }
101
-
102
- function extractBsvTeranodePaymentReference(paymentPayload) {
103
- if (!paymentPayload || typeof paymentPayload !== "object") return null;
104
- if (paymentPayload.bsv_teranode && typeof paymentPayload.bsv_teranode === "object") {
105
- return paymentPayload.bsv_teranode;
106
- }
107
- return null;
108
- }
109
-
110
- module.exports = {
111
- buildBsvTeranodeSettlementHints,
112
- buildBsvTeranodeTreasuryDestination,
113
- extractBsvTeranodePaymentReference,
114
- isBsvTeranodeSettlementMode,
115
- loadBsvTeranodeConfig,
116
- normalizeSettlementMode
117
- };
@@ -1,111 +0,0 @@
1
- "use strict";
2
-
3
- const {
4
- summarizeDefaultTransactionCenter
5
- } = require("./catalog_contract");
6
- const {
7
- buildPhase2PaymentRailsPack,
8
- summarizePhase2PaymentRailsPack
9
- } = require("./phase_2_payment_rails_pack");
10
- const {
11
- buildPhase3NativeBsvPack,
12
- summarizePhase3NativeBsvPack
13
- } = require("./phase_3_native_bsv_pack");
14
- const {
15
- buildPhase5MajorRailsPack,
16
- summarizePhase5MajorRailsPack
17
- } = require("./phase_5_major_rails_pack");
18
-
19
- function buildSettlementLanePack() {
20
- const centerSummary = summarizeDefaultTransactionCenter();
21
- const phase2Pack = buildPhase2PaymentRailsPack();
22
- const phase3Pack = buildPhase3NativeBsvPack();
23
- const phase5Pack = buildPhase5MajorRailsPack();
24
- const settlementFamilies = [
25
- {
26
- family_ref: "native_bsv_family",
27
- settlement_modes: phase3Pack.native_shape.settlement_modes,
28
- lane_refs: phase3Pack.lane_refs,
29
- continuity_refs: phase3Pack.continuity_refs,
30
- operator_surfaces: phase3Pack.native_shape.operator_surfaces
31
- },
32
- {
33
- family_ref: "evm_and_stable_family",
34
- settlement_modes: phase2Pack.rail_shape.settlement_modes,
35
- lane_refs: phase2Pack.lane_refs,
36
- continuity_refs: ["/v1/phases/phase-2/summary"],
37
- operator_surfaces: phase2Pack.rail_shape.operator_surfaces
38
- },
39
- {
40
- family_ref: "major_alternative_rails_family",
41
- settlement_modes: phase5Pack.rail_shape.settlement_modes,
42
- lane_refs: phase5Pack.lane_refs,
43
- continuity_refs: ["/v1/phases/phase-5/major-rails-continuity/summary"],
44
- operator_surfaces: phase5Pack.rail_shape.operator_surfaces
45
- }
46
- ];
47
-
48
- return {
49
- product: "xytara",
50
- category: "machine-commerce-settlement-lane-pack",
51
- pack_version: "xytara-settlement-lane-pack-v1",
52
- lane_state: "multi_family_settlement_present",
53
- default_settlement_mode: centerSummary.default_settlement_mode,
54
- default_native_lane: "bsv_teranode",
55
- supported_surfaces: {
56
- settlement_list_ref: "/v1/settlement/bsv-teranode",
57
- settlement_readiness_ref: "/v1/settlement/bsv-teranode/readiness",
58
- phase_2_summary_ref: "/v1/phases/phase-2/summary",
59
- phase_3_summary_ref: "/v1/phases/phase-3/summary",
60
- phase_5_summary_ref: "/v1/phases/phase-5/summary",
61
- release_center_ref: "/v1/release-center/summary",
62
- payment_lane_ref: "/v1/x402"
63
- },
64
- settlement_families: settlementFamilies,
65
- phase_alignment: {
66
- phase_2_payment_rails: {
67
- pack: phase2Pack,
68
- summary: summarizePhase2PaymentRailsPack()
69
- },
70
- phase_3_native_bsv: {
71
- pack: phase3Pack,
72
- summary: summarizePhase3NativeBsvPack()
73
- },
74
- phase_5_major_rails: {
75
- pack: phase5Pack,
76
- summary: summarizePhase5MajorRailsPack()
77
- }
78
- },
79
- recommended_sequence: [
80
- "inspect_default_native_settlement_readiness",
81
- "choose_settlement_family_for_the_runtime_path",
82
- "follow_family_summary_into_lane_summary",
83
- "execute_paid_or_funded_runtime_flow",
84
- "inspect_payment_and_settlement_operator_records"
85
- ]
86
- };
87
- }
88
-
89
- function summarizeSettlementLanePack() {
90
- const pack = buildSettlementLanePack();
91
- const familyCount = Array.isArray(pack.settlement_families) ? pack.settlement_families.length : 0;
92
- const totalLaneCount = (pack.settlement_families || []).reduce((sum, family) => {
93
- return sum + (Array.isArray(family.lane_refs) ? family.lane_refs.length : 0);
94
- }, 0);
95
-
96
- return {
97
- product: "xytara",
98
- category: "machine-commerce-settlement-lane-pack-summary",
99
- summary_version: "xytara-settlement-lane-pack-summary-v1",
100
- lane_state: pack.lane_state,
101
- default_settlement_mode: pack.default_settlement_mode,
102
- settlement_family_count: familyCount,
103
- total_lane_count: totalLaneCount,
104
- linked_surfaces: pack.supported_surfaces
105
- };
106
- }
107
-
108
- module.exports = {
109
- buildSettlementLanePack,
110
- summarizeSettlementLanePack
111
- };
@@ -1,54 +0,0 @@
1
- "use strict";
2
-
3
- function buildSharedSignalsLanePack() {
4
- return {
5
- product: "xytara",
6
- category: "machine-commerce-shared-signals-lane-pack",
7
- pack_version: "xytara-shared-signals-lane-pack-v1",
8
- lane_state: "first_party_shared_signals_lane_present",
9
- posture: "real_time_risk_and_identity_event_exchange_lane",
10
- standards: ["openid_shared_signals", "caep"],
11
- signal_families: ["authority_events", "identity_binding_events", "trust_attention_events", "network_participation_events"],
12
- supported_surfaces: {
13
- auth_profiles_ref: "/v1/auth-profiles",
14
- identity_interop_ref: "/v1/identity-interop",
15
- trust_layer_ref: "/v1/economics/accounts/:account_id/trust-layer-summary",
16
- authority_attention_ref: "/v1/economics/accounts/:account_id/authority-attention-summary",
17
- network_participation_ref: "/v1/economics/accounts/:account_id/network-participation-attention-summary"
18
- },
19
- first_run_flows: [
20
- {
21
- flow_ref: "real_time_risk_signal_alignment",
22
- recommended_reason: "best path when partner systems need near-real-time signals about authority, trust, or machine-identity state changes",
23
- sequence: [
24
- "inspect_shared_signals_lane_summary",
25
- "map_native authority and identity events to shared signal posture",
26
- "connect trust and participation attention states to external signal exchange",
27
- "keep native authority decisions canonical inside xytara"
28
- ]
29
- }
30
- ],
31
- guardrails: [
32
- "shared signals should export state changes, not replace native decision logic",
33
- "risk and identity event exchange should remain bounded and reviewable"
34
- ]
35
- };
36
- }
37
-
38
- function summarizeSharedSignalsLanePack() {
39
- const pack = buildSharedSignalsLanePack();
40
- return {
41
- product: "xytara",
42
- category: "machine-commerce-shared-signals-lane-pack-summary",
43
- summary_version: "xytara-shared-signals-lane-pack-summary-v1",
44
- lane_state: pack.lane_state,
45
- standard_count: pack.standards.length,
46
- signal_family_count: pack.signal_families.length,
47
- linked_surfaces: pack.supported_surfaces
48
- };
49
- }
50
-
51
- module.exports = {
52
- buildSharedSignalsLanePack,
53
- summarizeSharedSignalsLanePack
54
- };
@@ -1,83 +0,0 @@
1
- "use strict";
2
-
3
- const packageJson = require("../package.json");
4
-
5
- function buildSignedAuditProvenanceContractPack() {
6
- return {
7
- ok: true,
8
- product: packageJson.name,
9
- category: "naxytra-signed-audit-provenance-contract",
10
- pack_version: "naxytra-signed-audit-provenance-contract-v1",
11
- doctrine: "xytara_signs_selected_audit_and_provenance_surfaces_without_collapsing_all_telemetry_into_evidence_truth",
12
- model_state: "core_now",
13
- core_claim: "selected audit and provenance surfaces are signed, exportable, and reviewable evidence channels",
14
- evidence_surfaces: [
15
- { surface_id: "runtime_activity_audit", surface_label: "runtime activity audit", surface_ref: "/v1/activity-ledger", evidence_class: "operational_audit" },
16
- { surface_id: "economic_activity_audit", surface_label: "economic activity audit", surface_ref: "/v1/reconciliation-report", evidence_class: "financial_audit" },
17
- { surface_id: "release_provenance", surface_label: "release provenance", surface_ref: "/v1/provenance", evidence_class: "release_supply_chain_provenance" },
18
- { surface_id: "artifact_distribution_provenance", surface_label: "artifact distribution provenance", surface_ref: "/v1/artifact-distribution", evidence_class: "artifact_supply_chain_provenance" },
19
- { surface_id: "shared_signal_export", surface_label: "shared signal export", surface_ref: "/v1/shared-signals", evidence_class: "shared_signal_export" },
20
- { surface_id: "proof_provenance_lane", surface_label: "proof provenance lane", surface_ref: "/v1/provenance", evidence_class: "proof_provenance" }
21
- ],
22
- required_fields: [
23
- "timestamp",
24
- "actor_id",
25
- "action_type",
26
- "source_surface",
27
- "payload_hash",
28
- "signature",
29
- "version"
30
- ],
31
- optional_fields: [
32
- "correlation_id",
33
- "proof_ref",
34
- "anchor_ref",
35
- "settlement_ref",
36
- "metadata"
37
- ],
38
- export_rules: [
39
- "signed_audit_records_may_be_exported_as_evidence",
40
- "provenance_records_may_strengthen_release_and_runtime_review",
41
- "logs_without_an_explicit_evidence_class_remain_operational_only",
42
- "signed_records_must_not_silently_become_proof_validity_themselves"
43
- ],
44
- linked_surfaces: {
45
- activity_ledger_ref: "/v1/activity-ledger",
46
- activity_ledger_summary_ref: "/v1/activity-ledger/summary",
47
- provenance_ref: "/v1/provenance",
48
- provenance_summary_ref: "/v1/provenance/summary",
49
- artifact_distribution_ref: "/v1/artifact-distribution",
50
- shared_signals_ref: "/v1/shared-signals"
51
- },
52
- claim_boundary: "claim_only_selected_audit_and_provenance_surfaces_as_signed_exportable_evidence_without_claiming_all_logs_are_evidence_grade"
53
- };
54
- }
55
-
56
- function summarizeSignedAuditProvenanceContractPack() {
57
- const pack = buildSignedAuditProvenanceContractPack();
58
- return {
59
- ok: true,
60
- product: pack.product,
61
- category: pack.category,
62
- summary_version: "naxytra-signed-audit-provenance-contract-summary-v1",
63
- pack_version: pack.pack_version,
64
- model_state: pack.model_state,
65
- evidence_surface_count: pack.evidence_surfaces.length,
66
- required_field_count: pack.required_fields.length,
67
- optional_field_count: pack.optional_fields.length,
68
- export_rule_count: pack.export_rules.length,
69
- linked_surfaces: pack.linked_surfaces
70
- };
71
- }
72
-
73
- function getSignedAuditProvenanceSurfaceDetail(surfaceId) {
74
- const normalized = String(surfaceId || "").trim().toLowerCase();
75
- return (buildSignedAuditProvenanceContractPack().evidence_surfaces || []).find((entry) => entry.surface_id === normalized) || null;
76
- }
77
-
78
- module.exports = {
79
- buildSignedAuditProvenanceContractPack,
80
- summarizeSignedAuditProvenanceContractPack,
81
- getSignedAuditProvenanceSurfaceDetail
82
- };
83
-
@@ -1,78 +0,0 @@
1
- "use strict";
2
-
3
- const packageJson = require("../package.json");
4
-
5
- function buildSoftLaunchPack() {
6
- return {
7
- ok: true,
8
- product: packageJson.name,
9
- category: "machine-commerce-soft-launch-pack",
10
- message_core: {
11
- headline: "governed machine commerce for builders who need paid execution, reusable credits, and proof-aware followthrough",
12
- short_pitch: "xytara gives agent builders and tool authors a machine-commerce spine for quote, pay, execute, inspect, and continue into proof without stitching together separate systems.",
13
- when_to_lead: [
14
- "when an agent or tool needs a paid capability path",
15
- "when repeat usage should use funded account balance instead of repeated manual payment",
16
- "when execution must stay inspectable and continue cleanly into proof review"
17
- ]
18
- },
19
- first_targets: [
20
- {
21
- audience_ref: "agent_builder",
22
- first_message: "start with one paid machine run and inspect the release center afterward",
23
- first_proof_path: "scenario.direct_pay.trust_verify"
24
- },
25
- {
26
- audience_ref: "adapter_author",
27
- first_message: "start from the minimal third-party starter and inspect promotion workflow next",
28
- first_proof_path: "partner.execution.minimal_echo"
29
- },
30
- {
31
- audience_ref: "tool_or_marketplace_author",
32
- first_message: "start with the launch summary and compare xytara against patchwork alternatives",
33
- first_proof_path: "scenario.direct_pay.trust_verify"
34
- }
35
- ],
36
- first_artifacts: {
37
- release_center: "/v1/release-center/summary",
38
- announcement: "/v1/announcement-pack/summary",
39
- outreach_proof: "/v1/outreach-proof/summary",
40
- adapter_partners: "/v1/adapter-partners/summary",
41
- first_cli: "xytara-release --center --summary",
42
- first_run_cli: "xytara first-run --run-quote --account ACCOUNT_REF --pretty"
43
- },
44
- outreach_sequence: [
45
- "send the short pitch and first proof path to a small builder set",
46
- "point each audience to the matching first artifact and cli",
47
- "watch which first path they actually try",
48
- "collect install, wording, and trust-posture confusion",
49
- "tighten docs and first-run friction before broader outreach"
50
- ],
51
- feedback_watchlist: [
52
- "install friction",
53
- "first-run confusion",
54
- "adapter authoring confusion",
55
- "promotion trust-model confusion",
56
- "difference between direct pay and funded-runtime paths"
57
- ]
58
- };
59
- }
60
-
61
- function summarizeSoftLaunchPack() {
62
- const pack = buildSoftLaunchPack();
63
- return {
64
- ok: true,
65
- product: pack.product,
66
- category: pack.category,
67
- target_count: pack.first_targets.length,
68
- artifact_count: Object.keys(pack.first_artifacts).length,
69
- outreach_step_count: pack.outreach_sequence.length,
70
- feedback_watch_count: pack.feedback_watchlist.length,
71
- first_cli: pack.first_artifacts.first_cli
72
- };
73
- }
74
-
75
- module.exports = {
76
- buildSoftLaunchPack,
77
- summarizeSoftLaunchPack
78
- };
@@ -1,76 +0,0 @@
1
- "use strict";
2
-
3
- const {
4
- buildPhase2UsdcRuntimePack,
5
- summarizePhase2UsdcRuntimePack
6
- } = require("./phase_2_usdc_runtime_pack");
7
- const {
8
- buildPhase2BaseUsdcRuntimePack,
9
- summarizePhase2BaseUsdcRuntimePack
10
- } = require("./phase_2_base_usdc_runtime_pack");
11
-
12
- function buildStablecoinLanePack() {
13
- const usdcPack = buildPhase2UsdcRuntimePack();
14
- const baseUsdcPack = buildPhase2BaseUsdcRuntimePack();
15
-
16
- return {
17
- product: "xytara",
18
- category: "machine-commerce-stablecoin-lane-pack",
19
- pack_version: "xytara-stablecoin-lane-pack-v1",
20
- lane_state: "first_party_usdc_present_with_adapter_ready_mobility_extensions",
21
- primary_asset_family: "usdc_and_stable_value_runtime_paths",
22
- first_party_runtime_lanes: {
23
- usdc: {
24
- pack: usdcPack,
25
- summary: summarizePhase2UsdcRuntimePack()
26
- },
27
- base_usdc: {
28
- pack: baseUsdcPack,
29
- summary: summarizePhase2BaseUsdcRuntimePack()
30
- }
31
- },
32
- adapter_ready_extensions: [
33
- {
34
- extension_id: "circle_nanopayments",
35
- state: "adapter_ready_next",
36
- why_it_matters: "high-frequency stable-value collection can complement credits-first repeat usage"
37
- },
38
- {
39
- extension_id: "circle_cctp",
40
- state: "adapter_ready_next",
41
- why_it_matters: "stable-value treasury mobility can complement the public runtime settlement family without redefining core execution"
42
- }
43
- ],
44
- supported_surfaces: {
45
- usdc_runtime_summary_ref: "/v1/phases/phase-2/usdc/summary",
46
- base_usdc_runtime_summary_ref: "/v1/phases/phase-2/base-usdc/summary",
47
- phase_2_summary_ref: "/v1/phases/phase-2/summary",
48
- settlement_family_ref: "/v1/settlement",
49
- payment_lane_ref: "/v1/x402"
50
- },
51
- recommended_sequence: [
52
- "inspect_usdc_runtime_summary",
53
- "inspect_base_plus_usdc_runtime_summary",
54
- "choose_stablecoin_or_native_lane_for_the_current_path",
55
- "use_adapter_ready_mobility_extensions_only_when_the_operating_need_is_real"
56
- ]
57
- };
58
- }
59
-
60
- function summarizeStablecoinLanePack() {
61
- const pack = buildStablecoinLanePack();
62
- return {
63
- product: "xytara",
64
- category: "machine-commerce-stablecoin-lane-pack-summary",
65
- summary_version: "xytara-stablecoin-lane-pack-summary-v1",
66
- lane_state: pack.lane_state,
67
- extension_count: Array.isArray(pack.adapter_ready_extensions) ? pack.adapter_ready_extensions.length : 0,
68
- surface_count: Object.keys(pack.supported_surfaces).length,
69
- linked_surfaces: pack.supported_surfaces
70
- };
71
- }
72
-
73
- module.exports = {
74
- buildStablecoinLanePack,
75
- summarizeStablecoinLanePack
76
- };
@@ -1,96 +0,0 @@
1
- "use strict";
2
-
3
- function buildStripeMppLanePack() {
4
- return {
5
- product: "xytara",
6
- category: "machine-commerce-stripe-mpp-lane-pack",
7
- pack_version: "xytara-stripe-mpp-lane-pack-v1",
8
- lane_state: "first_party_checkout_present",
9
- posture: "hosted_checkout_and_external_funding_entry",
10
- provider_family: "stripe_mpp_compatible_checkout",
11
- supported_surfaces: {
12
- security_ref: "/v1/stripe-mpp/security",
13
- commands_execute_ref: "/mpp/commands/execute",
14
- mcp_invoke_ref: "/mpp/mcp/tools/invoke",
15
- purchase_intents_ref: "/v1/checkout/purchase-intents",
16
- purchase_intent_detail_ref_template: "/v1/checkout/purchase-intents/:purchase_intent_id",
17
- checkout_session_create_ref_template: "/v1/checkout/purchase-intents/:purchase_intent_id/session",
18
- checkout_session_detail_ref_template: "/v1/checkout/sessions/:checkout_session_id",
19
- checkout_event_normalize_ref: "/v1/checkout/events/normalize",
20
- checkout_event_detail_ref_template: "/v1/checkout/events/:event_id",
21
- hosted_checkout_operator_surface_ref: "/v1/operator-shell/summary",
22
- external_credit_grants_ref: "/v1/credit-bridge/grants"
23
- },
24
- first_run_flows: [
25
- {
26
- flow_ref: "stripe_mpp.credits_topup",
27
- recommended_reason: "best first public checkout path for turning external payment into reusable machine credits",
28
- sequence: [
29
- "create_purchase_intent",
30
- "create_checkout_session",
31
- "normalize_paid_event",
32
- "issue_runtime_credits",
33
- "continue_with_credits_first_execution"
34
- ],
35
- example_surfaces: {
36
- purchase_intents_ref: "/v1/checkout/purchase-intents",
37
- checkout_event_normalize_ref: "/v1/checkout/events/normalize",
38
- credit_balance_ref_template: "/v1/economics/accounts/:account_id/credit-balance"
39
- }
40
- },
41
- {
42
- flow_ref: "stripe_mpp.single_task_execution",
43
- recommended_reason: "best first public hosted-pay path for one task without building a separate provider-specific runtime",
44
- sequence: [
45
- "create_purchase_intent",
46
- "create_checkout_session",
47
- "normalize_paid_event",
48
- "dispatch_runtime_execution",
49
- "inspect_transaction_and_followthrough"
50
- ],
51
- example_surfaces: {
52
- purchase_intents_ref: "/v1/checkout/purchase-intents",
53
- runtime_bridge_dispatches_ref: "/v1/runtime-bridge/dispatches",
54
- operator_shell_ref: "/v1/operator-shell/summary"
55
- }
56
- }
57
- ],
58
- provider_boundary: {
59
- public_story: "hosted checkout funding and authorization enter through a narrow interoperable lane",
60
- not_claimed_as_core: [
61
- "provider-specific checkout semantics as the center of the stack",
62
- "checkout-provider lock-in as the primary runtime identity"
63
- ],
64
- operator_posture: [
65
- "refund review remains explicit and bounded",
66
- "operator shell keeps hosted checkout purchase and refund visibility"
67
- ]
68
- },
69
- recommended_sequence: [
70
- "inspect_stripe_mpp_lane_summary",
71
- "create_purchase_intent",
72
- "create_checkout_session",
73
- "normalize_provider_event",
74
- "continue_into_credits_or_single_task_execution"
75
- ]
76
- };
77
- }
78
-
79
- function summarizeStripeMppLanePack() {
80
- const pack = buildStripeMppLanePack();
81
- return {
82
- product: "xytara",
83
- category: "machine-commerce-stripe-mpp-lane-pack-summary",
84
- summary_version: "xytara-stripe-mpp-lane-pack-summary-v1",
85
- lane_state: pack.lane_state,
86
- posture: pack.posture,
87
- first_run_flow_count: Array.isArray(pack.first_run_flows) ? pack.first_run_flows.length : 0,
88
- surface_count: Object.keys(pack.supported_surfaces).length,
89
- linked_surfaces: pack.supported_surfaces
90
- };
91
- }
92
-
93
- module.exports = {
94
- buildStripeMppLanePack,
95
- summarizeStripeMppLanePack
96
- };