Repository navigation
feat(cloud): optional Akeru Cloud account with a linked environment socket - #364
Open
leoisadev1 wants to merge 22 commits into
Open
leoisadev1 wants to merge 22 commits into
leoisadev1 wants to merge 22 commits into
Conversation
Port the cloud wire contracts and owner-only link RPCs onto the current contract modules. Keep the cloud origin configurable only by the environment. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Port device approval, account management, the EnvironmentHub socket, and hosted Slack relay. Keep Alchemy on its own compatible Effect version and wire workspace tests and stage deployments. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Port origin-pinned credentials, device approval, reconnection, revocation, unlink, and the hosted relay seam into the split server layers and RPC handlers. The typed Node transport reads refused upgrade statuses directly. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
The existing navigator augmentation resolves to an empty parameter list, and StaticParamList enters circular SDK inference. Declare the global route map from each screen’s parameter contract instead, without changing runtime navigation. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Port account linking, connection status, cancellation, and disconnect to web, desktop, and mobile Settings. Adapt palette commands and settings deep links to the current navigation and share the status presentation and RPC atoms. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Document linking, privacy, the relay boundary, and deployment stages. Add the minor release changeset for Settings on web, desktop, and mobile. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Keep protocol assertions typed when reading request IDs from the outbound message union. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Serialize upgrades, hello, and revocation through the Durable Object gate. Persist a revoked marker across restarts and recheck the environment and account in D1 before welcoming a socket. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Report non-interruption command failures with an alert for cloud actions. Extend the pending minor changeset and cover failed connection, failed disconnection, and interruption. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Give the Chinese palette fixture a valid environment and cover both cloud action titles. Include optional Akeru Cloud linking in the deliberate thirteen-page navigation cap. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Derive repeatable credentials from the secret device code, retain approved codes through expiry, and make environment creation idempotent. Limit anonymous outstanding codes with a conditional D1 insert. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Cache encrypted OAuth completion results through delivery retries and serialize callbacks. Make revocation atomic and idempotent, recheck account access for socket commands, and require a welcomed socket for delivery. Disabled routes no longer consume the active quota. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Keep credentials on failed disconnects and save a token-free revocation record if deletion fails. Align palette Settings with the command environment, handle mobile app links without an environment, and report verification-page failures. Extract the server test harness along its fixture boundary. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Describe direct handshake status handling, recoverable link and OAuth flows, and confirmed disconnects. State that no hosted bots or production relay consumer ship yet. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Use the resolved v6 checkout and v1 setup-vp commit IDs in the secret-bearing deployment job. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Generate independent link credentials, encrypt their short-lived handoff, and clear it when the environment confirms receipt. Admit starts per caller and limit socket messages before D1 access while caching heartbeat checks. Implemented with GPT-6.1 Sol through the Codex harness. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Keep confirmed cloud disconnection and add a separate owner-only local Forget RPC and Settings actions on web, desktop, and mobile. Warn that the cloud may still list the environment until revoked there. Update the existing minor changeset and cloud documentation. Implemented with GPT-6.1 Sol through the Codex harness. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
4 tasks
Persist heartbeat timestamps in socket attachments, check link admission before cleanup, and count only pending codes toward caller quotas. Keep encrypted credential delivery until the code expires or hello confirms receipt. Retain disabled routes for thirty days and cap account route responses. Seven regression checks fail on the prior implementation; fifty focused tests, scoped lint, and the cloud typecheck pass. Implemented with GPT-6.1 Sol through the Codex harness. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
The production Worker attaches cloud.akeru-bot.com as a Cloudflare custom domain, and the app's default cloud address follows it. Staging keeps its workers.dev address; its Clerk instance now allows only the maintainer's account, which the docs record. Production deploys need the akeru-bot.com zone on the Cloudflare account. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… (AKR-145) akeru-bot.com's DNS and landing page stay on Vercel. cloud.akeru-bot.com becomes a custom hostname on the leodev.cv zone, Vercel DNS points it at that zone's fallback origin, and a Worker route sends it to the production Worker. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-145) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…bot.com The sign-in box linked to Clerk's hosted sign-up page, which finishes on the production instance's home, the bare akeru-bot.com. Sign-up now runs inline in the same box and returns to the page that asked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 6, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Akeru had no way to offer hosted services, such as one-click Slack setup or cloud sandboxes, because Slack and other platforms need a public HTTPS endpoint and Akeru environments are local. This adds an optional Akeru Cloud account. An environment links to it once with a device code, then keeps one outbound socket that the cloud uses to relay requests. Without a linked account, the app works exactly as before.
packages/contracts/src/cloud.ts: versioned socket protocol, device link, forwarded requests.apps/cloud: Cloudflare Worker with Clerk accounts, device link, the EnvironmentHub socket and the hosted Slack relay.apps/cloud/infradeploys it with Alchemy, which pins its own Effect version.Message content and Slack tokens stay on the environment. The cloud stores account and environment metadata only.
Evidence
vp test run apps/cloudpasses 51 tests in 6 files. Focused server, contracts, web and client-runtime suites pass 261 tests in 26 files. Typecheck passes for cloud, cloud/web, cloud/infra, server, web, mobile, contracts and client-runtime.a876e6226), and mobile Connect and Disconnect failed silently (7cf888bc6).Not tested: the Linked state, because approving needs a real Clerk sign-in. Native mobile rendering. A live hosted Slack event through the relay.
Merge Danger
Door: one-way. A push to
mainthat touchesapps/cloud/**orpackages/contracts/**runscloud-deploy.ymland redeploys the production Worker atcloud.akeru-bot.com. Production is already live from this branch: the Cloudflare for SaaS hostname, Vercel DNS records, Clerk production instance (email sign-in), and every requiredcloud-productionsecret are in place, so the merge only redeploys the same code. Staging stays on its workers.dev address and only allows Leo's account.Blast radius: environments that link a cloud account, plus the Settings page. Unlinked environments never open the socket.
Created with Claude Opus 5.5 in Claude Code.