refactor!: stop exporting the drizzle tables from the package entry - #26
Open
TheGreatAxios wants to merge 4 commits into
Conversation
TheGreatAxios
commented
Sep 25, 2026
TheGreatAxios
left a comment
Contributor
Author
There was a problem hiding this comment.
Reviewed all four commits. The only change to the root entry is the table exports, and internal code still imports the tables from ./schema.js. @intx/agent appears only in src/sidecar-bundle.ts and its dist output. arktype resolves to 2.2.5, with the nested 2.1.29 copies deduped out of the root lock. No references to check-deps, pretest or test:package remain. The CHANGELOG records the breaking export removal and both dependency changes. No blocking findings.
The tables are internal to the package's queries; hosts reach artifacts through the routes and functions instead. ARTIFACTS_SCHEMA stays public so a host can see which Postgres schema the package owns.
Only the ./sidecar-bundle entry imports it, so hosts that mount the routes alone no longer have to install the agent runtime.
Corbits packages treat arktype as internal validation, so hosts should not have to install it. The exported query schemas stay arktype types; a host on another arktype version gets its own copy alongside. hono-openapi stays a peer because its route descriptions merge into the host's OpenAPI document.
The @workbench/* grep ran before every test run and in CI to catch an import nobody writes; the rule stays in CONTRIBUTING. test:package was only an alias of test.
TheGreatAxios
force-pushed
the
cl-9065-artifacts-stop-exporting-drizzle-tables-from-the-barrel
branch
from
September 26, 2026 01:29
7b44feb to
98045dc
Compare
TheGreatAxios
added this pull request to stack #32
September 26, 2026 01:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
artifact,artifactVersion,upload,mailAttachmentRef).ARTIFACTS_SCHEMAand the*Rowtypes are still exported. This is a breaking change and is recorded under Breaking in the CHANGELOG.@intx/agentis an optional peer (peerDependenciesMeta). Only./sidecar-bundleimports it, and the root entry's JS and.d.tsdo not reference it.arktypeis a^2.2.3dependency, not a peer. The reference host drops its unused arktype pin.hono-openapiis still a caret peer with a1.2.0dev pin.scripts/check-deps.ts,pretestandtest:packageare removed, along with the CI step that ran the script.testrunsbun test srcwith nothing chained in front of it. The@workbench/*rule is still in CONTRIBUTING.@corbits/artifactssnapshot inexamples/reference-host/bun.lockis left as on main (CL-9332); test: add a real-Postgres harness for end-to-end suites in tests/ #29 removes that lockfile.Verification
bun install --frozen-lockfile,bun run typecheck: cleanbun run test:coverageagainst Postgres 16: 344 pass, 0 fail, coverage floor metbun run build, then reference-host acceptance: 42 pass, 0 failnpm packinstalled into a fresh Node 24 ESM project:mountArtifactsandrunArtifactMigrationsimport, and the table exports are absentCloses CL-9065
Closes CL-9071
Closes CL-9073
Closes CL-9076