@1consent/cli 0.0.0-stage → 0.1.0-beta.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/LICENSE +21 -0
- package/README.md +42 -2
- package/dist/cli.js +23592 -0
- package/dist/design-kit/index.d.ts +12 -0
- package/dist/design-kit/index.js +19843 -0
- package/dist/design-kit/runtime.js +1 -0
- package/dist/design-kit/ui/assets/index.css +2 -0
- package/dist/design-kit/ui/assets/index.js +70 -0
- package/dist/design-kit/ui/index.html +19 -0
- package/package.json +59 -5
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 1Consent
|
|
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/README.md
CHANGED
|
@@ -1,3 +1,43 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @1consent/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The scoped 1Consent command-line interface. It synchronizes customer designs
|
|
4
|
+
and themes, reports workspace status, and generates typed React consent names
|
|
5
|
+
and framework-associated fast-path versions.
|
|
6
|
+
|
|
7
|
+
## Distribution status
|
|
8
|
+
|
|
9
|
+
The first supported release line is `0.1.0-beta.*` on npm's `beta` dist-tag.
|
|
10
|
+
The protected public-repository workflow stages each release with provenance
|
|
11
|
+
for a maintainer's npm 2FA approval. The first release uses a short-lived
|
|
12
|
+
stage-only token; later releases use trusted publishing.
|
|
13
|
+
The unscoped npm package `1c` belongs to an unrelated project;
|
|
14
|
+
never direct customers to `npx 1c`.
|
|
15
|
+
|
|
16
|
+
After registry verification, the supported beta invocation is:
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
npx @1consent/cli@beta typegen --app YOUR_APP_ID
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The installed executable remains named `1c`. The published artifact contains
|
|
23
|
+
self-contained executable and Design Kit bundles and has no runtime dependency
|
|
24
|
+
on private 1Consent workspace packages. Projects created by `1c init` load the
|
|
25
|
+
authoring plugin from `@1consent/cli/design-kit`; they do not install the
|
|
26
|
+
monorepo's internal Design Kit or contracts packages. The plugin supports Vite
|
|
27
|
+
8, declared as an optional peer so command-only CLI consumers do not install a
|
|
28
|
+
frontend build tool they never use.
|
|
29
|
+
|
|
30
|
+
Run `1c --help` for the source-backed command reference.
|
|
31
|
+
|
|
32
|
+
## Before publication
|
|
33
|
+
|
|
34
|
+
The CLI requires Node.js 22 or newer. From this repository's root, pack the
|
|
35
|
+
reviewed artifact into an existing directory:
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
npm pack ./packages/libs/cli --pack-destination /path/to/tarballs
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Install that tarball in a test project and run `./node_modules/.bin/1c --help`
|
|
42
|
+
there. The public registry invocation remains the scoped
|
|
43
|
+
`npx @1consent/cli@beta` command above.
|