chore: migrate to @assembly-js/node-sdk and app-bridge#1176
Draft
foleyatwork wants to merge 1 commit intomainfrom
Draft
chore: migrate to @assembly-js/node-sdk and app-bridge#1176foleyatwork wants to merge 1 commit intomainfrom
foleyatwork wants to merge 1 commit intomainfrom
Conversation
- Replace copilot-node-sdk with @assembly-js/node-sdk (v4.0.2) - Implement lazy init pattern for async assemblyApi() in CopilotAPI - Migrate dispatchWebhook to SDK's sendWebhook method - Replace manual postMessage hooks with @assembly-js/app-bridge - Wire up AssemblyBridge token refresh in ClientSideStateUpdate - Remove portalUrl prop drilling (handled by AssemblyBridge.configure) - Make NEXT_PUBLIC_ASSEMBLY_API_DOMAIN optional (token baseUrl takes priority) - Fix serve-embedded: DASHBOARD_DOMAIN array bug, localhost support Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
@greptileai review this PR please |
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
copilot-node-sdkwith@assembly-js/node-sdk(v4.0.2) using the lazy init pattern for the now-asyncassemblyApi()factorypostMessagehooks with@assembly-js/app-bridge(v1.1.0), wiring up automatic session token refreshing viaAssemblyBridge.sessionToken.onTokenUpdateportalUrlprop drilling from 12 files — origins now configured once viaAssemblyBridge.configure()dispatchWebhookto SDK's first-classsendWebhookmethodNEXT_PUBLIC_ASSEMBLY_API_DOMAINoptional — token'sbaseUrltakes priorityserve-embedded:DASHBOARD_DOMAINarray-as-string bug, add localhost fallback whenNGROK_AUTHTOKENis unsetWhat's NOT in this PR
CopilotAPI→AssemblyAPI) — separate PR to reduce noiseCOPILOT_API_KEY→ASSEMBLY_API_KEY) — old names still work, separate coordinationcopilot-design-systemrename — separate concernTest plan
npx tsc --noEmit)🤖 Generated with Claude Code