@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.
- package/dist/{AgentHistoryStore-CjGVgxLR.mjs → AgentHistoryStore-DW6BBbVj.mjs} +624 -114
- package/dist/{ApiClient-SVXSI3HI.mjs → ApiClient-D4bDuWXg.mjs} +3 -3
- package/dist/{BubblewrapRuntime-CTc_KPnd.mjs → BubblewrapRuntime-D3EO5Y0C.mjs} +2 -2
- package/dist/{ConfigStore-B2Dy-PT9.mjs → ConfigStore-BuLA_-uZ.mjs} +17 -1
- package/dist/ConfigStore-DdqxfmDr.mjs +2 -0
- package/dist/{Logger-7MmrU5w6.mjs → Logger-CjaYx85U.mjs} +1560 -805
- package/dist/{RemoteSkillSource-D_F99yBR.mjs → RemoteSkillSource-HqoLRV56.mjs} +2 -6
- package/dist/{SandboxOrchestrator-CeDwd6Fj.mjs → SandboxOrchestrator-yORi2eFV.mjs} +1 -1
- package/dist/{SandboxRuntimeAdapter-CFEIywKt.mjs → SandboxRuntimeAdapter-BjJwJNfg.mjs} +1 -1
- package/dist/{SandboxRuntimeAdapter-CjNDzYSf.mjs → SandboxRuntimeAdapter-BmkaFzqU.mjs} +2 -2
- package/dist/{SeatbeltRuntime-CQItj-F1.mjs → SeatbeltRuntime-CyZNmFwD.mjs} +2 -2
- package/dist/{WorkItemsClient-C9_pjHCo.mjs → WorkItemsClient-xmo0DrCm.mjs} +1 -1
- package/dist/{buildToolSearch-8xyBwXRx.mjs → buildToolSearch-CXxEtVKc.mjs} +2 -2
- package/dist/commands/acpCommand.mjs +6 -6
- package/dist/commands/apiCommand.mjs +1 -1
- package/dist/commands/doctorCommand.mjs +2 -2
- package/dist/commands/envCommand.mjs +1 -1
- package/dist/commands/headlessCommand.mjs +7 -7
- package/dist/commands/mcpCommand.mjs +3 -3
- package/dist/commands/mirrorCommand.mjs +2 -2
- package/dist/commands/modelsCommand.mjs +4 -4
- package/dist/commands/pluginCommand.mjs +1 -1
- package/dist/commands/skillsCommand.mjs +4 -4
- package/dist/commands/updateCommand.mjs +2 -2
- package/dist/{createFile-B8bur5Rb-CVzCarEA.mjs → createFile-CPKmd6Uf-Bk-3V2T3.mjs} +3 -3
- package/dist/{deleteFile-9B3gW_Nb-DG2sovIl.mjs → deleteFile-CD_xQ7Y6-C1X4Ievb.mjs} +17 -4
- package/dist/{dist-DHgMhdzV.mjs → dist-DsMzCRLX.mjs} +96 -34
- package/dist/{fit-D8Quui6j.mjs → fit-C9eLTDcR.mjs} +3 -3
- package/dist/{globFiles-CwJ8qmYo-BR5b2KvO.mjs → globFiles-CoapsO8G-CpvQo-R2.mjs} +9 -5
- package/dist/{grepSearch-CLtEqT4j-BnKPtNWr.mjs → grepSearch-DeH7M2e7-BIvo-yNy.mjs} +2 -2
- package/dist/index.mjs +12 -417
- package/dist/{modelServers-JsKBm7Wn.mjs → modelServers-DeOGFwLi.mjs} +1 -1
- package/dist/{package-r_xumsGY.mjs → package-CvffLo0I.mjs} +1 -1
- package/dist/{pathValidation-BRqf4HFX-CHwtwp3O.mjs → pathValidation-C4ADzpUR-BPIpINwZ.mjs} +36 -12
- package/dist/{serve-BM9PKMLH.mjs → serve-tmC__JNj.mjs} +6 -6
- package/dist/{updateChecker-BOqaLeZU.mjs → updateChecker-U4AfrPKj.mjs} +1 -1
- package/package.json +10 -11
- package/dist/ConfigStore-zlY0PikB.mjs +0 -2
|
@@ -261,11 +261,7 @@ function isBuiltInCommand(name) {
|
|
|
261
261
|
* hearth); a drift guard in commands.test.ts derives the names from those modules
|
|
262
262
|
* and fails if this list drifts.
|
|
263
263
|
*/
|
|
264
|
-
const RESERVED_FEATURE_COMMANDS = [
|
|
265
|
-
"tavern",
|
|
266
|
-
"quest",
|
|
267
|
-
"hearth"
|
|
268
|
-
];
|
|
264
|
+
const RESERVED_FEATURE_COMMANDS = ["tavern", "hearth"];
|
|
269
265
|
/**
|
|
270
266
|
* Checks if a command name is reserved (a built-in OR a first-party feature command).
|
|
271
267
|
* Use this, not isBuiltInCommand, when deciding whether an external skill may register.
|
|
@@ -380,7 +376,7 @@ var RemoteSkillSource = class {
|
|
|
380
376
|
/**
|
|
381
377
|
* Map server skills to `CustomCommand`, dropping any that must not register:
|
|
382
378
|
* - a name that shadows a built-in OR a first-party feature slash command
|
|
383
|
-
* (tavern/
|
|
379
|
+
* (tavern/hearth), which would otherwise hijack the command, and
|
|
384
380
|
* - a foreign-owned skill (a `userId` other than the current user's), which is
|
|
385
381
|
* only visible cross-account via `isGlobalRead`, and
|
|
386
382
|
* - a Skill Market import: the user owns the copy but someone else wrote it, and local commands run
|
|
@@ -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-
|
|
3
|
+
import { c as resolveSandboxPath } from "./SandboxRuntimeAdapter-BmkaFzqU.mjs";
|
|
4
4
|
import path from "path";
|
|
5
5
|
//#region src/sandbox/SandboxOrchestrator.ts
|
|
6
6
|
var SandboxOrchestrator = class {
|
|
@@ -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-
|
|
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-BmkaFzqU.mjs";
|
|
@@ -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-
|
|
181
|
+
const { SeatbeltRuntime } = await import("./SeatbeltRuntime-CyZNmFwD.mjs");
|
|
182
182
|
const runtime = new SeatbeltRuntime();
|
|
183
183
|
return runtime.isAvailable() ? runtime : null;
|
|
184
184
|
}
|
|
185
|
-
const { BubblewrapRuntime } = await import("./BubblewrapRuntime-
|
|
185
|
+
const { BubblewrapRuntime } = await import("./BubblewrapRuntime-D3EO5Y0C.mjs");
|
|
186
186
|
const runtime = new BubblewrapRuntime();
|
|
187
187
|
return runtime.isAvailable() ? runtime : null;
|
|
188
188
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as logger } from "./Logger-
|
|
3
|
-
import { a as getContainerSocketPaths, c as resolveSandboxPath, o as getProtectedWorkspacePaths, s as isBinaryAvailable, t as assertProxyPort } from "./SandboxRuntimeAdapter-
|
|
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 { 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 {
|
|
2
|
+
import { Zt as tokenEstimateMultiplier } from "./Logger-CjaYx85U.mjs";
|
|
3
3
|
import { get_encoding } from "tiktoken";
|
|
4
4
|
//#region ../../b4m-core/utils/dist/calibratedTokenizer.mjs
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { F as generateCliTools, a as loadProjectContext, at as ReActAgent, ct as wrapTools, ft as getPlanModeFilePath, i as buildProjectAgentStore, it as DeferredToolRegistry, n as BackgroundAgentManager, nt as buildSystemPrompt, o as McpManager, ot as createToolSearchTool, r as SubagentOrchestrator, t as AgentHistoryStore } from "./AgentHistoryStore-
|
|
3
|
-
import {
|
|
2
|
+
import { F as generateCliTools, a as loadProjectContext, at as ReActAgent, ct as wrapTools, ft as getPlanModeFilePath, i as buildProjectAgentStore, it as DeferredToolRegistry, n as BackgroundAgentManager, nt as buildSystemPrompt, o as McpManager, ot as createToolSearchTool, r as SubagentOrchestrator, t as AgentHistoryStore } from "./AgentHistoryStore-DW6BBbVj.mjs";
|
|
3
|
+
import { pt as completionsSupportsToolSearch, t as logger } from "./Logger-CjaYx85U.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 FallbackLlmBackend, D as createResumeAgentTool, E as createCoordinateTaskTool, N as PermissionManager, O as createBackgroundAgentTools, P as buildCliToolList, S as createWriteTodosTool, U as NoLocalModelsError, Z as signInUncheckedHeadlessMessage, b as createFindDefinitionTool, c as checkSavedSignIn, f as buildLlmBackend, gt as CheckpointStore, k as createAgentDelegateTool, l as settleSignInRefresh, pt as CustomCommandStore, q as SIGN_IN_EXPIRED_HEADLESS, s as buildSandbox, ut as setWebSocketToolExecutor, v as createGetFileStructureTool, vt as SessionStore, w as createSkillTool, x as createTodoStore } from "../AgentHistoryStore-
|
|
3
|
-
import { c as ToolCatalog, t as ConfigStore, v as requireApiUrl } from "../ConfigStore-
|
|
4
|
-
import {
|
|
5
|
-
import { t as RemoteSkillSource } from "../RemoteSkillSource-
|
|
6
|
-
import { t as ApiClient } from "../ApiClient-
|
|
7
|
-
import { a as NotifyingLlmBackend, i as deferredToolRegistry, n as buildAgent, r as buildSupportingStores, t as buildToolSearch } from "../buildToolSearch-
|
|
2
|
+
import { A as FallbackLlmBackend, D as createResumeAgentTool, E as createCoordinateTaskTool, N as PermissionManager, O as createBackgroundAgentTools, P as buildCliToolList, S as createWriteTodosTool, U as NoLocalModelsError, Z as signInUncheckedHeadlessMessage, b as createFindDefinitionTool, c as checkSavedSignIn, f as buildLlmBackend, gt as CheckpointStore, k as createAgentDelegateTool, l as settleSignInRefresh, pt as CustomCommandStore, q as SIGN_IN_EXPIRED_HEADLESS, s as buildSandbox, ut as setWebSocketToolExecutor, v as createGetFileStructureTool, vt as SessionStore, w as createSkillTool, x as createTodoStore } from "../AgentHistoryStore-DW6BBbVj.mjs";
|
|
3
|
+
import { c as ToolCatalog, t as ConfigStore, v as requireApiUrl } from "../ConfigStore-BuLA_-uZ.mjs";
|
|
4
|
+
import { mt as createMutex, t as logger } from "../Logger-CjaYx85U.mjs";
|
|
5
|
+
import { t as RemoteSkillSource } from "../RemoteSkillSource-HqoLRV56.mjs";
|
|
6
|
+
import { t as ApiClient } from "../ApiClient-D4bDuWXg.mjs";
|
|
7
|
+
import { a as NotifyingLlmBackend, i as deferredToolRegistry, n as buildAgent, r as buildSupportingStores, t as buildToolSearch } from "../buildToolSearch-CXxEtVKc.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-
|
|
2
|
+
import { T as parseApiUrl, t as ConfigStore, y as resolveApiEndpoint } from "../ConfigStore-BuLA_-uZ.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-
|
|
3
|
-
import { c as isNpmPrefixWritable, i as fetchLatestVersion, r as compareSemver } from "../updateChecker-
|
|
2
|
+
import { t as version } from "../package-CvffLo0I.mjs";
|
|
3
|
+
import { c as isNpmPrefixWritable, i as fetchLatestVersion, r as compareSemver } from "../updateChecker-U4AfrPKj.mjs";
|
|
4
4
|
import { t as checkRipgrep } from "../ripgrepCheck-BmkyTK2i.mjs";
|
|
5
5
|
import { existsSync } from "fs";
|
|
6
6
|
import { homedir } from "os";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { A as FallbackLlmBackend, D as createResumeAgentTool, E as createCoordinateTaskTool, F as generateCliTools, N as PermissionManager, O as createBackgroundAgentTools, P as buildCliToolList, S as createWriteTodosTool, Y as SignedOutCloudBackend, Z as signInUncheckedHeadlessMessage, _ as createSseBackend, a as loadProjectContext, at as ReActAgent, b as createFindDefinitionTool, c as checkSavedSignIn, ct as wrapTools, d as attachLocalModels, dt as classifyCommandRisk, g as withSignedOutLocalDefault, gt as CheckpointStore, h as resolveSignedOutHeadlessModel, i as buildProjectAgentStore, k as createAgentDelegateTool, l as settleSignInRefresh, m as resolveHeadlessModel, n as BackgroundAgentManager, nt as buildSystemPrompt, o as McpManager, p as defaultLlmBackendDeps, pt as CustomCommandStore, q as SIGN_IN_EXPIRED_HEADLESS, r as SubagentOrchestrator, s as buildSandbox, t as AgentHistoryStore, ut as setWebSocketToolExecutor, v as createGetFileStructureTool, vt as SessionStore, w as createSkillTool, x as createTodoStore, y as createWorkItemTools } from "../AgentHistoryStore-
|
|
3
|
-
import { D as sanitizeTerminalText, c as ToolCatalog, f as toolCategory, l as commandTextOf, t as ConfigStore, v as requireApiUrl } from "../ConfigStore-
|
|
4
|
-
import { l as OllamaBackend, u as OpenAICompatibleBackend } from "../dist-
|
|
5
|
-
import { t as logger } from "../Logger-
|
|
6
|
-
import { t as RemoteSkillSource } from "../RemoteSkillSource-
|
|
7
|
-
import { r as reconstructTurnBlocks, t as WorkItemsClient } from "../WorkItemsClient-
|
|
8
|
-
import { t as ApiClient } from "../ApiClient-
|
|
2
|
+
import { A as FallbackLlmBackend, D as createResumeAgentTool, E as createCoordinateTaskTool, F as generateCliTools, N as PermissionManager, O as createBackgroundAgentTools, P as buildCliToolList, S as createWriteTodosTool, Y as SignedOutCloudBackend, Z as signInUncheckedHeadlessMessage, _ as createSseBackend, a as loadProjectContext, at as ReActAgent, b as createFindDefinitionTool, c as checkSavedSignIn, ct as wrapTools, d as attachLocalModels, dt as classifyCommandRisk, g as withSignedOutLocalDefault, gt as CheckpointStore, h as resolveSignedOutHeadlessModel, i as buildProjectAgentStore, k as createAgentDelegateTool, l as settleSignInRefresh, m as resolveHeadlessModel, n as BackgroundAgentManager, nt as buildSystemPrompt, o as McpManager, p as defaultLlmBackendDeps, pt as CustomCommandStore, q as SIGN_IN_EXPIRED_HEADLESS, r as SubagentOrchestrator, s as buildSandbox, t as AgentHistoryStore, ut as setWebSocketToolExecutor, v as createGetFileStructureTool, vt as SessionStore, w as createSkillTool, x as createTodoStore, y as createWorkItemTools } from "../AgentHistoryStore-DW6BBbVj.mjs";
|
|
3
|
+
import { D as sanitizeTerminalText, c as ToolCatalog, f as toolCategory, l as commandTextOf, t as ConfigStore, v as requireApiUrl } from "../ConfigStore-BuLA_-uZ.mjs";
|
|
4
|
+
import { l as OllamaBackend, u as OpenAICompatibleBackend } from "../dist-DsMzCRLX.mjs";
|
|
5
|
+
import { t as logger } from "../Logger-CjaYx85U.mjs";
|
|
6
|
+
import { t as RemoteSkillSource } from "../RemoteSkillSource-HqoLRV56.mjs";
|
|
7
|
+
import { r as reconstructTurnBlocks, t as WorkItemsClient } from "../WorkItemsClient-xmo0DrCm.mjs";
|
|
8
|
+
import { t as ApiClient } from "../ApiClient-D4bDuWXg.mjs";
|
|
9
9
|
import { randomBytes } from "crypto";
|
|
10
10
|
import { readFile } from "fs/promises";
|
|
11
11
|
//#region src/commands/headlessOllama.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { n as McpToggleRefusedError, t as ConfigStore } from "../ConfigStore-
|
|
3
|
-
import { t as version } from "../package-
|
|
2
|
+
import { n as McpToggleRefusedError, t as ConfigStore } from "../ConfigStore-BuLA_-uZ.mjs";
|
|
3
|
+
import { t as version } from "../package-CvffLo0I.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-
|
|
73
|
+
const { handleMcpServeCommand } = await import("../serve-tmC__JNj.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-
|
|
3
|
-
import { t as ApiClient } from "../ApiClient-
|
|
2
|
+
import { t as ConfigStore, v as requireApiUrl } from "../ConfigStore-BuLA_-uZ.mjs";
|
|
3
|
+
import { t as ApiClient } from "../ApiClient-D4bDuWXg.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-
|
|
3
|
-
import "../Logger-
|
|
2
|
+
import { t as ConfigStore } from "../ConfigStore-BuLA_-uZ.mjs";
|
|
3
|
+
import "../Logger-CjaYx85U.mjs";
|
|
4
4
|
import { S as vramNeedsLlamaServer, l as OLLAMA_SKIPS_INTEL_IGPU } from "../modelHub-BSB6qRFP.mjs";
|
|
5
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-
|
|
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-
|
|
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-DeOGFwLi.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-C9eLTDcR.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-
|
|
2
|
+
import { D as sanitizeTerminalText, t as ConfigStore } from "../ConfigStore-BuLA_-uZ.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-
|
|
3
|
-
import {
|
|
4
|
-
import { r as isReservedCommandName, t as RemoteSkillSource } from "../RemoteSkillSource-
|
|
5
|
-
import { t as ApiClient } from "../ApiClient-
|
|
2
|
+
import { t as ConfigStore, v as requireApiUrl } from "../ConfigStore-BuLA_-uZ.mjs";
|
|
3
|
+
import { fn as readSkillMdSourceUrl, pn as splitSkillMdFrontmatter } from "../Logger-CjaYx85U.mjs";
|
|
4
|
+
import { r as isReservedCommandName, t as RemoteSkillSource } from "../RemoteSkillSource-HqoLRV56.mjs";
|
|
5
|
+
import { t as ApiClient } from "../ApiClient-D4bDuWXg.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-
|
|
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-
|
|
2
|
+
import { t as version } from "../package-CvffLo0I.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-U4AfrPKj.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,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { n as assertWritablePath } from "./pathValidation-C4ADzpUR-BPIpINwZ.mjs";
|
|
3
3
|
import { existsSync, promises } from "fs";
|
|
4
4
|
import path from "path";
|
|
5
|
-
//#region ../../b4m-core/services/dist/createFile-
|
|
5
|
+
//#region ../../b4m-core/services/dist/createFile-CPKmd6Uf.mjs
|
|
6
6
|
async function createFile(params, allowedDirectories) {
|
|
7
7
|
const { path: filePath, content, createDirectories = true } = params;
|
|
8
|
-
const resolvedPath =
|
|
8
|
+
const resolvedPath = assertWritablePath(filePath, allowedDirectories, "create");
|
|
9
9
|
const action = existsSync(resolvedPath) ? "overwritten" : "created";
|
|
10
10
|
if (createDirectories) {
|
|
11
11
|
const dir = path.dirname(resolvedPath);
|
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import { existsSync, promises, statSync } from "fs";
|
|
2
|
+
import { i as isGitDirectoryName, n as assertWritablePath } from "./pathValidation-C4ADzpUR-BPIpINwZ.mjs";
|
|
3
|
+
import { existsSync, promises, readdirSync, statSync } from "fs";
|
|
4
4
|
import path from "path";
|
|
5
|
-
//#region ../../b4m-core/services/dist/deleteFile-
|
|
5
|
+
//#region ../../b4m-core/services/dist/deleteFile-CD_xQ7Y6.mjs
|
|
6
|
+
/** Whether a `.git` entry exists anywhere under `dir`, without following symlinks. */
|
|
7
|
+
function containsGitDirectory(dir) {
|
|
8
|
+
const pending = [dir];
|
|
9
|
+
while (pending.length > 0) {
|
|
10
|
+
const current = pending.pop();
|
|
11
|
+
for (const entry of readdirSync(current, { withFileTypes: true })) {
|
|
12
|
+
if (isGitDirectoryName(entry.name)) return true;
|
|
13
|
+
if (entry.isDirectory()) pending.push(path.join(current, entry.name));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
6
18
|
async function deleteFile(params, allowedDirectories) {
|
|
7
19
|
const { path: filePath, recursive = false } = params;
|
|
8
|
-
const resolvedPath =
|
|
20
|
+
const resolvedPath = assertWritablePath(filePath, allowedDirectories, "delete");
|
|
9
21
|
if (!existsSync(resolvedPath)) throw new Error(`File or directory not found: ${filePath}`);
|
|
10
22
|
const stats = statSync(resolvedPath);
|
|
11
23
|
const isDirectory = stats.isDirectory();
|
|
12
24
|
const size = stats.size;
|
|
13
25
|
if (isDirectory && !recursive) throw new Error(`Path is a directory: ${filePath}. Use recursive=true to delete directories and their contents.`);
|
|
14
26
|
if (isDirectory) {
|
|
27
|
+
if (containsGitDirectory(resolvedPath)) throw new Error(`Access denied: Cannot delete ${filePath}: it contains a .git directory.`);
|
|
15
28
|
await promises.rm(resolvedPath, {
|
|
16
29
|
recursive: true,
|
|
17
30
|
force: true
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { Ct as getQuestErrorCode, Dt as isEnforceCreditsLocked, E as CompletionReasoningEffortSchema, F as EMBEDDING_MODEL_IDS, Gt as servableEmbeddingDimensions, H as MODEL_INFO_FIELD_GROUP_OF, Jt as stripDeliveredArtifactBlocks, K as OllamaEmbeddingModel, Mt as isSupportedEmbeddingModel, Nt as isSupportedFabFileMimeType, Ot as isExpectedToolError, P as EMBEDDING_MODEL_CATALOG, Pt as isUserInitiatedAbort, S as CONTEXT_WINDOW_SAFETY_BUFFER_TOKENS, T as ChatModels, Tt as hasDeliverablePinnedArtifact, Ut as resolveSettingDefinition, W as ModelBackend, Y as PermissionDeniedError, Yt as stripToolArtifactMarkup, _ as AudioMimeType, _t as escapeThinkMarkers, d as ARTIFACT_REMOVED_PLACEHOLDER, f as AdminAiStoredConfigSchema, gt as createThinkMarkerEscaper, hn as WEBSITE_URL, lt as VoyageAIEmbeddingModel, mn as APP_NAME, ot as SupportedFabFileMimeTypes, p as AiAccessRefusedError, q as OpenAIEmbeddingModel, tn as visibleReplyText, u as ARTIFACT_DELIVERED_PLACEHOLDER, vt as filterToolArtifactMarkup, xt as getEmbeddingModelCapabilities, y as BedrockEmbeddingModel } from "./Logger-CjaYx85U.mjs";
|
|
3
3
|
import { b as ollamaNumCtx } from "./modelHub-BSB6qRFP.mjs";
|
|
4
4
|
import "crypto";
|
|
5
5
|
import path from "path";
|
|
@@ -160,6 +160,13 @@ function redactLogValue(value, seen = /* @__PURE__ */ new WeakSet()) {
|
|
|
160
160
|
nodes: 0
|
|
161
161
|
}, 0);
|
|
162
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* Scrub a log line that never went through the Logger (raw `console.*` output read back from
|
|
165
|
+
* CloudWatch) before it is forwarded anywhere. Only value patterns apply: there are no field names.
|
|
166
|
+
*/
|
|
167
|
+
function redactLogText(value) {
|
|
168
|
+
return redactString(value);
|
|
169
|
+
}
|
|
163
170
|
var Logger = class Logger {
|
|
164
171
|
static _globalInstance;
|
|
165
172
|
static contextProvider;
|
|
@@ -726,8 +733,9 @@ ModelBackend.Anthropic, ModelBackend.Gemini, ModelBackend.XAI, ModelBackend.Olla
|
|
|
726
733
|
CompletionReasoningEffortSchema.options;
|
|
727
734
|
//#endregion
|
|
728
735
|
//#region ../../b4m-core/llm-adapters/dist/index.mjs
|
|
729
|
-
function getAbortAwareRetrySignal({ retryMode, abortSignal, stream, tools, responseFormat, _internal }) {
|
|
730
|
-
if (retryMode !== "abort-aware") return void 0;
|
|
736
|
+
function getAbortAwareRetrySignal({ retryMode, abortSignal, stream, tools, responseFormat, _internal }, singleAttemptSupported = false) {
|
|
737
|
+
if (retryMode !== "abort-aware" && retryMode !== "single-attempt") return void 0;
|
|
738
|
+
if (retryMode === "single-attempt" && !singleAttemptSupported) throw new Error("Single-attempt completion is unsupported by this adapter");
|
|
731
739
|
if (!abortSignal) throw new Error("Abort-aware completion retries require an abort signal");
|
|
732
740
|
abortSignal.throwIfAborted();
|
|
733
741
|
const hasTools = Array.isArray(tools) ? tools.length > 0 : tools !== void 0;
|
|
@@ -1524,6 +1532,52 @@ function appendIdentityReminderToMessages(messages, identityReminder) {
|
|
|
1524
1532
|
}, ...messages];
|
|
1525
1533
|
}
|
|
1526
1534
|
ChatModels.CLAUDE_4_5_SONNET, ChatModels.CLAUDE_4_1_OPUS, ChatModels.CLAUDE_4_5_HAIKU, ChatModels.CLAUDE_4_5_OPUS, ChatModels.CLAUDE_4_6_SONNET, ChatModels.CLAUDE_4_6_OPUS;
|
|
1535
|
+
/**
|
|
1536
|
+
* A reasoning model spent its whole output budget thinking and produced no answer
|
|
1537
|
+
* (finish_reason: length). The same budget fails the same way, so callers must not retry it.
|
|
1538
|
+
* The message keeps the "output budget was exhausted" phrase that log searches and tests match.
|
|
1539
|
+
*/
|
|
1540
|
+
var OutputBudgetExhaustedError = class extends Error {
|
|
1541
|
+
provider;
|
|
1542
|
+
model;
|
|
1543
|
+
constructor(provider, model) {
|
|
1544
|
+
super(`${provider} returned no content for ${model}: the output budget was exhausted before any answer was produced (finish_reason: length). Raise maxTokens or lower the reasoning effort.`);
|
|
1545
|
+
this.provider = provider;
|
|
1546
|
+
this.model = model;
|
|
1547
|
+
this.name = "OutputBudgetExhaustedError";
|
|
1548
|
+
}
|
|
1549
|
+
};
|
|
1550
|
+
/**
|
|
1551
|
+
* The stream closed with no finish reason and nothing usable. Transient, so worth one retry.
|
|
1552
|
+
* The message must not say "aborted", "overloaded" or "timeout": the fallback predicates match those.
|
|
1553
|
+
*/
|
|
1554
|
+
var StreamEndedWithoutFinishError = class extends Error {
|
|
1555
|
+
provider;
|
|
1556
|
+
model;
|
|
1557
|
+
constructor(provider, model) {
|
|
1558
|
+
super(`${provider} returned no content for ${model} (finish_reason: unknown).`);
|
|
1559
|
+
this.provider = provider;
|
|
1560
|
+
this.model = model;
|
|
1561
|
+
this.name = "StreamEndedWithoutFinishError";
|
|
1562
|
+
}
|
|
1563
|
+
};
|
|
1564
|
+
/**
|
|
1565
|
+
* The turn ended normally (terminal event received) after streaming only a reasoning block: no
|
|
1566
|
+
* displayed text and no tool call. Usually a one-off sampling outcome, so worth one same-model retry
|
|
1567
|
+
* and then the fallback chain. Distinct from a stall (an LlmTimeoutError or "stream timeout" message)
|
|
1568
|
+
* and from the deterministic empty turn left by the max-tool-calls cap, which must not be retried.
|
|
1569
|
+
* The message must not say "aborted", "overloaded" or "timeout": the fallback predicates match those.
|
|
1570
|
+
*/
|
|
1571
|
+
var HiddenReasoningOnlyEmptyError = class extends Error {
|
|
1572
|
+
provider;
|
|
1573
|
+
model;
|
|
1574
|
+
constructor(provider, model, message) {
|
|
1575
|
+
super(message);
|
|
1576
|
+
this.provider = provider;
|
|
1577
|
+
this.model = model;
|
|
1578
|
+
this.name = "HiddenReasoningOnlyEmptyError";
|
|
1579
|
+
}
|
|
1580
|
+
};
|
|
1527
1581
|
ChatModels.CLAUDE_4_5_SONNET_BEDROCK, ChatModels.CLAUDE_4_5_HAIKU_BEDROCK, ChatModels.CLAUDE_4_5_OPUS_BEDROCK, ChatModels.CLAUDE_4_6_SONNET_BEDROCK, ChatModels.CLAUDE_4_6_OPUS_BEDROCK;
|
|
1528
1582
|
/**
|
|
1529
1583
|
* Models served by ConverseBedrockBackend. Adding a Converse-compatible Bedrock model is a
|
|
@@ -1570,35 +1624,6 @@ function normalizeOllamaDoneReason(reason) {
|
|
|
1570
1624
|
default: return reason;
|
|
1571
1625
|
}
|
|
1572
1626
|
}
|
|
1573
|
-
/**
|
|
1574
|
-
* A reasoning model spent its whole output budget thinking and produced no answer
|
|
1575
|
-
* (finish_reason: length). The same budget fails the same way, so callers must not retry it.
|
|
1576
|
-
* The message keeps the "output budget was exhausted" phrase that log searches and tests match.
|
|
1577
|
-
*/
|
|
1578
|
-
var OutputBudgetExhaustedError = class extends Error {
|
|
1579
|
-
provider;
|
|
1580
|
-
model;
|
|
1581
|
-
constructor(provider, model) {
|
|
1582
|
-
super(`${provider} returned no content for ${model}: the output budget was exhausted before any answer was produced (finish_reason: length). Raise maxTokens or lower the reasoning effort.`);
|
|
1583
|
-
this.provider = provider;
|
|
1584
|
-
this.model = model;
|
|
1585
|
-
this.name = "OutputBudgetExhaustedError";
|
|
1586
|
-
}
|
|
1587
|
-
};
|
|
1588
|
-
/**
|
|
1589
|
-
* The stream closed with no finish reason and nothing usable. Transient, so worth one retry.
|
|
1590
|
-
* The message must not say "aborted", "overloaded" or "timeout": the fallback predicates match those.
|
|
1591
|
-
*/
|
|
1592
|
-
var StreamEndedWithoutFinishError = class extends Error {
|
|
1593
|
-
provider;
|
|
1594
|
-
model;
|
|
1595
|
-
constructor(provider, model) {
|
|
1596
|
-
super(`${provider} returned no content for ${model} (finish_reason: unknown).`);
|
|
1597
|
-
this.provider = provider;
|
|
1598
|
-
this.model = model;
|
|
1599
|
-
this.name = "StreamEndedWithoutFinishError";
|
|
1600
|
-
}
|
|
1601
|
-
};
|
|
1602
1627
|
/** Type guard: does this message already carry OpenAI-style `tool_calls`? */
|
|
1603
1628
|
function hasToolCalls(msg) {
|
|
1604
1629
|
return msg.role === "assistant" && "tool_calls" in msg;
|
|
@@ -8412,6 +8437,7 @@ var OpenAICompatibleBackend = class {
|
|
|
8412
8437
|
if (!sawProse && calls.length === 0) {
|
|
8413
8438
|
if (finishReason === "length") throw new OutputBudgetExhaustedError(this.options.label, name);
|
|
8414
8439
|
if (finishReason === void 0 && !options.abortSignal?.aborted) throw new StreamEndedWithoutFinishError(this.options.label, name);
|
|
8440
|
+
if (reasoning && finishReason !== void 0 && toolCallCount < maxToolCalls) throw new HiddenReasoningOnlyEmptyError(this.options.label, name, `${this.options.label} returned only reasoning for ${name}, with no displayed text and no tool call (finish_reason: ${finishReason}).`);
|
|
8415
8441
|
throw new Error(`${this.options.label} returned no content for ${name} (finish_reason: ${finishReason ?? "unknown"}).`);
|
|
8416
8442
|
}
|
|
8417
8443
|
if (calls.length === 0) return;
|
|
@@ -8626,6 +8652,7 @@ function textOf(message) {
|
|
|
8626
8652
|
if (!Array.isArray(content)) return "";
|
|
8627
8653
|
return content.map((part) => typeof part === "string" ? part : part.text ?? "").join("");
|
|
8628
8654
|
}
|
|
8655
|
+
Object.freeze({ provenance: "not_reported" });
|
|
8629
8656
|
ModelBackend.Ollama, ModelBackend.LocalImage;
|
|
8630
8657
|
//#endregion
|
|
8631
8658
|
//#region ../../b4m-core/utils/dist/index.mjs
|
|
@@ -9066,7 +9093,6 @@ new RegExp(`(?<![\\w.])(?:${OCTET}\\.){3}${OCTET}(?!\\.?\\w)`, "g");
|
|
|
9066
9093
|
const HEX_GROUP = "[0-9a-f]{1,4}";
|
|
9067
9094
|
const HEX_RUN = `${HEX_GROUP}(?::${HEX_GROUP}){0,6}`;
|
|
9068
9095
|
new RegExp(`(?:(?<![\\w:])|(?<=(?<![\\w:])[0-9a-f]*[g-z_]\\w*:))(?:(?:${HEX_GROUP}:){7}${HEX_GROUP}|${HEX_RUN}::(?:${HEX_RUN})?|::${HEX_RUN})(?::\\[IP\\])?(?![\\w:])`, "gi");
|
|
9069
|
-
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;
|
|
9070
9096
|
//#endregion
|
|
9071
9097
|
//#region ../sdk/dist/index.mjs
|
|
9072
9098
|
/**
|
|
@@ -9198,6 +9224,10 @@ const operations = {
|
|
|
9198
9224
|
method: "POST",
|
|
9199
9225
|
path: "/api/v1/briefs"
|
|
9200
9226
|
},
|
|
9227
|
+
composeFollowUpBrief: {
|
|
9228
|
+
method: "POST",
|
|
9229
|
+
path: "/api/v1/briefs/follow-ups"
|
|
9230
|
+
},
|
|
9201
9231
|
createAgent: {
|
|
9202
9232
|
method: "POST",
|
|
9203
9233
|
path: "/api/v1/agents"
|
|
@@ -9338,6 +9368,10 @@ const operations = {
|
|
|
9338
9368
|
method: "POST",
|
|
9339
9369
|
path: "/api/v1/pending-actions/{questId}/deny"
|
|
9340
9370
|
},
|
|
9371
|
+
editBriefDecision: {
|
|
9372
|
+
method: "PATCH",
|
|
9373
|
+
path: "/api/v1/briefs/{id}/decisions/{decisionId}"
|
|
9374
|
+
},
|
|
9341
9375
|
editImage: {
|
|
9342
9376
|
method: "POST",
|
|
9343
9377
|
path: "/api/v1/image-edits"
|
|
@@ -9406,6 +9440,10 @@ const operations = {
|
|
|
9406
9440
|
method: "GET",
|
|
9407
9441
|
path: "/api/v1/briefs/schedule"
|
|
9408
9442
|
},
|
|
9443
|
+
getBusyBlocks: {
|
|
9444
|
+
method: "GET",
|
|
9445
|
+
path: "/api/v1/briefs/busy-blocks"
|
|
9446
|
+
},
|
|
9409
9447
|
getClaudeBundleZip: {
|
|
9410
9448
|
method: "GET",
|
|
9411
9449
|
path: "/api/v1/skills/market/bundles/{id}/claude-plugin.zip"
|
|
@@ -9494,6 +9532,10 @@ const operations = {
|
|
|
9494
9532
|
method: "GET",
|
|
9495
9533
|
path: "/api/v1/music-generations/{id}"
|
|
9496
9534
|
},
|
|
9535
|
+
getObligation: {
|
|
9536
|
+
method: "GET",
|
|
9537
|
+
path: "/api/v1/obligations/{id}"
|
|
9538
|
+
},
|
|
9497
9539
|
getPendingDecisionCount: {
|
|
9498
9540
|
method: "GET",
|
|
9499
9541
|
path: "/api/v1/pending-decisions"
|
|
@@ -9542,6 +9584,10 @@ const operations = {
|
|
|
9542
9584
|
method: "GET",
|
|
9543
9585
|
path: "/api/v1/whats-new/media/{id}/{asset}"
|
|
9544
9586
|
},
|
|
9587
|
+
handOffObligation: {
|
|
9588
|
+
method: "POST",
|
|
9589
|
+
path: "/api/v1/obligations"
|
|
9590
|
+
},
|
|
9545
9591
|
importSkillMarketListing: {
|
|
9546
9592
|
method: "POST",
|
|
9547
9593
|
path: "/api/v1/skills/market/listings/{id}/import"
|
|
@@ -9642,6 +9688,10 @@ const operations = {
|
|
|
9642
9688
|
method: "GET",
|
|
9643
9689
|
path: "/api/v1/skills/mine"
|
|
9644
9690
|
},
|
|
9691
|
+
listObligations: {
|
|
9692
|
+
method: "GET",
|
|
9693
|
+
path: "/api/v1/obligations"
|
|
9694
|
+
},
|
|
9645
9695
|
listProjectFiles: {
|
|
9646
9696
|
method: "GET",
|
|
9647
9697
|
path: "/api/v1/projects/{id}/files"
|
|
@@ -9722,6 +9772,10 @@ const operations = {
|
|
|
9722
9772
|
method: "PUT",
|
|
9723
9773
|
path: "/api/v1/briefs/schedule"
|
|
9724
9774
|
},
|
|
9775
|
+
putBusyBlocks: {
|
|
9776
|
+
method: "PUT",
|
|
9777
|
+
path: "/api/v1/briefs/busy-blocks"
|
|
9778
|
+
},
|
|
9725
9779
|
raiseCompletionRunBudget: {
|
|
9726
9780
|
method: "POST",
|
|
9727
9781
|
path: "/api/v1/completion-runs/{runId}/budget"
|
|
@@ -9762,6 +9816,10 @@ const operations = {
|
|
|
9762
9816
|
method: "POST",
|
|
9763
9817
|
path: "/api/v1/skills/market/versions/{vid}/rescan"
|
|
9764
9818
|
},
|
|
9819
|
+
resolveBriefDecision: {
|
|
9820
|
+
method: "POST",
|
|
9821
|
+
path: "/api/v1/briefs/{id}/decisions/{decisionId}/resolve"
|
|
9822
|
+
},
|
|
9765
9823
|
reviewSkillMarketVersion: {
|
|
9766
9824
|
method: "POST",
|
|
9767
9825
|
path: "/api/v1/skills/market/versions/{vid}/review"
|
|
@@ -9842,6 +9900,10 @@ const operations = {
|
|
|
9842
9900
|
method: "PATCH",
|
|
9843
9901
|
path: "/api/v1/files/{id}"
|
|
9844
9902
|
},
|
|
9903
|
+
updateObligation: {
|
|
9904
|
+
method: "PATCH",
|
|
9905
|
+
path: "/api/v1/obligations/{id}"
|
|
9906
|
+
},
|
|
9845
9907
|
updateProject: {
|
|
9846
9908
|
method: "PATCH",
|
|
9847
9909
|
path: "/api/v1/projects/{id}"
|
|
@@ -10135,4 +10197,4 @@ function toBase64(bytes) {
|
|
|
10135
10197
|
return btoa(binary);
|
|
10136
10198
|
}
|
|
10137
10199
|
//#endregion
|
|
10138
|
-
export { extractErrorMessage as a, resolveSupportedMimeType as c, BaseStorage as d, isPrivateIP as f, parseRetryAfterSeconds as i, OllamaBackend as l, B4mStreamEndedError as n, getSettingsMap as o, Logger as p, createClient as r, getSettingsValue as s, B4mApiError as t, OpenAICompatibleBackend as u };
|
|
10200
|
+
export { extractErrorMessage as a, resolveSupportedMimeType as c, BaseStorage as d, isPrivateIP as f, redactLogValue as h, parseRetryAfterSeconds as i, OllamaBackend as l, redactLogText as m, B4mStreamEndedError as n, getSettingsMap as o, Logger as p, createClient as r, getSettingsValue as s, B4mApiError as t, OpenAICompatibleBackend as u };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./Logger-
|
|
2
|
+
import "./Logger-CjaYx85U.mjs";
|
|
3
3
|
import { S as vramNeedsLlamaServer, b as ollamaNumCtx, v as estimateFitFromSize } from "./modelHub-BSB6qRFP.mjs";
|
|
4
|
-
import { t as version } from "./package-
|
|
4
|
+
import { t as version } from "./package-CvffLo0I.mjs";
|
|
5
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-
|
|
6
|
+
import { Q as formatBytes, it as largestProjectorBytes } from "./modelServers-DeOGFwLi.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { homedir } from "node:os";
|
|
9
9
|
//#region src/models/curatedList.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { a as isPathAllowed, r as createPathChecker } from "./pathValidation-C4ADzpUR-BPIpINwZ.mjs";
|
|
3
3
|
import path from "path";
|
|
4
4
|
import { stat } from "fs/promises";
|
|
5
5
|
import { glob } from "glob";
|
|
6
|
-
//#region ../../b4m-core/services/dist/globFiles-
|
|
6
|
+
//#region ../../b4m-core/services/dist/globFiles-CoapsO8G.mjs
|
|
7
7
|
const DEFAULT_IGNORE_PATTERNS = [
|
|
8
8
|
"**/node_modules/**",
|
|
9
9
|
"**/.git/**",
|
|
@@ -25,7 +25,7 @@ async function findFiles(params, allowedDirectories) {
|
|
|
25
25
|
throw new Error(`Access denied: Cannot search outside allowed directories. ${dirsMsg}`);
|
|
26
26
|
}
|
|
27
27
|
if (path.isAbsolute(pattern) || pattern.split("/").includes("..")) throw new Error("Access denied: Cannot search outside allowed directories. The pattern must be relative to the search directory.");
|
|
28
|
-
const
|
|
28
|
+
const expanded = await glob(pattern, {
|
|
29
29
|
cwd: targetDir,
|
|
30
30
|
dot: false,
|
|
31
31
|
ignore: respect_git_ignore ? DEFAULT_IGNORE_PATTERNS : [],
|
|
@@ -34,7 +34,11 @@ async function findFiles(params, allowedDirectories) {
|
|
|
34
34
|
nocase: !case_sensitive,
|
|
35
35
|
maxDepth: 20
|
|
36
36
|
});
|
|
37
|
-
|
|
37
|
+
const checkPath = createPathChecker(allowedDirectories);
|
|
38
|
+
const matches = expanded.filter((match) => checkPath(match).allowed);
|
|
39
|
+
const skipped = expanded.length - matches.length;
|
|
40
|
+
const skippedNote = skipped > 0 ? `\n${skipped} match(es) outside the allowed directories were skipped.` : "";
|
|
41
|
+
if (matches.length === 0) return `No files found matching pattern: ${pattern}${dir_path ? ` in ${dir_path}` : ""}${skippedNote}`;
|
|
38
42
|
const filesWithStats = [];
|
|
39
43
|
for (const filePath of matches) try {
|
|
40
44
|
const stats = await stat(filePath);
|
|
@@ -49,7 +53,7 @@ async function findFiles(params, allowedDirectories) {
|
|
|
49
53
|
const MAX_RESULTS = 500;
|
|
50
54
|
const truncated = filesWithStats.length > MAX_RESULTS;
|
|
51
55
|
const results = truncated ? filesWithStats.slice(0, MAX_RESULTS) : filesWithStats;
|
|
52
|
-
return `${`Found ${filesWithStats.length} file(s)${truncated ? ` (showing first ${MAX_RESULTS})` : ""} matching: ${pattern}`}${dir_path ? `\nDirectory: ${dir_path}` : ""}\n\n${results.map((file) => path.relative(baseCwd, file.path)).join("\n")}`;
|
|
56
|
+
return `${`Found ${filesWithStats.length} file(s)${truncated ? ` (showing first ${MAX_RESULTS})` : ""} matching: ${pattern}`}${dir_path ? `\nDirectory: ${dir_path}` : ""}${skippedNote}\n\n${results.map((file) => path.relative(baseCwd, file.path)).join("\n")}`;
|
|
53
57
|
}
|
|
54
58
|
const globFilesTool = {
|
|
55
59
|
name: "glob_files",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { a as isPathAllowed } from "./pathValidation-C4ADzpUR-BPIpINwZ.mjs";
|
|
3
3
|
import { existsSync } from "fs";
|
|
4
4
|
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-
|
|
8
|
+
//#region ../../b4m-core/services/dist/grepSearch-DeH7M2e7.mjs
|
|
9
9
|
const execFileAsync = promisify(execFile);
|
|
10
10
|
/** Cached ripgrep binary path after first resolution */
|
|
11
11
|
let cachedRgPath = null;
|