@bike4mind/cli 1.0.0 → 1.2.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.
Files changed (36) hide show
  1. package/README.md +1 -0
  2. package/bin/bike4mind-cli.mjs +0 -5
  3. package/dist/AgentHistoryStore-B2NEOvSW.mjs +18014 -0
  4. package/dist/{ApiClient-EUTyn5yu.mjs → ApiClient-D0fQ2FT6.mjs} +2 -2
  5. package/dist/{BubblewrapRuntime-CkL9-gnG.mjs → BubblewrapRuntime-5bLPTwEC.mjs} +2 -2
  6. package/dist/{ConfigStore-DHNgFdOu.mjs → ConfigStore-qV7NrCgZ.mjs} +2259 -1283
  7. package/dist/{ProxyManager-C1-lgzEU.mjs → ProxyManager-B0-RuR2w.mjs} +21 -4
  8. package/dist/{SandboxOrchestrator-C8uleDn2.mjs → SandboxOrchestrator-BcUv9fQ3.mjs} +47 -13
  9. package/dist/{SandboxRuntimeAdapter-ChGlxSGQ.mjs → SandboxRuntimeAdapter-BgLUVTJL.mjs} +2 -2
  10. package/dist/{SandboxRuntimeAdapter-CKelGICD.mjs → SandboxRuntimeAdapter-BmHELLuM.mjs} +1 -1
  11. package/dist/{SeatbeltRuntime-Qqt19cAN.mjs → SeatbeltRuntime-C_Y8q8Mr.mjs} +9 -1
  12. package/dist/buildAgent-C-C-VGff.mjs +2001 -0
  13. package/dist/commands/acpCommand.mjs +36 -13
  14. package/dist/commands/apiCommand.mjs +1 -1
  15. package/dist/commands/doctorCommand.mjs +1 -1
  16. package/dist/commands/envCommand.mjs +1 -1
  17. package/dist/commands/headlessCommand.mjs +92 -42
  18. package/dist/commands/mcpCommand.mjs +8 -13
  19. package/dist/commands/pluginCommand.mjs +9 -15
  20. package/dist/commands/updateCommand.mjs +1 -1
  21. package/dist/{createFile-DPv180yF-BnWFIxey.mjs → createFile-B8bur5Rb-CVzCarEA.mjs} +2 -2
  22. package/dist/{deleteFile-BdjUwUQF-B3XOJmg3.mjs → deleteFile-9B3gW_Nb-DG2sovIl.mjs} +2 -2
  23. package/dist/{globFiles-DjfDGaUK-CNR8pMRC.mjs → globFiles-CwJ8qmYo-BR5b2KvO.mjs} +3 -2
  24. package/dist/{grepSearch-BaYUfIYs-n0XKoGnL.mjs → grepSearch-BgoOOwGe-DtlV8Gn-.mjs} +3 -3
  25. package/dist/index.mjs +638 -129
  26. package/dist/{package-7a45-Svr.mjs → package-CGZIoxcs.mjs} +1 -1
  27. package/dist/{pathValidation-D8tjkQXE-1HwvsuYT.mjs → pathValidation-BRqf4HFX-CHwtwp3O.mjs} +7 -3
  28. package/dist/{serve-CavAHPdQ.mjs → serve-CPXqcEZr.mjs} +2 -2
  29. package/dist/types-CdIKgWWe.mjs +3 -0
  30. package/dist/{types-LyRNHOiS.mjs → types-F61_hxmG.mjs} +2 -0
  31. package/package.json +28 -29
  32. package/dist/AgentHistoryStore-CrRb8cMt.mjs +0 -38586
  33. package/dist/ProxyManager-B1jFWL7b.mjs +0 -3
  34. package/dist/SandboxOrchestrator-BFPVpmB5.mjs +0 -3
  35. package/dist/buildAgent-CJrkEG0M.mjs +0 -824
  36. package/dist/types-CqscS34o.mjs +0 -3
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  //#region package.json
3
- var version = "1.0.0";
3
+ var version = "1.2.0";
4
4
  //#endregion
5
5
  export { version as t };
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { realpathSync } from "fs";
2
+ import { readlinkSync, realpathSync } from "fs";
3
3
  import path from "path";
4
- //#region ../../b4m-core/services/dist/pathValidation-D8tjkQXE.mjs
4
+ //#region ../../b4m-core/services/dist/pathValidation-BRqf4HFX.mjs
5
5
  /**
6
6
  * Resolves a path to its canonical form, following symlinks.
7
7
  * If the path doesn't exist (e.g., file being created), resolves the
@@ -10,7 +10,11 @@ import path from "path";
10
10
  function resolveRealPath(filePath) {
11
11
  try {
12
12
  return realpathSync(filePath);
13
- } catch {
13
+ } catch (err) {
14
+ if (err?.code === "ENOENT") try {
15
+ const linkTarget = readlinkSync(filePath);
16
+ return resolveRealPath(path.isAbsolute(linkTarget) ? linkTarget : path.resolve(path.dirname(filePath), linkTarget));
17
+ } catch {}
14
18
  const parentDir = path.dirname(filePath);
15
19
  const basename = path.basename(filePath);
16
20
  if (parentDir === filePath) return filePath;
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { W as PROMPT_TEXT_MAX, c as requireApiUrl, d as AGENT_QUEST_MANIFEST, f as AGENT_QUEST_MCP_URI, n as logger, s as parseApiUrl, t as ConfigStore, u as AGENT_QUEST_ID } from "./ConfigStore-DHNgFdOu.mjs";
3
- import { t as ApiClient } from "./ApiClient-EUTyn5yu.mjs";
2
+ import { N as PROMPT_TEXT_MAX, _ as AGENT_QUEST_ID, h as requireApiUrl, m as parseApiUrl, n as logger, t as ConfigStore, v as AGENT_QUEST_MANIFEST, y as AGENT_QUEST_MCP_URI } from "./ConfigStore-qV7NrCgZ.mjs";
3
+ import { t as ApiClient } from "./ApiClient-D0fQ2FT6.mjs";
4
4
  import { z as z$1 } from "zod";
5
5
  import { isAxiosError } from "axios";
6
6
  import { Writable } from "node:stream";
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { t as DEFAULT_SANDBOX_CONFIG } from "./types-F61_hxmG.mjs";
3
+ export { DEFAULT_SANDBOX_CONFIG };
@@ -16,6 +16,8 @@ const DEFAULT_SANDBOX_CONFIG = {
16
16
  "$HOME/.aws",
17
17
  "$HOME/.gnupg",
18
18
  "$HOME/.env",
19
+ "$HOME/.claude",
20
+ "$HOME/.bike4mind",
19
21
  "/etc/shadow",
20
22
  "/etc/passwd"
21
23
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bike4mind/cli",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "mcpName": "io.github.bike4mind/bike4mind",
5
5
  "type": "module",
6
6
  "description": "Interactive CLI tool for Bike4Mind with ReAct agents",
@@ -56,57 +56,56 @@
56
56
  "@smithy/node-http-handler": "^4.9.3",
57
57
  "async-mutex": "^0.5.0",
58
58
  "axios": "1.18.0",
59
- "bcryptjs": "^3.0.2",
60
- "better-sqlite3": "^13.0.1",
59
+ "bcryptjs": "^3.0.3",
60
+ "better-sqlite3": "^13.0.3",
61
61
  "cheerio": "1.2.0",
62
- "chess.js": "^1.0.0-beta.8",
62
+ "chess.js": "^1.4.0",
63
63
  "cli-highlight": "^2.1.11",
64
- "csv-parse": "^7.0.1",
65
- "dayjs": "^1.11.21",
64
+ "csv-parse": "^7.0.2",
65
+ "dayjs": "^1.11.23",
66
66
  "diff": "^9.0.0",
67
- "dotenv": "^17.4.2",
68
67
  "eventsource-parser": "^3.1.0",
69
68
  "fdir": "^6.5.0",
70
- "file-type": "^22.0.1",
71
- "fuse.js": "^7.4.2",
69
+ "file-type": "^22.1.0",
70
+ "fuse.js": "^7.5.0",
72
71
  "fzf": "^0.5.2",
73
72
  "glob": "^13.0.6",
74
73
  "gray-matter": "^4.0.3",
75
- "ignore": "^7.0.6",
76
- "ink": "^7.1.0",
74
+ "ignore": "^7.0.9",
75
+ "ink": "^7.1.1",
77
76
  "ink-select-input": "^6.2.0",
78
77
  "ink-spinner": "^5.0.0",
79
78
  "ink-text-input": "^6.0.0",
80
79
  "jsonwebtoken": "^9.0.3",
81
- "jszip": "^3.10.1",
80
+ "jszip": "^3.10.2",
82
81
  "lodash": "^4.18.1",
83
- "mammoth": "^1.12.0",
82
+ "mammoth": "^1.12.3",
84
83
  "marked": "^15.0.11",
85
84
  "mathjs": "^15.2.0",
86
85
  "mime-types": "^3.0.2",
87
86
  "mongoose": "^8.24.1",
88
87
  "ollama": "^0.6.3",
89
- "open": "^11.0.0",
88
+ "open": "^11.0.4",
90
89
  "openai": "^6.46.0",
91
- "p-limit": "^7.3.0",
92
- "picomatch": "^4.0.5",
90
+ "p-limit": "^7.3.2",
91
+ "picomatch": "^4.0.7",
93
92
  "qrcode": "^1.5.4",
94
93
  "react": "^19.2.7",
95
- "sharp": "^0.35.3",
94
+ "sharp": "^0.35.4",
96
95
  "shell-quote": "^1.10.0",
97
96
  "speakeasy": "^2.0.0",
98
97
  "tiktoken": "^1.0.22",
99
- "tldts": "^7.4.8",
98
+ "tldts": "^7.4.13",
100
99
  "tree-sitter-wasms": "^0.1.13",
101
100
  "turndown": "^7.2.4",
102
101
  "undici": "^7.29.0",
103
102
  "unpdf": "^1.6.2",
104
- "uuid": "^14.0.1",
103
+ "uuid": "^14.0.2",
105
104
  "voyageai": "^0.4.0",
106
105
  "web-tree-sitter": "0.25.10",
107
- "ws": "^8.21.0",
106
+ "ws": "^8.21.3",
108
107
  "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
109
- "yargs": "^18.0.0",
108
+ "yargs": "^18.1.0",
110
109
  "yauzl": "^3.4.0",
111
110
  "zod": "^4.4.3",
112
111
  "zod-validation-error": "^5.0.0",
@@ -126,15 +125,15 @@
126
125
  "tsx": "^4.23.0",
127
126
  "typescript": "^5.9.3",
128
127
  "vitest": "^4.1.10",
129
- "@bike4mind/agents": "1.0.6",
130
- "@bike4mind/common": "7.3.0",
131
- "@bike4mind/fab-pipeline": "1.3.6",
128
+ "@bike4mind/agents": "1.0.14",
129
+ "@bike4mind/common": "12.0.0",
132
130
  "@bike4mind/hearth": "0.3.0",
133
- "@bike4mind/llm-adapters": "0.15.0",
134
- "@bike4mind/mcp": "2.0.6",
135
- "@bike4mind/observability": "0.2.0",
136
- "@bike4mind/services": "8.0.0",
137
- "@bike4mind/utils": "5.2.0"
131
+ "@bike4mind/llm-adapters": "0.15.8",
132
+ "@bike4mind/mcp": "2.0.14",
133
+ "@bike4mind/services": "14.0.0",
134
+ "@bike4mind/observability": "0.2.2",
135
+ "@bike4mind/utils": "6.3.0",
136
+ "@bike4mind/fab-pipeline": "1.5.0"
138
137
  },
139
138
  "optionalDependencies": {
140
139
  "@vscode/ripgrep": "^1.18.0"