@omercnet/paseo-omp 0.4.0-next.120.1 → 0.4.0-next.122.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 +1 -1
- package/server/omp-models.ts +2 -6
- package/server/package-version.ts +1 -1
- package/server/protocol-violation-diagnostics.ts +1 -1
- package/server/provider/catalog.ts +2 -1
- package/server/provider/connection.ts +3 -3
- package/server/provider/host-tools.ts +2 -2
- package/server/provider/omp-rpc-protocol.ts +1949 -0
- package/server/provider/omp-rpc-transport.ts +1348 -0
- package/server/provider/omp-rpc.ts +53 -3242
- package/server/provider/prompt-payload.ts +1 -1
- package/server/provider/registration.ts +2 -1
- package/server/provider/session.ts +4 -5
- package/server/provider/subsessions.ts +2 -3
- package/server/provider/timeline-projector.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ProviderContent, ProviderInput } from "@getpaseo/plugin/server/provider";
|
|
2
2
|
import { getForgeDefinitionOrNeutral } from "@getpaseo/protocol/forge-manifest";
|
|
3
3
|
import { isValidImagePayload } from "./image";
|
|
4
|
-
import type { OmpImage } from "./omp-rpc";
|
|
4
|
+
import type { OmpImage } from "./omp-rpc-protocol";
|
|
5
5
|
import { OmpPublicError, utf8Bytes } from "./security";
|
|
6
6
|
|
|
7
7
|
type SessionPromptInput = Extract<ProviderInput, { type: "session.prompt" }>;
|
|
@@ -7,7 +7,8 @@ import type { OmpOperationalFailureReporter } from "../operational-failure-diagn
|
|
|
7
7
|
import { probeOmpAvailability } from "../provider-diagnostics";
|
|
8
8
|
import { createOmpConnection, OmpNativeSessionReservations } from "./connection";
|
|
9
9
|
import type { OmpMcpConnector } from "./host-tools";
|
|
10
|
-
import {
|
|
10
|
+
import { OmpRpcRuntime, type OmpRuntime } from "./omp-rpc";
|
|
11
|
+
import type { OmpProtocolViolationDiagnostic } from "./omp-rpc-protocol";
|
|
11
12
|
import { parseOmpProviderOptions } from "./provider-options";
|
|
12
13
|
import { boundedJsonBytes } from "./security";
|
|
13
14
|
import { OmpProviderOptionsSchema } from "./settings";
|
|
@@ -29,6 +29,8 @@ import {
|
|
|
29
29
|
} from "./config-normalization";
|
|
30
30
|
import { OmpHostToolsBridge, type OmpMcpConnector, validateOmpHostToolConfig } from "./host-tools";
|
|
31
31
|
import { isOmpImageMimeType, OmpImageMaterializer } from "./image";
|
|
32
|
+
import type { OmpRuntime, OmpRuntimeSession } from "./omp-rpc";
|
|
33
|
+
import { buildOmpSpawnRequest, type OmpStartOptions } from "./omp-rpc-environment";
|
|
32
34
|
import type {
|
|
33
35
|
OmpAvailableCommand,
|
|
34
36
|
OmpBranchResult,
|
|
@@ -37,15 +39,12 @@ import type {
|
|
|
37
39
|
OmpMessage,
|
|
38
40
|
OmpModel,
|
|
39
41
|
OmpRpcEvent,
|
|
40
|
-
OmpRuntime,
|
|
41
|
-
OmpRuntimeSession,
|
|
42
42
|
OmpSessionState,
|
|
43
43
|
OmpSessionStats,
|
|
44
44
|
OmpToolApprovalCancel,
|
|
45
45
|
OmpToolApprovalRequest,
|
|
46
|
-
} from "./omp-rpc";
|
|
47
|
-
import { OmpRpcRequestRejectedError } from "./omp-rpc";
|
|
48
|
-
import { buildOmpSpawnRequest, type OmpStartOptions } from "./omp-rpc-environment";
|
|
46
|
+
} from "./omp-rpc-protocol";
|
|
47
|
+
import { OmpRpcRequestRejectedError } from "./omp-rpc-transport";
|
|
49
48
|
import {
|
|
50
49
|
inlinePromptFrameBytes,
|
|
51
50
|
isSafeCommandName,
|
|
@@ -2,14 +2,13 @@ import { createHash } from "node:crypto";
|
|
|
2
2
|
import { basename, extname, isAbsolute } from "node:path";
|
|
3
3
|
import type { ProviderEvent } from "@getpaseo/plugin/server/provider";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
+
import type { OmpRuntime, OmpRuntimeSession } from "./omp-rpc";
|
|
5
6
|
import type {
|
|
6
7
|
OmpAgentSessionEvent,
|
|
7
8
|
OmpMessage,
|
|
8
|
-
OmpRuntime,
|
|
9
|
-
OmpRuntimeSession,
|
|
10
9
|
OmpSubagentEvent,
|
|
11
10
|
OmpSubagentSnapshot,
|
|
12
|
-
} from "./omp-rpc";
|
|
11
|
+
} from "./omp-rpc-protocol";
|
|
13
12
|
import {
|
|
14
13
|
BoundedStringSet,
|
|
15
14
|
boundedJsonBytes,
|