@bike4mind/cli 0.2.14-feat-cli-mcp-management.17477 → 0.2.14-feat-cli-mcp-management.17478

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 -26
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -83,13 +83,13 @@ import "./chunk-BPFEGDC7.js";
83
83
 
84
84
  // src/index.tsx
85
85
  import React18, { useState as useState8, useEffect as useEffect3, useCallback, useRef as useRef2 } from "react";
86
- import { render, Box as Box17, Text as Text17, useApp, useInput as useInput8 } from "ink";
86
+ import { render, Box as Box17, Text as Text17, useApp, useInput as useInput7 } from "ink";
87
87
  import { execSync } from "child_process";
88
88
  import { v4 as uuidv49 } from "uuid";
89
89
 
90
90
  // src/components/App.tsx
91
91
  import React12, { useState as useState4 } from "react";
92
- import { Box as Box11, Text as Text11, Static, useInput as useInput5 } from "ink";
92
+ import { Box as Box11, Text as Text11, Static } from "ink";
93
93
 
94
94
  // src/components/StatusBar.tsx
95
95
  import React from "react";
@@ -1412,7 +1412,7 @@ function McpViewer({ config, mcpManager, onClose }) {
1412
1412
  } else {
1413
1413
  return /* @__PURE__ */ React10.createElement(Text9, { dimColor: true }, "No MCP tools available yet (servers still connecting)");
1414
1414
  }
1415
- })())), enabledServers.length === 0 && /* @__PURE__ */ React10.createElement(Box9, { marginBottom: 2 }, /* @__PURE__ */ React10.createElement(Text9, { color: "yellow" }, "\u26A0\uFE0F No MCP servers enabled"), /* @__PURE__ */ React10.createElement(Text9, { dimColor: true }, " Use `b4m mcp enable <name>` to enable a server")), /* @__PURE__ */ React10.createElement(Box9, { marginTop: 1 }, /* @__PURE__ */ React10.createElement(Text9, { dimColor: true, italic: true }, "Press Esc or q to close")));
1415
+ })())), enabledServers.length === 0 && /* @__PURE__ */ React10.createElement(Box9, { marginBottom: 2 }, /* @__PURE__ */ React10.createElement(Text9, { color: "yellow" }, "\u26A0\uFE0F No MCP servers enabled"), /* @__PURE__ */ React10.createElement(Text9, { dimColor: true }, " Use `b4m mcp enable ", "<name>", "` to enable a server")), /* @__PURE__ */ React10.createElement(Box9, { marginTop: 1 }, /* @__PURE__ */ React10.createElement(Text9, { dimColor: true, italic: true }, "Press Esc or q to close")));
1416
1416
  }
1417
1417
 
1418
1418
  // src/components/MessageItem.tsx
@@ -1564,8 +1564,6 @@ function App({
1564
1564
  onSaveConfig,
1565
1565
  prefillInput,
1566
1566
  onPrefillConsumed,
1567
- commandOutput,
1568
- onCommandOutputDismiss,
1569
1567
  mcpManager
1570
1568
  }) {
1571
1569
  const messages = useCliStore((state) => state.session?.messages || []);
@@ -1582,18 +1580,10 @@ function App({
1582
1580
  const exitRequested = useCliStore((state) => state.exitRequested);
1583
1581
  const setIsThinking = useCliStore((state) => state.setIsThinking);
1584
1582
  const [isBashMode, setIsBashMode] = useState4(false);
1585
- useInput5((input, key) => {
1586
- if (key.escape && commandOutput && onCommandOutputDismiss) {
1587
- onCommandOutputDismiss();
1588
- }
1589
- });
1590
1583
  const handleSubmit = React12.useCallback(
1591
1584
  async (input) => {
1592
1585
  const trimmed = input.trim();
1593
1586
  if (!trimmed) return;
1594
- if (commandOutput && onCommandOutputDismiss) {
1595
- onCommandOutputDismiss();
1596
- }
1597
1587
  if (trimmed.startsWith("/") && !trimmed.match(/^\/[A-Z]/)) {
1598
1588
  const [command, ...args] = trimmed.slice(1).split(" ");
1599
1589
  await onCommand(command, args);
@@ -1617,7 +1607,7 @@ ${errorBlock}`;
1617
1607
  setIsThinking(false);
1618
1608
  }
1619
1609
  },
1620
- [onMessage, onCommand, setIsThinking, commandOutput, onCommandOutputDismiss]
1610
+ [onMessage, onCommand, setIsThinking]
1621
1611
  );
1622
1612
  return /* @__PURE__ */ React12.createElement(Box11, { flexDirection: "column" }, showConfigEditor && config && onSaveConfig ? /* @__PURE__ */ React12.createElement(Box11, { flexDirection: "column", paddingX: 1 }, /* @__PURE__ */ React12.createElement(
1623
1613
  ConfigEditor,
@@ -1639,7 +1629,7 @@ ${errorBlock}`;
1639
1629
  canBeTrusted: permissionPrompt.canBeTrusted,
1640
1630
  onResponse: onPermissionResponse
1641
1631
  }
1642
- )), !permissionPrompt && /* @__PURE__ */ React12.createElement(AgentThinking, null), exitRequested && /* @__PURE__ */ React12.createElement(Box11, { paddingX: 1, marginBottom: 1 }, /* @__PURE__ */ React12.createElement(Text11, { color: "yellow", bold: true }, "Press Ctrl+C again to exit")), commandOutput && /* @__PURE__ */ React12.createElement(Box11, { paddingX: 1, marginBottom: 1, flexDirection: "column", borderStyle: "round", borderColor: "gray" }, /* @__PURE__ */ React12.createElement(Text11, { dimColor: true }, commandOutput), /* @__PURE__ */ React12.createElement(Text11, { dimColor: true, italic: true }, "Press Esc to dismiss")), /* @__PURE__ */ React12.createElement(Box11, { borderStyle: "single", borderColor: isBashMode ? "yellow" : "cyan", paddingX: 1 }, /* @__PURE__ */ React12.createElement(
1632
+ )), !permissionPrompt && /* @__PURE__ */ React12.createElement(AgentThinking, null), exitRequested && /* @__PURE__ */ React12.createElement(Box11, { paddingX: 1, marginBottom: 1 }, /* @__PURE__ */ React12.createElement(Text11, { color: "yellow", bold: true }, "Press Ctrl+C again to exit")), /* @__PURE__ */ React12.createElement(Box11, { borderStyle: "single", borderColor: isBashMode ? "yellow" : "cyan", paddingX: 1 }, /* @__PURE__ */ React12.createElement(
1643
1633
  InputPrompt,
1644
1634
  {
1645
1635
  onSubmit: handleSubmit,
@@ -1729,12 +1719,12 @@ function TrustLocationSelector({ inProject, onSelect, onCancel }) {
1729
1719
 
1730
1720
  // src/components/RewindSelector.tsx
1731
1721
  import React15, { useState as useState5 } from "react";
1732
- import { Box as Box14, Text as Text14, useInput as useInput6 } from "ink";
1722
+ import { Box as Box14, Text as Text14, useInput as useInput5 } from "ink";
1733
1723
  import SelectInput3 from "ink-select-input";
1734
1724
  function RewindSelector({ messages, onSelect, onCancel }) {
1735
1725
  const [step, setStep] = useState5("selection");
1736
1726
  const [selectedMessageIndex, setSelectedMessageIndex] = useState5(null);
1737
- useInput6((input, key) => {
1727
+ useInput5((input, key) => {
1738
1728
  if (key.escape) {
1739
1729
  if (step === "confirmation") {
1740
1730
  setStep("selection");
@@ -1798,12 +1788,12 @@ function RewindSelector({ messages, onSelect, onCancel }) {
1798
1788
 
1799
1789
  // src/components/SessionSelector.tsx
1800
1790
  import React16, { useState as useState6 } from "react";
1801
- import { Box as Box15, Text as Text15, useInput as useInput7 } from "ink";
1791
+ import { Box as Box15, Text as Text15, useInput as useInput6 } from "ink";
1802
1792
  import SelectInput4 from "ink-select-input";
1803
1793
  function SessionSelector({ sessions, currentSession, onSelect, onCancel }) {
1804
1794
  const [step, setStep] = useState6("selection");
1805
1795
  const [selectedSession, setSelectedSession] = useState6(null);
1806
- useInput7((input, key) => {
1796
+ useInput6((input, key) => {
1807
1797
  if (key.escape) {
1808
1798
  if (step === "confirmation") {
1809
1799
  setStep("selection");
@@ -11323,7 +11313,7 @@ import { isAxiosError as isAxiosError2 } from "axios";
11323
11313
  // package.json
11324
11314
  var package_default = {
11325
11315
  name: "@bike4mind/cli",
11326
- version: "0.2.14-feat-cli-mcp-management.17477+50a7d8e58",
11316
+ version: "0.2.14-feat-cli-mcp-management.17478+ce85a40e9",
11327
11317
  type: "module",
11328
11318
  description: "Interactive CLI tool for Bike4Mind with ReAct agents",
11329
11319
  license: "UNLICENSED",
@@ -11429,10 +11419,10 @@ var package_default = {
11429
11419
  },
11430
11420
  devDependencies: {
11431
11421
  "@bike4mind/agents": "0.1.0",
11432
- "@bike4mind/common": "2.42.1-feat-cli-mcp-management.17477+50a7d8e58",
11433
- "@bike4mind/mcp": "1.21.3-feat-cli-mcp-management.17477+50a7d8e58",
11434
- "@bike4mind/services": "2.37.1-feat-cli-mcp-management.17477+50a7d8e58",
11435
- "@bike4mind/utils": "2.1.8-feat-cli-mcp-management.17477+50a7d8e58",
11422
+ "@bike4mind/common": "2.42.1-feat-cli-mcp-management.17478+ce85a40e9",
11423
+ "@bike4mind/mcp": "1.21.3-feat-cli-mcp-management.17478+ce85a40e9",
11424
+ "@bike4mind/services": "2.37.1-feat-cli-mcp-management.17478+ce85a40e9",
11425
+ "@bike4mind/utils": "2.1.8-feat-cli-mcp-management.17478+ce85a40e9",
11436
11426
  "@types/better-sqlite3": "^7.6.13",
11437
11427
  "@types/diff": "^5.0.9",
11438
11428
  "@types/jsonwebtoken": "^9.0.4",
@@ -11446,7 +11436,7 @@ var package_default = {
11446
11436
  typescript: "^5.9.3",
11447
11437
  vitest: "^3.2.4"
11448
11438
  },
11449
- gitHead: "50a7d8e58345e84ae2bed8bbc91bb61108f58879"
11439
+ gitHead: "ce85a40e9cd28731c1416a8397c8623c53ade72e"
11450
11440
  };
11451
11441
 
11452
11442
  // src/config/constants.ts
@@ -12005,7 +11995,7 @@ function CliApp() {
12005
11995
  process.exit(0);
12006
11996
  }, 100);
12007
11997
  }, [state.session, state.sessionStore, state.mcpManager, state.agent, state.imageStore]);
12008
- useInput8((input, key) => {
11998
+ useInput7((input, key) => {
12009
11999
  if (key.escape) {
12010
12000
  if (state.abortController) {
12011
12001
  logger.debug("[ABORT] ESC pressed - aborting current operation...");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bike4mind/cli",
3
- "version": "0.2.14-feat-cli-mcp-management.17477+50a7d8e58",
3
+ "version": "0.2.14-feat-cli-mcp-management.17478+ce85a40e9",
4
4
  "type": "module",
5
5
  "description": "Interactive CLI tool for Bike4Mind with ReAct agents",
6
6
  "license": "UNLICENSED",
@@ -106,10 +106,10 @@
106
106
  },
107
107
  "devDependencies": {
108
108
  "@bike4mind/agents": "0.1.0",
109
- "@bike4mind/common": "2.42.1-feat-cli-mcp-management.17477+50a7d8e58",
110
- "@bike4mind/mcp": "1.21.3-feat-cli-mcp-management.17477+50a7d8e58",
111
- "@bike4mind/services": "2.37.1-feat-cli-mcp-management.17477+50a7d8e58",
112
- "@bike4mind/utils": "2.1.8-feat-cli-mcp-management.17477+50a7d8e58",
109
+ "@bike4mind/common": "2.42.1-feat-cli-mcp-management.17478+ce85a40e9",
110
+ "@bike4mind/mcp": "1.21.3-feat-cli-mcp-management.17478+ce85a40e9",
111
+ "@bike4mind/services": "2.37.1-feat-cli-mcp-management.17478+ce85a40e9",
112
+ "@bike4mind/utils": "2.1.8-feat-cli-mcp-management.17478+ce85a40e9",
113
113
  "@types/better-sqlite3": "^7.6.13",
114
114
  "@types/diff": "^5.0.9",
115
115
  "@types/jsonwebtoken": "^9.0.4",
@@ -123,5 +123,5 @@
123
123
  "typescript": "^5.9.3",
124
124
  "vitest": "^3.2.4"
125
125
  },
126
- "gitHead": "50a7d8e58345e84ae2bed8bbc91bb61108f58879"
126
+ "gitHead": "ce85a40e9cd28731c1416a8397c8623c53ade72e"
127
127
  }