dsh-soul-forging 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/sync +7 -7
- package/package.json +7 -2
package/bin/sync
CHANGED
|
@@ -8,13 +8,13 @@ LOCK=/tmp/soul-sync.lock
|
|
|
8
8
|
exec 9>"$LOCK"
|
|
9
9
|
if ! flock -n 9; then echo "同步已在运行,跳过"; exit 0; fi
|
|
10
10
|
|
|
11
|
-
R
|
|
12
|
-
$
|
|
13
|
-
$
|
|
14
|
-
$
|
|
15
|
-
$
|
|
16
|
-
$
|
|
17
|
-
[ -n "${SOUL_BACKUP_CMD:-}" ] && { $
|
|
11
|
+
R() { "$PY" "$BIN_DIR/runlog" "$@"; }; rc=0
|
|
12
|
+
"$PY" "$BIN_DIR/runlog" "live-summary" -- "$PY" "$MEMKIT_ROOT/brain/fix-live-summary.py" || rc=$((rc+1))
|
|
13
|
+
"$PY" "$BIN_DIR/runlog" "archive-log" -- bash "$BIN_DIR/archive-log" || rc=$((rc+2))
|
|
14
|
+
"$PY" "$BIN_DIR/runlog" "index" -- "$PY" "$MEMKIT_ROOT/brain/index.py" || rc=$((rc+4))
|
|
15
|
+
"$PY" "$BIN_DIR/runlog" "reload" -- bash -c "curl -s -m 5 -X POST $BRAIN_URL/reload >/dev/null" || rc=$((rc+8))
|
|
16
|
+
"$PY" "$BIN_DIR/runlog" "check" -- bash "$BIN_DIR/soul" check || rc=$((rc+16))
|
|
17
|
+
[ -n "${SOUL_BACKUP_CMD:-}" ] && { "$PY" "$BIN_DIR/runlog" "backup" -- bash -c "$SOUL_BACKUP_CMD" || rc=$((rc+32)); }
|
|
18
18
|
|
|
19
19
|
if [ $rc -eq 0 ]; then echo "sync ok"; else echo "sync 有失败项 rc=$rc(看 $BRAIN_DIR/alarm.log)"; fi
|
|
20
20
|
exit 0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-soul-forging",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Separate Vessels, One Heart · 异体同心 —— 给 AI 的可迁移长期记忆与铸魂流程:markdown 记忆库 + 小脑检索 + 能长出来的性格。纯本地,不要服务器。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -20,7 +20,12 @@
|
|
|
20
20
|
"soul-compact": "./bin/compact",
|
|
21
21
|
"soul-snapshot": "./bin/mem-snapshot",
|
|
22
22
|
"soul-peer": "./bin/soul-peer",
|
|
23
|
-
"soul-debug": "./bin/debug-archive"
|
|
23
|
+
"soul-debug": "./bin/debug-archive",
|
|
24
|
+
"soul-archive": "./bin/archive-log",
|
|
25
|
+
"soul-sediment": "./bin/persona-sediment",
|
|
26
|
+
"soul-review": "./bin/growth-review",
|
|
27
|
+
"soul-debug-recall": "./bin/debug-recall",
|
|
28
|
+
"soul-debug-detail": "./bin/summarize-debug"
|
|
24
29
|
},
|
|
25
30
|
"files": [
|
|
26
31
|
"lib",
|