@omercnet/paseo-omp 5.6.1-next.456.1 → 5.6.1-next.459.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/npm-shrinkwrap.json
CHANGED
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
"name": "@omercnet/paseo-omp",
|
|
9
9
|
"version": "5.6.1",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@getpaseo/protocol": "0.15.
|
|
11
|
+
"@getpaseo/protocol": "0.15.3",
|
|
12
12
|
"@modelcontextprotocol/sdk": "1.32.2",
|
|
13
13
|
"yaml": "^2.9.0"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"node_modules/@getpaseo/protocol": {
|
|
17
|
-
"version": "0.15.
|
|
18
|
-
"resolved": "https://registry.npmjs.org/@getpaseo/protocol/-/protocol-0.15.
|
|
19
|
-
"integrity": "sha512
|
|
17
|
+
"version": "0.15.3",
|
|
18
|
+
"resolved": "https://registry.npmjs.org/@getpaseo/protocol/-/protocol-0.15.3.tgz",
|
|
19
|
+
"integrity": "sha512-JhAYutwgLUSDdvDhQ8yLjxzqJroR3yqmt+5/rv07iqmOAd/CNtKNJSXZAFaTOavWZcRVlL6DD3tkwaobjgb1Xg==",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"semver": "^7.8.5",
|
|
22
22
|
"zod": "^4.4.3"
|
|
@@ -435,9 +435,9 @@
|
|
|
435
435
|
}
|
|
436
436
|
},
|
|
437
437
|
"node_modules/express-rate-limit": {
|
|
438
|
-
"version": "8.7.
|
|
439
|
-
"resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.7.
|
|
440
|
-
"integrity": "sha512-
|
|
438
|
+
"version": "8.7.4",
|
|
439
|
+
"resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.7.4.tgz",
|
|
440
|
+
"integrity": "sha512-LKBXzX700wz3zAGNNmVnjRI5mEbYkLv7UbMI4+9Xa+JPcg2UZh6AgY/2CZh9RrJjFM5ttC/N1lD+KzyFoZITCw==",
|
|
441
441
|
"license": "MIT",
|
|
442
442
|
"dependencies": {
|
|
443
443
|
"debug": "^4.4.3",
|
|
@@ -691,9 +691,9 @@
|
|
|
691
691
|
"license": "ISC"
|
|
692
692
|
},
|
|
693
693
|
"node_modules/jose": {
|
|
694
|
-
"version": "6.2.
|
|
695
|
-
"resolved": "https://registry.npmjs.org/jose/-/jose-6.2.
|
|
696
|
-
"integrity": "sha512-
|
|
694
|
+
"version": "6.2.17",
|
|
695
|
+
"resolved": "https://registry.npmjs.org/jose/-/jose-6.2.17.tgz",
|
|
696
|
+
"integrity": "sha512-wOuK9V1yujQFH5S0ZWmLcDZN7+IKh9bUCC2ZPCf2HDlol3WWHy+PPyNjEI75FXRLMp3vDKQcupP59xhVU95hcg==",
|
|
697
697
|
"license": "MIT",
|
|
698
698
|
"funding": {
|
|
699
699
|
"url": "https://github.com/sponsors/panva"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omercnet/paseo-omp",
|
|
3
|
-
"version": "5.6.1-next.
|
|
3
|
+
"version": "5.6.1-next.459.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Paseo integration for OMP, including its direct provider and workspace tooling.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
"typecheck": "tsc --noEmit -p tsconfig.client.json && tsc --noEmit -p tsconfig.server.json && tsc --noEmit -p tsconfig.tests.json"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@getpaseo/protocol": "0.15.
|
|
57
|
+
"@getpaseo/protocol": "0.15.3",
|
|
58
58
|
"@modelcontextprotocol/sdk": "1.32.2",
|
|
59
59
|
"yaml": "^2.9.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@biomejs/biome": "^2.5.10",
|
|
63
|
-
"@getpaseo/cli": "0.15.
|
|
64
|
-
"@getpaseo/client": "0.15.
|
|
65
|
-
"@getpaseo/plugin": "0.15.
|
|
66
|
-
"@getpaseo/server": "0.15.
|
|
63
|
+
"@getpaseo/cli": "0.15.3",
|
|
64
|
+
"@getpaseo/client": "0.15.3",
|
|
65
|
+
"@getpaseo/plugin": "0.15.3",
|
|
66
|
+
"@getpaseo/server": "0.15.3",
|
|
67
67
|
"@oh-my-pi/pi-agent-core": "18.18.0",
|
|
68
68
|
"@oh-my-pi/pi-coding-agent": "18.18.0",
|
|
69
69
|
"@tanstack/react-query": "^5.102.3",
|
|
@@ -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.6.1-next.
|
|
2
|
+
export const PASEO_OMP_PACKAGE_VERSION = "5.6.1-next.459.1"; // x-release-please-version
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isDeepStrictEqual } from "node:util";
|
|
1
2
|
import type { ProviderSessionConfig } from "@getpaseo/plugin/server/provider";
|
|
2
3
|
import type { OmpStartOptions } from "./omp-rpc-environment";
|
|
3
4
|
|
|
@@ -15,6 +16,24 @@ import { OmpPublicError } from "./security";
|
|
|
15
16
|
import { withoutOmpSessionPurpose } from "./session-purpose";
|
|
16
17
|
import { OmpModeSchema } from "./settings";
|
|
17
18
|
|
|
19
|
+
/**
|
|
20
|
+
* Whether a session asks for provider settings OMP does not expose. Paseo 0.14/0.15 fill
|
|
21
|
+
* `settings` from feature values; Paseo 0.16 mirrors `providerOptions` there instead, so a key
|
|
22
|
+
* that only repeats the same `providerOptions` value is not a setting.
|
|
23
|
+
*/
|
|
24
|
+
export function hasOmpProviderSettings(settings: unknown, providerOptions: unknown): boolean {
|
|
25
|
+
if (!settings || typeof settings !== "object") return false;
|
|
26
|
+
const options =
|
|
27
|
+
providerOptions && typeof providerOptions === "object"
|
|
28
|
+
? (providerOptions as Record<string, unknown>)
|
|
29
|
+
: {};
|
|
30
|
+
for (const [key, value] of Object.entries(settings)) {
|
|
31
|
+
if (!Object.hasOwn(options, key)) return true;
|
|
32
|
+
if (!isDeepStrictEqual(value, options[key])) return true;
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
|
|
18
37
|
const OMP_BUILTIN_TOOL_NAMES = [
|
|
19
38
|
"read",
|
|
20
39
|
"bash",
|
|
@@ -120,7 +139,7 @@ export function normalizeOmpSessionConfig(
|
|
|
120
139
|
permissionSupported = false,
|
|
121
140
|
hostInheritEnv: readonly string[] = [],
|
|
122
141
|
): NormalizedOmpStartOptions {
|
|
123
|
-
if (
|
|
142
|
+
if (hasOmpProviderSettings(config.settings, config.providerOptions)) {
|
|
124
143
|
throw new OmpPublicError("OMP does not expose live provider settings");
|
|
125
144
|
}
|
|
126
145
|
const parsedMode = OmpModeSchema.safeParse(config.mode ?? "full");
|
|
@@ -15,7 +15,7 @@ import type {
|
|
|
15
15
|
} from "../operational-failure-diagnostics";
|
|
16
16
|
import type { OmpSubagentControlRegistry } from "../subagents";
|
|
17
17
|
import { discoverOmpCatalog } from "./catalog";
|
|
18
|
-
import { normalizeOmpCatalogOptions } from "./config-normalization";
|
|
18
|
+
import { hasOmpProviderSettings, normalizeOmpCatalogOptions } from "./config-normalization";
|
|
19
19
|
import type { OmpMcpConnector } from "./host-tools";
|
|
20
20
|
import type { OmpRuntime } from "./omp-rpc";
|
|
21
21
|
import {
|
|
@@ -77,14 +77,6 @@ const MAX_NESTED_OPTION_BYTES = 256 * 1024;
|
|
|
77
77
|
const MAX_ENV_ENTRIES = 256;
|
|
78
78
|
const MAX_NATIVE_SESSION_RESERVATIONS = 256;
|
|
79
79
|
|
|
80
|
-
function hasOwnEntries(value: unknown): boolean {
|
|
81
|
-
if (!value || typeof value !== "object") return false;
|
|
82
|
-
for (const key in value) {
|
|
83
|
-
if (Object.hasOwn(value, key)) return true;
|
|
84
|
-
}
|
|
85
|
-
return false;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
80
|
function providerOptionsExceedPreflightLimits(value: unknown): boolean {
|
|
89
81
|
if (
|
|
90
82
|
boundedJsonBytes(value, MAX_NESTED_OPTION_BYTES, MAX_ENV_ENTRIES) === Number.POSITIVE_INFINITY
|
|
@@ -143,7 +135,7 @@ function preflightProviderInput(input: unknown): void {
|
|
|
143
135
|
if (config?.toolPolicy !== undefined) {
|
|
144
136
|
throw new OmpPublicError("OMP does not support host tool policies");
|
|
145
137
|
}
|
|
146
|
-
if (
|
|
138
|
+
if (hasOmpProviderSettings(config?.settings, config?.providerOptions)) {
|
|
147
139
|
throw new OmpPublicError("OMP does not expose live provider settings");
|
|
148
140
|
}
|
|
149
141
|
}
|