An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:recycle: Code style: Adjust comment formatting (#17299)
Jeffrey Chen60fa7fe54536
diff --git a/kernel/model/carddav.go b/kernel/model/carddav.goindex fcd50e09a8..29486788ff 100644--- a/kernel/model/carddav.go+++ b/kernel/model/carddav.go@@ -97,7 +97,7 @@ var (ErrorCardDavAddressFileExtensionNameInvalid = errors.New("CardDAV: address file extension name is invalid"))-// ImportVCardFile imports a address book from a vCard file (*.vcf)+// ImportAddressBook imports an address book from a vCard file (*.vcf)func ImportAddressBook(addressBookPath, cardContent string) (addresses []*AddressObject, err error) {// TODO: Check whether the path is valid (PathDepth: Address)// TODO: Check whether the address book exists@@ -106,7 +106,7 @@ func ImportAddressBook(addressBookPath, cardContent string) (addresses []*Addresreturn}-// ExportAddressBook exports a address book to a vCard file (*.vcf)+// ExportAddressBook exports an address book to a vCard file (*.vcf)func ExportAddressBook(addressBookPath string) (cardContent string, err error) {// TODO: Check whether the path is valid (PathDepth: AddressBook)// TODO: Check whether the address book exists@@ -114,7 +114,7 @@ func ExportAddressBook(addressBookPath string) (cardContent string, err error) {return}-// AddressBooksMetaDataFilePath returns the absolute path of the address books meta data file+// AddressBooksMetaDataFilePath returns the absolute path of the address books metadata filefunc AddressBooksMetaDataFilePath() string {return DavPath2DirectoryPath(CardDavAddressBooksMetaDataFilePath)}diff --git a/kernel/util/cert.go b/kernel/util/cert.goindex 0578e5e0e7..eb30b4c8c7 100644--- a/kernel/util/cert.go+++ b/kernel/util/cert.go@@ -42,7 +42,7 @@ const (TLSKeyFilename = "key.pem")-// Returns paths to existing TLS certificates or generates new ones signed by a local CA.+// GetOrCreateTLSCert returns paths to existing TLS certificates or generates new ones signed by a local CA.// Certificates are stored in the conf directory of the workspace.func GetOrCreateTLSCert() (certPath, keyPath string, err error) {certPath = filepath.Join(ConfDir, TLSCertFilename)@@ -278,7 +278,7 @@ func writeCertAndKey(certPath, keyPath string, certDER []byte, privateKey *ecdsareturn nil}-// Imports a CA certificate and private key from PEM-encoded strings.+// ImportCABundle imports a CA certificate and private key from PEM-encoded strings.func ImportCABundle(caCertPEM, caKeyPEM string) error {certBlock, _ := pem.Decode([]byte(caCertPEM))if certBlock == nil {