Repository navigation
fix(headless): support no-auth Ollama contract - #874
Merged
Merged
Conversation
57 tasks done
Astro-Han
force-pushed
the
feat/ollama-registry-contract
branch
from
July 13, 2026 14:35
d924b56 to
495b5e8
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
@lobehub/[email protected]at commit32f4083f7a20b67ecdc7b29c0af031ada5a29c52, lock its complete path SHA-256, and inventory it in the shared packaged MIT notice.Why
Issue #860 Phase 5 requires Ollama to satisfy the complete registry contract. The existing Desktop, CLI, and runtime paths already used the registry-owned
ollamaID,/api/tagsdiscovery, snapshot fallback, and exact model IDs, but the Harbor host runtime was gated on an API key file. That prevented a registry-declared no-auth provider from using the host-side runtime needed to reach a local Ollama daemon.The existing Ollama mark was byte-identical to the Lobe Icons asset, but its source, complete content hash, and distributed license notice were not locked by governance evidence.
Refs #860
Scope
This PR covers only the Ollama Phase 5 contract and the minimal shared no-auth Harbor seam demonstrated by tests. It does not implement Phase 7, change another provider contract, add an OpenCode no-auth proxy, create a parallel provider-detail seam, create a parallel third-party notice mechanism, or update Issue #860 status.
Verification
npm run typecheck— passed for all workspaces.npm test— all workspace package suites passed.npm --workspace @maka/runtime test— passed in the final package-only run.npm --workspace @maka/headless test— 843 passed, 1 fixture skipped in the final package-only run.npm --workspace @maka/desktop run build:renderer— passed; the shared third-party notice checker confirmed the packaged notice is byte-identical.npm --workspace @maka/desktop run e2e -- e2e/first-run.spec.ts e2e/providers.spec.ts— 5/5 passed using one Playwright worker.npm run check:stale— passed (dist is fresh).git diff --check origin/main...HEAD— passed.ProviderLogoseam.Impact
Existing persisted provider IDs, registry ownership, model snapshot fallback, Desktop/CLI flows, keyed-provider behavior, and rendered Ollama appearance are unchanged. Harbor Maka runs can now use registry-declared no-auth providers without a credential file, while provider endpoints and credential fields remain outside the task container config. The packaged shared Lobe Icons MIT notice now inventories the Ollama asset. No migration or release-note change is required.
Reviewer notes
Please focus on the adapter ownership boundary: registry
authKindenables no-auth host-cell routing only for the Maka adapter, while OpenCode keeps its pre-existing direct path. The runtime conformance fixture intentionally useshf.co/bartowski/Qwen2.5-Coder-7B-Instruct-GGUF:Q4_K_Mto prove byte-for-byte model ID preservation through discovery and both tool-call turns.The Ollama asset provenance is Lobe Icons repository commit
32f4083f7a20b67ecdc7b29c0af031ada5a29c52, filepackages/static-svg/icons/ollama.svg, MIT license. Its complete path SHA-256 isfe847dff4bb6ae25ebec9a7def819ec2583023552b2e88a572c481aad2d32433. This branch only extends the notice inventory and consumes the shared notice/build-check andProviderLogoseams already onmain.Ready for review
Verificationexplains why it is not applicable