ripplo 0.9.0 → 0.9.1
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-FR4ENKCT.js → chunk-4XC5TAOG.js} +1 -1
- package/dist/{chunk-U27IDW6O.js → chunk-6BQADUAX.js} +2 -2
- package/dist/{chunk-XVMIPWJQ.js → chunk-INO3L4WS.js} +1 -1
- package/dist/chunk-MG43RZXH.js +83 -0
- package/dist/{chunk-AYDIXOW2.js → chunk-MMCOPC4L.js} +1 -1
- package/dist/{chunk-QQ7NFPJQ.js → chunk-NEPJCCQS.js} +1 -1
- package/dist/{chunk-PRD7P6EF.js → chunk-RWFS5SCW.js} +1 -1
- package/dist/{chunk-V4IQQT44.js → chunk-SFWAAS5H.js} +1 -1
- package/dist/{chunk-JXGIARTE.js → chunk-TY5K3P4F.js} +1 -1
- package/dist/{chunk-EA62LNKT.js → chunk-UMSBDSRS.js} +1 -1
- package/dist/{chunk-ZDA3E2AS.js → chunk-YODZBLYM.js} +1 -1
- package/dist/{compile-write-H2GLCECO.js → compile-write-4ZAIPQMG.js} +1 -1
- package/dist/{daemon-3J3K4BOD.js → daemon-MZWLJO75.js} +1 -1
- package/dist/{daemon-AS6IHTHD.js → daemon-YPXZGJAB.js} +1 -1
- package/dist/hook.js +1 -1
- package/dist/index.js +182 -175
- package/dist/{plan-reminder-E6AXT6OB.js → plan-reminder-45PSVOVW.js} +1 -1
- package/dist/{post-edit-LUPA46ZO.js → post-edit-JHJT2QTK.js} +1 -1
- package/dist/{post-edit-analyze-XY6C7ZFP.js → post-edit-analyze-PPFHKIYQ.js} +1 -1
- package/dist/{post-edit-flag-stubs-ZMKN4DJZ.js → post-edit-flag-stubs-Q3UKDZ2W.js} +1 -1
- package/dist/{prompt-submit-U3QOU47D.js → prompt-submit-ZCDG6T4Y.js} +1 -1
- package/dist/{session-preamble-IHBGHKCW.js → session-preamble-ZYVRDSGA.js} +1 -1
- package/dist/status-66XIDYSP.js +4 -0
- package/dist/{stop-enforce-ZLQKGMSF.js → stop-enforce-Q4JNBYQU.js} +1 -1
- package/package.json +4 -4
- package/dist/chunk-BR7W4UBJ.js +0 -83
- package/dist/status-247DEYFK.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{f as a}from"./chunk-4H7EIC6W.js";import{a as n}from"./chunk-XZ2TPZLD.js";import{i}from"./chunk-
|
|
4
|
+
import{f as a}from"./chunk-4H7EIC6W.js";import{a as n}from"./chunk-XZ2TPZLD.js";import{i}from"./chunk-INO3L4WS.js";import{k as e}from"./chunk-EVVF662P.js";import{i as u}from"./chunk-RWFS5SCW.js";async function x(m){let o=process.cwd(),r=await e(o);r.isErr()&&(process.stderr.write(`${n(r.error)}
|
|
5
5
|
`),process.exit(1));let s=i(r.value),t=await a(o);if(m.format==="summary"){s.length>0&&process.stdout.write(`stub workflows: ${s.join(", ")}
|
|
6
6
|
`),process.stdout.write(`${u(t)}
|
|
7
7
|
`);return}let p={daemon:t.kind==="running"?{active:t.status.active,explorer:t.status.explorer,exploring:t.status.exploring,progress:t.status.progress,queued:t.status.queued,running:!0}:{running:t.kind==="unresponsive",state:t.kind},tests:s.map(d=>({id:d,implemented:!1}))};process.stdout.write(`${JSON.stringify(p,null,2)}
|
|
@@ -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 We,f as Ke,g as Be,j as Ve,n as Qe,o as Je,p as ze,q as Ge,r as Ye}from"./chunk-WZBLSDNV.js";import{c as Xe,e as Ze,g as en}from"./chunk-ZUPS6XVH.js";import{c as F}from"./chunk-LEFXRK53.js";import{d as _e}from"./chunk-4W6WIT7T.js";import{a as $}from"./chunk-R4ZTRVDQ.js";import{d as he}from"./chunk-FEHVIHVA.js";import{b as be}from"./chunk-Q6IYTHMP.js";import{a as xe}from"./chunk-XZ2TPZLD.js";import{g as He}from"./chunk-
|
|
4
|
+
import{a as We,f as Ke,g as Be,j as Ve,n as Qe,o as Je,p as ze,q as Ge,r as Ye}from"./chunk-WZBLSDNV.js";import{c as Xe,e as Ze,g as en}from"./chunk-ZUPS6XVH.js";import{c as F}from"./chunk-LEFXRK53.js";import{d as _e}from"./chunk-4W6WIT7T.js";import{a as $}from"./chunk-R4ZTRVDQ.js";import{d as he}from"./chunk-FEHVIHVA.js";import{b as be}from"./chunk-Q6IYTHMP.js";import{a as xe}from"./chunk-XZ2TPZLD.js";import{g as He}from"./chunk-INO3L4WS.js";import{e as ke,i as Se,j as we,k as ve}from"./chunk-EVVF662P.js";import{c as D}from"./chunk-DBIXYJRB.js";import{a as me,d as u,f as p}from"./chunk-PE5WVWI5.js";import{$ as Le,B as Me,D as v,E as $e,G as je,H as Fe,J as De,N as Oe,W as Ue,X as Ne,_ as qe,a as Ee,b as Ie,c as Y,d as R,e as T,f as Te,g as Ae,h as Ce,i as j,z as Pe}from"./chunk-MG43RZXH.js";import{Q as M,R as m,i as P,l as I,m as Re}from"./chunk-4F67XQYS.js";import Gn from"p-queue";var Yn=4,Xn={"p0-ui":3,"p1-cli":2,"p2-cover":1,"p3-explore":0},O=new Gn({concurrency:Yn}),k={headedActive:0,interactiveActive:0,interactiveQueued:0},nn={current:null};function mo({headed:e,task:n,workClass:t}){let r=Xn[t];return t==="p3-explore"?O.add(n,{priority:r}):(k.interactiveQueued+=1,U(),O.add(()=>Zn({headed:e,task:n}),{priority:r}))}function ho(e){!Number.isFinite(e)||e<1||(O.concurrency=Math.floor(e),U())}function X(){return{active:k.interactiveActive,headedActive:k.headedActive,poolSize:O.concurrency,queued:k.interactiveQueued}}function Ro(e){nn.current=e}async function Zn({headed:e,task:n}){k.interactiveQueued-=1,k.interactiveActive+=1,k.headedActive+=e?1:0,U();try{return await n()}finally{k.interactiveActive-=1,k.headedActive-=e?1:0,U()}}function U(){nn.current?.()}async function tn(e){try{return await fetch(e,{method:"HEAD",signal:AbortSignal.timeout(2e3)}),null}catch(n){return n instanceof Error?n.message:String(n)}}async function rn(e){try{return await fetch(e,{method:"HEAD",signal:AbortSignal.timeout(25e3)}),null}catch(n){return n instanceof Error?n.message:String(n)}}import{graphql as et}from"gql.tada";async function on(e,n){let r=(await u({config:e,document:nt,variables:{cwd:n,projectId:e.projectId}})).project?.devSession?.workflows??[];return new Map(r.flatMap(o=>o.tests.map(i=>[`${o.slug}/${i.slug}`,{testId:i.id,workflowId:o.id}])))}var nt=et(`
|
|
5
5
|
query DaemonWorkflows($projectId: String!, $cwd: String!) {
|
|
6
6
|
project(id: $projectId) {
|
|
7
7
|
id
|
|
@@ -226,4 +226,4 @@ import{a as We,f as Ke,g as Be,j as Ve,n as Qe,o as Je,p as ze,q as Ge,r as Ye}f
|
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
`);async function is(e){return(await Qn(e)).map(t=>t.executor)}async function as(e,n){let t=await Qn(e);if(t.isErr())return J(t.error);let o=(await u({config:e,document:fo,variables:{devSessionId:t.value.id,executor:n}})).setDevSessionExecutor;return o==null?J({kind:"empty-response"}):o.__typename!=="DevSession"?J({kind:"session-ended"}):Vn(o.executor)}async function Qn(e){let n=await Bn(e);return n.kind==="active"?Vn({executor:n.executor,id:n.id}):J({kind:n.kind==="starting"?"starting":"no-session"})}export{Bn as a,Xa as b,Za as c,da as d,ca as e,ua as f,ha as g,ka as h,Sa as i,wa as j,va as k,xa as l,ba as m,Ea as n,Ia as o,Ta as p,Aa as q,mo as r,ho as s,X as t,Ro as u,Ho as v,Pt as w,di as x,
|
|
229
|
+
`);async function is(e){return(await Qn(e)).map(t=>t.executor)}async function as(e,n){let t=await Qn(e);if(t.isErr())return J(t.error);let o=(await u({config:e,document:fo,variables:{devSessionId:t.value.id,executor:n}})).setDevSessionExecutor;return o==null?J({kind:"empty-response"}):o.__typename!=="DevSession"?J({kind:"session-ended"}):Vn(o.executor)}async function Qn(e){let n=await Bn(e);return n.kind==="active"?Vn({executor:n.executor,id:n.id}):J({kind:n.kind==="starting"?"starting":"no-session"})}export{Bn as a,Xa as b,Za as c,da as d,ca as e,ua as f,ha as g,ka as h,Sa as i,wa as j,va as k,xa as l,ba as m,Ea as n,Ia as o,Ta as p,Aa as q,mo as r,ho as s,X as t,Ro as u,Ho as v,Pt as w,di as x,se as y,_ as z,Zt as A,pe as B,$r as C,Sr as D,wr as E,vr as F,Ur as G,Ua as H,La as I,Ha as J,_a as K,Wa as L,Ka as M,is as N,as as O};
|
|
@@ -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{a as c,b as g,c as d,d as C,h as s,k as P}from"./chunk-EVVF662P.js";import{k as w,n as x,o as b,p as F}from"./chunk-
|
|
4
|
+
import{a as c,b as g,c as d,d as C,h as s,k as P}from"./chunk-EVVF662P.js";import{k as w,n as x,o as b,p as F}from"./chunk-MG43RZXH.js";import{E as k,F as i,L as n,M as h,Z as S,ba as y,ca as L}from"./chunk-4F67XQYS.js";import{readFile as z,writeFile as D}from"fs/promises";import R from"path";import{err as m,ok as W}from"neverthrow";import{createHash as H}from"crypto";import l from"fs";import v from"path";import V from"safe-stable-stringify";import{z as f}from"zod";function B({context:e,cwd:o}){S(e);let r=M(o,u(e));r!=null&&y(e,r)}function ne({context:e,cwd:o}){let r=_(o);if(!(r==null||r.model!==u(e)))return r.cleanLockfile??void 0}function ie({cleanLockfileHash:e,context:o,cwd:r}){let t=E(r);l.mkdirSync(v.dirname(t),{recursive:!0}),l.writeFileSync(t,JSON.stringify({bundle:c(),cleanLockfile:e,model:u(o)}))}function se(e){return H("sha256").update(e).digest("base64")}var J=f.object({bundle:f.string().nullable(),cleanLockfile:f.string().nullable(),model:f.string()});function M(e,o){let r=v.join(e,s),t=I(r);return t==null||!d(t)?null:u({entities:t.entities,singletonSchemas:t.singletons,valueSpaces:t.valueSpaces})===o?t.solved:null}function I(e){try{return i(n,l.readFileSync(e,"utf8"))}catch{return null}}function u(e){let o=V({entities:e.entities,singletons:e.singletonSchemas,valueSpaces:e.valueSpaces});if(o==null)throw new Error("solve-cache: context is not serializable");return H("sha256").update(o).digest("base64")}function _(e){let o=E(e);if(l.existsSync(o))try{let r=J.safeParse(JSON.parse(l.readFileSync(o,"utf8")));return!r.success||!C(r.data.bundle)?void 0:r.data}catch{return}}function E(e){return v.join(e,".ripplo",".local","solve-cache.json")}async function Se(e){let o=await P(e);return o.isOk()&&await K(e,o.value),o}async function K(e,o){let r=await N(e,o);return await D(R.join(e,s),k(n,r)),r}var O=new WeakMap;function N(e,o){let r=O.get(o);if(r!=null)return r;let t=T(e,o).then(a=>a.match(p=>Promise.resolve(p),()=>G(e,o)));return O.set(o,t),t}function ye(e,o){return T(e,o)}function Le(e){return e.workflows.filter(o=>o.stub).map(o=>o.name)}async function T(e,o){let r=await q(e);return r==null?m({kind:"no-lockfile"}):r.checks==null?m({kind:"unstamped"}):d(r)?g(r,o)?W(h(r)):m({kind:"dsl-drift"}):m({kind:"expander-newer"})}async function q(e){try{let o=await z(R.join(e,s),"utf8");return i(n,o)}catch{return null}}async function G(e,o){let r=w(o);B({context:r,cwd:e});let t=await b(o),a=await x(o);await F({context:r,facts:a.facts});let p=await L(r),A=c(),j={...o,checks:{...t,expanderHash:A??void 0},solved:p};return h(i(n,k(n,j)))}export{B as a,ne as b,ie as c,se as d,Se as e,K as f,N as g,ye as h,Le as i};
|