aifastdb 3.8.6-mac.0 → 3.8.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/LICENSE CHANGED
@@ -1,137 +1,137 @@
1
- AiFastDB License Agreement
2
- Version 1.0, February 2026
3
-
4
- Copyright (c) 2026 AiFastDB Team. All rights reserved.
5
-
6
- ================================================================================
7
- AIFASTDB LICENSE AGREEMENT
8
- ================================================================================
9
-
10
- This license governs the use of the AiFastDB software and associated
11
- documentation files (the "Software").
12
-
13
- By using the Software, you agree to the terms of this license.
14
-
15
- --------------------------------------------------------------------------------
16
- 1. DEFINITIONS
17
- --------------------------------------------------------------------------------
18
-
19
- "Personal Use" means use by an individual for personal projects, learning,
20
- research, education, or non-commercial purposes. This includes:
21
- - Personal side projects and hobby projects
22
- - Academic research and coursework
23
- - Open-source projects that are not primarily commercial
24
- - Evaluation and testing of the Software
25
-
26
- "Commercial Use" means any use of the Software that is primarily intended for
27
- or directed toward commercial advantage or monetary compensation. This includes
28
- but is not limited to:
29
- - Use within a for-profit company, organization, or entity
30
- - Use in products or services that are sold, licensed, or offered for a fee
31
- - Use in internal business tools of a for-profit organization
32
- - Use by government contractors for contract work
33
-
34
- "Small Business" means a for-profit entity with fewer than 5 employees AND
35
- less than $100,000 USD in annual revenue.
36
-
37
- --------------------------------------------------------------------------------
38
- 2. GRANT OF RIGHTS — PERSONAL USE (FREE)
39
- --------------------------------------------------------------------------------
40
-
41
- Permission is hereby granted, free of charge, to any individual obtaining a
42
- copy of this Software, to use, copy, modify, and distribute the Software for
43
- Personal Use, subject to the following conditions:
44
-
45
- a) The above copyright notice and this license shall be included in all
46
- copies or substantial portions of the Software.
47
-
48
- b) Modified versions must be clearly marked as modified and must not be
49
- misrepresented as the original Software.
50
-
51
- c) The Software may not be sold or sublicensed as a standalone product.
52
-
53
- --------------------------------------------------------------------------------
54
- 3. GRANT OF RIGHTS — SMALL BUSINESS (FREE)
55
- --------------------------------------------------------------------------------
56
-
57
- Small Businesses (as defined above) may use the Software free of charge for
58
- Commercial Use, subject to the same conditions as Section 2.
59
-
60
- --------------------------------------------------------------------------------
61
- 4. COMMERCIAL USE — LICENSE REQUIRED
62
- --------------------------------------------------------------------------------
63
-
64
- Any Commercial Use that does not qualify under Section 3 (Small Business)
65
- requires a separate commercial license agreement.
66
-
67
- To obtain a commercial license, please contact:
68
-
69
- Email: [youngsun@qq.com]
70
- Website: [www.aifastdb.com/licensing]
71
-
72
- Commercial licenses include:
73
- - Standard License: For single-product use
74
- - Enterprise License: For unlimited internal use
75
- - OEM License: For redistribution within your product
76
-
77
- Using the Software for Commercial Use without a valid commercial license is
78
- a violation of this agreement.
79
-
80
- --------------------------------------------------------------------------------
81
- 5. RESTRICTIONS
82
- --------------------------------------------------------------------------------
83
-
84
- Regardless of the type of use, the following restrictions apply:
85
-
86
- a) You may NOT remove or alter any copyright notices, license text, or
87
- attribution from the Software.
88
-
89
- b) You may NOT offer the Software as a hosted/managed database service
90
- (Database-as-a-Service) without a separate OEM or service license.
91
-
92
- c) You may NOT use the name "AiFastDB" or related trademarks to endorse
93
- or promote products derived from this Software without prior written
94
- permission.
95
-
96
- --------------------------------------------------------------------------------
97
- 6. CONTRIBUTIONS
98
- --------------------------------------------------------------------------------
99
-
100
- Any contributions (pull requests, patches, suggestions) submitted to this
101
- project are licensed under the same terms as this license, unless explicitly
102
- stated otherwise.
103
-
104
- --------------------------------------------------------------------------------
105
- 7. DISCLAIMER OF WARRANTY
106
- --------------------------------------------------------------------------------
107
-
108
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
109
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
110
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
111
-
112
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
113
- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
114
- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
115
- USE OR OTHER DEALINGS IN THE SOFTWARE.
116
-
117
- --------------------------------------------------------------------------------
118
- 8. TERMINATION
119
- --------------------------------------------------------------------------------
120
-
121
- This license is effective until terminated. Your rights under this license
122
- will terminate automatically if you fail to comply with any of its terms.
123
- Upon termination, you must destroy all copies of the Software in your
124
- possession.
125
-
126
- ================================================================================
127
- QUICK REFERENCE
128
- ================================================================================
129
-
130
- ✅ Personal projects, learning, research — FREE
131
- ✅ Open-source non-commercial projects — FREE
132
- ✅ Small business (< 5 people, < $100K/yr) — FREE
133
- 💼 Enterprise / Commercial use — LICENSE REQUIRED
134
- ❌ Hosted DB service (DBaaS) — LICENSE REQUIRED
135
- ❌ Remove copyright / attribution — NOT ALLOWED
136
-
137
- ================================================================================
1
+ AiFastDB License Agreement
2
+ Version 1.0, February 2026
3
+
4
+ Copyright (c) 2026 AiFastDB Team. All rights reserved.
5
+
6
+ ================================================================================
7
+ AIFASTDB LICENSE AGREEMENT
8
+ ================================================================================
9
+
10
+ This license governs the use of the AiFastDB software and associated
11
+ documentation files (the "Software").
12
+
13
+ By using the Software, you agree to the terms of this license.
14
+
15
+ --------------------------------------------------------------------------------
16
+ 1. DEFINITIONS
17
+ --------------------------------------------------------------------------------
18
+
19
+ "Personal Use" means use by an individual for personal projects, learning,
20
+ research, education, or non-commercial purposes. This includes:
21
+ - Personal side projects and hobby projects
22
+ - Academic research and coursework
23
+ - Open-source projects that are not primarily commercial
24
+ - Evaluation and testing of the Software
25
+
26
+ "Commercial Use" means any use of the Software that is primarily intended for
27
+ or directed toward commercial advantage or monetary compensation. This includes
28
+ but is not limited to:
29
+ - Use within a for-profit company, organization, or entity
30
+ - Use in products or services that are sold, licensed, or offered for a fee
31
+ - Use in internal business tools of a for-profit organization
32
+ - Use by government contractors for contract work
33
+
34
+ "Small Business" means a for-profit entity with fewer than 5 employees AND
35
+ less than $100,000 USD in annual revenue.
36
+
37
+ --------------------------------------------------------------------------------
38
+ 2. GRANT OF RIGHTS — PERSONAL USE (FREE)
39
+ --------------------------------------------------------------------------------
40
+
41
+ Permission is hereby granted, free of charge, to any individual obtaining a
42
+ copy of this Software, to use, copy, modify, and distribute the Software for
43
+ Personal Use, subject to the following conditions:
44
+
45
+ a) The above copyright notice and this license shall be included in all
46
+ copies or substantial portions of the Software.
47
+
48
+ b) Modified versions must be clearly marked as modified and must not be
49
+ misrepresented as the original Software.
50
+
51
+ c) The Software may not be sold or sublicensed as a standalone product.
52
+
53
+ --------------------------------------------------------------------------------
54
+ 3. GRANT OF RIGHTS — SMALL BUSINESS (FREE)
55
+ --------------------------------------------------------------------------------
56
+
57
+ Small Businesses (as defined above) may use the Software free of charge for
58
+ Commercial Use, subject to the same conditions as Section 2.
59
+
60
+ --------------------------------------------------------------------------------
61
+ 4. COMMERCIAL USE — LICENSE REQUIRED
62
+ --------------------------------------------------------------------------------
63
+
64
+ Any Commercial Use that does not qualify under Section 3 (Small Business)
65
+ requires a separate commercial license agreement.
66
+
67
+ To obtain a commercial license, please contact:
68
+
69
+ Email: [youngsun@qq.com]
70
+ Website: [www.aifastdb.com/licensing]
71
+
72
+ Commercial licenses include:
73
+ - Standard License: For single-product use
74
+ - Enterprise License: For unlimited internal use
75
+ - OEM License: For redistribution within your product
76
+
77
+ Using the Software for Commercial Use without a valid commercial license is
78
+ a violation of this agreement.
79
+
80
+ --------------------------------------------------------------------------------
81
+ 5. RESTRICTIONS
82
+ --------------------------------------------------------------------------------
83
+
84
+ Regardless of the type of use, the following restrictions apply:
85
+
86
+ a) You may NOT remove or alter any copyright notices, license text, or
87
+ attribution from the Software.
88
+
89
+ b) You may NOT offer the Software as a hosted/managed database service
90
+ (Database-as-a-Service) without a separate OEM or service license.
91
+
92
+ c) You may NOT use the name "AiFastDB" or related trademarks to endorse
93
+ or promote products derived from this Software without prior written
94
+ permission.
95
+
96
+ --------------------------------------------------------------------------------
97
+ 6. CONTRIBUTIONS
98
+ --------------------------------------------------------------------------------
99
+
100
+ Any contributions (pull requests, patches, suggestions) submitted to this
101
+ project are licensed under the same terms as this license, unless explicitly
102
+ stated otherwise.
103
+
104
+ --------------------------------------------------------------------------------
105
+ 7. DISCLAIMER OF WARRANTY
106
+ --------------------------------------------------------------------------------
107
+
108
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
109
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
110
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
111
+
112
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
113
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
114
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
115
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
116
+
117
+ --------------------------------------------------------------------------------
118
+ 8. TERMINATION
119
+ --------------------------------------------------------------------------------
120
+
121
+ This license is effective until terminated. Your rights under this license
122
+ will terminate automatically if you fail to comply with any of its terms.
123
+ Upon termination, you must destroy all copies of the Software in your
124
+ possession.
125
+
126
+ ================================================================================
127
+ QUICK REFERENCE
128
+ ================================================================================
129
+
130
+ ✅ Personal projects, learning, research — FREE
131
+ ✅ Open-source non-commercial projects — FREE
132
+ ✅ Small business (< 5 people, < $100K/yr) — FREE
133
+ 💼 Enterprise / Commercial use — LICENSE REQUIRED
134
+ ❌ Hosted DB service (DBaaS) — LICENSE REQUIRED
135
+ ❌ Remove copyright / attribution — NOT ALLOWED
136
+
137
+ ================================================================================
Binary file
Binary file
package/dist/cli.js CHANGED
@@ -172,36 +172,36 @@ async function moveCommand(options) {
172
172
  * 显示帮助信息
173
173
  */
174
174
  function helpCommand() {
175
- console.log(`
176
- AiFastDb CLI - 数据库管理工具
177
-
178
- 用法:
179
- aifastdb <命令> [参数] [选项]
180
-
181
- 命令:
182
- init [路径] 初始化数据库根目录
183
- --rootName=名称 根目录名称 (默认: aifastdb_root)
184
- --dimension=维度 默认向量维度 (默认: 1536)
185
-
186
- list [路径] 列出所有数据库
187
-
188
- create <名称> [路径] 创建数据库
189
- --dimension=维度 向量维度
190
-
191
- delete <名称> [路径] 删除数据库
192
-
193
- move <新路径> [当前路径] 移动根目录到新位置
194
- --rootName=名称 同时重命名根目录
195
-
196
- 示例:
197
- aifastdb init
198
- aifastdb init ./data --rootName=my_db_root
199
- aifastdb list
200
- aifastdb create my-db --dimension=768
201
- aifastdb delete temp-db
202
- aifastdb move ./backup --rootName=aifastdb_backup
203
-
204
- 更多信息: https://github.com/aifastdb/aifastdb
175
+ console.log(`
176
+ AiFastDb CLI - 数据库管理工具
177
+
178
+ 用法:
179
+ aifastdb <命令> [参数] [选项]
180
+
181
+ 命令:
182
+ init [路径] 初始化数据库根目录
183
+ --rootName=名称 根目录名称 (默认: aifastdb_root)
184
+ --dimension=维度 默认向量维度 (默认: 1536)
185
+
186
+ list [路径] 列出所有数据库
187
+
188
+ create <名称> [路径] 创建数据库
189
+ --dimension=维度 向量维度
190
+
191
+ delete <名称> [路径] 删除数据库
192
+
193
+ move <新路径> [当前路径] 移动根目录到新位置
194
+ --rootName=名称 同时重命名根目录
195
+
196
+ 示例:
197
+ aifastdb init
198
+ aifastdb init ./data --rootName=my_db_root
199
+ aifastdb list
200
+ aifastdb create my-db --dimension=768
201
+ aifastdb delete temp-db
202
+ aifastdb move ./backup --rootName=aifastdb_backup
203
+
204
+ 更多信息: https://github.com/aifastdb/aifastdb
205
205
  `);
206
206
  }
207
207
  // ============================================================================