taggor 0.4.0 → 0.6.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/EXIT_CODES.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # Exit codes of `taggor`
2
2
 
3
3
  Stable: scripts and agents may branch on them. A code is never renumbered or reused; new ones are
4
- added at the end. The table is `EXIT` in `src/domain/exit-codes.ts`; a test (`exit-codes.test.ts`)
5
- fails when this file and the code disagree, and `CliError` refuses a code that is not in the table.
4
+ added at the end.
6
5
 
7
6
  | Code | Name | When |
8
7
  | ---- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
package/README.md CHANGED
@@ -27,21 +27,23 @@ 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) |
38
-
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
41
- the CLI your Taggor portal serves; `publish` always builds and checks remotely, so it does not need them.
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
+
39
+ `dev` (a local test page with hot reload: each component on a light and a dark background, with panels for props, CSS variables and live events, the same page as the private preview) and `check` (the publication gates, offline) download the local engine from Taggor once, check its SHA-256 and keep it in `~/.taggor/engine/`; an engine is never loaded from your project. `publish` always builds and checks on Taggor.
42
40
 
43
41
  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.
42
+ back at the previous one. Versions are immutable, so a rollback is one command. `preview` prints a new private
43
+ preview link for a version (`--version`, or `--channel`; default the latest version) without changing anything and
44
+ without building. `preview --build` builds the project's component and prints the link of that build with no
45
+ version made; it spends one build of the workspace's quota, and `publish --build <build_id>` then makes the
46
+ version from that ready build without building again.
45
47
 
46
48
  Run `taggor <command> --help` for the flags of each command. Every command takes `--json` for scripts and
47
49
  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");