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, { extra: insightTools(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
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  run
4
- } from "../chunks/chunk-PMSSUWD7.js";
4
+ } from "../chunks/chunk-P3IJBJUI.js";
5
5
  import "../chunks/chunk-R3Y56YVF.js";
6
6
  import "../chunks/chunk-AFU5E5QB.js";
7
7
  import "../chunks/chunk-HZCTYL22.js";
package/dist/cli/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  defineConfig,
5
5
  run,
6
6
  serveStdio
7
- } from "../chunks/chunk-PMSSUWD7.js";
7
+ } from "../chunks/chunk-P3IJBJUI.js";
8
8
  import "../chunks/chunk-R3Y56YVF.js";
9
9
  import "../chunks/chunk-AFU5E5QB.js";
10
10
  import "../chunks/chunk-HZCTYL22.js";
@@ -0,0 +1,2 @@
1
+ /** The installed package's version, from its package.json. */
2
+ export declare const packageVersion: () => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "outbound-sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "One small, typed, read-only API over outbound sending tools.",
5
5
  "keywords": [
6
6
  "cold-email",