@valbuild/mcp 0.151.0 → 0.152.1

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,35 @@
1
1
  # @valbuild/mcp
2
2
 
3
+ ## 0.152.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`b9089c8`](https://github.com/valbuild/val/commit/b9089c8787da8075722cc4ef3672beb61b288af4)]:
8
+ - @valbuild/server@0.152.1
9
+ - @valbuild/shared@0.152.1
10
+
11
+ ## 0.152.0
12
+
13
+ ### Patch Changes
14
+
15
+ - [#1013](https://github.com/valbuild/val/pull/1013) [`3bb76d7`](https://github.com/valbuild/val/commit/3bb76d74d82b499aa15023838d63018a70fd7ce7) Thanks [@freekh](https://github.com/freekh)! - A save that the content service fails to take no longer looks like a successful one.
16
+
17
+ Before, when the content service answered a save with a server error (or could not be reached), the Studio treated the edit as invalid and dropped it: the field went back to its old value, and the status bar kept saying "All changes saved". Now:
18
+
19
+ - **Your edit is kept.** The field keeps what you typed.
20
+ - **The Studio says the save failed.** The status bar shows "Could not save" (never "All changes saved" while a save has failed or is still pending), and a notice says which service failed, with the service's own message under **Details**.
21
+ - **Try again** sends the same save again. The Studio also retries by itself in the background, so if you leave the tab open your changes are saved once the service is back.
22
+
23
+ Pressing Publish while a save has failed now says what failed, in the service's words, with a **Save again** button, instead of "Check the connection and try again".
24
+
25
+ Saves that the service refuses because of your plan, and saves that conflict with someone else's change, work as before.
26
+
27
+ Error messages from the content service also stop blaming your network. "Could not get your changes. It is most likely due to a network issue. Check your network connection" was shown even when the service had answered with a 500. These messages now say what actually happened (the service answered with an error, refused the request, or could not be reached from your site's server) and name the service. The status code and the service's response are kept as details for whoever needs to look into it. Publish failures now also show the service's own message, where they used to say "Unknown error".
28
+
29
+ - Updated dependencies [[`3bb76d7`](https://github.com/valbuild/val/commit/3bb76d74d82b499aa15023838d63018a70fd7ce7), [`08a3977`](https://github.com/valbuild/val/commit/08a39779dbe43702a72ae57cbf8cf29b14e64672)]:
30
+ - @valbuild/server@0.152.0
31
+ - @valbuild/shared@0.152.0
32
+
3
33
  ## 0.151.0
4
34
 
5
35
  ### Patch Changes
@@ -1440,7 +1440,7 @@ function _savePatch() {
1440
1440
  attempt = 0;
1441
1441
  case 10:
1442
1442
  if (!(attempt < 2)) {
1443
- _context4.n = 19;
1443
+ _context4.n = 20;
1444
1444
  break;
1445
1445
  }
1446
1446
  if (!(attempt > 0)) {
@@ -1481,7 +1481,7 @@ function _savePatch() {
1481
1481
  _context4.n = 16;
1482
1482
  break;
1483
1483
  }
1484
- return _context4.a(3, 18);
1484
+ return _context4.a(3, 19);
1485
1485
  case 16:
1486
1486
  if (!(saved.error.errorType === "plan-refused")) {
1487
1487
  _context4.n = 17;
@@ -1493,6 +1493,16 @@ function _savePatch() {
1493
1493
  message: saved.error.error.message
1494
1494
  });
1495
1495
  case 17:
1496
+ if (!(saved.error.errorType === "service-error")) {
1497
+ _context4.n = 18;
1498
+ break;
1499
+ }
1500
+ return _context4.a(2, {
1501
+ status: "error",
1502
+ code: "internal",
1503
+ message: "".concat(saved.error.message, " (").concat(saved.error.details, ")")
1504
+ });
1505
+ case 18:
1496
1506
  return _context4.a(2, {
1497
1507
  status: "error",
1498
1508
  code: "internal",
@@ -1500,11 +1510,11 @@ function _savePatch() {
1500
1510
  // `{ errorType: "other", error: <that> }`.
1501
1511
  message: saved.error.error.message
1502
1512
  });
1503
- case 18:
1513
+ case 19:
1504
1514
  attempt++;
1505
1515
  _context4.n = 10;
1506
1516
  break;
1507
- case 19:
1517
+ case 20:
1508
1518
  return _context4.a(2, {
1509
1519
  status: "error",
1510
1520
  code: "conflict",
@@ -3348,7 +3358,7 @@ var packageJson = {
3348
3358
  "./package.json": "./package.json"
3349
3359
  },
3350
3360
  types: "dist/valbuild-mcp.cjs.d.ts",
3351
- version: "0.151.0",
3361
+ version: "0.152.1",
3352
3362
  scripts: {
3353
3363
  typecheck: "tsc --noEmit",
3354
3364
  test: "jest",
@@ -1440,7 +1440,7 @@ function _savePatch() {
1440
1440
  attempt = 0;
1441
1441
  case 10:
1442
1442
  if (!(attempt < 2)) {
1443
- _context4.n = 19;
1443
+ _context4.n = 20;
1444
1444
  break;
1445
1445
  }
1446
1446
  if (!(attempt > 0)) {
@@ -1481,7 +1481,7 @@ function _savePatch() {
1481
1481
  _context4.n = 16;
1482
1482
  break;
1483
1483
  }
1484
- return _context4.a(3, 18);
1484
+ return _context4.a(3, 19);
1485
1485
  case 16:
1486
1486
  if (!(saved.error.errorType === "plan-refused")) {
1487
1487
  _context4.n = 17;
@@ -1493,6 +1493,16 @@ function _savePatch() {
1493
1493
  message: saved.error.error.message
1494
1494
  });
1495
1495
  case 17:
1496
+ if (!(saved.error.errorType === "service-error")) {
1497
+ _context4.n = 18;
1498
+ break;
1499
+ }
1500
+ return _context4.a(2, {
1501
+ status: "error",
1502
+ code: "internal",
1503
+ message: "".concat(saved.error.message, " (").concat(saved.error.details, ")")
1504
+ });
1505
+ case 18:
1496
1506
  return _context4.a(2, {
1497
1507
  status: "error",
1498
1508
  code: "internal",
@@ -1500,11 +1510,11 @@ function _savePatch() {
1500
1510
  // `{ errorType: "other", error: <that> }`.
1501
1511
  message: saved.error.error.message
1502
1512
  });
1503
- case 18:
1513
+ case 19:
1504
1514
  attempt++;
1505
1515
  _context4.n = 10;
1506
1516
  break;
1507
- case 19:
1517
+ case 20:
1508
1518
  return _context4.a(2, {
1509
1519
  status: "error",
1510
1520
  code: "conflict",
@@ -3348,7 +3358,7 @@ var packageJson = {
3348
3358
  "./package.json": "./package.json"
3349
3359
  },
3350
3360
  types: "dist/valbuild-mcp.cjs.d.ts",
3351
- version: "0.151.0",
3361
+ version: "0.152.1",
3352
3362
  scripts: {
3353
3363
  typecheck: "tsc --noEmit",
3354
3364
  test: "jest",
@@ -1431,7 +1431,7 @@ function _savePatch() {
1431
1431
  attempt = 0;
1432
1432
  case 10:
1433
1433
  if (!(attempt < 2)) {
1434
- _context4.n = 19;
1434
+ _context4.n = 20;
1435
1435
  break;
1436
1436
  }
1437
1437
  if (!(attempt > 0)) {
@@ -1472,7 +1472,7 @@ function _savePatch() {
1472
1472
  _context4.n = 16;
1473
1473
  break;
1474
1474
  }
1475
- return _context4.a(3, 18);
1475
+ return _context4.a(3, 19);
1476
1476
  case 16:
1477
1477
  if (!(saved.error.errorType === "plan-refused")) {
1478
1478
  _context4.n = 17;
@@ -1484,6 +1484,16 @@ function _savePatch() {
1484
1484
  message: saved.error.error.message
1485
1485
  });
1486
1486
  case 17:
1487
+ if (!(saved.error.errorType === "service-error")) {
1488
+ _context4.n = 18;
1489
+ break;
1490
+ }
1491
+ return _context4.a(2, {
1492
+ status: "error",
1493
+ code: "internal",
1494
+ message: "".concat(saved.error.message, " (").concat(saved.error.details, ")")
1495
+ });
1496
+ case 18:
1487
1497
  return _context4.a(2, {
1488
1498
  status: "error",
1489
1499
  code: "internal",
@@ -1491,11 +1501,11 @@ function _savePatch() {
1491
1501
  // `{ errorType: "other", error: <that> }`.
1492
1502
  message: saved.error.error.message
1493
1503
  });
1494
- case 18:
1504
+ case 19:
1495
1505
  attempt++;
1496
1506
  _context4.n = 10;
1497
1507
  break;
1498
- case 19:
1508
+ case 20:
1499
1509
  return _context4.a(2, {
1500
1510
  status: "error",
1501
1511
  code: "conflict",
@@ -3339,7 +3349,7 @@ var packageJson = {
3339
3349
  "./package.json": "./package.json"
3340
3350
  },
3341
3351
  types: "dist/valbuild-mcp.cjs.d.ts",
3342
- version: "0.151.0",
3352
+ version: "0.152.1",
3343
3353
  scripts: {
3344
3354
  typecheck: "tsc --noEmit",
3345
3355
  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.151.0",
23
+ "version": "0.152.1",
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.151.0",
35
- "@valbuild/shared": "0.151.0",
36
- "@valbuild/server": "0.151.0"
34
+ "@valbuild/server": "0.152.1",
35
+ "@valbuild/shared": "0.152.1",
36
+ "@valbuild/core": "0.151.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@prettier/sync": "^0.6.1",