chore: 清理残留目录,归档旧文件

- 移动 7 个残留 agent 目录到 agents-archived/
- 移动配置文件备份(clobbered/bak/pre-*)到 archived/
- 移动 qqbot/、rss-reader.py、rss-sources.xml 等到 archived/
This commit is contained in:
2026-07-09 18:54:06 +08:00
parent f3abba0881
commit 9c2d594c7c
18 changed files with 11 additions and 4 deletions
@@ -0,0 +1 @@
{"kind":"gateway-supervisor-restart-handoff","version":1,"intentId":"6a27f6fc-5ffd-48b8-bbd4-304eb9367aea","pid":378,"processInstanceId":"adf773e3-6c9c-419e-a85b-4091c0c10089","createdAt":1782953815876,"expiresAt":1782953875876,"reason":"update.run","source":"gateway-update","restartKind":"update-process","supervisorMode":"systemd"}
+60
View File
@@ -0,0 +1,60 @@
#!/usr/bin/env python3
"""
Simple RSS Reader
"""
import rssparser
import feedparser
import json
import sys
from datetime import datetime
def read_feed(url):
"""Read RSS feed and return parsed items"""
try:
feed = feedparser.parse(url)
return {
'title': feed.get('title', 'Unknown'),
'link': feed.get('link', ''),
'description': feed.get('description', ''),
'language': feed.get('language', ''),
'items': [
{
'title': item.get('title', 'No title'),
'link': item.get('link', ''),
'description': item.get('description', ''),
'pubDate': item.get('pubDate', ''),
'author': item.get('author', '')
}
for item in feed.get('items', [])[:10] # Get first 10 items
]
}
except Exception as e:
return {'error': str(e)}
if __name__ == '__main__':
if len(sys.argv) < 2:
print("Usage: python3 rss-reader.py <rss-url>")
sys.exit(1)
url = sys.argv[1]
print(f"Fetching RSS feed: {url}\n")
data = read_feed(url)
if 'error' in data:
print(f"Error: {data['error']}")
else:
print(f"Title: {data['title']}")
print(f"Language: {data['language']}")
print(f"Last updated: {data.get('description', 'N/A')[:100]}...\n")
print(f"{'='*60}")
print(f"Articles ({len(data['items'])} items)\n")
print(f"{'='*60}\n")
for i, item in enumerate(data['items'], 1):
print(f"{i}. {item['title']}")
print(f" Link: {item['link']}")
print(f" Published: {item['pubDate']}")
if item['author']:
print(f" Author: {item['author']}")
print()
+17
View File
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
<channel>
<atom:link href="https://www.gulf-times.com/rssFeed/6" rel="self" type="application/rss+xml"/>
<lastBuildDate>Wed, 18 Mar 2026 04:40:32 +0300</lastBuildDate>
<title><![CDATA[Gulf Times - Region News]]></title>
<image>
<url>https://www.gulf-times.com/theme_gulftimes/images/logo.png</url>
<link>https://www.gulf-times.com/</link>
<title><![CDATA[Gulf Times]]></title>
</image>
<description><![CDATA[ Gulf Times RSS Feed: Region News - Middle East Updates ]]></description>
<copyright><![CDATA[Copyright 2026, Gulf Times]]></copyright>
<link>https://www.gulf-times.com/</link>
<ttl>60</ttl>
</channel>
</rss>
+7
View File
@@ -0,0 +1,7 @@
{
"lastCheckedAt": "2026-06-30T23:49:31.990Z",
"lastNotifiedVersion": "2026.6.11",
"lastNotifiedTag": "latest",
"lastAvailableVersion": "2026.6.11",
"lastAvailableTag": "latest"
}