feat: add HoloLake folder import and official assistant

This commit is contained in:
冰朔 2026-08-08 11:15:34 +08:00
commit a360982a9b
12 changed files with 507 additions and 76 deletions

View file

@ -1,5 +1,5 @@
/**
* Agent ·
* HoloLake Assistant ·
*
* Grok Build (xAI/SpaceXAI) Agent
* - xai-grok-agent: Agent = Definition + PromptContext + ToolBridge + Policies
@ -8,9 +8,9 @@
*
*
* - Rust TypeScript
* - Agent
* - Agent Git =
* - Git
* - Agent HoloLake
* - Agent Git
* - Git
*
*
* Grok Agent PersonaAgent
@ -347,26 +347,29 @@ export class PersonaAgent {
return `${this.definition.systemPromptBase}
${this.definition.name}${this.definition.role}
##
##
HoloLake
使
##
使
${toolsList}
##
##
1. AI Agent
2. Git
3. Git commit
4.
5.
1.
2.
3. Git Forgejo
4.
5.
6.
##
-
-
- `;
- 使使
-
- `;
}
// ─── LLM 调用(可插拔) ───
@ -474,10 +477,10 @@ ${toolsList}
export function createDefaultPersona(git: GitEngine): PersonaAgent {
return new PersonaAgent(
{
id: 'hololake-persona-default',
name: '光湖人格体',
role: '知识库管理者 — 负责文档的创建、整理、搜索和版本管理',
systemPromptBase: '你是光湖知识库的人格体,一个活的知识管理 AI Agent。',
id: 'hololake-assistant-default',
name: 'HoloLake 助手',
role: '知识工作助手 — 支持文档检索、编辑、整理和版本管理',
systemPromptBase: '你是 HoloLake 官方内置知识助手。所有回答与操作都必须遵守产品权限边界和可核验回执原则。',
tools: [
'inspect_repository',
'read_document',