@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.
@@ -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
@@ -14,7 +14,7 @@ import {
14
14
  readPageContext,
15
15
  statusCommand,
16
16
  watchCommand
17
- } from "./chunk-5S7XIMSB.js";
17
+ } from "./chunk-E2KOP6ND.js";
18
18
 
19
19
  // src/cli.ts
20
20
  import { Command } from "commander";
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ import {
27
27
  updateScriptPurpose,
28
28
  watchCommand,
29
29
  writeContext
30
- } from "./chunk-5S7XIMSB.js";
30
+ } from "./chunk-E2KOP6ND.js";
31
31
  export {
32
32
  KodeApiClient,
33
33
  KodeApiError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curenorway/kode-cli",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "CLI tool for Cure Kode - manage JS/CSS scripts for Webflow sites",
5
5
  "type": "module",
6
6
  "bin": {