Skip to content

v0.3.1 - XML-Based Persona Optimization

Latest

Choose a tag to compare

@pidster pidster released this 20 Jul 08:46
· 5 commits to main since this release

[0.3.1] - 2025-01-20

Added

  • XML-Based Persona Optimization
    • New XML prompt generation system with semantic tagging for enhanced AI comprehension
    • Added src/types/prompt-format.ts with prompt format types and compression levels
    • Implemented src/utils/xml-prompt-builder.ts with Mermaid diagram integration
    • Support for multiple AI model formats (Claude, GPT-4, Gemini)
    • Achieved 25-33% compression while improving prompt actionability
    • Enhanced src/enhanced-persona-manager.ts with XML generation methods
    • Comprehensive test suite for XML generation with 16 passing tests

Changed

  • Persona Improvements
    • Optimized all 12 built-in personas with semantic XML structure
    • Enhanced constraints with Must/Never prefixes for better categorization
    • Simplified Mermaid diagrams while retaining essential decision flows
    • Compressed methodology and decision criteria sections
    • Added BehaviorDiagram type exports for proper TypeScript validation

Fixed

  • TypeScript strict checking compliance with proper variable prefixing
  • ESLint warnings resolved with underscore prefix for unused parameters
  • Test regex patterns improved for better reliability
  • Version test to properly handle prerelease versions with dots (e.g., alpha.0)

Upgrade Instructions

No breaking changes. Simply update to the latest version:

```bash
npm install -g personas-mcp@latest
```

🤖 Generated with Claude Code