Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .agents/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,7 @@
# Ignore removal errors if status file is already deleted or locked by another process.
}
```

## 8. Artifact and Workspace File Operations
- **Artifact Directory Bounds**: Always write user-facing reports, plan documents, and walk-throughs in the designated conversation brain directory `C:\Users\ajjuk\.gemini\antigravity\brain\<conversation-id>/` and provide `ArtifactMetadata`.
- **Workspace Files**: Never provide `ArtifactMetadata` when creating or modifying files inside the user's workspace directory (e.g. source files, `.vscode/settings.json`, `.cursorrules`).
5 changes: 5 additions & 0 deletions .cursorrules
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# MyBookTools Workspace Cursor Rules

This workspace extends the global AI guidelines. Please refer to:
- Global Rules: [~/.global_ai_rules.md](file:///C:/Users/ajjuk/.global_ai_rules.md)
- Project-Scoped Rules: [.agents/AGENTS.md](file:///C:/Users/ajjuk/.gemini/antigravity/worktrees/MyBookTools/onboard-workspace-project-plan/.agents/AGENTS.md)
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"files.encoding": "utf8bom",
"files.associations": {
"*.ps1": "powershell",
"*.psm1": "powershell",
"*.psd1": "powershell"
}
}
4 changes: 2 additions & 2 deletions src/DriveTools.GUI.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Requires -Version 5.1
#Requires -Version 5.1
<#
.SYNOPSIS
DriveTools WPF GUI — graphical launcher for all DriveTools operations.
Expand Down Expand Up @@ -211,7 +211,7 @@ $chkDupeRpt = $window.FindName('ChkDupeRpt')
$comboDrives = $window.FindName('ComboDrives')

# ── Populate drives list ──────────────────────────────────────────────────────
$drives = [System.IO.DriveInfo]::GetDrives() | Where-Object { $_.IsReady -and $_.DriveType -in 'Fixed','Removable' }
$drives = [System.IO.DriveInfo]::GetDrives() | Where-Object { $_.IsReady }
foreach ($d in $drives) {
$freeGB = [math]::Round($d.AvailableFreeSpace / 1GB, 1)
$totalGB = [math]::Round($d.TotalSize / 1GB, 1)
Expand Down
4 changes: 2 additions & 2 deletions src/DriveTools.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ function Get-DriveToolsRootPath {
return $Path
}

$drives = [System.IO.DriveInfo]::GetDrives() | Where-Object { $_.IsReady -and $_.DriveType -in 'Fixed','Removable' }
$drives = [System.IO.DriveInfo]::GetDrives() | Where-Object { $_.IsReady }
if ($drives.Count -eq 0) {
throw "No ready fixed or removable drives found."
throw "No ready drives found."
}

# If non-interactive or running in automated tests
Expand Down
Loading