@ouro.bot/cli 0.1.0-alpha.1168 → 0.1.0-alpha.1169
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/README.md +1 -1
- package/changelog.json +6 -0
- package/deploy/unraid/sanctuary.ouro/bundle-meta.json +1 -1
- package/deploy/unraid/sanctuary.xml +1 -1
- package/dist/repertoire/tools-awaiting.js +3 -3
- package/dist/repertoire/tools-base.js +0 -2
- package/dist/repertoire/tools-continuity.js +15 -20
- package/dist/repertoire/tools-escalation.js +1 -1
- package/dist/repertoire/tools-flow.js +11 -11
- package/dist/repertoire/tools-mail.js +14 -0
- package/dist/repertoire/tools-notes.js +2 -2
- package/dist/repertoire/tools-session.js +8 -8
- package/dist/repertoire/tools-trip.js +5 -5
- package/dist/repertoire/tools.js +4 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ npx ouro.bot@latest up # install the ouro command and start the daemon
|
|
|
21
21
|
|
|
22
22
|
- **You talk to it where you already are:** the terminal, Teams, iMessage, mail or a voice call.
|
|
23
23
|
- **It remembers.** Notes, people and promises live in the agent's own bundle and vault, so tomorrow it knows what you agreed today.
|
|
24
|
-
- **It does the work.** Real tools: files, shell, GitHub, Microsoft Graph, and coding agents it can hand work to. [Shepherd](https://ouroboros.bot
|
|
24
|
+
- **It does the work.** Real tools: files, shell, GitHub, Microsoft Graph, and coding agents it can hand work to. [Shepherd](https://ouroboros.bot/shepherd/) keeps the flock (the coding agents in your terminals, and the GitHub Copilot app's sessions), [Housesitter](https://ouroboros.bot/housesitter/) keeps the house (the Mac they live on), and [Butler](https://ouroboros.bot/butler/) looks after a home server.
|
|
25
25
|
- **Its errors go back to it, not to you.** If the model provider turns a request down or a tool call comes back broken, the agent hears what went wrong, fixes it and replies in the same turn. Only what needs a person, such as a sign-in, a usage limit or an outage, comes to you.
|
|
26
26
|
|
|
27
27
|
`ouro.bot` is the bootstrap wrapper: `npx ouro.bot@latest` installs `@ouro.bot/cli`, which gives you the `ouro` command.
|
package/changelog.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_note": "This changelog is maintained as part of the PR/version-bump workflow. Agent-curated, not auto-generated. Agents read this file directly via read_file to understand what changed between versions.",
|
|
3
3
|
"versions": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.1.0-alpha.1169",
|
|
6
|
+
"changes": [
|
|
7
|
+
"Tool schemas: one copy of external_event_disposition fields, shorter descriptions, mail tools only when the mail sense is enabled (about 4.5k fewer tokens per turn)"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.1168",
|
|
6
12
|
"changes": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0"?>
|
|
2
2
|
<Container version="2">
|
|
3
3
|
<Name>ouro-butler</Name>
|
|
4
|
-
<Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.
|
|
4
|
+
<Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1169</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
|
@@ -807,14 +807,14 @@ exports.awaitingToolDefinitions = [
|
|
|
807
807
|
type: "function",
|
|
808
808
|
function: {
|
|
809
809
|
name: "resolve_await",
|
|
810
|
-
description: "Resolve a pending await
|
|
810
|
+
description: "Resolve a pending await. yes: condition met; archives and fires the alert. no: anything else, including not yet or unable to tell; records the observation and polling continues. ask_owner (with question and choices): closes the await and asks my owner to decide, once; only when the condition cannot be met without their decision, for example a confirmed dead download.",
|
|
811
811
|
parameters: {
|
|
812
812
|
type: "object",
|
|
813
813
|
properties: {
|
|
814
814
|
name: { type: "string", description: "Await name (filename stem)." },
|
|
815
|
-
verdict: { type: "string", enum: ["yes", "no", "ask_owner"], description: "
|
|
815
|
+
verdict: { type: "string", enum: ["yes", "no", "ask_owner"], description: "yes, no or ask_owner" },
|
|
816
816
|
observation: { type: "string", description: "One-line summary of what I saw this tick." },
|
|
817
|
-
message: { type: "string", description: "Only for
|
|
817
|
+
message: { type: "string", description: "Only for yes: what I tell whoever asked, in plain words, sent as is" },
|
|
818
818
|
question: { type: "string", description: "Only for ask_owner: the decision I need from my owner, in plain words." },
|
|
819
819
|
choices: { type: "array", items: { type: "string" }, minItems: 2, maxItems: 4, description: "Only for ask_owner: 2 to 4 short options the owner can pick from." },
|
|
820
820
|
},
|
|
@@ -20,7 +20,6 @@ const tools_user_profile_1 = require("./tools-user-profile");
|
|
|
20
20
|
const tools_stripe_1 = require("./tools-stripe");
|
|
21
21
|
const tools_flight_1 = require("./tools-flight");
|
|
22
22
|
const tools_attachments_1 = require("./tools-attachments");
|
|
23
|
-
const tools_mail_1 = require("./tools-mail");
|
|
24
23
|
const tools_trip_1 = require("./tools-trip");
|
|
25
24
|
const tools_a2a_1 = require("./tools-a2a");
|
|
26
25
|
const tools_commerce_1 = require("./tools-commerce");
|
|
@@ -76,7 +75,6 @@ exports.baseToolDefinitions = [
|
|
|
76
75
|
...tools_stripe_1.stripeToolDefinitions,
|
|
77
76
|
...tools_flight_1.flightToolDefinitions,
|
|
78
77
|
...tools_attachments_1.attachmentToolDefinitions,
|
|
79
|
-
...tools_mail_1.mailToolDefinitions,
|
|
80
78
|
...tools_trip_1.tripToolDefinitions,
|
|
81
79
|
...tools_a2a_1.a2aToolDefinitions,
|
|
82
80
|
...tools_commerce_1.commerceToolDefinitions,
|
|
@@ -46,30 +46,29 @@ const intentions_1 = require("../arc/intentions");
|
|
|
46
46
|
const steward_policy_1 = require("../heart/steward-policy");
|
|
47
47
|
const await_parser_1 = require("../heart/awaiting/await-parser");
|
|
48
48
|
const externalEventDispositionProperties = {
|
|
49
|
-
recordPath: { type: "string", description: "
|
|
50
|
-
expectedGeneration: { type: "number", description: "
|
|
51
|
-
classifiedRevision: { type: "string", description: "
|
|
49
|
+
recordPath: { type: "string", description: "Receipt path from the external-event message" },
|
|
50
|
+
expectedGeneration: { type: "number", description: "Generation shown in the external-event turn" },
|
|
51
|
+
classifiedRevision: { type: "string", description: "Observation revision investigated this turn" },
|
|
52
52
|
classification: { type: "string", enum: ["expected", "needs_attention", "adopted", "snoozed", "dismissed_until_change", "resolved"] },
|
|
53
|
-
stewardPolicyKind: { type: "string", enum: ["current", "none"], description: "
|
|
54
|
-
stewardPolicyKey: { type: "string"
|
|
55
|
-
stewardPolicyVersion: { type: "number"
|
|
53
|
+
stewardPolicyKind: { type: "string", enum: ["current", "none"], description: "current with the live policy key/version when one applies, else none" },
|
|
54
|
+
stewardPolicyKey: { type: "string" },
|
|
55
|
+
stewardPolicyVersion: { type: "number" },
|
|
56
56
|
decision: { type: "string", enum: ["silent", "act", "ask", "report"] },
|
|
57
|
-
reason: { type: "string", description: "Internal audit note
|
|
58
|
-
owner_message: { type: "string", description: "Required for ask or report: the
|
|
59
|
-
nextWake: { type: "string", enum: ["on_change", "on_escalation", "on_recovery", "at"], description: "
|
|
60
|
-
wakeAt: { type: "string", description: "ISO time
|
|
61
|
-
awaitId: { type: "string", description: "
|
|
62
|
-
careId: { type: "string"
|
|
57
|
+
reason: { type: "string", description: "Internal audit note; never shown to the owner" },
|
|
58
|
+
owner_message: { type: "string", description: "Required for ask or report: the short plain message the owner reads. No ids, leases, generations or receipts." },
|
|
59
|
+
nextWake: { type: "string", enum: ["on_change", "on_escalation", "on_recovery", "at"], description: "on_change unless you called await_condition for this event; then at, with its awaitId" },
|
|
60
|
+
wakeAt: { type: "string", description: "ISO time, only for nextWake=at" },
|
|
61
|
+
awaitId: { type: "string", description: "await_condition receipt, for nextWake=at" },
|
|
62
|
+
careId: { type: "string" },
|
|
63
63
|
actionRefs: { type: "array", items: { type: "string" } },
|
|
64
64
|
verificationRefs: { type: "array", items: { type: "string" } },
|
|
65
65
|
};
|
|
66
|
-
const externalEventDispositionRequired = ["recordPath", "expectedGeneration", "classifiedRevision", "classification", "stewardPolicyKind", "decision", "reason", "nextWake"];
|
|
67
66
|
const externalEventDispositionBatchSchema = {
|
|
68
67
|
type: "array",
|
|
69
68
|
minItems: 1,
|
|
70
69
|
maxItems: 32,
|
|
71
|
-
description: "
|
|
72
|
-
items: { type: "object"
|
|
70
|
+
description: "One disposition per lease of a coalesced external-event turn, each with the single-form fields",
|
|
71
|
+
items: { type: "object" },
|
|
73
72
|
};
|
|
74
73
|
// The owner reads owner_message verbatim, so internal bookkeeping words never reach them.
|
|
75
74
|
const OWNER_MESSAGE_FORBIDDEN = /\b(generation|lease|revision|receipt|disposition|claimOwner|recordPath)s?\b|[\u200b-\u200f\u202a-\u202e\u2060-\u206f\ufeff]/iu;
|
|
@@ -245,17 +244,13 @@ exports.continuityToolDefinitions = [
|
|
|
245
244
|
type: "function",
|
|
246
245
|
function: {
|
|
247
246
|
name: "external_event_disposition",
|
|
248
|
-
description: "Classify the
|
|
247
|
+
description: "Classify the external event I just investigated. ask and report send owner_message (the only way to reach the owner); silent and act only record. In a batch only the first ask or report sends, covering the rest, so make its owner_message cover every incident.",
|
|
249
248
|
parameters: {
|
|
250
249
|
type: "object",
|
|
251
250
|
properties: {
|
|
252
251
|
...externalEventDispositionProperties,
|
|
253
252
|
batch: externalEventDispositionBatchSchema,
|
|
254
253
|
},
|
|
255
|
-
oneOf: [
|
|
256
|
-
{ type: "object", properties: externalEventDispositionProperties, required: externalEventDispositionRequired },
|
|
257
|
-
{ type: "object", properties: { batch: externalEventDispositionBatchSchema }, required: ["batch"] },
|
|
258
|
-
],
|
|
259
254
|
additionalProperties: false,
|
|
260
255
|
},
|
|
261
256
|
},
|
|
@@ -50,7 +50,7 @@ exports.reportFailureToolDefinition = {
|
|
|
50
50
|
type: "function",
|
|
51
51
|
function: {
|
|
52
52
|
name: "report_failure",
|
|
53
|
-
description: "File a failure report for the engineers who fix you
|
|
53
|
+
description: "File a failure report for the engineers who fix you, when a tool you need is missing or errors in a way you cannot work around. File it at once and ask the owner for nothing. Report the actual result (queued, or saved locally pending authorization); never claim delivery or a GitHub issue from a local save. A repeat retries the same report.",
|
|
54
54
|
parameters: {
|
|
55
55
|
type: "object",
|
|
56
56
|
properties: {
|
|
@@ -5,51 +5,51 @@ exports.ponderTool = {
|
|
|
5
5
|
type: "function",
|
|
6
6
|
function: {
|
|
7
7
|
name: "ponder",
|
|
8
|
-
description: "create or revise a
|
|
8
|
+
description: "create or revise a ponder packet: harness friction, research, or reflection that should survive this turn. when asked to think privately and return later from an outward session, keep literal return tokens and constraints in payload_json or success_criteria, then only acknowledge that the private pass is queued. in private runtime it only preserves state; surface an existing held item instead of pondering a replacement. does not end the turn. not for trivial questions.",
|
|
9
9
|
parameters: {
|
|
10
10
|
type: "object",
|
|
11
11
|
properties: {
|
|
12
12
|
action: {
|
|
13
13
|
type: "string",
|
|
14
14
|
enum: ["create", "revise"],
|
|
15
|
-
description: "create
|
|
15
|
+
description: "create, or revise a drafting packet",
|
|
16
16
|
},
|
|
17
17
|
kind: {
|
|
18
18
|
type: "string",
|
|
19
19
|
enum: ["harness_friction", "research", "reflection"],
|
|
20
|
-
description: "
|
|
20
|
+
description: "packet kind",
|
|
21
21
|
},
|
|
22
22
|
packet_id: {
|
|
23
23
|
type: "string",
|
|
24
|
-
description: "
|
|
24
|
+
description: "for revise",
|
|
25
25
|
},
|
|
26
26
|
follows_packet_id: {
|
|
27
27
|
type: "string",
|
|
28
|
-
description: "
|
|
28
|
+
description: "earlier packet this follows from",
|
|
29
29
|
},
|
|
30
30
|
objective: {
|
|
31
31
|
type: "string",
|
|
32
|
-
description: "
|
|
32
|
+
description: "durable objective",
|
|
33
33
|
},
|
|
34
34
|
summary: {
|
|
35
35
|
type: "string",
|
|
36
|
-
description: "brief factual summary
|
|
36
|
+
description: "brief factual summary",
|
|
37
37
|
},
|
|
38
38
|
success_criteria: {
|
|
39
39
|
type: "string",
|
|
40
|
-
description: "newline-delimited
|
|
40
|
+
description: "newline-delimited bullets",
|
|
41
41
|
},
|
|
42
42
|
payload_json: {
|
|
43
43
|
type: "string",
|
|
44
|
-
description: "JSON object
|
|
44
|
+
description: "JSON object: exact markers, return wording or constraints the private pass must keep ({} if none)",
|
|
45
45
|
},
|
|
46
46
|
thought: {
|
|
47
47
|
type: "string",
|
|
48
|
-
description: "deprecated
|
|
48
|
+
description: "deprecated: becomes a reflection packet",
|
|
49
49
|
},
|
|
50
50
|
say: {
|
|
51
51
|
type: "string",
|
|
52
|
-
description: "deprecated
|
|
52
|
+
description: "deprecated: no effect",
|
|
53
53
|
},
|
|
54
54
|
},
|
|
55
55
|
},
|
|
@@ -7,7 +7,9 @@ exports.mailToolDefinitions = exports.__mailStatusTestOnly = void 0;
|
|
|
7
7
|
exports.renderCachedMessageSummary = renderCachedMessageSummary;
|
|
8
8
|
exports.mergeCachedMailSearchDocuments = mergeCachedMailSearchDocuments;
|
|
9
9
|
exports.searchSuccessfulImportArchives = searchSuccessfulImportArchives;
|
|
10
|
+
exports.mailToolsEnabled = mailToolsEnabled;
|
|
10
11
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
12
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
11
13
|
const friends_1 = require("@ouro.bot/friends");
|
|
12
14
|
const file_store_1 = require("../mailroom/file-store");
|
|
13
15
|
const reader_1 = require("../mailroom/reader");
|
|
@@ -858,6 +860,18 @@ async function renderMailStatus(input) {
|
|
|
858
860
|
...renderRecentImportOperations(input.agentId),
|
|
859
861
|
].join("\n");
|
|
860
862
|
}
|
|
863
|
+
/** The mail tools exist only for an agent that turned the mail sense on in agent.json (`ouro connect mail` does). */
|
|
864
|
+
function mailToolsEnabled(agentRoot) {
|
|
865
|
+
if (!agentRoot)
|
|
866
|
+
return false;
|
|
867
|
+
try {
|
|
868
|
+
const config = JSON.parse(node_fs_1.default.readFileSync(node_path_1.default.join(agentRoot, "agent.json"), "utf-8"));
|
|
869
|
+
return config.senses?.mail?.enabled === true;
|
|
870
|
+
}
|
|
871
|
+
catch {
|
|
872
|
+
return false;
|
|
873
|
+
}
|
|
874
|
+
}
|
|
861
875
|
exports.mailToolDefinitions = [
|
|
862
876
|
{
|
|
863
877
|
tool: {
|
|
@@ -397,12 +397,12 @@ exports.notesToolDefinitions = [
|
|
|
397
397
|
type: "function",
|
|
398
398
|
function: {
|
|
399
399
|
name: "save_friend_note",
|
|
400
|
-
description: "save something i learned about my friend
|
|
400
|
+
description: "save something i learned about my friend: type name (display name), tool_preference, or note. Sanctuary relationship preferences take source stated (they said it), observed (my revisable inference) or default, and only keys communication or timing. Any friend may save key reachChannel (with source): bluebubbles or teams, the channel to reach them on outside a conversation. Notes never grant authority; that belongs in steward policy. override=true replaces an existing value.",
|
|
401
401
|
parameters: {
|
|
402
402
|
type: "object",
|
|
403
403
|
properties: {
|
|
404
404
|
type: { type: "string", enum: ["name", "tool_preference", "note"], description: "what kind of information to save" },
|
|
405
|
-
key: { type: "string", description: "category key (required for tool_preference and note
|
|
405
|
+
key: { type: "string", description: "category key (required for tool_preference and note)" },
|
|
406
406
|
source: { type: "string", enum: ["stated", "observed", "default"], description: "preference provenance; required for Sanctuary relationship preferences and for reachChannel" },
|
|
407
407
|
content: { type: "string", description: "the value to save" },
|
|
408
408
|
override: { type: "string", enum: ["true", "false"], description: "set to 'true' to overwrite an existing value" },
|
|
@@ -803,20 +803,20 @@ exports.sessionToolDefinitions = [
|
|
|
803
803
|
type: "function",
|
|
804
804
|
function: {
|
|
805
805
|
name: "send_message",
|
|
806
|
-
description: "send a message to a friend's session.
|
|
806
|
+
description: "send a message to a friend's session. Delivers at once when authorized from a trusted live chat; otherwise reports queued, blocked or failed. For user-requested private-return work use ponder, not friendId=self.",
|
|
807
807
|
parameters: {
|
|
808
808
|
type: "object",
|
|
809
809
|
properties: {
|
|
810
810
|
friendId: { type: "string", description: "the friend UUID (or 'self')" },
|
|
811
|
-
channel: { type: "string", description: "
|
|
811
|
+
channel: { type: "string", description: "cli, teams, bluebubbles, voice (starts a live phone call to a trusted friend), mcp, or legacy inner" },
|
|
812
812
|
key: { type: "string", description: "session key (defaults to 'session')" },
|
|
813
813
|
content: { type: "string", description: "the message content to send" },
|
|
814
|
-
voiceAudioSource: { type: "string", enum: ["tone", "url", "file"], description: "
|
|
815
|
-
voiceAudioUrl: { type: "string", description: "
|
|
816
|
-
voiceAudioPath: { type: "string", description: "
|
|
817
|
-
voiceAudioLabel: { type: "string", description: "
|
|
818
|
-
voiceAudioToneHz: { type: "number", description: "
|
|
819
|
-
voiceAudioDurationMs: { type: "number", description: "
|
|
814
|
+
voiceAudioSource: { type: "string", enum: ["tone", "url", "file"], description: "voice only: non-speech audio after the greeting" },
|
|
815
|
+
voiceAudioUrl: { type: "string", description: "for url" },
|
|
816
|
+
voiceAudioPath: { type: "string", description: "for file" },
|
|
817
|
+
voiceAudioLabel: { type: "string", description: "label" },
|
|
818
|
+
voiceAudioToneHz: { type: "number", description: "for tone" },
|
|
819
|
+
voiceAudioDurationMs: { type: "number", description: "milliseconds" },
|
|
820
820
|
},
|
|
821
821
|
required: ["friendId", "channel", "content"],
|
|
822
822
|
},
|
|
@@ -696,16 +696,16 @@ exports.tripToolDefinitions = [
|
|
|
696
696
|
type: "function",
|
|
697
697
|
function: {
|
|
698
698
|
name: "trip_update_leg",
|
|
699
|
-
description: "Update
|
|
699
|
+
description: "Update fields of one existing leg without re-emitting the trip; evidence is kept unless overwritten. `kind` cannot change (that is a new leg). Needs trip_update_leg_preview first and its previewToken.",
|
|
700
700
|
parameters: {
|
|
701
701
|
type: "object",
|
|
702
702
|
properties: {
|
|
703
703
|
tripId: { type: "string", description: "Canonical trip id." },
|
|
704
704
|
legId: { type: "string", description: "Leg id within the trip." },
|
|
705
|
-
updates: { type: "string", description: "JSON object of leg fields to update
|
|
706
|
-
updatedAt: { type: "string", description: "ISO timestamp for the update
|
|
707
|
-
updateReason: { type: "string", description: "One-line source or reason
|
|
708
|
-
previewToken: { type: "string", description: "
|
|
705
|
+
updates: { type: "string", description: "JSON object of leg fields to update (not legId or kind)" },
|
|
706
|
+
updatedAt: { type: "string", description: "ISO timestamp for the update" },
|
|
707
|
+
updateReason: { type: "string", description: "One-line source or reason for this update" },
|
|
708
|
+
previewToken: { type: "string", description: "From trip_update_leg_preview" },
|
|
709
709
|
},
|
|
710
710
|
required: ["tripId", "legId", "updates", "updatedAt", "updateReason", "previewToken"],
|
|
711
711
|
},
|
package/dist/repertoire/tools.js
CHANGED
|
@@ -38,6 +38,7 @@ const tools_flow_1 = require("./tools-flow");
|
|
|
38
38
|
const tools_steward_policy_1 = require("./tools-steward-policy");
|
|
39
39
|
const tools_house_care_1 = require("./tools-house-care");
|
|
40
40
|
const tools_shepherd_1 = require("./tools-shepherd");
|
|
41
|
+
const tools_mail_1 = require("./tools-mail");
|
|
41
42
|
const tools_app_sessions_1 = require("./tools-app-sessions");
|
|
42
43
|
const steward_policy_1 = require("../heart/steward-policy");
|
|
43
44
|
const relationship_authorization_1 = require("./relationship-authorization");
|
|
@@ -102,7 +103,7 @@ Object.defineProperty(exports, "speakTool", { enumerable: true, get: function ()
|
|
|
102
103
|
var tools_surface_2 = require("./tools-surface");
|
|
103
104
|
Object.defineProperty(exports, "surfaceToolDef", { enumerable: true, get: function () { return tools_surface_2.surfaceToolDef; } });
|
|
104
105
|
// All tool definitions in a single registry
|
|
105
|
-
const additionalDefinitions = [...tools_chat_1.chatToolDefinitions, ...tools_teams_1.teamsToolDefinitions, ...ado_semantic_1.adoSemanticToolDefinitions, ...tools_github_1.githubToolDefinitions, ...tools_bundle_1.bundleToolDefinitions, ...tools_voice_1.voiceToolDefinitions, ...tools_unraid_1.unraidToolDefinitions, tools_steward_policy_1.stewardPolicyToolDefinition, ...tools_house_care_1.houseCareToolDefinitions, tools_surface_1.surfaceToolDefinition, ...tools_shepherd_1.shepherdToolDefinitions, ...tools_app_sessions_1.appSessionsToolDefinitions];
|
|
106
|
+
const additionalDefinitions = [...tools_chat_1.chatToolDefinitions, ...tools_teams_1.teamsToolDefinitions, ...ado_semantic_1.adoSemanticToolDefinitions, ...tools_github_1.githubToolDefinitions, ...tools_bundle_1.bundleToolDefinitions, ...tools_voice_1.voiceToolDefinitions, ...tools_unraid_1.unraidToolDefinitions, tools_steward_policy_1.stewardPolicyToolDefinition, ...tools_house_care_1.houseCareToolDefinitions, tools_surface_1.surfaceToolDefinition, ...tools_shepherd_1.shepherdToolDefinitions, ...tools_app_sessions_1.appSessionsToolDefinitions, ...tools_mail_1.mailToolDefinitions];
|
|
106
107
|
const COMMERCE_AUTHORITY_TOOLS = new Set(["stripe_create_card", "flight_hold", "flight_book"]);
|
|
107
108
|
class ToolSelectionError extends Error {
|
|
108
109
|
}
|
|
@@ -183,6 +184,8 @@ function selectToolsForChannel(capabilities, toolPreferences, _context, provider
|
|
|
183
184
|
...((0, tools_shepherd_1.shepherdToolsEnabled)(context?.agentRoot ?? safeGetAgentRoot()) ? tools_shepherd_1.shepherdToolDefinitions : []),
|
|
184
185
|
// The app-sessions tools exist only for an agent that turned the sense on in agent.json.
|
|
185
186
|
...((0, tools_app_sessions_1.appSessionsToolsEnabled)(context?.agentRoot ?? safeGetAgentRoot()) ? tools_app_sessions_1.appSessionsToolDefinitions : []),
|
|
187
|
+
// The mail tools exist only for an agent that turned the mail sense on in agent.json.
|
|
188
|
+
...((0, tools_mail_1.mailToolsEnabled)(context?.agentRoot ?? safeGetAgentRoot()) ? tools_mail_1.mailToolDefinitions : []),
|
|
186
189
|
...tools_chat_1.chatToolDefinitions,
|
|
187
190
|
...(capabilities?.channel === "voice" ? tools_voice_1.voiceToolDefinitions : []),
|
|
188
191
|
...((0, tools_voice_local_1.localAudioToolGate)({ ...context, context: _context }).ok ? [tools_voice_local_1.voiceLocalAudioToolDefinition] : []),
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ouro.bot/cli",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.1169",
|
|
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.
|
|
9
|
+
"version": "0.1.0-alpha.1169",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"@ouro.bot/friends"
|
|
12
12
|
],
|