@agentshouse/kit 0.1.0-alpha.36 → 0.1.0-alpha.38

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/docs/linux.md ADDED
@@ -0,0 +1,71 @@
1
+ # Linux
2
+
3
+ Run the Linux command from the [README](../README.md#connect-a-computer) in a
4
+ terminal. It needs `bash`, `curl` and Docker Engine.
5
+
6
+ ## Docker Engine
7
+
8
+ - A Docker Engine that already answers is used as it is, on any distribution.
9
+ - On Ubuntu 22.04, 24.04 or 26.04 LTS, anything missing is installed from
10
+ Docker's own apt repository through `sudo`, which asks for your password.
11
+ The command starts the `docker` service and adds you to the `docker` group.
12
+ - Ubuntu packages that conflict with Docker's (`docker.io`, `docker-compose`,
13
+ `docker-compose-v2`, `docker-doc`, `docker-buildx`, `podman-docker`,
14
+ `containerd`, `runc`) are not removed for you: remove them and run again.
15
+ - On any other distribution, install Docker Engine first.
16
+
17
+ A new `docker` group membership applies from your next sign-in. If a later run
18
+ says so, sign out and back in, then run the command again.
19
+
20
+ ## What it creates
21
+
22
+ - `~/.house-kit`: Kit home, with your credential and `kit.json`.
23
+ - `~/AgentsHouse`: your workspace, mounted in the container as
24
+ `/agents/house`. Pass `--workspace /absolute/path` to use another directory.
25
+
26
+ Both are readable only by you. The credential is never printed.
27
+
28
+ ## Updating
29
+
30
+ Run a newer release's command. While an Agent session is still running, the
31
+ update names it and leaves Kit as it is; run the command again once it ends.
32
+ Your credential, Kit home and workspace are kept.
33
+
34
+ ## Pushing a working copy
35
+
36
+ From a directory under your workspace, such as a Room copy under
37
+ `working-copies/rooms/`, run:
38
+
39
+ ```sh
40
+ bash <(curl -fsSL …/connect-linux.sh) house git push --owner
41
+ ```
42
+
43
+ ## A House on this computer
44
+
45
+ `--house http://127.0.0.1:<port>` or `--house http://localhost:<port>` runs Kit
46
+ on the host network so it can reach a House served on this computer.
47
+
48
+ ## An Always-on server that hosts containers
49
+
50
+ An Always-on Ubuntu server that will run persistent container Environments
51
+ connects natively instead of in a container. Run the command with `--linux`:
52
+
53
+ ```sh
54
+ bash <(curl -fsSL …/connect-linux.sh) --linux
55
+ ```
56
+
57
+ It needs Ubuntu 26.04 LTS on `amd64`; any other host is refused. Every other
58
+ computer takes the ordinary command. It sets up:
59
+
60
+ - Docker Engine, as above, and `git` and `tmux` from Ubuntu's apt repository.
61
+ - `/opt/house-kit`: House Kit and the Node.js it runs on, copied from the
62
+ release's image and owned by root.
63
+ - `~/.house-kit`: Kit home, readable only by you.
64
+ - `/agents/house`: your Agents' workspace, readable only by you.
65
+ - `house-kit.service`: the systemd service that runs Kit as you and starts it
66
+ with the server.
67
+
68
+ The server connects as a continuous Environment. Put `--linux` before `kit` or
69
+ `house` to run a Kit command, as in
70
+ `bash <(curl -fsSL …/connect-linux.sh) --linux kit apply`, and run a newer
71
+ release's command with `--linux` to update it, as above.
package/docs/macos.md ADDED
@@ -0,0 +1,26 @@
1
+ # macOS
2
+
3
+ Run the Linux command from the [README](../README.md#connect-a-computer) in
4
+ Terminal. It works on Apple silicon and Intel Macs, including from a terminal
5
+ running under Rosetta.
6
+
7
+ ## Docker Desktop
8
+
9
+ Kit on a Mac needs Docker Desktop.
10
+
11
+ - A Docker Desktop that already answers is used as it is.
12
+ - Other engines, such as Colima or OrbStack, are refused.
13
+ - Without `/Applications/Docker.app`, the command downloads Docker Desktop for
14
+ your chip and installs it through `sudo`, which asks for your password.
15
+ - The command opens Docker Desktop and waits up to five minutes while you
16
+ accept its terms or finish what its window asks. If it is still not ready,
17
+ run the command again.
18
+
19
+ ## Notes
20
+
21
+ - A `--workspace` directory must be one Docker Desktop shares, such as one
22
+ under `/Users`.
23
+ - A House on this computer (`--house http://127.0.0.1:<port>`) needs host
24
+ networking enabled in Docker Desktop's settings.
25
+
26
+ Everything else works as on [Linux](linux.md).
@@ -0,0 +1,29 @@
1
+ # Telegram bot
2
+
3
+ Kit can connect your own Telegram bot so your House conversations appear there.
4
+ The bot token stays on this computer; House never receives it.
5
+
6
+ 1. Create a bot with BotFather and turn on its Threaded Mode.
7
+ 2. Send the bot one ordinary private message outside any topic, so Kit can
8
+ tell the bot is yours.
9
+ 3. Connect it, entering the token at the hidden prompt:
10
+
11
+ ```sh
12
+ kit telegram connect
13
+ ```
14
+
15
+ 4. Serve it; this keeps running until you stop it:
16
+
17
+ ```sh
18
+ kit telegram serve
19
+ ```
20
+
21
+ To release the bot:
22
+
23
+ ```sh
24
+ kit telegram disconnect
25
+ ```
26
+
27
+ Run each command through the connect command as the
28
+ [README](../README.md#run-a-kit-command) shows. Only one computer can serve a
29
+ given bot.
@@ -0,0 +1,36 @@
1
+ # Windows
2
+
3
+ Run the Windows command from the [README](../README.md#connect-a-computer) in
4
+ the 64-bit Windows PowerShell. It needs Windows 11 23H2 (build 22631) or later
5
+ on `amd64`. Windows Server, Windows 10 and Windows on ARM are refused.
6
+
7
+ ## WSL 2 and Docker Desktop
8
+
9
+ - A Docker Desktop that already runs Linux containers on WSL 2 is used as it is.
10
+ - Without WSL, the command runs `wsl --install --no-distribution`. Approve the
11
+ administrator prompt, restart Windows, and run the command again. An old WSL
12
+ is updated the same way.
13
+ - Without Docker Desktop, the command downloads it and installs it for your
14
+ account only, without administrator rights.
15
+ - The command starts Docker Desktop and waits up to five minutes while you
16
+ accept its terms or finish what its window asks. If it is still not ready,
17
+ run the command again.
18
+ - Windows containers, the Hyper-V engine and other Docker engines are refused.
19
+
20
+ ## What it creates
21
+
22
+ - `%USERPROFILE%\.house-kit`: Kit home.
23
+ - `%USERPROFILE%\AgentsHouse`: your workspace. Pass
24
+ `--workspace 'D:\Agents'` to use another directory.
25
+
26
+ Both are restricted to your Windows account. A path containing a comma is
27
+ refused.
28
+
29
+ ## Notes
30
+
31
+ - Append `kit` and a command to run it, as on [Linux](linux.md). Each run
32
+ leaves its exit status in `$LASTEXITCODE`.
33
+ - A command whose output is redirected also writes its prompts and errors there.
34
+ - A House on this computer needs host networking enabled in Docker Desktop's
35
+ settings.
36
+ - This bootstrap has not yet been run on a real Windows computer.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentshouse/kit",
3
- "version": "0.1.0-alpha.36",
3
+ "version": "0.1.0-alpha.38",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",