brainjar 0.3.727 → 0.3.731

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.
Files changed (2) hide show
  1. package/brainjar.js +11 -1
  2. 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.727";
110
+ CLI_VERSION = "0.3.731";
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 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brainjar",
3
- "version": "0.3.727",
3
+ "version": "0.3.731",
4
4
  "description": "BrainJar CLI: turn a repository into a live, self-documenting Brain.",
5
5
  "type": "module",
6
6
  "bin": {