@probelabs/probe 0.6.0-rc145 → 0.6.0-rc146

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/build/index.js CHANGED
@@ -7,6 +7,10 @@
7
7
  * @module @probelabs/probe
8
8
  */
9
9
 
10
+ // Load .env file if present (silent fail if not found)
11
+ import dotenv from 'dotenv';
12
+ dotenv.config();
13
+
10
14
  import { search } from './search.js';
11
15
  import { query } from './query.js';
12
16
  import { extract } from './extract.js';
@@ -1,4 +1,7 @@
1
1
  #!/usr/bin/env node
2
+ // Load .env file if present (silent fail if not found)
3
+ import { config } from 'dotenv';
4
+ config();
2
5
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
3
6
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
4
7
  import { CallToolRequestSchema, ErrorCode, ListToolsRequestSchema, McpError, } from '@modelcontextprotocol/sdk/types.js';
@@ -1,4 +1,9 @@
1
1
  #!/usr/bin/env node
2
+
3
+ // Load .env file if present (silent fail if not found)
4
+ import { config } from 'dotenv';
5
+ config();
6
+
2
7
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
3
8
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
4
9
  import {