You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3c8df11
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: ACKNOWLEDGMENTS.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,8 @@ Vendored in `static/lib/` and served directly:
75
75
|[node-qrcode](https://github.com/soldair/node-qrcode) (`qrcode.min.js`) | QR-code rendering (2FA setup) | MIT |
76
76
|[KaTeX](https://github.com/KaTeX/KaTeX) v0.16.22 (`katex/katex.min.{js,css}` + `katex/fonts/*.woff2`) | Math typesetting | MIT ([`licenses/KaTeX-MIT-LICENSE.txt`](licenses/KaTeX-MIT-LICENSE.txt)) |
77
77
|[Mermaid](https://github.com/mermaid-js/mermaid) v11.16.1 (`mermaid.min.js`) | Diagrams from text | MIT ([`licenses/Mermaid-MIT-LICENSE.txt`](licenses/Mermaid-MIT-LICENSE.txt)) |
78
+
|[xterm.js](https://github.com/xtermjs/xterm.js) v6.0.0 (`vendor/xterm/xterm.mjs`, `xterm.css`) | Browser terminal emulator for the admin-only operator shell | MIT ([`licenses/xterm-MIT-LICENSE.txt`](licenses/xterm-MIT-LICENSE.txt)) |
79
+
|[@xterm/addon-fit](https://www.npmjs.com/package/@xterm/addon-fit) v0.11.0 (`vendor/xterm/addon-fit.mjs`) | Fits the operator terminal to its pane | MIT ([`licenses/xterm-MIT-LICENSE.txt`](licenses/xterm-MIT-LICENSE.txt)) |
78
80
79
81
KaTeX and Mermaid are loaded on first use by `static/js/markdown.js` rather than
80
82
from `index.html`, so a session that renders no math and no diagram never fetches
Copy file name to clipboardExpand all lines: README.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,8 @@
30
30
**Ɗiogenēs** is a `dev`-based extension that keeps Odysseus routes and data
31
31
contracts intact while adding a native, admin-only workstation control plane:
32
32
33
-
- Docker, Bun/NPX, native, tmux, and Hermes runtimes in the **Services** window;
33
+
- Docker, Bun/NPX, native, tmux, and Hermes runtimes in the **Services** window,
34
+
plus a separate operator-only mm-tools venv and host-shell tab;
34
35
- a standalone [Sandwich](https://github.com/CommanderTurtle/sandwich) Bun
35
36
compatibility layer—system Node, npm, pnpm, and yarn are not required;
36
37
- separate Colibri GLM, Colibri Hy3, and PrismML native model engines;
@@ -70,7 +71,14 @@ plane built around native Bun. [Sandwich](https://github.com/CommanderTurtle/san
70
71
itself adds no telemetry and keeps the JavaScript ecosystem as low-friction as
71
72
practical. The **Services** window discovers and manages Docker Compose
@@ -30,6 +31,13 @@ This spec covers current app runtime wiring in:
30
31
31
32
`app.py` separately owns runtime singletons and integration hooks for auth, vector RAG, TTS/STT, webhooks, scheduled tasks, MCP, assistant log globals, event bus wiring, AI interaction globals, API-token cache invalidation, and foreground activity tracking. `src.runtime_paths` owns source-versus-frozen app/data path resolution; `src.constants` derives `DATA_DIR` from `ODYSSEUS_DATA_DIR` or that runtime default. `core/constants.py` and `src/constants.py` are both live import paths and are not fully identical today, so new constants need explicit placement/compatibility decisions.
32
33
34
+
`src.diogenes_host_services` owns the admin-only **Venvs** operator plane. Its
35
+
fixed mm-tools catalog starts each selected project through its own launcher and
36
+
virtual environment. Services and interactive host-shell tabs live on the named
37
+
`diogenes-operator` tmux socket, with wrappers and logs under
38
+
`DATA_DIR/diogenes-operator`; no command in this plane lists, attaches to, or
39
+
kills a session on Diogenes' default tmux server.
40
+
33
41
The shared upload handler is also installed on the session manager and tool
34
42
helper, and `app.py` injects it into attachment-bearing route factories so
35
43
durable writers and cleanup use one lifecycle owner.
Security headers include HSTS and a restrictive `Permissions-Policy` that disables camera/geolocation and only allows microphone from self.
58
66
67
+
The operator-service HTTP routes require a human cookie-authenticated admin and
68
+
explicitly reject the internal-agent and bearer-token bypass identities.
69
+
Interactive
70
+
terminal WebSockets independently validate the session cookie and admin role,
71
+
and reject browser `Origin` hosts that do not match the request host. The named
72
+
tmux socket is a control-plane boundary rather than an OS-user sandbox: another
73
+
process deliberately running as the same Unix account could address that socket
74
+
by name, while it remains absent from Diogenes agent/runtime controls.
75
+
59
76
`_TIMEOUT_EXEMPT_PREFIXES` owns hard-timeout bypass policy. It is prefix-based and currently exempts all subroutes under `/api/chat`, `/api/shell/stream`, `/api/research`, `/api/model/download`, `/api/model/probe`, `/api/model-endpoints`, `/api/cookbook/setup`, `/api/upload`, `/api/image`, and `/api/memory/audit`. Memory audit has its own longer inactivity timeout.
60
77
61
78
Generated-image path resolution fails closed for invalid names, path escape, and missing files. Ownership checks are best-effort when a current user exists: gallery rows owned by a different user return 404, rowless generated files are allowed, and DB/helper failures fail open. See `auth-security.md` for `LOCALHOST_BYPASS`, internal-tool loopback, proxy-header exclusion, and owner-impersonation policy.
@@ -64,6 +81,9 @@ Generated-image path resolution fails closed for invalid names, path escape, and
64
81
65
82
- Request hard timeout applies to non-exempt paths that reach `_RequestTimeoutMiddleware`.
66
83
-`src.interactive_gate` tracks foreground requests, browser heartbeats, and active chat streams. Background task/email work can wait for a quiet window so scheduled jobs do not compete with visible browser or model activity. Status polling and `/api/email/unread-state` are passive reads: they do not cancel running scheduled work or manufacture foreground pressure.
84
+
- Operator shell browser attachments are disposable PTYs connected to persistent
85
+
tmux sessions. Closing a browser or Services window ends only that attachment;
86
+
closing the shell tab explicitly ends the corresponding tmux session.
67
87
- YouTube support is initialized through `services.youtube.init_youtube()`.
68
88
- Vector document RAG is initialized lazily through `src.rag_singleton.get_rag_manager()` and may be unavailable at startup.
69
89
-`routes.workspace_routes` lets the browser choose a server directory for agent turns; execution confinement is enforced below the route layer by tool execution.
0 commit comments