@truenine/memory-sync-cli 0.0.16 → 0.0.17
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/README.md +43 -36
- package/dist/index.mjs +72 -60
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,65 +1,74 @@
|
|
|
1
1
|
# TrueNine Life CLI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Cross-platform prompt sync tool for AI coding assistants. One ruleset, multi-target adaptation.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Quick Start
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npx @truenine/memory-sync-cli
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Global Install
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
14
|
pnpm add -g @truenine/memory-sync-cli
|
|
15
15
|
```
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
## Update
|
|
17
18
|
|
|
18
19
|
```bash
|
|
19
20
|
pnpm update -g @truenine/memory-sync-cli --latest
|
|
20
21
|
```
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
After installation, use directly:
|
|
23
24
|
|
|
24
25
|
```bash
|
|
25
26
|
tnmsc
|
|
26
27
|
```
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
Available commands:
|
|
29
30
|
|
|
30
31
|
```bash
|
|
31
|
-
#
|
|
32
|
+
# Sync directly
|
|
32
33
|
tnmsc
|
|
33
34
|
|
|
34
|
-
#
|
|
35
|
+
# Get help
|
|
36
|
+
tnmsc help
|
|
35
37
|
tnmsc --help
|
|
36
38
|
tnmsc -h
|
|
37
39
|
|
|
38
|
-
#
|
|
39
|
-
tnmsc
|
|
40
|
-
tnmsc -i
|
|
40
|
+
# Init directory structure from config
|
|
41
|
+
tnmsc init
|
|
41
42
|
|
|
42
|
-
#
|
|
43
|
-
tnmsc
|
|
44
|
-
tnmsc -n
|
|
43
|
+
# Preview export
|
|
44
|
+
tnmsc dry-run
|
|
45
45
|
|
|
46
|
-
#
|
|
47
|
-
tnmsc
|
|
48
|
-
tnmsc -c
|
|
49
|
-
# 预览清理目标
|
|
50
|
-
tnmsc --clean --dry-run
|
|
51
|
-
```
|
|
46
|
+
# Clean all exports
|
|
47
|
+
tnmsc clean
|
|
52
48
|
|
|
53
|
-
|
|
49
|
+
# Preview clean targets
|
|
50
|
+
tnmsc clean --dry-run
|
|
51
|
+
tnmsc clean -n
|
|
52
|
+
|
|
53
|
+
# Set log level
|
|
54
|
+
tnmsc --debug
|
|
55
|
+
tnmsc --info
|
|
56
|
+
tnmsc --warn
|
|
57
|
+
tnmsc --error
|
|
58
|
+
tnmsc clean --info
|
|
59
|
+
tnmsc dry-run --debug
|
|
60
|
+
tnmsc clean dry-run --info
|
|
54
61
|
```
|
|
55
|
-
|
|
62
|
+
|
|
63
|
+
## CLI Config
|
|
64
|
+
|
|
65
|
+
Config can be created in two locations. Example shows defaults:
|
|
56
66
|
|
|
57
67
|
```text
|
|
58
68
|
~/.aindex/.tnmsc.json
|
|
59
69
|
cwd()/.tnmsc.json
|
|
60
70
|
```
|
|
61
|
-
> cwd()
|
|
62
|
-
|
|
71
|
+
> cwd() represents current working directory.
|
|
63
72
|
|
|
64
73
|
```json
|
|
65
74
|
{
|
|
@@ -76,8 +85,7 @@ cwd()/.tnmsc.json
|
|
|
76
85
|
}
|
|
77
86
|
```
|
|
78
87
|
|
|
79
|
-
|
|
80
|
-
## 支持的 AI 工具
|
|
88
|
+
## Supported AI Tools
|
|
81
89
|
|
|
82
90
|
**IDE**
|
|
83
91
|
- Cursor IDE
|
|
@@ -87,28 +95,27 @@ cwd()/.tnmsc.json
|
|
|
87
95
|
- CodeBuddy IDE
|
|
88
96
|
- Antigravity IDE
|
|
89
97
|
|
|
90
|
-
**CLI
|
|
98
|
+
**CLI Tools**
|
|
91
99
|
- Claude Code CLI
|
|
92
100
|
- Codex CLI
|
|
93
101
|
- Gemini CLI
|
|
94
102
|
- FactoryDroid CLI
|
|
95
103
|
|
|
96
|
-
|
|
104
|
+
**Config Files**
|
|
97
105
|
- JetBrains IDE
|
|
98
106
|
- VSCode IDE
|
|
99
107
|
|
|
100
|
-
##
|
|
101
|
-
|
|
102
|
-
采用 input → transform → output 管道架构:
|
|
108
|
+
## Plugin System
|
|
103
109
|
|
|
104
|
-
|
|
105
|
-
- **Transform 插件**: 处理内容
|
|
106
|
-
- **Output 插件**: 写入目标格式(各 IDE/CLI 适配器)
|
|
110
|
+
Pipeline architecture: input → transform → output
|
|
107
111
|
|
|
108
|
-
|
|
112
|
+
- **Input Plugins**: Read sources (Aindex, Ref, WorkspaceGroup)
|
|
113
|
+
- **Transform Plugins**: Process content
|
|
114
|
+
- **Output Plugins**: Write target formats (IDE/CLI adapters)
|
|
109
115
|
|
|
110
|
-
|
|
116
|
+
## Config
|
|
111
117
|
|
|
118
|
+
Priority: `cwd()/.tnmsc.json` > `~/.aindex/.tnmsc.json`
|
|
112
119
|
|
|
113
120
|
## License
|
|
114
121
|
|