@bike4mind/cli 5.1.0 → 5.3.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-DrZ47hqO.mjs → AgentHistoryStore-DmjsjprP.mjs} +9246 -186
- package/dist/{ApiClient-B8VxyNEM.mjs → ApiClient-z1v3ZiyX.mjs} +3 -3
- package/dist/{BubblewrapRuntime-DotKnqtu.mjs → BubblewrapRuntime-tQxRxWDx.mjs} +2 -2
- package/dist/{ConfigStore-DfuE49PH.mjs → ConfigStore-DV3DLYe7.mjs} +2 -2
- package/dist/ConfigStore-DuoHZ-FU.mjs +2 -0
- package/dist/{Logger-D6QD3c7G.mjs → Logger-BL2tt7VU.mjs} +1496 -191
- package/dist/{SandboxOrchestrator-Cm9L1TRR.mjs → SandboxOrchestrator-CvgTBr8Y.mjs} +1 -1
- package/dist/{SandboxRuntimeAdapter-HEkl0-qG.mjs → SandboxRuntimeAdapter-C2SCtV5L.mjs} +2 -2
- package/dist/{SandboxRuntimeAdapter-DF9hg5Xl.mjs → SandboxRuntimeAdapter-Z53LMuMM.mjs} +1 -1
- package/dist/{SeatbeltRuntime-CYsIp616.mjs → SeatbeltRuntime-B3mQajp2.mjs} +2 -2
- package/dist/{WorkItemsClient-sUftLgOz.mjs → WorkItemsClient-D9AzCyZL.mjs} +1 -1
- package/dist/{buildToolSearch-Bb-DPCb0.mjs → buildToolSearch-CiGysMAm.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 +5 -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-gMa7bapu.mjs +1209 -0
- package/dist/{fit-BsHUrxwe.mjs → fit-Cks7OTh3.mjs} +3 -3
- package/dist/index.mjs +12 -15
- package/dist/{modelServers-Ca1l2hMC.mjs → modelServers-DlyDu08E.mjs} +1 -1
- package/dist/{package-hEkaJgsy.mjs → package-CB8wzf84.mjs} +1 -1
- package/dist/{serve-CiSddein.mjs → serve-bulD3gJ-.mjs} +445 -29
- package/dist/{updateChecker-dZqiMftm.mjs → updateChecker-a6OuWq18.mjs} +1 -1
- package/package.json +11 -11
- package/dist/ConfigStore-1lUx9qD8.mjs +0 -2
- package/dist/dist-De8Q0ivE.mjs +0 -10291
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./Logger-
|
|
2
|
+
import "./Logger-BL2tt7VU.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-CB8wzf84.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-DlyDu08E.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,16 @@
|
|
|
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
|
|
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, Ct as searchFiles, D as createResumeAgentTool, Dt as MAX_PASTE_SIZE, 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 formatFileSize, T as parseAgentConfig, Tt as COMPACTION_SUMMARY_MARKER, U as NoLocalModelsError, V as LOCAL_SESSION_CONTINUES, W as SIGNED_OUT_BANNER, X as loginBlocked, b as createFindDefinitionTool, bt as CommandHistoryStore, c as checkSavedSignIn, ct as wrapTools, et as signedOutCommandMessage, f as buildLlmBackend, ft as getPlanModeFilePath, gt as extractErrorMessage$1, 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, w as createSkillTool, wt as warmFileCache, x as createTodoStore, xt as SessionStore, y as createWorkItemTools, yt as CheckpointStore, z as DEFAULT_RETRY_CONFIG } from "./AgentHistoryStore-DmjsjprP.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-DV3DLYe7.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 {
|
|
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";
|
|
5
|
+
import { E as ChatModels, Ht as planProgress, Ot as isEarlyStop, Vt as planLeaves, cn as DELEGATION_PAYLOAD_SCHEMA_NAME, dn as actorKindSchema, en as tokenEstimateMultiplier, fn as delegationPayloadSchema, ln as actorColorIndex, n as SESSION_ID_PATTERN, pn as selfClaimedActorKindSchema, r as isValidSessionId, sn as ACTOR_COLOR_SLOTS, t as logger, un as actorKindMarker, w as CREDIT_DEDUCT_TRANSACTION_TYPES } from "./Logger-BL2tt7VU.mjs";
|
|
7
6
|
import { a as rewireReservedNames, i as mergeCommands, n as COMMANDS, t as RemoteSkillSource } from "./RemoteSkillSource-HqoLRV56.mjs";
|
|
8
7
|
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-
|
|
8
|
+
import { i as getTokenCounter, n as ConversationContext, r as reconstructTurnBlocks, t as WorkItemsClient } from "./WorkItemsClient-D9AzCyZL.mjs";
|
|
10
9
|
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-
|
|
10
|
+
import { r as OAuthClient, t as ApiClient } from "./ApiClient-z1v3ZiyX.mjs";
|
|
11
|
+
import { t as version } from "./package-CB8wzf84.mjs";
|
|
12
|
+
import { a as NotifyingLlmBackend, i as deferredToolRegistry, n as buildAgent, r as buildSupportingStores, t as buildToolSearch } from "./buildToolSearch-CiGysMAm.mjs";
|
|
13
|
+
import { s as getStartupUpdateStatus } from "./updateChecker-a6OuWq18.mjs";
|
|
15
14
|
import React, { createContext, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
16
15
|
import { Box, Static, Text, measureElement, render, useApp, useInput, usePaste, useStdin, useStdout } from "ink";
|
|
17
16
|
import { formatWithOptions, promisify } from "node:util";
|
|
@@ -23,13 +22,13 @@ import * as path$2 from "node:path";
|
|
|
23
22
|
import path$1, { dirname as dirname$1, isAbsolute as isAbsolute$1, join as join$1, parse, relative, resolve as resolve$1 } from "node:path";
|
|
24
23
|
import { constants as constants$1, promises as promises$1 } from "node:fs";
|
|
25
24
|
import { z as z$1 } from "zod";
|
|
26
|
-
import axios, { isAxiosError } from "axios";
|
|
27
25
|
import Fuse from "fuse.js";
|
|
28
26
|
import Spinner from "ink-spinner";
|
|
29
27
|
import { useShallow } from "zustand/react/shallow";
|
|
30
28
|
import wrapAnsi from "wrap-ansi";
|
|
31
29
|
import TextInput from "ink-text-input";
|
|
32
30
|
import { createHash as createHash$1, createHmac as createHmac$1, randomBytes as randomBytes$1, randomUUID as randomUUID$1, timingSafeEqual } from "node:crypto";
|
|
31
|
+
import axios, { isAxiosError } from "axios";
|
|
33
32
|
import { homedir as homedir$1, tmpdir } from "node:os";
|
|
34
33
|
import { execFile, spawn } from "child_process";
|
|
35
34
|
import { promisify as promisify$1 } from "util";
|
|
@@ -9650,7 +9649,6 @@ function isPeerRequest(value) {
|
|
|
9650
9649
|
const DEADLINE_MS = 5e3;
|
|
9651
9650
|
const MAX_CONNECTIONS = 8;
|
|
9652
9651
|
const MAX_REGISTRY_ENTRIES = 4096;
|
|
9653
|
-
const MAX_REGISTERED_PEERS = 1024;
|
|
9654
9652
|
const idPattern = /^[a-zA-Z0-9_-]{1,128}$/;
|
|
9655
9653
|
const secretPattern = /^[a-f0-9]{64}$/;
|
|
9656
9654
|
function supported() {
|
|
@@ -10003,7 +10001,7 @@ async function registeredPeers(root, includeStaleOwners = false, held) {
|
|
|
10003
10001
|
if (remaining) peers.push(remaining);
|
|
10004
10002
|
} else if (includeStaleOwners || manifest.updatedAt <= Date.now() + 5e3) peers.push(manifest);
|
|
10005
10003
|
}
|
|
10006
|
-
if (peers.length >
|
|
10004
|
+
if (peers.length > 1024) throw new Error("The peer registry has reached its session limit.");
|
|
10007
10005
|
return peers;
|
|
10008
10006
|
}
|
|
10009
10007
|
async function discoverPeers(root, scope) {
|
|
@@ -10116,7 +10114,7 @@ async function startPeerTransport(options) {
|
|
|
10116
10114
|
}
|
|
10117
10115
|
async function startEnrolledTransport(options, root, releaseEnrollment) {
|
|
10118
10116
|
const registered = await registeredPeers(root, true, options.identity);
|
|
10119
|
-
if (registered.length >=
|
|
10117
|
+
if (registered.length >= 1024) throw new Error("The peer registry has reached its session limit.");
|
|
10120
10118
|
const duplicate = registered.find((peer) => sameThread(peer, options.identity));
|
|
10121
10119
|
if (duplicate) throw new Error(`This saved thread already has a registered peer process. Stop that process first. If ownership cannot be verified, inspect ${JSON.stringify(join$1(root, `${duplicate.id}.json`))}; remove only that manifest after confirming the old peer is stopped, then retry.`);
|
|
10122
10120
|
const identity = { ...options.identity };
|
|
@@ -10332,7 +10330,6 @@ async function callPeer(root, sender, targetId, request, expectedTarget) {
|
|
|
10332
10330
|
//#endregion
|
|
10333
10331
|
//#region src/peers/storage.ts
|
|
10334
10332
|
const RETENTION_MS$1 = 6048e5;
|
|
10335
|
-
const MAX_HISTORY_SCAN = 16384;
|
|
10336
10333
|
const MAX_HISTORY_BYTES = 67108864;
|
|
10337
10334
|
function hasLivePeerWriter(value) {
|
|
10338
10335
|
if (!value || typeof value !== "object" || !("writer" in value) || !value.writer || typeof value.writer !== "object") return false;
|
|
@@ -10369,7 +10366,7 @@ var PeerStorage = class PeerStorage {
|
|
|
10369
10366
|
let bytes = 0;
|
|
10370
10367
|
const entries = await promises$1.opendir(directory);
|
|
10371
10368
|
for await (const entry of entries) {
|
|
10372
|
-
if (++scanned >
|
|
10369
|
+
if (++scanned > 16384) break;
|
|
10373
10370
|
const name = entry.name;
|
|
10374
10371
|
if (name === `${this.incarnation}.json`) continue;
|
|
10375
10372
|
const snapshot = /^[a-zA-Z0-9_-]{1,256}\.json$/.test(name);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { D as sanitizeTerminalText } from "./ConfigStore-
|
|
2
|
+
import { D as sanitizeTerminalText } from "./ConfigStore-DV3DLYe7.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";
|