Skip to content

[closed]#2362

Closed
TalZaccai wants to merge 1 commit into
mainfrom
talzacc/onboarding-scaffolder-migration
Closed

[closed]#2362
TalZaccai wants to merge 1 commit into
mainfrom
talzacc/onboarding-scaffolder-migration

Conversation

@TalZaccai
Copy link
Copy Markdown
Contributor

@TalZaccai TalZaccai commented May 19, 2026

No description provided.

Updates the scaffolder so newly-generated websocket-bridge and view-ui

agents follow the modern port-allocation pattern: OS-assigned port +

context.registerPort(role, port), discoverable by external clients via

discoverPort(name, role).

- buildWebSocketBridgeTemplate (scaffoldPlugin): static start(port=0)

  factory, close(), connected getter, sendCommand helper.

- buildWebSocketBridgeHandler (scaffoldAgent): full AppAgent lifecycle

  with refcounted shared server, registerPort, and backstop close.

- buildViewUiHandler: full AppAgent with view server, registerPort,

  setLocalHostPort for shell integration, and ActivityContext-driven

  openLocalView in executeAction.

- Both templates honor <NAME>_BRIDGE_PORT / <NAME>_VIEW_PORT env-var

  overrides for debugging.

- Updated PLUGIN_TEMPLATES nextSteps for websocket-bridge to reflect

  the new await <PascalName>Bridge.start() usage.

- agent-patterns.md sections 5 and 8 document the new port contract.

office-addin template stays on the legacy hardcoded port; it'll be

updated alongside the SecretAgents office-agent migration.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@TalZaccai TalZaccai requested a deployment to development-fork May 19, 2026 03:27 — with GitHub Actions Waiting
@TalZaccai TalZaccai requested a deployment to development-fork May 19, 2026 03:27 — with GitHub Actions Waiting
@TalZaccai TalZaccai changed the title Onboarding scaffolder: emit port-registrar-compliant templates [closed] May 19, 2026
@TalZaccai TalZaccai closed this May 19, 2026
@TalZaccai TalZaccai deleted the talzacc/onboarding-scaffolder-migration branch May 19, 2026 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant