@deveco-test/hmos-deveco-cli 0.2.0 → 0.3.0-TD.1.1
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 +65 -0
- package/SKILL.md +26 -21
- package/THIRD-PARTY-LICENSES +342 -3
- package/dist/cli.js +159 -103
- package/dist/internal/doc-init-background.js +8 -8
- package/index.zip +0 -0
- package/package.json +8 -2
- package/scripts/install-jieba-wasm.mjs +47 -0
- package/scripts/lib/jieba-wasm-vendor.mjs +102 -0
- package/scripts/postinstall.mjs +9 -0
- package/src/resources/aclPermission/aclPermissionsInfo.json +311 -0
package/README.md
CHANGED
|
@@ -91,12 +91,14 @@ devecocli init --path .\work\ARKTS\NewData
|
|
|
91
91
|
| ------------------------- | ----------------------------------------- |
|
|
92
92
|
| `devecocli create` | 创建新的 HarmonyOS 项目 |
|
|
93
93
|
| `devecocli build` | 构建项目并产出 `.hap` / `.hsp` / `.har` / `.app` |
|
|
94
|
+
| `devecocli check lint` | 检查代码规范并输出实践建议与报告 |
|
|
94
95
|
| `devecocli run` | 安装并运行应用 |
|
|
95
96
|
| `devecocli device list` | 查看当前连接设备 |
|
|
96
97
|
| `devecocli log` | 查看 `hilog` 或崩溃日志 |
|
|
97
98
|
| `devecocli docs search` | 搜索本地 HarmonyOS 文档 |
|
|
98
99
|
| `devecocli init` | 安装内置技能或配置 `MCP` |
|
|
99
100
|
| `devecocli skills` | 管理 HarmonyOS 技能市场中的技能 |
|
|
101
|
+
| `devecocli signature generate` | 自动生成调试签名材料并配置到项目 |
|
|
100
102
|
|
|
101
103
|
## 命令集
|
|
102
104
|
|
|
@@ -131,6 +133,8 @@ Commands:
|
|
|
131
133
|
init [options] Install the deveco-cli skill or configure the deveco-mcp server into AI agents
|
|
132
134
|
serve Host bundled auxiliary protocol servers
|
|
133
135
|
docs [options] Search and read HarmonyOS documentation from local docs directory
|
|
136
|
+
check Run DevEco project checks
|
|
137
|
+
signature Generate application signature
|
|
134
138
|
help [command] display help for command
|
|
135
139
|
```
|
|
136
140
|
|
|
@@ -312,6 +316,29 @@ devecocli build --product oversea --modules entry --build-mode release
|
|
|
312
316
|
devecocli build clean
|
|
313
317
|
```
|
|
314
318
|
|
|
319
|
+
### `check lint`
|
|
320
|
+
|
|
321
|
+
检查代码规范并输出实践建议与报告。
|
|
322
|
+
|
|
323
|
+
**命令格式:**
|
|
324
|
+
|
|
325
|
+
```bash
|
|
326
|
+
devecocli check lint [path]
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
**参数:**
|
|
330
|
+
|
|
331
|
+
| 参数名 | 说明 |
|
|
332
|
+
| ---------------------------- | --------------------------------------------------------------------- |
|
|
333
|
+
| `[path]` | 可选,待检查的文件或目录;默认使用 `build-profile.json5` 所在的项目根目录,否则使用当前目录 |
|
|
334
|
+
| `--config-path <path>` | Code Linter 配置文件路径,仅支持 `.json` 或 `.json5`;默认使用待检查项目根目录下的 `code-linter.json5`,显式指定时必须与待检查路径属于同一项目 |
|
|
335
|
+
| `--fix` | 自动修复可修复的问题 |
|
|
336
|
+
| `--incremental` | 仅检查 Git 未提交文件 |
|
|
337
|
+
| `--product <name>` | `build-profile.json5` 中定义的 product,默认为 `default` |
|
|
338
|
+
| `--format <default\|json>` | 完整报告格式;`default` 输出 Markdown,`json` 输出 JSON |
|
|
339
|
+
| `--output-path <path>` | 完整报告文件或目录;目录形式会自动生成带时间戳的报告文件 |
|
|
340
|
+
| `--limit <number>` | 未指定 `--output-path` 时,限制终端显示的问题数量 |
|
|
341
|
+
|
|
315
342
|
### `device list`
|
|
316
343
|
|
|
317
344
|
查询所有已连接的设备
|
|
@@ -539,6 +566,44 @@ devecocli skills remove --skill skillname --agent agentname # skillname需替
|
|
|
539
566
|
}
|
|
540
567
|
```
|
|
541
568
|
|
|
569
|
+
### `signature generate`
|
|
570
|
+
|
|
571
|
+
自动生成调试签名材料(包括p12密钥库、csr证书请求文件、p7b配置文件、cer证书文件),并将签名配置写入项目的 `build-profile.json5` 中。
|
|
572
|
+
|
|
573
|
+
**命令格式:**
|
|
574
|
+
|
|
575
|
+
```bash
|
|
576
|
+
devecocli signature generate --product <product> --team-id <team-id> --force --help
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
**参数:**
|
|
580
|
+
|
|
581
|
+
| 参数名 | 说明 |
|
|
582
|
+
|-----------------------|-----------------------------------------|
|
|
583
|
+
| --product \<product\> | 可选,指定product生成签名,默认为 `default` |
|
|
584
|
+
| --team-id \<team-id\> | 可选,指定生效的team-id,默认使用自身作为团队信息 |
|
|
585
|
+
| --force | 可选,强制覆盖已存在的证书文件 |
|
|
586
|
+
| --help,--h | 可选,查看帮助信息 |
|
|
587
|
+
|
|
588
|
+
**示例:**
|
|
589
|
+
|
|
590
|
+
```bash
|
|
591
|
+
# 自动生成签名并写入工程配置
|
|
592
|
+
devecocli signature generate
|
|
593
|
+
|
|
594
|
+
# 指定product
|
|
595
|
+
devecocli signature generate --product default
|
|
596
|
+
|
|
597
|
+
# 指定team-id
|
|
598
|
+
devecocli signature generate --team-id 1222
|
|
599
|
+
|
|
600
|
+
# 强制覆盖已存在的证书文件
|
|
601
|
+
devecocli signature generate --force
|
|
602
|
+
|
|
603
|
+
# 查询帮助信息
|
|
604
|
+
devecocli signature generate --help
|
|
605
|
+
```
|
|
606
|
+
|
|
542
607
|
## 常见问题
|
|
543
608
|
|
|
544
609
|
### 如何本地推包运行
|
package/SKILL.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: deveco-cli
|
|
3
3
|
description: >-
|
|
4
|
-
**MUST** use 'devecocli' for HarmonyOS apps (scaffold, build, run, debug, devices,
|
|
4
|
+
**MUST** use 'devecocli' for HarmonyOS apps (scaffold, build, run, debug, devices, logs, docs, 鸿蒙开发文档, skills, multi-preview). **REQUIRED** and **MANDATORY** if workspace has build-profile.json5 or oh-package.json5, or user mentions HarmonyOS, 鸿蒙, DevEco, ArkTS, ArkUI, docs, 鸿蒙文档, 知识, 搜索, skills, or preview/预览/预览器/多预览器/多设备预览器.
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# DevEco CLI
|
|
8
8
|
|
|
9
|
-
`devecocli` wraps DevEco Studio's `hvigor`, `ohpm`, `hdc`,
|
|
9
|
+
`devecocli` wraps DevEco Studio's `hvigor`, `ohpm`, `hdc`, and HarmonyOS-skills installer. **Prefer `devecocli` over invoking underlying tools directly.**
|
|
10
10
|
|
|
11
11
|
**Do NOT use these legacy commands** — use the `devecocli` equivalent instead:
|
|
12
12
|
- ❌ `deveco preview` / `hvigorw preview` → ✅ `devecocli run --device <product-name>` (launches DevEco Studio previewer; product name in `--device` triggers previewer mode)
|
|
13
13
|
- ❌ `hvigorw` directly → ✅ `devecocli build`
|
|
14
14
|
- ❌ `hdc` directly (when a `devecocli` wrapper exists) → ✅ `devecocli device` / `devecocli log` / `devecocli run`
|
|
15
15
|
|
|
16
|
-
Available commands: `build`, `run`, `update`, `device`, `
|
|
16
|
+
Available commands: `build`, `check`, `run`, `update`, `device`, `skills`, `log`, `create`, `init`, `serve`, `docs`, `auth`.
|
|
17
17
|
|
|
18
18
|
**Sandbox Rule**: Commands tagged `[Outside sandbox]` must be run outside the sandbox.
|
|
19
19
|
|
|
@@ -36,16 +36,10 @@ Compile and package project/modules. (Defaults: `--product default`, `--build-mo
|
|
|
36
36
|
| Whole product bundle (.app) | `devecocli build --product <name>` |
|
|
37
37
|
| Clean build outputs | `devecocli build clean` |
|
|
38
38
|
|
|
39
|
-
### `devecocli
|
|
40
|
-
|
|
41
|
-
- `
|
|
42
|
-
-
|
|
43
|
-
- `stop <names...>`: Stop by name or serial (`127.0.0.1:<port>`).
|
|
44
|
-
- `create <name>` (Req: `--device-type`, `--os-version`): Create instance. Optional: `--force`.
|
|
45
|
-
- `delete <name>`: Delete instance.
|
|
46
|
-
- `image list`: List downloaded images. Opts: `--device-type <type>`, `--all`, `--format <table|json>`.
|
|
47
|
-
- `image download` / `image remove` (Req: `--device-type`, `--os-version`): Download/remove image. (Takes 30+ min, set long timeout).
|
|
48
|
-
*Device types*: `phone`, `foldable`, `widefold`, `triplefold`, `tablet`, `2in1`, `2in1 foldable`, `wearable`, `tv`.
|
|
39
|
+
### `devecocli check lint`
|
|
40
|
+
Run DevEco Code Linter checks for TS/ArkTS code.
|
|
41
|
+
- `[path]`: File or directory to lint. Defaults to the project root from `build-profile.json5`, otherwise the current directory.
|
|
42
|
+
- Options: `--config-path <file>`, `--fix`, `--incremental`, `--product <name>`, `--format <default|json>`, `--output-path <path>`, `--limit <number>`.
|
|
49
43
|
|
|
50
44
|
### `devecocli docs`
|
|
51
45
|
Search/read local HarmonyOS docs.
|
|
@@ -54,7 +48,7 @@ Search/read local HarmonyOS docs.
|
|
|
54
48
|
- `catalog`: List available catalogs.
|
|
55
49
|
|
|
56
50
|
### `devecocli device`
|
|
57
|
-
- `list`: Show active real devices
|
|
51
|
+
- `list`: Show active real devices.
|
|
58
52
|
- `view`: Detailed info. Req `-t <name|serial>` on multi-device hosts.
|
|
59
53
|
|
|
60
54
|
### `devecocli run` `[Outside sandbox]`
|
|
@@ -92,6 +86,19 @@ MUTUALLY EXCLUSIVE modes for setup:
|
|
|
92
86
|
- `-f, --force`: Overwrite existing config.
|
|
93
87
|
*MCP Rules*: Global MCP (no `--project`) only supports `opencode` and `cursor`. Others require `--project`.
|
|
94
88
|
|
|
89
|
+
### `devecocli auth login`
|
|
90
|
+
Sign in to your Huawei Developer account. Opens a browser for OAuth authentication. Required before `signature generate`.
|
|
91
|
+
*Ex*: `devecocli auth login`
|
|
92
|
+
|
|
93
|
+
### `devecocli auth logout`
|
|
94
|
+
Sign out and clear locally stored credentials.
|
|
95
|
+
|
|
96
|
+
### `devecocli auth status`
|
|
97
|
+
Show the current logged-in user.
|
|
98
|
+
|
|
99
|
+
### `devecocli auth team list`
|
|
100
|
+
List team accounts the current user has joined.
|
|
101
|
+
|
|
95
102
|
### `devecocli skills`
|
|
96
103
|
Manage HarmonyOS skills in AI agents/projects.
|
|
97
104
|
- `list [-l|--long]` / `find <keyword>`: List or search skills.
|
|
@@ -105,8 +112,8 @@ Manage HarmonyOS skills in AI agents/projects.
|
|
|
105
112
|
|
|
106
113
|
## Recipes
|
|
107
114
|
|
|
108
|
-
- **Fresh checkout to
|
|
109
|
-
`devecocli build` -> `devecocli
|
|
115
|
+
- **Fresh checkout to real device**:
|
|
116
|
+
`devecocli build` -> `devecocli device list` -> `devecocli run --device <serial>`
|
|
110
117
|
- **Launch previewer for current project** (instead of `deveco preview`):
|
|
111
118
|
- Single previewer (specific device type): `devecocli run --module entry --device "Pura 90 Pro"`
|
|
112
119
|
- Multi-preview by device types: `devecocli run --module entry --device "Pura 90 Pro,Mate XT"`
|
|
@@ -116,17 +123,15 @@ Manage HarmonyOS skills in AI agents/projects.
|
|
|
116
123
|
`devecocli log --crash --bundle-name <bundle>`
|
|
117
124
|
- **Release build**:
|
|
118
125
|
`devecocli build --product oversea --build-mode release`
|
|
126
|
+
- **First-time signing setup**:
|
|
127
|
+
`devecocli login` -> `devecocli signature generate --product default` -> `devecocli build` -> `devecocli run`
|
|
119
128
|
|
|
120
129
|
## Troubleshooting
|
|
121
130
|
|
|
122
131
|
- **"Product / Build mode `<x>` not found"**: Check `build-profile.json5`.
|
|
123
132
|
- **"Multiple entry modules" / "No entry module"**: Pass `--modules` (build) or `--module` (run).
|
|
124
|
-
- **"No active devices" / "Multiple devices connected"**: Connect
|
|
133
|
+
- **"No active devices" / "Multiple devices connected"**: Connect a real device (or self-connect via wireless debugging on HarmonyOS native PC). Pass `-t <serial>` (device view) or `--device <name|serial>` (run/log).
|
|
125
134
|
- **`error:install sign info inconsistent`**: Signing key changed. Run `devecocli run --uninstall`.
|
|
126
135
|
- **`skills add` agent not found**: Valid: `codebuddy`, `cursor`, `opencode`, `qoder`, `trae-cn`.
|
|
127
|
-
- **`emulator start` / `image download` blocked on agreement**: User MUST run `devecocli emulator license accept` in interactive TTY. Agents cannot do this. Do not retry until accepted.
|
|
128
|
-
- **`image download` failure / timeout**: Do NOT auto-retry. Give the command to the user to run manually in their terminal.
|
|
129
|
-
- **`emulator create` timeout**: Treat as user-action step. Ask user to open DevEco Studio -> Device Manager. Check `emulator list` after user confirms. Do NOT auto-retry or edit SDK files.
|
|
130
|
-
- **`image list` duplicate OS rows**: `phone`/`foldable`/`widefold`/`triplefold` share the same image. Download/remove ONCE per OS version.
|
|
131
136
|
- **HarmonyOS native (2in1 PC) — `hdc list targets` shows `[Empty]`**: hdc on HarmonyOS does NOT auto-discover the local device. Open "Settings → System → Developer options → Wireless debugging", note the port, then `hdc tconn 127.0.0.1:<port>`. For normal run: pass `--device 127.0.0.1:<port>`. For previewer mode: set `DEVECO_HDC_PORT=<port>` env var (previewer mode uses `--device` for product name, not hdc target).
|
|
132
137
|
- **Previewer mode — "DevEco Studio is not running"**: The previewer's rendering depends on the DevEco Studio desktop process. If the CLI returns this error, do NOT retry. Use natural language to tell the user: "预览器需要 DevEco Studio 处于运行状态,请先手动启动 DevEco Studio,启动后再重试此命令。" On HarmonyOS PC, also remind the user that process detection may be limited by UID isolation (currentUser cannot see Studio's process), but if the CLI reports this error it means detection genuinely failed.
|
package/THIRD-PARTY-LICENSES
CHANGED
|
@@ -2343,7 +2343,7 @@ Felix Geisendörfer (felix@debuggable.com)
|
|
|
2343
2343
|
|
|
2344
2344
|
The following npm package may be included in this product:
|
|
2345
2345
|
|
|
2346
|
-
- form-data@4.0.
|
|
2346
|
+
- form-data@4.0.6
|
|
2347
2347
|
|
|
2348
2348
|
This package contains the following license:
|
|
2349
2349
|
|
|
@@ -3264,7 +3264,7 @@ SOFTWARE.
|
|
|
3264
3264
|
|
|
3265
3265
|
The following npm package may be included in this product:
|
|
3266
3266
|
|
|
3267
|
-
- hono@4.12.
|
|
3267
|
+
- hono@4.12.30
|
|
3268
3268
|
|
|
3269
3269
|
This package contains the following license:
|
|
3270
3270
|
|
|
@@ -3711,7 +3711,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
3711
3711
|
|
|
3712
3712
|
The following npm package may be included in this product:
|
|
3713
3713
|
|
|
3714
|
-
- hasown@2.0.
|
|
3714
|
+
- hasown@2.0.4
|
|
3715
3715
|
|
|
3716
3716
|
This package contains the following license:
|
|
3717
3717
|
|
|
@@ -5139,5 +5139,344 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
5139
5139
|
|
|
5140
5140
|
-----------
|
|
5141
5141
|
|
|
5142
|
+
The following npm package may be included in this product:
|
|
5143
|
+
|
|
5144
|
+
- node-forge@1.4.0
|
|
5145
|
+
|
|
5146
|
+
This package contains the following license:
|
|
5147
|
+
|
|
5148
|
+
You may use the Forge project under the terms of either the BSD License or the
|
|
5149
|
+
GNU General Public License (GPL) Version 2.
|
|
5150
|
+
|
|
5151
|
+
The BSD License is recommended for most projects. It is simple and easy to
|
|
5152
|
+
understand and it places almost no restrictions on what you can do with the
|
|
5153
|
+
Forge project.
|
|
5154
|
+
|
|
5155
|
+
If the GPL suits your project better you are also free to use Forge under
|
|
5156
|
+
that license.
|
|
5157
|
+
|
|
5158
|
+
You don't have to do anything special to choose one license or the other and
|
|
5159
|
+
you don't have to notify anyone which license you are using. You are free to
|
|
5160
|
+
use this project in commercial projects as long as the copyright header is
|
|
5161
|
+
left intact.
|
|
5162
|
+
|
|
5163
|
+
If you are a commercial entity and use this set of libraries in your
|
|
5164
|
+
commercial software then reasonable payment to Digital Bazaar, if you can
|
|
5165
|
+
afford it, is not required but is expected and would be appreciated. If this
|
|
5166
|
+
library saves you time, then it's saving you money. The cost of developing
|
|
5167
|
+
the Forge software was on the order of several hundred hours and tens of
|
|
5168
|
+
thousands of dollars. We are attempting to strike a balance between helping
|
|
5169
|
+
the development community while not being taken advantage of by lucrative
|
|
5170
|
+
commercial entities for our efforts.
|
|
5171
|
+
|
|
5172
|
+
-------------------------------------------------------------------------------
|
|
5173
|
+
New BSD License (3-clause)
|
|
5174
|
+
Copyright (c) 2010, Digital Bazaar, Inc.
|
|
5175
|
+
All rights reserved.
|
|
5176
|
+
|
|
5177
|
+
Redistribution and use in source and binary forms, with or without
|
|
5178
|
+
modification, are permitted provided that the following conditions are met:
|
|
5179
|
+
* Redistributions of source code must retain the above copyright
|
|
5180
|
+
notice, this list of conditions and the following disclaimer.
|
|
5181
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
5182
|
+
notice, this list of conditions and the following disclaimer in the
|
|
5183
|
+
documentation and/or other materials provided with the distribution.
|
|
5184
|
+
* Neither the name of Digital Bazaar, Inc. nor the
|
|
5185
|
+
names of its contributors may be used to endorse or promote products
|
|
5186
|
+
derived from this software without specific prior written permission.
|
|
5187
|
+
|
|
5188
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
5189
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
5190
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
5191
|
+
DISCLAIMED. IN NO EVENT SHALL DIGITAL BAZAAR BE LIABLE FOR ANY
|
|
5192
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
5193
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
5194
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
5195
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
5196
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
5197
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
5198
|
+
|
|
5199
|
+
-------------------------------------------------------------------------------
|
|
5200
|
+
GNU GENERAL PUBLIC LICENSE
|
|
5201
|
+
Version 2, June 1991
|
|
5202
|
+
|
|
5203
|
+
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
|
5204
|
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
5205
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
5206
|
+
of this license document, but changing it is not allowed.
|
|
5207
|
+
|
|
5208
|
+
Preamble
|
|
5209
|
+
|
|
5210
|
+
The licenses for most software are designed to take away your
|
|
5211
|
+
freedom to share and change it. By contrast, the GNU General Public
|
|
5212
|
+
License is intended to guarantee your freedom to share and change free
|
|
5213
|
+
software--to make sure the software is free for all its users. This
|
|
5214
|
+
General Public License applies to most of the Free Software
|
|
5215
|
+
Foundation's software and to any other program whose authors commit to
|
|
5216
|
+
using it. (Some other Free Software Foundation software is covered by
|
|
5217
|
+
the GNU Lesser General Public License instead.) You can apply it to
|
|
5218
|
+
your programs, too.
|
|
5219
|
+
|
|
5220
|
+
When we speak of free software, we are referring to freedom, not
|
|
5221
|
+
price. Our General Public Licenses are designed to make sure that you
|
|
5222
|
+
have the freedom to distribute copies of free software (and charge for
|
|
5223
|
+
this service if you wish), that you receive source code or can get it
|
|
5224
|
+
if you want it, that you can change the software or use pieces of it
|
|
5225
|
+
in new free programs; and that you know you can do these things.
|
|
5226
|
+
|
|
5227
|
+
To protect your rights, we need to make restrictions that forbid
|
|
5228
|
+
anyone to deny you these rights or to ask you to surrender the rights.
|
|
5229
|
+
These restrictions translate to certain responsibilities for you if you
|
|
5230
|
+
distribute copies of the software, or if you modify it.
|
|
5231
|
+
|
|
5232
|
+
For example, if you distribute copies of such a program, whether
|
|
5233
|
+
gratis or for a fee, you must give the recipients all the rights that
|
|
5234
|
+
you have. You must make sure that they, too, receive or can get the
|
|
5235
|
+
source code. And you must show them these terms so they know their
|
|
5236
|
+
rights.
|
|
5237
|
+
|
|
5238
|
+
We protect your rights with two steps: (1) copyright the software, and
|
|
5239
|
+
(2) offer you this license which gives you legal permission to copy,
|
|
5240
|
+
distribute and/or modify the software.
|
|
5241
|
+
|
|
5242
|
+
Also, for each author's protection and ours, we want to make certain
|
|
5243
|
+
that everyone understands that there is no warranty for this free
|
|
5244
|
+
software. If the software is modified by someone else and passed on, we
|
|
5245
|
+
want its recipients to know that what they have is not the original, so
|
|
5246
|
+
that any problems introduced by others will not reflect on the original
|
|
5247
|
+
authors' reputations.
|
|
5248
|
+
|
|
5249
|
+
Finally, any free program is threatened constantly by software
|
|
5250
|
+
patents. We wish to avoid the danger that redistributors of a free
|
|
5251
|
+
program will individually obtain patent licenses, in effect making the
|
|
5252
|
+
program proprietary. To prevent this, we have made it clear that any
|
|
5253
|
+
patent must be licensed for everyone's free use or not licensed at all.
|
|
5254
|
+
|
|
5255
|
+
The precise terms and conditions for copying, distribution and
|
|
5256
|
+
modification follow.
|
|
5257
|
+
|
|
5258
|
+
GNU GENERAL PUBLIC LICENSE
|
|
5259
|
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
5260
|
+
|
|
5261
|
+
0. This License applies to any program or other work which contains
|
|
5262
|
+
a notice placed by the copyright holder saying it may be distributed
|
|
5263
|
+
under the terms of this General Public License. The "Program", below,
|
|
5264
|
+
refers to any such program or work, and a "work based on the Program"
|
|
5265
|
+
means either the Program or any derivative work under copyright law:
|
|
5266
|
+
that is to say, a work containing the Program or a portion of it,
|
|
5267
|
+
either verbatim or with modifications and/or translated into another
|
|
5268
|
+
language. (Hereinafter, translation is included without limitation in
|
|
5269
|
+
the term "modification".) Each licensee is addressed as "you".
|
|
5270
|
+
|
|
5271
|
+
Activities other than copying, distribution and modification are not
|
|
5272
|
+
covered by this License; they are outside its scope. The act of
|
|
5273
|
+
running the Program is not restricted, and the output from the Program
|
|
5274
|
+
is covered only if its contents constitute a work based on the
|
|
5275
|
+
Program (independent of having been made by running the Program).
|
|
5276
|
+
Whether that is true depends on what the Program does.
|
|
5277
|
+
|
|
5278
|
+
1. You may copy and distribute verbatim copies of the Program's
|
|
5279
|
+
source code as you receive it, in any medium, provided that you
|
|
5280
|
+
conspicuously and appropriately publish on each copy an appropriate
|
|
5281
|
+
copyright notice and disclaimer of warranty; keep intact all the
|
|
5282
|
+
notices that refer to this License and to the absence of any warranty;
|
|
5283
|
+
and give any other recipients of the Program a copy of this License
|
|
5284
|
+
along with the Program.
|
|
5285
|
+
|
|
5286
|
+
You may charge a fee for the physical act of transferring a copy, and
|
|
5287
|
+
you may at your option offer warranty protection in exchange for a fee.
|
|
5288
|
+
|
|
5289
|
+
2. You may modify your copy or copies of the Program or any portion
|
|
5290
|
+
of it, thus forming a work based on the Program, and copy and
|
|
5291
|
+
distribute such modifications or work under the terms of Section 1
|
|
5292
|
+
above, provided that you also meet all of these conditions:
|
|
5293
|
+
|
|
5294
|
+
a) You must cause the modified files to carry prominent notices
|
|
5295
|
+
stating that you changed the files and the date of any change.
|
|
5296
|
+
|
|
5297
|
+
b) You must cause any work that you distribute or publish, that in
|
|
5298
|
+
whole or in part contains or is derived from the Program or any
|
|
5299
|
+
part thereof, to be licensed as a whole at no charge to all third
|
|
5300
|
+
parties under the terms of this License.
|
|
5301
|
+
|
|
5302
|
+
c) If the modified program normally reads commands interactively
|
|
5303
|
+
when run, you must cause it, when started running for such
|
|
5304
|
+
interactive use in the most ordinary way, to print or display an
|
|
5305
|
+
announcement including an appropriate copyright notice and a
|
|
5306
|
+
notice that there is no warranty (or else, saying that you provide
|
|
5307
|
+
a warranty) and that users may redistribute the program under
|
|
5308
|
+
these conditions, and telling the user how to view a copy of this
|
|
5309
|
+
License. (Exception: if the Program itself is interactive but
|
|
5310
|
+
does not normally print such an announcement, your work based on
|
|
5311
|
+
the Program is not required to print an announcement.)
|
|
5312
|
+
|
|
5313
|
+
These requirements apply to the modified work as a whole. If
|
|
5314
|
+
identifiable sections of that work are not derived from the Program,
|
|
5315
|
+
and can be reasonably considered independent and separate works in
|
|
5316
|
+
themselves, then this License, and its terms, do not apply to those
|
|
5317
|
+
sections when you distribute them as separate works. But when you
|
|
5318
|
+
distribute the same sections as part of a whole which is a work based
|
|
5319
|
+
on the Program, the distribution of the whole must be on the terms of
|
|
5320
|
+
this License, whose permissions for other licensees extend to the
|
|
5321
|
+
entire whole, and thus to each and every part regardless of who wrote it.
|
|
5322
|
+
|
|
5323
|
+
Thus, it is not the intent of this section to claim rights or contest
|
|
5324
|
+
your rights to work written entirely by you; rather, the intent is to
|
|
5325
|
+
exercise the right to control the distribution of derivative or
|
|
5326
|
+
collective works based on the Program.
|
|
5327
|
+
|
|
5328
|
+
In addition, mere aggregation of another work not based on the Program
|
|
5329
|
+
with the Program (or with a work based on the Program) on a volume of
|
|
5330
|
+
a storage or distribution medium does not bring the other work under
|
|
5331
|
+
the scope of this License.
|
|
5332
|
+
|
|
5333
|
+
3. You may copy and distribute the Program (or a work based on it,
|
|
5334
|
+
under Section 2) in object code or executable form under the terms of
|
|
5335
|
+
Sections 1 and 2 above provided that you also do one of the following:
|
|
5336
|
+
|
|
5337
|
+
a) Accompany it with the complete corresponding machine-readable
|
|
5338
|
+
source code, which must be distributed under the terms of Sections
|
|
5339
|
+
1 and 2 above on a medium customarily used for software interchange; or,
|
|
5340
|
+
|
|
5341
|
+
b) Accompany it with a written offer, valid for at least three
|
|
5342
|
+
years, to give any third party, for a charge no more than your
|
|
5343
|
+
cost of physically performing source distribution, a complete
|
|
5344
|
+
machine-readable copy of the corresponding source code, to be
|
|
5345
|
+
distributed under the terms of Sections 1 and 2 above on a medium
|
|
5346
|
+
customarily used for software interchange; or,
|
|
5347
|
+
|
|
5348
|
+
c) Accompany it with the information you received as to the offer
|
|
5349
|
+
to distribute corresponding source code. (This alternative is
|
|
5350
|
+
allowed only for noncommercial distribution and only if you
|
|
5351
|
+
received the program in object code or executable form with such
|
|
5352
|
+
an offer, in accord with Subsection b above.)
|
|
5353
|
+
|
|
5354
|
+
The source code for a work means the preferred form of the work for
|
|
5355
|
+
making modifications to it. For an executable work, complete source
|
|
5356
|
+
code means all the source code for all modules it contains, plus any
|
|
5357
|
+
associated interface definition files, plus the scripts used to
|
|
5358
|
+
control compilation and installation of the executable. However, as a
|
|
5359
|
+
special exception, the source code distributed need not include
|
|
5360
|
+
anything that is normally distributed (in either source or binary
|
|
5361
|
+
form) with the major components (compiler, kernel, and so on) of the
|
|
5362
|
+
operating system on which the executable runs, unless that component
|
|
5363
|
+
itself accompanies the executable.
|
|
5364
|
+
|
|
5365
|
+
If distribution of executable or object code is made by offering
|
|
5366
|
+
access to copy from a designated place, then offering equivalent
|
|
5367
|
+
access to copy the source code from the same place counts as
|
|
5368
|
+
distribution of the source code, even though third parties are not
|
|
5369
|
+
compelled to copy the source along with the object code.
|
|
5370
|
+
|
|
5371
|
+
4. You may not copy, modify, sublicense, or distribute the Program
|
|
5372
|
+
except as expressly provided under this License. Any attempt
|
|
5373
|
+
otherwise to copy, modify, sublicense or distribute the Program is
|
|
5374
|
+
void, and will automatically terminate your rights under this License.
|
|
5375
|
+
However, parties who have received copies, or rights, from you under
|
|
5376
|
+
this License will not have their licenses terminated so long as such
|
|
5377
|
+
parties remain in full compliance.
|
|
5378
|
+
|
|
5379
|
+
5. You are not required to accept this License, since you have not
|
|
5380
|
+
signed it. However, nothing else grants you permission to modify or
|
|
5381
|
+
distribute the Program or its derivative works. These actions are
|
|
5382
|
+
prohibited by law if you do not accept this License. Therefore, by
|
|
5383
|
+
modifying or distributing the Program (or any work based on the
|
|
5384
|
+
Program), you indicate your acceptance of this License to do so, and
|
|
5385
|
+
all its terms and conditions for copying, distributing or modifying
|
|
5386
|
+
the Program or works based on it.
|
|
5387
|
+
|
|
5388
|
+
6. Each time you redistribute the Program (or any work based on the
|
|
5389
|
+
Program), the recipient automatically receives a license from the
|
|
5390
|
+
original licensor to copy, distribute or modify the Program subject to
|
|
5391
|
+
these terms and conditions. You may not impose any further
|
|
5392
|
+
restrictions on the recipients' exercise of the rights granted herein.
|
|
5393
|
+
You are not responsible for enforcing compliance by third parties to
|
|
5394
|
+
this License.
|
|
5395
|
+
|
|
5396
|
+
7. If, as a consequence of a court judgment or allegation of patent
|
|
5397
|
+
infringement or for any other reason (not limited to patent issues),
|
|
5398
|
+
conditions are imposed on you (whether by court order, agreement or
|
|
5399
|
+
otherwise) that contradict the conditions of this License, they do not
|
|
5400
|
+
excuse you from the conditions of this License. If you cannot
|
|
5401
|
+
distribute so as to satisfy simultaneously your obligations under this
|
|
5402
|
+
License and any other pertinent obligations, then as a consequence you
|
|
5403
|
+
may not distribute the Program at all. For example, if a patent
|
|
5404
|
+
license would not permit royalty-free redistribution of the Program by
|
|
5405
|
+
all those who receive copies directly or indirectly through you, then
|
|
5406
|
+
the only way you could satisfy both it and this License would be to
|
|
5407
|
+
refrain entirely from distribution of the Program.
|
|
5408
|
+
|
|
5409
|
+
If any portion of this section is held invalid or unenforceable under
|
|
5410
|
+
any particular circumstance, the balance of the section is intended to
|
|
5411
|
+
apply and the section as a whole is intended to apply in other
|
|
5412
|
+
circumstances.
|
|
5413
|
+
|
|
5414
|
+
It is not the purpose of this section to induce you to infringe any
|
|
5415
|
+
patents or other property right claims or to contest validity of any
|
|
5416
|
+
such claims; this section has the sole purpose of protecting the
|
|
5417
|
+
integrity of the free software distribution system, which is
|
|
5418
|
+
implemented by public license practices. Many people have made
|
|
5419
|
+
generous contributions to the wide range of software distributed
|
|
5420
|
+
through that system in reliance on consistent application of that
|
|
5421
|
+
system; it is up to the author/donor to decide if he or she is willing
|
|
5422
|
+
to distribute software through any other system and a licensee cannot
|
|
5423
|
+
impose that choice.
|
|
5424
|
+
|
|
5425
|
+
This section is intended to make thoroughly clear what is believed to
|
|
5426
|
+
be a consequence of the rest of this License.
|
|
5427
|
+
|
|
5428
|
+
8. If the distribution and/or use of the Program is restricted in
|
|
5429
|
+
certain countries either by patents or by copyrighted interfaces, the
|
|
5430
|
+
original copyright holder who places the Program under this License
|
|
5431
|
+
may add an explicit geographical distribution limitation excluding
|
|
5432
|
+
those countries, so that distribution is permitted only in or among
|
|
5433
|
+
countries not thus excluded. In such case, this License incorporates
|
|
5434
|
+
the limitation as if written in the body of this License.
|
|
5435
|
+
|
|
5436
|
+
9. The Free Software Foundation may publish revised and/or new versions
|
|
5437
|
+
of the General Public License from time to time. Such new versions will
|
|
5438
|
+
be similar in spirit to the present version, but may differ in detail to
|
|
5439
|
+
address new problems or concerns.
|
|
5440
|
+
|
|
5441
|
+
Each version is given a distinguishing version number. If the Program
|
|
5442
|
+
specifies a version number of this License which applies to it and "any
|
|
5443
|
+
later version", you have the option of following the terms and conditions
|
|
5444
|
+
either of that version or of any later version published by the Free
|
|
5445
|
+
Software Foundation. If the Program does not specify a version number of
|
|
5446
|
+
this License, you may choose any version ever published by the Free Software
|
|
5447
|
+
Foundation.
|
|
5448
|
+
|
|
5449
|
+
10. If you wish to incorporate parts of the Program into other free
|
|
5450
|
+
programs whose distribution conditions are different, write to the author
|
|
5451
|
+
to ask for permission. For software which is copyrighted by the Free
|
|
5452
|
+
Software Foundation, write to the Free Software Foundation; we sometimes
|
|
5453
|
+
make exceptions for this. Our decision will be guided by the two goals
|
|
5454
|
+
of preserving the free status of all derivatives of our free software and
|
|
5455
|
+
of promoting the sharing and reuse of software generally.
|
|
5456
|
+
|
|
5457
|
+
NO WARRANTY
|
|
5458
|
+
|
|
5459
|
+
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
|
5460
|
+
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
|
5461
|
+
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
|
5462
|
+
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
|
5463
|
+
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
5464
|
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
|
5465
|
+
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
|
5466
|
+
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
|
5467
|
+
REPAIR OR CORRECTION.
|
|
5468
|
+
|
|
5469
|
+
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
5470
|
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
|
5471
|
+
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
|
5472
|
+
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
|
5473
|
+
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
|
5474
|
+
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
|
5475
|
+
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
|
5476
|
+
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
|
5477
|
+
POSSIBILITY OF SUCH DAMAGES.
|
|
5478
|
+
|
|
5479
|
+
-----------
|
|
5480
|
+
|
|
5142
5481
|
This file was generated with the generate-license-file npm package!
|
|
5143
5482
|
https://www.npmjs.com/package/generate-license-file
|