blink 1.1.35 → 1.1.37
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-B7pruQew.js +126 -0
- package/dist/cli/chat-Dza83RvU.js +1 -0
- package/dist/cli/{chat-manager-cUXPlLU4.js → chat-manager-CIKM5Z0y.js} +1 -1
- package/dist/cli/{compute-server-BFNeHOmk.js → compute-server-qi2ObZrP.js} +1 -1
- package/dist/cli/config-D_lhQ36A.js +1 -0
- package/dist/cli/connect-C6BJxbG5.js +1 -0
- package/dist/cli/connect-lEKh-OPL.js +1 -0
- package/dist/cli/{create-github-app-CaCP607a.js → create-github-app-BeSDE8GT.js} +1 -1
- package/dist/cli/{dev-DOvBAIjm.js → dev-oYr5PvLk.js} +71 -71
- package/dist/cli/{esm-BiWxO8S7.js → esm-C6nUlmX4.js} +1 -1
- package/dist/cli/{getMachineId-bsd-BfwVPdTh.js → getMachineId-bsd-B09GfpQE.js} +1 -1
- package/dist/cli/{getMachineId-bsd-BmhpEQU_.js → getMachineId-bsd-B5inCcKX.js} +1 -1
- package/dist/cli/{getMachineId-bsd-C1eeoY31.js → getMachineId-bsd-BVOanLuZ.js} +1 -1
- package/dist/cli/{getMachineId-bsd-CO9ne--Y.js → getMachineId-bsd-BXrGuboa.js} +1 -1
- package/dist/cli/getMachineId-bsd-CBL_TGNf.js +1 -0
- package/dist/cli/getMachineId-bsd-CbC9XZ_w.js +1 -0
- package/dist/cli/{getMachineId-bsd-D4uBPoNF.js → getMachineId-bsd-CrOdTUu4.js} +1 -1
- package/dist/cli/getMachineId-bsd-Cxy148LG.js +1 -0
- package/dist/cli/{getMachineId-darwin-C0EZ3sY3.js → getMachineId-darwin-BU-w-BnC.js} +1 -1
- package/dist/cli/{getMachineId-darwin-CSfD7gS4.js → getMachineId-darwin-BWTc5KWy.js} +1 -1
- package/dist/cli/{getMachineId-darwin-CgQ9n4TU.js → getMachineId-darwin-BbUfrHce.js} +1 -1
- package/dist/cli/{getMachineId-darwin-CuAzoP7O.js → getMachineId-darwin-BlZzCAQ6.js} +1 -1
- package/dist/cli/getMachineId-darwin-BmmSRa_d.js +2 -0
- package/dist/cli/{getMachineId-darwin-Cpq0Lloc.js → getMachineId-darwin-UHAuN405.js} +1 -1
- package/dist/cli/getMachineId-darwin-hJWBup80.js +2 -0
- package/dist/cli/getMachineId-darwin-rxU3ohHe.js +2 -0
- package/dist/cli/{getMachineId-linux-B1XJTHUh.js → getMachineId-linux-B4EFTMpj.js} +1 -1
- package/dist/cli/{getMachineId-linux-CRUR6LbQ.js → getMachineId-linux-CKBueRrt.js} +1 -1
- package/dist/cli/{getMachineId-linux-CVQNNGui.js → getMachineId-linux-CNhTYXGA.js} +1 -1
- package/dist/cli/{getMachineId-linux-CtdZRCaX.js → getMachineId-linux-D3K2OTZn.js} +1 -1
- package/dist/cli/getMachineId-linux-DaUV--ii.js +1 -0
- package/dist/cli/getMachineId-linux-DrZ26-WQ.js +1 -0
- package/dist/cli/getMachineId-linux-DzK7jzi5.js +1 -0
- package/dist/cli/getMachineId-linux-fpVhDYCz.js +1 -0
- package/dist/cli/{getMachineId-unsupported-B-xvzil1.js → getMachineId-unsupported-16ooXsXU.js} +1 -1
- package/dist/cli/{getMachineId-unsupported-BA3eQjiV.js → getMachineId-unsupported-72ceFIVM.js} +1 -1
- package/dist/cli/{getMachineId-unsupported-BZCOxs7n.js → getMachineId-unsupported-BKotHSFu.js} +1 -1
- package/dist/cli/{getMachineId-unsupported-BjGFauqb.js → getMachineId-unsupported-BSdFT2aC.js} +1 -1
- package/dist/cli/getMachineId-unsupported-CDM0TBdr.js +1 -0
- package/dist/cli/getMachineId-unsupported-Cw89MFW-.js +1 -0
- package/dist/cli/getMachineId-unsupported-DBSoWxG_.js +1 -0
- package/dist/cli/getMachineId-unsupported-cHJvhp02.js +1 -0
- package/dist/cli/{getMachineId-win-AW-Mv9PG.js → getMachineId-win-BAPC_wWc.js} +1 -1
- package/dist/cli/{getMachineId-win-B_2C1cwE.js → getMachineId-win-Bn_WM7bG.js} +1 -1
- package/dist/cli/{getMachineId-win-CUeKGXdr.js → getMachineId-win-Cc69o1Nq.js} +1 -1
- package/dist/cli/{getMachineId-win-BbYxddZ9.js → getMachineId-win-DR3Dm4-5.js} +1 -1
- package/dist/cli/{getMachineId-win-BkozcdSh.js → getMachineId-win-DdInvJHL.js} +1 -1
- package/dist/cli/getMachineId-win-Dig4HMmA.js +1 -0
- package/dist/cli/getMachineId-win-DwHWO0Id.js +1 -0
- package/dist/cli/getMachineId-win-gVqg_Qhn.js +1 -0
- package/dist/cli/index.js +9 -9
- package/dist/cli/{init-LtTUYXzn.js → init-Cq-SlOHe.js} +1 -1
- package/dist/cli/{init-templates-jGRvqLQ6.js → init-templates-Br3bKUNT.js} +3 -3
- package/dist/cli/login-DW6LzfRW.js +1 -0
- package/dist/cli/logout-CSXmq3nW.js +1 -0
- package/dist/cli/pull-B0kjDWZn.js +18 -0
- package/dist/cli/run-CY74Ar9q.js +1 -0
- package/dist/cli/setup-github-app-BB-iG8Lx.js +9 -0
- package/dist/cli/{token-v4NJW7VU.js → token-MaTAy4hv.js} +1 -1
- package/dist/cli/{token-util-BgEcL2NM.js → token-util-Bn01WxFK.js} +1 -1
- package/dist/cli/token-util-DbgI6oFx.js +1 -0
- package/dist/cli/undici-mM2IfLwA.js +1 -0
- package/dist/cli/{util-k3x8m_i5.js → util-D7HypBza.js} +1 -1
- package/dist/node/agent/index.node.cjs +1 -1
- package/dist/node/agent/index.node.d.ts +1 -1
- package/dist/node/agent/index.node.js +1 -1
- package/dist/node/build/index.cjs +1 -1
- package/dist/node/build/index.d.ts +1 -1
- package/dist/node/build/index.js +1 -1
- package/dist/node/context-Ch5QyxHM.js +1 -0
- package/dist/node/context-Cp_cUqvc.cjs +1 -0
- package/dist/node/esm-CSXsVdYr.js +1 -0
- package/dist/node/esm-DAl5TNhv.cjs +1 -0
- package/dist/node/{getMachineId-bsd-O0bNSuuh.cjs → getMachineId-bsd-C0y5EQEK.cjs} +1 -1
- package/dist/node/getMachineId-bsd-j5NqIOc8.js +1 -0
- package/dist/node/getMachineId-darwin-EKLAsCHs.js +2 -0
- package/dist/node/{getMachineId-darwin-DivkCgLG.cjs → getMachineId-darwin-QptN2GTZ.cjs} +1 -1
- package/dist/node/{getMachineId-linux-C8A0ak4z.cjs → getMachineId-linux-B7sBt1Ji.cjs} +1 -1
- package/dist/node/getMachineId-linux-BkKZQ4pT.js +1 -0
- package/dist/node/getMachineId-unsupported-C_PGk8nf.js +1 -0
- package/dist/node/{getMachineId-unsupported-DSRCXJha.cjs → getMachineId-unsupported-DwYXVQg7.cjs} +1 -1
- package/dist/node/getMachineId-win-BJspkM2m.js +1 -0
- package/dist/node/{getMachineId-win-B_okYUv6.cjs → getMachineId-win-C2mMnKyH.cjs} +1 -1
- package/dist/node/index.node-CU27y0G9.js +50 -0
- package/dist/node/index.node-DfJSk6zl.cjs +50 -0
- package/dist/node/internal/index.cjs +1 -0
- package/dist/node/internal/index.d.cts +24 -0
- package/dist/node/internal/index.d.ts +24 -0
- package/dist/node/internal/index.js +1 -0
- package/dist/node/react/index.node.cjs +128 -130
- package/dist/node/react/index.node.d.cts +1 -1
- package/dist/node/react/index.node.d.ts +3 -3
- package/dist/node/react/index.node.js +56 -58
- package/dist/node/{token-BQ-EqDMB.cjs → token-BQFROC8n.cjs} +1 -1
- package/dist/node/{token-B2MtKe6w.js → token-Qko9jH1t.js} +1 -1
- package/dist/node/token-util-BRjrHLnr.cjs +1 -0
- package/dist/node/{token-util-CtaB7NzM.js → token-util-uzFo5Esl.js} +1 -1
- package/package.json +8 -2
- package/dist/cli/auth-DbpOUCTO.js +0 -2
- package/dist/cli/chat-BfOX7Zpn.js +0 -1
- package/dist/cli/connect-3pBvxI6u.js +0 -1
- package/dist/cli/connect-XRcF_tn8.js +0 -1
- package/dist/cli/dist-Ceoe3h7v.js +0 -85
- package/dist/cli/getMachineId-bsd-DVGtITCk.js +0 -1
- package/dist/cli/getMachineId-bsd-MA4oFaCa.js +0 -1
- package/dist/cli/getMachineId-bsd-dbToLPez.js +0 -1
- package/dist/cli/getMachineId-darwin-D6_tdcZj.js +0 -2
- package/dist/cli/getMachineId-darwin-DkExT2qu.js +0 -2
- package/dist/cli/getMachineId-darwin-xoAzTD7x.js +0 -2
- package/dist/cli/getMachineId-linux-DMILcDJR.js +0 -1
- package/dist/cli/getMachineId-linux-Deja7F2k.js +0 -1
- package/dist/cli/getMachineId-linux-DqOGXYgv.js +0 -1
- package/dist/cli/getMachineId-linux-FRx9q8NV.js +0 -1
- package/dist/cli/getMachineId-unsupported-CLWxRb7f.js +0 -1
- package/dist/cli/getMachineId-unsupported-CSVFDvWp.js +0 -1
- package/dist/cli/getMachineId-unsupported-Cp_95R-6.js +0 -1
- package/dist/cli/getMachineId-unsupported-Nd0_Z7NT.js +0 -1
- package/dist/cli/getMachineId-win-CPhFagnx.js +0 -1
- package/dist/cli/getMachineId-win-D3-sMfSu.js +0 -1
- package/dist/cli/getMachineId-win-DFVpvzl3.js +0 -1
- package/dist/cli/login-POW3H6LQ.js +0 -1
- package/dist/cli/run-BHKBjgkK.js +0 -1
- package/dist/cli/setup-github-app-DBiuq7cy.js +0 -9
- package/dist/cli/token-util-3NkPUSqu.js +0 -1
- package/dist/cli/undici-JD4hDNWZ.js +0 -1
- package/dist/cli/util-CUfifM0g.js +0 -5
- package/dist/node/esm-0UNjvroT.cjs +0 -1
- package/dist/node/esm-CbZfjZBn.js +0 -1
- package/dist/node/getMachineId-bsd-Ckr9jSoT.js +0 -1
- package/dist/node/getMachineId-darwin-36SFRv2R.js +0 -2
- package/dist/node/getMachineId-linux-ZoT5w75D.js +0 -1
- package/dist/node/getMachineId-unsupported-XVp8oFCM.js +0 -1
- package/dist/node/getMachineId-win-CGqZ4f4O.js +0 -1
- package/dist/node/index.node-CFR7FTuY.cjs +0 -50
- package/dist/node/index.node-CITcyk6b.js +0 -50
- package/dist/node/token-util-P8_cV3Yu.cjs +0 -1
- /package/dist/cli/{devtools-CwQnB6v7.js → devtools-CS3ukAFj.js} +0 -0
- /package/dist/cli/{execAsync-4IyNgpoN.js → execAsync-9jtK4I3l.js} +0 -0
- /package/dist/cli/{execAsync-B6xSGvuk.js → execAsync-B4_pEoEJ.js} +0 -0
- /package/dist/cli/{execAsync-B8_ZTafx.js → execAsync-BdK7RB6d.js} +0 -0
- /package/dist/cli/{execAsync-B8nelpRN.js → execAsync-Bjxs-bO2.js} +0 -0
- /package/dist/cli/{execAsync-Cj_jF8MF.js → execAsync-CM_C8SBr.js} +0 -0
- /package/dist/cli/{execAsync-Ckbi9Yqe.js → execAsync-CNFaXJjR.js} +0 -0
- /package/dist/cli/{execAsync-CvOpnFex.js → execAsync-Dl3hbWiU.js} +0 -0
- /package/dist/cli/{execAsync-DDBH3pWg.js → execAsync-qGIZ8XA8.js} +0 -0
- /package/dist/cli/{ignore-NA4V6Pjc.js → ignore-ltyKbzfl.js} +0 -0
- /package/dist/cli/{token-error-BHDo_48c.js → token-error-CGIVaIg6.js} +0 -0
- /package/dist/cli/{undici-B5tM_IT9.js → undici-BiTrd9-R.js} +0 -0
- /package/dist/cli/{usingCtx-B1FpoePI.js → usingCtx-CCxav2be.js} +0 -0
- /package/dist/cli/{utils-B3iC7vdW.js → utils-BWKsfIcI.js} +0 -0
- /package/dist/node/{build-EgdtUZTI.cjs → build-BoU84guF.cjs} +0 -0
- /package/dist/node/{build-DYI55eX2.js → build-DBcSkHHH.js} +0 -0
- /package/dist/node/{execAsync-BMxJf0Eg.cjs → execAsync-BN6E2M46.cjs} +0 -0
- /package/dist/node/{execAsync-CY8juV7n.js → execAsync-CoM0jMb2.js} +0 -0
- /package/dist/node/{index-B4OXlWm3.d.ts → index-BcKU69uH.d.ts} +0 -0
- /package/dist/node/{index.node-BbqFCkOX.d.ts → index.node-Cl9AwUCW.d.ts} +0 -0
- /package/dist/node/{token-util--zh4M6Ze.cjs → token-util-CzDIlVhL.cjs} +0 -0
- /package/dist/node/{token-util-RdQsj3MK.js → token-util-DwGWB0np.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__require as t,__toCommonJS as n}from"./chunk-D9KrCrVq.js";import{esm_exports as r,init_esm as i}from"./esm-BiWxO8S7.js";import{require_execAsync as a}from"./execAsync-Ckbi9Yqe.js";var o=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let o=t(`fs`),s=a(),c=(i(),n(r));async function l(){try{return(await o.promises.readFile(`/etc/hostid`,{encoding:`utf8`})).trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}try{return(await(0,s.execAsync)(`kenv -q smbios.system.uuid`)).stdout.trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}e.getMachineId=l}));export default o();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__require as t,__toCommonJS as n}from"./chunk-D9KrCrVq.js";import{esm_exports as r,init_esm as i}from"./esm-BiWxO8S7.js";import{require_execAsync as a}from"./execAsync-Cj_jF8MF.js";var o=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let o=t(`fs`),s=a(),c=(i(),n(r));async function l(){try{return(await o.promises.readFile(`/etc/hostid`,{encoding:`utf8`})).trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}try{return(await(0,s.execAsync)(`kenv -q smbios.system.uuid`)).stdout.trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}e.getMachineId=l}));export default o();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__require as t,__toCommonJS as n}from"./chunk-D9KrCrVq.js";import{esm_exports as r,init_esm as i}from"./esm-BiWxO8S7.js";import{require_execAsync as a}from"./execAsync-DDBH3pWg.js";var o=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let o=t(`fs`),s=a(),c=(i(),n(r));async function l(){try{return(await o.promises.readFile(`/etc/hostid`,{encoding:`utf8`})).trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}try{return(await(0,s.execAsync)(`kenv -q smbios.system.uuid`)).stdout.trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}e.getMachineId=l}));export default o();export{};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__toCommonJS as t}from"./chunk-D9KrCrVq.js";import{esm_exports as n,init_esm as r}from"./esm-BiWxO8S7.js";import{require_execAsync as i}from"./execAsync-4IyNgpoN.js";var a=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let a=i(),o=(r(),t(n));async function s(){try{let e=(await(0,a.execAsync)(`ioreg -rd1 -c "IOPlatformExpertDevice"`)).stdout.split(`
|
|
2
|
-
`).find(e=>e.includes(`IOPlatformUUID`));if(!e)return;let t=e.split(`" = "`);if(t.length===2)return t[1].slice(0,-1)}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}e.getMachineId=s}));export default a();export{};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__toCommonJS as t}from"./chunk-D9KrCrVq.js";import{esm_exports as n,init_esm as r}from"./esm-BiWxO8S7.js";import{require_execAsync as i}from"./execAsync-DDBH3pWg.js";var a=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let a=i(),o=(r(),t(n));async function s(){try{let e=(await(0,a.execAsync)(`ioreg -rd1 -c "IOPlatformExpertDevice"`)).stdout.split(`
|
|
2
|
-
`).find(e=>e.includes(`IOPlatformUUID`));if(!e)return;let t=e.split(`" = "`);if(t.length===2)return t[1].slice(0,-1)}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}e.getMachineId=s}));export default a();export{};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__toCommonJS as t}from"./chunk-D9KrCrVq.js";import{esm_exports as n,init_esm as r}from"./esm-BiWxO8S7.js";import{require_execAsync as i}from"./execAsync-CvOpnFex.js";var a=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let a=i(),o=(r(),t(n));async function s(){try{let e=(await(0,a.execAsync)(`ioreg -rd1 -c "IOPlatformExpertDevice"`)).stdout.split(`
|
|
2
|
-
`).find(e=>e.includes(`IOPlatformUUID`));if(!e)return;let t=e.split(`" = "`);if(t.length===2)return t[1].slice(0,-1)}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}e.getMachineId=s}));export default a();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__require as t,__toCommonJS as n}from"./chunk-D9KrCrVq.js";import{esm_exports as r,init_esm as i}from"./esm-BiWxO8S7.js";var a=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let a=t(`fs`),o=(i(),n(r));async function s(){for(let e of[`/etc/machine-id`,`/var/lib/dbus/machine-id`])try{return(await a.promises.readFile(e,{encoding:`utf8`})).trim()}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}e.getMachineId=s}));export default a();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__require as t,__toCommonJS as n}from"./chunk-D9KrCrVq.js";import{esm_exports as r,init_esm as i}from"./esm-BiWxO8S7.js";var a=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let a=t(`fs`),o=(i(),n(r));async function s(){for(let e of[`/etc/machine-id`,`/var/lib/dbus/machine-id`])try{return(await a.promises.readFile(e,{encoding:`utf8`})).trim()}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}e.getMachineId=s}));export default a();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__require as t,__toCommonJS as n}from"./chunk-D9KrCrVq.js";import{esm_exports as r,init_esm as i}from"./esm-BiWxO8S7.js";var a=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let a=t(`fs`),o=(i(),n(r));async function s(){for(let e of[`/etc/machine-id`,`/var/lib/dbus/machine-id`])try{return(await a.promises.readFile(e,{encoding:`utf8`})).trim()}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}e.getMachineId=s}));export default a();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__require as t,__toCommonJS as n}from"./chunk-D9KrCrVq.js";import{esm_exports as r,init_esm as i}from"./esm-BiWxO8S7.js";var a=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let a=t(`fs`),o=(i(),n(r));async function s(){for(let e of[`/etc/machine-id`,`/var/lib/dbus/machine-id`])try{return(await a.promises.readFile(e,{encoding:`utf8`})).trim()}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}e.getMachineId=s}));export default a();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__toCommonJS as t}from"./chunk-D9KrCrVq.js";import{esm_exports as n,init_esm as r}from"./esm-BiWxO8S7.js";var i=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let i=(r(),t(n));async function a(){i.diag.debug(`could not read machine-id: unsupported platform`)}e.getMachineId=a}));export default i();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__toCommonJS as t}from"./chunk-D9KrCrVq.js";import{esm_exports as n,init_esm as r}from"./esm-BiWxO8S7.js";var i=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let i=(r(),t(n));async function a(){i.diag.debug(`could not read machine-id: unsupported platform`)}e.getMachineId=a}));export default i();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__toCommonJS as t}from"./chunk-D9KrCrVq.js";import{esm_exports as n,init_esm as r}from"./esm-BiWxO8S7.js";var i=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let i=(r(),t(n));async function a(){i.diag.debug(`could not read machine-id: unsupported platform`)}e.getMachineId=a}));export default i();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__toCommonJS as t}from"./chunk-D9KrCrVq.js";import{esm_exports as n,init_esm as r}from"./esm-BiWxO8S7.js";var i=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let i=(r(),t(n));async function a(){i.diag.debug(`could not read machine-id: unsupported platform`)}e.getMachineId=a}));export default i();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__require as t,__toCommonJS as n}from"./chunk-D9KrCrVq.js";import{esm_exports as r,init_esm as i}from"./esm-BiWxO8S7.js";import{require_execAsync as a}from"./execAsync-4IyNgpoN.js";var o=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let o=t(`process`),s=a(),c=(i(),n(r));async function l(){let e=`%windir%\\System32\\REG.exe`;o.arch===`ia32`&&`PROCESSOR_ARCHITEW6432`in o.env&&(e=`%windir%\\sysnative\\cmd.exe /c `+e);try{let t=(await(0,s.execAsync)(`${e} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split(`REG_SZ`);if(t.length===2)return t[1].trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}e.getMachineId=l}));export default o();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__require as t,__toCommonJS as n}from"./chunk-D9KrCrVq.js";import{esm_exports as r,init_esm as i}from"./esm-BiWxO8S7.js";import{require_execAsync as a}from"./execAsync-DDBH3pWg.js";var o=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let o=t(`process`),s=a(),c=(i(),n(r));async function l(){let e=`%windir%\\System32\\REG.exe`;o.arch===`ia32`&&`PROCESSOR_ARCHITEW6432`in o.env&&(e=`%windir%\\sysnative\\cmd.exe /c `+e);try{let t=(await(0,s.execAsync)(`${e} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split(`REG_SZ`);if(t.length===2)return t[1].trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}e.getMachineId=l}));export default o();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__require as t,__toCommonJS as n}from"./chunk-D9KrCrVq.js";import{esm_exports as r,init_esm as i}from"./esm-BiWxO8S7.js";import{require_execAsync as a}from"./execAsync-Cj_jF8MF.js";var o=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let o=t(`process`),s=a(),c=(i(),n(r));async function l(){let e=`%windir%\\System32\\REG.exe`;o.arch===`ia32`&&`PROCESSOR_ARCHITEW6432`in o.env&&(e=`%windir%\\sysnative\\cmd.exe /c `+e);try{let t=(await(0,s.execAsync)(`${e} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split(`REG_SZ`);if(t.length===2)return t[1].trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}e.getMachineId=l}));export default o();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./dist-Ceoe3h7v.js";import{login as e}from"./auth-DbpOUCTO.js";import"./util-CUfifM0g.js";async function t(){await e()}export{t as default};
|
package/dist/cli/run-BHKBjgkK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__toESM as e}from"./chunk-D9KrCrVq.js";import{findNearestEntry as t,migrateDataToBlink as n,require_main as r,resolveConfig as i}from"./util-k3x8m_i5.js";import"./dist-Ceoe3h7v.js";import{getAuthToken as a}from"./auth-DbpOUCTO.js";import"./util-CUfifM0g.js";import"./usingCtx-B1FpoePI.js";import"./utils-B3iC7vdW.js";import{ChatManager as o,Client as s,RWLock as c}from"./chat-manager-cUXPlLU4.js";import{spawn as l}from"node:child_process";import{join as u,resolve as d}from"node:path";import{existsSync as f}from"node:fs";import{readFile as p}from"node:fs/promises";import{createServer as m}from"node:net";async function h(e){let t=e.env?.PORT??await g(),n=e.env?.HOST??`127.0.0.1`,r=`http://${n}:${t}`,i={...e.env??process.env,PORT:t.toString(),HOST:n},a=l(e.command,e.args,{stdio:`pipe`,env:i});e.signal?.addEventListener(`abort`,()=>{try{a.kill()}catch{}},{once:!0});let o=new AbortController,c=[o.signal];e.signal&&c.push(e.signal);let u=AbortSignal.any(c);a.stdout.on(`data`,t=>{e.onStdout?.(Buffer.from(t).toString(`utf-8`))});let d=``;a.stderr.on(`data`,t=>{o.signal.aborted||(d+=Buffer.from(t).toString(`utf-8`)),e.onStderr?.(Buffer.from(t).toString(`utf-8`))}),a.on(`error`,e=>{o.abort(e)}),a.on(`exit`,(t,n)=>{o.signal.aborted?e.onExit?.(t,n):o.abort()});let f=new s({baseUrl:r}),p=0;for(;!u.aborted;){try{await f.health();break}catch{}if(await new Promise(e=>setTimeout(e,p*5)),p++,p>100)throw Error(`Health endpoint timed out`)}if(u.aborted)throw u.reason;return o.abort(),{client:f,dispose:()=>{a.kill()}}}async function g(){let e=m();return new Promise((t,n)=>{e.listen(0,()=>{let n=e.address().port;t(n)}).on(`error`,e=>{n(e)})}).finally(()=>{e.close()})}var _=e(r(),1);async function v(e,r={}){if(!r.directory){let e=process.cwd();try{i(e),r.directory=e}catch{let n=await t(e,`.blink`);n&&f(u(n,`build`))&&(n=void 0),n?r.directory=n:r.directory=e}}await n(r.directory);let s=i(r.directory),l={};try{l=(0,_.parse)(await p(u(r.directory,`.env.local`),`utf-8`))}catch{}let m=await a(),g=await h({command:`node`,args:[`--experimental-strip-types`,`--no-deprecation`,s.entry],env:{...process.env,...l,BLINK_TOKEN:m}});console.log(`Agent spawned`);let v=d(r?.directory??process.cwd(),`.blink`,`chats`),y=new o({chatId:r?.chat,chatsDirectory:v,onError:e=>{console.error(`Error:`,e)}});y.setAgent({client:g.client,lock:new c});try{let t=new Promise(e=>{let t=y.subscribe(n=>{(n.status===`idle`||n.status===`error`)&&(t(),e())})});await y.sendMessages([{id:crypto.randomUUID(),created_at:new Date().toISOString(),metadata:void 0,parts:[{type:`text`,text:e.join(` `)}],role:`user`,mode:`run`}]),await t;let n=y.getState();console.log(`Final state:`,n.messages.pop())}finally{y.dispose(),g.dispose()}}export{v as default};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{Client as e,Ie as t,M as n,Se as r,Y as i,ge as a,he as o,pD as s,ye as c}from"./dist-Ceoe3h7v.js";import{openUrl as l,source_default as u}from"./util-CUfifM0g.js";import{createDevhookID as d,createGithubApp as f,createSlackApp as p,getDevhookID as m,hasDevhook as h}from"./create-github-app-CaCP607a.js";import{_usingCtx as g}from"./usingCtx-B1FpoePI.js";import{basename as _,join as v}from"node:path";import{access as y,readFile as b,readdir as x,writeFile as S}from"node:fs/promises";import C from"node:util";import w from"node:crypto";async function T(e){try{let t=await(await fetch(`https://slack.com/api/auth.test`,{method:`POST`,headers:{Authorization:`Bearer ${e}`,"Content-Type":`application/json`}})).json();return t.ok?{valid:!0,botName:t.user}:{valid:!1,error:t.error||`Invalid bot token`}}catch(e){return{valid:!1,error:`Failed to verify credentials: ${e}`}}}function E(e,t,n,r){let i=Math.floor(Date.now()/1e3),a=parseInt(t,10);if(Math.abs(i-a)>300)return!1;let o=w.createHmac(`sha256`,e),s=`v0:${t}:${n}`;o.update(s);let c=`v0=${o.digest(`hex`)}`;return w.timingSafeEqual(Buffer.from(c),Buffer.from(r))}const D=e=>{if(!(typeof e==`object`&&e))throw Error(`Unable to make value disposable, it's not an object`);if(Symbol.dispose in e)return e;if(`dispose`in e&&typeof e.dispose==`function`){let t=e;return t[Symbol.dispose]=()=>t.dispose(),t}throw Error(`Unable to make value disposable`)};async function O(e,t,n){let r=``;try{r=await b(e,`utf-8`)}catch{}r=r.replace(/^(SLACK_BOT_TOKEN=.*)/gm,`# $1`).replace(/^(SLACK_SIGNING_SECRET=.*)/gm,`# $1`),r=`${r.trimEnd()}\n`;let i=[];i.push(``),i.push(`# Slack App credentials`),t&&i.push(`SLACK_BOT_TOKEN=${t}`),n&&i.push(`SLACK_SIGNING_SECRET=${n}`),i.push(``),await S(e,r+i.join(`
|
|
2
|
-
`),`utf-8`)}async function k(e){let t=await x(e);for(let[e,n]of[[`bun`,`bun.lock`],[`npm`,`package-lock.json`],[`pnpm`,`pnpm-lock.yaml`],[`yarn`,`yarn.lock`]])for(let r of t)if(r.includes(n))return e;return`npm`}async function A(t,f){try{var b=g();let x=f?.name||_(t).replace(/[^a-zA-Z0-9]/g,`-`),S=f?.packageManager||await k(t),w=v(t,`.env.local`);try{await y(w)}catch{n.error(`No .env.local file found in this directory. Please run this command from a Blink agent directory.`),r(`Slack app setup cancelled`);return}let A=await o({message:`What should your Slack app be called? This will be the name displayed in Slack. You can change it later.`,placeholder:x,defaultValue:x,validate:e=>{if(!e||e.trim().length===0)return`App name cannot be empty`}});if(s(A))return;let j=h(t)?m(t):d(t),M=`https://${j}.blink.host`;if(!j)throw Error(`Failed to obtain devhook ID`);n.info(`Starting webhook listener...`);let N=``,P=``,F=!1,I=``,L=``,R=!1,z,B=new e({baseURL:`https://blink.coder.com`}),V=()=>{},H=e=>{},U=new Promise((e,t)=>{V=e,H=t}),W=B.devhook.listen({id:j,onRequest:async e=>{let t=await e.text(),r;try{r=JSON.parse(t)}catch{return new Response(`Invalid JSON`,{status:400})}if(r.type===`url_verification`)return n.info(`✓ Webhook challenge received`),new Response(JSON.stringify({challenge:r.challenge}),{headers:{"Content-Type":`application/json`}});if(N){let n=e.headers.get(`x-slack-signature`),i=e.headers.get(`x-slack-request-timestamp`);if(!n||!i)return new Response(`Missing signature`,{status:401});if(!E(N,i,t,n))return R=!0,r.event?.type===`message`&&r.event.channel_type===`im`&&!r.event.bot_id&&(z=r.event.channel),new Response(`Invalid signature`,{status:401})}return r.event?.type===`message`&&r.event.channel_type===`im`&&!r.event.bot_id&&(F=!0,I=r.event.channel??``,L=r.event.ts??``),new Response(`OK`)},onConnect:()=>{V()},onDisconnect:()=>{},onError:e=>{H(e)}});b.u(D(W));let G={display_information:{name:A.toString(),description:`A Blink agent for Slack`,background_color:`#4A154B`},features:{bot_user:{display_name:A.toString(),always_online:!0},app_home:{home_tab_enabled:!1,messages_tab_enabled:!0,messages_tab_read_only_enabled:!1},assistant_view:{assistant_description:`A helpful assistant powered by Blink`}},oauth_config:{scopes:{bot:[`app_mentions:read`,`assistant:write`,`reactions:write`,`reactions:read`,`channels:history`,`chat:write`,`groups:history`,`groups:read`,`files:read`,`im:history`,`im:read`,`im:write`,`mpim:history`,`mpim:read`,`users:read`,`links:read`,`commands`]}},settings:{event_subscriptions:{request_url:M,bot_events:[`app_mention`,`message.channels`,`message.groups`,`message.im`,`reaction_added`,`reaction_removed`,`assistant_thread_started`,`member_joined_channel`]},interactivity:{is_enabled:!0,request_url:M},token_rotation_enabled:!1,org_deploy_enabled:!1,socket_mode_enabled:!1}},K=p(G);n.info(`Please visit this URL to create your Slack app and return here after finishing:\n\n${u.gray(K)}\n`);let q=await c({message:`Open this URL in your browser automatically?`,initialValue:!0});if(s(q)){n.warn(`Skipping Slack app setup`);return}q&&await l(K,`Could not open the browser. Please visit the URL manually.`);let J=await o({message:`After creating the app, paste the App ID from the "Basic Information" page:`,placeholder:`A01234567AB`,validate:e=>{if(!e||e.trim().length===0)return`App ID is required`}});if(s(J)){n.warn(`Skipping Slack app setup`);return}if(N=await a({message:`Paste your Signing Secret from the same page:`,validate:e=>{if(!e||e.trim().length===0)return`Signing secret is required`}}),s(N)){n.warn(`Skipping Slack app setup`);return}let Y=!1;for(;!Y;){if(P=await a({message:`Install your app and paste your Bot Token from ${u.cyan(`https://api.slack.com/apps/${J}/install-on-team`)}`,validate:e=>{if(!e||e.trim().length===0)return`Bot token is required`}}),s(P)){n.warn(`Skipping Slack app setup`);return}let e=i();e.start(`Verifying bot token...`);let t=await T(P);if(t.valid)e.stop(`✓ Bot token verified!`),Y=!0;else{e.stop(`✗ Failed to verify bot token: ${t.error}`);let r=await c({message:`Would you like to try again?`,initialValue:!0});if(s(r)||!r){n.warn(`Skipping Slack app setup`);return}}}await O(w,P,N),n.success(`Credentials saved to .env.local`),await U;let X=i();X.start(`Try sending a DM to the bot on Slack - it's ${u.bold(u.cyan(A))} in the search bar.`);let Z={bun:`bun run dev`,npm:`npm run dev`,pnpm:`pnpm run dev`,yarn:`yarn dev`}[S];for(;!F;){if(R){if(X.stop(`✗ Invalid signing secret detected`),z&&P)try{await fetch(`https://slack.com/api/chat.postMessage`,{method:`POST`,headers:{Authorization:`Bearer ${P}`,"Content-Type":`application/json`},body:JSON.stringify({channel:z,text:`⚠️ There seems to be a problem with the signing secret. Please check the CLI for instructions on how to fix it.`})})}catch{}let e=await a({message:`The signing secret appears to be incorrect. Please paste the correct Signing Secret from ${u.cyan(`https://api.slack.com/apps/${J}/general`)}`,validate:e=>{if(!e||e.trim().length===0)return`Signing secret is required`}});if(s(e)){n.warn(`Skipping Slack app setup`);return}N=e,R=!1,z=void 0,await O(w,void 0,N),X.start(`Please try sending a DM to the bot again on Slack...`)}await new Promise(e=>setTimeout(e,500))}X.stop(u.green(`✓ DM received!`));try{await fetch(`https://slack.com/api/chat.postMessage`,{method:`POST`,headers:{Authorization:`Bearer ${P}`,"Content-Type":`application/json`},body:JSON.stringify({channel:I,thread_ts:L,text:`Congrats, your app is now installed and ready to use! Run \`${Z}\` to use your agent.`})})}catch(e){n.warn(`Could not send message to Slack: ${C.inspect(e)}`)}n.success(`Slack app setup complete!`)}catch(e){b.e=e}finally{b.d()}}async function j(e){e||=process.cwd(),t(`Setting up Slack app`),await A(e),process.exit(0)}async function M(e,t){let n=``;try{n=await b(e,`utf-8`)}catch{}n=n.replace(/^(GITHUB_APP_ID=.*)/gm,`# $1`).replace(/^(GITHUB_CLIENT_ID=.*)/gm,`# $1`).replace(/^(GITHUB_CLIENT_SECRET=.*)/gm,`# $1`).replace(/^(GITHUB_WEBHOOK_SECRET=.*)/gm,`# $1`).replace(/^(GITHUB_PRIVATE_KEY=.*)/gm,`# $1`),n=`${n.trimEnd()}\n`;let r=`
|
|
3
|
-
# GitHub App credentials
|
|
4
|
-
GITHUB_APP_ID=${t.id}
|
|
5
|
-
GITHUB_CLIENT_ID=${t.client_id}
|
|
6
|
-
GITHUB_CLIENT_SECRET=${t.client_secret}
|
|
7
|
-
GITHUB_WEBHOOK_SECRET=${t.webhook_secret}
|
|
8
|
-
GITHUB_PRIVATE_KEY="${btoa(t.pem)}"
|
|
9
|
-
`;await S(e,n+r,`utf-8`)}async function N(e,t){let a=t?.name||_(e).replace(/[^a-zA-Z0-9]/g,`-`),p=v(e,`.env.local`);try{await y(p)}catch{n.error(`No .env.local file found in this directory. Please run this command from a Blink agent directory.`),r(`GitHub App setup cancelled`);return}let g=await o({message:`What should your GitHub App be called? This will be the name displayed on GitHub. You can change it later.`,placeholder:a,defaultValue:a,validate:e=>{if(!e||e.trim().length===0)return`App name cannot be empty`}});if(s(g))return;let b=await o({message:`Enter a GitHub organization name to create the app under, or leave blank for a personal app:`,placeholder:`Leave blank for personal app`,defaultValue:``});if(s(b))return;let x=b&&b.trim().length>0?b.trim():void 0,S=h(e)?m(e):d(e);if(!S)throw Error(`Failed to obtain devhook ID`);let C=`https://${S}.blink.host`,w={name:g.toString(),url:`https://blink.coder.com`,description:`A Blink agent for GitHub`,public:!1,hook_attributes:{url:C,active:!0},default_events:[`issues`,`issue_comment`,`pull_request`,`pull_request_review`,`pull_request_review_comment`,`push`],default_permissions:{contents:`write`,issues:`write`,pull_requests:`write`,metadata:`read`}},T,E,D=new Promise((e,t)=>{T=e,E=t}),O=i(),k=await f(w,x,async(e,t)=>{if(e){E(e);return}t&&T(t)});n.info(`Please visit this URL to create your GitHub App and return here after finishing:\n\n${u.gray(k)}\n`);let A=await c({message:`Open this URL in your browser automatically?`,initialValue:!0});if(s(A)){n.warn(`Skipping GitHub App setup`);return}A&&await l(k,`Could not open the browser. Please visit the URL manually.`),O.start(`Waiting for GitHub App creation to complete...`);let j;try{j=await D}catch(e){O.stop(`Failed to create GitHub App: ${e instanceof Error?e.message:String(e)}`);return}O.stop(u.green(`✓ GitHub App "${j.name}" created!`)),await M(p,j),n.success(`Credentials saved to .env.local`),n.info(`\nYour GitHub App is available at: ${u.cyan(j.html_url)}`),n.info(`\nTo install the app on repositories, visit: ${u.cyan(`${j.html_url}/installations/new`)}`),n.success(`GitHub App setup complete!`)}async function P(e){e||=process.cwd(),t(`Setting up GitHub App`),await N(e),process.exit(0)}export{N as setupGithubApp,P as setupGithubAppCommand,A as setupSlackApp,j as setupSlackAppCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./token-error-BHDo_48c.js";import{require_token_util as e}from"./token-util-BgEcL2NM.js";export default e();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{require_undici as e}from"./undici-B5tM_IT9.js";export default e();export{};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import e,{execFile as t}from"node:child_process";import n from"node:path";import r from"node:fs";import i from"node:process";import a,{constants as o}from"node:fs/promises";import s from"node:os";import c from"node:tty";import{promisify as l}from"node:util";import{Buffer as u}from"node:buffer";import{fileURLToPath as d}from"node:url";const f=(e=0)=>t=>`\u001B[${t+e}m`,p=(e=0)=>t=>`\u001B[${38+e};5;${t}m`,m=(e=0)=>(t,n,r)=>`\u001B[${38+e};2;${t};${n};${r}m`,h={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(h.modifier);const ee=Object.keys(h.color),te=Object.keys(h.bgColor);[...ee,...te];function g(){let e=new Map;for(let[t,n]of Object.entries(h)){for(let[t,r]of Object.entries(n))h[t]={open:`\u001B[${r[0]}m`,close:`\u001B[${r[1]}m`},n[t]=h[t],e.set(r[0],r[1]);Object.defineProperty(h,t,{value:n,enumerable:!1})}return Object.defineProperty(h,`codes`,{value:e,enumerable:!1}),h.color.close=`\x1B[39m`,h.bgColor.close=`\x1B[49m`,h.color.ansi=f(),h.color.ansi256=p(),h.color.ansi16m=m(),h.bgColor.ansi=f(10),h.bgColor.ansi256=p(10),h.bgColor.ansi16m=m(10),Object.defineProperties(h,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>h.rgbToAnsi256(...h.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>h.ansi256ToAnsi(h.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>h.ansi256ToAnsi(h.hexToAnsi256(e)),enumerable:!1}}),h}var _=g();function v(e,t=globalThis.Deno?globalThis.Deno.args:i.argv){let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),a=t.indexOf(`--`);return r!==-1&&(a===-1||r<a)}const{env:y}=i;let b;v(`no-color`)||v(`no-colors`)||v(`color=false`)||v(`color=never`)?b=0:(v(`color`)||v(`colors`)||v(`color=true`)||v(`color=always`))&&(b=1);function ne(){if(`FORCE_COLOR`in y)return y.FORCE_COLOR===`true`?1:y.FORCE_COLOR===`false`?0:y.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(y.FORCE_COLOR,10),3)}function re(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ie(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=ne();r!==void 0&&(b=r);let a=n?b:r;if(a===0)return 0;if(n){if(v(`color=16m`)||v(`color=full`)||v(`color=truecolor`))return 3;if(v(`color=256`))return 2}if(`TF_BUILD`in y&&`AGENT_NAME`in y)return 1;if(e&&!t&&a===void 0)return 0;let o=a||0;if(y.TERM===`dumb`)return o;if(i.platform===`win32`){let e=s.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in y)return[`GITHUB_ACTIONS`,`GITEA_ACTIONS`,`CIRCLECI`].some(e=>e in y)?3:[`TRAVIS`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in y)||y.CI_NAME===`codeship`?1:o;if(`TEAMCITY_VERSION`in y)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(y.TEAMCITY_VERSION)?1:0;if(y.COLORTERM===`truecolor`||y.TERM===`xterm-kitty`||y.TERM===`xterm-ghostty`||y.TERM===`wezterm`)return 3;if(`TERM_PROGRAM`in y){let e=Number.parseInt((y.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(y.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(y.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(y.TERM)||`COLORTERM`in y?1:o}function x(e,t={}){let n=ie(e,{streamIsTTY:e&&e.isTTY,...t});return re(n)}var ae={stdout:x({isTTY:c.isatty(1)}),stderr:x({isTTY:c.isatty(2)})};function oe(e,t,n){let r=e.indexOf(t);if(r===-1)return e;let i=t.length,a=0,o=``;do o+=e.slice(a,r)+t+n,a=r+i,r=e.indexOf(t,a);while(r!==-1);return o+=e.slice(a),o}function se(e,t,n,r){let i=0,a=``;do{let o=e[r-1]===`\r`;a+=e.slice(i,o?r-1:r)+t+(o?`\r
|
|
2
|
-
`:`
|
|
3
|
-
`)+n,i=r+1,r=e.indexOf(`
|
|
4
|
-
`,i)}while(r!==-1);return a+=e.slice(i),a}const{stdout:S,stderr:C}=ae,w=Symbol(`GENERATOR`),T=Symbol(`STYLER`),E=Symbol(`IS_EMPTY`),D=[`ansi`,`ansi`,`ansi256`,`ansi16m`],O=Object.create(null),ce=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let n=S?S.level:0;e.level=t.level===void 0?n:t.level},le=e=>{let t=(...e)=>e.join(` `);return ce(t,e),Object.setPrototypeOf(t,k.prototype),t};function k(e){return le(e)}Object.setPrototypeOf(k.prototype,Function.prototype);for(let[e,t]of Object.entries(_))O[e]={get(){let n=N(this,M(t.open,t.close,this[T]),this[E]);return Object.defineProperty(this,e,{value:n}),n}};O.visible={get(){let e=N(this,this[T],!0);return Object.defineProperty(this,`visible`,{value:e}),e}};const A=(e,t,n,...r)=>e===`rgb`?t===`ansi16m`?_[n].ansi16m(...r):t===`ansi256`?_[n].ansi256(_.rgbToAnsi256(...r)):_[n].ansi(_.rgbToAnsi(...r)):e===`hex`?A(`rgb`,t,n,..._.hexToRgb(...r)):_[n][e](...r);for(let e of[`rgb`,`hex`,`ansi256`]){O[e]={get(){let{level:t}=this;return function(...n){let r=M(A(e,D[t],`color`,...n),_.color.close,this[T]);return N(this,r,this[E])}}};let t=`bg`+e[0].toUpperCase()+e.slice(1);O[t]={get(){let{level:t}=this;return function(...n){let r=M(A(e,D[t],`bgColor`,...n),_.bgColor.close,this[T]);return N(this,r,this[E])}}}}const j=Object.defineProperties(()=>{},{...O,level:{enumerable:!0,get(){return this[w].level},set(e){this[w].level=e}}}),M=(e,t,n)=>{let r,i;return n===void 0?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},N=(e,t,n)=>{let r=(...e)=>ue(r,e.length===1?``+e[0]:e.join(` `));return Object.setPrototypeOf(r,j),r[w]=e,r[T]=t,r[E]=n,r},ue=(e,t)=>{if(e.level<=0||!t)return e[E]?``:t;let n=e[T];if(n===void 0)return t;let{openAll:r,closeAll:i}=n;if(t.includes(`\x1B`))for(;n!==void 0;)t=oe(t,n.close,n.open),n=n.parent;let a=t.indexOf(`
|
|
5
|
-
`);return a!==-1&&(t=se(t,i,r,a)),r+t+i};Object.defineProperties(k.prototype,O);const de=k();k({level:C?C.level:0});var P=de;let F;function fe(){try{return r.statSync(`/.dockerenv`),!0}catch{return!1}}function pe(){try{return r.readFileSync(`/proc/self/cgroup`,`utf8`).includes(`docker`)}catch{return!1}}function me(){return F===void 0&&(F=fe()||pe()),F}let I;const he=()=>{try{return r.statSync(`/run/.containerenv`),!0}catch{return!1}};function L(){return I===void 0&&(I=he()||me()),I}const R=()=>{if(i.platform!==`linux`)return!1;if(s.release().toLowerCase().includes(`microsoft`))return!L();try{return r.readFileSync(`/proc/version`,`utf8`).toLowerCase().includes(`microsoft`)?!L():!1}catch{return!1}};var z=i.env.__IS_WSL_TEST__?R:R();const B=(()=>{let e=`/mnt/`,t;return async function(){if(t)return t;let n=`/etc/wsl.conf`,r=!1;try{await a.access(n,o.F_OK),r=!0}catch{}if(!r)return e;let i=await a.readFile(n,{encoding:`utf8`}),s=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(i);return s?(t=s.groups.mountPoint.trim(),t=t.endsWith(`/`)?t:`${t}/`,t):e}})(),ge=async()=>`${await B()}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`,V=async()=>z?ge():`${i.env.SYSTEMROOT||i.env.windir||String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;function H(e,t,n){let r=n=>Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0});return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get(){let e=n();return r(e),e},set(e){r(e)}}),e}const _e=l(t);async function ve(){if(i.platform!==`darwin`)throw Error(`macOS only`);let{stdout:e}=await _e(`defaults`,[`read`,`com.apple.LaunchServices/com.apple.launchservices.secure`,`LSHandlers`]);return/LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(e)?.groups.id??`com.apple.Safari`}const ye=l(t);async function be(e,{humanReadableOutput:t=!0,signal:n}={}){if(i.platform!==`darwin`)throw Error(`macOS only`);let r=t?[]:[`-ss`],a={};n&&(a.signal=n);let{stdout:o}=await ye(`osascript`,[`-e`,e,r],a);return o.trim()}async function xe(e){return be(`tell application "Finder" to set app_path to application file id "${e}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`)}const Se=l(t),Ce={AppXq0fevzme2pys62n3e0fbqa7peapykr8v:{name:`Edge`,id:`com.microsoft.edge.old`},MSEdgeDHTML:{name:`Edge`,id:`com.microsoft.edge`},MSEdgeHTM:{name:`Edge`,id:`com.microsoft.edge`},"IE.HTTP":{name:`Internet Explorer`,id:`com.microsoft.ie`},FirefoxURL:{name:`Firefox`,id:`org.mozilla.firefox`},ChromeHTML:{name:`Chrome`,id:`com.google.chrome`},BraveHTML:{name:`Brave`,id:`com.brave.Browser`},BraveBHTML:{name:`Brave Beta`,id:`com.brave.Browser.beta`},BraveSSHTM:{name:`Brave Nightly`,id:`com.brave.Browser.nightly`}};var U=class extends Error{};async function we(e=Se){let{stdout:t}=await e(`reg`,[`QUERY`,` HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice`,`/v`,`ProgId`]),n=/ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(t);if(!n)throw new U(`Cannot find Windows browser in stdout: ${JSON.stringify(t)}`);let{id:r}=n.groups,i=Ce[r];if(!i)throw new U(`Unknown browser ID: ${r}`);return i}const Te=l(t),Ee=e=>e.toLowerCase().replaceAll(/(?:^|\s|-)\S/g,e=>e.toUpperCase());async function De(){if(i.platform===`darwin`){let e=await ve();return{name:await xe(e),id:e}}if(i.platform===`linux`){let{stdout:e}=await Te(`xdg-mime`,[`query`,`default`,`x-scheme-handler/http`]),t=e.trim();return{name:Ee(t.replace(/.desktop$/,``).replace(`-`,` `)),id:t}}if(i.platform===`win32`)return we();throw Error(`Only macOS, Linux, and Windows are supported`)}const Oe=l(e.execFile),W=n.dirname(d(import.meta.url)),G=n.join(W,`xdg-open`),{platform:K,arch:q}=i;async function ke(){let e=await V(),t=String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`,n=u.from(t,`utf16le`).toString(`base64`),{stdout:r}=await Oe(e,[`-NoProfile`,`-NonInteractive`,`-ExecutionPolicy`,`Bypass`,`-EncodedCommand`,n],{encoding:`utf8`}),i=r.trim(),a={ChromeHTML:`com.google.chrome`,BraveHTML:`com.brave.Browser`,MSEdgeHTM:`com.microsoft.edge`,FirefoxURL:`org.mozilla.firefox`};return a[i]?{id:a[i]}:{}}const J=async(e,t)=>{let n;for(let r of e)try{return await t(r)}catch(e){n=e}throw n},Y=async t=>{if(t={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...t},Array.isArray(t.app))return J(t.app,e=>Y({...t,app:e}));let{name:n,arguments:r=[]}=t.app??{};if(r=[...r],Array.isArray(n))return J(n,e=>Y({...t,app:{name:e,arguments:r}}));if(n===`browser`||n===`browserPrivate`){let e={"com.google.chrome":`chrome`,"google-chrome.desktop":`chrome`,"com.brave.Browser":`brave`,"org.mozilla.firefox":`firefox`,"firefox.desktop":`firefox`,"com.microsoft.msedge":`edge`,"com.microsoft.edge":`edge`,"com.microsoft.edgemac":`edge`,"microsoft-edge.desktop":`edge`},i={chrome:`--incognito`,brave:`--incognito`,firefox:`--private-window`,edge:`--inPrivate`},a=z?await ke():await De();if(a.id in e){let o=e[a.id];return n===`browserPrivate`&&r.push(i[o]),Y({...t,app:{name:Q[o],arguments:r}})}throw Error(`${a.name} is not supported as a default browser`)}let s,c=[],l={};if(K===`darwin`)s=`open`,t.wait&&c.push(`--wait-apps`),t.background&&c.push(`--background`),t.newInstance&&c.push(`--new`),n&&c.push(`-a`,n);else if(K===`win32`||z&&!L()&&!n){s=await V(),c.push(`-NoProfile`,`-NonInteractive`,`-ExecutionPolicy`,`Bypass`,`-EncodedCommand`),z||(l.windowsVerbatimArguments=!0);let e=[`Start`];t.wait&&e.push(`-Wait`),n?(e.push(`"\`"${n}\`""`),t.target&&r.push(t.target)):t.target&&e.push(`"${t.target}"`),r.length>0&&(r=r.map(e=>`"\`"${e}\`""`),e.push(`-ArgumentList`,r.join(`,`))),t.target=u.from(e.join(` `),`utf16le`).toString(`base64`)}else{if(n)s=n;else{let e=!W||W===`/`,t=!1;try{await a.access(G,o.X_OK),t=!0}catch{}s=i.versions.electron??(K===`android`||e||!t)?`xdg-open`:G}r.length>0&&c.push(...r),t.wait||(l.stdio=`ignore`,l.detached=!0)}K===`darwin`&&r.length>0&&c.push(`--args`,...r),t.target&&c.push(t.target);let d=e.spawn(s,c,l);return t.wait?new Promise((e,n)=>{d.once(`error`,n),d.once(`close`,r=>{if(!t.allowNonzeroExitCode&&r>0){n(Error(`Exited with code ${r}`));return}e(d)})}):(d.unref(),d)},Ae=(e,t)=>{if(typeof e!=`string`)throw TypeError("Expected a `target`");return Y({...t,target:e})};function X(e){if(typeof e==`string`||Array.isArray(e))return e;let{[q]:t}=e;if(!t)throw Error(`${q} is not supported`);return t}function Z({[K]:e},{wsl:t}){if(t&&z)return X(t);if(!e)throw Error(`${K} is not supported`);return X(e)}const Q={};H(Q,`chrome`,()=>Z({darwin:`google chrome`,win32:`chrome`,linux:[`google-chrome`,`google-chrome-stable`,`chromium`]},{wsl:{ia32:`/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe`,x64:[`/mnt/c/Program Files/Google/Chrome/Application/chrome.exe`,`/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe`]}})),H(Q,`brave`,()=>Z({darwin:`brave browser`,win32:`brave`,linux:[`brave-browser`,`brave`]},{wsl:{ia32:`/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe`,x64:[`/mnt/c/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe`,`/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe`]}})),H(Q,`firefox`,()=>Z({darwin:`firefox`,win32:String.raw`C:\Program Files\Mozilla Firefox\firefox.exe`,linux:`firefox`},{wsl:`/mnt/c/Program Files/Mozilla Firefox/firefox.exe`})),H(Q,`edge`,()=>Z({darwin:`microsoft edge`,win32:`msedge`,linux:[`microsoft-edge`,`microsoft-edge-dev`]},{wsl:`/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe`})),H(Q,`browser`,()=>`browser`),H(Q,`browserPrivate`,()=>`browserPrivate`);var $=Ae;async function je(e,t=void 0){try{(await $(e)).once(`error`,n=>{console.log(P.yellow(t??`Could not open the browser. Please visit the URL manually: ${e}`))})}catch{console.log(P.yellow(t??`Could not open the browser. Please visit the URL manually: ${e}`))}}export{je as openUrl,$ as open_default,P as source_default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-iXuH7AlR.cjs`);var t,n=e.__esmMin((()=>{t=typeof globalThis==`object`?globalThis:global})),r=e.__esmMin((()=>{n()})),i=e.__esmMin((()=>{r()})),a,o=e.__esmMin((()=>{a=`1.9.0`}));function s(e){var t=new Set([e]),n=new Set,r=e.match(c);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(t){return t===e};function a(e){return n.add(e),!1}function o(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;var r=e.match(c);if(!r)return a(e);var s={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};return s.prerelease!=null||i.major!==s.major?a(e):i.major===0?i.minor===s.minor&&i.patch<=s.patch?o(e):a(e):i.minor<=s.minor?o(e):a(e)}}var c,l,ee=e.__esmMin((()=>{o(),c=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,l=s(a)}));function u(e,t,n,r){r===void 0&&(r=!1);var i=m[p]=m[p]??{version:a};if(!r&&i[e]){var o=Error(`@opentelemetry/api: Attempted duplicate registration of API: `+e);return n.error(o.stack||o.message),!1}if(i.version!==a){var o=Error(`@opentelemetry/api: Registration of version v`+i.version+` for `+e+` does not match previously registered API v`+a);return n.error(o.stack||o.message),!1}return i[e]=t,n.debug(`@opentelemetry/api: Registered a global for `+e+` v`+a+`.`),!0}function d(e){var t=m[p]?.version;if(!(!t||!l(t)))return m[p]?.[e]}function f(e,t){t.debug(`@opentelemetry/api: Unregistering a global for `+e+` v`+a+`.`);var n=m[p];n&&delete n[e]}var te,p,m,h=e.__esmMin((()=>{i(),o(),ee(),te=a.split(`.`)[0],p=Symbol.for(`opentelemetry.js.api.`+te),m=t}));function g(e,t,n){var r=d(`diag`);if(r)return n.unshift(t),r[e].apply(r,re([],ne(n),!1))}var ne,re,ie,ae=e.__esmMin((()=>{h(),ne=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},re=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},ie=function(){function e(e){this._namespace=e.namespace||`DiagComponentLogger`}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return g(`debug`,this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return g(`error`,this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return g(`info`,this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return g(`warn`,this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return g(`verbose`,this._namespace,e)},e}()})),_,v=e.__esmMin((()=>{(function(e){e[e.NONE=0]=`NONE`,e[e.ERROR=30]=`ERROR`,e[e.WARN=50]=`WARN`,e[e.INFO=60]=`INFO`,e[e.DEBUG=70]=`DEBUG`,e[e.VERBOSE=80]=`VERBOSE`,e[e.ALL=9999]=`ALL`})(_||={})}));function oe(e,t){e<_.NONE?e=_.NONE:e>_.ALL&&(e=_.ALL),t||={};function n(n,r){var i=t[n];return typeof i==`function`&&e>=r?i.bind(t):function(){}}return{error:n(`error`,_.ERROR),warn:n(`warn`,_.WARN),info:n(`info`,_.INFO),debug:n(`debug`,_.DEBUG),verbose:n(`verbose`,_.VERBOSE)}}var se=e.__esmMin((()=>{v()})),ce,le,ue,y,b=e.__esmMin((()=>{ae(),se(),v(),h(),ce=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},le=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},ue=`diag`,y=function(){function e(){function e(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=d(`diag`);if(r)return r[e].apply(r,le([],ce(t),!1))}}var t=this;t.setLogger=function(e,n){if(n===void 0&&(n={logLevel:_.INFO}),e===t){var r=Error(`Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation`);return t.error(r.stack??r.message),!1}typeof n==`number`&&(n={logLevel:n});var i=d(`diag`),a=oe(n.logLevel??_.INFO,e);if(i&&!n.suppressOverrideMessage){var o=Error().stack??`<failed to generate stacktrace>`;i.warn(`Current logger will be overwritten from `+o),a.warn(`Current logger will overwrite one already registered from `+o)}return u(`diag`,a,t,!0)},t.disable=function(){f(ue,t)},t.createComponentLogger=function(e){return new ie(e)},t.verbose=e(`verbose`),t.debug=e(`debug`),t.info=e(`info`),t.warn=e(`warn`),t.error=e(`error`)}return e.instance=function(){return this._instance||=new e,this._instance},e}()})),de,fe,pe,me=e.__esmMin((()=>{de=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},fe=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},pe=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var t=de(e,2),n=t[0],r=t[1];return[n,r]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=new e(this._entries);try{for(var o=fe(r),s=o.next();!s.done;s=o.next()){var c=s.value;a._entries.delete(c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return a},e.prototype.clear=function(){return new e},e}()})),he,ge=e.__esmMin((()=>{he=Symbol(`BaggageEntryMetadata`)}));function _e(e){return e===void 0&&(e={}),new pe(new Map(Object.entries(e)))}function ve(e){return typeof e!=`string`&&(ye.error(`Cannot create baggage metadata from unknown type: `+typeof e),e=``),{__TYPE__:he,toString:function(){return e}}}var ye,be=e.__esmMin((()=>{b(),me(),ge(),ye=y.instance()}));function x(e){return Symbol.for(e)}var xe,Se,S=e.__esmMin((()=>{xe=function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(e){return n._currentContext.get(e)},n.setValue=function(t,r){var i=new e(n._currentContext);return i._currentContext.set(t,r),i},n.deleteValue=function(t){var r=new e(n._currentContext);return r._currentContext.delete(t),r}}return e}(),Se=new xe})),C,Ce,we=e.__esmMin((()=>{C=[{n:`error`,c:`error`},{n:`warn`,c:`warn`},{n:`info`,c:`info`},{n:`debug`,c:`debug`},{n:`verbose`,c:`trace`}],Ce=function(){function e(){function e(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(console){var r=console[e];if(typeof r!=`function`&&(r=console.log),typeof r==`function`)return r.apply(console,t)}}}for(var t=0;t<C.length;t++)this[C[t].n]=e(C[t].c)}return e}()}));function Te(){return D}var w,Ee,T,De,Oe,ke,Ae,E,je,Me,Ne,D,Pe,Fe,Ie,Le,Re,ze,Be,Ve=e.__esmMin((()=>{w=(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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),Ee=function(){function e(){}return e.prototype.createGauge=function(e,t){return Fe},e.prototype.createHistogram=function(e,t){return Ie},e.prototype.createCounter=function(e,t){return Pe},e.prototype.createUpDownCounter=function(e,t){return Le},e.prototype.createObservableGauge=function(e,t){return ze},e.prototype.createObservableCounter=function(e,t){return Re},e.prototype.createObservableUpDownCounter=function(e,t){return Be},e.prototype.addBatchObservableCallback=function(e,t){},e.prototype.removeBatchObservableCallback=function(e){},e}(),T=function(){function e(){}return e}(),De=function(e){w(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(e,t){},t}(T),Oe=function(e){w(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(e,t){},t}(T),ke=function(e){w(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(e,t){},t}(T),Ae=function(e){w(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(e,t){},t}(T),E=function(){function e(){}return e.prototype.addCallback=function(e){},e.prototype.removeCallback=function(e){},e}(),je=function(e){w(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(E),Me=function(e){w(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(E),Ne=function(e){w(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(E),D=new Ee,Pe=new De,Fe=new ke,Ie=new Ae,Le=new Oe,Re=new je,ze=new Me,Be=new Ne})),He,Ue=e.__esmMin((()=>{(function(e){e[e.INT=0]=`INT`,e[e.DOUBLE=1]=`DOUBLE`})(He||={})})),O,k,We=e.__esmMin((()=>{O={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},k={set:function(e,t,n){e!=null&&(e[t]=n)}}})),Ge,Ke,qe,Je=e.__esmMin((()=>{S(),Ge=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},Ke=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},qe=function(){function e(){}return e.prototype.active=function(){return Se},e.prototype.with=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];return t.call.apply(t,Ke([n],Ge(r),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}()})),Ye,Xe,A,Ze,j,M=e.__esmMin((()=>{Je(),h(),b(),Ye=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},Xe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},A=`context`,Ze=new qe,j=function(){function e(){}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalContextManager=function(e){return u(A,e,y.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,n){for(var r,i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return(r=this._getContextManager()).with.apply(r,Xe([e,t,n],Ye(i),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return d(A)||Ze},e.prototype.disable=function(){this._getContextManager().disable(),f(A,y.instance())},e}()})),N,Qe=e.__esmMin((()=>{(function(e){e[e.NONE=0]=`NONE`,e[e.SAMPLED=1]=`SAMPLED`})(N||={})})),P,F,$e,et=e.__esmMin((()=>{Qe(),P=`0000000000000000`,F=`00000000000000000000000000000000`,$e={traceId:F,spanId:P,traceFlags:N.NONE}})),I,tt=e.__esmMin((()=>{et(),I=function(){function e(e){e===void 0&&(e=$e),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.addLink=function(e){return this},e.prototype.addLinks=function(e){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}()}));function nt(e){return e.getValue(L)||void 0}function rt(){return nt(j.getInstance().active())}function it(e,t){return e.setValue(L,t)}function at(e){return e.deleteValue(L)}function ot(e,t){return it(e,new I(t))}function st(e){return nt(e)?.spanContext()}var L,ct=e.__esmMin((()=>{S(),tt(),M(),L=x(`OpenTelemetry Context Key SPAN`)}));function lt(e){return ft.test(e)&&e!==F}function ut(e){return pt.test(e)&&e!==P}function R(e){return lt(e.traceId)&&ut(e.spanId)}function dt(e){return new I(e)}var ft,pt,z=e.__esmMin((()=>{et(),tt(),ft=/^([0-9a-f]{32})$/i,pt=/^[0-9a-f]{16}$/i}));function mt(e){return typeof e==`object`&&typeof e.spanId==`string`&&typeof e.traceId==`string`&&typeof e.traceFlags==`number`}var B,V,ht=e.__esmMin((()=>{M(),ct(),tt(),z(),B=j.getInstance(),V=function(){function e(){}return e.prototype.startSpan=function(e,t,n){if(n===void 0&&(n=B.active()),t?.root)return new I;var r=n&&st(n);return mt(r)&&R(r)?new I(r):new I},e.prototype.startActiveSpan=function(e,t,n,r){var i,a,o;if(!(arguments.length<2)){arguments.length===2?o=t:arguments.length===3?(i=t,o=n):(i=t,a=n,o=r);var s=a??B.active(),c=this.startSpan(e,i,s),l=it(s,c);return B.with(l,o,void 0,c)}},e}()})),gt,H,_t=e.__esmMin((()=>{ht(),gt=new V,H=function(){function e(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,r){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):gt},e}()})),vt,yt=e.__esmMin((()=>{ht(),vt=function(){function e(){}return e.prototype.getTracer=function(e,t,n){return new V},e}()})),bt,U,xt=e.__esmMin((()=>{_t(),yt(),bt=new vt,U=function(){function e(){}return e.prototype.getTracer=function(e,t,n){return this.getDelegateTracer(e,t,n)??new H(this,e,t,n)},e.prototype.getDelegate=function(){return this._delegate??bt},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,n){return this._delegate?.getTracer(e,t,n)},e}()})),St,Ct=e.__esmMin((()=>{(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(St||={})})),wt,Tt=e.__esmMin((()=>{(function(e){e[e.INTERNAL=0]=`INTERNAL`,e[e.SERVER=1]=`SERVER`,e[e.CLIENT=2]=`CLIENT`,e[e.PRODUCER=3]=`PRODUCER`,e[e.CONSUMER=4]=`CONSUMER`})(wt||={})})),W,Et=e.__esmMin((()=>{(function(e){e[e.UNSET=0]=`UNSET`,e[e.OK=1]=`OK`,e[e.ERROR=2]=`ERROR`})(W||={})}));function Dt(e){return jt.test(e)}function Ot(e){return Mt.test(e)&&!Nt.test(e)}var G,kt,At,jt,Mt,Nt,Pt=e.__esmMin((()=>{G=`[_0-9a-z-*/]`,kt=`[a-z]`+G+`{0,255}`,At=`[a-z0-9]`+G+`{0,240}@[a-z]`+G+`{0,13}`,jt=RegExp(`^(?:`+kt+`|`+At+`)$`),Mt=/^[ -~]{0,255}[!-~]$/,Nt=/,|=/})),K,Ft,q,It,Lt,Rt=e.__esmMin((()=>{Pt(),K=32,Ft=512,q=`,`,It=`=`,Lt=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,n){return t.push(n+It+e.get(n)),t},[]).join(q)},e.prototype._parse=function(e){e.length>Ft||(this._internalState=e.split(q).reverse().reduce(function(e,t){var n=t.trim(),r=n.indexOf(It);if(r!==-1){var i=n.slice(0,r),a=n.slice(r+1,t.length);Dt(i)&&Ot(a)&&e.set(i,a)}return e},new Map),this._internalState.size>K&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,K))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}()}));function zt(e){return new Lt(e)}var Bt=e.__esmMin((()=>{Rt()})),Vt,Ht=e.__esmMin((()=>{M(),Vt=j.getInstance()})),J,Ut=e.__esmMin((()=>{b(),J=y.instance()})),Wt,Gt,Kt=e.__esmMin((()=>{Ve(),Wt=function(){function e(){}return e.prototype.getMeter=function(e,t,n){return D},e}(),Gt=new Wt})),Y,qt,Jt=e.__esmMin((()=>{Kt(),h(),b(),Y=`metrics`,qt=function(){function e(){}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalMeterProvider=function(e){return u(Y,e,y.instance())},e.prototype.getMeterProvider=function(){return d(Y)||Gt},e.prototype.getMeter=function(e,t,n){return this.getMeterProvider().getMeter(e,t,n)},e.prototype.disable=function(){f(Y,y.instance())},e}()})),Yt,Xt=e.__esmMin((()=>{Jt(),Yt=qt.getInstance()})),Zt,Qt=e.__esmMin((()=>{Zt=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}()}));function $t(e){return e.getValue(X)||void 0}function en(){return $t(j.getInstance().active())}function tn(e,t){return e.setValue(X,t)}function nn(e){return e.deleteValue(X)}var X,rn=e.__esmMin((()=>{M(),S(),X=x(`OpenTelemetry Baggage Key`)})),Z,an,on,sn=e.__esmMin((()=>{h(),Qt(),We(),rn(),be(),b(),Z=`propagation`,an=new Zt,on=function(){function e(){this.createBaggage=_e,this.getBaggage=$t,this.getActiveBaggage=en,this.setBaggage=tn,this.deleteBaggage=nn}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalPropagator=function(e){return u(Z,e,y.instance())},e.prototype.inject=function(e,t,n){return n===void 0&&(n=k),this._getGlobalPropagator().inject(e,t,n)},e.prototype.extract=function(e,t,n){return n===void 0&&(n=O),this._getGlobalPropagator().extract(e,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){f(Z,y.instance())},e.prototype._getGlobalPropagator=function(){return d(Z)||an},e}()})),cn,ln=e.__esmMin((()=>{sn(),cn=on.getInstance()})),Q,un,dn=e.__esmMin((()=>{h(),xt(),z(),ct(),b(),Q=`trace`,un=function(){function e(){this._proxyTracerProvider=new U,this.wrapSpanContext=dt,this.isSpanContextValid=R,this.deleteSpan=at,this.getSpan=nt,this.getActiveSpan=rt,this.getSpanContext=st,this.setSpan=it,this.setSpanContext=ot}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=u(Q,this._proxyTracerProvider,y.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return d(Q)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){f(Q,y.instance()),this._proxyTracerProvider=new U},e}()})),$,fn=e.__esmMin((()=>{dn(),$=un.getInstance()})),pn=e.__export({DiagConsoleLogger:()=>Ce,DiagLogLevel:()=>_,INVALID_SPANID:()=>P,INVALID_SPAN_CONTEXT:()=>$e,INVALID_TRACEID:()=>F,ProxyTracer:()=>H,ProxyTracerProvider:()=>U,ROOT_CONTEXT:()=>Se,SamplingDecision:()=>St,SpanKind:()=>wt,SpanStatusCode:()=>W,TraceFlags:()=>N,ValueType:()=>He,baggageEntryMetadataFromString:()=>ve,context:()=>Vt,createContextKey:()=>x,createNoopMeter:()=>Te,createTraceState:()=>zt,default:()=>mn,defaultTextMapGetter:()=>O,defaultTextMapSetter:()=>k,diag:()=>J,isSpanContextValid:()=>R,isValidSpanId:()=>ut,isValidTraceId:()=>lt,metrics:()=>Yt,propagation:()=>cn,trace:()=>$}),mn,hn=e.__esmMin((()=>{be(),S(),we(),v(),Ve(),Ue(),We(),_t(),xt(),Ct(),Tt(),Et(),Qe(),Bt(),z(),et(),Ht(),Ut(),Xt(),ln(),fn(),mn={context:Vt,diag:J,metrics:Yt,propagation:cn,trace:$}}));Object.defineProperty(exports,`SpanStatusCode`,{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,`diag`,{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,`esm_exports`,{enumerable:!0,get:function(){return pn}}),Object.defineProperty(exports,`init_esm`,{enumerable:!0,get:function(){return hn}}),Object.defineProperty(exports,`trace`,{enumerable:!0,get:function(){return $}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__esmMin as e,__export as t}from"./chunk-D9KrCrVq.js";var n,r=e((()=>{n=typeof globalThis==`object`?globalThis:global})),i=e((()=>{r()})),a=e((()=>{i()})),o,s=e((()=>{o=`1.9.0`}));function c(e){var t=new Set([e]),n=new Set,r=e.match(l);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(t){return t===e};function a(e){return n.add(e),!1}function o(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;var r=e.match(l);if(!r)return a(e);var s={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};return s.prerelease!=null||i.major!==s.major?a(e):i.major===0?i.minor===s.minor&&i.patch<=s.patch?o(e):a(e):i.minor<=s.minor?o(e):a(e)}}var l,ee,te=e((()=>{s(),l=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,ee=c(o)}));function u(e,t,n,r){r===void 0&&(r=!1);var i=m[p]=m[p]??{version:o};if(!r&&i[e]){var a=Error(`@opentelemetry/api: Attempted duplicate registration of API: `+e);return n.error(a.stack||a.message),!1}if(i.version!==o){var a=Error(`@opentelemetry/api: Registration of version v`+i.version+` for `+e+` does not match previously registered API v`+o);return n.error(a.stack||a.message),!1}return i[e]=t,n.debug(`@opentelemetry/api: Registered a global for `+e+` v`+o+`.`),!0}function d(e){var t=m[p]?.version;if(!(!t||!ee(t)))return m[p]?.[e]}function f(e,t){t.debug(`@opentelemetry/api: Unregistering a global for `+e+` v`+o+`.`);var n=m[p];n&&delete n[e]}var ne,p,m,h=e((()=>{a(),s(),te(),ne=o.split(`.`)[0],p=Symbol.for(`opentelemetry.js.api.`+ne),m=n}));function g(e,t,n){var r=d(`diag`);if(r)return n.unshift(t),r[e].apply(r,ie([],re(n),!1))}var re,ie,ae,oe=e((()=>{h(),re=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},ie=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},ae=function(){function e(e){this._namespace=e.namespace||`DiagComponentLogger`}return e.prototype.debug=function(){var e=[...arguments];return g(`debug`,this._namespace,e)},e.prototype.error=function(){var e=[...arguments];return g(`error`,this._namespace,e)},e.prototype.info=function(){var e=[...arguments];return g(`info`,this._namespace,e)},e.prototype.warn=function(){var e=[...arguments];return g(`warn`,this._namespace,e)},e.prototype.verbose=function(){var e=[...arguments];return g(`verbose`,this._namespace,e)},e}()})),_,v=e((()=>{(function(e){e[e.NONE=0]=`NONE`,e[e.ERROR=30]=`ERROR`,e[e.WARN=50]=`WARN`,e[e.INFO=60]=`INFO`,e[e.DEBUG=70]=`DEBUG`,e[e.VERBOSE=80]=`VERBOSE`,e[e.ALL=9999]=`ALL`})(_||={})}));function se(e,t){e<_.NONE?e=_.NONE:e>_.ALL&&(e=_.ALL),t||={};function n(n,r){var i=t[n];return typeof i==`function`&&e>=r?i.bind(t):function(){}}return{error:n(`error`,_.ERROR),warn:n(`warn`,_.WARN),info:n(`info`,_.INFO),debug:n(`debug`,_.DEBUG),verbose:n(`verbose`,_.VERBOSE)}}var ce=e((()=>{v()})),le,ue,de,y,b=e((()=>{oe(),ce(),v(),h(),le=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},ue=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},de=`diag`,y=function(){function e(){function e(e){return function(){var t=[...arguments],n=d(`diag`);if(n)return n[e].apply(n,ue([],le(t),!1))}}var t=this;t.setLogger=function(e,n){if(n===void 0&&(n={logLevel:_.INFO}),e===t){var r=Error(`Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation`);return t.error(r.stack??r.message),!1}typeof n==`number`&&(n={logLevel:n});var i=d(`diag`),a=se(n.logLevel??_.INFO,e);if(i&&!n.suppressOverrideMessage){var o=Error().stack??`<failed to generate stacktrace>`;i.warn(`Current logger will be overwritten from `+o),a.warn(`Current logger will overwrite one already registered from `+o)}return u(`diag`,a,t,!0)},t.disable=function(){f(de,t)},t.createComponentLogger=function(e){return new ae(e)},t.verbose=e(`verbose`),t.debug=e(`debug`),t.info=e(`info`),t.warn=e(`warn`),t.error=e(`error`)}return e.instance=function(){return this._instance||=new e,this._instance},e}()})),fe,pe,me,he=e((()=>{fe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},pe=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},me=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var t=fe(e,2),n=t[0],r=t[1];return[n,r]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=new e(this._entries);try{for(var o=pe(r),s=o.next();!s.done;s=o.next()){var c=s.value;a._entries.delete(c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return a},e.prototype.clear=function(){return new e},e}()})),ge,_e=e((()=>{ge=Symbol(`BaggageEntryMetadata`)}));function ve(e){return e===void 0&&(e={}),new me(new Map(Object.entries(e)))}function ye(e){return typeof e!=`string`&&(be.error(`Cannot create baggage metadata from unknown type: `+typeof e),e=``),{__TYPE__:ge,toString:function(){return e}}}var be,xe=e((()=>{b(),he(),_e(),be=y.instance()}));function Se(e){return Symbol.for(e)}var Ce,x,S=e((()=>{Ce=function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(e){return n._currentContext.get(e)},n.setValue=function(t,r){var i=new e(n._currentContext);return i._currentContext.set(t,r),i},n.deleteValue=function(t){var r=new e(n._currentContext);return r._currentContext.delete(t),r}}return e}(),x=new Ce})),C,we,Te=e((()=>{C=[{n:`error`,c:`error`},{n:`warn`,c:`warn`},{n:`info`,c:`info`},{n:`debug`,c:`debug`},{n:`verbose`,c:`trace`}],we=function(){function e(){function e(e){return function(){var t=[...arguments];if(console){var n=console[e];if(typeof n!=`function`&&(n=console.log),typeof n==`function`)return n.apply(console,t)}}}for(var t=0;t<C.length;t++)this[C[t].n]=e(C[t].c)}return e}()}));function Ee(){return D}var w,De,T,Oe,ke,Ae,je,E,Me,Ne,Pe,D,Fe,Ie,Le,Re,ze,Be,Ve,He=e((()=>{w=(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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),De=function(){function e(){}return e.prototype.createGauge=function(e,t){return Ie},e.prototype.createHistogram=function(e,t){return Le},e.prototype.createCounter=function(e,t){return Fe},e.prototype.createUpDownCounter=function(e,t){return Re},e.prototype.createObservableGauge=function(e,t){return Be},e.prototype.createObservableCounter=function(e,t){return ze},e.prototype.createObservableUpDownCounter=function(e,t){return Ve},e.prototype.addBatchObservableCallback=function(e,t){},e.prototype.removeBatchObservableCallback=function(e){},e}(),T=function(){function e(){}return e}(),Oe=function(e){w(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(e,t){},t}(T),ke=function(e){w(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(e,t){},t}(T),Ae=function(e){w(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(e,t){},t}(T),je=function(e){w(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(e,t){},t}(T),E=function(){function e(){}return e.prototype.addCallback=function(e){},e.prototype.removeCallback=function(e){},e}(),Me=function(e){w(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(E),Ne=function(e){w(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(E),Pe=function(e){w(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(E),D=new De,Fe=new Oe,Ie=new Ae,Le=new je,Re=new ke,ze=new Me,Be=new Ne,Ve=new Pe})),Ue,We=e((()=>{(function(e){e[e.INT=0]=`INT`,e[e.DOUBLE=1]=`DOUBLE`})(Ue||={})})),O,k,Ge=e((()=>{O={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},k={set:function(e,t,n){e!=null&&(e[t]=n)}}})),Ke,qe,Je,Ye=e((()=>{S(),Ke=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},qe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},Je=function(){function e(){}return e.prototype.active=function(){return x},e.prototype.with=function(e,t,n){var r=[...arguments].slice(3);return t.call.apply(t,qe([n],Ke(r),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}()})),Xe,Ze,A,Qe,j,M=e((()=>{Ye(),h(),b(),Xe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},Ze=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},A=`context`,Qe=new Je,j=function(){function e(){}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalContextManager=function(e){return u(A,e,y.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,n){for(var r,i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return(r=this._getContextManager()).with.apply(r,Ze([e,t,n],Xe(i),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return d(A)||Qe},e.prototype.disable=function(){this._getContextManager().disable(),f(A,y.instance())},e}()})),N,$e=e((()=>{(function(e){e[e.NONE=0]=`NONE`,e[e.SAMPLED=1]=`SAMPLED`})(N||={})})),P,F,I,L=e((()=>{$e(),P=`0000000000000000`,F=`00000000000000000000000000000000`,I={traceId:F,spanId:P,traceFlags:N.NONE}})),R,z=e((()=>{L(),R=function(){function e(e){e===void 0&&(e=I),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.addLink=function(e){return this},e.prototype.addLinks=function(e){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}()}));function B(e){return e.getValue(H)||void 0}function et(){return B(j.getInstance().active())}function V(e,t){return e.setValue(H,t)}function tt(e){return e.deleteValue(H)}function nt(e,t){return V(e,new R(t))}function rt(e){return B(e)?.spanContext()}var H,it=e((()=>{S(),z(),M(),H=Se(`OpenTelemetry Context Key SPAN`)}));function at(e){return lt.test(e)&&e!==F}function ot(e){return ut.test(e)&&e!==P}function st(e){return at(e.traceId)&&ot(e.spanId)}function ct(e){return new R(e)}var lt,ut,dt=e((()=>{L(),z(),lt=/^([0-9a-f]{32})$/i,ut=/^[0-9a-f]{16}$/i}));function ft(e){return typeof e==`object`&&typeof e.spanId==`string`&&typeof e.traceId==`string`&&typeof e.traceFlags==`number`}var U,pt,mt=e((()=>{M(),it(),z(),dt(),U=j.getInstance(),pt=function(){function e(){}return e.prototype.startSpan=function(e,t,n){if(n===void 0&&(n=U.active()),t?.root)return new R;var r=n&&rt(n);return ft(r)&&st(r)?new R(r):new R},e.prototype.startActiveSpan=function(e,t,n,r){var i,a,o;if(!(arguments.length<2)){arguments.length===2?o=t:arguments.length===3?(i=t,o=n):(i=t,a=n,o=r);var s=a??U.active(),c=this.startSpan(e,i,s),l=V(s,c);return U.with(l,o,void 0,c)}},e}()})),ht,gt,_t=e((()=>{mt(),ht=new pt,gt=function(){function e(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,r){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):ht},e}()})),vt,yt=e((()=>{mt(),vt=function(){function e(){}return e.prototype.getTracer=function(e,t,n){return new pt},e}()})),bt,W,xt=e((()=>{_t(),yt(),bt=new vt,W=function(){function e(){}return e.prototype.getTracer=function(e,t,n){return this.getDelegateTracer(e,t,n)??new gt(this,e,t,n)},e.prototype.getDelegate=function(){return this._delegate??bt},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,n){return this._delegate?.getTracer(e,t,n)},e}()})),St,Ct=e((()=>{(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(St||={})})),wt,Tt=e((()=>{(function(e){e[e.INTERNAL=0]=`INTERNAL`,e[e.SERVER=1]=`SERVER`,e[e.CLIENT=2]=`CLIENT`,e[e.PRODUCER=3]=`PRODUCER`,e[e.CONSUMER=4]=`CONSUMER`})(wt||={})})),Et,Dt=e((()=>{(function(e){e[e.UNSET=0]=`UNSET`,e[e.OK=1]=`OK`,e[e.ERROR=2]=`ERROR`})(Et||={})}));function Ot(e){return Mt.test(e)}function kt(e){return Nt.test(e)&&!Pt.test(e)}var G,At,jt,Mt,Nt,Pt,Ft=e((()=>{G=`[_0-9a-z-*/]`,At=`[a-z]`+G+`{0,255}`,jt=`[a-z0-9]`+G+`{0,240}@[a-z]`+G+`{0,13}`,Mt=RegExp(`^(?:`+At+`|`+jt+`)$`),Nt=/^[ -~]{0,255}[!-~]$/,Pt=/,|=/})),It,Lt,Rt,zt,Bt,Vt=e((()=>{Ft(),It=32,Lt=512,Rt=`,`,zt=`=`,Bt=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,n){return t.push(n+zt+e.get(n)),t},[]).join(Rt)},e.prototype._parse=function(e){e.length>Lt||(this._internalState=e.split(Rt).reverse().reduce(function(e,t){var n=t.trim(),r=n.indexOf(zt);if(r!==-1){var i=n.slice(0,r),a=n.slice(r+1,t.length);Ot(i)&&kt(a)&&e.set(i,a)}return e},new Map),this._internalState.size>It&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,It))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}()}));function Ht(e){return new Bt(e)}var Ut=e((()=>{Vt()})),Wt,Gt=e((()=>{M(),Wt=j.getInstance()})),K,Kt=e((()=>{b(),K=y.instance()})),qt,Jt,Yt=e((()=>{He(),qt=function(){function e(){}return e.prototype.getMeter=function(e,t,n){return D},e}(),Jt=new qt})),q,Xt,Zt=e((()=>{Yt(),h(),b(),q=`metrics`,Xt=function(){function e(){}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalMeterProvider=function(e){return u(q,e,y.instance())},e.prototype.getMeterProvider=function(){return d(q)||Jt},e.prototype.getMeter=function(e,t,n){return this.getMeterProvider().getMeter(e,t,n)},e.prototype.disable=function(){f(q,y.instance())},e}()})),J,Qt=e((()=>{Zt(),J=Xt.getInstance()})),$t,en=e((()=>{$t=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}()}));function tn(e){return e.getValue(Y)||void 0}function nn(){return tn(j.getInstance().active())}function rn(e,t){return e.setValue(Y,t)}function an(e){return e.deleteValue(Y)}var Y,on=e((()=>{M(),S(),Y=Se(`OpenTelemetry Baggage Key`)})),X,sn,cn,ln=e((()=>{h(),en(),Ge(),on(),xe(),b(),X=`propagation`,sn=new $t,cn=function(){function e(){this.createBaggage=ve,this.getBaggage=tn,this.getActiveBaggage=nn,this.setBaggage=rn,this.deleteBaggage=an}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalPropagator=function(e){return u(X,e,y.instance())},e.prototype.inject=function(e,t,n){return n===void 0&&(n=k),this._getGlobalPropagator().inject(e,t,n)},e.prototype.extract=function(e,t,n){return n===void 0&&(n=O),this._getGlobalPropagator().extract(e,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){f(X,y.instance())},e.prototype._getGlobalPropagator=function(){return d(X)||sn},e}()})),Z,un=e((()=>{ln(),Z=cn.getInstance()})),Q,dn,fn=e((()=>{h(),xt(),dt(),it(),b(),Q=`trace`,dn=function(){function e(){this._proxyTracerProvider=new W,this.wrapSpanContext=ct,this.isSpanContextValid=st,this.deleteSpan=tt,this.getSpan=B,this.getActiveSpan=et,this.getSpanContext=rt,this.setSpan=V,this.setSpanContext=nt}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=u(Q,this._proxyTracerProvider,y.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return d(Q)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){f(Q,y.instance()),this._proxyTracerProvider=new W},e}()})),$,pn=e((()=>{fn(),$=dn.getInstance()})),mn=t({DiagConsoleLogger:()=>we,DiagLogLevel:()=>_,INVALID_SPANID:()=>P,INVALID_SPAN_CONTEXT:()=>I,INVALID_TRACEID:()=>F,ProxyTracer:()=>gt,ProxyTracerProvider:()=>W,ROOT_CONTEXT:()=>x,SamplingDecision:()=>St,SpanKind:()=>wt,SpanStatusCode:()=>Et,TraceFlags:()=>N,ValueType:()=>Ue,baggageEntryMetadataFromString:()=>ye,context:()=>Wt,createContextKey:()=>Se,createNoopMeter:()=>Ee,createTraceState:()=>Ht,default:()=>hn,defaultTextMapGetter:()=>O,defaultTextMapSetter:()=>k,diag:()=>K,isSpanContextValid:()=>st,isValidSpanId:()=>ot,isValidTraceId:()=>at,metrics:()=>J,propagation:()=>Z,trace:()=>$}),hn,gn=e((()=>{xe(),S(),Te(),v(),He(),We(),Ge(),_t(),xt(),Ct(),Tt(),Dt(),$e(),Ut(),dt(),L(),Gt(),Kt(),Qt(),un(),pn(),hn={context:Wt,diag:K,metrics:J,propagation:Z,trace:$}}));export{Et as SpanStatusCode,K as diag,mn as esm_exports,gn as init_esm,$ as trace};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__require as t,__toCommonJS as n}from"./chunk-D9KrCrVq.js";import{esm_exports as r,init_esm as i}from"./esm-CbZfjZBn.js";import{require_execAsync as a}from"./execAsync-CY8juV7n.js";var o=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let o=t(`fs`),s=a(),c=(i(),n(r));async function l(){try{return(await o.promises.readFile(`/etc/hostid`,{encoding:`utf8`})).trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}try{return(await(0,s.execAsync)(`kenv -q smbios.system.uuid`)).stdout.trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}e.getMachineId=l}));export default o();export{};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__toCommonJS as t}from"./chunk-D9KrCrVq.js";import{esm_exports as n,init_esm as r}from"./esm-CbZfjZBn.js";import{require_execAsync as i}from"./execAsync-CY8juV7n.js";var a=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let a=i(),o=(r(),t(n));async function s(){try{let e=(await(0,a.execAsync)(`ioreg -rd1 -c "IOPlatformExpertDevice"`)).stdout.split(`
|
|
2
|
-
`).find(e=>e.includes(`IOPlatformUUID`));if(!e)return;let t=e.split(`" = "`);if(t.length===2)return t[1].slice(0,-1)}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}e.getMachineId=s}));export default a();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__require as t,__toCommonJS as n}from"./chunk-D9KrCrVq.js";import{esm_exports as r,init_esm as i}from"./esm-CbZfjZBn.js";var a=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let a=t(`fs`),o=(i(),n(r));async function s(){for(let e of[`/etc/machine-id`,`/var/lib/dbus/machine-id`])try{return(await a.promises.readFile(e,{encoding:`utf8`})).trim()}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}e.getMachineId=s}));export default a();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__toCommonJS as t}from"./chunk-D9KrCrVq.js";import{esm_exports as n,init_esm as r}from"./esm-CbZfjZBn.js";var i=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let i=(r(),t(n));async function a(){i.diag.debug(`could not read machine-id: unsupported platform`)}e.getMachineId=a}));export default i();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJSMin as e,__require as t,__toCommonJS as n}from"./chunk-D9KrCrVq.js";import{esm_exports as r,init_esm as i}from"./esm-CbZfjZBn.js";import{require_execAsync as a}from"./execAsync-CY8juV7n.js";var o=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let o=t(`process`),s=a(),c=(i(),n(r));async function l(){let e=`%windir%\\System32\\REG.exe`;o.arch===`ia32`&&`PROCESSOR_ARCHITEW6432`in o.env&&(e=`%windir%\\sysnative\\cmd.exe /c `+e);try{let t=(await(0,s.execAsync)(`${e} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split(`REG_SZ`);if(t.length===2)return t[1].trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}e.getMachineId=l}));export default o();export{};
|