operon-agents 0.1.0-alpha.26 → 0.1.0-alpha.28
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/dist/workspace-mcp.js +2 -9
- package/package.json +2 -2
package/dist/workspace-mcp.js
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
*/
|
|
29
29
|
import { realpath } from "node:fs/promises";
|
|
30
30
|
import { resolve } from "node:path";
|
|
31
|
-
import { createMcpServers, mcpServersCapability,
|
|
31
|
+
import { assertMcpTransportsPermitted, createMcpServers, mcpServersCapability, } from "operon-agents-core";
|
|
32
32
|
/** How long a directory's connections outlive its last session by default: five minutes. */
|
|
33
33
|
export const DEFAULT_WORKSPACE_MCP_IDLE_MS = 5 * 60_000;
|
|
34
34
|
export class WorkspaceMcpPool {
|
|
@@ -143,14 +143,7 @@ export class WorkspaceMcpPool {
|
|
|
143
143
|
* `mcpServersCapability` viewing a shared set — same tools, same `session.mcp`, same overlay.
|
|
144
144
|
*/
|
|
145
145
|
export function workspaceMcpCapability(options) {
|
|
146
|
-
|
|
147
|
-
if (allowed !== undefined) {
|
|
148
|
-
for (const [name, config] of Object.entries(options.servers)) {
|
|
149
|
-
if (config.enabled !== false && !allowed.includes(config.transport)) {
|
|
150
|
-
throw new McpTransportNotPermittedError(name, config.transport, allowed);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
146
|
+
assertMcpTransportsPermitted(options.servers, options.overlayOptions?.allowedTransports);
|
|
154
147
|
let lease;
|
|
155
148
|
/** The borrowed set while a lease is held; the view below is empty without one. */
|
|
156
149
|
let bound;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "operon-agents",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.28",
|
|
4
4
|
"description": "Public SDK entrypoint for building agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"zod": "^4.4.3",
|
|
75
75
|
"smol-toml": "^1.6.1",
|
|
76
76
|
"@earendil-works/pi-ai": "1.5.0",
|
|
77
|
-
"operon-agents-core": "0.1.0-alpha.
|
|
77
|
+
"operon-agents-core": "0.1.0-alpha.28"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@earendil-works/pi-ai": "1.5.0"
|