feat: bring-your-own inference providers and CLI agent bridging - #28
Merged
Conversation
- OpenAI-compatible targets (OpenRouter, OpenAI, LM Studio, custom): config stored via sensitive-classified StorageGateway entry; key never returned to renderer; chat-completions call orchestrated in main - CLI agents (claude/codex/opencode) detected via PATH probe with --version; non-interactive prompt execution with per-agent arg mapping and stderr-tail failure surfacing - aiProviderConfigGet/Save, aiCliDetect, aiRemoteGenerate validated channels; preload + DesktopAiApi surface extensions - AI Lab Providers section: endpoint form, CLI picker, remote run output - 6 new provider module tests covering request shape, HTTP errors, payload validation, arg mapping
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
Completes the AI substrate with two remote inference paths alongside local llama.cpp:
Security notes: egress happens exclusively in main inside the validated-envelope boundary; provider config stored \classification: sensitive\ (encrypted at rest via safeStorage when available); config-save logging records baseUrl/model/key-presence only. Threat model refresh deferred until agent-loop features land; no new trust boundary introduced by this increment.
Validation
Security Checklist