Refactor delete setting helper and link skills (#994)

* refactor: add deleteSetting helper and link skills

* chore: reorganize project skills layout

* docs: update skill paths

* chore: add AGENTS link and prune skill links

* chore: localize agent skill links
This commit is contained in:
Dream Hunter
2026-04-22 00:35:04 +08:00
committed by GitHub
parent e94ff52add
commit 063b6be2b1
14 changed files with 29 additions and 16 deletions
+10
View File
@@ -64,6 +64,16 @@ export const saveSetting = async (
return true;
}
export const deleteSetting = async (
c: Context<HonoCustomType>,
key: string
) => {
await c.env.DB.prepare(
`DELETE FROM settings WHERE key = ?`
).bind(key).run();
return true;
}
export const getStringValue = (value: any): string => {
if (typeof value === "string") {
return value;