@quantish/agent 0.1.33 → 0.1.35
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 +11 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35,12 +35,13 @@ var schema = {
|
|
|
35
35
|
default: DEFAULT_MCP_URL
|
|
36
36
|
},
|
|
37
37
|
model: {
|
|
38
|
-
type: "string"
|
|
39
|
-
default
|
|
38
|
+
type: "string"
|
|
39
|
+
// No default here - getModel() returns provider-specific default
|
|
40
40
|
},
|
|
41
41
|
provider: {
|
|
42
42
|
type: "string",
|
|
43
|
-
default: "
|
|
43
|
+
default: "openrouter"
|
|
44
|
+
// OpenRouter is recommended for new users
|
|
44
45
|
}
|
|
45
46
|
};
|
|
46
47
|
var ConfigManager = class {
|
|
@@ -252,12 +253,13 @@ var MCPClient = class {
|
|
|
252
253
|
return this.toolsCache;
|
|
253
254
|
}
|
|
254
255
|
const headers = {
|
|
255
|
-
"Content-Type": "application/json"
|
|
256
|
-
"x-api-key": this.apiKey
|
|
256
|
+
"Content-Type": "application/json"
|
|
257
257
|
};
|
|
258
258
|
if (this.source === "discovery") {
|
|
259
259
|
headers["Accept"] = "application/json, text/event-stream";
|
|
260
260
|
headers["X-API-Key"] = this.apiKey;
|
|
261
|
+
} else {
|
|
262
|
+
headers["x-api-key"] = this.apiKey;
|
|
261
263
|
}
|
|
262
264
|
const response = await fetch(this.baseUrl, {
|
|
263
265
|
method: "POST",
|
|
@@ -286,12 +288,13 @@ var MCPClient = class {
|
|
|
286
288
|
*/
|
|
287
289
|
async callTool(name, args) {
|
|
288
290
|
const headers = {
|
|
289
|
-
"Content-Type": "application/json"
|
|
290
|
-
"x-api-key": this.apiKey
|
|
291
|
+
"Content-Type": "application/json"
|
|
291
292
|
};
|
|
292
293
|
if (this.source === "discovery") {
|
|
293
294
|
headers["Accept"] = "application/json, text/event-stream";
|
|
294
295
|
headers["X-API-Key"] = this.apiKey;
|
|
296
|
+
} else {
|
|
297
|
+
headers["x-api-key"] = this.apiKey;
|
|
295
298
|
}
|
|
296
299
|
const response = await fetch(this.baseUrl, {
|
|
297
300
|
method: "POST",
|
|
@@ -5422,7 +5425,7 @@ Stopped ${count} background process${count > 1 ? "es" : ""}.`);
|
|
|
5422
5425
|
}
|
|
5423
5426
|
|
|
5424
5427
|
// src/index.ts
|
|
5425
|
-
var VERSION = "0.1.
|
|
5428
|
+
var VERSION = "0.1.35";
|
|
5426
5429
|
function cleanup() {
|
|
5427
5430
|
if (processManager.hasRunning()) {
|
|
5428
5431
|
const count = processManager.runningCount();
|