blink 0.1.109 → 0.1.111
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/cli/{auth-DjAEZyZZ.js → auth-CDmvBLTI.js} +17 -17
- package/dist/cli/chat-01Fdrhd_.js +1 -0
- package/dist/cli/{chat-manager-BL3XfguD.js → chat-manager-DSqvukqL.js} +1 -1
- package/dist/cli/connect-BpfPzXxZ.js +1 -0
- package/dist/cli/connect-O43Nkqhm.js +1 -0
- package/dist/cli/{dev-C8e69O1h.js → dev-DmKrza1v.js} +76 -72
- package/dist/cli/{getMachineId-bsd-BIOLOPhL.js → getMachineId-bsd-C9_PO8vg.js} +1 -1
- package/dist/cli/{getMachineId-bsd-BsiSHdIY.js → getMachineId-bsd-aGbXimKO.js} +1 -1
- package/dist/cli/{getMachineId-bsd-DOWrEuKQ.js → getMachineId-bsd-f6XFfE6Q.js} +1 -1
- package/dist/cli/{getMachineId-darwin-BcKyqrJz.js → getMachineId-darwin-CbnZZvCa.js} +1 -1
- package/dist/cli/{getMachineId-darwin-Ch2lPibC.js → getMachineId-darwin-D2cTSAMO.js} +1 -1
- package/dist/cli/{getMachineId-darwin-KlnNx6Ci.js → getMachineId-darwin-VXBPWUwo.js} +1 -1
- package/dist/cli/{getMachineId-win-DB0Jdpp7.js → getMachineId-win-B1comJH7.js} +1 -1
- package/dist/cli/{getMachineId-win-DZJS-oII.js → getMachineId-win-DHmeC5Ow.js} +1 -1
- package/dist/cli/{getMachineId-win-4fht1YMv.js → getMachineId-win-Dof2NkV_.js} +1 -1
- package/dist/cli/index.js +3 -3
- package/dist/cli/{init-iySs9KUe.js → init-Dw0vfw4Q.js} +1 -1
- package/dist/cli/login-GLFR9Tni.js +1 -0
- package/dist/cli/{run-Be8N9G40.js → run-CXvu2dxc.js} +1 -1
- package/dist/cli/{token-DNRiDJM-.js → token-CwpupgJv.js} +1 -1
- package/dist/cli/{token-util-IqDtKhK6.js → token-util-BGsva5RI.js} +1 -1
- package/dist/cli/token-util-DsmDyKzB.js +1 -0
- package/dist/cli/undici-Cyjf_ODA.js +1 -0
- package/dist/cli/{util-8br3-4M3.js → util-CHsykutN.js} +1 -1
- package/dist/node/agent/index.node.cjs +1 -1
- package/dist/node/agent/index.node.d.cts +1 -1
- package/dist/node/agent/index.node.d.ts +1 -1
- package/dist/node/agent/index.node.js +1 -1
- package/dist/node/{index.node-B0EokVTD.js → index.node-BZbn7b9M.js} +1 -1
- package/dist/node/{index.node-GlFXJEaB.d.ts → index.node-C_bJ2rBz.d.ts} +3 -1
- package/dist/node/{index.node-ztcay7c1.d.cts → index.node-HdKpjD23.d.cts} +3 -1
- package/dist/node/{index.node-YNZMDo7o.cjs → index.node-p8Lbll65.cjs} +1 -1
- package/dist/node/react/index.node.cjs +143 -139
- package/dist/node/react/index.node.d.cts +58 -2
- package/dist/node/react/index.node.d.ts +58 -2
- package/dist/node/react/index.node.js +66 -62
- package/package.json +1 -1
- package/dist/cli/chat-DX_V608z.js +0 -1
- package/dist/cli/connect-Bw0fihsU.js +0 -1
- package/dist/cli/connect-D8dpOtYY.js +0 -1
- package/dist/cli/login-DTwQcbaT.js +0 -1
- package/dist/cli/node-pty-BfteYoG-.js +0 -13
- package/dist/cli/node-pty-CFpbCPc8.js +0 -1
- package/dist/cli/token-util-C6Xu44iO.js +0 -1
- package/dist/cli/undici-L5V8WBce.js +0 -1
- /package/dist/cli/{devtools-DvNholmW.js → devtools-aLFrISVw.js} +0 -0
- /package/dist/cli/{dist-BNbSDxaw.js → dist-wyfWuz5A.js} +0 -0
- /package/dist/cli/{execAsync-Bhq3YKvl.js → execAsync-BTw463vh.js} +0 -0
- /package/dist/cli/{execAsync-Djebuxfm.js → execAsync-DQQzCKCI.js} +0 -0
- /package/dist/cli/{execAsync-_tP2SNTy.js → execAsync-WFKcnjxL.js} +0 -0
- /package/dist/cli/{getMachineId-linux-DOYJzWBc.js → getMachineId-linux-B2Hg9S6u.js} +0 -0
- /package/dist/cli/{getMachineId-linux-HIrcMDqb.js → getMachineId-linux-CGpaESCu.js} +0 -0
- /package/dist/cli/{getMachineId-linux-ulzMB5vC.js → getMachineId-linux-sSblsl0f.js} +0 -0
- /package/dist/cli/{getMachineId-unsupported-B1wECTrM.js → getMachineId-unsupported-B067r1JC.js} +0 -0
- /package/dist/cli/{getMachineId-unsupported-Drd_3o_r.js → getMachineId-unsupported-B_bl21GL.js} +0 -0
- /package/dist/cli/{getMachineId-unsupported-nDPltmL9.js → getMachineId-unsupported-BcNSZ9TD.js} +0 -0
- /package/dist/cli/{open-DCYivxgo.js → open-S_jcQ0nw.js} +0 -0
- /package/dist/cli/{server-C8plsU0X-We1KgV-r.js → server-C8plsU0X-BmosAKXr.js} +0 -0
- /package/dist/cli/{token-error-DVSfBVaT.js → token-error-C6TSmqWz.js} +0 -0
- /package/dist/cli/{undici-BUZTy5qm.js → undici-v5uUkaRO.js} +0 -0
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{import_websocket as e}from"./wrapper-B0SBsJWP.js";import{open_default as t}from"./open-DCYivxgo.js";import"./node-pty-BfteYoG-.js";import"./server-C8plsU0X-We1KgV-r.js";import{WorkspaceConnect as n}from"./connect-Bw0fihsU.js";async function r(){let r=crypto.randomUUID(),i=new e.default(`wss://blink.so/legacy-auth?id=${r}`);await new Promise((e,t)=>{i.onopen=()=>{e()},i.onerror=e=>{t(e)}});let a=new Promise((e,t)=>{i.onmessage=t=>{e(t.data.toString())}}),o=`https://blink.so/legacy-auth?id=${r}&type=workspace`;console.log(`Opening the following URL in your browser: ${o}`),await t(o);let s=await a,c=new n({url:`wss://blink.so/api/connect`,token:s});c.onConnect(()=>{console.log(`Connected to Blink`)}),c.onDisconnect(()=>{console.log(`Disconnected from Blink`)})}export{r as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{wrapper_default as e}from"./wrapper-B0SBsJWP.js";import{require_node_pty as t}from"./node-pty-BfteYoG-.js";import{Server as n}from"./server-C8plsU0X-We1KgV-r.js";import r from"node:path";import i from"node:fs";import a from"node:os";var o=class{listeners=[];get event(){return e=>(this.listeners.push(e),{dispose:()=>{this.listeners=this.listeners.filter(t=>t!==e)}})}emit(e){for(let t=this.listeners.length-1;t>=0;t--)this.listeners[t]?.(e)}dispose(){this.listeners=[]}};const s=r.join(a.tmpdir(),`blink-connect-${process.pid}.log`),c=e=>{if(e instanceof Error)return e.stack??e.message;try{return JSON.stringify(e)}catch{return String(e)}},l=async e=>{let t=`${new Date().toISOString()} ${e}\n`;try{await i.promises.appendFile(s,t,`utf8`)}catch{}};async function u(){let e=process.env.BLINK_URL,t=process.env.BLINK_TOKEN;delete process.env.BLINK_TOKEN,process.env.GIT_TERMINAL_PROMPT=`0`,process.env.GIT_PAGER=`cat`,process.env.GIT_AUTHOR_NAME=`blink-so[bot]`,process.env.GIT_AUTHOR_EMAIL=`211532188+blink-so[bot]@users.noreply.github.com`,process.env.GIT_COMMITTER_NAME=`blink-so[bot]`,process.env.GIT_COMMITTER_EMAIL=`211532188+blink-so[bot]@users.noreply.github.com`,process.env.GIT_CONFIG_COUNT=`1`,process.env.GIT_CONFIG_KEY_0=`credential.https://github.com.helper`,process.env.GIT_CONFIG_VALUE_0=`!gh auth git-credential`,process.addListener(`uncaughtException`,e=>{l(`uncaughtException: ${c(e)}`),d(t,e)}),process.addListener(`unhandledRejection`,e=>{l(`unhandledRejection: ${c(e)}`),d(t,e)});let n=new f({url:e??`wss://blink.so/api/connect`,token:t,createDeploymentFromTar:async n=>{let r=new URL(`/api/static-deployment`,e??`https://blink.so`);return(await(await fetch(r,{method:`POST`,body:n,headers:{"Content-Type":`application/tar`,Authorization:`Bearer ${t}`},duplex:`half`})).json()).deployment_id}});n.onConnect(()=>{console.log(`Connected`),l(`Connected`)}),n.onDisconnect(()=>{console.log(`Disconnected`),l(`Disconnected`)})}const d=async(e,t)=>{let n=new URL(`https://blink.so/api/connect-error`);await fetch(n.toString(),{method:`POST`,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${e}`},body:JSON.stringify({error:t})})};var f=class{_onConnect=new o;onConnect=this._onConnect.event;_onDisconnect=new o;onDisconnect=this._onDisconnect.event;reconnectTimeout=null;disposed=!1;ws;server;hasReconnectedOnce=!1;constructor(r){this.opts=r;let i;try{i=t()}catch{}typeof Bun<`u`&&(i=void 0),this.server=new n({send:t=>{this.ws.readyState===e.OPEN?this.ws.send(t):console.warn(`Message skipped because connection is closed.`)},createDeploymentFromTar:this.opts.createDeploymentFromTar,nodePty:i}),this.connect()}dispose(){this.disposed||(this.disposed=!0,this.ws.close(),this.reconnectTimeout&&clearTimeout(this.reconnectTimeout))}scheduleReconnect(){if(this.disposed)return;let e=this.opts.immediateReconnectFirst??!0,t=this.opts.reconnectionDelay??2500;!this.hasReconnectedOnce&&e&&(t=0),this.hasReconnectedOnce=!0,this.reconnectTimeout&&clearTimeout(this.reconnectTimeout),this.reconnectTimeout=setTimeout(()=>{this.connect()},t)}connect(){let t=new URL(this.opts.url);t.protocol===`http:`?t.protocol=`ws:`:t.protocol===`https:`&&(t.protocol=`wss:`);let n={};this.opts.token&&(n.Authorization=`Bearer ${this.opts.token}`),this.ws=new e(t.toString(),{headers:n}),this.ws.addEventListener(`open`,()=>{this._onConnect.emit()}),this.ws.addEventListener(`close`,()=>{this._onDisconnect.emit(),!this.disposed&&this.scheduleReconnect()}),this.ws.addEventListener(`error`,e=>{console.error(`Error`,e.message??e)}),this.ws.addEventListener(`message`,e=>{if(typeof e.data==`string`){console.warn(`Message skipped because it is not a buffer.`);return}try{this.server.handleMessage(new Uint8Array(e.data))}catch(e){console.error(`message handler error`,e);try{this.ws.close(1011)}catch{}}})}};export{f as WorkspaceConnect,u as connect};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./wrapper-B0SBsJWP.js";import"./node-pty-BfteYoG-.js";import"./server-C8plsU0X-We1KgV-r.js";import{WorkspaceConnect as e,connect as t}from"./connect-Bw0fihsU.js";export{e as WorkspaceConnect,t as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{login as e}from"./auth-DjAEZyZZ.js";import"./dist-BNbSDxaw.js";import"./open-DCYivxgo.js";async function t(){await e()}export{t as default};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__require as t}from"./chunk-D9KrCrVq.js";var n=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.EventEmitter2=function(){function e(){this._listeners=[]}return Object.defineProperty(e.prototype,`event`,{get:function(){var e=this;return this._event||=function(t){return e._listeners.push(t),{dispose:function(){for(var n=0;n<e._listeners.length;n++)if(e._listeners[n]===t){e._listeners.splice(n,1);return}}}},this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(e){for(var t=[],n=0;n<this._listeners.length;n++)t.push(this._listeners[n]);for(var n=0;n<t.length;n++)t[n].call(void 0,e)},e}()})),r=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var r=t(`events`),i=n();e.DEFAULT_COLS=80,e.DEFAULT_ROWS=24;var a=``,o=``;e.Terminal=function(){function e(e){this._pid=0,this._fd=0,this._cols=0,this._rows=0,this._readable=!1,this._writable=!1,this._onData=new i.EventEmitter2,this._onExit=new i.EventEmitter2,this._internalee=new r.EventEmitter,this.handleFlowControl=!!e?.handleFlowControl,this._flowControlPause=e?.flowControlPause||a,this._flowControlResume=e?.flowControlResume||o,e&&(this._checkType(`name`,e.name?e.name:void 0,`string`),this._checkType(`cols`,e.cols?e.cols:void 0,`number`),this._checkType(`rows`,e.rows?e.rows:void 0,`number`),this._checkType(`cwd`,e.cwd?e.cwd:void 0,`string`),this._checkType(`env`,e.env?e.env:void 0,`object`),this._checkType(`uid`,e.uid?e.uid:void 0,`number`),this._checkType(`gid`,e.gid?e.gid:void 0,`number`),this._checkType(`encoding`,e.encoding?e.encoding:void 0,`string`))}return Object.defineProperty(e.prototype,`onData`,{get:function(){return this._onData.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,`onExit`,{get:function(){return this._onExit.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,`pid`,{get:function(){return this._pid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,`cols`,{get:function(){return this._cols},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,`rows`,{get:function(){return this._rows},enumerable:!0,configurable:!0}),e.prototype.write=function(e){if(this.handleFlowControl){if(e===this._flowControlPause){this.pause();return}if(e===this._flowControlResume){this.resume();return}}this._write(e)},e.prototype._forwardEvents=function(){var e=this;this.on(`data`,function(t){return e._onData.fire(t)}),this.on(`exit`,function(t,n){return e._onExit.fire({exitCode:t,signal:n})})},e.prototype._checkType=function(e,t,n,r){if(r===void 0&&(r=!1),t!==void 0){if(r&&Array.isArray(t)){t.forEach(function(t,r){if(typeof t!==n)throw Error(e+`[`+r+`] must be a `+n+` (not a `+typeof t[r]+`)`)});return}if(typeof t!==n)throw Error(e+` must be a `+n+` (not a `+typeof t+`)`)}},e.prototype.end=function(e){this._socket.end(e)},e.prototype.pipe=function(e,t){return this._socket.pipe(e,t)},e.prototype.pause=function(){return this._socket.pause()},e.prototype.resume=function(){return this._socket.resume()},e.prototype.setEncoding=function(e){this._socket._decoder&&delete this._socket._decoder,e&&this._socket.setEncoding(e)},e.prototype.addListener=function(e,t){this.on(e,t)},e.prototype.on=function(e,t){if(e===`close`){this._internalee.on(`close`,t);return}this._socket.on(e,t)},e.prototype.emit=function(e){return e===`close`?this._internalee.emit.apply(this._internalee,arguments):this._socket.emit.apply(this._socket,arguments)},e.prototype.listeners=function(e){return this._socket.listeners(e)},e.prototype.removeListener=function(e,t){this._socket.removeListener(e,t)},e.prototype.removeAllListeners=function(e){this._socket.removeAllListeners(e)},e.prototype.once=function(e,t){this._socket.once(e,t)},e.prototype._close=function(){this._socket.readable=!1,this.write=function(){},this.end=function(){},this._writable=!1,this._readable=!1},e.prototype._parseEnv=function(e){for(var t=Object.keys(e||{}),n=[],r=0;r<t.length;r++)t[r]!==void 0&&n.push(t[r]+`=`+e[t[r]]);return n},e}()})),i=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){return e+`-worker`}e.getWorkerPipeName=t})),a=e((e=>{var r=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},a=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,`__esModule`,{value:!0});var o=t(`worker_threads`),s=i(),c=t(`path`),l=n(),u=1e3;e.ConoutConnection=function(){function e(e){var t=this;this._conoutPipeName=e,this._isDisposed=!1,this._onReady=new l.EventEmitter2;var n={conoutPipeName:e},r=__dirname.replace(`node_modules.asar`,`node_modules.asar.unpacked`);this._worker=new o.Worker(c.join(r,`worker/conoutSocketWorker.js`),{workerData:n}),this._worker.on(`message`,function(e){switch(e){case 1:t._onReady.fire();return;default:console.warn(`Unexpected ConoutWorkerMessage`,e)}})}return Object.defineProperty(e.prototype,`onReady`,{get:function(){return this._onReady.event},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this._drainDataAndClose())},e.prototype.connectSocket=function(e){e.connect(s.getWorkerPipeName(this._conoutPipeName))},e.prototype._drainDataAndClose=function(){var e=this;this._drainTimeout&&clearTimeout(this._drainTimeout),this._drainTimeout=setTimeout(function(){return e._destroySocket()},u)},e.prototype._destroySocket=function(){return r(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return[4,this._worker.terminate()];case 1:return e.sent(),[2]}})})},e}()})),o=e(((e,t)=>{t.exports={name:`@lydell/node-pty`,description:`node-pty with prebuilt binaries`,author:`Simon Lydell`,version:`1.1.0`,license:`MIT`,main:`./index.js`,types:`./node-pty.d.ts`,repository:{type:`git`,url:`git://github.com/lydell/node-pty.git`},keywords:[`pty`,`tty`,`terminal`,`pseudoterminal`,`forkpty`,`openpty`,`prebuild`,`prebuilt`],optionalDependencies:{"@lydell/node-pty-darwin-x64":`1.1.0`,"@lydell/node-pty-darwin-arm64":`1.1.0`,"@lydell/node-pty-linux-x64":`1.1.0`,"@lydell/node-pty-linux-arm64":`1.1.0`,"@lydell/node-pty-win32-x64":`1.1.0`,"@lydell/node-pty-win32-arm64":`1.1.0`}}})),s=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var n=`@lydell/node-pty-`+process.platform+`-`+process.arch,r=`This can happen if you use the "--omit=optional" (or "--no-optional") npm flag.
|
|
2
|
-
The "optionalDependencies" package.json feature is used to install the correct
|
|
3
|
-
binary executable for your current platform. Remove that flag to use @lydell/node-pty.
|
|
4
|
-
|
|
5
|
-
This can also happen if the "node_modules" folder was copied between two operating systems
|
|
6
|
-
that need different binaries - including "virtual" operating systems like Docker and WSL.
|
|
7
|
-
If so, try installing with npm rather than copying "node_modules".`;function i(e){try{switch(process.platform+`-`+process.arch){case`linux-x64`:return t(import.meta.dirname+`/lydell-node-pty-linux-x64.node`);case`linux-arm64`:return t(import.meta.dirname+`/lydell-node-pty-linux-arm64.node`);case`darwin-x64`:return t(import.meta.dirname+`/lydell-node-pty-darwin-x64.node`);case`darwin-arm64`:return t(import.meta.dirname+`/lydell-node-pty-darwin-arm64.node`)}return t(n+`/`+e)}catch(t){if(t&&t.code===`MODULE_NOT_FOUND`){var i=a();throw Error(i===void 0?`The @lydell/node-pty package could not find the binary package: `+n+`/`+e+`
|
|
8
|
-
|
|
9
|
-
`+r+`
|
|
10
|
-
|
|
11
|
-
Your platform (`+process.platform+`-`+process.arch+`) might not be supported.`:n in i?`The @lydell/node-pty package supports your platform (`+process.platform+`-`+process.arch+`), but it could not find the binary package for it: `+n+`/`+e+`
|
|
12
|
-
|
|
13
|
-
`+r:`The @lydell/node-pty package currently does not support your platform: `+process.platform+`-`+process.arch,{cause:t})}else throw t}}e.requireBinary=i;function a(){try{return o().optionalDependencies}catch{return}}})),c=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var n=t(`fs`),r=t(`path`),i=t(`net`),o=t(`child_process`),c=a(),l=s(),u,d=1e3;e.WindowsPtyAgent=function(){function e(e,t,a,o,s,d,p,m){var h=this;m===void 0&&(m=!1),this._pid=0,this._innerPid=0,u||=l.requireBinary(`conpty.node`),this._ptyNative=u,o=r.resolve(o);var g=f(e,t),_=this._ptyNative.startProcess(e,s,d,p,this._generatePipeName(),m);this._fd=_.fd,this._pty=_.pty,this._outSocket=new i.Socket,this._outSocket.setEncoding(`utf8`),this._conoutSocketWorker=new c.ConoutConnection(_.conout),this._conoutSocketWorker.onReady(function(){h._conoutSocketWorker.connectSocket(h._outSocket)}),this._outSocket.on(`connect`,function(){h._outSocket.emit(`ready_datapipe`)});var v=n.openSync(_.conin,`w`);this._inSocket=new i.Socket({fd:v,readable:!1,writable:!0}),this._inSocket.setEncoding(`utf8`),this._innerPid=this._ptyNative.connect(this._pty,g,o,a,function(e){return h._$onProcessExit(e)}).pid}return Object.defineProperty(e.prototype,`inSocket`,{get:function(){return this._inSocket},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,`outSocket`,{get:function(){return this._outSocket},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,`fd`,{get:function(){return this._fd},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,`innerPid`,{get:function(){return this._innerPid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,`pty`,{get:function(){return this._pty},enumerable:!0,configurable:!0}),e.prototype.resize=function(e,t){if(this._exitCode!==void 0)throw Error(`Cannot resize a pty that has already exited`);this._ptyNative.resize(this._pty,e,t)},e.prototype.clear=function(){this._ptyNative.clear(this._pty)},e.prototype.kill=function(){var e=this;this._inSocket.readable=!1,this._outSocket.readable=!1,this._getConsoleProcessList().then(function(t){t.forEach(function(e){try{process.kill(e)}catch{}}),e._ptyNative.kill(e._pty)}),this._conoutSocketWorker.dispose()},e.prototype._getConsoleProcessList=function(){var e=this;return new Promise(function(t){var n=o.fork(r.join(__dirname,`conpty_console_list_agent`),[e._innerPid.toString()]);n.on(`message`,function(e){clearTimeout(i),t(e.consoleProcessList)});var i=setTimeout(function(){n.kill(),t([e._innerPid])},5e3)})},Object.defineProperty(e.prototype,`exitCode`,{get:function(){return this._exitCode},enumerable:!0,configurable:!0}),e.prototype._generatePipeName=function(){return`conpty-`+Math.random()*1e7},e.prototype._$onProcessExit=function(e){var t=this;this._exitCode=e,this._flushDataAndCleanUp(),this._outSocket.on(`data`,function(){return t._flushDataAndCleanUp()})},e.prototype._flushDataAndCleanUp=function(){var e=this;this._closeTimeout&&clearTimeout(this._closeTimeout),this._closeTimeout=setTimeout(function(){return e._cleanUpProcess()},d)},e.prototype._cleanUpProcess=function(){this._inSocket.readable=!1,this._outSocket.readable=!1,this._outSocket.destroy()},e}();function f(e,t){if(p(t))return t.length===0?e:f(e,[])+` `+t;var n=[e];Array.prototype.push.apply(n,t);for(var r=``,i=0;i<n.length;i++){i>0&&(r+=` `);var a=n[i],o=h(a[0]!==`"`,a[a.length-1]!==`"`),s=a[0]!==`"`&&a[a.length-1]!==`"`,c=a===``||(a.indexOf(` `)!==-1||a.indexOf(` `)!==-1)&&a.length>1&&(o||s);c&&(r+=`"`);for(var l=0,u=0;u<a.length;u++){var d=a[u];d===`\\`?l++:d===`"`?(r+=m(`\\`,l*2+1),r+=`"`,l=0):(r+=m(`\\`,l),l=0,r+=d)}c?(r+=m(`\\`,l*2),r+=`"`):r+=m(`\\`,l)}return r}e.argsToCommandLine=f;function p(e){return typeof e==`string`}function m(e,t){for(var n=``,r=0;r<t;r++)n+=e;return n}function h(e,t){return e&&!t||!e&&t}})),l=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){return[...arguments].slice(1).forEach(function(t){return Object.keys(t).forEach(function(n){return e[n]=t[n]})}),e}e.assign=t})),u=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=r(),i=c(),a=l(),o=`cmd.exe`,s=`Windows Shell`;e.WindowsTerminal=function(e){t(r,e);function r(t,r,c){var l=e.call(this,c)||this;l._checkType(`args`,r,`string`,!0),r||=[],t||=o,c||={},c.env=c.env||process.env,c.encoding&&console.warn(`Setting encoding on Windows is not supported`);var u=a.assign({},c.env);l._cols=c.cols||n.DEFAULT_COLS,l._rows=c.rows||n.DEFAULT_ROWS;var d=c.cwd||process.cwd(),f=c.name||u.TERM||s,p=l._parseEnv(u);return l._isReady=!1,l._deferreds=[],l._agent=new i.WindowsPtyAgent(t,r,p,d,l._cols,l._rows,!1,c.conptyInheritCursor),l._socket=l._agent.outSocket,l._pid=l._agent.innerPid,l._fd=l._agent.fd,l._pty=l._agent.pty,l._socket.on(`ready_datapipe`,function(){[`connect`,`data`,`end`,`timeout`,`drain`].forEach(function(e){l._socket.on(e,function(){!l._isReady&&e===`data`&&(l._isReady=!0,l._deferreds.forEach(function(e){e.run()}),l._deferreds=[])})}),l._socket.on(`error`,function(e){if(l._close(),!(e.code&&(~e.code.indexOf(`errno 5`)||~e.code.indexOf(`EIO`)))&&l.listeners(`error`).length<2)throw e}),l._socket.on(`close`,function(){l.emit(`exit`,l._agent.exitCode),l._close()})}),l._file=t,l._name=f,l._readable=!0,l._writable=!0,l._forwardEvents(),l}return r.prototype._write=function(e){this._defer(this._doWrite,e)},r.prototype._doWrite=function(e){this._agent.inSocket.write(e)},r.open=function(e){throw Error(`open() not supported on windows, use Fork() instead.`)},r.prototype.resize=function(e,t){var n=this;if(e<=0||t<=0||isNaN(e)||isNaN(t)||e===1/0||t===1/0)throw Error(`resizing must be done using positive cols and rows`);this._deferNoArgs(function(){n._agent.resize(e,t),n._cols=e,n._rows=t})},r.prototype.clear=function(){var e=this;this._deferNoArgs(function(){e._agent.clear()})},r.prototype.destroy=function(){var e=this;this._deferNoArgs(function(){e.kill()})},r.prototype.kill=function(e){var t=this;this._deferNoArgs(function(){if(e)throw Error(`Signals not supported on windows.`);t._close(),t._agent.kill()})},r.prototype._deferNoArgs=function(e){var t=this;if(this._isReady){e.call(this);return}this._deferreds.push({run:function(){return e.call(t)}})},r.prototype._defer=function(e,t){var n=this;if(this._isReady){e.call(this,t);return}this._deferreds.push({run:function(){return e.call(n,t)}})},Object.defineProperty(r.prototype,`process`,{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,`master`,{get:function(){throw Error(`master is not supported on Windows`)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,`slave`,{get:function(){throw Error(`slave is not supported on Windows`)},enumerable:!0,configurable:!0}),r}(n.Terminal)})),d=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var i=t(`tty`),a=r(),o=l(),c=s().requireBinary(`pty.node`),u=`@lydell/node-pty-`+process.platform+`-`+process.arch+`/spawn-helper`;u=process.platform===`darwin`?t.resolve(u):`spawn-helper-unused`,u=u.replace(`app.asar`,`app.asar.unpacked`),u=u.replace(`node_modules.asar`,`node_modules.asar.unpacked`);var d=`sh`,f=`xterm`,p=200;e.UnixTerminal=function(e){n(t,e);function t(t,n,r){var s=e.call(this,r)||this;if(s._boundClose=!1,s._emittedClose=!1,typeof n==`string`)throw Error(`args as a string is not supported on unix.`);n||=[],t||=d,r||={},r.env=r.env||process.env,s._cols=r.cols||a.DEFAULT_COLS,s._rows=r.rows||a.DEFAULT_ROWS;var l=r.uid??-1,m=r.gid??-1,h=o.assign({},r.env);r.env===process.env&&s._sanitizeEnv(h);var g=r.cwd||process.cwd();h.PWD=g;var _=r.name||h.TERM||f;h.TERM=_;var v=s._parseEnv(h),y=r.encoding===void 0?`utf8`:r.encoding,b=c.fork(t,n,v,g,s._cols,s._rows,l,m,y===`utf8`,u,function(e,t){if(!s._emittedClose){if(s._boundClose)return;s._boundClose=!0;var n=setTimeout(function(){n=null,s._socket.destroy()},p);s.once(`close`,function(){n!==null&&clearTimeout(n),s.emit(`exit`,e,t)});return}s.emit(`exit`,e,t)});return s._socket=new i.ReadStream(b.fd),y!==null&&s._socket.setEncoding(y),s._socket.on(`error`,function(e){if(!(e.code&&~e.code.indexOf(`EAGAIN`))&&(s._close(),s._emittedClose||(s._emittedClose=!0,s.emit(`close`)),!(e.code&&(~e.code.indexOf(`errno 5`)||~e.code.indexOf(`EIO`)))&&s.listeners(`error`).length<2))throw e}),s._pid=b.pid,s._fd=b.fd,s._pty=b.pty,s._file=t,s._name=_,s._readable=!0,s._writable=!0,s._socket.on(`close`,function(){s._emittedClose||(s._emittedClose=!0,s._close(),s.emit(`close`))}),s._forwardEvents(),s}return Object.defineProperty(t.prototype,`master`,{get:function(){return this._master},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,`slave`,{get:function(){return this._slave},enumerable:!0,configurable:!0}),t.prototype._write=function(e){this._socket.write(e)},Object.defineProperty(t.prototype,`fd`,{get:function(){return this._fd},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,`ptsName`,{get:function(){return this._pty},enumerable:!0,configurable:!0}),t.open=function(e){var n=Object.create(t.prototype);e||={},arguments.length>1&&(e={cols:arguments[1],rows:arguments[2]});var r=e.cols||a.DEFAULT_COLS,o=e.rows||a.DEFAULT_ROWS,s=e.encoding===void 0?`utf8`:e.encoding,l=c.open(r,o);return n._master=new i.ReadStream(l.master),s!==null&&n._master.setEncoding(s),n._master.resume(),n._slave=new i.ReadStream(l.slave),s!==null&&n._slave.setEncoding(s),n._slave.resume(),n._socket=n._master,n._pid=-1,n._fd=l.master,n._pty=l.pty,n._file=process.argv[0]||`node`,n._name=process.env.TERM||``,n._readable=!0,n._writable=!0,n._socket.on(`error`,function(e){if(n._close(),n.listeners(`error`).length<2)throw e}),n._socket.on(`close`,function(){n._close()}),n},t.prototype.destroy=function(){var e=this;this._close(),this._socket.once(`close`,function(){e.kill(`SIGHUP`)}),this._socket.destroy()},t.prototype.kill=function(e){try{process.kill(this.pid,e||`SIGHUP`)}catch{}},Object.defineProperty(t.prototype,`process`,{get:function(){if(process.platform===`darwin`){var e=c.process(this._fd);return e===`kernel_task`?this._file:e}return c.process(this._fd,this._pty)||this._file},enumerable:!0,configurable:!0}),t.prototype.resize=function(e,t){if(e<=0||t<=0||isNaN(e)||isNaN(t)||e===1/0||t===1/0)throw Error(`resizing must be done using positive cols and rows`);c.resize(this._fd,e,t),this._cols=e,this._rows=t},t.prototype.clear=function(){},t.prototype._sanitizeEnv=function(e){delete e.TMUX,delete e.TMUX_PANE,delete e.STY,delete e.WINDOW,delete e.WINDOWID,delete e.TERMCAP,delete e.COLUMNS,delete e.LINES},t}(a.Terminal)})),f=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=process.platform===`win32`?u().WindowsTerminal:d().UnixTerminal;function n(e,n,r){return new t(e,n,r)}e.spawn=n;function r(e,n,r){return new t(e,n,r)}e.fork=r;function i(e,n,r){return new t(e,n,r)}e.createTerminal=i;function a(e){return t.open(e)}e.open=a}));export{f as require_node_pty};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{require_node_pty as e}from"./node-pty-BfteYoG-.js";export default e();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./token-error-DVSfBVaT.js";import{require_token_util as e}from"./token-util-IqDtKhK6.js";export default e();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{require_undici as e}from"./undici-BUZTy5qm.js";export default e();export{};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/cli/{getMachineId-unsupported-B1wECTrM.js → getMachineId-unsupported-B067r1JC.js}
RENAMED
|
File without changes
|
/package/dist/cli/{getMachineId-unsupported-Drd_3o_r.js → getMachineId-unsupported-B_bl21GL.js}
RENAMED
|
File without changes
|
/package/dist/cli/{getMachineId-unsupported-nDPltmL9.js → getMachineId-unsupported-BcNSZ9TD.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|