openmausbot 0.1.78 → 0.1.80

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.
Files changed (56) hide show
  1. package/dist/assets/index-Cu8BkIfo.js +305 -0
  2. package/dist/assets/{index-BqDJqf2C.js → index-D6RZKWks.js} +1 -1
  3. package/dist/assets/index-tfpeJAIG.css +1 -0
  4. package/dist/index.html +2 -2
  5. package/dist-server/container-mcp.js +11 -5
  6. package/dist-server/drivers/agents-proxy.js +21 -6
  7. package/dist-server/enterprise/server/index.js +0 -1
  8. package/dist-server/index.js +15942 -6859
  9. package/dist-server/local-computer.js +0 -1
  10. package/dist-server/mcp-server.js +8 -1
  11. package/dist-server/openmausbot.js +9303 -786
  12. package/dist-server/pair-cli.js +9303 -786
  13. package/dist-server/proxy-paths.js +0 -1
  14. package/dist-server/server/box.js +98 -41
  15. package/dist-server/server/browser-engine.js +1 -1
  16. package/dist-server/server/browser-runtime.js +11 -3
  17. package/dist-server/server/browser-tool-shape.js +72 -0
  18. package/dist-server/server/claude-accounts.js +1 -0
  19. package/dist-server/server/cli-setup.js +1 -1
  20. package/dist-server/server/composio.js +18 -0
  21. package/dist-server/server/config.js +16 -4
  22. package/dist-server/server/container-computer.js +0 -12
  23. package/dist-server/server/drivers/acp/core.js +4 -19
  24. package/dist-server/server/drivers/agents-proxy.js +27 -2
  25. package/dist-server/server/drivers/boxagent.js +48 -4
  26. package/dist-server/server/drivers/chat-mcp-tools.js +368 -0
  27. package/dist-server/server/drivers/chat-tool-approval.js +42 -0
  28. package/dist-server/server/drivers/claude.js +86 -38
  29. package/dist-server/server/drivers/codex.js +225 -75
  30. package/dist-server/server/drivers/grok.js +4 -0
  31. package/dist-server/server/drivers/minimax.js +11 -3
  32. package/dist-server/server/drivers/openai-chat-protocol.js +92 -0
  33. package/dist-server/server/drivers/openai-chat.js +332 -88
  34. package/dist-server/server/drivers/openai-compat.js +4 -0
  35. package/dist-server/server/drivers/pi.js +1 -9
  36. package/dist-server/server/harness/registry.js +2 -2
  37. package/dist-server/server/index.js +267 -50
  38. package/dist-server/server/managed-desktop.js +205 -0
  39. package/dist-server/server/model-context-window.js +20 -0
  40. package/dist-server/server/proxy-paths.js +0 -1
  41. package/dist-server/server/redact.js +1 -0
  42. package/dist-server/server/room-handoffs.js +57 -9
  43. package/dist-server/server/store.js +13 -1
  44. package/dist-server/server/tts/chatterbox.js +83 -0
  45. package/dist-server/server/tts/index.js +45 -12
  46. package/dist-server/server/workspace.js +12 -2
  47. package/dist-server/shared/ask-question.js +28 -0
  48. package/dist-server/shared/computer-contention.js +17 -0
  49. package/dist-server/vps-container-mcp.js +11 -5
  50. package/enterprise/server/index.js +0 -1
  51. package/package.json +1 -1
  52. package/dist/assets/index-DjwAroIZ.js +0 -305
  53. package/dist/assets/index-Pbb6Ao0s.css +0 -1
  54. package/dist-server/computer-proxy.js +0 -1196
  55. package/dist-server/server/computer-proxy.js +0 -1070
  56. package/dist-server/server/remote-computer.js +0 -170
@@ -100,6 +100,34 @@ export function askQuestionSummary(questions) {
100
100
  const rest = questions.length - 1;
101
101
  return rest > 0 ? `${first} (+${rest} more question${rest > 1 ? "s" : ""})` : first;
102
102
  }
103
+ /** How many one-tap answers an `ask_user` card offers; the tool advertises
104
+ * "2-5 suggested answers". */
105
+ export const MAX_CHOICES = 5;
106
+ /**
107
+ * Flat labels from a bot-authored `ask_user` `choices` array.
108
+ *
109
+ * The tool schema says strings, but a model that has also seen Claude's
110
+ * AskUserQuestion will hand over `{ label, description }` rows instead
111
+ * (MiniMax M3 does). The label is the choice either way. Anything else is
112
+ * dropped: a non-string choice that reached the card was drawn as a React
113
+ * child, which React refuses, taking the whole chat page down with it.
114
+ */
115
+ export function parseChoices(input, limit = MAX_CHOICES) {
116
+ if (!Array.isArray(input))
117
+ return undefined;
118
+ const choices = [];
119
+ const seen = new Set();
120
+ for (const raw of input) {
121
+ const label = typeof raw === "string" ? text(raw, MAX_LABEL) : isRecord(raw) ? text(raw.label, MAX_LABEL) : undefined;
122
+ if (!label || seen.has(label))
123
+ continue;
124
+ seen.add(label);
125
+ choices.push(label);
126
+ if (choices.length === limit)
127
+ break;
128
+ }
129
+ return choices.length ? choices : undefined;
130
+ }
103
131
  /** Flat labels for clients that only know how to render a list of choices
104
132
  * (the phone companions, and any older desktop build). Only a single
105
133
  * question can be answered that way without losing which one was answered. */
@@ -0,0 +1,17 @@
1
+ /** One wording for "a turn already owns this bot's cloud computer", shared
2
+ * because two sides have to agree on it: the server sends it with 409 when
3
+ * provision or sleep arrives mid-turn, and the Computer panel recognises it
4
+ * to show the neutral busy state instead of a fault.
5
+ *
6
+ * Kept here rather than spelled out at each site: the panel used to match
7
+ * the server's prose with its own regex, so a copy-edit on the server would
8
+ * have silently turned the busy state back into "Couldn't reach the
9
+ * computer" — the exact bug the panel fix exists to prevent, and one no
10
+ * test would have caught. */
11
+ export const CLOUD_COMPUTER_BUSY_ERROR = "this bot's cloud computer is being used by an active turn — interrupt it first";
12
+ /** True when an error message carries that refusal, however it was wrapped.
13
+ * A substring test, not equality: the message reaches the client as the
14
+ * server wrote it today, but a future wrapper must not break recognition. */
15
+ export function isCloudComputerBusyMessage(message) {
16
+ return message.includes(CLOUD_COMPUTER_BUSY_ERROR);
17
+ }
@@ -15187,10 +15187,17 @@ var appConfigSchema = external_exports.object({
15187
15187
  vps: vpsConfigSchema.optional(),
15188
15188
  /** Optional OpenCode key; persisted write-only and passed only to its child. */
15189
15189
  opencodeGo: external_exports.object({ apiKey: optionalText }).optional(),
15190
- /** Voice credentials and the selected voice id. `provider` picks the
15191
- * engine: "elevenlabs" (default; needs a key) or "system" (the Mac's
15192
- * built-in voices, no key). */
15193
- tts: external_exports.object({ key: optionalText, voice: optionalText, provider: external_exports.enum(["elevenlabs", "system"]).optional() }).optional(),
15190
+ /** Voice settings and the selected voice id. `provider` picks the
15191
+ * engine: "elevenlabs" (default; needs a key), "system" (the Mac's
15192
+ * built-in voices, no key), or "chatterbox" (a local OpenAI-compatible
15193
+ * Chatterbox server; `baseUrl` and `model` are settings, not secrets). */
15194
+ tts: external_exports.object({
15195
+ key: optionalText,
15196
+ voice: optionalText,
15197
+ provider: external_exports.enum(["elevenlabs", "system", "chatterbox"]).optional(),
15198
+ baseUrl: external_exports.string().trim().max(2048).refine((value) => !value || /^https?:\/\//i.test(value), "the Chatterbox server address must start with http:// or https://").optional(),
15199
+ model: optionalText
15200
+ }).optional(),
15194
15201
  /** Avatar provider credentials stay separate; choosing a router never reuses a cloud key. */
15195
15202
  imageGen: external_exports.object({
15196
15203
  provider: external_exports.enum(["openai", "xai", "custom"]).optional(),
@@ -15249,7 +15256,6 @@ function resolveProxy(relative) {
15249
15256
  }
15250
15257
  var SPAWNED_PROXIES = {
15251
15258
  browser: resolveProxy("browser-proxy"),
15252
- computer: resolveProxy("computer-proxy"),
15253
15259
  localComputer: resolveProxy("local-computer-proxy"),
15254
15260
  permission: resolveProxy("permission-proxy"),
15255
15261
  containerMcp: resolveProxy("container-mcp"),
@@ -14593,7 +14593,6 @@ function resolveProxy(relative) {
14593
14593
  }
14594
14594
  var SPAWNED_PROXIES = {
14595
14595
  browser: resolveProxy("browser-proxy"),
14596
- computer: resolveProxy("computer-proxy"),
14597
14596
  localComputer: resolveProxy("local-computer-proxy"),
14598
14597
  permission: resolveProxy("permission-proxy"),
14599
14598
  containerMcp: resolveProxy("container-mcp"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmausbot",
3
- "version": "0.1.78",
3
+ "version": "0.1.80",
4
4
  "description": "Run the OpenMausBot server anywhere and pair your devices to it",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",