@bike4mind/cli 0.20.2 → 0.21.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 +3 -1
- package/dist/{AgentHistoryStore-T7Oh84Yn.mjs → AgentHistoryStore-ucv6xXVT.mjs} +1127 -193
- package/dist/{ApiClient-BopvMmQk.mjs → ApiClient-Ut1MXtOs.mjs} +2 -2
- package/dist/{ConfigStore-cIyF7hDg.mjs → ConfigStore-CoY0l0gr.mjs} +1393 -187
- package/dist/{buildAgent-P0tOMLt1.mjs → buildAgent-jZhBReAr.mjs} +2 -2
- package/dist/commands/acpCommand.mjs +4 -4
- package/dist/commands/apiCommand.mjs +1 -1
- package/dist/commands/doctorCommand.mjs +1 -1
- package/dist/commands/envCommand.mjs +1 -1
- package/dist/commands/headlessCommand.mjs +3 -3
- package/dist/commands/mcpCommand.mjs +3 -3
- package/dist/commands/pluginCommand.mjs +3 -1
- package/dist/commands/updateCommand.mjs +1 -1
- package/dist/index.mjs +13 -54
- package/dist/{package-CnVCHR3U.mjs → package-CfIETbXd.mjs} +1 -1
- package/dist/{serve-BocVOJ3W.mjs → serve-C9UDR5px.mjs} +5 -3
- package/package.json +13 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { F as loadContextFiles, J as setWebSocketToolExecutor, L as generateCliTools, M as ReActAgent, X as buildSystemPrompt, Y as getPlanModeFilePath, a as McpManager, i as AgentStore, l as OllamaBackend, n as BackgroundAgentManager, o as createSseBackend, r as SubagentOrchestrator, s as ServerLlmBackend, t as AgentHistoryStore } from "./AgentHistoryStore-
|
|
3
|
-
import { n as logger } from "./ConfigStore-
|
|
2
|
+
import { F as loadContextFiles, J as setWebSocketToolExecutor, L as generateCliTools, M as ReActAgent, X as buildSystemPrompt, Y as getPlanModeFilePath, a as McpManager, i as AgentStore, l as OllamaBackend, n as BackgroundAgentManager, o as createSseBackend, r as SubagentOrchestrator, s as ServerLlmBackend, t as AgentHistoryStore } from "./AgentHistoryStore-ucv6xXVT.mjs";
|
|
3
|
+
import { n as logger } from "./ConfigStore-CoY0l0gr.mjs";
|
|
4
4
|
import { z as z$1 } from "zod";
|
|
5
5
|
import WebSocket from "ws";
|
|
6
6
|
//#region src/llm/NotifyingLlmBackend.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as RemoteSkillSource, A as FallbackLlmBackend, C as createWriteTodosTool, D as createResumeAgentTool, E as createCoordinateTaskTool, I as PermissionManager, J as setWebSocketToolExecutor, O as createBackgroundAgentTools, Q as isReadOnlyTool, S as createTodoStore, et as CustomCommandStore, k as createAgentDelegateTool, nt as SessionStore, tt as CheckpointStore, w as createSkillTool, x as createFindDefinitionTool, y as createGetFileStructureTool } from "../AgentHistoryStore-
|
|
3
|
-
import { c as requireApiUrl, n as logger, t as ConfigStore } from "../ConfigStore-
|
|
4
|
-
import { t as ApiClient } from "../ApiClient-
|
|
5
|
-
import { a as createToolSearchTool, i as buildLlmBackend, n as buildSupportingStores, o as deferredToolRegistry, r as buildSandbox, s as NotifyingLlmBackend, t as buildAgent } from "../buildAgent-
|
|
2
|
+
import { $ as RemoteSkillSource, A as FallbackLlmBackend, C as createWriteTodosTool, D as createResumeAgentTool, E as createCoordinateTaskTool, I as PermissionManager, J as setWebSocketToolExecutor, O as createBackgroundAgentTools, Q as isReadOnlyTool, S as createTodoStore, et as CustomCommandStore, k as createAgentDelegateTool, nt as SessionStore, tt as CheckpointStore, w as createSkillTool, x as createFindDefinitionTool, y as createGetFileStructureTool } from "../AgentHistoryStore-ucv6xXVT.mjs";
|
|
3
|
+
import { c as requireApiUrl, n as logger, t as ConfigStore } from "../ConfigStore-CoY0l0gr.mjs";
|
|
4
|
+
import { t as ApiClient } from "../ApiClient-Ut1MXtOs.mjs";
|
|
5
|
+
import { a as createToolSearchTool, i as buildLlmBackend, n as buildSupportingStores, o as deferredToolRegistry, r as buildSandbox, s as NotifyingLlmBackend, t as buildAgent } from "../buildAgent-jZhBReAr.mjs";
|
|
6
6
|
import { randomUUID } from "crypto";
|
|
7
7
|
import { existsSync, realpathSync, statSync } from "fs";
|
|
8
8
|
import { isAbsolute } from "path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { l as resolveApiEndpoint, s as parseApiUrl, t as ConfigStore } from "../ConfigStore-
|
|
2
|
+
import { l as resolveApiEndpoint, s as parseApiUrl, t as ConfigStore } from "../ConfigStore-CoY0l0gr.mjs";
|
|
3
3
|
//#region src/commands/apiCommand.ts
|
|
4
4
|
/**
|
|
5
5
|
* External API config command (--api-url / --reset-api)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as version } from "../package-
|
|
2
|
+
import { t as version } from "../package-CfIETbXd.mjs";
|
|
3
3
|
import { a as fetchLatestVersion, c as isNpmPrefixWritable, i as compareSemver } from "../updateChecker-CQW8bxo6.mjs";
|
|
4
4
|
import { t as checkRipgrep } from "../ripgrepCheck-BmkyTK2i.mjs";
|
|
5
5
|
import { execSync } from "child_process";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as RemoteSkillSource, A as FallbackLlmBackend, B as classifyCommandRisk, C as createWriteTodosTool, D as createResumeAgentTool, E as createCoordinateTaskTool, F as loadContextFiles, I as PermissionManager, J as setWebSocketToolExecutor, L as generateCliTools, M as ReActAgent, O as createBackgroundAgentTools, Q as isReadOnlyTool, S as createTodoStore, X as buildSystemPrompt, a as McpManager, b as createWorkItemTools, et as CustomCommandStore, i as AgentStore, k as createAgentDelegateTool, n as BackgroundAgentManager, nt as SessionStore, o as createSseBackend, r as SubagentOrchestrator, t as AgentHistoryStore, tt as CheckpointStore, w as createSkillTool, x as createFindDefinitionTool, y as createGetFileStructureTool, z as SHELL_LIKE_TOOL_COMMAND_FIELDS } from "../AgentHistoryStore-
|
|
3
|
-
import { c as requireApiUrl, n as logger, t as ConfigStore } from "../ConfigStore-
|
|
4
|
-
import { t as ApiClient } from "../ApiClient-
|
|
2
|
+
import { $ as RemoteSkillSource, A as FallbackLlmBackend, B as classifyCommandRisk, C as createWriteTodosTool, D as createResumeAgentTool, E as createCoordinateTaskTool, F as loadContextFiles, I as PermissionManager, J as setWebSocketToolExecutor, L as generateCliTools, M as ReActAgent, O as createBackgroundAgentTools, Q as isReadOnlyTool, S as createTodoStore, X as buildSystemPrompt, a as McpManager, b as createWorkItemTools, et as CustomCommandStore, i as AgentStore, k as createAgentDelegateTool, n as BackgroundAgentManager, nt as SessionStore, o as createSseBackend, r as SubagentOrchestrator, t as AgentHistoryStore, tt as CheckpointStore, w as createSkillTool, x as createFindDefinitionTool, y as createGetFileStructureTool, z as SHELL_LIKE_TOOL_COMMAND_FIELDS } from "../AgentHistoryStore-ucv6xXVT.mjs";
|
|
3
|
+
import { c as requireApiUrl, n as logger, t as ConfigStore } from "../ConfigStore-CoY0l0gr.mjs";
|
|
4
|
+
import { t as ApiClient } from "../ApiClient-Ut1MXtOs.mjs";
|
|
5
5
|
import { t as DEFAULT_SANDBOX_CONFIG } from "../types-LyRNHOiS.mjs";
|
|
6
6
|
import { r as reconstructTurnBlocks, t as WorkItemsClient } from "../WorkItemsClient-Cow6nXx7.mjs";
|
|
7
7
|
import { t as createSandboxRuntime } from "../SandboxRuntimeAdapter-ChGlxSGQ.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as ConfigStore } from "../ConfigStore-
|
|
3
|
-
import { t as version } from "../package-
|
|
2
|
+
import { t as ConfigStore } from "../ConfigStore-CoY0l0gr.mjs";
|
|
3
|
+
import { t as version } from "../package-CfIETbXd.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(config, argv.name, configStore);
|
|
71
71
|
break;
|
|
72
72
|
case "serve": {
|
|
73
|
-
const { handleMcpServeCommand } = await import("../serve-
|
|
73
|
+
const { handleMcpServeCommand } = await import("../serve-C9UDR5px.mjs");
|
|
74
74
|
await handleMcpServeCommand({
|
|
75
75
|
http: Boolean(argv.http),
|
|
76
76
|
port: typeof argv.port === "number" ? argv.port : void 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { n as getDefaultPluginsDir, r as isFeatureEnabled, t as PluginStore } from "../PluginStore-DwvOJ-G3.mjs";
|
|
3
|
-
import { t as ConfigStore } from "../ConfigStore-
|
|
3
|
+
import { t as ConfigStore } from "../ConfigStore-CoY0l0gr.mjs";
|
|
4
4
|
import { execFileSync } from "child_process";
|
|
5
5
|
import { promises } from "fs";
|
|
6
6
|
import path from "path";
|
|
@@ -180,6 +180,8 @@ async function handleRemove(name, pluginsDir, configStore) {
|
|
|
180
180
|
"uninstall",
|
|
181
181
|
"--prefix",
|
|
182
182
|
pluginsDir,
|
|
183
|
+
"--no-fund",
|
|
184
|
+
"--no-audit",
|
|
183
185
|
plugin.name
|
|
184
186
|
], pluginsDir, "remove", plugin.name);
|
|
185
187
|
if (plugin.valid) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as version } from "../package-
|
|
2
|
+
import { t as version } from "../package-CfIETbXd.mjs";
|
|
3
3
|
import { c as isNpmPrefixWritable, l as setAutoUpdatePreference, n as REEXEC_GUARD_ENV, o as forceCheckForUpdate, r as checkForUpdate, s as getAutoUpdatePreference, t as INSTALL_CMD, u as shouldAttemptAutoUpdate } from "../updateChecker-CQW8bxo6.mjs";
|
|
4
4
|
import { t as checkRipgrep } from "../ripgrepCheck-BmkyTK2i.mjs";
|
|
5
5
|
import { execSync, spawnSync } from "child_process";
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as RemoteSkillSource, A as FallbackLlmBackend, C as createWriteTodosTool, D as createResumeAgentTool, E as createCoordinateTaskTool, G as DEFAULT_THOROUGHNESS, H as DEFAULT_AGENT_MODEL, I as PermissionManager, J as setWebSocketToolExecutor, K as clearFeatureModuleTools, N as findIterationBoundary, O as createBackgroundAgentTools, P as extractCompactInstructions, Q as isReadOnlyTool, R as getProcessHooks, S as createTodoStore, T as parseAgentConfig, U as DEFAULT_MAX_ITERATIONS, V as ALWAYS_DENIED_FOR_AGENTS, W as DEFAULT_RETRY_CONFIG, X as buildSystemPrompt, Y as getPlanModeFilePath, Z as buildSkillsPromptSection, _ as createDecisionStore, at as searchCommands, b as createWorkItemTools, c as isTransientNetworkError, ct as searchFiles, d as createReviewGateTool, et as CustomCommandStore, f as formatReviewGatesOutput, ft as MAX_PASTE_SIZE, g as createDecisionLogTool, h as formatBlockersOutput, it as processFileReferences, j as substituteArguments, k as createAgentDelegateTool, lt as warmFileCache, m as createBlockerTools, nt as SessionStore, ot as mergeCommands, p as createBlockerStore, q as registerFeatureModuleTools, rt as hasFileReferences, st as formatFileSize, tt as CheckpointStore, u as createReviewGateStore, ut as COMPACTION_SUMMARY_MARKER, v as formatDecisionsOutput, w as createSkillTool, x as createFindDefinitionTool, y as createGetFileStructureTool } from "./AgentHistoryStore-
|
|
2
|
+
import { $ as RemoteSkillSource, A as FallbackLlmBackend, C as createWriteTodosTool, D as createResumeAgentTool, E as createCoordinateTaskTool, G as DEFAULT_THOROUGHNESS, H as DEFAULT_AGENT_MODEL, I as PermissionManager, J as setWebSocketToolExecutor, K as clearFeatureModuleTools, N as findIterationBoundary, O as createBackgroundAgentTools, P as extractCompactInstructions, Q as isReadOnlyTool, R as getProcessHooks, S as createTodoStore, T as parseAgentConfig, U as DEFAULT_MAX_ITERATIONS, V as ALWAYS_DENIED_FOR_AGENTS, W as DEFAULT_RETRY_CONFIG, X as buildSystemPrompt, Y as getPlanModeFilePath, Z as buildSkillsPromptSection, _ as createDecisionStore, at as searchCommands, b as createWorkItemTools, c as isTransientNetworkError, ct as searchFiles, d as createReviewGateTool, et as CustomCommandStore, f as formatReviewGatesOutput, ft as MAX_PASTE_SIZE, g as createDecisionLogTool, h as formatBlockersOutput, it as processFileReferences, j as substituteArguments, k as createAgentDelegateTool, lt as warmFileCache, m as createBlockerTools, nt as SessionStore, ot as mergeCommands, p as createBlockerStore, q as registerFeatureModuleTools, rt as hasFileReferences, st as formatFileSize, tt as CheckpointStore, u as createReviewGateStore, ut as COMPACTION_SUMMARY_MARKER, v as formatDecisionsOutput, w as createSkillTool, x as createFindDefinitionTool, y as createGetFileStructureTool } from "./AgentHistoryStore-ucv6xXVT.mjs";
|
|
3
3
|
import { a as selectLiveSubagentTokens, i as selectLiveSubagentCredits, n as selectActiveBackgroundShells, o as useCliStore, r as selectCompletedBackgroundShells, t as selectActiveBackgroundAgents } from "./store-CvjTpQPs.mjs";
|
|
4
4
|
import { r as isFeatureEnabled, t as PluginStore } from "./PluginStore-DwvOJ-G3.mjs";
|
|
5
|
-
import { a as getCreditsUrl, b as CREDIT_DEDUCT_TRANSACTION_TYPES, c as requireApiUrl,
|
|
5
|
+
import { Jt as ACTOR_COLOR_SLOTS, Qt as selfClaimedActorKindSchema, X as REVIEW_GATE_STATUS_VALUES, Xt as actorKindMarker, Yt as actorColorIndex, Z as SUBQUEST_STATUS_VALUES, Zt as actorKindSchema, a as getCreditsUrl, b as CREDIT_DEDUCT_TRANSACTION_TYPES, c as requireApiUrl, i as LOCAL_DEV_URL, l as resolveApiEndpoint, n as logger, o as getEnvironmentName, r as ApiEndpointUnconfiguredError, s as parseApiUrl, t as ConfigStore, x as ChatModels, yt as isEarlyStop } from "./ConfigStore-CoY0l0gr.mjs";
|
|
6
6
|
import { t as getShellSessionManager } from "./ShellSessionManager-6o8KZzl1-vrbPAUTq.mjs";
|
|
7
|
-
import { n as OAuthClient, t as ApiClient } from "./ApiClient-
|
|
7
|
+
import { n as OAuthClient, t as ApiClient } from "./ApiClient-Ut1MXtOs.mjs";
|
|
8
8
|
import { i as getTokenCounter, n as ConversationContext, r as reconstructTurnBlocks, t as WorkItemsClient } from "./WorkItemsClient-Cow6nXx7.mjs";
|
|
9
|
-
import { a as createToolSearchTool, i as buildLlmBackend, n as buildSupportingStores, o as deferredToolRegistry, r as buildSandbox, s as NotifyingLlmBackend, t as buildAgent } from "./buildAgent-
|
|
10
|
-
import { t as version } from "./package-
|
|
9
|
+
import { a as createToolSearchTool, i as buildLlmBackend, n as buildSupportingStores, o as deferredToolRegistry, r as buildSandbox, s as NotifyingLlmBackend, t as buildAgent } from "./buildAgent-jZhBReAr.mjs";
|
|
10
|
+
import { t as version } from "./package-CfIETbXd.mjs";
|
|
11
11
|
import { r as checkForUpdate } from "./updateChecker-CQW8bxo6.mjs";
|
|
12
12
|
import React, { useCallback, useEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
13
13
|
import { Box, Static, Text, render, useApp, useInput, usePaste, useStdout } from "ink";
|
|
@@ -22,7 +22,6 @@ import Spinner from "ink-spinner";
|
|
|
22
22
|
import { useShallow } from "zustand/react/shallow";
|
|
23
23
|
import TextInput from "ink-text-input";
|
|
24
24
|
import { z as z$1 } from "zod";
|
|
25
|
-
import { ACTOR_COLOR_SLOTS, actorColorIndex, actorKindMarker, actorKindSchema, selfClaimedActorKindSchema } from "@bike4mind/hearth";
|
|
26
25
|
import axios, { isAxiosError } from "axios";
|
|
27
26
|
import { marked } from "marked";
|
|
28
27
|
import { highlight } from "cli-highlight";
|
|
@@ -4971,22 +4970,12 @@ z$1.object({
|
|
|
4971
4970
|
const SubQuestSchema = z$1.object({
|
|
4972
4971
|
id: z$1.string(),
|
|
4973
4972
|
title: z$1.string(),
|
|
4974
|
-
status: z$1.enum(
|
|
4975
|
-
"not_started",
|
|
4976
|
-
"in_progress",
|
|
4977
|
-
"completed",
|
|
4978
|
-
"skipped",
|
|
4979
|
-
"deleted"
|
|
4980
|
-
]),
|
|
4973
|
+
status: z$1.enum(SUBQUEST_STATUS_VALUES),
|
|
4981
4974
|
questId: z$1.string().optional(),
|
|
4982
4975
|
startedAt: z$1.number().optional(),
|
|
4983
4976
|
evidence: z$1.string().optional(),
|
|
4984
4977
|
reviewGate: z$1.boolean().optional(),
|
|
4985
|
-
reviewStatus: z$1.enum(
|
|
4986
|
-
"pending",
|
|
4987
|
-
"approved",
|
|
4988
|
-
"rejected"
|
|
4989
|
-
]).optional(),
|
|
4978
|
+
reviewStatus: z$1.enum(REVIEW_GATE_STATUS_VALUES).optional(),
|
|
4990
4979
|
reviewNote: z$1.string().optional()
|
|
4991
4980
|
});
|
|
4992
4981
|
/** Quest containing sub-quests */
|
|
@@ -5031,24 +5020,14 @@ z$1.object({
|
|
|
5031
5020
|
planId: z$1.string(),
|
|
5032
5021
|
questId: z$1.string(),
|
|
5033
5022
|
subQuestId: z$1.string(),
|
|
5034
|
-
reviewStatus: z$1.enum(
|
|
5035
|
-
"pending",
|
|
5036
|
-
"approved",
|
|
5037
|
-
"rejected"
|
|
5038
|
-
]),
|
|
5023
|
+
reviewStatus: z$1.enum(REVIEW_GATE_STATUS_VALUES),
|
|
5039
5024
|
reviewNote: z$1.string().optional()
|
|
5040
5025
|
});
|
|
5041
5026
|
z$1.object({
|
|
5042
5027
|
planId: z$1.string(),
|
|
5043
5028
|
questId: z$1.string(),
|
|
5044
5029
|
subQuestId: z$1.string(),
|
|
5045
|
-
status: z$1.enum(
|
|
5046
|
-
"not_started",
|
|
5047
|
-
"in_progress",
|
|
5048
|
-
"completed",
|
|
5049
|
-
"skipped",
|
|
5050
|
-
"deleted"
|
|
5051
|
-
]).optional(),
|
|
5030
|
+
status: z$1.enum(SUBQUEST_STATUS_VALUES).optional(),
|
|
5052
5031
|
evidence: z$1.string().optional(),
|
|
5053
5032
|
timeSpent: z$1.number().optional()
|
|
5054
5033
|
});
|
|
@@ -5109,24 +5088,14 @@ const UpdateReviewGateParamsSchema = z$1.object({
|
|
|
5109
5088
|
plan_id: z$1.string().min(1),
|
|
5110
5089
|
quest_id: z$1.string().min(1),
|
|
5111
5090
|
sub_quest_id: z$1.string().min(1),
|
|
5112
|
-
review_status: z$1.enum(
|
|
5113
|
-
"pending",
|
|
5114
|
-
"approved",
|
|
5115
|
-
"rejected"
|
|
5116
|
-
]),
|
|
5091
|
+
review_status: z$1.enum(REVIEW_GATE_STATUS_VALUES),
|
|
5117
5092
|
review_note: z$1.string().optional()
|
|
5118
5093
|
});
|
|
5119
5094
|
const UpdateQuestProgressParamsSchema = z$1.object({
|
|
5120
5095
|
plan_id: z$1.string().min(1),
|
|
5121
5096
|
quest_id: z$1.string().min(1),
|
|
5122
5097
|
sub_quest_id: z$1.string().min(1),
|
|
5123
|
-
status: z$1.enum(
|
|
5124
|
-
"not_started",
|
|
5125
|
-
"in_progress",
|
|
5126
|
-
"completed",
|
|
5127
|
-
"skipped",
|
|
5128
|
-
"deleted"
|
|
5129
|
-
]).optional(),
|
|
5098
|
+
status: z$1.enum(SUBQUEST_STATUS_VALUES).optional(),
|
|
5130
5099
|
evidence: z$1.string().optional(),
|
|
5131
5100
|
time_spent: z$1.number().min(0).optional()
|
|
5132
5101
|
});
|
|
@@ -5734,11 +5703,7 @@ function createUpdateReviewGateTool(service) {
|
|
|
5734
5703
|
review_status: {
|
|
5735
5704
|
type: "string",
|
|
5736
5705
|
description: "The review decision",
|
|
5737
|
-
enum: [
|
|
5738
|
-
"pending",
|
|
5739
|
-
"approved",
|
|
5740
|
-
"rejected"
|
|
5741
|
-
]
|
|
5706
|
+
enum: [...REVIEW_GATE_STATUS_VALUES]
|
|
5742
5707
|
},
|
|
5743
5708
|
review_note: {
|
|
5744
5709
|
type: "string",
|
|
@@ -5783,13 +5748,7 @@ function createUpdateQuestProgressTool(service) {
|
|
|
5783
5748
|
status: {
|
|
5784
5749
|
type: "string",
|
|
5785
5750
|
description: "New status for the sub-quest",
|
|
5786
|
-
enum: [
|
|
5787
|
-
"not_started",
|
|
5788
|
-
"in_progress",
|
|
5789
|
-
"completed",
|
|
5790
|
-
"skipped",
|
|
5791
|
-
"deleted"
|
|
5792
|
-
]
|
|
5751
|
+
enum: [...SUBQUEST_STATUS_VALUES]
|
|
5793
5752
|
},
|
|
5794
5753
|
evidence: {
|
|
5795
5754
|
type: "string",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as requireApiUrl, d as AGENT_QUEST_MANIFEST, f as AGENT_QUEST_MCP_URI, n as logger, s as parseApiUrl, t as ConfigStore, u as AGENT_QUEST_ID } from "./ConfigStore-
|
|
3
|
-
import { t as ApiClient } from "./ApiClient-
|
|
2
|
+
import { W as PROMPT_TEXT_MAX, c as requireApiUrl, d as AGENT_QUEST_MANIFEST, f as AGENT_QUEST_MCP_URI, n as logger, s as parseApiUrl, t as ConfigStore, u as AGENT_QUEST_ID } from "./ConfigStore-CoY0l0gr.mjs";
|
|
3
|
+
import { t as ApiClient } from "./ApiClient-Ut1MXtOs.mjs";
|
|
4
4
|
import { z as z$1 } from "zod";
|
|
5
5
|
import { isAxiosError } from "axios";
|
|
6
6
|
import { Writable } from "node:stream";
|
|
@@ -54,6 +54,7 @@ var B4mApiClient = class {
|
|
|
54
54
|
...args.notebookId ? { sessionId: args.notebookId } : {},
|
|
55
55
|
message: args.message,
|
|
56
56
|
...args.model ? { model: args.model } : {},
|
|
57
|
+
...args.systemPrompt ? { systemPrompt: args.systemPrompt } : {},
|
|
57
58
|
wait: true
|
|
58
59
|
});
|
|
59
60
|
}
|
|
@@ -280,7 +281,8 @@ const createNotebookShape = {
|
|
|
280
281
|
const sendMessageShape = {
|
|
281
282
|
message: z$1.string().describe("The message to send"),
|
|
282
283
|
notebookId: z$1.string().optional().describe("Notebook to send to; defaults to the most recent"),
|
|
283
|
-
model: z$1.string().optional().describe("Model id to use; defaults to the instance default")
|
|
284
|
+
model: z$1.string().optional().describe("Model id to use; defaults to the instance default"),
|
|
285
|
+
systemPrompt: z$1.string().max(PROMPT_TEXT_MAX).optional().describe("Caller-supplied system-prompt text for this message only; refines but never overrides other guidance")
|
|
284
286
|
};
|
|
285
287
|
const searchKnowledgeBaseShape = {
|
|
286
288
|
query: z$1.string().describe("The search query"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bike4mind/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
|
+
"mcpName": "io.github.bike4mind/bike4mind",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"description": "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
6
7
|
"license": "UNLICENSED",
|
|
@@ -98,7 +99,7 @@
|
|
|
98
99
|
"tldts": "^7.4.8",
|
|
99
100
|
"tree-sitter-wasms": "^0.1.13",
|
|
100
101
|
"turndown": "^7.2.4",
|
|
101
|
-
"undici": "^7.
|
|
102
|
+
"undici": "^7.29.0",
|
|
102
103
|
"unpdf": "^1.6.2",
|
|
103
104
|
"uuid": "^14.0.1",
|
|
104
105
|
"voyageai": "^0.4.0",
|
|
@@ -109,8 +110,7 @@
|
|
|
109
110
|
"yauzl": "^3.4.0",
|
|
110
111
|
"zod": "^4.4.3",
|
|
111
112
|
"zod-validation-error": "^5.0.0",
|
|
112
|
-
"zustand": "^5.0.13"
|
|
113
|
-
"@bike4mind/hearth": "0.3.0"
|
|
113
|
+
"zustand": "^5.0.13"
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
116
|
"@types/better-sqlite3": "^7.6.13",
|
|
@@ -126,14 +126,15 @@
|
|
|
126
126
|
"tsx": "^4.23.0",
|
|
127
127
|
"typescript": "^5.9.3",
|
|
128
128
|
"vitest": "^4.1.10",
|
|
129
|
-
"@bike4mind/agents": "0.
|
|
130
|
-
"@bike4mind/common": "
|
|
131
|
-
"@bike4mind/fab-pipeline": "1.
|
|
132
|
-
"@bike4mind/
|
|
133
|
-
"@bike4mind/
|
|
129
|
+
"@bike4mind/agents": "1.0.0",
|
|
130
|
+
"@bike4mind/common": "7.0.0",
|
|
131
|
+
"@bike4mind/fab-pipeline": "1.3.0",
|
|
132
|
+
"@bike4mind/hearth": "0.3.0",
|
|
133
|
+
"@bike4mind/llm-adapters": "0.12.1",
|
|
134
|
+
"@bike4mind/mcp": "2.0.0",
|
|
134
135
|
"@bike4mind/observability": "0.2.0",
|
|
135
|
-
"@bike4mind/services": "
|
|
136
|
-
"@bike4mind/utils": "
|
|
136
|
+
"@bike4mind/services": "7.0.0",
|
|
137
|
+
"@bike4mind/utils": "5.0.0"
|
|
137
138
|
},
|
|
138
139
|
"optionalDependencies": {
|
|
139
140
|
"@vscode/ripgrep": "^1.18.0"
|
|
@@ -150,6 +151,6 @@
|
|
|
150
151
|
"test:all": "vitest run && vitest run --config vitest.e2e.config.ts",
|
|
151
152
|
"start": "node dist/index.mjs",
|
|
152
153
|
"eval:run": "tsx src/evals/cli.ts",
|
|
153
|
-
"postinstall": "node -e \"try { require('better-sqlite3') } catch(e) { if(e.message.includes('bindings')) { console.log('\\n
|
|
154
|
+
"postinstall": "node -e \"try { require('better-sqlite3') } catch (e) { if (e.message.includes('bindings')) { console.log('\\n\\u26a0\\ufe0f Rebuilding better-sqlite3 native bindings...'); try { require('child_process').execSync('pnpm rebuild better-sqlite3', {stdio:'inherit'}) } catch { console.log('\\u26a0\\ufe0f Could not rebuild better-sqlite3 automatically. If the CLI reports a native-bindings error, run: npm rebuild better-sqlite3') } } }\""
|
|
154
155
|
}
|
|
155
156
|
}
|