claude-code-autoconfig 1.0.106 → 1.0.108
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/.claude/commands/gls.md +55 -0
- package/bin/cli.js +1 -1
- package/package.json +1 -2
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
Get the latest screenshot(s) and display them.
|
|
2
|
+
|
|
3
|
+
Usage:
|
|
4
|
+
- `/gls` - Get and display the most recent screenshot
|
|
5
|
+
- `/gls-2` - Get and display the 2 most recent screenshots
|
|
6
|
+
- `/gls-3` - Get and display the 3 most recent screenshots
|
|
7
|
+
- `/gls-N` - Get and display the N most recent screenshots
|
|
8
|
+
|
|
9
|
+
## Step 1: Detect screenshot directory
|
|
10
|
+
|
|
11
|
+
Find the screenshot directory by checking these paths in order. Use the Bash tool with `ls -d` to test existence. Stop at the **first match**.
|
|
12
|
+
|
|
13
|
+
**macOS:**
|
|
14
|
+
1. Run `defaults read com.apple.screencapture location 2>/dev/null` — if it returns a path that exists, use it
|
|
15
|
+
2. `~/Desktop`
|
|
16
|
+
3. `~/Pictures/Screenshots`
|
|
17
|
+
|
|
18
|
+
**Windows (Git Bash / MSYS paths):**
|
|
19
|
+
1. `~/OneDrive/Pictures/Screenshots*` (glob — OneDrive creates numbered variants like `Screenshots 1`)
|
|
20
|
+
2. `~/Pictures/Screenshots`
|
|
21
|
+
3. `~/Desktop`
|
|
22
|
+
|
|
23
|
+
**Linux:**
|
|
24
|
+
1. Check `$XDG_PICTURES_DIR/Screenshots` if `XDG_PICTURES_DIR` is set
|
|
25
|
+
2. `~/Pictures/Screenshots`
|
|
26
|
+
3. `~/Pictures`
|
|
27
|
+
4. `~/Desktop`
|
|
28
|
+
|
|
29
|
+
Detect the OS using `uname -s` (Darwin = macOS, Linux = Linux, MINGW*/MSYS*/CYGWIN* = Windows).
|
|
30
|
+
|
|
31
|
+
If no candidate directory exists, tell the user: "Could not find a screenshot directory. Set one with `/gls /path/to/screenshots`."
|
|
32
|
+
|
|
33
|
+
If the user provides a path as an argument (e.g., `/gls /path/to/dir`), use that path directly and skip detection.
|
|
34
|
+
|
|
35
|
+
## Step 2: List screenshots
|
|
36
|
+
|
|
37
|
+
List all image files (*.png, *.jpg, *.jpeg, *.bmp, *.webp) in the detected directory, sorted by modification time (newest first). Use `ls -t` via Bash.
|
|
38
|
+
|
|
39
|
+
## Step 3: Select screenshots
|
|
40
|
+
|
|
41
|
+
- If command is `/gls`, get the 1 most recent screenshot
|
|
42
|
+
- If command is `/gls-N` (e.g., `/gls-2`), get the N most recent screenshots
|
|
43
|
+
|
|
44
|
+
## Step 4: Display
|
|
45
|
+
|
|
46
|
+
Use the Read tool to display each screenshot. Display in order from newest to oldest.
|
|
47
|
+
|
|
48
|
+
## Step 5: Wait
|
|
49
|
+
|
|
50
|
+
Wait for the user to tell you what to do with the screenshot(s). Do not make assumptions about what they want done.
|
|
51
|
+
|
|
52
|
+
Important:
|
|
53
|
+
- Always use the Read tool to display screenshots (not Bash cat/echo)
|
|
54
|
+
- Display screenshots in order from newest to oldest
|
|
55
|
+
- After displaying, wait for user instructions
|
package/bin/cli.js
CHANGED
|
@@ -316,7 +316,7 @@ const feedbackSrc = path.join(packageDir, '.claude', 'feedback');
|
|
|
316
316
|
const hooksSrc = path.join(packageDir, '.claude', 'hooks');
|
|
317
317
|
|
|
318
318
|
// Files that exist in the dev repo but should never be installed to user projects
|
|
319
|
-
const DEV_ONLY_FILES = ['publish.md'
|
|
319
|
+
const DEV_ONLY_FILES = ['publish.md'];
|
|
320
320
|
|
|
321
321
|
function copyDir(src, dest) {
|
|
322
322
|
fs.mkdirSync(dest, { recursive: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-autoconfig",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.108",
|
|
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",
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
".claude",
|
|
36
36
|
"!.claude/settings.local.json",
|
|
37
37
|
"!.claude/commands/publish.md",
|
|
38
|
-
"!.claude/commands/gls.md",
|
|
39
38
|
"!.claude/plans",
|
|
40
39
|
"CLAUDE.md"
|
|
41
40
|
],
|