@hop-top/kit 0.5.0-alpha.3 → 0.5.0-alpha.5
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 +52 -0
- package/LICENSE +1 -1
- package/README.md +47 -575
- package/dist/{aim-CTp-kJW2.d.ts → aim-DZHwwiIc.d.ts} +1 -1
- package/dist/aim.d.ts +1 -1
- package/dist/aim.js +13 -414
- package/dist/{alias-dhhr08Ei.d.ts → alias-BOj0-VAr.d.ts} +1 -1
- package/dist/alias.d.ts +1 -1
- package/dist/alias.js +18 -206
- package/dist/{api-miiso81x.d.ts → api-DAexsu2H.d.ts} +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +10 -164
- package/dist/auth.js +6 -40
- package/dist/chunk-3FIKGFKI.js +54 -0
- package/dist/chunk-4UE5TCMQ.js +104 -0
- package/dist/chunk-6HFAEZ52.js +29 -0
- package/dist/chunk-6SVOHNIC.js +17 -0
- package/dist/chunk-72XZWQX7.js +504 -0
- package/dist/chunk-ABQSE7AI.js +513 -0
- package/dist/chunk-BDNNPRX6.js +41 -0
- package/dist/chunk-BRNEKPWX.js +37 -0
- package/dist/chunk-CSJWB6D3.js +151 -0
- package/dist/chunk-GGWJRWWA.js +309 -0
- package/dist/chunk-IQXEISMC.js +142 -0
- package/dist/chunk-IXVQ62NZ.js +334 -0
- package/dist/chunk-JTMPNXVQ.js +1491 -0
- package/dist/chunk-KVG7YCTS.js +115 -0
- package/dist/chunk-L23O2FFE.js +51 -0
- package/dist/chunk-MQXYDYRD.js +968 -0
- package/dist/chunk-MUIQVU6E.js +251 -0
- package/dist/chunk-POR5L2DG.js +247 -0
- package/dist/chunk-PSFYJGDG.js +1445 -0
- package/dist/chunk-QJVSKKRQ.js +369 -0
- package/dist/chunk-QPUCXQXT.js +67 -0
- package/dist/chunk-R5U7XKVJ.js +16 -0
- package/dist/chunk-S45UHXQF.js +182 -0
- package/dist/chunk-T46YPHKN.js +669 -0
- package/dist/chunk-UKZIAQA7.js +26 -0
- package/dist/chunk-WBVO43HU.js +355 -0
- package/dist/chunk-WUOAQVOA.js +86 -0
- package/dist/chunk-WWUKGJB5.js +90 -0
- package/dist/chunk-YGYQUFGY.js +219 -0
- package/dist/chunk-YOBAUCVN.js +583 -0
- package/dist/chunk-ZC5TZYZJ.js +609 -0
- package/dist/{cli-DLygZLi9.d.ts → cli-8rfITnv4.d.ts} +13 -4
- package/dist/cli.d.ts +4 -4
- package/dist/cli.js +51 -1057
- package/dist/{config-BUY7_W2n.d.ts → config-Bm9fBXch.d.ts} +35 -4
- package/dist/config.d.ts +1 -1
- package/dist/config.js +6 -78
- package/dist/errcorrect.js +8 -68
- package/dist/{error-DISJKeDu.d.ts → error-Do8Qji43.d.ts} +88 -1
- package/dist/id/index.d.ts +1 -1
- package/dist/id/index.js +14 -65
- package/dist/{index-MLrRDvEG.d.ts → index-B-pqGHhU.d.ts} +113 -19
- package/dist/{index-Bc5c7Ty5.d.ts → index-DEyjGoo2.d.ts} +1 -1
- package/dist/{index-QSffbLnj.d.ts → index-VLDcI5NF.d.ts} +3 -2
- package/dist/index.d.ts +18 -15
- package/dist/index.js +39 -6722
- package/dist/llm-DYuR7_uX.d.ts +1069 -0
- package/dist/llm-anthropic-Cd_I2xXB.d.ts +67 -0
- package/dist/llm-anthropic.d.ts +2 -0
- package/dist/llm-anthropic.js +13 -0
- package/dist/llm-openai-DyFrucmV.d.ts +87 -0
- package/dist/llm-openai.d.ts +2 -0
- package/dist/llm-openai.js +19 -0
- package/dist/llm.d.ts +1 -1
- package/dist/llm.js +101 -356
- package/dist/mcp/index.d.ts +2 -1
- package/dist/mcp/index.js +155 -1453
- package/dist/{netpolicy-asvCfwi8.d.ts → netpolicy-Brx5XZUB.d.ts} +16 -3
- package/dist/netpolicy.d.ts +1 -1
- package/dist/netpolicy.js +25 -118
- package/dist/{output-4aXs91GY.d.ts → output-CjZWmL8s.d.ts} +28 -4
- package/dist/output.d.ts +2 -2
- package/dist/output.js +137 -971
- package/dist/progress.js +6 -55
- package/dist/provenance.js +6 -31
- package/dist/routellm-B0nv59mH.d.ts +111 -0
- package/dist/routellm.d.ts +2 -2
- package/dist/routellm.js +13 -255
- package/dist/{rpc-D5xLEf8V.d.ts → rpc-D31Lg0Kc.d.ts} +1 -1
- package/dist/rpc.d.ts +2 -2
- package/dist/rpc.js +4 -98
- package/dist/safety.js +6 -43
- package/dist/scope.js +20 -377
- package/dist/{serve-DE-jscpb.d.ts → serve-D8yWMrTc.d.ts} +2 -2
- package/dist/serve.d.ts +2 -2
- package/dist/serve.js +75 -1019
- package/dist/sqlstore.js +6 -39
- package/dist/stream.js +8 -51
- package/dist/telemetry/index.js +24 -608
- package/dist/tui/index.d.ts +5 -5
- package/dist/tui/index.js +17 -374
- package/dist/upgrade.js +6 -114
- package/dist/xdg.js +14 -128
- package/package.json +130 -25
- package/src/README.md +15 -0
- package/src/cli.help-command.test.ts +105 -0
- package/src/cli.test.ts +95 -1
- package/src/cli.ts +78 -13
- package/src/completion-values.test.ts +10 -10
- package/src/compliance.test.ts +196 -2
- package/src/compliance.ts +440 -20
- package/src/config.test.ts +187 -1
- package/src/config.ts +173 -7
- package/src/gen/crud_pb.ts +7 -7
- package/src/id/README.md +38 -0
- package/src/id/contract.test.ts +1 -1
- package/src/id/index.test.ts +1 -1
- package/src/id/index.ts +3 -2
- package/src/index.test.ts +12 -0
- package/src/index.ts +2 -0
- package/src/llm-anthropic.conformance.test.ts +1135 -0
- package/src/llm-anthropic.test.ts +152 -0
- package/src/llm-anthropic.ts +940 -0
- package/src/llm-choice-hermetic.test.ts +335 -0
- package/src/llm-config.test.ts +232 -0
- package/src/llm-config.ts +106 -0
- package/src/llm-endpoint.ts +254 -0
- package/src/llm-error.ts +17 -0
- package/src/llm-errors.ts +152 -0
- package/src/llm-file.ts +126 -0
- package/src/llm-http.ts +317 -0
- package/src/llm-keys.ts +167 -0
- package/src/llm-media.conformance.test.ts +87 -0
- package/src/llm-media.test.ts +279 -0
- package/src/llm-media.ts +322 -0
- package/src/llm-openai.conformance.test.ts +407 -0
- package/src/llm-openai.test.ts +510 -0
- package/src/llm-openai.ts +708 -0
- package/src/llm-payload.ts +155 -0
- package/src/llm-quote.ts +46 -0
- package/src/llm-routellm.conformance.test.ts +44 -0
- package/src/llm-toolnames.conformance.test.ts +112 -0
- package/src/llm-toolnames.test.ts +132 -0
- package/src/llm-toolnames.ts +298 -0
- package/src/llm-uri.ts +99 -0
- package/src/llm.test.ts +43 -15
- package/src/llm.toolcall.test.ts +175 -0
- package/src/llm.ts +602 -190
- package/src/mcp/README.md +57 -0
- package/src/mcp/conformance.test.ts +24 -3
- package/src/mcp/dispatch.ts +4 -4
- package/src/mcp/identity.test.ts +166 -0
- package/src/mcp/identity.ts +72 -0
- package/src/mcp/index.ts +6 -0
- package/src/mcp/legacy.ts +21 -8
- package/src/mcp/mcp.test.ts +14 -4
- package/src/mcp/modern-confirm.ts +1 -1
- package/src/mcp/modern.ts +12 -11
- package/src/mcp/tasks.ts +1 -1
- package/src/mcp/types.ts +80 -8
- package/src/netpolicy.test.ts +78 -0
- package/src/netpolicy.ts +28 -3
- package/src/output/README.md +46 -0
- package/src/output/builtins.ts +5 -5
- package/src/output/error.ts +144 -1
- package/src/output/formatters/README.md +50 -0
- package/src/output.ts +24 -1
- package/src/published-types.test.ts +115 -0
- package/src/routellm.test.ts +209 -28
- package/src/routellm.toolcall.test.ts +521 -0
- package/src/routellm.ts +213 -177
- package/src/router/README.md +44 -0
- package/src/router/server.test.ts +41 -0
- package/src/router/server.ts +11 -0
- package/src/safety.test.ts +19 -9
- package/src/scope-defaults.json +29 -29
- package/src/serve.ts +1 -1
- package/src/telemetry/README.md +48 -0
- package/src/telemetry/client.ts +5 -5
- package/src/toolspec.test.ts +2 -2
- package/src/triton/README.md +34 -0
- package/src/tui/README.md +42 -0
- package/src/wizard.test.ts +7 -7
- package/test/llm/conformance-helpers.ts +100 -0
- package/test/output/dispatch.test.ts +1 -2
- package/test/output/error.test.ts +33 -2
- package/test/output/smoke-capture.ts +2 -2
- package/test/output/smoke.test.ts +2 -2
- package/test/output/taxonomy-contract.test.ts +148 -0
- package/test/setup-env.ts +16 -0
- package/tsconfig.json +3 -1
- package/tsconfig.test.json +10 -0
- package/vitest.config.ts +9 -0
- package/dist/llm-B5XUWH8T.d.ts +0 -231
- package/dist/routellm-PGSt2D1y.d.ts +0 -75
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ProtocolErrorCode } from '@modelcontextprotocol/server';
|
|
1
2
|
import { Command } from 'commander';
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -30,15 +31,20 @@ declare const HEADER_MCP_NAME = "Mcp-Name";
|
|
|
30
31
|
* 2026-07-28 additions come from the SDK's ProtocolErrorCode;
|
|
31
32
|
* HeaderMismatch (-32020) is spec-reserved but absent from the SDK
|
|
32
33
|
* enum, so it is pinned here.
|
|
34
|
+
*
|
|
35
|
+
* The explicit enum-member annotations keep the declaration output a
|
|
36
|
+
* type reference. Inferred, it is `declare const X = ProtocolErrorCode.Y`,
|
|
37
|
+
* and the declaration bundler drops the `ProtocolErrorCode` import an
|
|
38
|
+
* initializer needs, leaving consumers an unresolved name (TS2304).
|
|
33
39
|
*/
|
|
34
|
-
declare const MCP_ERR_PARSE
|
|
35
|
-
declare const MCP_ERR_INVALID_REQUEST
|
|
36
|
-
declare const MCP_ERR_METHOD_NOT_FOUND
|
|
37
|
-
declare const MCP_ERR_INVALID_PARAMS
|
|
38
|
-
declare const MCP_ERR_INTERNAL
|
|
40
|
+
declare const MCP_ERR_PARSE: ProtocolErrorCode.ParseError;
|
|
41
|
+
declare const MCP_ERR_INVALID_REQUEST: ProtocolErrorCode.InvalidRequest;
|
|
42
|
+
declare const MCP_ERR_METHOD_NOT_FOUND: ProtocolErrorCode.MethodNotFound;
|
|
43
|
+
declare const MCP_ERR_INVALID_PARAMS: ProtocolErrorCode.InvalidParams;
|
|
44
|
+
declare const MCP_ERR_INTERNAL: ProtocolErrorCode.InternalError;
|
|
39
45
|
declare const MCP_ERR_HEADER_MISMATCH = -32020;
|
|
40
|
-
declare const MCP_ERR_MISSING_CLIENT_CAPABILITY
|
|
41
|
-
declare const MCP_ERR_UNSUPPORTED_VERSION
|
|
46
|
+
declare const MCP_ERR_MISSING_CLIENT_CAPABILITY: ProtocolErrorCode.MissingRequiredClientCapability;
|
|
47
|
+
declare const MCP_ERR_UNSUPPORTED_VERSION: ProtocolErrorCode.UnsupportedProtocolVersion;
|
|
42
48
|
/** The two protocol revisions this surface serves. */
|
|
43
49
|
declare const MCP_SPEC_2024_11_05 = "2024-11-05";
|
|
44
50
|
declare const MCP_SPEC_2026_07_28 = "2026-07-28";
|
|
@@ -148,11 +154,31 @@ interface Leaf {
|
|
|
148
154
|
/** Surfaces this leaf is exposed on. */
|
|
149
155
|
enabled?: Partial<Record<Surface, boolean>>;
|
|
150
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* How the surface established a caller, as recorded in
|
|
159
|
+
* `InvocationMeta.established`. Mirrors Go's `cmdsurface.Establishment`:
|
|
160
|
+
* `verified` means the mount's verifier accepted a credential the
|
|
161
|
+
* request presented. Absent means nothing was established; any caller
|
|
162
|
+
* the request claims is a claim, not an identity.
|
|
163
|
+
*/
|
|
164
|
+
type McpEstablishment = 'verified';
|
|
151
165
|
/** Metadata attached to one invocation, forwarded to audit sinks. */
|
|
152
166
|
interface InvocationMeta {
|
|
153
167
|
surface: Surface;
|
|
154
168
|
requestedAt: Date;
|
|
155
|
-
/**
|
|
169
|
+
/**
|
|
170
|
+
* The principal the mount's verifier established. Never taken from
|
|
171
|
+
* the request body or headers.
|
|
172
|
+
*/
|
|
173
|
+
caller?: string;
|
|
174
|
+
/** The tenant the verifier established, when it named one. */
|
|
175
|
+
tenant?: string;
|
|
176
|
+
/** Set only when the verifier established the caller. */
|
|
177
|
+
established?: McpEstablishment;
|
|
178
|
+
/**
|
|
179
|
+
* Free-form audit bag; the modern path records spec + client info.
|
|
180
|
+
* `scopes` (comma-joined) comes only from the verifier.
|
|
181
|
+
*/
|
|
156
182
|
extra?: Record<string, string>;
|
|
157
183
|
}
|
|
158
184
|
/** One leaf invocation. */
|
|
@@ -185,6 +211,32 @@ interface McpBridge {
|
|
|
185
211
|
*/
|
|
186
212
|
invoke(inv: Invocation): Promise<InvokeResult> | InvokeResult;
|
|
187
213
|
}
|
|
214
|
+
/**
|
|
215
|
+
* The caller a verifier established for one request. Mirrors the Go
|
|
216
|
+
* surfaces' `Meta` identity: `caller` is the stable principal (a user
|
|
217
|
+
* id, a service account, a client id), `tenant` the account it acts
|
|
218
|
+
* in, `scopes` what it was granted. All optional: a verifier may
|
|
219
|
+
* accept a credential that names no principal.
|
|
220
|
+
*/
|
|
221
|
+
interface McpIdentity {
|
|
222
|
+
caller?: string;
|
|
223
|
+
tenant?: string;
|
|
224
|
+
scopes?: string[];
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Establishes who is calling. The mount calls it once per `tools/call`
|
|
228
|
+
* with the request as received; it checks a credential the request
|
|
229
|
+
* presents (a bearer token, a signed header) and returns the caller,
|
|
230
|
+
* or `null`/`undefined` to refuse. Throwing refuses too.
|
|
231
|
+
*
|
|
232
|
+
* Only an identity a verifier returns authenticates a call: a
|
|
233
|
+
* `kit/auth-required` leaf is refused with 401 unless it does. An
|
|
234
|
+
* `Authorization` header is presence, not verification, and a caller
|
|
235
|
+
* or scopes the request claims in its body never become identity.
|
|
236
|
+
*/
|
|
237
|
+
type McpVerifier = (req: McpHttpRequest) => McpIdentity | null | undefined | Promise<McpIdentity | null | undefined>;
|
|
238
|
+
/** The challenge a 401 carries in WWW-Authenticate, as Go's api.DefaultAuthChallenge. */
|
|
239
|
+
declare const MCP_AUTH_CHALLENGE = "Bearer";
|
|
188
240
|
/**
|
|
189
241
|
* Mount options, mirroring Go's MountMCP option set. Defaults match
|
|
190
242
|
* Go exactly: both eras, path "/mcp", empty origin allowlist, cache
|
|
@@ -214,6 +266,11 @@ interface McpMountOptions {
|
|
|
214
266
|
confirmationKey?: Uint8Array | string;
|
|
215
267
|
/** Policy gate. Default: defaultPolicy(). */
|
|
216
268
|
policy?: Policy;
|
|
269
|
+
/**
|
|
270
|
+
* Establishes the caller of each `tools/call`. Without one no call
|
|
271
|
+
* is established, so every `kit/auth-required` leaf is refused.
|
|
272
|
+
*/
|
|
273
|
+
verifier?: McpVerifier;
|
|
217
274
|
}
|
|
218
275
|
/** Resolved, validated mount configuration. */
|
|
219
276
|
interface ResolvedMcpConfig {
|
|
@@ -227,6 +284,7 @@ interface ResolvedMcpConfig {
|
|
|
227
284
|
originAllowlist: string[];
|
|
228
285
|
confirmationKey?: Uint8Array;
|
|
229
286
|
policy: Policy;
|
|
287
|
+
verifier?: McpVerifier;
|
|
230
288
|
}
|
|
231
289
|
/**
|
|
232
290
|
* Validates and resolves mount options. Reproduces Go's two
|
|
@@ -301,20 +359,20 @@ declare function encodeEnvelope(env: {
|
|
|
301
359
|
* Era detection + dispatch for the dual-spec MCP surface, plus the
|
|
302
360
|
* framework-free handler export.
|
|
303
361
|
*
|
|
304
|
-
* Hosting model (
|
|
362
|
+
* Hosting model (serve-mcp-from-any-sdk.md): this module exports a
|
|
305
363
|
* transport-agnostic request handler, not a server. Binding it to
|
|
306
364
|
* node:http, hono, express, fastify, or a Worker is the adopter's
|
|
307
365
|
* job — kit does not own the adopter's HTTP stack, and a pure
|
|
308
366
|
* request→response function is directly testable against the wire
|
|
309
367
|
* fixtures with no socket.
|
|
310
368
|
*
|
|
311
|
-
* Detection implements
|
|
369
|
+
* Detection implements expose-cli-over-mcp.md's normative rules literally: the
|
|
312
370
|
* marker set M1-M4, the two deliberate non-markers, and the
|
|
313
371
|
* precedence chain D1-D4. It deliberately does NOT delegate to the
|
|
314
372
|
* v2 SDK's own `classifyInboundRequest`: that classifier treats a
|
|
315
373
|
* modern `MCP-Protocol-Version` header as a routing signal and
|
|
316
374
|
* routes `initialize`-plus-modern-envelope to the modern era, both
|
|
317
|
-
* of which contradict
|
|
375
|
+
* of which contradict those rules (and the wire fixtures, which are the
|
|
318
376
|
* parity contract). The SDK is still the source of the protocol
|
|
319
377
|
* constants and error codes — see types.ts.
|
|
320
378
|
*/
|
|
@@ -353,7 +411,7 @@ interface JsonRpcRequest {
|
|
|
353
411
|
/** Which handler a request routes to. */
|
|
354
412
|
type McpEra = 'legacy' | 'modern';
|
|
355
413
|
/**
|
|
356
|
-
* Implements
|
|
414
|
+
* Implements per-request era detection, precedence D1-D4.
|
|
357
415
|
* Never fails — it only classifies an already-parsed request; D1
|
|
358
416
|
* (parse) is the caller's responsibility.
|
|
359
417
|
*
|
|
@@ -426,7 +484,7 @@ declare function parseJsonRpcRequest(body: string): JsonRpcRequest;
|
|
|
426
484
|
* `tools/call`, plain JSON-RPC over one POST path, no sessions, no
|
|
427
485
|
* SSE.
|
|
428
486
|
*
|
|
429
|
-
* This module is byte-for-byte frozen.
|
|
487
|
+
* This module is byte-for-byte frozen. The dual-spec hard invariant is
|
|
430
488
|
* "2024-11-05 behavior is preserved byte-for-byte; additive only; no
|
|
431
489
|
* deprecation", and the three-way module split (legacy / modern /
|
|
432
490
|
* dispatch) exists precisely so a reviewer can confirm a modern-era
|
|
@@ -494,7 +552,7 @@ declare class LegacyMcpHandler {
|
|
|
494
552
|
* this surface deliberately does not keep, so the short TTL bounds the
|
|
495
553
|
* window instead.
|
|
496
554
|
*
|
|
497
|
-
* Two verification failures are deliberately distinct
|
|
555
|
+
* Two verification failures are deliberately distinct: an
|
|
498
556
|
* expired-but-authentic state is a routine re-prompt; a state failing
|
|
499
557
|
* HMAC verification is never honored — the rejection is recorded as a
|
|
500
558
|
* security-relevant audit event first, and only then is a fresh prompt
|
|
@@ -675,7 +733,7 @@ declare function verifyMcpConfirmState(key: Uint8Array, state: string, binding:
|
|
|
675
733
|
* @package @hop-top/kit
|
|
676
734
|
*
|
|
677
735
|
* The 2026-07-28 MCP handler: the stateless request core behind the
|
|
678
|
-
* era dispatcher. Implements
|
|
736
|
+
* era dispatcher. Implements expose-cli-over-mcp.md's validation order V1-V9,
|
|
679
737
|
* `server/discover`, the modern error writers (-32020 / -32021 /
|
|
680
738
|
* -32022 with their status mapping), result-envelope stamping
|
|
681
739
|
* (`resultType` + serverInfo `_meta`), and cache-hint application.
|
|
@@ -717,7 +775,7 @@ declare class ModernMcpHandler {
|
|
|
717
775
|
readonly confirmGate?: ElicitationConfirmGate;
|
|
718
776
|
constructor(bridge: McpBridge, cfg: ResolvedMcpConfig);
|
|
719
777
|
/**
|
|
720
|
-
* The modern entry point. The validation chain runs in
|
|
778
|
+
* The modern entry point. The validation chain runs in the guide's
|
|
721
779
|
* order V1-V9; the first failure responds and stops. HTTP status is
|
|
722
780
|
* 400/404 only where the spec mandates it — application-level
|
|
723
781
|
* JSON-RPC errors ride HTTP 200, matching legacy's convention.
|
|
@@ -858,7 +916,7 @@ declare function modernInvocationExtra(meta: ModernRequestMeta): Record<string,
|
|
|
858
916
|
*
|
|
859
917
|
* The `io.modelcontextprotocol/tasks` extension slot.
|
|
860
918
|
*
|
|
861
|
-
* kit does not implement the tasks extension (
|
|
919
|
+
* kit does not implement the tasks extension (design gap matrix:
|
|
862
920
|
* "Not implemented. capabilities.extensions omitted from
|
|
863
921
|
* server/discover (= unsupported); tasks/* → -32601 @ 404"). This
|
|
864
922
|
* module makes that decision explicit and testable rather than
|
|
@@ -898,6 +956,35 @@ declare const TASKS_SUPPORTED: false;
|
|
|
898
956
|
*/
|
|
899
957
|
declare function discoverCapabilities(): Record<string, unknown>;
|
|
900
958
|
|
|
959
|
+
/**
|
|
960
|
+
* @module mcp/identity
|
|
961
|
+
* @package @hop-top/kit
|
|
962
|
+
*
|
|
963
|
+
* Who is calling, as both eras' `tools/call` gate reads it. The only
|
|
964
|
+
* source of identity is the mount's verifier: an `Authorization`
|
|
965
|
+
* header is presence, not verification, and a caller or scopes the
|
|
966
|
+
* request claims never become identity. Mirrors the Go surfaces,
|
|
967
|
+
* where only an established `Meta` admits a `kit/auth-required` leaf.
|
|
968
|
+
*/
|
|
969
|
+
|
|
970
|
+
/** The key the verifier's scopes are recorded under in `InvocationMeta.extra`. */
|
|
971
|
+
declare const SCOPES_EXTRA_KEY = "scopes";
|
|
972
|
+
/**
|
|
973
|
+
* Runs the mount's verifier over `req`. Returns the identity it
|
|
974
|
+
* established, or `undefined` when there is no verifier, it refused
|
|
975
|
+
* (`null`/`undefined`), returned something that is not an object, or
|
|
976
|
+
* threw: every failure fails closed.
|
|
977
|
+
*/
|
|
978
|
+
declare function establishCaller(verifier: McpVerifier | undefined, req: McpHttpRequest): Promise<McpIdentity | undefined>;
|
|
979
|
+
/**
|
|
980
|
+
* Builds one `tools/call` invocation's meta: the MCP surface, the
|
|
981
|
+
* request time, the audit `extra` the era supplies, and the identity
|
|
982
|
+
* the verifier established — caller, tenant, `established`, and the
|
|
983
|
+
* comma-joined `scopes` extra entry. Nothing from `ident` is set when
|
|
984
|
+
* it is `undefined`, and nothing here reads the request.
|
|
985
|
+
*/
|
|
986
|
+
declare function invocationMeta(ident: McpIdentity | undefined, extra?: Record<string, string>): InvocationMeta;
|
|
987
|
+
|
|
901
988
|
/**
|
|
902
989
|
* @module mcp/bridge
|
|
903
990
|
* @package @hop-top/kit
|
|
@@ -981,6 +1068,7 @@ type index_JsonRpcRequest = JsonRpcRequest;
|
|
|
981
1068
|
type index_Leaf = Leaf;
|
|
982
1069
|
type index_LegacyMcpHandler = LegacyMcpHandler;
|
|
983
1070
|
declare const index_LegacyMcpHandler: typeof LegacyMcpHandler;
|
|
1071
|
+
declare const index_MCP_AUTH_CHALLENGE: typeof MCP_AUTH_CHALLENGE;
|
|
984
1072
|
declare const index_MCP_CONFIRM_KEY: typeof MCP_CONFIRM_KEY;
|
|
985
1073
|
declare const index_MCP_CONFIRM_STATE_TTL_SECONDS: typeof MCP_CONFIRM_STATE_TTL_SECONDS;
|
|
986
1074
|
declare const index_MCP_CONFIRM_STATE_VERSION: typeof MCP_CONFIRM_STATE_VERSION;
|
|
@@ -1007,11 +1095,14 @@ type index_McpConfirmStateStatus = McpConfirmStateStatus;
|
|
|
1007
1095
|
type index_McpDispatcher = McpDispatcher;
|
|
1008
1096
|
declare const index_McpDispatcher: typeof McpDispatcher;
|
|
1009
1097
|
type index_McpEra = McpEra;
|
|
1098
|
+
type index_McpEstablishment = McpEstablishment;
|
|
1010
1099
|
type index_McpHandler = McpHandler;
|
|
1011
1100
|
type index_McpHttpRequest = McpHttpRequest;
|
|
1012
1101
|
type index_McpHttpResponse = McpHttpResponse;
|
|
1102
|
+
type index_McpIdentity = McpIdentity;
|
|
1013
1103
|
type index_McpMountOptions = McpMountOptions;
|
|
1014
1104
|
type index_McpSpecVersion = McpSpecVersion;
|
|
1105
|
+
type index_McpVerifier = McpVerifier;
|
|
1015
1106
|
type index_ModernMcpHandler = ModernMcpHandler;
|
|
1016
1107
|
declare const index_ModernMcpHandler: typeof ModernMcpHandler;
|
|
1017
1108
|
type index_ModernRequestMeta = ModernRequestMeta;
|
|
@@ -1021,6 +1112,7 @@ declare const index_RESULT_TYPE_INPUT_REQUIRED: typeof RESULT_TYPE_INPUT_REQUIRE
|
|
|
1021
1112
|
type index_RawJSON = RawJSON;
|
|
1022
1113
|
declare const index_RawJSON: typeof RawJSON;
|
|
1023
1114
|
type index_ResolvedMcpConfig = ResolvedMcpConfig;
|
|
1115
|
+
declare const index_SCOPES_EXTRA_KEY: typeof SCOPES_EXTRA_KEY;
|
|
1024
1116
|
declare const index_SURFACE_CLI: typeof SURFACE_CLI;
|
|
1025
1117
|
declare const index_SURFACE_LIB: typeof SURFACE_LIB;
|
|
1026
1118
|
declare const index_SURFACE_MCP: typeof SURFACE_MCP;
|
|
@@ -1045,8 +1137,10 @@ declare const index_detectMcpEra: typeof detectMcpEra;
|
|
|
1045
1137
|
declare const index_discoverCapabilities: typeof discoverCapabilities;
|
|
1046
1138
|
declare const index_encodeEnvelope: typeof encodeEnvelope;
|
|
1047
1139
|
declare const index_errorResultBlock: typeof errorResultBlock;
|
|
1140
|
+
declare const index_establishCaller: typeof establishCaller;
|
|
1048
1141
|
declare const index_hasModernMetaMarker: typeof hasModernMetaMarker;
|
|
1049
1142
|
declare const index_headerConfirmationGate: typeof headerConfirmationGate;
|
|
1143
|
+
declare const index_invocationMeta: typeof invocationMeta;
|
|
1050
1144
|
declare const index_isTaskMethod: typeof isTaskMethod;
|
|
1051
1145
|
declare const index_mcpConfirmArgsDigest: typeof mcpConfirmArgsDigest;
|
|
1052
1146
|
declare const index_mcpConfirmPrincipal: typeof mcpConfirmPrincipal;
|
|
@@ -1067,7 +1161,7 @@ declare const index_toolName: typeof toolName;
|
|
|
1067
1161
|
declare const index_validModernRequestId: typeof validModernRequestId;
|
|
1068
1162
|
declare const index_verifyMcpConfirmState: typeof verifyMcpConfirmState;
|
|
1069
1163
|
declare namespace index {
|
|
1070
|
-
export { type index_CommanderBridgeOptions as CommanderBridgeOptions, index_DEFAULT_MCP_PATH as DEFAULT_MCP_PATH, index_DEFAULT_MCP_SERVER_NAME as DEFAULT_MCP_SERVER_NAME, index_DEFAULT_MCP_SERVER_VERSION as DEFAULT_MCP_SERVER_VERSION, index_DestructiveBlockedError as DestructiveBlockedError, index_ElicitationConfirmGate as ElicitationConfirmGate, type index_FlagSchema as FlagSchema, index_HEADER_MCP_METHOD as HEADER_MCP_METHOD, index_HEADER_MCP_NAME as HEADER_MCP_NAME, index_HEADER_MCP_PROTOCOL_VERSION as HEADER_MCP_PROTOCOL_VERSION, type index_Invocation as Invocation, type index_InvocationMeta as InvocationMeta, type index_InvokeResult as InvokeResult, type index_JsonRpcErrorObject as JsonRpcErrorObject, type index_JsonRpcRequest as JsonRpcRequest, type index_Leaf as Leaf, index_LegacyMcpHandler as LegacyMcpHandler, index_MCP_CONFIRM_KEY as MCP_CONFIRM_KEY, index_MCP_CONFIRM_STATE_TTL_SECONDS as MCP_CONFIRM_STATE_TTL_SECONDS, index_MCP_CONFIRM_STATE_VERSION as MCP_CONFIRM_STATE_VERSION, index_MCP_ERR_HEADER_MISMATCH as MCP_ERR_HEADER_MISMATCH, index_MCP_ERR_INTERNAL as MCP_ERR_INTERNAL, index_MCP_ERR_INVALID_PARAMS as MCP_ERR_INVALID_PARAMS, index_MCP_ERR_INVALID_REQUEST as MCP_ERR_INVALID_REQUEST, index_MCP_ERR_METHOD_NOT_FOUND as MCP_ERR_METHOD_NOT_FOUND, index_MCP_ERR_MISSING_CLIENT_CAPABILITY as MCP_ERR_MISSING_CLIENT_CAPABILITY, index_MCP_ERR_PARSE as MCP_ERR_PARSE, index_MCP_ERR_UNSUPPORTED_VERSION as MCP_ERR_UNSUPPORTED_VERSION, index_MCP_SPEC_2024_11_05 as MCP_SPEC_2024_11_05, index_MCP_SPEC_2026_07_28 as MCP_SPEC_2026_07_28, index_META_KEY_CLIENT_CAPABILITIES as META_KEY_CLIENT_CAPABILITIES, index_META_KEY_CLIENT_INFO as META_KEY_CLIENT_INFO, index_META_KEY_PROTOCOL_VERSION as META_KEY_PROTOCOL_VERSION, index_META_KEY_SERVER_INFO as META_KEY_SERVER_INFO, type index_McpBridge as McpBridge, type index_McpCacheScope as McpCacheScope, type index_McpConfirmBinding as McpConfirmBinding, type index_McpConfirmDecision as McpConfirmDecision, type index_McpConfirmRejection as McpConfirmRejection, type index_McpConfirmStateStatus as McpConfirmStateStatus, index_McpDispatcher as McpDispatcher, type index_McpEra as McpEra, type index_McpHandler as McpHandler, type index_McpHttpRequest as McpHttpRequest, type index_McpHttpResponse as McpHttpResponse, type index_McpMountOptions as McpMountOptions, type index_McpSpecVersion as McpSpecVersion, index_ModernMcpHandler as ModernMcpHandler, type index_ModernRequestMeta as ModernRequestMeta, type index_Policy as Policy, index_RESULT_TYPE_COMPLETE as RESULT_TYPE_COMPLETE, index_RESULT_TYPE_INPUT_REQUIRED as RESULT_TYPE_INPUT_REQUIRED, index_RawJSON as RawJSON, type index_ResolvedMcpConfig as ResolvedMcpConfig, index_SURFACE_CLI as SURFACE_CLI, index_SURFACE_LIB as SURFACE_LIB, index_SURFACE_MCP as SURFACE_MCP, type index_SafetyClass as SafetyClass, type index_Surface as Surface, index_SurfaceNotEnabledError as SurfaceNotEnabledError, index_TASKS_EXTENSION as TASKS_EXTENSION, index_TASKS_SUPPORTED as TASKS_SUPPORTED, index_TASK_METHODS as TASK_METHODS, type index_TaskMethod as TaskMethod, index_UnknownCommandError as UnknownCommandError, index_buildToolEnvelope as buildToolEnvelope, index_canonicalJSONStringify as canonicalJSONStringify, index_clientSupportsFormElicitation as clientSupportsFormElicitation, index_commanderBridge as commanderBridge, index_createMcpHandler as createMcpHandler, index_decodeMcpSentinel as decodeMcpSentinel, index_defaultPolicy as defaultPolicy, index_detectMcpEra as detectMcpEra, index_discoverCapabilities as discoverCapabilities, index_encodeEnvelope as encodeEnvelope, index_errorResultBlock as errorResultBlock, index_hasModernMetaMarker as hasModernMetaMarker, index_headerConfirmationGate as headerConfirmationGate, index_isTaskMethod as isTaskMethod, index_mcpConfirmArgsDigest as mcpConfirmArgsDigest, index_mcpConfirmPrincipal as mcpConfirmPrincipal, index_mcpMountConfig as mcpMountConfig, index_methodNotAllowedResponse as methodNotAllowedResponse, index_mintMcpConfirmState as mintMcpConfirmState, index_modernInvocationExtra as modernInvocationExtra, index_parseJsonRpcRequest as parseJsonRpcRequest, index_parseMcpConfirmRetry as parseMcpConfirmRetry, index_parseModernMeta as parseModernMeta, index_pathFromToolName as pathFromToolName, index_policyAllowed as policyAllowed, index_rawToolCallName as rawToolCallName, index_renderCallResult as renderCallResult, index_resolveMcpConfig as resolveMcpConfig, index_singleHeaderValue as singleHeaderValue, index_toolName as toolName, index_validModernRequestId as validModernRequestId, index_verifyMcpConfirmState as verifyMcpConfirmState };
|
|
1164
|
+
export { type index_CommanderBridgeOptions as CommanderBridgeOptions, index_DEFAULT_MCP_PATH as DEFAULT_MCP_PATH, index_DEFAULT_MCP_SERVER_NAME as DEFAULT_MCP_SERVER_NAME, index_DEFAULT_MCP_SERVER_VERSION as DEFAULT_MCP_SERVER_VERSION, index_DestructiveBlockedError as DestructiveBlockedError, index_ElicitationConfirmGate as ElicitationConfirmGate, type index_FlagSchema as FlagSchema, index_HEADER_MCP_METHOD as HEADER_MCP_METHOD, index_HEADER_MCP_NAME as HEADER_MCP_NAME, index_HEADER_MCP_PROTOCOL_VERSION as HEADER_MCP_PROTOCOL_VERSION, type index_Invocation as Invocation, type index_InvocationMeta as InvocationMeta, type index_InvokeResult as InvokeResult, type index_JsonRpcErrorObject as JsonRpcErrorObject, type index_JsonRpcRequest as JsonRpcRequest, type index_Leaf as Leaf, index_LegacyMcpHandler as LegacyMcpHandler, index_MCP_AUTH_CHALLENGE as MCP_AUTH_CHALLENGE, index_MCP_CONFIRM_KEY as MCP_CONFIRM_KEY, index_MCP_CONFIRM_STATE_TTL_SECONDS as MCP_CONFIRM_STATE_TTL_SECONDS, index_MCP_CONFIRM_STATE_VERSION as MCP_CONFIRM_STATE_VERSION, index_MCP_ERR_HEADER_MISMATCH as MCP_ERR_HEADER_MISMATCH, index_MCP_ERR_INTERNAL as MCP_ERR_INTERNAL, index_MCP_ERR_INVALID_PARAMS as MCP_ERR_INVALID_PARAMS, index_MCP_ERR_INVALID_REQUEST as MCP_ERR_INVALID_REQUEST, index_MCP_ERR_METHOD_NOT_FOUND as MCP_ERR_METHOD_NOT_FOUND, index_MCP_ERR_MISSING_CLIENT_CAPABILITY as MCP_ERR_MISSING_CLIENT_CAPABILITY, index_MCP_ERR_PARSE as MCP_ERR_PARSE, index_MCP_ERR_UNSUPPORTED_VERSION as MCP_ERR_UNSUPPORTED_VERSION, index_MCP_SPEC_2024_11_05 as MCP_SPEC_2024_11_05, index_MCP_SPEC_2026_07_28 as MCP_SPEC_2026_07_28, index_META_KEY_CLIENT_CAPABILITIES as META_KEY_CLIENT_CAPABILITIES, index_META_KEY_CLIENT_INFO as META_KEY_CLIENT_INFO, index_META_KEY_PROTOCOL_VERSION as META_KEY_PROTOCOL_VERSION, index_META_KEY_SERVER_INFO as META_KEY_SERVER_INFO, type index_McpBridge as McpBridge, type index_McpCacheScope as McpCacheScope, type index_McpConfirmBinding as McpConfirmBinding, type index_McpConfirmDecision as McpConfirmDecision, type index_McpConfirmRejection as McpConfirmRejection, type index_McpConfirmStateStatus as McpConfirmStateStatus, index_McpDispatcher as McpDispatcher, type index_McpEra as McpEra, type index_McpEstablishment as McpEstablishment, type index_McpHandler as McpHandler, type index_McpHttpRequest as McpHttpRequest, type index_McpHttpResponse as McpHttpResponse, type index_McpIdentity as McpIdentity, type index_McpMountOptions as McpMountOptions, type index_McpSpecVersion as McpSpecVersion, type index_McpVerifier as McpVerifier, index_ModernMcpHandler as ModernMcpHandler, type index_ModernRequestMeta as ModernRequestMeta, type index_Policy as Policy, index_RESULT_TYPE_COMPLETE as RESULT_TYPE_COMPLETE, index_RESULT_TYPE_INPUT_REQUIRED as RESULT_TYPE_INPUT_REQUIRED, index_RawJSON as RawJSON, type index_ResolvedMcpConfig as ResolvedMcpConfig, index_SCOPES_EXTRA_KEY as SCOPES_EXTRA_KEY, index_SURFACE_CLI as SURFACE_CLI, index_SURFACE_LIB as SURFACE_LIB, index_SURFACE_MCP as SURFACE_MCP, type index_SafetyClass as SafetyClass, type index_Surface as Surface, index_SurfaceNotEnabledError as SurfaceNotEnabledError, index_TASKS_EXTENSION as TASKS_EXTENSION, index_TASKS_SUPPORTED as TASKS_SUPPORTED, index_TASK_METHODS as TASK_METHODS, type index_TaskMethod as TaskMethod, index_UnknownCommandError as UnknownCommandError, index_buildToolEnvelope as buildToolEnvelope, index_canonicalJSONStringify as canonicalJSONStringify, index_clientSupportsFormElicitation as clientSupportsFormElicitation, index_commanderBridge as commanderBridge, index_createMcpHandler as createMcpHandler, index_decodeMcpSentinel as decodeMcpSentinel, index_defaultPolicy as defaultPolicy, index_detectMcpEra as detectMcpEra, index_discoverCapabilities as discoverCapabilities, index_encodeEnvelope as encodeEnvelope, index_errorResultBlock as errorResultBlock, index_establishCaller as establishCaller, index_hasModernMetaMarker as hasModernMetaMarker, index_headerConfirmationGate as headerConfirmationGate, index_invocationMeta as invocationMeta, index_isTaskMethod as isTaskMethod, index_mcpConfirmArgsDigest as mcpConfirmArgsDigest, index_mcpConfirmPrincipal as mcpConfirmPrincipal, index_mcpMountConfig as mcpMountConfig, index_methodNotAllowedResponse as methodNotAllowedResponse, index_mintMcpConfirmState as mintMcpConfirmState, index_modernInvocationExtra as modernInvocationExtra, index_parseJsonRpcRequest as parseJsonRpcRequest, index_parseMcpConfirmRetry as parseMcpConfirmRetry, index_parseModernMeta as parseModernMeta, index_pathFromToolName as pathFromToolName, index_policyAllowed as policyAllowed, index_rawToolCallName as rawToolCallName, index_renderCallResult as renderCallResult, index_resolveMcpConfig as resolveMcpConfig, index_singleHeaderValue as singleHeaderValue, index_toolName as toolName, index_validModernRequestId as validModernRequestId, index_verifyMcpConfirmState as verifyMcpConfirmState };
|
|
1071
1165
|
}
|
|
1072
1166
|
|
|
1073
|
-
export { type
|
|
1167
|
+
export { type ModernRequestMeta as $, META_KEY_SERVER_INFO as A, type McpBridge as B, type CommanderBridgeOptions as C, DEFAULT_MCP_PATH as D, ElicitationConfirmGate as E, type FlagSchema as F, type McpCacheScope as G, HEADER_MCP_METHOD as H, type Invocation as I, type JsonRpcErrorObject as J, type McpConfirmBinding as K, type Leaf as L, MCP_AUTH_CHALLENGE as M, type McpConfirmDecision as N, type McpConfirmRejection as O, type McpConfirmStateStatus as P, McpDispatcher as Q, type McpEra as R, type McpEstablishment as S, type McpHandler as T, type McpHttpRequest as U, type McpHttpResponse as V, type McpIdentity as W, type McpMountOptions as X, type McpSpecVersion as Y, type McpVerifier as Z, ModernMcpHandler as _, DEFAULT_MCP_SERVER_NAME as a, type Policy as a0, RESULT_TYPE_COMPLETE as a1, RESULT_TYPE_INPUT_REQUIRED as a2, RawJSON as a3, type ResolvedMcpConfig as a4, SCOPES_EXTRA_KEY as a5, SURFACE_CLI as a6, SURFACE_LIB as a7, SURFACE_MCP as a8, type SafetyClass as a9, methodNotAllowedResponse as aA, mintMcpConfirmState as aB, modernInvocationExtra as aC, parseJsonRpcRequest as aD, parseMcpConfirmRetry as aE, parseModernMeta as aF, pathFromToolName as aG, policyAllowed as aH, rawToolCallName as aI, renderCallResult as aJ, resolveMcpConfig as aK, singleHeaderValue as aL, toolName as aM, validModernRequestId as aN, verifyMcpConfirmState as aO, type Surface as aa, SurfaceNotEnabledError as ab, TASKS_EXTENSION as ac, TASKS_SUPPORTED as ad, TASK_METHODS as ae, type TaskMethod as af, UnknownCommandError as ag, buildToolEnvelope as ah, canonicalJSONStringify as ai, clientSupportsFormElicitation as aj, commanderBridge as ak, createMcpHandler as al, decodeMcpSentinel as am, defaultPolicy as an, detectMcpEra as ao, discoverCapabilities as ap, encodeEnvelope as aq, errorResultBlock as ar, establishCaller as as, hasModernMetaMarker as at, headerConfirmationGate as au, invocationMeta as av, isTaskMethod as aw, mcpConfirmArgsDigest as ax, mcpConfirmPrincipal as ay, mcpMountConfig as az, DEFAULT_MCP_SERVER_VERSION as b, DestructiveBlockedError as c, HEADER_MCP_NAME as d, HEADER_MCP_PROTOCOL_VERSION as e, type InvocationMeta as f, type InvokeResult as g, type JsonRpcRequest as h, index as i, LegacyMcpHandler as j, MCP_CONFIRM_KEY as k, MCP_CONFIRM_STATE_TTL_SECONDS as l, MCP_CONFIRM_STATE_VERSION as m, MCP_ERR_HEADER_MISMATCH as n, MCP_ERR_INTERNAL as o, MCP_ERR_INVALID_PARAMS as p, MCP_ERR_INVALID_REQUEST as q, MCP_ERR_METHOD_NOT_FOUND as r, MCP_ERR_MISSING_CLIENT_CAPABILITY as s, MCP_ERR_PARSE as t, MCP_ERR_UNSUPPORTED_VERSION as u, MCP_SPEC_2024_11_05 as v, MCP_SPEC_2026_07_28 as w, META_KEY_CLIENT_CAPABILITIES as x, META_KEY_CLIENT_INFO as y, META_KEY_PROTOCOL_VERSION as z };
|
|
@@ -5,7 +5,8 @@ import { z } from 'zod';
|
|
|
5
5
|
* @package @hop-top/kit
|
|
6
6
|
*
|
|
7
7
|
* TypeID primitive — thin wrapper around `typeid-js` (jetify-com)
|
|
8
|
-
* implementing the cross-language kit API SHAPE per
|
|
8
|
+
* implementing the cross-language kit API SHAPE per
|
|
9
|
+
* docs/announcements/2026-05-typeid-primitive.md.
|
|
9
10
|
*
|
|
10
11
|
* Canonical wire form: `<prefix>_<26-char-base32>` where the suffix is
|
|
11
12
|
* a Crockford-base32-encoded UUIDv7. The TS surface adds a
|
|
@@ -15,7 +16,7 @@ import { z } from 'zod';
|
|
|
15
16
|
* URI composition (e.g. `tlc://task/task_…`) is NOT in this module —
|
|
16
17
|
* callers should use the `@hop-top/cite` package directly. This
|
|
17
18
|
* keeps `kit/id` free of any transitive dependency on the URI
|
|
18
|
-
* registry
|
|
19
|
+
* registry.
|
|
19
20
|
*/
|
|
20
21
|
|
|
21
22
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,28 +1,31 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export { a as aim } from './aim-DZHwwiIc.js';
|
|
2
|
+
export { a as alias } from './alias-BOj0-VAr.js';
|
|
3
|
+
export { l as anthropic } from './llm-anthropic-Cd_I2xXB.js';
|
|
4
|
+
export { a as api } from './api-DAexsu2H.js';
|
|
4
5
|
export { a as auth } from './auth-2-jfgiHn.js';
|
|
5
|
-
export {
|
|
6
|
-
export { c as config } from './config-
|
|
6
|
+
export { c as cli } from './cli-8rfITnv4.js';
|
|
7
|
+
export { c as config } from './config-Bm9fBXch.js';
|
|
7
8
|
export { e as errcorrect } from './errcorrect-BcX1Ft0K.js';
|
|
8
|
-
export { i as id } from './index-
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export { n as netpolicy } from './netpolicy-
|
|
12
|
-
export { l as
|
|
9
|
+
export { i as id } from './index-VLDcI5NF.js';
|
|
10
|
+
export { l as llm } from './llm-DYuR7_uX.js';
|
|
11
|
+
export { i as mcp } from './index-B-pqGHhU.js';
|
|
12
|
+
export { n as netpolicy } from './netpolicy-Brx5XZUB.js';
|
|
13
|
+
export { l as openai } from './llm-openai-DyFrucmV.js';
|
|
14
|
+
export { o as output } from './output-CjZWmL8s.js';
|
|
13
15
|
export { p as progress } from './progress-CAzyxeWl.js';
|
|
14
16
|
export { p as provenance } from './provenance-SMFHm5gx.js';
|
|
15
|
-
export { r as routellm } from './routellm-
|
|
16
|
-
export { r as rpc } from './rpc-
|
|
17
|
+
export { r as routellm } from './routellm-B0nv59mH.js';
|
|
18
|
+
export { r as rpc } from './rpc-D31Lg0Kc.js';
|
|
17
19
|
export { s as safety } from './safety-CUaYEjZc.js';
|
|
18
20
|
export { s as scope } from './scope-BrhYB4ij.js';
|
|
19
|
-
export {
|
|
21
|
+
export { s as serve } from './serve-D8yWMrTc.js';
|
|
20
22
|
export { s as stream } from './stream-CrjeCp0M.js';
|
|
21
23
|
export { i as telemetry } from './index-C3Zw4wDJ.js';
|
|
22
|
-
export { i as tui } from './index-
|
|
24
|
+
export { i as tui } from './index-DEyjGoo2.js';
|
|
23
25
|
export { u as upgrade } from './upgrade-p_zh3pvV.js';
|
|
24
26
|
export { x as xdg } from './xdg-DB7Shoib.js';
|
|
25
27
|
import 'commander';
|
|
26
28
|
import 'node:stream';
|
|
27
29
|
import 'zod';
|
|
28
|
-
import '
|
|
30
|
+
import '@modelcontextprotocol/server';
|
|
31
|
+
import './error-Do8Qji43.js';
|