@bike4mind/cli 5.0.1 → 5.1.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.
- package/dist/{AgentHistoryStore-DW6BBbVj.mjs → AgentHistoryStore-DrZ47hqO.mjs} +67 -22
- package/dist/{ApiClient-D4bDuWXg.mjs → ApiClient-B8VxyNEM.mjs} +3 -3
- package/dist/{BubblewrapRuntime-D3EO5Y0C.mjs → BubblewrapRuntime-DotKnqtu.mjs} +2 -2
- package/dist/ConfigStore-1lUx9qD8.mjs +2 -0
- package/dist/{ConfigStore-BuLA_-uZ.mjs → ConfigStore-DfuE49PH.mjs} +1 -1
- package/dist/{Logger-CjaYx85U.mjs → Logger-D6QD3c7G.mjs} +1621 -292
- package/dist/{SandboxOrchestrator-yORi2eFV.mjs → SandboxOrchestrator-Cm9L1TRR.mjs} +1 -1
- package/dist/{SandboxRuntimeAdapter-BjJwJNfg.mjs → SandboxRuntimeAdapter-DF9hg5Xl.mjs} +1 -1
- package/dist/{SandboxRuntimeAdapter-BmkaFzqU.mjs → SandboxRuntimeAdapter-HEkl0-qG.mjs} +2 -2
- package/dist/{SeatbeltRuntime-CyZNmFwD.mjs → SeatbeltRuntime-CYsIp616.mjs} +2 -2
- package/dist/{WorkItemsClient-xmo0DrCm.mjs → WorkItemsClient-sUftLgOz.mjs} +1 -1
- package/dist/{buildToolSearch-CXxEtVKc.mjs → buildToolSearch-Bb-DPCb0.mjs} +2 -2
- package/dist/commands/acpCommand.mjs +5 -5
- 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 +6 -6
- 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 +3 -3
- package/dist/commands/updateCommand.mjs +2 -2
- package/dist/{dist-DsMzCRLX.mjs → dist-De8Q0ivE.mjs} +100 -9
- package/dist/{fit-C9eLTDcR.mjs → fit-BsHUrxwe.mjs} +3 -3
- package/dist/index.mjs +9 -9
- package/dist/{modelServers-DeOGFwLi.mjs → modelServers-Ca1l2hMC.mjs} +1 -1
- package/dist/{package-CvffLo0I.mjs → package-hEkaJgsy.mjs} +1 -1
- package/dist/{serve-tmC__JNj.mjs → serve-CiSddein.mjs} +91 -18
- package/dist/{updateChecker-U4AfrPKj.mjs → updateChecker-dZqiMftm.mjs} +1 -1
- package/package.json +12 -13
- package/dist/ConfigStore-DdqxfmDr.mjs +0 -2
|
@@ -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-HEkl0-qG.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-HEkl0-qG.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-CYsIp616.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-DotKnqtu.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-D6QD3c7G.mjs";
|
|
3
|
+
import { a as getContainerSocketPaths, c as resolveSandboxPath, o as getProtectedWorkspacePaths, s as isBinaryAvailable, t as assertProxyPort } from "./SandboxRuntimeAdapter-HEkl0-qG.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 { Qt as tokenEstimateMultiplier } from "./Logger-D6QD3c7G.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 { pt as completionsSupportsToolSearch, t as logger } from "./Logger-
|
|
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-DrZ47hqO.mjs";
|
|
3
|
+
import { pt as completionsSupportsToolSearch, t as logger } from "./Logger-D6QD3c7G.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 { mt as createMutex, t as logger } from "../Logger-
|
|
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-DrZ47hqO.mjs";
|
|
3
|
+
import { c as ToolCatalog, t as ConfigStore, v as requireApiUrl } from "../ConfigStore-DfuE49PH.mjs";
|
|
4
|
+
import { mt as createMutex, t as logger } from "../Logger-D6QD3c7G.mjs";
|
|
5
5
|
import { t as RemoteSkillSource } from "../RemoteSkillSource-HqoLRV56.mjs";
|
|
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-
|
|
6
|
+
import { t as ApiClient } from "../ApiClient-B8VxyNEM.mjs";
|
|
7
|
+
import { a as NotifyingLlmBackend, i as deferredToolRegistry, n as buildAgent, r as buildSupportingStores, t as buildToolSearch } from "../buildToolSearch-Bb-DPCb0.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-DfuE49PH.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-hEkaJgsy.mjs";
|
|
3
|
+
import { c as isNpmPrefixWritable, i as fetchLatestVersion, r as compareSemver } from "../updateChecker-dZqiMftm.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-
|
|
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-DrZ47hqO.mjs";
|
|
3
|
+
import { D as sanitizeTerminalText, c as ToolCatalog, f as toolCategory, l as commandTextOf, t as ConfigStore, v as requireApiUrl } from "../ConfigStore-DfuE49PH.mjs";
|
|
4
|
+
import { l as OllamaBackend, u as OpenAICompatibleBackend } from "../dist-De8Q0ivE.mjs";
|
|
5
|
+
import { t as logger } from "../Logger-D6QD3c7G.mjs";
|
|
6
6
|
import { t as RemoteSkillSource } from "../RemoteSkillSource-HqoLRV56.mjs";
|
|
7
|
-
import { r as reconstructTurnBlocks, t as WorkItemsClient } from "../WorkItemsClient-
|
|
8
|
-
import { t as ApiClient } from "../ApiClient-
|
|
7
|
+
import { r as reconstructTurnBlocks, t as WorkItemsClient } from "../WorkItemsClient-sUftLgOz.mjs";
|
|
8
|
+
import { t as ApiClient } from "../ApiClient-B8VxyNEM.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-DfuE49PH.mjs";
|
|
3
|
+
import { t as version } from "../package-hEkaJgsy.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-CiSddein.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-DfuE49PH.mjs";
|
|
3
|
+
import { t as ApiClient } from "../ApiClient-B8VxyNEM.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-DfuE49PH.mjs";
|
|
3
|
+
import "../Logger-D6QD3c7G.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-Ca1l2hMC.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-BsHUrxwe.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-DfuE49PH.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 {
|
|
2
|
+
import { t as ConfigStore, v as requireApiUrl } from "../ConfigStore-DfuE49PH.mjs";
|
|
3
|
+
import { mn as splitSkillMdFrontmatter, pn as readSkillMdSourceUrl } from "../Logger-D6QD3c7G.mjs";
|
|
4
4
|
import { r as isReservedCommandName, t as RemoteSkillSource } from "../RemoteSkillSource-HqoLRV56.mjs";
|
|
5
|
-
import { t as ApiClient } from "../ApiClient-
|
|
5
|
+
import { t as ApiClient } from "../ApiClient-B8VxyNEM.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-hEkaJgsy.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-dZqiMftm.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 { Ct as getQuestErrorCode, Dt as isEnforceCreditsLocked, E as CompletionReasoningEffortSchema, F as EMBEDDING_MODEL_IDS,
|
|
2
|
+
import { Ct as getQuestErrorCode, Dt as isEnforceCreditsLocked, E as CompletionReasoningEffortSchema, F as EMBEDDING_MODEL_IDS, Ft as isUserInitiatedAbort, H as MODEL_INFO_FIELD_GROUP_OF, K as OllamaEmbeddingModel, Kt as servableEmbeddingDimensions, Nt as isSupportedEmbeddingModel, Ot as isExpectedToolError, P as EMBEDDING_MODEL_CATALOG, Pt as isSupportedFabFileMimeType, S as CONTEXT_WINDOW_SAFETY_BUFFER_TOKENS, T as ChatModels, Tt as hasDeliverablePinnedArtifact, W as ModelBackend, Wt as resolveSettingDefinition, Xt as stripToolArtifactMarkup, Y as PermissionDeniedError, Yt as stripDeliveredArtifactBlocks, _ as AudioMimeType, _t as escapeThinkMarkers, d as ARTIFACT_REMOVED_PLACEHOLDER, f as AdminAiStoredConfigSchema, gn as WEBSITE_URL, gt as createThinkMarkerEscaper, hn as APP_NAME, lt as VoyageAIEmbeddingModel, nn as visibleReplyText, ot as SupportedFabFileMimeTypes, p as AiAccessRefusedError, q as OpenAIEmbeddingModel, u as ARTIFACT_DELIVERED_PLACEHOLDER, vt as filterToolArtifactMarkup, xt as getEmbeddingModelCapabilities, y as BedrockEmbeddingModel } from "./Logger-D6QD3c7G.mjs";
|
|
3
3
|
import { b as ollamaNumCtx } from "./modelHub-BSB6qRFP.mjs";
|
|
4
4
|
import "crypto";
|
|
5
5
|
import path from "path";
|
|
@@ -13,6 +13,7 @@ import https from "https";
|
|
|
13
13
|
import OpenAI from "openai";
|
|
14
14
|
import { Agent } from "undici";
|
|
15
15
|
import { Ollama } from "ollama";
|
|
16
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
16
17
|
import { createParser } from "eventsource-parser";
|
|
17
18
|
//#region ../../b4m-core/observability/dist/index.mjs
|
|
18
19
|
const REDACTED = "[REDACTED]";
|
|
@@ -720,14 +721,14 @@ var BaseStorage = class {
|
|
|
720
721
|
}
|
|
721
722
|
};
|
|
722
723
|
new Map(EMBEDDING_MODEL_IDS.filter(isSupportedEmbeddingModel).map((model) => [model, getEmbeddingModelCapabilities(model).dimensions.native]));
|
|
723
|
-
ChatModels.KIMI_K3;
|
|
724
|
-
ChatModels.KIMI_K2_7_CODE, ChatModels.KIMI_K2_7_CODE_HIGHSPEED, ChatModels.KIMI_K2_6
|
|
724
|
+
ChatModels.KIMI_K3, ChatModels.KIMI_K3_1_PRO;
|
|
725
|
+
ChatModels.KIMI_K2_7_CODE, ChatModels.KIMI_K2_7_CODE_HIGHSPEED, ChatModels.KIMI_K2_6;
|
|
725
726
|
ChatModels.KIMI_K2_7_CODE, ChatModels.KIMI_K2_7_CODE_HIGHSPEED;
|
|
726
727
|
ChatModels.KIMI_K2_7_CODE, ChatModels.KIMI_K2_7_CODE_HIGHSPEED, ChatModels.KIMI_K2_6;
|
|
727
|
-
ChatModels.KIMI_K3, ChatModels.
|
|
728
|
-
ChatModels.KIMI_K2_THINKING_BEDROCK, ChatModels.KIMI_K2_5_BEDROCK, ChatModels.DEEPSEEK_R1_BEDROCK, ChatModels.DEEPSEEK_FLASH, ChatModels.DEEPSEEK_V4_PRO, ChatModels.KIMI_K3, ChatModels.
|
|
728
|
+
ChatModels.KIMI_K3, ChatModels.KIMI_K3_1_PRO, ChatModels.KIMI_K2_7_CODE, ChatModels.KIMI_K2_7_CODE_HIGHSPEED, ChatModels.KIMI_K2_6;
|
|
729
|
+
ChatModels.KIMI_K2_THINKING_BEDROCK, ChatModels.KIMI_K2_5_BEDROCK, ChatModels.DEEPSEEK_R1_BEDROCK, ChatModels.DEEPSEEK_FLASH, ChatModels.DEEPSEEK_V4_PRO, ChatModels.KIMI_K3, ChatModels.KIMI_K3_1_PRO, ChatModels.KIMI_K2_7_CODE, ChatModels.KIMI_K2_7_CODE_HIGHSPEED, ChatModels.KIMI_K2_6;
|
|
729
730
|
ChatModels.CLAUDE_4_7_OPUS, ChatModels.CLAUDE_4_7_OPUS_BEDROCK, ChatModels.CLAUDE_4_8_OPUS, ChatModels.CLAUDE_4_8_OPUS_BEDROCK, ChatModels.CLAUDE_5_SONNET, ChatModels.CLAUDE_5_SONNET_BEDROCK, ChatModels.CLAUDE_5_OPUS, ChatModels.CLAUDE_5_OPUS_BEDROCK, ChatModels.CLAUDE_5_5_HAIKU, ChatModels.CLAUDE_5_5_HAIKU_BEDROCK, ChatModels.CLAUDE_5_5_SONNET, ChatModels.CLAUDE_5_5_SONNET_BEDROCK;
|
|
730
|
-
ChatModels.CLAUDE_5_SONNET, ChatModels.CLAUDE_5_SONNET_BEDROCK, ChatModels.CLAUDE_5_5_SONNET, ChatModels.CLAUDE_5_5_SONNET_BEDROCK, ChatModels.CLAUDE_FABLE_5, ChatModels.CLAUDE_FABLE_5_BEDROCK, ChatModels.CLAUDE_FABLE_5_1_BEDROCK, ChatModels.CLAUDE_5_OPUS, ChatModels.CLAUDE_5_OPUS_BEDROCK, ChatModels.CLAUDE_5_5_OPUS, ChatModels.CLAUDE_5_5_OPUS_BEDROCK, ChatModels.CLAUDE_5_5_HAIKU, ChatModels.CLAUDE_5_5_HAIKU_BEDROCK;
|
|
731
|
+
ChatModels.CLAUDE_5_SONNET, ChatModels.CLAUDE_5_SONNET_BEDROCK, ChatModels.CLAUDE_5_5_SONNET, ChatModels.CLAUDE_5_5_SONNET_BEDROCK, ChatModels.CLAUDE_FABLE_5, ChatModels.CLAUDE_FABLE_5_1, ChatModels.CLAUDE_FABLE_5_2, ChatModels.CLAUDE_FABLE_5_BEDROCK, ChatModels.CLAUDE_FABLE_5_1_BEDROCK, ChatModels.CLAUDE_5_OPUS, ChatModels.CLAUDE_5_OPUS_BEDROCK, ChatModels.CLAUDE_5_5_OPUS, ChatModels.CLAUDE_5_5_OPUS_BEDROCK, ChatModels.CLAUDE_5_5_HAIKU, ChatModels.CLAUDE_5_5_HAIKU_BEDROCK;
|
|
731
732
|
ChatModels.DEEPSEEK_FLASH, ChatModels.DEEPSEEK_V4_PRO;
|
|
732
733
|
ModelBackend.Anthropic, ModelBackend.Gemini, ModelBackend.XAI, ModelBackend.Ollama, ModelBackend.BFL, ModelBackend.LocalImage, ModelBackend.AWS;
|
|
733
734
|
CompletionReasoningEffortSchema.options;
|
|
@@ -1531,7 +1532,7 @@ function appendIdentityReminderToMessages(messages, identityReminder) {
|
|
|
1531
1532
|
content: identityReminder
|
|
1532
1533
|
}, ...messages];
|
|
1533
1534
|
}
|
|
1534
|
-
ChatModels.CLAUDE_4_5_SONNET, ChatModels.
|
|
1535
|
+
ChatModels.CLAUDE_4_5_SONNET, ChatModels.CLAUDE_4_5_HAIKU, ChatModels.CLAUDE_4_6_SONNET, ChatModels.CLAUDE_4_6_OPUS;
|
|
1535
1536
|
/**
|
|
1536
1537
|
* A reasoning model spent its whole output budget thinking and produced no answer
|
|
1537
1538
|
* (finish_reason: length). The same budget fails the same way, so callers must not retry it.
|
|
@@ -2415,12 +2416,14 @@ var OllamaBackend = class OllamaBackend {
|
|
|
2415
2416
|
}
|
|
2416
2417
|
};
|
|
2417
2418
|
ChatModels.O1_PREVIEW, ChatModels.O1_MINI, ChatModels.O1, ChatModels.O3_MINI, ChatModels.O3, ChatModels.O4_MINI;
|
|
2418
|
-
ChatModels.GPT5, ChatModels.GPT5_2025_08_07, ChatModels.GPT5_MINI, ChatModels.GPT5_NANO
|
|
2419
|
-
ChatModels.GPT5_1
|
|
2419
|
+
ChatModels.GPT5, ChatModels.GPT5_2025_08_07, ChatModels.GPT5_MINI, ChatModels.GPT5_NANO;
|
|
2420
|
+
ChatModels.GPT5_1;
|
|
2420
2421
|
ChatModels.GPT5_2, ChatModels.GPT5_2_CHAT_LATEST;
|
|
2421
2422
|
ChatModels.GPT5_4, ChatModels.GPT5_4_MINI, ChatModels.GPT5_4_MINI_2026_03_17, ChatModels.GPT5_4_NANO;
|
|
2422
2423
|
ChatModels.GPT5_5;
|
|
2423
2424
|
ChatModels.GPT5_6_SOL, ChatModels.GPT5_6_LUNA, ChatModels.GPT5_6_TERRA;
|
|
2425
|
+
ChatModels.GPT6_2_ASTRA, ChatModels.GPT6_2_SOL, ChatModels.GPT6_1_TERRA, ChatModels.GPT6_LUNA;
|
|
2426
|
+
new AsyncLocalStorage();
|
|
2424
2427
|
ModelBackend.Bedrock, ModelBackend.AWS, ModelBackend.OpenAI, ModelBackend.Anthropic, ModelBackend.Gemini, ModelBackend.Ollama, ModelBackend.OpenAICompatible, ModelBackend.BFL, ModelBackend.XAI, ModelBackend.Kimi, ModelBackend.DeepSeek, ModelBackend.LocalImage, ModelBackend.VoyageAI;
|
|
2425
2428
|
Object.values(ModelBackend);
|
|
2426
2429
|
Object.entries(MODEL_INFO_FIELD_GROUP_OF);
|
|
@@ -9196,6 +9199,10 @@ const operations = {
|
|
|
9196
9199
|
method: "POST",
|
|
9197
9200
|
path: "/api/v1/files/bulk-delete"
|
|
9198
9201
|
},
|
|
9202
|
+
cancelFunctionCall: {
|
|
9203
|
+
method: "POST",
|
|
9204
|
+
path: "/api/v1/functions/calls/{call_id}/cancel"
|
|
9205
|
+
},
|
|
9199
9206
|
cancelImageJob: {
|
|
9200
9207
|
method: "POST",
|
|
9201
9208
|
path: "/api/v1/image-jobs/{id}/cancel"
|
|
@@ -9276,6 +9283,10 @@ const operations = {
|
|
|
9276
9283
|
method: "POST",
|
|
9277
9284
|
path: "/api/v1/files"
|
|
9278
9285
|
},
|
|
9286
|
+
createFunction: {
|
|
9287
|
+
method: "POST",
|
|
9288
|
+
path: "/api/v1/functions"
|
|
9289
|
+
},
|
|
9279
9290
|
createImageJob: {
|
|
9280
9291
|
method: "POST",
|
|
9281
9292
|
path: "/api/v1/image-jobs"
|
|
@@ -9300,6 +9311,10 @@ const operations = {
|
|
|
9300
9311
|
method: "POST",
|
|
9301
9312
|
path: "/api/v1/sessions"
|
|
9302
9313
|
},
|
|
9314
|
+
createSessionTurn: {
|
|
9315
|
+
method: "POST",
|
|
9316
|
+
path: "/api/v1/turns"
|
|
9317
|
+
},
|
|
9303
9318
|
createSkill: {
|
|
9304
9319
|
method: "POST",
|
|
9305
9320
|
path: "/api/v1/skills"
|
|
@@ -9348,6 +9363,10 @@ const operations = {
|
|
|
9348
9363
|
method: "DELETE",
|
|
9349
9364
|
path: "/api/v1/files/{id}"
|
|
9350
9365
|
},
|
|
9366
|
+
deleteFunction: {
|
|
9367
|
+
method: "DELETE",
|
|
9368
|
+
path: "/api/v1/functions/{id}"
|
|
9369
|
+
},
|
|
9351
9370
|
deletePersona: {
|
|
9352
9371
|
method: "DELETE",
|
|
9353
9372
|
path: "/api/v1/personas/{id}"
|
|
@@ -9392,6 +9411,10 @@ const operations = {
|
|
|
9392
9411
|
method: "POST",
|
|
9393
9412
|
path: "/api/v1/tools/web-fetch"
|
|
9394
9413
|
},
|
|
9414
|
+
findFunctionRecipient: {
|
|
9415
|
+
method: "GET",
|
|
9416
|
+
path: "/api/v1/functions/{id}/recipient"
|
|
9417
|
+
},
|
|
9395
9418
|
generateAgentAvatar: {
|
|
9396
9419
|
method: "POST",
|
|
9397
9420
|
path: "/api/v1/agents/{id}/generate-avatar"
|
|
@@ -9432,6 +9455,10 @@ const operations = {
|
|
|
9432
9455
|
method: "GET",
|
|
9433
9456
|
path: "/api/v1/artifacts/{id}/versions/{version}"
|
|
9434
9457
|
},
|
|
9458
|
+
getAuthoredFunction: {
|
|
9459
|
+
method: "GET",
|
|
9460
|
+
path: "/api/v1/functions/{id}/source"
|
|
9461
|
+
},
|
|
9435
9462
|
getBrief: {
|
|
9436
9463
|
method: "GET",
|
|
9437
9464
|
path: "/api/v1/briefs/{id}"
|
|
@@ -9520,10 +9547,22 @@ const operations = {
|
|
|
9520
9547
|
method: "GET",
|
|
9521
9548
|
path: "/api/v1/functions/calls/{call_id}"
|
|
9522
9549
|
},
|
|
9550
|
+
getFunctionCallSummary: {
|
|
9551
|
+
method: "GET",
|
|
9552
|
+
path: "/api/v1/functions/{id}/calls"
|
|
9553
|
+
},
|
|
9554
|
+
getFunctionShare: {
|
|
9555
|
+
method: "GET",
|
|
9556
|
+
path: "/api/v1/functions/{id}/share"
|
|
9557
|
+
},
|
|
9523
9558
|
getImageJob: {
|
|
9524
9559
|
method: "GET",
|
|
9525
9560
|
path: "/api/v1/image-jobs/{id}"
|
|
9526
9561
|
},
|
|
9562
|
+
getInterruptionFeedback: {
|
|
9563
|
+
method: "GET",
|
|
9564
|
+
path: "/api/v1/assistant/interruptions"
|
|
9565
|
+
},
|
|
9527
9566
|
getMe: {
|
|
9528
9567
|
method: "GET",
|
|
9529
9568
|
path: "/api/v1/me"
|
|
@@ -9616,6 +9655,10 @@ const operations = {
|
|
|
9616
9655
|
method: "GET",
|
|
9617
9656
|
path: "/api/v1/assistant/instructions"
|
|
9618
9657
|
},
|
|
9658
|
+
listAuthoredFunctions: {
|
|
9659
|
+
method: "GET",
|
|
9660
|
+
path: "/api/v1/functions/mine"
|
|
9661
|
+
},
|
|
9619
9662
|
listBriefs: {
|
|
9620
9663
|
method: "GET",
|
|
9621
9664
|
path: "/api/v1/briefs"
|
|
@@ -9756,10 +9799,18 @@ const operations = {
|
|
|
9756
9799
|
method: "POST",
|
|
9757
9800
|
path: "/api/v1/personas"
|
|
9758
9801
|
},
|
|
9802
|
+
pinFunctionData: {
|
|
9803
|
+
method: "POST",
|
|
9804
|
+
path: "/api/v1/functions/{id}/data"
|
|
9805
|
+
},
|
|
9759
9806
|
postSlackMessage: {
|
|
9760
9807
|
method: "POST",
|
|
9761
9808
|
path: "/api/v1/slack/messages"
|
|
9762
9809
|
},
|
|
9810
|
+
promoteFunction: {
|
|
9811
|
+
method: "POST",
|
|
9812
|
+
path: "/api/v1/functions/{id}/promote"
|
|
9813
|
+
},
|
|
9763
9814
|
publishArtifact: {
|
|
9764
9815
|
method: "POST",
|
|
9765
9816
|
path: "/api/v1/artifacts/{id}/publish"
|
|
@@ -9820,10 +9871,22 @@ const operations = {
|
|
|
9820
9871
|
method: "POST",
|
|
9821
9872
|
path: "/api/v1/briefs/{id}/decisions/{decisionId}/resolve"
|
|
9822
9873
|
},
|
|
9874
|
+
reviewFunction: {
|
|
9875
|
+
method: "POST",
|
|
9876
|
+
path: "/api/v1/functions/{id}/review"
|
|
9877
|
+
},
|
|
9823
9878
|
reviewSkillMarketVersion: {
|
|
9824
9879
|
method: "POST",
|
|
9825
9880
|
path: "/api/v1/skills/market/versions/{vid}/review"
|
|
9826
9881
|
},
|
|
9882
|
+
runFunctionTests: {
|
|
9883
|
+
method: "POST",
|
|
9884
|
+
path: "/api/v1/functions/{id}/test-runs"
|
|
9885
|
+
},
|
|
9886
|
+
saveFunctionCode: {
|
|
9887
|
+
method: "PUT",
|
|
9888
|
+
path: "/api/v1/functions/{id}/code"
|
|
9889
|
+
},
|
|
9827
9890
|
searchArtifacts: {
|
|
9828
9891
|
method: "GET",
|
|
9829
9892
|
path: "/api/v1/artifacts/search"
|
|
@@ -9852,6 +9915,22 @@ const operations = {
|
|
|
9852
9915
|
method: "POST",
|
|
9853
9916
|
path: "/api/v1/session-handoffs"
|
|
9854
9917
|
},
|
|
9918
|
+
setFunctionExamples: {
|
|
9919
|
+
method: "PUT",
|
|
9920
|
+
path: "/api/v1/functions/{id}/examples"
|
|
9921
|
+
},
|
|
9922
|
+
setFunctionSources: {
|
|
9923
|
+
method: "PUT",
|
|
9924
|
+
path: "/api/v1/functions/{id}/sources"
|
|
9925
|
+
},
|
|
9926
|
+
setInterruptionFeedback: {
|
|
9927
|
+
method: "PUT",
|
|
9928
|
+
path: "/api/v1/assistant/interruptions"
|
|
9929
|
+
},
|
|
9930
|
+
shareFunction: {
|
|
9931
|
+
method: "PUT",
|
|
9932
|
+
path: "/api/v1/functions/{id}/share"
|
|
9933
|
+
},
|
|
9855
9934
|
startAgentExecution: {
|
|
9856
9935
|
method: "POST",
|
|
9857
9936
|
path: "/api/v1/agent-executions"
|
|
@@ -9876,6 +9955,10 @@ const operations = {
|
|
|
9876
9955
|
method: "POST",
|
|
9877
9956
|
path: "/api/v1/data-lakes/{id}/config-history/{event_id}/undo"
|
|
9878
9957
|
},
|
|
9958
|
+
unpinFunctionData: {
|
|
9959
|
+
method: "DELETE",
|
|
9960
|
+
path: "/api/v1/functions/{id}/data/{name}"
|
|
9961
|
+
},
|
|
9879
9962
|
unpublishArtifact: {
|
|
9880
9963
|
method: "DELETE",
|
|
9881
9964
|
path: "/api/v1/artifacts/{id}/publish"
|
|
@@ -9884,6 +9967,10 @@ const operations = {
|
|
|
9884
9967
|
method: "DELETE",
|
|
9885
9968
|
path: "/api/v1/push-tokens"
|
|
9886
9969
|
},
|
|
9970
|
+
unshareFunction: {
|
|
9971
|
+
method: "DELETE",
|
|
9972
|
+
path: "/api/v1/functions/{id}/share"
|
|
9973
|
+
},
|
|
9887
9974
|
updateAgent: {
|
|
9888
9975
|
method: "PATCH",
|
|
9889
9976
|
path: "/api/v1/agents/{id}"
|
|
@@ -9900,6 +9987,10 @@ const operations = {
|
|
|
9900
9987
|
method: "PATCH",
|
|
9901
9988
|
path: "/api/v1/files/{id}"
|
|
9902
9989
|
},
|
|
9990
|
+
updateFunction: {
|
|
9991
|
+
method: "PATCH",
|
|
9992
|
+
path: "/api/v1/functions/{id}"
|
|
9993
|
+
},
|
|
9903
9994
|
updateObligation: {
|
|
9904
9995
|
method: "PATCH",
|
|
9905
9996
|
path: "/api/v1/obligations/{id}"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./Logger-
|
|
2
|
+
import "./Logger-D6QD3c7G.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-hEkaJgsy.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-Ca1l2hMC.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { homedir } from "node:os";
|
|
9
9
|
//#region src/models/curatedList.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as signInUncheckedMessage, A as FallbackLlmBackend, B as DEFAULT_THOROUGHNESS, C as resetTodoStore, D as createResumeAgentTool, E as createCoordinateTaskTool, G as SIGN_IN_DURING_TURN, H as LOGGED_OUT_RESTART, I as ALWAYS_DENIED_FOR_AGENTS, J as SIGN_IN_HINT, K as SIGN_IN_EXPIRED, L as DEFAULT_AGENT_MODEL, M as substituteArguments, N as PermissionManager, O as createBackgroundAgentTools, P as buildCliToolList, Q as signInUncheckedLoginMessage, R as DEFAULT_MAX_ITERATIONS, S as createWriteTodosTool, St as COMPACTION_SUMMARY_MARKER, T as parseAgentConfig, U as NoLocalModelsError, V as LOCAL_SESSION_CONTINUES, W as SIGNED_OUT_BANNER, X as loginBlocked, _t as CommandHistoryStore, b as createFindDefinitionTool, bt as searchFiles, c as checkSavedSignIn, ct as wrapTools, et as signedOutCommandMessage, f as buildLlmBackend, ft as getPlanModeFilePath, gt as CheckpointStore, ht as hasFileReferences, j as isConnectionDrop, k as createAgentDelegateTool, l as settleSignInRefresh, lt as getProcessHooks, mt as processFileReferences, nt as buildSystemPrompt, pt as CustomCommandStore, rt as buildSkillsPromptSection, s as buildSandbox, st as findIterationBoundary, tt as signedOutNoMatchMessage, u as startupMode, ut as setWebSocketToolExecutor, v as createGetFileStructureTool, vt as SessionStore, w as createSkillTool, wt as MAX_PASTE_SIZE, x as createTodoStore, xt as warmFileCache, y as createWorkItemTools, yt as formatFileSize, z as DEFAULT_RETRY_CONFIG } from "./AgentHistoryStore-
|
|
3
|
-
import { D as sanitizeTerminalText, E as escapeTerminalControlChars, S as LOCAL_DEV_URL, T as parseApiUrl, _ as getEnvironmentName, c as ToolCatalog, g as getDefaultApiUrl, h as getCreditsUrl, m as ApiEndpointUnconfiguredError, o as extractCompactInstructions, t as ConfigStore, v as requireApiUrl, y as resolveApiEndpoint } from "./ConfigStore-
|
|
2
|
+
import { $ as signInUncheckedMessage, A as FallbackLlmBackend, B as DEFAULT_THOROUGHNESS, C as resetTodoStore, D as createResumeAgentTool, E as createCoordinateTaskTool, G as SIGN_IN_DURING_TURN, H as LOGGED_OUT_RESTART, I as ALWAYS_DENIED_FOR_AGENTS, J as SIGN_IN_HINT, K as SIGN_IN_EXPIRED, L as DEFAULT_AGENT_MODEL, M as substituteArguments, N as PermissionManager, O as createBackgroundAgentTools, P as buildCliToolList, Q as signInUncheckedLoginMessage, R as DEFAULT_MAX_ITERATIONS, S as createWriteTodosTool, St as COMPACTION_SUMMARY_MARKER, T as parseAgentConfig, U as NoLocalModelsError, V as LOCAL_SESSION_CONTINUES, W as SIGNED_OUT_BANNER, X as loginBlocked, _t as CommandHistoryStore, b as createFindDefinitionTool, bt as searchFiles, c as checkSavedSignIn, ct as wrapTools, et as signedOutCommandMessage, f as buildLlmBackend, ft as getPlanModeFilePath, gt as CheckpointStore, ht as hasFileReferences, j as isConnectionDrop, k as createAgentDelegateTool, l as settleSignInRefresh, lt as getProcessHooks, mt as processFileReferences, nt as buildSystemPrompt, pt as CustomCommandStore, rt as buildSkillsPromptSection, s as buildSandbox, st as findIterationBoundary, tt as signedOutNoMatchMessage, u as startupMode, ut as setWebSocketToolExecutor, v as createGetFileStructureTool, vt as SessionStore, w as createSkillTool, wt as MAX_PASTE_SIZE, x as createTodoStore, xt as warmFileCache, y as createWorkItemTools, yt as formatFileSize, z as DEFAULT_RETRY_CONFIG } from "./AgentHistoryStore-DrZ47hqO.mjs";
|
|
3
|
+
import { D as sanitizeTerminalText, E as escapeTerminalControlChars, S as LOCAL_DEV_URL, T as parseApiUrl, _ as getEnvironmentName, c as ToolCatalog, g as getDefaultApiUrl, h as getCreditsUrl, m as ApiEndpointUnconfiguredError, o as extractCompactInstructions, t as ConfigStore, v as requireApiUrl, y as resolveApiEndpoint } from "./ConfigStore-DfuE49PH.mjs";
|
|
4
4
|
import { a as selectLiveSubagentTokens, i as selectLiveSubagentCredits, n as selectActiveBackgroundShells, o as useCliStore, r as selectCompletedBackgroundShells, t as selectActiveBackgroundAgents } from "./store-CmOg7JIt.mjs";
|
|
5
|
-
import { a as extractErrorMessage$1 } from "./dist-
|
|
6
|
-
import { C as CREDIT_DEDUCT_TRANSACTION_TYPES, Et as isEarlyStop,
|
|
5
|
+
import { a as extractErrorMessage$1 } from "./dist-De8Q0ivE.mjs";
|
|
6
|
+
import { Bt as planProgress, C as CREDIT_DEDUCT_TRANSACTION_TYPES, Et as isEarlyStop, Qt as tokenEstimateMultiplier, T as ChatModels, an as ACTOR_COLOR_SLOTS, cn as actorKindMarker, dn as selfClaimedActorKindSchema, ln as actorKindSchema, n as SESSION_ID_PATTERN, on as DELEGATION_PAYLOAD_SCHEMA_NAME, r as isValidSessionId, sn as actorColorIndex, t as logger, un as delegationPayloadSchema, zt as planLeaves } from "./Logger-D6QD3c7G.mjs";
|
|
7
7
|
import { a as rewireReservedNames, i as mergeCommands, n as COMMANDS, t as RemoteSkillSource } from "./RemoteSkillSource-HqoLRV56.mjs";
|
|
8
8
|
import { r as isFeatureEnabled, t as PluginStore } from "./PluginStore-DwvOJ-G3.mjs";
|
|
9
|
-
import { i as getTokenCounter, n as ConversationContext, r as reconstructTurnBlocks, t as WorkItemsClient } from "./WorkItemsClient-
|
|
9
|
+
import { i as getTokenCounter, n as ConversationContext, r as reconstructTurnBlocks, t as WorkItemsClient } from "./WorkItemsClient-sUftLgOz.mjs";
|
|
10
10
|
import { t as getShellSessionManager } from "./ShellSessionManager-6o8KZzl1-vrbPAUTq.mjs";
|
|
11
|
-
import { r as OAuthClient, t as ApiClient } from "./ApiClient-
|
|
12
|
-
import { t as version } from "./package-
|
|
13
|
-
import { a as NotifyingLlmBackend, i as deferredToolRegistry, n as buildAgent, r as buildSupportingStores, t as buildToolSearch } from "./buildToolSearch-
|
|
14
|
-
import { s as getStartupUpdateStatus } from "./updateChecker-
|
|
11
|
+
import { r as OAuthClient, t as ApiClient } from "./ApiClient-B8VxyNEM.mjs";
|
|
12
|
+
import { t as version } from "./package-hEkaJgsy.mjs";
|
|
13
|
+
import { a as NotifyingLlmBackend, i as deferredToolRegistry, n as buildAgent, r as buildSupportingStores, t as buildToolSearch } from "./buildToolSearch-Bb-DPCb0.mjs";
|
|
14
|
+
import { s as getStartupUpdateStatus } from "./updateChecker-dZqiMftm.mjs";
|
|
15
15
|
import React, { createContext, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
16
16
|
import { Box, Static, Text, measureElement, render, useApp, useInput, usePaste, useStdin, useStdout } from "ink";
|
|
17
17
|
import { formatWithOptions, promisify } from "node:util";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { D as sanitizeTerminalText } from "./ConfigStore-
|
|
2
|
+
import { D as sanitizeTerminalText } from "./ConfigStore-DfuE49PH.mjs";
|
|
3
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";
|