@spekoai/mcp-calls 0.4.6 → 0.4.7

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.js CHANGED
@@ -2288,7 +2288,7 @@ async function runSpeak(argv, deps = {}) {
2288
2288
  text = (await (deps.readStdin ?? readStdinText)()).trim();
2289
2289
  }
2290
2290
  if (!text) {
2291
- stderr('speak: no text given. usage: speko-calls audio speak "your text" (or pipe text via stdin)');
2291
+ stderr('speak: no text given. usage: speko audio speak "your text" (or pipe text via stdin)');
2292
2292
  return 2;
2293
2293
  }
2294
2294
  const optimizeFor = values["optimize-for"];
@@ -2418,7 +2418,7 @@ async function runTranscribe(argv, deps = {}) {
2418
2418
  const input = positionals[0];
2419
2419
  const stdinIsTTY = deps.stdinIsTTY ?? Boolean(process.stdin.isTTY);
2420
2420
  if (!input && stdinIsTTY) {
2421
- stderr("transcribe: no input. usage: speko-calls audio transcribe <file|url> (or pipe audio via stdin)");
2421
+ stderr("transcribe: no input. usage: speko audio transcribe <file|url> (or pipe audio via stdin)");
2422
2422
  return 2;
2423
2423
  }
2424
2424
  const optimizeFor = values["optimize-for"];
@@ -2521,7 +2521,7 @@ async function runTranscribe(argv, deps = {}) {
2521
2521
  }
2522
2522
 
2523
2523
  // src/cli/audio/index.ts
2524
- var HELP = 'speko-calls audio \u2014 voice from your terminal (Speko auto-routes to the best provider)\n\nUsage:\n speko-calls audio speak "<text>" [--voice <id>] [--optimize-for latency|balanced|accuracy|cost]\n [--provider <p>] [--model <m>] [--speed <n>] [--lang <code>]\n [-o <out>] [--format wav|mp3] [--no-play] [--json] [-q]\n speko-calls audio transcribe <file|url|-> [--lang <code>] [--keywords a,b,c] [--content-type <mime>]\n [--optimize-for ...] [--provider <p>] [-o <out>] [--format txt|md] [--json] [-q]\n\nPipes:\n echo "ship it" | speko-calls audio speak\n cat rec.wav | speko-calls audio transcribe\n speko-calls audio speak "read this back" | speko-calls audio transcribe\n';
2524
+ var HELP = 'speko audio \u2014 voice from your terminal (Speko auto-routes to the best provider)\n\nUsage:\n speko audio speak "<text>" [--voice <id>] [--optimize-for latency|balanced|accuracy|cost]\n [--provider <p>] [--model <m>] [--speed <n>] [--lang <code>]\n [-o <out>] [--format wav|mp3] [--no-play] [--json] [-q]\n speko audio transcribe <file|url|-> [--lang <code>] [--keywords a,b,c] [--content-type <mime>]\n [--optimize-for ...] [--provider <p>] [-o <out>] [--format txt|md] [--json] [-q]\n\nPipes:\n echo "ship it" | speko audio speak\n cat rec.wav | speko audio transcribe\n speko audio speak "read this back" | speko audio transcribe\n';
2525
2525
  async function runAudio(argv) {
2526
2526
  const sub = argv[0];
2527
2527
  if (sub === "speak") return runSpeak(argv.slice(1));
@@ -2530,7 +2530,7 @@ async function runAudio(argv) {
2530
2530
  process.stderr.write(HELP);
2531
2531
  return sub ? 0 : 1;
2532
2532
  }
2533
- process.stderr.write(`speko-calls audio: unknown subcommand '${sub}'. try: speak | transcribe
2533
+ process.stderr.write(`speko audio: unknown subcommand '${sub}'. try: speak | transcribe
2534
2534
  `);
2535
2535
  return 2;
2536
2536
  }
@@ -2611,11 +2611,12 @@ var CLI_COMMANDS = [
2611
2611
  "--version",
2612
2612
  "-V"
2613
2613
  ];
2614
- function resolveMode(argv) {
2614
+ function resolveMode(argv, opts = {}) {
2615
2615
  const cmd = argv[2];
2616
2616
  if (cmd && CLI_COMMANDS.includes(cmd)) {
2617
2617
  return { kind: "cli", name: cmd };
2618
2618
  }
2619
+ if (opts.stdinIsTTY) return { kind: "help" };
2619
2620
  return { kind: "server" };
2620
2621
  }
2621
2622
 
@@ -3127,18 +3128,18 @@ var MakeCallTool = class extends MCPTool6 {
3127
3128
  };
3128
3129
 
3129
3130
  // src/index.ts
3130
- var VERSION = "0.4.6";
3131
+ var VERSION = "0.4.7";
3131
3132
  function printHelp() {
3132
3133
  process.stderr.write(
3133
- `speko-calls ${VERSION} \u2014 call real businesses + speak/transcribe from your terminal; also an MCP server for coding agents.
3134
+ `speko ${VERSION} \u2014 call real businesses + speak/transcribe from your terminal; also an MCP server for coding agents.
3134
3135
 
3135
3136
  Usage:
3136
- speko-calls start the MCP stdio server (Claude Code, etc.)
3137
- speko-calls init | setup | login onboarding & auth
3138
- speko-calls audio speak "<text>" text-to-speech (TTS)
3139
- speko-calls audio transcribe <f|-> speech-to-text (STT)
3140
- speko-calls voices [--provider <p>] list available voices
3141
- speko-calls --help | --version
3137
+ speko (when launched by an MCP host) the stdio MCP server
3138
+ speko init | setup | login onboarding & auth
3139
+ speko audio speak "<text>" text-to-speech (TTS)
3140
+ speko audio transcribe <f|-> speech-to-text (STT)
3141
+ speko voices [--provider <p>] list available voices
3142
+ speko --help | --version
3142
3143
  `
3143
3144
  );
3144
3145
  return 0;
@@ -3160,7 +3161,7 @@ var CLI = {
3160
3161
  "--version": printVersion,
3161
3162
  "-V": printVersion
3162
3163
  };
3163
- var mode = resolveMode(process.argv);
3164
+ var mode = resolveMode(process.argv, { stdinIsTTY: Boolean(process.stdin.isTTY) });
3164
3165
  if (mode.kind === "cli") {
3165
3166
  try {
3166
3167
  const code = await CLI[mode.name]();
@@ -3171,6 +3172,10 @@ if (mode.kind === "cli") {
3171
3172
  process.exit(1);
3172
3173
  }
3173
3174
  }
3175
+ if (mode.kind === "help") {
3176
+ printHelp();
3177
+ process.exit(0);
3178
+ }
3174
3179
  loadEnv();
3175
3180
  var server = new MCPServer({
3176
3181
  name: "speko-calls",