musubix2 0.5.81 → 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.81","timestamp":"2026-07-11T22:12:14.845Z"}
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:12:14.878Z",
3
+ "generatedAt": "2026-07-11T22:25:45.928Z",
4
4
  "entries": [
5
5
  {
6
6
  "platform": "copilot",
package/dist/cli.js CHANGED
@@ -12537,12 +12537,14 @@ var init_dist13 = __esm({
12537
12537
  TOKEN_RE = /[a-z0-9]+/g;
12538
12538
  TfIdfEmbeddingModel = class {
12539
12539
  dimensions;
12540
+ baseDimensions;
12540
12541
  vocabulary = /* @__PURE__ */ new Map();
12541
12542
  idfScores = /* @__PURE__ */ new Map();
12542
12543
  documentCount = 0;
12543
12544
  documentFrequency = /* @__PURE__ */ new Map();
12544
12545
  constructor(dimensions = 128) {
12545
12546
  this.dimensions = dimensions;
12547
+ this.baseDimensions = dimensions;
12546
12548
  }
12547
12549
  /** Build vocabulary and IDF scores from a corpus of documents. */
12548
12550
  fit(documents) {
@@ -12564,6 +12566,7 @@ var init_dist13 = __esm({
12564
12566
  }
12565
12567
  }
12566
12568
  }
12569
+ this.dimensions = Math.max(this.baseDimensions, this.vocabulary.size);
12567
12570
  for (const [term, df] of this.documentFrequency) {
12568
12571
  this.idfScores.set(term, Math.log((1 + this.documentCount) / (1 + df)) + 1);
12569
12572
  }
package/dist/index.js CHANGED
@@ -12537,12 +12537,14 @@ var init_dist13 = __esm({
12537
12537
  TOKEN_RE = /[a-z0-9]+/g;
12538
12538
  TfIdfEmbeddingModel = class {
12539
12539
  dimensions;
12540
+ baseDimensions;
12540
12541
  vocabulary = /* @__PURE__ */ new Map();
12541
12542
  idfScores = /* @__PURE__ */ new Map();
12542
12543
  documentCount = 0;
12543
12544
  documentFrequency = /* @__PURE__ */ new Map();
12544
12545
  constructor(dimensions = 128) {
12545
12546
  this.dimensions = dimensions;
12547
+ this.baseDimensions = dimensions;
12546
12548
  }
12547
12549
  /** Build vocabulary and IDF scores from a corpus of documents. */
12548
12550
  fit(documents) {
@@ -12564,6 +12566,7 @@ var init_dist13 = __esm({
12564
12566
  }
12565
12567
  }
12566
12568
  }
12569
+ this.dimensions = Math.max(this.baseDimensions, this.vocabulary.size);
12567
12570
  for (const [term, df] of this.documentFrequency) {
12568
12571
  this.idfScores.set(term, Math.log((1 + this.documentCount) / (1 + df)) + 1);
12569
12572
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musubix2",
3
- "version": "0.5.81",
3
+ "version": "0.5.82",
4
4
  "description": "MUSUBIX2 — Specification Driven Development System",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",