You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: replace inline API client with flashduty-sdk
Replace the entire duplicate API client layer in pkg/flashduty/ with
the flashduty-sdk (v0.3.0). Tool handlers are now thin wrappers that
parse MCP params, call SDK methods, and format results.
Deleted:
- pkg/flashduty/types.go (280 lines) -- all types now in SDK
- pkg/flashduty/enrichment.go (696 lines) -- all enrichment now SDK-internal
- Client struct, makeRequest, parseResponse, handleAPIError from client.go
Rewritten (22 tool handlers across 7 files):
- incidents.go, users.go, channels.go, changes.go, statuspage.go,
fields.go, templates.go -- all delegate to SDK methods
Updated:
- client.go: reduced to GetFlashdutyClientFn type alias
- context.go: creates sdk.Client with WithRequestHook for trace context
- format.go: delegates serialization to sdk.Marshal
- e2e tests: use sdk.NewClient directly
Net change: -2,392 lines. toon-go and golang.org/x/sync demoted to
indirect deps. logrus removed entirely.
0 commit comments