outbound-sdk 0.2.0 → 0.2.1
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.
|
@@ -545,6 +545,19 @@ var serveStdio = async (server, options = {}) => {
|
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
547
|
|
|
548
|
+
// src/cli/version.ts
|
|
549
|
+
import { readFileSync } from "node:fs";
|
|
550
|
+
import { z } from "zod";
|
|
551
|
+
var Manifest = z.object({
|
|
552
|
+
name: z.literal("outbound-sdk"),
|
|
553
|
+
version: z.string().min(1)
|
|
554
|
+
});
|
|
555
|
+
var packageVersion = () => Manifest.parse(
|
|
556
|
+
JSON.parse(
|
|
557
|
+
readFileSync(new URL("../../package.json", import.meta.url), "utf-8")
|
|
558
|
+
)
|
|
559
|
+
).version;
|
|
560
|
+
|
|
548
561
|
// src/cli/index.ts
|
|
549
562
|
var OPTIONS = {
|
|
550
563
|
bodies: { type: "boolean" },
|
|
@@ -575,7 +588,10 @@ var OPTIONS = {
|
|
|
575
588
|
};
|
|
576
589
|
var serve = async (outbound, io) => {
|
|
577
590
|
const { insightTools } = await import("../insights/index.js");
|
|
578
|
-
const server = createMcpServer(outbound, {
|
|
591
|
+
const server = createMcpServer(outbound, {
|
|
592
|
+
extra: insightTools(outbound),
|
|
593
|
+
version: packageVersion()
|
|
594
|
+
});
|
|
579
595
|
await serveStdio(server, { input: io.stdin?.() ?? [], write: io.stdout });
|
|
580
596
|
};
|
|
581
597
|
var print = (io, value, compact) => {
|
package/dist/cli/bin.js
CHANGED
package/dist/cli/index.js
CHANGED