@omniviewdev/runtime 0.18.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./service-DKddH-QF.cjs"),i=require("./index-BVi9X4oU.cjs"),n=require("./calls-B-HP1Icv.cjs"),c=require("./models-B8VGD21U.cjs");let B=class S{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 r=typeof e=="string"?JSON.parse(e):e;return new S(r)}};function T(){return n.ByID(3755720097).then(t=>w(t))}const w=B.createFrom,F=Object.freeze(Object.defineProperty({__proto__:null,GetStatus:T},Symbol.toStringTag,{value:"Module"}));class f{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 r=typeof e=="string"?JSON.parse(e):e;return new f(r)}}function O(t){return n.ByID(2352399502,t).then(e=>_(e))}const _=f.createFrom,C=Object.freeze(Object.defineProperty({__proto__:null,GetStatus:O},Symbol.toStringTag,{value:"Module"}));function P(t,e){return n.ByID(1112300727,t,e)}function j(t){return n.ByID(3545575747,t)}function A(){return n.ByID(973353934).then(t=>H(t))}function L(){return n.ByID(3274001154).then(t=>Z(t))}function E(){return n.ByID(1957733758).then(t=>Q(t))}function M(){return n.ByID(3570265771).then(t=>Y(t))}function G(){return n.ByID(338269344).then(t=>ee(t))}function k(t){return n.ByID(2544305887,t).then(e=>ne(e))}function N(t,e){return n.ByID(1042852749,t,e)}function R(){return n.ByID(3071199936)}function J(t){return n.ByID(2852029597,t)}function z(t){return n.ByID(2119350976,t)}function V(t,e,r){return n.ByID(1507504662,t,e,r)}function x(t){return n.ByID(4286704285,t)}function U(t,e){return n.ByID(323373508,t,e)}function q(t){return n.ByID(2912056327,t)}function W(t,e,r){return n.ByID(3748367702,t,e,r)}const H=c.ConfigView.createFrom,Z=c.Status.createFrom,K=c.ConnectionPolicyView.createFrom,Q=i.Array(K),X=c.PendingConfirmation.createFrom,Y=i.Array(X),$=c.PresetView.createFrom,ee=i.Array($),te=c.ToolView.createFrom,ne=i.Array(te),re=Object.freeze(Object.defineProperty({__proto__:null,ApplyPreset:P,DeleteUserPreset:j,GetConfig:A,GetStatus:L,ListConnectionPolicies:E,ListPendingConfirmations:M,ListPresets:G,ListTools:k,ResolveConfirmation:N,RotateToken:R,SaveUserPreset:J,SetBlockConnectionsByDefault:z,SetConnectionAccess:V,SetEnabled:x,SetPluginEnabled:U,SetPort:q,SetToolOverride:W},Symbol.toStringTag,{value:"Module"}));function ie(t){return n.ByID(3503478684,t)}const oe=Object.freeze(Object.defineProperty({__proto__:null,DetectLanguage:ie},Symbol.toStringTag,{value:"Module"}));function se(t,e){return n.ByID(2691208406,t,e)}function ae(t,e){return n.ByID(3932965591,t,e)}function ce(t,e){return n.ByID(1686862755,t,e)}function le(t,e,r){return n.ByID(3705442919,t,e,r)}function ue(t){return n.ByID(3024854267,t)}function pe(t){return n.ByID(3423289677,t)}function fe(t){return n.ByID(158417611,t)}function ye(t){return n.ByID(3413815733,t)}function he(t,e){return n.ByID(2047870999,t,e)}const de=Object.freeze(Object.defineProperty({__proto__:null,Debug:se,Error:ae,Info:ce,Log:le,ReadLog:ue,ReportStartupReady:pe,StartTail:fe,StopTail:ye,Warn:he},Symbol.toStringTag,{value:"Module"}));function ge(t,e){return n.ByID(712656304,t,e).then(r=>Fe(r))}function Se(t){return n.ByID(4153226260,t).then(e=>l(e))}function De(t){return n.ByID(1859413816,t)}function me(){return n.ByID(2707386443).then(t=>Oe(t))}function Ie(t){return n.ByID(2381063937,t)}function ve(t){return n.ByID(123659362,t).then(e=>l(e))}function be(t){return n.ByID(709599671,t).then(e=>l(e))}function Be(t,e){return n.ByID(2105869281,t,e).then(r=>l(r))}function Te(t){return n.ByID(1371062537,t)}const we=c.LogEntry.createFrom,Fe=i.Array(we),l=c.DevServerState.createFrom,Oe=i.Array(l),_e=Object.freeze(Object.defineProperty({__proto__:null,GetDevServerLogs:ge,GetDevServerState:Se,IsManaged:De,ListDevServerStates:me,RebuildPlugin:Ie,RestartDevServer:ve,StartDevServer:be,StartDevServerForPath:Be,StopDevServer:Te},Symbol.toStringTag,{value:"Module"}));function Ce(t,e){return n.ByID(1867216983,t,e).then(r=>D(r))}function Pe(){return n.ByID(3418650705).then(t=>Me(t))}function je(t,e){return n.ByID(4138610615,t,e).then(r=>D(r))}function Ae(t){return n.ByID(3055914536,t)}function Le(t){return n.ByID(1502487629,t)}const Ee=c.LogEntry$1.createFrom,D=i.Array(Ee),Me=i.Array(i.Any),Ge=Object.freeze(Object.defineProperty({__proto__:null,GetLogs:Ce,ListStreams:Pe,SearchLogs:je,Subscribe:Ae,Unsubscribe:Le},Symbol.toStringTag,{value:"Module"}));class u{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 r=typeof e=="string"?JSON.parse(e):e;return new u(r)}}class y{code;message;details;constructor(e={}){"code"in e||(this.code=""),"message"in e||(this.message=""),Object.assign(this,e)}static createFrom(e={}){const r=ke;let s=typeof e=="string"?JSON.parse(e):e;return"details"in s&&(s.details=r(s.details)),new y(s)}}class h{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 p),"version"in e||(this.version=""),"commit"in e||(this.commit=""),"repositories"in e||(this.repositories=[]),"endpoints"in e||(this.endpoints=new u),"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 r=Ne,s=Je,I=ze,v=xe,b=m;let o=typeof e=="string"?JSON.parse(e):e;return"process"in o&&(o.process=r(o.process)),"repositories"in o&&(o.repositories=s(o.repositories)),"endpoints"in o&&(o.endpoints=I(o.endpoints)),"plugins"in o&&(o.plugins=v(o.plugins)),"lastError"in o&&(o.lastError=b(o.lastError)),new h(o)}}class d{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 r=m;let s=typeof e=="string"?JSON.parse(e):e;return"lastError"in s&&(s.lastError=r(s.lastError)),new d(s)}}class p{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 r=typeof e=="string"?JSON.parse(e):e;return new p(r)}}class g{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 r=typeof e=="string"?JSON.parse(e):e;return new g(r)}}const ke=i.Map(i.Any,i.Any),Ne=p.createFrom,Re=g.createFrom,Je=i.Array(Re),ze=u.createFrom,Ve=d.createFrom,xe=i.Array(Ve),Ue=y.createFrom,m=i.Nullable(Ue);function qe(){return n.ByID(678226073).then(t=>Qe(t))}function We(){return n.ByID(1706570792)}function He(t){return n.ByID(2957909098,t).then(e=>Xe(e))}function Ze(t){return n.ByID(473489213,t)}function Ke(t,e){return n.ByID(3778694836,t,e)}const Qe=h.createFrom,Xe=i.Array(i.Any);exports.DataClient=a.servicewrapper;exports.ExecClient=a.exec;exports.GraphClient=a.graphClient;exports.LogsClient=a.logs;exports.MetricClient=a.metric;exports.NetworkerClient=a.networker;exports.PluginManager=a.servicewrapper$1;exports.ResourceClient=a.client;exports.SettingsService=a.binding;exports.UIClient=a.servicewrapper$2;exports.WindowClient=a.service;exports.DevServerManager=_e;exports.DiagnosticsClient=de;exports.GetInstanceInfo=qe;exports.GetOperatingSystem=We;exports.HostProfiling=F;exports.McpRelayClient=re;exports.OpenFileSelectionDialog=He;exports.PluginLogManager=Ge;exports.SaveFileDialog=Ze;exports.UiInspection=C;exports.UtilsClient=oe;exports.WriteFileContent=Ke;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./service-CD-hmd9l.cjs"),i=require("./index-BVi9X4oU.cjs"),n=require("./calls-B-HP1Icv.cjs"),c=require("./models-C-3HYV9E.cjs");let B=class S{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 r=typeof e=="string"?JSON.parse(e):e;return new S(r)}};function T(){return n.ByID(3755720097).then(t=>w(t))}const w=B.createFrom,F=Object.freeze(Object.defineProperty({__proto__:null,GetStatus:T},Symbol.toStringTag,{value:"Module"}));class f{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 r=typeof e=="string"?JSON.parse(e):e;return new f(r)}}function O(t){return n.ByID(2352399502,t).then(e=>_(e))}const _=f.createFrom,C=Object.freeze(Object.defineProperty({__proto__:null,GetStatus:O},Symbol.toStringTag,{value:"Module"}));function P(t,e){return n.ByID(1112300727,t,e)}function j(t){return n.ByID(3545575747,t)}function A(){return n.ByID(973353934).then(t=>H(t))}function L(){return n.ByID(3274001154).then(t=>Z(t))}function E(){return n.ByID(1957733758).then(t=>Q(t))}function M(){return n.ByID(3570265771).then(t=>Y(t))}function G(){return n.ByID(338269344).then(t=>ee(t))}function k(t){return n.ByID(2544305887,t).then(e=>ne(e))}function N(t,e){return n.ByID(1042852749,t,e)}function R(){return n.ByID(3071199936)}function J(t){return n.ByID(2852029597,t)}function z(t){return n.ByID(2119350976,t)}function V(t,e,r){return n.ByID(1507504662,t,e,r)}function x(t){return n.ByID(4286704285,t)}function U(t,e){return n.ByID(323373508,t,e)}function q(t){return n.ByID(2912056327,t)}function W(t,e,r){return n.ByID(3748367702,t,e,r)}const H=c.ConfigView.createFrom,Z=c.Status.createFrom,K=c.ConnectionPolicyView.createFrom,Q=i.Array(K),X=c.PendingConfirmation.createFrom,Y=i.Array(X),$=c.PresetView.createFrom,ee=i.Array($),te=c.ToolView.createFrom,ne=i.Array(te),re=Object.freeze(Object.defineProperty({__proto__:null,ApplyPreset:P,DeleteUserPreset:j,GetConfig:A,GetStatus:L,ListConnectionPolicies:E,ListPendingConfirmations:M,ListPresets:G,ListTools:k,ResolveConfirmation:N,RotateToken:R,SaveUserPreset:J,SetBlockConnectionsByDefault:z,SetConnectionAccess:V,SetEnabled:x,SetPluginEnabled:U,SetPort:q,SetToolOverride:W},Symbol.toStringTag,{value:"Module"}));function ie(t){return n.ByID(3503478684,t)}const oe=Object.freeze(Object.defineProperty({__proto__:null,DetectLanguage:ie},Symbol.toStringTag,{value:"Module"}));function se(t,e){return n.ByID(2691208406,t,e)}function ae(t,e){return n.ByID(3932965591,t,e)}function ce(t,e){return n.ByID(1686862755,t,e)}function le(t,e,r){return n.ByID(3705442919,t,e,r)}function ue(t){return n.ByID(3024854267,t)}function pe(t){return n.ByID(3423289677,t)}function fe(t){return n.ByID(158417611,t)}function ye(t){return n.ByID(3413815733,t)}function he(t,e){return n.ByID(2047870999,t,e)}const de=Object.freeze(Object.defineProperty({__proto__:null,Debug:se,Error:ae,Info:ce,Log:le,ReadLog:ue,ReportStartupReady:pe,StartTail:fe,StopTail:ye,Warn:he},Symbol.toStringTag,{value:"Module"}));function ge(t,e){return n.ByID(712656304,t,e).then(r=>Fe(r))}function Se(t){return n.ByID(4153226260,t).then(e=>l(e))}function De(t){return n.ByID(1859413816,t)}function me(){return n.ByID(2707386443).then(t=>Oe(t))}function Ie(t){return n.ByID(2381063937,t)}function ve(t){return n.ByID(123659362,t).then(e=>l(e))}function be(t){return n.ByID(709599671,t).then(e=>l(e))}function Be(t,e){return n.ByID(2105869281,t,e).then(r=>l(r))}function Te(t){return n.ByID(1371062537,t)}const we=c.LogEntry.createFrom,Fe=i.Array(we),l=c.DevServerState.createFrom,Oe=i.Array(l),_e=Object.freeze(Object.defineProperty({__proto__:null,GetDevServerLogs:ge,GetDevServerState:Se,IsManaged:De,ListDevServerStates:me,RebuildPlugin:Ie,RestartDevServer:ve,StartDevServer:be,StartDevServerForPath:Be,StopDevServer:Te},Symbol.toStringTag,{value:"Module"}));function Ce(t,e){return n.ByID(1867216983,t,e).then(r=>D(r))}function Pe(){return n.ByID(3418650705).then(t=>Me(t))}function je(t,e){return n.ByID(4138610615,t,e).then(r=>D(r))}function Ae(t){return n.ByID(3055914536,t)}function Le(t){return n.ByID(1502487629,t)}const Ee=c.LogEntry$1.createFrom,D=i.Array(Ee),Me=i.Array(i.Any),Ge=Object.freeze(Object.defineProperty({__proto__:null,GetLogs:Ce,ListStreams:Pe,SearchLogs:je,Subscribe:Ae,Unsubscribe:Le},Symbol.toStringTag,{value:"Module"}));class u{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 r=typeof e=="string"?JSON.parse(e):e;return new u(r)}}class y{code;message;details;constructor(e={}){"code"in e||(this.code=""),"message"in e||(this.message=""),Object.assign(this,e)}static createFrom(e={}){const r=ke;let s=typeof e=="string"?JSON.parse(e):e;return"details"in s&&(s.details=r(s.details)),new y(s)}}class h{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 p),"version"in e||(this.version=""),"commit"in e||(this.commit=""),"repositories"in e||(this.repositories=[]),"endpoints"in e||(this.endpoints=new u),"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 r=Ne,s=Je,I=ze,v=xe,b=m;let o=typeof e=="string"?JSON.parse(e):e;return"process"in o&&(o.process=r(o.process)),"repositories"in o&&(o.repositories=s(o.repositories)),"endpoints"in o&&(o.endpoints=I(o.endpoints)),"plugins"in o&&(o.plugins=v(o.plugins)),"lastError"in o&&(o.lastError=b(o.lastError)),new h(o)}}class d{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 r=m;let s=typeof e=="string"?JSON.parse(e):e;return"lastError"in s&&(s.lastError=r(s.lastError)),new d(s)}}class p{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 r=typeof e=="string"?JSON.parse(e):e;return new p(r)}}class g{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 r=typeof e=="string"?JSON.parse(e):e;return new g(r)}}const ke=i.Map(i.Any,i.Any),Ne=p.createFrom,Re=g.createFrom,Je=i.Array(Re),ze=u.createFrom,Ve=d.createFrom,xe=i.Array(Ve),Ue=y.createFrom,m=i.Nullable(Ue);function qe(){return n.ByID(678226073).then(t=>Qe(t))}function We(){return n.ByID(1706570792)}function He(t){return n.ByID(2957909098,t).then(e=>Xe(e))}function Ze(t){return n.ByID(473489213,t)}function Ke(t,e){return n.ByID(3778694836,t,e)}const Qe=h.createFrom,Xe=i.Array(i.Any);exports.DataClient=a.servicewrapper;exports.ExecClient=a.exec;exports.GraphClient=a.graphClient;exports.LogsClient=a.logs;exports.MetricClient=a.metric;exports.NetworkerClient=a.networker;exports.PluginManager=a.servicewrapper$1;exports.ResourceClient=a.client;exports.SettingsService=a.binding;exports.UIClient=a.servicewrapper$2;exports.WindowClient=a.service;exports.DevServerManager=_e;exports.DiagnosticsClient=de;exports.GetInstanceInfo=qe;exports.GetOperatingSystem=We;exports.HostProfiling=F;exports.McpRelayClient=re;exports.OpenFileSelectionDialog=He;exports.PluginLogManager=Ge;exports.SaveFileDialog=Ze;exports.UiInspection=C;exports.UtilsClient=oe;exports.WriteFileContent=Ke;
package/dist/api.js CHANGED
@@ -1,7 +1,7 @@
1
- import { s as he, e as de, g as ge, l as Se, m as me, n as ye, a as be, c as ve, b as Te, d as Fe, f as we } from "./service-lcq0B7wi.js";
1
+ import { s as he, e as de, g as ge, l as Se, m as me, n as ye, a as be, c as ve, b as Te, d as Fe, f as we } from "./service-CiUZ0mis.js";
2
2
  import { A as a, a as c, N as F, M as w } from "./index-zyAgCXOO.js";
3
3
  import { B as n } from "./calls-DYGtxNJ6.js";
4
- import { C as O, S as D, a as _, P, b as C, T as j, D as I, L, c as E } from "./models-ddVn9pLv.js";
4
+ import { C as O, S as D, a as _, P, b as C, T as j, D as I, L, c as E } from "./models-BlRe-e25.js";
5
5
  let M = class S {
6
6
  running;
7
7
  url;
@@ -11,6 +11,7 @@ export declare function GetHandlers(): $CancellablePromise<{
11
11
  [_ in string]?: exec$0.Handler;
12
12
  };
13
13
  }>;
14
+ export declare function GetNativeTerminalSupport(): $CancellablePromise<boolean>;
14
15
  export declare function GetPluginHandlers(plugin: string): $CancellablePromise<{
15
16
  [_ in string]?: exec$0.Handler;
16
17
  }>;
@@ -18,5 +19,10 @@ export declare function GetSession(sessionID: string): $CancellablePromise<exec$
18
19
  export declare function HasPlugin(pluginID: string): $CancellablePromise<boolean>;
19
20
  export declare function ListPlugins(): $CancellablePromise<string[]>;
20
21
  export declare function ListSessions(): $CancellablePromise<(exec$0.Session | null)[]>;
22
+ /**
23
+ * OpenNativeSession accepts only the same bounded resource payload as CreateSession.
24
+ * Executables and launch commands are never accepted from the frontend.
25
+ */
26
+ export declare function OpenNativeSession(plugin: string, connectionID: string, encoded: string): $CancellablePromise<void>;
21
27
  export declare function ResizeSession(sessionID: string, rows: number, cols: number): $CancellablePromise<void>;
22
28
  export declare function WriteSession(sessionID: string, data: string): $CancellablePromise<void>;
@@ -24,6 +24,11 @@ export declare class Handler {
24
24
  "resource": string;
25
25
  "target_builder": ActionTargetBuilder;
26
26
  "default_command": string[];
27
+ /**
28
+ * SupportsNativeCommand advertises planning support in remote metadata.
29
+ * Local support is determined by NativeCommandHandler, not this flag.
30
+ */
31
+ "supports_native_command": boolean;
27
32
  /** Creates a new Handler instance. */
28
33
  constructor($$source?: Partial<Handler>);
29
34
  /**
@@ -84,8 +84,18 @@ export type DrawerComponentAction<T = any> = {
84
84
  /**
85
85
  * Have the action provide a list of actions underneath when clicked rather than
86
86
  * initiation the action directly on click.
87
+ * The optional snapshot is the current `externalStore` value. Pass it through
88
+ * list calculations so render memoization observes external state changes.
87
89
  */
88
- list?: ((ctx: DrawerContext<T>) => Array<DrawerComponentActionListItem>) | Array<DrawerComponentActionListItem>;
90
+ list?: ((ctx: DrawerContext<T>, snapshot?: unknown) => Array<DrawerComponentActionListItem>) | Array<DrawerComponentActionListItem>;
91
+ /**
92
+ * Optional hook-backed state used while rendering action availability and lists.
93
+ * Snapshots must retain identity until the subscribed state changes.
94
+ */
95
+ externalStore?: {
96
+ subscribe: (ctx: DrawerContext<T>, onChange: () => void) => () => void;
97
+ getSnapshot: (ctx: DrawerContext<T>) => unknown;
98
+ };
89
99
  };
90
100
  /**
91
101
  * Displays a list item under the action
@@ -99,6 +109,8 @@ export type DrawerComponentActionListItem<T = any> = {
99
109
  * The icon to display in list item to the left of the the name
100
110
  */
101
111
  icon?: ReactNode;
112
+ /** Disables this choice without disabling the other actions in the list. */
113
+ disabled?: boolean;
102
114
  /**
103
115
  * The function to run for the action list item on click.
104
116
  *
package/dist/exec.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import { CancellablePromise } from '@wailsio/runtime';
2
2
  import { Session, SessionOptions } from './bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/exec/models';
3
- export { AttachSession, CloseSession, CreateTerminal, DetachSession, GetHandler, GetHandlers, GetPluginHandlers, GetSession, HasPlugin, ListPlugins, ListSessions, ResizeSession, WriteSession, } from './bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/exec/servicewrapper';
3
+ export { AttachSession, CloseSession, CreateTerminal, DetachSession, GetHandler, GetHandlers, GetNativeTerminalSupport, GetPluginHandlers, GetSession, HasPlugin, ListPlugins, ListSessions, ResizeSession, WriteSession, } from './bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/exec/servicewrapper';
4
4
  /** Wails receives exact JSON text; the public SDK-shaped API remains typed. */
5
5
  export declare function CreateSession(plugin: string, connectionID: string, options: SessionOptions): CancellablePromise<Session | null>;
6
+ /** Plan and launch a new external process without creating an integrated session. */
7
+ export declare function OpenNativeSession(plugin: string, connectionID: string, options: SessionOptions): CancellablePromise<void>;
@@ -1 +1,2 @@
1
1
  export * from './useExecSession';
2
+ export * from './useNativeExec';
@@ -0,0 +1,15 @@
1
+ import { SessionOptions } from '../../bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/exec/models';
2
+ export type NativeExecInput = {
3
+ connectionID: string;
4
+ opts: Partial<SessionOptions>;
5
+ };
6
+ export type UseNativeExecResult = {
7
+ openNativeSession: (input: NativeExecInput) => Promise<boolean>;
8
+ isSupported: boolean;
9
+ isPending: boolean;
10
+ };
11
+ /** Launch a fresh native terminal process; never allocate an integrated tab/session. */
12
+ export declare function useNativeExec({ pluginID: explicitPluginID, resourceKey }: {
13
+ pluginID?: string;
14
+ resourceKey: string;
15
+ }): UseNativeExecResult;