@bike4mind/cli 4.8.0 → 4.9.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/README.md +21 -0
- package/bin/bike4mind-cli.mjs +342 -239
- package/dist/{AgentHistoryStore-Bvmcy2kf.mjs → AgentHistoryStore-jktM0SmD.mjs} +125 -64
- package/dist/{ApiClient-Yp2LPlX3.mjs → ApiClient-CczpydlW.mjs} +3 -3
- package/dist/{BubblewrapRuntime-OI4qFPNB.mjs → BubblewrapRuntime-aGfDSJPY.mjs} +2 -2
- package/dist/ConfigStore-BAJ4hIHa.mjs +2 -0
- package/dist/{ConfigStore-CP1W86Ui.mjs → ConfigStore-CO6kREaL.mjs} +2 -2
- package/dist/{Logger-3RbeTZ9o.mjs → Logger-CHKCF5hd.mjs} +3334 -336
- package/dist/{SandboxOrchestrator-lpxVEFO7.mjs → SandboxOrchestrator-ULWvuUct.mjs} +1 -1
- package/dist/{SandboxRuntimeAdapter-C3xICJtQ.mjs → SandboxRuntimeAdapter-DpDSET-A.mjs} +2 -2
- package/dist/{SandboxRuntimeAdapter-u6c_IrjP.mjs → SandboxRuntimeAdapter-FpZRkE6D.mjs} +1 -1
- package/dist/{SeatbeltRuntime-Ccd_QbjX.mjs → SeatbeltRuntime-C0GJ3nnY.mjs} +2 -2
- package/dist/{WorkItemsClient-D4sFGL9X.mjs → WorkItemsClient-aCxMV_Wm.mjs} +1 -1
- package/dist/{buildToolSearch-CqHKSLtG.mjs → buildToolSearch-CbLeZ5wP.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/hostCommand.mjs +1 -1
- 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-BPhZ0dCz.mjs → dist-BOxr8LQA.mjs} +138 -2
- package/dist/{fit-BOnDsgbk.mjs → fit-BHDTSpfd.mjs} +3 -3
- package/dist/index.mjs +288 -30
- package/dist/{modelServers-B7zI5XnO.mjs → modelServers-CVufZd1f.mjs} +1 -1
- package/dist/{package-WlxLVpUb.mjs → package-TACInPbw.mjs} +1 -1
- package/dist/{serve-DpsV0mag.mjs → serve-OywSzShu.mjs} +726 -59
- package/dist/{store-xeJRhBtO.mjs → store-CmOg7JIt.mjs} +2 -0
- package/dist/store-OGMXhD4A.mjs +2 -0
- package/dist/{updateChecker-Boq0RruU.mjs → updateChecker-5v_8LhXy.mjs} +1 -1
- package/package.json +12 -12
- package/dist/ConfigStore-Bo4od3Eu.mjs +0 -2
- package/dist/store-Bpdo9Syo.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-DpDSET-A.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-
|
|
181
|
+
const { SeatbeltRuntime } = await import("./SeatbeltRuntime-C0GJ3nnY.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-aGfDSJPY.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-
|
|
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-DpDSET-A.mjs";
|
|
@@ -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-CHKCF5hd.mjs";
|
|
3
|
+
import { a as getContainerSocketPaths, c as resolveSandboxPath, o as getProtectedWorkspacePaths, s as isBinaryAvailable, t as assertProxyPort } from "./SandboxRuntimeAdapter-DpDSET-A.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 { $t as tokenEstimateMultiplier } from "./Logger-CHKCF5hd.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 {
|
|
3
|
-
import {
|
|
2
|
+
import { W as generateCliTools, _t as wrapTools, a as loadProjectContext, dt as buildSystemPrompt, ht as createToolSearchTool, i as buildProjectAgentStore, mt as ReActAgent, n as BackgroundAgentManager, o as McpManager, pt as DeferredToolRegistry, r as SubagentOrchestrator, t as AgentHistoryStore, xt as getPlanModeFilePath } from "./AgentHistoryStore-jktM0SmD.mjs";
|
|
3
|
+
import { ht as completionsSupportsToolSearch, t as logger } from "./Logger-CHKCF5hd.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,
|
|
3
|
-
import { c as ToolCatalog, t as ConfigStore, v as requireApiUrl } from "../ConfigStore-
|
|
4
|
-
import { t as logger } from "../Logger-
|
|
2
|
+
import { A as createTodoStore, D as createGetFileStructureTool, Dt as SessionStore, F as createCoordinateTaskTool, H as PermissionManager, I as createResumeAgentTool, L as createBackgroundAgentTools, N as createSkillTool, Q as NoLocalModelsError, R as createAgentDelegateTool, St as CustomCommandStore, Tt as CheckpointStore, U as buildCliToolList, c as checkSavedSignIn, f as buildLlmBackend, j as createWriteTodosTool, k as createFindDefinitionTool, l as settleSignInRefresh, nt as SIGN_IN_EXPIRED_HEADLESS, ot as signInUncheckedHeadlessMessage, s as buildSandbox, yt as setWebSocketToolExecutor, z as FallbackLlmBackend } from "../AgentHistoryStore-jktM0SmD.mjs";
|
|
3
|
+
import { c as ToolCatalog, t as ConfigStore, v as requireApiUrl } from "../ConfigStore-CO6kREaL.mjs";
|
|
4
|
+
import { t as logger } from "../Logger-CHKCF5hd.mjs";
|
|
5
5
|
import { t as RemoteSkillSource } from "../RemoteSkillSource-D_F99yBR.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-CczpydlW.mjs";
|
|
7
|
+
import { a as NotifyingLlmBackend, i as deferredToolRegistry, n as buildAgent, r as buildSupportingStores, t as buildToolSearch } from "../buildToolSearch-CbLeZ5wP.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-CO6kREaL.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-TACInPbw.mjs";
|
|
3
|
+
import { c as isNpmPrefixWritable, i as fetchLatestVersion, r as compareSemver } from "../updateChecker-5v_8LhXy.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 createTodoStore, D as createGetFileStructureTool,
|
|
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 createTodoStore, D as createGetFileStructureTool, Dt as SessionStore, F as createCoordinateTaskTool, H as PermissionManager, I as createResumeAgentTool, L as createBackgroundAgentTools, N as createSkillTool, O as createWorkItemTools, R as createAgentDelegateTool, St as CustomCommandStore, Tt as CheckpointStore, U as buildCliToolList, W as generateCliTools, _ as createSseBackend, _t as wrapTools, a as loadProjectContext, bt as classifyCommandRisk, c as checkSavedSignIn, d as attachLocalModels, dt as buildSystemPrompt, g as withSignedOutLocalDefault, h as resolveSignedOutHeadlessModel, i as buildProjectAgentStore, it as SignedOutCloudBackend, j as createWriteTodosTool, k as createFindDefinitionTool, l as settleSignInRefresh, m as resolveHeadlessModel, mt as ReActAgent, n as BackgroundAgentManager, nt as SIGN_IN_EXPIRED_HEADLESS, o as McpManager, ot as signInUncheckedHeadlessMessage, p as defaultLlmBackendDeps, r as SubagentOrchestrator, s as buildSandbox, t as AgentHistoryStore, yt as setWebSocketToolExecutor, z as FallbackLlmBackend } from "../AgentHistoryStore-jktM0SmD.mjs";
|
|
3
|
+
import { D as sanitizeTerminalText, c as ToolCatalog, f as toolCategory, l as commandTextOf, t as ConfigStore, v as requireApiUrl } from "../ConfigStore-CO6kREaL.mjs";
|
|
4
|
+
import { l as OllamaBackend, u as OpenAICompatibleBackend } from "../dist-BOxr8LQA.mjs";
|
|
5
|
+
import { t as logger } from "../Logger-CHKCF5hd.mjs";
|
|
6
6
|
import { t as RemoteSkillSource } from "../RemoteSkillSource-D_F99yBR.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-aCxMV_Wm.mjs";
|
|
8
|
+
import { t as ApiClient } from "../ApiClient-CczpydlW.mjs";
|
|
9
9
|
import { randomBytes } from "crypto";
|
|
10
10
|
import { v4 } from "uuid";
|
|
11
11
|
import { readFile } from "fs/promises";
|
|
@@ -1,11 +1,11 @@
|
|
|
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
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
|
+
import { parseArgs } from "node:util";
|
|
4
5
|
import { join } from "node:path";
|
|
5
6
|
import { constants } from "node:fs";
|
|
6
7
|
import { z as z$1 } from "zod";
|
|
7
8
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
8
|
-
import { parseArgs } from "node:util";
|
|
9
9
|
import { homedir, hostname, userInfo } from "node:os";
|
|
10
10
|
import { appendFile, chmod, chown, lstat, mkdir, open, readFile, readdir, rename, rm, stat, statfs } from "node:fs/promises";
|
|
11
11
|
import { connect, createConnection, createServer } from "node:net";
|
|
@@ -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-CO6kREaL.mjs";
|
|
3
|
+
import { t as version } from "../package-TACInPbw.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-OywSzShu.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-CO6kREaL.mjs";
|
|
3
|
+
import { t as ApiClient } from "../ApiClient-CczpydlW.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-CO6kREaL.mjs";
|
|
3
|
+
import "../Logger-CHKCF5hd.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-CVufZd1f.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-BHDTSpfd.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-CO6kREaL.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-CO6kREaL.mjs";
|
|
3
|
+
import { hn as splitSkillMdFrontmatter, mn as readSkillMdSourceUrl } from "../Logger-CHKCF5hd.mjs";
|
|
4
4
|
import { r as isReservedCommandName, t as RemoteSkillSource } from "../RemoteSkillSource-D_F99yBR.mjs";
|
|
5
|
-
import { t as ApiClient } from "../ApiClient-
|
|
5
|
+
import { t as ApiClient } from "../ApiClient-CczpydlW.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-TACInPbw.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-5v_8LhXy.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 {
|
|
2
|
+
import { E as CompletionReasoningEffortSchema, Et as hasDeliverablePinnedArtifact, F as EMBEDDING_MODEL_IDS, Ft as isUserInitiatedAbort, Gt as resolveSettingDefinition, H as MODEL_INFO_FIELD_GROUP_OF, K as OllamaEmbeddingModel, Nt as isSupportedEmbeddingModel, Ot as isEnforceCreditsLocked, P as EMBEDDING_MODEL_CATALOG, Pt as isSupportedFabFileMimeType, S as CONTEXT_WINDOW_SAFETY_BUFFER_TOKENS, St as getEmbeddingModelCapabilities, T as ChatModels, W as ModelBackend, Xt as stripDeliveredArtifactBlocks, Y as PermissionDeniedError, Zt as stripToolArtifactMarkup, _ as AudioMimeType, _n as WEBSITE_URL, _t as createThinkMarkerEscaper, ct as SupportedFabFileMimeTypes, d as ARTIFACT_REMOVED_PLACEHOLDER, dt as VoyageAIEmbeddingModel, f as AdminAiStoredConfigSchema, gn as APP_NAME, kt as isExpectedToolError, p as AiAccessRefusedError, q as OpenAIEmbeddingModel, qt as servableEmbeddingDimensions, rn as visibleReplyText, u as ARTIFACT_DELIVERED_PLACEHOLDER, vt as escapeThinkMarkers, wt as getQuestErrorCode, y as BedrockEmbeddingModel, yt as filterToolArtifactMarkup } from "./Logger-CHKCF5hd.mjs";
|
|
3
3
|
import { b as ollamaNumCtx } from "./modelHub-BSB6qRFP.mjs";
|
|
4
4
|
import "crypto";
|
|
5
5
|
import path from "path";
|
|
@@ -3976,6 +3976,10 @@ const operations = {
|
|
|
3976
3976
|
method: "POST",
|
|
3977
3977
|
path: "/api/v1/files/bulk-delete"
|
|
3978
3978
|
},
|
|
3979
|
+
cancelImageJob: {
|
|
3980
|
+
method: "POST",
|
|
3981
|
+
path: "/api/v1/image-jobs/{id}/cancel"
|
|
3982
|
+
},
|
|
3979
3983
|
cancelMusicGeneration: {
|
|
3980
3984
|
method: "POST",
|
|
3981
3985
|
path: "/api/v1/music-generations/{id}/cancel"
|
|
@@ -3996,6 +4000,10 @@ const operations = {
|
|
|
3996
4000
|
method: "POST",
|
|
3997
4001
|
path: "/api/v1/sessions/{id}/clone"
|
|
3998
4002
|
},
|
|
4003
|
+
composeBrief: {
|
|
4004
|
+
method: "POST",
|
|
4005
|
+
path: "/api/v1/briefs"
|
|
4006
|
+
},
|
|
3999
4007
|
createAgent: {
|
|
4000
4008
|
method: "POST",
|
|
4001
4009
|
path: "/api/v1/agents"
|
|
@@ -4012,6 +4020,10 @@ const operations = {
|
|
|
4012
4020
|
method: "POST",
|
|
4013
4021
|
path: "/api/v1/artifacts/{id}/versions"
|
|
4014
4022
|
},
|
|
4023
|
+
createAssistantInstruction: {
|
|
4024
|
+
method: "POST",
|
|
4025
|
+
path: "/api/v1/assistant/instructions"
|
|
4026
|
+
},
|
|
4015
4027
|
createCompletion: {
|
|
4016
4028
|
method: "POST",
|
|
4017
4029
|
path: "/api/ai/v1/completions"
|
|
@@ -4020,6 +4032,10 @@ const operations = {
|
|
|
4020
4032
|
method: "POST",
|
|
4021
4033
|
path: "/api/v1/completion-runs"
|
|
4022
4034
|
},
|
|
4035
|
+
createDataLakeResearchConfig: {
|
|
4036
|
+
method: "POST",
|
|
4037
|
+
path: "/api/v1/data-lakes/{id}/research/configs"
|
|
4038
|
+
},
|
|
4023
4039
|
createDecision: {
|
|
4024
4040
|
method: "POST",
|
|
4025
4041
|
path: "/api/v1/decisions"
|
|
@@ -4032,6 +4048,10 @@ const operations = {
|
|
|
4032
4048
|
method: "POST",
|
|
4033
4049
|
path: "/api/v1/files"
|
|
4034
4050
|
},
|
|
4051
|
+
createImageJob: {
|
|
4052
|
+
method: "POST",
|
|
4053
|
+
path: "/api/v1/image-jobs"
|
|
4054
|
+
},
|
|
4035
4055
|
createMusicGeneration: {
|
|
4036
4056
|
method: "POST",
|
|
4037
4057
|
path: "/api/v1/music-generations"
|
|
@@ -4076,6 +4096,10 @@ const operations = {
|
|
|
4076
4096
|
method: "POST",
|
|
4077
4097
|
path: "/api/v1/voice/sessions"
|
|
4078
4098
|
},
|
|
4099
|
+
decideDataLakeProposal: {
|
|
4100
|
+
method: "POST",
|
|
4101
|
+
path: "/api/v1/data-lakes/{id}/proposals/{proposal_id}"
|
|
4102
|
+
},
|
|
4079
4103
|
deleteAgent: {
|
|
4080
4104
|
method: "DELETE",
|
|
4081
4105
|
path: "/api/v1/agents/{id}"
|
|
@@ -4084,6 +4108,14 @@ const operations = {
|
|
|
4084
4108
|
method: "DELETE",
|
|
4085
4109
|
path: "/api/v1/artifacts/{id}"
|
|
4086
4110
|
},
|
|
4111
|
+
deleteAssistantInstruction: {
|
|
4112
|
+
method: "DELETE",
|
|
4113
|
+
path: "/api/v1/assistant/instructions/{id}"
|
|
4114
|
+
},
|
|
4115
|
+
deleteDataLakeResearchConfig: {
|
|
4116
|
+
method: "DELETE",
|
|
4117
|
+
path: "/api/v1/data-lakes/{id}/research/configs/{config_id}"
|
|
4118
|
+
},
|
|
4087
4119
|
deleteFile: {
|
|
4088
4120
|
method: "DELETE",
|
|
4089
4121
|
path: "/api/v1/files/{id}"
|
|
@@ -4168,6 +4200,14 @@ const operations = {
|
|
|
4168
4200
|
method: "GET",
|
|
4169
4201
|
path: "/api/v1/artifacts/{id}/versions/{version}"
|
|
4170
4202
|
},
|
|
4203
|
+
getBrief: {
|
|
4204
|
+
method: "GET",
|
|
4205
|
+
path: "/api/v1/briefs/{id}"
|
|
4206
|
+
},
|
|
4207
|
+
getBriefSchedule: {
|
|
4208
|
+
method: "GET",
|
|
4209
|
+
path: "/api/v1/briefs/schedule"
|
|
4210
|
+
},
|
|
4171
4211
|
getClaudeBundleZip: {
|
|
4172
4212
|
method: "GET",
|
|
4173
4213
|
path: "/api/v1/skills/market/bundles/{id}/claude-plugin.zip"
|
|
@@ -4200,10 +4240,22 @@ const operations = {
|
|
|
4200
4240
|
method: "GET",
|
|
4201
4241
|
path: "/api/v1/data-lakes/{id}"
|
|
4202
4242
|
},
|
|
4243
|
+
getDataLakeConfigHistory: {
|
|
4244
|
+
method: "GET",
|
|
4245
|
+
path: "/api/v1/data-lakes/{id}/config-history"
|
|
4246
|
+
},
|
|
4203
4247
|
getDataLakeFile: {
|
|
4204
4248
|
method: "GET",
|
|
4205
4249
|
path: "/api/v1/data-lakes/{id}/files/{file_id}"
|
|
4206
4250
|
},
|
|
4251
|
+
getDataLakeResearchConfig: {
|
|
4252
|
+
method: "GET",
|
|
4253
|
+
path: "/api/v1/data-lakes/{id}/research/configs/{config_id}"
|
|
4254
|
+
},
|
|
4255
|
+
getDataLakeResearchRun: {
|
|
4256
|
+
method: "GET",
|
|
4257
|
+
path: "/api/v1/data-lakes/{id}/research/runs/{run_id}"
|
|
4258
|
+
},
|
|
4207
4259
|
getFile: {
|
|
4208
4260
|
method: "GET",
|
|
4209
4261
|
path: "/api/v1/files/{id}"
|
|
@@ -4216,6 +4268,10 @@ const operations = {
|
|
|
4216
4268
|
method: "GET",
|
|
4217
4269
|
path: "/api/v1/files/by-ids"
|
|
4218
4270
|
},
|
|
4271
|
+
getImageJob: {
|
|
4272
|
+
method: "GET",
|
|
4273
|
+
path: "/api/v1/image-jobs/{id}"
|
|
4274
|
+
},
|
|
4219
4275
|
getMe: {
|
|
4220
4276
|
method: "GET",
|
|
4221
4277
|
path: "/api/v1/me"
|
|
@@ -4224,6 +4280,10 @@ const operations = {
|
|
|
4224
4280
|
method: "GET",
|
|
4225
4281
|
path: "/api/v1/music-generations/{id}"
|
|
4226
4282
|
},
|
|
4283
|
+
getPendingDecisionCount: {
|
|
4284
|
+
method: "GET",
|
|
4285
|
+
path: "/api/v1/pending-decisions"
|
|
4286
|
+
},
|
|
4227
4287
|
getProject: {
|
|
4228
4288
|
method: "GET",
|
|
4229
4289
|
path: "/api/v1/projects/{id}"
|
|
@@ -4244,6 +4304,10 @@ const operations = {
|
|
|
4244
4304
|
method: "GET",
|
|
4245
4305
|
path: "/api/sessions/{id}"
|
|
4246
4306
|
},
|
|
4307
|
+
getSessionById: {
|
|
4308
|
+
method: "GET",
|
|
4309
|
+
path: "/api/v1/sessions/{id}"
|
|
4310
|
+
},
|
|
4247
4311
|
getSessionMessage: {
|
|
4248
4312
|
method: "GET",
|
|
4249
4313
|
path: "/api/v1/sessions/{id}/messages/{messageId}"
|
|
@@ -4284,10 +4348,30 @@ const operations = {
|
|
|
4284
4348
|
method: "GET",
|
|
4285
4349
|
path: "/api/v1/artifacts"
|
|
4286
4350
|
},
|
|
4351
|
+
listAssistantInstructions: {
|
|
4352
|
+
method: "GET",
|
|
4353
|
+
path: "/api/v1/assistant/instructions"
|
|
4354
|
+
},
|
|
4355
|
+
listBriefs: {
|
|
4356
|
+
method: "GET",
|
|
4357
|
+
path: "/api/v1/briefs"
|
|
4358
|
+
},
|
|
4287
4359
|
listCreditTransactions: {
|
|
4288
4360
|
method: "GET",
|
|
4289
4361
|
path: "/api/v1/credits/transactions"
|
|
4290
4362
|
},
|
|
4363
|
+
listDataLakeProposals: {
|
|
4364
|
+
method: "GET",
|
|
4365
|
+
path: "/api/v1/data-lakes/{id}/proposals"
|
|
4366
|
+
},
|
|
4367
|
+
listDataLakeResearchConfigs: {
|
|
4368
|
+
method: "GET",
|
|
4369
|
+
path: "/api/v1/data-lakes/{id}/research/configs"
|
|
4370
|
+
},
|
|
4371
|
+
listDataLakeResearchRuns: {
|
|
4372
|
+
method: "GET",
|
|
4373
|
+
path: "/api/v1/data-lakes/{id}/research/runs"
|
|
4374
|
+
},
|
|
4291
4375
|
listDataLakes: {
|
|
4292
4376
|
method: "GET",
|
|
4293
4377
|
path: "/api/v1/data-lakes"
|
|
@@ -4304,6 +4388,14 @@ const operations = {
|
|
|
4304
4388
|
method: "GET",
|
|
4305
4389
|
path: "/api/v1/files"
|
|
4306
4390
|
},
|
|
4391
|
+
listHandoffDevices: {
|
|
4392
|
+
method: "GET",
|
|
4393
|
+
path: "/api/v1/handoff-devices"
|
|
4394
|
+
},
|
|
4395
|
+
listImageJobs: {
|
|
4396
|
+
method: "GET",
|
|
4397
|
+
path: "/api/v1/image-jobs"
|
|
4398
|
+
},
|
|
4307
4399
|
listImageModels: {
|
|
4308
4400
|
method: "GET",
|
|
4309
4401
|
path: "/api/v1/image-models"
|
|
@@ -4396,10 +4488,22 @@ const operations = {
|
|
|
4396
4488
|
method: "POST",
|
|
4397
4489
|
path: "/api/v1/slack/messages"
|
|
4398
4490
|
},
|
|
4491
|
+
publishArtifact: {
|
|
4492
|
+
method: "POST",
|
|
4493
|
+
path: "/api/v1/artifacts/{id}/publish"
|
|
4494
|
+
},
|
|
4399
4495
|
publishSkillMarketListing: {
|
|
4400
4496
|
method: "POST",
|
|
4401
4497
|
path: "/api/v1/skills/market/listings"
|
|
4402
4498
|
},
|
|
4499
|
+
putBriefSchedule: {
|
|
4500
|
+
method: "PUT",
|
|
4501
|
+
path: "/api/v1/briefs/schedule"
|
|
4502
|
+
},
|
|
4503
|
+
raiseCompletionRunBudget: {
|
|
4504
|
+
method: "POST",
|
|
4505
|
+
path: "/api/v1/completion-runs/{runId}/budget"
|
|
4506
|
+
},
|
|
4403
4507
|
registerPushToken: {
|
|
4404
4508
|
method: "POST",
|
|
4405
4509
|
path: "/api/v1/push-tokens"
|
|
@@ -4424,6 +4528,14 @@ const operations = {
|
|
|
4424
4528
|
method: "DELETE",
|
|
4425
4529
|
path: "/api/v1/projects/{id}/system-prompts/{file_id}"
|
|
4426
4530
|
},
|
|
4531
|
+
replyToBriefDecision: {
|
|
4532
|
+
method: "POST",
|
|
4533
|
+
path: "/api/v1/briefs/{id}/decisions/{decisionId}/reply"
|
|
4534
|
+
},
|
|
4535
|
+
republishArtifact: {
|
|
4536
|
+
method: "POST",
|
|
4537
|
+
path: "/api/v1/artifacts/{id}/republish"
|
|
4538
|
+
},
|
|
4427
4539
|
rescanSkillMarketVersion: {
|
|
4428
4540
|
method: "POST",
|
|
4429
4541
|
path: "/api/v1/skills/market/versions/{vid}/rescan"
|
|
@@ -4456,10 +4568,18 @@ const operations = {
|
|
|
4456
4568
|
method: "POST",
|
|
4457
4569
|
path: "/api/chat"
|
|
4458
4570
|
},
|
|
4571
|
+
sendSessionHandoff: {
|
|
4572
|
+
method: "POST",
|
|
4573
|
+
path: "/api/v1/session-handoffs"
|
|
4574
|
+
},
|
|
4459
4575
|
startAgentExecution: {
|
|
4460
4576
|
method: "POST",
|
|
4461
4577
|
path: "/api/v1/agent-executions"
|
|
4462
4578
|
},
|
|
4579
|
+
startDataLakeResearchRun: {
|
|
4580
|
+
method: "POST",
|
|
4581
|
+
path: "/api/v1/data-lakes/{id}/research/runs"
|
|
4582
|
+
},
|
|
4463
4583
|
submitSkillMarketListingVersion: {
|
|
4464
4584
|
method: "POST",
|
|
4465
4585
|
path: "/api/v1/skills/market/listings/{id}/versions"
|
|
@@ -4472,6 +4592,10 @@ const operations = {
|
|
|
4472
4592
|
method: "POST",
|
|
4473
4593
|
path: "/api/v1/agents/{id}/transfer-credits"
|
|
4474
4594
|
},
|
|
4595
|
+
unpublishArtifact: {
|
|
4596
|
+
method: "DELETE",
|
|
4597
|
+
path: "/api/v1/artifacts/{id}/publish"
|
|
4598
|
+
},
|
|
4475
4599
|
unregisterPushToken: {
|
|
4476
4600
|
method: "DELETE",
|
|
4477
4601
|
path: "/api/v1/push-tokens"
|
|
@@ -4484,6 +4608,10 @@ const operations = {
|
|
|
4484
4608
|
method: "PATCH",
|
|
4485
4609
|
path: "/api/v1/artifacts/{id}"
|
|
4486
4610
|
},
|
|
4611
|
+
updateDataLakeResearchConfig: {
|
|
4612
|
+
method: "PATCH",
|
|
4613
|
+
path: "/api/v1/data-lakes/{id}/research/configs/{config_id}"
|
|
4614
|
+
},
|
|
4487
4615
|
updateFile: {
|
|
4488
4616
|
method: "PATCH",
|
|
4489
4617
|
path: "/api/v1/files/{id}"
|
|
@@ -4703,6 +4831,10 @@ function createClient(options) {
|
|
|
4703
4831
|
});
|
|
4704
4832
|
return questHandle(ack.id, ack);
|
|
4705
4833
|
},
|
|
4834
|
+
/**
|
|
4835
|
+
* @deprecated `POST /api/v1/image-generations` sunsets 2027-02-17. Queue jobs with
|
|
4836
|
+
* `call('createImageJob', ...)` and poll `getImageJob` instead.
|
|
4837
|
+
*/
|
|
4706
4838
|
async generateImage(body, opts = {}) {
|
|
4707
4839
|
const ack = await call("generateImage", {
|
|
4708
4840
|
body,
|
|
@@ -4710,7 +4842,11 @@ function createClient(options) {
|
|
|
4710
4842
|
});
|
|
4711
4843
|
return questHandle(ack.quest.id, ack);
|
|
4712
4844
|
},
|
|
4713
|
-
/**
|
|
4845
|
+
/**
|
|
4846
|
+
* Edited images arrive on the finished quest's `files[].url`.
|
|
4847
|
+
* @deprecated `POST /api/v1/image-edits` sunsets 2027-02-17. Queue an edit with
|
|
4848
|
+
* `call('createImageJob', { body: { mode: 'edit', ... } })` and poll `getImageJob` instead.
|
|
4849
|
+
*/
|
|
4714
4850
|
async editImage(body, opts = {}) {
|
|
4715
4851
|
const ack = await call("editImage", {
|
|
4716
4852
|
body,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./Logger-
|
|
2
|
+
import "./Logger-CHKCF5hd.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-TACInPbw.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-CVufZd1f.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { homedir } from "node:os";
|
|
9
9
|
//#region src/models/curatedList.ts
|