@omercnet/paseo-omp 5.7.0-next.504.1 → 5.7.0-next.507.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omercnet/paseo-omp",
3
- "version": "5.7.0-next.504.1",
3
+ "version": "5.7.0-next.507.1",
4
4
  "type": "module",
5
5
  "description": "Paseo integration for OMP, including its direct provider and workspace tooling.",
6
6
  "license": "MIT",
@@ -1,2 +1,2 @@
1
1
  /** Release Please keeps this bundle-safe constant aligned with package.json. */
2
- export const PASEO_OMP_PACKAGE_VERSION = "5.7.0-next.504.1"; // x-release-please-version
2
+ export const PASEO_OMP_PACKAGE_VERSION = "5.7.0-next.507.1"; // x-release-please-version
@@ -60,6 +60,9 @@ export const OMP_MESSAGE_REPLAY_POLICIES = {
60
60
  export const OMP_SESSION_EVENT_POLICIES = {
61
61
  agent_start: "lifecycle",
62
62
  agent_end: "lifecycle",
63
+ // OMP 18.21+: a model loop that stopped inside a run that goes on. The RPC wire re-encodes it as
64
+ // `agent_end` with `isTerminal: false`; it arrives raw only inside `subagent_event` payloads.
65
+ agent_pause: "lifecycle",
63
66
  turn_start: "lifecycle",
64
67
  turn_end: "lifecycle",
65
68
  message_start: "normalize",
@@ -231,6 +234,7 @@ export type OmpProtocolDiagnosticPhase = (typeof OMP_PROTOCOL_DIAGNOSTIC_PHASES)
231
234
  export const OMP_PROTOCOL_EVENT_TYPES = [
232
235
  "agent_start",
233
236
  "agent_end",
237
+ "agent_pause",
234
238
  "turn_start",
235
239
  "turn_end",
236
240
  "message_start",
@@ -1572,6 +1576,12 @@ const OmpAutoRetryEndEventSchema = z.object({
1572
1576
  });
1573
1577
  const OmpAgentSessionEventSchema = z.discriminatedUnion("type", [
1574
1578
  ...OmpCoreAgentEventSchema.options,
1579
+ z.object({
1580
+ type: z.literal("agent_pause"),
1581
+ messages: z.array(OmpMessageSchema).max(MAX_ARRAY_ITEMS),
1582
+ yielded: z.boolean(),
1583
+ awaiting: z.boolean(),
1584
+ }),
1575
1585
  z.object({ type: z.literal("config_warnings_changed") }),
1576
1586
  z.object({ type: z.literal("advisor_cost_changed") }),
1577
1587
  z.object({ type: z.literal("cache_warming_start") }),
@@ -1897,6 +1907,7 @@ function mapAgentEventDetails(
1897
1907
  case "tool_execution_end":
1898
1908
  return mapRecordField(frame, "result", map, frame.toolName === "task");
1899
1909
  case "agent_end":
1910
+ case "agent_pause":
1900
1911
  return mapRecordField(frame, "messages", (messages) => mapMessageList(messages, map));
1901
1912
  case "irc_message":
1902
1913
  return mapRecordField(frame, "message", map);
@@ -596,6 +596,10 @@ export class OmpTimelineProjector {
596
596
  return;
597
597
  }
598
598
  }
599
+ // OMP 18.21+ `agent_pause` only reaches us nested in `subagent_event` (the RPC wire turns it into
600
+ // a nonterminal `agent_end`). Its messages already streamed as message events and the child's
601
+ // status comes from `subagent_lifecycle`/`subagent_progress`, so there is nothing to render.
602
+ if (event.type === "agent_pause") return;
599
603
  if (
600
604
  (event.type === "message_start" ||
601
605
  event.type === "message_update" ||