@alcyone-labs/arg-parser 2.0.0 → 2.1.0

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 (46) hide show
  1. package/README.md +371 -5
  2. package/dist/index.cjs +3362 -2603
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.min.mjs +7569 -6957
  5. package/dist/index.min.mjs.map +1 -1
  6. package/dist/index.mjs +3362 -2603
  7. package/dist/index.mjs.map +1 -1
  8. package/package.json +8 -4
  9. package/dist/src/config/ConfigurationManager.d.ts +0 -74
  10. package/dist/src/config/ConfigurationManager.d.ts.map +0 -1
  11. package/dist/src/config/plugins/ConfigPlugin.d.ts +0 -60
  12. package/dist/src/config/plugins/ConfigPlugin.d.ts.map +0 -1
  13. package/dist/src/config/plugins/ConfigPluginRegistry.d.ts +0 -72
  14. package/dist/src/config/plugins/ConfigPluginRegistry.d.ts.map +0 -1
  15. package/dist/src/config/plugins/TomlConfigPlugin.d.ts +0 -30
  16. package/dist/src/config/plugins/TomlConfigPlugin.d.ts.map +0 -1
  17. package/dist/src/config/plugins/YamlConfigPlugin.d.ts +0 -29
  18. package/dist/src/config/plugins/YamlConfigPlugin.d.ts.map +0 -1
  19. package/dist/src/config/plugins/index.d.ts +0 -5
  20. package/dist/src/config/plugins/index.d.ts.map +0 -1
  21. package/dist/src/core/ArgParser.d.ts +0 -332
  22. package/dist/src/core/ArgParser.d.ts.map +0 -1
  23. package/dist/src/core/ArgParserBase.d.ts +0 -206
  24. package/dist/src/core/ArgParserBase.d.ts.map +0 -1
  25. package/dist/src/core/FlagManager.d.ts +0 -16
  26. package/dist/src/core/FlagManager.d.ts.map +0 -1
  27. package/dist/src/core/types.d.ts +0 -194
  28. package/dist/src/core/types.d.ts.map +0 -1
  29. package/dist/src/dxt/DxtGenerator.d.ts +0 -115
  30. package/dist/src/dxt/DxtGenerator.d.ts.map +0 -1
  31. package/dist/src/index.d.ts +0 -11
  32. package/dist/src/index.d.ts.map +0 -1
  33. package/dist/src/mcp/ArgParserMcp.d.ts +0 -21
  34. package/dist/src/mcp/ArgParserMcp.d.ts.map +0 -1
  35. package/dist/src/mcp/mcp-integration.d.ts +0 -83
  36. package/dist/src/mcp/mcp-integration.d.ts.map +0 -1
  37. package/dist/src/mcp/mcp-notifications.d.ts +0 -138
  38. package/dist/src/mcp/mcp-notifications.d.ts.map +0 -1
  39. package/dist/src/mcp/mcp-prompts.d.ts +0 -132
  40. package/dist/src/mcp/mcp-prompts.d.ts.map +0 -1
  41. package/dist/src/mcp/mcp-resources.d.ts +0 -133
  42. package/dist/src/mcp/mcp-resources.d.ts.map +0 -1
  43. package/dist/src/testing/fuzzy-test-cli.d.ts +0 -5
  44. package/dist/src/testing/fuzzy-test-cli.d.ts.map +0 -1
  45. package/dist/src/testing/fuzzy-tester.d.ts +0 -101
  46. package/dist/src/testing/fuzzy-tester.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"ArgParser.d.ts","sourceRoot":"","sources":["../../../src/core/ArgParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAOvE,OAAO,KAAK,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACzF,OAAO,KAAK,EAAE,eAAe,EAAe,KAAK,EAAE,MAAM,SAAS,CAAC;AAGnE;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,OAAO,GAAG,KAAK,GAAG,iBAAiB,CAAC;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,MAAM,MAAM,CAAC;CACnC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,4EAA4E;IAC5E,iBAAiB,CAAC,EAAE,kBAAk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 -1,206 +0,0 @@
1
- import type { IFlag, IHandlerContext, ISubCommand, ProcessedFlag, TParsedArgs, ParseResult } from "./types";
2
- import { McpResourcesManager, McpResourceConfig } from "../mcp/mcp-resources.js";
3
- import { McpPromptsManager, McpPromptConfig } from "../mcp/mcp-prompts.js";
4
- import { McpNotificationsManager, McpChangeType } from "../mcp/mcp-notifications.js";
5
- export declare class ArgParserError extends Error {
6
- cmdChain: string[];
7
- commandChain: string[];
8
- constructor(message: string, cmdChain?: string[]);
9
- }
10
- export interface IArgParserParams<THandlerReturn = any> {
11
- /**
12
- * This is the display name of the app, used in help text
13
- */
14
- appName?: string;
15
- subCommands?: ISubCommand[];
16
- handler?: (ctx: IHandlerContext<any, any>) => THandlerReturn | Promise<THandlerReturn>;
17
- /**
18
- * Add an extra new line between each flag group,
19
- * makes the text more readable but uses more space
20
- *
21
- * Default: true
22
- */
23
- extraNewLine?: boolean;
24
- /**
25
- * Wraps the line at width, if shorter, wrapping will be more
26
- * aggressive. Wrapping is based on words.
27
- *
28
- * Default: 50
29
- * Minimum: 30
30
- */
31
- wrapAtWidth?: number;
32
- /**
33
- * Controls the placing of right text on the screen.
34
- * The higher the value, the more to the right the text will be.
35
- *
36
- * Default: 30
37
- * Minimum: 20
38
- */
39
- blankSpaceWidth?: number;
40
- /**
41
- * Character to display next to the flag to express mandatory fields.
42
- *
43
- * Default: *
44
- */
45
- mandatoryCharacter?: string;
46
- /**
47
- * Throw an error if a flag is added more than once
48
- * @default false
49
- */
50
- throwForDuplicateFlags?: boolean;
51
- description?: string;
52
- /**
53
- * Automatically handle ArgParserErrors by printing a formatted message
54
- * and exiting. Set to false to catch ArgParserError manually.
55
- * @default true
56
- */
57
- handleErrors?: boolean;
58
- /**
59
- * Whether to automatically call process.exit() based on ParseResult.
60
- * When true (default), maintains backward compatibility with CLI behavior.
61
- * When false, returns ParseResult objects for programmatic use.
62
- * @default true
63
- */
64
- autoExit?: boolean;
65
- /**
66
- * The command name to display in help suggestions (e.g., 'dabl').
67
- * If not provided, it falls back to guessing from the script path.
68
- */
69
- appCommandName?: string;
70
- /**
71
- * If true, when this parser is added as a sub-command, it will inherit
72
- * flags from its direct parent *unless* a flag with the same name
73
- * already exists in this parser. Child flags take precedence.
74
- * @default false
75
- */
76
- inheritParentFlags?: boolean;
77
- }
78
- export interface IParseOptions {
79
- /**
80
- * When true, skips help flag processing (doesn't exit or show help)
81
- * @default false
82
- */
83
- skipHelpHandling?: boolean;
84
- /**
85
- * When true, skips the execution of any command handlers.
86
- * @default false
87
- */
88
- skipHandlers?: boolean;
89
- /**
90
- * When true (default), automatically awaits async handlers before returning.
91
- * When false, returns immediately with _asyncHandlerPromise for manual handling.
92
- * @default true
93
- */
94
- deep?: boolean;
95
- }
96
- type TParsedArgsWithRouting<T = any> = T & {
97
- $commandChain?: string[];
98
- handlerToExecute?: {
99
- handler: Function;
100
- context: IHandlerContext;
101
- };
102
- };
103
- export declare class ArgParserBase<THandlerReturn = any> {
104
- #private;
105
- constructor(options?: IArgParserParams<THandlerReturn>, initialFlags?: readonly IFlag[]);
106
- get flags(): ProcessedFlag[];
107
- get flagNames(): string[];
108
- getAppName(): string | undefined;
109
- getAppCommandName(): string | undefined;
110
- getSubCommandName(): string;
111
- getDescription(): string | undefined;
112
- getAutoExit(): boolean;
113
- /**
114
- * Helper method to handle exit logic based on autoExit setting
115
- * Returns a ParseResult instead of calling process.exit() when autoExit is false
116
- */
117
- private _handleExit;
118
- getHandler(): ((ctx: IHandlerContext) => void) | undefined;
119
- getSubCommands(): Map<string, ISubCommand>;
120
- private _addToOutput;
121
- addFlags(flags: readonly IFlag[]): this;
122
- addFlag(flag: IFlag): this;
123
- addSubCommand(subCommandConfig: ISubCommand): this;
124
- /**
125
- * Sets the handler function for this specific parser instance.
126
- * This handler will be executed if this parser is the final one
127
- * in the command chain and `executeHandlers` is enabled on the root parser.
128
- *
129
- * @param handler - The function to execute.
130
- * @returns The ArgParser instance for chaining.
131
- */
132
- setHandler(handler: (ctx: IHandlerContext<any, any>) => THandlerReturn | Promise<THandlerReturn>): this;
133
- printAll(filePath?: string): void;
134
- parse(processArgs: string[], options?: IParseOptions): Promise<TParsedArgsWithRouting<any> | ParseResult>;
135
- /**
136
- * Alias for parse() method for backward compatibility
137
- * Since parse() is already async, this just calls parse()
138
- *
139
- * @deprecated Use parse() instead. This method will be removed in a future version.
140
- */
141
- parseAsync(processArgs: string[], options?: IParseOptions): Promise<TParsedArgsWithRouting<any> | ParseResult>;
142
- /**
143
- * Recursive helper for parsing arguments and handling sub-commands.
144
- * This method assumes the global help check has already been performed in `parse`.
145
- */
146
- private _parseRecursive;
147
- helpText(): string;
148
- getSubCommand(name: string): ISubCommand | undefined;
149
- hasFlag(name: string): boolean;
150
- getCommandChain(): string[];
151
- getLastParseResult(): TParsedArgs<ProcessedFlag[]>;
152
- /**
153
- * Add an MCP resource to this parser
154
- */
155
- addMcpResource(config: McpResourceConfig): this;
156
- /**
157
- * Remove an MCP resource by name
158
- */
159
- removeMcpResource(name: string): this;
160
- /**
161
- * Get all registered MCP resources
162
- */
163
- getMcpResources(): McpResourceConfig[];
164
- /**
165
- * Add an MCP prompt to this parser
166
- */
167
- addMcpPrompt(config: McpPromptConfig): this;
168
- /**
169
- * Remove an MCP prompt by name
170
- */
171
- removeMcpPrompt(name: string): this;
172
- /**
173
- * Get all registered MCP prompts
174
- */
175
- getMcpPrompts(): McpPromptConfig[];
176
- /**
177
- * Add a change listener for MCP entities
178
- */
179
- onMcpChange(listener: (event: {
180
- type: McpChangeType;
181
- action: string;
182
- entityName?: string;
183
- }) => void): this;
184
- /**
185
- * Remove a change listener for MCP entities
186
- */
187
- offMcpChange(listener: (event: {
188
- type: McpChangeType;
189
- action: string;
190
- entityName?: string;
191
- }) => void): this;
192
- /**
193
- * Get the MCP notifications manager (for advanced usage)
194
- */
195
- getMcpNotificationsManager(): McpNotificationsManager;
196
- /**
197
- * Get the MCP resources manager (for advanced usage)
198
- */
199
- getMcpResourcesManager(): McpResourcesManager;
200
- /**
201
- * Get the MCP prompts manager (for advanced usage)
202
- */
203
- getMcpPromptsManager(): McpPromptsManager;
204
- }
205
- export {};
206
- //# sourceMappingURL=ArgParserBase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ArgParserBase.d.ts","sourceRoot":"","sources":["../../../src/core/ArgParserBase.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,KAAK,EACL,eAAe,EACf,WAAW,EACX,aAAa,EACb,WAAW,EACX,WAAW,EACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAErF,qBAAa,cAAe,SAAQ,KAAK;IAI9B,QAAQ,EAAE,MAAM,EAAE;IAHpB,YAAY,EAAE,MAAM,EAAE,CAAC;gBAE5B,OAAO,EAAE,MAAM,EACR,QAAQ,GAAE,MAAM,EAAO;CAMjC;AAED,MAAM,WAAW,gBAAgB,CAAC,cAAc,GAAG,GAAG;IACpD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;IAC5B,OAAO,CAAC,EAAE,CACR,GAAG,EAAE,eAAe,CAAC,GAAG,EAAE,GAAG,CAAC,KAC3B,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAE9C;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,WAAW,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IACH,aAAa,IAAI,eAAe,EAAE;IAIlC;;OAEG;IACH,WAAW,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,aAAa,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,GAAG,IAAI;IAK1G;;OAEG;IACH,YAAY,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,aAAa,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,GAAG,IAAI;IAK3G;;OAEG;IACH,0BAA0B,IAAI,uBAAuB;IAIrD;;OAEG;IACH,sBAAsB,IAAI,mBAAmB;IAI7C;;OAEG;IACH,oBAAoB,IAAI,iBAAiB;CAqT1C"}
@@ -1,16 +0,0 @@
1
- import type { IFlag, ProcessedFlag } from "./types";
2
- export declare class FlagManager {
3
- #private;
4
- constructor(options?: {
5
- throwForDuplicateFlags?: boolean;
6
- }, initialFlags?: readonly IFlag[]);
7
- static _safeFlag(flag: IFlag): ProcessedFlag;
8
- addFlag(flag: IFlag): this;
9
- _setProcessedFlagForInheritance(processedFlag: ProcessedFlag): this;
10
- addFlags(flags: readonly IFlag[]): this;
11
- hasFlag(name: string): boolean;
12
- getFlag(name: string): ProcessedFlag | undefined;
13
- get flags(): ProcessedFlag[];
14
- get flagNames(): string[];
15
- }
16
- //# sourceMappingURL=FlagManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FlagManager.d.ts","sourceRoot":"","sources":["../../../src/core/FlagManager.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEpD,qBAAa,WAAW;;gBAKpB,OAAO,GAAE;QAAE,sBAAsB,CAAC,EAAE,OAAO,CAAA;KAAO,EAClD,YAAY,GAAE,SAAS,KAAK,EAAO;IAMrC,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,GAAG,aAAa;IAwC5C,OAAO,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI;IAoB1B,+BAA+B,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI;IAQnE,QAAQ,CAAC,KAAK,EAAE,SAAS,KAAK,EAAE,GAAG,IAAI;IAOvC,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI9B,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS;IAIhD,IAAI,KAAK,IAAI,aAAa,EAAE,CAE3B;IAED,IAAI,SAAS,IAAI,MAAM,EAAE,CAExB;CACF"}
@@ -1,194 +0,0 @@
1
- import { z } from "zod";
2
- export type ArgParserInstance = any;
3
- export declare const zodFlagSchema: z.ZodEffects<z.ZodObject<{
4
- name: z.ZodString;
5
- allowLigature: z.ZodDefault<z.ZodBoolean>;
6
- allowMultiple: z.ZodDefault<z.ZodBoolean>;
7
- description: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
8
- options: z.ZodArray<z.ZodString, "many">;
9
- defaultValue: z.ZodOptional<z.ZodAny>;
10
- type: z.ZodDefault<z.ZodUnion<[z.ZodEffects<z.ZodAny, any, any>, z.ZodEffects<z.ZodAny, any, any>, z.ZodEffects<z.ZodAny, any, any>, z.ZodEffects<z.ZodAny, any, any>, z.ZodEffects<z.ZodAny, any, any>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodAny>, z.ZodEffects<z.ZodString, string, string>]>>;
11
- mandatory: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodBoolean>]>>;
12
- flagOnly: z.ZodDefault<z.ZodBoolean>;
13
- validate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodAny>, z.ZodOptional<z.ZodAny>], z.ZodUnknown>, z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodVoid, z.ZodPromise<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodVoid]>>]>>>;
14
- enum: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
15
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
16
- name: z.ZodString;
17
- allowLigature: z.ZodDefault<z.ZodBoolean>;
18
- allowMultiple: z.ZodDefault<z.ZodBoolean>;
19
- description: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
20
- options: z.ZodArray<z.ZodString, "many">;
21
- defaultValue: z.ZodOptional<z.ZodAny>;
22
- type: z.ZodDefault<z.ZodUnion<[z.ZodEffects<z.ZodAny, any, any>, z.ZodEffects<z.ZodAny, any, any>, z.ZodEffects<z.ZodAny, any, any>, z.ZodEffects<z.ZodAny, any, any>, z.ZodEffects<z.ZodAny, any, any>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodAny>, z.ZodEffects<z.ZodString, string, string>]>>;
23
- mandatory: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodBoolean>]>>;
24
- flagOnly: z.ZodDefault<z.ZodBoolean>;
25
- validate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodAny>, z.ZodOptional<z.ZodAny>], z.ZodUnknown>, z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodVoid, z.ZodPromise<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodVoid]>>]>>>;
26
- enum: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
27
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
28
- name: z.ZodString;
29
- allowLigature: z.ZodDefault<z.ZodBoolean>;
30
- allowMultiple: z.ZodDefault<z.ZodBoolean>;
31
- description: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
32
- options: z.ZodArray<z.ZodString, "many">;
33
- defaultValue: z.ZodOptional<z.ZodAny>;
34
- type: z.ZodDefault<z.ZodUnion<[z.ZodEffects<z.ZodAny, any, any>, z.ZodEffects<z.ZodAny, any, any>, z.ZodEffects<z.ZodAny, any, any>, z.ZodEffects<z.ZodAny, any, any>, z.ZodEffects<z.ZodAny, any, any>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodAny>, z.ZodEffects<z.ZodString, string, string>]>>;
35
- mandatory: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodBoolean>]>>;
36
- flagOnly: z.ZodDefault<z.ZodBoolean>;
37
- validate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodAny>, z.ZodOptional<z.ZodAny>], z.ZodUnknown>, z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodVoid, z.ZodPromise<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodVoid]>>]>>>;
38
- enum: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
39
- }, z.ZodTypeAny, "passthrough">>, {
40
- [key: string]: any;
41
- }, z.objectInputType<{
42
- name: z.ZodString;
43
- allowLigature: z.ZodDefault<z.ZodBoolean>;
44
- allowMultiple: z.ZodDefault<z.ZodBoolean>;
45
- description: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
46
- options: z.ZodArray<z.ZodString, "many">;
47
- defaultValue: z.ZodOptional<z.ZodAny>;
48
- type: z.ZodDefault<z.ZodUnion<[z.ZodEffects<z.ZodAny, any, any>, z.ZodEffects<z.ZodAny, any, any>, z.ZodEffects<z.ZodAny, any, any>, z.ZodEffects<z.ZodAny, any, any>, z.ZodEffects<z.ZodAny, any, any>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodAny>, z.ZodEffects<z.ZodString, string, string>]>>;
49
- mandatory: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodBoolean>]>>;
50
- flagOnly: z.ZodDefault<z.ZodBoolean>;
51
- validate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodAny>, z.ZodOptional<z.ZodAny>], z.ZodUnknown>, z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodVoid, z.ZodPromise<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodVoid]>>]>>>;
52
- enum: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
53
- }, z.ZodTypeAny, "passthrough">>;
54
- /**
55
- * The raw input type for defining a flag, before Zod processing (aliases, defaults).
56
- */
57
- export type IFlagCore = z.input<typeof zodFlagSchema>;
58
- /**
59
- * The type of the `type` property in a ProcessedFlagCore object.
60
- * This represents all valid forms the `type` property can take after Zod processing.
61
- */
62
- export type TParsedArgsTypeFromFlagDef = StringConstructor | NumberConstructor | BooleanConstructor | ArrayConstructor | ObjectConstructor | ((value: string) => any) | "string" | "number" | "boolean" | "array" | "object";
63
- /**
64
- * The core type of a flag after Zod processing (defaults applied, aliases resolved),
65
- * but before some properties are made more specific (like `type` constructor to actual type).
66
- * This type is output by `zodFlagSchema.parse()`.
67
- */
68
- export type ProcessedFlagCore = Omit<z.output<typeof zodFlagSchema>, "type"> & {
69
- type: TParsedArgsTypeFromFlagDef;
70
- };
71
- /**
72
- * The user-facing type for defining a flag. It includes aliases like `default` and `required`.
73
- * The `handler` property is removed as handlers are typically associated with commands/subcommands, not individual flags.
74
- */
75
- export type IFlag = IFlagCore & {
76
- /** @alias defaultValue */
77
- default?: any;
78
- /** @alias mandatory */
79
- required?: boolean | ((parsedArgs: TParsedArgs<any>) => boolean);
80
- /** Environment variables that should be set from this flag's value in DXT packages */
81
- env?: string | string[];
82
- };
83
- /**
84
- * A more refined type for a flag after it has been fully processed by ArgParser,
85
- * particularly its `type` property and validation/enum/mandatory functions.
86
- * This is the type that ArgParser would internally work with for parsing and type extraction.
87
- */
88
- export type ProcessedFlag = Omit<ProcessedFlagCore, "validate" | "enum" | "mandatory"> & {
89
- validate?: (value: any, parsedArgs?: TParsedArgs<ProcessedFlag[]>) => boolean | string | void | Promise<boolean | string | void>;
90
- enum?: any[];
91
- mandatory?: boolean | ((parsedArgs: TParsedArgs<ProcessedFlag[]>) => boolean);
92
- };
93
- /**
94
- * Resolves the TypeScript type from a flag's `type` definition.
95
- */
96
- export type ResolveType<T extends TParsedArgsTypeFromFlagDef> = T extends StringConstructor ? string : T extends NumberConstructor ? number : T extends BooleanConstructor ? boolean : T extends ArrayConstructor ? any[] : T extends ObjectConstructor ? Record<string, any> : T extends "string" ? string : T extends "number" ? number : T extends "boolean" ? boolean : T extends "array" ? any[] : T extends "object" ? Record<string, any> : T extends (value: string) => infer R ? R : any;
97
- /**
98
- * Extracts the final TypeScript type for a flag's value based on its definition,
99
- * considering `flagOnly` and `allowMultiple` properties.
100
- */
101
- export type ExtractFlagType<TFlag extends ProcessedFlag> = TFlag["flagOnly"] extends true ? TFlag["allowMultiple"] extends true ? boolean[] : boolean : TFlag["allowMultiple"] extends true ? Array<ResolveType<TFlag["type"]>> : ResolveType<TFlag["type"]>;
102
- /**
103
- * Represents the structured object of parsed arguments.
104
- * Keys are flag names, and values are their parsed and typed values.
105
- * `TFlags` should be the array of `ProcessedFlag` definitions for the specific command.
106
- */
107
- export type TParsedArgs<TFlags extends readonly ProcessedFlag[]> = {
108
- [K in TFlags[number]["name"]]: ExtractFlagType<Extract<TFlags[number], {
109
- name: K;
110
- }>>;
111
- };
112
- /**
113
- * Generic context object passed to command handlers.
114
- * @template TCurrentCommandArgs Shape of `args` for the current command, derived from its flags.
115
- * @template TParentCommandArgs Shape of `parentArgs` from the parent command, if any.
116
- */
117
- export type IHandlerContext<TCurrentCommandArgs extends Record<string, any> = Record<string, any>, TParentCommandArgs extends Record<string, any> = Record<string, any>> = {
118
- /** Parsed arguments specific to the current command. */
119
- args: TCurrentCommandArgs;
120
- /** Parsed arguments from the parent command, if this is a subcommand. */
121
- parentArgs?: TParentCommandArgs;
122
- /** The sequence of command names that led to this handler. */
123
- commandChain: string[];
124
- /** The `ArgParser` instance that invoked this handler (could be a subcommand's parser). */
125
- parser: ArgParserInstance;
126
- /** The parent `ArgParser` instance, if this is a subcommand handler. */
127
- parentParser?: ArgParserInstance;
128
- /** Optional: The root `ArgParser` instance of the CLI. */
129
- /** Indicates if the handler is being called from MCP mode (true) or CLI mode (false). */
130
- isMcp?: boolean;
131
- };
132
- /**
133
- * Generic type for the collection of processed flags that an ArgParser instance manages.
134
- */
135
- export type FlagsArray = readonly ProcessedFlag[];
136
- /**
137
- * Defines a subcommand within an ArgParser setup.
138
- * @template TSubCommandFlags Flags defined specifically FOR this subcommand.
139
- * @template TParentCommandFlags Flags defined for the PARENT of this subcommand.
140
- * @template THandlerReturn The expected return type of the subcommand's handler.
141
- */
142
- export interface ISubCommand<TSubCommandFlags extends FlagsArray = FlagsArray, TParentCommandFlags extends FlagsArray = FlagsArray, THandlerReturn = any> {
143
- name: string;
144
- description?: string;
145
- /** The ArgParser instance for this subcommand, typed with its own flags. */
146
- parser: ArgParserInstance;
147
- /** Handler function for this subcommand. */
148
- handler?: (ctx: IHandlerContext<TParsedArgs<TSubCommandFlags>, TParsedArgs<TParentCommandFlags>>) => THandlerReturn | Promise<THandlerReturn>;
149
- /** Internal flag to identify MCP subcommands for proper exclusion from tool generation */
150
- isMcp?: boolean;
151
- /** MCP server information for DXT generation */
152
- mcpServerInfo?: {
153
- name: string;
154
- version: string;
155
- description?: string;
156
- };
157
- /** MCP tool generation options for DXT generation */
158
- mcpToolOptions?: any;
159
- }
160
- /**
161
- * Result of parsing operations that replaces process.exit() calls.
162
- * Provides structured information about the parsing outcome.
163
- */
164
- export interface ParseResult<T = any> {
165
- /** Whether the parsing was successful */
166
- success: boolean;
167
- /** Exit code that would have been used with process.exit() */
168
- exitCode: number;
169
- /** The parsed data/result when successful */
170
- data?: T;
171
- /** Human-readable message about the result */
172
- message?: string;
173
- /** Whether the process should exit (for help, version, etc.) */
174
- shouldExit?: boolean;
175
- /** Type of result for better handling */
176
- type?: 'success' | 'error' | 'help' | 'version' | 'debug';
177
- }
178
- /**
179
- * Configuration options for ArgParser behavior
180
- */
181
- export interface ArgParserOptions {
182
- /** Whether to automatically call process.exit() based on ParseResult (default: true for backward compatibility) */
183
- autoExit?: boolean;
184
- /** Whether to handle errors by exiting or throwing (default: true for backward compatibility) */
185
- handleErrors?: boolean;
186
- }
187
- /**
188
- * Type for the main handler of an ArgParser instance (root command or a command defined by an ArgParser).
189
- * @template TParserFlags Flags defined for this ArgParser instance.
190
- * @template TParentParserFlags Flags of the parent parser, if this parser is used as a subcommand.
191
- * @template THandlerReturn The expected return type of the handler.
192
- */
193
- export type MainHandler<TParserFlags extends FlagsArray = FlagsArray, TParentParserFlags extends FlagsArray = FlagsArray, THandlerReturn = any> = (ctx: IHandlerContext<TParsedArgs<TParserFlags>, TParsedArgs<TParentParserFlags>>) => THandlerReturn | Promise<THandlerReturn>;
194
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAEpC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAwHtB,CAAC;AAEL;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEtD;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAClC,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,GAAG,CAAC,GACxB,QAAQ,G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CAA6C;IAC7C,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,8CAA8C;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gEAAgE;IAChE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yCAAyC;IACzC,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;CAC3D;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,mHAAmH;IACnH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iGAAiG;IACjG,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;GAKG;AACH,MAAM,MAAM,WAAW,CACrB,YAAY,SAAS,UAAU,GAAG,UAAU,EAC5C,kBAAkB,SAAS,UAAU,GAAG,UAAU,EAClD,cAAc,GAAG,GAAG,IAClB,CACF,GAAG,EAAE,eAAe,CAClB,WAAW,CAAC,YAAY,CAAC,EACzB,WAAW,CAAC,kBAAkB,CAAC,CAChC,KACE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC"}
@@ -1,115 +0,0 @@
1
- import type { ParseResult } from "../core/types";
2
- /**
3
- * DxtGenerator handles the generation of DXT (Desktop Extension) packages
4
- * for MCP servers created from ArgParser instances.
5
- */
6
- export declare class DxtGenerator {
7
- private argParserInstance;
8
- constructor(argParserInstance: any);
9
- /**
10
- * Helper method to handle exit logic based on autoExit setting
11
- */
12
- private _handleExit;
13
- /**
14
- * Handles the --s-build-dxt system flag to generate DXT packages for MCP servers
15
- */
16
- handleBuildDxtFlag(processArgs: string[], buildDxtIndex: number): Promise<boolean | ParseResult>;
17
- /**
18
- * Handles DXT generation in test mode by creating mock DXT package structure
19
- */
20
- private handleTestModeDxtGeneration;
21
- /**
22
- * Generates a DXT package for the unified MCP server
23
- * Now supports both withMcp() configuration and legacy addMcpSubCommand()
24
- */
25
- generateDxtPackage(mcpSubCommand?: any, outputDir?: string): Promise<void>;
26
- /**
27
- * Reads package.json to extract fallback information for DXT manifest
28
- */
29
- private readPackageJsonInfo;
30
- /**
31
- * Extracts server information from MCP configuration
32
- * Now supports both withMcp() configuration and legacy addMcpSubCommand()
33
- */
34
- private extractMcpServerInfo;
35
- private generateMcpToolsForDxt;
36
- private createDxtManifest;
37
- private validateDxtManifest;
38
- private createServerScript;
39
- private createDxtPackageJson;
40
- /**
41
- * Creates a .dxtignore file to exclude build artifacts and unnecessary files
42
- */
43
- private createDxtIgnore;
44
- /**
45
- * Creates a simple build script that uses TSDown bundling and Anthropic's dxt pack
46
- */
47
- private createSimpleBuildScript;
48
- private createDxtReadme;
49
- /**
50
- * Maps ArgParser flag types to DXT user config types
51
- */
52
- private mapFlagTypeToUserConfigType;
53
- /**
54
- * Generates CLI arguments for DXT manifest based on ArgParser flags
55
- */
56
- private generateCliArgsForDxt;
57
- /**
58
- * Generates environment variables and user config for DXT manifest
59
- */
60
- private generateEnvAndUserConfig;
61
- /**
62
- * Generates a user-friendly title for user config fields
63
- */
64
- private generateUserConfigTitle;
65
- /**
66
- * Checks if a field should be marked as sensitive in user config
67
- */
68
- private isSensitiveField;
69
- /**
70
- * Adds the logo to the build folder if available
71
- * @returns The filename of the logo that was added, or undefined if no logo was added
72
- */
73
- private addLogoToFolder;
74
- /**
75
- * Processes CLI source code to replace global console with MCP-compliant Logger
76
- */
77
- private processCliSourceForMcp;
78
- /**
79
- * Adds the original CLI source to the build folder for handler execution
80
- */
81
- private addOriginalCliToFolder;
82
- /**
83
- * Builds a complete DXT package using TSDown CLI for autonomous execution
84
- */
85
- private buildDxtWithTsdown;
86
- /**
87
- * Bundles the original CLI using TSDown for autonomous execution (legacy method)
88
- */
89
- private bundleOriginalCliWithTsdown;
90
- /**
91
- * Checks if a module ID is a Node.js built-in
92
- */
93
- private isNodeBuiltin;
94
- /**
95
- * Gets the TSDown configuration content as a string
96
- */
97
- private getTsdownConfigContent;
98
- /**
99
- * Gets the path to the .dxtignore template file in assets
100
- */
101
- private getDxtIgnoreTemplatePath;
102
- /**
103
- * Sets up DXT package files (manifest.json) in the dxt output directory
104
- */
105
- private setupDxtPackageFiles;
106
- /**
107
- * Maps ArgParser flag types to JSON Schema types
108
- */
109
- private mapFlagTypeToJsonSchema;
110
- /**
111
- * Manually copy logo since TSDown's copy option doesn't work programmatically
112
- */
113
- private copyLogoManually;
114
- }
115
- //# sourceMappingURL=DxtGenerator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DxtGenerator.d.ts","sourceRoot":"","sources":["../../../src/dxt/DxtGenerator.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGjD;;;GAGG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,iBAAiB,CAAM;gBAEnB,iBAAiB,EAAE,GAAG;IAIlC;;OAEG;IACH,OAAO,CAAC,WAAW;IAiBnB;;OAEG;IACU,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,WAAW,CAAC;IAmC7G;;OAEG;YACW,2BAA2B;IA2EzC;;;OAGG;IACU,kBAAkB,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA0FvF;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAoB3B;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IA8B5B,OAAO,CAAC,sBAAsB;IA8D9B,OAAO,CAAC,iBAAiB;IAiFzB,OAAO,CAAC,mBAAmB;IAuC3B,OAAO,CAAC,kBAAkB;IAqC1B,OAAO,CAAC,oBAAoB;IA8D5B;;OAEG;IACH,OAAO,CAAC,eAAe;IA4CvB;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAqF/B,OAAO,CAAC,eAAe;IAkGvB;;OAEG;IACH,OAAO,CAAC,2BAA2B;IAwBnC;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAc7B;;OAEG;IACH,OAAO,CAAC,wBAAwB;IA8DhC;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAO/B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAUxB;;;OAGG;YACW,eAAe;IAqF7B;;OAEG;IACH,OAAO,CAAC,sBAAsB;IA2D9B;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAmJ9B;;OAEG;YACW,kBAAkB;IAuHhC;;OAEG;YACW,2BAA2B;IAiIzC;;OAEG;IACH,OAAO,CAAC,aAAa;IAarB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAyD9B;;OAEG;IACH,OAAO,CAAC,wBAAwB;IA4BhC;;OAEG;YACW,oBAAoB;IA4JlC;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAsB/B;;OAEG;YACW,gBAAgB;CAgC/B"}
@@ -1,11 +0,0 @@
1
- export { ArgParserBase, ArgParserError, type IParseOptions } from "./core/ArgParserBase";
2
- export { ArgParser, type McpTransportConfig, type McpSubCommandOptions, type DxtServerInfo, type McpServerOptions, type WithMcpOptions, type McpToolConfig, type ToolConfig } from "./core/ArgParser";
3
- export { ArgParserMcp, createMcpArgParser } from "./mcp/ArgParserMcp";
4
- export { zodFlagSchema, type IFlagCore, type IFlag, type ProcessedFlagCore, type ProcessedFlag, type TParsedArgsTypeFromFlagDef, type FlagsArray, type ResolveType, type ExtractFlagType, type TParsedArgs, type IHandlerContext, type MainHandler, type ISubCommand, type ArgParserInstance, } from "./core/types";
5
- export { generateMcpToolsFromArgParser, type IMcpToolStructure, type GenerateMcpToolsOptions, type IParseExecutionResult, type SimplifiedToolResponse, extractSimplifiedResponse, convertFlagToJsonSchemaProperty, convertFlagsToJsonSchema, convertFlagsToZodSchema, createMcpSuccessResponse, createMcpErrorResponse, type McpResponse, } from "./mcp/mcp-integration";
6
- export { type IConfigPlugin, ConfigPlugin, JsonConfigPlugin, EnvConfigPlugin, ConfigPluginRegistry, globalConfigPluginRegistry, enableOptionalConfigPlugins, enableOptionalConfigPluginsAsync, enableConfigPlugins, TomlConfigPlugin, createTomlPlugin, createTomlPluginAsync, YamlConfigPlugin, createYamlPlugin, createYamlPluginAsync, } from "./config/plugins";
7
- export { ArgParserFuzzyTester } from "./testing/fuzzy-tester";
8
- export type { FuzzyTestOptions, TestResult, FuzzyTestReport } from "./testing/fuzzy-tester";
9
- export { default as SimpleChalk } from "@alcyone-labs/simple-chalk";
10
- export { Logger, logger, createMcpLogger, createCliLogger, type LogLevel, type LoggerConfig } from "@alcyone-labs/simple-mcp-logger";
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACzF,OAAO,EACL,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,UAAU,EAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEtE,OAAO,EACL,aAAa,EACb,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,0BAA0B,EAC/B,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,iBAAiB,GACvB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,6BAA6B,EAC7B,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,yBAAyB,EACzB,+BAA+B,EAC/B,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,KAAK,WAAW,GACjB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,KAAK,aAAa,EAClB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,0BAA0B,EAC1B,2BAA2B,EAC3B,gCAAgC,EAChC,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,YAAY,EAAE,gBAAgB,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAG5F,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAGpE,OAAO,EACL,MAAM,EACN,MAAM,EACN,eAAe,EACf,eAAe,EACf,KAAK,QAAQ,EACb,KAAK,YAAY,EAClB,MAAM,iCAAiC,CAAC"}
@@ -1,21 +0,0 @@
1
- import { ArgParser } from "../core/ArgParser";
2
- import type { IArgParserParams } from "../core/ArgParserBase";
3
- import type { IFlag } from "../core/types";
4
- /**
5
- * MCP-optimized ArgParser that excludes config file functionality
6
- * This version doesn't load any config plugins, making it suitable for
7
- * autonomous builds where TOML/YAML dependencies cause bundling issues.
8
- */
9
- export declare class ArgParserMcp<THandlerReturn = any> extends ArgParser<THandlerReturn> {
10
- constructor(params?: IArgParserParams<THandlerReturn>, initialFlags?: IFlag[]);
11
- /**
12
- * Override parse to skip config file processing
13
- */
14
- parse(processArgs: string[], options?: any): any;
15
- }
16
- /**
17
- * Convenience function to create MCP-optimized ArgParser
18
- * This is the recommended way to create ArgParser instances for MCP servers
19
- */
20
- export declare function createMcpArgParser<THandlerReturn = any>(params?: IArgParserParams<THandlerReturn>, initialFlags?: IFlag[]): ArgParserMcp<THandlerReturn>;
21
- //# sourceMappingURL=ArgParserMcp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ArgParserMcp.d.ts","sourceRoot":"","sources":["../../../src/mcp/ArgParserMcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;GAIG;AACH,qBAAa,YAAY,CAAC,cAAc,GAAG,GAAG,CAAE,SAAQ,SAAS,CAAC,cAAc,CAAC;gBACnE,MAAM,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,EAAE,YAAY,CAAC,EAAE,KAAK,EAAE;IAS7E;;OAEG;IACI,KAAK,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,GAAG;CAUxD;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,cAAc,GAAG,GAAG,EACrD,MAAM,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,EACzC,YAAY,CAAC,EAAE,KAAK,EAAE,GACrB,YAAY,CAAC,cAAc,CAAC,CAE9B"}