@rowan-agent/agent 0.13.2 → 0.14.0

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 CHANGED
@@ -1267,6 +1267,8 @@ type RunSnapshotBase = Readonly<{
1267
1267
  revision: number;
1268
1268
  input: UserInput;
1269
1269
  metadata?: Metadata;
1270
+ /** Effective entry Phase payload the Run started with (defaults filled). */
1271
+ phasePayload?: JsonValue;
1270
1272
  messageCount: number;
1271
1273
  toolCallCount: number;
1272
1274
  currentPhaseId?: 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
- const initialPayload = Object.hasOwn(state, "initialPhasePayload") ? state.initialPhasePayload : config.execution.runMetadata?.phasePayload;
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 })) ?? [] : [];
@@ -8416,6 +8415,7 @@ var InMemoryStore = class _InMemoryStore {
8416
8415
  revision: run.revision,
8417
8416
  input: clone(run.input),
8418
8417
  ...run.metadata ? { metadata: clone(run.metadata) } : {},
8418
+ ...run.phasePayload === void 0 ? {} : { phasePayload: clone(run.phasePayload) },
8419
8419
  messageCount: this.messagesForRun(run.id).length,
8420
8420
  toolCallCount: [...this.toolCalls.values()].filter((toolCall) => toolCall.runId === run.id).length,
8421
8421
  ...run.currentPhaseId === void 0 ? {} : { currentPhaseId: run.currentPhaseId },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rowan-agent/agent",
3
- "version": "0.13.2",
3
+ "version": "0.14.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",