@bike4mind/cli 4.10.0 → 5.0.1
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-CjGVgxLR.mjs → AgentHistoryStore-DW6BBbVj.mjs} +624 -114
- package/dist/{ApiClient-SVXSI3HI.mjs → ApiClient-D4bDuWXg.mjs} +3 -3
- package/dist/{BubblewrapRuntime-CTc_KPnd.mjs → BubblewrapRuntime-D3EO5Y0C.mjs} +2 -2
- package/dist/{ConfigStore-B2Dy-PT9.mjs → ConfigStore-BuLA_-uZ.mjs} +17 -1
- package/dist/ConfigStore-DdqxfmDr.mjs +2 -0
- package/dist/{Logger-7MmrU5w6.mjs → Logger-CjaYx85U.mjs} +1560 -805
- package/dist/{RemoteSkillSource-D_F99yBR.mjs → RemoteSkillSource-HqoLRV56.mjs} +2 -6
- package/dist/{SandboxOrchestrator-CeDwd6Fj.mjs → SandboxOrchestrator-yORi2eFV.mjs} +1 -1
- package/dist/{SandboxRuntimeAdapter-CFEIywKt.mjs → SandboxRuntimeAdapter-BjJwJNfg.mjs} +1 -1
- package/dist/{SandboxRuntimeAdapter-CjNDzYSf.mjs → SandboxRuntimeAdapter-BmkaFzqU.mjs} +2 -2
- package/dist/{SeatbeltRuntime-CQItj-F1.mjs → SeatbeltRuntime-CyZNmFwD.mjs} +2 -2
- package/dist/{WorkItemsClient-C9_pjHCo.mjs → WorkItemsClient-xmo0DrCm.mjs} +1 -1
- package/dist/{buildToolSearch-8xyBwXRx.mjs → buildToolSearch-CXxEtVKc.mjs} +2 -2
- package/dist/commands/acpCommand.mjs +6 -6
- 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 +7 -7
- 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 +4 -4
- package/dist/commands/updateCommand.mjs +2 -2
- package/dist/{createFile-B8bur5Rb-CVzCarEA.mjs → createFile-CPKmd6Uf-Bk-3V2T3.mjs} +3 -3
- package/dist/{deleteFile-9B3gW_Nb-DG2sovIl.mjs → deleteFile-CD_xQ7Y6-C1X4Ievb.mjs} +17 -4
- package/dist/{dist-DHgMhdzV.mjs → dist-DsMzCRLX.mjs} +96 -34
- package/dist/{fit-D8Quui6j.mjs → fit-C9eLTDcR.mjs} +3 -3
- package/dist/{globFiles-CwJ8qmYo-BR5b2KvO.mjs → globFiles-CoapsO8G-CpvQo-R2.mjs} +9 -5
- package/dist/{grepSearch-CLtEqT4j-BnKPtNWr.mjs → grepSearch-DeH7M2e7-BIvo-yNy.mjs} +2 -2
- package/dist/index.mjs +12 -417
- package/dist/{modelServers-JsKBm7Wn.mjs → modelServers-DeOGFwLi.mjs} +1 -1
- package/dist/{package-r_xumsGY.mjs → package-CvffLo0I.mjs} +1 -1
- package/dist/{pathValidation-BRqf4HFX-CHwtwp3O.mjs → pathValidation-C4ADzpUR-BPIpINwZ.mjs} +36 -12
- package/dist/{serve-BM9PKMLH.mjs → serve-tmC__JNj.mjs} +6 -6
- package/dist/{updateChecker-BOqaLeZU.mjs → updateChecker-U4AfrPKj.mjs} +1 -1
- package/package.json +10 -11
- package/dist/ConfigStore-zlY0PikB.mjs +0 -2
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-DW6BBbVj.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-BuLA_-uZ.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 {
|
|
7
|
-
import { a as rewireReservedNames, i as mergeCommands, n as COMMANDS, t as RemoteSkillSource } from "./RemoteSkillSource-
|
|
5
|
+
import { a as extractErrorMessage$1 } from "./dist-DsMzCRLX.mjs";
|
|
6
|
+
import { C as CREDIT_DEDUCT_TRANSACTION_TYPES, Et as isEarlyStop, Rt as planLeaves, T as ChatModels, Zt as tokenEstimateMultiplier, an as DELEGATION_PAYLOAD_SCHEMA_NAME, cn as actorKindSchema, in as ACTOR_COLOR_SLOTS, ln as delegationPayloadSchema, n as SESSION_ID_PATTERN, on as actorColorIndex, r as isValidSessionId, sn as actorKindMarker, t as logger, un as selfClaimedActorKindSchema, zt as planProgress } from "./Logger-CjaYx85U.mjs";
|
|
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-xmo0DrCm.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-D4bDuWXg.mjs";
|
|
12
|
+
import { t as version } from "./package-CvffLo0I.mjs";
|
|
13
|
+
import { a as NotifyingLlmBackend, i as deferredToolRegistry, n as buildAgent, r as buildSupportingStores, t as buildToolSearch } from "./buildToolSearch-CXxEtVKc.mjs";
|
|
14
|
+
import { s as getStartupUpdateStatus } from "./updateChecker-U4AfrPKj.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";
|
|
@@ -6364,27 +6364,6 @@ var TavernService = class {
|
|
|
6364
6364
|
async abortHeartbeats() {
|
|
6365
6365
|
await this.apiClient.post("/api/tavern/abort-heartbeats", { abort: true });
|
|
6366
6366
|
}
|
|
6367
|
-
async getQuestPlan(planId) {
|
|
6368
|
-
return this.apiClient.get(`/api/quest-master-plans/${encodeURIComponent(planId)}`);
|
|
6369
|
-
}
|
|
6370
|
-
async updateReviewGate(planId, questId, subQuestId, reviewStatus, reviewNote) {
|
|
6371
|
-
return this.apiClient.post(`/api/quest-master-plans/${encodeURIComponent(planId)}/review-gate`, {
|
|
6372
|
-
questId,
|
|
6373
|
-
subQuestId,
|
|
6374
|
-
reviewStatus,
|
|
6375
|
-
reviewNote
|
|
6376
|
-
});
|
|
6377
|
-
}
|
|
6378
|
-
async updateSubQuestProgress(planId, questId, subQuestId, updates) {
|
|
6379
|
-
return this.apiClient.post(`/api/quest-master-plans/${encodeURIComponent(planId)}/subquest-progress`, {
|
|
6380
|
-
questId,
|
|
6381
|
-
subQuestId,
|
|
6382
|
-
...updates
|
|
6383
|
-
});
|
|
6384
|
-
}
|
|
6385
|
-
async updateHandoff(planId, handoff) {
|
|
6386
|
-
return this.apiClient.post(`/api/quest-master-plans/${encodeURIComponent(planId)}/handoff`, handoff);
|
|
6387
|
-
}
|
|
6388
6367
|
};
|
|
6389
6368
|
//#endregion
|
|
6390
6369
|
//#region src/features/tavern/types.ts
|
|
@@ -6572,89 +6551,6 @@ z$1.object({
|
|
|
6572
6551
|
error: z$1.string().optional()
|
|
6573
6552
|
}))
|
|
6574
6553
|
});
|
|
6575
|
-
/** Sub-quest within a quest */
|
|
6576
|
-
const SubQuestSchema = z$1.object({
|
|
6577
|
-
id: z$1.string(),
|
|
6578
|
-
title: z$1.string(),
|
|
6579
|
-
status: z$1.enum(SUBQUEST_STATUS_VALUES),
|
|
6580
|
-
questId: z$1.string().optional(),
|
|
6581
|
-
startedAt: z$1.number().optional(),
|
|
6582
|
-
evidence: z$1.string().optional(),
|
|
6583
|
-
reviewGate: z$1.boolean().optional(),
|
|
6584
|
-
reviewStatus: z$1.enum(REVIEW_GATE_STATUS_VALUES).optional(),
|
|
6585
|
-
reviewNote: z$1.string().optional()
|
|
6586
|
-
});
|
|
6587
|
-
/** Quest containing sub-quests */
|
|
6588
|
-
const QuestDataSchema = z$1.object({
|
|
6589
|
-
id: z$1.string(),
|
|
6590
|
-
title: z$1.string(),
|
|
6591
|
-
description: z$1.string(),
|
|
6592
|
-
complexity: z$1.string(),
|
|
6593
|
-
subQuests: z$1.array(SubQuestSchema)
|
|
6594
|
-
});
|
|
6595
|
-
/** Handoff state for session continuity */
|
|
6596
|
-
const HandoffSchema = z$1.object({
|
|
6597
|
-
summary: z$1.string(),
|
|
6598
|
-
nextSteps: z$1.array(z$1.string()),
|
|
6599
|
-
pendingDecisions: z$1.array(z$1.string()),
|
|
6600
|
-
blockers: z$1.array(z$1.string()),
|
|
6601
|
-
lastUpdatedBy: z$1.string(),
|
|
6602
|
-
updatedAt: z$1.string()
|
|
6603
|
-
});
|
|
6604
|
-
z$1.object({
|
|
6605
|
-
id: z$1.string(),
|
|
6606
|
-
notebookId: z$1.string(),
|
|
6607
|
-
goal: z$1.string(),
|
|
6608
|
-
quests: z$1.array(QuestDataSchema),
|
|
6609
|
-
state: z$1.enum([
|
|
6610
|
-
"draft",
|
|
6611
|
-
"active",
|
|
6612
|
-
"paused",
|
|
6613
|
-
"completed",
|
|
6614
|
-
"archived"
|
|
6615
|
-
]).optional(),
|
|
6616
|
-
handoff: HandoffSchema.optional(),
|
|
6617
|
-
metrics: z$1.object({
|
|
6618
|
-
totalTimeSpent: z$1.number(),
|
|
6619
|
-
completionRate: z$1.number(),
|
|
6620
|
-
subQuestsCompleted: z$1.number(),
|
|
6621
|
-
subQuestsTotal: z$1.number(),
|
|
6622
|
-
lastProgress: z$1.string().optional()
|
|
6623
|
-
}).optional()
|
|
6624
|
-
});
|
|
6625
|
-
z$1.object({
|
|
6626
|
-
planId: z$1.string(),
|
|
6627
|
-
questId: z$1.string(),
|
|
6628
|
-
subQuestId: z$1.string(),
|
|
6629
|
-
reviewStatus: z$1.enum(REVIEW_GATE_STATUS_VALUES),
|
|
6630
|
-
reviewNote: z$1.string().optional()
|
|
6631
|
-
});
|
|
6632
|
-
z$1.object({
|
|
6633
|
-
planId: z$1.string(),
|
|
6634
|
-
questId: z$1.string(),
|
|
6635
|
-
subQuestId: z$1.string(),
|
|
6636
|
-
status: z$1.enum(SUBQUEST_STATUS_VALUES).optional(),
|
|
6637
|
-
evidence: z$1.string().optional(),
|
|
6638
|
-
timeSpent: z$1.number().optional()
|
|
6639
|
-
});
|
|
6640
|
-
z$1.object({
|
|
6641
|
-
planId: z$1.string(),
|
|
6642
|
-
summary: z$1.string(),
|
|
6643
|
-
nextSteps: z$1.array(z$1.string()),
|
|
6644
|
-
pendingDecisions: z$1.array(z$1.string()),
|
|
6645
|
-
blockers: z$1.array(z$1.string())
|
|
6646
|
-
});
|
|
6647
|
-
z$1.object({
|
|
6648
|
-
success: z$1.boolean(),
|
|
6649
|
-
plan: z$1.unknown().optional(),
|
|
6650
|
-
metrics: z$1.object({
|
|
6651
|
-
totalTimeSpent: z$1.number(),
|
|
6652
|
-
completionRate: z$1.number(),
|
|
6653
|
-
subQuestsCompleted: z$1.number(),
|
|
6654
|
-
subQuestsTotal: z$1.number(),
|
|
6655
|
-
lastProgress: z$1.string().optional()
|
|
6656
|
-
}).optional()
|
|
6657
|
-
});
|
|
6658
6554
|
//#endregion
|
|
6659
6555
|
//#region src/features/tavern/TavernActivityStream.ts
|
|
6660
6556
|
/**
|
|
@@ -6689,29 +6585,6 @@ var TavernActivityStream = class {
|
|
|
6689
6585
|
};
|
|
6690
6586
|
//#endregion
|
|
6691
6587
|
//#region src/features/tavern/tavernTools.ts
|
|
6692
|
-
const GetQuestPlanParamsSchema = z$1.object({ plan_id: z$1.string().min(1) });
|
|
6693
|
-
const UpdateReviewGateParamsSchema = z$1.object({
|
|
6694
|
-
plan_id: z$1.string().min(1),
|
|
6695
|
-
quest_id: z$1.string().min(1),
|
|
6696
|
-
sub_quest_id: z$1.string().min(1),
|
|
6697
|
-
review_status: z$1.enum(REVIEW_GATE_STATUS_VALUES),
|
|
6698
|
-
review_note: z$1.string().optional()
|
|
6699
|
-
});
|
|
6700
|
-
const UpdateQuestProgressParamsSchema = z$1.object({
|
|
6701
|
-
plan_id: z$1.string().min(1),
|
|
6702
|
-
quest_id: z$1.string().min(1),
|
|
6703
|
-
sub_quest_id: z$1.string().min(1),
|
|
6704
|
-
status: z$1.enum(SUBQUEST_STATUS_VALUES).optional(),
|
|
6705
|
-
evidence: z$1.string().optional(),
|
|
6706
|
-
time_spent: z$1.number().min(0).optional()
|
|
6707
|
-
});
|
|
6708
|
-
const WriteHandoffParamsSchema = z$1.object({
|
|
6709
|
-
plan_id: z$1.string().min(1),
|
|
6710
|
-
summary: z$1.string().min(1),
|
|
6711
|
-
next_steps: z$1.array(z$1.string()),
|
|
6712
|
-
pending_decisions: z$1.array(z$1.string()),
|
|
6713
|
-
blockers: z$1.array(z$1.string())
|
|
6714
|
-
});
|
|
6715
6588
|
/**
|
|
6716
6589
|
* Factory that creates ICompletionOptionTools[] for the Tavern feature.
|
|
6717
6590
|
* Each tool is a pure adapter: schema + delegation to the service.
|
|
@@ -6732,11 +6605,7 @@ function createTavernTools(service) {
|
|
|
6732
6605
|
createToggleHeartbeatsTool(service),
|
|
6733
6606
|
createTriggerHeartbeatTool(service),
|
|
6734
6607
|
createAbortHeartbeatsTool(service),
|
|
6735
|
-
createStatusTool(service)
|
|
6736
|
-
createGetQuestPlanTool(service),
|
|
6737
|
-
createUpdateReviewGateTool(service),
|
|
6738
|
-
createUpdateQuestProgressTool(service),
|
|
6739
|
-
createWriteHandoffTool(service)
|
|
6608
|
+
createStatusTool(service)
|
|
6740
6609
|
];
|
|
6741
6610
|
}
|
|
6742
6611
|
function createListAgentsTool(service) {
|
|
@@ -7265,177 +7134,6 @@ function createStatusTool(service) {
|
|
|
7265
7134
|
}
|
|
7266
7135
|
};
|
|
7267
7136
|
}
|
|
7268
|
-
function createGetQuestPlanTool(service) {
|
|
7269
|
-
return {
|
|
7270
|
-
toolSchema: {
|
|
7271
|
-
name: "tavern_get_quest_plan",
|
|
7272
|
-
description: "Fetch a quest master plan by ID. Returns the full plan with all quests, sub-quests, review gate status, handoff state, and progress metrics. Use this to check which sub-quests have review gates and their current status.",
|
|
7273
|
-
parameters: {
|
|
7274
|
-
type: "object",
|
|
7275
|
-
properties: { plan_id: {
|
|
7276
|
-
type: "string",
|
|
7277
|
-
description: "The MongoDB ObjectId of the quest master plan"
|
|
7278
|
-
} },
|
|
7279
|
-
required: ["plan_id"]
|
|
7280
|
-
}
|
|
7281
|
-
},
|
|
7282
|
-
toolFn: async (params) => {
|
|
7283
|
-
const { plan_id } = GetQuestPlanParamsSchema.parse(params);
|
|
7284
|
-
const result = await service.getQuestPlan(plan_id);
|
|
7285
|
-
return JSON.stringify(result);
|
|
7286
|
-
}
|
|
7287
|
-
};
|
|
7288
|
-
}
|
|
7289
|
-
function createUpdateReviewGateTool(service) {
|
|
7290
|
-
return {
|
|
7291
|
-
toolSchema: {
|
|
7292
|
-
name: "tavern_update_review_gate",
|
|
7293
|
-
description: "Approve or reject a review gate on a sub-quest. Review gates are human approval checkpoints — when a sub-quest has reviewGate: true, the AI must stop and wait for human approval before proceeding.",
|
|
7294
|
-
parameters: {
|
|
7295
|
-
type: "object",
|
|
7296
|
-
properties: {
|
|
7297
|
-
plan_id: {
|
|
7298
|
-
type: "string",
|
|
7299
|
-
description: "The MongoDB ObjectId of the quest master plan"
|
|
7300
|
-
},
|
|
7301
|
-
quest_id: {
|
|
7302
|
-
type: "string",
|
|
7303
|
-
description: "The ID of the parent quest"
|
|
7304
|
-
},
|
|
7305
|
-
sub_quest_id: {
|
|
7306
|
-
type: "string",
|
|
7307
|
-
description: "The ID of the sub-quest with the review gate"
|
|
7308
|
-
},
|
|
7309
|
-
review_status: {
|
|
7310
|
-
type: "string",
|
|
7311
|
-
description: "The review decision",
|
|
7312
|
-
enum: [...REVIEW_GATE_STATUS_VALUES]
|
|
7313
|
-
},
|
|
7314
|
-
review_note: {
|
|
7315
|
-
type: "string",
|
|
7316
|
-
description: "Optional note explaining the review decision"
|
|
7317
|
-
}
|
|
7318
|
-
},
|
|
7319
|
-
required: [
|
|
7320
|
-
"plan_id",
|
|
7321
|
-
"quest_id",
|
|
7322
|
-
"sub_quest_id",
|
|
7323
|
-
"review_status"
|
|
7324
|
-
]
|
|
7325
|
-
}
|
|
7326
|
-
},
|
|
7327
|
-
toolFn: async (params) => {
|
|
7328
|
-
const { plan_id, quest_id, sub_quest_id, review_status, review_note } = UpdateReviewGateParamsSchema.parse(params);
|
|
7329
|
-
const result = await service.updateReviewGate(plan_id, quest_id, sub_quest_id, review_status, review_note);
|
|
7330
|
-
return JSON.stringify(result);
|
|
7331
|
-
}
|
|
7332
|
-
};
|
|
7333
|
-
}
|
|
7334
|
-
function createUpdateQuestProgressTool(service) {
|
|
7335
|
-
return {
|
|
7336
|
-
toolSchema: {
|
|
7337
|
-
name: "tavern_update_quest_progress",
|
|
7338
|
-
description: "Update a sub-quest's progress. Set status to track completion, add evidence of what was accomplished, and optionally record time spent. Setting status to \"in_progress\" auto-resumes a paused plan.",
|
|
7339
|
-
parameters: {
|
|
7340
|
-
type: "object",
|
|
7341
|
-
properties: {
|
|
7342
|
-
plan_id: {
|
|
7343
|
-
type: "string",
|
|
7344
|
-
description: "The MongoDB ObjectId of the quest master plan"
|
|
7345
|
-
},
|
|
7346
|
-
quest_id: {
|
|
7347
|
-
type: "string",
|
|
7348
|
-
description: "The ID of the parent quest"
|
|
7349
|
-
},
|
|
7350
|
-
sub_quest_id: {
|
|
7351
|
-
type: "string",
|
|
7352
|
-
description: "The ID of the sub-quest to update"
|
|
7353
|
-
},
|
|
7354
|
-
status: {
|
|
7355
|
-
type: "string",
|
|
7356
|
-
description: "New status for the sub-quest",
|
|
7357
|
-
enum: [...SUBQUEST_STATUS_VALUES]
|
|
7358
|
-
},
|
|
7359
|
-
evidence: {
|
|
7360
|
-
type: "string",
|
|
7361
|
-
description: "Evidence of completion — links to artifacts, descriptions of output, or references to results"
|
|
7362
|
-
},
|
|
7363
|
-
time_spent: {
|
|
7364
|
-
type: "number",
|
|
7365
|
-
description: "Time spent on this sub-quest in milliseconds"
|
|
7366
|
-
}
|
|
7367
|
-
},
|
|
7368
|
-
required: [
|
|
7369
|
-
"plan_id",
|
|
7370
|
-
"quest_id",
|
|
7371
|
-
"sub_quest_id"
|
|
7372
|
-
]
|
|
7373
|
-
}
|
|
7374
|
-
},
|
|
7375
|
-
toolFn: async (params) => {
|
|
7376
|
-
const { plan_id, quest_id, sub_quest_id, status, evidence, time_spent } = UpdateQuestProgressParamsSchema.parse(params);
|
|
7377
|
-
const updates = {};
|
|
7378
|
-
if (status !== void 0) updates.status = status;
|
|
7379
|
-
if (evidence !== void 0) updates.evidence = evidence;
|
|
7380
|
-
if (time_spent !== void 0) updates.timeSpent = time_spent;
|
|
7381
|
-
const result = await service.updateSubQuestProgress(plan_id, quest_id, sub_quest_id, updates);
|
|
7382
|
-
return JSON.stringify(result);
|
|
7383
|
-
}
|
|
7384
|
-
};
|
|
7385
|
-
}
|
|
7386
|
-
function createWriteHandoffTool(service) {
|
|
7387
|
-
return {
|
|
7388
|
-
toolSchema: {
|
|
7389
|
-
name: "tavern_write_handoff",
|
|
7390
|
-
description: "Write a handoff state for session continuity. Called when ending a session so the next session can resume with full context. Includes a summary of progress, next steps, pending decisions, and blockers.",
|
|
7391
|
-
parameters: {
|
|
7392
|
-
type: "object",
|
|
7393
|
-
properties: {
|
|
7394
|
-
plan_id: {
|
|
7395
|
-
type: "string",
|
|
7396
|
-
description: "The MongoDB ObjectId of the quest master plan"
|
|
7397
|
-
},
|
|
7398
|
-
summary: {
|
|
7399
|
-
type: "string",
|
|
7400
|
-
description: "Summary of what was accomplished in this session"
|
|
7401
|
-
},
|
|
7402
|
-
next_steps: {
|
|
7403
|
-
type: "array",
|
|
7404
|
-
items: { type: "string" },
|
|
7405
|
-
description: "List of next steps for the following session"
|
|
7406
|
-
},
|
|
7407
|
-
pending_decisions: {
|
|
7408
|
-
type: "array",
|
|
7409
|
-
items: { type: "string" },
|
|
7410
|
-
description: "Decisions that still need to be made"
|
|
7411
|
-
},
|
|
7412
|
-
blockers: {
|
|
7413
|
-
type: "array",
|
|
7414
|
-
items: { type: "string" },
|
|
7415
|
-
description: "Current blockers preventing progress"
|
|
7416
|
-
}
|
|
7417
|
-
},
|
|
7418
|
-
required: [
|
|
7419
|
-
"plan_id",
|
|
7420
|
-
"summary",
|
|
7421
|
-
"next_steps",
|
|
7422
|
-
"pending_decisions",
|
|
7423
|
-
"blockers"
|
|
7424
|
-
]
|
|
7425
|
-
}
|
|
7426
|
-
},
|
|
7427
|
-
toolFn: async (params) => {
|
|
7428
|
-
const { plan_id, summary, next_steps, pending_decisions, blockers } = WriteHandoffParamsSchema.parse(params);
|
|
7429
|
-
const result = await service.updateHandoff(plan_id, {
|
|
7430
|
-
summary,
|
|
7431
|
-
nextSteps: next_steps,
|
|
7432
|
-
pendingDecisions: pending_decisions,
|
|
7433
|
-
blockers
|
|
7434
|
-
});
|
|
7435
|
-
return JSON.stringify(result);
|
|
7436
|
-
}
|
|
7437
|
-
};
|
|
7438
|
-
}
|
|
7439
7137
|
//#endregion
|
|
7440
7138
|
//#region src/features/tavern/TavernModule.ts
|
|
7441
7139
|
/** Icons for heartbeat log actions shown in /tavern command */
|
|
@@ -7499,23 +7197,9 @@ Available actions:
|
|
|
7499
7197
|
- **tavern_trigger_heartbeat**: Manually trigger a heartbeat cycle
|
|
7500
7198
|
- **tavern_abort_heartbeats**: Emergency stop all in-flight heartbeats
|
|
7501
7199
|
- **tavern_status**: Quick overview of agents, quests, and gates — good for situational awareness
|
|
7502
|
-
- **tavern_get_quest_plan**: Fetch a quest master plan with review gate status and handoff state
|
|
7503
|
-
- **tavern_update_review_gate**: Approve or reject a review gate on a sub-quest
|
|
7504
|
-
- **tavern_update_quest_progress**: Update sub-quest status and record evidence of completion
|
|
7505
|
-
- **tavern_write_handoff**: Write session handoff for continuity across sessions
|
|
7506
7200
|
|
|
7507
7201
|
When the user mentions talking to agents, checking the quest board, or managing the tavern, use these tools.
|
|
7508
|
-
Agents have personalities, moods, quests, and memories
|
|
7509
|
-
|
|
7510
|
-
## Quest Workflow (Review Gates)
|
|
7511
|
-
When working on a quest plan with review gates (reviewGate: true on sub-quests), you MUST:
|
|
7512
|
-
1. Check review gate status with tavern_get_quest_plan before proceeding past a gated step
|
|
7513
|
-
2. If the next sub-quest has reviewGate: true and reviewStatus is not 'approved', STOP and inform the user
|
|
7514
|
-
3. Record evidence of completion with tavern_update_quest_progress when finishing a sub-quest
|
|
7515
|
-
4. Write a handoff with tavern_write_handoff before ending a session with an active quest plan
|
|
7516
|
-
|
|
7517
|
-
## Session Handoff & Resume
|
|
7518
|
-
When the user runs /quest resume <plan_id>, read the handoff context and continue from where the previous session left off. The handoff contains: summary of prior work, next steps, pending decisions, and blockers.`;
|
|
7202
|
+
Agents have personalities, moods, quests, and memories - they are autonomous entities, not chatbots.`;
|
|
7519
7203
|
}
|
|
7520
7204
|
getCommands() {
|
|
7521
7205
|
return [{
|
|
@@ -7540,95 +7224,6 @@ When the user runs /quest resume <plan_id>, read the handoff context and continu
|
|
|
7540
7224
|
}
|
|
7541
7225
|
console.log("");
|
|
7542
7226
|
}
|
|
7543
|
-
}, {
|
|
7544
|
-
name: "quest",
|
|
7545
|
-
description: "Quest workflow commands: review gates, resume from handoff",
|
|
7546
|
-
execute: async (args) => {
|
|
7547
|
-
const subCommand = args[0];
|
|
7548
|
-
if (subCommand === "resume") {
|
|
7549
|
-
const planId = args[1];
|
|
7550
|
-
if (!planId) {
|
|
7551
|
-
console.log("\nUsage: /quest resume <plan_id>");
|
|
7552
|
-
console.log(" Loads the quest plan and displays the session handoff for continuity.\n");
|
|
7553
|
-
return;
|
|
7554
|
-
}
|
|
7555
|
-
try {
|
|
7556
|
-
const plan = await this.service.getQuestPlan(planId);
|
|
7557
|
-
console.log(`\nQuest Plan: ${plan.goal}`);
|
|
7558
|
-
console.log(`State: ${plan.state ?? "unknown"}`);
|
|
7559
|
-
if (plan.metrics) {
|
|
7560
|
-
const pct = Math.round(plan.metrics.completionRate * 100);
|
|
7561
|
-
console.log(`Progress: ${plan.metrics.subQuestsCompleted}/${plan.metrics.subQuestsTotal} sub-quests (${pct}%)`);
|
|
7562
|
-
}
|
|
7563
|
-
if (!plan.handoff) {
|
|
7564
|
-
console.log("\n No handoff found — this plan has no saved session context.");
|
|
7565
|
-
console.log(" The AI can still read the plan via tavern_get_quest_plan.\n");
|
|
7566
|
-
return;
|
|
7567
|
-
}
|
|
7568
|
-
const { handoff } = plan;
|
|
7569
|
-
console.log(`\nSession Handoff (${new Date(handoff.updatedAt).toLocaleString()}):`);
|
|
7570
|
-
console.log(`\n Summary: ${handoff.summary}`);
|
|
7571
|
-
if (handoff.nextSteps.length > 0) {
|
|
7572
|
-
console.log("\n Next Steps:");
|
|
7573
|
-
for (const step of handoff.nextSteps) console.log(` \u2022 ${step}`);
|
|
7574
|
-
}
|
|
7575
|
-
if (handoff.pendingDecisions.length > 0) {
|
|
7576
|
-
console.log("\n Pending Decisions:");
|
|
7577
|
-
for (const decision of handoff.pendingDecisions) console.log(` \u2753 ${decision}`);
|
|
7578
|
-
}
|
|
7579
|
-
if (handoff.blockers.length > 0) {
|
|
7580
|
-
console.log("\n Blockers:");
|
|
7581
|
-
for (const blocker of handoff.blockers) console.log(` \u{1F6D1} ${blocker}`);
|
|
7582
|
-
}
|
|
7583
|
-
console.log("");
|
|
7584
|
-
} catch (error) {
|
|
7585
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
7586
|
-
console.log(`\nError fetching quest plan: ${message}\n`);
|
|
7587
|
-
}
|
|
7588
|
-
return;
|
|
7589
|
-
}
|
|
7590
|
-
if (subCommand === "review") {
|
|
7591
|
-
const planId = args[1];
|
|
7592
|
-
if (!planId) {
|
|
7593
|
-
console.log("\nUsage: /quest review <plan_id>");
|
|
7594
|
-
console.log(" Fetches the quest plan and shows sub-quests with pending review gates.\n");
|
|
7595
|
-
return;
|
|
7596
|
-
}
|
|
7597
|
-
try {
|
|
7598
|
-
const plan = await this.service.getQuestPlan(planId);
|
|
7599
|
-
const pendingGates = [];
|
|
7600
|
-
for (const quest of plan.quests) for (const sq of quest.subQuests) if (sq.reviewGate) pendingGates.push({
|
|
7601
|
-
questTitle: quest.title,
|
|
7602
|
-
questId: quest.id,
|
|
7603
|
-
subQuestTitle: sq.title,
|
|
7604
|
-
subQuestId: sq.id,
|
|
7605
|
-
status: sq.reviewStatus ?? "pending"
|
|
7606
|
-
});
|
|
7607
|
-
if (pendingGates.length === 0) {
|
|
7608
|
-
console.log(`\nQuest Plan: ${plan.goal}`);
|
|
7609
|
-
console.log(" No review gates configured in this plan.\n");
|
|
7610
|
-
return;
|
|
7611
|
-
}
|
|
7612
|
-
console.log(`\nQuest Plan: ${plan.goal}`);
|
|
7613
|
-
console.log(`State: ${plan.state ?? "unknown"}\n`);
|
|
7614
|
-
console.log("Review Gates:");
|
|
7615
|
-
for (const gate of pendingGates) {
|
|
7616
|
-
const icon = gate.status === "approved" ? "✅" : gate.status === "rejected" ? "❌" : "⏸️";
|
|
7617
|
-
console.log(` ${icon} [${gate.status}] ${gate.questTitle} > ${gate.subQuestTitle}`);
|
|
7618
|
-
console.log(` quest_id: ${gate.questId} sub_quest_id: ${gate.subQuestId}`);
|
|
7619
|
-
}
|
|
7620
|
-
console.log("\n To approve: ask the AI to approve a review gate, or use tavern_update_review_gate tool.\n");
|
|
7621
|
-
} catch (error) {
|
|
7622
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
7623
|
-
console.log(`\nError fetching quest plan: ${message}\n`);
|
|
7624
|
-
}
|
|
7625
|
-
return;
|
|
7626
|
-
}
|
|
7627
|
-
console.log("\nUsage:");
|
|
7628
|
-
console.log(" /quest review <plan_id> — Show review gates and their status");
|
|
7629
|
-
console.log(" /quest resume <plan_id> — Load handoff and resume from where you left off");
|
|
7630
|
-
console.log("");
|
|
7631
|
-
}
|
|
7632
7227
|
}];
|
|
7633
7228
|
}
|
|
7634
7229
|
registerWsHandlers(wsManager) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { D as sanitizeTerminalText } from "./ConfigStore-
|
|
2
|
+
import { D as sanitizeTerminalText } from "./ConfigStore-BuLA_-uZ.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";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { readlinkSync, realpathSync } from "fs";
|
|
3
3
|
import path from "path";
|
|
4
|
-
//#region ../../b4m-core/services/dist/pathValidation-
|
|
4
|
+
//#region ../../b4m-core/services/dist/pathValidation-C4ADzpUR.mjs
|
|
5
5
|
/**
|
|
6
6
|
* Resolves a path to its canonical form, following symlinks.
|
|
7
7
|
* If the path doesn't exist (e.g., file being created), resolves the
|
|
@@ -31,18 +31,27 @@ function resolveRealPath(filePath) {
|
|
|
31
31
|
* @returns Object with validation result, resolved path, and matched directory if allowed
|
|
32
32
|
*/
|
|
33
33
|
function isPathAllowed(filePath, allowedDirectories) {
|
|
34
|
+
return createPathChecker(allowedDirectories)(filePath);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* {@link isPathAllowed} with the working directory and allowed directories resolved once, for
|
|
38
|
+
* checking many paths against the same roots.
|
|
39
|
+
*/
|
|
40
|
+
function createPathChecker(allowedDirectories) {
|
|
34
41
|
const cwd = resolveRealPath(process.cwd());
|
|
35
42
|
const allAllowed = [cwd, ...(allowedDirectories || []).map((d) => resolveRealPath(d))];
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
return (filePath) => {
|
|
44
|
+
const normalizedPath = path.normalize(filePath);
|
|
45
|
+
const resolvedPath = resolveRealPath(path.isAbsolute(normalizedPath) ? normalizedPath : path.resolve(cwd, normalizedPath));
|
|
46
|
+
for (const dir of allAllowed) if (resolvedPath === dir || resolvedPath.startsWith(dir + path.sep)) return {
|
|
47
|
+
allowed: true,
|
|
48
|
+
resolvedPath,
|
|
49
|
+
matchedDirectory: dir
|
|
50
|
+
};
|
|
51
|
+
return {
|
|
52
|
+
allowed: false,
|
|
53
|
+
resolvedPath
|
|
54
|
+
};
|
|
46
55
|
};
|
|
47
56
|
}
|
|
48
57
|
/**
|
|
@@ -63,5 +72,20 @@ function assertPathAllowed(filePath, allowedDirectories, operation = "access") {
|
|
|
63
72
|
}
|
|
64
73
|
return result.resolvedPath;
|
|
65
74
|
}
|
|
75
|
+
/** Whether a file name is `.git`, compared the way case-insensitive filesystems and Windows do. */
|
|
76
|
+
function isGitDirectoryName(name) {
|
|
77
|
+
return name.replace(/[. ]+$/, "").toLowerCase() === ".git";
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* {@link assertPathAllowed} for a tool that creates, edits or deletes files: also refuses any path
|
|
81
|
+
* with a `.git` segment below the allowed directory it falls in. Only literal `.git` segments are
|
|
82
|
+
* covered, not a hooks directory configured elsewhere through `core.hooksPath`.
|
|
83
|
+
*/
|
|
84
|
+
function assertWritablePath(filePath, allowedDirectories, operation = "write") {
|
|
85
|
+
const resolvedPath = assertPathAllowed(filePath, allowedDirectories, operation);
|
|
86
|
+
const { matchedDirectory } = isPathAllowed(resolvedPath, allowedDirectories);
|
|
87
|
+
if ((matchedDirectory ? path.relative(matchedDirectory, resolvedPath) : resolvedPath).split(/[\\/]/).some(isGitDirectoryName)) throw new Error(`Access denied: Cannot ${operation} files inside a .git directory.`);
|
|
88
|
+
return resolvedPath;
|
|
89
|
+
}
|
|
66
90
|
//#endregion
|
|
67
|
-
export { isPathAllowed as n, assertPathAllowed as t };
|
|
91
|
+
export { isPathAllowed as a, isGitDirectoryName as i, assertWritablePath as n, createPathChecker as r, assertPathAllowed as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { C as NotAuthenticatedError, T as parseApiUrl, t as ConfigStore, v as requireApiUrl } from "./ConfigStore-
|
|
3
|
-
import { c as resolveSupportedMimeType, i as parseRetryAfterSeconds, r as createClient, t as B4mApiError } from "./dist-
|
|
4
|
-
import { $ as RESEARCH_ITEM_RULE_ACTIONS, A as DEFAULT_TTS_PROVIDER, D as CreateArtifactRequestSchema, Ht as
|
|
5
|
-
import { n as isProviderKeyFailure, t as ApiClient } from "./ApiClient-
|
|
2
|
+
import { C as NotAuthenticatedError, T as parseApiUrl, t as ConfigStore, v as requireApiUrl } from "./ConfigStore-BuLA_-uZ.mjs";
|
|
3
|
+
import { c as resolveSupportedMimeType, i as parseRetryAfterSeconds, r as createClient, t as B4mApiError } from "./dist-DsMzCRLX.mjs";
|
|
4
|
+
import { $ as RESEARCH_ITEM_RULE_ACTIONS, $t as ttsRequestSchema, A as DEFAULT_TTS_PROVIDER, Bt as questReplyText, D as CreateArtifactRequestSchema, Ft as joinReplySlots, Ht as replacePromptVariables, It as normalizeDomainEntry, J as PROMPT_TEXT_MAX, L as ImageJobSchema, O as CreateImageJobResponseSchema, Q as RESEARCH_FEED_URL_MAX_CHARS, Qt as ttsBase64ResponseSchema, R as ImageModels, X as RESEARCH_COST_CEILING_MICRO_USD_LIMIT, Xt as supportedVoiceGenerationVendor, Z as RESEARCH_DROP_REASONS, b as BriefcasePromptIdSchema, bt as generatedAudioResponseSchema, c as AGENT_QUEST_MANIFEST, ct as VisibilitySchema, en as ttsResponseTooLargeSchema, et as RESEARCH_MIN_RELEVANCE_DEFAULT, ft as buildPromptContext, g as ArtifactTypeSchema, k as DATA_LAKE_PROPOSAL_STATUSES, l as AGENT_QUEST_MCP_URI, m as ApiKeyScope, nt as RESEARCH_SOURCES, rt as RESEARCH_UNLISTED_SOURCES, s as AGENT_QUEST_ID, t as logger, tt as RESEARCH_SCHEDULE_CADENCES, v as BRIEFCASE_CATALOG_QUERIES } from "./Logger-CjaYx85U.mjs";
|
|
5
|
+
import { n as isProviderKeyFailure, t as ApiClient } from "./ApiClient-D4bDuWXg.mjs";
|
|
6
6
|
import { E as HuggingFaceHub, F as curatedRunner, G as ollamaLibraryLayers, z as isAbliteratedModel } from "./dist-K7a9yOUb.mjs";
|
|
7
|
-
import { G as NO_LICENSE, J as abortable, Q as formatBytes, U as CancelledError, X as clean, Y as buildTag, Z as findInstalledModel, _ as shellWord, _t as resolveRuntimeTarget, bt as shortDigest, c as requireManageable, dt as removeInstalled, et as hadTagBefore, f as serverFetch, ft as requireInstalledReviewed, g as withSignal, gt as requireUnchangedManifest, ht as requireUnchangedLicenses, l as resolveServerTarget, lt as planPull, mt as requireReviewedLayers, n as findModelServer, nt as hubAccessMessage, o as noSuchServer, ot as licenseName, pt as requireRemovable, r as loadModelServers, rt as installedUncheckedMessage, st as listInstalled, t as defaultOn, tt as hiddenAbliteratedMessage, ut as rankSearchHits, vt as runtimeLabel, xt as readOllamaManifest, yt as sameModelName } from "./modelServers-
|
|
8
|
-
import { i as fitForPlan, o as machineReader, s as createCliCuratedList, t as FIT_LABELS } from "./fit-
|
|
7
|
+
import { G as NO_LICENSE, J as abortable, Q as formatBytes, U as CancelledError, X as clean, Y as buildTag, Z as findInstalledModel, _ as shellWord, _t as resolveRuntimeTarget, bt as shortDigest, c as requireManageable, dt as removeInstalled, et as hadTagBefore, f as serverFetch, ft as requireInstalledReviewed, g as withSignal, gt as requireUnchangedManifest, ht as requireUnchangedLicenses, l as resolveServerTarget, lt as planPull, mt as requireReviewedLayers, n as findModelServer, nt as hubAccessMessage, o as noSuchServer, ot as licenseName, pt as requireRemovable, r as loadModelServers, rt as installedUncheckedMessage, st as listInstalled, t as defaultOn, tt as hiddenAbliteratedMessage, ut as rankSearchHits, vt as runtimeLabel, xt as readOllamaManifest, yt as sameModelName } from "./modelServers-DeOGFwLi.mjs";
|
|
8
|
+
import { i as fitForPlan, o as machineReader, s as createCliCuratedList, t as FIT_LABELS } from "./fit-C9eLTDcR.mjs";
|
|
9
9
|
import { basename, resolve, sep } from "node:path";
|
|
10
10
|
import { constants } from "node:fs";
|
|
11
11
|
import { z as z$1 } from "zod";
|
|
@@ -88,7 +88,7 @@ async function getAutoUpdatePreference() {
|
|
|
88
88
|
*/
|
|
89
89
|
async function setAutoUpdatePreference(value, configPath) {
|
|
90
90
|
try {
|
|
91
|
-
const { ConfigStore } = await import("./ConfigStore-
|
|
91
|
+
const { ConfigStore } = await import("./ConfigStore-DdqxfmDr.mjs");
|
|
92
92
|
await new ConfigStore(configPath).saveAutoUpdatePreference(value);
|
|
93
93
|
} catch {}
|
|
94
94
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bike4mind/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"mcpName": "io.github.Bike4Mind/bike4mind",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
@@ -51,7 +51,6 @@
|
|
|
51
51
|
"fuse.js": "^7.5.0",
|
|
52
52
|
"fzf": "^0.5.2",
|
|
53
53
|
"glob": "^14.0.2",
|
|
54
|
-
"gray-matter": "^4.0.3",
|
|
55
54
|
"ignore": "^7.0.9",
|
|
56
55
|
"ink": "^7.1.1",
|
|
57
56
|
"ink-select-input": "^6.2.0",
|
|
@@ -94,19 +93,19 @@
|
|
|
94
93
|
"tsx": "^4.23.0",
|
|
95
94
|
"typescript": "^5.9.3",
|
|
96
95
|
"vitest": "^4.1.12",
|
|
97
|
-
"@bike4mind/agents": "1.8.
|
|
96
|
+
"@bike4mind/agents": "1.8.9",
|
|
98
97
|
"@bike4mind/client-auth": "0.5.0",
|
|
99
|
-
"@bike4mind/common": "
|
|
100
|
-
"@bike4mind/fab-pipeline": "3.2
|
|
98
|
+
"@bike4mind/common": "31.3.0",
|
|
99
|
+
"@bike4mind/fab-pipeline": "3.3.2",
|
|
101
100
|
"@bike4mind/hearth": "0.3.1",
|
|
102
|
-
"@bike4mind/llm-adapters": "2.
|
|
103
|
-
"@bike4mind/local-models": "0.1.
|
|
104
|
-
"@bike4mind/mcp": "2.2.
|
|
101
|
+
"@bike4mind/llm-adapters": "2.10.0",
|
|
102
|
+
"@bike4mind/local-models": "0.1.13",
|
|
103
|
+
"@bike4mind/mcp": "2.2.12",
|
|
105
104
|
"@bike4mind/model-host": "0.1.0",
|
|
106
105
|
"@bike4mind/observability": "1.1.0",
|
|
107
|
-
"@bike4mind/sdk": "
|
|
108
|
-
"@bike4mind/services": "npm:@bike4mind/services-core@
|
|
109
|
-
"@bike4mind/utils": "
|
|
106
|
+
"@bike4mind/sdk": "6.2.0",
|
|
107
|
+
"@bike4mind/services": "npm:@bike4mind/services-core@31.3.0",
|
|
108
|
+
"@bike4mind/utils": "13.1.2"
|
|
110
109
|
},
|
|
111
110
|
"optionalDependencies": {
|
|
112
111
|
"@vscode/ripgrep": "^1.18.0"
|