Repository navigation
consolidate migration plan - #2
Conversation
- Merge MIGRATION.md into REQUIREMENTS.md as single source of truth - Update domains to x402.aibtc.com (prod) / x402.aibtc.dev (staging) - Add 5 API categories: inference, stacks, hashing, storage - Document 41 endpoints with pricing strategies (fixed + dynamic) - Add reference patterns from stacks-tracker for /stacks endpoints - Include implementation phases and blockers - Update CLAUDE.md to reflect expanded scope Co-Authored-By: Claude Opus 4.5 <[email protected]>
Update wrangler.jsonc and README.md to use correct domain pattern: - x402.aibtc.com (production) - x402.aibtc.dev (staging) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
x402-api | 9cd40e6 | Jan 12 2026, 05:35 PM |
There was a problem hiding this comment.
Pull request overview
This PR consolidates the migration plan for transitioning from stx402.com to x402.aibtc.com, merging MIGRATION.md into REQUIREMENTS.md as a single source of truth. The changes update domain names, expand the API specification to 41 endpoints across 5 categories, and align documentation across all files.
Changes:
- Updated domains from
x402-apis.aibtc.com/devtox402.aibtc.com/devacross all configuration and documentation files - Consolidated and expanded REQUIREMENTS.md with comprehensive API specifications (5 categories: inference, stacks, hashing, storage with 41 total endpoints)
- Updated CLAUDE.md and README.md to reflect the expanded scope and new domain pattern
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| wrangler.jsonc | Updated domain patterns to x402.aibtc.com/dev; added workers_dev flag; reformatted configuration for readability |
| REQUIREMENTS.md | Major expansion: merged migration plan, added 5 API categories with 41 endpoints, pricing strategies, external API dependencies, implementation phases, and infrastructure specifications |
| README.md | Updated domain URLs in examples to match new x402.aibtc.com pattern |
| CLAUDE.md | Updated project overview, domain URLs, API categories, and reference patterns to reflect expanded scope |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| | `ai` | 0.003 | AI-enhanced operations | | ||
| | `storage_read` | 0.001 | Read from storage | | ||
| | `storage_write` | 0.002 | Write to storage | |
There was a problem hiding this comment.
The pricing table in CLAUDE.md is incomplete compared to REQUIREMENTS.md. It's missing the heavy_ai (0.01 STX) and storage_write_large (0.005 STX) tiers that are defined in REQUIREMENTS.md lines 74 and 77. For consistency, either these tiers should be added to CLAUDE.md, or if they're intentionally omitted from the quick reference, a note should indicate that the full tier list is in REQUIREMENTS.md.
| | `ai` | 0.003 | AI-enhanced operations | | |
| | `storage_read` | 0.001 | Read from storage | | |
| | `storage_write` | 0.002 | Write to storage | | |
| | `ai` | 0.003 | AI-enhanced operations | | |
| | `heavy_ai` | 0.01 | High-cost AI operations | | |
| | `storage_read` | 0.001 | Read from storage | | |
| | `storage_write` | 0.002 | Write to storage | | |
| | `storage_write_large` | 0.005 | Large writes to storage | |
| "compatibility_flags": [ | ||
| "nodejs_compat_v2" | ||
| ], | ||
| "workers_dev": true, |
There was a problem hiding this comment.
The addition of "workers_dev": true enables the workers.dev subdomain for this worker. This allows the worker to be accessible at both the custom domains (x402.aibtc.com, x402.aibtc.dev) and the workers.dev subdomain (x402stacks-api-host.workers.dev). This may expose additional endpoints that weren't intended to be public. Consider if this is desired behavior, or if this should be set to false to only allow access via the custom domains.
| "workers_dev": true, | |
| "workers_dev": false, |
| ], | ||
| "migrations": [ | ||
| { "tag": "v1", "new_classes": ["UsageDO", "StorageDO"] } | ||
| ] | ||
| }, |
There was a problem hiding this comment.
The documentation in this code block shows "migrations" as a nested property inside "durable_objects", but according to Cloudflare's Durable Objects configuration structure, "migrations" should be at the same level as "durable_objects", not nested inside it. This matches the actual structure in wrangler.jsonc where "migrations" is a top-level property (line 42). The documentation should reflect the correct structure.
| ], | |
| "migrations": [ | |
| { "tag": "v1", "new_classes": ["UsageDO", "StorageDO"] } | |
| ] | |
| }, | |
| ] | |
| }, | |
| "migrations": [ | |
| { "tag": "v1", "new_classes": ["UsageDO", "StorageDO"] } | |
| ], |
|
|
||
| ```jsonc | ||
| { | ||
| "name": "x402-api", |
There was a problem hiding this comment.
The project name shown in this documentation example is "x402-api", but the actual wrangler.jsonc file (line 3) uses "x402stacks-api-host". These should be consistent. Consider aligning the documentation example with the actual configuration, or if the name change is intentional as part of the migration, this should be noted explicitly.
| "name": "x402-api", | |
| "name": "x402stacks-api-host", |
Full migration plan for transition from stx402.com -> x402.aibtc.com