Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
401 commits
Select commit Hold shift + click to select a range
62fd6d1
feat(appkit): start a branch init forked without the rows it copied
ditadi Nov 9, 2026
3e2711b
fix(appkit): hand off and introspect the schema schema.ts declares
ditadi Nov 9, 2026
468e679
fix(appkit): name the introspect command in the refusal init relays
ditadi Nov 9, 2026
3e07242
feat(cli): describe and print the rebuild appkit db init gives a new …
ditadi Nov 9, 2026
576cb38
docs: describe what appkit db init does with a new branch's rows
ditadi Nov 9, 2026
6c60c05
Merge branch 'fix/stack667-04' into fix/stack667-05
ditadi Nov 9, 2026
f5d8eb6
refactor(appkit): write .env through the tooling's atomic file helper
ditadi Nov 9, 2026
162dc62
fix(appkit): point introspect's edited-migration refusal at appkit db…
ditadi Nov 9, 2026
46a543a
refactor(appkit): keep one binding per postgres resource in the bundl…
ditadi Nov 9, 2026
4944df8
Merge branch 'fix/stack667-03' into fix/stack667-04
ditadi Nov 9, 2026
e055ca3
Merge branch 'fix/stack667-04' into fix/stack667-05
ditadi Nov 9, 2026
9a38676
Merge branch 'fix/stack667-03' into fix/stack667-04
ditadi Nov 9, 2026
3b1cae9
Merge branch 'fix/stack667-04' into fix/stack667-05
ditadi Nov 9, 2026
583e89d
Merge branch 'fix/stack667-05' into fix/stack667-06
ditadi Nov 9, 2026
7dded14
Merge branch 'fix/stack667-06' into fix/stack667-07
ditadi Nov 9, 2026
40a2abd
docs: say verify --deployed checks the deployed source, not the appli…
ditadi Nov 9, 2026
2a85387
Merge branch 'fix/stack667-07' into fix/stack667-08
ditadi Nov 9, 2026
83bf607
test(appkit): pin that the public-schema hint stops advising ALTER OWNER
ditadi Nov 15, 2026
2054436
fix(appkit): stop telling a role to hand its public table to the app
ditadi Nov 15, 2026
8dabbb3
test(appkit): pin the owner error to the two-apps case first and a La…
ditadi Nov 15, 2026
5b0b9a1
fix(appkit): drop ALTER OWNER from the owner error and name the two-a…
ditadi Nov 15, 2026
573d680
test(appkit): a deploy start refuses an edited or diverged history, t…
ditadi Nov 15, 2026
9bd416f
fix(appkit): refuse an edited or diverged history on a deploy start, …
ditadi Nov 15, 2026
7462c42
test(appkit): the ownership hints stop suggesting ALTER OWNER
ditadi Nov 15, 2026
5776d3f
test(appkit): cover init forking the branch databricks.yml deploys to
ditadi Nov 15, 2026
a726b88
fix(appkit): fork a new dev or session branch from the deploy target'…
ditadi Nov 15, 2026
4f1d806
docs(appkit): describe deploy starts, failure runbooks and owner reco…
ditadi Nov 15, 2026
72dee7d
docs(appkit): say what init forks, when the app migrates, and why app…
ditadi Nov 15, 2026
382383c
fix(appkit): the ownership hints stop suggesting ALTER OWNER
ditadi Nov 15, 2026
5867ff0
test(appkit): cover init installing drizzle-kit for every start excep…
ditadi Nov 15, 2026
3aaeb20
fix(appkit): install drizzle-kit for every init start except none
ditadi Nov 15, 2026
c663c3b
fix(appkit): stop claiming the role delete covers every database
ditadi Nov 15, 2026
7ac125a
test(appkit): migrate on start only as the app's own service principal
ditadi Nov 15, 2026
1857d5b
test(appkit): keep the init lock test off the real drizzle-kit install
ditadi Nov 15, 2026
3e3e6e9
test(appkit): appkit db migrate reports statements that may fail on e…
ditadi Nov 15, 2026
4496897
fix(appkit): appkit db migrate warns when a migration may fail on exi…
ditadi Nov 15, 2026
aa5d364
docs: describe the two warnings appkit db migrate prints
ditadi Nov 15, 2026
b1d9829
fix(appkit): migrate on start only as the app's own service principal
ditadi Nov 15, 2026
7ff0d59
fix(appkit): say old instances can still serve during a migrate on start
ditadi Nov 15, 2026
c269a03
test(appkit): a deploy start refuses a stranded migration next to unk…
ditadi Nov 15, 2026
9a8fc90
fix(appkit): a deploy start refuses a stranded migration next to unkn…
ditadi Nov 15, 2026
57c9c01
Merge branch 'fix/fabian-01' into fix/fabian-02
ditadi Nov 15, 2026
a40deef
Merge branch 'fix/fabian-02' into fix/fabian-03
ditadi Nov 15, 2026
e353ce2
Merge branch 'fix/fabian-03' into fix/fabian-04
ditadi Nov 15, 2026
9177702
fix(appkit): decide init's schema start from the branch itself, not a…
ditadi Nov 15, 2026
dfc80b3
feat(cli): ask before a clean only when init says the schema is yours…
ditadi Nov 15, 2026
298927e
docs: describe how appkit db init tells a fork's copy from your worki…
ditadi Nov 15, 2026
21ff2aa
chore: write init's comments as plain sentences
ditadi Nov 15, 2026
20807f8
fix(appkit): stop suggesting ALTER OWNER when init cannot hand off th…
ditadi Nov 15, 2026
4020344
Merge branch 'fix/fabian-04' into fix/fabian-05
ditadi Nov 15, 2026
deee106
Merge branch 'fix/fabian-05' into fix/fabian-06
ditadi Nov 15, 2026
e6ce5a7
test(appkit): local verify must report a fork copy awaiting its rebui…
ditadi Nov 15, 2026
f3d58a0
fix(appkit): report a fork copy awaiting its rebuild from local verify
ditadi Nov 15, 2026
aab165e
test(shared): verify must tell a fork copy to rebuild with init, not …
ditadi Nov 15, 2026
be636e3
fix(shared): tell a fork copy to rebuild with init from verify
ditadi Nov 15, 2026
39903a4
Merge branch 'fix/fabian-06' into fix/fabian-07
ditadi Nov 15, 2026
ca42130
Merge branch 'fix/fabian-07' into fix/fabian-08
ditadi Nov 15, 2026
61a3f76
test(appkit): migrate on start needs PGUSER set to the app's client id
ditadi Nov 15, 2026
f916f75
fix(appkit): migrate on start needs PGUSER set to the app's client id
ditadi Nov 15, 2026
b6d9b02
docs(appkit): state migrate on start as the PGUSER identity rule
ditadi Nov 15, 2026
9f60619
docs(appkit): take the full ownership inventory before delete-role
ditadi Nov 15, 2026
eee9a10
docs(appkit): describe the created-branch rebuild, copy refusals and …
ditadi Nov 15, 2026
a8c94cf
test(appkit): pin how init, migrate, introspect and seed treat a fork…
ditadi Nov 15, 2026
8940984
docs(appkit): drop comments that restate the migrate warning code
ditadi Nov 15, 2026
0082fbf
fix(appkit): make migrate, introspect and seed refuse an untouched fo…
ditadi Nov 15, 2026
4f565a7
docs(appkit): drop comments that narrate the migration code
ditadi Nov 15, 2026
d3132ad
refactor(appkit): name the branch-deployed-first rule in historyRefusal
ditadi Nov 15, 2026
ec82d6a
fix(appkit): tag the fork copy only in a journal the migrator trusts
ditadi Nov 15, 2026
1950d1a
fix(appkit): rebuild a fresh fork's schema even when you already owne…
ditadi Nov 15, 2026
9631635
fix(appkit): warn when init cannot mark a fork's copy before it rebui…
ditadi Nov 15, 2026
27c60b7
fix(shared): point a kept fork copy at --schema clean, which is what …
ditadi Nov 15, 2026
fea6a77
docs: describe the fork-copy rules this fix round changed
ditadi Nov 15, 2026
f279c45
Merge branch 'fix/fabian-03' into fix/fabian-04
ditadi Nov 15, 2026
c8e638c
Merge branch 'fix/fabian-01' into fix/fabian-02
ditadi Nov 15, 2026
37bb015
Merge branch 'fix/fabian-02' into fix/fabian-03
ditadi Nov 15, 2026
4aec213
Merge branch 'fix/fabian-03' into fix/fabian-04
ditadi Nov 15, 2026
3058ddb
chore: delete the comments the audit flagged in init, schema-state an…
ditadi Nov 15, 2026
8db8af1
refactor(appkit): let the drift read ignore the fork-copy tag instead…
ditadi Nov 15, 2026
d155391
refactor(appkit): name the .env write of the session id that happens …
ditadi Nov 15, 2026
6fa1126
refactor(appkit): give init's start under the lock a discriminated ty…
ditadi Nov 15, 2026
bc31db9
refactor(appkit): rename introspect's record option to recordAsApplied
ditadi Nov 15, 2026
cf427f8
refactor(appkit): name the tagged state interrupted-rebuild and decid…
ditadi Nov 15, 2026
775e0d0
refactor: report a cancelled clean as an init outcome instead of a na…
ditadi Nov 15, 2026
419afb2
refactor: let init's report say why it rebuilt the schema
ditadi Nov 15, 2026
344be2a
Merge branch 'fix/fabian-04' into fix/fabian-05
ditadi Nov 15, 2026
abde2ee
Merge branch 'fix/fabian-05' into fix/fabian-06
ditadi Nov 15, 2026
89c258c
test(appkit): local verify must report the fork's untouched copy too
ditadi Nov 15, 2026
a452886
fix(appkit): report both fork-copy states from local verify, with mig…
ditadi Nov 15, 2026
3594e95
test(shared): verify must print the fork-copy advice the tooling reports
ditadi Nov 15, 2026
9671585
fix(shared): print the fork-copy advice the tooling reports from verify
ditadi Nov 15, 2026
891be8b
test(appkit): drop the narration comments from verify's tests
ditadi Nov 15, 2026
7049b5b
Merge branch 'fix/fabian-06' into fix/fabian-07
ditadi Nov 15, 2026
71b680b
Merge branch 'fix/fabian-07' into fix/fabian-08
ditadi Nov 15, 2026
d049149
docs(appkit): qualify what a plain init does after --schema none
ditadi Nov 15, 2026
e030a1c
docs(appkit): stop claiming the role delete reassigns in every database
ditadi Nov 15, 2026
6d623e0
test(appkit): local verify must report a fork copy only on your own b…
ditadi Nov 15, 2026
f22e777
fix(appkit): report a fork copy from local verify only on your own br…
ditadi Nov 15, 2026
82c5516
Merge branch 'fix/fabian-06' into fix/fabian-07
ditadi Nov 15, 2026
e2e5b75
test(appkit): point the verify branch tests at their branch through i…
ditadi Nov 15, 2026
c90c8b9
Merge branch 'fix/fabian-07' into fix/fabian-08
ditadi Nov 15, 2026
5b07d34
test(appkit): let the init Postgres test's sessions close before it d…
ditadi Nov 15, 2026
a57c966
Merge branch 'fix/fabian-05' into fix/fabian-06
ditadi Nov 15, 2026
d80e54c
Merge branch 'fix/fabian-06' into fix/fabian-07
ditadi Nov 15, 2026
9d15919
Merge branch 'fix/fabian-07' into fix/fabian-08
ditadi Nov 15, 2026
eb7997d
test(appkit): pin introspect on undeclared foreign keys and new columns
ditadi Nov 15, 2026
c0ce5cd
fix(appkit): render undeclared foreign keys and keep only declared .p…
ditadi Nov 15, 2026
a0233fa
docs(appkit): say what appkit db introspect keeps from the schema.ts …
ditadi Nov 15, 2026
fe62cbd
Merge branch 'fix/fabian-04' into fix/fabian-05
ditadi Nov 15, 2026
2d9dce4
Merge branch 'fix/fabian-05' into fix/fabian-06
ditadi Nov 15, 2026
0b42c86
Merge branch 'fix/fabian-06' into fix/fabian-07
ditadi Nov 15, 2026
41ab221
Merge branch 'fix/fabian-07' into fix/fabian-08
ditadi Nov 15, 2026
bc41ff7
test(appkit): pin CHECK, EXCLUDE and index omissions as introspect wa…
ditadi Nov 25, 2026
2859443
fix(appkit): warn about CHECK, EXCLUDE and indexes introspect leaves out
ditadi Nov 25, 2026
cf67bdf
Merge branch 'mario-07' into mario-08
ditadi Nov 25, 2026
507cea7
Merge branch 'mario-06' into mario-07
ditadi Nov 25, 2026
13dad9f
Merge branch 'mario-05' into mario-06
ditadi Nov 25, 2026
77966a4
Merge branch 'mario-04' into mario-05
ditadi Nov 25, 2026
9d5feb9
test(appkit): show that db check aborts on a snapshot with merge conf…
ditadi Nov 25, 2026
78f2b1e
docs(template): describe database storage and migrations, not CRUD ro…
ditadi Nov 25, 2026
786acb3
fix(appkit): report a snapshot that is not JSON in db check instead o…
ditadi Nov 25, 2026
e955850
test(appkit): an explicit schemaName gets no default-schema advice fr…
ditadi Nov 25, 2026
730ea72
fix(appkit): give the default-schema advice only when schemaName is i…
ditadi Nov 25, 2026
37ce639
chore: move the knip entry points out of the migrations layer
ditadi Nov 25, 2026
c883fc0
fix(template): open env: in app.yaml whenever the database flag renders
ditadi Nov 25, 2026
837523e
test(appkit): a current deploy branch skips the lookup of tables left…
ditadi Nov 25, 2026
72ab500
test(appkit): pin the escaping of U+061C and of names in introspect's…
ditadi Nov 25, 2026
bc16fa8
refactor(appkit): read the dev and session branch shapes from one run…
ditadi Nov 25, 2026
08fcdfe
docs(template): make the health-check promise conditional on Apps enf…
ditadi Nov 25, 2026
74c6e43
fix(shared): give stranded migrations the history-rewrite recovery in…
ditadi Nov 25, 2026
0e4d546
fix(appkit): escape U+061C and catalog names in introspect's breaking…
ditadi Nov 25, 2026
248c82e
fix(appkit): refuse to migrate on start when LAKEBASE_ENDPOINT names …
ditadi Nov 25, 2026
9defc8d
fix(appkit): leave the migration history unchanged when migrate refus…
ditadi Nov 25, 2026
b6dfe54
fix(appkit): warn that ADD PRIMARY KEY may fail on the deploy branch'…
ditadi Nov 25, 2026
8b1f8ca
fix(appkit): say how to recover when a migration fails on existing rows
ditadi Nov 25, 2026
7d366ec
test(appkit): pin introspect's drop refusal on a public enum and on f…
ditadi Nov 25, 2026
0b8a933
fix(appkit): say that migrate skipped the public-tables check on a br…
ditadi Nov 25, 2026
e390ea4
test(appkit): pin that a role delete's NOT_FOUND fails while the role…
ditadi Nov 25, 2026
ccfa821
fix(appkit): detect the fork's copy in verify from the branch kind, n…
ditadi Nov 25, 2026
f91f244
fix(appkit): create the app schema only when it does not exist
ditadi Nov 25, 2026
f2c5da9
fix(appkit): keep the generated migration when a lock timeout or canc…
ditadi Nov 25, 2026
f0f0a5a
fix(appkit): refuse introspect drops by the snapshot's objects, not b…
ditadi Nov 25, 2026
fe3bb73
fix(appkit): count a delete's NOT_FOUND as done only when the resourc…
ditadi Nov 25, 2026
53c4efb
fix(appkit): look for tables left in public only when a migration is …
ditadi Nov 25, 2026
f92832e
fix(appkit): say when deployed SQL differs only in line endings
ditadi Nov 25, 2026
73f97be
fix(appkit): name the migration file that cannot be read
ditadi Nov 25, 2026
23cbf2f
test(appkit): pin introspect refusing an edited pending introspect mi…
ditadi Nov 25, 2026
fdce6da
fix(appkit): release the migration history lock on SIGINT and SIGTERM
ditadi Nov 25, 2026
bae6585
docs(appkit): match the branch response comment to the optional defau…
ditadi Nov 25, 2026
0f80795
test(appkit): pin that a failed drizzle-kit install leaves the fork's…
ditadi Nov 25, 2026
376323c
fix(appkit): record a pending introspect migration only when introspe…
ditadi Nov 25, 2026
1468322
fix(appkit): tag the fork's copy before init installs drizzle-kit
ditadi Nov 25, 2026
991e9e3
fix(appkit): fail setup when the app has no USAGE on its schema
ditadi Nov 25, 2026
cc99570
test(appkit): pin the drizzle-kit install over another version and th…
ditadi Nov 25, 2026
78bffda
fix(appkit): read the deployed migrations relative to the app's sourc…
ditadi Nov 25, 2026
153718d
test(appkit): pin migrate naming the recovery for a failed pending in…
ditadi Nov 25, 2026
548c881
fix(appkit): say to rerun appkit db introspect when a pending introsp…
ditadi Nov 25, 2026
16601d7
docs(appkit): say what appkit db introspect defaults to, writes, and …
ditadi Nov 25, 2026
4264584
fix(appkit): install drizzle-kit over another version, and stop the m…
ditadi Nov 25, 2026
2d49802
fix(appkit): read BUNDLE_VAR_ variables as a third reading of databri…
ditadi Nov 25, 2026
bebc569
test(appkit): pin that an interrupted rebuild without schema.ts intro…
ditadi Nov 25, 2026
12d89eb
fix(appkit): finish an interrupted rebuild without schema.ts by intro…
ditadi Nov 25, 2026
e8f657b
fix(appkit): check a target's workspace.profile host in verify --depl…
ditadi Nov 25, 2026
51cedf2
fix(appkit): warn when APPKIT_DB_MIGRATE_ON_START has a value other t…
ditadi Nov 25, 2026
8f382fa
test(shared): pin that the rebuild line says the copied rows went, wi…
ditadi Nov 25, 2026
b90336e
fix(shared): stop telling a rebuilt branch that --schema migrate keep…
ditadi Nov 25, 2026
9068075
fix(appkit): require a verifying TLS mode for CLI connections to the …
ditadi Nov 25, 2026
288dbf7
test(appkit): pin that clean refuses the fork's untouched copy and na…
ditadi Nov 25, 2026
2c59167
fix(appkit): refuse appkit db clean on the fork's untouched copy, nam…
ditadi Nov 25, 2026
e995a48
fix(appkit): escape deployed and catalog text verify prints
ditadi Nov 25, 2026
0297110
test(appkit): pin that an invalid APPKIT_DB_SESSION is refused instea…
ditadi Nov 25, 2026
b23617c
refactor(appkit): derive each introspect omission's four outputs from…
ditadi Nov 25, 2026
5710756
fix(appkit): refuse an invalid APPKIT_DB_SESSION instead of replacing it
ditadi Nov 25, 2026
2c23e6a
test(appkit): pin that a plain init resumes a stopped --session run
ditadi Nov 25, 2026
4ed3c28
fix(appkit): resume a stopped --session run from a plain init, and na…
ditadi Nov 25, 2026
bf6ee06
test(appkit): pin init's check of the bound database before the fork,…
ditadi Nov 25, 2026
b760c87
fix(appkit): check the bound database on the source before the fork, …
ditadi Nov 25, 2026
386fd89
fix(appkit): count only owned objects as hand-off blockers, and refus…
ditadi Nov 25, 2026
8161928
test(appkit): pin escaped catalog names in clean, seed and hand-off o…
ditadi Nov 25, 2026
c31495e
fix(appkit): escape catalog names that clean, seed and the hand-off p…
ditadi Nov 25, 2026
6518026
docs(appkit): say that init resumes a session branch a --session run …
ditadi Nov 25, 2026
0098124
Merge branch 'stack/database-dev-flow/01-migrations-on-deploy' into s…
ditadi Nov 25, 2026
f451abd
fix(appkit): pass CREATE on the app schema to the USAGE refusal's hint
ditadi Nov 25, 2026
56b1ed4
Merge branch 'stack/database-dev-flow/02-default-app-schema' into sta…
ditadi Nov 25, 2026
8b4289c
fix(appkit): name an unreadable migration file with migrationFile
ditadi Nov 25, 2026
fa9cb1d
refactor(appkit): build dev and session branch ids from the runtime s…
ditadi Nov 25, 2026
ae93d75
Merge branch 'stack/database-dev-flow/03-db-migrate' into stack/datab…
ditadi Nov 25, 2026
27e7bfe
Merge branch 'stack/database-dev-flow/04-db-introspect' into stack/da…
ditadi Nov 25, 2026
b262d25
fix(appkit): read BUNDLE_VAR_ variables where init reads databricks.yml
ditadi Nov 25, 2026
9231920
Merge branch 'stack/database-dev-flow/05-db-init' into stack/database…
ditadi Nov 25, 2026
d0bafe9
fix(appkit): read BUNDLE_VAR_ variables in deployed verify
ditadi Nov 25, 2026
b0c236a
Merge branch 'stack/database-dev-flow/06-db-verify' into stack/databa…
ditadi Nov 25, 2026
0123073
test(appkit): classify the .env branch for real in verify's PGUSER tests
ditadi Nov 25, 2026
9582206
Merge branch 'stack/database-dev-flow/07-apps-init' into stack/databa…
ditadi Nov 25, 2026
9eefea3
refactor(appkit): give db verify and db check one history-rewrite advice
ditadi Nov 25, 2026
d7cccdc
Merge branch 'main' into stack/database-dev-flow/01-migrations-on-deploy
ditadi Nov 25, 2026
11c71e6
fix(appkit): give a stranded migration the history rewrite instead of…
ditadi Nov 25, 2026
5b0582d
docs: describe the ambiguous history and the deploy start checks
ditadi Nov 25, 2026
000bb8a
Merge branch 'stack/database-dev-flow/01-migrations-on-deploy' into s…
ditadi Nov 25, 2026
4d1006c
Merge branch 'stack/database-dev-flow/02-default-app-schema' into sta…
ditadi Nov 25, 2026
c119797
fix(appkit): export WorkspaceRequest from the workspace-client wrapper
ditadi Nov 25, 2026
357b56d
refactor(appkit): load schema.ts and write the journal with main's ty…
ditadi Nov 25, 2026
98a4326
feat(appkit): regenerate database-operations.d.ts in appkit db migrate
ditadi Nov 25, 2026
a43a9b8
docs: describe the CLI's PGSSLMODE refusal and when the history lock …
ditadi Nov 25, 2026
9ef6a79
chore: measure the appkit bundle-size baseline after the post-main ch…
ditadi Nov 25, 2026
80e4b48
Merge branch 'stack/database-dev-flow/03-db-migrate' into stack/datab…
ditadi Nov 25, 2026
a3c49e9
fix(appkit): load schema.ts in introspect with main's loader and awai…
ditadi Nov 25, 2026
07ba7d7
feat(appkit): regenerate database-operations.d.ts in appkit db intros…
ditadi Nov 25, 2026
5b5509b
docs: describe introspect's schema.ts.bak and its refusal to drop wha…
ditadi Nov 25, 2026
716e965
Merge branch 'stack/database-dev-flow/04-db-introspect' into stack/da…
ditadi Nov 25, 2026
a2b6ffe
fix(appkit): load schema.ts in init, clean and seed with main's loader
ditadi Nov 25, 2026
2a377a1
chore: measure the appkit bundle-size baseline after the post-main ch…
ditadi Nov 25, 2026
6100aad
Merge branch 'stack/database-dev-flow/05-db-init' into stack/database…
ditadi Nov 25, 2026
93ab021
fix(appkit): load schema.ts in db verify with main's loader
ditadi Nov 25, 2026
9adec54
Merge branch 'stack/database-dev-flow/06-db-verify' into stack/databa…
ditadi Nov 25, 2026
65d1f0b
docs: state the template's exit 1 for every app and roll out on a sca…
ditadi Nov 25, 2026
187d8af
Merge branch 'stack/database-dev-flow/07-apps-init' into stack/databa…
ditadi Nov 25, 2026
2de0729
fix(appkit): load schema.ts in db check with main's loader
ditadi Nov 25, 2026
fc6bcb8
test: answer the schema USAGE check in the dev-playground database fake
ditadi Nov 25, 2026
8ed8ab9
Merge branch 'stack/database-dev-flow/01-migrations-on-deploy' into s…
ditadi Nov 25, 2026
20f3eb2
Merge branch 'stack/database-dev-flow/02-default-app-schema' into sta…
ditadi Nov 25, 2026
f813eac
Merge branch 'stack/database-dev-flow/03-db-migrate' into stack/datab…
ditadi Nov 25, 2026
26f2583
Merge branch 'stack/database-dev-flow/04-db-introspect' into stack/da…
ditadi Nov 25, 2026
0d5906d
Merge branch 'stack/database-dev-flow/05-db-init' into stack/database…
ditadi Nov 25, 2026
516aad5
Merge branch 'stack/database-dev-flow/06-db-verify' into stack/databa…
ditadi Nov 25, 2026
864cc2e
Merge branch 'stack/database-dev-flow/07-apps-init' into stack/databa…
ditadi Nov 25, 2026
ed4dbb2
fix(appkit): read the branch only from a whole LAKEBASE_ENDPOINT reso…
ditadi Nov 25, 2026
0a9a688
docs: say the dev branch refusal covers only a start that migrates
ditadi Nov 25, 2026
9317c4f
Merge branch 'stack/database-dev-flow/01-migrations-on-deploy' into s…
ditadi Nov 25, 2026
ad2302e
Merge branch 'stack/database-dev-flow/02-default-app-schema' into sta…
ditadi Nov 25, 2026
0feae97
fix(appkit): keep the history lock when another listener handles the …
ditadi Nov 25, 2026
9b674ea
fix(appkit): regenerate the types before migrate writes a migration
ditadi Nov 25, 2026
03c071d
fix(appkit): keep the schema import error to the db CLI that asks for it
ditadi Nov 25, 2026
6edeb03
docs: say when a signal releases the history lock
ditadi Nov 25, 2026
df91530
Merge branch 'stack/database-dev-flow/03-db-migrate' into stack/datab…
ditadi Nov 25, 2026
56db876
fix(appkit): show the schema import error in appkit db introspect
ditadi Nov 25, 2026
188cbef
Merge branch 'stack/database-dev-flow/04-db-introspect' into stack/da…
ditadi Nov 25, 2026
6d4b257
fix(appkit): show the schema import error in appkit db init, clean an…
ditadi Nov 25, 2026
2ab0fb9
fix(appkit): escape the database name init prints
ditadi Nov 25, 2026
a930787
test(appkit): type the import-error results in the init, clean and se…
ditadi Nov 25, 2026
0e7f1b8
Merge branch 'stack/database-dev-flow/05-db-init' into stack/database…
ditadi Nov 25, 2026
fbb2e55
fix(appkit): show the schema import error in appkit db verify
ditadi Nov 25, 2026
73bb33a
fix(appkit): keep the raw apps API error out of the verify failure
ditadi Nov 25, 2026
67191fb
fix(appkit): resolve an included source_code_path before rebasing it
ditadi Nov 25, 2026
8033362
Merge branch 'stack/database-dev-flow/06-db-verify' into stack/databa…
ditadi Nov 25, 2026
545cc4f
Merge branch 'stack/database-dev-flow/07-apps-init' into stack/databa…
ditadi Nov 25, 2026
439544e
fix(appkit): show the schema import error in appkit db check
ditadi Nov 25, 2026
64864fc
test(shared): compare init's printed output without color codes
ditadi Nov 26, 2026
4381aff
Merge branch 'stack/database-dev-flow/05-db-init' into stack/database…
ditadi Nov 26, 2026
7aa8416
Merge branch 'stack/database-dev-flow/06-db-verify' into stack/databa…
ditadi Nov 26, 2026
260ecb1
Merge branch 'stack/database-dev-flow/07-apps-init' into stack/databa…
ditadi Nov 26, 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
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,18 @@ jobs:
runs-on:
group: databricks-ghec-untrusted-runner-group
labels: linux-ubuntu-latest-untrusted-2core-8gb
services:
postgres:
image: postgres:17@sha256:2d2b8998d31037bf721cfdf764d76ba74171b4fab3431b7f72c27c56ddbdf9e3
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 5s
--health-timeout 5s
--health-retries 10

steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
Expand All @@ -131,6 +143,8 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Run Tests
run: pnpm test
env:
APPKIT_TEST_PG_URL: postgres://postgres:postgres@localhost:5432/postgres

playground-integration-test:
name: Playground Integration Tests
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ coverage

.databricks

# `appkit db` holds it while a command changes the migration history
**/config/database/.appkit-db.lock

.claude/scheduled_tasks.lock
internal

Expand Down
44 changes: 44 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,50 @@
"rules": {
"no-restricted-imports": "off"
}
},
{
"files": ["packages/appkit/src/**"],
"rules": {
"no-restricted-imports": [
"error",
{
"patterns": [
{
"group": ["@databricks/sdk-*", "@databricks/sdk-*/**"],
"message": "Import the Databricks SDK only through the wrapper in packages/shared/src/workspace-client (modular.ts builds the modular @databricks/sdk-* clients). Add a re-export there if you need a new symbol."
},
{
"group": ["drizzle-kit", "drizzle-kit/**"],
"message": "drizzle-kit is an optional dev dependency that deployed apps do not install. Only packages/appkit/src/database/tooling may import it."
},
{
"group": [
"**/tooling",
"**/tooling/**",
"@databricks/appkit/beta/database-tooling"
],
"message": "The database tooling may import drizzle-kit, so only the CLI loads it. Runtime code must not import it."
}
]
}
]
}
},
{
"files": ["packages/appkit/src/database/tooling/**"],
"rules": {
"no-restricted-imports": [
"error",
{
"patterns": [
{
"group": ["@databricks/sdk-*", "@databricks/sdk-*/**"],
"message": "Import the Databricks SDK only through the wrapper in packages/shared/src/workspace-client (modular.ts builds the modular @databricks/sdk-* clients). Add a re-export there if you need a new symbol."
}
]
}
]
}
}
],
"ignorePatterns": [
Expand Down
62 changes: 33 additions & 29 deletions apps/dev-playground/config/database/schema.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Annotations a reviewer leaves on a saved dashboard, plus an audit trail table
// for them. The operations in server/database/routes/ are the only HTTP access.
// The DatabasePlugin does not create these tables, so the app expects them to exist.
// The DatabasePlugin does not create these tables, so the app expects them to
// exist in public, where they were created before the default schema became app.

import {
defineSchema,
Expand All @@ -11,34 +12,37 @@ import {
varchar,
} from "@databricks/appkit/beta";

export const schema = defineSchema(({ table }) => {
const boards = table("boards", {
id: id(),
slug: varchar(64).notNull().unique(),
title: text().notNull(),
created_at: timestamp({ withTimezone: true }).defaultNow().notNull(),
});
export const schema = defineSchema(
({ table }) => {
const boards = table("boards", {
id: id(),
slug: varchar(64).notNull().unique(),
title: text().notNull(),
created_at: timestamp({ withTimezone: true }).defaultNow().notNull(),
});

const notes = table("notes", {
id: id(),
board_id: fk(() => boards.id)
.notNull()
.onDelete("cascade"),
author: text().notNull(),
// Server code needs it to notify the reviewer; no client should see it.
author_email: text().private(),
body: text().notNull(),
created_at: timestamp({ withTimezone: true }).defaultNow().notNull(),
});
const notes = table("notes", {
id: id(),
board_id: fk(() => boards.id)
.notNull()
.onDelete("cascade"),
author: text().notNull(),
// Server code needs it to notify the reviewer; no client should see it.
author_email: text().private(),
body: text().notNull(),
created_at: timestamp({ withTimezone: true }).defaultNow().notNull(),
});

const note_events = table("note_events", {
id: id(),
note_id: fk(() => notes.id)
.notNull()
.onDelete("cascade"),
action: varchar(32).notNull(),
created_at: timestamp({ withTimezone: true }).defaultNow().notNull(),
});
const note_events = table("note_events", {
id: id(),
note_id: fk(() => notes.id)
.notNull()
.onDelete("cascade"),
action: varchar(32).notNull(),
created_at: timestamp({ withTimezone: true }).defaultNow().notNull(),
});

return { boards, notes, note_events };
});
return { boards, notes, note_events };
},
{ schemaName: "public" },
);
16 changes: 11 additions & 5 deletions apps/dev-playground/server/testing/database-edges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,18 +232,24 @@ export function memoryDatabase(schema: Schema): MemoryDatabase {
if (row) remove(table, row);
return row !== undefined;
},
// Setup runs `select 1`, then reads pg_catalog to confirm that every
// declared column exists. This database holds exactly the declared ones.
raw: async (strings) =>
strings.join("?").includes("pg_catalog")
// Setup runs `select 1`, reads whether its role may use the app schema,
// then reads pg_catalog to confirm that every declared column exists.
// The role may, and this database holds exactly the declared columns.
raw: async (strings) => {
const sql = strings.join("?");
if (sql.includes("has_schema_privilege")) {
return [{ owner: "app", current_user: "app", usage: true }];
}
return sql.includes("pg_catalog")
? tables.flatMap((table) =>
Object.values(table.$columns).map((meta) => ({
table_name: table.$name,
column_name: meta.columnName,
relation_kind: "r",
})),
)
: [{ "?column?": 1 }],
: [{ "?column?": 1 }];
},
// AppKit joins nested transactions itself; one never reaches the edge.
transaction: async () => {
throw new Error("memory database: nested transaction");
Expand Down
90 changes: 54 additions & 36 deletions bundle-size-baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
{
"name": "@databricks/appkit",
"tarball": {
"packed": 1409598,
"unpacked": 4822638
"packed": 1605551,
"unpacked": 5476020
},
"dist": {
"total": {
"raw": 4807205,
"gzip": 1647276
"raw": 5460206,
"gzip": 1866593
},
"js": {
"raw": 1441621,
"gzip": 512746
"raw": 1662583,
"gzip": 589547
},
"types": {
"raw": 493520,
"gzip": 177925
"raw": 509717,
"gzip": 185285
},
"maps": {
"raw": 2861269,
"gzip": 952787
"raw": 3277111,
"gzip": 1087943
},
"css": {
"raw": 0,
Expand All @@ -31,22 +31,22 @@
"raw": 10795,
"gzip": 3818
},
"fileCount": 934
"fileCount": 1023
},
"entries": [
{
"id": ".",
"gzip": 123587,
"gzip": 123615,
"composition": {
"initialGzip": 121096,
"lazyGzip": 2491,
"totalGzip": 123587,
"own": 387234,
"initialGzip": 121125,
"lazyGzip": 2490,
"totalGzip": 123615,
"own": 387319,
"nodeModules": null,
"chunks": [
{
"label": "index.js",
"gzip": 116420,
"gzip": 116449,
"kind": "initial"
},
{
Expand All @@ -56,25 +56,25 @@
},
{
"label": "remote-tunnel-manager.js",
"gzip": 2491,
"gzip": 2490,
"kind": "lazy"
}
]
}
},
{
"id": "./beta",
"gzip": 125709,
"gzip": 134608,
"composition": {
"initialGzip": 121052,
"lazyGzip": 4657,
"totalGzip": 125709,
"own": 364797,
"initialGzip": 129943,
"lazyGzip": 4665,
"totalGzip": 134608,
"own": 390343,
"nodeModules": null,
"chunks": [
{
"label": "beta.js",
"gzip": 94097,
"gzip": 102908,
"kind": "initial"
},
{
Expand All @@ -84,7 +84,7 @@
},
{
"label": "define-schema.js",
"gzip": 5952,
"gzip": 6032,
"kind": "initial"
},
{
Expand Down Expand Up @@ -119,7 +119,7 @@
},
{
"label": "index.js",
"gzip": 4144,
"gzip": 4152,
"kind": "lazy"
},
{
Expand All @@ -140,14 +140,32 @@
]
}
},
{
"id": "./beta/database-tooling",
"gzip": 57006,
"composition": {
"initialGzip": 57006,
"lazyGzip": 0,
"totalGzip": 57006,
"own": 170568,
"nodeModules": null,
"chunks": [
{
"label": "index.js",
"gzip": 57006,
"kind": "initial"
}
]
}
},
{
"id": "./testing",
"gzip": 86976,
"gzip": 87002,
"composition": {
"initialGzip": 47639,
"lazyGzip": 39337,
"totalGzip": 86976,
"own": 251577,
"lazyGzip": 39363,
"totalGzip": 87002,
"own": 251662,
"nodeModules": null,
"chunks": [
{
Expand All @@ -167,7 +185,7 @@
},
{
"label": "index.js",
"gzip": 34987,
"gzip": 35013,
"kind": "lazy"
},
{
Expand Down Expand Up @@ -203,17 +221,17 @@
},
{
"id": "./type-generator",
"gzip": 31746,
"gzip": 31777,
"composition": {
"initialGzip": 31746,
"initialGzip": 31777,
"lazyGzip": 0,
"totalGzip": 31746,
"own": 91419,
"totalGzip": 31777,
"own": 91504,
"nodeModules": null,
"chunks": [
{
"label": "index.js",
"gzip": 31746,
"gzip": 31777,
"kind": "initial"
}
]
Expand Down
Loading
Loading