@cluesmith/multisage 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/index.ts
4
+ import { config } from "dotenv";
4
5
  import { Command } from "commander";
5
6
  import ora from "ora";
6
7
 
@@ -238,9 +239,10 @@ function displayName(name) {
238
239
  }
239
240
 
240
241
  // src/index.ts
242
+ config();
241
243
  var DEFAULT_API_URL = "https://multisage.ai";
242
244
  var program = new Command();
243
- program.name("multisage").description("Query Multisage from your terminal").version("1.0.1").argument("[question]", "The question to ask").option("-k, --api-key <key>", "API key (overrides MULTISAGE_API_KEY env var)").option("-u, --api-url <url>", "Base URL for API", DEFAULT_API_URL).option("-f, --full", "Include all stages and expert details", false).option("-j, --json", "Output as structured JSON", false).option("-q, --quiet", "Suppress progress indicator", false).action(async (question, options) => {
245
+ program.name("multisage").description("Query Multisage from your terminal").version("1.0.2").argument("[question]", "The question to ask").option("-k, --api-key <key>", "API key (overrides MULTISAGE_API_KEY env var)").option("-u, --api-url <url>", "Base URL for API", DEFAULT_API_URL).option("-f, --full", "Include all stages and expert details", false).option("-j, --json", "Output as structured JSON", false).option("-q, --quiet", "Suppress progress indicator", false).action(async (question, options) => {
244
246
  if (!question) {
245
247
  if (process.stdin.isTTY) {
246
248
  program.help();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cluesmith/multisage",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "CLI client for Multisage — ask questions from your terminal",
5
5
  "type": "module",
6
6
  "bin": {
@@ -19,6 +19,7 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "commander": "^12.1.0",
22
+ "dotenv": "^17.3.1",
22
23
  "ora": "^8.1.1"
23
24
  },
24
25
  "devDependencies": {