claude-flow-novice 2.3.1 → 2.3.3

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 (1403) hide show
  1. package/dist/scripts/.claude-flow/metrics/agent-metrics.json +1 -0
  2. package/dist/scripts/.claude-flow/metrics/performance.json +9 -0
  3. package/dist/scripts/.claude-flow/metrics/task-metrics.json +10 -0
  4. package/dist/scripts/CLEANUP_OPTIMIZATION_REPORT.json +312 -0
  5. package/dist/scripts/CLEANUP_PERFORMANCE_OPTIMIZATION.md +387 -0
  6. package/dist/scripts/CLEANUP_QUICK_START.md +268 -0
  7. package/dist/scripts/CLEANUP_TEST_RESULTS.md +205 -0
  8. package/dist/scripts/README.md +339 -0
  9. package/dist/scripts/ace-query.sh +384 -0
  10. package/dist/scripts/agent-token-analysis.js +430 -0
  11. package/dist/scripts/auto-setup.js +332 -0
  12. package/dist/scripts/build/README.md +167 -0
  13. package/dist/scripts/build/build-config.js +27 -0
  14. package/dist/scripts/build/build-prompt-copier.sh +30 -0
  15. package/dist/scripts/build/performance-monitor.js +869 -0
  16. package/dist/scripts/build/prepare-publish.js +150 -0
  17. package/dist/scripts/build/typescript-fixer.js +621 -0
  18. package/dist/scripts/build/unified-builder.sh +428 -0
  19. package/dist/scripts/build/update-bin-version.js +32 -0
  20. package/dist/scripts/build/validate-agents.js +238 -0
  21. package/dist/scripts/build-index.js +43 -0
  22. package/dist/scripts/build-orchestrator.js +320 -0
  23. package/dist/scripts/check-routing-stats.cjs +122 -0
  24. package/dist/scripts/ci-validation.js +375 -0
  25. package/dist/scripts/cleanup-blocking-coordination.sh +420 -0
  26. package/dist/scripts/cleanup-idle-sessions.sh +118 -0
  27. package/dist/scripts/collect-build-metrics.js +65 -0
  28. package/dist/scripts/demo/README.md +79 -0
  29. package/dist/scripts/demo/autoscaling-demo-simplified.js +963 -0
  30. package/dist/scripts/demo/comprehensive-dashboard-test.js +693 -0
  31. package/dist/scripts/demo/confidence-log.js +87 -0
  32. package/dist/scripts/demo/confidence-report.js +82 -0
  33. package/dist/scripts/demo/demo-multi-swarm-coordination.js +325 -0
  34. package/dist/scripts/demo/demo-production-deployment.js +399 -0
  35. package/dist/scripts/demo/demo-visualization-system.js +149 -0
  36. package/dist/scripts/demo/performance-analysis.cjs +71 -0
  37. package/dist/scripts/demo/performance-analysis.js +71 -0
  38. package/dist/scripts/demo/test-autoscaling-demo.js +314 -0
  39. package/dist/scripts/dependency-optimizer.js +349 -0
  40. package/dist/scripts/dependency-security-assessment.js +331 -0
  41. package/dist/scripts/deploy-sdk.sh +176 -0
  42. package/dist/scripts/deployment-readiness-report.json +179 -0
  43. package/dist/scripts/dev/README.md +264 -0
  44. package/dist/scripts/dev/claude-flow-wrapper.sh +35 -0
  45. package/dist/scripts/dev/claude-monitor.py +419 -0
  46. package/dist/scripts/dev/claude-sparc.sh +562 -0
  47. package/dist/scripts/dev/claude-wrapper.sh +17 -0
  48. package/dist/scripts/dev/demo-phase3-compliance.js +172 -0
  49. package/dist/scripts/dev/demo-task-system.ts +224 -0
  50. package/dist/scripts/dev/deployment-validator.js +315 -0
  51. package/dist/scripts/dev/spawn-claude-terminal.sh +32 -0
  52. package/dist/scripts/dev/start-portal.sh +506 -0
  53. package/dist/scripts/dev/start-web-ui.js +15 -0
  54. package/dist/scripts/dev/stop-portal.sh +311 -0
  55. package/dist/scripts/dev/validate-examples.ts +288 -0
  56. package/dist/scripts/dev/validate-phase2.cjs +451 -0
  57. package/dist/scripts/dev/validate-phase2.js +785 -0
  58. package/dist/scripts/dev/validate-phase3.cjs +208 -0
  59. package/dist/scripts/dev/validate-security-remediation.js +1 -0
  60. package/dist/scripts/ecosystem.config.cjs +90 -0
  61. package/dist/scripts/enhanced-memory-spiral-killer.sh +221 -0
  62. package/dist/scripts/fix-js-extensions.js +167 -0
  63. package/dist/scripts/generate-basic-types.js +73 -0
  64. package/dist/scripts/generate-changelog.js +318 -0
  65. package/dist/scripts/git-hooks/pre-commit.sh +143 -0
  66. package/dist/scripts/health-checks.js +634 -0
  67. package/dist/scripts/hook-wrapper.sh +54 -0
  68. package/dist/scripts/install/README.md +375 -0
  69. package/dist/scripts/install/REDIS_SETUP_VALIDATION.json +245 -0
  70. package/dist/scripts/install/check-prerequisites.js +303 -0
  71. package/dist/scripts/install/config-wizard.js +606 -0
  72. package/dist/scripts/install/dependency-checker.js +385 -0
  73. package/dist/scripts/install/health-check.js +765 -0
  74. package/dist/scripts/install/install.js +256 -0
  75. package/dist/scripts/install/installation-benchmark.js +461 -0
  76. package/dist/scripts/install/quick-install.js +720 -0
  77. package/dist/scripts/install/quick-start-wizard.js +295 -0
  78. package/dist/scripts/install/redis-cli.js +289 -0
  79. package/dist/scripts/install/redis-install-guides.md +407 -0
  80. package/dist/scripts/install/redis-setup.js +559 -0
  81. package/dist/scripts/install/redis-test.js +278 -0
  82. package/dist/scripts/install/service-manager.js +672 -0
  83. package/dist/scripts/install/setup.js +832 -0
  84. package/dist/scripts/install/uninstall.js +526 -0
  85. package/dist/scripts/install/update.js +461 -0
  86. package/dist/scripts/install-pre-commit-hook.sh +127 -0
  87. package/dist/scripts/legacy/README.md +272 -0
  88. package/dist/scripts/legacy/batch-fix-ts.sh +54 -0
  89. package/dist/scripts/legacy/build-migration.sh +105 -0
  90. package/dist/scripts/legacy/build-monitor.js +209 -0
  91. package/dist/scripts/legacy/build-with-filter.sh +84 -0
  92. package/dist/scripts/legacy/build-workaround.sh +71 -0
  93. package/dist/scripts/legacy/fix-ts-advanced.js +358 -0
  94. package/dist/scripts/legacy/fix-ts-final.sh +50 -0
  95. package/dist/scripts/legacy/fix-ts-targeted.sh +49 -0
  96. package/dist/scripts/legacy/fix-typescript-errors.js +305 -0
  97. package/dist/scripts/legacy/force-build.sh +63 -0
  98. package/dist/scripts/legacy/optimize-performance.js +400 -0
  99. package/dist/scripts/legacy/performance-monitor.js +263 -0
  100. package/dist/scripts/legacy/performance-monitoring.js +532 -0
  101. package/dist/scripts/legacy/performance-test-runner.js +645 -0
  102. package/dist/scripts/legacy/quick-fix-ts.js +281 -0
  103. package/dist/scripts/legacy/safe-build.sh +63 -0
  104. package/dist/scripts/memory-monitor-coordinator.js +451 -0
  105. package/dist/scripts/migrate-to-sdk.sh +520 -0
  106. package/dist/scripts/migration/QUICK-START.md +189 -0
  107. package/dist/scripts/migration/QUICK-START.md.backup-1760135091363 +189 -0
  108. package/dist/scripts/migration/README.md +464 -0
  109. package/dist/scripts/migration/TASK-1.3.2-COMPLETION-REPORT.md +500 -0
  110. package/dist/scripts/migration/TASK-1.3.2-COMPLETION-REPORT.md.backup-1760135091348 +500 -0
  111. package/dist/scripts/migration/UPDATE-PATHS-README.md +464 -0
  112. package/dist/scripts/migration/UPDATE-PATHS-README.md.backup-1760135091337 +464 -0
  113. package/dist/scripts/migration/example-patterns.json +19 -0
  114. package/dist/scripts/migration/install-arm64.js +78 -0
  115. package/dist/scripts/migration/install.js +83 -0
  116. package/dist/scripts/migration/migrate-hooks.js +173 -0
  117. package/dist/scripts/migration/migration-examples.ts +318 -0
  118. package/dist/scripts/migration/reorganize-workspace.js +504 -0
  119. package/dist/scripts/migration/test-update-paths.js +359 -0
  120. package/dist/scripts/migration/update-paths.js +664 -0
  121. package/dist/scripts/migration/validate-migration.js +647 -0
  122. package/dist/scripts/monitor-loop.sh +65 -0
  123. package/dist/scripts/monitor-memory.sh +47 -0
  124. package/dist/scripts/monitor-migration.js +339 -0
  125. package/dist/scripts/monitor.py +43 -0
  126. package/dist/scripts/monitoring/README.md +178 -0
  127. package/dist/scripts/monitoring/alert-monitor.sh +220 -0
  128. package/dist/scripts/monitoring/analyze-resources.sh +199 -0
  129. package/dist/scripts/monitoring/dashboards/rate-limiting-dashboard.json +211 -0
  130. package/dist/scripts/monitoring/dynamic-monitor.sh +85 -0
  131. package/dist/scripts/monitoring/launch-stability-test.sh +184 -0
  132. package/dist/scripts/monitoring/monitor-test.sh +93 -0
  133. package/dist/scripts/monitoring/pre-test-validation.sh +208 -0
  134. package/dist/scripts/monitoring/quick-test-alerting.sh +118 -0
  135. package/dist/scripts/monitoring/quick-test-rate-limiting.sh +206 -0
  136. package/dist/scripts/monitoring/rate-limiting-monitor.sh +380 -0
  137. package/dist/scripts/monitoring/resource-monitor.sh +126 -0
  138. package/dist/scripts/monitoring/stability-monitor.js +429 -0
  139. package/dist/scripts/monitoring/test-monitor-quick.sh +54 -0
  140. package/dist/scripts/monitoring/view-alerts.sh +307 -0
  141. package/dist/scripts/npm-metrics-collector.js +482 -0
  142. package/dist/scripts/npm-package-validation.cjs +299 -0
  143. package/dist/scripts/optimization/build-optimizer.js +438 -0
  144. package/dist/scripts/optimization/config-validator.js +761 -0
  145. package/dist/scripts/optimization/test-optimization.js +432 -0
  146. package/dist/scripts/optimization/unified-activation.js +839 -0
  147. package/dist/scripts/optimize-package-swarm.js +54 -0
  148. package/dist/scripts/performance/ACTIVATION_COMMANDS.md +292 -0
  149. package/dist/scripts/performance/sqlite-enhanced-activation.sh +583 -0
  150. package/dist/scripts/performance/test-enhanced-backend.sh +504 -0
  151. package/dist/scripts/performance-monitor.js +644 -0
  152. package/dist/scripts/performance-test-runner.js +698 -0
  153. package/dist/scripts/post-deployment-monitoring.js +350 -0
  154. package/dist/scripts/post-edit-pipeline.js +2091 -0
  155. package/dist/scripts/post-install-claude-md.js +78 -0
  156. package/dist/scripts/postinstall.js +165 -0
  157. package/dist/scripts/pre-publish-validation.cjs +212 -0
  158. package/dist/scripts/pre-publish-validation.js +429 -0
  159. package/dist/scripts/redis-lua/cleanup-blocking-coordination.lua +198 -0
  160. package/dist/scripts/release-announcement.js +425 -0
  161. package/dist/scripts/release-notification.js +248 -0
  162. package/dist/scripts/release-rollback.js +376 -0
  163. package/dist/scripts/release-validation.js +460 -0
  164. package/dist/scripts/rollback-sdk.sh +66 -0
  165. package/dist/scripts/run-production-validation.ts +590 -0
  166. package/dist/scripts/run-stability-validation.sh +687 -0
  167. package/dist/scripts/security/README.md +339 -0
  168. package/dist/scripts/security/deployment-validation.cjs +279 -0
  169. package/dist/scripts/security/envelope-encryption-confidence-report.cjs +422 -0
  170. package/dist/scripts/security/install-git-hooks.sh +132 -0
  171. package/dist/scripts/security/install-git-secrets.sh +295 -0
  172. package/dist/scripts/security/rotate-api-keys.js +469 -0
  173. package/dist/scripts/security/ruv-swarm-safe.js +74 -0
  174. package/dist/scripts/security/security-audit.cjs +538 -0
  175. package/dist/scripts/security/setup-redis-auth.sh +397 -0
  176. package/dist/scripts/security/validate-envelope-encryption.cjs +340 -0
  177. package/dist/scripts/security-scan.js +492 -0
  178. package/dist/scripts/src/web/frontend/.claude-flow/metrics/agent-metrics.json +1 -0
  179. package/dist/scripts/src/web/frontend/.claude-flow/metrics/performance.json +9 -0
  180. package/dist/scripts/src/web/frontend/.claude-flow/metrics/task-metrics.json +10 -0
  181. package/dist/scripts/switch-api.sh +159 -0
  182. package/dist/scripts/sync-agents.js +290 -0
  183. package/dist/scripts/test/50-agent-test.js +625 -0
  184. package/dist/scripts/test/NEW_STABILITY_TEST_GUIDE.md +407 -0
  185. package/dist/scripts/test/README.md +236 -0
  186. package/dist/scripts/test/STABILITY_TEST_EXAMPLE.md +347 -0
  187. package/dist/scripts/test/STABILITY_TEST_README.md +480 -0
  188. package/dist/scripts/test/agent-worker.js +309 -0
  189. package/dist/scripts/test/ai-coordination-test.js +650 -0
  190. package/dist/scripts/test/ai-mesh-coordination-test.js +416 -0
  191. package/dist/scripts/test/check-links.ts +274 -0
  192. package/dist/scripts/test/check-performance-regression.ts +168 -0
  193. package/dist/scripts/test/cli-agent-coordination-test.js +313 -0
  194. package/dist/scripts/test/coordinator-multilingual-test.js +396 -0
  195. package/dist/scripts/test/coordinator-transparency-demo.js +585 -0
  196. package/dist/scripts/test/coverage-report.ts +692 -0
  197. package/dist/scripts/test/generate-swarm-tests.js +633 -0
  198. package/dist/scripts/test/integration-test-validation.cjs +253 -0
  199. package/dist/scripts/test/load-test-swarm.js +576 -0
  200. package/dist/scripts/test/mesh-coordination-zero-overlap-test.js +740 -0
  201. package/dist/scripts/test/multilingual-hello-world-test.js +390 -0
  202. package/dist/scripts/test/quick-multilingual-demo.js +464 -0
  203. package/dist/scripts/test/real-agent-test.js +312 -0
  204. package/dist/scripts/test/run-phase3-compliance-tests.js +427 -0
  205. package/dist/scripts/test/run-stability-test-examples.sh +292 -0
  206. package/dist/scripts/test/stability-results/stability-metrics.jsonl +83 -0
  207. package/dist/scripts/test/stability-results/stability-test-report.json +128 -0
  208. package/dist/scripts/test/stability-results/stability-test.log +1827 -0
  209. package/dist/scripts/test/stability-test-50-agents.js +734 -0
  210. package/dist/scripts/test/test-batch-tasks.ts +29 -0
  211. package/dist/scripts/test/test-byzantine-resolution.js +246 -0
  212. package/dist/scripts/test/test-claude-spawn-options.sh +63 -0
  213. package/dist/scripts/test/test-cli-wizard.js +331 -0
  214. package/dist/scripts/test/test-comprehensive.js +401 -0
  215. package/dist/scripts/test/test-coordination-features.ts +238 -0
  216. package/dist/scripts/test/test-fallback-systems.js +276 -0
  217. package/dist/scripts/test/test-init-command.ts +302 -0
  218. package/dist/scripts/test/test-mcp.ts +251 -0
  219. package/dist/scripts/test/test-runner.ts +568 -0
  220. package/dist/scripts/test/test-swarm-integration.sh +92 -0
  221. package/dist/scripts/test/test-swarm.ts +142 -0
  222. package/dist/scripts/test/validation-summary.ts +408 -0
  223. package/dist/scripts/test-cleanup-performance.sh +416 -0
  224. package/dist/scripts/test-dashboard-auth.cjs +203 -0
  225. package/dist/scripts/test-docker-deployment.sh +207 -0
  226. package/dist/scripts/test-npm-package.cjs +167 -0
  227. package/dist/scripts/test-provider-routing.cjs +226 -0
  228. package/dist/scripts/test-routing-telemetry.cjs +147 -0
  229. package/dist/scripts/test-runner.cjs +154 -0
  230. package/dist/scripts/test-zai-10k.cjs +81 -0
  231. package/dist/scripts/test-zai-api.cjs +191 -0
  232. package/dist/scripts/test-zai-diagnostic.cjs +151 -0
  233. package/dist/scripts/test-zai-final.cjs +128 -0
  234. package/dist/scripts/test-zai-with-env.cjs +85 -0
  235. package/dist/scripts/toggle-cost-savings.cjs +302 -0
  236. package/dist/scripts/unified-memory-monitor.js +526 -0
  237. package/dist/scripts/utils/README.md +261 -0
  238. package/dist/scripts/utils/clean-build-artifacts.sh +94 -0
  239. package/dist/scripts/utils/cleanup-root.sh +69 -0
  240. package/dist/scripts/utils/fix-cliffy-imports.js +307 -0
  241. package/dist/scripts/utils/fix-duplicate-imports.js +114 -0
  242. package/dist/scripts/utils/fix-error-handling.cjs +70 -0
  243. package/dist/scripts/utils/fix-import-paths.js +104 -0
  244. package/dist/scripts/utils/fix-imports.js +116 -0
  245. package/dist/scripts/utils/fix-shebang.js +78 -0
  246. package/dist/scripts/utils/fix-test-modules.js +27 -0
  247. package/dist/scripts/utils/fix-timezone-issue-246.js +200 -0
  248. package/dist/scripts/utils/fix-ts-comprehensive.py +182 -0
  249. package/dist/scripts/utils/fix-ts-targeted-batch.js +250 -0
  250. package/dist/scripts/utils/remove-benchmark-conflicts.sh +140 -0
  251. package/dist/scripts/utils/simple-test-fixer.js +190 -0
  252. package/dist/scripts/utils/validate-metrics-structure.cjs +144 -0
  253. package/dist/scripts/validate-agent-hooks.js +506 -0
  254. package/dist/scripts/validate-changelog.js +241 -0
  255. package/dist/scripts/validate-coordination-cli.js +69 -0
  256. package/dist/scripts/validate-coordination-toggle-integration.cjs +501 -0
  257. package/dist/scripts/validate-docker-infrastructure.sh +502 -0
  258. package/dist/scripts/validate-entry-points.js +300 -0
  259. package/dist/scripts/validate-memory-monitoring.sh +225 -0
  260. package/dist/scripts/validate-stage3-performance.ts +377 -0
  261. package/dist/scripts/validate-template-bundling.js +180 -0
  262. package/dist/scripts/validation/README.md +33 -0
  263. package/dist/scripts/validation/acl-security-validation.cjs +214 -0
  264. package/dist/scripts/validation/acl-security-validation.js +402 -0
  265. package/dist/scripts/validation/byzantine-verification.js +407 -0
  266. package/dist/scripts/validation/final-phase-2-consensus.cjs +219 -0
  267. package/dist/scripts/validation/final-security-validation.js +791 -0
  268. package/dist/scripts/validation/final-wasm-validation.cjs +840 -0
  269. package/dist/scripts/validation/integration-test-analysis.js +105 -0
  270. package/dist/scripts/validation/phase-0-comprehensive-validation.js +474 -0
  271. package/dist/scripts/validation/phase-0-consensus-report.js +139 -0
  272. package/dist/scripts/validation/phase-0-final-report.js +112 -0
  273. package/dist/scripts/validation/phase-0-redis-consensus-report.js +129 -0
  274. package/dist/scripts/validation/phase-0-validation-improved.js +490 -0
  275. package/dist/scripts/validation/phase-0-validation-test.js +65 -0
  276. package/dist/scripts/validation/phase-1-consensus-report.cjs +342 -0
  277. package/dist/scripts/validation/phase-1-consensus-validation.cjs +551 -0
  278. package/dist/scripts/validation/phase-1-consensus-validation.js +551 -0
  279. package/dist/scripts/validation/phase-2-consensus-report.cjs +186 -0
  280. package/dist/scripts/validation/phase-2-validation.cjs +171 -0
  281. package/dist/scripts/validation/phase-2-validation.js +171 -0
  282. package/dist/scripts/validation/phase-4-consensus-report.js +181 -0
  283. package/dist/scripts/validation/phase-4-final-validation.js +351 -0
  284. package/dist/scripts/validation/phase-5-consensus-report.cjs +113 -0
  285. package/dist/scripts/validation/phase-5-consensus-report.js +113 -0
  286. package/dist/scripts/validation/security-analysis.js +49 -0
  287. package/dist/scripts/validation/security-validation.js +492 -0
  288. package/dist/scripts/validation/simple-security-validation.js +464 -0
  289. package/dist/scripts/verify-installation.js +112 -0
  290. package/dist/scripts/verify-mcp-server.js +86 -0
  291. package/dist/scripts/verify-sdk-phase1.cjs +293 -0
  292. package/dist/src/booster/performance-benchmark.js +1 -1
  293. package/dist/src/booster/wasm-demo.js +1 -1
  294. package/dist/src/cli/command-registry.js +2 -2
  295. package/dist/src/cli/help-formatter.js +109 -137
  296. package/dist/src/cli/main.js +32 -1
  297. package/dist/src/cli/simple-cli.js +2121 -2528
  298. package/dist/src/cli/simple-commands/sparc/refinement.js +3 -3
  299. package/dist/src/cli/validation-helper.js +49 -98
  300. package/dist/src/commands/suggest-templates.js +4 -4
  301. package/dist/src/core/version.js +15 -23
  302. package/dist/src/memory/swarm-memory.js +470 -603
  303. package/dist/src/slash-commands/fullstack.js +2 -2
  304. package/dist/src/slash-commands/parse-epic.js +1 -1
  305. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/prefer-template.js +275 -0
  306. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/quote-props.js +310 -0
  307. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/quotes.js +350 -0
  308. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/radix.js +198 -0
  309. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/require-atomic-updates.js +331 -0
  310. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/require-await.js +113 -0
  311. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/require-jsdoc.js +122 -0
  312. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/require-unicode-regexp.js +129 -0
  313. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/require-yield.js +77 -0
  314. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/rest-spread-spacing.js +123 -0
  315. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/semi-spacing.js +248 -0
  316. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/semi-style.js +158 -0
  317. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/semi.js +438 -0
  318. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/sort-imports.js +241 -0
  319. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/sort-keys.js +230 -0
  320. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/sort-vars.js +104 -0
  321. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/space-before-blocks.js +204 -0
  322. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/space-before-function-paren.js +167 -0
  323. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/space-in-parens.js +285 -0
  324. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/space-infix-ops.js +198 -0
  325. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/space-unary-ops.js +324 -0
  326. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/spaced-comment.js +385 -0
  327. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/strict.js +277 -0
  328. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/switch-colon-spacing.js +132 -0
  329. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/symbol-description.js +73 -0
  330. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/template-curly-spacing.js +144 -0
  331. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/template-tag-spacing.js +93 -0
  332. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/unicode-bom.js +73 -0
  333. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/use-isnan.js +141 -0
  334. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/utils/ast-utils.js +2282 -0
  335. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/utils/fix-tracker.js +114 -0
  336. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/utils/keywords.js +67 -0
  337. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/utils/lazy-loading-rule-map.js +115 -0
  338. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/utils/patterns/letters.js +36 -0
  339. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/utils/regular-expressions.js +42 -0
  340. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/utils/unicode/index.js +11 -0
  341. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/utils/unicode/is-combining-character.js +13 -0
  342. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/utils/unicode/is-emoji-modifier.js +13 -0
  343. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/utils/unicode/is-regional-indicator-symbol.js +13 -0
  344. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/utils/unicode/is-surrogate-pair.js +14 -0
  345. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/valid-jsdoc.js +516 -0
  346. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/valid-typeof.js +127 -0
  347. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/vars-on-top.js +157 -0
  348. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/wrap-iife.js +207 -0
  349. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/wrap-regex.js +61 -0
  350. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/yield-star-spacing.js +130 -0
  351. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/rules/yoda.js +353 -0
  352. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/shared/ajv.js +34 -0
  353. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/shared/ast-utils.js +29 -0
  354. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/shared/config-validator.js +347 -0
  355. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/shared/deprecation-warnings.js +58 -0
  356. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/shared/directives.js +15 -0
  357. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/shared/logging.js +30 -0
  358. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/shared/relative-module-resolver.js +50 -0
  359. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/shared/runtime-info.js +167 -0
  360. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/shared/severity.js +49 -0
  361. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/shared/string-utils.js +60 -0
  362. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/shared/traverser.js +195 -0
  363. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/shared/types.js +216 -0
  364. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/source-code/index.js +5 -0
  365. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/source-code/source-code.js +1055 -0
  366. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/source-code/token-store/backward-token-comment-cursor.js +57 -0
  367. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/source-code/token-store/backward-token-cursor.js +58 -0
  368. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/source-code/token-store/cursor.js +76 -0
  369. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/source-code/token-store/cursors.js +90 -0
  370. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/source-code/token-store/decorative-cursor.js +39 -0
  371. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/source-code/token-store/filter-cursor.js +43 -0
  372. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/source-code/token-store/forward-token-comment-cursor.js +57 -0
  373. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/source-code/token-store/forward-token-cursor.js +63 -0
  374. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/source-code/token-store/index.js +627 -0
  375. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/source-code/token-store/limit-cursor.js +40 -0
  376. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/source-code/token-store/padded-token-cursor.js +38 -0
  377. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/source-code/token-store/skip-cursor.js +42 -0
  378. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/source-code/token-store/utils.js +107 -0
  379. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/lib/unsupported-api.js +30 -0
  380. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/messages/all-files-ignored.js +16 -0
  381. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/messages/eslintrc-incompat.js +98 -0
  382. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/messages/eslintrc-plugins.js +24 -0
  383. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/messages/extend-config-missing.js +13 -0
  384. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/messages/failed-to-read-json.js +11 -0
  385. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/messages/file-not-found.js +10 -0
  386. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/messages/invalid-rule-options.js +17 -0
  387. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/messages/invalid-rule-severity.js +13 -0
  388. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/messages/no-config-found.js +15 -0
  389. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/messages/plugin-conflict.js +22 -0
  390. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/messages/plugin-invalid.js +16 -0
  391. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/messages/plugin-missing.js +19 -0
  392. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/messages/print-config-with-directory-path.js +8 -0
  393. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/messages/shared.js +18 -0
  394. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/messages/whitespace-found.js +11 -0
  395. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/node_modules/brace-expansion/index.js +201 -0
  396. package/dist/src/web/frontend/node_modules/.eslint-60wj8XRy/node_modules/minimatch/minimatch.js +947 -0
  397. package/dist/src/web/frontend/node_modules/.esprima-9BICs9SA/bin/esparse.js +139 -0
  398. package/dist/src/web/frontend/node_modules/.esprima-9BICs9SA/bin/esvalidate.js +236 -0
  399. package/dist/src/web/frontend/node_modules/.esprima-9BICs9SA/dist/esprima.js +6709 -0
  400. package/dist/src/web/frontend/node_modules/.he-WANrIpvs/he.js +345 -0
  401. package/dist/src/web/frontend/node_modules/.html-minifier-terser-wLUyC5Ws/cli.js +315 -0
  402. package/dist/src/web/frontend/node_modules/.html-minifier-terser-wLUyC5Ws/node_modules/commander/index.js +27 -0
  403. package/dist/src/web/frontend/node_modules/.html-minifier-terser-wLUyC5Ws/node_modules/commander/lib/argument.js +147 -0
  404. package/dist/src/web/frontend/node_modules/.html-minifier-terser-wLUyC5Ws/node_modules/commander/lib/command.js +1944 -0
  405. package/dist/src/web/frontend/node_modules/.html-minifier-terser-wLUyC5Ws/node_modules/commander/lib/error.js +45 -0
  406. package/dist/src/web/frontend/node_modules/.html-minifier-terser-wLUyC5Ws/node_modules/commander/lib/help.js +396 -0
  407. package/dist/src/web/frontend/node_modules/.html-minifier-terser-wLUyC5Ws/node_modules/commander/lib/option.js +208 -0
  408. package/dist/src/web/frontend/node_modules/.html-minifier-terser-wLUyC5Ws/node_modules/commander/lib/suggestSimilar.js +100 -0
  409. package/dist/src/web/frontend/node_modules/.html-minifier-terser-wLUyC5Ws/src/htmlminifier.js +1368 -0
  410. package/dist/src/web/frontend/node_modules/.html-minifier-terser-wLUyC5Ws/src/htmlparser.js +581 -0
  411. package/dist/src/web/frontend/node_modules/.html-minifier-terser-wLUyC5Ws/src/tokenchain.js +71 -0
  412. package/dist/src/web/frontend/node_modules/.html-minifier-terser-wLUyC5Ws/src/utils.js +31 -0
  413. package/dist/src/web/frontend/node_modules/.husky-CmW1OijX/lib/bin.js +30 -0
  414. package/dist/src/web/frontend/node_modules/.husky-CmW1OijX/lib/index.js +67 -0
  415. package/dist/src/web/frontend/node_modules/.import-local-oKL6wyV0/fixtures/cli.js +7 -0
  416. package/dist/src/web/frontend/node_modules/.import-local-oKL6wyV0/index.js +24 -0
  417. package/dist/src/web/frontend/node_modules/.is-docker-Mti2VF6G/cli.js +5 -0
  418. package/dist/src/web/frontend/node_modules/.is-docker-Mti2VF6G/index.js +29 -0
  419. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/bin/cli.js +31 -0
  420. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/jakefile.js +112 -0
  421. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/lib/api.js +409 -0
  422. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/lib/jake.js +330 -0
  423. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/lib/loader.js +174 -0
  424. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/lib/namespace.js +115 -0
  425. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/lib/package_task.js +406 -0
  426. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/lib/parseargs.js +134 -0
  427. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/lib/program.js +282 -0
  428. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/lib/publish_task.js +290 -0
  429. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/lib/rule.js +311 -0
  430. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/lib/task/directory_task.js +30 -0
  431. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/lib/task/file_task.js +126 -0
  432. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/lib/task/index.js +9 -0
  433. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/lib/task/task.js +458 -0
  434. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/lib/test_task.js +270 -0
  435. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/lib/utils/file.js +286 -0
  436. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/lib/utils/index.js +297 -0
  437. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/lib/utils/logger.js +24 -0
  438. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/test/integration/concurrent.js +45 -0
  439. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/test/integration/file.js +228 -0
  440. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/test/integration/file_task.js +141 -0
  441. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/test/integration/helpers.js +80 -0
  442. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/test/integration/jakefile.js +352 -0
  443. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/test/integration/jakelib/concurrent.jake.js +113 -0
  444. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/test/integration/jakelib/publish.jake.js +49 -0
  445. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/test/integration/jakelib/required_module.jake.js +10 -0
  446. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/test/integration/jakelib/rule.jake.js +222 -0
  447. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/test/integration/list_tasks.js +15 -0
  448. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/test/integration/publish_task.js +27 -0
  449. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/test/integration/rule.js +217 -0
  450. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/test/integration/selfdep.js +42 -0
  451. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/test/integration/task_base.js +167 -0
  452. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/test/unit/jakefile.js +36 -0
  453. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/test/unit/namespace.js +77 -0
  454. package/dist/src/web/frontend/node_modules/.jake-DrySVVt4/test/unit/parseargs.js +169 -0
  455. package/dist/src/web/frontend/node_modules/.jest-7ip6NMuN/bin/jest.js +13 -0
  456. package/dist/src/web/frontend/node_modules/.jest-7ip6NMuN/build/jest.js +61 -0
  457. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/bin/jest.js +17 -0
  458. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/build/cli/args.js +710 -0
  459. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/build/cli/index.js +265 -0
  460. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/build/index.js +13 -0
  461. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/build/init/errors.js +35 -0
  462. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/build/init/generateConfigFile.js +104 -0
  463. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/build/init/index.js +246 -0
  464. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/build/init/modifyPackageJson.js +28 -0
  465. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/build/init/questions.js +76 -0
  466. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/build/init/types.js +1 -0
  467. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/@jest/types/build/Circus.js +1 -0
  468. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/@jest/types/build/Config.js +1 -0
  469. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/@jest/types/build/Global.js +1 -0
  470. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/@jest/types/build/TestResult.js +1 -0
  471. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/@jest/types/build/Transform.js +1 -0
  472. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/@jest/types/build/index.js +1 -0
  473. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/cliui/build/lib/index.js +287 -0
  474. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/cliui/build/lib/string-utils.js +27 -0
  475. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/emoji-regex/es2015/index.js +6 -0
  476. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/emoji-regex/es2015/text.js +6 -0
  477. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/emoji-regex/index.js +6 -0
  478. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/emoji-regex/text.js +6 -0
  479. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/is-fullwidth-code-point/index.js +50 -0
  480. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/ErrorWithStack.js +33 -0
  481. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/clearLine.js +18 -0
  482. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/convertDescriptorToString.js +41 -0
  483. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/createDirectory.js +76 -0
  484. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/createProcessObject.js +126 -0
  485. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/deepCyclicCopy.js +84 -0
  486. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/formatTime.js +24 -0
  487. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/globsToMatcher.js +108 -0
  488. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/index.js +209 -0
  489. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/installCommonGlobals.js +123 -0
  490. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/interopRequireDefault.js +22 -0
  491. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/isInteractive.js +27 -0
  492. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/isPromise.js +20 -0
  493. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/pluralize.js +16 -0
  494. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/preRunMessage.js +48 -0
  495. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/replacePathSepForGlob.js +16 -0
  496. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/requireOrImportModule.js +91 -0
  497. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/setGlobal.js +17 -0
  498. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/specialChars.js +25 -0
  499. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/testPathPatternToRegExp.js +19 -0
  500. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/jest-util/build/tryRealpath.js +34 -0
  501. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/string-width/index.js +47 -0
  502. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/wrap-ansi/index.js +216 -0
  503. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/build/lib/argsert.js +62 -0
  504. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/build/lib/command.js +382 -0
  505. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/build/lib/completion-templates.js +47 -0
  506. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/build/lib/completion.js +128 -0
  507. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/build/lib/middleware.js +53 -0
  508. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/build/lib/parse-command.js +32 -0
  509. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/build/lib/typings/common-types.js +9 -0
  510. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/build/lib/typings/yargs-parser-types.js +1 -0
  511. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/build/lib/usage.js +548 -0
  512. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/build/lib/utils/apply-extends.js +59 -0
  513. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/build/lib/utils/is-promise.js +5 -0
  514. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/build/lib/utils/levenshtein.js +26 -0
  515. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/build/lib/utils/obj-filter.js +10 -0
  516. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/build/lib/utils/process-argv.js +17 -0
  517. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/build/lib/utils/set-blocking.js +12 -0
  518. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/build/lib/utils/which-module.js +10 -0
  519. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/build/lib/validation.js +308 -0
  520. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/build/lib/yargs-factory.js +1143 -0
  521. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/build/lib/yerror.js +7 -0
  522. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs/helpers/index.js +14 -0
  523. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs-parser/browser.js +29 -0
  524. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs-parser/build/lib/index.js +59 -0
  525. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs-parser/build/lib/string-utils.js +65 -0
  526. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +40 -0
  527. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs-parser/build/lib/yargs-parser-types.js +12 -0
  528. package/dist/src/web/frontend/node_modules/.jest-cli-gTwVZcyg/node_modules/yargs-parser/build/lib/yargs-parser.js +1037 -0
  529. package/dist/src/web/frontend/node_modules/.jiti-pB4fYkW6/bin/jiti.js +16 -0
  530. package/dist/src/web/frontend/node_modules/.jiti-pB4fYkW6/dist/babel.js +227 -0
  531. package/dist/src/web/frontend/node_modules/.jiti-pB4fYkW6/dist/jiti.js +1 -0
  532. package/dist/src/web/frontend/node_modules/.jiti-pB4fYkW6/lib/index.js +15 -0
  533. package/dist/src/web/frontend/node_modules/.jiti-pB4fYkW6/register.js +3 -0
  534. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/bin/js-yaml.js +126 -0
  535. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/dist/js-yaml.js +3874 -0
  536. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/dist/js-yaml.min.js +2 -0
  537. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/index.js +47 -0
  538. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/common.js +59 -0
  539. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/dumper.js +965 -0
  540. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/exception.js +55 -0
  541. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/loader.js +1727 -0
  542. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/schema/core.js +11 -0
  543. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/schema/default.js +22 -0
  544. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/schema/failsafe.js +17 -0
  545. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/schema/json.js +19 -0
  546. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/schema.js +121 -0
  547. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/snippet.js +101 -0
  548. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/type/binary.js +125 -0
  549. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/type/bool.js +35 -0
  550. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/type/float.js +97 -0
  551. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/type/int.js +156 -0
  552. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/type/map.js +8 -0
  553. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/type/merge.js +12 -0
  554. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/type/null.js +35 -0
  555. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/type/omap.js +44 -0
  556. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/type/pairs.js +53 -0
  557. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/type/seq.js +8 -0
  558. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/type/set.js +29 -0
  559. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/type/str.js +8 -0
  560. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/type/timestamp.js +88 -0
  561. package/dist/src/web/frontend/node_modules/.js-yaml-jm5u3nWn/lib/type.js +66 -0
  562. package/dist/src/web/frontend/node_modules/.jsesc-HO7WBVtD/jsesc.js +337 -0
  563. package/dist/src/web/frontend/node_modules/.json5-StjxnzqI/dist/index.js +1737 -0
  564. package/dist/src/web/frontend/node_modules/.json5-StjxnzqI/dist/index.min.js +1 -0
  565. package/dist/src/web/frontend/node_modules/.json5-StjxnzqI/lib/cli.js +152 -0
  566. package/dist/src/web/frontend/node_modules/.json5-StjxnzqI/lib/index.js +9 -0
  567. package/dist/src/web/frontend/node_modules/.json5-StjxnzqI/lib/parse.js +1114 -0
  568. package/dist/src/web/frontend/node_modules/.json5-StjxnzqI/lib/register.js +13 -0
  569. package/dist/src/web/frontend/node_modules/.json5-StjxnzqI/lib/require.js +4 -0
  570. package/dist/src/web/frontend/node_modules/.json5-StjxnzqI/lib/stringify.js +261 -0
  571. package/dist/src/web/frontend/node_modules/.json5-StjxnzqI/lib/unicode.js +4 -0
  572. package/dist/src/web/frontend/node_modules/.json5-StjxnzqI/lib/util.js +35 -0
  573. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/bin/lint-staged.js +164 -0
  574. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/chunkFiles.js +54 -0
  575. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/configFiles.js +30 -0
  576. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/dynamicImport.js +3 -0
  577. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/execGit.js +28 -0
  578. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/figures.js +8 -0
  579. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/file.js +53 -0
  580. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/generateTasks.js +52 -0
  581. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/getDiffCommand.js +19 -0
  582. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/getRenderer.js +64 -0
  583. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/getStagedFiles.js +56 -0
  584. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/gitWorkflow.js +359 -0
  585. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/groupFilesByConfig.js +55 -0
  586. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/index.js +160 -0
  587. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/loadConfig.js +127 -0
  588. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/makeCmdTasks.js +52 -0
  589. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/messages.js +98 -0
  590. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/normalizePath.js +50 -0
  591. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/parseGitZOutput.js +11 -0
  592. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/printTaskOutput.js +12 -0
  593. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/readStdin.js +19 -0
  594. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/resolveConfig.js +15 -0
  595. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/resolveGitRepo.js +66 -0
  596. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/resolveTaskFn.js +185 -0
  597. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/runAll.js +344 -0
  598. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/searchConfigs.js +131 -0
  599. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/state.js +72 -0
  600. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/symbols.js +27 -0
  601. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/validateBraces.js +91 -0
  602. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/validateConfig.js +121 -0
  603. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/validateOptions.js +47 -0
  604. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/lib/version.js +6 -0
  605. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/chalk/source/index.js +225 -0
  606. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/chalk/source/utilities.js +33 -0
  607. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
  608. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
  609. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/chalk/source/vendor/supports-color/index.js +190 -0
  610. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
  611. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
  612. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/compose/compose-node.js +102 -0
  613. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
  614. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/compose/composer.js +217 -0
  615. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
  616. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
  617. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
  618. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
  619. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
  620. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +223 -0
  621. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
  622. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
  623. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
  624. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
  625. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
  626. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/doc/Document.js +335 -0
  627. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
  628. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
  629. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
  630. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/doc/directives.js +176 -0
  631. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/errors.js +57 -0
  632. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/index.js +17 -0
  633. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/log.js +11 -0
  634. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/nodes/Alias.js +114 -0
  635. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
  636. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
  637. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
  638. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
  639. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
  640. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
  641. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
  642. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
  643. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
  644. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
  645. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
  646. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
  647. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/parse/cst.js +98 -0
  648. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/parse/lexer.js +717 -0
  649. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
  650. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/parse/parser.js +967 -0
  651. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/public-api.js +102 -0
  652. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
  653. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
  654. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
  655. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
  656. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
  657. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
  658. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
  659. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
  660. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
  661. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
  662. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/tags.js +96 -0
  663. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
  664. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
  665. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
  666. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
  667. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +64 -0
  668. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
  669. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
  670. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
  671. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
  672. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
  673. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
  674. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/stringify/stringify.js +128 -0
  675. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +143 -0
  676. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
  677. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
  678. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +24 -0
  679. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
  680. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
  681. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/util.js +11 -0
  682. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/dist/visit.js +233 -0
  683. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/browser/index.js +5 -0
  684. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/compose/compose-collection.js +90 -0
  685. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/compose/compose-doc.js +45 -0
  686. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/compose/compose-node.js +105 -0
  687. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
  688. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/compose/composer.js +222 -0
  689. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
  690. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
  691. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
  692. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/compose/resolve-end.js +39 -0
  693. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
  694. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/compose/resolve-flow-scalar.js +225 -0
  695. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/compose/resolve-props.js +148 -0
  696. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
  697. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
  698. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
  699. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
  700. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/doc/Document.js +337 -0
  701. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/doc/anchors.js +76 -0
  702. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/doc/applyReviver.js +57 -0
  703. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/doc/createNode.js +90 -0
  704. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/doc/directives.js +178 -0
  705. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/errors.js +62 -0
  706. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/index.js +50 -0
  707. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/log.js +19 -0
  708. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/nodes/Alias.js +116 -0
  709. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/nodes/Collection.js +151 -0
  710. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/nodes/Node.js +40 -0
  711. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/nodes/Pair.js +39 -0
  712. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/nodes/Scalar.js +27 -0
  713. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
  714. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
  715. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
  716. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/nodes/identity.js +53 -0
  717. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/nodes/toJS.js +39 -0
  718. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
  719. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
  720. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/parse/cst-visit.js +99 -0
  721. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/parse/cst.js +112 -0
  722. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/parse/lexer.js +719 -0
  723. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/parse/line-counter.js +41 -0
  724. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/parse/parser.js +972 -0
  725. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/public-api.js +107 -0
  726. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/Schema.js +39 -0
  727. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/common/map.js +19 -0
  728. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/common/null.js +17 -0
  729. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/common/seq.js +19 -0
  730. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/common/string.js +16 -0
  731. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/core/bool.js +21 -0
  732. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/core/float.js +47 -0
  733. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/core/int.js +42 -0
  734. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/core/schema.js +25 -0
  735. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/json/schema.js +64 -0
  736. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/tags.js +99 -0
  737. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
  738. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
  739. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
  740. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
  741. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/yaml-1.1/merge.js +68 -0
  742. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
  743. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
  744. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
  745. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
  746. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
  747. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
  748. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/stringify/stringify.js +131 -0
  749. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/stringify/stringifyCollection.js +145 -0
  750. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
  751. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
  752. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/stringify/stringifyNumber.js +26 -0
  753. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
  754. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
  755. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/test-events.js +134 -0
  756. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/util.js +28 -0
  757. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/dist/visit.js +236 -0
  758. package/dist/src/web/frontend/node_modules/.lint-staged-PLgU0Zyn/node_modules/yaml/util.js +2 -0
  759. package/dist/src/web/frontend/node_modules/.loose-envify-xQmkUywD/cli.js +16 -0
  760. package/dist/src/web/frontend/node_modules/.loose-envify-xQmkUywD/custom.js +4 -0
  761. package/dist/src/web/frontend/node_modules/.loose-envify-xQmkUywD/index.js +3 -0
  762. package/dist/src/web/frontend/node_modules/.loose-envify-xQmkUywD/loose-envify.js +36 -0
  763. package/dist/src/web/frontend/node_modules/.loose-envify-xQmkUywD/replace.js +65 -0
  764. package/dist/src/web/frontend/node_modules/.lz-string-IeqH9YhA/bin/bin.js +13 -0
  765. package/dist/src/web/frontend/node_modules/.lz-string-IeqH9YhA/libs/base64-string.js +285 -0
  766. package/dist/src/web/frontend/node_modules/.lz-string-IeqH9YhA/libs/lz-string.js +506 -0
  767. package/dist/src/web/frontend/node_modules/.lz-string-IeqH9YhA/libs/lz-string.min.js +1 -0
  768. package/dist/src/web/frontend/node_modules/.lz-string-IeqH9YhA/reference/lz-string-1.0.2.js +204 -0
  769. package/dist/src/web/frontend/node_modules/.lz-string-IeqH9YhA/tests/lib/jasmine-1.3.1/jasmine-html.js +681 -0
  770. package/dist/src/web/frontend/node_modules/.lz-string-IeqH9YhA/tests/lib/jasmine-1.3.1/jasmine.js +2600 -0
  771. package/dist/src/web/frontend/node_modules/.lz-string-IeqH9YhA/tests/lz-string-spec.js +226 -0
  772. package/dist/src/web/frontend/node_modules/.mime-jO6Gv7S9/cli.js +8 -0
  773. package/dist/src/web/frontend/node_modules/.mime-jO6Gv7S9/mime.js +108 -0
  774. package/dist/src/web/frontend/node_modules/.mime-jO6Gv7S9/src/build.js +53 -0
  775. package/dist/src/web/frontend/node_modules/.mime-jO6Gv7S9/src/test.js +60 -0
  776. package/dist/src/web/frontend/node_modules/.mkdirp-idfX6Cn8/bin/cmd.js +33 -0
  777. package/dist/src/web/frontend/node_modules/.mkdirp-idfX6Cn8/index.js +102 -0
  778. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/basic-languages/abap/abap.js +1342 -0
  779. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/basic-languages/apex/apex.js +347 -0
  780. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/basic-languages/azcli/azcli.js +102 -0
  781. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/basic-languages/bat/bat.js +123 -0
  782. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/basic-languages/bicep/bicep.js +143 -0
  783. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/basic-languages/cameligo/cameligo.js +196 -0
  784. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/basic-languages/clojure/clojure.js +782 -0
  785. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/basic-languages/coffee/coffee.js +256 -0
  786. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/basic-languages/cpp/cpp.js +418 -0
  787. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/basic-languages/csharp/csharp.js +348 -0
  788. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/basic-languages/csp/csp.js +85 -0
  789. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/basic-languages/css/css.js +212 -0
  790. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/basic-languages/cypher/cypher.js +290 -0
  791. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/basic-languages/dart/dart.js +298 -0
  792. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/basic-languages/dockerfile/dockerfile.js +160 -0
  793. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/basic-languages/ecl/ecl.js +482 -0
  794. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/basic-languages/elixir/elixir.js +517 -0
  795. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/basic-languages/flow9/flow9.js +169 -0
  796. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/editor/editor.main.js +175099 -0
  797. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/editor/editor.main.nls.de.js +2023 -0
  798. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/editor/editor.main.nls.es.js +2023 -0
  799. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/editor/editor.main.nls.fr.js +2023 -0
  800. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/editor/editor.main.nls.it.js +2023 -0
  801. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/editor/editor.main.nls.ja.js +2023 -0
  802. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/editor/editor.main.nls.js +2026 -0
  803. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/editor/editor.main.nls.ko.js +2023 -0
  804. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/editor/editor.main.nls.ru.js +2023 -0
  805. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/editor/editor.main.nls.zh-cn.js +2023 -0
  806. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/editor/editor.main.nls.zh-tw.js +2023 -0
  807. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/language/css/cssMode.js +2069 -0
  808. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/dev/vs/language/css/cssWorker.js +36893 -0
  809. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/browser.js +132 -0
  810. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/canIUse.js +32 -0
  811. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/contextmenu.js +5 -0
  812. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/defaultWorkerFactory.js +128 -0
  813. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/dnd.js +26 -0
  814. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/dom.js +1405 -0
  815. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/dompurify/dompurify.js +1640 -0
  816. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/event.js +20 -0
  817. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/fastDomNode.js +250 -0
  818. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/formattedTextRenderer.js +167 -0
  819. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/ui/actionbar/actionViewItems.js +372 -0
  820. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/ui/actionbar/actionbar.js +421 -0
  821. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/ui/aria/aria.js +81 -0
  822. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.js +1 -0
  823. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/ui/button/button.js +190 -0
  824. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/ui/codicons/codiconStyles.js +6 -0
  825. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/ui/contextview/contextview.js +299 -0
  826. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/ui/countBadge/countBadge.js +36 -0
  827. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/ui/dialog/dialog.js +1 -0
  828. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/ui/dropdown/dropdown.js +139 -0
  829. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +106 -0
  830. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/ui/findinput/findInput.js +295 -0
  831. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/ui/findinput/findInputToggles.js +46 -0
  832. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/ui/scrollbar/abstractScrollbar.js +207 -0
  833. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/ui/tree/abstractTree.js +1644 -0
  834. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/ui/tree/asyncDataTree.js +845 -0
  835. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/ui/tree/compressedObjectTreeModel.js +365 -0
  836. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/browser/ui/tree/dataTree.js +17 -0
  837. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/actions.js +175 -0
  838. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/arrays.js +470 -0
  839. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/arraysFind.js +175 -0
  840. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/assert.js +51 -0
  841. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/async.js +832 -0
  842. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/buffer.js +68 -0
  843. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/cache.js +40 -0
  844. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/cancellation.js +109 -0
  845. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/charCode.js +5 -0
  846. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/codicons.js +591 -0
  847. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/collections.js +35 -0
  848. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/color.js +462 -0
  849. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/comparers.js +83 -0
  850. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/dataTransfer.js +129 -0
  851. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/decorators.js +30 -0
  852. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/diff/diff.js +899 -0
  853. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/diff/diffChange.js +32 -0
  854. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/errorMessage.js +68 -0
  855. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/errors.js +150 -0
  856. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/event.js +1185 -0
  857. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/extpath.js +144 -0
  858. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/filters.js +768 -0
  859. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/observableInternal/autorun.js +185 -0
  860. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/observableInternal/base.js +326 -0
  861. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/base/common/observableInternal/derived.js +276 -0
  862. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/_.contribution.js +82 -0
  863. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/abap/abap.contribution.js +23 -0
  864. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/abap/abap.js +1317 -0
  865. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/apex/apex.contribution.js +24 -0
  866. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/apex/apex.js +322 -0
  867. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/azcli/azcli.contribution.js +23 -0
  868. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/azcli/azcli.js +77 -0
  869. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/bat/bat.contribution.js +23 -0
  870. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/bat/bat.js +98 -0
  871. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/bicep/bicep.contribution.js +23 -0
  872. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/bicep/bicep.js +118 -0
  873. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/cameligo/cameligo.contribution.js +23 -0
  874. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/cameligo/cameligo.js +171 -0
  875. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/clojure/clojure.contribution.js +23 -0
  876. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/clojure/clojure.js +757 -0
  877. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/coffee/coffee.contribution.js +24 -0
  878. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/coffee/coffee.js +231 -0
  879. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/cpp/cpp.contribution.js +37 -0
  880. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/cpp/cpp.js +393 -0
  881. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/csharp/csharp.contribution.js +23 -0
  882. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/csharp/csharp.js +323 -0
  883. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/csp/csp.contribution.js +23 -0
  884. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/csp/csp.js +60 -0
  885. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/css/css.contribution.js +24 -0
  886. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/css/css.js +187 -0
  887. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/cypher/cypher.contribution.js +23 -0
  888. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/cypher/cypher.js +265 -0
  889. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/dart/dart.contribution.js +24 -0
  890. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/dart/dart.js +273 -0
  891. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/dockerfile/dockerfile.contribution.js +24 -0
  892. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/dockerfile/dockerfile.js +135 -0
  893. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/ecl/ecl.contribution.js +23 -0
  894. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/ecl/ecl.js +457 -0
  895. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/elixir/elixir.contribution.js +23 -0
  896. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/elixir/elixir.js +492 -0
  897. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/flow9/flow9.contribution.js +23 -0
  898. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/flow9/flow9.js +144 -0
  899. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/basic-languages/freemarker2/freemarker2.contribution.js +101 -0
  900. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/config/charWidthReader.js +102 -0
  901. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/config/domFontInfo.js +25 -0
  902. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/config/editorConfiguration.js +280 -0
  903. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/config/elementSizeObserver.js +99 -0
  904. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/config/fontMeasurements.js +191 -0
  905. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/coreCommands.js +1727 -0
  906. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/dnd.js +76 -0
  907. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/editorBrowser.js +50 -0
  908. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/editorDom.js +282 -0
  909. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/editorExtensions.js +461 -0
  910. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/services/abstractCodeEditorService.js +127 -0
  911. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/services/bulkEditService.js +73 -0
  912. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/services/codeEditorService.js +6 -0
  913. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/services/editorWorkerService.js +454 -0
  914. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/view/domLineBreaksComputer.js +299 -0
  915. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/view/dynamicViewOverlay.js +7 -0
  916. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/viewParts/blockDecorations/blockDecorations.js +95 -0
  917. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +462 -0
  918. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +176 -0
  919. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/viewParts/decorations/decorations.js +200 -0
  920. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +142 -0
  921. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/viewParts/lines/domReadingContext.js +41 -0
  922. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js +396 -0
  923. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/widget/codeEditorContributions.js +130 -0
  924. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/widget/codeEditorWidget.js +1734 -0
  925. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/widget/diffEditor/accessibleDiffViewer.js +531 -0
  926. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/widget/diffEditor/colors.js +9 -0
  927. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/widget/diffEditor/decorations.js +65 -0
  928. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/widget/diffEditor/delegatingEditorImpl.js +108 -0
  929. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +274 -0
  930. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/widget/diffEditor/diffEditorDecorations.js +225 -0
  931. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/widget/diffEditor/diffEditorEditors.js +164 -0
  932. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +91 -0
  933. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/widget/diffEditor/diffEditorSash.js +69 -0
  934. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +522 -0
  935. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +493 -0
  936. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +30 -0
  937. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/widget/embeddedCodeEditorWidget.js +57 -0
  938. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/widget/multiDiffEditorWidget/colors.js +7 -0
  939. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/browser/widget/multiDiffEditorWidget/diffEditorItemTemplate.js +213 -0
  940. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/config/diffEditor.js +34 -0
  941. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/config/editorConfiguration.js +5 -0
  942. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/config/editorConfigurationSchema.js +284 -0
  943. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/config/editorOptions.js +2999 -0
  944. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/config/editorZoom.js +23 -0
  945. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/config/fontInfo.js +153 -0
  946. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/core/characterClassifier.js +56 -0
  947. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/core/cursorColumns.js +109 -0
  948. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/core/dimension.js +5 -0
  949. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/core/editOperation.js +33 -0
  950. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/core/editorColorRegistry.js +85 -0
  951. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/core/eolCounter.js +42 -0
  952. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/cursor/cursor.js +877 -0
  953. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/cursor/cursorAtomicMoveOperations.js +142 -0
  954. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/cursor/cursorCollection.js +191 -0
  955. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/cursor/cursorColumnSelection.js +90 -0
  956. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/cursor/cursorContext.js +13 -0
  957. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/cursor/cursorDeleteOperations.js +215 -0
  958. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/cursor/cursorMoveCommands.js +651 -0
  959. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/cursor/cursorMoveOperations.js +287 -0
  960. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/cursor/cursorTypeOperations.js +973 -0
  961. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/cursor/cursorWordOperations.js +686 -0
  962. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/cursorCommon.js +239 -0
  963. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/cursorEvents.js +5 -0
  964. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js +118 -0
  965. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.js +98 -0
  966. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.js +246 -0
  967. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +220 -0
  968. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/diff/documentDiffProvider.js +5 -0
  969. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/editorAction.js +24 -0
  970. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/editorCommon.js +11 -0
  971. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/editorContextKeys.js +76 -0
  972. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/editorFeatures.js +15 -0
  973. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/editorTheme.js +21 -0
  974. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/encodedTokenAttributes.js +77 -0
  975. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/languages/autoIndent.js +374 -0
  976. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/languages/defaultDocumentColorsComputer.js +135 -0
  977. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/languages/enterAction.js +63 -0
  978. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/languages/supports/characterPair.js +37 -0
  979. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/languages/supports/electricCharacter.js +52 -0
  980. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.js +724 -0
  981. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/ast.js +482 -0
  982. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/beforeEditPositionMapper.js +107 -0
  983. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/bracketPairsTree.js +343 -0
  984. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/brackets.js +105 -0
  985. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/combineTextEditInfos.js +121 -0
  986. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/concat23Trees.js +189 -0
  987. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/model/bracketPairsTextModelPart/colorizedBracketPairsDecorationProvider.js +94 -0
  988. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/model/bracketPairsTextModelPart/fixBrackets.js +66 -0
  989. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/model/decorationProvider.js +1 -0
  990. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/model/editStack.js +359 -0
  991. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/model/fixedArray.js +67 -0
  992. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/services/editorBaseApi.js +40 -0
  993. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/services/editorSimpleWorker.js +523 -0
  994. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/services/editorWorker.js +6 -0
  995. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/services/editorWorkerHost.js +5 -0
  996. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/tokens/contiguousMultilineTokens.js +30 -0
  997. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/tokens/contiguousMultilineTokensBuilder.js +20 -0
  998. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/tokens/contiguousTokensEditing.js +125 -0
  999. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/common/tokens/contiguousTokensStore.js +204 -0
  1000. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +164 -0
  1001. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +351 -0
  1002. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js +49 -0
  1003. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/clipboard/browser/clipboard.js +236 -0
  1004. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/codeAction/browser/codeAction.js +284 -0
  1005. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.js +229 -0
  1006. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js +43 -0
  1007. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/codeAction/browser/codeActionController.js +315 -0
  1008. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/codeAction/browser/codeActionKeybindingResolver.js +86 -0
  1009. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.js +64 -0
  1010. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/codeAction/browser/codeActionModel.js +271 -0
  1011. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/codelens/browser/codeLensCache.js +112 -0
  1012. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/codelens/browser/codelens.js +104 -0
  1013. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/codelens/browser/codelensController.js +472 -0
  1014. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/codelens/browser/codelensWidget.js +262 -0
  1015. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/colorPicker/browser/color.js +112 -0
  1016. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/colorPicker/browser/colorContributions.js +51 -0
  1017. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/colorPicker/browser/colorDetector.js +242 -0
  1018. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +244 -0
  1019. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/colorPicker/browser/colorPickerModel.js +71 -0
  1020. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +353 -0
  1021. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.js +54 -0
  1022. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/comment/browser/blockCommentCommand.js +146 -0
  1023. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/comment/browser/comment.js +146 -0
  1024. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +345 -0
  1025. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +134 -0
  1026. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/dnd/browser/dnd.js +195 -0
  1027. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/dnd/browser/dragAndDropCommand.js +62 -0
  1028. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/documentSymbols/browser/documentSymbols.js +23 -0
  1029. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +57 -0
  1030. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +401 -0
  1031. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +181 -0
  1032. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +44 -0
  1033. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +157 -0
  1034. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/dropOrPasteInto/browser/edit.js +71 -0
  1035. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/editorState/browser/editorState.js +112 -0
  1036. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/find/browser/findController.js +990 -0
  1037. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/find/browser/findDecorations.js +296 -0
  1038. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/find/browser/findModel.js +488 -0
  1039. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/find/browser/findOptionsWidget.js +138 -0
  1040. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/find/browser/findState.js +243 -0
  1041. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/find/browser/findWidget.js +1177 -0
  1042. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/folding/browser/folding.js +1093 -0
  1043. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +133 -0
  1044. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/folding/browser/foldingModel.js +538 -0
  1045. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/folding/browser/foldingRanges.js +351 -0
  1046. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +49 -0
  1047. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/format/browser/format.js +360 -0
  1048. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/format/browser/formatActions.js +263 -0
  1049. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/format/browser/formattingEdit.js +54 -0
  1050. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js +149 -0
  1051. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/hover/browser/contentHover.js +874 -0
  1052. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/inlineCompletions/browser/commandIds.js +7 -0
  1053. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/inlineCompletions/browser/commands.js +199 -0
  1054. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/linesOperations/browser/copyLinesCommand.js +70 -0
  1055. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/quickAccess/browser/commandsQuickAccess.js +26 -0
  1056. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +153 -0
  1057. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +33 -0
  1058. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +354 -0
  1059. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/smartSelect/browser/bracketSelections.js +146 -0
  1060. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/suggest/browser/completionModel.js +224 -0
  1061. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +119 -0
  1062. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/edcore.main.js +14 -0
  1063. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/editor.all.js +63 -0
  1064. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/editor.api.js +55 -0
  1065. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/editor.main.js +7 -0
  1066. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/editor.worker.js +25 -0
  1067. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/standalone/browser/colorizer.js +118 -0
  1068. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/language/css/css.worker.js +36869 -0
  1069. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/language/css/cssMode.js +2035 -0
  1070. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/accessibility/browser/accessibilityService.js +88 -0
  1071. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/accessibility/common/accessibility.js +9 -0
  1072. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/action/common/action.js +7 -0
  1073. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/action/common/actionCommonCategories.js +13 -0
  1074. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/actionWidget/browser/actionList.js +276 -0
  1075. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/actionWidget/browser/actionWidget.js +248 -0
  1076. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/actionWidget/common/actionWidget.js +5 -0
  1077. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/actions/common/actions.js +409 -0
  1078. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/audioCues/browser/audioCueService.js +176 -0
  1079. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/clipboard/browser/clipboardService.js +141 -0
  1080. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/clipboard/common/clipboardService.js +6 -0
  1081. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/commands/common/commands.js +80 -0
  1082. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/configuration/common/configuration.js +86 -0
  1083. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/configuration/common/configurationModels.js +554 -0
  1084. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/configuration/common/configurationRegistry.js +317 -0
  1085. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/configuration/common/configurations.js +41 -0
  1086. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextkey/browser/contextKeyService.js +432 -0
  1087. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextkey/common/contextkey.js +1547 -0
  1088. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextkey/common/contextkeys.js +18 -0
  1089. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextview/browser/contextMenuHandler.js +124 -0
  1090. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextview/browser/contextMenuService.js +101 -0
  1091. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextview/browser/contextView.js +7 -0
  1092. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextview/browser/contextViewService.js +72 -0
  1093. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/dialogs/common/dialogs.js +2 -0
  1094. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/dnd/browser/dnd.js +36 -0
  1095. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/editor/common/editor.js +17 -0
  1096. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/environment/common/environment.js +2 -0
  1097. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/extensions/common/extensions.js +47 -0
  1098. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/files/common/files.js +9 -0
  1099. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +105 -0
  1100. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/instantiation/common/descriptors.js +11 -0
  1101. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/instantiation/common/extensions.js +15 -0
  1102. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/keybinding/common/abstractKeybindingService.js +277 -0
  1103. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/keybinding/common/baseResolvedKeybinding.js +53 -0
  1104. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +354 -0
  1105. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/theme/browser/defaultStyles.js +162 -0
  1106. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/theme/common/colorRegistry.js +482 -0
  1107. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/abap/abap.js +10 -0
  1108. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/apex/apex.js +10 -0
  1109. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/azcli/azcli.js +10 -0
  1110. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/bat/bat.js +10 -0
  1111. package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/bicep/bicep.js +11 -0
  1112. package/package.json +2 -1
  1113. package/scripts/.claude-flow/metrics/agent-metrics.json +1 -0
  1114. package/scripts/.claude-flow/metrics/performance.json +9 -0
  1115. package/scripts/.claude-flow/metrics/task-metrics.json +10 -0
  1116. package/scripts/CLEANUP_OPTIMIZATION_REPORT.json +312 -0
  1117. package/scripts/CLEANUP_PERFORMANCE_OPTIMIZATION.md +387 -0
  1118. package/scripts/CLEANUP_QUICK_START.md +268 -0
  1119. package/scripts/CLEANUP_TEST_RESULTS.md +205 -0
  1120. package/scripts/README.md +339 -0
  1121. package/scripts/ace-query.sh +384 -0
  1122. package/scripts/agent-token-analysis.js +430 -0
  1123. package/scripts/auto-setup.js +332 -0
  1124. package/scripts/build/README.md +167 -0
  1125. package/scripts/build/build-config.js +27 -0
  1126. package/scripts/build/build-prompt-copier.sh +30 -0
  1127. package/scripts/build/performance-monitor.js +869 -0
  1128. package/scripts/build/prepare-publish.js +150 -0
  1129. package/scripts/build/typescript-fixer.js +621 -0
  1130. package/scripts/build/unified-builder.sh +428 -0
  1131. package/scripts/build/update-bin-version.js +32 -0
  1132. package/scripts/build/validate-agents.js +238 -0
  1133. package/scripts/build-index.js +43 -0
  1134. package/scripts/build-orchestrator.js +320 -0
  1135. package/scripts/check-routing-stats.cjs +122 -0
  1136. package/scripts/ci-validation.js +375 -0
  1137. package/scripts/cleanup-blocking-coordination.sh +420 -0
  1138. package/scripts/cleanup-idle-sessions.sh +118 -0
  1139. package/scripts/collect-build-metrics.js +65 -0
  1140. package/scripts/demo/README.md +79 -0
  1141. package/scripts/demo/autoscaling-demo-simplified.js +963 -0
  1142. package/scripts/demo/comprehensive-dashboard-test.js +693 -0
  1143. package/scripts/demo/confidence-log.js +87 -0
  1144. package/scripts/demo/confidence-report.js +82 -0
  1145. package/scripts/demo/demo-multi-swarm-coordination.js +325 -0
  1146. package/scripts/demo/demo-production-deployment.js +399 -0
  1147. package/scripts/demo/demo-visualization-system.js +149 -0
  1148. package/scripts/demo/performance-analysis.cjs +71 -0
  1149. package/scripts/demo/performance-analysis.js +71 -0
  1150. package/scripts/demo/test-autoscaling-demo.js +314 -0
  1151. package/scripts/dependency-optimizer.js +349 -0
  1152. package/scripts/dependency-security-assessment.js +331 -0
  1153. package/scripts/deploy-sdk.sh +176 -0
  1154. package/scripts/deployment-readiness-report.json +179 -0
  1155. package/scripts/dev/README.md +264 -0
  1156. package/scripts/dev/claude-flow-wrapper.sh +35 -0
  1157. package/scripts/dev/claude-monitor.py +419 -0
  1158. package/scripts/dev/claude-sparc.sh +562 -0
  1159. package/scripts/dev/claude-wrapper.sh +17 -0
  1160. package/scripts/dev/demo-phase3-compliance.js +172 -0
  1161. package/scripts/dev/demo-task-system.ts +224 -0
  1162. package/scripts/dev/deployment-validator.js +315 -0
  1163. package/scripts/dev/spawn-claude-terminal.sh +32 -0
  1164. package/scripts/dev/start-portal.sh +506 -0
  1165. package/scripts/dev/start-web-ui.js +15 -0
  1166. package/scripts/dev/stop-portal.sh +311 -0
  1167. package/scripts/dev/validate-examples.ts +288 -0
  1168. package/scripts/dev/validate-phase2.cjs +451 -0
  1169. package/scripts/dev/validate-phase2.js +785 -0
  1170. package/scripts/dev/validate-phase3.cjs +208 -0
  1171. package/scripts/dev/validate-security-remediation.js +1 -0
  1172. package/scripts/ecosystem.config.cjs +90 -0
  1173. package/scripts/enhanced-memory-spiral-killer.sh +221 -0
  1174. package/scripts/fix-js-extensions.js +167 -0
  1175. package/scripts/generate-basic-types.js +73 -0
  1176. package/scripts/generate-changelog.js +318 -0
  1177. package/scripts/git-hooks/pre-commit.sh +143 -0
  1178. package/scripts/health-checks.js +634 -0
  1179. package/scripts/hook-wrapper.sh +54 -0
  1180. package/scripts/install/README.md +375 -0
  1181. package/scripts/install/REDIS_SETUP_VALIDATION.json +245 -0
  1182. package/scripts/install/check-prerequisites.js +303 -0
  1183. package/scripts/install/config-wizard.js +606 -0
  1184. package/scripts/install/dependency-checker.js +385 -0
  1185. package/scripts/install/health-check.js +765 -0
  1186. package/scripts/install/install.js +256 -0
  1187. package/scripts/install/installation-benchmark.js +461 -0
  1188. package/scripts/install/quick-install.js +720 -0
  1189. package/scripts/install/quick-start-wizard.js +295 -0
  1190. package/scripts/install/redis-cli.js +289 -0
  1191. package/scripts/install/redis-install-guides.md +407 -0
  1192. package/scripts/install/redis-setup.js +559 -0
  1193. package/scripts/install/redis-test.js +278 -0
  1194. package/scripts/install/service-manager.js +672 -0
  1195. package/scripts/install/setup.js +832 -0
  1196. package/scripts/install/uninstall.js +526 -0
  1197. package/scripts/install/update.js +461 -0
  1198. package/scripts/install-pre-commit-hook.sh +127 -0
  1199. package/scripts/legacy/README.md +272 -0
  1200. package/scripts/legacy/batch-fix-ts.sh +54 -0
  1201. package/scripts/legacy/build-migration.sh +105 -0
  1202. package/scripts/legacy/build-monitor.js +209 -0
  1203. package/scripts/legacy/build-with-filter.sh +84 -0
  1204. package/scripts/legacy/build-workaround.sh +71 -0
  1205. package/scripts/legacy/fix-ts-advanced.js +358 -0
  1206. package/scripts/legacy/fix-ts-final.sh +50 -0
  1207. package/scripts/legacy/fix-ts-targeted.sh +49 -0
  1208. package/scripts/legacy/fix-typescript-errors.js +305 -0
  1209. package/scripts/legacy/force-build.sh +63 -0
  1210. package/scripts/legacy/optimize-performance.js +400 -0
  1211. package/scripts/legacy/performance-monitor.js +263 -0
  1212. package/scripts/legacy/performance-monitoring.js +532 -0
  1213. package/scripts/legacy/performance-test-runner.js +645 -0
  1214. package/scripts/legacy/quick-fix-ts.js +281 -0
  1215. package/scripts/legacy/safe-build.sh +63 -0
  1216. package/scripts/memory-monitor-coordinator.js +451 -0
  1217. package/scripts/migrate-to-sdk.sh +520 -0
  1218. package/scripts/migration/QUICK-START.md +189 -0
  1219. package/scripts/migration/QUICK-START.md.backup-1760135091363 +189 -0
  1220. package/scripts/migration/README.md +464 -0
  1221. package/scripts/migration/TASK-1.3.2-COMPLETION-REPORT.md +500 -0
  1222. package/scripts/migration/TASK-1.3.2-COMPLETION-REPORT.md.backup-1760135091348 +500 -0
  1223. package/scripts/migration/UPDATE-PATHS-README.md +464 -0
  1224. package/scripts/migration/UPDATE-PATHS-README.md.backup-1760135091337 +464 -0
  1225. package/scripts/migration/example-patterns.json +19 -0
  1226. package/scripts/migration/install-arm64.js +78 -0
  1227. package/scripts/migration/install.js +83 -0
  1228. package/scripts/migration/migrate-hooks.js +173 -0
  1229. package/scripts/migration/migration-examples.ts +318 -0
  1230. package/scripts/migration/reorganize-workspace.js +504 -0
  1231. package/scripts/migration/test-update-paths.js +359 -0
  1232. package/scripts/migration/update-paths.js +664 -0
  1233. package/scripts/migration/validate-migration.js +647 -0
  1234. package/scripts/monitor-loop.sh +65 -0
  1235. package/scripts/monitor-memory.sh +47 -0
  1236. package/scripts/monitor-migration.js +339 -0
  1237. package/scripts/monitor.py +43 -0
  1238. package/scripts/monitoring/README.md +178 -0
  1239. package/scripts/monitoring/alert-monitor.sh +220 -0
  1240. package/scripts/monitoring/analyze-resources.sh +199 -0
  1241. package/scripts/monitoring/dashboards/rate-limiting-dashboard.json +211 -0
  1242. package/scripts/monitoring/dynamic-monitor.sh +85 -0
  1243. package/scripts/monitoring/launch-stability-test.sh +184 -0
  1244. package/scripts/monitoring/monitor-test.sh +93 -0
  1245. package/scripts/monitoring/pre-test-validation.sh +208 -0
  1246. package/scripts/monitoring/quick-test-alerting.sh +118 -0
  1247. package/scripts/monitoring/quick-test-rate-limiting.sh +206 -0
  1248. package/scripts/monitoring/rate-limiting-monitor.sh +380 -0
  1249. package/scripts/monitoring/resource-monitor.sh +126 -0
  1250. package/scripts/monitoring/stability-monitor.js +429 -0
  1251. package/scripts/monitoring/test-monitor-quick.sh +54 -0
  1252. package/scripts/monitoring/view-alerts.sh +307 -0
  1253. package/scripts/npm-metrics-collector.js +482 -0
  1254. package/scripts/npm-package-validation.cjs +299 -0
  1255. package/scripts/optimization/build-optimizer.js +438 -0
  1256. package/scripts/optimization/config-validator.js +761 -0
  1257. package/scripts/optimization/test-optimization.js +432 -0
  1258. package/scripts/optimization/unified-activation.js +839 -0
  1259. package/scripts/optimize-package-swarm.js +54 -0
  1260. package/scripts/performance/ACTIVATION_COMMANDS.md +292 -0
  1261. package/scripts/performance/sqlite-enhanced-activation.sh +583 -0
  1262. package/scripts/performance/test-enhanced-backend.sh +504 -0
  1263. package/scripts/performance-monitor.js +644 -0
  1264. package/scripts/performance-test-runner.js +698 -0
  1265. package/scripts/post-deployment-monitoring.js +350 -0
  1266. package/scripts/post-edit-pipeline.js +2091 -0
  1267. package/scripts/post-install-claude-md.js +78 -0
  1268. package/scripts/postinstall.js +165 -0
  1269. package/scripts/pre-publish-validation.cjs +212 -0
  1270. package/scripts/pre-publish-validation.js +429 -0
  1271. package/scripts/redis-lua/cleanup-blocking-coordination.lua +198 -0
  1272. package/scripts/release-announcement.js +425 -0
  1273. package/scripts/release-notification.js +248 -0
  1274. package/scripts/release-rollback.js +376 -0
  1275. package/scripts/release-validation.js +460 -0
  1276. package/scripts/rollback-sdk.sh +66 -0
  1277. package/scripts/run-production-validation.ts +590 -0
  1278. package/scripts/run-stability-validation.sh +687 -0
  1279. package/scripts/security/README.md +339 -0
  1280. package/scripts/security/deployment-validation.cjs +279 -0
  1281. package/scripts/security/envelope-encryption-confidence-report.cjs +422 -0
  1282. package/scripts/security/install-git-hooks.sh +132 -0
  1283. package/scripts/security/install-git-secrets.sh +295 -0
  1284. package/scripts/security/rotate-api-keys.js +469 -0
  1285. package/scripts/security/ruv-swarm-safe.js +74 -0
  1286. package/scripts/security/security-audit.cjs +538 -0
  1287. package/scripts/security/setup-redis-auth.sh +397 -0
  1288. package/scripts/security/validate-envelope-encryption.cjs +340 -0
  1289. package/scripts/security-scan.js +492 -0
  1290. package/scripts/src/web/frontend/.claude-flow/metrics/agent-metrics.json +1 -0
  1291. package/scripts/src/web/frontend/.claude-flow/metrics/performance.json +9 -0
  1292. package/scripts/src/web/frontend/.claude-flow/metrics/task-metrics.json +10 -0
  1293. package/scripts/switch-api.sh +159 -0
  1294. package/scripts/sync-agents.js +290 -0
  1295. package/scripts/test/50-agent-test.js +625 -0
  1296. package/scripts/test/NEW_STABILITY_TEST_GUIDE.md +407 -0
  1297. package/scripts/test/README.md +236 -0
  1298. package/scripts/test/STABILITY_TEST_EXAMPLE.md +347 -0
  1299. package/scripts/test/STABILITY_TEST_README.md +480 -0
  1300. package/scripts/test/agent-worker.js +309 -0
  1301. package/scripts/test/ai-coordination-test.js +650 -0
  1302. package/scripts/test/ai-mesh-coordination-test.js +416 -0
  1303. package/scripts/test/check-links.ts +274 -0
  1304. package/scripts/test/check-performance-regression.ts +168 -0
  1305. package/scripts/test/cli-agent-coordination-test.js +313 -0
  1306. package/scripts/test/coordinator-multilingual-test.js +396 -0
  1307. package/scripts/test/coordinator-transparency-demo.js +585 -0
  1308. package/scripts/test/coverage-report.ts +692 -0
  1309. package/scripts/test/generate-swarm-tests.js +633 -0
  1310. package/scripts/test/integration-test-validation.cjs +253 -0
  1311. package/scripts/test/load-test-swarm.js +576 -0
  1312. package/scripts/test/mesh-coordination-zero-overlap-test.js +740 -0
  1313. package/scripts/test/multilingual-hello-world-test.js +390 -0
  1314. package/scripts/test/quick-multilingual-demo.js +464 -0
  1315. package/scripts/test/real-agent-test.js +312 -0
  1316. package/scripts/test/run-phase3-compliance-tests.js +427 -0
  1317. package/scripts/test/run-stability-test-examples.sh +292 -0
  1318. package/scripts/test/stability-results/stability-metrics.jsonl +83 -0
  1319. package/scripts/test/stability-results/stability-test-report.json +128 -0
  1320. package/scripts/test/stability-results/stability-test.log +1827 -0
  1321. package/scripts/test/stability-test-50-agents.js +734 -0
  1322. package/scripts/test/test-batch-tasks.ts +29 -0
  1323. package/scripts/test/test-byzantine-resolution.js +246 -0
  1324. package/scripts/test/test-claude-spawn-options.sh +63 -0
  1325. package/scripts/test/test-cli-wizard.js +331 -0
  1326. package/scripts/test/test-comprehensive.js +401 -0
  1327. package/scripts/test/test-coordination-features.ts +238 -0
  1328. package/scripts/test/test-fallback-systems.js +276 -0
  1329. package/scripts/test/test-init-command.ts +302 -0
  1330. package/scripts/test/test-mcp.ts +251 -0
  1331. package/scripts/test/test-runner.ts +568 -0
  1332. package/scripts/test/test-swarm-integration.sh +92 -0
  1333. package/scripts/test/test-swarm.ts +142 -0
  1334. package/scripts/test/validation-summary.ts +408 -0
  1335. package/scripts/test-cleanup-performance.sh +416 -0
  1336. package/scripts/test-dashboard-auth.cjs +203 -0
  1337. package/scripts/test-docker-deployment.sh +207 -0
  1338. package/scripts/test-npm-package.cjs +167 -0
  1339. package/scripts/test-provider-routing.cjs +226 -0
  1340. package/scripts/test-routing-telemetry.cjs +147 -0
  1341. package/scripts/test-runner.cjs +154 -0
  1342. package/scripts/test-zai-10k.cjs +81 -0
  1343. package/scripts/test-zai-api.cjs +191 -0
  1344. package/scripts/test-zai-diagnostic.cjs +151 -0
  1345. package/scripts/test-zai-final.cjs +128 -0
  1346. package/scripts/test-zai-with-env.cjs +85 -0
  1347. package/scripts/toggle-cost-savings.cjs +302 -0
  1348. package/scripts/unified-memory-monitor.js +526 -0
  1349. package/scripts/utils/README.md +261 -0
  1350. package/scripts/utils/clean-build-artifacts.sh +94 -0
  1351. package/scripts/utils/cleanup-root.sh +69 -0
  1352. package/scripts/utils/fix-cliffy-imports.js +307 -0
  1353. package/scripts/utils/fix-duplicate-imports.js +114 -0
  1354. package/scripts/utils/fix-error-handling.cjs +70 -0
  1355. package/scripts/utils/fix-import-paths.js +104 -0
  1356. package/scripts/utils/fix-imports.js +116 -0
  1357. package/scripts/utils/fix-shebang.js +78 -0
  1358. package/scripts/utils/fix-test-modules.js +27 -0
  1359. package/scripts/utils/fix-timezone-issue-246.js +200 -0
  1360. package/scripts/utils/fix-ts-comprehensive.py +182 -0
  1361. package/scripts/utils/fix-ts-targeted-batch.js +250 -0
  1362. package/scripts/utils/remove-benchmark-conflicts.sh +140 -0
  1363. package/scripts/utils/simple-test-fixer.js +190 -0
  1364. package/scripts/utils/validate-metrics-structure.cjs +144 -0
  1365. package/scripts/validate-agent-hooks.js +506 -0
  1366. package/scripts/validate-changelog.js +241 -0
  1367. package/scripts/validate-coordination-cli.js +69 -0
  1368. package/scripts/validate-coordination-toggle-integration.cjs +501 -0
  1369. package/scripts/validate-docker-infrastructure.sh +502 -0
  1370. package/scripts/validate-entry-points.js +300 -0
  1371. package/scripts/validate-memory-monitoring.sh +225 -0
  1372. package/scripts/validate-stage3-performance.ts +377 -0
  1373. package/scripts/validate-template-bundling.js +180 -0
  1374. package/scripts/validation/README.md +33 -0
  1375. package/scripts/validation/acl-security-validation.cjs +214 -0
  1376. package/scripts/validation/acl-security-validation.js +402 -0
  1377. package/scripts/validation/byzantine-verification.js +407 -0
  1378. package/scripts/validation/final-phase-2-consensus.cjs +219 -0
  1379. package/scripts/validation/final-security-validation.js +791 -0
  1380. package/scripts/validation/final-wasm-validation.cjs +840 -0
  1381. package/scripts/validation/integration-test-analysis.js +105 -0
  1382. package/scripts/validation/phase-0-comprehensive-validation.js +474 -0
  1383. package/scripts/validation/phase-0-consensus-report.js +139 -0
  1384. package/scripts/validation/phase-0-final-report.js +112 -0
  1385. package/scripts/validation/phase-0-redis-consensus-report.js +129 -0
  1386. package/scripts/validation/phase-0-validation-improved.js +490 -0
  1387. package/scripts/validation/phase-0-validation-test.js +65 -0
  1388. package/scripts/validation/phase-1-consensus-report.cjs +342 -0
  1389. package/scripts/validation/phase-1-consensus-validation.cjs +551 -0
  1390. package/scripts/validation/phase-1-consensus-validation.js +551 -0
  1391. package/scripts/validation/phase-2-consensus-report.cjs +186 -0
  1392. package/scripts/validation/phase-2-validation.cjs +171 -0
  1393. package/scripts/validation/phase-2-validation.js +171 -0
  1394. package/scripts/validation/phase-4-consensus-report.js +181 -0
  1395. package/scripts/validation/phase-4-final-validation.js +351 -0
  1396. package/scripts/validation/phase-5-consensus-report.cjs +113 -0
  1397. package/scripts/validation/phase-5-consensus-report.js +113 -0
  1398. package/scripts/validation/security-analysis.js +49 -0
  1399. package/scripts/validation/security-validation.js +492 -0
  1400. package/scripts/validation/simple-security-validation.js +464 -0
  1401. package/scripts/verify-installation.js +112 -0
  1402. package/scripts/verify-mcp-server.js +86 -0
  1403. package/scripts/verify-sdk-phase1.cjs +293 -0
@@ -0,0 +1,1944 @@
1
+ const EventEmitter = require('events').EventEmitter;
2
+ const childProcess = require('child_process');
3
+ const path = require('path');
4
+ const fs = require('fs');
5
+
6
+ const { Argument, humanReadableArgName } = require('./argument.js');
7
+ const { CommanderError } = require('./error.js');
8
+ const { Help } = require('./help.js');
9
+ const { Option, splitOptionFlags } = require('./option.js');
10
+ const { suggestSimilar } = require('./suggestSimilar');
11
+
12
+ // @ts-check
13
+
14
+ class Command extends EventEmitter {
15
+ /**
16
+ * Initialize a new `Command`.
17
+ *
18
+ * @param {string} [name]
19
+ */
20
+
21
+ constructor(name) {
22
+ super();
23
+ /** @type {Command[]} */
24
+ this.commands = [];
25
+ /** @type {Option[]} */
26
+ this.options = [];
27
+ this.parent = null;
28
+ this._allowUnknownOption = false;
29
+ this._allowExcessArguments = true;
30
+ /** @type {Argument[]} */
31
+ this._args = [];
32
+ /** @type {string[]} */
33
+ this.args = []; // cli args with options removed
34
+ this.rawArgs = [];
35
+ this.processedArgs = []; // like .args but after custom processing and collecting variadic
36
+ this._scriptPath = null;
37
+ this._name = name || '';
38
+ this._optionValues = {};
39
+ this._optionValueSources = {}; // default < config < env < cli
40
+ this._storeOptionsAsProperties = false;
41
+ this._actionHandler = null;
42
+ this._executableHandler = false;
43
+ this._executableFile = null; // custom name for executable
44
+ this._defaultCommandName = null;
45
+ this._exitCallback = null;
46
+ this._aliases = [];
47
+ this._combineFlagAndOptionalValue = true;
48
+ this._description = '';
49
+ this._argsDescription = undefined; // legacy
50
+ this._enablePositionalOptions = false;
51
+ this._passThroughOptions = false;
52
+ this._lifeCycleHooks = {}; // a hash of arrays
53
+ /** @type {boolean | string} */
54
+ this._showHelpAfterError = false;
55
+ this._showSuggestionAfterError = false;
56
+
57
+ // see .configureOutput() for docs
58
+ this._outputConfiguration = {
59
+ writeOut: (str) => process.stdout.write(str),
60
+ writeErr: (str) => process.stderr.write(str),
61
+ getOutHelpWidth: () => process.stdout.isTTY ? process.stdout.columns : undefined,
62
+ getErrHelpWidth: () => process.stderr.isTTY ? process.stderr.columns : undefined,
63
+ outputError: (str, write) => write(str)
64
+ };
65
+
66
+ this._hidden = false;
67
+ this._hasHelpOption = true;
68
+ this._helpFlags = '-h, --help';
69
+ this._helpDescription = 'display help for command';
70
+ this._helpShortFlag = '-h';
71
+ this._helpLongFlag = '--help';
72
+ this._addImplicitHelpCommand = undefined; // Deliberately undefined, not decided whether true or false
73
+ this._helpCommandName = 'help';
74
+ this._helpCommandnameAndArgs = 'help [command]';
75
+ this._helpCommandDescription = 'display help for command';
76
+ this._helpConfiguration = {};
77
+ }
78
+
79
+ /**
80
+ * Copy settings that are useful to have in common across root command and subcommands.
81
+ *
82
+ * (Used internally when adding a command using `.command()` so subcommands inherit parent settings.)
83
+ *
84
+ * @param {Command} sourceCommand
85
+ * @return {Command} returns `this` for executable command
86
+ */
87
+ copyInheritedSettings(sourceCommand) {
88
+ this._outputConfiguration = sourceCommand._outputConfiguration;
89
+ this._hasHelpOption = sourceCommand._hasHelpOption;
90
+ this._helpFlags = sourceCommand._helpFlags;
91
+ this._helpDescription = sourceCommand._helpDescription;
92
+ this._helpShortFlag = sourceCommand._helpShortFlag;
93
+ this._helpLongFlag = sourceCommand._helpLongFlag;
94
+ this._helpCommandName = sourceCommand._helpCommandName;
95
+ this._helpCommandnameAndArgs = sourceCommand._helpCommandnameAndArgs;
96
+ this._helpCommandDescription = sourceCommand._helpCommandDescription;
97
+ this._helpConfiguration = sourceCommand._helpConfiguration;
98
+ this._exitCallback = sourceCommand._exitCallback;
99
+ this._storeOptionsAsProperties = sourceCommand._storeOptionsAsProperties;
100
+ this._combineFlagAndOptionalValue = sourceCommand._combineFlagAndOptionalValue;
101
+ this._allowExcessArguments = sourceCommand._allowExcessArguments;
102
+ this._enablePositionalOptions = sourceCommand._enablePositionalOptions;
103
+ this._showHelpAfterError = sourceCommand._showHelpAfterError;
104
+ this._showSuggestionAfterError = sourceCommand._showSuggestionAfterError;
105
+
106
+ return this;
107
+ }
108
+
109
+ /**
110
+ * Define a command.
111
+ *
112
+ * There are two styles of command: pay attention to where to put the description.
113
+ *
114
+ * @example
115
+ * // Command implemented using action handler (description is supplied separately to `.command`)
116
+ * program
117
+ * .command('clone <source> [destination]')
118
+ * .description('clone a repository into a newly created directory')
119
+ * .action((source, destination) => {
120
+ * console.log('clone command called');
121
+ * });
122
+ *
123
+ * // Command implemented using separate executable file (description is second parameter to `.command`)
124
+ * program
125
+ * .command('start <service>', 'start named service')
126
+ * .command('stop [service]', 'stop named service, or all if no name supplied');
127
+ *
128
+ * @param {string} nameAndArgs - command name and arguments, args are `<required>` or `[optional]` and last may also be `variadic...`
129
+ * @param {Object|string} [actionOptsOrExecDesc] - configuration options (for action), or description (for executable)
130
+ * @param {Object} [execOpts] - configuration options (for executable)
131
+ * @return {Command} returns new command for action handler, or `this` for executable command
132
+ */
133
+
134
+ command(nameAndArgs, actionOptsOrExecDesc, execOpts) {
135
+ let desc = actionOptsOrExecDesc;
136
+ let opts = execOpts;
137
+ if (typeof desc === 'object' && desc !== null) {
138
+ opts = desc;
139
+ desc = null;
140
+ }
141
+ opts = opts || {};
142
+ const [, name, args] = nameAndArgs.match(/([^ ]+) *(.*)/);
143
+
144
+ const cmd = this.createCommand(name);
145
+ if (desc) {
146
+ cmd.description(desc);
147
+ cmd._executableHandler = true;
148
+ }
149
+ if (opts.isDefault) this._defaultCommandName = cmd._name;
150
+ cmd._hidden = !!(opts.noHelp || opts.hidden); // noHelp is deprecated old name for hidden
151
+ cmd._executableFile = opts.executableFile || null; // Custom name for executable file, set missing to null to match constructor
152
+ if (args) cmd.arguments(args);
153
+ this.commands.push(cmd);
154
+ cmd.parent = this;
155
+ cmd.copyInheritedSettings(this);
156
+
157
+ if (desc) return this;
158
+ return cmd;
159
+ };
160
+
161
+ /**
162
+ * Factory routine to create a new unattached command.
163
+ *
164
+ * See .command() for creating an attached subcommand, which uses this routine to
165
+ * create the command. You can override createCommand to customise subcommands.
166
+ *
167
+ * @param {string} [name]
168
+ * @return {Command} new command
169
+ */
170
+
171
+ createCommand(name) {
172
+ return new Command(name);
173
+ };
174
+
175
+ /**
176
+ * You can customise the help with a subclass of Help by overriding createHelp,
177
+ * or by overriding Help properties using configureHelp().
178
+ *
179
+ * @return {Help}
180
+ */
181
+
182
+ createHelp() {
183
+ return Object.assign(new Help(), this.configureHelp());
184
+ };
185
+
186
+ /**
187
+ * You can customise the help by overriding Help properties using configureHelp(),
188
+ * or with a subclass of Help by overriding createHelp().
189
+ *
190
+ * @param {Object} [configuration] - configuration options
191
+ * @return {Command|Object} `this` command for chaining, or stored configuration
192
+ */
193
+
194
+ configureHelp(configuration) {
195
+ if (configuration === undefined) return this._helpConfiguration;
196
+
197
+ this._helpConfiguration = configuration;
198
+ return this;
199
+ }
200
+
201
+ /**
202
+ * The default output goes to stdout and stderr. You can customise this for special
203
+ * applications. You can also customise the display of errors by overriding outputError.
204
+ *
205
+ * The configuration properties are all functions:
206
+ *
207
+ * // functions to change where being written, stdout and stderr
208
+ * writeOut(str)
209
+ * writeErr(str)
210
+ * // matching functions to specify width for wrapping help
211
+ * getOutHelpWidth()
212
+ * getErrHelpWidth()
213
+ * // functions based on what is being written out
214
+ * outputError(str, write) // used for displaying errors, and not used for displaying help
215
+ *
216
+ * @param {Object} [configuration] - configuration options
217
+ * @return {Command|Object} `this` command for chaining, or stored configuration
218
+ */
219
+
220
+ configureOutput(configuration) {
221
+ if (configuration === undefined) return this._outputConfiguration;
222
+
223
+ Object.assign(this._outputConfiguration, configuration);
224
+ return this;
225
+ }
226
+
227
+ /**
228
+ * Display the help or a custom message after an error occurs.
229
+ *
230
+ * @param {boolean|string} [displayHelp]
231
+ * @return {Command} `this` command for chaining
232
+ */
233
+ showHelpAfterError(displayHelp = true) {
234
+ if (typeof displayHelp !== 'string') displayHelp = !!displayHelp;
235
+ this._showHelpAfterError = displayHelp;
236
+ return this;
237
+ }
238
+
239
+ /**
240
+ * Display suggestion of similar commands for unknown commands, or options for unknown options.
241
+ *
242
+ * @param {boolean} [displaySuggestion]
243
+ * @return {Command} `this` command for chaining
244
+ */
245
+ showSuggestionAfterError(displaySuggestion = true) {
246
+ this._showSuggestionAfterError = !!displaySuggestion;
247
+ return this;
248
+ }
249
+
250
+ /**
251
+ * Add a prepared subcommand.
252
+ *
253
+ * See .command() for creating an attached subcommand which inherits settings from its parent.
254
+ *
255
+ * @param {Command} cmd - new subcommand
256
+ * @param {Object} [opts] - configuration options
257
+ * @return {Command} `this` command for chaining
258
+ */
259
+
260
+ addCommand(cmd, opts) {
261
+ if (!cmd._name) throw new Error('Command passed to .addCommand() must have a name');
262
+
263
+ // To keep things simple, block automatic name generation for deeply nested executables.
264
+ // Fail fast and detect when adding rather than later when parsing.
265
+ function checkExplicitNames(commandArray) {
266
+ commandArray.forEach((cmd) => {
267
+ if (cmd._executableHandler && !cmd._executableFile) {
268
+ throw new Error(`Must specify executableFile for deeply nested executable: ${cmd.name()}`);
269
+ }
270
+ checkExplicitNames(cmd.commands);
271
+ });
272
+ }
273
+ checkExplicitNames(cmd.commands);
274
+
275
+ opts = opts || {};
276
+ if (opts.isDefault) this._defaultCommandName = cmd._name;
277
+ if (opts.noHelp || opts.hidden) cmd._hidden = true; // modifying passed command due to existing implementation
278
+
279
+ this.commands.push(cmd);
280
+ cmd.parent = this;
281
+ return this;
282
+ };
283
+
284
+ /**
285
+ * Factory routine to create a new unattached argument.
286
+ *
287
+ * See .argument() for creating an attached argument, which uses this routine to
288
+ * create the argument. You can override createArgument to return a custom argument.
289
+ *
290
+ * @param {string} name
291
+ * @param {string} [description]
292
+ * @return {Argument} new argument
293
+ */
294
+
295
+ createArgument(name, description) {
296
+ return new Argument(name, description);
297
+ };
298
+
299
+ /**
300
+ * Define argument syntax for command.
301
+ *
302
+ * The default is that the argument is required, and you can explicitly
303
+ * indicate this with <> around the name. Put [] around the name for an optional argument.
304
+ *
305
+ * @example
306
+ * program.argument('<input-file>');
307
+ * program.argument('[output-file]');
308
+ *
309
+ * @param {string} name
310
+ * @param {string} [description]
311
+ * @param {Function|*} [fn] - custom argument processing function
312
+ * @param {*} [defaultValue]
313
+ * @return {Command} `this` command for chaining
314
+ */
315
+ argument(name, description, fn, defaultValue) {
316
+ const argument = this.createArgument(name, description);
317
+ if (typeof fn === 'function') {
318
+ argument.default(defaultValue).argParser(fn);
319
+ } else {
320
+ argument.default(fn);
321
+ }
322
+ this.addArgument(argument);
323
+ return this;
324
+ }
325
+
326
+ /**
327
+ * Define argument syntax for command, adding multiple at once (without descriptions).
328
+ *
329
+ * See also .argument().
330
+ *
331
+ * @example
332
+ * program.arguments('<cmd> [env]');
333
+ *
334
+ * @param {string} names
335
+ * @return {Command} `this` command for chaining
336
+ */
337
+
338
+ arguments(names) {
339
+ names.split(/ +/).forEach((detail) => {
340
+ this.argument(detail);
341
+ });
342
+ return this;
343
+ };
344
+
345
+ /**
346
+ * Define argument syntax for command, adding a prepared argument.
347
+ *
348
+ * @param {Argument} argument
349
+ * @return {Command} `this` command for chaining
350
+ */
351
+ addArgument(argument) {
352
+ const previousArgument = this._args.slice(-1)[0];
353
+ if (previousArgument && previousArgument.variadic) {
354
+ throw new Error(`only the last argument can be variadic '${previousArgument.name()}'`);
355
+ }
356
+ if (argument.required && argument.defaultValue !== undefined && argument.parseArg === undefined) {
357
+ throw new Error(`a default value for a required argument is never used: '${argument.name()}'`);
358
+ }
359
+ this._args.push(argument);
360
+ return this;
361
+ }
362
+
363
+ /**
364
+ * Override default decision whether to add implicit help command.
365
+ *
366
+ * addHelpCommand() // force on
367
+ * addHelpCommand(false); // force off
368
+ * addHelpCommand('help [cmd]', 'display help for [cmd]'); // force on with custom details
369
+ *
370
+ * @return {Command} `this` command for chaining
371
+ */
372
+
373
+ addHelpCommand(enableOrNameAndArgs, description) {
374
+ if (enableOrNameAndArgs === false) {
375
+ this._addImplicitHelpCommand = false;
376
+ } else {
377
+ this._addImplicitHelpCommand = true;
378
+ if (typeof enableOrNameAndArgs === 'string') {
379
+ this._helpCommandName = enableOrNameAndArgs.split(' ')[0];
380
+ this._helpCommandnameAndArgs = enableOrNameAndArgs;
381
+ }
382
+ this._helpCommandDescription = description || this._helpCommandDescription;
383
+ }
384
+ return this;
385
+ };
386
+
387
+ /**
388
+ * @return {boolean}
389
+ * @api private
390
+ */
391
+
392
+ _hasImplicitHelpCommand() {
393
+ if (this._addImplicitHelpCommand === undefined) {
394
+ return this.commands.length && !this._actionHandler && !this._findCommand('help');
395
+ }
396
+ return this._addImplicitHelpCommand;
397
+ };
398
+
399
+ /**
400
+ * Add hook for life cycle event.
401
+ *
402
+ * @param {string} event
403
+ * @param {Function} listener
404
+ * @return {Command} `this` command for chaining
405
+ */
406
+
407
+ hook(event, listener) {
408
+ const allowedValues = ['preAction', 'postAction'];
409
+ if (!allowedValues.includes(event)) {
410
+ throw new Error(`Unexpected value for event passed to hook : '${event}'.
411
+ Expecting one of '${allowedValues.join("', '")}'`);
412
+ }
413
+ if (this._lifeCycleHooks[event]) {
414
+ this._lifeCycleHooks[event].push(listener);
415
+ } else {
416
+ this._lifeCycleHooks[event] = [listener];
417
+ }
418
+ return this;
419
+ }
420
+
421
+ /**
422
+ * Register callback to use as replacement for calling process.exit.
423
+ *
424
+ * @param {Function} [fn] optional callback which will be passed a CommanderError, defaults to throwing
425
+ * @return {Command} `this` command for chaining
426
+ */
427
+
428
+ exitOverride(fn) {
429
+ if (fn) {
430
+ this._exitCallback = fn;
431
+ } else {
432
+ this._exitCallback = (err) => {
433
+ if (err.code !== 'commander.executeSubCommandAsync') {
434
+ throw err;
435
+ } else {
436
+ // Async callback from spawn events, not useful to throw.
437
+ }
438
+ };
439
+ }
440
+ return this;
441
+ };
442
+
443
+ /**
444
+ * Call process.exit, and _exitCallback if defined.
445
+ *
446
+ * @param {number} exitCode exit code for using with process.exit
447
+ * @param {string} code an id string representing the error
448
+ * @param {string} message human-readable description of the error
449
+ * @return never
450
+ * @api private
451
+ */
452
+
453
+ _exit(exitCode, code, message) {
454
+ if (this._exitCallback) {
455
+ this._exitCallback(new CommanderError(exitCode, code, message));
456
+ // Expecting this line is not reached.
457
+ }
458
+ process.exit(exitCode);
459
+ };
460
+
461
+ /**
462
+ * Register callback `fn` for the command.
463
+ *
464
+ * @example
465
+ * program
466
+ * .command('serve')
467
+ * .description('start service')
468
+ * .action(function() {
469
+ * // do work here
470
+ * });
471
+ *
472
+ * @param {Function} fn
473
+ * @return {Command} `this` command for chaining
474
+ */
475
+
476
+ action(fn) {
477
+ const listener = (args) => {
478
+ // The .action callback takes an extra parameter which is the command or options.
479
+ const expectedArgsCount = this._args.length;
480
+ const actionArgs = args.slice(0, expectedArgsCount);
481
+ if (this._storeOptionsAsProperties) {
482
+ actionArgs[expectedArgsCount] = this; // backwards compatible "options"
483
+ } else {
484
+ actionArgs[expectedArgsCount] = this.opts();
485
+ }
486
+ actionArgs.push(this);
487
+
488
+ return fn.apply(this, actionArgs);
489
+ };
490
+ this._actionHandler = listener;
491
+ return this;
492
+ };
493
+
494
+ /**
495
+ * Factory routine to create a new unattached option.
496
+ *
497
+ * See .option() for creating an attached option, which uses this routine to
498
+ * create the option. You can override createOption to return a custom option.
499
+ *
500
+ * @param {string} flags
501
+ * @param {string} [description]
502
+ * @return {Option} new option
503
+ */
504
+
505
+ createOption(flags, description) {
506
+ return new Option(flags, description);
507
+ };
508
+
509
+ /**
510
+ * Add an option.
511
+ *
512
+ * @param {Option} option
513
+ * @return {Command} `this` command for chaining
514
+ */
515
+ addOption(option) {
516
+ const oname = option.name();
517
+ const name = option.attributeName();
518
+
519
+ let defaultValue = option.defaultValue;
520
+
521
+ // preassign default value for --no-*, [optional], <required>, or plain flag if boolean value
522
+ if (option.negate || option.optional || option.required || typeof defaultValue === 'boolean') {
523
+ // when --no-foo we make sure default is true, unless a --foo option is already defined
524
+ if (option.negate) {
525
+ const positiveLongFlag = option.long.replace(/^--no-/, '--');
526
+ defaultValue = this._findOption(positiveLongFlag) ? this.getOptionValue(name) : true;
527
+ }
528
+ // preassign only if we have a default
529
+ if (defaultValue !== undefined) {
530
+ this.setOptionValueWithSource(name, defaultValue, 'default');
531
+ }
532
+ }
533
+
534
+ // register the option
535
+ this.options.push(option);
536
+
537
+ // handler for cli and env supplied values
538
+ const handleOptionValue = (val, invalidValueMessage, valueSource) => {
539
+ // Note: using closure to access lots of lexical scoped variables.
540
+ const oldValue = this.getOptionValue(name);
541
+
542
+ // custom processing
543
+ if (val !== null && option.parseArg) {
544
+ try {
545
+ val = option.parseArg(val, oldValue === undefined ? defaultValue : oldValue);
546
+ } catch (err) {
547
+ if (err.code === 'commander.invalidArgument') {
548
+ const message = `${invalidValueMessage} ${err.message}`;
549
+ this._displayError(err.exitCode, err.code, message);
550
+ }
551
+ throw err;
552
+ }
553
+ } else if (val !== null && option.variadic) {
554
+ val = option._concatValue(val, oldValue);
555
+ }
556
+
557
+ // unassigned or boolean value
558
+ if (typeof oldValue === 'boolean' || typeof oldValue === 'undefined') {
559
+ // if no value, negate false, and we have a default, then use it!
560
+ if (val == null) {
561
+ this.setOptionValueWithSource(name, option.negate ? false : defaultValue || true, valueSource);
562
+ } else {
563
+ this.setOptionValueWithSource(name, val, valueSource);
564
+ }
565
+ } else if (val !== null) {
566
+ // reassign
567
+ this.setOptionValueWithSource(name, option.negate ? false : val, valueSource);
568
+ }
569
+ };
570
+
571
+ this.on('option:' + oname, (val) => {
572
+ const invalidValueMessage = `error: option '${option.flags}' argument '${val}' is invalid.`;
573
+ handleOptionValue(val, invalidValueMessage, 'cli');
574
+ });
575
+
576
+ if (option.envVar) {
577
+ this.on('optionEnv:' + oname, (val) => {
578
+ const invalidValueMessage = `error: option '${option.flags}' value '${val}' from env '${option.envVar}' is invalid.`;
579
+ handleOptionValue(val, invalidValueMessage, 'env');
580
+ });
581
+ }
582
+
583
+ return this;
584
+ }
585
+
586
+ /**
587
+ * Internal implementation shared by .option() and .requiredOption()
588
+ *
589
+ * @api private
590
+ */
591
+ _optionEx(config, flags, description, fn, defaultValue) {
592
+ const option = this.createOption(flags, description);
593
+ option.makeOptionMandatory(!!config.mandatory);
594
+ if (typeof fn === 'function') {
595
+ option.default(defaultValue).argParser(fn);
596
+ } else if (fn instanceof RegExp) {
597
+ // deprecated
598
+ const regex = fn;
599
+ fn = (val, def) => {
600
+ const m = regex.exec(val);
601
+ return m ? m[0] : def;
602
+ };
603
+ option.default(defaultValue).argParser(fn);
604
+ } else {
605
+ option.default(fn);
606
+ }
607
+
608
+ return this.addOption(option);
609
+ }
610
+
611
+ /**
612
+ * Define option with `flags`, `description` and optional
613
+ * coercion `fn`.
614
+ *
615
+ * The `flags` string contains the short and/or long flags,
616
+ * separated by comma, a pipe or space. The following are all valid
617
+ * all will output this way when `--help` is used.
618
+ *
619
+ * "-p, --pepper"
620
+ * "-p|--pepper"
621
+ * "-p --pepper"
622
+ *
623
+ * @example
624
+ * // simple boolean defaulting to undefined
625
+ * program.option('-p, --pepper', 'add pepper');
626
+ *
627
+ * program.pepper
628
+ * // => undefined
629
+ *
630
+ * --pepper
631
+ * program.pepper
632
+ * // => true
633
+ *
634
+ * // simple boolean defaulting to true (unless non-negated option is also defined)
635
+ * program.option('-C, --no-cheese', 'remove cheese');
636
+ *
637
+ * program.cheese
638
+ * // => true
639
+ *
640
+ * --no-cheese
641
+ * program.cheese
642
+ * // => false
643
+ *
644
+ * // required argument
645
+ * program.option('-C, --chdir <path>', 'change the working directory');
646
+ *
647
+ * --chdir /tmp
648
+ * program.chdir
649
+ * // => "/tmp"
650
+ *
651
+ * // optional argument
652
+ * program.option('-c, --cheese [type]', 'add cheese [marble]');
653
+ *
654
+ * @param {string} flags
655
+ * @param {string} [description]
656
+ * @param {Function|*} [fn] - custom option processing function or default value
657
+ * @param {*} [defaultValue]
658
+ * @return {Command} `this` command for chaining
659
+ */
660
+
661
+ option(flags, description, fn, defaultValue) {
662
+ return this._optionEx({}, flags, description, fn, defaultValue);
663
+ };
664
+
665
+ /**
666
+ * Add a required option which must have a value after parsing. This usually means
667
+ * the option must be specified on the command line. (Otherwise the same as .option().)
668
+ *
669
+ * The `flags` string contains the short and/or long flags, separated by comma, a pipe or space.
670
+ *
671
+ * @param {string} flags
672
+ * @param {string} [description]
673
+ * @param {Function|*} [fn] - custom option processing function or default value
674
+ * @param {*} [defaultValue]
675
+ * @return {Command} `this` command for chaining
676
+ */
677
+
678
+ requiredOption(flags, description, fn, defaultValue) {
679
+ return this._optionEx({ mandatory: true }, flags, description, fn, defaultValue);
680
+ };
681
+
682
+ /**
683
+ * Alter parsing of short flags with optional values.
684
+ *
685
+ * @example
686
+ * // for `.option('-f,--flag [value]'):
687
+ * program.combineFlagAndOptionalValue(true); // `-f80` is treated like `--flag=80`, this is the default behaviour
688
+ * program.combineFlagAndOptionalValue(false) // `-fb` is treated like `-f -b`
689
+ *
690
+ * @param {Boolean} [combine=true] - if `true` or omitted, an optional value can be specified directly after the flag.
691
+ */
692
+ combineFlagAndOptionalValue(combine = true) {
693
+ this._combineFlagAndOptionalValue = !!combine;
694
+ return this;
695
+ };
696
+
697
+ /**
698
+ * Allow unknown options on the command line.
699
+ *
700
+ * @param {Boolean} [allowUnknown=true] - if `true` or omitted, no error will be thrown
701
+ * for unknown options.
702
+ */
703
+ allowUnknownOption(allowUnknown = true) {
704
+ this._allowUnknownOption = !!allowUnknown;
705
+ return this;
706
+ };
707
+
708
+ /**
709
+ * Allow excess command-arguments on the command line. Pass false to make excess arguments an error.
710
+ *
711
+ * @param {Boolean} [allowExcess=true] - if `true` or omitted, no error will be thrown
712
+ * for excess arguments.
713
+ */
714
+ allowExcessArguments(allowExcess = true) {
715
+ this._allowExcessArguments = !!allowExcess;
716
+ return this;
717
+ };
718
+
719
+ /**
720
+ * Enable positional options. Positional means global options are specified before subcommands which lets
721
+ * subcommands reuse the same option names, and also enables subcommands to turn on passThroughOptions.
722
+ * The default behaviour is non-positional and global options may appear anywhere on the command line.
723
+ *
724
+ * @param {Boolean} [positional=true]
725
+ */
726
+ enablePositionalOptions(positional = true) {
727
+ this._enablePositionalOptions = !!positional;
728
+ return this;
729
+ };
730
+
731
+ /**
732
+ * Pass through options that come after command-arguments rather than treat them as command-options,
733
+ * so actual command-options come before command-arguments. Turning this on for a subcommand requires
734
+ * positional options to have been enabled on the program (parent commands).
735
+ * The default behaviour is non-positional and options may appear before or after command-arguments.
736
+ *
737
+ * @param {Boolean} [passThrough=true]
738
+ * for unknown options.
739
+ */
740
+ passThroughOptions(passThrough = true) {
741
+ this._passThroughOptions = !!passThrough;
742
+ if (!!this.parent && passThrough && !this.parent._enablePositionalOptions) {
743
+ throw new Error('passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)');
744
+ }
745
+ return this;
746
+ };
747
+
748
+ /**
749
+ * Whether to store option values as properties on command object,
750
+ * or store separately (specify false). In both cases the option values can be accessed using .opts().
751
+ *
752
+ * @param {boolean} [storeAsProperties=true]
753
+ * @return {Command} `this` command for chaining
754
+ */
755
+
756
+ storeOptionsAsProperties(storeAsProperties = true) {
757
+ this._storeOptionsAsProperties = !!storeAsProperties;
758
+ if (this.options.length) {
759
+ throw new Error('call .storeOptionsAsProperties() before adding options');
760
+ }
761
+ return this;
762
+ };
763
+
764
+ /**
765
+ * Retrieve option value.
766
+ *
767
+ * @param {string} key
768
+ * @return {Object} value
769
+ */
770
+
771
+ getOptionValue(key) {
772
+ if (this._storeOptionsAsProperties) {
773
+ return this[key];
774
+ }
775
+ return this._optionValues[key];
776
+ };
777
+
778
+ /**
779
+ * Store option value.
780
+ *
781
+ * @param {string} key
782
+ * @param {Object} value
783
+ * @return {Command} `this` command for chaining
784
+ */
785
+
786
+ setOptionValue(key, value) {
787
+ if (this._storeOptionsAsProperties) {
788
+ this[key] = value;
789
+ } else {
790
+ this._optionValues[key] = value;
791
+ }
792
+ return this;
793
+ };
794
+
795
+ /**
796
+ * Store option value and where the value came from.
797
+ *
798
+ * @param {string} key
799
+ * @param {Object} value
800
+ * @param {string} source - expected values are default/config/env/cli
801
+ * @return {Command} `this` command for chaining
802
+ */
803
+
804
+ setOptionValueWithSource(key, value, source) {
805
+ this.setOptionValue(key, value);
806
+ this._optionValueSources[key] = source;
807
+ return this;
808
+ }
809
+
810
+ /**
811
+ * Get source of option value.
812
+ * Expected values are default | config | env | cli
813
+ *
814
+ * @param {string} key
815
+ * @return {string}
816
+ */
817
+
818
+ getOptionValueSource(key) {
819
+ return this._optionValueSources[key];
820
+ };
821
+
822
+ /**
823
+ * Get user arguments implied or explicit arguments.
824
+ * Side-effects: set _scriptPath if args included application, and use that to set implicit command name.
825
+ *
826
+ * @api private
827
+ */
828
+
829
+ _prepareUserArgs(argv, parseOptions) {
830
+ if (argv !== undefined && !Array.isArray(argv)) {
831
+ throw new Error('first parameter to parse must be array or undefined');
832
+ }
833
+ parseOptions = parseOptions || {};
834
+
835
+ // Default to using process.argv
836
+ if (argv === undefined) {
837
+ argv = process.argv;
838
+ // @ts-ignore: unknown property
839
+ if (process.versions && process.versions.electron) {
840
+ parseOptions.from = 'electron';
841
+ }
842
+ }
843
+ this.rawArgs = argv.slice();
844
+
845
+ // make it a little easier for callers by supporting various argv conventions
846
+ let userArgs;
847
+ switch (parseOptions.from) {
848
+ case undefined:
849
+ case 'node':
850
+ this._scriptPath = argv[1];
851
+ userArgs = argv.slice(2);
852
+ break;
853
+ case 'electron':
854
+ // @ts-ignore: unknown property
855
+ if (process.defaultApp) {
856
+ this._scriptPath = argv[1];
857
+ userArgs = argv.slice(2);
858
+ } else {
859
+ userArgs = argv.slice(1);
860
+ }
861
+ break;
862
+ case 'user':
863
+ userArgs = argv.slice(0);
864
+ break;
865
+ default:
866
+ throw new Error(`unexpected parse option { from: '${parseOptions.from}' }`);
867
+ }
868
+ if (!this._scriptPath && require.main) {
869
+ this._scriptPath = require.main.filename;
870
+ }
871
+
872
+ // Guess name, used in usage in help.
873
+ this._name = this._name || (this._scriptPath && path.basename(this._scriptPath, path.extname(this._scriptPath)));
874
+
875
+ return userArgs;
876
+ }
877
+
878
+ /**
879
+ * Parse `argv`, setting options and invoking commands when defined.
880
+ *
881
+ * The default expectation is that the arguments are from node and have the application as argv[0]
882
+ * and the script being run in argv[1], with user parameters after that.
883
+ *
884
+ * @example
885
+ * program.parse(process.argv);
886
+ * program.parse(); // implicitly use process.argv and auto-detect node vs electron conventions
887
+ * program.parse(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
888
+ *
889
+ * @param {string[]} [argv] - optional, defaults to process.argv
890
+ * @param {Object} [parseOptions] - optionally specify style of options with from: node/user/electron
891
+ * @param {string} [parseOptions.from] - where the args are from: 'node', 'user', 'electron'
892
+ * @return {Command} `this` command for chaining
893
+ */
894
+
895
+ parse(argv, parseOptions) {
896
+ const userArgs = this._prepareUserArgs(argv, parseOptions);
897
+ this._parseCommand([], userArgs);
898
+
899
+ return this;
900
+ };
901
+
902
+ /**
903
+ * Parse `argv`, setting options and invoking commands when defined.
904
+ *
905
+ * Use parseAsync instead of parse if any of your action handlers are async. Returns a Promise.
906
+ *
907
+ * The default expectation is that the arguments are from node and have the application as argv[0]
908
+ * and the script being run in argv[1], with user parameters after that.
909
+ *
910
+ * @example
911
+ * await program.parseAsync(process.argv);
912
+ * await program.parseAsync(); // implicitly use process.argv and auto-detect node vs electron conventions
913
+ * await program.parseAsync(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
914
+ *
915
+ * @param {string[]} [argv]
916
+ * @param {Object} [parseOptions]
917
+ * @param {string} parseOptions.from - where the args are from: 'node', 'user', 'electron'
918
+ * @return {Promise}
919
+ */
920
+
921
+ async parseAsync(argv, parseOptions) {
922
+ const userArgs = this._prepareUserArgs(argv, parseOptions);
923
+ await this._parseCommand([], userArgs);
924
+
925
+ return this;
926
+ };
927
+
928
+ /**
929
+ * Execute a sub-command executable.
930
+ *
931
+ * @api private
932
+ */
933
+
934
+ _executeSubCommand(subcommand, args) {
935
+ args = args.slice();
936
+ let launchWithNode = false; // Use node for source targets so do not need to get permissions correct, and on Windows.
937
+ const sourceExt = ['.js', '.ts', '.tsx', '.mjs', '.cjs'];
938
+
939
+ // Not checking for help first. Unlikely to have mandatory and executable, and can't robustly test for help flags in external command.
940
+ this._checkForMissingMandatoryOptions();
941
+
942
+ // Want the entry script as the reference for command name and directory for searching for other files.
943
+ let scriptPath = this._scriptPath;
944
+ // Fallback in case not set, due to how Command created or called.
945
+ if (!scriptPath && require.main) {
946
+ scriptPath = require.main.filename;
947
+ }
948
+
949
+ let baseDir;
950
+ try {
951
+ const resolvedLink = fs.realpathSync(scriptPath);
952
+ baseDir = path.dirname(resolvedLink);
953
+ } catch (e) {
954
+ baseDir = '.'; // dummy, probably not going to find executable!
955
+ }
956
+
957
+ // name of the subcommand, like `pm-install`
958
+ let bin = path.basename(scriptPath, path.extname(scriptPath)) + '-' + subcommand._name;
959
+ if (subcommand._executableFile) {
960
+ bin = subcommand._executableFile;
961
+ }
962
+
963
+ const localBin = path.join(baseDir, bin);
964
+ if (fs.existsSync(localBin)) {
965
+ // prefer local `./<bin>` to bin in the $PATH
966
+ bin = localBin;
967
+ } else {
968
+ // Look for source files.
969
+ sourceExt.forEach((ext) => {
970
+ if (fs.existsSync(`${localBin}${ext}`)) {
971
+ bin = `${localBin}${ext}`;
972
+ }
973
+ });
974
+ }
975
+ launchWithNode = sourceExt.includes(path.extname(bin));
976
+
977
+ let proc;
978
+ if (process.platform !== 'win32') {
979
+ if (launchWithNode) {
980
+ args.unshift(bin);
981
+ // add executable arguments to spawn
982
+ args = incrementNodeInspectorPort(process.execArgv).concat(args);
983
+
984
+ proc = childProcess.spawn(process.argv[0], args, { stdio: 'inherit' });
985
+ } else {
986
+ proc = childProcess.spawn(bin, args, { stdio: 'inherit' });
987
+ }
988
+ } else {
989
+ args.unshift(bin);
990
+ // add executable arguments to spawn
991
+ args = incrementNodeInspectorPort(process.execArgv).concat(args);
992
+ proc = childProcess.spawn(process.execPath, args, { stdio: 'inherit' });
993
+ }
994
+
995
+ const signals = ['SIGUSR1', 'SIGUSR2', 'SIGTERM', 'SIGINT', 'SIGHUP'];
996
+ signals.forEach((signal) => {
997
+ // @ts-ignore
998
+ process.on(signal, () => {
999
+ if (proc.killed === false && proc.exitCode === null) {
1000
+ proc.kill(signal);
1001
+ }
1002
+ });
1003
+ });
1004
+
1005
+ // By default terminate process when spawned process terminates.
1006
+ // Suppressing the exit if exitCallback defined is a bit messy and of limited use, but does allow process to stay running!
1007
+ const exitCallback = this._exitCallback;
1008
+ if (!exitCallback) {
1009
+ proc.on('close', process.exit.bind(process));
1010
+ } else {
1011
+ proc.on('close', () => {
1012
+ exitCallback(new CommanderError(process.exitCode || 0, 'commander.executeSubCommandAsync', '(close)'));
1013
+ });
1014
+ }
1015
+ proc.on('error', (err) => {
1016
+ // @ts-ignore
1017
+ if (err.code === 'ENOENT') {
1018
+ const executableMissing = `'${bin}' does not exist
1019
+ - if '${subcommand._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
1020
+ - if the default executable name is not suitable, use the executableFile option to supply a custom name`;
1021
+ throw new Error(executableMissing);
1022
+ // @ts-ignore
1023
+ } else if (err.code === 'EACCES') {
1024
+ throw new Error(`'${bin}' not executable`);
1025
+ }
1026
+ if (!exitCallback) {
1027
+ process.exit(1);
1028
+ } else {
1029
+ const wrappedError = new CommanderError(1, 'commander.executeSubCommandAsync', '(error)');
1030
+ wrappedError.nestedError = err;
1031
+ exitCallback(wrappedError);
1032
+ }
1033
+ });
1034
+
1035
+ // Store the reference to the child process
1036
+ this.runningCommand = proc;
1037
+ };
1038
+
1039
+ /**
1040
+ * @api private
1041
+ */
1042
+
1043
+ _dispatchSubcommand(commandName, operands, unknown) {
1044
+ const subCommand = this._findCommand(commandName);
1045
+ if (!subCommand) this.help({ error: true });
1046
+
1047
+ if (subCommand._executableHandler) {
1048
+ this._executeSubCommand(subCommand, operands.concat(unknown));
1049
+ } else {
1050
+ return subCommand._parseCommand(operands, unknown);
1051
+ }
1052
+ };
1053
+
1054
+ /**
1055
+ * Check this.args against expected this._args.
1056
+ *
1057
+ * @api private
1058
+ */
1059
+
1060
+ _checkNumberOfArguments() {
1061
+ // too few
1062
+ this._args.forEach((arg, i) => {
1063
+ if (arg.required && this.args[i] == null) {
1064
+ this.missingArgument(arg.name());
1065
+ }
1066
+ });
1067
+ // too many
1068
+ if (this._args.length > 0 && this._args[this._args.length - 1].variadic) {
1069
+ return;
1070
+ }
1071
+ if (this.args.length > this._args.length) {
1072
+ this._excessArguments(this.args);
1073
+ }
1074
+ };
1075
+
1076
+ /**
1077
+ * Process this.args using this._args and save as this.processedArgs!
1078
+ *
1079
+ * @api private
1080
+ */
1081
+
1082
+ _processArguments() {
1083
+ const myParseArg = (argument, value, previous) => {
1084
+ // Extra processing for nice error message on parsing failure.
1085
+ let parsedValue = value;
1086
+ if (value !== null && argument.parseArg) {
1087
+ try {
1088
+ parsedValue = argument.parseArg(value, previous);
1089
+ } catch (err) {
1090
+ if (err.code === 'commander.invalidArgument') {
1091
+ const message = `error: command-argument value '${value}' is invalid for argument '${argument.name()}'. ${err.message}`;
1092
+ this._displayError(err.exitCode, err.code, message);
1093
+ }
1094
+ throw err;
1095
+ }
1096
+ }
1097
+ return parsedValue;
1098
+ };
1099
+
1100
+ this._checkNumberOfArguments();
1101
+
1102
+ const processedArgs = [];
1103
+ this._args.forEach((declaredArg, index) => {
1104
+ let value = declaredArg.defaultValue;
1105
+ if (declaredArg.variadic) {
1106
+ // Collect together remaining arguments for passing together as an array.
1107
+ if (index < this.args.length) {
1108
+ value = this.args.slice(index);
1109
+ if (declaredArg.parseArg) {
1110
+ value = value.reduce((processed, v) => {
1111
+ return myParseArg(declaredArg, v, processed);
1112
+ }, declaredArg.defaultValue);
1113
+ }
1114
+ } else if (value === undefined) {
1115
+ value = [];
1116
+ }
1117
+ } else if (index < this.args.length) {
1118
+ value = this.args[index];
1119
+ if (declaredArg.parseArg) {
1120
+ value = myParseArg(declaredArg, value, declaredArg.defaultValue);
1121
+ }
1122
+ }
1123
+ processedArgs[index] = value;
1124
+ });
1125
+ this.processedArgs = processedArgs;
1126
+ }
1127
+
1128
+ /**
1129
+ * Once we have a promise we chain, but call synchronously until then.
1130
+ *
1131
+ * @param {Promise|undefined} promise
1132
+ * @param {Function} fn
1133
+ * @return {Promise|undefined}
1134
+ * @api private
1135
+ */
1136
+
1137
+ _chainOrCall(promise, fn) {
1138
+ // thenable
1139
+ if (promise && promise.then && typeof promise.then === 'function') {
1140
+ // already have a promise, chain callback
1141
+ return promise.then(() => fn());
1142
+ }
1143
+ // callback might return a promise
1144
+ return fn();
1145
+ }
1146
+
1147
+ /**
1148
+ *
1149
+ * @param {Promise|undefined} promise
1150
+ * @param {string} event
1151
+ * @return {Promise|undefined}
1152
+ * @api private
1153
+ */
1154
+
1155
+ _chainOrCallHooks(promise, event) {
1156
+ let result = promise;
1157
+ const hooks = [];
1158
+ getCommandAndParents(this)
1159
+ .reverse()
1160
+ .filter(cmd => cmd._lifeCycleHooks[event] !== undefined)
1161
+ .forEach(hookedCommand => {
1162
+ hookedCommand._lifeCycleHooks[event].forEach((callback) => {
1163
+ hooks.push({ hookedCommand, callback });
1164
+ });
1165
+ });
1166
+ if (event === 'postAction') {
1167
+ hooks.reverse();
1168
+ }
1169
+
1170
+ hooks.forEach((hookDetail) => {
1171
+ result = this._chainOrCall(result, () => {
1172
+ return hookDetail.callback(hookDetail.hookedCommand, this);
1173
+ });
1174
+ });
1175
+ return result;
1176
+ }
1177
+
1178
+ /**
1179
+ * Process arguments in context of this command.
1180
+ * Returns action result, in case it is a promise.
1181
+ *
1182
+ * @api private
1183
+ */
1184
+
1185
+ _parseCommand(operands, unknown) {
1186
+ const parsed = this.parseOptions(unknown);
1187
+ this._parseOptionsEnv(); // after cli, so parseArg not called on both cli and env
1188
+ operands = operands.concat(parsed.operands);
1189
+ unknown = parsed.unknown;
1190
+ this.args = operands.concat(unknown);
1191
+
1192
+ if (operands && this._findCommand(operands[0])) {
1193
+ return this._dispatchSubcommand(operands[0], operands.slice(1), unknown);
1194
+ }
1195
+ if (this._hasImplicitHelpCommand() && operands[0] === this._helpCommandName) {
1196
+ if (operands.length === 1) {
1197
+ this.help();
1198
+ }
1199
+ return this._dispatchSubcommand(operands[1], [], [this._helpLongFlag]);
1200
+ }
1201
+ if (this._defaultCommandName) {
1202
+ outputHelpIfRequested(this, unknown); // Run the help for default command from parent rather than passing to default command
1203
+ return this._dispatchSubcommand(this._defaultCommandName, operands, unknown);
1204
+ }
1205
+ if (this.commands.length && this.args.length === 0 && !this._actionHandler && !this._defaultCommandName) {
1206
+ // probably missing subcommand and no handler, user needs help (and exit)
1207
+ this.help({ error: true });
1208
+ }
1209
+
1210
+ outputHelpIfRequested(this, parsed.unknown);
1211
+ this._checkForMissingMandatoryOptions();
1212
+
1213
+ // We do not always call this check to avoid masking a "better" error, like unknown command.
1214
+ const checkForUnknownOptions = () => {
1215
+ if (parsed.unknown.length > 0) {
1216
+ this.unknownOption(parsed.unknown[0]);
1217
+ }
1218
+ };
1219
+
1220
+ const commandEvent = `command:${this.name()}`;
1221
+ if (this._actionHandler) {
1222
+ checkForUnknownOptions();
1223
+ this._processArguments();
1224
+
1225
+ let actionResult;
1226
+ actionResult = this._chainOrCallHooks(actionResult, 'preAction');
1227
+ actionResult = this._chainOrCall(actionResult, () => this._actionHandler(this.processedArgs));
1228
+ if (this.parent) this.parent.emit(commandEvent, operands, unknown); // legacy
1229
+ actionResult = this._chainOrCallHooks(actionResult, 'postAction');
1230
+ return actionResult;
1231
+ }
1232
+ if (this.parent && this.parent.listenerCount(commandEvent)) {
1233
+ checkForUnknownOptions();
1234
+ this._processArguments();
1235
+ this.parent.emit(commandEvent, operands, unknown); // legacy
1236
+ } else if (operands.length) {
1237
+ if (this._findCommand('*')) { // legacy default command
1238
+ return this._dispatchSubcommand('*', operands, unknown);
1239
+ }
1240
+ if (this.listenerCount('command:*')) {
1241
+ // skip option check, emit event for possible misspelling suggestion
1242
+ this.emit('command:*', operands, unknown);
1243
+ } else if (this.commands.length) {
1244
+ this.unknownCommand();
1245
+ } else {
1246
+ checkForUnknownOptions();
1247
+ this._processArguments();
1248
+ }
1249
+ } else if (this.commands.length) {
1250
+ checkForUnknownOptions();
1251
+ // This command has subcommands and nothing hooked up at this level, so display help (and exit).
1252
+ this.help({ error: true });
1253
+ } else {
1254
+ checkForUnknownOptions();
1255
+ this._processArguments();
1256
+ // fall through for caller to handle after calling .parse()
1257
+ }
1258
+ };
1259
+
1260
+ /**
1261
+ * Find matching command.
1262
+ *
1263
+ * @api private
1264
+ */
1265
+ _findCommand(name) {
1266
+ if (!name) return undefined;
1267
+ return this.commands.find(cmd => cmd._name === name || cmd._aliases.includes(name));
1268
+ };
1269
+
1270
+ /**
1271
+ * Return an option matching `arg` if any.
1272
+ *
1273
+ * @param {string} arg
1274
+ * @return {Option}
1275
+ * @api private
1276
+ */
1277
+
1278
+ _findOption(arg) {
1279
+ return this.options.find(option => option.is(arg));
1280
+ };
1281
+
1282
+ /**
1283
+ * Display an error message if a mandatory option does not have a value.
1284
+ * Lazy calling after checking for help flags from leaf subcommand.
1285
+ *
1286
+ * @api private
1287
+ */
1288
+
1289
+ _checkForMissingMandatoryOptions() {
1290
+ // Walk up hierarchy so can call in subcommand after checking for displaying help.
1291
+ for (let cmd = this; cmd; cmd = cmd.parent) {
1292
+ cmd.options.forEach((anOption) => {
1293
+ if (anOption.mandatory && (cmd.getOptionValue(anOption.attributeName()) === undefined)) {
1294
+ cmd.missingMandatoryOptionValue(anOption);
1295
+ }
1296
+ });
1297
+ }
1298
+ };
1299
+
1300
+ /**
1301
+ * Parse options from `argv` removing known options,
1302
+ * and return argv split into operands and unknown arguments.
1303
+ *
1304
+ * Examples:
1305
+ *
1306
+ * argv => operands, unknown
1307
+ * --known kkk op => [op], []
1308
+ * op --known kkk => [op], []
1309
+ * sub --unknown uuu op => [sub], [--unknown uuu op]
1310
+ * sub -- --unknown uuu op => [sub --unknown uuu op], []
1311
+ *
1312
+ * @param {String[]} argv
1313
+ * @return {{operands: String[], unknown: String[]}}
1314
+ */
1315
+
1316
+ parseOptions(argv) {
1317
+ const operands = []; // operands, not options or values
1318
+ const unknown = []; // first unknown option and remaining unknown args
1319
+ let dest = operands;
1320
+ const args = argv.slice();
1321
+
1322
+ function maybeOption(arg) {
1323
+ return arg.length > 1 && arg[0] === '-';
1324
+ }
1325
+
1326
+ // parse options
1327
+ let activeVariadicOption = null;
1328
+ while (args.length) {
1329
+ const arg = args.shift();
1330
+
1331
+ // literal
1332
+ if (arg === '--') {
1333
+ if (dest === unknown) dest.push(arg);
1334
+ dest.push(...args);
1335
+ break;
1336
+ }
1337
+
1338
+ if (activeVariadicOption && !maybeOption(arg)) {
1339
+ this.emit(`option:${activeVariadicOption.name()}`, arg);
1340
+ continue;
1341
+ }
1342
+ activeVariadicOption = null;
1343
+
1344
+ if (maybeOption(arg)) {
1345
+ const option = this._findOption(arg);
1346
+ // recognised option, call listener to assign value with possible custom processing
1347
+ if (option) {
1348
+ if (option.required) {
1349
+ const value = args.shift();
1350
+ if (value === undefined) this.optionMissingArgument(option);
1351
+ this.emit(`option:${option.name()}`, value);
1352
+ } else if (option.optional) {
1353
+ let value = null;
1354
+ // historical behaviour is optional value is following arg unless an option
1355
+ if (args.length > 0 && !maybeOption(args[0])) {
1356
+ value = args.shift();
1357
+ }
1358
+ this.emit(`option:${option.name()}`, value);
1359
+ } else { // boolean flag
1360
+ this.emit(`option:${option.name()}`);
1361
+ }
1362
+ activeVariadicOption = option.variadic ? option : null;
1363
+ continue;
1364
+ }
1365
+ }
1366
+
1367
+ // Look for combo options following single dash, eat first one if known.
1368
+ if (arg.length > 2 && arg[0] === '-' && arg[1] !== '-') {
1369
+ const option = this._findOption(`-${arg[1]}`);
1370
+ if (option) {
1371
+ if (option.required || (option.optional && this._combineFlagAndOptionalValue)) {
1372
+ // option with value following in same argument
1373
+ this.emit(`option:${option.name()}`, arg.slice(2));
1374
+ } else {
1375
+ // boolean option, emit and put back remainder of arg for further processing
1376
+ this.emit(`option:${option.name()}`);
1377
+ args.unshift(`-${arg.slice(2)}`);
1378
+ }
1379
+ continue;
1380
+ }
1381
+ }
1382
+
1383
+ // Look for known long flag with value, like --foo=bar
1384
+ if (/^--[^=]+=/.test(arg)) {
1385
+ const index = arg.indexOf('=');
1386
+ const option = this._findOption(arg.slice(0, index));
1387
+ if (option && (option.required || option.optional)) {
1388
+ this.emit(`option:${option.name()}`, arg.slice(index + 1));
1389
+ continue;
1390
+ }
1391
+ }
1392
+
1393
+ // Not a recognised option by this command.
1394
+ // Might be a command-argument, or subcommand option, or unknown option, or help command or option.
1395
+
1396
+ // An unknown option means further arguments also classified as unknown so can be reprocessed by subcommands.
1397
+ if (maybeOption(arg)) {
1398
+ dest = unknown;
1399
+ }
1400
+
1401
+ // If using positionalOptions, stop processing our options at subcommand.
1402
+ if ((this._enablePositionalOptions || this._passThroughOptions) && operands.length === 0 && unknown.length === 0) {
1403
+ if (this._findCommand(arg)) {
1404
+ operands.push(arg);
1405
+ if (args.length > 0) unknown.push(...args);
1406
+ break;
1407
+ } else if (arg === this._helpCommandName && this._hasImplicitHelpCommand()) {
1408
+ operands.push(arg);
1409
+ if (args.length > 0) operands.push(...args);
1410
+ break;
1411
+ } else if (this._defaultCommandName) {
1412
+ unknown.push(arg);
1413
+ if (args.length > 0) unknown.push(...args);
1414
+ break;
1415
+ }
1416
+ }
1417
+
1418
+ // If using passThroughOptions, stop processing options at first command-argument.
1419
+ if (this._passThroughOptions) {
1420
+ dest.push(arg);
1421
+ if (args.length > 0) dest.push(...args);
1422
+ break;
1423
+ }
1424
+
1425
+ // add arg
1426
+ dest.push(arg);
1427
+ }
1428
+
1429
+ return { operands, unknown };
1430
+ };
1431
+
1432
+ /**
1433
+ * Return an object containing options as key-value pairs
1434
+ *
1435
+ * @return {Object}
1436
+ */
1437
+ opts() {
1438
+ if (this._storeOptionsAsProperties) {
1439
+ // Preserve original behaviour so backwards compatible when still using properties
1440
+ const result = {};
1441
+ const len = this.options.length;
1442
+
1443
+ for (let i = 0; i < len; i++) {
1444
+ const key = this.options[i].attributeName();
1445
+ result[key] = key === this._versionOptionName ? this._version : this[key];
1446
+ }
1447
+ return result;
1448
+ }
1449
+
1450
+ return this._optionValues;
1451
+ };
1452
+
1453
+ /**
1454
+ * Internal bottleneck for handling of parsing errors.
1455
+ *
1456
+ * @api private
1457
+ */
1458
+ _displayError(exitCode, code, message) {
1459
+ this._outputConfiguration.outputError(`${message}\n`, this._outputConfiguration.writeErr);
1460
+ if (typeof this._showHelpAfterError === 'string') {
1461
+ this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`);
1462
+ } else if (this._showHelpAfterError) {
1463
+ this._outputConfiguration.writeErr('\n');
1464
+ this.outputHelp({ error: true });
1465
+ }
1466
+ this._exit(exitCode, code, message);
1467
+ }
1468
+
1469
+ /**
1470
+ * Apply any option related environment variables, if option does
1471
+ * not have a value from cli or client code.
1472
+ *
1473
+ * @api private
1474
+ */
1475
+ _parseOptionsEnv() {
1476
+ this.options.forEach((option) => {
1477
+ if (option.envVar && option.envVar in process.env) {
1478
+ const optionKey = option.attributeName();
1479
+ // Priority check. Do not overwrite cli or options from unknown source (client-code).
1480
+ if (this.getOptionValue(optionKey) === undefined || ['default', 'config', 'env'].includes(this.getOptionValueSource(optionKey))) {
1481
+ if (option.required || option.optional) { // option can take a value
1482
+ // keep very simple, optional always takes value
1483
+ this.emit(`optionEnv:${option.name()}`, process.env[option.envVar]);
1484
+ } else { // boolean
1485
+ // keep very simple, only care that envVar defined and not the value
1486
+ this.emit(`optionEnv:${option.name()}`);
1487
+ }
1488
+ }
1489
+ }
1490
+ });
1491
+ }
1492
+
1493
+ /**
1494
+ * Argument `name` is missing.
1495
+ *
1496
+ * @param {string} name
1497
+ * @api private
1498
+ */
1499
+
1500
+ missingArgument(name) {
1501
+ const message = `error: missing required argument '${name}'`;
1502
+ this._displayError(1, 'commander.missingArgument', message);
1503
+ };
1504
+
1505
+ /**
1506
+ * `Option` is missing an argument.
1507
+ *
1508
+ * @param {Option} option
1509
+ * @api private
1510
+ */
1511
+
1512
+ optionMissingArgument(option) {
1513
+ const message = `error: option '${option.flags}' argument missing`;
1514
+ this._displayError(1, 'commander.optionMissingArgument', message);
1515
+ };
1516
+
1517
+ /**
1518
+ * `Option` does not have a value, and is a mandatory option.
1519
+ *
1520
+ * @param {Option} option
1521
+ * @api private
1522
+ */
1523
+
1524
+ missingMandatoryOptionValue(option) {
1525
+ const message = `error: required option '${option.flags}' not specified`;
1526
+ this._displayError(1, 'commander.missingMandatoryOptionValue', message);
1527
+ };
1528
+
1529
+ /**
1530
+ * Unknown option `flag`.
1531
+ *
1532
+ * @param {string} flag
1533
+ * @api private
1534
+ */
1535
+
1536
+ unknownOption(flag) {
1537
+ if (this._allowUnknownOption) return;
1538
+ let suggestion = '';
1539
+
1540
+ if (flag.startsWith('--') && this._showSuggestionAfterError) {
1541
+ // Looping to pick up the global options too
1542
+ let candidateFlags = [];
1543
+ let command = this;
1544
+ do {
1545
+ const moreFlags = command.createHelp().visibleOptions(command)
1546
+ .filter(option => option.long)
1547
+ .map(option => option.long);
1548
+ candidateFlags = candidateFlags.concat(moreFlags);
1549
+ command = command.parent;
1550
+ } while (command && !command._enablePositionalOptions);
1551
+ suggestion = suggestSimilar(flag, candidateFlags);
1552
+ }
1553
+
1554
+ const message = `error: unknown option '${flag}'${suggestion}`;
1555
+ this._displayError(1, 'commander.unknownOption', message);
1556
+ };
1557
+
1558
+ /**
1559
+ * Excess arguments, more than expected.
1560
+ *
1561
+ * @param {string[]} receivedArgs
1562
+ * @api private
1563
+ */
1564
+
1565
+ _excessArguments(receivedArgs) {
1566
+ if (this._allowExcessArguments) return;
1567
+
1568
+ const expected = this._args.length;
1569
+ const s = (expected === 1) ? '' : 's';
1570
+ const forSubcommand = this.parent ? ` for '${this.name()}'` : '';
1571
+ const message = `error: too many arguments${forSubcommand}. Expected ${expected} argument${s} but got ${receivedArgs.length}.`;
1572
+ this._displayError(1, 'commander.excessArguments', message);
1573
+ };
1574
+
1575
+ /**
1576
+ * Unknown command.
1577
+ *
1578
+ * @api private
1579
+ */
1580
+
1581
+ unknownCommand() {
1582
+ const unknownName = this.args[0];
1583
+ let suggestion = '';
1584
+
1585
+ if (this._showSuggestionAfterError) {
1586
+ const candidateNames = [];
1587
+ this.createHelp().visibleCommands(this).forEach((command) => {
1588
+ candidateNames.push(command.name());
1589
+ // just visible alias
1590
+ if (command.alias()) candidateNames.push(command.alias());
1591
+ });
1592
+ suggestion = suggestSimilar(unknownName, candidateNames);
1593
+ }
1594
+
1595
+ const message = `error: unknown command '${unknownName}'${suggestion}`;
1596
+ this._displayError(1, 'commander.unknownCommand', message);
1597
+ };
1598
+
1599
+ /**
1600
+ * Set the program version to `str`.
1601
+ *
1602
+ * This method auto-registers the "-V, --version" flag
1603
+ * which will print the version number when passed.
1604
+ *
1605
+ * You can optionally supply the flags and description to override the defaults.
1606
+ *
1607
+ * @param {string} str
1608
+ * @param {string} [flags]
1609
+ * @param {string} [description]
1610
+ * @return {this | string} `this` command for chaining, or version string if no arguments
1611
+ */
1612
+
1613
+ version(str, flags, description) {
1614
+ if (str === undefined) return this._version;
1615
+ this._version = str;
1616
+ flags = flags || '-V, --version';
1617
+ description = description || 'output the version number';
1618
+ const versionOption = this.createOption(flags, description);
1619
+ this._versionOptionName = versionOption.attributeName();
1620
+ this.options.push(versionOption);
1621
+ this.on('option:' + versionOption.name(), () => {
1622
+ this._outputConfiguration.writeOut(`${str}\n`);
1623
+ this._exit(0, 'commander.version', str);
1624
+ });
1625
+ return this;
1626
+ };
1627
+
1628
+ /**
1629
+ * Set the description to `str`.
1630
+ *
1631
+ * @param {string} [str]
1632
+ * @param {Object} [argsDescription]
1633
+ * @return {string|Command}
1634
+ */
1635
+ description(str, argsDescription) {
1636
+ if (str === undefined && argsDescription === undefined) return this._description;
1637
+ this._description = str;
1638
+ if (argsDescription) {
1639
+ this._argsDescription = argsDescription;
1640
+ }
1641
+ return this;
1642
+ };
1643
+
1644
+ /**
1645
+ * Set an alias for the command.
1646
+ *
1647
+ * You may call more than once to add multiple aliases. Only the first alias is shown in the auto-generated help.
1648
+ *
1649
+ * @param {string} [alias]
1650
+ * @return {string|Command}
1651
+ */
1652
+
1653
+ alias(alias) {
1654
+ if (alias === undefined) return this._aliases[0]; // just return first, for backwards compatibility
1655
+
1656
+ /** @type {Command} */
1657
+ let command = this;
1658
+ if (this.commands.length !== 0 && this.commands[this.commands.length - 1]._executableHandler) {
1659
+ // assume adding alias for last added executable subcommand, rather than this
1660
+ command = this.commands[this.commands.length - 1];
1661
+ }
1662
+
1663
+ if (alias === command._name) throw new Error('Command alias can\'t be the same as its name');
1664
+
1665
+ command._aliases.push(alias);
1666
+ return this;
1667
+ };
1668
+
1669
+ /**
1670
+ * Set aliases for the command.
1671
+ *
1672
+ * Only the first alias is shown in the auto-generated help.
1673
+ *
1674
+ * @param {string[]} [aliases]
1675
+ * @return {string[]|Command}
1676
+ */
1677
+
1678
+ aliases(aliases) {
1679
+ // Getter for the array of aliases is the main reason for having aliases() in addition to alias().
1680
+ if (aliases === undefined) return this._aliases;
1681
+
1682
+ aliases.forEach((alias) => this.alias(alias));
1683
+ return this;
1684
+ };
1685
+
1686
+ /**
1687
+ * Set / get the command usage `str`.
1688
+ *
1689
+ * @param {string} [str]
1690
+ * @return {String|Command}
1691
+ */
1692
+
1693
+ usage(str) {
1694
+ if (str === undefined) {
1695
+ if (this._usage) return this._usage;
1696
+
1697
+ const args = this._args.map((arg) => {
1698
+ return humanReadableArgName(arg);
1699
+ });
1700
+ return [].concat(
1701
+ (this.options.length || this._hasHelpOption ? '[options]' : []),
1702
+ (this.commands.length ? '[command]' : []),
1703
+ (this._args.length ? args : [])
1704
+ ).join(' ');
1705
+ }
1706
+
1707
+ this._usage = str;
1708
+ return this;
1709
+ };
1710
+
1711
+ /**
1712
+ * Get or set the name of the command
1713
+ *
1714
+ * @param {string} [str]
1715
+ * @return {string|Command}
1716
+ */
1717
+
1718
+ name(str) {
1719
+ if (str === undefined) return this._name;
1720
+ this._name = str;
1721
+ return this;
1722
+ };
1723
+
1724
+ /**
1725
+ * Return program help documentation.
1726
+ *
1727
+ * @param {{ error: boolean }} [contextOptions] - pass {error:true} to wrap for stderr instead of stdout
1728
+ * @return {string}
1729
+ */
1730
+
1731
+ helpInformation(contextOptions) {
1732
+ const helper = this.createHelp();
1733
+ if (helper.helpWidth === undefined) {
1734
+ helper.helpWidth = (contextOptions && contextOptions.error) ? this._outputConfiguration.getErrHelpWidth() : this._outputConfiguration.getOutHelpWidth();
1735
+ }
1736
+ return helper.formatHelp(this, helper);
1737
+ };
1738
+
1739
+ /**
1740
+ * @api private
1741
+ */
1742
+
1743
+ _getHelpContext(contextOptions) {
1744
+ contextOptions = contextOptions || {};
1745
+ const context = { error: !!contextOptions.error };
1746
+ let write;
1747
+ if (context.error) {
1748
+ write = (arg) => this._outputConfiguration.writeErr(arg);
1749
+ } else {
1750
+ write = (arg) => this._outputConfiguration.writeOut(arg);
1751
+ }
1752
+ context.write = contextOptions.write || write;
1753
+ context.command = this;
1754
+ return context;
1755
+ }
1756
+
1757
+ /**
1758
+ * Output help information for this command.
1759
+ *
1760
+ * Outputs built-in help, and custom text added using `.addHelpText()`.
1761
+ *
1762
+ * @param {{ error: boolean } | Function} [contextOptions] - pass {error:true} to write to stderr instead of stdout
1763
+ */
1764
+
1765
+ outputHelp(contextOptions) {
1766
+ let deprecatedCallback;
1767
+ if (typeof contextOptions === 'function') {
1768
+ deprecatedCallback = contextOptions;
1769
+ contextOptions = undefined;
1770
+ }
1771
+ const context = this._getHelpContext(contextOptions);
1772
+
1773
+ getCommandAndParents(this).reverse().forEach(command => command.emit('beforeAllHelp', context));
1774
+ this.emit('beforeHelp', context);
1775
+
1776
+ let helpInformation = this.helpInformation(context);
1777
+ if (deprecatedCallback) {
1778
+ helpInformation = deprecatedCallback(helpInformation);
1779
+ if (typeof helpInformation !== 'string' && !Buffer.isBuffer(helpInformation)) {
1780
+ throw new Error('outputHelp callback must return a string or a Buffer');
1781
+ }
1782
+ }
1783
+ context.write(helpInformation);
1784
+
1785
+ this.emit(this._helpLongFlag); // deprecated
1786
+ this.emit('afterHelp', context);
1787
+ getCommandAndParents(this).forEach(command => command.emit('afterAllHelp', context));
1788
+ };
1789
+
1790
+ /**
1791
+ * You can pass in flags and a description to override the help
1792
+ * flags and help description for your command. Pass in false to
1793
+ * disable the built-in help option.
1794
+ *
1795
+ * @param {string | boolean} [flags]
1796
+ * @param {string} [description]
1797
+ * @return {Command} `this` command for chaining
1798
+ */
1799
+
1800
+ helpOption(flags, description) {
1801
+ if (typeof flags === 'boolean') {
1802
+ this._hasHelpOption = flags;
1803
+ return this;
1804
+ }
1805
+ this._helpFlags = flags || this._helpFlags;
1806
+ this._helpDescription = description || this._helpDescription;
1807
+
1808
+ const helpFlags = splitOptionFlags(this._helpFlags);
1809
+ this._helpShortFlag = helpFlags.shortFlag;
1810
+ this._helpLongFlag = helpFlags.longFlag;
1811
+
1812
+ return this;
1813
+ };
1814
+
1815
+ /**
1816
+ * Output help information and exit.
1817
+ *
1818
+ * Outputs built-in help, and custom text added using `.addHelpText()`.
1819
+ *
1820
+ * @param {{ error: boolean }} [contextOptions] - pass {error:true} to write to stderr instead of stdout
1821
+ */
1822
+
1823
+ help(contextOptions) {
1824
+ this.outputHelp(contextOptions);
1825
+ let exitCode = process.exitCode || 0;
1826
+ if (exitCode === 0 && contextOptions && typeof contextOptions !== 'function' && contextOptions.error) {
1827
+ exitCode = 1;
1828
+ }
1829
+ // message: do not have all displayed text available so only passing placeholder.
1830
+ this._exit(exitCode, 'commander.help', '(outputHelp)');
1831
+ };
1832
+
1833
+ /**
1834
+ * Add additional text to be displayed with the built-in help.
1835
+ *
1836
+ * Position is 'before' or 'after' to affect just this command,
1837
+ * and 'beforeAll' or 'afterAll' to affect this command and all its subcommands.
1838
+ *
1839
+ * @param {string} position - before or after built-in help
1840
+ * @param {string | Function} text - string to add, or a function returning a string
1841
+ * @return {Command} `this` command for chaining
1842
+ */
1843
+ addHelpText(position, text) {
1844
+ const allowedValues = ['beforeAll', 'before', 'after', 'afterAll'];
1845
+ if (!allowedValues.includes(position)) {
1846
+ throw new Error(`Unexpected value for position to addHelpText.
1847
+ Expecting one of '${allowedValues.join("', '")}'`);
1848
+ }
1849
+ const helpEvent = `${position}Help`;
1850
+ this.on(helpEvent, (context) => {
1851
+ let helpStr;
1852
+ if (typeof text === 'function') {
1853
+ helpStr = text({ error: context.error, command: context.command });
1854
+ } else {
1855
+ helpStr = text;
1856
+ }
1857
+ // Ignore falsy value when nothing to output.
1858
+ if (helpStr) {
1859
+ context.write(`${helpStr}\n`);
1860
+ }
1861
+ });
1862
+ return this;
1863
+ }
1864
+ };
1865
+
1866
+ /**
1867
+ * Output help information if help flags specified
1868
+ *
1869
+ * @param {Command} cmd - command to output help for
1870
+ * @param {Array} args - array of options to search for help flags
1871
+ * @api private
1872
+ */
1873
+
1874
+ function outputHelpIfRequested(cmd, args) {
1875
+ const helpOption = cmd._hasHelpOption && args.find(arg => arg === cmd._helpLongFlag || arg === cmd._helpShortFlag);
1876
+ if (helpOption) {
1877
+ cmd.outputHelp();
1878
+ // (Do not have all displayed text available so only passing placeholder.)
1879
+ cmd._exit(0, 'commander.helpDisplayed', '(outputHelp)');
1880
+ }
1881
+ }
1882
+
1883
+ /**
1884
+ * Scan arguments and increment port number for inspect calls (to avoid conflicts when spawning new command).
1885
+ *
1886
+ * @param {string[]} args - array of arguments from node.execArgv
1887
+ * @returns {string[]}
1888
+ * @api private
1889
+ */
1890
+
1891
+ function incrementNodeInspectorPort(args) {
1892
+ // Testing for these options:
1893
+ // --inspect[=[host:]port]
1894
+ // --inspect-brk[=[host:]port]
1895
+ // --inspect-port=[host:]port
1896
+ return args.map((arg) => {
1897
+ if (!arg.startsWith('--inspect')) {
1898
+ return arg;
1899
+ }
1900
+ let debugOption;
1901
+ let debugHost = '127.0.0.1';
1902
+ let debugPort = '9229';
1903
+ let match;
1904
+ if ((match = arg.match(/^(--inspect(-brk)?)$/)) !== null) {
1905
+ // e.g. --inspect
1906
+ debugOption = match[1];
1907
+ } else if ((match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+)$/)) !== null) {
1908
+ debugOption = match[1];
1909
+ if (/^\d+$/.test(match[3])) {
1910
+ // e.g. --inspect=1234
1911
+ debugPort = match[3];
1912
+ } else {
1913
+ // e.g. --inspect=localhost
1914
+ debugHost = match[3];
1915
+ }
1916
+ } else if ((match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/)) !== null) {
1917
+ // e.g. --inspect=localhost:1234
1918
+ debugOption = match[1];
1919
+ debugHost = match[3];
1920
+ debugPort = match[4];
1921
+ }
1922
+
1923
+ if (debugOption && debugPort !== '0') {
1924
+ return `${debugOption}=${debugHost}:${parseInt(debugPort) + 1}`;
1925
+ }
1926
+ return arg;
1927
+ });
1928
+ }
1929
+
1930
+ /**
1931
+ * @param {Command} startCommand
1932
+ * @returns {Command[]}
1933
+ * @api private
1934
+ */
1935
+
1936
+ function getCommandAndParents(startCommand) {
1937
+ const result = [];
1938
+ for (let command = startCommand; command; command = command.parent) {
1939
+ result.push(command);
1940
+ }
1941
+ return result;
1942
+ }
1943
+
1944
+ exports.Command = Command;