Skip to content

consolidate migration plan - #2

Merged
whoabuddy merged 2 commits into
mainfrom
docs/update-requirements
Jan 12, 2026
Merged

whoabuddy merged 2 commits into
mainfrom
docs/update-requirements

Conversation

@whoabuddy

Copy link
Copy Markdown
Contributor

Full migration plan for transition from stx402.com -> x402.aibtc.com

  • 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

whoabuddy and others added 2 commits January 12, 2026 10:25
- 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]>
Copilot AI review requested due to automatic review settings January 12, 2026 17:35
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
x402-api 9cd40e6 Jan 12 2026, 05:35 PM

@whoabuddy
whoabuddy merged commit 9c16d69 into main Jan 12, 2026
@whoabuddy
whoabuddy deleted the docs/update-requirements branch January 12, 2026 17:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/dev to x402.aibtc.com/dev across 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.

Comment thread CLAUDE.md
Comment on lines +90 to +92
| `ai` | 0.003 | AI-enhanced operations |
| `storage_read` | 0.001 | Read from storage |
| `storage_write` | 0.002 | Write to storage |

Copilot AI Jan 12, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
| `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 |

Copilot uses AI. Check for mistakes.
Comment thread wrangler.jsonc
"compatibility_flags": [
"nodejs_compat_v2"
],
"workers_dev": true,

Copilot AI Jan 12, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
"workers_dev": true,
"workers_dev": false,

Copilot uses AI. Check for mistakes.
Comment thread REQUIREMENTS.md
Comment on lines +410 to +414
],
"migrations": [
{ "tag": "v1", "new_classes": ["UsageDO", "StorageDO"] }
]
},

Copilot AI Jan 12, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
],
"migrations": [
{ "tag": "v1", "new_classes": ["UsageDO", "StorageDO"] }
]
},
]
},
"migrations": [
{ "tag": "v1", "new_classes": ["UsageDO", "StorageDO"] }
],

Copilot uses AI. Check for mistakes.
Comment thread REQUIREMENTS.md

```jsonc
{
"name": "x402-api",

Copilot AI Jan 12, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
"name": "x402-api",
"name": "x402stacks-api-host",

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants