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.
- package/dist/app-template/yarn.lock +25 -25
- package/dist/app-worker.cjs +1 -1
- package/dist/chunks/{build-source-manifest-CiNlHV98.cjs → build-source-manifest-DQ5YF5PV.cjs} +1 -1
- package/dist/chunks/{build-source-snapshot-Dchjr_ga.cjs → build-source-snapshot-DIjGWX_5.cjs} +20 -20
- package/dist/chunks/{cli-version.constant-B200rijQ.cjs → cli-version.constant-Dn-WFWf8.cjs} +1 -1
- package/dist/chunks/collect-watch-inputs-Cj9epSJw.cjs +1 -0
- package/dist/chunks/compile-application-translations-CDykMbFf.cjs +58 -0
- package/dist/chunks/create-metadata-client-CrOsu4u3.cjs +6 -0
- package/dist/chunks/{create-rest-client-HbzXSfhZ.cjs → create-rest-client-D3ZXtAxc.cjs} +1 -1
- package/dist/chunks/{extract-manifest-from-file-CaWVLmLU.cjs → extract-manifest-from-file-B3pazFD1.cjs} +1 -1
- package/dist/chunks/{extract-source-translations-CBveJ4xT.cjs → extract-source-translations-b9c2CH4w.cjs} +1 -1
- package/dist/chunks/{fetch-metadata-inspection-yvVdh4oY.cjs → fetch-metadata-inspection-DN8am1j0.cjs} +1 -1
- package/dist/chunks/{fetch-signed-in-identity-B6fnxBHj.cjs → fetch-signed-in-identity-kgzejZg2.cjs} +1 -1
- package/dist/chunks/fetch-workspace-or-throw-BIu0K3A-.cjs +1 -0
- package/dist/chunks/fs-utils-BcNux7fF.cjs +2 -0
- package/dist/chunks/{get-client-generation-skip-reason-CFgiU52t.cjs → get-client-generation-skip-reason-C_oaO89K.cjs} +1 -1
- package/dist/chunks/global-flags.constant-JcdNC5G1.cjs +1 -0
- package/dist/chunks/is-exported-manifest-BHA_mGa6.cjs +1 -0
- package/dist/chunks/{is-valid-package-name-zAWZPNrj.cjs → is-valid-package-name-o_jWsuUX.cjs} +1 -1
- package/dist/chunks/parse-app-export-B9Ocghe1.cjs +1 -0
- package/dist/chunks/{pull-minimum-sdk-version.constant-BTfcyhwh.cjs → pull-minimum-sdk-version.constant-DOAFtDDD.cjs} +2 -2
- package/dist/chunks/pull-source-B5Hot5CI.cjs +1 -0
- package/dist/chunks/{read-app-identity-Cny6sAGs.cjs → read-app-identity-M47izSWp.cjs} +1 -1
- package/dist/chunks/{read-application-identifier-DcBW74TB.cjs → read-application-identifier-BlEwa2gR.cjs} +1 -1
- package/dist/chunks/{read-application-identity-BrtopaMa.cjs → read-application-identity-CYKNL1g5.cjs} +1 -1
- package/dist/chunks/{read-infer-deletion-option-D1HMBsfw.cjs → read-infer-deletion-option-DeyWsiCS.cjs} +1 -1
- package/dist/chunks/{read-source-identity-CnPDqB6X.cjs → read-source-identity-bo4jC2Dh.cjs} +1 -1
- package/dist/chunks/read-watch-input-stamp-DKJ-Plk2.cjs +1 -0
- package/dist/chunks/{record-pull-base-Dz4BldQf.cjs → record-pull-base-DKrQDDmc.cjs} +1 -1
- package/dist/chunks/{record-typecheck-config-inputs-U2RUjjp9.cjs → record-typecheck-config-inputs-BMV55iFx.cjs} +1 -1
- package/dist/chunks/{resolve-command-target-QjBwHpMj.cjs → resolve-command-target-B9QG8OZs.cjs} +1 -1
- package/dist/chunks/{resolve-project-typescript-DO4LrLr-.cjs → resolve-project-typescript-DjMUr6ks.cjs} +1 -1
- package/dist/chunks/{resolve-source-sdk-C4Hu045V.cjs → resolve-source-sdk-BDwffWHb.cjs} +1 -1
- package/dist/chunks/{run-app-add-command-b9sm20rn.cjs → run-app-add-command-De3cIhU0.cjs} +1 -1
- package/dist/chunks/{run-app-apply-command-CCsvdn3A.cjs → run-app-apply-command-BXVHKrW3.cjs} +2 -2
- package/dist/chunks/{run-app-build-command-Daxe8O14.cjs → run-app-build-command-BMwzOOov.cjs} +1 -1
- package/dist/chunks/run-app-dev-command-Bg4zIJnX.cjs +3 -0
- package/dist/chunks/{run-app-exec-command-BMhrv7YU.cjs → run-app-exec-command-BOhA0aZN.cjs} +1 -1
- package/dist/chunks/{run-app-generate-client-command-Z-2bRkaH.cjs → run-app-generate-client-command-B7p5M_hN.cjs} +1 -1
- package/dist/chunks/{run-app-init-command-B6npylwO.cjs → run-app-init-command-DJ0UipFh.cjs} +1 -1
- package/dist/chunks/{run-app-install-command-DqPQXj09.cjs → run-app-install-command-CsK8l0Ou.cjs} +1 -1
- package/dist/chunks/{run-app-logs-command-CaLIVesh.cjs → run-app-logs-command-COAdNMuL.cjs} +1 -1
- package/dist/chunks/{run-app-operation-D_zIxvuw.cjs → run-app-operation-B4JecUV7.cjs} +1 -1
- package/dist/chunks/{run-app-plan-command-pc6mp7th.cjs → run-app-plan-command-hASkfDaJ.cjs} +1 -1
- package/dist/chunks/{run-app-publish-command-CflX1x0o.cjs → run-app-publish-command-ClsjL5OP.cjs} +1 -1
- package/dist/chunks/{run-app-pull-command-PCMBNH6R.cjs → run-app-pull-command-BfHIuJ1m.cjs} +1 -1
- package/dist/chunks/{run-app-translations-extract-command-CGIFvpC1.cjs → run-app-translations-extract-command-DHIEEFXs.cjs} +1 -1
- package/dist/chunks/{run-app-typecheck-command-DnCMdagB.cjs → run-app-typecheck-command--4NoTac-.cjs} +1 -1
- package/dist/chunks/{run-app-uninstall-command-DWXEgVKe.cjs → run-app-uninstall-command-ClRoCRjv.cjs} +1 -1
- package/dist/chunks/{run-auth-login-command-DKCO9bot.cjs → run-auth-login-command-p9VHNoqZ.cjs} +1 -1
- package/dist/chunks/{run-auth-status-command-0vh-ENNj.cjs → run-auth-status-command-CdqOc2-Q.cjs} +1 -1
- package/dist/chunks/{run-cli-BG3itvCe.cjs → run-cli-CgBPkP_r.cjs} +3 -3
- package/dist/chunks/{run-commands-command-CJ7qNty3.cjs → run-commands-command-BF3y7Dz2.cjs} +1 -1
- package/dist/chunks/{run-data-export-command-DqyztEHe.cjs → run-data-export-command-ca_JYOnT.cjs} +1 -1
- package/dist/chunks/{run-data-get-command-D7_BdNBa.cjs → run-data-get-command-BZTsbTvb.cjs} +1 -1
- package/dist/chunks/{run-data-list-command-ZIpyFE04.cjs → run-data-list-command-UI5hngdt.cjs} +1 -1
- package/dist/chunks/{run-doctor-command-CgWSXl7H.cjs → run-doctor-command-B_bcpjAT.cjs} +2 -2
- package/dist/chunks/{run-metadata-field-describe-command-DZBqoC6c.cjs → run-metadata-field-describe-command-CH7Yob_y.cjs} +1 -1
- package/dist/chunks/{run-metadata-field-list-command-3pXf6DzX.cjs → run-metadata-field-list-command-BzxIj9tX.cjs} +1 -1
- package/dist/chunks/{run-metadata-object-describe-command-Dpmt4WVc.cjs → run-metadata-object-describe-command-BF9FzF06.cjs} +1 -1
- package/dist/chunks/{run-metadata-object-list-command-B2PTelCt.cjs → run-metadata-object-list-command-Tk_Fjfc5.cjs} +1 -1
- package/dist/chunks/{run-open-command-B4YhDwqh.cjs → run-open-command-BldBUk02.cjs} +1 -1
- package/dist/chunks/{run-version-command-YPMJadrD.cjs → run-version-command-B_6F7XYT.cjs} +1 -1
- package/dist/chunks/{sign-in-to-remote-again-D9amgIOZ.cjs → sign-in-to-remote-again-BqU_-38L.cjs} +1 -1
- package/dist/chunks/standard-object-fields.constant-CA16BdJ2.cjs +1 -0
- package/dist/chunks/{typecheck-application-8A504oUF.cjs → typecheck-application-CiGxmS69.cjs} +1 -1
- package/dist/cli.cjs +1 -1
- package/docs/commands.md +45 -20
- package/package.json +2 -2
- package/src/app/bundles/README.md +4 -5
- package/src/app/dev/README.md +13 -1
- package/src/app/pull/README.md +43 -26
- package/dist/chunks/collect-watch-inputs-DfWAkX1r.cjs +0 -1
- package/dist/chunks/compile-application-translations-roDnPf1t.cjs +0 -58
- package/dist/chunks/create-metadata-client-DVQbIGNu.cjs +0 -6
- package/dist/chunks/fetch-workspace-or-throw-C6tCV0YH.cjs +0 -1
- package/dist/chunks/fs-utils-DoSmCBu8.cjs +0 -2
- package/dist/chunks/global-flags.constant-Celofkx1.cjs +0 -1
- package/dist/chunks/is-exported-manifest-C4lO285q.cjs +0 -1
- package/dist/chunks/parse-app-export-BsxpQED7.cjs +0 -1
- package/dist/chunks/pull-source-CIsoJ2eR.cjs +0 -1
- package/dist/chunks/read-watch-input-stamp-BxeOb0vI.cjs +0 -1
- package/dist/chunks/run-app-dev-command-BPwltUcL.cjs +0 -2
- 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.
|
|
831
|
-
|
|
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
|
|
961
|
-
|
|
|
962
|
-
|
|
|
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
|
-
|
|
965
|
-
|
|
966
|
-
|
|
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
|
-
|
|
975
|
-
local helpers, type declarations, TypeScript configs, CSS
|
|
976
|
-
shared files are restored once. Older deployments
|
|
977
|
-
export only the entry file.
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
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.
|
|
3
|
+
"version": "2.61.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.
|
|
38
|
+
"twenty-client-sdk": "2.61.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`
|
|
38
|
-
shared with other
|
|
39
|
-
with the deployed
|
|
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.
|
|
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.
|
package/src/app/dev/README.md
CHANGED
|
@@ -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
|
-
|
|
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
|
|
package/src/app/pull/README.md
CHANGED
|
@@ -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
|
|
151
|
-
the
|
|
152
|
-
|
|
153
|
-
|
|
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,
|
|
157
|
-
|
|
158
|
-
|
|
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
|
|
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
|
-
##
|
|
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
|
|
187
|
-
that deployed inventory, verifies checksums, and
|
|
188
|
-
type declarations, TypeScript configs, nested CSS
|
|
189
|
-
Paths and bytes are preserved; shared files are
|
|
190
|
-
files use base64 with an explicit encoding.
|
|
191
|
-
artifacts, even when their extensions match
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
files
|
|
195
|
-
|
|
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
|
-
|
|
199
|
-
entry files. Apply or publish them again to retain imported files.
|
|
200
|
-
outside the app and installed packages are not copied; reinstall
|
|
201
|
-
dependencies before building. Pull refuses a locally moved entry with
|
|
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
|
|
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}});
|