@freelog/cli 0.10.2 → 0.10.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.
package/LICENSE CHANGED
@@ -1,21 +1,120 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 飞致网络(深圳)有限公司
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ # PolyForm Noncommercial License 1.0.0
2
+
3
+ <https://polyformproject.org/licenses/noncommercial/1.0.0>
4
+
5
+ ## Acceptance
6
+
7
+ In order to get any license under these terms, you must agree
8
+ to them as both strict obligations and conditions to all
9
+ your licenses.
10
+ ## Copyright License
11
+
12
+ The licensor grants you a copyright license for the
13
+ software to do everything you might do with the software
14
+ that would otherwise infringe the licensor's copyright
15
+ in it for any permitted purpose. However, you may
16
+ only distribute the software according to [Distribution
17
+ License](#distribution-license) and make changes or new works
18
+ based on the software according to [Changes and New Works
19
+ License](#changes-and-new-works-license).
20
+ ## Distribution License
21
+
22
+ The licensor grants you an additional copyright license
23
+ to distribute copies of the software. Your license
24
+ to distribute covers distributing the software with
25
+ changes and new works permitted by [Changes and New Works
26
+ License](#changes-and-new-works-license).
27
+ ## Notices
28
+
29
+ You must ensure that anyone who gets a copy of any part of
30
+ the software from you also gets a copy of these terms or the
31
+ URL for them above, as well as copies of any plain-text lines
32
+ beginning with `Required Notice:` that the licensor provided
33
+ with the software. For example:
34
+
35
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
36
+ ## Changes and New Works License
37
+
38
+ The licensor grants you an additional copyright license to
39
+ make changes and new works based on the software for any
40
+ permitted purpose.
41
+
42
+ ## Patent License
43
+
44
+ The licensor grants you a patent license for the software that
45
+ covers patent claims the licensor can license, or becomes able
46
+ to license, that you would infringe by using the software.
47
+
48
+ ## Noncommercial Purposes
49
+
50
+ Any noncommercial purpose is a permitted purpose.
51
+ ## Personal Uses
52
+
53
+ Personal use for research, experiment, and testing for
54
+ the benefit of public knowledge, personal study, private
55
+ entertainment, hobby projects, amateur pursuits, or religious
56
+ observance, without any anticipated commercial application,
57
+ is use for a permitted purpose.
58
+ ## Noncommercial Organizations
59
+
60
+ Use by any charitable organization, educational institution,
61
+ public research organization, public safety or health
62
+ organization, environmental protection organization,
63
+ or government institution is use for a permitted purpose
64
+ regardless of the source of funding or obligations resulting
65
+ from the funding.
66
+
67
+ ## Fair Use
68
+
69
+ You may have "fair use" rights for the software under the
70
+ law. These terms do not limit them.
71
+ ## No Other Rights
72
+
73
+ These terms do not allow you to sublicense or transfer any of
74
+ your licenses to anyone else, or prevent the licensor from
75
+ granting licenses to anyone else. These terms do not imply
76
+ any other licenses.
77
+ ## Patent Defense
78
+
79
+ If you make any written claim that the software infringes or
80
+ contributes to infringement of any patent, your patent license
81
+ for the software granted under these terms ends immediately. If
82
+ your company makes such a claim, your patent license ends
83
+ immediately for work on behalf of your company.
84
+ ## Violations
85
+
86
+ The first time you are notified in writing that you have
87
+ violated any of these terms, or done anything with the software
88
+ not covered by your licenses, your licenses can nonetheless
89
+ continue if you come into full compliance with these terms,
90
+ and take practical steps to correct past violations, within
91
+ 32 days of receiving notice. Otherwise, all your licenses
92
+ end immediately.
93
+ ## No Liability
94
+
95
+ ***As far as the law allows, the software comes as is, without
96
+ any warranty or condition, and the licensor will not be liable
97
+ to you for any damages arising out of these terms or the use
98
+ or nature of the software, under any kind of legal claim.***
99
+ ## Definitions
100
+
101
+ The **licensor** is the individual or entity offering these
102
+ terms, and the **software** is the software the licensor makes
103
+ available under these terms.
104
+
105
+ **You** refers to the individual or entity agreeing to these
106
+ terms.
107
+ **Your company** is any legal entity, sole proprietorship,
108
+ or other kind of organization that you work for, plus all
109
+ organizations that have control over, are under the control of,
110
+ or are under common control with that organization. **Control**
111
+ means ownership of substantially all the assets of an entity,
112
+ or the power to direct its management and policies by vote,
113
+ contract, or otherwise. Control can be direct or indirect.
114
+ **Your licenses** are all the licenses granted to you for the
115
+ software under these terms.
116
+
117
+ **Use** means anything you do with the software requiring one
118
+ of your licenses.
119
+
120
+ Required Notice: Copyright (c) 2026 飞致网络(深圳)有限公司
@@ -0,0 +1,47 @@
1
+ # Third-party and separately licensed components
2
+
3
+ The PolyForm Noncommercial license for Freelog CLI does not replace the
4
+ original licenses of separately licensed components or dependencies.
5
+ Those licenses apply only to the respective components, not to Freelog CLI
6
+ as a whole. Keep their original copyright and license notices when
7
+ redistributing them.
8
+
9
+ ## Bundled SDK: @freelog-cli/tools-lib2
10
+
11
+ Source in this repository: packages/tools-lib/
12
+ The original MIT license and copyright notice are reproduced below.
13
+
14
+ MIT License
15
+
16
+ Copyright (c) 2021 liu-kai-github
17
+
18
+ Permission is hereby granted, free of charge, to any person obtaining a copy
19
+ of this software and associated documentation files (the "Software"), to deal
20
+ in the Software without restriction, including without limitation the rights
21
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
22
+ copies of the Software, and to permit persons to whom the Software is
23
+ furnished to do so, subject to the following conditions:
24
+
25
+ The above copyright notice and this permission notice shall be included in all
26
+ copies or substantial portions of the Software.
27
+
28
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
29
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
30
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
31
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
32
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
33
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
34
+ SOFTWARE.
35
+
36
+ ## Independently distributed templates
37
+
38
+ The template packages under packages/templates/ declare ISC in their own
39
+ package.json files. They are not included in the CLI tarball. Their existing
40
+ license declarations and notices remain applicable to those templates.
41
+
42
+ ## Other dependencies
43
+
44
+ Other dependencies retain their own license and copyright notices, whether
45
+ installed separately or included in generated bundles. This file documents
46
+ the separately licensed workspace components; it is not an exhaustive
47
+ inventory of all transitive dependencies.
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Freelog 资源发行与管理命令行工具。npm 包名是 **`@freelog/cli`**,安装后的命令是 **`freelog-cli`**,最低要求 **Node.js 22.14.0**。请使用受支持的 Node 22 或 24 LTS。
4
4
 
5
+ **源码公开,仅限非商业用途。** 本包采用 [PolyForm Noncommercial 1.0.0](./LICENSE),不授予商业使用权;已发布旧版本以各自随包许可证为准。
6
+
5
7
  ```sh
6
8
  npm install --global @freelog/cli
7
9
  freelog-cli --cli-version
@@ -12,22 +14,20 @@ freelog-cli --help
12
14
 
13
15
  如果 `freelog-cli` 由其他全局包提供,先卸载该包,再安装 `@freelog/cli`,避免全局命令冲突。具体步骤见[安装来源与 AI 代办](https://widget-docs.freelog.cn/cli/)。
14
16
 
15
- 命令找不到时先重新打开终端,并检查 npm 全局可执行目录是否在 PATH 中。首次使用在工程目录执行 `freelog-cli login` 完成密码登录,也可用 `freelog-cli login --method code`,由本人输入图形验证码及手机或邮箱收到的验证码。微信登录待后端支持。再按[完整使用手册](https://widget-docs.freelog.cn/cli/)选择首次发行或绑定后更新的教程。
16
-
17
- 支持普通单文件、主题/插件及作者合集的发行管理;主题/插件可从线上模板创建工程。也可管理线上存储、从存储导入发行物、查询市场、创建节点、管理节点展品及节点自建展品合集。作者资源和作者合集可公开或非公开上架。节点新展品签约通过内联auth-cli包执行,用户无需另装授权工具。已有合同应用/搁置及阶段恢复保留;当前依赖签约、已有展品补签和所有新支付到浏览器办理。具体参数和流程以对应版本的使用手册为准。
18
-
19
- 当前版本默认连接开发环境。节点设置、专用确认删除、主题切换及展品编辑见[在线使用手册](https://widget-docs.freelog.cn/cli/)。节点签约涉及必要上抛或已有合同复用时转浏览器办理。非公开上架来源的 CLI 签入仍待授权模块适配。
17
+ 命令找不到时先重新打开终端,并检查 npm 全局可执行目录是否在 PATH 中。当前 CLI 尚未开放生产平台操作。生产业务请先使用 Console;版本与能力支持范围、验证边界及升级方式见在线手册的「版本记录」和「快速上手」。再按[完整使用手册](https://widget-docs.freelog.cn/cli/)选择首次发行或绑定后更新的教程。
20
18
 
21
- 0.10.0 展品签入的已知限制:显式传入空的 `--name` 可能采用默认授权标识并创建展品,自动化调用应提供有效的非空值。终端取消、登录失效和资源不存在目前可能返回与手册不同的退出码,排查时同时查看返回的错误信息。
19
+ 支持普通单文件、主题/插件及作者合集的发行管理;主题/插件可从线上模板创建工程。也可管理线上存储、从存储导入发行物、查询市场、创建节点、管理节点展品及节点自建展品合集。作者资源和作者合集可公开或非公开上架。节点新展品签约通过内联auth-cli包执行,用户无需另装授权工具。依赖声明、签约授权、合同及支付由 auth-cli 负责,主 CLI 不提供依赖编辑、支付或旧展品资源授权命令。具体参数和流程以对应版本的使用手册为准。
22
20
 
23
- 直接依赖允许未签先存稿,不查询或创建合同;发行前仍以当前资源或合集为被授权方核适用生效合同,个人购买不替代。新的依赖授权链尚未开放。声明已保存、已签约、已支付和实际访问授权是不同结果。
21
+ 生产教程以对应安装包开放并验证生产能力为前提。节点设置、专用确认删除、主题切换及展品编辑见[在线使用手册](https://widget-docs.freelog.cn/cli/)。节点签约涉及必要上抛或已有合同复用时转浏览器办理。非公开上架来源的 CLI 签入仍待授权模块适配。
24
22
 
25
- 当前不新建支付订单或二维码,历史订单仅支持只读查询,见[支付说明](https://widget-docs.freelog.cn/cli/)。
26
-
27
- 项目仍处于开发阶段,完整命令组合、Console 双向和三平台矩阵仍有未验部分;部分合集模板有已知后端编译问题。批量发行、RSS维护尚不支持。详细限制见在线使用手册,未宣称全部验收通过。
23
+ 项目仍处于开发阶段,完整命令组合、Console 双向和三平台矩阵仍有未验部分;部分合集模板有已知后端编译问题。批量发行、RSS维护尚不支持。具体能力起点、历史勘误和未验证流程统一见在线手册「版本记录」。
28
24
 
29
25
  给 AI 指定任务时提供包名、环境、工程目录和目标资源ID或完整授权标识。先通过 `freelog-cli --cli-version` 核对实际安装版本,再按对应版本的手册操作;失败或结果未知时停止后继写入并核对,不盲目重发。
30
26
 
31
27
  源代码、完整手册与开发说明:[freelog-runtime-cli](https://github.com/freelogfe/freelog-runtime-cli#readme)。试用未发布改动时使用维护者提供的对应候选包;核对安装来源、对应版本的手册及实际命令,不仅凭在线文档或版本号推断支持范围。
32
28
 
33
- 许可证:[MIT](./LICENSE)。
29
+ 问题及命令体验反馈:[GitHub Issues](https://github.com/freelogfe/freelog-runtime-cli/issues)。请提供 CLI/Node/系统版本、复现步骤和脱敏错误;不要提供密码、令牌、验证码或完整凭据文件。无仓库访问权限时请通过提供 CLI 的团队联系人转交。
30
+
31
+ 许可证:[PolyForm Noncommercial 1.0.0](./LICENSE)。独立组件保留原许可,见[第三方许可声明](./LICENSE.thirdparty);这些声明不使整个 CLI 获得 MIT 授权。
32
+
33
+ 贡献方式、安全问题私密报告及许可范围请从[仓库公开说明](https://github.com/freelogfe/freelog-runtime-cli#许可与参与贡献)进入。疑似漏洞不要提交到公开 Issue。