@curenorway/kode-cli 1.15.0 → 1.15.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 +22 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,7 @@ Command-line tool for managing JavaScript and CSS scripts for Webflow sites via
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
+
- **Webflow Auto-Inject** - Automatically injects init.js into Webflow `<head>` via Custom Code API during init
|
|
7
8
|
- **Pull/Push scripts** - Sync scripts between local files and remote CDN with conflict detection
|
|
8
9
|
- **Sync awareness** - Staleness indicators show when local state is out of date
|
|
9
10
|
- **Deploy dry-run** - Preview what will be deployed before executing
|
|
@@ -61,6 +62,8 @@ Creates:
|
|
|
61
62
|
- `CLAUDE.md` - Reference to KODE.md (prepended, never overwrites existing content)
|
|
62
63
|
- `.mcp.json` - MCP server configuration (cure-kode, webflow, playwright)
|
|
63
64
|
|
|
65
|
+
Automatically registers and injects init.js into the Webflow site's `<head>` via the Custom Code API. If injection fails, it falls back to showing the manual embed code.
|
|
66
|
+
|
|
64
67
|
### `kode pull`
|
|
65
68
|
|
|
66
69
|
Download scripts from remote to your local scripts directory.
|
|
@@ -215,6 +218,25 @@ kode sync # Sync both directions
|
|
|
215
218
|
kode sync --dry-run # Preview what would change
|
|
216
219
|
```
|
|
217
220
|
|
|
221
|
+
### `kode webflow`
|
|
222
|
+
|
|
223
|
+
Manage the Webflow Custom Code integration. During `kode init`, the init.js script is automatically injected into Webflow's `<head>` via the Custom Code API. These commands let you manage it afterwards.
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
kode webflow status # Check if init.js is injected (default)
|
|
227
|
+
kode webflow inject # Inject init.js into Webflow <head>
|
|
228
|
+
kode webflow inject --location footer # Inject into footer instead
|
|
229
|
+
kode webflow remove # Remove init.js from Webflow
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
**How it works:**
|
|
233
|
+
1. Registers init.js as a hosted script with Webflow
|
|
234
|
+
2. Applies it to the site's `<head>` via the Custom Code API
|
|
235
|
+
3. Preserves any other scripts already managed by the API
|
|
236
|
+
4. Does not affect manually-added code in the Webflow Designer
|
|
237
|
+
|
|
238
|
+
**Note:** After inject/remove, you must **publish** the Webflow site for changes to take effect.
|
|
239
|
+
|
|
218
240
|
## Configuration
|
|
219
241
|
|
|
220
242
|
### Project Config (`.cure-kode/config.json`)
|