Lines 1-21javascript
2import{a as _,b as Q,c as Sr,d as Rr,e as Ie,f as xr,g as Cr,h as $r,i as Hr}from"./chunk-HX7AAG7Q.js";import{A as Dr,G as me,K as _r,M as at,O as lt,Q as Fr,V as Ur,W as Wr,X as qr,Y as Br,a as qt,b as z,c as Bt,d as Vt,e as Xt,f as P,g as A,h as Yt,i as h,j as J,k as Zt,l as er,m as it,n as tr,o as pe,p as v,q as Ir,r as Ar,t as jr,u as Tr,v as Lr,w as Mr,x as Nr,y as Or}from"./chunk-JZVB5QXR.js";import{c as Pe}from"./chunk-4J4T7534.js";import{a as $,b as ue,c as D,e as Gt,f as T,g as u,h as zt,i as E,j as Kt,k as Jt,l as Qt}from"./chunk-LISHXK5I.js";import{a as Lt,b as Mt,c as Nt,d as c,e a ...
3 query AuthViewer {
HighChild Process
Package source references child process execution.
dist/index.jsView on unpkg · L1 9`);async function Qr(){let e=A(),t=N(e);if(t!=null&&await sa(e,t))return;let n=(await Jr({url:e,onDeviceCode:a=>{process.stdout.write(`Opening your browser to finish sign-in.
10`),process.stdout.write(`If it didn't open, visit: ${a.verificationUrl}
11`),process.stdout.write(`Verification code: ${a.userCode}
13`),process.stdout.write(`Waiting for approval...
14`)}})).match(a=>a,a=>{process.stderr.write(`${P(a)}
15`),process.exit(1)}),o=await dt({serverUrl:e,token:n}),i=g(process.cwd()),s=i?"Welcome back":"Welcome to Ripplo";process.stdout.write(`
16`),process.stdout.write(o.kind==="ok"?`${s}, ${aa(o.viewer)}.
18`),process.stdout.write(`Session saved to ${ot(e)}.
19`),i||(process.stdout.write("\nNext: run `/ripplo:setup` in Claude Code to wire Ripplo into this project,\n"),process.stdout.write("or `npx ripplo init` to set it up by hand.\n"))}async function sa(e,t){let r=await dt({serverUrl:e,token:t});return r.kind==="ok"?(process.stdout.write(`Already signed in as ${r.viewer.email}. Run \`npx ripplo auth logout\` to switch accounts.
20`),!0):(r.kind==="unreachable"&&(process.stdout.write(`Could not reach the Ripplo server at ${e} (${r.message}). Your saved session may still be valid \u2014 fix connectivity and retry.
21`),process.exit(1)),process.stdout.write(`Your session expired \u2014 signing you back in.
Long lines were clipped for display.