@haven_ai/connect 0.1.1-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 +4 -4
- package/dist/cli.cjs +724 -106
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +726 -108
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +724 -106
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -2
- package/dist/index.d.ts +43 -2
- package/dist/index.js +726 -108
- package/dist/index.js.map +1 -1
- package/package.json +8 -6
package/dist/index.d.cts
CHANGED
|
@@ -23,10 +23,13 @@ interface RegisterSetupInput extends ResolveSetupInput {
|
|
|
23
23
|
interface UpdateInstallStatusInput {
|
|
24
24
|
runtime?: string;
|
|
25
25
|
connectorVersion: string;
|
|
26
|
+
runtimeMcpMode?: string;
|
|
26
27
|
hostedMcpConfigured: boolean;
|
|
27
28
|
localSignerConfigured: boolean;
|
|
29
|
+
localMcpConfigured?: boolean;
|
|
28
30
|
credentialFilesWritten?: boolean;
|
|
29
31
|
signerAcknowledged?: boolean;
|
|
32
|
+
localMcpAcknowledged?: boolean;
|
|
30
33
|
activationCommandAvailable?: boolean;
|
|
31
34
|
probeResult: string;
|
|
32
35
|
restartRequired: boolean;
|
|
@@ -97,9 +100,15 @@ interface WriteCredentialInput {
|
|
|
97
100
|
agentId: string;
|
|
98
101
|
apiKey: string;
|
|
99
102
|
delegateKey: string;
|
|
103
|
+
delegateAddress: string;
|
|
100
104
|
safeAddress?: string;
|
|
101
105
|
chainId?: number;
|
|
102
106
|
network?: string;
|
|
107
|
+
agentBudget?: Array<{
|
|
108
|
+
token_symbol: string;
|
|
109
|
+
allowance_amount: string;
|
|
110
|
+
reset_period_min: number;
|
|
111
|
+
}>;
|
|
103
112
|
apiUrl: string;
|
|
104
113
|
hostedMcpUrl: string;
|
|
105
114
|
warn?: (message: string) => void;
|
|
@@ -112,7 +121,7 @@ declare function preflightCredentialStorage(input?: PreflightCredentialStorageIn
|
|
|
112
121
|
declare function writeCredentialFiles(input: WriteCredentialInput): Promise<StoredCredentialPaths>;
|
|
113
122
|
declare function defaultAgentDirectory(agentId: string, baseDir?: string): string;
|
|
114
123
|
|
|
115
|
-
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';
|
|
116
125
|
type RestartMode = 'restart-session' | 'restart-app' | 'hot-reload' | 'manual';
|
|
117
126
|
interface RuntimeProfile {
|
|
118
127
|
id: RuntimeId;
|
|
@@ -123,6 +132,31 @@ interface RuntimeProfile {
|
|
|
123
132
|
declare function runtimeProfile(runtime: string | undefined, env?: NodeJS.ProcessEnv): RuntimeProfile;
|
|
124
133
|
declare function normalizeRuntime(runtime: string | undefined, env?: NodeJS.ProcessEnv): RuntimeId;
|
|
125
134
|
|
|
135
|
+
type RuntimeMcpMode = 'local_stdio' | 'hosted_plus_signer' | 'manual';
|
|
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
|
+
|
|
126
160
|
interface RuntimeInstallInput {
|
|
127
161
|
runtime?: string;
|
|
128
162
|
hostedMcpUrl: string;
|
|
@@ -132,11 +166,14 @@ interface RuntimeInstallInput {
|
|
|
132
166
|
credentialDirectory: string;
|
|
133
167
|
environmentLabel?: string;
|
|
134
168
|
ackSigner?: boolean;
|
|
169
|
+
ackLocalTools?: boolean;
|
|
135
170
|
}
|
|
136
171
|
interface RuntimeInstallResult {
|
|
137
172
|
runtime: RuntimeId;
|
|
173
|
+
runtimeMcpMode: RuntimeMcpMode;
|
|
138
174
|
hostedMcpConfigured: boolean;
|
|
139
175
|
localSignerConfigured: boolean;
|
|
176
|
+
localMcpConfigured: boolean;
|
|
140
177
|
probeResult: string;
|
|
141
178
|
restartRequired: boolean;
|
|
142
179
|
nextUserAction: string;
|
|
@@ -144,6 +181,7 @@ interface RuntimeInstallResult {
|
|
|
144
181
|
configTarget?: string;
|
|
145
182
|
runtimeVersion?: string;
|
|
146
183
|
signerAcknowledged?: boolean;
|
|
184
|
+
localMcpAcknowledged?: boolean;
|
|
147
185
|
activationCommand?: string;
|
|
148
186
|
messages: string[];
|
|
149
187
|
}
|
|
@@ -152,6 +190,8 @@ interface RuntimeInstallDeps {
|
|
|
152
190
|
homeDir?: string;
|
|
153
191
|
fetch?: typeof fetch;
|
|
154
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>;
|
|
155
195
|
}
|
|
156
196
|
declare function installRuntime(input: RuntimeInstallInput, deps?: RuntimeInstallDeps): Promise<RuntimeInstallResult>;
|
|
157
197
|
declare function runtimeInstallCapabilities(runtime: string | undefined, env?: NodeJS.ProcessEnv): {
|
|
@@ -159,7 +199,7 @@ declare function runtimeInstallCapabilities(runtime: string | undefined, env?: N
|
|
|
159
199
|
restartRequired: boolean;
|
|
160
200
|
};
|
|
161
201
|
|
|
162
|
-
declare const CONNECTOR_VERSION = "0.1.
|
|
202
|
+
declare const CONNECTOR_VERSION = "0.1.2";
|
|
163
203
|
interface ConnectOptions {
|
|
164
204
|
setupToken: string;
|
|
165
205
|
apiBaseUrl: string;
|
|
@@ -168,6 +208,7 @@ interface ConnectOptions {
|
|
|
168
208
|
environmentLabel?: string;
|
|
169
209
|
connectorVersion?: string;
|
|
170
210
|
ackSigner?: boolean;
|
|
211
|
+
ackLocalTools?: boolean;
|
|
171
212
|
}
|
|
172
213
|
interface ConnectDeps {
|
|
173
214
|
api?: ConnectApiClient;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,10 +23,13 @@ interface RegisterSetupInput extends ResolveSetupInput {
|
|
|
23
23
|
interface UpdateInstallStatusInput {
|
|
24
24
|
runtime?: string;
|
|
25
25
|
connectorVersion: string;
|
|
26
|
+
runtimeMcpMode?: string;
|
|
26
27
|
hostedMcpConfigured: boolean;
|
|
27
28
|
localSignerConfigured: boolean;
|
|
29
|
+
localMcpConfigured?: boolean;
|
|
28
30
|
credentialFilesWritten?: boolean;
|
|
29
31
|
signerAcknowledged?: boolean;
|
|
32
|
+
localMcpAcknowledged?: boolean;
|
|
30
33
|
activationCommandAvailable?: boolean;
|
|
31
34
|
probeResult: string;
|
|
32
35
|
restartRequired: boolean;
|
|
@@ -97,9 +100,15 @@ interface WriteCredentialInput {
|
|
|
97
100
|
agentId: string;
|
|
98
101
|
apiKey: string;
|
|
99
102
|
delegateKey: string;
|
|
103
|
+
delegateAddress: string;
|
|
100
104
|
safeAddress?: string;
|
|
101
105
|
chainId?: number;
|
|
102
106
|
network?: string;
|
|
107
|
+
agentBudget?: Array<{
|
|
108
|
+
token_symbol: string;
|
|
109
|
+
allowance_amount: string;
|
|
110
|
+
reset_period_min: number;
|
|
111
|
+
}>;
|
|
103
112
|
apiUrl: string;
|
|
104
113
|
hostedMcpUrl: string;
|
|
105
114
|
warn?: (message: string) => void;
|
|
@@ -112,7 +121,7 @@ declare function preflightCredentialStorage(input?: PreflightCredentialStorageIn
|
|
|
112
121
|
declare function writeCredentialFiles(input: WriteCredentialInput): Promise<StoredCredentialPaths>;
|
|
113
122
|
declare function defaultAgentDirectory(agentId: string, baseDir?: string): string;
|
|
114
123
|
|
|
115
|
-
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';
|
|
116
125
|
type RestartMode = 'restart-session' | 'restart-app' | 'hot-reload' | 'manual';
|
|
117
126
|
interface RuntimeProfile {
|
|
118
127
|
id: RuntimeId;
|
|
@@ -123,6 +132,31 @@ interface RuntimeProfile {
|
|
|
123
132
|
declare function runtimeProfile(runtime: string | undefined, env?: NodeJS.ProcessEnv): RuntimeProfile;
|
|
124
133
|
declare function normalizeRuntime(runtime: string | undefined, env?: NodeJS.ProcessEnv): RuntimeId;
|
|
125
134
|
|
|
135
|
+
type RuntimeMcpMode = 'local_stdio' | 'hosted_plus_signer' | 'manual';
|
|
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
|
+
|
|
126
160
|
interface RuntimeInstallInput {
|
|
127
161
|
runtime?: string;
|
|
128
162
|
hostedMcpUrl: string;
|
|
@@ -132,11 +166,14 @@ interface RuntimeInstallInput {
|
|
|
132
166
|
credentialDirectory: string;
|
|
133
167
|
environmentLabel?: string;
|
|
134
168
|
ackSigner?: boolean;
|
|
169
|
+
ackLocalTools?: boolean;
|
|
135
170
|
}
|
|
136
171
|
interface RuntimeInstallResult {
|
|
137
172
|
runtime: RuntimeId;
|
|
173
|
+
runtimeMcpMode: RuntimeMcpMode;
|
|
138
174
|
hostedMcpConfigured: boolean;
|
|
139
175
|
localSignerConfigured: boolean;
|
|
176
|
+
localMcpConfigured: boolean;
|
|
140
177
|
probeResult: string;
|
|
141
178
|
restartRequired: boolean;
|
|
142
179
|
nextUserAction: string;
|
|
@@ -144,6 +181,7 @@ interface RuntimeInstallResult {
|
|
|
144
181
|
configTarget?: string;
|
|
145
182
|
runtimeVersion?: string;
|
|
146
183
|
signerAcknowledged?: boolean;
|
|
184
|
+
localMcpAcknowledged?: boolean;
|
|
147
185
|
activationCommand?: string;
|
|
148
186
|
messages: string[];
|
|
149
187
|
}
|
|
@@ -152,6 +190,8 @@ interface RuntimeInstallDeps {
|
|
|
152
190
|
homeDir?: string;
|
|
153
191
|
fetch?: typeof fetch;
|
|
154
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>;
|
|
155
195
|
}
|
|
156
196
|
declare function installRuntime(input: RuntimeInstallInput, deps?: RuntimeInstallDeps): Promise<RuntimeInstallResult>;
|
|
157
197
|
declare function runtimeInstallCapabilities(runtime: string | undefined, env?: NodeJS.ProcessEnv): {
|
|
@@ -159,7 +199,7 @@ declare function runtimeInstallCapabilities(runtime: string | undefined, env?: N
|
|
|
159
199
|
restartRequired: boolean;
|
|
160
200
|
};
|
|
161
201
|
|
|
162
|
-
declare const CONNECTOR_VERSION = "0.1.
|
|
202
|
+
declare const CONNECTOR_VERSION = "0.1.2";
|
|
163
203
|
interface ConnectOptions {
|
|
164
204
|
setupToken: string;
|
|
165
205
|
apiBaseUrl: string;
|
|
@@ -168,6 +208,7 @@ interface ConnectOptions {
|
|
|
168
208
|
environmentLabel?: string;
|
|
169
209
|
connectorVersion?: string;
|
|
170
210
|
ackSigner?: boolean;
|
|
211
|
+
ackLocalTools?: boolean;
|
|
171
212
|
}
|
|
172
213
|
interface ConnectDeps {
|
|
173
214
|
api?: ConnectApiClient;
|