@omercnet/paseo-omp 0.4.0-next.114.1 → 0.4.0-next.119.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 +3 -1
- package/server/package-version.ts +1 -1
- package/server/provider/connection.ts +28 -1
- package/server/provider/omp-rpc.ts +792 -178
- package/server/provider/session-descriptors.ts +52 -18
- package/server/provider/session.ts +12 -1
- package/server/provider/subsessions.ts +28 -6
- package/server/provider/timeline-projector.ts +94 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omercnet/paseo-omp",
|
|
3
|
-
"version": "0.4.0-next.
|
|
3
|
+
"version": "0.4.0-next.119.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Paseo integration for OMP, including its direct provider and workspace tooling.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -60,6 +60,8 @@
|
|
|
60
60
|
"@getpaseo/cli": "0.9.0-beta.1",
|
|
61
61
|
"@getpaseo/client": "0.9.0-beta.1",
|
|
62
62
|
"@getpaseo/plugin": "0.9.0-beta.1",
|
|
63
|
+
"@oh-my-pi/pi-agent-core": "18.2.0",
|
|
64
|
+
"@oh-my-pi/pi-coding-agent": "18.2.0",
|
|
63
65
|
"@tanstack/react-query": "^5.102.3",
|
|
64
66
|
"@types/node": "^24.10.1",
|
|
65
67
|
"@types/react": "^19.2.18",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Release Please keeps this bundle-safe constant aligned with package.json. */
|
|
2
|
-
export const PASEO_OMP_PACKAGE_VERSION = "0.4.0-next.
|
|
2
|
+
export const PASEO_OMP_PACKAGE_VERSION = "0.4.0-next.119.1"; // x-release-please-version
|
|
@@ -16,7 +16,14 @@ import type {
|
|
|
16
16
|
import { discoverOmpCatalog } from "./catalog";
|
|
17
17
|
import { normalizeOmpCatalogOptions } from "./config-normalization";
|
|
18
18
|
import type { OmpMcpConnector } from "./host-tools";
|
|
19
|
-
import
|
|
19
|
+
import {
|
|
20
|
+
OMP_RPC_BOUND_DIMENSIONS,
|
|
21
|
+
OMP_RPC_DIAGNOSTIC_COMMANDS,
|
|
22
|
+
type OmpRpcBoundDimension,
|
|
23
|
+
type OmpRpcDiagnosticCommand,
|
|
24
|
+
OmpRpcResponseLimitError,
|
|
25
|
+
type OmpRuntime,
|
|
26
|
+
} from "./omp-rpc";
|
|
20
27
|
import {
|
|
21
28
|
boundedJsonBytes,
|
|
22
29
|
isOmpCleanupFailure,
|
|
@@ -320,6 +327,10 @@ export interface OmpConnectionDiagnostic {
|
|
|
320
327
|
code?: (typeof SYSTEM_ERROR_CODES)[number] | (typeof DATABASE_ERROR_CODES)[number];
|
|
321
328
|
exitCode?: number;
|
|
322
329
|
signal?: (typeof EXIT_SIGNALS)[number];
|
|
330
|
+
command?: OmpRpcDiagnosticCommand;
|
|
331
|
+
bound?: OmpRpcBoundDimension;
|
|
332
|
+
actual?: number;
|
|
333
|
+
limit?: number;
|
|
323
334
|
}
|
|
324
335
|
|
|
325
336
|
// Match complete, locally authored messages only. Never log an arbitrary message, error name,
|
|
@@ -428,6 +439,22 @@ function classifyFailure(
|
|
|
428
439
|
: "NonError",
|
|
429
440
|
classification: "unexpected",
|
|
430
441
|
};
|
|
442
|
+
if (error instanceof OmpRpcResponseLimitError) {
|
|
443
|
+
const command = OMP_RPC_DIAGNOSTIC_COMMANDS.find((value) => value === error.command);
|
|
444
|
+
const bound = OMP_RPC_BOUND_DIMENSIONS.find((value) => value === error.bound);
|
|
445
|
+
const actual =
|
|
446
|
+
Number.isSafeInteger(error.actual) && error.actual >= 0 ? error.actual : undefined;
|
|
447
|
+
const limit = Number.isSafeInteger(error.limit) && error.limit >= 0 ? error.limit : undefined;
|
|
448
|
+
return {
|
|
449
|
+
...result,
|
|
450
|
+
classification: "rpc-response-limit",
|
|
451
|
+
stage: "rpc",
|
|
452
|
+
...(command ? { command } : {}),
|
|
453
|
+
...(bound ? { bound } : {}),
|
|
454
|
+
...(actual !== undefined ? { actual } : {}),
|
|
455
|
+
...(limit !== undefined ? { limit } : {}),
|
|
456
|
+
};
|
|
457
|
+
}
|
|
431
458
|
const message = error instanceof Error ? error.message : undefined;
|
|
432
459
|
if (typeof message === "string") {
|
|
433
460
|
const known = KNOWN_FAILURES.get(message);
|