Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion adapters/bifrost/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
package bifrost

import (
bschemas "github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/schema"
"github.com/rossoctl/context-guru/session"
"github.com/rossoctl/context-guru/store"
bschemas "github.com/maximhq/bifrost/core/schemas"
)

// SessionContextKey is the BifrostContext value key the transport sets from the
Expand Down
2 changes: 1 addition & 1 deletion adapters/bifrost/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"testing"
"time"

bschemas "github.com/maximhq/bifrost/core/schemas"
_ "github.com/rossoctl/context-guru/components/all"
"github.com/rossoctl/context-guru/config"
"github.com/rossoctl/context-guru/schema"
"github.com/rossoctl/context-guru/store"
bschemas "github.com/maximhq/bifrost/core/schemas"
)

func toolMsg(text string) bschemas.ChatMessage {
Expand Down
2 changes: 1 addition & 1 deletion apply/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ import (
"strconv"
"strings"

bschemas "github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/schema"
"github.com/rossoctl/context-guru/session"
"github.com/rossoctl/context-guru/store"
bschemas "github.com/maximhq/bifrost/core/schemas"
"github.com/tidwall/gjson"
"github.com/tidwall/sjson"
)
Expand Down
2 changes: 1 addition & 1 deletion apply/apply_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"strings"
"testing"

bschemas "github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/apply"
"github.com/rossoctl/context-guru/components"
_ "github.com/rossoctl/context-guru/components/all"
"github.com/rossoctl/context-guru/config"
"github.com/rossoctl/context-guru/store"
bschemas "github.com/maximhq/bifrost/core/schemas"
"github.com/tidwall/gjson"
)

Expand Down
2 changes: 2 additions & 0 deletions cmd/context-guru-proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func main() {
preset = flag.String("preset", envOr("PRESET", "balanced"), "preset to use when --config is absent")
openai = flag.String("openai-upstream", envOr("OPENAI_UPSTREAM", "https://api.openai.com"), "OpenAI upstream base URL")
anthropic = flag.String("anthropic-upstream", envOr("ANTHROPIC_UPSTREAM", "https://api.anthropic.com"), "Anthropic upstream base URL")
bob = flag.String("bob-upstream", envOr("BOB_UPSTREAM", ""), "Bob (BobShell) backend base URL; enables the Bob gateway routes when set (e.g. https://api.us-east.bob.ibm.com)")
storeFlag = flag.String("store", envOr("STORE", ""), "override state store: true|false (default: config store.enabled, else on)")
)
flag.Parse()
Expand All @@ -55,6 +56,7 @@ func main() {
h := proxy.New(pipe, cfg.NewStore(), agg, proxy.Options{
OpenAIUpstream: *openai,
AnthropicUpstream: *anthropic,
BobUpstream: *bob, // enables the Bob gateway routes when set (BOB_UPSTREAM)
// Gateway mode: real provider keys live here (eval-containers passes them
// via env); the agent holds only a placeholder. Empty => pass client auth.
OpenAIKey: os.Getenv("OPENAI_API_KEY"),
Expand Down
2 changes: 1 addition & 1 deletion components/all/all_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import (
"strings"
"testing"

"github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
_ "github.com/rossoctl/context-guru/components/all"
"github.com/rossoctl/context-guru/config"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/schema"
"github.com/rossoctl/context-guru/store"
"github.com/maximhq/bifrost/core/schemas"
)

func toolMsg(text string) schemas.ChatMessage {
Expand Down
2 changes: 1 addition & 1 deletion components/all/llm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"strings"
"testing"

bschemas "github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/schema"
"github.com/rossoctl/context-guru/store"
bschemas "github.com/maximhq/bifrost/core/schemas"
)

// stubModel is a fixed LLM used to drive the model-based components in tests.
Expand Down
2 changes: 1 addition & 1 deletion components/all/markermode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"strings"
"testing"

"github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/apply"
"github.com/rossoctl/context-guru/config"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/schema"
"github.com/rossoctl/context-guru/store"
"github.com/maximhq/bifrost/core/schemas"
"github.com/tidwall/gjson"
)

Expand Down
2 changes: 1 addition & 1 deletion components/all/more_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import (
"strings"
"testing"

"github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
_ "github.com/rossoctl/context-guru/components/all"
"github.com/rossoctl/context-guru/config"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/schema"
"github.com/rossoctl/context-guru/store"
"github.com/maximhq/bifrost/core/schemas"
)

func run(t *testing.T, yaml string, req *schemas.BifrostChatRequest) (*components.RunReport, store.Store) {
Expand Down
2 changes: 1 addition & 1 deletion components/all/p4_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"strings"
"testing"

bschemas "github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/schema"
bschemas "github.com/maximhq/bifrost/core/schemas"
)

func userMsg(text string) bschemas.ChatMessage {
Expand Down
2 changes: 1 addition & 1 deletion components/all/reuse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"sync"
"testing"

bschemas "github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/schema"
"github.com/rossoctl/context-guru/store"
bschemas "github.com/maximhq/bifrost/core/schemas"
)

// countingModel is a stubModel that records how many times it was called, so a
Expand Down
2 changes: 1 addition & 1 deletion components/all/skeleton_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"strings"
"testing"

"github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/schema"
"github.com/maximhq/bifrost/core/schemas"
)

func TestSkeletonElidesBodies(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion components/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"context"
"time"

"github.com/rossoctl/context-guru/store"
"github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/store"
)

// Component is the common surface: identity + a per-request enable check.
Expand Down
2 changes: 1 addition & 1 deletion components/offload/cmdfilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"encoding/hex"
"strings"

"github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/components/dsl"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/schema"
"github.com/maximhq/bifrost/core/schemas"
"gopkg.in/yaml.v3"
)

Expand Down
2 changes: 1 addition & 1 deletion components/offload/collapse.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"strings"

"github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/schema"
"github.com/maximhq/bifrost/core/schemas"
"gopkg.in/yaml.v3"
)

Expand Down
2 changes: 1 addition & 1 deletion components/offload/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package offload
import (
"strings"

"github.com/rossoctl/context-guru/schema"
bschemas "github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/schema"
)

// errWords mark a tool output (or an item) as carrying a failure — such items
Expand Down
2 changes: 1 addition & 1 deletion components/offload/dedup.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package offload

import (
"github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/schema"
"github.com/maximhq/bifrost/core/schemas"
"gopkg.in/yaml.v3"
)

Expand Down
2 changes: 1 addition & 1 deletion components/offload/extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"strings"
"time"

bschemas "github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/internal/extract"
"github.com/rossoctl/context-guru/schema"
bschemas "github.com/maximhq/bifrost/core/schemas"
"gopkg.in/yaml.v3"
)

Expand Down
2 changes: 1 addition & 1 deletion components/offload/failed_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package offload
import (
"regexp"

"github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/schema"
"github.com/maximhq/bifrost/core/schemas"
"gopkg.in/yaml.v3"
)

Expand Down
2 changes: 1 addition & 1 deletion components/offload/mask.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package offload

import (
bschemas "github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/schema"
bschemas "github.com/maximhq/bifrost/core/schemas"
"gopkg.in/yaml.v3"
)

Expand Down
2 changes: 1 addition & 1 deletion components/offload/phi_evict.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package offload
import (
"sort"

bschemas "github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/schema"
bschemas "github.com/maximhq/bifrost/core/schemas"
"gopkg.in/yaml.v3"
)

Expand Down
2 changes: 1 addition & 1 deletion components/offload/skeleton.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import (
"regexp"
"strings"

"github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/internal/treesitter"
"github.com/rossoctl/context-guru/schema"
"github.com/maximhq/bifrost/core/schemas"
sitter "github.com/tree-sitter/go-tree-sitter"
"gopkg.in/yaml.v3"
)
Expand Down
2 changes: 1 addition & 1 deletion components/offload/smartcrush.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"fmt"
"strings"

bschemas "github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/schema"
bschemas "github.com/maximhq/bifrost/core/schemas"
"gopkg.in/yaml.v3"
)

Expand Down
2 changes: 1 addition & 1 deletion components/offload/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"encoding/hex"
"encoding/json"

"github.com/rossoctl/context-guru/components"
bschemas "github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
)

// State reuse over the generic Store (key→bytes), session-scoped by key prefix
Expand Down
2 changes: 1 addition & 1 deletion components/offload/summarize.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"strings"
"time"

bschemas "github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/schema"
bschemas "github.com/maximhq/bifrost/core/schemas"
"gopkg.in/yaml.v3"
)

Expand Down
2 changes: 1 addition & 1 deletion components/offload/zz_live_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"strings"
"testing"

bschemas "github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/internal/cheapmodel"
"github.com/rossoctl/context-guru/schema"
bschemas "github.com/maximhq/bifrost/core/schemas"
)

// Live example of the summarize component: real model compresses a realistic
Expand Down
2 changes: 1 addition & 1 deletion components/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package components
import (
"fmt"

"github.com/rossoctl/context-guru/schema"
"github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/schema"
)

// Pipeline runs an ordered list of components over a request. Order is set by
Expand Down
2 changes: 1 addition & 1 deletion components/pipeline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"strings"
"testing"

"github.com/rossoctl/context-guru/store"
"github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/store"
)

// --- fakes ---
Expand Down
2 changes: 1 addition & 1 deletion components/reformat/cacheinject.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
package reformat

import (
"github.com/rossoctl/context-guru/components"
"github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
)

func init() { components.Register("cacheinject", newCacheinject) }
Expand Down
2 changes: 1 addition & 1 deletion components/reformat/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"encoding/json"
"strings"

"github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/schema"
"github.com/maximhq/bifrost/core/schemas"
"gopkg.in/yaml.v3"
)

Expand Down
2 changes: 1 addition & 1 deletion components/reformat/toon.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"strconv"
"strings"

"github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/schema"
"github.com/maximhq/bifrost/core/schemas"
"gopkg.in/yaml.v3"
)

Expand Down
2 changes: 1 addition & 1 deletion components/trigger.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package components

import (
"github.com/rossoctl/context-guru/schema"
"github.com/maximhq/bifrost/core/schemas"
"github.com/rossoctl/context-guru/schema"
)

// Trigger is the shared, configurable gate that decides whether an expensive
Expand Down
Loading
Loading