pi-durable-bot 0.8.12 → 0.8.13

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,13 @@
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.13 (2026-11-30)
6
+
7
+ The bot stops at the payment step and pays only once the person confirms the amount and what it will be paid with.
8
+
9
+ ### Changed
10
+ - **The payment waits for the person.** The main agent's prompt said to get the person's OK on what an action costs, then do it. Now the bot does the work up to the payment, then stops, shows the amount and what it will be paid with, and pays only once the person confirms. A bot had paid a top-up the person asked for without stopping at the payment step.
11
+
5
12
  ## 0.8.12 (2026-11-29)
6
13
 
7
14
  While the bot works after a message, people in that place see it typing until it posts there. Memory keeps facts: the pass after each run is off by default, and a tidy, at most once a day, deletes expired and duplicate memories and corrects ones that contradict. Block quotes the bot sends on Discord and Teams keep every line in the quote.
@@ -66,7 +66,7 @@ ${computerSection(facts)}`;
66
66
  function computerSection(facts) {
67
67
  return `# This computer
68
68
  - It is yours to work on: ${facts.machine.os}, host ${facts.machine.hostname}, user ${facts.machine.user}. The bash tool runs ${facts.machine.shell}.
69
- - You have all the permissions of this user${facts.machine.os.startsWith("Windows") ? "" : "; sudo -n true tells you whether sudo works without a password"}. Your actions need no approval, with one exception: before an action, make sure whether it may cost money; if it may, get the person's OK on what it costs, then do it yourself. Looking something up, measuring or drafting needs no OK: do it, then tell them what you found. You can install what you need. The more an agent takes on, the less it should ask of the person. You have more than it may seem: the browsers here keep the sign-ins people made; a password manager or the person's mailbox can give a password or a code; the settings of your own apps are yours to change. Before you say that a step needs a person, look at what you have and try it. When you need them, ask once, first in your message, and go on with the rest. Handing them your screen is the last step.
69
+ - You have all the permissions of this user${facts.machine.os.startsWith("Windows") ? "" : "; sudo -n true tells you whether sudo works without a password"}. Your actions need no approval, with one exception: before an action, make sure whether it may cost money; if it may, get the person's OK on what it costs, and do the work yourself up to the payment. There, stop: show them the amount and what it will be paid with, and pay only once they confirm. Looking something up, measuring or drafting needs no OK: do it, then tell them what you found. You can install what you need. The more an agent takes on, the less it should ask of the person. You have more than it may seem: the browsers here keep the sign-ins people made; a password manager or the person's mailbox can give a password or a code; the settings of your own apps are yours to change. Before you say that a step needs a person, look at what you have and try it. When you need them, ask once, first in your message, and go on with the rest. Handing them your screen is the last step.
70
70
  ${facts.scopes ? `${scopesLine(facts.scopes)}\n` : ""}- MCP servers are pi's, set in ~/.pi/agent/mcp.json and in .pi/mcp.json of your working directory, which the pi command line shares; a change counts from your next wake. Your codemode scripts call their tools, and the mcp_servers section lists them. pots mcp list shows the servers and whether they connect. pots mcp login <server> signs in to a server: run it yourself, and sign in in the browser on your screen.
71
71
  - The screen: before you use it for a job, look on this computer for a CLI, an API or an MCP server that does the job; they are usually faster and surer than the screen. If this computer has a desktop, use it like a person. See it with screenshots (the read tool shows you an image) and use the mouse and keyboard, with tools you find, install or write: the apps and the browser on it, with the logins people made there. People can watch it and take over at any time.
72
72
  - The screen tool is for anything on the screen. It runs a command like bash, with your screen's environment (such as DISPLAY); bash does not have it. Only one agent can use a screen at a time, also across bots, and the screen tool tells you who has it: bots that share a screen wait for each other, so a screen per bot works best. Your screen is the screen setting in bot.json; without it, the gateway's own environment. The gateway usually runs as a background service, so it may not have the desktop's environment. When you find the desktop's environment or set up a desktop, write it into the screen setting, for example "screen": {"DISPLAY": ":99"}.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-durable-bot",
3
- "version": "0.8.12",
3
+ "version": "0.8.13",
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",