fix: claim result page names carlos auth login --console
The CLI verb is `carlos auth login --console <url>`, not `carlos login`. The page fills in this console's origin; README updated to match.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
README.md+1 −1internal/console/demo_claim_browser_test.go+1 −1internal/console/demo_claim_copy.go+1 −1internal/console/demo_claim_page.go+2 −1
CI passed — run details
Intent
<paseo-system version="1" kind="agent-message" source-agent-id="39e7acfa-a56a-470b-8ef5-70de5c57a6f2" message-id="f48107f7-2770-491e-9dc8-fac189f2c649" source-agent-title="agent /start demo program controller"> From 39e7acfa: one more small item for demo-claim-keymail-ready before it merges (found by Plan 4's controller): the browser claim page tells people to run `carlos login` (demoClaimCLINext, internal/console/demo_claim_copy.go:77). The real command is `carlos auth login` (check cmd/carlos for the exact form, including --console if the page shows it). Fix the string and any test that pins it. It's a command name, not prose, so no Luna pass is needed. If the branch already merged, put it on a one-commit follow-up branch, same landing rules. </paseo-system>
Attributed to this commit: 77.4 g CO₂e (10,192,755 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on demo-claim-keymail-ready, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/README.md b/README.md| index 71eb118fb..420933e9e 100644 |
| --- a/README.md |
| +++ b/README.md |
| @@ -694,7 +694,7 @@ For an agent, use these JSON endpoints on the console: |
| | `POST /api/demo/claims/select` with `flowToken` and `accountId` | Reserves a claim in that exact account if membership and plan limits allow it. Use its sqid, not its name. | |
| | `GET /api/demo/claims/status` with `Authorization: Bearer <flowToken>` | `202` with `state:claiming`, `phase` and `retryAfter:2`, or `200` with `state:claimed`, `accountId`, `app`, `url` and `next:cli_login`. | |
| -Keep both tokens private. All responses are `no-store`. Proof lasts at most 15 minutes and never beyond the original demo expiry. Resending does not extend it. After reservation, the flow token can only read that operation's status, until the original expiry plus 24 hours. Successful commitment consumes the demo token. It does not issue a CLI or account credential. Use `carlos login` and the ordinary account workflow to deploy subsequent changes. |
| +Keep both tokens private. All responses are `no-store`. Proof lasts at most 15 minutes and never beyond the original demo expiry. Resending does not extend it. After reservation, the flow token can only read that operation's status, until the original expiry plus 24 hours. Successful commitment consumes the demo token. It does not issue a CLI or account credential. Use `carlos auth login --console <console URL>` and the ordinary account workflow to deploy subsequent changes. |
| A claim counts as an app plus an instance against the chosen account's limits. It briefly stops the source to copy committed SQLite data, including WAL contents. The destination stays gated until verification and commitment. DB plus WAL and the final snapshot each have a 256 MiB limit. Unsupported placement, a full plan or a failed copy cannot create a permanent serving app. Before commitment, recovery must confirm that the destination stopped before releasing the source. If that confirmation is missing, the source stays held. No retry extends the demo's original 24 hours. |
diff --git a/internal/console/demo_claim_browser_test.go b/internal/console/demo_claim_browser_test.go| index 751156b68..10fd67854 100644 |
| --- a/internal/console/demo_claim_browser_test.go |
| +++ b/internal/console/demo_claim_browser_test.go |
| @@ -321,7 +321,7 @@ func TestDemoClaimBrowserStatus(t *testing.T) { |
| if w.Code != 200 { |
| t.Fatalf("%s status: %d", phase, w.Code) |
| } |
| - if phase == "done" && (!strings.Contains(w.Body.String(), op.Target.Host) || !strings.Contains(w.Body.String(), op.Target.App) || !strings.Contains(w.Body.String(), op.Target.Sqid) || !strings.Contains(w.Body.String(), "carlos login")) { |
| + if phase == "done" && (!strings.Contains(w.Body.String(), op.Target.Host) || !strings.Contains(w.Body.String(), op.Target.App) || !strings.Contains(w.Body.String(), op.Target.Sqid) || !strings.Contains(w.Body.String(), "carlos auth login --console "+s.cfg.Origin)) { |
| t.Fatalf("result missing: %s", w.Body.String()) |
| } |
| } |
diff --git a/internal/console/demo_claim_copy.go b/internal/console/demo_claim_copy.go| index 5a648e948..2ea655557 100644 |
| --- a/internal/console/demo_claim_copy.go |
| +++ b/internal/console/demo_claim_copy.go |
| @@ -74,7 +74,7 @@ const ( |
| // CLAIM-RESULT: result URL label. |
| demoClaimURLLabel = "Open app" |
| // CLAIM-RESULT: next workflow. |
| - demoClaimCLINext = "To deploy changes, sign in with the CLI: carlos login" |
| + demoClaimCLINext = "To deploy changes, sign in with the CLI: carlos auth login --console %s" |
| // CLAIM-RETIRED: unsuccessful operation. |
| demoClaimAborted = "This claim did not finish. Open the original demo link to try again if the demo has not expired." |
| ) |
diff --git a/internal/console/demo_claim_page.go b/internal/console/demo_claim_page.go| index 1ad62d695..2b0a89493 100644 |
| --- a/internal/console/demo_claim_page.go |
| +++ b/internal/console/demo_claim_page.go |
| @@ -94,6 +94,7 @@ func (s *Server) handleDemoClaimPage(w http.ResponseWriter, r *http.Request) { |
| } |
| address, session, _ := s.session(r) |
| p := demoClaimPageData{Copy: demoClaimBrowserCopy(), Nonce: demoClaimNonce(cookie, session), CSRF: session, Address: address, State: "missing"} |
| + p.Copy["next"] = fmt.Sprintf(demoClaimCLINext, s.cfg.Origin) |
| hash, err := s.store.demoClaimBrowserHash(r.Context(), cookie, time.Now()) |
| if err == nil { |
| if op, opErr := s.store.demoClaimOpForFlow(r.Context(), hash); opErr == nil { |
| @@ -466,7 +467,7 @@ func (s *Server) demoClaimSessionIdentity(raw, person string) (string, string, b |
| } |
| func demoClaimBrowserCopy() map[string]string { |
| - return map[string]string{"back": demoClaimBack, "noAccounts": demoClaimNoEligibleAccount, "title": demoClaimPageTitle, "missing": demoClaimIntentExpired, "failed": demoClaimExchangeFailed, "noscript": demoClaimNeedsScript, "identity": demoClaimIdentityLabel, "email": demoClaimEmailLabel, "continue": demoClaimEmailContinue, "code": demoClaimCodeLabel, "prove": demoClaimCodeConfirm, "sent": demoClaimEmailSent, "signin": demoClaimSignin, "account": demoClaimAccountLabel, "choose": demoClaimChooseAccount, "new": demoClaimNewAccount, "confirm": demoClaimConfirm, "working": demoClaimWorking, "reload": demoClaimReload, "complete": demoClaimComplete, "app": demoClaimAppLabel, "url": demoClaimURLLabel, "next": demoClaimCLINext, "aborted": demoClaimAborted, "disabled": demoClaimUnavailable} |
| + return map[string]string{"back": demoClaimBack, "noAccounts": demoClaimNoEligibleAccount, "title": demoClaimPageTitle, "missing": demoClaimIntentExpired, "failed": demoClaimExchangeFailed, "noscript": demoClaimNeedsScript, "identity": demoClaimIdentityLabel, "email": demoClaimEmailLabel, "continue": demoClaimEmailContinue, "code": demoClaimCodeLabel, "prove": demoClaimCodeConfirm, "sent": demoClaimEmailSent, "signin": demoClaimSignin, "account": demoClaimAccountLabel, "choose": demoClaimChooseAccount, "new": demoClaimNewAccount, "confirm": demoClaimConfirm, "working": demoClaimWorking, "reload": demoClaimReload, "complete": demoClaimComplete, "app": demoClaimAppLabel, "url": demoClaimURLLabel, "aborted": demoClaimAborted, "disabled": demoClaimUnavailable} |
| } |
| func demoClaimCanCreate(a Account) bool { return a.Role == RoleOwner || a.Role == RoleMember } |