@avallon-labs/mcp 23.15.0 → 23.16.0-staging.567
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/dist/index.js
CHANGED
|
@@ -131,6 +131,25 @@ var getVoiceAgentVersion = async (voiceAgentId, version, options) => {
|
|
|
131
131
|
headers: res.headers
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
|
+
var getGetVoiceAgentVersionChangeSummaryUrl = (voiceAgentId, version) => {
|
|
135
|
+
return `/v1/voice-agents/${voiceAgentId}/versions/${version}/change-summary`;
|
|
136
|
+
};
|
|
137
|
+
var getVoiceAgentVersionChangeSummary = async (voiceAgentId, version, options) => {
|
|
138
|
+
const res = await fetch(
|
|
139
|
+
getGetVoiceAgentVersionChangeSummaryUrl(voiceAgentId, version),
|
|
140
|
+
{
|
|
141
|
+
...options,
|
|
142
|
+
method: "GET"
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
146
|
+
const data = body ? JSON.parse(body) : {};
|
|
147
|
+
return {
|
|
148
|
+
data,
|
|
149
|
+
status: res.status,
|
|
150
|
+
headers: res.headers
|
|
151
|
+
};
|
|
152
|
+
};
|
|
134
153
|
var getAddToolsToVoiceAgentUrl = (voiceAgentId) => {
|
|
135
154
|
return `/v1/voice-agents/${voiceAgentId}/tools`;
|
|
136
155
|
};
|
|
@@ -2265,6 +2284,20 @@ var getVoiceAgentVersionHandler = async (args) => {
|
|
|
2265
2284
|
]
|
|
2266
2285
|
};
|
|
2267
2286
|
};
|
|
2287
|
+
var getVoiceAgentVersionChangeSummaryHandler = async (args) => {
|
|
2288
|
+
const res = await getVoiceAgentVersionChangeSummary(
|
|
2289
|
+
args.pathParams.voiceAgentId,
|
|
2290
|
+
args.pathParams.version
|
|
2291
|
+
);
|
|
2292
|
+
return {
|
|
2293
|
+
content: [
|
|
2294
|
+
{
|
|
2295
|
+
type: "text",
|
|
2296
|
+
text: JSON.stringify(res)
|
|
2297
|
+
}
|
|
2298
|
+
]
|
|
2299
|
+
};
|
|
2300
|
+
};
|
|
2268
2301
|
var addToolsToVoiceAgentHandler = async (args) => {
|
|
2269
2302
|
const res = await addToolsToVoiceAgent(
|
|
2270
2303
|
args.pathParams.voiceAgentId,
|
|
@@ -4013,6 +4046,15 @@ var GetVoiceAgentVersionResponse = zod.object({
|
|
|
4013
4046
|
"Voice agent config field names (matching the keys on the voice agent response) whose values differ from the previous version. Empty for version 1."
|
|
4014
4047
|
)
|
|
4015
4048
|
});
|
|
4049
|
+
var GetVoiceAgentVersionChangeSummaryParams = zod.object({
|
|
4050
|
+
voiceAgentId: zod.string().uuid(),
|
|
4051
|
+
version: zod.number()
|
|
4052
|
+
});
|
|
4053
|
+
var GetVoiceAgentVersionChangeSummaryResponse = zod.object({
|
|
4054
|
+
summary: zod.string().describe(
|
|
4055
|
+
"AI-generated summary of what changed between this version and the previous one. Empty string when there is no previous version (version 1)."
|
|
4056
|
+
)
|
|
4057
|
+
});
|
|
4016
4058
|
var AddToolsToVoiceAgentParams = zod.object({
|
|
4017
4059
|
voiceAgentId: zod.string().uuid()
|
|
4018
4060
|
});
|
|
@@ -6621,6 +6663,14 @@ server.tool(
|
|
|
6621
6663
|
},
|
|
6622
6664
|
getVoiceAgentVersionHandler
|
|
6623
6665
|
);
|
|
6666
|
+
server.tool(
|
|
6667
|
+
"getVoiceAgentVersionChangeSummary",
|
|
6668
|
+
"Get voice agent version change summary",
|
|
6669
|
+
{
|
|
6670
|
+
pathParams: GetVoiceAgentVersionChangeSummaryParams
|
|
6671
|
+
},
|
|
6672
|
+
getVoiceAgentVersionChangeSummaryHandler
|
|
6673
|
+
);
|
|
6624
6674
|
server.tool(
|
|
6625
6675
|
"addToolsToVoiceAgent",
|
|
6626
6676
|
"Add tools to voice agent",
|
|
@@ -7452,4 +7502,4 @@ var transport = new StdioServerTransport();
|
|
|
7452
7502
|
server.connect(transport).then(() => {
|
|
7453
7503
|
console.error("MCP server running on stdio");
|
|
7454
7504
|
}).catch(console.error);
|
|
7455
|
-
//# sourceMappingURL=server-
|
|
7505
|
+
//# sourceMappingURL=server-JBG4XB2I.js.map
|