Ka-Note/ka-note/scripts
beo3000 3b6ae8c92b feat: auto token acquisition + import helpers for Ka-Note scripts
- get-token.ps1: MSAL.PS-based token acquisition (browser popup once, then cached refresh token)
- download/upload/unlock.ps1: auto-call get-token.ps1 when no -Token/-env provided
- import-helpers.ps1: reusable functions (Upsert-Context, Add-Topic, Add-HistoryEntry) with correct schema
- import-jf-sysadmins.ps1: idempotent import script using helpers

Fixes:
- Token file no longer stored in work/ (deleted on download)
- Upsert-Context resurrects soft-deleted contexts (500 was caused by uploading topics for deleted context)
- History uses topicId + YYYY-MM-DD date (not contextId + timestamp)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-21 22:08:12 +01:00
..
download.ps1 feat: auto token acquisition + import helpers for Ka-Note scripts 2026-02-21 22:08:12 +01:00
get-token.ps1 feat: auto token acquisition + import helpers for Ka-Note scripts 2026-02-21 22:08:12 +01:00
import-helpers.ps1 feat: auto token acquisition + import helpers for Ka-Note scripts 2026-02-21 22:08:12 +01:00
import-jf-sysadmins.ps1 feat: auto token acquisition + import helpers for Ka-Note scripts 2026-02-21 22:08:12 +01:00
show-bundle.ps1 dev 2026-02-21 19:25:43 +01:00
unlock.ps1 feat: auto token acquisition + import helpers for Ka-Note scripts 2026-02-21 22:08:12 +01:00
upload.ps1 feat: auto token acquisition + import helpers for Ka-Note scripts 2026-02-21 22:08:12 +01:00