mirror of
https://github.com/syntrex-lab/gomcp.git
synced 2026-05-05 01:02:37 +02:00
chore: migrate module path to syntrex-lab and prepare open source release
This commit is contained in:
parent
a54c892736
commit
5cbb3d89d3
107 changed files with 465 additions and 594 deletions
|
|
@ -4,7 +4,7 @@ import (
|
|||
"log/slog"
|
||||
"time"
|
||||
|
||||
domsoc "github.com/syntrex/gomcp/internal/domain/soc"
|
||||
domsoc "github.com/syntrex-lab/gomcp/internal/domain/soc"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
)
|
||||
|
||||
|
|
|
|||
2
internal/infrastructure/cache/bolt_cache.go
vendored
2
internal/infrastructure/cache/bolt_cache.go
vendored
|
|
@ -8,7 +8,7 @@ import (
|
|||
"path/filepath"
|
||||
"sync"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/memory"
|
||||
bolt "go.etcd.io/bbolt"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/memory"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/vectorstore"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/vectorstore"
|
||||
bolt "go.etcd.io/bbolt"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/vectorstore"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/vectorstore"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
bolt "go.etcd.io/bbolt"
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/alert"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/alert"
|
||||
)
|
||||
|
||||
// ---------- State Machine (v3.2) ----------
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import (
|
|||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/alert"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/alert"
|
||||
)
|
||||
|
||||
func testConfig(dir string) LeashConfig {
|
||||
|
|
|
|||
|
|
@ -15,9 +15,9 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/alert"
|
||||
"github.com/syntrex/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex/gomcp/internal/domain/peer"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/alert"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/peer"
|
||||
)
|
||||
|
||||
// pipePath returns the platform-specific IPC socket path.
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@ import (
|
|||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/alert"
|
||||
"github.com/syntrex/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex/gomcp/internal/domain/peer"
|
||||
"github.com/syntrex/gomcp/internal/infrastructure/ipc"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/alert"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/peer"
|
||||
"github.com/syntrex-lab/gomcp/internal/infrastructure/ipc"
|
||||
)
|
||||
|
||||
// mockStore is a minimal in-memory FactStore for testing.
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import (
|
|||
|
||||
ort "github.com/yalue/onnxruntime_go"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/vectorstore"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/vectorstore"
|
||||
)
|
||||
|
||||
// Embedder implements vectorstore.Embedder using ONNX Runtime.
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ package onnx
|
|||
import (
|
||||
"log"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/vectorstore"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/vectorstore"
|
||||
)
|
||||
|
||||
// NewEmbedderWithFallback attempts to create an ONNX embedder.
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ package onnx
|
|||
import (
|
||||
"log"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/vectorstore"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/vectorstore"
|
||||
)
|
||||
|
||||
// NewEmbedderWithFallback returns FTS5 fallback embedder when built without ONNX.
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/soc"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/soc"
|
||||
)
|
||||
|
||||
// SOCRepo provides PostgreSQL persistence for SOC events, incidents, and sensors.
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/vectorstore"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/vectorstore"
|
||||
)
|
||||
|
||||
// PyBridgeEmbedder wraps the Python bridge as an Embedder.
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ func (g *Generator) GenerateSPDX() (*SPDXDocument, error) {
|
|||
Name: g.productName,
|
||||
Version: g.version,
|
||||
License: "Proprietary",
|
||||
DownloadURL: "https://github.com/syntrex/gomcp",
|
||||
DownloadURL: "https://github.com/syntrex-lab/gomcp",
|
||||
}}, g.packages...),
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/causal"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/causal"
|
||||
)
|
||||
|
||||
// CausalRepo implements causal.CausalStore using SQLite.
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/causal"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/causal"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import (
|
|||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/crystal"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/crystal"
|
||||
)
|
||||
|
||||
// CrystalRepo implements crystal.CrystalStore using SQLite.
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/crystal"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/crystal"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/memory"
|
||||
)
|
||||
|
||||
const timeFormat = time.RFC3339Nano
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/memory"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/peer"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/peer"
|
||||
)
|
||||
|
||||
// PeerRepo implements peer.PeerStore using SQLite.
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/soc"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/soc"
|
||||
)
|
||||
|
||||
// SOCRepo provides SQLite persistence for SOC events, incidents, and sensors.
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/soc"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/soc"
|
||||
)
|
||||
|
||||
func setupSOCRepo(t *testing.T) *SOCRepo {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/session"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/session"
|
||||
)
|
||||
|
||||
// StateRepo implements session.StateStore using SQLite.
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/session"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/session"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/synapse"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/synapse"
|
||||
)
|
||||
|
||||
// SynapseRepo implements synapse.SynapseStore using SQLite.
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ import (
|
|||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex/gomcp/internal/infrastructure/sqlite"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex-lab/gomcp/internal/infrastructure/sqlite"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue