ripplo 0.9.2 → 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.
- package/dist/{chunk-3FF33GCX.js → chunk-2TO6W5BR.js} +2 -2
- package/dist/{chunk-4KOWK5QE.js → chunk-2ZOIED3H.js} +1 -1
- package/dist/{chunk-KYMYKILH.js → chunk-66LUQG5T.js} +1 -1
- package/dist/chunk-727NNPVM.js +229 -0
- package/dist/{chunk-UDQKJVLD.js → chunk-BLH6XVEC.js} +1 -1
- package/dist/{chunk-IRTBARRY.js → chunk-ELECJABM.js} +1 -1
- package/dist/{chunk-Q6IYTHMP.js → chunk-G3UFH3WS.js} +1 -1
- package/dist/{chunk-EVVF662P.js → chunk-ML7WCYPY.js} +1 -1
- package/dist/{chunk-ZUPS6XVH.js → chunk-OIJBIBIN.js} +1 -1
- package/dist/{chunk-IL452KDO.js → chunk-ONNK7JT4.js} +1 -1
- package/dist/{chunk-XZ2TPZLD.js → chunk-PLQGRHHV.js} +1 -1
- package/dist/chunk-PPMW4GUY.js +83 -0
- package/dist/{chunk-BMRZGLUF.js → chunk-RAN55ZC6.js} +1 -1
- package/dist/{chunk-4F67XQYS.js → chunk-SBDRIIVW.js} +20 -20
- package/dist/chunk-T4GHICK4.js +6 -0
- package/dist/{chunk-SI42TC5O.js → chunk-TBCRT6EC.js} +1 -1
- package/dist/chunk-ZQHKESUR.js +4 -0
- package/dist/{cli-error-J33JDZET.js → cli-error-TM2YODR3.js} +1 -1
- package/dist/{compile-write-SRW6FWD2.js → compile-write-TTEHFTNY.js} +1 -1
- package/dist/{daemon-42BG4EKR.js → daemon-6B4OSRBS.js} +1 -1
- package/dist/{daemon-4W6BN73Z.js → daemon-M52H2YF7.js} +1 -1
- package/dist/{dsl-loader-5Z2JRKY3.js → dsl-loader-Z54ZM7C6.js} +1 -1
- package/dist/hook.js +1 -1
- package/dist/index.js +184 -184
- package/dist/{plan-reminder-2GIRATWH.js → plan-reminder-2ABA3SFH.js} +1 -1
- package/dist/post-edit-XBVQBSKV.js +4 -0
- package/dist/post-edit-analyze-KDA7T37Z.js +4 -0
- package/dist/post-edit-flag-stubs-SX2Y7OHG.js +4 -0
- package/dist/{pre-edit-EJO3TUNQ.js → pre-edit-FTNMDZZO.js} +1 -1
- package/dist/{pre-edit-watch-gate-DZHQCMEI.js → pre-edit-watch-gate-MR7YQGEV.js} +1 -1
- package/dist/{prompt-submit-3SSUX3S2.js → prompt-submit-AMSKMHWO.js} +1 -1
- package/dist/solve-worker.js +1 -1
- package/dist/status-2IFILDIA.js +4 -0
- package/dist/{stop-enforce-TYUSBDHO.js → stop-enforce-P6YWEHWE.js} +1 -1
- package/package.json +4 -4
- package/dist/chunk-3LYVTLBJ.js +0 -4
- package/dist/chunk-IGPHRN4A.js +0 -83
- package/dist/chunk-SWYJTSC3.js +0 -6
- package/dist/chunk-VE6PPIKX.js +0 -229
- package/dist/post-edit-T5C6I6ZI.js +0 -4
- package/dist/post-edit-analyze-326U7L26.js +0 -4
- package/dist/post-edit-flag-stubs-EBDTZMDS.js +0 -4
- package/dist/status-WZG6MDCY.js +0 -4
|
@@ -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 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{
|
|
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
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
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}
|