Add safe knowledge document file editing

This commit is contained in:
gitea committed 2026-10-20 17:30:38 +08:00
1 parent cbef6d0ef6
commit b017e1fc48
16 files changed
+918 -138

No files matched your search

+3
View File
@@ -61,6 +61,8 @@ describe("CLI read-only classification", () => {
["expense", "--sn", "SN-FIXTURE", "--corp", "corp-a"],
["data", "expenses", "--sn", "SN-FIXTURE", "--corp", "corp-a"],
["documents", "get", "doc-1", "--corp", "corp-a"],
["documents", "get", "doc-1", "--out", "./body.txt", "--corp", "corp-a"],
["documents", "list", "--summary", "--fields", "id,title", "--corp", "corp-a"],
["documents", "search", "差旅", "--corp", "corp-a"],
["approval-runs", "get", "01a09dac-c688-767b-8eb4-37b945095585"],
["approval-runs", "list", "--corp", "corp-a"],
@@ -94,6 +96,7 @@ describe("CLI read-only classification", () => {
["rules", "clear"],
["documents", "create"],
["documents", "update", "doc-1"],
["documents", "update", "doc-1", "--content-file", "body.txt", "--dry-run", "--yes"],
["documents", "delete", "doc-1"],
["simulation", "create", "--mode", "hosecloud"],
["deploy", "hosecloud", "sync", "sign-key"],