@a4hgehad/weave-mcp 0.9.1 → 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.
Files changed (2) hide show
  1. package/dist/index.js +9 -7
  2. 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,8 +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
- const displayName = getAgentDisplayName(name);
502
- result[displayName] = agentWithMcps;
503
+ const key = PRIMARY_AGENT_KEYS.has(name) ? getAgentDisplayName(name) : name;
504
+ result[key] = agentWithMcps;
503
505
  }
504
506
  return result;
505
507
  }
@@ -532,7 +534,7 @@ class ConfigHandler {
532
534
  }
533
535
  return {
534
536
  ...agentConfig,
535
- tools: { ...agentConfig.tools, ...tools },
537
+ tools: { ...agentConfig.tools || {}, ...tools },
536
538
  prompt
537
539
  };
538
540
  }
@@ -5698,8 +5700,8 @@ import { arch } from "os";
5698
5700
 
5699
5701
  // src/shared/version.ts
5700
5702
  import { readFileSync as readFileSync11 } from "fs";
5701
- import { fileURLToPath } from "url";
5702
5703
  import { dirname as dirname2, join as join11 } from "path";
5704
+ import { fileURLToPath } from "url";
5703
5705
  var cachedVersion;
5704
5706
  function getWeaveVersion() {
5705
5707
  if (cachedVersion !== undefined)
@@ -5709,7 +5711,7 @@ function getWeaveVersion() {
5709
5711
  for (const rel of ["../../package.json", "../package.json"]) {
5710
5712
  try {
5711
5713
  const pkg = JSON.parse(readFileSync11(join11(thisDir, rel), "utf-8"));
5712
- if (pkg.name === "@opencode_weave/weave" && typeof pkg.version === "string") {
5714
+ if (pkg.name === "@a4hgehad/weave-mcp" && typeof pkg.version === "string") {
5713
5715
  const version = pkg.version;
5714
5716
  cachedVersion = version;
5715
5717
  return version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a4hgehad/weave-mcp",
3
- "version": "0.9.1",
3
+ "version": "0.9.3",
4
4
  "description": "Weave — lean OpenCode plugin with multi-agent orchestration + MCP support",
5
5
  "author": "3r3bu5",
6
6
  "license": "MIT",