@alcyone-labs/arg-parser 2.0.0 → 2.1.1
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/README.md +371 -5
- package/dist/config/ConfigurationManager.d.ts.map +1 -0
- package/dist/config/plugins/ConfigPlugin.d.ts.map +1 -0
- package/dist/config/plugins/ConfigPluginRegistry.d.ts.map +1 -0
- package/dist/config/plugins/TomlConfigPlugin.d.ts.map +1 -0
- package/dist/config/plugins/YamlConfigPlugin.d.ts.map +1 -0
- package/dist/config/plugins/index.d.ts.map +1 -0
- package/dist/{src/core → core}/ArgParser.d.ts +53 -5
- package/dist/core/ArgParser.d.ts.map +1 -0
- package/dist/{src/core → core}/ArgParserBase.d.ts +4 -4
- package/dist/{src/core → core}/ArgParserBase.d.ts.map +1 -1
- package/dist/core/FlagManager.d.ts.map +1 -0
- package/dist/{src/core → core}/types.d.ts +161 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/{src/dxt → dxt}/DxtGenerator.d.ts +0 -4
- package/dist/dxt/DxtGenerator.d.ts.map +1 -0
- package/dist/index.cjs +3362 -2603
- package/dist/index.cjs.map +1 -1
- package/dist/{src/index.d.ts → index.d.ts} +2 -2
- package/dist/index.d.ts.map +1 -0
- package/dist/index.min.mjs +7569 -6957
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +3362 -2603
- package/dist/index.mjs.map +1 -1
- package/dist/mcp/ArgParserMcp.d.ts.map +1 -0
- package/dist/{src/mcp → mcp}/mcp-integration.d.ts +3 -0
- package/dist/mcp/mcp-integration.d.ts.map +1 -0
- package/dist/mcp/mcp-notifications.d.ts.map +1 -0
- package/dist/mcp/mcp-prompts.d.ts.map +1 -0
- package/dist/mcp/mcp-protocol-versions.d.ts +150 -0
- package/dist/mcp/mcp-protocol-versions.d.ts.map +1 -0
- package/dist/mcp/mcp-resources.d.ts.map +1 -0
- package/dist/testing/fuzzy-test-cli.d.ts.map +1 -0
- package/dist/testing/fuzzy-tester.d.ts.map +1 -0
- package/package.json +12 -6
- package/dist/src/config/ConfigurationManager.d.ts.map +0 -1
- package/dist/src/config/plugins/ConfigPlugin.d.ts.map +0 -1
- package/dist/src/config/plugins/ConfigPluginRegistry.d.ts.map +0 -1
- package/dist/src/config/plugins/TomlConfigPlugin.d.ts.map +0 -1
- package/dist/src/config/plugins/YamlConfigPlugin.d.ts.map +0 -1
- package/dist/src/config/plugins/index.d.ts.map +0 -1
- package/dist/src/core/ArgParser.d.ts.map +0 -1
- package/dist/src/core/FlagManager.d.ts.map +0 -1
- package/dist/src/core/types.d.ts.map +0 -1
- package/dist/src/dxt/DxtGenerator.d.ts.map +0 -1
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/mcp/ArgParserMcp.d.ts.map +0 -1
- package/dist/src/mcp/mcp-integration.d.ts.map +0 -1
- package/dist/src/mcp/mcp-notifications.d.ts.map +0 -1
- package/dist/src/mcp/mcp-prompts.d.ts.map +0 -1
- package/dist/src/mcp/mcp-resources.d.ts.map +0 -1
- package/dist/src/testing/fuzzy-test-cli.d.ts.map +0 -1
- package/dist/src/testing/fuzzy-tester.d.ts.map +0 -1
- /package/dist/{src/config → config}/ConfigurationManager.d.ts +0 -0
- /package/dist/{src/config → config}/plugins/ConfigPlugin.d.ts +0 -0
- /package/dist/{src/config → config}/plugins/ConfigPluginRegistry.d.ts +0 -0
- /package/dist/{src/config → config}/plugins/TomlConfigPlugin.d.ts +0 -0
- /package/dist/{src/config → config}/plugins/YamlConfigPlugin.d.ts +0 -0
- /package/dist/{src/config → config}/plugins/index.d.ts +0 -0
- /package/dist/{src/core → core}/FlagManager.d.ts +0 -0
- /package/dist/{src/mcp → mcp}/ArgParserMcp.d.ts +0 -0
- /package/dist/{src/mcp → mcp}/mcp-notifications.d.ts +0 -0
- /package/dist/{src/mcp → mcp}/mcp-prompts.d.ts +0 -0
- /package/dist/{src/mcp → mcp}/mcp-resources.d.ts +0 -0
- /package/dist/{src/testing → testing}/fuzzy-test-cli.d.ts +0 -0
- /package/dist/{src/testing → testing}/fuzzy-tester.d.ts +0 -0
|
@@ -133,6 +133,156 @@ export type IHandlerContext<TCurrentCommandArgs extends Record<string, any> = Re
|
|
|
133
133
|
* Generic type for the collection of processed flags that an ArgParser instance manages.
|
|
134
134
|
*/
|
|
135
135
|
export type FlagsArray = readonly ProcessedFlag[];
|
|
136
|
+
/**
|
|
137
|
+
* Converts a flag type to a JSON Schema type string.
|
|
138
|
+
* This function handles all possible flag type formats and returns a valid JSON Schema type.
|
|
139
|
+
*
|
|
140
|
+
* @param flagType - The flag type from IFlag or ProcessedFlag
|
|
141
|
+
* @returns A JSON Schema type string: "string" | "number" | "boolean" | "array" | "object"
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* ```typescript
|
|
145
|
+
* getJsonSchemaTypeFromFlag(String) // returns "string"
|
|
146
|
+
* getJsonSchemaTypeFromFlag("number") // returns "number"
|
|
147
|
+
* getJsonSchemaTypeFromFlag((val) => parseInt(val)) // returns "string" (fallback for custom functions)
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
export declare function getJsonSchemaTypeFromFlag(flagType: TParsedArgsTypeFromFlagDef): "string" | "number" | "boolean" | "array" | "object";
|
|
151
|
+
/**
|
|
152
|
+
* Common output schema patterns for typical CLI/MCP tool responses
|
|
153
|
+
*/
|
|
154
|
+
export declare const OutputSchemaPatterns: {
|
|
155
|
+
/**
|
|
156
|
+
* Simple success/error response pattern
|
|
157
|
+
* @example { success: true, message: "Operation completed" }
|
|
158
|
+
*/
|
|
159
|
+
readonly successError: () => z.ZodObject<{
|
|
160
|
+
success: z.ZodBoolean;
|
|
161
|
+
message: z.ZodOptional<z.ZodString>;
|
|
162
|
+
error: z.ZodOptional<z.ZodString>;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
success: boolean;
|
|
165
|
+
message?: string | undefined;
|
|
166
|
+
error?: string | undefined;
|
|
167
|
+
}, {
|
|
168
|
+
success: boolean;
|
|
169
|
+
message?: string | undefined;
|
|
170
|
+
error?: string | undefined;
|
|
171
|
+
}>;
|
|
172
|
+
/**
|
|
173
|
+
* Success response with data payload
|
|
174
|
+
* @example { success: true, data: {...}, message: "Data retrieved" }
|
|
175
|
+
*/
|
|
176
|
+
readonly successWithData: (dataSchema?: z.ZodTypeAny) => z.ZodObject<{
|
|
177
|
+
success: z.ZodBoolean;
|
|
178
|
+
data: z.ZodTypeAny;
|
|
179
|
+
message: z.ZodOptional<z.ZodString>;
|
|
180
|
+
error: z.ZodOptional<z.ZodString>;
|
|
181
|
+
}, "strip", z.ZodTypeAny, {
|
|
182
|
+
success: boolean;
|
|
183
|
+
message?: string | undefined;
|
|
184
|
+
error?: string | undefined;
|
|
185
|
+
data?: any;
|
|
186
|
+
}, {
|
|
187
|
+
success: boolean;
|
|
188
|
+
message?: string | undefined;
|
|
189
|
+
error?: string | undefined;
|
|
190
|
+
data?: any;
|
|
191
|
+
}>;
|
|
192
|
+
/**
|
|
193
|
+
* List/array response pattern
|
|
194
|
+
* @example { items: [...], count: 5, hasMore: false }
|
|
195
|
+
*/
|
|
196
|
+
readonly list: (itemSchema?: z.ZodTypeAny) => z.ZodObject<{
|
|
197
|
+
items: z.ZodArray<z.ZodTypeAny, "many">;
|
|
198
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
199
|
+
hasMore: z.ZodOptional<z.ZodBoolean>;
|
|
200
|
+
}, "strip", z.ZodTypeAny, {
|
|
201
|
+
items: any[];
|
|
202
|
+
count?: number | undefined;
|
|
203
|
+
hasMore?: boolean | undefined;
|
|
204
|
+
}, {
|
|
205
|
+
items: any[];
|
|
206
|
+
count?: number | undefined;
|
|
207
|
+
hasMore?: boolean | undefined;
|
|
208
|
+
}>;
|
|
209
|
+
/**
|
|
210
|
+
* File operation response pattern
|
|
211
|
+
* @example { path: "/path/to/file", size: 1024, created: true }
|
|
212
|
+
*/
|
|
213
|
+
readonly fileOperation: () => z.ZodObject<{
|
|
214
|
+
path: z.ZodString;
|
|
215
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
216
|
+
created: z.ZodOptional<z.ZodBoolean>;
|
|
217
|
+
modified: z.ZodOptional<z.ZodBoolean>;
|
|
218
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
219
|
+
}, "strip", z.ZodTypeAny, {
|
|
220
|
+
path: string;
|
|
221
|
+
size?: number | undefined;
|
|
222
|
+
created?: boolean | undefined;
|
|
223
|
+
modified?: boolean | undefined;
|
|
224
|
+
exists?: boolean | undefined;
|
|
225
|
+
}, {
|
|
226
|
+
path: string;
|
|
227
|
+
size?: number | undefined;
|
|
228
|
+
created?: boolean | undefined;
|
|
229
|
+
modified?: boolean | undefined;
|
|
230
|
+
exists?: boolean | undefined;
|
|
231
|
+
}>;
|
|
232
|
+
/**
|
|
233
|
+
* Process execution response pattern
|
|
234
|
+
* @example { exitCode: 0, stdout: "output", stderr: "", duration: 1500 }
|
|
235
|
+
*/
|
|
236
|
+
readonly processExecution: () => z.ZodObject<{
|
|
237
|
+
exitCode: z.ZodNumber;
|
|
238
|
+
stdout: z.ZodOptional<z.ZodString>;
|
|
239
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
240
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
241
|
+
command: z.ZodOptional<z.ZodString>;
|
|
242
|
+
}, "strip", z.ZodTypeAny, {
|
|
243
|
+
exitCode: number;
|
|
244
|
+
stdout?: string | undefined;
|
|
245
|
+
stderr?: string | undefined;
|
|
246
|
+
duration?: number | undefined;
|
|
247
|
+
command?: string | undefined;
|
|
248
|
+
}, {
|
|
249
|
+
exitCode: number;
|
|
250
|
+
stdout?: string | undefined;
|
|
251
|
+
stderr?: string | undefined;
|
|
252
|
+
duration?: number | undefined;
|
|
253
|
+
command?: string | undefined;
|
|
254
|
+
}>;
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* Type for output schema pattern names with auto-completion support
|
|
258
|
+
*/
|
|
259
|
+
export type OutputSchemaPatternName = keyof typeof OutputSchemaPatterns;
|
|
260
|
+
/**
|
|
261
|
+
* Type for output schema configuration - supports pattern names, Zod schemas, or schema definition objects
|
|
262
|
+
*/
|
|
263
|
+
export type OutputSchemaConfig = OutputSchemaPatternName | z.ZodTypeAny | Record<string, z.ZodTypeAny>;
|
|
264
|
+
/**
|
|
265
|
+
* Creates a Zod output schema from a pattern or custom definition
|
|
266
|
+
*
|
|
267
|
+
* @param pattern - Either a predefined pattern name, a Zod schema, or a schema definition object
|
|
268
|
+
* @returns A Zod schema for output validation
|
|
269
|
+
*
|
|
270
|
+
* @example
|
|
271
|
+
* ```typescript
|
|
272
|
+
* // Using a predefined pattern
|
|
273
|
+
* const schema1 = createOutputSchema('successError');
|
|
274
|
+
*
|
|
275
|
+
* // Using a custom Zod schema
|
|
276
|
+
* const schema2 = createOutputSchema(z.object({ result: z.string() }));
|
|
277
|
+
*
|
|
278
|
+
* // Using a schema definition object
|
|
279
|
+
* const schema3 = createOutputSchema({
|
|
280
|
+
* result: z.string().describe("The result"),
|
|
281
|
+
* timestamp: z.string().describe("When the operation completed")
|
|
282
|
+
* });
|
|
283
|
+
* ```
|
|
284
|
+
*/
|
|
285
|
+
export declare function createOutputSchema(pattern: OutputSchemaConfig): z.ZodTypeAny;
|
|
136
286
|
/**
|
|
137
287
|
* Defines a subcommand within an ArgParser setup.
|
|
138
288
|
* @template TSubCommandFlags Flags defined specifically FOR this subcommand.
|
|
@@ -177,6 +327,7 @@ export interface ParseResult<T = any> {
|
|
|
177
327
|
}
|
|
178
328
|
/**
|
|
179
329
|
* Configuration options for ArgParser behavior
|
|
330
|
+
* @deprecated Use IArgParserParams for full configuration options. This interface will be removed in v3.0.
|
|
180
331
|
*/
|
|
181
332
|
export interface ArgParserOptions {
|
|
182
333
|
/** Whether to automatically call process.exit() based on ParseResult (default: true for backward compatibility) */
|
|
@@ -184,6 +335,16 @@ export interface ArgParserOptions {
|
|
|
184
335
|
/** Whether to handle errors by exiting or throwing (default: true for backward compatibility) */
|
|
185
336
|
handleErrors?: boolean;
|
|
186
337
|
}
|
|
338
|
+
/**
|
|
339
|
+
* Configuration options for ArgParser runtime behavior
|
|
340
|
+
* This is a more clearly named version of ArgParserOptions
|
|
341
|
+
*/
|
|
342
|
+
export interface ArgParserBehaviorOptions {
|
|
343
|
+
/** Whether to automatically call process.exit() based on ParseResult (default: true for backward compatibility) */
|
|
344
|
+
autoExit?: boolean;
|
|
345
|
+
/** Whether to handle errors by exiting or throwing (default: true for backward compatibility) */
|
|
346
|
+
handleErrors?: boolean;
|
|
347
|
+
}
|
|
187
348
|
/**
|
|
188
349
|
* Type for the main handler of an ArgParser instance (root command or a command defined by an ArgParser).
|
|
189
350
|
* @template TParserFlags Flags defined for this ArgParser instance.
|
|
@@ -0,0 +1 @@
|
|
|
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,GACR,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,CAAC;AAEb;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,aAAa,CAAC,EAAE,MAAM,CAAC,GAAG;IAC7E,IAAI,EAAE,0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IAClB,CACF,GAAG,EAAE,eAAe,CAClB,WAAW,CAAC,YAAY,CAAC,EACzB,WAAW,CAAC,kBAAkB,CAAC,CAChC,KACE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -103,10 +103,6 @@ export declare class DxtGenerator {
|
|
|
103
103
|
* Sets up DXT package files (manifest.json) in the dxt output directory
|
|
104
104
|
*/
|
|
105
105
|
private setupDxtPackageFiles;
|
|
106
|
-
/**
|
|
107
|
-
* Maps ArgParser flag types to JSON Schema types
|
|
108
|
-
*/
|
|
109
|
-
private mapFlagTypeToJsonSchema;
|
|
110
106
|
/**
|
|
111
107
|
* Manually copy logo since TSDown's copy option doesn't work programmatically
|
|
112
108
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DxtGenerator.d.ts","sourceRoot":"","sources":["../../src/dxt/DxtGenerator.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAIjD;;;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;I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