@bike4mind/cli 0.2.82 → 0.4.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/{ConfigStore-DTyUBb3A.mjs → ConfigStore-DBUmvCfe.mjs} +546 -116
- package/dist/commands/doctorCommand.mjs +1 -1
- package/dist/commands/headlessCommand.mjs +8 -4
- package/dist/commands/mcpCommand.mjs +1 -1
- package/dist/commands/updateCommand.mjs +1 -1
- package/dist/index.mjs +874 -23
- package/dist/{store-Dw1nZX2Y.mjs → store-B7-LLvvx.mjs} +18 -0
- package/dist/store-B_ILRSdP.mjs +3 -0
- package/dist/{tools-C0eJHV0Y.mjs → tools-DiSJh1Dv.mjs} +564 -111
- package/dist/{treeSitterEngine-DCSXcm_3.mjs → treeSitterEngine-BFTHnDwH.mjs} +4 -1
- package/dist/{updateChecker-CPr5OfMn.mjs → updateChecker-DcJC1C8S.mjs} +1 -1
- package/package.json +25 -27
- package/dist/store-nZExNOWX.mjs +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as version, n as fetchLatestVersion, r as forceCheckForUpdate } from "../updateChecker-
|
|
2
|
+
import { i as version, n as fetchLatestVersion, r as forceCheckForUpdate } from "../updateChecker-DcJC1C8S.mjs";
|
|
3
3
|
import { execSync } from "child_process";
|
|
4
4
|
import { constants, existsSync, promises } from "fs";
|
|
5
5
|
import { homedir } from "os";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { B as ReActAgent, C as loadContextFiles, D as generateCliTools, E as PermissionManager, F as setWebSocketToolExecutor, H as CheckpointStore, L as buildCoreSystemPrompt, V as CustomCommandStore, W as SessionStore, _ as WebSocketLlmBackend, a as createCoordinateTaskTool, c as createAgentDelegateTool, d as createSkillTool, g as FallbackLlmBackend, h as WebSocketConnectionManager, i as createWriteTodosTool, l as AgentStore, m as WebSocketToolExecutor, n as createFindDefinitionTool, o as createBackgroundAgentTools, p as ApiClient, r as createTodoStore, s as BackgroundAgentManager, t as createGetFileStructureTool, u as SubagentOrchestrator, v as ServerLlmBackend, w as getApiUrl, y as McpManager, z as isReadOnlyTool } from "../tools-
|
|
3
|
-
import { n as logger, t as ConfigStore } from "../ConfigStore-
|
|
2
|
+
import { B as ReActAgent, C as loadContextFiles, D as generateCliTools, E as PermissionManager, F as setWebSocketToolExecutor, H as CheckpointStore, L as buildCoreSystemPrompt, V as CustomCommandStore, W as SessionStore, _ as WebSocketLlmBackend, a as createCoordinateTaskTool, c as createAgentDelegateTool, d as createSkillTool, g as FallbackLlmBackend, h as WebSocketConnectionManager, i as createWriteTodosTool, l as AgentStore, m as WebSocketToolExecutor, n as createFindDefinitionTool, o as createBackgroundAgentTools, p as ApiClient, r as createTodoStore, s as BackgroundAgentManager, t as createGetFileStructureTool, u as SubagentOrchestrator, v as ServerLlmBackend, w as getApiUrl, y as McpManager, z as isReadOnlyTool } from "../tools-DiSJh1Dv.mjs";
|
|
3
|
+
import { n as logger, t as ConfigStore } from "../ConfigStore-DBUmvCfe.mjs";
|
|
4
4
|
import { t as DEFAULT_SANDBOX_CONFIG } from "../types-DBEjF9YS.mjs";
|
|
5
5
|
import { t as createSandboxRuntime } from "../SandboxRuntimeAdapter-C1B4t20N.mjs";
|
|
6
6
|
import { t as SandboxOrchestrator } from "../SandboxOrchestrator-BEW3rqYi.mjs";
|
|
@@ -67,10 +67,12 @@ async function handleHeadlessCommand(options) {
|
|
|
67
67
|
};
|
|
68
68
|
let wsManager = null;
|
|
69
69
|
let llm;
|
|
70
|
+
let completionsUrl;
|
|
70
71
|
try {
|
|
71
72
|
const serverConfig = await apiClient.get("/api/settings/serverConfig");
|
|
72
73
|
const wsUrl = serverConfig?.websocketUrl;
|
|
73
74
|
const wsCompletionUrl = serverConfig?.wsCompletionUrl;
|
|
75
|
+
completionsUrl = serverConfig?.completionsUrl;
|
|
74
76
|
if (wsUrl && wsCompletionUrl) {
|
|
75
77
|
wsManager = new WebSocketConnectionManager(wsUrl, tokenGetter);
|
|
76
78
|
await wsManager.connect();
|
|
@@ -89,7 +91,8 @@ async function handleHeadlessCommand(options) {
|
|
|
89
91
|
setWebSocketToolExecutor(null);
|
|
90
92
|
llm = new ServerLlmBackend({
|
|
91
93
|
apiClient,
|
|
92
|
-
model: config.defaultModel
|
|
94
|
+
model: config.defaultModel,
|
|
95
|
+
completionsUrl
|
|
93
96
|
});
|
|
94
97
|
logger.debug("[headless] Using SSE transport fallback");
|
|
95
98
|
}
|
|
@@ -242,7 +245,8 @@ async function handleHeadlessCommand(options) {
|
|
|
242
245
|
try {
|
|
243
246
|
result = await agent.run(fullPrompt, {
|
|
244
247
|
parallelExecution: config.preferences.enableParallelToolExecution === true,
|
|
245
|
-
isReadOnlyTool
|
|
248
|
+
isReadOnlyTool,
|
|
249
|
+
maxHistoryIterations: 4
|
|
246
250
|
});
|
|
247
251
|
} finally {
|
|
248
252
|
backgroundManager.setCurrentTurn(null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as version, r as forceCheckForUpdate } from "../updateChecker-
|
|
2
|
+
import { i as version, r as forceCheckForUpdate } from "../updateChecker-DcJC1C8S.mjs";
|
|
3
3
|
import { execSync } from "child_process";
|
|
4
4
|
//#region src/commands/updateCommand.ts
|
|
5
5
|
/**
|