praxis-agent 0.42.0 → 0.42.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/README.md +3 -1
- package/dist/cli-runtime.js +1 -0
- package/dist/mcp/claude-mcp-tools.d.ts +10 -7
- package/dist/mcp/claude-mcp-tools.js +223 -331
- package/dist/mcp/mcp-server-session.d.ts +81 -0
- package/dist/mcp/mcp-server-session.js +590 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -198,7 +198,9 @@ troubleshooting. Run `praxis --help` for the authoritative command surface.
|
|
|
198
198
|
validation for unsupported payloads.
|
|
199
199
|
- **Native resource ecosystem** — shared Praxis instructions with recursive `@`
|
|
200
200
|
imports, memory, skills, commands, agents, hooks, settings, MCP servers,
|
|
201
|
-
plugins, and append-only `praxis.transcript` JSONL sessions under `~/.praxis
|
|
201
|
+
plugins, and append-only `praxis.transcript` JSONL sessions under `~/.praxis`,
|
|
202
|
+
with bounded MCP connection, discovery, and tool operations plus safe
|
|
203
|
+
disconnect recovery that never replays an already-dispatched call.
|
|
202
204
|
- **Provider-neutral models** — native Anthropic Messages and OpenAI-compatible
|
|
203
205
|
streaming adapters with explicit capability checks, metering controls, and
|
|
204
206
|
a bounded absolute deadline for every provider attempt.
|
package/dist/cli-runtime.js
CHANGED
|
@@ -1381,6 +1381,7 @@ const createDefaultService = async ({ eventSink, requireProvider, hooksOnly = fa
|
|
|
1381
1381
|
provider: hostedToolProvider,
|
|
1382
1382
|
}),
|
|
1383
1383
|
resources: await runtimeMcpResources(resources.mcp),
|
|
1384
|
+
environment: runtimeEnvironment,
|
|
1384
1385
|
reloadResources: async () => {
|
|
1385
1386
|
if (cli.strictMcpConfig)
|
|
1386
1387
|
return runtimeMcpResources(cli.mcpResources);
|
|
@@ -70,6 +70,7 @@ export interface ClaudeMcpToolRegistryOptions {
|
|
|
70
70
|
configRoot?: string;
|
|
71
71
|
onWarning?: (message: string) => void;
|
|
72
72
|
signal?: AbortSignal;
|
|
73
|
+
environment?: NodeJS.ProcessEnv;
|
|
73
74
|
eventSink?: RuntimeEventSink;
|
|
74
75
|
onPromptsChanged?: (prompts: readonly ClaudeMcpPromptDefinition[]) => void;
|
|
75
76
|
onInstructionsChanged?: (instructions: readonly ClaudeMcpServerInstruction[]) => void;
|
|
@@ -91,21 +92,22 @@ export declare function validateClaudeMcpConfiguration(resources: readonly JsonR
|
|
|
91
92
|
export declare class ClaudeMcpToolRegistry implements ToolRegistry, ClaudeMcpRuntime {
|
|
92
93
|
private readonly options;
|
|
93
94
|
private readonly connectedTools;
|
|
95
|
+
private readonly toolRoutes;
|
|
94
96
|
private readonly reservedTools;
|
|
95
97
|
private readonly resourceServers;
|
|
98
|
+
private readonly resourceRoutes;
|
|
96
99
|
private readonly promptServers;
|
|
97
100
|
private readonly statuses;
|
|
98
|
-
private readonly
|
|
99
|
-
private readonly
|
|
100
|
-
private readonly reconnectableServers;
|
|
101
|
+
private readonly sessions;
|
|
102
|
+
private readonly serverSensitiveValues;
|
|
101
103
|
private readonly serverCapabilities;
|
|
102
104
|
private readonly serverInstructions;
|
|
103
|
-
private readonly reconnectingServers;
|
|
104
105
|
private readonly promptOperations;
|
|
105
106
|
private promptResultDirectoryPromise;
|
|
106
107
|
private closePromise;
|
|
107
108
|
private generation;
|
|
108
109
|
private closed;
|
|
110
|
+
private readonly timeouts;
|
|
109
111
|
private constructor();
|
|
110
112
|
static connect(options: ClaudeMcpToolRegistryOptions): Promise<ClaudeMcpToolRegistry>;
|
|
111
113
|
definitions(): readonly ModelToolDefinition[];
|
|
@@ -134,16 +136,17 @@ export declare class ClaudeMcpToolRegistry implements ToolRegistry, ClaudeMcpRun
|
|
|
134
136
|
execute(call: ModelToolCall, context: ToolExecutionContext): Promise<ToolExecutionResult>;
|
|
135
137
|
close(): Promise<void>;
|
|
136
138
|
private finishClose;
|
|
139
|
+
private awaitPromptOperationsBounded;
|
|
137
140
|
private listResources;
|
|
138
141
|
private readResource;
|
|
139
142
|
private resourceServer;
|
|
140
143
|
private connectServer;
|
|
141
|
-
private discoverTools;
|
|
142
|
-
private discoverResources;
|
|
143
|
-
private discoverPrompts;
|
|
144
144
|
private invokePrompt;
|
|
145
145
|
private ensurePromptConnected;
|
|
146
146
|
private reconnectServer;
|
|
147
|
+
private removeServerPublication;
|
|
148
|
+
private removeServerRoutes;
|
|
149
|
+
private publishCatalog;
|
|
147
150
|
private publishPrompts;
|
|
148
151
|
private publishInstructions;
|
|
149
152
|
private assertOpenGeneration;
|