@ouro.bot/cli 0.1.0-alpha.231 → 0.1.0-alpha.234
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/changelog.json +35 -3
- package/dist/heart/core.js +1 -1
- package/dist/heart/daemon/daemon.js +2 -3
- package/dist/heart/identity.js +14 -1
- package/dist/heart/mcp/mcp-server.js +45 -2
- package/dist/mind/prompt.js +2 -19
- package/dist/nerves/coverage/file-completeness.js +1 -0
- package/dist/repertoire/bitwarden-store.js +256 -0
- package/dist/repertoire/credential-access.js +37 -6
- package/dist/repertoire/guardrails.js +20 -2
- package/dist/repertoire/mcp-tools.js +61 -0
- package/dist/repertoire/tools-base.js +2 -0
- package/dist/repertoire/tools-credential.js +0 -2
- package/dist/repertoire/tools-vault.js +110 -0
- package/dist/repertoire/tools.js +29 -6
- package/dist/repertoire/travel-api-client.js +80 -14
- package/dist/repertoire/vault-setup.js +241 -0
- package/dist/senses/bluebubbles/index.js +1 -1
- package/dist/senses/cli.js +1 -1
- package/dist/senses/inner-dialog.js +1 -1
- package/dist/senses/shared-turn.js +4 -0
- package/dist/senses/teams.js +1 -1
- package/package.json +1 -1
- package/skills/travel-planning.md +2 -2
|
@@ -638,7 +638,7 @@ async function handleBlueBubblesNormalizedEvent(event, resolvedDeps, source) {
|
|
|
638
638
|
const mcpManager = await (0, mcp_manager_1.getSharedMcpManager)() ?? undefined;
|
|
639
639
|
const sessionMessages = existing?.messages && existing.messages.length > 0
|
|
640
640
|
? existing.messages
|
|
641
|
-
: [{ role: "system", content: await resolvedDeps.buildSystem("bluebubbles", {
|
|
641
|
+
: [{ role: "system", content: await resolvedDeps.buildSystem("bluebubbles", {}, context) }];
|
|
642
642
|
if (event.kind === "message") {
|
|
643
643
|
const agentName = resolvedDeps.getAgentName();
|
|
644
644
|
if ((0, inbound_log_1.hasRecordedBlueBubblesInbound)(agentName, event.chat.sessionKey, event.messageGuid)) {
|
package/dist/senses/cli.js
CHANGED
|
@@ -918,7 +918,7 @@ async function main(agentName, options) {
|
|
|
918
918
|
const mcpManager = await (0, mcp_manager_1.getSharedMcpManager)() ?? undefined;
|
|
919
919
|
const sessionMessages = existing?.messages && existing.messages.length > 0
|
|
920
920
|
? existing.messages
|
|
921
|
-
: [{ role: "system", content: await (0, prompt_1.buildSystem)("cli", {
|
|
921
|
+
: [{ role: "system", content: await (0, prompt_1.buildSystem)("cli", {}, resolvedContext) }];
|
|
922
922
|
// Per-turn pipeline input: CLI capabilities and pending dir
|
|
923
923
|
const cliCapabilities = (0, channel_1.getChannelCapabilities)("cli");
|
|
924
924
|
const currentAgentName = (0, identity_1.getAgentName)();
|
|
@@ -640,7 +640,7 @@ async function runInnerDialogTurn(options) {
|
|
|
640
640
|
};
|
|
641
641
|
}
|
|
642
642
|
// Fresh session: build system prompt
|
|
643
|
-
const systemPrompt = await (0, prompt_1.buildSystem)("inner", { toolChoiceRequired: true
|
|
643
|
+
const systemPrompt = await (0, prompt_1.buildSystem)("inner", { toolChoiceRequired: true });
|
|
644
644
|
return {
|
|
645
645
|
messages: [{ role: "system", content: systemPrompt }],
|
|
646
646
|
sessionPath: sessionFilePath,
|
|
@@ -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) => {
|
package/dist/senses/teams.js
CHANGED
|
@@ -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", {
|
|
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
|
@@ -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 `
|
|
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 (`
|
|
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
|
|