Skip to content

Commit 58d9f8d

Browse files
authored
[codex] move incident adapters to SDK (#9)
* feat: add incident lifecycle and war-room commands * refactor: move incident adapters to sdk * chore: bump flashduty sdk * chore: use flashduty sdk v0.9.0 * docs: improve incident command help
1 parent 2cdd521 commit 58d9f8d

7 files changed

Lines changed: 1178 additions & 6 deletions

File tree

AGENTS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Agent Instructions
2+
3+
## Flashduty SDK Boundary
4+
5+
- Do not implement Flashduty public API endpoint clients directly in this CLI repository.
6+
- If a CLI command needs an endpoint that is missing from `github.com/flashcatcloud/flashduty-sdk`, add the typed adapter to `flashduty-sdk` first, with focused SDK tests.
7+
- The CLI should consume SDK methods and keep only command parsing, output formatting, and CLI-specific orchestration.
8+
- Existing raw HTTP adapters in the CLI are migration debt. Prefer removing them as SDK coverage catches up.

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ module github.com/flashcatcloud/flashduty-cli
33
go 1.25.1
44

55
require (
6-
github.com/flashcatcloud/flashduty-sdk v0.8.1-0.20260514094839-5405a3ab38b1
6+
github.com/flashcatcloud/flashduty-sdk v0.9.0
77
github.com/mattn/go-runewidth v0.0.23
88
github.com/spf13/cobra v1.10.2
9+
github.com/spf13/pflag v1.0.9
910
golang.org/x/term v0.42.0
1011
gopkg.in/yaml.v3 v3.0.1
1112
)
1213

1314
require (
1415
github.com/clipperhouse/uax29/v2 v2.2.0 // indirect
1516
github.com/inconshreveable/mousetrap v1.1.0 // indirect
16-
github.com/spf13/pflag v1.0.9 // indirect
1717
github.com/toon-format/toon-go v0.0.0-20251202084852-7ca0e27c4e8c // indirect
1818
golang.org/x/sync v0.19.0 // indirect
1919
golang.org/x/sys v0.43.0 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
github.com/clipperhouse/uax29/v2 v2.2.0 h1:ChwIKnQN3kcZteTXMgb1wztSgaU+ZemkgWdohwgs8tY=
22
github.com/clipperhouse/uax29/v2 v2.2.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM=
33
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
4-
github.com/flashcatcloud/flashduty-sdk v0.8.1-0.20260514094839-5405a3ab38b1 h1:Q9FJkGSAQCXCjjnjS18QYMNpHT8O27oRj9kd13tUeiI=
5-
github.com/flashcatcloud/flashduty-sdk v0.8.1-0.20260514094839-5405a3ab38b1/go.mod h1:dG4eJfdZaj4jNBMwEexbfK/3PmcIMhNeJ88L/DcZzUY=
4+
github.com/flashcatcloud/flashduty-sdk v0.9.0 h1:gEBt9ZJ8HbDc22U1V4cWPitxlPxfztqKIe2x6TyRqJw=
5+
github.com/flashcatcloud/flashduty-sdk v0.9.0/go.mod h1:dG4eJfdZaj4jNBMwEexbfK/3PmcIMhNeJ88L/DcZzUY=
66
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
77
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
88
github.com/mattn/go-runewidth v0.0.23 h1:7ykA0T0jkPpzSvMS5i9uoNn2Xy3R383f9HDx3RybWcw=

0 commit comments

Comments
 (0)