Skip to content

chore: bump examples + bench to v0.2.0 and migrate example to voice module#40

Merged
lIang70 merged 2 commits into
mainfrom
chore/bump-example-and-bench-v0.2.0
Apr 23, 2026
Merged

chore: bump examples + bench to v0.2.0 and migrate example to voice module#40
lIang70 merged 2 commits into
mainfrom
chore/bump-example-and-bench-v0.2.0

Conversation

@lIang70

@lIang70 lIang70 commented Apr 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

Two follow-ups to the v0.2.0 release that didn't fit in the
extraction PR (#37) or the dep-bump PRs (#38, #39):

  1. examples/voice-pipeline — migrated to the new voice module
    layout. PR refactor: extract speech stack into standalone voice module [skip-tag] #37 had to defer this because no published voice
    artifact existed yet. With voice/v0.1.0 on the proxy, the example
    now consumes:

    • voice v0.1.0 (was: STT/TTS providers from sdkx/{stt,tts}/*,
      pipeline + types from sdk/speech/*)
    • sdk v0.2.0 (was v0.1.12)
    • sdkx v0.2.0 (was v0.1.14)
  2. bench — drop the replace ../{sdk,sdkx} block and pin to
    the published v0.2.0 artifacts. The replace was masking a
    long-standing question — can bench actually build from published
    modules?
    — and was causing make vet to fail on main ever since
    the voice extraction shifted sdk's indirect dependency closure
    (bench is GOWORK=off, so its go.mod/go.sum lockfile must stay in
    sync with whatever ../sdk/go.mod declares). bench imports only
    packages that exist in sdk@v0.2.0 (sdk/recall, sdk/retrieval,
    sdk/history) and sdkx@v0.2.0 (sdkx/llm/{azure,qwen},
    sdkx/embedding/{azure,qwen}), so the pin works cleanly without
    the replace.

    This is also a drive-by fix for the silent CI breakage: bench is
    not in ci.yml's paths-filter, so the broken vet only surfaced
    when running make ci locally.

Commits

# Commit What
1 chore(examples/voice-pipeline): migrate to voice module + bump deps Imports → voice/*, go.mod bump, README pointer fix
2 chore(bench): drop replace and pin sdk + sdkx to v0.2.0 Remove replace block, pin sdkx v0.0.0 → v0.2.0, restore green make vet

Test plan

  • make ci (vet + test on sdk + sdkx + voice + bench + examples/voice-pipeline) green
  • cd examples/voice-pipeline && GOWORK=off go vet ./... green
  • cd examples/voice-pipeline && GOWORK=off go build ./... green
  • cd bench && GOWORK=off go test ./... -count=1 green
  • CI green

Auto-tag

This PR touches only examples/ and bench/, neither of which is in
auto-tag.yml's path filter, so no tag bump will fire on merge.

Follow-up (optional)

Add bench/** to ci.yml's paths-filter and lint job so future sdk
churn that breaks bench's tidy state is caught in CI rather than only
during local make ci runs.

Made with Cursor

lIang70 added 2 commits April 24, 2026 01:33
With voice/v0.1.0, sdk/v0.2.0 and sdkx/v0.2.0 all published, the
example can finally consume the new module layout from the proxy:

  github.com/GizClaw/flowcraft/sdk/speech/*       -> voice/*
  github.com/GizClaw/flowcraft/sdkx/{stt,tts}/*   -> voice/{stt,tts}/*

go.mod changes:
  + require voice v0.1.0
  ~ require sdk  v0.1.12 -> v0.2.0
  ~ require sdkx v0.1.14 -> v0.2.0

This is the migration that PR #37 (the voice extraction) had to defer
because no published voice artifact existed yet.

Made-with: Cursor
bench used `replace github.com/GizClaw/flowcraft/{sdk,sdkx} => ../{sdk,sdkx}`
so it always built against in-tree source, regardless of the require
version. With sdk/v0.2.0 + sdkx/v0.2.0 published — both of which
contain every package bench imports (sdk/recall, sdk/retrieval,
sdk/history, sdkx/{llm,embedding}/{azure,qwen}) — the replace is
dead weight and actively misleading: it hides whether bench can
build from published artifacts (e.g. when CI checks out a fork).

Pin to v0.2.0 and remove the replace block. bench is still GOWORK=off
in the Makefile so the pin is honoured during local make ci runs.

Drive-by fix for the `go: updates to go.mod needed; to update it: go
mod tidy` error that has been failing `make vet` on main since the
voice extraction landed (PR #37) — bench is not in the CI path
filter so the breakage went unnoticed in CI.

Made-with: Cursor
@lIang70
lIang70 merged commit b8423d7 into main Apr 23, 2026
6 checks passed
@lIang70
lIang70 deleted the chore/bump-example-and-bench-v0.2.0 branch April 23, 2026 17:35
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