@roarkanalytics/sdk-mcp 4.44.4 → 4.44.6
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.md +14 -0
- package/client-headers.d.mts +2 -2
- package/client-headers.d.ts +2 -2
- package/client-headers.js +1 -1
- package/client-headers.mjs +1 -1
- package/directory-output-schemas.d.mts.map +1 -1
- package/directory-output-schemas.d.ts.map +1 -1
- package/directory-output-schemas.js +67 -7
- package/directory-output-schemas.js.map +1 -1
- package/directory-output-schemas.mjs +67 -7
- package/directory-output-schemas.mjs.map +1 -1
- package/directory-tools.d.mts +2 -0
- package/directory-tools.d.mts.map +1 -1
- package/directory-tools.d.ts +2 -0
- package/directory-tools.d.ts.map +1 -1
- package/directory-tools.js +33 -16
- package/directory-tools.js.map +1 -1
- package/directory-tools.mjs +32 -15
- package/directory-tools.mjs.map +1 -1
- package/docs-search-tool.d.mts +10 -3
- package/docs-search-tool.d.mts.map +1 -1
- package/docs-search-tool.d.ts +10 -3
- package/docs-search-tool.d.ts.map +1 -1
- package/docs-search-tool.js +30 -3
- package/docs-search-tool.js.map +1 -1
- package/docs-search-tool.mjs +28 -2
- package/docs-search-tool.mjs.map +1 -1
- package/options.d.mts.map +1 -1
- package/options.d.ts.map +1 -1
- package/options.js +3 -2
- package/options.js.map +1 -1
- package/options.mjs +3 -2
- package/options.mjs.map +1 -1
- package/package.json +1 -1
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/client-headers.ts +1 -1
- package/src/directory-output-schemas.ts +84 -6
- package/src/directory-tools.ts +38 -16
- package/src/docs-search-tool.ts +33 -3
- package/src/options.ts +5 -2
- package/src/server.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.44.6](https://github.com/roarkhq/mcp-roark-analytics/compare/v4.44.5...v4.44.6) (2026-11-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **mcp:** an agent endpoint's value can be null, so list_agent_endpoints and create_agent_endpoint no longer fail output validation for outbound endpoints without a fixed number
|
|
9
|
+
|
|
10
|
+
## [4.44.5](https://github.com/roarkhq/mcp-roark-analytics/compare/v4.44.4...v4.44.5) (2026-11-12)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **mcp:** tool inputs describe what values mean, defaults move into the schema, get_simulation_results names its fields, and search_docs declares its output
|
|
16
|
+
|
|
3
17
|
## [4.44.4](https://github.com/roarkhq/mcp-roark-analytics/compare/v4.44.3...v4.44.4) (2026-11-12)
|
|
4
18
|
|
|
5
19
|
|
package/client-headers.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare const MCP_SERVER_VERSION = "4.44.
|
|
1
|
+
export declare const MCP_SERVER_VERSION = "4.44.6";
|
|
2
2
|
/**
|
|
3
3
|
* Sent on every request the server's SDK clients make, including the sandbox that
|
|
4
4
|
* runs model-written code. The SDK's user agent is the same for every program built
|
|
5
5
|
* on it, so this is how the API tells MCP traffic from direct SDK use.
|
|
6
6
|
*/
|
|
7
7
|
export declare const MCP_CLIENT_HEADERS: {
|
|
8
|
-
readonly 'X-Roark-Client': "mcp/4.44.
|
|
8
|
+
readonly 'X-Roark-Client': "mcp/4.44.6";
|
|
9
9
|
};
|
|
10
10
|
//# sourceMappingURL=client-headers.d.mts.map
|
package/client-headers.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare const MCP_SERVER_VERSION = "4.44.
|
|
1
|
+
export declare const MCP_SERVER_VERSION = "4.44.6";
|
|
2
2
|
/**
|
|
3
3
|
* Sent on every request the server's SDK clients make, including the sandbox that
|
|
4
4
|
* runs model-written code. The SDK's user agent is the same for every program built
|
|
5
5
|
* on it, so this is how the API tells MCP traffic from direct SDK use.
|
|
6
6
|
*/
|
|
7
7
|
export declare const MCP_CLIENT_HEADERS: {
|
|
8
|
-
readonly 'X-Roark-Client': "mcp/4.44.
|
|
8
|
+
readonly 'X-Roark-Client': "mcp/4.44.6";
|
|
9
9
|
};
|
|
10
10
|
//# sourceMappingURL=client-headers.d.ts.map
|
package/client-headers.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MCP_CLIENT_HEADERS = exports.MCP_SERVER_VERSION = void 0;
|
|
4
4
|
// Kept in step with package.json by scripts/sync-version.cjs, which `pnpm build` runs,
|
|
5
5
|
// alongside the literal src/server.ts reports in the MCP handshake.
|
|
6
|
-
exports.MCP_SERVER_VERSION = '4.44.
|
|
6
|
+
exports.MCP_SERVER_VERSION = '4.44.6'; // x-release-please-version
|
|
7
7
|
/**
|
|
8
8
|
* Sent on every request the server's SDK clients make, including the sandbox that
|
|
9
9
|
* runs model-written code. The SDK's user agent is the same for every program built
|
package/client-headers.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Kept in step with package.json by scripts/sync-version.cjs, which `pnpm build` runs,
|
|
2
2
|
// alongside the literal src/server.ts reports in the MCP handshake.
|
|
3
|
-
export const MCP_SERVER_VERSION = '4.44.
|
|
3
|
+
export const MCP_SERVER_VERSION = '4.44.6'; // x-release-please-version
|
|
4
4
|
/**
|
|
5
5
|
* Sent on every request the server's SDK clients make, including the sandbox that
|
|
6
6
|
* runs model-written code. The SDK's user agent is the same for every program built
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory-output-schemas.d.mts","sourceRoot":"","sources":["src/directory-output-schemas.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"directory-output-schemas.d.mts","sourceRoot":"","sources":["src/directory-output-schemas.ts"],"names":[],"mappings":"AA+JA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8JlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory-output-schemas.d.ts","sourceRoot":"","sources":["src/directory-output-schemas.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"directory-output-schemas.d.ts","sourceRoot":"","sources":["src/directory-output-schemas.ts"],"names":[],"mappings":"AA+JA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8JlC,CAAC"}
|
|
@@ -21,7 +21,13 @@ const object = (description, properties = {}) => ({
|
|
|
21
21
|
description,
|
|
22
22
|
properties,
|
|
23
23
|
});
|
|
24
|
-
const nullableObject = (description) => ({
|
|
24
|
+
const nullableObject = (description, properties = {}) => ({
|
|
25
|
+
type: ['object', 'null'],
|
|
26
|
+
description,
|
|
27
|
+
properties,
|
|
28
|
+
});
|
|
29
|
+
const nullableNumber = (description) => ({ type: ['number', 'null'], description });
|
|
30
|
+
const nullableBoolean = (description) => ({ type: ['boolean', 'null'], description });
|
|
25
31
|
const array = (description, items) => ({ type: 'array', description, items });
|
|
26
32
|
const timestamps = {
|
|
27
33
|
createdAt: string('When it was created, ISO 8601.'),
|
|
@@ -59,7 +65,7 @@ const agentEndpoint = object('An agent endpoint.', {
|
|
|
59
65
|
agentId: string('The agent this endpoint reaches.'),
|
|
60
66
|
type: string('Transport, such as PHONE.'),
|
|
61
67
|
direction: string('INCOMING, OUTGOING, or INCOMING_AND_OUTGOING.'),
|
|
62
|
-
value:
|
|
68
|
+
value: nullableString('The address Roark connects to, such as an E.164 phone number. null for an outbound phone endpoint with no fixed calling number.'),
|
|
63
69
|
environment: string('Environment name, such as production.'),
|
|
64
70
|
outboundDialType: string('How Roark starts an outbound call: NONE or HTTP_REQUEST.'),
|
|
65
71
|
outboundDialHttpRequestDefinitionId: nullableString('The HTTP request definition used when outboundDialType is HTTP_REQUEST.'),
|
|
@@ -161,11 +167,65 @@ exports.directoryOutputSchemas = {
|
|
|
161
167
|
listCallMetrics: single(array('Metric scores for the call.', callMetric)),
|
|
162
168
|
listMetricDefinitions: list('Metric definitions on this page.', metricDefinition, paginationWithLimit),
|
|
163
169
|
getSimulationResults: single(object('Results of the simulation run.', {
|
|
164
|
-
run: object('The run
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
170
|
+
run: object('The run itself.', {
|
|
171
|
+
simulationRunPlanJobId: string('Run id.'),
|
|
172
|
+
simulationRunPlanId: string('The plan the run executes.'),
|
|
173
|
+
simulationRunPlanName: nullableString('The plan name. null when the plan has since been deleted.'),
|
|
174
|
+
runNumber: nullableNumber('Per-project run number, shown as SR-42 in the app.'),
|
|
175
|
+
status: string('Run status, such as RUNNING_SIMULATIONS, COMPLETED, or FAILED.'),
|
|
176
|
+
triggeredBy: string('What started the run, such as TRIGGERED_FROM_API or SCHEDULED.'),
|
|
177
|
+
createdAt: string('When the run was created, ISO 8601.'),
|
|
178
|
+
startedAt: nullableString('When the run started, ISO 8601.'),
|
|
179
|
+
endedAt: nullableString('When the run ended, ISO 8601. null until it ends.'),
|
|
180
|
+
durationMs: nullableNumber('Wall-clock run time in milliseconds. null until the run ends.'),
|
|
181
|
+
}),
|
|
182
|
+
summary: object('Totals over the simulated calls finished so far.', {
|
|
183
|
+
score: nullableNumber("The run score, 0-100: the mean of each check's pass rate. null when nothing was evaluated."),
|
|
184
|
+
callPassRate: nullableNumber('passedCalls / evaluatedCalls, 0-100. null when nothing was evaluated.'),
|
|
185
|
+
checkPassRate: nullableNumber('Every check verdict on every call pooled, 0-100. null when nothing was evaluated.'),
|
|
186
|
+
totalCalls: number('Every simulated call of the run, retries included.'),
|
|
187
|
+
countedCalls: number('Calls whose results count: all but invalidated ones.'),
|
|
188
|
+
completedCalls: number('Counted calls that connected and produced a conversation.'),
|
|
189
|
+
evaluatedCalls: number('Counted calls at least one check graded.'),
|
|
190
|
+
passedCalls: number('Evaluated calls that passed every check.'),
|
|
191
|
+
failedCalls: number('Evaluated calls that failed at least one check.'),
|
|
192
|
+
}),
|
|
193
|
+
verdict: nullableObject('Pass or fail for the run, judged against the success criteria pinned on the plan. null until the run ends.', {
|
|
194
|
+
passed: boolean('Whether every check cleared its own minimum pass rate. Not derived from score: a high score can still fail.'),
|
|
195
|
+
score: nullableNumber('The same score as summary.score, for reporting only.'),
|
|
196
|
+
checks: array('Every check the run was judged on, with its pass rate and the minimum it needed.', object('One check.')),
|
|
197
|
+
failures: array('Every criterion the run missed. Empty when it passed.', object('One failure.')),
|
|
198
|
+
}),
|
|
199
|
+
metrics: array('Aggregate for each metric, checks first.', object('One metric aggregate.', {
|
|
200
|
+
metricDefinitionId: string('Metric definition id.'),
|
|
201
|
+
metricId: string('Metric slug.'),
|
|
202
|
+
name: string('Metric name.'),
|
|
203
|
+
outputType: string('Value type, such as BOOLEAN, NUMERIC, or SCALE.'),
|
|
204
|
+
isCheck: boolean('Whether this metric is one of the checks the run is judged on.'),
|
|
205
|
+
check: nullableObject("The check's tally. null for a metric that is not a check."),
|
|
206
|
+
evaluatedCalls: number('Counted calls with at least one value.'),
|
|
207
|
+
sampleSize: number('Values across those calls. A per-turn metric has several per call.'),
|
|
208
|
+
numeric: nullableObject('Summary statistics for numeric metrics. null when nothing was captured.'),
|
|
209
|
+
distribution: {
|
|
210
|
+
type: ['array', 'null'],
|
|
211
|
+
description: 'How many values took each reading, for BOOLEAN, SCALE, and CLASSIFICATION metrics.',
|
|
212
|
+
items: object('One reading and its count.'),
|
|
213
|
+
},
|
|
214
|
+
unitSymbol: nullableString('Unit of numeric, such as ms.'),
|
|
215
|
+
})),
|
|
216
|
+
calls: array('The simulated calls and their checks.', object('One simulated call.', {
|
|
217
|
+
simulationJobId: string('Simulated call id.'),
|
|
218
|
+
callId: nullableString('Call id. get_call and get_call_transcript take it as callId.'),
|
|
219
|
+
status: string('Call status, such as COMPLETED, ERROR, or INVALIDATED.'),
|
|
220
|
+
counted: boolean('false for an invalidated call: listed, never scored.'),
|
|
221
|
+
passed: nullableBoolean('Whether it passed every check that graded it. null when no check did.'),
|
|
222
|
+
personaName: nullableString('The persona that placed or took the call.'),
|
|
223
|
+
agentName: nullableString('The agent under test.'),
|
|
224
|
+
durationMs: nullableNumber('Call length in milliseconds.'),
|
|
225
|
+
attemptNumber: number('1 for the first attempt; higher for a retry.'),
|
|
226
|
+
checks: array('Each check on this call and its result.', object('One check result.')),
|
|
227
|
+
values: array("Call-level values of the run's other metrics.", object('One metric value.')),
|
|
228
|
+
})),
|
|
169
229
|
comparison: nullableObject('Comparison with an earlier run of the plan. null when there is none.'),
|
|
170
230
|
attemptSummary: object('Simulations placed against test cases. Differs from the call count only when the plan retried calls the agent never spoke on.'),
|
|
171
231
|
breakdowns: object('Pass rates and scores grouped by agent and by persona.'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory-output-schemas.js","sourceRoot":"","sources":["src/directory-output-schemas.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,iFAAiF;AACjF,+EAA+E;AAC/E,uDAAuD;AACvD,EAAE;AACF,iFAAiF;AACjF,gFAAgF;AAChF,gFAAgF;AAChF,kFAAkF;AAClF,8CAA8C;;;AAO9C,MAAM,MAAM,GAAG,CAAC,WAAmB,EAAS,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAAC;AACjF,MAAM,cAAc,GAAG,CAAC,WAAmB,EAAS,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;AACnG,MAAM,MAAM,GAAG,CAAC,WAAmB,EAAS,E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rB,yGAAyG,CAC1G;QACD,gBAAgB,EAAE,cAAc,CAC9B,iHAAiH,CAClH;KACF,CAAC,CACH;IACD,YAAY,EAAE,IAAI,CAAC,wBAAwB,EAAE,OAAO,EAAE,mBAAmB,CAAC;IAC1E,iBAAiB,EAAE,IAAI,CAAC,8BAA8B,EAAE,YAAY,EAAE,mBAAmB,CAAC;IAC1F,0BAA0B,EAAE,IAAI,CAAC,4BAA4B,EAAE,WAAW,EAAE,mBAAmB,CAAC;IAChG,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC,aAAa,CAAC;IAC1C,aAAa,EAAE,MAAM,CAAC,OAAO,CAAC;IAC9B,kBAAkB,EAAE,MAAM,CAAC,YAAY,CAAC;IACxC,aAAa,EAAE,MAAM,CACnB,MAAM,CAAC,kBAAkB,EAAE;QACzB,sBAAsB,EAAE,MAAM,CAAC,mDAAmD,CAAC;QACnF,mBAAmB,EAAE,MAAM,CAAC,4BAA4B,CAAC;QACzD,MAAM,EAAE,MAAM,CAAC,qDAAqD,CAAC;QACrE,kBAAkB,EAAE,MAAM,CAAC,2CAA2C,CAAC;QACvE,WAAW,EAAE,OAAO,CAAC,6DAA6D,CAAC;QACnF,SAAS,EAAE,MAAM,CAAC,qCAAqC,CAAC;KACzD,CAAC,CACH;CACF,CAAC"}
|
|
@@ -18,7 +18,13 @@ const object = (description, properties = {}) => ({
|
|
|
18
18
|
description,
|
|
19
19
|
properties,
|
|
20
20
|
});
|
|
21
|
-
const nullableObject = (description) => ({
|
|
21
|
+
const nullableObject = (description, properties = {}) => ({
|
|
22
|
+
type: ['object', 'null'],
|
|
23
|
+
description,
|
|
24
|
+
properties,
|
|
25
|
+
});
|
|
26
|
+
const nullableNumber = (description) => ({ type: ['number', 'null'], description });
|
|
27
|
+
const nullableBoolean = (description) => ({ type: ['boolean', 'null'], description });
|
|
22
28
|
const array = (description, items) => ({ type: 'array', description, items });
|
|
23
29
|
const timestamps = {
|
|
24
30
|
createdAt: string('When it was created, ISO 8601.'),
|
|
@@ -56,7 +62,7 @@ const agentEndpoint = object('An agent endpoint.', {
|
|
|
56
62
|
agentId: string('The agent this endpoint reaches.'),
|
|
57
63
|
type: string('Transport, such as PHONE.'),
|
|
58
64
|
direction: string('INCOMING, OUTGOING, or INCOMING_AND_OUTGOING.'),
|
|
59
|
-
value:
|
|
65
|
+
value: nullableString('The address Roark connects to, such as an E.164 phone number. null for an outbound phone endpoint with no fixed calling number.'),
|
|
60
66
|
environment: string('Environment name, such as production.'),
|
|
61
67
|
outboundDialType: string('How Roark starts an outbound call: NONE or HTTP_REQUEST.'),
|
|
62
68
|
outboundDialHttpRequestDefinitionId: nullableString('The HTTP request definition used when outboundDialType is HTTP_REQUEST.'),
|
|
@@ -158,11 +164,65 @@ export const directoryOutputSchemas = {
|
|
|
158
164
|
listCallMetrics: single(array('Metric scores for the call.', callMetric)),
|
|
159
165
|
listMetricDefinitions: list('Metric definitions on this page.', metricDefinition, paginationWithLimit),
|
|
160
166
|
getSimulationResults: single(object('Results of the simulation run.', {
|
|
161
|
-
run: object('The run
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
167
|
+
run: object('The run itself.', {
|
|
168
|
+
simulationRunPlanJobId: string('Run id.'),
|
|
169
|
+
simulationRunPlanId: string('The plan the run executes.'),
|
|
170
|
+
simulationRunPlanName: nullableString('The plan name. null when the plan has since been deleted.'),
|
|
171
|
+
runNumber: nullableNumber('Per-project run number, shown as SR-42 in the app.'),
|
|
172
|
+
status: string('Run status, such as RUNNING_SIMULATIONS, COMPLETED, or FAILED.'),
|
|
173
|
+
triggeredBy: string('What started the run, such as TRIGGERED_FROM_API or SCHEDULED.'),
|
|
174
|
+
createdAt: string('When the run was created, ISO 8601.'),
|
|
175
|
+
startedAt: nullableString('When the run started, ISO 8601.'),
|
|
176
|
+
endedAt: nullableString('When the run ended, ISO 8601. null until it ends.'),
|
|
177
|
+
durationMs: nullableNumber('Wall-clock run time in milliseconds. null until the run ends.'),
|
|
178
|
+
}),
|
|
179
|
+
summary: object('Totals over the simulated calls finished so far.', {
|
|
180
|
+
score: nullableNumber("The run score, 0-100: the mean of each check's pass rate. null when nothing was evaluated."),
|
|
181
|
+
callPassRate: nullableNumber('passedCalls / evaluatedCalls, 0-100. null when nothing was evaluated.'),
|
|
182
|
+
checkPassRate: nullableNumber('Every check verdict on every call pooled, 0-100. null when nothing was evaluated.'),
|
|
183
|
+
totalCalls: number('Every simulated call of the run, retries included.'),
|
|
184
|
+
countedCalls: number('Calls whose results count: all but invalidated ones.'),
|
|
185
|
+
completedCalls: number('Counted calls that connected and produced a conversation.'),
|
|
186
|
+
evaluatedCalls: number('Counted calls at least one check graded.'),
|
|
187
|
+
passedCalls: number('Evaluated calls that passed every check.'),
|
|
188
|
+
failedCalls: number('Evaluated calls that failed at least one check.'),
|
|
189
|
+
}),
|
|
190
|
+
verdict: nullableObject('Pass or fail for the run, judged against the success criteria pinned on the plan. null until the run ends.', {
|
|
191
|
+
passed: boolean('Whether every check cleared its own minimum pass rate. Not derived from score: a high score can still fail.'),
|
|
192
|
+
score: nullableNumber('The same score as summary.score, for reporting only.'),
|
|
193
|
+
checks: array('Every check the run was judged on, with its pass rate and the minimum it needed.', object('One check.')),
|
|
194
|
+
failures: array('Every criterion the run missed. Empty when it passed.', object('One failure.')),
|
|
195
|
+
}),
|
|
196
|
+
metrics: array('Aggregate for each metric, checks first.', object('One metric aggregate.', {
|
|
197
|
+
metricDefinitionId: string('Metric definition id.'),
|
|
198
|
+
metricId: string('Metric slug.'),
|
|
199
|
+
name: string('Metric name.'),
|
|
200
|
+
outputType: string('Value type, such as BOOLEAN, NUMERIC, or SCALE.'),
|
|
201
|
+
isCheck: boolean('Whether this metric is one of the checks the run is judged on.'),
|
|
202
|
+
check: nullableObject("The check's tally. null for a metric that is not a check."),
|
|
203
|
+
evaluatedCalls: number('Counted calls with at least one value.'),
|
|
204
|
+
sampleSize: number('Values across those calls. A per-turn metric has several per call.'),
|
|
205
|
+
numeric: nullableObject('Summary statistics for numeric metrics. null when nothing was captured.'),
|
|
206
|
+
distribution: {
|
|
207
|
+
type: ['array', 'null'],
|
|
208
|
+
description: 'How many values took each reading, for BOOLEAN, SCALE, and CLASSIFICATION metrics.',
|
|
209
|
+
items: object('One reading and its count.'),
|
|
210
|
+
},
|
|
211
|
+
unitSymbol: nullableString('Unit of numeric, such as ms.'),
|
|
212
|
+
})),
|
|
213
|
+
calls: array('The simulated calls and their checks.', object('One simulated call.', {
|
|
214
|
+
simulationJobId: string('Simulated call id.'),
|
|
215
|
+
callId: nullableString('Call id. get_call and get_call_transcript take it as callId.'),
|
|
216
|
+
status: string('Call status, such as COMPLETED, ERROR, or INVALIDATED.'),
|
|
217
|
+
counted: boolean('false for an invalidated call: listed, never scored.'),
|
|
218
|
+
passed: nullableBoolean('Whether it passed every check that graded it. null when no check did.'),
|
|
219
|
+
personaName: nullableString('The persona that placed or took the call.'),
|
|
220
|
+
agentName: nullableString('The agent under test.'),
|
|
221
|
+
durationMs: nullableNumber('Call length in milliseconds.'),
|
|
222
|
+
attemptNumber: number('1 for the first attempt; higher for a retry.'),
|
|
223
|
+
checks: array('Each check on this call and its result.', object('One check result.')),
|
|
224
|
+
values: array("Call-level values of the run's other metrics.", object('One metric value.')),
|
|
225
|
+
})),
|
|
166
226
|
comparison: nullableObject('Comparison with an earlier run of the plan. null when there is none.'),
|
|
167
227
|
attemptSummary: object('Simulations placed against test cases. Differs from the call count only when the plan retried calls the agent never spoke on.'),
|
|
168
228
|
breakdowns: object('Pass rates and scores grouped by agent and by persona.'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory-output-schemas.mjs","sourceRoot":"","sources":["src/directory-output-schemas.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,EAAE;AACF,iFAAiF;AACjF,+EAA+E;AAC/E,uDAAuD;AACvD,EAAE;AACF,iFAAiF;AACjF,gFAAgF;AAChF,gFAAgF;AACh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ool } from "./types.mjs";
|
|
|
8
8
|
* this surface describes what the server does and stops there.
|
|
9
9
|
*/
|
|
10
10
|
export declare const DIRECTORY_SERVER_INSTRUCTIONS: string;
|
|
11
|
+
/** The rule `optionalAgentIds` enforces, as a JSON Schema pattern: 1 to MAX_AGENT_IDS comma-separated UUIDs. */
|
|
12
|
+
export declare const AGENT_IDS_PATTERN = "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}(,[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}){0,99}$";
|
|
11
13
|
/**
|
|
12
14
|
* Tools exposed on the directory surface. Order is the core loop: find the
|
|
13
15
|
* project, read what is already there, then the writes that change it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory-tools.d.mts","sourceRoot":"","sources":["src/directory-tools.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,OAAO,EAKR,oBAAgB;AA0BjB;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,QAMqB,CAAC;
|
|
1
|
+
{"version":3,"file":"directory-tools.d.mts","sourceRoot":"","sources":["src/directory-tools.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,OAAO,EAKR,oBAAgB;AA0BjB;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,QAMqB,CAAC;AAyEhE,gHAAgH;AAChH,eAAO,MAAM,iBAAiB,sKAA8D,CAAC;AAskB7F;;;GAGG;AACH,wBAAgB,cAAc,IAAI,OAAO,EAAE,CA+nB1C"}
|
package/directory-tools.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ import { McpTool } from "./types.js";
|
|
|
8
8
|
* this surface describes what the server does and stops there.
|
|
9
9
|
*/
|
|
10
10
|
export declare const DIRECTORY_SERVER_INSTRUCTIONS: string;
|
|
11
|
+
/** The rule `optionalAgentIds` enforces, as a JSON Schema pattern: 1 to MAX_AGENT_IDS comma-separated UUIDs. */
|
|
12
|
+
export declare const AGENT_IDS_PATTERN = "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}(,[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}){0,99}$";
|
|
11
13
|
/**
|
|
12
14
|
* Tools exposed on the directory surface. Order is the core loop: find the
|
|
13
15
|
* project, read what is already there, then the writes that change it.
|
package/directory-tools.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory-tools.d.ts","sourceRoot":"","sources":["src/directory-tools.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,OAAO,EAKR,mBAAgB;AA0BjB;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,QAMqB,CAAC;
|
|
1
|
+
{"version":3,"file":"directory-tools.d.ts","sourceRoot":"","sources":["src/directory-tools.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,OAAO,EAKR,mBAAgB;AA0BjB;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,QAMqB,CAAC;AAyEhE,gHAAgH;AAChH,eAAO,MAAM,iBAAiB,sKAA8D,CAAC;AAskB7F;;;GAGG;AACH,wBAAgB,cAAc,IAAI,OAAO,EAAE,CA+nB1C"}
|
package/directory-tools.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
//
|
|
10
10
|
// The local code-execution server stays on `execute`. This file is not generated.
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.DIRECTORY_SERVER_INSTRUCTIONS = void 0;
|
|
12
|
+
exports.AGENT_IDS_PATTERN = exports.DIRECTORY_SERVER_INSTRUCTIONS = void 0;
|
|
13
13
|
exports.directoryTools = directoryTools;
|
|
14
14
|
const sdk_1 = require("@roarkanalytics/sdk");
|
|
15
15
|
const types_1 = require("./types.js");
|
|
@@ -93,8 +93,11 @@ const CALL_STATUSES = ['RINGING', 'IN_PROGRESS', 'ENDED'];
|
|
|
93
93
|
const CALL_SORT_FIELDS = ['createdAt', 'startedAt', 'endedAt', 'duration', 'title', 'status'];
|
|
94
94
|
const SORT_DIRECTIONS = ['asc', 'desc'];
|
|
95
95
|
/** GET /v1/call rejects a non-UUID in `agentId` and in `properties[agent_id][eq]`. */
|
|
96
|
-
const
|
|
96
|
+
const UUID_SOURCE = '[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}';
|
|
97
|
+
const UUID_PATTERN = new RegExp(`^${UUID_SOURCE}$`);
|
|
97
98
|
const MAX_AGENT_IDS = 100;
|
|
99
|
+
/** The rule `optionalAgentIds` enforces, as a JSON Schema pattern: 1 to MAX_AGENT_IDS comma-separated UUIDs. */
|
|
100
|
+
exports.AGENT_IDS_PATTERN = `^${UUID_SOURCE}(,${UUID_SOURCE}){0,${MAX_AGENT_IDS - 1}}$`;
|
|
98
101
|
const MAX_PROPERTY_FILTERS = 20;
|
|
99
102
|
const FLOW_TYPES = ['SCRIPTED', 'IMPROV', 'VOICEMAIL'];
|
|
100
103
|
const TRANSCRIPT_SOURCES = [
|
|
@@ -417,7 +420,10 @@ const flowAttachmentSchema = {
|
|
|
417
420
|
type: 'string',
|
|
418
421
|
description: 'Stable slug of a flow Roark provides, used instead of id. GET /v1/simulation/template lists them. Flows made in the project have no slug.',
|
|
419
422
|
},
|
|
420
|
-
happyPath: {
|
|
423
|
+
happyPath: {
|
|
424
|
+
type: 'boolean',
|
|
425
|
+
description: "true runs the flow's happy path, the conversation going as intended. It is resolved when the run starts, so it follows the flow as it is then.",
|
|
426
|
+
},
|
|
421
427
|
edgeCases: {
|
|
422
428
|
type: ['string', 'array'],
|
|
423
429
|
description: 'The string ALL runs every edge case the flow has when the run starts. An array runs only the listed edge cases, each named by id or slug.',
|
|
@@ -631,8 +637,7 @@ function directoryTools() {
|
|
|
631
637
|
after: optionalString(args, 'after'),
|
|
632
638
|
limit: optionalLimit(args),
|
|
633
639
|
}))),
|
|
634
|
-
defineTool('list_calls', 'List calls', 'Lists calls in a Roark project, simulated and live. Returns call ids, status, direction, and timestamps, without transcripts. Every filter and the sort apply together.
|
|
635
|
-
"properties filters on call properties: eq matches a value, ignoring case, and exists checks whether the property is set. The built-in agent_name, also accepted as agentName, matches any participating agent's current name, and agent_id matches one agent id. Any other name is a custom property.", objectSchema({
|
|
640
|
+
defineTool('list_calls', 'List calls', 'Lists calls in a Roark project, simulated and live. Returns call ids, status, direction, and timestamps, without transcripts. Every filter and the sort apply together.', objectSchema({
|
|
636
641
|
project: projectProperty,
|
|
637
642
|
searchText: {
|
|
638
643
|
type: 'string',
|
|
@@ -641,15 +646,16 @@ function directoryTools() {
|
|
|
641
646
|
status: {
|
|
642
647
|
type: 'string',
|
|
643
648
|
enum: [...CALL_STATUSES],
|
|
644
|
-
description: '
|
|
649
|
+
description: 'Where the calls are in their lifecycle: RINGING has not connected yet, IN_PROGRESS is live, ENDED has finished. When omitted, calls in every state are listed.',
|
|
645
650
|
},
|
|
646
651
|
agentId: {
|
|
647
652
|
type: 'string',
|
|
648
|
-
|
|
653
|
+
pattern: exports.AGENT_IDS_PATTERN,
|
|
654
|
+
description: 'Agents whose calls to list, by id from list_agents. A call matches when any of them took part. Separate several ids with commas.',
|
|
649
655
|
},
|
|
650
656
|
properties: {
|
|
651
657
|
type: 'object',
|
|
652
|
-
description:
|
|
658
|
+
description: "Call property filters, keyed by property name, at most 20. Each entry sets eq or exists, not both. eq matches a value, ignoring case, and exists checks whether the property is set. The built-in agent_name, also accepted as agentName, matches any participating agent's current name, and agent_id matches one agent id. Any other name is a custom property set on the call.",
|
|
653
659
|
additionalProperties: {
|
|
654
660
|
type: 'object',
|
|
655
661
|
description: 'One filter: eq or exists.',
|
|
@@ -665,12 +671,14 @@ function directoryTools() {
|
|
|
665
671
|
sortBy: {
|
|
666
672
|
type: 'string',
|
|
667
673
|
enum: [...CALL_SORT_FIELDS],
|
|
668
|
-
|
|
674
|
+
default: 'createdAt',
|
|
675
|
+
description: 'What orders the results: when the call was created, started, or ended, how long it lasted, its title, or its status.',
|
|
669
676
|
},
|
|
670
677
|
sortDirection: {
|
|
671
678
|
type: 'string',
|
|
672
679
|
enum: [...SORT_DIRECTIONS],
|
|
673
|
-
|
|
680
|
+
default: 'desc',
|
|
681
|
+
description: 'asc puts the earliest or smallest first, desc the latest or largest.',
|
|
674
682
|
},
|
|
675
683
|
simulationRunPlanJobId: {
|
|
676
684
|
type: 'string',
|
|
@@ -740,7 +748,7 @@ function directoryTools() {
|
|
|
740
748
|
type: {
|
|
741
749
|
type: 'string',
|
|
742
750
|
enum: [...FLOW_TYPES],
|
|
743
|
-
description: '
|
|
751
|
+
description: 'How the simulated caller behaves. IMPROV gives the caller a goal to improvise around, SCRIPTED follows an exact step graph, and VOICEMAIL plays a voicemail greeting to test the message the agent leaves. When omitted, flows of every type are listed.',
|
|
744
752
|
},
|
|
745
753
|
includeSystem: {
|
|
746
754
|
type: 'string',
|
|
@@ -800,21 +808,27 @@ function directoryTools() {
|
|
|
800
808
|
description: 'Id of the HTTP request definition Roark sends to make the agent dial, from GET /v1/http-request-definition. Required when outboundDialType is HTTP_REQUEST.',
|
|
801
809
|
},
|
|
802
810
|
}, ['agentId', 'value', 'direction']), directory_output_schemas_1.directoryOutputSchemas.createAgentEndpoint, writeAnnotations('Create agent endpoint'), writeMeta('agentEndpoint', '/v1/agent/endpoint'), async (reqContext, args) => scopedClient(reqContext, args).agentEndpoint.create(buildEndpointBody(args))),
|
|
803
|
-
defineTool('create_persona', 'Create persona', 'Creates a simulated caller persona in a Roark project. Each call adds a new persona, so repeating it creates a duplicate. It changes nothing else and places no calls.
|
|
811
|
+
defineTool('create_persona', 'Create persona', 'Creates a simulated caller persona in a Roark project. Each call adds a new persona, so repeating it creates a duplicate. It changes nothing else and places no calls. Returns the created persona; pass its id as personaOverrideId to create_customer_flow to use it.', objectSchema({
|
|
804
812
|
project: projectProperty,
|
|
805
813
|
name: { type: 'string', description: 'Name the caller uses in conversation.' },
|
|
806
|
-
language: {
|
|
814
|
+
language: {
|
|
815
|
+
type: 'string',
|
|
816
|
+
enum: [...LANGUAGES],
|
|
817
|
+
description: 'The language the simulated caller speaks, as an ISO 639-1 code: EN is English, ES Spanish.',
|
|
818
|
+
},
|
|
807
819
|
accent: { type: 'string', enum: [...ACCENTS], description: 'Accent the caller speaks with.' },
|
|
808
820
|
gender: { type: 'string', enum: [...GENDERS], description: 'Gender the persona is voiced with.' },
|
|
809
821
|
age: {
|
|
810
822
|
type: 'string',
|
|
811
823
|
enum: [...AGES],
|
|
812
|
-
|
|
824
|
+
default: 'ADULT',
|
|
825
|
+
description: 'How old the caller sounds.',
|
|
813
826
|
},
|
|
814
827
|
baseEmotion: {
|
|
815
828
|
type: 'string',
|
|
816
829
|
enum: [...EMOTIONS],
|
|
817
|
-
|
|
830
|
+
default: 'NEUTRAL',
|
|
831
|
+
description: 'The emotional state the simulated caller brings to the call.',
|
|
818
832
|
},
|
|
819
833
|
backstoryPrompt: {
|
|
820
834
|
type: 'string',
|
|
@@ -884,7 +898,10 @@ function directoryTools() {
|
|
|
884
898
|
}, ['title', 'agentIds', 'happyPath']), directory_output_schemas_1.directoryOutputSchemas.createCustomerFlow, writeAnnotations('Create customer flow'), writeMeta('customerFlow', '/v1/customer-flow'), async (reqContext, args) => scopedClient(reqContext, args).customerFlow.create(buildFlowBody(args))),
|
|
885
899
|
defineTool('run_simulation', 'Run simulation', 'Starts a simulation run in a Roark project and places simulated calls to the agent. Pass exactly one of planId (an existing plan), plan (an inline plan), or template (a built-in template name, with agentEndpoints and direction). Returns the run id and how many calls the run places. This spends simulation usage on the account.', objectSchema({
|
|
886
900
|
project: projectProperty,
|
|
887
|
-
planId: {
|
|
901
|
+
planId: {
|
|
902
|
+
type: 'string',
|
|
903
|
+
description: 'A saved run plan to run again, with its own endpoints, flows, and metrics: the simulationRunPlanId of a run started with saveAsPlan true.',
|
|
904
|
+
},
|
|
888
905
|
plan: {
|
|
889
906
|
type: 'object',
|
|
890
907
|
description: 'Inline plan to run once. Requires agentEndpoints, direction, and maxSimulationDurationSeconds.',
|