homeostat 0.1.3 → 0.1.4

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/README.md CHANGED
@@ -6,7 +6,7 @@ Homeostat turns review feedback that led to a code change into short, scored rul
6
6
 
7
7
  ```sh
8
8
  # In a repo for your team's knowledge base:
9
- npx --yes homeostat@0.1.3 init
9
+ npx --yes homeostat@0.1.4 init
10
10
 
11
11
  # In Claude Code:
12
12
  claude plugin marketplace add ysugarmen/homeostat
package/dist/src/daily.js CHANGED
@@ -152,7 +152,12 @@ async function daily(opts, io) {
152
152
  const mine = lessons.find((l) => l !== doc && l.kind === "doc" && l.path === doc.path && l.member === doc.member);
153
153
  if (!mine)
154
154
  continue;
155
- const merged = mergeText(onBase(doc.path) ?? "", mine.text, doc.text);
155
+ // Each side stamps the document's `updated:` line with its own day; take the later one, or
156
+ // that single line would make every pair of edits from different days conflict.
157
+ const day = (t) => /^updated: (.*)$/m.exec(t)?.[1] ?? "";
158
+ const latest = [day(mine.text), day(doc.text)].sort().at(-1) ?? "";
159
+ const stamp = (t) => (latest ? t.replace(/^updated: .*$/m, `updated: ${latest}`) : t);
160
+ const merged = mergeText(onBase(doc.path) ?? "", stamp(mine.text), stamp(doc.text));
156
161
  lessons.splice(lessons.indexOf(doc), 1);
157
162
  if (merged === undefined) {
158
163
  mine.reason = `document edits go to the owning team; a section patch from review (${doc.url ?? "a review thread"}) touched the same lines and was left out`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homeostat",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Turn your team's code-review lessons into rules every coding agent follows: Claude Code, MCP, Cursor, Copilot, AGENTS.md.",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -39,9 +39,9 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "commander": "^15.0.0",
42
- "@homeostat/core": "0.1.3",
43
- "@homeostat/mcp": "0.1.3",
44
- "@homeostat/dashboard": "0.1.3"
42
+ "@homeostat/core": "0.1.4",
43
+ "@homeostat/mcp": "0.1.4",
44
+ "@homeostat/dashboard": "0.1.4"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public",