@jefuriiij/synthra 0.1.25 → 0.2.1

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.
@@ -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.25",
8
+ version: "0.2.1",
9
9
  publishConfig: {
10
10
  access: "public"
11
11
  },
@@ -20,7 +20,12 @@ var package_default = {
20
20
  dev: "tsup --watch",
21
21
  test: "vitest run",
22
22
  "test:watch": "vitest",
23
- typecheck: "tsc --noEmit"
23
+ "test:coverage": "vitest run --coverage",
24
+ typecheck: "tsc --noEmit",
25
+ lint: "biome lint .",
26
+ format: "biome format --write .",
27
+ check: "biome check .",
28
+ "check:fix": "biome check --write ."
24
29
  },
25
30
  files: [
26
31
  "dist",
@@ -62,8 +67,10 @@ var package_default = {
62
67
  "web-tree-sitter": "^0.25.10"
63
68
  },
64
69
  devDependencies: {
70
+ "@biomejs/biome": "^2.4.16",
65
71
  "@types/cross-spawn": "^6.0.6",
66
72
  "@types/node": "^25.9.1",
73
+ "@vitest/coverage-v8": "^4.1.8",
67
74
  tsup: "^8.5.1",
68
75
  typescript: "^6.0.3",
69
76
  vitest: "^4.1.7"
@@ -133,6 +140,8 @@ function resolvePaths(projectRoot) {
133
140
  tokenLog: join(graphDir, "token_log.jsonl"),
134
141
  gateLog: join(graphDir, "gate_log.jsonl"),
135
142
  toolLog: join(graphDir, "tool_log.jsonl"),
143
+ accessLog: join(graphDir, "access_log.jsonl"),
144
+ learnStore: join(graphDir, "learn_store.json"),
136
145
  mcpPort: join(graphDir, "mcp_port"),
137
146
  mcpServerLog: join(graphDir, "mcp_server.log"),
138
147
  mcpServerErrLog: join(graphDir, "mcp_server.err.log"),
@@ -325,7 +334,9 @@ async function computeDashboardData(activePaths, recentN = 500) {
325
334
  const loaded = await Promise.all(
326
335
  allEntries.map((e) => loadProjectFiles(e.path, e.name, e.last_seen))
327
336
  );
328
- const projects = loaded.map(summarize).sort((a, b) => b.total_input_tokens + b.total_output_tokens - (a.total_input_tokens + a.total_output_tokens));
337
+ const projects = loaded.map(summarize).sort(
338
+ (a, b) => b.total_input_tokens + b.total_output_tokens - (a.total_input_tokens + a.total_output_tokens)
339
+ );
329
340
  const activeFiles = loaded.find((p) => p.path === activePath) ?? {
330
341
  path: activePath,
331
342
  name: activeName,