@savvy-web/mcp 3.4.0 → 3.4.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.
Files changed (3) hide show
  1. package/errors.js +7 -4
  2. package/package.json +3 -3
  3. package/version.js +1 -1
package/errors.js CHANGED
@@ -67,14 +67,17 @@ const workspaceNotFound = (cwd) => new WorkspaceNotFound({
67
67
  * rendering is the raw message — passed through `ToolFailure.truncate` at
68
68
  * `ToolFailure.ENGINE_ECHO_LIMIT`, since the kit embeds caller values in it;
69
69
  * `source` keeps the tag for anything that inspects the typed error directly.
70
- * An `Error` in the engine error's own `cause` is appended to that rendering:
71
- * some kit errors (`CatalogAssemblyError`) render only a one-line summary and
72
- * keep the actionable detail in `cause`.
70
+ * An `Error` in the engine error's own `cause` is appended to that rendering
71
+ * unless the rendering already contains it: a kit error that renders only a
72
+ * one-line summary keeps the actionable detail in `cause`, while one that
73
+ * already folds its cause in (`CatalogAssemblyError` since `@effected/npm`
74
+ * 0.17.0) would otherwise print the detail twice.
73
75
  *
74
76
  * @public
75
77
  */
76
78
  const engineError = (cause, remediation) => {
77
- const rendered = cause.cause instanceof Error ? `${cause.message}: ${cause.cause.message}` : cause.message;
79
+ const detail = cause.cause instanceof Error ? cause.cause.message : "";
80
+ const rendered = detail && !cause.message.includes(detail) ? `${cause.message}: ${detail}` : cause.message;
78
81
  return new EngineError({
79
82
  source: cause._tag,
80
83
  message: ToolFailure.message(ToolFailure.truncate(rendered, ToolFailure.ENGINE_ECHO_LIMIT), remediation),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@savvy-web/mcp",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "private": false,
5
5
  "description": "The savvy MCP server — Silk Suite tooling and library knowledge for coding agents",
6
6
  "homepage": "https://github.com/savvy-web/systems/tree/main/packages/mcp",
@@ -42,8 +42,8 @@
42
42
  "@effected/git": "^0.17.0",
43
43
  "@effected/mcp": "^0.2.0",
44
44
  "@effected/templates": "^0.8.0",
45
- "@effected/workspaces": "^0.27.0",
46
- "@savvy-web/silk-effects": "9.1.4",
45
+ "@effected/workspaces": "^0.28.0",
46
+ "@savvy-web/silk-effects": "9.2.0",
47
47
  "effect": "4.0.0-rc.117"
48
48
  }
49
49
  }
package/version.js CHANGED
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @packageDocumentation
8
8
  */
9
- const CURRENT_MCP_VERSION = "3.4.0";
9
+ const CURRENT_MCP_VERSION = "3.4.1";
10
10
 
11
11
  //#endregion
12
12
  export { CURRENT_MCP_VERSION };