fraglet-entrypoint v0.2.0
Release v0.2.0
Key Highlights
Major update with improved documentation commands, simplified configuration, and dynamic usage generation.
✨ New Features
Dynamic Usage Documentation
usagecommand: Generates container usage documentation dynamically from configuration- Shows docker run commands with correct mount paths
- Displays injection details (code path, marker location)
- Includes functional examples with code from target files
- Always available, even without static documentation files
Simplified Command Structure
guidecommand: Replacesagent-help- displays static authoring guide for writing fragletsusagecommand: Replaceshow-to- displays dynamic container usage documentation- Clear separation:
usage= running containers (dynamic),guide= authoring fraglets (static)
🔄 Breaking Changes
Command Renames
agent-help→guide(static authoring documentation)how-to→usage(dynamic container usage)how-tocommand removed entirely
Configuration Changes
- Config file renamed:
fraglet-entrypoint.yaml→fraglet.yaml(orfraglet.yml)- Config lookup checks both
.yamland.ymlextensions - Default path:
/fraglet.yaml
- Config lookup checks both
- Config field renamed:
agentHelp→guide - Config field removed:
howTo(replaced by dynamicusagecommand) - Default guide path:
/guide.md(was/agent-help.md)
🔧 Configuration
Updated Config File Format
fragletTempPath: /FRAGLET
injection:
codePath: /path/to/target-script.sh
match: FRAGLET
guide: /guide.md
execution:
path: /path/to/target-script.sh
makeExecutable: trueConfig File Lookup
FRAGLET_CONFIGenvironment variable (if set)fraglet.yamlorfraglet.ymlas sibling to binary/fraglet.yaml(default)
📝 Usage Examples
View Container Usage
docker run --rm <container> usageView Authoring Guide
docker run --rm <container> guide🐛 Improvements
- Mount paths in usage output are normalized to absolute paths for clarity
- Usage examples show only the code at marker locations, not entire files
- Better error handling when documentation files are missing
- Improved functional examples in usage output
📚 Migration Guide
Updating Config Files
Before (v0.1.0):
agentHelp: /agent-help.md
howTo: /how-to.mdAfter (v0.2.0):
guide: /guide.md
# usage is now dynamic, no config neededUpdating Container Commands
Before:
docker run <container> agent-help
docker run <container> how-toAfter:
docker run <container> guide
docker run <container> usageRenaming Config Files
Rename fraglet-entrypoint.yaml to fraglet.yaml (or fraglet.yml).
Quick Start
# Download the binary for your platform
# Extract and place in your container
# Create a fraglet.yaml configuration
cat > fraglet.yaml <<EOF
fragletTempPath: /FRAGLET
injection:
codePath: /path/to/script.sh
match: FRAGLET
guide: /guide.md
execution:
path: /path/to/script.sh
makeExecutable: true
EOF
# Use as container entrypoint
ENTRYPOINT ["/usr/local/bin/fraglet-entrypoint"]