codesesh 1.0.3 → 1.0.5

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 (66) hide show
  1. package/README.md +22 -14
  2. package/dist/chunk-FCYCBGEL.js +670 -0
  3. package/dist/chunk-FCYCBGEL.js.map +1 -0
  4. package/dist/chunk-NBJJGH5P.js +2053 -0
  5. package/dist/chunk-NBJJGH5P.js.map +1 -0
  6. package/dist/chunk-PAP2Q3WV.js +1271 -0
  7. package/dist/chunk-PAP2Q3WV.js.map +1 -0
  8. package/dist/chunk-QH2HOXJH.js +2 -0
  9. package/dist/chunk-TS3IWH5U.js +6097 -0
  10. package/dist/chunk-TS3IWH5U.js.map +1 -0
  11. package/dist/chunk-WUYSZAYR.js +8383 -0
  12. package/dist/chunk-WUYSZAYR.js.map +1 -0
  13. package/dist/chunk-XKZSX5BM.js +327 -0
  14. package/dist/chunk-XKZSX5BM.js.map +1 -0
  15. package/dist/chunk-YQFEGFWD.js +89 -0
  16. package/dist/chunk-YQFEGFWD.js.map +1 -0
  17. package/dist/discovery-D23RV7FY.js +108 -0
  18. package/dist/discovery-D23RV7FY.js.map +1 -0
  19. package/dist/index.js +2986 -1514
  20. package/dist/index.js.map +1 -1
  21. package/dist/project-identity-worker.js +4 -2
  22. package/dist/project-identity-worker.js.map +1 -1
  23. package/dist/scan-refresh-worker.js +129 -138
  24. package/dist/scan-refresh-worker.js.map +1 -1
  25. package/dist/search-index-worker.js +36 -12
  26. package/dist/search-index-worker.js.map +1 -1
  27. package/dist/session-detail-worker.js +79 -0
  28. package/dist/session-detail-worker.js.map +1 -0
  29. package/dist/smart-tag-worker.js +8 -5
  30. package/dist/smart-tag-worker.js.map +1 -1
  31. package/dist/web/assets/CustomTimeWindowDialog-C9XTZRm0.js +1 -0
  32. package/dist/web/assets/InteractiveReceipt-Sca1smpv.js +1 -0
  33. package/dist/web/assets/OverviewScreen-Vq6BQR9_.js +1 -0
  34. package/dist/web/assets/{PrismHighlighter-BZkkX0AU.js → PrismHighlighter-LWITDffT.js} +2 -2
  35. package/dist/web/assets/Projects-CwicV3Dk.js +1 -0
  36. package/dist/web/assets/SearchResultsPanel-DCO0Ak0c.js +1 -0
  37. package/dist/web/assets/SessionDetail-mdmTQgo1.js +53 -0
  38. package/dist/web/assets/api-CXVT9XcZ.js +1 -0
  39. package/dist/web/assets/contract-BS78VBCV.js +2 -0
  40. package/dist/web/assets/{index-3UfOiTBO.css → index-C5cyw58A.css} +1 -1
  41. package/dist/web/assets/index-H2cT-6c6.js +1423 -0
  42. package/dist/web/assets/{session-indexes-BPhf1X2P.js → session-indexes-yyyWpKLf.js} +2 -2
  43. package/dist/web/assets/utils-C7BqyxxV.js +1 -0
  44. package/dist/web/index.html +7 -11
  45. package/package.json +4 -10
  46. package/dist/chunk-PSHZZITB.js +0 -17307
  47. package/dist/chunk-PSHZZITB.js.map +0 -1
  48. package/dist/chunk-WAKW5OPS.js +0 -241
  49. package/dist/chunk-WAKW5OPS.js.map +0 -1
  50. package/dist/dist-RHDY2EZX.js +0 -173
  51. package/dist/web/assets/ErrorBoundary-DIwwrdlw.js +0 -1
  52. package/dist/web/assets/InteractiveReceipt-DmNBDVms.js +0 -1
  53. package/dist/web/assets/OverviewScreen-B5JekBLC.js +0 -1
  54. package/dist/web/assets/Projects-Bj6ma2k2.js +0 -1
  55. package/dist/web/assets/SearchFilterBar-B9VrUbym.js +0 -1
  56. package/dist/web/assets/SearchResultsPanel-C1cuuOKq.js +0 -1
  57. package/dist/web/assets/SessionDetail-Dc2CQ3hH.js +0 -54
  58. package/dist/web/assets/SmartTagChips-ux6idUGJ.js +0 -1
  59. package/dist/web/assets/agents-BkRP_ww3.js +0 -1
  60. package/dist/web/assets/code-metrics-UYFsCC7E.js +0 -1
  61. package/dist/web/assets/contract-DXvltqJG.js +0 -1
  62. package/dist/web/assets/index-DBMiEd61.js +0 -1410
  63. package/dist/web/assets/panel-CLnL4kMN.js +0 -1
  64. package/dist/web/assets/session-title-DdtlxtlR.js +0 -1
  65. package/dist/web/assets/utils-BKqufGdv.js +0 -1
  66. /package/dist/{dist-RHDY2EZX.js.map → chunk-QH2HOXJH.js.map} +0 -0
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  <p align="center"><strong>One place to see every AI coding session you've ever had.</strong></p>
8
8
 
9
- CodeSesh scans your local machine, finds every AI agent session (Claude Code, Cursor, Kimi, Kimi-Code, Codex, Grok, Pi, OpenCode, ZCode, DSH), and surfaces them in a unified, beautiful Web UI.
9
+ CodeSesh scans your local machine, finds sessions from supported AI coding agents, and surfaces them in a unified Web UI.
10
10
 
11
11
  ## Quick Start
12
12
 
@@ -41,11 +41,13 @@ Your browser will open at `http://localhost:4521` with all your sessions ready t
41
41
 
42
42
  ## Supported Agents
43
43
 
44
+ <!-- repo-fact:agents:start -->
45
+
44
46
  | Agent | Status |
45
47
  | ----------- | ------------ |
46
48
  | Claude Code | ✅ Supported |
47
49
  | Cursor | ✅ Supported |
48
- | Kimi | ✅ Supported |
50
+ | Kimi-Cli | ✅ Supported |
49
51
  | Kimi-Code | ✅ Supported |
50
52
  | Codex | ✅ Supported |
51
53
  | Grok | ✅ Supported |
@@ -54,6 +56,8 @@ Your browser will open at `http://localhost:4521` with all your sessions ready t
54
56
  | ZCode | ✅ Supported |
55
57
  | DSH | ✅ Supported |
56
58
 
59
+ <!-- repo-fact:agents:end -->
60
+
57
61
  ## Usage
58
62
 
59
63
  ```bash
@@ -63,7 +67,7 @@ npx codesesh
63
67
  # Choose a custom starting port
64
68
  npx codesesh --port 8080
65
69
 
66
- # Only show sessions active in the last 3 days
70
+ # Only show sessions active in the last 3 local calendar days
67
71
  npx codesesh --days 3
68
72
 
69
73
  # Jump directly to a session
@@ -88,15 +92,16 @@ npx codesesh --trace
88
92
  | ----------- | ----- | ------- | ----------------------------------------------------------- |
89
93
  | `--port` | `-p` | `4521` | HTTP server starting port; falls back to the next available port if busy |
90
94
  | `--host` | — | `127.0.0.1` | HTTP server bind address; non-loopback values require `--remote-access` |
91
- | `--remote-access` | — | `false` | Enable token-protected access for any remotely exposed transport |
95
+ | `--remote-access` | — | `false` | Allow network or reverse-proxy exposure; every API mode uses a token |
92
96
  | `--tls-cert` | — | — | Path to a TLS certificate; serves remote access over HTTPS |
93
97
  | `--tls-key` | — | — | Path to the private key matching `--tls-cert` |
94
98
  | `--trust-proxy` | — | `false` | A reverse proxy in front of CodeSesh terminates TLS |
95
- | `--days` | `-d` | `7` | Only include sessions active in the last N days (`0` = all time) |
99
+ | `--public-url` | | | Public HTTPS origin used with `--trust-proxy` for startup links |
100
+ | `--days` | `-d` | `7` | Only include sessions active in the last N local calendar days (`0` = all time) |
96
101
  | `--cwd` | — | — | Filter to sessions from a project directory |
97
102
  | `--agent` | `-a` | all | Filter to specific agent(s), comma-separated |
98
- | `--from` | — | — | Sessions active after this date `YYYY-MM-DD` |
99
- | `--to` | — | — | Sessions active before this date `YYYY-MM-DD` |
103
+ | `--from` | — | — | Sessions active on or after this date `YYYY-MM-DD` |
104
+ | `--to` | — | — | Sessions active on or before this date `YYYY-MM-DD` |
100
105
  | `--session` | `-s` | — | Directly open a session (`agent://session-id`) |
101
106
  | `--json` | `-j` | `false` | Print the session index as JSON and exit (metadata only) |
102
107
  | `--no-open` | — | `false` | Don't auto-open the browser |
@@ -105,10 +110,11 @@ npx codesesh --trace
105
110
  | `--clear-cache` | — | `false` | Clear scan cache before starting |
106
111
  | `-v` | — | — | Print version number |
107
112
 
108
- Non-loopback binding and `--trust-proxy` both require `--remote-access`. This includes the common
109
- setup where CodeSesh listens on `127.0.0.1` and a same-machine reverse proxy exposes it publicly.
110
- CodeSesh prints a startup URL containing a fresh access token. Anyone with that URL can read the
111
- indexed AI session history, so treat it as a password and do not share or persist it.
113
+ Every CodeSesh server process protects its API with a fresh access token, including the default
114
+ loopback listener, and prints that token in the startup URL. Non-loopback binding requires
115
+ `--remote-access`. A trusted proxy also requires `--remote-access`, a loopback `--host`, and an
116
+ HTTPS `--public-url`. Anyone with the startup URL can read the indexed AI session history, so treat
117
+ it as a password and do not share or persist it.
112
118
 
113
119
  A token authenticates the requester but does not encrypt traffic. Without TLS, the token and full
114
120
  session content travel over the network in plaintext, and URL tokens may be recorded in proxy logs.
@@ -119,11 +125,13 @@ Use one of these protected transports:
119
125
  npx codesesh --host 0.0.0.0 --remote-access --tls-cert ./cert.pem --tls-key ./key.pem
120
126
 
121
127
  # A reverse proxy terminates TLS; CodeSesh stays bound to loopback
122
- npx codesesh --host 127.0.0.1 --remote-access --trust-proxy
128
+ npx codesesh --host 127.0.0.1 --remote-access --trust-proxy \
129
+ --public-url https://codesesh.example.com
123
130
  ```
124
131
 
125
- `--trust-proxy` requires `X-Forwarded-Proto: https` on every API request. The listener must remain
126
- unreachable except through that trusted proxy.
132
+ `--trust-proxy` requires `X-Forwarded-Proto: https` on every API request. That header validates the
133
+ proxy configuration but cannot identify its sender, so CodeSesh enforces a loopback backend rather
134
+ than trusting the header as a network boundary. Startup links use the configured `--public-url`.
127
135
 
128
136
  ## Requirements
129
137