taggor 0.4.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 CHANGED
@@ -27,21 +27,25 @@ You do not need GitHub or a repository: the source of every published version is
27
27
 
28
28
  ## Commands
29
29
 
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`, 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) |
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) |
38
38
 
39
39
  `dev` (a local preview with hot reload) and `check` (the publication gates, offline) run an engine that
40
- the npm build does not ship yet, and the npm build never loads an engine from your project. Today they need
40
+ the npm build does not ship, and the npm build never loads an engine from your project. They need
41
41
  the CLI your Taggor portal serves; `publish` always builds and checks remotely, so it does not need them.
42
42
 
43
43
  Channels are `staging` and `production`: `promote` points a channel at a version and `rollback` points it
44
- 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.
45
49
 
46
50
  Run `taggor <command> --help` for the flags of each command. Every command takes `--json` for scripts and
47
51
  agents, and every exit code is documented in [`EXIT_CODES.md`](./EXIT_CODES.md), shipped in this package.
package/bin/taggor.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Launcher of the taggor CLI (TAG-1001): checks the Node version, then loads the bundle.
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");