@monoai/nscloud-nx-cache-action 0.0.0-stage → 0.1.2
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/LICENSE +21 -0
- package/NOTICE +21 -0
- package/README.md +119 -2
- package/THIRD_PARTY_LICENSES.txt +467 -0
- package/dist/nscloud-nx-cache-action.mjs +12 -0
- package/dist/token.mjs +8 -0
- package/docs/benchmarking.md +151 -0
- package/docs/configuration.md +60 -0
- package/docs/operations.md +168 -0
- package/docs/vercel.md +187 -0
- package/package.json +76 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mono AI Pty Ltd
|
|
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.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
nscloud-nx-cache-action is licensed under MIT. The standalone executables also
|
|
2
|
+
contain third-party code under its original licenses:
|
|
3
|
+
|
|
4
|
+
@namespacelabs/sdk 1.0.0 — Apache-2.0
|
|
5
|
+
https://github.com/namespacelabs/typescript-sdk
|
|
6
|
+
|
|
7
|
+
@connectrpc/connect 2.2.0 and @connectrpc/connect-node 2.2.0 — Apache-2.0
|
|
8
|
+
Copyright 2021-2026 The Connect Authors
|
|
9
|
+
https://github.com/connectrpc/connect-es/tree/v2.2.0
|
|
10
|
+
|
|
11
|
+
@bufbuild/protobuf 2.14.1 — Apache-2.0 and BSD-3-Clause
|
|
12
|
+
Copyright 2021-2026 Buf Technologies, Inc.
|
|
13
|
+
The varint implementation includes code copyright 2008 Google Inc.
|
|
14
|
+
https://github.com/bufbuild/protobuf-es/tree/v2.14.1
|
|
15
|
+
|
|
16
|
+
The complete third-party license texts are in THIRD_PARTY_LICENSES.txt.
|
|
17
|
+
Redistribute LICENSE, NOTICE and THIRD_PARTY_LICENSES.txt with the executables.
|
|
18
|
+
|
|
19
|
+
Development tools (not bundled into the standalone executables):
|
|
20
|
+
Oxlint 1.86.0 and Oxfmt 0.71.0 — MIT
|
|
21
|
+
https://github.com/oxc-project/oxc
|
package/README.md
CHANGED
|
@@ -1,3 +1,120 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Nx Cache Adaptor for Namespaces
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
While Namespace has Turborepo support, we use Nx within our monorepo, for its more
|
|
4
|
+
powerful management features beyond caching builds. Since Namespace didn't have
|
|
5
|
+
support for Nx, we've decided to add it ourselves! We hope other Namespace
|
|
6
|
+
customers who are also users of Nx, benefit from this work.
|
|
7
|
+
|
|
8
|
+
An Nx HTTP cache adapter backed by local archives and Namespace Artifact Storage.
|
|
9
|
+
On Namespace runners, the local archive directory can use an NVMe Cache Volume;
|
|
10
|
+
Artifact Storage provides shared entries when the current volume snapshot misses.
|
|
11
|
+
Nx owns task selection, hashing, archive creation and output restoration.
|
|
12
|
+
|
|
13
|
+
## Requirements
|
|
14
|
+
|
|
15
|
+
- Node.js 24.x. Development and benchmarks pin Node 24.21.0.
|
|
16
|
+
- Nx with the self-hosted HTTP cache protocol. Integration is tested with Nx 23.3.0;
|
|
17
|
+
compatibility with other versions is unverified.
|
|
18
|
+
- Cacheable Nx targets with declared inputs and outputs.
|
|
19
|
+
- A Namespace workspace and Artifact permissions for remote caching. Local-only
|
|
20
|
+
operation does not need Namespace credentials.
|
|
21
|
+
|
|
22
|
+
The adapter is distributed as a GitHub Action, an npm CLI package and standalone
|
|
23
|
+
executables. It does not install Nx or configure your task graph. The token CLI
|
|
24
|
+
can supply hosted builds with short-lived Artifact credentials. These command-line
|
|
25
|
+
tools retain Nx's task hashes, archive format and output restoration.
|
|
26
|
+
|
|
27
|
+
## GitHub Actions
|
|
28
|
+
|
|
29
|
+
Use a Namespace runner with an existing profile and permissions to publish cache
|
|
30
|
+
entries. For security, we recommend you pin the adapter to a reviewed full commit
|
|
31
|
+
SHA. This example runs on main; configure provider permissions and volume commit
|
|
32
|
+
policy for the same trusted branch.
|
|
33
|
+
|
|
34
|
+
The example uses pnpm; set your repository's `packageManager` field to a pinned
|
|
35
|
+
pnpm version and commit its lockfile. Install Node before invoking the action.
|
|
36
|
+
If the action repository is private, its **Settings → Actions → General → Access**
|
|
37
|
+
must allow repositories in the organization to use it. The consuming repository
|
|
38
|
+
must also be connected to Namespace runners. Public actions need no private
|
|
39
|
+
repository sharing setting.
|
|
40
|
+
|
|
41
|
+
```yaml
|
|
42
|
+
name: Build
|
|
43
|
+
on:
|
|
44
|
+
push:
|
|
45
|
+
branches: [main]
|
|
46
|
+
permissions:
|
|
47
|
+
contents: read
|
|
48
|
+
jobs:
|
|
49
|
+
build:
|
|
50
|
+
runs-on: namespace-profile-linux-default
|
|
51
|
+
steps:
|
|
52
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
53
|
+
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
54
|
+
with:
|
|
55
|
+
node-version: 24.21.0
|
|
56
|
+
package-manager-cache: false
|
|
57
|
+
- run: corepack enable
|
|
58
|
+
- uses: namespacelabs/nscloud-cache-action@1124a6f3ce44e5cf84cc22111530961f4d2a15f9 # v1.7.0
|
|
59
|
+
with:
|
|
60
|
+
cache: pnpm
|
|
61
|
+
path: ~/.cache/nx-namespace
|
|
62
|
+
- run: pnpm install --frozen-lockfile
|
|
63
|
+
- uses: monoai-labs/nscloud-nx-cache-action@cfcf779b9df2026fedf96056989dd69c7f59316f # v0.1.0
|
|
64
|
+
with:
|
|
65
|
+
archive-directory: ~/.cache/nx-namespace
|
|
66
|
+
artifact-prefix: nx/v1/${{ github.repository }}
|
|
67
|
+
access: read-write
|
|
68
|
+
- run: nscloud-nx-cache-action pnpm exec nx run-many -t build
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Use `access: read-only` for consumers that must not write. The action configures
|
|
72
|
+
launchers and environment variables; the listener runs only during the wrapped
|
|
73
|
+
command. Provider credentials and volume policy must enforce the intended access.
|
|
74
|
+
|
|
75
|
+
## npm CLI
|
|
76
|
+
|
|
77
|
+
The first npm publication requires the [publisher setup](docs/operations.md#npm-publishing).
|
|
78
|
+
Once a version is published, install it in your workspace:
|
|
79
|
+
|
|
80
|
+
```sh
|
|
81
|
+
pnpm add --save-dev @monoai/nscloud-nx-cache-action@0.1.2
|
|
82
|
+
NX_ARCHIVE_DIRECTORY="$HOME/.cache/nx-namespace" \
|
|
83
|
+
pnpm exec nscloud-nx-cache-action pnpm exec nx run-many -t build
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
The package provides `nscloud-nx-cache-action` and `nx-namespace-token`. It is CLI-only,
|
|
87
|
+
ships minified Node 24 ESM bundles and license notices, and has no runtime package
|
|
88
|
+
dependencies or install hooks. Configuration uses the same [environment variables](docs/configuration.md)
|
|
89
|
+
as the standalone executables; omit `NX_ARTIFACT_PREFIX` for local-only caching.
|
|
90
|
+
|
|
91
|
+
## Standalone and local use
|
|
92
|
+
|
|
93
|
+
Download both executables, `SHA256SUMS`, `LICENSE`, `NOTICE` and
|
|
94
|
+
`THIRD_PARTY_LICENSES.txt` from a pinned [release](https://github.com/monoai-labs/nscloud-nx-cache-action/releases).
|
|
95
|
+
With all listed files together, verify and run:
|
|
96
|
+
|
|
97
|
+
```sh
|
|
98
|
+
sha256sum --check SHA256SUMS
|
|
99
|
+
NX_ARCHIVE_DIRECTORY="$HOME/.cache/nx-namespace" \
|
|
100
|
+
node ./nscloud-nx-cache-action.mjs pnpm exec nx run-many -t build
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
On macOS, use `shasum -a 256 --check SHA256SUMS`. Omitting `NX_ARTIFACT_PREFIX`
|
|
104
|
+
selects local-only caching. See [operations](docs/operations.md) for remote
|
|
105
|
+
credentials, hosted builds and troubleshooting.
|
|
106
|
+
|
|
107
|
+
For source deployments that build on Vercel, follow the [Vercel guide](docs/vercel.md).
|
|
108
|
+
It covers shipping the release files, wiring the hosted Nx build, and forwarding
|
|
109
|
+
a short-lived build credential from GitHub.
|
|
110
|
+
|
|
111
|
+
## Documentation
|
|
112
|
+
|
|
113
|
+
- [Configuration](docs/configuration.md): action inputs, environment variables and defaults.
|
|
114
|
+
- [Operations](docs/operations.md): storage, credentials, failures and releases.
|
|
115
|
+
- [Vercel](docs/vercel.md): source deployments, hosted builds and build-only credentials.
|
|
116
|
+
- [Benchmarking](docs/benchmarking.md): restoration profiles, regression paths and tracing.
|
|
117
|
+
- [Contributing](CONTRIBUTING.md): setup, checks and integration tests.
|
|
118
|
+
|
|
119
|
+
First-party code is [MIT licensed](LICENSE). Bundled dependencies retain their
|
|
120
|
+
original licenses; see [NOTICE](NOTICE) and [third-party licenses](THIRD_PARTY_LICENSES.txt).
|
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
Apache-2.0: @namespacelabs/sdk, @connectrpc/connect and @connectrpc/connect-node
|
|
2
|
+
|
|
3
|
+
Apache License
|
|
4
|
+
Version 2.0, January 2004
|
|
5
|
+
http://www.apache.org/licenses/
|
|
6
|
+
|
|
7
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
8
|
+
|
|
9
|
+
1. Definitions.
|
|
10
|
+
|
|
11
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
12
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
13
|
+
|
|
14
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
15
|
+
the copyright owner that is granting the License.
|
|
16
|
+
|
|
17
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
18
|
+
other entities that control, are controlled by, or are under common
|
|
19
|
+
control with that entity. For the purposes of this definition,
|
|
20
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
21
|
+
direction or management of such entity, whether by contract or
|
|
22
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
23
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
24
|
+
|
|
25
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
26
|
+
exercising permissions granted by this License.
|
|
27
|
+
|
|
28
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
29
|
+
including but not limited to software source code, documentation
|
|
30
|
+
source, and configuration files.
|
|
31
|
+
|
|
32
|
+
"Object" form shall mean any form resulting from mechanical
|
|
33
|
+
transformation or translation of a Source form, including but
|
|
34
|
+
not limited to compiled object code, generated documentation,
|
|
35
|
+
and conversions to other media types.
|
|
36
|
+
|
|
37
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
38
|
+
Object form, made available under the License, as indicated by a
|
|
39
|
+
copyright notice that is included in or attached to the work
|
|
40
|
+
(an example is provided in the Appendix below).
|
|
41
|
+
|
|
42
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
43
|
+
form, that is based on (or derived from) the Work and for which the
|
|
44
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
45
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
46
|
+
of this License, Derivative Works shall not include works that remain
|
|
47
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
48
|
+
the Work and Derivative Works thereof.
|
|
49
|
+
|
|
50
|
+
"Contribution" shall mean any work of authorship, including
|
|
51
|
+
the original version of the Work and any modifications or additions
|
|
52
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
53
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
54
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
55
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
56
|
+
means any form of electronic, verbal, or written communication sent
|
|
57
|
+
to the Licensor or its representatives, including but not limited to
|
|
58
|
+
communication on electronic mailing lists, source code control systems,
|
|
59
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
60
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
61
|
+
excluding communication that is conspicuously marked or otherwise
|
|
62
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
63
|
+
|
|
64
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
65
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
66
|
+
subsequently incorporated within the Work.
|
|
67
|
+
|
|
68
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
69
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
70
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
71
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
72
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
73
|
+
Work and such Derivative Works in Source or Object form.
|
|
74
|
+
|
|
75
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
76
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
77
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
78
|
+
(except as stated in this section) patent license to make, have made,
|
|
79
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
80
|
+
where such license applies only to those patent claims licensable
|
|
81
|
+
by such Contributor that are necessarily infringed by their
|
|
82
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
83
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
84
|
+
institute patent litigation against any entity (including a
|
|
85
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
86
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
87
|
+
or contributory patent infringement, then any patent licenses
|
|
88
|
+
granted to You under this License for that Work shall terminate
|
|
89
|
+
as of the date such litigation is filed.
|
|
90
|
+
|
|
91
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
92
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
93
|
+
modifications, and in Source or Object form, provided that You
|
|
94
|
+
meet the following conditions:
|
|
95
|
+
|
|
96
|
+
(a) You must give any other recipients of the Work or
|
|
97
|
+
Derivative Works a copy of this License; and
|
|
98
|
+
|
|
99
|
+
(b) You must cause any modified files to carry prominent notices
|
|
100
|
+
stating that You changed the files; and
|
|
101
|
+
|
|
102
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
103
|
+
that You distribute, all copyright, patent, trademark, and
|
|
104
|
+
attribution notices from the Source form of the Work,
|
|
105
|
+
excluding those notices that do not pertain to any part of
|
|
106
|
+
the Derivative Works; and
|
|
107
|
+
|
|
108
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
109
|
+
distribution, then any Derivative Works that You distribute must
|
|
110
|
+
include a readable copy of the attribution notices contained
|
|
111
|
+
within such NOTICE file, excluding those notices that do not
|
|
112
|
+
pertain to any part of the Derivative Works, in at least one
|
|
113
|
+
of the following places: within a NOTICE text file distributed
|
|
114
|
+
as part of the Derivative Works; within the Source form or
|
|
115
|
+
documentation, if provided along with the Derivative Works; or,
|
|
116
|
+
within a display generated by the Derivative Works, if and
|
|
117
|
+
wherever such third-party notices normally appear. The contents
|
|
118
|
+
of the NOTICE file are for informational purposes only and
|
|
119
|
+
do not modify the License. You may add Your own attribution
|
|
120
|
+
notices within Derivative Works that You distribute, alongside
|
|
121
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
122
|
+
that such additional attribution notices cannot be construed
|
|
123
|
+
as modifying the License.
|
|
124
|
+
|
|
125
|
+
You may add Your own copyright statement to Your modifications and
|
|
126
|
+
may provide additional or different license terms and conditions
|
|
127
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
128
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
129
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
130
|
+
the conditions stated in this License.
|
|
131
|
+
|
|
132
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
133
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
134
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
135
|
+
this License, without any additional terms or conditions.
|
|
136
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
137
|
+
the terms of any separate license agreement you may have executed
|
|
138
|
+
with Licensor regarding such Contributions.
|
|
139
|
+
|
|
140
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
141
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
142
|
+
except as required for reasonable and customary use in describing the
|
|
143
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
144
|
+
|
|
145
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
146
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
147
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
148
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
149
|
+
implied, including, without limitation, any warranties or conditions
|
|
150
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
151
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
152
|
+
appropriateness of using or redistributing the Work and assume any
|
|
153
|
+
risks associated with Your exercise of permissions under this License.
|
|
154
|
+
|
|
155
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
156
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
157
|
+
unless required by applicable law (such as deliberate and grossly
|
|
158
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
159
|
+
liable to You for damages, including any direct, indirect, special,
|
|
160
|
+
incidental, or consequential damages of any character arising as a
|
|
161
|
+
result of this License or out of the use or inability to use the
|
|
162
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
163
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
164
|
+
other commercial damages or losses), even if such Contributor
|
|
165
|
+
has been advised of the possibility of such damages.
|
|
166
|
+
|
|
167
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
168
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
169
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
170
|
+
or other liability obligations and/or rights consistent with this
|
|
171
|
+
License. However, in accepting such obligations, You may act only
|
|
172
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
173
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
174
|
+
defend, and hold each Contributor harmless for any liability
|
|
175
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
176
|
+
of your accepting any such warranty or additional liability.
|
|
177
|
+
|
|
178
|
+
END OF TERMS AND CONDITIONS
|
|
179
|
+
|
|
180
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
181
|
+
|
|
182
|
+
To apply the Apache License to your work, attach the following
|
|
183
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
184
|
+
replaced with your own identifying information. (Don't include
|
|
185
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
186
|
+
comment syntax for the file format. We also recommend that a
|
|
187
|
+
file or class name and description of purpose be included on the
|
|
188
|
+
same "printed page" as the copyright notice for easier
|
|
189
|
+
identification within third-party archives.
|
|
190
|
+
|
|
191
|
+
Copyright 2021-2026 The Connect Authors
|
|
192
|
+
|
|
193
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
194
|
+
you may not use this file except in compliance with the License.
|
|
195
|
+
You may obtain a copy of the License at
|
|
196
|
+
|
|
197
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
198
|
+
|
|
199
|
+
Unless required by applicable law or agreed to in writing, software
|
|
200
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
201
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
202
|
+
See the License for the specific language governing permissions and
|
|
203
|
+
limitations under the License.
|
|
204
|
+
|
|
205
|
+
Apache-2.0: @bufbuild/protobuf
|
|
206
|
+
|
|
207
|
+
Apache License
|
|
208
|
+
Version 2.0, January 2004
|
|
209
|
+
http://www.apache.org/licenses/
|
|
210
|
+
|
|
211
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
212
|
+
|
|
213
|
+
1. Definitions.
|
|
214
|
+
|
|
215
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
216
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
217
|
+
|
|
218
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
219
|
+
the copyright owner that is granting the License.
|
|
220
|
+
|
|
221
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
222
|
+
other entities that control, are controlled by, or are under common
|
|
223
|
+
control with that entity. For the purposes of this definition,
|
|
224
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
225
|
+
direction or management of such entity, whether by contract or
|
|
226
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
227
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
228
|
+
|
|
229
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
230
|
+
exercising permissions granted by this License.
|
|
231
|
+
|
|
232
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
233
|
+
including but not limited to software source code, documentation
|
|
234
|
+
source, and configuration files.
|
|
235
|
+
|
|
236
|
+
"Object" form shall mean any form resulting from mechanical
|
|
237
|
+
transformation or translation of a Source form, including but
|
|
238
|
+
not limited to compiled object code, generated documentation,
|
|
239
|
+
and conversions to other media types.
|
|
240
|
+
|
|
241
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
242
|
+
Object form, made available under the License, as indicated by a
|
|
243
|
+
copyright notice that is included in or attached to the work
|
|
244
|
+
(an example is provided in the Appendix below).
|
|
245
|
+
|
|
246
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
247
|
+
form, that is based on (or derived from) the Work and for which the
|
|
248
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
249
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
250
|
+
of this License, Derivative Works shall not include works that remain
|
|
251
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
252
|
+
the Work and Derivative Works thereof.
|
|
253
|
+
|
|
254
|
+
"Contribution" shall mean any work of authorship, including
|
|
255
|
+
the original version of the Work and any modifications or additions
|
|
256
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
257
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
258
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
259
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
260
|
+
means any form of electronic, verbal, or written communication sent
|
|
261
|
+
to the Licensor or its representatives, including but not limited to
|
|
262
|
+
communication on electronic mailing lists, source code control systems,
|
|
263
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
264
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
265
|
+
excluding communication that is conspicuously marked or otherwise
|
|
266
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
267
|
+
|
|
268
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
269
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
270
|
+
subsequently incorporated within the Work.
|
|
271
|
+
|
|
272
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
273
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
274
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
275
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
276
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
277
|
+
Work and such Derivative Works in Source or Object form.
|
|
278
|
+
|
|
279
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
280
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
281
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
282
|
+
(except as stated in this section) patent license to make, have made,
|
|
283
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
284
|
+
where such license applies only to those patent claims licensable
|
|
285
|
+
by such Contributor that are necessarily infringed by their
|
|
286
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
287
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
288
|
+
institute patent litigation against any entity (including a
|
|
289
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
290
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
291
|
+
or contributory patent infringement, then any patent licenses
|
|
292
|
+
granted to You under this License for that Work shall terminate
|
|
293
|
+
as of the date such litigation is filed.
|
|
294
|
+
|
|
295
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
296
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
297
|
+
modifications, and in Source or Object form, provided that You
|
|
298
|
+
meet the following conditions:
|
|
299
|
+
|
|
300
|
+
(a) You must give any other recipients of the Work or
|
|
301
|
+
Derivative Works a copy of this License; and
|
|
302
|
+
|
|
303
|
+
(b) You must cause any modified files to carry prominent notices
|
|
304
|
+
stating that You changed the files; and
|
|
305
|
+
|
|
306
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
307
|
+
that You distribute, all copyright, patent, trademark, and
|
|
308
|
+
attribution notices from the Source form of the Work,
|
|
309
|
+
excluding those notices that do not pertain to any part of
|
|
310
|
+
the Derivative Works; and
|
|
311
|
+
|
|
312
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
313
|
+
distribution, then any Derivative Works that You distribute must
|
|
314
|
+
include a readable copy of the attribution notices contained
|
|
315
|
+
within such NOTICE file, excluding those notices that do not
|
|
316
|
+
pertain to any part of the Derivative Works, in at least one
|
|
317
|
+
of the following places: within a NOTICE text file distributed
|
|
318
|
+
as part of the Derivative Works; within the Source form or
|
|
319
|
+
documentation, if provided along with the Derivative Works; or,
|
|
320
|
+
within a display generated by the Derivative Works, if and
|
|
321
|
+
wherever such third-party notices normally appear. The contents
|
|
322
|
+
of the NOTICE file are for informational purposes only and
|
|
323
|
+
do not modify the License. You may add Your own attribution
|
|
324
|
+
notices within Derivative Works that You distribute, alongside
|
|
325
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
326
|
+
that such additional attribution notices cannot be construed
|
|
327
|
+
as modifying the License.
|
|
328
|
+
|
|
329
|
+
You may add Your own copyright statement to Your modifications and
|
|
330
|
+
may provide additional or different license terms and conditions
|
|
331
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
332
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
333
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
334
|
+
the conditions stated in this License.
|
|
335
|
+
|
|
336
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
337
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
338
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
339
|
+
this License, without any additional terms or conditions.
|
|
340
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
341
|
+
the terms of any separate license agreement you may have executed
|
|
342
|
+
with Licensor regarding such Contributions.
|
|
343
|
+
|
|
344
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
345
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
346
|
+
except as required for reasonable and customary use in describing the
|
|
347
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
348
|
+
|
|
349
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
350
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
351
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
352
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
353
|
+
implied, including, without limitation, any warranties or conditions
|
|
354
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
355
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
356
|
+
appropriateness of using or redistributing the Work and assume any
|
|
357
|
+
risks associated with Your exercise of permissions under this License.
|
|
358
|
+
|
|
359
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
360
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
361
|
+
unless required by applicable law (such as deliberate and grossly
|
|
362
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
363
|
+
liable to You for damages, including any direct, indirect, special,
|
|
364
|
+
incidental, or consequential damages of any character arising as a
|
|
365
|
+
result of this License or out of the use or inability to use the
|
|
366
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
367
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
368
|
+
other commercial damages or losses), even if such Contributor
|
|
369
|
+
has been advised of the possibility of such damages.
|
|
370
|
+
|
|
371
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
372
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
373
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
374
|
+
or other liability obligations and/or rights consistent with this
|
|
375
|
+
License. However, in accepting such obligations, You may act only
|
|
376
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
377
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
378
|
+
defend, and hold each Contributor harmless for any liability
|
|
379
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
380
|
+
of your accepting any such warranty or additional liability.
|
|
381
|
+
|
|
382
|
+
END OF TERMS AND CONDITIONS
|
|
383
|
+
|
|
384
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
385
|
+
|
|
386
|
+
To apply the Apache License to your work, attach the following
|
|
387
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
388
|
+
replaced with your own identifying information. (Don't include
|
|
389
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
390
|
+
comment syntax for the file format. We also recommend that a
|
|
391
|
+
file or class name and description of purpose be included on the
|
|
392
|
+
same "printed page" as the copyright notice for easier
|
|
393
|
+
identification within third-party archives.
|
|
394
|
+
|
|
395
|
+
Copyright 2021-2026 Buf Technologies, Inc.
|
|
396
|
+
|
|
397
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
398
|
+
you may not use this file except in compliance with the License.
|
|
399
|
+
You may obtain a copy of the License at
|
|
400
|
+
|
|
401
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
402
|
+
|
|
403
|
+
Unless required by applicable law or agreed to in writing, software
|
|
404
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
405
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
406
|
+
See the License for the specific language governing permissions and
|
|
407
|
+
limitations under the License.
|
|
408
|
+
|
|
409
|
+
BSD-3-Clause: protobuf varint implementation
|
|
410
|
+
|
|
411
|
+
Copyright 2008 Google Inc. All rights reserved.
|
|
412
|
+
|
|
413
|
+
Redistribution and use in source and binary forms, with or without
|
|
414
|
+
modification, are permitted provided that the following conditions are
|
|
415
|
+
met:
|
|
416
|
+
|
|
417
|
+
* Redistributions of source code must retain the above copyright
|
|
418
|
+
notice, this list of conditions and the following disclaimer.
|
|
419
|
+
* Redistributions in binary form must reproduce the above
|
|
420
|
+
copyright notice, this list of conditions and the following disclaimer
|
|
421
|
+
in the documentation and/or other materials provided with the
|
|
422
|
+
distribution.
|
|
423
|
+
* Neither the name of Google Inc. nor the names of its
|
|
424
|
+
contributors may be used to endorse or promote products derived from
|
|
425
|
+
this software without specific prior written permission.
|
|
426
|
+
|
|
427
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
428
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
429
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
430
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
431
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
432
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
433
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
434
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
435
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
436
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
437
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
438
|
+
|
|
439
|
+
Code generated by the Protocol Buffer compiler is owned by the owner
|
|
440
|
+
of the input file used when generating it. This code is not
|
|
441
|
+
standalone and requires a support library to be linked with it. This
|
|
442
|
+
support library is itself covered by the above license.
|
|
443
|
+
|
|
444
|
+
Oxlint 1.86.0 and Oxfmt 0.71.0 (development tools)
|
|
445
|
+
|
|
446
|
+
MIT License
|
|
447
|
+
|
|
448
|
+
Copyright (c) 2024-present VoidZero Inc. & Contributors
|
|
449
|
+
Copyright (c) 2023 Boshen
|
|
450
|
+
|
|
451
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
452
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
453
|
+
in the Software without restriction, including without limitation the rights
|
|
454
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
455
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
456
|
+
furnished to do so, subject to the following conditions:
|
|
457
|
+
|
|
458
|
+
The above copyright notice and this permission notice shall be included in all
|
|
459
|
+
copies or substantial portions of the Software.
|
|
460
|
+
|
|
461
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
462
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
463
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
464
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
465
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
466
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
467
|
+
SOFTWARE.
|