v0.5.12 : la cle Crawl4AI quitte config.env pour un fichier dedie (0600)

Une cle en clair dans config.env finit dans les copier-coller de depannage.
Elle vit desormais dans $JEAN_HOME/.crawl4ai_key en 0600, comme la cle de
completion (.api_key) ; les installations qui l'avaient dans config.env sont
migrees a la premiere lecture, et l'ecriture efface toute trace residuelle.

Approche proposee par @feanor91 dans la PR #15 — merci a lui.
This commit is contained in:
nathaninline committed 2026-07-28 11:43:40 +02:00
1 parent 8956b1ed76
commit 15bb9358bc
8 files changed
+45 -11

No files matched your search

+2 -1
View File
@@ -10,7 +10,7 @@ import (
"strings"
)
const Version = "0.5.11"
const Version = "0.5.12"
// Main est le vrai main() du binaire (cmd/jean ne fait que l'appeler).
func Main() {
@@ -220,6 +220,7 @@ func mcpConfigPath() string { return filepath.Join(JeanHome(), "mcp.json") }
func legacySkillsFlag() string { return filepath.Join(skillsDir(), ".enabled") }
func legacyToolsFlag() string { return filepath.Join(JeanHome(), ".tools_enabled") }
func apiKeyPath() string { return filepath.Join(JeanHome(), ".api_key") }
func crawlKeyPath() string { return filepath.Join(JeanHome(), ".crawl4ai_key") }
func serviceName() string {
if n := os.Getenv("JEAN_SERVICE"); n != "" {
return n