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.
- package/README.md +120 -92
- package/RELEASE_NOTES.md +7 -3
- package/START_HERE.md +56 -224
- package/bin/xytara.js +21 -8
- package/client.js +79 -1
- package/lib/{delivery_receipt.js → delivery_receipt_verify.js} +14 -100
- package/package.json +25 -35
- package/scripts/verify_client.js +418 -0
- package/scripts/verify_release_candidate.js +146 -45
- package/.env.example +0 -173
- package/ADAPTER_START_HERE.md +0 -56
- package/BSV_TERANODE_PLATFORM_DISCONTINUITY_RUNBOOK.md +0 -126
- package/CARRIED_HANDOFF_DEMO.md +0 -60
- package/EXAMPLE_PATHS.md +0 -53
- package/FINAL_CONTRACT.md +0 -498
- package/PARTNER_READY_PATH.md +0 -71
- package/PUBLIC_DEMO_SCRIPT.md +0 -78
- package/REAL_PAYMENT_SETUP.md +0 -320
- package/SERVICE_CONTRACT.md +0 -419
- package/SUPABASE_RUNTIME_STATE_SETUP.md +0 -61
- package/TERMINOLOGY.md +0 -50
- package/WHY_XYTARA_XOONYA.md +0 -63
- package/XT1_EXECUTION_TRUTH_STANDARD.md +0 -78
- package/XYTARA_ADAPTER_PROTOCOL_TRUTH_MODEL.md +0 -75
- package/XYTARA_AUTONOMOUS_ENTRY_MODEL.md +0 -124
- package/XYTARA_DEFAULT_PATH_MODEL.md +0 -84
- package/XYTARA_EXECUTION_TRUTH_MODEL.md +0 -171
- package/XYTARA_PAYMENT_RAIL_TRUTH_MODEL.md +0 -68
- package/adapters/AUTHORING_GUIDE.md +0 -244
- package/adapters/ONBOARDING_POSTURE.md +0 -61
- package/adapters/THIRD_PARTY_SUBMISSION_PROCESS.md +0 -84
- package/adapters/adapter-manifest.schema.json +0 -283
- package/adapters/examples/example-execution-adapter.js +0 -61
- package/adapters/examples/example-execution-adapter.manifest.json +0 -81
- package/adapters/examples/example-settlement-adapter.js +0 -55
- package/adapters/examples/example-settlement-adapter.manifest.json +0 -78
- package/adapters/examples/example-third-party-acp-registration.submission-bundle.json +0 -124
- package/adapters/examples/example-third-party-erc8004-registration.submission-bundle.json +0 -121
- package/adapters/examples/example-third-party-identity-registration.certification-pack.json +0 -22
- package/adapters/examples/example-third-party-identity-registration.record.json +0 -26
- package/adapters/examples/example-third-party-identity-registration.submission-bundle.json +0 -126
- package/adapters/examples/example-third-party-langchain-registration.submission-bundle.json +0 -124
- package/adapters/examples/example-third-party-mpp-registration.submission-bundle.json +0 -120
- package/adapters/examples/example-third-party-registration.certification-pack.json +0 -22
- package/adapters/examples/example-third-party-registration.record.json +0 -28
- package/adapters/examples/example-third-party-registration.submission-bundle.json +0 -126
- package/adapters/examples/example-third-party-settlement-registration.certification-pack.json +0 -22
- package/adapters/examples/example-third-party-settlement-registration.record.json +0 -26
- package/adapters/examples/example-third-party-settlement-registration.submission-bundle.json +0 -127
- package/adapters/examples/langchain-reference-execution-adapter.js +0 -81
- package/adapters/examples/langchain-reference-execution-adapter.manifest.json +0 -79
- package/adapters/examples/langgraph-reference-execution-adapter.js +0 -81
- package/adapters/examples/langgraph-reference-execution-adapter.manifest.json +0 -79
- package/adapters/examples/minimal-third-party-execution-adapter.js +0 -61
- package/adapters/examples/minimal-third-party-execution-adapter.manifest.json +0 -79
- package/adapters/examples/minimal-third-party-execution-registration.record.json +0 -26
- package/adapters/examples/minimal-third-party-execution.certification-pack.json +0 -22
- package/adapters/examples/minimal-third-party-execution.submission-bundle.json +0 -126
- package/adapters/integration-certification-pack.schema.json +0 -82
- package/adapters/integration-registration-record.schema.json +0 -114
- package/adapters/integration-submission-bundle-set.schema.json +0 -39
- package/adapters/integration-submission-bundle.schema.json +0 -34
- package/adapters/interfaces.js +0 -56
- package/bin/xytara-release.js +0 -1429
- package/examples/_demo_env.js +0 -40
- package/examples/adapter_review_walkthrough.js +0 -54
- package/examples/export_carried_handoff.js +0 -81
- package/examples/funded_runtime_walkthrough.js +0 -71
- package/examples/partner_launch_walkthrough.js +0 -44
- package/examples/quickstart.js +0 -3256
- package/fixtures/catalog.js +0 -1156
- package/index.js +0 -395
- package/integrations/dispatch.js +0 -276
- package/integrations/registry-snapshot.schema.json +0 -36
- package/integrations/registry.js +0 -2261
- package/integrations/views.js +0 -28
- package/lib/a2a_lane_contract.js +0 -104
- package/lib/a2a_rpc.js +0 -287
- package/lib/a2c_lane_contract.js +0 -111
- package/lib/account_auth.js +0 -585
- package/lib/acp_lane_contract.js +0 -54
- package/lib/activity_audit_contract.js +0 -322
- package/lib/adapter_certification_contract.js +0 -130
- package/lib/adapter_depth_contract.js +0 -218
- package/lib/adapter_pack.js +0 -118
- package/lib/adapter_partner_pack.js +0 -89
- package/lib/adapter_promotion_pack.js +0 -89
- package/lib/adapter_protocol_truth_contract.js +0 -229
- package/lib/agent_identity.js +0 -162
- package/lib/announcement_pack.js +0 -61
- package/lib/artifact_distribution_lane_contract.js +0 -54
- package/lib/asyncapi_contract.js +0 -150
- package/lib/auth_interop_contract.js +0 -80
- package/lib/authority_binding_lifecycle_contract.js +0 -182
- package/lib/autonomous_entry_contract.js +0 -409
- package/lib/bolt_adapter.js +0 -187
- package/lib/bolt_lane_contract.js +0 -55
- package/lib/bolt_payment_front.js +0 -224
- package/lib/business_cockpit.js +0 -378
- package/lib/buyer_event_log.js +0 -230
- package/lib/buyer_safety_policy.js +0 -132
- package/lib/capability_execution_truth.js +0 -276
- package/lib/capability_registry.js +0 -633
- package/lib/catalog_contract.js +0 -966
- package/lib/catalog_family_model.js +0 -193
- package/lib/catalog_views.js +0 -55
- package/lib/cdp_jwt.js +0 -57
- package/lib/checkout_event_security.js +0 -142
- package/lib/checkout_processor_adapter.js +0 -217
- package/lib/cloudevents_contract.js +0 -80
- package/lib/command_flow.js +0 -911
- package/lib/commerce_artifacts.js +0 -591
- package/lib/commerce_authority.js +0 -449
- package/lib/commerce_bridge.js +0 -274
- package/lib/commerce_cases.js +0 -399
- package/lib/commerce_checkout.js +0 -509
- package/lib/commerce_coordination.js +0 -346
- package/lib/commerce_economics.js +0 -4017
- package/lib/commerce_identity.js +0 -578
- package/lib/commerce_quotes.js +0 -266
- package/lib/commerce_reports.js +0 -14461
- package/lib/commerce_runtime.js +0 -322
- package/lib/commerce_shell.js +0 -257
- package/lib/crypto_agility_matrix.js +0 -125
- package/lib/default_path_contract.js +0 -412
- package/lib/delivery_summary_contract.js +0 -95
- package/lib/ecosystem_entry.js +0 -64
- package/lib/erc8004_lane_contract.js +0 -65
- package/lib/event_system_lane_contract.js +0 -75
- package/lib/execution_dedupe.js +0 -86
- package/lib/execution_truth_contract.js +0 -234
- package/lib/external_credit_bridge.js +0 -142
- package/lib/external_execution_policy.js +0 -143
- package/lib/external_execution_runtime.js +0 -238
- package/lib/feature_control_lane_contract.js +0 -54
- package/lib/first_run_conversion_contract.js +0 -290
- package/lib/framework_lane_contract.js +0 -89
- package/lib/framework_provider_promotion.js +0 -235
- package/lib/full_catalog_contract.js +0 -525
- package/lib/go_live_operator_pack.js +0 -391
- package/lib/http_transport.js +0 -99
- package/lib/identity_auth.js +0 -175
- package/lib/identity_interop_contract.js +0 -82
- package/lib/integration_matrix_contract.js +0 -102
- package/lib/l402_adapter.js +0 -241
- package/lib/l402_lane_contract.js +0 -55
- package/lib/l402_payment_front.js +0 -265
- package/lib/launch_narrative.js +0 -53
- package/lib/lifecycle_continuity_contract.js +0 -115
- package/lib/machine_identity_registry_contract.js +0 -199
- package/lib/major_rails_lane_contract.js +0 -150
- package/lib/market_lane_contract.js +0 -467
- package/lib/market_lane_depth_contract.js +0 -182
- package/lib/market_lane_promotion_contract.js +0 -210
- package/lib/market_lane_trace_contract.js +0 -278
- package/lib/mcp_lane_contract.js +0 -137
- package/lib/mpp_adapter.js +0 -237
- package/lib/network_transport.js +0 -110
- package/lib/offline_verifiability_recovery_contract.js +0 -155
- package/lib/openapi_contract.js +0 -300
- package/lib/operational_receipt_contract.js +0 -165
- package/lib/operator_intelligence.js +0 -407
- package/lib/outreach_copy_pack.js +0 -51
- package/lib/outreach_message_pack.js +0 -71
- package/lib/outreach_proof.js +0 -71
- package/lib/outreach_target_pack.js +0 -60
- package/lib/partner_intelligence.js +0 -105
- package/lib/payment_config.js +0 -257
- package/lib/payment_front_registry.js +0 -53
- package/lib/payment_protocol_contract.js +0 -165
- package/lib/payment_rail_truth_contract.js +0 -324
- package/lib/payment_verification.js +0 -357
- package/lib/phase_10_closeout_pack.js +0 -45
- package/lib/phase_10_completion_pack.js +0 -76
- package/lib/phase_10_decision_record_pack.js +0 -54
- package/lib/phase_10_decision_resolution_pack.js +0 -53
- package/lib/phase_10_demand_signal_adapters_runtime_pack.js +0 -74
- package/lib/phase_10_ecosystem_backlog_triage_runtime_pack.js +0 -74
- package/lib/phase_10_freeze_baseline_pack.js +0 -67
- package/lib/phase_10_freeze_review_pack.js +0 -64
- package/lib/phase_10_gate_pack.js +0 -57
- package/lib/phase_10_long_tail_continuity_pack.js +0 -80
- package/lib/phase_10_long_tail_ecosystem_pack.js +0 -66
- package/lib/phase_10_niche_extension_registry_runtime_pack.js +0 -74
- package/lib/phase_1_claude_mcp_pack.js +0 -60
- package/lib/phase_1_claude_mcp_runtime_pack.js +0 -52
- package/lib/phase_1_ecosystem_pack.js +0 -67
- package/lib/phase_1_openai_codex_pack.js +0 -60
- package/lib/phase_1_openai_codex_runtime_pack.js +0 -52
- package/lib/phase_2_base_runtime_pack.js +0 -71
- package/lib/phase_2_base_usdc_runtime_pack.js +0 -72
- package/lib/phase_2_closeout_pack.js +0 -65
- package/lib/phase_2_completion_pack.js +0 -113
- package/lib/phase_2_decision_record_pack.js +0 -66
- package/lib/phase_2_decision_resolution_pack.js +0 -69
- package/lib/phase_2_eth_runtime_pack.js +0 -70
- package/lib/phase_2_evm_base_runtime_pack.js +0 -73
- package/lib/phase_2_evm_runtime_pack.js +0 -71
- package/lib/phase_2_flip_preview_pack.js +0 -60
- package/lib/phase_2_freeze_review_pack.js +0 -99
- package/lib/phase_2_gate_pack.js +0 -77
- package/lib/phase_2_payment_rails_pack.js +0 -71
- package/lib/phase_2_usdc_runtime_pack.js +0 -71
- package/lib/phase_3_brc_runtime_pack.js +0 -81
- package/lib/phase_3_bsv_teranode_runtime_pack.js +0 -83
- package/lib/phase_3_closeout_pack.js +0 -62
- package/lib/phase_3_completion_pack.js +0 -94
- package/lib/phase_3_decision_record_pack.js +0 -64
- package/lib/phase_3_decision_resolution_pack.js +0 -69
- package/lib/phase_3_freeze_baseline_pack.js +0 -67
- package/lib/phase_3_freeze_review_pack.js +0 -80
- package/lib/phase_3_gate_pack.js +0 -76
- package/lib/phase_3_metanet_runtime_pack.js +0 -81
- package/lib/phase_3_native_bsv_pack.js +0 -91
- package/lib/phase_3_native_continuity_pack.js +0 -82
- package/lib/phase_4_attestation_runtime_pack.js +0 -75
- package/lib/phase_4_closeout_pack.js +0 -45
- package/lib/phase_4_completion_pack.js +0 -94
- package/lib/phase_4_decision_record_pack.js +0 -54
- package/lib/phase_4_decision_resolution_pack.js +0 -45
- package/lib/phase_4_erc8004_runtime_pack.js +0 -76
- package/lib/phase_4_freeze_baseline_pack.js +0 -67
- package/lib/phase_4_freeze_review_pack.js +0 -68
- package/lib/phase_4_gate_pack.js +0 -58
- package/lib/phase_4_identity_registry_runtime_pack.js +0 -75
- package/lib/phase_4_identity_trust_pack.js +0 -73
- package/lib/phase_4_trust_continuity_pack.js +0 -86
- package/lib/phase_5_antelope_runtime_pack.js +0 -76
- package/lib/phase_5_closeout_pack.js +0 -44
- package/lib/phase_5_completion_pack.js +0 -82
- package/lib/phase_5_constellation_dag_runtime_pack.js +0 -76
- package/lib/phase_5_decision_record_pack.js +0 -54
- package/lib/phase_5_decision_resolution_pack.js +0 -45
- package/lib/phase_5_digibyte_dgb_runtime_pack.js +0 -76
- package/lib/phase_5_freeze_baseline_pack.js +0 -67
- package/lib/phase_5_freeze_review_pack.js +0 -68
- package/lib/phase_5_gate_pack.js +0 -58
- package/lib/phase_5_hedera_hbar_runtime_pack.js +0 -76
- package/lib/phase_5_kaspa_kas_runtime_pack.js +0 -76
- package/lib/phase_5_major_rails_continuity_pack.js +0 -86
- package/lib/phase_5_major_rails_pack.js +0 -110
- package/lib/phase_5_metal_runtime_pack.js +0 -76
- package/lib/phase_5_polkadot_dot_runtime_pack.js +0 -76
- package/lib/phase_5_proton_xpr_runtime_pack.js +0 -76
- package/lib/phase_5_solana_runtime_pack.js +0 -76
- package/lib/phase_6_autogen_runtime_pack.js +0 -72
- package/lib/phase_6_closeout_pack.js +0 -46
- package/lib/phase_6_completion_pack.js +0 -77
- package/lib/phase_6_decision_record_pack.js +0 -54
- package/lib/phase_6_decision_resolution_pack.js +0 -53
- package/lib/phase_6_framework_continuity_pack.js +0 -81
- package/lib/phase_6_framework_runtime_pack.js +0 -68
- package/lib/phase_6_freeze_baseline_pack.js +0 -68
- package/lib/phase_6_freeze_review_pack.js +0 -65
- package/lib/phase_6_gate_pack.js +0 -59
- package/lib/phase_6_langchain_runtime_pack.js +0 -72
- package/lib/phase_6_langgraph_runtime_pack.js +0 -72
- package/lib/phase_6_semantic_kernel_runtime_pack.js +0 -72
- package/lib/phase_7_closeout_pack.js +0 -45
- package/lib/phase_7_completion_pack.js +0 -85
- package/lib/phase_7_decision_record_pack.js +0 -53
- package/lib/phase_7_decision_resolution_pack.js +0 -53
- package/lib/phase_7_event_system_continuity_pack.js +0 -89
- package/lib/phase_7_event_system_pack.js +0 -76
- package/lib/phase_7_freeze_baseline_pack.js +0 -74
- package/lib/phase_7_freeze_review_pack.js +0 -65
- package/lib/phase_7_gate_pack.js +0 -58
- package/lib/phase_7_kafka_runtime_pack.js +0 -74
- package/lib/phase_7_mqtt_runtime_pack.js +0 -74
- package/lib/phase_7_nats_runtime_pack.js +0 -74
- package/lib/phase_7_webhook_event_bus_runtime_pack.js +0 -74
- package/lib/phase_8_closeout_pack.js +0 -46
- package/lib/phase_8_completion_pack.js +0 -82
- package/lib/phase_8_decision_record_pack.js +0 -54
- package/lib/phase_8_decision_resolution_pack.js +0 -53
- package/lib/phase_8_external_receipt_import_runtime_pack.js +0 -74
- package/lib/phase_8_external_result_import_runtime_pack.js +0 -74
- package/lib/phase_8_freeze_baseline_pack.js +0 -71
- package/lib/phase_8_freeze_review_pack.js +0 -64
- package/lib/phase_8_gate_pack.js +0 -58
- package/lib/phase_8_proof_bridge_continuity_pack.js +0 -86
- package/lib/phase_8_proof_bridges_pack.js +0 -72
- package/lib/phase_8_proof_bundle_normalization_runtime_pack.js +0 -74
- package/lib/phase_9_closeout_pack.js +0 -46
- package/lib/phase_9_completion_pack.js +0 -82
- package/lib/phase_9_custody_refs_runtime_pack.js +0 -74
- package/lib/phase_9_decision_record_pack.js +0 -54
- package/lib/phase_9_decision_resolution_pack.js +0 -53
- package/lib/phase_9_freeze_baseline_pack.js +0 -71
- package/lib/phase_9_freeze_review_pack.js +0 -64
- package/lib/phase_9_gate_pack.js +0 -58
- package/lib/phase_9_operator_accounting_bridges_runtime_pack.js +0 -74
- package/lib/phase_9_treasury_connectivity_pack.js +0 -72
- package/lib/phase_9_treasury_continuity_pack.js +0 -86
- package/lib/phase_9_treasury_destinations_runtime_pack.js +0 -74
- package/lib/phase_program_pack.js +0 -120
- package/lib/pricing_optimization_contract.js +0 -775
- package/lib/protocol_lane_contract.js +0 -117
- package/lib/provenance_lane_contract.js +0 -54
- package/lib/provider_lane_contract.js +0 -240
- package/lib/provider_network_contract.js +0 -149
- package/lib/provider_payout_execution.js +0 -155
- package/lib/provider_registry.js +0 -852
- package/lib/provider_runtime_journey_contract.js +0 -183
- package/lib/public_surface_policy_contract.js +0 -111
- package/lib/publish_plan.js +0 -51
- package/lib/rate_limiter.js +0 -81
- package/lib/record_queries.js +0 -48
- package/lib/release_candidate.js +0 -50
- package/lib/release_center.js +0 -1093
- package/lib/release_history.js +0 -205
- package/lib/release_manifest.js +0 -113
- package/lib/release_pack.js +0 -453
- package/lib/request_rate_limit.js +0 -144
- package/lib/resource_views.js +0 -31
- package/lib/revenue_launch_path_contract.js +0 -326
- package/lib/route_matchers.js +0 -34
- package/lib/route_params.js +0 -19
- package/lib/runtime_bridge.js +0 -124
- package/lib/runtime_operations_worker.js +0 -282
- package/lib/runtime_state_store.js +0 -495
- package/lib/settlement_bsv_live.js +0 -600
- package/lib/settlement_bsv_teranode.js +0 -117
- package/lib/settlement_lane_contract.js +0 -111
- package/lib/shared_signals_lane_contract.js +0 -54
- package/lib/signed_audit_provenance_contract.js +0 -83
- package/lib/soft_launch_pack.js +0 -78
- package/lib/stablecoin_lane_contract.js +0 -76
- package/lib/stripe_mpp_lane_contract.js +0 -96
- package/lib/stripe_mpp_payment_front.js +0 -258
- package/lib/telemetry_lane_contract.js +0 -54
- package/lib/treasury_destinations_contract.js +0 -764
- package/lib/treasury_egress_policy_contract.js +0 -91
- package/lib/treasury_lane_contract.js +0 -84
- package/lib/trust_portability_boundary_contract.js +0 -72
- package/lib/x402_facilitator.js +0 -198
- package/lib/x402_lane_contract.js +0 -136
- package/lib/x402_settlement_recovery.js +0 -175
- package/scripts/buyer_events_daily_report.js +0 -79
- package/scripts/registry_cli.js +0 -275
- package/scripts/state_backup_offsite.js +0 -196
- package/scripts/verify_a2a_rpc.js +0 -131
- package/scripts/verify_adapters.js +0 -554
- package/scripts/verify_agent_identity.js +0 -153
- package/scripts/verify_all.js +0 -4963
- package/scripts/verify_bolt_adapter.js +0 -128
- package/scripts/verify_buyer_event_log.js +0 -128
- package/scripts/verify_buyer_safety.js +0 -141
- package/scripts/verify_cdp_facilitator.js +0 -110
- package/scripts/verify_checkout_processor.js +0 -109
- package/scripts/verify_commerce_bridge.js +0 -177
- package/scripts/verify_control_plane_contracts.js +0 -34
- package/scripts/verify_control_plane_routes.js +0 -70
- package/scripts/verify_delivery_summary.js +0 -112
- package/scripts/verify_examples.js +0 -19
- package/scripts/verify_execution_dedupe.js +0 -189
- package/scripts/verify_execution_surfacing.js +0 -76
- package/scripts/verify_external_execution_retry.js +0 -140
- package/scripts/verify_final_activation.js +0 -191
- package/scripts/verify_first_run_conversions.js +0 -81
- package/scripts/verify_framework_provider_promotion.js +0 -152
- package/scripts/verify_full_catalog.js +0 -174
- package/scripts/verify_integrations.js +0 -620
- package/scripts/verify_l402_adapter.js +0 -86
- package/scripts/verify_lifecycle_continuity.js +0 -96
- package/scripts/verify_lifecycle_spend_binding.js +0 -88
- package/scripts/verify_market_lane_depth.js +0 -94
- package/scripts/verify_market_lane_promotion.js +0 -103
- package/scripts/verify_market_lane_traces.js +0 -98
- package/scripts/verify_market_lanes.js +0 -102
- package/scripts/verify_mpp_adapter.js +0 -128
- package/scripts/verify_operator_observability_boundary.js +0 -83
- package/scripts/verify_pricing_experiment_plan.js +0 -124
- package/scripts/verify_production_readiness.js +0 -268
- package/scripts/verify_provider_network.js +0 -819
- package/scripts/verify_provider_runtime_breadth.js +0 -109
- package/scripts/verify_provider_runtime_journeys.js +0 -111
- package/scripts/verify_rate_limiter.js +0 -52
- package/scripts/verify_refund_credit.js +0 -106
- package/scripts/verify_revenue_launch_paths.js +0 -105
- package/scripts/verify_runtime_durability.js +0 -52
- package/scripts/verify_runtime_state_guard.js +0 -117
- package/scripts/verify_service.js +0 -15421
- package/scripts/verify_settlement.js +0 -116
- package/scripts/verify_tooling.js +0 -1412
- package/scripts/verify_treasury_public_boundary.js +0 -97
- package/scripts/verify_verify_execute_settle.js +0 -209
- package/scripts/verify_x402_facilitator.js +0 -307
- package/scripts/verify_x402_settlement_recovery.js +0 -153
- 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
|
-
|
package/lib/soft_launch_pack.js
DELETED
|
@@ -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
|
-
};
|