@tekyzinc/gsd-t 2.20.0 → 2.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to GSD-T are documented here. Updated with each release.
4
4
 
5
+ ## [2.20.1] - 2026-02-16
6
+
7
+ ### Added
8
+ - **API Documentation Guard (Swagger/OpenAPI)**: Every API endpoint must be documented in Swagger/OpenAPI spec — no exceptions. Auto-detects framework and installs appropriate Swagger integration. Swagger URL must be published in CLAUDE.md, README.md, and docs/infrastructure.md
9
+ - Pre-Commit Gate now checks for Swagger spec updates on any API endpoint change
10
+
5
11
  ## [2.20.0] - 2026-02-16
6
12
 
7
13
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekyzinc/gsd-t",
3
- "version": "2.20.0",
3
+ "version": "2.20.1",
4
4
  "description": "GSD-T: Contract-Driven Development for Claude Code — 41 slash commands with backlog management, impact analysis, test sync, and milestone archival",
5
5
  "author": "Tekyz, Inc.",
6
6
  "license": "MIT",
@@ -201,6 +201,25 @@ Before any command that involves testing (`gsd-t-execute`, `gsd-t-test-sync`, `g
201
201
 
202
202
  Playwright must always be ready before any testing occurs. Do not skip this check. Do not defer setup to "later."
203
203
 
204
+ ## API Documentation Guard (Swagger/OpenAPI)
205
+
206
+ **Every API endpoint MUST be documented in a Swagger/OpenAPI spec. No exceptions.**
207
+
208
+ When any GSD-T command creates or modifies an API endpoint:
209
+ 1. **If no Swagger/OpenAPI spec exists**: Set one up immediately
210
+ - Detect the framework (Express, Fastify, Hono, Django, FastAPI, etc.)
211
+ - Install the appropriate Swagger integration (e.g., `swagger-jsdoc` + `swagger-ui-express`, `@fastify/swagger`, FastAPI's built-in OpenAPI)
212
+ - Create the OpenAPI spec file or configure auto-generation from code
213
+ - Add a `/docs` or `/api-docs` route serving the Swagger UI
214
+ 2. **Update the spec**: Every new or changed endpoint must be reflected in the Swagger/OpenAPI spec — routes, request/response schemas, auth requirements, error responses
215
+ 3. **Publish the Swagger URL**: The Swagger/API docs URL MUST appear in:
216
+ - `CLAUDE.md` — under Documentation or Infrastructure section
217
+ - `README.md` — under API section or Getting Started
218
+ - `docs/infrastructure.md` — under API documentation
219
+ 4. **Verify**: After any API change, confirm the Swagger UI loads and reflects the current endpoints
220
+
221
+ This applies during: `gsd-t-execute`, `gsd-t-quick`, `gsd-t-integrate`, `gsd-t-wave`, and any command that touches API code.
222
+
204
223
  ## Prime Rule
205
224
  KEEP GOING. Only stop for:
206
225
  1. Unrecoverable errors after 2 fix attempts
@@ -219,8 +238,10 @@ BEFORE EVERY COMMIT:
219
238
  │ Compare against "Expected branch" in project CLAUDE.md
220
239
  │ WRONG BRANCH → STOP. Do NOT commit. Switch to the correct branch first.
221
240
  │ No guard set → Proceed (but warn user to set one)
222
- ├── Did I change an API endpoint or response shape?
241
+ ├── Did I create or change an API endpoint or response shape?
223
242
  │ YES → Update .gsd-t/contracts/api-contract.md
243
+ │ YES → Update Swagger/OpenAPI spec (see API Documentation Guard below)
244
+ │ YES → Verify Swagger URL is in CLAUDE.md and README.md
224
245
  ├── Did I change the database schema?
225
246
  │ YES → Update .gsd-t/contracts/schema-contract.md AND docs/schema.md
226
247
  ├── Did I add/change a UI component interface?