Migrate memory cloud to Appwrite-backed live service

This commit is contained in:
OpenClaw
2026-04-24 21:48:23 +02:00
parent 71d122bdce
commit 1edca71327
6 changed files with 2216 additions and 150 deletions
+577 -69
View File
@@ -1,96 +1,604 @@
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
color-scheme: dark;
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background:
radial-gradient(circle at top, rgba(112, 89, 255, 0.18), transparent 35%),
linear-gradient(180deg, #071019 0%, #090d16 45%, #05070d 100%);
color: #edf2ff;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: #0f0f14;
color: #e0e0e8;
min-height: 100vh;
background: transparent;
color: #edf2ff;
}
button,
input {
font: inherit;
}
button {
border: 0;
}
#root {
min-height: 100vh;
}
.app-shell {
position: relative;
min-height: 100vh;
overflow: hidden;
}
.nebula {
position: fixed;
inset: auto;
border-radius: 999px;
filter: blur(80px);
opacity: 0.5;
pointer-events: none;
}
.nebula-a {
top: -6rem;
left: -3rem;
width: 24rem;
height: 24rem;
background: rgba(78, 168, 255, 0.2);
}
.nebula-b {
right: -5rem;
top: 10rem;
width: 28rem;
height: 28rem;
background: rgba(172, 98, 255, 0.18);
}
.app {
max-width: 860px;
position: relative;
max-width: 1180px;
margin: 0 auto;
padding: 2rem 1.5rem;
padding: 2.5rem 1.25rem 4rem;
}
.app-header { text-align: center; margin-bottom: 2rem; }
.app-header h1 { font-size: 2rem; font-weight: 700; color: #fff; }
.subtitle { color: #6b7280; font-size: 0.9rem; margin-top: 0.4rem; }
.summary-bar {
.hero {
display: flex;
gap: 1rem;
justify-content: center;
margin-bottom: 2rem;
flex-wrap: wrap;
justify-content: space-between;
gap: 1.5rem;
align-items: flex-end;
margin-bottom: 1.5rem;
}
.eyebrow,
.card-kicker,
.results-header,
.section-label,
.viewer-kicker {
text-transform: uppercase;
letter-spacing: 0.18em;
font-size: 0.7rem;
color: #8ca3c7;
}
.hero h1 {
font-size: clamp(2.2rem, 4vw, 4rem);
line-height: 0.95;
max-width: 10ch;
margin-top: 0.45rem;
}
.subtitle {
max-width: 40rem;
margin-top: 0.85rem;
color: #aeb9d7;
line-height: 1.6;
}
.hero-actions {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 0.75rem;
}
.ghost-btn,
.primary-btn,
.back-btn,
.file-card,
.result-item {
cursor: pointer;
}
.ghost-btn,
.primary-btn,
.back-btn {
border-radius: 999px;
padding: 0.8rem 1.1rem;
transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.ghost-btn,
.back-btn {
background: rgba(15, 22, 37, 0.7);
color: #edf2ff;
border: 1px solid rgba(156, 179, 221, 0.2);
box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.primary-btn {
background: linear-gradient(135deg, #62b0ff, #8b6dff);
color: #09101d;
font-weight: 700;
min-width: 7rem;
}
.ghost-btn:hover,
.primary-btn:hover,
.back-btn:hover,
.file-card:hover,
.result-item:hover {
transform: translateY(-2px);
}
.primary-btn:disabled {
opacity: 0.6;
cursor: default;
transform: none;
}
.slash-hint {
color: #8ca3c7;
font-size: 0.82rem;
}
kbd {
background: rgba(255,255,255,0.08);
border: 1px solid rgba(255,255,255,0.12);
border-bottom-width: 2px;
border-radius: 0.5rem;
padding: 0.15rem 0.42rem;
font-size: 0.8rem;
}
.dashboard-grid {
display: grid;
grid-template-columns: 1.35fr 0.9fr 1fr;
gap: 1rem;
margin-bottom: 1rem;
}
.feature-card,
.composer-card,
.file-card,
.result-item,
.memory-content,
.viewer-header {
background: rgba(12, 19, 33, 0.72);
border: 1px solid rgba(146, 166, 206, 0.14);
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.25),
inset 0 1px 0 rgba(255,255,255,0.04);
backdrop-filter: blur(18px);
}
.feature-card,
.composer-card {
border-radius: 24px;
padding: 1.2rem 1.25rem;
}
.spark-text {
margin-top: 0.85rem;
font-size: 1.1rem;
line-height: 1.6;
color: #f3f6ff;
}
.spark-source {
margin-top: 0.75rem;
color: #8ca3c7;
font-size: 0.82rem;
}
.stat-card {
display: grid;
gap: 0.75rem;
}
.mini-stat {
color: #c9d6f0;
font-size: 0.92rem;
}
.mini-stat span {
display: inline-block;
min-width: 3.8rem;
font-size: 1.35rem;
font-weight: 800;
color: #78c1ff;
}
.recap-card {
display: grid;
gap: 0.8rem;
}
.recap-line {
color: #d8e1f6;
line-height: 1.5;
}
.composer-card {
margin-bottom: 1rem;
}
.composer-title {
margin-top: 0.35rem;
color: #d8e1f6;
}
.composer-form {
margin-top: 1rem;
display: flex;
gap: 0.8rem;
}
.search-section {
position: relative;
margin-bottom: 1.25rem;
}
.summary-stat {
background: #1a1a24;
border: 1px solid #2a2a3a;
border-radius: 12px;
padding: 0.75rem 1.25rem;
text-align: center;
min-width: 100px;
}
.stat-num { display: block; font-size: 1.5rem; font-weight: 700; color: #60a5fa; }
.stat-label { display: block; font-size: 0.7rem; color: #6b7280; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.05em; }
.search-section { position: relative; margin-bottom: 1.5rem; }
.search-input {
width: 100%;
background: #1a1a24;
border: 1px solid #2a2a3a;
border-radius: 12px;
padding: 0.75rem 1rem;
color: #e0e0e8;
font-size: 1rem;
background: rgba(13, 20, 34, 0.78);
border: 1px solid rgba(141, 164, 207, 0.18);
border-radius: 18px;
padding: 0.9rem 1rem;
color: #edf2ff;
outline: none;
transition: border-color 0.2s;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-input:focus { border-color: #60a5fa; }
.search-input::placeholder { color: #4b5563; }
.search-spinner { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); }
.section-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #6b7280; margin-bottom: 0.75rem; }
.search-input:focus {
border-color: rgba(113, 190, 255, 0.9);
box-shadow: 0 0 0 4px rgba(98, 176, 255, 0.12);
}
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.search-input::placeholder {
color: #7282a4;
}
.search-spinner {
position: absolute;
right: 1rem;
top: 50%;
transform: translateY(-50%);
}
.files-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 0.9rem;
}
.file-card {
background: #1a1a24;
border: 1px solid #2a2a3a;
border-radius: 12px;
text-align: left;
border-radius: 20px;
padding: 1rem;
cursor: pointer;
transition: border-color 0.2s, transform 0.15s;
border: 1px solid rgba(146, 166, 206, 0.14);
transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.file-card.light:hover,
.result-item:hover {
border-color: rgba(116, 191, 255, 0.42);
}
.file-card.active:hover {
border-color: rgba(169, 132, 255, 0.52);
}
.file-card.intense:hover {
border-color: rgba(255, 122, 191, 0.52);
}
.file-card-top {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 0.75rem;
}
.file-date {
color: #7ec8ff;
font-size: 0.82rem;
font-weight: 700;
}
.file-label {
margin-top: 0.2rem;
color: #dbe5fb;
font-weight: 600;
}
.file-orb {
width: 0.9rem;
height: 0.9rem;
border-radius: 999px;
background: radial-gradient(circle at 35% 35%, #fff, rgba(126,200,255,0.92) 30%, rgba(126,200,255,0.08) 70%);
box-shadow: 0 0 20px rgba(126, 200, 255, 0.55);
flex: 0 0 auto;
}
.file-card.active .file-orb {
background: radial-gradient(circle at 35% 35%, #fff, rgba(172,128,255,0.92) 30%, rgba(172,128,255,0.08) 70%);
box-shadow: 0 0 22px rgba(172, 128, 255, 0.48);
}
.file-card.intense .file-orb {
background: radial-gradient(circle at 35% 35%, #fff, rgba(255,124,190,0.92) 30%, rgba(255,124,190,0.08) 70%);
box-shadow: 0 0 22px rgba(255, 124, 190, 0.48);
}
.file-stats {
display: flex;
gap: 0.45rem;
flex-wrap: wrap;
margin-top: 0.75rem;
color: #8ca3c7;
font-size: 0.8rem;
}
.entry-tag {
border-radius: 999px;
padding: 0.18rem 0.55rem;
background: rgba(113, 190, 255, 0.12);
color: #7ec8ff;
}
.file-age {
margin-top: 0.6rem;
color: #7282a4;
font-size: 0.76rem;
}
.search-results {
display: grid;
gap: 0.65rem;
}
.results-header,
.section-label {
margin-bottom: 0.65rem;
}
.file-card:hover { border-color: #60a5fa; transform: translateY(-2px); }
.file-date { font-size: 0.8rem; color: #60a5fa; font-weight: 600; }
.file-label { font-size: 0.85rem; color: #9ca3af; margin-top: 2px; }
.file-stats { display: flex; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.7rem; color: #6b7280; }
.entry-tag { background: #1e3a5f; color: #60a5fa; border-radius: 4px; padding: 0 4px; }
.file-age { font-size: 0.7rem; color: #4b5563; margin-top: 0.4rem; }
.search-results { margin-top: 1rem; }
.results-header { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #6b7280; margin-bottom: 0.75rem; }
.result-item {
background: #1a1a24;
border: 1px solid #2a2a3a;
border-radius: 10px;
padding: 0.875rem 1rem;
margin-bottom: 0.5rem;
cursor: pointer;
transition: border-color 0.2s;
text-align: left;
border-radius: 18px;
padding: 1rem 1.05rem;
border: 1px solid rgba(146, 166, 206, 0.14);
}
.result-item:hover { border-color: #60a5fa; }
.result-name { font-size: 0.85rem; font-weight: 600; color: #60a5fa; margin-bottom: 0.3rem; }
.result-snippet { font-size: 0.8rem; color: #9ca3af; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-meta { font-size: 0.7rem; color: #4b5563; margin-top: 0.4rem; }
.viewer { max-width: 800px; margin: 0 auto; }
.viewer-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.back-btn { background: #1a1a24; border: 1px solid #2a2a3a; color: #e0e0e8; border-radius: 8px; padding: 0.4rem 0.875rem; cursor: pointer; font-size: 0.85rem; }
.back-btn:hover { border-color: #60a5fa; }
.viewer-title { font-size: 0.85rem; color: #6b7280; }
.loading { color: #6b7280; font-size: 0.9rem; text-align: center; padding: 2rem; }
.memory-content { white-space: pre-wrap; font-size: 0.875rem; line-height: 1.7; color: #d1d5db; background: #1a1a24; border: 1px solid #2a2a3a; border-radius: 12px; padding: 1.5rem; }
.no-results { text-align: center; color: #6b7280; padding: 2rem; }
.result-name {
color: #7ec8ff;
font-weight: 700;
}
.result-snippet,
.result-lines {
margin-top: 0.45rem;
color: #d6e0f6;
line-height: 1.55;
}
.result-lines {
color: #97abd3;
font-size: 0.88rem;
}
.result-meta {
margin-top: 0.55rem;
color: #7282a4;
font-size: 0.76rem;
}
.viewer-shell {
max-width: 1000px;
margin: 0 auto;
padding: 2rem 1.25rem 3rem;
}
.viewer-header {
display: flex;
align-items: center;
gap: 1rem;
border-radius: 20px;
padding: 1rem;
margin-bottom: 1rem;
}
.viewer-save {
margin-left: auto;
}
.viewer-title {
margin-top: 0.2rem;
color: #edf2ff;
font-size: 1.05rem;
font-weight: 700;
}
.loading,
.no-results {
padding: 2rem;
text-align: center;
color: #8ca3c7;
}
.memory-content {
white-space: pre-wrap;
border-radius: 24px;
padding: 1.35rem;
line-height: 1.7;
color: #ecf2ff;
overflow-x: auto;
}
.memory-editor {
width: 100%;
min-height: 70vh;
resize: vertical;
border-radius: 24px;
padding: 1.35rem;
line-height: 1.7;
color: #ecf2ff;
background: rgba(12, 19, 33, 0.72);
border: 1px solid rgba(146, 166, 206, 0.14);
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.25),
inset 0 1px 0 rgba(255,255,255,0.04);
backdrop-filter: blur(18px);
outline: none;
}
.memory-editor:focus {
border-color: rgba(113, 190, 255, 0.9);
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.25),
inset 0 1px 0 rgba(255,255,255,0.04),
0 0 0 4px rgba(98, 176, 255, 0.12);
}
.skyline-card {
margin-bottom: 1rem;
}
.skyline-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.skyline-title {
margin-top: 0.35rem;
color: #d8e1f6;
}
.skyline-plot {
position: relative;
height: 170px;
margin-top: 1.2rem;
margin-bottom: 1rem;
}
.skyline-line {
position: absolute;
left: 0;
right: 0;
top: 50%;
border-top: 1px dashed rgba(140, 163, 199, 0.25);
}
.star-node {
position: absolute;
transform: translate(-50%, -50%);
border-radius: 999px;
border: 1px solid rgba(255,255,255,0.18);
background: radial-gradient(circle at 35% 35%, #ffffff, rgba(126,200,255,0.95) 35%, rgba(126,200,255,0.08) 75%);
box-shadow: 0 0 18px rgba(126, 200, 255, 0.35);
transition: transform 140ms ease, box-shadow 140ms ease;
}
.star-node:hover {
transform: translate(-50%, -50%) scale(1.08);
box-shadow: 0 0 26px rgba(172, 128, 255, 0.48);
}
.star-tooltip {
position: absolute;
left: 50%;
bottom: calc(100% + 0.75rem);
transform: translateX(-50%);
white-space: nowrap;
font-size: 0.72rem;
color: #edf2ff;
background: rgba(7, 12, 22, 0.88);
border: 1px solid rgba(146, 166, 206, 0.18);
border-radius: 999px;
padding: 0.3rem 0.55rem;
opacity: 0;
pointer-events: none;
}
.star-node:hover .star-tooltip {
opacity: 1;
}
.skyline-labels {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
gap: 0.55rem;
}
.skyline-label {
text-align: left;
background: rgba(255,255,255,0.03);
border: 1px solid rgba(146, 166, 206, 0.12);
color: #aeb9d7;
border-radius: 14px;
padding: 0.65rem 0.75rem;
}
.skyline-label span,
.skyline-label strong {
display: block;
}
.skyline-label span {
font-size: 0.76rem;
}
.skyline-label strong {
margin-top: 0.18rem;
color: #edf2ff;
}
@media (max-width: 900px) {
.dashboard-grid {
grid-template-columns: 1fr;
}
.hero {
flex-direction: column;
align-items: flex-start;
}
.hero-actions {
align-items: flex-start;
}
.composer-form {
flex-direction: column;
}
}
@media (max-width: 640px) {
.app,
.viewer-shell {
padding-inline: 1rem;
}
.hero h1 {
max-width: none;
}
.files-grid {
grid-template-columns: 1fr;
}
}