micro-contracts 0.17.14 → 0.17.16

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Contract-first OpenAPI toolchain for TypeScript Web/API systems. Generates contract packages, server routes, and frontend clients from OpenAPI specifications with enforceable guardrails.
4
4
 
5
- **Version:** 0.17.14
5
+ **Version:** 0.17.16
6
6
 
7
7
  ## Table of Contents
8
8
 
@@ -65,8 +65,8 @@ micro-contracts generate --force
65
65
  | `--config` | -c | No | | Path to config file (micro-contracts.config.yaml). |
66
66
  | `--module` | -m | No | | Module names, comma-separated. Generates all modules if omitted. |
67
67
  | `--contracts-only` | | No | `false` | Generate contract packages only. |
68
- | `--server-only` | | No | `false` | Generate server routes only. |
69
- | `--frontend-only` | | No | `false` | Generate frontend clients only. |
68
+ | `--server-only` | | No | `false` | Generate server outputs only: outputs whose id contains 'server', plus the built-in server section. Fails when no output matches. |
69
+ | `--frontend-only` | | No | `false` | Generate frontend outputs only: outputs whose id contains 'frontend' or 'client', plus the built-in frontend section. Fails when no output matches. |
70
70
  | `--docs-only` | | No | `false` | Generate documentation only. |
71
71
  | `--skip-lint` | | No | `false` | Skip Spectral linting before generation. |
72
72
  | `--manifest` | | No | `true` | Generate manifest after generation. Enabled by default when guardrails.yaml has a generated section. Use --no-manifest to disable. |
@@ -323,8 +323,8 @@ micro-contracts pipeline --contracts-only --skip-lint
323
323
  | `--manifest` | | No | `true` | Generate manifest after generation. Enabled by default. Use --no-manifest to disable. |
324
324
  | `--skip-lint` | | No | `false` | Skip Spectral linting before generation. |
325
325
  | `--contracts-only` | | No | `false` | Generate contract packages only. |
326
- | `--server-only` | | No | `false` | Generate server routes only. |
327
- | `--frontend-only` | | No | `false` | Generate frontend clients only. |
326
+ | `--server-only` | | No | `false` | Generate server outputs only: outputs whose id contains 'server', plus the built-in server section. Fails when no output matches. |
327
+ | `--frontend-only` | | No | `false` | Generate frontend outputs only: outputs whose id contains 'frontend' or 'client', plus the built-in frontend section. Fails when no output matches. |
328
328
  | `--docs-only` | | No | `false` | Generate documentation only. |
329
329
  | `--force` | | No | `false` | Bypass input hash cache and always regenerate. |
330
330
  | `--cache` | | No | `true` | Enable input hash caching. Enabled by default. Use --no-cache to disable both reading and writing cache. |
@@ -336,7 +336,7 @@ generated:
336
336
  # Gate 5: Doc Consistency & Static Analysis
337
337
  # - docs-sync: Markdown Sync (embedoc)
338
338
  # - docs-links: Links Valid
339
- # - security (built-in): CodeQL static analysis
339
+ # Note: CodeQL runs as a separate CI job (see .github/workflows/)
340
340
  #
341
341
  # Placeholders:
342
342
  # {files} - space-separated list of target files (auto-detected)
@@ -571,6 +571,7 @@ jobs:
571
571
  ```json
572
572
  "scripts": {
573
573
  "generate": "node ../dist/cli.js generate",
574
+ "pipeline": "node ../dist/cli.js pipeline",
574
575
 
575
576
  "check": "node ../dist/cli.js check",
576
577
  "check:all": "node ../dist/cli.js check",
@@ -608,7 +609,6 @@ jobs:
608
609
  "server:install": "cd server && npm install",
609
610
  "frontend:install": "cd frontend && npm install",
610
611
  "server:dev": "cd server && PORT=3001 npm run dev",
611
- "frontend:dev": "cd frontend && VITE_API_BASE_URL=http://localhost:3001 npm run dev -- --port 5173",
612
612
  ```
613
613
 
614
614
  📄 Source: [`package.json`](../examples/package.json) (lines 7-46)
@@ -462,6 +462,7 @@ export function useHomePageEvents() {
462
462
  | `SCREEN_MISSING_NAME` | Error | `x-screen-id` present but `x-screen-name` missing |
463
463
  | `SCREEN_MISSING_OPERATION_ID` | Error | Screen operation missing `operationId` |
464
464
  | `SCREEN_INVALID_X_EVENT` | Error | `x-event` is not a string, `{name}` object, or `{$ref}` |
465
+ | `SCREEN_UNKNOWN_EVENT_REF` | Error | `x-event` `$ref` has no matching `components.x-event-defs` entry |
465
466
  | `SCREEN_CONFLICTING_EVENT_DEFS` | Error | `x-events` and `x-event` coexist on the same operation |
466
467
  | `SCREEN_INVALID_INTERACTIONS` | Error | `x-interactions` is not an array |
467
468
  | `SCREEN_INVALID_INTERACTION` | Error | `x-interactions` entry missing `name` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "micro-contracts",
3
- "version": "0.17.14",
3
+ "version": "0.17.16",
4
4
  "description": "Contract-first OpenAPI toolchain that keeps TypeScript UI and microservices aligned via code generation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",