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.
- package/.claude/.musubix-managed +1 -1
- package/dist/assets/skills-manifest.json +1 -1
- package/dist/cli.js +3 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/.claude/.musubix-managed
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generator":"musubix2","version":"0.5.
|
|
1
|
+
{"generator":"musubix2","version":"0.5.82","timestamp":"2026-07-11T22:25:45.894Z"}
|
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
|
}
|