@northflank/cli 0.11.1 → 0.11.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.
@@ -1 +1 @@
1
- const a14M=a14V;(function(e,V){const E=a14V,b=e();while(!![]){try{const G=parseInt(E(0x14b))/0x1*(-parseInt(E(0x13d))/0x2)+-parseInt(E(0x145))/0x3+-parseInt(E(0x139))/0x4*(parseInt(E(0x142))/0x5)+parseInt(E(0x13f))/0x6*(-parseInt(E(0x152))/0x7)+parseInt(E(0x147))/0x8+parseInt(E(0x14d))/0x9+parseInt(E(0x148))/0xa;if(G===V)break;else b['push'](b['shift']());}catch(a){b['push'](b['shift']());}}}(a14e,0xd7acb));function a14V(e,V){const b=a14e();return a14V=function(G,a){G=G-0x139;let m=b[G];return m;},a14V(e,V);}import a14b from'inquirer/lib/prompts/list.js';import a14G from'inquirer/lib/objects/choice.js';function a14e(){const z=['map','realLength','1210424ddxVIu','italic','onUpKey','down','200CIRFfG','name','6wSbZyb','opt','choices','15ztmKjL','dir\x20must\x20be\x20up\x20or\x20down','loading','969498NPEUHb','selected','5750880hJkweq','23570000EGhUGo','catch','nextPageCursor','11710dfGtEX','\x20Loading\x20more\x20options','7966476BPtCmT','render','push','pagOpt','length','4729459exoBLe','reloadText','handleDynamicPageLoad','..\x20Load\x20more\x20options\x20..','loadMore','loop'];a14e=function(){return z;};return a14e();}import a14a from'chalk';function incrementListIndex(e,V,b){const W=a14V,G=b['choices'][W(0x159)],a=W(0x157)in b?Boolean(b['loop']):!![];if(V==='up'){if(e>0x0)return e-0x1;return a?G-0x1:e;}if(V===W(0x13c)){if(e<G-0x1)return e+0x1;return a?0x0:e;}throw new Error(W(0x143));}export class DynamicReloadPaginationPrompt extends a14b{[a14M(0x153)]=a14a[a14M(0x13a)](a14M(0x155));[a14M(0x150)];[a14M(0x144)]=![];[a14M(0x14a)];constructor(e,V,b){const Q=a14M;super(e,V,b),this['pagOpt']=this[Q(0x140)],this[Q(0x14a)]=this['pagOpt'][Q(0x14a)],this[Q(0x14a)]!==undefined&&this[Q(0x140)][Q(0x141)]['push'](new a14G(this[Q(0x153)],this['reloadText']));}[a14M(0x13b)](){const k=a14M;if(this[k(0x144)])return;this['selected']=incrementListIndex(this['selected'],'up',this['opt']),this[k(0x14e)]();}async['onDownKey'](){const r=a14M;if(this[r(0x144)])return;this[r(0x146)]=incrementListIndex(this['selected'],r(0x13c),this[r(0x140)]),await this[r(0x154)](),this[r(0x14e)]();}async['handleDynamicPageLoad'](){const U=a14M;if(this['selected']>=this[U(0x140)][U(0x141)][U(0x151)]-0x1){if(this[U(0x14a)]===undefined)return;this[U(0x144)]=!![];let e=0x0;const V=setInterval(()=>{const S=U,m=['⠋','⠙','⠹','⠸','⠼','⠴','⠦','⠧','⠇','⠏'],O=a14a[S(0x13a)](m[e%m[S(0x151)]]+S(0x14c));this[S(0x140)][S(0x141)][S(0x141)][this['selected']][S(0x13e)]=''+O,e+=0x1,this[S(0x14e)]();},0x50),{elements:b,nextPageCursor:G}=await this['pagOpt'][U(0x156)]({'nextPageCursor':this[U(0x14a)]})[U(0x149)](()=>({'elements':[],'nextPageCursor':undefined}));this[U(0x14a)]=G;const a=b[U(0x158)](m=>new a14G(m,m));this[U(0x140)]['choices']['choices']['splice'](this['selected'],0x1),this[U(0x140)]['choices']['push'](...a),G!==undefined&&this[U(0x140)][U(0x141)][U(0x14f)](new a14G(this['reloadText'],this[U(0x153)])),clearInterval(V),this[U(0x144)]=![];}}}
1
+ const a14l=a14V;function a14V(D,V){const P=a14D();return a14V=function(z,e){z=z-0x13c;let g=P[z];return g;},a14V(D,V);}(function(D,V){const B=a14V,P=D();while(!![]){try{const z=-parseInt(B(0x152))/0x1+parseInt(B(0x156))/0x2+parseInt(B(0x155))/0x3*(-parseInt(B(0x146))/0x4)+-parseInt(B(0x157))/0x5*(-parseInt(B(0x150))/0x6)+parseInt(B(0x140))/0x7*(-parseInt(B(0x141))/0x8)+-parseInt(B(0x15a))/0x9+parseInt(B(0x13c))/0xa;if(z===V)break;else P['push'](P['shift']());}catch(e){P['push'](P['shift']());}}}(a14D,0xdcbd8));import a14P from'inquirer/lib/prompts/list.js';import a14z from'inquirer/lib/objects/choice.js';import a14e from'chalk';function a14D(){const A=['loading','220FdYsHd','render','pagOpt','catch','loadMore','opt','map','dir\x20must\x20be\x20up\x20or\x20down','name','onUpKey','17088DShQVt','onDownKey','839523RhacZw','choices','selected','60063FBmRvV','3117034uvRMwa','3050dZVDsj','push','loop','12573657QQMjbq','down','26396800URNHIK','handleDynamicPageLoad','length','nextPageCursor','348677BJRpTL','272gtiPwv','realLength','reloadText','italic'];a14D=function(){return A;};return a14D();}function incrementListIndex(D,V,P){const h=a14V,z=P['choices'][h(0x142)],e=h(0x159)in P?Boolean(P[h(0x159)]):!![];if(V==='up'){if(D>0x0)return D-0x1;return e?z-0x1:D;}if(V===h(0x15b)){if(D<z-0x1)return D+0x1;return e?0x0:D;}throw new Error(h(0x14d));}export class DynamicReloadPaginationPrompt extends a14P{[a14l(0x143)]=a14e[a14l(0x144)]('..\x20Load\x20more\x20options\x20..');[a14l(0x148)];[a14l(0x145)]=![];[a14l(0x13f)];constructor(D,V,P){const t=a14l;super(D,V,P),this[t(0x148)]=this[t(0x14b)],this[t(0x13f)]=this[t(0x148)][t(0x13f)],this[t(0x13f)]!==undefined&&this[t(0x14b)][t(0x153)][t(0x158)](new a14z(this['reloadText'],this['reloadText']));}[a14l(0x14f)](){const i=a14l;if(this[i(0x145)])return;this['selected']=incrementListIndex(this[i(0x154)],'up',this['opt']),this['render']();}async[a14l(0x151)](){const s=a14l;if(this[s(0x145)])return;this[s(0x154)]=incrementListIndex(this[s(0x154)],s(0x15b),this['opt']),await this[s(0x13d)](),this['render']();}async[a14l(0x13d)](){const S=a14l;if(this[S(0x154)]>=this[S(0x14b)][S(0x153)][S(0x13e)]-0x1){if(this[S(0x13f)]===undefined)return;this['loading']=!![];let D=0x0;const V=setInterval(()=>{const n=S,g=['⠋','⠙','⠹','⠸','⠼','⠴','⠦','⠧','⠇','⠏'],b=a14e[n(0x144)](g[D%g[n(0x13e)]]+'\x20Loading\x20more\x20options');this['opt'][n(0x153)][n(0x153)][this[n(0x154)]][n(0x14e)]=''+b,D+=0x1,this[n(0x147)]();},0x50),{elements:P,nextPageCursor:z}=await this[S(0x148)][S(0x14a)]({'nextPageCursor':this['nextPageCursor']})[S(0x149)](()=>({'elements':[],'nextPageCursor':undefined}));this[S(0x13f)]=z;const e=P[S(0x14c)](g=>new a14z(g,g));this['opt'][S(0x153)]['choices']['splice'](this[S(0x154)],0x1),this[S(0x14b)][S(0x153)][S(0x158)](...e),z!==undefined&&this[S(0x14b)]['choices'][S(0x158)](new a14z(this['reloadText'],this['reloadText'])),clearInterval(V),this[S(0x145)]=![];}}}
@@ -1 +1 @@
1
- const a15j=a15V;(function(e,V){const Y=a15V,b=e();while(!![]){try{const G=parseInt(Y(0x176))/0x1*(-parseInt(Y(0x185))/0x2)+-parseInt(Y(0x182))/0x3+parseInt(Y(0x17b))/0x4*(parseInt(Y(0x1c1))/0x5)+parseInt(Y(0x183))/0x6+parseInt(Y(0x187))/0x7+-parseInt(Y(0x168))/0x8+parseInt(Y(0x159))/0x9;if(G===V)break;else b['push'](b['shift']());}catch(a){b['push'](b['shift']());}}}(a15e,0x925b5));import{ApiClient}from'@northflank/js-client';function a15e(){const i=['printHostsFileHint','Services:','No\x20services\x20and\x20addons\x20to\x20forward\x20found\x20in\x20project\x20','join','option','Cleaning\x20up\x20open\x20connections\x20failed:\x20','green','16691112vPhTqU','Team\x20for\x20forwarding','Forwarding\x20','getProxyForwarder','entries','\x20is\x20running\x20and\x20reachable\x20and\x20that\x20a\x20port\x20is\x20defined\x20on\x20the\x20networking\x20section.','data.id','portFwdCmd','bold','Forwarding\x20addon\x20','service','askForProjectContext','action',',\x20hostname:\x20','skipHostnamesText','8564096SPAWXc','--service\x20--serviceId\x20[NAME]','hosts','name','\x20with\x20these\x20hostnames:','askForProject','port','\x20with\x20multiple\x20ports:','contextProvider','askForAddon','alias','SIGINT','\x20service\x20ports','\x20\x20-\x20port\x20','101685OLXfvE','askForTeam','error','askForService','--team\x20--teamId\x20[TEAMID]','4hYNnCt','tunnel-close','hostnames','message','Port-forwarding\x20for\x20all\x20services\x20and\x20addons\x20in\x20the\x20given\x20project','Running\x20on\x20macOS\x20in\x20','noDefaultsText','2060058gsiTao','4964376wIFoSa','Running\x20in\x20','14EBSUNR','--skipHostnames','1476111BEOsem','--project\x20--projectId\x20[NAME]','flat','getTokenScope','\x20addon\x20ports','log','ports','forwardProject','reset','/etc/hosts','Failed:\x20','greenBright','data','platform','type','forwardAddon','skipHostnames','with\x20hostname:\x20','http://','addCommand','darwin','>\x20Instance\x20\x27','Error\x20occured\x20while\x20trying\x20to\x20forward\x20','\x27\x20of\x20','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','Instance\x20to\x20forward','forwardService','\x20and\x20','Only\x20expose\x20on\x20IP\x20address,\x20not\x20on\x20hostnames.\x20With\x20this\x20option,\x20no\x20root\x20permissions\x20are\x20required.','length','Service\x20to\x20forward','win32','canExecuteWithHostnames','Port-forwarding\x20for\x20Northflank\x20services\x20and\x20addons.','Project\x20for\x20forwarding','HTTP','flatMap','addon','printForwardingInfo','C:/Windows/System32/drivers/etc/hosts','description','forEach','apiClient','forwarding','getCurrentProjectName','Forwarding\x20service\x20','Connection\x20error\x20occurred\x20when\x20forwarding\x20\x27','protocol','org','address','\x20to\x20','filter','\x20\x20\x20No\x20running\x20container\x20found\x20for\x20','Stop\x20forwarding\x20traffic\x20from\x20','\x20is\x20exposed\x20on\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20','getBaseCommand','Addon\x20to\x20forward','878165YfssBN','\x20\x20-\x20Address:\x20','--instance\x20--instanceId\x20[NAME]'];a15e=function(){return i;};return a15e();}function a15V(e,V){const b=a15e();return a15V=function(G,a){G=G-0x158;let m=b[G];return m;},a15V(e,V);}import a15b from'chalk';import{assertContextExisting,customUserAgent,error,getCommand,success,warning}from'../utils.js';import{InquirerHelper}from'../inquirer-helper.js';import*as a15G from'os';import{uniqBy,uniq,repeat,groupBy,capitalize}from'lodash-es';import{EOL}from'os';export class CliPortForward{[a15j(0x160)];[a15j(0x1b1)];[a15j(0x181)]=a15j(0x19f);[a15j(0x167)]=a15j(0x1a3);constructor(e,V){const d=a15j;this[d(0x1b1)]=new ApiClient(e,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':customUserAgent,'agent':V});const b=new InquirerHelper(this[d(0x1b1)]);this['portFwdCmd']=getCommand()[d(0x16b)]('forward')[d(0x172)]('fwd')[d(0x1af)](d(0x1a8));const G=this[d(0x1bf)]()[d(0x16b)]('all')['description'](d(0x17f))[d(0x1c8)]('--noDefaults',this[d(0x181)],![])['option'](d(0x186),this[d(0x167)],![])['action'](async({noDefaults:O,teamId:E,projectId:W,skipHostnames:M})=>{const B=d;assertContextExisting(this[B(0x1b1)]);const Q=this[B(0x15c)](M),k=O?undefined:e[B(0x1b3)](),{projectId:r,teamId:U}=await this['askForProjectContext'](e,b,E,W,k);try{const {services:S,addons:z}=await Q[B(0x18e)]({'teamId':U,'projectId':r},M);if(S[B(0x1a4)]+z[B(0x1a4)]<=0x0)warning(B(0x1c6)+a15b[B(0x161)](r));else{const x=S[B(0x1ba)](N=>N[B(0x1a4)]>0x0)[B(0x1a4)],o=z[B(0x1ba)](N=>N[B(0x1a4)]>0x0)[B(0x1a4)],K='\x20in\x20project\x20'+a15b['bold'](r);console['log'](B(0x15b)+a15b[B(0x158)][B(0x161)](x+B(0x174))+B(0x1a2)+a15b[B(0x158)][B(0x161)](o+B(0x18b))+K),console['log'](),console['log'](a15b[B(0x161)](B(0x1c5))),S['forEach'](N=>{const I=B;if(N[I(0x1a4)]>=0x1&&!N[0x0][I(0x178)])this['printForwardingInfo'](N,{'type':'service','name':N[0x0][I(0x193)]['id']},M);}),console[B(0x18c)](a15b[B(0x161)]('Addons:')),z[B(0x1b0)](N=>{const R=B;if(N['length']>=0x1&&!N[0x0][R(0x178)])this['printForwardingInfo'](N,{'type':R(0x1ac),'name':N[0x0]['data']['id']},M);}),this['printHostsFileHint']([...S[B(0x189)](),...z['flat']()],M);}}catch(N){error(B(0x191)+N[B(0x17e)]);}}),a=this['getBaseCommand']()[d(0x16b)]('service')['description']('Port-forwarding\x20for\x20the\x20specified\x20service')[d(0x1c8)](d(0x169),d(0x1a5))[d(0x1c8)](d(0x1c3),d(0x1a0))[d(0x1c8)]('--noDefaults',this[d(0x181)],![])['option']('--skipHostnames',this[d(0x167)],![])[d(0x165)](async({noDefaults:O,teamId:E,projectId:W,serviceId:M,instanceId:Q,skipHostnames:k})=>{const c=d;assertContextExisting(this[c(0x1b1)]);const r=this[c(0x15c)](k),U=O?undefined:e[c(0x1b3)](),{projectId:S,teamId:z}=await this[c(0x164)](e,b,W,E,U),x=O?undefined:e['getCurrentServiceName'](),o=M||x||await b[c(0x179)](S,z)();console[c(0x18c)](c(0x1b4)+a15b[c(0x161)](o)+'\x20in\x20project\x20'+a15b[c(0x161)](S));try{const K=await r[c(0x1a1)]({'teamId':z,'projectId':S,'serviceId':o,'instanceId':Q},k);this['printForwardingInfo'](K,{'name':o,'type':c(0x163),'instanceId':Q},k),this['printHostsFileHint'](K,k);}catch(N){error(c(0x191)+N[c(0x17e)]);}}),m=this[d(0x1bf)]()[d(0x16b)](d(0x1ac))[d(0x1af)]('Port-forwarding\x20for\x20the\x20specified\x20addon')[d(0x1c8)]('--addon\x20--addonId\x20[NAME]',d(0x1c0))[d(0x1c8)](d(0x186),this[d(0x167)],![])[d(0x165)](async({noDefaults:O,teamId:E,projectId:W,addonId:M,skipHostnames:Q})=>{const y=d;assertContextExisting(this['apiClient']);const k=this[y(0x15c)](Q),r=O?undefined:e[y(0x1b3)](),{projectId:U,teamId:S}=await this['askForProjectContext'](e,b,W,E,r),z=M||await b[y(0x171)](U,S)();console[y(0x18c)](y(0x162)+a15b[y(0x161)](z)+'\x20in\x20project\x20'+a15b[y(0x161)](U));try{const x={'teamId':S,'projectId':U,'addonId':z},o=await k[y(0x196)](x,Q);this[y(0x1ad)](o,{'name':z,'type':y(0x1ac)},Q),this[y(0x1c4)](o,Q);}catch(K){error('Failed:\x20'+K['message']);}});this[d(0x160)][d(0x19a)](G),this['portFwdCmd'][d(0x19a)](a),this['portFwdCmd'][d(0x19a)](m);}['getBaseCommand']=()=>{const X=a15j,e=getCommand(!![])[X(0x1c8)](X(0x188),X(0x1a9));return this[X(0x1b1)][X(0x170)][X(0x18a)]()===X(0x1b7)&&e[X(0x1c8)](X(0x17a),X(0x15a)),e;};['getProxyForwarder'](e=![]){const Z=a15j,V=this[Z(0x1b1)][Z(0x1b2)];if(!e){const b=V[Z(0x1a7)]();if(b[Z(0x178)])throw new Error(b[Z(0x17e)]);}return V['on'](Z(0x17c),(G,a)=>{const l=Z,m=a15b[l(0x161)](a[l(0x195)]+'\x20\x27'+a['id']+'\x27'),O=a['hostnames']['length']>0x0;warning(l(0x1bc)+a[l(0x1b8)]+':'+a[l(0x16e)]+l(0x1b9)+m),e&&O&&warning('\x20\x20If\x20you\x20have\x20added\x20entries\x20to\x20your\x20hosts\x20file,\x20it\x20is\x20recommended\x20to\x20remove\x20them\x20again\x20now.');}),V['on']('connection-error',(G,a,m)=>{const T=Z;warning(T(0x1b5)+a[T(0x1b8)]+':'+a[T(0x16e)]+'\x27:\x20\x22'+m?.[T(0x17e)]+'\x22');}),process['on'](Z(0x173),async()=>{const g=Z;try{await V['stop']();}catch(G){error(g(0x1c9)+G[g(0x17e)]);}finally{process['exit']();}}),V;}[a15j(0x1ad)](e,V,b=![]){const p=a15j,{type:G,name:a,instanceId:m}=V;if(e[p(0x1a4)]<=0x0){const M='Please\x20ensure\x20the\x20'+V[p(0x195)]+p(0x15e);warning(p(0x1bb)+G+'\x20'+a15b[p(0x161)](a)+'.\x20'+M);return;}const O=groupBy(e,p(0x15f)),E=Q=>'\x20('+(Q['portName']?Q['portName']+'\x20-\x20':'')+Q['protocol']+')';function W(Q,k=0x2){const C=p;if(!b){const r=Q[C(0x1b6)]===C(0x1aa)?C(0x199):'';Q['hostnames'][C(0x1b0)](U=>{const u=C;console['log'](repeat('\x20',k)+'-\x20'+r+U+':'+Q[u(0x16e)]);});}}Object[p(0x15d)](O)[p(0x1b0)](([Q,k])=>{const L=p,r=m?L(0x19c)+a15b[L(0x192)]['bold'](m)+L(0x19e)+G+'\x20\x27'+a15b[L(0x192)]['bold'](Q)+'\x27':'>\x20'+capitalize(G)+'\x20\x27'+a15b[L(0x192)][L(0x161)](Q)+'\x27';if(G===L(0x1ac)){if(k[L(0x1a4)]===0x1){const U=k[0x0];if(U[L(0x178)]){error(L(0x19d)+Q+':\x20'+U[L(0x178)][L(0x17e)]);return;}const S=U['data'],z=!b?'\x20'+a15b[L(0x18f)](L(0x198)+S[L(0x17d)][L(0x1c7)](',')):'';success(r+L(0x1bd)+S['address']+':'+S['port']+E(S)+z);}else{const x=uniqBy(k,o=>o?.['data']?.[L(0x17d)]?.['join'](','))[L(0x1a4)]>0x1;success(r+'\x20is\x20exposed\x20with\x20multiple\x20'+(x?L(0x16a):L(0x18d))+':'),k['forEach'](o=>{const q=L;if(o[q(0x178)]){error('Error\x20occured\x20while\x20trying\x20to\x20forward\x20'+Q+':\x20'+o[q(0x178)][q(0x17e)]);return;}const K=o['data'],N=!b?q(0x166)+K['hostnames']['join'](','):'';console[q(0x18c)](q(0x1c2)+K['address']+':'+K[q(0x16e)]+E(K)+N);});}}if(G===L(0x163)){if(k['length']===0x1){const o=k[0x0];if(o[L(0x178)]){error('Error\x20occured\x20while\x20trying\x20to\x20forward\x20'+Q+':\x20'+o[L(0x178)][L(0x17e)]);return;}const K=o[L(0x193)],N=!b?L(0x16c):':',J=K['address']+':'+K[L(0x16e)]+E(K);success(r+L(0x1bd)+J+N),W(K);}else success(r+L(0x1bd)+k[0x0]?.[L(0x193)]?.[L(0x1b8)]+L(0x16f)),k[L(0x1b0)](f=>{const s=L;if(f[s(0x178)]){error('Error\x20occured\x20while\x20trying\x20to\x20forward\x20'+Q+':\x20'+f[s(0x178)][s(0x17e)]);return;}const D=f[s(0x193)];success(s(0x175)+D[s(0x16e)]+E(D)),W(D,0x4);});}});}[a15j(0x1c4)](e,V=![]){const F=a15j;if(V){const b=e[F(0x1ab)](Q=>Q[F(0x193)])['filter'](Q=>Q!==undefined),G=process?.[F(0x194)]===F(0x1a6),a=a15G['platform']()===F(0x19b),m=G?F(0x1ae):F(0x190),O=a15b[F(0x161)](F(0x197)),E=a?EOL+F(0x180)+O+'\x20mode:\x20the\x20locally\x20forwarded\x20port\x20differs\x20from\x20the\x20actual\x20port\x20on\x20the\x20forwarded\x20service/addon.':undefined;let W=F(0x184)+O+'\x20mode.\x20If\x20hostname\x20forwarding\x20is\x20required,\x20remove\x20'+F(0x186)+'\x20flag\x20or\x20manually\x20append\x20following\x20entry\x20to\x20your\x20hosts\x20file\x20('+m+'):';E!==undefined&&warning(E??'');warning(W);const M=b['map'](Q=>Q[F(0x1b8)]+F(0x1be)+Q[F(0x17d)][F(0x1c7)]('\x20'));console[F(0x18c)](uniq(M)[F(0x1c7)](EOL)),console['log']();}}['askForProjectContext']=async(e,V,b,G,a)=>{const H=a15j,m=e[H(0x18a)]()==='org'?G??await V[H(0x177)]():undefined,O=b||a||await V[H(0x16d)](m)();return{'teamId':m,'projectId':O};};}
1
+ const a15E=a15V;(function(D,V){const F=a15V,P=D();while(!![]){try{const z=-parseInt(F(0xa8))/0x1*(parseInt(F(0xaa))/0x2)+parseInt(F(0xf3))/0x3+parseInt(F(0xb1))/0x4*(-parseInt(F(0xe2))/0x5)+parseInt(F(0xb3))/0x6*(-parseInt(F(0xc3))/0x7)+-parseInt(F(0x95))/0x8+-parseInt(F(0xab))/0x9+-parseInt(F(0xc7))/0xa*(-parseInt(F(0xb8))/0xb);if(z===V)break;else P['push'](P['shift']());}catch(e){P['push'](P['shift']());}}}(a15D,0xaf4a2));function a15D(){const c=['Error\x20occured\x20while\x20trying\x20to\x20forward\x20','entries','Services:','noDefaultsText','\x20with\x20these\x20hostnames:','bold','printForwardingInfo','Addons:','\x20and\x20','forwarding','exit','Please\x20ensure\x20the\x20','greenBright','Port-forwarding\x20for\x20the\x20specified\x20addon','getCurrentProjectName','4118745FvXcCl','apiClient','option','askForProjectContext','SIGINT','C:/Windows/System32/drivers/etc/hosts','data','getTokenScope','forwardService','addon','with\x20hostname:\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20','hosts','addCommand','\x20\x20\x20No\x20running\x20container\x20found\x20for\x20','askForTeam','length','data.id','printHostsFileHint','Only\x20expose\x20on\x20IP\x20address,\x20not\x20on\x20hostnames.\x20With\x20this\x20option,\x20no\x20root\x20permissions\x20are\x20required.','3945608zQHFem','all','\x27:\x20\x22','skipHostnamesText','description','Forwarding\x20','\x20-\x20','filter','port','askForProject','canExecuteWithHostnames','Instance\x20to\x20forward','green','HTTP','tunnel-close','forEach','askForAddon','message','connection-error','179uCIHUe','\x20flag\x20or\x20manually\x20append\x20following\x20entry\x20to\x20your\x20hosts\x20file\x20(','3602CsDMKG','9618273KjCvMA','Port-forwarding\x20for\x20Northflank\x20services\x20and\x20addons.','Cleaning\x20up\x20open\x20connections\x20failed:\x20','No\x20services\x20and\x20addons\x20to\x20forward\x20found\x20in\x20project\x20','--team\x20--teamId\x20[TEAMID]','darwin','4060OTttcO','--service\x20--serviceId\x20[NAME]','6VLMMYJ','\x20to\x20','alias','--noDefaults','hostnames','6802103nZSIKH','--skipHostnames','askForService','\x20\x20-\x20port\x20','log','\x20mode:\x20the\x20locally\x20forwarded\x20port\x20differs\x20from\x20the\x20actual\x20port\x20on\x20the\x20forwarded\x20service/addon.','contextProvider','\x20\x20-\x20Address:\x20','ports','fwd','protocol','10025099IPvZAm','\x27\x20of\x20','action','getCurrentServiceName','50nzebCS','Running\x20in\x20','\x20\x20If\x20you\x20have\x20added\x20entries\x20to\x20your\x20hosts\x20file,\x20it\x20is\x20recommended\x20to\x20remove\x20them\x20again\x20now.','\x20is\x20exposed\x20on\x20','\x20is\x20running\x20and\x20reachable\x20and\x20that\x20a\x20port\x20is\x20defined\x20on\x20the\x20networking\x20section.','flat','--addon\x20--addonId\x20[NAME]','type','getBaseCommand','/etc/hosts','Team\x20for\x20forwarding','forwardProject','Failed:\x20','\x20service\x20ports','forwardAddon','org','name','join','--project\x20--projectId\x20[NAME]','platform','portFwdCmd','Stop\x20forwarding\x20traffic\x20from\x20','portName','error','address','service','getProxyForwarder','2120CpgpAs','Forwarding\x20addon\x20'];a15D=function(){return c;};return a15D();}import{ApiClient}from'@northflank/js-client';import a15P from'chalk';import{assertContextExisting,customUserAgent,error,getCommand,success,warning}from'../utils.js';import{InquirerHelper}from'../inquirer-helper.js';import*as a15z from'os';import{uniqBy,uniq,repeat,groupBy,capitalize}from'lodash-es';function a15V(D,V){const P=a15D();return a15V=function(z,e){z=z-0x87;let g=P[z];return g;},a15V(D,V);}import{EOL}from'os';export class CliPortForward{[a15E(0xdb)];[a15E(0xf4)];[a15E(0xe7)]='Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.';['skipHostnamesText']=a15E(0x94);constructor(D,V){const J=a15E;this[J(0xf4)]=new ApiClient(D,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':customUserAgent,'agent':V});const P=new InquirerHelper(this[J(0xf4)]);this['portFwdCmd']=getCommand()[J(0xd7)]('forward')[J(0xb5)](J(0xc1))[J(0x99)](J(0xac));const z=this[J(0xcf)]()['name'](J(0x96))['description']('Port-forwarding\x20for\x20all\x20services\x20and\x20addons\x20in\x20the\x20given\x20project')['option'](J(0xb6),this[J(0xe7)],![])[J(0xf5)](J(0xb9),this[J(0x98)],![])[J(0xc5)](async({noDefaults:b,teamId:B,projectId:h,skipHostnames:l})=>{const x=J;assertContextExisting(this[x(0xf4)]);const t=this[x(0xe1)](l),i=b?undefined:D[x(0xf2)](),{projectId:s,teamId:S}=await this[x(0xf6)](D,P,B,h,i);try{const {services:n,addons:A}=await t[x(0xd2)]({'teamId':S,'projectId':s},l);if(n['length']+A[x(0x91)]<=0x0)warning(x(0xae)+a15P['bold'](s));else{const X=n[x(0x9c)](k=>k['length']>0x0)[x(0x91)],U=A[x(0x9c)](k=>k['length']>0x0)[x(0x91)],R='\x20in\x20project\x20'+a15P[x(0xe9)](s);console[x(0xbc)](x(0x9a)+a15P['green']['bold'](X+x(0xd4))+x(0xec)+a15P[x(0xa1)][x(0xe9)](U+'\x20addon\x20ports')+R),console[x(0xbc)](),console[x(0xbc)](a15P[x(0xe9)](x(0xe6))),n[x(0xa4)](k=>{const C=x;if(k[C(0x91)]>=0x1&&!k[0x0][C(0xde)])this[C(0xea)](k,{'type':'service','name':k[0x0][C(0x87)]['id']},l);}),console[x(0xbc)](a15P[x(0xe9)](x(0xeb))),A[x(0xa4)](k=>{const M=x;if(k[M(0x91)]>=0x1&&!k[0x0][M(0xde)])this[M(0xea)](k,{'type':M(0x8a),'name':k[0x0][M(0x87)]['id']},l);}),this[x(0x93)]([...n[x(0xcc)](),...A[x(0xcc)]()],l);}}catch(k){error(x(0xd3)+k[x(0xa6)]);}}),e=this[J(0xcf)]()[J(0xd7)](J(0xe0))[J(0x99)]('Port-forwarding\x20for\x20the\x20specified\x20service')[J(0xf5)](J(0xb2),'Service\x20to\x20forward')[J(0xf5)]('--instance\x20--instanceId\x20[NAME]',J(0xa0))[J(0xf5)](J(0xb6),this[J(0xe7)],![])[J(0xf5)](J(0xb9),this['skipHostnamesText'],![])[J(0xc5)](async({noDefaults:b,teamId:B,projectId:h,serviceId:l,instanceId:t,skipHostnames:i})=>{const W=J;assertContextExisting(this[W(0xf4)]);const s=this['getProxyForwarder'](i),S=b?undefined:D['getCurrentProjectName'](),{projectId:n,teamId:A}=await this['askForProjectContext'](D,P,h,B,S),X=b?undefined:D[W(0xc6)](),U=l||X||await P[W(0xba)](n,A)();console[W(0xbc)]('Forwarding\x20service\x20'+a15P[W(0xe9)](U)+'\x20in\x20project\x20'+a15P['bold'](n));try{const R=await s[W(0x89)]({'teamId':A,'projectId':n,'serviceId':U,'instanceId':t},i);this[W(0xea)](R,{'name':U,'type':W(0xe0),'instanceId':t},i),this[W(0x93)](R,i);}catch(k){error('Failed:\x20'+k[W(0xa6)]);}}),g=this[J(0xcf)]()[J(0xd7)](J(0x8a))[J(0x99)](J(0xf1))[J(0xf5)](J(0xcd),'Addon\x20to\x20forward')[J(0xf5)]('--skipHostnames',this[J(0x98)],![])[J(0xc5)](async({noDefaults:b,teamId:B,projectId:h,addonId:l,skipHostnames:t})=>{const d=J;assertContextExisting(this[d(0xf4)]);const i=this[d(0xe1)](t),s=b?undefined:D[d(0xf2)](),{projectId:S,teamId:n}=await this[d(0xf6)](D,P,h,B,s),A=l||await P[d(0xa5)](S,n)();console[d(0xbc)](d(0xe3)+a15P['bold'](A)+'\x20in\x20project\x20'+a15P[d(0xe9)](S));try{const X={'teamId':n,'projectId':S,'addonId':A},U=await i[d(0xd5)](X,t);this[d(0xea)](U,{'name':A,'type':d(0x8a)},t),this[d(0x93)](U,t);}catch(R){error(d(0xd3)+R['message']);}});this[J(0xdb)][J(0x8e)](z),this[J(0xdb)][J(0x8e)](e),this[J(0xdb)][J(0x8e)](g);}['getBaseCommand']=()=>{const f=a15E,D=getCommand(!![])[f(0xf5)](f(0xd9),'Project\x20for\x20forwarding');return this[f(0xf4)][f(0xbe)][f(0x88)]()===f(0xd6)&&D[f(0xf5)](f(0xaf),f(0xd1)),D;};[a15E(0xe1)](D=![]){const T=a15E,V=this[T(0xf4)][T(0xed)];if(!D){const P=V[T(0x9f)]();if(P['error'])throw new Error(P[T(0xa6)]);}return V['on'](T(0xa3),(z,e)=>{const m=T,g=a15P[m(0xe9)](e['type']+'\x20\x27'+e['id']+'\x27'),b=e[m(0xb7)][m(0x91)]>0x0;warning(m(0xdc)+e[m(0xdf)]+':'+e[m(0x9d)]+m(0xb4)+g),D&&b&&warning(m(0xc9));}),V['on'](T(0xa7),(z,e,g)=>{const q=T;warning('Connection\x20error\x20occurred\x20when\x20forwarding\x20\x27'+e[q(0xdf)]+':'+e[q(0x9d)]+q(0x97)+g?.[q(0xa6)]+'\x22');}),process['on'](T(0xf7),async()=>{const L=T;try{await V['stop']();}catch(z){error(L(0xad)+z[L(0xa6)]);}finally{process[L(0xee)]();}}),V;}[a15E(0xea)](D,V,P=![]){const Z=a15E,{type:z,name:e,instanceId:g}=V;if(D[Z(0x91)]<=0x0){const l=Z(0xef)+V[Z(0xce)]+Z(0xcb);warning(Z(0x8f)+z+'\x20'+a15P[Z(0xe9)](e)+'.\x20'+l);return;}const b=groupBy(D,Z(0x92)),B=t=>'\x20('+(t['portName']?t[Z(0xdd)]+Z(0x9b):'')+t[Z(0xc2)]+')';function h(t,i=0x2){const u=Z;if(!P){const s=t['protocol']===u(0xa2)?'http://':'';t[u(0xb7)][u(0xa4)](S=>{const N=u;console[N(0xbc)](repeat('\x20',i)+'-\x20'+s+S+':'+t[N(0x9d)]);});}}Object[Z(0xe5)](b)[Z(0xa4)](([t,i])=>{const O=Z,s=g?'>\x20Instance\x20\x27'+a15P[O(0xf0)][O(0xe9)](g)+O(0xc4)+z+'\x20\x27'+a15P[O(0xf0)][O(0xe9)](t)+'\x27':'>\x20'+capitalize(z)+'\x20\x27'+a15P['greenBright'][O(0xe9)](t)+'\x27';if(z==='addon'){if(i['length']===0x1){const S=i[0x0];if(S[O(0xde)]){error(O(0xe4)+t+':\x20'+S[O(0xde)]['message']);return;}const n=S[O(0x87)],A=!P?'\x20'+a15P['reset'](O(0x8b)+n[O(0xb7)][O(0xd8)](',')):'';success(s+'\x20is\x20exposed\x20on\x20'+n['address']+':'+n[O(0x9d)]+B(n)+A);}else{const X=uniqBy(i,U=>U?.[O(0x87)]?.[O(0xb7)]?.[O(0xd8)](','))[O(0x91)]>0x1;success(s+'\x20is\x20exposed\x20with\x20multiple\x20'+(X?O(0x8d):O(0xc0))+':'),i[O(0xa4)](U=>{const I=O;if(U['error']){error(I(0xe4)+t+':\x20'+U['error'][I(0xa6)]);return;}const R=U[I(0x87)],k=!P?',\x20hostname:\x20'+R[I(0xb7)]['join'](','):'';console[I(0xbc)](I(0xbf)+R[I(0xdf)]+':'+R['port']+B(R)+k);});}}if(z==='service'){if(i[O(0x91)]===0x1){const U=i[0x0];if(U['error']){error(O(0xe4)+t+':\x20'+U['error']['message']);return;}const R=U['data'],k=!P?O(0xe8):':',H=R[O(0xdf)]+':'+R[O(0x9d)]+B(R);success(s+O(0xca)+H+k),h(R);}else success(s+'\x20is\x20exposed\x20on\x20'+i[0x0]?.[O(0x87)]?.['address']+'\x20with\x20multiple\x20ports:'),i['forEach'](G=>{const a=O;if(G['error']){error('Error\x20occured\x20while\x20trying\x20to\x20forward\x20'+t+':\x20'+G[a(0xde)][a(0xa6)]);return;}const o=G[a(0x87)];success(a(0xbb)+o[a(0x9d)]+B(o)),h(o,0x4);});}});}[a15E(0x93)](D,V=![]){const Y=a15E;if(V){const P=D['flatMap'](t=>t['data'])[Y(0x9c)](t=>t!==undefined),z=process?.[Y(0xda)]==='win32',e=a15z[Y(0xda)]()===Y(0xb0),g=z?Y(0xf8):Y(0xd0),b=a15P[Y(0xe9)]('skipHostnames'),B=e?EOL+'Running\x20on\x20macOS\x20in\x20'+b+Y(0xbd):undefined;let h=Y(0xc8)+b+'\x20mode.\x20If\x20hostname\x20forwarding\x20is\x20required,\x20remove\x20'+Y(0xb9)+Y(0xa9)+g+'):';B!==undefined&&warning(B??'');warning(h);const l=P['map'](t=>t[Y(0xdf)]+Y(0x8c)+t['hostnames'][Y(0xd8)]('\x20'));console['log'](uniq(l)[Y(0xd8)](EOL)),console[Y(0xbc)]();}}['askForProjectContext']=async(D,V,P,z,e)=>{const p=a15E,g=D['getTokenScope']()===p(0xd6)?z??await V[p(0x90)]():undefined,b=P||e||await V[p(0x9e)](g)();return{'teamId':g,'projectId':b};};}
package/dist/ssh/index.js CHANGED
@@ -1 +1 @@
1
- const a16l=a16V;(function(e,V){const Z=a16V,b=e();while(!![]){try{const G=parseInt(Z(0x172))/0x1+parseInt(Z(0x17f))/0x2+-parseInt(Z(0x16f))/0x3+-parseInt(Z(0x177))/0x4*(-parseInt(Z(0x199))/0x5)+-parseInt(Z(0x191))/0x6*(-parseInt(Z(0x171))/0x7)+-parseInt(Z(0x155))/0x8+-parseInt(Z(0x166))/0x9;if(G===V)break;else b['push'](b['shift']());}catch(a){b['push'](b['shift']());}}}(a16e,0x9f95c));function a16e(){const i=['slice','action','message','which','forwarding','RequestTTY=yes','\x20\x20>\x20SSH\x20session:','log','Id\x20[NAME]','\x20file.txt\x20',',\x20stop\x20with\x20Ctrl+C','Ctrl+C\x20received\x20-\x20Terminating\x20SSH\x20proxy...',',\x20stop\x20with\x20Ctrl+D','6054520EWznwx','unknown\x20error','apiClient','Establish\x20SSH\x20connectivity\x20to\x20Northflank\x20','data','ssh','askForProject','org','askForTeam','kill','Use\x20specific\x20username\x20for\x20SSH\x20connection','SSH\x20binary\x20not\x20found.\x20Please\x20install\x20OpenSSH.','findSSH','Unable\x20to\x20initiate\x20SSH\x20tunnel.\x20Ensure\x20your\x20service\x20is\x20running\x20and\x20has\x20SSH\x20enabled','Error\x20trying\x20to\x20forward:\x20','startSSH','/usr/local/bin/ssh','6463458XDqkKa','sftp\x20-P\x20','\x20\x20>\x20RSYNC:\x20\x20\x09','trim','-tt','\x20hostnames\x20on\x20local\x20machine.\x20Requires\x20sudo\x20permissions','Use\x20with\x20any\x20SSH\x20compatible\x20client.\x20Example\x20usages:','inherit','blackBright','1655664Yuynnc','find','504hXDJkM','563486zzJQcX','option','portName','description','\x20\x20>\x20SCP:\x20\x20\x09','291752NimNIh','--proxyOnly','withServiceForwarding','scp\x20-P\x20','charAt','Instance\x20to\x20use\x20for\x20SSH\x20(random\x20instance\x20will\x20be\x20chosen\x20if\x20not\x20specified)','isTTY','error','1155466ICILHn','uncaughtException','stdin','service','Team\x20id','\x20--','Failed\x20to\x20spawn\x20SSH\x20command:\x20','default-ssh','Replicate\x20','askForService','getCurrentServiceName','askForContainer','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','C:\x5cWindows\x5cSystem32\x5cOpenSSH\x5cssh.exe','contextProvider','\x20-l','--project\x20--projectId\x20[NAME]','execFileAsync','73572QVfpVa','Must\x20be\x20run\x20in\x20an\x20interactive\x20terminal\x20(TTY\x20required).','getCurrentProjectName','askForProjectContext','root','--user\x20[USER]','ssh\x20','sshCmd','45mMadGa','SIGINT','SSH\x20proxy\x20started\x20on\x20endpoint:\x20','--instance\x20--instanceName\x20[NAME]','--noDefaults','\x20to\x20ssh\x20into','close','rsync\x20-avz\x20-e\x20\x22ssh\x20-p\x20','SIGTERM','name','--team\x20--teamId\x20[TEAMID]','addCommand'];a16e=function(){return i;};return a16e();}function a16V(e,V){const b=a16e();return a16V=function(G,a){G=G-0x141;let m=b[G];return m;},a16V(e,V);}import{ApiClient}from'@northflank/js-client';import{assertContextExisting,customUserAgent,error,getCommand,success,warning}from'../utils.js';import{InquirerHelper}from'../inquirer-helper.js';import{spawn}from'child_process';import{execFile}from'child_process';import{promisify}from'util';import a16b from'chalk';export class CliSsh{['sshCmd'];[a16l(0x157)];constructor(e,V){const T=a16l;this[T(0x157)]=new ApiClient(e,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':customUserAgent,'agent':V});const b=new InquirerHelper(this['apiClient']);this[T(0x198)]=getCommand(!![])[T(0x145)](T(0x15a))[T(0x175)]('SSH\x20for\x20Northflank\x20services\x20and\x20jobs.');const G=T(0x182),a=getCommand(!![])['name'](G)[T(0x175)](T(0x158)+G+'.\x20Creates\x20an\x20SSH\x20terminal\x20session\x20by\x20default.')[T(0x173)](T(0x18f),'Project\x20of\x20the\x20'+G)[T(0x173)]('--'+G+T(0x184)+G+T(0x150),G[T(0x17b)](0x0)['toUpperCase']()+G[T(0x148)](0x1)+T(0x141))[T(0x173)](T(0x19c),T(0x17c))[T(0x173)](T(0x178),'Only\x20startup\x20SSH\x20proxy\x20without\x20opening\x20an\x20SSH\x20terminal\x20session.',![])[T(0x173)]('--useHostnames',T(0x187)+G+T(0x16b),![])[T(0x173)](T(0x196),T(0x15f))[T(0x173)](T(0x19d),T(0x18b),![]);this[T(0x157)][T(0x18d)]['getTokenScope']()===T(0x15c)&&a[T(0x173)](T(0x146),T(0x183));const m=a[T(0x149)](async O=>{const g=T,{noDefaults:E,teamId:W,projectId:M,serviceId:Q,instanceName:k,proxyOnly:r,useHostnames:U}=O,{user:user='root',quiet:S}=O;assertContextExisting(this[g(0x157)]);try{const z=E?undefined:e[g(0x193)](),{projectId:x,teamId:o}=await this[g(0x194)](e,b,M,W,z),K=E?undefined:e[g(0x189)](),N=Q||K||await b[g(0x188)](x,o)(),J=k||await b[g(0x18a)](x,N,undefined,![],o,!![])(),f=process[g(0x181)][g(0x17d)],D=f&&!r,Y={'teamId':o,'projectId':x,'serviceId':N,'instanceId':J,'portsFilter':[0x16]};await this[g(0x157)][g(0x14c)][g(0x179)](Y,async j=>{const p=g,d=j[p(0x170)](y=>y[p(0x159)]?.[p(0x174)]===p(0x186));if(d===undefined)throw new Error(p(0x162));if(d?.[p(0x17e)]!==undefined||d?.[p(0x159)]===undefined)throw new Error(p(0x163)+(d?.[p(0x17e)]?.[p(0x14a)]??p(0x156)));const {address:B,port:I,hostnames:R}=d[p(0x159)],c=U?R[0x0]??B:B;D?(!S&&success(p(0x19b)+(c+':'+I)+p(0x154)),await this['startSSH']({'address':c,'port':I,'user':user})):(!S?(success('SSH\x20proxy\x20started\x20on\x20endpoint:\x20'+(c+':'+I)+p(0x152)),console[p(0x14f)](p(0x16c)),console[p(0x14f)](p(0x14e)+a16b['blackBright'](p(0x197)+user+'@'+c+'\x20-p\x20'+I)),console['log']('\x20\x20>\x20SFTP:\x20\x20\x09'+a16b[p(0x16e)](p(0x167)+I+'\x20'+user+'@'+c)),console[p(0x14f)](p(0x168)+a16b[p(0x16e)](p(0x143)+I+'\x22\x20./data/\x20'+user+'@'+c+':/rsync-test/')),console['log'](p(0x176)+a16b[p(0x16e)](p(0x17a)+I+p(0x151)+user+'@'+c+':/remote/path/'))):console[p(0x14f)](user,c,I),await new Promise((y,X)=>{const u=p;process['on']('SIGINT',()=>{const C=a16V;if(!S)success(C(0x153));y();}),process['on'](u(0x180),X);}));},!U);}catch(j){error(''+j['message']);}finally{process['exit']();}});this[T(0x198)][T(0x147)](m);}[a16l(0x190)]=promisify(execFile);async[a16l(0x161)](){const L=a16l;try{const {stdout:e}=await this[L(0x190)](L(0x14b),[L(0x15a)]);return e[L(0x169)]();}catch{const V=[L(0x15a),'/usr/bin/ssh',L(0x165),L(0x18c)];for(const b of V){try{return await this[L(0x190)](b,['-V']),b;}catch{}}return null;}}async[a16l(0x164)](e){const q=a16l,V=await this[q(0x161)]();if(!V)throw new Error(q(0x160));if(!process[q(0x181)][q(0x17d)])throw new Error(q(0x192));const {address:b,port:port=0x16,user:user=q(0x195),args:args=[],trusted:trusted=!![]}=e,G=[];trusted&&G['push']('-o','StrictHostKeyChecking=no','-o','UserKnownHostsFile=/dev/null','-o','LogLevel=ERROR');user!=='root'&&G['push']('-o','RemoteCommand=su\x20'+user+q(0x18e),'-o',q(0x14d));const a=spawn(V,[q(0x16a),'-p',port['toString'](),'-l',q(0x195),...G,...args,b],{'stdio':q(0x16d)});await new Promise((m,O)=>{const s=q;a['on'](s(0x142),(E,W)=>{if(W)warning('SSH\x20killed\x20by\x20signal:\x20'+W);else E!==0x0?warning('SSH\x20exited\x20with\x20code:\x20'+E):success('SSH\x20session\x20ended.');m(E);}),a['on'](s(0x17e),E=>{const F=s;O(new Error(F(0x185)+E[F(0x14a)]));}),process['on'](s(0x19a),()=>a[s(0x15e)]('SIGINT')),process['on'](s(0x144),()=>a[s(0x15e)]('SIGTERM'));});}['askForProjectContext']=async(e,V,b,G,a)=>{const H=a16l,m=e['getTokenScope']()===H(0x15c)?G??await V[H(0x15d)]():undefined,O=b||a||await V[H(0x15b)](m)();return{'teamId':m,'projectId':O};};}
1
+ const a16m=a16V;(function(D,V){const T=a16V,P=D();while(!![]){try{const z=-parseInt(T(0xe4))/0x1*(-parseInt(T(0xcf))/0x2)+-parseInt(T(0xf8))/0x3*(-parseInt(T(0xc7))/0x4)+parseInt(T(0xc9))/0x5+parseInt(T(0xdd))/0x6+parseInt(T(0xc5))/0x7+-parseInt(T(0xb1))/0x8+-parseInt(T(0xac))/0x9*(parseInt(T(0xdc))/0xa);if(z===V)break;else P['push'](P['shift']());}catch(e){P['push'](P['shift']());}}}(a16D,0xa5f53));import{ApiClient}from'@northflank/js-client';function a16V(D,V){const P=a16D();return a16V=function(z,e){z=z-0xa2;let g=P[z];return g;},a16V(D,V);}import{assertContextExisting,customUserAgent,error,getCommand,success,warning}from'../utils.js';import{InquirerHelper}from'../inquirer-helper.js';import{spawn}from'child_process';import{execFile}from'child_process';import{promisify}from'util';import a16P from'chalk';export class CliSsh{[a16m(0xe5)];[a16m(0xad)];constructor(D,V){const q=a16m;this[q(0xad)]=new ApiClient(D,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':customUserAgent,'agent':V});const P=new InquirerHelper(this[q(0xad)]);this[q(0xe5)]=getCommand(!![])['name']('ssh')['description']('SSH\x20for\x20Northflank\x20services\x20and\x20jobs.');const z=q(0xdb),e=getCommand(!![])[q(0xc1)](z)[q(0xd3)]('Establish\x20SSH\x20connectivity\x20to\x20Northflank\x20'+z+q(0xa5))[q(0xe0)]('--project\x20--projectId\x20[NAME]',q(0xea)+z)[q(0xe0)]('--'+z+q(0xd6)+z+'Id\x20[NAME]',z[q(0xe7)](0x0)['toUpperCase']()+z[q(0xaf)](0x1)+q(0xb2))['option'](q(0xe1),q(0xc0))[q(0xe0)](q(0xee),'Only\x20startup\x20SSH\x20proxy\x20without\x20opening\x20an\x20SSH\x20terminal\x20session.',![])[q(0xe0)](q(0xbe),'Replicate\x20'+z+q(0xba),![])['option'](q(0xae),q(0xf3))[q(0xe0)](q(0xb4),q(0xc8),![]);this[q(0xad)][q(0xb3)][q(0xbf)]()===q(0xd0)&&e['option']('--team\x20--teamId\x20[TEAMID]',q(0xd1));const g=e[q(0xb0)](async b=>{const L=q,{noDefaults:B,teamId:h,projectId:l,serviceId:t,instanceName:i,proxyOnly:s,useHostnames:S}=b,{user:user=L(0xdf),quiet:n}=b;assertContextExisting(this[L(0xad)]);try{const A=B?undefined:D['getCurrentProjectName'](),{projectId:X,teamId:U}=await this[L(0xf7)](D,P,l,h,A),R=B?undefined:D[L(0xbb)](),k=t||R||await P['askForService'](X,U)(),H=i||await P[L(0xb5)](X,k,undefined,![],U,!![])(),G=process[L(0xc3)][L(0xa4)],o=G&&!s,F={'teamId':U,'projectId':X,'serviceId':k,'instanceId':H,'portsFilter':[0x16]};await this['apiClient'][L(0xe9)]['withServiceForwarding'](F,async E=>{const Z=L,J=E[Z(0xa8)](d=>d['data']?.[Z(0xeb)]===Z(0xe2));if(J===undefined)throw new Error(Z(0xa3));if(J?.[Z(0xa2)]!==undefined||J?.['data']===undefined)throw new Error(Z(0xa6)+(J?.[Z(0xa2)]?.[Z(0xef)]??Z(0xf2)));const {address:x,port:C,hostnames:M}=J['data'],W=S?M[0x0]??x:x;o?(!n&&success(Z(0xf4)+(W+':'+C)+Z(0xaa)),await this['startSSH']({'address':W,'port':C,'user':user})):(!n?(success(Z(0xf4)+(W+':'+C)+Z(0xf1)),console[Z(0xca)](Z(0xe3)),console[Z(0xca)](Z(0xcd)+a16P['blackBright']('ssh\x20'+user+'@'+W+'\x20-p\x20'+C)),console['log']('\x20\x20>\x20SFTP:\x20\x20\x09'+a16P[Z(0xc6)](Z(0xed)+C+'\x20'+user+'@'+W)),console[Z(0xca)]('\x20\x20>\x20RSYNC:\x20\x20\x09'+a16P[Z(0xc6)](Z(0xf0)+C+Z(0xcc)+user+'@'+W+':/rsync-test/')),console[Z(0xca)]('\x20\x20>\x20SCP:\x20\x20\x09'+a16P[Z(0xc6)]('scp\x20-P\x20'+C+Z(0xe6)+user+'@'+W+':/remote/path/'))):console['log'](user,W,C),await new Promise((d,f)=>{const u=Z;process['on'](u(0xcb),()=>{if(!n)success('Ctrl+C\x20received\x20-\x20Terminating\x20SSH\x20proxy...');d();}),process['on']('uncaughtException',f);}));},!S);}catch(E){error(''+E[L(0xef)]);}finally{process['exit']();}});this['sshCmd'][q(0xd5)](g);}['execFileAsync']=promisify(execFile);async[a16m(0xfb)](){const N=a16m;try{const {stdout:D}=await this[N(0xd2)](N(0xbd),[N(0xce)]);return D[N(0xd7)]();}catch{const V=[N(0xce),N(0xab),N(0xb6),N(0xde)];for(const P of V){try{return await this['execFileAsync'](P,['-V']),P;}catch{}}return null;}}async[a16m(0xda)](D){const O=a16m,V=await this['findSSH']();if(!V)throw new Error(O(0xfc));if(!process[O(0xc3)]['isTTY'])throw new Error(O(0xd4));const {address:P,port:port=0x16,user:user='root',args:args=[],trusted:trusted=!![]}=D,z=[];trusted&&z[O(0xfa)]('-o',O(0xb7),'-o',O(0xa9),'-o',O(0xfd));user!==O(0xdf)&&z['push']('-o',O(0xe8)+user+'\x20-l','-o',O(0xec));const e=spawn(V,['-tt','-p',port[O(0xbc)](),'-l',O(0xdf),...z,...args,P],{'stdio':O(0xf5)});await new Promise((g,b)=>{const I=O;e['on'](I(0xc2),(B,h)=>{const a=I;if(h)warning(a(0xd9)+h);else B!==0x0?warning(a(0xc4)+B):success(a(0xa7));g(B);}),e['on'](I(0xa2),B=>{const Y=I;b(new Error(Y(0xd8)+B[Y(0xef)]));}),process['on'](I(0xcb),()=>e[I(0xf6)]('SIGINT')),process['on'](I(0xb9),()=>e[I(0xf6)]('SIGTERM'));});}[a16m(0xf7)]=async(D,V,P,z,e)=>{const p=a16m,g=D[p(0xbf)]()===p(0xd0)?z??await V[p(0xb8)]():undefined,b=P||e||await V[p(0xf9)](g)();return{'teamId':g,'projectId':b};};}function a16D(){const c=['forwarding','Project\x20of\x20the\x20','portName','RequestTTY=yes','sftp\x20-P\x20','--proxyOnly','message','rsync\x20-avz\x20-e\x20\x22ssh\x20-p\x20',',\x20stop\x20with\x20Ctrl+C','unknown\x20error','Use\x20specific\x20username\x20for\x20SSH\x20connection','SSH\x20proxy\x20started\x20on\x20endpoint:\x20','inherit','kill','askForProjectContext','18jbLRsx','askForProject','push','findSSH','SSH\x20binary\x20not\x20found.\x20Please\x20install\x20OpenSSH.','LogLevel=ERROR','error','Unable\x20to\x20initiate\x20SSH\x20tunnel.\x20Ensure\x20your\x20service\x20is\x20running\x20and\x20has\x20SSH\x20enabled','isTTY','.\x20Creates\x20an\x20SSH\x20terminal\x20session\x20by\x20default.','Error\x20trying\x20to\x20forward:\x20','SSH\x20session\x20ended.','find','UserKnownHostsFile=/dev/null',',\x20stop\x20with\x20Ctrl+D','/usr/bin/ssh','9lsIsiu','apiClient','--user\x20[USER]','slice','action','5146352FyGbDj','\x20to\x20ssh\x20into','contextProvider','--noDefaults','askForContainer','/usr/local/bin/ssh','StrictHostKeyChecking=no','askForTeam','SIGTERM','\x20hostnames\x20on\x20local\x20machine.\x20Requires\x20sudo\x20permissions','getCurrentServiceName','toString','which','--useHostnames','getTokenScope','Instance\x20to\x20use\x20for\x20SSH\x20(random\x20instance\x20will\x20be\x20chosen\x20if\x20not\x20specified)','name','close','stdin','SSH\x20exited\x20with\x20code:\x20','519386anivpZ','blackBright','384248XaxJUb','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','1593870XOMpct','log','SIGINT','\x22\x20./data/\x20','\x20\x20>\x20SSH\x20session:','ssh','18aqwSel','org','Team\x20id','execFileAsync','description','Must\x20be\x20run\x20in\x20an\x20interactive\x20terminal\x20(TTY\x20required).','addCommand','\x20--','trim','Failed\x20to\x20spawn\x20SSH\x20command:\x20','SSH\x20killed\x20by\x20signal:\x20','startSSH','service','18789730rwcnyH','6512250UhiOZn','C:\x5cWindows\x5cSystem32\x5cOpenSSH\x5cssh.exe','root','option','--instance\x20--instanceName\x20[NAME]','default-ssh','Use\x20with\x20any\x20SSH\x20compatible\x20client.\x20Example\x20usages:','127479IMwaCp','sshCmd','\x20file.txt\x20','charAt','RemoteCommand=su\x20'];a16D=function(){return c;};return a16D();}
package/dist/utils.js CHANGED
@@ -1 +1 @@
1
- const a17Q=a17V;(function(e,V){const M=a17V,b=e();while(!![]){try{const G=-parseInt(M(0x120))/0x1*(-parseInt(M(0x14a))/0x2)+parseInt(M(0x136))/0x3+parseInt(M(0x132))/0x4+parseInt(M(0x150))/0x5*(parseInt(M(0x12a))/0x6)+parseInt(M(0x12e))/0x7*(-parseInt(M(0x152))/0x8)+parseInt(M(0x158))/0x9+-parseInt(M(0x141))/0xa*(parseInt(M(0x13a))/0xb);if(G===V)break;else b['push'](b['shift']());}catch(a){b['push'](b['shift']());}}}(a17e,0x7e5e3));function a17V(e,V){const b=a17e();return a17V=function(G,a){G=G-0x11a;let m=b[G];return m;},a17V(e,V);}import a17b from'chalk';import{Command}from'commander';import{ProxyAgent}from'proxy-agent';import a17G from'node-fetch';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta['url']),__dirname=dirname(__filename),pgk=JSON[a17Q(0x13c)](readFileSync(join(__dirname,'../package.json'),a17Q(0x153)));export const customUserAgent='northflank-cli/'+pgk?.[a17Q(0x144)];export const agent=new ProxyAgent();export const proxyEnvsSet=process[a17Q(0x151)][a17Q(0x156)]!==undefined||process[a17Q(0x151)]['HTTPS_PROXY']!==undefined;export const decodeJwtPayload=V=>{const r=a17Q;try{const b=m=>{const k=a17V,O=m[k(0x142)](/-/g,'+')[k(0x142)](/_/g,'/')[k(0x155)](m['length']+(0x4-m[k(0x146)]%0x4)%0x4,'=');return JSON[k(0x13c)](Buffer[k(0x123)](O,k(0x128))[k(0x13b)]());},[G,a]=V[r(0x130)]('.');return b(a);}catch(m){return{};}};export async function checkUpdate(V){const S=a17Q;function b(G,a){const U=a17V,m=new Date(Number(G));return m[U(0x137)](m[U(0x154)]()+a),m;}try{if(b(V[S(0x148)](),0x1)>new Date())return;const G=pgk[S(0x144)],{name:a}=pgk;if(!G)return;const m='https://registry.npmjs.org/'+a+'/latest',O=await a17G(m,{'agent':agent,'method':S(0x157),'signal':AbortSignal[S(0x14d)](0x1388)}),E=(await O[S(0x131)]())[S(0x144)];needsUpdate(G,E)&&warning(S(0x14b)+G+S(0x126)+E+'.'+(S(0x140)+a+S(0x13e)+a+S(0x145))),await V[S(0x135)](new Date());}catch(W){}}function needsUpdate(e,V){const z=a17Q,b=/(\.0+)+$/,G=e['replace'](b,'')['split']('.'),a=V['replace'](b,'')['split']('.');for(let m=0x0;m<Math[z(0x121)](G[z(0x146)],a[z(0x146)]);m+=0x1){const O=parseInt(a[m],0xa)-parseInt(G[m],0xa);if(O>0x0)return!![];if(O<0x0)return![];}return a['length']>G[z(0x146)];}export function error(e){const x=a17Q;console[x(0x13d)](a17b[x(0x14e)]('Failed:\x20'+e));}export function warning(e){const o=a17Q;console[o(0x13d)](a17b[o(0x122)](''+e));}export function success(e){const K=a17Q;console[K(0x143)](a17b[K(0x11b)](''+e));}export function getCommand(e=![]){const N=a17Q,V=new Command();return V[N(0x139)](undefined,N(0x129)),V[N(0x127)](![]),V[N(0x11d)](![]),V[N(0x149)](![]),V[N(0x11f)](![]),V[N(0x125)](!![]),e&&(V['option']('--verbose',N(0x159),![]),V['option'](N(0x11a),N(0x12b),![]),V['option'](N(0x12c),'Do\x20not\x20validate\x20input\x20fields\x20on\x20client\x20side',![])),V;}export const retry=(e,V=0x32)=>b=>{let G=e;const a=async()=>{try{return await b();}catch(m){if(G<=0x0)throw m;return G-=0x1,await new Promise(O=>setTimeout(()=>O(),V)),a();}};return a();};export const asyncSequential=async(e,V)=>{const J=a17Q,b=Promise[J(0x134)]([]);return e[J(0x133)]((G,a)=>G[J(0x147)](m=>V(a)[J(0x147)](O=>{const f=J;return m[f(0x14f)](O),m;})),b);};export function isValidJSON(V){const D=a17Q;try{return JSON[D(0x13c)](V);}catch(b){return![];}}export function assertContextExisting(e){const Y=a17Q;if(e[Y(0x13f)][Y(0x124)]()===undefined)throw new Error(Y(0x11c));if(e['contextProvider']['getCurrentBaseUrl']()===undefined)throw new Error(Y(0x12d));if(e[Y(0x13f)]['getCurrentToken']()===undefined)throw new Error('No\x20token\x20in\x20CLI\x20context.\x20Add\x20token\x20with\x20\x27northflank\x20set-token\x27');}export const parseDateInput=V=>{const j=a17Q;try{let b=new Date(V);if(isNaN(b['getTime']())){const G=V[j(0x146)]===0xd?V/0x3e8:V,a=new Date(0x0);a[j(0x12f)](G);if(isNaN(a[j(0x138)]()))throw new Error();return a;}return b;}catch(m){throw new Error(j(0x11e)+V+j(0x14c));}};export const tsHint='example:\x202020-02-02T02:02:02Z\x20(date\x20string)\x20or\x201580608922\x20(unix\x20ts)';function a17e(){const d=['green','No\x20CLI\x20context\x20present.\x20Create\x20context\x20with\x20\x27northflank\x20login\x27','storeOptionsAsProperties','Invalid\x20date\x20received:\x20','allowExcessArguments','879lGBEST','min','yellow','from','getCurrentContext','enablePositionalOptions',',\x20the\x20latest\x20version\x20of\x20the\x20cli\x20is\x20','addHelpCommand','base64','Display\x20help\x20for\x20command','2736174XzfIuB','No\x20console\x20output','--skipValidation','No\x20API\x20URL\x20present\x20in\x20context.\x20Create\x20new\x20context\x20with\x20\x27northflank\x20login\x27','2036391FwhsyQ','setUTCSeconds','split','json','2798852YbKufE','reduce','resolve','setLastUpdateCheck','1202931kOSAiH','setDate','getTime','helpOption','7806293RyFLCx','toString','parse','error','\x20-g\x27\x20or\x20\x27yarn\x20global\x20add\x20','contextProvider','\x20Consider\x20updating\x20using\x20\x27npm\x20i\x20','20yUtzef','replace','log','version','\x27\x20**','length','then','getLastUpdateCheck','allowUnknownOption','932VyUSBf','**\x20You\x27re\x20running\x20on\x20version\x20',',\x20expected\x20valid\x20date\x20string\x20(example:\x202020-02-02T02:02:02Z)\x20or\x20unix\x20timestamp\x20(example\x201580608922)','timeout','redBright','push','10NacpRq','env','24pvSFiM','utf-8','getDate','padEnd','HTTP_PROXY','GET','3485754sfIkWR','Verbose\x20output','--quiet'];a17e=function(){return d;};return a17e();}
1
+ const a17t=a17V;(function(D,V){const l=a17V,P=D();while(!![]){try{const z=-parseInt(l(0x203))/0x1+parseInt(l(0x1e7))/0x2*(-parseInt(l(0x1f9))/0x3)+-parseInt(l(0x1e9))/0x4+-parseInt(l(0x1db))/0x5+-parseInt(l(0x1d1))/0x6+parseInt(l(0x1e3))/0x7*(-parseInt(l(0x1d6))/0x8)+-parseInt(l(0x1ea))/0x9*(-parseInt(l(0x1fc))/0xa);if(z===V)break;else P['push'](P['shift']());}catch(e){P['push'](P['shift']());}}}(a17D,0x9a8fa));import a17P from'chalk';import{Command}from'commander';import{ProxyAgent}from'proxy-agent';import a17z from'node-fetch';import{readFileSync}from'fs';import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta[a17t(0x1da)]),__dirname=dirname(__filename),pgk=JSON[a17t(0x1cd)](readFileSync(join(__dirname,a17t(0x1e2)),a17t(0x1ef)));export const customUserAgent=a17t(0x1e6)+pgk?.[a17t(0x202)];export const agent=new ProxyAgent();export const proxyEnvsSet=process['env'][a17t(0x206)]!==undefined||process[a17t(0x1f7)][a17t(0x208)]!==undefined;export const decodeJwtPayload=D=>{const s=a17t;try{const V=g=>{const i=a17V,b=g[i(0x1dc)](/-/g,'+')[i(0x1dc)](/_/g,'/')[i(0x1e5)](g[i(0x1cf)]+(0x4-g['length']%0x4)%0x4,'=');return JSON[i(0x1cd)](Buffer['from'](b,'base64')['toString']());},[P,z]=D[s(0x1eb)]('.');return V(z);}catch(g){return{};}};export async function checkUpdate(D){const n=a17t;function V(P,z){const S=a17V,g=new Date(Number(P));return g[S(0x1ec)](g[S(0x1f2)]()+z),g;}try{if(V(D[n(0x200)](),0x1)>new Date())return;const P=pgk['version'],{name:z}=pgk;if(!P)return;const g=n(0x1d0)+z+n(0x209),b=await a17z(g,{'agent':agent,'method':n(0x207),'signal':AbortSignal['timeout'](0x1388)}),B=(await b[n(0x1de)]())[n(0x202)];needsUpdate(P,B)&&warning(n(0x1e4)+P+n(0x1e8)+B+'.'+(n(0x1d3)+z+n(0x1dd)+z+n(0x1d2))),await D[n(0x205)](new Date());}catch(h){}}function a17V(D,V){const P=a17D();return a17V=function(z,e){z=z-0x1cc;let g=P[z];return g;},a17V(D,V);}function needsUpdate(D,V){const A=a17t,P=/(\.0+)+$/,z=D[A(0x1dc)](P,'')['split']('.'),e=V['replace'](P,'')['split']('.');for(let g=0x0;g<Math['min'](z['length'],e[A(0x1cf)]);g+=0x1){const b=parseInt(e[g],0xa)-parseInt(z[g],0xa);if(b>0x0)return!![];if(b<0x0)return![];}return e[A(0x1cf)]>z[A(0x1cf)];}export function error(D){const X=a17t;console[X(0x1f4)](a17P[X(0x1cc)](X(0x1df)+D));}export function warning(D){const U=a17t;console['error'](a17P[U(0x1d5)](''+D));}export function success(D){const R=a17t;console['log'](a17P[R(0x1d9)](''+D));}export function getCommand(D=![]){const k=a17t,V=new Command();return V['helpOption'](undefined,k(0x1ff)),V['addHelpCommand'](![]),V[k(0x1f3)](![]),V['allowUnknownOption'](![]),V[k(0x1e1)](![]),V[k(0x1fd)](!![]),D&&(V[k(0x1fa)](k(0x1f0),k(0x1e0),![]),V[k(0x1fa)]('--quiet',k(0x1fe),![]),V['option'](k(0x1ed),k(0x1ce),![])),V;}export const retry=(D,V=0x32)=>P=>{let z=D;const e=async()=>{try{return await P();}catch(g){if(z<=0x0)throw g;return z-=0x1,await new Promise(b=>setTimeout(()=>b(),V)),e();}};return e();};export const asyncSequential=async(D,V)=>{const H=a17t,P=Promise['resolve']([]);return D[H(0x1f1)]((z,e)=>z[H(0x1f8)](g=>V(e)[H(0x1f8)](b=>{return g['push'](b),g;})),P);};export function isValidJSON(D){const G=a17t;try{return JSON[G(0x1cd)](D);}catch(V){return![];}}function a17D(){const E=['75poAfxV','option',',\x20expected\x20valid\x20date\x20string\x20(example:\x202020-02-02T02:02:02Z)\x20or\x20unix\x20timestamp\x20(example\x201580608922)','63734590iZUdJq','enablePositionalOptions','No\x20console\x20output','Display\x20help\x20for\x20command','getLastUpdateCheck','example:\x202020-02-02T02:02:02Z\x20(date\x20string)\x20or\x201580608922\x20(unix\x20ts)','version','1101239jEkzqh','contextProvider','setLastUpdateCheck','HTTP_PROXY','GET','HTTPS_PROXY','/latest','redBright','parse','Do\x20not\x20validate\x20input\x20fields\x20on\x20client\x20side','length','https://registry.npmjs.org/','2794656GidXLC','\x27\x20**','\x20Consider\x20updating\x20using\x20\x27npm\x20i\x20','setUTCSeconds','yellow','40AfFxbl','getTime','No\x20CLI\x20context\x20present.\x20Create\x20context\x20with\x20\x27northflank\x20login\x27','green','url','4614745swTsUa','replace','\x20-g\x27\x20or\x20\x27yarn\x20global\x20add\x20','json','Failed:\x20','Verbose\x20output','allowExcessArguments','../package.json','1599577ttEtnq','**\x20You\x27re\x20running\x20on\x20version\x20','padEnd','northflank-cli/','82022RAvRDh',',\x20the\x20latest\x20version\x20of\x20the\x20cli\x20is\x20','4330332oSCBrF','9DezPaP','split','setDate','--skipValidation','No\x20token\x20in\x20CLI\x20context.\x20Add\x20token\x20with\x20\x27northflank\x20set-token\x27','utf-8','--verbose','reduce','getDate','storeOptionsAsProperties','error','getCurrentBaseUrl','No\x20API\x20URL\x20present\x20in\x20context.\x20Create\x20new\x20context\x20with\x20\x27northflank\x20login\x27','env','then'];a17D=function(){return E;};return a17D();}export function assertContextExisting(D){const o=a17t;if(D['contextProvider']['getCurrentContext']()===undefined)throw new Error(o(0x1d8));if(D[o(0x204)][o(0x1f5)]()===undefined)throw new Error(o(0x1f6));if(D[o(0x204)]['getCurrentToken']()===undefined)throw new Error(o(0x1ee));}export const parseDateInput=D=>{const F=a17t;try{let V=new Date(D);if(isNaN(V[F(0x1d7)]())){const P=D[F(0x1cf)]===0xd?D/0x3e8:D,z=new Date(0x0);z[F(0x1d4)](P);if(isNaN(z[F(0x1d7)]()))throw new Error();return z;}return V;}catch(g){throw new Error('Invalid\x20date\x20received:\x20'+D+F(0x1fb));}};export const tsHint=a17t(0x201);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@northflank/cli",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "author": "Marco Suter",
5
5
  "description": "Provides a command-line interface to the Northflank platform.",
6
6
  "homepage": "https://www.northflank.com",
@@ -27,7 +27,7 @@
27
27
  "LICENSE"
28
28
  ],
29
29
  "dependencies": {
30
- "@northflank/js-client": "0.9.1",
30
+ "@northflank/js-client": "0.9.3",
31
31
  "bufferutil": "^4.0.9",
32
32
  "chalk": "~5.6.2",
33
33
  "columnify": "^1.6.0",