brainjar 0.3.725 → 0.3.729
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/brainjar.js +11 -1
- package/package.json +1 -1
package/brainjar.js
CHANGED
|
@@ -107,7 +107,7 @@ var CLI_VERSION, CACHE, DAY;
|
|
|
107
107
|
var init_version_check = __esm({
|
|
108
108
|
"packages/cli/src/version-check.ts"() {
|
|
109
109
|
"use strict";
|
|
110
|
-
CLI_VERSION = "0.3.
|
|
110
|
+
CLI_VERSION = "0.3.729";
|
|
111
111
|
CACHE = path.join(os.homedir(), ".brainjar", "version-check.json");
|
|
112
112
|
DAY = 864e5;
|
|
113
113
|
}
|
|
@@ -6585,6 +6585,16 @@ var init_repository = __esm({
|
|
|
6585
6585
|
};
|
|
6586
6586
|
const title = `Daily log for ${date}`;
|
|
6587
6587
|
const existing = await this.findDailyLog(date);
|
|
6588
|
+
if (existing) {
|
|
6589
|
+
const was = existing.body;
|
|
6590
|
+
if (existing.title === title && was.date === body.date && was.text === body.text && was.count === body.count && JSON.stringify(was.captureIds ?? []) === JSON.stringify(body.captureIds)) {
|
|
6591
|
+
return {
|
|
6592
|
+
log: existing,
|
|
6593
|
+
regenerated: false,
|
|
6594
|
+
captureCount: captures.length
|
|
6595
|
+
};
|
|
6596
|
+
}
|
|
6597
|
+
}
|
|
6588
6598
|
let log;
|
|
6589
6599
|
if (existing) {
|
|
6590
6600
|
log = await this.updateMemoryObject(existing.id, { title, body });
|