burgee 0.11.1 → 0.12.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.
Files changed (51) hide show
  1. package/README.md +12 -0
  2. package/dist/cli.d.ts +1 -90
  3. package/dist/cli.js +3 -151
  4. package/dist/commander/command.d.ts +22 -0
  5. package/dist/commander/command.js +41 -10
  6. package/dist/compat.d.ts +39 -2
  7. package/dist/compat.js +90 -2
  8. package/dist/complete-dynamic.d.ts +18 -0
  9. package/dist/complete-dynamic.js +19 -0
  10. package/dist/completions.js +32 -14
  11. package/dist/config-explain.d.ts +22 -0
  12. package/dist/config-explain.js +33 -0
  13. package/dist/define-error.d.ts +29 -0
  14. package/dist/define-error.js +29 -0
  15. package/dist/errors.d.ts +29 -0
  16. package/dist/errors.js +17 -0
  17. package/dist/execute.d.ts +6 -0
  18. package/dist/execute.js +71 -13
  19. package/dist/facade-failure.d.ts +17 -0
  20. package/dist/facade-failure.js +12 -0
  21. package/dist/fields.d.ts +32 -0
  22. package/dist/fields.js +45 -0
  23. package/dist/index.d.ts +1 -0
  24. package/dist/index.js +1 -0
  25. package/dist/manifest.d.ts +35 -5
  26. package/dist/manifest.js +6 -0
  27. package/dist/mcp.js +88 -5
  28. package/dist/migrate.d.ts +57 -7
  29. package/dist/migrate.js +413 -34
  30. package/dist/parse-hooks.d.ts +7 -0
  31. package/dist/parse-hooks.js +17 -0
  32. package/dist/plugin.d.ts +2 -6
  33. package/dist/plugin.js +1 -1
  34. package/dist/program-schema.json +1 -0
  35. package/dist/program.d.ts +90 -0
  36. package/dist/program.js +151 -0
  37. package/dist/runtime.d.ts +3 -1
  38. package/dist/runtime.js +3 -0
  39. package/dist/schema.d.ts +7 -0
  40. package/dist/schema.js +6 -11
  41. package/dist/schema.json +1 -1
  42. package/dist/stdin-dash.d.ts +15 -0
  43. package/dist/stdin-dash.js +12 -0
  44. package/dist/validate.d.ts +1 -27
  45. package/dist/validate.js +2 -17
  46. package/dist/yargs/factory.js +39 -13
  47. package/dist/yargs-parser.d.ts +8 -1
  48. package/dist/yargs-parser.js +1 -1
  49. package/dist/yargs.d.ts +1 -0
  50. package/dist/yargs.js +1 -0
  51. package/package.json +7 -6
@@ -19,6 +19,13 @@ export interface DetailedArguments {
19
19
  defaulted: Record<string, boolean>;
20
20
  configuration: Record<string, any>;
21
21
  }
22
+ export interface Arguments {
23
+ _: (string | number)[];
24
+ '--'?: (string | number)[];
25
+ [argName: string]: any;
26
+ }
27
+ export type Options = Record<string, any>;
28
+ export type Configuration = Record<string, boolean | string | undefined>;
22
29
  export declare function camelCase(str: string): string;
23
30
  export declare function decamelize(str: string, joinString?: string): string;
24
31
  export declare function looksLikeNumber(x: any): boolean;
@@ -36,6 +43,6 @@ export interface Parser {
36
43
  looksLikeNumber: typeof looksLikeNumber;
37
44
  }
38
45
  declare const yargsParser: Parser;
39
- export { yargsParser as Parser };
46
+ export { yargsParser as 'module.exports', yargsParser as Parser };
40
47
  /** `burgee/yargs/parser`: what `import parser from 'yargs-parser'` gives, the same object the front-end parses with. */
41
48
  export default yargsParser;
@@ -925,5 +925,5 @@ yargsParser.detailed = (args, opts) => parser.parse(args.slice(), opts);
925
925
  yargsParser.camelCase = camelCase;
926
926
  yargsParser.decamelize = decamelize;
927
927
  yargsParser.looksLikeNumber = looksLikeNumber;
928
- export { yargsParser as Parser };
928
+ export { yargsParser as 'module.exports', yargsParser as Parser };
929
929
  export default yargsParser;
package/dist/yargs.d.ts CHANGED
@@ -11,4 +11,5 @@ export type { Arguments, ArgumentsCamelCase, Argv, AsyncCompletionFunction, Buil
11
11
  * declares to one that instance really has.
12
12
  */
13
13
  declare const Yargs: (processArgs?: readonly string[] | string, cwd?: string, parentRequire?: NodeJS.Require) => Argv;
14
+ export { Yargs as 'module.exports' };
14
15
  export default Yargs;
package/dist/yargs.js CHANGED
@@ -5,4 +5,5 @@ export { Parser, camelCase, decamelize, looksLikeNumber } from './yargs-parser.j
5
5
  export { applyExtends, argsert, hideBin, isPromise, objFilter, parseCommand, YError } from './yargs/utils.js';
6
6
  export { shim as platformShim } from './yargs/shim.js';
7
7
  const Yargs = YargsFactory(shim);
8
+ export { Yargs as 'module.exports' };
8
9
  export default Yargs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "burgee",
3
- "version": "0.11.1",
3
+ "version": "0.12.1",
4
4
  "description": "An agent-native CLI framework, drop-in compatible with commander and yargs. One declaration; help, --json, --schema, --mcp and completions all projected from it.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -17,6 +17,7 @@
17
17
  "default": "./dist/index.js"
18
18
  },
19
19
  "./schema.json": "./dist/schema.json",
20
+ "./program-schema.json": "./dist/program-schema.json",
20
21
  "./plugin": {
21
22
  "types": "./dist/plugin.d.ts",
22
23
  "import": "./dist/plugin.js",
@@ -146,11 +147,11 @@
146
147
  "provenance": true
147
148
  },
148
149
  "dependencies": {
149
- "bellpull": "^0.3.1",
150
- "closeout": "^0.5.1",
151
- "linegauge": "^0.5.1",
152
- "roundel": "^0.5.1",
153
- "seniority": "^0.5.1"
150
+ "bellpull": "^0.4.0",
151
+ "closeout": "^0.5.2",
152
+ "linegauge": "^0.5.2",
153
+ "roundel": "^0.5.2",
154
+ "seniority": "^0.6.0"
154
155
  },
155
156
  "devDependencies": {
156
157
  "vitest": "^5.0.1"