diff --git a/Makefile b/Makefile index 0aca838..a6874ce 100644 --- a/Makefile +++ b/Makefile @@ -8,29 +8,7 @@ test: # Gateway-focused E2E tests assume gateway and nodes are already running # Auto-discovers configuration from ~/.orama and queries database for API key # No environment variables required -.PHONY: test-e2e test-e2e-deployments test-e2e-fullstack test-e2e-https test-e2e-quick test-e2e-local test-e2e-prod test-e2e-shared test-e2e-cluster test-e2e-integration test-e2e-production - -# Check if gateway is running (helper) -.PHONY: check-gateway -check-gateway: - @if ! curl -sf http://localhost:6001/v1/health > /dev/null 2>&1; then \ - echo "❌ Gateway not running on localhost:6001"; \ - echo ""; \ - echo "To run tests locally:"; \ - echo " 1. Start the dev environment: make dev"; \ - echo " 2. Wait for all services to start (~30 seconds)"; \ - echo " 3. Run tests: make test-e2e-local"; \ - echo ""; \ - echo "To run tests against production:"; \ - echo " ORAMA_GATEWAY_URL=https://dbrs.space make test-e2e"; \ - exit 1; \ - fi - @echo "✅ Gateway is running" - -# Local E2E tests - checks gateway first -test-e2e-local: check-gateway - @echo "Running E2E tests against local dev environment..." - go test -v -tags e2e -timeout 30m ./e2e/... +.PHONY: test-e2e test-e2e-deployments test-e2e-fullstack test-e2e-https test-e2e-quick test-e2e-prod test-e2e-shared test-e2e-cluster test-e2e-integration test-e2e-production # Production E2E tests - includes production-only tests test-e2e-prod: @@ -42,11 +20,10 @@ test-e2e-prod: @echo "Running E2E tests (including production-only) against $$ORAMA_GATEWAY_URL..." go test -v -tags "e2e production" -timeout 30m ./e2e/... -# Generic e2e target (works with both local and production) +# Generic e2e target test-e2e: @echo "Running comprehensive E2E tests..." @echo "Auto-discovering configuration from ~/.orama..." - @echo "Tip: Use 'make test-e2e-local' for local or 'make test-e2e-prod' for production" go test -v -tags e2e -timeout 30m ./e2e/... test-e2e-deployments: @@ -84,9 +61,9 @@ test-e2e-quick: # Network - Distributed P2P Database System # Makefile for development and build tasks -.PHONY: build clean test run-node run-node2 run-node3 run-example deps tidy fmt vet lint clear-ports install-hooks kill redeploy-devnet redeploy-testnet release health +.PHONY: build clean test deps tidy fmt vet lint install-hooks redeploy-devnet redeploy-testnet release health -VERSION := 0.103.0 +VERSION := 0.104.0 COMMIT ?= $(shell git rev-parse --short HEAD 2>/dev/null || echo unknown) DATE ?= $(shell date -u +%Y-%m-%dT%H:%M:%SZ) LDFLAGS := -X 'main.version=$(VERSION)' -X 'main.commit=$(COMMIT)' -X 'main.date=$(DATE)' @@ -156,46 +133,6 @@ clean: rm -rf data/ @echo "Clean complete!" -# Run bootstrap node (auto-selects identity and data dir) -run-node: - @echo "Starting node..." - @echo "Config: ~/.orama/node.yaml" - go run ./cmd/orama-node --config node.yaml - -# Run second node - requires join address -run-node2: - @echo "Starting second node..." - @echo "Config: ~/.orama/node2.yaml" - go run ./cmd/orama-node --config node2.yaml - -# Run third node - requires join address -run-node3: - @echo "Starting third node..." - @echo "Config: ~/.orama/node3.yaml" - go run ./cmd/orama-node --config node3.yaml - -# Run gateway HTTP server -run-gateway: - @echo "Starting gateway HTTP server..." - @echo "Note: Config must be in ~/.orama/data/gateway.yaml" - go run ./cmd/orama-gateway - -# Development environment target -# Uses orama dev up to start full stack with dependency and port checking -dev: build - @./bin/orama dev up - -# Graceful shutdown of all dev services -stop: - @if [ -f ./bin/orama ]; then \ - ./bin/orama dev down || true; \ - fi - @bash scripts/dev-kill-all.sh - -# Force kill all processes (immediate termination) -kill: - @bash scripts/dev-kill-all.sh - # Deploy to devnet (build + rolling upgrade all nodes) redeploy-devnet: @bash scripts/redeploy.sh --devnet @@ -239,16 +176,7 @@ help: @echo " clean - Clean build artifacts" @echo " test - Run unit tests" @echo "" - @echo "Local Development (Recommended):" - @echo " make dev - Start full development stack with one command" - @echo " - Checks dependencies and available ports" - @echo " - Generates configs and starts all services" - @echo " - Validates cluster health" - @echo " make stop - Gracefully stop all development services" - @echo " make kill - Force kill all development services (use if stop fails)" - @echo "" @echo "E2E Testing:" - @echo " make test-e2e-local - Run E2E tests against local dev (checks gateway first)" @echo " make test-e2e-prod - Run all E2E tests incl. production-only (needs ORAMA_GATEWAY_URL)" @echo " make test-e2e-shared - Run shared E2E tests (cache, storage, pubsub, auth)" @echo " make test-e2e-cluster - Run cluster E2E tests (libp2p, olric, rqlite, namespace)" @@ -258,8 +186,8 @@ help: @echo " make test-e2e-quick - Quick smoke tests (static deploys, health checks)" @echo " make test-e2e - Generic E2E tests (auto-discovers config)" @echo "" - @echo " Example production test:" - @echo " ORAMA_GATEWAY_URL=https://dbrs.space make test-e2e-prod" + @echo " Example:" + @echo " ORAMA_GATEWAY_URL=https://orama-devnet.network make test-e2e-prod" @echo "" @echo "Deployment:" @echo " make redeploy-devnet - Build + rolling deploy to all devnet nodes" @@ -269,16 +197,6 @@ help: @echo " make health ENV=devnet - Check health of all nodes in an environment" @echo " make release - Interactive release workflow (tag + push)" @echo "" - @echo "Development Management (via orama):" - @echo " ./bin/orama dev status - Show status of all dev services" - @echo " ./bin/orama dev logs [--follow]" - @echo "" - @echo "Individual Node Targets (advanced):" - @echo " run-node - Start first node directly" - @echo " run-node2 - Start second node directly" - @echo " run-node3 - Start third node directly" - @echo " run-gateway - Start HTTP gateway directly" - @echo "" @echo "Maintenance:" @echo " deps - Download dependencies" @echo " tidy - Tidy dependencies" diff --git a/README.md b/README.md index fec2e94..51e966c 100644 --- a/README.md +++ b/README.md @@ -103,92 +103,10 @@ orama deploy static ./dist --name myapp ## Quick Start -### Local Development +### Building ```bash -# Build the project -make build - -# Start 5-node development cluster -make dev -``` - -The cluster automatically performs health checks before declaring success. - -### Stop Development Environment - -```bash -make stop -``` - -## Testing Services - -After running `make dev`, test service health using these curl requests: - -### Node Unified Gateways - -Each node is accessible via a single unified gateway port: - -```bash -# Node-1 (port 6001) -curl http://localhost:6001/health - -# Node-2 (port 6002) -curl http://localhost:6002/health - -# Node-3 (port 6003) -curl http://localhost:6003/health - -# Node-4 (port 6004) -curl http://localhost:6004/health - -# Node-5 (port 6005) -curl http://localhost:6005/health -``` - -## Network Architecture - -### Unified Gateway Ports - -``` -Node-1: localhost:6001 → /rqlite/http, /rqlite/raft, /cluster, /ipfs/api -Node-2: localhost:6002 → Same routes -Node-3: localhost:6003 → Same routes -Node-4: localhost:6004 → Same routes -Node-5: localhost:6005 → Same routes -``` - -### Direct Service Ports (for debugging) - -``` -RQLite HTTP: 5001, 5002, 5003, 5004, 5005 (one per node) -RQLite Raft: 7001, 7002, 7003, 7004, 7005 -IPFS API: 4501, 4502, 4503, 4504, 4505 -IPFS Swarm: 4101, 4102, 4103, 4104, 4105 -Cluster API: 9094, 9104, 9114, 9124, 9134 -Internal Gateway: 6000 -Olric Cache: 3320 -Anon SOCKS: 9050 -``` - -## Development Commands - -```bash -# Start full cluster (5 nodes + gateway) -make dev - -# Check service status -orama dev status - -# View logs -orama dev logs node-1 # Node-1 logs -orama dev logs node-1 --follow # Follow logs in real-time -orama dev logs gateway --follow # Gateway logs - -# Stop all services -orama stop - -# Build binaries +# Build all binaries make build ``` @@ -272,7 +190,7 @@ Deploy your compiled `.wasm` file to the network via the Gateway. ```bash # Deploy a function -curl -X POST http://localhost:6001/v1/functions \ +curl -X POST https://your-node.example.com/v1/functions \ -H "Authorization: Bearer " \ -F "name=hello-world" \ -F "namespace=default" \ @@ -285,7 +203,7 @@ Trigger your function with a JSON payload. The function receives the payload via ```bash # Invoke via HTTP -curl -X POST http://localhost:6001/v1/functions/hello-world/invoke \ +curl -X POST https://your-node.example.com/v1/functions/hello-world/invoke \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"name": "Developer"}' @@ -295,10 +213,10 @@ curl -X POST http://localhost:6001/v1/functions/hello-world/invoke \ ```bash # List all functions in a namespace -curl http://localhost:6001/v1/functions?namespace=default +curl https://your-node.example.com/v1/functions?namespace=default # Delete a function -curl -X DELETE http://localhost:6001/v1/functions/hello-world?namespace=default +curl -X DELETE https://your-node.example.com/v1/functions/hello-world?namespace=default ``` ## Production Deployment diff --git a/cmd/cli/main.go b/cmd/cli/main.go index 87bab66..96d11b5 100644 --- a/cmd/cli/main.go +++ b/cmd/cli/main.go @@ -44,10 +44,6 @@ func main() { fmt.Println() return - // Development environment commands - case "dev": - cli.HandleDevCommand(args) - // Production environment commands (legacy with 'prod' prefix) case "prod": cli.HandleProdCommand(args) @@ -132,13 +128,6 @@ func showHelp() { fmt.Printf("Orama CLI - Distributed P2P Network Management Tool\n\n") fmt.Printf("Usage: orama [args...]\n\n") - fmt.Printf("💻 Local Development:\n") - fmt.Printf(" dev up - Start full local dev environment\n") - fmt.Printf(" dev down - Stop all dev services\n") - fmt.Printf(" dev status - Show status of dev services\n") - fmt.Printf(" dev logs - View dev component logs\n") - fmt.Printf(" dev help - Show dev command help\n\n") - fmt.Printf("🚀 Production Deployment:\n") fmt.Printf(" install - Install production node (requires root/sudo)\n") fmt.Printf(" upgrade - Upgrade existing installation\n") diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index d690af1..a82b2fa 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -439,11 +439,10 @@ All inter-node communication is encrypted via a WireGuard VPN mesh: ## Deployment -### Development +### Building & Testing ```bash -make dev # Start 5-node cluster -make stop # Stop all services +make build # Build all binaries make test # Run unit tests make test-e2e # Run E2E tests ``` diff --git a/docs/DEV_DEPLOY.md b/docs/DEV_DEPLOY.md index 30da9ec..bfe3804 100644 --- a/docs/DEV_DEPLOY.md +++ b/docs/DEV_DEPLOY.md @@ -26,19 +26,6 @@ make build make test ``` -## Running Locally (macOS) - -The node runs in "direct mode" on macOS — processes are managed directly instead of via systemd. - -```bash -# Start a single node -make run-node - -# Start multiple nodes for cluster testing -make run-node2 -make run-node3 -``` - ## Deploying to VPS There are two deployment workflows: **development** (fast iteration, no git required) and **production** (via git). diff --git a/e2e/config.go b/e2e/config.go index 469da80..02666fc 100644 --- a/e2e/config.go +++ b/e2e/config.go @@ -5,7 +5,6 @@ package e2e import ( "os" "path/filepath" - "testing" "gopkg.in/yaml.v2" ) @@ -37,10 +36,10 @@ type ServerConfig struct { IsNameserver bool `yaml:"is_nameserver"` } -// DefaultConfig returns the default configuration for local development +// DefaultConfig returns the default configuration func DefaultConfig() *E2EConfig { return &E2EConfig{ - Mode: "local", + Mode: "production", BaseDomain: "orama.network", Servers: []ServerConfig{}, Nameservers: []string{}, @@ -94,7 +93,7 @@ func LoadE2EConfig() (*E2EConfig, error) { // Apply defaults for empty values if cfg.Mode == "" { - cfg.Mode = "local" + cfg.Mode = "production" } if cfg.BaseDomain == "" { cfg.BaseDomain = "orama.network" @@ -117,29 +116,6 @@ func IsProductionMode() bool { return cfg.Mode == "production" } -// IsLocalMode returns true if running in local mode -func IsLocalMode() bool { - return !IsProductionMode() -} - -// SkipIfLocal skips the test if running in local mode -// Use this for tests that require real production infrastructure -func SkipIfLocal(t *testing.T) { - t.Helper() - if IsLocalMode() { - t.Skip("Skipping: requires production environment (set mode: production in e2e/config.yaml)") - } -} - -// SkipIfProduction skips the test if running in production mode -// Use this for tests that should only run locally -func SkipIfProduction(t *testing.T) { - t.Helper() - if IsProductionMode() { - t.Skip("Skipping: local-only test") - } -} - // GetServerIPs returns a list of all server IP addresses from config func GetServerIPs(cfg *E2EConfig) []string { if cfg == nil { diff --git a/e2e/deployments/replica_test.go b/e2e/deployments/replica_test.go index 9613b62..54b72a6 100644 --- a/e2e/deployments/replica_test.go +++ b/e2e/deployments/replica_test.go @@ -120,8 +120,6 @@ func TestDynamicReplica_CreatedOnDeploy(t *testing.T) { }) t.Run("Dynamic app served from both nodes", func(t *testing.T) { - e2e.SkipIfLocal(t) - if len(env.Config.Servers) < 2 { t.Skip("Requires at least 2 servers") } @@ -147,7 +145,6 @@ func TestDynamicReplica_CreatedOnDeploy(t *testing.T) { func TestReplica_UpdatePropagation(t *testing.T) { env, err := e2e.LoadTestEnv() require.NoError(t, err, "Failed to load test environment") - e2e.SkipIfLocal(t) if len(env.Config.Servers) < 2 { t.Skip("Requires at least 2 servers") @@ -202,7 +199,6 @@ func TestReplica_UpdatePropagation(t *testing.T) { func TestReplica_RollbackPropagation(t *testing.T) { env, err := e2e.LoadTestEnv() require.NoError(t, err, "Failed to load test environment") - e2e.SkipIfLocal(t) if len(env.Config.Servers) < 2 { t.Skip("Requires at least 2 servers") @@ -259,7 +255,6 @@ func TestReplica_RollbackPropagation(t *testing.T) { func TestReplica_TeardownOnDelete(t *testing.T) { env, err := e2e.LoadTestEnv() require.NoError(t, err, "Failed to load test environment") - e2e.SkipIfLocal(t) if len(env.Config.Servers) < 2 { t.Skip("Requires at least 2 servers") diff --git a/e2e/env.go b/e2e/env.go index a5be043..de551a8 100644 --- a/e2e/env.go +++ b/e2e/env.go @@ -277,8 +277,8 @@ func GetGatewayURL() string { } } - // Default fallback - return "http://localhost:6001" + // Fallback to devnet + return "https://orama-devnet.network" } // GetRQLiteNodes returns rqlite endpoint addresses from config @@ -290,26 +290,8 @@ func GetRQLiteNodes() []string { } cacheMutex.RUnlock() - // Try all node config files - for _, cfgFile := range []string{"node-1.yaml", "node-2.yaml", "node-3.yaml", "node-4.yaml", "node-5.yaml"} { - nodeCfg, err := loadNodeConfig(cfgFile) - if err != nil { - continue - } - - if db, ok := nodeCfg["database"].(map[interface{}]interface{}); ok { - if rqlitePort, ok := db["rqlite_port"].(int); ok { - nodes := []string{fmt.Sprintf("http://localhost:%d", rqlitePort)} - cacheMutex.Lock() - rqliteCache = nodes - cacheMutex.Unlock() - return nodes - } - } - } - - // Default fallback - return []string{"http://localhost:5001"} + // No fallback — require explicit configuration via RQLITE_NODES env var + return nil } // queryAPIKeyFromRQLite queries the SQLite database directly for an API key @@ -328,21 +310,14 @@ func queryAPIKeyFromRQLite() (string, error) { // Fall through to local database check if remote fails } - // 3. Build database path from bootstrap/node config (for local development) + // 3. Build database path from node config homeDir, err := os.UserHomeDir() if err != nil { return "", fmt.Errorf("failed to get home directory: %w", err) } - // Try all node data directories (both production and development paths) + // Production paths (~/.orama/data/node-x/...) dbPaths := []string{ - // Development paths (~/.orama/node-x/...) - filepath.Join(homeDir, ".orama", "node-1", "rqlite", "db.sqlite"), - filepath.Join(homeDir, ".orama", "node-2", "rqlite", "db.sqlite"), - filepath.Join(homeDir, ".orama", "node-3", "rqlite", "db.sqlite"), - filepath.Join(homeDir, ".orama", "node-4", "rqlite", "db.sqlite"), - filepath.Join(homeDir, ".orama", "node-5", "rqlite", "db.sqlite"), - // Production paths (~/.orama/data/node-x/...) filepath.Join(homeDir, ".orama", "data", "node-1", "rqlite", "db.sqlite"), filepath.Join(homeDir, ".orama", "data", "node-2", "rqlite", "db.sqlite"), filepath.Join(homeDir, ".orama", "data", "node-3", "rqlite", "db.sqlite"), @@ -556,8 +531,8 @@ func GetIPFSClusterURL() string { } } - // Default fallback - return "http://localhost:9094" + // No fallback — require explicit configuration + return "" } // GetIPFSAPIURL returns the IPFS API URL from config @@ -588,8 +563,8 @@ func GetIPFSAPIURL() string { } } - // Default fallback - return "http://localhost:5001" + // No fallback — require explicit configuration + return "" } // GetClientNamespace returns the test client namespace from config @@ -1231,11 +1206,6 @@ func LoadTestEnv() (*E2ETestEnv, error) { // Load E2E config (for base_domain and production settings) cfg, err := LoadE2EConfig() if err != nil { - // If config loading fails in production mode, that's an error - if IsProductionMode() { - return nil, fmt.Errorf("failed to load e2e config: %w", err) - } - // For local mode, use defaults cfg = DefaultConfig() } diff --git a/e2e/integration/ipfs_replica_test.go b/e2e/integration/ipfs_replica_test.go index d8924ca..1857e77 100644 --- a/e2e/integration/ipfs_replica_test.go +++ b/e2e/integration/ipfs_replica_test.go @@ -18,8 +18,6 @@ import ( // TestIPFS_ContentPinnedOnMultipleNodes verifies that deploying a static app // makes the IPFS content available across multiple nodes. func TestIPFS_ContentPinnedOnMultipleNodes(t *testing.T) { - e2e.SkipIfLocal(t) - env, err := e2e.LoadTestEnv() require.NoError(t, err) diff --git a/e2e/production/cross_node_proxy_test.go b/e2e/production/cross_node_proxy_test.go index b33bddf..10ae2a9 100644 --- a/e2e/production/cross_node_proxy_test.go +++ b/e2e/production/cross_node_proxy_test.go @@ -19,8 +19,6 @@ import ( // TestCrossNode_ProxyRouting tests that requests routed through the gateway // are served correctly for a deployment. func TestCrossNode_ProxyRouting(t *testing.T) { - e2e.SkipIfLocal(t) - env, err := e2e.LoadTestEnv() require.NoError(t, err, "Failed to load test environment") @@ -60,8 +58,6 @@ func TestCrossNode_ProxyRouting(t *testing.T) { // TestCrossNode_APIConsistency tests that API responses are consistent func TestCrossNode_APIConsistency(t *testing.T) { - e2e.SkipIfLocal(t) - env, err := e2e.LoadTestEnv() require.NoError(t, err, "Failed to load test environment") @@ -110,8 +106,6 @@ func TestCrossNode_APIConsistency(t *testing.T) { // TestCrossNode_DeploymentGetConsistency tests that deployment details are correct func TestCrossNode_DeploymentGetConsistency(t *testing.T) { - e2e.SkipIfLocal(t) - env, err := e2e.LoadTestEnv() require.NoError(t, err, "Failed to load test environment") diff --git a/e2e/production/failover_test.go b/e2e/production/failover_test.go index 4508234..1b79850 100644 --- a/e2e/production/failover_test.go +++ b/e2e/production/failover_test.go @@ -22,8 +22,6 @@ import ( // TestFailover_HomeNodeDown verifies that when the home node's deployment process // is down, requests still succeed via the replica node. func TestFailover_HomeNodeDown(t *testing.T) { - e2e.SkipIfLocal(t) - env, err := e2e.LoadTestEnv() require.NoError(t, err) @@ -68,8 +66,6 @@ func TestFailover_HomeNodeDown(t *testing.T) { // TestFailover_5xxRetry verifies that if one node returns a gateway error, // the middleware retries on the next replica. func TestFailover_5xxRetry(t *testing.T) { - e2e.SkipIfLocal(t) - env, err := e2e.LoadTestEnv() require.NoError(t, err) @@ -112,8 +108,6 @@ func TestFailover_5xxRetry(t *testing.T) { // TestFailover_CrossNodeProxyTimeout verifies that cross-node proxy fails fast // (within a reasonable timeout) rather than hanging. func TestFailover_CrossNodeProxyTimeout(t *testing.T) { - e2e.SkipIfLocal(t) - env, err := e2e.LoadTestEnv() require.NoError(t, err) diff --git a/e2e/production/https_certificate_test.go b/e2e/production/https_certificate_test.go index 724c113..6378749 100644 --- a/e2e/production/https_certificate_test.go +++ b/e2e/production/https_certificate_test.go @@ -18,8 +18,6 @@ import ( // TestHTTPS_CertificateValid tests that HTTPS works with a valid certificate func TestHTTPS_CertificateValid(t *testing.T) { - e2e.SkipIfLocal(t) - env, err := e2e.LoadTestEnv() require.NoError(t, err, "Failed to load test environment") @@ -86,8 +84,6 @@ func TestHTTPS_CertificateValid(t *testing.T) { // TestHTTPS_CertificateDetails tests certificate properties func TestHTTPS_CertificateDetails(t *testing.T) { - e2e.SkipIfLocal(t) - env, err := e2e.LoadTestEnv() require.NoError(t, err, "Failed to load test environment") @@ -152,8 +148,6 @@ func TestHTTPS_CertificateDetails(t *testing.T) { // TestHTTPS_HTTPRedirect tests that HTTP requests are redirected to HTTPS func TestHTTPS_HTTPRedirect(t *testing.T) { - e2e.SkipIfLocal(t) - env, err := e2e.LoadTestEnv() require.NoError(t, err, "Failed to load test environment") diff --git a/e2e/production/middleware_test.go b/e2e/production/middleware_test.go index 8d2b472..0f4b2ef 100644 --- a/e2e/production/middleware_test.go +++ b/e2e/production/middleware_test.go @@ -17,8 +17,6 @@ import ( // TestMiddleware_NonExistentDeployment verifies that requests to a non-existent // deployment return 404 (not 502 or hang). func TestMiddleware_NonExistentDeployment(t *testing.T) { - e2e.SkipIfLocal(t) - env, err := e2e.LoadTestEnv() require.NoError(t, err) @@ -51,8 +49,6 @@ func TestMiddleware_NonExistentDeployment(t *testing.T) { // TestMiddleware_InternalAPIAuthRejection verifies that internal replica API // endpoints reject requests without the proper internal auth header. func TestMiddleware_InternalAPIAuthRejection(t *testing.T) { - e2e.SkipIfLocal(t) - env, err := e2e.LoadTestEnv() require.NoError(t, err) diff --git a/go.mod b/go.mod index 7db3df6..bb89867 100644 --- a/go.mod +++ b/go.mod @@ -6,6 +6,8 @@ require ( github.com/charmbracelet/bubbles v0.20.0 github.com/charmbracelet/bubbletea v1.2.4 github.com/charmbracelet/lipgloss v1.0.0 + github.com/coredns/caddy v1.1.4 + github.com/coredns/coredns v1.12.1 github.com/ethereum/go-ethereum v1.13.14 github.com/go-chi/chi/v5 v5.2.3 github.com/google/uuid v1.6.0 @@ -14,9 +16,13 @@ require ( github.com/libp2p/go-libp2p-pubsub v0.14.2 github.com/mackerelio/go-osstat v0.2.6 github.com/mattn/go-sqlite3 v1.14.32 + github.com/mdp/qrterminal/v3 v3.2.1 + github.com/miekg/dns v1.1.70 github.com/multiformats/go-multiaddr v0.16.0 github.com/olric-data/olric v0.7.0 github.com/rqlite/gorqlite v0.0.0-20250609141355-ac86a4a1c9a8 + github.com/spf13/cobra v1.10.2 + github.com/stretchr/testify v1.11.1 github.com/tetratelabs/wazero v1.11.0 go.uber.org/zap v1.27.0 golang.org/x/crypto v0.47.0 @@ -26,138 +32,56 @@ require ( ) require ( - cloud.google.com/go/auth v0.18.0 // indirect - cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect - cloud.google.com/go/compute/metadata v0.9.0 // indirect - github.com/Azure/azure-sdk-for-go v68.0.0+incompatible // indirect - github.com/Azure/go-autorest v14.2.0+incompatible // indirect - github.com/Azure/go-autorest/autorest v0.11.30 // indirect - github.com/Azure/go-autorest/autorest/adal v0.9.22 // indirect - github.com/Azure/go-autorest/autorest/azure/auth v0.5.13 // indirect - github.com/Azure/go-autorest/autorest/azure/cli v0.4.6 // indirect - github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect - github.com/Azure/go-autorest/autorest/to v0.2.0 // indirect - github.com/Azure/go-autorest/logger v0.2.1 // indirect - github.com/Azure/go-autorest/tracing v0.6.0 // indirect - github.com/DataDog/datadog-agent/comp/core/tagger/origindetection v0.71.0 // indirect - github.com/DataDog/datadog-agent/pkg/obfuscate v0.71.0 // indirect - github.com/DataDog/datadog-agent/pkg/opentelemetry-mapping-go/otlp/attributes v0.71.0 // indirect - github.com/DataDog/datadog-agent/pkg/proto v0.71.0 // indirect - github.com/DataDog/datadog-agent/pkg/remoteconfig/state v0.73.0-rc.1 // indirect - github.com/DataDog/datadog-agent/pkg/trace v0.71.0 // indirect - github.com/DataDog/datadog-agent/pkg/util/log v0.71.0 // indirect - github.com/DataDog/datadog-agent/pkg/util/scrubber v0.71.0 // indirect - github.com/DataDog/datadog-agent/pkg/version v0.71.0 // indirect - github.com/DataDog/datadog-go/v5 v5.6.0 // indirect - github.com/DataDog/dd-trace-go/v2 v2.5.0 // indirect - github.com/DataDog/go-libddwaf/v4 v4.8.0 // indirect - github.com/DataDog/go-runtime-metrics-internal v0.0.4-0.20250721125240-fdf1ef85b633 // indirect - github.com/DataDog/go-sqllexer v0.1.8 // indirect - github.com/DataDog/go-tuf v1.1.1-0.5.2 // indirect - github.com/DataDog/sketches-go v1.4.7 // indirect - github.com/Microsoft/go-winio v0.6.2 // indirect github.com/RoaringBitmap/roaring v1.9.4 // indirect github.com/apparentlymart/go-cidr v1.1.0 // indirect github.com/armon/go-metrics v0.4.1 // indirect github.com/atotto/clipboard v0.1.4 // indirect - github.com/aws/aws-sdk-go-v2 v1.41.1 // indirect - github.com/aws/aws-sdk-go-v2/config v1.32.7 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.19.7 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.17 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.17 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.17 // indirect - github.com/aws/aws-sdk-go-v2/internal/ini v1.8.4 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.4 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.17 // indirect - github.com/aws/aws-sdk-go-v2/service/route53 v1.62.1 // indirect - github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.41.1 // indirect - github.com/aws/aws-sdk-go-v2/service/signin v1.0.5 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.30.9 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.13 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.41.6 // indirect - github.com/aws/smithy-go v1.24.0 // indirect github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect github.com/benbjohnson/clock v1.3.5 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bits-and-blooms/bitset v1.22.0 // indirect github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect github.com/buraksezer/consistent v0.10.0 // indirect - github.com/cenkalti/backoff/v5 v5.0.3 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/charmbracelet/x/ansi v0.4.5 // indirect github.com/charmbracelet/x/term v0.2.1 // indirect - github.com/cihub/seelog v0.0.0-20170130134532-f561c5e57575 // indirect github.com/containerd/cgroups v1.1.0 // indirect - github.com/coredns/caddy v1.1.4 // indirect - github.com/coredns/coredns v1.12.1 // indirect - github.com/coreos/go-semver v0.3.1 // indirect github.com/coreos/go-systemd/v22 v22.5.0 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect - github.com/dimchansky/utfbom v1.1.1 // indirect - github.com/dnstap/golang-dnstap v0.4.0 // indirect github.com/docker/go-units v0.5.0 // indirect - github.com/dunglas/httpsfv v1.1.0 // indirect - github.com/dustin/go-humanize v1.0.1 // indirect - github.com/ebitengine/purego v0.8.4 // indirect github.com/elastic/gosigar v0.14.3 // indirect - github.com/emicklei/go-restful/v3 v3.12.2 // indirect github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect - github.com/expr-lang/expr v1.17.7 // indirect - github.com/farsightsec/golang-framestream v0.3.0 // indirect - github.com/felixge/httpsnoop v1.0.4 // indirect github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 // indirect github.com/flynn/noise v1.1.0 // indirect github.com/francoispqt/gojay v1.2.13 // indirect - github.com/fxamacker/cbor/v2 v2.9.0 // indirect - github.com/go-logr/logr v1.4.3 // indirect - github.com/go-logr/stdr v1.2.2 // indirect - github.com/go-ole/go-ole v1.3.0 // indirect - github.com/go-openapi/jsonpointer v0.21.0 // indirect - github.com/go-openapi/jsonreference v0.20.2 // indirect - github.com/go-openapi/swag v0.23.0 // indirect github.com/go-task/slim-sprig/v3 v3.0.0 // indirect github.com/godbus/dbus/v5 v5.1.0 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang-jwt/jwt/v4 v4.5.2 // indirect - github.com/golang/protobuf v1.5.4 // indirect github.com/google/btree v1.1.3 // indirect - github.com/google/gnostic-models v0.7.0 // indirect - github.com/google/go-cmp v0.7.0 // indirect github.com/google/gopacket v1.1.19 // indirect github.com/google/pprof v0.0.0-20250208200701-d0013a598941 // indirect - github.com/google/s2a-go v0.1.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.3.7 // indirect - github.com/googleapis/gax-go/v2 v2.16.0 // indirect - github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2 // indirect github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect - github.com/hashicorp/cronexpr v1.1.3 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect - github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/go-metrics v0.5.4 // indirect github.com/hashicorp/go-msgpack/v2 v2.1.3 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/go-rootcerts v1.0.2 // indirect github.com/hashicorp/go-sockaddr v1.0.7 // indirect - github.com/hashicorp/go-version v1.7.0 // indirect + github.com/hashicorp/go-uuid v1.0.3 // indirect github.com/hashicorp/golang-lru v1.0.2 // indirect github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/hashicorp/logutils v1.0.0 // indirect github.com/hashicorp/memberlist v0.5.3 // indirect - github.com/hashicorp/nomad/api v0.0.0-20250909143645-a3b86c697f38 // indirect github.com/holiman/uint256 v1.2.4 // indirect github.com/huin/goupnp v1.3.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/infobloxopen/go-trees v0.0.0-20200715205103-96a057b8dfb9 // indirect github.com/ipfs/go-cid v0.5.0 // indirect github.com/ipfs/go-log/v2 v2.6.0 // indirect github.com/jackpal/go-nat-pmp v1.0.2 // indirect github.com/jbenet/go-temp-err-catcher v0.1.0 // indirect - github.com/josharian/intern v1.0.0 // indirect - github.com/json-iterator/go v1.1.12 // indirect github.com/klauspost/compress v1.18.0 // indirect github.com/klauspost/cpuid/v2 v2.2.10 // indirect github.com/koron/go-ssdp v0.0.6 // indirect @@ -169,23 +93,13 @@ require ( github.com/libp2p/go-reuseport v0.4.0 // indirect github.com/libp2p/go-yamux/v5 v5.0.1 // indirect github.com/lucasb-eyer/go-colorful v1.2.0 // indirect - github.com/lufia/plan9stats v0.0.0-20250317134145-8bc96cf8fc35 // indirect - github.com/mailru/easyjson v0.7.7 // indirect github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-localereader v0.0.1 // indirect github.com/mattn/go-runewidth v0.0.16 // indirect - github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect - github.com/mdp/qrterminal/v3 v3.2.1 // indirect - github.com/miekg/dns v1.1.70 // indirect github.com/mikioh/tcpinfo v0.0.0-20190314235526-30a79bb1804b // indirect github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc // indirect github.com/minio/sha256-simd v1.0.1 // indirect - github.com/minio/simdjson-go v0.4.5 // indirect - github.com/mitchellh/go-homedir v1.1.0 // indirect - github.com/mitchellh/mapstructure v1.5.1-0.20231216201459-8508981c8b6c // indirect - github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect - github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect github.com/mr-tron/base58 v1.2.0 // indirect github.com/mschoch/smat v0.2.0 // indirect github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect @@ -203,15 +117,8 @@ require ( github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/onsi/ginkgo/v2 v2.22.2 // indirect github.com/opencontainers/runtime-spec v1.2.0 // indirect - github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492 // indirect github.com/opentracing/opentracing-go v1.2.0 // indirect - github.com/openzipkin-contrib/zipkin-go-opentracing v0.5.0 // indirect - github.com/openzipkin/zipkin-go v0.4.3 // indirect - github.com/oschwald/geoip2-golang/v2 v2.1.0 // indirect - github.com/oschwald/maxminddb-golang/v2 v2.1.1 // indirect - github.com/outcaste-io/ristretto v0.2.3 // indirect github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect - github.com/philhofer/fwd v1.2.0 // indirect github.com/pion/datachannel v1.5.10 // indirect github.com/pion/dtls/v2 v2.2.12 // indirect github.com/pion/dtls/v3 v3.0.6 // indirect @@ -232,14 +139,11 @@ require ( github.com/pion/turn/v4 v4.0.2 // indirect github.com/pion/webrtc/v4 v4.1.2 // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect - github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect github.com/prometheus/client_golang v1.23.0 // indirect github.com/prometheus/client_model v0.6.2 // indirect github.com/prometheus/common v0.67.5 // indirect github.com/prometheus/procfs v0.16.1 // indirect - github.com/puzpuzpuz/xsync/v3 v3.5.1 // indirect github.com/quic-go/qpack v0.5.1 // indirect github.com/quic-go/quic-go v0.50.1 // indirect github.com/quic-go/webtransport-go v0.8.1-0.20241018022711-4ac2c9250e66 // indirect @@ -248,51 +152,21 @@ require ( github.com/rivo/uniseg v0.4.7 // indirect github.com/rogpeppe/go-internal v1.14.1 // indirect github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 // indirect - github.com/secure-systems-lab/go-securesystemslib v0.9.0 // indirect - github.com/shirou/gopsutil/v4 v4.25.8-0.20250809033336-ffcdc2b7662f // indirect github.com/spaolacci/murmur3 v1.1.0 // indirect - github.com/spf13/cobra v1.10.2 // indirect github.com/spf13/pflag v1.0.9 // indirect - github.com/stretchr/testify v1.11.1 // indirect - github.com/theckman/httpforwarded v0.4.0 // indirect github.com/tidwall/btree v1.7.0 // indirect github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/redcon v1.6.2 // indirect - github.com/tinylib/msgp v1.3.0 // indirect - github.com/tklauser/go-sysconf v0.3.15 // indirect - github.com/tklauser/numcpus v0.10.0 // indirect github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect github.com/wlynxg/anet v0.0.5 // indirect - github.com/x448/float16 v0.8.4 // indirect - github.com/yusufpapurcu/wmi v1.2.4 // indirect - go.etcd.io/etcd/api/v3 v3.6.7 // indirect - go.etcd.io/etcd/client/pkg/v3 v3.6.7 // indirect - go.etcd.io/etcd/client/v3 v3.6.7 // indirect - go.opentelemetry.io/auto/sdk v1.2.1 // indirect - go.opentelemetry.io/collector/component v1.39.0 // indirect - go.opentelemetry.io/collector/featuregate v1.46.0 // indirect - go.opentelemetry.io/collector/internal/telemetry v0.133.0 // indirect - go.opentelemetry.io/collector/pdata v1.46.0 // indirect - go.opentelemetry.io/collector/pdata/pprofile v0.140.0 // indirect - go.opentelemetry.io/contrib/bridges/otelzap v0.12.0 // indirect - go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect - go.opentelemetry.io/otel v1.38.0 // indirect - go.opentelemetry.io/otel/log v0.13.0 // indirect - go.opentelemetry.io/otel/metric v1.38.0 // indirect - go.opentelemetry.io/otel/sdk v1.38.0 // indirect - go.opentelemetry.io/otel/trace v1.38.0 // indirect - go.uber.org/atomic v1.11.0 // indirect - go.uber.org/automaxprocs v1.6.0 // indirect go.uber.org/dig v1.19.0 // indirect go.uber.org/fx v1.24.0 // indirect go.uber.org/mock v0.6.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.yaml.in/yaml/v2 v2.4.3 // indirect - go.yaml.in/yaml/v3 v3.0.4 // indirect golang.org/x/exp v0.0.0-20250718183923-645b1fa84792 // indirect golang.org/x/mod v0.31.0 // indirect - golang.org/x/oauth2 v0.34.0 // indirect golang.org/x/sync v0.19.0 // indirect golang.org/x/sys v0.40.0 // indirect golang.org/x/telemetry v0.0.0-20251203150158-8fff8a5912fc // indirect @@ -300,26 +174,9 @@ require ( golang.org/x/text v0.33.0 // indirect golang.org/x/time v0.14.0 // indirect golang.org/x/tools v0.40.0 // indirect - golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect - google.golang.org/api v0.259.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20251222181119-0a764e51fe1b // indirect google.golang.org/grpc v1.78.0 // indirect google.golang.org/protobuf v1.36.11 // indirect - gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect - gopkg.in/inf.v0 v0.9.1 // indirect - gopkg.in/ini.v1 v1.67.0 // indirect - k8s.io/api v0.34.3 // indirect - k8s.io/apimachinery v0.34.3 // indirect - k8s.io/client-go v0.34.3 // indirect - k8s.io/klog/v2 v2.130.1 // indirect - k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b // indirect - k8s.io/utils v0.0.0-20250604170112-4c0f3b243397 // indirect lukechampine.com/blake3 v1.4.1 // indirect rsc.io/qr v0.2.0 // indirect - sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect - sigs.k8s.io/mcs-api v0.3.0 // indirect - sigs.k8s.io/randfill v1.0.0 // indirect - sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect - sigs.k8s.io/yaml v1.6.0 // indirect ) diff --git a/go.sum b/go.sum index 33c12a2..5b6516c 100644 --- a/go.sum +++ b/go.sum @@ -2,80 +2,13 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMT cloud.google.com/go v0.31.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.37.0/go.mod h1:TS1dMSSfndXH133OKGwekG838Om/cQT0BUHV3HcBgoo= -cloud.google.com/go v0.112.2 h1:ZaGT6LiG7dBzi6zNOvVZwacaXlmf3lRqnC4DQzqyRQw= -cloud.google.com/go/auth v0.18.0 h1:wnqy5hrv7p3k7cShwAU/Br3nzod7fxoqG+k0VZ+/Pk0= -cloud.google.com/go/auth v0.18.0/go.mod h1:wwkPM1AgE1f2u6dG443MiWoD8C3BtOywNsUMcUTVDRo= -cloud.google.com/go/auth/oauth2adapt v0.2.8 h1:keo8NaayQZ6wimpNSmW5OPc283g65QNIiLpZnkHRbnc= -cloud.google.com/go/auth/oauth2adapt v0.2.8/go.mod h1:XQ9y31RkqZCcwJWNSx2Xvric3RrU88hAYYbjDWYDL+c= -cloud.google.com/go/compute/metadata v0.9.0 h1:pDUj4QMoPejqq20dK0Pg2N4yG9zIkYGdBtwLoEkH9Zs= -cloud.google.com/go/compute/metadata v0.9.0/go.mod h1:E0bWwX5wTnLPedCKqk3pJmVgCBSM6qQI1yTBdEb3C10= dmitri.shuralyov.com/app/changes v0.0.0-20180602232624-0a106ad413e3/go.mod h1:Yl+fi1br7+Rr3LqpNJf1/uxUdtRUV+Tnj0o93V2B9MU= dmitri.shuralyov.com/html/belt v0.0.0-20180602232347-f7d459c86be0/go.mod h1:JLBrvjyP0v+ecvNYvCpyZgu5/xkfAUhi6wJj28eUfSU= dmitri.shuralyov.com/service/change v0.0.0-20181023043359-a85b471d5412/go.mod h1:a1inKt/atXimZ4Mv927x+r7UpyzRUf4emIoiiSC2TN4= dmitri.shuralyov.com/state v0.0.0-20180228185332-28bcc343414c/go.mod h1:0PRwlb0D6DFvNNtx+9ybjezNCa8XF0xaYcETyp6rHWU= git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999/go.mod h1:fPE2ZNJGynbRyZ4dJvy6G277gSllfV2HJqblrnkyeyg= -github.com/Azure/azure-sdk-for-go v68.0.0+incompatible h1:fcYLmCpyNYRnvJbPerq7U0hS+6+I79yEDJBqVNcqUzU= -github.com/Azure/azure-sdk-for-go v68.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs= -github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= -github.com/Azure/go-autorest/autorest v0.11.28/go.mod h1:MrkzG3Y3AH668QyF9KRk5neJnGgmhQ6krbhR8Q5eMvA= -github.com/Azure/go-autorest/autorest v0.11.30 h1:iaZ1RGz/ALZtN5eq4Nr1SOFSlf2E4pDI3Tcsl+dZPVE= -github.com/Azure/go-autorest/autorest v0.11.30/go.mod h1:t1kpPIOpIVX7annvothKvb0stsrXa37i7b+xpmBW8Fs= -github.com/Azure/go-autorest/autorest/adal v0.9.18/go.mod h1:XVVeme+LZwABT8K5Lc3hA4nAe8LDBVle26gTrguhhPQ= -github.com/Azure/go-autorest/autorest/adal v0.9.22 h1:/GblQdIudfEM3AWWZ0mrYJQSd7JS4S/Mbzh6F0ov0Xc= -github.com/Azure/go-autorest/autorest/adal v0.9.22/go.mod h1:XuAbAEUv2Tta//+voMI038TrJBqjKam0me7qR+L8Cmk= -github.com/Azure/go-autorest/autorest/azure/auth v0.5.13 h1:Ov8avRZi2vmrE2JcXw+tu5K/yB41r7xK9GZDiBF7NdM= -github.com/Azure/go-autorest/autorest/azure/auth v0.5.13/go.mod h1:5BAVfWLWXihP47vYrPuBKKf4cS0bXI+KM9Qx6ETDJYo= -github.com/Azure/go-autorest/autorest/azure/cli v0.4.6 h1:w77/uPk80ZET2F+AfQExZyEWtn+0Rk/uw17m9fv5Ajc= -github.com/Azure/go-autorest/autorest/azure/cli v0.4.6/go.mod h1:piCfgPho7BiIDdEQ1+g4VmKyD5y+p/XtSNqE6Hc4QD0= -github.com/Azure/go-autorest/autorest/date v0.3.0 h1:7gUk1U5M/CQbp9WoqinNzJar+8KY+LPI6wiWrP/myHw= -github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= -github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= -github.com/Azure/go-autorest/autorest/mocks v0.4.2/go.mod h1:Vy7OitM9Kei0i1Oj+LvyAWMXJHeKH1MVlzFugfVrmyU= -github.com/Azure/go-autorest/autorest/to v0.2.0 h1:nQOZzFCudTh+TvquAtCRjM01VEYx85e9qbwt5ncW4L8= -github.com/Azure/go-autorest/autorest/to v0.2.0/go.mod h1:GunWKJp1AEqgMaGLV+iocmRAJWqST1wQYhyyjXJ3SJc= -github.com/Azure/go-autorest/logger v0.2.1 h1:IG7i4p/mDa2Ce4TRyAO8IHnVhAVF3RFU+ZtXWSmf4Tg= -github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= -github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo= -github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/DataDog/datadog-agent/comp/core/tagger/origindetection v0.71.0 h1:xjmjXOsiLfUF1wWXYXc8Gg6M7Jbz6a7FtqbnvGKfTvA= -github.com/DataDog/datadog-agent/comp/core/tagger/origindetection v0.71.0/go.mod h1:y05SPqKEtrigKul+JBVM69ehv3lOgyKwrUIwLugoaSI= -github.com/DataDog/datadog-agent/pkg/obfuscate v0.71.0 h1:jX8qS7CkNzL1fdcDptrOkbWpsRFTQ58ICjp/mj02u1k= -github.com/DataDog/datadog-agent/pkg/obfuscate v0.71.0/go.mod h1:B3T0If+WdWAwPMpawjm1lieJyqSI0v04dQZHq15WGxY= -github.com/DataDog/datadog-agent/pkg/opentelemetry-mapping-go/otlp/attributes v0.71.0 h1:bowQteds9+7I4Dd+CsBRVXdlMOOGuBm5zdUQdB/6j1M= -github.com/DataDog/datadog-agent/pkg/opentelemetry-mapping-go/otlp/attributes v0.71.0/go.mod h1:XeZj0IgsiL3vgeEGTucf61JvJRh1LxWMUbZA/XJsPD0= -github.com/DataDog/datadog-agent/pkg/proto v0.71.0 h1:YTwecwy8kF1zsL2HK6KVa7XLRZYZ0Ypb2anlG0zDLeE= -github.com/DataDog/datadog-agent/pkg/proto v0.71.0/go.mod h1:KSn4jt3CykV6CT1C8Rknn/Nj3E+VYHK/UDWolg/+kzw= -github.com/DataDog/datadog-agent/pkg/remoteconfig/state v0.73.0-rc.1 h1:fVqr9ApWmUMEExmgn8iFPfwm9ZrlEfFWgTKp1IcNH18= -github.com/DataDog/datadog-agent/pkg/remoteconfig/state v0.73.0-rc.1/go.mod h1:lwkSvCXABHXyqy6mG9WBU6MTK9/E0i0R8JVApUtT+XA= -github.com/DataDog/datadog-agent/pkg/trace v0.71.0 h1:9UrKHDacMlAWfP2wpSxrZOQbtkwLY2AOAjYgGkgM96Y= -github.com/DataDog/datadog-agent/pkg/trace v0.71.0/go.mod h1:wfVwOlKORIB4IB1vdncTuCTx/OrVU69TLBIiBpewe1Q= -github.com/DataDog/datadog-agent/pkg/util/log v0.71.0 h1:VJ+nm5E0+UdLPkg2H7FKapx0syNcKzCFXA2vfcHz0Bc= -github.com/DataDog/datadog-agent/pkg/util/log v0.71.0/go.mod h1:oG6f6Qe23zPTLOVh0nXjlIXohrjUGXeFjh7S3Na/WyU= -github.com/DataDog/datadog-agent/pkg/util/scrubber v0.71.0 h1:lA3CL+2yHU9gulyR/C0VssVzmvCs/jCHzt+CBs9uH4Q= -github.com/DataDog/datadog-agent/pkg/util/scrubber v0.71.0/go.mod h1:/JHi9UFqdFYy/SFmFozY26dNOl/ODVLSQaF1LKDPiBI= -github.com/DataDog/datadog-agent/pkg/version v0.71.0 h1:jqkKmhFrhHSLpiC3twQFDCXU7nyFcC1EnwagDQxFWVs= -github.com/DataDog/datadog-agent/pkg/version v0.71.0/go.mod h1:FYj51C1ib86rpr5tlLEep9jitqvljIJ5Uz2rrimGTeY= -github.com/DataDog/datadog-go v3.2.0+incompatible h1:qSG2N4FghB1He/r2mFrWKCaL7dXCilEuNEeAn20fdD4= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= -github.com/DataDog/datadog-go/v5 v5.6.0 h1:2oCLxjF/4htd55piM75baflj/KoE6VYS7alEUqFvRDw= -github.com/DataDog/datadog-go/v5 v5.6.0/go.mod h1:K9kcYBlxkcPP8tvvjZZKs/m1edNAUFzBbdpTUKfCsuw= -github.com/DataDog/dd-trace-go/v2 v2.5.0 h1:Tp4McT135WhbdT/6BYcAoRvl5gH7YKzehSo6Q3uuxBM= -github.com/DataDog/dd-trace-go/v2 v2.5.0/go.mod h1:A9rVmQfyzYUFCctFdKkli9us7G/YhXlMICpQ958wJUA= -github.com/DataDog/go-libddwaf/v4 v4.8.0 h1:m6Bl1lS2RtVN4MtdTYhR5vJ2fWQ3WmNy4FiNBpzrp6w= -github.com/DataDog/go-libddwaf/v4 v4.8.0/go.mod h1:/AZqP6zw3qGJK5mLrA0PkfK3UQDk1zCI2fUNCt4xftE= -github.com/DataDog/go-runtime-metrics-internal v0.0.4-0.20250721125240-fdf1ef85b633 h1:ZRLR9Lbym748e8RznWzmSoK+OfV+8qW6SdNYA4/IqdA= -github.com/DataDog/go-runtime-metrics-internal v0.0.4-0.20250721125240-fdf1ef85b633/go.mod h1:YFoTl1xsMzdSRFIu33oCSPS/3+HZAPGpO3oOM96wXCM= -github.com/DataDog/go-sqllexer v0.1.8 h1:ku9DpghFHeyyviR28W/3R4cCJwzpsuC08YIoltnx5ds= -github.com/DataDog/go-sqllexer v0.1.8/go.mod h1:GGpo1h9/BVSN+6NJKaEcJ9Jn44Hqc63Rakeb+24Mjgo= -github.com/DataDog/go-tuf v1.1.1-0.5.2 h1:YWvghV4ZvrQsPcUw8IOUMSDpqc3W5ruOIC+KJxPknv0= -github.com/DataDog/go-tuf v1.1.1-0.5.2/go.mod h1:zBcq6f654iVqmkk8n2Cx81E1JnNTMOAx1UEO/wZR+P0= -github.com/DataDog/sketches-go v1.4.7 h1:eHs5/0i2Sdf20Zkj0udVFWuCrXGRFig2Dcfm5rtcTxc= -github.com/DataDog/sketches-go v1.4.7/go.mod h1:eAmQ/EBmtSO+nQp7IZMZVRPT4BQTmIc5RZQ+deGlTPM= -github.com/Microsoft/go-winio v0.5.0/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84= -github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= -github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= github.com/RoaringBitmap/roaring v1.9.4 h1:yhEIoH4YezLYT04s1nHehNO64EKFTop/wBhxv2QzDdQ= github.com/RoaringBitmap/roaring v1.9.4/go.mod h1:6AXUsoIEzDTFFQCe1RbGA6uFONMhvejWj5rqITANK90= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= @@ -90,38 +23,6 @@ github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJ github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4= github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI= -github.com/aws/aws-sdk-go-v2 v1.41.1 h1:ABlyEARCDLN034NhxlRUSZr4l71mh+T5KAeGh6cerhU= -github.com/aws/aws-sdk-go-v2 v1.41.1/go.mod h1:MayyLB8y+buD9hZqkCW3kX1AKq07Y5pXxtgB+rRFhz0= -github.com/aws/aws-sdk-go-v2/config v1.32.7 h1:vxUyWGUwmkQ2g19n7JY/9YL8MfAIl7bTesIUykECXmY= -github.com/aws/aws-sdk-go-v2/config v1.32.7/go.mod h1:2/Qm5vKUU/r7Y+zUk/Ptt2MDAEKAfUtKc1+3U1Mo3oY= -github.com/aws/aws-sdk-go-v2/credentials v1.19.7 h1:tHK47VqqtJxOymRrNtUXN5SP/zUTvZKeLx4tH6PGQc8= -github.com/aws/aws-sdk-go-v2/credentials v1.19.7/go.mod h1:qOZk8sPDrxhf+4Wf4oT2urYJrYt3RejHSzgAquYeppw= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.17 h1:I0GyV8wiYrP8XpA70g1HBcQO1JlQxCMTW9npl5UbDHY= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.17/go.mod h1:tyw7BOl5bBe/oqvoIeECFJjMdzXoa/dfVz3QQ5lgHGA= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.17 h1:xOLELNKGp2vsiteLsvLPwxC+mYmO6OZ8PYgiuPJzF8U= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.17/go.mod h1:5M5CI3D12dNOtH3/mk6minaRwI2/37ifCURZISxA/IQ= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.17 h1:WWLqlh79iO48yLkj1v3ISRNiv+3KdQoZ6JWyfcsyQik= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.17/go.mod h1:EhG22vHRrvF8oXSTYStZhJc1aUgKtnJe+aOiFEV90cM= -github.com/aws/aws-sdk-go-v2/internal/ini v1.8.4 h1:WKuaxf++XKWlHWu9ECbMlha8WOEGm0OUEZqm4K/Gcfk= -github.com/aws/aws-sdk-go-v2/internal/ini v1.8.4/go.mod h1:ZWy7j6v1vWGmPReu0iSGvRiise4YI5SkR3OHKTZ6Wuc= -github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.4 h1:0ryTNEdJbzUCEWkVXEXoqlXV72J5keC1GvILMOuD00E= -github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.4/go.mod h1:HQ4qwNZh32C3CBeO6iJLQlgtMzqeG17ziAA/3KDJFow= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.17 h1:RuNSMoozM8oXlgLG/n6WLaFGoea7/CddrCfIiSA+xdY= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.17/go.mod h1:F2xxQ9TZz5gDWsclCtPQscGpP0VUOc8RqgFM3vDENmU= -github.com/aws/aws-sdk-go-v2/service/route53 v1.62.1 h1:1jIdwWOulae7bBLIgB36OZ0DINACb1wxM6wdGlx4eHE= -github.com/aws/aws-sdk-go-v2/service/route53 v1.62.1/go.mod h1:tE2zGlMIlxWv+7Otap7ctRp3qeKqtnja7DZguj3Vu/Y= -github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.41.1 h1:72DBkm/CCuWx2LMHAXvLDkZfzopT3psfAeyZDIt1/yE= -github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.41.1/go.mod h1:A+oSJxFvzgjZWkpM0mXs3RxB5O1SD6473w3qafOC9eU= -github.com/aws/aws-sdk-go-v2/service/signin v1.0.5 h1:VrhDvQib/i0lxvr3zqlUwLwJP4fpmpyD9wYG1vfSu+Y= -github.com/aws/aws-sdk-go-v2/service/signin v1.0.5/go.mod h1:k029+U8SY30/3/ras4G/Fnv/b88N4mAfliNn08Dem4M= -github.com/aws/aws-sdk-go-v2/service/sso v1.30.9 h1:v6EiMvhEYBoHABfbGB4alOYmCIrcgyPPiBE1wZAEbqk= -github.com/aws/aws-sdk-go-v2/service/sso v1.30.9/go.mod h1:yifAsgBxgJWn3ggx70A3urX2AN49Y5sJTD1UQFlfqBw= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.13 h1:gd84Omyu9JLriJVCbGApcLzVR3XtmC4ZDPcAI6Ftvds= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.13/go.mod h1:sTGThjphYE4Ohw8vJiRStAcu3rbjtXRsdNB0TvZ5wwo= -github.com/aws/aws-sdk-go-v2/service/sts v1.41.6 h1:5fFjR/ToSOzB2OQ/XqWpZBmNvmP/pJ1jOWYlFDJTjRQ= -github.com/aws/aws-sdk-go-v2/service/sts v1.41.6/go.mod h1:qgFDZQSD/Kys7nJnVqYlWKnh0SSdMjAi0uSwON4wgYQ= -github.com/aws/smithy-go v1.24.0 h1:LpilSUItNPFr1eY85RYgTIg5eIEPtvFbskaFcmmIUnk= -github.com/aws/smithy-go v1.24.0/go.mod h1:LEj2LM3rBRQJxPZTB4KuzZkaZYnZPnvgIhb4pu07mx0= github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k= github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8= github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= @@ -146,8 +47,6 @@ github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtyd github.com/buger/jsonparser v0.0.0-20181115193947-bf1c66bbce23/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= github.com/buraksezer/consistent v0.10.0 h1:hqBgz1PvNLC5rkWcEBVAL9dFMBWz6I0VgUCW25rrZlU= github.com/buraksezer/consistent v0.10.0/go.mod h1:6BrVajWq7wbKZlTOUPs/XVfR8c0maujuPowduSpZqmw= -github.com/cenkalti/backoff/v5 v5.0.3 h1:ZN+IMa753KfX5hd8vVaMixjnqRZ3y8CuJKRKj1xcsSM= -github.com/cenkalti/backoff/v5 v5.0.3/go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F97BxZthm/crw= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= @@ -161,8 +60,6 @@ github.com/charmbracelet/x/ansi v0.4.5 h1:LqK4vwBNaXw2AyGIICa5/29Sbdq58GbGdFngSe github.com/charmbracelet/x/ansi v0.4.5/go.mod h1:dk73KoMTT5AX5BsX0KrqhsTqAnhZZoCBjs7dGWp4Ktw= github.com/charmbracelet/x/term v0.2.1 h1:AQeHeLZ1OqSXhrAWpYUtZyX1T3zVxfpZuEQMIQaGIAQ= github.com/charmbracelet/x/term v0.2.1/go.mod h1:oQ4enTYFV7QN4m0i9mzHrViD7TQKvNEEkHUMCmsxdUg= -github.com/cihub/seelog v0.0.0-20170130134532-f561c5e57575 h1:kHaBemcxl8o/pQ5VM1c8PVE1PubbNx3mjUr09OqWGCs= -github.com/cihub/seelog v0.0.0-20170130134532-f561c5e57575/go.mod h1:9d6lWj8KzO/fd/NrVaLscBKmPigpZpn5YawRPw+e3Yo= github.com/cilium/ebpf v0.2.0/go.mod h1:To2CFviqOWL/M0gIMsvSMlqe7em/l1ALkX1PyjrX2Qs= github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= @@ -174,10 +71,6 @@ github.com/coredns/caddy v1.1.4 h1:+Lls5xASB0QsA2jpCroCOwpPlb5GjIGlxdjXxdX0XVo= github.com/coredns/caddy v1.1.4/go.mod h1:A6ntJQlAWuQfFlsd9hvigKbo2WS0VUs2l1e2F+BawD4= github.com/coredns/coredns v1.12.1 h1:haptbGscSbdWU46xrjdPj1vp3wvH1Z2FgCSQKEdgN5s= github.com/coredns/coredns v1.12.1/go.mod h1:V26ngiKdNvAiEre5PTAvklrvTjnNjl6lakq1nbE/NbU= -github.com/coredns/coredns v1.14.1 h1:U7ZvMsMn3IfXhaiEHKkW0wsCKG4H5dPvWyMeSLhAodM= -github.com/coredns/coredns v1.14.1/go.mod h1:oYbISnKw+U930dyDU+VVJ+VCWpRD/frU7NfHlqeqH7U= -github.com/coreos/go-semver v0.3.1 h1:yi21YpKnrx1gt5R+la8n5WgS0kCrsPp33dmEyHReZr4= -github.com/coreos/go-semver v0.3.1/go.mod h1:irMmmIw/7yzSRPWryHsK7EYSg09caPQL03VsM8rvUec= github.com/coreos/go-systemd v0.0.0-20181012123002-c6f51f82210d/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd/v22 v22.1.0/go.mod h1:xO0FLkIi5MaZafQlIrOotqXZ90ih+1atmu1JpKERPPk= github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs= @@ -185,9 +78,7 @@ github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSV github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -197,38 +88,19 @@ github.com/decred/dcrd/crypto/blake256 v1.1.0 h1:zPMNGQCm0g4QTY27fOCorQW7EryeQ/U github.com/decred/dcrd/crypto/blake256 v1.1.0/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 h1:NMZiJj8QnKe1LgsbDayM4UoHwbvwDRwnI3hwNaAHRnc= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0/go.mod h1:ZXNYxsqcloTdSy/rNShjYzMhyjf0LaoftYK0p+A3h40= -github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78= github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= -github.com/dimchansky/utfbom v1.1.1 h1:vV6w1AhK4VMnhBno/TPVCoK9U/LP0PkLCS9tbxHdi/U= -github.com/dimchansky/utfbom v1.1.1/go.mod h1:SxdoEBH5qIqFocHMyGOXVAybYJdr71b1Q/j0mACtrfE= -github.com/dnstap/golang-dnstap v0.4.0 h1:KRHBoURygdGtBjDI2w4HifJfMAhhOqDuktAokaSa234= -github.com/dnstap/golang-dnstap v0.4.0/go.mod h1:FqsSdH58NAmkAvKcpyxht7i4FoBjKu8E4JUPt8ipSUs= github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/dunglas/httpsfv v1.1.0 h1:Jw76nAyKWKZKFrpMMcL76y35tOpYHqQPzHQiwDvpe54= -github.com/dunglas/httpsfv v1.1.0/go.mod h1:zID2mqw9mFsnt7YC3vYQ9/cjq30q41W+1AnDwH8TiMg= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= -github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= -github.com/ebitengine/purego v0.8.4 h1:CF7LEKg5FFOsASUj0+QwaXf8Ht6TlFxg09+S9wz0omw= -github.com/ebitengine/purego v0.8.4/go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ= github.com/elastic/gosigar v0.12.0/go.mod h1:iXRIGg2tLnu7LBdpqzyQfGDEidKCfWcCMS0WKyPWoMs= github.com/elastic/gosigar v0.14.3 h1:xwkKwPia+hSfg9GqrCUKYdId102m9qTJIIr7egmK/uo= github.com/elastic/gosigar v0.14.3/go.mod h1:iXRIGg2tLnu7LBdpqzyQfGDEidKCfWcCMS0WKyPWoMs= -github.com/emicklei/go-restful/v3 v3.12.2 h1:DhwDP0vY3k8ZzE0RunuJy8GhNpPL6zqLkDf9B/a0/xU= -github.com/emicklei/go-restful/v3 v3.12.2/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6baUTXGLOoWe4PQhGxaX0KpnayAqC48p4= github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f/go.mod h1:vw97MGsxSvLiUE2X8qFplwetxpGLQrlU1Q9AUEIzCaM= github.com/ethereum/go-ethereum v1.13.14 h1:EwiY3FZP94derMCIam1iW4HFVrSgIcpsu0HwTQtm6CQ= github.com/ethereum/go-ethereum v1.13.14/go.mod h1:TN8ZiHrdJwSe8Cb6x+p0hs5CxhJZPbqB7hHkaUXcmIU= -github.com/expr-lang/expr v1.17.7 h1:Q0xY/e/2aCIp8g9s/LGvMDCC5PxYlvHgDZRQ4y16JX8= -github.com/expr-lang/expr v1.17.7/go.mod h1:8/vRC7+7HBzESEqt5kKpYXxrxkr31SaO8r40VO/1IT4= -github.com/farsightsec/golang-framestream v0.3.0 h1:/spFQHucTle/ZIPkYqrfshQqPe2VQEzesH243TjIwqA= -github.com/farsightsec/golang-framestream v0.3.0/go.mod h1:eNde4IQyEiA5br02AouhEHCu3p3UzrCdFR4LuQHklMI= -github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= -github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 h1:BHsljHzVlRcyQhjrss6TZTdY2VfCqZPbv5k3iBFa2ZQ= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/flynn/noise v1.1.0 h1:KjPQoQCEFdZDiP03phOvGi11+SVVhBG2wOWAorLsstg= @@ -236,8 +108,6 @@ github.com/flynn/noise v1.1.0/go.mod h1:xbMo+0i6+IGbYdJhF31t2eR1BIU0CYc12+BNAKwU github.com/francoispqt/gojay v1.2.13 h1:d2m3sFjloqoIUQU3TsHBgj6qg/BVGlTBeHDUmyJnXKk= github.com/francoispqt/gojay v1.2.13/go.mod h1:ehT5mTG4ua4581f1++1WLG0vPdaA9HaiDsoyrBGkyDY= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/fxamacker/cbor/v2 v2.9.0 h1:NpKPmjDBgUfBms6tr6JZkTHtfFGcMKsw3eGcmD/sapM= -github.com/fxamacker/cbor/v2 v2.9.0/go.mod h1:vM4b+DJCtHn+zz7h3FFp/hDAI9WNWCsZj23V5ytsSxQ= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/go-chi/chi/v5 v5.2.3 h1:WQIt9uxdsAbgIYgid+BpYc+liqQZGMHRaUwp0JUcvdE= @@ -249,24 +119,10 @@ github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vb github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= -github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= -github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= -github.com/go-ole/go-ole v1.3.0 h1:Dt6ye7+vXGIKZ7Xtk4s6/xVdGDQynvom7xCFEdWr6uE= -github.com/go-ole/go-ole v1.3.0/go.mod h1:5LS6F96DhAwUc7C+1HLexzMXY1xGRSryjyPPKW6zv78= -github.com/go-openapi/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs= -github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= -github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= -github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2KvnJRumpMGbE= -github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k= -github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= -github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= -github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= @@ -278,16 +134,10 @@ github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7a github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= -github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= -github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= -github.com/golang-jwt/jwt/v4 v4.5.2 h1:YtQM7lnr8iZ+j5q71MGKkNw9Mn7AjHM68uc9g5fXeUI= -github.com/golang-jwt/jwt/v4 v4.5.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/lint v0.0.0-20180702182130-06c8688daad7/go.mod h1:tluoj9z5200jBnyusfRPU2LqT6J+DAorxEvtC7LHB+E= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -303,8 +153,6 @@ github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6 github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg= github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= -github.com/google/gnostic-models v0.7.0 h1:qwTtogB15McXDaNqTZdzPJRHvaVJlAl+HVQnLmJEJxo= -github.com/google/gnostic-models v0.7.0/go.mod h1:whL5G0m6dmc5cPxKc5bdKdEN3UjI7OUGxBlw57miDrQ= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -323,38 +171,22 @@ github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXi github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20250208200701-d0013a598941 h1:43XjGa6toxLpeksjcxs1jIoIyr+vUfOqY2c6HB4bpoc= github.com/google/pprof v0.0.0-20250208200701-d0013a598941/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144= -github.com/google/s2a-go v0.1.9 h1:LGD7gtMgezd8a/Xak7mEWL0PjoTQFvpRudN895yqKW0= -github.com/google/s2a-go v0.1.9/go.mod h1:YA0Ei2ZQL3acow2O62kdp9UlnvMmU7kA6Eutn0dXayM= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.3.7 h1:zrn2Ee/nWmHulBx5sAVrGgAa0f2/R35S4DJwfFaUPFQ= -github.com/googleapis/enterprise-certificate-proxy v0.3.7/go.mod h1:MkHOF77EYAE7qfSuSS9PU6g4Nt4e11cnsDUowfwewLA= -github.com/googleapis/gax-go v2.0.0+incompatible h1:j0GKcs05QVmm7yesiZq2+9cxHkNK9YM6zKx4D2qucQU= github.com/googleapis/gax-go v2.0.0+incompatible/go.mod h1:SFVmujtThgffbyetf+mdk2eWhX2bMyUtNHzFKcPA9HY= github.com/googleapis/gax-go/v2 v2.0.3/go.mod h1:LLvjysVCY1JZeum8Z6l8qUty8fiNwE08qbEPm1M08qg= -github.com/googleapis/gax-go/v2 v2.16.0 h1:iHbQmKLLZrexmb0OSsNGTeSTS0HO4YvFOG8g5E4Zd0Y= -github.com/googleapis/gax-go/v2 v2.16.0/go.mod h1:o1vfQjjNZn4+dPnRdl/4ZD7S9414Y4xA+a/6Icj6l14= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg= -github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 h1:JeSE6pjso5THxAzdVpqr6/geYxZytqFMBCOtn/ujyeo= github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674/go.mod h1:r4w70xmWCQKmi1ONH4KIaBptdivuRPyosB9RmPlGEwA= github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= -github.com/grpc-ecosystem/grpc-gateway v1.5.0 h1:WcmKMm43DR7RdtlkEXQJyo5ws8iTp98CyhCCbOHMvNI= github.com/grpc-ecosystem/grpc-gateway v1.5.0/go.mod h1:RSKVYQBd5MCa4OVpNdGskqpgL2+G+NZTnrVHpWWfpdw= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2 h1:8Tjv8EJ+pM1xP8mK6egEbD1OgnVTyacbefKhmbLhIhU= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2/go.mod h1:pkJQ2tZHJ0aFOVEEot6oZmaVEZcRme73eIFmhiVuRWs= github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 h1:MJG/KsmcqMwFAkh8mTnAwhyKoB+sTAnY4CACC110tbU= github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645/go.mod h1:6iZfnjpejD4L/4DwD7NryNaJyCQdzwWwH2MWhCA90Kw= -github.com/hashicorp/cronexpr v1.1.3 h1:rl5IkxXN2m681EfivTlccqIryzYJSXRGRNa0xeG7NA4= -github.com/hashicorp/cronexpr v1.1.3/go.mod h1:P4wA0KBl9C5q2hABiMO7cp6jcIg96CDh1Efb3g1PWA4= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= -github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= @@ -365,14 +197,11 @@ github.com/hashicorp/go-msgpack/v2 v2.1.3/go.mod h1:SjlwKKFnwBXvxD/I1bEcfJIBbEJ+ github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= -github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc= -github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= github.com/hashicorp/go-sockaddr v1.0.7 h1:G+pTkSO01HpR5qCxg7lxfsFEZaG+C0VssTy/9dbT+Fw= github.com/hashicorp/go-sockaddr v1.0.7/go.mod h1:FZQbEYa1pxkQ7WLpyXJ6cbjpT8q0YgQaK/JakXqGyWw= -github.com/hashicorp/go-uuid v1.0.0 h1:RS8zrF7PhGwyNPOtxSClXXj9HA8feRnJzgnI1RJCSnM= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY= -github.com/hashicorp/go-version v1.7.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= +github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= @@ -382,16 +211,12 @@ github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= github.com/hashicorp/memberlist v0.5.3 h1:tQ1jOCypD0WvMemw/ZhhtH+PWpzcftQvgCorLu0hndk= github.com/hashicorp/memberlist v0.5.3/go.mod h1:h60o12SZn/ua/j0B6iKAZezA4eDaGsIuPO70eOaJ6WE= -github.com/hashicorp/nomad/api v0.0.0-20250909143645-a3b86c697f38 h1:1LTbcTpGdSdbj0ee7YZHNe4R2XqxfyWwIkSGWRhgkfM= -github.com/hashicorp/nomad/api v0.0.0-20250909143645-a3b86c697f38/go.mod h1:0Tdp+9HbvwrxprXv/LfYZ8P21bOl4oA8Afyet1kUvhI= github.com/holiman/uint256 v1.2.4 h1:jUc4Nk8fm9jZabQuqr2JzednajVmBpC+oiTiXZJEApU= github.com/holiman/uint256 v1.2.4/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E= github.com/huin/goupnp v1.3.0 h1:UvLUlWDNpoUdYzb2TCn+MuTWtcjXKSza2n6CBdQ0xXc= github.com/huin/goupnp v1.3.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/infobloxopen/go-trees v0.0.0-20200715205103-96a057b8dfb9 h1:w66aaP3c6SIQ0pi3QH1Tb4AMO3aWoEPxd1CNvLphbkA= -github.com/infobloxopen/go-trees v0.0.0-20200715205103-96a057b8dfb9/go.mod h1:BaIJzjD2ZnHmx2acPF6XfGLPzNCMiBbMRqJr+8/8uRI= github.com/ipfs/go-cid v0.5.0 h1:goEKKhaGm0ul11IHA7I6p1GmKz8kEYniqFopaB5Otwg= github.com/ipfs/go-cid v0.5.0/go.mod h1:0L7vmeNXpQpUS9vt+yEARkJ8rOg43DF3iPgn4GIN0mk= github.com/ipfs/go-log/v2 v2.6.0 h1:2Nu1KKQQ2ayonKp4MPo6pXCjqw1ULc9iohRqWV5EYqg= @@ -401,15 +226,11 @@ github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+ github.com/jbenet/go-temp-err-catcher v0.1.0 h1:zpb3ZH6wIE8Shj2sKS+khgRvf7T7RABoLk/+KKHggpk= github.com/jbenet/go-temp-err-catcher v0.1.0/go.mod h1:0kJRvmDZXNMIiJirNPEYfhpPwbGVtZVWC34vc5WLsDk= github.com/jellevandenhooff/dkim v0.0.0-20150330215556-f50fe3d243e1/go.mod h1:E0B/fFc00Y+Rasa88328GlI/XbtyysCtTHZS8h7IrBU= -github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= -github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= -github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= @@ -422,8 +243,6 @@ github.com/klauspost/cpuid/v2 v2.2.10 h1:tBs3QSyvjDyFTq3uoc/9xFpCuOsJQFNPiAhYdw2 github.com/klauspost/cpuid/v2 v2.2.10/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/koron/go-ssdp v0.0.5 h1:E1iSMxIs4WqxTbIBLtmNBeOOC+1sCIXQeqTWVnpmwhk= -github.com/koron/go-ssdp v0.0.5/go.mod h1:Qm59B7hpKpDqfyRNWRNr00jGwLdXjDyZh6y7rH6VS0w= github.com/koron/go-ssdp v0.0.6 h1:Jb0h04599eq/CY7rB5YEqPS83HmRfHP2azkxMN2rFtU= github.com/koron/go-ssdp v0.0.6/go.mod h1:0R9LfRJGek1zWTjN3JUNlm5INCDYGpRDfAptnct63fI= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= @@ -442,8 +261,6 @@ github.com/libp2p/go-flow-metrics v0.2.0 h1:EIZzjmeOE6c8Dav0sNv35vhZxATIXWZg6j/C github.com/libp2p/go-flow-metrics v0.2.0/go.mod h1:st3qqfu8+pMfh+9Mzqb2GTiwrAGjIPszEjZmtksN8Jc= github.com/libp2p/go-libp2p v0.41.1 h1:8ecNQVT5ev/jqALTvisSJeVNvXYJyK4NhQx1nNRXQZE= github.com/libp2p/go-libp2p v0.41.1/go.mod h1:DcGTovJzQl/I7HMrby5ZRjeD0kQkGiy+9w6aEkSZpRI= -github.com/libp2p/go-libp2p v0.46.0 h1:0T2yvIKpZ3DVYCuPOFxPD1layhRU486pj9rSlGWYnDM= -github.com/libp2p/go-libp2p v0.46.0/go.mod h1:TbIDnpDjBLa7isdgYpbxozIVPBTmM/7qKOJP4SFySrQ= github.com/libp2p/go-libp2p-asn-util v0.4.1 h1:xqL7++IKD9TBFMgnLPZR6/6iYhawHKHl950SO9L6n94= github.com/libp2p/go-libp2p-asn-util v0.4.1/go.mod h1:d/NI6XZ9qxw67b4e+NgpQexCIiFYJjErASrYW4PFDN8= github.com/libp2p/go-libp2p-pubsub v0.14.2 h1:nT5lFHPQOFJcp9CW8hpKtvbpQNdl2udJuzLQWbgRum8= @@ -452,26 +269,18 @@ github.com/libp2p/go-libp2p-testing v0.12.0 h1:EPvBb4kKMWO29qP4mZGyhVzUyR25dvfUI github.com/libp2p/go-libp2p-testing v0.12.0/go.mod h1:KcGDRXyN7sQCllucn1cOOS+Dmm7ujhfEyXQL5lvkcPg= github.com/libp2p/go-msgio v0.3.0 h1:mf3Z8B1xcFN314sWX+2vOTShIE0Mmn2TXn3YCUQGNj0= github.com/libp2p/go-msgio v0.3.0/go.mod h1:nyRM819GmVaF9LX3l03RMh10QdOroF++NBbxAb0mmDM= -github.com/libp2p/go-netroute v0.2.2 h1:Dejd8cQ47Qx2kRABg6lPwknU7+nBnFRpko45/fFPuZ8= -github.com/libp2p/go-netroute v0.2.2/go.mod h1:Rntq6jUAH0l9Gg17w5bFGhcC9a+vk4KNXs6s7IljKYE= github.com/libp2p/go-netroute v0.3.0 h1:nqPCXHmeNmgTJnktosJ/sIef9hvwYCrsLxXmfNks/oc= github.com/libp2p/go-netroute v0.3.0/go.mod h1:Nkd5ShYgSMS5MUKy/MU2T57xFoOKvvLR92Lic48LEyA= github.com/libp2p/go-reuseport v0.4.0 h1:nR5KU7hD0WxXCJbmw7r2rhRYruNRl2koHw8fQscQm2s= github.com/libp2p/go-reuseport v0.4.0/go.mod h1:ZtI03j/wO5hZVDFo2jKywN6bYKWLOy8Se6DrI2E1cLU= -github.com/libp2p/go-yamux/v5 v5.0.0 h1:2djUh96d3Jiac/JpGkKs4TO49YhsfLopAoryfPmf+Po= -github.com/libp2p/go-yamux/v5 v5.0.0/go.mod h1:en+3cdX51U0ZslwRdRLrvQsdayFt3TSUKvBGErzpWbU= github.com/libp2p/go-yamux/v5 v5.0.1 h1:f0WoX/bEF2E8SbE4c/k1Mo+/9z0O4oC/hWEA+nfYRSg= github.com/libp2p/go-yamux/v5 v5.0.1/go.mod h1:en+3cdX51U0ZslwRdRLrvQsdayFt3TSUKvBGErzpWbU= github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY= github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= -github.com/lufia/plan9stats v0.0.0-20250317134145-8bc96cf8fc35 h1:PpXWgLPs+Fqr325bN2FD2ISlRRztXibcX6e8f5FR5Dc= -github.com/lufia/plan9stats v0.0.0-20250317134145-8bc96cf8fc35/go.mod h1:autxFIvghDt3jPTLoqZ9OZ7s9qTGNAWmYCjVFWPX/zg= github.com/lunixbochs/vtclean v1.0.0/go.mod h1:pHhQNgMf3btfWnGBVipUOjRYhoOsdGqdm/+2c2E2WMI= github.com/mackerelio/go-osstat v0.2.6 h1:gs4U8BZeS1tjrL08tt5VUliVvSWP26Ai2Ob8Lr7f2i0= github.com/mackerelio/go-osstat v0.2.6/go.mod h1:lRy8V9ZuHpuRVZh+vyTkODeDPl3/d5MgXHtLSaqG8bA= github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= -github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd h1:br0buuQ854V8u83wA0rVZ8ttrq5CpaPZdvrK0LP2lOk= github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd/go.mod h1:QuCEs1Nt24+FYQEqAAncTDPJIuGs+LxK1MCiFL25pMU= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= @@ -488,9 +297,6 @@ github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfr github.com/mdp/qrterminal/v3 v3.2.1 h1:6+yQjiiOsSuXT5n9/m60E54vdgFsw0zhADHhHLrFet4= github.com/mdp/qrterminal/v3 v3.2.1/go.mod h1:jOTmXvnBsMy5xqLniO0R++Jmjs2sTm9dFSuQ5kpz/SU= github.com/microcosm-cc/bluemonday v1.0.1/go.mod h1:hsXNsILzKxV+sX77C5b8FSuKF00vh2OMYv+xgHpAMF4= -github.com/miekg/dns v1.1.31/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= -github.com/miekg/dns v1.1.66 h1:FeZXOS3VCVsKnEAd+wBkjMC3D2K+ww66Cq3VnCINuJE= -github.com/miekg/dns v1.1.66/go.mod h1:jGFzBsSNbJw6z1HYut1RKBKHA9PBdxeHrZG8J+gC2WE= github.com/miekg/dns v1.1.70 h1:DZ4u2AV35VJxdD9Fo9fIWm119BsQL5cZU1cQ9s0LkqA= github.com/miekg/dns v1.1.70/go.mod h1:+EuEPhdHOsfk6Wk5TT2CzssZdqkmFhf8r+aVyDEToIs= github.com/mikioh/tcp v0.0.0-20190314235350-803a9b46060c h1:bzE/A84HN25pxAuk9Eej1Kz9OUelF97nAc82bDquQI8= @@ -503,20 +309,10 @@ github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1/go.mod h1:pD8Rv github.com/minio/sha256-simd v0.1.1-0.20190913151208-6de447530771/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= github.com/minio/sha256-simd v1.0.1 h1:6kaan5IFmwTNynnKKpDHe6FWHohJOHhCPchzK49dzMM= github.com/minio/sha256-simd v1.0.1/go.mod h1:Pz6AKMiUdngCLpeTL/RJY1M9rUuPMYujV5xJjtbRSN8= -github.com/minio/simdjson-go v0.4.5 h1:r4IQwjRGmWCQ2VeMc7fGiilu1z5du0gJ/I/FsKwgo5A= -github.com/minio/simdjson-go v0.4.5/go.mod h1:eoNz0DcLQRyEDeaPr4Ru6JpjlZPzbA0IodxVJk8lO8E= -github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= -github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/mapstructure v1.5.1-0.20231216201459-8508981c8b6c h1:cqn374mizHuIWj+OSJCajGr/phAmuMug9qIX3l9CflE= -github.com/mitchellh/mapstructure v1.5.1-0.20231216201459-8508981c8b6c/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= -github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee h1:W5t00kpgFdJifH4BDsTlE89Zl93FEloxaWZfGcifgq8= -github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/mr-tron/base58 v1.1.2/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o= github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= @@ -533,8 +329,6 @@ github.com/multiformats/go-base32 v0.1.0/go.mod h1:Kj3tFY6zNr+ABYMqeUNeGvkIC/UYg github.com/multiformats/go-base36 v0.2.0 h1:lFsAbNOGeKtuKozrtBsAkSVhv1p9D0/qedU9rQyccr0= github.com/multiformats/go-base36 v0.2.0/go.mod h1:qvnKE++v+2MWCfePClUEjE78Z7P2a1UV0xHgWc0hkp4= github.com/multiformats/go-multiaddr v0.1.1/go.mod h1:aMKBKNEYmzmDmxfX88/vz+J5IU55txyt0p4aiWVohjo= -github.com/multiformats/go-multiaddr v0.15.0 h1:zB/HeaI/apcZiTDwhY5YqMvNVl/oQYvs3XySU+qeAVo= -github.com/multiformats/go-multiaddr v0.15.0/go.mod h1:JSVUmXDjsVFiW7RjIFMP7+Ev+h1DTbiJgVeTV/tcmP0= github.com/multiformats/go-multiaddr v0.16.0 h1:oGWEVKioVQcdIOBlYM8BH1rZDWOGJSqr9/BKl6zQ4qc= github.com/multiformats/go-multiaddr v0.16.0/go.mod h1:JSVUmXDjsVFiW7RjIFMP7+Ev+h1DTbiJgVeTV/tcmP0= github.com/multiformats/go-multiaddr-dns v0.4.1 h1:whi/uCLbDS3mSEUMb1MsoT4uzUeZB0N32yzufqS0i5M= @@ -543,15 +337,11 @@ github.com/multiformats/go-multiaddr-fmt v0.1.0 h1:WLEFClPycPkp4fnIzoFoV9FVd49/e github.com/multiformats/go-multiaddr-fmt v0.1.0/go.mod h1:hGtDIW4PU4BqJ50gW2quDuPVjyWNZxToGUh/HwTZYJo= github.com/multiformats/go-multibase v0.2.0 h1:isdYCVLvksgWlMW9OZRYJEa9pZETFivncJHmHnnd87g= github.com/multiformats/go-multibase v0.2.0/go.mod h1:bFBZX4lKCA/2lyOFSAoKH5SS6oPyjtnzK/XTFDPkNuk= -github.com/multiformats/go-multicodec v0.9.0 h1:pb/dlPnzee/Sxv/j4PmkDRxCOi3hXTz3IbPKOXWJkmg= -github.com/multiformats/go-multicodec v0.9.0/go.mod h1:L3QTQvMIaVBkXOXXtVmYE+LI16i14xuaojr/H7Ai54k= github.com/multiformats/go-multicodec v0.9.1 h1:x/Fuxr7ZuR4jJV4Os5g444F7xC4XmyUaT/FWtE+9Zjo= github.com/multiformats/go-multicodec v0.9.1/go.mod h1:LLWNMtyV5ithSBUo3vFIMaeDy+h3EbkMTek1m+Fybbo= github.com/multiformats/go-multihash v0.0.8/go.mod h1:YSLudS+Pi8NHE7o6tb3D8vrpKa63epEDmG8nTduyAew= github.com/multiformats/go-multihash v0.2.3 h1:7Lyc8XfX/IY2jWb/gI7JP+o7JEq9hOa7BFvVU9RSh+U= github.com/multiformats/go-multihash v0.2.3/go.mod h1:dXgKXCXjBzdscBLk9JkjINiEsCKRVch90MdaGiKsvSM= -github.com/multiformats/go-multistream v0.6.0 h1:ZaHKbsL404720283o4c/IHQXiS6gb8qAN5EIJ4PN5EA= -github.com/multiformats/go-multistream v0.6.0/go.mod h1:MOyoG5otO24cHIg8kf9QW2/NozURlkP/rvi2FQJyCPg= github.com/multiformats/go-multistream v0.6.1 h1:4aoX5v6T+yWmc2raBHsTvzmFhOI8WVOer28DeBBEYdQ= github.com/multiformats/go-multistream v0.6.1/go.mod h1:ksQf6kqHAb6zIsyw7Zm+gAuVo57Qbq84E27YlYqavqw= github.com/multiformats/go-varint v0.0.7 h1:sWSGR+f/eu5ABZA2ZpYKBILXTTs9JWpdEM/nEGOHFS8= @@ -571,42 +361,22 @@ github.com/onsi/gomega v1.36.2/go.mod h1:DdwyADRjrc825LhMEkD76cHR5+pUnjhUN8GlHlR github.com/opencontainers/runtime-spec v1.0.2/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= github.com/opencontainers/runtime-spec v1.2.0 h1:z97+pHb3uELt/yiAWD691HNHQIF07bE7dzrbT927iTk= github.com/opencontainers/runtime-spec v1.2.0/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492 h1:lM6RxxfUMrYL/f8bWEUqdXrANWtrL7Nndbm9iFN0DlU= -github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= -github.com/openzipkin-contrib/zipkin-go-opentracing v0.5.0 h1:uhcF5Jd7rP9DVEL10Siffyepr6SvlKbUsjH5JpNCRi8= -github.com/openzipkin-contrib/zipkin-go-opentracing v0.5.0/go.mod h1:+oCZ5GXXr7KPI/DNOQORPTq5AWHfALJj9c72b0+YsEY= github.com/openzipkin/zipkin-go v0.1.1/go.mod h1:NtoC/o8u3JlF1lSlyPNswIbeQH9bJTmOf0Erfk+hxe8= -github.com/openzipkin/zipkin-go v0.4.3 h1:9EGwpqkgnwdEIJ+Od7QVSEIH+ocmm5nPat0G7sjsSdg= -github.com/openzipkin/zipkin-go v0.4.3/go.mod h1:M9wCJZFWCo2RiY+o1eBCEMe0Dp2S5LDHcMZmk3RmK7c= -github.com/oschwald/geoip2-golang/v2 v2.1.0 h1:DjnLhNJu9WHwTrmoiQFvgmyJoczhdnm7LB23UBI2Amo= -github.com/oschwald/geoip2-golang/v2 v2.1.0/go.mod h1:qdVmcPgrTJ4q2eP9tHq/yldMTdp2VMr33uVdFbHBiBc= -github.com/oschwald/maxminddb-golang/v2 v2.1.1 h1:lA8FH0oOrM4u7mLvowq8IT6a3Q/qEnqRzLQn9eH5ojc= -github.com/oschwald/maxminddb-golang/v2 v2.1.1/go.mod h1:PLdx6PR+siSIoXqqy7C7r3SB3KZnhxWr1Dp6g0Hacl8= -github.com/outcaste-io/ristretto v0.2.3 h1:AK4zt/fJ76kjlYObOeNwh4T3asEuaCmp26pOvUOL9w0= -github.com/outcaste-io/ristretto v0.2.3/go.mod h1:W8HywhmtlopSB1jeMg3JtdIhf+DYkLAr0VN/s4+MHac= github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 h1:onHthvaw9LFnH4t2DcNVpwGmV9E1BkGknEliJkfwQj0= github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58/go.mod h1:DXv8WO4yhMYhSNPKjeNKa5WY9YCIEBRbNzFFPJbWO6Y= -github.com/philhofer/fwd v1.2.0 h1:e6DnBTl7vGY+Gz322/ASL4Gyp1FspeMvx1RNDoToZuM= -github.com/philhofer/fwd v1.2.0/go.mod h1:RqIHx9QI14HlwKwm98g9Re5prTQ6LdeRQn+gXJFxsJM= github.com/pion/datachannel v1.5.10 h1:ly0Q26K1i6ZkGf42W7D4hQYR90pZwzFOjTq5AuCKk4o= github.com/pion/datachannel v1.5.10/go.mod h1:p/jJfC9arb29W7WrxyKbepTU20CFgyx5oLo8Rs4Py/M= github.com/pion/dtls/v2 v2.2.7/go.mod h1:8WiMkebSHFD0T+dIU+UeBaoV7kDhOW5oDCzZ7WZ/F9s= github.com/pion/dtls/v2 v2.2.12 h1:KP7H5/c1EiVAAKUmXyCzPiQe5+bCJrpOeKg/L05dunk= github.com/pion/dtls/v2 v2.2.12/go.mod h1:d9SYc9fch0CqK90mRk1dC7AkzzpwJj6u2GU3u+9pqFE= -github.com/pion/dtls/v3 v3.0.4 h1:44CZekewMzfrn9pmGrj5BNnTMDCFwr+6sLH+cCuLM7U= -github.com/pion/dtls/v3 v3.0.4/go.mod h1:R373CsjxWqNPf6MEkfdy3aSe9niZvL/JaKlGeFphtMg= github.com/pion/dtls/v3 v3.0.6 h1:7Hkd8WhAJNbRgq9RgdNh1aaWlZlGpYTzdqjy9x9sK2E= github.com/pion/dtls/v3 v3.0.6/go.mod h1:iJxNQ3Uhn1NZWOMWlLxEEHAN5yX7GyPvvKw04v9bzYU= -github.com/pion/ice/v4 v4.0.8 h1:ajNx0idNG+S+v9Phu4LSn2cs8JEfTsA1/tEjkkAVpFY= -github.com/pion/ice/v4 v4.0.8/go.mod h1:y3M18aPhIxLlcO/4dn9X8LzLLSma84cx6emMSu14FGw= github.com/pion/ice/v4 v4.0.10 h1:P59w1iauC/wPk9PdY8Vjl4fOFL5B+USq1+xbDcN6gT4= github.com/pion/ice/v4 v4.0.10/go.mod h1:y3M18aPhIxLlcO/4dn9X8LzLLSma84cx6emMSu14FGw= -github.com/pion/interceptor v0.1.37 h1:aRA8Zpab/wE7/c0O3fh1PqY0AJI3fCSEM5lRWJVorwI= -github.com/pion/interceptor v0.1.37/go.mod h1:JzxbJ4umVTlZAf+/utHzNesY8tmRkM2lVmkS82TTj8Y= github.com/pion/interceptor v0.1.40 h1:e0BjnPcGpr2CFQgKhrQisBU7V3GXK6wrfYrGYaU6Jq4= github.com/pion/interceptor v0.1.40/go.mod h1:Z6kqH7M/FYirg3frjGJ21VLSRJGBXB/KqaTIrdqnOic= github.com/pion/logging v0.2.2/go.mod h1:k0/tDVsRCX2Mb2ZEmTqNa7CWsQPc+YYCB7Q+5pahoms= @@ -618,20 +388,12 @@ github.com/pion/randutil v0.1.0 h1:CFG1UdESneORglEsnimhUjf33Rwjubwj6xfiOXBa3mA= github.com/pion/randutil v0.1.0/go.mod h1:XcJrSMMbbMRhASFVOlj/5hQial/Y8oH/HVo7TBZq+j8= github.com/pion/rtcp v1.2.15 h1:LZQi2JbdipLOj4eBjK4wlVoQWfrZbh3Q6eHtWtJBZBo= github.com/pion/rtcp v1.2.15/go.mod h1:jlGuAjHMEXwMUHK78RgX0UmEJFV4zUKOFHR7OP+D3D0= -github.com/pion/rtp v1.8.11 h1:17xjnY5WO5hgO6SD3/NTIUPvSFw/PbLsIJyz1r1yNIk= -github.com/pion/rtp v1.8.11/go.mod h1:8uMBJj32Pa1wwx8Fuv/AsFhn8jsgw+3rUC2PfoBZ8p4= github.com/pion/rtp v1.8.19 h1:jhdO/3XhL/aKm/wARFVmvTfq0lC/CvN1xwYKmduly3c= github.com/pion/rtp v1.8.19/go.mod h1:bAu2UFKScgzyFqvUKmbvzSdPr+NGbZtv6UB2hesqXBk= -github.com/pion/sctp v1.8.37 h1:ZDmGPtRPX9mKCiVXtMbTWybFw3z/hVKAZgU81wcOrqs= -github.com/pion/sctp v1.8.37/go.mod h1:cNiLdchXra8fHQwmIoqw0MbLLMs+f7uQ+dGMG2gWebE= github.com/pion/sctp v1.8.39 h1:PJma40vRHa3UTO3C4MyeJDQ+KIobVYRZQZ0Nt7SjQnE= github.com/pion/sctp v1.8.39/go.mod h1:cNiLdchXra8fHQwmIoqw0MbLLMs+f7uQ+dGMG2gWebE= -github.com/pion/sdp/v3 v3.0.10 h1:6MChLE/1xYB+CjumMw+gZ9ufp2DPApuVSnDT8t5MIgA= -github.com/pion/sdp/v3 v3.0.10/go.mod h1:88GMahN5xnScv1hIMTqLdu/cOcUkj6a9ytbncwMCq2E= github.com/pion/sdp/v3 v3.0.13 h1:uN3SS2b+QDZnWXgdr69SM8KB4EbcnPnPf2Laxhty/l4= github.com/pion/sdp/v3 v3.0.13/go.mod h1:88GMahN5xnScv1hIMTqLdu/cOcUkj6a9ytbncwMCq2E= -github.com/pion/srtp/v3 v3.0.4 h1:2Z6vDVxzrX3UHEgrUyIGM4rRouoC7v+NiF1IHtp9B5M= -github.com/pion/srtp/v3 v3.0.4/go.mod h1:1Jx3FwDoxpRaTh1oRV8A/6G1BnFL+QI82eK4ms8EEJQ= github.com/pion/srtp/v3 v3.0.6 h1:E2gyj1f5X10sB/qILUGIkL4C2CqK269Xq167PbGCc/4= github.com/pion/srtp/v3 v3.0.6/go.mod h1:BxvziG3v/armJHAaJ87euvkhHqWe9I7iiOy50K2QkhY= github.com/pion/stun v0.6.1 h1:8lp6YejULeHBF8NmV8e2787BogQhduZugh5PdhDyyN4= @@ -644,34 +406,23 @@ github.com/pion/transport/v2 v2.2.10 h1:ucLBLE8nuxiHfvkFKnkDQRYWYfp8ejf4YBOPfaQp github.com/pion/transport/v2 v2.2.10/go.mod h1:sq1kSLWs+cHW9E+2fJP95QudkzbK7wscs8yYgQToO5E= github.com/pion/transport/v3 v3.0.7 h1:iRbMH05BzSNwhILHoBoAPxoB9xQgOaJk+591KC9P1o0= github.com/pion/transport/v3 v3.0.7/go.mod h1:YleKiTZ4vqNxVwh77Z0zytYi7rXHl7j6uPLGhhz9rwo= -github.com/pion/turn/v4 v4.0.0 h1:qxplo3Rxa9Yg1xXDxxH8xaqcyGUtbHYw4QSCvmFWvhM= -github.com/pion/turn/v4 v4.0.0/go.mod h1:MuPDkm15nYSklKpN8vWJ9W2M0PlyQZqYt1McGuxG7mA= github.com/pion/turn/v4 v4.0.2 h1:ZqgQ3+MjP32ug30xAbD6Mn+/K4Sxi3SdNOTFf+7mpps= github.com/pion/turn/v4 v4.0.2/go.mod h1:pMMKP/ieNAG/fN5cZiN4SDuyKsXtNTr0ccN7IToA1zs= -github.com/pion/webrtc/v4 v4.0.10 h1:Hq/JLjhqLxi+NmCtE8lnRPDr8H4LcNvwg8OxVcdv56Q= -github.com/pion/webrtc/v4 v4.0.10/go.mod h1:ViHLVaNpiuvaH8pdiuQxuA9awuE6KVzAXx3vVWilOck= github.com/pion/webrtc/v4 v4.1.2 h1:mpuUo/EJ1zMNKGE79fAdYNFZBX790KE7kQQpLMjjR54= github.com/pion/webrtc/v4 v4.1.2/go.mod h1:xsCXiNAmMEjIdFxAYU0MbB3RwRieJsegSB2JZsGN+8U= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 h1:GFCKgmp0tecUJ0sJuv4pzYCqS9+RGSn52M3FUwPs+uo= -github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 h1:o4JXh1EVt9k/+g42oCprj/FisM4qX9L3sZB3upGN2ZU= -github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= github.com/prometheus/client_golang v0.8.0/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= github.com/prometheus/client_golang v1.11.1/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_golang v1.22.0 h1:rb93p9lokFEsctTys46VnV1kLCDpVZ0a/Y92Vm0Zc6Q= -github.com/prometheus/client_golang v1.22.0/go.mod h1:R7ljNsLXhuQXYZYtw6GAE9AZg8Y7vEW5scdCXrWRXC0= github.com/prometheus/client_golang v1.23.0 h1:ust4zpdl9r4trLY/gSjlm07PuiBq2ynaXXlptpfy8Uc= github.com/prometheus/client_golang v1.23.0/go.mod h1:i/o0R9ByOnHX0McrTMTyhYvKE4haaf2mW08I+jGAjEE= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= @@ -684,8 +435,6 @@ github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y8 github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= -github.com/prometheus/common v0.63.0 h1:YR/EIY1o3mEFP/kZCD7iDMnLPlGyuU2Gb3HIcXnA98k= -github.com/prometheus/common v0.63.0/go.mod h1:VVFF/fBIoToEnWRVkYoXEkq3R3paCoxG9PXP74SnV18= github.com/prometheus/common v0.67.5 h1:pIgK94WWlQt1WLwAC5j2ynLaBRDiinoAb86HZHTUGI4= github.com/prometheus/common v0.67.5/go.mod h1:SjE/0MzDEEAyrdr5Gqc6G+sXI67maCxzaT3A2+HqjUw= github.com/prometheus/procfs v0.0.0-20180725123919-05ee40e3a273/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= @@ -696,22 +445,12 @@ github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4O github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.16.1 h1:hZ15bTNuirocR6u0JZ6BAHHmwS1p8B4P6MRqxtzMyRg= github.com/prometheus/procfs v0.16.1/go.mod h1:teAbpZRB1iIAJYREa1LsoWUXykVXA1KlTmWl8x/U+Is= -github.com/puzpuzpuz/xsync/v3 v3.5.1 h1:GJYJZwO6IdxN/IKbneznS6yPkVC+c3zyY/j19c++5Fg= -github.com/puzpuzpuz/xsync/v3 v3.5.1/go.mod h1:VjzYrABPabuM4KyBh1Ftq6u8nhwY5tBPKP9jpmh0nnA= github.com/quic-go/qpack v0.5.1 h1:giqksBPnT/HDtZ6VhtFKgoLOWmlyo9Ei6u9PqzIMbhI= github.com/quic-go/qpack v0.5.1/go.mod h1:+PC4XFrEskIVkcLzpEkbLqq1uCoxPhQuvK5rH1ZgaEg= -github.com/quic-go/qpack v0.6.0 h1:g7W+BMYynC1LbYLSqRt8PBg5Tgwxn214ZZR34VIOjz8= -github.com/quic-go/qpack v0.6.0/go.mod h1:lUpLKChi8njB4ty2bFLX2x4gzDqXwUpaO1DP9qMDZII= github.com/quic-go/quic-go v0.50.1 h1:unsgjFIUqW8a2oopkY7YNONpV1gYND6Nt9hnt1PN94Q= github.com/quic-go/quic-go v0.50.1/go.mod h1:Vim6OmUvlYdwBhXP9ZVrtGmCMWa3wEqhq3NgYrI8b4E= -github.com/quic-go/quic-go v0.59.0 h1:OLJkp1Mlm/aS7dpKgTc6cnpynnD2Xg7C1pwL6vy/SAw= -github.com/quic-go/quic-go v0.59.0/go.mod h1:upnsH4Ju1YkqpLXC305eW3yDZ4NfnNbmQRCMWS58IKU= github.com/quic-go/webtransport-go v0.8.1-0.20241018022711-4ac2c9250e66 h1:4WFk6u3sOT6pLa1kQ50ZVdm8BQFgJNA117cepZxtLIg= github.com/quic-go/webtransport-go v0.8.1-0.20241018022711-4ac2c9250e66/go.mod h1:Vp72IJajgeOL6ddqrAhmp7IM9zbTcgkQxD/YdxrVwMw= -github.com/quic-go/webtransport-go v0.9.0 h1:jgys+7/wm6JarGDrW+lD/r9BGqBAmqY/ssklE09bA70= -github.com/quic-go/webtransport-go v0.9.0/go.mod h1:4FUYIiUc75XSsF6HShcLeXXYZJ9AGwo/xh3L8M/P1ao= -github.com/quic-go/webtransport-go v0.10.0 h1:LqXXPOXuETY5Xe8ITdGisBzTYmUOy5eSj+9n4hLTjHI= -github.com/quic-go/webtransport-go v0.10.0/go.mod h1:LeGIXr5BQKE3UsynwVBeQrU1TPrbh73MGoC6jd+V7ow= github.com/raulk/go-watchdog v1.3.0 h1:oUmdlHxdkXRJlwfG0O9omj8ukerm8MEQavSiDTEtBsk= github.com/raulk/go-watchdog v1.3.0/go.mod h1:fIvOnLbF0b0ZwkB9YU4mOW9Did//4vPZtDqv66NfsMU= github.com/redis/go-redis/v9 v9.8.0 h1:q3nRvjrlge/6UD7eTu/DSg2uYiU2mCL0G/uzBWqhicI= @@ -719,8 +458,7 @@ github.com/redis/go-redis/v9 v9.8.0/go.mod h1:huWgSWd8mW6+m0VPhJjSSQ+d6Nh1VICQ6Q github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= -github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= -github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= +github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= github.com/rqlite/gorqlite v0.0.0-20250609141355-ac86a4a1c9a8 h1:BoxiqWvhprOB2isgM59s8wkgKwAoyQH66Twfmof41oE= github.com/rqlite/gorqlite v0.0.0-20250609141355-ac86a4a1c9a8/go.mod h1:xF/KoXmrRyahPfo5L7Szb5cAAUl53dMWBh9cMruGEZg= @@ -729,12 +467,7 @@ github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQD github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= -github.com/secure-systems-lab/go-securesystemslib v0.9.0 h1:rf1HIbL64nUpEIZnjLZ3mcNEL9NBPB0iuVjyxvq3LZc= -github.com/secure-systems-lab/go-securesystemslib v0.9.0/go.mod h1:DVHKMcZ+V4/woA/peqr+L0joiRXbPpQ042GgJckkFgw= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= -github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible h1:Bn1aCHHRnjv4Bl16T8rcaFjYSrGrIZvpiGO6P3Q4GpU= -github.com/shirou/gopsutil/v4 v4.25.8-0.20250809033336-ffcdc2b7662f h1:S+PHRM3lk96X0/cGEGUukqltzkX/ekUx0F9DoCGK1G0= -github.com/shirou/gopsutil/v4 v4.25.8-0.20250809033336-ffcdc2b7662f/go.mod h1:4f4j4w8HLMPWEFs3BO2UBBLigKAaWYwkSkbIt/6Q4Ss= github.com/shurcooL/component v0.0.0-20170202220835-f88ec8f54cc4/go.mod h1:XhFIlyj5a1fBNx5aJTbKoIq0mNaPvOagO+HjB3EtxrY= github.com/shurcooL/events v0.0.0-20181021180414-410e4ca65f48/go.mod h1:5u70Mqkb5O5cxEA8nxTsgrgLehJeAw6Oc4Ab1c/P1HM= github.com/shurcooL/github_flavored_markdown v0.0.0-20181002035957-2122de532470/go.mod h1:2dOwnU2uBioM+SGy2aZoq1f/Sd1l9OkAeAUvjSyvgU0= @@ -780,18 +513,13 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81P github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= -github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07/go.mod h1:kDXzergiv9cbyO7IOYJZWg1U88JhDg3PB6klq9Hg2pA= github.com/tetratelabs/wazero v1.11.0 h1:+gKemEuKCTevU4d7ZTzlsvgd1uaToIDtlQlmNbwqYhA= github.com/tetratelabs/wazero v1.11.0/go.mod h1:eV28rsN8Q+xwjogd7f4/Pp4xFxO7uOGbLcD/LzB1wiU= -github.com/theckman/httpforwarded v0.4.0 h1:N55vGJT+6ojTnLY3LQCNliJC4TW0P0Pkeys1G1WpX2w= -github.com/theckman/httpforwarded v0.4.0/go.mod h1:GVkFynv6FJreNbgH/bpOU9ITDZ7a5WuzdNCtIMI1pVI= github.com/tidwall/btree v1.1.0/go.mod h1:TzIRzen6yHbibdSfK6t8QimqbUnoxUSrZfeW7Uob0q4= github.com/tidwall/btree v1.7.0 h1:L1fkJH/AuEh5zBnnBbmTwQ5Lt+bRJ5A8EWecslvo9iI= github.com/tidwall/btree v1.7.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= @@ -799,12 +527,6 @@ github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= github.com/tidwall/redcon v1.6.2 h1:5qfvrrybgtO85jnhSravmkZyC0D+7WstbfCs3MmPhow= github.com/tidwall/redcon v1.6.2/go.mod h1:p5Wbsgeyi2VSTBWOcA5vRXrOb9arFTcU2+ZzFjqV75Y= -github.com/tinylib/msgp v1.3.0 h1:ULuf7GPooDaIlbyvgAxBV/FI7ynli6LZ1/nVUNu+0ww= -github.com/tinylib/msgp v1.3.0/go.mod h1:ykjzy2wzgrlvpDCRc4LA8UXy6D8bzMSuAF3WD57Gok0= -github.com/tklauser/go-sysconf v0.3.15 h1:VE89k0criAymJ/Os65CSn1IXaol+1wrsFHEB8Ol49K4= -github.com/tklauser/go-sysconf v0.3.15/go.mod h1:Dmjwr6tYFIseJw7a3dRLJfsHAMXZ3nEnL/aZY+0IuI4= -github.com/tklauser/numcpus v0.10.0 h1:18njr6LDBk1zuna922MgdjQuJFjrdppsZG60sHGfjso= -github.com/tklauser/numcpus v0.10.0/go.mod h1:BiTKazU708GQTYF4mB+cmlpT2Is1gLk7XVuEeem8LsQ= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/viant/assertly v0.4.8/go.mod h1:aGifi++jvCrUaklKEKT0BU95igDNaqkvz+49uaYMPRU= @@ -816,64 +538,28 @@ github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV github.com/wlynxg/anet v0.0.3/go.mod h1:eay5PRQr7fIVAMbTbchTnO9gG65Hg/uYGdc7mguHxoA= github.com/wlynxg/anet v0.0.5 h1:J3VJGi1gvo0JwZ/P1/Yc/8p63SoW98B5dHkYDmpgvvU= github.com/wlynxg/anet v0.0.5/go.mod h1:eay5PRQr7fIVAMbTbchTnO9gG65Hg/uYGdc7mguHxoA= -github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= -github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= -github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.etcd.io/etcd/api/v3 v3.6.7 h1:7BNJ2gQmc3DNM+9cRkv7KkGQDayElg8x3X+tFDYS+E0= -go.etcd.io/etcd/api/v3 v3.6.7/go.mod h1:xJ81TLj9hxrYYEDmXTeKURMeY3qEDN24hqe+q7KhbnI= -go.etcd.io/etcd/client/pkg/v3 v3.6.7 h1:vvzgyozz46q+TyeGBuFzVuI53/yd133CHceNb/AhBVs= -go.etcd.io/etcd/client/pkg/v3 v3.6.7/go.mod h1:2IVulJ3FZ/czIGl9T4lMF1uxzrhRahLqe+hSgy+Kh7Q= -go.etcd.io/etcd/client/v3 v3.6.7 h1:9WqA5RpIBtdMxAy1ukXLAdtg2pAxNqW5NUoO2wQrE6U= -go.etcd.io/etcd/client/v3 v3.6.7/go.mod h1:2XfROY56AXnUqGsvl+6k29wrwsSbEh1lAouQB1vHpeE= go.opencensus.io v0.18.0/go.mod h1:vKdFvxhtzZ9onBp9VKHK8z/sRpBMnKAsufL7wlDrCOA= go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= -go.opentelemetry.io/collector/component v1.39.0 h1:GJw80zXURBG4h0sh97bPLEn2Ra+NAWUpskaooA0wru4= -go.opentelemetry.io/collector/component v1.39.0/go.mod h1:NPaMPTLQuxm5QaaWdqkxYKztC0bRdV+86Q9ir7xS/2k= -go.opentelemetry.io/collector/featuregate v1.46.0 h1:z3JlymFdWW6aDo9cYAJ6bCqT+OI2DlurJ9P8HqfuKWQ= -go.opentelemetry.io/collector/featuregate v1.46.0/go.mod h1:d0tiRzVYrytB6LkcYgz2ESFTv7OktRPQe0QEQcPt1L4= -go.opentelemetry.io/collector/internal/telemetry v0.133.0 h1:YxbckZC9HniNOZgnSofTOe0AB/bEsmISNdQeS+3CU3o= -go.opentelemetry.io/collector/internal/telemetry v0.133.0/go.mod h1:akUK7X6ZQ+CbbCjyXLv9y/EHt5jIy+J+nGoLvndZN14= -go.opentelemetry.io/collector/pdata v1.46.0 h1:XzhnIWNtc/gbOyFiewRvybR4s3phKHrWxL3yc/wVLDo= -go.opentelemetry.io/collector/pdata v1.46.0/go.mod h1:D2e3BWCUC/bUg29WNzCDVN7Ab0Gzk7hGXZL2pnrDOn0= -go.opentelemetry.io/collector/pdata/pprofile v0.140.0 h1:b9TZ6UnyzsT/ERQw2VKGi/NYLtKSmjG7cgQuc9wZt5s= -go.opentelemetry.io/collector/pdata/pprofile v0.140.0/go.mod h1:/2s/YBWGbu+r8MuKu5zas08iSqe+3P6xnbRpfE2DWAA= -go.opentelemetry.io/contrib/bridges/otelzap v0.12.0 h1:FGre0nZh5BSw7G73VpT3xs38HchsfPsa2aZtMp0NPOs= -go.opentelemetry.io/contrib/bridges/otelzap v0.12.0/go.mod h1:X2PYPViI2wTPIMIOBjG17KNybTzsrATnvPJ02kkz7LM= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 h1:F7Jx+6hwnZ41NSFTO5q4LYDtJRXBf2PD0rNBkeB/lus= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0/go.mod h1:UHB22Z8QsdRDrnAtX4PntOl36ajSxcdUMt1sF7Y6E7Q= go.opentelemetry.io/otel v1.38.0 h1:RkfdswUDRimDg0m2Az18RKOsnI8UDzppJAtj01/Ymk8= go.opentelemetry.io/otel v1.38.0/go.mod h1:zcmtmQ1+YmQM9wrNsTGV/q/uyusom3P8RxwExxkZhjM= -go.opentelemetry.io/otel/log v0.13.0 h1:yoxRoIZcohB6Xf0lNv9QIyCzQvrtGZklVbdCoyb7dls= -go.opentelemetry.io/otel/log v0.13.0/go.mod h1:INKfG4k1O9CL25BaM1qLe0zIedOpvlS5Z7XgSbmN83E= go.opentelemetry.io/otel/metric v1.38.0 h1:Kl6lzIYGAh5M159u9NgiRkmoMKjvbsKtYRwgfrA6WpA= go.opentelemetry.io/otel/metric v1.38.0/go.mod h1:kB5n/QoRM8YwmUahxvI3bO34eVtQf2i4utNVLr9gEmI= go.opentelemetry.io/otel/sdk v1.38.0 h1:l48sr5YbNf2hpCUj/FoGhW9yDkl+Ma+LrVl8qaM5b+E= go.opentelemetry.io/otel/sdk v1.38.0/go.mod h1:ghmNdGlVemJI3+ZB5iDEuk4bWA3GkTpW+DOoZMYBVVg= +go.opentelemetry.io/otel/sdk/metric v1.38.0 h1:aSH66iL0aZqo//xXzQLYozmWrXxyFkBJ6qT5wthqPoM= +go.opentelemetry.io/otel/sdk/metric v1.38.0/go.mod h1:dg9PBnW9XdQ1Hd6ZnRz689CbtrUp0wMMs9iPcgT9EZA= go.opentelemetry.io/otel/trace v1.38.0 h1:Fxk5bKrDZJUH+AMyyIXGcFAPah0oRcT+LuNtJrmcNLE= go.opentelemetry.io/otel/trace v1.38.0/go.mod h1:j1P9ivuFsTceSWe1oY+EeW3sc+Pp42sO++GHkg4wwhs= -go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= -go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= -go.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs= -go.uber.org/automaxprocs v1.6.0/go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwEFJ8r8= -go.uber.org/dig v1.18.0 h1:imUL1UiY0Mg4bqbFfsRQO5G4CGRBec/ZujWTvSVp3pw= -go.uber.org/dig v1.18.0/go.mod h1:Us0rSJiThwCv2GteUN0Q7OKvU7n5J4dxZ9JKUXozFdE= go.uber.org/dig v1.19.0 h1:BACLhebsYdpQ7IROQ1AGPjrXcP5dF80U3gKoFzbaq/4= go.uber.org/dig v1.19.0/go.mod h1:Us0rSJiThwCv2GteUN0Q7OKvU7n5J4dxZ9JKUXozFdE= -go.uber.org/fx v1.23.0 h1:lIr/gYWQGfTwGcSXWXu4vP5Ws6iqnNEIY+F/aFzCKTg= -go.uber.org/fx v1.23.0/go.mod h1:o/D9n+2mLP6v1EG+qsdT1O8wKopYAsqZasju97SDFCU= go.uber.org/fx v1.24.0 h1:wE8mruvpg2kiiL1Vqd0CC+tr0/24XIB10Iwp2lLWzkg= go.uber.org/fx v1.24.0/go.mod h1:AmDeGyS+ZARGKM4tlH4FY2Jr63VjbEDJHtqXTGP5hbo= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= -go.uber.org/mock v0.5.0 h1:KAMbZvZPyBPWgD14IrIQ38QCyjwpvVVV6K/bHl1IwQU= -go.uber.org/mock v0.5.0/go.mod h1:ge71pBPLYDk7QIi1LupWxdAykm7KIEFchiOqd6z7qMM= go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y= go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= @@ -882,7 +568,6 @@ go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= go.yaml.in/yaml/v2 v2.4.3 h1:6gvOSjQoTB3vt1l+CU+tSyi/HOjfOjRLJ4YwYZGwRO0= go.yaml.in/yaml/v2 v2.4.3/go.mod h1:zSxWcmIDjOzPXpjlTTbAsKokqkDNAVtZO0WOMiT90s8= -go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= go4.org v0.0.0-20180809161055-417644f6feb5/go.mod h1:MkTOUMDaeVYJUOUsaDXIhWPZYa1yOyC1qaOBpL57BhE= golang.org/x/build v0.0.0-20190111050920-041ab4dc3f9d/go.mod h1:OWs+y06UdEOHN4y+MfF/py+xQ/tYqIWW03b70/CG9Rw= @@ -896,13 +581,9 @@ golang.org/x/crypto v0.0.0-20200602180216-279210d13fed/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.8.0/go.mod h1:mRqEX+O9/h5TFCrQhkgjo2yKi0yYA+9ecGkdQoHrywE= golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= -golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= -golang.org/x/crypto v0.40.0 h1:r4x+VvoG5Fm+eJcxMaY8CQM7Lb0l1lsmjGBQ6s8BfKM= -golang.org/x/crypto v0.40.0/go.mod h1:Qr1vMER5WyS2dfPHAlsOj01wgLbsyWtFn/aY+5+ZdxY= golang.org/x/crypto v0.47.0 h1:V6e3FRj+n4dbpw86FJ8Fv7XVOql7TEwpHapKoMJ/GO8= golang.org/x/crypto v0.47.0/go.mod h1:ff3Y9VzzKbwSSEzWqJsJVBnWmRwRSHt/6Op5n9bQc4A= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -915,11 +596,8 @@ golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPI golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.26.0 h1:EGMPT//Ezu+ylkCijjPc+f4Aih7sZvaAr+O3EHBxvZg= -golang.org/x/mod v0.26.0/go.mod h1:/j6NAhSk8iQ723BGAUyoAcn7SlD7s15Dp9Nd/SfeaFQ= golang.org/x/mod v0.31.0 h1:HaW9xtz0+kOcWKwli0ZXy79Ix+UW/vOfmWI5QVd2tgI= golang.org/x/mod v0.31.0/go.mod h1:43JraMp9cGx1Rx3AqioxrbrhNsLl2l/iNAvuBkrezpg= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -934,30 +612,23 @@ golang.org/x/net v0.0.0-20190313220215-9f648a60d977/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= -golang.org/x/net v0.42.0 h1:jzkYrhi3YQWD6MLBJcsklgQsoAcw89EcZbJw8Z614hs= -golang.org/x/net v0.42.0/go.mod h1:FF1RA5d3u7nAYA4z2TkclSCKh68eSXtiFwcWQpPXdt8= golang.org/x/net v0.49.0 h1:eeHFmOGUTtaaPSGNmjBKpbng9MulQsJURQUAfUwY++o= golang.org/x/net v0.49.0/go.mod h1:/ysNB2EvaqvesRkuLAyjI1ycPZlQHM3q01F02UY/MV8= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.34.0 h1:hqK/t4AKgbqWkdkcAeI8XLmbK+4m4G5YeQRrmiotGlw= -golang.org/x/oauth2 v0.34.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA= golang.org/x/perf v0.0.0-20180704124530-6e6d33e29852/go.mod h1:JLpeXjPJfIyPr5TlbXLkXWLhP8nz10XfvxElABhCtcw= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -970,8 +641,6 @@ golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw= -golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4= golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= golang.org/x/sys v0.0.0-20180810173357-98c5dad5d1a0/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -984,8 +653,6 @@ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20190316082340-a2f829d7f35f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -996,27 +663,18 @@ golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220627191245-f75cf1eec38b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc= -golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= golang.org/x/sys v0.40.0 h1:DBZZqJ2Rkml6QMQsZywtnjnnGvHza6BTfYFWY9kjEWQ= golang.org/x/sys v0.40.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= golang.org/x/telemetry v0.0.0-20251203150158-8fff8a5912fc h1:bH6xUXay0AIFMElXG2rQ4uiE+7ncwtiOdPfYK1NK2XA= @@ -1027,7 +685,6 @@ golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY= golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= -golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/term v0.39.0 h1:RclSuaJf32jOqZz74CkPA9qFuVTX7vhLlpfj/IGWlqY= golang.org/x/term v0.39.0/go.mod h1:yxzUCTP/U+FzoxfdKmLaA0RV1WgE0VY7hXBwKtY/4ww= @@ -1035,20 +692,15 @@ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.27.0 h1:4fGWRpyh641NLlecmyl4LOe6yDdfaYNrGb2zdfo4JV4= -golang.org/x/text v0.27.0/go.mod h1:1D28KMCvyooCX9hBiosv5Tz/+YLxj0j7XhWjpSUF7CU= golang.org/x/text v0.33.0 h1:B3njUFyqtHDUI5jMn1YIr5B0IE2U0qck04r6d4KPAxE= golang.org/x/text v0.33.0/go.mod h1:LuMebE6+rBincTi9+xWTY8TztLzKHc/9C1uBCG27+q8= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= -golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/time v0.14.0 h1:MRx4UaLrDotUKUdCIqzPC48t1Y9hANFKIRpNx+Te8PI= golang.org/x/time v0.14.0/go.mod h1:eL/Oa2bBBK0TkX57Fyni+NgnyQQN4LitPmob2Hjnqw4= golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -1058,28 +710,22 @@ golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGm golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.35.0 h1:mBffYraMEf7aa0sB+NuKnuCy8qI/9Bughn8dC2Gu5r0= -golang.org/x/tools v0.35.0/go.mod h1:NKdj5HkL/73byiZSJjqJgKn3ep7KjFkBOkR/Hps3VPw= golang.org/x/tools v0.40.0 h1:yLkxfA+Qnul4cs9QA3KnlFu0lVmd8JJfoq+E41uSutA= golang.org/x/tools v0.40.0/go.mod h1:Ik/tzLRlbscWpqqMRjyWYDisX8bG13FrdXp3o4Sr9lc= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 h1:+cNy6SZtPcJQH3LJVLOSmiC7MMxXNOb3PU/VUEz+EhU= -golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= +gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk= +gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E= google.golang.org/api v0.0.0-20180910000450-7ca32eb868bf/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= google.golang.org/api v0.0.0-20181030000543-1d582fd0359e/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= google.golang.org/api v0.1.0/go.mod h1:UGEZY7KEX120AnNLIHFMKIo4obdJhkp2tPbaPlQx13Y= -google.golang.org/api v0.259.0 h1:90TaGVIxScrh1Vn/XI2426kRpBqHwWIzVBzJsVZ5XrQ= -google.golang.org/api v0.259.0/go.mod h1:LC2ISWGWbRoyQVpxGntWwLWN/vLNxxKBK9KuJRI8Te4= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.3.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -1089,9 +735,6 @@ google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoA google.golang.org/genproto v0.0.0-20181029155118-b69ba1387ce2/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20181202183823-bd91e49a0898/go.mod h1:7Ep/1NZk928CDR8SjdVbjWNpdIf6nzjE3BTgJDr2Atg= google.golang.org/genproto v0.0.0-20190306203927-b5d61aea6440/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20251202230838-ff82c1b0f217 h1:GvESR9BIyHUahIb0NcTum6itIWtdoglGX+rnGxm2934= -google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 h1:fCvbg86sFXwdrl5LgVcTEvNC+2txB5mgROGmRL5mrls= -google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217/go.mod h1:+rXWjjaukWZun3mLfjmVnQi18E1AsFbDN9QdJ5YXLto= google.golang.org/genproto/googleapis/rpc v0.0.0-20251222181119-0a764e51fe1b h1:Mv8VFug0MP9e5vUxfBcE3vUkV6CImK3cMNMIDFjmzxU= google.golang.org/genproto/googleapis/rpc v0.0.0-20251222181119-0a764e51fe1b/go.mod h1:j9x/tPzZkyxcgEFkiKEEGxfvyumM01BEtsW8xzOahRQ= google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= @@ -1107,8 +750,6 @@ google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miE google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY= -google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE= google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= @@ -1117,12 +758,7 @@ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -gopkg.in/evanphx/json-patch.v4 v4.12.0 h1:n6jtcsulIzXPJaxegRbvFNNrZDjbij7ny3gmSPG+6V4= -gopkg.in/evanphx/json-patch.v4 v4.12.0/go.mod h1:p8EYWUEYMpynmqDbY58zCKCFZw8pRWMG4EsWvDvM72M= -gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= -gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= -gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= @@ -1137,31 +773,9 @@ grpc.go4.org v0.0.0-20170609214715-11d0a25b4919/go.mod h1:77eQGdRu53HpSqPFJFmuJd honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -k8s.io/api v0.34.3 h1:D12sTP257/jSH2vHV2EDYrb16bS7ULlHpdNdNhEw2S4= -k8s.io/api v0.34.3/go.mod h1:PyVQBF886Q5RSQZOim7DybQjAbVs8g7gwJNhGtY5MBk= -k8s.io/apimachinery v0.34.3 h1:/TB+SFEiQvN9HPldtlWOTp0hWbJ+fjU+wkxysf/aQnE= -k8s.io/apimachinery v0.34.3/go.mod h1:/GwIlEcWuTX9zKIg2mbw0LRFIsXwrfoVxn+ef0X13lw= -k8s.io/client-go v0.34.3 h1:wtYtpzy/OPNYf7WyNBTj3iUA0XaBHVqhv4Iv3tbrF5A= -k8s.io/client-go v0.34.3/go.mod h1:OxxeYagaP9Kdf78UrKLa3YZixMCfP6bgPwPwNBQBzpM= -k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= -k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= -k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b h1:MloQ9/bdJyIu9lb1PzujOPolHyvO06MXG5TUIj2mNAA= -k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b/go.mod h1:UZ2yyWbFTpuhSbFhv24aGNOdoRdJZgsIObGBUaYVsts= -k8s.io/utils v0.0.0-20250604170112-4c0f3b243397 h1:hwvWFiBzdWw1FhfY1FooPn3kzWuJ8tmbZBHi4zVsl1Y= -k8s.io/utils v0.0.0-20250604170112-4c0f3b243397/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= lukechampine.com/blake3 v1.4.1 h1:I3Smz7gso8w4/TunLKec6K2fn+kyKtDxr/xcQEN84Wg= lukechampine.com/blake3 v1.4.1/go.mod h1:QFosUxmjB8mnrWFSNwKmvxHpfY72bmD2tQ0kBMM3kwo= rsc.io/qr v0.2.0 h1:6vBLea5/NRMVTz8V66gipeLycZMl/+UlFmk8DvqQ6WY= rsc.io/qr v0.2.0/go.mod h1:IF+uZjkb9fqyeF/4tlBoynqmQxUoPfWEKh921coOuXs= -sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 h1:gBQPwqORJ8d8/YNZWEjoZs7npUVDpVXUUOFfW6CgAqE= -sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8/go.mod h1:mdzfpAEoE6DHQEN0uh9ZbOCuHbLK5wOm7dK4ctXE9Tg= -sigs.k8s.io/mcs-api v0.3.0 h1:LjRvgzjMrvO1904GP6XBJSnIX221DJMyQlZOYt9LAnM= -sigs.k8s.io/mcs-api v0.3.0/go.mod h1:zZ5CK8uS6HaLkxY4HqsmcBHfzHuNMrY2uJy8T7jffK4= -sigs.k8s.io/randfill v1.0.0 h1:JfjMILfT8A6RbawdsK2JXGBR5AQVfd+9TbzrlneTyrU= -sigs.k8s.io/randfill v1.0.0/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY= -sigs.k8s.io/structured-merge-diff/v6 v6.3.0 h1:jTijUJbW353oVOd9oTlifJqOGEkUw2jB/fXCbTiQEco= -sigs.k8s.io/structured-merge-diff/v6 v6.3.0/go.mod h1:M3W8sfWvn2HhQDIbGWj3S099YozAsymCo/wrT5ohRUE= -sigs.k8s.io/yaml v1.6.0 h1:G8fkbMSAFqgEFgh4b1wmtzDnioxFCUgTZhlbj5P9QYs= -sigs.k8s.io/yaml v1.6.0/go.mod h1:796bPqUfzR/0jLAl6XjHl3Ck7MiyVv8dbTdyT3/pMf4= sourcegraph.com/sourcegraph/go-diff v0.5.0/go.mod h1:kuch7UrkMzY0X+p9CRK03kfuPQ2zzQcaEFbx8wA8rck= sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0= diff --git a/pkg/auth/credentials.go b/pkg/auth/credentials.go index 3eefd9c..926978a 100644 --- a/pkg/auth/credentials.go +++ b/pkg/auth/credentials.go @@ -181,7 +181,7 @@ func GetDefaultGatewayURL() string { return gwURL } - return "http://localhost:6001" + return "https://orama-devnet.network" } // getGatewayFromEnvConfig reads the active environment's gateway URL from the config file diff --git a/pkg/cli/auth_commands.go b/pkg/cli/auth_commands.go index a7c954b..b35b0e9 100644 --- a/pkg/cli/auth_commands.go +++ b/pkg/cli/auth_commands.go @@ -292,50 +292,54 @@ func handleAuthStatus() { } // promptForGatewayURL interactively prompts for the gateway URL -// Allows user to choose between local node or remote node by domain +// Uses the active environment or allows entering a custom domain func promptForGatewayURL() string { // Check environment variable first (allows override without prompting) if url := os.Getenv("DEBROS_GATEWAY_URL"); url != "" { return url } - reader := bufio.NewReader(os.Stdin) + // Try active environment + env, err := GetActiveEnvironment() + if err == nil { + reader := bufio.NewReader(os.Stdin) - fmt.Println("\n🌐 Node Connection") - fmt.Println("==================") - fmt.Println("1. Local node (localhost:6001)") - fmt.Println("2. Remote node (enter domain)") - fmt.Print("\nSelect option [1/2]: ") + fmt.Println("\n🌐 Node Connection") + fmt.Println("==================") + fmt.Printf("1. Use active environment: %s (%s)\n", env.Name, env.GatewayURL) + fmt.Println("2. Enter custom domain") + fmt.Print("\nSelect option [1/2]: ") - choice, _ := reader.ReadString('\n') - choice = strings.TrimSpace(choice) + choice, _ := reader.ReadString('\n') + choice = strings.TrimSpace(choice) - if choice == "1" || choice == "" { - return "http://localhost:6001" + if choice == "1" || choice == "" { + return env.GatewayURL + } + + if choice == "2" { + fmt.Print("Enter node domain (e.g., node-hk19de.orama.network): ") + domain, _ := reader.ReadString('\n') + domain = strings.TrimSpace(domain) + + if domain == "" { + fmt.Printf("⚠️ No domain entered, using %s\n", env.Name) + return env.GatewayURL + } + + // Remove any protocol prefix if user included it + domain = strings.TrimPrefix(domain, "https://") + domain = strings.TrimPrefix(domain, "http://") + // Remove trailing slash + domain = strings.TrimSuffix(domain, "/") + + return fmt.Sprintf("https://%s", domain) + } + + return env.GatewayURL } - if choice != "2" { - fmt.Println("⚠️ Invalid option, using localhost") - return "http://localhost:6001" - } - - fmt.Print("Enter node domain (e.g., node-hk19de.orama.network): ") - domain, _ := reader.ReadString('\n') - domain = strings.TrimSpace(domain) - - if domain == "" { - fmt.Println("⚠️ No domain entered, using localhost") - return "http://localhost:6001" - } - - // Remove any protocol prefix if user included it - domain = strings.TrimPrefix(domain, "https://") - domain = strings.TrimPrefix(domain, "http://") - // Remove trailing slash - domain = strings.TrimSuffix(domain, "/") - - // Use HTTPS for remote domains - return fmt.Sprintf("https://%s", domain) + return "https://orama-devnet.network" } // getGatewayURL returns the gateway URL based on environment or env var @@ -352,8 +356,8 @@ func getGatewayURL() string { return env.GatewayURL } - // Fallback to default (node-1) - return "http://localhost:6001" + // Fallback to devnet + return "https://orama-devnet.network" } func handleAuthList() { diff --git a/pkg/cli/dev_commands.go b/pkg/cli/dev_commands.go deleted file mode 100644 index ae38a4d..0000000 --- a/pkg/cli/dev_commands.go +++ /dev/null @@ -1,197 +0,0 @@ -package cli - -import ( - "context" - "fmt" - "os" - "os/exec" - "path/filepath" - - "github.com/DeBrosOfficial/network/pkg/environments/development" -) - -// HandleDevCommand handles the dev command group -func HandleDevCommand(args []string) { - if len(args) == 0 { - showDevHelp() - return - } - - subcommand := args[0] - subargs := args[1:] - - switch subcommand { - case "up": - handleDevUp(subargs) - case "down": - handleDevDown(subargs) - case "status": - handleDevStatus(subargs) - case "logs": - handleDevLogs(subargs) - case "help": - showDevHelp() - default: - fmt.Fprintf(os.Stderr, "Unknown dev subcommand: %s\n", subcommand) - showDevHelp() - os.Exit(1) - } -} - -func showDevHelp() { - fmt.Printf("🚀 Development Environment Commands\n\n") - fmt.Printf("Usage: orama dev [options]\n\n") - fmt.Printf("Subcommands:\n") - fmt.Printf(" up - Start development environment (5 nodes + gateway)\n") - fmt.Printf(" down - Stop all development services\n") - fmt.Printf(" status - Show status of running services\n") - fmt.Printf(" logs - Tail logs for a component\n") - fmt.Printf(" help - Show this help\n\n") - fmt.Printf("Examples:\n") - fmt.Printf(" orama dev up\n") - fmt.Printf(" orama dev down\n") - fmt.Printf(" orama dev status\n") - fmt.Printf(" orama dev logs node-1 --follow\n") -} - -func handleDevUp(args []string) { - ctx := context.Background() - - // Get home directory and .orama path - homeDir, err := os.UserHomeDir() - if err != nil { - fmt.Fprintf(os.Stderr, "❌ Failed to get home directory: %v\n", err) - os.Exit(1) - } - oramaDir := filepath.Join(homeDir, ".orama") - - // Step 1: Check dependencies - fmt.Printf("📋 Checking dependencies...\n\n") - checker := development.NewDependencyChecker() - if _, err := checker.CheckAll(); err != nil { - fmt.Fprintf(os.Stderr, "❌ %v\n", err) - os.Exit(1) - } - fmt.Printf("✓ All required dependencies available\n\n") - - // Step 2: Check ports - fmt.Printf("🔌 Checking port availability...\n\n") - portChecker := development.NewPortChecker() - if _, err := portChecker.CheckAll(); err != nil { - fmt.Fprintf(os.Stderr, "❌ %v\n\n", err) - fmt.Fprintf(os.Stderr, "Port mapping:\n") - for port, service := range development.PortMap() { - fmt.Fprintf(os.Stderr, " %d - %s\n", port, service) - } - fmt.Fprintf(os.Stderr, "\n") - os.Exit(1) - } - fmt.Printf("✓ All required ports available\n\n") - - // Step 3: Ensure configs - fmt.Printf("⚙️ Preparing configuration files...\n\n") - ensurer := development.NewConfigEnsurer(oramaDir) - if err := ensurer.EnsureAll(); err != nil { - fmt.Fprintf(os.Stderr, "❌ Failed to prepare configs: %v\n", err) - os.Exit(1) - } - fmt.Printf("\n") - - // Step 4: Start services - pm := development.NewProcessManager(oramaDir, os.Stdout) - if err := pm.StartAll(ctx); err != nil { - fmt.Fprintf(os.Stderr, "❌ Error starting services: %v\n", err) - os.Exit(1) - } - - // Step 5: Show summary - fmt.Printf("🎉 Development environment is running!\n\n") - fmt.Printf("Key endpoints:\n") - fmt.Printf(" Gateway: http://localhost:6001\n") - fmt.Printf(" Node-1 IPFS: http://localhost:4501\n") - fmt.Printf(" Node-2 IPFS: http://localhost:4502\n") - fmt.Printf(" Node-3 IPFS: http://localhost:4503\n") - fmt.Printf(" Node-4 IPFS: http://localhost:4504\n") - fmt.Printf(" Node-5 IPFS: http://localhost:4505\n") - fmt.Printf(" Anon SOCKS: 127.0.0.1:9050\n") - fmt.Printf(" Olric Cache: http://localhost:3320\n\n") - fmt.Printf("Useful commands:\n") - fmt.Printf(" orama dev status - Show status\n") - fmt.Printf(" orama dev logs node-1 - Node-1 logs\n") - fmt.Printf(" orama dev logs node-2 - Node-2 logs\n") - fmt.Printf(" orama dev down - Stop all services\n\n") - fmt.Printf("Logs directory: %s/logs\n\n", oramaDir) -} - -func handleDevDown(args []string) { - homeDir, err := os.UserHomeDir() - if err != nil { - fmt.Fprintf(os.Stderr, "❌ Failed to get home directory: %v\n", err) - os.Exit(1) - } - oramaDir := filepath.Join(homeDir, ".orama") - - pm := development.NewProcessManager(oramaDir, os.Stdout) - ctx := context.Background() - - if err := pm.StopAll(ctx); err != nil { - fmt.Fprintf(os.Stderr, "⚠️ Error stopping services: %v\n", err) - os.Exit(1) - } - - fmt.Printf("✅ All services have been stopped\n\n") -} - -func handleDevStatus(args []string) { - homeDir, err := os.UserHomeDir() - if err != nil { - fmt.Fprintf(os.Stderr, "❌ Failed to get home directory: %v\n", err) - os.Exit(1) - } - oramaDir := filepath.Join(homeDir, ".orama") - - pm := development.NewProcessManager(oramaDir, os.Stdout) - ctx := context.Background() - - pm.Status(ctx) -} - -func handleDevLogs(args []string) { - if len(args) == 0 { - fmt.Fprintf(os.Stderr, "Usage: orama dev logs [--follow]\n") - fmt.Fprintf(os.Stderr, "\nComponents: node-1, node-2, node-3, node-4, node-5, gateway, ipfs-node-1, ipfs-node-2, ipfs-node-3, ipfs-node-4, ipfs-node-5, olric, anon\n") - os.Exit(1) - } - - component := args[0] - follow := len(args) > 1 && args[1] == "--follow" - - homeDir, err := os.UserHomeDir() - if err != nil { - fmt.Fprintf(os.Stderr, "❌ Failed to get home directory: %v\n", err) - os.Exit(1) - } - oramaDir := filepath.Join(homeDir, ".orama") - - logPath := filepath.Join(oramaDir, "logs", fmt.Sprintf("%s.log", component)) - if _, err := os.Stat(logPath); os.IsNotExist(err) { - fmt.Fprintf(os.Stderr, "❌ Log file not found: %s\n", logPath) - os.Exit(1) - } - - if follow { - // Run tail -f - tailCmd := fmt.Sprintf("tail -f %s", logPath) - fmt.Printf("Following %s (press Ctrl+C to stop)...\n\n", logPath) - // syscall.Exec doesn't work in all environments, use exec.Command instead - cmd := exec.Command("sh", "-c", tailCmd) - cmd.Stdout = os.Stdout - cmd.Stderr = os.Stderr - cmd.Stdin = os.Stdin - cmd.Run() - } else { - // Cat the file - data, _ := os.ReadFile(logPath) - fmt.Print(string(data)) - } -} diff --git a/pkg/cli/env_commands.go b/pkg/cli/env_commands.go index 241c5d8..fcddeab 100644 --- a/pkg/cli/env_commands.go +++ b/pkg/cli/env_commands.go @@ -46,7 +46,6 @@ func showEnvHelp() { fmt.Printf(" switch - Switch to a different environment\n") fmt.Printf(" enable - Alias for 'switch' (e.g., 'devnet enable')\n\n") fmt.Printf("Available Environments:\n") - fmt.Printf(" local - Local development (http://localhost:6001)\n") fmt.Printf(" devnet - Development network (https://orama-devnet.network)\n") fmt.Printf(" testnet - Test network (https://orama-tesetnet.network)\n\n") fmt.Printf("Examples:\n") @@ -104,7 +103,7 @@ func handleEnvCurrent() { func handleEnvSwitch(args []string) { if len(args) == 0 { fmt.Fprintf(os.Stderr, "Usage: orama env switch \n") - fmt.Fprintf(os.Stderr, "Available: local, devnet, testnet\n") + fmt.Fprintf(os.Stderr, "Available: devnet, testnet\n") os.Exit(1) } @@ -207,12 +206,6 @@ func handleEnvRemove(args []string) { name := args[0] - // Don't allow removing 'local' - if name == "local" { - fmt.Fprintf(os.Stderr, "❌ Cannot remove the 'local' environment\n") - os.Exit(1) - } - envConfig, err := LoadEnvironmentConfig() if err != nil { fmt.Fprintf(os.Stderr, "❌ Failed to load environment config: %v\n", err) @@ -237,9 +230,9 @@ func handleEnvRemove(args []string) { envConfig.Environments = newEnvs - // If we removed the active environment, switch to local + // If we removed the active environment, switch to devnet if envConfig.ActiveEnvironment == name { - envConfig.ActiveEnvironment = "local" + envConfig.ActiveEnvironment = "devnet" } if err := SaveEnvironmentConfig(envConfig); err != nil { diff --git a/pkg/cli/environment.go b/pkg/cli/environment.go index e1d7c5e..3c0ad0d 100644 --- a/pkg/cli/environment.go +++ b/pkg/cli/environment.go @@ -25,12 +25,6 @@ type EnvironmentConfig struct { // Default environments var DefaultEnvironments = []Environment{ - { - Name: "local", - GatewayURL: "http://localhost:6001", - Description: "Local development environment (node-1)", - IsActive: true, - }, { Name: "production", GatewayURL: "https://dbrs.space", @@ -41,7 +35,7 @@ var DefaultEnvironments = []Environment{ Name: "devnet", GatewayURL: "https://orama-devnet.network", Description: "Development network (testnet)", - IsActive: false, + IsActive: true, }, { Name: "testnet", @@ -71,7 +65,7 @@ func LoadEnvironmentConfig() (*EnvironmentConfig, error) { if _, err := os.Stat(path); os.IsNotExist(err) { return &EnvironmentConfig{ Environments: DefaultEnvironments, - ActiveEnvironment: "local", + ActiveEnvironment: "devnet", }, nil } @@ -126,9 +120,9 @@ func GetActiveEnvironment() (*Environment, error) { } } - // Fallback to local if active environment not found + // Fallback to devnet if active environment not found for _, env := range envConfig.Environments { - if env.Name == "local" { + if env.Name == "devnet" { return &env, nil } } @@ -190,7 +184,7 @@ func InitializeEnvironments() error { envConfig := &EnvironmentConfig{ Environments: DefaultEnvironments, - ActiveEnvironment: "local", + ActiveEnvironment: "devnet", } return SaveEnvironmentConfig(envConfig) diff --git a/pkg/client/config.go b/pkg/client/config.go index 12ffb86..48c36ae 100644 --- a/pkg/client/config.go +++ b/pkg/client/config.go @@ -11,7 +11,7 @@ type ClientConfig struct { DatabaseName string `json:"database_name"` BootstrapPeers []string `json:"peers"` DatabaseEndpoints []string `json:"database_endpoints"` - GatewayURL string `json:"gateway_url"` // Gateway URL for HTTP API access (e.g., "http://localhost:6001") + GatewayURL string `json:"gateway_url"` // Gateway URL for HTTP API access ConnectTimeout time.Duration `json:"connect_timeout"` RetryAttempts int `json:"retry_attempts"` RetryDelay time.Duration `json:"retry_delay"` @@ -31,7 +31,7 @@ func DefaultClientConfig(appName string) *ClientConfig { DatabaseName: fmt.Sprintf("%s_db", appName), BootstrapPeers: peers, DatabaseEndpoints: endpoints, - GatewayURL: "http://localhost:6001", + GatewayURL: "", ConnectTimeout: time.Second * 30, RetryAttempts: 3, RetryDelay: time.Second * 5, diff --git a/pkg/client/defaults.go b/pkg/client/defaults.go index 567bec8..712563e 100644 --- a/pkg/client/defaults.go +++ b/pkg/client/defaults.go @@ -62,8 +62,8 @@ func DefaultDatabaseEndpoints() []string { return dedupeStrings(endpoints) } - // Fallback to localhost - return []string{"http://localhost:" + strconv.Itoa(port)} + // No fallback — require explicit configuration + return nil } // MapAddrsToDBEndpoints converts a set of peer multiaddrs to DB HTTP endpoints using dbPort. @@ -107,7 +107,7 @@ func endpointFromMultiaddr(ma multiaddr.Multiaddr, port int) string { } } if host == "" { - host = "localhost" + return "" } return "http://" + host + ":" + strconv.Itoa(port) diff --git a/pkg/environments/development/checks.go b/pkg/environments/development/checks.go deleted file mode 100644 index 9a51a7b..0000000 --- a/pkg/environments/development/checks.go +++ /dev/null @@ -1,136 +0,0 @@ -package development - -import ( - "fmt" - "net" - "os/exec" - "strings" -) - -// Dependency represents an external binary dependency -type Dependency struct { - Name string - Command string - MinVersion string // Optional: if set, try to check version - InstallHint string -} - -// DependencyChecker handles dependency validation -type DependencyChecker struct { - dependencies []Dependency -} - -// NewDependencyChecker creates a new dependency checker -func NewDependencyChecker() *DependencyChecker { - return &DependencyChecker{ - dependencies: []Dependency{ - { - Name: "IPFS", - Command: "ipfs", - MinVersion: "0.25.0", - InstallHint: "Install with: brew install ipfs (macOS) or https://docs.ipfs.tech/install/command-line/", - }, - { - Name: "IPFS Cluster Service", - Command: "ipfs-cluster-service", - MinVersion: "1.0.0", - InstallHint: "Install with: go install github.com/ipfs-cluster/ipfs-cluster/cmd/ipfs-cluster-service@latest", - }, - { - Name: "RQLite", - Command: "rqlited", - InstallHint: "Install with: brew install rqlite (macOS) or https://github.com/rqlite/rqlite/releases", - }, - { - Name: "Olric Server", - Command: "olric-server", - InstallHint: "Install with: go install github.com/olric-data/olric/cmd/olric-server@v0.7.0", - }, - { - Name: "npm (for Anyone)", - Command: "npm", - InstallHint: "Install Node.js with: brew install node (macOS) or https://nodejs.org/", - }, - { - Name: "OpenSSL", - Command: "openssl", - InstallHint: "Install with: brew install openssl (macOS) - usually pre-installed on Linux", - }, - }, - } -} - -// CheckAll performs all dependency checks and returns a report -func (dc *DependencyChecker) CheckAll() ([]string, error) { - var missing []string - var hints []string - - for _, dep := range dc.dependencies { - if _, err := exec.LookPath(dep.Command); err != nil { - missing = append(missing, dep.Name) - hints = append(hints, fmt.Sprintf(" %s: %s", dep.Name, dep.InstallHint)) - } - } - - if len(missing) == 0 { - return nil, nil // All OK - } - - errMsg := fmt.Sprintf("Missing %d required dependencies:\n%s\n\nInstall them with:\n%s", - len(missing), strings.Join(missing, ", "), strings.Join(hints, "\n")) - return missing, fmt.Errorf("%s", errMsg) -} - -// PortChecker validates that required ports are available -type PortChecker struct { - ports []int -} - -// RequiredPorts defines all ports needed for dev environment -// Computed from DefaultTopology -var RequiredPorts = DefaultTopology().AllPorts() - -// NewPortChecker creates a new port checker with required ports -func NewPortChecker() *PortChecker { - return &PortChecker{ - ports: RequiredPorts, - } -} - -// CheckAll verifies all required ports are available -func (pc *PortChecker) CheckAll() ([]int, error) { - var unavailable []int - - for _, port := range pc.ports { - if !isPortAvailable(port) { - unavailable = append(unavailable, port) - } - } - - if len(unavailable) == 0 { - return nil, nil // All OK - } - - errMsg := fmt.Sprintf("The following ports are unavailable: %v\n\nFree them or stop conflicting services and try again", - unavailable) - return unavailable, fmt.Errorf("%s", errMsg) -} - -// isPortAvailable checks if a TCP port is available for binding -func isPortAvailable(port int) bool { - // Port 0 is reserved and means "assign any available port" - if port == 0 { - return false - } - ln, err := net.Listen("tcp", fmt.Sprintf("127.0.0.1:%d", port)) - if err != nil { - return false - } - ln.Close() - return true -} - -// PortMap provides a human-readable mapping of ports to services -func PortMap() map[int]string { - return DefaultTopology().PortMap() -} diff --git a/pkg/environments/development/checks_test.go b/pkg/environments/development/checks_test.go deleted file mode 100644 index 2005e89..0000000 --- a/pkg/environments/development/checks_test.go +++ /dev/null @@ -1,92 +0,0 @@ -package development - -import ( - "testing" -) - -func TestPortChecker(t *testing.T) { - checker := NewPortChecker() - - if checker == nil { - t.Fatal("NewPortChecker returned nil") - } - - // Verify all required ports are defined - if len(checker.ports) == 0 { - t.Fatal("No ports defined in checker") - } - - // Check that required port counts match expectations - // 5 nodes × 9 ports per node + 4 shared ports = 49 - expectedPortCount := 49 // Based on RequiredPorts - if len(checker.ports) != expectedPortCount { - t.Errorf("Expected %d ports, got %d", expectedPortCount, len(checker.ports)) - } -} - -func TestPortMap(t *testing.T) { - portMap := PortMap() - - if len(portMap) == 0 { - t.Fatal("PortMap returned empty map") - } - - // Check for key ports - expectedPorts := []int{4001, 5001, 7001, 6001, 3320, 9050, 9094} - for _, port := range expectedPorts { - if _, exists := portMap[port]; !exists { - t.Errorf("Expected port %d not found in PortMap", port) - } - } - - // Verify descriptions exist - for port, desc := range portMap { - if desc == "" { - t.Errorf("Port %d has empty description", port) - } - } -} - -func TestDependencyChecker(t *testing.T) { - checker := NewDependencyChecker() - - if checker == nil { - t.Fatal("NewDependencyChecker returned nil") - } - - // Verify required dependencies are defined - if len(checker.dependencies) == 0 { - t.Fatal("No dependencies defined in checker") - } - - // Expected minimum dependencies - expectedDeps := []string{"ipfs", "rqlited", "olric-server", "npm"} - for _, expected := range expectedDeps { - found := false - for _, dep := range checker.dependencies { - if dep.Command == expected { - found = true - if dep.InstallHint == "" { - t.Errorf("Dependency %s has no install hint", expected) - } - break - } - } - if !found { - t.Errorf("Expected dependency %s not found", expected) - } - } -} - -func TestIsPortAvailable(t *testing.T) { - // Test with a very high port that should be available - highPort := 65432 - if !isPortAvailable(highPort) { - t.Logf("Port %d may be in use (this is non-fatal for testing)", highPort) - } - - // Port 0 should not be available (reserved) - if isPortAvailable(0) { - t.Error("Port 0 should not be available") - } -} diff --git a/pkg/environments/development/config.go b/pkg/environments/development/config.go deleted file mode 100644 index dffaee8..0000000 --- a/pkg/environments/development/config.go +++ /dev/null @@ -1,211 +0,0 @@ -package development - -import ( - "crypto/rand" - "encoding/hex" - "fmt" - "os" - "path/filepath" - "strings" - - "github.com/DeBrosOfficial/network/pkg/encryption" - "github.com/DeBrosOfficial/network/pkg/environments/templates" -) - -// ConfigEnsurer handles all config file creation and validation -type ConfigEnsurer struct { - oramaDir string -} - -// NewConfigEnsurer creates a new config ensurer -func NewConfigEnsurer(oramaDir string) *ConfigEnsurer { - return &ConfigEnsurer{ - oramaDir: oramaDir, - } -} - -// EnsureAll ensures all necessary config files and secrets exist -func (ce *ConfigEnsurer) EnsureAll() error { - // Create directories - if err := os.MkdirAll(ce.oramaDir, 0755); err != nil { - return fmt.Errorf("failed to create .orama directory: %w", err) - } - - if err := os.MkdirAll(filepath.Join(ce.oramaDir, "logs"), 0755); err != nil { - return fmt.Errorf("failed to create logs directory: %w", err) - } - - // Ensure shared secrets - if err := ce.ensureSharedSecrets(); err != nil { - return fmt.Errorf("failed to ensure shared secrets: %w", err) - } - - // Load topology - topology := DefaultTopology() - - // Generate identities for first two nodes and collect their multiaddrs as peer addresses - // All nodes use these addresses for initial peer discovery - peerAddrs := []string{} - for i := 0; i < 2 && i < len(topology.Nodes); i++ { - nodeSpec := topology.Nodes[i] - addr, err := ce.ensureNodeIdentity(nodeSpec) - if err != nil { - return fmt.Errorf("failed to ensure identity for %s: %w", nodeSpec.Name, err) - } - peerAddrs = append(peerAddrs, addr) - } - - // Ensure configs for all nodes - for _, nodeSpec := range topology.Nodes { - if err := ce.ensureNodeConfig(nodeSpec, peerAddrs); err != nil { - return fmt.Errorf("failed to ensure config for %s: %w", nodeSpec.Name, err) - } - } - - // Gateway configuration is now embedded in each node's config - // No separate gateway.yaml needed anymore - - // Ensure Olric config - if err := ce.ensureOlric(); err != nil { - return fmt.Errorf("failed to ensure olric: %w", err) - } - - return nil -} - -// ensureSharedSecrets creates cluster secret and swarm key if they don't exist -func (ce *ConfigEnsurer) ensureSharedSecrets() error { - secretPath := filepath.Join(ce.oramaDir, "cluster-secret") - if _, err := os.Stat(secretPath); os.IsNotExist(err) { - secret := generateRandomHex(64) // 64 hex chars = 32 bytes - if err := os.WriteFile(secretPath, []byte(secret), 0600); err != nil { - return fmt.Errorf("failed to write cluster secret: %w", err) - } - fmt.Printf("✓ Generated cluster secret\n") - } - - swarmKeyPath := filepath.Join(ce.oramaDir, "swarm.key") - if _, err := os.Stat(swarmKeyPath); os.IsNotExist(err) { - keyHex := strings.ToUpper(generateRandomHex(64)) - content := fmt.Sprintf("/key/swarm/psk/1.0.0/\n/base16/\n%s\n", keyHex) - if err := os.WriteFile(swarmKeyPath, []byte(content), 0600); err != nil { - return fmt.Errorf("failed to write swarm key: %w", err) - } - fmt.Printf("✓ Generated IPFS swarm key\n") - } - - return nil -} - -// ensureNodeIdentity creates or loads a node identity and returns its multiaddr -func (ce *ConfigEnsurer) ensureNodeIdentity(nodeSpec NodeSpec) (string, error) { - nodeDir := filepath.Join(ce.oramaDir, nodeSpec.DataDir) - identityPath := filepath.Join(nodeDir, "identity.key") - - // Create identity if missing - var peerID string - if _, err := os.Stat(identityPath); os.IsNotExist(err) { - if err := os.MkdirAll(nodeDir, 0755); err != nil { - return "", fmt.Errorf("failed to create node directory: %w", err) - } - - info, err := encryption.GenerateIdentity() - if err != nil { - return "", fmt.Errorf("failed to generate identity: %w", err) - } - - if err := encryption.SaveIdentity(info, identityPath); err != nil { - return "", fmt.Errorf("failed to save identity: %w", err) - } - - peerID = info.PeerID.String() - fmt.Printf("✓ Generated %s identity (Peer ID: %s)\n", nodeSpec.Name, peerID) - } else { - info, err := encryption.LoadIdentity(identityPath) - if err != nil { - return "", fmt.Errorf("failed to load identity: %w", err) - } - peerID = info.PeerID.String() - } - - // Return multiaddr - return fmt.Sprintf("/ip4/127.0.0.1/tcp/%d/p2p/%s", nodeSpec.P2PPort, peerID), nil -} - -// ensureNodeConfig creates or updates a node configuration -func (ce *ConfigEnsurer) ensureNodeConfig(nodeSpec NodeSpec, peerAddrs []string) error { - nodeDir := filepath.Join(ce.oramaDir, nodeSpec.DataDir) - configPath := filepath.Join(ce.oramaDir, nodeSpec.ConfigFilename) - - if err := os.MkdirAll(nodeDir, 0755); err != nil { - return fmt.Errorf("failed to create node directory: %w", err) - } - - // Generate node config (all nodes are unified) - data := templates.NodeConfigData{ - NodeID: nodeSpec.Name, - P2PPort: nodeSpec.P2PPort, - DataDir: nodeDir, - RQLiteHTTPPort: nodeSpec.RQLiteHTTPPort, - RQLiteRaftPort: nodeSpec.RQLiteRaftPort, - RQLiteRaftInternalPort: nodeSpec.RQLiteRaftPort, - RQLiteJoinAddress: nodeSpec.RQLiteJoinTarget, - BootstrapPeers: peerAddrs, - ClusterAPIPort: nodeSpec.ClusterAPIPort, - IPFSAPIPort: nodeSpec.IPFSAPIPort, - HTTPAdvAddress: fmt.Sprintf("localhost:%d", nodeSpec.RQLiteHTTPPort), - RaftAdvAddress: fmt.Sprintf("localhost:%d", nodeSpec.RQLiteRaftPort), - UnifiedGatewayPort: nodeSpec.UnifiedGatewayPort, - } - - config, err := templates.RenderNodeConfig(data) - if err != nil { - return fmt.Errorf("failed to render node config: %w", err) - } - - if err := os.WriteFile(configPath, []byte(config), 0644); err != nil { - return fmt.Errorf("failed to write node config: %w", err) - } - - fmt.Printf("✓ Generated %s.yaml\n", nodeSpec.Name) - - return nil -} - -// Gateway configuration is now embedded in each node's config -// ensureGateway is no longer needed - each node runs its own embedded gateway - -// ensureOlric creates Olric config -func (ce *ConfigEnsurer) ensureOlric() error { - configPath := filepath.Join(ce.oramaDir, "olric-config.yaml") - - topology := DefaultTopology() - data := templates.OlricConfigData{ - ServerBindAddr: "127.0.0.1", - HTTPPort: topology.OlricHTTPPort, - MemberlistBindAddr: "127.0.0.1", // localhost for development - MemberlistPort: topology.OlricMemberPort, - MemberlistEnvironment: "local", // development environment - } - - config, err := templates.RenderOlricConfig(data) - if err != nil { - return fmt.Errorf("failed to render olric config: %w", err) - } - - if err := os.WriteFile(configPath, []byte(config), 0644); err != nil { - return fmt.Errorf("failed to write olric config: %w", err) - } - - fmt.Printf("✓ Generated olric-config.yaml\n") - return nil -} - -// generateRandomHex generates a random hex string of specified length -func generateRandomHex(length int) string { - bytes := make([]byte, length/2) - if _, err := rand.Read(bytes); err != nil { - panic(fmt.Sprintf("failed to generate random bytes: %v", err)) - } - return hex.EncodeToString(bytes) -} diff --git a/pkg/environments/development/health.go b/pkg/environments/development/health.go deleted file mode 100644 index d60ac98..0000000 --- a/pkg/environments/development/health.go +++ /dev/null @@ -1,215 +0,0 @@ -package development - -import ( - "context" - "encoding/json" - "fmt" - "io" - "net/http" - "os/exec" - "strings" - "time" - - "github.com/DeBrosOfficial/network/pkg/tlsutil" -) - -// HealthCheckResult represents the result of a health check -type HealthCheckResult struct { - Name string - Healthy bool - Details string -} - -// IPFSHealthCheck verifies IPFS peer connectivity -func (pm *ProcessManager) IPFSHealthCheck(ctx context.Context, nodes []ipfsNodeInfo) HealthCheckResult { - result := HealthCheckResult{Name: "IPFS Peers"} - - healthyCount := 0 - for _, node := range nodes { - cmd := exec.CommandContext(ctx, "ipfs", "swarm", "peers", "--repo-dir="+node.ipfsPath) - output, err := cmd.CombinedOutput() - if err != nil { - result.Details += fmt.Sprintf("%s: error getting peers (%v); ", node.name, err) - continue - } - - // Split by newlines and filter empty lines - peerLines := strings.Split(strings.TrimSpace(string(output)), "\n") - peerCount := 0 - for _, line := range peerLines { - if strings.TrimSpace(line) != "" { - peerCount++ - } - } - - // With 5 nodes, expect each node to see at least 3 other peers - if peerCount < 3 { - result.Details += fmt.Sprintf("%s: only %d peers (want 3+); ", node.name, peerCount) - } else { - result.Details += fmt.Sprintf("%s: %d peers; ", node.name, peerCount) - healthyCount++ - } - } - - // Require all 5 nodes to have healthy peer counts - result.Healthy = healthyCount == len(nodes) - return result -} - -// RQLiteHealthCheck verifies RQLite cluster formation -func (pm *ProcessManager) RQLiteHealthCheck(ctx context.Context) HealthCheckResult { - result := HealthCheckResult{Name: "RQLite Cluster"} - - topology := DefaultTopology() - healthyCount := 0 - - for _, nodeSpec := range topology.Nodes { - status := pm.checkRQLiteNode(ctx, nodeSpec.Name, nodeSpec.RQLiteHTTPPort) - if status.Healthy { - healthyCount++ - } - result.Details += fmt.Sprintf("%s: %s; ", nodeSpec.Name, status.Details) - } - - // Require at least 3 out of 5 nodes to be healthy for quorum - result.Healthy = healthyCount >= 3 - return result -} - -// checkRQLiteNode queries a single RQLite node's status -func (pm *ProcessManager) checkRQLiteNode(ctx context.Context, name string, httpPort int) HealthCheckResult { - result := HealthCheckResult{Name: fmt.Sprintf("RQLite-%s", name)} - - urlStr := fmt.Sprintf("http://localhost:%d/status", httpPort) - client := tlsutil.NewHTTPClient(2 * time.Second) - resp, err := client.Get(urlStr) - if err != nil { - result.Details = fmt.Sprintf("connection failed: %v", err) - return result - } - defer resp.Body.Close() - - if resp.StatusCode != http.StatusOK { - result.Details = fmt.Sprintf("HTTP %d", resp.StatusCode) - return result - } - - var status map[string]interface{} - if err := json.NewDecoder(resp.Body).Decode(&status); err != nil { - result.Details = fmt.Sprintf("decode error: %v", err) - return result - } - - // Check the store.raft structure (RQLite 8 format) - store, ok := status["store"].(map[string]interface{}) - if !ok { - result.Details = "store data not found" - return result - } - - raft, ok := store["raft"].(map[string]interface{}) - if !ok { - result.Details = "raft data not found" - return result - } - - // Check if we have a leader - leader, hasLeader := raft["leader"].(string) - if hasLeader && leader != "" { - result.Healthy = true - result.Details = "cluster member with leader elected" - return result - } - - // Check node state - accept both Leader and Follower - if state, ok := raft["state"].(string); ok { - if state == "Leader" { - result.Healthy = true - result.Details = "this node is leader" - return result - } - if state == "Follower" { - result.Healthy = true - result.Details = "this node is follower in cluster" - return result - } - result.Details = fmt.Sprintf("state: %s", state) - return result - } - - result.Details = "not yet connected" - return result -} - -// LibP2PHealthCheck verifies that network nodes have peer connections -func (pm *ProcessManager) LibP2PHealthCheck(ctx context.Context) HealthCheckResult { - result := HealthCheckResult{Name: "LibP2P/Node Peers"} - - // Check that nodes are part of the RQLite cluster and can communicate via LibP2P - topology := DefaultTopology() - healthyNodes := 0 - - for _, nodeSpec := range topology.Nodes { - status := pm.checkRQLiteNode(ctx, nodeSpec.Name, nodeSpec.RQLiteHTTPPort) - if status.Healthy { - healthyNodes++ - result.Details += fmt.Sprintf("%s: connected; ", nodeSpec.Name) - } else { - result.Details += fmt.Sprintf("%s: %s; ", nodeSpec.Name, status.Details) - } - } - - // Healthy if at least 3 nodes report connectivity - result.Healthy = healthyNodes >= 3 - return result -} - -// HealthCheckWithRetry performs a health check with retry logic -func (pm *ProcessManager) HealthCheckWithRetry(ctx context.Context, nodes []ipfsNodeInfo, retries int, retryInterval time.Duration, timeout time.Duration) bool { - fmt.Fprintf(pm.logWriter, "⚕️ Validating cluster health...") - - deadlineCtx, cancel := context.WithTimeout(ctx, timeout) - defer cancel() - - spinnerFrames := []string{"⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"} - spinnerIndex := 0 - - for attempt := 1; attempt <= retries; attempt++ { - // Perform all checks - ipfsResult := pm.IPFSHealthCheck(deadlineCtx, nodes) - rqliteResult := pm.RQLiteHealthCheck(deadlineCtx) - libp2pResult := pm.LibP2PHealthCheck(deadlineCtx) - - // All checks must pass - if ipfsResult.Healthy && rqliteResult.Healthy && libp2pResult.Healthy { - fmt.Fprintf(pm.logWriter, "\r✓ Cluster health validated\n") - return true - } - - // Show spinner progress - fmt.Fprintf(pm.logWriter, "\r%s Validating cluster health... (%d/%d)", spinnerFrames[spinnerIndex%len(spinnerFrames)], attempt, retries) - spinnerIndex++ - - if attempt < retries { - select { - case <-time.After(retryInterval): - continue - case <-deadlineCtx.Done(): - fmt.Fprintf(pm.logWriter, "\r❌ Health check timeout reached\n") - return false - } - } - } - - fmt.Fprintf(pm.logWriter, "\r❌ Health checks failed - services not ready\n") - return false -} - -// logHealthCheckResult logs a single health check result -func (pm *ProcessManager) logHealthCheckResult(w io.Writer, indent string, result HealthCheckResult) { - status := "❌" - if result.Healthy { - status = "✓" - } - fmt.Fprintf(w, "%s%s %s: %s\n", indent, status, result.Name, result.Details) -} diff --git a/pkg/environments/development/ipfs.go b/pkg/environments/development/ipfs.go deleted file mode 100644 index a6ba3d9..0000000 --- a/pkg/environments/development/ipfs.go +++ /dev/null @@ -1,287 +0,0 @@ -package development - -import ( - "context" - "encoding/json" - "fmt" - "net/http" - "net/url" - "os" - "os/exec" - "path/filepath" - "strings" - "time" - - "github.com/DeBrosOfficial/network/pkg/tlsutil" -) - -// ipfsNodeInfo holds information about an IPFS node for peer discovery -type ipfsNodeInfo struct { - name string - ipfsPath string - apiPort int - swarmPort int - gatewayPort int - peerID string -} - -func (pm *ProcessManager) buildIPFSNodes(topology *Topology) []ipfsNodeInfo { - var nodes []ipfsNodeInfo - for _, nodeSpec := range topology.Nodes { - nodes = append(nodes, ipfsNodeInfo{ - name: nodeSpec.Name, - ipfsPath: filepath.Join(pm.oramaDir, nodeSpec.DataDir, "ipfs/repo"), - apiPort: nodeSpec.IPFSAPIPort, - swarmPort: nodeSpec.IPFSSwarmPort, - gatewayPort: nodeSpec.IPFSGatewayPort, - peerID: "", - }) - } - return nodes -} - -func (pm *ProcessManager) startIPFS(ctx context.Context) error { - topology := DefaultTopology() - nodes := pm.buildIPFSNodes(topology) - - for i := range nodes { - os.MkdirAll(nodes[i].ipfsPath, 0755) - - if _, err := os.Stat(filepath.Join(nodes[i].ipfsPath, "config")); os.IsNotExist(err) { - fmt.Fprintf(pm.logWriter, " Initializing IPFS (%s)...\n", nodes[i].name) - cmd := exec.CommandContext(ctx, "ipfs", "init", "--profile=server", "--repo-dir="+nodes[i].ipfsPath) - if _, err := cmd.CombinedOutput(); err != nil { - fmt.Fprintf(pm.logWriter, " Warning: ipfs init failed: %v\n", err) - } - - swarmKeyPath := filepath.Join(pm.oramaDir, "swarm.key") - if data, err := os.ReadFile(swarmKeyPath); err == nil { - os.WriteFile(filepath.Join(nodes[i].ipfsPath, "swarm.key"), data, 0600) - } - } - - peerID, err := configureIPFSRepo(nodes[i].ipfsPath, nodes[i].apiPort, nodes[i].gatewayPort, nodes[i].swarmPort) - if err != nil { - fmt.Fprintf(pm.logWriter, " Warning: failed to configure IPFS repo for %s: %v\n", nodes[i].name, err) - } else { - nodes[i].peerID = peerID - fmt.Fprintf(pm.logWriter, " Peer ID for %s: %s\n", nodes[i].name, peerID) - } - } - - for i := range nodes { - pidPath := filepath.Join(pm.pidsDir, fmt.Sprintf("ipfs-%s.pid", nodes[i].name)) - logPath := filepath.Join(pm.oramaDir, "logs", fmt.Sprintf("ipfs-%s.log", nodes[i].name)) - - cmd := exec.CommandContext(ctx, "ipfs", "daemon", "--enable-pubsub-experiment", "--repo-dir="+nodes[i].ipfsPath) - logFile, _ := os.Create(logPath) - cmd.Stdout = logFile - cmd.Stderr = logFile - - if err := cmd.Start(); err != nil { - return fmt.Errorf("failed to start ipfs-%s: %w", nodes[i].name, err) - } - - os.WriteFile(pidPath, []byte(fmt.Sprintf("%d", cmd.Process.Pid)), 0644) - pm.processes[fmt.Sprintf("ipfs-%s", nodes[i].name)] = &ManagedProcess{ - Name: fmt.Sprintf("ipfs-%s", nodes[i].name), - PID: cmd.Process.Pid, - StartTime: time.Now(), - LogPath: logPath, - } - - fmt.Fprintf(pm.logWriter, "✓ IPFS (%s) started (PID: %d, API: %d, Swarm: %d)\n", nodes[i].name, cmd.Process.Pid, nodes[i].apiPort, nodes[i].swarmPort) - } - - time.Sleep(2 * time.Second) - - if err := pm.seedIPFSPeersWithHTTP(ctx, nodes); err != nil { - fmt.Fprintf(pm.logWriter, "⚠️ Failed to seed IPFS peers: %v\n", err) - } - - return nil -} - -func configureIPFSRepo(repoPath string, apiPort, gatewayPort, swarmPort int) (string, error) { - configPath := filepath.Join(repoPath, "config") - data, err := os.ReadFile(configPath) - if err != nil { - return "", fmt.Errorf("failed to read IPFS config: %w", err) - } - - var config map[string]interface{} - if err := json.Unmarshal(data, &config); err != nil { - return "", fmt.Errorf("failed to parse IPFS config: %w", err) - } - - config["Addresses"] = map[string]interface{}{ - "API": []string{fmt.Sprintf("/ip4/127.0.0.1/tcp/%d", apiPort)}, - "Gateway": []string{fmt.Sprintf("/ip4/127.0.0.1/tcp/%d", gatewayPort)}, - "Swarm": []string{ - fmt.Sprintf("/ip4/0.0.0.0/tcp/%d", swarmPort), - fmt.Sprintf("/ip6/::/tcp/%d", swarmPort), - }, - } - - config["AutoConf"] = map[string]interface{}{ - "Enabled": false, - } - config["Bootstrap"] = []string{} - - if dns, ok := config["DNS"].(map[string]interface{}); ok { - dns["Resolvers"] = map[string]interface{}{} - } else { - config["DNS"] = map[string]interface{}{ - "Resolvers": map[string]interface{}{}, - } - } - - if routing, ok := config["Routing"].(map[string]interface{}); ok { - routing["DelegatedRouters"] = []string{} - } else { - config["Routing"] = map[string]interface{}{ - "DelegatedRouters": []string{}, - } - } - - if ipns, ok := config["Ipns"].(map[string]interface{}); ok { - ipns["DelegatedPublishers"] = []string{} - } else { - config["Ipns"] = map[string]interface{}{ - "DelegatedPublishers": []string{}, - } - } - - if api, ok := config["API"].(map[string]interface{}); ok { - api["HTTPHeaders"] = map[string][]string{ - "Access-Control-Allow-Origin": {"*"}, - "Access-Control-Allow-Methods": {"GET", "PUT", "POST", "DELETE", "OPTIONS"}, - "Access-Control-Allow-Headers": {"Content-Type", "X-Requested-With"}, - "Access-Control-Expose-Headers": {"Content-Length", "Content-Range"}, - } - } else { - config["API"] = map[string]interface{}{ - "HTTPHeaders": map[string][]string{ - "Access-Control-Allow-Origin": {"*"}, - "Access-Control-Allow-Methods": {"GET", "PUT", "POST", "DELETE", "OPTIONS"}, - "Access-Control-Allow-Headers": {"Content-Type", "X-Requested-With"}, - "Access-Control-Expose-Headers": {"Content-Length", "Content-Range"}, - }, - } - } - - updatedData, err := json.MarshalIndent(config, "", " ") - if err != nil { - return "", fmt.Errorf("failed to marshal IPFS config: %w", err) - } - - if err := os.WriteFile(configPath, updatedData, 0644); err != nil { - return "", fmt.Errorf("failed to write IPFS config: %w", err) - } - - if id, ok := config["Identity"].(map[string]interface{}); ok { - if peerID, ok := id["PeerID"].(string); ok { - return peerID, nil - } - } - - return "", fmt.Errorf("could not extract peer ID from config") -} - -func (pm *ProcessManager) seedIPFSPeersWithHTTP(ctx context.Context, nodes []ipfsNodeInfo) error { - fmt.Fprintf(pm.logWriter, " Seeding IPFS local bootstrap peers via HTTP API...\n") - - for _, node := range nodes { - if err := pm.waitIPFSReady(ctx, node); err != nil { - fmt.Fprintf(pm.logWriter, " Warning: failed to wait for IPFS readiness for %s: %v\n", node.name, err) - } - } - - for i, node := range nodes { - httpURL := fmt.Sprintf("http://127.0.0.1:%d/api/v0/bootstrap/rm?all=true", node.apiPort) - if err := pm.ipfsHTTPCall(ctx, httpURL, "POST"); err != nil { - fmt.Fprintf(pm.logWriter, " Warning: failed to clear bootstrap for %s: %v\n", node.name, err) - } - - for j, otherNode := range nodes { - if i == j { - continue - } - - multiaddr := fmt.Sprintf("/ip4/127.0.0.1/tcp/%d/p2p/%s", otherNode.swarmPort, otherNode.peerID) - httpURL := fmt.Sprintf("http://127.0.0.1:%d/api/v0/bootstrap/add?arg=%s", node.apiPort, url.QueryEscape(multiaddr)) - if err := pm.ipfsHTTPCall(ctx, httpURL, "POST"); err != nil { - fmt.Fprintf(pm.logWriter, " Warning: failed to add bootstrap peer for %s: %v\n", node.name, err) - } - } - } - - return nil -} - -func (pm *ProcessManager) waitIPFSReady(ctx context.Context, node ipfsNodeInfo) error { - maxRetries := 30 - retryInterval := 500 * time.Millisecond - - for attempt := 0; attempt < maxRetries; attempt++ { - httpURL := fmt.Sprintf("http://127.0.0.1:%d/api/v0/version", node.apiPort) - if err := pm.ipfsHTTPCall(ctx, httpURL, "POST"); err == nil { - return nil - } - - select { - case <-time.After(retryInterval): - continue - case <-ctx.Done(): - return ctx.Err() - } - } - - return fmt.Errorf("IPFS daemon %s did not become ready", node.name) -} - -func (pm *ProcessManager) ipfsHTTPCall(ctx context.Context, urlStr string, method string) error { - client := tlsutil.NewHTTPClient(5 * time.Second) - req, err := http.NewRequestWithContext(ctx, method, urlStr, nil) - if err != nil { - return fmt.Errorf("failed to create request: %w", err) - } - - resp, err := client.Do(req) - if err != nil { - return fmt.Errorf("HTTP call failed: %w", err) - } - defer resp.Body.Close() - - if resp.StatusCode >= 400 { - return fmt.Errorf("HTTP %d", resp.StatusCode) - } - - return nil -} - -func readIPFSConfigValue(ctx context.Context, repoPath string, key string) (string, error) { - configPath := filepath.Join(repoPath, "config") - data, err := os.ReadFile(configPath) - if err != nil { - return "", fmt.Errorf("failed to read IPFS config: %w", err) - } - - lines := strings.Split(string(data), "\n") - for _, line := range lines { - line = strings.TrimSpace(line) - if strings.Contains(line, key) { - parts := strings.SplitN(line, ":", 2) - if len(parts) == 2 { - value := strings.TrimSpace(parts[1]) - value = strings.Trim(value, `",`) - if value != "" { - return value, nil - } - } - } - } - - return "", fmt.Errorf("key %s not found in IPFS config", key) -} - diff --git a/pkg/environments/development/ipfs_cluster.go b/pkg/environments/development/ipfs_cluster.go deleted file mode 100644 index b968348..0000000 --- a/pkg/environments/development/ipfs_cluster.go +++ /dev/null @@ -1,314 +0,0 @@ -package development - -import ( - "context" - "encoding/json" - "fmt" - "net/http" - "os" - "os/exec" - "path/filepath" - "strings" - "time" -) - -func (pm *ProcessManager) startIPFSCluster(ctx context.Context) error { - topology := DefaultTopology() - var nodes []struct { - name string - clusterPath string - restAPIPort int - clusterPort int - ipfsPort int - } - - for _, nodeSpec := range topology.Nodes { - nodes = append(nodes, struct { - name string - clusterPath string - restAPIPort int - clusterPort int - ipfsPort int - }{ - nodeSpec.Name, - filepath.Join(pm.oramaDir, nodeSpec.DataDir, "ipfs-cluster"), - nodeSpec.ClusterAPIPort, - nodeSpec.ClusterPort, - nodeSpec.IPFSAPIPort, - }) - } - - fmt.Fprintf(pm.logWriter, " Waiting for IPFS daemons to be ready...\n") - ipfsNodes := pm.buildIPFSNodes(topology) - for _, ipfsNode := range ipfsNodes { - if err := pm.waitIPFSReady(ctx, ipfsNode); err != nil { - fmt.Fprintf(pm.logWriter, " Warning: IPFS %s did not become ready: %v\n", ipfsNode.name, err) - } - } - - secretPath := filepath.Join(pm.oramaDir, "cluster-secret") - clusterSecret, err := os.ReadFile(secretPath) - if err != nil { - return fmt.Errorf("failed to read cluster secret: %w", err) - } - clusterSecretHex := strings.TrimSpace(string(clusterSecret)) - - bootstrapMultiaddr := "" - { - node := nodes[0] - if err := pm.cleanClusterState(node.clusterPath); err != nil { - fmt.Fprintf(pm.logWriter, " Warning: failed to clean cluster state for %s: %v\n", node.name, err) - } - - os.MkdirAll(node.clusterPath, 0755) - fmt.Fprintf(pm.logWriter, " Initializing IPFS Cluster (%s)...\n", node.name) - cmd := exec.CommandContext(ctx, "ipfs-cluster-service", "init", "--force") - cmd.Env = append(os.Environ(), - fmt.Sprintf("IPFS_CLUSTER_PATH=%s", node.clusterPath), - fmt.Sprintf("CLUSTER_SECRET=%s", clusterSecretHex), - ) - if output, err := cmd.CombinedOutput(); err != nil { - fmt.Fprintf(pm.logWriter, " Warning: ipfs-cluster-service init failed: %v (output: %s)\n", err, string(output)) - } - - if err := pm.ensureIPFSClusterPorts(node.clusterPath, node.restAPIPort, node.clusterPort); err != nil { - fmt.Fprintf(pm.logWriter, " Warning: failed to update IPFS Cluster config for %s: %v\n", node.name, err) - } - - pidPath := filepath.Join(pm.pidsDir, fmt.Sprintf("ipfs-cluster-%s.pid", node.name)) - logPath := filepath.Join(pm.oramaDir, "logs", fmt.Sprintf("ipfs-cluster-%s.log", node.name)) - - cmd = exec.CommandContext(ctx, "ipfs-cluster-service", "daemon") - cmd.Env = append(os.Environ(), fmt.Sprintf("IPFS_CLUSTER_PATH=%s", node.clusterPath)) - logFile, _ := os.Create(logPath) - cmd.Stdout = logFile - cmd.Stderr = logFile - - if err := cmd.Start(); err != nil { - return err - } - - os.WriteFile(pidPath, []byte(fmt.Sprintf("%d", cmd.Process.Pid)), 0644) - fmt.Fprintf(pm.logWriter, "✓ IPFS Cluster (%s) started (PID: %d, API: %d)\n", node.name, cmd.Process.Pid, node.restAPIPort) - - if err := pm.waitClusterReady(ctx, node.name, node.restAPIPort); err != nil { - fmt.Fprintf(pm.logWriter, " Warning: IPFS Cluster %s did not become ready: %v\n", node.name, err) - } - - time.Sleep(500 * time.Millisecond) - - peerID, err := pm.waitForClusterPeerID(ctx, filepath.Join(node.clusterPath, "identity.json")) - if err != nil { - fmt.Fprintf(pm.logWriter, " Warning: failed to read bootstrap peer ID: %v\n", err) - } else { - bootstrapMultiaddr = fmt.Sprintf("/ip4/127.0.0.1/tcp/%d/p2p/%s", node.clusterPort, peerID) - } - } - - for i := 1; i < len(nodes); i++ { - node := nodes[i] - if err := pm.cleanClusterState(node.clusterPath); err != nil { - fmt.Fprintf(pm.logWriter, " Warning: failed to clean cluster state for %s: %v\n", node.name, err) - } - - os.MkdirAll(node.clusterPath, 0755) - fmt.Fprintf(pm.logWriter, " Initializing IPFS Cluster (%s)...\n", node.name) - cmd := exec.CommandContext(ctx, "ipfs-cluster-service", "init", "--force") - cmd.Env = append(os.Environ(), - fmt.Sprintf("IPFS_CLUSTER_PATH=%s", node.clusterPath), - fmt.Sprintf("CLUSTER_SECRET=%s", clusterSecretHex), - ) - if output, err := cmd.CombinedOutput(); err != nil { - fmt.Fprintf(pm.logWriter, " Warning: ipfs-cluster-service init failed for %s: %v (output: %s)\n", node.name, err, string(output)) - } - - if err := pm.ensureIPFSClusterPorts(node.clusterPath, node.restAPIPort, node.clusterPort); err != nil { - fmt.Fprintf(pm.logWriter, " Warning: failed to update IPFS Cluster config for %s: %v\n", node.name, err) - } - - pidPath := filepath.Join(pm.pidsDir, fmt.Sprintf("ipfs-cluster-%s.pid", node.name)) - logPath := filepath.Join(pm.oramaDir, "logs", fmt.Sprintf("ipfs-cluster-%s.log", node.name)) - - args := []string{"daemon"} - if bootstrapMultiaddr != "" { - args = append(args, "--bootstrap", bootstrapMultiaddr) - } - - cmd = exec.CommandContext(ctx, "ipfs-cluster-service", args...) - cmd.Env = append(os.Environ(), fmt.Sprintf("IPFS_CLUSTER_PATH=%s", node.clusterPath)) - logFile, _ := os.Create(logPath) - cmd.Stdout = logFile - cmd.Stderr = logFile - - if err := cmd.Start(); err != nil { - continue - } - - os.WriteFile(pidPath, []byte(fmt.Sprintf("%d", cmd.Process.Pid)), 0644) - fmt.Fprintf(pm.logWriter, "✓ IPFS Cluster (%s) started (PID: %d, API: %d)\n", node.name, cmd.Process.Pid, node.restAPIPort) - - if err := pm.waitClusterReady(ctx, node.name, node.restAPIPort); err != nil { - fmt.Fprintf(pm.logWriter, " Warning: IPFS Cluster %s did not become ready: %v\n", node.name, err) - } - } - - fmt.Fprintf(pm.logWriter, " Waiting for IPFS Cluster peers to form...\n") - if err := pm.waitClusterFormed(ctx, nodes[0].restAPIPort); err != nil { - fmt.Fprintf(pm.logWriter, " Warning: IPFS Cluster did not form fully: %v\n", err) - } - - time.Sleep(1 * time.Second) - return nil -} - -func (pm *ProcessManager) waitForClusterPeerID(ctx context.Context, identityPath string) (string, error) { - maxRetries := 30 - retryInterval := 500 * time.Millisecond - - for attempt := 0; attempt < maxRetries; attempt++ { - data, err := os.ReadFile(identityPath) - if err == nil { - var identity map[string]interface{} - if err := json.Unmarshal(data, &identity); err == nil { - if id, ok := identity["id"].(string); ok { - return id, nil - } - } - } - - select { - case <-time.After(retryInterval): - continue - case <-ctx.Done(): - return "", ctx.Err() - } - } - - return "", fmt.Errorf("could not read cluster peer ID") -} - -func (pm *ProcessManager) waitClusterReady(ctx context.Context, name string, restAPIPort int) error { - maxRetries := 30 - retryInterval := 500 * time.Millisecond - - for attempt := 0; attempt < maxRetries; attempt++ { - httpURL := fmt.Sprintf("http://127.0.0.1:%d/peers", restAPIPort) - resp, err := http.Get(httpURL) - if err == nil && resp.StatusCode == 200 { - resp.Body.Close() - return nil - } - if resp != nil { - resp.Body.Close() - } - - select { - case <-time.After(retryInterval): - continue - case <-ctx.Done(): - return ctx.Err() - } - } - - return fmt.Errorf("IPFS Cluster %s did not become ready", name) -} - -func (pm *ProcessManager) waitClusterFormed(ctx context.Context, bootstrapRestAPIPort int) error { - maxRetries := 30 - retryInterval := 1 * time.Second - requiredPeers := 3 - - for attempt := 0; attempt < maxRetries; attempt++ { - httpURL := fmt.Sprintf("http://127.0.0.1:%d/peers", bootstrapRestAPIPort) - resp, err := http.Get(httpURL) - if err == nil && resp.StatusCode == 200 { - dec := json.NewDecoder(resp.Body) - peerCount := 0 - for { - var peer interface{} - if err := dec.Decode(&peer); err != nil { - break - } - peerCount++ - } - resp.Body.Close() - if peerCount >= requiredPeers { - return nil - } - } - if resp != nil { - resp.Body.Close() - } - - select { - case <-time.After(retryInterval): - continue - case <-ctx.Done(): - return ctx.Err() - } - } - - return fmt.Errorf("IPFS Cluster did not form fully") -} - -func (pm *ProcessManager) cleanClusterState(clusterPath string) error { - pebblePath := filepath.Join(clusterPath, "pebble") - os.RemoveAll(pebblePath) - - peerstorePath := filepath.Join(clusterPath, "peerstore") - os.Remove(peerstorePath) - - serviceJSONPath := filepath.Join(clusterPath, "service.json") - os.Remove(serviceJSONPath) - - lockPath := filepath.Join(clusterPath, "cluster.lock") - os.Remove(lockPath) - - return nil -} - -func (pm *ProcessManager) ensureIPFSClusterPorts(clusterPath string, restAPIPort int, clusterPort int) error { - serviceJSONPath := filepath.Join(clusterPath, "service.json") - data, err := os.ReadFile(serviceJSONPath) - if err != nil { - return err - } - - var config map[string]interface{} - json.Unmarshal(data, &config) - - portOffset := restAPIPort - 9094 - proxyPort := 9095 + portOffset - pinsvcPort := 9097 + portOffset - ipfsPort := 4501 + (portOffset / 10) - - if api, ok := config["api"].(map[string]interface{}); ok { - if restapi, ok := api["restapi"].(map[string]interface{}); ok { - restapi["http_listen_multiaddress"] = fmt.Sprintf("/ip4/0.0.0.0/tcp/%d", restAPIPort) - } - if proxy, ok := api["ipfsproxy"].(map[string]interface{}); ok { - proxy["listen_multiaddress"] = fmt.Sprintf("/ip4/127.0.0.1/tcp/%d", proxyPort) - proxy["node_multiaddress"] = fmt.Sprintf("/ip4/127.0.0.1/tcp/%d", ipfsPort) - } - if pinsvc, ok := api["pinsvcapi"].(map[string]interface{}); ok { - pinsvc["http_listen_multiaddress"] = fmt.Sprintf("/ip4/127.0.0.1/tcp/%d", pinsvcPort) - } - } - - if cluster, ok := config["cluster"].(map[string]interface{}); ok { - cluster["listen_multiaddress"] = []string{ - fmt.Sprintf("/ip4/0.0.0.0/tcp/%d", clusterPort), - fmt.Sprintf("/ip4/127.0.0.1/tcp/%d", clusterPort), - } - } - - if connector, ok := config["ipfs_connector"].(map[string]interface{}); ok { - if ipfshttp, ok := connector["ipfshttp"].(map[string]interface{}); ok { - ipfshttp["node_multiaddress"] = fmt.Sprintf("/ip4/127.0.0.1/tcp/%d", ipfsPort) - } - } - - updatedData, _ := json.MarshalIndent(config, "", " ") - return os.WriteFile(serviceJSONPath, updatedData, 0644) -} - diff --git a/pkg/environments/development/process.go b/pkg/environments/development/process.go deleted file mode 100644 index 02b8fdb..0000000 --- a/pkg/environments/development/process.go +++ /dev/null @@ -1,231 +0,0 @@ -package development - -import ( - "context" - "fmt" - "os" - "os/exec" - "path/filepath" - "runtime" - "strconv" - "strings" - "time" -) - -func (pm *ProcessManager) printStartupSummary(topology *Topology) { - fmt.Fprintf(pm.logWriter, "\n✅ Development environment ready!\n") - fmt.Fprintf(pm.logWriter, "═══════════════════════════════════════\n\n") - - fmt.Fprintf(pm.logWriter, "📡 Access your nodes via unified gateway ports:\n\n") - for _, node := range topology.Nodes { - fmt.Fprintf(pm.logWriter, " %s:\n", node.Name) - fmt.Fprintf(pm.logWriter, " curl http://localhost:%d/health\n", node.UnifiedGatewayPort) - fmt.Fprintf(pm.logWriter, " curl http://localhost:%d/rqlite/http/db/execute\n", node.UnifiedGatewayPort) - fmt.Fprintf(pm.logWriter, " curl http://localhost:%d/cluster/health\n\n", node.UnifiedGatewayPort) - } - - fmt.Fprintf(pm.logWriter, "🌐 Main Gateway:\n") - fmt.Fprintf(pm.logWriter, " curl http://localhost:%d/v1/status\n\n", topology.GatewayPort) - - fmt.Fprintf(pm.logWriter, "📊 Other Services:\n") - fmt.Fprintf(pm.logWriter, " Olric: http://localhost:%d\n", topology.OlricHTTPPort) - fmt.Fprintf(pm.logWriter, " Anon SOCKS: 127.0.0.1:%d\n", topology.AnonSOCKSPort) - fmt.Fprintf(pm.logWriter, " Rqlite MCP: http://localhost:%d/sse\n\n", topology.MCPPort) - - fmt.Fprintf(pm.logWriter, "📝 Useful Commands:\n") - fmt.Fprintf(pm.logWriter, " ./bin/orama dev status - Check service status\n") - fmt.Fprintf(pm.logWriter, " ./bin/orama dev logs node-1 - View logs\n") - fmt.Fprintf(pm.logWriter, " ./bin/orama dev down - Stop all services\n\n") - - fmt.Fprintf(pm.logWriter, "📂 Logs: %s/logs\n", pm.oramaDir) - fmt.Fprintf(pm.logWriter, "⚙️ Config: %s\n\n", pm.oramaDir) -} - -func (pm *ProcessManager) stopProcess(name string) error { - pidPath := filepath.Join(pm.pidsDir, fmt.Sprintf("%s.pid", name)) - pidBytes, err := os.ReadFile(pidPath) - if err != nil { - return nil - } - - pid, err := strconv.Atoi(strings.TrimSpace(string(pidBytes))) - if err != nil { - os.Remove(pidPath) - return nil - } - - if !checkProcessRunning(pid) { - os.Remove(pidPath) - fmt.Fprintf(pm.logWriter, "✓ %s (not running)\n", name) - return nil - } - - proc, err := os.FindProcess(pid) - if err != nil { - os.Remove(pidPath) - return nil - } - - proc.Signal(os.Interrupt) - - gracefulShutdown := false - for i := 0; i < 20; i++ { - time.Sleep(100 * time.Millisecond) - if !checkProcessRunning(pid) { - gracefulShutdown = true - break - } - } - - if !gracefulShutdown && checkProcessRunning(pid) { - proc.Signal(os.Kill) - time.Sleep(200 * time.Millisecond) - - if runtime.GOOS != "windows" { - exec.Command("pkill", "-9", "-P", fmt.Sprintf("%d", pid)).Run() - } - - if checkProcessRunning(pid) { - exec.Command("kill", "-9", fmt.Sprintf("%d", pid)).Run() - time.Sleep(100 * time.Millisecond) - } - } - - os.Remove(pidPath) - - if gracefulShutdown { - fmt.Fprintf(pm.logWriter, "✓ %s stopped gracefully\n", name) - } else { - fmt.Fprintf(pm.logWriter, "✓ %s stopped (forced)\n", name) - } - return nil -} - -func checkProcessRunning(pid int) bool { - proc, err := os.FindProcess(pid) - if err != nil { - return false - } - err = proc.Signal(os.Signal(nil)) - return err == nil -} - -func (pm *ProcessManager) startNode(name, configFile, logPath string) error { - pidPath := filepath.Join(pm.pidsDir, fmt.Sprintf("%s.pid", name)) - cmd := exec.Command("./bin/orama-node", "--config", configFile) - logFile, _ := os.Create(logPath) - cmd.Stdout = logFile - cmd.Stderr = logFile - - if err := cmd.Start(); err != nil { - return fmt.Errorf("failed to start %s: %w", name, err) - } - - os.WriteFile(pidPath, []byte(fmt.Sprintf("%d", cmd.Process.Pid)), 0644) - fmt.Fprintf(pm.logWriter, "✓ %s started (PID: %d)\n", strings.Title(name), cmd.Process.Pid) - - time.Sleep(1 * time.Second) - return nil -} - -func (pm *ProcessManager) startGateway(ctx context.Context) error { - pidPath := filepath.Join(pm.pidsDir, "gateway.pid") - logPath := filepath.Join(pm.oramaDir, "logs", "gateway.log") - - cmd := exec.Command("./bin/gateway", "--config", "gateway.yaml") - logFile, _ := os.Create(logPath) - cmd.Stdout = logFile - cmd.Stderr = logFile - - if err := cmd.Start(); err != nil { - return fmt.Errorf("failed to start gateway: %w", err) - } - - os.WriteFile(pidPath, []byte(fmt.Sprintf("%d", cmd.Process.Pid)), 0644) - fmt.Fprintf(pm.logWriter, "✓ Gateway started (PID: %d, listen: 6001)\n", cmd.Process.Pid) - - return nil -} - -func (pm *ProcessManager) startOlric(ctx context.Context) error { - pidPath := filepath.Join(pm.pidsDir, "olric.pid") - logPath := filepath.Join(pm.oramaDir, "logs", "olric.log") - configPath := filepath.Join(pm.oramaDir, "olric-config.yaml") - - cmd := exec.CommandContext(ctx, "olric-server") - cmd.Env = append(os.Environ(), fmt.Sprintf("OLRIC_SERVER_CONFIG=%s", configPath)) - logFile, _ := os.Create(logPath) - cmd.Stdout = logFile - cmd.Stderr = logFile - - if err := cmd.Start(); err != nil { - return fmt.Errorf("failed to start olric: %w", err) - } - - os.WriteFile(pidPath, []byte(fmt.Sprintf("%d", cmd.Process.Pid)), 0644) - fmt.Fprintf(pm.logWriter, "✓ Olric started (PID: %d)\n", cmd.Process.Pid) - - time.Sleep(1 * time.Second) - return nil -} - -func (pm *ProcessManager) startAnon(ctx context.Context) error { - if runtime.GOOS != "darwin" { - return nil - } - - pidPath := filepath.Join(pm.pidsDir, "anon.pid") - logPath := filepath.Join(pm.oramaDir, "logs", "anon.log") - - cmd := exec.CommandContext(ctx, "npx", "anyone-client") - logFile, _ := os.Create(logPath) - cmd.Stdout = logFile - cmd.Stderr = logFile - - if err := cmd.Start(); err != nil { - fmt.Fprintf(pm.logWriter, " ⚠️ Failed to start Anon: %v\n", err) - return nil - } - - os.WriteFile(pidPath, []byte(fmt.Sprintf("%d", cmd.Process.Pid)), 0644) - fmt.Fprintf(pm.logWriter, "✓ Anon proxy started (PID: %d, SOCKS: 9050)\n", cmd.Process.Pid) - - return nil -} - -func (pm *ProcessManager) startMCP(ctx context.Context) error { - topology := DefaultTopology() - pidPath := filepath.Join(pm.pidsDir, "rqlite-mcp.pid") - logPath := filepath.Join(pm.oramaDir, "logs", "rqlite-mcp.log") - - cmd := exec.CommandContext(ctx, "./bin/rqlite-mcp") - cmd.Env = append(os.Environ(), - fmt.Sprintf("MCP_PORT=%d", topology.MCPPort), - fmt.Sprintf("RQLITE_URL=http://localhost:%d", topology.Nodes[0].RQLiteHTTPPort), - ) - logFile, _ := os.Create(logPath) - cmd.Stdout = logFile - cmd.Stderr = logFile - - if err := cmd.Start(); err != nil { - fmt.Fprintf(pm.logWriter, " ⚠️ Failed to start Rqlite MCP: %v\n", err) - return nil - } - - os.WriteFile(pidPath, []byte(fmt.Sprintf("%d", cmd.Process.Pid)), 0644) - fmt.Fprintf(pm.logWriter, "✓ Rqlite MCP started (PID: %d, port: %d)\n", cmd.Process.Pid, topology.MCPPort) - - return nil -} - -func (pm *ProcessManager) startNodes(ctx context.Context) error { - topology := DefaultTopology() - for _, nodeSpec := range topology.Nodes { - logPath := filepath.Join(pm.oramaDir, "logs", fmt.Sprintf("%s.log", nodeSpec.Name)) - if err := pm.startNode(nodeSpec.Name, nodeSpec.ConfigFilename, logPath); err != nil { - return fmt.Errorf("failed to start %s: %w", nodeSpec.Name, err) - } - time.Sleep(500 * time.Millisecond) - } - return nil -} diff --git a/pkg/environments/development/runner.go b/pkg/environments/development/runner.go deleted file mode 100644 index 7b39c05..0000000 --- a/pkg/environments/development/runner.go +++ /dev/null @@ -1,217 +0,0 @@ -package development - -import ( - "context" - "fmt" - "io" - "os" - "path/filepath" - "sync" - "time" -) - -// ProcessManager manages all dev environment processes -type ProcessManager struct { - oramaDir string - pidsDir string - processes map[string]*ManagedProcess - mutex sync.Mutex - logWriter io.Writer -} - -// ManagedProcess tracks a running process -type ManagedProcess struct { - Name string - PID int - StartTime time.Time - LogPath string -} - -// NewProcessManager creates a new process manager -func NewProcessManager(oramaDir string, logWriter io.Writer) *ProcessManager { - pidsDir := filepath.Join(oramaDir, ".pids") - os.MkdirAll(pidsDir, 0755) - - return &ProcessManager{ - oramaDir: oramaDir, - pidsDir: pidsDir, - processes: make(map[string]*ManagedProcess), - logWriter: logWriter, - } -} - -// StartAll starts all development services -func (pm *ProcessManager) StartAll(ctx context.Context) error { - fmt.Fprintf(pm.logWriter, "\n🚀 Starting development environment...\n") - fmt.Fprintf(pm.logWriter, "═══════════════════════════════════════\n\n") - - topology := DefaultTopology() - - // Build IPFS node info from topology - ipfsNodes := pm.buildIPFSNodes(topology) - - // Start in order of dependencies - services := []struct { - name string - fn func(context.Context) error - }{ - {"IPFS", pm.startIPFS}, - {"IPFS Cluster", pm.startIPFSCluster}, - {"Olric", pm.startOlric}, - {"Anon", pm.startAnon}, - {"Nodes (Network)", pm.startNodes}, - {"Rqlite MCP", pm.startMCP}, - } - - for _, svc := range services { - if err := svc.fn(ctx); err != nil { - fmt.Fprintf(pm.logWriter, "⚠️ Failed to start %s: %v\n", svc.name, err) - } - } - - fmt.Fprintf(pm.logWriter, "\n") - - // Run health checks with retries before declaring success - const ( - healthCheckRetries = 20 - healthCheckInterval = 3 * time.Second - healthCheckTimeout = 70 * time.Second - ) - - if !pm.HealthCheckWithRetry(ctx, ipfsNodes, healthCheckRetries, healthCheckInterval, healthCheckTimeout) { - fmt.Fprintf(pm.logWriter, "\n❌ Health checks failed - stopping all services\n") - pm.StopAll(ctx) - return fmt.Errorf("cluster health checks failed - services stopped") - } - - // Print success and key endpoints - pm.printStartupSummary(topology) - return nil -} - -// StopAll stops all running processes -func (pm *ProcessManager) StopAll(ctx context.Context) error { - fmt.Fprintf(pm.logWriter, "\n🛑 Stopping development environment...\n\n") - - topology := DefaultTopology() - var services []string - - // Build service list from topology (in reverse order) - services = append(services, "gateway") - for i := len(topology.Nodes) - 1; i >= 0; i-- { - node := topology.Nodes[i] - services = append(services, node.Name) - } - for i := len(topology.Nodes) - 1; i >= 0; i-- { - node := topology.Nodes[i] - services = append(services, fmt.Sprintf("ipfs-cluster-%s", node.Name)) - } - for i := len(topology.Nodes) - 1; i >= 0; i-- { - node := topology.Nodes[i] - services = append(services, fmt.Sprintf("ipfs-%s", node.Name)) - } - services = append(services, "olric", "anon", "rqlite-mcp") - - fmt.Fprintf(pm.logWriter, "Stopping %d services...\n\n", len(services)) - - stoppedCount := 0 - for _, svc := range services { - if err := pm.stopProcess(svc); err != nil { - fmt.Fprintf(pm.logWriter, "⚠️ Error stopping %s: %v\n", svc, err) - } else { - stoppedCount++ - } - fmt.Fprintf(pm.logWriter, " [%d/%d] stopped\n", stoppedCount, len(services)) - } - - fmt.Fprintf(pm.logWriter, "\n✅ All %d services have been stopped\n\n", stoppedCount) - return nil -} - -// Status reports the status of all services -func (pm *ProcessManager) Status(ctx context.Context) { - fmt.Fprintf(pm.logWriter, "\n📊 Development Environment Status\n") - fmt.Fprintf(pm.logWriter, "================================\n\n") - - topology := DefaultTopology() - - // Build service list from topology - var services []struct { - name string - ports []int - } - - for _, node := range topology.Nodes { - services = append(services, struct { - name string - ports []int - }{ - fmt.Sprintf("%s IPFS", node.Name), - []int{node.IPFSAPIPort, node.IPFSSwarmPort}, - }) - services = append(services, struct { - name string - ports []int - }{ - fmt.Sprintf("%s Cluster", node.Name), - []int{node.ClusterAPIPort}, - }) - services = append(services, struct { - name string - ports []int - }{ - fmt.Sprintf("%s Node (P2P)", node.Name), - []int{node.P2PPort}, - }) - } - - services = append(services, struct { - name string - ports []int - }{"Gateway", []int{topology.GatewayPort}}) - services = append(services, struct { - name string - ports []int - }{"Olric", []int{topology.OlricHTTPPort, topology.OlricMemberPort}}) - services = append(services, struct { - name string - ports []int - }{"Anon SOCKS", []int{topology.AnonSOCKSPort}}) - services = append(services, struct { - name string - ports []int - }{"Rqlite MCP", []int{topology.MCPPort}}) - - for _, svc := range services { - pidPath := filepath.Join(pm.pidsDir, fmt.Sprintf("%s.pid", svc.name)) - running := false - if pidBytes, err := os.ReadFile(pidPath); err == nil { - var pid int - fmt.Sscanf(string(pidBytes), "%d", &pid) - if checkProcessRunning(pid) { - running = true - } - } - - status := "❌ stopped" - if running { - status = "✅ running" - } - - portStr := fmt.Sprintf("ports: %v", svc.ports) - fmt.Fprintf(pm.logWriter, " %-25s %s (%s)\n", svc.name, status, portStr) - } - - fmt.Fprintf(pm.logWriter, "\nConfiguration files in %s:\n", pm.oramaDir) - configFiles := []string{"node-1.yaml", "node-2.yaml", "node-3.yaml", "node-4.yaml", "node-5.yaml", "olric-config.yaml"} - for _, f := range configFiles { - path := filepath.Join(pm.oramaDir, f) - if _, err := os.Stat(path); err == nil { - fmt.Fprintf(pm.logWriter, " ✓ %s\n", f) - } else { - fmt.Fprintf(pm.logWriter, " ✗ %s\n", f) - } - } - - fmt.Fprintf(pm.logWriter, "\nLogs directory: %s/logs\n\n", pm.oramaDir) -} diff --git a/pkg/environments/development/topology.go b/pkg/environments/development/topology.go deleted file mode 100644 index 1bc2f99..0000000 --- a/pkg/environments/development/topology.go +++ /dev/null @@ -1,204 +0,0 @@ -package development - -import "fmt" - -// NodeSpec defines configuration for a single dev environment node -type NodeSpec struct { - Name string // node-1, node-2, node-3, node-4, node-5 - ConfigFilename string // node-1.yaml, node-2.yaml, etc. - DataDir string // relative path from .orama root - P2PPort int // LibP2P listen port - IPFSAPIPort int // IPFS API port - IPFSSwarmPort int // IPFS Swarm port - IPFSGatewayPort int // IPFS HTTP Gateway port - RQLiteHTTPPort int // RQLite HTTP API port - RQLiteRaftPort int // RQLite Raft consensus port - ClusterAPIPort int // IPFS Cluster REST API port - ClusterPort int // IPFS Cluster P2P port - UnifiedGatewayPort int // Unified gateway port (proxies all services) - RQLiteJoinTarget string // which node's RQLite Raft port to join (empty for first node) - ClusterJoinTarget string // which node's cluster to join (empty for first node) -} - -// Topology defines the complete development environment topology -type Topology struct { - Nodes []NodeSpec - GatewayPort int - OlricHTTPPort int - OlricMemberPort int - AnonSOCKSPort int - MCPPort int -} - -// DefaultTopology returns the default five-node dev environment topology -func DefaultTopology() *Topology { - return &Topology{ - Nodes: []NodeSpec{ - { - Name: "node-1", - ConfigFilename: "node-1.yaml", - DataDir: "node-1", - P2PPort: 4001, - IPFSAPIPort: 4501, - IPFSSwarmPort: 4101, - IPFSGatewayPort: 7501, - RQLiteHTTPPort: 5001, - RQLiteRaftPort: 7001, - ClusterAPIPort: 9094, - ClusterPort: 9096, - UnifiedGatewayPort: 6001, - RQLiteJoinTarget: "", // First node - creates cluster - ClusterJoinTarget: "", - }, - { - Name: "node-2", - ConfigFilename: "node-2.yaml", - DataDir: "node-2", - P2PPort: 4002, - IPFSAPIPort: 4502, - IPFSSwarmPort: 4102, - IPFSGatewayPort: 7502, - RQLiteHTTPPort: 5002, - RQLiteRaftPort: 7002, - ClusterAPIPort: 9104, - ClusterPort: 9106, - UnifiedGatewayPort: 6002, - RQLiteJoinTarget: "localhost:7001", - ClusterJoinTarget: "localhost:9096", - }, - { - Name: "node-3", - ConfigFilename: "node-3.yaml", - DataDir: "node-3", - P2PPort: 4003, - IPFSAPIPort: 4503, - IPFSSwarmPort: 4103, - IPFSGatewayPort: 7503, - RQLiteHTTPPort: 5003, - RQLiteRaftPort: 7003, - ClusterAPIPort: 9114, - ClusterPort: 9116, - UnifiedGatewayPort: 6003, - RQLiteJoinTarget: "localhost:7001", - ClusterJoinTarget: "localhost:9096", - }, - { - Name: "node-4", - ConfigFilename: "node-4.yaml", - DataDir: "node-4", - P2PPort: 4004, - IPFSAPIPort: 4504, - IPFSSwarmPort: 4104, - IPFSGatewayPort: 7504, - RQLiteHTTPPort: 5004, - RQLiteRaftPort: 7004, - ClusterAPIPort: 9124, - ClusterPort: 9126, - UnifiedGatewayPort: 6004, - RQLiteJoinTarget: "localhost:7001", - ClusterJoinTarget: "localhost:9096", - }, - { - Name: "node-5", - ConfigFilename: "node-5.yaml", - DataDir: "node-5", - P2PPort: 4005, - IPFSAPIPort: 4505, - IPFSSwarmPort: 4105, - IPFSGatewayPort: 7505, - RQLiteHTTPPort: 5005, - RQLiteRaftPort: 7005, - ClusterAPIPort: 9134, - ClusterPort: 9136, - UnifiedGatewayPort: 6005, - RQLiteJoinTarget: "localhost:7001", - ClusterJoinTarget: "localhost:9096", - }, - }, - GatewayPort: 6000, // Main gateway on 6000 (nodes use 6001-6005) - OlricHTTPPort: 3320, - OlricMemberPort: 3322, - AnonSOCKSPort: 9050, - MCPPort: 5825, - } -} - -// AllPorts returns a slice of all ports used in the topology -func (t *Topology) AllPorts() []int { - var ports []int - - // Node-specific ports - for _, node := range t.Nodes { - ports = append(ports, - node.P2PPort, - node.IPFSAPIPort, - node.IPFSSwarmPort, - node.IPFSGatewayPort, - node.RQLiteHTTPPort, - node.RQLiteRaftPort, - node.ClusterAPIPort, - node.ClusterPort, - node.UnifiedGatewayPort, - ) - } - - // Shared service ports - ports = append(ports, - t.GatewayPort, - t.OlricHTTPPort, - t.OlricMemberPort, - t.AnonSOCKSPort, - ) - - return ports -} - -// PortMap returns a human-readable mapping of ports to services -func (t *Topology) PortMap() map[int]string { - portMap := make(map[int]string) - - for _, node := range t.Nodes { - portMap[node.P2PPort] = fmt.Sprintf("%s P2P", node.Name) - portMap[node.IPFSAPIPort] = fmt.Sprintf("%s IPFS API", node.Name) - portMap[node.IPFSSwarmPort] = fmt.Sprintf("%s IPFS Swarm", node.Name) - portMap[node.IPFSGatewayPort] = fmt.Sprintf("%s IPFS Gateway", node.Name) - portMap[node.RQLiteHTTPPort] = fmt.Sprintf("%s RQLite HTTP", node.Name) - portMap[node.RQLiteRaftPort] = fmt.Sprintf("%s RQLite Raft", node.Name) - portMap[node.ClusterAPIPort] = fmt.Sprintf("%s IPFS Cluster API", node.Name) - portMap[node.ClusterPort] = fmt.Sprintf("%s IPFS Cluster P2P", node.Name) - portMap[node.UnifiedGatewayPort] = fmt.Sprintf("%s Unified Gateway", node.Name) - } - - portMap[t.GatewayPort] = "Gateway" - portMap[t.OlricHTTPPort] = "Olric HTTP API" - portMap[t.OlricMemberPort] = "Olric Memberlist" - portMap[t.AnonSOCKSPort] = "Anon SOCKS Proxy" - - return portMap -} - -// GetFirstNode returns the first node (the one that creates the cluster) -func (t *Topology) GetFirstNode() *NodeSpec { - if len(t.Nodes) > 0 { - return &t.Nodes[0] - } - return nil -} - -// GetJoiningNodes returns all nodes except the first one (they join the cluster) -func (t *Topology) GetJoiningNodes() []NodeSpec { - if len(t.Nodes) > 1 { - return t.Nodes[1:] - } - return nil -} - -// GetNodeByName returns a node by its name, or nil if not found -func (t *Topology) GetNodeByName(name string) *NodeSpec { - for i, node := range t.Nodes { - if node.Name == name { - return &t.Nodes[i] - } - } - return nil -} diff --git a/pkg/node/libp2p.go b/pkg/node/libp2p.go index cd92226..c19151c 100644 --- a/pkg/node/libp2p.go +++ b/pkg/node/libp2p.go @@ -54,25 +54,17 @@ func (n *Node) startLibP2P() error { zap.Strings("addrs", n.config.Node.ListenAddresses)) } - // For localhost/development, disable NAT services - isLocalhost := len(n.config.Node.ListenAddresses) > 0 && - (strings.Contains(n.config.Node.ListenAddresses[0], "localhost") || - strings.Contains(n.config.Node.ListenAddresses[0], "127.0.0.1")) - - if isLocalhost { - n.logger.ComponentInfo(logging.ComponentLibP2P, "Localhost detected - disabling NAT services for local development") - } else { - n.logger.ComponentInfo(logging.ComponentLibP2P, "Production mode - enabling NAT services") - opts = append(opts, - libp2p.EnableNATService(), - libp2p.EnableAutoNATv2(), - libp2p.EnableRelay(), - libp2p.NATPortMap(), - libp2p.EnableAutoRelayWithPeerSource( - peerSource(n.config.Discovery.BootstrapPeers, n.logger.Logger), - ), - ) - } + // Enable NAT services for network traversal + n.logger.ComponentInfo(logging.ComponentLibP2P, "Enabling NAT services") + opts = append(opts, + libp2p.EnableNATService(), + libp2p.EnableAutoNATv2(), + libp2p.EnableRelay(), + libp2p.NATPortMap(), + libp2p.EnableAutoRelayWithPeerSource( + peerSource(n.config.Discovery.BootstrapPeers, n.logger.Logger), + ), + ) h, err := libp2p.New(opts...) if err != nil { diff --git a/scripts/dev-kill-all.sh b/scripts/dev-kill-all.sh deleted file mode 100755 index de0dba6..0000000 --- a/scripts/dev-kill-all.sh +++ /dev/null @@ -1,162 +0,0 @@ -#!/bin/bash -set -euo pipefail - -echo "Force killing all debros development processes..." - -# Define all dev ports (5 nodes topology: bootstrap, bootstrap2, node2, node3, node4) -PORTS=( - # LibP2P - 4001 4011 4002 4003 4004 - # IPFS Swarm - 4101 4111 4102 4103 4104 - # IPFS API - 4501 4511 4502 4503 4504 - # RQLite HTTP - 5001 5011 5002 5003 5004 - # RQLite Raft - 7001 7011 7002 7003 7004 - # IPFS Gateway - 7501 7511 7502 7503 7504 - # Gateway - 6001 - # Olric - 3320 3322 - # Anon SOCKS - 9050 - # IPFS Cluster REST API - 9094 9104 9114 9124 9134 - # IPFS Cluster P2P - 9096 9106 9116 9126 9136 -) - -# Add namespace cluster ports (10000-10099) -# These are dynamically allocated for per-namespace RQLite/Olric/Gateway instances -for port in $(seq 10000 10099); do - PORTS+=($port) -done - -killed_count=0 -killed_pids=() - -# Method 1: Kill all processes using these ports -for port in "${PORTS[@]}"; do - pids=$(lsof -nP -iTCP:"$port" -t 2>/dev/null || true) - if [[ -n "$pids" ]]; then - echo " Killing processes on port $port: $pids" - for pid in $pids; do - kill -9 "$pid" 2>/dev/null || true - pkill -9 -P "$pid" 2>/dev/null || true - killed_pids+=("$pid") - done - killed_count=$((killed_count + 1)) - fi -done - -# Method 2: Kill processes by specific patterns (ONLY debros-related) -# Be very specific to avoid killing unrelated processes -SPECIFIC_PATTERNS=( - "ipfs daemon" - "ipfs-cluster-service daemon" - "olric-server" - "bin/orama-node" - "bin/gateway" - "anyone-client" -) - -# Kill namespace cluster processes (spawned by ClusterManager) -# These are RQLite/Olric/Gateway instances running on ports 10000-10099 -NAMESPACE_DATA_DIR="$HOME/.orama/data/namespaces" -if [[ -d "$NAMESPACE_DATA_DIR" ]]; then - # Find rqlited processes started in namespace directories - ns_pids=$(pgrep -f "rqlited.*$NAMESPACE_DATA_DIR" 2>/dev/null || true) - if [[ -n "$ns_pids" ]]; then - for pid in $ns_pids; do - echo " Killing namespace rqlited process (PID: $pid)" - kill -9 "$pid" 2>/dev/null || true - killed_pids+=("$pid") - done - fi - - # Find olric-server processes started for namespaces (check env var or config path) - ns_olric_pids=$(pgrep -f "olric-server.*$NAMESPACE_DATA_DIR" 2>/dev/null || true) - if [[ -n "$ns_olric_pids" ]]; then - for pid in $ns_olric_pids; do - echo " Killing namespace olric-server process (PID: $pid)" - kill -9 "$pid" 2>/dev/null || true - killed_pids+=("$pid") - done - fi - - # Find gateway processes started for namespaces - ns_gw_pids=$(pgrep -f "gateway.*--config.*$NAMESPACE_DATA_DIR" 2>/dev/null || true) - if [[ -n "$ns_gw_pids" ]]; then - for pid in $ns_gw_pids; do - echo " Killing namespace gateway process (PID: $pid)" - kill -9 "$pid" 2>/dev/null || true - killed_pids+=("$pid") - done - fi -fi - -for pattern in "${SPECIFIC_PATTERNS[@]}"; do - # Use exact pattern matching to avoid false positives - all_pids=$(pgrep -f "$pattern" 2>/dev/null || true) - if [[ -n "$all_pids" ]]; then - for pid in $all_pids; do - # Double-check the command line to avoid killing wrong processes - cmdline=$(ps -p "$pid" -o command= 2>/dev/null || true) - if [[ "$cmdline" == *"$pattern"* ]]; then - echo " Killing $pattern process (PID: $pid)" - kill -9 "$pid" 2>/dev/null || true - pkill -9 -P "$pid" 2>/dev/null || true - killed_pids+=("$pid") - fi - done - fi -done - -# Method 3: Kill processes using PID files -PIDS_DIR="$HOME/.orama/.pids" -if [[ -d "$PIDS_DIR" ]]; then - for pidfile in "$PIDS_DIR"/*.pid; do - if [[ -f "$pidfile" ]]; then - pid=$(cat "$pidfile" 2>/dev/null || true) - if [[ -n "$pid" ]] && ps -p "$pid" > /dev/null 2>&1; then - name=$(basename "$pidfile" .pid) - echo " Killing $name (PID: $pid from pidfile)" - kill -9 "$pid" 2>/dev/null || true - pkill -9 -P "$pid" 2>/dev/null || true - killed_pids+=("$pid") - fi - fi - done - # Clean up all PID files - rm -f "$PIDS_DIR"/*.pid 2>/dev/null || true -fi - -# Remove duplicates and report -if [[ ${#killed_pids[@]} -gt 0 ]]; then - unique_pids=($(printf '%s\n' "${killed_pids[@]}" | sort -u)) - echo "✓ Killed ${#unique_pids[@]} unique process(es)" -else - echo "✓ No debros processes found running" -fi - -# Final verification: check if any ports are still in use -still_in_use=0 -busy_ports=() -for port in "${PORTS[@]}"; do - pids=$(lsof -nP -iTCP:"$port" -t 2>/dev/null || true) - if [[ -n "$pids" ]]; then - busy_ports+=("$port") - still_in_use=$((still_in_use + 1)) - fi -done - -if [[ $still_in_use -eq 0 ]]; then - echo "✓ All dev ports are now free" -else - echo "⚠️ Warning: $still_in_use port(s) still in use: ${busy_ports[*]}" - echo " Run 'lsof -nP -iTCP:' to identify the processes" -fi -