Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
8bfa901
docs(exploration): explore well-traveled refactor hotspots
Jul 6, 2026
06def15
feat(core): add the shared LWW ordering module (0276)
Jul 6, 2026
e4313de
refactor(data): extract query compiler, hydration, SQL batching; adop…
Jul 6, 2026
bb20fbb
refactor(hub): decompose WebSocket pump into message router + handler…
Jul 6, 2026
9d78c47
fix(hub): memory storage change ordering matches protocol application…
Jul 6, 2026
f93624c
refactor(plugins): ai-surface tool registry + resource URI router, ch…
Jul 6, 2026
69ddb3f
refactor(data): extract transaction + deterministic-import execution …
Jul 6, 2026
0be289e
refactor(react): decompose XNetProvider into provider units (0276)
Jul 6, 2026
b64bf6a
docs: adopt sub-barrel export policy for high-churn barrels (0276)
Jul 6, 2026
92708ab
refactor(canvas): extract pure viewport math + scene-mutation dispatc…
Jul 6, 2026
c4b39d0
refactor(data): split scalar/FTS/spatial indexing out of the sqlite a…
Jul 6, 2026
ef0e73d
refactor(app): extract web boot orchestrator + electron shell reducer…
Jul 6, 2026
3a8f4ad
refactor(app): share PageView comment subsystem + DataWorkspace core …
Jul 6, 2026
55606b0
chore(scripts): add web/electron view-drift tripwire (0276)
Jul 6, 2026
a94fe54
Merge remote-tracking branch 'origin/main' into claude/0276-well-trav…
Jul 6, 2026
b8671ec
test(hub): follow secret-stripping code to the web boot orchestrator …
Jul 6, 2026
e55be7e
docs(exploration): check off well-traveled refactor hotspots
Jul 6, 2026
6f832b7
style: prettier pass over 0276 refactor files
Jul 6, 2026
10a4863
Merge remote-tracking branch 'origin/main' into claude/0276-well-trav…
Jul 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .changeset/well-traveled-refactors-0276.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
'@xnetjs/core': minor
'@xnetjs/data': patch
'@xnetjs/plugins': patch
'@xnetjs/react': patch
---

Add the shared Last-Write-Wins ordering module to `@xnetjs/core`
(`compareChangeApplicationOrder`, `compareLwwStamps`, `lwwWins`,
`lwwUpdateGuardSql`, `LwwStamp`) — the single canonical LWW comparison used
across the stack (protocol §L1.7).

`@xnetjs/data`, `@xnetjs/plugins`, and `@xnetjs/react` adopt it and receive
internal decompositions of their most-churned modules (NodeStore query
compiler/hydration/transaction execution, ai-surface tool registry and
resource URI router, XNetProvider provider units). No public API changes in
those packages.
19 changes: 19 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# xNet — agent conventions

## Barrel exports (index.ts) — sub-barrel policy (0276)

The `react`/`data`/`plugins` root barrels are the highest-churn files in the
repo (90/87/47 commits in 8 months) — every feature appending re-exports there
creates standing merge conflicts and degrades tree-shaking.

- **New surface lands in a scoped sub-barrel**, not the root barrel: add (or
extend) a feature-area file — e.g. `packages/react/src/hooks/index.ts`,
`packages/data/src/store/index.ts` — and re-export the _area_ from the root
with ONE grouped block, so the root barrel gains at most one line per area,
not five lines per feature.
- **Never `export *` from the root barrel** — named re-exports only (keeps
tree-shaking and makes API-surface diffs reviewable).
- **Internal modules don't get barrel exports at all.** If nothing outside the
package imports it (e.g. `packages/react/src/provider/*` units), leave it
out of every barrel.
- Removing/renaming anything already exported from a root barrel is a
**major** bump (see Changesets below) — bump from the diff.

## Changesets (npm release intent)

Every change to a **publishable** `packages/*` library MUST produce a
Expand Down
Loading
Loading