claude-code-autoconfig 1.0.96 → 1.0.98

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.
@@ -1,50 +1,50 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * @name Format Hook
5
- * @description Runs project formatter after Write/Edit operations
6
- * @trigger PostToolUse on Write|Edit
7
- */
8
-
9
- const { execSync } = require('child_process');
10
- const path = require('path');
11
-
12
- // Read hook input from stdin
13
- let input = '';
14
- process.stdin.setEncoding('utf8');
15
- process.stdin.on('data', chunk => input += chunk);
16
- process.stdin.on('end', () => {
17
- try {
18
- const data = JSON.parse(input);
19
- handleHook(data);
20
- } catch (err) {
21
- // Silent exit if no valid input
22
- process.exit(0);
23
- }
24
- });
25
-
26
- function handleHook(data) {
27
- const filePath = data?.tool_input?.file_path || '';
28
-
29
- // Skip non-source files
30
- if (!filePath.match(/\.(js|jsx|ts|tsx|json|css|scss|md|html)$/)) {
31
- process.exit(0);
32
- }
33
-
34
- // Skip node_modules and other generated directories
35
- if (filePath.includes('node_modules') || filePath.includes('dist/') || filePath.includes('build/')) {
36
- process.exit(0);
37
- }
38
-
39
- try {
40
- // Run formatter silently - errors are non-fatal
41
- execSync('npm run format --silent || true', {
42
- cwd: process.cwd(),
43
- stdio: 'ignore'
44
- });
45
- } catch (err) {
46
- // Formatting is best-effort, don't block on failure
47
- }
48
-
49
- process.exit(0);
50
- }
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * @name Format Hook
5
+ * @description Runs project formatter after Write/Edit operations
6
+ * @trigger PostToolUse on Write|Edit
7
+ */
8
+
9
+ const { execSync } = require('child_process');
10
+ const path = require('path');
11
+
12
+ // Read hook input from stdin
13
+ let input = '';
14
+ process.stdin.setEncoding('utf8');
15
+ process.stdin.on('data', chunk => input += chunk);
16
+ process.stdin.on('end', () => {
17
+ try {
18
+ const data = JSON.parse(input);
19
+ handleHook(data);
20
+ } catch (err) {
21
+ // Silent exit if no valid input
22
+ process.exit(0);
23
+ }
24
+ });
25
+
26
+ function handleHook(data) {
27
+ const filePath = data?.tool_input?.file_path || '';
28
+
29
+ // Skip non-source files
30
+ if (!filePath.match(/\.(js|jsx|ts|tsx|json|css|scss|md|html)$/)) {
31
+ process.exit(0);
32
+ }
33
+
34
+ // Skip node_modules and other generated directories
35
+ if (filePath.includes('node_modules') || filePath.includes('dist/') || filePath.includes('build/')) {
36
+ process.exit(0);
37
+ }
38
+
39
+ try {
40
+ // Run formatter silently - errors are non-fatal
41
+ execSync('npm run format --silent || true', {
42
+ cwd: process.cwd(),
43
+ stdio: 'ignore'
44
+ });
45
+ } catch (err) {
46
+ // Formatting is best-effort, don't block on failure
47
+ }
48
+
49
+ process.exit(0);
50
+ }
package/README.md CHANGED
@@ -73,11 +73,22 @@ Most Claude Code templates are static — copy, paste, manually fill in the blan
73
73
 
74
74
  Autoconfig is **self-configuring**. Run `/autoconfig` and Claude:
75
75
 
76
- 1. **Detects your environment** — Windows vs macOS/Linux for correct command syntax
76
+ 1. **Detects your environment** — Windows, macOS, or Linux
77
77
  2. **Scans your project** — Package files, framework indicators, test setup
78
78
  3. **Populates CLAUDE.md** — Project name, tech stack, commands, conventions
79
79
  4. **Configures settings.json** — Permissions tuned to your ecosystem
80
80
 
81
+ **Supported stacks:** JavaScript/TypeScript, Python, Rust, Go, Ruby, Java, .NET, PHP
82
+
83
+ | Feature | JS/TS | Python, Rust, Go, Ruby, Java, .NET, PHP |
84
+ |---------|-------|------------------------------------------|
85
+ | CLAUDE.md introspection | Yes | Yes |
86
+ | Slash commands | Yes | Yes |
87
+ | MEMORY.md | Yes | Yes |
88
+ | Update system | Yes | Yes |
89
+ | Auto-format hook | Yes | Coming soon |
90
+ | Optimized permissions | Yes | Coming soon |
91
+
81
92
  Run `/sync-claude-md` anytime your project evolves to keep the configuration current.
82
93
 
83
94
  ### Slash Commands
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-autoconfig",
3
- "version": "1.0.96",
3
+ "version": "1.0.98",
4
4
  "description": "Intelligent, self-configuring setup for Claude Code. One command analyzes your project, configures Claude, and shows you what it did.",
5
5
  "author": "ADAC 1001 <info@adac1001.com>",
6
6
  "license": "MIT",
@@ -36,6 +36,7 @@
36
36
  "!.claude/settings.local.json",
37
37
  "!.claude/commands/publish.md",
38
38
  "!.claude/commands/gls.md",
39
+ "!.claude/docs/multi-stack-parity-plan.md",
39
40
  "CLAUDE.md"
40
41
  ],
41
42
  "engines": {