@a4hgehad/weave-mcp 0.9.2 → 0.9.4

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 +16 -6
  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,9 @@ function getAgentDisplayName(configKey) {
464
464
  }
465
465
 
466
466
  // src/managers/config-handler.ts
467
+ var PRIMARY_AGENT_KEYS = new Set(["loom", "tapestry"]);
468
+ var DUAL_MODE_AGENT_KEYS = new Set(["shuttle"]);
469
+
467
470
  class ConfigHandler {
468
471
  pluginConfig;
469
472
  constructor(options) {
@@ -498,7 +501,14 @@ class ConfigHandler {
498
501
  const override = overrides[name];
499
502
  const merged = override ? { ...agentConfig, ...override } : { ...agentConfig };
500
503
  const agentWithMcps = this.applyAgentMcpDefaults(name, merged);
501
- result[name] = agentWithMcps;
504
+ if (DUAL_MODE_AGENT_KEYS.has(name)) {
505
+ result[name] = agentWithMcps;
506
+ result[getAgentDisplayName(name)] = agentWithMcps;
507
+ } else if (PRIMARY_AGENT_KEYS.has(name)) {
508
+ result[getAgentDisplayName(name)] = agentWithMcps;
509
+ } else {
510
+ result[name] = agentWithMcps;
511
+ }
502
512
  }
503
513
  return result;
504
514
  }
@@ -531,7 +541,7 @@ class ConfigHandler {
531
541
  }
532
542
  return {
533
543
  ...agentConfig,
534
- tools: { ...agentConfig.tools, ...tools },
544
+ tools: { ...agentConfig.tools || {}, ...tools },
535
545
  prompt
536
546
  };
537
547
  }
@@ -5697,8 +5707,8 @@ import { arch } from "os";
5697
5707
 
5698
5708
  // src/shared/version.ts
5699
5709
  import { readFileSync as readFileSync11 } from "fs";
5700
- import { fileURLToPath } from "url";
5701
5710
  import { dirname as dirname2, join as join11 } from "path";
5711
+ import { fileURLToPath } from "url";
5702
5712
  var cachedVersion;
5703
5713
  function getWeaveVersion() {
5704
5714
  if (cachedVersion !== undefined)
@@ -5708,7 +5718,7 @@ function getWeaveVersion() {
5708
5718
  for (const rel of ["../../package.json", "../package.json"]) {
5709
5719
  try {
5710
5720
  const pkg = JSON.parse(readFileSync11(join11(thisDir, rel), "utf-8"));
5711
- if (pkg.name === "@opencode_weave/weave" && typeof pkg.version === "string") {
5721
+ if (pkg.name === "@a4hgehad/weave-mcp" && typeof pkg.version === "string") {
5712
5722
  const version = pkg.version;
5713
5723
  cachedVersion = version;
5714
5724
  return version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a4hgehad/weave-mcp",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "description": "Weave — lean OpenCode plugin with multi-agent orchestration + MCP support",
5
5
  "author": "3r3bu5",
6
6
  "license": "MIT",