@deveco-test/deveco-cli 1.3.0-Test.6 → 1.3.0-Test.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 CHANGED
@@ -87,6 +87,7 @@ devecocli init --path D:\work\ARKTS\NewData
87
87
  | ------------------------- | ----------------------------------------- |
88
88
  | `devecocli create` | 创建新的 HarmonyOS 项目 |
89
89
  | `devecocli build` | 构建项目并产出 `.hap` / `.hsp` / `.har` / `.app` |
90
+ | `devecocli check lint` | 检查代码规范并输出实践建议与报告 |
90
91
  | `devecocli run` | 安装并运行应用 |
91
92
  | `devecocli device list` | 查看当前连接设备 |
92
93
  | `devecocli emulator list` | 查看本地模拟器实例 |
@@ -95,6 +96,7 @@ devecocli init --path D:\work\ARKTS\NewData
95
96
  | `devecocli docs search` | 搜索本地 HarmonyOS 文档 |
96
97
  | `devecocli init` | 安装内置技能或配置 `MCP` |
97
98
  | `devecocli skills` | 管理 HarmonyOS 技能市场中的技能 |
99
+ | `devecocli check compat` | 扫描源代码在两个 `SDK` 版本之间的 `API` 变更 |
98
100
 
99
101
  ## 命令集
100
102
 
@@ -131,6 +133,7 @@ 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
134
137
  help [command] display help for command
135
138
  ```
136
139
 
@@ -312,6 +315,29 @@ devecocli build --product oversea --modules entry --build-mode release
312
315
  devecocli build clean
313
316
  ```
314
317
 
318
+ ### `check lint`
319
+
320
+ 检查代码规范并输出实践建议与报告。
321
+
322
+ **命令格式:**
323
+
324
+ ```bash
325
+ devecocli check lint [path]
326
+ ```
327
+
328
+ **参数:**
329
+
330
+ | 参数名 | 说明 |
331
+ | ---------------------------- | --------------------------------------------------------------------- |
332
+ | `[path]` | 可选,待检查的文件或目录;默认使用 `build-profile.json5` 所在的项目根目录,否则使用当前目录 |
333
+ | `--config-path <path>` | Code Linter 配置文件路径,仅支持 `.json` 或 `.json5`;默认使用待检查项目根目录下的 `code-linter.json5`,显式指定时必须与待检查路径属于同一项目 |
334
+ | `--fix` | 自动修复可修复的问题 |
335
+ | `--incremental` | 仅检查 Git 未提交文件 |
336
+ | `--product <name>` | `build-profile.json5` 中定义的 product,默认为 `default` |
337
+ | `--format <default\|json>` | 完整报告格式;`default` 输出 Markdown,`json` 输出 JSON |
338
+ | `--output-path <path>` | 完整报告文件或目录;目录形式会自动生成带时间戳的报告文件 |
339
+ | `--limit <number>` | 未指定 `--output-path` 时,限制终端显示的问题数量 |
340
+
315
341
  ### `emulator list`
316
342
 
317
343
  查看模拟器实例
@@ -394,12 +420,20 @@ devecocli emulator sensor --target Phone --heartrate 80
394
420
  **说明:**
395
421
 
396
422
  - `--target` 支持模拟器名称或 `127.0.0.1:<port>` 序列号。
397
- - `battery --level` 取值范围为整数 `[0, 100]`。
423
+ - `battery --level` 取值范围为整数 `[1, 100]`。
398
424
  - `battery --status` 取值为 `charging` 或 `discharging`。
399
425
  - `geolocation` 支持 `--longitude`、`--latitude`、`--altitude`、`--direction`。
400
426
  - `scene` 取值为 `outdoorRunning`、`outdoorCycling`、`drivingNavigation`。
401
427
  - `sensor` 支持 `--light-intensity`、`--humidity`、`--temperature`、`--steps`、`--heartrate`。
402
- - 折叠状态覆盖 3 类设备形态,去重后支持 13 个可输入 `state`,底层均映射为 `Emulator -instance <name> -foldedState <state>`。
428
+ - `fold <state>` 会根据目标模拟器的设备类型校验状态,设备与参数必须匹配:
429
+
430
+ | 设备类型 | 支持的 `state` |
431
+ | --- | --- |
432
+ | `foldable` | `open`、`half-open`、`close` |
433
+ | `2in1_foldable` | `open`、`vertical-open`、`half-open`、`close` |
434
+ | `triplefold` | `single`、`double`、`triple`、`left-folded-right-half-folded`、`left-half-folded-right-expanded`、`left-expanded-right-folded`、`left-half-folded-right-folded`、`left-expanded-right-half-folded`、`left-half-folded-right-half-folded` |
435
+
436
+ 校验以目标模拟器实际返回的 `deviceType` 为准。非上述三种设备类型以及不属于目标设备类型的状态会在命令下发前被拒绝。校验通过后,底层映射为 `Emulator -instance <name> -foldedState <state>`。
403
437
  - 设置 `DEVECO_CLI_DEBUG=1` 可查看底层命令映射,例如 `Emulator -instance <name> -shake`。
404
438
 
405
439
  ### `ui screenshot`
@@ -823,7 +857,7 @@ devecocli skills remove --skill skillname --agent agentname # skillname需替
823
857
 
824
858
  ### `serve lsp`
825
859
 
826
- 启动本地 `LSP` 语言服务。智能体配置 `LSP` 服务后,可通过 `LSP` 协议获取 `ArkTS` 代码补全、跳转定义、悬浮提示、引用查找、诊断等语言特性。当前支持 `ArkTS`(`ace-server`)。
860
+ 启动本地 `LSP` 语言服务。智能体配置 `LSP` 服务后,可通过 `LSP` 协议获取代码补全、跳转定义、悬浮提示、引用查找、诊断等语言特性。当前支持 `ArkTS`和 `clangd`。
827
861
 
828
862
  ```bash
829
863
  {
@@ -838,11 +872,106 @@ devecocli skills remove --skill skillname --agent agentname # skillname需替
838
872
  "extensions": [
839
873
  ".ets"
840
874
  ]
875
+ },
876
+ "clangd": {
877
+ "command": [
878
+ "devecocli",
879
+ "serve",
880
+ "lsp",
881
+ "--cpp"
882
+ ],
883
+ "extensions": [
884
+ ".c",
885
+ ".cpp",
886
+ ".cc",
887
+ ".cxx",
888
+ ".h",
889
+ ".hpp",
890
+ ".hxx",
891
+ ".hh"
892
+ ]
841
893
  }
842
894
  }
843
895
  }
844
896
  ```
845
897
 
898
+ **参数:**
899
+
900
+ | 参数名 | 说明 |
901
+ | --- | --- |
902
+ | `--arkts` | 与 `--cpp` 二选一,启动 ArkTS 语言服务(ace-server) |
903
+ | `--cpp` | 与 `--arkts` 二选一,启动 C/C++ 语言服务(clangd) |
904
+ | `--project-path <path>` | 可选,工程根路径,默认为当前工作目录 |
905
+ | `--auto-detect` | 可选,当前目录向下查找工程根(检查当前目录自身及其子目录,最多 3 层子目录);适用于 `--arkts` 和 `--cpp`;指定了 `--project-path` 则忽略 |
906
+
907
+ ### `check compat`
908
+
909
+ 基于 `DevEco Studio` 自带的 `apkanalyzer-apiscan` 插件,扫描源代码在两个 `SDK` 版本之间的 `API` 变更情况。
910
+
911
+ **子命令:**
912
+
913
+ | 子命令 | 说明 |
914
+ | --- | --- |
915
+ | `devecocli check compat` | 默认执行工程级扫描 |
916
+ | `devecocli check compat --modules <m1> [m2...]` | 按模块扫描 |
917
+ | `devecocli check compat <file1> [file2...]` | 按文件扫描(仅支持 `.ets`/`.c`/`.cpp`) |
918
+ | `devecocli check compat versions` | 列出可用的目标 `SDK` 版本 |
919
+
920
+ **命令格式:**
921
+
922
+ ```bash
923
+ devecocli check compat [files...] --source-version <ver> --target-version <ver> [--modules <m...>] [--format <default|csv|json>] [--output-path <path>] [--limit <n>]
924
+ ```
925
+
926
+ **参数:**
927
+
928
+ | 参数名 | 说明 |
929
+ | --- | --- |
930
+ | `--source-version` | 必填,当前工程 `SDK` 版本 |
931
+ | `--target-version` | 必填,目标 `SDK` 版本 |
932
+ | `--modules` | 可选,指定扫描的模块(多个以空格分隔)。与文件参数互斥 |
933
+ | `--format` | 可选,输出格式。`default`/`csv`/`json`。默认 `default`(控制台输出文本,文件输出 `csv`) |
934
+ | `--output-path` | 可选,报告输出路径。目录或文件(扩展名必须与 `--format` 匹配) |
935
+ | `--limit` | 可选,控制台显示的最大记录数,默认 `100` |
936
+
937
+ **版本号说明:**
938
+
939
+ - 可用版本可通过 `devecocli check compat versions` 查看
940
+ - `zsh` 环境下版本号需用引号包裹(包含括号),例如 `"<source_version>"`、`"<target_version>"`
941
+
942
+ **格式与输出组合:**
943
+
944
+ | 场景 | 允许的 `--format` | 行为 |
945
+ | --- | --- | --- |
946
+ | 控制台输出(无 `--output-path`) | `default` / `json` | `default` 输出文本表格,`json` 输出 `JSON` |
947
+ | 文件输出(`--output-path <file>`,扩展名必须匹配 `--format`) | `default` / `csv` / `json` | `default`/`csv` 写 `.csv` 文件;`json` 写 `.json` 文件 |
948
+ | 目录输出(`--output-path <dir>`,无扩展名) | `default` / `csv` / `json` | `default`/`csv` 生成 `apiChange-res{N}.csv`;`json` 生成 `apiChange-res{N}.json` |
949
+
950
+ **示例:**
951
+
952
+ ```bash
953
+ # 工程级扫描,输出到控制台
954
+ devecocli check compat --source-version "<source_version>" --target-version "<target_version>"
955
+
956
+ # 输出 JSON 到控制台
957
+ devecocli check compat --format json --source-version "<source_version>" --target-version "<target_version>"
958
+
959
+ # 输出报告到目录(默认 csv)
960
+ devecocli check compat --output-path ./report --source-version "<source_version>" --target-version "<target_version>"
961
+
962
+ # 输出 JSON 报告到目录(生成 apiChange-res{N}.json)
963
+ devecocli check compat --output-path ./report --format json --source-version "<source_version>" --target-version "<target_version>"
964
+
965
+ # 输出报告到指定文件
966
+ devecocli check compat --output-path ./report.json --format json --source-version "<source_version>" --target-version "<target_version>"
967
+
968
+ # 文件级扫描
969
+ devecocli check compat ./entry/src/main/ets/pages/Index.ets --source-version "<source_version>" --target-version "<target_version>"
970
+
971
+ # 模块级扫描
972
+ devecocli check compat --modules entry har1 --source-version "<source_version>" --target-version "<target_version>"
973
+ ```
974
+
846
975
  ## 常见问题
847
976
 
848
977
  [FAQ](https://gitcode.com/openharmony-sig/deveco-cli/wiki/FAQ.md)
package/SKILL.md CHANGED
@@ -6,9 +6,9 @@ description: >-
6
6
 
7
7
  # DevEco CLI
8
8
 
9
- `devecocli` wraps DevEco Studio's `hvigor`, `ohpm`, `hdc`, emulator toolchain, UI inspection, and HarmonyOS-skills installer. **Prefer `devecocli` over invoking underlying tools directly.**
9
+ `devecocli` wraps DevEco Studio's `hvigor`, `ohpm`, `hdc`, emulator toolchain, and bundled skills installer. **Prefer `devecocli` over invoking underlying tools directly.**
10
10
 
11
- Available commands: `build`, `run`, `update`, `device`, `emulator`, `skills`, `log`, `create`, `init`, `serve`, `docs`, `ui`.
11
+ Available commands: `build`, `check`, `run`, `update`, `device`, `emulator`, `ui`, `skills`, `log`, `create`, `init`, `serve`, `docs`, `signature`, `login`, `logout`, `whoami`.
12
12
 
13
13
  **Sandbox Rule**: Commands tagged `[Outside sandbox]` must be run outside the sandbox.
14
14
 
@@ -31,6 +31,12 @@ Compile and package project/modules. (Defaults: `--product default`, `--build-mo
31
31
  | Whole product bundle (.app) | `devecocli build --product <name>` |
32
32
  | Clean build outputs | `devecocli build clean` |
33
33
 
34
+ ### `devecocli check lint`
35
+ Run DevEco Code Linter checks for TS/ArkTS code.
36
+ - `[path]`: File or directory to lint. Defaults to the project root from `build-profile.json5`, otherwise the current directory.
37
+ - Options: `--config-path <file>`, `--fix`, `--incremental`, `--product <name>`, `--format <default|json>`, `--output-path <path>`, `--limit <number>`.
38
+ - Set `DEVECO_CLI_CLT_PATH` to the Command Line Tools root when DevEco Studio is not installed; CLT is not discovered automatically from PATH or default installation directories.
39
+
34
40
  ### `devecocli emulator`
35
41
  Manage local emulator instances and system images.
36
42
  - `list`: Show instances (status, serial, device type).
@@ -38,7 +44,7 @@ Manage local emulator instances and system images.
38
44
  - `stop <names...>`: Stop by name or serial (`127.0.0.1:<port>`).
39
45
  - Scene control commands require Emulator 7.0 or later. Use `DEVECO_CLI_DEBUG=1` to inspect the underlying `Emulator` command mapping.
40
46
  - `shake` / `power` / `rotate <left|right>` / `volume <up|down>` (Req: `--target <nameOrSerial>`): Basic emulator controls.
41
- - `fold <state>` (Req: `--target <nameOrSerial>`): Set foldable display state.
47
+ - `fold <state>` (Req: `--target <nameOrSerial>`): Set foldable display state, matched against the target emulator's reported `deviceType`. `foldable` uses `open|half-open|close`; `2in1_foldable` uses `open|vertical-open|half-open|close`; `triplefold` uses `single|double|triple` or one of its six left/right folded-state combinations. Other device types and cross-device states are rejected before execution.
42
48
  - `battery` (Req: `--target`; one of `--level <0-100>` or `--status <charging|discharging>`): Set battery state.
43
49
  - `geolocation` (Req: `--target`; one of `--longitude`, `--latitude`, `--altitude`, `--direction`): Inject GPS data.
44
50
  - `scene <outdoorRunning|outdoorCycling|drivingNavigation>` (Req: `--target`): Start motion simulation.
@@ -49,6 +55,13 @@ Manage local emulator instances and system images.
49
55
  - `image download` / `image remove` (Req: `--device-type`, `--os-version`): Download/remove image. (Takes 30+ min, set long timeout).
50
56
  *Device types*: `phone`, `foldable`, `widefold`, `triplefold`, `tablet`, `2in1`, `2in1 foldable`, `wearable`, `tv`.
51
57
 
58
+ ### `devecocli ui`
59
+ Inspect UI on a connected physical device or running emulator.
60
+ - `screenshot`: Capture a screenshot from a physical device or running emulator. `--device <name|serial>` is optional when exactly one device is connected, and required when multiple devices are connected.
61
+ - Optional: `--display <displayId>`, `--path <path>` (existing directory or PNG file path whose parent exists; create the directory first; default: `./screenshot-<timestamp>.png`).
62
+ - Implementation uses `hdc shell snapshot_display` and `hdc file recv`; set `DEVECO_CLI_DEBUG=1` to inspect the actual `hdc` commands.
63
+ *Ex*: `mkdir -p screenshots && devecocli ui screenshot --device Phone --path ./screenshots/phone.png`
64
+
52
65
  ### `devecocli docs`
53
66
  Search/read local HarmonyOS docs.
54
67
  - `search <keywords...>`: Match any keyword. Opts: `--catalog <name>`, `--format <default|json>`, `--limit <n>`.
@@ -73,6 +86,19 @@ Build, install, and launch.
73
86
  - **If changes don't take effect**: check `<module>/build/config/buildConfig.json` has content — empty/missing means `devecocli run` wasn't run; on any apply failure, fall back to a full `devecocli run`.
74
87
  *Ex*: `devecocli run` → edit code → write `.hvigor/changes.txt` → `devecocli run --apply changes.txt`
75
88
 
89
+ ### `devecocli signature generate` `[Outside sandbox]`
90
+ Auto-generate HarmonyOS signing materials (local p12/csr + cloud cert + test profile) and write signing config to `build-profile.json5`.
91
+ - **Prereq**: `devecocli login` first; run from a project directory (with `build-profile.json5`); a connected device or emulator is required for device registration.
92
+ - `--product <name>`: Product name for local p12/csr file naming (default: `default`).
93
+ - `--team-id <id>`: Specify the team-id (default: current user's id).
94
+ - `--force`: Force regenerate even if existing materials are valid.
95
+ - Generates under `~/.ohos/config/`: `.p12` keystore, `.csr`, downloaded `.cer` certificate, `.p7b` profile.
96
+ - Writes `signingConfigs` + `products` entries to `build-profile.json5` with encrypted key/store passwords (AES-128-GCM).
97
+ - Cloud cert name: `auto_debug_<teamId>.cer`. Local files: `<product>_<project>_<hash>=.{p12,csr,cer,p7b}`.
98
+ - Error handling (aligned with DevEco Studio JAR): 401→re-login, 403→no AGC permission, `205389872`→cert limit, `205389904`→not Harmony user, `205389938`→provision limit, invalid `.cer`→retry.
99
+ *Ex*: `devecocli signature generate --product default`
100
+
101
+
76
102
  ### `devecocli log`
77
103
  Fetch hilog or crash logs. Req `--device <name|serial>` on multi-device hosts.
78
104
  - `--crash`: Dump crash logs.
@@ -120,12 +146,37 @@ MUTUALLY EXCLUSIVE modes for setup:
120
146
  - `-f, --force`: Overwrite existing config.
121
147
  *MCP Rules*: Global MCP (no `--project`) only supports `opencode` and `cursor`. Others require `--project`.
122
148
 
149
+ ### `devecocli login`
150
+ Sign in to your Huawei Developer account. Opens a browser for OAuth authentication. Required before `signature generate`.
151
+ *Ex*: `devecocli login`
152
+
153
+ ### `devecocli logout`
154
+ Sign out and clear locally stored credentials.
155
+
156
+ ### `devecocli whoami`
157
+ Show the current logged-in user.
158
+
123
159
  ### `devecocli skills`
124
160
  Manage HarmonyOS skills in AI agents/projects.
125
161
  - `list [-l|--long]` / `find <keyword>`: List or search skills.
126
162
  - `add (--all | --skill <name>) [--agent <a,b…>] [--project <path>] [--path <path>] [-f]`: Install.
127
163
  - `remove --skill <name> [...]`: Uninstall.
128
164
 
165
+ ### `devecocli check compat` `[Outside sandbox]`
166
+ Scan source code for breaking API changes between two SDK versions. Built on top of DevEco Studio's `arkanalyzer-apiscan` plugin.
167
+ - `versions`: List available target SDK versions.
168
+ - Default (no args): project-level scan.
169
+ - `--modules <m1> [m2...]`: Module-level scan.
170
+ - `<file1> [file2...]`: File-level scan (`.ets`/`.c`/`.cpp` only).
171
+ - `--source-version <v>` (Req) / `--target-version <v>` (Req): SDK version pair. Run `devecocli check compat versions` first; on zsh, **quote the value** (e.g. `"<source_version>"`, `"<target_version>"`).
172
+ - `--format <default|csv|json>` (default: `default`): Console output accepts `default` (text) or `json`; file output (via `--output-path`) accepts `default` (csv), `csv`, or `json`. `csv` requires `--output-path`.
173
+ - `--output-path <path>`: Directory (writes `apiChange-*.csv`/`apiChange-*.json`) or explicit file (extension must match `--format`).
174
+ - `--limit <n>` (default `100`): Max records shown on console when no `--output-path`.
175
+
176
+ Validation order: `files` + `--modules` mutually exclusive → `--source-version`/`--target-version` required → `csv` requires `--output-path` → project dir valid → modules exist → files exist + extension valid → versions in catalog + `target > source` → format/extension match → output target writable.
177
+
178
+ *Ex*: `devecocli check compat --source-version "<source_version>" --target-version "<target_version>" --output-path ./report`
179
+
129
180
  ## 3. Maintenance
130
181
 
131
182
  - **`devecocli update`** `[Outside sandbox]`: Update CLI to latest version.
@@ -139,16 +190,21 @@ Manage HarmonyOS skills in AI agents/projects.
139
190
  `devecocli log --crash --bundle-name <bundle>`
140
191
  - **Release build**:
141
192
  `devecocli build --product oversea --build-mode release`
193
+ - **First-time signing setup**:
194
+ `devecocli login` -> `devecocli signature generate --product default` -> `devecocli build` -> `devecocli run`
142
195
 
143
196
  ## Troubleshooting
144
197
 
145
198
  - **"Product / Build mode `<x>` not found"**: Check `build-profile.json5`.
146
199
  - **"Multiple entry modules" / "No entry module"**: Pass `--modules` (build) or `--module` (run).
147
200
  - **"No active devices" / "Multiple devices connected"**: Connect/start emulator. Pass `-t <serial>` (device view) or `--device <name|serial>` (run/log).
148
- - **`error:install sign info inconsistent`**: Signing key changed. Run `devecocli run --uninstall`.
201
+ - **`error:install sign info inconsistent`**: Signing key changed. Run `devecocli run --uninstall` or `devecocli signature generate --force`.
202
+ - **`Not logged in. Run devecocli login first`**: Run `devecocli login` to authenticate.
203
+ - **`Provision number exceeds limit`**: Test provision quota is full. Delete old test provisions in DevEco Studio (Signing Configs) or AGC console, then retry `devecocli signature generate`.
204
+ - **`Invalid AccessToken. Sign in and try again`**: Token expired. Run `devecocli login` again.
149
205
  - **`skills add` agent not found**: Valid: `codebuddy`, `cursor`, `opencode`, `qoder`, `trae-cn`.
150
206
  - **`emulator start` / `image download` blocked on agreement**: User MUST accept agreements. Interactive: `devecocli emulator license` (requires TTY). Non-interactive (CI/scripts): `devecocli emulator license accept`. Agents cannot run the interactive form; suggest the user run it, or use `license accept` if a non-TTY flow is acceptable. Do not retry until accepted.
151
207
  - **`image download` failure / timeout**: Do NOT auto-retry. Give the command to the user to run manually in their terminal.
152
208
  - **`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.
153
209
  - **`image list` duplicate OS rows**: `phone`/`foldable`/`widefold`/`triplefold` share the same image. Download/remove ONCE per OS version.
154
- - **`ui layout` missing expected node**: `layout` only returns on-screen nodes. The user must scroll the target into view on the device before retrying (no CLI input subcommands in this build).
210
+ **`ui layout` missing expected node**: `layout` only returns on-screen nodes. The user must scroll the target into view on the device before retrying (no CLI input subcommands in this build).
@@ -5074,5 +5074,344 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5074
5074
 
5075
5075
  -----------
5076
5076
 
5077
+ The following npm package may be included in this product:
5078
+
5079
+ - node-forge@1.4.0
5080
+
5081
+ This package contains the following license:
5082
+
5083
+ You may use the Forge project under the terms of either the BSD License or the
5084
+ GNU General Public License (GPL) Version 2.
5085
+
5086
+ The BSD License is recommended for most projects. It is simple and easy to
5087
+ understand and it places almost no restrictions on what you can do with the
5088
+ Forge project.
5089
+
5090
+ If the GPL suits your project better you are also free to use Forge under
5091
+ that license.
5092
+
5093
+ You don't have to do anything special to choose one license or the other and
5094
+ you don't have to notify anyone which license you are using. You are free to
5095
+ use this project in commercial projects as long as the copyright header is
5096
+ left intact.
5097
+
5098
+ If you are a commercial entity and use this set of libraries in your
5099
+ commercial software then reasonable payment to Digital Bazaar, if you can
5100
+ afford it, is not required but is expected and would be appreciated. If this
5101
+ library saves you time, then it's saving you money. The cost of developing
5102
+ the Forge software was on the order of several hundred hours and tens of
5103
+ thousands of dollars. We are attempting to strike a balance between helping
5104
+ the development community while not being taken advantage of by lucrative
5105
+ commercial entities for our efforts.
5106
+
5107
+ -------------------------------------------------------------------------------
5108
+ New BSD License (3-clause)
5109
+ Copyright (c) 2010, Digital Bazaar, Inc.
5110
+ All rights reserved.
5111
+
5112
+ Redistribution and use in source and binary forms, with or without
5113
+ modification, are permitted provided that the following conditions are met:
5114
+ * Redistributions of source code must retain the above copyright
5115
+ notice, this list of conditions and the following disclaimer.
5116
+ * Redistributions in binary form must reproduce the above copyright
5117
+ notice, this list of conditions and the following disclaimer in the
5118
+ documentation and/or other materials provided with the distribution.
5119
+ * Neither the name of Digital Bazaar, Inc. nor the
5120
+ names of its contributors may be used to endorse or promote products
5121
+ derived from this software without specific prior written permission.
5122
+
5123
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
5124
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
5125
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
5126
+ DISCLAIMED. IN NO EVENT SHALL DIGITAL BAZAAR BE LIABLE FOR ANY
5127
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
5128
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
5129
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
5130
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
5131
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
5132
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5133
+
5134
+ -------------------------------------------------------------------------------
5135
+ GNU GENERAL PUBLIC LICENSE
5136
+ Version 2, June 1991
5137
+
5138
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5139
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
5140
+ Everyone is permitted to copy and distribute verbatim copies
5141
+ of this license document, but changing it is not allowed.
5142
+
5143
+ Preamble
5144
+
5145
+ The licenses for most software are designed to take away your
5146
+ freedom to share and change it. By contrast, the GNU General Public
5147
+ License is intended to guarantee your freedom to share and change free
5148
+ software--to make sure the software is free for all its users. This
5149
+ General Public License applies to most of the Free Software
5150
+ Foundation's software and to any other program whose authors commit to
5151
+ using it. (Some other Free Software Foundation software is covered by
5152
+ the GNU Lesser General Public License instead.) You can apply it to
5153
+ your programs, too.
5154
+
5155
+ When we speak of free software, we are referring to freedom, not
5156
+ price. Our General Public Licenses are designed to make sure that you
5157
+ have the freedom to distribute copies of free software (and charge for
5158
+ this service if you wish), that you receive source code or can get it
5159
+ if you want it, that you can change the software or use pieces of it
5160
+ in new free programs; and that you know you can do these things.
5161
+
5162
+ To protect your rights, we need to make restrictions that forbid
5163
+ anyone to deny you these rights or to ask you to surrender the rights.
5164
+ These restrictions translate to certain responsibilities for you if you
5165
+ distribute copies of the software, or if you modify it.
5166
+
5167
+ For example, if you distribute copies of such a program, whether
5168
+ gratis or for a fee, you must give the recipients all the rights that
5169
+ you have. You must make sure that they, too, receive or can get the
5170
+ source code. And you must show them these terms so they know their
5171
+ rights.
5172
+
5173
+ We protect your rights with two steps: (1) copyright the software, and
5174
+ (2) offer you this license which gives you legal permission to copy,
5175
+ distribute and/or modify the software.
5176
+
5177
+ Also, for each author's protection and ours, we want to make certain
5178
+ that everyone understands that there is no warranty for this free
5179
+ software. If the software is modified by someone else and passed on, we
5180
+ want its recipients to know that what they have is not the original, so
5181
+ that any problems introduced by others will not reflect on the original
5182
+ authors' reputations.
5183
+
5184
+ Finally, any free program is threatened constantly by software
5185
+ patents. We wish to avoid the danger that redistributors of a free
5186
+ program will individually obtain patent licenses, in effect making the
5187
+ program proprietary. To prevent this, we have made it clear that any
5188
+ patent must be licensed for everyone's free use or not licensed at all.
5189
+
5190
+ The precise terms and conditions for copying, distribution and
5191
+ modification follow.
5192
+
5193
+ GNU GENERAL PUBLIC LICENSE
5194
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
5195
+
5196
+ 0. This License applies to any program or other work which contains
5197
+ a notice placed by the copyright holder saying it may be distributed
5198
+ under the terms of this General Public License. The "Program", below,
5199
+ refers to any such program or work, and a "work based on the Program"
5200
+ means either the Program or any derivative work under copyright law:
5201
+ that is to say, a work containing the Program or a portion of it,
5202
+ either verbatim or with modifications and/or translated into another
5203
+ language. (Hereinafter, translation is included without limitation in
5204
+ the term "modification".) Each licensee is addressed as "you".
5205
+
5206
+ Activities other than copying, distribution and modification are not
5207
+ covered by this License; they are outside its scope. The act of
5208
+ running the Program is not restricted, and the output from the Program
5209
+ is covered only if its contents constitute a work based on the
5210
+ Program (independent of having been made by running the Program).
5211
+ Whether that is true depends on what the Program does.
5212
+
5213
+ 1. You may copy and distribute verbatim copies of the Program's
5214
+ source code as you receive it, in any medium, provided that you
5215
+ conspicuously and appropriately publish on each copy an appropriate
5216
+ copyright notice and disclaimer of warranty; keep intact all the
5217
+ notices that refer to this License and to the absence of any warranty;
5218
+ and give any other recipients of the Program a copy of this License
5219
+ along with the Program.
5220
+
5221
+ You may charge a fee for the physical act of transferring a copy, and
5222
+ you may at your option offer warranty protection in exchange for a fee.
5223
+
5224
+ 2. You may modify your copy or copies of the Program or any portion
5225
+ of it, thus forming a work based on the Program, and copy and
5226
+ distribute such modifications or work under the terms of Section 1
5227
+ above, provided that you also meet all of these conditions:
5228
+
5229
+ a) You must cause the modified files to carry prominent notices
5230
+ stating that you changed the files and the date of any change.
5231
+
5232
+ b) You must cause any work that you distribute or publish, that in
5233
+ whole or in part contains or is derived from the Program or any
5234
+ part thereof, to be licensed as a whole at no charge to all third
5235
+ parties under the terms of this License.
5236
+
5237
+ c) If the modified program normally reads commands interactively
5238
+ when run, you must cause it, when started running for such
5239
+ interactive use in the most ordinary way, to print or display an
5240
+ announcement including an appropriate copyright notice and a
5241
+ notice that there is no warranty (or else, saying that you provide
5242
+ a warranty) and that users may redistribute the program under
5243
+ these conditions, and telling the user how to view a copy of this
5244
+ License. (Exception: if the Program itself is interactive but
5245
+ does not normally print such an announcement, your work based on
5246
+ the Program is not required to print an announcement.)
5247
+
5248
+ These requirements apply to the modified work as a whole. If
5249
+ identifiable sections of that work are not derived from the Program,
5250
+ and can be reasonably considered independent and separate works in
5251
+ themselves, then this License, and its terms, do not apply to those
5252
+ sections when you distribute them as separate works. But when you
5253
+ distribute the same sections as part of a whole which is a work based
5254
+ on the Program, the distribution of the whole must be on the terms of
5255
+ this License, whose permissions for other licensees extend to the
5256
+ entire whole, and thus to each and every part regardless of who wrote it.
5257
+
5258
+ Thus, it is not the intent of this section to claim rights or contest
5259
+ your rights to work written entirely by you; rather, the intent is to
5260
+ exercise the right to control the distribution of derivative or
5261
+ collective works based on the Program.
5262
+
5263
+ In addition, mere aggregation of another work not based on the Program
5264
+ with the Program (or with a work based on the Program) on a volume of
5265
+ a storage or distribution medium does not bring the other work under
5266
+ the scope of this License.
5267
+
5268
+ 3. You may copy and distribute the Program (or a work based on it,
5269
+ under Section 2) in object code or executable form under the terms of
5270
+ Sections 1 and 2 above provided that you also do one of the following:
5271
+
5272
+ a) Accompany it with the complete corresponding machine-readable
5273
+ source code, which must be distributed under the terms of Sections
5274
+ 1 and 2 above on a medium customarily used for software interchange; or,
5275
+
5276
+ b) Accompany it with a written offer, valid for at least three
5277
+ years, to give any third party, for a charge no more than your
5278
+ cost of physically performing source distribution, a complete
5279
+ machine-readable copy of the corresponding source code, to be
5280
+ distributed under the terms of Sections 1 and 2 above on a medium
5281
+ customarily used for software interchange; or,
5282
+
5283
+ c) Accompany it with the information you received as to the offer
5284
+ to distribute corresponding source code. (This alternative is
5285
+ allowed only for noncommercial distribution and only if you
5286
+ received the program in object code or executable form with such
5287
+ an offer, in accord with Subsection b above.)
5288
+
5289
+ The source code for a work means the preferred form of the work for
5290
+ making modifications to it. For an executable work, complete source
5291
+ code means all the source code for all modules it contains, plus any
5292
+ associated interface definition files, plus the scripts used to
5293
+ control compilation and installation of the executable. However, as a
5294
+ special exception, the source code distributed need not include
5295
+ anything that is normally distributed (in either source or binary
5296
+ form) with the major components (compiler, kernel, and so on) of the
5297
+ operating system on which the executable runs, unless that component
5298
+ itself accompanies the executable.
5299
+
5300
+ If distribution of executable or object code is made by offering
5301
+ access to copy from a designated place, then offering equivalent
5302
+ access to copy the source code from the same place counts as
5303
+ distribution of the source code, even though third parties are not
5304
+ compelled to copy the source along with the object code.
5305
+
5306
+ 4. You may not copy, modify, sublicense, or distribute the Program
5307
+ except as expressly provided under this License. Any attempt
5308
+ otherwise to copy, modify, sublicense or distribute the Program is
5309
+ void, and will automatically terminate your rights under this License.
5310
+ However, parties who have received copies, or rights, from you under
5311
+ this License will not have their licenses terminated so long as such
5312
+ parties remain in full compliance.
5313
+
5314
+ 5. You are not required to accept this License, since you have not
5315
+ signed it. However, nothing else grants you permission to modify or
5316
+ distribute the Program or its derivative works. These actions are
5317
+ prohibited by law if you do not accept this License. Therefore, by
5318
+ modifying or distributing the Program (or any work based on the
5319
+ Program), you indicate your acceptance of this License to do so, and
5320
+ all its terms and conditions for copying, distributing or modifying
5321
+ the Program or works based on it.
5322
+
5323
+ 6. Each time you redistribute the Program (or any work based on the
5324
+ Program), the recipient automatically receives a license from the
5325
+ original licensor to copy, distribute or modify the Program subject to
5326
+ these terms and conditions. You may not impose any further
5327
+ restrictions on the recipients' exercise of the rights granted herein.
5328
+ You are not responsible for enforcing compliance by third parties to
5329
+ this License.
5330
+
5331
+ 7. If, as a consequence of a court judgment or allegation of patent
5332
+ infringement or for any other reason (not limited to patent issues),
5333
+ conditions are imposed on you (whether by court order, agreement or
5334
+ otherwise) that contradict the conditions of this License, they do not
5335
+ excuse you from the conditions of this License. If you cannot
5336
+ distribute so as to satisfy simultaneously your obligations under this
5337
+ License and any other pertinent obligations, then as a consequence you
5338
+ may not distribute the Program at all. For example, if a patent
5339
+ license would not permit royalty-free redistribution of the Program by
5340
+ all those who receive copies directly or indirectly through you, then
5341
+ the only way you could satisfy both it and this License would be to
5342
+ refrain entirely from distribution of the Program.
5343
+
5344
+ If any portion of this section is held invalid or unenforceable under
5345
+ any particular circumstance, the balance of the section is intended to
5346
+ apply and the section as a whole is intended to apply in other
5347
+ circumstances.
5348
+
5349
+ It is not the purpose of this section to induce you to infringe any
5350
+ patents or other property right claims or to contest validity of any
5351
+ such claims; this section has the sole purpose of protecting the
5352
+ integrity of the free software distribution system, which is
5353
+ implemented by public license practices. Many people have made
5354
+ generous contributions to the wide range of software distributed
5355
+ through that system in reliance on consistent application of that
5356
+ system; it is up to the author/donor to decide if he or she is willing
5357
+ to distribute software through any other system and a licensee cannot
5358
+ impose that choice.
5359
+
5360
+ This section is intended to make thoroughly clear what is believed to
5361
+ be a consequence of the rest of this License.
5362
+
5363
+ 8. If the distribution and/or use of the Program is restricted in
5364
+ certain countries either by patents or by copyrighted interfaces, the
5365
+ original copyright holder who places the Program under this License
5366
+ may add an explicit geographical distribution limitation excluding
5367
+ those countries, so that distribution is permitted only in or among
5368
+ countries not thus excluded. In such case, this License incorporates
5369
+ the limitation as if written in the body of this License.
5370
+
5371
+ 9. The Free Software Foundation may publish revised and/or new versions
5372
+ of the General Public License from time to time. Such new versions will
5373
+ be similar in spirit to the present version, but may differ in detail to
5374
+ address new problems or concerns.
5375
+
5376
+ Each version is given a distinguishing version number. If the Program
5377
+ specifies a version number of this License which applies to it and "any
5378
+ later version", you have the option of following the terms and conditions
5379
+ either of that version or of any later version published by the Free
5380
+ Software Foundation. If the Program does not specify a version number of
5381
+ this License, you may choose any version ever published by the Free Software
5382
+ Foundation.
5383
+
5384
+ 10. If you wish to incorporate parts of the Program into other free
5385
+ programs whose distribution conditions are different, write to the author
5386
+ to ask for permission. For software which is copyrighted by the Free
5387
+ Software Foundation, write to the Free Software Foundation; we sometimes
5388
+ make exceptions for this. Our decision will be guided by the two goals
5389
+ of preserving the free status of all derivatives of our free software and
5390
+ of promoting the sharing and reuse of software generally.
5391
+
5392
+ NO WARRANTY
5393
+
5394
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
5395
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
5396
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
5397
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
5398
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
5399
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
5400
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
5401
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
5402
+ REPAIR OR CORRECTION.
5403
+
5404
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
5405
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
5406
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
5407
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
5408
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
5409
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
5410
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
5411
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
5412
+ POSSIBILITY OF SUCH DAMAGES.
5413
+
5414
+ -----------
5415
+
5077
5416
  This file was generated with the generate-license-file npm package!
5078
5417
  https://www.npmjs.com/package/generate-license-file