@ardennguyen/zalo-agent-cli 2.0.0 → 2.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/.env.example ADDED
@@ -0,0 +1,30 @@
1
+ # ============================================================================
2
+ # zalo-agent-cli — Environment Configuration Template (.env.example)
3
+ # ============================================================================
4
+ # Recommended location: `~/.zalo-agent-cli/.env` (`<CONFIG_DIR>/.env`), or pass
5
+ # `--env-file /path/to/.env` (`ZALO_ENV_FILE=/path/to/.env`).
6
+ # Note: If you also use the `zalo-mcp` deployment wrapper, keep `zalo-mcp/.env`
7
+ # for port settings (`ZALO_MCP_HTTP_PORT`, `ZALO_OA_WEBHOOK_PORT`) only, and put
8
+ # all storage paths and engine settings in `<CONFIG_DIR>/.env` so `zalo-mcp` and
9
+ # `zalo-agent` share a single source of truth.
10
+ # CLI flags and shell environment variables take precedence over `.env` values.
11
+
12
+ # ----------------------------------------------------------------------------
13
+ # Storage Directories (Optional)
14
+ # Uncomment to separate config, credentials, SQLite database, and media onto
15
+ # different volumes or mounts in production:
16
+ # ----------------------------------------------------------------------------
17
+ # ZALO_CONFIG_DIR=
18
+ # ZALO_CREDENTIALS_DIR=
19
+ # ZALO_DATA_DIR=
20
+ # ZALO_MEDIA_DIR=
21
+ # ZALO_OA_DIR=
22
+
23
+ # ----------------------------------------------------------------------------
24
+ # Runtime & Protocol Options (Optional)
25
+ # ----------------------------------------------------------------------------
26
+ # Set to any value (e.g. 1) to disable the background npm update check:
27
+ # ZALO_AGENT_NO_UPDATE_CHECK=1
28
+
29
+ # Protocol version announced to Zalo (default: 691; set 685 to roll back):
30
+ # ZALO_API_VERSION=691
package/LICENSE CHANGED
@@ -1,21 +1,456 @@
1
- MIT License
2
-
3
- Copyright (c) 2026
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ zalo-agent-cli
2
+ Copyright (c) 2026 Arden Nguyen Duc Huy
3
+ https://github.com/ardennguyen/zalo-agent-cli
4
+
5
+ This work is licensed under the Creative Commons Attribution-NonCommercial-
6
+ ShareAlike 4.0 International License (CC BY-NC-SA 4.0), reproduced below.
7
+ https://creativecommons.org/licenses/by-nc-sa/4.0/
8
+
9
+ This project is derived from MIT-licensed software: zalo-agent-cli by
10
+ PhucMPham, and it ships a patched copy of zca-js (MIT). Those original
11
+ portions remain under the MIT License; the required MIT notices are
12
+ reproduced in the NOTICE file, together with how to credit this project
13
+ and how to request a commercial license.
14
+
15
+ Versions published before this license change (zalo-agent-cli 2.0.0 and
16
+ earlier) were released under the MIT License and remain available under it.
17
+
18
+ =======================================================================
19
+
20
+ Attribution-NonCommercial-ShareAlike 4.0 International
21
+
22
+ =======================================================================
23
+
24
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
25
+ does not provide legal services or legal advice. Distribution of
26
+ Creative Commons public licenses does not create a lawyer-client or
27
+ other relationship. Creative Commons makes its licenses and related
28
+ information available on an "as-is" basis. Creative Commons gives no
29
+ warranties regarding its licenses, any material licensed under their
30
+ terms and conditions, or any related information. Creative Commons
31
+ disclaims all liability for damages resulting from their use to the
32
+ fullest extent possible.
33
+
34
+ Using Creative Commons Public Licenses
35
+
36
+ Creative Commons public licenses provide a standard set of terms and
37
+ conditions that creators and other rights holders may use to share
38
+ original works of authorship and other material subject to copyright
39
+ and certain other rights specified in the public license below. The
40
+ following considerations are for informational purposes only, are not
41
+ exhaustive, and do not form part of our licenses.
42
+
43
+ Considerations for licensors: Our public licenses are
44
+ intended for use by those authorized to give the public
45
+ permission to use material in ways otherwise restricted by
46
+ copyright and certain other rights. Our licenses are
47
+ irrevocable. Licensors should read and understand the terms
48
+ and conditions of the license they choose before applying it.
49
+ Licensors should also secure all rights necessary before
50
+ applying our licenses so that the public can reuse the
51
+ material as expected. Licensors should clearly mark any
52
+ material not subject to the license. This includes other CC-
53
+ licensed material, or material used under an exception or
54
+ limitation to copyright. More considerations for licensors:
55
+ wiki.creativecommons.org/Considerations_for_licensors
56
+
57
+ Considerations for the public: By using one of our public
58
+ licenses, a licensor grants the public permission to use the
59
+ licensed material under specified terms and conditions. If
60
+ the licensor's permission is not necessary for any reason--for
61
+ example, because of any applicable exception or limitation to
62
+ copyright--then that use is not regulated by the license. Our
63
+ licenses grant only permissions under copyright and certain
64
+ other rights that a licensor has authority to grant. Use of
65
+ the licensed material may still be restricted for other
66
+ reasons, including because others have copyright or other
67
+ rights in the material. A licensor may make special requests,
68
+ such as asking that all changes be marked or described.
69
+ Although not required by our licenses, you are encouraged to
70
+ respect those requests where reasonable. More considerations
71
+ for the public:
72
+ wiki.creativecommons.org/Considerations_for_licensees
73
+
74
+ =======================================================================
75
+
76
+ Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
77
+ Public License
78
+
79
+ By exercising the Licensed Rights (defined below), You accept and agree
80
+ to be bound by the terms and conditions of this Creative Commons
81
+ Attribution-NonCommercial-ShareAlike 4.0 International Public License
82
+ ("Public License"). To the extent this Public License may be
83
+ interpreted as a contract, You are granted the Licensed Rights in
84
+ consideration of Your acceptance of these terms and conditions, and the
85
+ Licensor grants You such rights in consideration of benefits the
86
+ Licensor receives from making the Licensed Material available under
87
+ these terms and conditions.
88
+
89
+
90
+ Section 1 -- Definitions.
91
+
92
+ a. Adapted Material means material subject to Copyright and Similar
93
+ Rights that is derived from or based upon the Licensed Material
94
+ and in which the Licensed Material is translated, altered,
95
+ arranged, transformed, or otherwise modified in a manner requiring
96
+ permission under the Copyright and Similar Rights held by the
97
+ Licensor. For purposes of this Public License, where the Licensed
98
+ Material is a musical work, performance, or sound recording,
99
+ Adapted Material is always produced where the Licensed Material is
100
+ synched in timed relation with a moving image.
101
+
102
+ b. Adapter's License means the license You apply to Your Copyright
103
+ and Similar Rights in Your contributions to Adapted Material in
104
+ accordance with the terms and conditions of this Public License.
105
+
106
+ c. BY-NC-SA Compatible License means a license listed at
107
+ creativecommons.org/compatiblelicenses, approved by Creative
108
+ Commons as essentially the equivalent of this Public License.
109
+
110
+ d. Copyright and Similar Rights means copyright and/or similar rights
111
+ closely related to copyright including, without limitation,
112
+ performance, broadcast, sound recording, and Sui Generis Database
113
+ Rights, without regard to how the rights are labeled or
114
+ categorized. For purposes of this Public License, the rights
115
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
116
+ Rights.
117
+
118
+ e. Effective Technological Measures means those measures that, in the
119
+ absence of proper authority, may not be circumvented under laws
120
+ fulfilling obligations under Article 11 of the WIPO Copyright
121
+ Treaty adopted on December 20, 1996, and/or similar international
122
+ agreements.
123
+
124
+ f. Exceptions and Limitations means fair use, fair dealing, and/or
125
+ any other exception or limitation to Copyright and Similar Rights
126
+ that applies to Your use of the Licensed Material.
127
+
128
+ g. License Elements means the license attributes listed in the name
129
+ of a Creative Commons Public License. The License Elements of this
130
+ Public License are Attribution, NonCommercial, and ShareAlike.
131
+
132
+ h. Licensed Material means the artistic or literary work, database,
133
+ or other material to which the Licensor applied this Public
134
+ License.
135
+
136
+ i. Licensed Rights means the rights granted to You subject to the
137
+ terms and conditions of this Public License, which are limited to
138
+ all Copyright and Similar Rights that apply to Your use of the
139
+ Licensed Material and that the Licensor has authority to license.
140
+
141
+ j. Licensor means the individual(s) or entity(ies) granting rights
142
+ under this Public License.
143
+
144
+ k. NonCommercial means not primarily intended for or directed towards
145
+ commercial advantage or monetary compensation. For purposes of
146
+ this Public License, the exchange of the Licensed Material for
147
+ other material subject to Copyright and Similar Rights by digital
148
+ file-sharing or similar means is NonCommercial provided there is
149
+ no payment of monetary compensation in connection with the
150
+ exchange.
151
+
152
+ l. Share means to provide material to the public by any means or
153
+ process that requires permission under the Licensed Rights, such
154
+ as reproduction, public display, public performance, distribution,
155
+ dissemination, communication, or importation, and to make material
156
+ available to the public including in ways that members of the
157
+ public may access the material from a place and at a time
158
+ individually chosen by them.
159
+
160
+ m. Sui Generis Database Rights means rights other than copyright
161
+ resulting from Directive 96/9/EC of the European Parliament and of
162
+ the Council of 11 March 1996 on the legal protection of databases,
163
+ as amended and/or succeeded, as well as other essentially
164
+ equivalent rights anywhere in the world.
165
+
166
+ n. You means the individual or entity exercising the Licensed Rights
167
+ under this Public License. Your has a corresponding meaning.
168
+
169
+
170
+ Section 2 -- Scope.
171
+
172
+ a. License grant.
173
+
174
+ 1. Subject to the terms and conditions of this Public License,
175
+ the Licensor hereby grants You a worldwide, royalty-free,
176
+ non-sublicensable, non-exclusive, irrevocable license to
177
+ exercise the Licensed Rights in the Licensed Material to:
178
+
179
+ a. reproduce and Share the Licensed Material, in whole or
180
+ in part, for NonCommercial purposes only; and
181
+
182
+ b. produce, reproduce, and Share Adapted Material for
183
+ NonCommercial purposes only.
184
+
185
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
186
+ Exceptions and Limitations apply to Your use, this Public
187
+ License does not apply, and You do not need to comply with
188
+ its terms and conditions.
189
+
190
+ 3. Term. The term of this Public License is specified in Section
191
+ 6(a).
192
+
193
+ 4. Media and formats; technical modifications allowed. The
194
+ Licensor authorizes You to exercise the Licensed Rights in
195
+ all media and formats whether now known or hereafter created,
196
+ and to make technical modifications necessary to do so. The
197
+ Licensor waives and/or agrees not to assert any right or
198
+ authority to forbid You from making technical modifications
199
+ necessary to exercise the Licensed Rights, including
200
+ technical modifications necessary to circumvent Effective
201
+ Technological Measures. For purposes of this Public License,
202
+ simply making modifications authorized by this Section 2(a)
203
+ (4) never produces Adapted Material.
204
+
205
+ 5. Downstream recipients.
206
+
207
+ a. Offer from the Licensor -- Licensed Material. Every
208
+ recipient of the Licensed Material automatically
209
+ receives an offer from the Licensor to exercise the
210
+ Licensed Rights under the terms and conditions of this
211
+ Public License.
212
+
213
+ b. Additional offer from the Licensor -- Adapted Material.
214
+ Every recipient of Adapted Material from You
215
+ automatically receives an offer from the Licensor to
216
+ exercise the Licensed Rights in the Adapted Material
217
+ under the conditions of the Adapter's License You apply.
218
+
219
+ c. No downstream restrictions. You may not offer or impose
220
+ any additional or different terms or conditions on, or
221
+ apply any Effective Technological Measures to, the
222
+ Licensed Material if doing so restricts exercise of the
223
+ Licensed Rights by any recipient of the Licensed
224
+ Material.
225
+
226
+ 6. No endorsement. Nothing in this Public License constitutes or
227
+ may be construed as permission to assert or imply that You
228
+ are, or that Your use of the Licensed Material is, connected
229
+ with, or sponsored, endorsed, or granted official status by,
230
+ the Licensor or others designated to receive attribution as
231
+ provided in Section 3(a)(1)(A)(i).
232
+
233
+ b. Other rights.
234
+
235
+ 1. Moral rights, such as the right of integrity, are not
236
+ licensed under this Public License, nor are publicity,
237
+ privacy, and/or other similar personality rights; however, to
238
+ the extent possible, the Licensor waives and/or agrees not to
239
+ assert any such rights held by the Licensor to the limited
240
+ extent necessary to allow You to exercise the Licensed
241
+ Rights, but not otherwise.
242
+
243
+ 2. Patent and trademark rights are not licensed under this
244
+ Public License.
245
+
246
+ 3. To the extent possible, the Licensor waives any right to
247
+ collect royalties from You for the exercise of the Licensed
248
+ Rights, whether directly or through a collecting society
249
+ under any voluntary or waivable statutory or compulsory
250
+ licensing scheme. In all other cases the Licensor expressly
251
+ reserves any right to collect such royalties, including when
252
+ the Licensed Material is used other than for NonCommercial
253
+ purposes.
254
+
255
+
256
+ Section 3 -- License Conditions.
257
+
258
+ Your exercise of the Licensed Rights is expressly made subject to the
259
+ following conditions.
260
+
261
+ a. Attribution.
262
+
263
+ 1. If You Share the Licensed Material (including in modified
264
+ form), You must:
265
+
266
+ a. retain the following if it is supplied by the Licensor
267
+ with the Licensed Material:
268
+
269
+ i. identification of the creator(s) of the Licensed
270
+ Material and any others designated to receive
271
+ attribution, in any reasonable manner requested by
272
+ the Licensor (including by pseudonym if
273
+ designated);
274
+
275
+ ii. a copyright notice;
276
+
277
+ iii. a notice that refers to this Public License;
278
+
279
+ iv. a notice that refers to the disclaimer of
280
+ warranties;
281
+
282
+ v. a URI or hyperlink to the Licensed Material to the
283
+ extent reasonably practicable;
284
+
285
+ b. indicate if You modified the Licensed Material and
286
+ retain an indication of any previous modifications; and
287
+
288
+ c. indicate the Licensed Material is licensed under this
289
+ Public License, and include the text of, or the URI or
290
+ hyperlink to, this Public License.
291
+
292
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
293
+ reasonable manner based on the medium, means, and context in
294
+ which You Share the Licensed Material. For example, it may be
295
+ reasonable to satisfy the conditions by providing a URI or
296
+ hyperlink to a resource that includes the required
297
+ information.
298
+ 3. If requested by the Licensor, You must remove any of the
299
+ information required by Section 3(a)(1)(A) to the extent
300
+ reasonably practicable.
301
+
302
+ b. ShareAlike.
303
+
304
+ In addition to the conditions in Section 3(a), if You Share
305
+ Adapted Material You produce, the following conditions also apply.
306
+
307
+ 1. The Adapter's License You apply must be a Creative Commons
308
+ license with the same License Elements, this version or
309
+ later, or a BY-NC-SA Compatible License.
310
+
311
+ 2. You must include the text of, or the URI or hyperlink to, the
312
+ Adapter's License You apply. You may satisfy this condition
313
+ in any reasonable manner based on the medium, means, and
314
+ context in which You Share Adapted Material.
315
+
316
+ 3. You may not offer or impose any additional or different terms
317
+ or conditions on, or apply any Effective Technological
318
+ Measures to, Adapted Material that restrict exercise of the
319
+ rights granted under the Adapter's License You apply.
320
+
321
+
322
+ Section 4 -- Sui Generis Database Rights.
323
+
324
+ Where the Licensed Rights include Sui Generis Database Rights that
325
+ apply to Your use of the Licensed Material:
326
+
327
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
328
+ to extract, reuse, reproduce, and Share all or a substantial
329
+ portion of the contents of the database for NonCommercial purposes
330
+ only;
331
+
332
+ b. if You include all or a substantial portion of the database
333
+ contents in a database in which You have Sui Generis Database
334
+ Rights, then the database in which You have Sui Generis Database
335
+ Rights (but not its individual contents) is Adapted Material,
336
+ including for purposes of Section 3(b); and
337
+
338
+ c. You must comply with the conditions in Section 3(a) if You Share
339
+ all or a substantial portion of the contents of the database.
340
+
341
+ For the avoidance of doubt, this Section 4 supplements and does not
342
+ replace Your obligations under this Public License where the Licensed
343
+ Rights include other Copyright and Similar Rights.
344
+
345
+
346
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
347
+
348
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
349
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
350
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
351
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
352
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
353
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
354
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
355
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
356
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
357
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
358
+
359
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
360
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
361
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
362
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
363
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
364
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
365
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
366
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
367
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
368
+
369
+ c. The disclaimer of warranties and limitation of liability provided
370
+ above shall be interpreted in a manner that, to the extent
371
+ possible, most closely approximates an absolute disclaimer and
372
+ waiver of all liability.
373
+
374
+
375
+ Section 6 -- Term and Termination.
376
+
377
+ a. This Public License applies for the term of the Copyright and
378
+ Similar Rights licensed here. However, if You fail to comply with
379
+ this Public License, then Your rights under this Public License
380
+ terminate automatically.
381
+
382
+ b. Where Your right to use the Licensed Material has terminated under
383
+ Section 6(a), it reinstates:
384
+
385
+ 1. automatically as of the date the violation is cured, provided
386
+ it is cured within 30 days of Your discovery of the
387
+ violation; or
388
+
389
+ 2. upon express reinstatement by the Licensor.
390
+
391
+ For the avoidance of doubt, this Section 6(b) does not affect any
392
+ right the Licensor may have to seek remedies for Your violations
393
+ of this Public License.
394
+
395
+ c. For the avoidance of doubt, the Licensor may also offer the
396
+ Licensed Material under separate terms or conditions or stop
397
+ distributing the Licensed Material at any time; however, doing so
398
+ will not terminate this Public License.
399
+
400
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
401
+ License.
402
+
403
+
404
+ Section 7 -- Other Terms and Conditions.
405
+
406
+ a. The Licensor shall not be bound by any additional or different
407
+ terms or conditions communicated by You unless expressly agreed.
408
+
409
+ b. Any arrangements, understandings, or agreements regarding the
410
+ Licensed Material not stated herein are separate from and
411
+ independent of the terms and conditions of this Public License.
412
+
413
+
414
+ Section 8 -- Interpretation.
415
+
416
+ a. For the avoidance of doubt, this Public License does not, and
417
+ shall not be interpreted to, reduce, limit, restrict, or impose
418
+ conditions on any use of the Licensed Material that could lawfully
419
+ be made without permission under this Public License.
420
+
421
+ b. To the extent possible, if any provision of this Public License is
422
+ deemed unenforceable, it shall be automatically reformed to the
423
+ minimum extent necessary to make it enforceable. If the provision
424
+ cannot be reformed, it shall be severed from this Public License
425
+ without affecting the enforceability of the remaining terms and
426
+ conditions.
427
+
428
+ c. No term or condition of this Public License will be waived and no
429
+ failure to comply consented to unless expressly agreed to by the
430
+ Licensor.
431
+
432
+ d. Nothing in this Public License constitutes or may be interpreted
433
+ as a limitation upon, or waiver of, any privileges and immunities
434
+ that apply to the Licensor or You, including from the legal
435
+ processes of any jurisdiction or authority.
436
+
437
+ =======================================================================
438
+
439
+ Creative Commons is not a party to its public
440
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
441
+ its public licenses to material it publishes and in those instances
442
+ will be considered the “Licensor.” The text of the Creative Commons
443
+ public licenses is dedicated to the public domain under the CC0 Public
444
+ Domain Dedication. Except for the limited purpose of indicating that
445
+ material is shared under a Creative Commons public license or as
446
+ otherwise permitted by the Creative Commons policies published at
447
+ creativecommons.org/policies, Creative Commons does not authorize the
448
+ use of the trademark "Creative Commons" or any other trademark or logo
449
+ of Creative Commons without its prior written consent including,
450
+ without limitation, in connection with any unauthorized modifications
451
+ to any of its public licenses or any other arrangements,
452
+ understandings, or agreements concerning use of licensed material. For
453
+ the avoidance of doubt, this paragraph does not form part of the
454
+ public licenses.
455
+
456
+ Creative Commons may be contacted at creativecommons.org.
package/NOTICE ADDED
@@ -0,0 +1,127 @@
1
+ zalo-agent-cli
2
+ Copyright (c) 2026 Arden Nguyen Duc Huy
3
+ https://github.com/ardennguyen/zalo-agent-cli
4
+
5
+ Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0
6
+ International License (CC BY-NC-SA 4.0). The full license text is in the
7
+ LICENSE file and at https://creativecommons.org/licenses/by-nc-sa/4.0/
8
+
9
+
10
+ 1. Summary (informational only -- the LICENSE text governs)
11
+ -----------------------------------------------------------------------
12
+
13
+ - Non-commercial use -- personal, academic, research, or any other use not
14
+ primarily intended for or directed towards commercial advantage or
15
+ monetary compensation -- is permitted free of charge.
16
+ - Commercial use is not licensed. Examples include use in a commercial
17
+ product, to provide paid services, or in a company's business operations.
18
+ To request a separate commercial license, open an issue at:
19
+ https://github.com/ardennguyen/zalo-agent-cli/issues
20
+ - If you share this project or any part of it -- whole files, code
21
+ excerpts, or modified versions, including inside another project -- you
22
+ must give credit (for example as shown in section 2), say whether you made
23
+ changes, and link to the license.
24
+ - If you share a modified version, or other work adapted from this project,
25
+ you must release it under CC BY-NC-SA 4.0 (or a later version of it, or a
26
+ compatible license listed by Creative Commons).
27
+
28
+
29
+ 2. How to credit this project
30
+ -----------------------------------------------------------------------
31
+
32
+ When you share any part of this project -- copied as-is or adapted,
33
+ including inside another project -- include a notice like the following
34
+ (for example in your project's README or NOTICE, or in the header of the
35
+ files that contain the copied code):
36
+
37
+ Based on zalo-agent-cli, Copyright (c) 2026 Arden Nguyen Duc Huy
38
+ (https://github.com/ardennguyen/zalo-agent-cli),
39
+ licensed under CC BY-NC-SA 4.0
40
+ (https://creativecommons.org/licenses/by-nc-sa/4.0/).
41
+ Modified: <yes, with a short description | no>.
42
+
43
+ Also keep the third-party notices in section 5 for any material that comes
44
+ from those projects.
45
+
46
+
47
+ 3. Contributing improvements back
48
+ -----------------------------------------------------------------------
49
+
50
+ The author asks that modifications and improvements be contributed back to
51
+ this project, so that everyone benefits from them: open a pull request at
52
+ https://github.com/ardennguyen/zalo-agent-cli, or open an issue
53
+ that links to your modified source. This is a request, as permitted by the
54
+ Creative Commons license; it is not an additional license condition. The
55
+ license itself requires that shared modifications stay under CC BY-NC-SA
56
+ 4.0 (section 1 above).
57
+
58
+
59
+ 4. Material not covered by CC BY-NC-SA 4.0
60
+ -----------------------------------------------------------------------
61
+
62
+ - This project is derived from zalo-agent-cli by PhucMPham, released under
63
+ the MIT License. The MIT License continues to apply to the portions that
64
+ originate from that project.
65
+ - The package ships a patched copy of zca-js, released under the MIT License
66
+ (its own LICENSE file is inside the package, in node_modules/zca-js). The
67
+ patches in patches/ are applied to it; the result stays under the MIT
68
+ License, not CC BY-NC-SA 4.0. The other bundled dependencies likewise carry
69
+ their own license files in node_modules/.
70
+ - Versions of this project published before this license change
71
+ (zalo-agent-cli 2.0.0 and earlier) were released under the MIT License. Copies
72
+ obtained under those terms remain MIT-licensed; this license applies to
73
+ the current version onward.
74
+
75
+
76
+ 5. Third-party notices
77
+ -----------------------------------------------------------------------
78
+
79
+ zalo-agent-cli (upstream)
80
+ https://github.com/PhucMPham/zalo-agent-cli
81
+
82
+ MIT License
83
+
84
+ Copyright (c) 2026
85
+
86
+ Permission is hereby granted, free of charge, to any person obtaining a copy
87
+ of this software and associated documentation files (the "Software"), to deal
88
+ in the Software without restriction, including without limitation the rights
89
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
90
+ copies of the Software, and to permit persons to whom the Software is
91
+ furnished to do so, subject to the following conditions:
92
+
93
+ The above copyright notice and this permission notice shall be included in all
94
+ copies or substantial portions of the Software.
95
+
96
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
97
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
98
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
99
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
100
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
101
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
102
+ SOFTWARE.
103
+
104
+ zca-js
105
+ https://github.com/RFS-ADRENO/zca-js
106
+
107
+ MIT License
108
+
109
+ Copyright (c) 2024 - 2025 RFS-ADRENO, truong9c2208, JustKemForFun
110
+
111
+ Permission is hereby granted, free of charge, to any person obtaining a copy
112
+ of this software and associated documentation files (the "Software"), to deal
113
+ in the Software without restriction, including without limitation the rights
114
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
115
+ copies of the Software, and to permit persons to whom the Software is
116
+ furnished to do so, subject to the following conditions:
117
+
118
+ The above copyright notice and this permission notice shall be included in all
119
+ copies or substantial portions of the Software.
120
+
121
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
122
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
123
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
124
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
125
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
126
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
127
+ SOFTWARE.