ripplo 0.9.3 → 0.9.4
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-ONNK7JT4.js → chunk-2TBRW5WZ.js} +1 -1
- package/dist/{chunk-727NNPVM.js → chunk-3KD2FTEQ.js} +12 -12
- package/dist/{chunk-4W6WIT7T.js → chunk-3M2E253R.js} +1 -1
- package/dist/{chunk-XWUIRXMS.js → chunk-3OI2UH3H.js} +1 -1
- package/dist/{chunk-I2M24U3N.js → chunk-3PF5QK56.js} +1 -1
- package/dist/chunk-52IE2PAQ.js +48 -0
- package/dist/{chunk-L7GWKDGD.js → chunk-6FU7HD6D.js} +1 -1
- package/dist/{chunk-OIJBIBIN.js → chunk-6Z555TLR.js} +1 -1
- package/dist/{chunk-WZBLSDNV.js → chunk-B6OQ2JE2.js} +1 -1
- package/dist/{chunk-4H7EIC6W.js → chunk-CUXFU3MF.js} +1 -1
- package/dist/{chunk-BLH6XVEC.js → chunk-FH2BITRY.js} +1 -1
- package/dist/{chunk-I5BHCICM.js → chunk-GAOLASGV.js} +1 -1
- package/dist/{chunk-DBIXYJRB.js → chunk-INURHJF4.js} +1 -1
- package/dist/{chunk-LEFXRK53.js → chunk-KQWFJRIP.js} +1 -1
- package/dist/{chunk-ELECJABM.js → chunk-MHXAGRCM.js} +1 -1
- package/dist/{chunk-T5VLZ43M.js → chunk-N45RSC6N.js} +1 -1
- package/dist/{chunk-RAN55ZC6.js → chunk-O2VP65IR.js} +1 -1
- package/dist/{chunk-ZNUC2RLT.js → chunk-T46B2OPT.js} +1 -1
- package/dist/{chunk-2ZOIED3H.js → chunk-T6NNV7ZO.js} +1 -1
- package/dist/{chunk-66LUQG5T.js → chunk-XDK6UCMD.js} +1 -1
- package/dist/{chunk-2TO6W5BR.js → chunk-YR3N73PR.js} +1 -1
- package/dist/{daemon-M52H2YF7.js → daemon-5IFFVQEE.js} +14 -14
- package/dist/{daemon-lock-LTQMLU4Q.js → daemon-lock-67AFXXED.js} +1 -1
- package/dist/{exit-plan-gate-BNAUL4FC.js → exit-plan-gate-WPHQII5J.js} +1 -1
- package/dist/hook.js +1 -1
- package/dist/index.js +28 -28
- package/dist/{plan-reminder-2ABA3SFH.js → plan-reminder-H2ZU5WZF.js} +1 -1
- package/dist/{post-edit-XBVQBSKV.js → post-edit-HOYXFYSH.js} +1 -1
- package/dist/{post-edit-analyze-KDA7T37Z.js → post-edit-analyze-5HS3ZV4G.js} +1 -1
- package/dist/{post-edit-flag-stubs-SX2Y7OHG.js → post-edit-flag-stubs-CDKPTQ2L.js} +1 -1
- package/dist/{pre-bash-run-gate-PWLARIYK.js → pre-bash-run-gate-WOGQZARU.js} +1 -1
- package/dist/{pre-edit-FTNMDZZO.js → pre-edit-TRMRQGTZ.js} +1 -1
- package/dist/{pre-edit-ripplo-skill-gate-JD4BDCA3.js → pre-edit-ripplo-skill-gate-FXNQWVME.js} +1 -1
- package/dist/{pre-edit-scope-gate-NZO4HVGT.js → pre-edit-scope-gate-ADO3NRVS.js} +1 -1
- package/dist/{pre-edit-watch-gate-MR7YQGEV.js → pre-edit-watch-gate-OTD6WRUN.js} +1 -1
- package/dist/{prompt-submit-AMSKMHWO.js → prompt-submit-T6GURGAW.js} +1 -1
- package/dist/scope-reminder-XTXZHPLU.js +4 -0
- package/dist/{status-2IFILDIA.js → status-EM4ASO7T.js} +1 -1
- package/dist/{stop-enforce-P6YWEHWE.js → stop-enforce-32B7BSQK.js} +1 -1
- package/dist/{tasks-reminder-VKRJRDNC.js → tasks-reminder-PICFLMC2.js} +1 -1
- package/package.json +3 -3
- package/dist/chunk-PE5WVWI5.js +0 -48
- package/dist/scope-reminder-CBY4I5SG.js +0 -4
|
@@ -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}from"./chunk-
|
|
4
|
+
import{a}from"./chunk-T46B2OPT.js";import"./chunk-N45RSC6N.js";import"./chunk-5E62BCS7.js";import"./chunk-OQ6KNYPG.js";import"./chunk-KQWFJRIP.js";import"./chunk-7WZ3VIUU.js";import"./chunk-3M2E253R.js";import"./chunk-FEHVIHVA.js";import"./chunk-MHNGR6M7.js";import"./chunk-INURHJF4.js";import"./chunk-52IE2PAQ.js";import"./chunk-CJUKILIO.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";export{a as tasksReminder};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ripplo",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"description": "CLI for Ripplo — AI-powered end-to-end testing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://ripplo.ai",
|
|
@@ -68,13 +68,13 @@
|
|
|
68
68
|
"fast-check": "^4.3.0",
|
|
69
69
|
"tsup": "^8.5.1",
|
|
70
70
|
"vitest": "^4.1.4",
|
|
71
|
+
"@ripplo/core": "^0.0.0",
|
|
71
72
|
"@ripplo/eslint-config": "0.0.0",
|
|
72
73
|
"@ripplo/graphql": "^0.0.0",
|
|
73
|
-
"@ripplo/core": "^0.0.0",
|
|
74
74
|
"@ripplo/rrweb-bundle": "0.0.0",
|
|
75
|
-
"@ripplo/runtime": "^0.0.0",
|
|
76
75
|
"@ripplo/run-report": "0.0.0",
|
|
77
76
|
"@ripplo/solver": "^0.0.0",
|
|
77
|
+
"@ripplo/runtime": "^0.0.0",
|
|
78
78
|
"@ripplo/spec": "^0.0.0"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
package/dist/chunk-PE5WVWI5.js
DELETED
|
@@ -1,48 +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 T}from"./chunk-CJUKILIO.js";import{a as F}from"./chunk-NNH3YVVO.js";import{b as $}from"./chunk-KMZ3L5YA.js";var G=15e3,O=3,U=300,f=class extends Error{detail;serverUrl;constructor({detail:r,serverUrl:t}){super(`Failed to connect to Ripplo server at ${t}. Check the server is running and reachable. Details: ${r}`),this.name="GqlConnectionError",this.detail=r,this.serverUrl=t}},c=class extends Error{errors;constructor(r){super(r.map(t=>t.message).join(", ")),this.name="GqlRequestError",this.errors=r}};function N(e){if(e instanceof c)return e.errors[0]?.extensions?.code}var L={attempts:O,timeoutMs:G},V={attempts:1,timeoutMs:3e3};async function A(e){return E(e,L)}async function j(e){return E(e,V)}async function E(e,r){let{print:t}=await import("graphql"),n=t(e.document),o=JSON.stringify({query:n,variables:e.variables}),i=`${e.config.ripploServerUrl}/graphql`,g=await W({init:{body:o,headers:{Authorization:`Bearer ${e.config.token}`,"Content-Type":"application/json",...T()},method:"POST"},policy:r,serverUrl:e.config.ripploServerUrl,url:i}),s=await J({res:g,url:i});if(!Q(s))throw new Error("Invalid GraphQL response");if(K(s))throw new c(s.errors);if(s.data==null)throw new Error("No data returned from server");return s.data}async function W({init:e,policy:r,serverUrl:t,url:n}){let o=1,i=await b({init:e,timeoutMs:r.timeoutMs,url:n});for(;i.retryable&&o<r.attempts;)await H(B(o)),o+=1,i=await b({init:e,timeoutMs:r.timeoutMs,url:n});if(i.response!=null)return i.response;throw new f({detail:i.detail,serverUrl:t})}async function b({init:e,timeoutMs:r,url:t}){try{let n=await fetch(t,{...e,signal:AbortSignal.timeout(r)});return{detail:"",response:n,retryable:n.status>=500}}catch(n){return{detail:n instanceof Error?n.message:String(n),response:void 0,retryable:!0}}}function B(e){return U*3**(e-1)*(.5+Math.random())}function H(e){return new Promise(r=>{setTimeout(r,e)})}async function J({res:e,url:r}){let t=await e.text();if(t.length===0)throw new Error(`Empty response from Ripplo server at ${r} (status ${String(e.status)}). The server may have restarted or the request was rejected before a body was sent.`);try{return JSON.parse(t)}catch{throw new Error(`Non-JSON response from Ripplo server at ${r} (status ${String(e.status)}): ${t.slice(0,200)}`)}}function Q(e){return typeof e=="object"&&e!=null&&("data"in e||"errors"in e)}function K(e){return Array.isArray(e.errors)&&e.errors.length>0}import X from"pino";import Y from"pino-pretty";var y=X({level:process.env.LOG_LEVEL??"info"},Y({ignore:"pid,hostname"}));import{readdir as z,rm as Z,stat as ee}from"fs/promises";import C from"path";var x=C.join(process.cwd(),".ripplo","debug"),k=360*60*1e3;async function re({maxRuns:e}){try{let t=(await z(x,{withFileTypes:!0})).filter(a=>a.isDirectory()),n=Date.now(),o=await Promise.all(t.map(async a=>{let p=C.join(x,a.name),M=await ee(p);return{dirPath:p,mtime:M.mtimeMs}})),i=o.filter(a=>n-a.mtime>k),s=o.filter(a=>n-a.mtime<=k).toSorted((a,p)=>p.mtime-a.mtime).slice(e),v=[...i,...s];if(v.length===0)return;await Promise.allSettled(v.map(a=>Z(a.dirPath,{force:!0,recursive:!0}))),y.debug("Pruned %d old debug run(s)",v.length)}catch{y.warn("Debug run pruning failed, ignoring")}}import l from"fs";import te from"os";import m from"path";var ne=".local",oe=".ripplo";function R(e){return m.join(e,".ripplo",ne)}function ie(e){let r=R(e);l.existsSync(r)||l.mkdirSync(r,{recursive:!0});let t=m.join(r,".gitignore");return l.existsSync(t)||l.writeFileSync(t,`*
|
|
5
|
-
`),r}function ae(e,r){return m.join(R(e),r)}function h(){return m.join(te.homedir(),oe)}function P(){let e=h();return l.existsSync(e)?l.chmodSync(e,448):l.mkdirSync(e,{mode:448,recursive:!0}),e}function S(e){return m.join(h(),e)}import{Agent as se,RetryAgent as le,setGlobalDispatcher as de}from"undici";var ce=1500,me=4e3,ue=3,ge=50,pe=100,I=!1;function fe(){if(I)return;I=!0;let e=new se({connections:pe,keepAliveMaxTimeout:me,keepAliveTimeout:ce}),r=new le(e,{errorCodes:["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT","UND_ERR_REQ_CONTENT_LENGTH_MISMATCH","UND_ERR_SOCKET"],maxRetries:ue,methods:["GET","POST","HEAD","OPTIONS","PUT","DELETE"],minTimeout:ge});de(r)}import{graphql as u}from"gql.tada";var Ue=u(`
|
|
6
|
-
query AgentReviewContextWorker($reviewId: String!) {
|
|
7
|
-
agentReview(id: $reviewId) {
|
|
8
|
-
id
|
|
9
|
-
runId
|
|
10
|
-
agentProfile {
|
|
11
|
-
id
|
|
12
|
-
name
|
|
13
|
-
description
|
|
14
|
-
output
|
|
15
|
-
successCriteria
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
`);var Ne=u(`
|
|
20
|
-
mutation StartAgentReviewWorker($reviewId: String!) {
|
|
21
|
-
startAgentReview(reviewId: $reviewId)
|
|
22
|
-
}
|
|
23
|
-
`);var Le=u(`
|
|
24
|
-
mutation CompleteAgentReviewWorker(
|
|
25
|
-
$reviewId: String!
|
|
26
|
-
$markdown: String!
|
|
27
|
-
$shortSummary: String!
|
|
28
|
-
$verdict: AgentReviewVerdict!
|
|
29
|
-
$comments: [AgentReviewCommentInput!]!
|
|
30
|
-
) {
|
|
31
|
-
completeAgentReview(
|
|
32
|
-
reviewId: $reviewId
|
|
33
|
-
markdown: $markdown
|
|
34
|
-
shortSummary: $shortSummary
|
|
35
|
-
verdict: $verdict
|
|
36
|
-
comments: $comments
|
|
37
|
-
)
|
|
38
|
-
}
|
|
39
|
-
`);var Ve=u(`
|
|
40
|
-
mutation UpdateAgentReviewProgressWorker($reviewId: String!, $text: String!) {
|
|
41
|
-
updateAgentReviewProgress(reviewId: $reviewId, text: $text)
|
|
42
|
-
}
|
|
43
|
-
`);var je=u(`
|
|
44
|
-
mutation FailAgentReviewWorker($reviewId: String!, $reason: String!) {
|
|
45
|
-
failAgentReview(reviewId: $reviewId, reason: $reason)
|
|
46
|
-
}
|
|
47
|
-
`);import d from"fs";import D from"path";function ye(e){let r=process.env.RIPPLO_TOKEN;if(r!=null&&r.trim().length>0)return r.trim();let t=w(e);if(!d.existsSync(t))return null;let n=d.readFileSync(t,"utf8").trim();return n.length===0?null:n}function we({serverUrl:e,token:r}){P();let t=w(e);d.mkdirSync(D.dirname(t),{mode:448,recursive:!0}),d.writeFileSync(t,r+`
|
|
48
|
-
`,{mode:384})}function ve(e){let r=w(e);return d.existsSync(r)?(d.unlinkSync(r),!0):!1}function w(e){return S(D.join("tokens",Re(e)))}function Re(e){return new URL(e).host.replaceAll(/[^a-zA-Z0-9.]/g,"_")}var q=$(F(),1);import _ from"crypto";function he({body:e,secret:r}){let t=new q.Webhook(r),n=`msg_${_.randomUUID()}`,o=new Date,i=t.sign(n,o,e),g=Math.floor(o.getTime()/1e3);return{"webhook-id":n,"webhook-signature":i,"webhook-timestamp":String(g)}}function Pe(){return`whsec_${_.randomBytes(24).toString("base64")}`}export{f as a,c as b,N as c,A as d,j as e,y as f,re as g,ie as h,ae as i,ye as j,we as k,ve as l,w as m,fe as n,he as o,Pe as p};
|
|
@@ -1,4 +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{a}from"./chunk-I2M24U3N.js";import"./chunk-T5VLZ43M.js";import"./chunk-I5BHCICM.js";import"./chunk-JJ4QQPAV.js";import"./chunk-LEFXRK53.js";import"./chunk-7WZ3VIUU.js";import"./chunk-4W6WIT7T.js";import"./chunk-FEHVIHVA.js";import"./chunk-MHNGR6M7.js";import"./chunk-DBIXYJRB.js";import"./chunk-PE5WVWI5.js";import"./chunk-CJUKILIO.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";export{a as scopeReminder};
|