cloudtifact 0.1.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/LICENSE +21 -0
- package/README.md +70 -0
- package/dist/index.js +12687 -0
- package/package.json +59 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 The Cloudtifact authors
|
|
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
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# cloudtifact
|
|
2
|
+
|
|
3
|
+
The command line for [Cloudtifact](https://cloudtifact.com): publish pages and docs folders as links
|
|
4
|
+
people comment on, keep every version, and give the comments back to your coding agent.
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
npm i -g cloudtifact
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Or run it once without installing: `npx cloudtifact publish page.html`.
|
|
11
|
+
|
|
12
|
+
Without npm, use the install script:
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
curl -fsSL https://api.cloudtifact.com/install.sh | sh
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
The script puts the CLI in `~/.cloudtifact` and adds `~/.cloudtifact/bin` to your PATH. Open a new terminal afterwards.
|
|
19
|
+
|
|
20
|
+
```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
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Requires Node.js 20 or later. The CLI is one file with no dependencies.
|
|
28
|
+
|
|
29
|
+
## Update and remove
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
cloudtifact upgrade
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Installed with npm: `npm i -g cloudtifact@latest` to update, `npm rm -g cloudtifact` to remove.
|
|
36
|
+
|
|
37
|
+
Installed with the script: `upgrade` downloads the latest CLI and replaces `~/.cloudtifact/cloudtifact.mjs`.
|
|
38
|
+
It prints the old and new version, or says the CLI is already up to date.
|
|
39
|
+
|
|
40
|
+
To remove a script install:
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
rm -rf ~/.cloudtifact # the CLI
|
|
44
|
+
rm -f ~/.local/bin/cloudtifact # the link, if the installer made one
|
|
45
|
+
rm -rf ~/.config/cloudtifact # the saved token (run `cloudtifact logout` first to revoke it)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
If the installer added a PATH line to your shell's startup file (`~/.zshrc`, `~/.bashrc`, `~/.bash_profile`,
|
|
49
|
+
`~/.profile` or `~/.config/fish/config.fish`), delete it too. It sits under a `# cloudtifact` comment and
|
|
50
|
+
mentions `.cloudtifact/bin`.
|
|
51
|
+
|
|
52
|
+
## For agents
|
|
53
|
+
|
|
54
|
+
Add `--toon` (fewest tokens) or `--json` to commands that print data, or set `CLOUDTIFACT_FORMAT=toon`.
|
|
55
|
+
`cloudtifact init --hooks` installs a skill and hooks for Claude Code, Codex and Cursor.
|
|
56
|
+
|
|
57
|
+
## Configuration
|
|
58
|
+
|
|
59
|
+
| Variable | Use |
|
|
60
|
+
| --- | --- |
|
|
61
|
+
| `CLOUDTIFACT_API_URL` | Point at another Cloudtifact server (self-hosted or staging) |
|
|
62
|
+
| `CLOUDTIFACT_FORMAT` | Default output: `text`, `toon` or `json` |
|
|
63
|
+
|
|
64
|
+
The token from `login` is stored in `~/.config/cloudtifact/config.json` (or `$XDG_CONFIG_HOME`).
|
|
65
|
+
|
|
66
|
+
## Docs
|
|
67
|
+
|
|
68
|
+
Every command and option: the [CLI reference](https://cloudtifact.com/docs/reference/cli).
|
|
69
|
+
|
|
70
|
+
MIT licensed.
|