@auto-engineer/ai-gateway 0.11.2 → 0.11.4
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/.turbo/turbo-build.log +6 -0
- package/.turbo/turbo-format.log +4 -0
- package/.turbo/turbo-lint.log +4 -0
- package/.turbo/turbo-test.log +20 -0
- package/.turbo/turbo-type-check.log +5 -0
- package/CHANGELOG.md +4 -0
- package/dist/src/config.js +2 -2
- package/dist/src/config.js.map +1 -1
- package/dist/src/index.js +7 -7
- package/dist/src/index.js.map +1 -1
- package/dist/src/mcp-server.js +5 -5
- package/dist/src/mcp-server.js.map +1 -1
- package/dist/src/providers/custom.js +1 -1
- package/dist/src/providers/custom.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/config.ts +2 -2
- package/src/index.ts +7 -7
- package/src/mcp-server.ts +5 -5
- package/src/providers/custom.ts +1 -1
package/package.json
CHANGED
package/src/config.ts
CHANGED
|
@@ -4,8 +4,8 @@ import { dirname, resolve } from 'path';
|
|
|
4
4
|
import createDebug from 'debug';
|
|
5
5
|
import { CustomProviderConfig } from './constants';
|
|
6
6
|
|
|
7
|
-
const debug = createDebug('ai-gateway:config');
|
|
8
|
-
const debugEnv = createDebug('ai-gateway:config:env');
|
|
7
|
+
const debug = createDebug('auto:ai-gateway:config');
|
|
8
|
+
const debugEnv = createDebug('auto:ai-gateway:config:env');
|
|
9
9
|
|
|
10
10
|
const __filename = fileURLToPath(import.meta.url);
|
|
11
11
|
const __dirname = dirname(__filename);
|
package/src/index.ts
CHANGED
|
@@ -13,13 +13,13 @@ import { getRegisteredToolsForAI } from './mcp-server';
|
|
|
13
13
|
import { startServer } from './mcp-server';
|
|
14
14
|
import createDebug from 'debug';
|
|
15
15
|
|
|
16
|
-
// const debug = createDebug('ai-gateway'); // TODO: Use for general debugging
|
|
17
|
-
const debugConfig = createDebug('ai-gateway:config');
|
|
18
|
-
const debugAPI = createDebug('ai-gateway:api');
|
|
19
|
-
const debugError = createDebug('ai-gateway:error');
|
|
20
|
-
const debugTools = createDebug('ai-gateway:tools');
|
|
21
|
-
const debugStream = createDebug('ai-gateway:stream');
|
|
22
|
-
const debugValidation = createDebug('ai-gateway:validation');
|
|
16
|
+
// const debug = createDebug('auto:ai-gateway'); // TODO: Use for general debugging
|
|
17
|
+
const debugConfig = createDebug('auto:ai-gateway:config');
|
|
18
|
+
const debugAPI = createDebug('auto:ai-gateway:api');
|
|
19
|
+
const debugError = createDebug('auto:ai-gateway:error');
|
|
20
|
+
const debugTools = createDebug('auto:ai-gateway:tools');
|
|
21
|
+
const debugStream = createDebug('auto:ai-gateway:stream');
|
|
22
|
+
const debugValidation = createDebug('auto:ai-gateway:validation');
|
|
23
23
|
|
|
24
24
|
// Error type definitions
|
|
25
25
|
const ERROR_PATTERNS = [
|
package/src/mcp-server.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import createDebug from 'debug';
|
|
5
5
|
|
|
6
|
-
const debug = createDebug('ai-gateway:mcp');
|
|
7
|
-
const debugServer = createDebug('ai-gateway:mcp:server');
|
|
8
|
-
const debugTools = createDebug('ai-gateway:mcp:tools');
|
|
9
|
-
const debugRegistry = createDebug('ai-gateway:mcp:registry');
|
|
10
|
-
const debugExecution = createDebug('ai-gateway:mcp:execution');
|
|
6
|
+
const debug = createDebug('auto:ai-gateway:mcp');
|
|
7
|
+
const debugServer = createDebug('auto:ai-gateway:mcp:server');
|
|
8
|
+
const debugTools = createDebug('auto:ai-gateway:mcp:tools');
|
|
9
|
+
const debugRegistry = createDebug('auto:ai-gateway:mcp:registry');
|
|
10
|
+
const debugExecution = createDebug('auto:ai-gateway:mcp:execution');
|
|
11
11
|
|
|
12
12
|
interface ToolResult {
|
|
13
13
|
content: Array<{
|
package/src/providers/custom.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { createOpenAI } from '@ai-sdk/openai';
|
|
|
2
2
|
import { CustomProviderConfig } from '../constants';
|
|
3
3
|
import createDebug from 'debug';
|
|
4
4
|
|
|
5
|
-
const debug = createDebug('ai-gateway:custom');
|
|
5
|
+
const debug = createDebug('auto:ai-gateway:custom');
|
|
6
6
|
|
|
7
7
|
export interface CustomProviderOptions {
|
|
8
8
|
config: CustomProviderConfig;
|