Skip to content

refactor(core): move the SQLite helpers to @jimhoyd/urlcode/sqlite (#1052 S2) - #1055

Merged
jimhoyd merged 3 commits into
mainfrom
claude/sqlite-subpath-1052
Sep 30, 2026
Merged

jimhoyd merged 3 commits into
mainfrom
claude/sqlite-subpath-1052

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

Part of #1052 (slice S2).

What changes

  • New core subpath @jimhoyd/urlcode/sqlite (packages/core/src/sqlite.ts, package.json exports map) carrying holdServerLock, serverLockHeld, serverLockPath, refuseNetworkFilesystem, NETWORK_FILESYSTEMS, hostProbe and the HostProbe/ServerLock types from server-lock.ts (One serving process per database: replace the host lease with an OS lock #1050).
  • @jimhoyd/urlcode/extensions no longer re-exports them, so it no longer loads node:sqlite. There are no back-compat re-exports, because there are no external users.
  • Store, auth and audit (sources and tests) import the helpers from the new subpath. Only import lines changed, to keep merges with the concurrent store/audit/auth work easy.
  • test/exports.test.ts: ./sqlite is added to the subpath table. A new test imports each entry in a fresh process and checks whether node:sqlite loads, using a registerHooks resolve hook plus process.moduleLoadList. It asserts that extensions does not load it and that sqlite does (the second assertion is the probe's control).
  • scripts/package-smoke.ts: the declaration consumer imports @jimhoyd/urlcode/sqlite.
  • Docs: the EXTENSIONS.md helper table now presents these as helpers of the bundled SQLite implementation, not URLCode rules. Also updated: the RIM-STORE-PERSIST-001 card (path and evidence), STORE.md, FRAMEWORK.md, the TYPESCRIPT.md subpath table, and the regenerated llms-full.txt.

Evidence

  • npm run verify: green locally.
  • npm run test:package: green. Core packs 1,078,389 bytes / 4,239,366 unpacked / 550 files, within the existing budgets; the budget table is unchanged.

Limitations

  • The "does not load" check covers module resolution and native module loading on Node 26. It does not cover a module reaching SQLite via process.getBuiltinModule.

🤖 Generated with Claude Code

…1052 S2)

holdServerLock, serverLockHeld, serverLockPath, refuseNetworkFilesystem,
NETWORK_FILESYSTEMS, hostProbe and their HostProbe/ServerLock types leave the
generic @jimhoyd/urlcode/extensions entry for a new core subpath,
@jimhoyd/urlcode/sqlite. They are helpers of the bundled SQLite-backed
extensions, not URLCode rules, and the generic contract no longer loads
node:sqlite (asserted in test/exports.test.ts). Store, auth and audit import
them from the new subpath; no re-exports remain on the old one.

Part of #1052.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jimhoyd
jimhoyd merged commit 3318209 into main Sep 30, 2026
28 checks passed
@jimhoyd
jimhoyd deleted the claude/sqlite-subpath-1052 branch September 30, 2026 15:39
jimhoyd added a commit that referenced this pull request Sep 30, 2026
…1061)

A resolved merge committed packages/auth/CHANGELOG.md with its conflict markers still in it (via #1057), and no check
failed: code conflicts break the typecheck, but Markdown, JSON and YAML conflicts passed everything. Removed from main
by #1055.

Co-authored-by: Claude Opus 5.5 <[email protected]>
jimhoyd added a commit that referenced this pull request Sep 30, 2026
…pact in the paths-filter plan

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant