Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/ingress-wait.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/mcp-shutdown.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/workers-default.md

This file was deleted.

16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## 1.2.0

### Minor Changes

- [#268](https://github.com/Hazzng/sql-fs/pull/268) Thanks [@Hazzng](https://github.com/Hazzng)! - Run scripts in worker threads by default. Set `SQL_FS_WORKERS_ENABLED=false` to keep inline mode. Any value other than `true` or `false` now stops startup.

Inline mode now caps exec output at `SQL_FS_WORKER_OUTPUT_BYTES` (default 64 MiB), down from 256 MiB, so both modes share one limit. The default `SQL_FS_WORKER_MESSAGE_BYTES` grows with the output cap: 65 MiB, or the output cap plus 1 MiB if that is larger. An explicit value still wins.

To upgrade replicas that run with workers off, deploy with `SQL_FS_WORKERS_ENABLED=false` first, then remove the setting once no older replica remains. docs/CONFIGURATION.md describes the two-stage rollout.

### Patch Changes

- [#270](https://github.com/Hazzng/sql-fs/pull/270) Thanks [@Hazzng](https://github.com/Hazzng)! - Add `SQL_FS_MAX_INGRESS_WAIT_MS`, the time a request or MCP listener waits for ingress capacity before it gets a 503 `EWORKER_BUSY`. The default stays 250 ms, the previous fixed value. Like the other ingress settings, an empty value uses the default. With workers on, any other invalid value, including a wait above 2147483647 ms, stops startup. `SQL_FS_WORKER_QUEUE_WAIT_MS` now rejects values above 2147483647 ms too, because Node would run such a timer after 1 ms.

- [#270](https://github.com/Hazzng/sql-fs/pull/270) Thanks [@Hazzng](https://github.com/Hazzng)! - Shut down promptly when MCP clients hold a `GET /mcp` listener stream open. The server waited for those streams before it drained workers, so every such shutdown ran into the 60 s force exit and exited with code 1. It now ends listener streams first and lets in-flight MCP tool calls finish.

## 1.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</p>

<p align="center">
<img src="https://img.shields.io/badge/version-1.1.1-blue" alt="Version" />
<img src="https://img.shields.io/badge/version-1.2.0-blue" alt="Version" />
<img src="https://img.shields.io/badge/node-%3E%3D22-brightgreen?logo=node.js&logoColor=white" alt="Node.js" />
<img src="https://img.shields.io/badge/TypeScript-strict-3178c6?logo=typescript&logoColor=white" alt="TypeScript" />
<img src="https://img.shields.io/badge/just--bash-3.6.0-f59e0b" alt="just-bash" />
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sql-fs-api",
"version": "1.1.1",
"version": "1.2.0",
"description": "Persistent filesystem backend (Postgres) + HTTP/MCP API for just-bash sandboxes",
"type": "module",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/api/openapi-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const openapiSpec = {
openapi: "3.0.0",
info: {
title: "SQL-FS API",
version: "1.1.1",
version: "1.2.0",
description: "Persistent filesystem backend + HTTP/MCP API for just-bash sandboxes. Backed by Postgres.",
},
servers: [{ url: "/v1", description: "API v1" }],
Expand Down
Loading