@curenorway/kode-cli 1.3.5 → 1.3.7

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.
@@ -384,10 +384,10 @@ Cure Kode is an **internal CDN tool by Cure Norway** for managing JavaScript/CSS
384
384
 
385
385
  ### CDN URL
386
386
 
387
- Add this to Webflow \u2192 Project Settings \u2192 Custom Code \u2192 Footer Code:
387
+ Add this to Webflow \u2192 Project Settings \u2192 Custom Code \u2192 Body Code (before \`</body>\`):
388
388
 
389
389
  \`\`\`html
390
- <script async src="https://app.cure.no/api/cdn/${slug}/init.js"></script>
390
+ <script defer src="https://app.cure.no/api/cdn/${slug}/init.js"></script>
391
391
  \`\`\`
392
392
 
393
393
  ### Workflow
@@ -459,13 +459,13 @@ Cure Kode is an **internal CDN tool by Cure** for managing JavaScript/CSS on Web
459
459
 
460
460
  ## CDN URL (Add to Webflow)
461
461
 
462
- Add this script tag to your Webflow site's **Custom Code** (Project Settings \u2192 Custom Code \u2192 Footer Code):
462
+ Add this script tag to your Webflow site's **Custom Code** (Project Settings \u2192 Custom Code \u2192 Body Code, before \`</body>\`):
463
463
 
464
464
  \`\`\`html
465
- <script async src="https://app.cure.no/api/cdn/${slug}/init.js"></script>
465
+ <script defer src="https://app.cure.no/api/cdn/${slug}/init.js"></script>
466
466
  \`\`\`
467
467
 
468
- **Important**: Use \`async\` for best PageSpeed scores. The init.js automatically loads all your scripts.
468
+ **Important**: Use \`defer\` to ensure DOM is ready before scripts run. The init.js automatically loads all your scripts.
469
469
 
470
470
  ## Commands
471
471
 
@@ -743,7 +743,8 @@ config.json
743
743
  mcpConfig.mcpServers = mcpConfig.mcpServers || {};
744
744
  mcpConfig.mcpServers["cure-kode"] = {
745
745
  command: "npx",
746
- args: ["@curenorway/kode-mcp"]
746
+ args: ["-y", "@curenorway/kode-mcp"],
747
+ env: {}
747
748
  };
748
749
  writeFileSync3(mcpConfigPath, JSON.stringify(mcpConfig, null, 2) + "\n");
749
750
  spinner.text = "Generating AI context files...";
@@ -876,6 +877,9 @@ config.json
876
877
  console.log(chalk.cyan(" 1. kode pull ") + chalk.dim("Download existing scripts"));
877
878
  console.log(chalk.cyan(" 2. kode watch ") + chalk.dim("Watch for changes and auto-push"));
878
879
  console.log(chalk.cyan(" 3. kode deploy ") + chalk.dim("Deploy to staging/production"));
880
+ console.log(chalk.bold("\n\u{1F4A1} MCP Tools:"));
881
+ console.log(chalk.dim(" Restart Claude Code, then use /mcp to approve the cure-kode server."));
882
+ console.log(chalk.dim(" This enables AI tools like kode_update_script, kode_assign_script_to_page, etc."));
879
883
  if (claudeMdAction === "separate") {
880
884
  console.log(chalk.yellow("\n\u{1F4A1} Tip: Add this line to your CLAUDE.md to reference Kode instructions:"));
881
885
  console.log(chalk.dim(" See KODE.md for Cure Kode CDN management instructions."));
@@ -1429,8 +1433,8 @@ async function deployCommand(environment, options) {
1429
1433
  } else {
1430
1434
  console.log(chalk5.green("\u2705 Changes are now live!"));
1431
1435
  console.log();
1432
- console.log(chalk5.dim("Make sure this script tag is in your Webflow site:"));
1433
- console.log(chalk5.dim(`<script async src="https://app.cure.no/api/cdn/${config.siteSlug}/init.js"></script>`));
1436
+ console.log(chalk5.dim("Make sure this script tag is in your Webflow site (before </body>):"));
1437
+ console.log(chalk5.dim(`<script defer src="https://app.cure.no/api/cdn/${config.siteSlug}/init.js"></script>`));
1434
1438
  }
1435
1439
  } catch (error) {
1436
1440
  spinner.fail("Deployment failed");
@@ -1805,8 +1809,8 @@ async function statusCommand(options) {
1805
1809
  console.log();
1806
1810
  console.log(chalk7.cyan(` https://app.cure.no/api/cdn/${config.siteSlug}/init.js`));
1807
1811
  console.log();
1808
- console.log(chalk7.dim(" Add to Webflow \u2192 Project Settings \u2192 Custom Code \u2192 Footer:"));
1809
- console.log(chalk7.dim(` <script async src="https://app.cure.no/api/cdn/${config.siteSlug}/init.js"></script>`));
1812
+ console.log(chalk7.dim(" Add to Webflow \u2192 Project Settings \u2192 Custom Code \u2192 Body (before </body>):"));
1813
+ console.log(chalk7.dim(` <script defer src="https://app.cure.no/api/cdn/${config.siteSlug}/init.js"></script>`));
1810
1814
  console.log();
1811
1815
  const spinner = ora6("Fetching status...").start();
1812
1816
  try {
package/dist/cli.js CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  readPageContext,
16
16
  statusCommand,
17
17
  watchCommand
18
- } from "./chunk-BE4YS6BD.js";
18
+ } from "./chunk-OGDEQRXS.js";
19
19
 
20
20
  // src/cli.ts
21
21
  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-BE4YS6BD.js";
30
+ } from "./chunk-OGDEQRXS.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.5",
3
+ "version": "1.3.7",
4
4
  "description": "CLI tool for Cure Kode - manage JS/CSS scripts for Webflow sites",
5
5
  "type": "module",
6
6
  "bin": {