codesesh 1.0.0 → 1.0.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.
Files changed (45) hide show
  1. package/README.md +27 -4
  2. package/dist/{chunk-BEF6LLRG.js → chunk-JHX5OLL4.js} +4010 -2248
  3. package/dist/chunk-JHX5OLL4.js.map +1 -0
  4. package/dist/{chunk-TIHF4T3K.js → chunk-OFTTM3UD.js} +80 -16
  5. package/dist/chunk-OFTTM3UD.js.map +1 -0
  6. package/dist/{dist-3F467V44.js → dist-N2PQATP2.js} +40 -4
  7. package/dist/index.js +1818 -454
  8. package/dist/index.js.map +1 -1
  9. package/dist/scan-refresh-worker.js +274 -95
  10. package/dist/scan-refresh-worker.js.map +1 -1
  11. package/dist/search-index-worker.js +112 -50
  12. package/dist/search-index-worker.js.map +1 -1
  13. package/dist/smart-tag-worker.js +5 -3
  14. package/dist/smart-tag-worker.js.map +1 -1
  15. package/dist/web/assets/ErrorBoundary-D11tWzfn.js +1 -0
  16. package/dist/web/assets/OverviewScreen-DriPmCam.js +1 -0
  17. package/dist/web/assets/Projects-BPDIcUBK.js +1 -0
  18. package/dist/web/assets/SearchFilterBar-Bx73B5e9.js +1 -0
  19. package/dist/web/assets/SearchResultsPanel-A6_3TPhW.js +1 -0
  20. package/dist/web/assets/SessionDetail-lQz99ARH.js +54 -0
  21. package/dist/web/assets/agents-BkRP_ww3.js +1 -0
  22. package/dist/web/assets/contract-V6QuD0UY.js +1 -0
  23. package/dist/web/assets/index-B2RqUgZ5.css +1 -0
  24. package/dist/web/assets/index-BgWoUD_4.js +1410 -0
  25. package/dist/web/assets/panel-C-gc79Gz.js +1 -0
  26. package/dist/web/assets/session-indexes-0oT5HSS5.js +4 -0
  27. package/dist/web/assets/utils-DgUgu15E.js +1 -0
  28. package/dist/web/index.html +10 -32
  29. package/dist/web/theme-bootstrap.js +19 -0
  30. package/package.json +10 -10
  31. package/dist/chunk-BEF6LLRG.js.map +0 -1
  32. package/dist/chunk-TIHF4T3K.js.map +0 -1
  33. package/dist/web/assets/ErrorBoundary-BY-N1QzJ.js +0 -1
  34. package/dist/web/assets/OverviewScreen-_ZaVjhxN.js +0 -1
  35. package/dist/web/assets/Projects-q6cEm2dc.js +0 -1
  36. package/dist/web/assets/SearchFilterBar-CrVBpo40.js +0 -1
  37. package/dist/web/assets/SearchResultsPanel-Cg5V8Ia6.js +0 -1
  38. package/dist/web/assets/SessionDetail-BSSuddsZ.js +0 -54
  39. package/dist/web/assets/chunk-62JRHF6Z-BWRsEBnL.js +0 -4
  40. package/dist/web/assets/index-C3KgxGwE.js +0 -1410
  41. package/dist/web/assets/index-DQX42cFQ.css +0 -1
  42. package/dist/web/assets/panel-B7kuE60V.js +0 -1
  43. package/dist/web/assets/session-indexes-DmnjZ_JL.js +0 -1
  44. package/dist/web/assets/utils-t2u9IbNT.js +0 -1
  45. /package/dist/{dist-3F467V44.js.map → dist-N2PQATP2.js.map} +0 -0
@@ -9,30 +9,7 @@
9
9
  />
10
10
  <link rel="icon" type="image/svg+xml" href="/logo.svg?v=3" />
11
11
  <title>CodeSesh</title>
12
- <script>
13
- // Sets .dark before first paint, reading the same localStorage key and
14
- // envelope shape as useUiPreferences (apps/web/src/hooks/useUiPreferences.ts)
15
- // so the pre-hydration skeleton below never flashes the wrong theme.
16
- (function () {
17
- var theme = "system";
18
- try {
19
- var raw = window.localStorage.getItem("codesesh.ui-preferences");
20
- if (raw) {
21
- var envelope = JSON.parse(raw);
22
- var stored = envelope && envelope.version === 1 && envelope.state && envelope.state.theme;
23
- if (stored === "light" || stored === "dark" || stored === "system") theme = stored;
24
- }
25
- } catch (e) {
26
- theme = "system";
27
- }
28
- var isDark =
29
- theme === "dark" ||
30
- (theme === "system" &&
31
- window.matchMedia &&
32
- window.matchMedia("(prefers-color-scheme: dark)").matches);
33
- if (isDark) document.documentElement.classList.add("dark");
34
- })();
35
- </script>
12
+ <script src="/theme-bootstrap.js"></script>
36
13
  <style>
37
14
  /* Duplicates the light/dark tokens of src/index.css so the pre-hydration
38
15
  skeleton below paints in the real palette. Keep both in sync. */
@@ -221,17 +198,18 @@
221
198
  }
222
199
  }
223
200
  </style>
224
- <script type="module" crossorigin src="/assets/index-C3KgxGwE.js"></script>
201
+ <script type="module" crossorigin src="/assets/index-BgWoUD_4.js"></script>
225
202
  <link rel="modulepreload" crossorigin href="/assets/jsx-runtime-B-hcVAMW.js">
226
- <link rel="modulepreload" crossorigin href="/assets/chunk-62JRHF6Z-BWRsEBnL.js">
227
- <link rel="modulepreload" crossorigin href="/assets/utils-t2u9IbNT.js">
228
- <link rel="modulepreload" crossorigin href="/assets/panel-B7kuE60V.js">
229
- <link rel="modulepreload" crossorigin href="/assets/ErrorBoundary-BY-N1QzJ.js">
230
- <link rel="modulepreload" crossorigin href="/assets/session-indexes-DmnjZ_JL.js">
203
+ <link rel="modulepreload" crossorigin href="/assets/contract-V6QuD0UY.js">
204
+ <link rel="modulepreload" crossorigin href="/assets/utils-DgUgu15E.js">
205
+ <link rel="modulepreload" crossorigin href="/assets/panel-C-gc79Gz.js">
206
+ <link rel="modulepreload" crossorigin href="/assets/ErrorBoundary-D11tWzfn.js">
207
+ <link rel="modulepreload" crossorigin href="/assets/session-indexes-0oT5HSS5.js">
231
208
  <link rel="modulepreload" crossorigin href="/assets/SmartTagChips-ux6idUGJ.js">
232
- <link rel="modulepreload" crossorigin href="/assets/SearchFilterBar-CrVBpo40.js">
209
+ <link rel="modulepreload" crossorigin href="/assets/SearchFilterBar-Bx73B5e9.js">
210
+ <link rel="modulepreload" crossorigin href="/assets/agents-BkRP_ww3.js">
233
211
  <link rel="modulepreload" crossorigin href="/assets/session-title-DdtlxtlR.js">
234
- <link rel="stylesheet" crossorigin href="/assets/index-DQX42cFQ.css">
212
+ <link rel="stylesheet" crossorigin href="/assets/index-B2RqUgZ5.css">
235
213
  </head>
236
214
  <body>
237
215
  <div id="root">
@@ -0,0 +1,19 @@
1
+ // Runs before first paint so the pre-hydration shell uses the persisted theme.
2
+ (() => {
3
+ let theme = "system";
4
+ try {
5
+ const raw = window.localStorage.getItem("codesesh.ui-preferences");
6
+ if (raw) {
7
+ const envelope = JSON.parse(raw);
8
+ const stored = envelope?.version === 1 ? envelope.state?.theme : undefined;
9
+ if (stored === "light" || stored === "dark" || stored === "system") theme = stored;
10
+ }
11
+ } catch {
12
+ theme = "system";
13
+ }
14
+
15
+ const prefersDark = window.matchMedia?.("(prefers-color-scheme: dark)").matches ?? false;
16
+ if (theme === "dark" || (theme === "system" && prefersDark)) {
17
+ document.documentElement.classList.add("dark");
18
+ }
19
+ })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codesesh",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Browse local AI coding-agent sessions in one Web UI.",
5
5
  "keywords": [
6
6
  "ai",
@@ -37,16 +37,17 @@
37
37
  "access": "public"
38
38
  },
39
39
  "scripts": {
40
- "build": "tsc --noEmit && tsup && node scripts/copy-web-dist.js",
41
- "release": "tsc --noEmit && tsup && node scripts/copy-web-dist.js",
40
+ "build": "pnpm run typecheck && tsup && node scripts/copy-web-dist.js",
41
+ "release": "pnpm run typecheck && tsup && node scripts/copy-web-dist.js",
42
42
  "dev": "tsup --watch",
43
43
  "clean": "node ../../scripts/clean.mjs",
44
44
  "start": "node dist/index.js",
45
- "lint": "oxlint src/",
46
- "lint:fix": "oxlint src/ --fix",
47
- "format": "oxfmt --write src/",
48
- "format:check": "oxfmt --check src/",
49
- "test": "vitest run"
45
+ "lint": "oxlint .",
46
+ "lint:fix": "oxlint . --fix",
47
+ "format": "oxfmt --write \"**/*.{js,mjs,cjs,ts,tsx}\"",
48
+ "format:check": "oxfmt --check \"**/*.{js,mjs,cjs,ts,tsx}\"",
49
+ "test": "vitest run",
50
+ "typecheck": "tsc --noEmit -p tsconfig.node22.json"
50
51
  },
51
52
  "dependencies": {
52
53
  "@hono/node-server": "^2.1.0",
@@ -57,8 +58,7 @@
57
58
  "open": "^11.0.0"
58
59
  },
59
60
  "devDependencies": {
60
- "@codesesh/web": "workspace:*",
61
- "@types/node": "^26.1.2",
61
+ "@types/node": "22.20.1",
62
62
  "@typescript/native": "npm:typescript@^7.0.2",
63
63
  "tsup": "^8.5.1",
64
64
  "typescript": "npm:@typescript/typescript6@^6.0.2"