12 Commits
Author SHA1 Message Date
Jarek Krochmalski 6d0e375943 add a docker attach terminal mode 2026-09-14 05:25:04 +02:00
Jarek Krochmalski 3e45ca2610 add a docker attach terminal mode for hawser-edge environments 2026-09-13 15:31:28 +02:00
Ivan KaraandJarek Krochmalski 0ca3b86f82 Add docker attach support (#1377)
* Add attach mode

* Better UI

* Remove unnecessary message

* extract + test the docker stream demux; reset terminal mode per session

- Pull the Docker hijacked-stream decoder (HTTP header strip, chunked
  decode, 8-byte multiplexed frame demux + raw/TTY fallback) into a pure
  src/lib/server/docker-stream-core.ts with unit tests covering raw
  passthrough, stdout/stderr demux, frames split across socket events,
  a split header, chunked reassembly, and the raw-fallback path.
- vite.config.ts now imports the core instead of carrying its own copy.
  server.js runs against ./build and can't import the TS core at runtime,
  so it keeps the inline copy with a note to keep the two in sync.
- containers page: default a fresh terminal session to exec so a prior
  container's Attach choice (shared terminalMode) doesn't carry over.

---------

Co-authored-by: Jarek Krochmalski <jkrochmalski@gmail.com>
2026-09-13 14:08:19 +02:00
jarek f8bfd756ef apply the containers:exec permission check to the websocket terminal path 2026-08-20 08:28:26 +02:00
jarek c718ac9a84 1.0.37 2026-07-11 15:31:52 +02:00
jarek efb634701c 1.0.34 2026-06-17 08:21:38 +02:00
jarek 55f3101a19 v1.0.21 2026-03-13 08:22:46 +01:00
jarek 9c451aedf9 v1.0.19 2026-03-02 07:59:58 +01:00
jarek 86a06d9de0 1.0.12 2026-01-22 16:23:26 +01:00
jarek a3cc26d958 1.0.11 2026-01-20 15:39:08 +01:00
jarek 62636426bf 1.0.8 2026-01-14 08:18:20 +01:00
jarek 73c9f580a1 proper src structure, dockerfile, entrypoint 2025-12-29 08:40:11 +01:00