@omercnet/paseo-omp 5.1.0-next.327.1 → 5.1.0-next.329.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.1.0-next.327.1",
3
+ "version": "5.1.0-next.329.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.1.0-next.327.1"; // x-release-please-version
2
+ export const PASEO_OMP_PACKAGE_VERSION = "5.1.0-next.329.1"; // x-release-please-version
@@ -1003,7 +1003,12 @@ export class OmpRpcProcess {
1003
1003
  4_096,
1004
1004
  ) !== Number.POSITIVE_INFINITY;
1005
1005
  if (onlyUnsafePayload && payloadIsSafe) return false;
1006
- if (envelope.data.isTerminal === false) {
1006
+ // Nonterminal messages are never read, so an over-budget list is dropped like a terminal one.
1007
+ if (
1008
+ envelope.data.isTerminal === false &&
1009
+ frame.messages !== undefined &&
1010
+ !Array.isArray(frame.messages)
1011
+ ) {
1007
1012
  this.fail(new Error("OMP emitted an invalid nonterminal agent_end payload"));
1008
1013
  return true;
1009
1014
  }
@@ -1351,6 +1356,7 @@ export class OmpRpcProcess {
1351
1356
  }
1352
1357
  }
1353
1358
 
1359
+ // The session shows this message to the user. Pass only plugin-authored text, never OMP output.
1354
1360
  private fail(error: Error): void {
1355
1361
  if (this.fatalError || this.closed) return;
1356
1362
  this.fatalError = error;
@@ -2359,7 +2359,7 @@ export class OmpProviderSession implements OmpOpenedSession {
2359
2359
  return;
2360
2360
  }
2361
2361
  if (event.type === "process_exit") {
2362
- this.handleRuntimeFailure();
2362
+ this.handleRuntimeFailure(`OMP runtime failed: ${event.error}`);
2363
2363
  return;
2364
2364
  }
2365
2365
  if (event.type === "retry_fallback_applied" || event.type === "retry_fallback_succeeded") {