@bike4mind/cli 4.6.0 → 4.8.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 (40) hide show
  1. package/README.md +98 -0
  2. package/dist/{AgentHistoryStore--J3sgO_-.mjs → AgentHistoryStore-Bvmcy2kf.mjs} +23 -17
  3. package/dist/{ApiClient-CdO4Gamg.mjs → ApiClient-Yp2LPlX3.mjs} +3 -3
  4. package/dist/{BubblewrapRuntime-3jAbC60G.mjs → BubblewrapRuntime-OI4qFPNB.mjs} +2 -2
  5. package/dist/ConfigStore-Bo4od3Eu.mjs +2 -0
  6. package/dist/{ConfigStore-Dusy6glb.mjs → ConfigStore-CP1W86Ui.mjs} +100 -26
  7. package/dist/{Logger-C1Wj6xla.mjs → Logger-3RbeTZ9o.mjs} +1921 -319
  8. package/dist/{RemoteSkillSource-qTvRkaNA.mjs → RemoteSkillSource-D_F99yBR.mjs} +5 -0
  9. package/dist/{SandboxOrchestrator-CQwYq_uy.mjs → SandboxOrchestrator-lpxVEFO7.mjs} +1 -1
  10. package/dist/{SandboxRuntimeAdapter-BsT2iLky.mjs → SandboxRuntimeAdapter-C3xICJtQ.mjs} +2 -2
  11. package/dist/{SandboxRuntimeAdapter-Zg_0th7V.mjs → SandboxRuntimeAdapter-u6c_IrjP.mjs} +1 -1
  12. package/dist/{SeatbeltRuntime-C2DEkrjy.mjs → SeatbeltRuntime-Ccd_QbjX.mjs} +2 -2
  13. package/dist/{WorkItemsClient-CxNZaOmc.mjs → WorkItemsClient-D4sFGL9X.mjs} +1 -1
  14. package/dist/{buildToolSearch-DOb7mx6F.mjs → buildToolSearch-CqHKSLtG.mjs} +2 -2
  15. package/dist/commands/acpCommand.mjs +6 -6
  16. package/dist/commands/apiCommand.mjs +1 -1
  17. package/dist/commands/doctorCommand.mjs +2 -2
  18. package/dist/commands/envCommand.mjs +1 -1
  19. package/dist/commands/headlessCommand.mjs +7 -7
  20. package/dist/commands/hostCommand.mjs +1 -1
  21. package/dist/commands/mcpCommand.mjs +3 -3
  22. package/dist/commands/mirrorCommand.mjs +2 -2
  23. package/dist/commands/modelsCommand.mjs +5 -5
  24. package/dist/commands/pluginCommand.mjs +1 -1
  25. package/dist/commands/skillsCommand.mjs +4 -4
  26. package/dist/commands/updateCommand.mjs +2 -2
  27. package/dist/{dist-CbViwiS9.mjs → dist-BPhZ0dCz.mjs} +48 -11
  28. package/dist/{dist-Citbv0y0.mjs → dist-K7a9yOUb.mjs} +3 -3
  29. package/dist/{fit-CVWDiavv.mjs → fit-BOnDsgbk.mjs} +4 -4
  30. package/dist/{grepSearch-BgoOOwGe-B388GxRD.mjs → grepSearch-CLtEqT4j-BnKPtNWr.mjs} +2 -2
  31. package/dist/index.mjs +2493 -222
  32. package/dist/{modelServers-BaegigV-.mjs → modelServers-B7zI5XnO.mjs} +2 -2
  33. package/dist/{package-C9pfAdGF.mjs → package-WlxLVpUb.mjs} +1 -1
  34. package/dist/{serve-8wyGb8of.mjs → serve-DpsV0mag.mjs} +13 -9
  35. package/dist/store-Bpdo9Syo.mjs +2 -0
  36. package/dist/{store-BbvSi3KK.mjs → store-xeJRhBtO.mjs} +2 -0
  37. package/dist/{updateChecker-BAKb8KWP.mjs → updateChecker-Boq0RruU.mjs} +1 -1
  38. package/package.json +12 -12
  39. package/dist/ConfigStore-CausUCzY.mjs +0 -2
  40. package/dist/store-BYeE0shc.mjs +0 -2
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { D as sanitizeTerminalText } from "./ConfigStore-Dusy6glb.mjs";
3
- import { C as trackChild, H as isPermissiveEntry, K as ollamaModelKey, L as findHubBuild, O as curatedBuildForRef, Q as PullIdleTimeoutError, R as hubBuildTag, S as signalTree, T as HUGGING_FACE_SSH_KEYS_URL, V as isHubRepoId, Y as HubAccessError, Z as ModelNotFoundError, b as lmStudioModelsSchema, c as checkReviewedLayers, d as detectRuntimes, et as parseBaseUrl, f as licensesChanged, i as OllamaRuntime, k as curatedEntryForRef, l as checkRuntime, p as manifestChange, s as checkInstalledDigest, x as productFromOwner, y as OpenAICompatibleRuntime, z as isAbliteratedModel } from "./dist-Citbv0y0.mjs";
2
+ import { D as sanitizeTerminalText } from "./ConfigStore-CP1W86Ui.mjs";
3
+ import { C as trackChild, H as isPermissiveEntry, K as ollamaModelKey, L as findHubBuild, O as curatedBuildForRef, Q as PullIdleTimeoutError, R as hubBuildTag, S as signalTree, T as HUGGING_FACE_SSH_KEYS_URL, V as isHubRepoId, Y as HubAccessError, Z as ModelNotFoundError, b as lmStudioModelsSchema, c as checkReviewedLayers, d as detectRuntimes, et as parseBaseUrl, f as licensesChanged, i as OllamaRuntime, k as curatedEntryForRef, l as checkRuntime, p as manifestChange, s as checkInstalledDigest, x as productFromOwner, y as OpenAICompatibleRuntime, z as isAbliteratedModel } from "./dist-K7a9yOUb.mjs";
4
4
  import { createHash } from "crypto";
5
5
  import path from "node:path";
6
6
  import { z as z$1 } from "zod";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  //#region package.json
3
- var version = "4.6.0";
3
+ var version = "4.8.0";
4
4
  //#endregion
5
5
  export { version as t };
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import { C as NotAuthenticatedError, T as parseApiUrl, t as ConfigStore, v as requireApiUrl } from "./ConfigStore-Dusy6glb.mjs";
3
- import { c as resolveSupportedMimeType, i as parseRetryAfterSeconds, r as createClient, t as B4mApiError } from "./dist-CbViwiS9.mjs";
4
- import { D as DEFAULT_TTS_PROVIDER, Dt as joinReplySlots, E as CreateArtifactRequestSchema, F as ImageModels, Ht as ttsRequestSchema, I as ImagePromptResolutionSchema, K as PROMPT_TEXT_MAX, P as GENERATED_IMAGE_EXTENSION_RE, Ut as ttsResponseTooLargeSchema, Vt as ttsBase64ResponseSchema, _ as BRIEFCASE_CATALOG_QUERIES, c as AGENT_QUEST_MANIFEST, ft as generatedAudioResponseSchema, h as ArtifactTypeSchema, jt as replacePromptVariables, kt as questReplyText, l as AGENT_QUEST_MCP_URI, nt as VisibilitySchema, ot as buildPromptContext, p as ApiKeyScope, s as AGENT_QUEST_ID, t as logger, y as BriefcasePromptIdSchema, zt as supportedVoiceGenerationVendor } from "./Logger-C1Wj6xla.mjs";
5
- import { n as isProviderKeyFailure, t as ApiClient } from "./ApiClient-CdO4Gamg.mjs";
6
- import { E as HuggingFaceHub, F as curatedRunner, G as ollamaLibraryLayers, z as isAbliteratedModel } from "./dist-Citbv0y0.mjs";
7
- import { G as NO_LICENSE, J as abortable, Q as formatBytes, U as CancelledError, X as clean, Y as buildTag, Z as findInstalledModel, _ as shellWord, _t as resolveRuntimeTarget, bt as shortDigest, c as requireManageable, dt as removeInstalled, et as hadTagBefore, f as serverFetch, ft as requireInstalledReviewed, g as withSignal, gt as requireUnchangedManifest, ht as requireUnchangedLicenses, l as resolveServerTarget, lt as planPull, mt as requireReviewedLayers, n as findModelServer, nt as hubAccessMessage, o as noSuchServer, ot as licenseName, pt as requireRemovable, r as loadModelServers, rt as installedUncheckedMessage, st as listInstalled, t as defaultOn, tt as hiddenAbliteratedMessage, ut as rankSearchHits, vt as runtimeLabel, xt as readOllamaManifest, yt as sameModelName } from "./modelServers-BaegigV-.mjs";
8
- import { i as fitForPlan, o as machineReader, s as createCliCuratedList, t as FIT_LABELS } from "./fit-CVWDiavv.mjs";
2
+ import { C as NotAuthenticatedError, T as parseApiUrl, t as ConfigStore, v as requireApiUrl } from "./ConfigStore-CP1W86Ui.mjs";
3
+ import { c as resolveSupportedMimeType, i as parseRetryAfterSeconds, r as createClient, t as B4mApiError } from "./dist-BPhZ0dCz.mjs";
4
+ import { At as replacePromptVariables, Bt as ttsBase64ResponseSchema, D as CreateArtifactRequestSchema, Et as joinReplySlots, F as GENERATED_IMAGE_EXTENSION_RE, Ht as ttsResponseTooLargeSchema, I as ImageModels, L as ImagePromptResolutionSchema, O as DEFAULT_TTS_PROVIDER, Ot as questReplyText, Rt as supportedVoiceGenerationVendor, Vt as ttsRequestSchema, at as buildPromptContext, b as BriefcasePromptIdSchema, c as AGENT_QUEST_MANIFEST, dt as generatedAudioResponseSchema, g as ArtifactTypeSchema, l as AGENT_QUEST_MCP_URI, m as ApiKeyScope, q as PROMPT_TEXT_MAX, s as AGENT_QUEST_ID, t as logger, tt as VisibilitySchema, v as BRIEFCASE_CATALOG_QUERIES } from "./Logger-3RbeTZ9o.mjs";
5
+ import { n as isProviderKeyFailure, t as ApiClient } from "./ApiClient-Yp2LPlX3.mjs";
6
+ import { E as HuggingFaceHub, F as curatedRunner, G as ollamaLibraryLayers, z as isAbliteratedModel } from "./dist-K7a9yOUb.mjs";
7
+ import { G as NO_LICENSE, J as abortable, Q as formatBytes, U as CancelledError, X as clean, Y as buildTag, Z as findInstalledModel, _ as shellWord, _t as resolveRuntimeTarget, bt as shortDigest, c as requireManageable, dt as removeInstalled, et as hadTagBefore, f as serverFetch, ft as requireInstalledReviewed, g as withSignal, gt as requireUnchangedManifest, ht as requireUnchangedLicenses, l as resolveServerTarget, lt as planPull, mt as requireReviewedLayers, n as findModelServer, nt as hubAccessMessage, o as noSuchServer, ot as licenseName, pt as requireRemovable, r as loadModelServers, rt as installedUncheckedMessage, st as listInstalled, t as defaultOn, tt as hiddenAbliteratedMessage, ut as rankSearchHits, vt as runtimeLabel, xt as readOllamaManifest, yt as sameModelName } from "./modelServers-B7zI5XnO.mjs";
8
+ import { i as fitForPlan, o as machineReader, s as createCliCuratedList, t as FIT_LABELS } from "./fit-BOnDsgbk.mjs";
9
9
  import { basename, resolve, sep } from "node:path";
10
10
  import { constants } from "node:fs";
11
11
  import { z as z$1 } from "zod";
@@ -228,17 +228,21 @@ var B4mApiClient = class {
228
228
  return this.client.post("/api/files/generate-presigned-urls-batch", { files: [file] });
229
229
  }
230
230
  async uploadFileBytes(uploadUrl, bytes, mimeType) {
231
+ const headers = {
232
+ "Content-Type": mimeType,
233
+ "If-None-Match": "*"
234
+ };
231
235
  if (uploadUrl.startsWith("//")) throw new Error("Unexpected file upload URL");
232
236
  const url = new URL(uploadUrl, this.baseURL);
233
237
  if (uploadUrl.startsWith("/")) {
234
238
  if (url.origin !== new URL(this.baseURL).origin || !/^\/api\/files\/[^/]+\/upload$/.test(url.pathname)) throw new Error("Unexpected file upload proxy URL");
235
- await this.client.put(url.pathname, bytes, { headers: { "Content-Type": mimeType } });
239
+ await this.client.put(url.pathname, bytes, { headers });
236
240
  return;
237
241
  }
238
242
  if (url.protocol !== "https:" && url.protocol !== "http:") throw new Error("Unexpected file upload URL");
239
243
  const res = await fetch(url, {
240
244
  method: "PUT",
241
- headers: { "Content-Type": mimeType },
245
+ headers,
242
246
  body: bytes
243
247
  });
244
248
  if (!res.ok) throw new Error(`file upload failed (${res.status})`);
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export { o as useCliStore } from "./store-xeJRhBtO.mjs";
@@ -121,6 +121,8 @@ const useCliStore = create((set) => ({
121
121
  clearMessageQueue: () => set({ messageQueue: [] }),
122
122
  turnInFlight: false,
123
123
  setTurnInFlight: (inFlight) => set({ turnInFlight: inFlight }),
124
+ peerTurnActive: false,
125
+ setPeerTurnActive: (active) => set({ peerTurnActive: active }),
124
126
  isThinking: false,
125
127
  setIsThinking: (thinking) => set({ isThinking: thinking }),
126
128
  inputValue: "",
@@ -88,7 +88,7 @@ async function getAutoUpdatePreference() {
88
88
  */
89
89
  async function setAutoUpdatePreference(value, configPath) {
90
90
  try {
91
- const { ConfigStore } = await import("./ConfigStore-CausUCzY.mjs");
91
+ const { ConfigStore } = await import("./ConfigStore-Bo4od3Eu.mjs");
92
92
  await new ConfigStore(configPath).saveAutoUpdatePreference(value);
93
93
  } catch {}
94
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bike4mind/cli",
3
- "version": "4.6.0",
3
+ "version": "4.8.0",
4
4
  "mcpName": "io.github.Bike4Mind/bike4mind",
5
5
  "type": "module",
6
6
  "description": "Interactive CLI tool for Bike4Mind with ReAct agents",
@@ -69,7 +69,7 @@
69
69
  "file-type": "^22.1.0",
70
70
  "fuse.js": "^7.5.0",
71
71
  "fzf": "^0.5.2",
72
- "glob": "^13.0.6",
72
+ "glob": "^14.0.2",
73
73
  "gray-matter": "^4.0.3",
74
74
  "ignore": "^7.0.9",
75
75
  "ink": "^7.1.1",
@@ -126,19 +126,19 @@
126
126
  "tsx": "^4.23.0",
127
127
  "typescript": "^5.9.3",
128
128
  "vitest": "^4.1.12",
129
- "@bike4mind/agents": "1.8.1",
130
- "@bike4mind/client-auth": "0.4.0",
131
- "@bike4mind/common": "26.0.0",
132
- "@bike4mind/fab-pipeline": "3.2.0",
129
+ "@bike4mind/agents": "1.8.3",
130
+ "@bike4mind/client-auth": "0.5.0",
131
+ "@bike4mind/common": "28.0.0",
132
+ "@bike4mind/fab-pipeline": "3.2.2",
133
133
  "@bike4mind/hearth": "0.3.1",
134
- "@bike4mind/llm-adapters": "2.5.1",
135
- "@bike4mind/local-models": "0.1.5",
136
- "@bike4mind/mcp": "2.2.4",
134
+ "@bike4mind/llm-adapters": "2.6.0",
135
+ "@bike4mind/local-models": "0.1.7",
136
+ "@bike4mind/mcp": "2.2.6",
137
137
  "@bike4mind/model-host": "0.1.0",
138
138
  "@bike4mind/observability": "1.1.0",
139
- "@bike4mind/sdk": "2.2.0",
140
- "@bike4mind/services": "27.0.0",
141
- "@bike4mind/utils": "11.2.0"
139
+ "@bike4mind/sdk": "4.0.0",
140
+ "@bike4mind/services": "npm:@bike4mind/services-core@29.0.0",
141
+ "@bike4mind/utils": "11.4.0"
142
142
  },
143
143
  "optionalDependencies": {
144
144
  "@vscode/ripgrep": "^1.18.0"
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export { t as ConfigStore } from "./ConfigStore-Dusy6glb.mjs";
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export { o as useCliStore } from "./store-BbvSi3KK.mjs";