@quantish/agent 0.1.33 → 0.1.34
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 +7 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -252,12 +252,13 @@ var MCPClient = class {
|
|
|
252
252
|
return this.toolsCache;
|
|
253
253
|
}
|
|
254
254
|
const headers = {
|
|
255
|
-
"Content-Type": "application/json"
|
|
256
|
-
"x-api-key": this.apiKey
|
|
255
|
+
"Content-Type": "application/json"
|
|
257
256
|
};
|
|
258
257
|
if (this.source === "discovery") {
|
|
259
258
|
headers["Accept"] = "application/json, text/event-stream";
|
|
260
259
|
headers["X-API-Key"] = this.apiKey;
|
|
260
|
+
} else {
|
|
261
|
+
headers["x-api-key"] = this.apiKey;
|
|
261
262
|
}
|
|
262
263
|
const response = await fetch(this.baseUrl, {
|
|
263
264
|
method: "POST",
|
|
@@ -286,12 +287,13 @@ var MCPClient = class {
|
|
|
286
287
|
*/
|
|
287
288
|
async callTool(name, args) {
|
|
288
289
|
const headers = {
|
|
289
|
-
"Content-Type": "application/json"
|
|
290
|
-
"x-api-key": this.apiKey
|
|
290
|
+
"Content-Type": "application/json"
|
|
291
291
|
};
|
|
292
292
|
if (this.source === "discovery") {
|
|
293
293
|
headers["Accept"] = "application/json, text/event-stream";
|
|
294
294
|
headers["X-API-Key"] = this.apiKey;
|
|
295
|
+
} else {
|
|
296
|
+
headers["x-api-key"] = this.apiKey;
|
|
295
297
|
}
|
|
296
298
|
const response = await fetch(this.baseUrl, {
|
|
297
299
|
method: "POST",
|
|
@@ -5422,7 +5424,7 @@ Stopped ${count} background process${count > 1 ? "es" : ""}.`);
|
|
|
5422
5424
|
}
|
|
5423
5425
|
|
|
5424
5426
|
// src/index.ts
|
|
5425
|
-
var VERSION = "0.1.
|
|
5427
|
+
var VERSION = "0.1.34";
|
|
5426
5428
|
function cleanup() {
|
|
5427
5429
|
if (processManager.hasRunning()) {
|
|
5428
5430
|
const count = processManager.runningCount();
|