Fork
0
代码
介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
Fork
0
canary
lobe-chat
/
packages
/
builtin-tool-agent-documents
/
src
下载当前目录
G
GitHub
🐛 fix(agent-signal): route hinted skill documents (
#14895
)
6281ca42
创建于
6 天前
历史提交
文件
最后提交记录
最后更新时间
ExecutionRuntime
✨ feat: agent-documents index — hide web crawls + new table format (#14292) * ✨ feat: agent-documents index — hide web crawls + new table format The default `<agent_documents_index>` was injecting every progressive document — including hundreds of web-crawled snapshots (~73% of all agent docs in production). The result was a low-signal list dominated by duplicate page titles, plus zero metadata for the LLM to rank by. This revamp: - Hides `source_type=web` documents from the default index. Header surfaces the count and points the LLM at `listDocuments(sourceType= 'web')` to enumerate them when needed. - Renders the index as a fixed-width table with TITLE / ID / SIZE / UPDATED columns. Rows are sorted by recency (most-recent first). Empty docs render as `empty` to discourage retry reads. - Adds `sourceType` and `updatedAt` to the `AgentContextDocument` contract; client mapping populates both from the DB row. - Adds `sourceType: 'all' | 'file' | 'web'` parameter to the listDocuments tool/TRPC; service-layer filter applies before shaping the LLM response. - Renames `target` → `scope` on listDocuments + createDocument (manifest, types, runtime, system role, TRPC, client service, call sites, tests). `target="currentTopic"` becomes `scope="currentTopic"` everywhere. Coverage: inline snapshot tests in `packages/context-engine/src/providers/__tests__/AgentDocumentInjector.test.ts` pin the rendered output for the three load cases (mixed user docs, web-hidden header, empty doc). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * 🐛 fix(test): update listDocuments mock assertion for sourceType default The agent-documents listDocuments runtime now forwards sourceType (defaulting to 'all'), so the spy receives two positional args. * 📝 docs(builtin-tool-local-system): bump documented runCommand max timeout to 800000ms --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
6 天前
client
✨ feat: agent-documents index — hide web crawls + new table format (#14292) * ✨ feat: agent-documents index — hide web crawls + new table format The default `<agent_documents_index>` was injecting every progressive document — including hundreds of web-crawled snapshots (~73% of all agent docs in production). The result was a low-signal list dominated by duplicate page titles, plus zero metadata for the LLM to rank by. This revamp: - Hides `source_type=web` documents from the default index. Header surfaces the count and points the LLM at `listDocuments(sourceType= 'web')` to enumerate them when needed. - Renders the index as a fixed-width table with TITLE / ID / SIZE / UPDATED columns. Rows are sorted by recency (most-recent first). Empty docs render as `empty` to discourage retry reads. - Adds `sourceType` and `updatedAt` to the `AgentContextDocument` contract; client mapping populates both from the DB row. - Adds `sourceType: 'all' | 'file' | 'web'` parameter to the listDocuments tool/TRPC; service-layer filter applies before shaping the LLM response. - Renames `target` → `scope` on listDocuments + createDocument (manifest, types, runtime, system role, TRPC, client service, call sites, tests). `target="currentTopic"` becomes `scope="currentTopic"` everywhere. Coverage: inline snapshot tests in `packages/context-engine/src/providers/__tests__/AgentDocumentInjector.test.ts` pin the rendered output for the three load cases (mixed user docs, web-hidden header, empty doc). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * 🐛 fix(test): update listDocuments mock assertion for sourceType default The agent-documents listDocuments runtime now forwards sourceType (defaulting to 'all'), so the spy receives two positional args. * 📝 docs(builtin-tool-local-system): bump documented runCommand max timeout to 800000ms --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
6 天前
executor
🐛 fix(agent-signal,server): missing document tool outcome rendering into decision agent (#14534) Emit agent document tool outcome events from client-triggered agent document tools with tool attribution so hinted skill documents can be observed by Agent Signal. Hydrate client runtime completion back to the completed assistant message for pre-created assistant turns, allowing same-turn hinted document receipts to match the originating user message. Harden agent document snapshot reads by falling back to markdown content when stale editor data cannot be projected for decision evidence.
15 天前
index.ts
🐛 fix: consolidate agent-documents tools and fix empty readDocument (#14288)
25 天前
manifest.ts
✨ feat: agent-documents index — hide web crawls + new table format (#14292) * ✨ feat: agent-documents index — hide web crawls + new table format The default `<agent_documents_index>` was injecting every progressive document — including hundreds of web-crawled snapshots (~73% of all agent docs in production). The result was a low-signal list dominated by duplicate page titles, plus zero metadata for the LLM to rank by. This revamp: - Hides `source_type=web` documents from the default index. Header surfaces the count and points the LLM at `listDocuments(sourceType= 'web')` to enumerate them when needed. - Renders the index as a fixed-width table with TITLE / ID / SIZE / UPDATED columns. Rows are sorted by recency (most-recent first). Empty docs render as `empty` to discourage retry reads. - Adds `sourceType` and `updatedAt` to the `AgentContextDocument` contract; client mapping populates both from the DB row. - Adds `sourceType: 'all' | 'file' | 'web'` parameter to the listDocuments tool/TRPC; service-layer filter applies before shaping the LLM response. - Renames `target` → `scope` on listDocuments + createDocument (manifest, types, runtime, system role, TRPC, client service, call sites, tests). `target="currentTopic"` becomes `scope="currentTopic"` everywhere. Coverage: inline snapshot tests in `packages/context-engine/src/providers/__tests__/AgentDocumentInjector.test.ts` pin the rendered output for the three load cases (mixed user docs, web-hidden header, empty doc). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * 🐛 fix(test): update listDocuments mock assertion for sourceType default The agent-documents listDocuments runtime now forwards sourceType (defaulting to 'all'), so the spy receives two positional args. * 📝 docs(builtin-tool-local-system): bump documented runCommand max timeout to 800000ms --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
6 天前
systemRole.ts
🐛 fix(agent-signal): route hinted skill documents (#14895)
6 天前
types.ts
✨ feat: agent-documents index — hide web crawls + new table format (#14292) * ✨ feat: agent-documents index — hide web crawls + new table format The default `<agent_documents_index>` was injecting every progressive document — including hundreds of web-crawled snapshots (~73% of all agent docs in production). The result was a low-signal list dominated by duplicate page titles, plus zero metadata for the LLM to rank by. This revamp: - Hides `source_type=web` documents from the default index. Header surfaces the count and points the LLM at `listDocuments(sourceType= 'web')` to enumerate them when needed. - Renders the index as a fixed-width table with TITLE / ID / SIZE / UPDATED columns. Rows are sorted by recency (most-recent first). Empty docs render as `empty` to discourage retry reads. - Adds `sourceType` and `updatedAt` to the `AgentContextDocument` contract; client mapping populates both from the DB row. - Adds `sourceType: 'all' | 'file' | 'web'` parameter to the listDocuments tool/TRPC; service-layer filter applies before shaping the LLM response. - Renames `target` → `scope` on listDocuments + createDocument (manifest, types, runtime, system role, TRPC, client service, call sites, tests). `target="currentTopic"` becomes `scope="currentTopic"` everywhere. Coverage: inline snapshot tests in `packages/context-engine/src/providers/__tests__/AgentDocumentInjector.test.ts` pin the rendered output for the three load cases (mixed user docs, web-hidden header, empty doc). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * 🐛 fix(test): update listDocuments mock assertion for sourceType default The agent-documents listDocuments runtime now forwards sourceType (defaulting to 'all'), so the spy receives two positional args. * 📝 docs(builtin-tool-local-system): bump documented runCommand max timeout to 800000ms --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
6 天前