@bike4mind/cli 4.10.0 → 5.0.1

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 (38) hide show
  1. package/dist/{AgentHistoryStore-CjGVgxLR.mjs → AgentHistoryStore-DW6BBbVj.mjs} +624 -114
  2. package/dist/{ApiClient-SVXSI3HI.mjs → ApiClient-D4bDuWXg.mjs} +3 -3
  3. package/dist/{BubblewrapRuntime-CTc_KPnd.mjs → BubblewrapRuntime-D3EO5Y0C.mjs} +2 -2
  4. package/dist/{ConfigStore-B2Dy-PT9.mjs → ConfigStore-BuLA_-uZ.mjs} +17 -1
  5. package/dist/ConfigStore-DdqxfmDr.mjs +2 -0
  6. package/dist/{Logger-7MmrU5w6.mjs → Logger-CjaYx85U.mjs} +1560 -805
  7. package/dist/{RemoteSkillSource-D_F99yBR.mjs → RemoteSkillSource-HqoLRV56.mjs} +2 -6
  8. package/dist/{SandboxOrchestrator-CeDwd6Fj.mjs → SandboxOrchestrator-yORi2eFV.mjs} +1 -1
  9. package/dist/{SandboxRuntimeAdapter-CFEIywKt.mjs → SandboxRuntimeAdapter-BjJwJNfg.mjs} +1 -1
  10. package/dist/{SandboxRuntimeAdapter-CjNDzYSf.mjs → SandboxRuntimeAdapter-BmkaFzqU.mjs} +2 -2
  11. package/dist/{SeatbeltRuntime-CQItj-F1.mjs → SeatbeltRuntime-CyZNmFwD.mjs} +2 -2
  12. package/dist/{WorkItemsClient-C9_pjHCo.mjs → WorkItemsClient-xmo0DrCm.mjs} +1 -1
  13. package/dist/{buildToolSearch-8xyBwXRx.mjs → buildToolSearch-CXxEtVKc.mjs} +2 -2
  14. package/dist/commands/acpCommand.mjs +6 -6
  15. package/dist/commands/apiCommand.mjs +1 -1
  16. package/dist/commands/doctorCommand.mjs +2 -2
  17. package/dist/commands/envCommand.mjs +1 -1
  18. package/dist/commands/headlessCommand.mjs +7 -7
  19. package/dist/commands/mcpCommand.mjs +3 -3
  20. package/dist/commands/mirrorCommand.mjs +2 -2
  21. package/dist/commands/modelsCommand.mjs +4 -4
  22. package/dist/commands/pluginCommand.mjs +1 -1
  23. package/dist/commands/skillsCommand.mjs +4 -4
  24. package/dist/commands/updateCommand.mjs +2 -2
  25. package/dist/{createFile-B8bur5Rb-CVzCarEA.mjs → createFile-CPKmd6Uf-Bk-3V2T3.mjs} +3 -3
  26. package/dist/{deleteFile-9B3gW_Nb-DG2sovIl.mjs → deleteFile-CD_xQ7Y6-C1X4Ievb.mjs} +17 -4
  27. package/dist/{dist-DHgMhdzV.mjs → dist-DsMzCRLX.mjs} +96 -34
  28. package/dist/{fit-D8Quui6j.mjs → fit-C9eLTDcR.mjs} +3 -3
  29. package/dist/{globFiles-CwJ8qmYo-BR5b2KvO.mjs → globFiles-CoapsO8G-CpvQo-R2.mjs} +9 -5
  30. package/dist/{grepSearch-CLtEqT4j-BnKPtNWr.mjs → grepSearch-DeH7M2e7-BIvo-yNy.mjs} +2 -2
  31. package/dist/index.mjs +12 -417
  32. package/dist/{modelServers-JsKBm7Wn.mjs → modelServers-DeOGFwLi.mjs} +1 -1
  33. package/dist/{package-r_xumsGY.mjs → package-CvffLo0I.mjs} +1 -1
  34. package/dist/{pathValidation-BRqf4HFX-CHwtwp3O.mjs → pathValidation-C4ADzpUR-BPIpINwZ.mjs} +36 -12
  35. package/dist/{serve-BM9PKMLH.mjs → serve-tmC__JNj.mjs} +6 -6
  36. package/dist/{updateChecker-BOqaLeZU.mjs → updateChecker-U4AfrPKj.mjs} +1 -1
  37. package/package.json +10 -11
  38. package/dist/ConfigStore-zlY0PikB.mjs +0 -2
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { b as AuthenticatedApiClient, t as ConfigStore, x as DeviceFlowClient } from "./ConfigStore-B2Dy-PT9.mjs";
3
- import { t as logger } from "./Logger-7MmrU5w6.mjs";
4
- import { t as version } from "./package-r_xumsGY.mjs";
2
+ import { b as AuthenticatedApiClient, t as ConfigStore, x as DeviceFlowClient } from "./ConfigStore-BuLA_-uZ.mjs";
3
+ import { t as logger } from "./Logger-CjaYx85U.mjs";
4
+ import { t as version } from "./package-CvffLo0I.mjs";
5
5
  import { isAxiosError } from "axios";
6
6
  import { Readable } from "node:stream";
7
7
  //#region src/auth/OAuthClient.ts
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { t as logger } from "./Logger-7MmrU5w6.mjs";
3
- import { a as getContainerSocketPaths, c as resolveSandboxPath, o as getProtectedWorkspacePaths, s as isBinaryAvailable, t as assertProxyPort } from "./SandboxRuntimeAdapter-CjNDzYSf.mjs";
2
+ import { t as logger } from "./Logger-CjaYx85U.mjs";
3
+ import { a as getContainerSocketPaths, c as resolveSandboxPath, o as getProtectedWorkspacePaths, s as isBinaryAvailable, t as assertProxyPort } from "./SandboxRuntimeAdapter-BmkaFzqU.mjs";
4
4
  import { lstatSync, mkdirSync, statSync } from "fs";
5
5
  import os from "os";
6
6
  import path from "path";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { T as ChatModels, t as logger } from "./Logger-7MmrU5w6.mjs";
2
+ import { T as ChatModels, t as logger } from "./Logger-CjaYx85U.mjs";
3
3
  import { t as DEFAULT_SANDBOX_CONFIG } from "./types-CxrzVXel.mjs";
4
4
  import { isDeepStrictEqual } from "node:util";
5
5
  import { existsSync, promises } from "fs";
@@ -976,6 +976,22 @@ var ToolCatalog = class {
976
976
  if (this.registered.has(toolName)) throw new Error(`Tool "${toolName}" already has a registered descriptor`);
977
977
  this.registered.set(toolName, descriptor);
978
978
  }
979
+ /**
980
+ * Record that a tool came from an MCP server (the tool object's `_isMcpTool`), whatever its
981
+ * name. The MCP descriptor replaces any earlier registration of that name.
982
+ */
983
+ markMcpTool(toolName) {
984
+ if (CORE_TOOL_DESCRIPTORS.has(toolName)) throw new Error(`Tool "${toolName}" is a core tool and already has a descriptor`);
985
+ const server = toolName.includes("__") ? toolName.slice(0, toolName.indexOf("__")) : toolName;
986
+ this.registered.set(toolName, {
987
+ source: {
988
+ kind: "mcp",
989
+ server
990
+ },
991
+ effect: "execute",
992
+ approval: "prompt_always"
993
+ });
994
+ }
979
995
  resolve(toolName) {
980
996
  return this.registered.get(toolName) ?? resolveStaticToolDescriptor(toolName);
981
997
  }
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export { t as ConfigStore } from "./ConfigStore-BuLA_-uZ.mjs";