ripplo 0.11.0 → 0.11.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/dist/chunk-2TA4WDEE.js +4 -0
- package/dist/{chunk-E6ZBZIIS.js → chunk-4LXIRKM7.js} +1 -1
- package/dist/chunk-5HZ2LDFS.js +83 -0
- package/dist/{chunk-O45YB6YY.js → chunk-5VXXRMJU.js} +28 -28
- package/dist/{chunk-S2K5KILQ.js → chunk-D6TS77JP.js} +1 -1
- package/dist/{chunk-LEFODI2H.js → chunk-EEOTA6M4.js} +1 -1
- package/dist/{chunk-VKAZQPJJ.js → chunk-EQORLKHG.js} +1 -1
- package/dist/{chunk-DY7ZW6QZ.js → chunk-F4P36OMG.js} +1 -1
- package/dist/{chunk-IK3ROREL.js → chunk-ROO3KF74.js} +1 -1
- package/dist/{chunk-GYBY7EOO.js → chunk-UC54UNEX.js} +1 -1
- package/dist/{chunk-UH5CQF5R.js → chunk-UFXH75WD.js} +1 -1
- package/dist/{chunk-7RREARGA.js → chunk-WCMWNWNM.js} +1 -1
- package/dist/{chunk-4YAC72LW.js → chunk-ZM2UPFCR.js} +1 -1
- package/dist/{compile-write-KUUFWSI4.js → compile-write-N3PWYUKE.js} +1 -1
- package/dist/{daemon-2ZTZXQW6.js → daemon-SAV2CLXD.js} +1 -1
- package/dist/{daemon-GP3EIISA.js → daemon-X77GWCFM.js} +1 -1
- package/dist/hook.js +1 -1
- package/dist/index.js +7 -3
- package/dist/{plan-reminder-PP5DQAQZ.js → plan-reminder-YX375SPX.js} +1 -1
- package/dist/{post-edit-R7KN424T.js → post-edit-7W6AHXE6.js} +1 -1
- package/dist/{post-edit-analyze-UURDL3AH.js → post-edit-analyze-PO54GIZ3.js} +1 -1
- package/dist/{post-edit-flag-stubs-I7AUGN4D.js → post-edit-flag-stubs-G3G2FO6Z.js} +1 -1
- package/dist/{prompt-submit-6KNOFK4W.js → prompt-submit-YOKR2RQN.js} +1 -1
- package/dist/{status-PG4EBZRM.js → status-HOJW4C3O.js} +1 -1
- package/dist/{stop-enforce-CO5GYI3G.js → stop-enforce-JT3SWBU4.js} +1 -1
- package/package.json +2 -2
- package/dist/chunk-3HAQCJRK.js +0 -4
- package/dist/chunk-WBKSJU63.js +0 -83
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __ripploCreateRequire } from "node:module";
|
|
3
3
|
const require = globalThis.require ?? __ripploCreateRequire(import.meta.url);
|
|
4
|
-
import{A as rr,C as nr,D as L,H as or,I as tr,J as ir,K as ar,M as sr,N as lr,P as B,Q as q,R as dr,S as cr,T as K,e as We,i as _e,j as Ge,k as Ne,l as ze,m as Be,o as Ke,p as Qe,q as Je,r as Ve,s as Xe,u as A,v as D,w as Ye,x as z,y as Ze,z as er}from"./chunk-
|
|
4
|
+
import{A as rr,C as nr,D as L,H as or,I as tr,J as ir,K as ar,M as sr,N as lr,P as B,Q as q,R as dr,S as cr,T as K,e as We,i as _e,j as Ge,k as Ne,l as ze,m as Be,o as Ke,p as Qe,q as Je,r as Ve,s as Xe,u as A,v as D,w as Ye,x as z,y as Ze,z as er}from"./chunk-5VXXRMJU.js";import{a as Me,b as Oe,c as Ue,d as $e,e as je,g as Fe}from"./chunk-UFXH75WD.js";import{d as qe}from"./chunk-2TA4WDEE.js";import{b as He}from"./chunk-6WFJZ5L6.js";import{a as Ae,c as De,d as Le,e as h}from"./chunk-6U2LNGSV.js";import{a as C}from"./chunk-WAGXAEB4.js";import{c as y}from"./chunk-JS3DLVVI.js";import{a as se}from"./chunk-R4ZTRVDQ.js";import{c as ae}from"./chunk-FEHVIHVA.js";import"./chunk-MHNGR6M7.js";import{j as Ce,k as T}from"./chunk-4LXIRKM7.js";import{G as ve,I as we,J as xe,M as I,N as be,O as Re,R as Ee,S as Pe,X as Ie,aa as Te,m as ke}from"./chunk-5HZ2LDFS.js";import{k as S,l as he,m as P}from"./chunk-7JKCHASU.js";import{Ba as Se,S as ye,oa as ge}from"./chunk-ZHDR7LXB.js";import{e as me}from"./chunk-KH4QH23U.js";import{e as pe,f as fe}from"./chunk-RIASQHPG.js";import{a as le,c as de,d as f,f as s,g as ce,h as N,i as ue}from"./chunk-C7SV6AR2.js";import"./chunk-HEOMRXZE.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";import{randomUUID as Rt}from"crypto";import Et from"path";import{createClient as Pt}from"graphql-sse";import It,{AbortError as Tt}from"p-retry";import{graphql as Sn}from"gql.tada";import{graphql as En}from"gql.tada";import{print as Pn}from"graphql";async function ur({config:e,cwd:r,headed:n,pool:o,runId:t,signal:i,testSlug:a,workClass:l,workflowSlug:d}){let c=await S(r);if(c.isErr())return await L({config:e,ownerToken:null,reason:`lockfile:${c.error.kind}`,runId:t}),{kind:"dispatch-error",reason:{detail:`lockfile:${c.error.kind}`,type:"generic"}};let u=Rn(c.value,{testSlug:a,workflowSlug:d});if(u==null)return await L({config:e,ownerToken:null,reason:`no-test:${d}/${a}`,runId:t}),{kind:"dispatch-error",reason:{detail:`no-test:${d}/${a}`,type:"generic"}};let p=await A({headed:n,workClass:l,task:()=>o.execute({headed:n,runId:t,testRef:u},i)});return!p.serverNotified&&p.outcome.kind==="error"&&await L({config:e,ownerToken:null,reason:p.outcome.detail,runId:t}),p.outcome}function Rn(e,{testSlug:r,workflowSlug:n}){let t=e.workflows.find(i=>Se(i.name)===n)?.tests.find(i=>i.slug===r);return t==null?void 0:ke(t)}var In=6e4,Tn=En(`
|
|
5
5
|
subscription RunRequestedWatch($devSessionId: String!) {
|
|
6
6
|
runRequested(devSessionId: $devSessionId) {
|
|
7
7
|
runId
|
package/dist/hook.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __ripploCreateRequire } from "node:module";
|
|
3
3
|
const require = globalThis.require ?? __ripploCreateRequire(import.meta.url);
|
|
4
|
-
import{a as r,c as s}from"./chunk-
|
|
4
|
+
import{a as r,c as s}from"./chunk-ZM2UPFCR.js";import{a as i}from"./chunk-R4ZTRVDQ.js";import{c as o}from"./chunk-FEHVIHVA.js";import"./chunk-KOKEEAEF.js";import{b as e}from"./chunk-HEOMRXZE.js";import"./chunk-KMZ3L5YA.js";r();o(process.cwd());e(i());s(process.argv[2]??"").catch(async t=>{let{renderTopLevelError:p}=await import("./cli-error-6PUIWNIT.js");process.stderr.write(`${p(t)}
|
|
5
5
|
`),process.exit(1)});
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __ripploCreateRequire } from "node:module";
|
|
3
3
|
const require = globalThis.require ?? __ripploCreateRequire(import.meta.url);
|
|
4
|
-
import{a as mt}from"./chunk-
|
|
4
|
+
import{a as mt}from"./chunk-WCMWNWNM.js";import{B as at,C as J,E as lt,F as dt,G as ut,L as ct,M as pt,N as ft,O as gt,R as yt,S as Ze,a as Hn,b as Vn,c as zn,d as Kn,e as Ge,f as Gn,g as Qn,h as Zn,k as Xn,l as Yn,m as et,n as rt,o as nt,p as tt,q as ot,r as it,t as st,z as Qe}from"./chunk-5VXXRMJU.js";import{j as Je,k as Jn}from"./chunk-UFXH75WD.js";import{a as kn,b as wn,d as bn,e as vn,f as Sn,g as xn,h as Cn,i as Rn,j as $n,k as En,l as Pn,m as In,n as An}from"./chunk-47LLHHJH.js";import{a as Nn,c as On,d as Fn,e as Wn,f as _n,g as Dn,h as be}from"./chunk-F4P36OMG.js";import{b as Tn,c as jn,d as Mn,f as Ln}from"./chunk-EEOTA6M4.js";import{b as we,c as O}from"./chunk-2TA4WDEE.js";import{a as Bn,b as v}from"./chunk-6WFJZ5L6.js";import{b as te,c as mn,e as he,f as fn}from"./chunk-6U2LNGSV.js";import{a as ye,b as hn,c as ke}from"./chunk-ROO3KF74.js";import{a as j}from"./chunk-OQ6KNYPG.js";import{a as G,b as gn,c as Ke,d as yn}from"./chunk-WAGXAEB4.js";import{a as R,b as pn,c as k}from"./chunk-JS3DLVVI.js";import{a as Rr,b as Un,c as qn}from"./chunk-ZM2UPFCR.js";import{a as h}from"./chunk-R4ZTRVDQ.js";import{b as $r,c as re,d as Er,e as Pr}from"./chunk-FEHVIHVA.js";import{a as C}from"./chunk-MHNGR6M7.js";import"./chunk-KOKEEAEF.js";import{b as dn,h as un,j as K,m as cn}from"./chunk-4LXIRKM7.js";import{C as Xr,D as Yr,G as ze,M as fe,Q as en,R as rn,T as nn,V as tn,W as on,Y as sn,Z as ge,_ as an,ba as ln,d as V,e as c,f as Kr,g as Gr,l as Ve,n as z,o as Jr,p as Qr,r as Zr}from"./chunk-5HZ2LDFS.js";import{f as ne,i as zr,j as H,l as pe,m as me}from"./chunk-7JKCHASU.js";import{Ba as Vr,S as Ur,T as N,X as q,Y as Br,Z as D,aa as qr,oa as T,pa as Hr,s as Dr}from"./chunk-ZHDR7LXB.js";import{a as _r}from"./chunk-7WZ3VIUU.js";import{e as He}from"./chunk-KH4QH23U.js";import"./chunk-RIASQHPG.js";import{a as Ir,b as Ar,c as Tr,d,f as B,g as jr,i as Mr,k as P,l as Lr,m as Nr,n as qe,o as Or,p as Fr,q as Wr}from"./chunk-C7SV6AR2.js";import{b as ce}from"./chunk-HEOMRXZE.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";import Yc from"update-notifier";import ep from"yargs";import{hideBin as rp}from"yargs/helpers";function ve({current:e,latest:r}){return r==null?`ripplo v${e} (latest: unknown)`:r===e?`ripplo v${e} (latest)`:`ripplo v${e} (latest: v${r} \u2014 run \`npx ripplo update\`)`}function ht(){return"Update available {currentVersion} \u2192 {latestVersion}\nRun `npx ripplo update`"}import{graphql as Ns}from"gql.tada";import{exec as $s}from"child_process";import{createAuthClient as Cs}from"better-auth/client";import{deviceAuthorizationClient as Rs}from"better-auth/client/plugins";function kt({baseURL:e}){return Cs({baseURL:e,fetchOptions:{headers:{"User-Agent":"Ripplo CLI"}},plugins:[Rs()]})}import{err as wt,ok as Es}from"neverthrow";var Ps=5e3,bt="ripplo-cli";async function vt({onDeviceCode:e,url:r}){let n=r??pn().RIPPLO_SERVER_URL,t=kt({baseURL:n}),o=await t.device.code({client_id:bt});if(o.error!=null)return wt({description:o.error.error_description,kind:"oauth-device-code-failed"});let{device_code:i,user_code:s,verification_uri_complete:a}=o.data;return e({userCode:s,verificationUrl:a}),Ls(a),(await Is({authClient:t,deviceCode:i})).map(u=>(Lr({serverUrl:n,token:u}),u))}async function Is({authClient:e,deviceCode:r}){for(;;){await js(Ps);let n=await e.device.token({client_id:bt,device_code:r,grant_type:"urn:ietf:params:oauth:grant-type:device_code"});if(n.data?.access_token!=null)return Es(n.data.access_token);if(n.error==null)continue;if(!Ts(n.error.error))return wt({code:n.error.error,description:n.error.error_description,kind:"oauth-authorization-failed"})}}var As=new Set(["authorization_pending","slow_down"]);function Ts(e){return As.has(e)}function js(e){return new Promise(r=>{setTimeout(r,e)})}function Ms(){return process.platform==="darwin"?"open":process.platform==="win32"?"start":"xdg-open"}function Ls(e){let r=Ms();$s(`${r} "${e}"`,()=>{})}function M({serverUrl:e,token:r}){return{appUrl:"",cwd:process.cwd(),engineUrl:"",projectId:"",ripploServerUrl:e,token:r,webhookSecret:""}}var Os=Ns(`
|
|
5
5
|
query AuthViewer {
|
|
6
6
|
currentUser {
|
|
7
7
|
name
|
|
@@ -389,7 +389,7 @@ ${e.contradictions.map(t=>Xr({contradiction:t,evidencePath:void 0})).join(`
|
|
|
389
389
|
`);return}ac(e)}function ac(e){let r=`ripplo@${e}`,n=ec("npm",["install","-g",r],{stdio:"inherit"});if(n.status!==0){let t=`exit ${String(n.status)}`;process.stderr.write(`${Ri(t)}
|
|
390
390
|
`),process.exit(1)}process.stdout.write(`${gr({evicted:0,latest:e,mode:"global"})}
|
|
391
391
|
`)}async function lc(e){if((await Ln(e)).kind==="not-running")return;let n=await Mn(e);process.stdout.write(`${$i(n)}
|
|
392
|
-
`)}async function Pi({action:e,exploreDebug:r}){if(e==="status"){let{statusCommand:t}=await import("./status-
|
|
392
|
+
`)}async function Pi({action:e,exploreDebug:r}){if(e==="status"){let{statusCommand:t}=await import("./status-HOJW4C3O.js");await t({format:"summary"});return}if(e==="stop"||e==="restart"){let t=await dc();(e==="stop"||!t)&&process.exit(t?0:1)}uc();let{runDaemon:n}=await import("./daemon-X77GWCFM.js");await n({exploreDebug:r})}async function dc(){let{stopDevDaemon:e}=await import("./daemon-lock-RPKO5SNE.js"),{renderDaemonStopResult:r}=await import("./daemon-SAV2CLXD.js"),n=await e(process.cwd());return process.stdout.write(`${r(n)}
|
|
393
393
|
`),n.kind!=="timeout"}function uc(){let e=X(O());e!=null&&process.stderr.write(`${e}
|
|
394
394
|
`)}function Ii(e){return`executor: ${e}`}function Ai(e){return e==="cloud"?"executor set to cloud \u2014 the daemon is bringing the tunnel up, the next run dispatches to the cloud fleet":"executor set to local \u2014 the next run executes on this machine"}function Ti(e){switch(e.kind){case"no-session":return"No active dev session for this directory. Start `npx ripplo daemon` first.";case"starting":return"Dev session is still syncing \u2014 the daemon just started. Retry in a moment.";case"session-ended":return"The dev session ended before the switch landed. Check `npx ripplo daemon status` and try again.";case"empty-response":return"The server returned no result for the switch. Try again."}}async function ji({mode:e}){let r=k(process.cwd()).match(t=>t,t=>{process.stderr.write(`${v(t)}
|
|
395
395
|
`),process.exit(1)});(e==null?await ft(r):await gt(r,e)).match(t=>{process.stdout.write(`${e==null?Ii(t):Ai(t)}
|
|
@@ -398,6 +398,7 @@ ${e.contradictions.map(t=>Xr({contradiction:t,evidencePath:void 0})).join(`
|
|
|
398
398
|
query ExploreState($devSessionId: String!) {
|
|
399
399
|
exploration(devSessionId: $devSessionId) {
|
|
400
400
|
active
|
|
401
|
+
autoCreateTasks
|
|
401
402
|
cloudWorkers
|
|
402
403
|
localWorkers
|
|
403
404
|
maxTrailLength
|
|
@@ -407,6 +408,7 @@ ${e.contradictions.map(t=>Xr({contradiction:t,evidencePath:void 0})).join(`
|
|
|
407
408
|
mutation SetExploration(
|
|
408
409
|
$devSessionId: String!
|
|
409
410
|
$active: Boolean!
|
|
411
|
+
$autoCreateTasks: Boolean!
|
|
410
412
|
$cloudWorkers: Int!
|
|
411
413
|
$localWorkers: Int!
|
|
412
414
|
$maxTrailLength: Int!
|
|
@@ -414,17 +416,19 @@ ${e.contradictions.map(t=>Xr({contradiction:t,evidencePath:void 0})).join(`
|
|
|
414
416
|
setExploration(
|
|
415
417
|
devSessionId: $devSessionId
|
|
416
418
|
active: $active
|
|
419
|
+
autoCreateTasks: $autoCreateTasks
|
|
417
420
|
cloudWorkers: $cloudWorkers
|
|
418
421
|
localWorkers: $localWorkers
|
|
419
422
|
maxTrailLength: $maxTrailLength
|
|
420
423
|
) {
|
|
421
424
|
active
|
|
425
|
+
autoCreateTasks
|
|
422
426
|
cloudWorkers
|
|
423
427
|
localWorkers
|
|
424
428
|
maxTrailLength
|
|
425
429
|
}
|
|
426
430
|
}
|
|
427
|
-
`);async function Li(e){let r=await Oi(e);if(r.isErr())return hr(r.error);let n=await Fi(e,r.value.id);return kr(Wi(r.value.executor,n))}async function Ni(e,r){let n=await Oi(e);if(n.isErr())return hr(n.error);let t=await Fi(e,n.value.id),o=mc(n.value.executor,t,r),i=await d({config:e,document:pc,variables:{devSessionId:n.value.id,...o}});return kr(Wi(n.value.executor,i.setExploration))}async function Oi(e){let r=await Hn(e);return r.kind==="active"?kr({executor:r.executor,id:r.id}):hr({kind:r.kind==="starting"?"starting":"no-session"})}async function Fi(e,r){return(await d({config:e,document:cc,variables:{devSessionId:r}})).exploration??null}function Wi(e,r){let n=e==="local";return{active:r?.active??!1,executor:e,maxTrailLength:r?.maxTrailLength??Ze,workers:(n?r?.localWorkers:r?.cloudWorkers)??0}}function mc(e,r,n){let t=e==="local",o=(t?r?.localWorkers:r?.cloudWorkers)??0,i=(t?r?.cloudWorkers:r?.localWorkers)??0,s=fc(n,o);return{active:n.active,cloudWorkers:t?i:s,localWorkers:t?s:i,maxTrailLength:n.trail??r?.maxTrailLength??Ze}}function fc(e,r){return e.active?e.workers!=null?e.workers:r>0?r:yt:r}function _i(e){return e.active?`explorer: on | ${String(e.workers)} workers | trail ${String(e.maxTrailLength)} | ${e.executor}`:"explorer: off"}function Di(e){return e.active?`explorer on \u2014 walking ${String(e.workers)} background paths, trail ${String(e.maxTrailLength)}, on the ${e.executor} executor. Findings land as tasks \u2014 triage with /ripplo:tasks`:"explorer off \u2014 background exploration stopped"}function Ui(e){return e.kind==="starting"?"Dev session is still syncing \u2014 the daemon just started. Retry in a moment.":"No active dev session for this directory. Start `npx ripplo daemon` first."}var gc=32;async function Bi({cwd:e,maxTrailLength:r}){let n=await pe(e);if(n.result.isErr())return{kind:"error",reason:"compile-failed"};let t=await he(e);if(t==null)return{kind:"error",reason:"no-lockfile"};let o=await K(e,n.result.value),i=rn(o);return i.kind==="model-empty"?{kind:"error",reason:"model-empty"}:{analysis:await nn({attempts:gc,modelHash:t,prepared:i.value,strategy:r==null?ze("even"):{...ze("even"),maxAttemptLength:r}}),kind:"ok"}}function Hi(e){return["Explorer model analysis",`${String(e.plannedPaths)} of ${String(e.attempts)} agendas produced complete paths.`,`${String(e.transitionsReached)} of ${String(e.transitionCount)} transitions were reached across ${String(e.composablePairs)} adjacent transition pairs.`,`${String(e.envelopesReached)} starting-state families and ${String(e.crossWorkflowPaths)} cross-workflow paths were used.`,yc(e),hc(e),kc(e),wc(e),`Reached patterns: ${e.patternsReached.length===0?"none":e.patternsReached.join(", ")}.`,`${String(e.isolatedTransitions.length)} of ${String(e.targetsAnalyzed)} targeted transitions were unreachable. ${String(e.weaklyConnectedTransitions.length)} appeared in only one planned path.`,...qi({heading:"Targets without a proved path:",transitions:e.isolatedTransitions}),...qi({heading:"Targets reached in one planned path:",transitions:e.weaklyConnectedTransitions}),...bc(e.recommendations)].join(`
|
|
431
|
+
`);async function Li(e){let r=await Oi(e);if(r.isErr())return hr(r.error);let n=await Fi(e,r.value.id);return kr(Wi(r.value.executor,n))}async function Ni(e,r){let n=await Oi(e);if(n.isErr())return hr(n.error);let t=await Fi(e,n.value.id),o=mc(n.value.executor,t,r),i=await d({config:e,document:pc,variables:{devSessionId:n.value.id,...o}});return kr(Wi(n.value.executor,i.setExploration))}async function Oi(e){let r=await Hn(e);return r.kind==="active"?kr({executor:r.executor,id:r.id}):hr({kind:r.kind==="starting"?"starting":"no-session"})}async function Fi(e,r){return(await d({config:e,document:cc,variables:{devSessionId:r}})).exploration??null}function Wi(e,r){let n=e==="local";return{active:r?.active??!1,executor:e,maxTrailLength:r?.maxTrailLength??Ze,workers:(n?r?.localWorkers:r?.cloudWorkers)??0}}function mc(e,r,n){let t=e==="local",o=(t?r?.localWorkers:r?.cloudWorkers)??0,i=(t?r?.cloudWorkers:r?.localWorkers)??0,s=fc(n,o);return{active:n.active,autoCreateTasks:r?.autoCreateTasks??!1,cloudWorkers:t?i:s,localWorkers:t?s:i,maxTrailLength:n.trail??r?.maxTrailLength??Ze}}function fc(e,r){return e.active?e.workers!=null?e.workers:r>0?r:yt:r}function _i(e){return e.active?`explorer: on | ${String(e.workers)} workers | trail ${String(e.maxTrailLength)} | ${e.executor}`:"explorer: off"}function Di(e){return e.active?`explorer on \u2014 walking ${String(e.workers)} background paths, trail ${String(e.maxTrailLength)}, on the ${e.executor} executor. Findings land as tasks \u2014 triage with /ripplo:tasks`:"explorer off \u2014 background exploration stopped"}function Ui(e){return e.kind==="starting"?"Dev session is still syncing \u2014 the daemon just started. Retry in a moment.":"No active dev session for this directory. Start `npx ripplo daemon` first."}var gc=32;async function Bi({cwd:e,maxTrailLength:r}){let n=await pe(e);if(n.result.isErr())return{kind:"error",reason:"compile-failed"};let t=await he(e);if(t==null)return{kind:"error",reason:"no-lockfile"};let o=await K(e,n.result.value),i=rn(o);return i.kind==="model-empty"?{kind:"error",reason:"model-empty"}:{analysis:await nn({attempts:gc,modelHash:t,prepared:i.value,strategy:r==null?ze("even"):{...ze("even"),maxAttemptLength:r}}),kind:"ok"}}function Hi(e){return["Explorer model analysis",`${String(e.plannedPaths)} of ${String(e.attempts)} agendas produced complete paths.`,`${String(e.transitionsReached)} of ${String(e.transitionCount)} transitions were reached across ${String(e.composablePairs)} adjacent transition pairs.`,`${String(e.envelopesReached)} starting-state families and ${String(e.crossWorkflowPaths)} cross-workflow paths were used.`,yc(e),hc(e),kc(e),wc(e),`Reached patterns: ${e.patternsReached.length===0?"none":e.patternsReached.join(", ")}.`,`${String(e.isolatedTransitions.length)} of ${String(e.targetsAnalyzed)} targeted transitions were unreachable. ${String(e.weaklyConnectedTransitions.length)} appeared in only one planned path.`,...qi({heading:"Targets without a proved path:",transitions:e.isolatedTransitions}),...qi({heading:"Targets reached in one planned path:",transitions:e.weaklyConnectedTransitions}),...bc(e.recommendations)].join(`
|
|
428
432
|
`)}function Vi(e){switch(e){case"compile-failed":return"Explorer analysis could not load the workflow model. Run npx ripplo compile and fix the reported errors.";case"model-empty":return"Explorer analysis found no runnable workflows. Add a workflow with a modeled navigation step.";case"no-lockfile":return"Explorer analysis could not find .ripplo/ripplo.lock. Run npx ripplo compile."}}function yc(e){let r=e.planningDepth;return`Path length target: ${String(r.targetSteps)} steps. Planned ${de(r.averagePlannedSteps)} on average and ${String(r.maxPlannedSteps)} at most after searching ${de(r.averageSearchedSteps)} on average and ${String(r.maxSearchedSteps)} at most. Search stopped at the target ${String(r.searchStops.targetReached)} times, exhausted legal continuations ${String(r.searchStops.frontierExhausted)} times, and exhausted its budget ${String(r.searchStops.budgetExhausted)} times.`}function de(e){return String(Math.round(e))}function hc(e){let r=e.planningPerformance;return`Planner average: ${_(r.total.averageMs)} total, ${_(r.envelopes.averageMs)} starting states, ${_(r.search.averageMs)} search, and ${_(r.selection.averageMs)} selection. Total p95: ${_(r.total.p95Ms)}.`}function _(e){return`${String(Math.round(e))} ms`}function kc(e){let r=e.planningPerformance;return`Search average: ${_(r.expansion.averageMs)} proving runnable steps, ${_(r.candidates.averageMs)} scoring candidates, and ${_(r.beam.averageMs)} retaining the beam.`}function wc(e){let r=e.planningWork;return`Search average: ${de(r.averageExpandedNodes)} expanded nodes after considering ${de(r.averageRulesConsidered)} transitions and ${de(r.averageParameterAttempts)} parameter attempts.`}function qi({heading:e,transitions:r}){return r.length===0?[]:[e,...r.map(n=>`- ${n.test}: ${n.action}`)]}function bc(e){return e.length===0?["No workflow coverage improvements are required by this analysis."]:["Recommendations:",...e.map(r=>`- ${r}`)]}async function zi({json:e,state:r,trail:n,workers:t}){if(r==="analyze"){Sc();let s=await Bi({cwd:process.cwd(),maxTrailLength:n});s.kind==="error"&&(process.stderr.write(`${Vi(s.reason)}
|
|
429
433
|
`),process.exit(1)),process.stdout.write(`${e?JSON.stringify(s.analysis,null,2):Hi(s.analysis)}
|
|
430
434
|
`);return}let o=k(process.cwd()).match(s=>s,s=>{process.stderr.write(`${v(s)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __ripploCreateRequire } from "node:module";
|
|
3
3
|
const require = globalThis.require ?? __ripploCreateRequire(import.meta.url);
|
|
4
|
-
import{a}from"./chunk-
|
|
4
|
+
import{a}from"./chunk-UC54UNEX.js";import"./chunk-7WZ3VIUU.js";import"./chunk-KH4QH23U.js";import"./chunk-RIASQHPG.js";import"./chunk-C7SV6AR2.js";import"./chunk-HEOMRXZE.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";export{a as planReminder};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __ripploCreateRequire } from "node:module";
|
|
3
3
|
const require = globalThis.require ?? __ripploCreateRequire(import.meta.url);
|
|
4
|
-
import{a as t}from"./chunk-
|
|
4
|
+
import{a as t}from"./chunk-D6TS77JP.js";import{a as e}from"./chunk-EQORLKHG.js";import"./chunk-SXVWB7TZ.js";import"./chunk-JJ4QQPAV.js";import"./chunk-6U2LNGSV.js";import"./chunk-ROO3KF74.js";import"./chunk-OQ6KNYPG.js";import"./chunk-WAGXAEB4.js";import"./chunk-JS3DLVVI.js";import"./chunk-FEHVIHVA.js";import"./chunk-MHNGR6M7.js";import{b as o}from"./chunk-KOKEEAEF.js";import"./chunk-4LXIRKM7.js";import"./chunk-5HZ2LDFS.js";import"./chunk-7JKCHASU.js";import"./chunk-ZHDR7LXB.js";import"./chunk-7WZ3VIUU.js";import"./chunk-KH4QH23U.js";import"./chunk-RIASQHPG.js";import"./chunk-C7SV6AR2.js";import"./chunk-HEOMRXZE.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";var r=o({event:"PostToolUse",handlers:[t,e],note:i=>({hookSpecificOutput:{additionalContext:i,hookEventName:"PostToolUse"}})});export{r as postEditHook};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __ripploCreateRequire } from "node:module";
|
|
3
3
|
const require = globalThis.require ?? __ripploCreateRequire(import.meta.url);
|
|
4
|
-
import{a}from"./chunk-
|
|
4
|
+
import{a}from"./chunk-D6TS77JP.js";import"./chunk-6U2LNGSV.js";import"./chunk-ROO3KF74.js";import"./chunk-OQ6KNYPG.js";import"./chunk-WAGXAEB4.js";import"./chunk-JS3DLVVI.js";import"./chunk-FEHVIHVA.js";import"./chunk-MHNGR6M7.js";import"./chunk-4LXIRKM7.js";import"./chunk-5HZ2LDFS.js";import"./chunk-7JKCHASU.js";import"./chunk-ZHDR7LXB.js";import"./chunk-7WZ3VIUU.js";import"./chunk-KH4QH23U.js";import"./chunk-RIASQHPG.js";import"./chunk-C7SV6AR2.js";import"./chunk-HEOMRXZE.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";export{a as postEditAnalyze};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __ripploCreateRequire } from "node:module";
|
|
3
3
|
const require = globalThis.require ?? __ripploCreateRequire(import.meta.url);
|
|
4
|
-
import{a}from"./chunk-
|
|
4
|
+
import{a}from"./chunk-EQORLKHG.js";import"./chunk-SXVWB7TZ.js";import"./chunk-JJ4QQPAV.js";import"./chunk-4LXIRKM7.js";import"./chunk-5HZ2LDFS.js";import"./chunk-7JKCHASU.js";import"./chunk-ZHDR7LXB.js";import"./chunk-7WZ3VIUU.js";import"./chunk-KH4QH23U.js";import"./chunk-RIASQHPG.js";import"./chunk-C7SV6AR2.js";import"./chunk-HEOMRXZE.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";export{a as postEditFlagStubs};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __ripploCreateRequire } from "node:module";
|
|
3
3
|
const require = globalThis.require ?? __ripploCreateRequire(import.meta.url);
|
|
4
|
-
import{a as e}from"./chunk-PYDYI3AA.js";import{a as r}from"./chunk-AXROBTLA.js";import{a as i}from"./chunk-XAMVRZJH.js";import"./chunk-BGY5F3IU.js";import"./chunk-CI6273ZU.js";import"./chunk-SXVWB7TZ.js";import"./chunk-G6J2WIHJ.js";import"./chunk-JJ4QQPAV.js";import"./chunk-47LLHHJH.js";import"./chunk-OQ6KNYPG.js";import"./chunk-JS3DLVVI.js";import"./chunk-FEHVIHVA.js";import"./chunk-MHNGR6M7.js";import{b as o}from"./chunk-KOKEEAEF.js";import{a as t}from"./chunk-
|
|
4
|
+
import{a as e}from"./chunk-PYDYI3AA.js";import{a as r}from"./chunk-AXROBTLA.js";import{a as i}from"./chunk-XAMVRZJH.js";import"./chunk-BGY5F3IU.js";import"./chunk-CI6273ZU.js";import"./chunk-SXVWB7TZ.js";import"./chunk-G6J2WIHJ.js";import"./chunk-JJ4QQPAV.js";import"./chunk-47LLHHJH.js";import"./chunk-OQ6KNYPG.js";import"./chunk-JS3DLVVI.js";import"./chunk-FEHVIHVA.js";import"./chunk-MHNGR6M7.js";import{b as o}from"./chunk-KOKEEAEF.js";import{a as t}from"./chunk-UC54UNEX.js";import"./chunk-7WZ3VIUU.js";import"./chunk-KH4QH23U.js";import"./chunk-RIASQHPG.js";import"./chunk-C7SV6AR2.js";import"./chunk-HEOMRXZE.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";var a=o({event:"UserPromptSubmit",handlers:[t,e,r,i],note:m=>({hookSpecificOutput:{additionalContext:m,hookEventName:"UserPromptSubmit"}})});export{a as promptSubmitHook};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __ripploCreateRequire } from "node:module";
|
|
3
3
|
const require = globalThis.require ?? __ripploCreateRequire(import.meta.url);
|
|
4
|
-
import{a}from"./chunk-
|
|
4
|
+
import{a}from"./chunk-WCMWNWNM.js";import"./chunk-UFXH75WD.js";import"./chunk-EEOTA6M4.js";import"./chunk-2TA4WDEE.js";import"./chunk-WAGXAEB4.js";import"./chunk-R4ZTRVDQ.js";import"./chunk-MHNGR6M7.js";import"./chunk-4LXIRKM7.js";import"./chunk-5HZ2LDFS.js";import"./chunk-7JKCHASU.js";import"./chunk-ZHDR7LXB.js";import"./chunk-C7SV6AR2.js";import"./chunk-HEOMRXZE.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";export{a as statusCommand};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __ripploCreateRequire } from "node:module";
|
|
3
3
|
const require = globalThis.require ?? __ripploCreateRequire(import.meta.url);
|
|
4
|
-
import{a as P,b as A,c as I}from"./chunk-BGY5F3IU.js";import{a as T,b as O,e as D,f as H,g as q,h}from"./chunk-
|
|
4
|
+
import{a as P,b as A,c as I}from"./chunk-BGY5F3IU.js";import{a as T,b as O,e as D,f as H,g as q,h}from"./chunk-F4P36OMG.js";import{a as L,c as N,e as x}from"./chunk-EEOTA6M4.js";import"./chunk-2TA4WDEE.js";import{a as v,c as $}from"./chunk-ROO3KF74.js";import"./chunk-OQ6KNYPG.js";import{a as C}from"./chunk-WAGXAEB4.js";import{c as k}from"./chunk-JS3DLVVI.js";import"./chunk-R4ZTRVDQ.js";import"./chunk-FEHVIHVA.js";import{a as c}from"./chunk-MHNGR6M7.js";import{c as w}from"./chunk-KOKEEAEF.js";import{h as j,i as E,l as y}from"./chunk-4LXIRKM7.js";import"./chunk-5HZ2LDFS.js";import"./chunk-7JKCHASU.js";import{Ba as g}from"./chunk-ZHDR7LXB.js";import{a as S}from"./chunk-7WZ3VIUU.js";import{f as b}from"./chunk-KH4QH23U.js";import"./chunk-RIASQHPG.js";import{d as m}from"./chunk-C7SV6AR2.js";import"./chunk-HEOMRXZE.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";import J from"path";import U from"process";import{CancellationTokenSource as _}from"vscode-jsonrpc/node";import{graphql as W}from"gql.tada";function F(n){return`--- Ripplo Run Failures (scope) ---
|
|
5
5
|
${n.join(`
|
|
6
6
|
`)}
|
|
7
7
|
Artifacts: .ripplo/debug/<runId>/. ${c("run")}`}function R({lines:n,retried:e}){let r=e?"Already retried once, still unreachable.":"";return["--- Ripplo Run Not Verified (server unreachable) ---",...n,"Server-side transient \u2014 not the daemon, dev server, or auth (`npx ripplo doctor` is green).",r,"Wait a moment, then stop again to re-verify."].filter(t=>t.length>0).join(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ripplo",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "CLI for Ripplo — AI-powered end-to-end testing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://ripplo.ai",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
"tsup": "^8.5.1",
|
|
67
67
|
"vitest": "^4.1.4",
|
|
68
68
|
"@ripplo/core": "^0.0.0",
|
|
69
|
-
"@ripplo/eslint-config": "0.0.0",
|
|
70
69
|
"@ripplo/graphql": "^0.0.0",
|
|
71
70
|
"@ripplo/rrweb-bundle": "0.0.0",
|
|
71
|
+
"@ripplo/eslint-config": "0.0.0",
|
|
72
72
|
"@ripplo/run-report": "0.0.0",
|
|
73
73
|
"@ripplo/runtime": "^0.0.0",
|
|
74
74
|
"@ripplo/solver": "^0.0.0",
|
package/dist/chunk-3HAQCJRK.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire as __ripploCreateRequire } from "node:module";
|
|
3
|
-
const require = globalThis.require ?? __ripploCreateRequire(import.meta.url);
|
|
4
|
-
import{U as d}from"./chunk-ZHDR7LXB.js";import{j as p}from"./chunk-C7SV6AR2.js";import{spawnSync as y}from"child_process";import{existsSync as a,readdirSync as u,readFileSync as h,realpathSync as m,statSync as f}from"fs";import r from"path";var k=2e3;function W(t){if(t!=null)try{return f(m(t)).mtimeMs}catch{return}}function T(t){return y("pnpm",["turbo","run","build","--filter=ripplo..."],{cwd:t,stdio:"inherit"}).status===0}function F(){let t=process.argv[1];if(t==null)return{kind:"fresh"};let o=m(t),i=o.includes(`${r.sep}src${r.sep}`),s=c(r.dirname(o));if(s!=null)return i?{kind:"fresh"}:j(s);let n=c(process.cwd());return n!=null&&S(n)?{kind:"foreign-binary",workspaceRoot:n}:{kind:"fresh"}}function c(t){let o=r.dirname(t);return a(r.join(t,"pnpm-workspace.yaml"))?t:o===t?void 0:c(o)}function j(t){let o=r.join(t,"packages");if(!a(o))return{kind:"fresh"};let i=r.join(o,"cli","dist"),s=u(o).map(n=>({dist:r.join(o,n,"dist"),name:n,src:r.join(o,n,"src")})).filter(n=>a(n.src)).map(n=>({...n,output:a(n.dist)?n.dist:i})).filter(n=>l(n.src)>l(n.output)+k).map(n=>n.name);return s.length===0?{kind:"fresh"}:{kind:"stale",packages:s,workspaceRoot:t}}function l(t){let o=f(t);if(!o.isDirectory())return o.mtimeMs;let i=u(t).map(s=>l(r.join(t,s)));return Math.max(o.mtimeMs,...i)}function S(t){let o=r.join(t,"packages","cli","package.json");if(!a(o))return!1;let i=JSON.parse(h(o,"utf8"));return typeof i=="object"&&i!=null&&"name"in i&&i.name==="ripplo"}import{createHash as x}from"crypto";import R from"os";import E from"path";import{createMessageConnection as w,NotificationType as b,RequestType as P,RequestType0 as g,SocketMessageReader as M,SocketMessageWriter as I}from"vscode-jsonrpc/node";import{z as e}from"zod";var q="daemon.log";function Q(t){let o=x("sha256").update(t).digest("hex").slice(0,16);return E.join(R.tmpdir(),`ripplo-${o}.sock`)}function Y(t){return p(t,q)}function Z(t){return w(new M(t),new I(t))}var ee=e.object({all:e.boolean(),headed:e.boolean(),tests:e.array(e.string())}),te=e.object({jobId:e.string(),total:e.number()}),N=e.enum(["no-lockfile","unstamped","dsl-drift","load-failed","model-empty"]),v=e.discriminatedUnion("kind",[e.object({kind:e.literal("off")}),e.object({kind:e.literal("on")}),e.object({kind:e.literal("paused")}),e.object({kind:e.literal("waiting")}),e.object({kind:e.literal("blocked"),reason:N})]),C=e.object({attempts:e.number(),findings:e.number()}),oe=e.object({active:e.number(),bundleMtimeMs:e.number().optional(),explorer:v,exploring:e.number(),progress:C,queued:e.number(),sseHealth:e.object({detail:e.string().optional(),ok:e.boolean()}).optional(),version:e.string().optional()}),z=e.enum(["MAX_RUNS","OVERAGE_CAP","MAX_AGENTS","MAX_CONCURRENT_RUNS","MAX_PROJECTS","CLOUD_EXECUTOR","REVIEW_QUOTA","MEMBER_CEILING"]),A=e.discriminatedUnion("type",[e.object({code:z,type:e.literal("limit")}),e.object({detail:e.string(),type:e.literal("generic")})]),O=e.discriminatedUnion("kind",[e.object({kind:e.literal("pass")}),e.object({findingLines:e.array(e.string()),kind:e.literal("findings")}),e.object({detail:e.string(),kind:e.literal("error")}),e.object({kind:e.literal("dispatch-error"),reason:A}),e.object({detail:e.string(),kind:e.literal("dispatch-timeout")}),e.object({detail:e.string(),kind:e.literal("infra-error")})]),L=e.discriminatedUnion("kind",[e.object({kind:e.literal("run-progress"),runId:e.string(),signal:d,testName:e.string(),workflowName:e.string()}),e.object({kind:e.literal("test-started"),runId:e.string(),testName:e.string(),workflowName:e.string()}),e.object({kind:e.literal("test-outcome"),outcome:O,runId:e.string(),testName:e.string(),workflowName:e.string()})]),ne=e.object({event:L,jobId:e.string()}),re=e.object({failed:e.number(),jobId:e.string(),notRun:e.number(),passed:e.number()}),ie=e.discriminatedUnion("code",[e.object({code:e.literal("compile-failed"),detail:e.string(),diagnostics:e.array(e.string()).default([])}),e.object({code:e.literal("selection-conflicting-flags")}),e.object({code:e.literal("selection-nothing-selected")}),e.object({code:e.literal("selection-unknown-ids"),known:e.array(e.string()),unknown:e.array(e.string())}),e.object({code:e.literal("scope-failed"),detail:e.string()}),e.object({code:e.literal("app-unreachable"),detail:e.string(),url:e.string()}),e.object({code:e.literal("engine-unreachable"),detail:e.string(),url:e.string()}),e.object({code:e.literal("sync-failed"),detail:e.string()}),e.object({code:e.literal("bad-message")})]),se=new P("ripplo/enqueue"),ae=new g("ripplo/status"),ce=new g("ripplo/shutdownIfIdle"),le=new b("ripplo/jobEvent"),pe=new b("ripplo/jobDone");export{W as a,T as b,F as c,Q as d,Y as e,Z as f,ee as g,te as h,oe as i,O as j,ne as k,re as l,ie as m,se as n,ae as o,ce as p,le as q,pe as r};
|