Commit graph

116 commits

Author SHA1 Message Date
Dustin Brown
f4c46d917c
/go.{mod,sum}: bump dolt driver (#3435) 2026-04-27 15:14:54 -07:00
dependabot[bot]
37d30f2e7c
chore(deps): bump charm.land/lipgloss/v2 from 2.0.2 to 2.0.3 (#3325)
Bumps [charm.land/lipgloss/v2](https://github.com/charmbracelet/lipgloss) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/charmbracelet/lipgloss/releases)
- [Commits](https://github.com/charmbracelet/lipgloss/compare/v2.0.2...v2.0.3)

---
updated-dependencies:
- dependency-name: charm.land/lipgloss/v2
  dependency-version: 2.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-17 14:44:46 -07:00
dependabot[bot]
e3c26c6884
chore(deps): bump golang.org/x/term from 0.41.0 to 0.42.0 (#3324)
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.41.0 to 0.42.0.
- [Commits](https://github.com/golang/term/compare/v0.41.0...v0.42.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  dependency-version: 0.42.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-17 14:44:38 -07:00
dependabot[bot]
e4f07387a3
chore(deps): bump go.opentelemetry.io/otel/exporters/stdout/stdoutmetric (#3323)
Bumps [go.opentelemetry.io/otel/exporters/stdout/stdoutmetric](https://github.com/open-telemetry/opentelemetry-go) from 1.42.0 to 1.43.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.42.0...v1.43.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/exporters/stdout/stdoutmetric
  dependency-version: 1.43.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-17 14:44:32 -07:00
dependabot[bot]
8b5d546504
chore(deps): bump github.com/anthropics/anthropic-sdk-go (#3322)
Bumps [github.com/anthropics/anthropic-sdk-go](https://github.com/anthropics/anthropic-sdk-go) from 1.34.0 to 1.37.0.
- [Release notes](https://github.com/anthropics/anthropic-sdk-go/releases)
- [Changelog](https://github.com/anthropics/anthropic-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/anthropics/anthropic-sdk-go/compare/v1.34.0...v1.37.0)

---
updated-dependencies:
- dependency-name: github.com/anthropics/anthropic-sdk-go
  dependency-version: 1.37.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-17 14:44:26 -07:00
matt wilkie
0b9d5a95a7
fix(go.mod): remove broken replace directive that blocks go install (GH#3303)
The replace directive never worked for \`go install\` (per \`go help install\`,
replace is not honored for install@version). Removing it fixes \`go install\`
on Linux/macOS; Windows was already broken and stays broken pending GH#3307.

Full analysis in gastownhall/beads#3303.
2026-04-16 12:04:13 -07:00
dependabot[bot]
76229e766d
chore(deps): bump github.com/testcontainers/testcontainers-go/modules/dolt (#3177)
Bumps [github.com/testcontainers/testcontainers-go/modules/dolt](https://github.com/testcontainers/testcontainers-go) from 0.41.0 to 0.42.0.
- [Release notes](https://github.com/testcontainers/testcontainers-go/releases)
- [Commits](https://github.com/testcontainers/testcontainers-go/compare/v0.41.0...v0.42.0)

---
updated-dependencies:
- dependency-name: github.com/testcontainers/testcontainers-go/modules/dolt
  dependency-version: 0.42.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-10 21:50:18 -07:00
dependabot[bot]
7cd98116ee
chore(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp (#3174)
Bumps [go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp](https://github.com/open-telemetry/opentelemetry-go) from 1.42.0 to 1.43.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.42.0...v1.43.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp
  dependency-version: 1.43.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-10 21:42:30 -07:00
dependabot[bot]
1fd569f613
chore(deps): bump github.com/testcontainers/testcontainers-go (#3176)
Dependabot: bump testcontainers-go from 0.41.0 to 0.42.0
2026-04-10 21:33:06 -07:00
dependabot[bot]
5530a1945e
chore(deps): bump github.com/anthropics/anthropic-sdk-go (#3178)
Dependabot: bump anthropic-sdk-go from 1.27.1 to 1.34.0
2026-04-10 21:32:59 -07:00
dependabot[bot]
055eefe9a5
chore(deps): bump golang.org/x/sys from 0.42.0 to 0.43.0 (#3175)
Dependabot: bump golang.org/x/sys from 0.42.0 to 0.43.0
2026-04-10 21:32:35 -07:00
matt wilkie
9ed1897314
fix: resolve go install failure on Windows due to ICU header dependency (#3013) (#3112)
Use a patched fork of go-mysql-server that adds `!windows` to the CGO
regex build constraint. This ensures `go install ...@latest` on Windows
automatically selects the pure-Go regex backend instead of requiring
ICU C headers.

The fork contains a single two-line change:
- regex_cgo.go: `//go:build cgo && !windows && !gms_pure_go`
- regex_pure.go: `//go:build windows || gms_pure_go`

Upstream PR: https://github.com/dolthub/go-mysql-server/pull/3504
Once merged, this replace directive should be removed.

Closes #3013
2026-04-07 14:11:05 -07:00
dependabot[bot]
88e77e3692
chore(deps): bump go.opentelemetry.io/otel/exporters/stdout/stdouttrace (#3003)
Bumps [go.opentelemetry.io/otel/exporters/stdout/stdouttrace](https://github.com/open-telemetry/opentelemetry-go) from 1.42.0 to 1.43.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.42.0...v1.43.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/exporters/stdout/stdouttrace
  dependency-version: 1.43.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-05 09:18:23 -07:00
dependabot[bot]
41f6b2a0dd
chore(deps): bump go.opentelemetry.io/otel/sdk from 1.42.0 to 1.43.0 (#3004)
Bumps [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go) from 1.42.0 to 1.43.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.42.0...v1.43.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/sdk
  dependency-version: 1.43.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-05 09:17:14 -07:00
dependabot[bot]
c64047a7ac
chore(deps): bump go.opentelemetry.io/otel from 1.42.0 to 1.43.0 (#3002)
Bumps [go.opentelemetry.io/otel](https://github.com/open-telemetry/opentelemetry-go) from 1.42.0 to 1.43.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.42.0...v1.43.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel
  dependency-version: 1.43.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-04 23:01:02 -07:00
dependabot[bot]
d15b4487e2
chore(deps): bump charm.land/lipgloss/v2 from 2.0.1 to 2.0.2 (#2919)
Bumps [charm.land/lipgloss/v2](https://github.com/charmbracelet/lipgloss) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/charmbracelet/lipgloss/releases)
- [Commits](https://github.com/charmbracelet/lipgloss/compare/v2.0.1...v2.0.2)

---
updated-dependencies:
- dependency-name: charm.land/lipgloss/v2
  dependency-version: 2.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-01 06:30:42 -07:00
beads/crew/emma
dc398f5acc fix(deps): update github.com/yuin/goldmark to v1.8.2
Minor version bump. Supersedes Renovate PR #2789 which had unrelated
test failures from a stale branch.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 12:46:24 -07:00
beads/crew/emma
20b39b3616 fix(deps): migrate from lipgloss v1 to charm.land/lipgloss/v2
Replaces the deprecated github.com/charmbracelet/lipgloss v1 with
charm.land/lipgloss/v2. Key changes:

- Import path: github.com/charmbracelet/lipgloss → charm.land/lipgloss/v2
- AdaptiveColor replaced with LightDark() for controlled background
  detection (avoids compat package which probes terminal at init time,
  reintroducing the OSC 11 leak from GH#1303)
- SetColorProfile() replaced with DisableColors() function that resets
  all styles to plain text for hook/non-TTY contexts
- Colors and styles initialized in init() for controlled lifecycle
- Removes direct dependency on github.com/muesli/termenv

Supersedes Renovate PR #2841 which only updated go.mod without fixing
import paths or API changes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 12:44:02 -07:00
dependabot[bot]
858925427a
chore(deps): bump goldmark 1.7.16→1.7.17
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.7.16 to 1.7.17.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.7.16...v1.7.17)

---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
  dependency-version: 1.7.17
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-26 17:47:36 -07:00
coffeegoddd☕️✨
99f3a3c3ab /{go,internal}: bump driver and dolt version in tests 2026-03-26 11:52:40 -07:00
coffeegoddd☕️✨
cda9228ae1 /: bump driver to 1.84.0, paralleize embedded tests 2026-03-23 14:55:55 -07:00
julianknutsen
dba2c993b2 fix: replace fsnotify with polling in bd show --watch
bd show --watch used fsnotify to watch the .beads directory for file
changes, but Dolt stores data in a server-side database — not files —
so file watchers never fired. The display never updated even when the
underlying bead changed status (e.g., to closed/done).

Switch to the same polling approach already used by bd list --watch:
query the database on a 2-second ticker and compare snapshots to detect
changes. This matches the pattern in watchIssues() (list.go:116-161).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 02:47:19 +01:00
beads/crew/emma
4a5cb16f19 fix(deps): update dolthub/driver v0.2.1 to v1.83.8 (fix-merge PR #2720)
Renovate bot dependency update. All CI checks pass.

Co-Authored-By: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 18:34:04 -07:00
beads/crew/emma
39ab50d447 feat(ado): add Azure DevOps work item tracker package
Add the internal/ado package implementing tracker.IssueTracker for Azure
DevOps. Provides bidirectional work item sync via the ADO REST API.

Core components:
- types.go: ADO API types, SecretString with redaction, field constants
- client.go: HTTP client with Basic auth, retry, WIQL query builder
- fieldmapper.go: configurable status/type/priority mapping
- mapping.go: bidirectional IssueToBeads/IssueToTracker conversion
- richtext.go: HTML<>Markdown conversion (goldmark + bluemonday)
- tracker.go: tracker.IssueTracker implementation with init() registration
- bootstrap.go: 4-tier deduplication for first sync
- reconcile.go: deletion detection via periodic reconciliation scan
- links.go: bidirectional link sync with direction normalization

Includes full test suite (218 tests, 92.8% coverage).

Fixes applied during fix-merge:
- errors.New() → fmt.Errorf() to match project conventions (6 instances)
- Added gosec nolint for configured API endpoint SSRF false positive

Co-Authored-By: Harry Miller <harry_miller@trimble.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 14:34:28 -07:00
emma
e6ee4f97bf fix(deps): update github.com/anthropics/anthropic-sdk-go to v1.27.1 (PR #2705)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 12:35:37 -07:00
emma
51d41e2d35 fix(deps): update github.com/dolthub/driver digest to 1f97424 (PR #2650)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 12:05:08 -07:00
emma
bc4ca1e172 chore(deps): bump github.com/anthropics/anthropic-sdk-go to v1.27.0 (PR #2649)
Minor version bump: thinking-display-setting GA, request cancellation
during retry, model reference update.

Co-Authored-By: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 23:26:48 -07:00
coffeegoddd☕️✨
bdca3dccf5 /go.{mod,sum}: bump driver 2026-03-16 13:56:07 -07:00
renovate[bot]
190e70fa7c
fix(deps): update github.com/dolthub/driver digest to 0fe74e7 2026-03-14 00:29:55 +00:00
renovate[bot]
4c43d96b24
fix(deps): update github.com/dolthub/driver digest to 669bd7f 2026-03-12 00:46:50 +00:00
Steve Yegge
2d8f869150
Merge pull request #2528 from steveyegge/renovate/github.com-dolthub-driver-digest
fix(deps): update github.com/dolthub/driver digest to ecee5fd
2026-03-11 17:44:54 -07:00
renovate[bot]
555abde0da
fix(deps): update github.com/dolthub/driver digest to ecee5fd 2026-03-11 22:10:34 +00:00
renovate[bot]
db967a07c5
fix(deps): update module golang.org/x/term to v0.41.0 2026-03-11 14:47:25 +00:00
beads/crew/darcy
f0bb3abc72 chore(deps): migrate huh v0.8 to charm.land/huh/v2 (GH#2471)
Migrate from github.com/charmbracelet/huh v0.8 to charm.land/huh/v2.
Updated import path, theme API (ThemeFunc wrapper), and upgraded
transitive dependency charmbracelet/x/cellbuf to resolve API conflicts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 18:56:39 -07:00
collins
81307568f5 fix(deps): migrate glamour to v2 (charm.land/glamour/v2)
Migrate from github.com/charmbracelet/glamour v1 to charm.land/glamour/v2.
Remove WithAutoStyle() (dark is now default in v2). Update import path.
Bumps go directive to 1.25.8 as required by glamour v2.

Closes renovate PR #2470.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 18:54:48 -07:00
lizzy
2961eaa83d chore(deps): bump glamour v0.10.0 to v1.0.0
Honorary major version bump with no breaking API changes.
Fix-merge of dependabot PR #2484 (merge conflict with main).

Co-Authored-By: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 15:32:04 -07:00
renovate[bot]
257c052498
fix(deps): update testcontainers-go monorepo to v0.41.0 2026-03-10 17:38:24 +00:00
wickham
1a328cb688 fix(deps): update module golang.org/x/sys to v0.42.0
Manually applied since Renovate PR #2459 became unmergeable after
PR #2454 (x/sync) was merged first.

Co-Authored-By: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 14:57:40 -07:00
renovate[bot]
7f03975dab
fix(deps): update module golang.org/x/sync to v0.20.0 2026-03-08 13:51:13 +00:00
renovate[bot]
8962de51c4
fix(deps): update opentelemetry-go monorepo to v1.42.0 2026-03-06 20:52:53 +00:00
renovate[bot]
dc0b180eff
fix(deps): update github.com/dolthub/driver digest to bbe1450 2026-03-06 01:37:20 +00:00
renovate[bot]
d3c845cf1c
fix(deps): update github.com/dolthub/driver digest to 37b6617 2026-03-05 19:52:45 +00:00
coffeegoddd☕️✨
f0f66efd44 /internal/storage/embeddeddolt: wip, add open sql and concurrency test 2026-03-04 15:58:28 -08:00
renovate[bot]
72ae98091f
fix(deps): update opentelemetry-go monorepo to v1.41.0 2026-03-02 20:55:31 +00:00
gastown/crew/mel
6d3de58944 fix: remove go-sqlite3 dependency, use Dolt testcontainers for tests
Replace the SQLite in-memory test harness in store_unit_test.go with
the Dolt testcontainer infrastructure already used by other tests.
Rewrite doctor_health.go to connect to the Dolt server via MySQL
instead of opening a (broken) SQLite file path. This removes the
last consumer of github.com/ncruces/go-sqlite3.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 12:54:28 -08:00
beads/crew/emma
1c285fd576 testutil: migrate test Dolt server from binary-spawning to testcontainers
Replace 1,046 lines of hand-rolled test server infrastructure (binary
spawning, flock coordination, PID files, zombie reaping) with Docker
testcontainers-go. Pinned to Dolt 1.43.0 due to upstream auth bug
(root@localhost vs root@%) on >= 1.44.

Preserves existing API surface (StartTestDoltServer, IsCrashed,
CrashError) so zero consumer changes needed. Adds new container-native
API (StartIsolatedDoltContainer, EnsureDoltContainerForTestMain,
RequireDoltContainer) matching gastown pattern.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-28 21:12:41 -08:00
renovate[bot]
ebf78ebfb4
fix(deps): update opentelemetry-go monorepo to v1.40.0 2026-02-24 17:04:10 +00:00
beads/crew/lizzy
5f023a101d refactor: remove dead SQLite helpers, connstring.go, and --to-sqlite flag (bd-o0u.6)
Delete 4 sqlite_open CGO variant files (doctor/ and fix/), connstring.go
(SQLite URI builder), handleToSQLiteMigration stubs, and --to-sqlite CLI
flag. ncruces/go-sqlite3 stays in go.mod for extractFromSQLite() legacy
upgrade path.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 11:01:10 -08:00
Pierre-Alexandre Entraygues
6e4ad9b283
feat(otel): opt-in OpenTelemetry instrumentation (#1940)
* feat(otel): comprehensive OpenTelemetry instrumentation

Phase 1 (telemetry foundation + SQL + CLI + AI):
- Add internal/telemetry package: Init/Shutdown, Tracer/Meter helpers,
  stdout + OTLP/gRPC exporters, noop providers when disabled
- Add internal/telemetry/storage.go: InstrumentedStorage decorator for
  SDK consumers with bd.storage.* counters and duration histograms
- Instrument DoltStore SQL layer (execContext, queryContext, queryRowContext)
  with dolt.exec / dolt.query / dolt.query_row spans
- Instrument Anthropic API calls in compact/haiku.go and find_duplicates.go
  with bd.ai.input_tokens, bd.ai.output_tokens, bd.ai.request.duration
- Add bd.command.<name> span in PersistentPreRun/PostRun with actor attribute

Phase 2 (VC ops, hooks, sync, metrics):
- Add dolt.commit / dolt.push / dolt.force_push / dolt.pull / dolt.branch /
  dolt.checkout / dolt.merge spans for Dolt version-control procedures
  (these bypass execContext so needed dedicated spans)
- Add bd.db.retry_count counter in withRetry (server mode retries)
- Add bd.db.lock_wait_ms histogram in AcquireAccessLock (flock contention)
- Add ephemeral.count / ephemeral.nuke spans for SQLite ephemeral store
- Add hook.exec spans in hooks_unix/windows runHook (background root spans)
- Add tracker.sync / tracker.pull / tracker.push / tracker.detect_conflicts
  spans with per-phase stats attributes in tracker/engine.go
- Add bd.issue.count gauge (by status) in InstrumentedStorage.GetStatistics
- Fix: call initAIMetrics via sync.Once in newHaikuClient so ai metrics
  are actually registered

Configuration:
  BD_OTEL_ENABLED=true              enable (default: off, zero overhead)
  BD_OTEL_STDOUT=true               write to stdout for dev/debug
  OTEL_EXPORTER_OTLP_ENDPOINT=...  ship to Jaeger/Grafana/Honeycomb/etc.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* refactor(otel): align with VictoriaMetrics HTTP stack

- Switch metric exporter: gRPC → HTTP (otlpmetrichttp)
- Activation: BD_OTEL_METRICS_URL presence (no more BD_OTEL_ENABLED flag)
  matches GT_OTEL_METRICS_URL convention from the local observability stack
- BD_OTEL_METRICS_URL=http://localhost:8428/opentelemetry/api/v1/push
- BD_OTEL_LOGS_URL=http://localhost:9428/insert/opentelemetry/v1/logs (reserved)
- Traces: stdout only (BD_OTEL_STDOUT=true); noop otherwise since VictoriaMetrics
  is a metrics-only backend — no trace overhead in production
- Remove: otlptracegrpc, otlpmetricgrpc
- Update docs/OBSERVABILITY.md to match the diffusiontown README style

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(otel): capture hook stdout/stderr and bd.args in spans

- hook.exec span now records stdout and stderr as span events after
  the hook process exits (including partial output on timeout)
- Output is truncated to 1024 bytes; the event carries both the text
  (output) and the original size (bytes) as attributes
- bd.command.<name> span now includes bd.args with the raw CLI
  arguments (e.g. "create 'title' -p 2")

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(otel): address review feedback — stale comment, span leak, hot-path alloc

1. Fix stale BD_OTEL_ENABLED comment in main.go (actual env vars are
   BD_OTEL_METRICS_URL and BD_OTEL_STDOUT)
2. Use defer+named returns in Merge() to prevent span leaks
3. Cache doltSpanAttrs() via sync.Once to avoid per-call allocation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: beads/crew/emma <steve.yegge@gmail.com>
2026-02-22 15:36:57 -08:00
renovate[bot]
c926c0396f
fix(deps): update module github.com/anthropics/anthropic-sdk-go to v1.26.0 (#1986)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-22 15:24:00 -08:00