twenty 2.60.0 → 2.61.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 (84) hide show
  1. package/dist/app-template/yarn.lock +25 -25
  2. package/dist/app-worker.cjs +1 -1
  3. package/dist/chunks/{build-source-manifest-CiNlHV98.cjs → build-source-manifest-DQ5YF5PV.cjs} +1 -1
  4. package/dist/chunks/{build-source-snapshot-Dchjr_ga.cjs → build-source-snapshot-DIjGWX_5.cjs} +20 -20
  5. package/dist/chunks/{cli-version.constant-B200rijQ.cjs → cli-version.constant-Dn-WFWf8.cjs} +1 -1
  6. package/dist/chunks/collect-watch-inputs-Cj9epSJw.cjs +1 -0
  7. package/dist/chunks/compile-application-translations-CDykMbFf.cjs +58 -0
  8. package/dist/chunks/create-metadata-client-CrOsu4u3.cjs +6 -0
  9. package/dist/chunks/{create-rest-client-HbzXSfhZ.cjs → create-rest-client-D3ZXtAxc.cjs} +1 -1
  10. package/dist/chunks/{extract-manifest-from-file-CaWVLmLU.cjs → extract-manifest-from-file-B3pazFD1.cjs} +1 -1
  11. package/dist/chunks/{extract-source-translations-CBveJ4xT.cjs → extract-source-translations-b9c2CH4w.cjs} +1 -1
  12. package/dist/chunks/{fetch-metadata-inspection-yvVdh4oY.cjs → fetch-metadata-inspection-DN8am1j0.cjs} +1 -1
  13. package/dist/chunks/{fetch-signed-in-identity-B6fnxBHj.cjs → fetch-signed-in-identity-kgzejZg2.cjs} +1 -1
  14. package/dist/chunks/fetch-workspace-or-throw-BIu0K3A-.cjs +1 -0
  15. package/dist/chunks/fs-utils-BcNux7fF.cjs +2 -0
  16. package/dist/chunks/{get-client-generation-skip-reason-CFgiU52t.cjs → get-client-generation-skip-reason-C_oaO89K.cjs} +1 -1
  17. package/dist/chunks/global-flags.constant-JcdNC5G1.cjs +1 -0
  18. package/dist/chunks/is-exported-manifest-BHA_mGa6.cjs +1 -0
  19. package/dist/chunks/{is-valid-package-name-zAWZPNrj.cjs → is-valid-package-name-o_jWsuUX.cjs} +1 -1
  20. package/dist/chunks/parse-app-export-B9Ocghe1.cjs +1 -0
  21. package/dist/chunks/{pull-minimum-sdk-version.constant-BTfcyhwh.cjs → pull-minimum-sdk-version.constant-DOAFtDDD.cjs} +2 -2
  22. package/dist/chunks/pull-source-B5Hot5CI.cjs +1 -0
  23. package/dist/chunks/{read-app-identity-Cny6sAGs.cjs → read-app-identity-M47izSWp.cjs} +1 -1
  24. package/dist/chunks/{read-application-identifier-DcBW74TB.cjs → read-application-identifier-BlEwa2gR.cjs} +1 -1
  25. package/dist/chunks/{read-application-identity-BrtopaMa.cjs → read-application-identity-CYKNL1g5.cjs} +1 -1
  26. package/dist/chunks/{read-infer-deletion-option-D1HMBsfw.cjs → read-infer-deletion-option-DeyWsiCS.cjs} +1 -1
  27. package/dist/chunks/{read-source-identity-CnPDqB6X.cjs → read-source-identity-bo4jC2Dh.cjs} +1 -1
  28. package/dist/chunks/read-watch-input-stamp-DKJ-Plk2.cjs +1 -0
  29. package/dist/chunks/{record-pull-base-Dz4BldQf.cjs → record-pull-base-DKrQDDmc.cjs} +1 -1
  30. package/dist/chunks/{record-typecheck-config-inputs-U2RUjjp9.cjs → record-typecheck-config-inputs-BMV55iFx.cjs} +1 -1
  31. package/dist/chunks/{resolve-command-target-QjBwHpMj.cjs → resolve-command-target-B9QG8OZs.cjs} +1 -1
  32. package/dist/chunks/{resolve-project-typescript-DO4LrLr-.cjs → resolve-project-typescript-DjMUr6ks.cjs} +1 -1
  33. package/dist/chunks/{resolve-source-sdk-C4Hu045V.cjs → resolve-source-sdk-BDwffWHb.cjs} +1 -1
  34. package/dist/chunks/{run-app-add-command-b9sm20rn.cjs → run-app-add-command-De3cIhU0.cjs} +1 -1
  35. package/dist/chunks/{run-app-apply-command-CCsvdn3A.cjs → run-app-apply-command-BXVHKrW3.cjs} +2 -2
  36. package/dist/chunks/{run-app-build-command-Daxe8O14.cjs → run-app-build-command-BMwzOOov.cjs} +1 -1
  37. package/dist/chunks/run-app-dev-command-Bg4zIJnX.cjs +3 -0
  38. package/dist/chunks/{run-app-exec-command-BMhrv7YU.cjs → run-app-exec-command-BOhA0aZN.cjs} +1 -1
  39. package/dist/chunks/{run-app-generate-client-command-Z-2bRkaH.cjs → run-app-generate-client-command-B7p5M_hN.cjs} +1 -1
  40. package/dist/chunks/{run-app-init-command-B6npylwO.cjs → run-app-init-command-DJ0UipFh.cjs} +1 -1
  41. package/dist/chunks/{run-app-install-command-DqPQXj09.cjs → run-app-install-command-CsK8l0Ou.cjs} +1 -1
  42. package/dist/chunks/{run-app-logs-command-CaLIVesh.cjs → run-app-logs-command-COAdNMuL.cjs} +1 -1
  43. package/dist/chunks/{run-app-operation-D_zIxvuw.cjs → run-app-operation-B4JecUV7.cjs} +1 -1
  44. package/dist/chunks/{run-app-plan-command-pc6mp7th.cjs → run-app-plan-command-hASkfDaJ.cjs} +1 -1
  45. package/dist/chunks/{run-app-publish-command-CflX1x0o.cjs → run-app-publish-command-ClsjL5OP.cjs} +1 -1
  46. package/dist/chunks/{run-app-pull-command-PCMBNH6R.cjs → run-app-pull-command-BfHIuJ1m.cjs} +1 -1
  47. package/dist/chunks/{run-app-translations-extract-command-CGIFvpC1.cjs → run-app-translations-extract-command-DHIEEFXs.cjs} +1 -1
  48. package/dist/chunks/{run-app-typecheck-command-DnCMdagB.cjs → run-app-typecheck-command--4NoTac-.cjs} +1 -1
  49. package/dist/chunks/{run-app-uninstall-command-DWXEgVKe.cjs → run-app-uninstall-command-ClRoCRjv.cjs} +1 -1
  50. package/dist/chunks/{run-auth-login-command-DKCO9bot.cjs → run-auth-login-command-p9VHNoqZ.cjs} +1 -1
  51. package/dist/chunks/{run-auth-status-command-0vh-ENNj.cjs → run-auth-status-command-CdqOc2-Q.cjs} +1 -1
  52. package/dist/chunks/{run-cli-BG3itvCe.cjs → run-cli-CgBPkP_r.cjs} +3 -3
  53. package/dist/chunks/{run-commands-command-CJ7qNty3.cjs → run-commands-command-BF3y7Dz2.cjs} +1 -1
  54. package/dist/chunks/{run-data-export-command-DqyztEHe.cjs → run-data-export-command-ca_JYOnT.cjs} +1 -1
  55. package/dist/chunks/{run-data-get-command-D7_BdNBa.cjs → run-data-get-command-BZTsbTvb.cjs} +1 -1
  56. package/dist/chunks/{run-data-list-command-ZIpyFE04.cjs → run-data-list-command-UI5hngdt.cjs} +1 -1
  57. package/dist/chunks/{run-doctor-command-CgWSXl7H.cjs → run-doctor-command-B_bcpjAT.cjs} +2 -2
  58. package/dist/chunks/{run-metadata-field-describe-command-DZBqoC6c.cjs → run-metadata-field-describe-command-CH7Yob_y.cjs} +1 -1
  59. package/dist/chunks/{run-metadata-field-list-command-3pXf6DzX.cjs → run-metadata-field-list-command-BzxIj9tX.cjs} +1 -1
  60. package/dist/chunks/{run-metadata-object-describe-command-Dpmt4WVc.cjs → run-metadata-object-describe-command-BF9FzF06.cjs} +1 -1
  61. package/dist/chunks/{run-metadata-object-list-command-B2PTelCt.cjs → run-metadata-object-list-command-Tk_Fjfc5.cjs} +1 -1
  62. package/dist/chunks/{run-open-command-B4YhDwqh.cjs → run-open-command-BldBUk02.cjs} +1 -1
  63. package/dist/chunks/{run-version-command-YPMJadrD.cjs → run-version-command-B_6F7XYT.cjs} +1 -1
  64. package/dist/chunks/{sign-in-to-remote-again-D9amgIOZ.cjs → sign-in-to-remote-again-BqU_-38L.cjs} +1 -1
  65. package/dist/chunks/standard-object-fields.constant-CA16BdJ2.cjs +1 -0
  66. package/dist/chunks/{typecheck-application-8A504oUF.cjs → typecheck-application-CiGxmS69.cjs} +1 -1
  67. package/dist/cli.cjs +1 -1
  68. package/docs/commands.md +45 -20
  69. package/package.json +2 -2
  70. package/src/app/bundles/README.md +4 -5
  71. package/src/app/dev/README.md +13 -1
  72. package/src/app/pull/README.md +43 -26
  73. package/dist/chunks/collect-watch-inputs-DfWAkX1r.cjs +0 -1
  74. package/dist/chunks/compile-application-translations-roDnPf1t.cjs +0 -58
  75. package/dist/chunks/create-metadata-client-DVQbIGNu.cjs +0 -6
  76. package/dist/chunks/fetch-workspace-or-throw-C6tCV0YH.cjs +0 -1
  77. package/dist/chunks/fs-utils-DoSmCBu8.cjs +0 -2
  78. package/dist/chunks/global-flags.constant-Celofkx1.cjs +0 -1
  79. package/dist/chunks/is-exported-manifest-C4lO285q.cjs +0 -1
  80. package/dist/chunks/parse-app-export-BsxpQED7.cjs +0 -1
  81. package/dist/chunks/pull-source-CIsoJ2eR.cjs +0 -1
  82. package/dist/chunks/read-watch-input-stamp-BxeOb0vI.cjs +0 -1
  83. package/dist/chunks/run-app-dev-command-BPwltUcL.cjs +0 -2
  84. package/dist/chunks/standard-object-fields.constant-jQV_KO0f.cjs +0 -1
@@ -586,11 +586,11 @@ __metadata:
586
586
  linkType: hard
587
587
 
588
588
  "@tybys/wasm-util@npm:^0.10.3":
589
- version: 0.10.4
590
- resolution: "@tybys/wasm-util@npm:0.10.4"
589
+ version: 0.10.5
590
+ resolution: "@tybys/wasm-util@npm:0.10.5"
591
591
  dependencies:
592
592
  tslib: "npm:^2.4.0"
593
- checksum: 10c0/27947f254efa3f2bc41f47040f57f41c246200c6439a9fd54c69f50940e320022c320275f138e30b543ee81ce69593905dfa7ba0831577ab636f829aafa70701
593
+ checksum: 10c0/3734c712e0ccc926f319b8965b93208def4e5faaf0124bb5ae540d9919ebfd28a7183d72792a5b002b01e05b0e8c71c78d9432732dbc7f3f2b1de0c407d85e9a
594
594
  languageName: node
595
595
  linkType: hard
596
596
 
@@ -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.60.0"
838
- twenty-sdk: "npm:2.60.0"
839
- twenty-ui: "npm:2.60.0"
837
+ twenty-client-sdk: "npm:2.61.0"
838
+ twenty-sdk: "npm:2.61.0"
839
+ twenty-ui: "npm:2.61.0"
840
840
  typescript: "npm:^5.9.3"
841
841
  vite-tsconfig-paths: "npm:^4.2.1"
842
842
  vitest: "npm:^4.1.12"
@@ -900,9 +900,9 @@ __metadata:
900
900
  linkType: hard
901
901
 
902
902
  "csstype@npm:^3.2.2":
903
- version: 3.2.3
904
- resolution: "csstype@npm:3.2.3"
905
- checksum: 10c0/cd29c51e70fa822f1cecd8641a1445bed7063697469d35633b516e60fe8c1bde04b08f6c5b6022136bb669b64c63d4173af54864510fbb4ee23281801841a3ce
903
+ version: 3.2.4
904
+ resolution: "csstype@npm:3.2.4"
905
+ checksum: 10c0/29568f520e1e47b2e6e88e2cffe3b5369f08c1245c73e69595623cafb38816bd353387e0d665ce4330cfe2c9244f2a4671abe761cbd0b535bc27fab12b6b8a25
906
906
  languageName: node
907
907
  linkType: hard
908
908
 
@@ -1592,9 +1592,9 @@ __metadata:
1592
1592
  linkType: hard
1593
1593
 
1594
1594
  "source-map-js@npm:^1.2.2":
1595
- version: 1.2.2
1596
- resolution: "source-map-js@npm:1.2.2"
1597
- checksum: 10c0/d5d6dec62266834f83dd4f8a2606a196fb1a006ca5d53b0ef80ee513b7eba2f4e2ae241f4bc129ae7e9b80dea24f6e3d92b446b7e6e96be7653cab8888168a94
1595
+ version: 1.2.4
1596
+ resolution: "source-map-js@npm:1.2.4"
1597
+ checksum: 10c0/b0fb346b142e89a19fa3299a259d8c0dc66626321634c30df260b2e8a1d4c1e219a6a28e8d10617cc54e7816d94eff5c4edd96e208172e93efc2c6fd75b111c6
1598
1598
  languageName: node
1599
1599
  linkType: hard
1600
1600
 
@@ -1720,37 +1720,37 @@ __metadata:
1720
1720
  languageName: node
1721
1721
  linkType: hard
1722
1722
 
1723
- "twenty-client-sdk@npm:2.60.0":
1724
- version: 2.60.0
1725
- resolution: "twenty-client-sdk@npm:2.60.0"
1723
+ "twenty-client-sdk@npm:2.61.0":
1724
+ version: 2.61.0
1725
+ resolution: "twenty-client-sdk@npm:2.61.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/603dbd1f50c175dc27a7b87f028c2c7f47431d84488f84bb66908e3452012eb1179a23a1c805eddfcfbc37a6faf54f56216eda1c0829044132e70139fa4e45cc
1732
+ checksum: 10c0/883f4071b8f92547a7694611183a858fd44abe19c7274cc8600fd3d2fbfd1d6633150917484b6c8ca1fa563bd941667504e8cab5aa1541ed9ee364a3a34de4ee
1733
1733
  languageName: node
1734
1734
  linkType: hard
1735
1735
 
1736
- "twenty-sdk@npm:2.60.0":
1737
- version: 2.60.0
1738
- resolution: "twenty-sdk@npm:2.60.0"
1736
+ "twenty-sdk@npm:2.61.0":
1737
+ version: 2.61.0
1738
+ resolution: "twenty-sdk@npm:2.61.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.60.0"
1745
+ twenty-client-sdk: "npm:2.61.0"
1746
1746
  uuid: "npm:^13.0.2"
1747
- checksum: 10c0/e1437e12e74a1acacb86fda535310dd7c998605f92e77129533626f0463b6f4240328f169795584f67fc1209bcac5f707042f458ba6fd578b13942f7ab624dd0
1747
+ checksum: 10c0/5a6bf9777681663d4754ff9f8ceca9025adef6b6c4022ed2a729e0fd33fd52210fbb341028267befcc3839ca2bd4f0f38c28d6da5893f9b4ab29faf6e1fa294b
1748
1748
  languageName: node
1749
1749
  linkType: hard
1750
1750
 
1751
- "twenty-ui@npm:2.60.0":
1752
- version: 2.60.0
1753
- resolution: "twenty-ui@npm:2.60.0"
1751
+ "twenty-ui@npm:2.61.0":
1752
+ version: 2.61.0
1753
+ resolution: "twenty-ui@npm:2.61.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/5fdedbbd74db59f3551128e0cc8c4f0117a02cbdb38ae485c25510a89b1baca88e4966d71c2a2d23d2776ab42de9322226ddb8f1ba4a9f1768cfe8bee78a1394
1773
+ checksum: 10c0/44ac2e56110bb7938020f49aa11ee47a16feca47c20ad6b96087c8ae6951218e20c14dcec37ae52f06a330cf47eb74b1ea0804901f115b7b18faf44ddad3cb28
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-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}});
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-B5Hot5CI.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-DIjGWX_5.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-Cj9epSJw.cjs")).then(e=>e.t),{recordTypecheckConfigInputs:a}=await Promise.resolve().then(()=>require("./chunks/record-typecheck-config-inputs-BMV55iFx.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-CiGxmS69.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-b9c2CH4w.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-DQ5YF5PV.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-bo4jC2Dh.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,2 +1,2 @@
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(`
1
+ const e=require("./compile-application-translations-CDykMbFf.cjs"),t=require("./cli-error-CrUD8uMp.cjs"),n=require("./get-tooling-error-context-CZKTM7Q6.cjs"),r=require("./resolve-source-sdk-BDwffWHb.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;