Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 8 additions & 9 deletions packages/api/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,14 @@ POSTHOG_PROJECT_TOKEN = "phc_sDSFNrjkniWVhvBekx2UL4PkwrmT6jMeWnyswdC3S2LV"
ACQUISITION_ANALYTICS = "1"
INTERNAL_AGENT_IDS = ""
# AgentID verified-identity linking (src/agentid/). OPTIONAL attestation on top
# of AgentSig. Fails closed until a client is registered at the AgentID console
# (npx @agentmail/agentid-cli init) and these are filled. Uncomment + set the
# three vars and add the AGENTID_CLIENT_SECRET secret (scripts/put-secrets.sh);
# ISSUER defaults to https://auth.agentid.com. GET /v1/status -> agentid.
# AGENTID_ENABLED = "1"
# AGENTID_CLIENT_ID = ""
# AGENTID_REDIRECT_URI = "https://api.basedagents.ai/v1/agentid/callback"
# AGENTID_ISSUER = "https://auth.agentid.com"
# AGENTID_SCOPES = "openid email profile"
# of AgentSig. Fails closed until the AGENTID_CLIENT_SECRET secret is also set
# (scripts/put-secrets.sh) — GET /v1/status -> agentid flips to "enabled" only
# when the secret is present too. CLIENT_ID is a public identifier; the registered
# client must list AGENTID_REDIRECT_URI as an allowed redirect. ISSUER/SCOPES
# default to the values below, so they are left implicit.
AGENTID_ENABLED = "1"
AGENTID_CLIENT_ID = "6c151bc5-c838-4f8a-acf3-3655a7e5b47e"
AGENTID_REDIRECT_URI = "https://api.basedagents.ai/v1/agentid/callback"
# House accounts: paid tasks they posted carry `sponsored: true` in GET /v1/tasks/settled
# (the platform paying for work, labeled as such). Agent ids are public; add the
# console owner id (ow_…) that posts house tasks from app.basedagents.ai too.
Expand Down
2 changes: 1 addition & 1 deletion scripts/put-secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ put() {
echo "· $name not set in environment — skipped"
return
fi
printf '%s' "$value" | npx wrangler secret put "$name" "${WRANGLER_ENV_ARGS[@]}"
printf '%s' "$value" | npx wrangler secret put "$name" ${WRANGLER_ENV_ARGS[@]+"${WRANGLER_ENV_ARGS[@]}"}
echo "✓ $name"
}

Expand Down
Loading