tovuk 0.1.69 → 0.1.71

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 (2) hide show
  1. package/README.md +46 -31
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -3,15 +3,20 @@
3
3
  Deploy Rust workers, static frontends, and worker-static services to Tovuk.
4
4
 
5
5
  ```sh
6
- npx tovuk init hello-service --template worker-static-rust-tanstack
6
+ npm install -g tovuk
7
+ ```
8
+
9
+ ```sh
10
+ tovuk init hello-service --template worker-static-rust-tanstack
7
11
  cd hello-service/web && bun install && cd ..
8
- npx tovuk doctor --json
9
- npx tovuk deploy --wait --json
12
+ tovuk doctor --json
13
+ tovuk plan --json
14
+ tovuk deploy --wait --json
10
15
  ```
11
16
 
12
17
  The npm package installs the native Tovuk binary for the current platform.
13
- Node is required by npm to install the package, but the `tovuk` command itself
14
- does not delegate to `npx`, `tsx`, or any JavaScript runtime.
18
+ Node is required by npm to install the package, but the installed `tovuk`
19
+ command runs as a native binary.
15
20
 
16
21
  Rust workers expect `Cargo.toml`, `Cargo.lock`, and `tovuk.toml`. They must
17
22
  pass `cargo fmt --all --check`, locked release-mode check/test/Clippy gates,
@@ -28,15 +33,16 @@ with `/api/*` routed to the Rust worker.
28
33
  Preview before deploying:
29
34
 
30
35
  ```sh
31
- npx tovuk preview
36
+ tovuk preview
32
37
  ```
33
38
 
34
39
  Agent repair loop:
35
40
 
36
41
  ```sh
37
- npx tovuk doctor --json
38
- npx tovuk deploy --wait --json
39
- npx tovuk logs --build job_1 --json
42
+ tovuk doctor --json
43
+ tovuk plan --json
44
+ tovuk deploy --wait --json
45
+ tovuk logs --build job_1 --json
40
46
  ```
41
47
 
42
48
  Fix the first failed `agent_instruction`. If a build fails, inspect build logs,
@@ -48,55 +54,64 @@ State namespaces, service bindings, and usage caps through the CLI.
48
54
  Agents can also inspect API capabilities, account identity, usage, account
49
55
  activity, services, complete service overviews, deploys, builds, service/deploy/build logs,
50
56
  env metadata, custom domains, domain verification, service storage files and media,
51
- pricing, billing checkout links, billing portal links, and support ticket create,
52
- list, and resolve actions through the same CLI.
57
+ pricing, billing checkout links, billing portal links, service deletion, and
58
+ support ticket create, list, and resolve actions through the same CLI.
53
59
 
54
60
  Before high-throughput work, read pricing and set hard caps:
55
61
 
56
62
  ```sh
57
- npx tovuk pricing --json
58
- npx tovuk limit set worker_requests --period month --value 10000000 --json
63
+ tovuk pricing --json
64
+ tovuk usage --json
65
+ tovuk plan --json
66
+ tovuk limit set worker_requests --period month --value 10000000 --json
59
67
  ```
60
68
 
61
69
  The pricing response includes plan pricing and product meter metadata, so agents
62
70
  can choose the correct product and cap the right meters in one flow.
71
+ The usage response includes `billingEstimate.lineItems` for current-month cost
72
+ estimates.
73
+ The plan response combines `tovuk.toml`, doctor checks, capability meters,
74
+ account limits, and `billingEstimate` before deploy, without creating a build.
63
75
 
64
76
  Manage service files and media without dashboard access:
65
77
 
66
78
  ```sh
67
- npx tovuk storage list --service service_1 --json
68
- npx tovuk storage upload --service service_1 ./logo.png uploads/logo.png --public --json
69
- npx tovuk storage download --service service_1 uploads/logo.png ./logo.png --json
70
- npx tovuk storage delete --service service_1 uploads/logo.png --json
71
- npx tovuk kv put --service service_1 CACHE user:1 '{"name":"Ada"}' --json
72
- npx tovuk kv get --service service_1 CACHE user:1 --json
73
- npx tovuk kv bulk put --service service_1 CACHE '[{"key":"feature:search","value":"enabled"}]' --json
74
- npx tovuk kv bulk get --service service_1 CACHE feature:search user:1 --json
75
- npx tovuk kv bulk delete --service service_1 CACHE feature:search old:key --json
76
- npx tovuk queue send --service service_1 jobs '{"task":"sync"}' --json
77
- npx tovuk queue send-batch --service service_1 jobs '[{"body":{"task":"sync"}},{"body":{"task":"index"}}]' --json
78
- npx tovuk queue metrics --service service_1 jobs --json
79
- npx tovuk state put --service service_1 Room room-1 counter 1 --json
80
- npx tovuk state get --service service_1 Room room-1 counter --json
79
+ tovuk storage list --service service_1 --json
80
+ tovuk storage upload --service service_1 ./logo.png uploads/logo.png --public --json
81
+ tovuk storage download --service service_1 uploads/logo.png ./logo.png --json
82
+ tovuk storage delete --service service_1 uploads/logo.png --json
83
+ tovuk kv put --service service_1 CACHE user:1 '{"name":"Ada"}' --json
84
+ tovuk kv get --service service_1 CACHE user:1 --json
85
+ tovuk kv bulk put --service service_1 CACHE '[{"key":"feature:search","value":"enabled"}]' --json
86
+ tovuk kv bulk get --service service_1 CACHE feature:search user:1 --json
87
+ tovuk kv bulk delete --service service_1 CACHE feature:search old:key --json
88
+ tovuk queue send --service service_1 jobs '{"task":"sync"}' --json
89
+ tovuk queue send-batch --service service_1 jobs '[{"body":{"task":"sync"}},{"body":{"task":"index"}}]' --json
90
+ tovuk queue metrics --service service_1 jobs --json
91
+ tovuk state put --service service_1 Room room-1 counter 1 --json
92
+ tovuk state get --service service_1 Room room-1 counter --json
81
93
  ```
82
94
 
95
+ `tovuk storage upload` automatically switches to multipart transfer for files
96
+ larger than 100 MiB.
97
+
83
98
  When a free-tier limit blocks work, run:
84
99
 
85
100
  ```sh
86
- npx tovuk billing checkout --json
101
+ tovuk billing checkout --json
87
102
  ```
88
103
 
89
104
  When Tovuk support is needed, include enough evidence for a support agent:
90
105
 
91
106
  ```sh
92
- npx tovuk support create "Deploy failed" "Agent retried deploy after doctor." --service service_1 --build job_1 --deploy deploy_1 --failing-command "tovuk deploy --wait --json" --first-log-line "cargo check failed in src/main.rs" --json
107
+ tovuk support create "Deploy failed" "Agent retried deploy after doctor." --service service_1 --build job_1 --deploy deploy_1 --failing-command "tovuk deploy --wait --json" --first-log-line "cargo check failed in src/main.rs" --json
93
108
  ```
94
109
 
95
110
  When the issue is fixed, resolve the ticket:
96
111
 
97
112
  ```sh
98
- npx tovuk support list --json
99
- npx tovuk support resolve ticket_0123456789abcdef0123 --json
113
+ tovuk support list --json
114
+ tovuk support resolve ticket_0123456789abcdef0123 --json
100
115
  ```
101
116
 
102
117
  On first deploy, the CLI opens browser login, waits for GitHub or Google, stores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tovuk",
3
- "version": "0.1.69",
3
+ "version": "0.1.71",
4
4
  "description": "Deploy Rust workers, static frontends, and worker-static services to Tovuk.",
5
5
  "type": "module",
6
6
  "bin": {