Add security hardening, Ghidra, recreate skill, checkpoints, shells, web search and themes

- Sandbox (bubblewrap) for non-admin shell/git, MCP per-user rights, hard budgets and quotas,
  login rate limiting, audit log and backups
- Ghidra headless decompilation (ARM64 natives built from source), binary_info tool,
  clean room / deep workflow per session
- Recreate skill and commands for analysing and re-building old software
- File checkpoints with rewind/restore, background shells (bash_output, kill_shell)
- web_search tool (DuckDuckGo, SearXNG, Brave, Tavily)
- In-app dialogs and toasts instead of browser dialogs
- 15 base themes (trilium-themes palettes plus Nord, VS Code, GitHub, Catppuccin, One,
  Dracula, Rose Pine, Everforest, Kanagawa) with light/dark/auto switcher and license notes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Opus 5.5 committed 2026-11-08 19:12:30 +01:00
1 parent fab9add5d5
commit 5b569b6835
108 files changed
+6785 -279

No files matched your search

+264
View File
@@ -1826,3 +1826,267 @@ button.entry {
display: inline-block;
}
}
/* --- images in chat ------------------------------------------------------------ */
.markdown img.inline-image,
.svg-block img,
.image-result img {
max-width: min(100%, 640px);
max-height: 480px;
border-radius: 6px;
display: block;
margin: 6px 0;
background: repeating-conic-gradient(var(--bg1) 0% 25%, var(--bg0) 0% 50%) 50% / 16px 16px;
}
.svg-block {
margin: 8px 0;
}
.image-refs {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin: 6px 0;
}
.image-refs img {
height: 140px;
max-width: 260px;
object-fit: contain;
border-radius: 6px;
border: 1px solid var(--bg2);
background: repeating-conic-gradient(var(--bg1) 0% 25%, var(--bg0) 0% 50%) 50% / 16px 16px;
}
.image-result {
padding: 0 10px 8px;
}
.tool-head {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 0;
font-size: 13px;
}
/* --- usage overlay ------------------------------------------------------------- */
.modal.wide {
width: min(1100px, 100%);
max-height: 90vh;
}
.kv-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 6px 20px;
}
.kv-title {
font-size: 11px;
text-transform: uppercase;
color: var(--muted);
margin: 4px 0 2px;
}
.kv {
display: flex;
justify-content: space-between;
gap: 10px;
font-size: 13px;
padding: 2px 0;
border-bottom: 1px dashed var(--bg2);
}
.kv span {
color: var(--fg3);
}
.kv b {
font-weight: 500;
color: var(--fg0);
text-align: right;
font-variant-numeric: tabular-nums;
overflow: hidden;
text-overflow: ellipsis;
}
/* --- file previews ------------------------------------------------------------- */
.pdf-preview {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
.pdf-nav {
padding: 6px 10px;
border-bottom: 1px solid var(--bg2);
font-size: 13px;
}
.pdf-preview .image-preview img {
background: #fff;
box-shadow: var(--shadow);
}
.doc-text {
margin: 0;
padding: 16px;
white-space: pre-wrap;
font-size: 13px;
}
.sheet-tabs {
margin: 6px 10px;
flex-wrap: wrap;
align-self: flex-start;
}
table.grid.sheet td,
table.grid.sheet th {
white-space: nowrap;
border-right: 1px solid var(--bg2);
}
.audio-preview {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
padding: 24px;
}
.audio-preview audio {
width: min(520px, 100%);
}
.model-viewer {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
.model-canvas {
flex: 1;
min-height: 300px;
touch-action: none;
}
.model-info {
font-size: 12px;
color: var(--muted);
padding: 4px 10px;
border-top: 1px solid var(--bg2);
}
.star {
color: var(--accent2);
font-size: 15px;
width: 1em;
display: inline-block;
text-align: center;
}
.activity-text {
color: var(--accent2);
}
.activity-meta {
color: var(--muted);
font-variant-numeric: tabular-nums;
}
tr.audit-warn td {
color: var(--accent2);
}
a.button.primary {
background: var(--accent);
border-color: var(--accent);
color: var(--on-accent);
font-weight: 600;
}
.mode-tabs button.active.deep {
background: var(--accent2);
}
.rewind-files {
max-height: 200px;
overflow-y: auto;
font-size: 12.5px;
padding-left: 18px;
}
/* --- in-app dialogs and toasts --------------------------------------------------- */
.modal.dialog {
width: min(420px, 100%);
z-index: 40;
}
.dialog-message {
white-space: pre-wrap;
font-size: 14px;
color: var(--fg1);
margin: 0 0 12px;
}
.dialog-actions {
justify-content: flex-end;
margin-top: 14px;
}
button.danger-solid {
background: var(--red);
border-color: var(--red);
color: var(--bg0);
font-weight: 600;
}
.toasts {
position: fixed;
right: 16px;
bottom: 16px;
display: grid;
gap: 8px;
z-index: 50;
max-width: min(420px, calc(100vw - 32px));
padding-bottom: env(safe-area-inset-bottom);
}
.toast {
background: var(--bg1);
border: 1px solid var(--bg3);
border-left: 4px solid var(--blue);
border-radius: var(--radius);
padding: 10px 14px;
box-shadow: var(--shadow);
font-size: 13px;
cursor: pointer;
animation: toast-in 0.18s ease-out;
word-break: break-word;
}
.toast.error {
border-left-color: var(--red);
}
.toast.success {
border-left-color: var(--green);
}
@keyframes toast-in {
from {
transform: translateY(8px);
opacity: 0;
}
}
.shell-output {
background: var(--bg0);
border: 1px solid var(--bg2);
border-radius: 6px;
padding: 8px 10px;
max-height: 55vh;
overflow: auto;
white-space: pre-wrap;
font-size: 12px;
margin: 0;
}
.segmented {
display: inline-flex;
gap: 2px;
background: var(--bg1);
border-radius: 8px;
padding: 2px;
width: fit-content;
}
.segmented button.active {
background: var(--accent);
color: var(--on-accent);
}
.sidebar-user .theme-toggle {
margin-left: auto;
font-size: 15px;
min-width: 32px;
}
.form .stack {
display: flex;
flex-direction: column;
gap: 4px;
min-width: 0;
}