ripplo 0.9.5 → 0.9.7
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-22JUAYHM.js +4 -0
- package/dist/{chunk-ZYDCN5K2.js → chunk-2Q7VXQYN.js} +1 -1
- package/dist/chunk-4GA5662U.js +83 -0
- package/dist/{chunk-NBSDY7QG.js → chunk-5DT43ABQ.js} +1 -1
- package/dist/{chunk-74ZADYZC.js → chunk-6VUSLPQD.js} +3 -3
- package/dist/chunk-7CELUIVK.js +55 -0
- package/dist/{chunk-KQWFJRIP.js → chunk-7W237JFM.js} +1 -1
- package/dist/{chunk-T46B2OPT.js → chunk-AGK6XOX2.js} +1 -1
- package/dist/chunk-BJWGAKKD.js +224 -0
- package/dist/{chunk-VXJACUXK.js → chunk-BNMS3N54.js} +1 -1
- package/dist/{chunk-IDPYM454.js → chunk-CAS7MBA7.js} +5 -5
- package/dist/{chunk-N45RSC6N.js → chunk-CB74TAUC.js} +1 -1
- package/dist/chunk-FJPJDGSS.js +7 -0
- package/dist/{chunk-2A6KSSUD.js → chunk-GFKK7K6T.js} +1 -1
- package/dist/chunk-GZPE7I7U.js +8 -0
- package/dist/{chunk-TRQDCBKV.js → chunk-IG7J452B.js} +1 -1
- package/dist/chunk-IPSXNIXC.js +48 -0
- package/dist/chunk-L2ZJK7MP.js +6 -0
- package/dist/chunk-LOEAZGYO.js +4 -0
- package/dist/{chunk-GAOLASGV.js → chunk-N2OBRCPQ.js} +1 -1
- package/dist/{chunk-3PF5QK56.js → chunk-OAU4HUD2.js} +1 -1
- package/dist/{chunk-CUXFU3MF.js → chunk-OES7HGNF.js} +1 -1
- package/dist/{chunk-INURHJF4.js → chunk-R3DZ6JPY.js} +1 -1
- package/dist/chunk-RIVHBABX.js +4 -0
- package/dist/{chunk-6FU7HD6D.js → chunk-SNU66GSR.js} +1 -1
- package/dist/chunk-TPCKMDWU.js +4 -0
- package/dist/{chunk-3M2E253R.js → chunk-TPHOSZAK.js} +1 -1
- package/dist/{chunk-QIXJ7Z2L.js → chunk-V4CLXOCP.js} +1 -1
- package/dist/{chunk-JNLHZVZJ.js → chunk-XJJDHGK4.js} +19 -19
- package/dist/{chunk-3OI2UH3H.js → chunk-YQ2RBEOJ.js} +1 -1
- package/dist/{cli-error-MEC67EVT.js → cli-error-OIG4RO4E.js} +1 -1
- package/dist/{compile-write-F7D273JN.js → compile-write-OLP4DB4P.js} +1 -1
- package/dist/daemon-3IWI7VQT.js +152 -0
- package/dist/{daemon-QRMX6RPX.js → daemon-WEKGUIRK.js} +1 -1
- package/dist/{daemon-lock-67AFXXED.js → daemon-lock-OAARBZ4O.js} +1 -1
- package/dist/{dsl-loader-A2EMKCRL.js → dsl-loader-IRBKYLNW.js} +1 -1
- package/dist/{exit-plan-gate-WPHQII5J.js → exit-plan-gate-HSTV7UO4.js} +1 -1
- package/dist/hook.js +1 -1
- package/dist/index.js +174 -174
- package/dist/{plan-reminder-6E4CHEAZ.js → plan-reminder-FZSSUVNB.js} +1 -1
- package/dist/post-edit-333UCJ6G.js +4 -0
- package/dist/post-edit-analyze-JFWA223C.js +4 -0
- package/dist/post-edit-flag-stubs-IZSAIM4O.js +4 -0
- package/dist/{pre-bash-run-gate-WOGQZARU.js → pre-bash-run-gate-B42YNDQF.js} +1 -1
- package/dist/pre-edit-WZJVD3J4.js +4 -0
- package/dist/pre-edit-ripplo-skill-gate-QHUD7QGU.js +4 -0
- package/dist/pre-edit-scope-gate-2YIFSEDY.js +4 -0
- package/dist/{pre-edit-watch-gate-6MMET2NZ.js → pre-edit-watch-gate-GQZYMDOC.js} +1 -1
- package/dist/{prompt-submit-WMYBXZQN.js → prompt-submit-LE5LR62B.js} +1 -1
- package/dist/scope-reminder-DIDCHDAA.js +4 -0
- package/dist/solve-worker.js +1 -1
- package/dist/status-H5WYYH4J.js +4 -0
- package/dist/{stop-enforce-56SKN4RO.js → stop-enforce-EH2SC7ND.js} +1 -1
- package/dist/tasks-reminder-SDS6RNLP.js +4 -0
- package/package.json +2 -3
- package/dist/chunk-52IE2PAQ.js +0 -48
- package/dist/chunk-77DJHICC.js +0 -83
- package/dist/chunk-B6OQ2JE2.js +0 -4
- package/dist/chunk-CJUKILIO.js +0 -4
- package/dist/chunk-ESTPIODD.js +0 -7
- package/dist/chunk-GYH4P7SC.js +0 -4
- package/dist/chunk-IA7TU3WW.js +0 -4
- package/dist/chunk-JIMLVUPS.js +0 -229
- package/dist/chunk-NJFCO7FT.js +0 -8
- package/dist/chunk-PPB7QGV2.js +0 -55
- package/dist/chunk-XBN6AJVQ.js +0 -6
- package/dist/daemon-3CCSJNDP.js +0 -152
- package/dist/post-edit-VHZDDVV5.js +0 -4
- package/dist/post-edit-analyze-YAVEMK4O.js +0 -4
- package/dist/post-edit-flag-stubs-PMMITC7F.js +0 -4
- package/dist/pre-edit-R77BLLLQ.js +0 -4
- package/dist/pre-edit-ripplo-skill-gate-FXNQWVME.js +0 -4
- package/dist/pre-edit-scope-gate-ADO3NRVS.js +0 -4
- package/dist/scope-reminder-XTXZHPLU.js +0 -4
- package/dist/status-PUV7KG33.js +0 -4
- package/dist/tasks-reminder-PICFLMC2.js +0 -4
|
@@ -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{j as l}from"./chunk-IPSXNIXC.js";import{spawnSync as y}from"child_process";import{existsSync as s,readdirSync as d,readFileSync as g,realpathSync as u,statSync as m}from"fs";import i from"path";var h=2e3;function D(t){if(t!=null)try{return m(u(t)).mtimeMs}catch{return}}function W(t){return y("pnpm",["turbo","run","build","--filter=ripplo..."],{cwd:t,stdio:"inherit"}).status===0}function T(){let t=process.argv[1];if(t==null)return{kind:"fresh"};let n=u(t),r=n.includes(`${i.sep}src${i.sep}`),o=c(i.dirname(n));if(o!=null)return r?{kind:"fresh"}:k(o);let a=c(process.cwd());return a!=null&&j(a)?{kind:"foreign-binary",workspaceRoot:a}:{kind:"fresh"}}function c(t){let n=i.dirname(t);return s(i.join(t,"pnpm-workspace.yaml"))?t:n===t?void 0:c(n)}function k(t){let n=i.join(t,"packages");if(!s(n))return{kind:"fresh"};let r=d(n).map(o=>({dist:i.join(n,o,"dist"),name:o,src:i.join(n,o,"src")})).filter(o=>s(o.src)&&s(o.dist)).filter(o=>p(o.src)>p(o.dist)+h).map(o=>o.name);return r.length===0?{kind:"fresh"}:{kind:"stale",packages:r,workspaceRoot:t}}function p(t){let n=m(t);if(!n.isDirectory())return n.mtimeMs;let r=d(t).map(o=>p(i.join(t,o)));return Math.max(n.mtimeMs,...r)}function j(t){let n=i.join(t,"packages","cli","package.json");if(!s(n))return!1;let r=JSON.parse(g(n,"utf8"));return typeof r=="object"&&r!=null&&"name"in r&&r.name==="ripplo"}import{createHash as x}from"crypto";import S from"os";import R from"path";import{createMessageConnection as E,NotificationType as f,RequestType as w,RequestType0 as b,SocketMessageReader as P,SocketMessageWriter as M}from"vscode-jsonrpc/node";import{z as e}from"zod";var q="daemon.log";function H(t){let n=x("sha256").update(t).digest("hex").slice(0,16);return R.join(S.tmpdir(),`ripplo-${n}.sock`)}function V(t){return l(t,q)}function Q(t){return E(new P(t),new M(t))}var Y=e.object({all:e.boolean(),headed:e.boolean(),tests:e.array(e.string())}),Z=e.object({jobId:e.string(),total:e.number()}),I=e.enum(["no-lockfile","unstamped","expander-newer","dsl-drift","load-failed"]),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("blocked"),reason:I})]),C=e.object({attempts:e.number(),findings:e.number()}),ee=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")})]),N=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")})]),O=e.discriminatedUnion("kind",[e.object({kind:e.literal("test-started"),runId:e.string(),testName:e.string(),workflowName:e.string()}),e.object({kind:e.literal("test-outcome"),outcome:N,runId:e.string(),testName:e.string(),workflowName:e.string()})]),te=e.object({event:O,jobId:e.string()}),ne=e.object({failed:e.number(),jobId:e.string(),notRun:e.number(),passed:e.number()}),oe=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")})]),re=new w("ripplo/enqueue"),ie=new b("ripplo/status"),se=new b("ripplo/shutdownIfIdle"),ae=new f("ripplo/jobEvent"),ce=new f("ripplo/jobDone");export{D as a,W as b,T as c,H as d,V as e,Q as f,Y as g,Z as h,ee as i,N as j,te as k,ne as l,oe as m,re as n,ie as o,se as p,ae as q,ce as r};
|
|
@@ -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}from"./chunk-7WZ3VIUU.js";import{f as n}from"./chunk-
|
|
4
|
+
import{a as r}from"./chunk-7WZ3VIUU.js";import{f as n}from"./chunk-TPHOSZAK.js";var m=async o=>{if(o.permission_mode!=="plan"||!r(o.cwd)||!n(o.cwd))return;let{loadRipplo:s}=await import("./dsl-loader-IRBKYLNW.js"),{stubbedWorkflows:a}=await import("./compile-write-OLP4DB4P.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
5
|
`),hookEventName:"UserPromptSubmit"}}};export{m as a};
|