@jefuriiij/synthra 0.1.22 → 0.1.23
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/CHANGELOG.md +46 -0
- package/dist/cli/index.js +59 -35
- package/dist/cli/index.js.map +1 -1
- package/dist/dashboard/index.js +7 -2
- package/dist/dashboard/index.js.map +1 -1
- package/dist/server/index.js +25 -6
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
package/dist/dashboard/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Hono } from "hono";
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@jefuriiij/synthra",
|
|
8
|
-
version: "0.1.
|
|
8
|
+
version: "0.1.23",
|
|
9
9
|
publishConfig: {
|
|
10
10
|
access: "public"
|
|
11
11
|
},
|
|
@@ -248,13 +248,18 @@ function summarize(p) {
|
|
|
248
248
|
models
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
|
+
function dedupeEnabled() {
|
|
252
|
+
const v = process.env.SYN_DASHBOARD_DEDUPE;
|
|
253
|
+
return v !== "0" && v !== "off" && v !== "false";
|
|
254
|
+
}
|
|
251
255
|
async function loadProjectFiles(path, name, lastSeen) {
|
|
252
256
|
const paths = resolvePaths(path);
|
|
253
257
|
const [rawTokens, gates] = await Promise.all([
|
|
254
258
|
readJsonl(paths.tokenLog),
|
|
255
259
|
readJsonl(paths.gateLog)
|
|
256
260
|
]);
|
|
257
|
-
|
|
261
|
+
const tokens = dedupeEnabled() ? dedupeTokens(rawTokens) : rawTokens;
|
|
262
|
+
return { path, name, last_seen: lastSeen, tokens, gates };
|
|
258
263
|
}
|
|
259
264
|
function dedupeTokens(entries) {
|
|
260
265
|
const score = (model) => {
|