@haven_ai/connect 0.1.2-alpha → 0.1.3-alpha
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 +1 -1
- package/dist/cli.cjs +560 -55
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +563 -58
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +560 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.js +562 -57
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
package/dist/index.d.ts
CHANGED
|
@@ -121,7 +121,7 @@ declare function preflightCredentialStorage(input?: PreflightCredentialStorageIn
|
|
|
121
121
|
declare function writeCredentialFiles(input: WriteCredentialInput): Promise<StoredCredentialPaths>;
|
|
122
122
|
declare function defaultAgentDirectory(agentId: string, baseDir?: string): string;
|
|
123
123
|
|
|
124
|
-
type RuntimeId = 'claude-code' | 'codex-cli' | 'cursor' | 'vscode' | 'claude-desktop' | 'other';
|
|
124
|
+
type RuntimeId = 'claude-code' | 'codex-desktop' | 'codex-cli' | 'cursor' | 'vscode' | 'claude-desktop' | 'other';
|
|
125
125
|
type RestartMode = 'restart-session' | 'restart-app' | 'hot-reload' | 'manual';
|
|
126
126
|
interface RuntimeProfile {
|
|
127
127
|
id: RuntimeId;
|
|
@@ -134,6 +134,29 @@ declare function normalizeRuntime(runtime: string | undefined, env?: NodeJS.Proc
|
|
|
134
134
|
|
|
135
135
|
type RuntimeMcpMode = 'local_stdio' | 'hosted_plus_signer' | 'manual';
|
|
136
136
|
|
|
137
|
+
type LocalMcpProbeStatus = 'ok' | 'timeout' | 'process_error' | 'bad_response' | 'missing_tools';
|
|
138
|
+
interface LocalMcpProbeResult {
|
|
139
|
+
status: LocalMcpProbeStatus;
|
|
140
|
+
toolNames?: string[];
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
interface PrepareLocalMcpRuntimeInput {
|
|
144
|
+
credentialDirectory: string;
|
|
145
|
+
identityPath: string;
|
|
146
|
+
signerPath: string;
|
|
147
|
+
homeDir?: string;
|
|
148
|
+
nodeVersion?: string;
|
|
149
|
+
}
|
|
150
|
+
interface PreparedLocalMcpRuntime {
|
|
151
|
+
command: string;
|
|
152
|
+
args: string[];
|
|
153
|
+
wrapperPath: string;
|
|
154
|
+
runtimeDirectory: string;
|
|
155
|
+
npmCacheDirectory: string;
|
|
156
|
+
cliPath: string;
|
|
157
|
+
messages: string[];
|
|
158
|
+
}
|
|
159
|
+
|
|
137
160
|
interface RuntimeInstallInput {
|
|
138
161
|
runtime?: string;
|
|
139
162
|
hostedMcpUrl: string;
|
|
@@ -167,6 +190,8 @@ interface RuntimeInstallDeps {
|
|
|
167
190
|
homeDir?: string;
|
|
168
191
|
fetch?: typeof fetch;
|
|
169
192
|
runCommand?: (command: string, args: string[]) => Promise<void>;
|
|
193
|
+
prepareLocalMcpRuntime?: (input: PrepareLocalMcpRuntimeInput) => Promise<PreparedLocalMcpRuntime>;
|
|
194
|
+
probeLocalMcpTools?: (command: string, args: string[], requiredTools: readonly string[]) => Promise<LocalMcpProbeResult>;
|
|
170
195
|
}
|
|
171
196
|
declare function installRuntime(input: RuntimeInstallInput, deps?: RuntimeInstallDeps): Promise<RuntimeInstallResult>;
|
|
172
197
|
declare function runtimeInstallCapabilities(runtime: string | undefined, env?: NodeJS.ProcessEnv): {
|