Conversation
Moves the Termite server (pkg/termite) and its Go SDK (pkg/termite-client)
out of the termite submodule and into this monorepo as independent Go
modules, matching the pattern established by pkg/termite-{operator,proxy}
in #51. The termite submodule is deleted.
Breaking: the Termite HTTP API moves from /api/* to /ml/v1/* so it can be
hosted alongside antfly's own API on the metadata listener. /openai/v1/*,
/anthropic/v1/*, /healthz and /readyz keep their paths.
Swarm mode now mounts the Termite handler in-process under /ml/v1/ on the
metadata listener (no separate :11433 process) when --termite-api-url is
unset. Setting --termite-api-url falls back to the old reverse-proxy
behavior for out-of-process deployments.
Ports termite-go.yml and termite-container.yml workflows into .github/
with path filters, tag patterns, and contexts rewritten for the monorepo
layout. Adds Dockerfile.termite and Dockerfile.termite-omni at repo root.
Release tag prefix pkg/termite/v* triggers the termite container build.
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
pkg/termite) and its Go SDK (pkg/termite-client) out of thetermite/submodule into this monorepo as independent Go modules, and deletes the submodule. Matches the pattern set bypkg/termite-{operator,proxy}in Consolidate proxy and operator modules into the monorepo #51./api/*to/ml/v1/*so it can be hosted on antfly's own listener./openai/v1/*,/anthropic/v1/*,/healthz,/readyzkeep their paths./ml/v1/on the metadata listener (no separate:11433process) when--termite-api-urlis unset; setting it falls back to the old reverse-proxy for out-of-process deployments.termite-go.ymlandtermite-container.ymlworkflows into.github/and addsDockerfile.termite+Dockerfile.termite-omniat repo root. Release tag prefixpkg/termite/v*triggers the termite container build.Test plan
go build ./...in repo root,pkg/termite,pkg/termite-client, ande2e/go test ./...inpkg/termite(unit tests pass)antfly swarm→POST /ml/v1/embedreturns 200 with embeddings,GET /ml/v1/modelsreturns 200, no listener on:11433/api/embedno longer served as an API (falls through to Antfarm SPA)make e2e E2E_TEST=TestQuickstart— exercises the full quickstart path through the renamed URLstermite-go.ymltriggers onpkg/termite/**/pkg/termite-client/**termite-container.ymltriggers onpkg/termite/v*tags