@valbuild/mcp 0.124.0 → 0.126.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/CHANGELOG.md +95 -0
- package/dist/valbuild-mcp.cjs.dev.js +69 -8
- package/dist/valbuild-mcp.cjs.prod.js +69 -8
- package/dist/valbuild-mcp.esm.js +69 -8
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,100 @@
|
|
|
1
1
|
# @valbuild/mcp
|
|
2
2
|
|
|
3
|
+
## 0.126.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`5bfd630`](https://github.com/valbuild/val/commit/5bfd630b63dee2189e238f20fe72ecc5537160f7), [`ccbcda6`](https://github.com/valbuild/val/commit/ccbcda60b3e3c465071229ae1ba28ac735483e63), [`f2fe70d`](https://github.com/valbuild/val/commit/f2fe70dab2b65000dfaf289f09c70b4a8291467a), [`5c18c99`](https://github.com/valbuild/val/commit/5c18c99ecc84651f82123481fc042063db953833), [`171208a`](https://github.com/valbuild/val/commit/171208a20177e68ed5a8b1a6fdaabfe893a6aa5f)]:
|
|
8
|
+
- @valbuild/shared@0.126.0
|
|
9
|
+
- @valbuild/server@0.126.0
|
|
10
|
+
- @valbuild/core@0.126.0
|
|
11
|
+
|
|
12
|
+
## 0.125.0
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#638](https://github.com/valbuild/val/pull/638) [`c390397`](https://github.com/valbuild/val/commit/c390397cb5e203eb1bedae3a6fab15726e850b90) Thanks [@freekh](https://github.com/freekh)! - Val now runs on TanStack Start.
|
|
17
|
+
|
|
18
|
+
`@valbuild/tanstack` is a new package with everything `@valbuild/next` has: Val
|
|
19
|
+
Studio at `/val`, the on-page overlay and canvas, draft mode, the client hooks,
|
|
20
|
+
server-side content reads, images, and the MCP tools.
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
npm install @valbuild/tanstack
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
// val.config.ts
|
|
28
|
+
import { initVal } from "@valbuild/tanstack";
|
|
29
|
+
const { s, c, config, tanstackRouter } = initVal({ project: "org/project" });
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
**Routes are first class.** A Val module for a route is named after the route
|
|
33
|
+
file it sits beside — `src/routes/posts.$postId.tsx` is served content by
|
|
34
|
+
`src/routes/posts.$postId.val.ts` — and its keys are the URLs that route serves:
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
export default c.define(
|
|
38
|
+
"/src/routes/posts.$postId.val.ts",
|
|
39
|
+
s.router(tanstackRouter, s.object({ title: s.string() })),
|
|
40
|
+
{ "/posts/hello-world": { title: "Hello world" } },
|
|
41
|
+
);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
`.` and `/` both separate segments, `$param` is a parameter, `$` is a splat, and
|
|
45
|
+
`index`, `route`, `(groups)` and `_pathless` layouts add no URL segment — the
|
|
46
|
+
same rules TanStack Router uses for the route file itself. Val validates every
|
|
47
|
+
key against that pattern, and Val Studio shows these modules as a sitemap under
|
|
48
|
+
**Pages**, where an editor can add a page.
|
|
49
|
+
|
|
50
|
+
Point the route generator away from your content files, in `vite.config.ts` and
|
|
51
|
+
`tsr.config.json`:
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
tanstackStart({ router: { routeFileIgnorePattern: "\\.val\\.[tj]sx?$" } });
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
See the [README](https://github.com/valbuild/val/blob/main/packages/tanstack/README.md)
|
|
58
|
+
for the full wiring, and `examples/tanstack` for a working app.
|
|
59
|
+
|
|
60
|
+
**Also fixed, for everyone:** `Internal.VERSION.core` was `null` in any ESM
|
|
61
|
+
bundle — it was read with `require("../package.json")` inside a `try`, so the
|
|
62
|
+
failure was silent. That version goes into every remote file ref and proxy mode
|
|
63
|
+
refuses to start without it. Every package now reads its version through a
|
|
64
|
+
static JSON import, which is inlined at build time.
|
|
65
|
+
|
|
66
|
+
Two smaller fixes that came out of running the whole toolchain against a
|
|
67
|
+
TanStack project:
|
|
68
|
+
|
|
69
|
+
- `val versions` reports `@valbuild/tanstack`, and `val debug` writes a snapshot
|
|
70
|
+
that names whichever framework package the captured project actually has.
|
|
71
|
+
- `@valbuild/eslint-plugin` reads a `tsconfig.json` that has comments in it. A
|
|
72
|
+
tsconfig is JSONC, and `JSON.parse` is not — so on any project whose tsconfig
|
|
73
|
+
carries a comment (the TanStack starter's does) the
|
|
74
|
+
`module-in-val-modules` rule threw `Expected double-quoted property name in
|
|
75
|
+
JSON` on the first file and took the whole lint run with it.
|
|
76
|
+
|
|
77
|
+
Three fixes found by driving the Studio against a real TanStack app:
|
|
78
|
+
|
|
79
|
+
- **A draft image now loads on the page.** The source the Studio pushes to the
|
|
80
|
+
host page carries `patch_id` for any file whose bytes are still in a patch, so
|
|
81
|
+
the page asks `/api/val/files/...?patch_id=` rather than a `/public` path that
|
|
82
|
+
nothing has written yet. This was silent — the image just did not appear — and
|
|
83
|
+
it affects any page that reads media through the hooks rather than on the
|
|
84
|
+
server, `@valbuild/next` included.
|
|
85
|
+
- **A splat route no longer logs an error on every render.** TanStack returns
|
|
86
|
+
both `_splat` and `*` for the same parameter; Val reported the second as a
|
|
87
|
+
parameter it could not place in the path.
|
|
88
|
+
- The TanStack example and starter render a 404 page instead of throwing
|
|
89
|
+
`notFound()` from a component, which escaped to the error boundary and logged
|
|
90
|
+
`Error in renderToReadableStream` (and, with no not-found component
|
|
91
|
+
configured, aborted the response) on every miss.
|
|
92
|
+
|
|
93
|
+
- Updated dependencies [[`c390397`](https://github.com/valbuild/val/commit/c390397cb5e203eb1bedae3a6fab15726e850b90)]:
|
|
94
|
+
- @valbuild/core@0.125.0
|
|
95
|
+
- @valbuild/shared@0.125.0
|
|
96
|
+
- @valbuild/server@0.125.0
|
|
97
|
+
|
|
3
98
|
## 0.124.0
|
|
4
99
|
|
|
5
100
|
### Patch Changes
|
|
@@ -3338,14 +3338,75 @@ function fromBuildResult(built) {
|
|
|
3338
3338
|
return err("invalid-args", built.message);
|
|
3339
3339
|
}
|
|
3340
3340
|
|
|
3341
|
-
var
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
}
|
|
3341
|
+
var packageJson = {
|
|
3342
|
+
name: "@valbuild/mcp",
|
|
3343
|
+
"private": false,
|
|
3344
|
+
description: "Val - content tools for MCP hosts",
|
|
3345
|
+
repository: {
|
|
3346
|
+
type: "git",
|
|
3347
|
+
url: "git+https://github.com/valbuild/val.git"
|
|
3348
|
+
},
|
|
3349
|
+
main: "dist/valbuild-mcp.cjs.js",
|
|
3350
|
+
module: "dist/valbuild-mcp.esm.js",
|
|
3351
|
+
exports: {
|
|
3352
|
+
".": {
|
|
3353
|
+
module: "./dist/valbuild-mcp.esm.js",
|
|
3354
|
+
"default": "./dist/valbuild-mcp.cjs.js"
|
|
3355
|
+
},
|
|
3356
|
+
"./sharp": {
|
|
3357
|
+
module: "./sharp/dist/valbuild-mcp-sharp.esm.js",
|
|
3358
|
+
"default": "./sharp/dist/valbuild-mcp-sharp.cjs.js"
|
|
3359
|
+
},
|
|
3360
|
+
"./package.json": "./package.json"
|
|
3361
|
+
},
|
|
3362
|
+
types: "dist/valbuild-mcp.cjs.d.ts",
|
|
3363
|
+
version: "0.126.0",
|
|
3364
|
+
scripts: {
|
|
3365
|
+
typecheck: "tsc --noEmit",
|
|
3366
|
+
test: "jest",
|
|
3367
|
+
"test:watch": "jest --watch"
|
|
3368
|
+
},
|
|
3369
|
+
preconstruct: {
|
|
3370
|
+
entrypoints: [
|
|
3371
|
+
"./index.ts",
|
|
3372
|
+
"./sharp/index.ts"
|
|
3373
|
+
],
|
|
3374
|
+
exports: true
|
|
3375
|
+
},
|
|
3376
|
+
dependencies: {
|
|
3377
|
+
"@valbuild/core": "workspace:*",
|
|
3378
|
+
"@valbuild/server": "workspace:*",
|
|
3379
|
+
"@valbuild/shared": "workspace:*",
|
|
3380
|
+
minimatch: "^10.2.6",
|
|
3381
|
+
zod: "^4.4.3"
|
|
3382
|
+
},
|
|
3383
|
+
devDependencies: {
|
|
3384
|
+
"@prettier/sync": "^0.6.1",
|
|
3385
|
+
"@types/jest": "^30.0.0",
|
|
3386
|
+
prettier: "~3.8.5",
|
|
3387
|
+
sharp: "^0.35.4",
|
|
3388
|
+
sucrase: "^3.35.1",
|
|
3389
|
+
typescript: "^6.0.3"
|
|
3390
|
+
},
|
|
3391
|
+
engines: {
|
|
3392
|
+
node: "^20.19.0 || >=22"
|
|
3393
|
+
},
|
|
3394
|
+
keywords: [
|
|
3395
|
+
"CMS",
|
|
3396
|
+
"mcp",
|
|
3397
|
+
"val",
|
|
3398
|
+
"valbuild"
|
|
3399
|
+
],
|
|
3400
|
+
files: [
|
|
3401
|
+
"CHANGELOG.md",
|
|
3402
|
+
"dist",
|
|
3403
|
+
"sharp/dist",
|
|
3404
|
+
"sharp/package.json"
|
|
3405
|
+
]
|
|
3406
|
+
};
|
|
3407
|
+
|
|
3408
|
+
var _packageJson$version;
|
|
3409
|
+
var VERSION = (_packageJson$version = packageJson.version) !== null && _packageJson$version !== void 0 ? _packageJson$version : null;
|
|
3349
3410
|
|
|
3350
3411
|
/**
|
|
3351
3412
|
* Verifying an OAuth access token, which is the whole of what makes this app a
|
|
@@ -3338,14 +3338,75 @@ function fromBuildResult(built) {
|
|
|
3338
3338
|
return err("invalid-args", built.message);
|
|
3339
3339
|
}
|
|
3340
3340
|
|
|
3341
|
-
var
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
}
|
|
3341
|
+
var packageJson = {
|
|
3342
|
+
name: "@valbuild/mcp",
|
|
3343
|
+
"private": false,
|
|
3344
|
+
description: "Val - content tools for MCP hosts",
|
|
3345
|
+
repository: {
|
|
3346
|
+
type: "git",
|
|
3347
|
+
url: "git+https://github.com/valbuild/val.git"
|
|
3348
|
+
},
|
|
3349
|
+
main: "dist/valbuild-mcp.cjs.js",
|
|
3350
|
+
module: "dist/valbuild-mcp.esm.js",
|
|
3351
|
+
exports: {
|
|
3352
|
+
".": {
|
|
3353
|
+
module: "./dist/valbuild-mcp.esm.js",
|
|
3354
|
+
"default": "./dist/valbuild-mcp.cjs.js"
|
|
3355
|
+
},
|
|
3356
|
+
"./sharp": {
|
|
3357
|
+
module: "./sharp/dist/valbuild-mcp-sharp.esm.js",
|
|
3358
|
+
"default": "./sharp/dist/valbuild-mcp-sharp.cjs.js"
|
|
3359
|
+
},
|
|
3360
|
+
"./package.json": "./package.json"
|
|
3361
|
+
},
|
|
3362
|
+
types: "dist/valbuild-mcp.cjs.d.ts",
|
|
3363
|
+
version: "0.126.0",
|
|
3364
|
+
scripts: {
|
|
3365
|
+
typecheck: "tsc --noEmit",
|
|
3366
|
+
test: "jest",
|
|
3367
|
+
"test:watch": "jest --watch"
|
|
3368
|
+
},
|
|
3369
|
+
preconstruct: {
|
|
3370
|
+
entrypoints: [
|
|
3371
|
+
"./index.ts",
|
|
3372
|
+
"./sharp/index.ts"
|
|
3373
|
+
],
|
|
3374
|
+
exports: true
|
|
3375
|
+
},
|
|
3376
|
+
dependencies: {
|
|
3377
|
+
"@valbuild/core": "workspace:*",
|
|
3378
|
+
"@valbuild/server": "workspace:*",
|
|
3379
|
+
"@valbuild/shared": "workspace:*",
|
|
3380
|
+
minimatch: "^10.2.6",
|
|
3381
|
+
zod: "^4.4.3"
|
|
3382
|
+
},
|
|
3383
|
+
devDependencies: {
|
|
3384
|
+
"@prettier/sync": "^0.6.1",
|
|
3385
|
+
"@types/jest": "^30.0.0",
|
|
3386
|
+
prettier: "~3.8.5",
|
|
3387
|
+
sharp: "^0.35.4",
|
|
3388
|
+
sucrase: "^3.35.1",
|
|
3389
|
+
typescript: "^6.0.3"
|
|
3390
|
+
},
|
|
3391
|
+
engines: {
|
|
3392
|
+
node: "^20.19.0 || >=22"
|
|
3393
|
+
},
|
|
3394
|
+
keywords: [
|
|
3395
|
+
"CMS",
|
|
3396
|
+
"mcp",
|
|
3397
|
+
"val",
|
|
3398
|
+
"valbuild"
|
|
3399
|
+
],
|
|
3400
|
+
files: [
|
|
3401
|
+
"CHANGELOG.md",
|
|
3402
|
+
"dist",
|
|
3403
|
+
"sharp/dist",
|
|
3404
|
+
"sharp/package.json"
|
|
3405
|
+
]
|
|
3406
|
+
};
|
|
3407
|
+
|
|
3408
|
+
var _packageJson$version;
|
|
3409
|
+
var VERSION = (_packageJson$version = packageJson.version) !== null && _packageJson$version !== void 0 ? _packageJson$version : null;
|
|
3349
3410
|
|
|
3350
3411
|
/**
|
|
3351
3412
|
* Verifying an OAuth access token, which is the whole of what makes this app a
|
package/dist/valbuild-mcp.esm.js
CHANGED
|
@@ -3329,14 +3329,75 @@ function fromBuildResult(built) {
|
|
|
3329
3329
|
return err("invalid-args", built.message);
|
|
3330
3330
|
}
|
|
3331
3331
|
|
|
3332
|
-
var
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
}
|
|
3332
|
+
var packageJson = {
|
|
3333
|
+
name: "@valbuild/mcp",
|
|
3334
|
+
"private": false,
|
|
3335
|
+
description: "Val - content tools for MCP hosts",
|
|
3336
|
+
repository: {
|
|
3337
|
+
type: "git",
|
|
3338
|
+
url: "git+https://github.com/valbuild/val.git"
|
|
3339
|
+
},
|
|
3340
|
+
main: "dist/valbuild-mcp.cjs.js",
|
|
3341
|
+
module: "dist/valbuild-mcp.esm.js",
|
|
3342
|
+
exports: {
|
|
3343
|
+
".": {
|
|
3344
|
+
module: "./dist/valbuild-mcp.esm.js",
|
|
3345
|
+
"default": "./dist/valbuild-mcp.cjs.js"
|
|
3346
|
+
},
|
|
3347
|
+
"./sharp": {
|
|
3348
|
+
module: "./sharp/dist/valbuild-mcp-sharp.esm.js",
|
|
3349
|
+
"default": "./sharp/dist/valbuild-mcp-sharp.cjs.js"
|
|
3350
|
+
},
|
|
3351
|
+
"./package.json": "./package.json"
|
|
3352
|
+
},
|
|
3353
|
+
types: "dist/valbuild-mcp.cjs.d.ts",
|
|
3354
|
+
version: "0.126.0",
|
|
3355
|
+
scripts: {
|
|
3356
|
+
typecheck: "tsc --noEmit",
|
|
3357
|
+
test: "jest",
|
|
3358
|
+
"test:watch": "jest --watch"
|
|
3359
|
+
},
|
|
3360
|
+
preconstruct: {
|
|
3361
|
+
entrypoints: [
|
|
3362
|
+
"./index.ts",
|
|
3363
|
+
"./sharp/index.ts"
|
|
3364
|
+
],
|
|
3365
|
+
exports: true
|
|
3366
|
+
},
|
|
3367
|
+
dependencies: {
|
|
3368
|
+
"@valbuild/core": "workspace:*",
|
|
3369
|
+
"@valbuild/server": "workspace:*",
|
|
3370
|
+
"@valbuild/shared": "workspace:*",
|
|
3371
|
+
minimatch: "^10.2.6",
|
|
3372
|
+
zod: "^4.4.3"
|
|
3373
|
+
},
|
|
3374
|
+
devDependencies: {
|
|
3375
|
+
"@prettier/sync": "^0.6.1",
|
|
3376
|
+
"@types/jest": "^30.0.0",
|
|
3377
|
+
prettier: "~3.8.5",
|
|
3378
|
+
sharp: "^0.35.4",
|
|
3379
|
+
sucrase: "^3.35.1",
|
|
3380
|
+
typescript: "^6.0.3"
|
|
3381
|
+
},
|
|
3382
|
+
engines: {
|
|
3383
|
+
node: "^20.19.0 || >=22"
|
|
3384
|
+
},
|
|
3385
|
+
keywords: [
|
|
3386
|
+
"CMS",
|
|
3387
|
+
"mcp",
|
|
3388
|
+
"val",
|
|
3389
|
+
"valbuild"
|
|
3390
|
+
],
|
|
3391
|
+
files: [
|
|
3392
|
+
"CHANGELOG.md",
|
|
3393
|
+
"dist",
|
|
3394
|
+
"sharp/dist",
|
|
3395
|
+
"sharp/package.json"
|
|
3396
|
+
]
|
|
3397
|
+
};
|
|
3398
|
+
|
|
3399
|
+
var _packageJson$version;
|
|
3400
|
+
var VERSION = (_packageJson$version = packageJson.version) !== null && _packageJson$version !== void 0 ? _packageJson$version : null;
|
|
3340
3401
|
|
|
3341
3402
|
/**
|
|
3342
3403
|
* Verifying an OAuth access token, which is the whole of what makes this app a
|
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.
|
|
23
|
+
"version": "0.126.0",
|
|
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.
|
|
35
|
-
"@valbuild/shared": "0.
|
|
36
|
-
"@valbuild/server": "0.
|
|
34
|
+
"@valbuild/core": "0.126.0",
|
|
35
|
+
"@valbuild/shared": "0.126.0",
|
|
36
|
+
"@valbuild/server": "0.126.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@prettier/sync": "^0.6.1",
|