ripplo 0.7.51 → 0.7.53
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/assets/rrweb.js +1 -1
- package/dist/{chunk-SB7H6IAS.js → chunk-63TU4VJ7.js} +2 -0
- package/dist/chunk-6RGZZV4V.js +8 -0
- package/dist/chunk-7PJU3JMJ.js +272 -0
- package/dist/chunk-ARUUHAYX.js +12 -0
- package/dist/chunk-B6R72WMH.js +136 -0
- package/dist/{chunk-ZKBCWP2P.js → chunk-PXYDLKAG.js} +3 -1
- package/dist/{chunk-O6J2UXMN.js → chunk-ZPCVY23H.js} +3 -1
- package/dist/daemon-FJ2QOWH6.js +4 -0
- package/dist/daemon-MYGOWFIB.js +139 -0
- package/dist/daemon-lock-6NG7JHQO.js +4 -0
- package/dist/index.js +253 -241
- package/dist/status-IS2OHUH5.js +4 -0
- package/package.json +11 -6
- package/dist/chunk-AA5U2MVM.js +0 -9
- package/dist/chunk-CU6ZOAZF.js +0 -135
- package/dist/chunk-CUHD57L6.js +0 -281
- package/dist/chunk-JEHQMSKX.js +0 -6
- package/dist/daemon-OUFHFJR6.js +0 -2
- package/dist/daemon-U7CSN5UE.js +0 -137
- package/dist/daemon-lock-PXILYGWE.js +0 -2
- package/dist/status-P55MSJ4Q.js +0 -2
|
@@ -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{i as a}from"./chunk-6RGZZV4V.js";import"./chunk-ARUUHAYX.js";import"./chunk-PXYDLKAG.js";import"./chunk-B6R72WMH.js";import"./chunk-63TU4VJ7.js";export{a as statusCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ripplo",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.53",
|
|
4
4
|
"description": "CLI for Ripplo — AI-powered end-to-end testing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://ripplo.ai",
|
|
@@ -19,9 +19,11 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@anthropic-ai/claude-agent-sdk": "^0.2.119",
|
|
22
|
+
"@eslint-community/regexpp": "^4.12.2",
|
|
22
23
|
"@inquirer/prompts": "^7.5.3",
|
|
23
24
|
"@paralleldrive/cuid2": "^3.3.0",
|
|
24
25
|
"better-auth": "^1.5.6",
|
|
26
|
+
"better-sqlite3": "^12.11.1",
|
|
25
27
|
"dotenv": "^17.3.1",
|
|
26
28
|
"fuse.js": "^7.4.2",
|
|
27
29
|
"gql.tada": "^1.9.0",
|
|
@@ -38,15 +40,17 @@
|
|
|
38
40
|
"playwright": "1.59.1",
|
|
39
41
|
"proper-lockfile": "^4.1.2",
|
|
40
42
|
"remeda": "^2.33.7",
|
|
43
|
+
"safe-stable-stringify": "^2.5.0",
|
|
41
44
|
"semver": "^7.8.4",
|
|
42
45
|
"shell-quote": "1.8.3",
|
|
43
46
|
"ssh2": "^1.16.0",
|
|
44
47
|
"typescript": "^5.9.3",
|
|
45
48
|
"undici": "^7.0.0",
|
|
46
|
-
"ws": "^8.20.0",
|
|
47
49
|
"update-notifier": "^7.3.1",
|
|
48
50
|
"vscode-jsonrpc": "^9.0.0",
|
|
51
|
+
"ws": "^8.20.0",
|
|
49
52
|
"yargs": "^18.0.0",
|
|
53
|
+
"z3-solver": "^4.13.4",
|
|
50
54
|
"zod": "4.3.6"
|
|
51
55
|
},
|
|
52
56
|
"devDependencies": {
|
|
@@ -64,12 +68,13 @@
|
|
|
64
68
|
"tsup": "^8.5.1",
|
|
65
69
|
"vitest": "^4.1.4",
|
|
66
70
|
"@ripplo/core": "^0.0.0",
|
|
67
|
-
"@ripplo/eslint-config": "0.0.0",
|
|
68
|
-
"@ripplo/run-report": "0.0.0",
|
|
69
|
-
"@ripplo/rrweb-bundle": "0.0.0",
|
|
70
71
|
"@ripplo/graphql": "^0.0.0",
|
|
72
|
+
"@ripplo/rrweb-bundle": "0.0.0",
|
|
73
|
+
"@ripplo/eslint-config": "0.0.0",
|
|
71
74
|
"@ripplo/runtime": "^0.0.0",
|
|
72
|
-
"@ripplo/
|
|
75
|
+
"@ripplo/run-report": "0.0.0",
|
|
76
|
+
"@ripplo/spec": "^0.0.0",
|
|
77
|
+
"@ripplo/solver": "^0.0.0"
|
|
73
78
|
},
|
|
74
79
|
"scripts": {
|
|
75
80
|
"dev": "tsx watch src/index.ts",
|
package/dist/chunk-AA5U2MVM.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{i as k}from"./chunk-ZKBCWP2P.js";import{g as w}from"./chunk-CU6ZOAZF.js";import{readFileSync as M}from"fs";import{z as F}from"zod";var O=F.object({version:F.string()});function xe(){let t=M(new URL("../package.json",import.meta.url),"utf8");return O.parse(JSON.parse(t)).version}import j from"fs";import g from"path";import{createJiti as K}from"jiti";import{err as f,ok as I}from"neverthrow";import z from"fs";import p from"path";import l from"typescript";function P(t){let r=p.join(t,"index.ts"),n=U(t);z.mkdirSync(p.dirname(n.tsBuildInfoFile??""),{recursive:!0});let o=l.createIncrementalCompilerHost(n),i=l.createIncrementalProgram({host:o,options:n,rootNames:[r]}),s=[...i.getSyntacticDiagnostics(),...i.getSemanticDiagnostics()];i.emit();let a=s.filter(u=>N(u,t));if(a.length===0)return{diagnostics:[],ok:!0};let L={getCanonicalFileName:u=>u,getCurrentDirectory:()=>p.dirname(t),getNewLine:()=>`
|
|
3
|
-
`};return{diagnostics:l.formatDiagnosticsWithColorAndContext(a,L).split(`
|
|
4
|
-
`).filter(u=>u.length>0),ok:!1}}function N(t,r){let n=t.file?.fileName;return n==null?!0:n.startsWith(r)}var D=p.join(".local","tsbuildinfo");function U(t){return{allowImportingTsExtensions:!0,allowJs:!1,esModuleInterop:!0,incremental:!0,module:l.ModuleKind.Preserve,moduleResolution:l.ModuleResolutionKind.Bundler,noEmit:!0,resolveJsonModule:!0,skipLibCheck:!0,strict:!1,target:l.ScriptTarget.ES2022,tsBuildInfoFile:p.join(t,D)}}import{createHash as q}from"crypto";import T from"fs/promises";import b from"path";import{err as c,ok as E,Result as H}from"neverthrow";var X=".ripplo/fixtures",R=10*1024*1024,S=50*1024*1024;async function v(t,r){let n=B(r);if(n.length===0)return E({});let o=b.join(t,X),i=await Promise.all(n.map(s=>J({fixturesRoot:o,name:s})));return H.combine(i).andThen(W)}function B(t){let n=t.workflows.flatMap(o=>[...o.steps,...o.tests.flatMap(i=>i.steps)]).flatMap(o=>o.action.kind==="upload"?o.action.files:[]);return[...new Set(n)].toSorted((o,i)=>o.localeCompare(i))}async function J({fixturesRoot:t,name:r}){if(r.includes("..")||b.isAbsolute(r))return c({kind:"fixture-invalid-name",name:r});let n=b.join(t,r),o=await T.lstat(n).catch(()=>null);if(o==null)return c({kind:"fixture-missing",name:r,path:n});if(o.isSymbolicLink())return c({kind:"fixture-symlink",name:r});if(!o.isFile())return c({kind:"fixture-not-file",name:r});let i=await T.readFile(n);if(i.byteLength>R)return c({kind:"fixture-too-large",name:r,size:i.byteLength});let s=q("sha256").update(i).digest("hex");return E([r,{sha256:s,size:i.byteLength}])}function W(t){let r=t.reduce((n,[,o])=>n+o.size,0);return r>S?c({kind:"fixtures-total-too-large",total:r}):E(Object.fromEntries(t))}var y=".ripplo/ripplo.lock",d;async function Me(t){let{result:r}=await V(t);return r}async function V(t){let r=Q(g.join(t,".ripplo"));if(d!=null&&d.fingerprint===r&&d.result.isOk())return{fingerprint:r,result:d.result};let n=await G(t);return d={fingerprint:r,result:n},{fingerprint:r,result:n}}async function G(t){let r=g.join(t,".ripplo"),n=g.join(r,"index.ts"),o=P(r);return o.ok?(await Z(n)).andThen(a=>te({entryPath:n,exported:a})).match(async a=>(await v(t,a)).map(m=>({...a,fixtures:m})).mapErr(m=>({error:m,kind:"fixture-failed"})),a=>Promise.resolve(f(a))):f({diagnostics:o.diagnostics,kind:"typecheck-failed"})}var Y=new Set([".local","debug","node_modules"]);function Q(t){return A(t).toSorted((r,n)=>r.localeCompare(n)).join("|")}function A(t){return(j.existsSync(t)?j.readdirSync(t,{withFileTypes:!0}):[]).flatMap(n=>{if(Y.has(n.name))return[];let o=g.join(t,n.name);if(n.isDirectory())return A(o);let i=j.statSync(o);return[`${o}:${String(i.mtimeMs)}:${String(i.size)}`]})}async function Z(t){try{let n=await K(import.meta.url,{fsCache:!1,moduleCache:!1,sourceMaps:!0}).import(t),o=n!=null&&typeof n=="object"&&"default"in n?Reflect.get(n,"default"):n;return I(o)}catch(r){return f({kind:"load-threw",message:ee(r)})}}function ee(t){return t instanceof Error?t.message:String(t)}function te({entryPath:t,exported:r}){if(r==null||typeof r!="object"||!("lockfile"in r))return f({entryPath:t,kind:"not-ripplo"});let n=w.safeParse(Reflect.get(r,"lockfile"));return n.success?I(n.data):f({issues:n.error.issues.map(o=>`${o.path.join(".")}: ${o.message}`),kind:"invalid-lockfile"})}function h(t,r){return r==null?`Load \`/ripplo:${t}\` skill for instructions.`:`Load \`/ripplo:${t}\` skill for instructions on ${r}.`}function ze(t){return t.length===1?h(t[0]):`Before proceeding, load the ${t.map(n=>`\`/ripplo:${n}\``).join(" and ")} skills \u2014 every one, each carries rules the others don't.`}function He(t){return[`Compilation failed: ${re(t)}`,h("create","DSL authoring + lint rules")].join(`
|
|
5
|
-
`)}function Xe(){return`${y} is up to date`}function Be(t){return[`${y} is ${t==="missing"?"missing":"out of date"} \u2014 run \`npx ripplo compile\` and commit the result`,h("setup")].join(`
|
|
6
|
-
`)}function Je(){return`Wrote ${y}`}function re(t){switch(t.kind){case"typecheck-failed":return["TypeScript errors in .ripplo/:",...C(t.diagnostics)].join(`
|
|
7
|
-
`);case"not-ripplo":return`${t.entryPath} must default-export a Ripplo (createRipplo({ entities, singletons, workflows })). Check that the default export is the value returned by createRipplo, not a function or a re-export.`;case"invalid-lockfile":return["Lockfile failed schema validation (stale or hand-edited .ripplo/ripplo.lock?):",...C(t.issues),"Regenerate with `npx ripplo compile` \u2014 never hand-edit the lockfile."].join(`
|
|
8
|
-
`);case"load-threw":return[`.ripplo/index.ts threw while loading: ${t.message}`,"Usually a bad import or a top-level throw in .ripplo/ \u2014 run `npx ripplo compile` for the stack."].join(`
|
|
9
|
-
`);case"fixture-failed":return ne(t.error)}}function C(t,r=8){return t.length<=r?t:[...t.slice(0,r),`\u2026 and ${String(t.length-r)} more`]}function ne(t){switch(t.kind){case"fixture-missing":return`Fixture "${t.name}" not found at ${t.path} \u2014 add the file under .ripplo/fixtures/ or fix the upload() name.`;case"fixture-invalid-name":return`Invalid fixture name "${t.name}" \u2014 upload() takes a bare name under .ripplo/fixtures/, no .. or absolute paths.`;case"fixture-symlink":return`Fixture "${t.name}" is a symlink \u2014 only regular files are allowed.`;case"fixture-not-file":return`Fixture "${t.name}" is not a regular file.`;case"fixture-too-large":return`Fixture "${t.name}" is ${x(t.size)} \u2014 over the ${x(R)} per-file limit.`;case"fixtures-total-too-large":return`Fixtures total ${x(t.total)} \u2014 over the ${x(S)} limit.`}}function x(t){return`${String(Math.round(t/(1024*1024)*10)/10)} MB`}import{createMessageConnection as oe,NotificationType as $,RequestType as ie,RequestType0 as _,SocketMessageReader as ae,SocketMessageWriter as se}from"vscode-jsonrpc/node";import{z as e}from"zod";var le="daemon.sock",ce="daemon.log";function Ye(t){return k(t,le)}function Qe(t){return k(t,ce)}function Ze(t){return oe(new ae(t),new se(t))}var et=e.object({all:e.boolean(),headed:e.boolean(),tests:e.array(e.string())}),tt=e.object({jobId:e.string(),total:e.number()}),ue=e.enum(["on","off"]),pe=e.object({attempts:e.number(),findings:e.number()}),rt=e.object({active:e.number(),explorer:ue,exploring:e.number(),progress:pe,queued:e.number(),sseHealth:e.object({detail:e.string().optional(),ok:e.boolean()}).optional(),version:e.string().optional()}),de=e.enum(["MAX_RUNS","OVERAGE_CAP","MAX_AGENTS","MAX_CONCURRENT_RUNS","MAX_PROJECTS"]),fe=e.discriminatedUnion("type",[e.object({code:de,type:e.literal("limit")}),e.object({detail:e.string(),type:e.literal("generic")})]),me=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:fe}),e.object({detail:e.string(),kind:e.literal("dispatch-timeout")}),e.object({detail:e.string(),kind:e.literal("infra-error")})]),ge=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:me,runId:e.string(),testName:e.string(),workflowName:e.string()})]),nt=e.object({event:ge,jobId:e.string()}),ot=e.object({failed:e.number(),jobId:e.string(),notRun:e.number(),passed:e.number()}),it=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("sync-failed"),detail:e.string()}),e.object({code:e.literal("bad-message")})]),at=new ie("ripplo/enqueue"),st=new _("ripplo/status"),lt=new _("ripplo/shutdownIfIdle"),ct=new $("ripplo/jobEvent"),ut=new $("ripplo/jobDone");export{xe as a,X as b,y as c,Me as d,V as e,G as f,h as g,ze as h,He as i,Xe as j,Be as k,Je as l,Ye as m,Qe as n,Ze as o,et as p,tt as q,rt as r,me as s,nt as t,ot as u,it as v,at as w,st as x,lt as y,ct as z,ut as A};
|