@nylorun/core 0.19.0-beta → 0.20.0-beta

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +115 -0
  2. package/dist/compatibility.d.ts +74 -32
  3. package/dist/compatibility.js +80 -33
  4. package/dist/contracts.d.ts +1496 -495
  5. package/dist/contracts.js +889 -374
  6. package/dist/define.d.ts +1 -0
  7. package/dist/define.js +1 -0
  8. package/dist/definition/approval.d.ts +16 -0
  9. package/dist/definition/approval.js +35 -0
  10. package/dist/definition/code-tools.d.ts +1 -1
  11. package/dist/definition/code-tools.js +1 -1
  12. package/dist/definition/flow/compile.js +0 -2
  13. package/dist/definition/http-tool.d.ts +7 -4
  14. package/dist/definition/http-tool.js +6 -10
  15. package/dist/definition/manifest.js +1 -0
  16. package/dist/definition/mcp.d.ts +4 -4
  17. package/dist/definition/mcp.js +15 -12
  18. package/dist/definition/removed.js +1 -1
  19. package/dist/definition/variant.d.ts +1 -1
  20. package/dist/definition/variant.js +6 -5
  21. package/dist/harness-api/entries.d.ts +241 -0
  22. package/dist/harness-api/entries.js +117 -0
  23. package/dist/harness-api/gates.d.ts +172 -0
  24. package/dist/harness-api/gates.js +119 -0
  25. package/dist/harness-api/harness-api.schema.json +5056 -0
  26. package/dist/harness-api/index.d.ts +19 -3
  27. package/dist/harness-api/index.js +16 -3
  28. package/dist/harness-api/json-schema.d.ts +12 -0
  29. package/dist/harness-api/json-schema.js +61 -0
  30. package/dist/harness-api/mcp.d.ts +61 -0
  31. package/dist/harness-api/mcp.js +41 -0
  32. package/dist/harness-api/messages.d.ts +12 -4
  33. package/dist/harness-api/messages.js +6 -2
  34. package/dist/harness-api/schema.d.ts +353 -31
  35. package/dist/harness-api/schema.js +138 -20
  36. package/dist/harness-api/transport.d.ts +55 -0
  37. package/dist/harness-api/transport.js +61 -0
  38. package/dist/types/manifest.d.ts +15 -9
  39. package/dist/types/observe.d.ts +3 -2
  40. package/dist/utils/harness-id.d.ts +9 -0
  41. package/dist/utils/harness-id.js +11 -0
  42. package/package.json +5 -4
@@ -0,0 +1,117 @@
1
+ /**
2
+ * What a harness writes into the session's record besides its effects (R4.5): transcript
3
+ * entries, and the effect id rule replays depend on.
4
+ *
5
+ * Transcript. A session's transcript is shared by every turn: a run reads it once
6
+ * (`transcript.read`), and its output edits it (`TurnOutput.transcript`, a list of
7
+ * `TranscriptUpdate`s whose `entries` are `TranscriptEntry`s). History, `transcript.read` and the
8
+ * next turn's cursor fold these edits, so a harness writes the five published kinds only.
9
+ *
10
+ * Effect ids. Core hands a run the completed outcomes of its segment whose effect id starts with
11
+ * `<turnId>:<segment>:`, and a harness replays them instead of calling again. An id must be
12
+ * derived from stable names, never call order, so a run that starts over asks for the same ids.
13
+ */
14
+ import { z } from "zod";
15
+ const json = z.unknown();
16
+ const jsonObject = z.record(z.string(), z.unknown());
17
+ /** One block of a model candidate's output. */
18
+ export const ModelOutputBlockSchema = z.discriminatedUnion("type", [
19
+ z.object({ type: z.literal("text"), text: z.string(), providerMetadata: jsonObject.optional() }),
20
+ z.object({ type: z.literal("reasoning"), text: z.string(), providerMetadata: jsonObject.optional() }),
21
+ z.object({ type: z.literal("json"), value: json }),
22
+ z.object({
23
+ type: z.literal("tool-call"),
24
+ id: z.string(),
25
+ name: z.string(),
26
+ args: jsonObject,
27
+ raw: z.string().optional(),
28
+ providerMetadata: jsonObject.optional(),
29
+ }),
30
+ ]);
31
+ /** A model's answer: what the Model Gate's `outcome` is when the call worked. */
32
+ export const ModelCandidateSchema = z.object({
33
+ output: z.array(ModelOutputBlockSchema),
34
+ finishReason: z.enum(["stop", "length", "tool-calls", "content-filter", "other"]).optional(),
35
+ usage: z
36
+ .object({
37
+ inputTokens: z.number().optional(),
38
+ outputTokens: z.number().optional(),
39
+ totalTokens: z.number().optional(),
40
+ cachedTokens: z.number().optional(),
41
+ cacheWriteTokens: z.number().optional(),
42
+ reasoningTokens: z.number().optional(),
43
+ costUsd: z.number().optional(),
44
+ })
45
+ .optional(),
46
+ evidence: jsonObject.optional(),
47
+ });
48
+ /** One tool call's result, as the model sees it next. */
49
+ export const ToolResultSchema = z.discriminatedUnion("kind", [
50
+ z.object({
51
+ callId: z.string(),
52
+ toolName: z.string(),
53
+ kind: z.literal("completed"),
54
+ output: json,
55
+ files: z.array(json).optional(),
56
+ }),
57
+ z.object({ callId: z.string(), toolName: z.string(), kind: z.literal("denied"), reason: z.string() }),
58
+ z.object({
59
+ callId: z.string(),
60
+ toolName: z.string(),
61
+ kind: z.literal("failed"),
62
+ code: z.string(),
63
+ message: z.string(),
64
+ details: json.optional(),
65
+ retryable: z.boolean().optional(),
66
+ }),
67
+ ]);
68
+ /** What started a turn: a user message (text or content parts), or an answer to a question. */
69
+ export const InputEventSchema = z.union([
70
+ z.object({
71
+ kind: z.enum(["user-message", "interrupt"]),
72
+ text: z.string(),
73
+ metadata: jsonObject.optional(),
74
+ }),
75
+ z.object({
76
+ kind: z.enum(["user-message", "interrupt"]),
77
+ content: z.array(json),
78
+ metadata: jsonObject.optional(),
79
+ }),
80
+ z.object({ kind: z.literal("approve"), interactionId: z.string(), approved: z.boolean() }),
81
+ z.object({ kind: z.literal("respond"), interactionId: z.string(), value: json }),
82
+ ]);
83
+ /**
84
+ * One transcript entry. Every entry names its turn; a step's entries share a `stepId` (the model
85
+ * candidate, then its tools' results). `compaction` is always first: a summary that replaced the
86
+ * older part, followed by the kept tail.
87
+ */
88
+ export const TranscriptEntrySchema = z.discriminatedUnion("kind", [
89
+ z.object({ kind: z.literal("input"), turnId: z.string(), event: InputEventSchema }),
90
+ z.object({ kind: z.literal("candidate"), turnId: z.string(), stepId: z.string(), candidate: ModelCandidateSchema }),
91
+ z.object({ kind: z.literal("tool-results"), turnId: z.string(), stepId: z.string(), results: z.array(ToolResultSchema) }),
92
+ z.object({ kind: z.literal("final"), turnId: z.string(), stepId: z.string(), output: json }),
93
+ z.object({
94
+ kind: z.literal("compaction"),
95
+ turnId: z.string(),
96
+ stepId: z.string(),
97
+ summary: z.string(),
98
+ trigger: z.enum(["threshold", "overflow"]),
99
+ tokensBefore: z.number(),
100
+ tokensAfter: z.number(),
101
+ }),
102
+ ]);
103
+ /** The prefix every effect id of a segment carries. */
104
+ export function effectIdPrefix(turnId, segment) {
105
+ return `${turnId}:${segment}:`;
106
+ }
107
+ /**
108
+ * An effect's id: `<turnId>:<segment>:<kind>:<identity>`, where `identity` names the effect
109
+ * stably within the segment (the model step's invocation id, a tool call's id).
110
+ */
111
+ export function effectIdOf(turnId, segment, kind, identity) {
112
+ return `${effectIdPrefix(turnId, segment)}${kind}:${identity}`;
113
+ }
114
+ /** True when `effectId` is one of the segment's, so core replays its outcome to the segment. */
115
+ export function isEffectIdOf(effectId, turnId, segment) {
116
+ return effectId.startsWith(effectIdPrefix(turnId, segment));
117
+ }
@@ -0,0 +1,172 @@
1
+ /**
2
+ * The gates a harness calls (R4.5): the Model Gate and the Tool Gate, on the gateway's port. A
3
+ * harness never holds a model or tool credential: it presents the run token of the run it holds
4
+ * (`RunGrant.token`) as `Authorization: Bearer`, and the gate takes the session, turn and agent
5
+ * from the token. Every call is keyed by its effect id, sent as `Idempotency-Key`: a re-send
6
+ * with the same key and body joins the call or gets its outcome, so a harness that lost an
7
+ * answer sends the call again instead of guessing.
8
+ *
9
+ * Model Gate. `POST /nylorun/v1/model-calls` with a `ModelCallBody`: `200 {outcome}` once the
10
+ * call has finished, a model candidate or a failure outcome. `POST
11
+ * /nylorun/v1/model-calls/{key}/cancel` aborts a keyed call (`204`).
12
+ *
13
+ * Tool Gate. Remote MCP servers by name (`mcp/connect`, `mcp/list`, `tool-calls`, `mcp/close`)
14
+ * and HTTP tools by tool (`http-calls`); `tool-calls/{key}/cancel` aborts either. Each answers
15
+ * `200 {ok: true, result}` or `200 {ok: false, error}`: a tool's failure is an answer, not a
16
+ * gate error.
17
+ *
18
+ * A gate error is `{error: {code, message}}` with one of `GATE_ERROR_CODES`: `401
19
+ * gate_unauthorized` (missing, malformed, expired or foreign token), `403 gate_forbidden`
20
+ * (another session's call), `409 run_stale` (the token's lease is no longer the session's),
21
+ * `400 invalid_request`, `409 gate_conflict` (another request runs under the same key). A run's
22
+ * tool call must be journaled first (`effect.intent` answered `execute`) and keyed by its effect
23
+ * id: else `400 key_required` or `409 effect_not_journaled`.
24
+ */
25
+ import { z } from "zod";
26
+ import type { ModelCall, ModelCandidate, ModelFailureOutcome } from "../types/model.js";
27
+ export declare const MODEL_CALLS_PATH = "/nylorun/v1/model-calls";
28
+ export declare const MCP_CONNECT_PATH = "/nylorun/v1/mcp/connect";
29
+ export declare const MCP_LIST_PATH = "/nylorun/v1/mcp/list";
30
+ export declare const MCP_CLOSE_PATH = "/nylorun/v1/mcp/close";
31
+ export declare const TOOL_CALLS_PATH = "/nylorun/v1/tool-calls";
32
+ export declare const HTTP_CALLS_PATH = "/nylorun/v1/http-calls";
33
+ /** Largest model call body the gate reads: one `ModelCall` with its whole projected history. */
34
+ export declare const MAX_MODEL_CALL_BYTES: number;
35
+ /** Largest tool call body the gate reads. */
36
+ export declare const MAX_TOOL_BODY_BYTES: number;
37
+ /**
38
+ * One model call. It names no session, turn or agent: the gate takes them from the run token,
39
+ * and refuses a body that names them. `call` is the engine's `ModelCall`.
40
+ */
41
+ export declare const ModelCallBodySchema: z.ZodObject<{
42
+ effectId: z.ZodString;
43
+ invocationId: z.ZodString;
44
+ call: z.ZodObject<{
45
+ prompt: z.ZodArray<z.ZodUnknown>;
46
+ tools: z.ZodArray<z.ZodObject<{
47
+ name: z.ZodString;
48
+ }, z.core.$loose>>;
49
+ }, z.core.$loose>;
50
+ }, z.core.$strict>;
51
+ export type ModelCallBody = Omit<z.infer<typeof ModelCallBodySchema>, "call"> & {
52
+ readonly call: ModelCall;
53
+ };
54
+ /** What a model call answers: a candidate, or a failure the engine fails its step with. */
55
+ export interface ModelCallResponse {
56
+ readonly outcome: ModelCandidate | ModelFailureOutcome;
57
+ }
58
+ export declare const GATE_ERROR_CODES: readonly ["gate_unauthorized", "gate_forbidden", "run_stale", "invalid_request", "gate_conflict",
59
+ /** A run's tool call without its effect id as `Idempotency-Key`. */
60
+ "key_required",
61
+ /** A run's tool call the effect journal does not hold, running, as sent: journal it first. */
62
+ "effect_not_journaled"];
63
+ export type GateErrorCode = (typeof GATE_ERROR_CODES)[number];
64
+ /** An error answer: `{error: {code, message}}`. */
65
+ export declare const GateErrorBodySchema: z.ZodObject<{
66
+ error: z.ZodObject<{
67
+ code: z.ZodEnum<{
68
+ effect_not_journaled: "effect_not_journaled";
69
+ gate_conflict: "gate_conflict";
70
+ gate_forbidden: "gate_forbidden";
71
+ gate_unauthorized: "gate_unauthorized";
72
+ invalid_request: "invalid_request";
73
+ key_required: "key_required";
74
+ run_stale: "run_stale";
75
+ }>;
76
+ message: z.ZodString;
77
+ }, z.core.$strict>;
78
+ }, z.core.$strict>;
79
+ export type GateErrorBody = z.infer<typeof GateErrorBodySchema>;
80
+ /** A remote MCP server of the session's pinned manifest, by name. */
81
+ export declare const McpServerRefSchema: z.ZodObject<{
82
+ sessionId: z.ZodOptional<z.ZodString>;
83
+ agentId: z.ZodOptional<z.ZodString>;
84
+ capabilityId: z.ZodString;
85
+ serverName: z.ZodString;
86
+ }, z.core.$strip>;
87
+ export type McpServerRef = z.infer<typeof McpServerRefSchema>;
88
+ /** `mcp/connect` and `mcp/close`. */
89
+ export declare const McpServerBodySchema: z.ZodObject<{
90
+ server: z.ZodObject<{
91
+ sessionId: z.ZodOptional<z.ZodString>;
92
+ agentId: z.ZodOptional<z.ZodString>;
93
+ capabilityId: z.ZodString;
94
+ serverName: z.ZodString;
95
+ }, z.core.$strip>;
96
+ }, z.core.$strip>;
97
+ /** `mcp/list`: one page of `tools/list`. */
98
+ export declare const McpListBodySchema: z.ZodObject<{
99
+ server: z.ZodObject<{
100
+ sessionId: z.ZodOptional<z.ZodString>;
101
+ agentId: z.ZodOptional<z.ZodString>;
102
+ capabilityId: z.ZodString;
103
+ serverName: z.ZodString;
104
+ }, z.core.$strip>;
105
+ cursor: z.ZodOptional<z.ZodString>;
106
+ }, z.core.$strip>;
107
+ /** `tool-calls`: one `tools/call`, keyed by its effect id. */
108
+ export declare const ToolCallBodySchema: z.ZodObject<{
109
+ server: z.ZodObject<{
110
+ sessionId: z.ZodOptional<z.ZodString>;
111
+ agentId: z.ZodOptional<z.ZodString>;
112
+ capabilityId: z.ZodString;
113
+ serverName: z.ZodString;
114
+ }, z.core.$strip>;
115
+ effectId: z.ZodString;
116
+ name: z.ZodString;
117
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
118
+ }, z.core.$strip>;
119
+ export type ToolCallBody = z.infer<typeof ToolCallBodySchema>;
120
+ /**
121
+ * `http-calls`: one call of an HTTP tool, named by its agent, capability and tool, or a flow's
122
+ * HTTP stage or verifier by its stage key. The gate finds its URL, method and credential in the
123
+ * session's pinned manifest. A run token's turn is the call's; `turnId` counts only under core's
124
+ * credential.
125
+ */
126
+ export declare const HttpCallBodySchema: z.ZodObject<{
127
+ tool: z.ZodUnion<readonly [z.ZodObject<{
128
+ sessionId: z.ZodOptional<z.ZodString>;
129
+ agentId: z.ZodOptional<z.ZodString>;
130
+ capabilityId: z.ZodString;
131
+ toolName: z.ZodString;
132
+ }, z.core.$strip>, z.ZodObject<{
133
+ sessionId: z.ZodOptional<z.ZodString>;
134
+ stage: z.ZodString;
135
+ }, z.core.$strip>]>;
136
+ effectId: z.ZodString;
137
+ turnId: z.ZodString;
138
+ input: z.ZodUnknown;
139
+ }, z.core.$strip>;
140
+ export type HttpCallBody = z.infer<typeof HttpCallBodySchema>;
141
+ /** How an MCP tool call failed, coded; the failed outcome the model sees carries the code. */
142
+ export declare const MCP_FAILURE_CODES: readonly ["mcp.unreachable", "credential_rejected", "mcp.forbidden", "mcp.error", "mcp.status", "mcp.lost", "mcp.too-large"];
143
+ export type McpFailureCode = (typeof MCP_FAILURE_CODES)[number];
144
+ /** Why an MCP request failed. Its message has no credential value in it. */
145
+ export interface McpGateError {
146
+ readonly message: string;
147
+ /** The MCP SDK's error code, or an HTTP status for transport errors (401 for a refused token). */
148
+ readonly code?: number;
149
+ /** The vault credentials a refused authorization names. */
150
+ readonly credentialIds?: readonly string[];
151
+ /** The call may have run: its earlier attempt was lost with the gateway. */
152
+ readonly uncertain?: boolean;
153
+ readonly failure?: {
154
+ readonly code: McpFailureCode;
155
+ readonly message: string;
156
+ /** The request reached the server, so it may have acted on it. */
157
+ readonly sent: boolean;
158
+ readonly retryable: boolean;
159
+ readonly server?: string;
160
+ readonly redacted?: number;
161
+ };
162
+ }
163
+ /** A Tool Gate answer. */
164
+ export type McpAnswer<T> = {
165
+ readonly ok: true;
166
+ readonly result: T;
167
+ /** A `tools/call`'s: how many credential values its result echoed, replaced. */
168
+ readonly redacted?: number;
169
+ } | {
170
+ readonly ok: false;
171
+ readonly error: McpGateError;
172
+ };
@@ -0,0 +1,119 @@
1
+ /**
2
+ * The gates a harness calls (R4.5): the Model Gate and the Tool Gate, on the gateway's port. A
3
+ * harness never holds a model or tool credential: it presents the run token of the run it holds
4
+ * (`RunGrant.token`) as `Authorization: Bearer`, and the gate takes the session, turn and agent
5
+ * from the token. Every call is keyed by its effect id, sent as `Idempotency-Key`: a re-send
6
+ * with the same key and body joins the call or gets its outcome, so a harness that lost an
7
+ * answer sends the call again instead of guessing.
8
+ *
9
+ * Model Gate. `POST /nylorun/v1/model-calls` with a `ModelCallBody`: `200 {outcome}` once the
10
+ * call has finished, a model candidate or a failure outcome. `POST
11
+ * /nylorun/v1/model-calls/{key}/cancel` aborts a keyed call (`204`).
12
+ *
13
+ * Tool Gate. Remote MCP servers by name (`mcp/connect`, `mcp/list`, `tool-calls`, `mcp/close`)
14
+ * and HTTP tools by tool (`http-calls`); `tool-calls/{key}/cancel` aborts either. Each answers
15
+ * `200 {ok: true, result}` or `200 {ok: false, error}`: a tool's failure is an answer, not a
16
+ * gate error.
17
+ *
18
+ * A gate error is `{error: {code, message}}` with one of `GATE_ERROR_CODES`: `401
19
+ * gate_unauthorized` (missing, malformed, expired or foreign token), `403 gate_forbidden`
20
+ * (another session's call), `409 run_stale` (the token's lease is no longer the session's),
21
+ * `400 invalid_request`, `409 gate_conflict` (another request runs under the same key). A run's
22
+ * tool call must be journaled first (`effect.intent` answered `execute`) and keyed by its effect
23
+ * id: else `400 key_required` or `409 effect_not_journaled`.
24
+ */
25
+ import { z } from "zod";
26
+ export const MODEL_CALLS_PATH = "/nylorun/v1/model-calls";
27
+ export const MCP_CONNECT_PATH = "/nylorun/v1/mcp/connect";
28
+ export const MCP_LIST_PATH = "/nylorun/v1/mcp/list";
29
+ export const MCP_CLOSE_PATH = "/nylorun/v1/mcp/close";
30
+ export const TOOL_CALLS_PATH = "/nylorun/v1/tool-calls";
31
+ export const HTTP_CALLS_PATH = "/nylorun/v1/http-calls";
32
+ /** Largest model call body the gate reads: one `ModelCall` with its whole projected history. */
33
+ export const MAX_MODEL_CALL_BYTES = 32 * 1024 * 1024;
34
+ /** Largest tool call body the gate reads. */
35
+ export const MAX_TOOL_BODY_BYTES = 8 * 1024 * 1024;
36
+ /**
37
+ * One model call. It names no session, turn or agent: the gate takes them from the run token,
38
+ * and refuses a body that names them. `call` is the engine's `ModelCall`.
39
+ */
40
+ export const ModelCallBodySchema = z.strictObject({
41
+ effectId: z.string().min(1),
42
+ invocationId: z.string().min(1),
43
+ call: z.looseObject({
44
+ prompt: z.array(z.unknown()),
45
+ tools: z.array(z.looseObject({ name: z.string() })),
46
+ }),
47
+ });
48
+ export const GATE_ERROR_CODES = [
49
+ "gate_unauthorized",
50
+ "gate_forbidden",
51
+ "run_stale",
52
+ "invalid_request",
53
+ "gate_conflict",
54
+ /** A run's tool call without its effect id as `Idempotency-Key`. */
55
+ "key_required",
56
+ /** A run's tool call the effect journal does not hold, running, as sent: journal it first. */
57
+ "effect_not_journaled",
58
+ ];
59
+ /** An error answer: `{error: {code, message}}`. */
60
+ export const GateErrorBodySchema = z.strictObject({
61
+ error: z.strictObject({ code: z.enum(GATE_ERROR_CODES), message: z.string() }),
62
+ });
63
+ /** A remote MCP server of the session's pinned manifest, by name. */
64
+ export const McpServerRefSchema = z.object({
65
+ /** Required with core's credential; a run token names the session itself. */
66
+ sessionId: z.string().min(1).optional(),
67
+ /** The agent used as a tool that declares the server; absent for the session's root agent. */
68
+ agentId: z.string().min(1).optional(),
69
+ capabilityId: z.string().min(1),
70
+ serverName: z.string().min(1),
71
+ });
72
+ /** `mcp/connect` and `mcp/close`. */
73
+ export const McpServerBodySchema = z.object({ server: McpServerRefSchema });
74
+ /** `mcp/list`: one page of `tools/list`. */
75
+ export const McpListBodySchema = z.object({
76
+ server: McpServerRefSchema,
77
+ cursor: z.string().optional(),
78
+ });
79
+ /** `tool-calls`: one `tools/call`, keyed by its effect id. */
80
+ export const ToolCallBodySchema = z.object({
81
+ server: McpServerRefSchema,
82
+ effectId: z.string().min(1),
83
+ name: z.string().min(1),
84
+ arguments: z.record(z.string(), z.unknown()),
85
+ });
86
+ /**
87
+ * `http-calls`: one call of an HTTP tool, named by its agent, capability and tool, or a flow's
88
+ * HTTP stage or verifier by its stage key. The gate finds its URL, method and credential in the
89
+ * session's pinned manifest. A run token's turn is the call's; `turnId` counts only under core's
90
+ * credential.
91
+ */
92
+ export const HttpCallBodySchema = z.object({
93
+ tool: z.union([
94
+ z.object({
95
+ sessionId: z.string().min(1).optional(),
96
+ agentId: z.string().min(1).optional(),
97
+ capabilityId: z.string().min(1),
98
+ toolName: z.string().min(1),
99
+ }),
100
+ z.object({
101
+ sessionId: z.string().min(1).optional(),
102
+ /** A flow's HTTP stage or HTTP verifier. */
103
+ stage: z.string().min(1),
104
+ }),
105
+ ]),
106
+ effectId: z.string().min(1),
107
+ turnId: z.string().min(1),
108
+ input: z.unknown(),
109
+ });
110
+ /** How an MCP tool call failed, coded; the failed outcome the model sees carries the code. */
111
+ export const MCP_FAILURE_CODES = [
112
+ "mcp.unreachable",
113
+ "credential_rejected",
114
+ "mcp.forbidden",
115
+ "mcp.error",
116
+ "mcp.status",
117
+ "mcp.lost",
118
+ "mcp.too-large",
119
+ ];