@yottameta/yotta-memory 0.22.4 → 0.22.6
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/CHANGELOG.md +18 -0
- package/README.zh-CN.md +1 -1
- package/SKILL.md +2 -2
- package/USER_GUIDE.md +2 -1
- package/assets/view.html +33 -6
- package/bin/install.js +12 -1
- package/bin/yotta-memory.js +414 -146
- package/install.sh +10 -1
- package/package.json +1 -1
- package/skill-manifest.json +1 -1
package/install.sh
CHANGED
|
@@ -127,7 +127,7 @@ assert_safe_target() {
|
|
|
127
127
|
|
|
128
128
|
# 清理旧版安装残留(fail-closed 白名单):仅在目标目录已存在且含 SKILL.md 时触发;
|
|
129
129
|
# 只删顶层开发项 + 任意层级缓存;不整目录删除、不跟随符号链接。
|
|
130
|
-
DEV_SKIP="package.json package-lock.json bin lib test .github .git .gitignore .npmignore .gitattributes .yotta .tmp install.sh node_modules"
|
|
130
|
+
DEV_SKIP="package.json package-lock.json bin lib test .github .git .gitignore .npmignore .gitattributes .yotta .tmp install.sh node_modules test-fixtures"
|
|
131
131
|
clean_residue() {
|
|
132
132
|
local dest="$1" name p
|
|
133
133
|
[ -d "$dest" ] || return 0
|
|
@@ -140,6 +140,12 @@ clean_residue() {
|
|
|
140
140
|
echo "已清理残留: $name"
|
|
141
141
|
fi
|
|
142
142
|
done
|
|
143
|
+
for p in "$dest"/*.tgz; do
|
|
144
|
+
[ -e "$p" ] || continue
|
|
145
|
+
[ -L "$p" ] && continue
|
|
146
|
+
rm -f -- "$p"
|
|
147
|
+
echo "已清理残留: $(basename "$p")"
|
|
148
|
+
done
|
|
143
149
|
find "$dest" -type d \( -name '__pycache__' -o -name '.pytest_cache' -o -name '.mypy_cache' \) -prune -exec rm -rf -- {} + 2>/dev/null || true
|
|
144
150
|
find "$dest" -type f \( -name '*.pyc' -o -name '*.pyo' \) -delete 2>/dev/null || true
|
|
145
151
|
}
|
|
@@ -156,6 +162,9 @@ copy_tree() {
|
|
|
156
162
|
__pycache__|.pytest_cache|.mypy_cache) continue ;;
|
|
157
163
|
esac
|
|
158
164
|
if [ "$top" = "1" ]; then
|
|
165
|
+
case "$base" in
|
|
166
|
+
*.tgz) continue ;;
|
|
167
|
+
esac
|
|
159
168
|
case " $DEV_SKIP " in
|
|
160
169
|
*" $base "*) continue ;;
|
|
161
170
|
esac
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yottameta/yotta-memory",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.6",
|
|
4
4
|
"description": "Yuanyi (元忆) — boundary-aware, file-based memory for AI agents. File-based, zero-dependency, diff/rollback-able; FACT/PREF/BOUND/COMMIT types (public shared / private isolated), user-level + project-level storage; v0.12 reliability baseline (init guard, trash-based deletion, independent-volume backup/list/doctor/restore, start-of-work doctor, transactional snapshots before destructive writes), v0.10 consolidation (periodic summaries with provenance, near-duplicate auto-merge, per-type decay, batch audit + rollback), v0.9 recall quality + context focus + optional local embedding plugin, plus v0.8 semantic search, feedback loop, self-organization and distillation.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|