burgee 0.0.0 → 0.3.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 (116) hide show
  1. package/README.md +28 -1
  2. package/dist/agent.d.ts +19 -0
  3. package/dist/agent.js +25 -0
  4. package/dist/brand.d.ts +186 -0
  5. package/dist/brand.js +232 -0
  6. package/dist/cli.d.ts +62 -0
  7. package/dist/cli.js +121 -0
  8. package/dist/commander-argument.d.ts +22 -0
  9. package/dist/commander-argument.js +72 -0
  10. package/dist/commander-command.d.ts +355 -0
  11. package/dist/commander-command.js +1621 -0
  12. package/dist/commander-error.d.ts +10 -0
  13. package/dist/commander-error.js +20 -0
  14. package/dist/commander-help.d.ts +67 -0
  15. package/dist/commander-help.js +319 -0
  16. package/dist/commander-option.d.ts +58 -0
  17. package/dist/commander-option.js +164 -0
  18. package/dist/commander-suggest.d.ts +2 -0
  19. package/dist/commander-suggest.js +59 -0
  20. package/dist/commander.d.ts +18 -0
  21. package/dist/commander.js +12 -0
  22. package/dist/completions.d.ts +39 -0
  23. package/dist/completions.js +224 -0
  24. package/dist/config.d.ts +28 -0
  25. package/dist/config.js +98 -0
  26. package/dist/contrast.d.ts +70 -0
  27. package/dist/contrast.js +93 -0
  28. package/dist/dev.d.ts +47 -0
  29. package/dist/dev.js +132 -0
  30. package/dist/execute.d.ts +118 -0
  31. package/dist/execute.js +469 -0
  32. package/dist/exit-code.d.ts +18 -0
  33. package/dist/exit-code.js +12 -0
  34. package/dist/help.d.ts +34 -0
  35. package/dist/help.js +187 -0
  36. package/dist/index.d.ts +16 -1
  37. package/dist/index.js +9 -2
  38. package/dist/manifest.d.ts +207 -0
  39. package/dist/manifest.js +66 -0
  40. package/dist/mcp.d.ts +52 -0
  41. package/dist/mcp.js +124 -0
  42. package/dist/names.d.ts +5 -0
  43. package/dist/names.js +6 -0
  44. package/dist/pkg.d.ts +5 -0
  45. package/dist/pkg.js +21 -0
  46. package/dist/precedence.d.ts +55 -0
  47. package/dist/precedence.js +100 -0
  48. package/dist/runtime.d.ts +39 -0
  49. package/dist/runtime.js +24 -0
  50. package/dist/schema.d.ts +79 -0
  51. package/dist/schema.js +116 -0
  52. package/dist/testing-helpers.d.ts +79 -0
  53. package/dist/testing-helpers.js +145 -0
  54. package/dist/testing.d.ts +10 -0
  55. package/dist/testing.js +3 -0
  56. package/dist/validate.d.ts +27 -0
  57. package/dist/validate.js +133 -0
  58. package/dist/yargs-burgee.d.ts +50 -0
  59. package/dist/yargs-burgee.js +104 -0
  60. package/dist/yargs-cliui.d.ts +56 -0
  61. package/dist/yargs-cliui.js +421 -0
  62. package/dist/yargs-command.d.ts +82 -0
  63. package/dist/yargs-command.js +414 -0
  64. package/dist/yargs-completion.d.ts +41 -0
  65. package/dist/yargs-completion.js +271 -0
  66. package/dist/yargs-factory.d.ts +193 -0
  67. package/dist/yargs-factory.js +1606 -0
  68. package/dist/yargs-helpers.d.ts +6 -0
  69. package/dist/yargs-helpers.js +2 -0
  70. package/dist/yargs-middleware.d.ts +32 -0
  71. package/dist/yargs-middleware.js +81 -0
  72. package/dist/yargs-parser.d.ts +41 -0
  73. package/dist/yargs-parser.js +929 -0
  74. package/dist/yargs-shim.d.ts +54 -0
  75. package/dist/yargs-shim.js +84 -0
  76. package/dist/yargs-usage.d.ts +42 -0
  77. package/dist/yargs-usage.js +479 -0
  78. package/dist/yargs-utils.d.ts +33 -0
  79. package/dist/yargs-utils.js +209 -0
  80. package/dist/yargs-validation.d.ts +26 -0
  81. package/dist/yargs-validation.js +261 -0
  82. package/dist/yargs-y18n.d.ts +21 -0
  83. package/dist/yargs-y18n.js +117 -0
  84. package/dist/yargs.d.ts +6 -0
  85. package/dist/yargs.js +8 -0
  86. package/locales/be.json +46 -0
  87. package/locales/cs.json +51 -0
  88. package/locales/de.json +46 -0
  89. package/locales/en.json +55 -0
  90. package/locales/es.json +46 -0
  91. package/locales/fi.json +49 -0
  92. package/locales/fr.json +53 -0
  93. package/locales/he.json +55 -0
  94. package/locales/hi.json +49 -0
  95. package/locales/hu.json +46 -0
  96. package/locales/id.json +50 -0
  97. package/locales/it.json +46 -0
  98. package/locales/ja.json +51 -0
  99. package/locales/ka.json +55 -0
  100. package/locales/ko.json +49 -0
  101. package/locales/nb.json +44 -0
  102. package/locales/nl.json +49 -0
  103. package/locales/nn.json +44 -0
  104. package/locales/pirate.json +13 -0
  105. package/locales/pl.json +49 -0
  106. package/locales/pt.json +45 -0
  107. package/locales/pt_BR.json +48 -0
  108. package/locales/ru.json +51 -0
  109. package/locales/th.json +46 -0
  110. package/locales/tr.json +48 -0
  111. package/locales/uk_UA.json +51 -0
  112. package/locales/uz.json +52 -0
  113. package/locales/zh_CN.json +48 -0
  114. package/locales/zh_TW.json +51 -0
  115. package/package.json +62 -9
  116. package/dist/index.js.map +0 -1
@@ -0,0 +1,51 @@
1
+ {
2
+ "Commands:": "Команди:",
3
+ "Options:": "Опції:",
4
+ "Examples:": "Приклади:",
5
+ "boolean": "boolean",
6
+ "count": "кількість",
7
+ "string": "строка",
8
+ "number": "число",
9
+ "array": "масива",
10
+ "required": "обов'язково",
11
+ "default": "за замовчуванням",
12
+ "default:": "за замовчуванням:",
13
+ "choices:": "доступні варіанти:",
14
+ "aliases:": "псевдоніми:",
15
+ "generated-value": "згенероване значення",
16
+ "Not enough non-option arguments: got %s, need at least %s": {
17
+ "one": "Недостатньо аргументів: наразі %s, потрібно %s або більше",
18
+ "other": "Недостатньо аргументів: наразі %s, потрібно %s або більше"
19
+ },
20
+ "Too many non-option arguments: got %s, maximum of %s": {
21
+ "one": "Забагато аргументів: наразі %s, максимум %s",
22
+ "other": "Too many non-option arguments: наразі %s, максимум of %s"
23
+ },
24
+ "Missing argument value: %s": {
25
+ "one": "Відсутнє значення для аргументу: %s",
26
+ "other": "Відсутні значення для аргументу: %s"
27
+ },
28
+ "Missing required argument: %s": {
29
+ "one": "Відсутній обов'язковий аргумент: %s",
30
+ "other": "Відсутні обов'язкові аргументи: %s"
31
+ },
32
+ "Unknown argument: %s": {
33
+ "one": "Аргумент %s не підтримується",
34
+ "other": "Аргументи %s не підтримуються"
35
+ },
36
+ "Invalid values:": "Некоректні значення:",
37
+ "Argument: %s, Given: %s, Choices: %s": "Аргумент: %s, Введено: %s, Доступні варіанти: %s",
38
+ "Argument check failed: %s": "Аргумент не пройшов перевірку: %s",
39
+ "Implications failed:": "Відсутні залежні аргументи:",
40
+ "Not enough arguments following: %s": "Не достатньо аргументів після: %s",
41
+ "Invalid JSON config file: %s": "Некоректний JSON-файл конфігурації: %s",
42
+ "Path to JSON config file": "Шлях до JSON-файлу конфігурації",
43
+ "Show help": "Показати довідку",
44
+ "Show version number": "Показати версію",
45
+ "Did you mean %s?": "Можливо, ви мали на увазі %s?",
46
+ "Arguments %s and %s are mutually exclusive" : "Аргументи %s та %s взаємовиключні",
47
+ "Positionals:": "Позиційні:",
48
+ "command": "команда",
49
+ "deprecated": "застарілий",
50
+ "deprecated: %s": "застарілий: %s"
51
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "Commands:": "Buyruqlar:",
3
+ "Options:": "Imkoniyatlar:",
4
+ "Examples:": "Misollar:",
5
+ "boolean": "boolean",
6
+ "count": "sanoq",
7
+ "string": "satr",
8
+ "number": "raqam",
9
+ "array": "massiv",
10
+ "required": "majburiy",
11
+ "default": "boshlang'ich",
12
+ "default:": "boshlang'ich:",
13
+ "choices:": "tanlovlar:",
14
+ "aliases:": "taxalluslar:",
15
+ "generated-value": "yaratilgan-qiymat",
16
+ "Not enough non-option arguments: got %s, need at least %s": {
17
+ "one": "No-imkoniyat argumentlar yetarli emas: berilgan %s, minimum %s",
18
+ "other": "No-imkoniyat argumentlar yetarli emas: berilgan %s, minimum %s"
19
+ },
20
+ "Too many non-option arguments: got %s, maximum of %s": {
21
+ "one": "No-imkoniyat argumentlar juda ko'p: berilgan %s, maksimum %s",
22
+ "other": "No-imkoniyat argumentlar juda ko'p: got %s, maksimum %s"
23
+ },
24
+ "Missing argument value: %s": {
25
+ "one": "Argument qiymati berilmagan: %s",
26
+ "other": "Argument qiymatlari berilmagan: %s"
27
+ },
28
+ "Missing required argument: %s": {
29
+ "one": "Majburiy argument berilmagan: %s",
30
+ "other": "Majburiy argumentlar berilmagan: %s"
31
+ },
32
+ "Unknown argument: %s": {
33
+ "one": "Noma'lum argument berilmagan: %s",
34
+ "other": "Noma'lum argumentlar berilmagan: %s"
35
+ },
36
+ "Invalid values:": "Nosoz qiymatlar:",
37
+ "Argument: %s, Given: %s, Choices: %s": "Argument: %s, Berilgan: %s, Tanlovlar: %s",
38
+ "Argument check failed: %s": "Muvaffaqiyatsiz argument tekshiruvi: %s",
39
+ "Implications failed:": "Bog'liq argumentlar berilmagan:",
40
+ "Not enough arguments following: %s": "Quyidagi argumentlar yetarli emas: %s",
41
+ "Invalid JSON config file: %s": "Nosoz JSON konfiguratsiya fayli: %s",
42
+ "Path to JSON config file": "JSON konfiguratsiya fayli joylashuvi",
43
+ "Show help": "Yordam ko'rsatish",
44
+ "Show version number": "Versiyani ko'rsatish",
45
+ "Did you mean %s?": "%s ni nazarda tutyapsizmi?",
46
+ "Arguments %s and %s are mutually exclusive" : "%s va %s argumentlari alohida",
47
+ "Positionals:": "Positsionallar:",
48
+ "command": "buyruq",
49
+ "deprecated": "eskirgan",
50
+ "deprecated: %s": "eskirgan: %s"
51
+ }
52
+
@@ -0,0 +1,48 @@
1
+ {
2
+ "Commands:": "命令:",
3
+ "Options:": "选项:",
4
+ "Examples:": "示例:",
5
+ "boolean": "布尔",
6
+ "count": "计数",
7
+ "string": "字符串",
8
+ "number": "数字",
9
+ "array": "数组",
10
+ "required": "必需",
11
+ "default": "默认值",
12
+ "default:": "默认值:",
13
+ "choices:": "可选值:",
14
+ "generated-value": "生成的值",
15
+ "Not enough non-option arguments: got %s, need at least %s": {
16
+ "one": "缺少 non-option 参数:传入了 %s 个, 至少需要 %s 个",
17
+ "other": "缺少 non-option 参数:传入了 %s 个, 至少需要 %s 个"
18
+ },
19
+ "Too many non-option arguments: got %s, maximum of %s": {
20
+ "one": "non-option 参数过多:传入了 %s 个, 最大允许 %s 个",
21
+ "other": "non-option 参数过多:传入了 %s 个, 最大允许 %s 个"
22
+ },
23
+ "Missing argument value: %s": {
24
+ "one": "没有给此选项指定值:%s",
25
+ "other": "没有给这些选项指定值:%s"
26
+ },
27
+ "Missing required argument: %s": {
28
+ "one": "缺少必须的选项:%s",
29
+ "other": "缺少这些必须的选项:%s"
30
+ },
31
+ "Unknown argument: %s": {
32
+ "one": "无法识别的选项:%s",
33
+ "other": "无法识别这些选项:%s"
34
+ },
35
+ "Invalid values:": "无效的选项值:",
36
+ "Argument: %s, Given: %s, Choices: %s": "选项名称: %s, 传入的值: %s, 可选的值:%s",
37
+ "Argument check failed: %s": "选项值验证失败:%s",
38
+ "Implications failed:": "缺少依赖的选项:",
39
+ "Not enough arguments following: %s": "没有提供足够的值给此选项:%s",
40
+ "Invalid JSON config file: %s": "无效的 JSON 配置文件:%s",
41
+ "Path to JSON config file": "JSON 配置文件的路径",
42
+ "Show help": "显示帮助信息",
43
+ "Show version number": "显示版本号",
44
+ "Did you mean %s?": "是指 %s?",
45
+ "Arguments %s and %s are mutually exclusive" : "选项 %s 和 %s 是互斥的",
46
+ "Positionals:": "位置:",
47
+ "command": "命令"
48
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "Commands:": "命令:",
3
+ "Options:": "選項:",
4
+ "Examples:": "範例:",
5
+ "boolean": "布林",
6
+ "count": "次數",
7
+ "string": "字串",
8
+ "number": "數字",
9
+ "array": "陣列",
10
+ "required": "必填",
11
+ "default": "預設值",
12
+ "default:": "預設值:",
13
+ "choices:": "可選值:",
14
+ "aliases:": "別名:",
15
+ "generated-value": "生成的值",
16
+ "Not enough non-option arguments: got %s, need at least %s": {
17
+ "one": "non-option 引數不足:只傳入了 %s 個, 至少要 %s 個",
18
+ "other": "non-option 引數不足:只傳入了 %s 個, 至少要 %s 個"
19
+ },
20
+ "Too many non-option arguments: got %s, maximum of %s": {
21
+ "one": "non-option 引數過多:傳入了 %s 個, 但最多 %s 個",
22
+ "other": "non-option 引數過多:傳入了 %s 個, 但最多 %s 個"
23
+ },
24
+ "Missing argument value: %s": {
25
+ "one": "此引數無指定值:%s",
26
+ "other": "這些引數無指定值:%s"
27
+ },
28
+ "Missing required argument: %s": {
29
+ "one": "缺少必須的引數:%s",
30
+ "other": "缺少這些必須的引數:%s"
31
+ },
32
+ "Unknown argument: %s": {
33
+ "one": "未知的引數:%s",
34
+ "other": "未知的引數:%s"
35
+ },
36
+ "Invalid values:": "無效的選項值:",
37
+ "Argument: %s, Given: %s, Choices: %s": "引數名稱: %s, 傳入的值: %s, 可選的值:%s",
38
+ "Argument check failed: %s": "引數驗證失敗:%s",
39
+ "Implications failed:": "缺少依賴引數:",
40
+ "Not enough arguments following: %s": "沒有提供足夠的值給此引數:%s",
41
+ "Invalid JSON config file: %s": "無效的 JSON 設置文件:%s",
42
+ "Path to JSON config file": "JSON 設置文件的路徑",
43
+ "Show help": "顯示說明",
44
+ "Show version number": "顯示版本",
45
+ "Did you mean %s?": "您是指 %s 嗎?",
46
+ "Arguments %s and %s are mutually exclusive" : "引數 %s 和 %s 互斥",
47
+ "Positionals:": "位置:",
48
+ "command": "命令",
49
+ "deprecated": "已淘汰",
50
+ "deprecated: %s": "已淘汰:%s"
51
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "burgee",
3
- "version": "0.0.0",
3
+ "version": "0.3.0",
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",
@@ -10,26 +10,75 @@
10
10
  "exports": {
11
11
  ".": {
12
12
  "types": "./dist/index.d.ts",
13
- "import": "./dist/index.js"
13
+ "import": "./dist/index.js",
14
+ "default": "./dist/index.js"
15
+ },
16
+ "./brand": {
17
+ "types": "./dist/brand.d.ts",
18
+ "import": "./dist/brand.js",
19
+ "default": "./dist/brand.js"
20
+ },
21
+ "./contrast": {
22
+ "types": "./dist/contrast.d.ts",
23
+ "import": "./dist/contrast.js",
24
+ "default": "./dist/contrast.js"
25
+ },
26
+ "./cli": {
27
+ "types": "./dist/cli.d.ts",
28
+ "import": "./dist/cli.js",
29
+ "default": "./dist/cli.js"
30
+ },
31
+ "./testing": {
32
+ "types": "./dist/testing.d.ts",
33
+ "import": "./dist/testing.js",
34
+ "default": "./dist/testing.js"
35
+ },
36
+ "./commander": {
37
+ "types": "./dist/commander.d.ts",
38
+ "import": "./dist/commander.js",
39
+ "default": "./dist/commander.js"
40
+ },
41
+ "./completions": {
42
+ "types": "./dist/completions.d.ts",
43
+ "import": "./dist/completions.js",
44
+ "default": "./dist/completions.js"
45
+ },
46
+ "./yargs": {
47
+ "types": "./dist/yargs.d.ts",
48
+ "import": "./dist/yargs.js",
49
+ "default": "./dist/yargs.js"
50
+ },
51
+ "./yargs/helpers": {
52
+ "types": "./dist/yargs-helpers.d.ts",
53
+ "import": "./dist/yargs-helpers.js",
54
+ "default": "./dist/yargs-helpers.js"
55
+ },
56
+ "./yargs/parser": {
57
+ "types": "./dist/yargs-parser.d.ts",
58
+ "import": "./dist/yargs-parser.js",
59
+ "default": "./dist/yargs-parser.js"
14
60
  }
15
61
  },
16
62
  "files": [
17
- "dist"
63
+ "dist",
64
+ "!dist/**/*.map",
65
+ "!dist/**/*.test.*",
66
+ "locales"
18
67
  ],
19
68
  "scripts": {
20
- "build": "tsc -p tsconfig.build.json",
69
+ "build": "tsc -p tsconfig.build.json && node ../../scripts/strip-comments.mjs dist",
21
70
  "typecheck": "tsc -p tsconfig.json --noEmit",
22
71
  "test": "vitest run --passWithNoTests",
23
72
  "lint": "eslint src"
24
73
  },
25
74
  "repository": {
26
75
  "type": "git",
27
- "url": "git+https://github.com/ofri-peretz/cli.git",
76
+ "url": "git+https://github.com/ofri-peretz/burgee.git",
28
77
  "directory": "packages/burgee"
29
78
  },
30
- "homepage": "https://github.com/ofri-peretz/cli#readme",
79
+ "homepage": "https://github.com/ofri-peretz/burgee#readme",
31
80
  "bugs": {
32
- "url": "https://github.com/ofri-peretz/cli/issues"
81
+ "url": "https://github.com/ofri-peretz/burgee/issues"
33
82
  },
34
83
  "keywords": [
35
84
  "cli",
@@ -42,9 +91,13 @@
42
91
  "framework"
43
92
  ],
44
93
  "publishConfig": {
45
- "access": "public"
94
+ "access": "public",
95
+ "provenance": true
46
96
  },
47
97
  "devDependencies": {
48
- "vitest": "^4.0.0"
98
+ "vitest": "^5.0.0"
99
+ },
100
+ "bin": {
101
+ "burgee": "./dist/cli.js"
49
102
  }
50
103
  }
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC"}