Repository navigation
Tags: GoCodeAlone/workflow-plugin-websocket
Tags
ci(release): fix listReleases draft-publish + bump plugin.json v0.5.6 (… …#16) Replaces getReleaseByTag (fails on GoReleaser drafts) with listReleases. Bumps plugin.json version to v0.5.6. Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
fix(release): drop sed hook for plugin.json that doesn't exist Previous commit added a sed hook to goreleaser that edits plugin.json's version field. This repo has no plugin.json at the root, so the hook fails and breaks the release pipeline. Remove the hook. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
refactor: inject plugin version at build time via ldflags Replace hardcoded Version string in Manifest() with a package-level var that goreleaser populates via -ldflags -X. This ensures the plugin's reported Manifest().Version matches the release tag, so the workflow engine's requires.plugins[].version check passes. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
test: add hijack_test proving Hijacker interface is required for WS u… …pgrade Reproduces the WS 500 bug: when ResponseWriter is wrapped without implementing http.Hijacker, gorilla/websocket upgrade fails. Also verifies the fix (wrapper that delegates Hijack succeeds with 101). Adds slog.Error to ServeHTTP upgrade failure path for observability. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
fix: panic recovery in hub.run, connect handler, readPump; stop() gra… …ceful shutdown - WP-1: add panic recovery to hub.run() via defer/recover - WP-2: add runDone channel; hub.run() closes it on exit, stop() waits on it for graceful shutdown - WP-3: add panic recovery to connect handler goroutine in ServeHTTP - WP-4: add panic recovery to connection.readPump() Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
refactor: remove room/broadcast step types (moved to workflow-plugin-… …rooms) Room management steps (step.ws_room_join, step.ws_room_leave, step.ws_room_list, step.ws_broadcast) are now provided by the standalone workflow-plugin-rooms package. The hub connection manager remains for ws.server core functionality. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
feat: remove JSON auto-parse from WS trigger; always set binaryPayload Set data["binaryPayload"] = msg for all frame types so the pipeline can decode protobuf directly. Keep data["message"] as a string for logging. Remove json.Unmarshal into data["payload"] — pipeline handles decoding. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
feat: export WSServerModule interface and NewWSServerModule for in-pr… …ocess embedding Adds public NewWSServerModule factory and WSServerInstance interface so host binaries can import the ws.server module directly and register its HTTP upgrade handler on the engine's HTTP router, bypassing the gRPC boundary limitation. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
PreviousNext