agent-office 0.0.7 → 0.0.8

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/dist/cli.js CHANGED
@@ -22,7 +22,7 @@ program
22
22
  program
23
23
  .command("manage")
24
24
  .description("[HUMAN ONLY] Launch the interactive TUI to manage sessions")
25
- .argument("<url>", "URL of the agent-office server (e.g. http://localhost:7654)")
25
+ .argument("<url>", "URL of the agent-office server (e.g. http://127.0.0.1:7654)")
26
26
  .option("--password <password>", "REQUIRED. API password", process.env.AGENT_OFFICE_PASSWORD)
27
27
  .action(async (url, options) => {
28
28
  const { manage } = await import("./commands/manage.js");
@@ -35,7 +35,7 @@ communicatorCmd
35
35
  .command("web")
36
36
  .description("[HUMAN ONLY] Launch a web chat interface for a single coworker")
37
37
  .argument("<coworker>", "Name of the coworker to chat with (e.g. 'Howard Roark')")
38
- .option("--url <url>", "URL of the agent-office serve endpoint (e.g. http://localhost:7654)", process.env.AGENT_OFFICE_URL ?? "http://localhost:7654")
38
+ .option("--url <url>", "URL of the agent-office serve endpoint (e.g. http://127.0.0.1:7654)", process.env.AGENT_OFFICE_URL ?? "http://127.0.0.1:7654")
39
39
  .option("--secret <secret>", "API password for the agent-office server", process.env.AGENT_OFFICE_PASSWORD)
40
40
  .option("--host <host>", "Host to bind the communicator web server to", "127.0.0.1")
41
41
  .option("--port <port>", "Port to run the communicator web server on", "7655")
@@ -3,7 +3,7 @@ function parseToken(token) {
3
3
  const atIndex = token.indexOf("@");
4
4
  if (atIndex === -1) {
5
5
  console.error("Error: token must be in the format <agent_code>@<server-url>");
6
- console.error("Example: 550e8400-e29b-41d4-a716-446655440000@http://localhost:7654");
6
+ console.error("Example: 550e8400-e29b-41d4-a716-446655440000@http://127.0.0.1:7654");
7
7
  process.exit(1);
8
8
  }
9
9
  const agentCode = token.slice(0, atIndex);
@@ -1,4 +1,5 @@
1
1
  import { Router } from "express";
2
+ import { cwd } from "process";
2
3
  import { Cron as CronerInstance } from "croner";
3
4
  const MAIL_INJECTION_BLURB = [
4
5
  ``,
@@ -181,7 +182,7 @@ export function createRouter(sql, opencode, serverUrl, scheduler, memoryManager)
181
182
  }
182
183
  let opencodeSessionId;
183
184
  try {
184
- const session = await opencode.session.create();
185
+ const session = await opencode.session.create({ query: { directory: cwd() } });
185
186
  opencodeSessionId = session.id;
186
187
  }
187
188
  catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-office",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Manage OpenCode sessions with named aliases",
5
5
  "type": "module",
6
6
  "license": "MIT",