@cortexkit/pi-magic-context 0.17.1 → 0.17.2
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/index.js +7 -4
- package/dist/subagent-entry.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -158180,13 +158180,16 @@ function runMigrations(db) {
|
|
|
158180
158180
|
|
|
158181
158181
|
// ../plugin/src/features/magic-context/tool-definition-tokens.ts
|
|
158182
158182
|
var measurements = new Map;
|
|
158183
|
+
var fingerprints = new Map;
|
|
158183
158184
|
var persistenceDb = null;
|
|
158185
|
+
var cachedInsertStmt = null;
|
|
158184
158186
|
function keyFor(providerID, modelID, agentName) {
|
|
158185
158187
|
const agent = agentName && agentName.length > 0 ? agentName : "default";
|
|
158186
158188
|
return `${providerID}/${modelID}/${agent}`;
|
|
158187
158189
|
}
|
|
158188
158190
|
function setDatabase(db) {
|
|
158189
158191
|
persistenceDb = db;
|
|
158192
|
+
cachedInsertStmt = null;
|
|
158190
158193
|
}
|
|
158191
158194
|
function loadToolDefinitionMeasurements(db) {
|
|
158192
158195
|
let rows = [];
|
|
@@ -166264,7 +166267,7 @@ var DEDUP_SAFE_TOOLS = new Set([
|
|
|
166264
166267
|
"mcp_lsp_prepare_rename"
|
|
166265
166268
|
]);
|
|
166266
166269
|
function buildPiToolFingerprints(messages) {
|
|
166267
|
-
const
|
|
166270
|
+
const fingerprints2 = new Map;
|
|
166268
166271
|
for (const message of messages) {
|
|
166269
166272
|
if (!message || typeof message !== "object")
|
|
166270
166273
|
continue;
|
|
@@ -166295,10 +166298,10 @@ function buildPiToolFingerprints(messages) {
|
|
|
166295
166298
|
} catch {
|
|
166296
166299
|
continue;
|
|
166297
166300
|
}
|
|
166298
|
-
|
|
166301
|
+
fingerprints2.set(p.id, `${p.name}:${serialized}`);
|
|
166299
166302
|
}
|
|
166300
166303
|
}
|
|
166301
|
-
return
|
|
166304
|
+
return fingerprints2;
|
|
166302
166305
|
}
|
|
166303
166306
|
function collectStaleReduceCallIds(messages, messageIdToMaxTag, toolAgeCutoff) {
|
|
166304
166307
|
const staleCallIds = new Set;
|
|
@@ -171874,7 +171877,7 @@ import {
|
|
|
171874
171877
|
// package.json
|
|
171875
171878
|
var package_default = {
|
|
171876
171879
|
name: "@cortexkit/pi-magic-context",
|
|
171877
|
-
version: "0.17.
|
|
171880
|
+
version: "0.17.2",
|
|
171878
171881
|
type: "module",
|
|
171879
171882
|
description: "Pi coding agent extension for Magic Context — cross-session memory and context management",
|
|
171880
171883
|
main: "dist/index.js",
|
package/dist/subagent-entry.js
CHANGED
|
@@ -157004,13 +157004,16 @@ function mergeCommitHashes(existing, next) {
|
|
|
157004
157004
|
|
|
157005
157005
|
// ../plugin/src/features/magic-context/tool-definition-tokens.ts
|
|
157006
157006
|
var measurements = new Map;
|
|
157007
|
+
var fingerprints = new Map;
|
|
157007
157008
|
var persistenceDb = null;
|
|
157009
|
+
var cachedInsertStmt = null;
|
|
157008
157010
|
function keyFor(providerID, modelID, agentName) {
|
|
157009
157011
|
const agent = agentName && agentName.length > 0 ? agentName : "default";
|
|
157010
157012
|
return `${providerID}/${modelID}/${agent}`;
|
|
157011
157013
|
}
|
|
157012
157014
|
function setDatabase(db) {
|
|
157013
157015
|
persistenceDb = db;
|
|
157016
|
+
cachedInsertStmt = null;
|
|
157014
157017
|
}
|
|
157015
157018
|
function loadToolDefinitionMeasurements(db) {
|
|
157016
157019
|
let rows = [];
|
package/package.json
CHANGED