@jefuriiij/synthra 0.1.12 → 0.1.13

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.
@@ -2,6 +2,74 @@
2
2
  import { serve } from "@hono/node-server";
3
3
  import { Hono } from "hono";
4
4
 
5
+ // package.json
6
+ var package_default = {
7
+ name: "@jefuriiij/synthra",
8
+ version: "0.1.13",
9
+ publishConfig: {
10
+ access: "public"
11
+ },
12
+ description: "Local context engine for AI coding assistants \u2014 graph-based context, branch-aware memory, real-time human-activity awareness, deterministic Grep/Glob gating, and a live token dashboard.",
13
+ type: "module",
14
+ bin: {
15
+ syn: "./bin/syn",
16
+ synthra: "./bin/syn"
17
+ },
18
+ scripts: {
19
+ build: "tsup",
20
+ dev: "tsup --watch",
21
+ test: "vitest run",
22
+ "test:watch": "vitest",
23
+ typecheck: "tsc --noEmit"
24
+ },
25
+ files: [
26
+ "dist",
27
+ "bin",
28
+ "README.md",
29
+ "CHANGELOG.md",
30
+ "LICENSE",
31
+ "ROADMAP.md"
32
+ ],
33
+ keywords: [
34
+ "claude-code",
35
+ "mcp",
36
+ "context-engine",
37
+ "code-graph",
38
+ "ai-coding",
39
+ "token-savings"
40
+ ],
41
+ author: "Jeff (@jefuriiij)",
42
+ license: "MIT",
43
+ homepage: "https://github.com/jefuriiij/synthra#readme",
44
+ repository: {
45
+ type: "git",
46
+ url: "git+https://github.com/jefuriiij/synthra.git"
47
+ },
48
+ bugs: {
49
+ url: "https://github.com/jefuriiij/synthra/issues"
50
+ },
51
+ engines: {
52
+ node: ">=18"
53
+ },
54
+ dependencies: {
55
+ "@hono/node-server": "^1.18.0",
56
+ chokidar: "^5.0.0",
57
+ "cross-spawn": "^7.0.6",
58
+ hono: "^4.12.23",
59
+ ignore: "^7.0.0",
60
+ sade: "^1.8.1",
61
+ "tree-sitter-wasms": "^0.1.12",
62
+ "web-tree-sitter": "^0.25.10"
63
+ },
64
+ devDependencies: {
65
+ "@types/cross-spawn": "^6.0.6",
66
+ "@types/node": "^25.9.1",
67
+ tsup: "^8.5.1",
68
+ typescript: "^6.0.3",
69
+ vitest: "^4.1.7"
70
+ }
71
+ };
72
+
5
73
  // src/shared/logger.ts
6
74
  var LEVEL_PRIORITY = {
7
75
  debug: 10,
@@ -749,7 +817,7 @@ var public_default = `<!doctype html>\r
749
817
  \r
750
818
  <!-- ============ Footer ============ -->\r
751
819
  <footer class="foot">\r
752
- <div>Synth<em>ra</em> \xB7 v0.1.8</div>\r
820
+ <div>Synth<em>ra</em> \xB7 v__SYN_VERSION__</div>\r
753
821
  <div>Cost figures approximate \xB7 @jefuriiij</div>\r
754
822
  </footer>\r
755
823
  \r
@@ -1166,6 +1234,7 @@ var style_default = '/* Synthra dashboard \xB7 v0.2 \xB7 Cool Marine\r\n Darke
1166
1234
 
1167
1235
  // src/dashboard/server.ts
1168
1236
  var FALLBACK_RANGE = 9;
1237
+ var VERSION = package_default.version;
1169
1238
  async function startDashboard(paths, preferredPort = 8901) {
1170
1239
  const port = await findFreePort(preferredPort, preferredPort + FALLBACK_RANGE);
1171
1240
  if (port !== preferredPort) {
@@ -1174,7 +1243,7 @@ async function startDashboard(paths, preferredPort = 8901) {
1174
1243
  );
1175
1244
  }
1176
1245
  const app = new Hono();
1177
- app.get("/", (c) => c.html(public_default));
1246
+ app.get("/", (c) => c.html(public_default.replaceAll("__SYN_VERSION__", VERSION)));
1178
1247
  app.get("/style.css", (c) => {
1179
1248
  c.header("Content-Type", "text/css; charset=utf-8");
1180
1249
  c.header("Cache-Control", "no-cache");