logicstamp-context 0.6.0 → 0.7.0

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 (86) hide show
  1. package/LLM_CONTEXT.md +67 -20
  2. package/README.md +46 -29
  3. package/dist/cli/commands/clean.d.ts +2 -2
  4. package/dist/cli/commands/clean.js +2 -2
  5. package/dist/cli/commands/compare.js +1 -1
  6. package/dist/cli/commands/compare.js.map +1 -1
  7. package/dist/cli/commands/context/configManager.js +2 -2
  8. package/dist/cli/commands/context/configManager.js.map +1 -1
  9. package/dist/cli/commands/context/contractBuilder.d.ts +1 -0
  10. package/dist/cli/commands/context/contractBuilder.d.ts.map +1 -1
  11. package/dist/cli/commands/context/contractBuilder.js +1 -1
  12. package/dist/cli/commands/context/contractBuilder.js.map +1 -1
  13. package/dist/cli/commands/context/incrementalWatch.d.ts +2 -2
  14. package/dist/cli/commands/context/incrementalWatch.d.ts.map +1 -1
  15. package/dist/cli/commands/context/incrementalWatch.js +100 -38
  16. package/dist/cli/commands/context/incrementalWatch.js.map +1 -1
  17. package/dist/cli/commands/context/index.d.ts +22 -2
  18. package/dist/cli/commands/context/index.d.ts.map +1 -1
  19. package/dist/cli/commands/context/index.js +24 -2
  20. package/dist/cli/commands/context/index.js.map +1 -1
  21. package/dist/cli/commands/context/statsCalculator.d.ts +1 -1
  22. package/dist/cli/commands/context/statsCalculator.js +4 -4
  23. package/dist/cli/commands/context/statsCalculator.js.map +1 -1
  24. package/dist/cli/commands/context/tokenEstimator.d.ts.map +1 -1
  25. package/dist/cli/commands/context/tokenEstimator.js +10 -7
  26. package/dist/cli/commands/context/tokenEstimator.js.map +1 -1
  27. package/dist/cli/commands/context/watchMode.d.ts +2 -2
  28. package/dist/cli/commands/context/watchMode.d.ts.map +1 -1
  29. package/dist/cli/commands/context/watchMode.js +8 -6
  30. package/dist/cli/commands/context/watchMode.js.map +1 -1
  31. package/dist/cli/commands/context.d.ts +2 -1
  32. package/dist/cli/commands/context.d.ts.map +1 -1
  33. package/dist/cli/commands/context.js +12 -7
  34. package/dist/cli/commands/context.js.map +1 -1
  35. package/dist/cli/commands/init.js +7 -7
  36. package/dist/cli/commands/init.js.map +1 -1
  37. package/dist/cli/commands/security.d.ts +1 -1
  38. package/dist/cli/commands/security.js +1 -1
  39. package/dist/cli/commands/style.d.ts +2 -2
  40. package/dist/cli/commands/style.js +2 -2
  41. package/dist/cli/commands/validate.d.ts +1 -1
  42. package/dist/cli/commands/validate.js +2 -2
  43. package/dist/cli/commands/validate.js.map +1 -1
  44. package/dist/cli/handlers/compareHandler.d.ts +1 -1
  45. package/dist/cli/handlers/compareHandler.js +5 -5
  46. package/dist/cli/handlers/compareHandler.js.map +1 -1
  47. package/dist/cli/handlers/contextHandler.d.ts +1 -1
  48. package/dist/cli/handlers/contextHandler.js +2 -2
  49. package/dist/cli/handlers/contextHandler.js.map +1 -1
  50. package/dist/cli/handlers/styleHandler.js +1 -1
  51. package/dist/cli/handlers/styleHandler.js.map +1 -1
  52. package/dist/cli/index.d.ts +2 -2
  53. package/dist/cli/index.js +10 -10
  54. package/dist/cli/index.js.map +1 -1
  55. package/dist/cli/parser/argumentParser.d.ts +1 -1
  56. package/dist/cli/parser/argumentParser.d.ts.map +1 -1
  57. package/dist/cli/parser/argumentParser.js +6 -1
  58. package/dist/cli/parser/argumentParser.js.map +1 -1
  59. package/dist/cli/parser/helpText.d.ts.map +1 -1
  60. package/dist/cli/parser/helpText.js +37 -30
  61. package/dist/cli/parser/helpText.js.map +1 -1
  62. package/dist/cli/stamp.d.ts +2 -2
  63. package/dist/cli/stamp.js +3 -3
  64. package/dist/cli/stamp.js.map +1 -1
  65. package/dist/core/pack/loader.d.ts +2 -0
  66. package/dist/core/pack/loader.d.ts.map +1 -1
  67. package/dist/core/pack/loader.js +17 -1
  68. package/dist/core/pack/loader.js.map +1 -1
  69. package/dist/extractors/react/propExtractor.d.ts.map +1 -1
  70. package/dist/extractors/react/propExtractor.js +164 -217
  71. package/dist/extractors/react/propExtractor.js.map +1 -1
  72. package/dist/extractors/styling/styleExtractor.d.ts +5 -2
  73. package/dist/extractors/styling/styleExtractor.d.ts.map +1 -1
  74. package/dist/extractors/styling/styleExtractor.js +177 -5
  75. package/dist/extractors/styling/styleExtractor.js.map +1 -1
  76. package/dist/types/UIFContract.d.ts +27 -4
  77. package/dist/types/UIFContract.d.ts.map +1 -1
  78. package/dist/types/UIFContract.js.map +1 -1
  79. package/dist/utils/config.d.ts +2 -0
  80. package/dist/utils/config.d.ts.map +1 -1
  81. package/dist/utils/config.js.map +1 -1
  82. package/dist/utils/fileLock.d.ts.map +1 -1
  83. package/dist/utils/fileLock.js +3 -0
  84. package/dist/utils/fileLock.js.map +1 -1
  85. package/package.json +2 -2
  86. package/schema/logicstamp.context.schema.json +70 -9
@@ -551,6 +551,9 @@
551
551
  },
552
552
  "pageLayout": {
553
553
  "$ref": "#/definitions/PageLayoutMetadata"
554
+ },
555
+ "summary": {
556
+ "$ref": "#/definitions/StyleSummary"
554
557
  }
555
558
  },
556
559
  "additionalProperties": false
@@ -569,7 +572,14 @@
569
572
  "type": "string"
570
573
  }
571
574
  },
572
- "description": "Tailwind classes categorized by type (layout, spacing, colors, typography, borders, effects)"
575
+ "description": "Tailwind classes categorized by type (layout, spacing, colors, typography, borders, effects) - full mode only"
576
+ },
577
+ "categoriesUsed": {
578
+ "type": "array",
579
+ "items": {
580
+ "type": "string"
581
+ },
582
+ "description": "Category names used (e.g., ['layout', 'spacing', 'colors']) - lean mode only"
573
583
  },
574
584
  "breakpoints": {
575
585
  "type": "array",
@@ -684,7 +694,7 @@
684
694
  "properties": {
685
695
  "css": {
686
696
  "type": "string",
687
- "description": "Extracted CSS content from <style jsx> blocks"
697
+ "description": "Extracted CSS content from <style jsx> blocks - full mode only"
688
698
  },
689
699
  "global": {
690
700
  "type": "boolean",
@@ -695,14 +705,22 @@
695
705
  "items": {
696
706
  "type": "string"
697
707
  },
698
- "description": "CSS selectors found in the extracted CSS"
708
+ "description": "CSS selectors found in the extracted CSS - full mode only"
709
+ },
710
+ "selectorCount": {
711
+ "type": "number",
712
+ "description": "Number of CSS selectors found - lean mode only"
699
713
  },
700
714
  "properties": {
701
715
  "type": "array",
702
716
  "items": {
703
717
  "type": "string"
704
718
  },
705
- "description": "CSS properties found in the extracted CSS"
719
+ "description": "CSS properties found in the extracted CSS - full mode only"
720
+ },
721
+ "propertyCount": {
722
+ "type": "number",
723
+ "description": "Number of CSS properties found - lean mode only"
706
724
  }
707
725
  },
708
726
  "additionalProperties": false
@@ -715,7 +733,11 @@
715
733
  "items": {
716
734
  "type": "string"
717
735
  },
718
- "description": "Styled component names (e.g., ['div', 'Button'])"
736
+ "description": "Styled component names (e.g., ['div', 'Button']) - full mode only"
737
+ },
738
+ "componentCount": {
739
+ "type": "number",
740
+ "description": "Number of styled components - lean mode only"
719
741
  },
720
742
  "usesTheme": {
721
743
  "type": "boolean",
@@ -1067,7 +1089,11 @@
1067
1089
  "items": {
1068
1090
  "type": "string"
1069
1091
  },
1070
- "description": "Identified page sections"
1092
+ "description": "Identified page sections - full mode only"
1093
+ },
1094
+ "sectionCount": {
1095
+ "type": "number",
1096
+ "description": "Number of identified page sections - lean mode only"
1071
1097
  }
1072
1098
  },
1073
1099
  "additionalProperties": false
@@ -1080,14 +1106,22 @@
1080
1106
  "items": {
1081
1107
  "type": "string"
1082
1108
  },
1083
- "description": "Color utility classes (sorted, limited to top 10)"
1109
+ "description": "Color utility classes (sorted, limited to top 10) - full mode only"
1110
+ },
1111
+ "colorCount": {
1112
+ "type": "number",
1113
+ "description": "Number of color utility classes - lean mode only"
1084
1114
  },
1085
1115
  "spacing": {
1086
1116
  "type": "array",
1087
1117
  "items": {
1088
1118
  "type": "string"
1089
1119
  },
1090
- "description": "Spacing utility classes (sorted, limited to top 10)"
1120
+ "description": "Spacing utility classes (sorted, limited to top 10) - full mode only"
1121
+ },
1122
+ "spacingCount": {
1123
+ "type": "number",
1124
+ "description": "Number of spacing utility classes - lean mode only"
1091
1125
  },
1092
1126
  "radius": {
1093
1127
  "type": "string",
@@ -1098,7 +1132,11 @@
1098
1132
  "items": {
1099
1133
  "type": "string"
1100
1134
  },
1101
- "description": "Typography classes (sorted, limited to top 10)"
1135
+ "description": "Typography classes (sorted, limited to top 10) - full mode only"
1136
+ },
1137
+ "typographyCount": {
1138
+ "type": "number",
1139
+ "description": "Number of typography classes - lean mode only"
1102
1140
  }
1103
1141
  },
1104
1142
  "additionalProperties": false
@@ -1143,6 +1181,29 @@
1143
1181
  },
1144
1182
  "additionalProperties": false
1145
1183
  },
1184
+ "StyleSummary": {
1185
+ "type": "object",
1186
+ "required": ["mode", "sources"],
1187
+ "properties": {
1188
+ "mode": {
1189
+ "type": "string",
1190
+ "enum": ["lean", "full"],
1191
+ "description": "Style extraction mode: 'lean' (compact with counts/flags) or 'full' (verbose with arrays)"
1192
+ },
1193
+ "sources": {
1194
+ "type": "array",
1195
+ "items": {
1196
+ "type": "string"
1197
+ },
1198
+ "description": "Style sources detected (e.g., ['tailwind', 'shadcn', 'scss'])"
1199
+ },
1200
+ "fullModeBytes": {
1201
+ "type": "number",
1202
+ "description": "Estimated byte size of full mode output (only present in lean mode)"
1203
+ }
1204
+ },
1205
+ "additionalProperties": false
1206
+ },
1146
1207
  "NextJSMetadata": {
1147
1208
  "type": "object",
1148
1209
  "properties": {