@skydiveai/pi-extensions 0.1.254-beta.33 → 0.1.254-beta.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +19 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,27 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { A2AOptions, Middleware, ProtocolsOptions } from "@skydiveai/pi-server";
|
|
2
3
|
import { ExtensionFactory } from "@earendil-works/pi-coding-agent";
|
|
3
4
|
import { Type } from "typebox";
|
|
4
5
|
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
6
|
+
import * as _$qs from "qs";
|
|
7
|
+
import * as _$express from "express";
|
|
5
8
|
import { Logger } from "pino";
|
|
6
9
|
|
|
10
|
+
//#region ../../node_modules/@types/express-serve-static-core/index.d.ts
|
|
11
|
+
declare global {
|
|
12
|
+
namespace Express {
|
|
13
|
+
// These open interfaces may be extended in an application-specific manner via declaration merging.
|
|
14
|
+
// See for example method-override.d.ts (https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/method-override/index.d.ts)
|
|
15
|
+
interface Request {}
|
|
16
|
+
interface Response {}
|
|
17
|
+
interface Locals {}
|
|
18
|
+
interface Application {}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
interface ParamsDictionary {
|
|
22
|
+
[key: string]: string;
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
7
25
|
//#region src/harness.d.ts
|
|
8
26
|
type CreateHarnessOptions = ProtocolsOptions & {
|
|
9
27
|
cwd: string;
|
|
@@ -26,7 +44,7 @@ declare function createHarness(options: CreateHarnessOptions): {
|
|
|
26
44
|
};
|
|
27
45
|
protocols: {
|
|
28
46
|
handlers: {
|
|
29
|
-
/** Express-style; mount at /a2a. */a2a: RequestHandler
|
|
47
|
+
/** Express-style; mount at /a2a. */a2a: _$express.RequestHandler<ParamsDictionary, any, any, _$qs.ParsedQs, Record<string, any>>; /** GET /.well-known/agent-card.json. */
|
|
30
48
|
agentCard: Middleware; /** Mirrors each vendor's API shape. */
|
|
31
49
|
openai: {
|
|
32
50
|
v1: {
|