@curenorway/kode-cli 1.10.0 → 1.12.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/README.md CHANGED
@@ -4,12 +4,14 @@ Command-line tool for managing JavaScript and CSS scripts for Webflow sites via
4
4
 
5
5
  ## Features
6
6
 
7
- - **Pull/Push scripts** - Sync scripts between local files and remote CDN
7
+ - **Pull/Push scripts** - Sync scripts between local files and remote CDN with conflict detection
8
+ - **Sync awareness** - Staleness indicators show when local state is out of date
9
+ - **Deploy dry-run** - Preview what will be deployed before executing
10
+ - **Doctor command** - Diagnose configuration issues and check for CLI updates
8
11
  - **Watch mode** - Auto-sync on file changes with retry on failure
9
12
  - **Staging/Production** - Separate environments with explicit production enable
10
13
  - **Rollback** - Quick recovery to previous deployments
11
- - **AI Context** - Generate and manage context for AI agents
12
- - **Page Context Caching** - Save page structures for AI development
14
+ - **AI-ready** - Auto-generates KODE.md documentation for AI agents
13
15
  - **MCP Integration** - Works with Cure Kode MCP for AI agents
14
16
 
15
17
  ## Installation
@@ -53,9 +55,10 @@ kode init
53
55
 
54
56
  Creates:
55
57
  - `.cure-kode/config.json` - Site configuration and API key
58
+ - `.cure-kode/KODE.md` - Auto-generated documentation (scripts, pages, commands)
56
59
  - `.cure-kode/context.md` - AI context file
57
60
  - `.cure-kode-scripts/` - Scripts directory
58
- - `CLAUDE.md` - AI agent instructions (with metadata documentation)
61
+ - `CLAUDE.md` - Reference to KODE.md (prepended, never overwrites existing content)
59
62
  - `.mcp.json` - MCP server configuration (cure-kode, webflow, playwright)
60
63
 
61
64
  ### `kode pull`
@@ -104,9 +107,9 @@ Deploy scripts to staging or production.
104
107
 
105
108
  ```bash
106
109
  kode deploy # Deploy to staging (default)
110
+ kode deploy --dry-run # Preview deployment without executing
107
111
  kode deploy --promote # Promote staging to production
108
112
  kode deploy --force # Force release stale deploy lock
109
- kode deploy -n "Release v2" # Deploy with notes
110
113
  ```
111
114
 
112
115
  **Note:** Production must be enabled before promoting. See `kode production`.
@@ -165,7 +168,7 @@ kode context --json # Output as JSON
165
168
 
166
169
  ### `kode status`
167
170
 
168
- Show current project status.
171
+ Show current project status with staleness indicators.
169
172
 
170
173
  ```bash
171
174
  kode status
@@ -174,9 +177,44 @@ kode status
174
177
  Shows:
175
178
  - Site info and CDN URL
176
179
  - Production enabled state
177
- - Script sync status
180
+ - Script sync status with staleness warnings
181
+ - Per-script indicators: modified locally, server updated, conflicts
178
182
  - Deployment versions
179
183
 
184
+ ### `kode doctor`
185
+
186
+ Diagnose configuration and environment issues.
187
+
188
+ ```bash
189
+ kode doctor
190
+ ```
191
+
192
+ Checks:
193
+ - Project configuration and API key validity
194
+ - Network connectivity and API access
195
+ - MCP server configuration
196
+ - KODE.md and CLAUDE.md setup
197
+ - Security (.gitignore for API key)
198
+ - Sync state staleness
199
+ - CLI version and available updates
200
+
201
+ ### `kode diff <script>`
202
+
203
+ Show differences between local and remote script versions.
204
+
205
+ ```bash
206
+ kode diff my-script # Compare local vs remote
207
+ ```
208
+
209
+ ### `kode sync`
210
+
211
+ Bidirectional sync with conflict detection.
212
+
213
+ ```bash
214
+ kode sync # Sync both directions
215
+ kode sync --dry-run # Preview what would change
216
+ ```
217
+
180
218
  ## Configuration
181
219
 
182
220
  ### Project Config (`.cure-kode/config.json`)
@@ -206,15 +244,17 @@ Default: `.cure-kode-scripts/` (avoids conflicts with AI-generated `scripts/` fo
206
244
  ```
207
245
  your-project/
208
246
  ├── .cure-kode/
209
- │ ├── config.json # Project configuration
247
+ │ ├── config.json # Project configuration (gitignored)
248
+ │ ├── scripts.json # Sync state for conflict detection
249
+ │ ├── KODE.md # Auto-generated documentation
210
250
  │ ├── context.md # AI context (notes, discoveries)
211
251
  │ └── pages/ # Cached page contexts
212
252
  ├── .cure-kode-scripts/ # Your scripts directory
213
- │ ├── init.js
214
- │ ├── tracking.js
253
+ │ ├── main.js
254
+ │ ├── form-handler.js
215
255
  │ └── styles.css
216
256
  ├── .mcp.json # MCP server configuration
217
- └── CLAUDE.md # AI agent instructions
257
+ └── CLAUDE.md # Reference to KODE.md (your content preserved)
218
258
  ```
219
259
 
220
260
  ## Workflow Examples