chore: apply linting fixes to upgrade command and changelog
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,7 @@ capabilities.
|
|||||||
|
|
||||||
- Get current version from package.json
|
- Get current version from package.json
|
||||||
- Check if already on latest version:
|
- Check if already on latest version:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
CURRENT=$(grep '"version"' package.json | sed 's/.*: "\(.*\)".*/\1/')
|
CURRENT=$(grep '"version"' package.json | sed 's/.*: "\(.*\)".*/\1/')
|
||||||
LATEST=$(curl -s https://raw.githubusercontent.com/heyitsnoah/claudesidian/main/package.json | grep '"version"' | sed 's/.*: "\(.*\)".*/\1/')
|
LATEST=$(curl -s https://raw.githubusercontent.com/heyitsnoah/claudesidian/main/package.json | grep '"version"' | sed 's/.*: "\(.*\)".*/\1/')
|
||||||
@@ -39,7 +40,9 @@ capabilities.
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
```
|
```
|
||||||
|
|
||||||
- Create timestamped backup in `.backup/upgrade-YYYY-MM-DD-HHMMSS/`:
|
- Create timestamped backup in `.backup/upgrade-YYYY-MM-DD-HHMMSS/`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Create backup directory
|
# Create backup directory
|
||||||
BACKUP_DIR=".backup/upgrade-$(date +%Y-%m-%d-%H%M%S)"
|
BACKUP_DIR=".backup/upgrade-$(date +%Y-%m-%d-%H%M%S)"
|
||||||
@@ -54,6 +57,7 @@ capabilities.
|
|||||||
|
|
||||||
echo "✅ Backup created in $BACKUP_DIR"
|
echo "✅ Backup created in $BACKUP_DIR"
|
||||||
```
|
```
|
||||||
|
|
||||||
- Clone latest claudesidian to temp directory (doesn't affect user's repo):
|
- Clone latest claudesidian to temp directory (doesn't affect user's repo):
|
||||||
```bash
|
```bash
|
||||||
# Get fresh copy in .tmp dir (hidden from Obsidian) - user's repo stays disconnected
|
# Get fresh copy in .tmp dir (hidden from Obsidian) - user's repo stays disconnected
|
||||||
@@ -64,6 +68,7 @@ capabilities.
|
|||||||
### 2. **Create Upgrade Checklist**
|
### 2. **Create Upgrade Checklist**
|
||||||
|
|
||||||
- Compare system files between current directory and .tmp/claudesidian-upgrade/:
|
- Compare system files between current directory and .tmp/claudesidian-upgrade/:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Find all system files that differ AND new files in upstream
|
# Find all system files that differ AND new files in upstream
|
||||||
# First, find files that exist in both but differ
|
# First, find files that exist in both but differ
|
||||||
@@ -77,6 +82,7 @@ capabilities.
|
|||||||
[ ! -f "$local_file" ] && echo "NEW: $local_file"
|
[ ! -f "$local_file" ] && echo "NEW: $local_file"
|
||||||
done
|
done
|
||||||
```
|
```
|
||||||
|
|
||||||
- Create checklist of files that need review
|
- Create checklist of files that need review
|
||||||
- Explicitly EXCLUDE:
|
- Explicitly EXCLUDE:
|
||||||
- User content folders (00_Inbox, 01_Projects, etc.)
|
- User content folders (00_Inbox, 01_Projects, etc.)
|
||||||
@@ -140,9 +146,9 @@ For EACH file in the checklist:
|
|||||||
Choice (1/2/3/4): [WAIT FOR USER TO TYPE NUMBER AND PRESS ENTER]
|
Choice (1/2/3/4): [WAIT FOR USER TO TYPE NUMBER AND PRESS ENTER]
|
||||||
```
|
```
|
||||||
|
|
||||||
**IMPORTANT**: Actually WAIT for the user to type their choice!
|
**IMPORTANT**: Actually WAIT for the user to type their choice! Do NOT
|
||||||
Do NOT automatically select any option. The user must manually
|
automatically select any option. The user must manually type 1, 2, 3, or 4
|
||||||
type 1, 2, 3, or 4 and press Enter.
|
and press Enter.
|
||||||
|
|
||||||
4. Apply the chosen strategy:
|
4. Apply the chosen strategy:
|
||||||
- **For option 1 (Apply update/Take upstream)**:
|
- **For option 1 (Apply update/Take upstream)**:
|
||||||
@@ -175,7 +181,9 @@ For EACH file in the checklist:
|
|||||||
- **Never touch**: User content folders, CLAUDE.md, API configs
|
- **Never touch**: User content folders, CLAUDE.md, API configs
|
||||||
|
|
||||||
#### Batch Updates for Similar Files
|
#### Batch Updates for Similar Files
|
||||||
|
|
||||||
For commands that have only formatting changes, you can batch update:
|
For commands that have only formatting changes, you can batch update:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Batch update multiple command files with same type of changes
|
# Batch update multiple command files with same type of changes
|
||||||
for file in thinking-partner.md daily-review.md inbox-processor.md; do
|
for file in thinking-partner.md daily-review.md inbox-processor.md; do
|
||||||
@@ -187,7 +195,9 @@ done
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### Handling Missing Upstream Files
|
#### Handling Missing Upstream Files
|
||||||
|
|
||||||
Some files may exist locally but not in upstream (like deprecated agents):
|
Some files may exist locally but not in upstream (like deprecated agents):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Check if file exists in upstream before trying to update
|
# Check if file exists in upstream before trying to update
|
||||||
if [ ! -f ".tmp/claudesidian-upgrade/$filepath" ]; then
|
if [ ! -f ".tmp/claudesidian-upgrade/$filepath" ]; then
|
||||||
|
|||||||
+4
-2
@@ -12,8 +12,10 @@ and this project adheres to
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- New `/download-attachment` command for downloading web content and files to Obsidian attachments folder
|
- New `/download-attachment` command for downloading web content and files to
|
||||||
- New `/pull-request` command for creating PRs with intelligent change analysis and description generation
|
Obsidian attachments folder
|
||||||
|
- New `/pull-request` command for creating PRs with intelligent change analysis
|
||||||
|
and description generation
|
||||||
- Both commands integrate seamlessly with Obsidian's vault structure
|
- Both commands integrate seamlessly with Obsidian's vault structure
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
Reference in New Issue
Block a user