@quantis-ai/gary 0.2.0 → 0.2.2

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 (2) hide show
  1. package/README.md +19 -4
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -22,11 +22,11 @@ irm https://chat.getquantis.com/cli/install.ps1 | iex
22
22
  |---|---|
23
23
  | `gary install` | Copies gary to `~/.local/bin`, signs in if needed, and runs it in the background: a systemd user unit on Linux (lingering on, so it keeps running after logout), a launchd agent on macOS, a Scheduled Task at logon on Windows. Starts Gary's computer when Docker is installed; warns and carries on when it isn't |
24
24
  | `gary login` | Signs this computer in: prints a link to open where you're signed in to Gary, and waits for you to approve it |
25
- | `gary status` | Signed in or not, connected or not (and why not, in QUANTIS's own words when it refuses the account), Gary's computer (running, stopped, image not downloaded, or no Docker; its image and version; whether a newer gary or image is out), and the directories shared |
25
+ | `gary status` | Signed in or not, connected or not (and why not, in QUANTIS's own words when it refuses the account), Gary's computer (running, stopped, image not downloaded, or no Docker; the image it runs and its version, and whether it is behind; whether a newer gary is out), and the directories shared |
26
26
  | `gary dir add [path]` | Shares a directory, this one by default. `--read-only`: Gary can read it, not change it or run commands in it. `--name`: what Gary calls it |
27
27
  | `gary dir list` / `gary dir remove <path\|name>` | The directories shared; stop sharing one |
28
28
  | `gary tasks` | What your Garys did on this computer (newest last), and the commands running now; `gary tasks stop <id>` stops one |
29
- | `gary update` | Installs the newest gary (when installed by the script; with npm it says the two commands to run), downloads the newest image of Gary's computer, and starts the computer again on it. Its files are kept. Running it again changes nothing |
29
+ | `gary update` | Installs the newest gary (when installed by the script; with npm it says the two commands to run), downloads the image of Gary's computer that gary pins, and starts the computer again on it. Its files are kept. Running it again changes nothing |
30
30
  | `gary logout` / `gary uninstall` | Sign this computer out; stop the service and Gary's computer and remove them. The computer's files stay in the Docker volume `gary-home` unless `--delete-home` |
31
31
 
32
32
  ## How it works
@@ -48,8 +48,8 @@ answers inside the shared directories. Approvals, audit and limits are the bridg
48
48
 
49
49
  ## Gary's computer
50
50
 
51
- A Docker container, `gary-computer`, from QUANTIS's image `ahartpence/gary` at this gary's version. It gives a Gary a
52
- computer and browser of its own on the person's machine, apart from the person's files.
51
+ A Docker container, `gary-computer`, from QUANTIS's image `ahartpence/gary`, pinned by digest in `docker.go`
52
+ (`ComputerImageTag`, `ComputerImageDigest`), not by this gary's version. It gives a Gary a computer and browser of its own on the person's machine, apart from the person's files.
53
53
 
54
54
  - Needs Docker: Docker Desktop on macOS and Windows, Docker Engine on Linux. Without it `gary install` prints a
55
55
  warning that says what to download, and finishes; everything else works.
@@ -86,6 +86,21 @@ still runs an older version.
86
86
  make dist VERSION=0.1.0 && node npm/build.js 0.1.0 # npm/out/0.1.0/*.tgz, nothing published
87
87
  ```
88
88
 
89
+ ### Releasing
90
+
91
+ ```bash
92
+ make release 0.2.1 # or: make release VERSION=0.2.1
93
+ DRY_RUN=1 make release 0.2.1 # everything but the publishing (npm publish --dry-run)
94
+ ```
95
+
96
+ `make release` (`npm/release.sh`) checks the tree is clean, HEAD is on `origin/main` and you're signed in to npm,
97
+ runs `make test`, builds `dist/` and the npm packages, checks this computer's binary says the version, then publishes
98
+ the six platform packages and `@quantis-ai/gary` last, so the main package never names one that isn't there. npm asks
99
+ for 2FA on each. A package already on npm at that version is skipped, so after a refused 2FA, run the same command
100
+ again and it carries on. `ALLOW_UNMERGED=1` releases a commit that isn't on `origin/main` yet. It doesn't publish the
101
+ image of Gary's computer (`ahartpence/gary`, from the gary repo). To move to a new image, publish it, change the pin in
102
+ `docker.go`, then release; `make test` checks Docker Hub has the pinned digest for linux/amd64 and linux/arm64.
103
+
89
104
  ## Building
90
105
 
91
106
  ```bash
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@quantis-ai/gary",
3
3
  "description": "Connects this computer to your Gary, so your Garys can work in the directories you share here.",
4
- "version": "0.2.0",
4
+ "version": "0.2.2",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://docs.getquantis.com",
7
7
  "author": "QUANTIS",
@@ -16,11 +16,11 @@
16
16
  "node": ">=18"
17
17
  },
18
18
  "optionalDependencies": {
19
- "@quantis-ai/gary-darwin-arm64": "0.2.0",
20
- "@quantis-ai/gary-darwin-x64": "0.2.0",
21
- "@quantis-ai/gary-linux-arm64": "0.2.0",
22
- "@quantis-ai/gary-linux-x64": "0.2.0",
23
- "@quantis-ai/gary-win32-arm64": "0.2.0",
24
- "@quantis-ai/gary-win32-x64": "0.2.0"
19
+ "@quantis-ai/gary-darwin-arm64": "0.2.2",
20
+ "@quantis-ai/gary-darwin-x64": "0.2.2",
21
+ "@quantis-ai/gary-linux-arm64": "0.2.2",
22
+ "@quantis-ai/gary-linux-x64": "0.2.2",
23
+ "@quantis-ai/gary-win32-arm64": "0.2.2",
24
+ "@quantis-ai/gary-win32-x64": "0.2.2"
25
25
  }
26
26
  }