@opencode_weave/weave 0.7.0 → 0.7.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.
@@ -14,4 +14,5 @@ export declare function createPluginInterface(args: {
14
14
  client?: PluginContext["client"];
15
15
  directory?: string;
16
16
  tracker?: SessionTracker;
17
+ taskSystemEnabled?: boolean;
17
18
  }): PluginInterface;
@@ -10,6 +10,11 @@
10
10
  * registerAgentDisplayName().
11
11
  */
12
12
  export declare const AGENT_DISPLAY_NAMES: Record<string, string>;
13
+ /**
14
+ * Reset the mutable display name map to its initial state.
15
+ * Used by tests to prevent cross-test state pollution.
16
+ */
17
+ export declare function resetDisplayNames(): void;
13
18
  /**
14
19
  * Register a display name for an agent config key.
15
20
  * Custom agents call this so getAgentDisplayName/getAgentConfigKey work for them.
@@ -18,6 +23,15 @@ export declare const AGENT_DISPLAY_NAMES: Record<string, string>;
18
23
  * or if the config key is a built-in agent name.
19
24
  */
20
25
  export declare function registerAgentDisplayName(configKey: string, displayName: string): void;
26
+ /**
27
+ * Override the display name for a built-in agent.
28
+ * Unlike registerAgentDisplayName (which guards against builtin config keys),
29
+ * this function is specifically for user-configured builtin display names.
30
+ *
31
+ * Only accepts known builtin config keys. Throws for unknown keys.
32
+ * Invalidates the reverse lookup cache so getAgentConfigKey reflects the new name.
33
+ */
34
+ export declare function updateBuiltinDisplayName(configKey: string, displayName: string): void;
21
35
  /**
22
36
  * Get display name for an agent config key.
23
37
  * Uses case-insensitive lookup for flexibility.
@@ -2,4 +2,4 @@ export type { DeepPartial, Brand } from "./types";
2
2
  export { getWeaveVersion } from "./version";
3
3
  export { log, getLogFilePath, logDelegation } from "./log";
4
4
  export type { DelegationEvent } from "./log";
5
- export { AGENT_DISPLAY_NAMES, getAgentDisplayName, getAgentConfigKey, registerAgentDisplayName, } from "./agent-display-names";
5
+ export { AGENT_DISPLAY_NAMES, getAgentDisplayName, getAgentConfigKey, registerAgentDisplayName, updateBuiltinDisplayName, resetDisplayNames, } from "./agent-display-names";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencode_weave/weave",
3
- "version": "0.7.0",
3
+ "version": "0.7.3",
4
4
  "description": "Weave — lean OpenCode plugin with multi-agent orchestration",
5
5
  "author": "Weave",
6
6
  "license": "MIT",
@@ -25,7 +25,10 @@
25
25
  "build": "bun run script/build.ts && tsc --emitDeclarationOnly",
26
26
  "clean": "rm -rf dist",
27
27
  "typecheck": "tsc --noEmit",
28
- "test": "bun test"
28
+ "test": "bun test",
29
+ "eval": "bun run script/eval.ts",
30
+ "eval:smoke": "bun run script/eval.ts --suite pr-smoke",
31
+ "eval:coverage": "bun run script/verify-eval-coverage.ts"
29
32
  },
30
33
  "keywords": [
31
34
  "opencode",