@langgenius/syncless-darwin-arm64 0.0.16 → 0.0.17
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/package.json +1 -1
- package/payload/.env +1 -1
- package/payload/dist/cli.js +134 -71
- package/payload/dist/{devtools-uqpz439S.js → devtools-CA2oRalS.js} +2 -2
- package/payload/dist/{esm-DcZNWkvb.js → esm-ff0QswHQ.js} +2 -2
- package/payload/dist/{execAsync-BZAWwuvf.js → execAsync-BbPoEBLY.js} +2 -2
- package/payload/dist/{execAsync-D2zcCRHg.js → execAsync-C1C2Dhr5.js} +2 -2
- package/payload/dist/{execAsync-D_3X02jS.js → execAsync-DgGRALCR.js} +2 -2
- package/payload/dist/{execAsync-B57lajYt.js → execAsync-YfbJtIiI.js} +2 -2
- package/payload/dist/execAsync-ZBi_Rp_8.js +4 -0
- package/payload/dist/{getMachineId-bsd-BrlN6PEO.js → getMachineId-bsd-B7IJldTE.js} +3 -3
- package/payload/dist/{getMachineId-bsd-C9rTsHCB.js → getMachineId-bsd-BOF4R-5b.js} +3 -3
- package/payload/dist/{getMachineId-bsd-CIiF5I2-.js → getMachineId-bsd-CXxDmbl-.js} +3 -3
- package/payload/dist/{getMachineId-bsd-CWysdV5q.js → getMachineId-bsd-CgdeU1_A.js} +3 -3
- package/payload/dist/getMachineId-bsd-vwRNoq3L.js +4 -0
- package/payload/dist/{getMachineId-darwin-BVHajbu-.js → getMachineId-darwin-0va0rJGP.js} +3 -3
- package/payload/dist/{getMachineId-darwin-Bh0FW8Yj.js → getMachineId-darwin-B2iRJjDk.js} +3 -3
- package/payload/dist/{getMachineId-darwin-DjZKKbMx.js → getMachineId-darwin-BqrOLIYH.js} +3 -3
- package/payload/dist/{getMachineId-darwin-L_bpBFRk.js → getMachineId-darwin-CuPOfqMl.js} +3 -3
- package/payload/dist/getMachineId-darwin-D4cnvOCq.js +5 -0
- package/payload/dist/{getMachineId-linux-6ZzpQRKs.js → getMachineId-linux-CUlAgf4p.js} +3 -3
- package/payload/dist/{getMachineId-linux-BNh9bxS-.js → getMachineId-linux-DKUhpr74.js} +3 -3
- package/payload/dist/{getMachineId-linux-DF4P4JAH.js → getMachineId-linux-DV61XOHH.js} +3 -3
- package/payload/dist/{getMachineId-linux-DtCHfcI-.js → getMachineId-linux-h3RBA30a.js} +3 -3
- package/payload/dist/getMachineId-linux-txioaRT4.js +4 -0
- package/payload/dist/{getMachineId-unsupported-BHgtlyRW.js → getMachineId-unsupported-BIk8g1NB.js} +3 -3
- package/payload/dist/{getMachineId-unsupported-BU7O02cs.js → getMachineId-unsupported-BWYkKo3b.js} +3 -3
- package/payload/dist/{getMachineId-unsupported-Ba8WKp1L.js → getMachineId-unsupported-BxJJ5c2g.js} +3 -3
- package/payload/dist/{getMachineId-unsupported-BhnsN8NZ.js → getMachineId-unsupported-DMJtgTje.js} +3 -3
- package/payload/dist/getMachineId-unsupported-DiyhtuQH.js +4 -0
- package/payload/dist/{getMachineId-win-DHX0BZr6.js → getMachineId-win-BlEG8eKR.js} +3 -3
- package/payload/dist/{getMachineId-win-Daab2wn9.js → getMachineId-win-CPwLBa-V.js} +3 -3
- package/payload/dist/{getMachineId-win-DvS6eAIQ.js → getMachineId-win-CfvwfuJg.js} +3 -3
- package/payload/dist/{getMachineId-win-IRvYdsh7.js → getMachineId-win-oAABMa4A.js} +3 -3
- package/payload/dist/getMachineId-win-qu-3Sn0c.js +4 -0
- package/payload/package.json +1 -1
- package/payload/dist/dist-Bu1YPPQW.js +0 -130
- package/payload/dist/execAsync-DzZ-O7pw.js +0 -4
- package/payload/dist/getMachineId-bsd-DngtODTf.js +0 -4
- package/payload/dist/getMachineId-darwin-j7fk-PUK.js +0 -5
- package/payload/dist/getMachineId-linux-Uf_DKcur.js +0 -4
- package/payload/dist/getMachineId-unsupported-BynWzgul.js +0 -4
- package/payload/dist/getMachineId-win-LU1p7cWS.js +0 -4
- package/payload/dist/login_cycle-Dp2pPYfl-CVoti3ri.js +0 -4
- package/payload/dist/runtime_auth_helpers-Cc-eZq6d-CRgMm6u8.js +0 -3
- package/payload/dist/runtime_auth_helpers-Cc-eZq6d-D8qQ07Ah.js +0 -4
- package/payload/dist/status-jFJKIUBU-BCgr1MV_.js +0 -4
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1dc265b4-db20-5ace-8df6-45e4ae305cff")}catch(e){}}();
|
|
3
|
-
import{a as e,t}from"./chunk-Bdh3yLIe.js";import{n,t as r}from"./esm-DcZNWkvb.js";var i=t((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMachineId=void 0;let i=(n(),e(r));async function a(){i.diag.debug(`could not read machine-id: unsupported platform`)}t.getMachineId=a}));export default i();export{};
|
|
4
|
-
//# debugId=1dc265b4-db20-5ace-8df6-45e4ae305cff
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7180bb15-fe8d-5881-87fc-9c3a542b2b8c")}catch(e){}}();
|
|
3
|
-
import{a as e,i as t,t as n}from"./chunk-Bdh3yLIe.js";import{n as r,t as i}from"./esm-DcZNWkvb.js";import{t as a}from"./execAsync-B57lajYt.js";var o=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let o=t(`process`),s=a(),c=(r(),e(i));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}`)}}n.getMachineId=l}));export default o();export{};
|
|
4
|
-
//# debugId=7180bb15-fe8d-5881-87fc-9c3a542b2b8c
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bc61a9b5-8b3f-5ef0-a16e-bd982628b009")}catch(e){}}();
|
|
3
|
-
import{t as e}from"./status-jFJKIUBU-BCgr1MV_.js";import{r as t,t as n}from"./runtime_auth_helpers-Cc-eZq6d-D8qQ07Ah.js";const r=async e=>{await new Promise(t=>{setTimeout(t,e)})},i=e=>{switch(e){case`github`:return`github`;case`google`:return`google`;case`slack`:return`slack`;case`googleWorkspace`:return`google-workspace`;default:throw Error(`EXTERNAL_AUTH_PROVIDER_REQUIRED`)}},a=e=>e===`googleWorkspace`?`sso`:`oauth`,o=(e,t)=>{switch(t){case`github`:if(!e.github)throw Error(`GITHUB_LOGIN_ADAPTER_REQUIRED`);return e.github;case`google`:if(!e.google)throw Error(`GOOGLE_LOGIN_ADAPTER_REQUIRED`);return e.google;case`slack`:if(!e.slack)throw Error(`SLACK_LOGIN_ADAPTER_REQUIRED`);return e.slack;case`googleWorkspace`:if(!e.googleWorkspace)throw Error(`GOOGLE_WORKSPACE_LOGIN_ADAPTER_REQUIRED`);return e.googleWorkspace;case`appleNative`:if(!e.appleNative)throw Error(`APPLE_NATIVE_LOGIN_ADAPTER_REQUIRED`);return e.appleNative;default:throw Error(`UNSUPPORTED_AUTH_PROVIDER`)}},s=e=>`exchangeForToken`in e,c=e=>{if(e)return{fetchImpl:e}},l=l=>({startLogin:async(u,d)=>{let f=l.useLoginCycleStore.getState();if(u===`email`){let e=d;f.patchState({email:e.email,errorMessage:null,pendingExternalAuth:null,status:e.code?`finalizing_login`:`email_requesting_code`});try{if(!e.code)return await n(l.apiBaseUrl,e.email,c(l.httpFetch)),f.patchState({status:`email_awaiting_code`}),{ok:!0};let r=await t(l.apiBaseUrl,e.email,e.code,e.preferredLanguage,c(l.httpFetch));return f.reset(),{ok:!0,token:r.token}}catch(e){return f.patchState({errorMessage:e instanceof Error?e.message:`EMAIL_LOGIN_FAILED`,status:`error`}),{ok:!1}}}let p=o(l.providers,u);f.patchState({errorMessage:null,pendingExternalAuth:null,status:`external_auth_starting`});try{let t=d;if(s(p)){f.patchState({status:`finalizing_login`});let e=await p.exchangeForToken(l.apiBaseUrl,t,c(l.httpFetch));return f.reset(),{ok:!0,token:e.token}}let n=await p.startLogin(l.apiBaseUrl,{preferredLanguage:t.preferredLanguage},c(l.httpFetch)),o={kind:a(u),provider:i(u),state:n.state};for(f.patchState({pendingExternalAuth:o,status:`external_auth_waiting`}),await l.hooks.openExternalUrl(n.authorizationUrl);;){let t=await p.requestCompletion(l.apiBaseUrl,{state:o.state},c(l.httpFetch));if(t.status===e.PENDING){await r(500);continue}if(t.status===e.EXPIRED)return f.patchState({errorMessage:`Authentication timed out`,pendingExternalAuth:null,status:`error`}),{ok:!1};if(t.status===e.ERROR){let e=typeof t.reason==`string`?t.reason:`Authentication failed`;return f.patchState({errorMessage:e,pendingExternalAuth:null,status:`error`}),{ok:!1}}return t.token?(f.patchState({status:`finalizing_login`}),f.reset(),{ok:!0,token:t.token}):(f.patchState({errorMessage:`Authentication could not be completed`,pendingExternalAuth:null,status:`error`}),{ok:!1})}}catch(e){return f.patchState({errorMessage:e instanceof Error?e.message:`EXTERNAL_LOGIN_FAILED`,pendingExternalAuth:null,status:`error`}),{ok:!1}}},reset:()=>{l.useLoginCycleStore.getState().reset()}});export{l as createLoginCycle};
|
|
4
|
-
//# debugId=bc61a9b5-8b3f-5ef0-a16e-bd982628b009
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./runtime_auth_helpers-Cc-eZq6d-D8qQ07Ah.js";export{e as resolveSessionFromToken};
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="136c28be-db31-548f-b172-cc5b0a75b963")}catch(e){}}();
|
|
3
|
-
//# debugId=136c28be-db31-548f-b172-cc5b0a75b963
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a425af77-d984-5e4e-b1bf-960643eda6e9")}catch(e){}}();
|
|
3
|
-
import{a as e,c as t,d as n,f as r}from"./dist-Bu1YPPQW.js";const i=e=>({token:e.token,expiresAt:e.session.expiresAt,updatedAt:e.session.updatedAt,userId:e.user.id,email:e.user.email,name:e.user.name,avatarUrl:e.user.image??``,onboardingCompleted:e.onboardingCompleted,projectTemplateOnboardingCompleted:e.projectTemplateOnboardingCompleted}),a=async(n,r,a)=>{let o=await t(n,{token:r},a);if(o.status===e.UNAUTHORIZED)return{status:e.UNAUTHORIZED,session:null};if(!o.session)throw Error(`GET_SESSION_BODY_REQUIRED`);return{status:e.OK,session:i(o.session)}},o=async(e,t,r)=>{await n(e,{email:t},r)},s=async(t,n,i,o,s)=>{let c=await a(t,(await r(t,{email:n,otp:i,preferredLanguage:o},s)).token,s);if(c.status!==e.OK||!c.session)throw Error(`Failed to load authenticated session`);return c.session};export{a as n,s as r,o as t};
|
|
4
|
-
//# debugId=a425af77-d984-5e4e-b1bf-960643eda6e9
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="71c86c49-fa44-5645-8818-f605c71c54c8")}catch(e){}}();
|
|
3
|
-
let e=function(e){return e.EMAIL=`email`,e.GITHUB=`github`,e.GOOGLE=`google`,e.GOOGLE_WORKSPACE=`googleWorkspace`,e.SLACK=`slack`,e.APPLE_NATIVE=`appleNative`,e}({}),t=function(e){return e.IDLE=`idle`,e.EMAIL_REQUESTING_CODE=`email_requesting_code`,e.EMAIL_AWAITING_CODE=`email_awaiting_code`,e.EXTERNAL_AUTH_STARTING=`external_auth_starting`,e.EXTERNAL_AUTH_WAITING=`external_auth_waiting`,e.FINALIZING_LOGIN=`finalizing_login`,e.ERROR=`error`,e}({}),n=function(e){return e.SIGNED_OUT=`signed_out`,e.ONLINE=`online`,e.RECONNECTING=`reconnecting`,e}({});const r={PENDING:`pending`,COMPLETED:`completed`,EXPIRED:`expired`,ERROR:`error`};r.COMPLETED,r.EXPIRED,r.ERROR;export{t as i,e as n,n as r,r as t};
|
|
4
|
-
//# debugId=71c86c49-fa44-5645-8818-f605c71c54c8
|