@kaeawc/auto-mobile 0.0.92 → 0.0.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-info.json +12 -12
- package/dist/schemas/test-plan.schema.json +370 -52
- package/dist/src/{chunk-jhnbfj19.js → chunk-00167wan.js} +5 -5
- package/dist/src/chunk-0jrrsnc9.js +6 -0
- package/dist/src/chunk-0n6swkwg.js +5 -0
- package/dist/src/chunk-0qsy1qsx.js +57 -0
- package/dist/src/chunk-11m8wj8j.js +237 -0
- package/dist/src/{chunk-4pfftt07.js → chunk-1p7xf5kb.js} +3 -3
- package/dist/src/chunk-23p5f095.js +4 -0
- package/dist/src/{chunk-a4k9rt7z.js → chunk-26k317v5.js} +3 -3
- package/dist/src/chunk-284ptqa4.js +7 -0
- package/dist/src/chunk-28re4xrg.js +4 -0
- package/dist/src/chunk-2f9rkmhx.js +5 -0
- package/dist/src/chunk-2fxdh48t.js +4 -0
- package/dist/src/chunk-2tbdrbt6.js +4 -0
- package/dist/src/chunk-2tqzq5qh.js +971 -0
- package/dist/src/chunk-32gvv9b4.js +21 -0
- package/dist/src/chunk-3f3t1x97.js +8 -0
- package/dist/src/chunk-3fspkbc7.js +4 -0
- package/dist/src/chunk-3qwrzxh0.js +11 -0
- package/dist/src/chunk-3sy6ahhz.js +26 -0
- package/dist/src/chunk-3vg455e6.js +4 -0
- package/dist/src/chunk-3xkpk44w.js +5 -0
- package/dist/src/chunk-3y6eykz9.js +4 -0
- package/dist/src/chunk-49bsqdx3.js +4 -0
- package/dist/src/chunk-4hw3665t.js +42 -0
- package/dist/src/chunk-58wzr3mt.js +5 -0
- package/dist/src/chunk-5d2hft6c.js +5 -0
- package/dist/src/chunk-5snsn9cf.js +4 -0
- package/dist/src/chunk-5tm9mn47.js +54 -0
- package/dist/src/chunk-5zc77a5t.js +4 -0
- package/dist/src/chunk-64j0majr.js +19 -0
- package/dist/src/chunk-65y8v4td.js +17 -0
- package/dist/src/chunk-6awz7vhq.js +5 -0
- package/dist/src/{chunk-stfzjr9y.js → chunk-6bznss4t.js} +5 -5
- package/dist/src/chunk-6ep7f5ge.js +4 -0
- package/dist/src/{chunk-0dfnyfkh.js → chunk-6wt9rgjf.js} +3 -3
- package/dist/src/chunk-6xmss8er.js +8 -0
- package/dist/src/chunk-710rxz9y.js +5 -0
- package/dist/src/chunk-7cs2da62.js +5 -0
- package/dist/src/chunk-7g103b54.js +4 -0
- package/dist/src/chunk-7j5vj4pa.js +4 -0
- package/dist/src/chunk-7rz9898k.js +5 -0
- package/dist/src/chunk-7tw8x05v.js +4 -0
- package/dist/src/chunk-7zy586cb.js +4 -0
- package/dist/src/{chunk-r0f1q783.js → chunk-8037tzzj.js} +3 -3
- package/dist/src/chunk-84nanf8s.js +5 -0
- package/dist/src/{chunk-950qcq1e.js → chunk-8g1922rp.js} +4 -4
- package/dist/src/chunk-8gvwcv2p.js +4 -0
- package/dist/src/{chunk-sz1a7p43.js → chunk-8ph29g99.js} +1 -1
- package/dist/src/chunk-8thrmfat.js +4 -0
- package/dist/src/chunk-8zgzzs7k.js +78 -0
- package/dist/src/chunk-97b1zmaq.js +4 -0
- package/dist/src/chunk-9fth9ayh.js +4 -0
- package/dist/src/chunk-9j6anhjr.js +4 -0
- package/dist/src/{chunk-w7zsh13a.js → chunk-aabchzxk.js} +4 -4
- package/dist/src/{chunk-wry6skrm.js → chunk-ayp07wbb.js} +1 -1
- package/dist/src/chunk-bfjwqk8q.js +4 -0
- package/dist/src/{chunk-jdqvcq0a.js → chunk-bfw6125s.js} +3 -3
- package/dist/src/chunk-bnhscm2n.js +4 -0
- package/dist/src/chunk-bxmsax22.js +5 -0
- package/dist/src/chunk-c1vs4g1n.js +4 -0
- package/dist/src/chunk-ct3e7yng.js +4 -0
- package/dist/src/{chunk-8en08r7q.js → chunk-cyy71ggq.js} +3 -3
- package/dist/src/chunk-ddzkz92z.js +4 -0
- package/dist/src/chunk-dgrbdpb7.js +9 -0
- package/dist/src/chunk-drdz8hee.js +5 -0
- package/dist/src/chunk-e98dqnc9.js +145 -0
- package/dist/src/chunk-eersndy7.js +5 -0
- package/dist/src/chunk-eggq53ks.js +4 -0
- package/dist/src/chunk-f2dya7cs.js +4 -0
- package/dist/src/chunk-fbakd6cw.js +4 -0
- package/dist/src/chunk-fgb98zjj.js +5 -0
- package/dist/src/chunk-fmpad823.js +5 -0
- package/dist/src/{chunk-v90es00d.js → chunk-g04bwyj3.js} +2 -2
- package/dist/src/chunk-g0xr8zw0.js +4 -0
- package/dist/src/chunk-g3rjs80x.js +4 -0
- package/dist/src/chunk-g78rtrfv.js +4 -0
- package/dist/src/{chunk-r20pe1nv.js → chunk-g7tmjbkt.js} +3 -3
- package/dist/src/chunk-gabgv3y5.js +4 -0
- package/dist/src/chunk-gmr45m8f.js +4 -0
- package/dist/src/chunk-gsyfebqj.js +4 -0
- package/dist/src/chunk-h5rpn9wr.js +247 -0
- package/dist/src/chunk-hb1x7v55.js +4 -0
- package/dist/src/chunk-hrfytkxh.js +168 -0
- package/dist/src/chunk-j4yjzbak.js +4 -0
- package/dist/src/chunk-jd6a5v6p.js +5 -0
- package/dist/src/chunk-jh6vhqzx.js +5 -0
- package/dist/src/chunk-kn5spq15.js +4 -0
- package/dist/src/{chunk-w2mwa0jk.js → chunk-m94qs0f0.js} +2 -2
- package/dist/src/chunk-mjrps0ac.js +7 -0
- package/dist/src/chunk-n03dmn5q.js +5 -0
- package/dist/src/chunk-n72qhwd9.js +4 -0
- package/dist/src/{chunk-km0dy5vc.js → chunk-ndt1ccxm.js} +9 -9
- package/dist/src/chunk-nr6y0n4y.js +5 -0
- package/dist/src/chunk-pcsen2vs.js +4 -0
- package/dist/src/chunk-ppfr0b8h.js +4 -0
- package/dist/src/chunk-q10bdnat.js +4 -0
- package/dist/src/chunk-q9xmq595.js +4 -0
- package/dist/src/{chunk-2v7tw1nj.js → chunk-qcxzr2my.js} +3 -3
- package/dist/src/chunk-qf6nynk6.js +7 -0
- package/dist/src/chunk-qyqypn28.js +5 -0
- package/dist/src/chunk-r2epb56s.js +4 -0
- package/dist/src/chunk-r5bxavdx.js +311 -0
- package/dist/src/{chunk-r14wwk37.js → chunk-r6z1eztj.js} +12 -12
- package/dist/src/{chunk-d57432wq.js → chunk-r7bpkgff.js} +2 -2
- package/dist/src/chunk-r8jf3d92.js +4 -0
- package/dist/src/{chunk-9rkfyt6q.js → chunk-rbpdk7m0.js} +3 -3
- package/dist/src/chunk-rc0dbypm.js +4 -0
- package/dist/src/chunk-rhcty4ms.js +4 -0
- package/dist/src/chunk-rpvckv3p.js +4 -0
- package/dist/src/{chunk-s1zq65ny.js → chunk-rqc9ap3x.js} +2 -2
- package/dist/src/chunk-rvvy1bte.js +7 -0
- package/dist/src/chunk-ry0mz41y.js +4 -0
- package/dist/src/{chunk-34zxqcmq.js → chunk-s3jc6cwp.js} +3 -3
- package/dist/src/chunk-sfv61xjb.js +6 -0
- package/dist/src/chunk-t6bfvfkg.js +4 -0
- package/dist/src/chunk-t6c8akcm.js +5 -0
- package/dist/src/chunk-t7w8rctc.js +4 -0
- package/dist/src/chunk-thbh3jew.js +5 -0
- package/dist/src/chunk-v2wd4n3e.js +5 -0
- package/dist/src/{chunk-zg67wjkh.js → chunk-v6pya0dm.js} +3 -3
- package/dist/src/chunk-vy3bwm1d.js +17 -0
- package/dist/src/chunk-w3vs79ex.js +27 -0
- package/dist/src/chunk-w4zga19f.js +4 -0
- package/dist/src/chunk-w5b2jwk3.js +14 -0
- package/dist/src/chunk-w7hkv422.js +5 -0
- package/dist/src/{chunk-qv2918jt.js → chunk-waqwcjyn.js} +2 -2
- package/dist/src/{chunk-b4cxdzwy.js → chunk-wbh8spm5.js} +7 -7
- package/dist/src/{chunk-ajsrz473.js → chunk-wyrkw6hw.js} +3 -3
- package/dist/src/chunk-xa73x2cx.js +5 -0
- package/dist/src/{chunk-eka89q3k.js → chunk-xgan0qqp.js} +1 -1
- package/dist/src/chunk-y2vs6jwg.js +4 -0
- package/dist/src/chunk-yattm52s.js +4 -0
- package/dist/src/{chunk-9y5bcy28.js → chunk-yb97j25b.js} +4 -4
- package/dist/src/{chunk-c9nk1r78.js → chunk-ybbtagbt.js} +3 -3
- package/dist/src/chunk-ycaj2sgf.js +9 -0
- package/dist/src/chunk-yf7ympyz.js +325 -0
- package/dist/src/chunk-yjawdzk8.js +4 -0
- package/dist/src/chunk-z637nqg8.js +11 -0
- package/dist/src/{chunk-0w1spptt.js → chunk-zgja5f3p.js} +4 -4
- package/dist/src/chunk-zs1sghs9.js +4 -0
- package/dist/src/daemon/processEntry.js +2 -2
- package/dist/src/index.js +4 -4
- package/dist/src/runtime/bunRuntimeGuard.js +2 -2
- package/dist/src/utils/workers/iosBundleExtractWorker.js +2 -2
- package/ios/CameraPosterInjection/Injection/CameraPosterInjection.m +466 -0
- package/package.json +3 -2
- package/schemas/test-plan.schema.json +370 -52
- package/dist/src/chunk-09442h7v.js +0 -4
- package/dist/src/chunk-0e4gm1kj.js +0 -5
- package/dist/src/chunk-0eb8576f.js +0 -4
- package/dist/src/chunk-0rjm4nx7.js +0 -5
- package/dist/src/chunk-1zmh2eak.js +0 -4
- package/dist/src/chunk-28k63ha3.js +0 -5
- package/dist/src/chunk-2d4wmp8b.js +0 -4
- package/dist/src/chunk-2e6s75qv.js +0 -78
- package/dist/src/chunk-32jpxz2y.js +0 -323
- package/dist/src/chunk-3jmvqygr.js +0 -238
- package/dist/src/chunk-3swvfhqt.js +0 -5
- package/dist/src/chunk-44bt78m9.js +0 -5
- package/dist/src/chunk-488vt2bp.js +0 -4
- package/dist/src/chunk-4fgdhcwx.js +0 -5
- package/dist/src/chunk-4jp2se4w.js +0 -4
- package/dist/src/chunk-4vhr9e4t.js +0 -4
- package/dist/src/chunk-4xd6zs3y.js +0 -15
- package/dist/src/chunk-51567pg8.js +0 -4
- package/dist/src/chunk-5agqsfev.js +0 -4
- package/dist/src/chunk-5d706gmr.js +0 -4
- package/dist/src/chunk-5kd4rqk7.js +0 -5
- package/dist/src/chunk-61t538bm.js +0 -4
- package/dist/src/chunk-6d3mmqxt.js +0 -54
- package/dist/src/chunk-6hyt398x.js +0 -5
- package/dist/src/chunk-6mnr8kpm.js +0 -4
- package/dist/src/chunk-79q5xsdc.js +0 -42
- package/dist/src/chunk-7bdgand3.js +0 -4
- package/dist/src/chunk-84cp9dw5.js +0 -4
- package/dist/src/chunk-86f2h5ww.js +0 -5
- package/dist/src/chunk-8cghfzb2.js +0 -19
- package/dist/src/chunk-9tf2p9y9.js +0 -5
- package/dist/src/chunk-a2sc4jm0.js +0 -5
- package/dist/src/chunk-aa5ng3d1.js +0 -4
- package/dist/src/chunk-b3h0a6ca.js +0 -4
- package/dist/src/chunk-b6a737qt.js +0 -4
- package/dist/src/chunk-bn64x5z5.js +0 -5
- package/dist/src/chunk-bvh649za.js +0 -12
- package/dist/src/chunk-c9tyfg4j.js +0 -26
- package/dist/src/chunk-cfsdfqnm.js +0 -4
- package/dist/src/chunk-cxyf04jc.js +0 -7
- package/dist/src/chunk-da08tx5v.js +0 -4
- package/dist/src/chunk-f2tc08m2.js +0 -4
- package/dist/src/chunk-f8tnk179.js +0 -5
- package/dist/src/chunk-f9s1kkhx.js +0 -5
- package/dist/src/chunk-fbp8a4rx.js +0 -4
- package/dist/src/chunk-fd2z0sze.js +0 -4
- package/dist/src/chunk-fk927f4q.js +0 -54
- package/dist/src/chunk-fxmr3a0f.js +0 -4
- package/dist/src/chunk-gaqwhd44.js +0 -4
- package/dist/src/chunk-ggtd5x5a.js +0 -5
- package/dist/src/chunk-gndcfrm7.js +0 -4
- package/dist/src/chunk-h3n4adc6.js +0 -310
- package/dist/src/chunk-h5pjbb83.js +0 -4
- package/dist/src/chunk-hgnnh302.js +0 -4
- package/dist/src/chunk-hmke8nhx.js +0 -5
- package/dist/src/chunk-j2bx12hn.js +0 -4
- package/dist/src/chunk-j70y1a2g.js +0 -4
- package/dist/src/chunk-js1jpyxp.js +0 -6
- package/dist/src/chunk-kbjq0qvb.js +0 -4
- package/dist/src/chunk-kfwx57xd.js +0 -4
- package/dist/src/chunk-kzwctna2.js +0 -4
- package/dist/src/chunk-m9ehyehy.js +0 -4
- package/dist/src/chunk-mct91p1f.js +0 -4
- package/dist/src/chunk-mf9spd4g.js +0 -5
- package/dist/src/chunk-mgrcansb.js +0 -4
- package/dist/src/chunk-mqc1d0eb.js +0 -6
- package/dist/src/chunk-n1zmpk0z.js +0 -4
- package/dist/src/chunk-ncyjf63g.js +0 -4
- package/dist/src/chunk-nr64d21q.js +0 -973
- package/dist/src/chunk-nwm2pq5v.js +0 -168
- package/dist/src/chunk-pm06b05d.js +0 -9
- package/dist/src/chunk-q50s00ry.js +0 -4
- package/dist/src/chunk-qwye1958.js +0 -14
- package/dist/src/chunk-r8z9pfve.js +0 -5
- package/dist/src/chunk-rdpgkjf6.js +0 -4
- package/dist/src/chunk-rkr0dks9.js +0 -5
- package/dist/src/chunk-rn84t3sf.js +0 -11
- package/dist/src/chunk-s123kn7n.js +0 -4
- package/dist/src/chunk-s73qn3fx.js +0 -4
- package/dist/src/chunk-sjn0nj4p.js +0 -5
- package/dist/src/chunk-sns0c35v.js +0 -7
- package/dist/src/chunk-t4dr5c8v.js +0 -8
- package/dist/src/chunk-tc8k9c1j.js +0 -4
- package/dist/src/chunk-teznhase.js +0 -4
- package/dist/src/chunk-ty9xgmz4.js +0 -4
- package/dist/src/chunk-tyazf3sk.js +0 -145
- package/dist/src/chunk-v6npjrjm.js +0 -5
- package/dist/src/chunk-vbvtzkwz.js +0 -5
- package/dist/src/chunk-vefd8qee.js +0 -8
- package/dist/src/chunk-vs9r72ta.js +0 -17
- package/dist/src/chunk-w88k0bgr.js +0 -4
- package/dist/src/chunk-wzdt0enk.js +0 -4
- package/dist/src/chunk-xhhv854c.js +0 -4
- package/dist/src/chunk-y58270hd.js +0 -4
- package/dist/src/chunk-yk0hmbex.js +0 -4
- package/dist/src/chunk-ympy4fdz.js +0 -28
- package/dist/src/chunk-yw436axy.js +0 -4
- package/dist/src/chunk-z04jrpjy.js +0 -5
- package/dist/src/chunk-z2xznczw.js +0 -4
- package/dist/src/chunk-z4xnrgps.js +0 -4
- package/dist/src/chunk-z7csyszv.js +0 -4
- package/dist/src/chunk-z8t0v07j.js +0 -11
- package/dist/src/chunk-z916af47.js +0 -228
- package/dist/src/chunk-zcr8he8q.js +0 -5
- package/dist/src/chunk-zd9vmkzn.js +0 -9
- package/dist/src/chunk-zj939v0h.js +0 -5
- package/dist/src/chunk-zkdjwtc1.js +0 -4
- package/dist/src/chunk-zkv5kzt6.js +0 -4
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{i}from"./chunk-z637nqg8.js";import{Bt,az,Pn,mk}from"./chunk-r5bxavdx.js";import{Fc,fX}from"./chunk-qf6nynk6.js";var p={getConfig:Fc,updateConfig:fX};class o extends mk{constructor(n=Bt(az),s=i,t=p){super({socketPath:n,timer:s,serverName:"DeviceSnapshot",responseType:"device_snapshot_response",evictedKey:"evictedSnapshotNames",methodLabel:"device snapshot",getConfig:t.getConfig,updateConfig:async(r)=>{let{config:c,evictedSnapshotNames:a}=await t.updateConfig(r);return{config:c,evictedItems:a}}})}}var e=new Pn;function xK(){return e.instance?.getSocketPath()??Bt(az)}async function CK(){await e.start(()=>new o)}async function DK(){await e.stop()}
|
|
3
|
+
export{xK,CK,DK};
|
|
4
|
+
|
|
5
|
+
//# debugId=C1F98C3703F7AA7864756E2164756E21
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{kv,To}from"./chunk-zgja5f3p.js";import"./chunk-rvvy1bte.js";import"./chunk-r5bxavdx.js";import"./chunk-yf7ympyz.js";import"./chunk-4hw3665t.js";import"./chunk-5d2hft6c.js";import"./chunk-z637nqg8.js";import"./chunk-58wzr3mt.js";export{To as Keyboard,kv as KeyboardOpenIndeterminateError};
|
|
3
|
+
|
|
4
|
+
//# debugId=1DA890034BDC566D64756E2164756E21
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{AK,TK,kK}from"./chunk-nr6y0n4y.js";import"./chunk-w3vs79ex.js";import"./chunk-g7tmjbkt.js";import"./chunk-v2wd4n3e.js";import"./chunk-284ptqa4.js";import"./chunk-0qsy1qsx.js";import"./chunk-v6pya0dm.js";import"./chunk-r5bxavdx.js";import"./chunk-yf7ympyz.js";import"./chunk-4hw3665t.js";import"./chunk-5d2hft6c.js";import"./chunk-z637nqg8.js";import"./chunk-58wzr3mt.js";export{AK as getVideoRecordingSocketPath,TK as startVideoRecordingSocketServer,kK as stopVideoRecordingSocketServer};
|
|
3
|
+
|
|
4
|
+
//# debugId=A26057DA898086EC64756E2164756E21
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{i,AP,we,e}from"./chunk-z637nqg8.js";import{R,o,N,ft,Eu,ve,Mg,Ak,Kn,h$,Ai,xu,Ee,df,Nj,hr,qr,Ji,ba,bd,lr,Ce}from"./chunk-r5bxavdx.js";import{vc}from"./chunk-3xkpk44w.js";import{r,t}from"./chunk-rbpdk7m0.js";function oW(n,a){return a==="unique"?{...n,selectionStrategy:"unique"}:n}var O={"nested-container":(n)=>n.selectionStrategy==="unique"||!!n.container?.container,"nested-container-defined":(n)=>n.selectionStrategy==="unique"||n.container?.container!==void 0,"any-container":(n)=>!!n.container||n.selectionStrategy==="unique","swipe-container-options":(n)=>n.container!==void 0||n.selectionStrategy!==void 0||n.index!==void 0,"swipe-look-for-options":(n)=>n.container!==void 0||n.selectionStrategy!==void 0};function ds(n,a="nested-container"){return!!n&&O[a](n)}var Ca="AutoMobile could not determine the current TalkBack state; using the last known state when available, otherwise the default gesture. TalkBack may have changed.";async function Wh(n,a,s,l){if(n.resolveTalkBackStateWithConfirmation)return n.resolveTalkBackStateWithConfirmation(a,s,l);let c=await n.resolveTalkBackState(a,s,l);return{talkBack:c,unconfirmed:c===null}}var I=new Set(["tap","toggle","long-press"]);function S(n,a){return n.left<=a.left&&n.top<=a.top&&n.right>=a.right&&n.bottom>=a.bottom}function D(n){if(!n.bounds||!n.affordances.some((a)=>I.has(a)))return null;return{bounds:n.bounds,label:n.label?.trim().toLowerCase()??""}}function T(n,a){return n.label.length>0&&n.label===a.label&&S(a.bounds,n.bounds)}function h(n){let a=n.map(D).filter((s)=>s!==null);return a.filter((s,l)=>!a.some((c,d)=>d!==l&&T(s,c)&&(!S(s.bounds,c.bounds)||d<l))).length}function hte(n,a,s){return s&&n==="ios"&&a.tappableMatches!==void 0?{...s,tappableMatches:a.tappableMatches}:s}function x(n){return n.text!==void 0||n.sibling?.text!==void 0}function P(n,a,s){return{viewport:s,readingOrder:a.readingOrder,action:a.intentAction??(a.selectionIntent==="focus-input"?"focus-input":"tap"),allowHintFallback:a.allowHintFallback,preferToggle:a.selectionIntent==="toggle",preferTap:a.intentAction==="inspect"&&(a.selectionIntent==="tap"||a.selectionIntent==="toggle"),requireBounds:a.intentAction==="inspect",excludeImeKeys:x(n)}}function F(n,a){if(n.match!==void 0)return n;let s=n.sibling;if(s){let l=s.text!==void 0?a.fuzzyMatch===!0:a.partialMatch===!0;return{...n,sibling:s.match||!l?s:{...s,match:"contains"}}}if(n.text!==void 0)return a.partialMatch===!1?{...n,match:"exact"}:n;return n.elementId!==void 0&&a.partialMatch===!0?{...n,match:"contains"}:n}class vr{resolver;projection;options;constructor(n=new lr,a=new ve,s={}){this.resolver=n;this.projection=a;this.options=s}selectByText(n,a,s={}){return this.select(n,{text:a},s)}selectByResourceId(n,a,s={}){return this.select(n,{elementId:a},s)}selectByTestTag(n,a,s={}){return this.select(n,{testTag:a},s)}selectClickable(n,a={}){return this.select(n,{},{...a,intentAction:a.intentAction??"tap"})}selectClickableSiblingOfText(n,a,s={}){return this.select(n,{sibling:{text:a}},s)}selectClickableSiblingOfResourceId(n,a,s={}){return this.select(n,{sibling:{elementId:a}},s)}hasContainer(n,a){return this.containerResolution(n,a).scope!==void 0}resolveContainer(n,a,s){return this.resolveContainerMatch(n,a,s)?.element}resolveContainerMatch(n,a,s){let l=this.containerResolution(n,a,s).scope;if(!l)return;let c=we(l.source)["visible-to-user"];return{element:l.element,...typeof c==="boolean"?{visibleToUser:c}:{}}}containerResolution(n,a,s){let l=this.resolver.resolve({id:"container",nodes:this.selectionNodes(n,{})},{container:oW(a,s)},{action:"inspect"});if(l.error&&!bd(l.error))throw new t(l.error,{containerFailure:l.containerFailure});return l}viewport(n,a={}){let s=qr(n);if(s?.searchRaw||s?.platform!=="ios"&&ft(n)!==n)return;return Ji(n,{...this.options,...a})}select(n,a,s={}){let l=F(a,s),c={id:this.snapshotId(n),nodes:this.selectionNodes(n,s)},d={...l,index:s.index,selectionStrategy:s.strategy,caseSensitive:s.caseSensitive,container:s.container??void 0},m=P(l,s,this.viewport(n,s.screenSizeOptions)),p=this.resolver.resolve(c,d,m);if(this.checkResolutionError(p,s),!p.error&&!p.chosen&&s.intentAction==="long-press")return this.select(n,a,{...s,intentAction:"tap"});let u=this.selectionResult(p,n,s.strategy??"first",l);return m.excludeImeKeys&&!p.error&&!p.chosen?this.flagKeyboardOnlyMatch(u,c,d,m):u}flagKeyboardOnlyMatch(n,a,s,l){let c=this.resolver.resolve(a,s,{...l,excludeImeKeys:!1});return c.chosen&&Eu(c.chosen)?{...n,onlyKeyboardKeyMatch:!0}:n}checkResolutionError(n,a){let{error:s,containerFailure:l}=n;if(!s)return;if(ds({container:a.container,selectionStrategy:a.strategy},"nested-container-defined")||!bd(s))throw new t(s,{containerFailure:l})}snapshotId(n){return qr(n)?.captureId??n.frameContext??String(n.updatedAt??"capture")}selectionNodes(n,a){let s=qr(n),l=s?.platform==="ios"?n:ft(n),c=l&&l!==n?this.projection.project(l):s?.nodes??this.projection.project(n);if(!a.scrollableContainer)return c;let d=a.container?this.resolver.resolve({id:"scroll-scope",nodes:c},a.container,{action:"inspect"}).chosen:void 0,m=(p)=>{let u=p;while(u){if(u.affordances.includes("scroll"))return!0;if(u===d)break;u=u.parentIndex===void 0?void 0:c[u.parentIndex]}return!1};return c.map((p)=>m(p)?p:{...p,affordances:[]})}selectionResult(n,a,s,l){let c=ba(n,l),d=h(n.candidates);return{element:n.chosen?.element??null,...c?.element?{matchedElement:c.element}:{},...qr(a)?{captureId:qr(a).captureId}:{},indexInMatches:n.indexInMatches??-1,totalMatches:n.candidates.length,...d>0&&d<n.candidates.length?{tappableMatches:d}:{},strategy:s}}}async function B(n,a,s){o(s);try{let l=await Nj(n,a,s);if(o(s),!l.length)e.debug("Android action display list is empty; retaining prior-observation guidance.");return l}catch(l){if(o(s),l instanceof Error&&l.name==="AbortError")throw l;return e.warn(`Unable to read Android action displays: ${r(l)}`,l),[]}}function M(n,a){return n.map((s)=>{let l=s.uniqueId&&Mg(s.uniqueId)||s.logicalId,c=a.displays?.panels.find((d)=>d.key===l)?.role;return{key:l,role:c}})}async function H(n,a,s,l){if(n.platform!=="android"||!n.displays?.panels.length)return;let c=await B(s,n.displays.panels,l);if(!c.length||Ak(c,a.key)!==void 0)return;let d=M(c,n),m=n.displays.postures.length>0;throw new Kn(AP(a.key,a.role,d,{hasPostures:m,pinned:xu()!==void 0}),{disconnectedPanel:{panel:a,connectedPanels:d.map(({key:p,role:u})=>({key:p,role:u??"unknown"})),hasPostures:m}})}function sW(n,a=R){let s=a.renderedDisplaySessions();if(!s)return;let l=s.getSessionForDevice(n);if(!l)return;let c=s.getLastRenderedDisplayKey(l);return c===void 0?void 0:{display:{key:c,generation:s.getLastRenderedDisplayGeneration(l)},displayRevision:s.getLastRenderedDisplayRevision(l)}}function K(n,a,s){return s(n)?.displayRevision??a.displayRevision}function V(n,a,s,l){let c=s?.display.generation??l.identityRevision(n),d=()=>df(c,l.identityRevision(n),l.currentObservedPanel(n)?.key);return{stale:d,assertCurrent:()=>{if(l.revision(n)!==a)throw d()},assertCallerCurrent:(u)=>{if(u!==void 0&&u!==a)throw d()}}}async function gte(n,a,s){return a===void 0?void 0:(await U(n,a,s)).displayId}async function U(n,a,s){let l=(s.lastRenderedObservation??sW)(n.deviceId),c=Ai(n,a,{focusedPanelKey:l?.display.key,activePanelKey:l?.display.key,posture:l?.display.posture}),d=await new hr(i).logicalIdForPanel(n,s.adb,c.key,s.signal);return{key:c.key,displayId:d}}async function z(n,a,s,l){if(n.platform==="ios")return;if(n.platform!=="android")throw new t(`Unsupported platform: ${n.platform}`);return new hr(i).logicalIdForPanel(n,a,s,l)}function g(n,a){return{...vc,display:n,freshness:"cached-ok",signal:a}}async function Wi(n,a,s,{adb:l,...c}){let{lastRenderedObservation:d=sW,signal:m,transitions:p=Ce}=c,u=d(n.deviceId),v=p.revision(n.deviceId),{stale:E,assertCurrent:f,assertCallerCurrent:w}=V(n.deviceId,v,u,p),y=Ai(n,a,{focusedPanelKey:u?.display.key,activePanelKey:u?.display.key,posture:u?.display.posture}),C=n.platform==="ios"?await s.execute(g(a,m)):void 0;if(u?.display.key!==y.key)throw await H(n,y,l,m),new t(`Coordinates for display "${y.key}" require a prior observation of that panel. Re-observe display "${y.key}" and retry.`);let A=K(n.deviceId,u,d);w(A);let b=C??await s.execute(g(a,m));if(f(),b.display.key!==y.key)throw E();let k=await z(n,l,y.key,m);return f(),{observation:b,displayId:k,followUpDisplay:h$(n,a,y.key),assertCurrent:f}}async function bL(n,a,s,{stale:l,signal:c}){o(c),n.assertCurrent();try{let{hierarchy:d}=await a.capture({freshness:"fresh",searchRaw:N.isRawElementSearchEnabled(),timeoutMs:s,signal:c,displayId:n.displayId??0});if(n.assertCurrent(),d.displayId!==(n.displayId??0))throw l();return d}catch(d){if(n.assertCurrent(),d instanceof Ee)throw d;return o(c),e.warn(`Fresh display capture failed: ${r(d)}`,d),null}}
|
|
3
|
+
export{oW,ds,Ca,Wh,hte,vr,sW,gte,Wi,bL};
|
|
4
|
+
|
|
5
|
+
//# debugId=33C64491957B0F3264756E2164756E21
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
function D(e,r,t,o,n){if(o==="m")throw TypeError("Private method is not writable");if(o==="a"&&!n)throw TypeError("Private accessor was defined without a setter");if(typeof r==="function"?e!==r||!n:!r.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?n.call(e,t):n?n.value=t:r.set(e,t),t}function d(e,r,t,o){if(t==="a"&&!o)throw TypeError("Private accessor was defined without a getter");if(typeof r==="function"?e!==r||!o:!r.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?o:t==="a"?o.call(e):o?o.value:r.get(e)}function pu(e){return typeof e==="object"&&e!==null&&(("name"in e)&&e.name==="AbortError"||("message"in e)&&String(e.message).includes("FetchRequestCanceledException"))}var fw=(e)=>{if(e instanceof Error)return e;if(typeof e==="object"&&e!==null){try{let r=Object.prototype.toString.call(e);if(r==="[object Error]"||r==="[object DOMException]"){let t=Error(e.message,e.cause?{cause:e.cause}:{});if(e.stack)t.stack=e.stack;if(e.cause&&!t.cause)t.cause=e.cause;if(e.name)t.name=e.name;return t}}catch{}try{return Error(JSON.stringify(e))}catch{}}return Error(e)};var Z=(()=>{class e extends Error{constructor(r,t){super(r,t);Object.defineProperty(this,"name",{value:new.target._errorName,writable:!0,configurable:!0})}}return e._errorName="AnthropicError",e})(),Qr=(()=>{class e extends Z{constructor(r,t,o,n,a){super(`${e.makeMessage(r,t,o)}`);this.status=r,this.headers=n,this.requestID=n?.get("request-id"),this.workspaceID=n?.get("anthropic-workspace-id"),this.error=t;let s=t??{};this.apiMessage=s.error?.message??null,this.type=a??s.error?.type??null;let l=s.error?.details?.error_code;this.errorCode=typeof l==="string"?l:null,this.details=s.error?.details??null}static makeMessage(r,t,o){let n=t?.message?typeof t.message==="string"?t.message:JSON.stringify(t.message):t?JSON.stringify(t):o;if(r&&n)return`${r} ${n}`;if(r)return`${r} status code (no body)`;if(n)return n;return"(no status code or body)"}static generate(r,t,o,n){if(!r||!n)return new yv({message:o,cause:fw(t)});let a=t,s=b.get(r);if(s)return new s(r,a,o,n);if(r>=500)return new yT(r,a,o,n);return new e(r,a,o,n)}}return e._errorName="APIError",e})(),ea=(()=>{class e extends Qr{constructor({message:r}={}){super(void 0,void 0,r||"Request was aborted.",void 0)}}return e._errorName="APIUserAbortError",e})(),yv=(()=>{class e extends Qr{constructor({message:r,cause:t}){super(void 0,void 0,r||"Connection error.",void 0);if(t)this.cause=t}}return e._errorName="APIConnectionError",e})(),rL=(()=>{class e extends yv{constructor({message:r}={}){super({message:r??"Request timed out."})}}return e._errorName="APIConnectionTimeoutError",e})(),Xee=(()=>{class e extends Z{constructor(r,{cause:t}={}){super(r??"Retryable error.");if(t!==void 0)this.cause=t}}return e._errorName="RetryableError",e})(),He=(()=>{class e extends Qr{}return e._errorName="BadRequestError",e})(),W5=(()=>{class e extends Qr{}return e._errorName="AuthenticationError",e})(),as=(()=>{class e extends Qr{}return e._errorName="PermissionDeniedError",e})(),Em=(()=>{class e extends Qr{}return e._errorName="NotFoundError",e})(),z5=(()=>{class e extends Qr{}return e._errorName="RequestTimeoutError",e})(),Xc=(()=>{class e extends Qr{}return e._errorName="ConflictError",e})(),nL=(()=>{class e extends Qr{}return e._errorName="PreconditionFailedError",e})(),iL=(()=>{class e extends Qr{}return e._errorName="ContentTooLargeError",e})(),j5=(()=>{class e extends Qr{}return e._errorName="UnprocessableEntityError",e})(),PC=(()=>{class e extends Qr{}return e._errorName="RateLimitError",e})(),K5=(()=>{class e extends Qr{}return e._errorName="RequestHeaderFieldsTooLargeError",e})(),G5=(()=>{class e extends Qr{}return e._errorName="ClientClosedRequestError",e})(),yT=(()=>{class e extends Qr{}return e._errorName="InternalServerError",e})(),Y5=(()=>{class e extends yT{}return e._errorName="NotImplementedError",e})(),hw=(()=>{class e extends yT{}return e._errorName="ServiceUnavailableError",e})(),J5=(()=>{class e extends yT{}return e._errorName="GatewayTimeoutError",e})(),oL=(()=>{class e extends yT{}return e._errorName="OverloadedError",e})(),b=new Map([[400,He],[401,W5],[403,as],[404,Em],[408,z5],[409,Xc],[412,nL],[413,iL],[422,j5],[429,PC],[431,K5],[499,G5],[501,Y5],[503,hw],[504,J5],[529,oL]]);var E=/^[a-z][a-z0-9+.-]*:/i,Zee=(e)=>E.test(e),yc=(e)=>(yc=Array.isArray,yc(e)),sL=yc;function AC(e){if(typeof e!=="object")return{};return e??{}}function X5(e){if(!e)return!0;for(let r in e)return!1;return!0}function x(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function qo(e){return e!=null&&typeof e==="object"&&!Array.isArray(e)}var NV=(e,r)=>{if(typeof r!=="number"||!Number.isInteger(r))throw new Z(`${e} must be an integer`);if(r<0)throw new Z(`${e} must be a positive integer`);return r},vT=["apiKey","authToken","credentials","config","profile"];var FV=(e)=>{try{return JSON.parse(e)}catch(r){return}};function np(e){}function Qee(e){let r=0;for(let n of e)r+=n.length;let t=new Uint8Array(r),o=0;for(let n of e)t.set(n,o),o+=n.length;return t}var m;function gw(e){let r;return(m??(r=new globalThis.TextEncoder,m=r.encode.bind(r)))(e)}var y;function yw(e){let r;return(y??(r=new globalThis.TextDecoder,y=r.decode.bind(r)))(e)}var Ft=(e)=>{if(typeof globalThis.process<"u")return globalThis.process.env?.[e]?.trim()||void 0;if(typeof globalThis.Deno<"u")return globalThis.Deno.env?.get?.(e)?.trim()||void 0;return};var aL="warn",u={off:0,error:200,warn:300,info:400,debug:500},LV=(e,r,t)=>{if(!e)return;if(x(u,e))return e;t.warn(`${r} was set to ${JSON.stringify(e)}, expected one of ${JSON.stringify(Object.keys(u))}`);return};function i(){}function c(e,r,t){if(!r||u[e]>u[t])return i;else return r[e].bind(r)}var _={error:i,warn:i,info:i,debug:i},g=new WeakMap;function f(e,r){let t=g.get(e);if(t&&t[0]===r)return t[1];let o={error:c("error",e,r),warn:c("warn",e,r),info:c("info",e,r),debug:c("debug",e,r)};return g.set(e,[r,o]),o}function tt(e){let r=e.logger,t=e.logLevel??"off";if(!r)return _;return f(r,t)}var h,p;function BV(){let e=Ft("ANTHROPIC_LOG");if(!p||e!==h)h=e,p=f(console,LV(e,"process.env['ANTHROPIC_LOG']",f(console,aL))??aL);return p}function Hh(e,r,t){if(e.debug===i)return;e.debug(r,N(t))}var N=(e)=>{if(e.options)e.options={...e.options},delete e.options.headers,delete e.options.__span;if(e.headers)e.headers=Object.fromEntries((e.headers instanceof Headers?[...e.headers]:Object.entries(e.headers)).map(([r,t])=>[r,r.toLowerCase()==="authorization"||r.toLowerCase()==="proxy-authorization"||r.toLowerCase()==="api-key"||r.toLowerCase()==="x-api-key"||r.toLowerCase()==="x-amz-security-token"||r.toLowerCase()==="cookie"||r.toLowerCase()==="set-cookie"?"***":t]));if("retryOfRequestLogID"in e){if(e.retryOfRequestLogID)e.retryOf=e.retryOfRequestLogID;delete e.retryOfRequestLogID}return e};function ta(e,r){return e instanceof Qr&&e.status===r}function O(e){return e instanceof Qr&&typeof e.status==="number"&&e.status>=400&&e.status<500}function bT(e){return O(e)&&!ta(e,408)&&!ta(e,409)&&!ta(e,429)}function $V(e,r,t){return Math.min(r*2**e,t)}function ete(e,r){return e+Math.random()*(r-e)}function UV(e){return e*(1-Math.random()*0.25)}var Ot=(()=>{class e extends Error{constructor(r){let t=typeof r==="string"?r:r.map((o)=>{if(o.type==="text")return o.text;return`[${o.type}]`}).join(" ");super(t);this.name="ToolError",this.content=r}}return e})();var Z5=15000,w=5000;function cL(e,r){if(!(e>=w))throw new Z(`${r} must be at least ${w}ms (got ${e}); to run without memory sync, pass \`memorySyncIntervalMs: null\` to the worker instead`)}function ST(){let e,r;return{promise:new Promise((o,n)=>{e=o,r=n}),resolve:e,reject:r}}
|
|
3
|
+
export{D,d,pu,fw,Z,Qr,ea,yv,rL,Xee,He,W5,as,Em,z5,Xc,nL,iL,j5,PC,K5,G5,yT,Y5,hw,J5,oL,Zee,yc,sL,AC,X5,qo,NV,vT,FV,np,Qee,gw,yw,Ft,aL,LV,tt,BV,Hh,ta,bT,$V,ete,UV,Ot,Z5,cL,ST};
|
|
4
|
+
|
|
5
|
+
//# debugId=B1F61A82ABE1B0FE64756E2164756E21
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{e}from"./chunk-
|
|
2
|
+
import{e}from"./chunk-z637nqg8.js";import"./chunk-58wzr3mt.js";import{DS,Y7}from"./chunk-hrfytkxh.js";import{r,t,u}from"./chunk-rbpdk7m0.js";import{parseArgs as d}from"util";var m="Usage: auto-mobile --ios-templates build --runtime <identifier> --device-type <identifier> | clean (--all | --stale | --runtime <identifier> [--device-type <identifier>]) [--force]";function f(n){let[i,...a]=n;if(i!=="build"&&i!=="clean")throw new t(m);let o;try{({values:o}=d({args:a,strict:!0,options:{stale:{type:"boolean"},all:{type:"boolean"},force:{type:"boolean"},runtime:{type:"string"},"device-type":{type:"string"}}}))}catch(s){throw u(s,m)}let l={action:i,all:o.all??!1,force:o.force??!1,...o.stale?{stale:!0}:{},runtime:o.runtime,deviceType:o["device-type"]};return y(l),l}function y(n){if(n.action==="build"&&(n.all||n.force))throw new t(m);if(Number(n.all)+Number(Boolean(n.stale))+Number(Boolean(n.runtime))!==1||n.deviceType&&!n.runtime||n.action==="build"&&(!n.deviceType||n.stale))throw new t(m)}var c=130;async function T(){let{createTemplateMaintenance:n}=await import("./chunk-yattm52s.js"),{dependencies:i,cleanup:a}=n();return{platform:process.platform,onInterrupt:(o)=>{DS(async()=>{Y7(c),await o()})},write:(o)=>console.log(o),build:(o,l)=>i.builder.build(o,l),clean:(o)=>a.clean(o),resolveKey:(o,l)=>S(i,o,l)}}async function E(n,i){try{if(n.includes("--help")||n.includes("-h"))return(i?.write??console.log)(m),0;let a=f(n);if((i?.platform??process.platform)!=="darwin")throw new t("iOS templates require macOS.");let o=i??await T();return await w(a,o)}catch(a){return e.warn(`iOS template command failed: ${r(a)}`,a),(i?.write??console.error)(r(a)),1}}async function w(n,i){let a=await g(n,i);if(n.action==="build"&&a){let{result:l,interrupted:s}=await b(i,a);if(s)return i.write(JSON.stringify({result:"interrupted"})),c;return i.write(JSON.stringify({result:l})),l==="ready"?0:1}let o=a?{key:a}:n.stale?{stale:!0}:n.runtime?{runtime:n.runtime}:{all:!0};return await i.clean({...o,force:n.force}),i.write(JSON.stringify({result:"cleaned"})),0}async function g(n,i){return n.runtime&&n.deviceType?i.resolveKey(n.runtime,n.deviceType):void 0}async function b(n,i){let a=new AbortController,o=Promise.resolve();n.onInterrupt(async()=>{a.abort(Error("Template build interrupted")),await o});let l=n.build(i,a.signal);return o=l.catch((p)=>{e.debug(`iOS template build ended with an error: ${r(p)}`)}),{result:await l,interrupted:a.signal.aborted}}async function S(n,i,a){let o=await n.client.getCatalogChecked();if(!o.deviceTypes.some((s)=>s.identifier===a))throw new t(`Unknown simulator device type ${a}`);let l=o.runtimes.find((s)=>s.identifier===i);if(!l)throw new t(`Runtime ${i} is not installed. List installed simulator runtimes first.`);return{runtime:i,deviceType:a,runtimeBuild:l.buildversion,xcodeBuild:await n.xcode.readBuild(),profile:n.profile()}}export{E as runIosTemplatesCommand};
|
|
3
3
|
|
|
4
|
-
//# debugId=
|
|
4
|
+
//# debugId=F402D5EE3A12E9BD64756E2164756E21
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Gl,ON,Ta,Yl,MN,NN,Jl,sq,hA,FN,Sr,Cs,LN,BN,Xl,$N,NI,s4,UN,oc,nm,wS,$y,Jt,Zl,Uy,BI}from"./chunk-0jrrsnc9.js";import"./chunk-hrfytkxh.js";import"./chunk-2f9rkmhx.js";import"./chunk-0n6swkwg.js";import"./chunk-00167wan.js";import"./chunk-284ptqa4.js";import"./chunk-w7hkv422.js";import"./chunk-7rz9898k.js";import"./chunk-fgb98zjj.js";import"./chunk-3xkpk44w.js";import"./chunk-0qsy1qsx.js";import"./chunk-rvvy1bte.js";import"./chunk-r5bxavdx.js";import"./chunk-yf7ympyz.js";import"./chunk-4hw3665t.js";import"./chunk-5d2hft6c.js";import"./chunk-z637nqg8.js";import"./chunk-58wzr3mt.js";export{ON as ANONYMOUS_ACQUISITION_SESSION_SOURCE,NN as BIOMETRIC_ENROLLMENT_RESTORE_TIMEOUT_MS,sq as CLOCK_RESTORE_TIMEOUT_MS,nm as DEVICE_RESTART_RECOVERY_WINDOW_MS,$y as DaemonSessionCreationRejectedError,MN as KEEP_SCREEN_AWAKE_RESTORE_TIMEOUT_MS,hA as NETWORK_CONDITION_RESTORE_RETRY_DELAY_MS,Jl as NETWORK_CONDITION_RESTORE_TIMEOUT_MS,UN as PLAN_AUTO_RELEASE_REASON,Ta as PLAN_LABEL_SESSION_SOURCE,Xl as SESSION_CREATE_WAIT_TIMEOUT_MS,$N as SESSION_CREATION_TIMEOUT_REASON,s4 as SESSION_REHYDRATION_CONCURRENCY,NI as SESSION_REHYDRATION_DEADLINE_MS,Cs as SESSION_RELEASE_PERSIST_TIMEOUT_MS,LN as SESSION_RELEASE_STUCK_DEADLINE_MS,Sr as SESSION_RELEASE_TEARDOWN_CAP_MS,FN as SESSION_SETUP_DRAIN_TIMEOUT_MS,BI as SessionManager,Zl as SessionRecoveryIdentityLossError,Jt as TerminalSessionError,Uy as UnissuedSessionError,wS as getDefaultPreFirstHeartbeatGraceMs,oc as getDefaultSessionHeartbeatTimeoutMs,BN as getSessionReleaseStuckDeadlineMs,Yl as isAnonymousAcquisitionSession,Gl as releaseWasForced};
|
|
3
|
+
|
|
4
|
+
//# debugId=4FE1073D07ECA96464756E2164756E21
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{e}from"./chunk-
|
|
3
|
-
export{
|
|
2
|
+
import{e}from"./chunk-z637nqg8.js";import{m,_e}from"./chunk-yf7ympyz.js";import{mo,y,T,j,g,Rd,ne,A}from"./chunk-4hw3665t.js";var s={qualityPreset:"low",targetBitrateKbps:1000,maxThroughputMbps:5,fps:15,maxArchiveSizeMb:100,format:"mp4"},V=["low","medium","high"],b=["mp4"];function f(i){return typeof i==="object"&&i!==null&&!Array.isArray(i)}function Uf(i){let n=f(i)?i:{},t=v(n.qualityPreset),r=d(n.maxThroughputMbps,s.maxThroughputMbps,!0),o=d(n.targetBitrateKbps,s.targetBitrateKbps,!0),a=F1(o,r),c=d(n.fps,s.fps,!1),R=d(n.maxArchiveSizeMb,s.maxArchiveSizeMb,!0),w=P(n.format),S=O(n.resolution);return{qualityPreset:t,targetBitrateKbps:a,maxThroughputMbps:r,fps:c,maxArchiveSizeMb:R,format:w,resolution:S}}function v(i){return V.find((n)=>n===i)??s.qualityPreset}function P(i){return b.find((n)=>n===i)??s.format}function O(i){if(!f(i))return;let n=d(i.width,0,!1),t=d(i.height,0,!1);if(n<=0||t<=0)return;return{width:n,height:t}}function F1(i,n){if(!(n>0))return i;let t=Math.max(1,Math.floor(n*1000));return Math.min(i,t)}function d(i,n,t){if(i===null||i===void 0)return n;let r=typeof i==="number"?i:Number(i);if(!Number.isFinite(r)||r<=0)return n;return t?r:Math.round(r)}var XE=["completed","interrupted","incomplete"];function BG(i,n){return i===n||i.startsWith(`${n}:`)}function pX(i,n){if(!n.ownerSessionUuid)return!0;return i===void 0||i===n.ownerSessionUuid||n.ownerBaseSessionUuid!==void 0&&BG(i,n.ownerBaseSessionUuid)}function D(i){try{let n=JSON.parse(i);return Uf(n)}catch(n){return e.warn(`[VideoRecordingRepository] Failed to parse config JSON: ${n}`),Uf(null)}}var N=g({appearedAtSeconds:T().finite(),disappearedAtSeconds:T().finite().optional()}),x=mo((i)=>{if(typeof i!=="object"||i===null)return!1;let{description:n,shape:t,timeline:r}=i;return(n===void 0||typeof n==="string")&&typeof t==="object"&&t!==null&&typeof t.type==="string"&&N.safeParse(r).success}),l=g({key:y(),role:A(["inner","cover","rear","external","cluster","overlay","virtual","unknown"])}),I=j(g({atMs:T().finite(),from:l,to:l}));function U(i){if(!i)return;let n;try{n=JSON.parse(i)}catch(r){e.warn(`[VideoRecordingRepository] Failed to parse highlights JSON: ${r}`);return}if(!Array.isArray(n))return;return n.flatMap((r)=>{let o=x.safeParse(r);if(!o.success)return e.warn(`[VideoRecordingRepository] Dropping invalid highlight: ${o.error.message}`),[];return[o.data]})}var k=j(y());function u(i,n){if(!i)return;try{return n.parse(JSON.parse(i))}catch(t){e.warn(`[VideoRecordingRepository] Failed to parse display metadata: ${t}`);return}}var B=Rd("kind",[g({kind:ne("android-screenrecord"),deviceTempPath:y().min(1),devicePid:T().int().positive().max(Number.MAX_SAFE_INTEGER).optional()}),g({kind:ne("ios-host-recorder"),hostPid:T().int().positive().max(Number.MAX_SAFE_INTEGER),hostStartToken:y().min(1),udid:y().min(1),capturePath:y().optional()})]);function M(i){if(i===null)return;try{return B.parse(JSON.parse(i))}catch(n){e.warn("[VideoRecordingRepository] Failed to parse capture teardown descriptor",n);return}}function _(i){return{recordingId:i.recording_id,recorderDaemonSessionId:i.recorder_daemon_session_id??void 0,captureTeardown:M(i.capture_teardown_json),deviceId:i.device_id,platform:i.platform,status:i.status,outputName:i.output_name??void 0,fileName:i.file_name,filePath:i.file_path,format:i.format,sizeBytes:i.size_bytes,durationMs:i.duration_ms??void 0,codec:i.codec??void 0,createdAt:i.created_at,startedAt:i.started_at,endedAt:i.ended_at??void 0,lastAccessedAt:i.last_accessed_at,config:D(i.config_json),highlights:U(i.highlights_json??null),recordedPanel:u(i.recorded_panel_json,l),transitions:u(i.display_transitions_json,I),...i.has_audio_track===null?{}:{hasAudioTrack:i.has_audio_track===1},warnings:u(i.warnings_json,k),ownerSessionUuid:i.owner_session_uuid??void 0}}function p(i,n){let{ownerSessionUuid:t,ownerBaseSessionUuid:r}=n;if(!t)return i;return i.where((o)=>{let a=[o("owner_session_uuid","is",null),o("owner_session_uuid","=",t)];if(r!==void 0){let c=`${r}:`;a.push(o("owner_session_uuid","=",r),o(m`substr(owner_session_uuid, 1, ${Array.from(c).length})`,"=",c))}return o.or(a)})}function F(i,n){let t=Array.from(n.excludeLiveDaemonSessionIds??[]);if(t.length>0){if(t.filter((o)=>o!==n.ownDaemonSessionId).length>0)i=i.where("recorder_daemon_session_id","is not",null);i=i.where((o)=>o.or([o("recorder_daemon_session_id","is",null),o("recorder_daemon_session_id","not in",t)])).where((o)=>o.not(o.exists(o.selectFrom("device_sessions").select("session_uuid").whereRef("device_sessions.session_uuid","=","video_recordings.owner_session_uuid").where("device_sessions.status","=","active").where("device_sessions.daemon_session_id","in",t))))}if(n.hasCaptureTeardown)i=i.where("capture_teardown_json","is not",null);return i}function C(i){let n={};if(J(n,i),z(n,i),Q(n,i),Object.hasOwn(i,"captureTeardown"))n.capture_teardown_json=i.captureTeardown?JSON.stringify(i.captureTeardown):null;return n}function E(i,n){if(n.deviceId!==void 0)i.device_id=n.deviceId;if(n.platform!==void 0)i.platform=n.platform;if(n.status!==void 0)i.status=n.status;if(n.outputName!==void 0)i.output_name=n.outputName??null}function J(i,n){if(E(i,n),n.fileName!==void 0)i.file_name=n.fileName;if(n.filePath!==void 0)i.file_path=n.filePath;if(n.format!==void 0)i.format=n.format;if(n.sizeBytes!==void 0)i.size_bytes=n.sizeBytes;if(n.durationMs!==void 0)i.duration_ms=n.durationMs??null;if(n.codec!==void 0)i.codec=n.codec??null}function z(i,n){if(n.createdAt!==void 0)i.created_at=n.createdAt;if(n.startedAt!==void 0)i.started_at=n.startedAt;if(n.endedAt!==void 0)i.ended_at=n.endedAt??null;if(n.lastAccessedAt!==void 0)i.last_accessed_at=n.lastAccessedAt}function Q(i,n){if(n.config!==void 0)i.config_json=JSON.stringify(n.config);if(n.highlights!==void 0)i.highlights_json=JSON.stringify(n.highlights??[]);if(n.recordedPanel!==void 0)i.recorded_panel_json=JSON.stringify(n.recordedPanel);if(n.transitions!==void 0)i.display_transitions_json=JSON.stringify(n.transitions);if(n.ownerSessionUuid!==void 0)i.owner_session_uuid=n.ownerSessionUuid??null;K(i,n)}function h(i){if(i===void 0)return null;return i?1:0}function K(i,n){if(n.hasAudioTrack!==void 0)i.has_audio_track=h(n.hasAudioTrack);if(n.warnings!==void 0)i.warnings_json=JSON.stringify(n.warnings)}class L1{db;constructor({db:i}={}){this.db=i??null}getDb(){return this.db??_e()}async insertRecording(i){let n=await this.getDb(),t={recording_id:i.recordingId,recorder_daemon_session_id:i.recorderDaemonSessionId??null,device_id:i.deviceId,platform:i.platform,status:i.status,output_name:i.outputName??null,file_name:i.fileName,file_path:i.filePath,format:i.format,size_bytes:i.sizeBytes,duration_ms:i.durationMs??null,codec:i.codec??null,created_at:i.createdAt,started_at:i.startedAt,ended_at:i.endedAt??null,last_accessed_at:i.lastAccessedAt,config_json:JSON.stringify(i.config),highlights_json:i.highlights?JSON.stringify(i.highlights):null,capture_teardown_json:i.captureTeardown?JSON.stringify(i.captureTeardown):null,recorded_panel_json:i.recordedPanel?JSON.stringify(i.recordedPanel):null,display_transitions_json:i.transitions?JSON.stringify(i.transitions):null,has_audio_track:h(i.hasAudioTrack),warnings_json:i.warnings?JSON.stringify(i.warnings):null,owner_session_uuid:i.ownerSessionUuid??null};await n.insertInto("video_recordings").values(t).onConflict((r)=>r.column("recording_id").doUpdateSet({recorder_daemon_session_id:m`coalesce(${t.recorder_daemon_session_id}, video_recordings.recorder_daemon_session_id)`,device_id:t.device_id,platform:t.platform,status:t.status,output_name:t.output_name,file_name:t.file_name,file_path:t.file_path,format:t.format,size_bytes:t.size_bytes,duration_ms:t.duration_ms,codec:t.codec,started_at:t.started_at,ended_at:t.ended_at,last_accessed_at:t.last_accessed_at,config_json:t.config_json,highlights_json:t.highlights_json,capture_teardown_json:t.capture_teardown_json,recorded_panel_json:t.recorded_panel_json,display_transitions_json:t.display_transitions_json,has_audio_track:t.has_audio_track,warnings_json:t.warnings_json,owner_session_uuid:t.owner_session_uuid})).execute()}async updateRecording(i,n){let t=await this.getDb(),r=C(n);if(Object.keys(r).length===0)return;await t.updateTable("video_recordings").set(r).where("recording_id","=",i).execute()}async getRecording(i,n={}){let r=(await this.getDb()).selectFrom("video_recordings").selectAll().where("recording_id","=",i);r=p(r,n);let o=await r.executeTakeFirst();return o?_(o):null}async listRecordings(i={}){let t=(await this.getDb()).selectFrom("video_recordings").selectAll();if(t=p(t,i),t=F(t,i),i.status!==void 0){let o=Array.isArray(i.status)?i.status:[i.status];t=t.where("status","in",o)}if(i.deviceId)t=t.where("device_id","=",i.deviceId);if(i.platform)t=t.where("platform","=",i.platform);if(i.orderByLastAccessed)t=t.orderBy("last_accessed_at",i.orderByLastAccessed);if(i.orderByStartedAt)t=t.orderBy("started_at",i.orderByStartedAt).orderBy("recording_id",i.orderByStartedAt);if(i.limit&&i.limit>0)t=t.limit(i.limit);return(await t.execute()).map(_)}async getLatestRecording(){return(await this.listRecordings({status:XE,orderByStartedAt:"desc",limit:1}))[0]??null}async touchRecording(i,n){await this.updateRecording(i,{lastAccessedAt:n})}async deleteRecording(i){let t=await(await this.getDb()).deleteFrom("video_recordings").where("recording_id","=",i).executeTakeFirst();return Number(t.numDeletedRows??0)>0}}
|
|
3
|
+
export{Uf,F1,XE,BG,pX,L1};
|
|
4
4
|
|
|
5
|
-
//# debugId=
|
|
5
|
+
//# debugId=130E5852A48CC0D964756E2164756E21
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{DJ}from"./chunk-sfv61xjb.js";import"./chunk-e98dqnc9.js";import"./chunk-jh6vhqzx.js";import"./chunk-7rz9898k.js";import"./chunk-0qsy1qsx.js";import"./chunk-v6pya0dm.js";import"./chunk-r5bxavdx.js";import"./chunk-yf7ympyz.js";import"./chunk-4hw3665t.js";import"./chunk-5d2hft6c.js";import"./chunk-z637nqg8.js";import"./chunk-58wzr3mt.js";export{DJ as getSharedStorageReadService};
|
|
3
|
+
|
|
4
|
+
//# debugId=93668D07BE40B7CD64756E2164756E21
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{EM,A1}from"./chunk-11m8wj8j.js";import"./chunk-e98dqnc9.js";import"./chunk-jh6vhqzx.js";import"./chunk-7rz9898k.js";import"./chunk-3xkpk44w.js";import"./chunk-0qsy1qsx.js";import"./chunk-v6pya0dm.js";import"./chunk-r5bxavdx.js";import"./chunk-yf7ympyz.js";import"./chunk-4hw3665t.js";import"./chunk-5d2hft6c.js";import"./chunk-z637nqg8.js";import"./chunk-58wzr3mt.js";export{A1 as describeDefaultAppFileProviderCoverage,EM as getAppFileService};
|
|
3
|
+
|
|
4
|
+
//# debugId=585F582715F0CF4864756E2164756E21
|