@camerontaylor/paseo-server 0.11.2-fork.1 → 0.11.2-fork.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.
@@ -82,7 +82,7 @@ export function summarizeACPRequestError(error) {
82
82
  if (error instanceof Error) {
83
83
  return { message: error.message };
84
84
  }
85
- return { message: String(error) };
85
+ return { message: toDiagnosticErrorMessage(error) };
86
86
  }
87
87
  // Keeps the JSON-RPC code so callers can still tell invalid params from other failures.
88
88
  class ACPRequestError extends Error {
@@ -94,7 +94,7 @@ class ACPRequestError extends Error {
94
94
  }
95
95
  function toACPRequestError(error) {
96
96
  if (!isACPError(error)) {
97
- return error instanceof Error ? error : new Error(String(error));
97
+ return error instanceof Error ? error : new Error(toDiagnosticErrorMessage(error));
98
98
  }
99
99
  return new ACPRequestError(error);
100
100
  }
@@ -3,6 +3,7 @@ import { mkdir, readFile, writeFile } from "node:fs/promises";
3
3
  import { join } from "node:path";
4
4
  import { z } from "zod";
5
5
  import { CreationSnapshotSchema, } from "@camerontaylor/paseo-protocol/messages";
6
+ import { toDiagnosticErrorMessage } from "../agent/providers/diagnostic-utils.js";
6
7
  import { writeFileAtomic } from "../atomic-file.js";
7
8
  import { generateWorkspaceId } from "../workspace-registry-model.js";
8
9
  const RecordSchema = z.object({
@@ -157,7 +158,7 @@ export class CreationService {
157
158
  record.inFlight = null;
158
159
  await this.publish(identity, record, {
159
160
  phase: "failed",
160
- error: error instanceof Error ? error.message : String(error),
161
+ error: toDiagnosticErrorMessage(error),
161
162
  errorCode: code,
162
163
  failedStage: stage,
163
164
  outcomeUnknown: unknown,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camerontaylor/paseo-server",
3
- "version": "0.11.2-fork.1",
3
+ "version": "0.11.2-fork.2",
4
4
  "description": "Paseo backend server",
5
5
  "files": [
6
6
  "dist/server",
@@ -107,11 +107,11 @@
107
107
  "@agentclientprotocol/sdk": "^0.17.1",
108
108
  "@anthropic-ai/claude-agent-sdk": "0.3.246",
109
109
  "@anthropic-ai/sdk": "^0.104.2",
110
- "@camerontaylor/paseo-client": "0.11.2-fork.1",
111
- "@camerontaylor/paseo-highlight": "0.11.2-fork.1",
112
- "@camerontaylor/paseo-plugin": "0.11.2-fork.1",
113
- "@camerontaylor/paseo-protocol": "0.11.2-fork.1",
114
- "@camerontaylor/paseo-relay": "0.11.2-fork.1",
110
+ "@camerontaylor/paseo-client": "0.11.2-fork.2",
111
+ "@camerontaylor/paseo-highlight": "0.11.2-fork.2",
112
+ "@camerontaylor/paseo-plugin": "0.11.2-fork.2",
113
+ "@camerontaylor/paseo-protocol": "0.11.2-fork.2",
114
+ "@camerontaylor/paseo-relay": "0.11.2-fork.2",
115
115
  "@isaacs/ttlcache": "^2.1.4",
116
116
  "@modelcontextprotocol/sdk": "1.29.0",
117
117
  "@opencode-ai/sdk": "1.14.46",