Commit Graph
49 Commits
Author SHA1 Message Date
AI BotandRiyyi b13c9da7a1 Improve AUR with AUR dependency installations 2026-05-03 17:40:31 +02:00
AI BotandRiyyi c8cdace4bf Update Go file structure conventions in AGENTS.md 2026-05-03 15:48:00 +02:00
AI BotandRiyyi 31fad42ab3 Reorder functions to follow public-first convention 2026-05-03 15:40:07 +02:00
AI BotandRiyyi db4e22a580 Add --prune flag for explicit marking and orphan cleanup 2026-05-03 15:10:54 +02:00
AI BotandRiyyi d59d5c084d Add implicit state file support
Read implicit package list from /home/rick/.config/declpac or ~/.config/declpac
2026-05-03 14:30:16 +02:00
AI BotandRiyyi c4746697b5 Remove merge package, move Merge to input 2026-05-03 14:30:16 +02:00
AI BotandRiyyi 5ad29767c9 Add safety check for package list validation 2026-05-03 14:30:16 +02:00
AI BotandRiyyi 38d26fd2d8 Add Go line length guidelines
Adds 120/100/80 character guidelines to AGENTS.md
2026-05-03 12:17:12 +02:00
AI BotandRiyyi 399a7157e2 Add tilde path expansion for state files 2026-05-03 11:48:05 +02:00
AI BotandRiyyi 578eb16ab2 Add Go file structure conventions to AGENTS.md 2026-05-03 11:27:30 +02:00
AI BotandRiyyi 584f4fbdd9 Skip debug packages when finding built AUR package
The findPKGFile function now takes pkgName as parameter to skip
debug packages (*-debug.pkg.tar.zst) when locating built packages.
2026-05-03 11:13:06 +02:00
AI BotandRiyyi d36bba6925 Add centralized command logging function
Refactors command execution to use a new log.Command helper that handles both logging and cmd creation, reducing duplication in sync.go
2026-05-03 10:05:10 +02:00
AI BotandRiyyi b1a376dbbe Add build, install and uninstall targets to Makefile 2026-04-24 21:14:03 +02:00
AI BotandRiyyi fdd9ecb3a5 Handle pacman -Qdtq exit code 1 as non-error
pacman -Qdtq exits with code 1 when there are no orphans, which is not an error condition. Handle this gracefully by returning nil instead of an error.
2026-04-19 11:08:32 +02:00
AI BotandRiyyi c90d2e8916 Add verbose flag for debug output control
Introduces log.Debug() function that respects a Verbose config flag, replacing direct [debug] fmt.Fprintf calls throughout the codebase. This allows debug logging to be toggled via -v/--verbose CLI flag.
2026-04-19 11:06:52 +02:00
AI BotandRiyyi 5ebb958bf1 Add command logging and skip already installed AUR packages 2026-04-19 10:15:00 +02:00
AI BotandRiyyi a934dfa1f0 Update make-commit skill with message format rules 2026-04-18 18:50:25 +02:00
AI BotandRiyyi e64382c1bd Fix issues with dry-run package reporting
- Filter orphans to only those not in requested packages
- Fix Removed count to reflect only actual removals
2026-04-18 18:30:45 +02:00
AI BotandRiyyi 83de6acc74 Refactor fetch and pacman packages into subpackages
Split fetch into alpm and aur subpackages for better organization.
Rename state to log. Split pacman into read and sync subpackages.
Remove validation in favor of read.DBFreshness.
2026-04-18 18:18:23 +02:00
AI BotandRiyyi 86c6d078d6 Output actual commands run instead of generic progress messages 2026-04-18 15:35:22 +02:00
AI BotandRiyyi bd1108a93f Dont use CombinedOutput() to capture error separately 2026-04-18 15:07:56 +02:00
AI BotandRiyyi 82aeceacac Fixup: correct log path in add-operation-logging, fix pacman -Rns flag in declpac-cli-tool, update pkg path in fix-sync-dbs-notloaded 2026-04-18 14:27:47 +02:00
AI BotandRiyyi 86c1abaad4 Add opsx-fixup command for diverging change specs 2026-04-18 14:07:47 +02:00
AI BotandRiyyi 2b0cb39746 Update operation logging spec to use single timestamp per tool call 2026-04-18 13:44:48 +02:00
AI BotandRiyyi 8348cc21df Suppress command output from stdout, only log to file 2026-04-17 23:34:53 +02:00
AI BotandRiyyi 01338cb671 Archive experimental OpenSpec changes 2026-04-17 19:35:25 +02:00
AI BotandRiyyi b4b12b39b6 Openspec fixups 2026-04-17 19:26:06 +02:00
AI BotandRiyyi 720be92d82 Fix MarkAllAsDeps to retrieve all packages first 2026-04-17 19:06:03 +02:00
AI BotandRiyyi 4143a23c91 Implement package resolve logic fixes 2026-04-17 18:24:14 +02:00
AI BotandRiyyi 536a8d5ccb Add package fetching logic fix proposal 2026-04-17 18:14:21 +02:00
AI BotandRiyyi 11a5e57516 Fix AUR package installation root privileges 2026-04-16 22:55:41 +02:00
AI BotandRiyyi cffccf2390 Add Makefile and fix pacman.go 2026-04-16 22:24:36 +02:00
AI BotandRiyyi e74c38cb3f Add input handling improvements 2026-04-16 21:31:05 +02:00
AI BotandRiyyi 192b41e18b Rewrite README with accurate docs 2026-04-15 22:51:30 +02:00
AI BotandRiyyi eb6bb8fb76 Add state tracking and pacman package enhancements 2026-04-15 22:40:02 +02:00
AI BotandRiyyi 0b834214cd Add OpenSpec change for operation logging 2026-04-15 22:40:02 +02:00
AI BotandRiyyi 0fa0988666 Fix AUR package detection for installed packages 2026-04-15 19:57:34 +02:00
AI BotandRiyyi 2bead6af27 Refactor pkg into modular packages 2026-04-14 22:37:48 +02:00
AI BotandRiyyi 9aeedb39b8 Add OpenSpec change for pkg modularization refactor 2026-04-14 22:23:12 +02:00
AI BotandRiyyi 076bebbedf Register sync DBs manually to fix dyalpm returning empty list
The dyalpm library's SyncDBs() returns an empty slice, causing packages
from official repos (extra, core, multilib) to not be found. This fix
manually registers each repo after getting an empty result.
2026-04-14 22:05:42 +02:00
AI BotandRiyyi 836d8600c6 Add fix for sync DBs not loaded 2026-04-14 21:59:08 +02:00
AI BotandRiyyi be9c9c6df1 Integrate dyalpm for local/sync package queries 2026-04-14 21:46:02 +02:00
AI BotandRiyyi 2a90c0cd11 Add batch pacman checks and package resolution specs 2026-04-14 19:57:29 +02:00
AI BotandRiyyi 521b862919 Add dry-run flag and implement AUR support 2026-04-13 21:42:11 +02:00
AI BotandRiyyi d296e00fd6 Update README with usage documentation 2026-04-13 19:29:49 +02:00
AI BotandRiyyi e165558262 Add initial declpac CLI tool implementation 2026-04-13 19:27:40 +02:00
AI BotandRiyyi ba05908cc4 Update openspec with clarified design decisions 2026-04-13 16:36:17 +02:00
AI BotandRiyyi 9d6c1ec3ee Add make-commit skill and AI commit documentation
- New /commit command in OpenCode
- make-commit skill for AI-aware commits
- AI.md documentation
2026-04-13 15:48:05 +02:00
AI BotandRiyyi 6699c62d9e Add OpenSpec for declpac CLI tool
- OpenSpec for declarative pacman package management
- stdin and --state file inputs with merging
- Full system upgrades, transitive deps, orphan cleanup
- AUR support with pacman/makepkg fallback
- Machine-readable output for scripting
2026-04-13 15:42:35 +02:00