Skip to content

feat: adopt typed timestamps from flashduty-sdk (RFC3339 output)#60

Merged
ysyneu merged 2 commits into
mainfrom
feat/adopt-sdk-timestamp
May 29, 2026
Merged

feat: adopt typed timestamps from flashduty-sdk (RFC3339 output)#60
ysyneu merged 2 commits into
mainfrom
feat/adopt-sdk-timestamp

Conversation

@ysyneu
Copy link
Copy Markdown
Collaborator

@ysyneu ysyneu commented May 29, 2026

What

Bump flashduty-sdk to the Timestamp/TimestampMilli release. The MCP server marshals SDK results straight through MarshalResultsdk.Marshal, so tool output now renders RFC3339 (JSON and TOON) with zero source changes — the new types carry their own MarshalJSON/String().

Depends on flashduty-sdk PR #20 (flashcatcloud/flashduty-sdk#20). go.mod pins the SDK at the PR branch commit via pseudo-version; will re-pin to the tagged/merged SHA once #20 lands.

Changes

  • go.mod / go.sum — SDK dependency bump.
  • pkg/flashduty/marshal_time_test.go (new) — regression test pinning RFC3339 rendering through both JSON and TOON output paths.

Verification

  • go build ./... && go vet ./... && go test -race ./... — all green
  • gofmt -l on changed files — clean
  • golangci-lint run ./... (v2.11.4) — 0 issues

Note (out of scope)

Same pre-existing stale golangci-lint Makefile pin as the CLI repo; CI is unaffected. Left untouched to keep this PR scoped.

Bump flashduty-sdk to the Timestamp/TimestampMilli release. mcp marshals SDK
results straight through MarshalResult -> sdk.Marshal, so tool output now
renders RFC3339 (JSON and TOON) with no source change. Add a regression test
pinning that behavior.
@ysyneu ysyneu merged commit ed09291 into main May 29, 2026
13 checks passed
@ysyneu ysyneu deleted the feat/adopt-sdk-timestamp branch May 29, 2026 04:15
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