@ouro.bot/cli 0.1.0-alpha.230 → 0.1.0-alpha.233

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.
@@ -55,6 +55,7 @@ const context_2 = require("../mind/context");
55
55
  const tokens_1 = require("../mind/friends/tokens");
56
56
  const trust_gate_1 = require("./trust-gate");
57
57
  const pipeline_1 = require("./pipeline");
58
+ const mcp_manager_1 = require("../repertoire/mcp-manager");
58
59
  const runtime_1 = require("../nerves/runtime");
59
60
  const RESPONSE_CAP = 50_000;
60
61
  /**
@@ -102,6 +103,8 @@ async function runSenseTurn(options) {
102
103
  resolverParams = { provider: "local", externalId: `${username}@${hostname}`, displayName: username, channel };
103
104
  }
104
105
  const resolver = new resolver_1.FriendResolver(friendStore, resolverParams);
106
+ // Initialize MCP manager so MCP tools appear as first-class tools in the agent's tool list
107
+ const mcpManager = await (0, mcp_manager_1.getSharedMcpManager)() ?? undefined;
105
108
  // Session path and loading
106
109
  const sessPath = (0, config_1.sessionPath)(friendId, channel, sessionKey);
107
110
  const existing = (0, context_1.loadSession)(sessPath);
@@ -147,6 +150,7 @@ async function runSenseTurn(options) {
147
150
  externalId: friendId,
148
151
  enforceTrustGate: trust_gate_1.enforceTrustGate,
149
152
  drainPending: pending_1.drainPending,
153
+ runAgentOptions: { mcpManager },
150
154
  /* v8 ignore start — delegation wrappers; these just forward to the real functions */
151
155
  runAgent: (msgs, cb, ch, sig, opts) => (0, core_1.runAgent)(msgs, cb, ch, sig, opts),
152
156
  postTurn: (turnMessages, sessionPathArg, usage, hooks, state) => {
@@ -695,7 +695,7 @@ async function handleTeamsMessage(text, stream, conversationId, teamsContext, se
695
695
  const existing = (0, context_1.loadSession)(sessPath);
696
696
  const messages = existing?.messages && existing.messages.length > 0
697
697
  ? existing.messages
698
- : [{ role: "system", content: await (0, prompt_1.buildSystem)("teams", { mcpManager }, resolvedContext) }];
698
+ : [{ role: "system", content: await (0, prompt_1.buildSystem)("teams", {}, resolvedContext) }];
699
699
  (0, core_1.repairOrphanedToolCalls)(messages);
700
700
  return {
701
701
  messages,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.230",
3
+ "version": "0.1.0-alpha.233",
4
4
  "main": "dist/heart/daemon/ouro-entry.js",
5
5
  "bin": {
6
6
  "cli": "dist/heart/daemon/ouro-bot-entry.js",
@@ -26,7 +26,7 @@ browser tools -> reviews, local info, pricing
26
26
  ## Flight Search
27
27
 
28
28
  ### Using Duffel MCP (when available)
29
- - Search via `ouro mcp call duffel search_flights`
29
+ - Search via `duffel_search_flights` tool (first-class MCP tool)
30
30
  - Provide: origin, destination, dates, passengers, cabin class
31
31
  - Compare options on price, duration, stops, airline
32
32
 
@@ -45,7 +45,7 @@ Present top 3-5 options comparing:
45
45
  ## Accommodation Search
46
46
 
47
47
  ### Hotel Search
48
- - Use Expedia MCP when available (`ouro mcp call expedia search_hotels`)
48
+ - Use Expedia MCP when available (`expedia_search_hotels` tool)
49
49
  - Compare: price per night, total stay cost, location, rating, amenities
50
50
  - Check cancellation policies (crucial for travel planning)
51
51