Add PowerShell and Bash modules for command history tracking with P2P sync#66
Merged
kayodebristol merged 5 commits intomainfrom Jan 30, 2026
Merged
Conversation
- Created PowerShell module (PluresDB.psm1) with comprehensive command history functions - Created Bash module (pluresdb.sh) with equivalent functionality - Added database schema for command history tracking - Implemented deduplication views and statistics - Added NixOS-specific command tracking - Added WSL integration support - Indexed by hostname and shell type for cross-device sync - Created comprehensive documentation - Added example scripts for both shells Co-authored-by: kayodebristol <3579196+kayodebristol@users.noreply.github.com>
- Added Pester tests for PowerShell module - Added bash tests with comprehensive function validation - Updated README with shell integration documentation - All bash module tests passing Co-authored-by: kayodebristol <3579196+kayodebristol@users.noreply.github.com>
Security fixes: - Fix SQL injection in PowerShell and Bash query functions via proper escaping - Fix regex injection in Bash ignore patterns - Handle null LASTEXITCODE in PowerShell - Add security documentation about sensitive commands Cross-platform improvements: - Add fallback for timestamp generation on macOS/BSD - Fix PROMPT_COMMAND concatenation in Bash - Clean up backup files after sed operations Documentation: - Add comprehensive security considerations section - Document recommendations for handling sensitive data - Add file permission examples Co-authored-by: kayodebristol <3579196+kayodebristol@users.noreply.github.com>
- Added CLI_INTEGRATION_SUMMARY.md with complete feature overview - Documents all 11 files and 1,357 lines of code - Lists all functions, security measures, and use cases - Includes testing status and future enhancement ideas Co-authored-by: kayodebristol <3579196+kayodebristol@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add pluresdb command line integration and documentation
Add PowerShell and Bash modules for command history tracking with P2P sync
Jan 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements shell integration modules for cross-device command history tracking, deduplication, and analysis with NixOS/WSL support.
Modules
PowerShell (
modules/powershell/)Bash (
modules/bash/)Database Schema
Indexed by hostname, shell type, timestamp, and session for efficient cross-device queries.
Usage
Security
[ValidateRange]on numeric parametersPlatform Support
Documentation
docs/COMMAND_LINE_INTEGRATION.md(16KB): Complete referencedocs/CLI_INTEGRATION_SUMMARY.md: Implementation overviewOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.