@curenorway/kode-cli 1.3.0 → 1.3.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/dist/{chunk-5S7XIMSB.js → chunk-E2KOP6ND.js} +14 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -410,10 +410,23 @@ Add this to Webflow \u2192 Project Settings \u2192 Custom Code \u2192 Footer Cod
|
|
|
410
410
|
| \`kode deploy --env production\` | Deploy to production |
|
|
411
411
|
| \`kode html <url> --save\` | Analyze and cache page HTML structure |
|
|
412
412
|
|
|
413
|
+
### Script Loading
|
|
414
|
+
|
|
415
|
+
Scripts have two properties: **scope** and **autoLoad**.
|
|
416
|
+
|
|
417
|
+
| Scope | Auto-Load | Behavior |
|
|
418
|
+
|-------|-----------|----------|
|
|
419
|
+
| global + true | **Default**. Inlined into init.js, runs on all pages |
|
|
420
|
+
| global + false | Not loaded. Call \`CK.loadScript('slug')\` manually |
|
|
421
|
+
| page-specific + true | Loaded when URL matches page patterns |
|
|
422
|
+
| page-specific + false | Not loaded. Call \`CK.loadScript('slug')\` manually |
|
|
423
|
+
|
|
424
|
+
**CLI flags**: \`kode push --auto-load\` or \`kode push --no-auto-load\`
|
|
425
|
+
|
|
413
426
|
### Context
|
|
414
427
|
|
|
415
428
|
**Read \`.cure-kode/context.md\` before working on scripts** - it contains:
|
|
416
|
-
- Script inventory with purposes
|
|
429
|
+
- Script inventory with purposes and auto-load status
|
|
417
430
|
- Cached page structures (sections, CTAs, forms)
|
|
418
431
|
- Notes from previous sessions
|
|
419
432
|
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED