From b0f3858946fb6f24a1723c5a409caada65f7f746 Mon Sep 17 00:00:00 2001 From: Sam Rolfe Date: Sat, 5 Sep 2026 12:09:22 +1000 Subject: [PATCH] project-ops: fix key extraction (handle tk_/ol_api_ prefixes with underscore) --- skills/project-ops/SKILL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skills/project-ops/SKILL.md b/skills/project-ops/SKILL.md index fef84e3..447fef1 100644 --- a/skills/project-ops/SKILL.md +++ b/skills/project-ops/SKILL.md @@ -18,8 +18,8 @@ Keys are stored in the machine's secrets file. Read them at runtime, never print - **Outline** key: `OL_API_KEY` in `~/.config/environment.d/10-secrets.conf` ```bash -VIKUNJA_TOKEN=$(grep -oE 'VIKUNJA_TOKEN=[A-Za-z0-9]+' ~/.config/environment.d/10-secrets.conf | cut -d= -f2) -OL_API_KEY=$(grep -oE 'OL_API_KEY=[A-Za-z0-9]+' ~/.config/environment.d/10-secrets.conf | cut -d= -f2) +VIKUNJA_TOKEN=$(grep "^VIKUNJA_TOKEN=" ~/.config/environment.d/10-secrets.conf | head -1 | cut -d= -f2- | tr -d '"' | tr -d ' ') +OL_API_KEY=$(grep "^OL_API_KEY=" ~/.config/environment.d/10-secrets.conf | head -1 | cut -d= -f2- | tr -d '"' | tr -d ' ') ``` If token 401s: re-source or confirm the machine's secrets were pulled (`git -C ~/.agents pull`).