@sourcegraph/amp-sdk 0.1.0-20251021152627-g8658f12 → 0.1.0-20251022202704-gd85048a
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/index.js +4 -3
- package/dist/types.d.ts +12 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4035,7 +4035,8 @@ var PermissionSchema = exports_external.object({
|
|
|
4035
4035
|
var MCPServerSchema = exports_external.object({
|
|
4036
4036
|
command: exports_external.string().describe("Command to run the MCP server"),
|
|
4037
4037
|
args: exports_external.array(exports_external.string()).describe("Arguments for the MCP server command").optional(),
|
|
4038
|
-
env: exports_external.record(exports_external.string(), exports_external.string()).describe("Environment variables for the server").optional()
|
|
4038
|
+
env: exports_external.record(exports_external.string(), exports_external.string()).describe("Environment variables for the server").optional(),
|
|
4039
|
+
disabled: exports_external.boolean().describe("Whether the server is disabled").optional()
|
|
4039
4040
|
});
|
|
4040
4041
|
var MCPConfigSchema = exports_external.record(exports_external.string(), MCPServerSchema).describe("MCP server configurations keyed by server name");
|
|
4041
4042
|
var AmpOptionsSchema = exports_external.object({
|
|
@@ -4153,7 +4154,7 @@ function buildEnvironmentVariables(options) {
|
|
|
4153
4154
|
if (options.env) {
|
|
4154
4155
|
Object.assign(env, options.env);
|
|
4155
4156
|
}
|
|
4156
|
-
env.AMP_SDK_VERSION = "0.1.0-
|
|
4157
|
+
env.AMP_SDK_VERSION = "0.1.0-20251022202704-gd85048a";
|
|
4157
4158
|
return env;
|
|
4158
4159
|
}
|
|
4159
4160
|
function spawnAmpCli(args, options) {
|
|
@@ -4354,4 +4355,4 @@ export {
|
|
|
4354
4355
|
AmpOptionsSchema
|
|
4355
4356
|
};
|
|
4356
4357
|
|
|
4357
|
-
//# debugId=
|
|
4358
|
+
//# debugId=55BAB45A56267D2564756E2164756E21
|
package/dist/types.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export interface SystemMessage extends BaseMessage {
|
|
|
44
44
|
tools: string[];
|
|
45
45
|
mcp_servers: {
|
|
46
46
|
name: string;
|
|
47
|
-
status: 'connected' | 'connecting' | 'connection-failed';
|
|
47
|
+
status: 'connected' | 'connecting' | 'connection-failed' | 'disabled';
|
|
48
48
|
}[];
|
|
49
49
|
}
|
|
50
50
|
/** AI assistant response message with text and tool usage */
|
|
@@ -189,12 +189,15 @@ export declare const MCPServerSchema: z.ZodObject<{
|
|
|
189
189
|
command: z.ZodString;
|
|
190
190
|
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
191
191
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
192
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
192
193
|
}, "strip", z.ZodTypeAny, {
|
|
193
194
|
command: string;
|
|
195
|
+
disabled?: boolean | undefined;
|
|
194
196
|
args?: string[] | undefined;
|
|
195
197
|
env?: Record<string, string> | undefined;
|
|
196
198
|
}, {
|
|
197
199
|
command: string;
|
|
200
|
+
disabled?: boolean | undefined;
|
|
198
201
|
args?: string[] | undefined;
|
|
199
202
|
env?: Record<string, string> | undefined;
|
|
200
203
|
}>;
|
|
@@ -203,12 +206,15 @@ export declare const MCPConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
203
206
|
command: z.ZodString;
|
|
204
207
|
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
205
208
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
209
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
206
210
|
}, "strip", z.ZodTypeAny, {
|
|
207
211
|
command: string;
|
|
212
|
+
disabled?: boolean | undefined;
|
|
208
213
|
args?: string[] | undefined;
|
|
209
214
|
env?: Record<string, string> | undefined;
|
|
210
215
|
}, {
|
|
211
216
|
command: string;
|
|
217
|
+
disabled?: boolean | undefined;
|
|
212
218
|
args?: string[] | undefined;
|
|
213
219
|
env?: Record<string, string> | undefined;
|
|
214
220
|
}>>;
|
|
@@ -228,12 +234,15 @@ export declare const AmpOptionsSchema: z.ZodObject<{
|
|
|
228
234
|
command: z.ZodString;
|
|
229
235
|
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
230
236
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
237
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
231
238
|
}, "strip", z.ZodTypeAny, {
|
|
232
239
|
command: string;
|
|
240
|
+
disabled?: boolean | undefined;
|
|
233
241
|
args?: string[] | undefined;
|
|
234
242
|
env?: Record<string, string> | undefined;
|
|
235
243
|
}, {
|
|
236
244
|
command: string;
|
|
245
|
+
disabled?: boolean | undefined;
|
|
237
246
|
args?: string[] | undefined;
|
|
238
247
|
env?: Record<string, string> | undefined;
|
|
239
248
|
}>>]>>;
|
|
@@ -281,6 +290,7 @@ export declare const AmpOptionsSchema: z.ZodObject<{
|
|
|
281
290
|
logFile?: string | undefined;
|
|
282
291
|
mcpConfig?: string | Record<string, {
|
|
283
292
|
command: string;
|
|
293
|
+
disabled?: boolean | undefined;
|
|
284
294
|
args?: string[] | undefined;
|
|
285
295
|
env?: Record<string, string> | undefined;
|
|
286
296
|
}> | undefined;
|
|
@@ -303,6 +313,7 @@ export declare const AmpOptionsSchema: z.ZodObject<{
|
|
|
303
313
|
logFile?: string | undefined;
|
|
304
314
|
mcpConfig?: string | Record<string, {
|
|
305
315
|
command: string;
|
|
316
|
+
disabled?: boolean | undefined;
|
|
306
317
|
args?: string[] | undefined;
|
|
307
318
|
env?: Record<string, string> | undefined;
|
|
308
319
|
}> | undefined;
|
package/package.json
CHANGED