twenty 2.60.0 → 2.62.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 +28 -28
  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-DNNCqpbE.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-BTLenEIm.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-D45BvG-t.cjs} +1 -1
  13. package/dist/chunks/{fetch-signed-in-identity-B6fnxBHj.cjs → fetch-signed-in-identity-CI1CRnos.cjs} +1 -1
  14. package/dist/chunks/fetch-workspace-or-throw-8afzHT9W.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-C3VEtb-R.cjs} +1 -1
  17. package/dist/chunks/global-flags.constant-Bwz4LCEy.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-DCxejisa.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-Ch3TuO_n.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-Cq68tV7k.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-DtY9aRif.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-BZJtWdPy.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-Dh4lc8hj.cjs} +2 -2
  36. package/dist/chunks/{run-app-build-command-Daxe8O14.cjs → run-app-build-command-DDgaL02E.cjs} +1 -1
  37. package/dist/chunks/run-app-dev-command-B4KTmf_z.cjs +3 -0
  38. package/dist/chunks/{run-app-exec-command-BMhrv7YU.cjs → run-app-exec-command-kY1eL1r5.cjs} +1 -1
  39. package/dist/chunks/{run-app-generate-client-command-Z-2bRkaH.cjs → run-app-generate-client-command-QkxVxVx_.cjs} +1 -1
  40. package/dist/chunks/{run-app-init-command-B6npylwO.cjs → run-app-init-command-DSkO13d-.cjs} +1 -1
  41. package/dist/chunks/{run-app-install-command-DqPQXj09.cjs → run-app-install-command-Bi0zzk4A.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-CDJvAttZ.cjs} +1 -1
  44. package/dist/chunks/{run-app-plan-command-pc6mp7th.cjs → run-app-plan-command-C6eyLLLO.cjs} +1 -1
  45. package/dist/chunks/{run-app-publish-command-CflX1x0o.cjs → run-app-publish-command-DQ6vzJgn.cjs} +1 -1
  46. package/dist/chunks/{run-app-pull-command-PCMBNH6R.cjs → run-app-pull-command-BXUC3k0e.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-4K_pP5i8.cjs} +1 -1
  49. package/dist/chunks/{run-app-uninstall-command-DWXEgVKe.cjs → run-app-uninstall-command-OmmIgnAn.cjs} +1 -1
  50. package/dist/chunks/{run-auth-login-command-DKCO9bot.cjs → run-auth-login-command-DZAiuNqZ.cjs} +1 -1
  51. package/dist/chunks/{run-auth-status-command-0vh-ENNj.cjs → run-auth-status-command-CqN2SXlq.cjs} +1 -1
  52. package/dist/chunks/{run-cli-BG3itvCe.cjs → run-cli-YPcCDqcg.cjs} +3 -3
  53. package/dist/chunks/{run-commands-command-CJ7qNty3.cjs → run-commands-command-DgnWg2rh.cjs} +1 -1
  54. package/dist/chunks/{run-data-export-command-DqyztEHe.cjs → run-data-export-command-B1rmhaKc.cjs} +1 -1
  55. package/dist/chunks/{run-data-get-command-D7_BdNBa.cjs → run-data-get-command-B4nBUwrU.cjs} +1 -1
  56. package/dist/chunks/{run-data-list-command-ZIpyFE04.cjs → run-data-list-command-D2HsR6ru.cjs} +1 -1
  57. package/dist/chunks/{run-doctor-command-CgWSXl7H.cjs → run-doctor-command-BkyTVduO.cjs} +2 -2
  58. package/dist/chunks/{run-metadata-field-describe-command-DZBqoC6c.cjs → run-metadata-field-describe-command-BjvbEGss.cjs} +1 -1
  59. package/dist/chunks/{run-metadata-field-list-command-3pXf6DzX.cjs → run-metadata-field-list-command-CjiAlmp4.cjs} +1 -1
  60. package/dist/chunks/{run-metadata-object-describe-command-Dpmt4WVc.cjs → run-metadata-object-describe-command-BRKyHBUi.cjs} +1 -1
  61. package/dist/chunks/{run-metadata-object-list-command-B2PTelCt.cjs → run-metadata-object-list-command-CBzwm3R1.cjs} +1 -1
  62. package/dist/chunks/{run-open-command-B4YhDwqh.cjs → run-open-command-BNJTwnxV.cjs} +1 -1
  63. package/dist/chunks/{run-version-command-YPMJadrD.cjs → run-version-command-C2_qC5Qa.cjs} +1 -1
  64. package/dist/chunks/{sign-in-to-remote-again-D9amgIOZ.cjs → sign-in-to-remote-again-CpUKz_mi.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
package/docs/commands.md CHANGED
@@ -803,6 +803,10 @@ files may be incomplete: fix the problem, then run `twenty app generate-client`,
803
803
  which regenerates the client without syncing again. Ctrl+C exits with 130 and
804
804
  reports the step it interrupted.
805
805
 
806
+ Apply and dev record component and logic function definitions from the manifest
807
+ just synced. They fetch the other baseline metadata without downloading source
808
+ files again.
809
+
806
810
  Remote changes made between the plan and the sync can change what the sync does.
807
811
  Remote changes between the acknowledged sync and the export can also enter the
808
812
  saved baseline without appearing in local source; this is not an atomic server
@@ -827,8 +831,24 @@ apply.
827
831
 
828
832
  The CLI watches the app folder and the external local files read by definition
829
833
  loading, bundling and typechecking, including linked packages and extended
830
- TypeScript configs. Relative imports of missing external files watch the nearest
831
- existing parent, so creating the file can recover a failed build.
834
+ TypeScript configs. Existing external paths use native filesystem events.
835
+ Watchers reattach after atomic saves. Missing or deleted paths use exact-path
836
+ recovery checks once per second, stopped as soon as native watching resumes.
837
+ Recovery does not expand into parent directories.
838
+ Relative imports of missing external files observe the nearest allowed directory
839
+ to recover when the file is created.
840
+
841
+ Home and temporary directory roots, their ancestors and filesystem roots are
842
+ excluded from automatic directory observation, including symlink aliases.
843
+ Known files in those locations remain watched. If an unresolved import needs an
844
+ excluded directory, dev prints `WATCH_SCOPE_LIMITED`; after fixing the import,
845
+ edit an app file or restart dev.
846
+
847
+ Use `twenty app dev --verbose` to list the app folder, external files, shallow
848
+ external directories and excluded directories. The list appears after the first
849
+ build attempt and whenever those paths change, including after a failed build.
850
+ With `--format ndjson`, `watch-scope` progress events include `appPath`,
851
+ `filePaths`, `directoryPaths` and `excludedDirectoryPaths`.
832
852
 
833
853
  The last successful input graph stays watched after a failure. `.git`,
834
854
  `.twenty`, `node_modules`, root `dist`, editor temporary files and `.DS_Store`
@@ -952,18 +972,19 @@ dependencies automatically.
952
972
 
953
973
  ### What is restored
954
974
 
955
- | Content | Local result | Limits |
956
- | ----------------------------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
957
- | Supported metadata and translations | App definitions and locale catalogs | Unsupported metadata is reported, not regenerated |
958
- | Workflows | `defineWorkflow` files in `src/workflows` | Unsupported steps or references leave the local file intact |
959
- | Skills and agents | `defineSkill` and `defineAgent` files in `src/skills` and `src/agents` | Definitions the server cannot reproduce become coverage gaps |
960
- | Front component source | Original TSX, preserving identifiers and supported widget references | Inventoried local imports, configs and assets are restored; missing source becomes a coverage gap |
961
- | Dependencies | `package.json` and `yarn.lock` at the project root | Only the stored `dependencies` pair is restored |
962
- | Public assets | Exact image, font and other asset bytes under `public/` | Only `public-asset` files with safe paths are accepted |
975
+ | Content | Local result | Limits |
976
+ | ----------------------------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
977
+ | Supported metadata and translations | App definitions and locale catalogs | Unsupported metadata is reported, not regenerated |
978
+ | Workflows | `defineWorkflow` files in `src/workflows` | Unsupported steps or references leave the local file intact |
979
+ | Skills and agents | `defineSkill` and `defineAgent` files in `src/skills` and `src/agents` | Definitions the server cannot reproduce become coverage gaps |
980
+ | Front component source | Original TSX, preserving identifiers and supported widget references | Inventoried local imports, configs and assets are restored; missing source becomes a coverage gap |
981
+ | Logic function source | Original definitions, handlers and inventoried local imports | Requires a source inventory from the current CLI; missing or stale sources become coverage gaps |
982
+ | Dependencies | `package.json` and `yarn.lock` at the project root | Only the stored `dependencies` pair is restored |
983
+ | Public assets | Exact image, font and other asset bytes under `public/` | Only `public-asset` files with safe paths are accepted |
963
984
 
964
- Logic-function source is not exported yet. Only declared front component source
965
- paths are accepted. Record attachments and other file categories are refused
966
- before writing. Each export response is limited to 16 MiB.
985
+ Only declared frontend component and logic function source paths are accepted.
986
+ Record attachments and other file categories are refused before writing. Each
987
+ export response is limited to 16 MiB.
967
988
 
968
989
  A workflow changed in the workflow builder is normally a coverage gap. The
969
990
  workspace custom application is the exception: its workflows are pulled from
@@ -971,13 +992,17 @@ their active version, and apply publishes changed definitions as new versions.
971
992
  An agent on more than one role is another example of a coverage gap. These gaps
972
993
  preserve the corresponding local files.
973
994
 
974
- Front component imports keep their original paths. New deployments include
975
- local helpers, type declarations, TypeScript configs, CSS and imported assets;
976
- shared files are restored once. Older deployments without an inventory still
977
- export only the entry file. Files no longer inventoried stay untouched locally.
978
- Install dependencies before building or applying. If exported `package.json`
979
- omits `twenty-sdk`, as the workspace custom application does, pull keeps the
980
- local SDK dependency. The installed generated client is left alone.
995
+ Frontend component and logic function imports keep their original paths. New
996
+ deployments include local helpers, type declarations, TypeScript configs, CSS
997
+ and imported assets; shared files are restored once. Older frontend deployments
998
+ without an inventory still export only the entry file. Logic functions without
999
+ an inventory remain coverage gaps until the application is applied with the
1000
+ current CLI. Changes made to a function's stored metadata after that apply also
1001
+ produce a coverage gap, so pull does not silently restore an outdated trigger
1002
+ or timeout. Files no longer inventoried stay untouched locally. Install
1003
+ dependencies before building or applying. If exported `package.json` omits
1004
+ `twenty-sdk`, as the workspace custom application does, pull keeps the local
1005
+ SDK dependency. The installed generated client is left alone.
981
1006
 
982
1007
  Run `yarn install` after pulling dependency changes into an existing project.
983
1008
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twenty",
3
- "version": "2.60.0",
3
+ "version": "2.62.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.60.0",
38
+ "twenty-client-sdk": "2.62.0",
39
39
  "twenty-shared": "0.0.0",
40
40
  "undici": "^7.30.1",
41
41
  "uuid": "^13.0.2",
@@ -34,12 +34,11 @@ targets) are excluded from the inventory without rejecting existing builds.
34
34
  Retained paths and file bytes are preserved. A fresh build replaces the
35
35
  inventory.
36
36
 
37
- Each frontend component also records its own `sourceFiles` subset. Helpers
38
- shared with other components are stored once. The server saves this inventory
39
- with the deployed component's entry path and bundle checksum after sync, so
37
+ Each frontend component and logic function also records its own `sourceFiles`
38
+ subset. Helpers shared with other entries are stored once. The server saves
39
+ this inventory with the deployed entry path and bundle checksum after sync, so
40
40
  pull can restore its files without enumerating unrelated storage. The same sync
41
- path handles direct apply, dev and package installs. Logic-function source pull
42
- remains separate.
41
+ path handles direct apply, dev and package installs.
43
42
 
44
43
  Direct apply uploads these artifacts, and package installs require all
45
44
  inventoried sources while accepting older packages without an inventory.
@@ -26,7 +26,19 @@ unrelated ancestor directories.
26
26
  Inputs have stamps captured before reads; after attaching the watcher, changed
27
27
  stamps invalidate the result. A successful graph replaces the previous graph; a
28
28
  failure watches the last successful graph plus only that attempt's inputs.
29
- External directory observation is shallow.
29
+ Existing external inputs use native events. Each event reattaches the watcher
30
+ to handle file replacement. Missing files and deleted directories use exact-path
31
+ recovery checks once per second, stopped as soon as native watching resumes.
32
+ Directory stamps include the directory identity and immediate entries. A
33
+ one-time check after attachment catches changes before native events are ready.
34
+ Home and temporary directory roots, their ancestors and filesystem roots are
35
+ excluded from external directory observation; symlink aliases use the same
36
+ restriction. Known files there remain watched, and dev warns when missing-import
37
+ recovery would require an excluded directory.
38
+
39
+ `app dev --verbose` reports the effective scope after updates. Reports include
40
+ retained successful inputs after failures and appear only when paths change.
41
+ NDJSON exposes the same paths in `watch-scope` progress events.
30
42
 
31
43
  ## Apply and client generation
32
44
 
@@ -142,20 +142,22 @@ otherwise it is reported as `UNSUPPORTED` coverage, so its local file is kept.
142
142
  ## Exported files and compatibility
143
143
 
144
144
  Pull requests
145
- `exportApplication(shouldIncludeDependencies: true, shouldIncludeSourceFiles: true, shouldIncludeSourceDependencies: true, shouldIncludePublicAssets: true)`.
145
+ `exportApplication(shouldIncludeDependencies: true, shouldIncludeSourceFiles: true, shouldIncludeSourceDependencies: true, shouldIncludeLogicFunctionSources: true, shouldIncludePublicAssets: true)`.
146
146
  Existing clients that do not request source files continue to receive coverage
147
147
  gaps for frontend components and their widgets, without reading component source
148
148
  from storage.
149
149
 
150
- Apply baseline recording opts in to source export too, so a later pull compares
151
- the same supported components. Pull restores `dependencies/package.json` and
152
- `dependencies/yarn.lock` to the project root, in the same transaction as
153
- metadata and the baseline.
150
+ Apply and dev record the source definitions from the manifest just synced,
151
+ alongside the remote metadata export. Recording this baseline does not download
152
+ component or function sources. Pull restores
153
+ `dependencies/package.json` and `dependencies/yarn.lock` to the project root,
154
+ in the same transaction as metadata and the baseline.
154
155
 
155
156
  Exact folder and filename checks accept only that dependency pair, declared
156
- frontend component entries and their inventoried sources, and `public-asset` files under `public/`. Public
157
- assets travel as base64 and are restored as bytes, preserving images and fonts.
158
- Record attachments and unrelated files are refused.
157
+ frontend component and logic function entries and their inventoried sources,
158
+ and `public-asset` files under `public/`. Public assets travel as base64 and
159
+ are restored as bytes, preserving images and fonts. Record attachments and
160
+ unrelated files are refused.
159
161
 
160
162
  Public assets unchanged on the server preserve local edits; remote changes use
161
163
  the usual overwrite report. Missing remote assets leave local files untouched.
@@ -169,12 +171,12 @@ remote changes replace local contents and use the usual overwrite report.
169
171
  Missing remote files leave local files untouched.
170
172
 
171
173
  After project setup, reconciliation does not install dependencies, generate the
172
- typed client or write logic-function source. Export responses have a 16 MiB cap.
174
+ typed client. Export responses have a 16 MiB cap.
173
175
  Pull does not modify the workspace. Because pull is partial, `app apply` of the
174
176
  workspace custom application only deletes entities missing from source with
175
177
  `--prune`.
176
178
 
177
- ## Front component source
179
+ ## Frontend component and logic function sources
178
180
 
179
181
  Front component entry files are restored from their stored original TSX, at
180
182
  their original path. Legacy entry-only exports can use the existing local
@@ -183,27 +185,28 @@ regenerated. Export reports missing source, computed identifiers, and
183
185
  unsupported widget availability as coverage gaps; widgets referencing those
184
186
  components remain unexported.
185
187
 
186
- New builds attach a source inventory to each frontend component. Export reads
187
- that deployed inventory, verifies checksums, and includes its local imports,
188
- type declarations, TypeScript configs, nested CSS and imported images/fonts.
189
- Paths and bytes are preserved; shared files are restored once. Imported binary
190
- files use base64 with an explicit encoding. Source files remain private Source
191
- artifacts, even when their extensions match public assets.
192
-
193
- Only files in an exported component's inventory are read. Logic-function-only
194
- files, stale storage files and record attachments are not exported. Inventory
195
- files missing from storage or with mismatched checksums make the component a
188
+ New builds attach a source inventory to each frontend component and logic
189
+ function. Export reads that deployed inventory, verifies checksums, and
190
+ includes its local imports, type declarations, TypeScript configs, nested CSS
191
+ and imported images/fonts. Paths and bytes are preserved; shared files are
192
+ restored once. Imported binary files use base64 with an explicit encoding.
193
+ Source files remain private Source artifacts, even when their extensions match
194
+ public assets.
195
+
196
+ Only files in an exported definition's inventory are read. Stale storage files
197
+ and record attachments are not exported. Inventory
198
+ files missing from storage or with mismatched checksums make the definition a
196
199
  coverage gap. Files no longer inventoried remain untouched locally.
197
200
 
198
- Applications deployed without a per-component inventory still export only their
199
- entry files. Apply or publish them again to retain imported files. Imports
200
- outside the app and installed packages are not copied; reinstall package
201
- dependencies before building. Pull refuses a locally moved entry with an
202
- inventory, since restoring its helpers at their original paths would break
201
+ Frontend components deployed without a per-component inventory still export
202
+ only their entry files. Apply or publish them again to retain imported files.
203
+ Imports outside the app and installed packages are not copied; reinstall
204
+ package dependencies before building. Pull refuses a locally moved entry with
205
+ an inventory, since restoring its helpers at their original paths would break
203
206
  relative imports.
204
207
 
205
208
  Explicit GraphQL rejection of a file-export option retries without that option.
206
- Older clients receive entry-only source exports unless they opt into source
209
+ Older clients receive entry-only frontend exports unless they opt into source
207
210
  dependencies. Older servers retain their existing pull behavior.
208
211
 
209
212
  Pull records remote source hashes separately from local fingerprints. Unchanged
@@ -215,6 +218,20 @@ An occupied destination or a missing declared source aborts the entire pull
215
218
  before writes. Supported page-layout widgets keep their component identifiers.
216
219
  Run `yarn install` after dependency changes before building the pulled TSX.
217
220
 
221
+ Logic functions require a per-function inventory. The server records their
222
+ deployed `updatedAt` revision after successful sync. Export compares that revision
223
+ and validates every source checksum. Converter changes alone do not invalidate
224
+ the inventory. Missing inventories, changed metadata or stale builds become
225
+ coverage gaps; pull never invents a handler or replaces a newer workspace edit
226
+ with an older definition. Apply the app with the current CLI to refresh its
227
+ inventory. Original definitions, including install hooks, keep their SDK
228
+ exports and identifiers.
229
+
230
+ `shouldIncludeLogicFunctionSources` is a separate opt-in so older clients never
231
+ receive source kinds they cannot restore. It shares the existing 12 MiB encoded
232
+ file budget with frontend sources, dependency files and public assets. Shared
233
+ helpers are returned once across both kinds.
234
+
218
235
  ## Verification
219
236
 
220
237
  Tests cover writers, planning and reconciliation. Command tests build the actual
@@ -1 +0,0 @@
1
- const e=require("./rolldown-runtime-mLOUI7ql.cjs"),t=require("./isDefined-CJctgvfE.cjs"),n=require("./read-watch-input-stamp-BxeOb0vI.cjs");let r=require("node:async_hooks"),i=require("node:path"),a=require("node:fs");var o=e.n({collectWatchInputs:()=>c,getWatchInputPlugins:()=>p,recordWatchFile:()=>d,recordWatchProbe:()=>f}),s=new r.AsyncLocalStorage,c=async e=>{let t=new Map,n=new Map,r=await s.run({inputs:t,probes:n},e),a=new Set([...t.values()].filter(e=>e.kind===`file`&&e.stamp!==null).map(e=>(0,i.dirname)(e.path)));for(let[e,r]of n)a.has((0,i.dirname)(r.path))&&!t.has(e)&&t.set(e,r);return{result:r,watchInputs:[...t.values()]}},l=(e,t,r)=>{let o;try{o=(0,a.realpathSync)(t)}catch{o=(0,i.resolve)(t)}if(n.n(o))return;let s=`${r}:${o}`;if(!e.has(s)){let t={path:o,kind:r};e.set(s,{...t,stamp:n.t(t)})}return o},u=(e,t)=>{let n=(0,i.dirname)(t);for(;(0,i.dirname)(n)!==n;){try{if((0,a.statSync)(n).isDirectory()){l(e,n,`directory`);return}}catch{}n=(0,i.dirname)(n)}},d=e=>{let n=s.getStore();if(!t.t(n))return;let r=l(n.inputs,e,`file`);t.t(r)&&u(n.inputs,r)},f=e=>{let n=s.getStore();t.t(n)&&l(n.probes,e,`file`)},p=()=>{let e=s.getStore();if(!t.t(e))return[];let{inputs:n}=e;return[{name:`collect-watch-inputs`,setup:e=>{e.onLoad({filter:/.*/,namespace:`file`},({path:e})=>{let r=l(n,e,`file`);t.t(r)&&u(n,r)}),e.onResolve({filter:/^\./},({path:e,resolveDir:t})=>{t.length>0&&u(n,(0,i.resolve)(t,e))})}}]};Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});