openmausbot 0.1.65 → 0.1.66

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.
@@ -108,4 +108,11 @@ export class ProviderAuthSessions {
108
108
  // Called when disposing the provider fleet, which owns child teardown.
109
109
  this.flows.clear();
110
110
  }
111
+ clearInstance(instanceId) {
112
+ const flow = this.flows.get(instanceId);
113
+ if (flow)
114
+ flow.revoked = true;
115
+ this.flows.delete(instanceId);
116
+ // The registry's per-instance disposal owns child teardown.
117
+ }
111
118
  }
@@ -31,6 +31,7 @@ export function resolveProxy(relative) {
31
31
  * the smoke test can assert each one actually exists in a packaged layout —
32
32
  * the check that would have caught the 0.1.24 breakage. */
33
33
  export const SPAWNED_PROXIES = {
34
+ browser: resolveProxy("browser-proxy"),
34
35
  computer: resolveProxy("computer-proxy"),
35
36
  permission: resolveProxy("permission-proxy"),
36
37
  containerMcp: resolveProxy("container-mcp"),
@@ -511,8 +511,8 @@ function transcriptBlockStarting(line) {
511
511
  }
512
512
  const TRANSCRIPT_ATTACHMENT_TAG = /^<attached-(image|file)[\t ]+path="([^"\r\n]*)"(?:[\t ]+name="([^"\r\n]*)")?[\t ]*\/>[\t ]*$/;
513
513
  /** Split a stored user message into its display text and attachments for
514
- * transcript rendering. Prompt-only tags never show in the bubble. */
515
- export function splitTranscriptAttachments(text) {
514
+ * transcript rendering. Markdown exports preserve whitespace; bubbles trim it. */
515
+ export function splitTranscriptAttachments(text, trimDisplay = true) {
516
516
  const images = [];
517
517
  const files = [];
518
518
  let display = "";
@@ -572,7 +572,7 @@ export function splitTranscriptAttachments(text) {
572
572
  display += text.slice(cursor, wholeLineEnd);
573
573
  cursor = wholeLineEnd;
574
574
  }
575
- return { display: display.trim(), images, files };
575
+ return { display: trimDisplay ? display.trim() : display, images, files };
576
576
  }
577
577
  /** Kept for callers outside the desktop bundle that used the old helper. */
578
578
  export function splitAttachedImages(text) {
@@ -15148,6 +15148,7 @@ function resolveProxy(relative) {
15148
15148
  return existsSync2(source) ? source : join3(SERVER_ROOT, `${relative}.js`);
15149
15149
  }
15150
15150
  var SPAWNED_PROXIES = {
15151
+ browser: resolveProxy("browser-proxy"),
15151
15152
  computer: resolveProxy("computer-proxy"),
15152
15153
  permission: resolveProxy("permission-proxy"),
15153
15154
  containerMcp: resolveProxy("container-mcp"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmausbot",
3
- "version": "0.1.65",
3
+ "version": "0.1.66",
4
4
  "description": "Run the OpenMausBot server anywhere and pair your devices to it",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",