跳到正文
cccskills
免费在 GitHub 公开

global-sync

Use for multi-machine HTTP delta sync with peer management.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md3.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Global State Sync

Multi-Machine State Synchronization für OpenAmer.

Überblick

Global State Sync synchronisiert OpenAmer-Zustände (Skills, Cron, Scripts, Config, Sessions) zwischen mehreren Maschinen über HTTP. Nur geänderte Dateien seit dem letzten Sync werden übertragen (Delta-Only). Bei Timestamp-Konflikten gewinnt die neuere Version; die verlierende Version wird in .global-sync/conflicts/ gespeichert.

Architektur

+-------------------+          HTTP POST /sync           +-------------------+
|  Maschine A       |  ──────────────────────────────►   |  Maschine B       |
|  Port 8902        |  JSON-Delta + SHA256-Signatur      |  Port 8902        |
|  Sync-Thread 60m  |  ◄──────────────────────────────   |  Sync-Thread 60m  |
+-------------------+          JSON-Delta + Signatur     +-------------------+

Installation

Das Script liegt unter scripts/global-sync.py (OpenAmer Home) und wird via Config in .global-sync/config.json gesteuert.

Verwendung

# Status anzeigen
python scripts/global-sync.py --status

# Peer hinzufügen
python scripts/global-sync.py --add-peer mein-server 192.168.1.100:8902

# Sofort syncen
python scripts/global-sync.py --sync-now

# Server starten (Daemon-Modus)
python scripts/global-sync.py --start

# Peer-Liste anzeigen
python scripts/global-sync.py --peers

# Neues Token setzen
python scripts/global-sync.py --token MEIN_NEUES_SICHERES_TOKEN

Konfiguration

.global-sync/config.json:

{
  "peers": [
    {"name": "server1", "host": "192.168.1.100", "port": 8902}
  ],
  "sync_interval_minutes": 60,
  "sync_items": ["skills", "cron", "scripts", "config", "sessions"],
  "token": "DEIN_SICHERES_TOKEN",
  "server_port": 8902
}

sync_items

  • skills — OpenAmer Skills
  • cron — Cron-Job-Definitionen
  • scripts — Python-Scripte
  • config — config.yaml
  • sessions — Session-Dumps

Sicherheit

  • Jeder Request enthält einen SHA256-HMAC über den Body.
  • Der Shared-Token wird in der Config gespeichert.
  • Nur der SHA256-Hash des Tokens wird im Header übertragen.
  • Port 8902 sollte hinter einer Firewall liegen.

Konfliktlösung

BedingungErgebnis
Remote neuer als lokalRemote-Version überschreibt lokale
Lokal neuer als remoteLokale Version bleibt; Remote in .global-sync/conflicts/
Gleicher TimestampRemote gewinnt (idempotent)

Dateien

PfadBeschreibung
~/.global-sync/config.jsonSync-Konfiguration
~/.global-sync/conflicts/Konflikt-Dateien
~/.global-sync/last_sync.txtTimestamp des letzten Syncs
scripts/global-sync.pyHauptscript

Cron-Job

Ein Cron-Job führt --sync-now alle 60 Minuten aus.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Build integrated IS/BS/CF financial workbooks in Excel.

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月20日 更新

a2a-swarm

免费

Run and grow the OpenAmer Agent-to-Agent swarm: identity, trust, node-to-node ask, signed skill/insight sharing, and the autonomous self-learning loop.

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月20日 更新

Use for A/B experiments on OpenAmer configs and skills.

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月20日 更新

Roleplay a hostile user to find and triage UX pain points.

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月20日 更新

Agent mesh: master/worker nodes, HTTP delegation, heartbeat.

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月20日 更新

Use for agentic commerce payments tasks. Candidate synthesized from trend radar; awaiting trial promotion.

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月20日 更新

查看 openamer 的全部技能

报告此技能的问题