opencode-swarm 6.44.3 → 6.45.0

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/cli/index.js CHANGED
@@ -18000,7 +18000,10 @@ var TOOL_NAMES = [
18000
18000
  "knowledgeAdd",
18001
18001
  "knowledgeRecall",
18002
18002
  "knowledgeRemove",
18003
- "co_change_analyzer"
18003
+ "co_change_analyzer",
18004
+ "search",
18005
+ "batch_symbols",
18006
+ "suggest_patch"
18004
18007
  ];
18005
18008
  var TOOL_NAME_SET = new Set(TOOL_NAMES);
18006
18009
 
@@ -18042,6 +18045,8 @@ var AGENT_TOOL_MAP = {
18042
18045
  "quality_budget",
18043
18046
  "retrieve_summary",
18044
18047
  "save_plan",
18048
+ "search",
18049
+ "batch_symbols",
18045
18050
  "schema_drift",
18046
18051
  "secretscan",
18047
18052
  "symbols",
@@ -18063,7 +18068,8 @@ var AGENT_TOOL_MAP = {
18063
18068
  "knowledgeAdd",
18064
18069
  "knowledgeRecall",
18065
18070
  "knowledgeRemove",
18066
- "co_change_analyzer"
18071
+ "co_change_analyzer",
18072
+ "suggest_patch"
18067
18073
  ],
18068
18074
  explorer: [
18069
18075
  "complexity_hotspots",
@@ -18073,6 +18079,8 @@ var AGENT_TOOL_MAP = {
18073
18079
  "imports",
18074
18080
  "retrieve_summary",
18075
18081
  "schema_drift",
18082
+ "search",
18083
+ "batch_symbols",
18076
18084
  "symbols",
18077
18085
  "todo_extract",
18078
18086
  "doc_scan",
@@ -18085,6 +18093,7 @@ var AGENT_TOOL_MAP = {
18085
18093
  "symbols",
18086
18094
  "extract_code_blocks",
18087
18095
  "retrieve_summary",
18096
+ "search",
18088
18097
  "build_check",
18089
18098
  "syntax_check",
18090
18099
  "knowledgeAdd",
@@ -18100,7 +18109,8 @@ var AGENT_TOOL_MAP = {
18100
18109
  "complexity_hotspots",
18101
18110
  "pkg_audit",
18102
18111
  "build_check",
18103
- "syntax_check"
18112
+ "syntax_check",
18113
+ "search"
18104
18114
  ],
18105
18115
  sme: [
18106
18116
  "complexity_hotspots",
@@ -18126,7 +18136,10 @@ var AGENT_TOOL_MAP = {
18126
18136
  "test_runner",
18127
18137
  "sast_scan",
18128
18138
  "placeholder_scan",
18129
- "knowledgeRecall"
18139
+ "knowledgeRecall",
18140
+ "search",
18141
+ "batch_symbols",
18142
+ "suggest_patch"
18130
18143
  ],
18131
18144
  critic: [
18132
18145
  "complexity_hotspots",
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Canonical tool-name normalization helpers
3
+ *
4
+ * Strip namespace prefixes (e.g., "mega:write", "mega.search") to get the base tool name.
5
+ */
6
+ /**
7
+ * Strip namespace prefix from a tool name.
8
+ *
9
+ * Examples:
10
+ * "opencode:write" → "write"
11
+ * "opencode.bash" → "bash"
12
+ * "write" → "write"
13
+ * undefined/null → undefined
14
+ */
15
+ export declare function normalizeToolName(toolName: string): string;
16
+ export declare function normalizeToolName(toolName: null | undefined): string | undefined;
17
+ /**
18
+ * Strip namespace prefix and lowercase the result.
19
+ *
20
+ * Examples:
21
+ * "opencode:WRITE" → "write"
22
+ * "opencode.bash" → "bash"
23
+ * "write" → "write"
24
+ */
25
+ export declare function normalizeToolNameLowerCase(toolName: string): string;