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-LB65USNP.js
DELETED
|
@@ -1,73 +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{c as a,d as s}from"./chunk-OWN4P2K7.js";import{a as o}from"./chunk-7WZ3VIUU.js";var n=`# How Ripplo thinks
|
|
5
|
-
|
|
6
|
-
The mental model behind every Ripplo skill. Read this once and the compile errors, run findings, and explorer behavior all follow from it. Every skill assumes it.
|
|
7
|
-
|
|
8
|
-
**Done means both halves.** An app change without a passing workflow that proves it isn't done, and a workflow written against broken app behavior isn't done either. Every user-facing change ships with the workflow that demonstrates it working end to end.
|
|
9
|
-
|
|
10
|
-
## A workflow is a declaration, not a script
|
|
11
|
-
|
|
12
|
-
A workflow step says two things: what the user does, and what becomes true afterward. "Click Save, and now the success heading is visible, the url is /projects/123, and a project row exists in the database." Ripplo checks all of it \u2014 it doesn't just replay clicks and hope.
|
|
13
|
-
|
|
14
|
-
Because steps declare state instead of scripting waits and retries, Ripplo can do things a script runner can't: predict what every step should produce, compare that prediction against the live app, and reuse what one workflow proved inside every other workflow.
|
|
15
|
-
|
|
16
|
-
One vocabulary rule: you author **workflows**. A **test** is a workflow with its input parameters pinned \u2014 the compiler derives one test per \`when\` branch (or a single "main" test when there are none). Runs execute tests; you edit workflows.
|
|
17
|
-
|
|
18
|
-
A workflow is also a **user journey**: one thing the user set out to accomplish, traced as the real click path from a natural entry point, with as many mutations as the intent takes. Depth pays twice. Every step's declarations become facts, so a journey teaches Ripplo far more of the app than a goto-and-click snippet \u2014 and the explorer can only compose paths from what workflows have declared. Shallow workflows starve the model.
|
|
19
|
-
|
|
20
|
-
## Two kinds of state
|
|
21
|
-
|
|
22
|
-
- **Data** \u2014 rows in your app: users, projects, invoices. Declared as entities, seeded by worlds, asserted with \`Entity.created / updated / deleted\`. Ripplo reads your app's real state through the engine and compares.
|
|
23
|
-
- **Page state** \u2014 what's on screen right now: the url, what's visible or enabled, what a field contains, and global variables (declared with \`singleton(...)\` in the DSL, shown as "Global variables" in the dashboard \u2014 one concept, and it can live in the backend or the browser). Asserted with \`visible(...)\`, \`url.path.is(...)\`, \`text(...)\`, and friends. Locators are semantic \u2014 \`button("Save")\`, \`textbox("Email")\` \u2014 because they assert accessibility too; \`testId\` is a last resort for elements with no ARIA role.
|
|
24
|
-
|
|
25
|
-
New backend state to assert means a new \`entity(...)\` declaration plus a matching engine impl in the app \u2014 the type system flags the missing half. This is the **two-funnel** rule: all definitions flow through one \`createRipplo(...)\` in \`.ripplo/index.ts\`, all implementations through one \`createEngine(...)\` in the app \u2014 never a second call site of either.
|
|
26
|
-
|
|
27
|
-
Every assertion pins one piece of one of these. A mutation step with only page-state assertions ships the "toast said saved, DB didn't" bug as green \u2014 that's why backend assertions on mutations are mandatory.
|
|
28
|
-
|
|
29
|
-
## You can only touch what you've shown exists
|
|
30
|
-
|
|
31
|
-
A step cannot click a button no earlier step declared visible. Compile enforces this before anything runs.
|
|
32
|
-
|
|
33
|
-
This is not pedantry. Declarations are how Ripplo learns what's reachable from where \u2014 which is what lets the explorer compose paths no workflow author wrote and still know what should be on the page when it gets there. An undeclared button is invisible to the model even when it renders fine; the fix is one \`visible(...)\` on the step that first shows it.
|
|
34
|
-
|
|
35
|
-
Corollary: when the same page can show a thing or not (a collapsed group, a toggled panel), the two states need a distinguishing declaration \u2014 assert \`expanded(...)\` on the toggle, not just the disappearance. Otherwise the model sees one page asserting two contradictory things.
|
|
36
|
-
|
|
37
|
-
## Assertions become facts
|
|
38
|
-
|
|
39
|
-
What one workflow proves about a page becomes a fact \u2014 something Ripplo now knows about that page and enforces everywhere. If the settings workflow shows "at /settings, the Save button is visible," every other workflow that reaches /settings inherits that fact \u2014 and so does the explorer, on paths nobody wrote. Negations count too: "the spinner is not visible" is a fact just like "the heading is visible."
|
|
40
|
-
|
|
41
|
-
Two workflows asserting opposite things about the same page under the same conditions is a contradiction, and compile reports it before any run. One of them is wrong \u2014 usually the page has a state dimension neither workflow declared.
|
|
42
|
-
|
|
43
|
-
Facts come in three tiers, one promotion pipeline. A single workflow's assertion is **inferred**. The same consequence asserted by two or more workflows **generalizes** to a **learned** fact \u2014 the model keeps only the conditions they share, so a claim made on two URLs drops the URL and holds app-wide. Above both sits the **declared** fact: an app-wide rule you author directly with \`fact(...)\` in \`.ripplo/facts.ts\` (an invariant like "the crash screen never shows," or a permission boundary), always enforced without any workflow producing it. A more specific fact overrides a more general one. \`/ripplo:create\` covers authoring all three.
|
|
44
|
-
|
|
45
|
-
Two practical notes:
|
|
46
|
-
|
|
47
|
-
- \`text(locator, "x")\` means _contains_ \u2014 several \`text(...)\` assertions on one element can all be true at once.
|
|
48
|
-
- Exact-value checks (\`value(...)\`, \`url.query\`) are exact. A stray difference is a finding, not noise.
|
|
49
|
-
|
|
50
|
-
## What is enforced where
|
|
51
|
-
|
|
52
|
-
| Gate | When | Catches |
|
|
53
|
-
| ----------------- | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
54
|
-
| \`npx ripplo compile\` | before any run | structure, unreachable interactions, contradicting facts, unreachable \`when\` branches, stale lockfile |
|
|
55
|
-
| \`npx ripplo run\` | live, per step | every declared expectation vs the real app \u2014 page state and backend rows, with a wait window that tolerates propagation lag but fails on wrong values |
|
|
56
|
-
| explorer | in the background | learned facts and backend state on composed paths no workflow author wrote |
|
|
57
|
-
|
|
58
|
-
A failed check is a **finding** \u2014 the unit every red run and every explorer catch produces. If compile is red, the model is inconsistent \u2014 fix the declarations, don't run around it. If a run is red, read the artifacts first (\`npx ripplo explain <runId>\`, then raw \`behavior.jsonl\`), form one hypothesis, make one change, re-run once \u2014 never re-run hoping.
|
|
59
|
-
|
|
60
|
-
The explorer is not optional \u2014 it is the third gate, always running. It walks composed paths no workflow author wrote and catches bugs that only appear when actions combine, so keep it on for the whole session. A green \`npx ripplo run\` turns it on for you; \`npx ripplo explore\` shows or toggles it by hand. Its findings arrive as tasks \u2014 triage them with \`/ripplo:tasks\`, and an open finding blocks the session end just like any other task. The only real off switch is \`npx ripplo hooks pause\`.
|
|
61
|
-
|
|
62
|
-
Two different timing knobs, often confused: \`.wait("slow")\` on an assertion lengthens _how long_ Ripplo polls before calling it failed (slow page, long job). \`consistency: "eventual"\` on a field or variable tolerates _wrong in-between values_ while converging (a flickering redirect, a denormalized counter). Slow is not the same as flickering \u2014 reach for \`.wait\` first.
|
|
63
|
-
|
|
64
|
-
\`.ripplo/ripplo.lock\` is the compiled model \u2014 committed, regenerated by \`ripplo compile\`, never hand-edited.
|
|
65
|
-
|
|
66
|
-
## Scope and stubs
|
|
67
|
-
|
|
68
|
-
**Testing Scope** is the session's contract: the set of workflows this session is responsible for leaving green. Any change that could affect a flow adds its workflow to scope; a flow with no workflow yet gets a **stub** \u2014 \`workflow("Intent")\` with no body \u2014 which is a gated promise: hooks won't let the session end with it unimplemented. Scope items are removed only when genuinely out of scope, never because they're work.
|
|
69
|
-
|
|
70
|
-
## The prime directive
|
|
71
|
-
|
|
72
|
-
Never weaken a workflow to make it pass. No swapping exact text for contains, no deleting assertions, no fabricated locators, no \`testId()\` because the accessible name is missing \u2014 add the accessible name to the app. A weakened declaration doesn't just soften one workflow; it teaches Ripplo a weaker fact everywhere.
|
|
73
|
-
`;function l(e,t){return!o(e)||s(e,t)?null:(a(e,t),n)}export{l as a};
|
package/dist/chunk-MOI4L3EX.js
DELETED
|
@@ -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
|
-
function p(e){let t=e.workflows.filter(n=>!n.stub);if(t.length===0)return[];let a=new Set(t.flatMap(n=>s(n))),r=new Set(t.flatMap(n=>o(n)));return[...e.entities.filter(n=>!a.has(n.name)).map(n=>({entity:n.name,kind:"entity-never-given"})),...e.entities.filter(n=>a.has(n.name)&&!r.has(n.name)).map(n=>({entity:n.name,kind:"entity-never-mutated"})),...t.flatMap(n=>n.tests.flatMap(l=>y(l)))]}function s(e){return[...e.world,...e.maybe].map(t=>t.entity)}function o(e){return e.steps.flatMap(t=>t.expect.flatMap(a=>i(a))).map(t=>t.entity)}function y(e){let t=e.steps.flatMap(a=>a.expect.flatMap(r=>i(r)));return d({states:t,test:e})}function d({states:e,test:t}){let a=e.filter(r=>r.assertion.kind==="deleted").flatMap(r=>f({predicate:r,test:t})).map(({entity:r,field:n})=>({entity:r,field:n,kind:"unmatchable-delete-key",testSlug:t.slug,workflow:t.workflow}));return c(a)}function f({predicate:e,test:t}){let a=t.world.filter(r=>r.entity===e.entity);return a.length===0?[]:Object.entries(e.key).filter(([r,n])=>g(n)&&!u({field:r,setups:a})).map(([r])=>({entity:e.entity,field:r}))}function u({field:e,setups:t}){return t.some(a=>Object.keys(a.set).includes(e))}function g(e){return e===null||typeof e!="object"}function c(e){return e.filter((t,a)=>e.findIndex(r=>JSON.stringify(r)===JSON.stringify(t))===a)}function i(e){return e.kind==="state"?[e]:e.kind==="not"?i(e.predicate):e.kind==="and"?e.predicates.flatMap(t=>i(t)):e.kind==="when"?e.branches.flatMap(t=>t.consequence.flatMap(a=>i(a))):[]}export{p as a};
|
package/dist/chunk-N2OBRCPQ.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{a as p}from"./chunk-JJ4QQPAV.js";import{b as l}from"./chunk-TPHOSZAK.js";import{j as c}from"./chunk-IPSXNIXC.js";import{createHash as S}from"crypto";import{mkdirSync as b,readFileSync as v,writeFileSync as A}from"fs";import x from"path";import*as e from"zod/mini";import{createHash as P}from"crypto";import a from"picomatch";function m(t){return l(["diff","--name-only","HEAD"],t).split(`
|
|
5
|
-
`).filter(r=>r.length>0)}function g({cwd:t,ignoreGlobs:r,watchGlobs:n}){let o=a([...n]),i=a([...r]);return m(t).filter(s=>o(s)&&!i(s))}function z(t){return l(["ls-files","--others","--exclude-standard"],t).split(`
|
|
6
|
-
`).filter(r=>r.length>0)}function d({cwd:t,ignoreGlobs:r,watchGlobs:n}){let o=a([...n]),i=a([...r]);return z(t).filter(s=>o(s)&&!i(s))}var F=e.object({label:e.nullable(e.string()),slug:e.nullable(e.string()),status:e.enum(["intent","stub","implemented"])}),C=e.object({intent:e.string(),name:e.string(),sourcePath:e.nullable(e.string()),stub:e.boolean()}),R=e.object({changedAppFiles:e.readonly(e.array(e.string())),scope:e.object({available:e.boolean(),items:e.readonly(e.array(F))}),tests:e._default(e.readonly(e.array(C)),[]),untrackedAppFiles:e.readonly(e.array(e.string()))});function O({cwd:t,scope:r}){let n=h(t);u(t,{...f(t),scope:r,tests:n?.tests??[]})}function T({cwd:t,tests:r}){let n=h(t);u(t,{...f(t),scope:n?.scope??{available:!1,items:[]},tests:r??n?.tests??[]})}function h(t){let r=R.safeParse(k(y(t)));return r.success?r.data:null}function k(t){try{return JSON.parse(v(t,"utf8"))}catch{return null}}function y(t){return c(t,"coverage-context.json")}function u(t,r){let n=y(t);b(x.dirname(n),{recursive:!0});let o=S("sha256").update(JSON.stringify(r)).digest("hex");A(n,JSON.stringify({...r,inputHash:o},null,2))}function f(t){let{ignorePaths:r,watchPaths:n}=p(),o={cwd:t,ignoreGlobs:r,watchGlobs:n};return{changedAppFiles:g(o),untrackedAppFiles:d(o)}}export{O as a,T as b};
|
package/dist/chunk-NY6EIQR4.js
DELETED
|
@@ -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,b as y,c as d,d as P,e as x,f as w,j as f,k as l,n as B}from"./chunk-AWPZTNYU.js";import{q as F,s as b,t as H,u as E}from"./chunk-CTTC4KKQ.js";import{J as k,K as i,Q as n,R as h,ca as S,ga as C,ha as g}from"./chunk-IKYR3UCU.js";import{readFile as W,writeFile as z}from"fs/promises";import T from"path";import{err as u,ok as N}from"neverthrow";import s from"fs";import v from"path";import{z as m}from"zod";function O({context:e,cwd:o}){S(e);let r=K(o,L(e));r!=null&&C(e,r)}function ie({context:e,cwd:o}){let r=D(o);if(!(r==null||r.model!==L(e)))return r.cleanLockfile??void 0}function le({cleanLockfileHash:e,context:o,cwd:r}){let t=R(r);s.mkdirSync(v.dirname(t),{recursive:!0}),s.writeFileSync(t,JSON.stringify({bundle:a(),cleanLockfile:e,model:L(o)}))}function se(e){return f(e)}var I=m.object({bundle:m.string().nullable(),cleanLockfile:m.string().nullable(),model:m.string()});function K(e,o){let r=v.join(e,l),t=_(r);return t==null||!d(t)?null:f(x(t))===o?t.solved:null}function _(e){try{return i(n,s.readFileSync(e,"utf8"))}catch{return null}}function L(e){return f(w(e))}function D(e){let o=R(e);if(s.existsSync(o))try{let r=I.safeParse(JSON.parse(s.readFileSync(o,"utf8")));return!r.success||!P(r.data.bundle)?void 0:r.data}catch{return}}function R(e){return v.join(e,".ripplo",".local","solve-cache.json")}async function Le(e){let o=await B(e);return o.isOk()&&await q(e,o.value),o}async function q(e,o){let r=await G(e,o);return await z(T.join(e,l),k(n,r)),r}var M=new WeakMap;function G(e,o){let r=M.get(o);if(r!=null)return r;let t=A(e,o).then(c=>c.match(p=>Promise.resolve(p),()=>Q(e,o)));return M.set(o,t),t}function Se(e,o){return A(e,o)}function Ce(e){return e.workflows.filter(o=>o.stub).map(o=>o.name)}async function ge(e,o){let r=await j(e);return r==null?"missing":r.checks==null?"stale":y(r,o)?"match":"stale"}async function A(e,o){let r=await j(e);return r==null?u({kind:"no-lockfile"}):r.checks==null?u({kind:"unstamped"}):d(r)?y(r,o)?N(h(r)):u({kind:"dsl-drift"}):u({kind:"expander-newer"})}async function j(e){try{let o=await W(T.join(e,l),"utf8");return i(n,o)}catch{return null}}async function Q(e,o){let r=F(o);O({context:r,cwd:e});let t=await H(o),c=await b(o);await E({context:r,facts:c.facts});let p=await g(r),V=a(),J={...o,checks:{...t,expanderHash:V??void 0},solved:p};return h(i(n,k(n,J)))}export{O as a,ie as b,le as c,se as d,Le as e,q as f,G as g,Se as h,Ce as i,ge as j};
|
package/dist/chunk-OQ4TDIP3.js
DELETED
|
@@ -1,55 +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{c as P}from"./chunk-7W237JFM.js";import{a as I,f as v}from"./chunk-TPHOSZAK.js";import{g as h,k as w,n as k}from"./chunk-AWPZTNYU.js";import{d as a,f}from"./chunk-IPSXNIXC.js";import{U as S,W as m}from"./chunk-IKYR3UCU.js";import y from"fs";import p from"path";function D(e){try{let n=A(e);if(n==null)return;let t=p.join(n,"HEAD"),o=y.readFileSync(t,"utf8").trim(),r="ref: refs/heads/";return o.startsWith(r)?o.slice(r.length):o.length===0?void 0:o.slice(0,7)}catch{return}}function A(e){let n=p.join(e,".git");if(y.statSync(n).isDirectory())return n;let o=y.readFileSync(n,"utf8").trim(),r="gitdir:";if(!o.startsWith(r))return;let s=o.slice(r.length).trim();if(s.length!==0)return p.resolve(e,s)}import E from"crypto";import{readFile as R}from"fs/promises";import x from"path";import{graphql as g}from"gql.tada";import{err as L,ok as T}from"neverthrow";var C=g(`
|
|
5
|
-
mutation SyncDevSession(
|
|
6
|
-
$projectId: String!
|
|
7
|
-
$cwd: String!
|
|
8
|
-
$branch: String
|
|
9
|
-
$lockfileContent: String
|
|
10
|
-
$fixtures: [SyncDevFixtureInput!]
|
|
11
|
-
$entities: [SyncDevEntityInput!]!
|
|
12
|
-
$singletons: [SyncDevSingletonInput!]
|
|
13
|
-
$workflows: [SyncDevWorkflowInput!]!
|
|
14
|
-
) {
|
|
15
|
-
syncDevSession(
|
|
16
|
-
projectId: $projectId
|
|
17
|
-
cwd: $cwd
|
|
18
|
-
branch: $branch
|
|
19
|
-
lockfileContent: $lockfileContent
|
|
20
|
-
fixtures: $fixtures
|
|
21
|
-
entities: $entities
|
|
22
|
-
singletons: $singletons
|
|
23
|
-
workflows: $workflows
|
|
24
|
-
) {
|
|
25
|
-
id
|
|
26
|
-
hooksPaused
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
`);async function ie(e,n){let t=await k(e);if(t.isErr())return L({error:t.error,kind:"compilation-failed"});let o=await u({config:n,cwd:e,lockfile:t.value});return T({devSessionId:o.devSessionId,lockfile:t.value})}async function u(e){let n=S(e.lockfile);return _({config:e.config,cwd:e.cwd,fixtures:e.lockfile.fixtures,payload:n})}var F=g(`
|
|
30
|
-
query DevSessionSyncState($projectId: String!, $cwd: String!) {
|
|
31
|
-
project(id: $projectId) {
|
|
32
|
-
devSession(cwd: $cwd) {
|
|
33
|
-
id
|
|
34
|
-
hooksPaused
|
|
35
|
-
lockfileHash
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
`),W=g(`
|
|
40
|
-
mutation AnnounceDevSessionActive($projectId: String!, $cwd: String!) {
|
|
41
|
-
announceDevSessionActive(projectId: $projectId, cwd: $cwd)
|
|
42
|
-
}
|
|
43
|
-
`);async function se(e){let n=await O(e.cwd);if(n!=null){let o=(await a({config:e.config,document:F,variables:{cwd:e.cwd,projectId:e.config.projectId}}).catch(()=>null))?.project?.devSession;if(o!=null&&o.lockfileHash===n)return await a({config:e.config,document:W,variables:{cwd:e.cwd,projectId:e.config.projectId}}).catch(()=>null),{devSessionId:o.id,hooksPaused:o.hooksPaused}}return u(e)}async function O(e){let n=await $(e);return n==null?null:E.createHash("sha256").update(n).digest("hex")}async function _({config:e,cwd:n,fixtures:t,payload:o}){let r=D(n),s=await $(n),l=await H(n,t),c=await a({config:e,document:C,variables:{branch:r??null,cwd:n,entities:o.entities.map(i=>({description:i.description,name:i.name})),fixtures:l,lockfileContent:s,projectId:e.projectId,singletons:o.singletons.map(i=>({defaultValue:i.defaultValue,description:i.description,name:i.name,type:i.type})),workflows:o.workflows.map(i=>({entities:[...i.entities],expectedOutcome:i.expectedOutcome,name:i.name,slug:i.slug,sourcePath:i.sourcePath,spec:JSON.stringify(i.spec)}))}});if(c.syncDevSession==null)throw new Error("syncDevSession returned null");return{devSessionId:c.syncDevSession.id,hooksPaused:c.syncDevSession.hooksPaused}}async function H(e,n){let t=Object.entries(n);return Promise.all(t.map(async([o,r])=>({contentBase64:(await R(x.join(e,h,o))).toString("base64"),sha256:r.sha256})))}async function $(e){try{return await R(x.join(e,w),"utf8")}catch{return null}}import{graphql as q}from"gql.tada";var B=q(`
|
|
44
|
-
mutation AutoScopeAddDirty($projectId: String!, $cwd: String!, $workflowSlugs: [String!]!) {
|
|
45
|
-
addDirtyTestsToScope(projectId: $projectId, cwd: $cwd, workflowSlugs: $workflowSlugs) {
|
|
46
|
-
__typename
|
|
47
|
-
... on MutationAddDirtyTestsToScopeSuccess {
|
|
48
|
-
data {
|
|
49
|
-
id
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
`);async function ge({cwd:e,editedPath:n,lockfile:t,requireHooks:o,syncFirst:r}){if(o&&!v(e))return{addedSlugs:[]};let s=new Set(X(e)),l=t.workflows.filter(d=>d.sourcePath!=null&&G({dirtySet:s,editedPath:n,sourcePath:d.sourcePath})).map(d=>m(d.name));if(l.length===0)return{addedSlugs:[]};let c=P(e).unwrapOr(void 0);return c==null?{addedSlugs:[]}:r&&!await M({cfg:c,cwd:e,lockfile:t})?{addedSlugs:[]}:{addedSlugs:await V({cfg:c,slugs:l})?l:[]}}async function M({cfg:e,cwd:n,lockfile:t}){return await u({config:e,cwd:n,lockfile:t}).catch(r=>(f.warn("auto-sync failed: %s",r instanceof Error?r.message:String(r)),null))!=null}async function V({cfg:e,slugs:n}){let o=(await a({config:e,document:B,variables:{cwd:e.cwd,projectId:e.projectId,workflowSlugs:[...n]}}).catch(r=>(f.warn("auto-scope failed: %s",r instanceof Error?r.message:String(r)),null)))?.addDirtyTestsToScope;return o?.__typename!=="MutationAddDirtyTestsToScopeSuccess"?!1:o.data.length>0}function G({dirtySet:e,editedPath:n,sourcePath:t}){return e.has(t)||n!=null&&n.endsWith(t)}var j=".ripplo/workflows/",b=" -> ";function X(e){let n;try{n=I(["status","--porcelain","-uall","--",".ripplo/workflows"],e)}catch{return[]}return n.split(`
|
|
55
|
-
`).map(t=>t.slice(3).trim()).map(t=>t.includes(b)?t.split(b)[1]:t).filter(t=>t!=null).filter(t=>t.startsWith(j)&&t.endsWith(".ts")).map(t=>t.slice(j.length)).filter(t=>t!=="index.ts"&&!t.endsWith("/index.ts"))}export{D as a,ie as b,u as c,se as d,O as e,ge as f};
|
package/dist/chunk-OQS63V7U.js
DELETED
|
@@ -1,7 +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 as p,c as t}from"./chunk-KOKEEAEF.js";import{c as s}from"./chunk-LOEAZGYO.js";function l(){let o=process.cwd(),e=s(o);e!=null&&e!==o&&(process.chdir(e),process.stderr.write(`ripplo: resolved .ripplo/ at ${e}
|
|
5
|
-
`))}var d={"exit-plan-gate":()=>import("./exit-plan-gate-HSTV7UO4.js").then(o=>o.exitPlanGateHook),"plan-reminder":()=>import("./plan-reminder-RBCRBCKC.js").then(o=>t("UserPromptSubmit",o.planReminder)),"post-edit":()=>import("./post-edit-MVGQGAW4.js").then(o=>o.postEditHook),"post-edit-analyze":()=>import("./post-edit-analyze-XWTZMQCB.js").then(o=>t("PostToolUse",o.postEditAnalyze)),"post-edit-flag-stubs":()=>import("./post-edit-flag-stubs-4MQZATJE.js").then(o=>t("PostToolUse",o.postEditFlagStubs)),"pre-bash-run-gate":()=>import("./pre-bash-run-gate-B42YNDQF.js").then(o=>o.preBashRunGateHook),"pre-edit":()=>import("./pre-edit-YF6WNE6G.js").then(o=>o.preEditHook),"pre-edit-ripplo-skill-gate":()=>import("./pre-edit-ripplo-skill-gate-QHUD7QGU.js").then(o=>t("PreToolUse",o.preEditRipploSkillGate)),"pre-edit-scope-gate":()=>import("./pre-edit-scope-gate-2YIFSEDY.js").then(o=>t("PreToolUse",o.preEditScopeGate)),"pre-edit-watch-gate":()=>import("./pre-edit-watch-gate-SJ3RCYH5.js").then(o=>t("PreToolUse",o.preEditWatchGate)),"prompt-submit":()=>import("./prompt-submit-YX7GMTC4.js").then(o=>o.promptSubmitHook),"scope-reminder":()=>import("./scope-reminder-DIDCHDAA.js").then(o=>t("UserPromptSubmit",o.scopeReminder)),"session-preamble":()=>import("./session-preamble-ZYVRDSGA.js").then(o=>o.sessionPreambleHook),"stop-enforce":()=>import("./stop-enforce-VWOM5EZY.js").then(o=>o.stopEnforceHook),"tasks-reminder":()=>import("./tasks-reminder-SDS6RNLP.js").then(o=>t("UserPromptSubmit",o.tasksReminder)),"tasks-reminder-tool":()=>Promise.resolve(t("PostToolUse",()=>{})),"track-skill-load":()=>import("./track-skill-load-CJ74GD3Q.js").then(o=>o.trackSkillLoadHook),"track-skill-prompt":()=>import("./track-skill-prompt-YSB6OOQN.js").then(o=>t("UserPromptSubmit",o.trackSkillPrompt))},n=d;async function P(o){let e=n[o];e==null&&(process.stderr.write(`Unknown hook: ${o}
|
|
6
|
-
`),process.exit(1));let i=await m(),r=await p(await e(),i);if(r.kind==="crash"){let{renderHookCrash:a}=await import("./cli-error-TS4FNZ6F.js");process.stderr.write(`${a(o,r.error)}
|
|
7
|
-
`),process.exit(0)}r.stdout!=null&&process.stdout.write(r.stdout),process.exit(0)}function m(){return new Promise((o,e)=>{if(process.stdin.isTTY){o("");return}let i=[];process.stdin.on("data",r=>i.push(r)),process.stdin.on("end",()=>{o(Buffer.concat(i).toString("utf8"))}),process.stdin.on("error",e)})}export{l as a,n as b,P as c};
|
package/dist/chunk-OWN4P2K7.js
DELETED
|
@@ -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{existsSync as c,mkdirSync as g,rmSync as f,writeFileSync as l}from"fs";import t from"path";function d(r,n,i){let e=s(r,n,i);g(t.dirname(e),{recursive:!0}),l(e,"")}function u(r,n,i){return c(s(r,n,i))}function k(r,n){d(r,n,o)}function S(r,n){return u(r,n,o)}var o="__model__";function s(r,n,i){return t.join(a(r,n),i)}function a(r,n){return t.join(r,".ripplo",".local","skills-loaded",n)}export{d as a,u as b,k as c,S as d};
|
package/dist/chunk-SNU66GSR.js
DELETED
|
@@ -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{b as a}from"./chunk-OWN4P2K7.js";import{a as s}from"./chunk-7WZ3VIUU.js";import{f as l}from"./chunk-TPHOSZAK.js";import p from"path";import*as t from"zod/mini";var n=new Set(["Edit","Write","NotebookEdit"]),d=t.looseObject({file_path:t.string()}),c="create",k=e=>{if(!n.has(e.tool_name))return;let i=d.safeParse(e.tool_input);if(!i.success)return;let{cwd:o}=e;if(!s(o)||!l(o))return;let r=p.relative(o,i.data.file_path);if(!(r.startsWith("..")||r!==".ripplo"&&!r.startsWith(".ripplo/"))&&!a(o,e.session_id,c))return{hookSpecificOutput:{hookEventName:"PreToolUse",permissionDecision:"deny",permissionDecisionReason:`Editing \`.ripplo/\` files (${r}) requires the \`/ripplo:create\` skill loaded first. Load \`/ripplo:create\` then retry \u2014 it carries the DSL builder shape, model rules, and the parallelization guidance you'll need.`}}};export{k as a};
|
package/dist/chunk-TOBC3SQA.js
DELETED
|
@@ -1,8 +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 w,c as P}from"./chunk-CB74TAUC.js";import{a as m}from"./chunk-MOI4L3EX.js";import{a as u,c as y,d as g}from"./chunk-7VGCLQGP.js";import{a as h}from"./chunk-OQ6KNYPG.js";import{f as S}from"./chunk-OQ4TDIP3.js";import{a as c}from"./chunk-7WZ3VIUU.js";import{f as k}from"./chunk-TPHOSZAK.js";import{a as l}from"./chunk-7IIRERCW.js";import{a as s}from"./chunk-MHNGR6M7.js";import{e as f,f as p}from"./chunk-NY6EIQR4.js";import{b as d}from"./chunk-CTTC4KKQ.js";import{createHash as b}from"crypto";import*as a from"zod/mini";var v=a.looseObject({file_path:a.string()}),J=async e=>{let o=v.safeParse(e.tool_input);if(!o.success||!/\/\.ripplo\/.*\.ts$/.test(o.data.file_path))return;let{cwd:t}=e;if(!c(t))return;if(!k(t))return{hookSpecificOutput:{additionalContext:"Ripplo hooks are paused \u2014 DSL compile and lockfile sync did not run for this edit. Resume with `npx ripplo hooks resume` when ready.",hookEventName:"PostToolUse"}};let r=await f(t);if(r.isErr())return{decision:"block",reason:`${l(r.error)}
|
|
5
|
-
${s("create","DSL authoring rules")}`};let n=await F({cwd:t,filePath:o.data.file_path,lockfile:r.value});if("block"in n)return{decision:"block",reason:n.block};let{addedSlugs:i}=await S({cwd:t,editedPath:o.data.file_path,lockfile:r.value,requireHooks:!0,syncFirst:!0});return L(z({addedSlugs:i,cwd:t,elsewhere:n.elsewhere,lockfile:r.value}))};function z({addedSlugs:e,cwd:o,elsewhere:t,lockfile:r}){return[...e.length>0?[`Auto-scoped ${e.join(", ")} (dirty tests).`]:[],...t>0?[A(t).trimStart()]:[],...H(o,r)]}async function F({cwd:e,filePath:o,lockfile:t}){let r=await u({cwd:e,lockfile:t});await p(e,t);let n=N(r,t,o),i=r.length-n.length;return n.length===0?{elsewhere:i}:{block:`${y(n)}${A(i)}
|
|
6
|
-
${s("create")}`}}function N(e,o,t){let r=new Set(d(o).filter(({workflow:n})=>n.sourcePath!=null&&t.endsWith(n.sourcePath)).map(({ref:n})=>n));return r.size===0?e:e.filter(n=>{let i=R(n);return i==null||r.has(i)})}function R(e){return e.kind==="unreachable-interaction"?e.violation.test:e.kind==="redundant-assertion"?e.redundancy.test:e.kind==="missing-precondition"?e.missing.test:null}function A(e){return e===0?"":`
|
|
7
|
-
${h(e,"finding")} in other files \u2014 \`npx ripplo compile\` for the full list.`}function L(e){if(e.length!==0)return{hookSpecificOutput:{additionalContext:e.join(`
|
|
8
|
-
`),hookEventName:"PostToolUse"}}}function H(e,o){let t=m(o),r=b("sha256").update(JSON.stringify(t)).digest("hex");return w(e,"coverage-warn")===r?[]:(P(e,"coverage-warn",r),t.length===0?[]:[g(t)])}export{J as a};
|
package/dist/daemon-QKBWYQJA.js
DELETED
|
@@ -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,b,c,d,e,f,g,h,i,j,k,l}from"./chunk-GI65FUDI.js";import"./chunk-CTTC4KKQ.js";import"./chunk-IKYR3UCU.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";export{b as renderDaemonBindError,h as renderDaemonLockCompromised,f as renderDaemonLockHeld,e as renderDaemonReady,i as renderDaemonStatus,g as renderDaemonStopResult,k as renderDaemonVersionNote,j as renderExplorationProgress,d as renderNotSignedIn,c as renderProjectAccessDenied,a as renderTunnelProvisionFailed,l as wireOutcome};
|
package/dist/daemon-UMZJZ7BY.js
DELETED
|
@@ -1,152 +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,C as Xe,D as Ye,E as Ze,G as er,H as N,I as B,J as rr,K as nr,L as K,M as tr,e as Pe,i as Ue,j as We,k as $e,l as Me,m as _e,n as Oe,o as Fe,p as je,r as C,s as L,t as Ne,u as j,v as ze,w as Je,x as Ge,z as Ve}from"./chunk-7YQOAAKF.js";import{d as Te}from"./chunk-22JUAYHM.js";import{a as Be,c as Ke,d as Qe,e as h}from"./chunk-OQ4TDIP3.js";import{c as S}from"./chunk-7W237JFM.js";import{e as Ie}from"./chunk-TPHOSZAK.js";import{a as ue}from"./chunk-R4ZTRVDQ.js";import{c as se}from"./chunk-FEHVIHVA.js";import{b as me}from"./chunk-2GFHB4LD.js";import{a as P}from"./chunk-7IIRERCW.js";import"./chunk-MHNGR6M7.js";import{g as Re,h as T}from"./chunk-NY6EIQR4.js";import{a as pe,l as k,m as fe,n as E}from"./chunk-AWPZTNYU.js";import{e as be,f as Ee}from"./chunk-R3DZ6JPY.js";import{a as te,c as oe,d as u,f as s,g as ie,h as F,i as ae}from"./chunk-IPSXNIXC.js";import"./chunk-LOEAZGYO.js";import{b as Ce,c as Le,d as Ae,e as De,f as qe,h as He}from"./chunk-GI65FUDI.js";import{F as ge,I,J as Se,K as ke,M as he,N as we,Q as ve,X as xe,a as ye}from"./chunk-CTTC4KKQ.js";import{J as le,Q as de,W as ce}from"./chunk-IKYR3UCU.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";import to from"path";import{createClient as oo}from"graphql-sse";import{graphql as ee}from"gql.tada";import An,{AbortError as Dn}from"p-retry";import{graphql as fn}from"gql.tada";import{print as mn}from"graphql";async function or({config:e,cwd:r,headed:n,pool:t,runId:o,signal:i,testSlug:a,workClass:l,workflowSlug:d}){let c=await k(r);if(c.isErr())return await A({config:e,ownerToken:null,reason:`lockfile:${c.error.kind}`,runId:o}),{kind:"dispatch-error",reason:{detail:`lockfile:${c.error.kind}`,type:"generic"}};let p=pn(c.value,{testSlug:a,workflowSlug:d});if(p==null)return await A({config:e,ownerToken:null,reason:`no-test:${d}/${a}`,runId:o}),{kind:"dispatch-error",reason:{detail:`no-test:${d}/${a}`,type:"generic"}};let f=await C({headed:n,workClass:l,task:()=>t.execute({headed:n,runId:o,testRef:p},i)});return!f.serverNotified&&f.outcome.kind==="error"&&await A({config:e,ownerToken:null,reason:f.outcome.detail,runId:o}),f.outcome}function pn(e,{testSlug:r,workflowSlug:n}){let o=e.workflows.find(i=>ce(i.name)===n)?.tests.find(i=>i.slug===r);return o==null?void 0:ye(o)}var yn=6e4,gn=fn(`
|
|
5
|
-
subscription RunRequestedWatch($devSessionId: String!) {
|
|
6
|
-
runRequested(devSessionId: $devSessionId) {
|
|
7
|
-
runId
|
|
8
|
-
testSlug
|
|
9
|
-
workflowId
|
|
10
|
-
workflowSlug
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
`);async function ir(e){let r=Math.min(1e3*2**e,yn)+wn();await new Promise(n=>setTimeout(n,r))}function ar({claim:e,cwd:r,devSessionId:n,onSubscriptionDead:t,pool:o,sseClient:i,sseHealth:a}){let l=new Set,d=Sn(r);return i.subscribe({query:mn(gn),variables:{devSessionId:n}},{complete:()=>{s.warn("runRequested SSE completed unexpectedly; re-registering session"),t("stream completed")},error:c=>{let p=c instanceof Error?c.message:String(c);s.warn("runRequested SSE failed: %s; re-registering session",p),t(p)},next:c=>{kn({claim:e,dispatchConfig:d,event:c.data?.runRequested,inFlightRunIds:l,pool:o})}},{connected:()=>{a.onConnected()},connecting:c=>{a.onConnecting(c),c&&s.debug("runRequested SSE reconnecting")}})}function Sn(e){return se(e),{config:S(e).match(r=>r,r=>{s.error({failure:r},"failed to load env for run dispatch")}),cwd:e}}function kn({claim:e,dispatchConfig:r,event:n,inFlightRunIds:t,pool:o}){if(n==null)return;if(t.has(n.runId)){s.warn({runId:n.runId,workflowSlug:n.workflowSlug},"duplicate runRequested event; skipping dispatch");return}if(r.config==null){s.error({runId:n.runId},"run dispatch skipped, env failed to load at startup");return}t.add(n.runId),process.stdout.write(`ripplo: run ${n.workflowSlug}
|
|
14
|
-
`);let i=hn(e(n.runId),n);i.started(),or({config:r.config,cwd:r.cwd,headed:i.headed,pool:o,runId:n.runId,signal:i.signal,testSlug:n.testSlug,workClass:i.workClass,workflowSlug:n.workflowSlug}).then(a=>{i.finished(a)}).catch(a=>{s.error({err:a,runId:n.runId,workflowSlug:n.workflowSlug},"run execution failed; daemon continuing"),i.finished({detail:a instanceof Error?a.message:String(a),kind:"error"})}).finally(()=>{t.delete(n.runId)})}function hn(e,r){return e==null?(s.debug({runId:r.runId,workflowSlug:r.workflowSlug},"dispatching unclaimed run (externally triggered or replayed)"),{headed:!1,signal:new AbortController().signal,workClass:"p0-ui",finished:()=>{},started:()=>{}}):{headed:e.headed,signal:Je(e.token),workClass:"p1-cli",finished:n=>{e.finished(r.runId,n)},started:()=>{e.started(r.runId)}}}function wn(){return Math.floor(Math.random()*2700)+300}import{graphql as Q}from"gql.tada";import{print as vn}from"graphql";var xn=Q(`
|
|
15
|
-
subscription TeleportRequestedWatch($devSessionId: String!) {
|
|
16
|
-
teleportRequested(devSessionId: $devSessionId) {
|
|
17
|
-
runId
|
|
18
|
-
stepIndex
|
|
19
|
-
kind
|
|
20
|
-
testSlug
|
|
21
|
-
workflowSlug
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
`),Rn=Q(`
|
|
25
|
-
query TeleportRunRepro($id: String!) {
|
|
26
|
-
run(id: $id) {
|
|
27
|
-
id
|
|
28
|
-
reproJson
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
`),bn=Q(`
|
|
32
|
-
mutation ReportTeleportResult($devSessionId: String!, $runId: String!, $status: String!) {
|
|
33
|
-
reportTeleportResult(devSessionId: $devSessionId, runId: $runId, status: $status)
|
|
34
|
-
}
|
|
35
|
-
`);function sr({cwd:e,devSessionId:r,onSubscriptionDead:n,sseClient:t}){let o=new Set,i=t.subscribe({query:vn(xn),variables:{devSessionId:r}},{complete:()=>{s.warn("teleportRequested SSE completed unexpectedly; re-registering session"),n("stream completed")},error:a=>{let l=a instanceof Error?a.message:String(a);s.warn("teleportRequested SSE failed: %s; re-registering session",l),n(l)},next:a=>{En({cwd:e,devSessionId:r,event:a.data?.teleportRequested,running:o})}});return()=>{o.forEach(a=>{a.abort()}),o.clear(),i()}}function En({cwd:e,devSessionId:r,event:n,running:t}){if(n==null)return;let o=new AbortController;t.add(o),Pn({cwd:e,devSessionId:r,event:n,signal:o.signal}).catch(i=>{s.error({err:i},"teleport failed; daemon continuing")}).finally(()=>{t.delete(o)})}async function Pn({cwd:e,devSessionId:r,event:n,signal:t}){let o=d=>In({cwd:e,devSessionId:r,runId:n.runId,status:d}),i=await Tn(e,n);if(i==null){s.warn({runId:n.runId},"teleport could not resolve target"),await o("unplannable");return}process.stdout.write(`ripplo: teleport ${Ln(n)} step ${String(n.stepIndex+1)}
|
|
36
|
-
`);let l=await er({cwd:e,onReady:()=>{o("opened")},signal:t,step:n.stepIndex+1,target:i});l.kind==="done"&&l.result.kind==="handed-over"||(s.warn({kind:l.kind,runId:n.runId},"teleport could not open"),await o(l.kind==="unplannable"?"unplannable":"error"))}async function In({cwd:e,devSessionId:r,runId:n,status:t}){let o=S(e).match(i=>i,()=>null);o!=null&&await u({config:o,document:bn,variables:{devSessionId:r,runId:n,status:t}}).catch(()=>null)}async function Tn(e,r){if(r.kind==="explore"){let n=await Cn(e,r.runId);return n==null?null:{kind:"explore",repro:n}}return r.testSlug==null||r.workflowSlug==null?null:{kind:"test",ref:`${r.workflowSlug}/${r.testSlug}`}}async function Cn(e,r){let n=S(e).match(o=>o,()=>null);if(n==null)return null;let t=await u({config:n,document:Rn,variables:{id:r}}).catch(()=>null);return t?.run?.reproJson==null?null:I.parse(JSON.parse(t.run.reproJson))}function Ln(e){return e.kind==="explore"?"explore finding":`${String(e.workflowSlug)}/${String(e.testSlug)}`}function lr({claim:e,config:r,cwd:n,initialId:t,pool:o,sseClient:i,sseHealth:a}){let l=t,d=null,c=m=>{y(m)},p=()=>{let m=ar({claim:e,cwd:n,devSessionId:l,onSubscriptionDead:c,pool:o,sseClient:i,sseHealth:a}),g=sr({cwd:n,devSessionId:l,onSubscriptionDead:c,sseClient:i});return()=>{m(),g()}},f=p(),M=async m=>{a.markUnhealthy(m);let g=await E(n);if(g.isErr()){s.error("re-register: compile failed: %s",P(g.error));return}let _=await z(()=>Ke({config:r,cwd:n,lockfile:g.value}),{config:r,label:"re-register sync"});f(),l=_.devSessionId,f=p(),s.info("re-registered dev session as %s",l)},y=m=>(d!=null||(d=M(m).finally(()=>{d=null})),d);return{getId:()=>l,reregister:()=>y("dev session ended server-side"),stop:()=>{f()}}}function z(e,{config:r,label:n}){let t=r.ripploServerUrl.includes("localhost")||r.ripploServerUrl.includes("127.0.0.1");return An(async()=>{try{return await e()}catch(o){if(qn({config:r,error:o}),!(o instanceof te)){let i=o instanceof Error?o.message:String(o);throw s.error("%s failed: %s",n,i),new Dn(i)}throw o}},{factor:2,maxTimeout:t?2e3:1e4,minTimeout:t?100:1e3,retries:1/0,onFailedAttempt:({attemptNumber:o,error:i})=>{s.warn("%s attempt %d failed \u2014 retrying: %s",n,o,i.message)}})}function qn({config:e,error:r}){let n=oe(r);n==="UNAUTHENTICATED"&&(process.stderr.write(`ripplo: ${Ae()}
|
|
37
|
-
`),process.exit(1)),n==="FORBIDDEN"&&(process.stderr.write(`ripplo: ${Le({projectId:e.projectId,serverUrl:e.ripploServerUrl})}
|
|
38
|
-
`),process.exit(1))}import{graphql as dr}from"gql.tada";var Hn=dr(`
|
|
39
|
-
query OpenFindingsForRetire($projectId: String!) {
|
|
40
|
-
exploreFindings(projectId: $projectId, status: open) {
|
|
41
|
-
signature
|
|
42
|
-
reproRun {
|
|
43
|
-
reproJson
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
`),Un=dr(`
|
|
48
|
-
mutation RetireStaleFinding($projectId: String!, $signature: String!) {
|
|
49
|
-
retireStaleFinding(projectId: $projectId, signature: $signature)
|
|
50
|
-
}
|
|
51
|
-
`);async function cr({config:e,cwd:r,lockfile:n}){let o=(await u({config:e,document:Hn,variables:{projectId:e.projectId}})).exploreFindings,i=await T(r,n);if(i.isErr())return s.info({block:i.error.kind},"skipping finding retire until next compile"),!1;let a=await Wn(o,i.value);return a.length===0||(await Promise.all(a.map(l=>Mn(e,l))),s.info({count:a.length},"retired findings whose trail no longer replays")),!0}async function Wn(e,r){return(await Promise.all(e.map(async t=>await $n(t,r)?t.signature:null))).filter(t=>t!=null)}async function $n(e,r){let n=e.reproRun?.reproJson;if(n==null)return!1;let t=I.safeParse(JSON.parse(n));return t.success?(await xe(r,t.data)).kind==="unplannable":!1}function Mn(e,r){return u({config:e,document:Un,variables:{projectId:e.projectId,signature:r}})}var _n=6e4;function ur(e){let r={retiredKey:null,running:!1,stopped:!1},n=async()=>{if(!(r.running||r.stopped)){r.running=!0;try{r.retiredKey=await On(e,r.retiredKey)}catch(o){s.warn({err:o},"retire stale findings failed \u2014 retrying on next tick")}finally{r.running=!1}}},t={timer:setTimeout(function o(){n(),r.stopped||(t.timer=setTimeout(o,_n))},0)};return()=>{r.stopped=!0,clearTimeout(t.timer)}}async function On({config:e,cwd:r},n){let t=await h(r),o=pe();if(t==null||o==null)return n;let i=`${t}@${o}`;if(i===n)return n;let a=await k(r);return a.isErr()?n:await cr({config:e,cwd:r,lockfile:a.value})?i:n}import{Agent as Fn,fetch as jn}from"undici";var Nn=3e4;function pr(e=Nn){let r=new Fn({bodyTimeout:e});return(n,t)=>jn(n,{...t,dispatcher:r})}function fr(){let e=!0,r,n=null,t=()=>{n!=null&&(clearTimeout(n),n=null)};return{markUnhealthy:o=>{e=!1,r=o,t()},onConnected:()=>{t(),n=setTimeout(()=>{e=!0,r=void 0,n=null},1e4)},onConnecting:()=>{t()},snapshot:()=>({detail:r,ok:e})}}import Bn from"fs";import Sr from"net";import{err as kr,ok as Kn}from"neverthrow";async function hr({cwd:e,onConnection:r}){ae(e);let n=Te(e),t=await mr({onConnection:r,socketPath:n});return t.isOk()||t.error.kind!=="stale-candidate"?t.map(yr(n)).mapErr(gr(n)):await Qn(n)?kr({kind:"already-running",socketPath:n}):(wr(n),(await mr({onConnection:r,socketPath:n})).map(yr(n)).mapErr(gr(n)))}function Qn(e){return new Promise(r=>{let n=Sr.connect(e);n.once("connect",()=>{n.destroy(),r(!0)}),n.once("error",()=>{r(!1)})})}async function mr(e){let r=await zn(e);return r.kind==="listening"?Kn(r.server):kr(r.error)}function zn({onConnection:e,socketPath:r}){return new Promise(n=>{let t=Sr.createServer(e);t.once("error",o=>{n({error:o.code==="EADDRINUSE"?{kind:"stale-candidate"}:{kind:"listen-failed",message:o.message},kind:"failed"})}),t.listen(r,()=>{n({kind:"listening",server:t})})})}function yr(e){return r=>({socketPath:e,close:()=>{r.close(),wr(e)}})}function wr(e){Bn.rmSync(e,{force:!0})}function gr(e){return r=>r.kind==="stale-candidate"?{kind:"already-running",socketPath:e}:{kind:"bind-failed",message:r.message}}import{randomInt as tt,randomUUID as ot}from"crypto";function vr(){return{attempts:0,backoffUntil:0,consecutiveErrors:0,desired:{active:!1,localWorkers:rr,maxTrailLength:nr},executorLocal:!0,findings:0,lastUnhealthyReportAt:null,loading:!1,lockfile:{kind:"loading"},prevInteractiveActive:0,stopped:!1,trails:new Map}}function xr(e,r){if(e.stopped)return{effects:[],state:e};switch(r.kind){case"tick":return J(e,r.now,r.queue);case"desired-changed":return J({...e,desired:r.desired},r.now,r.queue);case"executor-changed":return{effects:[],state:{...e,executorLocal:r.local}};case"load-settled":return Gn(e,r.outcome);case"trail-started":return{effects:[],state:{...e,trails:new Map([...e.trails,[r.id,{startedAt:r.now}]])}};case"trail-settled":return Vn(e,r);case"stopped":return{effects:[{ids:[...e.trails.keys()],kind:"abort"}],state:{...e,stopped:!0,trails:new Map}}}}function Rr(e,r,n){return K(Er(e),Pr(e,r,n)).health}function J(e,r,n){let t=Jn(e,r,n),o={...e,...t,prevInteractiveActive:n.active},i=K(Er(o),Pr(o,r,n)),a=o.lockfile.kind!=="ready"&&!o.loading;return{effects:[...a?[{kind:"load"}]:[],...i.abortIds.length>0?[{ids:i.abortIds,kind:"abort"}]:[],...i.launchCount>0?[{count:i.launchCount,kind:"launch",maxTrailLength:o.desired.maxTrailLength}]:[]],state:{...o,loading:o.loading||a}}}function Jn(e,r,n){return n.active<e.prevInteractiveActive?{backoffUntil:Math.max(e.backoffUntil,r+B)}:{backoffUntil:e.backoffUntil}}function Gn(e,r){return r.kind==="blocked"?{effects:[],state:{...e,loading:!1,lockfile:{kind:"blocked",reason:r.reason}}}:{effects:[],state:{...e,consecutiveErrors:0,lastUnhealthyReportAt:null,loading:!1,lockfile:{kind:"ready"}}}}function Vn(e,r){let n=new Map([...e.trails].filter(([i])=>i!==r.id)),t=Xn({...e,trails:n},r.settled,r.now),o=J(t.state,r.now,r.queue);return{effects:[...t.effects,...o.effects],state:o.state}}function Xn(e,r,n){switch(r.kind){case"aborted":case"crashed":return{effects:[],state:e};case"app-unreachable":return br({category:"driver",now:n,state:e,subject:"app-unreachable"});case"error":return Yn(e,r.error,n);case"done":return et(e,r.result)}}function Yn(e,r,n){if(r.source==="lockfile-stale")return{effects:[{kind:"reload"}],state:{...e,loading:!0,lockfile:{kind:"loading"}}};let t=Se(r);return t==="trail"?{effects:[],state:{...e,consecutiveErrors:0,lastUnhealthyReportAt:null}}:br({category:t,now:n,state:e,subject:Zn(r)})}function Zn(e){switch(e.source){case"transport":case"config":return`${e.source}: ${e.detail}`;case"runtime":return`runtime: ${e.kind}`;case"empty-trail":case"bad-assign":case"lockfile-stale":return e.source}}function et(e,r){let n=r.kind==="finding";return{effects:[{finding:n,kind:"report",result:r}],state:{...e,attempts:e.attempts+1,consecutiveErrors:0,findings:e.findings+(n?1:0),lastUnhealthyReportAt:null}}}var rt=6,nt=2e4;function br({category:e,now:r,state:n,subject:t}){let o=n.consecutiveErrors+1;if(o<rt)return{effects:[],state:{...n,consecutiveErrors:o}};let i=e==="driver"?Math.max(n.backoffUntil,r+B):n.backoffUntil,a=n.lastUnhealthyReportAt==null||r-n.lastUnhealthyReportAt>=nt;return{effects:a?[{kind:"report-unhealthy",subject:t}]:[],state:{...n,backoffUntil:i,consecutiveErrors:o,lastUnhealthyReportAt:a?r:n.lastUnhealthyReportAt}}}function Er(e){return{enabled:e.desired.active,executorLocal:e.executorLocal,maxTrailLength:e.desired.maxTrailLength,workers:e.desired.localWorkers}}function Pr(e,r,n){return{backoffActive:r<e.backoffUntil,headedActive:n.headedActive>0,interactiveActive:n.active,interactiveQueued:n.queued,lockfile:e.lockfile,poolSize:n.poolSize,trails:[...e.trails.entries()].map(([t,o])=>({ageMs:r-o.startedAt,id:t}))}}function Tr(e){let r=it(e),n=lt(()=>{r.dispatch(x())});return j(()=>{r.dispatch(x())}),r.dispatch(x()),{notifyQueueChange:()=>{r.dispatch({kind:"executor-changed",local:e.executorIsLocal()}),r.dispatch(x())},setDesired:t=>{r.dispatch({desired:t,kind:"desired-changed",now:Date.now(),queue:D()})},status:()=>st(r.current()),stop:()=>{n(),j(null),r.dispatch({kind:"stopped"})}}}function it(e){let r={draining:!1,queue:[],runtime:at(e)},n=i=>{r.runtime=i(r.runtime)},t=i=>{r.queue.push(i),!r.draining&&(r.draining=!0,o(),r.draining=!1)},o=()=>{let i=r.queue.shift();if(i==null)return;let a=xr(r.runtime.state,i);n(l=>({...l,state:a.state})),a.effects.forEach(l=>{dt({commit:n,dispatch:t,effect:l,params:e,runtime:r.runtime})}),o()};return{dispatch:t,current:()=>r.runtime}}function at(e){return{controllers:new Map,prepared:null,state:{...vr(),executorLocal:e.executorIsLocal()}}}function st(e){return{explorer:Rr(e.state,Date.now(),D()),exploring:e.state.trails.size,progress:{attempts:e.state.attempts,findings:e.state.findings}}}function D(){let e=Ne();return{active:e.active,headedActive:e.headedActive,poolSize:e.poolSize,queued:e.queued}}function x(){return{kind:"tick",now:Date.now(),queue:D()}}function lt(e){let r={timer:setTimeout(function n(){e(),r.timer=setTimeout(n,N)},N)};return()=>{clearTimeout(r.timer)}}function dt({commit:e,dispatch:r,effect:n,params:t,runtime:o}){switch(n.kind){case"load":case"reload":{ct(t.cwd,o.prepared).then(({outcome:i,prepared:a})=>{e(l=>({...l,prepared:a})),r({kind:"load-settled",now:Date.now(),outcome:i}),r(x())});return}case"abort":{n.ids.forEach(i=>{o.controllers.get(i)?.abort()});return}case"launch":{Array.from({length:n.count}).forEach(()=>{ut({commit:e,dispatch:r,maxTrailLength:n.maxTrailLength,params:t,prepared:o.prepared})});return}case"report":{t.report({attempts:1,findings:n.finding?1:0,result:n.result}),n.finding&&s.info("exploration finding recorded");return}case"report-unhealthy":s.warn("exploration unhealthy after repeated infra errors (last: %s)",n.subject),t.reportUnhealthy()}}async function ct(e,r){let n=await h(e);if(n==null)return{outcome:{kind:"blocked",reason:"no-lockfile"},prepared:null};if(r?.rawHash===n)return{outcome:{kind:"ready",rawHash:n},prepared:r};let{result:t}=await fe(e);if(t.isErr())return{outcome:{kind:"blocked",reason:"load-failed"},prepared:null};let o=await T(e,t.value);if(o.isErr())return{outcome:{kind:"blocked",reason:o.error.kind},prepared:null};let i=await he(o.value);return i==null?{outcome:{kind:"blocked",reason:"load-failed"},prepared:null}:{outcome:{kind:"ready",rawHash:n},prepared:{exploration:i,rawHash:n}}}function ut({commit:e,dispatch:r,maxTrailLength:n,params:t,prepared:o}){if(o==null)return;let i=we({lockfileHash:o.rawHash,prepared:o.exploration,random:pt,strategy:{...ge("even"),maxAttemptLength:n}});if(i==null)return;let a=`explore:${ot()}`,l=new AbortController;e(d=>({...d,controllers:new Map([...d.controllers,[a,l]])})),r({id:a,kind:"trail-started",now:Date.now()}),C({headed:!1,workClass:"p3-explore",task:()=>ft({assign:i,params:t,signal:l.signal})}).catch(d=>(s.debug({err:d},"exploration trail crashed"),{kind:"crashed"})).then(d=>{e(c=>({...c,controllers:new Map([...c.controllers].filter(([p])=>p!==a))})),r({id:a,kind:"trail-settled",now:Date.now(),queue:D(),settled:d})})}var Ir=2**31;function pt(){return tt(Ir)/Ir}async function ft({assign:e,params:r,signal:n}){let t=await r.executeTrail(e,n);return t.kind==="aborted"?{kind:"aborted"}:t.kind==="error"?mt(r,t.error):{kind:"done",result:t}}async function mt(e,r){let n=await Pe(e.appUrl);return n!=null?(s.debug("exploration app probe failed: %s",n),{kind:"app-unreachable"}):(s.debug({error:r},"exploration trail error"),{error:r,kind:"error"})}import{graphql as Lt}from"gql.tada";import{connect as gt}from"net";import St from"ssh2";import{WebSocket as Lr,createWebSocketStream as kt}from"ws";var yt="ripplo-";function G(e){return Object.entries(e).map(([r,n])=>`${yt}${r}.${n}`)}var{Server:ht,utils:Cr}=St;function Ar(){let e=Cr.generateKeyPairSync("ed25519"),r=Cr.parseKey(e.private);if(r instanceof Error)throw r;return{fingerprint:r.getPublicSSH().toString("base64"),privateKey:e.private}}function Dr(e){return new Promise((r,n)=>{let t={closers:new Set,stopped:!1},o=new Lr(e.relayUrl,G({grant:e.grant,role:"daemon-control"}));o.on("open",()=>{s.info("cloud-executor relay control up"),r({stop:wt(o,t)})}),o.on("message",i=>{vt(e,t,i)}),o.on("close",(i,a)=>{t.stopped||s.warn({code:i,reason:a.toString()},"relay control closed"),Ct(e,t)}),o.on("error",i=>{n(i instanceof Error?i:new Error(String(i)))})})}function wt(e,r){return()=>(r.stopped=!0,r.closers.forEach(n=>{n()}),e.close(),Promise.resolve())}function vt(e,r,n){let t=xt(n);t!=null&&bt(e,r,t.pipeId)}function xt(e){try{let r=JSON.parse(Rt(e));return typeof r=="object"&&r!=null&&"signal"in r&&r.signal==="open-data"&&"pipeId"in r&&typeof r.pipeId=="string"?{pipeId:r.pipeId}:null}catch{return null}}function Rt(e){return Buffer.isBuffer(e)?e.toString("utf8"):Array.isArray(e)?Buffer.concat(e).toString("utf8"):Buffer.from(e).toString("utf8")}function bt(e,r,n){if(r.stopped)return;let t=new Lr(e.relayUrl,G({pipeId:n,role:"daemon-data"}));t.on("open",()=>{Et(e,r,t)}),t.on("error",o=>{s.warn({err:o},"cloud-executor relay data pipe error")})}function Et(e,r,n){let t=kt(n);t.on("error",()=>{});let o=new ht({hostKeys:[e.hostKey.privateKey]},a=>{a.on("error",l=>{s.warn({err:l},"cloud-executor ssh connection error")}),a.on("authentication",l=>{It(l,e.secret)}),a.on("ready",()=>{a.on("tcpip",(l,d,c)=>{Tt({accept:l,allowedPorts:e.allowedPorts,deny:d,destPort:c.destPort})})})}),i=()=>{n.close()};r.closers.add(i),n.on("close",()=>r.closers.delete(i)),Pt(o,t)}function Pt(e,r){e.injectSocket(r)}function It(e,r){if(e.method==="password"&&e.password===r){e.accept();return}if(e.method==="none"){e.reject(["password"]);return}e.reject()}function Tt({accept:e,allowedPorts:r,deny:n,destPort:t}){if(!r.includes(t)){n();return}let o=!1,i=gt({autoSelectFamily:!0,host:"localhost",port:t},()=>{o=!0;let a=e();a.on("error",()=>{}),i.pipe(a).pipe(i)});i.on("error",()=>{o||n()})}function Ct(e,r){r.stopped||(r.stopped=!0,r.closers.forEach(n=>{n()}),e.onFatal())}var At=Lt(`
|
|
52
|
-
mutation EnterCloudMode(
|
|
53
|
-
$devSessionId: String!
|
|
54
|
-
$localUrl: String!
|
|
55
|
-
$engineUrl: String!
|
|
56
|
-
$hostKeyFingerprint: String!
|
|
57
|
-
) {
|
|
58
|
-
enterCloudMode(
|
|
59
|
-
devSessionId: $devSessionId
|
|
60
|
-
localUrl: $localUrl
|
|
61
|
-
engineUrl: $engineUrl
|
|
62
|
-
hostKeyFingerprint: $hostKeyFingerprint
|
|
63
|
-
) {
|
|
64
|
-
__typename
|
|
65
|
-
... on RelaySession {
|
|
66
|
-
generation
|
|
67
|
-
grant
|
|
68
|
-
relayUrl
|
|
69
|
-
secret
|
|
70
|
-
session
|
|
71
|
-
}
|
|
72
|
-
... on DevSessionEndedError {
|
|
73
|
-
message
|
|
74
|
-
}
|
|
75
|
-
... on TunnelNotConfiguredError {
|
|
76
|
-
message
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
`),q=class extends Error{failure;constructor(r){super(r.kind),this.failure=r}};async function Hr({config:e,devSessionId:r,onFatal:n}){let t=Ar(),i=(await u({config:e,document:At,variables:{devSessionId:r,engineUrl:e.engineUrl,hostKeyFingerprint:t.fingerprint,localUrl:e.appUrl}})).enterCloudMode;if(i==null)throw new q({kind:"empty-response"});if(i.__typename!=="RelaySession")throw new q({kind:"server-error",typename:i.__typename});let a=await Dr({allowedPorts:[...new Set([qr(e.appUrl),qr(e.engineUrl)])],grant:i.grant,hostKey:t,onFatal:n,relayUrl:i.relayUrl,secret:i.secret});return s.info({session:i.session},"cloud-executor relay up"),{stop:a.stop}}function qr(e){let r=new URL(e);return r.port.length>0?Number(r.port):r.protocol==="https:"?443:80}var Ur=[1e3,3e3,8e3,15e3];function Wr(){return{attempt:0,desired:"local",devSessionId:null,stopped:!1,tunnel:"down"}}function $r(e,r){if(e.stopped)return{effects:[],state:e};switch(r.kind){case"requested":return qt(e,r.mode);case"connected":return V({...e,devSessionId:r.devSessionId},[]);case"tunnel-started":return Ht(e);case"tunnel-failed":case"tunnel-fatal":return Ut(e);case"retry-due":return e.tunnel==="down"?V(e,[]):{effects:[],state:e};case"stopped":return{effects:e.tunnel==="down"?[]:[{kind:"stop-tunnel"}],state:{...e,desired:"local",stopped:!0,tunnel:"down"}}}}function Dt(e){let r=Math.min(e,Ur.length-1),n=Ur[r];if(n==null)throw new Error("executor retry ladder is empty");return n}function qt(e,r){return r===e.desired?{effects:[],state:e}:V({...e,attempt:0,desired:r},[{kind:"notify-changed"}])}function V(e,r){return H(e)&&e.tunnel==="down"&&e.devSessionId!=null?{effects:[...r,{devSessionId:e.devSessionId,kind:"start-tunnel"}],state:{...e,tunnel:"starting"}}:!H(e)&&e.tunnel!=="down"?{effects:[...r,{kind:"stop-tunnel"}],state:{...e,tunnel:"down"}}:{effects:r,state:e}}function H(e){return e.desired==="cloud"&&e.devSessionId!=null&&!e.stopped}function Ht(e){return H(e)?{effects:[],state:{...e,attempt:0,tunnel:"up"}}:{effects:[{kind:"stop-tunnel"}],state:{...e,tunnel:"down"}}}function Ut(e){let r={...e,tunnel:"down"};return H(r)?{effects:[{delayMs:Dt(r.attempt),kind:"schedule-retry"}],state:{...r,attempt:r.attempt+1}}:{effects:[],state:r}}function Or(e){let r={draining:!1,io:Promise.resolve(),queue:[],retryTimer:null,state:Wr(),tunnel:null},n=t=>{r.queue.push(t),!r.draining&&(r.draining=!0,Fr(r,n,e),r.draining=!1)};return{connect:t=>{n({devSessionId:t,kind:"connected"})},current:()=>r.state.desired,request:t=>{n({kind:"requested",mode:t})},stop:async()=>{n({kind:"stopped"}),await r.io.catch(()=>{})}}}function Fr(e,r,n){let t=e.queue.shift();if(t==null)return;let o=$r(e.state,t);e.state=o.state,o.effects.forEach(i=>{Wt({cell:e,dispatch:r,effect:i,params:n})}),Fr(e,r,n)}function Wt({cell:e,dispatch:r,effect:n,params:t}){switch(n.kind){case"start-tunnel":{Mr(e,()=>$t({cell:e,devSessionId:n.devSessionId,dispatch:r,params:t}));return}case"stop-tunnel":{let o=e.tunnel;e.tunnel=null,_r(e),o!=null&&Mr(e,async()=>{await o.stop(),s.info("executor switched to local")});return}case"schedule-retry":{_r(e),s.warn({delayMs:n.delayMs},"cloud tunnel down; retrying \u2014 switch with npx ripplo executor local"),e.retryTimer=setTimeout(()=>{e.retryTimer=null,r({kind:"retry-due"})},n.delayMs);return}case"notify-changed":t.onChanged()}}async function $t({cell:e,devSessionId:r,dispatch:n,params:t}){try{let o=await Hr({config:t.config,devSessionId:r,onFatal:()=>{e.tunnel=null,n({kind:"tunnel-fatal"})}});e.tunnel=o,s.info("executor switched to cloud"),n({kind:"tunnel-started"})}catch(o){s.warn({err:o},"cloud tunnel failed to start; retrying in background"),n({kind:"tunnel-failed"})}}function Mr(e,r){e.io=e.io.then(r).catch(n=>{s.warn({err:n},"executor io failed")})}function _r(e){e.retryTimer!=null&&(clearTimeout(e.retryTimer),e.retryTimer=null)}import{readdir as Mt}from"fs/promises";import{existsSync as jr}from"fs";import X from"path";async function Nr({config:e,cwd:r}){let n=X.join(r,".ripplo","debug");await(await Mt(n,{withFileTypes:!0}).catch(()=>[])).filter(i=>i.isDirectory()).map(i=>i.name).filter(i=>!i.startsWith("replay-")&&!i.startsWith("explore-")&&!jr(X.join(n,i,ie))&&jr(X.join(n,i,"behavior.jsonl"))).reduce((i,a)=>i.then(()=>Ve({config:e,debugDir:n,runId:a}).catch(()=>{})),Promise.resolve(void 0))}import{fork as _t}from"child_process";import Br from"os";import{CancellationTokenSource as Kr,ResponseError as Qr}from"vscode-jsonrpc/node";function zr(e,r){return()=>{let n=_t(e,["run-worker"],{cwd:r,detached:!0,stdio:["ignore","inherit","inherit","ipc"]});return{connection:je(n),kill:()=>{Ot(n)},onExit:t=>{n.once("exit",t)}}}}function Jr(e){let r={closed:!1,devSessionId:e.devSessionId,lockfileProvider:e.lockfileProvider,nextId:0,size:e.initialSize,spawn:e.spawn,waiters:[],workers:[]};return Yr(r),{close:async()=>{r.closed=!0,await Promise.all([...r.workers].map(n=>Y(n,r)))},execute:(n,t)=>Nt(n,t,r),exploreTrail:(n,t)=>Kt(n,t,r),routeSpan:(n,t)=>{let o=r.workers.find(i=>i.runId===n);o?.worker.connection.sendNotification(Oe,{runId:n,span:t})},setSize:n=>{zt(n,r)}}}function Ot(e){let r=e.pid;if(r!=null)try{process.kill(-r,"SIGKILL")}catch{e.kill("SIGKILL")}}var Ft=1e4,jt=1e4,Gr=-32800;async function Nt(e,r,n){let t=await Vr(n);if(t.runId=e.runId,!t.alive)return U(t,n),{outcome:{detail:"worker-exit",kind:"error"},serverNotified:!1};let o=new Kr,i=()=>{o.cancel()};r.aborted&&o.cancel(),r.addEventListener("abort",i,{once:!0});try{let a=await t.worker.connection.sendRequest($e,e,o.token),l=Ue.safeParse(a);return l.success?l.data:{outcome:{detail:"bad-outcome-frame",kind:"error"},serverNotified:!1}}catch(a){return Bt(a,t)}finally{r.removeEventListener("abort",i),o.dispose(),U(t,n)}}async function Vr(e){let r=e.workers.find(n=>n.alive&&n.runId===void 0);if(r!=null)return r.runId="pending",await r.ready,r;if(e.workers.length<e.size){let n=Xr(e);return n.runId="pending",await n.ready,n}return new Promise(n=>{e.waiters.push(t=>{t.runId="pending",n(t)})})}function Xr(e){let r=e.spawn(),n={resolve:()=>{}},t={alive:!0,id:e.nextId,ready:new Promise(o=>{n.resolve=o,r.connection.onNotification(We,o)}),runId:void 0,worker:r};return e.nextId+=1,r.connection.onRequest(Me,()=>e.lockfileProvider()),r.onExit(()=>{t.alive=!1,e.workers=e.workers.filter(o=>o!==t),r.connection.dispose(),n.resolve()}),e.workers.push(t),t}function U(e,r){if(e.runId=void 0,!e.alive||r.closed)return;if(r.workers.length>r.size){Y(e,r);return}let n=r.waiters.shift();n?.(e)}async function Y(e,r){if(r.workers=r.workers.filter(o=>o!==e),!e.alive)return;let n=new Promise(o=>{e.worker.onExit(o)});await e.ready,await e.worker.connection.sendNotification(Fe).catch(()=>{});let t=setTimeout(()=>{e.worker.kill()},Ft);await n,clearTimeout(t)}function Bt(e,r){return e instanceof Qr&&e.code===Gr?{outcome:{detail:"aborted",kind:"error"},serverNotified:!1}:r.alive?{outcome:{detail:e instanceof Error?e.message:String(e),kind:"error"},serverNotified:!1}:{outcome:{detail:"worker-exit",kind:"error"},serverNotified:!1}}async function Kt(e,r,n){let t=await Vr(n);if(t.runId="explore",!t.alive)return U(t,n),{error:{detail:"worker-dead",source:"transport"},kind:"error"};let o=new Kr,i={cancel:()=>{}},a=()=>{o.cancel();let l=setTimeout(()=>{t.worker.kill()},jt);i.cancel=()=>{clearTimeout(l)}};r.aborted&&a(),r.addEventListener("abort",a,{once:!0});try{let l=await t.worker.connection.sendRequest(_e,{assign:e,devSessionId:n.devSessionId},o.token),d=ke.safeParse(l);return d.success?d.data:{error:{detail:"bad-result",source:"transport"},kind:"error"}}catch(l){return Qt(l)}finally{i.cancel(),r.removeEventListener("abort",a),o.dispose(),U(t,n)}}function Qt(e){return e instanceof Qr&&e.code===Gr?{kind:"aborted"}:{error:{detail:e instanceof Error?e.message.slice(0,120):"unknown",source:"transport"},kind:"error"}}function zt(e,r){r.size=e,e>Br.availableParallelism()&&s.warn({cores:Br.availableParallelism(),size:e},"worker pool size exceeds available cores");let n=r.workers.filter(o=>o.alive&&o.runId===void 0),t=r.workers.length-e;n.slice(0,Math.max(0,t)).forEach(o=>{Y(o,r)}),Yr(r)}function Yr(e){e.closed||Array.from({length:Math.max(0,e.size-e.workers.length)}).forEach(()=>{Xr(e)})}import W from"fs";import Jt from"p-retry";import{graphql as R}from"gql.tada";import{print as $}from"graphql";var Gt=R(`
|
|
81
|
-
query DaemonExploration($devSessionId: String!) {
|
|
82
|
-
exploration(devSessionId: $devSessionId) {
|
|
83
|
-
active
|
|
84
|
-
localWorkers
|
|
85
|
-
maxTrailLength
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
`),Vt=R(`
|
|
89
|
-
subscription WatchExplorationChanged($devSessionId: String!) {
|
|
90
|
-
explorationChanged(devSessionId: $devSessionId) {
|
|
91
|
-
exploration {
|
|
92
|
-
active
|
|
93
|
-
localWorkers
|
|
94
|
-
maxTrailLength
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
`);function Zr({config:e,devSessionId:r,exploration:n,sseClient:t}){return Jt(()=>Xt({config:e,devSessionId:r,exploration:n}),{factor:2,minTimeout:500,retries:6}).catch(o=>{s.warn({err:o},"initial exploration state read failed \u2014 explorer stays off")}),t.subscribe({query:$(Vt),variables:{devSessionId:r}},{complete:()=>{},error:o=>{s.error(o,"exploration subscription error")},next:o=>{en(n,o.data?.explorationChanged.exploration)}})}async function Xt({config:e,devSessionId:r,exploration:n}){let t=await u({config:e,document:Gt,variables:{devSessionId:r}});en(n,t.exploration)}function en(e,r){r!=null&&e.setDesired({active:r.active,localWorkers:r.localWorkers,maxTrailLength:r.maxTrailLength})}var Yt=R(`
|
|
99
|
-
subscription HooksPausedWatch($projectId: String!) {
|
|
100
|
-
hooksPausedRequested(projectId: $projectId) {
|
|
101
|
-
paused
|
|
102
|
-
projectId
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
`),Zt=R(`
|
|
106
|
-
subscription WatchLocalConcurrencyChanged {
|
|
107
|
-
myMaxLocalConcurrentRunsChanged
|
|
108
|
-
}
|
|
109
|
-
`);function rn({pool:e,sseClient:r}){return r.subscribe({query:$(Zt)},{complete:()=>{},error:n=>{s.error(n,"localConcurrency subscription error")},next:n=>{let t=n.data?.myMaxLocalConcurrentRunsChanged;t!=null&&(L(t),e.setSize(t))}})}var eo=R(`
|
|
110
|
-
subscription WatchExecutorChangeRequested($devSessionId: String!) {
|
|
111
|
-
executorChangeRequested(devSessionId: $devSessionId) {
|
|
112
|
-
executor
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
`);function nn({config:e,devSessionId:r,sseClient:n,switcher:t}){return t.connect(r),ro({config:e,switcher:t}),no({devSessionId:r,sseClient:n,switcher:t})}async function ro({config:e,switcher:r}){let n=await tr(e);if(n.isErr()){s.warn({error:n.error},"initial executor fetch failed, staying local");return}r.request(n.value)}function no({devSessionId:e,sseClient:r,switcher:n}){return r.subscribe({query:$(eo),variables:{devSessionId:e}},{complete:()=>{},error:t=>{s.error(t,"executor subscription error")},next:t=>{let o=t.data?.executorChangeRequested?.executor;o!=null&&n.request(o)}})}function tn({cwd:e,projectId:r,sseClient:n}){return n.subscribe({query:$(Yt),variables:{projectId:r}},{complete:()=>{},error:t=>{s.error(t,"hooksPaused subscription error")},next:t=>{let o=t.data?.hooksPausedRequested?.paused;o!=null&&Z({cwd:e,paused:o})}})}function Z({cwd:e,paused:r}){let n=Ie(e);if(r&&!W.existsSync(n)){W.writeFileSync(n,"");return}!r&&W.existsSync(n)&&W.unlinkSync(n)}var io=6e4,on=500,ao=15e3,so=ee(`
|
|
116
|
-
mutation HeartbeatDevSessionWatch($id: String!) {
|
|
117
|
-
heartbeatDevSession(id: $id) {
|
|
118
|
-
__typename
|
|
119
|
-
... on DevSession {
|
|
120
|
-
id
|
|
121
|
-
}
|
|
122
|
-
... on DevSessionEndedError {
|
|
123
|
-
message
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
`),lo=ee(`
|
|
128
|
-
query WatchLocalConcurrency {
|
|
129
|
-
currentUser {
|
|
130
|
-
id
|
|
131
|
-
maxLocalConcurrentRuns
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
`),co=ee(`
|
|
135
|
-
mutation EndDevSessionWatch($projectId: String!, $cwd: String!, $devSessionId: String) {
|
|
136
|
-
endDevSession(projectId: $projectId, cwd: $cwd, devSessionId: $devSessionId) {
|
|
137
|
-
__typename
|
|
138
|
-
... on DevSession {
|
|
139
|
-
id
|
|
140
|
-
}
|
|
141
|
-
... on NoActiveDevSessionError {
|
|
142
|
-
message
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
`);async function Ya(){bo();let e=xo(process.cwd()),r=e.cwd,n=ko(r),t={current:null},o={handler:()=>{}},i=Or({config:e,onChanged:()=>{o.handler()}}),a={handler:()=>{}},l=wo(),d=fr(),c=Ge({config:e,cwd:r,executor:i.current,ready:l.promise,explorationStatus:()=>t.current?.status()??uo(),onShutdownRequest:()=>{a.handler()},sseHealth:()=>d.snapshot()}),p=await vo({cwd:r,ipc:c,releasePid:n}),f=await E(r);f.isErr()&&(process.stderr.write(`ripplo: ${P(f.error)}
|
|
147
|
-
`),process.exit(1));let M=f.value,y=await z(()=>Qe({config:e,cwd:r,lockfile:M}),{config:e,label:"initial sync"}),m=await h(r);m!=null&&ze(m);let g=ur({config:e,cwd:r}),_=await Po(e);Z({cwd:r,paused:y.hooksPaused});let re=Be(r);re!=null&&s.info("watching branch %s in %s",re,r);let ne=oo({fetchFn:pr(),headers:{Authorization:`Bearer ${e.token}`},retry:ir,retryAttempts:1/0,url:`${e.ripploServerUrl}/graphql`});Nr({config:e,cwd:r}).catch(()=>{});let w=So({cwd:r,devSessionId:y.devSessionId,initialConcurrency:_}),b=fo({config:e,devSessionId:y.devSessionId,pool:w,executorIsLocal:()=>i.current()==="local"});t.current=b,o.handler=b.notifyQueueChange;let an=await mo({cwd:r,pool:w}),O=lr({claim:c.claim,config:e,cwd:r,initialId:y.devSessionId,pool:w,sseClient:ne,sseHealth:d}),sn=po({config:e,devSessionId:y.devSessionId,executorSwitch:i,exploration:b,pool:w,sseClient:ne}),ln=go({config:e,session:O}),dn=Ro();l.resolve(),yo(y.devSessionId);let cn=async()=>{ln(),dn(),g(),b.stop(),p.close(),O.stop(),sn(),await w.close(),await i.stop(),await an.stop().catch(()=>{}),await Promise.race([u({config:e,document:co,variables:{cwd:e.cwd,devSessionId:O.getId(),projectId:e.projectId}}).catch(()=>{}),new Promise(un=>setTimeout(un,3e3))]),n()},v=()=>{cn().finally(()=>process.exit(0))};a.handler=v,process.on("SIGINT",v),process.on("SIGTERM",v),process.on("SIGHUP",v),process.on("SIGBREAK",v),await new Promise(()=>{})}function uo(){return{explorer:{kind:"off"},exploring:0,progress:{attempts:0,findings:0}}}function po({config:e,devSessionId:r,executorSwitch:n,exploration:t,pool:o,sseClient:i}){let a=[nn({config:e,devSessionId:r,sseClient:i,switcher:n}),tn({cwd:e.cwd,projectId:e.projectId,sseClient:i}),rn({pool:o,sseClient:i}),Zr({config:e,devSessionId:r,exploration:t,sseClient:i})];return()=>{a.forEach(l=>{l()})}}function fo({config:e,devSessionId:r,executorIsLocal:n,pool:t}){return Tr({appUrl:e.appUrl,cwd:e.cwd,executorIsLocal:n,executeTrail:(o,i)=>t.exploreTrail(o,i),report:o=>{Ye({attempts:o.attempts,config:e,devSessionId:r,findings:o.findings,trail:Xe(o.result)}).catch(i=>{s.warn({error:i},"exploration progress report failed")})},reportUnhealthy:()=>{Ze(e,r).catch(o=>{s.warn({error:o},"exploration unhealthy report failed")})}})}function mo({cwd:e,pool:r}){return ve({localDir:to.join(e,".ripplo",".local"),writePortFile:!0,onRrwebBatch:()=>{},onSpan:n=>{let t=n.attributes["ripplo.run"];t!=null&&r.routeSpan(t,n)}})}function yo(e){process.stdout.write(`${De({devSessionId:e,version:ue()})}
|
|
148
|
-
`)}function go({config:e,session:r}){let n=async()=>{try{let o=await u({config:e,document:so,variables:{id:r.getId()}});o.heartbeatDevSession?.__typename==="DevSessionEndedError"&&(s.warn("dev session ended server-side (%s); re-registering",o.heartbeatDevSession.message),await r.reregister())}catch(o){s.warn("heartbeat failed: %s",o instanceof Error?o.message:String(o))}},t=setInterval(()=>{n()},ao);return()=>{clearInterval(t)}}function So({cwd:e,devSessionId:r,initialConcurrency:n}){return Jr({devSessionId:r,initialSize:n,spawn:zr(Io(),e),lockfileProvider:async()=>{let t=await k(e);if(t.isErr())return{unavailable:`daemon-load-failed:${t.error.kind}`};let o=await Re(e,t.value);return{lockfileJson:le(de,o)}}})}function ko(e){try{return Ee({cwd:e,onCompromised:ho})}catch(r){throw r instanceof be&&(process.stderr.write(`${qe({cwd:r.cwd,pid:r.pid})}
|
|
149
|
-
`),process.exit(1)),r}}function ho(){s.error("daemon lock compromised; shutting down"),process.stderr.write(`${He()}
|
|
150
|
-
`),process.exit(1)}function wo(){let e={handler:()=>{}};return{promise:new Promise(n=>{e.handler=n}),resolve:()=>{e.handler()}}}async function vo({cwd:e,ipc:r,releasePid:n}){return(await hr({cwd:e,onConnection:r.handleConnection})).match(o=>o,o=>{process.stderr.write(`${Ce(o)}
|
|
151
|
-
`),n(),process.exit(1)})}function xo(e){return S(e).match(r=>r,r=>{process.stderr.write(`${me(r)}
|
|
152
|
-
`),process.exit(1)})}function Ro(){F({maxRuns:on});let e=setInterval(()=>{F({maxRuns:on})},io);return()=>{clearInterval(e)}}function bo(){process.on("unhandledRejection",e=>{s.error({err:e},"unhandledRejection in watch; continuing")}),process.on("uncaughtException",e=>{s.error({err:e},"uncaughtException in watch; continuing")})}var Eo=4;async function Po(e){try{let n=(await u({config:e,document:lo,variables:void 0})).currentUser?.maxLocalConcurrentRuns;if(n!=null)return L(n),n}catch(r){s.warn({err:r},"failed to fetch local concurrency setting; using default")}return Eo}function Io(){let e=process.argv[1];if(e==null)throw new Error("cli entry unavailable");return e}export{Ya as runDaemon};
|
|
@@ -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{k as a,l as b,m as c,n as d}from"./chunk-AWPZTNYU.js";import"./chunk-IKYR3UCU.js";import"./chunk-KMZ3L5YA.js";export{a as LOCKFILE_RELATIVE_PATH,d as loadRipplo,b as loadRipploCached,c as loadRipploCachedWithFingerprint};
|
|
@@ -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 as t}from"./chunk-TOBC3SQA.js";import"./chunk-CB74TAUC.js";import{a as e}from"./chunk-GZ3M7PNW.js";import"./chunk-N2OBRCPQ.js";import"./chunk-JJ4QQPAV.js";import"./chunk-MOI4L3EX.js";import"./chunk-7VGCLQGP.js";import"./chunk-OQ6KNYPG.js";import"./chunk-OQ4TDIP3.js";import"./chunk-7W237JFM.js";import"./chunk-7WZ3VIUU.js";import"./chunk-TPHOSZAK.js";import"./chunk-FEHVIHVA.js";import{b as o}from"./chunk-KOKEEAEF.js";import"./chunk-7IIRERCW.js";import"./chunk-MHNGR6M7.js";import"./chunk-NY6EIQR4.js";import"./chunk-AWPZTNYU.js";import"./chunk-R3DZ6JPY.js";import"./chunk-IPSXNIXC.js";import"./chunk-LOEAZGYO.js";import"./chunk-CTTC4KKQ.js";import"./chunk-IKYR3UCU.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";var r=o({event:"PostToolUse",handlers:[t,e],note:i=>({hookSpecificOutput:{additionalContext:i,hookEventName:"PostToolUse"}})});export{r as postEditHook};
|
|
@@ -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-TOBC3SQA.js";import"./chunk-CB74TAUC.js";import"./chunk-MOI4L3EX.js";import"./chunk-7VGCLQGP.js";import"./chunk-OQ6KNYPG.js";import"./chunk-OQ4TDIP3.js";import"./chunk-7W237JFM.js";import"./chunk-7WZ3VIUU.js";import"./chunk-TPHOSZAK.js";import"./chunk-FEHVIHVA.js";import"./chunk-7IIRERCW.js";import"./chunk-MHNGR6M7.js";import"./chunk-NY6EIQR4.js";import"./chunk-AWPZTNYU.js";import"./chunk-R3DZ6JPY.js";import"./chunk-IPSXNIXC.js";import"./chunk-LOEAZGYO.js";import"./chunk-CTTC4KKQ.js";import"./chunk-IKYR3UCU.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";export{a as postEditAnalyze};
|
|
@@ -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-GZ3M7PNW.js";import"./chunk-N2OBRCPQ.js";import"./chunk-JJ4QQPAV.js";import"./chunk-7WZ3VIUU.js";import"./chunk-TPHOSZAK.js";import"./chunk-NY6EIQR4.js";import"./chunk-AWPZTNYU.js";import"./chunk-R3DZ6JPY.js";import"./chunk-IPSXNIXC.js";import"./chunk-LOEAZGYO.js";import"./chunk-CTTC4KKQ.js";import"./chunk-IKYR3UCU.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";export{a as postEditFlagStubs};
|
|
@@ -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{b as h}from"./chunk-OWN4P2K7.js";import{a as c}from"./chunk-7WZ3VIUU.js";import{f}from"./chunk-TPHOSZAK.js";import{c as y}from"./chunk-KOKEEAEF.js";import"./chunk-R3DZ6JPY.js";import"./chunk-IPSXNIXC.js";import"./chunk-LOEAZGYO.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";import{parse as m}from"shell-quote";import*as l from"zod/mini";var R=l.looseObject({command:l.string()}),k="run",S=new Set(["tail","head","less","more","wc","sort","uniq","awk","sed","grep"]),H=y("PreToolUse",e=>{if(e.tool_name!=="Bash")return;let n=R.safeParse(e.tool_input);if(!n.success)return;let r=x(n.data.command),o=b(r),s=g(r,"compile");if(o==null&&s==null)return;let{cwd:t}=e;if(!c(t)||!f(t))return;let a=E({cwd:t,gate:o,pipedCompile:s,sessionId:e.session_id,tokens:r});return a==null?void 0:O(a)});function E({cwd:e,gate:n,pipedCompile:r,sessionId:o,tokens:s}){if(n!=null&&!h(e,o,n.skill))return n.reason;let t=n?.kind==="run"?g(s,"run"):null;return t!=null?`Don't pipe \`ripplo run\` through \`${t}\` \u2014 buffering filters hide live progress, and killing the pipeline mid-run orphans the run on the server. Redirect to a file instead (\`npx ripplo run <id> > /tmp/run.log 2>&1\` and Read it), or use \`run_in_background: true\`.`:r!=null?`Don't pipe \`ripplo compile\` through \`${r}\` \u2014 the piped process holds stdio open and the command hangs long after compile finishes. Run \`npx ripplo compile\` bare, its output is already short.`:null}var P=new Set(["comment","resolve","clarify","dismiss","start"]);function b(e){return v(e)?null:w(e)?{kind:"tasks",reason:"Changing a task with `ripplo tasks` requires the `/ripplo:tasks` skill loaded first. Load `/ripplo:tasks` then retry \u2014 it carries how to route the request and the proof bar for app changes: a run that exercises the broken condition, plus the exact frame and element that prove the fix.",skill:"tasks"}:A(e)?{kind:"replay",reason:"Running `ripplo explore replay` requires the `/ripplo:tasks` skill loaded first. Load `/ripplo:tasks` then retry \u2014 it carries the finding-triage loop and the add-vs-weaken guardrail for resolving findings.",skill:"tasks"}:I(e)?{kind:"run",reason:"Running `ripplo run` requires the `/ripplo:run` skill loaded first. Load `/ripplo:run` then retry \u2014 it carries the artifact-read order, the no-grep-piping guidance, the failure decision tree, and the caught-bug filing contract.",skill:k}:null}function w(e){return e.some((n,r)=>{let o=e[r+2];return n==="ripplo"&&e[r+1]==="tasks"&&typeof o=="string"&&P.has(o)})}function A(e){return e.some((n,r)=>n==="ripplo"&&e[r+1]==="replay")}function I(e){return e.some((n,r)=>n==="ripplo"&&e[r+1]==="run")}var _=new Set(["--help","-h","--version"]);function v(e){return e.some(n=>typeof n=="string"&&_.has(n))}function x(e){try{return m(e)}catch{return[]}}function u(e,n){return typeof e=="object"&&"op"in e&&n.has(e.op)}var D=new Set(["|"]),T=new Set([";","&&","||","&"]),L=new Set([">",">>","&>","1>"]);function g(e,n){let r=e.findIndex((i,p)=>i==="ripplo"&&e[p+1]===n);if(r===-1)return null;let o=e.slice(r+1),s=o.findIndex(i=>u(i,T)),t=s===-1?o:o.slice(0,s);if(t.some(i=>u(i,L)))return null;let a=t.find((i,p)=>{let d=t[p-1];return d!=null&&u(d,D)&&typeof i=="string"&&S.has(i)});return typeof a=="string"?a:null}function O(e){return{hookSpecificOutput:{hookEventName:"PreToolUse",permissionDecision:"deny",permissionDecisionReason:e}}}export{g as bufferingAfter,H as preBashRunGateHook};
|
|
@@ -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 as e}from"./chunk-7EL64XR6.js";import{a as t}from"./chunk-SNU66GSR.js";import{a as i}from"./chunk-YQ2RBEOJ.js";import"./chunk-JJ4QQPAV.js";import"./chunk-OWN4P2K7.js";import"./chunk-7W237JFM.js";import"./chunk-7WZ3VIUU.js";import"./chunk-TPHOSZAK.js";import"./chunk-FEHVIHVA.js";import{b as o}from"./chunk-KOKEEAEF.js";import"./chunk-MHNGR6M7.js";import"./chunk-AWPZTNYU.js";import"./chunk-R3DZ6JPY.js";import"./chunk-IPSXNIXC.js";import"./chunk-LOEAZGYO.js";import"./chunk-IKYR3UCU.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";var d=o({event:"PreToolUse",handlers:[e,t,i],note:r=>({hookSpecificOutput:{additionalContext:r,hookEventName:"PreToolUse"}})});export{d as preEditHook};
|
|
@@ -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-SNU66GSR.js";import"./chunk-OWN4P2K7.js";import"./chunk-7WZ3VIUU.js";import"./chunk-TPHOSZAK.js";import"./chunk-R3DZ6JPY.js";import"./chunk-IPSXNIXC.js";import"./chunk-LOEAZGYO.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";export{a as preEditRipploSkillGate};
|
|
@@ -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-YQ2RBEOJ.js";import"./chunk-JJ4QQPAV.js";import"./chunk-7W237JFM.js";import"./chunk-7WZ3VIUU.js";import"./chunk-TPHOSZAK.js";import"./chunk-FEHVIHVA.js";import"./chunk-MHNGR6M7.js";import"./chunk-R3DZ6JPY.js";import"./chunk-IPSXNIXC.js";import"./chunk-LOEAZGYO.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";export{a as preEditScopeGate};
|
|
@@ -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 as e}from"./chunk-OAU4HUD2.js";import{a as r}from"./chunk-WNAVYV4P.js";import"./chunk-LB65USNP.js";import{a as i}from"./chunk-AGK6XOX2.js";import{a as t}from"./chunk-64OQXBRG.js";import"./chunk-CB74TAUC.js";import"./chunk-N2OBRCPQ.js";import"./chunk-JJ4QQPAV.js";import"./chunk-OWN4P2K7.js";import"./chunk-5E62BCS7.js";import"./chunk-OQ6KNYPG.js";import"./chunk-7W237JFM.js";import"./chunk-7WZ3VIUU.js";import"./chunk-TPHOSZAK.js";import"./chunk-FEHVIHVA.js";import{b as o}from"./chunk-KOKEEAEF.js";import"./chunk-MHNGR6M7.js";import"./chunk-R3DZ6JPY.js";import"./chunk-IPSXNIXC.js";import"./chunk-LOEAZGYO.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";var a=o({event:"UserPromptSubmit",handlers:[t,e,r,i],note:m=>({hookSpecificOutput:{additionalContext:m,hookEventName:"UserPromptSubmit"}})});export{a as promptSubmitHook};
|
|
@@ -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-OAU4HUD2.js";import"./chunk-CB74TAUC.js";import"./chunk-N2OBRCPQ.js";import"./chunk-JJ4QQPAV.js";import"./chunk-7W237JFM.js";import"./chunk-7WZ3VIUU.js";import"./chunk-TPHOSZAK.js";import"./chunk-FEHVIHVA.js";import"./chunk-MHNGR6M7.js";import"./chunk-R3DZ6JPY.js";import"./chunk-IPSXNIXC.js";import"./chunk-LOEAZGYO.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";export{a as scopeReminder};
|
|
@@ -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 as e}from"./chunk-7WZ3VIUU.js";import{c as t}from"./chunk-KOKEEAEF.js";import"./chunk-KMZ3L5YA.js";var s="# Ripplo \u2014 always-on session context\n\nEvery user-facing change in this repo ships with a deterministic, backend-aware test that proves it works end-to-end.\n\n## Load the right skill before acting \u2014 this is critical\n\nThe skills below carry the procedural detail you need to do Ripplo work correctly: entity/given modeling, parallel-isolation in engine impls, backend state assertions, scope discipline, artifact-read order on failures, parallelization patterns. **None of that is reproduced in this preamble** \u2014 only the always-on guardrails are. If you act on a Ripplo task without loading the matching skill, you will skip rules that exist to prevent specific past failure modes (cross-run data leakage, \"passing\" tests that never asserted backend state, etc.).\n\nMatch the task to a skill from the triage table \u2014 if unsure between two, load both. If completely unsure, load `/ripplo:discover` or `/ripplo:create`. Loading is cheap. Acting under-informed is not.\n\n**This is a hard requirement, not a suggestion.** Do NOT run `npx ripplo` commands, edit `.ripplo/` files, or reason about how Ripplo behaves before loading the matching skill. Agents that skip this consistently misuse the CLI, invent flags that don't exist, and hold wrong expectations about compile, run, facts, scope, and the explorer \u2014 every one of those failure modes traces back to acting without the skill loaded. The skill is the source of truth for its area. When in doubt, load it first.\n\nThe skills share one mental model \u2014 how Ripplo thinks (workflows declare state, facts carry across workflows, what compile/run/explorer each enforce), and the rules below are consequences of it. It loads automatically the first time you load a Ripplo skill this session, so load a skill before acting.\n\n## Skill triage\n\n- Load `/ripplo:setup` skill for instructions on initializing Ripplo in a project; `npx ripplo doctor` reports the engine endpoint missing.\n- Load `/ripplo:discover` skill for instructions on planning/stubbing test coverage for a new project or new feature area.\n- Load `/ripplo:create` skill for instructions on authoring a single workflow for a user flow.\n- Load `/ripplo:run` skill for instructions on executing tests, managing the testing scope this session is responsible for, diagnosing a failed run (read artifacts in `.ripplo/debug/<runId>/` before re-running), and filing caught app bugs.\n- Load `/ripplo:tasks` skill for instructions on picking up tasks \u2014 open-ended requests users anchor to a replay frame and element (fix a bug, change behavior, extend or write a workflow, ask a question) and background-explorer findings, which arrive as tasks of their own. It routes the request, lets you ask the user back with `clarify`, and for app changes enforces proof with an exact run, frame, and element. Load it whenever a tasks reminder fires, the user points you at a task or finding, or before any `npx ripplo tasks` command.\n\n## Universal rules\n\n- **Two background processes must be running before feature work.** (1) The app's dev server, so the app is reachable; (2) `npx ripplo daemon` (run `/ripplo:start` to spawn it, or invoke it directly via Bash with `run_in_background`), so the dev session is live. Without the daemon, dev-mode hooks don't arm (`ripplo run` will auto-start one if absent). Without the dev server, runs fail when they try to hit the app. `npx ripplo doctor` reports both. Manage the daemon with `npx ripplo daemon status` and `npx ripplo daemon stop` (stale holder, CLI update). Switch executor live with `npx ripplo executor <local|cloud>` \u2014 no restart. Don't use `daemon restart` as an agent \u2014 the start half never returns; stop, then respawn in the background.\n- **Two funnels.** Definitions \u2192 `createRipplo({ entities, singletons, workflows })` in `.ripplo/index.ts`. Implementations \u2192 `createEngine(ripplo, { entities: impls, singletons })` in your app server's `test/engine.ts` \u2014 one `seed`/`read` impl per entity. Never call either elsewhere. TS enforces exhaustiveness across both.\n- **\"Done\" = app code delivers the behavior AND a passing test proves it.** Both halves. Shipping without a test isn't done; writing a test against broken UI/API isn't done.\n- **Scope is your job.** For any non-trivial change, enumerate every flow it could affect and either `scope add` existing workflows or stub new ones with `workflow(\"Intent\")` (no body). Don't wait to be told.\n- **`scope remove` is never for size/effort.** Valid only when an item is genuinely out of scope (wrong flow, duplicate, user said \"not this session,\" feature cut). \"Too many stubs\" \u2192 parallelize with subagents. Don't present \"implement vs. remove\" as a neutral A/B.\n- **Stub gates are not a question.** When `stop-enforce` blocks on unimplemented stubs, implement them \u2014 don't ask the user \"implement or defer?\", don't pause hooks to skip them. The fix isn't done until the test is. New scaffolding (entity, given, engine impl) is in-scope work, not follow-up.\n- **You control the hooks \u2014 use it for rapid iteration, never to dodge work.** `npx ripplo hooks pause` silences pre-edit gates and stop-enforce, `npx ripplo hooks resume` re-arms them. Pause when a user asks you to iterate fast on a feature and the checks are noise mid-loop. When you pause, say so, and before you call the work done, resume and run the full check clean. Pausing to escape a failing test or an unimplemented stub is the one thing it's not for.\n- **Keep the explorer running all session.** The background explorer walks composed paths no workflow author wrote \u2014 it fills coverage gaps and catches bugs that only surface when actions combine. It is the third gate, not an extra. Check or toggle it with `npx ripplo explore [on|off]` (`--trail` sets path depth, `--workers` sets concurrency). Findings arrive as tasks \u2014 but the task watcher never fires on them, so poll `npx ripplo tasks list` to see new findings. Triage with `/ripplo:tasks` \u2014 an open finding blocks the session end like any task. Leave it on.\n- **A workflow is a user journey, not a single-mutation snippet.** One user intent, the real click path from a natural entry point, as many mutations as the intent takes \u2014 with `when` branches wherever seeded state changes an outcome along the path. Authoring method lives in `/ripplo:create`.\n- **Backend assertions are mandatory on mutations.** Every mutation step carries an `Entity.created/updated/deleted` in its `.expect(...)` \u2014 Ripplo checks your app's state against what the test expected. A UI-only check on a mutation ships the bug as green.\n- **Never weaken a test to make it pass.** No `contains`/regex for exact text, no removed assertions, no fabricated locators. App lacks an accessible name \u2192 add one to the app, don't fall back to `testId()`. App bug \u2192 report with evidence.\n- **Artifacts first, re-run last.** Failed runs write `.ripplo/debug/<runId>/behavior.jsonl` \u2014 a causal stream of actions, assertions, rrweb DOM, console, network, and server spans \u2014 and the run output renders the findings. Read them. Never pipe `ripplo run` through `grep`/`tail`/`head`. Form a hypothesis citing an event, make one change, re-run once.\n- **`.ripplo/ripplo.lock` is committed, never hand-edited.** `ripplo compile` regenerates it. Pre-commit runs `ripplo compile --check`.\n- **Scratch files live in `.ripplo/.local/`.** Never loose in `.ripplo/`.\n- **Worktrees are self-contained.** Each worktree has its own `.ripplo/` checkout, DevSession, scope, and debug artifacts. Auth and projectId are shared globally. Env files (typically gitignored) won't carry over to a fresh worktree \u2014 copy from main or point at a shared file. **If sibling worktrees run dev servers on different ports, the worktree's env file must update both `RIPPLO_APP_URL` and `RIPPLO_ENGINE_URL` to match the port that worktree's dev server is bound to** (e.g. main on `:3000`, this worktree on `:3001` \u2192 set `RIPPLO_APP_URL=http://localhost:3001` and `RIPPLO_ENGINE_URL=http://localhost:3001/ripplo` in the worktree's env file). Mismatched ports = `npx ripplo daemon` talks to the wrong server, runs silently fail or hit the sibling worktree's app.\n- **DSL locators are semantic.** Use `role`/`button`/`textbox`/`heading`/`link`; `testId` only when no ARIA role exists.\n- **New backend state?** Add an `entity(...)` in `.ripplo/entities/` and a `seed`/`read` impl in your app's engine funnel (TS flags the missing impl).\n- **Tasks demand exact proof, never hand-waving.** Resolving a task (`npx ripplo tasks resolve`) requires a run that exercises the broken condition plus a frame and element that show the fix \u2014 a red\u2192green assertion or before/after snapshots you Read, anchored on the resolving comment. Never conclude \"fixed\" from the diff, a toast, or a log string. If a run can't yet reach the broken condition, extend or write the workflow that does \u2014 don't resolve without proof. Load `/ripplo:tasks` for the loop.\n- **Know the task lifecycle.** A task is **open** (needs you), **needs clarification** (waiting on the user after your `clarify` \u2014 not your move), **resolved**, or **dismissed**. The task watcher (armed by `/ripplo:start`) wakes you live on a new user task, a reopen, or a user reply, even while idle \u2014 never on an explorer finding. Findings only show up when you poll `npx ripplo tasks list` (or at a stop-hook reminder). A **reopen** means your earlier fix didn't hold \u2014 revisit it, don't treat it as a fresh request. If the user resolves or dismisses a task you were working, it's no longer relevant \u2014 stop working it (you find out at your next stop, not via a wake). While hooks are on, you cannot end the session with a task open \u2014 clear each with resolve, clarify, or dismiss. Load `/ripplo:tasks` for the loop.\n\n## Key files\n\n- `.ripplo/index.ts` \u2014 `createRipplo` call.\n- `.ripplo/{entities,singletons,workflows}/index.ts` \u2014 registry aggregators. `.ripplo/givens.ts` + feature `givens.ts` \u2014 given builders.\n- `.ripplo/project.json` \u2014 project id + env-file pointers.\n- `<app>/src/test/engine.ts` \u2014 single impl funnel via `createEngine`.\n- `/ripplo:create` skill \u2014 DSL reference (entities, givens, workflows, backend assertions). Full primitive catalog at `node_modules/@ripplo/testing/DSL.md`.\n",r=t("SessionStart",o=>{if(e(o.cwd))return{hookSpecificOutput:{additionalContext:s,hookEventName:"SessionStart"}}});export{r as sessionPreambleHook};
|
package/dist/solve-worker.js
DELETED
package/dist/status-HPMHJBKH.js
DELETED
|
@@ -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-3UZZBLVA.js";import"./chunk-OES7HGNF.js";import"./chunk-22JUAYHM.js";import"./chunk-R4ZTRVDQ.js";import"./chunk-7IIRERCW.js";import"./chunk-MHNGR6M7.js";import"./chunk-NY6EIQR4.js";import"./chunk-AWPZTNYU.js";import"./chunk-IPSXNIXC.js";import"./chunk-LOEAZGYO.js";import"./chunk-GI65FUDI.js";import"./chunk-CTTC4KKQ.js";import"./chunk-IKYR3UCU.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";export{a as statusCommand};
|
|
@@ -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-AGK6XOX2.js";import"./chunk-CB74TAUC.js";import"./chunk-5E62BCS7.js";import"./chunk-OQ6KNYPG.js";import"./chunk-7W237JFM.js";import"./chunk-7WZ3VIUU.js";import"./chunk-TPHOSZAK.js";import"./chunk-FEHVIHVA.js";import"./chunk-MHNGR6M7.js";import"./chunk-R3DZ6JPY.js";import"./chunk-IPSXNIXC.js";import"./chunk-LOEAZGYO.js";import"./chunk-NNH3YVVO.js";import"./chunk-KMZ3L5YA.js";export{a as tasksReminder};
|