@codeworksh/harness 0.5.0-canary.89.1.g133d6521 → 0.5.0-canary.90.1.gec09b058
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/effect.d.mts +25 -25
- package/effect.mjs +2 -0
- package/effect.mjs.map +1 -1
- package/package.json +3 -3
package/effect.d.mts
CHANGED
|
@@ -31270,12 +31270,25 @@ declare const make$1: (input: {
|
|
|
31270
31270
|
completed: number;
|
|
31271
31271
|
};
|
|
31272
31272
|
parts: ({
|
|
31273
|
+
type: "text";
|
|
31274
|
+
text: string;
|
|
31275
|
+
textSignature?: string;
|
|
31276
|
+
} | {
|
|
31277
|
+
type: "image";
|
|
31278
|
+
data: string;
|
|
31279
|
+
mimeType: string;
|
|
31280
|
+
} | {
|
|
31281
|
+
type: "thinking";
|
|
31282
|
+
thinking: string;
|
|
31283
|
+
thinkingSignature?: string;
|
|
31284
|
+
redacted?: boolean;
|
|
31285
|
+
} | {
|
|
31273
31286
|
arguments: Record<string, any>;
|
|
31274
31287
|
callID: string;
|
|
31275
31288
|
name: string;
|
|
31276
31289
|
namespace?: string;
|
|
31277
|
-
|
|
31278
|
-
content
|
|
31290
|
+
partial?: {
|
|
31291
|
+
content?: ({
|
|
31279
31292
|
type: "text";
|
|
31280
31293
|
text: string;
|
|
31281
31294
|
textSignature?: string;
|
|
@@ -31285,9 +31298,8 @@ declare const make$1: (input: {
|
|
|
31285
31298
|
mimeType: string;
|
|
31286
31299
|
})[];
|
|
31287
31300
|
details?: any;
|
|
31288
|
-
isError: false;
|
|
31289
31301
|
};
|
|
31290
|
-
status: "
|
|
31302
|
+
status: "running";
|
|
31291
31303
|
thoughtSignature?: string;
|
|
31292
31304
|
time: {
|
|
31293
31305
|
start: number;
|
|
@@ -31310,9 +31322,9 @@ declare const make$1: (input: {
|
|
|
31310
31322
|
mimeType: string;
|
|
31311
31323
|
})[];
|
|
31312
31324
|
details?: any;
|
|
31313
|
-
isError:
|
|
31325
|
+
isError: false;
|
|
31314
31326
|
};
|
|
31315
|
-
status: "
|
|
31327
|
+
status: "completed";
|
|
31316
31328
|
thoughtSignature?: string;
|
|
31317
31329
|
time: {
|
|
31318
31330
|
start: number;
|
|
@@ -31337,7 +31349,7 @@ declare const make$1: (input: {
|
|
|
31337
31349
|
details?: any;
|
|
31338
31350
|
isError: true;
|
|
31339
31351
|
};
|
|
31340
|
-
status: "
|
|
31352
|
+
status: "error";
|
|
31341
31353
|
thoughtSignature?: string;
|
|
31342
31354
|
time: {
|
|
31343
31355
|
start: number;
|
|
@@ -31362,33 +31374,20 @@ declare const make$1: (input: {
|
|
|
31362
31374
|
details?: any;
|
|
31363
31375
|
isError: true;
|
|
31364
31376
|
};
|
|
31365
|
-
status: "
|
|
31377
|
+
status: "skipped";
|
|
31366
31378
|
thoughtSignature?: string;
|
|
31367
31379
|
time: {
|
|
31368
31380
|
start: number;
|
|
31369
31381
|
end: number;
|
|
31370
31382
|
};
|
|
31371
31383
|
type: "toolCall";
|
|
31372
|
-
} | {
|
|
31373
|
-
type: "text";
|
|
31374
|
-
text: string;
|
|
31375
|
-
textSignature?: string;
|
|
31376
|
-
} | {
|
|
31377
|
-
type: "image";
|
|
31378
|
-
data: string;
|
|
31379
|
-
mimeType: string;
|
|
31380
|
-
} | {
|
|
31381
|
-
type: "thinking";
|
|
31382
|
-
thinking: string;
|
|
31383
|
-
thinkingSignature?: string;
|
|
31384
|
-
redacted?: boolean;
|
|
31385
31384
|
} | {
|
|
31386
31385
|
arguments: Record<string, any>;
|
|
31387
31386
|
callID: string;
|
|
31388
31387
|
name: string;
|
|
31389
31388
|
namespace?: string;
|
|
31390
|
-
|
|
31391
|
-
content
|
|
31389
|
+
result: {
|
|
31390
|
+
content: ({
|
|
31392
31391
|
type: "text";
|
|
31393
31392
|
text: string;
|
|
31394
31393
|
textSignature?: string;
|
|
@@ -31398,8 +31397,9 @@ declare const make$1: (input: {
|
|
|
31398
31397
|
mimeType: string;
|
|
31399
31398
|
})[];
|
|
31400
31399
|
details?: any;
|
|
31400
|
+
isError: true;
|
|
31401
31401
|
};
|
|
31402
|
-
status: "
|
|
31402
|
+
status: "aborted";
|
|
31403
31403
|
thoughtSignature?: string;
|
|
31404
31404
|
time: {
|
|
31405
31405
|
start: number;
|
|
@@ -32229,8 +32229,8 @@ declare const update: <A>(target: Fetchable, cache: string, options: {
|
|
|
32229
32229
|
readonly probe: Probe;
|
|
32230
32230
|
readonly from: string;
|
|
32231
32231
|
}) => Effect.Effect<{
|
|
32232
|
-
readonly _tag: "not-installed";
|
|
32233
32232
|
readonly entry?: never;
|
|
32233
|
+
readonly _tag: "not-installed";
|
|
32234
32234
|
} | {
|
|
32235
32235
|
readonly _tag: "unchanged";
|
|
32236
32236
|
readonly entry: Entry;
|
package/effect.mjs
CHANGED
|
@@ -3103,6 +3103,7 @@ const isInvalidResult = (error) => error instanceof SdkError && error.code === S
|
|
|
3103
3103
|
const describe = (error) => {
|
|
3104
3104
|
if (!(error instanceof Error)) return String(error);
|
|
3105
3105
|
if (isInvalidResult(error)) return condense(error.message);
|
|
3106
|
+
if (error instanceof TypeError && systemCode(error) === void 0) return "invalid request (TypeError)";
|
|
3106
3107
|
const detail = error instanceof SdkHttpError ? `HTTP ${error.status}` : !(error instanceof SdkError) ? systemCode(error) : void 0;
|
|
3107
3108
|
return detail && !error.message.includes(detail) ? `${error.message} (${detail})` : error.message;
|
|
3108
3109
|
};
|
|
@@ -3254,6 +3255,7 @@ const connect = Effect.fn("McpClient.connect")(function* (input) {
|
|
|
3254
3255
|
};
|
|
3255
3256
|
const receive = transport.onmessage;
|
|
3256
3257
|
transport.onmessage = (message, extra) => {
|
|
3258
|
+
if (isJSONRPCResultResponse(message) && message.result.nextCursor === "") delete message.result.nextCursor;
|
|
3257
3259
|
if (isJSONRPCResultResponse(message) && listings.has(message.id)) {
|
|
3258
3260
|
const page = screen(client, message.result);
|
|
3259
3261
|
if (page !== void 0) pages.set(listings.get(message.id), page);
|