mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-30 12:29:27 +00:00
fix: keep llms release version in sync
This commit is contained in:
@@ -109,7 +109,11 @@ jobs:
|
|||||||
sed -i "s/\"softwareVersion\": \".*\"/\"softwareVersion\": \"$VERSION\"/" website/template.html
|
sed -i "s/\"softwareVersion\": \".*\"/\"softwareVersion\": \"$VERSION\"/" website/template.html
|
||||||
echo " ✓ website/template.html -> softwareVersion $VERSION"
|
echo " ✓ website/template.html -> softwareVersion $VERSION"
|
||||||
|
|
||||||
# 6. README.md — version badge & banner
|
# 6. website/llms.txt — machine-readable release metadata
|
||||||
|
sed -i "s/Current website release: .*/Current website release: $VERSION/" website/llms.txt
|
||||||
|
echo " ✓ website/llms.txt -> $VERSION"
|
||||||
|
|
||||||
|
# 7. README.md — version badge & banner
|
||||||
sed -i "s|Release-v[0-9]\+\.[0-9]\+\.[0-9]\+-blue|Release-v$VERSION-blue|g" README.md
|
sed -i "s|Release-v[0-9]\+\.[0-9]\+\.[0-9]\+-blue|Release-v$VERSION-blue|g" README.md
|
||||||
sed -i "s/New v[0-9]\+\.[0-9]\+\.[0-9]\+ Release/New v$VERSION Release/g" README.md
|
sed -i "s/New v[0-9]\+\.[0-9]\+\.[0-9]\+ Release/New v$VERSION Release/g" README.md
|
||||||
echo " ✓ README.md -> v$VERSION"
|
echo " ✓ README.md -> v$VERSION"
|
||||||
@@ -120,7 +124,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.email "action@github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "GitHub Action"
|
||||||
git add extension/manifest.base.json shared/constants.js package.json website/version.json website/template.html README.md
|
git add extension/manifest.base.json shared/constants.js package.json website/version.json website/template.html website/llms.txt README.md
|
||||||
git commit -m "chore(release): update versions to $GITHUB_REF_NAME [skip ci]" || echo "No changes to commit"
|
git commit -m "chore(release): update versions to $GITHUB_REF_NAME [skip ci]" || echo "No changes to commit"
|
||||||
git push origin HEAD:main
|
git push origin HEAD:main
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ const germanImprintPage = fs.readFileSync(path.join(repoRoot, 'website', 'impres
|
|||||||
const alternativesIndex = fs.readFileSync(path.join(repoRoot, 'website', 'alternatives', 'index.html'), 'utf8');
|
const alternativesIndex = fs.readFileSync(path.join(repoRoot, 'website', 'alternatives', 'index.html'), 'utf8');
|
||||||
const alternativesCss = fs.readFileSync(path.join(repoRoot, 'website', 'styles', 'alternatives.css'), 'utf8');
|
const alternativesCss = fs.readFileSync(path.join(repoRoot, 'website', 'styles', 'alternatives.css'), 'utf8');
|
||||||
const llmsText = fs.readFileSync(path.join(repoRoot, 'website', 'llms.txt'), 'utf8');
|
const llmsText = fs.readFileSync(path.join(repoRoot, 'website', 'llms.txt'), 'utf8');
|
||||||
|
const websiteVersion = JSON.parse(fs.readFileSync(path.join(repoRoot, 'website', 'version.json'), 'utf8')).version;
|
||||||
const mockupStart = template.indexOf('<div class="extension-mockup">');
|
const mockupStart = template.indexOf('<div class="extension-mockup">');
|
||||||
const mockupEnd = template.indexOf('<div class="demo-invite-fly"', mockupStart);
|
const mockupEnd = template.indexOf('<div class="demo-invite-fly"', mockupStart);
|
||||||
|
|
||||||
@@ -63,6 +64,9 @@ for (const section of requiredLlmsSections) {
|
|||||||
if (/\bWebRTC\b|\bport 54000\b|peer-to-peer by design/i.test(llmsText)) {
|
if (/\bWebRTC\b|\bport 54000\b|peer-to-peer by design/i.test(llmsText)) {
|
||||||
throw new Error('llms.txt must describe the current WebSocket relay architecture without obsolete WebRTC or port claims');
|
throw new Error('llms.txt must describe the current WebSocket relay architecture without obsolete WebRTC or port claims');
|
||||||
}
|
}
|
||||||
|
if (!llmsText.includes(`Current website release: ${websiteVersion}`)) {
|
||||||
|
throw new Error(`llms.txt release must match website/version.json (${websiteVersion})`);
|
||||||
|
}
|
||||||
const documentedRelayUrls = [...llmsText.matchAll(/`(wss:\/\/[^`\s]+)`/g)].map(([, value]) => new URL(value));
|
const documentedRelayUrls = [...llmsText.matchAll(/`(wss:\/\/[^`\s]+)`/g)].map(([, value]) => new URL(value));
|
||||||
const hasCanonicalPublicRelay = documentedRelayUrls.some((url) => (
|
const hasCanonicalPublicRelay = documentedRelayUrls.some((url) => (
|
||||||
url.protocol === 'wss:' &&
|
url.protocol === 'wss:' &&
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
+1
-1
@@ -78,7 +78,7 @@ Compatibility depends on each website's player implementation and can change whe
|
|||||||
|
|
||||||
## Technical information
|
## Technical information
|
||||||
|
|
||||||
- Current website release: 2.5.4
|
- Current website release: 2.6.1
|
||||||
- License: MIT
|
- License: MIT
|
||||||
- Extension runtime: dependency-free browser extension code
|
- Extension runtime: dependency-free browser extension code
|
||||||
- Relay: Node.js with Socket.IO-compatible WebSocket messaging
|
- Relay: Node.js with Socket.IO-compatible WebSocket messaging
|
||||||
|
|||||||
Reference in New Issue
Block a user