feat(personal-assistant): add confirmed project memory

This commit is contained in:
2026-07-19 08:19:24 +08:00
parent 151cc26caf
commit 24da833fa6
31 changed files with 4037 additions and 60 deletions
@@ -4,15 +4,15 @@ import test from 'node:test';
const read = (path) => readFile(new URL(path, import.meta.url), 'utf8');
test('全网问AI与企业问师傅分入口分接口并持续显示外部来源提示', async () => {
test('查全网与工作助手分入口分接口并持续显示外部来源提示', async () => {
const [sop, webAi, webService] = await Promise.all([
read('../src/pages/user/sop/index.vue'),
read('../src/pages/user/web-ai/index.vue'),
read('../src/services/web-ai.ts')
]);
assert.match(sop, /企业问师傅/);
assert.match(sop, /问 AI(全网)/);
assert.match(webAi, /不与企业 SOP 混用/);
assert.match(sop, /工作助手/);
assert.match(sop, /查全网/);
assert.match(webAi, /不与工作助手的内部资料混用/);
assert.match(webAi, /答案来自互联网,不代表公司制度/);
assert.match(webService, /\/api\/aihr\/web-ai\/query/);
assert.doesNotMatch(webService, /\/api\/knowledge\/query/);