@valbuild/mcp 0.150.0 → 0.150.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,68 @@
1
1
  # @valbuild/mcp
2
2
 
3
+ ## 0.150.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`36412b2`](https://github.com/valbuild/val/commit/36412b28bb009083f652b26462b76a74c80ff595), [`155a079`](https://github.com/valbuild/val/commit/155a0792c2a437a1cbcdd6342131999be70e0d70), [`8f598b6`](https://github.com/valbuild/val/commit/8f598b618b794e59ef5b9c6ef94650be4ff006e7), [`95d17e6`](https://github.com/valbuild/val/commit/95d17e6bbecceb2f09d6a6226808e9c60b2d4795)]:
8
+ - @valbuild/shared@0.150.2
9
+ - @valbuild/core@0.150.2
10
+ - @valbuild/server@0.150.2
11
+
12
+ ## 0.150.1
13
+
14
+ ### Patch Changes
15
+
16
+ - [#894](https://github.com/valbuild/val/pull/894) [`9171baa`](https://github.com/valbuild/val/commit/9171baad7beb1b2a355c70724d2339467b126e02) Thanks [@freekh](https://github.com/freekh)! - `val validate` no longer fails a project just because some of its files are
17
+ local while the project stores files remotely (`files: { remote: true }` or
18
+ `.remote()`). Every project made from a template starts like that, and the
19
+ site serves those files from `public/` until they are uploaded. They are now
20
+ reported as **warnings**, grouped into one block per file with the command
21
+ that uploads them:
22
+
23
+ ```
24
+ content/images.val.ts ⚠ 7 warnings (12ms)
25
+ │
26
+ │ ⚠ Local files in a project with remote files. Your site serves them from public/ for now; they move to remote storage when uploaded.
27
+ │
28
+ │ content/images.val.ts:7:5 /public/val/images/image-0_00000.png
29
+ │ content/images.val.ts:8:5 /public/val/images/image-1_00001.png
30
+ │ content/images.val.ts:9:5 /public/val/images/image-2_00002.png
31
+ │ content/images.val.ts:10:5 /public/val/images/image-3_00003.png
32
+ │ content/images.val.ts:11:5 /public/val/images/image-4_00004.png
33
+ │ … 2 more
34
+ │
35
+ │ → val validate --fix uploads them (needs val login)
36
+ │
37
+
38
+ ✔ No validation errors · 7 warnings in 1 file
39
+ ```
40
+
41
+ - `--strict` on `val validate` and `val publish` makes warnings fail too.
42
+ - `val validate --fix` still fails when it cannot upload them, for example
43
+ when you are not logged in.
44
+ - A local file that does not exist is still an error.
45
+ - The language server shows these as warnings.
46
+ - In the Studio, **Check everything** on the Validate page lists them with a
47
+ **Fix** button that uploads them, so a hosted project, which
48
+ has no command line, can move its template's images and files to remote
49
+ storage. That covers images, files and videos (a video's poster, captions
50
+ and HLS stream go up with it), images inside rich text included, and the
51
+ fields that picked a gallery image or a video from a set are updated with
52
+ it.
53
+ - On a hosted project, **Check everything** no longer reports the template's
54
+ images and videos as "The file is gone", and no longer offers a Fix that
55
+ would remove them from their gallery or video set.
56
+
57
+ Fixable errors are now printed with `✘`, like every other error, instead of
58
+ the `⚠` warnings use. They were always errors and still make `val validate`
59
+ fail.
60
+
61
+ - Updated dependencies [[`9171baa`](https://github.com/valbuild/val/commit/9171baad7beb1b2a355c70724d2339467b126e02)]:
62
+ - @valbuild/core@0.150.1
63
+ - @valbuild/server@0.150.1
64
+ - @valbuild/shared@0.150.1
65
+
3
66
  ## 0.150.0
4
67
 
5
68
  ### Patch Changes
@@ -2834,26 +2834,12 @@ function resolveTarget(deps, moduleSchema, fieldPath) {
2834
2834
  }
2835
2835
 
2836
2836
  /**
2837
- * The image schema a gallery ENTRY is validated as.
2838
- *
2839
- * A gallery's item schema is an object (width/height/mimeType/alt), but the
2840
- * remote ref's validation hash is computed over a `SerializedImageSchema` — so
2841
- * one has to be synthesized, carrying the `accept` and `directory` of the record
2842
- * that holds the entry. This is `handleRemoteGalleryFileUpload`'s synthesis, and
2843
- * it has to stay identical to it: the CLI's `--fix` writes refs this way and the
2844
- * check that validates them reads them the same way, so a third shape here would
2845
- * bake a hash that can never match.
2837
+ * The image schema a gallery ENTRY is validated as: `galleryEntryMediaSchema`
2838
+ * in core, the one synthesis the CLI's `--fix` and the Studio's Validate page
2839
+ * hash with too, so a ref made here validates there.
2846
2840
  */
2847
2841
  function galleryEntryImageSchema(gallery) {
2848
- return {
2849
- type: "image",
2850
- opt: false,
2851
- options: _objectSpread2(_objectSpread2({}, gallery.accept ? {
2852
- accept: gallery.accept
2853
- } : {}), gallery.dir ? {
2854
- dir: gallery.dir
2855
- } : {})
2856
- };
2842
+ return core.Internal.galleryEntryMediaSchema("image", gallery);
2857
2843
  }
2858
2844
 
2859
2845
  /**
@@ -3388,7 +3374,7 @@ var packageJson = {
3388
3374
  "./package.json": "./package.json"
3389
3375
  },
3390
3376
  types: "dist/valbuild-mcp.cjs.d.ts",
3391
- version: "0.150.0",
3377
+ version: "0.150.2",
3392
3378
  scripts: {
3393
3379
  typecheck: "tsc --noEmit",
3394
3380
  test: "jest",
@@ -2834,26 +2834,12 @@ function resolveTarget(deps, moduleSchema, fieldPath) {
2834
2834
  }
2835
2835
 
2836
2836
  /**
2837
- * The image schema a gallery ENTRY is validated as.
2838
- *
2839
- * A gallery's item schema is an object (width/height/mimeType/alt), but the
2840
- * remote ref's validation hash is computed over a `SerializedImageSchema` — so
2841
- * one has to be synthesized, carrying the `accept` and `directory` of the record
2842
- * that holds the entry. This is `handleRemoteGalleryFileUpload`'s synthesis, and
2843
- * it has to stay identical to it: the CLI's `--fix` writes refs this way and the
2844
- * check that validates them reads them the same way, so a third shape here would
2845
- * bake a hash that can never match.
2837
+ * The image schema a gallery ENTRY is validated as: `galleryEntryMediaSchema`
2838
+ * in core, the one synthesis the CLI's `--fix` and the Studio's Validate page
2839
+ * hash with too, so a ref made here validates there.
2846
2840
  */
2847
2841
  function galleryEntryImageSchema(gallery) {
2848
- return {
2849
- type: "image",
2850
- opt: false,
2851
- options: _objectSpread2(_objectSpread2({}, gallery.accept ? {
2852
- accept: gallery.accept
2853
- } : {}), gallery.dir ? {
2854
- dir: gallery.dir
2855
- } : {})
2856
- };
2842
+ return core.Internal.galleryEntryMediaSchema("image", gallery);
2857
2843
  }
2858
2844
 
2859
2845
  /**
@@ -3388,7 +3374,7 @@ var packageJson = {
3388
3374
  "./package.json": "./package.json"
3389
3375
  },
3390
3376
  types: "dist/valbuild-mcp.cjs.d.ts",
3391
- version: "0.150.0",
3377
+ version: "0.150.2",
3392
3378
  scripts: {
3393
3379
  typecheck: "tsc --noEmit",
3394
3380
  test: "jest",
@@ -2825,26 +2825,12 @@ function resolveTarget(deps, moduleSchema, fieldPath) {
2825
2825
  }
2826
2826
 
2827
2827
  /**
2828
- * The image schema a gallery ENTRY is validated as.
2829
- *
2830
- * A gallery's item schema is an object (width/height/mimeType/alt), but the
2831
- * remote ref's validation hash is computed over a `SerializedImageSchema` — so
2832
- * one has to be synthesized, carrying the `accept` and `directory` of the record
2833
- * that holds the entry. This is `handleRemoteGalleryFileUpload`'s synthesis, and
2834
- * it has to stay identical to it: the CLI's `--fix` writes refs this way and the
2835
- * check that validates them reads them the same way, so a third shape here would
2836
- * bake a hash that can never match.
2828
+ * The image schema a gallery ENTRY is validated as: `galleryEntryMediaSchema`
2829
+ * in core, the one synthesis the CLI's `--fix` and the Studio's Validate page
2830
+ * hash with too, so a ref made here validates there.
2837
2831
  */
2838
2832
  function galleryEntryImageSchema(gallery) {
2839
- return {
2840
- type: "image",
2841
- opt: false,
2842
- options: _objectSpread2(_objectSpread2({}, gallery.accept ? {
2843
- accept: gallery.accept
2844
- } : {}), gallery.dir ? {
2845
- dir: gallery.dir
2846
- } : {})
2847
- };
2833
+ return Internal.galleryEntryMediaSchema("image", gallery);
2848
2834
  }
2849
2835
 
2850
2836
  /**
@@ -3379,7 +3365,7 @@ var packageJson = {
3379
3365
  "./package.json": "./package.json"
3380
3366
  },
3381
3367
  types: "dist/valbuild-mcp.cjs.d.ts",
3382
- version: "0.150.0",
3368
+ version: "0.150.2",
3383
3369
  scripts: {
3384
3370
  typecheck: "tsc --noEmit",
3385
3371
  test: "jest",
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./package.json": "./package.json"
21
21
  },
22
22
  "types": "dist/valbuild-mcp.cjs.d.ts",
23
- "version": "0.150.0",
23
+ "version": "0.150.2",
24
24
  "preconstruct": {
25
25
  "entrypoints": [
26
26
  "./index.ts",
@@ -31,9 +31,9 @@
31
31
  "dependencies": {
32
32
  "minimatch": "^10.2.6",
33
33
  "zod": "^4.4.3",
34
- "@valbuild/core": "0.148.7",
35
- "@valbuild/shared": "0.149.7",
36
- "@valbuild/server": "0.150.0"
34
+ "@valbuild/server": "0.150.2",
35
+ "@valbuild/core": "0.150.2",
36
+ "@valbuild/shared": "0.150.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@prettier/sync": "^0.6.1",