cc-dev-template 0.1.37 → 0.1.38

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-dev-template",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
4
4
  "description": "Structured AI-assisted development framework for Claude Code",
5
5
  "bin": {
6
6
  "cc-dev-template": "./bin/install.js"
@@ -92,6 +92,13 @@ async function main() {
92
92
  process.exit(0);
93
93
  }
94
94
 
95
+ // Image files: token consumption based on dimensions, not file size
96
+ const imageExtensions = ['.png', '.jpg', '.jpeg', '.gif', '.webp', '.svg', '.bmp', '.ico', '.tiff', '.tif'];
97
+ const ext = filePath.toLowerCase().slice(filePath.lastIndexOf('.'));
98
+ if (imageExtensions.includes(ext)) {
99
+ process.exit(0);
100
+ }
101
+
95
102
  // If file doesn't exist or no path, let Read tool handle the error
96
103
  if (!filePath || !fs.existsSync(filePath)) {
97
104
  process.exit(0);