@adverant-nexus/cli 3.1.0 → 3.1.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.
- package/dist/.tsbuildinfo +1 -1
- package/dist/auth/auth-client.d.ts +1 -1
- package/dist/auth/auth-client.d.ts.map +1 -1
- package/dist/auth/credentials-manager.d.ts +1 -1
- package/dist/auth/credentials-manager.d.ts.map +1 -1
- package/dist/commands/compute/lib/local-compute-agent.d.ts +4 -4
- package/dist/commands/compute/lib/local-compute-agent.d.ts.map +1 -1
- package/dist/commands/compute/lib/local-compute-agent.js +134 -110
- package/dist/commands/compute/lib/local-compute-agent.js.map +1 -1
- package/dist/commands/compute/lib/local-compute-client.d.ts +1 -1
- package/dist/commands/compute/lib/local-compute-client.d.ts.map +1 -1
- package/dist/commands/dynamic/graphrag-commands.d.ts +1 -1
- package/dist/commands/dynamic/graphrag-commands.d.ts.map +1 -1
- package/dist/commands/dynamic/index.d.ts +1 -1
- package/dist/commands/dynamic/index.d.ts.map +1 -1
- package/dist/commands/dynamic/mageagent-commands.d.ts +1 -1
- package/dist/commands/dynamic/mageagent-commands.d.ts.map +1 -1
- package/dist/commands/dynamic/mcp-commands.d.ts +1 -1
- package/dist/commands/dynamic/mcp-commands.d.ts.map +1 -1
- package/dist/commands/dynamic/mcp-tool-mapper.d.ts +2 -2
- package/dist/commands/dynamic/mcp-tool-mapper.d.ts.map +1 -1
- package/dist/commands/dynamic/sandbox-commands.d.ts +1 -1
- package/dist/commands/dynamic/sandbox-commands.d.ts.map +1 -1
- package/dist/core/config/config-manager.d.ts +1 -1
- package/dist/core/config/config-manager.d.ts.map +1 -1
- package/dist/core/config/config-manager.js +1 -1
- package/dist/core/config/config-manager.js.map +1 -1
- package/dist/core/config/profile-manager.d.ts +1 -1
- package/dist/core/config/profile-manager.d.ts.map +1 -1
- package/dist/core/config/workspace-detector.d.ts +1 -1
- package/dist/core/config/workspace-detector.d.ts.map +1 -1
- package/dist/core/discovery/docker-parser.d.ts +1 -1
- package/dist/core/discovery/docker-parser.d.ts.map +1 -1
- package/dist/core/discovery/docker-parser.js +1 -1
- package/dist/core/discovery/docker-parser.js.map +1 -1
- package/dist/core/discovery/mcp-discovery.d.ts +1 -1
- package/dist/core/discovery/mcp-discovery.d.ts.map +1 -1
- package/dist/core/discovery/openapi-parser.d.ts +1 -1
- package/dist/core/discovery/openapi-parser.d.ts.map +1 -1
- package/dist/core/discovery/plugin-discovery.d.ts +1 -1
- package/dist/core/discovery/plugin-discovery.d.ts.map +1 -1
- package/dist/core/discovery/plugin-discovery.js.map +1 -1
- package/dist/core/discovery/service-discovery.d.ts +2 -2
- package/dist/core/discovery/service-discovery.d.ts.map +1 -1
- package/dist/core/discovery/service-discovery.js +1 -1
- package/dist/core/discovery/service-discovery.js.map +1 -1
- package/dist/core/router/command-registry.d.ts +1 -1
- package/dist/core/router/command-registry.d.ts.map +1 -1
- package/dist/core/router/command-router.d.ts +1 -1
- package/dist/core/router/command-router.d.ts.map +1 -1
- package/dist/core/router/index.d.ts +1 -1
- package/dist/core/router/index.d.ts.map +1 -1
- package/dist/core/router/middleware.d.ts +1 -1
- package/dist/core/router/middleware.d.ts.map +1 -1
- package/dist/core/session/context-manager.d.ts +5 -5
- package/dist/core/session/context-manager.d.ts.map +1 -1
- package/dist/core/session/history-manager.d.ts +1 -1
- package/dist/core/session/history-manager.d.ts.map +1 -1
- package/dist/core/session/session-manager.d.ts +1 -1
- package/dist/core/session/session-manager.d.ts.map +1 -1
- package/dist/core/session/session-storage.d.ts +1 -1
- package/dist/core/session/session-storage.d.ts.map +1 -1
- package/dist/core/session/session-storage.js +1 -1
- package/dist/core/session/session-storage.js.map +1 -1
- package/dist/core/transport/http-client.d.ts +1 -1
- package/dist/core/transport/http-client.d.ts.map +1 -1
- package/dist/core/transport/index.d.ts +1 -1
- package/dist/core/transport/index.d.ts.map +1 -1
- package/dist/core/transport/mcp-client.d.ts +1 -1
- package/dist/core/transport/mcp-client.d.ts.map +1 -1
- package/dist/core/transport/stream-handler.d.ts +1 -1
- package/dist/core/transport/stream-handler.d.ts.map +1 -1
- package/dist/core/transport/websocket-client.d.ts +1 -1
- package/dist/core/transport/websocket-client.d.ts.map +1 -1
- package/dist/repl/completer.d.ts +1 -1
- package/dist/repl/completer.d.ts.map +1 -1
- package/dist/repl/evaluator.d.ts +1 -1
- package/dist/repl/evaluator.d.ts.map +1 -1
- package/dist/repl/renderer.d.ts +1 -1
- package/dist/repl/renderer.d.ts.map +1 -1
- package/dist/repl/repl.d.ts +1 -1
- package/dist/repl/repl.d.ts.map +1 -1
- package/dist/types/agent.d.ts +109 -0
- package/dist/types/agent.d.ts.map +1 -0
- package/dist/types/agent.js +7 -0
- package/dist/types/agent.js.map +1 -0
- package/dist/types/api.d.ts +125 -0
- package/dist/types/api.d.ts.map +1 -0
- package/dist/types/api.js +53 -0
- package/dist/types/api.js.map +1 -0
- package/dist/types/auth.d.ts +176 -0
- package/dist/types/auth.d.ts.map +1 -0
- package/dist/types/auth.js +7 -0
- package/dist/types/auth.js.map +1 -0
- package/dist/types/command.d.ts +101 -0
- package/dist/types/command.d.ts.map +1 -0
- package/dist/types/command.js +7 -0
- package/dist/types/command.js.map +1 -0
- package/dist/types/compute.d.ts +317 -0
- package/dist/types/compute.d.ts.map +1 -0
- package/dist/types/compute.js +19 -0
- package/dist/types/compute.js.map +1 -0
- package/dist/types/config-schemas.d.ts +1216 -0
- package/dist/types/config-schemas.d.ts.map +1 -0
- package/dist/types/config-schemas.js +113 -0
- package/dist/types/config-schemas.js.map +1 -0
- package/dist/types/config.d.ts +75 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/config.js +7 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/errors.d.ts +56 -0
- package/dist/types/errors.d.ts.map +1 -0
- package/dist/types/errors.js +64 -0
- package/dist/types/errors.js.map +1 -0
- package/dist/types/index.d.ts +20 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +20 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/mcp.d.ts +254 -0
- package/dist/types/mcp.d.ts.map +1 -0
- package/dist/types/mcp.js +7 -0
- package/dist/types/mcp.js.map +1 -0
- package/dist/types/output.d.ts +107 -0
- package/dist/types/output.d.ts.map +1 -0
- package/dist/types/output.js +7 -0
- package/dist/types/output.js.map +1 -0
- package/dist/types/plugin.d.ts +118 -0
- package/dist/types/plugin.d.ts.map +1 -0
- package/dist/types/plugin.js +7 -0
- package/dist/types/plugin.js.map +1 -0
- package/dist/types/service.d.ts +95 -0
- package/dist/types/service.d.ts.map +1 -0
- package/dist/types/service.js +15 -0
- package/dist/types/service.js.map +1 -0
- package/dist/types/session-schemas.d.ts +328 -0
- package/dist/types/session-schemas.d.ts.map +1 -0
- package/dist/types/session-schemas.js +76 -0
- package/dist/types/session-schemas.js.map +1 -0
- package/dist/types/transport.d.ts +96 -0
- package/dist/types/transport.d.ts.map +1 -0
- package/dist/types/transport.js +7 -0
- package/dist/types/transport.js.map +1 -0
- package/package.json +1 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-schemas.d.ts","sourceRoot":"","sources":["../../src/types/config-schemas.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;EAGhC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAK/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;EAM3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAK/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAK5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAI9B,CAAC;AAEH;;GAEG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2
|
+
* Configuration Zod Schemas
|
|
3
|
+
*
|
|
4
|
+
* Runtime validation schemas for configuration types.
|
|
5
|
+
* TypeScript types are inferred from these schemas to ensure
|
|
6
|
+
* runtime validation matches compile-time types.
|
|
7
|
+
*/
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
/**
|
|
10
|
+
* Workspace configuration schema
|
|
11
|
+
*/
|
|
12
|
+
export const WorkspaceConfigSchema = z.object({
|
|
13
|
+
name: z.string().optional(),
|
|
14
|
+
type: z.enum(['typescript', 'python', 'go', 'rust', 'java']).optional(),
|
|
15
|
+
});
|
|
16
|
+
/**
|
|
17
|
+
* Services configuration schema
|
|
18
|
+
*/
|
|
19
|
+
export const ServicesConfigSchema = z.object({
|
|
20
|
+
apiUrl: z.string().url().optional(),
|
|
21
|
+
mcpUrl: z.string().url().optional(),
|
|
22
|
+
timeout: z.number().positive().optional(),
|
|
23
|
+
retries: z.number().nonnegative().optional(),
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* Authentication configuration schema
|
|
27
|
+
*/
|
|
28
|
+
export const AuthConfigSchema = z.object({
|
|
29
|
+
type: z.enum(['api-key', 'bearer', 'basic', 'oauth']).optional(),
|
|
30
|
+
credentials: z.union([z.string(), z.record(z.string())]).optional(),
|
|
31
|
+
apiKey: z.string().optional(), // Legacy support
|
|
32
|
+
strategy: z.enum(['api-key', 'oauth', 'jwt']).optional(),
|
|
33
|
+
token: z.string().optional(),
|
|
34
|
+
});
|
|
35
|
+
/**
|
|
36
|
+
* Defaults configuration schema
|
|
37
|
+
*/
|
|
38
|
+
export const DefaultsConfigSchema = z.object({
|
|
39
|
+
outputFormat: z.enum(['text', 'json', 'yaml', 'table', 'stream-json']).optional(),
|
|
40
|
+
streaming: z.boolean().optional(),
|
|
41
|
+
verbose: z.boolean().optional(),
|
|
42
|
+
quiet: z.boolean().optional(),
|
|
43
|
+
});
|
|
44
|
+
/**
|
|
45
|
+
* Agent configuration schema
|
|
46
|
+
*/
|
|
47
|
+
export const AgentConfigSchema = z.object({
|
|
48
|
+
maxIterations: z.number().positive().optional(),
|
|
49
|
+
autoApproveSafe: z.boolean().optional(),
|
|
50
|
+
workspace: z.string().optional(),
|
|
51
|
+
budget: z.number().positive().optional(),
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* Plugins configuration schema
|
|
55
|
+
*/
|
|
56
|
+
export const PluginsConfigSchema = z.object({
|
|
57
|
+
enabled: z.array(z.string()).optional(),
|
|
58
|
+
disabled: z.array(z.string()).optional(),
|
|
59
|
+
autoUpdate: z.boolean().optional(),
|
|
60
|
+
});
|
|
61
|
+
/**
|
|
62
|
+
* MCP configuration schema
|
|
63
|
+
*/
|
|
64
|
+
export const MCPConfigSchema = z.object({
|
|
65
|
+
autoStore: z.boolean().optional(),
|
|
66
|
+
memoryTags: z.array(z.string()).optional(),
|
|
67
|
+
healthCheckInterval: z.number().positive().optional(),
|
|
68
|
+
command: z.string().optional(),
|
|
69
|
+
args: z.array(z.string()).optional(),
|
|
70
|
+
env: z.record(z.string()).optional(),
|
|
71
|
+
timeout: z.number().positive().optional(),
|
|
72
|
+
});
|
|
73
|
+
/**
|
|
74
|
+
* Shortcut schema
|
|
75
|
+
*/
|
|
76
|
+
export const ShortcutSchema = z.object({
|
|
77
|
+
name: z.string(),
|
|
78
|
+
command: z.string(),
|
|
79
|
+
description: z.string().optional(),
|
|
80
|
+
});
|
|
81
|
+
/**
|
|
82
|
+
* Main Nexus configuration schema
|
|
83
|
+
*/
|
|
84
|
+
export const NexusConfigSchema = z.object({
|
|
85
|
+
workspace: WorkspaceConfigSchema.optional(),
|
|
86
|
+
services: ServicesConfigSchema.optional(),
|
|
87
|
+
auth: AuthConfigSchema.optional(),
|
|
88
|
+
defaults: DefaultsConfigSchema.optional(),
|
|
89
|
+
agent: AgentConfigSchema.optional(),
|
|
90
|
+
plugins: PluginsConfigSchema.optional(),
|
|
91
|
+
mcp: MCPConfigSchema.optional(),
|
|
92
|
+
shortcuts: z.array(ShortcutSchema).optional(),
|
|
93
|
+
});
|
|
94
|
+
/**
|
|
95
|
+
* Profile schema
|
|
96
|
+
*/
|
|
97
|
+
export const ProfileSchema = z.object({
|
|
98
|
+
name: z.string(),
|
|
99
|
+
config: NexusConfigSchema,
|
|
100
|
+
default: z.boolean().optional(),
|
|
101
|
+
});
|
|
102
|
+
/**
|
|
103
|
+
* Global configuration schema
|
|
104
|
+
*/
|
|
105
|
+
export const GlobalConfigSchema = z.object({
|
|
106
|
+
profiles: z.array(ProfileSchema),
|
|
107
|
+
currentProfile: z.string().optional(),
|
|
108
|
+
pluginDirectory: z.string().optional(),
|
|
109
|
+
cacheDirectory: z.string().optional(),
|
|
110
|
+
updateCheck: z.boolean().optional(),
|
|
111
|
+
telemetry: z.boolean().optional(),
|
|
112
|
+
});
|
|
113
|
+
//# sourceMappingURL=config-schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-schemas.js","sourceRoot":"","sources":["../../src/types/config-schemas.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;CACxE,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACnC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE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AC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Types for CLI configuration, profiles, and workspace settings
|
|
5
|
+
*/
|
|
6
|
+
export interface NexusConfig {
|
|
7
|
+
workspace?: WorkspaceConfig;
|
|
8
|
+
services?: ServicesConfig;
|
|
9
|
+
auth?: AuthConfig;
|
|
10
|
+
defaults?: DefaultsConfig;
|
|
11
|
+
agent?: AgentConfig;
|
|
12
|
+
plugins?: PluginsConfig;
|
|
13
|
+
mcp?: MCPConfig;
|
|
14
|
+
shortcuts?: Shortcut[];
|
|
15
|
+
}
|
|
16
|
+
export interface WorkspaceConfig {
|
|
17
|
+
name?: string;
|
|
18
|
+
type?: 'typescript' | 'python' | 'go' | 'rust' | 'java';
|
|
19
|
+
}
|
|
20
|
+
export interface ServicesConfig {
|
|
21
|
+
apiUrl?: string;
|
|
22
|
+
mcpUrl?: string;
|
|
23
|
+
timeout?: number;
|
|
24
|
+
retries?: number;
|
|
25
|
+
}
|
|
26
|
+
export interface AuthConfig {
|
|
27
|
+
type?: 'api-key' | 'bearer' | 'basic' | 'oauth';
|
|
28
|
+
credentials?: string | Record<string, string>;
|
|
29
|
+
apiKey?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface DefaultsConfig {
|
|
32
|
+
outputFormat?: 'text' | 'json' | 'yaml' | 'table' | 'stream-json';
|
|
33
|
+
streaming?: boolean;
|
|
34
|
+
verbose?: boolean;
|
|
35
|
+
quiet?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface AgentConfig {
|
|
38
|
+
maxIterations?: number;
|
|
39
|
+
autoApproveSafe?: boolean;
|
|
40
|
+
workspace?: string;
|
|
41
|
+
budget?: number;
|
|
42
|
+
}
|
|
43
|
+
export interface PluginsConfig {
|
|
44
|
+
enabled?: string[];
|
|
45
|
+
disabled?: string[];
|
|
46
|
+
autoUpdate?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface MCPConfig {
|
|
49
|
+
autoStore?: boolean;
|
|
50
|
+
memoryTags?: string[];
|
|
51
|
+
healthCheckInterval?: number;
|
|
52
|
+
command?: string;
|
|
53
|
+
args?: string[];
|
|
54
|
+
env?: Record<string, string>;
|
|
55
|
+
timeout?: number;
|
|
56
|
+
}
|
|
57
|
+
export interface Shortcut {
|
|
58
|
+
name: string;
|
|
59
|
+
command: string;
|
|
60
|
+
description?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface Profile {
|
|
63
|
+
name: string;
|
|
64
|
+
config: NexusConfig;
|
|
65
|
+
default?: boolean;
|
|
66
|
+
}
|
|
67
|
+
export interface GlobalConfig {
|
|
68
|
+
profiles: Profile[];
|
|
69
|
+
currentProfile?: string;
|
|
70
|
+
pluginDirectory?: string;
|
|
71
|
+
cacheDirectory?: string;
|
|
72
|
+
updateCheck?: boolean;
|
|
73
|
+
telemetry?: boolean;
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,KAAK,CAAC,EAAE,WAAW,C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AW,SAAS;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type-safe error handling for nexus-cli
|
|
3
|
+
* Eliminates 'any' types and provides proper error context
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Axios HTTP error with proper typing
|
|
7
|
+
*/
|
|
8
|
+
export interface HttpError extends Error {
|
|
9
|
+
code?: string;
|
|
10
|
+
response?: {
|
|
11
|
+
status: number;
|
|
12
|
+
statusText: string;
|
|
13
|
+
data?: {
|
|
14
|
+
message?: string;
|
|
15
|
+
error?: string;
|
|
16
|
+
details?: unknown;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
request?: unknown;
|
|
20
|
+
config?: unknown;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Network error (ECONNREFUSED, ENOTFOUND, etc.)
|
|
24
|
+
*/
|
|
25
|
+
export interface NetworkError extends Error {
|
|
26
|
+
code: 'ECONNREFUSED' | 'ENOTFOUND' | 'ETIMEDOUT' | 'ECONNRESET' | string;
|
|
27
|
+
errno?: number;
|
|
28
|
+
syscall?: string;
|
|
29
|
+
hostname?: string;
|
|
30
|
+
port?: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Type guard to check if error is HTTP error
|
|
34
|
+
*/
|
|
35
|
+
export declare function isHttpError(error: unknown): error is HttpError;
|
|
36
|
+
/**
|
|
37
|
+
* Type guard to check if error is network error
|
|
38
|
+
*/
|
|
39
|
+
export declare function isNetworkError(error: unknown): error is NetworkError;
|
|
40
|
+
/**
|
|
41
|
+
* Type guard to check if error is standard Error
|
|
42
|
+
*/
|
|
43
|
+
export declare function isError(error: unknown): error is Error;
|
|
44
|
+
/**
|
|
45
|
+
* Safe error message extraction with fallback
|
|
46
|
+
*/
|
|
47
|
+
export declare function getErrorMessage(error: unknown): string;
|
|
48
|
+
/**
|
|
49
|
+
* Get HTTP status code from error
|
|
50
|
+
*/
|
|
51
|
+
export declare function getHttpStatus(error: unknown): number | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Get error code (for network errors)
|
|
54
|
+
*/
|
|
55
|
+
export declare function getErrorCode(error: unknown): string | undefined;
|
|
56
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/types/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,KAA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'any' types and provides proper error context
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Type guard to check if error is HTTP error
|
|
7
|
+
*/
|
|
8
|
+
export function isHttpError(error) {
|
|
9
|
+
return (error instanceof Error &&
|
|
10
|
+
'response' in error &&
|
|
11
|
+
typeof error.response === 'object' &&
|
|
12
|
+
error.response !== null);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Type guard to check if error is network error
|
|
16
|
+
*/
|
|
17
|
+
export function isNetworkError(error) {
|
|
18
|
+
return (error instanceof Error &&
|
|
19
|
+
'code' in error &&
|
|
20
|
+
typeof error.code === 'string');
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Type guard to check if error is standard Error
|
|
24
|
+
*/
|
|
25
|
+
export function isError(error) {
|
|
26
|
+
return error instanceof Error;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Safe error message extraction with fallback
|
|
30
|
+
*/
|
|
31
|
+
export function getErrorMessage(error) {
|
|
32
|
+
if (isHttpError(error) && error.response?.data?.message) {
|
|
33
|
+
return error.response.data.message;
|
|
34
|
+
}
|
|
35
|
+
if (isHttpError(error) && error.response?.data?.error) {
|
|
36
|
+
return error.response.data.error;
|
|
37
|
+
}
|
|
38
|
+
if (isError(error)) {
|
|
39
|
+
return error.message;
|
|
40
|
+
}
|
|
41
|
+
if (typeof error === 'string') {
|
|
42
|
+
return error;
|
|
43
|
+
}
|
|
44
|
+
return 'Unknown error occurred';
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Get HTTP status code from error
|
|
48
|
+
*/
|
|
49
|
+
export function getHttpStatus(error) {
|
|
50
|
+
if (isHttpError(error)) {
|
|
51
|
+
return error.response?.status;
|
|
52
|
+
}
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Get error code (for network errors)
|
|
57
|
+
*/
|
|
58
|
+
export function getErrorCode(error) {
|
|
59
|
+
if (isNetworkError(error)) {
|
|
60
|
+
return error.code;
|
|
61
|
+
}
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/types/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA+BH;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,KAAc;IACxC,OAAO,CACL,KAAK,YAAY,KAAK;QACtB,UAAU,IAAI,KAAK;QACnB,OAAQ,KAAmB,CAAC,QAAQ,KAAK,QAAQ;QAChD,KAAmB,CAAC,QAAQ,KAAK,IAAI,CACvC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,KAAc;IAC3C,OAAO,CACL,KAAK,YAAY,KAAK;QACtB,MAAM,IAAI,KAAK;QACf,OAAQ,KAAsB,CAAC,IAAI,KAAK,QAAQ,CACjD,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,OAAO,CAAC,KAAc;IACpC,OAAO,KAAK,YAAY,KAAK,CAAC;AAChC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,IAAI,WAAW,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;QACxD,OAAO,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC;IACrC,CAAC;IAED,IAAI,WAAW,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QACtD,OAAO,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC;IACnC,CAAC;IAED,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACnB,OAAO,KAAK,CAAC,OAAO,CAAC;IACvB,CAAC;IAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,wBAAwB,CAAC;AAClC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,KAAc;IAC1C,IAAI,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC;IAChC,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,KAAc;IACzC,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,KAAK,CAAC,IAAI,CAAC;IACpB,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core Type Definitions for Nexus CLI
|
|
3
|
+
*
|
|
4
|
+
* Centralized type system for the entire CLI architecture
|
|
5
|
+
*/
|
|
6
|
+
export * from './service.js';
|
|
7
|
+
export * from './command.js';
|
|
8
|
+
export * from './config.js';
|
|
9
|
+
export * from './config-schemas.js';
|
|
10
|
+
export * from './plugin.js';
|
|
11
|
+
export * from './session-schemas.js';
|
|
12
|
+
export * from './output.js';
|
|
13
|
+
export * from './transport.js';
|
|
14
|
+
export * from './agent.js';
|
|
15
|
+
export * from './api.js';
|
|
16
|
+
export * from './auth.js';
|
|
17
|
+
export * from './errors.js';
|
|
18
|
+
export * from './mcp.js';
|
|
19
|
+
export * from './compute.js';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core Type Definitions for Nexus CLI
|
|
3
|
+
*
|
|
4
|
+
* Centralized type system for the entire CLI architecture
|
|
5
|
+
*/
|
|
6
|
+
export * from './service.js';
|
|
7
|
+
export * from './command.js';
|
|
8
|
+
export * from './config.js'; // Interface definitions for config types
|
|
9
|
+
export * from './config-schemas.js'; // Zod schemas for runtime validation
|
|
10
|
+
export * from './plugin.js';
|
|
11
|
+
export * from './session-schemas.js'; // Includes all session types via z.infer
|
|
12
|
+
export * from './output.js';
|
|
13
|
+
export * from './transport.js';
|
|
14
|
+
export * from './agent.js';
|
|
15
|
+
export * from './api.js';
|
|
16
|
+
export * from './auth.js';
|
|
17
|
+
export * from './errors.js';
|
|
18
|
+
export * from './mcp.js';
|
|
19
|
+
export * from './compute.js';
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC,CAAE,yCAAyC;AACvE,cAAc,qBAAqB,CAAC,CAAE,qCAAqC;AAC3E,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC,CAAE,yCAAyC;AAChF,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Tool Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Types for Model Context Protocol tool integration, streaming, and operations
|
|
5
|
+
*/
|
|
6
|
+
import type { ServiceHealth } from './service.js';
|
|
7
|
+
export interface MCPToolDefinition {
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
category: MCPToolCategory;
|
|
11
|
+
inputSchema: any;
|
|
12
|
+
outputSchema?: any;
|
|
13
|
+
streaming: boolean;
|
|
14
|
+
examples: string[];
|
|
15
|
+
}
|
|
16
|
+
export type MCPToolCategory = 'memory' | 'documents' | 'knowledge-graph' | 'code-analysis' | 'multi-agent' | 'learning' | 'episodes' | 'health' | 'general';
|
|
17
|
+
export interface Memory {
|
|
18
|
+
id: string;
|
|
19
|
+
content: string;
|
|
20
|
+
tags: string[];
|
|
21
|
+
metadata?: Record<string, any>;
|
|
22
|
+
embedding?: number[];
|
|
23
|
+
score?: number;
|
|
24
|
+
timestamp: Date;
|
|
25
|
+
}
|
|
26
|
+
export interface Document {
|
|
27
|
+
id: string;
|
|
28
|
+
title: string;
|
|
29
|
+
content: string;
|
|
30
|
+
type: DocumentType;
|
|
31
|
+
tags: string[];
|
|
32
|
+
metadata?: Record<string, any>;
|
|
33
|
+
chunks?: DocumentChunk[];
|
|
34
|
+
timestamp: Date;
|
|
35
|
+
}
|
|
36
|
+
export type DocumentType = 'code' | 'markdown' | 'text' | 'structured' | 'multimodal';
|
|
37
|
+
export interface DocumentChunk {
|
|
38
|
+
id: string;
|
|
39
|
+
documentId: string;
|
|
40
|
+
content: string;
|
|
41
|
+
index: number;
|
|
42
|
+
embedding?: number[];
|
|
43
|
+
metadata?: Record<string, any>;
|
|
44
|
+
}
|
|
45
|
+
export interface Entity {
|
|
46
|
+
id: string;
|
|
47
|
+
domain: string;
|
|
48
|
+
entityType: string;
|
|
49
|
+
textContent: string;
|
|
50
|
+
tags: string[];
|
|
51
|
+
hierarchyLevel: number;
|
|
52
|
+
metadata?: Record<string, any>;
|
|
53
|
+
relationships?: EntityRelationship[];
|
|
54
|
+
timestamp: Date;
|
|
55
|
+
}
|
|
56
|
+
export interface EntityRelationship {
|
|
57
|
+
id: string;
|
|
58
|
+
sourceEntityId: string;
|
|
59
|
+
targetEntityId: string;
|
|
60
|
+
relationshipType: string;
|
|
61
|
+
weight: number;
|
|
62
|
+
metadata?: Record<string, any>;
|
|
63
|
+
}
|
|
64
|
+
export interface CodeValidationRequest {
|
|
65
|
+
code: string;
|
|
66
|
+
language: string;
|
|
67
|
+
context?: string;
|
|
68
|
+
riskLevel: RiskLevel;
|
|
69
|
+
}
|
|
70
|
+
export type RiskLevel = 'low' | 'medium' | 'high' | 'critical';
|
|
71
|
+
export interface CodeValidationResult {
|
|
72
|
+
validationId: string;
|
|
73
|
+
models: ModelValidation[];
|
|
74
|
+
consensus: ValidationConsensus;
|
|
75
|
+
recommendations: string[];
|
|
76
|
+
}
|
|
77
|
+
export interface ModelValidation {
|
|
78
|
+
model: string;
|
|
79
|
+
issues: ValidationIssue[];
|
|
80
|
+
score: number;
|
|
81
|
+
executionTime: number;
|
|
82
|
+
}
|
|
83
|
+
export interface ValidationIssue {
|
|
84
|
+
severity: 'critical' | 'warning' | 'info';
|
|
85
|
+
category: string;
|
|
86
|
+
message: string;
|
|
87
|
+
line?: number;
|
|
88
|
+
column?: number;
|
|
89
|
+
suggestion?: string;
|
|
90
|
+
}
|
|
91
|
+
export interface ValidationConsensus {
|
|
92
|
+
critical: number;
|
|
93
|
+
warnings: number;
|
|
94
|
+
info: number;
|
|
95
|
+
recommendation: 'approve' | 'review' | 'reject';
|
|
96
|
+
agreement: number;
|
|
97
|
+
}
|
|
98
|
+
export interface CodeAnalysisRequest {
|
|
99
|
+
code: string;
|
|
100
|
+
language: string;
|
|
101
|
+
depth: AnalysisDepth;
|
|
102
|
+
focusAreas?: string[];
|
|
103
|
+
}
|
|
104
|
+
export type AnalysisDepth = 'quick' | 'standard' | 'deep';
|
|
105
|
+
export interface CodeAnalysisResult {
|
|
106
|
+
issues: AnalysisIssue[];
|
|
107
|
+
metrics: CodeMetrics;
|
|
108
|
+
suggestions: string[];
|
|
109
|
+
executionTime: number;
|
|
110
|
+
}
|
|
111
|
+
export interface AnalysisIssue {
|
|
112
|
+
type: string;
|
|
113
|
+
severity: 'critical' | 'major' | 'minor' | 'info';
|
|
114
|
+
message: string;
|
|
115
|
+
location?: CodeLocation;
|
|
116
|
+
suggestion?: string;
|
|
117
|
+
}
|
|
118
|
+
export interface CodeLocation {
|
|
119
|
+
file?: string;
|
|
120
|
+
line: number;
|
|
121
|
+
column: number;
|
|
122
|
+
endLine?: number;
|
|
123
|
+
endColumn?: number;
|
|
124
|
+
}
|
|
125
|
+
export interface CodeMetrics {
|
|
126
|
+
complexity: number;
|
|
127
|
+
maintainability: number;
|
|
128
|
+
security: number;
|
|
129
|
+
performance: number;
|
|
130
|
+
quality: number;
|
|
131
|
+
}
|
|
132
|
+
export interface OrchestrationRequest {
|
|
133
|
+
task: string;
|
|
134
|
+
maxAgents?: number;
|
|
135
|
+
timeout?: number;
|
|
136
|
+
context?: Record<string, any>;
|
|
137
|
+
}
|
|
138
|
+
export interface OrchestrationResult {
|
|
139
|
+
taskId: string;
|
|
140
|
+
agents: AgentExecution[];
|
|
141
|
+
synthesisResult: any;
|
|
142
|
+
totalExecutionTime: number;
|
|
143
|
+
status: OrchestrationStatus;
|
|
144
|
+
}
|
|
145
|
+
export type OrchestrationStatus = 'pending' | 'running' | 'completed' | 'failed';
|
|
146
|
+
export interface AgentExecution {
|
|
147
|
+
agentId: string;
|
|
148
|
+
role: string;
|
|
149
|
+
task: string;
|
|
150
|
+
status: 'pending' | 'running' | 'completed' | 'failed';
|
|
151
|
+
result?: any;
|
|
152
|
+
executionTime?: number;
|
|
153
|
+
error?: string;
|
|
154
|
+
}
|
|
155
|
+
export interface LearningRequest {
|
|
156
|
+
topic: string;
|
|
157
|
+
priority: number;
|
|
158
|
+
trigger: LearningTrigger;
|
|
159
|
+
context?: Record<string, any>;
|
|
160
|
+
}
|
|
161
|
+
export type LearningTrigger = 'user_request' | 'code_execution_failure' | 'knowledge_gap_detected' | 'sandbox_execution';
|
|
162
|
+
export interface LearningResult {
|
|
163
|
+
topic: string;
|
|
164
|
+
layers: LearningLayer[];
|
|
165
|
+
status: 'queued' | 'processing' | 'completed';
|
|
166
|
+
completionTime?: number;
|
|
167
|
+
}
|
|
168
|
+
export interface LearningLayer {
|
|
169
|
+
level: 'OVERVIEW' | 'PROCEDURES' | 'TECHNIQUES' | 'EXPERT';
|
|
170
|
+
content: string;
|
|
171
|
+
sources: string[];
|
|
172
|
+
confidence: number;
|
|
173
|
+
}
|
|
174
|
+
export interface Episode {
|
|
175
|
+
id: string;
|
|
176
|
+
content: string;
|
|
177
|
+
type: EpisodeType;
|
|
178
|
+
timestamp: Date;
|
|
179
|
+
metadata?: {
|
|
180
|
+
importance?: number;
|
|
181
|
+
session_id?: string;
|
|
182
|
+
user_id?: string;
|
|
183
|
+
[key: string]: any;
|
|
184
|
+
};
|
|
185
|
+
decay?: number;
|
|
186
|
+
}
|
|
187
|
+
export type EpisodeType = 'user_query' | 'system_response' | 'event' | 'observation' | 'insight';
|
|
188
|
+
export interface NexusHealthStatus {
|
|
189
|
+
healthy: boolean;
|
|
190
|
+
services: {
|
|
191
|
+
graphrag: ServiceHealth;
|
|
192
|
+
mageagent: ServiceHealth;
|
|
193
|
+
learningagent: ServiceHealth;
|
|
194
|
+
};
|
|
195
|
+
timestamp: Date;
|
|
196
|
+
}
|
|
197
|
+
export interface IngestionJob {
|
|
198
|
+
jobId: string;
|
|
199
|
+
status: 'pending' | 'processing' | 'completed' | 'failed';
|
|
200
|
+
filesDiscovered: number;
|
|
201
|
+
filesProcessed: number;
|
|
202
|
+
totalSize: number;
|
|
203
|
+
progress: number;
|
|
204
|
+
startTime: Date;
|
|
205
|
+
endTime?: Date;
|
|
206
|
+
errors?: string[];
|
|
207
|
+
}
|
|
208
|
+
export interface StreamingProgress {
|
|
209
|
+
type: 'progress' | 'status' | 'agent' | 'file' | 'error' | 'complete';
|
|
210
|
+
message: string;
|
|
211
|
+
progress?: number;
|
|
212
|
+
metadata?: any;
|
|
213
|
+
timestamp: Date;
|
|
214
|
+
}
|
|
215
|
+
export interface Pattern {
|
|
216
|
+
pattern: string;
|
|
217
|
+
context: string;
|
|
218
|
+
confidence: number;
|
|
219
|
+
tags: string[];
|
|
220
|
+
examples?: string[];
|
|
221
|
+
metadata?: Record<string, any>;
|
|
222
|
+
timestamp: Date;
|
|
223
|
+
}
|
|
224
|
+
export interface RetrievalStrategy {
|
|
225
|
+
type: 'semantic_chunks' | 'graph_traversal' | 'hybrid' | 'adaptive';
|
|
226
|
+
maxResults?: number;
|
|
227
|
+
scoreThreshold?: number;
|
|
228
|
+
rerank?: boolean;
|
|
229
|
+
filters?: Record<string, any>;
|
|
230
|
+
}
|
|
231
|
+
export interface RetrievalResult {
|
|
232
|
+
documents: Document[];
|
|
233
|
+
chunks: DocumentChunk[];
|
|
234
|
+
entities?: Entity[];
|
|
235
|
+
totalResults: number;
|
|
236
|
+
executionTime: number;
|
|
237
|
+
strategy: string;
|
|
238
|
+
}
|
|
239
|
+
export interface OperationQueue {
|
|
240
|
+
operations: QueuedOperation[];
|
|
241
|
+
count: number;
|
|
242
|
+
processing: boolean;
|
|
243
|
+
}
|
|
244
|
+
export interface QueuedOperation {
|
|
245
|
+
id: string;
|
|
246
|
+
operation: string;
|
|
247
|
+
params: any;
|
|
248
|
+
timestamp: Date;
|
|
249
|
+
retries: number;
|
|
250
|
+
maxRetries: number;
|
|
251
|
+
status: 'queued' | 'processing' | 'completed' | 'failed';
|
|
252
|
+
error?: string;
|
|
253
|
+
}
|
|
254
|
+
//# sourceMappingURL=mcp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","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