diff --git a/README.md b/README.md index b3bc569..f8ff387 100644 --- a/README.md +++ b/README.md @@ -196,9 +196,11 @@ on the Bot's computer. Grok Bot's computer can also run the `oo` CLI The Buzz plugin is in [`packages/buzz/openorange-buzz`](packages/buzz/openorange-buzz). It makes OpenOrange agent types in Buzz Desktop: mention your agent in a thread and it answers there from your Sunport, each thread one continuing -conversation. With **OpenOrange**, Buzz passes the messages to `oo` on your -computer, which reaches your Sunport as you, while Buzz Desktop is open. With -**OpenOrange (always on)**, your Sunport answers in Buzz itself (below). +conversation. With **OpenOrange · while Buzz is open**, Buzz passes the messages to +`oo` on your computer, which reaches your Sunport as you: it works in any +community, while Buzz Desktop is open on that computer. With +**OpenOrange · always on**, your Sunport answers in Buzz itself, with Buzz +closed, in communities Buzz hosts (below). You need Buzz Desktop and, on the same computer, the `oo` CLI with `oo login` done ([CLI guide](usage/references/cli.md)). @@ -213,8 +215,8 @@ done ([CLI guide](usage/references/cli.md)). enter the repository `2bb-dev/openorange-integrations` and the folder `packages/buzz/openorange-buzz`. Buzz shows the access the plugin asks for, starting `oo acp` and `oo buzz hosted`; choose **Install plugin**. -2. Open **Agents › New agent › Custom › Harness › OpenOrange**. The agent is - Clem on your Sunport. +2. Open **Agents › New agent › Custom › Harness › OpenOrange · while Buzz is open**. + The agent is Clem on your Sunport. 3. Mention the agent in a thread. It answers only your own mentions, while Buzz Desktop is open. @@ -224,12 +226,13 @@ An always-on agent is Clem on your Sunport, which runs it in Buzz itself: it answers even while Buzz Desktop is closed and your computer is off. It needs a current Sunport. The plugin and `oo` above set it up; it answers without them. -1. Open **Agents › New agent › Custom › Harness › OpenOrange (always on)** +1. Open **Agents › New agent › Custom › Harness › OpenOrange · always on** (under Remote), name the agent and create it. 2. Your browser opens once for you to sign in to Buzz. If the setup stops before it finishes, choose **Finish setup** on the agent. 3. Add the agent to a channel in Buzz and mention it there. It answers only - your own mentions. + your own mentions; anyone else who mentions it gets one short note that it + answers only its owner. Buzz asks for a new sign-in from time to time. Until you give it one, the agent doesn't answer: run `oo buzz renew` in a terminal, which opens your browser to diff --git a/packages/buzz/openorange-buzz/README.md b/packages/buzz/openorange-buzz/README.md index 4af6eef..0bbaee7 100644 --- a/packages/buzz/openorange-buzz/README.md +++ b/packages/buzz/openorange-buzz/README.md @@ -9,22 +9,24 @@ conversation. 1. Install `oo`, OpenOrange's command line, from https://app.openorange.ai/connect on this computer, and run `oo login` in a terminal. 2. In Buzz, open **Agents**, choose **New agent**, then **Custom**, **Harness** - and **OpenOrange**. + and **OpenOrange · while Buzz is open**. It works in any community. 3. Mention the agent in a thread. It answers your own mentions while Buzz - Desktop is open. + Desktop is open on this computer. ## Always on -Choose the harness **OpenOrange (always on)** instead, under Remote, and your +Choose the harness **OpenOrange · always on** instead, under Remote, and your Sunport runs the agent in Buzz itself: it answers even while Buzz Desktop is -closed and this computer is off. It needs a current Sunport. +closed and this computer is off. It is for communities Buzz hosts, and needs a +current Sunport. 1. With `oo` installed and signed in as above, create the agent with the - harness **OpenOrange (always on)**. + harness **OpenOrange · always on**. 2. Your browser opens once for you to sign in to Buzz. If the setup stops before it finishes, choose **Finish setup** on the agent. 3. Add the agent to a channel in Buzz and mention it there. It answers only - your own mentions. + your own mentions; anyone else who mentions it gets one short note that it + answers only its owner. Buzz asks for a new sign-in from time to time. Until you give it one, the agent doesn't answer: run `oo buzz renew` in a terminal, which opens your browser to diff --git a/packages/buzz/openorange-buzz/plugin.js b/packages/buzz/openorange-buzz/plugin.js index 1050dc3..346c4f6 100644 --- a/packages/buzz/openorange-buzz/plugin.js +++ b/packages/buzz/openorange-buzz/plugin.js @@ -1,11 +1,11 @@ // OpenOrange in Buzz: two agent types whose agents are the owner's agents on their Sunport. // -// "OpenOrange" (`agent`): Clem unless the agent's config names another. Buzz keeps the agent's identity and posts its +// "OpenOrange · while Buzz is open" (`agent`): Clem unless the agent's config names another. Buzz keeps the agent's identity and posts its // replies. Each thread the agent is mentioned in is one continuing conversation with the Sunport's agent, reached // through `oo acp` (the Agent Client Protocol on stdin and stdout), which signs in as the person who ran `oo login`. // Nothing of the agent runs on this computer, and no key of Buzz's ever reaches `oo`. // -// "OpenOrange (always on)" (`hosted`): an agent Buzz calls hosted. The owner's Sunport makes and keeps its key, hears +// "OpenOrange · always on" (`hosted`): an agent Buzz calls hosted. The owner's Sunport makes and keeps its key, hears // the owner's mentions and posts the replies itself, so it answers while this computer is off. This computer only // makes, sets up, renames and removes it, each step one `oo buzz hosted `. export const inject = ["agents", "host"]; @@ -29,9 +29,9 @@ export function apply(ctx) { agents.register({ id: TYPE_ID, - title: "OpenOrange", + title: "OpenOrange · while Buzz is open", description: - "An agent of your OpenOrange Sunport, Clem by default, reached with oo on this computer. Each thread it is mentioned in is one continuing conversation.", + "An agent of your OpenOrange Sunport, Clem by default, in any community. It answers while Buzz Desktop is open on this computer, through oo here. Each thread it is mentioned in is one continuing conversation.", defaults: () => ({ config: { agent: DEFAULT_AGENT } }), summary: (agent) => `${sunportAgent(agent.config)} on your Sunport`, timeoutMs: 30 * 60_000, @@ -331,9 +331,9 @@ function createSaved(storage) { function hostedType(host) { return { id: HOSTED_TYPE_ID, - title: "OpenOrange (always on)", + title: "OpenOrange · always on", description: - "Clem on your OpenOrange Sunport, which runs it, so it answers your mentions even while this computer is off. oo on this computer sets it up with one sign-in to Buzz.", + "Clem on your OpenOrange Sunport, which runs it: it answers your mentions with Buzz closed and this computer off. For communities Buzz hosts. oo on this computer sets it up with one sign-in to Buzz.", defaults: () => ({ config: {} }), remote: { async provision({ name, picture, community, signal }) { diff --git a/tests/test_buzz_plugin.mjs b/tests/test_buzz_plugin.mjs index c8fa2fd..f7ae99f 100644 --- a/tests/test_buzz_plugin.mjs +++ b/tests/test_buzz_plugin.mjs @@ -169,7 +169,7 @@ const prompts = (stub) => stub.received.filter((message) => message.method === " test("registers OpenOrange as an agent type, Clem by default", (t) => { const { type } = computer(t).start(); assert.equal(type.id, "agent"); - assert.equal(type.title, "OpenOrange"); + assert.equal(type.title, "OpenOrange · while Buzz is open"); assert.deepEqual(type.defaults(), { config: { agent: "clem" } }); assert.equal(type.summary({ config: {} }), "clem on your Sunport"); }); @@ -320,8 +320,8 @@ test("registers the always-on type beside the local one: hosted, with its five s assert.deepEqual( types.map((registered) => [registered.id, registered.title]), [ - ["agent", "OpenOrange"], - ["hosted", "OpenOrange (always on)"], + ["agent", "OpenOrange · while Buzz is open"], + ["hosted", "OpenOrange · always on"], ], ); // What Buzz requires of a hosted type.