@ouro.bot/cli 0.1.0-alpha.1177 → 0.1.0-alpha.1179

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.
@@ -6,9 +6,9 @@
6
6
  <meta name="color-scheme" content="dark" />
7
7
  <title>Ouro Mailbox</title>
8
8
  <meta name="description" content="The daemon-hosted shared orientation surface for agents alive on this machine." />
9
- <script type="module" crossorigin src="/assets/index-CcfmfCyO.js"></script>
10
- <link rel="modulepreload" crossorigin href="/assets/vendor-tRKTU6Ih.js">
11
- <link rel="stylesheet" crossorigin href="/assets/index-JVa7jDQI.css">
9
+ <script type="module" crossorigin src="/assets/index-DNSDr1Lb.js"></script>
10
+ <link rel="modulepreload" crossorigin href="/assets/vendor-D_wlGdJf.js">
11
+ <link rel="stylesheet" crossorigin href="/assets/index-DooL30tv.css">
12
12
  </head>
13
13
  <body>
14
14
  <div id="app"></div>
@@ -193,7 +193,7 @@ function psycheWriteAllowed(fileClass, _filePath, context) {
193
193
  && context.trustLevel === "family"
194
194
  && context.channel !== undefined && PSYCHE_IDENTITY_CHANNELS.has(context.channel)
195
195
  && context.isGroupChat !== true
196
- // On Teams only an explicit one-to-one counts: the sense reports a conversation of unknown type as one-to-one.
196
+ // On Teams only an explicit one-to-one counts; an unknown conversation type proves nothing.
197
197
  && (context.channel !== "teams" || context.isGroupChat === false);
198
198
  }
199
199
  /** The line a successful write to an identity file carries back to the agent. */
@@ -243,17 +243,19 @@ exports.attachmentToolDefinitions = [
243
243
  description = await (0, understand_1.describeImage)(agentName, { prompt, imageDataUrl, attachmentGuid: attachmentId, mimeType: materialized.mimeType });
244
244
  }
245
245
  catch (error) {
246
- if (!/MiniMax API key/.test(normalizeThrownReason(error)))
247
- throw error;
246
+ const reason = normalizeThrownReason(error);
247
+ const missingMinimaxKey = /MiniMax API key/.test(reason);
248
248
  return (0, tool_results_1.frictionToolResult)("describe_image", {
249
249
  kind: "external_blocker",
250
- recoverability: "blocked",
251
- summary: "MiniMax credentials are missing, so image understanding is unavailable until credentials are fixed.",
252
- signature: "describe_image:minimax-missing-key",
250
+ recoverability: missingMinimaxKey || error instanceof understand_1.UnsupportedImageModelError ? "blocked" : "retryable",
251
+ summary: reason,
252
+ signature: missingMinimaxKey ? "describe_image:minimax-missing-key" : "describe_image:provider-unavailable",
253
253
  suggested_next_actions: [
254
254
  {
255
255
  kind: "message",
256
- message: "Run `ouro auth --agent <agent> --provider minimax`, then retry describe_image.",
256
+ message: missingMinimaxKey
257
+ ? "Human-required: run `ouro auth --agent <agent> --provider minimax`, then retry describe_image."
258
+ : reason,
257
259
  },
258
260
  ],
259
261
  });
@@ -833,9 +833,9 @@ function parseTeamsQuotedReply(attachments, ids) {
833
833
  return undefined;
834
834
  }
835
835
  // Context from the Teams activity that carries OAuth tokens and signin ability
836
- /** Teams calls a one-to-one chat "personal"; a group chat or channel is shared with other people. Unknown counts as one-to-one, as before. */
836
+ /** Only Teams' explicit "personal" conversation type proves a one-to-one chat. */
837
837
  function teamsIsGroupChat(conversationType) {
838
- return conversationType !== undefined && conversationType !== "personal";
838
+ return conversationType === undefined ? undefined : conversationType !== "personal";
839
839
  }
840
840
  const OAUTH_SERVICE_LABELS = { graph: "Microsoft Graph", ado: "Azure DevOps", github: "GitHub" };
841
841
  const OAUTH_UNAVAILABLE_TTL_MS = 60 * 60 * 1000;
@@ -934,7 +934,7 @@ async function handleTeamsMessage(text, stream, conversationId, teamsContext, se
934
934
  channel: "teams",
935
935
  });
936
936
  // Pre-resolve friend for session path + slash commands (pipeline will re-use the cached result)
937
- const resolvedContext = await resolver.resolve();
937
+ const resolvedContext = { ...await resolver.resolve(), isGroupChat: teamsContext?.isGroupChat };
938
938
  const friendId = resolvedContext.friend.id;
939
939
  // The owner's "how's it going?" is answered from the status digest with no model turn.
940
940
  if (resolvedContext.friend.trustLevel === "family") {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1177",
3
+ "version": "0.1.0-alpha.1179",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@ouro.bot/cli",
9
- "version": "0.1.0-alpha.1177",
9
+ "version": "0.1.0-alpha.1179",
10
10
  "bundleDependencies": [
11
11
  "@ouro.bot/friends"
12
12
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1177",
3
+ "version": "0.1.0-alpha.1179",
4
4
  "engines": {
5
5
  "node": ">=22"
6
6
  },