ripplo 0.8.0 → 0.8.2

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 (79) hide show
  1. package/dist/chunk-2MT2MZJW.js +11 -0
  2. package/dist/chunk-4FKGHWCC.js +5 -0
  3. package/dist/chunk-4W6WIT7T.js +4 -0
  4. package/dist/{chunk-SAYJ5AQK.js → chunk-5SM4TCSW.js} +19 -19
  5. package/dist/chunk-7TYUZIUO.js +8 -0
  6. package/dist/chunk-7WZ3VIUU.js +4 -0
  7. package/dist/chunk-A7SHHSB3.js +23 -0
  8. package/dist/chunk-AQ3DMGAY.js +6 -0
  9. package/dist/chunk-AVBP7Q2M.js +8 -0
  10. package/dist/chunk-CDPYJKK7.js +9 -0
  11. package/dist/chunk-CJUKILIO.js +4 -0
  12. package/dist/chunk-CRELTIU2.js +242 -0
  13. package/dist/{chunk-D6FZ55DP.js → chunk-DBIXYJRB.js} +1 -1
  14. package/dist/chunk-EGETJKAQ.js +4 -0
  15. package/dist/chunk-EK6TENV6.js +4 -0
  16. package/dist/chunk-ESOXRGIY.js +83 -0
  17. package/dist/chunk-FEHVIHVA.js +5 -0
  18. package/dist/chunk-I2M24U3N.js +23 -0
  19. package/dist/chunk-I5BHCICM.js +6 -0
  20. package/dist/chunk-JJ4QQPAV.js +4 -0
  21. package/dist/chunk-KOKEEAEF.js +6 -0
  22. package/dist/chunk-L7GWKDGD.js +4 -0
  23. package/dist/chunk-LB65USNP.js +73 -0
  24. package/dist/chunk-LEFXRK53.js +4 -0
  25. package/dist/chunk-LKYTQXPR.js +9 -0
  26. package/dist/chunk-M7VQD4VO.js +6 -0
  27. package/dist/chunk-MHNGR6M7.js +4 -0
  28. package/dist/chunk-MOI4L3EX.js +4 -0
  29. package/dist/chunk-N2B5GZPU.js +4 -0
  30. package/dist/chunk-OQ6KNYPG.js +4 -0
  31. package/dist/chunk-OWN4P2K7.js +4 -0
  32. package/dist/chunk-OY6HNCAZ.js +4 -0
  33. package/dist/chunk-PE5WVWI5.js +48 -0
  34. package/dist/chunk-PXZV5X3C.js +7 -0
  35. package/dist/chunk-R4ZTRVDQ.js +4 -0
  36. package/dist/chunk-SWOTFHBR.js +4 -0
  37. package/dist/chunk-T5VLZ43M.js +5 -0
  38. package/dist/chunk-UVYCSHOJ.js +55 -0
  39. package/dist/chunk-WHSQBXWO.js +7 -0
  40. package/dist/chunk-WNAVYV4P.js +4 -0
  41. package/dist/chunk-XBD3OTIW.js +8 -0
  42. package/dist/chunk-XWUIRXMS.js +16 -0
  43. package/dist/cli-error-SLG6JHK2.js +4 -0
  44. package/dist/compile-write-7AV66JUA.js +4 -0
  45. package/dist/daemon-BN42ZNCJ.js +139 -0
  46. package/dist/daemon-LFFCR3TB.js +4 -0
  47. package/dist/daemon-lock-LTQMLU4Q.js +4 -0
  48. package/dist/dsl-loader-H25XGSHJ.js +4 -0
  49. package/dist/exit-plan-gate-BNAUL4FC.js +4 -0
  50. package/dist/hook.js +5 -0
  51. package/dist/index.js +202 -405
  52. package/dist/plan-reminder-VMBDQTAP.js +4 -0
  53. package/dist/post-edit-2VFE6QND.js +4 -0
  54. package/dist/post-edit-analyze-VETPP5Z4.js +4 -0
  55. package/dist/post-edit-flag-stubs-J3MCGLXI.js +4 -0
  56. package/dist/pre-bash-run-gate-PWLARIYK.js +4 -0
  57. package/dist/pre-edit-Q4U5LSWG.js +4 -0
  58. package/dist/pre-edit-ripplo-skill-gate-JD4BDCA3.js +4 -0
  59. package/dist/pre-edit-scope-gate-NZO4HVGT.js +4 -0
  60. package/dist/pre-edit-watch-gate-EUZGEH2J.js +4 -0
  61. package/dist/prompt-submit-MPRVCWOI.js +4 -0
  62. package/dist/scope-reminder-CBY4I5SG.js +4 -0
  63. package/dist/session-preamble-RJ4WNGJN.js +4 -0
  64. package/dist/solve-worker.js +1 -1
  65. package/dist/status-UBUNHH5O.js +4 -0
  66. package/dist/stop-enforce-UXBQRTFP.js +64 -0
  67. package/dist/tasks-reminder-LKSUZUFD.js +4 -0
  68. package/dist/track-skill-load-CJ74GD3Q.js +4 -0
  69. package/dist/track-skill-prompt-YSB6OOQN.js +4 -0
  70. package/package.json +2 -2
  71. package/dist/chunk-E4AOUQQ7.js +0 -10
  72. package/dist/chunk-GOFUUPKD.js +0 -8
  73. package/dist/chunk-NIKFQP6W.js +0 -301
  74. package/dist/chunk-THHZNLXN.js +0 -48
  75. package/dist/chunk-VGYX2VAS.js +0 -85
  76. package/dist/daemon-MBF7JVEN.js +0 -139
  77. package/dist/daemon-VIHSG5KP.js +0 -4
  78. package/dist/daemon-lock-HIZ6UWXO.js +0 -4
  79. package/dist/status-G5OG62JI.js +0 -4
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __ripploCreateRequire } from "node:module";
3
+ const require = globalThis.require ?? __ripploCreateRequire(import.meta.url);
4
+ import{a as o}from"./chunk-AVBP7Q2M.js";import{a as t}from"./chunk-MHNGR6M7.js";var r=class extends Error{failure;constructor(i){super(i.kind),this.name="CliError",this.failure=i}};function u(e){return e instanceof r?a(e.failure):e instanceof Error?e.message:String(e)}function a(e){switch(e.kind){case"project-file-missing":return[`Missing ${e.path} \u2014 this directory is not a Ripplo project.`,"Run `npx ripplo init` to create it (or cd into the project root).",t("setup")].join(`
5
+ `);case"project-file-invalid":return[`${e.path} is invalid:`,...e.issues.map(i=>` ${i}`),"Fix the file by hand or re-run `npx ripplo init`."].join(`
6
+ `);case"not-authenticated":return["Not signed in. Run `npx ripplo auth login`.","(Claude Code: run it yourself in the background \u2014 the user just approves in the browser.)"].join(`
7
+ `);case"env-invalid":return s(e);case"playwright-install-failed":return["Playwright browser install failed \u2014 Chromium is still missing.","Run `npx playwright install chromium` and check its output for network, proxy, or disk-space errors."].join(`
8
+ `);case"gitdir-unrecognized":return`Unrecognized .git file at ${e.marker} \u2014 expected a directory or a "gitdir:" pointer (worktree). Is the repo corrupted?`;case"gitdir-empty":return`Empty gitdir pointer at ${e.marker} \u2014 the worktree's .git file points nowhere. Re-create the worktree.`;case"oauth-device-code-failed":return[`Could not start sign-in (device-code request failed): ${e.description}`,"Is the Ripplo server reachable? Check RIPPLO_SERVER_URL and retry."].join(`
9
+ `);case"oauth-authorization-failed":return[`Sign-in failed (${e.code}): ${e.description}`,e.code==="expired_token"?"The approval window expired \u2014 run `npx ripplo auth login` again.":"Run `npx ripplo auth login` to retry."].join(`
10
+ `);case"compilation-failed":return o(e.error)}}function g(e,i){let n=i instanceof Error?i.message:String(i);return`ripplo hook "${e}" crashed and was skipped \u2014 ${n}`}function s(e){let i=e.missingEnvFiles.length===0?[]:["Declared env files not found:",...e.missingEnvFiles.map(n=>` ${n}`),"In a git worktree? Env files aren't copied from the main checkout \u2014 recreate them, or symlink to a shared file outside the working tree."];return["Env config invalid:",...e.issues.map(n=>` ${n}`),"Add the missing values to the env files declared in .ripplo/project.json.",...i].join(`
11
+ `)}export{u as a,a as b,g as c};
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __ripploCreateRequire } from "node:module";
3
+ const require = globalThis.require ?? __ripploCreateRequire(import.meta.url);
4
+ import{a as r}from"./chunk-7WZ3VIUU.js";import{f as n}from"./chunk-4W6WIT7T.js";var m=async o=>{if(o.permission_mode!=="plan"||!r(o.cwd)||!n(o.cwd))return;let{loadRipplo:s}=await import("./dsl-loader-H25XGSHJ.js"),{stubbedWorkflows:a}=await import("./compile-write-7AV66JUA.js"),t=await s(o.cwd);if(t.isErr())return;let e=a(t.value),i=['Plan must include "Tests to implement" with a .ripplo/workflows/ file per affected flow (ExitPlanMode blocks otherwise). Stub each with `workflow("Intent")` (no body).'];return e.length>0&&i.push(`Existing stubs: ${e.join(", ")}`),{hookSpecificOutput:{additionalContext:i.join(`
5
+ `),hookEventName:"UserPromptSubmit"}}};export{m as a};
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __ripploCreateRequire } from "node:module";
3
+ const require = globalThis.require ?? __ripploCreateRequire(import.meta.url);
4
+ import{c as o}from"./chunk-DBIXYJRB.js";import{i as e}from"./chunk-PE5WVWI5.js";import m from"fs";import p from"fs";import i from"path";import{execFileSync as a}from"child_process";var f=256*1024*1024;function n(r,t){return a("git",[...r],{cwd:t,encoding:"utf8",maxBuffer:f,stdio:["ignore","pipe","pipe"]})}function E(r,t){try{return n(r,t)}catch{return""}}var g=["MERGE_HEAD","rebase-merge","rebase-apply","CHERRY_PICK_HEAD","REVERT_HEAD"];function d(r){return u(r)!=null}function s(r){let t=u(r);return t==null?!1:g.some(l=>p.existsSync(i.join(t,l)))}function u(r){try{let t=n(["rev-parse","--git-dir"],r).trim();return t.length===0?null:i.isAbsolute(t)?t:i.resolve(r,t)}catch{return null}}function c(r){return e(r,"hooks-paused")}function v(r){return m.existsSync(c(r))||s(r)?!1:o(r)}export{n as a,E as b,d as c,s as d,c as e,v as f};