@bike4mind/cli 0.2.65-fix-sre-apply-syntax-guard.21837 → 0.2.65-fix-sre-workflow-commitlint.21843

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.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as version, n as fetchLatestVersion, r as forceCheckForUpdate } from "../updateChecker-B6RW8Zni.mjs";
2
+ import { i as version, n as fetchLatestVersion, r as forceCheckForUpdate } from "../updateChecker-NB0OZfgz.mjs";
3
3
  import { execSync } from "child_process";
4
4
  import { constants, existsSync, promises } from "fs";
5
5
  import { homedir } from "os";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { I as isReadOnlyTool, L as ReActAgent, M as setWebSocketToolExecutor, P as buildCoreSystemPrompt, R as CustomCommandStore, S as getApiUrl, T as generateCliTools, V as SessionStore, _ as McpManager, a as createBackgroundAgentTools, c as AgentStore, f as ApiClient, g as ServerLlmBackend, h as WebSocketLlmBackend, i as createWriteTodosTool, l as SubagentOrchestrator, m as WebSocketConnectionManager, n as createFindDefinitionTool, o as BackgroundAgentManager, p as WebSocketToolExecutor, r as createTodoStore, s as createAgentDelegateTool, t as createGetFileStructureTool, u as createSkillTool, w as PermissionManager, x as loadContextFiles, z as CheckpointStore } from "../tools-CJh4aSWP.mjs";
2
+ import { I as isReadOnlyTool, L as ReActAgent, M as setWebSocketToolExecutor, P as buildCoreSystemPrompt, R as CustomCommandStore, S as getApiUrl, T as generateCliTools, V as SessionStore, _ as McpManager, a as createBackgroundAgentTools, c as AgentStore, f as ApiClient, g as ServerLlmBackend, h as WebSocketLlmBackend, i as createWriteTodosTool, l as SubagentOrchestrator, m as WebSocketConnectionManager, n as createFindDefinitionTool, o as BackgroundAgentManager, p as WebSocketToolExecutor, r as createTodoStore, s as createAgentDelegateTool, t as createGetFileStructureTool, u as createSkillTool, w as PermissionManager, x as loadContextFiles, z as CheckpointStore } from "../tools-CNFhT48m.mjs";
3
3
  import { n as logger, t as ConfigStore } from "../ConfigStore-uYYzNv7J.mjs";
4
4
  import { t as DEFAULT_SANDBOX_CONFIG } from "../types-DBEjF9YS.mjs";
5
5
  import { t as createSandboxRuntime } from "../SandboxRuntimeAdapter-C1B4t20N.mjs";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as version, r as forceCheckForUpdate } from "../updateChecker-B6RW8Zni.mjs";
2
+ import { i as version, r as forceCheckForUpdate } from "../updateChecker-NB0OZfgz.mjs";
3
3
  import { execSync } from "child_process";
4
4
  //#region src/commands/updateCommand.ts
5
5
  /**
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { n as useCliStore, t as selectActiveBackgroundAgents } from "./store-Dw1nZX2Y.mjs";
3
- import { A as clearFeatureModuleTools, B as CommandHistoryStore, C as getEnvironmentName, D as DEFAULT_AGENT_MODEL, E as ALWAYS_DENIED_FOR_AGENTS, F as buildSkillsPromptSection, G as searchCommands, H as OAuthClient, I as isReadOnlyTool, J as searchFiles, K as mergeCommands, L as ReActAgent, M as setWebSocketToolExecutor, N as OllamaBackend, O as DEFAULT_MAX_ITERATIONS, P as buildCoreSystemPrompt, R as CustomCommandStore, S as getApiUrl, T as generateCliTools, U as hasFileReferences, V as SessionStore, W as processFileReferences, Y as warmFileCache, _ as McpManager, a as createBackgroundAgentTools, b as extractCompactInstructions, c as AgentStore, d as parseAgentConfig, f as ApiClient, g as ServerLlmBackend, h as WebSocketLlmBackend, i as createWriteTodosTool, j as registerFeatureModuleTools, k as DEFAULT_THOROUGHNESS, l as SubagentOrchestrator, m as WebSocketConnectionManager, n as createFindDefinitionTool, o as BackgroundAgentManager, p as WebSocketToolExecutor, q as formatFileSize, r as createTodoStore, s as createAgentDelegateTool, t as createGetFileStructureTool, u as createSkillTool, v as substituteArguments, w as PermissionManager, x as loadContextFiles, y as formatStep, z as CheckpointStore } from "./tools-CJh4aSWP.mjs";
3
+ import { A as clearFeatureModuleTools, B as CommandHistoryStore, C as getEnvironmentName, D as DEFAULT_AGENT_MODEL, E as ALWAYS_DENIED_FOR_AGENTS, F as buildSkillsPromptSection, G as searchCommands, H as OAuthClient, I as isReadOnlyTool, J as searchFiles, K as mergeCommands, L as ReActAgent, M as setWebSocketToolExecutor, N as OllamaBackend, O as DEFAULT_MAX_ITERATIONS, P as buildCoreSystemPrompt, R as CustomCommandStore, S as getApiUrl, T as generateCliTools, U as hasFileReferences, V as SessionStore, W as processFileReferences, Y as warmFileCache, _ as McpManager, a as createBackgroundAgentTools, b as extractCompactInstructions, c as AgentStore, d as parseAgentConfig, f as ApiClient, g as ServerLlmBackend, h as WebSocketLlmBackend, i as createWriteTodosTool, j as registerFeatureModuleTools, k as DEFAULT_THOROUGHNESS, l as SubagentOrchestrator, m as WebSocketConnectionManager, n as createFindDefinitionTool, o as BackgroundAgentManager, p as WebSocketToolExecutor, q as formatFileSize, r as createTodoStore, s as createAgentDelegateTool, t as createGetFileStructureTool, u as createSkillTool, v as substituteArguments, w as PermissionManager, x as loadContextFiles, y as formatStep, z as CheckpointStore } from "./tools-CNFhT48m.mjs";
4
4
  import { Dt as validateNotebookPath$1, Et as validateJupyterKernelName, g as ChatModels, m as CREDIT_DEDUCT_TRANSACTION_TYPES, n as logger, t as ConfigStore } from "./ConfigStore-uYYzNv7J.mjs";
5
- import { i as version, t as checkForUpdate } from "./updateChecker-B6RW8Zni.mjs";
5
+ import { i as version, t as checkForUpdate } from "./updateChecker-NB0OZfgz.mjs";
6
6
  import React, { useCallback, useEffect, useMemo, useReducer, useRef, useState } from "react";
7
7
  import { Box, Static, Text, render, useApp, useInput } from "ink";
8
8
  import { execSync } from "child_process";
@@ -80,6 +80,7 @@ import "zod-validation-error";
80
80
  import { homedir as homedir$1 } from "node:os";
81
81
  import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
82
82
  import { Client } from "@modelcontextprotocol/sdk/client/index.js";
83
+ import { fileURLToPath } from "url";
83
84
  import WsWebSocket from "ws";
84
85
  import { createParser } from "eventsource-parser";
85
86
  import { createRequire } from "module";
@@ -17675,21 +17676,14 @@ var MCPClient = class {
17675
17676
  command = this.customCommand;
17676
17677
  args = this.customArgs ?? [];
17677
17678
  } else {
17678
- const root = process.env.INIT_CWD || process.cwd();
17679
- const candidatePaths = [
17680
- path.join(root, `node_modules/@bike4mind/mcp/dist/src/${this.serverName}/index.js`),
17681
- path.join(root, `b4m-core/packages/mcp/dist/src/${this.serverName}/index.js`),
17682
- path.join(root, `../../../b4m-core/packages/mcp/dist/src/${this.serverName}/index.js`),
17683
- path.join(root, `../../b4m-core/packages/mcp/dist/src/${this.serverName}/index.js`),
17684
- path.join(root, `/b4m-core/packages/mcp/dist/src/${this.serverName}/index.js`),
17685
- path.join(root, "core", "mcp", "servers", this.serverName, "dist", "index.js")
17686
- ];
17687
- const serverScriptPath = candidatePaths.find((p) => existsSync(p));
17688
- if (!serverScriptPath) {
17689
- const getDirectories = (source) => readdirSync(source, { withFileTypes: true }).filter((dirent) => dirent.isDirectory()).map((dirent) => dirent.name);
17690
- console.error(`[MCP] Server script not found. Tried paths:`, candidatePaths);
17691
- console.error(`[MCP] Available directories in ${root}:`, getDirectories(root));
17692
- throw new Error(`MCP Server script path not found for ${this.serverName}. Root: ${root}, Available dirs: ${getDirectories(root).join(", ")}`);
17679
+ const moduleDir = path.dirname(fileURLToPath(import.meta.url));
17680
+ const serverScriptPath = path.join(moduleDir, this.serverName, "index.mjs");
17681
+ if (!existsSync(serverScriptPath)) {
17682
+ const availableFiles = readdirSync(moduleDir, { withFileTypes: true }).map((d) => d.isDirectory() ? `${d.name}/` : d.name);
17683
+ console.error(`[MCP] Server script not found at: ${serverScriptPath}`);
17684
+ console.error(`[MCP] Module directory: ${moduleDir}`);
17685
+ console.error(`[MCP] Available in module dir:`, availableFiles);
17686
+ throw new Error(`MCP Server script not found for ${this.serverName} at ${serverScriptPath}. Module dir: ${moduleDir}`);
17693
17687
  }
17694
17688
  command = process.execPath;
17695
17689
  args = [serverScriptPath];
@@ -4,7 +4,7 @@ import { homedir } from "os";
4
4
  import path from "path";
5
5
  import axios from "axios";
6
6
  //#region package.json
7
- var version = "0.2.65-fix-sre-apply-syntax-guard.21837+94738391b";
7
+ var version = "0.2.65-fix-sre-workflow-commitlint.21843+f76e159d4";
8
8
  //#endregion
9
9
  //#region src/utils/updateChecker.ts
10
10
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bike4mind/cli",
3
- "version": "0.2.65-fix-sre-apply-syntax-guard.21837+94738391b",
3
+ "version": "0.2.65-fix-sre-workflow-commitlint.21843+f76e159d4",
4
4
  "type": "module",
5
5
  "description": "Interactive CLI tool for Bike4Mind with ReAct agents",
6
6
  "license": "UNLICENSED",
@@ -115,11 +115,11 @@
115
115
  "zustand": "^4.5.4"
116
116
  },
117
117
  "devDependencies": {
118
- "@bike4mind/agents": "0.4.3-fix-sre-apply-syntax-guard.21837+94738391b",
119
- "@bike4mind/common": "2.75.2-fix-sre-apply-syntax-guard.21837+94738391b",
120
- "@bike4mind/mcp": "1.33.22-fix-sre-apply-syntax-guard.21837+94738391b",
121
- "@bike4mind/services": "2.69.2-fix-sre-apply-syntax-guard.21837+94738391b",
122
- "@bike4mind/utils": "2.16.4-fix-sre-apply-syntax-guard.21837+94738391b",
118
+ "@bike4mind/agents": "0.4.3-fix-sre-workflow-commitlint.21843+f76e159d4",
119
+ "@bike4mind/common": "2.75.2-fix-sre-workflow-commitlint.21843+f76e159d4",
120
+ "@bike4mind/mcp": "1.33.22-fix-sre-workflow-commitlint.21843+f76e159d4",
121
+ "@bike4mind/services": "2.69.2-fix-sre-workflow-commitlint.21843+f76e159d4",
122
+ "@bike4mind/utils": "2.16.4-fix-sre-workflow-commitlint.21843+f76e159d4",
123
123
  "@types/better-sqlite3": "^7.6.13",
124
124
  "@types/jsonwebtoken": "^9.0.4",
125
125
  "@types/node": "^22.9.0",
@@ -136,5 +136,5 @@
136
136
  "optionalDependencies": {
137
137
  "@vscode/ripgrep": "^1.17.1"
138
138
  },
139
- "gitHead": "94738391b7142ee554e7e4bfb2ff7734595a1ff5"
139
+ "gitHead": "f76e159d4597d6a32959693c70a6121af6eb8557"
140
140
  }