@cortexkit/pi-magic-context 0.31.0 → 0.31.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 +15 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -178376,6 +178376,9 @@ function requestValidatedAddress(validation, candidate, options) {
|
|
|
178376
178376
|
}
|
|
178377
178377
|
chunks.push(buf);
|
|
178378
178378
|
});
|
|
178379
|
+
response.on("error", (error51) => {
|
|
178380
|
+
reject(toNetworkError(error51, "response failed"));
|
|
178381
|
+
});
|
|
178379
178382
|
response.on("end", () => {
|
|
178380
178383
|
const status = response.statusCode ?? 0;
|
|
178381
178384
|
if (status >= 500) {
|
|
@@ -179105,14 +179108,21 @@ function toSmartNote(note) {
|
|
|
179105
179108
|
};
|
|
179106
179109
|
}
|
|
179107
179110
|
function commitSmartNoteState(db, args) {
|
|
179111
|
+
db.exec("BEGIN IMMEDIATE");
|
|
179108
179112
|
let leaseLost = false;
|
|
179109
|
-
|
|
179113
|
+
try {
|
|
179110
179114
|
if (args.leaseHeld && !args.leaseHeld()) {
|
|
179111
179115
|
leaseLost = true;
|
|
179112
|
-
|
|
179116
|
+
} else {
|
|
179117
|
+
args.write();
|
|
179113
179118
|
}
|
|
179114
|
-
|
|
179115
|
-
}
|
|
179119
|
+
db.exec("COMMIT");
|
|
179120
|
+
} catch (error51) {
|
|
179121
|
+
try {
|
|
179122
|
+
db.exec("ROLLBACK");
|
|
179123
|
+
} catch {}
|
|
179124
|
+
throw error51;
|
|
179125
|
+
}
|
|
179116
179126
|
if (leaseLost) {
|
|
179117
179127
|
throw new Error(`Dream lease lost during smart-note ${args.phase} commit`);
|
|
179118
179128
|
}
|
|
@@ -201019,7 +201029,7 @@ function formatThresholdPercent(value) {
|
|
|
201019
201029
|
// package.json
|
|
201020
201030
|
var package_default = {
|
|
201021
201031
|
name: "@cortexkit/pi-magic-context",
|
|
201022
|
-
version: "0.31.
|
|
201032
|
+
version: "0.31.2",
|
|
201023
201033
|
type: "module",
|
|
201024
201034
|
description: "Pi coding agent extension for Magic Context — cross-session memory and context management",
|
|
201025
201035
|
main: "dist/index.js",
|
package/package.json
CHANGED