@omniviewdev/runtime 0.27.0 → 0.27.2
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/api.cjs +1 -1
- package/dist/api.js +2 -2
- package/dist/browser-9YF5mP93.js +13 -0
- package/dist/browser-VYZDuy8Z.cjs +1 -0
- package/dist/events-B9wlH6cT.cjs +1 -0
- package/dist/events-CgnLM6iV.js +1041 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +132 -131
- package/dist/logSessionEvents.d.ts +12 -0
- package/dist/logs.d.ts +3 -0
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.js +23 -22
- package/dist/service-CDYj21m9.js +858 -0
- package/dist/service-DO0Rrm3E.cjs +1 -0
- package/package.json +1 -1
- package/dist/calls-B-HP1Icv.cjs +0 -1
- package/dist/calls-DYGtxNJ6.js +0 -684
- package/dist/events-DnLqUWri.cjs +0 -1
- package/dist/events-uBheGmqm.js +0 -370
- package/dist/service-Brxo1pLe.js +0 -755
- package/dist/service-COOtx0k6.cjs +0 -1
package/dist/api.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./service-COOtx0k6.cjs"),c=require("./index-BVi9X4oU.cjs"),r=require("./calls-B-HP1Icv.cjs"),p=require("./models-CpFXL1IY.cjs"),f={kind:"none"},G=(1n<<64n)-1n,m=t=>typeof t=="string"&&/^(0|[1-9][0-9]*)$/.test(t)&&t.length<=20&&BigInt(t)<=G,x=(t,e)=>Number.isSafeInteger(t)&&t>=0&&t<=e;function a(t,e,n=[]){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&e.every(i=>Object.prototype.hasOwnProperty.call(t,i))&&Object.keys(t).every(i=>e.includes(i)||n.includes(i))}function d(t){return typeof t=="string"}function o(t){return d(t)&&t.length>0}function N(t){return t==="complete"||t==="partial"||t==="unknown"}function R(t){return!a(t,["type","title","status","detail"],["instance","suggestions","actions","code","requestId","recovery","location"])||!d(t.type)||!d(t.title)||!Number.isSafeInteger(t.status)||!d(t.detail)||["instance","code","requestId","recovery"].some(e=>e in t&&!d(t[e]))||"suggestions"in t&&(!Array.isArray(t.suggestions)||!t.suggestions.every(d))||"actions"in t&&(!Array.isArray(t.actions)||!t.actions.every(e=>a(e,["type","label"],["target"])&&d(e.type)&&d(e.label)&&(!("target"in e)||d(e.target))))?!1:!("location"in t)||a(t.location,["start","end","unit"])&&Number.isSafeInteger(t.location.start)&&Number.isSafeInteger(t.location.end)&&d(t.location.unit)}function M(t){if(!a(t,["coverage","limitations","freshness","count"],["continuation"])||!N(t.coverage)||!Array.isArray(t.limitations)||!t.limitations.every(d)||!["current","snapshot","stale"].includes(t.freshness)||"continuation"in t&&!o(t.continuation))return!1;const e=t.count;return a(e,["kind"])&&e.kind==="unknown"||a(e,["kind","value"])&&(e.kind==="exact"||e.kind==="estimate")&&m(e.value)}function L(t){if(!a(t,["lane","leaseId","payload"],["generation","sequence"])||!o(t.leaseId))return!1;const e=t.payload;return t.lane==="control"?!a(t,["lane","leaseId","payload"])||!a(e,["kind"],["reason","generation","nextGeneration","state","error"])?!1:e.kind==="reset"?a(e,["kind","generation","nextGeneration","reason"])&&o(e.generation)&&o(e.nextGeneration)&&["gap","overflow","sourceInvalidated","bindingChanged"].includes(e.reason):e.kind==="control"?a(e,["kind","state","generation"])&&e.state==="complete"&&o(e.generation):e.kind==="close"?a(e,["kind","reason"],["error"])&&["closed","cancelled","failed","accessInvalidated"].includes(e.reason)&&(!("error"in e)||R(e.error)):!1:t.lane!=="data"||!a(t,["lane","leaseId","generation","sequence","payload"])||!o(t.generation)||!m(t.sequence)||!a(e,["kind","metadata"],["rows","changes"])||!M(e.metadata)?!1:e.kind==="open"?a(e,["kind","rows","metadata"])&&Array.isArray(e.rows)&&e.rows.every(y):e.kind!=="changes"||!a(e,["kind","changes","metadata"])||!Array.isArray(e.changes)?!1:e.changes.every(n=>a(n,["kind"],["index","key","row"])?n.kind==="enter"?a(n,["kind","index","row"])&&Number.isSafeInteger(n.index)&&y(n.row):n.kind==="update"?a(n,["kind","key","row"])&&o(n.key)&&y(n.row):n.kind==="move"?a(n,["kind","key","index"])&&o(n.key)&&Number.isSafeInteger(n.index):(n.kind==="leave"||n.kind==="delete")&&a(n,["kind","key"])&&o(n.key):!1)}function w(t,e=0){if(!t||e>64||!a(t,t.kind==="null"?["kind"]:["kind","value"]))return!1;switch(t.kind){case"null":return!0;case"bool":return typeof t.value=="boolean";case"string":case"timestamp":return typeof t.value=="string";case"double":return typeof t.value=="number"&&Number.isFinite(t.value);case"uint64":return m(t.value);case"int64":return typeof t.value=="string"&&/^(-[1-9][0-9]*|0|[1-9][0-9]*)$/.test(t.value)&&t.value.length<=20&&BigInt(t.value)>=-(1n<<63n)&&BigInt(t.value)<1n<<63n;case"list":return Array.isArray(t.value)&&t.value.every(n=>w(n,e+1));case"map":return!!t.value&&typeof t.value=="object"&&!Array.isArray(t.value)&&Object.values(t.value).every(n=>w(n,e+1));default:return!1}}function y(t){return!a(t,["key","targetId","resource","representation","provenance","values"])||!o(t.key)||!o(t.targetId)||!a(t.resource,["address"],["incarnation"])||"incarnation"in t.resource&&!o(t.resource.incarnation)||!a(t.resource.address,["provider","authority","type","scope","id"])||!o(t.resource.address.provider)||!o(t.resource.address.authority)||!o(t.resource.address.type)||!o(t.resource.address.id)||!Array.isArray(t.resource.address.scope)||!t.resource.address.scope.every(e=>a(e,["dimension","value"])&&o(e.dimension)&&d(e.value))||!a(t.representation,["id","revision"])||!o(t.representation.id)||!o(t.representation.revision)||!a(t.provenance,["source","coverage","stale"])||!o(t.provenance.source)||!N(t.provenance.coverage)||typeof t.provenance.stale!="boolean"||!t.values||typeof t.values!="object"||Array.isArray(t.values)?!1:Object.values(t.values).every(e=>a(e,["state"])&&(e.state==="absent"||e.state==="null")||a(e,["state","value"])&&e.state==="value"&&w(e.value))}function q(t){const e=structuredClone(t),n=i=>{i&&typeof i=="object"&&!Object.isFrozen(i)&&(Object.values(i).forEach(n),Object.freeze(i))};return n(e),e}class z{constructor(e,n){if(this.leaseId=e,this.maxRows=n,!e||!Number.isSafeInteger(n)||n<1||n>512)throw new RangeError("Invalid lease or window bound")}leaseId;maxRows;snapshot=Object.freeze({status:"attaching",rows:Object.freeze([]),stale:!1});generation;sequence=0n;opened=!1;recovering=!1;previousReset;getSnapshot(){return this.snapshot}attach(e){if(!e||this.snapshot.status!=="attaching")throw new Error("Invalid attachment");this.generation=e,this.publish({status:"pending",generation:e,rows:[],stale:!1})}disconnected(){return this.close(),{kind:"reopen"}}close(){this.generation=void 0,this.previousReset=void 0,this.opened=!1,this.recovering=!1,this.publish({status:"closed",rows:[],stale:!1})}apply(e){if(this.snapshot.status==="closed"||e&&typeof e=="object"&&typeof e.leaseId=="string"&&e.leaseId!==this.leaseId)return f;if(this.snapshot.status==="attaching")return this.fail();try{if(!L(e)||new TextEncoder().encode(JSON.stringify(e)).length>256*1024)return this.publish({...this.snapshot,rows:[],metadata:void 0,stale:!1}),this.snapshot.status==="complete"?this.disconnected():this.fail()}catch{return this.publish({...this.snapshot,rows:[],metadata:void 0,stale:!1}),this.snapshot.status==="complete"?this.disconnected():this.fail()}if(this.snapshot.status==="complete"&&(e.lane==="data"||e.lane==="control"&&e.payload.kind==="reset"))return this.disconnected();if(e.lane==="control"){const n=e.payload;if(n.kind==="close")return this.close(),n.error&&this.publish({status:"closed",rows:[],stale:!1,error:n.error}),f;if(n.kind==="control")return n.generation===this.generation&&this.opened&&!this.recovering&&this.publish({...this.snapshot,status:"complete"}),f;if(n.generation!==this.generation)return f;if(!n.nextGeneration||n.nextGeneration===n.generation||n.nextGeneration===this.previousReset?.generation)return this.publish({...this.snapshot,rows:[],metadata:void 0,stale:!1}),this.fail();this.previousReset={generation:n.generation,nextGeneration:n.nextGeneration},this.generation=n.nextGeneration,this.sequence=0n,this.opened=!1,this.recovering=!1;const i=n.reason==="bindingChanged"||n.reason==="sourceInvalidated";return this.publish({status:"pending",generation:this.generation,rows:i?[]:this.snapshot.rows,metadata:i?void 0:this.snapshot.metadata,stale:!i&&this.snapshot.rows.length>0}),f}if(e.generation!==this.generation||this.recovering)return f;try{if(new TextEncoder().encode(JSON.stringify(e)).length>256*1024)return this.fail();if(!m(e.sequence)||BigInt(e.sequence)!==this.sequence+1n)return this.fail();const n=e.payload;if(n.metadata.count.kind!=="unknown"&&!m(n.metadata.count.value))return this.fail();let i;if(n.kind==="open"){if(this.opened||n.rows.length>this.maxRows)return this.fail();if(i=n.rows.slice(),i.some(s=>!y(s))||new Set(i.map(s=>s.key)).size!==i.length)return this.fail()}else{if(!this.opened||n.changes.length>128)return this.fail();i=this.snapshot.rows.slice();for(const s of n.changes)if(s.kind==="enter"){if(!y(s.row)||i.some(h=>h.key===s.row.key)||!x(s.index,i.length)||i.length>=this.maxRows)return this.fail();i.splice(s.index,0,s.row)}else{const h=i.findIndex(g=>g.key===s.key);if(h<0)return this.fail();if(s.kind==="update"){if(!y(s.row)||s.row.key!==s.key)return this.fail();i[h]=s.row}else if(s.kind==="move"){const[g]=i.splice(h,1);if(!x(s.index,i.length))return this.fail();i.splice(s.index,0,g)}else if(s.kind==="leave"||s.kind==="delete")i.splice(h,1);else return this.fail()}}return this.sequence=BigInt(e.sequence),this.opened=!0,this.publish({status:"ready",generation:this.generation,rows:i,metadata:n.metadata,stale:!1}),f}catch{return this.fail()}}fail(){return this.generation?this.recovering?f:(this.recovering=!0,this.publish({...this.snapshot,status:"recovering",stale:this.snapshot.rows.length>0}),{kind:"recover",generation:this.generation}):(this.close(),{kind:"reopen"})}publish(e){this.snapshot=q(e)}}let J=class _{running;url;source;error;constructor(e={}){"running"in e||(this.running=!1),"url"in e||(this.url=""),"source"in e||(this.source=""),"error"in e||(this.error=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new _(n)}};function U(){return r.ByID(3755720097).then(t=>V(t))}const V=J.createFrom,W=Object.freeze(Object.defineProperty({__proto__:null,GetStatus:U},Symbol.toStringTag,{value:"Module"}));class D{pid;startIdentity;executable;constructor(e={}){"pid"in e||(this.pid=0),"startIdentity"in e||(this.startIdentity=""),"executable"in e||(this.executable=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new D(n)}}class k{key;role;pluginID;ownership;identity;windows;windowAssociation;evidence;error;constructor(e={}){"key"in e||(this.key=""),"role"in e||(this.role=""),"pluginID"in e||(this.pluginID=""),"ownership"in e||(this.ownership=""),"identity"in e||(this.identity=null),"windows"in e||(this.windows=[]),"windowAssociation"in e||(this.windowAssociation=""),"evidence"in e||(this.evidence=""),"error"in e||(this.error=""),Object.assign(this,e)}static createFrom(e={}){const n=Z,i=X;let s=typeof e=="string"?JSON.parse(e):e;return"identity"in s&&(s.identity=n(s.identity)),"windows"in s&&(s.windows=i(s.windows)),new k(s)}}class v{observedAt;processes;constructor(e={}){"observedAt"in e||(this.observedAt="0001-01-01T00:00:00.000Z"),"processes"in e||(this.processes=[]),Object.assign(this,e)}static createFrom(e={}){const n=Y;let i=typeof e=="string"?JSON.parse(e):e;return"processes"in i&&(i.processes=n(i.processes)),new v(i)}}class O{name;id;nativeID;ownership;error;constructor(e={}){"name"in e||(this.name=""),"id"in e||(this.id=0),"nativeID"in e||(this.nativeID=0),"ownership"in e||(this.ownership=""),"error"in e||(this.error=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new O(n)}}const Q=D.createFrom,Z=c.Nullable(Q),H=O.createFrom,X=c.Array(H),K=k.createFrom,Y=c.Array(K);function $(){return r.ByID(3873589115).then(t=>ee(t))}const ee=v.createFrom,te=Object.freeze(Object.defineProperty({__proto__:null,GetSnapshot:$},Symbol.toStringTag,{value:"Module"}));class B{supported;enabled;engine;window;application;target;error;constructor(e={}){"supported"in e||(this.supported=!1),"enabled"in e||(this.enabled=!1),"engine"in e||(this.engine=""),"window"in e||(this.window=""),"application"in e||(this.application=""),"target"in e||(this.target=""),"error"in e||(this.error=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new B(n)}}function ne(t){return r.ByID(2352399502,t).then(e=>ie(e))}const ie=B.createFrom,re=Object.freeze(Object.defineProperty({__proto__:null,GetStatus:ne},Symbol.toStringTag,{value:"Module"}));function se(t,e){return r.ByID(1112300727,t,e)}function ae(t){return r.ByID(3545575747,t)}function oe(){return r.ByID(973353934).then(t=>De(t))}function ce(){return r.ByID(3274001154).then(t=>ke(t))}function le(){return r.ByID(1957733758).then(t=>Oe(t))}function de(){return r.ByID(3570265771).then(t=>Te(t))}function ue(){return r.ByID(338269344).then(t=>Ae(t))}function fe(t){return r.ByID(2544305887,t).then(e=>xe(e))}function pe(t,e){return r.ByID(1042852749,t,e)}function he(){return r.ByID(3071199936)}function ye(t){return r.ByID(2852029597,t)}function ge(t){return r.ByID(2119350976,t)}function me(t,e,n){return r.ByID(1507504662,t,e,n)}function be(t){return r.ByID(4286704285,t)}function Ie(t,e){return r.ByID(323373508,t,e)}function Se(t){return r.ByID(2912056327,t)}function we(t,e,n){return r.ByID(3748367702,t,e,n)}const De=p.ConfigView.createFrom,ke=p.Status.createFrom,ve=p.ConnectionPolicyView.createFrom,Oe=c.Array(ve),Be=p.PendingConfirmation.createFrom,Te=c.Array(Be),Fe=p.PresetView.createFrom,Ae=c.Array(Fe),je=p.ToolView.createFrom,xe=c.Array(je),Ne=Object.freeze(Object.defineProperty({__proto__:null,ApplyPreset:se,DeleteUserPreset:ae,GetConfig:oe,GetStatus:ce,ListConnectionPolicies:le,ListPendingConfirmations:de,ListPresets:ue,ListTools:fe,ResolveConfirmation:pe,RotateToken:he,SaveUserPreset:ye,SetBlockConnectionsByDefault:ge,SetConnectionAccess:me,SetEnabled:be,SetPluginEnabled:Ie,SetPort:Se,SetToolOverride:we},Symbol.toStringTag,{value:"Module"}));function _e(t){return r.ByID(3503478684,t)}const Ce=Object.freeze(Object.defineProperty({__proto__:null,DetectLanguage:_e},Symbol.toStringTag,{value:"Module"}));function Pe(t,e){return r.ByID(2691208406,t,e)}function Ee(t,e){return r.ByID(3932965591,t,e)}function Ge(t,e){return r.ByID(1686862755,t,e)}function Re(t,e,n){return r.ByID(3705442919,t,e,n)}function Me(t){return r.ByID(3024854267,t)}function Le(t){return r.ByID(3423289677,t)}function qe(t){return r.ByID(158417611,t)}function ze(t){return r.ByID(3413815733,t)}function Je(t,e){return r.ByID(2047870999,t,e)}const Ue=Object.freeze(Object.defineProperty({__proto__:null,Debug:Pe,Error:Ee,Info:Ge,Log:Re,ReadLog:Me,ReportStartupReady:Le,StartTail:qe,StopTail:ze,Warn:Je},Symbol.toStringTag,{value:"Module"}));class T{windowName;token;pending;constructor(e={}){"windowName"in e||(this.windowName=""),"token"in e||(this.token=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new T(n)}}function Ve(){return r.ByID(2260974144).then(t=>Ze(t))}function We(t,e,n,i){return r.ByID(286400678,t,e,n,i)}function Qe(t){return r.ByID(1772773955,t)}const Ze=T.createFrom,He=Object.freeze(Object.defineProperty({__proto__:null,Register:Ve,Respond:We,Unregister:Qe},Symbol.toStringTag,{value:"Module"}));function Xe(t,e){return r.ByID(712656304,t,e).then(n=>at(n))}function Ke(t){return r.ByID(4153226260,t).then(e=>b(e))}function Ye(t){return r.ByID(1859413816,t)}function $e(){return r.ByID(2707386443).then(t=>ot(t))}function et(t){return r.ByID(2381063937,t)}function tt(t){return r.ByID(123659362,t).then(e=>b(e))}function nt(t){return r.ByID(709599671,t).then(e=>b(e))}function it(t,e){return r.ByID(2105869281,t,e).then(n=>b(n))}function rt(t){return r.ByID(1371062537,t)}const st=p.LogEntry.createFrom,at=c.Array(st),b=p.DevServerState.createFrom,ot=c.Array(b),ct=Object.freeze(Object.defineProperty({__proto__:null,GetDevServerLogs:Xe,GetDevServerState:Ke,IsManaged:Ye,ListDevServerStates:$e,RebuildPlugin:et,RestartDevServer:tt,StartDevServer:nt,StartDevServerForPath:it,StopDevServer:rt},Symbol.toStringTag,{value:"Module"}));function lt(t,e){return r.ByID(1867216983,t,e).then(n=>C(n))}function dt(){return r.ByID(3418650705).then(t=>yt(t))}function ut(t,e){return r.ByID(4138610615,t,e).then(n=>C(n))}function ft(t){return r.ByID(3055914536,t)}function pt(t){return r.ByID(1502487629,t)}const ht=p.LogEntry$1.createFrom,C=c.Array(ht),yt=c.Array(c.Any),gt=Object.freeze(Object.defineProperty({__proto__:null,GetLogs:lt,ListStreams:dt,SearchLogs:ut,Subscribe:ft,Unsubscribe:pt},Symbol.toStringTag,{value:"Module"}));class I{browser;vite;hmr;mcp;control;health;constructor(e={}){"browser"in e||(this.browser=null),"vite"in e||(this.vite=null),"hmr"in e||(this.hmr=null),"mcp"in e||(this.mcp=null),"control"in e||(this.control=null),"health"in e||(this.health=null),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new I(n)}}let mt=class P{code;message;details;constructor(e={}){"code"in e||(this.code=""),"message"in e||(this.message=""),Object.assign(this,e)}static createFrom(e={}){const n=bt;let i=typeof e=="string"?JSON.parse(e):e;return"details"in i&&(i.details=n(i.details)),new P(i)}};class F{schemaVersion;workspaceID;instanceID;generation;kind;channel;displayName;stateRoot;process;version;commit;repositories;endpoints;plugins;readiness;lastError;startedAt;constructor(e={}){"schemaVersion"in e||(this.schemaVersion=0),"workspaceID"in e||(this.workspaceID=""),"instanceID"in e||(this.instanceID=""),"generation"in e||(this.generation=""),"kind"in e||(this.kind=""),"channel"in e||(this.channel=""),"displayName"in e||(this.displayName=""),"stateRoot"in e||(this.stateRoot=""),"process"in e||(this.process=new S),"version"in e||(this.version=""),"commit"in e||(this.commit=""),"repositories"in e||(this.repositories=[]),"endpoints"in e||(this.endpoints=new I),"plugins"in e||(this.plugins=[]),"readiness"in e||(this.readiness=""),"startedAt"in e||(this.startedAt="0001-01-01T00:00:00.000Z"),Object.assign(this,e)}static createFrom(e={}){const n=It,i=wt,s=Dt,h=vt,g=E;let l=typeof e=="string"?JSON.parse(e):e;return"process"in l&&(l.process=n(l.process)),"repositories"in l&&(l.repositories=i(l.repositories)),"endpoints"in l&&(l.endpoints=s(l.endpoints)),"plugins"in l&&(l.plugins=h(l.plugins)),"lastError"in l&&(l.lastError=g(l.lastError)),new F(l)}}class A{id;version;source;generation;mode;buildStatus;viteStatus;rpcStatus;controllerStatus;operationID;lastError;constructor(e={}){"id"in e||(this.id=""),"version"in e||(this.version=""),"source"in e||(this.source=""),"generation"in e||(this.generation=""),"mode"in e||(this.mode=""),"buildStatus"in e||(this.buildStatus=""),"viteStatus"in e||(this.viteStatus=""),"rpcStatus"in e||(this.rpcStatus=""),"controllerStatus"in e||(this.controllerStatus=""),Object.assign(this,e)}static createFrom(e={}){const n=E;let i=typeof e=="string"?JSON.parse(e):e;return"lastError"in i&&(i.lastError=n(i.lastError)),new A(i)}}class S{pid;startIdentity;executable;workspaceID;generation;role;source;constructor(e={}){"pid"in e||(this.pid=0),"startIdentity"in e||(this.startIdentity=""),"executable"in e||(this.executable=""),"workspaceID"in e||(this.workspaceID=""),"generation"in e||(this.generation=""),"role"in e||(this.role=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new S(n)}}class j{id;path;ref;commit;constructor(e={}){"id"in e||(this.id=""),"path"in e||(this.path=""),"ref"in e||(this.ref=""),"commit"in e||(this.commit=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new j(n)}}const bt=c.Map(c.Any,c.Any),It=S.createFrom,St=j.createFrom,wt=c.Array(St),Dt=I.createFrom,kt=A.createFrom,vt=c.Array(kt),Ot=mt.createFrom,E=c.Nullable(Ot);function Bt(){return r.ByID(678226073).then(t=>xt(t))}function Tt(){return r.ByID(1706570792)}function Ft(t){return r.ByID(2957909098,t).then(e=>Nt(e))}function At(t){return r.ByID(473489213,t)}function jt(t,e){return r.ByID(3778694836,t,e)}const xt=F.createFrom,Nt=c.Array(c.Any);exports.DataClient=u.servicewrapper;exports.ExecClient=u.exec;exports.GraphClient=u.graphClient;exports.LogsClient=u.logs;exports.MetricClient=u.metric;exports.NetworkerClient=u.networker;exports.PluginManager=u.servicewrapper$1;exports.ResourceClient=u.client;exports.SettingsService=u.binding;exports.UIClient=u.servicewrapper$2;exports.WindowClient=u.service;exports.DevServerManager=ct;exports.DiagnosticsClient=Ue;exports.ExtensionDiagnosticsClient=He;exports.GetInstanceInfo=Bt;exports.GetOperatingSystem=Tt;exports.HostProfiling=W;exports.McpRelayClient=Ne;exports.OpenFileSelectionDialog=Ft;exports.PluginLogManager=gt;exports.ProcessInventory=te;exports.QueryLeaseObserver=z;exports.SaveFileDialog=At;exports.UiInspection=re;exports.UtilsClient=Ce;exports.WriteFileContent=jt;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./service-DO0Rrm3E.cjs"),c=require("./index-BVi9X4oU.cjs"),r=require("./events-B9wlH6cT.cjs"),p=require("./models-CpFXL1IY.cjs"),f={kind:"none"},G=(1n<<64n)-1n,m=t=>typeof t=="string"&&/^(0|[1-9][0-9]*)$/.test(t)&&t.length<=20&&BigInt(t)<=G,x=(t,e)=>Number.isSafeInteger(t)&&t>=0&&t<=e;function a(t,e,n=[]){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&e.every(i=>Object.prototype.hasOwnProperty.call(t,i))&&Object.keys(t).every(i=>e.includes(i)||n.includes(i))}function d(t){return typeof t=="string"}function o(t){return d(t)&&t.length>0}function N(t){return t==="complete"||t==="partial"||t==="unknown"}function R(t){return!a(t,["type","title","status","detail"],["instance","suggestions","actions","code","requestId","recovery","location"])||!d(t.type)||!d(t.title)||!Number.isSafeInteger(t.status)||!d(t.detail)||["instance","code","requestId","recovery"].some(e=>e in t&&!d(t[e]))||"suggestions"in t&&(!Array.isArray(t.suggestions)||!t.suggestions.every(d))||"actions"in t&&(!Array.isArray(t.actions)||!t.actions.every(e=>a(e,["type","label"],["target"])&&d(e.type)&&d(e.label)&&(!("target"in e)||d(e.target))))?!1:!("location"in t)||a(t.location,["start","end","unit"])&&Number.isSafeInteger(t.location.start)&&Number.isSafeInteger(t.location.end)&&d(t.location.unit)}function M(t){if(!a(t,["coverage","limitations","freshness","count"],["continuation"])||!N(t.coverage)||!Array.isArray(t.limitations)||!t.limitations.every(d)||!["current","snapshot","stale"].includes(t.freshness)||"continuation"in t&&!o(t.continuation))return!1;const e=t.count;return a(e,["kind"])&&e.kind==="unknown"||a(e,["kind","value"])&&(e.kind==="exact"||e.kind==="estimate")&&m(e.value)}function L(t){if(!a(t,["lane","leaseId","payload"],["generation","sequence"])||!o(t.leaseId))return!1;const e=t.payload;return t.lane==="control"?!a(t,["lane","leaseId","payload"])||!a(e,["kind"],["reason","generation","nextGeneration","state","error"])?!1:e.kind==="reset"?a(e,["kind","generation","nextGeneration","reason"])&&o(e.generation)&&o(e.nextGeneration)&&["gap","overflow","sourceInvalidated","bindingChanged"].includes(e.reason):e.kind==="control"?a(e,["kind","state","generation"])&&e.state==="complete"&&o(e.generation):e.kind==="close"?a(e,["kind","reason"],["error"])&&["closed","cancelled","failed","accessInvalidated"].includes(e.reason)&&(!("error"in e)||R(e.error)):!1:t.lane!=="data"||!a(t,["lane","leaseId","generation","sequence","payload"])||!o(t.generation)||!m(t.sequence)||!a(e,["kind","metadata"],["rows","changes"])||!M(e.metadata)?!1:e.kind==="open"?a(e,["kind","rows","metadata"])&&Array.isArray(e.rows)&&e.rows.every(y):e.kind!=="changes"||!a(e,["kind","changes","metadata"])||!Array.isArray(e.changes)?!1:e.changes.every(n=>a(n,["kind"],["index","key","row"])?n.kind==="enter"?a(n,["kind","index","row"])&&Number.isSafeInteger(n.index)&&y(n.row):n.kind==="update"?a(n,["kind","key","row"])&&o(n.key)&&y(n.row):n.kind==="move"?a(n,["kind","key","index"])&&o(n.key)&&Number.isSafeInteger(n.index):(n.kind==="leave"||n.kind==="delete")&&a(n,["kind","key"])&&o(n.key):!1)}function w(t,e=0){if(!t||e>64||!a(t,t.kind==="null"?["kind"]:["kind","value"]))return!1;switch(t.kind){case"null":return!0;case"bool":return typeof t.value=="boolean";case"string":case"timestamp":return typeof t.value=="string";case"double":return typeof t.value=="number"&&Number.isFinite(t.value);case"uint64":return m(t.value);case"int64":return typeof t.value=="string"&&/^(-[1-9][0-9]*|0|[1-9][0-9]*)$/.test(t.value)&&t.value.length<=20&&BigInt(t.value)>=-(1n<<63n)&&BigInt(t.value)<1n<<63n;case"list":return Array.isArray(t.value)&&t.value.every(n=>w(n,e+1));case"map":return!!t.value&&typeof t.value=="object"&&!Array.isArray(t.value)&&Object.values(t.value).every(n=>w(n,e+1));default:return!1}}function y(t){return!a(t,["key","targetId","resource","representation","provenance","values"])||!o(t.key)||!o(t.targetId)||!a(t.resource,["address"],["incarnation"])||"incarnation"in t.resource&&!o(t.resource.incarnation)||!a(t.resource.address,["provider","authority","type","scope","id"])||!o(t.resource.address.provider)||!o(t.resource.address.authority)||!o(t.resource.address.type)||!o(t.resource.address.id)||!Array.isArray(t.resource.address.scope)||!t.resource.address.scope.every(e=>a(e,["dimension","value"])&&o(e.dimension)&&d(e.value))||!a(t.representation,["id","revision"])||!o(t.representation.id)||!o(t.representation.revision)||!a(t.provenance,["source","coverage","stale"])||!o(t.provenance.source)||!N(t.provenance.coverage)||typeof t.provenance.stale!="boolean"||!t.values||typeof t.values!="object"||Array.isArray(t.values)?!1:Object.values(t.values).every(e=>a(e,["state"])&&(e.state==="absent"||e.state==="null")||a(e,["state","value"])&&e.state==="value"&&w(e.value))}function q(t){const e=structuredClone(t),n=i=>{i&&typeof i=="object"&&!Object.isFrozen(i)&&(Object.values(i).forEach(n),Object.freeze(i))};return n(e),e}class z{constructor(e,n){if(this.leaseId=e,this.maxRows=n,!e||!Number.isSafeInteger(n)||n<1||n>512)throw new RangeError("Invalid lease or window bound")}leaseId;maxRows;snapshot=Object.freeze({status:"attaching",rows:Object.freeze([]),stale:!1});generation;sequence=0n;opened=!1;recovering=!1;previousReset;getSnapshot(){return this.snapshot}attach(e){if(!e||this.snapshot.status!=="attaching")throw new Error("Invalid attachment");this.generation=e,this.publish({status:"pending",generation:e,rows:[],stale:!1})}disconnected(){return this.close(),{kind:"reopen"}}close(){this.generation=void 0,this.previousReset=void 0,this.opened=!1,this.recovering=!1,this.publish({status:"closed",rows:[],stale:!1})}apply(e){if(this.snapshot.status==="closed"||e&&typeof e=="object"&&typeof e.leaseId=="string"&&e.leaseId!==this.leaseId)return f;if(this.snapshot.status==="attaching")return this.fail();try{if(!L(e)||new TextEncoder().encode(JSON.stringify(e)).length>256*1024)return this.publish({...this.snapshot,rows:[],metadata:void 0,stale:!1}),this.snapshot.status==="complete"?this.disconnected():this.fail()}catch{return this.publish({...this.snapshot,rows:[],metadata:void 0,stale:!1}),this.snapshot.status==="complete"?this.disconnected():this.fail()}if(this.snapshot.status==="complete"&&(e.lane==="data"||e.lane==="control"&&e.payload.kind==="reset"))return this.disconnected();if(e.lane==="control"){const n=e.payload;if(n.kind==="close")return this.close(),n.error&&this.publish({status:"closed",rows:[],stale:!1,error:n.error}),f;if(n.kind==="control")return n.generation===this.generation&&this.opened&&!this.recovering&&this.publish({...this.snapshot,status:"complete"}),f;if(n.generation!==this.generation)return f;if(!n.nextGeneration||n.nextGeneration===n.generation||n.nextGeneration===this.previousReset?.generation)return this.publish({...this.snapshot,rows:[],metadata:void 0,stale:!1}),this.fail();this.previousReset={generation:n.generation,nextGeneration:n.nextGeneration},this.generation=n.nextGeneration,this.sequence=0n,this.opened=!1,this.recovering=!1;const i=n.reason==="bindingChanged"||n.reason==="sourceInvalidated";return this.publish({status:"pending",generation:this.generation,rows:i?[]:this.snapshot.rows,metadata:i?void 0:this.snapshot.metadata,stale:!i&&this.snapshot.rows.length>0}),f}if(e.generation!==this.generation||this.recovering)return f;try{if(new TextEncoder().encode(JSON.stringify(e)).length>256*1024)return this.fail();if(!m(e.sequence)||BigInt(e.sequence)!==this.sequence+1n)return this.fail();const n=e.payload;if(n.metadata.count.kind!=="unknown"&&!m(n.metadata.count.value))return this.fail();let i;if(n.kind==="open"){if(this.opened||n.rows.length>this.maxRows)return this.fail();if(i=n.rows.slice(),i.some(s=>!y(s))||new Set(i.map(s=>s.key)).size!==i.length)return this.fail()}else{if(!this.opened||n.changes.length>128)return this.fail();i=this.snapshot.rows.slice();for(const s of n.changes)if(s.kind==="enter"){if(!y(s.row)||i.some(h=>h.key===s.row.key)||!x(s.index,i.length)||i.length>=this.maxRows)return this.fail();i.splice(s.index,0,s.row)}else{const h=i.findIndex(g=>g.key===s.key);if(h<0)return this.fail();if(s.kind==="update"){if(!y(s.row)||s.row.key!==s.key)return this.fail();i[h]=s.row}else if(s.kind==="move"){const[g]=i.splice(h,1);if(!x(s.index,i.length))return this.fail();i.splice(s.index,0,g)}else if(s.kind==="leave"||s.kind==="delete")i.splice(h,1);else return this.fail()}}return this.sequence=BigInt(e.sequence),this.opened=!0,this.publish({status:"ready",generation:this.generation,rows:i,metadata:n.metadata,stale:!1}),f}catch{return this.fail()}}fail(){return this.generation?this.recovering?f:(this.recovering=!0,this.publish({...this.snapshot,status:"recovering",stale:this.snapshot.rows.length>0}),{kind:"recover",generation:this.generation}):(this.close(),{kind:"reopen"})}publish(e){this.snapshot=q(e)}}let J=class _{running;url;source;error;constructor(e={}){"running"in e||(this.running=!1),"url"in e||(this.url=""),"source"in e||(this.source=""),"error"in e||(this.error=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new _(n)}};function U(){return r.ByID(3755720097).then(t=>V(t))}const V=J.createFrom,W=Object.freeze(Object.defineProperty({__proto__:null,GetStatus:U},Symbol.toStringTag,{value:"Module"}));class D{pid;startIdentity;executable;constructor(e={}){"pid"in e||(this.pid=0),"startIdentity"in e||(this.startIdentity=""),"executable"in e||(this.executable=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new D(n)}}class v{key;role;pluginID;ownership;identity;windows;windowAssociation;evidence;error;constructor(e={}){"key"in e||(this.key=""),"role"in e||(this.role=""),"pluginID"in e||(this.pluginID=""),"ownership"in e||(this.ownership=""),"identity"in e||(this.identity=null),"windows"in e||(this.windows=[]),"windowAssociation"in e||(this.windowAssociation=""),"evidence"in e||(this.evidence=""),"error"in e||(this.error=""),Object.assign(this,e)}static createFrom(e={}){const n=Z,i=X;let s=typeof e=="string"?JSON.parse(e):e;return"identity"in s&&(s.identity=n(s.identity)),"windows"in s&&(s.windows=i(s.windows)),new v(s)}}class k{observedAt;processes;constructor(e={}){"observedAt"in e||(this.observedAt="0001-01-01T00:00:00.000Z"),"processes"in e||(this.processes=[]),Object.assign(this,e)}static createFrom(e={}){const n=Y;let i=typeof e=="string"?JSON.parse(e):e;return"processes"in i&&(i.processes=n(i.processes)),new k(i)}}class O{name;id;nativeID;ownership;error;constructor(e={}){"name"in e||(this.name=""),"id"in e||(this.id=0),"nativeID"in e||(this.nativeID=0),"ownership"in e||(this.ownership=""),"error"in e||(this.error=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new O(n)}}const Q=D.createFrom,Z=c.Nullable(Q),H=O.createFrom,X=c.Array(H),K=v.createFrom,Y=c.Array(K);function $(){return r.ByID(3873589115).then(t=>ee(t))}const ee=k.createFrom,te=Object.freeze(Object.defineProperty({__proto__:null,GetSnapshot:$},Symbol.toStringTag,{value:"Module"}));class B{supported;enabled;engine;window;application;target;error;constructor(e={}){"supported"in e||(this.supported=!1),"enabled"in e||(this.enabled=!1),"engine"in e||(this.engine=""),"window"in e||(this.window=""),"application"in e||(this.application=""),"target"in e||(this.target=""),"error"in e||(this.error=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new B(n)}}function ne(t){return r.ByID(2352399502,t).then(e=>ie(e))}const ie=B.createFrom,re=Object.freeze(Object.defineProperty({__proto__:null,GetStatus:ne},Symbol.toStringTag,{value:"Module"}));function se(t,e){return r.ByID(1112300727,t,e)}function ae(t){return r.ByID(3545575747,t)}function oe(){return r.ByID(973353934).then(t=>De(t))}function ce(){return r.ByID(3274001154).then(t=>ve(t))}function le(){return r.ByID(1957733758).then(t=>Oe(t))}function de(){return r.ByID(3570265771).then(t=>Te(t))}function ue(){return r.ByID(338269344).then(t=>Ae(t))}function fe(t){return r.ByID(2544305887,t).then(e=>xe(e))}function pe(t,e){return r.ByID(1042852749,t,e)}function he(){return r.ByID(3071199936)}function ye(t){return r.ByID(2852029597,t)}function ge(t){return r.ByID(2119350976,t)}function me(t,e,n){return r.ByID(1507504662,t,e,n)}function be(t){return r.ByID(4286704285,t)}function Ie(t,e){return r.ByID(323373508,t,e)}function Se(t){return r.ByID(2912056327,t)}function we(t,e,n){return r.ByID(3748367702,t,e,n)}const De=p.ConfigView.createFrom,ve=p.Status.createFrom,ke=p.ConnectionPolicyView.createFrom,Oe=c.Array(ke),Be=p.PendingConfirmation.createFrom,Te=c.Array(Be),Fe=p.PresetView.createFrom,Ae=c.Array(Fe),je=p.ToolView.createFrom,xe=c.Array(je),Ne=Object.freeze(Object.defineProperty({__proto__:null,ApplyPreset:se,DeleteUserPreset:ae,GetConfig:oe,GetStatus:ce,ListConnectionPolicies:le,ListPendingConfirmations:de,ListPresets:ue,ListTools:fe,ResolveConfirmation:pe,RotateToken:he,SaveUserPreset:ye,SetBlockConnectionsByDefault:ge,SetConnectionAccess:me,SetEnabled:be,SetPluginEnabled:Ie,SetPort:Se,SetToolOverride:we},Symbol.toStringTag,{value:"Module"}));function _e(t){return r.ByID(3503478684,t)}const Ce=Object.freeze(Object.defineProperty({__proto__:null,DetectLanguage:_e},Symbol.toStringTag,{value:"Module"}));function Pe(t,e){return r.ByID(2691208406,t,e)}function Ee(t,e){return r.ByID(3932965591,t,e)}function Ge(t,e){return r.ByID(1686862755,t,e)}function Re(t,e,n){return r.ByID(3705442919,t,e,n)}function Me(t){return r.ByID(3024854267,t)}function Le(t){return r.ByID(3423289677,t)}function qe(t){return r.ByID(158417611,t)}function ze(t){return r.ByID(3413815733,t)}function Je(t,e){return r.ByID(2047870999,t,e)}const Ue=Object.freeze(Object.defineProperty({__proto__:null,Debug:Pe,Error:Ee,Info:Ge,Log:Re,ReadLog:Me,ReportStartupReady:Le,StartTail:qe,StopTail:ze,Warn:Je},Symbol.toStringTag,{value:"Module"}));class T{windowName;token;pending;constructor(e={}){"windowName"in e||(this.windowName=""),"token"in e||(this.token=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new T(n)}}function Ve(){return r.ByID(2260974144).then(t=>Ze(t))}function We(t,e,n,i){return r.ByID(286400678,t,e,n,i)}function Qe(t){return r.ByID(1772773955,t)}const Ze=T.createFrom,He=Object.freeze(Object.defineProperty({__proto__:null,Register:Ve,Respond:We,Unregister:Qe},Symbol.toStringTag,{value:"Module"}));function Xe(t,e){return r.ByID(712656304,t,e).then(n=>at(n))}function Ke(t){return r.ByID(4153226260,t).then(e=>b(e))}function Ye(t){return r.ByID(1859413816,t)}function $e(){return r.ByID(2707386443).then(t=>ot(t))}function et(t){return r.ByID(2381063937,t)}function tt(t){return r.ByID(123659362,t).then(e=>b(e))}function nt(t){return r.ByID(709599671,t).then(e=>b(e))}function it(t,e){return r.ByID(2105869281,t,e).then(n=>b(n))}function rt(t){return r.ByID(1371062537,t)}const st=p.LogEntry.createFrom,at=c.Array(st),b=p.DevServerState.createFrom,ot=c.Array(b),ct=Object.freeze(Object.defineProperty({__proto__:null,GetDevServerLogs:Xe,GetDevServerState:Ke,IsManaged:Ye,ListDevServerStates:$e,RebuildPlugin:et,RestartDevServer:tt,StartDevServer:nt,StartDevServerForPath:it,StopDevServer:rt},Symbol.toStringTag,{value:"Module"}));function lt(t,e){return r.ByID(1867216983,t,e).then(n=>C(n))}function dt(){return r.ByID(3418650705).then(t=>yt(t))}function ut(t,e){return r.ByID(4138610615,t,e).then(n=>C(n))}function ft(t){return r.ByID(3055914536,t)}function pt(t){return r.ByID(1502487629,t)}const ht=p.LogEntry$1.createFrom,C=c.Array(ht),yt=c.Array(c.Any),gt=Object.freeze(Object.defineProperty({__proto__:null,GetLogs:lt,ListStreams:dt,SearchLogs:ut,Subscribe:ft,Unsubscribe:pt},Symbol.toStringTag,{value:"Module"}));class I{browser;vite;hmr;mcp;control;health;constructor(e={}){"browser"in e||(this.browser=null),"vite"in e||(this.vite=null),"hmr"in e||(this.hmr=null),"mcp"in e||(this.mcp=null),"control"in e||(this.control=null),"health"in e||(this.health=null),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new I(n)}}let mt=class P{code;message;details;constructor(e={}){"code"in e||(this.code=""),"message"in e||(this.message=""),Object.assign(this,e)}static createFrom(e={}){const n=bt;let i=typeof e=="string"?JSON.parse(e):e;return"details"in i&&(i.details=n(i.details)),new P(i)}};class F{schemaVersion;workspaceID;instanceID;generation;kind;channel;displayName;stateRoot;process;version;commit;repositories;endpoints;plugins;readiness;lastError;startedAt;constructor(e={}){"schemaVersion"in e||(this.schemaVersion=0),"workspaceID"in e||(this.workspaceID=""),"instanceID"in e||(this.instanceID=""),"generation"in e||(this.generation=""),"kind"in e||(this.kind=""),"channel"in e||(this.channel=""),"displayName"in e||(this.displayName=""),"stateRoot"in e||(this.stateRoot=""),"process"in e||(this.process=new S),"version"in e||(this.version=""),"commit"in e||(this.commit=""),"repositories"in e||(this.repositories=[]),"endpoints"in e||(this.endpoints=new I),"plugins"in e||(this.plugins=[]),"readiness"in e||(this.readiness=""),"startedAt"in e||(this.startedAt="0001-01-01T00:00:00.000Z"),Object.assign(this,e)}static createFrom(e={}){const n=It,i=wt,s=Dt,h=kt,g=E;let l=typeof e=="string"?JSON.parse(e):e;return"process"in l&&(l.process=n(l.process)),"repositories"in l&&(l.repositories=i(l.repositories)),"endpoints"in l&&(l.endpoints=s(l.endpoints)),"plugins"in l&&(l.plugins=h(l.plugins)),"lastError"in l&&(l.lastError=g(l.lastError)),new F(l)}}class A{id;version;source;generation;mode;buildStatus;viteStatus;rpcStatus;controllerStatus;operationID;lastError;constructor(e={}){"id"in e||(this.id=""),"version"in e||(this.version=""),"source"in e||(this.source=""),"generation"in e||(this.generation=""),"mode"in e||(this.mode=""),"buildStatus"in e||(this.buildStatus=""),"viteStatus"in e||(this.viteStatus=""),"rpcStatus"in e||(this.rpcStatus=""),"controllerStatus"in e||(this.controllerStatus=""),Object.assign(this,e)}static createFrom(e={}){const n=E;let i=typeof e=="string"?JSON.parse(e):e;return"lastError"in i&&(i.lastError=n(i.lastError)),new A(i)}}class S{pid;startIdentity;executable;workspaceID;generation;role;source;constructor(e={}){"pid"in e||(this.pid=0),"startIdentity"in e||(this.startIdentity=""),"executable"in e||(this.executable=""),"workspaceID"in e||(this.workspaceID=""),"generation"in e||(this.generation=""),"role"in e||(this.role=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new S(n)}}class j{id;path;ref;commit;constructor(e={}){"id"in e||(this.id=""),"path"in e||(this.path=""),"ref"in e||(this.ref=""),"commit"in e||(this.commit=""),Object.assign(this,e)}static createFrom(e={}){let n=typeof e=="string"?JSON.parse(e):e;return new j(n)}}const bt=c.Map(c.Any,c.Any),It=S.createFrom,St=j.createFrom,wt=c.Array(St),Dt=I.createFrom,vt=A.createFrom,kt=c.Array(vt),Ot=mt.createFrom,E=c.Nullable(Ot);function Bt(){return r.ByID(678226073).then(t=>xt(t))}function Tt(){return r.ByID(1706570792)}function Ft(t){return r.ByID(2957909098,t).then(e=>Nt(e))}function At(t){return r.ByID(473489213,t)}function jt(t,e){return r.ByID(3778694836,t,e)}const xt=F.createFrom,Nt=c.Array(c.Any);exports.DataClient=u.servicewrapper;exports.ExecClient=u.exec;exports.GraphClient=u.graphClient;exports.LogsClient=u.logs;exports.MetricClient=u.metric;exports.NetworkerClient=u.networker;exports.PluginManager=u.servicewrapper$1;exports.ResourceClient=u.client;exports.SettingsService=u.binding;exports.UIClient=u.servicewrapper$2;exports.WindowClient=u.service;exports.DevServerManager=ct;exports.DiagnosticsClient=Ue;exports.ExtensionDiagnosticsClient=He;exports.GetInstanceInfo=Bt;exports.GetOperatingSystem=Tt;exports.HostProfiling=W;exports.McpRelayClient=Ne;exports.OpenFileSelectionDialog=Ft;exports.PluginLogManager=gt;exports.ProcessInventory=te;exports.QueryLeaseObserver=z;exports.SaveFileDialog=At;exports.UiInspection=re;exports.UtilsClient=Ce;exports.WriteFileContent=jt;
|
package/dist/api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as Ht, e as Qt, g as Xt, l as Kt, m as Yt, n as $t, a as en, c as tn, b as nn, d as rn, f as sn } from "./service-
|
|
1
|
+
import { s as Ht, e as Qt, g as Xt, l as Kt, m as Yt, n as $t, a as en, c as tn, b as nn, d as rn, f as sn } from "./service-CDYj21m9.js";
|
|
2
2
|
import { A as l, N, a as m, M as R } from "./index-zyAgCXOO.js";
|
|
3
|
-
import { B as r } from "./
|
|
3
|
+
import { B as r } from "./events-CgnLM6iV.js";
|
|
4
4
|
import { C as M, S as L, a as z, P as J, b as q, T as B, D as U, L as V, c as W } from "./models-CcH0zldZ.js";
|
|
5
5
|
const d = {
|
|
6
6
|
kind: "none"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { n as o, o as r } from "./index-zyAgCXOO.js";
|
|
2
|
+
const t = o(r.Browser), n = 0;
|
|
3
|
+
function s(e) {
|
|
4
|
+
return t(n, { url: e.toString() });
|
|
5
|
+
}
|
|
6
|
+
const a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7
|
+
__proto__: null,
|
|
8
|
+
OpenURL: s
|
|
9
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
10
|
+
export {
|
|
11
|
+
s as O,
|
|
12
|
+
a as b
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./index-BVi9X4oU.cjs"),n=e.newRuntimeCaller(e.objectNames.Browser),o=0;function r(t){return n(o,{url:t.toString()})}const s=Object.freeze(Object.defineProperty({__proto__:null,OpenURL:r},Symbol.toStringTag,{value:"Module"}));exports.OpenURL=r;exports.browser=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("./index-BVi9X4oU.cjs");var B=Function.prototype.toString,h=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,C,S;if(typeof h=="function"&&typeof Object.defineProperty=="function")try{C=Object.defineProperty({},"length",{get:function(){throw S}}),S={},h(function(){throw 42},null,C)}catch(n){n!==S&&(h=null)}else h=null;var H=/^\s*class\b/,b=function(e){try{var i=B.call(e);return H.test(i)}catch{return!1}},y=function(e){try{return b(e)?!1:(B.call(e),!0)}catch{return!1}},A=Object.prototype.toString,Z="[object Object]",K="[object Function]",_="[object GeneratorFunction]",q="[object HTMLAllCollection]",G="[object HTML document.all class]",J="[object HTMLCollection]",$=typeof Symbol=="function"&&!!Symbol.toStringTag,Q=!(0 in[,]),U=function(){return!1};if(typeof document=="object"){var X=document.all;A.call(X)===A.call(document.all)&&(U=function(e){if((Q||!e)&&(typeof e>"u"||typeof e=="object"))try{var i=A.call(e);return(i===q||i===G||i===J||i===Z)&&e("")==null}catch{}return!1})}function Y(n){if(U(n))return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;try{h(n,null,C)}catch(e){if(e!==S)return!1}return!b(n)&&y(n)}function ee(n){if(U(n))return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;if($)return y(n);if(b(n))return!1;var e=A.call(n);return e!==K&&e!==_&&!/^\[object HTML/.test(e)?!1:y(n)}const p=h?Y:ee;var v;class M extends Error{constructor(e,i){super(e,i),this.name="CancelError"}}class D extends Error{constructor(e,i,o){super((o??"Unhandled rejection in cancelled promise.")+" Reason: "+ie(i),{cause:i}),this.promise=e,this.name="CancelledRejectionError"}}const W=Symbol("barrier"),E=Symbol("cancelImpl"),T=(v=Symbol.species)!==null&&v!==void 0?v:Symbol("speciesPolyfill");class r extends Promise{constructor(e,i){let o,t;if(super((l,g)=>{o=l,t=g}),this.constructor[T]!==Promise)throw new TypeError("CancellablePromise does not support transparent subclassing. Please refrain from overriding the [Symbol.species] static property.");let d={promise:this,resolve:o,reject:t,get oncancelled(){return i??null},set oncancelled(l){i=l??void 0}};const a={get root(){return a},resolving:!1,settled:!1};Object.defineProperties(this,{[W]:{configurable:!1,enumerable:!1,writable:!0,value:null},[E]:{configurable:!1,enumerable:!1,writable:!1,value:k(d,a)}});const c=L(d,a);try{e(x(d,a),c)}catch(l){a.resolving?console.log("Unhandled exception in CancellablePromise executor.",l):c(l)}}cancel(e){return new r(i=>{Promise.all([this[E](new M("Promise cancelled.",{cause:e})),ne(this)]).then(()=>i(),()=>i())})}cancelOn(e){return e.aborted?this.cancel(e.reason):e.addEventListener("abort",()=>{this.cancel(e.reason)},{capture:!0}),this}then(e,i,o){if(!(this instanceof r))throw new TypeError("CancellablePromise.prototype.then called on an invalid object.");if(p(e)||(e=P),p(i)||(i=j),e===P&&i==j)return new r(d=>d(this));const t={};return this[W]=t,new r((d,a)=>{super.then(c=>{var l;this[W]===t&&(this[W]=null),(l=t.resolve)===null||l===void 0||l.call(t);try{d(e(c))}catch(g){a(g)}},c=>{var l;this[W]===t&&(this[W]=null),(l=t.resolve)===null||l===void 0||l.call(t);try{d(i(c))}catch(g){a(g)}})},async d=>{try{return o?.(d)}finally{await this.cancel(d)}})}catch(e,i){return this.then(void 0,e,i)}finally(e,i){if(!(this instanceof r))throw new TypeError("CancellablePromise.prototype.finally called on an invalid object.");return p(e)?this.then(o=>r.resolve(e()).then(()=>o),o=>r.resolve(e()).then(()=>{throw o}),i):this.then(e,e,i)}static get[T](){return Promise}static all(e){let i=Array.from(e);const o=i.length===0?r.resolve(i):new r((t,d)=>{Promise.all(i).then(t,d)},t=>f(o,i,t));return o}static allSettled(e){let i=Array.from(e);const o=i.length===0?r.resolve(i):new r((t,d)=>{Promise.allSettled(i).then(t,d)},t=>f(o,i,t));return o}static any(e){let i=Array.from(e);const o=i.length===0?r.resolve(i):new r((t,d)=>{Promise.any(i).then(t,d)},t=>f(o,i,t));return o}static race(e){let i=Array.from(e);const o=new r((t,d)=>{Promise.race(i).then(t,d)},t=>f(o,i,t));return o}static cancel(e){const i=new r(()=>{});return i.cancel(e),i}static timeout(e,i){const o=new r(()=>{});return AbortSignal&&typeof AbortSignal=="function"&&AbortSignal.timeout&&typeof AbortSignal.timeout=="function"?AbortSignal.timeout(e).addEventListener("abort",()=>{o.cancel(i)}):setTimeout(()=>{o.cancel(i)},e),o}static sleep(e,i){return new r(o=>{setTimeout(()=>o(i),e)})}static reject(e){return new r((i,o)=>o(e))}static resolve(e){return e instanceof r?e:new r(i=>i(e))}static withResolvers(){let e={oncancelled:null};return e.promise=new r((i,o)=>{e.resolve=i,e.reject=o},i=>{var o;(o=e.oncancelled)===null||o===void 0||o.call(e,i)}),e}}function k(n,e){let i;return o=>{if(e.settled||(e.settled=!0,e.reason=o,n.reject(o),Promise.prototype.then.call(n.promise,void 0,t=>{if(t!==o)throw t})),!(!e.reason||!n.oncancelled))return i=new Promise(t=>{try{t(n.oncancelled(e.reason.cause))}catch(d){Promise.reject(new D(n.promise,d,"Unhandled exception in oncancelled callback."))}}).catch(t=>{Promise.reject(new D(n.promise,t,"Unhandled rejection in oncancelled callback."))}),n.oncancelled=null,i}}function x(n,e){return i=>{if(!e.resolving){if(e.resolving=!0,i===n.promise){if(e.settled)return;e.settled=!0,n.reject(new TypeError("A promise cannot be resolved with itself."));return}if(i!=null&&(typeof i=="object"||typeof i=="function")){let o;try{o=i.then}catch(t){e.settled=!0,n.reject(t);return}if(p(o)){try{let a=i.cancel;if(p(a)){const c=l=>{Reflect.apply(a,i,[l])};e.reason?k(Object.assign(Object.assign({},n),{oncancelled:c}),e)(e.reason):n.oncancelled=c}}catch{}const t={root:e.root,resolving:!1,get settled(){return this.root.settled},set settled(a){this.root.settled=a},get reason(){return this.root.reason}},d=L(n,t);try{Reflect.apply(o,i,[x(n,t),d])}catch(a){d(a)}return}}e.settled||(e.settled=!0,n.resolve(i))}}}function L(n,e){return i=>{if(!e.resolving)if(e.resolving=!0,e.settled){try{if(i instanceof M&&e.reason instanceof M&&Object.is(i.cause,e.reason.cause))return}catch{}Promise.reject(new D(n.promise,i))}else e.settled=!0,n.reject(i)}}function f(n,e,i){const o=[];for(const t of e){let d;try{if(!p(t.then)||(d=t.cancel,!p(d)))continue}catch{continue}let a;try{a=Reflect.apply(d,t,[i])}catch(c){Promise.reject(new D(n,c,"Unhandled exception in cancel method."));continue}a&&o.push((a instanceof Promise?a:Promise.resolve(a)).catch(c=>{Promise.reject(new D(n,c,"Unhandled rejection in cancel method."))}))}return Promise.all(o)}function P(n){return n}function j(n){throw n}function ie(n){try{if(n instanceof Error||typeof n!="object"||n.toString!==Object.prototype.toString)return""+n}catch{}try{return JSON.stringify(n)}catch{}try{return Object.prototype.toString.call(n)}catch{}return"<could not convert error to string>"}function ne(n){var e;let i=(e=n[W])!==null&&e!==void 0?e:{};return"promise"in i||Object.assign(i,u()),n[W]==null&&(i.resolve(),n[W]=i),i.promise}let u=Promise.withResolvers;u&&typeof u=="function"?u=u.bind(Promise):u=function(){let n,e;return{promise:new Promise((o,t)=>{n=o,e=t}),resolve:n,reject:e}};s.hasDOM&&(window._wails=window._wails||{});const oe=s.newRuntimeCaller(s.objectNames.Call),te=s.newRuntimeCaller(s.objectNames.CancelCall),m=new Map,de=0,ae=0;function re(){let n;do n=s.nanoid();while(m.has(n));return n}function O(n){const e=re(),i=r.withResolvers(),o={resolve:i.resolve,reject:i.reject};m.set(e,o);const t=oe(de,Object.assign({"call-id":e},n));let d=!0;t.then(c=>{d=!1,m.get(e)===o&&(m.delete(e),o.resolve(c))},c=>{d=!1,m.get(e)===o&&(m.delete(e),o.reject(c))});const a=()=>(m.delete(e),te(ae,{"call-id":e}).catch(c=>{console.error("Error while requesting binding call cancellation:",c)}));return i.oncancelled=()=>d?a():t.then(a),i.promise}function N(n,...e){return O({methodName:n,args:e})}function I(n,...e){return O({methodID:n,args:e})}const ce=Object.freeze(Object.defineProperty({__proto__:null,ByID:I,ByName:N,Call:O,RuntimeError:s.RuntimeError},Symbol.toStringTag,{value:"Module"})),w=new Map;class le{constructor(e,i,o){this.eventName=e,this.callback=i,this.maxCallbacks=o||-1}dispatch(e){try{this.callback(e)}catch(i){console.error(i)}return this.maxCallbacks===-1?!1:(this.maxCallbacks-=1,this.maxCallbacks===0)}}function se(n){let e=w.get(n.eventName);e&&(e=e.filter(i=>i!==n),e.length===0?w.delete(n.eventName):w.set(n.eventName,e))}const we=Object.freeze({Windows:Object.freeze({APMPowerSettingChange:"windows:APMPowerSettingChange",APMPowerStatusChange:"windows:APMPowerStatusChange",APMResumeAutomatic:"windows:APMResumeAutomatic",APMResumeSuspend:"windows:APMResumeSuspend",APMSuspend:"windows:APMSuspend",ApplicationStarted:"windows:ApplicationStarted",SystemThemeChanged:"windows:SystemThemeChanged",WebViewNavigationCompleted:"windows:WebViewNavigationCompleted",WindowActive:"windows:WindowActive",WindowBackgroundErase:"windows:WindowBackgroundErase",WindowClickActive:"windows:WindowClickActive",WindowClosing:"windows:WindowClosing",WindowDidMove:"windows:WindowDidMove",WindowDidResize:"windows:WindowDidResize",WindowDPIChanged:"windows:WindowDPIChanged",WindowDragDrop:"windows:WindowDragDrop",WindowDragEnter:"windows:WindowDragEnter",WindowDragLeave:"windows:WindowDragLeave",WindowDragOver:"windows:WindowDragOver",WindowEndMove:"windows:WindowEndMove",WindowEndResize:"windows:WindowEndResize",WindowFullscreen:"windows:WindowFullscreen",WindowHide:"windows:WindowHide",WindowInactive:"windows:WindowInactive",WindowKeyDown:"windows:WindowKeyDown",WindowKeyUp:"windows:WindowKeyUp",WindowKillFocus:"windows:WindowKillFocus",WindowNonClientHit:"windows:WindowNonClientHit",WindowNonClientMouseDown:"windows:WindowNonClientMouseDown",WindowNonClientMouseLeave:"windows:WindowNonClientMouseLeave",WindowNonClientMouseMove:"windows:WindowNonClientMouseMove",WindowNonClientMouseUp:"windows:WindowNonClientMouseUp",WindowPaint:"windows:WindowPaint",WindowRestore:"windows:WindowRestore",WindowSetFocus:"windows:WindowSetFocus",WindowShow:"windows:WindowShow",WindowStartMove:"windows:WindowStartMove",WindowStartResize:"windows:WindowStartResize",WindowUnFullscreen:"windows:WindowUnFullscreen",WindowZOrderChanged:"windows:WindowZOrderChanged",WindowMinimise:"windows:WindowMinimise",WindowUnMinimise:"windows:WindowUnMinimise",WindowMaximise:"windows:WindowMaximise",WindowUnMaximise:"windows:WindowUnMaximise"}),Mac:Object.freeze({ApplicationDidBecomeActive:"mac:ApplicationDidBecomeActive",ApplicationDidChangeBackingProperties:"mac:ApplicationDidChangeBackingProperties",ApplicationDidChangeEffectiveAppearance:"mac:ApplicationDidChangeEffectiveAppearance",ApplicationDidChangeIcon:"mac:ApplicationDidChangeIcon",ApplicationDidChangeOcclusionState:"mac:ApplicationDidChangeOcclusionState",ApplicationDidChangeScreenParameters:"mac:ApplicationDidChangeScreenParameters",ApplicationDidChangeStatusBarFrame:"mac:ApplicationDidChangeStatusBarFrame",ApplicationDidChangeStatusBarOrientation:"mac:ApplicationDidChangeStatusBarOrientation",ApplicationDidChangeTheme:"mac:ApplicationDidChangeTheme",ApplicationDidFinishLaunching:"mac:ApplicationDidFinishLaunching",ApplicationDidHide:"mac:ApplicationDidHide",ApplicationDidResignActive:"mac:ApplicationDidResignActive",ApplicationDidUnhide:"mac:ApplicationDidUnhide",ApplicationDidUpdate:"mac:ApplicationDidUpdate",ApplicationDidWake:"mac:ApplicationDidWake",ApplicationScreensDidSleep:"mac:ApplicationScreensDidSleep",ApplicationScreensDidWake:"mac:ApplicationScreensDidWake",ApplicationShouldHandleReopen:"mac:ApplicationShouldHandleReopen",ApplicationWillBecomeActive:"mac:ApplicationWillBecomeActive",ApplicationWillFinishLaunching:"mac:ApplicationWillFinishLaunching",ApplicationWillHide:"mac:ApplicationWillHide",ApplicationWillResignActive:"mac:ApplicationWillResignActive",ApplicationWillSleep:"mac:ApplicationWillSleep",ApplicationWillTerminate:"mac:ApplicationWillTerminate",ApplicationWillUnhide:"mac:ApplicationWillUnhide",ApplicationWillUpdate:"mac:ApplicationWillUpdate",MenuDidAddItem:"mac:MenuDidAddItem",MenuDidBeginTracking:"mac:MenuDidBeginTracking",MenuDidClose:"mac:MenuDidClose",MenuDidDisplayItem:"mac:MenuDidDisplayItem",MenuDidEndTracking:"mac:MenuDidEndTracking",MenuDidHighlightItem:"mac:MenuDidHighlightItem",MenuDidOpen:"mac:MenuDidOpen",MenuDidPopUp:"mac:MenuDidPopUp",MenuDidRemoveItem:"mac:MenuDidRemoveItem",MenuDidSendAction:"mac:MenuDidSendAction",MenuDidSendActionToItem:"mac:MenuDidSendActionToItem",MenuDidUpdate:"mac:MenuDidUpdate",MenuWillAddItem:"mac:MenuWillAddItem",MenuWillBeginTracking:"mac:MenuWillBeginTracking",MenuWillDisplayItem:"mac:MenuWillDisplayItem",MenuWillEndTracking:"mac:MenuWillEndTracking",MenuWillHighlightItem:"mac:MenuWillHighlightItem",MenuWillOpen:"mac:MenuWillOpen",MenuWillPopUp:"mac:MenuWillPopUp",MenuWillRemoveItem:"mac:MenuWillRemoveItem",MenuWillSendAction:"mac:MenuWillSendAction",MenuWillSendActionToItem:"mac:MenuWillSendActionToItem",MenuWillUpdate:"mac:MenuWillUpdate",WebViewDidCommitNavigation:"mac:WebViewDidCommitNavigation",WebViewDidFinishNavigation:"mac:WebViewDidFinishNavigation",WebViewDidReceiveServerRedirectForProvisionalNavigation:"mac:WebViewDidReceiveServerRedirectForProvisionalNavigation",WebViewDidStartProvisionalNavigation:"mac:WebViewDidStartProvisionalNavigation",WindowDidBecomeKey:"mac:WindowDidBecomeKey",WindowDidBecomeMain:"mac:WindowDidBecomeMain",WindowDidBeginSheet:"mac:WindowDidBeginSheet",WindowDidChangeAlpha:"mac:WindowDidChangeAlpha",WindowDidChangeBackingLocation:"mac:WindowDidChangeBackingLocation",WindowDidChangeBackingProperties:"mac:WindowDidChangeBackingProperties",WindowDidChangeCollectionBehavior:"mac:WindowDidChangeCollectionBehavior",WindowDidChangeEffectiveAppearance:"mac:WindowDidChangeEffectiveAppearance",WindowDidChangeOcclusionState:"mac:WindowDidChangeOcclusionState",WindowDidChangeOrderingMode:"mac:WindowDidChangeOrderingMode",WindowDidChangeScreen:"mac:WindowDidChangeScreen",WindowDidChangeScreenParameters:"mac:WindowDidChangeScreenParameters",WindowDidChangeScreenProfile:"mac:WindowDidChangeScreenProfile",WindowDidChangeScreenSpace:"mac:WindowDidChangeScreenSpace",WindowDidChangeScreenSpaceProperties:"mac:WindowDidChangeScreenSpaceProperties",WindowDidChangeSharingType:"mac:WindowDidChangeSharingType",WindowDidChangeSpace:"mac:WindowDidChangeSpace",WindowDidChangeSpaceOrderingMode:"mac:WindowDidChangeSpaceOrderingMode",WindowDidChangeTitle:"mac:WindowDidChangeTitle",WindowDidChangeToolbar:"mac:WindowDidChangeToolbar",WindowDidDeminiaturize:"mac:WindowDidDeminiaturize",WindowDidEndSheet:"mac:WindowDidEndSheet",WindowDidEnterFullScreen:"mac:WindowDidEnterFullScreen",WindowDidEnterVersionBrowser:"mac:WindowDidEnterVersionBrowser",WindowDidExitFullScreen:"mac:WindowDidExitFullScreen",WindowDidExitVersionBrowser:"mac:WindowDidExitVersionBrowser",WindowDidExpose:"mac:WindowDidExpose",WindowDidFocus:"mac:WindowDidFocus",WindowDidMiniaturize:"mac:WindowDidMiniaturize",WindowDidMove:"mac:WindowDidMove",WindowDidOrderOffScreen:"mac:WindowDidOrderOffScreen",WindowDidOrderOnScreen:"mac:WindowDidOrderOnScreen",WindowDidResignKey:"mac:WindowDidResignKey",WindowDidResignMain:"mac:WindowDidResignMain",WindowDidResize:"mac:WindowDidResize",WindowDidUpdate:"mac:WindowDidUpdate",WindowDidUpdateAlpha:"mac:WindowDidUpdateAlpha",WindowDidUpdateCollectionBehavior:"mac:WindowDidUpdateCollectionBehavior",WindowDidUpdateCollectionProperties:"mac:WindowDidUpdateCollectionProperties",WindowDidUpdateShadow:"mac:WindowDidUpdateShadow",WindowDidUpdateTitle:"mac:WindowDidUpdateTitle",WindowDidUpdateToolbar:"mac:WindowDidUpdateToolbar",WindowDidZoom:"mac:WindowDidZoom",WindowFileDraggingEntered:"mac:WindowFileDraggingEntered",WindowFileDraggingExited:"mac:WindowFileDraggingExited",WindowFileDraggingPerformed:"mac:WindowFileDraggingPerformed",WindowHide:"mac:WindowHide",WindowMaximise:"mac:WindowMaximise",WindowUnMaximise:"mac:WindowUnMaximise",WindowMinimise:"mac:WindowMinimise",WindowUnMinimise:"mac:WindowUnMinimise",WindowShouldClose:"mac:WindowShouldClose",WindowShow:"mac:WindowShow",WindowWillBecomeKey:"mac:WindowWillBecomeKey",WindowWillBecomeMain:"mac:WindowWillBecomeMain",WindowWillBeginSheet:"mac:WindowWillBeginSheet",WindowWillChangeOrderingMode:"mac:WindowWillChangeOrderingMode",WindowWillClose:"mac:WindowWillClose",WindowWillDeminiaturize:"mac:WindowWillDeminiaturize",WindowWillEnterFullScreen:"mac:WindowWillEnterFullScreen",WindowWillEnterVersionBrowser:"mac:WindowWillEnterVersionBrowser",WindowWillExitFullScreen:"mac:WindowWillExitFullScreen",WindowWillExitVersionBrowser:"mac:WindowWillExitVersionBrowser",WindowWillFocus:"mac:WindowWillFocus",WindowWillMiniaturize:"mac:WindowWillMiniaturize",WindowWillMove:"mac:WindowWillMove",WindowWillOrderOffScreen:"mac:WindowWillOrderOffScreen",WindowWillOrderOnScreen:"mac:WindowWillOrderOnScreen",WindowWillResignMain:"mac:WindowWillResignMain",WindowWillResize:"mac:WindowWillResize",WindowWillUnfocus:"mac:WindowWillUnfocus",WindowWillUpdate:"mac:WindowWillUpdate",WindowWillUpdateAlpha:"mac:WindowWillUpdateAlpha",WindowWillUpdateCollectionBehavior:"mac:WindowWillUpdateCollectionBehavior",WindowWillUpdateCollectionProperties:"mac:WindowWillUpdateCollectionProperties",WindowWillUpdateShadow:"mac:WindowWillUpdateShadow",WindowWillUpdateTitle:"mac:WindowWillUpdateTitle",WindowWillUpdateToolbar:"mac:WindowWillUpdateToolbar",WindowWillUpdateVisibility:"mac:WindowWillUpdateVisibility",WindowWillUseStandardFrame:"mac:WindowWillUseStandardFrame",WindowZoomIn:"mac:WindowZoomIn",WindowZoomOut:"mac:WindowZoomOut",WindowZoomReset:"mac:WindowZoomReset",WebViewWebContentProcessDidTerminate:"mac:WebViewWebContentProcessDidTerminate"}),Linux:Object.freeze({ApplicationStartup:"linux:ApplicationStartup",SystemDidWake:"linux:SystemDidWake",SystemThemeChanged:"linux:SystemThemeChanged",SystemWillSleep:"linux:SystemWillSleep",WindowDeleteEvent:"linux:WindowDeleteEvent",WindowDidMove:"linux:WindowDidMove",WindowDidResize:"linux:WindowDidResize",WindowFocusIn:"linux:WindowFocusIn",WindowFocusOut:"linux:WindowFocusOut",WindowLoadStarted:"linux:WindowLoadStarted",WindowLoadRedirected:"linux:WindowLoadRedirected",WindowLoadCommitted:"linux:WindowLoadCommitted",WindowLoadFinished:"linux:WindowLoadFinished"}),iOS:Object.freeze({ApplicationDidBecomeActive:"ios:ApplicationDidBecomeActive",ApplicationDidEnterBackground:"ios:ApplicationDidEnterBackground",ApplicationDidFinishLaunching:"ios:ApplicationDidFinishLaunching",ApplicationDidReceiveMemoryWarning:"ios:ApplicationDidReceiveMemoryWarning",ApplicationWillEnterForeground:"ios:ApplicationWillEnterForeground",ApplicationWillResignActive:"ios:ApplicationWillResignActive",ApplicationWillTerminate:"ios:ApplicationWillTerminate",WindowDidLoad:"ios:WindowDidLoad",WindowWillAppear:"ios:WindowWillAppear",WindowDidAppear:"ios:WindowDidAppear",WindowWillDisappear:"ios:WindowWillDisappear",WindowDidDisappear:"ios:WindowDidDisappear",WindowSafeAreaInsetsChanged:"ios:WindowSafeAreaInsetsChanged",WindowOrientationChanged:"ios:WindowOrientationChanged",WindowTouchBegan:"ios:WindowTouchBegan",WindowTouchMoved:"ios:WindowTouchMoved",WindowTouchEnded:"ios:WindowTouchEnded",WindowTouchCancelled:"ios:WindowTouchCancelled",WebViewDidStartNavigation:"ios:WebViewDidStartNavigation",WebViewDidFinishNavigation:"ios:WebViewDidFinishNavigation",WebViewDidFailNavigation:"ios:WebViewDidFailNavigation",WebViewDecidePolicyForNavigationAction:"ios:WebViewDecidePolicyForNavigationAction",BatteryChanged:"ios:BatteryChanged",NetworkChanged:"ios:NetworkChanged",ThemeChanged:"ios:ThemeChanged",ScreenLocked:"ios:ScreenLocked",ScreenUnlocked:"ios:ScreenUnlocked"}),Android:Object.freeze({ActivityCreated:"android:ActivityCreated",ActivityStarted:"android:ActivityStarted",ActivityResumed:"android:ActivityResumed",ActivityPaused:"android:ActivityPaused",ActivityStopped:"android:ActivityStopped",ActivityDestroyed:"android:ActivityDestroyed",ApplicationLowMemory:"android:ApplicationLowMemory",WebViewPageStarted:"android:WebViewPageStarted",WebViewPageFinished:"android:WebViewPageFinished",BatteryChanged:"android:BatteryChanged",NetworkChanged:"android:NetworkChanged",ThemeChanged:"android:ThemeChanged",ScreenLocked:"android:ScreenLocked",ScreenUnlocked:"android:ScreenUnlocked"}),Common:Object.freeze({ApplicationOpenedWithFile:"common:ApplicationOpenedWithFile",ApplicationStarted:"common:ApplicationStarted",ApplicationLaunchedWithUrl:"common:ApplicationLaunchedWithUrl",ThemeChanged:"common:ThemeChanged",SystemDidWake:"common:SystemDidWake",SystemWillSleep:"common:SystemWillSleep",WindowClosing:"common:WindowClosing",WindowDidMove:"common:WindowDidMove",WindowDidResize:"common:WindowDidResize",WindowDPIChanged:"common:WindowDPIChanged",WindowFilesDropped:"common:WindowFilesDropped",WindowFocus:"common:WindowFocus",WindowFullscreen:"common:WindowFullscreen",WindowHide:"common:WindowHide",WindowLostFocus:"common:WindowLostFocus",WindowMaximise:"common:WindowMaximise",WindowMinimise:"common:WindowMinimise",WindowToggleFrameless:"common:WindowToggleFrameless",WindowRestore:"common:WindowRestore",WindowRuntimeReady:"common:WindowRuntimeReady",WindowShow:"common:WindowShow",WindowUnFullscreen:"common:WindowUnFullscreen",WindowUnMaximise:"common:WindowUnMaximise",WindowUnMinimise:"common:WindowUnMinimise",WindowZoom:"common:WindowZoom",WindowZoomIn:"common:WindowZoomIn",WindowZoomOut:"common:WindowZoomOut",WindowZoomReset:"common:WindowZoomReset",BatteryChanged:"common:BatteryChanged",NetworkChanged:"common:NetworkChanged",ScreenLocked:"common:ScreenLocked",ScreenUnlocked:"common:ScreenUnlocked",LowMemory:"common:LowMemory"})});s.hasDOM&&(window._wails=window._wails||{},window._wails.dispatchWailsEvent=pe);const We=s.newRuntimeCaller(s.objectNames.Events),me=0;class F{constructor(e,i){this.name=e,this.data=i??null}}function pe(n){let e=w.get(n.name);if(!e)return;let i=new F(n.name,n.name in s.Events?s.Events[n.name](n.data):n.data);"sender"in n&&(i.sender=n.sender);const o=new Set;for(const t of e.slice())t.dispatch(i)&&o.add(t);if(o.size>0){const t=w.get(n.name);if(t){const d=t.filter(a=>!o.has(a));d.length===0?w.delete(n.name):w.set(n.name,d)}}}function R(n,e,i){let o=w.get(n)||[];const t=new le(n,e,i);return o.push(t),w.set(n,o),()=>se(t)}function V(n,e){return R(n,e,-1)}function ue(n,e){return R(n,e,1)}function he(...n){n.forEach(e=>w.delete(e))}function ge(){w.clear()}function z(n,e){return We(me,new F(n,e))}const De=Object.freeze(Object.defineProperty({__proto__:null,Emit:z,Off:he,OffAll:ge,On:V,OnMultiple:R,Once:ue,Types:we,WailsEvent:F},Symbol.toStringTag,{value:"Module"}));exports.ByID=I;exports.ByName=N;exports.Emit=z;exports.On=V;exports.calls=ce;exports.events=De;
|