Why: Knowledge retrieval cross-owner and conversation-card mirroring are the registered EXT-8 slice-2 items; the fields/wiring land with the acceptance reds pinned first. Evidence: mirror red (project channel still emitted with switch off); shared-retrieval red (grant yields 0 hits); SSE-scope red (grant yields non-200); rows follow on the task card. Impact: Options.DisableConvCardMirror passthrough (extension/link/app); cardsvc.MirrorConvCards (default true = current behavior); SurfaceVersion 2.3.0-experimental. Behavior unchanged. Refs: EXT-8/EXT-12 proposals; task card.
20 lines
640 B
Go
20 lines
640 B
Go
// Package link 把 extension.Main 接到产品组合根。
|
|
// 下游自有二进制空白导入本包;基座 internal 不反向依赖它。
|
|
package link
|
|
|
|
import (
|
|
"agent-system-backend/internal/app"
|
|
"agent-system-backend/pkg/extension"
|
|
)
|
|
|
|
func init() {
|
|
extension.SetRunner(func(opt extension.Options) error {
|
|
return app.Run(app.Options{
|
|
Addr: opt.Addr, DataDir: opt.DataDir, PluginsDir: opt.PluginsDir, ForceMock: opt.Mock,
|
|
StorageDSN: opt.StorageDSN, ArtifactsDir: opt.ArtifactsDir, AuthMode: opt.AuthMode,
|
|
DisableUploadIndexing: opt.DisableUploadIndexing,
|
|
DisableConvCardMirror: opt.DisableConvCardMirror,
|
|
})
|
|
})
|
|
}
|