@bike4mind/cli 0.2.68 → 0.2.69-feat-sre-revision-loop.21998

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.
@@ -982,7 +982,8 @@ const SreAgentConfigSchema = z.object({
982
982
  enabled: true,
983
983
  minConfidence: 80
984
984
  }),
985
- dryRun: z.boolean().default(false)
985
+ dryRun: z.boolean().default(false),
986
+ maxRevisions: z.number().min(0).max(5).default(2)
986
987
  });
987
988
  /**
988
989
  * Configuration schema for the SecOps Triage feature.
@@ -5031,7 +5032,7 @@ const TokensBySourceSchema = z.object({
5031
5032
  toolSchemas: z.number(),
5032
5033
  userPrompt: z.number()
5033
5034
  });
5034
- const ContextWindowTelemetrySchema = z.object({
5035
+ z.object({
5035
5036
  inputTokens: z.number(),
5036
5037
  outputTokens: z.number(),
5037
5038
  contextWindowLimit: z.number(),
@@ -5156,25 +5157,36 @@ const RequestMetadataSchema = z.object({
5156
5157
  mementoCount: z.number(),
5157
5158
  enabledFeatures: z.array(z.string())
5158
5159
  });
5160
+ const ContextWindowTelemetryWithOptionalSourceSchema = z.object({
5161
+ inputTokens: z.number(),
5162
+ outputTokens: z.number(),
5163
+ contextWindowLimit: z.number(),
5164
+ utilizationPercentage: z.number(),
5165
+ reservedOutputTokens: z.number(),
5166
+ overflowDetected: z.boolean(),
5167
+ overflowAmount: z.number().optional(),
5168
+ tokensBySource: TokensBySourceSchema.optional()
5169
+ });
5159
5170
  const ContextTelemetrySchema = z.object({
5160
- schemaVersion: z.literal("1.0"),
5171
+ schemaVersion: z.enum(["1.0", "1.1"]),
5161
5172
  timestamp: z.string(),
5162
5173
  captureOverheadMs: z.number(),
5174
+ captureLevel: z.enum(["basic", "enhanced"]).optional(),
5163
5175
  anonymousSessionId: AnonymousSessionIdSchema,
5164
5176
  spanContext: SpanContextSchema.optional(),
5165
5177
  operation: OperationSchema,
5166
5178
  model: ModelTelemetrySchema,
5167
- systemPrompts: SystemPromptsTelemetrySchema,
5168
- features: FeaturesTelemetrySchema,
5169
- contextWindow: ContextWindowTelemetrySchema,
5179
+ systemPrompts: SystemPromptsTelemetrySchema.optional(),
5180
+ features: FeaturesTelemetrySchema.optional(),
5181
+ contextWindow: ContextWindowTelemetryWithOptionalSourceSchema,
5170
5182
  cache: CacheTelemetrySchema.optional(),
5171
5183
  costs: CostsTelemetrySchema,
5172
- truncation: TruncationTelemetrySchema,
5184
+ truncation: TruncationTelemetrySchema.optional(),
5173
5185
  tools: z.array(ToolTelemetrySchema).optional(),
5174
5186
  subagents: z.array(SubagentTelemetrySchema).optional(),
5175
5187
  performance: PerformanceTelemetrySchema,
5176
5188
  anomalies: AnomaliesTelemetrySchema,
5177
- requestMetadata: RequestMetadataSchema,
5189
+ requestMetadata: RequestMetadataSchema.optional(),
5178
5190
  captureErrors: z.array(z.string()).optional()
5179
5191
  });
5180
5192
  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-DOlmZ67o.mjs";
2
+ import { i as version, n as fetchLatestVersion, r as forceCheckForUpdate } from "../updateChecker-BzGY8OIE.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-CtM-bynM.mjs";
3
+ import { n as logger, t as ConfigStore } from "../ConfigStore-CexKAD6B.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-CexKAD6B.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-DOlmZ67o.mjs";
2
+ import { i as version, r as forceCheckForUpdate } from "../updateChecker-BzGY8OIE.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-DOlmZ67o.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-CtM-bynM.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-CexKAD6B.mjs";
5
+ import { i as version, t as checkForUpdate } from "./updateChecker-BzGY8OIE.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-CexKAD6B.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.68";
7
+ var version = "0.2.69-feat-sre-revision-loop.21998+ebe680549";
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.68",
3
+ "version": "0.2.69-feat-sre-revision-loop.21998+ebe680549",
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.6",
119
- "@bike4mind/common": "2.77.0",
120
- "@bike4mind/mcp": "1.33.25",
121
- "@bike4mind/services": "2.70.2",
122
- "@bike4mind/utils": "2.16.7",
118
+ "@bike4mind/agents": "0.4.7-feat-sre-revision-loop.21998+ebe680549",
119
+ "@bike4mind/common": "2.77.1-feat-sre-revision-loop.21998+ebe680549",
120
+ "@bike4mind/mcp": "1.33.26-feat-sre-revision-loop.21998+ebe680549",
121
+ "@bike4mind/services": "2.70.3-feat-sre-revision-loop.21998+ebe680549",
122
+ "@bike4mind/utils": "2.16.8-feat-sre-revision-loop.21998+ebe680549",
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": "7cbeecd4bd3b9071d17998a034ec626a687a3aa3"
139
+ "gitHead": "ebe6805494e8b06e91df318001ab8d396ceb873c"
140
140
  }