maxsimcli 3.1.1 → 3.1.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.
@@ -10,7 +10,7 @@
10
10
  href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap"
11
11
  rel="stylesheet"
12
12
  />
13
- <script type="module" crossorigin src="/assets/index-BeiZsz5R.js"></script>
13
+ <script type="module" crossorigin src="/assets/index-22m82eWY.js"></script>
14
14
  <link rel="stylesheet" crossorigin href="/assets/index-OELE7ZOu.css">
15
15
  </head>
16
16
  <body>
@@ -48765,6 +48765,44 @@ init_utils();
48765
48765
  var Git = require_git();
48766
48766
  init_git_response_error();
48767
48767
 
48768
+ //#endregion
48769
+ //#region ../../node_modules/slugify/slugify.js
48770
+ var require_slugify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
48771
+ (function(name, root, factory) {
48772
+ if (typeof exports === "object") {
48773
+ module.exports = factory();
48774
+ module.exports["default"] = factory();
48775
+ } else if (typeof define === "function" && define.amd) define(factory);
48776
+ else root[name] = factory();
48777
+ })("slugify", exports, function() {
48778
+ var charMap = JSON.parse("{\"$\":\"dollar\",\"%\":\"percent\",\"&\":\"and\",\"<\":\"less\",\">\":\"greater\",\"|\":\"or\",\"¢\":\"cent\",\"£\":\"pound\",\"¤\":\"currency\",\"¥\":\"yen\",\"©\":\"(c)\",\"ª\":\"a\",\"®\":\"(r)\",\"º\":\"o\",\"À\":\"A\",\"Á\":\"A\",\"Â\":\"A\",\"Ã\":\"A\",\"Ä\":\"A\",\"Å\":\"A\",\"Æ\":\"AE\",\"Ç\":\"C\",\"È\":\"E\",\"É\":\"E\",\"Ê\":\"E\",\"Ë\":\"E\",\"Ì\":\"I\",\"Í\":\"I\",\"Î\":\"I\",\"Ï\":\"I\",\"Ð\":\"D\",\"Ñ\":\"N\",\"Ò\":\"O\",\"Ó\":\"O\",\"Ô\":\"O\",\"Õ\":\"O\",\"Ö\":\"O\",\"Ø\":\"O\",\"Ù\":\"U\",\"Ú\":\"U\",\"Û\":\"U\",\"Ü\":\"U\",\"Ý\":\"Y\",\"Þ\":\"TH\",\"ß\":\"ss\",\"à\":\"a\",\"á\":\"a\",\"â\":\"a\",\"ã\":\"a\",\"ä\":\"a\",\"å\":\"a\",\"æ\":\"ae\",\"ç\":\"c\",\"è\":\"e\",\"é\":\"e\",\"ê\":\"e\",\"ë\":\"e\",\"ì\":\"i\",\"í\":\"i\",\"î\":\"i\",\"ï\":\"i\",\"ð\":\"d\",\"ñ\":\"n\",\"ò\":\"o\",\"ó\":\"o\",\"ô\":\"o\",\"õ\":\"o\",\"ö\":\"o\",\"ø\":\"o\",\"ù\":\"u\",\"ú\":\"u\",\"û\":\"u\",\"ü\":\"u\",\"ý\":\"y\",\"þ\":\"th\",\"ÿ\":\"y\",\"Ā\":\"A\",\"ā\":\"a\",\"Ă\":\"A\",\"ă\":\"a\",\"Ą\":\"A\",\"ą\":\"a\",\"Ć\":\"C\",\"ć\":\"c\",\"Č\":\"C\",\"č\":\"c\",\"Ď\":\"D\",\"ď\":\"d\",\"Đ\":\"DJ\",\"đ\":\"dj\",\"Ē\":\"E\",\"ē\":\"e\",\"Ė\":\"E\",\"ė\":\"e\",\"Ę\":\"e\",\"ę\":\"e\",\"Ě\":\"E\",\"ě\":\"e\",\"Ğ\":\"G\",\"ğ\":\"g\",\"Ģ\":\"G\",\"ģ\":\"g\",\"Ĩ\":\"I\",\"ĩ\":\"i\",\"Ī\":\"i\",\"ī\":\"i\",\"Į\":\"I\",\"į\":\"i\",\"İ\":\"I\",\"ı\":\"i\",\"Ķ\":\"k\",\"ķ\":\"k\",\"Ļ\":\"L\",\"ļ\":\"l\",\"Ľ\":\"L\",\"ľ\":\"l\",\"Ł\":\"L\",\"ł\":\"l\",\"Ń\":\"N\",\"ń\":\"n\",\"Ņ\":\"N\",\"ņ\":\"n\",\"Ň\":\"N\",\"ň\":\"n\",\"Ō\":\"O\",\"ō\":\"o\",\"Ő\":\"O\",\"ő\":\"o\",\"Œ\":\"OE\",\"œ\":\"oe\",\"Ŕ\":\"R\",\"ŕ\":\"r\",\"Ř\":\"R\",\"ř\":\"r\",\"Ś\":\"S\",\"ś\":\"s\",\"Ş\":\"S\",\"ş\":\"s\",\"Š\":\"S\",\"š\":\"s\",\"Ţ\":\"T\",\"ţ\":\"t\",\"Ť\":\"T\",\"ť\":\"t\",\"Ũ\":\"U\",\"ũ\":\"u\",\"Ū\":\"u\",\"ū\":\"u\",\"Ů\":\"U\",\"ů\":\"u\",\"Ű\":\"U\",\"ű\":\"u\",\"Ų\":\"U\",\"ų\":\"u\",\"Ŵ\":\"W\",\"ŵ\":\"w\",\"Ŷ\":\"Y\",\"ŷ\":\"y\",\"Ÿ\":\"Y\",\"Ź\":\"Z\",\"ź\":\"z\",\"Ż\":\"Z\",\"ż\":\"z\",\"Ž\":\"Z\",\"ž\":\"z\",\"Ə\":\"E\",\"ƒ\":\"f\",\"Ơ\":\"O\",\"ơ\":\"o\",\"Ư\":\"U\",\"ư\":\"u\",\"Lj\":\"LJ\",\"lj\":\"lj\",\"Nj\":\"NJ\",\"nj\":\"nj\",\"Ș\":\"S\",\"ș\":\"s\",\"Ț\":\"T\",\"ț\":\"t\",\"ə\":\"e\",\"˚\":\"o\",\"Ά\":\"A\",\"Έ\":\"E\",\"Ή\":\"H\",\"Ί\":\"I\",\"Ό\":\"O\",\"Ύ\":\"Y\",\"Ώ\":\"W\",\"ΐ\":\"i\",\"Α\":\"A\",\"Β\":\"B\",\"Γ\":\"G\",\"Δ\":\"D\",\"Ε\":\"E\",\"Ζ\":\"Z\",\"Η\":\"H\",\"Θ\":\"8\",\"Ι\":\"I\",\"Κ\":\"K\",\"Λ\":\"L\",\"Μ\":\"M\",\"Ν\":\"N\",\"Ξ\":\"3\",\"Ο\":\"O\",\"Π\":\"P\",\"Ρ\":\"R\",\"Σ\":\"S\",\"Τ\":\"T\",\"Υ\":\"Y\",\"Φ\":\"F\",\"Χ\":\"X\",\"Ψ\":\"PS\",\"Ω\":\"W\",\"Ϊ\":\"I\",\"Ϋ\":\"Y\",\"ά\":\"a\",\"έ\":\"e\",\"ή\":\"h\",\"ί\":\"i\",\"ΰ\":\"y\",\"α\":\"a\",\"β\":\"b\",\"γ\":\"g\",\"δ\":\"d\",\"ε\":\"e\",\"ζ\":\"z\",\"η\":\"h\",\"θ\":\"8\",\"ι\":\"i\",\"κ\":\"k\",\"λ\":\"l\",\"μ\":\"m\",\"ν\":\"n\",\"ξ\":\"3\",\"ο\":\"o\",\"π\":\"p\",\"ρ\":\"r\",\"ς\":\"s\",\"σ\":\"s\",\"τ\":\"t\",\"υ\":\"y\",\"φ\":\"f\",\"χ\":\"x\",\"ψ\":\"ps\",\"ω\":\"w\",\"ϊ\":\"i\",\"ϋ\":\"y\",\"ό\":\"o\",\"ύ\":\"y\",\"ώ\":\"w\",\"Ё\":\"Yo\",\"Ђ\":\"DJ\",\"Є\":\"Ye\",\"І\":\"I\",\"Ї\":\"Yi\",\"Ј\":\"J\",\"Љ\":\"LJ\",\"Њ\":\"NJ\",\"Ћ\":\"C\",\"Џ\":\"DZ\",\"А\":\"A\",\"Б\":\"B\",\"В\":\"V\",\"Г\":\"G\",\"Д\":\"D\",\"Е\":\"E\",\"Ж\":\"Zh\",\"З\":\"Z\",\"И\":\"I\",\"Й\":\"J\",\"К\":\"K\",\"Л\":\"L\",\"М\":\"M\",\"Н\":\"N\",\"О\":\"O\",\"П\":\"P\",\"Р\":\"R\",\"С\":\"S\",\"Т\":\"T\",\"У\":\"U\",\"Ф\":\"F\",\"Х\":\"H\",\"Ц\":\"C\",\"Ч\":\"Ch\",\"Ш\":\"Sh\",\"Щ\":\"Sh\",\"Ъ\":\"U\",\"Ы\":\"Y\",\"Ь\":\"\",\"Э\":\"E\",\"Ю\":\"Yu\",\"Я\":\"Ya\",\"а\":\"a\",\"б\":\"b\",\"в\":\"v\",\"г\":\"g\",\"д\":\"d\",\"е\":\"e\",\"ж\":\"zh\",\"з\":\"z\",\"и\":\"i\",\"й\":\"j\",\"к\":\"k\",\"л\":\"l\",\"м\":\"m\",\"н\":\"n\",\"о\":\"o\",\"п\":\"p\",\"р\":\"r\",\"с\":\"s\",\"т\":\"t\",\"у\":\"u\",\"ф\":\"f\",\"х\":\"h\",\"ц\":\"c\",\"ч\":\"ch\",\"ш\":\"sh\",\"щ\":\"sh\",\"ъ\":\"u\",\"ы\":\"y\",\"ь\":\"\",\"э\":\"e\",\"ю\":\"yu\",\"я\":\"ya\",\"ё\":\"yo\",\"ђ\":\"dj\",\"є\":\"ye\",\"і\":\"i\",\"ї\":\"yi\",\"ј\":\"j\",\"љ\":\"lj\",\"њ\":\"nj\",\"ћ\":\"c\",\"ѝ\":\"u\",\"џ\":\"dz\",\"Ґ\":\"G\",\"ґ\":\"g\",\"Ғ\":\"GH\",\"ғ\":\"gh\",\"Қ\":\"KH\",\"қ\":\"kh\",\"Ң\":\"NG\",\"ң\":\"ng\",\"Ү\":\"UE\",\"ү\":\"ue\",\"Ұ\":\"U\",\"ұ\":\"u\",\"Һ\":\"H\",\"һ\":\"h\",\"Ә\":\"AE\",\"ә\":\"ae\",\"Ө\":\"OE\",\"ө\":\"oe\",\"Ա\":\"A\",\"Բ\":\"B\",\"Գ\":\"G\",\"Դ\":\"D\",\"Ե\":\"E\",\"Զ\":\"Z\",\"Է\":\"E'\",\"Ը\":\"Y'\",\"Թ\":\"T'\",\"Ժ\":\"JH\",\"Ի\":\"I\",\"Լ\":\"L\",\"Խ\":\"X\",\"Ծ\":\"C'\",\"Կ\":\"K\",\"Հ\":\"H\",\"Ձ\":\"D'\",\"Ղ\":\"GH\",\"Ճ\":\"TW\",\"Մ\":\"M\",\"Յ\":\"Y\",\"Ն\":\"N\",\"Շ\":\"SH\",\"Չ\":\"CH\",\"Պ\":\"P\",\"Ջ\":\"J\",\"Ռ\":\"R'\",\"Ս\":\"S\",\"Վ\":\"V\",\"Տ\":\"T\",\"Ր\":\"R\",\"Ց\":\"C\",\"Փ\":\"P'\",\"Ք\":\"Q'\",\"Օ\":\"O''\",\"Ֆ\":\"F\",\"և\":\"EV\",\"ء\":\"a\",\"آ\":\"aa\",\"أ\":\"a\",\"ؤ\":\"u\",\"إ\":\"i\",\"ئ\":\"e\",\"ا\":\"a\",\"ب\":\"b\",\"ة\":\"h\",\"ت\":\"t\",\"ث\":\"th\",\"ج\":\"j\",\"ح\":\"h\",\"خ\":\"kh\",\"د\":\"d\",\"ذ\":\"th\",\"ر\":\"r\",\"ز\":\"z\",\"س\":\"s\",\"ش\":\"sh\",\"ص\":\"s\",\"ض\":\"dh\",\"ط\":\"t\",\"ظ\":\"z\",\"ع\":\"a\",\"غ\":\"gh\",\"ف\":\"f\",\"ق\":\"q\",\"ك\":\"k\",\"ل\":\"l\",\"م\":\"m\",\"ن\":\"n\",\"ه\":\"h\",\"و\":\"w\",\"ى\":\"a\",\"ي\":\"y\",\"ً\":\"an\",\"ٌ\":\"on\",\"ٍ\":\"en\",\"َ\":\"a\",\"ُ\":\"u\",\"ِ\":\"e\",\"ْ\":\"\",\"٠\":\"0\",\"١\":\"1\",\"٢\":\"2\",\"٣\":\"3\",\"٤\":\"4\",\"٥\":\"5\",\"٦\":\"6\",\"٧\":\"7\",\"٨\":\"8\",\"٩\":\"9\",\"پ\":\"p\",\"چ\":\"ch\",\"ژ\":\"zh\",\"ک\":\"k\",\"گ\":\"g\",\"ی\":\"y\",\"۰\":\"0\",\"۱\":\"1\",\"۲\":\"2\",\"۳\":\"3\",\"۴\":\"4\",\"۵\":\"5\",\"۶\":\"6\",\"۷\":\"7\",\"۸\":\"8\",\"۹\":\"9\",\"฿\":\"baht\",\"ა\":\"a\",\"ბ\":\"b\",\"გ\":\"g\",\"დ\":\"d\",\"ე\":\"e\",\"ვ\":\"v\",\"ზ\":\"z\",\"თ\":\"t\",\"ი\":\"i\",\"კ\":\"k\",\"ლ\":\"l\",\"მ\":\"m\",\"ნ\":\"n\",\"ო\":\"o\",\"პ\":\"p\",\"ჟ\":\"zh\",\"რ\":\"r\",\"ს\":\"s\",\"ტ\":\"t\",\"უ\":\"u\",\"ფ\":\"f\",\"ქ\":\"k\",\"ღ\":\"gh\",\"ყ\":\"q\",\"შ\":\"sh\",\"ჩ\":\"ch\",\"ც\":\"ts\",\"ძ\":\"dz\",\"წ\":\"ts\",\"ჭ\":\"ch\",\"ხ\":\"kh\",\"ჯ\":\"j\",\"ჰ\":\"h\",\"Ṣ\":\"S\",\"ṣ\":\"s\",\"Ẁ\":\"W\",\"ẁ\":\"w\",\"Ẃ\":\"W\",\"ẃ\":\"w\",\"Ẅ\":\"W\",\"ẅ\":\"w\",\"ẞ\":\"SS\",\"Ạ\":\"A\",\"ạ\":\"a\",\"Ả\":\"A\",\"ả\":\"a\",\"Ấ\":\"A\",\"ấ\":\"a\",\"Ầ\":\"A\",\"ầ\":\"a\",\"Ẩ\":\"A\",\"ẩ\":\"a\",\"Ẫ\":\"A\",\"ẫ\":\"a\",\"Ậ\":\"A\",\"ậ\":\"a\",\"Ắ\":\"A\",\"ắ\":\"a\",\"Ằ\":\"A\",\"ằ\":\"a\",\"Ẳ\":\"A\",\"ẳ\":\"a\",\"Ẵ\":\"A\",\"ẵ\":\"a\",\"Ặ\":\"A\",\"ặ\":\"a\",\"Ẹ\":\"E\",\"ẹ\":\"e\",\"Ẻ\":\"E\",\"ẻ\":\"e\",\"Ẽ\":\"E\",\"ẽ\":\"e\",\"Ế\":\"E\",\"ế\":\"e\",\"Ề\":\"E\",\"ề\":\"e\",\"Ể\":\"E\",\"ể\":\"e\",\"Ễ\":\"E\",\"ễ\":\"e\",\"Ệ\":\"E\",\"ệ\":\"e\",\"Ỉ\":\"I\",\"ỉ\":\"i\",\"Ị\":\"I\",\"ị\":\"i\",\"Ọ\":\"O\",\"ọ\":\"o\",\"Ỏ\":\"O\",\"ỏ\":\"o\",\"Ố\":\"O\",\"ố\":\"o\",\"Ồ\":\"O\",\"ồ\":\"o\",\"Ổ\":\"O\",\"ổ\":\"o\",\"Ỗ\":\"O\",\"ỗ\":\"o\",\"Ộ\":\"O\",\"ộ\":\"o\",\"Ớ\":\"O\",\"ớ\":\"o\",\"Ờ\":\"O\",\"ờ\":\"o\",\"Ở\":\"O\",\"ở\":\"o\",\"Ỡ\":\"O\",\"ỡ\":\"o\",\"Ợ\":\"O\",\"ợ\":\"o\",\"Ụ\":\"U\",\"ụ\":\"u\",\"Ủ\":\"U\",\"ủ\":\"u\",\"Ứ\":\"U\",\"ứ\":\"u\",\"Ừ\":\"U\",\"ừ\":\"u\",\"Ử\":\"U\",\"ử\":\"u\",\"Ữ\":\"U\",\"ữ\":\"u\",\"Ự\":\"U\",\"ự\":\"u\",\"Ỳ\":\"Y\",\"ỳ\":\"y\",\"Ỵ\":\"Y\",\"ỵ\":\"y\",\"Ỷ\":\"Y\",\"ỷ\":\"y\",\"Ỹ\":\"Y\",\"ỹ\":\"y\",\"–\":\"-\",\"‘\":\"'\",\"’\":\"'\",\"“\":\"\\\"\",\"”\":\"\\\"\",\"„\":\"\\\"\",\"†\":\"+\",\"•\":\"*\",\"…\":\"...\",\"₠\":\"ecu\",\"₢\":\"cruzeiro\",\"₣\":\"french franc\",\"₤\":\"lira\",\"₥\":\"mill\",\"₦\":\"naira\",\"₧\":\"peseta\",\"₨\":\"rupee\",\"₩\":\"won\",\"₪\":\"new shequel\",\"₫\":\"dong\",\"€\":\"euro\",\"₭\":\"kip\",\"₮\":\"tugrik\",\"₯\":\"drachma\",\"₰\":\"penny\",\"₱\":\"peso\",\"₲\":\"guarani\",\"₳\":\"austral\",\"₴\":\"hryvnia\",\"₵\":\"cedi\",\"₸\":\"kazakhstani tenge\",\"₹\":\"indian rupee\",\"₺\":\"turkish lira\",\"₽\":\"russian ruble\",\"₿\":\"bitcoin\",\"℠\":\"sm\",\"™\":\"tm\",\"∂\":\"d\",\"∆\":\"delta\",\"∑\":\"sum\",\"∞\":\"infinity\",\"♥\":\"love\",\"元\":\"yuan\",\"円\":\"yen\",\"﷼\":\"rial\",\"ﻵ\":\"laa\",\"ﻷ\":\"laa\",\"ﻹ\":\"lai\",\"ﻻ\":\"la\"}");
48779
+ var locales = JSON.parse("{\"bg\":{\"Й\":\"Y\",\"Ц\":\"Ts\",\"Щ\":\"Sht\",\"Ъ\":\"A\",\"Ь\":\"Y\",\"й\":\"y\",\"ц\":\"ts\",\"щ\":\"sht\",\"ъ\":\"a\",\"ь\":\"y\"},\"de\":{\"Ä\":\"AE\",\"ä\":\"ae\",\"Ö\":\"OE\",\"ö\":\"oe\",\"Ü\":\"UE\",\"ü\":\"ue\",\"ß\":\"ss\",\"%\":\"prozent\",\"&\":\"und\",\"|\":\"oder\",\"∑\":\"summe\",\"∞\":\"unendlich\",\"♥\":\"liebe\"},\"es\":{\"%\":\"por ciento\",\"&\":\"y\",\"<\":\"menor que\",\">\":\"mayor que\",\"|\":\"o\",\"¢\":\"centavos\",\"£\":\"libras\",\"¤\":\"moneda\",\"₣\":\"francos\",\"∑\":\"suma\",\"∞\":\"infinito\",\"♥\":\"amor\"},\"fr\":{\"%\":\"pourcent\",\"&\":\"et\",\"<\":\"plus petit\",\">\":\"plus grand\",\"|\":\"ou\",\"¢\":\"centime\",\"£\":\"livre\",\"¤\":\"devise\",\"₣\":\"franc\",\"∑\":\"somme\",\"∞\":\"infini\",\"♥\":\"amour\"},\"pt\":{\"%\":\"porcento\",\"&\":\"e\",\"<\":\"menor\",\">\":\"maior\",\"|\":\"ou\",\"¢\":\"centavo\",\"∑\":\"soma\",\"£\":\"libra\",\"∞\":\"infinito\",\"♥\":\"amor\"},\"uk\":{\"И\":\"Y\",\"и\":\"y\",\"Й\":\"Y\",\"й\":\"y\",\"Ц\":\"Ts\",\"ц\":\"ts\",\"Х\":\"Kh\",\"х\":\"kh\",\"Щ\":\"Shch\",\"щ\":\"shch\",\"Г\":\"H\",\"г\":\"h\"},\"vi\":{\"Đ\":\"D\",\"đ\":\"d\"},\"da\":{\"Ø\":\"OE\",\"ø\":\"oe\",\"Å\":\"AA\",\"å\":\"aa\",\"%\":\"procent\",\"&\":\"og\",\"|\":\"eller\",\"$\":\"dollar\",\"<\":\"mindre end\",\">\":\"større end\"},\"nb\":{\"&\":\"og\",\"Å\":\"AA\",\"Æ\":\"AE\",\"Ø\":\"OE\",\"å\":\"aa\",\"æ\":\"ae\",\"ø\":\"oe\"},\"it\":{\"&\":\"e\"},\"nl\":{\"&\":\"en\"},\"sv\":{\"&\":\"och\",\"Å\":\"AA\",\"Ä\":\"AE\",\"Ö\":\"OE\",\"å\":\"aa\",\"ä\":\"ae\",\"ö\":\"oe\"}}");
48780
+ function replace(string, options) {
48781
+ if (typeof string !== "string") throw new Error("slugify: string argument expected");
48782
+ options = typeof options === "string" ? { replacement: options } : options || {};
48783
+ var locale = locales[options.locale] || {};
48784
+ var replacement = options.replacement === void 0 ? "-" : options.replacement;
48785
+ var trim = options.trim === void 0 ? true : options.trim;
48786
+ var slug = string.normalize().split("").reduce(function(result, ch) {
48787
+ var appendChar = locale[ch];
48788
+ if (appendChar === void 0) appendChar = charMap[ch];
48789
+ if (appendChar === void 0) appendChar = ch;
48790
+ if (appendChar === replacement) appendChar = " ";
48791
+ return result + appendChar.replace(options.remove || /[^\w\s$*_+~.()'"!\-:@]+/g, "");
48792
+ }, "");
48793
+ if (options.strict) slug = slug.replace(/[^A-Za-z0-9\s]/g, "");
48794
+ if (trim) slug = slug.trim();
48795
+ slug = slug.replace(/\s+/g, replacement);
48796
+ if (options.lower) slug = slug.toLowerCase();
48797
+ return slug;
48798
+ }
48799
+ replace.extend = function(customMap) {
48800
+ Object.assign(charMap, customMap);
48801
+ };
48802
+ return replace;
48803
+ });
48804
+ }));
48805
+
48768
48806
  //#endregion
48769
48807
  //#region ../cli/src/core/core.ts
48770
48808
  /**
@@ -48772,6 +48810,7 @@ init_git_response_error();
48772
48810
  *
48773
48811
  * Ported from maxsim/bin/lib/core.cjs
48774
48812
  */
48813
+ var import_slugify = /* @__PURE__ */ __toESM(require_slugify());
48775
48814
  function normalizePhaseName(phase) {
48776
48815
  const match = phase.match(/^(\d+)([A-Z])?(\.\d+)?/i);
48777
48816
  if (!match) return phase;
@@ -55495,6 +55534,13 @@ function extractFrontmatter(content) {
55495
55534
  * Ported from maxsim/bin/lib/config.cjs
55496
55535
  */
55497
55536
 
55537
+ //#endregion
55538
+ //#region ../../node_modules/escape-string-regexp/index.js
55539
+ function escapeStringRegexp(string) {
55540
+ if (typeof string !== "string") throw new TypeError("Expected a string");
55541
+ return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
55542
+ }
55543
+
55498
55544
  //#endregion
55499
55545
  //#region ../cli/src/core/state.ts
55500
55546
  /**
@@ -55502,16 +55548,13 @@ function extractFrontmatter(content) {
55502
55548
  *
55503
55549
  * Ported from maxsim/bin/lib/state.cjs
55504
55550
  */
55505
- function escapeRegex(str) {
55506
- return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
55507
- }
55508
55551
  function stateExtractField(content, fieldName) {
55509
55552
  const pattern = new RegExp(`\\*\\*${fieldName}:\\*\\*\\s*(.+)`, "i");
55510
55553
  const match = content.match(pattern);
55511
55554
  return match ? match[1].trim() : null;
55512
55555
  }
55513
55556
  function stateReplaceField(content, fieldName, newValue) {
55514
- const escaped = escapeRegex(fieldName);
55557
+ const escaped = escapeStringRegexp(fieldName);
55515
55558
  const pattern = new RegExp(`(\\*\\*${escaped}:\\*\\*\\s*)(.*)`, "i");
55516
55559
  if (pattern.test(content)) return content.replace(pattern, (_match, prefix) => `${prefix}${newValue}`);
55517
55560
  return null;
@@ -57120,8 +57163,304 @@ function watch(paths, options = {}) {
57120
57163
  return watcher;
57121
57164
  }
57122
57165
 
57166
+ //#endregion
57167
+ //#region ../../node_modules/lodash.debounce/index.js
57168
+ var require_lodash_debounce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
57169
+ /**
57170
+ * lodash (Custom Build) <https://lodash.com/>
57171
+ * Build: `lodash modularize exports="npm" -o ./`
57172
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
57173
+ * Released under MIT license <https://lodash.com/license>
57174
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
57175
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
57176
+ */
57177
+ /** Used as the `TypeError` message for "Functions" methods. */
57178
+ var FUNC_ERROR_TEXT = "Expected a function";
57179
+ /** Used as references for various `Number` constants. */
57180
+ var NAN = NaN;
57181
+ /** `Object#toString` result references. */
57182
+ var symbolTag = "[object Symbol]";
57183
+ /** Used to match leading and trailing whitespace. */
57184
+ var reTrim = /^\s+|\s+$/g;
57185
+ /** Used to detect bad signed hexadecimal string values. */
57186
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
57187
+ /** Used to detect binary string values. */
57188
+ var reIsBinary = /^0b[01]+$/i;
57189
+ /** Used to detect octal string values. */
57190
+ var reIsOctal = /^0o[0-7]+$/i;
57191
+ /** Built-in method references without a dependency on `root`. */
57192
+ var freeParseInt = parseInt;
57193
+ /** Detect free variable `global` from Node.js. */
57194
+ var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
57195
+ /** Detect free variable `self`. */
57196
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
57197
+ /** Used as a reference to the global object. */
57198
+ var root = freeGlobal || freeSelf || Function("return this")();
57199
+ /**
57200
+ * Used to resolve the
57201
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
57202
+ * of values.
57203
+ */
57204
+ var objectToString = Object.prototype.toString;
57205
+ var nativeMax = Math.max, nativeMin = Math.min;
57206
+ /**
57207
+ * Gets the timestamp of the number of milliseconds that have elapsed since
57208
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
57209
+ *
57210
+ * @static
57211
+ * @memberOf _
57212
+ * @since 2.4.0
57213
+ * @category Date
57214
+ * @returns {number} Returns the timestamp.
57215
+ * @example
57216
+ *
57217
+ * _.defer(function(stamp) {
57218
+ * console.log(_.now() - stamp);
57219
+ * }, _.now());
57220
+ * // => Logs the number of milliseconds it took for the deferred invocation.
57221
+ */
57222
+ var now = function() {
57223
+ return root.Date.now();
57224
+ };
57225
+ /**
57226
+ * Creates a debounced function that delays invoking `func` until after `wait`
57227
+ * milliseconds have elapsed since the last time the debounced function was
57228
+ * invoked. The debounced function comes with a `cancel` method to cancel
57229
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
57230
+ * Provide `options` to indicate whether `func` should be invoked on the
57231
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
57232
+ * with the last arguments provided to the debounced function. Subsequent
57233
+ * calls to the debounced function return the result of the last `func`
57234
+ * invocation.
57235
+ *
57236
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
57237
+ * invoked on the trailing edge of the timeout only if the debounced function
57238
+ * is invoked more than once during the `wait` timeout.
57239
+ *
57240
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
57241
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
57242
+ *
57243
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
57244
+ * for details over the differences between `_.debounce` and `_.throttle`.
57245
+ *
57246
+ * @static
57247
+ * @memberOf _
57248
+ * @since 0.1.0
57249
+ * @category Function
57250
+ * @param {Function} func The function to debounce.
57251
+ * @param {number} [wait=0] The number of milliseconds to delay.
57252
+ * @param {Object} [options={}] The options object.
57253
+ * @param {boolean} [options.leading=false]
57254
+ * Specify invoking on the leading edge of the timeout.
57255
+ * @param {number} [options.maxWait]
57256
+ * The maximum time `func` is allowed to be delayed before it's invoked.
57257
+ * @param {boolean} [options.trailing=true]
57258
+ * Specify invoking on the trailing edge of the timeout.
57259
+ * @returns {Function} Returns the new debounced function.
57260
+ * @example
57261
+ *
57262
+ * // Avoid costly calculations while the window size is in flux.
57263
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
57264
+ *
57265
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
57266
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
57267
+ * 'leading': true,
57268
+ * 'trailing': false
57269
+ * }));
57270
+ *
57271
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
57272
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
57273
+ * var source = new EventSource('/stream');
57274
+ * jQuery(source).on('message', debounced);
57275
+ *
57276
+ * // Cancel the trailing debounced invocation.
57277
+ * jQuery(window).on('popstate', debounced.cancel);
57278
+ */
57279
+ function debounce(func, wait, options) {
57280
+ var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
57281
+ if (typeof func != "function") throw new TypeError(FUNC_ERROR_TEXT);
57282
+ wait = toNumber(wait) || 0;
57283
+ if (isObject(options)) {
57284
+ leading = !!options.leading;
57285
+ maxing = "maxWait" in options;
57286
+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
57287
+ trailing = "trailing" in options ? !!options.trailing : trailing;
57288
+ }
57289
+ function invokeFunc(time) {
57290
+ var args = lastArgs, thisArg = lastThis;
57291
+ lastArgs = lastThis = void 0;
57292
+ lastInvokeTime = time;
57293
+ result = func.apply(thisArg, args);
57294
+ return result;
57295
+ }
57296
+ function leadingEdge(time) {
57297
+ lastInvokeTime = time;
57298
+ timerId = setTimeout(timerExpired, wait);
57299
+ return leading ? invokeFunc(time) : result;
57300
+ }
57301
+ function remainingWait(time) {
57302
+ var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, result = wait - timeSinceLastCall;
57303
+ return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
57304
+ }
57305
+ function shouldInvoke(time) {
57306
+ var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
57307
+ return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
57308
+ }
57309
+ function timerExpired() {
57310
+ var time = now();
57311
+ if (shouldInvoke(time)) return trailingEdge(time);
57312
+ timerId = setTimeout(timerExpired, remainingWait(time));
57313
+ }
57314
+ function trailingEdge(time) {
57315
+ timerId = void 0;
57316
+ if (trailing && lastArgs) return invokeFunc(time);
57317
+ lastArgs = lastThis = void 0;
57318
+ return result;
57319
+ }
57320
+ function cancel() {
57321
+ if (timerId !== void 0) clearTimeout(timerId);
57322
+ lastInvokeTime = 0;
57323
+ lastArgs = lastCallTime = lastThis = timerId = void 0;
57324
+ }
57325
+ function flush() {
57326
+ return timerId === void 0 ? result : trailingEdge(now());
57327
+ }
57328
+ function debounced() {
57329
+ var time = now(), isInvoking = shouldInvoke(time);
57330
+ lastArgs = arguments;
57331
+ lastThis = this;
57332
+ lastCallTime = time;
57333
+ if (isInvoking) {
57334
+ if (timerId === void 0) return leadingEdge(lastCallTime);
57335
+ if (maxing) {
57336
+ timerId = setTimeout(timerExpired, wait);
57337
+ return invokeFunc(lastCallTime);
57338
+ }
57339
+ }
57340
+ if (timerId === void 0) timerId = setTimeout(timerExpired, wait);
57341
+ return result;
57342
+ }
57343
+ debounced.cancel = cancel;
57344
+ debounced.flush = flush;
57345
+ return debounced;
57346
+ }
57347
+ /**
57348
+ * Checks if `value` is the
57349
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
57350
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
57351
+ *
57352
+ * @static
57353
+ * @memberOf _
57354
+ * @since 0.1.0
57355
+ * @category Lang
57356
+ * @param {*} value The value to check.
57357
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
57358
+ * @example
57359
+ *
57360
+ * _.isObject({});
57361
+ * // => true
57362
+ *
57363
+ * _.isObject([1, 2, 3]);
57364
+ * // => true
57365
+ *
57366
+ * _.isObject(_.noop);
57367
+ * // => true
57368
+ *
57369
+ * _.isObject(null);
57370
+ * // => false
57371
+ */
57372
+ function isObject(value) {
57373
+ var type = typeof value;
57374
+ return !!value && (type == "object" || type == "function");
57375
+ }
57376
+ /**
57377
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
57378
+ * and has a `typeof` result of "object".
57379
+ *
57380
+ * @static
57381
+ * @memberOf _
57382
+ * @since 4.0.0
57383
+ * @category Lang
57384
+ * @param {*} value The value to check.
57385
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
57386
+ * @example
57387
+ *
57388
+ * _.isObjectLike({});
57389
+ * // => true
57390
+ *
57391
+ * _.isObjectLike([1, 2, 3]);
57392
+ * // => true
57393
+ *
57394
+ * _.isObjectLike(_.noop);
57395
+ * // => false
57396
+ *
57397
+ * _.isObjectLike(null);
57398
+ * // => false
57399
+ */
57400
+ function isObjectLike(value) {
57401
+ return !!value && typeof value == "object";
57402
+ }
57403
+ /**
57404
+ * Checks if `value` is classified as a `Symbol` primitive or object.
57405
+ *
57406
+ * @static
57407
+ * @memberOf _
57408
+ * @since 4.0.0
57409
+ * @category Lang
57410
+ * @param {*} value The value to check.
57411
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
57412
+ * @example
57413
+ *
57414
+ * _.isSymbol(Symbol.iterator);
57415
+ * // => true
57416
+ *
57417
+ * _.isSymbol('abc');
57418
+ * // => false
57419
+ */
57420
+ function isSymbol(value) {
57421
+ return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
57422
+ }
57423
+ /**
57424
+ * Converts `value` to a number.
57425
+ *
57426
+ * @static
57427
+ * @memberOf _
57428
+ * @since 4.0.0
57429
+ * @category Lang
57430
+ * @param {*} value The value to process.
57431
+ * @returns {number} Returns the number.
57432
+ * @example
57433
+ *
57434
+ * _.toNumber(3.2);
57435
+ * // => 3.2
57436
+ *
57437
+ * _.toNumber(Number.MIN_VALUE);
57438
+ * // => 5e-324
57439
+ *
57440
+ * _.toNumber(Infinity);
57441
+ * // => Infinity
57442
+ *
57443
+ * _.toNumber('3.2');
57444
+ * // => 3.2
57445
+ */
57446
+ function toNumber(value) {
57447
+ if (typeof value == "number") return value;
57448
+ if (isSymbol(value)) return NAN;
57449
+ if (isObject(value)) {
57450
+ var other = typeof value.valueOf == "function" ? value.valueOf() : value;
57451
+ value = isObject(other) ? other + "" : other;
57452
+ }
57453
+ if (typeof value != "string") return value === 0 ? value : +value;
57454
+ value = value.replace(reTrim, "");
57455
+ var isBinary = reIsBinary.test(value);
57456
+ return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
57457
+ }
57458
+ module.exports = debounce;
57459
+ }));
57460
+
57123
57461
  //#endregion
57124
57462
  //#region src/terminal/session-store.ts
57463
+ var import_lodash_debounce = /* @__PURE__ */ __toESM(require_lodash_debounce());
57125
57464
  const MAX_SCROLLBACK = 5e4;
57126
57465
  var SessionStore = class {
57127
57466
  scrollback = [];
@@ -57395,8 +57734,19 @@ function setupWatcher(cwd, wss) {
57395
57734
  },
57396
57735
  depth: 5
57397
57736
  });
57398
- let changedPaths = /* @__PURE__ */ new Set();
57399
- let debounceTimer = null;
57737
+ const changedPaths = /* @__PURE__ */ new Set();
57738
+ const flushChanges = (0, import_lodash_debounce.default)(() => {
57739
+ if (changedPaths.size > 0) {
57740
+ const changes = Array.from(changedPaths);
57741
+ changedPaths.clear();
57742
+ console.error(`[watcher] Broadcasting ${changes.length} change(s)`);
57743
+ broadcast(wss, {
57744
+ type: "file-changes",
57745
+ changes,
57746
+ timestamp: Date.now()
57747
+ });
57748
+ }
57749
+ }, 200);
57400
57750
  function onFileChange(filePath) {
57401
57751
  const normalized = normalizeFsPath(filePath);
57402
57752
  if (isSuppressed(normalized)) {
@@ -57404,20 +57754,7 @@ function setupWatcher(cwd, wss) {
57404
57754
  return;
57405
57755
  }
57406
57756
  changedPaths.add(normalized);
57407
- if (debounceTimer !== null) clearTimeout(debounceTimer);
57408
- debounceTimer = setTimeout(() => {
57409
- if (changedPaths.size > 0) {
57410
- const changes = Array.from(changedPaths);
57411
- changedPaths = /* @__PURE__ */ new Set();
57412
- console.error(`[watcher] Broadcasting ${changes.length} change(s)`);
57413
- broadcast(wss, {
57414
- type: "file-changes",
57415
- changes,
57416
- timestamp: Date.now()
57417
- });
57418
- }
57419
- debounceTimer = null;
57420
- }, 200);
57757
+ flushChanges();
57421
57758
  }
57422
57759
  watcher.on("add", onFileChange);
57423
57760
  watcher.on("change", onFileChange);
@@ -57607,14 +57944,15 @@ function parsePhaseDetail(cwd, phaseId) {
57607
57944
  const verifyMatch = taskBody.match(/<verify>([\s\S]*?)<\/verify>/);
57608
57945
  const doneMatch = taskBody.match(/<done>([\s\S]*?)<\/done>/);
57609
57946
  const files = filesMatch ? filesMatch[1].trim().split("\n").map((f) => f.trim()).filter(Boolean) : [];
57947
+ const doneText = doneMatch ? doneMatch[1].trim() : "";
57610
57948
  tasks.push({
57611
57949
  name: taskName,
57612
57950
  type: taskType,
57613
57951
  files,
57614
57952
  action: actionMatch ? actionMatch[1].trim() : "",
57615
57953
  verify: verifyMatch ? verifyMatch[1].trim() : "",
57616
- done: doneMatch ? doneMatch[1].trim() : "",
57617
- completed: false
57954
+ done: doneText,
57955
+ completed: /^\[x\]/i.test(doneText)
57618
57956
  });
57619
57957
  }
57620
57958
  plans.push({
@@ -57812,7 +58150,10 @@ app.post("/api/todos", (req, res) => {
57812
58150
  if (!text) return res.status(400).json({ error: "text is required" });
57813
58151
  node_fs.mkdirSync(pendingDir, { recursive: true });
57814
58152
  const timestamp = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
57815
- const filename = `${timestamp}-${text.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 40)}.md`;
58153
+ const filename = `${timestamp}-${(0, import_slugify.default)(text, {
58154
+ lower: true,
58155
+ strict: true
58156
+ }).slice(0, 40)}.md`;
57816
58157
  const filePath = node_path.join(pendingDir, filename);
57817
58158
  const content = `title: ${text}\ncreated: ${timestamp}\narea: general\n\n${text}\n`;
57818
58159
  suppressPath(filePath);