@bike4mind/cli 0.2.39 → 0.2.40-feat-5863-llm-context-compression.20311

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.
@@ -3,7 +3,7 @@
3
3
  // package.json
4
4
  var package_default = {
5
5
  name: "@bike4mind/cli",
6
- version: "0.2.39",
6
+ version: "0.2.40-feat-5863-llm-context-compression.20311+dee7513b5",
7
7
  type: "module",
8
8
  description: "Interactive CLI tool for Bike4Mind with ReAct agents",
9
9
  license: "UNLICENSED",
@@ -117,10 +117,10 @@ var package_default = {
117
117
  },
118
118
  devDependencies: {
119
119
  "@bike4mind/agents": "0.1.0",
120
- "@bike4mind/common": "2.60.0",
121
- "@bike4mind/mcp": "1.33.1",
122
- "@bike4mind/services": "2.56.0",
123
- "@bike4mind/utils": "2.12.1",
120
+ "@bike4mind/common": "2.60.1-feat-5863-llm-context-compression.20311+dee7513b5",
121
+ "@bike4mind/mcp": "1.33.2-feat-5863-llm-context-compression.20311+dee7513b5",
122
+ "@bike4mind/services": "2.56.1-feat-5863-llm-context-compression.20311+dee7513b5",
123
+ "@bike4mind/utils": "2.12.2-feat-5863-llm-context-compression.20311+dee7513b5",
124
124
  "@types/better-sqlite3": "^7.6.13",
125
125
  "@types/diff": "^5.0.9",
126
126
  "@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: "9fe395e8a3857ff495fcbad30f1648c308cc8a33"
141
+ gitHead: "dee7513b508dc27dd24d77d393adf6c50dee2e4c"
142
142
  };
143
143
 
144
144
  // src/utils/updateChecker.ts
@@ -4,7 +4,7 @@ import {
4
4
  getOpenWeatherKey,
5
5
  getSerperKey,
6
6
  getWolframAlphaKey
7
- } from "./chunk-ACVKD3F5.js";
7
+ } from "./chunk-TLYIOEYF.js";
8
8
  import {
9
9
  BFLImageService,
10
10
  BaseStorage,
@@ -16,7 +16,7 @@ import {
16
16
  OpenAIBackend,
17
17
  OpenAIImageService,
18
18
  XAIImageService
19
- } from "./chunk-GONER47A.js";
19
+ } from "./chunk-WWWD6A7X.js";
20
20
  import {
21
21
  Logger
22
22
  } from "./chunk-PFBYGCOW.js";
@@ -7,7 +7,7 @@ import {
7
7
  getSettingsMap,
8
8
  getSettingsValue,
9
9
  secureParameters
10
- } from "./chunk-GONER47A.js";
10
+ } from "./chunk-WWWD6A7X.js";
11
11
  import {
12
12
  KnowledgeType,
13
13
  SupportedFabFileMimeTypes
@@ -6,7 +6,7 @@ import {
6
6
  getSettingsByNames,
7
7
  obfuscateApiKey,
8
8
  secureParameters
9
- } from "./chunk-GONER47A.js";
9
+ } from "./chunk-WWWD6A7X.js";
10
10
  import {
11
11
  ApiKeyType,
12
12
  MementoTier,
@@ -1166,6 +1166,17 @@ async function fetchAndProcessPreviousMessages(session, historyCount = null, { d
1166
1166
  if (chatHistoryItems.length > 1) {
1167
1167
  chatHistoryItems.pop();
1168
1168
  }
1169
+ if (session.contextSummaryUpToQuestId) {
1170
+ const boundary = session.contextSummaryUpToQuestId;
1171
+ const beforeFilter = chatHistoryItems.length;
1172
+ const filtered = chatHistoryItems.filter((item) => item.id > boundary);
1173
+ chatHistoryItems.length = 0;
1174
+ filtered.forEach((i) => chatHistoryItems.push(i));
1175
+ if (chatHistoryItems.length < beforeFilter) {
1176
+ console.log(`\u26A1 Context boundary: excluded ${beforeFilter - chatHistoryItems.length} summarized messages`);
1177
+ }
1178
+ }
1179
+ const oldestIncludedQuestId = chatHistoryItems[0]?.id ?? null;
1169
1180
  const convertedMessages = chatHistoryItems.reduce((acc, cur) => {
1170
1181
  if (cur.prompt)
1171
1182
  acc.push({ role: "user", content: cur.prompt });
@@ -1228,7 +1239,8 @@ async function fetchAndProcessPreviousMessages(session, historyCount = null, { d
1228
1239
  {
1229
1240
  cacheHit: fetchTime < 50,
1230
1241
  fetchTime,
1231
- itemCount: chatHistoryItems.length
1242
+ itemCount: chatHistoryItems.length,
1243
+ oldestIncludedQuestId
1232
1244
  }
1233
1245
  ];
1234
1246
  }
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  BadRequestError,
4
4
  secureParameters
5
- } from "./chunk-GONER47A.js";
5
+ } from "./chunk-WWWD6A7X.js";
6
6
  import {
7
7
  CompletionApiUsageTransaction,
8
8
  GenericCreditDeductTransaction,
@@ -3,7 +3,7 @@ import {
3
3
  fetchLatestVersion,
4
4
  forceCheckForUpdate,
5
5
  package_default
6
- } from "../chunk-CJ3CPBQJ.js";
6
+ } from "../chunk-F7SFGOFJ.js";
7
7
 
8
8
  // src/commands/doctorCommand.ts
9
9
  import { execSync } from "child_process";
@@ -36,13 +36,13 @@ import {
36
36
  isReadOnlyTool,
37
37
  loadContextFiles,
38
38
  setWebSocketToolExecutor
39
- } from "../chunk-SBV37YTQ.js";
39
+ } from "../chunk-J7OH7XQO.js";
40
40
  import "../chunk-BDQBOLYG.js";
41
- import "../chunk-ACVKD3F5.js";
41
+ import "../chunk-TLYIOEYF.js";
42
42
  import "../chunk-GQGOWACU.js";
43
- import "../chunk-ALCYOZLW.js";
44
- import "../chunk-2ZXQ6TQ7.js";
45
- import "../chunk-GONER47A.js";
43
+ import "../chunk-ZBOVY3W4.js";
44
+ import "../chunk-QHXEZ2VJ.js";
45
+ import "../chunk-WWWD6A7X.js";
46
46
  import "../chunk-PFBYGCOW.js";
47
47
  import "../chunk-BPFEGDC7.js";
48
48
  import {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  forceCheckForUpdate,
4
4
  package_default
5
- } from "../chunk-CJ3CPBQJ.js";
5
+ } from "../chunk-F7SFGOFJ.js";
6
6
 
7
7
  // src/commands/updateCommand.ts
8
8
  import { execSync } from "child_process";
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  createFabFile,
4
4
  createFabFileSchema
5
- } from "./chunk-2ZXQ6TQ7.js";
6
- import "./chunk-GONER47A.js";
5
+ } from "./chunk-QHXEZ2VJ.js";
6
+ import "./chunk-WWWD6A7X.js";
7
7
  import "./chunk-PFBYGCOW.js";
8
8
  import "./chunk-QI3M7KVC.js";
9
9
  export {
package/dist/index.js CHANGED
@@ -46,13 +46,13 @@ import {
46
46
  setWebSocketToolExecutor,
47
47
  substituteArguments,
48
48
  warmFileCache
49
- } from "./chunk-SBV37YTQ.js";
49
+ } from "./chunk-J7OH7XQO.js";
50
50
  import "./chunk-BDQBOLYG.js";
51
- import "./chunk-ACVKD3F5.js";
51
+ import "./chunk-TLYIOEYF.js";
52
52
  import "./chunk-GQGOWACU.js";
53
- import "./chunk-ALCYOZLW.js";
54
- import "./chunk-2ZXQ6TQ7.js";
55
- import "./chunk-GONER47A.js";
53
+ import "./chunk-ZBOVY3W4.js";
54
+ import "./chunk-QHXEZ2VJ.js";
55
+ import "./chunk-WWWD6A7X.js";
56
56
  import "./chunk-PFBYGCOW.js";
57
57
  import "./chunk-BPFEGDC7.js";
58
58
  import {
@@ -62,7 +62,7 @@ import {
62
62
  import {
63
63
  checkForUpdate,
64
64
  package_default
65
- } from "./chunk-CJ3CPBQJ.js";
65
+ } from "./chunk-F7SFGOFJ.js";
66
66
  import {
67
67
  selectActiveBackgroundAgents,
68
68
  useCliStore
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  findMostSimilarMemento,
4
4
  getRelevantMementos
5
- } from "./chunk-ACVKD3F5.js";
6
- import "./chunk-GONER47A.js";
5
+ } from "./chunk-TLYIOEYF.js";
6
+ import "./chunk-WWWD6A7X.js";
7
7
  import "./chunk-PFBYGCOW.js";
8
8
  import "./chunk-QI3M7KVC.js";
9
9
  export {
@@ -140,7 +140,7 @@ import {
140
140
  validateUrlForFetch,
141
141
  warmUpSettingsCache,
142
142
  withRetry
143
- } from "./chunk-GONER47A.js";
143
+ } from "./chunk-WWWD6A7X.js";
144
144
  import {
145
145
  Logger,
146
146
  NotificationDeduplicator,
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  SubtractCreditsSchema,
4
4
  subtractCredits
5
- } from "./chunk-ALCYOZLW.js";
6
- import "./chunk-GONER47A.js";
5
+ } from "./chunk-ZBOVY3W4.js";
6
+ import "./chunk-WWWD6A7X.js";
7
7
  import "./chunk-PFBYGCOW.js";
8
8
  import "./chunk-QI3M7KVC.js";
9
9
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bike4mind/cli",
3
- "version": "0.2.39",
3
+ "version": "0.2.40-feat-5863-llm-context-compression.20311+dee7513b5",
4
4
  "type": "module",
5
5
  "description": "Interactive CLI tool for Bike4Mind with ReAct agents",
6
6
  "license": "UNLICENSED",
@@ -114,10 +114,10 @@
114
114
  },
115
115
  "devDependencies": {
116
116
  "@bike4mind/agents": "0.1.0",
117
- "@bike4mind/common": "2.60.0",
118
- "@bike4mind/mcp": "1.33.1",
119
- "@bike4mind/services": "2.56.0",
120
- "@bike4mind/utils": "2.12.1",
117
+ "@bike4mind/common": "2.60.1-feat-5863-llm-context-compression.20311+dee7513b5",
118
+ "@bike4mind/mcp": "1.33.2-feat-5863-llm-context-compression.20311+dee7513b5",
119
+ "@bike4mind/services": "2.56.1-feat-5863-llm-context-compression.20311+dee7513b5",
120
+ "@bike4mind/utils": "2.12.2-feat-5863-llm-context-compression.20311+dee7513b5",
121
121
  "@types/better-sqlite3": "^7.6.13",
122
122
  "@types/diff": "^5.0.9",
123
123
  "@types/jsonwebtoken": "^9.0.4",
@@ -135,5 +135,5 @@
135
135
  "optionalDependencies": {
136
136
  "@vscode/ripgrep": "^1.17.0"
137
137
  },
138
- "gitHead": "9fe395e8a3857ff495fcbad30f1648c308cc8a33"
138
+ "gitHead": "dee7513b508dc27dd24d77d393adf6c50dee2e4c"
139
139
  }