Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
22a7907
Add multi-user Life agent backend
emilwareus Jul 14, 2026
1e8c2de
feat: implement Life UI Phases 0-2
Jul 15, 2026
05bbe6a
feat: implement Life UI Phase 3 — Realtime voice
Jul 15, 2026
a72662e
feat: implement Life UI Phases 4-5 — connectors, settings, research, …
Jul 15, 2026
2393d12
WIP: life agent refactoring + demos + research
Jul 16, 2026
8ab05fb
Merge origin/main into build-personal-life-agent
emilwareus Jul 17, 2026
2e61739
fix(build): resolve F-01 — install DemoHunter tooling
emilwareus Jul 22, 2026
c8947ac
fix(repo): resolve F-02 — remove generated artifacts and demo secret
emilwareus Jul 22, 2026
283f8f2
fix(life): resolve F-03 — make connector revocation final
emilwareus Jul 22, 2026
bb8b937
fix(life): resolve F-04 — close runtime correctness gaps
emilwareus Jul 22, 2026
e6a3bb9
ci: resolve F-05 — enforce web and backend release gates
emilwareus Jul 22, 2026
b3047fe
ci: resolve F-05 — use Vercel for the environment-bound web build
emilwareus Jul 22, 2026
0784279
infra: deploy Life backend to Cloud Run with Pulumi
emilwareus Jul 23, 2026
545fbb2
dev: add make target for local Life UI
emilwareus Jul 24, 2026
465c089
fix(life): handle WebRTC output audio lifecycle events
emilwareus Jul 24, 2026
8912b45
fix(life): handle truncated Realtime audio
emilwareus Jul 25, 2026
9531a6d
feat(life): replace OAuth connectors with API keys and continuous sync
emilwareus Aug 2, 2026
8d8f1a2
fix(life): apply Prettier to connector UI and threat model
emilwareus Aug 2, 2026
fbabb00
Merge origin/main into build-personal-life-agent
emilwareus Aug 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .demohunter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Managed by DemoHunter. Delete this file and the directory to opt out.
*
!.gitignore
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,10 @@ SPOTIFY_CLIENT_ID=your_spotify_client_id_here
SPOTIFY_CLIENT_SECRET=your_spotify_client_secret_here
SPOTIFY_REFRESH_TOKEN=your_spotify_refresh_token_here # Get this once, use forever

# Private Life UI (server-only; provision all six together)
LIFE_API_BASE_URL=https://life-api.example.com
LIFE_USER_TOKEN=replace_with_a_dedicated_high_entropy_owner_token
LIFE_EXPECTED_OWNER_ID=00000000-0000-4000-8000-000000000000
LIFE_UI_PASSWORD_HASH=$scrypt$v=1$N=32768,r=8,p=1$base64url_salt$base64url_hash
LIFE_UI_SESSION_SECRET=replace_with_at_least_32_random_characters
LIFE_UI_ORIGIN=https://addcommitpush.io
195 changes: 182 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to Vercel
name: Deploy

on:
push:
Expand All @@ -7,16 +7,20 @@ on:
pull_request:

concurrency:
group: vercel-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
group: deploy-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions:
contents: read
pull-requests: write

jobs:
deploy:
deploy-preview:
name: Vercel preview
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
Expand All @@ -34,17 +38,15 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
cache: pnpm

- name: Deploy Preview (PR)
if: github.event_name == 'pull_request'
- name: Deploy preview
id: deploy_preview
run: |
bash scripts/deploy-vercel.sh preview --output .vercel/preview-url.txt
echo "url=$(tail -n1 .vercel/preview-url.txt | tr -d '\n')" >> "$GITHUB_OUTPUT"

- name: Comment Preview URL on PR
if: github.event_name == 'pull_request'
- name: Comment preview URL
uses: actions/github-script@v7
with:
script: |
Expand All @@ -59,7 +61,174 @@ jobs:
env:
url: ${{ steps.deploy_preview.outputs.url }}

- name: Deploy Production (main push)
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
deploy-backend:
name: GCP backend
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
timeout-minutes: 45
permissions:
contents: read
id-token: write
outputs:
api_url: ${{ steps.deployment_outputs.outputs.api_url }}
owner_id: ${{ steps.deployment_outputs.outputs.owner_id }}
env:
GCP_PROJECT_ID: ${{ vars.GCP_PROJECT_ID }}
GCP_REGION: ${{ vars.GCP_REGION }}
PULUMI_BACKEND_URL: ${{ vars.PULUMI_BACKEND_URL }}
PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.33.2

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Authenticate to Google Cloud
id: gcp_auth
uses: google-github-actions/auth@v3
with:
project_id: ${{ vars.GCP_PROJECT_ID }}
workload_identity_provider: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ vars.GCP_DEPLOY_SERVICE_ACCOUNT }}
token_format: access_token
access_token_lifetime: 3600s

- name: Setup Google Cloud
uses: google-github-actions/setup-gcloud@v3

- name: Configure Artifact Registry authentication
run: gcloud auth configure-docker "$GCP_REGION-docker.pkg.dev" --quiet
env:
CLOUDSDK_AUTH_ACCESS_TOKEN: ${{ steps.gcp_auth.outputs.access_token }}

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Setup Pulumi
uses: pulumi/actions@v7
with:
pulumi-version: 3.254.0

- name: Apply infrastructure and deploy image
working-directory: infra
env:
CLOUDSDK_AUTH_ACCESS_TOKEN: ${{ steps.gcp_auth.outputs.access_token }}
GOOGLE_OAUTH_ACCESS_TOKEN: ${{ steps.gcp_auth.outputs.access_token }}
run: |
pulumi login "$PULUMI_BACKEND_URL"
pulumi stack select production
pulumi up --yes --skip-preview --suppress-outputs

- name: Read deployment outputs
id: deployment_outputs
working-directory: infra
env:
GOOGLE_OAUTH_ACCESS_TOKEN: ${{ steps.gcp_auth.outputs.access_token }}
run: |
{
echo "api_url=$(pulumi stack output lifeApiUrl)"
echo "owner_id=$(pulumi stack output lifeOwnerId)"
echo "provision_job=$(pulumi stack output lifeProvisionJob)"
} >> "$GITHUB_OUTPUT"

- name: Migrate and provision owner
env:
CLOUDSDK_AUTH_ACCESS_TOKEN: ${{ steps.gcp_auth.outputs.access_token }}
run: |
gcloud run jobs execute "${{ steps.deployment_outputs.outputs.provision_job }}" \
--project="$GCP_PROJECT_ID" \
--region="$GCP_REGION" \
--wait

- name: Verify deployed API
env:
CLOUDSDK_AUTH_ACCESS_TOKEN: ${{ steps.gcp_auth.outputs.access_token }}
LIFE_API_BASE_URL: ${{ steps.deployment_outputs.outputs.api_url }}
LIFE_EXPECTED_OWNER_ID: ${{ steps.deployment_outputs.outputs.owner_id }}
run: |
bash scripts/deploy-vercel.sh production
curl \
--fail \
--silent \
--show-error \
--retry 10 \
--retry-all-errors \
--retry-delay 5 \
--max-time 300 \
"$LIFE_API_BASE_URL/readyz" >/dev/null
life_user_token="$(gcloud secrets versions access latest \
--project="$GCP_PROJECT_ID" --secret=life-user-token)"
actual_owner_id="$(curl \
--fail \
--silent \
--show-error \
--retry 5 \
--retry-all-errors \
--retry-delay 2 \
--max-time 120 \
--header "Authorization: Bearer $life_user_token" \
"$LIFE_API_BASE_URL/v1/owner" | jq --raw-output '.id')"
unset life_user_token
test "$actual_owner_id" = "$LIFE_EXPECTED_OWNER_ID"

deploy-production:
name: Vercel production
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: deploy-backend
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
env:
GCP_PROJECT_ID: ${{ vars.GCP_PROJECT_ID }}
LIFE_API_BASE_URL: ${{ needs.deploy-backend.outputs.api_url }}
LIFE_EXPECTED_OWNER_ID: ${{ needs.deploy-backend.outputs.owner_id }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.33.2

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: pnpm

- name: Authenticate to Google Cloud
id: gcp_auth
uses: google-github-actions/auth@v3
with:
project_id: ${{ vars.GCP_PROJECT_ID }}
workload_identity_provider: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ vars.GCP_DEPLOY_SERVICE_ACCOUNT }}
token_format: access_token
access_token_lifetime: 3600s

- name: Setup Google Cloud
uses: google-github-actions/setup-gcloud@v3

- name: Synchronize Life server configuration
env:
CLOUDSDK_AUTH_ACCESS_TOKEN: ${{ steps.gcp_auth.outputs.access_token }}
run: bash scripts/sync-life-vercel-env.sh

- name: Deploy production
run: bash scripts/deploy-vercel.sh production
95 changes: 95 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: Quality

on:
pull_request:
push:
branches:
- main

concurrency:
group: quality-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
web:
name: Web checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.33.2

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Check formatting
run: pnpm format:check

- name: Lint
run: pnpm lint

- name: Typecheck
run: pnpm typecheck

- name: Check Life contracts
run: pnpm check:life-contracts

- name: Check Life Realtime protocol
run: pnpm check:life-realtime

life-backend:
name: Life backend checks
runs-on: ubuntu-latest
services:
postgres:
image: pgvector/pgvector:pg18
env:
POSTGRES_DB: postgres
POSTGRES_USER: life
POSTGRES_PASSWORD: life
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U life -d postgres"
--health-interval 2s
--health-timeout 3s
--health-retries 20
defaults:
run:
working-directory: life
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.96.0
components: rustfmt, clippy

- name: Check formatting
run: cargo fmt --check

- name: Lint
run: cargo clippy --all-targets --all-features --locked -- -D warnings

- name: Test with PostgreSQL
env:
LIFE_TEST_DATABASE_URL: postgres://life:life@localhost:5432/postgres
run: cargo test --all-targets --all-features --locked

- name: Build release container
run: docker build --tag life-agent:test .
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

# testing
/coverage
/.context/
/.playwright-cli/

# next.js
/.next/
Expand All @@ -23,6 +25,7 @@
# misc
.DS_Store
*.pem
gha-creds-*.json

# debug
npm-debug.log*
Expand Down Expand Up @@ -68,3 +71,5 @@ tmp

# Rust build output
dr/target/
/life/target/
/life/.env
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ check: format-check lint test build ## Run all checks (format, lint, test, build
# Utility Commands
# ============================================================================

.PHONY: clean setup run-researcher start-blog install-dr
.PHONY: clean setup life run-researcher start-blog install-dr

clean: ## Clean build artifacts
cd $(RESEARCHER_DIR) && rm -f research research-* *.test
Expand All @@ -118,6 +118,9 @@ setup: ## Set up the project (install dependencies)
pnpm install
cd $(RESEARCHER_DIR) && go mod download

life: ## Run the Life UI locally against the live Cloud Run backend
bash scripts/run-life-local.sh

run-researcher: ## Run researcher application
cd $(RESEARCHER_DIR) && go run ./cmd/research

Expand Down
Loading
Loading