lingshu-solver 1.0.2 → 1.0.4

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 (6) hide show
  1. package/LICENSE +101 -206
  2. package/README.md +238 -239
  3. package/index.html +12237 -11816
  4. package/mcp-server.js +288 -286
  5. package/package.json +55 -56
  6. package/LICENSE.md +0 -53
package/LICENSE CHANGED
@@ -1,206 +1,101 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or Derivative
95
- Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works.
111
-
112
- You may add Your own copyright statement to Your modifications and
113
- may provide additional or different license terms and conditions
114
- for use, reproduction, or distribution of Your modifications, or
115
- for any such Derivative Works as a whole, provided Your use,
116
- reproduction, and distribution of the Work otherwise complies with
117
- the conditions stated in this License.
118
-
119
- 5. Submission of Contributions. Unless You explicitly state otherwise,
120
- any Contribution intentionally submitted for inclusion in the Work
121
- by You to the Licensor shall be under the terms and conditions of
122
- this License, without any additional terms or conditions.
123
- Notwithstanding the above, nothing herein shall supersede or modify
124
- the terms of any separate license agreement you may have executed
125
- with Licensor regarding such Contributions.
126
-
127
- 6. Trademarks. This License does not grant permission to use the trade
128
- names, trademarks, service marks, or product names of the Licensor,
129
- except as required for reasonable and customary use in describing the
130
- origin of the Work and reproducing the content of the NOTICE file.
131
-
132
- 7. Disclaimer of Warranty. Unless required by applicable law or
133
- agreed to in writing, Licensor provides the Work (and each
134
- Contributor provides its Contributions) on an "AS IS" BASIS,
135
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
136
- implied, including, without limitation, any warranties or conditions
137
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
138
- PARTICULAR PURPOSE. You are solely responsible for determining the
139
- appropriateness of using or redistributing the Work and assume any
140
- risks associated with Your exercise of permissions under this License.
141
-
142
- 8. Limitation of Liability. In no event and under no legal theory,
143
- whether in tort (including negligence), contract, or otherwise,
144
- unless required by applicable law (such as deliberate and grossly
145
- negligent acts) or agreed to in writing, shall any Contributor be
146
- liable to You for damages, including any direct, indirect, special,
147
- incidental, or consequential damages of any character arising as a
148
- result of this License or out of the use or inability to use the
149
- Work (including but not limited to damages for loss of goodwill,
150
- work stoppage, computer failure or malfunction, or any and all
151
- other commercial damages or losses), even if such Contributor
152
- has been advised of the possibility of such damages.
153
-
154
- 9. Accepting Warranty or Additional Liability. While redistributing
155
- the Work or Derivative Works thereof, You may choose to offer,
156
- and charge a fee for, acceptance of support, warranty, indemnity,
157
- or other liability obligations and/or rights consistent with this
158
- License. However, in accepting such obligations, You may act only
159
- on Your own behalf and on Your sole responsibility, not on behalf
160
- of any other Contributor, and only if You agree to indemnify,
161
- defend, and hold each Contributor harmless for any liability
162
- incurred by, or claims asserted against, such Contributor by reason
163
- of your accepting any such warranty or additional liability.
164
-
165
- END OF TERMS AND CONDITIONS
166
-
167
- APPENDIX: How to apply the Apache License to your work.
168
-
169
- To apply the Apache License to your work, attach the following
170
- boilerplate notice, with the fields enclosed by brackets "[]"
171
- replaced with your own identifying information. (Don't include
172
- the brackets!) The text should be enclosed in the appropriate
173
- comment syntax for the file format. We also recommend that a
174
- file or class name and description of purpose be included on the
175
- same "printed page" as the copyright notice for easier
176
- identification within third-party archives.
177
-
178
- Copyright [yyyy] [name of copyright owner]
179
-
180
- Licensed under the Apache License, Version 2.0 (the "License");
181
- you may not use this file except in compliance with the License.
182
- You may obtain a copy of the License at
183
-
184
- http://www.apache.org/licenses/LICENSE-2.0
185
-
186
- Unless required by applicable law or agreed to in writing, software
187
- distributed under the License is distributed on an "AS IS" BASIS,
188
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
- See the License for the specific language governing permissions and
190
- limitations under the License.
191
-
192
- ----------------------------------------------------------------------------
193
-
194
- Copyright 2026 广州OPC(红尘灵境)
195
-
196
- Licensed under the Apache License, Version 2.0 (the "License");
197
- you may not use this file except in compliance with the License.
198
- You may obtain a copy of the License at
199
-
200
- http://www.apache.org/licenses/LICENSE-2.0
201
-
202
- Unless required by applicable law or agreed to in writing, software
203
- distributed under the License is distributed on an "AS IS" BASIS,
204
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
205
- See the License for the specific language governing permissions and
206
- limitations under the License.
1
+ 灵数求解器 (LingShu Solver) 商业授权许可协议
2
+ LingShu Solver Commercial License
3
+
4
+ Copyright (c) 2026 红尘灵境数字科技有限公司 / 太白(邓其聪).
5
+ 版权所有,保留一切权利。All rights reserved.
6
+
7
+ --------------------------------------------------------------------------------
8
+ 一、著作权与权利保留
9
+ --------------------------------------------------------------------------------
10
+ 本软件(包括但不限于源代码、目标代码、二进制文件、文档及随附资料,以下简称
11
+ "本软件")的著作权及相关知识产权均归上述版权方(以下简称"版权方")所有。
12
+ 除本协议明确授予的有限许可外,任何权利(包括但不限于复制、修改、分发、再许可、
13
+ 出租、出借、商业使用、制作衍生作品之权利)均由版权方保留。
14
+
15
+ --------------------------------------------------------------------------------
16
+ 二、非商业性使用(免费)
17
+ --------------------------------------------------------------------------------
18
+ 在同时满足下列全部条件的"非商业性使用"范围内,版权方免费授予您一项非独占、
19
+ 不可转让、可随时撤销的使用许可:
20
+ 1. 个人学习、研究、教学或技术评测;
21
+ 2. 非营利组织、开源社区或教育机构的内部非营利用途;
22
+ 3. 年营业收入不超过人民币 100 万元的团队,将本软件仅用于内部评估,且同时
23
+ 运行的实例数不超过 3 个。
24
+ 上述许可的前提条件:
25
+ (a) 您须在每一份副本或任何实质性部分中完整保留本版权声明与许可声明;
26
+ (b) 未经版权方书面同意,不得移除、遮挡或篡改本软件中的任何版权、商标或
27
+ 许可标识;
28
+ (c) 为互操作性所必须的法定反向工程情形除外,您不得对本软件进行反向工程、
29
+ 反编译或反汇编。
30
+
31
+ --------------------------------------------------------------------------------
32
+ 三、商业使用(须事先取得书面授权)
33
+ --------------------------------------------------------------------------------
34
+ 任何"商业使用"均须事先取得版权方签署的书面《商业授权协议》(Commercial
35
+ License),未获书面授权一律禁止。商业使用包括但不限于:
36
+ - 将本软件用于任何以营利为目的的产品、服务或业务;
37
+ - 通过 SaaS、云部署、API 或任何其他方式,向第三方提供基于本软件的能力
38
+ (无论是否收费);
39
+ - 将本软件集成、嵌入或捆绑进任何商业发行物、设备或解决方案;
40
+ - 对本软件进行再分发、转授权或对外提供托管;
41
+ - 任何超出第二条"非商业性使用"范围的使用。
42
+ 未经书面授权的任何商业使用均构成对版权的侵权,版权方保留依法追究全部法律
43
+ 责任(包括但不限于停止侵权、损害赔偿及诉讼费用)的权利。
44
+
45
+ --------------------------------------------------------------------------------
46
+ 四、获取商业授权
47
+ --------------------------------------------------------------------------------
48
+ 商业授权申请与商务合作,请通过以下渠道联系版权方:
49
+ 联系人:红尘灵境数字科技有限公司 / 太白(邓其聪)
50
+ 邮箱:553420544@qq.com
51
+ 仓库:https://github.com/genesis-plan/lingshu-solver(Issues 亦可用于商务咨询)
52
+ 授权范围、地域、期限与费用以双方签署的书面协议为准。
53
+
54
+ --------------------------------------------------------------------------------
55
+ 五、商标与品牌
56
+ --------------------------------------------------------------------------------
57
+ "灵数 / 灵数求解器 / LingShu Solver" 及相关名称、标识为版权方的商标或商号。
58
+ 本协议不授予任何商标使用权。未经书面许可,您不得使用上述名称、标识进行任何
59
+ 宣传或背书。
60
+
61
+ --------------------------------------------------------------------------------
62
+ 六、无担保与责任限制
63
+ --------------------------------------------------------------------------------
64
+ 本软件按"现状"提供,不提供任何明示或默示担保(包括但不限于对适销性、
65
+ 特定用途适用性及不侵权的担保)。在任何情况下,无论基于合同、侵权或其他法
66
+ 理,版权方均不对因使用或无法使用本软件所产生的任何直接、间接、附带、特殊
67
+ 或后果性损害承担责任。
68
+
69
+ --------------------------------------------------------------------------------
70
+ 七、终止
71
+ --------------------------------------------------------------------------------
72
+ 若您违反本协议任何条款,本许可自动终止。终止后您须立即停止使用本软件,并
73
+ 销毁所持有的全部副本(包括任何备份与衍生作品)。
74
+
75
+ --------------------------------------------------------------------------------
76
+ 八、适用法律
77
+ --------------------------------------------------------------------------------
78
+ 本协议受中华人民共和国法律管辖,并按其解释。因本协议产生的争议,提交版权
79
+ 方所在地有管辖权的人民法院诉讼解决。
80
+
81
+ --------------------------------------------------------------------------------
82
+ 九、版本适用范围(重要)
83
+ --------------------------------------------------------------------------------
84
+ 自 lingshu-solver@1.0.4 起的版本适用本协议。更早版本(含 1.0.3 及此前)曾
85
+ 以 Apache License 2.0 发布,该等已发布版本继续按其发布时随附的 Apache
86
+ License 2.0 条款提供,此为历史事实且不可撤回;但其不延伸适用于本协议生效
87
+ 后的任何新版本。
88
+
89
+ --------------------------------------------------------------------------------
90
+ 英文摘要 / English Summary
91
+ --------------------------------------------------------------------------------
92
+ Copyright (c) 2026 红尘灵境数字科技有限公司 / 太白(邓其聪). All rights reserved.
93
+ This software is NOT open source and NOT free for commercial use. Non-commercial
94
+ use (personal study, research, non-profit / educational internal use, or limited
95
+ internal evaluation within a small low-revenue team) is permitted free of charge
96
+ subject to retaining this notice. ANY commercial use requires a prior written
97
+ Commercial License from the copyright holder. Unauthorized commercial use is
98
+ prohibited and constitutes copyright infringement. This license applies to
99
+ lingshu-solver@1.0.4 and later; earlier versions remain under the Apache License
100
+ 2.0 as originally distributed. Provided "AS IS" without warranty; liability is
101
+ excluded to the maximum extent permitted by law.