cloudtifact 0.2.3 → 0.3.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.
Files changed (3) hide show
  1. package/README.md +29 -21
  2. package/dist/index.js +2949 -581
  3. package/package.json +7 -4
package/README.md CHANGED
@@ -1,13 +1,18 @@
1
- # cloudtifact
1
+ # Cloudy CLI
2
2
 
3
- The command line for [Cloudtifact](https://cloudtifact.com): publish pages and docs folders as links
3
+ The command line for [Cloudy](https://cloudtifact.com): publish pages and docs folders as links
4
4
  people comment on, keep every version, and give the comments back to your coding agent.
5
5
 
6
6
  ```sh
7
- npm i -g cloudtifact
7
+ npm i -g usecloudy
8
8
  ```
9
9
 
10
- Or run it once without installing: `npx cloudtifact publish page.html`.
10
+ The command it installs is `cloudy`. `cloudtifact` still works as the same command, so older scripts and hooks keep
11
+ running. The same CLI is also on npm under its old package name, `cloudtifact`, kept up to date for existing installs.
12
+ Both packages install the same commands, so keep only one: to move, run `npm rm -g cloudtifact`, then
13
+ `npm i -g usecloudy`.
14
+
15
+ Or run it once without installing: `npx usecloudy publish page.html`.
11
16
 
12
17
  Without npm, use the install script:
13
18
 
@@ -15,13 +20,15 @@ Without npm, use the install script:
15
20
  curl -fsSL https://api.cloudtifact.com/install.sh | sh
16
21
  ```
17
22
 
18
- The script puts the CLI in `~/.cloudtifact` and adds `~/.cloudtifact/bin` to your PATH. Open a new terminal afterwards.
23
+ The script puts the CLI in `~/.cloudtifact` (commands `cloudy` and `cloudtifact`) and adds `~/.cloudtifact/bin` to your PATH. Open a new terminal afterwards.
19
24
 
20
25
  ```sh
21
- cloudtifact login
22
- cloudtifact publish page.html # one page or folder → a link
23
- cloudtifact init && cloudtifact push # a repo's docs folder, versioned
24
- cloudtifact comments --toon # what reviewers said, compact for agents
26
+ cloudy login
27
+ cloudy publish page.html # one page or folder → a link
28
+ cloudy copy https://cloudtifact.app/<id>/ # your own copy of a page someone sent
29
+ cloudy context pull --space <id> # Discord thread linked to the space
30
+ cloudy init && cloudy push # a repo's docs folder, versioned
31
+ cloudy comments --toon # what reviewers said, compact for agents
25
32
  ```
26
33
 
27
34
  Requires Node.js 20 or later. The CLI is one file with no dependencies.
@@ -29,10 +36,11 @@ Requires Node.js 20 or later. The CLI is one file with no dependencies.
29
36
  ## Update and remove
30
37
 
31
38
  ```sh
32
- cloudtifact upgrade
39
+ cloudy upgrade
33
40
  ```
34
41
 
35
- Installed with npm: `npm i -g cloudtifact@latest` to update, `npm rm -g cloudtifact` to remove.
42
+ Installed with npm: `npm i -g usecloudy@latest` to update, `npm rm -g usecloudy` to remove (`cloudtifact` in
43
+ place of `usecloudy` if you installed the old package).
36
44
 
37
45
  Installed with the script: `upgrade` downloads the latest CLI and replaces `~/.cloudtifact/cloudtifact.mjs`.
38
46
  It prints the old and new version, or says the CLI is already up to date.
@@ -45,8 +53,8 @@ To remove a script install:
45
53
 
46
54
  ```sh
47
55
  rm -rf ~/.cloudtifact # the CLI
48
- rm -f ~/.local/bin/cloudtifact # the link, if the installer made one
49
- rm -rf ~/.config/cloudtifact # the saved token (run `cloudtifact logout` first to revoke it)
56
+ rm -f ~/.local/bin/cloudy ~/.local/bin/cloudtifact # the links, if the installer made them
57
+ rm -rf ~/.config/cloudtifact # the saved token (run `cloudy logout` first to revoke it)
50
58
  ```
51
59
 
52
60
  If the installer added a PATH line to your shell's startup file (`~/.zshrc`, `~/.bashrc`, `~/.bash_profile`,
@@ -56,12 +64,12 @@ mentions `.cloudtifact/bin`.
56
64
  ## More than one account
57
65
 
58
66
  ```sh
59
- cloudtifact login # again, approving as your other account: adds it
60
- cloudtifact accounts # * marks the active one
61
- cloudtifact switch # toggle between two (or: switch <handle>)
62
- cloudtifact push --account work # one command as another account
63
- cloudtifact switch work --here # this repo always uses @work, on this machine
64
- cloudtifact logout --account work # sign out of one (or --all)
67
+ cloudy login # again, approving as your other account: adds it
68
+ cloudy accounts # * marks the active one
69
+ cloudy switch # toggle between two (or: switch <handle>)
70
+ cloudy push --account work # one command as another account
71
+ cloudy switch work --here # this repo always uses @work, on this machine
72
+ cloudy logout --account work # sign out of one (or --all)
65
73
  ```
66
74
 
67
75
  A folder set with `--here` never falls back to another account: if that account isn't signed in, the command stops.
@@ -69,13 +77,13 @@ A folder set with `--here` never falls back to another account: if that account
69
77
  ## For agents
70
78
 
71
79
  Add `--toon` (fewest tokens) or `--json` to commands that print data, or set `CLOUDTIFACT_FORMAT=toon`.
72
- `cloudtifact init --hooks` installs a skill and hooks for Claude Code, Codex and Cursor.
80
+ `cloudy init --hooks` installs a skill and hooks for Claude Code, Codex and Cursor.
73
81
 
74
82
  ## Configuration
75
83
 
76
84
  | Variable | Use |
77
85
  | --- | --- |
78
- | `CLOUDTIFACT_API_URL` | Point at another Cloudtifact server (self-hosted). The saved token is only sent to the server it came from, so run `cloudtifact login` with it set to sign in there |
86
+ | `CLOUDTIFACT_API_URL` | Point at another Cloudy server (self-hosted). The saved token is only sent to the server it came from, so run `cloudy login` with it set to sign in there |
79
87
  | `CLOUDTIFACT_FORMAT` | Default output: `text`, `toon` or `json` |
80
88
  | `CLOUDTIFACT_ACCOUNT` | Use this signed-in account (a handle), like `--account` |
81
89
  | `CLOUDTIFACT_TOKEN` | Use this token instead of any saved sign-in, for CI |