pi-durable-bot 0.8.0 → 0.8.1
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
What changed in each version of pi-durable-bot (Pots). To upgrade, run `npm install -g pi-durable-bot@latest`, then `pots service restart`.
|
|
4
4
|
|
|
5
|
+
## 0.8.1 (2026-11-15)
|
|
6
|
+
|
|
7
|
+
The Slack and Discord skills send the person to a desktop page link to sign in, and a test passes when it runs from a bot's shell.
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- **The `slack-channel` and `discord-channel` skills point to the desktop page for sign-ins.** When the person is not at the computer, the bot gives them a desktop page link (`pots page desktop`) to sign in on its screen; on a computer without a screen, the virtual desktop choice says they sign in from such a link, as the prompt does, not that they watch it over VNC.
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **`test/scopes.test.ts` passes when it runs from a bot's shell.** The test for commands without a systemd user manager compared the command's cgroup with `app-pots`, which failed whenever the test itself ran in a Pots scope; it now checks that the command stays in the test's own cgroup.
|
|
14
|
+
|
|
5
15
|
## 0.8.0 (2026-11-15)
|
|
6
16
|
|
|
7
17
|
A person can take over the bot's screen from a link, on a phone or a computer, do one step, and hand it back. A second or third bot sets itself up as the first one does, and offers to set up a screen of its own. On Linux each command runs in a systemd scope of its own, so a command that runs out of memory no longer takes the gateway and every bot down with it, and what commands leave running stays across a restart.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-durable-bot",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Open-source AI coworkers that read every channel, decide what matters, and act on their own computer. Self-hosted, any model.",
|
|
5
5
|
"license": "MIT AND MPL-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -9,8 +9,8 @@ description: Discord for a Pots bot. How to connect a Discord bot yourself (the
|
|
|
9
9
|
|
|
10
10
|
Written for a bot that connects itself; a person can follow it too. The bot connects to Discord's gateway, so the computer needs no public address.
|
|
11
11
|
|
|
12
|
-
1. Open https://discord.com/developers/applications in the browser on your screen. If Discord asks to sign in, ask the person to sign in there
|
|
13
|
-
If this computer has no screen, ask the person how they want to do it (your instructions, under the screen, say what each way costs): a virtual desktop they
|
|
12
|
+
1. Open https://discord.com/developers/applications in the browser on your screen. If Discord asks to sign in, ask the person to sign in there. When they are not at this computer, give them a desktop page link (`pots page desktop`, see the desktop-page skill): from it they see and use your screen on their phone or computer, sign in, and hand it back.
|
|
13
|
+
If this computer has no screen, ask the person how they want to do it (your instructions, under the screen, say what each way costs): a virtual desktop, where they sign in themselves from a desktop page link, a browser-only tool such as agent-browser, or steps 1 to 5 and 8 in the browser on their own computer while you guide them. In the last case, ask for the token with ask-secret in the terminal channel (step 6).
|
|
14
14
|
2. **New Application**: give it your own name. Discord asks to agree to its Developer Terms of Service and Policy: ask the person whether they agree, and check the box only if they do. Create it. On **General Information**, copy the **Application ID**; you need it in step 5. It is not a secret.
|
|
15
15
|
3. **Bot → Reset Token**. Discord may ask for the person's password or a two-factor code; then ask the person. Copy the token. Discord shows it only once; if it is lost, reset it again.
|
|
16
16
|
4. On the same **Bot** page, under **Privileged Gateway Intents**, turn on **Message Content Intent** and save. Without it, Discord refuses the connection.
|
|
@@ -9,8 +9,8 @@ description: Slack for a Pots bot. How to connect a Slack workspace yourself (th
|
|
|
9
9
|
|
|
10
10
|
Written for a bot that connects itself; a person can follow it too. The app uses socket mode, so the computer needs no public address.
|
|
11
11
|
|
|
12
|
-
1. Open https://api.slack.com/apps?new_app=1 in the browser on your screen. If Slack asks to sign in, ask the person to sign in there
|
|
13
|
-
If this computer has no screen, ask the person how they want to do it (your instructions, under the screen, say what each way costs): a virtual desktop they
|
|
12
|
+
1. Open https://api.slack.com/apps?new_app=1 in the browser on your screen. If Slack asks to sign in, ask the person to sign in there. When they are not at this computer, give them a desktop page link (`pots page desktop`, see the desktop-page skill): from it they see and use your screen on their phone or computer, sign in, and hand it back.
|
|
13
|
+
If this computer has no screen, ask the person how they want to do it (your instructions, under the screen, say what each way costs): a virtual desktop, where they sign in themselves from a desktop page link, a browser-only tool such as agent-browser, or steps 1 to 4 in the browser on their own computer while you guide them. In the last case, give them the manifest with your name already in it, and ask for the two tokens with ask-secret in the terminal channel (step 5).
|
|
14
14
|
2. Choose **From a manifest**, pick the workspace, and paste [slack-app-manifest.yaml](slack-app-manifest.yaml). Change `name` and `display_name` to your own name first. Create the app.
|
|
15
15
|
A manifest cannot set the app's icon. To give it one, go to **Basic Information → Display Information**, choose **Add App Icon**, and upload a square image file from this computer; the page says which sizes it takes. In the file dialog you can type or paste the file's path instead of clicking through folders: Ctrl+L opens a field for it on Linux, Cmd+Shift+G on a Mac; on Windows, use the file name field. The icon is saved at once.
|
|
16
16
|
3. **Basic Information → App-Level Tokens → Generate Token and Scopes**: add the scope `connections:write` and generate. This is the app token (`xapp-…`).
|