@roamcode.ai/server 1.0.12 → 1.0.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.
package/dist/index.js CHANGED
@@ -2429,7 +2429,7 @@ async function installManagedRelease(opts) {
2429
2429
  }
2430
2430
 
2431
2431
  // src/updater.ts
2432
- var RUNNING_VERSION = "1.0.12" ? "1.0.12".replace(/^v/, "") : packageVersion();
2432
+ var RUNNING_VERSION = "1.0.13" ? "1.0.13".replace(/^v/, "") : packageVersion();
2433
2433
  var RUNNING_BUILD = RUNNING_VERSION;
2434
2434
  var RELEASES_API = "https://api.github.com/repos/burakgon/roamcode/releases?per_page=100";
2435
2435
  var RELEASE_MANIFEST_ASSET = "roamcode-release.json";
@@ -5091,9 +5091,10 @@ function createServer(config, deps = {}) {
5091
5091
  const queryToken = typeof q?.token === "string" ? q.token : void 0;
5092
5092
  const queryTicket = typeof q?.ticket === "string" ? q.ticket : void 0;
5093
5093
  const isWsUpgradePath = path.endsWith("/ws") || path.endsWith("/terminal");
5094
+ const isTerminalFileContent = isGetLike && /^\/sessions\/[^/]+\/files\/[^/]+\/content$/.test(path);
5094
5095
  const ticketOk = isWsUpgradePath && queryTicket !== void 0 && wsTickets.consume(queryTicket);
5095
5096
  if (!ticketOk) {
5096
- const queryTokenAllowed = isWsUpgradePath || path.startsWith("/images/") || path === "/fs/download";
5097
+ const queryTokenAllowed = isWsUpgradePath || path.startsWith("/images/") || path === "/fs/download" || isTerminalFileContent;
5097
5098
  const token = extractBearerToken(request.headers.authorization) ?? (queryTokenAllowed ? queryToken : void 0);
5098
5099
  const result = authGate.check(token, request.ip);
5099
5100
  if (!result.ok) {
package/dist/start.js CHANGED
@@ -871,7 +871,7 @@ function readPreviousVersion(root) {
871
871
  }
872
872
 
873
873
  // src/updater.ts
874
- var RUNNING_VERSION = "1.0.12" ? "1.0.12".replace(/^v/, "") : packageVersion();
874
+ var RUNNING_VERSION = "1.0.13" ? "1.0.13".replace(/^v/, "") : packageVersion();
875
875
  var RELEASES_API = "https://api.github.com/repos/burakgon/roamcode/releases?per_page=100";
876
876
  var RELEASE_MANIFEST_ASSET = "roamcode-release.json";
877
877
  var CHECK_CACHE_MS = 15 * 6e4;
@@ -4478,9 +4478,10 @@ function createServer(config, deps = {}) {
4478
4478
  const queryToken = typeof q?.token === "string" ? q.token : void 0;
4479
4479
  const queryTicket = typeof q?.ticket === "string" ? q.ticket : void 0;
4480
4480
  const isWsUpgradePath = path.endsWith("/ws") || path.endsWith("/terminal");
4481
+ const isTerminalFileContent = isGetLike && /^\/sessions\/[^/]+\/files\/[^/]+\/content$/.test(path);
4481
4482
  const ticketOk = isWsUpgradePath && queryTicket !== void 0 && wsTickets.consume(queryTicket);
4482
4483
  if (!ticketOk) {
4483
- const queryTokenAllowed = isWsUpgradePath || path.startsWith("/images/") || path === "/fs/download";
4484
+ const queryTokenAllowed = isWsUpgradePath || path.startsWith("/images/") || path === "/fs/download" || isTerminalFileContent;
4484
4485
  const token = extractBearerToken(request.headers.authorization) ?? (queryTokenAllowed ? queryToken : void 0);
4485
4486
  const result = authGate.check(token, request.ip);
4486
4487
  if (!result.ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roamcode.ai/server",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Host-native server for RoamCode",
5
5
  "homepage": "https://roamcode.ai",
6
6
  "bugs": "https://github.com/burakgon/roamcode/issues",
@@ -40,7 +40,7 @@
40
40
  "node-pty": "1.1.0",
41
41
  "web-push": "^3.6.7",
42
42
  "zod": "^4.4.3",
43
- "@roamcode.ai/web": "1.0.12"
43
+ "@roamcode.ai/web": "1.0.13"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/better-sqlite3": "^7.6.13",