aicomputer 0.1.10 → 0.1.11

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 +64 -0
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -8,6 +8,70 @@ Agent Computer CLI for creating, opening, and managing computers from the termin
8
8
  npm install -g aicomputer
9
9
  ```
10
10
 
11
+ Or run it directly with Nix:
12
+
13
+ ```bash
14
+ nix run github:getcompanion-ai/agentcomputer?dir=apps/cli -- login
15
+ ```
16
+
17
+ For local testing from this checkout, prefer:
18
+
19
+ ```bash
20
+ nix run path:./apps/cli -- --version
21
+ ```
22
+
23
+ To declare it in a flake-based Nix config:
24
+
25
+ ```nix
26
+ {
27
+ inputs.agentcomputer-cli = {
28
+ url = "github:getcompanion-ai/agentcomputer?dir=apps/cli";
29
+ inputs.nixpkgs.follows = "nixpkgs";
30
+ };
31
+ }
32
+
33
+ home.packages = [
34
+ agentcomputer-cli.packages.${pkgs.system}.default
35
+ ];
36
+
37
+ # or
38
+
39
+ environment.systemPackages = [
40
+ agentcomputer-cli.packages.${pkgs.system}.default
41
+ ];
42
+ ```
43
+
44
+ ## Private Repo Rollout
45
+
46
+ To keep Nix distribution aligned with the npm CLI release flow for this private repo:
47
+
48
+ 1. Create a Cachix cache for the CLI.
49
+ 2. Add a GitHub Actions repository variable named `CACHIX_CACHE` with that cache name.
50
+ 3. Add a GitHub Actions repository secret named `CACHIX_AUTH_TOKEN` with a write token for that cache.
51
+ 4. Run the `CLI Release` workflow or push a `cli-v*` tag.
52
+
53
+ The release workflow will:
54
+
55
+ - build the CLI with `npm ci`
56
+ - build the Nix package
57
+ - sync `apps/cli/package-lock.json` and `apps/cli/package.nix` when the CLI version changes
58
+ - publish the npm package
59
+ - push the built Nix closure to the configured Cachix cache
60
+
61
+ Consumers should add the binary cache to their Nix config:
62
+
63
+ ```nix
64
+ nix.settings = {
65
+ substituters = [
66
+ "https://cache.nixos.org"
67
+ "https://<your-cache>.cachix.org"
68
+ ];
69
+ trusted-public-keys = [
70
+ "<your-cache>.cachix.org-1:<your-public-key>"
71
+ ];
72
+ };
73
+ ```
74
+
11
75
  ## Usage
12
76
 
13
77
  After installing, use the `computer` command:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aicomputer",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Computer CLI - manage your Agent Computer fleet from the terminal",
5
5
  "homepage": "https://agentcomputer.ai",
6
6
  "repository": {
@@ -20,7 +20,8 @@
20
20
  "scripts": {
21
21
  "build": "tsup src/index.ts --format esm --dts",
22
22
  "dev": "tsup src/index.ts --format esm --watch",
23
- "prepack": "pnpm build",
23
+ "prepack": "npm run build",
24
+ "sync:nix": "../../scripts/cli/sync-nix-package.sh",
24
25
  "typecheck": "tsc --noEmit"
25
26
  },
26
27
  "files": [