@curenorway/kode-cli 1.1.0 → 1.1.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.
@@ -360,24 +360,56 @@ function upsertPage(projectRoot, page, agent = "kode html") {
360
360
  }
361
361
  function generateClaudeMdMinimal(siteName, siteSlug) {
362
362
  const slug = siteSlug || "your-site-slug";
363
- return `## Cure Kode (${siteName})
363
+ return `## Cure Kode: ${siteName}
364
364
 
365
- This project uses **Cure Kode** (internal Cure CDN tool) for Webflow script management.
365
+ ### What is Cure Kode?
366
+
367
+ Cure Kode is an **internal CDN tool by Cure Norway** for managing JavaScript/CSS on Webflow sites.
368
+
369
+ **IMPORTANT**: This is NOT a public product. Do NOT search the web for documentation - all info is here.
370
+
371
+ **How it works**:
372
+ 1. Scripts live locally in the \`scripts/\` folder (or configured folder)
373
+ 2. \`kode push\` uploads scripts to Cure's CDN at \`app.cure.no\`
374
+ 3. \`kode deploy\` makes them live on staging or production
375
+ 4. A single \`init.js\` script tag in Webflow loads all your scripts
376
+
377
+ ### CDN URL
378
+
379
+ Add this to Webflow \u2192 Project Settings \u2192 Custom Code \u2192 Footer Code:
366
380
 
367
- **CDN URL** (add to Webflow \u2192 Project Settings \u2192 Custom Code \u2192 Footer):
368
381
  \`\`\`html
369
382
  <script async src="https://app.cure.no/api/cdn/${slug}/init.js"></script>
370
383
  \`\`\`
371
384
 
372
- **Commands**:
373
- - \`kode pull\` - Download scripts from remote
374
- - \`kode push\` - Upload local scripts
375
- - \`kode deploy --env staging\` - Deploy to staging
376
- - \`kode deploy --env production\` - Deploy to production
377
- - \`kode status\` - Show sync status and CDN URLs
378
- - \`kode html <url> --save\` - Cache page structure for AI context
385
+ ### Workflow
386
+
387
+ 1. \`kode pull\` - Download latest scripts from remote
388
+ 2. \`kode status\` - Check what's changed, see CDN URL
389
+ 3. Edit scripts locally
390
+ 4. \`kode push\` - Upload changes
391
+ 5. \`kode deploy --env staging\` - Deploy to staging for testing
392
+ 6. \`kode deploy --env production\` - Deploy to production when ready
393
+
394
+ ### Commands
395
+
396
+ | Command | Description |
397
+ |---------|-------------|
398
+ | \`kode pull\` | Download scripts from remote |
399
+ | \`kode push\` | Upload local scripts |
400
+ | \`kode status\` | Show sync status and CDN URL |
401
+ | \`kode deploy --env staging\` | Deploy to staging |
402
+ | \`kode deploy --env production\` | Deploy to production |
403
+ | \`kode html <url> --save\` | Analyze and cache page HTML structure |
404
+
405
+ ### Context
406
+
407
+ **Read \`.cure-kode/context.md\` before working on scripts** - it contains:
408
+ - Script inventory with purposes
409
+ - Cached page structures (sections, CTAs, forms)
410
+ - Notes from previous sessions
379
411
 
380
- **Context**: Read \`.cure-kode/context.md\` before working on scripts.
412
+ Update context.md after your session with discoveries and changes.
381
413
 
382
414
  `;
383
415
  }
package/dist/cli.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  readPageContext,
14
14
  statusCommand,
15
15
  watchCommand
16
- } from "./chunk-IAF3LXSA.js";
16
+ } from "./chunk-SQEIO2SM.js";
17
17
 
18
18
  // src/cli.ts
19
19
  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-IAF3LXSA.js";
30
+ } from "./chunk-SQEIO2SM.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.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "CLI tool for Cure Kode - manage JS/CSS scripts for Webflow sites",
5
5
  "type": "module",
6
6
  "bin": {