@bike4mind/cli 0.2.69-prod.22042 → 0.2.70-fix-idempotent-file-delete.22016

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.
@@ -5031,7 +5031,7 @@ const TokensBySourceSchema = z.object({
5031
5031
  toolSchemas: z.number(),
5032
5032
  userPrompt: z.number()
5033
5033
  });
5034
- const ContextWindowTelemetrySchema = z.object({
5034
+ z.object({
5035
5035
  inputTokens: z.number(),
5036
5036
  outputTokens: z.number(),
5037
5037
  contextWindowLimit: z.number(),
@@ -5156,25 +5156,36 @@ const RequestMetadataSchema = z.object({
5156
5156
  mementoCount: z.number(),
5157
5157
  enabledFeatures: z.array(z.string())
5158
5158
  });
5159
+ const ContextWindowTelemetryWithOptionalSourceSchema = z.object({
5160
+ inputTokens: z.number(),
5161
+ outputTokens: z.number(),
5162
+ contextWindowLimit: z.number(),
5163
+ utilizationPercentage: z.number(),
5164
+ reservedOutputTokens: z.number(),
5165
+ overflowDetected: z.boolean(),
5166
+ overflowAmount: z.number().optional(),
5167
+ tokensBySource: TokensBySourceSchema.optional()
5168
+ });
5159
5169
  const ContextTelemetrySchema = z.object({
5160
- schemaVersion: z.literal("1.0"),
5170
+ schemaVersion: z.enum(["1.0", "1.1"]),
5161
5171
  timestamp: z.string(),
5162
5172
  captureOverheadMs: z.number(),
5173
+ captureLevel: z.enum(["basic", "enhanced"]).optional(),
5163
5174
  anonymousSessionId: AnonymousSessionIdSchema,
5164
5175
  spanContext: SpanContextSchema.optional(),
5165
5176
  operation: OperationSchema,
5166
5177
  model: ModelTelemetrySchema,
5167
- systemPrompts: SystemPromptsTelemetrySchema,
5168
- features: FeaturesTelemetrySchema,
5169
- contextWindow: ContextWindowTelemetrySchema,
5178
+ systemPrompts: SystemPromptsTelemetrySchema.optional(),
5179
+ features: FeaturesTelemetrySchema.optional(),
5180
+ contextWindow: ContextWindowTelemetryWithOptionalSourceSchema,
5170
5181
  cache: CacheTelemetrySchema.optional(),
5171
5182
  costs: CostsTelemetrySchema,
5172
- truncation: TruncationTelemetrySchema,
5183
+ truncation: TruncationTelemetrySchema.optional(),
5173
5184
  tools: z.array(ToolTelemetrySchema).optional(),
5174
5185
  subagents: z.array(SubagentTelemetrySchema).optional(),
5175
5186
  performance: PerformanceTelemetrySchema,
5176
5187
  anomalies: AnomaliesTelemetrySchema,
5177
- requestMetadata: RequestMetadataSchema,
5188
+ requestMetadata: RequestMetadataSchema.optional(),
5178
5189
  captureErrors: z.array(z.string()).optional()
5179
5190
  });
5180
5191
  const ALERT_THRESHOLDS = {
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as version, n as fetchLatestVersion, r as forceCheckForUpdate } from "../updateChecker-KQkVxoNk.mjs";
2
+ import { i as version, n as fetchLatestVersion, r as forceCheckForUpdate } from "../updateChecker-DIMgO2uf.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 { I as isReadOnlyTool, L as ReActAgent, M as setWebSocketToolExecutor, P as buildCoreSystemPrompt, R as CustomCommandStore, S as getApiUrl, T as generateCliTools, V as SessionStore, _ as McpManager, a as createBackgroundAgentTools, c as AgentStore, f as ApiClient, g as ServerLlmBackend, h as WebSocketLlmBackend, i as createWriteTodosTool, l as SubagentOrchestrator, m as WebSocketConnectionManager, n as createFindDefinitionTool, o as BackgroundAgentManager, p as WebSocketToolExecutor, r as createTodoStore, s as createAgentDelegateTool, t as createGetFileStructureTool, u as createSkillTool, w as PermissionManager, x as loadContextFiles, z as CheckpointStore } from "../tools-812Lb-Xh.mjs";
3
- import { n as logger, t as ConfigStore } from "../ConfigStore-B-MM4Ee_.mjs";
2
+ import { I as isReadOnlyTool, L as ReActAgent, M as setWebSocketToolExecutor, P as buildCoreSystemPrompt, R as CustomCommandStore, S as getApiUrl, T as generateCliTools, V as SessionStore, _ as McpManager, a as createBackgroundAgentTools, c as AgentStore, f as ApiClient, g as ServerLlmBackend, h as WebSocketLlmBackend, i as createWriteTodosTool, l as SubagentOrchestrator, m as WebSocketConnectionManager, n as createFindDefinitionTool, o as BackgroundAgentManager, p as WebSocketToolExecutor, r as createTodoStore, s as createAgentDelegateTool, t as createGetFileStructureTool, u as createSkillTool, w as PermissionManager, x as loadContextFiles, z as CheckpointStore } from "../tools-CJquAyBq.mjs";
3
+ import { n as logger, t as ConfigStore } from "../ConfigStore-DH64GYfC.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";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as ConfigStore } from "../ConfigStore-B-MM4Ee_.mjs";
2
+ import { t as ConfigStore } from "../ConfigStore-DH64GYfC.mjs";
3
3
  //#region src/commands/mcpCommand.ts
4
4
  /**
5
5
  * External MCP commands (b4m mcp list, b4m mcp add, etc.)
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as version, r as forceCheckForUpdate } from "../updateChecker-KQkVxoNk.mjs";
2
+ import { i as version, r as forceCheckForUpdate } from "../updateChecker-DIMgO2uf.mjs";
3
3
  import { execSync } from "child_process";
4
4
  //#region src/commands/updateCommand.ts
5
5
  /**
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { n as useCliStore, t as selectActiveBackgroundAgents } from "./store-Dw1nZX2Y.mjs";
3
- import { A as clearFeatureModuleTools, B as CommandHistoryStore, C as getEnvironmentName, D as DEFAULT_AGENT_MODEL, E as ALWAYS_DENIED_FOR_AGENTS, F as buildSkillsPromptSection, G as searchCommands, H as OAuthClient, I as isReadOnlyTool, J as searchFiles, K as mergeCommands, L as ReActAgent, M as setWebSocketToolExecutor, N as OllamaBackend, O as DEFAULT_MAX_ITERATIONS, P as buildCoreSystemPrompt, R as CustomCommandStore, S as getApiUrl, T as generateCliTools, U as hasFileReferences, V as SessionStore, W as processFileReferences, Y as warmFileCache, _ as McpManager, a as createBackgroundAgentTools, b as extractCompactInstructions, c as AgentStore, d as parseAgentConfig, f as ApiClient, g as ServerLlmBackend, h as WebSocketLlmBackend, i as createWriteTodosTool, j as registerFeatureModuleTools, k as DEFAULT_THOROUGHNESS, l as SubagentOrchestrator, m as WebSocketConnectionManager, n as createFindDefinitionTool, o as BackgroundAgentManager, p as WebSocketToolExecutor, q as formatFileSize, r as createTodoStore, s as createAgentDelegateTool, t as createGetFileStructureTool, u as createSkillTool, v as substituteArguments, w as PermissionManager, x as loadContextFiles, y as formatStep, z as CheckpointStore } from "./tools-812Lb-Xh.mjs";
4
- import { Dt as validateNotebookPath$1, Et as validateJupyterKernelName, g as ChatModels, m as CREDIT_DEDUCT_TRANSACTION_TYPES, n as logger, t as ConfigStore } from "./ConfigStore-B-MM4Ee_.mjs";
5
- import { i as version, t as checkForUpdate } from "./updateChecker-KQkVxoNk.mjs";
3
+ import { A as clearFeatureModuleTools, B as CommandHistoryStore, C as getEnvironmentName, D as DEFAULT_AGENT_MODEL, E as ALWAYS_DENIED_FOR_AGENTS, F as buildSkillsPromptSection, G as searchCommands, H as OAuthClient, I as isReadOnlyTool, J as searchFiles, K as mergeCommands, L as ReActAgent, M as setWebSocketToolExecutor, N as OllamaBackend, O as DEFAULT_MAX_ITERATIONS, P as buildCoreSystemPrompt, R as CustomCommandStore, S as getApiUrl, T as generateCliTools, U as hasFileReferences, V as SessionStore, W as processFileReferences, Y as warmFileCache, _ as McpManager, a as createBackgroundAgentTools, b as extractCompactInstructions, c as AgentStore, d as parseAgentConfig, f as ApiClient, g as ServerLlmBackend, h as WebSocketLlmBackend, i as createWriteTodosTool, j as registerFeatureModuleTools, k as DEFAULT_THOROUGHNESS, l as SubagentOrchestrator, m as WebSocketConnectionManager, n as createFindDefinitionTool, o as BackgroundAgentManager, p as WebSocketToolExecutor, q as formatFileSize, r as createTodoStore, s as createAgentDelegateTool, t as createGetFileStructureTool, u as createSkillTool, v as substituteArguments, w as PermissionManager, x as loadContextFiles, y as formatStep, z as CheckpointStore } from "./tools-CJquAyBq.mjs";
4
+ import { Dt as validateNotebookPath$1, Et as validateJupyterKernelName, g as ChatModels, m as CREDIT_DEDUCT_TRANSACTION_TYPES, n as logger, t as ConfigStore } from "./ConfigStore-DH64GYfC.mjs";
5
+ import { i as version, t as checkForUpdate } from "./updateChecker-DIMgO2uf.mjs";
6
6
  import React, { useCallback, useEffect, useMemo, useReducer, useRef, useState } from "react";
7
7
  import { Box, Static, Text, render, useApp, useInput } from "ink";
8
8
  import { execSync } from "child_process";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { $ as RegInviteEvents, A as ImageGenerationUsageTransaction, B as OpenAIEmbeddingModel, C as FileEvents, Ct as isGPTImageModel, D as GenericCreditAddTransaction, E as GenerateImageToolCallSchema, F as KnowledgeType, G as ProjectEvents, H as Permission, I as LLMEvents, J as QuestMasterParamsSchema, K as PromptMetaZodSchema, L as MiscEvents, M as InboxEvents, N as InviteEvents, O as GenericCreditDeductTransaction, Ot as CollectionType, P as InviteType, Q as RechartsChartTypeList, R as ModalEvents, S as FeedbackEvents, St as getViewById, T as GEMINI_IMAGE_MODELS, Tt as sanitizeTelemetryError, U as PermissionDeniedError, V as OpenAIImageGenerationInput, W as ProfileEvents, X as RealtimeVoiceUsageTransaction, Y as REASONING_SUPPORTED_MODELS, Z as ReceivedCreditTransaction, _ as CompletionApiUsageTransaction, _t as VoyageAIEmbeddingModel, a as ApiKeyEvents, at as SpeechToTextModels, b as FIXED_TEMPERATURE_MODELS, bt as getDataLakeTags, c as AppFileEvents, ct as TagType, d as BFL_IMAGE_MODELS, dt as ToolUsageTransaction, et as ResearchModeParamsSchema, f as BFL_SAFETY_TOLERANCE, ft as TransferCreditTransaction, g as ChatModels, gt as VideoModels, h as ChatCompletionCreateInputSchema, ht as VideoGenerationUsageTransaction, i as AiEvents, it as SessionEvents, j as ImageModels, k as ImageEditUsageTransaction, l as ArtifactTypeSchema, lt as TaskScheduleHandler, mt as VIDEO_SIZE_CONSTRAINTS, n as logger, nt as ResearchTaskPeriodicFrequencyType, o as ApiKeyScope, ot as SubscriptionCreditTransaction, p as BedrockEmbeddingModel, pt as UiNavigationEvents, q as PurchaseTransaction, r as ALERT_THRESHOLDS, rt as ResearchTaskType, s as ApiKeyType, st as SupportedFabFileMimeTypes, t as ConfigStore, tt as ResearchTaskExecutionType, u as AuthEvents, ut as TextGenerationUsageTransaction, v as DashboardParamsSchema, vt as XAI_IMAGE_MODELS, w as FriendshipEvents, wt as resolveNavigationIntents, x as FavoriteDocumentType, xt as getMcpProviderMetadata, y as ElabsEvents, yt as b4mLLMTools, z as ModelBackend } from "./ConfigStore-B-MM4Ee_.mjs";
2
+ import { $ as RegInviteEvents, A as ImageGenerationUsageTransaction, B as OpenAIEmbeddingModel, C as FileEvents, Ct as isGPTImageModel, D as GenericCreditAddTransaction, E as GenerateImageToolCallSchema, F as KnowledgeType, G as ProjectEvents, H as Permission, I as LLMEvents, J as QuestMasterParamsSchema, K as PromptMetaZodSchema, L as MiscEvents, M as InboxEvents, N as InviteEvents, O as GenericCreditDeductTransaction, Ot as CollectionType, P as InviteType, Q as RechartsChartTypeList, R as ModalEvents, S as FeedbackEvents, St as getViewById, T as GEMINI_IMAGE_MODELS, Tt as sanitizeTelemetryError, U as PermissionDeniedError, V as OpenAIImageGenerationInput, W as ProfileEvents, X as RealtimeVoiceUsageTransaction, Y as REASONING_SUPPORTED_MODELS, Z as ReceivedCreditTransaction, _ as CompletionApiUsageTransaction, _t as VoyageAIEmbeddingModel, a as ApiKeyEvents, at as SpeechToTextModels, b as FIXED_TEMPERATURE_MODELS, bt as getDataLakeTags, c as AppFileEvents, ct as TagType, d as BFL_IMAGE_MODELS, dt as ToolUsageTransaction, et as ResearchModeParamsSchema, f as BFL_SAFETY_TOLERANCE, ft as TransferCreditTransaction, g as ChatModels, gt as VideoModels, h as ChatCompletionCreateInputSchema, ht as VideoGenerationUsageTransaction, i as AiEvents, it as SessionEvents, j as ImageModels, k as ImageEditUsageTransaction, l as ArtifactTypeSchema, lt as TaskScheduleHandler, mt as VIDEO_SIZE_CONSTRAINTS, n as logger, nt as ResearchTaskPeriodicFrequencyType, o as ApiKeyScope, ot as SubscriptionCreditTransaction, p as BedrockEmbeddingModel, pt as UiNavigationEvents, q as PurchaseTransaction, r as ALERT_THRESHOLDS, rt as ResearchTaskType, s as ApiKeyType, st as SupportedFabFileMimeTypes, t as ConfigStore, tt as ResearchTaskExecutionType, u as AuthEvents, ut as TextGenerationUsageTransaction, v as DashboardParamsSchema, vt as XAI_IMAGE_MODELS, w as FriendshipEvents, wt as resolveNavigationIntents, x as FavoriteDocumentType, xt as getMcpProviderMetadata, y as ElabsEvents, yt as b4mLLMTools, z as ModelBackend } from "./ConfigStore-DH64GYfC.mjs";
3
3
  import { n as isPathAllowed, t as assertPathAllowed } from "./pathValidation-CIytuhr3-Dt5dntLx.mjs";
4
4
  import { execFile, execFileSync, spawn } from "child_process";
5
5
  import { createHash, randomBytes } from "crypto";
@@ -13234,7 +13234,12 @@ const updateUserSchema = z.object({
13234
13234
  scrollbarWidth: z.number().optional(),
13235
13235
  experimentalFeatures: z.record(z.string(), z.boolean()).optional(),
13236
13236
  rechartsDisplayMode: z.enum(["inline", "artifact"]).optional(),
13237
- docxTemplateFileId: z.string().nullable().optional()
13237
+ docxTemplateFileId: z.string().nullable().optional(),
13238
+ contextTelemetryLevel: z.enum([
13239
+ "none",
13240
+ "basic",
13241
+ "enhanced"
13242
+ ]).optional()
13238
13243
  }).nullable().optional()
13239
13244
  });
13240
13245
  z.object({
@@ -4,7 +4,7 @@ import { homedir } from "os";
4
4
  import path from "path";
5
5
  import axios from "axios";
6
6
  //#region package.json
7
- var version = "0.2.69-prod.22042+68f2839ed";
7
+ var version = "0.2.70-fix-idempotent-file-delete.22016+2c36fb941";
8
8
  //#endregion
9
9
  //#region src/utils/updateChecker.ts
10
10
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bike4mind/cli",
3
- "version": "0.2.69-prod.22042+68f2839ed",
3
+ "version": "0.2.70-fix-idempotent-file-delete.22016+2c36fb941",
4
4
  "type": "module",
5
5
  "description": "Interactive CLI tool for Bike4Mind with ReAct agents",
6
6
  "license": "UNLICENSED",
@@ -115,11 +115,11 @@
115
115
  "zustand": "^4.5.4"
116
116
  },
117
117
  "devDependencies": {
118
- "@bike4mind/agents": "0.4.7-prod.22042+68f2839ed",
119
- "@bike4mind/common": "2.77.1-prod.22042+68f2839ed",
120
- "@bike4mind/mcp": "1.33.26-prod.22042+68f2839ed",
121
- "@bike4mind/services": "2.70.3-prod.22042+68f2839ed",
122
- "@bike4mind/utils": "2.16.8-prod.22042+68f2839ed",
118
+ "@bike4mind/agents": "0.4.8-fix-idempotent-file-delete.22016+2c36fb941",
119
+ "@bike4mind/common": "2.78.1-fix-idempotent-file-delete.22016+2c36fb941",
120
+ "@bike4mind/mcp": "1.33.27-fix-idempotent-file-delete.22016+2c36fb941",
121
+ "@bike4mind/services": "2.71.1-fix-idempotent-file-delete.22016+2c36fb941",
122
+ "@bike4mind/utils": "2.16.9-fix-idempotent-file-delete.22016+2c36fb941",
123
123
  "@types/better-sqlite3": "^7.6.13",
124
124
  "@types/jsonwebtoken": "^9.0.4",
125
125
  "@types/node": "^22.9.0",
@@ -136,5 +136,5 @@
136
136
  "optionalDependencies": {
137
137
  "@vscode/ripgrep": "^1.17.1"
138
138
  },
139
- "gitHead": "68f2839ede73f7b2f34672228746938a3cb2c1aa"
139
+ "gitHead": "2c36fb941f5b1e68b9cef90ff41c5bcdcad7fcee"
140
140
  }