refactor: 项目更名 WeKnora → Academy
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s

- 全量替换代码/配置/文档中的项目名(保留上游 GitHub 链接、weixin 文档域名、Docker Hub 镜像名)
- 重命名 32 个含项目名的文件/目录;Go module 路径改为 academy(含 client/cli 子模块)
- docreader proto 描述符采用等长替换,保持序列化字节布局有效
- Dockerfile.app 构建网络修复: browserskill 离线产物通道、PyPI/apt 国内镜像
- 运行验证: go build ✓ docker compose up ✓ 健康检查 ✓
This commit is contained in:
runny committed 2026-11-13 20:52:51 +08:00
1 parent 9097ee699d
commit 9058149576
3136 files changed
+18018 -18004

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ package access
import (
"context"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
)
// Context grants contain values, not mutable KB objects. Deriving a context
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/Tencent/WeKnora/internal/logger"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/logger"
"academy/internal/types"
"github.com/stretchr/testify/require"
)
+3 -3
View File
@@ -6,9 +6,9 @@ import (
"fmt"
"strings"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
secutils "github.com/Tencent/WeKnora/internal/utils"
"academy/internal/types"
"academy/internal/types/interfaces"
secutils "academy/internal/utils"
)
// FileAccess is a request-local result, produced before storage is opened.
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
)
+3 -3
View File
@@ -3,9 +3,9 @@ package access
import (
"context"
apperrors "github.com/Tencent/WeKnora/internal/errors"
"github.com/Tencent/WeKnora/internal/logger"
"github.com/Tencent/WeKnora/internal/types"
apperrors "academy/internal/errors"
"academy/internal/logger"
"academy/internal/types"
)
// AuthorizeKBAccess rejects multi-KB searches whose scope includes a KB
+1 -1
View File
@@ -3,7 +3,7 @@ package access
import (
"context"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
)
// KBSharePermissions resolves organization grants for one caller during one
@@ -5,7 +5,7 @@ import (
"errors"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"fmt"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
)
// KBTransferOperation selects the source and destination permission contract.
@@ -5,8 +5,8 @@ import (
"fmt"
"testing"
"github.com/Tencent/WeKnora/internal/logger"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/logger"
"academy/internal/types"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -3,7 +3,7 @@ package access
import (
"context"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
)
// RequireKBWrite consumes an explicit operation grant. Tenant ownership and
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/Tencent/WeKnora/internal/logger"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/logger"
"academy/internal/types"
"github.com/stretchr/testify/require"
)
@@ -3,8 +3,8 @@ package access
import (
"encoding/json"
apperrors "github.com/Tencent/WeKnora/internal/errors"
"github.com/Tencent/WeKnora/internal/types"
apperrors "academy/internal/errors"
"academy/internal/types"
)
// RejectMovingKnowledge is shared by admission and persisted service checks.
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"errors"
"fmt"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
)
// Resource access errors retain distinct adapter response mappings.
@@ -5,7 +5,7 @@ import (
"errors"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
)
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"strings"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
)
// MessageFileLookup is the narrow message-service surface needed by the
+1 -1
View File
@@ -3,7 +3,7 @@ package access
import (
"errors"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
)
var (
@@ -5,7 +5,7 @@ import (
"fmt"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
)
+2 -2
View File
@@ -3,8 +3,8 @@ package access
import (
"context"
"github.com/Tencent/WeKnora/internal/config"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/config"
"academy/internal/types"
)
// IsCrossTenantSuperuser reports whether the caller's user attribute and the
+4 -4
View File
@@ -9,10 +9,10 @@ import (
"sync"
"time"
"github.com/Tencent/WeKnora/internal/models/imageprep"
"github.com/Tencent/WeKnora/internal/searchutil"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/models/imageprep"
"academy/internal/searchutil"
"academy/internal/types"
"academy/internal/types/interfaces"
"golang.org/x/sync/singleflight"
)
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"strings"
"time"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
)
const pollInterval = 500 * time.Millisecond
@@ -14,8 +14,8 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"github.com/stretchr/testify/require"
)
@@ -6,8 +6,8 @@ import (
"fmt"
"time"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
"gorm.io/gorm/clause"
)
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gorm.io/driver/sqlite"
@@ -6,8 +6,8 @@ import (
"fmt"
"time"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
"gorm.io/gorm/clause"
)
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
@@ -4,8 +4,8 @@ import (
"context"
"errors"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
)
@@ -7,8 +7,8 @@ import (
"fmt"
"sort"
"github.com/Tencent/WeKnora/internal/application/attachment"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/application/attachment"
"academy/internal/types"
"gorm.io/gorm"
)
@@ -7,8 +7,8 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/application/attachment"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/application/attachment"
"academy/internal/types"
"github.com/stretchr/testify/require"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"time"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
)
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
)
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"strings"
"time"
"github.com/Tencent/WeKnora/internal/common"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/common"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
)
@@ -6,7 +6,7 @@ import (
"os"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
"gorm.io/gorm"
)
@@ -4,7 +4,7 @@ import (
"context"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -4,7 +4,7 @@ import (
"context"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
)
@@ -4,7 +4,7 @@ import (
"context"
"strings"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
)
// ListImageAssets returns one page of a knowledge base's images from
@@ -7,7 +7,7 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/google/uuid"
"github.com/stretchr/testify/require"
"gorm.io/driver/postgres"
@@ -15,13 +15,13 @@ import (
)
// imageAssetBackends runs fn against in-memory SQLite and, when
// WEKNORA_REPOSITORY_TEST_POSTGRES_DSN points at a disposable database, against
// ACADEMY_REPOSITORY_TEST_POSTGRES_DSN points at a disposable database, against
// PostgreSQL too — the gallery query is spelled differently per dialect, so
// both spellings need the same assertions. For example:
//
// docker run -d --rm -e POSTGRES_PASSWORD=pg -e POSTGRES_DB=weknora -p 55432:5432 \
// docker run -d --rm -e POSTGRES_PASSWORD=pg -e POSTGRES_DB=academy -p 55432:5432 \
// paradedb/paradedb:v0.25.11-pg17
// WEKNORA_REPOSITORY_TEST_POSTGRES_DSN=postgres://postgres:pg@localhost:55432/weknora?sslmode=disable
// ACADEMY_REPOSITORY_TEST_POSTGRES_DSN=postgres://postgres:pg@localhost:55432/academy?sslmode=disable
//
// Both runs apply the real chunk_images migration, so the triggers and the
// backfill under test are the ones that ship.
@@ -32,9 +32,9 @@ func imageAssetBackends(t *testing.T, fn func(t *testing.T, db *gorm.DB)) {
fn(t, db)
})
t.Run("postgres", func(t *testing.T) {
dsn := os.Getenv("WEKNORA_REPOSITORY_TEST_POSTGRES_DSN")
dsn := os.Getenv("ACADEMY_REPOSITORY_TEST_POSTGRES_DSN")
if dsn == "" {
t.Skip("set WEKNORA_REPOSITORY_TEST_POSTGRES_DSN to run the PostgreSQL gallery query")
t.Skip("set ACADEMY_REPOSITORY_TEST_POSTGRES_DSN to run the PostgreSQL gallery query")
}
db, err := gorm.Open(postgres.Open(dsn), &gorm.Config{})
require.NoError(t, err)
@@ -6,7 +6,7 @@ import (
"testing"
"github.com/DATA-DOG/go-sqlmock"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
"gorm.io/driver/postgres"
"gorm.io/gorm"
@@ -6,7 +6,7 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/google/uuid"
"github.com/stretchr/testify/require"
"gorm.io/driver/sqlite"
@@ -7,7 +7,7 @@ import (
"time"
"unicode/utf8"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -4,8 +4,8 @@ import (
"context"
"errors"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
)
@@ -5,8 +5,8 @@ import (
"errors"
"time"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
)
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gorm.io/driver/sqlite"
@@ -6,7 +6,7 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
"gorm.io/driver/postgres"
"gorm.io/driver/sqlite"
@@ -18,9 +18,9 @@ func TestSyncLogRetentionPerSource(t *testing.T) {
t.Run(backend, func(t *testing.T) {
dialect := sqlite.Open(":memory:")
if backend == "postgres" {
dsn := os.Getenv("WEKNORA_REPOSITORY_TEST_POSTGRES_DSN")
dsn := os.Getenv("ACADEMY_REPOSITORY_TEST_POSTGRES_DSN")
if dsn == "" {
t.Skip("set WEKNORA_REPOSITORY_TEST_POSTGRES_DSN for PostgreSQL sync log retention tests")
t.Skip("set ACADEMY_REPOSITORY_TEST_POSTGRES_DSN for PostgreSQL sync log retention tests")
}
dialect = postgres.Open(dsn)
}
@@ -4,8 +4,8 @@ import (
"context"
"errors"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
)
@@ -4,8 +4,8 @@ import (
"context"
"fmt"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
)
@@ -7,7 +7,7 @@ import (
"time"
"unicode/utf8"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"errors"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
)
+3 -3
View File
@@ -7,9 +7,9 @@ import (
"strings"
"time"
"github.com/Tencent/WeKnora/internal/common"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/common"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
)
@@ -4,7 +4,7 @@ import (
"context"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/google/uuid"
"github.com/stretchr/testify/require"
"gorm.io/driver/sqlite"
@@ -4,7 +4,7 @@ import (
"context"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -8,7 +8,7 @@ import (
"testing"
"unicode/utf8"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -4,7 +4,7 @@ import (
"context"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -4,7 +4,7 @@ import (
"context"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gorm.io/gorm"
@@ -4,7 +4,7 @@ import (
"strings"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
)
@@ -5,8 +5,8 @@ import (
"errors"
"time"
"github.com/Tencent/WeKnora/internal/common"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/common"
"academy/internal/types"
"gorm.io/gorm"
"gorm.io/gorm/clause"
)
@@ -7,7 +7,7 @@ import (
"time"
"unicode/utf8"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gorm.io/driver/sqlite"
@@ -5,7 +5,7 @@ import (
"fmt"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"gorm.io/gorm"
"gorm.io/gorm/clause"
)
@@ -4,7 +4,7 @@ import (
"context"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -5,7 +5,7 @@ import (
"fmt"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"gorm.io/gorm"
)
@@ -4,7 +4,7 @@ import (
"context"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
)
@@ -5,8 +5,8 @@ import (
"errors"
"time"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
)
@@ -3,7 +3,7 @@ package repository
import (
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -87,7 +87,7 @@ func reloadKB(t *testing.T, db *gorm.DB, id string) types.KnowledgeBase {
}
// TestKnowledgeBase_VectorStoreID_Save_Immutable verifies that db.Save(kb)
// — which WeKnora's UpdateKnowledgeBase repository path uses today — does
// — which Academy's UpdateKnowledgeBase repository path uses today — does
// NOT overwrite the vector_store_id column, thanks to the GORM
// `<-:create` tag. This is the primary automated defense for the H1 review
// finding (silent overwrite of the binding via full-struct UPDATE).
@@ -4,7 +4,7 @@ import (
"context"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -5,8 +5,8 @@ import (
"errors"
"time"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
)
@@ -4,7 +4,7 @@ import (
"context"
"errors"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"gorm.io/gorm"
"gorm.io/gorm/clause"
)
@@ -6,7 +6,7 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"fmt"
"time"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
"gorm.io/gorm/clause"
)
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
@@ -4,8 +4,8 @@ import (
"context"
"errors"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
)
@@ -4,7 +4,7 @@ import (
"context"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
@@ -6,8 +6,8 @@ import (
"fmt"
"time"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"github.com/google/uuid"
"gorm.io/gorm"
"gorm.io/gorm/clause"
@@ -5,8 +5,8 @@ import (
"sync"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"github.com/google/uuid"
"github.com/stretchr/testify/require"
"gorm.io/driver/sqlite"
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"sync"
"time"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"github.com/google/uuid"
"gorm.io/gorm"
"gorm.io/gorm/clause"
@@ -4,8 +4,8 @@ import (
"context"
"time"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
"gorm.io/gorm/clause"
)
@@ -5,8 +5,8 @@ import (
"errors"
"time"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
)
@@ -5,9 +5,9 @@ import (
"sort"
"time"
"github.com/Tencent/WeKnora/internal/logger"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/logger"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
)
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"gorm.io/gorm"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
)
// messageRepository implements the message repository interface
@@ -8,7 +8,7 @@ import (
"gorm.io/gorm"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
)
// Artifacts live in message_artifacts, not on the message row. Every loader in
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
)
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
)
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
@@ -4,7 +4,7 @@ import (
"context"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
)
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
"gorm.io/gorm"
)
@@ -6,7 +6,7 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
"gorm.io/gorm"
)
@@ -4,7 +4,7 @@ import (
"context"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
@@ -5,8 +5,8 @@ import (
"errors"
"time"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
"gorm.io/gorm/clause"
)
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"errors"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
)
@@ -4,7 +4,7 @@ import (
"context"
"errors"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"gorm.io/gorm"
)
@@ -1,7 +1,7 @@
package repository
import (
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"gorm.io/gorm"
)
@@ -5,7 +5,7 @@ import (
"fmt"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -5,8 +5,8 @@ import (
"errors"
"time"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
"gorm.io/gorm/clause"
)
@@ -5,7 +5,7 @@ import (
"fmt"
"testing"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
+2 -2
View File
@@ -3,8 +3,8 @@ package repository
import (
"context"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
"gorm.io/gorm/clause"
)
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
)
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
)
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"errors"
"time"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"academy/internal/types"
"academy/internal/types/interfaces"
"gorm.io/gorm"
"gorm.io/gorm/clause"
)
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
"github.com/stretchr/testify/require"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
@@ -3,7 +3,7 @@ package repository
import (
"context"
"github.com/Tencent/WeKnora/internal/types"
"academy/internal/types"
)
// IsReferencedByKnowledgeBase accepts only explicit bindings to live documents.
Loaded 100 of 3136 files, more files were not shown because too many files have changed in this diff. Show more