jishubuddy-linux-x64 0.2.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.
package/README.md ADDED
@@ -0,0 +1,69 @@
1
+ # JishuBuddy for linux-x64
2
+
3
+ ## 介绍
4
+
5
+ JishuBuddy 是一个本地高效运行、确定性优先的智能小伙伴。
6
+
7
+ ## 核心功能
8
+
9
+ - 交互式 TUI,支持流式 Markdown、多行输入和会话管理。
10
+ - 模型与凭据管理,支持 API key 和 GitHub Copilot 登录。
11
+ - 文件、Bash、MCP 和 Web Search 工具,以及危险 Bash 命令的权限审核。
12
+ - Headless 单轮执行和本机 AG-UI Server,适合脚本与自动化。
13
+ - TUI 与 AG-UI Server ready 后默认启用低频产品 Telemetry;TUI 还会异步提示可用更新。
14
+
15
+ ## 安装
16
+
17
+ 此包仅适用于 linux-x64,glibc >=2.17。
18
+
19
+ 需要 Node.js 22 或更高版本(npm 随 Node.js 一起安装)。
20
+
21
+ 从 npm 公共仓库安装:
22
+
23
+ ```bash
24
+ npm install -g jishubuddy-linux-x64
25
+ ```
26
+
27
+ 此平台包直接提供 `jishubuddy` 命令,不执行平台自动选择。
28
+
29
+ 为获得完整且更快的文件补全和文本搜索,建议安装 `fd` 和 `ripgrep`。
30
+
31
+ Debian:
32
+
33
+ ```bash
34
+ sudo apt install fd-find ripgrep
35
+ ```
36
+
37
+ macOS(Homebrew):
38
+
39
+ ```bash
40
+ brew install fd ripgrep
41
+ ```
42
+
43
+ ## 使用 TUI
44
+
45
+ 启动终端界面:
46
+
47
+ ```bash
48
+ jishubuddy
49
+ ```
50
+
51
+ 首次使用时,可输入 `/hotkeys` 查看快捷键,输入 `/help` 查看命令,输入 `/quit` 退出。通常需要
52
+ 先使用 `/login` 配置凭据,再输入 `/model` 选择模型;随后输入问题并按 Enter 提交。
53
+
54
+ 安装最新版:
55
+
56
+ ```bash
57
+ jishubuddy update
58
+ ```
59
+
60
+ 该命令从 npm 公共仓库查询并安装稳定最新版;TUI 启动检查只提示,不会自动安装。
61
+
62
+ TUI 与 AG-UI Server 会把固定产品 ID、版本、SHA-256 假名设备指纹、OS/CPU、board/model 和
63
+ activation/heartbeat 时间发送到 `https://aijishu.com/jishushell/check-update`。不发送 prompt、
64
+ 回复、Session、凭据或文件路径;heartbeat 最多每四小时一次,状态保存在
65
+ `<agentDir>/telemetry/state.json`。启动前设置
66
+ `JISHUBUDDY_TELEMETRY_DISABLED=true` 或 `1` 可关闭。
67
+
68
+ Web Search 随包数据资产的来源、修改方式和许可证见
69
+ [第三方许可与声明](THIRD_PARTY_NOTICES.md)。
@@ -0,0 +1,303 @@
1
+ # Web Search 第三方许可与声明
2
+
3
+ 本文记录 JishuBuddy Web Search 随二进制分发的数据资产及运行时必须展示的来源声明。
4
+ 这些条款只适用于相应第三方材料,不改变 JishuBuddy 其他代码或内容的许可状态。
5
+
6
+ ## 随包文档目录
7
+
8
+ ### TypeScript Documentation
9
+
10
+ - 来源:`microsoft/TypeScript-Website@c8170c35bda4811c9516cbb69c39241ae4beb6d9`
11
+ - 许可:[Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode)
12
+ - 署名:Microsoft · TypeScript Documentation
13
+ - 修改:只选择英文文档 frontmatter 中的标题、简述和 canonical 路径;对字段执行确定性筛选、纯文本规范化和目录重排,不复制正文、代码或 HTML。
14
+
15
+ ### MDN Web Docs
16
+
17
+ - 来源:`mdn/content@784cf625ee9f57f6cedbbf220c66ae99e34e8f9b`
18
+ - 许可:[Creative Commons Attribution-ShareAlike 2.5](https://creativecommons.org/licenses/by-sa/2.5/)
19
+ - 署名:Mozilla Contributors · MDN Web Docs
20
+ - 修改:只选择 Web API 顶层、JavaScript Globals 和 HTTP allowlist 中的英文标题、首段摘要与 canonical 路径;去除 Markdown/HTML 显示标记并规范化为纯文本。该派生目录中的 MDN 摘要继续按 CC BY-SA 2.5 提供。
21
+
22
+ ### Node.js Documentation
23
+
24
+ - 来源:`nodejs/node@e68946d95e6e912175b9571e0ef89b0e248a0549`
25
+ - 许可:[Node.js LICENSE](https://github.com/nodejs/node/blob/e68946d95e6e912175b9571e0ef89b0e248a0549/LICENSE)
26
+ - 署名:Copyright Node.js contributors. All rights reserved.
27
+ - 修改:只选择顶层 API 文档的标题、首段摘要与 canonical 路径,并规范化为只读检索目录。
28
+
29
+ Node.js 相关材料的 MIT 许可声明:
30
+
31
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
32
+ > of this software and associated documentation files (the "Software"), to
33
+ > deal in the Software without restriction, including without limitation the
34
+ > rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
35
+ > sell copies of the Software, and to permit persons to whom the Software is
36
+ > furnished to do so, subject to the following conditions:
37
+ >
38
+ > The above copyright notice and this permission notice shall be included in
39
+ > all copies or substantial portions of the Software.
40
+ >
41
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
42
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
44
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
45
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
46
+ > FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
47
+ > IN THE SOFTWARE.
48
+
49
+ ### Bun Documentation
50
+
51
+ - 来源:`oven-sh/bun@b7a0431032129d74fa4a7e3704eaf57b92fa9136`
52
+ - 许可:[Bun LICENSE](https://github.com/oven-sh/bun/blob/b7a0431032129d74fa4a7e3704eaf57b92fa9136/LICENSE.md)
53
+ - 署名:Oven.sh · Bun contributors
54
+ - 修改:只选择具有显式标题、描述和 canonical 路径的文档元数据,并规范化为只读检索目录。
55
+
56
+ Bun 文档目录沿用上文 MIT 许可声明。
57
+
58
+ ## 运行时数据声明
59
+
60
+ 使用 NIST NVD 数据时,产品必须展示以下声明:
61
+
62
+ > This product uses data from the NVD API but is not endorsed or certified by the NVD.
63
+
64
+ English Wikinews 搜索片段按页面创建时间分别适用 Public Domain、CC BY 2.5 或
65
+ CC BY 4.0。JishuBuddy 保留 `Wikinews` 署名和文章链接,不把最后编辑时间冒充创建时间,
66
+ 也不为全部页面伪造统一许可证。
67
+
68
+ DuckDuckGo HTML 当前只用于单用户、本机、低频 Beta。项目尚未取得机器集成的书面许可,
69
+ 不得把当前实现扩大为转售搜索服务、大规模自动化或正式对外发行依据。
70
+
71
+ Exa 托管 MCP 可能由 `web_search_exa` 显式调用,也可能在 `web_search` 的
72
+ `sourcePolicy=preferred` 查询失败或为空时自动兜底。自动路径按不同查询指纹计数,默认
73
+ 每个 Session agent loop 最多 3 条、可配置为 1~10 条,相同查询不会重复外呼。
74
+ 两种方式都会让 Exa 看到公开 query 与调用方 IP;BYOK 还会发送 `x-api-key`。Exa 的
75
+ 公开隐私政策说明普通 Query Data 可用于产品改进以及模型训练或微调,Zero Data
76
+ Retention 需要 Enterprise 安排。该结果保持独立、不缓存、不融合,也不产生可供
77
+ `web_fetch` 使用的 `resultId`。
78
+
79
+ AnySearch 是模型可显式调用的零 Key Beta,也是 Exa 额度、限流、认证、结果校验或服务
80
+ 故障后的自动最终兜底。自动资格绑定同 Session、同 agent loop 的同一查询,且受上述
81
+ 不同查询总上限约束。自动路径会把同一公开 query 与调用方 IP 发送给 AnySearch;正式
82
+ 政策说明 query 前 100 字符和 API 调用元数据可保留 12 个月。正式发行、转售或大规模
83
+ 自动化前必须重新确认其 API 结果展示、商业分发与批量使用边界。
84
+
85
+ ---
86
+
87
+ # Telemetry 第三方许可与声明
88
+
89
+ JishuBuddy 的 Telemetry 实现基于以下上游源码:
90
+
91
+ - 项目:Jishu Telemetry SDK;
92
+ - 本机评审来源:`/home/yangjun/jishu-telemetry-sdk`;
93
+ - 上游 commit:`ac8dfa9997ea30c7ab3c3b71d375c9e54f6a2229`;
94
+ - 复用范围:TypeScript `Reporter`、Node file state store 和 host device provider;
95
+ - 上游声明许可:Apache License 2.0;
96
+ - 本地修改:中文 docstring、整次调用总 deadline、宿主取消、唯一原子临时文件、私有文件权限和 JishuBuddy 固定 adapter。
97
+
98
+ 上游分发没有提供 NOTICE 文件。以下为随派生实现一同分发的完整 Apache License 2.0 文本。
99
+
100
+ ```text
101
+
102
+ Apache License
103
+ Version 2.0, January 2004
104
+ http://www.apache.org/licenses/
105
+
106
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
107
+
108
+ 1. Definitions.
109
+
110
+ "License" shall mean the terms and conditions for use, reproduction,
111
+ and distribution as defined by Sections 1 through 9 of this document.
112
+
113
+ "Licensor" shall mean the copyright owner or entity authorized by
114
+ the copyright owner that is granting the License.
115
+
116
+ "Legal Entity" shall mean the union of the acting entity and all
117
+ other entities that control, are controlled by, or are under common
118
+ control with that entity. For the purposes of this definition,
119
+ "control" means (i) the power, direct or indirect, to cause the
120
+ direction or management of such entity, whether by contract or
121
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
122
+ outstanding shares, or (iii) beneficial ownership of such entity.
123
+
124
+ "You" (or "Your") shall mean an individual or Legal Entity
125
+ exercising permissions granted by this License.
126
+
127
+ "Source" form shall mean the preferred form for making modifications,
128
+ including but not limited to software source code, documentation
129
+ source, and configuration files.
130
+
131
+ "Object" form shall mean any form resulting from mechanical
132
+ transformation or translation of a Source form, including but
133
+ not limited to compiled object code, generated documentation,
134
+ and conversions to other media types.
135
+
136
+ "Work" shall mean the work of authorship, whether in Source or
137
+ Object form, made available under the License, as indicated by a
138
+ copyright notice that is included in or attached to the work
139
+ (an example is provided in the Appendix below).
140
+
141
+ "Derivative Works" shall mean any work, whether in Source or Object
142
+ form, that is based on (or derived from) the Work and for which the
143
+ editorial revisions, annotations, elaborations, or other modifications
144
+ represent, as a whole, an original work of authorship. For the purposes
145
+ of this License, Derivative Works shall not include works that remain
146
+ separable from, or merely link (or bind by name) to the interfaces of,
147
+ the Work and Derivative Works thereof.
148
+
149
+ "Contribution" shall mean any work of authorship, including
150
+ the original version of the Work and any modifications or additions
151
+ to that Work or Derivative Works thereof, that is intentionally
152
+ submitted to Licensor for inclusion in the Work by the copyright owner
153
+ or by an individual or Legal Entity authorized to submit on behalf of
154
+ the copyright owner. For the purposes of this definition, "submitted"
155
+ means any form of electronic, verbal, or written communication sent
156
+ to the Licensor or its representatives, including but not limited to
157
+ communication on electronic mailing lists, source code control systems,
158
+ and issue tracking systems that are managed by, or on behalf of, the
159
+ Licensor for the purpose of discussing and improving the Work, but
160
+ excluding communication that is conspicuously marked or otherwise
161
+ designated in writing by the copyright owner as "Not a Contribution."
162
+
163
+ "Contributor" shall mean Licensor and any individual or Legal Entity
164
+ on behalf of whom a Contribution has been received by Licensor and
165
+ subsequently incorporated within the Work.
166
+
167
+ 2. Grant of Copyright License. Subject to the terms and conditions of
168
+ this License, each Contributor hereby grants to You a perpetual,
169
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
170
+ copyright license to reproduce, prepare Derivative Works of,
171
+ publicly display, publicly perform, sublicense, and distribute the
172
+ Work and such Derivative Works in Source or Object form.
173
+
174
+ 3. Grant of Patent License. Subject to the terms and conditions of
175
+ this License, each Contributor hereby grants to You a perpetual,
176
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
177
+ (except as stated in this section) patent license to make, have made,
178
+ use, offer to sell, sell, import, and otherwise transfer the Work,
179
+ where such license applies only to those patent claims licensable
180
+ by such Contributor that are necessarily infringed by their
181
+ Contribution(s) alone or by combination of their Contribution(s)
182
+ with the Work to which such Contribution(s) was submitted. If You
183
+ institute patent litigation against any entity (including a
184
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
185
+ or a Contribution incorporated within the Work constitutes direct
186
+ or contributory patent infringement, then any patent licenses
187
+ granted to You under this License for that Work shall terminate
188
+ as of the date such litigation is filed.
189
+
190
+ 4. Redistribution. You may reproduce and distribute copies of the
191
+ Work or Derivative Works thereof in any medium, with or without
192
+ modifications, and in Source or Object form, provided that You
193
+ meet the following conditions:
194
+
195
+ (a) You must give any other recipients of the Work or
196
+ Derivative Works a copy of this License; and
197
+
198
+ (b) You must cause any modified files to carry prominent notices
199
+ stating that You changed the files; and
200
+
201
+ (c) You must retain, in the Source form of any Derivative Works
202
+ that You distribute, all copyright, patent, trademark, and
203
+ attribution notices from the Source form of the Work,
204
+ excluding those notices that do not pertain to any part of
205
+ the Derivative Works; and
206
+
207
+ (d) If the Work includes a "NOTICE" text file as part of its
208
+ distribution, then any Derivative Works that You distribute must
209
+ include a readable copy of the attribution notices contained
210
+ within such NOTICE file, excluding those notices that do not
211
+ pertain to any part of the Derivative Works, in at least one
212
+ of the following places: within a NOTICE text file distributed
213
+ as part of the Derivative Works; within the Source form or
214
+ documentation, if provided along with the Derivative Works; or,
215
+ within a display generated by the Derivative Works, if and
216
+ wherever such third-party notices normally appear. The contents
217
+ of the NOTICE file are for informational purposes only and
218
+ do not modify the License. You may add Your own attribution
219
+ notices within Derivative Works that You distribute, alongside
220
+ or as an addendum to the NOTICE text from the Work, provided
221
+ that such additional attribution notices cannot be construed
222
+ as modifying the License.
223
+
224
+ You may add Your own copyright statement to Your modifications and
225
+ may provide additional or different license terms and conditions
226
+ for use, reproduction, or distribution of Your modifications, or
227
+ for any such Derivative Works as a whole, provided Your use,
228
+ reproduction, and distribution of the Work otherwise complies with
229
+ the conditions stated in this License.
230
+
231
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
232
+ any Contribution intentionally submitted for inclusion in the Work
233
+ by You to the Licensor shall be under the terms and conditions of
234
+ this License, without any additional terms or conditions.
235
+ Notwithstanding the above, nothing herein shall supersede or modify
236
+ the terms of any separate license agreement you may have executed
237
+ with Licensor regarding such Contributions.
238
+
239
+ 6. Trademarks. This License does not grant permission to use the trade
240
+ names, trademarks, service marks, or product names of the Licensor,
241
+ except as required for reasonable and customary use in describing the
242
+ origin of the Work and reproducing the content of the NOTICE file.
243
+
244
+ 7. Disclaimer of Warranty. Unless required by applicable law or
245
+ agreed to in writing, Licensor provides the Work (and each
246
+ Contributor provides its Contributions) on an "AS IS" BASIS,
247
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
248
+ implied, including, without limitation, any warranties or conditions
249
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
250
+ PARTICULAR PURPOSE. You are solely responsible for determining the
251
+ appropriateness of using or redistributing the Work and assume any
252
+ risks associated with Your exercise of permissions under this License.
253
+
254
+ 8. Limitation of Liability. In no event and under no legal theory,
255
+ whether in tort (including negligence), contract, or otherwise,
256
+ unless required by applicable law (such as deliberate and grossly
257
+ negligent acts) or agreed to in writing, shall any Contributor be
258
+ liable to You for damages, including any direct, indirect, special,
259
+ incidental, or consequential damages of any character arising as a
260
+ result of this License or out of the use or inability to use the
261
+ Work (including but not limited to damages for loss of goodwill,
262
+ work stoppage, computer failure or malfunction, or any and all
263
+ other commercial damages or losses), even if such Contributor
264
+ has been advised of the possibility of such damages.
265
+
266
+ 9. Accepting Warranty or Additional Liability. While redistributing
267
+ the Work or Derivative Works thereof, You may choose to offer,
268
+ and charge a fee for, acceptance of support, warranty, indemnity,
269
+ or other liability obligations and/or rights consistent with this
270
+ License. However, in accepting such obligations, You may act only
271
+ on Your own behalf and on Your sole responsibility, not on behalf
272
+ of any other Contributor, and only if You agree to indemnify,
273
+ defend, and hold each Contributor harmless for any liability
274
+ incurred by, or claims asserted against, such Contributor by reason
275
+ of your accepting any such warranty or additional liability.
276
+
277
+ END OF TERMS AND CONDITIONS
278
+
279
+ APPENDIX: How to apply the Apache License to your work.
280
+
281
+ To apply the Apache License to your work, attach the following
282
+ boilerplate notice, with the fields enclosed by brackets "[]"
283
+ replaced with your own identifying information. (Don't include
284
+ the brackets!) The text should be enclosed in the appropriate
285
+ comment syntax for the file format. We also recommend that a
286
+ file or class name and description of purpose be included on the
287
+ same "printed page" as the copyright notice for easier
288
+ identification within third-party archives.
289
+
290
+ Copyright [yyyy] [name of copyright owner]
291
+
292
+ Licensed under the Apache License, Version 2.0 (the "License");
293
+ you may not use this file except in compliance with the License.
294
+ You may obtain a copy of the License at
295
+
296
+ http://www.apache.org/licenses/LICENSE-2.0
297
+
298
+ Unless required by applicable law or agreed to in writing, software
299
+ distributed under the License is distributed on an "AS IS" BASIS,
300
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
301
+ See the License for the specific language governing permissions and
302
+ limitations under the License.
303
+ ```
package/bin/jishubuddy ADDED
Binary file
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "jishubuddy-linux-x64",
3
+ "version": "0.2.7",
4
+ "description": "JishuBuddy for linux-x64",
5
+ "license": "UNLICENSED",
6
+ "os": [
7
+ "linux"
8
+ ],
9
+ "cpu": [
10
+ "x64"
11
+ ],
12
+ "libc": [
13
+ "glibc"
14
+ ],
15
+ "bin": {
16
+ "jishubuddy": "bin/jishubuddy"
17
+ },
18
+ "engines": {
19
+ "node": ">=22"
20
+ },
21
+ "files": [
22
+ "README.md",
23
+ "THIRD_PARTY_NOTICES.md",
24
+ "bin/jishubuddy"
25
+ ],
26
+ "publishConfig": {
27
+ "access": "public",
28
+ "registry": "https://registry.npmjs.org/"
29
+ },
30
+ "jishubuddy": {
31
+ "target": "bun-linux-x64-baseline",
32
+ "glibc": ">=2.17"
33
+ }
34
+ }