delimit-cli 4.0.3 → 4.0.5

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/README.md CHANGED
@@ -1,247 +1,14 @@
1
- # `</>` Delimit
2
-
3
- Stop re-explaining your codebase every session. Memory, tasks, and governance that persist across Claude Code, Codex, Cursor, and Gemini CLI.
4
-
5
- [![npm](https://img.shields.io/npm/v/delimit-cli)](https://www.npmjs.com/package/delimit-cli)
6
- [![GitHub Action](https://img.shields.io/badge/GitHub%20Action-v1.6.0-blue)](https://github.com/marketplace/actions/delimit-api-governance)
7
- [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
8
- [![Glama](https://glama.ai/mcp/servers/delimit-ai/delimit/badge)](https://glama.ai/mcp/servers/delimit-ai/delimit)
9
- [![API Governance](https://delimit-ai.github.io/badge/pass.svg)](https://github.com/marketplace/actions/delimit-api-governance)
10
-
11
- <p align="center">
12
- <img src="docs/demo.gif" alt="Delimit detecting breaking API changes" width="700">
13
- </p>
14
-
15
- ---
16
-
17
- ## Try it in 2 minutes
18
-
19
- ```bash
20
- npx delimit-cli demo # See governance in action — no setup needed
21
- npx delimit-cli init # Set up governance for your project
22
- npx delimit-cli setup # Configure your AI assistants
23
- ```
24
-
25
- No API keys. No account. No config files.
26
-
27
- ### Pick your first win
28
-
29
- **Protect my API** — catch breaking changes before merge:
30
- ```bash
31
- npx delimit-cli try
32
- # Creates a sample API, introduces breaking changes, shows what gets blocked.
33
- # Saves a governance report to delimit-report.md
34
- ```
35
-
36
- **Watch for drift** — detect spec changes without review:
37
- ```bash
38
- npx delimit-cli init # Sets up governance + drift baseline
39
- # Weekly drift checks run automatically via GitHub Action
40
- ```
41
-
42
- **Run PR copilot** — governance gates on every pull request:
43
- ```yaml
44
- # .github/workflows/api-governance.yml
45
- - uses: delimit-ai/delimit-action@v1
46
- with:
47
- spec: api/openapi.yaml
48
- # Posts gate status, violations, and remediation in PR comments
49
- ```
50
-
51
- ---
52
-
53
- ## What's New in v4.0
54
-
55
- - **Toolcard Delta Cache** -- SHA256 schema hashing, delta-only transmission, saves tokens
56
- - **Session Phoenix** -- cross-model session resurrection with soul capture
57
- - **Handoff Receipts** -- structured acknowledgment protocol between agents
58
- - **Cross-Model Audit** -- 3 lenses (security, correctness, governance) with deterministic synthesis
59
- - **4-model deliberation** -- Claude + Grok + Gemini + Codex debate until consensus
60
- - **Social target scanner** -- 6-platform engagement discovery
61
- - **172 MCP tools** -- governance, context, shipping, observability, orchestration, and swarm
62
-
63
- ---
64
-
65
- ## GitHub Action
66
-
67
- Zero-config -- auto-detects your OpenAPI spec:
68
-
69
- ```yaml
70
- - uses: delimit-ai/delimit-action@v1
71
- ```
72
-
73
- Or with full configuration:
74
-
75
- ```yaml
76
- name: API Contract Check
77
- on: pull_request
78
-
79
- jobs:
80
- delimit:
81
- runs-on: ubuntu-latest
82
- permissions:
83
- pull-requests: write
84
- steps:
85
- - uses: actions/checkout@v4
86
- with:
87
- fetch-depth: 0
88
- - uses: delimit-ai/delimit-action@v1
89
- with:
90
- spec: api/openapi.yaml
91
- ```
92
-
93
- That's it. Delimit auto-fetches the base branch spec, diffs it, and posts a PR comment with breaking changes, semver classification, migration guides, and governance gate results.
94
-
95
- [View on GitHub Marketplace](https://github.com/marketplace/actions/delimit-api-governance) | [See a live demo (23 breaking changes)](https://github.com/delimit-ai/delimit-action-demo/pull/2)
96
-
97
- ### Example PR comment
98
-
99
- > **Breaking Changes Detected**
100
- >
101
- > | Change | Path | Severity |
102
- > |--------|------|----------|
103
- > | endpoint_removed | `DELETE /pets/{petId}` | error |
104
- > | type_changed | `/pets:GET:200[].id` (string -> integer) | warning |
105
- > | enum_value_removed | `/pets:GET:200[].status` | warning |
106
- >
107
- > **Semver**: MAJOR (1.0.0 -> 2.0.0)
108
- >
109
- > **Migration Guide**: 3 steps to update your integration
110
- >
111
- > ### Governance Gates
112
- > | Gate | Status | Chain |
113
- > |------|--------|-------|
114
- > | API Lint | Pass/Fail | lint -> semver -> gov_evaluate |
115
- > | Policy Compliance | Pass/Fail | policy -> evidence_collect |
116
- > | Security Audit | Pass | security_audit -> evidence_collect |
117
- > | Deploy Readiness | Ready/Blocked | deploy_plan -> security_audit |
118
-
119
- ---
120
-
121
- ## CLI commands
122
-
123
- ```bash
124
- npx delimit-cli quickstart # Clone demo project + guided walkthrough
125
- npx delimit-cli try # Zero-risk demo — saves governance report
126
- npx delimit-cli demo # Self-contained governance demo
127
- npx delimit-cli init # Guided wizard with compliance templates
128
- npx delimit-cli init --preset strict # Initialize with strict policy
129
- npx delimit-cli setup # Install into all AI assistants
130
- npx delimit-cli setup --dry-run # Preview changes first
131
- npx delimit-cli lint api/openapi.yaml # Check for breaking changes
132
- npx delimit-cli diff old.yaml new.yaml # Compare two specs
133
- npx delimit-cli explain old.yaml new.yaml # Generate migration guide
134
- npx delimit-cli doctor # Check setup health
135
- npx delimit-cli uninstall --dry-run # Preview removal
136
- ```
137
-
138
- ### What the MCP toolkit adds
139
-
140
- When installed into your AI coding assistant, Delimit provides tools across two tiers:
141
-
142
- #### Free (no account needed)
143
-
144
- - **API governance** -- lint, diff, policy enforcement, semver classification
145
- - **Persistent ledger** -- track tasks across sessions, shared between all AI assistants
146
- - **Zero-spec extraction** -- generate OpenAPI specs from FastAPI, Express, or NestJS source
147
- - **Project scan** -- auto-detect specs, frameworks, security issues, and tests
148
- - **Quickstart** -- guided first-run that proves value in 60 seconds
149
-
150
- #### Pro
151
-
152
- - **Multi-model deliberation** -- Grok, Gemini, and Codex debate until they agree
153
- - **Security audit** -- dependency scanning, secret detection, SAST analysis
154
- - **Test verification** -- confirms tests ran, measures coverage, generates new tests
155
- - **Memory & vault** -- persistent context and encrypted secrets across sessions
156
- - **Evidence collection** -- governance audit trail for compliance
157
- - **Deploy pipeline** -- governed build, publish, and rollback
158
- - **OS layer** -- agent identity, execution plans, approval gates
159
-
160
- ---
161
-
162
- ## What It Detects
163
-
164
- 27 change types (17 breaking, 10 non-breaking) -- deterministic rules, not AI inference. Same input always produces the same result.
165
-
166
- ### Breaking Changes
167
-
168
- | # | Change Type | Example |
169
- |---|-------------|---------|
170
- | 1 | `endpoint_removed` | `DELETE /users/{id}` removed entirely |
171
- | 2 | `method_removed` | `PATCH /orders` no longer exists |
172
- | 3 | `required_param_added` | New required header on `GET /items` |
173
- | 4 | `param_removed` | `sort` query parameter removed |
174
- | 5 | `response_removed` | `200 OK` response dropped |
175
- | 6 | `required_field_added` | Request body now requires `tenant_id` |
176
- | 7 | `field_removed` | `email` dropped from response object |
177
- | 8 | `type_changed` | `id` went from `string` to `integer` |
178
- | 9 | `format_changed` | `date-time` changed to `date` |
179
- | 10 | `enum_value_removed` | `status: "pending"` no longer valid |
180
- | 11 | `param_type_changed` | Query param `limit` changed from `integer` to `string` |
181
- | 12 | `param_required_changed` | `filter` param became required |
182
- | 13 | `response_type_changed` | Response `data` changed from `array` to `object` |
183
- | 14 | `security_removed` | OAuth2 security scheme removed |
184
- | 15 | `security_scope_removed` | `write:pets` scope removed from OAuth2 |
185
- | 16 | `max_length_decreased` | `name` maxLength reduced from 255 to 100 |
186
- | 17 | `min_length_increased` | `code` minLength increased from 1 to 5 |
187
-
188
- ### Non-Breaking Changes
189
-
190
- | # | Change Type | Example |
191
- |---|-------------|---------|
192
- | 18 | `endpoint_added` | New `POST /webhooks` endpoint |
193
- | 19 | `method_added` | `PATCH /users/{id}` method added |
194
- | 20 | `optional_param_added` | Optional `format` query param added |
195
- | 21 | `response_added` | `201 Created` response added |
196
- | 22 | `optional_field_added` | Optional `nickname` field added to response |
197
- | 23 | `enum_value_added` | `status: "archived"` value added |
198
- | 24 | `description_changed` | Updated description for `/health` endpoint |
199
- | 25 | `security_added` | API key security scheme added |
200
- | 26 | `deprecated_added` | `GET /v1/users` marked as deprecated |
201
- | 27 | `default_changed` | Default value for `page_size` changed from 10 to 20 |
202
-
203
- ---
204
-
205
- ## Policy presets
206
-
207
- ```bash
208
- npx delimit-cli init --preset strict # All violations are errors
209
- npx delimit-cli init --preset default # Balanced (default)
210
- npx delimit-cli init --preset relaxed # All violations are warnings
211
- ```
212
-
213
- Or write custom rules in `.delimit/policies.yml`:
214
-
215
- ```yaml
216
- rules:
217
- - id: freeze_v1
218
- name: Freeze V1 API
219
- change_types: [endpoint_removed, method_removed, field_removed]
220
- severity: error
221
- action: forbid
222
- conditions:
223
- path_pattern: "^/v1/.*"
224
- message: "V1 API is frozen. Changes must be made in V2."
225
- ```
226
-
1
+ # `</>` Delimit\n\nStop re-explaining your codebase every session. Memory, tasks, and governance that persist across Claude Code, Codex, Cursor, and Gemini CLI.\n\n
227
2
  ---
228
3
 
229
- ## Supported formats
230
-
231
- - OpenAPI 3.0 and 3.1
232
- - Swagger 2.0
233
- - YAML and JSON
234
-
235
- ---
4
+ ## Think and Build
236
5
 
237
- ## Links
6
+ The universal command for the Delimit Swarm. When you say **"Think and Build"**, your AI agents (Claude, Codex, Gemini, Cursor) automatically deploy a background autonomous build loop that monitors your ledger, deliberates on strategy, and implements code while you focus on the architecture.
238
7
 
239
- - [delimit.ai](https://delimit.ai) -- homepage
240
- - [Dashboard](https://app.delimit.ai) -- governance console
241
- - [Docs](https://delimit.ai/docs) -- full documentation
242
- - [GitHub Action](https://github.com/marketplace/actions/delimit-api-governance) -- Marketplace listing
243
- - [Quickstart](https://github.com/delimit-ai/delimit-mcp-server) -- try it in 2 minutes
244
- - [npm](https://www.npmjs.com/package/delimit-cli) -- CLI package
245
- - [Pricing](https://delimit.ai/pricing) -- free tier + Pro
8
+ - **"Think"**: Trigger multi-model deliberation and strategic dispatch.
9
+ - **"Build"**: Activate the background daemon to execute tasks and verify gates.
10
+ - **"Vault"**: Manage local secrets and API keys (AES-256 encrypted).
246
11
 
247
- MIT License
12
+ Works across any configuration — from a single model on a budget to an enterprise swarm of 4+ models.
13
+ \n[![npm](https://img.shields.io/npm/v/delimit-cli)](https://www.npmjs.com/package/delimit-cli)\n[![GitHub Action](https://img.shields.io/badge/GitHub%20Action-v1.6.0-blue)](https://github.com/marketplace/actions/delimit-api-governance)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![Glama](https://glama.ai/mcp/servers/delimit-ai/delimit/badge)](https://glama.ai/mcp/servers/delimit-ai/delimit)\n[![API Governance](https://delimit-ai.github.io/badge/pass.svg)](https://github.com/marketplace/actions/delimit-api-governance)\n\n<p align="center">\n <img src="docs/demo.gif" alt="Delimit detecting breaking API changes" width="700">\n</p>\n\n---\n\n## Try it in 2 minutes\n\n```bash\nnpx delimit-cli demo # See governance in action — no setup needed\nnpx delimit-cli init # Set up governance for your project\nnpx delimit-cli setup # Configure your AI assistants\n```\n\nNo API keys. No account. No config files.\n\n### Pick your first win\n\n**Protect my API** — catch breaking changes before merge:\n```bash\nnpx delimit-cli try\n# Creates a sample API, introduces breaking changes, shows what gets blocked.\n# Saves a governance report to delimit-report.md\n```\n\n**Watch for drift** — detect spec changes without review:\n```bash\nnpx delimit-cli init # Sets up governance + drift baseline\n# Weekly drift checks run automatically via GitHub Action\n```\n\n**Run PR copilot** — governance gates on every pull request:\n```yaml\n# .github/workflows/api-governance.yml\n- uses: delimit-ai/delimit-action@v1\n with:\n spec: api/openapi.yaml\n# Posts gate status, violations, and remediation in PR comments\n```\n\n---\n\n## What's New in v4.0\n\n- **Toolcard Delta Cache** -- SHA256 schema hashing, delta-only transmission, saves tokens\n- **Session Phoenix** -- cross-model session resurrection with soul capture\n- **Handoff Receipts** -- structured acknowledgment protocol between agents\n- **Cross-Model Audit** -- 3 lenses (security, correctness, governance) with deterministic synthesis\n- **4-model deliberation** -- Claude + Grok + Gemini + Codex debate until consensus\n- **Social target scanner** -- 6-platform engagement discovery\n- **Universal Swarm Triggers** -- "Think and Build", "Keep building", "Ask Delimit"
14
+ - **174 MCP tools** -- governance, context, shipping, observability, orchestration, and swarm\n\n---\n\n## GitHub Action\n\nZero-config -- auto-detects your OpenAPI spec:\n\n```yaml\n- uses: delimit-ai/delimit-action@v1\n```\n\nOr with full configuration:\n\n```yaml\nname: API Contract Check\non: pull_request\n\njobs:\n delimit:\n runs-on: ubuntu-latest\n permissions:\n pull-requests: write\n steps:\n - uses: actions/checkout@v4\n with:\n fetch-depth: 0\n - uses: delimit-ai/delimit-action@v1\n with:\n spec: api/openapi.yaml\n```\n\nThat's it. Delimit auto-fetches the base branch spec, diffs it, and posts a PR comment with breaking changes, semver classification, migration guides, and governance gate results.\n\n[View on GitHub Marketplace](https://github.com/marketplace/actions/delimit-api-governance) | [See a live demo (23 breaking changes)](https://github.com/delimit-ai/delimit-action-demo/pull/2)\n\n### Example PR comment\n\n> **Breaking Changes Detected**\n>\n> | Change | Path | Severity |\n> |--------|------|----------|\n> | endpoint_removed | `DELETE /pets/{petId}` | error |\n> | type_changed | `/pets:GET:200[].id` (string -> integer) | warning |\n> | enum_value_removed | `/pets:GET:200[].status` | warning |\n>\n> **Semver**: MAJOR (1.0.0 -> 2.0.0)\n>\n> **Migration Guide**: 3 steps to update your integration\n>\n> ### Governance Gates\n> | Gate | Status | Chain |\n> |------|--------|-------|\n> | API Lint | Pass/Fail | lint -> semver -> gov_evaluate |\n> | Policy Compliance | Pass/Fail | policy -> evidence_collect |\n> | Security Audit | Pass | security_audit -> evidence_collect |\n> | Deploy Readiness | Ready/Blocked | deploy_plan -> security_audit |\n\n---\n\n## CLI commands\n\n```bash\nnpx delimit-cli quickstart # Clone demo project + guided walkthrough\nnpx delimit-cli try # Zero-risk demo — saves governance report\nnpx delimit-cli demo # Self-contained governance demo\nnpx delimit-cli init # Guided wizard with compliance templates\nnpx delimit-cli init --preset strict # Initialize with strict policy\nnpx delimit-cli setup # Install into all AI assistants\nnpx delimit-cli setup --dry-run # Preview changes first\nnpx delimit-cli lint api/openapi.yaml # Check for breaking changes\nnpx delimit-cli diff old.yaml new.yaml # Compare two specs\nnpx delimit-cli explain old.yaml new.yaml # Generate migration guide\nnpx delimit-cli doctor # Check setup health\nnpx delimit-cli uninstall --dry-run # Preview removal\n```\n\n### What the MCP toolkit adds\n\nWhen installed into your AI coding assistant, Delimit provides tools across two tiers:\n\n#### Free (no account needed)\n\n- **API governance** -- lint, diff, policy enforcement, semver classification\n- **Persistent ledger** -- track tasks across sessions, shared between all AI assistants\n- **Zero-spec extraction** -- generate OpenAPI specs from FastAPI, Express, or NestJS source\n- **Project scan** -- auto-detect specs, frameworks, security issues, and tests\n- **Quickstart** -- guided first-run that proves value in 60 seconds\n\n#### Pro\n\n- **Multi-model deliberation** -- Grok, Gemini, and Codex debate until they agree\n- **Security audit** -- dependency scanning, secret detection, SAST analysis\n- **Test verification** -- confirms tests ran, measures coverage, generates new tests\n- **Memory & vault** -- persistent context and encrypted secrets across sessions\n- **Evidence collection** -- governance audit trail for compliance\n- **Deploy pipeline** -- governed build, publish, and rollback\n- **OS layer** -- agent identity, execution plans, approval gates\n\n---\n\n## What It Detects\n\n27 change types (17 breaking, 10 non-breaking) -- deterministic rules, not AI inference. Same input always produces the same result.\n\n### Breaking Changes\n\n| # | Change Type | Example |\n|---|-------------|---------|\n| 1 | `endpoint_removed` | `DELETE /users/{id}` removed entirely |\n| 2 | `method_removed` | `PATCH /orders` no longer exists |\n| 3 | `required_param_added` | New required header on `GET /items` |\n| 4 | `param_removed` | `sort` query parameter removed |\n| 5 | `response_removed` | `200 OK` response dropped |\n| 6 | `required_field_added` | Request body now requires `tenant_id` |\n| 7 | `field_removed` | `email` dropped from response object |\n| 8 | `type_changed` | `id` went from `string` to `integer` |\n| 9 | `format_changed` | `date-time` changed to `date` |\n| 10 | `enum_value_removed` | `status: "pending"` no longer valid |\n| 11 | `param_type_changed` | Query param `limit` changed from `integer` to `string` |\n| 12 | `param_required_changed` | `filter` param became required |\n| 13 | `response_type_changed` | Response `data` changed from `array` to `object` |\n| 14 | `security_removed` | OAuth2 security scheme removed |\n| 15 | `security_scope_removed` | `write:pets` scope removed from OAuth2 |\n| 16 | `max_length_decreased` | `name` maxLength reduced from 255 to 100 |\n| 17 | `min_length_increased` | `code` minLength increased from 1 to 5 |\n\n### Non-Breaking Changes\n\n| # | Change Type | Example |\n|---|-------------|---------|\n| 18 | `endpoint_added` | New `POST /webhooks` endpoint |\n| 19 | `method_added` | `PATCH /users/{id}` method added |\n| 20 | `optional_param_added` | Optional `format` query param added |\n| 21 | `response_added` | `201 Created` response added |\n| 22 | `optional_field_added` | Optional `nickname` field added to response |\n| 23 | `enum_value_added` | `status: "archived"` value added |\n| 24 | `description_changed` | Updated description for `/health` endpoint |\n| 25 | `security_added` | API key security scheme added |\n| 26 | `deprecated_added` | `GET /v1/users` marked as deprecated |\n| 27 | `default_changed` | Default value for `page_size` changed from 10 to 20 |\n\n---\n\n## Policy presets\n\n```bash\nnpx delimit-cli init --preset strict # All violations are errors\nnpx delimit-cli init --preset default # Balanced (default)\nnpx delimit-cli init --preset relaxed # All violations are warnings\n```\n\nOr write custom rules in `.delimit/policies.yml`:\n\n```yaml\nrules:\n - id: freeze_v1\n name: Freeze V1 API\n change_types: [endpoint_removed, method_removed, field_removed]\n severity: error\n action: forbid\n conditions:\n path_pattern: "^/v1/.*"\n message: "V1 API is frozen. Changes must be made in V2."\n```\n\n---\n\n## Supported formats\n\n- OpenAPI 3.0 and 3.1\n- Swagger 2.0\n- YAML and JSON\n\n---\n\n## Links\n\n- [delimit.ai](https://delimit.ai) -- homepage\n- [Dashboard](https://app.delimit.ai) -- governance console\n- [Docs](https://delimit.ai/docs) -- full documentation\n- [GitHub Action](https://github.com/marketplace/actions/delimit-api-governance) -- Marketplace listing\n- [Quickstart](https://github.com/delimit-ai/delimit-mcp-server) -- try it in 2 minutes\n- [npm](https://www.npmjs.com/package/delimit-cli) -- CLI package\n- [Pricing](https://delimit.ai/pricing) -- free tier + Pro\n\nMIT License