@adaptivemcp/spec 0.3.0 → 0.5.0
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/LICENSE +21 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/result.d.ts +37 -0
- package/dist/result.d.ts.map +1 -0
- package/dist/result.js +17 -0
- package/dist/result.js.map +1 -0
- package/dist/suspension.d.ts +54 -0
- package/dist/suspension.d.ts.map +1 -0
- package/dist/suspension.js +18 -0
- package/dist/suspension.js.map +1 -0
- package/dist/types.d.ts +96 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +6 -6
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Kemal Elmizan
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from "./types.js";
|
|
2
|
+
export * from "./result.js";
|
|
2
3
|
export * from "./extensions.js";
|
|
3
4
|
export * from "./events.js";
|
|
4
5
|
export * from "./execution-graph.js";
|
|
6
|
+
export * from "./suspension.js";
|
|
5
7
|
export { SPEC_VERSION } from "./version.js";
|
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from "./types.js";
|
|
2
|
+
export * from "./result.js";
|
|
2
3
|
export * from "./extensions.js";
|
|
3
4
|
export * from "./events.js";
|
|
4
5
|
export * from "./execution-graph.js";
|
|
6
|
+
export * from "./suspension.js";
|
|
5
7
|
export { SPEC_VERSION } from "./version.js";
|
|
6
8
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/result.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Result classification.
|
|
3
|
+
*
|
|
4
|
+
* A client's transport may report a tool call as "ok" while the server has, in
|
|
5
|
+
* fact, signalled a *logical* failure in-band — for example a JSON envelope with
|
|
6
|
+
* `status: "error"` instead of the protocol-level `isError` flag. Left alone,
|
|
7
|
+
* that outcome is recorded as a success, which poisons every derived signal:
|
|
8
|
+
* failure rate, insights, routing, drift.
|
|
9
|
+
*
|
|
10
|
+
* A `ToolResultClassifier` is the seam that corrects this. It runs on each
|
|
11
|
+
* execution *attempt*, before the outcome is recorded (and therefore before the
|
|
12
|
+
* retry decision), so a reclassified failure can also trigger a retry. It is
|
|
13
|
+
* advisory in the same sense as the rest of Adaptive MCP: the host opts in by
|
|
14
|
+
* supplying a classifier; returning `undefined` leaves the outcome untouched.
|
|
15
|
+
*/
|
|
16
|
+
/** A raw tool outcome, as produced by the transport before classification. */
|
|
17
|
+
export interface ToolCallOutcome {
|
|
18
|
+
ok: boolean;
|
|
19
|
+
error?: string;
|
|
20
|
+
output?: unknown;
|
|
21
|
+
}
|
|
22
|
+
/** Fields a classifier may override; omitted fields keep their raw value. */
|
|
23
|
+
export interface ToolResultClassification {
|
|
24
|
+
ok?: boolean;
|
|
25
|
+
error?: string;
|
|
26
|
+
}
|
|
27
|
+
/** Context identifying the call an outcome belongs to. */
|
|
28
|
+
export interface ToolResultContext {
|
|
29
|
+
toolName: string;
|
|
30
|
+
serverName?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Inspect a raw outcome and optionally re-classify it. Return `undefined` (or
|
|
34
|
+
* nothing) to leave it unchanged.
|
|
35
|
+
*/
|
|
36
|
+
export type ToolResultClassifier = (outcome: ToolCallOutcome, context: ToolResultContext) => ToolResultClassification | void | undefined;
|
|
37
|
+
//# sourceMappingURL=result.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../src/result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,8EAA8E;AAC9E,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,6EAA6E;AAC7E,MAAM,WAAW,wBAAwB;IACvC,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,0DAA0D;AAC1D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,CACjC,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,iBAAiB,KACvB,wBAAwB,GAAG,IAAI,GAAG,SAAS,CAAC"}
|
package/dist/result.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Result classification.
|
|
3
|
+
*
|
|
4
|
+
* A client's transport may report a tool call as "ok" while the server has, in
|
|
5
|
+
* fact, signalled a *logical* failure in-band — for example a JSON envelope with
|
|
6
|
+
* `status: "error"` instead of the protocol-level `isError` flag. Left alone,
|
|
7
|
+
* that outcome is recorded as a success, which poisons every derived signal:
|
|
8
|
+
* failure rate, insights, routing, drift.
|
|
9
|
+
*
|
|
10
|
+
* A `ToolResultClassifier` is the seam that corrects this. It runs on each
|
|
11
|
+
* execution *attempt*, before the outcome is recorded (and therefore before the
|
|
12
|
+
* retry decision), so a reclassified failure can also trigger a retry. It is
|
|
13
|
+
* advisory in the same sense as the rest of Adaptive MCP: the host opts in by
|
|
14
|
+
* supplying a classifier; returning `undefined` leaves the outcome untouched.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result.js","sourceRoot":"","sources":["../src/result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A **suspension**: the durable record of a run that stopped to wait for a
|
|
3
|
+
* human.
|
|
4
|
+
*
|
|
5
|
+
* This is the durable half of the pause/resume contract
|
|
6
|
+
* ([ADR-004](../../../docs/adr/004-archetype-component-ownership.md)): the
|
|
7
|
+
* *shape* lives here so every host records a pause the same way, `memory`
|
|
8
|
+
* persists it, and the **host** owns the policy — what may suspend, who may
|
|
9
|
+
* answer, how a resume is applied. The host half is the loop's job; this type
|
|
10
|
+
* deliberately contains nothing about graphs, threads or schedulers.
|
|
11
|
+
*
|
|
12
|
+
* Modelled on two references: `langgraph`'s `interrupt`/`Command` pair (pause
|
|
13
|
+
* with a value, resume with an answer — but no graph is required here, since a
|
|
14
|
+
* host can suspend a plain run), and `agno`'s `HumanReview`, whose primitive
|
|
15
|
+
* set the three `kind`s mirror.
|
|
16
|
+
*/
|
|
17
|
+
/** Why the host stopped. Mirrors the human-review primitives seen in the wild. */
|
|
18
|
+
export type SuspensionKind = "confirmation" | "input" | "review";
|
|
19
|
+
/** Where a suspension is in its lifecycle. */
|
|
20
|
+
export type SuspensionStatus = "pending" | "answered" | "cancelled" | "expired";
|
|
21
|
+
export interface Suspension {
|
|
22
|
+
id: string;
|
|
23
|
+
/** The session (run) the suspension belongs to. */
|
|
24
|
+
sessionId: string;
|
|
25
|
+
kind: SuspensionKind;
|
|
26
|
+
/** The question to show a human — already safe to display; the host redacts. */
|
|
27
|
+
question: string;
|
|
28
|
+
/**
|
|
29
|
+
* Advisory JSON schema for the expected answer. The host validates; nothing
|
|
30
|
+
* here enforces it, so a host that ignores this still works.
|
|
31
|
+
*/
|
|
32
|
+
responseSchema?: Record<string, unknown>;
|
|
33
|
+
/**
|
|
34
|
+
* Opaque host state needed to continue the run — a step id, a cursor, a plan.
|
|
35
|
+
* Never interpreted by this package, so the shape stays host-agnostic.
|
|
36
|
+
*/
|
|
37
|
+
resumeState?: Record<string, unknown>;
|
|
38
|
+
status: SuspensionStatus;
|
|
39
|
+
/** The answer, once one was given. */
|
|
40
|
+
answer?: unknown;
|
|
41
|
+
/** Why it was not answered (a refusal, a timeout), when it was not. */
|
|
42
|
+
reason?: string;
|
|
43
|
+
createdAt: string;
|
|
44
|
+
resolvedAt?: string;
|
|
45
|
+
}
|
|
46
|
+
/** How a suspension is resolved. */
|
|
47
|
+
export interface SuspensionResolution {
|
|
48
|
+
status: Extract<SuspensionStatus, "answered" | "cancelled" | "expired">;
|
|
49
|
+
/** Required for `answered`; ignored otherwise. */
|
|
50
|
+
answer?: unknown;
|
|
51
|
+
/** Free-form explanation (a refusal reason, a timeout). */
|
|
52
|
+
reason?: string;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=suspension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suspension.d.ts","sourceRoot":"","sources":["../src/suspension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,kFAAkF;AAClF,MAAM,MAAM,cAAc,GACtB,cAAc,GACd,OAAO,GACP,QAAQ,CAAC;AAEb,8CAA8C;AAC9C,MAAM,MAAM,gBAAgB,GACxB,SAAS,GACT,UAAU,GACV,WAAW,GACX,SAAS,CAAC;AAEd,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,cAAc,CAAC;IACrB,gFAAgF;IAChF,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,MAAM,EAAE,gBAAgB,CAAC;IACzB,sCAAsC;IACtC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,oCAAoC;AACpC,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,OAAO,CAAC,gBAAgB,EAAE,UAAU,GAAG,WAAW,GAAG,SAAS,CAAC,CAAC;IACxE,kDAAkD;IAClD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A **suspension**: the durable record of a run that stopped to wait for a
|
|
3
|
+
* human.
|
|
4
|
+
*
|
|
5
|
+
* This is the durable half of the pause/resume contract
|
|
6
|
+
* ([ADR-004](../../../docs/adr/004-archetype-component-ownership.md)): the
|
|
7
|
+
* *shape* lives here so every host records a pause the same way, `memory`
|
|
8
|
+
* persists it, and the **host** owns the policy — what may suspend, who may
|
|
9
|
+
* answer, how a resume is applied. The host half is the loop's job; this type
|
|
10
|
+
* deliberately contains nothing about graphs, threads or schedulers.
|
|
11
|
+
*
|
|
12
|
+
* Modelled on two references: `langgraph`'s `interrupt`/`Command` pair (pause
|
|
13
|
+
* with a value, resume with an answer — but no graph is required here, since a
|
|
14
|
+
* host can suspend a plain run), and `agno`'s `HumanReview`, whose primitive
|
|
15
|
+
* set the three `kind`s mirror.
|
|
16
|
+
*/
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=suspension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suspension.js","sourceRoot":"","sources":["../src/suspension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG"}
|
package/dist/types.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* They intentionally avoid coupling to shell commands, filesystems, processes,
|
|
6
6
|
* sockets, or HTTP requests — those remain implementation details of MCP servers.
|
|
7
7
|
*/
|
|
8
|
+
import type { Suspension, SuspensionResolution, SuspensionStatus } from "./suspension.js";
|
|
8
9
|
export type ToolStatus = "started" | "completed" | "failed" | "cancelled";
|
|
9
10
|
export interface CostInfo {
|
|
10
11
|
inputTokens?: number;
|
|
@@ -28,12 +29,25 @@ export interface ToolExecutionEvent {
|
|
|
28
29
|
requestId?: string;
|
|
29
30
|
timestamp: string;
|
|
30
31
|
durationMs?: number;
|
|
32
|
+
/** Total execution attempts (1 = no retry); for retry-rate metrics. */
|
|
33
|
+
attempts?: number;
|
|
31
34
|
status: ToolStatus;
|
|
32
35
|
input?: unknown;
|
|
33
36
|
output?: unknown;
|
|
34
37
|
error?: ToolError;
|
|
35
38
|
model?: string;
|
|
36
39
|
cost?: CostInfo;
|
|
40
|
+
/**
|
|
41
|
+
* The decoding Adaptive MCP actually applied to the completion that produced
|
|
42
|
+
* this call. Recording the *resolved* values + `resolverVersion` keeps past
|
|
43
|
+
* decisions reproducible after the resolver's tables change (ROADMAP 8d).
|
|
44
|
+
*/
|
|
45
|
+
decoding?: ToolDecoding;
|
|
46
|
+
/** Token usage for that completion, when the host knows it. */
|
|
47
|
+
usage?: {
|
|
48
|
+
inputTokens?: number;
|
|
49
|
+
outputTokens?: number;
|
|
50
|
+
};
|
|
37
51
|
metadata?: Record<string, unknown>;
|
|
38
52
|
/** Parent node ID in the execution graph (for DAG construction) */
|
|
39
53
|
parentId?: string;
|
|
@@ -193,6 +207,17 @@ export interface DecodingRecommendation {
|
|
|
193
207
|
confidence: number;
|
|
194
208
|
reasons: string[];
|
|
195
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* The decoding actually applied to a completion, as stored on a
|
|
212
|
+
* `ToolExecutionEvent` (ROADMAP 8d). A flattened `DecodingRecommendation`:
|
|
213
|
+
* the profile id, the concrete knobs, and the resolver version that produced
|
|
214
|
+
* them.
|
|
215
|
+
*/
|
|
216
|
+
export interface ToolDecoding {
|
|
217
|
+
profile: DecodingProfile["id"];
|
|
218
|
+
resolverVersion: string;
|
|
219
|
+
resolved: ResolvedDecodingSettings;
|
|
220
|
+
}
|
|
196
221
|
/**
|
|
197
222
|
* The store record for a tool, persisted in SQLite.
|
|
198
223
|
* The YAML tools-metadata view is derived from this record.
|
|
@@ -216,6 +241,52 @@ export interface ToolStats {
|
|
|
216
241
|
/** Average output tokens per invocation (for context cost tracking) */
|
|
217
242
|
avgOutputTokens?: number;
|
|
218
243
|
}
|
|
244
|
+
/**
|
|
245
|
+
* A bounded dimension tuple for a metric cell. Keys with undefined values are
|
|
246
|
+
* omitted. Kept open-ended (`[key]`) so new dimensions don't need a migration;
|
|
247
|
+
* cardinality is bounded by the host (models from its catalog, 3 decoding
|
|
248
|
+
* profiles, few resolver versions).
|
|
249
|
+
*/
|
|
250
|
+
export interface MetricDimensions {
|
|
251
|
+
model?: string;
|
|
252
|
+
decodingProfile?: string;
|
|
253
|
+
resolverVersion?: string;
|
|
254
|
+
[key: string]: string | undefined;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* A pre-aggregated metric cell: events folded into a bounded dimension tuple and
|
|
258
|
+
* window. This is how Adaptive MCP keeps *rich, queryable* metadata without a
|
|
259
|
+
* raw events table — counters, sums, a fixed-bucket duration histogram, EWMA
|
|
260
|
+
* recency, and a bounded exemplar ring, instead of every event.
|
|
261
|
+
*/
|
|
262
|
+
export interface MetricCell {
|
|
263
|
+
toolName: string;
|
|
264
|
+
serverName?: string;
|
|
265
|
+
/** Retention window key; `"all"` is the lifetime aggregate. */
|
|
266
|
+
window: string;
|
|
267
|
+
dimensions: MetricDimensions;
|
|
268
|
+
invocations: number;
|
|
269
|
+
failures: number;
|
|
270
|
+
/** Sum of execution attempts (> invocations when retries happened). */
|
|
271
|
+
attempts: number;
|
|
272
|
+
/** Error-code → count. */
|
|
273
|
+
errorCodes: Record<string, number>;
|
|
274
|
+
durationSum: number;
|
|
275
|
+
durationCount: number;
|
|
276
|
+
/** Counts per fixed duration bucket (ms); see the store's bucket bounds. */
|
|
277
|
+
durationHistogram: number[];
|
|
278
|
+
tokenInSum: number;
|
|
279
|
+
tokenOutSum: number;
|
|
280
|
+
tokenCount: number;
|
|
281
|
+
costSum: number;
|
|
282
|
+
/** Exponentially-weighted failure rate / duration, for recency-aware drift. */
|
|
283
|
+
ewmaFailureRate?: number;
|
|
284
|
+
ewmaDurationMs?: number;
|
|
285
|
+
firstSeen: string;
|
|
286
|
+
lastSeen: string;
|
|
287
|
+
/** Bounded ids of the most recent contributing events (drill-down). */
|
|
288
|
+
exemplars: string[];
|
|
289
|
+
}
|
|
219
290
|
/**
|
|
220
291
|
* A single node in the execution graph (DAG).
|
|
221
292
|
* Each tool invocation becomes a node with parent/children relationships.
|
|
@@ -365,6 +436,15 @@ export interface Store {
|
|
|
365
436
|
clearRecommendations(toolName: string, type: RecommendationType, serverName?: string): ToolRecord;
|
|
366
437
|
/** Fold a tool execution event into the persisted stats. */
|
|
367
438
|
recordExecution(event: ToolExecutionEvent): ToolRecord;
|
|
439
|
+
/**
|
|
440
|
+
* Read pre-aggregated metric cells (bounded dimensional rollups folded from
|
|
441
|
+
* events). Optional: a backend without the rollup may omit it, in which case
|
|
442
|
+
* callers should fall back to sample-level data.
|
|
443
|
+
*/
|
|
444
|
+
metricCells?(options?: {
|
|
445
|
+
toolName?: string;
|
|
446
|
+
serverName?: string;
|
|
447
|
+
}): MetricCell[];
|
|
368
448
|
/** Record an execution node in the graph. */
|
|
369
449
|
recordExecutionNode?(node: ExecutionNode): ExecutionNode;
|
|
370
450
|
/** Get an execution node by ID. */
|
|
@@ -375,6 +455,8 @@ export interface Store {
|
|
|
375
455
|
getNodesByWorkflow?(workflowId: string): ExecutionNode[];
|
|
376
456
|
/** Get every distinct workflow ID that has at least one recorded execution node. */
|
|
377
457
|
getWorkflowIds?(): string[];
|
|
458
|
+
/** Get every distinct session ID that has at least one recorded execution node. */
|
|
459
|
+
getSessionIds?(): string[];
|
|
378
460
|
/** Get children of a node. */
|
|
379
461
|
getChildren?(parentId: string): ExecutionNode[];
|
|
380
462
|
/** Get parent of a node. */
|
|
@@ -385,5 +467,19 @@ export interface Store {
|
|
|
385
467
|
getLeafNodes?(sessionId: string): ExecutionNode[];
|
|
386
468
|
/** Update children IDs of a parent node. */
|
|
387
469
|
updateChildrenIds?(parentId: string, childrenIds: string[]): void;
|
|
470
|
+
/** Persist a suspension (a run paused awaiting a human). */
|
|
471
|
+
recordSuspension?(suspension: Suspension): Suspension;
|
|
472
|
+
/** Read one suspension by id. */
|
|
473
|
+
getSuspension?(id: string): Suspension | undefined;
|
|
474
|
+
/** Every suspension for a session, newest first; filtered by status when given. */
|
|
475
|
+
getSuspensions?(sessionId: string, status?: SuspensionStatus): Suspension[];
|
|
476
|
+
/**
|
|
477
|
+
* Resolve a suspension — with an answer, or with a reason it was not answered.
|
|
478
|
+
* Returns the updated record, or `undefined` for an unknown id. Resolving is
|
|
479
|
+
* **idempotent**: an already-resolved suspension is returned unchanged rather
|
|
480
|
+
* than overwritten, because a resume may be replayed (`langgraph` re-executes
|
|
481
|
+
* the node it resumed into, so the same answer can arrive twice).
|
|
482
|
+
*/
|
|
483
|
+
resolveSuspension?(id: string, resolution: SuspensionResolution): Suspension | undefined;
|
|
388
484
|
}
|
|
389
485
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;AAE1E,MAAM,WAAW,QAAQ;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACn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;IAClD,YAAY,CAAC,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa,EAAE,CAAC;IAClD,4CAA4C;IAC5C,iBAAiB,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAIlE,4DAA4D;IAC5D,gBAAgB,CAAC,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,CAAC;IACtD,iCAAiC;IACjC,aAAa,CAAC,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;IACnD,mFAAmF;IACnF,cAAc,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,gBAAgB,GAAG,UAAU,EAAE,CAAC;IAC5E;;;;;;OAMG;IACH,iBAAiB,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,oBAAoB,GAAG,UAAU,GAAG,SAAS,CAAC;CAC1F"}
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAqFH;;;;;;;;;GASG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAgB;IACpD,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,MAAM;YACT,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;QACxD,KAAK,QAAQ;YACX,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;QACxD,KAAK,KAAK;YACR,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;QAChC;YACE,OAAO,EAAE,CAAC;IACd,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptivemcp/spec",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Extension identifiers, event schemas, and shared types for Adaptive MCP.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"dist",
|
|
18
18
|
"README.md"
|
|
19
19
|
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"build": "tsc -p tsconfig.json",
|
|
22
|
-
"test": "vitest run --config ../../vitest.config.ts"
|
|
23
|
-
},
|
|
24
20
|
"devDependencies": {
|
|
25
21
|
"typescript": "^5.6.0",
|
|
26
22
|
"vitest": "^2.1.0"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsc -p tsconfig.json",
|
|
26
|
+
"test": "vitest run --config ../../vitest.config.ts"
|
|
27
27
|
}
|
|
28
|
-
}
|
|
28
|
+
}
|