bfi-cli 0.1.104 → 0.1.105

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.
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+
3
+ import module from 'node:module';
4
+
5
+ if (module.enableCompileCache && !process.env.NODE_DISABLE_COMPILE_CACHE) {
6
+ try {
7
+ module.enableCompileCache();
8
+ } catch {
9
+ // Ignore errors
10
+ }
11
+ }
12
+
13
+ await import('../dist/mcp-weknora/main.mjs');
@@ -52,7 +52,7 @@ var WeknoraRemote = class {
52
52
  const token = this.token();
53
53
  if (!token) throw new WeknoraError("unauthorized", this.loginHint());
54
54
  const client = new Client({
55
- name: "bfi-weknora-mcp",
55
+ name: "bfi-knowledge-search",
56
56
  version: "0.1.0"
57
57
  });
58
58
  const transport = new StreamableHTTPClientTransport(new URL(this.url), { requestInit: { headers: { Authorization: `Bearer ${token}` } } });
@@ -132,7 +132,7 @@ function isBlocked(name) {
132
132
  function buildServer(remote) {
133
133
  const weknora = remote ?? new WeknoraRemote(process.env.WEKNORA_MCP_URL || DEFAULT_WEKNORA_URL, resolveToken);
134
134
  const server = new Server({
135
- name: "bfi-weknora-mcp",
135
+ name: "bfi-knowledge-search",
136
136
  version: "0.1.0"
137
137
  }, {
138
138
  capabilities: { tools: {} },
@@ -185,7 +185,7 @@ async function main() {
185
185
  await buildServer().connect(new StdioServerTransport());
186
186
  }
187
187
  main().catch((e) => {
188
- console.error("[bfi-weknora-mcp] 启动失败:", e);
188
+ console.error("[bfi-knowledge-search] 启动失败:", e);
189
189
  process.exit(1);
190
190
  });
191
191
  export {};
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "bfi-cli",
3
- "version": "0.1.104",
3
+ "version": "0.1.105",
4
4
  "description": "用友大业财BFI统一命令行工具,支持技能,技能包,元数据,UI元数据等",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "bfi": "bin/bfi.js",
8
8
  "bfi-db-mcp": "bin/bfi-db-mcp.js",
9
9
  "bfi-codesearch-mcp": "bin/bfi-codesearch-mcp.js",
10
- "bfi-weknora-mcp": "bin/bfi-weknora-mcp.js"
10
+ "bfi-weknora-mcp": "bin/bfi-weknora-mcp.js",
11
+ "bfi-knowledge-search-mcp": "bin/bfi-knowledge-search-mcp.js"
11
12
  },
12
13
  "files": [
13
14
  "dist",