@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
@@ -35,6 +35,11 @@ const COMMANDS = [
35
35
  description: "List and resume saved sessions",
36
36
  aliases: ["sessions"]
37
37
  },
38
+ {
39
+ name: "peers",
40
+ description: "Discover and message local CLI sessions (opt-in)",
41
+ args: "<on|off|list|send|reply|inbox|status|cancel|accept|hold|refuse|release|delete>"
42
+ },
38
43
  {
39
44
  name: "config",
40
45
  description: "Open interactive configuration editor"
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { t as DEFAULT_SANDBOX_CONFIG } from "./types-CxrzVXel.mjs";
3
- import { c as resolveSandboxPath } from "./SandboxRuntimeAdapter-BsT2iLky.mjs";
3
+ import { c as resolveSandboxPath } from "./SandboxRuntimeAdapter-C3xICJtQ.mjs";
4
4
  import path from "path";
5
5
  //#region src/sandbox/SandboxOrchestrator.ts
6
6
  var SandboxOrchestrator = class {
@@ -178,11 +178,11 @@ async function createSandboxRuntime() {
178
178
  const platform = detectPlatform();
179
179
  if (!platform) return null;
180
180
  if (platform === "darwin") {
181
- const { SeatbeltRuntime } = await import("./SeatbeltRuntime-C2DEkrjy.mjs");
181
+ const { SeatbeltRuntime } = await import("./SeatbeltRuntime-Ccd_QbjX.mjs");
182
182
  const runtime = new SeatbeltRuntime();
183
183
  return runtime.isAvailable() ? runtime : null;
184
184
  }
185
- const { BubblewrapRuntime } = await import("./BubblewrapRuntime-3jAbC60G.mjs");
185
+ const { BubblewrapRuntime } = await import("./BubblewrapRuntime-OI4qFPNB.mjs");
186
186
  const runtime = new BubblewrapRuntime();
187
187
  return runtime.isAvailable() ? runtime : null;
188
188
  }
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- export { t as assertProxyPort, n as createSandboxRuntime, r as detectPlatform, i as expandPath, a as getContainerSocketPaths, o as getProtectedWorkspacePaths, s as isBinaryAvailable, c as resolveSandboxPath } from "./SandboxRuntimeAdapter-BsT2iLky.mjs";
2
+ export { t as assertProxyPort, n as createSandboxRuntime, r as detectPlatform, i as expandPath, a as getContainerSocketPaths, o as getProtectedWorkspacePaths, s as isBinaryAvailable, c as resolveSandboxPath } from "./SandboxRuntimeAdapter-C3xICJtQ.mjs";
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { t as logger } from "./Logger-C1Wj6xla.mjs";
3
- import { a as getContainerSocketPaths, c as resolveSandboxPath, o as getProtectedWorkspacePaths, s as isBinaryAvailable, t as assertProxyPort } from "./SandboxRuntimeAdapter-BsT2iLky.mjs";
2
+ import { t as logger } from "./Logger-3RbeTZ9o.mjs";
3
+ import { a as getContainerSocketPaths, c as resolveSandboxPath, o as getProtectedWorkspacePaths, s as isBinaryAvailable, t as assertProxyPort } from "./SandboxRuntimeAdapter-C3xICJtQ.mjs";
4
4
  import { mkdtempSync, writeFileSync } 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 { Bt as tokenEstimateMultiplier } from "./Logger-C1Wj6xla.mjs";
2
+ import { zt as tokenEstimateMultiplier } from "./Logger-3RbeTZ9o.mjs";
3
3
  import { v4 } from "uuid";
4
4
  import { get_encoding } from "tiktoken";
5
5
  //#region ../../b4m-core/utils/dist/calibratedTokenizer.mjs
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { U as generateCliTools, a as loadProjectContext, bt as getPlanModeFilePath, ft as DeferredToolRegistry, gt as wrapTools, i as buildProjectAgentStore, mt as createToolSearchTool, n as BackgroundAgentManager, o as McpManager, pt as ReActAgent, r as SubagentOrchestrator, t as AgentHistoryStore, ut as buildSystemPrompt } from "./AgentHistoryStore--J3sgO_-.mjs";
3
- import { st as completionsSupportsToolSearch, t as logger } from "./Logger-C1Wj6xla.mjs";
2
+ import { U as generateCliTools, a as loadProjectContext, bt as getPlanModeFilePath, ft as DeferredToolRegistry, gt as wrapTools, i as buildProjectAgentStore, mt as createToolSearchTool, n as BackgroundAgentManager, o as McpManager, pt as ReActAgent, r as SubagentOrchestrator, t as AgentHistoryStore, ut as buildSystemPrompt } from "./AgentHistoryStore-Bvmcy2kf.mjs";
3
+ import { ot as completionsSupportsToolSearch, t as logger } from "./Logger-3RbeTZ9o.mjs";
4
4
  //#region src/llm/NotifyingLlmBackend.ts
5
5
  /**
6
6
  * LLM backend wrapper that injects background agent notifications
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import { A as createTodoStore, D as createGetFileStructureTool, Et as SessionStore, F as createResumeAgentTool, H as buildCliToolList, I as createBackgroundAgentTools, L as createAgentDelegateTool, M as createSkillTool, P as createCoordinateTaskTool, R as FallbackLlmBackend, V as PermissionManager, Z as NoLocalModelsError, at as signInUncheckedHeadlessMessage, c as checkSavedSignIn, f as buildLlmBackend, j as createWriteTodosTool, k as createFindDefinitionTool, l as settleSignInRefresh, s as buildSandbox, tt as SIGN_IN_EXPIRED_HEADLESS, vt as setWebSocketToolExecutor, wt as CheckpointStore, xt as CustomCommandStore } from "../AgentHistoryStore--J3sgO_-.mjs";
3
- import { c as ToolCatalog, t as ConfigStore, v as requireApiUrl } from "../ConfigStore-Dusy6glb.mjs";
4
- import { t as logger } from "../Logger-C1Wj6xla.mjs";
5
- import { t as RemoteSkillSource } from "../RemoteSkillSource-qTvRkaNA.mjs";
6
- import { t as ApiClient } from "../ApiClient-CdO4Gamg.mjs";
7
- import { a as NotifyingLlmBackend, i as deferredToolRegistry, n as buildAgent, r as buildSupportingStores, t as buildToolSearch } from "../buildToolSearch-DOb7mx6F.mjs";
2
+ import { A as createTodoStore, D as createGetFileStructureTool, Et as SessionStore, F as createResumeAgentTool, H as buildCliToolList, I as createBackgroundAgentTools, L as createAgentDelegateTool, M as createSkillTool, P as createCoordinateTaskTool, R as FallbackLlmBackend, V as PermissionManager, Z as NoLocalModelsError, at as signInUncheckedHeadlessMessage, c as checkSavedSignIn, f as buildLlmBackend, j as createWriteTodosTool, k as createFindDefinitionTool, l as settleSignInRefresh, s as buildSandbox, tt as SIGN_IN_EXPIRED_HEADLESS, vt as setWebSocketToolExecutor, wt as CheckpointStore, xt as CustomCommandStore } from "../AgentHistoryStore-Bvmcy2kf.mjs";
3
+ import { c as ToolCatalog, t as ConfigStore, v as requireApiUrl } from "../ConfigStore-CP1W86Ui.mjs";
4
+ import { t as logger } from "../Logger-3RbeTZ9o.mjs";
5
+ import { t as RemoteSkillSource } from "../RemoteSkillSource-D_F99yBR.mjs";
6
+ import { t as ApiClient } from "../ApiClient-Yp2LPlX3.mjs";
7
+ import { a as NotifyingLlmBackend, i as deferredToolRegistry, n as buildAgent, r as buildSupportingStores, t as buildToolSearch } from "../buildToolSearch-CqHKSLtG.mjs";
8
8
  import { randomUUID } from "crypto";
9
9
  import { existsSync, realpathSync, statSync } from "fs";
10
10
  import { isAbsolute } from "path";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { T as parseApiUrl, t as ConfigStore, y as resolveApiEndpoint } from "../ConfigStore-Dusy6glb.mjs";
2
+ import { T as parseApiUrl, t as ConfigStore, y as resolveApiEndpoint } from "../ConfigStore-CP1W86Ui.mjs";
3
3
  //#region src/commands/apiCommand.ts
4
4
  /**
5
5
  * External API config command (--api-url / --reset-api)
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { t as version } from "../package-C9pfAdGF.mjs";
3
- import { c as isNpmPrefixWritable, i as fetchLatestVersion, r as compareSemver } from "../updateChecker-BAKb8KWP.mjs";
2
+ import { t as version } from "../package-WlxLVpUb.mjs";
3
+ import { c as isNpmPrefixWritable, i as fetchLatestVersion, r as compareSemver } from "../updateChecker-Boq0RruU.mjs";
4
4
  import { t as checkRipgrep } from "../ripgrepCheck-BmkyTK2i.mjs";
5
5
  import { existsSync } from "fs";
6
6
  import { homedir } from "os";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as ConfigStore } from "../ConfigStore-Dusy6glb.mjs";
2
+ import { t as ConfigStore } from "../ConfigStore-CP1W86Ui.mjs";
3
3
  //#region src/commands/envCommand.ts
4
4
  /**
5
5
  * Environment switching for the `--dev` / `--prod` launch flags.
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import { A as createTodoStore, D as createGetFileStructureTool, Et as SessionStore, F as createResumeAgentTool, H as buildCliToolList, I as createBackgroundAgentTools, L as createAgentDelegateTool, M as createSkillTool, O as createWorkItemTools, P as createCoordinateTaskTool, R as FallbackLlmBackend, U as generateCliTools, V as PermissionManager, _ as createSseBackend, a as loadProjectContext, at as signInUncheckedHeadlessMessage, c as checkSavedSignIn, d as attachLocalModels, g as withSignedOutLocalDefault, gt as wrapTools, h as resolveSignedOutHeadlessModel, i as buildProjectAgentStore, j as createWriteTodosTool, k as createFindDefinitionTool, l as settleSignInRefresh, m as resolveHeadlessModel, n as BackgroundAgentManager, o as McpManager, p as defaultLlmBackendDeps, pt as ReActAgent, r as SubagentOrchestrator, rt as SignedOutCloudBackend, s as buildSandbox, t as AgentHistoryStore, tt as SIGN_IN_EXPIRED_HEADLESS, ut as buildSystemPrompt, vt as setWebSocketToolExecutor, wt as CheckpointStore, xt as CustomCommandStore, yt as classifyCommandRisk } from "../AgentHistoryStore--J3sgO_-.mjs";
3
- import { D as sanitizeTerminalText, c as ToolCatalog, f as toolCategory, l as commandTextOf, t as ConfigStore, v as requireApiUrl } from "../ConfigStore-Dusy6glb.mjs";
4
- import { l as OllamaBackend, u as OpenAICompatibleBackend } from "../dist-CbViwiS9.mjs";
5
- import { t as logger } from "../Logger-C1Wj6xla.mjs";
6
- import { t as RemoteSkillSource } from "../RemoteSkillSource-qTvRkaNA.mjs";
7
- import { r as reconstructTurnBlocks, t as WorkItemsClient } from "../WorkItemsClient-CxNZaOmc.mjs";
8
- import { t as ApiClient } from "../ApiClient-CdO4Gamg.mjs";
2
+ import { A as createTodoStore, D as createGetFileStructureTool, Et as SessionStore, F as createResumeAgentTool, H as buildCliToolList, I as createBackgroundAgentTools, L as createAgentDelegateTool, M as createSkillTool, O as createWorkItemTools, P as createCoordinateTaskTool, R as FallbackLlmBackend, U as generateCliTools, V as PermissionManager, _ as createSseBackend, a as loadProjectContext, at as signInUncheckedHeadlessMessage, c as checkSavedSignIn, d as attachLocalModels, g as withSignedOutLocalDefault, gt as wrapTools, h as resolveSignedOutHeadlessModel, i as buildProjectAgentStore, j as createWriteTodosTool, k as createFindDefinitionTool, l as settleSignInRefresh, m as resolveHeadlessModel, n as BackgroundAgentManager, o as McpManager, p as defaultLlmBackendDeps, pt as ReActAgent, r as SubagentOrchestrator, rt as SignedOutCloudBackend, s as buildSandbox, t as AgentHistoryStore, tt as SIGN_IN_EXPIRED_HEADLESS, ut as buildSystemPrompt, vt as setWebSocketToolExecutor, wt as CheckpointStore, xt as CustomCommandStore, yt as classifyCommandRisk } from "../AgentHistoryStore-Bvmcy2kf.mjs";
3
+ import { D as sanitizeTerminalText, c as ToolCatalog, f as toolCategory, l as commandTextOf, t as ConfigStore, v as requireApiUrl } from "../ConfigStore-CP1W86Ui.mjs";
4
+ import { l as OllamaBackend, u as OpenAICompatibleBackend } from "../dist-BPhZ0dCz.mjs";
5
+ import { t as logger } from "../Logger-3RbeTZ9o.mjs";
6
+ import { t as RemoteSkillSource } from "../RemoteSkillSource-D_F99yBR.mjs";
7
+ import { r as reconstructTurnBlocks, t as WorkItemsClient } from "../WorkItemsClient-D4sFGL9X.mjs";
8
+ import { t as ApiClient } from "../ApiClient-Yp2LPlX3.mjs";
9
9
  import { randomBytes } from "crypto";
10
10
  import { v4 } from "uuid";
11
11
  import { readFile } from "fs/promises";
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { f as PULL_JOB_ACTIVE_STATES, g as PullJobSchema, h as PullJobRequestSchema, m as PullJobActionSchema, o as MODEL_HOST_ROLES, p as PULL_JOB_FINAL_STATES, s as ModelHostHelloSchema } from "../modelHub-BSB6qRFP.mjs";
3
- import { A as curatedLibrary, B as isCuratedListable, E as HuggingFaceHub, F as curatedRunner, G as ollamaLibraryLayers, J as ollamaRefAliases, K as ollamaModelKey, P as curatedPins, U as loadCuratedManifest, W as lockFile, X as ModelFileBusyError, Z as ModelNotFoundError, a as checkApproval, f as licensesChanged, g as probeModelHost, i as OllamaRuntime, o as checkInstalledBlob, q as ollamaPullRef, r as DEFAULT_OLLAMA_URL, s as checkInstalledDigest, v as sameRepo } from "../dist-Citbv0y0.mjs";
3
+ import { A as curatedLibrary, B as isCuratedListable, E as HuggingFaceHub, F as curatedRunner, G as ollamaLibraryLayers, J as ollamaRefAliases, K as ollamaModelKey, P as curatedPins, U as loadCuratedManifest, W as lockFile, X as ModelFileBusyError, Z as ModelNotFoundError, a as checkApproval, f as licensesChanged, g as probeModelHost, i as OllamaRuntime, o as checkInstalledBlob, q as ollamaPullRef, r as DEFAULT_OLLAMA_URL, s as checkInstalledDigest, v as sameRepo } from "../dist-K7a9yOUb.mjs";
4
4
  import { join } from "node:path";
5
5
  import { constants } from "node:fs";
6
6
  import { z as z$1 } from "zod";
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { n as McpToggleRefusedError, t as ConfigStore } from "../ConfigStore-Dusy6glb.mjs";
3
- import { t as version } from "../package-C9pfAdGF.mjs";
2
+ import { n as McpToggleRefusedError, t as ConfigStore } from "../ConfigStore-CP1W86Ui.mjs";
3
+ import { t as version } from "../package-WlxLVpUb.mjs";
4
4
  //#region src/commands/mcpCommand.ts
5
5
  /**
6
6
  * External MCP commands (b4m mcp list, b4m mcp add, etc.)
@@ -70,7 +70,7 @@ async function handleMcpCommand(subcommand, argv) {
70
70
  await handleDisable(argv.name, configStore);
71
71
  break;
72
72
  case "serve": {
73
- const { handleMcpServeCommand } = await import("../serve-8wyGb8of.mjs");
73
+ const { handleMcpServeCommand } = await import("../serve-DpsV0mag.mjs");
74
74
  await handleMcpServeCommand({
75
75
  http: Boolean(argv.http),
76
76
  local: Boolean(argv.local),
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { t as ConfigStore, v as requireApiUrl } from "../ConfigStore-Dusy6glb.mjs";
3
- import { t as ApiClient } from "../ApiClient-CdO4Gamg.mjs";
2
+ import { t as ConfigStore, v as requireApiUrl } from "../ConfigStore-CP1W86Ui.mjs";
3
+ import { t as ApiClient } from "../ApiClient-Yp2LPlX3.mjs";
4
4
  import path from "node:path";
5
5
  import { z as z$1 } from "zod";
6
6
  import { createHash } from "node:crypto";
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import { t as ConfigStore } from "../ConfigStore-Dusy6glb.mjs";
3
- import "../Logger-C1Wj6xla.mjs";
2
+ import { t as ConfigStore } from "../ConfigStore-CP1W86Ui.mjs";
3
+ import "../Logger-3RbeTZ9o.mjs";
4
4
  import { S as vramNeedsLlamaServer, l as OLLAMA_SKIPS_INTEL_IGPU } from "../modelHub-BSB6qRFP.mjs";
5
- import { $ as RuntimeHttpError, E as HuggingFaceHub, F as curatedRunner, G as ollamaLibraryLayers, H as isPermissiveEntry, I as curatedSource, M as curatedParamsLabel, N as curatedPicks, T as HUGGING_FACE_SSH_KEYS_URL, V as isHubRepoId, h as probeHardware, j as curatedListing, z as isAbliteratedModel } from "../dist-Citbv0y0.mjs";
6
- import { $ as gatedMessage, A as serverRuntimeId, C as discoverSshServers, Ct as withDefaultOllamaPort, D as probeServer, E as parseSshPort, J as abortable, K as REF_ISSUES, M as toolsOffHint, N as transportVerdict, O as probeToolSupport, P as usualPorts, Q as formatBytes, T as parseServerAddress, U as CancelledError, W as NOT_RECOMMENDED_LABEL, X as clean, Y as buildTag, Z as findInstalledModel, _t as resolveRuntimeTarget, a as needsCredential, at as licenseFor, b as answersWithoutCredentials, bt as shortDigest, c as requireManageable, ct as pickBuild, d as serverBaseUrl, dt as removeInstalled, et as hadTagBefore, f as serverFetch, ft as requireInstalledReviewed, g as withSignal, gt as requireUnchangedManifest, h as validateSecret, ht as requireUnchangedLicenses, i as loginHint, j as sshDestinationProblem, k as scopeOfIp, l as resolveServerTarget, lt as planPull, m as unusableStatus, mt as requireReviewedLayers, n as findModelServer, nt as hubAccessMessage, o as noSuchServer, ot as licenseName, p as serverRedactor, pt as requireRemovable, q as UNPULLABLE, r as loadModelServers, rt as installedUncheckedMessage, s as productLabel, st as listInstalled, t as defaultOn, tt as hiddenAbliteratedMessage, u as serverAddressLabel, ut as rankSearchHits, v as SSH_PORT_PROBLEM, vt as runtimeLabel, w as leastTrusted, x as createSshFetch, xt as readOllamaManifest, y as SSH_PROBE_TIMEOUT_MS, yt as sameModelName, z as localModelId } from "../modelServers-BaegigV-.mjs";
7
- import { a as machineLabel, i as fitForPlan, n as LLAMA_SERVER_VRAM_HELP, o as machineReader, r as fitForHubBuild, s as createCliCuratedList, t as FIT_LABELS } from "../fit-CVWDiavv.mjs";
5
+ import { $ as RuntimeHttpError, E as HuggingFaceHub, F as curatedRunner, G as ollamaLibraryLayers, H as isPermissiveEntry, I as curatedSource, M as curatedParamsLabel, N as curatedPicks, T as HUGGING_FACE_SSH_KEYS_URL, V as isHubRepoId, h as probeHardware, j as curatedListing, z as isAbliteratedModel } from "../dist-K7a9yOUb.mjs";
6
+ import { $ as gatedMessage, A as serverRuntimeId, C as discoverSshServers, Ct as withDefaultOllamaPort, D as probeServer, E as parseSshPort, J as abortable, K as REF_ISSUES, M as toolsOffHint, N as transportVerdict, O as probeToolSupport, P as usualPorts, Q as formatBytes, T as parseServerAddress, U as CancelledError, W as NOT_RECOMMENDED_LABEL, X as clean, Y as buildTag, Z as findInstalledModel, _t as resolveRuntimeTarget, a as needsCredential, at as licenseFor, b as answersWithoutCredentials, bt as shortDigest, c as requireManageable, ct as pickBuild, d as serverBaseUrl, dt as removeInstalled, et as hadTagBefore, f as serverFetch, ft as requireInstalledReviewed, g as withSignal, gt as requireUnchangedManifest, h as validateSecret, ht as requireUnchangedLicenses, i as loginHint, j as sshDestinationProblem, k as scopeOfIp, l as resolveServerTarget, lt as planPull, m as unusableStatus, mt as requireReviewedLayers, n as findModelServer, nt as hubAccessMessage, o as noSuchServer, ot as licenseName, p as serverRedactor, pt as requireRemovable, q as UNPULLABLE, r as loadModelServers, rt as installedUncheckedMessage, s as productLabel, st as listInstalled, t as defaultOn, tt as hiddenAbliteratedMessage, u as serverAddressLabel, ut as rankSearchHits, v as SSH_PORT_PROBLEM, vt as runtimeLabel, w as leastTrusted, x as createSshFetch, xt as readOllamaManifest, y as SSH_PROBE_TIMEOUT_MS, yt as sameModelName, z as localModelId } from "../modelServers-B7zI5XnO.mjs";
7
+ import { a as machineLabel, i as fitForPlan, n as LLAMA_SERVER_VRAM_HELP, o as machineReader, r as fitForHubBuild, s as createCliCuratedList, t as FIT_LABELS } from "../fit-BOnDsgbk.mjs";
8
8
  import { createInterface } from "readline";
9
9
  import { lookup } from "dns/promises";
10
10
  import { Writable } from "stream";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { D as sanitizeTerminalText, t as ConfigStore } from "../ConfigStore-Dusy6glb.mjs";
2
+ import { D as sanitizeTerminalText, t as ConfigStore } from "../ConfigStore-CP1W86Ui.mjs";
3
3
  import { n as getDefaultPluginsDir, r as isFeatureEnabled, t as PluginStore } from "../PluginStore-DwvOJ-G3.mjs";
4
4
  import { promises } from "fs";
5
5
  import path from "path";
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { t as ConfigStore, v as requireApiUrl } from "../ConfigStore-Dusy6glb.mjs";
3
- import { nn as splitSkillMdFrontmatter, tn as readSkillMdSourceUrl } from "../Logger-C1Wj6xla.mjs";
4
- import { r as isReservedCommandName, t as RemoteSkillSource } from "../RemoteSkillSource-qTvRkaNA.mjs";
5
- import { t as ApiClient } from "../ApiClient-CdO4Gamg.mjs";
2
+ import { t as ConfigStore, v as requireApiUrl } from "../ConfigStore-CP1W86Ui.mjs";
3
+ import { en as readSkillMdSourceUrl, tn as splitSkillMdFrontmatter } from "../Logger-3RbeTZ9o.mjs";
4
+ import { r as isReservedCommandName, t as RemoteSkillSource } from "../RemoteSkillSource-D_F99yBR.mjs";
5
+ import { t as ApiClient } from "../ApiClient-Yp2LPlX3.mjs";
6
6
  import { promises } from "fs";
7
7
  import os from "os";
8
8
  import path from "path";
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { t as version } from "../package-C9pfAdGF.mjs";
3
- import { a as forceCheckForUpdate, c as isNpmPrefixWritable, d as shouldAttemptAutoUpdate, l as readCachedUpdate, n as REEXEC_GUARD_ENV, o as getAutoUpdatePreference, t as INSTALL_CMD, u as setAutoUpdatePreference } from "../updateChecker-BAKb8KWP.mjs";
2
+ import { t as version } from "../package-WlxLVpUb.mjs";
3
+ import { a as forceCheckForUpdate, c as isNpmPrefixWritable, d as shouldAttemptAutoUpdate, l as readCachedUpdate, n as REEXEC_GUARD_ENV, o as getAutoUpdatePreference, t as INSTALL_CMD, u as setAutoUpdatePreference } from "../updateChecker-Boq0RruU.mjs";
4
4
  import { t as checkRipgrep } from "../ripgrepCheck-BmkyTK2i.mjs";
5
5
  import { execSync, spawnSync } from "child_process";
6
6
  import { createInterface } from "readline";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { $ as TTS_DEFAULT_MODEL, B as MODEL_INFO_FIELD_GROUP_OF, Et as isUserInitiatedAbort, G as OpenAIEmbeddingModel, H as ModelBackend, Lt as stripDeliveredArtifactBlocks, M as EMBEDDING_MODEL_IDS, Mt as resolveSettingDefinition, Pt as servableEmbeddingDimensions, Q as SupportedFabFileMimeTypes, Rt as stripToolArtifactMarkup, T as CompletionReasoningEffortSchema, Tt as isSupportedFabFileMimeType, W as OllamaEmbeddingModel, Wt as visibleReplyText, _t as hasDeliverablePinnedArtifact, bt as isExpectedToolError, d as ARTIFACT_REMOVED_PLACEHOLDER, dt as filterToolArtifactMarkup, et as TTS_MAX_INPUT_CHARS, f as AdminAiStoredConfigSchema, g as AudioMimeType, ht as getQuestErrorCode, in as WEBSITE_URL, j as EMBEDDING_MODEL_CATALOG, lt as createThinkMarkerEscaper, pt as getEmbeddingModelCapabilities, q as PermissionDeniedError, rn as APP_NAME, rt as VoyageAIEmbeddingModel, u as ARTIFACT_DELIVERED_PLACEHOLDER, ut as escapeThinkMarkers, v as BedrockEmbeddingModel, w as ChatModels, wt as isSupportedEmbeddingModel, x as CONTEXT_WINDOW_SAFETY_BUFFER_TOKENS, yt as isEnforceCreditsLocked } from "./Logger-C1Wj6xla.mjs";
2
+ import { $ as SupportedFabFileMimeTypes, Ct as isSupportedEmbeddingModel, E as CompletionReasoningEffortSchema, G as OllamaEmbeddingModel, It as stripDeliveredArtifactBlocks, J as PermissionDeniedError, K as OpenAIEmbeddingModel, Lt as stripToolArtifactMarkup, M as EMBEDDING_MODEL_CATALOG, N as EMBEDDING_MODEL_IDS, Nt as servableEmbeddingDimensions, S as CONTEXT_WINDOW_SAFETY_BUFFER_TOKENS, T as ChatModels, Tt as isUserInitiatedAbort, U as ModelBackend, Ut as visibleReplyText, V as MODEL_INFO_FIELD_GROUP_OF, _ as AudioMimeType, ct as createThinkMarkerEscaper, d as ARTIFACT_REMOVED_PLACEHOLDER, f as AdminAiStoredConfigSchema, ft as getEmbeddingModelCapabilities, gt as hasDeliverablePinnedArtifact, jt as resolveSettingDefinition, lt as escapeThinkMarkers, mt as getQuestErrorCode, nn as APP_NAME, nt as VoyageAIEmbeddingModel, p as AiAccessRefusedError, rn as WEBSITE_URL, u as ARTIFACT_DELIVERED_PLACEHOLDER, ut as filterToolArtifactMarkup, vt as isEnforceCreditsLocked, wt as isSupportedFabFileMimeType, y as BedrockEmbeddingModel, yt as isExpectedToolError } from "./Logger-3RbeTZ9o.mjs";
3
3
  import { b as ollamaNumCtx } from "./modelHub-BSB6qRFP.mjs";
4
4
  import "crypto";
5
5
  import path from "path";
@@ -7,7 +7,7 @@ import { v4 } from "uuid";
7
7
  import { z as z$1 } from "zod";
8
8
  import "axios";
9
9
  import "node:crypto";
10
- import { promisify } from "util";
10
+ import { promisify as promisify$1 } from "util";
11
11
  import dns from "dns";
12
12
  import http from "http";
13
13
  import https from "https";
@@ -444,8 +444,8 @@ var Logger = class Logger {
444
444
  blue: `\x1b[34m${args.join(" ")}\x1b[0m`
445
445
  });
446
446
  };
447
- promisify(dns.resolve4);
448
- promisify(dns.resolve6);
447
+ promisify$1(dns.resolve4);
448
+ promisify$1(dns.resolve6);
449
449
  /**
450
450
  * Check if an IPv4 address is in a private/internal range.
451
451
  */
@@ -750,12 +750,13 @@ CompletionReasoningEffortSchema.options;
750
750
  //#region ../../b4m-core/llm-adapters/dist/index.mjs
751
751
  /**
752
752
  * A tool failure that must end the turn rather than be fed back to the model as a
753
- * recoverable observation: a declined tool (PermissionDeniedError) or an out-of-credits
754
- * error (tagged via `getQuestErrorCode`), neither of which any retry can satisfy.
753
+ * recoverable observation: a declined tool (PermissionDeniedError), an out-of-credits
754
+ * error (tagged via `getQuestErrorCode`) or an account that lost AI access mid-turn
755
+ * (AiAccessRefusedError), none of which any retry can satisfy.
755
756
  * Also exempts these from the services tool failure guard (toolFailureGuard.ts).
756
757
  */
757
758
  function isTerminalToolError(error) {
758
- return error instanceof PermissionDeniedError || getQuestErrorCode(error) !== void 0;
759
+ return error instanceof PermissionDeniedError || error instanceof AiAccessRefusedError || getQuestErrorCode(error) !== void 0;
759
760
  }
760
761
  /**
761
762
  * Thrown by the services tool failure guard (toolFailureGuard.ts) in place of running a tool that
@@ -3872,10 +3873,6 @@ const HEX_GROUP = "[0-9a-f]{1,4}";
3872
3873
  const HEX_RUN = `${HEX_GROUP}(?::${HEX_GROUP}){0,6}`;
3873
3874
  new RegExp(`(?:(?<![\\w:])|(?<=(?<![\\w:])[0-9a-f]*[g-z_]\\w*:))(?:(?:${HEX_GROUP}:){7}${HEX_GROUP}|${HEX_RUN}::(?:${HEX_RUN})?|::${HEX_RUN})(?::\\[IP\\])?(?![\\w:])`, "gi");
3874
3875
  ChatModels.GPT5, ChatModels.GPT5_MINI, ChatModels.GPT5_NANO, ChatModels.GPT5_1, ChatModels.GPT5_2, ChatModels.GPT5_4, ChatModels.GPT5_4_MINI, ChatModels.GPT5_4_NANO, ChatModels.GPT5_5, ChatModels.GPT5_6_SOL, ChatModels.GPT5_6_LUNA, ChatModels.GPT5_6_TERRA;
3875
- TTS_DEFAULT_MODEL.openai;
3876
- TTS_MAX_INPUT_CHARS.openai;
3877
- TTS_MAX_INPUT_CHARS.elevenlabs;
3878
- TTS_DEFAULT_MODEL.elevenlabs;
3879
3876
  //#endregion
3880
3877
  //#region ../sdk/dist/index.mjs
3881
3878
  /**
@@ -3983,6 +3980,10 @@ const operations = {
3983
3980
  method: "POST",
3984
3981
  path: "/api/v1/music-generations/{id}/cancel"
3985
3982
  },
3983
+ cancelSceneComposition: {
3984
+ method: "POST",
3985
+ path: "/api/v1/scene-compositions/{id}/cancel"
3986
+ },
3986
3987
  cancelVideoGeneration: {
3987
3988
  method: "POST",
3988
3989
  path: "/api/v1/video-generations/{id}/cancel"
@@ -4043,6 +4044,10 @@ const operations = {
4043
4044
  method: "POST",
4044
4045
  path: "/api/v1/projects/{id}/invites"
4045
4046
  },
4047
+ createSceneComposition: {
4048
+ method: "POST",
4049
+ path: "/api/v1/scene-compositions"
4050
+ },
4046
4051
  createSession: {
4047
4052
  method: "POST",
4048
4053
  path: "/api/v1/sessions"
@@ -4119,6 +4124,10 @@ const operations = {
4119
4124
  method: "POST",
4120
4125
  path: "/api/ai/v1/tools"
4121
4126
  },
4127
+ fetchWebPage: {
4128
+ method: "POST",
4129
+ path: "/api/v1/tools/web-fetch"
4130
+ },
4122
4131
  generateAgentAvatar: {
4123
4132
  method: "POST",
4124
4133
  path: "/api/v1/agents/{id}/generate-avatar"
@@ -4175,10 +4184,18 @@ const operations = {
4175
4184
  method: "GET",
4176
4185
  path: "/api/v1/client-config"
4177
4186
  },
4187
+ getCompletionRunUsage: {
4188
+ method: "GET",
4189
+ path: "/api/v1/completion-runs/{runId}/usage"
4190
+ },
4178
4191
  getCreditBalance: {
4179
4192
  method: "GET",
4180
4193
  path: "/api/v1/credits"
4181
4194
  },
4195
+ getCurrentWeather: {
4196
+ method: "POST",
4197
+ path: "/api/v1/tools/weather"
4198
+ },
4182
4199
  getDataLake: {
4183
4200
  method: "GET",
4184
4201
  path: "/api/v1/data-lakes/{id}"
@@ -4211,10 +4228,18 @@ const operations = {
4211
4228
  method: "GET",
4212
4229
  path: "/api/v1/projects/{id}"
4213
4230
  },
4231
+ getPublicClientConfig: {
4232
+ method: "GET",
4233
+ path: "/api/v1/client-config/public"
4234
+ },
4214
4235
  getQuest: {
4215
4236
  method: "GET",
4216
4237
  path: "/api/v1/quests/{id}"
4217
4238
  },
4239
+ getSceneComposition: {
4240
+ method: "GET",
4241
+ path: "/api/v1/scene-compositions/{id}"
4242
+ },
4218
4243
  getSession: {
4219
4244
  method: "GET",
4220
4245
  path: "/api/sessions/{id}"
@@ -4279,6 +4304,10 @@ const operations = {
4279
4304
  method: "GET",
4280
4305
  path: "/api/v1/files"
4281
4306
  },
4307
+ listImageModels: {
4308
+ method: "GET",
4309
+ path: "/api/v1/image-models"
4310
+ },
4282
4311
  listModels: {
4283
4312
  method: "GET",
4284
4313
  path: "/api/v1/models"
@@ -4319,6 +4348,10 @@ const operations = {
4319
4348
  method: "GET",
4320
4349
  path: "/api/v1/quests/{id}/files"
4321
4350
  },
4351
+ listSceneCompositions: {
4352
+ method: "GET",
4353
+ path: "/api/v1/scene-compositions"
4354
+ },
4322
4355
  listSessionFiles: {
4323
4356
  method: "GET",
4324
4357
  path: "/api/v1/sessions/{id}/files"
@@ -4415,6 +4448,10 @@ const operations = {
4415
4448
  method: "POST",
4416
4449
  path: "/api/v1/sessions/semantic-search"
4417
4450
  },
4451
+ searchWeb: {
4452
+ method: "POST",
4453
+ path: "/api/v1/tools/web-search"
4454
+ },
4418
4455
  sendChatMessage: {
4419
4456
  method: "POST",
4420
4457
  path: "/api/chat"
@@ -391,7 +391,7 @@ async function onDisk(runtimeId, path, operation, kind = "write") {
391
391
  throw storageError(runtimeId, path, error, kind);
392
392
  }
393
393
  }
394
- function parse(text) {
394
+ function parse$1(text) {
395
395
  try {
396
396
  const holder = JSON.parse(text ?? "");
397
397
  return {
@@ -413,7 +413,7 @@ async function readHolder(lockPath) {
413
413
  text,
414
414
  ino: info.ino,
415
415
  mtimeMs: Number(info.mtimeMs),
416
- pid: parse(text).pid
416
+ pid: parse$1(text).pid
417
417
  };
418
418
  } catch (error) {
419
419
  if (error.code === "ENOENT") return null;
@@ -544,7 +544,7 @@ function holding(lockPath, path, runtimeId, nonce, options) {
544
544
  const check = async () => {
545
545
  if (lost) return "lost";
546
546
  try {
547
- if (parse(await readFile(lockPath, "utf8")).nonce !== nonce) lost = true;
547
+ if (parse$1(await readFile(lockPath, "utf8")).nonce !== nonce) lost = true;
548
548
  } catch (error) {
549
549
  if (error.code === "ENOENT") lost = true;
550
550
  else if (Date.now() - confirmedAt <= options.staleMs) return { error };
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import "./Logger-C1Wj6xla.mjs";
2
+ import "./Logger-3RbeTZ9o.mjs";
3
3
  import { S as vramNeedsLlamaServer, b as ollamaNumCtx, v as estimateFitFromSize } from "./modelHub-BSB6qRFP.mjs";
4
- import { t as version } from "./package-C9pfAdGF.mjs";
5
- import { D as PRODUCTION_CURATED_KEYS, U as loadCuratedManifest, _ as resolveCuratedUrl, h as probeHardware, n as CuratedStore, t as CuratedListSource, u as curatedStoreRoot, w as BUNDLED_CURATED_JSON_TEXT } from "./dist-Citbv0y0.mjs";
6
- import { Q as formatBytes, it as largestProjectorBytes } from "./modelServers-BaegigV-.mjs";
4
+ import { t as version } from "./package-WlxLVpUb.mjs";
5
+ import { D as PRODUCTION_CURATED_KEYS, U as loadCuratedManifest, _ as resolveCuratedUrl, h as probeHardware, n as CuratedStore, t as CuratedListSource, u as curatedStoreRoot, w as BUNDLED_CURATED_JSON_TEXT } from "./dist-K7a9yOUb.mjs";
6
+ import { Q as formatBytes, it as largestProjectorBytes } from "./modelServers-B7zI5XnO.mjs";
7
7
  import path from "node:path";
8
8
  import { homedir } from "node:os";
9
9
  //#region src/models/curatedList.ts
@@ -5,7 +5,7 @@ import path from "path";
5
5
  import { stat } from "fs/promises";
6
6
  import { execFile } from "child_process";
7
7
  import { promisify } from "util";
8
- //#region ../../b4m-core/services/dist/grepSearch-BgoOOwGe.mjs
8
+ //#region ../../b4m-core/services/dist/grepSearch-CLtEqT4j.mjs
9
9
  const execFileAsync = promisify(execFile);
10
10
  /** Cached ripgrep binary path after first resolution */
11
11
  let cachedRgPath = null;
@@ -21,7 +21,7 @@ async function getRipgrepPath() {
21
21
  try {
22
22
  ({rgPath} = await import("@vscode/ripgrep"));
23
23
  } catch {
24
- throw new Error("ripgrep is not available. Install the optional dependency: pnpm add @vscode/ripgrep --filter @bike4mind/services");
24
+ throw new Error("ripgrep is not available. Install the optional dependency: pnpm add @vscode/ripgrep --filter @bike4mind/services-core");
25
25
  }
26
26
  if (!rgPath || !existsSync(rgPath)) throw new Error(`ripgrep binary not found at ${rgPath ?? "<unresolved>"}. Ensure @vscode/ripgrep platform optional dependencies are installed for ${process.platform}-${process.arch}.`);
27
27
  cachedRgPath = rgPath;