@zuplo/cli 7.14.8 → 7.15.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.
Files changed (118) hide show
  1. package/LICENSE.third-party.txt +236 -0
  2. package/LICENSE.txt +5 -78
  3. package/README.md +18 -3
  4. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/general/decrypt.js +3 -2
  5. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
  6. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jws/general/verify.js +2 -8
  7. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +11 -8
  8. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +2 -0
  9. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/key_management.js +0 -1
  10. package/node_modules/@modelcontextprotocol/client/node_modules/jose/package.json +1 -1
  11. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/general/decrypt.js +3 -2
  12. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
  13. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jws/general/verify.js +2 -8
  14. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +11 -8
  15. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +2 -0
  16. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/key_management.js +0 -1
  17. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/package.json +1 -1
  18. package/node_modules/@posthog/core/dist/privacy.d.ts +6 -1
  19. package/node_modules/@posthog/core/dist/privacy.d.ts.map +1 -1
  20. package/node_modules/@posthog/core/dist/privacy.js +69 -10
  21. package/node_modules/@posthog/core/dist/privacy.mjs +65 -9
  22. package/node_modules/@posthog/core/dist/traces/span.d.ts +6 -0
  23. package/node_modules/@posthog/core/dist/traces/span.d.ts.map +1 -1
  24. package/node_modules/@posthog/core/dist/traces/span.js +18 -0
  25. package/node_modules/@posthog/core/dist/traces/span.mjs +18 -0
  26. package/node_modules/@posthog/core/package.json +2 -2
  27. package/node_modules/@posthog/core/src/privacy.ts +100 -18
  28. package/node_modules/@posthog/core/src/traces/span.spec.ts +15 -1
  29. package/node_modules/@posthog/core/src/traces/span.ts +23 -0
  30. package/node_modules/@posthog/types/dist/traces.d.ts +10 -0
  31. package/node_modules/@posthog/types/dist/traces.d.ts.map +1 -1
  32. package/node_modules/@posthog/types/package.json +1 -1
  33. package/node_modules/@posthog/types/src/traces.ts +12 -0
  34. package/node_modules/@zuplo/core/LICENSE.third-party.txt +622 -0
  35. package/node_modules/@zuplo/core/LICENSE.txt +5 -78
  36. package/node_modules/@zuplo/core/README.md +7 -0
  37. package/node_modules/@zuplo/core/constants.minified.js +7 -20
  38. package/node_modules/@zuplo/core/customer.cli.minified.js +28 -41
  39. package/node_modules/@zuplo/core/index.minified.js +35 -48
  40. package/node_modules/@zuplo/core/package.json +4 -2
  41. package/node_modules/@zuplo/core/zeno.js +8 -21
  42. package/node_modules/@zuplo/graphql/LICENSE.third-party.txt +29 -0
  43. package/node_modules/@zuplo/graphql/LICENSE.txt +5 -78
  44. package/node_modules/@zuplo/graphql/README.md +7 -0
  45. package/node_modules/@zuplo/graphql/out/esm/index.js +7 -20
  46. package/node_modules/@zuplo/graphql/out/esm/index.js.map +1 -1
  47. package/node_modules/@zuplo/graphql/package.json +3 -2
  48. package/node_modules/@zuplo/openapi-tools/LICENSE.txt +7 -0
  49. package/node_modules/@zuplo/openapi-tools/README.md +7 -0
  50. package/node_modules/@zuplo/openapi-tools/package.json +3 -2
  51. package/node_modules/@zuplo/otel/LICENSE.third-party.txt +243 -0
  52. package/node_modules/@zuplo/otel/LICENSE.txt +5 -78
  53. package/node_modules/@zuplo/otel/README.md +33 -0
  54. package/node_modules/@zuplo/otel/out/esm/chunk-6YAK7LGJ.js +13 -0
  55. package/node_modules/@zuplo/otel/out/esm/chunk-6YAK7LGJ.js.map +1 -0
  56. package/node_modules/@zuplo/otel/out/esm/index.js +8 -21
  57. package/node_modules/@zuplo/otel/out/types/index.d.ts +41 -0
  58. package/node_modules/@zuplo/otel/package.json +3 -2
  59. package/node_modules/@zuplo/runtime/LICENSE.third-party.txt +511 -0
  60. package/node_modules/@zuplo/runtime/LICENSE.txt +5 -78
  61. package/node_modules/@zuplo/runtime/README.md +7 -0
  62. package/node_modules/@zuplo/runtime/out/esm/chunk-5JGLAPFA.js +13 -0
  63. package/node_modules/@zuplo/runtime/out/esm/chunk-5JGLAPFA.js.map +1 -0
  64. package/node_modules/@zuplo/runtime/out/esm/{chunk-6R2COTV6.js → chunk-AJ3MMWJS.js} +9 -22
  65. package/node_modules/@zuplo/runtime/out/esm/chunk-AJ3MMWJS.js.map +1 -0
  66. package/node_modules/@zuplo/runtime/out/esm/chunk-BH4DKEES.js +13 -0
  67. package/node_modules/@zuplo/runtime/out/esm/chunk-BH4DKEES.js.map +1 -0
  68. package/node_modules/@zuplo/runtime/out/esm/chunk-G42UYZ6V.js +24 -0
  69. package/node_modules/@zuplo/runtime/out/esm/{chunk-2HVCLUM4.js.map → chunk-G42UYZ6V.js.map} +1 -1
  70. package/node_modules/@zuplo/runtime/out/esm/chunk-OE2WMJXK.js +431 -0
  71. package/node_modules/@zuplo/runtime/out/esm/chunk-OE2WMJXK.js.map +1 -0
  72. package/node_modules/@zuplo/runtime/out/esm/chunk-R6UNMRUU.js +13 -0
  73. package/node_modules/@zuplo/runtime/out/esm/chunk-R6UNMRUU.js.map +1 -0
  74. package/node_modules/@zuplo/runtime/out/esm/{chunk-PY52EHDX.js → chunk-T2WKOG7J.js} +9 -22
  75. package/node_modules/@zuplo/runtime/out/esm/chunk-T2WKOG7J.js.map +1 -0
  76. package/node_modules/@zuplo/runtime/out/esm/{chunk-SNTU476S.js → chunk-TOJD4RET.js} +9 -22
  77. package/node_modules/@zuplo/runtime/out/esm/chunk-TOJD4RET.js.map +1 -0
  78. package/node_modules/@zuplo/runtime/out/esm/chunk-VXPFMOL5.js +13 -0
  79. package/node_modules/@zuplo/runtime/out/esm/chunk-VXPFMOL5.js.map +1 -0
  80. package/node_modules/@zuplo/runtime/out/esm/index.js +8 -21
  81. package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
  82. package/node_modules/@zuplo/runtime/out/esm/internal/index.js +8 -21
  83. package/node_modules/@zuplo/runtime/out/esm/mcp/messages/index.js +8 -21
  84. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +11 -39
  85. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js.map +1 -1
  86. package/node_modules/@zuplo/runtime/out/esm/mocks/index.js +8 -21
  87. package/node_modules/@zuplo/runtime/out/esm/mocks/index.js.map +1 -1
  88. package/node_modules/@zuplo/runtime/out/esm/sdks/aws/index.js +8 -21
  89. package/node_modules/@zuplo/runtime/out/esm/sdks/aws/index.js.map +1 -1
  90. package/node_modules/@zuplo/runtime/out/types/index.d.ts +248 -6
  91. package/node_modules/@zuplo/runtime/out/types/internal/index.d.ts +101 -0
  92. package/node_modules/@zuplo/runtime/out/types/mcp-gateway/index.d.ts +127 -0
  93. package/node_modules/@zuplo/runtime/package.json +3 -2
  94. package/node_modules/ansi-regex/index.js +22 -17
  95. package/node_modules/ansi-regex/package.json +1 -1
  96. package/node_modules/ansi-regex/readme.md +8 -0
  97. package/node_modules/express-rate-limit/dist/index.cjs +33 -4
  98. package/node_modules/express-rate-limit/dist/index.mjs +33 -4
  99. package/node_modules/express-rate-limit/package.json +1 -1
  100. package/package.json +12 -11
  101. package/node_modules/@zuplo/otel/out/esm/chunk-PVCAT62X.js +0 -26
  102. package/node_modules/@zuplo/otel/out/esm/chunk-PVCAT62X.js.map +0 -1
  103. package/node_modules/@zuplo/runtime/out/esm/chunk-2HVCLUM4.js +0 -37
  104. package/node_modules/@zuplo/runtime/out/esm/chunk-6R2COTV6.js.map +0 -1
  105. package/node_modules/@zuplo/runtime/out/esm/chunk-A3QGJZO7.js +0 -26
  106. package/node_modules/@zuplo/runtime/out/esm/chunk-A3QGJZO7.js.map +0 -1
  107. package/node_modules/@zuplo/runtime/out/esm/chunk-DB6LKZ36.js +0 -429
  108. package/node_modules/@zuplo/runtime/out/esm/chunk-DB6LKZ36.js.map +0 -1
  109. package/node_modules/@zuplo/runtime/out/esm/chunk-PY52EHDX.js.map +0 -1
  110. package/node_modules/@zuplo/runtime/out/esm/chunk-SNTU476S.js.map +0 -1
  111. package/node_modules/@zuplo/runtime/out/esm/chunk-TYV53J3B.js +0 -26
  112. package/node_modules/@zuplo/runtime/out/esm/chunk-TYV53J3B.js.map +0 -1
  113. package/node_modules/@zuplo/runtime/out/esm/chunk-UKQQD2JN.js +0 -26
  114. package/node_modules/@zuplo/runtime/out/esm/chunk-UKQQD2JN.js.map +0 -1
  115. package/node_modules/@zuplo/runtime/out/esm/chunk-VP5Q3DEN.js +0 -26
  116. package/node_modules/@zuplo/runtime/out/esm/chunk-VP5Q3DEN.js.map +0 -1
  117. /package/node_modules/@zuplo/runtime/out/esm/{chunk-2HVCLUM4.js.LEGAL.txt → chunk-G42UYZ6V.js.LEGAL.txt} +0 -0
  118. /package/node_modules/@zuplo/runtime/out/esm/{chunk-DB6LKZ36.js.LEGAL.txt → chunk-OE2WMJXK.js.LEGAL.txt} +0 -0
@@ -0,0 +1,236 @@
1
+ This package includes code from the open source projects below, each
2
+ under its own license. The license texts follow.
3
+
4
+ ==============================================================================
5
+ node-machine-id
6
+ https://github.com/automation-stack/node-machine-id
7
+ ==============================================================================
8
+
9
+ The MIT License (MIT)
10
+
11
+ Copyright (c) 2016 Aleksandr Komlev
12
+
13
+ Permission is hereby granted, free of charge, to any person obtaining a copy
14
+ of this software and associated documentation files (the "Software"), to deal
15
+ in the Software without restriction, including without limitation the rights
16
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ copies of the Software, and to permit persons to whom the Software is
18
+ furnished to do so, subject to the following conditions:
19
+
20
+ The above copyright notice and this permission notice shall be included in all
21
+ copies or substantial portions of the Software.
22
+
23
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
+ SOFTWARE.
30
+
31
+ ==============================================================================
32
+ Vercel CLI (box output)
33
+ https://github.com/vercel/vercel
34
+ ==============================================================================
35
+
36
+ Apache License
37
+ Version 2.0, January 2004
38
+ http://www.apache.org/licenses/
39
+
40
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
41
+
42
+ 1. Definitions.
43
+
44
+ "License" shall mean the terms and conditions for use, reproduction,
45
+ and distribution as defined by Sections 1 through 9 of this document.
46
+
47
+ "Licensor" shall mean the copyright owner or entity authorized by
48
+ the copyright owner that is granting the License.
49
+
50
+ "Legal Entity" shall mean the union of the acting entity and all
51
+ other entities that control, are controlled by, or are under common
52
+ control with that entity. For the purposes of this definition,
53
+ "control" means (i) the power, direct or indirect, to cause the
54
+ direction or management of such entity, whether by contract or
55
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
56
+ outstanding shares, or (iii) beneficial ownership of such entity.
57
+
58
+ "You" (or "Your") shall mean an individual or Legal Entity
59
+ exercising permissions granted by this License.
60
+
61
+ "Source" form shall mean the preferred form for making modifications,
62
+ including but not limited to software source code, documentation
63
+ source, and configuration files.
64
+
65
+ "Object" form shall mean any form resulting from mechanical
66
+ transformation or translation of a Source form, including but
67
+ not limited to compiled object code, generated documentation,
68
+ and conversions to other media types.
69
+
70
+ "Work" shall mean the work of authorship, whether in Source or
71
+ Object form, made available under the License, as indicated by a
72
+ copyright notice that is included in or attached to the work
73
+ (an example is provided in the Appendix below).
74
+
75
+ "Derivative Works" shall mean any work, whether in Source or Object
76
+ form, that is based on (or derived from) the Work and for which the
77
+ editorial revisions, annotations, elaborations, or other modifications
78
+ represent, as a whole, an original work of authorship. For the purposes
79
+ of this License, Derivative Works shall not include works that remain
80
+ separable from, or merely link (or bind by name) to the interfaces of,
81
+ the Work and Derivative Works thereof.
82
+
83
+ "Contribution" shall mean any work of authorship, including
84
+ the original version of the Work and any modifications or additions
85
+ to that Work or Derivative Works thereof, that is intentionally
86
+ submitted to Licensor for inclusion in the Work by the copyright owner
87
+ or by an individual or Legal Entity authorized to submit on behalf of
88
+ the copyright owner. For the purposes of this definition, "submitted"
89
+ means any form of electronic, verbal, or written communication sent
90
+ to the Licensor or its representatives, including but not limited to
91
+ communication on electronic mailing lists, source code control systems,
92
+ and issue tracking systems that are managed by, or on behalf of, the
93
+ Licensor for the purpose of discussing and improving the Work, but
94
+ excluding communication that is conspicuously marked or otherwise
95
+ designated in writing by the copyright owner as "Not a Contribution."
96
+
97
+ "Contributor" shall mean Licensor and any individual or Legal Entity
98
+ on behalf of whom a Contribution has been received by Licensor and
99
+ subsequently incorporated within the Work.
100
+
101
+ 2. Grant of Copyright License. Subject to the terms and conditions of
102
+ this License, each Contributor hereby grants to You a perpetual,
103
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
104
+ copyright license to reproduce, prepare Derivative Works of,
105
+ publicly display, publicly perform, sublicense, and distribute the
106
+ Work and such Derivative Works in Source or Object form.
107
+
108
+ 3. Grant of Patent License. Subject to the terms and conditions of
109
+ this License, each Contributor hereby grants to You a perpetual,
110
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
111
+ (except as stated in this section) patent license to make, have made,
112
+ use, offer to sell, sell, import, and otherwise transfer the Work,
113
+ where such license applies only to those patent claims licensable
114
+ by such Contributor that are necessarily infringed by their
115
+ Contribution(s) alone or by combination of their Contribution(s)
116
+ with the Work to which such Contribution(s) was submitted. If You
117
+ institute patent litigation against any entity (including a
118
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
119
+ or a Contribution incorporated within the Work constitutes direct
120
+ or contributory patent infringement, then any patent licenses
121
+ granted to You under this License for that Work shall terminate
122
+ as of the date such litigation is filed.
123
+
124
+ 4. Redistribution. You may reproduce and distribute copies of the
125
+ Work or Derivative Works thereof in any medium, with or without
126
+ modifications, and in Source or Object form, provided that You
127
+ meet the following conditions:
128
+
129
+ (a) You must give any other recipients of the Work or
130
+ Derivative Works a copy of this License; and
131
+
132
+ (b) You must cause any modified files to carry prominent notices
133
+ stating that You changed the files; and
134
+
135
+ (c) You must retain, in the Source form of any Derivative Works
136
+ that You distribute, all copyright, patent, trademark, and
137
+ attribution notices from the Source form of the Work,
138
+ excluding those notices that do not pertain to any part of
139
+ the Derivative Works; and
140
+
141
+ (d) If the Work includes a "NOTICE" text file as part of its
142
+ distribution, then any Derivative Works that You distribute must
143
+ include a readable copy of the attribution notices contained
144
+ within such NOTICE file, excluding those notices that do not
145
+ pertain to any part of the Derivative Works, in at least one
146
+ of the following places: within a NOTICE text file distributed
147
+ as part of the Derivative Works; within the Source form or
148
+ documentation, if provided along with the Derivative Works; or,
149
+ within a display generated by the Derivative Works, if and
150
+ wherever such third-party notices normally appear. The contents
151
+ of the NOTICE file are for informational purposes only and
152
+ do not modify the License. You may add Your own attribution
153
+ notices within Derivative Works that You distribute, alongside
154
+ or as an addendum to the NOTICE text from the Work, provided
155
+ that such additional attribution notices cannot be construed
156
+ as modifying the License.
157
+
158
+ You may add Your own copyright statement to Your modifications and
159
+ may provide additional or different license terms and conditions
160
+ for use, reproduction, or distribution of Your modifications, or
161
+ for any such Derivative Works as a whole, provided Your use,
162
+ reproduction, and distribution of the Work otherwise complies with
163
+ the conditions stated in this License.
164
+
165
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
166
+ any Contribution intentionally submitted for inclusion in the Work
167
+ by You to the Licensor shall be under the terms and conditions of
168
+ this License, without any additional terms or conditions.
169
+ Notwithstanding the above, nothing herein shall supersede or modify
170
+ the terms of any separate license agreement you may have executed
171
+ with Licensor regarding such Contributions.
172
+
173
+ 6. Trademarks. This License does not grant permission to use the trade
174
+ names, trademarks, service marks, or product names of the Licensor,
175
+ except as required for reasonable and customary use in describing the
176
+ origin of the Work and reproducing the content of the NOTICE file.
177
+
178
+ 7. Disclaimer of Warranty. Unless required by applicable law or
179
+ agreed to in writing, Licensor provides the Work (and each
180
+ Contributor provides its Contributions) on an "AS IS" BASIS,
181
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
182
+ implied, including, without limitation, any warranties or conditions
183
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
184
+ PARTICULAR PURPOSE. You are solely responsible for determining the
185
+ appropriateness of using or redistributing the Work and assume any
186
+ risks associated with Your exercise of permissions under this License.
187
+
188
+ 8. Limitation of Liability. In no event and under no legal theory,
189
+ whether in tort (including negligence), contract, or otherwise,
190
+ unless required by applicable law (such as deliberate and grossly
191
+ negligent acts) or agreed to in writing, shall any Contributor be
192
+ liable to You for damages, including any direct, indirect, special,
193
+ incidental, or consequential damages of any character arising as a
194
+ result of this License or out of the use or inability to use the
195
+ Work (including but not limited to damages for loss of goodwill,
196
+ work stoppage, computer failure or malfunction, or any and all
197
+ other commercial damages or losses), even if such Contributor
198
+ has been advised of the possibility of such damages.
199
+
200
+ 9. Accepting Warranty or Additional Liability. While redistributing
201
+ the Work or Derivative Works thereof, You may choose to offer,
202
+ and charge a fee for, acceptance of support, warranty, indemnity,
203
+ or other liability obligations and/or rights consistent with this
204
+ License. However, in accepting such obligations, You may act only
205
+ on Your own behalf and on Your sole responsibility, not on behalf
206
+ of any other Contributor, and only if You agree to indemnify,
207
+ defend, and hold each Contributor harmless for any liability
208
+ incurred by, or claims asserted against, such Contributor by reason
209
+ of your accepting any such warranty or additional liability.
210
+
211
+ END OF TERMS AND CONDITIONS
212
+
213
+ APPENDIX: How to apply the Apache License to your work.
214
+
215
+ To apply the Apache License to your work, attach the following
216
+ boilerplate notice, with the fields enclosed by brackets "[]"
217
+ replaced with your own identifying information. (Don't include
218
+ the brackets!) The text should be enclosed in the appropriate
219
+ comment syntax for the file format. We also recommend that a
220
+ file or class name and description of purpose be included on the
221
+ same "printed page" as the copyright notice for easier
222
+ identification within third-party archives.
223
+
224
+ Copyright 2017 Vercel, Inc.
225
+
226
+ Licensed under the Apache License, Version 2.0 (the "License");
227
+ you may not use this file except in compliance with the License.
228
+ You may obtain a copy of the License at
229
+
230
+ http://www.apache.org/licenses/LICENSE-2.0
231
+
232
+ Unless required by applicable law or agreed to in writing, software
233
+ distributed under the License is distributed on an "AS IS" BASIS,
234
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
235
+ See the License for the specific language governing permissions and
236
+ limitations under the License.
package/LICENSE.txt CHANGED
@@ -1,80 +1,7 @@
1
- # End User License Agreement (EULA)
1
+ Copyright (c) Zuplo, Inc. All rights reserved.
2
2
 
3
- This End User License Agreement ("Agreement") is a legal agreement between you
4
- ("User") and **Zuplo, Inc.**, a Delaware corporation ("Zuplo"), governing the
5
- use of Zuplo’s proprietary software tool designed for local development (the
6
- "Software").
3
+ Use of this software is governed by the Zuplo Terms of Service at
4
+ https://zuplo.com/legal/terms, or by a separate agreement your company has
5
+ signed with Zuplo.
7
6
 
8
- By installing, copying, or otherwise using the Software, you agree to be bound
9
- by the terms of this Agreement. If you do not agree, do not install or use the
10
- Software.
11
-
12
- ## 1. License Grant
13
-
14
- Subject to the terms of this Agreement, Zuplo grants you a limited,
15
- non-exclusive, non-transferable, non-sublicensable license to use the Software
16
- **solely for internal local development purposes** and **only if you are an
17
- active customer of Zuplo**.
18
-
19
- ## 2. Restrictions
20
-
21
- You may **not**:
22
-
23
- - Distribute, sublicense, lease, rent, or otherwise make the Software available
24
- to any third party;
25
- - Use the Software for any commercial purpose other than in connection with your
26
- authorized use of Zuplo services;
27
- - Reverse engineer, decompile, disassemble, or attempt to derive the source code
28
- of the Software;
29
- - Use the Software if you are not a current customer of Zuplo.
30
-
31
- ## 3. Intellectual Property Ownership
32
-
33
- All intellectual property rights in and to the Software — including but not
34
- limited to all code, documentation, interfaces, design, and trademarks — are and
35
- shall remain the exclusive property of Zuplo and its licensors.
36
- This Agreement does not grant you any rights, title, or interest in or to any
37
- trademarks, trade secrets, copyrights, patents, or other intellectual property
38
- owned by Zuplo, except for the limited license expressly set forth in Section 1.
39
-
40
- Any feedback, suggestions, or improvements you provide regarding the Software
41
- may be freely used by Zuplo without any obligation to you.
42
-
43
- ## 4. Open Source Software Notice
44
-
45
- The Software may include or rely on components that are subject to separate open
46
- source licenses. These components are not governed by this Agreement but instead
47
- by their respective licenses.
48
-
49
- Copies of the applicable open source licenses are provided in the distribution
50
- of the Software.
51
-
52
- ## 5. Termination
53
-
54
- This license is effective until terminated. It will automatically terminate
55
- without notice if you cease to be a customer of Zuplo or fail to comply with any
56
- term of this Agreement. Upon termination, you must immediately cease all use of
57
- the Software and destroy all copies.
58
-
59
- ## 6. No Warranty
60
-
61
- The Software is provided "**as is**," without warranty of any kind, express or
62
- implied, including but not limited to the implied warranties of merchantability
63
- or fitness for a particular purpose.
64
-
65
- ## 7. Limitation of Liability
66
-
67
- In no event shall Zuplo be liable for any indirect, incidental, special, or
68
- consequential damages, or damages for loss of profits, revenue, data, or use,
69
- incurred by you or any third party, whether in an action in contract or tort,
70
- arising from your use of the Software.
71
-
72
- ## 8. Governing Law
73
-
74
- This Agreement is governed by and construed in accordance with the laws of the
75
- State of Delaware, without regard to its conflict of law principles.
76
-
77
- ## 9. Entire Agreement
78
-
79
- This Agreement constitutes the entire agreement between the parties with respect
80
- to the Software and supersedes all prior or contemporaneous understandings.
7
+ See https://zuplo.com/legal/eula for more information.
package/README.md CHANGED
@@ -98,13 +98,28 @@ Commands:
98
98
 
99
99
  ```
100
100
 
101
+ ## Usage data
102
+
103
+ The Zuplo CLI sends usage data and error reports to Zuplo. Usage data includes
104
+ the command you run, your Zuplo user ID (or, when you aren't logged in, an
105
+ identifier derived from your machine), the account and project names you pass,
106
+ whether it runs in CI, and your Node.js version, operating system, CPU
107
+ architecture, and package manager. To turn this off, set `ZUPLO_DO_NOT_TRACK=1`.
108
+ For how Zuplo handles this data, see the
109
+ [Zuplo Privacy Policy](https://zuplo.com/legal/privacy-policy).
110
+
111
+ ## License
112
+
113
+ Copyright (c) Zuplo, Inc. All rights reserved. Use of this package is governed
114
+ by the [Zuplo Terms of Service](https://zuplo.com/legal/terms), or by a separate
115
+ agreement your company has signed with Zuplo. See `LICENSE.txt` and
116
+ [zuplo.com/legal/eula](https://zuplo.com/legal/eula).
117
+
101
118
  # Changelog
102
119
 
103
120
  ## v3
104
121
 
105
- - Version 3 requires Node.js 20. Critical bug fixes will be provided for v2
106
- (using Node.js 18) until September 30, 2024. We encourage you to upgrade to v3
107
- as soon as possible.
122
+ - Version 3 requires Node.js 20.
108
123
 
109
124
  ## v2
110
125
 
@@ -13,9 +13,10 @@ async function generalDecrypt(jwe, key, options) {
13
13
  throw new JWEInvalid("JWE Recipients missing or incorrect type");
14
14
  if (!recipients.length)
15
15
  throw new JWEInvalid("JWE Recipients has no members");
16
- let shared, sharedJwe, token;
16
+ const shared = prepareDecrypt(options);
17
+ let sharedJwe, token;
17
18
  try {
18
- shared = prepareDecrypt(options), sharedJwe = snapshotSharedJWE(jwe), token = shareJWE(sharedJwe);
19
+ sharedJwe = snapshotSharedJWE(jwe), token = shareJWE(sharedJwe);
19
20
  } catch {
20
21
  throw new JWEDecryptionFailed();
21
22
  }
@@ -5,7 +5,7 @@ function isCloudflareWorkers() {
5
5
  return typeof WebSocketPair < "u" || typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers" || typeof EdgeRuntime < "u" && EdgeRuntime === "vercel";
6
6
  }
7
7
  let USER_AGENT;
8
- (typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT = "jose/v6.2.15");
8
+ (typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT = "jose/v6.2.17");
9
9
  const customFetch = /* @__PURE__ */ Symbol();
10
10
  async function fetchJwks(url, headers, signal, fetchImpl = fetch) {
11
11
  const response = await fetchImpl(url, {
@@ -22,15 +22,9 @@ async function generalVerify(jws, key, options) {
22
22
  const signatureEntries = Array.from(signatures);
23
23
  if (!signatureEntries.every(isObject))
24
24
  throw new JWSInvalid("JWS Signatures missing or incorrect type");
25
- let shared;
26
- try {
27
- if (inputPayload === void 0)
28
- throw new Error();
29
- shared = prepareVerify(options);
30
- } catch {
25
+ if (inputPayload === void 0)
31
26
  throw new JWSSignatureVerificationFailed();
32
- }
33
- const payload = inputPayload instanceof Uint8Array ? new Uint8Array(inputPayload) : inputPayload, candidates = signatureEntries.map((signature) => snapshotSignature(signature, payload)).filter((candidate) => candidate !== void 0);
27
+ const shared = prepareVerify(options), payload = inputPayload instanceof Uint8Array ? new Uint8Array(inputPayload) : inputPayload, candidates = signatureEntries.map((signature) => snapshotSignature(signature, payload)).filter((candidate) => candidate !== void 0);
34
28
  let payloadEncodings = 0;
35
29
  for (const [, , payloadEncoding] of candidates)
36
30
  if (payloadEncodings |= payloadEncoding, payloadEncodings === 3)
@@ -1,7 +1,7 @@
1
1
  import { decrypt, generateCek } from "./content_encryption.js";
2
2
  import { decodeBase64url, encodeAsciiMember, parseJoseHeader, isDisjoint, isObject, validateCrit, validateAlgorithms, JWE_RECOGNIZED } from "./validate.js";
3
3
  import { JOSEAlgNotAllowed, JOSENotSupported, JWEInvalid } from "../util/errors.js";
4
- import { decryptKeyManagement } from "./key_management.js";
4
+ import { decryptKeyManagement, validateMaxPBES2Count } from "./key_management.js";
5
5
  import { decoder } from "./buffer_utils.js";
6
6
  import { prepareKey } from "./key.js";
7
7
  import { JWE, isJWECEKTransport, jweAlgorithm, jweEncryption } from "./jwe_algorithms.js";
@@ -69,12 +69,17 @@ function shareJWE(jwe) {
69
69
  ];
70
70
  }
71
71
  function prepareDecrypt(options) {
72
+ const keyManagementAlgorithms = options && validateAlgorithms("keyManagementAlgorithms", options.keyManagementAlgorithms), contentEncryptionAlgorithms = options && validateAlgorithms("contentEncryptionAlgorithms", options.contentEncryptionAlgorithms), { crit, maxPBES2Count, maxDecompressedLength } = options ?? {};
73
+ validateMaxPBES2Count(maxPBES2Count);
74
+ const decompressionLimit = maxDecompressedLength ?? 25e4;
75
+ if (decompressionLimit !== 0 && decompressionLimit !== 1 / 0 && (!Number.isSafeInteger(decompressionLimit) || decompressionLimit < 1))
76
+ throw new TypeError("maxDecompressedLength must be 0, a positive safe integer, or Infinity");
72
77
  return [
73
- options && validateAlgorithms("keyManagementAlgorithms", options.keyManagementAlgorithms),
74
- options && validateAlgorithms("contentEncryptionAlgorithms", options.contentEncryptionAlgorithms),
75
- options?.crit,
76
- options?.maxPBES2Count,
77
- options?.maxDecompressedLength
78
+ keyManagementAlgorithms,
79
+ contentEncryptionAlgorithms,
80
+ crit,
81
+ maxPBES2Count,
82
+ maxDecompressedLength
78
83
  ];
79
84
  }
80
85
  async function decryptJWE(jwe, shared, key, token = shareJWE(jwe)) {
@@ -145,8 +150,6 @@ async function decryptJWE(jwe, shared, key, token = shareJWE(jwe)) {
145
150
  const decompressionLimit = maxDecompressedLength ?? 25e4;
146
151
  if (decompressionLimit === 0)
147
152
  throw new JOSENotSupported('JWE "zip" (Compression Algorithm) Header Parameter is not supported.');
148
- if (decompressionLimit !== 1 / 0 && (!Number.isSafeInteger(decompressionLimit) || decompressionLimit < 1))
149
- throw new TypeError("maxDecompressedLength must be 0, a positive safe integer, or Infinity");
150
153
  plaintext = await decompress(plaintext, decompressionLimit).catch((cause) => {
151
154
  throw cause instanceof JWEInvalid ? cause : new JWEInvalid("Failed to decompress plaintext", { cause });
152
155
  });
@@ -87,6 +87,8 @@ function validateClaimsSet(protectedHeader, claimsSetBytes, options = {}) {
87
87
  throw new JWTExpired('"exp" claim timestamp check failed', claimsSet, "exp", checkFailed);
88
88
  if (maxTokenAge !== void 0) {
89
89
  const age = now - iat, max = validateInput("maxTokenAge option", typeof maxTokenAge == "number" ? maxTokenAge : secs(maxTokenAge));
90
+ if (max < 0)
91
+ throw new TypeError("Invalid maxTokenAge option input");
90
92
  if (age - tolerance > max)
91
93
  throw new JWTExpired('"iat" claim timestamp check failed (too far in the past)', claimsSet, "iat", checkFailed);
92
94
  if (age < -tolerance)
@@ -111,7 +111,6 @@ async function decryptKeyManagement(entry, enc, key, encryptedKey, joseHeader, m
111
111
  case "PBKDF2": {
112
112
  if (typeof joseHeader.p2c != "number")
113
113
  throw new JWEInvalid('JOSE Header "p2c" (PBES2 Count) missing or invalid');
114
- validateMaxPBES2Count(maxPBES2Count);
115
114
  const p2cLimit = maxPBES2Count ?? 1e4;
116
115
  if (joseHeader.p2c > p2cLimit)
117
116
  throw new JWEInvalid('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jose",
3
- "version": "6.2.15",
3
+ "version": "6.2.17",
4
4
  "description": "JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes",
5
5
  "keywords": [
6
6
  "akp",
@@ -13,9 +13,10 @@ async function generalDecrypt(jwe, key, options) {
13
13
  throw new JWEInvalid("JWE Recipients missing or incorrect type");
14
14
  if (!recipients.length)
15
15
  throw new JWEInvalid("JWE Recipients has no members");
16
- let shared, sharedJwe, token;
16
+ const shared = prepareDecrypt(options);
17
+ let sharedJwe, token;
17
18
  try {
18
- shared = prepareDecrypt(options), sharedJwe = snapshotSharedJWE(jwe), token = shareJWE(sharedJwe);
19
+ sharedJwe = snapshotSharedJWE(jwe), token = shareJWE(sharedJwe);
19
20
  } catch {
20
21
  throw new JWEDecryptionFailed();
21
22
  }
@@ -5,7 +5,7 @@ function isCloudflareWorkers() {
5
5
  return typeof WebSocketPair < "u" || typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers" || typeof EdgeRuntime < "u" && EdgeRuntime === "vercel";
6
6
  }
7
7
  let USER_AGENT;
8
- (typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT = "jose/v6.2.15");
8
+ (typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT = "jose/v6.2.17");
9
9
  const customFetch = /* @__PURE__ */ Symbol();
10
10
  async function fetchJwks(url, headers, signal, fetchImpl = fetch) {
11
11
  const response = await fetchImpl(url, {
@@ -22,15 +22,9 @@ async function generalVerify(jws, key, options) {
22
22
  const signatureEntries = Array.from(signatures);
23
23
  if (!signatureEntries.every(isObject))
24
24
  throw new JWSInvalid("JWS Signatures missing or incorrect type");
25
- let shared;
26
- try {
27
- if (inputPayload === void 0)
28
- throw new Error();
29
- shared = prepareVerify(options);
30
- } catch {
25
+ if (inputPayload === void 0)
31
26
  throw new JWSSignatureVerificationFailed();
32
- }
33
- const payload = inputPayload instanceof Uint8Array ? new Uint8Array(inputPayload) : inputPayload, candidates = signatureEntries.map((signature) => snapshotSignature(signature, payload)).filter((candidate) => candidate !== void 0);
27
+ const shared = prepareVerify(options), payload = inputPayload instanceof Uint8Array ? new Uint8Array(inputPayload) : inputPayload, candidates = signatureEntries.map((signature) => snapshotSignature(signature, payload)).filter((candidate) => candidate !== void 0);
34
28
  let payloadEncodings = 0;
35
29
  for (const [, , payloadEncoding] of candidates)
36
30
  if (payloadEncodings |= payloadEncoding, payloadEncodings === 3)
@@ -1,7 +1,7 @@
1
1
  import { decrypt, generateCek } from "./content_encryption.js";
2
2
  import { decodeBase64url, encodeAsciiMember, parseJoseHeader, isDisjoint, isObject, validateCrit, validateAlgorithms, JWE_RECOGNIZED } from "./validate.js";
3
3
  import { JOSEAlgNotAllowed, JOSENotSupported, JWEInvalid } from "../util/errors.js";
4
- import { decryptKeyManagement } from "./key_management.js";
4
+ import { decryptKeyManagement, validateMaxPBES2Count } from "./key_management.js";
5
5
  import { decoder } from "./buffer_utils.js";
6
6
  import { prepareKey } from "./key.js";
7
7
  import { JWE, isJWECEKTransport, jweAlgorithm, jweEncryption } from "./jwe_algorithms.js";
@@ -69,12 +69,17 @@ function shareJWE(jwe) {
69
69
  ];
70
70
  }
71
71
  function prepareDecrypt(options) {
72
+ const keyManagementAlgorithms = options && validateAlgorithms("keyManagementAlgorithms", options.keyManagementAlgorithms), contentEncryptionAlgorithms = options && validateAlgorithms("contentEncryptionAlgorithms", options.contentEncryptionAlgorithms), { crit, maxPBES2Count, maxDecompressedLength } = options ?? {};
73
+ validateMaxPBES2Count(maxPBES2Count);
74
+ const decompressionLimit = maxDecompressedLength ?? 25e4;
75
+ if (decompressionLimit !== 0 && decompressionLimit !== 1 / 0 && (!Number.isSafeInteger(decompressionLimit) || decompressionLimit < 1))
76
+ throw new TypeError("maxDecompressedLength must be 0, a positive safe integer, or Infinity");
72
77
  return [
73
- options && validateAlgorithms("keyManagementAlgorithms", options.keyManagementAlgorithms),
74
- options && validateAlgorithms("contentEncryptionAlgorithms", options.contentEncryptionAlgorithms),
75
- options?.crit,
76
- options?.maxPBES2Count,
77
- options?.maxDecompressedLength
78
+ keyManagementAlgorithms,
79
+ contentEncryptionAlgorithms,
80
+ crit,
81
+ maxPBES2Count,
82
+ maxDecompressedLength
78
83
  ];
79
84
  }
80
85
  async function decryptJWE(jwe, shared, key, token = shareJWE(jwe)) {
@@ -145,8 +150,6 @@ async function decryptJWE(jwe, shared, key, token = shareJWE(jwe)) {
145
150
  const decompressionLimit = maxDecompressedLength ?? 25e4;
146
151
  if (decompressionLimit === 0)
147
152
  throw new JOSENotSupported('JWE "zip" (Compression Algorithm) Header Parameter is not supported.');
148
- if (decompressionLimit !== 1 / 0 && (!Number.isSafeInteger(decompressionLimit) || decompressionLimit < 1))
149
- throw new TypeError("maxDecompressedLength must be 0, a positive safe integer, or Infinity");
150
153
  plaintext = await decompress(plaintext, decompressionLimit).catch((cause) => {
151
154
  throw cause instanceof JWEInvalid ? cause : new JWEInvalid("Failed to decompress plaintext", { cause });
152
155
  });
@@ -87,6 +87,8 @@ function validateClaimsSet(protectedHeader, claimsSetBytes, options = {}) {
87
87
  throw new JWTExpired('"exp" claim timestamp check failed', claimsSet, "exp", checkFailed);
88
88
  if (maxTokenAge !== void 0) {
89
89
  const age = now - iat, max = validateInput("maxTokenAge option", typeof maxTokenAge == "number" ? maxTokenAge : secs(maxTokenAge));
90
+ if (max < 0)
91
+ throw new TypeError("Invalid maxTokenAge option input");
90
92
  if (age - tolerance > max)
91
93
  throw new JWTExpired('"iat" claim timestamp check failed (too far in the past)', claimsSet, "iat", checkFailed);
92
94
  if (age < -tolerance)
@@ -111,7 +111,6 @@ async function decryptKeyManagement(entry, enc, key, encryptedKey, joseHeader, m
111
111
  case "PBKDF2": {
112
112
  if (typeof joseHeader.p2c != "number")
113
113
  throw new JWEInvalid('JOSE Header "p2c" (PBES2 Count) missing or invalid');
114
- validateMaxPBES2Count(maxPBES2Count);
115
114
  const p2cLimit = maxPBES2Count ?? 1e4;
116
115
  if (joseHeader.p2c > p2cLimit)
117
116
  throw new JWEInvalid('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jose",
3
- "version": "6.2.15",
3
+ "version": "6.2.17",
4
4
  "description": "JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes",
5
5
  "keywords": [
6
6
  "akp",
@@ -2,6 +2,8 @@ export interface TextSanitizationOptions {
2
2
  maxStringLength: number;
3
3
  truncationSuffix: string;
4
4
  }
5
+ /** Whether a key names a credential, so its value is captured as `[redacted]` whatever it holds. */
6
+ export declare function shouldRedactKey(key: string): boolean;
5
7
  /**
6
8
  * Sanitizes agent-narrated free text (`$mcp_intent`, the `send_feedback`
7
9
  * fields): structured PII on top of the passes every captured string gets.
@@ -29,7 +31,10 @@ export declare function sanitizeCapturedValue(value: unknown, options: TextSanit
29
31
  /**
30
32
  * {@link sanitizeCapturedValue} with the intent-grade string pass
31
33
  * ({@link sanitizeFreeText}) on every string leaf, so nested agent-narrated
32
- * values get structured-PII redaction in the load-bearing order too.
34
+ * values get structured-PII redaction in the load-bearing order too. Keys and
35
+ * numbers are read as free text as well, since a value sent as JSON text carries
36
+ * them: a number that holds an identifier becomes `[redacted]`, so the text
37
+ * stays valid JSON.
33
38
  */
34
39
  export declare function sanitizeFreeTextValue(value: unknown, options: TextSanitizationOptions): unknown;
35
40
  //# sourceMappingURL=privacy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"privacy.d.ts","sourceRoot":"","sources":["../src/privacy.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,EAAE,MAAM,CAAA;CACzB;AA2iBD;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,uBAAuB,GAAG,MAAM,CAKxF;AA6DD;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAU/C;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAE/F;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAE/F"}
1
+ {"version":3,"file":"privacy.d.ts","sourceRoot":"","sources":["../src/privacy.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAsHD,oGAAoG;AACpG,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEpD;AAgbD;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,uBAAuB,GAAG,MAAM,CAKxF;AA6HD;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAU/C;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAK/F;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAK/F"}