ripplo 0.9.6 → 0.9.8

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 (63) hide show
  1. package/dist/{chunk-WCSDBWCI.js → chunk-22JUAYHM.js} +1 -1
  2. package/dist/{chunk-V4CLXOCP.js → chunk-2GFHB4LD.js} +1 -1
  3. package/dist/{chunk-A5EBMT2E.js → chunk-3UZZBLVA.js} +1 -1
  4. package/dist/{chunk-BDWNZMUM.js → chunk-64OQXBRG.js} +1 -1
  5. package/dist/{chunk-T76D4SYI.js → chunk-7EL64XR6.js} +1 -1
  6. package/dist/{chunk-5DT43ABQ.js → chunk-7IIRERCW.js} +1 -1
  7. package/dist/{chunk-FJPJDGSS.js → chunk-7VGCLQGP.js} +1 -1
  8. package/dist/{chunk-DK4NUWRX.js → chunk-7W237JFM.js} +1 -1
  9. package/dist/{chunk-TQANCEOL.js → chunk-7YQOAAKF.js} +3 -3
  10. package/dist/{chunk-TPQIFYHW.js → chunk-AGK6XOX2.js} +1 -1
  11. package/dist/{chunk-L2ZJK7MP.js → chunk-AWPZTNYU.js} +1 -1
  12. package/dist/{chunk-HD7WIBP2.js → chunk-CB74TAUC.js} +1 -1
  13. package/dist/chunk-CTTC4KKQ.js +83 -0
  14. package/dist/{chunk-GFKK7K6T.js → chunk-GI65FUDI.js} +1 -1
  15. package/dist/{chunk-NOT5PEHM.js → chunk-GZ3M7PNW.js} +1 -1
  16. package/dist/{chunk-VCY2CEE2.js → chunk-IDPJESOE.js} +1 -1
  17. package/dist/{chunk-XJJDHGK4.js → chunk-IKYR3UCU.js} +9 -9
  18. package/dist/chunk-IPSXNIXC.js +48 -0
  19. package/dist/{chunk-6SYRXU4Q.js → chunk-N2OBRCPQ.js} +1 -1
  20. package/dist/{chunk-RIVHBABX.js → chunk-NY6EIQR4.js} +1 -1
  21. package/dist/{chunk-Z6UPZDW6.js → chunk-OAU4HUD2.js} +1 -1
  22. package/dist/{chunk-5D6PNHDQ.js → chunk-OES7HGNF.js} +1 -1
  23. package/dist/{chunk-CY5FJBHP.js → chunk-OQ4TDIP3.js} +1 -1
  24. package/dist/{chunk-5IMT3SAH.js → chunk-OQS63V7U.js} +2 -2
  25. package/dist/{chunk-36NPGS6X.js → chunk-R3DZ6JPY.js} +1 -1
  26. package/dist/{chunk-SXDYA2OR.js → chunk-SNU66GSR.js} +1 -1
  27. package/dist/{chunk-GKYP7AMJ.js → chunk-TOBC3SQA.js} +1 -1
  28. package/dist/{chunk-AIIZRQXH.js → chunk-TPHOSZAK.js} +1 -1
  29. package/dist/{chunk-NOKKMFJP.js → chunk-YQ2RBEOJ.js} +1 -1
  30. package/dist/{cli-error-OIG4RO4E.js → cli-error-TS4FNZ6F.js} +1 -1
  31. package/dist/{compile-write-OLP4DB4P.js → compile-write-BLJH647I.js} +1 -1
  32. package/dist/{daemon-WEKGUIRK.js → daemon-QKBWYQJA.js} +1 -1
  33. package/dist/daemon-UMZJZ7BY.js +152 -0
  34. package/dist/{daemon-lock-YRKNXWGO.js → daemon-lock-OAARBZ4O.js} +1 -1
  35. package/dist/{dsl-loader-IRBKYLNW.js → dsl-loader-NGW4V4A3.js} +1 -1
  36. package/dist/{exit-plan-gate-X3TX6QWS.js → exit-plan-gate-HSTV7UO4.js} +1 -1
  37. package/dist/hook.js +1 -1
  38. package/dist/index.js +2 -2
  39. package/dist/{plan-reminder-AR3TJXLA.js → plan-reminder-RBCRBCKC.js} +1 -1
  40. package/dist/post-edit-MVGQGAW4.js +4 -0
  41. package/dist/post-edit-analyze-XWTZMQCB.js +4 -0
  42. package/dist/post-edit-flag-stubs-4MQZATJE.js +4 -0
  43. package/dist/{pre-bash-run-gate-LQK52CAV.js → pre-bash-run-gate-B42YNDQF.js} +1 -1
  44. package/dist/pre-edit-YF6WNE6G.js +4 -0
  45. package/dist/{pre-edit-ripplo-skill-gate-XJHLJN2F.js → pre-edit-ripplo-skill-gate-QHUD7QGU.js} +1 -1
  46. package/dist/{pre-edit-scope-gate-K5NYCES7.js → pre-edit-scope-gate-2YIFSEDY.js} +1 -1
  47. package/dist/{pre-edit-watch-gate-5YWMODVX.js → pre-edit-watch-gate-SJ3RCYH5.js} +1 -1
  48. package/dist/{prompt-submit-PXMO75JB.js → prompt-submit-YX7GMTC4.js} +1 -1
  49. package/dist/scope-reminder-DIDCHDAA.js +4 -0
  50. package/dist/solve-worker.js +1 -1
  51. package/dist/status-HPMHJBKH.js +4 -0
  52. package/dist/{stop-enforce-56SLPUYT.js → stop-enforce-VWOM5EZY.js} +1 -1
  53. package/dist/{tasks-reminder-OJEB6HE5.js → tasks-reminder-SDS6RNLP.js} +1 -1
  54. package/package.json +2 -2
  55. package/dist/chunk-4GA5662U.js +0 -83
  56. package/dist/chunk-AJXAWZQO.js +0 -48
  57. package/dist/daemon-ZHTQ472Q.js +0 -152
  58. package/dist/post-edit-VUBL7RDW.js +0 -4
  59. package/dist/post-edit-analyze-ECCVJCPQ.js +0 -4
  60. package/dist/post-edit-flag-stubs-AHP6XA2S.js +0 -4
  61. package/dist/pre-edit-4MNJA3OT.js +0 -4
  62. package/dist/scope-reminder-LDBXUQZH.js +0 -4
  63. package/dist/status-2FS6ZFIU.js +0 -4
@@ -1,6 +1,6 @@
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{B as i,f as t}from"./chunk-4GA5662U.js";function m(e){switch(e.kind){case"empty-response":return"ripplo daemon: cloud tunnel provisioning returned no result. Check server logs and retry.";case"server-error":return`ripplo daemon: cloud tunnel provisioning failed (${e.typename}). Run \`npx ripplo doctor\` to check your setup.`}}function g(e){switch(e.kind){case"already-running":return`ripplo daemon: daemon already running (socket ${e.socketPath}).`;case"bind-failed":return`ripplo daemon: failed to bind IPC socket: ${e.message}`}}function f({projectId:e,serverUrl:n}){return[`Project "${e}" (from .ripplo/project.json) was not found on ${n}, or this account does not have access to it.`,"Run `npx ripplo projects list` to see your projects, then update .ripplo/project.json (or re-run `npx ripplo init --project <id>`)."].join(`
4
+ import{B as i,f as t}from"./chunk-CTTC4KKQ.js";function m(e){switch(e.kind){case"empty-response":return"ripplo daemon: cloud tunnel provisioning returned no result. Check server logs and retry.";case"server-error":return`ripplo daemon: cloud tunnel provisioning failed (${e.typename}). Run \`npx ripplo doctor\` to check your setup.`}}function g(e){switch(e.kind){case"already-running":return`ripplo daemon: daemon already running (socket ${e.socketPath}).`;case"bind-failed":return`ripplo daemon: failed to bind IPC socket: ${e.message}`}}function f({projectId:e,serverUrl:n}){return[`Project "${e}" (from .ripplo/project.json) was not found on ${n}, or this account does not have access to it.`,"Run `npx ripplo projects list` to see your projects, then update .ripplo/project.json (or re-run `npx ripplo init --project <id>`)."].join(`
5
5
  `)}function h(){return"Not signed in. Run `npx ripplo auth login`, then start the daemon again."}function x({devSessionId:e,version:n}){return`ripplo daemon: v${n} ready as local executor for session ${e} (switch with \`npx ripplo executor cloud\` \u2014 Ctrl-C to stop)`}function k({cwd:e,pid:n}){return`ripplo daemon: another daemon is already running for this project${n==null?"":` (pid ${String(n)})`} (cwd ${e}) \u2014 this one is exiting. Run \`npx ripplo daemon status\` to inspect it, or \`npx ripplo daemon stop\` to stop it.`}function y(e){switch(e.kind){case"not-running":return"ripplo daemon: not running.";case"stopped":return`ripplo daemon: stopped (pid ${String(e.pid)}).`;case"timeout":return`ripplo daemon: pid ${String(e.pid)} did not exit within 10s \u2014 it may be finishing a run. Check again with \`npx ripplo daemon status\`.`}}function $(){return"ripplo daemon: lock compromised \u2014 another daemon likely took over this project. Shutting down."}function w(e){if(e.kind==="not-running")return"daemon: not running";if(e.kind==="unresponsive")return`daemon: running but no reply within ${String(e.timeoutMs/1e3)}s \u2014 likely busy executing runs, retry when the batch drains`;let{status:n}=e,r=n.version==null?"version unknown (pre-0.7.8)":`v${n.version}`,s=`${String(n.active)} active, ${String(n.queued)} queued`,p=l(n.explorer,n.exploring),o=`daemon: running (${r} | ${s} | ${p} | ${d(n.progress)})`;if(n.sseHealth!=null&&!n.sseHealth.ok){let a=n.sseHealth.detail==null?"":`: ${n.sseHealth.detail}`;return`${o}
6
6
  daemon: cannot subscribe to run dispatch${a} \u2014 server-side, restarting the daemon will not help`}return o}function d(e){return e.attempts===0?"explore: idle":`explore: ${String(e.attempts)} attempts, ${String(e.findings)} findings`}function b(e){let n=e.daemonVersion==null?"an older build":`v${e.daemonVersion}`;return e.kind==="restarted"?`ripplo: daemon was on ${n} \u2014 restarted on the current build`:`ripplo: daemon is on a stale build (${n}) with runs in flight \u2014 rerun once it drains, or npx ripplo daemon restart`}function v(e){switch(e.kind){case"pass":return{kind:"pass"};case"findings":return{findingLines:e.contradictions.map(n=>i({contradiction:n,evidencePath:`.ripplo/debug/${e.runId}/behavior.jsonl`})),kind:"findings"};case"error":return{detail:t(e.error),kind:"error"};case"dispatch-failed":return{kind:"dispatch-error",reason:{detail:e.reason,type:"generic"}}}}function l(e,n){switch(e.kind){case"off":return"explorer: off";case"on":return`explorer: on, ${String(n)} exploring`;case"paused":return"explorer: paused for active runs or a short cooldown \u2014 resumes on its own";case"blocked":return`explorer: blocked \u2014 ${u(e.reason)}`}}function u(e){switch(e){case"no-lockfile":return"no lockfile found, run npx ripplo compile";case"unstamped":return"lockfile has no compiled checks, run npx ripplo compile";case"expander-newer":return"lockfile predates the current CLI build, run npx ripplo compile";case"dsl-drift":return"workflow sources changed since the last compile, run npx ripplo compile";case"load-failed":return"workflow definitions do not compile, run npx ripplo compile for details"}}export{m as a,g as b,f as c,h as d,x as e,k as f,y as g,$ as h,w as i,d as j,b as k,v as l};
@@ -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{b as u}from"./chunk-6SYRXU4Q.js";import{a as f}from"./chunk-JJ4QQPAV.js";import{a as m}from"./chunk-7WZ3VIUU.js";import{f as c}from"./chunk-AIIZRQXH.js";import{i as p}from"./chunk-RIVHBABX.js";import{n as l}from"./chunk-L2ZJK7MP.js";import v from"path";import h from"picomatch";import*as s from"zod/mini";var w=s.looseObject({file_path:s.string()}),R=async n=>{let i=w.safeParse(n.tool_input);if(!i.success)return;let d=i.data.file_path,{cwd:t}=n;if(!m(t)||!c(t))return;let r=v.relative(t,d);if(r.startsWith(".."))return;let{ignorePaths:b,watchPaths:k}=f(),P=h([...k]),g=h([...b]);if(!P(r)||g(r))return;let o=await l(t);if(u({cwd:t,tests:o.isOk()?o.value.workflows.map(e=>({intent:e.intent,name:e.name,sourcePath:e.sourcePath??null,stub:e.stub})):void 0}),o.isErr())return;let a=p(o.value);if(a.length!==0)return{hookSpecificOutput:{additionalContext:`Reminder: stub workflows still unimplemented \u2014 ${a.join(", ")}. Implement with \`workflow("Intent", () => ({ given, steps }))\`.`,hookEventName:"PostToolUse"}}};export{R as a};
4
+ import{b as u}from"./chunk-N2OBRCPQ.js";import{a as f}from"./chunk-JJ4QQPAV.js";import{a as m}from"./chunk-7WZ3VIUU.js";import{f as c}from"./chunk-TPHOSZAK.js";import{i as p}from"./chunk-NY6EIQR4.js";import{n as l}from"./chunk-AWPZTNYU.js";import v from"path";import h from"picomatch";import*as s from"zod/mini";var w=s.looseObject({file_path:s.string()}),R=async n=>{let i=w.safeParse(n.tool_input);if(!i.success)return;let d=i.data.file_path,{cwd:t}=n;if(!m(t)||!c(t))return;let r=v.relative(t,d);if(r.startsWith(".."))return;let{ignorePaths:b,watchPaths:k}=f(),P=h([...k]),g=h([...b]);if(!P(r)||g(r))return;let o=await l(t);if(u({cwd:t,tests:o.isOk()?o.value.workflows.map(e=>({intent:e.intent,name:e.name,sourcePath:e.sourcePath??null,stub:e.stub})):void 0}),o.isErr())return;let a=p(o.value);if(a.length!==0)return{hookSpecificOutput:{additionalContext:`Reminder: stub workflows still unimplemented \u2014 ${a.join(", ")}. Implement with \`workflow("Intent", () => ({ given, steps }))\`.`,hookEventName:"PostToolUse"}}};export{R as a};
@@ -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-DK4NUWRX.js";import{c as l}from"./chunk-FEHVIHVA.js";import{a}from"./chunk-MHNGR6M7.js";import{g as t,l as u}from"./chunk-4GA5662U.js";import{X as d}from"./chunk-XJJDHGK4.js";var g=3e3;async function R(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(g)}),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 f 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(`
4
+ import{a as c}from"./chunk-OQ6KNYPG.js";import{c as p}from"./chunk-7W237JFM.js";import{c as l}from"./chunk-FEHVIHVA.js";import{a}from"./chunk-MHNGR6M7.js";import{g as t,l as u}from"./chunk-CTTC4KKQ.js";import{W as d}from"./chunk-IKYR3UCU.js";var g=3e3;async function R(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(g)}),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 f 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 N({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={CLOUD_EXECUTOR:"cloud runs are not included on your plan \u2014 upgrade to run in the cloud",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",MEMBER_CEILING:"member ceiling reached for the target plan \u2014 remove members or pick a bigger plan",OVERAGE_CAP:"overage cap reached \u2014 raise the cap or upgrade",REVIEW_QUOTA:"review quota reached for your plan \u2014 set an overage 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 _(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}