Files
passepartout/skills/org-skill-auth-google-oauth.org

2.1 KiB

SKILL: Google Authentication Suite (Universal Literate Note)

Overview

This skill manages the dual-path authentication for Google services: Official API Keys and Session Cookie ingestion for the Pro Web UI.

Phase A: Demand (PRD)

1. Purpose

Provide a high-fidelity onboarding flow for the Gemini Web bridge.

2. User Needs

  • Guided Onboarding: Clear instructions for Chrome, Firefox, and Safari.
  • Secure Ingestion: Process the Bookmarklet JSON into the kernel.

Phase B: Blueprint (PROTOCOL)

1. Architectural Intent

Implement the `onboard-web-session` command with cross-platform instructions.

Phase D: Build (Implementation)

(in-package :org-agent)

(defun onboard-web-session ()
  "Instructions for the Sovereign Cookie Handshake."
  (kernel-log "--- GEMINI WEB ONBOARDING ---")
  (kernel-log "1. Visit gemini.google.com")
  (kernel-log "2. Run the 'Get Gemini Cookies' Bookmarklet.")
  (kernel-log "   CODE: javascript:(function(){const c=document.cookie.split('; ').reduce((r,v)=>{const [n,val]=v.split('=');r[n]=val;return r},{});const target=['__Secure-1PSID','__Secure-1PSIDTS'];const out=target.map(n=>({name:n,value:c[n]}));prompt('Copy JSON:',JSON.stringify(out));})();")
  (kernel-log "PLATFORM GUIDE:")
  (kernel-log " - Chrome/Brave: Right-click Bookmarks Bar > Add Page > Paste Code into URL.")
  (kernel-log " - Firefox: Right-click Sidebar > New Bookmark > Paste Code into Location.")
  (kernel-log " - Safari: Edit an existing bookmark's address and paste the code.")
  t)

Registration

(progn
  (defskill :skill-auth-google
    :priority 100
    :trigger (lambda (context) (eq (getf (getf context :payload) :sensor) :onboarding-request))
    :neuro (lambda (context) nil)
    :symbolic (lambda (action context) (onboard-web-session))))