run402 1.8.0 → 1.8.1

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/cli.mjs CHANGED
@@ -17,7 +17,7 @@ Commands:
17
17
  wallet Manage your x402 wallet (create, fund, balance, status)
18
18
  tier Manage tier subscription (status, set)
19
19
  projects Manage projects (provision, list, query, inspect, delete)
20
- deploy Deploy a full-stack app or static site (Postgres + hosting)
20
+ deploy Deploy a full-stack app or static site (requires active tier)
21
21
  functions Manage serverless functions (deploy, invoke, logs, list, delete)
22
22
  secrets Manage project secrets (set, list, delete)
23
23
  storage Manage file storage (upload, download, list, delete)
@@ -33,7 +33,7 @@ Run 'run402 <command> --help' for detailed usage of each command.
33
33
  Examples:
34
34
  run402 wallet create
35
35
  run402 wallet fund
36
- run402 deploy --tier prototype --manifest app.json
36
+ run402 deploy --manifest app.json
37
37
  run402 projects list
38
38
  run402 projects sql <project_id> "SELECT * FROM users LIMIT 5"
39
39
  run402 functions deploy <project_id> my-fn --code handler.ts
@@ -43,7 +43,7 @@ Examples:
43
43
  Getting started:
44
44
  run402 init Set up everything in one command
45
45
  run402 tier set prototype Subscribe to a tier
46
- run402 deploy ... Deploy your app
46
+ run402 deploy --manifest app.json
47
47
  `;
48
48
 
49
49
  if (!cmd || cmd === '--help' || cmd === '-h') {
package/lib/deploy.mjs CHANGED
@@ -8,35 +8,27 @@ Usage:
8
8
  cat manifest.json | run402 deploy [options]
9
9
 
10
10
  Options:
11
- --tier <tier> Deployment tier: prototype | hobby | team (default: prototype)
12
11
  --manifest <file> Path to manifest JSON file (default: read from stdin)
13
12
  --help, -h Show this help message
14
13
 
15
- Tiers:
16
- prototype Smallest, cheapest — great for demos and experiments
17
- hobby Mid-tier — personal projects and side hustles
18
- team Full power — production-ready, shared team access
19
-
20
14
  Manifest format (JSON):
21
15
  {
22
16
  "name": "my-app",
23
- "files": {
24
- "index.html": "<html>...</html>",
25
- "style.css": "body { margin: 0; }"
26
- },
27
- "env": {
28
- "MY_VAR": "value"
29
- }
17
+ "migrations": "CREATE TABLE items ...",
18
+ "site": [{ "file": "index.html", "data": "<html>...</html>" }],
19
+ "subdomain": "my-app"
30
20
  }
31
21
 
32
22
  Examples:
33
- run402 deploy --tier prototype --manifest app.json
34
- run402 deploy --tier hobby --manifest app.json
35
- cat app.json | run402 deploy --tier team
23
+ run402 deploy --manifest app.json
24
+ cat app.json | run402 deploy
25
+
26
+ Prerequisites:
27
+ - run402 init Set up wallet and funding
28
+ - run402 tier set prototype Subscribe to a tier
36
29
 
37
30
  Notes:
38
- - Requires a funded wallet (run402 wallet create && run402 wallet fund)
39
- - Payments are processed automatically via x402 micropayments (Base Sepolia USDC)
31
+ - Requires an active tier subscription (run402 tier set <tier>)
40
32
  - Project credentials (project_id, keys, URL) are saved locally after deploy
41
33
  - Use 'run402 projects list' to see all deployed projects
42
34
  `;
@@ -56,10 +48,9 @@ function saveProject(project) {
56
48
  }
57
49
 
58
50
  export async function run(args) {
59
- const opts = { tier: "prototype", manifest: null };
51
+ const opts = { manifest: null };
60
52
  for (let i = 0; i < args.length; i++) {
61
53
  if (args[i] === "--help" || args[i] === "-h") { console.log(HELP); process.exit(0); }
62
- if (args[i] === "--tier" && args[i + 1]) opts.tier = args[++i];
63
54
  if (args[i] === "--manifest" && args[i + 1]) opts.manifest = args[++i];
64
55
  }
65
56
 
package/lib/init.mjs CHANGED
@@ -99,7 +99,7 @@ export async function run() {
99
99
  if (!tierInfo || !tierInfo.tier || tierInfo.status !== "active") {
100
100
  console.log(" Next: run402 tier set prototype");
101
101
  } else {
102
- console.log(" Ready to deploy. Run: run402 deploy --tier prototype --manifest app.json");
102
+ console.log(" Ready to deploy. Run: run402 deploy --manifest app.json");
103
103
  }
104
104
  console.log();
105
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "run402",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "CLI for Run402 — provision Postgres databases, deploy static sites, generate images, and manage wallets via x402 micropayments.",
5
5
  "type": "module",
6
6
  "bin": {