vskill 1.2.9 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -1
- package/agents.json +1 -1
- package/dist/api/client.d.ts +11 -1
- package/dist/api/client.js +4 -2
- package/dist/api/client.js.map +1 -1
- package/dist/commands/__tests__/helpers/fake-network.d.ts +36 -0
- package/dist/commands/__tests__/helpers/fake-network.js +119 -0
- package/dist/commands/__tests__/helpers/fake-network.js.map +1 -0
- package/dist/commands/add-lockfile.d.ts +2 -0
- package/dist/commands/add-lockfile.js +1 -1
- package/dist/commands/add-lockfile.js.map +1 -1
- package/dist/commands/add.d.ts +4 -0
- package/dist/commands/add.js +130 -102
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/doctor.js +8 -4
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/outdated.js +52 -3
- package/dist/commands/outdated.js.map +1 -1
- package/dist/commands/pin.d.ts +6 -0
- package/dist/commands/pin.js +25 -2
- package/dist/commands/pin.js.map +1 -1
- package/dist/commands/submit.d.ts +7 -0
- package/dist/commands/submit.js +40 -6
- package/dist/commands/submit.js.map +1 -1
- package/dist/commands/update.js +12 -2
- package/dist/commands/update.js.map +1 -1
- package/dist/discovery/github-tree.d.ts +16 -0
- package/dist/discovery/github-tree.js +58 -49
- package/dist/discovery/github-tree.js.map +1 -1
- package/dist/eval-server/install-skill-routes.js +7 -6
- package/dist/eval-server/install-skill-routes.js.map +1 -1
- package/dist/eval-server/install-state-routes.d.ts +2 -2
- package/dist/eval-server/install-state-routes.js +4 -1
- package/dist/eval-server/install-state-routes.js.map +1 -1
- package/dist/eval-server/remove-skill-routes.js +9 -1
- package/dist/eval-server/remove-skill-routes.js.map +1 -1
- package/dist/eval-server/supported-agents-routes.d.ts +8 -2
- package/dist/eval-server/supported-agents-routes.js +10 -2
- package/dist/eval-server/supported-agents-routes.js.map +1 -1
- package/dist/eval-ui/assets/{AdvancedTab-6VlfqCuD.js → AdvancedTab-DX3v5Q7O.js} +1 -1
- package/dist/eval-ui/assets/{CreateSkillPage-e3YH0sBH.js → CreateSkillPage-H8PKqquP.js} +1 -1
- package/dist/eval-ui/assets/{FindSkillsPalette-M6Ot4Qeq.js → FindSkillsPalette-BqNFXzS6.js} +2 -2
- package/dist/eval-ui/assets/{GeneralTab-BpFlJ2ue.js → GeneralTab-BfFbcbuP.js} +1 -1
- package/dist/eval-ui/assets/{PrivacyTab-UfO7QLy_.js → PrivacyTab-Bq2N7Iam.js} +1 -1
- package/dist/eval-ui/assets/{SearchPaletteCore-CufFV6OR.js → SearchPaletteCore-DCd9aZnv.js} +1 -1
- package/dist/eval-ui/assets/SkillDetailPanel-C5wytaSH.js +1 -0
- package/dist/eval-ui/assets/{UpdateDropdown-CVM2xW6V.js → UpdateDropdown-BYJ29wcH.js} +1 -1
- package/dist/eval-ui/assets/{UpdatesTab-C38-n7V3.js → UpdatesTab-w6h18GPp.js} +1 -1
- package/dist/eval-ui/assets/core-DgHXlyD_.js +1 -0
- package/dist/eval-ui/assets/{event-QtOCMXAv.js → event-CABB5pUM.js} +1 -1
- package/dist/eval-ui/assets/{fonts-i7Lkz2zN.css → fonts-BZeyWEAn.css} +1 -1
- package/dist/eval-ui/assets/{index-DlQYQHDO.js → index-Bje294df.js} +1 -1
- package/dist/eval-ui/assets/{index-DDNzcrhv.js → index-D0lWXViJ.js} +1 -1
- package/dist/eval-ui/assets/{index-CUEYzTVL.js → index-DCV9_0X4.js} +1 -1
- package/dist/eval-ui/assets/main-DjTh6bpa.js +86 -0
- package/dist/eval-ui/assets/{preferences-BN-jNWS0.js → preferences-VTBvoXmM.js} +2 -2
- package/dist/eval-ui/assets/source-serif-4-cyrillic-ext-wght-normal-DHTKMUil.woff2 +0 -0
- package/dist/eval-ui/assets/source-serif-4-cyrillic-wght-normal-B1g8a0vD.woff2 +0 -0
- package/dist/eval-ui/assets/source-serif-4-greek-wght-normal-BpXpdlRW.woff2 +0 -0
- package/dist/eval-ui/assets/source-serif-4-latin-ext-wght-normal-BVZ5su8S.woff2 +0 -0
- package/dist/eval-ui/assets/source-serif-4-latin-wght-normal-DMe4EKeb.woff2 +0 -0
- package/dist/eval-ui/assets/source-serif-4-vietnamese-wght-normal-BsaNuasd.woff2 +0 -0
- package/dist/eval-ui/assets/{useDesktopBridge-Cm4zPght.js → useDesktopBridge-C8dT34x9.js} +2 -2
- package/dist/eval-ui/index.html +3 -3
- package/dist/eval-ui/lifecycle.html +2 -2
- package/dist/eval-ui/preferences.html +3 -3
- package/dist/index.js +27 -6
- package/dist/index.js.map +1 -1
- package/dist/installer/frontmatter.d.ts +14 -0
- package/dist/installer/frontmatter.js +21 -0
- package/dist/installer/frontmatter.js.map +1 -1
- package/dist/lib/install-resolution.d.ts +39 -0
- package/dist/lib/install-resolution.js +68 -0
- package/dist/lib/install-resolution.js.map +1 -0
- package/dist/lib/platform-security.d.ts +15 -0
- package/dist/lib/platform-security.js +62 -0
- package/dist/lib/platform-security.js.map +1 -0
- package/dist/lib/private-source.d.ts +8 -0
- package/dist/lib/private-source.js +16 -12
- package/dist/lib/private-source.js.map +1 -1
- package/dist/lib/registry-tier.d.ts +42 -0
- package/dist/lib/registry-tier.js +136 -0
- package/dist/lib/registry-tier.js.map +1 -0
- package/dist/lib/registry-version.d.ts +36 -0
- package/dist/lib/registry-version.js +104 -0
- package/dist/lib/registry-version.js.map +1 -0
- package/dist/marketplace/marketplace.js +4 -3
- package/dist/marketplace/marketplace.js.map +1 -1
- package/dist/studio/routes/index.js +1 -1
- package/dist/studio/routes/index.js.map +1 -1
- package/dist/updater/source-fetcher.d.ts +21 -0
- package/dist/updater/source-fetcher.js +52 -1
- package/dist/updater/source-fetcher.js.map +1 -1
- package/package.json +3 -3
- package/dist/eval-ui/assets/SkillDetailPanel-B7f3UPBT.js +0 -1
- package/dist/eval-ui/assets/core-DZjBCfjp.js +0 -1
- package/dist/eval-ui/assets/main-C30fpcFP.js +0 -86
- package/dist/eval-ui/assets/source-serif-4-cyrillic-ext-wght-normal-cHuGMAiY.woff2 +0 -0
- package/dist/eval-ui/assets/source-serif-4-cyrillic-wght-normal-DwHjdM4S.woff2 +0 -0
- package/dist/eval-ui/assets/source-serif-4-greek-wght-normal-ece1310W.woff2 +0 -0
- package/dist/eval-ui/assets/source-serif-4-latin-ext-wght-normal-CxNHBx-q.woff2 +0 -0
- package/dist/eval-ui/assets/source-serif-4-latin-wght-normal-D9elroTD.woff2 +0 -0
- package/dist/eval-ui/assets/source-serif-4-vietnamese-wght-normal-D-yuW59g.woff2 +0 -0
- /package/dist/eval-ui/assets/{lifecycle-n00yue6r.js → lifecycle-DC0khFSd.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
@font-face{font-family:"Source Serif 4 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/assets/source-serif-4-cyrillic-ext-wght-normal-
|
|
1
|
+
@font-face{font-family:"Source Serif 4 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/assets/source-serif-4-cyrillic-ext-wght-normal-DHTKMUil.woff2) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Source Serif 4 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/assets/source-serif-4-cyrillic-wght-normal-B1g8a0vD.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Source Serif 4 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/assets/source-serif-4-greek-wght-normal-BpXpdlRW.woff2) format("woff2-variations");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:"Source Serif 4 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/assets/source-serif-4-vietnamese-wght-normal-BsaNuasd.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Source Serif 4 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/assets/source-serif-4-latin-ext-wght-normal-BVZ5su8S.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Serif 4 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/assets/source-serif-4-latin-wght-normal-DMe4EKeb.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter Tight Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-tight-cyrillic-ext-wght-normal-okcGN4Nq.woff2) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Tight Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-tight-cyrillic-wght-normal-BS41q_Tv.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter Tight Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-tight-greek-ext-wght-normal-DQgQPNk4.woff2) format("woff2-variations");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter Tight Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-tight-greek-wght-normal-sS1B39LI.woff2) format("woff2-variations");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter Tight Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-tight-vietnamese-wght-normal-TKKdAiBA.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Tight Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-tight-latin-ext-wght-normal-B4u9PlvR.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Tight Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-tight-latin-wght-normal-DX-nOvPD.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(data:font/woff2;base64,d09GMgABAAAAAAfsABQAAAAAEAwAAAeCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoP0hWQVJbBmA/U1RBVIFiJyYAdC9qEQgKhGSEAAsgADCGCAE2AiQDOgQgBYlMB4EUDAcbLQ4onoexrSC/2ZyLAa8p8VHB8/x3Vue+V0hVJalMJg2nx/TCrQXxBeqLjQG7FyM1WEa/X1tEXN7cFz9EJEMmMUz3RihWSSKeQCbcIou0izz/C8v+fq3VfajEa9gDD11CIm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Q10HCrUEkVlSX+XO33oQR9609tJ516H497WSobWs5Up6TLaS10/dessIskgJSLiDlWvHVUywpkQ7hdPZqGyiEF0uVQerVcPamT1A3eKXdyI1vG9OoflrSXihZ1qqGE3nhmAgiIbRCQgPLEPtOM3UQwTLYaYYomNlpA44opnjV6jkD6id80OOrzf6BzmMD6eEa1zKyeYG1fzfEf16V6jw9XYOaar1/b2kP/IYX8oR2mcFvv2GtBV3JXgd437AQAA) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2) format("woff2-variations");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono Variable;font-style:normal;font-display:swap;font-weight:100 800;src:url(/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i,a as f}from"./core-
|
|
1
|
+
import{i,a as f}from"./core-DgHXlyD_.js";var o;(function(n){n.Year="year",n.Month="month",n.TwoWeeks="twoWeeks",n.Week="week",n.Day="day",n.Hour="hour",n.Minute="minute",n.Second="second"})(o||(o={}));class s{static at(t,e=!1,a=!1){return{at:{date:t,repeating:e,allowWhileIdle:a},interval:void 0,every:void 0}}static interval(t,e=!1){return{at:void 0,interval:{interval:t,allowWhileIdle:e},every:void 0}}static every(t,e,a=!1){return{at:void 0,interval:void 0,every:{interval:t,count:e,allowWhileIdle:a}}}}var c;(function(n){n[n.None=0]="None",n[n.Min=1]="Min",n[n.Low=2]="Low",n[n.Default=3]="Default",n[n.High=4]="High"})(c||(c={}));var r;(function(n){n[n.Secret=-1]="Secret",n[n.Private=0]="Private",n[n.Public=1]="Public"})(r||(r={}));async function l(){return window.Notification.permission!=="default"?await Promise.resolve(window.Notification.permission==="granted"):await i("plugin:notification|is_permission_granted")}async function w(){return await window.Notification.requestPermission()}function d(n){typeof n=="string"?new window.Notification(n):new window.Notification(n.title,n)}async function g(n){await i("plugin:notification|register_action_types",{types:n})}async function v(){return await i("plugin:notification|get_pending")}async function y(n){await i("plugin:notification|cancel",{notifications:n})}async function _(){await i("plugin:notification|cancel")}async function p(){return await i("plugin:notification|get_active")}async function P(n){await i("plugin:notification|remove_active",{notifications:n})}async function m(){await i("plugin:notification|remove_active")}async function N(n){await i("plugin:notification|create_channel",{...n})}async function h(n){await i("plugin:notification|delete_channel",{id:n})}async function A(){return await i("plugin:notification|list_channels")}async function k(n){return await f("notification","notification",n)}async function M(n){return await f("notification","actionPerformed",n)}export{c as Importance,s as Schedule,o as ScheduleEvery,r as Visibility,p as active,y as cancel,_ as cancelAll,A as channels,N as createChannel,l as isPermissionGranted,M as onAction,k as onNotificationReceived,v as pending,g as registerActionTypes,P as removeActive,m as removeAllActive,h as removeChannel,w as requestPermission,d as sendNotification};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i}from"./core-
|
|
1
|
+
import{i}from"./core-DgHXlyD_.js";function f(n){if(n!==void 0){if(typeof n=="string")return n;if("ok"in n&&"cancel"in n)return{OkCancelCustom:[n.ok,n.cancel]};if("yes"in n&&"no"in n&&"cancel"in n)return{YesNoCancelCustom:[n.yes,n.no,n.cancel]};if("ok"in n)return{OkCustom:n.ok}}}async function u(n={}){return typeof n=="object"&&Object.freeze(n),await i("plugin:dialog|open",{options:n})}async function t(n={}){return typeof n=="object"&&Object.freeze(n),await i("plugin:dialog|save",{options:n})}async function r(n,a){return await i("plugin:dialog|message",{message:n,title:a==null?void 0:a.title,kind:a==null?void 0:a.kind,buttons:f(a==null?void 0:a.buttons)})}async function d(n,a){const e=typeof a=="string"?{title:a}:a;return e&&!e.buttons&&e.okLabel&&(e.buttons={ok:e.okLabel}),r(n,e)}async function y(n,a){const e=typeof a=="string"?{title:a}:a,l=(e==null?void 0:e.okLabel)||(e==null?void 0:e.cancelLabel),c=(e==null?void 0:e.okLabel)??"Yes";return await r(n,{title:e==null?void 0:e.title,kind:e==null?void 0:e.kind,buttons:l?{ok:c,cancel:e.cancelLabel??"No"}:"YesNo"})===c}async function g(n,a){const e=typeof a=="string"?{title:a}:a,l=(e==null?void 0:e.okLabel)||(e==null?void 0:e.cancelLabel),c=(e==null?void 0:e.okLabel)??"Ok";return await r(n,{title:e==null?void 0:e.title,kind:e==null?void 0:e.kind,buttons:l?{ok:c,cancel:e.cancelLabel??"Cancel"}:"OkCancel"})===c}export{y as ask,g as confirm,d as message,u as open,t as save};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as n,C as c}from"./core-
|
|
1
|
+
import{i as n,C as c}from"./core-DgHXlyD_.js";class h{constructor(){this.eventListeners=Object.create(null)}addListener(t,e){return this.on(t,e)}removeListener(t,e){return this.off(t,e)}on(t,e){return t in this.eventListeners?this.eventListeners[t].push(e):this.eventListeners[t]=[e],this}once(t,e){const s=i=>{this.removeListener(t,s),e(i)};return this.addListener(t,s)}off(t,e){return t in this.eventListeners&&(this.eventListeners[t]=this.eventListeners[t].filter(s=>s!==e)),this}removeAllListeners(t){return t?delete this.eventListeners[t]:this.eventListeners=Object.create(null),this}emit(t,e){if(t in this.eventListeners){const s=this.eventListeners[t];for(const i of s)i(e);return!0}return!1}listenerCount(t){return t in this.eventListeners?this.eventListeners[t].length:0}prependListener(t,e){return t in this.eventListeners?this.eventListeners[t].unshift(e):this.eventListeners[t]=[e],this}prependOnceListener(t,e){const s=i=>{this.removeListener(t,s),e(i)};return this.prependListener(t,s)}}class l{constructor(t){this.pid=t}async write(t){await n("plugin:shell|stdin_write",{pid:this.pid,buffer:t})}async kill(){await n("plugin:shell|kill",{cmd:"killChild",pid:this.pid})}}class a extends h{constructor(t,e=[],s){super(),this.stdout=new h,this.stderr=new h,this.program=t,this.args=typeof e=="string"?[e]:e,this.options=s??{}}static create(t,e=[],s){return new a(t,e,s)}static sidecar(t,e=[],s){const i=new a(t,e,s);return i.options.sidecar=!0,i}async spawn(){const t=this.program,e=this.args,s=this.options;typeof e=="object"&&Object.freeze(e);const i=new c;return i.onmessage=r=>{switch(r.event){case"Error":this.emit("error",r.payload);break;case"Terminated":this.emit("close",r.payload);break;case"Stdout":this.stdout.emit("data",r.payload);break;case"Stderr":this.stderr.emit("data",r.payload);break}},await n("plugin:shell|spawn",{program:t,args:e,options:s,onEvent:i}).then(r=>new l(r))}async execute(){const t=this.program,e=this.args,s=this.options;return typeof e=="object"&&Object.freeze(e),await n("plugin:shell|execute",{program:t,args:e,options:s})}}async function u(o,t){await n("plugin:shell|open",{path:o,with:t})}export{l as Child,a as Command,h as EventEmitter,u as open};
|