ripplo 0.9.1 → 0.9.3

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 (47) hide show
  1. package/dist/{chunk-UMSBDSRS.js → chunk-2TO6W5BR.js} +2 -2
  2. package/dist/{chunk-MMCOPC4L.js → chunk-2ZOIED3H.js} +1 -1
  3. package/dist/{chunk-CDPYJKK7.js → chunk-5E62BCS7.js} +2 -2
  4. package/dist/{chunk-SFWAAS5H.js → chunk-66LUQG5T.js} +1 -1
  5. package/dist/chunk-727NNPVM.js +229 -0
  6. package/dist/{chunk-4XC5TAOG.js → chunk-BLH6XVEC.js} +1 -1
  7. package/dist/{chunk-IRTBARRY.js → chunk-ELECJABM.js} +1 -1
  8. package/dist/{chunk-Q6IYTHMP.js → chunk-G3UFH3WS.js} +1 -1
  9. package/dist/{chunk-EVVF662P.js → chunk-ML7WCYPY.js} +1 -1
  10. package/dist/{chunk-ZUPS6XVH.js → chunk-OIJBIBIN.js} +1 -1
  11. package/dist/{chunk-NEPJCCQS.js → chunk-ONNK7JT4.js} +1 -1
  12. package/dist/{chunk-XZ2TPZLD.js → chunk-PLQGRHHV.js} +1 -1
  13. package/dist/chunk-PPMW4GUY.js +83 -0
  14. package/dist/{chunk-YODZBLYM.js → chunk-RAN55ZC6.js} +5 -5
  15. package/dist/{chunk-4F67XQYS.js → chunk-SBDRIIVW.js} +20 -20
  16. package/dist/chunk-T4GHICK4.js +6 -0
  17. package/dist/{chunk-TY5K3P4F.js → chunk-TBCRT6EC.js} +1 -1
  18. package/dist/{chunk-A7SHHSB3.js → chunk-ZNUC2RLT.js} +1 -1
  19. package/dist/chunk-ZQHKESUR.js +4 -0
  20. package/dist/{cli-error-J33JDZET.js → cli-error-TM2YODR3.js} +1 -1
  21. package/dist/compile-write-TTEHFTNY.js +4 -0
  22. package/dist/{daemon-MZWLJO75.js → daemon-6B4OSRBS.js} +1 -1
  23. package/dist/{daemon-YPXZGJAB.js → daemon-M52H2YF7.js} +1 -1
  24. package/dist/{dsl-loader-5Z2JRKY3.js → dsl-loader-Z54ZM7C6.js} +1 -1
  25. package/dist/hook.js +1 -1
  26. package/dist/index.js +208 -184
  27. package/dist/{plan-reminder-45PSVOVW.js → plan-reminder-2ABA3SFH.js} +1 -1
  28. package/dist/post-edit-XBVQBSKV.js +4 -0
  29. package/dist/post-edit-analyze-KDA7T37Z.js +4 -0
  30. package/dist/post-edit-flag-stubs-SX2Y7OHG.js +4 -0
  31. package/dist/{pre-edit-EJO3TUNQ.js → pre-edit-FTNMDZZO.js} +1 -1
  32. package/dist/{pre-edit-watch-gate-DZHQCMEI.js → pre-edit-watch-gate-MR7YQGEV.js} +1 -1
  33. package/dist/{prompt-submit-ZCDG6T4Y.js → prompt-submit-AMSKMHWO.js} +1 -1
  34. package/dist/solve-worker.js +1 -1
  35. package/dist/status-2IFILDIA.js +4 -0
  36. package/dist/{stop-enforce-Q4JNBYQU.js → stop-enforce-P6YWEHWE.js} +1 -1
  37. package/dist/{tasks-reminder-LKSUZUFD.js → tasks-reminder-VKRJRDNC.js} +1 -1
  38. package/package.json +5 -5
  39. package/dist/chunk-6BQADUAX.js +0 -229
  40. package/dist/chunk-INO3L4WS.js +0 -4
  41. package/dist/chunk-MG43RZXH.js +0 -83
  42. package/dist/chunk-RWFS5SCW.js +0 -6
  43. package/dist/compile-write-4ZAIPQMG.js +0 -4
  44. package/dist/post-edit-JHJT2QTK.js +0 -4
  45. package/dist/post-edit-analyze-PPFHKIYQ.js +0 -4
  46. package/dist/post-edit-flag-stubs-Q3UKDZ2W.js +0 -4
  47. package/dist/status-66XIDYSP.js +0 -4
@@ -1,9 +1,9 @@
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 c}from"./chunk-OQ6KNYPG.js";import{c as p}from"./chunk-LEFXRK53.js";import{c as l}from"./chunk-FEHVIHVA.js";import{a}from"./chunk-MHNGR6M7.js";import{I as u,w as t}from"./chunk-MG43RZXH.js";import{R as d}from"./chunk-4F67XQYS.js";var f=3e3;async function S(e){l(e);let n=p(e).unwrapOr(void 0);if(n==null)return null;try{return await fetch(`${n.ripploServerUrl}/health`,{signal:AbortSignal.timeout(f)}),null}catch(r){return{detail:r instanceof Error?r.message:String(r),serverUrl:n.ripploServerUrl}}}function m(e){return e.includes("localhost")||e.includes("127.0.0.1")}import g from"fuse.js";function s(e){switch(e.kind){case"conflicting-flags":return"Pass either --all or test ids, not both.";case"nothing-selected":return`No tests selected \u2014 scope empty, no dirty .ripplo/workflows files. Pass test ids, add to scope (${a("run")}), or use --all.`;case"unknown-ids":{let n=e.known,r=e.unknown.flatMap(i=>y(i,n)),o=r.length>0?[`Did you mean: ${[...new Set(r)].join(", ")}`]:[];return[`Unknown ${e.unknown.length===1?"id":"ids"}: ${e.unknown.join(", ")}`,...o,"Pass a workflow slug for all its tests, or workflow/test for one. Known workflows:",...n.map(i=>` ${i}`)].join(`
5
- `)}}}function L({failed:e,notRun:n,passed:r}){let o=n>0?`, ${String(n)} not run`:"";return`${String(r)} passed, ${String(e)} failed${o} (${String(r+e+n)} total)`}function A({debugDir:e,event:n}){let r=`${n.workflowName} \u2192 ${n.testName}`;if(n.kind==="test-started")return`${t.dim("run ")} ${r}`;switch(n.outcome.kind){case"pass":return`${t.good("pass")} ${r} ${t.dim(n.runId)}`;case"findings":return[`${t.bad("fail")} ${r} \u2014 ${c(n.outcome.findingLines.length,"finding")}`,...n.outcome.findingLines,u({debugDir:e,runId:n.runId}),`${t.dim("why")} npx ripplo explain ${n.runId}`].join(`
6
- `);case"error":return`${t.bad("error")} ${r} \u2014 ${n.outcome.detail} ${t.dim(n.runId)}`;case"dispatch-error":return`${t.bad("error")} ${r} \u2014 ${w(n.outcome.reason)}`;case"dispatch-timeout":return`${t.bad("error")} ${r} \u2014 not run: dispatch timed out (transient): ${n.outcome.detail}`;case"infra-error":return`${t.bad("error")} ${r} \u2014 not run: Ripplo server unreachable: ${n.outcome.detail}`}}var h={MAX_AGENTS:"agent limit reached for your plan \u2014 upgrade to add more",MAX_CONCURRENT_RUNS:"concurrent run limit reached for your plan \u2014 upgrade or wait for runs to finish",MAX_PROJECTS:"project limit reached for your plan \u2014 upgrade to add more",MAX_RUNS:"run limit reached for your plan \u2014 enable overage or upgrade",OVERAGE_CAP:"overage cap reached \u2014 raise the cap or upgrade"};function j({detail:e,serverUrl:n}){return m(n)?`Ripplo server at ${n} not running (${e}). Start the dev server with \`pnpm dev\`.`:`Ripplo server at ${n} unreachable (${e}) \u2014 server-side, not your local environment.`}function N(e){switch(e.code){case"compile-failed":{let n=e.diagnostics.length===0?[]:["",...e.diagnostics];return[`Compilation failed in the daemon (${e.detail}). Run \`npx ripplo compile\` for full output.`,...n].join(`
4
+ import{a as c}from"./chunk-OQ6KNYPG.js";import{c as p}from"./chunk-LEFXRK53.js";import{c as l}from"./chunk-FEHVIHVA.js";import{a}from"./chunk-MHNGR6M7.js";import{g as t,l as u}from"./chunk-PPMW4GUY.js";import{X as d}from"./chunk-SBDRIIVW.js";var f=3e3;async function S(e){l(e);let n=p(e).unwrapOr(void 0);if(n==null)return null;try{return await fetch(`${n.ripploServerUrl}/health`,{signal:AbortSignal.timeout(f)}),null}catch(r){return{detail:r instanceof Error?r.message:String(r),serverUrl:n.ripploServerUrl}}}function m(e){return e.includes("localhost")||e.includes("127.0.0.1")}import g from"fuse.js";function s(e){switch(e.kind){case"conflicting-flags":return"Pass either --all or test ids, not both.";case"nothing-selected":return`No tests selected \u2014 scope empty, no dirty .ripplo/workflows files. Pass test ids, add to scope (${a("run")}), or use --all.`;case"unknown-ids":{let n=e.known,r=e.unknown.flatMap(i=>b(i,n)),o=r.length>0?[`Did you mean: ${[...new Set(r)].join(", ")}`]:[];return[`Unknown ${e.unknown.length===1?"id":"ids"}: ${e.unknown.join(", ")}`,...o,"Pass a workflow slug for all its tests, or workflow/test for one. Known workflows:",...n.map(i=>` ${i}`)].join(`
5
+ `)}}}function A({failed:e,notRun:n,passed:r}){let o=n>0?`, ${String(n)} not run`:"";return`${String(r)} passed, ${String(e)} failed${o} (${String(r+e+n)} total)`}function j({debugDir:e,event:n}){let r=`${n.workflowName} \u2192 ${n.testName}`;if(n.kind==="test-started")return`${t.dim("run ")} ${r}`;switch(n.outcome.kind){case"pass":return`${t.good("pass")} ${r} ${t.dim(n.runId)}`;case"findings":return[`${t.bad("fail")} ${r} \u2014 ${c(n.outcome.findingLines.length,"finding")}`,...n.outcome.findingLines,u({debugDir:e,runId:n.runId}),`${t.dim("why")} npx ripplo explain ${n.runId}`].join(`
6
+ `);case"error":return`${t.bad("error")} ${r} \u2014 ${w(n.outcome.detail)} ${t.dim(n.runId)}`;case"dispatch-error":return`${t.bad("error")} ${r} \u2014 ${y(n.outcome.reason)}`;case"dispatch-timeout":return`${t.bad("error")} ${r} \u2014 not run: dispatch timed out (transient): ${n.outcome.detail}`;case"infra-error":return`${t.bad("error")} ${r} \u2014 not run: Ripplo server unreachable: ${n.outcome.detail}`}}var h={MAX_AGENTS:"agent limit reached for your plan \u2014 upgrade to add more",MAX_CONCURRENT_RUNS:"concurrent run limit reached for your plan \u2014 upgrade or wait for runs to finish",MAX_PROJECTS:"project limit reached for your plan \u2014 upgrade to add more",MAX_RUNS:"run limit reached for your plan \u2014 enable overage or upgrade",OVERAGE_CAP:"overage cap reached \u2014 raise the cap or upgrade"};function N({detail:e,serverUrl:n}){return m(n)?`Ripplo server at ${n} not running (${e}). Start the dev server with \`pnpm dev\`.`:`Ripplo server at ${n} unreachable (${e}) \u2014 server-side, not your local environment.`}function M(e){switch(e.code){case"compile-failed":{let n=e.diagnostics.length===0?[]:["",...e.diagnostics];return[`Compilation failed in the daemon (${e.detail}). Run \`npx ripplo compile\` for full output.`,...n].join(`
7
7
  `)}case"selection-conflicting-flags":return s({kind:"conflicting-flags"});case"selection-nothing-selected":return s({kind:"nothing-selected"});case"selection-unknown-ids":return s({kind:"unknown-ids",known:e.known,unknown:e.unknown});case"app-unreachable":return`Your dev server not responding at ${e.url} (${e.detail}) \u2014 your local environment, not the Ripplo server.`;case"engine-unreachable":return`Ripplo engine not responding at ${e.url} (${e.detail}) \u2014 adapter unmounted, behind a build error, or RIPPLO_ENGINE_URL points at the wrong path.`;case"scope-failed":return`Could not resolve the dev-session scope: ${e.detail}
8
- Check the dev session is live (\`npx ripplo doctor\`, ${a("start")}), or pass test ids / --all.`;case"sync-failed":{let n=/401|unauthor/i.test(e.detail)?"\nAuth failure \u2014 run `npx ripplo auth login`.":"";return`Sync to the Ripplo server failed: ${e.detail}${n}`}case"bad-message":return"Daemon rejected the request \u2014 protocol mismatch, rebuild the CLI and restart the daemon."}}function M(e){switch(e.kind){case"spawn-failed":return`Failed to start \`npx ripplo daemon\`: ${$(e.message)}`;case"connect-timeout":return[`Daemon did not come up within ${String(Math.round(e.deadlineMs/1e3))}s.`,`Check ${e.logPath} for startup errors.`,"Common causes: stale socket (`rm .ripplo/.local/daemon.sock`), another daemon holding the dev lock, or the Ripplo server unreachable."].join(`
9
- `);case"connection-lost":return"Lost the daemon connection mid-run \u2014 it crashed or was killed. Check .ripplo/.local/daemon.log, restart `npx ripplo daemon`.";case"not-running":return"No ripplo daemon running for this directory. Start it with `npx ripplo daemon` as a background process, separate from your app's dev server.";case"bad-frame":return"Malformed frame from the daemon \u2014 version mismatch, rebuild the CLI and restart the daemon."}}function $(e){return e.includes("ENOENT")?`${e} \u2014 node or the CLI entry not found on PATH.`:e.includes("EACCES")?`${e} \u2014 permission denied executing the CLI entry.`:e}function w(e){return e.type==="limit"?h[e.code]:`failed to dispatch (${e.detail})`}function y(e,n){return new g(n,{includeScore:!0,threshold:.5}).search(d(e)).slice(0,3).map(o=>o.item)}export{S as a,m as b,L as c,A as d,j as e,N as f,M as g};
8
+ Check the dev session is live (\`npx ripplo doctor\`, ${a("start")}), or pass test ids / --all.`;case"sync-failed":{let n=/401|unauthor/i.test(e.detail)?"\nAuth failure \u2014 run `npx ripplo auth login`.":"";return`Sync to the Ripplo server failed: ${e.detail}${n}`}case"bad-message":return"Daemon rejected the request \u2014 protocol mismatch, rebuild the CLI and restart the daemon."}}function _(e){switch(e.kind){case"spawn-failed":return`Failed to start \`npx ripplo daemon\`: ${$(e.message)}`;case"connect-timeout":return[`Daemon did not come up within ${String(Math.round(e.deadlineMs/1e3))}s.`,`Check ${e.logPath} for startup errors.`,"Common causes: stale socket (`rm .ripplo/.local/daemon.sock`), another daemon holding the dev lock, or the Ripplo server unreachable."].join(`
9
+ `);case"connection-lost":return"Lost the daemon connection mid-run \u2014 it crashed or was killed. Check .ripplo/.local/daemon.log, restart `npx ripplo daemon`.";case"not-running":return"No ripplo daemon running for this directory. Start it with `npx ripplo daemon` as a background process, separate from your app's dev server.";case"bad-frame":return"Malformed frame from the daemon \u2014 version mismatch, rebuild the CLI and restart the daemon."}}function $(e){return e.includes("ENOENT")?`${e} \u2014 node or the CLI entry not found on PATH.`:e.includes("EACCES")?`${e} \u2014 permission denied executing the CLI entry.`:e}function w(e){return e==="worker-exit"?"run worker exited before reporting \u2014 usually a stale build. Run `pnpm build`, then `npx ripplo daemon stop` and start it again, then rerun.":e}function y(e){return e.type==="limit"?h[e.code]:`failed to dispatch (${e.detail})`}function b(e,n){return new g(n,{includeScore:!0,threshold:.5}).search(d(e)).slice(0,3).map(o=>o.item)}export{S as a,m as b,A as c,j as d,N as e,M as f,_ as g};