Skip to content
Merged
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
23 changes: 2 additions & 21 deletions extension/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,11 @@ import (
"net/http"

"github.com/xraph/forge"
"github.com/xraph/forge/extensions/dashboard"
"github.com/xraph/forge/extensions/dashboard/contributor"
"github.com/xraph/grove"
"github.com/xraph/vessel"

"github.com/xraph/weave/api"
weavedash "github.com/xraph/weave/dashboard"
"github.com/xraph/weave/engine"
"github.com/xraph/weave/plugins"
"github.com/xraph/weave/store"
mongostore "github.com/xraph/weave/store/mongo"
pgstore "github.com/xraph/weave/store/postgres"
Expand All @@ -39,11 +35,8 @@ const ExtensionDescription = "Composable RAG pipeline engine for document ingest
// ExtensionVersion is the semantic version.
const ExtensionVersion = "0.1.0"

// Ensure Extension implements forge.Extension and dashboard.DashboardAware at compile time.
var (
_ forge.Extension = (*Extension)(nil)
_ dashboard.DashboardAware = (*Extension)(nil)
)
// Ensure Extension implements forge.Extension at compile time.
var _ forge.Extension = (*Extension)(nil)

// Extension adapts Weave as a Forge extension.
type Extension struct {
Expand Down Expand Up @@ -199,18 +192,6 @@ func (e *Extension) RegisterRoutes(router forge.Router) {
}
}

// DashboardContributor implements [dashboard.DashboardAware].
// It returns a LocalContributor that provides the Weave dashboard pages,
// widgets, and settings panel.
func (e *Extension) DashboardContributor() contributor.LocalContributor {
var exts []plugins.Extension
if e.eng != nil && e.eng.Extensions() != nil {
exts = e.eng.Extensions().Extensions()
}
manifest := weavedash.NewManifest(exts)
return weavedash.New(manifest, e.eng, exts)
}

// --- Config Loading (mirrors grove extension pattern) ---

// loadConfiguration loads config from YAML files or programmatic sources.
Expand Down
Loading