twenty 2.63.0 → 2.64.0

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.
Files changed (53) hide show
  1. package/dist/app-template/yarn.lock +18 -238
  2. package/dist/app-worker.cjs +1 -1
  3. package/dist/chunks/{build-source-manifest-CxHynmsg.cjs → build-source-manifest-CivM9QlD.cjs} +1 -1
  4. package/dist/chunks/{build-source-snapshot-CNYcI3lA.cjs → build-source-snapshot-BEYMotI-.cjs} +1 -1
  5. package/dist/chunks/{cli-version.constant-ol3Ctp_7.cjs → cli-version.constant-DbksYiUq.cjs} +1 -1
  6. package/dist/chunks/compile-application-translations-Bv-kC52f.cjs +58 -0
  7. package/dist/chunks/create-metadata-client-BlgP9Pvz.cjs +6 -0
  8. package/dist/chunks/{extract-source-translations-DMxAPQGT.cjs → extract-source-translations-DIA4VCMw.cjs} +1 -1
  9. package/dist/chunks/{fetch-metadata-inspection-BitnLMsU.cjs → fetch-metadata-inspection-Bg9N-xN9.cjs} +1 -1
  10. package/dist/chunks/{fetch-signed-in-identity-Chv2DXkd.cjs → fetch-signed-in-identity-4eDYfKrQ.cjs} +1 -1
  11. package/dist/chunks/{fetch-workspace-or-throw-DI5HKKWN.cjs → fetch-workspace-or-throw-DgSxIQDi.cjs} +1 -1
  12. package/dist/chunks/{get-client-generation-skip-reason-cLYKdg9t.cjs → get-client-generation-skip-reason-Ci_I89j8.cjs} +1 -1
  13. package/dist/chunks/{global-flags.constant-jbTPGUzd.cjs → global-flags.constant-Cy2IsDun.cjs} +1 -1
  14. package/dist/chunks/{is-valid-package-name-Dsoc-rVq.cjs → is-valid-package-name-CjafE459.cjs} +1 -1
  15. package/dist/chunks/pull-minimum-sdk-version.constant-lr3UTcEG.cjs +6 -0
  16. package/dist/chunks/{pull-source-BR9wkaXA.cjs → pull-source-Bw4NRNJu.cjs} +1 -1
  17. package/dist/chunks/{read-application-identifier-BFC_sHg4.cjs → read-application-identifier-B9d-Ow2J.cjs} +1 -1
  18. package/dist/chunks/{read-infer-deletion-option-CvBiu59G.cjs → read-infer-deletion-option-DWh9S1Gq.cjs} +1 -1
  19. package/dist/chunks/{record-pull-base-C97pZrKE.cjs → record-pull-base-Cr_kwKnW.cjs} +1 -1
  20. package/dist/chunks/{resolve-command-target-BcuWptbH.cjs → resolve-command-target-DN85H7eA.cjs} +1 -1
  21. package/dist/chunks/{run-app-apply-command-BFIPn04H.cjs → run-app-apply-command-mmqc1_Oo.cjs} +1 -1
  22. package/dist/chunks/{run-app-build-command-BL5z2pAy.cjs → run-app-build-command-CI4w2jD7.cjs} +1 -1
  23. package/dist/chunks/{run-app-dev-command-BcfV3DE-.cjs → run-app-dev-command-DrX-0548.cjs} +1 -1
  24. package/dist/chunks/{run-app-exec-command-C17xcKow.cjs → run-app-exec-command-BDjvtcCN.cjs} +1 -1
  25. package/dist/chunks/{run-app-generate-client-command-BV5PTy_i.cjs → run-app-generate-client-command-DW_6iosJ.cjs} +1 -1
  26. package/dist/chunks/{run-app-init-command-S9bUinGS.cjs → run-app-init-command-DezgcYp1.cjs} +1 -1
  27. package/dist/chunks/{run-app-install-command-Cq9Jobbj.cjs → run-app-install-command-DB1JjFhO.cjs} +1 -1
  28. package/dist/chunks/{run-app-operation-CuZ4m1fm.cjs → run-app-operation-BwPt2bdD.cjs} +1 -1
  29. package/dist/chunks/{run-app-plan-command-DaSA-Hil.cjs → run-app-plan-command-B2fzK_uT.cjs} +1 -1
  30. package/dist/chunks/{run-app-publish-command-2AWr5rt6.cjs → run-app-publish-command-CQsZgljP.cjs} +1 -1
  31. package/dist/chunks/{run-app-pull-command-BESAEuyX.cjs → run-app-pull-command-CEEo-CfN.cjs} +1 -1
  32. package/dist/chunks/{run-app-typecheck-command-CIFFgU2u.cjs → run-app-typecheck-command-BWE5ii7e.cjs} +1 -1
  33. package/dist/chunks/{run-app-uninstall-command-Dhfci1zL.cjs → run-app-uninstall-command-BgaBDrdk.cjs} +1 -1
  34. package/dist/chunks/{run-auth-login-command-sYroS-oN.cjs → run-auth-login-command-KO2ifeY7.cjs} +1 -1
  35. package/dist/chunks/{run-auth-status-command-DTOLTpcS.cjs → run-auth-status-command-CvGcoPtC.cjs} +1 -1
  36. package/dist/chunks/{run-cli-CtNeoYdv.cjs → run-cli-CvHrVor5.cjs} +1 -1
  37. package/dist/chunks/{run-commands-command-Df3vekbG.cjs → run-commands-command-DRrZNLVB.cjs} +1 -1
  38. package/dist/chunks/{run-data-export-command-D8bi-_eQ.cjs → run-data-export-command-Cx3kI2k_.cjs} +1 -1
  39. package/dist/chunks/{run-data-get-command-AoCO8VBs.cjs → run-data-get-command-CABKqxAv.cjs} +1 -1
  40. package/dist/chunks/{run-data-list-command-CMi1OeBV.cjs → run-data-list-command-D4hPLTvj.cjs} +1 -1
  41. package/dist/chunks/{run-doctor-command-VaRt9-ya.cjs → run-doctor-command-COB76enz.cjs} +1 -1
  42. package/dist/chunks/{run-metadata-field-describe-command-vgmY2Cjn.cjs → run-metadata-field-describe-command-8moX6Uye.cjs} +1 -1
  43. package/dist/chunks/{run-metadata-field-list-command-CVlFGJBc.cjs → run-metadata-field-list-command-BICpDnOb.cjs} +1 -1
  44. package/dist/chunks/{run-metadata-object-describe-command-CjC9TIBb.cjs → run-metadata-object-describe-command-DCb5Ek8k.cjs} +1 -1
  45. package/dist/chunks/{run-metadata-object-list-command-BkffcdhV.cjs → run-metadata-object-list-command-9-X0oimh.cjs} +1 -1
  46. package/dist/chunks/{run-open-command-DFlEdJCd.cjs → run-open-command-CWBFD_2g.cjs} +1 -1
  47. package/dist/chunks/{run-version-command-CCBLrCKu.cjs → run-version-command-wTaZJPhd.cjs} +1 -1
  48. package/dist/chunks/{sign-in-to-remote-again-BhnOemXJ.cjs → sign-in-to-remote-again-CzhCXTTn.cjs} +1 -1
  49. package/dist/cli.cjs +1 -1
  50. package/package.json +2 -2
  51. package/dist/chunks/compile-application-translations-H-I23n4l.cjs +0 -58
  52. package/dist/chunks/create-metadata-client-BITefgbL.cjs +0 -6
  53. package/dist/chunks/pull-minimum-sdk-version.constant-DJS72Nbz.cjs +0 -6
@@ -1,2 +1,2 @@
1
- const e=require("./build--4zYt4wd.cjs"),t=require("./check-node-requirement-CIDuA1s-.cjs"),n=require("./cli-node-version-range.constant-D3XrqV07.cjs"),r=require("./isDefined-CJctgvfE.cjs"),i=require("./isNonEmptyArray-v52xg4Xj.cjs"),a=require("./isPlainObject-fJEJm71P.cjs"),o=require("./read-json-object-BMftwGZ5.cjs"),s=require("./list-ancestor-directories-BtB2hNt6.cjs"),c=require("./cli-error-CrUD8uMp.cjs"),l=require("./resolve-source-sdk-BDwffWHb.cjs"),u=require("./parse-api-url-B5c0Gh_n.cjs"),d=require("./read-command-values-l5T9Lba4.cjs"),f=require("./target-environment-variable.constant-D7z8AihP.cjs"),p=require("./style-BR52fK4V.cjs"),m=require("./resolve-app-project-B4IjfcM-.cjs"),h=require("./cli-version.constant-ol3Ctp_7.cjs"),g=require("./to-public-target-BltDNpJN.cjs"),_=require("./select-target-Ck9mdMLQ.cjs"),v=require("./get-config-path-C-D-QHuX.cjs"),y=require("./read-config-6GnzcpJm.cjs"),b=require("./is-access-token-expiring-BvJhEqtV.cjs"),x=require("./config-file-mode.constant-DLBzKKUl.cjs"),S=require("./resolve-proxy-headers-DipR9jft.cjs"),C=require("./fetch-signed-in-identity-Chv2DXkd.cjs");let w=require("node:fs/promises"),T=require("node:path"),E=require("node:fs");var D={pass:`green`,warning:`yellow`,fail:`red`,skipped:`yellow`},O=(e,t=process.stdout)=>e.map(e=>{let n=r.t(e.hint)?`\n ${e.hint}`:``;return`${p.n(D[e.status],`[${e.status.toUpperCase()}]`,t)} ${e.id}: ${e.message}${n}`}).join(`
1
+ const e=require("./build--4zYt4wd.cjs"),t=require("./check-node-requirement-CIDuA1s-.cjs"),n=require("./cli-node-version-range.constant-D3XrqV07.cjs"),r=require("./isDefined-CJctgvfE.cjs"),i=require("./isNonEmptyArray-v52xg4Xj.cjs"),a=require("./isPlainObject-fJEJm71P.cjs"),o=require("./read-json-object-BMftwGZ5.cjs"),s=require("./list-ancestor-directories-BtB2hNt6.cjs"),c=require("./cli-error-CrUD8uMp.cjs"),l=require("./resolve-source-sdk-BDwffWHb.cjs"),u=require("./parse-api-url-B5c0Gh_n.cjs"),d=require("./read-command-values-l5T9Lba4.cjs"),f=require("./target-environment-variable.constant-D7z8AihP.cjs"),p=require("./style-BR52fK4V.cjs"),m=require("./resolve-app-project-B4IjfcM-.cjs"),h=require("./cli-version.constant-DbksYiUq.cjs"),g=require("./to-public-target-BltDNpJN.cjs"),_=require("./select-target-Ck9mdMLQ.cjs"),v=require("./get-config-path-C-D-QHuX.cjs"),y=require("./read-config-6GnzcpJm.cjs"),b=require("./is-access-token-expiring-BvJhEqtV.cjs"),x=require("./config-file-mode.constant-DLBzKKUl.cjs"),S=require("./resolve-proxy-headers-DipR9jft.cjs"),C=require("./fetch-signed-in-identity-4eDYfKrQ.cjs");let w=require("node:fs/promises"),T=require("node:path"),E=require("node:fs");var D={pass:`green`,warning:`yellow`,fail:`red`,skipped:`yellow`},O=(e,t=process.stdout)=>e.map(e=>{let n=r.t(e.hint)?`\n ${e.hint}`:``;return`${p.n(D[e.status],`[${e.status.toUpperCase()}]`,t)} ${e.id}: ${e.message}${n}`}).join(`
2
2
  `),k=e.t(),A={AUTH_REQUIRED:{message:`The metadata endpoint rejected these credentials.`,hint:`Check the configured credentials, or sign in again.`},PERMISSION_DENIED:{message:`The metadata endpoint denied access to the workspace identity.`,hint:`Check the selected remote and the permissions granted to its credentials.`},INVALID_RESPONSE:{message:`The server did not return a valid metadata API response.`,hint:`Check the API URL and base path, and whether a proxy returned another page.`},UNSUPPORTED_RESPONSE_TYPE:{message:`The metadata endpoint returned an unsupported response type.`,hint:`Check the API URL and base path, and whether a proxy returned another page.`},REDIRECT_NOT_FOLLOWED:{message:`The metadata endpoint redirected the request. No redirect was followed.`,hint:`Configure the final Twenty API URL, including the correct protocol and base path.`},PROXY_AUTH_REQUIRED:{message:`An authenticating proxy in front of the server redirected the request to its sign-in page.`,hint:`Configure proxy headers for this connection. See "Authenticating proxies" in the CLI docs.`},PROXY_HEADERS_FAILED:{message:`The proxy header command failed, so no request was sent.`,hint:`Run the command yourself to check it prints "Name: value" lines.`},TIMEOUT:{message:`The metadata endpoint did not respond before the request timed out.`,hint:`Check server availability and the network connection.`},NETWORK_ERROR:{message:`Could not connect to the metadata endpoint.`,hint:`Check the API URL, network connection, server availability and TLS configuration.`}},j={ENOTFOUND:`DNS could not resolve the metadata endpoint hostname.`,EAI_AGAIN:`DNS resolution of the metadata endpoint temporarily failed.`,ECONNREFUSED:`The metadata endpoint refused the connection.`,ECONNRESET:`The connection to the metadata endpoint was reset.`,EHOSTUNREACH:`The metadata endpoint host is unreachable.`,ENETUNREACH:`The network containing the metadata endpoint is unreachable.`,ETIMEDOUT:`The connection to the metadata endpoint timed out.`,UND_ERR_CONNECT_TIMEOUT:`The connection to the metadata endpoint timed out.`,CERT_HAS_EXPIRED:`The metadata endpoint TLS certificate has expired.`,ERR_TLS_CERT_ALTNAME_INVALID:`The metadata endpoint TLS certificate does not match its hostname.`,DEPTH_ZERO_SELF_SIGNED_CERT:`The metadata endpoint uses an untrusted self-signed TLS certificate.`,SELF_SIGNED_CERT_IN_CHAIN:`The metadata endpoint TLS certificate chain contains an untrusted self-signed certificate.`,UNABLE_TO_VERIFY_LEAF_SIGNATURE:`The metadata endpoint TLS certificate chain could not be verified.`,UNABLE_TO_GET_ISSUER_CERT_LOCALLY:`The metadata endpoint TLS certificate issuer is not trusted locally.`},M=e=>{let t=e instanceof c.t?e.code:`INTERNAL_ERROR`,n=A[t]??{message:`The metadata endpoint could not be verified (${t}).`,hint:`Check the API URL and server availability.`},i=e instanceof c.t&&t===`NETWORK_ERROR`?e.details?.networkCode:void 0,a=(0,k.isString)(i)&&Object.hasOwn(j,i)?j[i]:void 0;return{id:`metadata-api`,status:`fail`,code:t,message:a??n.message,hint:e instanceof c.t&&t===`AUTH_REQUIRED`&&r.t(e.hint)?e.hint:n.hint,...r.t(a)?{details:{networkCode:i}}:{}}},N=async({configPath:e,environment:t,remoteFlag:n,offline:i,signal:a})=>{let o=[],s,l;a.throwIfAborted();try{if(s=await y.t(e),o.push({id:`configuration`,status:`pass`,message:`CLI configuration checked at ${e}.`,details:{path:e,remoteCount:Object.keys(s.remotes).length,defaultRemote:s.defaultRemote??null}}),process.platform!==`win32`){let t=await(0,w.stat)(e).catch(()=>void 0);r.t(t)&&t.mode&63&&o.push({id:`configuration-permissions`,status:`warning`,message:`Other users may access the CLI configuration file.`,hint:`Review its permissions; ${x.t.PRIVATE_FILE.toString(8)} is the expected mode. Doctor does not change them.`})}}catch(t){l=t,o.push({id:`configuration`,status:`fail`,code:t instanceof c.t?t.code:`INVALID_CONFIG`,message:t instanceof c.t?t.message:`The CLI configuration is unreadable or invalid.`,hint:t instanceof c.t?t.hint:`Check ${e}. Doctor does not overwrite it.`})}let d;try{let e=await _.t({environment:t,remoteFlag:n,loadConfig:async()=>{if(!r.t(s))throw l;return s},warn:e=>o.push({id:`target-precedence`,status:`warning`,code:e.code,message:e.message})}),i=u.t({rawUrl:e.source===`remote`?e.remote.apiUrl:e.apiUrl,sourceName:e.source===`remote`?`The URL of remote ${e.remoteName}`:f.t.API_URL}),a={apiUrl:i,source:e.source,remote:e.source===`remote`?e.remoteName:null};o.push({id:`target`,status:`pass`,message:`Selected ${i} from ${e.source}.`,details:a});let c=e.source===`remote`?e.remote.twentyCLIAccessToken:void 0,p=(0,k.isNonEmptyString)(c)?`oauth`:`apiKey`,m=e.source===`remote`?e.remote.apiKey:e.apiKey,h=(0,k.isNonEmptyString)(c)?c:m;if(!(0,k.isNonEmptyString)(h))return o.push({id:`credentials`,status:`fail`,code:`AUTH_REQUIRED`,message:`The selected remote has no saved credentials.`,hint:`Sign in with twenty auth login, then rerun doctor.`}),[...o,{id:`metadata-api`,status:`skipped`,message:`No credentials are available.`}];let g=p===`oauth`?b.t(h):void 0;if(r.t(g)&&g<=Date.now()){let t=e.source===`remote`&&(0,k.isNonEmptyString)(e.remote.twentyCLIRefreshToken);return o.push({id:`credentials`,status:t?`warning`:`fail`,code:`AUTH_REQUIRED`,message:t?`The OAuth access token has expired. A refresh token is saved, but renewal has not been verified.`:`The saved OAuth access token has expired and no refresh token is available.`,hint:`Run twenty auth status with the same remote to refresh the session, or sign in again. Doctor does not refresh credentials.`}),[...o,{id:`metadata-api`,status:`skipped`,message:`The access token has expired.`}]}let v=e.source===`remote`?S.r({remote:e.remote,remoteName:e.remoteName}):void 0;d={apiUrl:i,source:e.source,...e.source===`remote`?{remoteName:e.remoteName}:{},credentialKind:p,bearerToken:h,proxyHeaders:S.t({environment:t,savedSettings:v})},o.push({id:`credentials`,status:`pass`,message:`${p===`oauth`?`OAuth token`:`API key`} configured; acceptance is checked separately.`,details:{kind:p}})}catch(e){a.throwIfAborted();let t=e instanceof c.t?e.code:`INTERNAL_ERROR`;return o.push({id:`target`,status:t===`TARGET_REQUIRED`?`skipped`:`fail`,code:t,message:e instanceof c.t?e.message:`Could not select a workspace.`,hint:e instanceof c.t?e.hint:void 0}),[...o,{id:`credentials`,status:`skipped`,message:`No workspace was selected.`},{id:`metadata-api`,status:`skipped`,message:`No workspace was selected.`}]}if(i)return[...o,{id:`metadata-api`,status:`skipped`,message:`Network checks disabled by --offline.`}];try{a.throwIfAborted(),await C.t({target:d,signal:a}),o.push({id:`metadata-api`,status:`pass`,message:`The metadata endpoint accepted the configured credentials.`,details:{...g.t(d)}})}catch(e){a.throwIfAborted(),o.push(M(e))}return o},P=async e=>{for(let t of s.t((0,T.dirname)(e))){let n=await o.t((0,T.join)(t,`package.json`));if(!r.t(n))continue;let i=n.bin,s=(0,k.isString)(i)&&n.name===`twenty`?i:void 0,c=a.t(i)&&(0,k.isString)(i.twenty)?i.twenty:s;if(r.t(c)&&await(0,w.realpath)((0,T.resolve)(t,c)).catch(()=>void 0)===e)return{name:(0,k.isString)(n.name)?n.name:`unknown`,version:(0,k.isString)(n.version)?n.version:`unknown`}}return null},F=async({environment:e,workingDirectory:t,signal:n})=>{let a=[],o=process.platform===`win32`?[`twenty.exe`,`twenty.cmd`,`twenty.bat`,`twenty`]:[`twenty`],s=r.t(e.PATH)?e.PATH.split(T.delimiter):[];for(let e of new Set(s))for(let r of o){n.throwIfAborted();let i=(0,T.resolve)(t,e,r);if(!await(0,w.access)(i,E.constants.X_OK).then(()=>(0,w.stat)(i).then(e=>e.isFile()),()=>!1))continue;let o=await(0,w.realpath)(i);a.push({path:i,resolvedPath:o,owner:await P(o)})}let c=a[0],l=process.argv[1],u=r.t(l)?await(0,w.realpath)((0,T.resolve)(t,l)).catch(()=>void 0):void 0,d=a.filter(e=>e.owner?.name===`twenty-sdk`);return i.t(d)?{id:`path`,status:`warning`,message:`PATH contains legacy twenty-sdk executable(s) named twenty: ${d.map(e=>e.path).join(`, `)}.`,hint:`If this is a global twenty-sdk installation, remove it before installing the twenty CLI so the CLI owns the twenty name. Removing the SDK afterward can remove that executable link. Keep app-local SDK dependencies; use the intended CLI by its full path when needed. Doctor does not change installations.`,details:{candidates:a}}:r.t(c)?r.t(u)&&c.resolvedPath!==u?{id:`path`,status:`warning`,message:`${c.path} is first on PATH and differs from the running CLI.`,hint:`Use the intended executable by its full path, or review PATH order. Shell aliases, functions and command caches are not inspected.`,details:{candidates:a,runningPath:u}}:{id:`path`,status:c.owner?.name===`twenty`?`pass`:`warning`,message:r.t(c.owner)?`First twenty executable on PATH: ${c.path} (${c.owner.name} ${c.owner.version}).`:`First twenty executable on PATH: ${c.path}. Its package owner could not be determined.`,hint:`Shell aliases, functions and command caches are not inspected.`,details:{candidates:a}}:{id:`path`,status:`warning`,message:`No executable named twenty was found on PATH.`,hint:`Use the CLI entry point shown above, or your package manager to invoke the installed CLI.`,details:{candidates:a}}},I=async({explicitPath:e,workingDirectory:t,signal:n})=>{let i;n.throwIfAborted();try{i=await m.t({explicitPath:e,workingDirectory:t})}catch(t){return n.throwIfAborted(),[{id:`project`,status:!r.t(e)&&t instanceof c.t&&(t.code===`APP_NOT_FOUND`||t.code===`APP_PATH_REQUIRED`)?`skipped`:`fail`,message:t instanceof c.t?t.message:`Could not inspect the app directory.`,hint:`Use --path <app directory> to check a specific app.`},{id:`sdk`,status:`skipped`,message:`No app was selected.`}]}let a={id:`project`,status:`pass`,message:`${i.name} at ${i.path}.`,details:{name:i.name,path:i.path}};try{n.throwIfAborted();let e=[],t=await l.t({appPath:i.path,warn:t=>e.push(t)}),[o]=e,s={version:t.version,path:t.packagePath};return[a,r.t(o)?{id:`sdk`,status:`warning`,code:o.code,message:o.message,hint:`Builds continue. If one fails, switch to a Node version in that range.`,details:s}:{id:`sdk`,status:`pass`,message:`twenty-sdk ${t.version} provides the authoring exports required by the CLI.`,details:s}]}catch(e){return n.throwIfAborted(),[a,{id:`sdk`,status:`fail`,code:e instanceof c.t?e.code:`INTERNAL_ERROR`,message:e instanceof c.t?e.message:`Could not inspect the app SDK installation.`,hint:e instanceof c.t?e.hint:`Check that the app dependencies are installed and readable.`}]}},L=()=>{let e=t.t({version:process.versions.node,range:n.t})===`satisfied`;return[{id:`node`,status:e?`pass`:`fail`,message:`Node ${process.versions.node}, required ${n.t}.`,...e?{}:{hint:`Switch to a supported Node version and rerun doctor.`},details:{version:process.versions.node,required:n.t}},{id:`cli`,status:`pass`,message:`twenty ${h.t}, entry point ${process.argv[1]??`unknown`}.`,details:{version:h.t,nodeExecutable:process.execPath,entryPoint:process.argv[1]??null,platform:process.platform,arch:process.arch}}]},R=async({options:e,signal:t,outputMode:n})=>{let r=L(),a=process.cwd();try{r.push(await F({environment:process.env,workingDirectory:a,signal:t}))}catch{t.throwIfAborted(),r.push({id:`path`,status:`fail`,message:`Could not inspect executables on PATH.`})}r.push(...await I({explicitPath:d.i(e,`path`),workingDirectory:a,signal:t})),r.push(...await N({environment:process.env,configPath:v.t(),remoteFlag:d.i(e,`remote`),offline:d.t(e,`offline`),signal:t})),t.throwIfAborted();let o=r.filter(e=>e.status===`fail`),s=O(r,i.t(o)?process.stderr:process.stdout);if(i.t(o))throw new c.t({code:`DOCTOR_FAILED`,message:`${o.length} doctor ${o.length===1?`check`:`checks`} failed.`,hint:n===`human`?s:`Read error.details.checks for the failures and recovery hints.`,details:{checks:r}});return{data:{checks:r},human:s}};exports.runDoctorCommand=R;
@@ -1,3 +1,3 @@
1
- const e=require("./build--4zYt4wd.cjs"),t=require("./isDefined-CJctgvfE.cjs"),n=require("./isNonEmptyArray-v52xg4Xj.cjs"),r=require("./cli-error-CrUD8uMp.cjs"),i=require("./read-command-values-l5T9Lba4.cjs"),a=require("./format-details-COEwKz_M.cjs"),o=require("./format-table-4drtI5sP.cjs"),s=require("./format-metadata-owner-ByoX2plp.cjs"),c=require("./fetch-metadata-inspection-BitnLMsU.cjs"),l=require("./format-metadata-fields-DmRandPR.cjs");var u=e.t(),d=e=>t.t(e)?String(e):`unknown`,f=async({arguments:e,target:f,signal:p,output:m})=>{let h=i.n(e,1)??``,{object:g,fields:_}=await c.t({objectName:i.n(e,0)??``,target:f,signal:p,output:m}),v=_.filter(e=>e.name===h);if(v.length>1)throw new r.t({code:`AMBIGUOUS_RESOURCE`,exitCode:r.n.USAGE,message:`More than one field has the API name ${h} on ${g.namePlural}.`});let y=v[0];if(!t.t(y))throw new r.t({code:`NOT_FOUND`,exitCode:r.n.NOT_FOUND,message:`No field has the API name ${h} on ${g.namePlural}.`,hint:`Use an exact API name from twenty metadata field list ${g.namePlural} --all.`});let b=l.r(y);return{data:{object:g,field:y},human:[`${y.label} (${y.name}) on ${g.namePlural}`,a.t([[`ID`,y.id],[`Type`,y.type],[`Owner`,s.t(y.owner)],[`Active`,d(y.isActive)],[`System`,d(y.isSystem)],[`Nullable`,d(y.isNullable)],[`Unique`,d(y.isUnique)],[`Default`,JSON.stringify(y.defaultValue??null)]]),y.description??``,l.n(y),n.t(b)?o.t({rows:b,columns:[{header:`OPTION`,value:e=>String(e.label??``)},{header:`VALUE`,value:e=>String(e.value??``)},{header:`COLOR`,value:e=>String(e.color??``)}]}):``].filter(u.isNonEmptyString).join(`
1
+ const e=require("./build--4zYt4wd.cjs"),t=require("./isDefined-CJctgvfE.cjs"),n=require("./isNonEmptyArray-v52xg4Xj.cjs"),r=require("./cli-error-CrUD8uMp.cjs"),i=require("./read-command-values-l5T9Lba4.cjs"),a=require("./format-details-COEwKz_M.cjs"),o=require("./format-table-4drtI5sP.cjs"),s=require("./format-metadata-owner-ByoX2plp.cjs"),c=require("./fetch-metadata-inspection-Bg9N-xN9.cjs"),l=require("./format-metadata-fields-DmRandPR.cjs");var u=e.t(),d=e=>t.t(e)?String(e):`unknown`,f=async({arguments:e,target:f,signal:p,output:m})=>{let h=i.n(e,1)??``,{object:g,fields:_}=await c.t({objectName:i.n(e,0)??``,target:f,signal:p,output:m}),v=_.filter(e=>e.name===h);if(v.length>1)throw new r.t({code:`AMBIGUOUS_RESOURCE`,exitCode:r.n.USAGE,message:`More than one field has the API name ${h} on ${g.namePlural}.`});let y=v[0];if(!t.t(y))throw new r.t({code:`NOT_FOUND`,exitCode:r.n.NOT_FOUND,message:`No field has the API name ${h} on ${g.namePlural}.`,hint:`Use an exact API name from twenty metadata field list ${g.namePlural} --all.`});let b=l.r(y);return{data:{object:g,field:y},human:[`${y.label} (${y.name}) on ${g.namePlural}`,a.t([[`ID`,y.id],[`Type`,y.type],[`Owner`,s.t(y.owner)],[`Active`,d(y.isActive)],[`System`,d(y.isSystem)],[`Nullable`,d(y.isNullable)],[`Unique`,d(y.isUnique)],[`Default`,JSON.stringify(y.defaultValue??null)]]),y.description??``,l.n(y),n.t(b)?o.t({rows:b,columns:[{header:`OPTION`,value:e=>String(e.label??``)},{header:`VALUE`,value:e=>String(e.value??``)},{header:`COLOR`,value:e=>String(e.color??``)}]}):``].filter(u.isNonEmptyString).join(`
2
2
 
3
3
  `)}};exports.runMetadataFieldDescribeCommand=f;
@@ -1,3 +1,3 @@
1
- const e=require("./read-command-values-l5T9Lba4.cjs"),t=require("./fetch-metadata-inspection-BitnLMsU.cjs"),n=require("./format-metadata-fields-DmRandPR.cjs");var r=({fields:e,includeSystemFields:t})=>{let n=e.filter(e=>t||e.isSystem!==!0);return{fields:n,hiddenSystemFieldCount:e.length-n.length}},i=async({arguments:i,options:a,target:o,signal:s,output:c})=>{let l=await t.t({objectName:e.n(i,0)??``,target:o,signal:s,output:c}),{object:u}=l,{fields:d,hiddenSystemFieldCount:f}=r({fields:l.fields,includeSystemFields:e.t(a,`all`)});return{data:{object:u,fields:d,hiddenSystemFieldCount:f},human:[`${u.labelPlural} (${u.namePlural})`,n.t({fields:d,hiddenSystemFieldCount:f,labelIdentifierFieldMetadataId:u.labelIdentifierFieldMetadataId})].join(`
1
+ const e=require("./read-command-values-l5T9Lba4.cjs"),t=require("./fetch-metadata-inspection-Bg9N-xN9.cjs"),n=require("./format-metadata-fields-DmRandPR.cjs");var r=({fields:e,includeSystemFields:t})=>{let n=e.filter(e=>t||e.isSystem!==!0);return{fields:n,hiddenSystemFieldCount:e.length-n.length}},i=async({arguments:i,options:a,target:o,signal:s,output:c})=>{let l=await t.t({objectName:e.n(i,0)??``,target:o,signal:s,output:c}),{object:u}=l,{fields:d,hiddenSystemFieldCount:f}=r({fields:l.fields,includeSystemFields:e.t(a,`all`)});return{data:{object:u,fields:d,hiddenSystemFieldCount:f},human:[`${u.labelPlural} (${u.namePlural})`,n.t({fields:d,hiddenSystemFieldCount:f,labelIdentifierFieldMetadataId:u.labelIdentifierFieldMetadataId})].join(`
2
2
 
3
3
  `)}};exports.runMetadataFieldListCommand=i;
@@ -1,3 +1,3 @@
1
- const e=require("./build--4zYt4wd.cjs"),t=require("./read-command-values-l5T9Lba4.cjs"),n=require("./style-BR52fK4V.cjs"),r=require("./format-data-value-D_1TNU-r.cjs"),i=require("./format-details-COEwKz_M.cjs"),a=require("./format-metadata-owner-ByoX2plp.cjs"),o=require("./fetch-metadata-inspection-BitnLMsU.cjs");var s=e.t(),c=async({arguments:e,target:c,signal:l,output:u})=>{let{object:d}=await o.t({objectName:t.n(e,0)??``,target:c,signal:l,output:u});return{data:{object:d},human:[`${d.labelPlural} (${d.namePlural})`,i.t([[`ID`,d.id],[`API names`,`${d.nameSingular} / ${d.namePlural}`],...(0,s.isNonEmptyString)(d.description)?[[`Description`,r.r(d.description)]]:[],[`Owner`,a.t(d.owner)],[`Active`,String(d.isActive)],[`System`,String(d.isSystem)],[`Searchable`,String(d.isSearchable)]]),`Fields: ${n.r(`twenty metadata field list ${d.namePlural}`)}`].join(`
1
+ const e=require("./build--4zYt4wd.cjs"),t=require("./read-command-values-l5T9Lba4.cjs"),n=require("./style-BR52fK4V.cjs"),r=require("./format-data-value-D_1TNU-r.cjs"),i=require("./format-details-COEwKz_M.cjs"),a=require("./format-metadata-owner-ByoX2plp.cjs"),o=require("./fetch-metadata-inspection-Bg9N-xN9.cjs");var s=e.t(),c=async({arguments:e,target:c,signal:l,output:u})=>{let{object:d}=await o.t({objectName:t.n(e,0)??``,target:c,signal:l,output:u});return{data:{object:d},human:[`${d.labelPlural} (${d.namePlural})`,i.t([[`ID`,d.id],[`API names`,`${d.nameSingular} / ${d.namePlural}`],...(0,s.isNonEmptyString)(d.description)?[[`Description`,r.r(d.description)]]:[],[`Owner`,a.t(d.owner)],[`Active`,String(d.isActive)],[`System`,String(d.isSystem)],[`Searchable`,String(d.isSearchable)]]),`Fields: ${n.r(`twenty metadata field list ${d.namePlural}`)}`].join(`
2
2
 
3
3
  `)}};exports.runMetadataObjectDescribeCommand=c;
@@ -1,2 +1,2 @@
1
- const e=require("./read-command-values-l5T9Lba4.cjs"),t=require("./style-BR52fK4V.cjs"),n=require("./create-metadata-client-BITefgbL.cjs"),r=require("./format-table-4drtI5sP.cjs"),i=require("./metadata-page.constant-D4-pGQWp.cjs"),a=require("./format-metadata-owner-ByoX2plp.cjs");var o=[`standard`,`application`,`custom`,`unknown`],s=(e,t)=>e.query({objects:{__args:{paging:{first:i.t,after:t},filter:{}},pageInfo:{hasNextPage:!0,endCursor:!0},edges:{node:{nameSingular:!0,namePlural:!0,labelSingular:!0,labelPlural:!0,isSystem:!0,isActive:!0,applicationId:!0}}},currentWorkspace:{workspaceCustomApplicationId:!0}}),c=async({options:c,output:l,target:u,signal:d})=>{let f=e.t(c,`all`),p=n.t({target:u,signal:d}),[{objects:m,currentWorkspace:h},{applications:g,areOwnersNamed:_}]=await Promise.all([s(p),a.r(p)]),v=await i.n(async e=>e===void 0?m:(await s(p,e)).objects);_||l.warn({code:`OWNERS_UNAVAILABLE`,message:`Owners other than Custom show as unknown: listing apps needs the Workspace Apps permission.`});let y=a.n({applications:g,workspaceCustomApplicationId:h.workspaceCustomApplicationId}),b=v.map(({applicationId:e,...t})=>({...t,owner:y(e)})),x=b.filter(e=>f||!e.isSystem).sort((e,t)=>{let n=o.indexOf(e.owner.kind)-o.indexOf(t.owner.kind);return n===0?e.namePlural.localeCompare(t.namePlural):n}),S=b.length-x.length;return{data:{objects:x,hiddenSystemObjectCount:S},human:[r.t({rows:x,columns:[{header:`API NAME`,value:e=>e.namePlural},{header:`LABEL`,value:e=>e.isActive?e.labelPlural:`${e.labelPlural} ${t.i(`(inactive)`)}`},{header:`OWNER`,value:e=>a.t(e.owner)}]}),t.i(S>0?`${x.length} objects · ${S} system objects hidden, show them with --all`:`${x.length} objects`)].join(`
1
+ const e=require("./read-command-values-l5T9Lba4.cjs"),t=require("./style-BR52fK4V.cjs"),n=require("./create-metadata-client-BlgP9Pvz.cjs"),r=require("./format-table-4drtI5sP.cjs"),i=require("./metadata-page.constant-D4-pGQWp.cjs"),a=require("./format-metadata-owner-ByoX2plp.cjs");var o=[`standard`,`application`,`custom`,`unknown`],s=(e,t)=>e.query({objects:{__args:{paging:{first:i.t,after:t},filter:{}},pageInfo:{hasNextPage:!0,endCursor:!0},edges:{node:{nameSingular:!0,namePlural:!0,labelSingular:!0,labelPlural:!0,isSystem:!0,isActive:!0,applicationId:!0}}},currentWorkspace:{workspaceCustomApplicationId:!0}}),c=async({options:c,output:l,target:u,signal:d})=>{let f=e.t(c,`all`),p=n.t({target:u,signal:d}),[{objects:m,currentWorkspace:h},{applications:g,areOwnersNamed:_}]=await Promise.all([s(p),a.r(p)]),v=await i.n(async e=>e===void 0?m:(await s(p,e)).objects);_||l.warn({code:`OWNERS_UNAVAILABLE`,message:`Owners other than Custom show as unknown: listing apps needs the Workspace Apps permission.`});let y=a.n({applications:g,workspaceCustomApplicationId:h.workspaceCustomApplicationId}),b=v.map(({applicationId:e,...t})=>({...t,owner:y(e)})),x=b.filter(e=>f||!e.isSystem).sort((e,t)=>{let n=o.indexOf(e.owner.kind)-o.indexOf(t.owner.kind);return n===0?e.namePlural.localeCompare(t.namePlural):n}),S=b.length-x.length;return{data:{objects:x,hiddenSystemObjectCount:S},human:[r.t({rows:x,columns:[{header:`API NAME`,value:e=>e.namePlural},{header:`LABEL`,value:e=>e.isActive?e.labelPlural:`${e.labelPlural} ${t.i(`(inactive)`)}`},{header:`OWNER`,value:e=>a.t(e.owner)}]}),t.i(S>0?`${x.length} objects · ${S} system objects hidden, show them with --all`:`${x.length} objects`)].join(`
2
2
  `)}};exports.runMetadataObjectListCommand=c;
@@ -1 +1 @@
1
- const e=require("./build--4zYt4wd.cjs"),t=require("./isDefined-CJctgvfE.cjs"),n=require("./isPlainObject-fJEJm71P.cjs"),r=require("./cli-error-CrUD8uMp.cjs"),i=require("./api-url-protocols.constant-EEmR3Pmg.cjs"),a=require("./read-command-values-l5T9Lba4.cjs"),o=require("./resolve-request-url-CfvGDGkw.cjs"),s=require("./is-interaction-allowed-BQLOG8RG.cjs"),c=require("./create-metadata-client-BITefgbL.cjs"),l=require("./open-browser-LPuVspT7.cjs");var u=({workspaceUrl:e,page:n})=>{if(!t.t(n))return e.href;let i=URL.parse(n,e);if(!t.t(i)||i.origin!==e.origin||i.pathname.startsWith(`//`))throw new r.t({code:`USAGE`,exitCode:r.n.USAGE,message:`${n} is not a page of the workspace.`,hint:`Pass a path inside the workspace, for example settings/applications.`});return i.href},d=e.t(),f=(e,n)=>{let a=(0,d.isNonEmptyString)(e)?URL.parse(e):null;if(!t.t(a)||!i.t.includes(a.protocol))throw new r.t({code:`INVALID_RESPONSE`,message:`${n} did not return a web address for this workspace.`});return a},p=async({target:e,signal:t})=>{let{currentWorkspace:r}=await c.t({target:e,signal:t}).query({currentWorkspace:{workspaceUrls:{customUrl:!0,subdomainUrl:!0}}}),i=r?.workspaceUrls,a=(0,d.isNonEmptyString)(i?.customUrl)?i.customUrl:i?.subdomainUrl;if((0,d.isNonEmptyString)(a))return f(a,e.apiUrl);let s=await o.r({apiUrl:e.apiUrl,proxyHeaders:e.proxyHeaders,signal:t})(o.t({apiUrl:e.apiUrl,path:`/.well-known/oauth-authorization-server`}),{headers:{Accept:`application/json`}}),l=await o.n(s),u=f(s.ok&&n.t(l)?l.authorization_endpoint:void 0,e.apiUrl);return new URL(u.origin)},m=async({arguments:e,options:t,outputMode:n,target:i,signal:o})=>{let c=a.t(t,`urlOnly`);if(!c&&!s.t({options:t,outputMode:n}))throw new r.t({code:`USAGE`,exitCode:r.n.USAGE,message:`twenty open only opens a browser in an interactive terminal, not with --no-input, JSON output, redirected stdin or in CI.`,hint:`Add --url-only to print the address instead.`});let d=u({workspaceUrl:await p({target:i,signal:o}),page:a.n(e,0)});return c?{data:{url:d},human:d}:(l.t(d),{data:{url:d},human:`Opening ${d} in your browser.`})};exports.runOpenCommand=m;
1
+ const e=require("./build--4zYt4wd.cjs"),t=require("./isDefined-CJctgvfE.cjs"),n=require("./isPlainObject-fJEJm71P.cjs"),r=require("./cli-error-CrUD8uMp.cjs"),i=require("./api-url-protocols.constant-EEmR3Pmg.cjs"),a=require("./read-command-values-l5T9Lba4.cjs"),o=require("./resolve-request-url-CfvGDGkw.cjs"),s=require("./is-interaction-allowed-BQLOG8RG.cjs"),c=require("./create-metadata-client-BlgP9Pvz.cjs"),l=require("./open-browser-LPuVspT7.cjs");var u=({workspaceUrl:e,page:n})=>{if(!t.t(n))return e.href;let i=URL.parse(n,e);if(!t.t(i)||i.origin!==e.origin||i.pathname.startsWith(`//`))throw new r.t({code:`USAGE`,exitCode:r.n.USAGE,message:`${n} is not a page of the workspace.`,hint:`Pass a path inside the workspace, for example settings/applications.`});return i.href},d=e.t(),f=(e,n)=>{let a=(0,d.isNonEmptyString)(e)?URL.parse(e):null;if(!t.t(a)||!i.t.includes(a.protocol))throw new r.t({code:`INVALID_RESPONSE`,message:`${n} did not return a web address for this workspace.`});return a},p=async({target:e,signal:t})=>{let{currentWorkspace:r}=await c.t({target:e,signal:t}).query({currentWorkspace:{workspaceUrls:{customUrl:!0,subdomainUrl:!0}}}),i=r?.workspaceUrls,a=(0,d.isNonEmptyString)(i?.customUrl)?i.customUrl:i?.subdomainUrl;if((0,d.isNonEmptyString)(a))return f(a,e.apiUrl);let s=await o.r({apiUrl:e.apiUrl,proxyHeaders:e.proxyHeaders,signal:t})(o.t({apiUrl:e.apiUrl,path:`/.well-known/oauth-authorization-server`}),{headers:{Accept:`application/json`}}),l=await o.n(s),u=f(s.ok&&n.t(l)?l.authorization_endpoint:void 0,e.apiUrl);return new URL(u.origin)},m=async({arguments:e,options:t,outputMode:n,target:i,signal:o})=>{let c=a.t(t,`urlOnly`);if(!c&&!s.t({options:t,outputMode:n}))throw new r.t({code:`USAGE`,exitCode:r.n.USAGE,message:`twenty open only opens a browser in an interactive terminal, not with --no-input, JSON output, redirected stdin or in CI.`,hint:`Add --url-only to print the address instead.`});let d=u({workspaceUrl:await p({target:i,signal:o}),page:a.n(e,0)});return c?{data:{url:d},human:d}:(l.t(d),{data:{url:d},human:`Opening ${d} in your browser.`})};exports.runOpenCommand=m;
@@ -1 +1 @@
1
- const e=require("./style-BR52fK4V.cjs"),t=require("./cli-version.constant-ol3Ctp_7.cjs");var n=async()=>{let n={version:t.t,node:process.versions.node,platform:process.platform,arch:process.arch};return{data:n,human:`twenty ${n.version} ${e.i(`(node ${n.node}, ${n.platform}-${n.arch})`)}`}};exports.runVersionCommand=n;
1
+ const e=require("./style-BR52fK4V.cjs"),t=require("./cli-version.constant-DbksYiUq.cjs");var n=async()=>{let n={version:t.t,node:process.versions.node,platform:process.platform,arch:process.arch};return{data:n,human:`twenty ${n.version} ${e.i(`(node ${n.node}, ${n.platform}-${n.arch})`)}`}};exports.runVersionCommand=n;
@@ -1 +1 @@
1
- const e=require("./isDefined-CJctgvfE.cjs"),t=require("./cli-error-CrUD8uMp.cjs"),n=require("./parse-api-url-B5c0Gh_n.cjs"),r=require("./confirm-in-terminal-D2e1lKUY.cjs"),i=require("./read-config-6GnzcpJm.cjs"),a=require("./get-credential-kind-qxy7oLdW.cjs"),o=require("./sign-in-with-browser-TQANmPyb.cjs"),s=require("./update-config-Bk0qgzgZ.cjs"),c=require("./fetch-signed-in-identity-Chv2DXkd.cjs");var l=(r,i,o)=>{let s=Object.hasOwn(r.remotes,o)?r.remotes[o]:void 0;if(!e.t(s)||a.t(s)!==`oauth`||s.twentyCLIAccessToken!==i.bearerToken||n.t({rawUrl:s.apiUrl,sourceName:o})!==i.apiUrl)throw new t.t({code:`CONFLICT`,exitCode:t.n.CONFLICT,message:`Remote ${o} changed while signing in again. No credentials were saved.`,hint:`Run the command again.`});return s},u=async({target:e,remoteName:t,error:n,configPath:a,output:u,signal:d})=>{if(l(await i.t(a),e,t),!await r.t({question:`Your session on ${t} is no longer valid. Sign in again now?`,signal:d}))throw n;let f=await o.t({apiUrl:e.apiUrl,proxyHeaders:e.proxyHeaders,output:u,signal:d}),p={...e,bearerToken:f.accessToken};return await c.t({target:p,signal:d}),await s.t({configPath:a,signal:d,update:n=>{let r=l(n,e,t);return{result:void 0,config:{...n,remotes:{...n.remotes,[t]:o.n({remote:r,credentials:{kind:`oauth`,...f}})}}}}}),p};exports.signInToRemoteAgain=u;
1
+ const e=require("./isDefined-CJctgvfE.cjs"),t=require("./cli-error-CrUD8uMp.cjs"),n=require("./parse-api-url-B5c0Gh_n.cjs"),r=require("./confirm-in-terminal-D2e1lKUY.cjs"),i=require("./read-config-6GnzcpJm.cjs"),a=require("./get-credential-kind-qxy7oLdW.cjs"),o=require("./sign-in-with-browser-TQANmPyb.cjs"),s=require("./update-config-Bk0qgzgZ.cjs"),c=require("./fetch-signed-in-identity-4eDYfKrQ.cjs");var l=(r,i,o)=>{let s=Object.hasOwn(r.remotes,o)?r.remotes[o]:void 0;if(!e.t(s)||a.t(s)!==`oauth`||s.twentyCLIAccessToken!==i.bearerToken||n.t({rawUrl:s.apiUrl,sourceName:o})!==i.apiUrl)throw new t.t({code:`CONFLICT`,exitCode:t.n.CONFLICT,message:`Remote ${o} changed while signing in again. No credentials were saved.`,hint:`Run the command again.`});return s},u=async({target:e,remoteName:t,error:n,configPath:a,output:u,signal:d})=>{if(l(await i.t(a),e,t),!await r.t({question:`Your session on ${t} is no longer valid. Sign in again now?`,signal:d}))throw n;let f=await o.t({apiUrl:e.apiUrl,proxyHeaders:e.proxyHeaders,output:u,signal:d}),p={...e,bearerToken:f.accessToken};return await c.t({target:p,signal:d}),await s.t({configPath:a,signal:d,update:n=>{let r=l(n,e,t);return{result:void 0,config:{...n,remotes:{...n.remotes,[t]:o.n({remote:r,credentials:{kind:`oauth`,...f}})}}}}}),p};exports.signInToRemoteAgain=u;
package/dist/cli.cjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const e=require("./chunks/check-node-requirement-CIDuA1s-.cjs"),t=require("./chunks/cli-node-version-range.constant-D3XrqV07.cjs");process.stdout.on(`error`,e=>{if(e.code!==`EPIPE`)throw e;process.exit()}),(async({args:n,nodeVersion:r,loadCli:i})=>{if(e.t({version:r,range:`>=24.5.0`})!==`satisfied`){process.stderr.write(`twenty requires Node.js ${t.t}; this is Node.js ${r}. Switch to a supported Node.js version, then try again.\n`),process.exitCode=1;return}await(await i()).runCli(n)})({args:process.argv.slice(2),nodeVersion:process.versions.node,loadCli:()=>Promise.resolve().then(()=>require("./chunks/run-cli-CtNeoYdv.cjs"))});
2
+ const e=require("./chunks/check-node-requirement-CIDuA1s-.cjs"),t=require("./chunks/cli-node-version-range.constant-D3XrqV07.cjs");process.stdout.on(`error`,e=>{if(e.code!==`EPIPE`)throw e;process.exit()}),(async({args:n,nodeVersion:r,loadCli:i})=>{if(e.t({version:r,range:`>=24.5.0`})!==`satisfied`){process.stderr.write(`twenty requires Node.js ${t.t}; this is Node.js ${r}. Switch to a supported Node.js version, then try again.\n`),process.exitCode=1;return}await(await i()).runCli(n)})({args:process.argv.slice(2),nodeVersion:process.versions.node,loadCli:()=>Promise.resolve().then(()=>require("./chunks/run-cli-CvHrVor5.cjs"))});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twenty",
3
- "version": "2.63.0",
3
+ "version": "2.64.0",
4
4
  "description": "The Twenty command line.",
5
5
  "homepage": "https://twenty.com",
6
6
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "semver": "7.6.3",
36
36
  "signal-exit": "^4.1.0",
37
37
  "string-width": "^8.2.0",
38
- "twenty-client-sdk": "2.63.0",
38
+ "twenty-client-sdk": "2.64.0",
39
39
  "twenty-shared": "0.0.0",
40
40
  "undici": "^7.30.1",
41
41
  "uuid": "^13.0.2",