@bike4mind/cli 0.2.32 → 0.2.33-feat-liveops-triage-schedule.19796

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CurationArtifactType
4
- } from "./chunk-QHCGCQ72.js";
4
+ } from "./chunk-7KE3Z7AQ.js";
5
5
 
6
6
  // ../../b4m-core/packages/services/dist/src/notebookCurationService/artifactExtractor.js
7
7
  var ARTIFACT_TAG_REGEX = /<artifact\s+(.*?)>([\s\S]*?)<\/artifact>/gi;
@@ -6,12 +6,12 @@ import {
6
6
  getSettingsByNames,
7
7
  obfuscateApiKey,
8
8
  secureParameters
9
- } from "./chunk-ZOM2E3PC.js";
9
+ } from "./chunk-ZFMLVPSR.js";
10
10
  import {
11
11
  ApiKeyType,
12
12
  MementoTier,
13
13
  isSupportedEmbeddingModel
14
- } from "./chunk-QHCGCQ72.js";
14
+ } from "./chunk-7KE3Z7AQ.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/apiKeyService/get.js
17
17
  import { z } from "zod";
@@ -2826,7 +2826,11 @@ var LIVEOPS_TRIAGE_VALIDATION_LIMITS = {
2826
2826
  maxTokens: { min: 100, max: 1e4, default: 1e3 },
2827
2827
  // Max 180000ms (3 min) to leave 2-minute buffer for post-LLM operations within 5-min Lambda timeout
2828
2828
  timeoutMs: { min: 3e4, max: 18e4, default: 6e4 },
2829
+ // Schedule configuration
2830
+ runIntervalHours: { options: [6, 12, 24], default: 12 },
2829
2831
  // Processing limits
2832
+ // Note: lookbackHours is derived from runIntervalHours for scheduled runs,
2833
+ // but can be overridden for manual "Run Now" invocations
2830
2834
  lookbackHours: { min: 1, max: 168, default: 24 },
2831
2835
  maxErrorsPerRun: { min: 1, max: 100, default: 50 },
2832
2836
  regressionLookbackDays: { min: 7, max: 180, default: 30 },
@@ -2845,12 +2849,20 @@ var LiveopsTriageConfigSchema = z21.object({
2845
2849
  // Output channel - where summaries are posted (defaults to slackChannelId if not set)
2846
2850
  githubOwner: z21.string(),
2847
2851
  githubRepo: z21.string(),
2852
+ // Schedule configuration
2853
+ runIntervalHours: z21.number().refine((v) => LT.runIntervalHours.options.includes(v), {
2854
+ message: `Run interval must be one of: ${LT.runIntervalHours.options.join(", ")} hours`
2855
+ }).default(LT.runIntervalHours.default),
2856
+ postWhenNoErrors: z21.boolean().default(true),
2857
+ // Post "all clear" message when no errors found
2848
2858
  // Model configuration
2849
2859
  modelId: z21.string(),
2850
2860
  temperature: z21.number().min(LT.temperature.min).max(LT.temperature.max).default(LT.temperature.default),
2851
2861
  maxTokens: z21.number().min(LT.maxTokens.min).max(LT.maxTokens.max).default(LT.maxTokens.default),
2852
2862
  timeoutMs: z21.number().min(LT.timeoutMs.min).max(LT.timeoutMs.max).default(LT.timeoutMs.default),
2853
2863
  // Processing configuration
2864
+ // Note: lookbackHours is derived from runIntervalHours for scheduled/dry runs,
2865
+ // but can be overridden for manual "Run Now" invocations via the dialog
2854
2866
  lookbackHours: z21.number().min(LT.lookbackHours.min).max(LT.lookbackHours.max).default(LT.lookbackHours.default),
2855
2867
  maxErrorsPerRun: z21.number().min(LT.maxErrorsPerRun.min).max(LT.maxErrorsPerRun.max).default(LT.maxErrorsPerRun.default),
2856
2868
  regressionLookbackDays: z21.number().min(LT.regressionLookbackDays.min).max(LT.regressionLookbackDays.max).default(LT.regressionLookbackDays.default),
@@ -2897,7 +2909,14 @@ var TriageResultSchema = z21.object({
2897
2909
  }).nullable().default(null),
2898
2910
  isRecurring: z21.boolean(),
2899
2911
  occurrenceCount: z21.number().int().min(TRL.occurrenceCount.min).max(TRL.occurrenceCount.max),
2900
- isRegression: z21.boolean().default(false)
2912
+ isRegression: z21.boolean().default(false),
2913
+ // Details of the closed issue this error is regressing from (only when isRegression=true)
2914
+ matchedClosedIssue: z21.object({
2915
+ issueNumber: z21.number().int().min(1),
2916
+ title: z21.string().min(1).max(TRL.matchesExisting.title.max),
2917
+ closedAt: z21.string()
2918
+ // ISO date string
2919
+ }).nullable().optional()
2901
2920
  });
2902
2921
  var TriageSummarySchema = z21.object({
2903
2922
  totalAlerts: z21.number().int().min(0),
@@ -4264,6 +4283,8 @@ var settingsMap = {
4264
4283
  slackChannelId: "",
4265
4284
  githubOwner: "",
4266
4285
  githubRepo: "",
4286
+ runIntervalHours: 12,
4287
+ postWhenNoErrors: true,
4267
4288
  modelId: "",
4268
4289
  temperature: 0.3,
4269
4290
  maxTokens: 1e3,
@@ -7,11 +7,11 @@ import {
7
7
  getSettingsMap,
8
8
  getSettingsValue,
9
9
  secureParameters
10
- } from "./chunk-ZOM2E3PC.js";
10
+ } from "./chunk-ZFMLVPSR.js";
11
11
  import {
12
12
  KnowledgeType,
13
13
  SupportedFabFileMimeTypes
14
- } from "./chunk-QHCGCQ72.js";
14
+ } from "./chunk-7KE3Z7AQ.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/fabFileService/create.js
17
17
  import { z } from "zod";
@@ -3,7 +3,7 @@
3
3
  // package.json
4
4
  var package_default = {
5
5
  name: "@bike4mind/cli",
6
- version: "0.2.32",
6
+ version: "0.2.33-feat-liveops-triage-schedule.19796+278dc785b",
7
7
  type: "module",
8
8
  description: "Interactive CLI tool for Bike4Mind with ReAct agents",
9
9
  license: "UNLICENSED",
@@ -114,10 +114,10 @@ var package_default = {
114
114
  },
115
115
  devDependencies: {
116
116
  "@bike4mind/agents": "0.1.0",
117
- "@bike4mind/common": "2.54.0",
118
- "@bike4mind/mcp": "1.32.1",
119
- "@bike4mind/services": "2.51.1",
120
- "@bike4mind/utils": "2.8.1",
117
+ "@bike4mind/common": "2.54.1-feat-liveops-triage-schedule.19796+278dc785b",
118
+ "@bike4mind/mcp": "1.32.2-feat-liveops-triage-schedule.19796+278dc785b",
119
+ "@bike4mind/services": "2.51.2-feat-liveops-triage-schedule.19796+278dc785b",
120
+ "@bike4mind/utils": "2.8.2-feat-liveops-triage-schedule.19796+278dc785b",
121
121
  "@types/better-sqlite3": "^7.6.13",
122
122
  "@types/diff": "^5.0.9",
123
123
  "@types/jsonwebtoken": "^9.0.4",
@@ -138,7 +138,7 @@ var package_default = {
138
138
  optionalDependencies: {
139
139
  "@vscode/ripgrep": "^1.17.0"
140
140
  },
141
- gitHead: "14201812f942551eeac075a0ed2b561dc344a21a"
141
+ gitHead: "278dc785bb9f18787b2f847fe564555a3af3b054"
142
142
  };
143
143
 
144
144
  // src/utils/updateChecker.ts
@@ -16,7 +16,7 @@ import {
16
16
  dayjsConfig_default,
17
17
  extractSnippetMeta,
18
18
  settingsMap
19
- } from "./chunk-QHCGCQ72.js";
19
+ } from "./chunk-7KE3Z7AQ.js";
20
20
  import {
21
21
  Logger
22
22
  } from "./chunk-PFBYGCOW.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  BadRequestError,
4
4
  secureParameters
5
- } from "./chunk-ZOM2E3PC.js";
5
+ } from "./chunk-ZFMLVPSR.js";
6
6
  import {
7
7
  CompletionApiUsageTransaction,
8
8
  GenericCreditDeductTransaction,
@@ -12,7 +12,7 @@ import {
12
12
  TextGenerationUsageTransaction,
13
13
  TransferCreditTransaction,
14
14
  VideoGenerationUsageTransaction
15
- } from "./chunk-QHCGCQ72.js";
15
+ } from "./chunk-7KE3Z7AQ.js";
16
16
 
17
17
  // ../../b4m-core/packages/services/dist/src/creditService/subtractCredits.js
18
18
  import { z } from "zod";
@@ -3,7 +3,7 @@ import {
3
3
  fetchLatestVersion,
4
4
  forceCheckForUpdate,
5
5
  package_default
6
- } from "../chunk-74UKS7VY.js";
6
+ } from "../chunk-IH6JJOIK.js";
7
7
 
8
8
  // src/commands/doctorCommand.ts
9
9
  import { execSync } from "child_process";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  forceCheckForUpdate,
4
4
  package_default
5
- } from "../chunk-74UKS7VY.js";
5
+ } from "../chunk-IH6JJOIK.js";
6
6
 
7
7
  // src/commands/updateCommand.ts
8
8
  import { execSync } from "child_process";
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  createFabFile,
4
4
  createFabFileSchema
5
- } from "./chunk-2EHXPCA7.js";
6
- import "./chunk-ZOM2E3PC.js";
7
- import "./chunk-QHCGCQ72.js";
5
+ } from "./chunk-7MTO5TCR.js";
6
+ import "./chunk-ZFMLVPSR.js";
7
+ import "./chunk-7KE3Z7AQ.js";
8
8
  import "./chunk-PFBYGCOW.js";
9
9
  export {
10
10
  createFabFile,
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import "./chunk-GQGOWACU.js";
3
- import "./chunk-RPIEKKLZ.js";
4
- import "./chunk-2EHXPCA7.js";
3
+ import "./chunk-ZJH6ONUB.js";
4
+ import "./chunk-7MTO5TCR.js";
5
5
  import "./chunk-BPFEGDC7.js";
6
6
  import "./chunk-BDQBOLYG.js";
7
7
  import {
8
8
  getEffectiveApiKey,
9
9
  getOpenWeatherKey,
10
10
  getSerperKey
11
- } from "./chunk-ORRROOHQ.js";
11
+ } from "./chunk-6HW3OAKZ.js";
12
12
  import {
13
13
  ConfigStore,
14
14
  logger
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  checkForUpdate,
18
18
  package_default
19
- } from "./chunk-74UKS7VY.js";
19
+ } from "./chunk-IH6JJOIK.js";
20
20
  import {
21
21
  selectActiveBackgroundAgents,
22
22
  useCliStore
@@ -32,7 +32,7 @@ import {
32
32
  OpenAIBackend,
33
33
  OpenAIImageService,
34
34
  XAIImageService
35
- } from "./chunk-ZOM2E3PC.js";
35
+ } from "./chunk-ZFMLVPSR.js";
36
36
  import {
37
37
  AiEvents,
38
38
  ApiKeyEvents,
@@ -90,7 +90,7 @@ import {
90
90
  getMcpProviderMetadata,
91
91
  getViewById,
92
92
  resolveNavigationIntents
93
- } from "./chunk-QHCGCQ72.js";
93
+ } from "./chunk-7KE3Z7AQ.js";
94
94
  import {
95
95
  Logger
96
96
  } from "./chunk-PFBYGCOW.js";
@@ -19253,9 +19253,9 @@ ${agentDescriptions}
19253
19253
  type: "string",
19254
19254
  enum: ["quick", "medium", "very_thorough"],
19255
19255
  description: `How thoroughly to execute:
19256
- - quick: Fast lookup, 1-2 iterations
19257
- - medium: Balanced exploration, 3-5 iterations (default)
19258
- - very_thorough: Comprehensive analysis, 8-10+ iterations`
19256
+ - quick: Fast lookup, fewest iterations
19257
+ - medium: Balanced exploration (default)
19258
+ - very_thorough: Comprehensive analysis, maximum iterations`
19259
19259
  },
19260
19260
  variables: {
19261
19261
  type: "object",
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CurationArtifactType
4
- } from "./chunk-QHCGCQ72.js";
4
+ } from "./chunk-7KE3Z7AQ.js";
5
5
 
6
6
  // ../../b4m-core/packages/services/dist/src/notebookCurationService/llmMarkdownGenerator.js
7
7
  var DEFAULT_OPTIONS = {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CurationArtifactType
4
- } from "./chunk-QHCGCQ72.js";
4
+ } from "./chunk-7KE3Z7AQ.js";
5
5
 
6
6
  // ../../b4m-core/packages/services/dist/src/notebookCurationService/markdownGenerator.js
7
7
  var DEFAULT_OPTIONS = {
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  findMostSimilarMemento,
4
4
  getRelevantMementos
5
- } from "./chunk-ORRROOHQ.js";
6
- import "./chunk-ZOM2E3PC.js";
7
- import "./chunk-QHCGCQ72.js";
5
+ } from "./chunk-6HW3OAKZ.js";
6
+ import "./chunk-ZFMLVPSR.js";
7
+ import "./chunk-7KE3Z7AQ.js";
8
8
  import "./chunk-PFBYGCOW.js";
9
9
  export {
10
10
  findMostSimilarMemento,
@@ -139,12 +139,12 @@ import {
139
139
  validateUrlForFetch,
140
140
  warmUpSettingsCache,
141
141
  withRetry
142
- } from "./chunk-ZOM2E3PC.js";
142
+ } from "./chunk-ZFMLVPSR.js";
143
143
  import {
144
144
  buildRateLimitLogEntry,
145
145
  isNearLimit,
146
146
  parseRateLimitHeaders
147
- } from "./chunk-QHCGCQ72.js";
147
+ } from "./chunk-7KE3Z7AQ.js";
148
148
  import {
149
149
  Logger,
150
150
  NotificationDeduplicator,
@@ -451,7 +451,7 @@ import {
451
451
  validateReactArtifactV2,
452
452
  validateSvgArtifactV2,
453
453
  wikiMarkupToAdf
454
- } from "./chunk-QHCGCQ72.js";
454
+ } from "./chunk-7KE3Z7AQ.js";
455
455
  export {
456
456
  ALL_IMAGE_MODELS,
457
457
  ALL_IMAGE_SIZES,
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  SubtractCreditsSchema,
4
4
  subtractCredits
5
- } from "./chunk-RPIEKKLZ.js";
6
- import "./chunk-ZOM2E3PC.js";
7
- import "./chunk-QHCGCQ72.js";
5
+ } from "./chunk-ZJH6ONUB.js";
6
+ import "./chunk-ZFMLVPSR.js";
7
+ import "./chunk-7KE3Z7AQ.js";
8
8
  import "./chunk-PFBYGCOW.js";
9
9
  export {
10
10
  SubtractCreditsSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bike4mind/cli",
3
- "version": "0.2.32",
3
+ "version": "0.2.33-feat-liveops-triage-schedule.19796+278dc785b",
4
4
  "type": "module",
5
5
  "description": "Interactive CLI tool for Bike4Mind with ReAct agents",
6
6
  "license": "UNLICENSED",
@@ -111,10 +111,10 @@
111
111
  },
112
112
  "devDependencies": {
113
113
  "@bike4mind/agents": "0.1.0",
114
- "@bike4mind/common": "2.54.0",
115
- "@bike4mind/mcp": "1.32.1",
116
- "@bike4mind/services": "2.51.1",
117
- "@bike4mind/utils": "2.8.1",
114
+ "@bike4mind/common": "2.54.1-feat-liveops-triage-schedule.19796+278dc785b",
115
+ "@bike4mind/mcp": "1.32.2-feat-liveops-triage-schedule.19796+278dc785b",
116
+ "@bike4mind/services": "2.51.2-feat-liveops-triage-schedule.19796+278dc785b",
117
+ "@bike4mind/utils": "2.8.2-feat-liveops-triage-schedule.19796+278dc785b",
118
118
  "@types/better-sqlite3": "^7.6.13",
119
119
  "@types/diff": "^5.0.9",
120
120
  "@types/jsonwebtoken": "^9.0.4",
@@ -135,5 +135,5 @@
135
135
  "optionalDependencies": {
136
136
  "@vscode/ripgrep": "^1.17.0"
137
137
  },
138
- "gitHead": "14201812f942551eeac075a0ed2b561dc344a21a"
138
+ "gitHead": "278dc785bb9f18787b2f847fe564555a3af3b054"
139
139
  }