Add governed Ollama local chat client - #30
Merged
nagasatish007 merged 10 commits intoJul 9, 2026
Merged
Conversation
6 tasks
CleanDev-Fix
force-pushed
the
codex/tealtiger-319-ollama-governance
branch
5 times, most recently
from
July 9, 2026 02:06
2d2718b to
2ca0f13
Compare
Contributor
There was a problem hiding this comment.
@CleanDev-Fix Merge conflicts from the v1.4.0 release that landed on main today. Can you rebase onto latest main and force-push? I'll squash-merge once it's green.
CleanDev-Fix
force-pushed
the
codex/tealtiger-319-ollama-governance
branch
from
July 9, 2026 14:28
2ca0f13 to
dd0d9e0
Compare
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
TealOllama, a governed client for Ollama's OpenAI-compatible local endpointtealtiger/providers/ollamaentrypointhttp://localhost:11434/v1Changes
TealOllamaextendsTealBaseClientso local chat calls go through the existing TealEngine, guard, circuit, monitor, and audit pipelinehttp://localhost:11434/v1and supports optional API keys for secured local proxiestool: "ollama.chat"andaction: "ollama.chat.create"so policies can govern local Ollama separately from cloud chat providers./providers/ollamaTealEngineconstructor syntax issue that blocked TypeScript/Jest onmainpackage-lock.jsonrequired by the existing CI workflow and updates dev tooling ranges sonpm audit --audit-level=moderatepassesTesting
npm test -- --runTestsByPath src/client/__tests__/ollama.test.tsnpm run build:tscnpm run build:rollupnpm audit --audit-level=moderatenpx eslint src/client/ollama.ts src/providers/ollama.tsKnown existing issue:
npm run lintnow starts correctly but reports broad pre-existing lint debt across the SDK. The new Ollama runtime files lint cleanly.Related: agentguard-ai/tealtiger#319