Phase E of the AFFiNE parity plan (ADR-15): - internal/ai: OpenAI-compatible, Anthropic (official Go SDK) and Ollama drivers; BYOK profiles per workspace and for the instance, with keys encrypted by DOCWELL_SECRET_KEY, failover order, a test call and usage counters. - Embeddings: an indexer that follows PocketBase like the search index, chunks pages along their blocks and keeps vectors in a bbolt file in the data dir (no cgo); progress, ignored pages and extra files. - Chat sessions scoped to a page, space or workspace, streamed as server-sent events, with citations to pages and blocks, fork and history; retrieval only from pages the asker can read. - Writing actions (rewrite, fix, shorter, longer, summarise, translate, continue, custom) in the editor's selection toolbar. - POST /mcp: MCP over Streamable HTTP with personal API tokens; read tokens search and read pages, write tokens also create and update them. - Web app chat panel (Ctrl+J), workspace AI settings, an admin AI page, OpenAPI, generated clients, migration and translations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
85 lines
3.6 KiB
AMPL
85 lines
3.6 KiB
AMPL
module docwell/server
|
|
|
|
go 1.26.0
|
|
|
|
require (
|
|
github.com/blevesearch/bleve/v2 v2.6.1
|
|
github.com/coder/websocket v1.8.15
|
|
github.com/go-pdf/fpdf v0.9.0
|
|
github.com/oapi-codegen/runtime v1.8.0
|
|
github.com/pquerna/otp v1.5.0
|
|
github.com/tetratelabs/wazero v1.12.0
|
|
github.com/yuin/goldmark v1.8.7
|
|
golang.org/x/image v0.47.0
|
|
golang.org/x/net v0.62.0
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|
|
|
|
require (
|
|
github.com/RoaringBitmap/roaring/v2 v2.14.5 // indirect
|
|
github.com/anthropics/anthropic-sdk-go/v2 v2.9.0 // indirect
|
|
github.com/bahlo/generic-list-go v0.2.0 // indirect
|
|
github.com/bits-and-blooms/bitset v1.24.2 // indirect
|
|
github.com/blevesearch/bleve_index_api v1.4.1 // indirect
|
|
github.com/blevesearch/geo v0.2.6 // indirect
|
|
github.com/blevesearch/go-faiss v1.1.5 // indirect
|
|
github.com/blevesearch/go-porterstemmer v1.0.3 // indirect
|
|
github.com/blevesearch/gtreap v0.1.1 // indirect
|
|
github.com/blevesearch/mmap-go v1.2.0 // indirect
|
|
github.com/blevesearch/scorch_segment_api/v2 v2.4.10 // indirect
|
|
github.com/blevesearch/segment v0.9.1 // indirect
|
|
github.com/blevesearch/snowballstem v0.9.0 // indirect
|
|
github.com/blevesearch/upsidedown_store_api v1.0.2 // indirect
|
|
github.com/blevesearch/vellum v1.2.0 // indirect
|
|
github.com/blevesearch/zapx/v11 v11.4.3 // indirect
|
|
github.com/blevesearch/zapx/v12 v12.4.3 // indirect
|
|
github.com/blevesearch/zapx/v13 v13.4.3 // indirect
|
|
github.com/blevesearch/zapx/v14 v14.4.3 // indirect
|
|
github.com/blevesearch/zapx/v15 v15.4.3 // indirect
|
|
github.com/blevesearch/zapx/v16 v16.3.4 // indirect
|
|
github.com/blevesearch/zapx/v17 v17.2.3 // indirect
|
|
github.com/boombuler/barcode v1.0.1 // indirect
|
|
github.com/buger/jsonparser v1.1.2 // indirect
|
|
github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 // indirect
|
|
github.com/getkin/kin-openapi v0.142.0 // indirect
|
|
github.com/go-logr/logr v1.4.2 // indirect
|
|
github.com/go-logr/stdr v1.2.2 // indirect
|
|
github.com/go-openapi/jsonpointer v0.23.1 // indirect
|
|
github.com/go-openapi/swag/jsonname v0.26.0 // indirect
|
|
github.com/golang/snappy v1.0.0 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/invopop/jsonschema v0.14.0 // indirect
|
|
github.com/json-iterator/go v1.1.12 // indirect
|
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
|
github.com/modern-go/reflect2 v1.0.2 // indirect
|
|
github.com/mschoch/smat v0.2.0 // indirect
|
|
github.com/oapi-codegen/oapi-codegen/v2 v2.8.1 // indirect
|
|
github.com/oasdiff/yaml v0.1.1 // indirect
|
|
github.com/oasdiff/yaml3 v0.0.14 // indirect
|
|
github.com/pb33f/ordered-map/v2 v2.3.1 // indirect
|
|
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 // indirect
|
|
github.com/speakeasy-api/jsonpath v0.6.3 // indirect
|
|
github.com/speakeasy-api/openapi v1.24.0 // indirect
|
|
github.com/standard-webhooks/standard-webhooks/libraries v0.0.1 // indirect
|
|
github.com/tidwall/gjson v1.18.0 // indirect
|
|
github.com/tidwall/match v1.1.1 // indirect
|
|
github.com/tidwall/pretty v1.2.1 // indirect
|
|
github.com/tidwall/sjson v1.2.5 // indirect
|
|
github.com/vmware-labs/yaml-jsonpath v0.3.2 // indirect
|
|
go.etcd.io/bbolt v1.4.0 // indirect
|
|
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
|
|
go.opentelemetry.io/otel v1.33.0 // indirect
|
|
go.opentelemetry.io/otel/metric v1.33.0 // indirect
|
|
go.opentelemetry.io/otel/trace v1.33.0 // indirect
|
|
go.yaml.in/yaml/v3 v3.0.4 // indirect
|
|
go.yaml.in/yaml/v4 v4.0.0-rc.2 // indirect
|
|
golang.org/x/mod v0.41.0 // indirect
|
|
golang.org/x/sync v0.24.0 // indirect
|
|
golang.org/x/sys v0.49.0 // indirect
|
|
golang.org/x/text v0.43.0 // indirect
|
|
golang.org/x/tools v0.51.0 // indirect
|
|
google.golang.org/protobuf v1.36.6 // indirect
|
|
)
|
|
|
|
tool github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen
|