@rowan-agent/agent 0.13.3 → 0.14.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/dist/index.d.ts +2 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -110,6 +110,8 @@ type RunInteraction = Readonly<{
|
|
|
110
110
|
status: RunInteractionStatus;
|
|
111
111
|
answer?: JsonValue;
|
|
112
112
|
reply?: string;
|
|
113
|
+
/** The Run is only waiting for the next user message, not asking a question. */
|
|
114
|
+
turnBoundary?: true;
|
|
113
115
|
toolCallId?: string;
|
|
114
116
|
result?: Readonly<{
|
|
115
117
|
answered?: string;
|
package/dist/index.js
CHANGED
|
@@ -2609,8 +2609,7 @@ async function runPhaseLoop(config, state, registry) {
|
|
|
2609
2609
|
if (resumingSuspendedRun) {
|
|
2610
2610
|
state.status = "running";
|
|
2611
2611
|
}
|
|
2612
|
-
|
|
2613
|
-
let previousPayload = resumingSuspendedRun ? state.continuation && Object.hasOwn(state.continuation, "previousPayload") ? state.continuation.previousPayload : state.initialPhasePayload : initialPayload;
|
|
2612
|
+
let previousPayload = resumingSuspendedRun ? state.continuation && Object.hasOwn(state.continuation, "previousPayload") ? state.continuation.previousPayload : state.initialPhasePayload : state.initialPhasePayload;
|
|
2614
2613
|
let previousPhaseMsgId = resumingSuspendedRun ? state.continuation?.previousPhaseMessageId : void 0;
|
|
2615
2614
|
let previousPhaseInputMsgId;
|
|
2616
2615
|
let previousResults = resumingSuspendedRun ? state.continuation?.previousResults?.map((result) => ({ ...result })) ?? [] : [];
|
|
@@ -3450,6 +3449,7 @@ async function executeOnce(input) {
|
|
|
3450
3449
|
kind: "user_input",
|
|
3451
3450
|
phase: error.request.phase,
|
|
3452
3451
|
prompt: error.request.prompt,
|
|
3452
|
+
turnBoundary: true,
|
|
3453
3453
|
status: "pending",
|
|
3454
3454
|
createdAt: error.request.requestedAt
|
|
3455
3455
|
};
|