Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/hooks/knowledge-extractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export async function extractKnowledge(
await ctx.client.tui.showToast({
body: {
title: "smart-codebase",
message: "正在创建知识提取子会话,开始分析...",
message: "Creating knowledge extraction subsession, starting analysis...",
variant: "info",
duration: 5000,
},
Expand Down Expand Up @@ -141,8 +141,8 @@ OUTPUT FORMAT:
"skill": {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets check if this "invoice" part is actually productive or if its leftovers from other codebase by accident

"modulePath": "src/invoice",
"name": "invoice-processing",
"description": "发票表单验证。金额用 Decimal 避免精度问题,格式 INV-YYYYMMDD-XXXX。修改发票表单或校验逻辑时使用。",
"sections": [{"heading": "表单验证", "content": "金额字段用 Decimal 类型避免精度问题。\\n发票号格式:INV-YYYYMMDD-XXXX"}],
"description": "Invoice form validation. Use Decimal for amounts to avoid precision issues, format INV-YYYYMMDD-XXXX. Use when modifying invoice forms or validation logic.",
"sections": [{"heading": "Form Validation", "content": "Amount field uses Decimal type to avoid precision issues.\\nInvoice number format: INV-YYYYMMDD-XXXX"}],
"relatedFiles": ["src/invoice/form.tsx"]
}
}
Expand Down Expand Up @@ -323,7 +323,7 @@ export function createKnowledgeExtractorHook(ctx: PluginInput, config?: PluginCo
await ctx.client.tui.showToast({
body: {
title: "smart-codebase",
message: "可运行 /sc-extract 提取知识",
message: "Run /sc-extract to extract knowledge",
variant: "info",
duration: 5000,
},
Expand All @@ -344,7 +344,7 @@ export function createKnowledgeExtractorHook(ctx: PluginInput, config?: PluginCo
await ctx.client.tui.showToast({
body: {
title: "smart-codebase",
message: `会话空闲,${debounceMs / 1000}秒后开始知识提取...`,
message: `Session idle, knowledge extraction starting in ${debounceMs / 1000} seconds...`,
variant: "info",
duration: 5000,
},
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const SmartCodebasePlugin: Plugin = async (input) => {
await input.client.tui.showToast({
body: {
title: "smart-codebase",
message: "知识提取已取消,继续工作...",
message: "Knowledge extraction cancelled, continuing work...",
variant: "info",
duration: 5000,
},
Expand Down
Loading