@a4hgehad/weave-mcp 0.9.2 → 0.9.3
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 +9 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -343,9 +343,9 @@ var McpServerConfigSchema = z2.object({
|
|
|
343
343
|
command: z2.array(z2.string()).optional(),
|
|
344
344
|
args: z2.array(z2.string()).optional(),
|
|
345
345
|
url: z2.string().optional(),
|
|
346
|
-
headers: z2.record(z2.string()).optional(),
|
|
346
|
+
headers: z2.record(z2.string(), z2.string()).optional(),
|
|
347
347
|
oauth: z2.boolean().optional(),
|
|
348
|
-
env: z2.record(z2.string()).optional()
|
|
348
|
+
env: z2.record(z2.string(), z2.string()).optional()
|
|
349
349
|
});
|
|
350
350
|
var McpEnabledConfigSchema = z2.object({
|
|
351
351
|
websearch: z2.boolean().optional(),
|
|
@@ -464,6 +464,8 @@ function getAgentDisplayName(configKey) {
|
|
|
464
464
|
}
|
|
465
465
|
|
|
466
466
|
// src/managers/config-handler.ts
|
|
467
|
+
var PRIMARY_AGENT_KEYS = new Set(["loom", "tapestry", "shuttle"]);
|
|
468
|
+
|
|
467
469
|
class ConfigHandler {
|
|
468
470
|
pluginConfig;
|
|
469
471
|
constructor(options) {
|
|
@@ -498,7 +500,8 @@ class ConfigHandler {
|
|
|
498
500
|
const override = overrides[name];
|
|
499
501
|
const merged = override ? { ...agentConfig, ...override } : { ...agentConfig };
|
|
500
502
|
const agentWithMcps = this.applyAgentMcpDefaults(name, merged);
|
|
501
|
-
|
|
503
|
+
const key = PRIMARY_AGENT_KEYS.has(name) ? getAgentDisplayName(name) : name;
|
|
504
|
+
result[key] = agentWithMcps;
|
|
502
505
|
}
|
|
503
506
|
return result;
|
|
504
507
|
}
|
|
@@ -531,7 +534,7 @@ class ConfigHandler {
|
|
|
531
534
|
}
|
|
532
535
|
return {
|
|
533
536
|
...agentConfig,
|
|
534
|
-
tools: { ...agentConfig.tools, ...tools },
|
|
537
|
+
tools: { ...agentConfig.tools || {}, ...tools },
|
|
535
538
|
prompt
|
|
536
539
|
};
|
|
537
540
|
}
|
|
@@ -5697,8 +5700,8 @@ import { arch } from "os";
|
|
|
5697
5700
|
|
|
5698
5701
|
// src/shared/version.ts
|
|
5699
5702
|
import { readFileSync as readFileSync11 } from "fs";
|
|
5700
|
-
import { fileURLToPath } from "url";
|
|
5701
5703
|
import { dirname as dirname2, join as join11 } from "path";
|
|
5704
|
+
import { fileURLToPath } from "url";
|
|
5702
5705
|
var cachedVersion;
|
|
5703
5706
|
function getWeaveVersion() {
|
|
5704
5707
|
if (cachedVersion !== undefined)
|
|
@@ -5708,7 +5711,7 @@ function getWeaveVersion() {
|
|
|
5708
5711
|
for (const rel of ["../../package.json", "../package.json"]) {
|
|
5709
5712
|
try {
|
|
5710
5713
|
const pkg = JSON.parse(readFileSync11(join11(thisDir, rel), "utf-8"));
|
|
5711
|
-
if (pkg.name === "@
|
|
5714
|
+
if (pkg.name === "@a4hgehad/weave-mcp" && typeof pkg.version === "string") {
|
|
5712
5715
|
const version = pkg.version;
|
|
5713
5716
|
cachedVersion = version;
|
|
5714
5717
|
return version;
|