Commit graph

2,448 commits

Author SHA1 Message Date
Dustin Brown
0fdaa27ed0
Revert "Revert "Revert external server CLI dir override" (#3891)"
This reverts commit 410cff40b9.
2026-05-11 14:48:20 -07:00
matt wilkie
410cff40b9
Revert "Revert external server CLI dir override" (#3891)
This reverts commit 9b0cf9e600. Reverts #3862 . Clean up after rogue agent merged before Dolt-related PR was cleared by @coffeegoddd
2026-05-11 14:39:03 -07:00
matt wilkie
87963b4ce9
Revert "Add external server CLI dir override (bd-fn9) (#3498)" (#3890)
This reverts commit 0fffa44a23.
2026-05-11 14:34:22 -07:00
matt wilkie
e7fb5793a4
Revert "Revert external server CLI dir override" (#3888)
This reverts commit 9b0cf9e600.
2026-05-11 14:30:44 -07:00
matt wilkie
9b0cf9e600
Revert external server CLI dir override
Reverts PR #3498 / commit 0fffa44a2302a496dfa4ffa838843b3bbf0ee122.\n\nPR #3498 added BEADS_DOLT_CLI_DIR routing without a confirmed reproduction and introduced an external-server push/pull regression. Remove that override and its docs/tests so main no longer requires a local CLI database directory in external-server mode.\n\n_codex-gpt-5- on behalf of CI Bot_
2026-05-11 13:00:02 -07:00
coffeegoddd☕️✨
c190250c29 /internal/storage/schema/migrations: remove add and commit calls in schema 2026-05-10 19:29:03 -07:00
coffeegoddd☕️✨
5a98cb7c78 /internal/storage/schema/migrations: fix index creation if not exists 2026-05-10 18:52:59 -07:00
coffeegoddd☕️✨
693bd32810 /internal/storage/schema/branch_migrate.go: fix branch migrate 2026-05-10 18:34:18 -07:00
coffeegoddd☕️✨
d3145a3152 /internal/storage: use branch migrate 2026-05-10 17:22:17 -07:00
coffeegoddd☕️✨
48fe1d6a47 /internal/storage/uow/doltserver_provider.go: fix provider 2026-05-10 17:03:24 -07:00
coffeegoddd☕️✨
b0a7ae4d2a /internal/storage/schema: more fixes 2026-05-10 16:53:12 -07:00
coffeegoddd☕️✨
173288d61d /internal/storage: remove backward compat stuff 2026-05-10 15:46:41 -07:00
coffeegoddd☕️✨
247e719112 /internal/storage: wip, removing backfill stuff 2026-05-10 09:56:28 -07:00
coffeegoddd☕️✨
c7aa60dcb4 /{cmd,internal}: tweaks before merge 2026-05-10 07:09:32 -07:00
coffeegoddd☕️✨
b01ddb6ffd /internal/storage/domain: wip 2026-05-10 06:57:43 -07:00
coffeegoddd☕️✨
3d7173c3c1 /{internal,cmd,.gitignore}: wip, proxy server fixes and uow impl 2026-05-10 06:57:41 -07:00
Dustin Brown
5d087a6862
Merge pull request #3833 from coffeegoddd/db/proxy
Db/proxy
2026-05-10 06:52:03 -07:00
coffeegoddd☕️✨
04a922c65d /internal/storage/db/proxy/server.go: lint 2026-05-08 14:53:48 -07:00
coffeegoddd☕️✨
a65d9d1683 /cmd/bd/init.go: some more fixes 2026-05-08 14:19:50 -07:00
coffeegoddd☕️✨
c2b998e41d /{cmd,internal}: some refactors 2026-05-08 13:07:37 -07:00
coffeegoddd☕️✨
04f4e06d42 /{cmd,internal}: root piece 2026-05-08 12:14:51 -07:00
coffeegoddd☕️✨
f2954dd9f9 /{cmd,internal}: support logpath 2026-05-08 11:10:45 -07:00
coffeegoddd☕️✨
4ff5308f9a /{cmd,internal}: server config 2026-05-08 10:25:47 -07:00
matt wilkie
f52c78b2a1 fix(setup): finish hook JSON migration 2026-05-08 09:21:39 -07:00
Scott Hamilton
287d8a84c8 feat(setup): Gemini/Claude hook JSON compliance, --hook-json flag, legacy migration
Fixes Gemini CLI hook integration by emitting the required SessionStart JSON envelope. Extends the same standard to Claude Code hooks (documented spec, not just tolerated raw text). Adds legacy detection in bd setup gemini --check.

- Add `--hook-json` flag to `bd prime` wrapping output in the cross-CLI `hookSpecificOutput.additionalContext` JSON envelope (Claude Code, Gemini CLI, and Codex all share this contract)
- Update `bd setup gemini` to register `bd prime --hook-json` on SessionStart; remove PreCompress registration (advisory-only, no additionalContext support per Gemini docs v0.40.1)
- Update `bd setup claude` to register `bd prime --hook-json` on SessionStart and PreCompact (JSON form is the documented spec; raw text was merely tolerated)
- Migration sweeps in both setup commands so re-running upgrades bare-command installs cleanly
- `bd setup gemini --check` distinguishes current (`--hook-json`) from legacy (bare `bd prime`) installs and emits upgrade advisory for legacy
- Fix `removeHookCommand` bug: previously dropped entire hook entry on first command match, silently deleting sibling commands; now filters only the matching command and drops the entry only when empty
- Refresh docs and recipes to reflect SessionStart-only Gemini hook behavior

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-05-08 09:16:25 -07:00
cdimartino
e69c53d893 Add proper hook integration 2026-05-08 11:16:49 -04:00
coffeegoddd☕️✨
64ed6c0962 /internal/storage/doltserver/store.go: fix panic 2026-05-07 16:46:13 -07:00
coffeegoddd☕️✨
4bf03b31e6 /{cmd,internal}: initial proxy server backend pass 2026-05-07 16:26:16 -07:00
coffeegoddd☕️✨
1075ec3103 /internal/storage/doltserver/store.go: fixes 2026-05-07 13:15:08 -07:00
Dustin Brown
e17502dda1
Merge pull request #3792 from coffeegoddd/db/proxy-3
add doltserver store (storage.DoltStorage)
2026-05-07 13:08:09 -07:00
coffeegoddd☕️✨
83813b2450 /internal/storage/db/server: add wait to server start 2026-05-07 12:50:12 -07:00
coffeegoddd☕️✨
9e49d1336e /internal/storage/db/server/doltserver_test.go: keep config in tests 2026-05-07 12:23:42 -07:00
Dustin Brown
f27ecdf78e
Merge pull request #3492 from GGPrompts/fix/embedded-dolt-remote-auth
fix(embeddeddolt): pass DOLT_REMOTE_USER to push/pull/fetch
2026-05-07 11:51:45 -07:00
coffeegoddd☕️✨
4151d853a6 /internal/storage/doltserver/store.go: get test passing 2026-05-07 11:42:17 -07:00
coffeegoddd☕️✨
39691150c7 /internal/storage/{db,doltserver}: add shutdown helper for tests 2026-05-07 11:11:56 -07:00
coffeegoddd☕️✨
40bb251c12 /internal/storage/db: update to kill and remove dolt sql-server 2026-05-06 17:19:48 -07:00
coffeegoddd☕️✨
6e0f3c20dc /internal/storage/db: write pid of dolt sql-server 2026-05-06 17:11:58 -07:00
coffeegoddd☕️✨
a05e06c0f3 /internal/storage: wip, need to create db if not exists 2026-05-06 16:36:49 -07:00
coffeegoddd☕️✨
57d3c8b600 /internal/storage/doltserver: get test how i want it 2026-05-06 16:16:54 -07:00
coffeegoddd☕️✨
ed3a43a9b8 /internal/storage/doltserver: get test how i want it 2026-05-06 16:15:48 -07:00
coffeegoddd☕️✨
dd2cd0293d /internal/storage/doltserver/store.go: dolt server store 2026-05-06 15:39:29 -07:00
coffeegoddd☕️✨
c7f1456303 /internal/storage/doltserver/store.go: wip, need schema stuff 2026-05-06 15:39:29 -07:00
coffeegoddd☕️✨
e8d4d6994d /internal/storage: remove Ping from DatabaseServer 2026-05-06 15:39:29 -07:00
coffeegoddd☕️✨
ac0f6e62a5 /internal/storage/doltserver/store.go: wip, new store 2026-05-06 15:39:29 -07:00
coffeegoddd☕️✨
273ff65360 /internal/storage/doltserver/store.go: wip, need proxy 2026-05-06 15:39:29 -07:00
coffeegoddd☕️✨
79c6899bff /internal/storage/doltserver/store.go: wip 2026-05-06 15:39:29 -07:00
Dustin Brown
6a6421740a
Merge pull request #3761 from coffeegoddd/db/proxy-2
wire DoltServer into db-proxy-child for the local-server backend
2026-05-06 15:38:43 -07:00
coffeegoddd☕️✨
bed5e5f857 /{cmd,internal}: wire up db proxy child 2026-05-06 15:11:25 -07:00
Paul Gledhill
607919f6f8
fix(dolt): skip git hooks on internal push of refs/dolt/data (GH#3724) (#3740)
* fix(dolt): skip git hooks on internal push of refs/dolt/data (GH#3724)

bd dolt push fails with 'fatal: this operation must be run in a work tree' when the user's init.templateDir has populated the embedded Dolt cache-mirror's hooks/ dir with a pre-push hook (e.g. via pre-commit-framework). Dolt's internal 'git push refs/dolt/data' against the bare-style cache repo fires that hook, which then calls 'git diff' and bombs out.

Set GIT_CONFIG_PARAMETERS='core.hooksPath=/dev/null' on the subprocess env in doltCLIPush so any git invocation made by dolt skips client-side hooks. Same family / shape as the commit-side fixes in PR #3626 (GH#3340) and PR #3599 (GH#3598) — different commit site.

Tests: unit tests on the new applyNoGitHooksToCmd helper (run on regular CI), plus an integration regression test that drops a failing pre-push hook into the cache-mirror after a first push and verifies the second push succeeds without firing it (//go:build integration; runs nightly).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* address self-review nits proactively

- Apply the same fix to doltCLIPushRefToPeer (federation peer push) — same file, same root cause, same one-liner. Federation pushes against git-protocol peers go through Dolt's git-remote-cache mirror with the same pre-push hook exposure.

- Trim the verbose call-site comment in doltCLIPush down to a single GH#3724 reference, matching the existing style of applyS3ChecksumEnvToCmd. Full context lives in the helper docstring.

- Skip TestGitRemotePushSkipsUserPrePushHook on Windows: the assertion uses a POSIX shell hook script. The bug and fix are platform-agnostic; only the test artefact isn't.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 13:56:14 -07:00
Dustin Brown
19a0e64000
Merge pull request #3752 from coffeegoddd/db/proxy-2
internal/storage/db/server: add DoltServer + lifecycle tests
2026-05-06 12:25:05 -07:00