@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.
- package/dist/{chunk-IAF3LXSA.js → chunk-SQEIO2SM.js} +43 -11
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
363
|
+
return `## Cure Kode: ${siteName}
|
|
364
364
|
|
|
365
|
-
|
|
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
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
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
|
-
|
|
412
|
+
Update context.md after your session with discoveries and changes.
|
|
381
413
|
|
|
382
414
|
`;
|
|
383
415
|
}
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED