ltcai 2.2.7 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -34
- package/docs/CHANGELOG.md +119 -0
- package/docs/V3_BACKEND_ARCHITECTURE.md +138 -0
- package/docs/V3_FRONTEND.md +139 -0
- package/knowledge_graph.py +649 -21
- package/latticeai/__init__.py +1 -1
- package/latticeai/api/admin.py +47 -0
- package/latticeai/api/agents.py +54 -31
- package/latticeai/api/auth.py +5 -2
- package/latticeai/api/chat.py +10 -2
- package/latticeai/api/search.py +240 -0
- package/latticeai/api/static_routes.py +11 -2
- package/latticeai/core/config.py +18 -0
- package/latticeai/core/embedding_providers.py +625 -0
- package/latticeai/core/local_embeddings.py +86 -0
- package/latticeai/core/workspace_os.py +1 -1
- package/latticeai/server_app.py +65 -1
- package/latticeai/services/agent_runtime.py +245 -0
- package/latticeai/services/search_service.py +346 -0
- package/package.json +13 -6
- package/scripts/build_v3_assets.mjs +164 -0
- package/scripts/capture/README.md +28 -0
- package/scripts/capture/capture_enterprise.js +8 -0
- package/scripts/capture/capture_graph.js +8 -0
- package/scripts/capture/capture_onboarding.js +8 -0
- package/scripts/capture/capture_page.js +43 -0
- package/scripts/capture/capture_release_media.js +125 -0
- package/scripts/capture/capture_skills.js +8 -0
- package/scripts/capture/capture_workspace.js +8 -0
- package/scripts/generate_diagrams.py +513 -0
- package/scripts/lint_v3.mjs +33 -0
- package/scripts/release-0.3.1.sh +105 -0
- package/scripts/take_screenshots.js +69 -0
- package/scripts/validate_release_artifacts.py +167 -0
- package/static/account.html +9 -9
- package/static/activity.html +4 -4
- package/static/admin.html +8 -8
- package/static/agents.html +4 -4
- package/static/chat.html +10 -10
- package/static/css/reference/account.css +137 -1
- package/static/css/reference/chat.css +31 -37
- package/static/css/responsive.css +42 -0
- package/static/css/tokens.5a595671.css +260 -0
- package/static/css/tokens.css +125 -130
- package/static/graph.html +9 -9
- package/static/manifest.json +3 -3
- package/static/plugins.html +4 -4
- package/static/scripts/account.js +4 -4
- package/static/scripts/chat.js +40 -8
- package/static/scripts/workspace.js +78 -0
- package/static/sw.js +3 -1
- package/static/v3/asset-manifest.json +47 -0
- package/static/v3/css/lattice.base.css +128 -0
- package/static/v3/css/lattice.base.e4cdd05d.css +128 -0
- package/static/v3/css/lattice.components.011e988b.css +447 -0
- package/static/v3/css/lattice.components.css +447 -0
- package/static/v3/css/lattice.shell.4920f42d.css +407 -0
- package/static/v3/css/lattice.shell.css +407 -0
- package/static/v3/css/lattice.tokens.c597ff81.css +132 -0
- package/static/v3/css/lattice.tokens.css +132 -0
- package/static/v3/css/lattice.views.3ee19d4e.css +277 -0
- package/static/v3/css/lattice.views.css +277 -0
- package/static/v3/index.html +69 -0
- package/static/v3/js/app.46fb61d9.js +26 -0
- package/static/v3/js/app.js +26 -0
- package/static/v3/js/core/api.22a41d42.js +344 -0
- package/static/v3/js/core/api.js +344 -0
- package/static/v3/js/core/components.4c83e0a9.js +222 -0
- package/static/v3/js/core/components.js +222 -0
- package/static/v3/js/core/dom.a2773eb0.js +148 -0
- package/static/v3/js/core/dom.js +148 -0
- package/static/v3/js/core/router.584570f2.js +37 -0
- package/static/v3/js/core/router.js +37 -0
- package/static/v3/js/core/routes.f935dd50.js +78 -0
- package/static/v3/js/core/routes.js +78 -0
- package/static/v3/js/core/shell.1b6199d6.js +363 -0
- package/static/v3/js/core/shell.js +363 -0
- package/static/v3/js/core/store.34ebd5e6.js +113 -0
- package/static/v3/js/core/store.js +113 -0
- package/static/v3/js/views/admin-audit.660a1fb1.js +185 -0
- package/static/v3/js/views/admin-audit.js +185 -0
- package/static/v3/js/views/admin-permissions.a7ae5f09.js +177 -0
- package/static/v3/js/views/admin-permissions.js +177 -0
- package/static/v3/js/views/admin-policies.3658fd86.js +102 -0
- package/static/v3/js/views/admin-policies.js +102 -0
- package/static/v3/js/views/admin-private-vpc.7d342d36.js +135 -0
- package/static/v3/js/views/admin-private-vpc.js +135 -0
- package/static/v3/js/views/admin-security.07c66b72.js +180 -0
- package/static/v3/js/views/admin-security.js +180 -0
- package/static/v3/js/views/admin-users.03bac88c.js +168 -0
- package/static/v3/js/views/admin-users.js +168 -0
- package/static/v3/js/views/agents.14e48bdd.js +193 -0
- package/static/v3/js/views/agents.js +193 -0
- package/static/v3/js/views/chat.718144ce.js +449 -0
- package/static/v3/js/views/chat.js +449 -0
- package/static/v3/js/views/files.4935197e.js +186 -0
- package/static/v3/js/views/files.js +186 -0
- package/static/v3/js/views/home.cdde3b32.js +119 -0
- package/static/v3/js/views/home.js +119 -0
- package/static/v3/js/views/hybrid-search.b22b97e0.js +195 -0
- package/static/v3/js/views/hybrid-search.js +195 -0
- package/static/v3/js/views/knowledge-graph.a14ea7e7.js +237 -0
- package/static/v3/js/views/knowledge-graph.js +237 -0
- package/static/v3/js/views/models.a1ffa147.js +256 -0
- package/static/v3/js/views/models.js +256 -0
- package/static/v3/js/views/my-computer.1b2ff621.js +237 -0
- package/static/v3/js/views/my-computer.js +237 -0
- package/static/v3/js/views/pipeline.c522f1ce.js +157 -0
- package/static/v3/js/views/pipeline.js +157 -0
- package/static/v3/js/views/settings.4f777210.js +250 -0
- package/static/v3/js/views/settings.js +250 -0
- package/static/workflows.html +4 -4
- package/static/workspace.css +340 -2
- package/static/workspace.html +43 -24
- package/docs/images/tmp_frames/frame_00.png +0 -0
- package/docs/images/tmp_frames/frame_01.png +0 -0
- package/docs/images/tmp_frames/frame_02.png +0 -0
- package/docs/images/tmp_frames/frame_03.png +0 -0
- package/docs/images/tmp_frames/hero_00.png +0 -0
- package/docs/images/tmp_frames/hero_01.png +0 -0
- package/docs/images/tmp_frames/hero_02.png +0 -0
- package/docs/images/tmp_frames/hero_03.png +0 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
* Lattice AI v3 — View-specific layouts
|
|
3
|
+
* Bespoke compositions that go beyond the generic primitives. Token-native.
|
|
4
|
+
* ========================================================================== */
|
|
5
|
+
|
|
6
|
+
/* ── Home hero ───────────────────────────────────────────────────────────── */
|
|
7
|
+
.lt3-hero {
|
|
8
|
+
position: relative;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
padding: var(--lt3-space-7);
|
|
11
|
+
border-radius: var(--lt3-radius-xl);
|
|
12
|
+
background:
|
|
13
|
+
radial-gradient(120% 140% at 100% 0%, var(--lt3-pillar-vector-soft) 0%, transparent 50%),
|
|
14
|
+
radial-gradient(120% 140% at 0% 100%, var(--lt3-pillar-graph-soft) 0%, transparent 50%),
|
|
15
|
+
var(--surface);
|
|
16
|
+
border: 1px solid var(--border);
|
|
17
|
+
}
|
|
18
|
+
.lt3-hero__eyebrow { display: inline-flex; align-items: center; gap: var(--lt3-space-2); }
|
|
19
|
+
.lt3-hero__title { font-size: var(--lt3-text-3xl); font-weight: var(--lt3-weight-black); letter-spacing: var(--lt3-tracking-tight); margin-top: var(--lt3-space-3); max-width: 20ch; }
|
|
20
|
+
.lt3-hero__sub { font-size: var(--lt3-text-lg); color: var(--muted); margin-top: var(--lt3-space-3); max-width: 56ch; }
|
|
21
|
+
.lt3-hero__actions { display: flex; flex-wrap: wrap; gap: var(--lt3-space-3); margin-top: var(--lt3-space-5); }
|
|
22
|
+
|
|
23
|
+
.lt3-quickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--lt3-space-4); }
|
|
24
|
+
.lt3-quick {
|
|
25
|
+
display: flex; flex-direction: column; gap: var(--lt3-space-2);
|
|
26
|
+
padding: var(--lt3-space-4);
|
|
27
|
+
border-radius: var(--lt3-radius-md);
|
|
28
|
+
background: var(--surface);
|
|
29
|
+
border: 1px solid var(--border);
|
|
30
|
+
transition: transform var(--lt3-dur-2) var(--lt3-ease), border-color var(--lt3-dur-2) var(--lt3-ease);
|
|
31
|
+
}
|
|
32
|
+
.lt3-quick:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
|
|
33
|
+
.lt3-quick__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--lt3-radius-sm); background: var(--accent-soft); color: var(--accent); }
|
|
34
|
+
.lt3-quick__title { font-size: var(--lt3-text-md); font-weight: var(--lt3-weight-semi); }
|
|
35
|
+
.lt3-quick__desc { font-size: var(--lt3-text-xs); color: var(--muted); }
|
|
36
|
+
|
|
37
|
+
/* ── Split: explorer + inspector (KG, Files) ─────────────────────────────── */
|
|
38
|
+
.lt3-split {
|
|
39
|
+
display: grid;
|
|
40
|
+
grid-template-columns: minmax(0, 1fr) 360px;
|
|
41
|
+
gap: var(--lt3-space-5);
|
|
42
|
+
align-items: start;
|
|
43
|
+
}
|
|
44
|
+
.lt3-split--left { grid-template-columns: 300px minmax(0, 1fr); }
|
|
45
|
+
@media (max-width: 980px) { .lt3-split, .lt3-split--left { grid-template-columns: 1fr; } }
|
|
46
|
+
|
|
47
|
+
/* ── Knowledge Graph canvas ──────────────────────────────────────────────── */
|
|
48
|
+
.lt3-graph-canvas {
|
|
49
|
+
position: relative;
|
|
50
|
+
height: 540px;
|
|
51
|
+
border-radius: var(--lt3-radius-lg);
|
|
52
|
+
border: 1px solid var(--border);
|
|
53
|
+
background:
|
|
54
|
+
radial-gradient(circle at center, var(--graph-grid) 1px, transparent 1.5px),
|
|
55
|
+
var(--graph-bg);
|
|
56
|
+
background-size: 26px 26px, cover;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
}
|
|
59
|
+
.lt3-graph-canvas svg { width: 100%; height: 100%; display: block; }
|
|
60
|
+
.lt3-graph-legend { display: flex; flex-wrap: wrap; gap: var(--lt3-space-3); }
|
|
61
|
+
.lt3-graph-legend span { display: inline-flex; align-items: center; gap: var(--lt3-space-2); font-size: var(--lt3-text-xs); color: var(--muted); }
|
|
62
|
+
.lt3-graph-legend i { width: 10px; height: 10px; border-radius: 99px; display: inline-block; }
|
|
63
|
+
|
|
64
|
+
.lt3-gnode { cursor: pointer; transition: opacity var(--lt3-dur-2) var(--lt3-ease); }
|
|
65
|
+
.lt3-gnode circle { stroke: var(--surface); stroke-width: 2; transition: r var(--lt3-dur-2) var(--lt3-ease); }
|
|
66
|
+
.lt3-gnode text { font-size: 11px; fill: var(--text); font-family: var(--lt3-font-sans); pointer-events: none; }
|
|
67
|
+
.lt3-gedge { stroke: var(--border-strong); stroke-width: 1.4; opacity: 0.7; }
|
|
68
|
+
|
|
69
|
+
.lt3-entity {
|
|
70
|
+
display: flex; align-items: center; gap: var(--lt3-space-3);
|
|
71
|
+
padding: var(--lt3-space-3);
|
|
72
|
+
border-radius: var(--lt3-radius-sm);
|
|
73
|
+
border: 1px solid var(--border);
|
|
74
|
+
background: var(--surface);
|
|
75
|
+
transition: border-color var(--lt3-dur-2) var(--lt3-ease), background var(--lt3-dur-2) var(--lt3-ease);
|
|
76
|
+
text-align: left; width: 100%;
|
|
77
|
+
}
|
|
78
|
+
.lt3-entity:hover { border-color: var(--border-strong); background: var(--surface-2); }
|
|
79
|
+
.lt3-entity[data-active="true"] { border-color: var(--accent); background: var(--accent-soft); }
|
|
80
|
+
.lt3-entity__type { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: var(--lt3-radius-xs); font-size: 0.95rem; }
|
|
81
|
+
.lt3-entity__body { flex: 1; min-width: 0; }
|
|
82
|
+
.lt3-entity__name { font-size: var(--lt3-text-sm); font-weight: var(--lt3-weight-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
83
|
+
.lt3-entity__meta { font-size: var(--lt3-text-2xs); color: var(--faint); }
|
|
84
|
+
|
|
85
|
+
/* ── Hybrid Search ───────────────────────────────────────────────────────── */
|
|
86
|
+
.lt3-search-hero { display: flex; flex-direction: column; gap: var(--lt3-space-4); }
|
|
87
|
+
.lt3-fusion {
|
|
88
|
+
display: inline-flex; align-items: center; gap: 0;
|
|
89
|
+
border-radius: var(--lt3-radius-sm);
|
|
90
|
+
border: 1px solid var(--border);
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
}
|
|
93
|
+
.lt3-fusion button {
|
|
94
|
+
padding: var(--lt3-space-2) var(--lt3-space-4);
|
|
95
|
+
font-size: var(--lt3-text-xs); font-weight: var(--lt3-weight-semi);
|
|
96
|
+
color: var(--muted); background: var(--surface);
|
|
97
|
+
border-right: 1px solid var(--border);
|
|
98
|
+
}
|
|
99
|
+
.lt3-fusion button:last-child { border-right: none; }
|
|
100
|
+
.lt3-fusion button[data-active="true"] { background: var(--accent-soft); color: var(--accent); }
|
|
101
|
+
|
|
102
|
+
.lt3-result {
|
|
103
|
+
display: flex; flex-direction: column; gap: var(--lt3-space-2);
|
|
104
|
+
padding: var(--lt3-space-4);
|
|
105
|
+
border-radius: var(--lt3-radius-md);
|
|
106
|
+
border: 1px solid var(--border);
|
|
107
|
+
background: var(--surface);
|
|
108
|
+
transition: border-color var(--lt3-dur-2) var(--lt3-ease);
|
|
109
|
+
}
|
|
110
|
+
.lt3-result:hover { border-color: var(--border-strong); }
|
|
111
|
+
.lt3-result__top { display: flex; align-items: center; gap: var(--lt3-space-3); }
|
|
112
|
+
.lt3-result__title { font-size: var(--lt3-text-md); font-weight: var(--lt3-weight-semi); }
|
|
113
|
+
.lt3-result__snippet { font-size: var(--lt3-text-sm); color: var(--muted); }
|
|
114
|
+
.lt3-result__scores { display: flex; gap: var(--lt3-space-4); flex-wrap: wrap; }
|
|
115
|
+
.lt3-score { display: flex; flex-direction: column; gap: 3px; min-width: 120px; }
|
|
116
|
+
.lt3-score__row { display: flex; align-items: center; justify-content: space-between; font-size: var(--lt3-text-2xs); color: var(--faint); }
|
|
117
|
+
.lt3-score__row b { color: var(--text); font-family: var(--lt3-font-mono); }
|
|
118
|
+
|
|
119
|
+
/* ── Chat (3-pane: conversations · thread · retrieval context) ───────────── */
|
|
120
|
+
.lt3-chat {
|
|
121
|
+
position: relative;
|
|
122
|
+
display: grid;
|
|
123
|
+
grid-template-columns: 264px minmax(0, 1fr) 340px;
|
|
124
|
+
height: 100%;
|
|
125
|
+
overflow: hidden;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* Conversation list rail */
|
|
129
|
+
.lt3-chatlist { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 55%, transparent); }
|
|
130
|
+
.lt3-chatlist__head { flex: none; padding: var(--lt3-space-4); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--lt3-space-3); }
|
|
131
|
+
.lt3-chatlist__items { flex: 1; min-height: 0; overflow-y: auto; padding: var(--lt3-space-2); display: flex; flex-direction: column; gap: 2px; }
|
|
132
|
+
.lt3-convo {
|
|
133
|
+
display: flex; align-items: center; gap: var(--lt3-space-2);
|
|
134
|
+
width: 100%; text-align: left;
|
|
135
|
+
padding: var(--lt3-space-3);
|
|
136
|
+
border-radius: var(--lt3-radius-sm);
|
|
137
|
+
color: var(--muted);
|
|
138
|
+
transition: background var(--lt3-dur-1) var(--lt3-ease), color var(--lt3-dur-1) var(--lt3-ease);
|
|
139
|
+
}
|
|
140
|
+
.lt3-convo:hover { background: var(--surface-2); color: var(--text); }
|
|
141
|
+
.lt3-convo[data-active="true"] { background: var(--accent-soft); color: var(--accent); }
|
|
142
|
+
.lt3-convo__body { flex: 1; min-width: 0; }
|
|
143
|
+
.lt3-convo__title { font-size: var(--lt3-text-sm); font-weight: var(--lt3-weight-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
144
|
+
.lt3-convo__meta { font-size: var(--lt3-text-2xs); color: var(--faint); }
|
|
145
|
+
.lt3-convo__del { opacity: 0; flex: none; }
|
|
146
|
+
.lt3-convo:hover .lt3-convo__del, .lt3-convo[data-active="true"] .lt3-convo__del { opacity: 1; }
|
|
147
|
+
|
|
148
|
+
/* Main thread column */
|
|
149
|
+
.lt3-chat__main { display: flex; flex-direction: column; min-width: 0; height: 100%; }
|
|
150
|
+
.lt3-chat__bar {
|
|
151
|
+
flex: none; display: flex; align-items: center; gap: var(--lt3-space-3);
|
|
152
|
+
padding: var(--lt3-space-3) var(--lt3-space-5);
|
|
153
|
+
border-bottom: 1px solid var(--border);
|
|
154
|
+
min-height: 56px;
|
|
155
|
+
}
|
|
156
|
+
.lt3-chat__title { font-size: var(--lt3-text-md); font-weight: var(--lt3-weight-semi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
157
|
+
.lt3-chat__thread { flex: 1; overflow-y: auto; padding: var(--lt3-space-6); display: flex; flex-direction: column; gap: var(--lt3-space-5); }
|
|
158
|
+
.lt3-chat__thread-inner { width: 100%; max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--lt3-space-5); }
|
|
159
|
+
|
|
160
|
+
.lt3-msg { display: flex; gap: var(--lt3-space-3); max-width: 100%; }
|
|
161
|
+
.lt3-msg--user { align-self: flex-end; flex-direction: row-reverse; max-width: 90%; }
|
|
162
|
+
.lt3-msg--ai { align-self: flex-start; max-width: 100%; }
|
|
163
|
+
.lt3-msg__avatar { width: 32px; height: 32px; flex: none; border-radius: var(--lt3-radius-sm); display: grid; place-items: center; }
|
|
164
|
+
.lt3-msg--ai .lt3-msg__avatar { background: linear-gradient(135deg, var(--lt3-pillar-graph), var(--lt3-pillar-vector)); color: #fff; }
|
|
165
|
+
.lt3-msg--user .lt3-msg__avatar { background: var(--surface-3); color: var(--muted); }
|
|
166
|
+
.lt3-msg__body { min-width: 0; display: flex; flex-direction: column; gap: var(--lt3-space-2); }
|
|
167
|
+
.lt3-msg__bubble { padding: var(--lt3-space-3) var(--lt3-space-4); border-radius: var(--lt3-radius-md); font-size: var(--lt3-text-md); line-height: var(--lt3-leading-normal); white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
168
|
+
.lt3-msg--ai .lt3-msg__bubble { background: var(--surface); border: 1px solid var(--border); }
|
|
169
|
+
.lt3-msg--user .lt3-msg__bubble { background: var(--accent); color: #fff; }
|
|
170
|
+
.lt3-msg__cites { display: flex; flex-wrap: wrap; gap: var(--lt3-space-2); }
|
|
171
|
+
.lt3-typing { display: inline-flex; gap: 4px; align-items: center; padding: var(--lt3-space-1) 0; }
|
|
172
|
+
.lt3-typing i { width: 6px; height: 6px; border-radius: 99px; background: var(--faint); animation: lt3-bounce 1s var(--lt3-ease) infinite; }
|
|
173
|
+
.lt3-typing i:nth-child(2) { animation-delay: 0.15s; }
|
|
174
|
+
.lt3-typing i:nth-child(3) { animation-delay: 0.3s; }
|
|
175
|
+
@keyframes lt3-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
|
|
176
|
+
|
|
177
|
+
/* Composer */
|
|
178
|
+
.lt3-composer { flex: none; padding: var(--lt3-space-3) var(--lt3-space-6) var(--lt3-space-5); }
|
|
179
|
+
.lt3-composer__inner { max-width: 780px; margin: 0 auto; }
|
|
180
|
+
.lt3-composer__box {
|
|
181
|
+
display: flex; align-items: flex-end; gap: var(--lt3-space-3);
|
|
182
|
+
padding: var(--lt3-space-3) var(--lt3-space-3) var(--lt3-space-3) var(--lt3-space-4);
|
|
183
|
+
border-radius: var(--lt3-radius-lg);
|
|
184
|
+
border: 1px solid var(--border);
|
|
185
|
+
background: var(--input);
|
|
186
|
+
transition: border-color var(--lt3-dur-2) var(--lt3-ease), box-shadow var(--lt3-dur-2) var(--lt3-ease);
|
|
187
|
+
}
|
|
188
|
+
.lt3-composer__box:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 0 0 3px var(--accent-soft); }
|
|
189
|
+
.lt3-composer__box textarea { flex: 1; background: none; border: none; outline: none; resize: none; max-height: 200px; min-height: 24px; font-size: var(--lt3-text-md); line-height: var(--lt3-leading-snug); }
|
|
190
|
+
.lt3-composer__tools { display: flex; align-items: center; gap: var(--lt3-space-2); margin-top: var(--lt3-space-3); flex-wrap: wrap; }
|
|
191
|
+
.lt3-composer__hint { margin-top: var(--lt3-space-2); font-size: var(--lt3-text-2xs); color: var(--faint); text-align: center; }
|
|
192
|
+
|
|
193
|
+
/* Retrieval context column */
|
|
194
|
+
.lt3-chat__context { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 55%, transparent); }
|
|
195
|
+
.lt3-chat__context-head { flex: none; padding: var(--lt3-space-4) var(--lt3-space-4) var(--lt3-space-3); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: var(--lt3-space-2); }
|
|
196
|
+
.lt3-chat__context-body { flex: 1; min-height: 0; overflow-y: auto; padding: var(--lt3-space-4); display: flex; flex-direction: column; gap: var(--lt3-space-5); }
|
|
197
|
+
.lt3-ctx-sec__title { display: flex; align-items: center; gap: var(--lt3-space-2); font-size: var(--lt3-text-2xs); font-weight: var(--lt3-weight-semi); letter-spacing: var(--lt3-tracking-caps); text-transform: uppercase; color: var(--faint); margin-bottom: var(--lt3-space-3); }
|
|
198
|
+
.lt3-ctx-sec__title .ti { font-size: 0.95rem; }
|
|
199
|
+
.lt3-ctx-item { display: flex; align-items: center; gap: var(--lt3-space-2); padding: var(--lt3-space-2) 0; font-size: var(--lt3-text-sm); }
|
|
200
|
+
.lt3-ctx-item__dot { width: 8px; height: 8px; border-radius: 99px; flex: none; }
|
|
201
|
+
.lt3-ctx-item__label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
202
|
+
.lt3-ctx-item__score { font-family: var(--lt3-font-mono); font-size: var(--lt3-text-2xs); color: var(--muted); }
|
|
203
|
+
|
|
204
|
+
/* Mobile/tablet pane toggles + off-canvas behaviour */
|
|
205
|
+
.lt3-chat__toggle-list, .lt3-chat__toggle-context { display: none; }
|
|
206
|
+
.lt3-chat__pane-close { display: none; }
|
|
207
|
+
.lt3-chat__scrim { display: none; position: absolute; inset: 0; background: var(--overlay); z-index: 5; }
|
|
208
|
+
.lt3-chat[data-list="open"] .lt3-chat__scrim,
|
|
209
|
+
.lt3-chat[data-context="open"] .lt3-chat__scrim { display: block; }
|
|
210
|
+
|
|
211
|
+
@media (max-width: 1240px) {
|
|
212
|
+
.lt3-chat { grid-template-columns: 264px minmax(0, 1fr); }
|
|
213
|
+
.lt3-chat__context {
|
|
214
|
+
position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
|
|
215
|
+
transform: translateX(102%); transition: transform var(--lt3-dur-3) var(--lt3-ease);
|
|
216
|
+
z-index: 6; box-shadow: var(--lt3-elev-3);
|
|
217
|
+
}
|
|
218
|
+
.lt3-chat[data-context="open"] .lt3-chat__context { transform: none; }
|
|
219
|
+
.lt3-chat__toggle-context { display: inline-flex; }
|
|
220
|
+
.lt3-chat__context .lt3-chat__pane-close { display: inline-flex; }
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@media (max-width: 900px) {
|
|
224
|
+
.lt3-chat { grid-template-columns: minmax(0, 1fr); }
|
|
225
|
+
.lt3-chatlist {
|
|
226
|
+
position: absolute; top: 0; left: 0; bottom: 0; width: min(280px, 86vw);
|
|
227
|
+
transform: translateX(-104%); transition: transform var(--lt3-dur-3) var(--lt3-ease);
|
|
228
|
+
z-index: 6; box-shadow: var(--lt3-elev-3);
|
|
229
|
+
}
|
|
230
|
+
.lt3-chat[data-list="open"] .lt3-chatlist { transform: none; }
|
|
231
|
+
.lt3-chat__toggle-list { display: inline-flex; }
|
|
232
|
+
.lt3-chatlist .lt3-chat__pane-close { display: inline-flex; }
|
|
233
|
+
.lt3-chat__thread { padding: var(--lt3-space-4); }
|
|
234
|
+
.lt3-composer { padding: var(--lt3-space-3) var(--lt3-space-4) var(--lt3-space-4); }
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/* ── Files ───────────────────────────────────────────────────────────────── */
|
|
238
|
+
.lt3-filerow { display: flex; align-items: center; gap: var(--lt3-space-3); padding: var(--lt3-space-3); border-radius: var(--lt3-radius-sm); }
|
|
239
|
+
.lt3-filerow:hover { background: var(--surface-2); }
|
|
240
|
+
.lt3-filerow__icon { width: 30px; text-align: center; color: var(--muted); }
|
|
241
|
+
.lt3-drop {
|
|
242
|
+
display: flex; flex-direction: column; align-items: center; gap: var(--lt3-space-3);
|
|
243
|
+
padding: var(--lt3-space-7);
|
|
244
|
+
border: 1.5px dashed var(--border-strong);
|
|
245
|
+
border-radius: var(--lt3-radius-lg);
|
|
246
|
+
background: var(--surface-2);
|
|
247
|
+
text-align: center;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/* ── Pipeline ────────────────────────────────────────────────────────────── */
|
|
251
|
+
.lt3-flow { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding-bottom: var(--lt3-space-3); }
|
|
252
|
+
.lt3-stage {
|
|
253
|
+
flex: none; width: 220px;
|
|
254
|
+
padding: var(--lt3-space-4);
|
|
255
|
+
border-radius: var(--lt3-radius-md);
|
|
256
|
+
border: 1px solid var(--border);
|
|
257
|
+
background: var(--surface);
|
|
258
|
+
}
|
|
259
|
+
.lt3-stage__num { font-family: var(--lt3-font-mono); font-size: var(--lt3-text-2xs); color: var(--faint); }
|
|
260
|
+
.lt3-stage__name { font-weight: var(--lt3-weight-semi); margin-top: 2px; }
|
|
261
|
+
.lt3-flow__arrow { flex: none; display: grid; place-items: center; width: 44px; color: var(--faint); }
|
|
262
|
+
.lt3-flow__arrow .ti { font-size: 1.3rem; }
|
|
263
|
+
|
|
264
|
+
/* ── Generic 2-up metric rows used widely ────────────────────────────────── */
|
|
265
|
+
.lt3-statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--lt3-space-3); }
|
|
266
|
+
|
|
267
|
+
/* ── Admin shared ────────────────────────────────────────────────────────── */
|
|
268
|
+
.lt3-keyval { display: grid; grid-template-columns: max-content 1fr; gap: var(--lt3-space-2) var(--lt3-space-5); font-size: var(--lt3-text-sm); }
|
|
269
|
+
.lt3-keyval dt { color: var(--muted); }
|
|
270
|
+
.lt3-keyval dd { margin: 0; font-weight: var(--lt3-weight-medium); }
|
|
271
|
+
|
|
272
|
+
.lt3-timeline { position: relative; padding-left: var(--lt3-space-5); }
|
|
273
|
+
.lt3-timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
|
|
274
|
+
.lt3-timeline__item { position: relative; padding: 0 0 var(--lt3-space-4); }
|
|
275
|
+
.lt3-timeline__item::before { content: ""; position: absolute; left: calc(-1 * var(--lt3-space-5) + 1px); top: 5px; width: 10px; height: 10px; border-radius: 99px; background: var(--accent); border: 2px solid var(--surface); }
|
|
276
|
+
.lt3-timeline__time { font-size: var(--lt3-text-2xs); color: var(--faint); font-family: var(--lt3-font-mono); }
|
|
277
|
+
.lt3-timeline__body { font-size: var(--lt3-text-sm); }
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
* Lattice AI v3 — View-specific layouts
|
|
3
|
+
* Bespoke compositions that go beyond the generic primitives. Token-native.
|
|
4
|
+
* ========================================================================== */
|
|
5
|
+
|
|
6
|
+
/* ── Home hero ───────────────────────────────────────────────────────────── */
|
|
7
|
+
.lt3-hero {
|
|
8
|
+
position: relative;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
padding: var(--lt3-space-7);
|
|
11
|
+
border-radius: var(--lt3-radius-xl);
|
|
12
|
+
background:
|
|
13
|
+
radial-gradient(120% 140% at 100% 0%, var(--lt3-pillar-vector-soft) 0%, transparent 50%),
|
|
14
|
+
radial-gradient(120% 140% at 0% 100%, var(--lt3-pillar-graph-soft) 0%, transparent 50%),
|
|
15
|
+
var(--surface);
|
|
16
|
+
border: 1px solid var(--border);
|
|
17
|
+
}
|
|
18
|
+
.lt3-hero__eyebrow { display: inline-flex; align-items: center; gap: var(--lt3-space-2); }
|
|
19
|
+
.lt3-hero__title { font-size: var(--lt3-text-3xl); font-weight: var(--lt3-weight-black); letter-spacing: var(--lt3-tracking-tight); margin-top: var(--lt3-space-3); max-width: 20ch; }
|
|
20
|
+
.lt3-hero__sub { font-size: var(--lt3-text-lg); color: var(--muted); margin-top: var(--lt3-space-3); max-width: 56ch; }
|
|
21
|
+
.lt3-hero__actions { display: flex; flex-wrap: wrap; gap: var(--lt3-space-3); margin-top: var(--lt3-space-5); }
|
|
22
|
+
|
|
23
|
+
.lt3-quickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--lt3-space-4); }
|
|
24
|
+
.lt3-quick {
|
|
25
|
+
display: flex; flex-direction: column; gap: var(--lt3-space-2);
|
|
26
|
+
padding: var(--lt3-space-4);
|
|
27
|
+
border-radius: var(--lt3-radius-md);
|
|
28
|
+
background: var(--surface);
|
|
29
|
+
border: 1px solid var(--border);
|
|
30
|
+
transition: transform var(--lt3-dur-2) var(--lt3-ease), border-color var(--lt3-dur-2) var(--lt3-ease);
|
|
31
|
+
}
|
|
32
|
+
.lt3-quick:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
|
|
33
|
+
.lt3-quick__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--lt3-radius-sm); background: var(--accent-soft); color: var(--accent); }
|
|
34
|
+
.lt3-quick__title { font-size: var(--lt3-text-md); font-weight: var(--lt3-weight-semi); }
|
|
35
|
+
.lt3-quick__desc { font-size: var(--lt3-text-xs); color: var(--muted); }
|
|
36
|
+
|
|
37
|
+
/* ── Split: explorer + inspector (KG, Files) ─────────────────────────────── */
|
|
38
|
+
.lt3-split {
|
|
39
|
+
display: grid;
|
|
40
|
+
grid-template-columns: minmax(0, 1fr) 360px;
|
|
41
|
+
gap: var(--lt3-space-5);
|
|
42
|
+
align-items: start;
|
|
43
|
+
}
|
|
44
|
+
.lt3-split--left { grid-template-columns: 300px minmax(0, 1fr); }
|
|
45
|
+
@media (max-width: 980px) { .lt3-split, .lt3-split--left { grid-template-columns: 1fr; } }
|
|
46
|
+
|
|
47
|
+
/* ── Knowledge Graph canvas ──────────────────────────────────────────────── */
|
|
48
|
+
.lt3-graph-canvas {
|
|
49
|
+
position: relative;
|
|
50
|
+
height: 540px;
|
|
51
|
+
border-radius: var(--lt3-radius-lg);
|
|
52
|
+
border: 1px solid var(--border);
|
|
53
|
+
background:
|
|
54
|
+
radial-gradient(circle at center, var(--graph-grid) 1px, transparent 1.5px),
|
|
55
|
+
var(--graph-bg);
|
|
56
|
+
background-size: 26px 26px, cover;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
}
|
|
59
|
+
.lt3-graph-canvas svg { width: 100%; height: 100%; display: block; }
|
|
60
|
+
.lt3-graph-legend { display: flex; flex-wrap: wrap; gap: var(--lt3-space-3); }
|
|
61
|
+
.lt3-graph-legend span { display: inline-flex; align-items: center; gap: var(--lt3-space-2); font-size: var(--lt3-text-xs); color: var(--muted); }
|
|
62
|
+
.lt3-graph-legend i { width: 10px; height: 10px; border-radius: 99px; display: inline-block; }
|
|
63
|
+
|
|
64
|
+
.lt3-gnode { cursor: pointer; transition: opacity var(--lt3-dur-2) var(--lt3-ease); }
|
|
65
|
+
.lt3-gnode circle { stroke: var(--surface); stroke-width: 2; transition: r var(--lt3-dur-2) var(--lt3-ease); }
|
|
66
|
+
.lt3-gnode text { font-size: 11px; fill: var(--text); font-family: var(--lt3-font-sans); pointer-events: none; }
|
|
67
|
+
.lt3-gedge { stroke: var(--border-strong); stroke-width: 1.4; opacity: 0.7; }
|
|
68
|
+
|
|
69
|
+
.lt3-entity {
|
|
70
|
+
display: flex; align-items: center; gap: var(--lt3-space-3);
|
|
71
|
+
padding: var(--lt3-space-3);
|
|
72
|
+
border-radius: var(--lt3-radius-sm);
|
|
73
|
+
border: 1px solid var(--border);
|
|
74
|
+
background: var(--surface);
|
|
75
|
+
transition: border-color var(--lt3-dur-2) var(--lt3-ease), background var(--lt3-dur-2) var(--lt3-ease);
|
|
76
|
+
text-align: left; width: 100%;
|
|
77
|
+
}
|
|
78
|
+
.lt3-entity:hover { border-color: var(--border-strong); background: var(--surface-2); }
|
|
79
|
+
.lt3-entity[data-active="true"] { border-color: var(--accent); background: var(--accent-soft); }
|
|
80
|
+
.lt3-entity__type { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: var(--lt3-radius-xs); font-size: 0.95rem; }
|
|
81
|
+
.lt3-entity__body { flex: 1; min-width: 0; }
|
|
82
|
+
.lt3-entity__name { font-size: var(--lt3-text-sm); font-weight: var(--lt3-weight-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
83
|
+
.lt3-entity__meta { font-size: var(--lt3-text-2xs); color: var(--faint); }
|
|
84
|
+
|
|
85
|
+
/* ── Hybrid Search ───────────────────────────────────────────────────────── */
|
|
86
|
+
.lt3-search-hero { display: flex; flex-direction: column; gap: var(--lt3-space-4); }
|
|
87
|
+
.lt3-fusion {
|
|
88
|
+
display: inline-flex; align-items: center; gap: 0;
|
|
89
|
+
border-radius: var(--lt3-radius-sm);
|
|
90
|
+
border: 1px solid var(--border);
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
}
|
|
93
|
+
.lt3-fusion button {
|
|
94
|
+
padding: var(--lt3-space-2) var(--lt3-space-4);
|
|
95
|
+
font-size: var(--lt3-text-xs); font-weight: var(--lt3-weight-semi);
|
|
96
|
+
color: var(--muted); background: var(--surface);
|
|
97
|
+
border-right: 1px solid var(--border);
|
|
98
|
+
}
|
|
99
|
+
.lt3-fusion button:last-child { border-right: none; }
|
|
100
|
+
.lt3-fusion button[data-active="true"] { background: var(--accent-soft); color: var(--accent); }
|
|
101
|
+
|
|
102
|
+
.lt3-result {
|
|
103
|
+
display: flex; flex-direction: column; gap: var(--lt3-space-2);
|
|
104
|
+
padding: var(--lt3-space-4);
|
|
105
|
+
border-radius: var(--lt3-radius-md);
|
|
106
|
+
border: 1px solid var(--border);
|
|
107
|
+
background: var(--surface);
|
|
108
|
+
transition: border-color var(--lt3-dur-2) var(--lt3-ease);
|
|
109
|
+
}
|
|
110
|
+
.lt3-result:hover { border-color: var(--border-strong); }
|
|
111
|
+
.lt3-result__top { display: flex; align-items: center; gap: var(--lt3-space-3); }
|
|
112
|
+
.lt3-result__title { font-size: var(--lt3-text-md); font-weight: var(--lt3-weight-semi); }
|
|
113
|
+
.lt3-result__snippet { font-size: var(--lt3-text-sm); color: var(--muted); }
|
|
114
|
+
.lt3-result__scores { display: flex; gap: var(--lt3-space-4); flex-wrap: wrap; }
|
|
115
|
+
.lt3-score { display: flex; flex-direction: column; gap: 3px; min-width: 120px; }
|
|
116
|
+
.lt3-score__row { display: flex; align-items: center; justify-content: space-between; font-size: var(--lt3-text-2xs); color: var(--faint); }
|
|
117
|
+
.lt3-score__row b { color: var(--text); font-family: var(--lt3-font-mono); }
|
|
118
|
+
|
|
119
|
+
/* ── Chat (3-pane: conversations · thread · retrieval context) ───────────── */
|
|
120
|
+
.lt3-chat {
|
|
121
|
+
position: relative;
|
|
122
|
+
display: grid;
|
|
123
|
+
grid-template-columns: 264px minmax(0, 1fr) 340px;
|
|
124
|
+
height: 100%;
|
|
125
|
+
overflow: hidden;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* Conversation list rail */
|
|
129
|
+
.lt3-chatlist { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 55%, transparent); }
|
|
130
|
+
.lt3-chatlist__head { flex: none; padding: var(--lt3-space-4); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--lt3-space-3); }
|
|
131
|
+
.lt3-chatlist__items { flex: 1; min-height: 0; overflow-y: auto; padding: var(--lt3-space-2); display: flex; flex-direction: column; gap: 2px; }
|
|
132
|
+
.lt3-convo {
|
|
133
|
+
display: flex; align-items: center; gap: var(--lt3-space-2);
|
|
134
|
+
width: 100%; text-align: left;
|
|
135
|
+
padding: var(--lt3-space-3);
|
|
136
|
+
border-radius: var(--lt3-radius-sm);
|
|
137
|
+
color: var(--muted);
|
|
138
|
+
transition: background var(--lt3-dur-1) var(--lt3-ease), color var(--lt3-dur-1) var(--lt3-ease);
|
|
139
|
+
}
|
|
140
|
+
.lt3-convo:hover { background: var(--surface-2); color: var(--text); }
|
|
141
|
+
.lt3-convo[data-active="true"] { background: var(--accent-soft); color: var(--accent); }
|
|
142
|
+
.lt3-convo__body { flex: 1; min-width: 0; }
|
|
143
|
+
.lt3-convo__title { font-size: var(--lt3-text-sm); font-weight: var(--lt3-weight-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
144
|
+
.lt3-convo__meta { font-size: var(--lt3-text-2xs); color: var(--faint); }
|
|
145
|
+
.lt3-convo__del { opacity: 0; flex: none; }
|
|
146
|
+
.lt3-convo:hover .lt3-convo__del, .lt3-convo[data-active="true"] .lt3-convo__del { opacity: 1; }
|
|
147
|
+
|
|
148
|
+
/* Main thread column */
|
|
149
|
+
.lt3-chat__main { display: flex; flex-direction: column; min-width: 0; height: 100%; }
|
|
150
|
+
.lt3-chat__bar {
|
|
151
|
+
flex: none; display: flex; align-items: center; gap: var(--lt3-space-3);
|
|
152
|
+
padding: var(--lt3-space-3) var(--lt3-space-5);
|
|
153
|
+
border-bottom: 1px solid var(--border);
|
|
154
|
+
min-height: 56px;
|
|
155
|
+
}
|
|
156
|
+
.lt3-chat__title { font-size: var(--lt3-text-md); font-weight: var(--lt3-weight-semi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
157
|
+
.lt3-chat__thread { flex: 1; overflow-y: auto; padding: var(--lt3-space-6); display: flex; flex-direction: column; gap: var(--lt3-space-5); }
|
|
158
|
+
.lt3-chat__thread-inner { width: 100%; max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--lt3-space-5); }
|
|
159
|
+
|
|
160
|
+
.lt3-msg { display: flex; gap: var(--lt3-space-3); max-width: 100%; }
|
|
161
|
+
.lt3-msg--user { align-self: flex-end; flex-direction: row-reverse; max-width: 90%; }
|
|
162
|
+
.lt3-msg--ai { align-self: flex-start; max-width: 100%; }
|
|
163
|
+
.lt3-msg__avatar { width: 32px; height: 32px; flex: none; border-radius: var(--lt3-radius-sm); display: grid; place-items: center; }
|
|
164
|
+
.lt3-msg--ai .lt3-msg__avatar { background: linear-gradient(135deg, var(--lt3-pillar-graph), var(--lt3-pillar-vector)); color: #fff; }
|
|
165
|
+
.lt3-msg--user .lt3-msg__avatar { background: var(--surface-3); color: var(--muted); }
|
|
166
|
+
.lt3-msg__body { min-width: 0; display: flex; flex-direction: column; gap: var(--lt3-space-2); }
|
|
167
|
+
.lt3-msg__bubble { padding: var(--lt3-space-3) var(--lt3-space-4); border-radius: var(--lt3-radius-md); font-size: var(--lt3-text-md); line-height: var(--lt3-leading-normal); white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
168
|
+
.lt3-msg--ai .lt3-msg__bubble { background: var(--surface); border: 1px solid var(--border); }
|
|
169
|
+
.lt3-msg--user .lt3-msg__bubble { background: var(--accent); color: #fff; }
|
|
170
|
+
.lt3-msg__cites { display: flex; flex-wrap: wrap; gap: var(--lt3-space-2); }
|
|
171
|
+
.lt3-typing { display: inline-flex; gap: 4px; align-items: center; padding: var(--lt3-space-1) 0; }
|
|
172
|
+
.lt3-typing i { width: 6px; height: 6px; border-radius: 99px; background: var(--faint); animation: lt3-bounce 1s var(--lt3-ease) infinite; }
|
|
173
|
+
.lt3-typing i:nth-child(2) { animation-delay: 0.15s; }
|
|
174
|
+
.lt3-typing i:nth-child(3) { animation-delay: 0.3s; }
|
|
175
|
+
@keyframes lt3-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
|
|
176
|
+
|
|
177
|
+
/* Composer */
|
|
178
|
+
.lt3-composer { flex: none; padding: var(--lt3-space-3) var(--lt3-space-6) var(--lt3-space-5); }
|
|
179
|
+
.lt3-composer__inner { max-width: 780px; margin: 0 auto; }
|
|
180
|
+
.lt3-composer__box {
|
|
181
|
+
display: flex; align-items: flex-end; gap: var(--lt3-space-3);
|
|
182
|
+
padding: var(--lt3-space-3) var(--lt3-space-3) var(--lt3-space-3) var(--lt3-space-4);
|
|
183
|
+
border-radius: var(--lt3-radius-lg);
|
|
184
|
+
border: 1px solid var(--border);
|
|
185
|
+
background: var(--input);
|
|
186
|
+
transition: border-color var(--lt3-dur-2) var(--lt3-ease), box-shadow var(--lt3-dur-2) var(--lt3-ease);
|
|
187
|
+
}
|
|
188
|
+
.lt3-composer__box:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 0 0 3px var(--accent-soft); }
|
|
189
|
+
.lt3-composer__box textarea { flex: 1; background: none; border: none; outline: none; resize: none; max-height: 200px; min-height: 24px; font-size: var(--lt3-text-md); line-height: var(--lt3-leading-snug); }
|
|
190
|
+
.lt3-composer__tools { display: flex; align-items: center; gap: var(--lt3-space-2); margin-top: var(--lt3-space-3); flex-wrap: wrap; }
|
|
191
|
+
.lt3-composer__hint { margin-top: var(--lt3-space-2); font-size: var(--lt3-text-2xs); color: var(--faint); text-align: center; }
|
|
192
|
+
|
|
193
|
+
/* Retrieval context column */
|
|
194
|
+
.lt3-chat__context { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 55%, transparent); }
|
|
195
|
+
.lt3-chat__context-head { flex: none; padding: var(--lt3-space-4) var(--lt3-space-4) var(--lt3-space-3); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: var(--lt3-space-2); }
|
|
196
|
+
.lt3-chat__context-body { flex: 1; min-height: 0; overflow-y: auto; padding: var(--lt3-space-4); display: flex; flex-direction: column; gap: var(--lt3-space-5); }
|
|
197
|
+
.lt3-ctx-sec__title { display: flex; align-items: center; gap: var(--lt3-space-2); font-size: var(--lt3-text-2xs); font-weight: var(--lt3-weight-semi); letter-spacing: var(--lt3-tracking-caps); text-transform: uppercase; color: var(--faint); margin-bottom: var(--lt3-space-3); }
|
|
198
|
+
.lt3-ctx-sec__title .ti { font-size: 0.95rem; }
|
|
199
|
+
.lt3-ctx-item { display: flex; align-items: center; gap: var(--lt3-space-2); padding: var(--lt3-space-2) 0; font-size: var(--lt3-text-sm); }
|
|
200
|
+
.lt3-ctx-item__dot { width: 8px; height: 8px; border-radius: 99px; flex: none; }
|
|
201
|
+
.lt3-ctx-item__label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
202
|
+
.lt3-ctx-item__score { font-family: var(--lt3-font-mono); font-size: var(--lt3-text-2xs); color: var(--muted); }
|
|
203
|
+
|
|
204
|
+
/* Mobile/tablet pane toggles + off-canvas behaviour */
|
|
205
|
+
.lt3-chat__toggle-list, .lt3-chat__toggle-context { display: none; }
|
|
206
|
+
.lt3-chat__pane-close { display: none; }
|
|
207
|
+
.lt3-chat__scrim { display: none; position: absolute; inset: 0; background: var(--overlay); z-index: 5; }
|
|
208
|
+
.lt3-chat[data-list="open"] .lt3-chat__scrim,
|
|
209
|
+
.lt3-chat[data-context="open"] .lt3-chat__scrim { display: block; }
|
|
210
|
+
|
|
211
|
+
@media (max-width: 1240px) {
|
|
212
|
+
.lt3-chat { grid-template-columns: 264px minmax(0, 1fr); }
|
|
213
|
+
.lt3-chat__context {
|
|
214
|
+
position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
|
|
215
|
+
transform: translateX(102%); transition: transform var(--lt3-dur-3) var(--lt3-ease);
|
|
216
|
+
z-index: 6; box-shadow: var(--lt3-elev-3);
|
|
217
|
+
}
|
|
218
|
+
.lt3-chat[data-context="open"] .lt3-chat__context { transform: none; }
|
|
219
|
+
.lt3-chat__toggle-context { display: inline-flex; }
|
|
220
|
+
.lt3-chat__context .lt3-chat__pane-close { display: inline-flex; }
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@media (max-width: 900px) {
|
|
224
|
+
.lt3-chat { grid-template-columns: minmax(0, 1fr); }
|
|
225
|
+
.lt3-chatlist {
|
|
226
|
+
position: absolute; top: 0; left: 0; bottom: 0; width: min(280px, 86vw);
|
|
227
|
+
transform: translateX(-104%); transition: transform var(--lt3-dur-3) var(--lt3-ease);
|
|
228
|
+
z-index: 6; box-shadow: var(--lt3-elev-3);
|
|
229
|
+
}
|
|
230
|
+
.lt3-chat[data-list="open"] .lt3-chatlist { transform: none; }
|
|
231
|
+
.lt3-chat__toggle-list { display: inline-flex; }
|
|
232
|
+
.lt3-chatlist .lt3-chat__pane-close { display: inline-flex; }
|
|
233
|
+
.lt3-chat__thread { padding: var(--lt3-space-4); }
|
|
234
|
+
.lt3-composer { padding: var(--lt3-space-3) var(--lt3-space-4) var(--lt3-space-4); }
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/* ── Files ───────────────────────────────────────────────────────────────── */
|
|
238
|
+
.lt3-filerow { display: flex; align-items: center; gap: var(--lt3-space-3); padding: var(--lt3-space-3); border-radius: var(--lt3-radius-sm); }
|
|
239
|
+
.lt3-filerow:hover { background: var(--surface-2); }
|
|
240
|
+
.lt3-filerow__icon { width: 30px; text-align: center; color: var(--muted); }
|
|
241
|
+
.lt3-drop {
|
|
242
|
+
display: flex; flex-direction: column; align-items: center; gap: var(--lt3-space-3);
|
|
243
|
+
padding: var(--lt3-space-7);
|
|
244
|
+
border: 1.5px dashed var(--border-strong);
|
|
245
|
+
border-radius: var(--lt3-radius-lg);
|
|
246
|
+
background: var(--surface-2);
|
|
247
|
+
text-align: center;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/* ── Pipeline ────────────────────────────────────────────────────────────── */
|
|
251
|
+
.lt3-flow { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding-bottom: var(--lt3-space-3); }
|
|
252
|
+
.lt3-stage {
|
|
253
|
+
flex: none; width: 220px;
|
|
254
|
+
padding: var(--lt3-space-4);
|
|
255
|
+
border-radius: var(--lt3-radius-md);
|
|
256
|
+
border: 1px solid var(--border);
|
|
257
|
+
background: var(--surface);
|
|
258
|
+
}
|
|
259
|
+
.lt3-stage__num { font-family: var(--lt3-font-mono); font-size: var(--lt3-text-2xs); color: var(--faint); }
|
|
260
|
+
.lt3-stage__name { font-weight: var(--lt3-weight-semi); margin-top: 2px; }
|
|
261
|
+
.lt3-flow__arrow { flex: none; display: grid; place-items: center; width: 44px; color: var(--faint); }
|
|
262
|
+
.lt3-flow__arrow .ti { font-size: 1.3rem; }
|
|
263
|
+
|
|
264
|
+
/* ── Generic 2-up metric rows used widely ────────────────────────────────── */
|
|
265
|
+
.lt3-statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--lt3-space-3); }
|
|
266
|
+
|
|
267
|
+
/* ── Admin shared ────────────────────────────────────────────────────────── */
|
|
268
|
+
.lt3-keyval { display: grid; grid-template-columns: max-content 1fr; gap: var(--lt3-space-2) var(--lt3-space-5); font-size: var(--lt3-text-sm); }
|
|
269
|
+
.lt3-keyval dt { color: var(--muted); }
|
|
270
|
+
.lt3-keyval dd { margin: 0; font-weight: var(--lt3-weight-medium); }
|
|
271
|
+
|
|
272
|
+
.lt3-timeline { position: relative; padding-left: var(--lt3-space-5); }
|
|
273
|
+
.lt3-timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
|
|
274
|
+
.lt3-timeline__item { position: relative; padding: 0 0 var(--lt3-space-4); }
|
|
275
|
+
.lt3-timeline__item::before { content: ""; position: absolute; left: calc(-1 * var(--lt3-space-5) + 1px); top: 5px; width: 10px; height: 10px; border-radius: 99px; background: var(--accent); border: 2px solid var(--surface); }
|
|
276
|
+
.lt3-timeline__time { font-size: var(--lt3-text-2xs); color: var(--faint); font-family: var(--lt3-font-mono); }
|
|
277
|
+
.lt3-timeline__body { font-size: var(--lt3-text-sm); }
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
6
|
+
<meta name="color-scheme" content="light dark">
|
|
7
|
+
<title>Lattice AI · Local-First Workspace</title>
|
|
8
|
+
|
|
9
|
+
<!-- Pre-paint theme to avoid a flash (mirrors data-lt-theme from storage). -->
|
|
10
|
+
<script>
|
|
11
|
+
(function () {
|
|
12
|
+
try {
|
|
13
|
+
var t = localStorage.getItem("lt-theme");
|
|
14
|
+
if (t === "dark" || t === "light") document.documentElement.setAttribute("data-lt-theme", t);
|
|
15
|
+
} catch (e) {}
|
|
16
|
+
})();
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<link rel="manifest" href="/manifest.json">
|
|
20
|
+
<link rel="icon" type="image/png" sizes="32x32" href="/icons/favicon-32.png">
|
|
21
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
22
|
+
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
|
23
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap">
|
|
24
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css">
|
|
25
|
+
|
|
26
|
+
<script>
|
|
27
|
+
window.__LT_ASSET_SOURCES__ = {
|
|
28
|
+
styles: [
|
|
29
|
+
"static/css/tokens.css",
|
|
30
|
+
"static/v3/css/lattice.tokens.css",
|
|
31
|
+
"static/v3/css/lattice.base.css",
|
|
32
|
+
"static/v3/css/lattice.components.css",
|
|
33
|
+
"static/v3/css/lattice.shell.css",
|
|
34
|
+
"static/v3/css/lattice.views.css"
|
|
35
|
+
],
|
|
36
|
+
entry: "static/v3/js/app.js"
|
|
37
|
+
};
|
|
38
|
+
</script>
|
|
39
|
+
</head>
|
|
40
|
+
<body>
|
|
41
|
+
<div id="app"></div>
|
|
42
|
+
<noscript style="display:block;padding:2rem;font-family:system-ui">Lattice AI requires JavaScript to run the workspace shell.</noscript>
|
|
43
|
+
<script>
|
|
44
|
+
(async function () {
|
|
45
|
+
var sources = window.__LT_ASSET_SOURCES__;
|
|
46
|
+
var manifest = { assets: {} };
|
|
47
|
+
function fallback(key) { return "/" + key; }
|
|
48
|
+
function asset(key) {
|
|
49
|
+
return (manifest.assets && manifest.assets[key]) || fallback(key);
|
|
50
|
+
}
|
|
51
|
+
try {
|
|
52
|
+
var res = await fetch("/static/v3/asset-manifest.json", { cache: "no-store" });
|
|
53
|
+
if (res.ok) manifest = await res.json();
|
|
54
|
+
} catch (e) {}
|
|
55
|
+
window.__LT_ASSET_MANIFEST__ = manifest;
|
|
56
|
+
sources.styles.forEach(function (key) {
|
|
57
|
+
var link = document.createElement("link");
|
|
58
|
+
link.rel = "stylesheet";
|
|
59
|
+
link.href = asset(key);
|
|
60
|
+
document.head.appendChild(link);
|
|
61
|
+
});
|
|
62
|
+
var script = document.createElement("script");
|
|
63
|
+
script.type = "module";
|
|
64
|
+
script.src = asset(sources.entry);
|
|
65
|
+
document.body.appendChild(script);
|
|
66
|
+
})();
|
|
67
|
+
</script>
|
|
68
|
+
</body>
|
|
69
|
+
</html>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
* Lattice AI v3 — Entry point
|
|
3
|
+
* Boots the shell. Views are lazy-loaded by the router (see core/routes.js).
|
|
4
|
+
* ========================================================================== */
|
|
5
|
+
|
|
6
|
+
import { boot } from "./core/shell.1b6199d6.js";
|
|
7
|
+
|
|
8
|
+
const root = document.getElementById("app");
|
|
9
|
+
if (root) boot(root);
|
|
10
|
+
|
|
11
|
+
// CDN fonts/icons are progressive enhancement. If Tabler's webfont is blocked
|
|
12
|
+
// or offline, compact text fallbacks keep icon-only controls identifiable.
|
|
13
|
+
if (document.fonts && document.fonts.ready) {
|
|
14
|
+
document.fonts.ready.then(() => {
|
|
15
|
+
if (!document.fonts.check('16px "tabler-icons"')) {
|
|
16
|
+
document.documentElement.dataset.ltIcons = "fallback";
|
|
17
|
+
}
|
|
18
|
+
}).catch(() => { document.documentElement.dataset.ltIcons = "fallback"; });
|
|
19
|
+
} else {
|
|
20
|
+
document.documentElement.dataset.ltIcons = "fallback";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Best-effort PWA hook (silent if unsupported / not served).
|
|
24
|
+
if ("serviceWorker" in navigator) {
|
|
25
|
+
navigator.serviceWorker.register("/sw.js").catch(() => {});
|
|
26
|
+
}
|