Details (original message): Implement the backend: store/bus/runmgr core, mock and LLM runners (agent-native client), HITL three-branch routing, subagent runs, builtin and declarative HTTP tools, ingest parsers (md/txt/docx/pdf-text), knowledge fulltext, layered settings, profiles, plugin host, REST+SSE API, single-binary entrypoint; e2e and unit tests.
16 lines
462 B
Go
16 lines
462 B
Go
// Package web 内嵌前端构建产物(go:embed)。
|
||
// 构建流程:Frontend 仓 npm run build → 拷贝 dist/* 到本目录 dist/(Dev Makefile)。
|
||
// 空目录时保留 .gitkeep,embed 用 dist/* 通配以允许空构建(仅 API 模式)。
|
||
package web
|
||
|
||
import (
|
||
"embed"
|
||
"io/fs"
|
||
)
|
||
|
||
//go:embed all:dist
|
||
var distFS embed.FS
|
||
|
||
// Dist 返回前端文件系统(根即 index.html)。
|
||
func Dist() (fs.FS, error) { return fs.Sub(distFS, "dist") }
|