@truenine/memory-sync-cli 0.0.5 → 0.0.7

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.
Files changed (3) hide show
  1. package/README.md +58 -2
  2. package/dist/index.mjs +71 -43
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -13,6 +13,11 @@ npx @truenine/memory-sync-cli
13
13
  ```bash
14
14
  pnpm add -g @truenine/memory-sync-cli
15
15
  ```
16
+ ## 更新版本
17
+
18
+ ```bash
19
+ pnpm update -g @truenine/memory-sync-cli --latest
20
+ ```
16
21
 
17
22
  安装后可直接使用命令:
18
23
 
@@ -20,6 +25,58 @@ pnpm add -g @truenine/memory-sync-cli
20
25
  tnmsc
21
26
  ```
22
27
 
28
+ 可用功能:
29
+
30
+ ```bash
31
+ # 直接同步
32
+ tnmsc
33
+
34
+ # 获取参数列表
35
+ tnmsc --help
36
+ tnmsc -h
37
+
38
+ # 根据配置文件以及默认配置,初始化目录以及文件结构
39
+ tnmsc --init
40
+ tnmsc -i
41
+
42
+ # 预览导出
43
+ tnmsc --dry-run
44
+ tnmsc -n
45
+
46
+ # 清理所有导出
47
+ tnmsc --clean
48
+ tnmsc -c
49
+ # 预览清理目标
50
+ tnmsc --clean --dry-run
51
+ ```
52
+
53
+ ## CLI 配置
54
+ ```
55
+ 可以在两个地方创建配置,来适配,以下示例为默认配置
56
+
57
+ ```text
58
+ ~/.aindex/.tnmsc.json
59
+ cwd()/.tnmsc.json
60
+ ```
61
+ > cwd() 代表当前执行命令的目录。
62
+
63
+
64
+ ```json
65
+ {
66
+ "workspaceDir": "~/project",
67
+ "shadowProjectDir": "$WORKSPACE/aindex",
68
+ "shadowSkillSourceDir": "$SHADOW_PROJECT/dist/skills",
69
+ "shadowFastCommandDir": "$SHADOW_PROJECT/dist/commands",
70
+ "shadowSubAgentDir": "$SHADOW_PROJECT/dist/agents",
71
+ "globalMemoryFile": "$SHADOW_PROJECT/dist/GLOBAL.md",
72
+ "shadowSourceProjectDir": "$SHADOW_PROJECT/ref",
73
+ "externalProjects": [],
74
+ "excludePatterns": {},
75
+ "logLevel": "info"
76
+ }
77
+ ```
78
+
79
+
23
80
  ## 支持的 AI 工具
24
81
 
25
82
  **IDE**
@@ -50,9 +107,8 @@ tnmsc
50
107
 
51
108
  ## 配置
52
109
 
53
- 配置文件优先级:`cwd()/.memorysync.json` > `~/.aindex/configs.json`
110
+ 配置文件优先级:`cwd()/.tnmsc.json` > `~/.aindex/.tnmsc.json`
54
111
 
55
- 首次运行会自动创建 `~/.aindex/config.json`。
56
112
 
57
113
  ## License
58
114