@omniviewdev/runtime 0.27.0 → 0.27.1
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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./index-BVi9X4oU.cjs"),y=require("./models-R2rKpSiU.cjs"),n=require("./events-B9wlH6cT.cjs");function d(e,t=[]){let l=0;for(const s of t){if(s.length>65536)throw new RangeError("Request routing byte limit");l+=new TextEncoder().encode(JSON.stringify(s)).length+1}if(l>57344)throw new RangeError("Request routing byte limit");let D=0,b=2,B=0,S=0;const m=[],f=s=>{for(let p=0;p<s.length;p++){const u=s.charCodeAt(p);let g=u<128?1:u<2048?2:3;if(u>=55296&&u<=56319){const w=s.charCodeAt(++p);if(!(w>=56320&&w<=57343))throw new TypeError("Invalid Unicode");g=4}else if(u>=56320&&u<=57343)throw new TypeError("Invalid Unicode");if(D+=g,b+=u===34||u===92?2:g,D>33554432||b>67043328)throw new RangeError("Request JSON byte limit")}m.push(s)},h=s=>{if(s.length>33554432)throw new RangeError("Request JSON byte limit");for(let p=0;p<s.length;p++){const u=s.charCodeAt(p);if(u>=55296&&u<=56319){const g=s.charCodeAt(++p);if(!(g>=56320&&g<=57343))throw new TypeError("Invalid Unicode")}else if(u>=56320&&u<=57343)throw new TypeError("Invalid Unicode")}f(JSON.stringify(s))},a=(s,p)=>{if(++B>262144||p>64)throw new RangeError("Request JSON structural limit");if(s===null){f("null");return}if(typeof s=="string"){h(s);return}if(typeof s=="boolean"){f(s?"true":"false");return}if(typeof s=="number"){if(!Number.isFinite(s))throw new TypeError("Request numbers must be finite");f(Object.is(s,-0)?"-0":JSON.stringify(s));return}if(Array.isArray(s)){f("[");for(let u=0;u<s.length;u++){if(++S>1048576)throw new RangeError("Request JSON field limit");u&&f(","),a(s[u],p+1)}f("]");return}if(typeof s=="object"){f("{");let u=!0;for(const[g,w]of Object.entries(s))if(w!==void 0){if(++S>1048576)throw new RangeError("Request JSON field limit");u||f(","),u=!1,h(g),f(":"),a(w,p+1)}f("}");return}throw new TypeError("Unsupported request JSON value")};return a(e,0),m.join("")}function lt(e){return n.ByID(93318075,e).then(t=>(t[0]=v(t[0]),t[1]=o.ByteSlice(t[1]),t))}function yt(e){return n.ByID(1353297556,e)}function pt(e){return n.ByID(4182196712,e).then(t=>v(t))}function ft(e){return n.ByID(3993344525,e).then(t=>v(t))}function q(e,t){return n.ByID(1779192716,e,t).then(r=>It(r))}function ht(){return n.ByID(4033362541).then(e=>wt(e))}function x(){return n.ByID(3434119522)}function dt(e){return n.ByID(2619212338,e).then(t=>U(t))}function St(e){return n.ByID(1371268636,e).then(t=>v(t))}function gt(e){return n.ByID(3881019319,e)}function mt(){return n.ByID(3006426324).then(e=>vt(e))}function $t(){return n.ByID(265791345).then(e=>Tt(e))}function Bt(e,t,r){return n.ByID(1492965384,e,t,r)}function Dt(e,t){return n.ByID(486465741,e,t)}const bt=y.Session.createFrom,v=o.Nullable(bt),z=y.Handler.createFrom,It=o.Nullable(z),U=o.Map(o.Any,z),wt=o.Map(o.Any,U),vt=o.Array(o.Any),Tt=o.Array(v);function Q(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/exec.ServiceWrapper.CreateSession",e,t,d(r,[e,t])).then(i=>i===null?null:y.Session.createFrom(i))}function W(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/exec.ServiceWrapper.OpenNativeSession",e,t,d(r,[e,t]))}const Pt=Object.freeze(Object.defineProperty({__proto__:null,AttachSession:lt,CloseSession:yt,CreateSession:Q,CreateTerminal:pt,DetachSession:ft,GetHandler:q,GetHandlers:ht,GetNativeTerminalSupport:x,GetPluginHandlers:dt,GetSession:St,HasPlugin:gt,ListPlugins:mt,ListSessions:$t,OpenNativeSession:W,ResizeSession:Bt,WriteSession:Dt},Symbol.toStringTag,{value:"Module"}));function X(e){return n.ByID(182596922,e).then(t=>F(t))}function K(e,t,r){return n.ByID(981100722,e,t,r).then(i=>O(i))}function Gt(e){return n.ByID(2157304970,e).then(t=>F(t))}function Ct(e){return n.ByID(650882,e).then(t=>Z(t))}function At(e){return n.ByID(3624690437,e)}function Y(){return n.ByID(2195697754).then(e=>O(e))}function Rt(){return n.ByID(167463150).then(e=>Z(e))}function Ft(e,t){return n.ByID(2090415403,e,t).then(r=>O(r))}const Ot=y.PortForwardSession.createFrom,F=o.Nullable(Ot),O=o.Array(F),Z=o.Array(o.Any);function ee(e,t,r){return n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/networker.ServiceWrapper.StartResourcePortForwardingSession",e,t,d(r,[e,t]))}const _t=Object.freeze(Object.defineProperty({__proto__:null,ClosePortForwardSession:X,FindPortForwardSessions:K,GetPortForwardSession:Gt,GetSupportedPortForwardTargets:Ct,HasPlugin:At,ListAllPortForwardSessions:Y,ListPlugins:Rt,ListPortForwardSessions:Ft,StartResourcePortForwardingSession:ee},Symbol.toStringTag,{value:"Module"}));class _{pluginID;running;url;error;supported;pid;constructor(t={}){"pluginID"in t||(this.pluginID=""),"running"in t||(this.running=!1),"url"in t||(this.url=""),"error"in t||(this.error=""),"supported"in t||(this.supported=!1),"pid"in t||(this.pid=0),Object.assign(this,t)}static createFrom(t={}){let r=typeof t=="string"?JSON.parse(t):t;return new _(r)}}function Nt(e){return n.ByID(3150413499,e).then(t=>$(t))}function Et(e){return n.ByID(1152913314,e).then(t=>rn(t))}function te(e){return n.ByID(111194374,e).then(t=>N(t))}function Lt(){return n.ByID(1083754477).then(e=>cn(e))}function Mt(e){return n.ByID(3945933305,e)}function jt(e){return n.ByID(2859775056,e).then(t=>re(t))}function kt(e,t){return n.ByID(2209599792,e,t).then(r=>an(r))}function Vt(e){return n.ByID(3963363730,e).then(t=>re(t))}function Ht(e){return n.ByID(1357029266,e).then(t=>$(t))}function Jt(){return n.ByID(2477486666).then(e=>G(e))}function qt(){return n.ByID(976517756).then(e=>G(e))}function xt(e){return n.ByID(1020548995,e).then(t=>G(t))}function zt(e,t){return n.ByID(2004740384,e,t).then(r=>G(r))}function Ut(){return n.ByID(873697101).then(e=>oe(e))}function Qt(){return n.ByID(637134283).then(e=>yn(e))}function Wt(){return n.ByID(550607756).then(e=>pn(e))}function Xt(e,t){return n.ByID(288660195,e,t).then(r=>$(r))}function Kt(e){return n.ByID(1771013494,e).then(t=>$(t))}function ne(e){return n.ByID(2433379724,e).then(t=>$(t))}function Yt(e,t,r){return n.ByID(2783597264,e,t,r).then(i=>oe(i))}function Zt(e,t){return n.ByID(2179374748,e,t).then(r=>$(r))}function en(e){return n.ByID(1369550929,e).then(t=>$(t))}function tn(e){return n.ByID(3828800061,e).then(t=>$(t))}const $=y.PluginInfo.createFrom,nn=y.DownloadStats.createFrom,rn=o.Nullable(nn),N=y.PluginMeta.createFrom,on=_.createFrom,cn=o.Array(on),sn=y.VersionInfo.createFrom,re=o.Array(sn),un=y.Review.createFrom,an=o.Array(un),G=o.Nullable(N),ln=y.AvailablePlugin.createFrom,oe=o.Array(ln),yn=o.Array(N),pn=o.Array($),fn=Object.freeze(Object.defineProperty({__proto__:null,GetPlugin:Nt,GetPluginDownloadStats:Et,GetPluginMeta:te,GetPluginProfilingStatuses:Lt,GetPluginReadme:Mt,GetPluginReleaseHistory:jt,GetPluginReviews:kt,GetPluginVersions:Vt,InstallDevPluginFromPath:Ht,InstallFromPathPrompt:Jt,InstallInDevMode:qt,InstallPluginFromPath:xt,InstallPluginVersion:zt,ListAvailablePlugins:Ut,ListPluginMetas:Qt,ListPlugins:Wt,LoadPlugin:Xt,ReloadPlugin:Kt,RetryFailedPlugin:ne,SearchPlugins:Yt,SetPluginEnabled:Zt,UninstallPlugin:en,UnlinkDevPlugin:tn},Symbol.toStringTag,{value:"Module"}));function ie(e,t){return n.ByID(1688967279,e,t).then(r=>ye(r))}function ce(e,t){return n.ByID(950535743,e,t).then(r=>E(r))}function hn(e){return n.ByID(854008408,e)}function se(){return n.ByID(1598984489).then(e=>gn(e))}function ue(e){return n.ByID(1775572154,e).then(t=>L(t))}function dn(){return n.ByID(3217612415).then(e=>mn(e))}function Sn(e){return n.ByID(2037329938,e).then(t=>L(t))}function ae(e,t){return n.ByID(3276991559,e,t).then(r=>ye(r))}function le(e,t){return n.ByID(794258089,e,t).then(r=>E(r))}const ye=y.ConnectionStatus.createFrom,E=y.Connection.createFrom,L=o.Array(E),gn=o.Map(o.Any,L),mn=o.Array(o.Any),$n="github.com/omniviewdev/omniview/backend/pkg/plugin/resource.ServiceWrapper";function c(e,...t){return n.ByName(`${$n}.${e}`,...t)}const Bn=e=>c("Features",e),pe=(e,t)=>c("GetConnectionMetadata",e,t),fe=(e,t)=>c("RefreshConnectionMetadata",e,t),he=(e,t)=>c("Catalog",e,t),de=(e,t)=>c("Get",e,t),Se=(e,t)=>c("Enumerate",e,t),ge=(e,t)=>c("NativeQuery",e,d(t,[e])),me=(e,t)=>c("Mutate",e,d(t,[e])),$e=(e,t)=>c("Action",e,d(t,[e])),Be=(e,t)=>c("ResolveTarget",e,t),Dn=(e,t)=>c("ResolveReference",e,t),bn=(e,t,r)=>c("GetSchemaDocument",e,t,r),De=()=>c("GetAllConnectionStates"),be=e=>c("ListConnectionProfiles",e),Ie=(e,t,r)=>c("SaveConnectionProfile",e,d(t,[e]),r??null),we=(e,t)=>c("ImportConnectionProfile",e,t),ve=(e,t)=>c("ResetConnectionProfile",e,t),Te=(e,t)=>c("RemoveConnection",e,t),Pe=(e,t)=>c("GetResourceGroups",e,t),In=(e,t,r)=>c("GetResourceDefinition",e,t,r),Ge=(e,t)=>c("GetSchemaFields",e,t),Ce=(e,t)=>c("GetEditorSchemas",e,t),Ae=(e,t,r)=>c("GetEditorSchemaDocument",e,t,r),wn=(e,t,r)=>c("GetRelationships",e,t,r),vn=(e,t)=>c("ResolveRelationships",e,t),Tn=(e,t,r)=>c("GetHealth",e,d({request:t,body:r},[e])),Pn=(e,t,r)=>c("GetResourceEvents",e,t,r),Re=(e,t,r)=>c("GetActions",e,t,r),Fe=(e,t)=>c("StreamAction",e,d(t,[e])),Oe=e=>c("AttachStreamAction",e),_e=e=>c("CancelStreamAction",e),Ne=(e,t)=>c("OpenSourceView",e,t),Ee=(e,t)=>c("SyncSourceView",e,t),Le=(e,t)=>c("RefreshSourceView",e,t),Me=(e,t)=>c("CloseSourceView",e,t),je=(e,t)=>c("GetSourceStates",e,t),ke=(e,t)=>c("RetryConnectionSources",e,t),Ve=(e,t,r)=>c("ScopeValues",e,t,r),Gn=Object.freeze(Object.defineProperty({__proto__:null,Action:$e,AttachStreamAction:Oe,CancelStreamAction:_e,Catalog:he,CheckConnection:ie,CloseSourceView:Me,Enumerate:Se,Features:Bn,Get:de,GetActions:Re,GetAllConnectionStates:De,GetConnection:ce,GetConnectionMetadata:pe,GetEditorSchemaDocument:Ae,GetEditorSchemas:Ce,GetHealth:Tn,GetRelationships:wn,GetResourceDefinition:In,GetResourceEvents:Pn,GetResourceGroups:Pe,GetSchemaDocument:bn,GetSchemaFields:Ge,GetSourceStates:je,HasPlugin:hn,ImportConnectionProfile:we,ListAllConnections:se,ListConnectionProfiles:be,ListConnections:ue,ListPlugins:dn,LoadConnections:Sn,Mutate:me,NativeQuery:ge,OpenSourceView:Ne,RefreshConnectionMetadata:fe,RefreshSourceView:Le,RemoveConnection:Te,ResetConnectionProfile:ve,ResolveReference:Dn,ResolveRelationships:vn,ResolveTarget:Be,RetryConnectionSources:ke,SaveConnectionProfile:Ie,ScopeValues:Ve,StartConnection:ae,StopConnection:le,StreamAction:Fe,SyncSourceView:Ee},Symbol.toStringTag,{value:"Module"})),C="github.com/omniviewdev/omniview/backend/pkg/plugin/resource.GraphService";function He(e,t,r,i,l){return n.ByName(`${C}.GetRelated`,e,t,r,i,l)}function Cn(e,t,r,i,l){return n.ByName(`${C}.GetRelationshipChain`,e,t,r,i,l)}function Je(e,t,r,i){return n.ByName(`${C}.GetDependencyTree`,e,t,r,i)}function qe(e,t,r,i,l){return n.ByName(`${C}.GetSubgraph`,e,t,r,i,l)}const An=Object.freeze(Object.defineProperty({__proto__:null,GetDependencyTree:Je,GetRelated:He,GetRelationshipChain:Cn,GetSubgraph:qe},Symbol.toStringTag,{value:"Module"}));class M{snapshot;applied;uncertain;message;constructor(t={}){"snapshot"in t||(this.snapshot=new T),"applied"in t||(this.applied=!1),"uncertain"in t||(this.uncertain=!1),"message"in t||(this.message=""),Object.assign(this,t)}static createFrom(t={}){const r=Rn;let i=typeof t=="string"?JSON.parse(t):t;return"snapshot"in i&&(i.snapshot=r(i.snapshot)),new M(i)}}class A{kind;pluginId;constructor(t={}){"kind"in t||(this.kind=""),Object.assign(this,t)}static createFrom(t={}){let r=typeof t=="string"?JSON.parse(t):t;return new A(r)}}class T{scope;categories;constructor(t={}){"scope"in t||(this.scope=new A),"categories"in t||(this.categories={}),Object.assign(this,t)}static createFrom(t={}){const r=Fn,i=P;let l=typeof t=="string"?JSON.parse(t):t;return"scope"in l&&(l.scope=r(l.scope)),"categories"in l&&(l.categories=i(l.categories)),new T(l)}}const Rn=T.createFrom,Fn=A.createFrom;var P=function e(...t){return P===e&&(P=_n),P(...t)};const On=y.Category.createFrom,_n=o.Map(o.Any,On);function xe(e,t){return n.ByID(1766083910,e,t).then(r=>Nn(r))}function ze(e){return n.ByID(3969198041,e).then(t=>En(t))}function Ue(e,t,r){return n.ByID(3964153809,e,t,r).then(i=>Ln(i))}const Nn=M.createFrom,En=T.createFrom,Ln=y.ValidationResult.createFrom,Mn=Object.freeze(Object.defineProperty({__proto__:null,Commit:xe,GetSnapshot:ze,Validate:Ue},Symbol.toStringTag,{value:"Module"}));function jn(e){return n.ByID(2106300110,e).then(t=>Vn(t))}function Qe(e){return n.ByID(765209827,e).then(t=>Hn(t))}function kn(e){return n.ByID(2355436169,e).then(t=>Xe(t))}const We=y.ResourceComponent.createFrom,Xe=o.Array(We),Vn=o.Map(o.Any,Xe),Hn=o.Nullable(We),Jn=Object.freeze(Object.defineProperty({__proto__:null,GetPluginComponents:jn,GetResourceAreaComponent:Qe,GetResourceComponents:kn},Symbol.toStringTag,{value:"Module"})),I=new Map,qn=1e4,H=8*1024*1024,xn=new TextEncoder,zn=100;function J(e){const t=Array.isArray(e)&&e.length===1&&typeof e[0]=="string"?e[0]:e;return typeof t=="string"?JSON.parse(t):t}function R(e,t){const r=n.On(`core/logs/lines/${e}`,i=>t.onLines(i.data));try{const i=n.On(`core/logs/event/${e}`,l=>t.onEvent(l.data));return()=>{r(),i()}}catch(i){throw r(),i}}function Un(e){if(I.has(e))throw new Error("Log session ID is already in use.");const t=[];let r=0;const i=[],l=new Map;let D=0;const b=R(e,{onLines(h){try{const a=J(h);if(!Array.isArray(a))return;for(const s of a){const p=xn.encode(JSON.stringify(s)).byteLength;for(;t.length&&(t.length>=qn||r+p>H);)r-=t.shift().bytes;p<=H&&(t.push({data:s,bytes:p}),r+=p)}}catch(a){console.error("Failed to parse log lines:",a)}},onEvent(h){try{const a=J(h),s={data:a,order:D++};a&&typeof a=="object"&&"source_id"in a&&a.source_id===""&&"type"in a&&typeof a.type=="number"&&Number.isInteger(a.type)&&a.type>=0&&a.type<=6?l.set(a.type,s):(i.push(s),i.length>zn&&i.shift())}catch(a){console.error("Failed to parse log event:",a)}}});let B;const S=()=>{clearTimeout(B),b(),I.get(e)===f&&I.delete(e),t.length=0,r=0,i.length=0,l.clear()},m=()=>{I.get(e)===f&&(B??=setTimeout(S,6e4))},f={connect(h){const a=t.map(u=>u.data),s=[...i,...l.values()].sort((u,g)=>u.order-g.order);S();const p=R(e,h);try{a.length&&h.onLines(a);for(const u of s)h.onEvent(u.data);return p}catch(u){throw p(),u}}};return I.set(e,f),{release:S,settled:m}}function Qn(e,t){return I.get(e)?.connect(t)??R(e,t)}function Ke(e){return n.ByID(2776241946,e)}function Wn(e){return n.ByID(1474987050,e).then(t=>j(t))}function Xn(e){return n.ByID(3156347865,e).then(t=>or(t))}function Kn(e){return n.ByID(1444002509,e)}function Yn(){return n.ByID(3104582886).then(e=>ir(e))}function Zn(){return n.ByID(2249742267).then(e=>cr(e))}function er(e,t){return n.ByID(1212190993,e,t)}function tr(e,t){return n.ByID(2177127885,e,t).then(r=>j(r))}const nr=y.LogSession.createFrom,j=o.Nullable(nr),rr=y.Handler$1.createFrom,or=o.Array(rr),ir=o.Array(o.Any),cr=o.Array(j);function Ye(e,t,r){const i=r.session_id??crypto.randomUUID(),l=d({...r,session_id:i},[e,t]),{release:D,settled:b}=Un(i);let B;const S=()=>{clearTimeout(B),D()};try{const m=n.ByName("github.com/omniviewdev/omniview/backend/pkg/plugin/logs.ServiceWrapper.CreateSession",e,t,l),f=new Error("Log session creation timed out after 120 seconds.");return B=setTimeout(()=>{m.cancel(f)},12e4),m.then(h=>{if(clearTimeout(B),!h||h.id!==i)throw D(),new Error("Log provider returned an invalid session.");return b(),h},h=>{throw S(),h?.cause===f?f:h},S)}catch(m){throw S(),m}}const sr=Object.freeze(Object.defineProperty({__proto__:null,CloseSession:Ke,CreateSession:Ye,GetSession:Wn,GetSupportedResources:Xn,HasPlugin:Kn,ListPlugins:Yn,ListSessions:Zn,SendCommand:er,SubscribeSessionEvents:Qn,UpdateSessionOptions:tr},Symbol.toStringTag,{value:"Module"}));class k{plugin_id;provider_id;name;icon;description;handlers;constructor(t={}){"plugin_id"in t||(this.plugin_id=""),"provider_id"in t||(this.provider_id=""),"name"in t||(this.name=""),"icon"in t||(this.icon=""),"description"in t||(this.description=""),"handlers"in t||(this.handlers=[]),Object.assign(this,t)}static createFrom(t={}){const r=ar;let i=typeof t=="string"?JSON.parse(t):t;return"handlers"in i&&(i.handlers=r(i.handlers)),new k(i)}}const ur=y.Handler$2.createFrom,ar=o.Array(ur);function Ze(){return n.ByID(3919346639).then(e=>nt(e))}function et(e){return n.ByID(3953821778,e).then(t=>nt(t))}function lr(e){return n.ByID(1815388456,e)}function yr(){return n.ByID(2730149903).then(e=>fr(e))}function tt(e){return n.ByID(3994236150,e)}const pr=k.createFrom,nt=o.Array(pr),fr=o.Array(o.Any);y.QueryResponse.createFrom;const V="github.com/omniviewdev/omniview/backend/pkg/plugin/metric.ServiceWrapper";function hr(e,t,r){return n.ByName(`${V}.Query`,e,t,d(r,[e,t]))}function rt(e,t){return n.ByName(`${V}.QueryAll`,e,d(t,[e]))}function ot(e,t,r){return n.ByName(`${V}.Subscribe`,e,t,d(r,[e,t]))}const dr=Object.freeze(Object.defineProperty({__proto__:null,GetProviders:Ze,GetProvidersForResource:et,HasPlugin:lr,ListPlugins:yr,Query:hr,QueryAll:rt,Subscribe:ot,Unsubscribe:tt},Symbol.toStringTag,{value:"Module"}));function Sr(e,t){return n.ByID(3653639550,e,t)}function it(e,t){return n.ByID(851823419,e,t)}function gr(e){return n.ByID(2991415449,e).then(t=>mr(t))}function ct(e,t,r){return n.ByID(2695679023,e,t,r)}const mr=o.Array(o.Any),$r=Object.freeze(Object.defineProperty({__proto__:null,Delete:Sr,Get:it,Keys:gr,Set:ct},Symbol.toStringTag,{value:"Module"}));function Br(e){return n.ByID(584261046,e)}function Dr(e){return n.ByID(3098255555,e)}function br(e){return n.ByID(903698361,e)}function Ir(e,t,r){return n.ByID(1235170530,e,t,r).then(i=>Er(i))}function st(e){return n.ByID(3199298309,e)}function wr(){return n.ByID(2119827301).then(e=>Lr(e))}function vr(e){return n.ByID(2822783534,e).then(t=>at(t))}function Tr(){return n.ByID(1563865534)}function Pr(){return n.ByID(914742443).then(e=>jr(e))}function Gr(){return n.ByID(3392737293).then(e=>kr(e))}function Cr(e,t,r){return n.ByID(1474486628,e,t,r)}function Ar(e,t,r){return n.ByID(2366942716,e,t,r)}function Rr(e){return n.ByID(4008581935,e)}function ut(e){return n.ByID(520255202,e)}function Fr(e,t,r){return n.ByID(958877691,e,t,r)}function Or(e,t,r){return n.ByID(1772958861,e,t,r)}function _r(e,t,r){return n.ByID(728919203,e,t,r)}function Nr(e,t){return n.ByID(1547965995,e,t)}const Er=y.DropResult.createFrom,Lr=y.SettingsState.createFrom,at=o.Map(o.Any,o.Any),Mr=y.Info.createFrom,jr=o.Array(Mr),kr=o.Map(o.Any,at),Vr=Object.freeze(Object.defineProperty({__proto__:null,BeginDrag:Br,CancelDrag:Dr,Close:br,EndDrag:Ir,Focus:st,GetSettingsState:wr,GetState:vr,HideSettings:Tr,List:Pr,ListStates:Gr,MoveDrag:Cr,MoveToPointer:Ar,Open:Rr,OpenSettings:ut,ReportViewport:Fr,RespondDrop:Or,SaveState:_r,SetSettingsLocation:Nr},Symbol.toStringTag,{value:"Module"}));exports.Action=$e;exports.AttachStreamAction=Oe;exports.CancelStreamAction=_e;exports.Catalog=he;exports.CheckConnection=ie;exports.ClosePortForwardSession=X;exports.CloseSession=Ke;exports.CloseSourceView=Me;exports.Commit=xe;exports.CreateSession=Q;exports.CreateSession$1=Ye;exports.Enumerate=Se;exports.FindPortForwardSessions=K;exports.Focus=st;exports.Get=it;exports.Get$1=de;exports.GetActions=Re;exports.GetAllConnectionStates=De;exports.GetConnection=ce;exports.GetConnectionMetadata=pe;exports.GetDependencyTree=Je;exports.GetEditorSchemaDocument=Ae;exports.GetEditorSchemas=Ce;exports.GetHandler=q;exports.GetNativeTerminalSupport=x;exports.GetPluginMeta=te;exports.GetProviders=Ze;exports.GetProvidersForResource=et;exports.GetRelated=He;exports.GetResourceAreaComponent=Qe;exports.GetResourceGroups=Pe;exports.GetSchemaFields=Ge;exports.GetSnapshot=ze;exports.GetSourceStates=je;exports.GetSubgraph=qe;exports.ImportConnectionProfile=we;exports.ListAllConnections=se;exports.ListAllPortForwardSessions=Y;exports.ListConnectionProfiles=be;exports.ListConnections=ue;exports.Mutate=me;exports.NativeQuery=ge;exports.OpenNativeSession=W;exports.OpenSettings=ut;exports.OpenSourceView=Ne;exports.QueryAll=rt;exports.RefreshConnectionMetadata=fe;exports.RefreshSourceView=Le;exports.RemoveConnection=Te;exports.ResetConnectionProfile=ve;exports.ResolveTarget=Be;exports.RetryConnectionSources=ke;exports.RetryFailedPlugin=ne;exports.SaveConnectionProfile=Ie;exports.ScopeValues=Ve;exports.Set=ct;exports.StartConnection=ae;exports.StartResourcePortForwardingSession=ee;exports.StopConnection=le;exports.StreamAction=Fe;exports.Subscribe=ot;exports.SyncSourceView=Ee;exports.Unsubscribe=tt;exports.Validate=Ue;exports.binding=Mn;exports.client=Gn;exports.exec=Pt;exports.graphClient=An;exports.logs=sr;exports.metric=dr;exports.networker=_t;exports.service=Vr;exports.servicewrapper=$r;exports.servicewrapper$1=fn;exports.servicewrapper$2=Jn;
|
package/package.json
CHANGED
package/dist/calls-B-HP1Icv.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const h=require("./index-BVi9X4oU.cjs");var M=Function.prototype.toString,y=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,S,j;if(typeof y=="function"&&typeof Object.defineProperty=="function")try{S=Object.defineProperty({},"length",{get:function(){throw j}}),j={},y(function(){throw 42},null,S)}catch(r){r!==j&&(y=null)}else y=null;var U=/^\s*class\b/,E=function(e){try{var t=M.call(e);return U.test(t)}catch{return!1}},R=function(e){try{return E(e)?!1:(M.call(e),!0)}catch{return!1}},w=Object.prototype.toString,k="[object Object]",H="[object Function]",q="[object GeneratorFunction]",z="[object HTMLAllCollection]",G="[object HTML document.all class]",J="[object HTMLCollection]",W=typeof Symbol=="function"&&!!Symbol.toStringTag,K=!(0 in[,]),O=function(){return!1};if(typeof document=="object"){var Q=document.all;w.call(Q)===w.call(document.all)&&(O=function(e){if((K||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=w.call(e);return(t===z||t===G||t===J||t===k)&&e("")==null}catch{}return!1})}function V(r){if(O(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{y(r,null,S)}catch(e){if(e!==j)return!1}return!E(r)&&R(r)}function X(r){if(O(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(W)return R(r);if(E(r))return!1;var e=w.call(r);return e!==H&&e!==q&&!/^\[object HTML/.test(e)?!1:R(r)}const d=y?V:X;var g;class A extends Error{constructor(e,t){super(e,t),this.name="CancelError"}}class b extends Error{constructor(e,t,n){super((n??"Unhandled rejection in cancelled promise.")+" Reason: "+Y(t),{cause:t}),this.promise=e,this.name="CancelledRejectionError"}}const u=Symbol("barrier"),P=Symbol("cancelImpl"),C=(g=Symbol.species)!==null&&g!==void 0?g:Symbol("speciesPolyfill");class l extends Promise{constructor(e,t){let n,o;if(super((a,v)=>{n=a,o=v}),this.constructor[C]!==Promise)throw new TypeError("CancellablePromise does not support transparent subclassing. Please refrain from overriding the [Symbol.species] static property.");let c={promise:this,resolve:n,reject:o,get oncancelled(){return t??null},set oncancelled(a){t=a??void 0}};const i={get root(){return i},resolving:!1,settled:!1};Object.defineProperties(this,{[u]:{configurable:!1,enumerable:!1,writable:!0,value:null},[P]:{configurable:!1,enumerable:!1,writable:!1,value:x(c,i)}});const s=B(c,i);try{e(L(c,i),s)}catch(a){i.resolving?console.log("Unhandled exception in CancellablePromise executor.",a):s(a)}}cancel(e){return new l(t=>{Promise.all([this[P](new A("Promise cancelled.",{cause:e})),Z(this)]).then(()=>t(),()=>t())})}cancelOn(e){return e.aborted?this.cancel(e.reason):e.addEventListener("abort",()=>{this.cancel(e.reason)},{capture:!0}),this}then(e,t,n){if(!(this instanceof l))throw new TypeError("CancellablePromise.prototype.then called on an invalid object.");if(d(e)||(e=D),d(t)||(t=F),e===D&&t==F)return new l(c=>c(this));const o={};return this[u]=o,new l((c,i)=>{super.then(s=>{var a;this[u]===o&&(this[u]=null),(a=o.resolve)===null||a===void 0||a.call(o);try{c(e(s))}catch(v){i(v)}},s=>{var a;this[u]===o&&(this[u]=null),(a=o.resolve)===null||a===void 0||a.call(o);try{c(t(s))}catch(v){i(v)}})},async c=>{try{return n?.(c)}finally{await this.cancel(c)}})}catch(e,t){return this.then(void 0,e,t)}finally(e,t){if(!(this instanceof l))throw new TypeError("CancellablePromise.prototype.finally called on an invalid object.");return d(e)?this.then(n=>l.resolve(e()).then(()=>n),n=>l.resolve(e()).then(()=>{throw n}),t):this.then(e,e,t)}static get[C](){return Promise}static all(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.all(t).then(o,c)},o=>m(n,t,o));return n}static allSettled(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.allSettled(t).then(o,c)},o=>m(n,t,o));return n}static any(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.any(t).then(o,c)},o=>m(n,t,o));return n}static race(e){let t=Array.from(e);const n=new l((o,c)=>{Promise.race(t).then(o,c)},o=>m(n,t,o));return n}static cancel(e){const t=new l(()=>{});return t.cancel(e),t}static timeout(e,t){const n=new l(()=>{});return AbortSignal&&typeof AbortSignal=="function"&&AbortSignal.timeout&&typeof AbortSignal.timeout=="function"?AbortSignal.timeout(e).addEventListener("abort",()=>{n.cancel(t)}):setTimeout(()=>{n.cancel(t)},e),n}static sleep(e,t){return new l(n=>{setTimeout(()=>n(t),e)})}static reject(e){return new l((t,n)=>n(e))}static resolve(e){return e instanceof l?e:new l(t=>t(e))}static withResolvers(){let e={oncancelled:null};return e.promise=new l((t,n)=>{e.resolve=t,e.reject=n},t=>{var n;(n=e.oncancelled)===null||n===void 0||n.call(e,t)}),e}}function x(r,e){let t;return n=>{if(e.settled||(e.settled=!0,e.reason=n,r.reject(n),Promise.prototype.then.call(r.promise,void 0,o=>{if(o!==n)throw o})),!(!e.reason||!r.oncancelled))return t=new Promise(o=>{try{o(r.oncancelled(e.reason.cause))}catch(c){Promise.reject(new b(r.promise,c,"Unhandled exception in oncancelled callback."))}}).catch(o=>{Promise.reject(new b(r.promise,o,"Unhandled rejection in oncancelled callback."))}),r.oncancelled=null,t}}function L(r,e){return t=>{if(!e.resolving){if(e.resolving=!0,t===r.promise){if(e.settled)return;e.settled=!0,r.reject(new TypeError("A promise cannot be resolved with itself."));return}if(t!=null&&(typeof t=="object"||typeof t=="function")){let n;try{n=t.then}catch(o){e.settled=!0,r.reject(o);return}if(d(n)){try{let i=t.cancel;if(d(i)){const s=a=>{Reflect.apply(i,t,[a])};e.reason?x(Object.assign(Object.assign({},r),{oncancelled:s}),e)(e.reason):r.oncancelled=s}}catch{}const o={root:e.root,resolving:!1,get settled(){return this.root.settled},set settled(i){this.root.settled=i},get reason(){return this.root.reason}},c=B(r,o);try{Reflect.apply(n,t,[L(r,o),c])}catch(i){c(i)}return}}e.settled||(e.settled=!0,r.resolve(t))}}}function B(r,e){return t=>{if(!e.resolving)if(e.resolving=!0,e.settled){try{if(t instanceof A&&e.reason instanceof A&&Object.is(t.cause,e.reason.cause))return}catch{}Promise.reject(new b(r.promise,t))}else e.settled=!0,r.reject(t)}}function m(r,e,t){const n=[];for(const o of e){let c;try{if(!d(o.then)||(c=o.cancel,!d(c)))continue}catch{continue}let i;try{i=Reflect.apply(c,o,[t])}catch(s){Promise.reject(new b(r,s,"Unhandled exception in cancel method."));continue}i&&n.push((i instanceof Promise?i:Promise.resolve(i)).catch(s=>{Promise.reject(new b(r,s,"Unhandled rejection in cancel method."))}))}return Promise.all(n)}function D(r){return r}function F(r){throw r}function Y(r){try{if(r instanceof Error||typeof r!="object"||r.toString!==Object.prototype.toString)return""+r}catch{}try{return JSON.stringify(r)}catch{}try{return Object.prototype.toString.call(r)}catch{}return"<could not convert error to string>"}function Z(r){var e;let t=(e=r[u])!==null&&e!==void 0?e:{};return"promise"in t||Object.assign(t,p()),r[u]==null&&(t.resolve(),r[u]=t),t.promise}let p=Promise.withResolvers;p&&typeof p=="function"?p=p.bind(Promise):p=function(){let r,e;return{promise:new Promise((n,o)=>{r=n,e=o}),resolve:r,reject:e}};h.hasDOM&&(window._wails=window._wails||{});const $=h.newRuntimeCaller(h.objectNames.Call),_=h.newRuntimeCaller(h.objectNames.CancelCall),f=new Map,ee=0,te=0;function re(){let r;do r=h.nanoid();while(f.has(r));return r}function T(r){const e=re(),t=l.withResolvers(),n={resolve:t.resolve,reject:t.reject};f.set(e,n);const o=$(ee,Object.assign({"call-id":e},r));let c=!0;o.then(s=>{c=!1,f.get(e)===n&&(f.delete(e),n.resolve(s))},s=>{c=!1,f.get(e)===n&&(f.delete(e),n.reject(s))});const i=()=>(f.delete(e),_(te,{"call-id":e}).catch(s=>{console.error("Error while requesting binding call cancellation:",s)}));return t.oncancelled=()=>c?i():o.then(i),t.promise}function I(r,...e){return T({methodName:r,args:e})}function N(r,...e){return T({methodID:r,args:e})}const ne=Object.freeze(Object.defineProperty({__proto__:null,ByID:N,ByName:I,Call:T,RuntimeError:h.RuntimeError},Symbol.toStringTag,{value:"Module"}));exports.ByID=N;exports.ByName=I;exports.calls=ne;
|