@curenorway/kode-mcp 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/dist/index.js +44 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1145,7 +1145,7 @@ Use kode_list_pages_context to see cached pages, or kode_refresh_page to cache a
1145
1145
  text += `Cached: ${context.extractedAt}${isStale ? ` \u26A0\uFE0F (${cacheAgeDays} days old - consider refreshing with kode_refresh_page)` : ""}
1146
1146
  `;
1147
1147
  if (context.stats) {
1148
- text += `Stats: ${context.stats.sectionCount} sections, ${context.stats.ctaCount} CTAs, ${context.stats.formCount} forms, ${context.stats.imageCount} images, ${context.stats.scriptCount} scripts, ${context.stats.interactionCount} interactions
1148
+ text += `Stats: ${context.stats.sectionCount} sections, ${context.stats.ctaCount} CTAs, ${context.stats.formCount} forms, ${context.stats.linkCount} links, ${context.stats.gridCount || 0} grids, ${context.stats.imageCount} images, ${context.stats.interactiveCount || 0} interactive
1149
1149
  `;
1150
1150
  }
1151
1151
  text += "\n";
@@ -1161,6 +1161,17 @@ Use kode_list_pages_context to see cached pages, or kode_refresh_page to cache a
1161
1161
  `;
1162
1162
  if (flags) text += `Flags: [${flags}]
1163
1163
  `;
1164
+ if (s.children) {
1165
+ const c = s.children;
1166
+ const childInfo = [
1167
+ c.divs && `${c.divs} divs`,
1168
+ c.links && `${c.links} links`,
1169
+ c.buttons && `${c.buttons} buttons`,
1170
+ c.images && `${c.images} images`
1171
+ ].filter(Boolean).join(", ");
1172
+ if (childInfo) text += `Contains: ${childInfo}
1173
+ `;
1174
+ }
1164
1175
  if (s.textSample) text += `Preview: ${s.textSample.slice(0, 120)}...
1165
1176
  `;
1166
1177
  text += "\n";
@@ -1313,6 +1324,38 @@ Use kode_list_pages_context to see cached pages, or kode_refresh_page to cache a
1313
1324
  }
1314
1325
  text += "\n";
1315
1326
  }
1327
+ if (context.grids && context.grids.length > 0) {
1328
+ text += `## Grids/Lists (${context.grids.length})
1329
+
1330
+ `;
1331
+ for (const g of context.grids) {
1332
+ text += `- \`${g.selector}\` (${g.gridType}, ${g.itemCount} items)
1333
+ `;
1334
+ text += ` Item: \`${g.itemSelector}\`
1335
+ `;
1336
+ }
1337
+ text += "\n";
1338
+ }
1339
+ if (context.interactiveElements && context.interactiveElements.length > 0) {
1340
+ text += `## Interactive Elements (${context.interactiveElements.length})
1341
+
1342
+ `;
1343
+ for (const el of context.interactiveElements) {
1344
+ text += `- ${el.type}: \`${el.selector}\`${el.trigger ? ` [${el.trigger}]` : ""}
1345
+ `;
1346
+ }
1347
+ text += "\n";
1348
+ }
1349
+ if (context.links && context.links.length > 0) {
1350
+ const internal = context.links.filter((l) => !l.isExternal).length;
1351
+ const external = context.links.filter((l) => l.isExternal).length;
1352
+ text += `## Links (${context.links.length})
1353
+
1354
+ `;
1355
+ text += `Internal: ${internal}, External: ${external}
1356
+
1357
+ `;
1358
+ }
1316
1359
  if (context.notes && context.notes.length > 0) {
1317
1360
  text += `## Notes
1318
1361
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curenorway/kode-mcp",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "MCP server for Cure Kode - enables AI agents to manage Webflow scripts",
5
5
  "type": "module",
6
6
  "bin": {