Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)).
Expand All @@ -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.

Expand All @@ -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
Expand Down
14 changes: 8 additions & 6 deletions packages/buzz/openorange-buzz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions packages/buzz/openorange-buzz/plugin.js
Original file line number Diff line number Diff line change
@@ -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 <step>`.
export const inject = ["agents", "host"];
Expand All @@ -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,
Expand Down Expand Up @@ -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 }) {
Expand Down
6 changes: 3 additions & 3 deletions tests/test_buzz_plugin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
Expand Down Expand Up @@ -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.
Expand Down