@webos-tools/cli 3.1.1 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +173 -157
  2. package/LICENSES/342/200/216/LicenseRef-3rd_party_licenses.txt +1355 -0
  3. package/README.md +21 -19
  4. package/bin/ares-config.js +6 -3
  5. package/bin/ares-device.js +2 -2
  6. package/bin/ares-log.js +6 -2
  7. package/bin/ares-pull.js +1 -1
  8. package/bin/ares-push.js +1 -1
  9. package/bin/ares-setup-device.js +573 -528
  10. package/bin/ares-shell.js +1 -1
  11. package/bin/ares.js +1 -1
  12. package/files/conf/ares.json +5 -5
  13. package/files/conf/novacom-devices.json +18 -1
  14. package/files/conf-base/env/sdk-apollo.json +8 -0
  15. package/files/conf-base/profile/config-apollo.json +29 -0
  16. package/files/conf-base/profile/config-ose.json +1 -1
  17. package/files/conf-base/template-conf/apollo-sdk-templates.json +56 -0
  18. package/files/help/ares-config.help +6 -1
  19. package/files/help/ares-device.help +15 -0
  20. package/files/help/ares-generate.help +27 -1
  21. package/files/help/ares-inspect.help +6 -0
  22. package/files/help/ares-install.help +5 -0
  23. package/files/help/ares-launch.help +5 -0
  24. package/files/help/ares-server.help +5 -0
  25. package/files/help/ares-setup-device.help +40 -0
  26. package/files/help/ares.help +5 -0
  27. package/files/schema/NovacomDevices.schema +2 -1
  28. package/files/templates/apollo-sdk-templates/appinfo/appinfo.json +10 -0
  29. package/files/templates/apollo-sdk-templates/bootplate-web/index.html +88 -0
  30. package/files/templates/apollo-sdk-templates/hosted-webapp/index.html +14 -0
  31. package/files/templates/apollo-sdk-templates/icon/icon.png +0 -0
  32. package/files/templates/apollo-sdk-templates/js-service/helloclient.js +31 -0
  33. package/files/templates/apollo-sdk-templates/js-service/helloworld_webos_service.js +188 -0
  34. package/files/templates/apollo-sdk-templates/native-service/CMakeLists.txt +72 -0
  35. package/files/templates/apollo-sdk-templates/native-service/services.json +11 -0
  36. package/files/templates/apollo-sdk-templates/native-service/src/main.c +144 -0
  37. package/files/templates/apollo-sdk-templates/serviceinfo/package.json +11 -0
  38. package/files/templates/apollo-sdk-templates/serviceinfo/services.json +8 -0
  39. package/lib/base/novacom.js +1 -1
  40. package/lib/base/setup-device.js +338 -335
  41. package/lib/device.js +1 -1
  42. package/lib/generator.js +408 -377
  43. package/lib/package.js +3 -1
  44. package/lib/shell.js +1 -1
  45. package/npm-shrinkwrap.json +9242 -9242
  46. package/package.json +100 -100
  47. package/sbom-info.yaml +1758 -0
  48. package/spec/jsSpecs/ares-config.spec.js +10 -0
  49. package/spec/jsSpecs/ares-generate.spec.js +4 -4
  50. package/spec/jsSpecs/ares-log.spec.js +1 -1
  51. package/spec/test_data/ares-generate.json +18 -1
  52. package/spec/test_data/ares.json +17 -0
  53. package/webos-tools-cli-3.1.3.tgz +0 -0
package/CHANGELOG.md CHANGED
@@ -1,157 +1,173 @@
1
- ## 3.1.1 (July 15, 2024)
2
- ### ares-inspec
3
- * Fixed a bug that ares-inspect --service display error message on webOS 4.5 or lower
4
-
5
-
6
- ## 3.1.0 (July 12, 2024)
7
- ### ares-generate
8
- * Fixed a bug that can not generate without tample option
9
-
10
- ### ares-setup-device
11
- * Enhance usability of --add option.
12
- * Enhance emulator remove usability
13
- * Change default device information of TV profile (user: prisoner, port:9922)
14
- * Change devie name validation logic that accept all of charactors except "$" & "%"
15
-
16
- ### common
17
- * Upgrade node modules: shelljs(v0.8.5), async(v3.2.5), ssh2(v1.15.0), tar(v6.2.0).
18
-
19
-
20
- ## 3.0.6 (April 04, 2024)
21
- ### ares-log
22
- * Fixed a bug that invalid json format
23
-
24
-
25
- ## 3.0.5 (April 01, 2024)
26
- ### Common
27
- * Fixed a bug that can not install on window by CMD or Powershell
28
-
29
-
30
- ## 3.0.4 (March 30, 2024)
31
- ### Common
32
- * Fixed a bug that always requires sudo permission when exec ares commands
33
-
34
-
35
- ## 3.0.3 (March 29, 2024)
36
- ### ares-setup-device
37
- * Fixed a bug that the ares-setup-device of existing TV CLI is not working, after adding new target from CLI v3.0.2. If error is occurs again, please reset device list via "ares-setup-device -R" and add it again.
38
- * Allow localhost as ip address to add target and add port validation(1-65535)
39
-
40
- ### ares-generate
41
- * Update TV template to apply webOSTVjs v1.2.10 in ares-generate
42
-
43
- ### Common
44
- * Update webOSTV.js to v1.2.10
45
- * Fixed a bug that profile change is not working after installing with root on mac/linux
46
-
47
-
48
- ## 3.0.0 (March 4, 2024)
49
- ### ares-config
50
- * Added as a new command for showing or changing the profile of CLI.
51
-
52
- ### ares-launch
53
- * Supports to live reloading using `--hosted` option.
54
-
55
- ### ares-novacom
56
- * Added as a new command for controlling TV devices.(This is written based on differences compared to v2.4.0.)
57
- * Supported only when using the TV profile.
58
-
59
- ### ares-pacakge
60
- * Fixed to minify by default for js files in service directory.
61
-
62
- ### Common
63
- * Moved repository from @webosose/ares-cli to @webos-tools/cli.
64
- * Integrated with the webOS TV CLI. In the future, we plan to support multiple webOS platforms with a single CLI.
65
- * Added the profile for changing support platform, default profile is tv. The commands, options, help, and templates supported for each profile are different.
66
- * Supports Node v16.20.2.
67
- * Supports unit test to verify tv profile.
68
-
69
- ### Meta files
70
- * Updated the README file.
71
-
72
-
73
- ## 2.4.0 (February 16, 2023)
74
- ### ares-device
75
- * Supports to show node version usage using `--system-info` option.
76
- * Fixed a bug that js service is not listed-up when ares-device `--resource-monitor --list` option.
77
-
78
- ### ares-inspect
79
- * Updated displayed guide text during js service inspection using `--service` option.
80
-
81
- ### Common
82
- * Supports features of below commands as APIs(total 10s)
83
- : ares-generate, ares-inspect, ares-install, ares-launch, ares-package, ares-pull, ares-push, ares-server, ares-setup-device, ares-shell
84
- * Added unit test to verify APIs
85
-
86
-
87
- ## 2.3.0 (February 7, 2022)
88
- ### ares-log
89
- * Supports to show logs of pmlogd and added options to support related features.
90
- * Added option to check(`--current-daemon`) and select(`--select-daemon`) log daemon.
91
- * Supports to print the help message by selected log daemon.
92
-
93
- ### ares-device
94
- * Supports to monitor resource usage using `--resouce-monitor` option and provides related features through the options of `--time-interval`, `--list`, `--id` and `--save`.
95
- * Fixed a bug related to the directory permission when using `capture-screen` option.
96
-
97
- ### ares-pacakge
98
- * Supports to analyze the pacakge file(.ipk) using `--info` and `--info-detail` options.
99
- * Fixed a bug related to the callback function error.
100
-
101
- ### ares-inspect
102
- * Fixed a bug that prevented opening the browser specified in the environment variables when using `--open` option.
103
-
104
- ### Common
105
- * Updated the minimum supported node version from v8.12.0 to v10.24.1.
106
- * Added a feature to print information of the connected target device.
107
- * Added a feature to print the progress when the command takes a long time to execute.
108
- * Cleaned up all log levels of all source code and supports to show level-applied logs using `--level` option of each command.
109
- * Added a feature to manually set time interval when running unit tests.
110
-
111
- ### Meta files
112
- * Updated the README file.
113
-
114
-
115
- ## 2.2.0 (June 21, 2021)
116
- ### ares-log
117
- * Added as a new command for showing or saving logs of webOS apps and services.
118
-
119
- ### ares-setup-device
120
- * Updated the naming rule for the DEVICE_NAME parameter.
121
-
122
- ### ares-install
123
- * Enhanced the readability of the results of the --listfull option.
124
-
125
- ### Common
126
- * Categorized error messages and added user tips according to each error message.
127
-
128
- ### Meta files
129
- * Updated the README file.
130
-
131
-
132
- ## 2.1.0 (April 2, 2021)
133
- ### ares-device
134
- * Supports screen capture using the `--capture-screen` option.
135
-
136
- ### ares-generate
137
- * Updated the template of appinfo.json to apply new ACG groups. Template files generated by CLI v2.0.3 or older are not compatible with the latest webOS OSE.
138
- * Added '/' to config method in js_service templates.
139
-
140
- ### ares-shell
141
- * Fixed an issue that environment variables using the `ares-shell -r` command were different from environment variables of the target device.
142
-
143
-
144
- ## 2.0.3 (January 22, 2021)
145
- ### ares
146
- * Updated help message.
147
-
148
- ### Meta files
149
- * Updated the README file.
150
-
151
-
152
- ## 2.0.2 (December 29, 2020)
153
- * Supports Node v14.15.1.
154
-
155
-
156
- ## 2.0.0 (December 11, 2020)
157
- * Initial github release.
1
+ ## 3.1.3 (October 14, 2024)
2
+ ### ares-generate
3
+ * Added "native_service" template for apollo platform.
4
+
5
+ ### ares-setup-device
6
+ * Fixed a bug that device name can not be added with "-".
7
+
8
+
9
+ ## 3.1.2 (August 07, 2024)
10
+ ### ares-config
11
+ * Added a new apollo profile for apollo platform.
12
+
13
+ ### common
14
+ * Integrated CLI commands for apollo platform.
15
+
16
+
17
+ ## 3.1.1 (July 15, 2024)
18
+ ### ares-inspect
19
+ * Fixed a bug that ares-inspect --service display error message on webOS TV 4.5 or lower
20
+
21
+
22
+ ## 3.1.0 (July 12, 2024)
23
+ ### ares-generate
24
+ * Fixed a bug that can not generate without --template option
25
+
26
+ ### ares-setup-device
27
+ * Enhance usability of --add option.
28
+ * Enhance emulator remove usability
29
+ * Change default device information of TV profile (user: prisoner, port:9922)
30
+ * Change device name validation logic that accepts all characters except "$" & "%"
31
+
32
+ ### common
33
+ * Upgrade node modules: shelljs(v0.8.5), async(v3.2.5), ssh2(v1.15.0), tar(v6.2.0).
34
+
35
+
36
+ ## 3.0.6 (April 04, 2024)
37
+ ### ares-log
38
+ * Fixed a bug that invalid json format
39
+
40
+
41
+ ## 3.0.5 (April 01, 2024)
42
+ ### Common
43
+ * Fixed a bug that can not install on window by CMD or Powershell
44
+
45
+
46
+ ## 3.0.4 (March 30, 2024)
47
+ ### Common
48
+ * Fixed a bug that always requires sudo permission when exec ares commands
49
+
50
+
51
+ ## 3.0.3 (March 29, 2024)
52
+ ### ares-setup-device
53
+ * Fixed a bug that the ares-setup-device of existing TV CLI is not working, after adding new target from CLI v3.0.2. If error is occurs again, please reset device list via "ares-setup-device -R" and add it again.
54
+ * Allow localhost as ip address to add target and add port validation(1-65535)
55
+
56
+ ### ares-generate
57
+ * Update TV template to apply webOSTVjs v1.2.10 in ares-generate
58
+
59
+ ### Common
60
+ * Update webOSTV.js to v1.2.10
61
+ * Fixed a bug that profile change is not working after installing with root on mac/linux
62
+
63
+
64
+ ## 3.0.0 (March 4, 2024)
65
+ ### ares-config
66
+ * Added as a new command for showing or changing the profile of CLI.
67
+
68
+ ### ares-launch
69
+ * Supports to live reloading using `--hosted` option.
70
+
71
+ ### ares-novacom
72
+ * Added as a new command for controlling TV devices.(This is written based on differences compared to v2.4.0.)
73
+ * Supported only when using the TV profile.
74
+
75
+ ### ares-pacakge
76
+ * Fixed to minify by default for js files in service directory.
77
+
78
+ ### Common
79
+ * Moved repository from @webosose/ares-cli to @webos-tools/cli.
80
+ * Integrated with the webOS TV CLI. In the future, we plan to support multiple webOS platforms with a single CLI.
81
+ * Added the profile for changing support platform, default profile is tv. The commands, options, help, and templates supported for each profile are different.
82
+ * Supports Node v16.20.2.
83
+ * Supports unit test to verify tv profile.
84
+
85
+ ### Meta files
86
+ * Updated the README file.
87
+
88
+
89
+ ## 2.4.0 (February 16, 2023)
90
+ ### ares-device
91
+ * Supports to show node version usage using `--system-info` option.
92
+ * Fixed a bug that js service is not listed-up when ares-device `--resource-monitor --list` option.
93
+
94
+ ### ares-inspect
95
+ * Updated displayed guide text during js service inspection using `--service` option.
96
+
97
+ ### Common
98
+ * Supports features of below commands as APIs(total 10s)
99
+ : ares-generate, ares-inspect, ares-install, ares-launch, ares-package, ares-pull, ares-push, ares-server, ares-setup-device, ares-shell
100
+ * Added unit test to verify APIs
101
+
102
+
103
+ ## 2.3.0 (February 7, 2022)
104
+ ### ares-log
105
+ * Supports to show logs of pmlogd and added options to support related features.
106
+ * Added option to check(`--current-daemon`) and select(`--select-daemon`) log daemon.
107
+ * Supports to print the help message by selected log daemon.
108
+
109
+ ### ares-device
110
+ * Supports to monitor resource usage using `--resouce-monitor` option and provides related features through the options of `--time-interval`, `--list`, `--id` and `--save`.
111
+ * Fixed a bug related to the directory permission when using `capture-screen` option.
112
+
113
+ ### ares-pacakge
114
+ * Supports to analyze the pacakge file(.ipk) using `--info` and `--info-detail` options.
115
+ * Fixed a bug related to the callback function error.
116
+
117
+ ### ares-inspect
118
+ * Fixed a bug that prevented opening the browser specified in the environment variables when using `--open` option.
119
+
120
+ ### Common
121
+ * Updated the minimum supported node version from v8.12.0 to v10.24.1.
122
+ * Added a feature to print information of the connected target device.
123
+ * Added a feature to print the progress when the command takes a long time to execute.
124
+ * Cleaned up all log levels of all source code and supports to show level-applied logs using `--level` option of each command.
125
+ * Added a feature to manually set time interval when running unit tests.
126
+
127
+ ### Meta files
128
+ * Updated the README file.
129
+
130
+
131
+ ## 2.2.0 (June 21, 2021)
132
+ ### ares-log
133
+ * Added as a new command for showing or saving logs of webOS apps and services.
134
+
135
+ ### ares-setup-device
136
+ * Updated the naming rule for the DEVICE_NAME parameter.
137
+
138
+ ### ares-install
139
+ * Enhanced the readability of the results of the --listfull option.
140
+
141
+ ### Common
142
+ * Categorized error messages and added user tips according to each error message.
143
+
144
+ ### Meta files
145
+ * Updated the README file.
146
+
147
+
148
+ ## 2.1.0 (April 2, 2021)
149
+ ### ares-device
150
+ * Supports screen capture using the `--capture-screen` option.
151
+
152
+ ### ares-generate
153
+ * Updated the template of appinfo.json to apply new ACG groups. Template files generated by CLI v2.0.3 or older are not compatible with the latest webOS OSE.
154
+ * Added '/' to config method in js_service templates.
155
+
156
+ ### ares-shell
157
+ * Fixed an issue that environment variables using the `ares-shell -r` command were different from environment variables of the target device.
158
+
159
+
160
+ ## 2.0.3 (January 22, 2021)
161
+ ### ares
162
+ * Updated help message.
163
+
164
+ ### Meta files
165
+ * Updated the README file.
166
+
167
+
168
+ ## 2.0.2 (December 29, 2020)
169
+ * Supports Node v14.15.1.
170
+
171
+
172
+ ## 2.0.0 (December 11, 2020)
173
+ * Initial github release.