@cydm/pie 2.7.7 → 2.7.9
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/dist/builtin/extensions/ask-user/index.js +3 -3
- package/dist/builtin/extensions/plan-mode/index.js +3 -18
- package/dist/builtin/extensions/subagent/index.js +17 -7
- package/dist/builtin/extensions/todo/index.js +3 -3
- package/dist/chunks/{chunk-W5B3OXHQ.js → chunk-5SP2H5QK.js} +1 -1
- package/dist/chunks/{chunk-IU5L5DED.js → chunk-ABZOXNDK.js} +11 -5
- package/dist/chunks/{chunk-UPGEXDEQ.js → chunk-AX5QEIKP.js} +364 -175
- package/dist/chunks/{chunk-2FEDB5GR.js → chunk-SMGBZQI5.js} +12 -4
- package/dist/chunks/{src-C2CBPEUY.js → src-BQUDKBQ7.js} +2 -2
- package/dist/chunks/{test-stream-LDVUVSUP.js → test-stream-A5KBYYZD.js} +1 -1
- package/dist/cli.js +535 -326
- package/package.json +2 -2
|
@@ -6342,12 +6342,15 @@ function streamResponsesSSE(model, context, options) {
|
|
|
6342
6342
|
message.replayEligible = true;
|
|
6343
6343
|
message.replayClass = receivedMessageCount === 0 ? "stream_lost" : "stream_lost_partial";
|
|
6344
6344
|
}
|
|
6345
|
-
if (
|
|
6345
|
+
if (streamLost && !message.remoteFailure) {
|
|
6346
|
+
message.replayClass = receivedMessageCount === 0 ? "stream_lost" : "stream_lost_partial";
|
|
6347
|
+
}
|
|
6348
|
+
if (!message.remoteFailure && !streamLost && (userAborted || (submitted || localFailure))) message.retryable = false;
|
|
6346
6349
|
phase = "cleanup";
|
|
6347
6350
|
lifecycle({
|
|
6348
6351
|
timeoutKind: internalTimeout,
|
|
6349
6352
|
retryAllowed: !userAborted && !localFailure && message.retryable !== false,
|
|
6350
|
-
retryDecision: message.remoteFailure ? `remote_${message.remoteFailure.category}` : streamLost ? receivedMessageCount === 0 ?
|
|
6353
|
+
retryDecision: message.remoteFailure ? `remote_${message.remoteFailure.category}` : streamLost ? message.replayEligible ? receivedMessageCount === 0 ? "replay_exempt_stream_lost" : "replay_exempt_after_submission" : receivedMessageCount === 0 ? "stream_lost_no_evidence" : "stream_lost_partial" : submitted ? "not_retryable_after_submission" : localFailure ? "local_configuration_error" : "not_submitted",
|
|
6351
6354
|
cancelSource: userAborted ? "user" : internalTimeout ? "internal_timeout" : "none",
|
|
6352
6355
|
cleanupOutcome: "request_abandoned"
|
|
6353
6356
|
});
|
|
@@ -6988,7 +6991,7 @@ function streamResponsesWS(model, context, options) {
|
|
|
6988
6991
|
const protocolFailure = !endedWithoutTerminal && (error instanceof ResponsesProtocolError || error instanceof SyntaxError || !transportLost && error instanceof TypeError || error instanceof WebSocketTransportError && (error.kind === "protocol" || error.kind === "overflow"));
|
|
6989
6992
|
const cause = providerRejected && error instanceof WebSocketTransportError ? `${error.message} (HTTP status ${error.status})` : timedOut && !protocolFailure ? `Responses request timeout (${timedOut}) after ${ageMs()}ms` : error instanceof Error ? error.message : String(error);
|
|
6990
6993
|
message.errorMessage = cause;
|
|
6991
|
-
const streamLost = (endedWithoutTerminal || transportLost) && !protocolFailure && sent && !timedOut && !providerRejected && message.stopReason === "error";
|
|
6994
|
+
const streamLost = (endedWithoutTerminal || transportLost) && !protocolFailure && !localFailure && sent && !timedOut && !providerRejected && message.stopReason === "error";
|
|
6992
6995
|
if (timedOut && timedOut !== "connect" && !message.remoteFailure && !protocolFailure && !localFailure && sent && !providerRejected && !userAborted && !ownerDisposed && compat.timeoutReplay) {
|
|
6993
6996
|
message.replayEligible = true;
|
|
6994
6997
|
message.replayClass = timedOut;
|
|
@@ -6996,12 +6999,17 @@ function streamResponsesWS(model, context, options) {
|
|
|
6996
6999
|
message.replayEligible = true;
|
|
6997
7000
|
message.replayClass = receivedMessageCount === 0 ? "stream_lost" : "stream_lost_partial";
|
|
6998
7001
|
}
|
|
6999
|
-
if (!message.remoteFailure
|
|
7002
|
+
if (streamLost && !message.remoteFailure) {
|
|
7003
|
+
message.replayClass = receivedMessageCount === 0 ? "stream_lost" : "stream_lost_partial";
|
|
7004
|
+
}
|
|
7005
|
+
if (!message.remoteFailure && !streamLost && (localFailure || providerRejected || protocolFailure || userAborted || ownerDisposed)) {
|
|
7000
7006
|
message.retryable = false;
|
|
7001
7007
|
}
|
|
7002
7008
|
if (sent) {
|
|
7003
7009
|
if (streamLost && receivedMessageCount === 0) {
|
|
7004
7010
|
retryDecision = message.replayEligible ? "replay_exempt_stream_lost" : "stream_lost_no_evidence";
|
|
7011
|
+
} else if (streamLost) {
|
|
7012
|
+
retryDecision = message.replayEligible ? "replay_exempt_after_submission" : "stream_lost_partial";
|
|
7005
7013
|
} else {
|
|
7006
7014
|
if (!message.remoteFailure) message.retryable = false;
|
|
7007
7015
|
if (!timedOut) retryDecision = message.replayEligible ? "replay_exempt_after_submission" : "not_retryable_after_submission";
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
bindToolCallerIdentity,
|
|
7
7
|
createToolCallerIdentity,
|
|
8
8
|
getToolCallerIdentity
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-5SP2H5QK.js";
|
|
10
|
+
import "./chunk-SMGBZQI5.js";
|
|
11
11
|
import "./chunk-XXGYUYXI.js";
|
|
12
12
|
import "./chunk-LZQXQOPJ.js";
|
|
13
13
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
EventStream
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SMGBZQI5.js";
|
|
5
5
|
import "./chunk-XXGYUYXI.js";
|
|
6
6
|
import "./chunk-LZQXQOPJ.js";
|
|
7
7
|
|