ripplo 0.7.43 → 0.7.45
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-44FQQWRS.js +279 -0
- package/dist/chunk-ADSV6V6H.js +135 -0
- package/dist/{chunk-5PCTSQWL.js → chunk-KMNYXOL5.js} +1 -1
- package/dist/{chunk-ZMZVVC65.js → chunk-PYDAUHSS.js} +1 -1
- package/dist/daemon-GSRF2HY6.js +125 -0
- package/dist/{daemon-VI7FKNLE.js → daemon-X545JHJO.js} +1 -1
- package/dist/index.js +294 -239
- package/dist/status-JG34NBZX.js +2 -0
- package/package.json +5 -4
- package/dist/chunk-33L574IL.js +0 -23
- package/dist/chunk-IRJGSXWE.js +0 -135
- package/dist/chunk-NZOCRYCO.js +0 -241
- package/dist/daemon-AURLLC3T.js +0 -102
- package/dist/daemon-tunnel-K4FR22ON.js +0 -2
- package/dist/status-7WODVHXZ.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ripplo",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.45",
|
|
4
4
|
"description": "CLI for Ripplo — AI-powered end-to-end testing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://ripplo.ai",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"@inquirer/prompts": "^7.5.3",
|
|
23
23
|
"@paralleldrive/cuid2": "^3.3.0",
|
|
24
24
|
"better-auth": "^1.5.6",
|
|
25
|
+
"cloudflared": "^0.7.1",
|
|
25
26
|
"dotenv": "^17.3.1",
|
|
26
27
|
"fuse.js": "^7.4.2",
|
|
27
28
|
"gql.tada": "^1.9.0",
|
|
@@ -59,12 +60,12 @@
|
|
|
59
60
|
"eslint-plugin-neverthrow": "^1.1.4",
|
|
60
61
|
"tsup": "^8.5.1",
|
|
61
62
|
"vitest": "^4.1.4",
|
|
63
|
+
"@ripplo/eslint-config": "0.0.0",
|
|
62
64
|
"@ripplo/core": "^0.0.0",
|
|
63
|
-
"@ripplo/
|
|
65
|
+
"@ripplo/spec": "^0.0.0",
|
|
64
66
|
"@ripplo/runtime": "^0.0.0",
|
|
65
67
|
"@ripplo/run-report": "0.0.0",
|
|
66
|
-
"@ripplo/
|
|
67
|
-
"@ripplo/eslint-config": "0.0.0",
|
|
68
|
+
"@ripplo/graphql": "^0.0.0",
|
|
68
69
|
"@ripplo/rrweb-bundle": "0.0.0"
|
|
69
70
|
},
|
|
70
71
|
"scripts": {
|
package/dist/chunk-33L574IL.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{d as p,e as a}from"./chunk-4K4VY5OR.js";import{graphql as y}from"gql.tada";import{execFileSync as S,spawn as T}from"child_process";import{existsSync as m}from"fs";var g=2e3,w=["/opt/homebrew/bin/cloudflared","/usr/local/bin/cloudflared","/usr/bin/cloudflared"],d=class extends Error{};function v({token:n}){let e=h(),i=!1,r,o,s=()=>{if(i)return;let t=T(e,["tunnel","--no-autoupdate","run"],{env:{...process.env,TUNNEL_TOKEN:n},stdio:"ignore"});r=t,t.on("error",l=>{a.warn({err:l},"cloudflared spawn failed"),f()}),t.on("exit",(l,c)=>{a.warn({code:l,signal:c},"cloudflared exited"),r=void 0,f()})},f=()=>{i||o!=null||(o=setTimeout(()=>{o=void 0,s()},g))};return s(),{stop:async()=>{i=!0,o!=null&&(clearTimeout(o),o=void 0);let t=r;t!=null&&(t.kill("SIGTERM"),await new Promise(l=>{let c=setTimeout(()=>{t.kill("SIGKILL"),l()},5e3);t.on("exit",()=>{clearTimeout(c),l()})}))}}}function h(){let n=w.find(e=>m(e));if(n!=null)return n;try{let e=S("/usr/bin/env",["which","cloudflared"],{encoding:"utf8"}).trim();if(e.length>0&&m(e))return e}catch{throw new d}throw new d}var P=y(`
|
|
3
|
-
mutation ReleaseDevTunnel($devSessionId: String!) {
|
|
4
|
-
releaseDevTunnel(devSessionId: $devSessionId)
|
|
5
|
-
}
|
|
6
|
-
`),x=y(`
|
|
7
|
-
mutation ProvisionDevTunnel($devSessionId: String!, $localUrl: String!, $engineUrl: String) {
|
|
8
|
-
provisionDevTunnel(devSessionId: $devSessionId, localUrl: $localUrl, engineUrl: $engineUrl) {
|
|
9
|
-
__typename
|
|
10
|
-
... on DevTunnel {
|
|
11
|
-
hostname
|
|
12
|
-
tunnelId
|
|
13
|
-
tunnelToken
|
|
14
|
-
}
|
|
15
|
-
... on DevSessionEndedError {
|
|
16
|
-
message
|
|
17
|
-
}
|
|
18
|
-
... on TunnelNotConfiguredError {
|
|
19
|
-
message
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
`),u=class extends Error{failure;constructor(e){super(e.kind),this.failure=e}};async function $({config:n,devSessionId:e}){let r=(await p({config:n,document:x,variables:{devSessionId:e,engineUrl:n.engineUrl,localUrl:n.appUrl}})).provisionDevTunnel;if(r==null)throw new u({kind:"empty-response"});if(r.__typename!=="DevTunnel")throw new u({kind:"server-error",typename:r.__typename});let o=r.hostname,s=v({token:r.tunnelToken});return a.info({hostname:o},"cloud-executor tunnel up"),{hostname:o,stop:()=>D({config:n,devSessionId:e,sidecar:s})}}async function D({config:n,devSessionId:e,sidecar:i}){await i.stop(),await p({config:n,document:P,variables:{devSessionId:e}}).catch(r=>{a.warn({err:r},"releaseDevTunnel on shutdown failed")})}export{u as a,$ as b};
|