ripplo 0.9.8 → 0.11.0
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/README.md +105 -47
- package/dist/assets/rrweb-replay.js +1 -1
- package/dist/assets/rrweb.js +1 -1
- package/dist/capture-worker.js +20 -14
- package/dist/chunk-3HAQCJRK.js +4 -0
- package/dist/{chunk-5E62BCS7.js → chunk-47LLHHJH.js} +2 -2
- package/dist/chunk-4YAC72LW.js +7 -0
- package/dist/chunk-5HFJIZLI.js +4 -0
- package/dist/chunk-6U2LNGSV.js +51 -0
- package/dist/{chunk-2GFHB4LD.js → chunk-6WFJZ5L6.js} +1 -1
- package/dist/chunk-7JKCHASU.js +4 -0
- package/dist/{chunk-3UZZBLVA.js → chunk-7RREARGA.js} +2 -2
- package/dist/{chunk-WNAVYV4P.js → chunk-AXROBTLA.js} +1 -1
- package/dist/chunk-BGY5F3IU.js +5 -0
- package/dist/{chunk-IPSXNIXC.js → chunk-C7SV6AR2.js} +4 -4
- package/dist/chunk-CI6273ZU.js +107 -0
- package/dist/chunk-DY7ZW6QZ.js +9 -0
- package/dist/chunk-E6ZBZIIS.js +4 -0
- package/dist/chunk-G6J2WIHJ.js +4 -0
- package/dist/{chunk-64OQXBRG.js → chunk-GYBY7EOO.js} +1 -1
- package/dist/{chunk-LOEAZGYO.js → chunk-HEOMRXZE.js} +1 -1
- package/dist/chunk-IK3ROREL.js +6 -0
- package/dist/{chunk-7W237JFM.js → chunk-JS3DLVVI.js} +1 -1
- package/dist/{chunk-TPHOSZAK.js → chunk-KH4QH23U.js} +1 -1
- package/dist/{chunk-OES7HGNF.js → chunk-LEFODI2H.js} +1 -1
- package/dist/{chunk-7EL64XR6.js → chunk-LWMXGWS2.js} +1 -1
- package/dist/chunk-O45YB6YY.js +354 -0
- package/dist/{chunk-YQ2RBEOJ.js → chunk-PXXURBGC.js} +2 -2
- package/dist/{chunk-OAU4HUD2.js → chunk-PYDYI3AA.js} +2 -2
- package/dist/{chunk-R3DZ6JPY.js → chunk-RIASQHPG.js} +1 -1
- package/dist/chunk-S2K5KILQ.js +8 -0
- package/dist/chunk-SXVWB7TZ.js +6 -0
- package/dist/chunk-UH5CQF5R.js +6 -0
- package/dist/{chunk-GZ3M7PNW.js → chunk-VKAZQPJJ.js} +1 -1
- package/dist/chunk-WAGXAEB4.js +13 -0
- package/dist/chunk-WBKSJU63.js +83 -0
- package/dist/{chunk-AGK6XOX2.js → chunk-XAMVRZJH.js} +2 -2
- package/dist/chunk-ZHDR7LXB.js +56 -0
- package/dist/{cli-error-TS4FNZ6F.js → cli-error-6PUIWNIT.js} +1 -1
- package/dist/{compile-write-BLJH647I.js → compile-write-KUUFWSI4.js} +1 -1
- package/dist/daemon-2ZTZXQW6.js +4 -0
- package/dist/daemon-GP3EIISA.js +152 -0
- package/dist/{daemon-lock-OAARBZ4O.js → daemon-lock-RPKO5SNE.js} +1 -1
- package/dist/dsl-loader-WPAKMON7.js +4 -0
- package/dist/dsl-typecheck-worker.js +6 -0
- package/dist/{exit-plan-gate-HSTV7UO4.js → exit-plan-gate-44YWEKYS.js} +1 -1
- package/dist/hook.js +1 -1
- package/dist/index.js +207 -260
- package/dist/{plan-reminder-RBCRBCKC.js → plan-reminder-PP5DQAQZ.js} +1 -1
- package/dist/post-edit-R7KN424T.js +4 -0
- package/dist/post-edit-analyze-UURDL3AH.js +4 -0
- package/dist/post-edit-flag-stubs-I7AUGN4D.js +4 -0
- package/dist/pre-bash-run-gate-MIEM2DBB.js +4 -0
- package/dist/pre-edit-C4MGURNO.js +4 -0
- package/dist/pre-edit-ripplo-skill-gate-A6ETC3QN.js +4 -0
- package/dist/pre-edit-scope-gate-M5IQSVGF.js +4 -0
- package/dist/{pre-edit-watch-gate-SJ3RCYH5.js → pre-edit-watch-gate-ORQP7MSW.js} +1 -1
- package/dist/prompt-submit-6KNOFK4W.js +4 -0
- package/dist/scope-reminder-A6GVTTVE.js +4 -0
- package/dist/session-preamble-IZQPIWST.js +4 -0
- package/dist/status-PG4EBZRM.js +4 -0
- package/dist/{stop-enforce-VWOM5EZY.js → stop-enforce-CO5GYI3G.js} +9 -9
- package/dist/tasks-reminder-TDWPD3KV.js +4 -0
- package/dist/{track-skill-load-CJ74GD3Q.js → track-skill-load-SXSDMHFO.js} +1 -1
- package/dist/{track-skill-prompt-YSB6OOQN.js → track-skill-prompt-7N4TQAD2.js} +1 -1
- package/package.json +3 -6
- package/dist/chunk-22JUAYHM.js +0 -4
- package/dist/chunk-7IIRERCW.js +0 -8
- package/dist/chunk-7VGCLQGP.js +0 -7
- package/dist/chunk-7YQOAAKF.js +0 -224
- package/dist/chunk-AWPZTNYU.js +0 -6
- package/dist/chunk-CB74TAUC.js +0 -5
- package/dist/chunk-CTTC4KKQ.js +0 -83
- package/dist/chunk-GI65FUDI.js +0 -6
- package/dist/chunk-IDPJESOE.js +0 -9
- package/dist/chunk-IKYR3UCU.js +0 -55
- package/dist/chunk-LB65USNP.js +0 -73
- package/dist/chunk-MOI4L3EX.js +0 -4
- package/dist/chunk-N2OBRCPQ.js +0 -6
- package/dist/chunk-NY6EIQR4.js +0 -4
- package/dist/chunk-OQ4TDIP3.js +0 -55
- package/dist/chunk-OQS63V7U.js +0 -7
- package/dist/chunk-OWN4P2K7.js +0 -4
- package/dist/chunk-SNU66GSR.js +0 -4
- package/dist/chunk-TOBC3SQA.js +0 -8
- package/dist/daemon-QKBWYQJA.js +0 -4
- package/dist/daemon-UMZJZ7BY.js +0 -152
- package/dist/dsl-loader-NGW4V4A3.js +0 -4
- package/dist/post-edit-MVGQGAW4.js +0 -4
- package/dist/post-edit-analyze-XWTZMQCB.js +0 -4
- package/dist/post-edit-flag-stubs-4MQZATJE.js +0 -4
- package/dist/pre-bash-run-gate-B42YNDQF.js +0 -4
- package/dist/pre-edit-YF6WNE6G.js +0 -4
- package/dist/pre-edit-ripplo-skill-gate-QHUD7QGU.js +0 -4
- package/dist/pre-edit-scope-gate-2YIFSEDY.js +0 -4
- package/dist/prompt-submit-YX7GMTC4.js +0 -4
- package/dist/scope-reminder-DIDCHDAA.js +0 -4
- package/dist/session-preamble-ZYVRDSGA.js +0 -4
- package/dist/solve-worker.js +0 -4
- package/dist/status-HPMHJBKH.js +0 -4
- package/dist/tasks-reminder-SDS6RNLP.js +0 -4
package/dist/chunk-AWPZTNYU.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
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 T,K as S,P as j,Q as g,ba as B}from"./chunk-IKYR3UCU.js";import c from"fs";import l from"path";import{createHash as be}from"crypto";import{pathToFileURL as Fe}from"url";import{build as Pe}from"esbuild";import{err as L,ok as v,ResultAsync as ve}from"neverthrow";import ee from"fs";import y from"path";import u from"typescript";function M(e){let n=y.join(e,"index.ts"),t=re(e);ee.mkdirSync(y.dirname(t.tsBuildInfoFile??""),{recursive:!0});let r=u.createIncrementalCompilerHost(t),o=u.createIncrementalProgram({host:r,options:t,rootNames:[n]}),i=[...o.getSyntacticDiagnostics(),...o.getSemanticDiagnostics()];o.emit();let s=i.filter(a=>ne(a,e));if(s.length===0)return{diagnostics:[],ok:!0};let C={getCanonicalFileName:a=>a,getCurrentDirectory:()=>y.dirname(e),getNewLine:()=>`
|
|
5
|
-
`};return{diagnostics:u.formatDiagnosticsWithColorAndContext(s,C).split(`
|
|
6
|
-
`).filter(a=>a.length>0),ok:!1}}function ne(e,n){let t=e.file?.fileName;return t==null?!0:t.startsWith(n)}var te=y.join(".local","tsbuildinfo");function re(e){return{allowImportingTsExtensions:!0,allowJs:!1,esModuleInterop:!0,incremental:!0,module:u.ModuleKind.Preserve,moduleResolution:u.ModuleResolutionKind.Bundler,noEmit:!0,resolveJsonModule:!0,skipLibCheck:!0,strict:!1,target:u.ScriptTarget.ES2022,tsBuildInfoFile:y.join(e,te)}}import z from"fs";import ae from"safe-stable-stringify";import{err as le,ok as N,Result as ce}from"neverthrow";import H from"safe-stable-stringify";import{createHash as oe}from"crypto";import A from"fs";function h(){return E===void 0&&(E=ie()),E}var E;function ie(){let e=process.argv[1];if(e==null)return null;try{let n=A.readFileSync(A.realpathSync(e));return oe("sha256").update(n).digest("hex")}catch{return null}}function I(e){return{...e,checks:void 0,solved:{cosat:{},subsume:{}}}}function Ye(e,n){return H(I(e))===H(I(n))}function O(e){return _(e.checks?.expanderHash,h())}function _(e,n){return e!=null&&n!=null&&e===n}function W(e){return _(e??void 0,h())}import se from"safe-stable-stringify";function R(e){return U(e.entities,e.singletons,e.valueSpaces)}function Qe(e){return U(e.entities,e.singletonSchemas,e.valueSpaces)}function U(e,n,t){let r=se({entities:e,singletons:n,valueSpaces:t});if(r==null)throw new Error("solve-model: model is not serializable");return r}async function D(e,n){let t={entities:e.entities,singletonSchemas:e.singletons,valueSpaces:e.valueSpaces},r=de(n),o=pe(e,r),i=await Promise.all(e.workflows.map(s=>fe({context:t,reusable:o,workflow:s})));return ce.combine(i).map(s=>({...e,workflows:[...s]}))}function de(e){let n=ue(e);if(!(n==null||!O(n)))return n}function ue(e){if(z.existsSync(e))try{return S(g,z.readFileSync(e,"utf8"))}catch{return}}async function fe({context:e,reusable:n,workflow:t}){let r=n.get($(t));if(r!=null)return N({...t,tests:r.tests});try{return N(await B({context:e,workflow:t}))}catch(o){let i=o instanceof Error?o.message:String(o);return le({kind:"expand-failed",message:i,workflow:t.name})}}function $(e){let n=ae({...e,tests:[]});if(n==null)throw new Error("solver: workflow is not serializable");return n}function pe(e,n){return n==null||R(n)!==R(e)?new Map:new Map(n.workflows.map(t=>[$(t),t]))}import{createHash as me}from"crypto";import J from"fs/promises";import b from"path";import{err as f,ok as F,Result as ge}from"neverthrow";var ye=".ripplo/fixtures",he=10*1024*1024,ke=50*1024*1024;async function K(e,n){let t=xe(n);if(t.length===0)return F({});let r=b.join(e,ye),o=await Promise.all(t.map(i=>Le({fixturesRoot:r,name:i})));return ge.combine(o).andThen(Se)}function xe(e){let t=e.workflows.flatMap(r=>[...r.steps,...r.tests.flatMap(o=>o.steps)]).flatMap(r=>r.action.kind==="upload"?r.action.files:[]);return[...new Set(t)].toSorted((r,o)=>r.localeCompare(o))}async function Le({fixturesRoot:e,name:n}){if(n.includes("..")||b.isAbsolute(n))return f({kind:"fixture-invalid-name",name:n});let t=b.join(e,n),r=await J.lstat(t).catch(()=>null);if(r==null)return f({kind:"fixture-missing",name:n,path:t});if(r.isSymbolicLink())return f({kind:"fixture-symlink",name:n});if(!r.isFile())return f({kind:"fixture-not-file",name:n});let o=await J.readFile(t);if(o.byteLength>he)return f({kind:"fixture-too-large",name:n,size:o.byteLength});let i=me("sha256").update(o).digest("hex");return F([n,{sha256:i,size:o.byteLength}])}function Se(e){let n=e.reduce((t,[,r])=>t+r.size,0);return n>ke?f({kind:"fixtures-total-too-large",total:n}):F(Object.fromEntries(e))}import{createHash as we}from"crypto";function k(e){return we("sha256").update(e).digest("base64")}import p from"fs";import P from"path";import{z as w}from"zod";function X({cwd:e,fingerprint:n}){let t=Re(e);if(t==null||t.fingerprint!==k(n))return;let r=P.join(e,".ripplo","ripplo.lock");if(!p.existsSync(r))return;let o=p.readFileSync(r,"utf8");if(k(o)===t.lockfileHash)try{return S(g,o)}catch{return}}function V({cwd:e,fingerprint:n,lockfile:t}){let r={bundle:h(),fingerprint:k(n),lockfileHash:k(T(g,t))},o=Y(e);p.mkdirSync(P.dirname(o),{recursive:!0}),p.writeFileSync(o,JSON.stringify(r))}var Ee=w.object({bundle:w.string().nullable(),fingerprint:w.string(),lockfileHash:w.string()});function Re(e){let n=Y(e);if(p.existsSync(n))try{let t=Ee.safeParse(JSON.parse(p.readFileSync(n,"utf8")));return!t.success||!W(t.data.bundle)?void 0:t.data}catch{return}}function Y(e){return P.join(e,".ripplo",".local","load-cache.json")}var Ce=".ripplo/ripplo.lock",x;async function Hn(e){let{result:n}=await Te(e);return n}async function Te(e){let n=q(l.join(e,".ripplo"));if(x!=null&&x.fingerprint===n&&x.result.isOk())return{fingerprint:n,result:x.result};let t=await je(e);return x={fingerprint:n,result:t},{fingerprint:n,result:t}}async function je(e){let n=l.join(e,".ripplo"),t=l.join(n,"index.ts"),r=q(n),o=X({cwd:e,fingerprint:r});if(o!=null)return v(o);let i=Ae(t);i.catch(()=>{});let s=M(n);if(!s.ok)return L({diagnostics:s.diagnostics,kind:"typecheck-failed"});let a=await(await He(t,i)).andThen(d=>_e({entryPath:t,exported:d})).match(async d=>(await K(e,d)).map(m=>({...d,fixtures:m})).mapErr(m=>({error:m,kind:"fixture-failed"})).asyncAndThen(m=>new ve(D(m,l.join(e,Ce))).mapErr(Z=>Z)),d=>Promise.resolve(L(d)));return a.isOk()&&V({cwd:e,fingerprint:r,lockfile:a.value}),a}var Be=new Set([".local","debug","node_modules","ripplo.lock"]);function q(e){let n=l.join(e,"..","node_modules","@ripplo","testing","package.json");return[...G(e),...Me(n)].toSorted((t,r)=>t.localeCompare(r)).join("|")}function G(e){return(c.existsSync(e)?c.readdirSync(e,{withFileTypes:!0}):[]).flatMap(t=>{if(Be.has(t.name))return[];let r=l.join(e,t.name);if(t.isDirectory())return G(r);let o=c.statSync(r);return[`${r}:${String(o.mtimeMs)}:${String(o.size)}`]})}function Me(e){if(!c.existsSync(e))return[];let n=c.statSync(e);return[`${e}:${String(n.mtimeMs)}:${String(n.size)}`]}async function Ae(e){let t=(await Pe({bundle:!0,entryPoints:[e],format:"esm",logLevel:"silent",platform:"node",sourcemap:"inline",target:"node22",write:!1})).outputFiles[0];if(t==null)throw new Error("dsl bundle produced no output");return t.text}async function He(e,n){try{let t=await n;process.setSourceMapsEnabled(!0);let r=await import(Ie(e,t)),o=r!=null&&typeof r=="object"&&"default"in r?Reflect.get(r,"default"):r;return v(o)}catch(t){return L({kind:"load-threw",message:Oe(t)})}}function Ie(e,n){let t=l.join(l.dirname(e),".local");c.mkdirSync(t,{recursive:!0});let r=be("sha256").update(n).digest("hex").slice(0,16),o=l.join(t,`dsl-bundle-${r}.mjs`);return c.writeFileSync(o,n),Fe(o).href}function Oe(e){return e instanceof Error?e.message:String(e)}function _e({entryPath:e,exported:n}){if(n==null||typeof n!="object"||!("lockfile"in n))return L({entryPath:e,kind:"not-ripplo"});let t=j.safeParse(Reflect.get(n,"lockfile"));return t.success?v(t.data):L({issues:t.error.issues.map(r=>`${r.path.join(".")}: ${r.message}`),kind:"invalid-lockfile"})}export{h as a,Ye as b,O as c,W as d,R as e,Qe as f,ye as g,he as h,ke as i,k as j,Ce as k,Hn as l,Te as m,je as n};
|
package/dist/chunk-CB74TAUC.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire as __ripploCreateRequire } from "node:module";
|
|
3
|
-
const require = globalThis.require ?? __ripploCreateRequire(import.meta.url);
|
|
4
|
-
import{b as s,c as u}from"./chunk-TPHOSZAK.js";import{createHash as d}from"crypto";import{mkdirSync as h,readdirSync as g,readFileSync as p,writeFileSync as m}from"fs";import i from"path";var l=[".ts",".tsx",".js",".jsx"],y=new Set([".local","debug"]);function v(r){let t=d("sha256");return u(r)?(t.update(s(["rev-parse","HEAD"],r)),t.update("\0"),t.update(s(["diff","HEAD"],r)),t.update("\0"),s(["ls-files","--others","--exclude-standard"],r).split(`
|
|
5
|
-
`).filter(e=>e.length>0).filter(e=>l.some(n=>e.endsWith(n))).toSorted((e,n)=>e.localeCompare(n)).forEach(e=>{t.update(e),t.update("\0"),t.update(c(i.join(r,e))),t.update("\0")}),t.digest("hex")):S(r,t)}function A(r,t){try{return p(f(r,t),"utf8").trim()}catch{return null}}function D(r,t,o){let e=f(r,t);h(i.dirname(e),{recursive:!0}),m(e,o)}function S(r,t){let o=i.join(r,".ripplo");return x(o).filter(n=>l.some(a=>n.endsWith(a))).filter(n=>!y.has(n.split(i.sep)[0]??"")).toSorted((n,a)=>n.localeCompare(a)).forEach(n=>{t.update(n),t.update("\0"),t.update(c(i.join(o,n))),t.update("\0")}),t.digest("hex")}function x(r){try{return g(r,{recursive:!0}).filter(t=>typeof t=="string")}catch{return[]}}function c(r){try{return p(r)}catch{return Buffer.alloc(0)}}function f(r,t){return i.join(r,".ripplo",".local",`${t}.hash`)}export{v as a,A as b,D as c};
|