add tool use, update system prompt

This commit is contained in:
duanfuxiang
2025-03-12 21:39:29 +08:00
parent cabf2d5fa4
commit b0fbbb22d3
36 changed files with 7149 additions and 430 deletions

View File

@@ -37,10 +37,16 @@ export default function ApplyViewRoot({
.map((change) => change.value)
.join('')
await app.vault.modify(state.file, newContent)
if (state.onClose) {
state.onClose(true)
}
close()
}
const handleReject = async () => {
if (state.onClose) {
state.onClose(false)
}
close()
}