musubix2 0.5.80 → 0.5.82

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.
@@ -1 +1 @@
1
- {"generator":"musubix2","version":"0.5.80","timestamp":"2026-07-11T22:03:06.382Z"}
1
+ {"generator":"musubix2","version":"0.5.82","timestamp":"2026-07-11T22:25:45.894Z"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.0",
3
- "generatedAt": "2026-07-11T22:03:06.414Z",
3
+ "generatedAt": "2026-07-11T22:25:45.928Z",
4
4
  "entries": [
5
5
  {
6
6
  "platform": "copilot",
package/dist/cli.js CHANGED
@@ -2607,7 +2607,15 @@ function capFirst(w) {
2607
2607
  return w.charAt(0).toUpperCase() + w.slice(1);
2608
2608
  }
2609
2609
  function camelJoin(parts) {
2610
- return parts.map((w, i) => i === 0 ? w.charAt(0).toLowerCase() + w.slice(1) : capFirst(w)).join("");
2610
+ return parts.map((w, i) => {
2611
+ if (i !== 0) {
2612
+ return capFirst(w);
2613
+ }
2614
+ if (w.length > 1 && w === w.toUpperCase()) {
2615
+ return w.toLowerCase();
2616
+ }
2617
+ return w.charAt(0).toLowerCase() + w.slice(1);
2618
+ }).join("");
2611
2619
  }
2612
2620
  function pascalJoin(parts) {
2613
2621
  return parts.map(capFirst).join("");
@@ -8947,6 +8955,9 @@ function isLikelyConfigSecret(matchText) {
8947
8955
  if (/[$#]\{|\$\w|<[^>]+>|\{\{|%\(|process\.env|os\.environ|getenv/i.test(v)) {
8948
8956
  return false;
8949
8957
  }
8958
+ if (new Set(v).size < 4) {
8959
+ return false;
8960
+ }
8950
8961
  return true;
8951
8962
  }
8952
8963
  function blankNonCode(code, hashComments) {
@@ -12526,12 +12537,14 @@ var init_dist13 = __esm({
12526
12537
  TOKEN_RE = /[a-z0-9]+/g;
12527
12538
  TfIdfEmbeddingModel = class {
12528
12539
  dimensions;
12540
+ baseDimensions;
12529
12541
  vocabulary = /* @__PURE__ */ new Map();
12530
12542
  idfScores = /* @__PURE__ */ new Map();
12531
12543
  documentCount = 0;
12532
12544
  documentFrequency = /* @__PURE__ */ new Map();
12533
12545
  constructor(dimensions = 128) {
12534
12546
  this.dimensions = dimensions;
12547
+ this.baseDimensions = dimensions;
12535
12548
  }
12536
12549
  /** Build vocabulary and IDF scores from a corpus of documents. */
12537
12550
  fit(documents) {
@@ -12553,6 +12566,7 @@ var init_dist13 = __esm({
12553
12566
  }
12554
12567
  }
12555
12568
  }
12569
+ this.dimensions = Math.max(this.baseDimensions, this.vocabulary.size);
12556
12570
  for (const [term, df] of this.documentFrequency) {
12557
12571
  this.idfScores.set(term, Math.log((1 + this.documentCount) / (1 + df)) + 1);
12558
12572
  }
package/dist/index.js CHANGED
@@ -2607,7 +2607,15 @@ function capFirst(w) {
2607
2607
  return w.charAt(0).toUpperCase() + w.slice(1);
2608
2608
  }
2609
2609
  function camelJoin(parts) {
2610
- return parts.map((w, i) => i === 0 ? w.charAt(0).toLowerCase() + w.slice(1) : capFirst(w)).join("");
2610
+ return parts.map((w, i) => {
2611
+ if (i !== 0) {
2612
+ return capFirst(w);
2613
+ }
2614
+ if (w.length > 1 && w === w.toUpperCase()) {
2615
+ return w.toLowerCase();
2616
+ }
2617
+ return w.charAt(0).toLowerCase() + w.slice(1);
2618
+ }).join("");
2611
2619
  }
2612
2620
  function pascalJoin(parts) {
2613
2621
  return parts.map(capFirst).join("");
@@ -8947,6 +8955,9 @@ function isLikelyConfigSecret(matchText) {
8947
8955
  if (/[$#]\{|\$\w|<[^>]+>|\{\{|%\(|process\.env|os\.environ|getenv/i.test(v)) {
8948
8956
  return false;
8949
8957
  }
8958
+ if (new Set(v).size < 4) {
8959
+ return false;
8960
+ }
8950
8961
  return true;
8951
8962
  }
8952
8963
  function blankNonCode(code, hashComments) {
@@ -12526,12 +12537,14 @@ var init_dist13 = __esm({
12526
12537
  TOKEN_RE = /[a-z0-9]+/g;
12527
12538
  TfIdfEmbeddingModel = class {
12528
12539
  dimensions;
12540
+ baseDimensions;
12529
12541
  vocabulary = /* @__PURE__ */ new Map();
12530
12542
  idfScores = /* @__PURE__ */ new Map();
12531
12543
  documentCount = 0;
12532
12544
  documentFrequency = /* @__PURE__ */ new Map();
12533
12545
  constructor(dimensions = 128) {
12534
12546
  this.dimensions = dimensions;
12547
+ this.baseDimensions = dimensions;
12535
12548
  }
12536
12549
  /** Build vocabulary and IDF scores from a corpus of documents. */
12537
12550
  fit(documents) {
@@ -12553,6 +12566,7 @@ var init_dist13 = __esm({
12553
12566
  }
12554
12567
  }
12555
12568
  }
12569
+ this.dimensions = Math.max(this.baseDimensions, this.vocabulary.size);
12556
12570
  for (const [term, df] of this.documentFrequency) {
12557
12571
  this.idfScores.set(term, Math.log((1 + this.documentCount) / (1 + df)) + 1);
12558
12572
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musubix2",
3
- "version": "0.5.80",
3
+ "version": "0.5.82",
4
4
  "description": "MUSUBIX2 — Specification Driven Development System",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",