makaron-cli 0.6.0 → 0.6.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.
Files changed (3) hide show
  1. package/README.md +11 -10
  2. package/SKILL.md +11 -11
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -22,15 +22,17 @@ npm install -g makaron-cli
22
22
  **Option B: Agent Self-Registration (no human required)**
23
23
  ```bash
24
24
  # Step 1: Get challenge
25
- curl -X POST https://www.makaron.app/api/agent/register
25
+ npx makaron-cli register --json
26
+ # → { "challenge_id": "...", "challenge": "...", "expected_format": "numeric, round to 2 decimal places" }
26
27
 
27
- # Step 2: Solve the obfuscated math problem and verify
28
- curl -X POST https://www.makaron.app/api/agent/register/verify \
29
- -H "Content-Type: application/json" \
30
- -d '{"challenge_id": "...", "answer": "34.5"}'
31
- # → { "api_key": "mk_live_...", "credits": 500 }
28
+ # Step 2: Solve the math problem and verify
29
+ npx makaron-cli register --verify --challenge-id <id> --answer 34.5
30
+ # Key saved to ~/.makaron/auth.json
31
+ # { "api_key": "mk_live_...", "credits": N, "claim_url": "..." }
32
32
  ```
33
33
 
34
+ After registration, the key is saved locally — no need to export `MAKARON_API_KEY`.
35
+
34
36
  Discovery endpoint (returns full registration flow + CLI usage as JSON):
35
37
  ```bash
36
38
  curl https://www.makaron.app/api/agent/register
@@ -46,13 +48,12 @@ Verify: `npx makaron-cli list` should show projects.
46
48
 
47
49
  ### Let a human claim your account
48
50
 
49
- After registering, you can generate a link for a human to link your API key to their account:
51
+ After registering, generate a link for a human to link your API key to their account:
50
52
  ```bash
51
- curl -X POST https://www.makaron.app/api/agent/claim \
52
- -H "Authorization: Bearer mk_live_your_key"
53
+ npx makaron-cli claim
53
54
  # → { "claim_url": "https://www.makaron.app/claim?token=clm_..." }
54
55
  ```
55
- Share the `claim_url` with a human. They log in and the API key gets linked to their account.
56
+ Share the `claim_url` with a human. They log in and the API key gets linked to their account. Claim links are valid for 7 days. Run `claim` again anytime to get a new link.
56
57
 
57
58
  ## Core Workflow
58
59
 
package/SKILL.md CHANGED
@@ -21,23 +21,23 @@ Makaron is a multimodal AI creative agent. You talk to it via `makaron chat`, an
21
21
  **Option B: Self-Registration (no human required)**
22
22
  ```bash
23
23
  # Step 1: Get challenge
24
- curl -X POST https://www.makaron.app/api/agent/register
25
- # → { "challenge_id": "uuid", "challenge": "obfuscated math problem" }
24
+ npx makaron-cli register --json
25
+ # → { "challenge_id": "...", "challenge": "...", "expected_format": "numeric, round to 2 decimal places" }
26
26
 
27
27
  # Step 2: Solve and verify
28
- curl -X POST https://www.makaron.app/api/agent/register/verify \
29
- -H "Content-Type: application/json" \
30
- -d '{"challenge_id": "...", "answer": "34.5"}'
31
- # → { "api_key": "mk_live_...", "credits": 500 }
32
-
33
- # Step 3: (Optional) Let a human claim this account
34
- curl -X POST https://www.makaron.app/api/agent/claim \
35
- -H "Authorization: Bearer mk_live_your_key"
36
- # → { "claim_url": "..." } — share with human to link key to their account
28
+ npx makaron-cli register --verify --challenge-id <id> --answer 34.5
29
+ # Key saved to ~/.makaron/auth.json
30
+ # { "api_key": "mk_live_...", "credits": N, "claim_url": "..." }
31
+
32
+ # (Optional) Let a human claim this account
33
+ npx makaron-cli claim
34
+ # { "claim_url": "..." } — share with human to link key to their account (valid 7 days)
37
35
  ```
38
36
 
39
37
  Discovery endpoint: `GET https://www.makaron.app/api/agent/register` — returns full registration flow + CLI usage as JSON.
40
38
 
39
+ After self-registration the key is saved locally — no need to export `MAKARON_API_KEY`.
40
+
41
41
  ```bash
42
42
  export MAKARON_API_KEY=mk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
43
43
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makaron-cli",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Talk to Makaron Agent from the terminal — create projects, edit images, generate videos",
5
5
  "type": "module",
6
6
  "bin": {