twenty 2.59.0 → 2.60.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 (76) hide show
  1. package/dist/app-template/yarn.lock +30 -30
  2. package/dist/app-worker.cjs +1 -1
  3. package/dist/chunks/application-source-globs-FUknjGdt.cjs +1 -0
  4. package/dist/chunks/{build-source-manifest-Ddwa8ath.cjs → build-source-manifest-CiNlHV98.cjs} +1 -1
  5. package/dist/chunks/{build-source-snapshot-CUsEVNsQ.cjs → build-source-snapshot-Dchjr_ga.cjs} +20 -20
  6. package/dist/chunks/{cli-version.constant-y_3mZ4gx.cjs → cli-version.constant-B200rijQ.cjs} +1 -1
  7. package/dist/chunks/compile-application-translations-roDnPf1t.cjs +58 -0
  8. package/dist/chunks/create-metadata-client-DVQbIGNu.cjs +6 -0
  9. package/dist/chunks/extract-manifest-from-file-CaWVLmLU.cjs +1 -0
  10. package/dist/chunks/{extract-source-translations-B-XmoSt7.cjs → extract-source-translations-CBveJ4xT.cjs} +1 -1
  11. package/dist/chunks/{fetch-metadata-inspection-ooyNi2DN.cjs → fetch-metadata-inspection-yvVdh4oY.cjs} +1 -1
  12. package/dist/chunks/{fetch-signed-in-identity-nCzWXunB.cjs → fetch-signed-in-identity-B6fnxBHj.cjs} +1 -1
  13. package/dist/chunks/fetch-workspace-or-throw-C6tCV0YH.cjs +1 -0
  14. package/dist/chunks/{get-client-generation-skip-reason-BZiAtHwa.cjs → get-client-generation-skip-reason-CFgiU52t.cjs} +1 -1
  15. package/dist/chunks/get-mismatched-remote-url-D5jFYvVx.cjs +1 -0
  16. package/dist/chunks/{global-flags.constant-DMHyA_PD.cjs → global-flags.constant-Celofkx1.cjs} +1 -1
  17. package/dist/chunks/{is-valid-package-name-Ds0DY5qP.cjs → is-valid-package-name-zAWZPNrj.cjs} +1 -1
  18. package/dist/chunks/isRestorableApplicationSourcePath-Du_zM55R.cjs +1 -0
  19. package/dist/chunks/parse-app-export-BsxpQED7.cjs +1 -0
  20. package/dist/chunks/pull-minimum-sdk-version.constant-BTfcyhwh.cjs +6 -0
  21. package/dist/chunks/pull-source-CIsoJ2eR.cjs +1 -0
  22. package/dist/chunks/{read-application-identifier-C4U2JsfD.cjs → read-application-identifier-DcBW74TB.cjs} +1 -1
  23. package/dist/chunks/read-application-identity-BrtopaMa.cjs +1 -0
  24. package/dist/chunks/{read-infer-deletion-option-Hv5V-A47.cjs → read-infer-deletion-option-D1HMBsfw.cjs} +1 -1
  25. package/dist/chunks/{read-source-identity-CG9W0pSt.cjs → read-source-identity-CnPDqB6X.cjs} +1 -1
  26. package/dist/chunks/record-pull-base-Dz4BldQf.cjs +1 -0
  27. package/dist/chunks/{resolve-command-target-CLqjjxCT.cjs → resolve-command-target-QjBwHpMj.cjs} +1 -1
  28. package/dist/chunks/{run-app-apply-command-CD7NOdiR.cjs → run-app-apply-command-CCsvdn3A.cjs} +1 -1
  29. package/dist/chunks/{run-app-build-command-C8ubC2GH.cjs → run-app-build-command-Daxe8O14.cjs} +1 -1
  30. package/dist/chunks/{run-app-dev-command-D1JOfJv6.cjs → run-app-dev-command-BPwltUcL.cjs} +1 -1
  31. package/dist/chunks/{run-app-exec-command-cw4vPVHE.cjs → run-app-exec-command-BMhrv7YU.cjs} +1 -1
  32. package/dist/chunks/{run-app-generate-client-command-BVRFtPni.cjs → run-app-generate-client-command-Z-2bRkaH.cjs} +1 -1
  33. package/dist/chunks/{run-app-init-command-DuxE1JhM.cjs → run-app-init-command-B6npylwO.cjs} +1 -1
  34. package/dist/chunks/{run-app-install-command-DlcUupwk.cjs → run-app-install-command-DqPQXj09.cjs} +1 -1
  35. package/dist/chunks/{run-app-operation-DKPh4r7b.cjs → run-app-operation-D_zIxvuw.cjs} +1 -1
  36. package/dist/chunks/{run-app-plan-command-BGQ7vJZT.cjs → run-app-plan-command-pc6mp7th.cjs} +1 -1
  37. package/dist/chunks/{run-app-publish-command-BGNJVIBl.cjs → run-app-publish-command-CflX1x0o.cjs} +1 -1
  38. package/dist/chunks/{run-app-pull-command-NbZ8fjhE.cjs → run-app-pull-command-PCMBNH6R.cjs} +2 -2
  39. package/dist/chunks/{run-app-typecheck-command-D0KV3hFS.cjs → run-app-typecheck-command-DnCMdagB.cjs} +1 -1
  40. package/dist/chunks/{run-app-uninstall-command-CepQk4_4.cjs → run-app-uninstall-command-DWXEgVKe.cjs} +1 -1
  41. package/dist/chunks/run-auth-login-command-DKCO9bot.cjs +1 -0
  42. package/dist/chunks/{run-auth-status-command-Dr4YQuLn.cjs → run-auth-status-command-0vh-ENNj.cjs} +1 -1
  43. package/dist/chunks/{run-cli-oUabLHNz.cjs → run-cli-BG3itvCe.cjs} +1 -1
  44. package/dist/chunks/{run-commands-command-DYm9TuAx.cjs → run-commands-command-CJ7qNty3.cjs} +1 -1
  45. package/dist/chunks/{run-data-export-command-C4_7rc0v.cjs → run-data-export-command-DqyztEHe.cjs} +1 -1
  46. package/dist/chunks/{run-data-get-command-CcEYQ4xO.cjs → run-data-get-command-D7_BdNBa.cjs} +1 -1
  47. package/dist/chunks/{run-data-list-command-D0K7HFD-.cjs → run-data-list-command-ZIpyFE04.cjs} +1 -1
  48. package/dist/chunks/{run-doctor-command-fHf5vCGl.cjs → run-doctor-command-CgWSXl7H.cjs} +1 -1
  49. package/dist/chunks/run-local-start-command-B8N5Jgjd.cjs +1 -0
  50. package/dist/chunks/{run-metadata-field-describe-command-nfKhj-m_.cjs → run-metadata-field-describe-command-DZBqoC6c.cjs} +1 -1
  51. package/dist/chunks/{run-metadata-field-list-command-CW2I6hmh.cjs → run-metadata-field-list-command-3pXf6DzX.cjs} +1 -1
  52. package/dist/chunks/{run-metadata-object-describe-command-WLxcOe4T.cjs → run-metadata-object-describe-command-Dpmt4WVc.cjs} +1 -1
  53. package/dist/chunks/{run-metadata-object-list-command-Q4pwAEwO.cjs → run-metadata-object-list-command-B2PTelCt.cjs} +1 -1
  54. package/dist/chunks/{run-open-command-DPrz3N1e.cjs → run-open-command-B4YhDwqh.cjs} +1 -1
  55. package/dist/chunks/{run-version-command-BWTSv9_Y.cjs → run-version-command-YPMJadrD.cjs} +1 -1
  56. package/dist/chunks/{sign-in-to-remote-again-DFQr-xvw.cjs → sign-in-to-remote-again-D9amgIOZ.cjs} +1 -1
  57. package/dist/chunks/standard-object-fields.constant-jQV_KO0f.cjs +1 -0
  58. package/dist/cli.cjs +1 -1
  59. package/docs/commands.md +6 -3
  60. package/package.json +2 -2
  61. package/src/app/bundles/README.md +7 -0
  62. package/src/app/pull/README.md +26 -10
  63. package/dist/chunks/FileFolder-BmCXp_bX.cjs +0 -1
  64. package/dist/chunks/compile-application-translations-C9UZQCAb.cjs +0 -58
  65. package/dist/chunks/create-metadata-client-FopHnDj0.cjs +0 -6
  66. package/dist/chunks/extract-manifest-from-file-DPDIhnyg.cjs +0 -1
  67. package/dist/chunks/fetch-workspace-or-throw-DHoa_BYF.cjs +0 -1
  68. package/dist/chunks/list-application-source-files-DcyU-HrX.cjs +0 -1
  69. package/dist/chunks/parse-app-export-BC81wdmc.cjs +0 -1
  70. package/dist/chunks/pull-minimum-sdk-version.constant-DUMi_IUD.cjs +0 -6
  71. package/dist/chunks/pull-source-CXQQf8Lw.cjs +0 -1
  72. package/dist/chunks/read-application-identity-5sO-Mqb1.cjs +0 -1
  73. package/dist/chunks/record-pull-base-8bIoAoiB.cjs +0 -1
  74. package/dist/chunks/run-auth-login-command-DpS1bUdL.cjs +0 -1
  75. package/dist/chunks/run-local-start-command-DsFS9_ew.cjs +0 -1
  76. package/dist/chunks/standard-object-fields.constant-C4AVX0t2.cjs +0 -1
@@ -568,20 +568,20 @@ __metadata:
568
568
  linkType: hard
569
569
 
570
570
  "@tabler/icons-react@npm:^3.31.0":
571
- version: 3.51.0
572
- resolution: "@tabler/icons-react@npm:3.51.0"
571
+ version: 3.52.0
572
+ resolution: "@tabler/icons-react@npm:3.52.0"
573
573
  dependencies:
574
- "@tabler/icons": "npm:3.51.0"
574
+ "@tabler/icons": "npm:3.52.0"
575
575
  peerDependencies:
576
576
  react: ">= 16"
577
- checksum: 10c0/e7a1d432dc9c76e1e0f4cd7545130077dec01ef65d247c5fe5fce5ff5cf3fcae2cdd7b953ffac469fb19c84fae528c01088f6e2948af0edaed5f43b21b84ff09
577
+ checksum: 10c0/356a04ea42cc4fdbe9d76d336b493e3d6d768445767cca13b5474997367de069ce4f77512c2b5dd857250b1e6f12d39b92fd47d5e27558b859581a3a4674f8e6
578
578
  languageName: node
579
579
  linkType: hard
580
580
 
581
- "@tabler/icons@npm:3.51.0":
582
- version: 3.51.0
583
- resolution: "@tabler/icons@npm:3.51.0"
584
- checksum: 10c0/bb4e6f0280962adf08c39c98b8493d8ef155fac4afb5928299ddc7d7bc28c6b544123cdd37a34709a5091d6a16759946a78a6133dbaeef73973b1cefed396a62
581
+ "@tabler/icons@npm:3.52.0":
582
+ version: 3.52.0
583
+ resolution: "@tabler/icons@npm:3.52.0"
584
+ checksum: 10c0/80cfbec0e159a7ec6786fd15903e75aa74c037cdcd011ec12ec497f21c85691e794b59175b283e0b667d5b223c09a71d013066b90cf06bb08e080522a47ea38f
585
585
  languageName: node
586
586
  linkType: hard
587
587
 
@@ -834,9 +834,9 @@ __metadata:
834
834
  oxlint: "npm:^0.16.0"
835
835
  react: "npm:^19.0.0"
836
836
  react-dom: "npm:^19.0.0"
837
- twenty-client-sdk: "npm:2.59.0"
838
- twenty-sdk: "npm:2.59.0"
839
- twenty-ui: "npm:2.59.0"
837
+ twenty-client-sdk: "npm:2.60.0"
838
+ twenty-sdk: "npm:2.60.0"
839
+ twenty-ui: "npm:2.60.0"
840
840
  typescript: "npm:^5.9.3"
841
841
  vite-tsconfig-paths: "npm:^4.2.1"
842
842
  vitest: "npm:^4.1.12"
@@ -1426,13 +1426,13 @@ __metadata:
1426
1426
  linkType: hard
1427
1427
 
1428
1428
  "postcss@npm:^8.5.32":
1429
- version: 8.5.32
1430
- resolution: "postcss@npm:8.5.32"
1429
+ version: 8.5.33
1430
+ resolution: "postcss@npm:8.5.33"
1431
1431
  dependencies:
1432
1432
  nanoid: "npm:^3.3.20"
1433
1433
  picocolors: "npm:^1.1.1"
1434
1434
  source-map-js: "npm:^1.2.2"
1435
- checksum: 10c0/5fa6cad84e277c2ced965dc7e8e7c0b8d7e5b76a6835591b57a43fde46e671d0c8428d365e9141c080abaae5441d495ed77ffd7472c5bd41d6c2154bd03c01d7
1435
+ checksum: 10c0/8711c5ad32a798813ae52dd51024881915ecc6171030f9cc1d3766d1969da20ade4cf71a645d7e54668cb45cb9622eac938dc1ce91fe1f9a0fa5f0bc8cbaa05a
1436
1436
  languageName: node
1437
1437
  linkType: hard
1438
1438
 
@@ -1635,9 +1635,9 @@ __metadata:
1635
1635
  linkType: hard
1636
1636
 
1637
1637
  "tabbable@npm:^6.0.0":
1638
- version: 6.5.1
1639
- resolution: "tabbable@npm:6.5.1"
1640
- checksum: 10c0/702c0ae8ca5b611d0312e3d860abcb6b1e35bd52fd3717a0a6ecb436fb680df39bf73a71009afb139a2316e6e27e300753366a05466b4ff76102d60ce13b0826
1638
+ version: 6.5.2
1639
+ resolution: "tabbable@npm:6.5.2"
1640
+ checksum: 10c0/d0b210c93a0a61ff9a0fd448d537f7a69c5fabbddb90b7c8dfbf10c279147c8f7ae64e741fb8d7a0ba73fdf99496f34735c213092a2828a552cc359876b0ada4
1641
1641
  languageName: node
1642
1642
  linkType: hard
1643
1643
 
@@ -1720,37 +1720,37 @@ __metadata:
1720
1720
  languageName: node
1721
1721
  linkType: hard
1722
1722
 
1723
- "twenty-client-sdk@npm:2.59.0":
1724
- version: 2.59.0
1725
- resolution: "twenty-client-sdk@npm:2.59.0"
1723
+ "twenty-client-sdk@npm:2.60.0":
1724
+ version: 2.60.0
1725
+ resolution: "twenty-client-sdk@npm:2.60.0"
1726
1726
  dependencies:
1727
1727
  "@genql/runtime": "npm:^2.10.0"
1728
1728
  esbuild: "npm:^0.28.1"
1729
1729
  graphql: "npm:^16.8.1"
1730
1730
  lodash: "npm:^4.17.21"
1731
1731
  prettier: "npm:^3.8.3"
1732
- checksum: 10c0/56360b71d5b8b8e1043c375510c9758f0c9c2e572840095a2caea62d0837810982ccb5d7902ec64e219a0a520c5fe44d662704551eafbb2e200de71f08a9a382
1732
+ checksum: 10c0/603dbd1f50c175dc27a7b87f028c2c7f47431d84488f84bb66908e3452012eb1179a23a1c805eddfcfbc37a6faf54f56216eda1c0829044132e70139fa4e45cc
1733
1733
  languageName: node
1734
1734
  linkType: hard
1735
1735
 
1736
- "twenty-sdk@npm:2.59.0":
1737
- version: 2.59.0
1738
- resolution: "twenty-sdk@npm:2.59.0"
1736
+ "twenty-sdk@npm:2.60.0":
1737
+ version: 2.60.0
1738
+ resolution: "twenty-sdk@npm:2.60.0"
1739
1739
  dependencies:
1740
1740
  "@sniptt/guards": "npm:^0.2.0"
1741
1741
  esbuild: "npm:^0.28.1"
1742
1742
  preact: "npm:^11.0.0"
1743
1743
  react: "npm:^19.2.0"
1744
1744
  react-dom: "npm:^19.2.0"
1745
- twenty-client-sdk: "npm:2.59.0"
1745
+ twenty-client-sdk: "npm:2.60.0"
1746
1746
  uuid: "npm:^13.0.2"
1747
- checksum: 10c0/ec8c2e8a789961526d3274b5a013997ddf320dc41075eafd1c02cb7a803d759ea724d009813dcf6f64c2cc8a3df475d6b7cbcd557d1c6a199700c993dc70268c
1747
+ checksum: 10c0/e1437e12e74a1acacb86fda535310dd7c998605f92e77129533626f0463b6f4240328f169795584f67fc1209bcac5f707042f458ba6fd578b13942f7ab624dd0
1748
1748
  languageName: node
1749
1749
  linkType: hard
1750
1750
 
1751
- "twenty-ui@npm:2.59.0":
1752
- version: 2.59.0
1753
- resolution: "twenty-ui@npm:2.59.0"
1751
+ "twenty-ui@npm:2.60.0":
1752
+ version: 2.60.0
1753
+ resolution: "twenty-ui@npm:2.60.0"
1754
1754
  dependencies:
1755
1755
  "@base-ui/react": "npm:^1.9.0"
1756
1756
  "@base-ui/utils": "npm:0.5.0"
@@ -1770,7 +1770,7 @@ __metadata:
1770
1770
  optional: true
1771
1771
  monaco-editor:
1772
1772
  optional: true
1773
- checksum: 10c0/a69325acc9398d999077bd8f705892029a2ce99feff7cb4b4b368ce202c4e23d7acb8f936aeb283405dcb733e97bece2065656845804aa8adc19ac08ea815af1
1773
+ checksum: 10c0/5fdedbbd74db59f3551128e0cc8c4f0117a02cbdb38ae485c25510a89b1baca88e4966d71c2a2d23d2776ab42de9322226ddb8f1ba4a9f1768cfe8bee78a1394
1774
1774
  languageName: node
1775
1775
  linkType: hard
1776
1776
 
@@ -1 +1 @@
1
- const e=require("./chunks/build--4zYt4wd.cjs"),t=require("./chunks/isDefined-CJctgvfE.cjs"),n=require("./chunks/isPlainObject-fJEJm71P.cjs");var r=e.t(),i=5e3,a=new AbortController,o,s=e=>{if(n.t(e)){if(e.type===`cancel`||e.type===`release`)return{type:e.type};if(e.type===`readSourceIdentity`||e.type===`buildManifest`||e.type===`typecheckSource`)return(0,r.isNonEmptyString)(e.appPath)?{type:e.type,appPath:e.appPath}:void 0;if(e.type===`bundleSnapshot`)return(0,r.isNonEmptyString)(e.appPath)?{type:`bundleSnapshot`,collectWatchInputs:e.collectWatchInputs===!0,appPath:e.appPath,holdSnapshot:e.holdSnapshot===!0}:void 0;if(e.type===`pull`)return!(0,r.isNonEmptyString)(e.appPath)||!n.t(e.target)||!(0,r.isNonEmptyString)(e.target.apiUrl)||!(0,r.isNonEmptyString)(e.target.workspaceId)||!n.t(e.applicationExport)||!n.t(e.applicationExport.application)||!(0,r.isNonEmptyString)(e.applicationExport.application.universalIdentifier)?void 0:{type:`pull`,appPath:e.appPath,target:{apiUrl:e.target.apiUrl,workspaceId:e.target.workspaceId},applicationExport:e.applicationExport};if(e.type===`extractTranslations`)return(0,r.isNonEmptyString)(e.appPath)&&(!t.t(e.locale)||(0,r.isString)(e.locale))?{type:`extractTranslations`,appPath:e.appPath,locale:e.locale??void 0}:void 0;if(e.type===`generateSourceClient`)return(0,r.isNonEmptyString)(e.appPath)&&(0,r.isString)(e.schema)?{type:`generateSourceClient`,appPath:e.appPath,schema:e.schema}:void 0}},c=e=>{process.connected||process.exit(1),process.send?.(e,void 0,{},()=>process.exit(0))},l=async()=>{if(!t.t(o))return null;let{snapshotApi:e,buildId:n}=o;return o=void 0,e.releaseSourceSnapshot({buildId:n})},u=()=>{l().then(()=>process.exit(1),()=>process.exit(1))},d=e=>{if(!process.connected){u();return}process.send?.(e)},f=e=>{if(!(!n.t(e)||e.success!==!0||!n.t(e.data)))return(0,r.isNonEmptyString)(e.data.buildId)?e.data.buildId:void 0},p=async({snapshotApi:e,appPath:n,holdSnapshot:r})=>{let i=a.signal,s=await e.buildSourceSnapshot({appPath:n,signal:i}),c=f(s);return t.t(c)?r?(o={snapshotApi:e,buildId:c},{type:`result`,result:s,isSnapshotHeld:!0}):{type:`result`,result:s,release:await e.releaseSourceSnapshot({buildId:c}),isSnapshotHeld:!1}:{type:`result`,result:s,isSnapshotHeld:!1}},m=e=>({type:`failure`,message:e instanceof Error?e.message:String(e),...e instanceof Error&&`code`in e&&(0,r.isString)(e.code)?{code:e.code}:{},...e instanceof Error&&`hint`in e&&(0,r.isString)(e.hint)?{hint:e.hint}:{},...e instanceof Error&&`details`in e&&n.t(e.details)?{details:e.details}:{}});process.on(`SIGINT`,()=>void 0),process.on(`disconnect`,()=>{a.abort(),setTimeout(()=>process.exit(1),i),t.t(o)&&u()}),process.on(`message`,e=>{let n=s(e);if(!t.t(n)){c({type:`failure`,message:`The app worker received a request it cannot read.`});return}if(n.type===`cancel`){a.abort();return}if(n.type===`release`){l().then(e=>c({type:`released`,release:e}),e=>c(m(e)));return}if(n.type===`pull`){Promise.resolve().then(()=>require("./chunks/pull-source-CXQQf8Lw.cjs")).then(async({pullSource:e})=>{c({type:`result`,result:await e({...n,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`bundleSnapshot`){Promise.resolve().then(()=>require("./chunks/build-source-snapshot-CUsEVNsQ.cjs")).then(async({buildSourceSnapshot:e,releaseSourceSnapshot:t})=>{let r=()=>p({snapshotApi:{buildSourceSnapshot:e,releaseSourceSnapshot:t},appPath:n.appPath,holdSnapshot:n.holdSnapshot});if(!n.collectWatchInputs)return r();let{collectWatchInputs:i}=await Promise.resolve().then(()=>require("./chunks/collect-watch-inputs-DfWAkX1r.cjs")).then(e=>e.t),{recordTypecheckConfigInputs:a}=await Promise.resolve().then(()=>require("./chunks/record-typecheck-config-inputs-U2RUjjp9.cjs")),o=await i(async()=>(await a(n.appPath),r()));return{...o.result,watchInputs:o.watchInputs}}).then(e=>e.type===`result`&&e.isSnapshotHeld?d(e):c(e),e=>c(m(e)));return}if(n.type===`typecheckSource`){Promise.resolve().then(()=>require("./chunks/typecheck-application-8A504oUF.cjs")).then(e=>e.n).then(async({typecheckApplication:e})=>{c({type:`result`,result:await e({appPath:n.appPath,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`extractTranslations`){Promise.resolve().then(()=>require("./chunks/extract-source-translations-B-XmoSt7.cjs")).then(async({extractSourceTranslations:e})=>{c({type:`result`,result:await e({appPath:n.appPath,locale:n.locale,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`buildManifest`){Promise.resolve().then(()=>require("./chunks/build-source-manifest-Ddwa8ath.cjs")).then(async({buildSourceManifest:e})=>{c({type:`result`,result:await e({appPath:n.appPath,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`readSourceIdentity`){Promise.resolve().then(()=>require("./chunks/read-source-identity-CG9W0pSt.cjs")).then(async({readSourceIdentity:e})=>{c({type:`result`,result:await e({appPath:n.appPath,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`generateSourceClient`){Promise.resolve().then(()=>require("./chunks/generate-application-client-Dlp_O7qk.cjs")).then(async({generateApplicationClient:e})=>{c({type:`result`,result:await e({appPath:n.appPath,schema:n.schema,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}});
1
+ const e=require("./chunks/build--4zYt4wd.cjs"),t=require("./chunks/isDefined-CJctgvfE.cjs"),n=require("./chunks/isPlainObject-fJEJm71P.cjs");var r=e.t(),i=5e3,a=new AbortController,o,s=e=>{if(n.t(e)){if(e.type===`cancel`||e.type===`release`)return{type:e.type};if(e.type===`readSourceIdentity`||e.type===`buildManifest`||e.type===`typecheckSource`)return(0,r.isNonEmptyString)(e.appPath)?{type:e.type,appPath:e.appPath}:void 0;if(e.type===`bundleSnapshot`)return(0,r.isNonEmptyString)(e.appPath)?{type:`bundleSnapshot`,collectWatchInputs:e.collectWatchInputs===!0,appPath:e.appPath,holdSnapshot:e.holdSnapshot===!0}:void 0;if(e.type===`pull`)return!(0,r.isNonEmptyString)(e.appPath)||!n.t(e.target)||!(0,r.isNonEmptyString)(e.target.apiUrl)||!(0,r.isNonEmptyString)(e.target.workspaceId)||!n.t(e.applicationExport)||!n.t(e.applicationExport.application)||!(0,r.isNonEmptyString)(e.applicationExport.application.universalIdentifier)?void 0:{type:`pull`,appPath:e.appPath,target:{apiUrl:e.target.apiUrl,workspaceId:e.target.workspaceId},applicationExport:e.applicationExport};if(e.type===`extractTranslations`)return(0,r.isNonEmptyString)(e.appPath)&&(!t.t(e.locale)||(0,r.isString)(e.locale))?{type:`extractTranslations`,appPath:e.appPath,locale:e.locale??void 0}:void 0;if(e.type===`generateSourceClient`)return(0,r.isNonEmptyString)(e.appPath)&&(0,r.isString)(e.schema)?{type:`generateSourceClient`,appPath:e.appPath,schema:e.schema}:void 0}},c=e=>{process.connected||process.exit(1),process.send?.(e,void 0,{},()=>process.exit(0))},l=async()=>{if(!t.t(o))return null;let{snapshotApi:e,buildId:n}=o;return o=void 0,e.releaseSourceSnapshot({buildId:n})},u=()=>{l().then(()=>process.exit(1),()=>process.exit(1))},d=e=>{if(!process.connected){u();return}process.send?.(e)},f=e=>{if(!(!n.t(e)||e.success!==!0||!n.t(e.data)))return(0,r.isNonEmptyString)(e.data.buildId)?e.data.buildId:void 0},p=async({snapshotApi:e,appPath:n,holdSnapshot:r})=>{let i=a.signal,s=await e.buildSourceSnapshot({appPath:n,signal:i}),c=f(s);return t.t(c)?r?(o={snapshotApi:e,buildId:c},{type:`result`,result:s,isSnapshotHeld:!0}):{type:`result`,result:s,release:await e.releaseSourceSnapshot({buildId:c}),isSnapshotHeld:!1}:{type:`result`,result:s,isSnapshotHeld:!1}},m=e=>({type:`failure`,message:e instanceof Error?e.message:String(e),...e instanceof Error&&`code`in e&&(0,r.isString)(e.code)?{code:e.code}:{},...e instanceof Error&&`hint`in e&&(0,r.isString)(e.hint)?{hint:e.hint}:{},...e instanceof Error&&`details`in e&&n.t(e.details)?{details:e.details}:{}});process.on(`SIGINT`,()=>void 0),process.on(`disconnect`,()=>{a.abort(),setTimeout(()=>process.exit(1),i),t.t(o)&&u()}),process.on(`message`,e=>{let n=s(e);if(!t.t(n)){c({type:`failure`,message:`The app worker received a request it cannot read.`});return}if(n.type===`cancel`){a.abort();return}if(n.type===`release`){l().then(e=>c({type:`released`,release:e}),e=>c(m(e)));return}if(n.type===`pull`){Promise.resolve().then(()=>require("./chunks/pull-source-CIsoJ2eR.cjs")).then(async({pullSource:e})=>{c({type:`result`,result:await e({...n,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`bundleSnapshot`){Promise.resolve().then(()=>require("./chunks/build-source-snapshot-Dchjr_ga.cjs")).then(async({buildSourceSnapshot:e,releaseSourceSnapshot:t})=>{let r=()=>p({snapshotApi:{buildSourceSnapshot:e,releaseSourceSnapshot:t},appPath:n.appPath,holdSnapshot:n.holdSnapshot});if(!n.collectWatchInputs)return r();let{collectWatchInputs:i}=await Promise.resolve().then(()=>require("./chunks/collect-watch-inputs-DfWAkX1r.cjs")).then(e=>e.t),{recordTypecheckConfigInputs:a}=await Promise.resolve().then(()=>require("./chunks/record-typecheck-config-inputs-U2RUjjp9.cjs")),o=await i(async()=>(await a(n.appPath),r()));return{...o.result,watchInputs:o.watchInputs}}).then(e=>e.type===`result`&&e.isSnapshotHeld?d(e):c(e),e=>c(m(e)));return}if(n.type===`typecheckSource`){Promise.resolve().then(()=>require("./chunks/typecheck-application-8A504oUF.cjs")).then(e=>e.n).then(async({typecheckApplication:e})=>{c({type:`result`,result:await e({appPath:n.appPath,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`extractTranslations`){Promise.resolve().then(()=>require("./chunks/extract-source-translations-CBveJ4xT.cjs")).then(async({extractSourceTranslations:e})=>{c({type:`result`,result:await e({appPath:n.appPath,locale:n.locale,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`buildManifest`){Promise.resolve().then(()=>require("./chunks/build-source-manifest-CiNlHV98.cjs")).then(async({buildSourceManifest:e})=>{c({type:`result`,result:await e({appPath:n.appPath,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`readSourceIdentity`){Promise.resolve().then(()=>require("./chunks/read-source-identity-CnPDqB6X.cjs")).then(async({readSourceIdentity:e})=>{c({type:`result`,result:await e({appPath:n.appPath,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}if(n.type===`generateSourceClient`){Promise.resolve().then(()=>require("./chunks/generate-application-client-Dlp_O7qk.cjs")).then(async({generateApplicationClient:e})=>{c({type:`result`,result:await e({appPath:n.appPath,schema:n.schema,signal:a.signal}),isSnapshotHeld:!1})}).catch(e=>c(m(e)));return}});
@@ -0,0 +1 @@
1
+ const e=require("./AssetDirectory-c_JEwMr2.cjs");var t=[`**/*.ts`,`**/*.tsx`],n=[`**/node_modules/**`,`${e.t}/**`,`**/*.d.ts`,`**/dist/**`,`**/.twenty/**`];Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}});
@@ -1,2 +1,2 @@
1
- const e=require("./compile-application-translations-C9UZQCAb.cjs"),t=require("./cli-error-CrUD8uMp.cjs"),n=require("./get-tooling-error-context-CZKTM7Q6.cjs"),r=require("./resolve-source-sdk-C4Hu045V.cjs");let i=require("esbuild");var a=async({appPath:a,signal:o})=>{let s=[],c=e=>{s.push({severity:`warning`,code:`BUILD_WARNING`,message:e})};try{o.throwIfAborted(),await r.t({appPath:a});let t=await e.r(a);if(o.throwIfAborted(),!t.success)return{success:!1,error:{code:`MANIFEST_BUILD_FAILED`,message:t.errors.join(`
1
+ const e=require("./compile-application-translations-roDnPf1t.cjs"),t=require("./cli-error-CrUD8uMp.cjs"),n=require("./get-tooling-error-context-CZKTM7Q6.cjs"),r=require("./resolve-source-sdk-C4Hu045V.cjs");let i=require("esbuild");var a=async({appPath:a,signal:o})=>{let s=[],c=e=>{s.push({severity:`warning`,code:`BUILD_WARNING`,message:e})};try{o.throwIfAborted(),await r.t({appPath:a});let t=await e.r(a);if(o.throwIfAborted(),!t.success)return{success:!1,error:{code:`MANIFEST_BUILD_FAILED`,message:t.errors.join(`
2
2
  `)},diagnostics:t.errors.map(e=>({severity:`error`,code:`MANIFEST_BUILD_FAILED`,message:e}))};t.warnings.forEach(c);let n=await e.t({appPath:a,onWarning:c});return o.throwIfAborted(),{success:!0,data:{manifest:{...t.manifest,translations:n},filePaths:t.filePaths},diagnostics:s}}catch(e){return{success:!1,error:{code:o.aborted?`CANCELLED`:e instanceof t.t?e.code:`MANIFEST_BUILD_FAILED`,message:e instanceof Error?e.message:String(e),...n.t(e)},diagnostics:s}}finally{await(0,i.stop)()}};exports.buildSourceManifest=a;