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
package/README.md CHANGED
@@ -87,7 +87,10 @@ npx codesesh --trace
87
87
  | ----------- | ----- | ------- | ----------------------------------------------------------- |
88
88
  | `--port` | `-p` | `4521` | HTTP server starting port; falls back to the next available port if busy |
89
89
  | `--host` | — | `127.0.0.1` | HTTP server bind address; non-loopback values require `--remote-access` |
90
- | `--remote-access` | — | `false` | Enable token-protected access on a non-loopback host |
90
+ | `--remote-access` | — | `false` | Enable token-protected access for any remotely exposed transport |
91
+ | `--tls-cert` | — | — | Path to a TLS certificate; serves remote access over HTTPS |
92
+ | `--tls-key` | — | — | Path to the private key matching `--tls-cert` |
93
+ | `--trust-proxy` | — | `false` | A reverse proxy in front of CodeSesh terminates TLS |
91
94
  | `--days` | `-d` | `7` | Only include sessions active in the last N days (`0` = all time) |
92
95
  | `--cwd` | — | — | Filter to sessions from a project directory |
93
96
  | `--agent` | `-a` | all | Filter to specific agent(s), comma-separated |
@@ -101,14 +104,34 @@ npx codesesh --trace
101
104
  | `--clear-cache` | — | `false` | Clear scan cache before starting |
102
105
  | `-v` | — | — | Print version number |
103
106
 
104
- When remote access is enabled, CodeSesh prints a startup URL containing a fresh access token.
105
- Anyone with that URL can read the indexed AI session history, so treat it as a password and do not
106
- share or persist it.
107
+ Non-loopback binding and `--trust-proxy` both require `--remote-access`. This includes the common
108
+ setup where CodeSesh listens on `127.0.0.1` and a same-machine reverse proxy exposes it publicly.
109
+ CodeSesh prints a startup URL containing a fresh access token. Anyone with that URL can read the
110
+ indexed AI session history, so treat it as a password and do not share or persist it.
111
+
112
+ A token authenticates the requester but does not encrypt traffic. Without TLS, the token and full
113
+ session content travel over the network in plaintext, and URL tokens may be recorded in proxy logs.
114
+ Use one of these protected transports:
115
+
116
+ ```bash
117
+ # CodeSesh terminates TLS
118
+ npx codesesh --host 0.0.0.0 --remote-access --tls-cert ./cert.pem --tls-key ./key.pem
119
+
120
+ # A reverse proxy terminates TLS; CodeSesh stays bound to loopback
121
+ npx codesesh --host 127.0.0.1 --remote-access --trust-proxy
122
+ ```
123
+
124
+ `--trust-proxy` requires `X-Forwarded-Proto: https` on every API request. The listener must remain
125
+ unreachable except through that trusted proxy.
107
126
 
108
127
  ## Requirements
109
128
 
129
+ <!-- repo-fact:node-version:start -->
130
+
110
131
  - Node.js 22+
111
132
 
133
+ <!-- repo-fact:node-version:end -->
134
+
112
135
  ## Links
113
136
 
114
137
  - [GitHub](https://github.com/xingkaixin/codesesh)