mirror of
https://github.com/syntrex-lab/gomcp.git
synced 2026-05-05 09:12:36 +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 (
|
|||
"encoding/json"
|
||||
"os"
|
||||
|
||||
ctxdomain "github.com/syntrex/gomcp/internal/domain/context"
|
||||
ctxdomain "github.com/syntrex-lab/gomcp/internal/domain/context"
|
||||
)
|
||||
|
||||
// LoadConfig loads engine configuration from a JSON file.
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
ctxdomain "github.com/syntrex/gomcp/internal/domain/context"
|
||||
ctxdomain "github.com/syntrex-lab/gomcp/internal/domain/context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import (
|
|||
"github.com/mark3labs/mcp-go/mcp"
|
||||
"github.com/mark3labs/mcp-go/server"
|
||||
|
||||
ctxdomain "github.com/syntrex/gomcp/internal/domain/context"
|
||||
ctxdomain "github.com/syntrex-lab/gomcp/internal/domain/context"
|
||||
)
|
||||
|
||||
// InteractionLogger records tool calls for crash-safe memory.
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/mark3labs/mcp-go/mcp"
|
||||
"github.com/syntrex/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/memory"
|
||||
|
||||
ctxdomain "github.com/syntrex/gomcp/internal/domain/context"
|
||||
ctxdomain "github.com/syntrex-lab/gomcp/internal/domain/context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"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"
|
||||
)
|
||||
|
||||
// InteractionProcessor processes unprocessed interaction log entries
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"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"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ import (
|
|||
"context"
|
||||
"sync"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/memory"
|
||||
|
||||
ctxdomain "github.com/syntrex/gomcp/internal/domain/context"
|
||||
ctxdomain "github.com/syntrex-lab/gomcp/internal/domain/context"
|
||||
)
|
||||
|
||||
// StoreFactProvider adapts FactStore + HotCache to the FactProvider interface,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"sync"
|
||||
"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"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -18,11 +18,11 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/alert"
|
||||
"github.com/syntrex/gomcp/internal/domain/entropy"
|
||||
"github.com/syntrex/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex/gomcp/internal/domain/peer"
|
||||
"github.com/syntrex/gomcp/internal/domain/synapse"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/alert"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/entropy"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/peer"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/synapse"
|
||||
)
|
||||
|
||||
// Config holds orchestrator configuration.
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ import (
|
|||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex/gomcp/internal/domain/peer"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/peer"
|
||||
)
|
||||
|
||||
func newTestOrchestrator(t *testing.T, cfg Config) (*Orchestrator, *inMemoryStore) {
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex/gomcp/internal/domain/session"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/session"
|
||||
)
|
||||
|
||||
// Provider serves MCP resources (rlm://state, rlm://facts, rlm://stats).
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ import (
|
|||
"encoding/json"
|
||||
"testing"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex/gomcp/internal/domain/session"
|
||||
"github.com/syntrex/gomcp/internal/infrastructure/sqlite"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/session"
|
||||
"github.com/syntrex-lab/gomcp/internal/infrastructure/sqlite"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package shadow_ai
|
|||
import (
|
||||
"time"
|
||||
|
||||
domsoc "github.com/syntrex/gomcp/internal/domain/soc"
|
||||
domsoc "github.com/syntrex-lab/gomcp/internal/domain/soc"
|
||||
)
|
||||
|
||||
// ShadowAICorrelationRules returns SOC correlation rules specific to Shadow AI
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import (
|
|||
"net/http"
|
||||
"time"
|
||||
|
||||
domsoc "github.com/syntrex/gomcp/internal/domain/soc"
|
||||
domsoc "github.com/syntrex-lab/gomcp/internal/domain/soc"
|
||||
)
|
||||
|
||||
// BusClient sends security events to the SOC Event Bus via HTTP POST.
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
domsoc "github.com/syntrex/gomcp/internal/domain/soc"
|
||||
domsoc "github.com/syntrex-lab/gomcp/internal/domain/soc"
|
||||
)
|
||||
|
||||
// Parser converts a raw log line into a SOCEvent.
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"sort"
|
||||
"time"
|
||||
|
||||
domsoc "github.com/syntrex/gomcp/internal/domain/soc"
|
||||
domsoc "github.com/syntrex-lab/gomcp/internal/domain/soc"
|
||||
)
|
||||
|
||||
// ─── Analytics Types ──────────────────────────────────────
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
domsoc "github.com/syntrex/gomcp/internal/domain/soc"
|
||||
domsoc "github.com/syntrex-lab/gomcp/internal/domain/soc"
|
||||
)
|
||||
|
||||
func TestGenerateReport_EmptyEvents(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ import (
|
|||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
domsoc "github.com/syntrex/gomcp/internal/domain/soc"
|
||||
"github.com/syntrex/gomcp/internal/infrastructure/audit"
|
||||
"github.com/syntrex/gomcp/internal/infrastructure/sqlite"
|
||||
domsoc "github.com/syntrex-lab/gomcp/internal/domain/soc"
|
||||
"github.com/syntrex-lab/gomcp/internal/infrastructure/audit"
|
||||
"github.com/syntrex-lab/gomcp/internal/infrastructure/sqlite"
|
||||
)
|
||||
|
||||
// newTestServiceWithLogger creates a SOC service backed by in-memory SQLite WITH a decision logger.
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ import (
|
|||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
domsoc "github.com/syntrex/gomcp/internal/domain/soc"
|
||||
"github.com/syntrex/gomcp/internal/infrastructure/audit"
|
||||
"github.com/syntrex/gomcp/internal/infrastructure/sqlite"
|
||||
domsoc "github.com/syntrex-lab/gomcp/internal/domain/soc"
|
||||
"github.com/syntrex-lab/gomcp/internal/infrastructure/audit"
|
||||
"github.com/syntrex-lab/gomcp/internal/infrastructure/sqlite"
|
||||
)
|
||||
|
||||
// newBenchService creates a minimal SOC service for benchmarking.
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
domsoc "github.com/syntrex/gomcp/internal/domain/soc"
|
||||
"github.com/syntrex/gomcp/internal/infrastructure/audit"
|
||||
"github.com/syntrex/gomcp/internal/infrastructure/sqlite"
|
||||
domsoc "github.com/syntrex-lab/gomcp/internal/domain/soc"
|
||||
"github.com/syntrex-lab/gomcp/internal/infrastructure/audit"
|
||||
"github.com/syntrex-lab/gomcp/internal/infrastructure/sqlite"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -15,10 +15,10 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/oracle"
|
||||
"github.com/syntrex/gomcp/internal/domain/peer"
|
||||
domsoc "github.com/syntrex/gomcp/internal/domain/soc"
|
||||
"github.com/syntrex/gomcp/internal/infrastructure/audit"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/oracle"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/peer"
|
||||
domsoc "github.com/syntrex-lab/gomcp/internal/domain/soc"
|
||||
"github.com/syntrex-lab/gomcp/internal/infrastructure/audit"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import (
|
|||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
domsoc "github.com/syntrex/gomcp/internal/domain/soc"
|
||||
"github.com/syntrex/gomcp/internal/infrastructure/sqlite"
|
||||
domsoc "github.com/syntrex-lab/gomcp/internal/domain/soc"
|
||||
"github.com/syntrex-lab/gomcp/internal/infrastructure/sqlite"
|
||||
)
|
||||
|
||||
// newTestService creates a SOC service backed by in-memory SQLite, without a decision logger.
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
domsoc "github.com/syntrex/gomcp/internal/domain/soc"
|
||||
domsoc "github.com/syntrex-lab/gomcp/internal/domain/soc"
|
||||
)
|
||||
|
||||
// WebhookConfig holds SOAR webhook settings.
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/entropy"
|
||||
"github.com/syntrex/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/entropy"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/memory"
|
||||
)
|
||||
|
||||
// ApathySignal represents a detected infrastructure apathy pattern.
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/causal"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/causal"
|
||||
)
|
||||
|
||||
// CausalService implements MCP tool logic for causal reasoning chains.
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/infrastructure/sqlite"
|
||||
"github.com/syntrex-lab/gomcp/internal/infrastructure/sqlite"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package tools
|
|||
import (
|
||||
"context"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/crystal"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/crystal"
|
||||
)
|
||||
|
||||
// CrystalService implements MCP tool logic for code crystal operations.
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/infrastructure/sqlite"
|
||||
"github.com/syntrex-lab/gomcp/internal/infrastructure/sqlite"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/memory"
|
||||
)
|
||||
|
||||
// FactService implements MCP tool logic for hierarchical fact operations.
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/intent"
|
||||
"github.com/syntrex/gomcp/internal/domain/vectorstore"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/intent"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/vectorstore"
|
||||
)
|
||||
|
||||
// IntentService provides MCP tool logic for intent distillation.
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/memory"
|
||||
)
|
||||
|
||||
// ProjectPulse generates auto-documentation from L0/L1 facts (v3.7 Cerebro).
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/session"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/session"
|
||||
)
|
||||
|
||||
// SessionService implements MCP tool logic for cognitive state operations.
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ import (
|
|||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/session"
|
||||
"github.com/syntrex/gomcp/internal/infrastructure/sqlite"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/session"
|
||||
"github.com/syntrex-lab/gomcp/internal/infrastructure/sqlite"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/synapse"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/synapse"
|
||||
)
|
||||
|
||||
// SynapseService implements MCP tool logic for synapse operations.
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"runtime"
|
||||
"time"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/domain/memory"
|
||||
"github.com/syntrex-lab/gomcp/internal/domain/memory"
|
||||
)
|
||||
|
||||
// Version info set at build time via ldflags.
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/syntrex/gomcp/internal/infrastructure/sqlite"
|
||||
"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