Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
bc92dc6
fix: preserve runtime environment in agent preflight configs
nikhilachale Oct 9, 2026
82959ad
feat: add Open Interpreter Rust TUI integration
nikhilachale Oct 10, 2026
1bc0be8
fix: validate native restore history and exercise cancellation
nikhilachale Oct 10, 2026
a015d98
fix: verify native user records and private context metadata
nikhilachale Oct 10, 2026
9134f08
test: distinguish native title requests from session turns
nikhilachale Oct 10, 2026
c55d786
fix: observe released terminal status chrome
nikhilachale Oct 10, 2026
f62aa76
test: verify native Open Interpreter turn cancellation
nikhilachale Oct 10, 2026
bb6f632
fix: distinguish Open Interpreter settings from idle composer
nikhilachale Oct 10, 2026
b8e2973
fix: prioritize native modal dismissal chrome
nikhilachale Oct 10, 2026
c77f809
fix: observe configured Open Interpreter custom providers
nikhilachale Oct 10, 2026
ad7f41c
fix: explicitly discard read-only config close errors
nikhilachale Oct 10, 2026
8e831c0
fix: observe current styled agent terminal activity
nikhilachale Oct 10, 2026
7dcc4a8
fix: preserve native auth and styled activity boundaries
nikhilachale Oct 10, 2026
923c14f
fix: preserve full Open Interpreter standing context
Oct 10, 2026
761ef9f
docs: record fresh Open Interpreter restore and AO evidence
Oct 10, 2026
7f19eb5
fix: skip incompatible interpreter binaries
nikhilachale Oct 11, 2026
8c8e5a5
fix: align open interpreter CLI discovery
nikhilachale Oct 11, 2026
ad781ba
fix: harden open interpreter diagnostics
nikhilachale Oct 11, 2026
9ef0ef5
docs: keep open-interpreter audit evidence with its integration PR
Oct 12, 2026
0aa9bde
chore: provide source-pinned Linux harness proof artifact
Oct 12, 2026
8195a26
docs: record focused Open Interpreter prompt and cancellation evidence
Oct 12, 2026
395de6c
fix: show Open Interpreter login and enable model entry
nikhilachale Oct 14, 2026
d4fe042
fix: use supported Open Interpreter auto review flag
nikhilachale Oct 14, 2026
d401d7a
feat: discover Open Interpreter native models
nikhilachale Oct 14, 2026
5ff5743
fix: address Open Interpreter restore and review findings
nikhilachale Oct 14, 2026
1267045
fix: pin Open Interpreter install to inspected release
nikhilachale Oct 15, 2026
da8cc53
fix: reconcile Open Interpreter integration with main
nikhilachale Oct 18, 2026
938b972
fix: skip draft migration repair before chat table exists
nikhilachale Oct 18, 2026
935fcdd
fix: reserve distinct Open Interpreter migration version
nikhilachale Oct 18, 2026
ad48873
chore: reconcile Open Interpreter with current main
Oct 18, 2026
178d1c4
fix: preserve launch environment across account transitions
nikhilachale Oct 18, 2026
fc8352b
test: account for both new harness installer plans
nikhilachale Oct 18, 2026
fe12540
feat: gate Open Interpreter ACP candidate on native qualification
Oct 18, 2026
6f0ed59
fix: use lowercase ACP validation error
nikhilachale Oct 19, 2026
3a77587
fix(sqlite): move Open Interpreter migration to 0216
nikhilachale Oct 19, 2026
69354f2
Merge origin/main into Open Interpreter harness (#8208)
nikhilachale Nov 14, 2026
e4de53c
fix(storage): move Open Interpreter harness migration to a timestampe…
nikhilachale Nov 14, 2026
ea22d44
fix(open-interpreter): meet main's per-harness auth and refresh contr…
nikhilachale Nov 14, 2026
57170f7
Merge origin/main into Open Interpreter harness (#8208)
nikhilachale Nov 14, 2026
cea060a
refactor(open-interpreter): drop the unregistered ACP Chat candidate
nikhilachale Nov 14, 2026
4232d97
fix(open-interpreter): validate native effort instead of dropping it
nikhilachale Nov 14, 2026
ecf5bd5
Merge origin/main into Open Interpreter harness (#8208)
nikhilachale Nov 14, 2026
e08b15c
docs(open-interpreter): note effort validation, provider keys and ref…
nikhilachale Nov 14, 2026
4055a51
Merge origin/main into Open Interpreter harness (#8208)
nikhilachale Nov 16, 2026
f879f8b
fix(open-interpreter): sign-in plan, saved provider keys and provider…
nikhilachale Nov 16, 2026
65889eb
Merge OrchestratorInc main into Open Interpreter harness (#8208)
nikhilachale Nov 16, 2026
8000b09
fix(open-interpreter): record replies, pin OpenAI models, hide unusab…
nikhilachale Nov 16, 2026
3901391
Merge OrchestratorInc main into Open Interpreter harness (#8208)
nikhilachale Nov 16, 2026
2fc01e1
fix(open-interpreter): fingerprint the native model_catalog_json file
nikhilachale Nov 16, 2026
9778c5a
fix(open-interpreter): read custom provider keys through the auth con…
nikhilachale Nov 16, 2026
453b6d2
fix(open-interpreter): qualify models as openai only for the effectiv…
nikhilachale Nov 16, 2026
ff2d5d8
fix(open-interpreter): require the native status row for active work
nikhilachale Nov 16, 2026
6ac55e0
refactor(open-interpreter): probe doctor through PATH, not the adapter
nikhilachale Nov 16, 2026
30855c6
fix(open-interpreter): stream native history instead of capping its size
nikhilachale Nov 16, 2026
34e3035
fix(open-interpreter): fingerprint ancestor project layers and ~/ cat…
nikhilachale Nov 16, 2026
7255086
fix(open-interpreter): fingerprint the native system config layer
nikhilachale Nov 16, 2026
550af90
fix(open-interpreter): find project layers with configured root markers
nikhilachale Nov 16, 2026
961a439
Merge OrchestratorInc main into Open Interpreter harness (#8208)
nikhilachale Nov 16, 2026
b02b5f8
fix(open-interpreter): opt into styled output instead of changing the…
nikhilachale Nov 16, 2026
61f6bd5
docs(open-interpreter): remove the harness contract doc
nikhilachale Nov 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/open-interpreter-conformance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Open Interpreter conformance

on:
pull_request:
paths:
- backend/internal/adapters/agent/openinterpreter/**
- backend/internal/cli/hooks*.go
- .github/workflows/open-interpreter-conformance.yml
workflow_dispatch:

permissions:
contents: read

jobs:
released-native-tui:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: backend/go.mod
cache-dependency-path: backend/go.sum
- name: Download checksum-pinned Rust release
shell: bash
run: |
package="$RUNNER_TEMP/open-interpreter.tar.gz"
curl --fail --location --retry 3 'https://github.com/openinterpreter/openinterpreter/releases/download/rust-v0.0.56/open-interpreter-package-x86_64-unknown-linux-musl.tar.gz' --output "$package"
echo "9e859353d6e2af28381489570d3ecf02060f7c73df5a652f3ca60c196835ccac $package" | sha256sum --check
mkdir -p "$RUNNER_TEMP/open-interpreter"
tar -xzf "$package" -C "$RUNNER_TEMP/open-interpreter"
binary=$(find "$RUNNER_TEMP/open-interpreter" -type f -path '*/bin/interpreter' -print -quit)
test -n "$binary"
echo "OPEN_INTERPRETER_CONFORMANCE_BINARY=$binary" >> "$GITHUB_ENV"
- name: Exercise production argv against released native TUI
working-directory: backend
run: go test -tags=openinterpreterconformance -count=1 -timeout=4m -v ./internal/adapters/agent/openinterpreter
79 changes: 41 additions & 38 deletions backend/internal/adapters/agent/activitydispatch/dispatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
"github.com/aoagents/agent-orchestrator/backend/internal/adapters/agent/omp"
"github.com/aoagents/agent-orchestrator/backend/internal/adapters/agent/opencode"
"github.com/aoagents/agent-orchestrator/backend/internal/adapters/agent/opencodev2"
"github.com/aoagents/agent-orchestrator/backend/internal/adapters/agent/openinterpreter"
"github.com/aoagents/agent-orchestrator/backend/internal/adapters/agent/pi"
"github.com/aoagents/agent-orchestrator/backend/internal/adapters/agent/primeagent"
"github.com/aoagents/agent-orchestrator/backend/internal/adapters/agent/vibe"
Expand All @@ -47,40 +48,41 @@ type DeriveFunc func(event string, payload []byte) (domain.ActivityState, bool)
var Derivers = map[string]DeriveFunc{
// Adapters that parse hook payloads for finer-grained state keep their own
// deriver; the rest share the name-only StandardDeriveActivityState.
"claude-code": claudecode.DeriveActivityState,
"command-code": commandcode.DeriveActivityState,
"grok": claudecode.DeriveActivityState,
"muse": muse.DeriveActivityState,
"omp": omp.DeriveActivityState,
"codex": codex.DeriveActivityState,
"continue": continueagent.DeriveActivityState,
"droid": droid.DeriveActivityState,
"agy": agy.DeriveActivityState,
"aider": aider.DeriveActivityState,
"kimchi": kimchi.DeriveActivityState,
"opencode": opencode.DeriveActivityState,
"opencode-v2": opencodev2.DeriveActivityState,
"prime-agent": primeagent.DeriveActivityState,
"mimo-code": mimocode.DeriveActivityState,
"minimax-code": minimaxcode.DeriveActivityState,
"memcode": memcode.DeriveActivityState,
"amp": amp.DeriveActivityState,
"pi": pi.DeriveActivityState,
"auggie": auggie.DeriveActivityState,
"goose": activitystate.StandardDeriveActivityState,
"openhands": activitystate.StandardDeriveActivityState,
"devin": activitystate.StandardDeriveActivityState,
"cursor": cursor.DeriveActivityState,
"qwen": activitystate.StandardDeriveActivityState,
"gemini": gemini.DeriveActivityState,
"copilot": activitystate.StandardDeriveActivityState,
"kimi": activitystate.StandardDeriveActivityState,
"cline": cline.DeriveActivityState,
"kiro": kiro.DeriveActivityState,
"kilocode": activitystate.StandardDeriveActivityState,
"autohand": activitystate.StandardDeriveActivityState,
"vibe": vibe.DeriveActivityState,
"fake": fake.DeriveActivityState,
"claude-code": claudecode.DeriveActivityState,
"command-code": commandcode.DeriveActivityState,
"open-interpreter": openinterpreter.DeriveActivityState,
"grok": claudecode.DeriveActivityState,
"muse": muse.DeriveActivityState,
"omp": omp.DeriveActivityState,
"codex": codex.DeriveActivityState,
"continue": continueagent.DeriveActivityState,
"droid": droid.DeriveActivityState,
"agy": agy.DeriveActivityState,
"aider": aider.DeriveActivityState,
"kimchi": kimchi.DeriveActivityState,
"opencode": opencode.DeriveActivityState,
"opencode-v2": opencodev2.DeriveActivityState,
"prime-agent": primeagent.DeriveActivityState,
"mimo-code": mimocode.DeriveActivityState,
"minimax-code": minimaxcode.DeriveActivityState,
"memcode": memcode.DeriveActivityState,
"amp": amp.DeriveActivityState,
"pi": pi.DeriveActivityState,
"auggie": auggie.DeriveActivityState,
"goose": activitystate.StandardDeriveActivityState,
"openhands": activitystate.StandardDeriveActivityState,
"devin": activitystate.StandardDeriveActivityState,
"cursor": cursor.DeriveActivityState,
"qwen": activitystate.StandardDeriveActivityState,
"gemini": gemini.DeriveActivityState,
"copilot": activitystate.StandardDeriveActivityState,
"kimi": activitystate.StandardDeriveActivityState,
"cline": cline.DeriveActivityState,
"kiro": kiro.DeriveActivityState,
"kilocode": activitystate.StandardDeriveActivityState,
"autohand": activitystate.StandardDeriveActivityState,
"vibe": vibe.DeriveActivityState,
"fake": fake.DeriveActivityState,
}

// AgentSessionID extracts a native resumable-session identifier from an
Expand Down Expand Up @@ -118,10 +120,11 @@ const (
// Command Code exposes no permission-request hook, so hook silence cannot
// prove an idle pipeline either.
var signalCoverageOverrides = map[domain.AgentHarness]SignalCoverage{
domain.HarnessAider: SignalCoveragePartial,
domain.HarnessCommandCode: SignalCoveragePartial,
domain.HarnessContinue: SignalCoveragePartial,
domain.HarnessMemcode: SignalCoveragePartial,
domain.HarnessAider: SignalCoveragePartial,
domain.HarnessCommandCode: SignalCoveragePartial,
domain.HarnessOpenInterpreter: SignalCoveragePartial,
domain.HarnessContinue: SignalCoveragePartial,
domain.HarnessMemcode: SignalCoveragePartial,
}

// CoverageForHarness returns the activity-signal coverage for a selectable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package claudecode
import (
"strings"

"github.com/aoagents/agent-orchestrator/backend/internal/adapters/agent/terminalui"
"github.com/aoagents/agent-orchestrator/backend/internal/domain"
"github.com/aoagents/agent-orchestrator/backend/internal/ports"
)
Expand All @@ -20,8 +21,8 @@ import (
// stay authoritative while they flow, and the composer draft state must never
// promote or demote sticky states on its own.
func (p *Plugin) DetectTerminalActivity(output string) (domain.ActivityState, bool) {
if strings.Contains(strings.ToLower(output), "login expired") &&
strings.Contains(strings.ToLower(output), "run /login") {
plain := strings.ToLower(terminalui.PlainTerminalText(output))
if strings.Contains(plain, "login expired") && strings.Contains(plain, "run /login") {
return domain.ActivityWaitingInput, true
}
if p.InspectTerminalSurface(output).Work == ports.TerminalSurfaceWorkIdle {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
// claudeAbortedTurnScreen reproduces the live pane of a Claude Code session
// whose turn died on an expired OAuth login: the turn's Stop hook never fired,
// the composer holds an unsent user draft, and the CLI sits idle at the
// prompt. Captured plain (tmux capture-pane without -e), which is exactly what
// the activity observer's GetOutput provides.
// prompt. The base fixture is plain; styled cases preserve the same visible
// text while adding terminal formatting around the login prompt.
func claudeAbortedTurnScreen(draft string) string {
rule := strings.Repeat("─", 48)
return "⏺ Stopped watching Artifact: \"scm-observer.md\" (connection lost)\n" +
Expand Down Expand Up @@ -43,6 +43,11 @@ func TestDetectTerminalActivityWaitsForLoginAfterAbortedTurn(t *testing.T) {
name: "login expired with empty composer",
output: claudeAbortedTurnScreen("❯\n"),
},
{
name: "styled login prompt with staged draft",
output: strings.Replace(claudeAbortedTurnScreen("❯ continue\n"),
"Login expired · Please run /login", "Login \x1b[31mexpired\x1b[0m · Please run \x1b[1m/login\x1b[0m", 1),
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down
150 changes: 147 additions & 3 deletions backend/internal/adapters/agent/modelcatalog/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ import (

"github.com/aoagents/agent-orchestrator/backend/internal/adapters/agent/authprobe"
"github.com/aoagents/agent-orchestrator/backend/internal/adapters/agent/dockeragent"
"github.com/aoagents/agent-orchestrator/backend/internal/adapters/agent/nativeconfig"
"github.com/aoagents/agent-orchestrator/backend/internal/adapters/agent/opencodev2"
"github.com/aoagents/agent-orchestrator/backend/internal/adapters/agent/openinterpreter"
"github.com/aoagents/agent-orchestrator/backend/internal/ports"
aoprocess "github.com/aoagents/agent-orchestrator/backend/internal/process"
"github.com/aoagents/agent-orchestrator/backend/pkg/agentcreds"
Expand Down Expand Up @@ -145,8 +147,9 @@ var commandSpecs = map[string]commandSpec{
"mimo-code": {args: []string{"models"}, parser: parseMiMoModels},
// `cmd --list-models` prints `provider/model` followed by a marketing
// description, not a display name — see parseCommandCodeModels.
"command-code": {args: []string{"--list-models"}, parser: parseCommandCodeModels},
"minimax-code": {args: []string{"provider", "list", "--json"}, parser: parseMiniMaxModels, interruptOnCancel: true},
"command-code": {args: []string{"--list-models"}, parser: parseCommandCodeModels},
"minimax-code": {args: []string{"provider", "list", "--json"}, parser: parseMiniMaxModels, interruptOnCancel: true},
"open-interpreter": {args: []string{"debug", "models"}, parser: parseOpenInterpreterModels},
}

// Accepts reports whether model may launch agentID. It rejects a model only
Expand Down Expand Up @@ -251,7 +254,7 @@ func Manual(agentID string) ports.AgentModelCatalog {
func customModelEntryMode(agentID string) ports.CustomModelEntryMode {
switch agentID {
case "claude-code", "codex", "opencode", "opencode-v2", "grok", "cursor", "qwen", "gemini",
"kimi", "muse", "aider", "goose", "autohand", "fx", "unreal-agent", "codewhale", "mimo-code", "deepseek-harness", "openhands", "devin", "hermes", "stakpak":
"kimi", "muse", "aider", "goose", "autohand", "fx", "unreal-agent", "codewhale", "mimo-code", "deepseek-harness", "openhands", "devin", "hermes", "stakpak", "open-interpreter":
return ports.CustomModelEntryDirect
case "docker-agent", "minimax-code", "continue", "cline", "kilocode", "vibe", "pi", "kimchi", "prime-agent":
return ports.CustomModelEntryConfigured
Expand Down Expand Up @@ -512,6 +515,10 @@ func discoverCommandCatalog(ctx context.Context, agentID, binary, workingDir str
if err != nil {
return base, fmt.Errorf("%s model discovery: %w", agentID, err)
}
if agentID == "open-interpreter" {
models = pinOpenInterpreterOpenAIModels(models, env)
models = append(models, openInterpreterProviderModels(ctx, binary, workingDir, env)...)
}
base.Providers = reportedJSONProviders(output)
if includeLocal {
// The model command lists what it can run; the provider cache, every model.
Expand Down Expand Up @@ -937,6 +944,29 @@ func CatalogFingerprint(ctx context.Context, agentID, binary, workingDir string,
// discoveryConfigInputs returns the configuration an agent's discovery consults,
// or "" when the catalog depends on the binary alone.
func discoveryConfigInputs(ctx context.Context, agentID, workingDir string, env map[string]string) string {
if agentID == "open-interpreter" {
// The native catalog follows the selected provider and account. Include
// a version marker to invalidate older binary-only manual catalogs.
// Generated providers are listed only when their key is present, so
// key presence (never the value) is part of the fingerprint.
providers := "providers=" + openInterpreterKeyedProviders(env)
root, err := nativeconfig.Resolve(env, "INTERPRETER_HOME", ".openinterpreter")
if err != nil {
return "native-debug-models-v2:" + providers
}
// The system layer can select the provider when the user layer names
// none, and any layer can name a model_catalog_json file.
layers := []string{openInterpreterSystemConfig(), filepath.Join(root, "config.toml")}
configs := append(append([]string{}, layers...), openInterpreterProjectConfigs(workingDir, openInterpreterRootMarkers(layers))...)
// model_catalog_json replaces the native catalog, so the file it names
// is a discovery input even when no config file changes.
catalogs := openInterpreterModelCatalogFiles(configs, env)
paths := make([]string, 0, len(configs)+1+len(catalogs))
paths = append(paths, configs...)
paths = append(paths, filepath.Join(root, "auth.json"))
paths = append(paths, catalogs...)
return "native-debug-models-v2:" + providers + ":" + root + ":" + fingerprintConfigPaths(paths) + fileStatSignature(catalogs)
}
if agentID == "unreal-agent" {
provider, selected := unrealConfiguredModel(env)
return "provider=" + provider + ";model=" + selected
Expand Down Expand Up @@ -1366,6 +1396,120 @@ func looksLikeModelID(value string) bool {
}
}

// parseOpenInterpreterModels reads the effective catalog from `interpreter
// debug models`. The bundled-only variant does not reflect the logged-in
// provider. Model messages may contain large instructions, so decode only the
// picker fields from top-level models and never propagate those messages.
func parseOpenInterpreterModels(output []byte) ([]ports.AgentModelInfo, error) {
var catalog struct {
Models []struct {
Slug string `json:"slug"`
DisplayName string `json:"display_name"`
Visibility string `json:"visibility"`
DefaultReasoningLevel string `json:"default_reasoning_level"`
SupportedLevels []struct {
Effort string `json:"effort"`
} `json:"supported_reasoning_levels"`
} `json:"models"`
}
if err := json.Unmarshal(output, &catalog); err != nil {
return nil, err
}
models := make([]ports.AgentModelInfo, 0, len(catalog.Models))
for _, item := range catalog.Models {
if item.Visibility != "list" || strings.TrimSpace(item.Slug) == "" {
continue
}
model := ports.AgentModelInfo{
ID: item.Slug,
Label: item.DisplayName,
DefaultEffort: item.DefaultReasoningLevel,
}
for _, level := range item.SupportedLevels {
if level.Effort != "" {
model.Efforts = append(model.Efforts, level.Effort)
}
}
models = append(models, model)
}
return models, nil
}

// openInterpreterProviderModels lists the models of each generated provider
// whose key the session would receive. `debug models` reports only the active
// provider, so a saved DeepSeek key would otherwise offer no DeepSeek model.
// IDs carry the provider so launch can select it; a provider that fails to
// list is left out rather than failing the active provider's catalog.
func openInterpreterProviderModels(ctx context.Context, binary, workingDir string, env map[string]string) []ports.AgentModelInfo {
var models []ports.AgentModelInfo
for _, provider := range openinterpreter.GeneratedProviders {
if !provider.Usable() || !openInterpreterHasKey(env, provider.EnvKey) {
continue
}
runCtx, cancel := context.WithTimeout(ctx, commandTimeout)
output, err := modelCommand(runCtx, binary, []string{"debug", "models", "-c", "model_provider=" + strconv.Quote(provider.ID)}, workingDir, env).CombinedOutput()
cancel()
if err != nil {
continue
}
listed, err := parseOpenInterpreterModels(output)
if err != nil {
continue
}
for _, model := range listed {
label := model.Label
if label == "" {
label = model.ID
}
model.Label = label + " (" + provider.Label + ")"
model.ID = openinterpreter.ProviderModelID(provider.ID, model.ID)
model.Provider = provider.ID
models = append(models, model)
}
}
return models
}

// pinOpenInterpreterOpenAIModels gives the default OpenAI provider's models an
// explicit provider. Without it, a provider chosen later inside Open
// Interpreter (`/model`, which writes model_provider to the user config) would
// receive an AO-selected GPT model it does not serve. Models of any other
// configured provider keep following the native configuration.
func pinOpenInterpreterOpenAIModels(models []ports.AgentModelInfo, env map[string]string) []ports.AgentModelInfo {
root, err := nativeconfig.Resolve(env, "INTERPRETER_HOME", ".openinterpreter")
if err != nil {
return models
}
if provider, ok := openinterpreter.ConfiguredProvider(root); !ok || provider != openinterpreter.OpenAIProvider {
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
Comment thread
nikhilachale marked this conversation as resolved.
Resolved
return models
}
for i := range models {
models[i].ID = openinterpreter.ProviderModelID(openinterpreter.OpenAIProvider, models[i].ID)
models[i].Provider = openinterpreter.OpenAIProvider
}
return models
}

// openInterpreterHasKey reports whether the session environment carries name:
// env overrides the daemon environment, and an empty override withholds it.
func openInterpreterHasKey(env map[string]string, name string) bool {
value, set := env[name]
if !set {
value = os.Getenv(name)
}
return strings.TrimSpace(value) != ""
}

func openInterpreterKeyedProviders(env map[string]string) string {
var ids []string
for _, provider := range openinterpreter.GeneratedProviders {
if provider.Usable() && openInterpreterHasKey(env, provider.EnvKey) {
ids = append(ids, provider.ID)
}
}
return strings.Join(ids, ",")
}

func parseJSONModels(output []byte) ([]ports.AgentModelInfo, error) {
var root any
if err := json.Unmarshal(output, &root); err != nil {
Expand Down
Loading
Loading