Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
feat: add structured changelog documentation system
Adam Eivy3985f92cdfaf
diff --git a/.changelog/README.md b/.changelog/README.mdnew file mode 100644index 0000000000..536e414600--- /dev/null+++ b/.changelog/README.md@@ -0,0 +1,196 @@+# Release Changelogs++This directory contains **all** release notes for PortOS. Unlike traditional projects that maintain a root `CHANGELOG.md` file, we use version-specific files that evolve with development and automatically archive on release.++**No root CHANGELOG.md needed** - all changelog content lives in this directory.++## Structure++Each minor version series has its own markdown file following the naming convention:++```+v{major}.{minor}.x.md+```++The "x" is a literal character, not a placeholder - it represents the entire minor version series (e.g., all 0.10.x releases share `v0.10.x.md`).++Examples:+- `v0.9.x.md` - Used for releases 0.9.1, 0.9.2, 0.9.3, etc.+- `v0.10.x.md` - Used for releases 0.10.1, 0.10.2, 0.10.3, etc.+- `v1.0.x.md` - Used for releases 1.0.1, 1.0.2, 1.0.3, etc.++Alternatively, you can create a specific version file (e.g., `v0.10.5.md`) which takes precedence over the pattern file.++## Format++Each changelog file should follow this structure:++```markdown+# Release v{major}.{minor}.x - {Descriptive Title}++Released: YYYY-MM-DD++## Overview++A brief summary of the release, highlighting the main theme or most important changes.++## 🎉 New Features++### Feature Category 1+- Feature description with technical details+- Another feature in this category++### Feature Category 2+- More features...++## 🐛 Bug Fixes++### Fix Category+- Description of what was fixed+- Impact and technical details++## 🔧 Improvements++### Improvement Category+- What was improved+- Why it matters++## 🗑️ Removed++### Deprecated Features+- What was removed+- Why it was removed++## 📦 Installation++\`\`\`bash+git clone https://github.com/atomantic/PortOS.git+cd PortOS+npm run install:all+pm2 start ecosystem.config.cjs+\`\`\`++## 🔗 Full Changelog++**Full Diff**: https://github.com/atomantic/PortOS/compare/v{prev}...v{major}.{minor}.x+```++## Workflow Integration++The GitHub Actions release workflow (`.github/workflows/release.yml`) automatically:++### During Release (on main)+1. Checks for an exact version changelog file (e.g., `v0.10.5.md`)+2. If not found, checks for a minor version pattern file (e.g., `v0.10.x.md`)+3. If found, replaces version placeholders with actual release version+4. Creates the GitHub release with the substituted changelog+5. If no changelog found, falls back to generating from git commits++### After Release (dev branch prep)+1. Checks out dev branch+2. If pattern file exists (e.g., `v0.10.x.md`):+ - Renames it to versioned file (e.g., `v0.10.5.md`) using `git mv` to preserve history+ - Replaces version placeholders in the renamed file+ - Commits the renamed file to dev with `[skip ci]`+ - Cherry-picks that commit to main with `[skip ci]`+3. Bumps dev branch to next minor version (e.g., 0.11.0)++This means:+- You maintain one `v0.10.x.md` file throughout development+- On release, it's renamed to the actual version (preserving git history)+- Dev and main both have the historical record matching the tag+- Git history shows the file evolution from `v0.10.x.md` → `v0.10.5.md`++## Creating a New Changelog++When working on a new minor version series (e.g., starting 0.10.x development):++1. **Start of Minor Version**: Create the changelog file when dev branch is bumped:+ ```bash+ # After main release bumps dev to 0.10.0, create the changelog+ cp .changelog/v0.9.x.md .changelog/v0.10.x.md++ # Edit the new file with template structure+ # Keep the version as "v0.10.x" throughout development+ ```++2. **During Development**: Update `.changelog/v0.10.x.md` **every time** you add features and fixes+ - This is your only changelog - no separate CHANGELOG.md file+ - Add entries under appropriate emoji sections (🎉 Features, 🐛 Fixes, 🔧 Improvements)+ - Keep the version in the file as `v0.10.x` (literal x)+ - Don't worry about the final patch number - it will be substituted automatically++3. **Before Merging to Main**: Final review and updates:+ - Ensure all changes are documented in `.changelog/v0.10.x.md`+ - Add release date (update "YYYY-MM-DD" to actual date)+ - Review and polish the content+ - Commit the changelog file++4. **On Release**: The GitHub Actions workflow will:+ - Read `.changelog/v0.10.x.md`+ - Replace all instances of `0.10.x` with the actual version (e.g., `0.10.5`)+ - Create the GitHub release with the substituted changelog+ - Create `.changelog/v0.10.5.md` in dev branch (archived copy)+ - Merge that archived file back to main with `[skip ci]`++5. **After Release**:+ - The pattern file `v0.10.x.md` is renamed to `v0.10.5.md` in dev branch+ - Main branch receives the same file via cherry-pick+ - Both branches now have the versioned file matching the tag+ - You'll need to create a new `v0.11.x.md` for the next minor version++## Best Practices++### ✅ Do:+- Update the changelog file **as you work** (not just before release)+- Use clear, descriptive section headings+- Group related changes together+- Include technical details where helpful+- Explain the "why" not just the "what"+- Use emoji section headers for visual organization (🎉 ✨ 🐛 🔧 🗑️ 📦)+- Link to relevant documentation or issues+- Include upgrade instructions for breaking changes+- Highlight security improvements+- Keep all changelog content in `.changelog/` directory only++### ❌ Don't:+- Create a root `CHANGELOG.md` file (all changelogs live in `.changelog/` directory)+- Use vague descriptions like "various improvements"+- Include internal implementation details users don't care about+- Repeat the same information in multiple sections+- Use raw commit messages without context+- Forget to update the release date before merging to main+- Leave placeholder or TODO content+- Change the version from `v0.10.x` to specific patch numbers during development++## Maintenance++### Updating Past Releases++If you need to update a past release's changelog:++1. Edit the `.changelog/v{version}.md` file+2. Update the GitHub release manually:+ ```bash+ gh release edit v{version} --notes-file .changelog/v{version}.md+ ```++### Consistency Check++Periodically verify that:+- All tagged releases have corresponding changelog files+- Root `CHANGELOG.md` is in sync with `.changelog/` directory+- Release dates match git tag dates+- Links to full diffs are correct++## Tools++### View Release on GitHub+```bash+gh release view v{version}+```++### Edit Release Notes+```bash+gh release edit v{version} --notes-file .changelog/v{version}.md+```diff --git a/.changelog/v0.10.x.md b/.changelog/v0.10.x.mdnew file mode 100644index 0000000000..6593c96150--- /dev/null+++ b/.changelog/v0.10.x.md@@ -0,0 +1,48 @@+# Release v0.10.x - Changelog Documentation System++Released: 2026-01-XX++## Overview++This release introduces a structured changelog documentation system for creating rich, detailed release notes. The system follows best practices from our other projects and integrates seamlessly with GitHub Actions to automatically create professional release descriptions.++## 🎉 New Features++### Changelog Documentation System+- **Structured Release Notes**: Added `.changelog/` directory with `v{major}.{minor}.x.md` naming pattern+- **Comprehensive README**: Created detailed documentation for changelog format and best practices+- **GitHub Actions Integration**: Updated release workflow to automatically use changelog files with version substitution+- **Fallback Support**: Maintains automatic commit-based changelogs when manual changelog is not provided+- **Automatic File Rename**: Pattern files (e.g., `v0.10.x.md`) automatically renamed to versioned files (e.g., `v0.10.5.md`) on release, preserving git history++### Documentation Updates+- **CLAUDE.md Updates**: Added detailed release changelog process instructions+- **Best Practices Guide**: Documented when and how to create changelog files+- **Format Templates**: Provided clear structure with emoji-based sections for visual organization++## 🔧 Improvements++### Release Process+- **Rich Release Descriptions**: GitHub releases now support detailed, categorized changelogs+- **Flexible Workflow**: Developers can choose between detailed changelogs or auto-generated commit logs+- **Consistency**: Standardized release note format across all versions+- **Version Substitution**: Workflow automatically replaces version placeholders with actual release version+- **Git History Preservation**: Pattern files renamed using `git mv` to maintain full file history++### Developer Experience+- **Clear Guidelines**: Comprehensive documentation in `.changelog/README.md`+- **Easy Maintenance**: Simple process for creating and updating release notes+- **Tool Integration**: Instructions for using `gh` CLI to manage releases++## 📦 Installation++```bash+git clone https://github.com/atomantic/PortOS.git+cd PortOS+npm run install:all+pm2 start ecosystem.config.cjs+```++## 🔗 Full Changelog++**Full Diff**: https://github.com/atomantic/PortOS/compare/v0.9.9...v0.10.xdiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 26ee0cc271..90fc60b968 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -46,11 +46,42 @@ jobs:id: changelogif: steps.tag-check.outputs.exists == 'false'run: |- # Get the previous tag or use initial commit- PREV_TAG=$(git describe --tags --abbrev=0 2>/dev/null || git rev-list --max-parents=0 HEAD)+ VERSION="${{ steps.package-version.outputs.version }}"+ MAJOR_MINOR=$(echo $VERSION | cut -d. -f1-2)++ # Try exact version first (e.g., v0.10.5.md), then minor.x pattern (e.g., v0.10.x.md)+ CHANGELOG_FILE_EXACT=".changelog/v${VERSION}.md"+ CHANGELOG_FILE_PATTERN=".changelog/v${MAJOR_MINOR}.x.md"++ if [ -f "$CHANGELOG_FILE_EXACT" ]; then+ # Use exact version changelog+ CHANGELOG=$(cat "$CHANGELOG_FILE_EXACT")+ elif [ -f "$CHANGELOG_FILE_PATTERN" ]; then+ # Use minor version pattern changelog (e.g., v0.10.x.md)+ CHANGELOG=$(cat "$CHANGELOG_FILE_PATTERN")+ # Replace version placeholder with actual version+ CHANGELOG=$(echo "$CHANGELOG" | sed "s/v${MAJOR_MINOR}.x/v${VERSION}/g" | sed "s/${MAJOR_MINOR}.x/${VERSION}/g")+ else+ # Fallback: Generate changelog from commits (exclude [skip ci] commits)+ PREV_TAG=$(git describe --tags --abbrev=0 2>/dev/null || git rev-list --max-parents=0 HEAD)+ COMMIT_LOG=$(git log $PREV_TAG..HEAD --pretty=format:"- %s" --no-merges | grep -v "\[skip ci\]" | head -50)++ # Create a basic changelog structure+ CHANGELOG="# Release v${VERSION}++ ## Changes++ ${COMMIT_LOG}- # Generate changelog from commits (exclude [skip ci] commits)- CHANGELOG=$(git log $PREV_TAG..HEAD --pretty=format:"- %s" --no-merges | grep -v "\[skip ci\]" | head -50)+ ## Installation++ \`\`\`bash+ git clone https://github.com/atomantic/PortOS.git+ cd PortOS+ npm run install:all+ pm2 start ecosystem.config.cjs+ \`\`\`"+ fi# Handle multiline outputecho "changelog<<EOF" >> $GITHUB_OUTPUT@@ -63,19 +94,7 @@ jobs:with:tag_name: v${{ steps.package-version.outputs.version }}name: v${{ steps.package-version.outputs.version }}- body: |- ## Changes-- ${{ steps.changelog.outputs.changelog }}-- ## Installation-- ```bash- git clone https://github.com/atomantic/PortOS.git- cd PortOS- npm run install:all- pm2 start ecosystem.config.cjs- ```+ body: ${{ steps.changelog.outputs.changelog }}draft: falseprerelease: falseenv:@@ -84,12 +103,11 @@ jobs:- name: Prep dev branch for next releaseif: steps.tag-check.outputs.exists == 'false'run: |- # Get current version+ # Get current version (the one we just released)CURRENT_VERSION=${{ steps.package-version.outputs.version }}-- # Split into partsMAJOR=$(echo $CURRENT_VERSION | cut -d. -f1)MINOR=$(echo $CURRENT_VERSION | cut -d. -f2)+ MAJOR_MINOR="$MAJOR.$MINOR"# Increment minor, reset patch to 0NEW_MINOR=$((MINOR + 1))@@ -99,12 +117,36 @@ jobs:git fetch origin devgit checkout dev- # Update package.json files+ # Rename and version the changelog file+ PATTERN_FILE=".changelog/v${MAJOR_MINOR}.x.md"+ VERSIONED_FILE=".changelog/v${CURRENT_VERSION}.md"++ if [ -f "$PATTERN_FILE" ]; then+ # Rename the file (preserves git history)+ git mv "$PATTERN_FILE" "$VERSIONED_FILE"++ # Replace version placeholders in the renamed file+ sed -i.bak "s/v${MAJOR_MINOR}\.x/v${CURRENT_VERSION}/g; s/${MAJOR_MINOR}\.x/${CURRENT_VERSION}/g" "$VERSIONED_FILE"+ rm "${VERSIONED_FILE}.bak"++ # Commit the renamed and updated changelog+ git add "$VERSIONED_FILE"+ git commit -m "docs: archive changelog for v${CURRENT_VERSION} [skip ci]"+ git push origin dev++ # Merge changelog back to main (without triggering CI)+ git checkout main+ git cherry-pick HEAD~1+ git push origin main+ git checkout dev+ fi++ # Update package.json files for next versionnpm version $NEW_VERSION --no-git-tag-versioncd client && npm version $NEW_VERSION --no-git-tag-version && cd ..cd server && npm version $NEW_VERSION --no-git-tag-version && cd ..- # Commit and push+ # Commit and push version bumpgit add package.json package-lock.json client/package.json server/package.jsongit commit -m "build: prep v$NEW_VERSION for next release [skip ci]"git push origin devdiff --git a/CLAUDE.md b/CLAUDE.mdindex 1e3a6f0cf4..d0de2372cc 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -79,6 +79,57 @@ port-error: #ef4444- **main**: Production releases only- PR `dev → main` creates tagged release and preps next version- **Use `/gitup` to push** - The dev branch receives auto version bump commits from CI. Always use `git pull --rebase --autostash && git push` (or `/gitup`) instead of plain `git push`.+- Update `.changelog/v{major}.{minor}.x.md` when making changes (see Release Changelog Process below)- commit code after each feature or bug fixSee `docs/VERSIONING.md` for details.++## Release Changelog Process++All release notes are maintained in `.changelog/v{major}.{minor}.x.md` files (e.g., `.changelog/v0.10.x.md`). Each minor version series has a single changelog file that accumulates changes throughout development.++### Starting a New Minor Version++When `dev` is bumped to a new minor version (e.g., 0.10.0), create a new changelog file:++```bash+# Copy previous version as template+cp .changelog/v0.9.x.md .changelog/v0.10.x.md+# Edit to clear content but keep structure+# Keep version as "v0.10.x" (literal x, not a placeholder)+```++### During Development++**Always update `.changelog/v0.10.x.md`** when you make changes:+- Add entries under appropriate emoji sections (🎉 Features, 🐛 Fixes, 🔧 Improvements, 🗑️ Removed)+- Keep the version as `v0.10.x` throughout development (don't change it to 0.10.1, 0.10.2, etc.)+- Group related changes together for clarity+- Explain the "why" not just the "what"++### Before Releasing to Main++Final review before merging `dev → main`:+- Ensure all changes are documented in `.changelog/v0.10.x.md`+- Add the release date (update "YYYY-MM-DD" to actual date)+- Polish descriptions for clarity+- Commit the changelog++### On Release (Automated)++When you merge to `main`, the GitHub Actions workflow automatically:+1. Reads `.changelog/v0.10.x.md`+2. Replaces all instances of `0.10.x` with actual version (e.g., `0.10.5`)+3. Creates the GitHub release with substituted changelog+4. Checks out dev branch+5. Renames `v0.10.x.md` → `v0.10.5.md` using `git mv` (preserves git history)+6. Commits the renamed file to dev: `"docs: archive changelog for v0.10.5 [skip ci]"`+7. Cherry-picks that commit to main+8. Bumps dev to next minor version (e.g., 0.11.0)++**Result:**+- Both `dev` and `main` have `.changelog/v0.10.5.md` matching the tagged release+- Git history shows: `v0.10.x.md` → `v0.10.5.md` (rename)+- You create `.changelog/v0.11.x.md` to start the next development cycle++See `.changelog/README.md` for detailed format and best practices.diff --git a/LICENSE b/LICENSEnew file mode 100644index 0000000000..7b82f23539--- /dev/null+++ b/LICENSE@@ -0,0 +1,21 @@+MIT License++Copyright (c) 2025 Adam Eivy (@antic|@atomantic)++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.diff --git a/client/src/pages/Media.jsx b/client/src/pages/Media.jsxindex 986aa54e2b..e0e5266678 100644--- a/client/src/pages/Media.jsx+++ b/client/src/pages/Media.jsx@@ -21,6 +21,7 @@ export default function Media() {const [audioLevel, setAudioLevel] = useState(0);const [showSettings, setShowSettings] = useState(false);const [isLoading, setIsLoading] = useState(false);+ const [audioNeedsInteraction, setAudioNeedsInteraction] = useState(false);// Load saved device preferencesuseEffect(() => {@@ -67,10 +68,16 @@ export default function Media() {}const audioContext = new (window.AudioContext || window.webkitAudioContext)();+ console.log(`🎤 AudioContext created, state: ${audioContext.state}`);// Resume AudioContext if suspended (browser autoplay policy)if (audioContext.state === 'suspended') {- await audioContext.resume();+ console.log(`🎤 AudioContext suspended, attempting resume...`);+ await audioContext.resume().catch(err => {+ console.error(`❌ Failed to resume AudioContext: ${err.message}`);+ setAudioNeedsInteraction(true);+ });+ console.log(`🎤 AudioContext state after resume: ${audioContext.state}`);}const analyser = audioContext.createAnalyser();@@ -100,12 +107,34 @@ export default function Media() {};updateLevel();+ console.log(`🎤 Audio analyser setup complete`);+ }, []);++ // Enable audio with user interaction (for mobile browsers)+ const enableAudio = useCallback(async () => {+ if (audioRef.current && audioContextRef.current) {+ console.log(`🎤 User interaction: attempting to enable audio`);++ // Resume AudioContext+ if (audioContextRef.current.state === 'suspended') {+ await audioContextRef.current.resume();+ console.log(`🎤 AudioContext resumed: ${audioContextRef.current.state}`);+ }++ // Play audio element+ await audioRef.current.play();+ console.log(`🎤 Audio playback started`);++ setAudioNeedsInteraction(false);+ setError(null);+ }}, []);// Start media stream from serverconst startMedia = useCallback(async () => {setIsLoading(true);setError(null);+ setAudioNeedsInteraction(false);// Start streaming on serverawait api.post('/media/start', {@@ -124,19 +153,27 @@ export default function Media() {if (!streaming) return;const timestamp = Date.now();+ const protocol = window.location.protocol;// Set video source to server streamif (videoRef.current && videoEnabled) {- videoRef.current.src = `http://${window.location.hostname}:5554/api/media/video?t=${timestamp}`;+ videoRef.current.src = `${protocol}//${window.location.hostname}:5554/api/media/video?t=${timestamp}`;+ console.log(`📹 Video stream URL: ${videoRef.current.src}`);}// Set audio source to server stream and set up analyzerif (audioRef.current && audioEnabled) {- audioRef.current.src = `http://${window.location.hostname}:5554/api/media/audio?t=${timestamp}`;+ audioRef.current.src = `${protocol}//${window.location.hostname}:5554/api/media/audio?t=${timestamp}`;+ console.log(`🎤 Audio stream URL: ${audioRef.current.src}`);+audioRef.current.play().then(() => {+ console.log(`🎤 Audio playback started successfully`);setupAudioAnalyser(audioRef.current);}).catch(err => {- console.error('Audio playback error:', err);+ console.error(`❌ Audio playback error: ${err.message}`);+ // On mobile browsers, autoplay is often blocked - show interaction prompt+ setAudioNeedsInteraction(true);+ setupAudioAnalyser(audioRef.current); // Set up analyser anyway for when user enables});}}, [streaming, videoEnabled, audioEnabled, setupAudioAnalyser]);@@ -247,6 +284,29 @@ export default function Media() {</div>)}+ {/* Audio interaction prompt for mobile browsers */}+ {audioNeedsInteraction && streaming && audioEnabled && (+ <div className="mb-6 p-4 bg-port-warning/10 border border-port-warning/30 rounded-lg">+ <div className="flex items-center justify-between gap-4">+ <div className="flex items-center gap-3">+ <Volume2 size={20} className="text-port-warning" />+ <div>+ <p className="text-port-warning font-medium">Audio requires interaction</p>+ <p className="text-sm text-gray-400 mt-1">+ Your browser requires user interaction to enable audio playback+ </p>+ </div>+ </div>+ <button+ onClick={enableAudio}+ className="px-4 py-2 bg-port-warning text-white rounded-lg font-medium hover:bg-port-warning/80 transition-colors whitespace-nowrap"+ >+ Enable Audio+ </button>+ </div>+ </div>+ )}+{/* Settings panel */}{showSettings && (<div className="mb-6 p-4 bg-port-card border border-port-border rounded-xl">diff --git a/package.json b/package.jsonindex df2b482854..d61ff166b0 100644--- a/package.json+++ b/package.json@@ -3,6 +3,8 @@"version": "0.9.10","private": true,"description": "Local dev machine App OS portal",+ "author": "Adam Eivy (@antic|@atomantic)",+ "license": "MIT","type": "module","scripts": {"dev": "concurrently \"npm run dev:server\" \"npm run dev:client\"",