@yottameta/yotta-memory 0.5.1 → 0.5.2

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/SKILL.md CHANGED
@@ -1,14 +1,14 @@
1
1
  ---
2
2
  name: yotta-memory
3
3
  description: "元忆 —— 有权限边界的文件式智能体记忆。文件式、零依赖、可 diff/回滚:让任何 AI 智能体活过会话,开工 recall 恢复上下文、重要信息 remember 落盘、收工归档。类型体系 FACT(公共共享)/ PREF / BOUND / COMMIT(私密隔离)。触发:记住、别忘了、记一笔、记忆、remember、recall、跨会话、上次说到、续测、交接、归档、记忆盘、共享记忆、局域网记忆"
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  license: MIT
6
6
  ---
7
7
 
8
8
  # yotta-memory(元忆)— 有权限边界的文件式智能体记忆
9
9
 
10
10
  > 一句话:元忆 —— 有权限边界的文件式智能体记忆(不注入、可 diff、能回滚;FACT 共享、PREF / BOUND / COMMIT 私密隔离)。
11
- > 版本:0.5.0 | 最后更新:2026-08-25
11
+ > 版本:0.5.2 | 最后更新:2026-08-25
12
12
 
13
13
  ## 这是什么
14
14
 
@@ -12,7 +12,7 @@ const crypto = require('crypto');
12
12
  const http = require('http');
13
13
  const child_process = require('child_process');
14
14
 
15
- const VERSION = '0.5.0';
15
+ const VERSION = '0.5.2';
16
16
  const TYPES = ['FACT', 'PREF', 'BOUND', 'COMMIT'];
17
17
  const TYPE_DIRS = { FACT: 'facts', PREF: 'prefs', BOUND: 'bounds', COMMIT: 'commits' };
18
18
  const PUBLIC_DIR = 'facts';
@@ -964,7 +964,9 @@ const LAN_TASK_NAME = 'YottaMemoryServe';
964
964
  function lanTaskRunCmd(opts) {
965
965
  const host = opts.host || '0.0.0.0';
966
966
  const port = opts.port || 8787;
967
- return '"' + process.execPath + '" "' + __filename + '" serve --host ' + host + ' --port ' + port;
967
+ // schtasks /tr 不接受多余内嵌引号:路径无空格不加引号,含空格/引号用 \" 转义(0.5.2 修复)
968
+ const q = (p) => /[\s"]/.test(p) ? '\\"' + p.replace(/"/g, '\\"') + '\\"' : p;
969
+ return q(process.execPath) + ' ' + q(__filename) + ' serve --host ' + host + ' --port ' + port;
968
970
  }
969
971
  function cmdLanEnable(opts) {
970
972
  if (process.platform !== 'win32') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yottameta/yotta-memory",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "元忆 —— 有权限边界的文件式智能体记忆。文件式、零依赖、可 diff/回滚;FACT/PREF/BOUND/COMMIT 四分类(公共共享/私密隔离),用户级+项目级双级存储。",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -1,4 +1,4 @@
1
- # yotta-memory 协议规范 v0.5.0
1
+ # yotta-memory 协议规范 v0.5.2
2
2
 
3
3
  > 本文件定义 yotta-memory 记忆标准:存储位置、目录结构、文件格式、类型体系与 CLI 命令参考。
4
4
  > 目标:任何支持 Agent Skills 开放标准的智能体,装完即可读写同一份记忆。