taggor 0.3.0 → 0.5.0
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/README.md +22 -13
- package/bin/taggor.js +1 -1
- package/dist/taggor.mjs +930 -985
- package/package.json +5 -5
- package/schemas/attach.json +1 -23
- package/schemas/init.json +4 -0
- package/schemas/preview.json +114 -0
- package/schemas/publish.json +24 -70
- package/schemas/pull.json +152 -59
- package/schemas/sites-create.json +1 -22
package/README.md
CHANGED
|
@@ -12,38 +12,47 @@ Requires Node.js 20 or newer. The package is one bundled file with no runtime de
|
|
|
12
12
|
```bash
|
|
13
13
|
npx taggor login # browser sign-in (device authorization); the CLI never asks for a password
|
|
14
14
|
npx taggor whoami # your user, workspace and role
|
|
15
|
-
npx taggor init
|
|
16
|
-
npm install
|
|
15
|
+
npx taggor init # write a component project in the folder Taggor keeps for your workspace
|
|
16
|
+
cd <the folder init printed> && npm install
|
|
17
17
|
npx taggor publish # build it remotely and publish a version to a channel
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
`login` prints a code and a URL, waits, and you approve it in the browser. `logout` revokes the saved login
|
|
21
21
|
and deletes it from the machine.
|
|
22
22
|
|
|
23
|
+
You do not need GitHub or a repository: the source of every published version is stored in Taggor, and
|
|
24
|
+
`npx taggor pull` brings every component of your workspace back (the project is kept in
|
|
25
|
+
`~/.taggor/projects/<workspace>/`). To keep the project in a folder or repository of your own, use
|
|
26
|
+
`npx taggor init .` there instead.
|
|
27
|
+
|
|
23
28
|
## Commands
|
|
24
29
|
|
|
25
|
-
| Group | Commands
|
|
26
|
-
| ----------------- |
|
|
27
|
-
| Account | `login`, `logout`, `whoami`, `workspaces`
|
|
28
|
-
| Projects | `init`, `pull` (
|
|
29
|
-
| Build and release | `publish`, `logs`, `versions`, `promote`, `rollback`, and `dev`, `check` (see below)
|
|
30
|
-
| Sites | `sites` (list, create, show the snippet), `attach`, `detach`
|
|
31
|
-
| What happened | `data` (what your components collected), `metrics`, `usage` (limits of your plan)
|
|
32
|
-
| AI agents | `agent install` (teach Claude Code, Codex or Cursor to write and publish components here)
|
|
30
|
+
| Group | Commands |
|
|
31
|
+
| ----------------- | ----------------------------------------------------------------------------------------------- |
|
|
32
|
+
| Account | `login`, `logout`, `whoami`, `workspaces` |
|
|
33
|
+
| Projects | `init`, `pull` (bring your workspace's components back), `projects` |
|
|
34
|
+
| Build and release | `publish`, `logs`, `versions`, `promote`, `rollback`, `preview`, and `dev`, `check` (see below) |
|
|
35
|
+
| Sites | `sites` (list, create, show the snippet), `attach`, `detach` |
|
|
36
|
+
| What happened | `data` (what your components collected), `metrics`, `usage` (limits of your plan) |
|
|
37
|
+
| AI agents | `agent install` (teach Claude Code, Codex or Cursor to write and publish components here) |
|
|
33
38
|
|
|
34
39
|
`dev` (a local preview with hot reload) and `check` (the publication gates, offline) run an engine that
|
|
35
|
-
the npm build does not ship
|
|
40
|
+
the npm build does not ship, and the npm build never loads an engine from your project. They need
|
|
36
41
|
the CLI your Taggor portal serves; `publish` always builds and checks remotely, so it does not need them.
|
|
37
42
|
|
|
38
43
|
Channels are `staging` and `production`: `promote` points a channel at a version and `rollback` points it
|
|
39
|
-
back at the previous one. Versions are immutable, so a rollback is instant.
|
|
44
|
+
back at the previous one. Versions are immutable, so a rollback is instant. `preview` prints a new private
|
|
45
|
+
preview link for a version (`--version`, or `--channel`; default the latest version) without changing anything and
|
|
46
|
+
without building. `preview --build` builds the project's component and prints the link of that build with no
|
|
47
|
+
version made; it spends one build of the workspace's quota, and `publish --build <build_id>` then makes the
|
|
48
|
+
version from that ready build without building again.
|
|
40
49
|
|
|
41
50
|
Run `taggor <command> --help` for the flags of each command. Every command takes `--json` for scripts and
|
|
42
51
|
agents, and every exit code is documented in [`EXIT_CODES.md`](./EXIT_CODES.md), shipped in this package.
|
|
43
52
|
|
|
44
53
|
## Docs
|
|
45
54
|
|
|
46
|
-
- [Quickstart](https://taggor.dev/docs/quickstart/): from
|
|
55
|
+
- [Quickstart](https://taggor.dev/docs/quickstart/): from nothing to a component on a test site
|
|
47
56
|
- [The snippet](https://taggor.dev/docs/snippet/) and [forms and data](https://taggor.dev/docs/forms-and-data/)
|
|
48
57
|
- [Errors](https://taggor.dev/docs/errors/) and [build diagnostics](https://taggor.dev/docs/diagnostics/), one page per code
|
|
49
58
|
- Working with an agent: [Claude Code](https://taggor.dev/docs/agents/claude-code/),
|
package/bin/taggor.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// Launcher of the taggor CLI
|
|
2
|
+
// Launcher of the taggor CLI: checks the Node version, then loads the bundle.
|
|
3
3
|
const [major] = process.versions.node.split(".").map(Number);
|
|
4
4
|
if (major < 20) {
|
|
5
5
|
process.stderr.write("taggor needs Node.js 20 or newer.\n");
|