codehaven 0.14.0__py3-none-any.whl
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.
- codehaven-0.14.0.dist-info/METADATA +686 -0
- codehaven-0.14.0.dist-info/RECORD +57 -0
- codehaven-0.14.0.dist-info/WHEEL +5 -0
- codehaven-0.14.0.dist-info/entry_points.txt +3 -0
- codehaven-0.14.0.dist-info/licenses/LICENSE +21 -0
- codehaven-0.14.0.dist-info/top_level.txt +1 -0
- offline_agent/__init__.py +2 -0
- offline_agent/__main__.py +4 -0
- offline_agent/agent.py +815 -0
- offline_agent/answers.py +438 -0
- offline_agent/arabic.py +106 -0
- offline_agent/changes.py +228 -0
- offline_agent/chats.py +121 -0
- offline_agent/cli.py +379 -0
- offline_agent/coder.py +199 -0
- offline_agent/dependencies.py +132 -0
- offline_agent/doctor.py +190 -0
- offline_agent/documents.py +189 -0
- offline_agent/edits.py +204 -0
- offline_agent/errors.py +41 -0
- offline_agent/evaluation.py +284 -0
- offline_agent/evidence.py +187 -0
- offline_agent/exclusions.py +95 -0
- offline_agent/export.py +27 -0
- offline_agent/gui.css +237 -0
- offline_agent/gui.html +177 -0
- offline_agent/gui.js +1213 -0
- offline_agent/gui.py +967 -0
- offline_agent/gui_arabic.js +226 -0
- offline_agent/guides.py +203 -0
- offline_agent/history.py +126 -0
- offline_agent/index_cache.py +78 -0
- offline_agent/insights.py +333 -0
- offline_agent/javascript.py +200 -0
- offline_agent/knowledge.py +569 -0
- offline_agent/languages.py +396 -0
- offline_agent/memory.py +192 -0
- offline_agent/messages.py +51 -0
- offline_agent/model.py +498 -0
- offline_agent/more_languages.py +253 -0
- offline_agent/ocr.py +204 -0
- offline_agent/prompts.py +130 -0
- offline_agent/references/langgraph-approvals.md +38 -0
- offline_agent/references/langgraph-checkpoints.md +37 -0
- offline_agent/references/langgraph-graphs.md +42 -0
- offline_agent/references/langgraph.md +49 -0
- offline_agent/review.py +205 -0
- offline_agent/scans.py +325 -0
- offline_agent/semantic.py +264 -0
- offline_agent/slash.py +53 -0
- offline_agent/study.py +210 -0
- offline_agent/symbols.py +201 -0
- offline_agent/tasks.py +164 -0
- offline_agent/test_runner.py +264 -0
- offline_agent/trace.py +239 -0
- offline_agent/tracebacks.py +98 -0
- offline_agent/workspace.py +419 -0
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
"""Bounded source evidence and conservative, deterministic answer checks."""
|
|
2
|
+
import json
|
|
3
|
+
import re
|
|
4
|
+
from collections import Counter
|
|
5
|
+
from pathlib import PurePosixPath
|
|
6
|
+
|
|
7
|
+
# The most bytes of retained evidence, as JSON, carried from step to step.
|
|
8
|
+
LIMIT = 4000
|
|
9
|
+
# Start at a token boundary and require an alphabetic extension, so URLs and host:port pairs are not citations.
|
|
10
|
+
CITATION = re.compile(r"(?<![\w./:-])(?:repo/)?([\w./-]+\.[A-Za-z]\w*):(\d+)(?:-(\d+))?(?![\d/])")
|
|
11
|
+
# Phrases such as "do not edit or change" are removed before looking for edit verbs, so a request that
|
|
12
|
+
# rules out editing is not mistaken for an edit request.
|
|
13
|
+
EDIT_VERB = r"(?:edit|modif|chang|creat|fix|implement|add|writ|delet)\w*"
|
|
14
|
+
NEGATED_EDIT = re.compile(rf"\b(?:do\s+not|don['’]?t|never|without)\s+{EDIT_VERB}(?:\s*(?:,|/|or|and)\s*{EDIT_VERB})*")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def classify(path, snippet=""):
|
|
18
|
+
"""Heuristic kind of a file, from its path and one matching line: test, stub, reference, service, or source."""
|
|
19
|
+
parts = PurePosixPath(path).parts
|
|
20
|
+
name = parts[-1].lower() if parts else ""
|
|
21
|
+
if "tests" in parts or "test" in parts or name.startswith("test_") or name.endswith("_test.py"):
|
|
22
|
+
return "test"
|
|
23
|
+
if "stub" in path.lower():
|
|
24
|
+
return "stub"
|
|
25
|
+
if name.endswith((".md", ".rst", ".txt")):
|
|
26
|
+
return "reference"
|
|
27
|
+
if "FastAPI(" in snippet or path.endswith("/app/main.py"):
|
|
28
|
+
return "service"
|
|
29
|
+
return "source"
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# The most rows of retained evidence; past this, rows of one file are merged into line ranges.
|
|
33
|
+
ROWS = 50
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def merged(records):
|
|
37
|
+
"""The same evidence with each file's rows merged into continuous line ranges, oldest file first.
|
|
38
|
+
|
|
39
|
+
Merging keeps every observed line covered, so citations stay checkable, while taking far less space
|
|
40
|
+
than one row per search match or passage. Snippets and enclosing names are dropped from merged rows.
|
|
41
|
+
"""
|
|
42
|
+
by_path = {}
|
|
43
|
+
for row in records:
|
|
44
|
+
by_path.setdefault(row["path"], []).append(row)
|
|
45
|
+
result = []
|
|
46
|
+
for path, rows in by_path.items():
|
|
47
|
+
spans = sorted((row["line"], row.get("end_line", row["line"]), row["kind"]) for row in rows)
|
|
48
|
+
for start, end, kind in spans:
|
|
49
|
+
last = result[-1] if result and result[-1]["path"] == path else None
|
|
50
|
+
if last is not None and start <= last.get("end_line", last["line"]) + 1:
|
|
51
|
+
last["end_line"] = max(last.get("end_line", last["line"]), end)
|
|
52
|
+
else:
|
|
53
|
+
result.append({"path": path, "line": start, "end_line": end, "kind": kind, "snippet": ""})
|
|
54
|
+
for row in result:
|
|
55
|
+
if row["end_line"] == row["line"]:
|
|
56
|
+
del row["end_line"]
|
|
57
|
+
return result
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def retain(previous, matches):
|
|
61
|
+
"""Keep what was observed, within ROWS rows and LIMIT bytes, without losing which lines were seen.
|
|
62
|
+
|
|
63
|
+
Over a limit, snippets are blanked first (oldest first), then each file's rows are merged into line ranges,
|
|
64
|
+
and only if that is still too much are the oldest rows dropped: the newest evidence is what an answer
|
|
65
|
+
usually cites. Returns the rows and whether anything observed was lost.
|
|
66
|
+
"""
|
|
67
|
+
records = [dict(item) for item in previous]
|
|
68
|
+
limited = False
|
|
69
|
+
for match in matches:
|
|
70
|
+
item = {"path": match["path"], "line": match["line"],
|
|
71
|
+
"kind": classify(match["path"], match.get("text", "")),
|
|
72
|
+
"snippet": match.get("text", "")[:64]}
|
|
73
|
+
if "end_line" in match:
|
|
74
|
+
item["end_line"] = match["end_line"]
|
|
75
|
+
if match.get("in"):
|
|
76
|
+
item["in"] = match["in"]
|
|
77
|
+
old = next((old for old in records if (old["path"], old["line"]) == (item["path"], item["line"])), None)
|
|
78
|
+
# Already retained: keep one row per (path, line), taking the wider end line.
|
|
79
|
+
if old is not None:
|
|
80
|
+
if item.get("end_line", item["line"]) > old.get("end_line", old["line"]):
|
|
81
|
+
old["end_line"] = item["end_line"]
|
|
82
|
+
continue
|
|
83
|
+
records.append(item)
|
|
84
|
+
|
|
85
|
+
def size():
|
|
86
|
+
"""Bytes of the rows as JSON, which is how they reach the prompt."""
|
|
87
|
+
return len(json.dumps(records, ensure_ascii=False).encode())
|
|
88
|
+
while size() > LIMIT and any(row.get("snippet") for row in records):
|
|
89
|
+
next(row for row in records if row.get("snippet"))["snippet"] = ""
|
|
90
|
+
if len(records) > ROWS or size() > LIMIT:
|
|
91
|
+
records = merged(records)
|
|
92
|
+
while len(records) > ROWS or size() > LIMIT:
|
|
93
|
+
records.pop(0)
|
|
94
|
+
limited = True
|
|
95
|
+
return records, limited
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def covered(evidence, path, start, end):
|
|
99
|
+
"""True when every line from start to end lies in the observed rows for path, taken together."""
|
|
100
|
+
spans = sorted((row["line"], row.get("end_line", row["line"])) for row in evidence
|
|
101
|
+
if row["path"].removeprefix("repo/") == path)
|
|
102
|
+
reach = start - 1 # The last line covered so far; spans are sorted by their first line.
|
|
103
|
+
for first, last in spans:
|
|
104
|
+
if first > reach + 1:
|
|
105
|
+
break # A gap before the cited range is fully covered.
|
|
106
|
+
reach = max(reach, last)
|
|
107
|
+
if reach >= end:
|
|
108
|
+
return True
|
|
109
|
+
return reach >= end
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
def discovery_task(task):
|
|
113
|
+
"""Only plan explicit FastAPI entry-point discovery, never edits or general explanations."""
|
|
114
|
+
text = task.lower()
|
|
115
|
+
return ("fastapi" in text and bool(re.search(r"entry[ -]?points?", text))
|
|
116
|
+
and bool(re.search(r"\b(find|list|identify|locate|discover)\b", text))
|
|
117
|
+
and not re.search(r"\b(edit|modify|change|create|fix|implement|add|write|delete)\b", NEGATED_EDIT.sub("", text)))
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def mentions(line, path):
|
|
121
|
+
"""Match a whole path token, so app/main.py does not match tests/app/main.py."""
|
|
122
|
+
path = re.escape(path.removeprefix("repo/"))
|
|
123
|
+
return re.search(rf"(?<![\w./-])(?:repo/)?{path}(?![\w/-]|\.\w)", line) is not None
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def check_answer(answer, evidence, *, discovery=False, require_citation=True):
|
|
127
|
+
"""Flag detectable gaps, not a semantic proof of truth.
|
|
128
|
+
|
|
129
|
+
require_citation is for answers about the code. A report that a change was made needs no line citations,
|
|
130
|
+
and flagging those made every such report look unverified.
|
|
131
|
+
"""
|
|
132
|
+
issues = []
|
|
133
|
+
# Only lines of 40 or more characters count, so short lines that repeat naturally (braces, list markers) do not.
|
|
134
|
+
repeated = Counter(line.strip() for line in answer.splitlines() if len(line.strip()) >= 40)
|
|
135
|
+
if any(count >= 3 for count in repeated.values()):
|
|
136
|
+
issues.append("The answer repeats the same substantial text three or more times.")
|
|
137
|
+
services = {row["path"].removeprefix("repo/") for row in evidence if row.get("kind") == "service"}
|
|
138
|
+
if len(services) > 1 and re.search(
|
|
139
|
+
r"\b(?:the|only|single|sole)\s+(?:fastapi\s+)?entry[ -]?point\s+(?:is|was|can be|has been)", answer, re.I
|
|
140
|
+
):
|
|
141
|
+
issues.append("The answer implies a single entry point, but multiple service candidates were found.")
|
|
142
|
+
citations = CITATION.findall(answer)
|
|
143
|
+
valid = set()
|
|
144
|
+
for path, start, end in citations:
|
|
145
|
+
path = path.removeprefix("repo/")
|
|
146
|
+
start, end = int(start), int(end or start)
|
|
147
|
+
# A citation is supported when every line of its range was observed, even across two adjacent passages.
|
|
148
|
+
if covered(evidence, path, start, end):
|
|
149
|
+
valid.add(path)
|
|
150
|
+
else:
|
|
151
|
+
issues.append(f"Citation not supported by retained evidence: {path}:{start}-{end}.")
|
|
152
|
+
if require_citation and evidence and not valid:
|
|
153
|
+
issues.append("Repository claims require path:line citations supported by observed evidence.")
|
|
154
|
+
if discovery:
|
|
155
|
+
missing = services - valid
|
|
156
|
+
if missing:
|
|
157
|
+
issues.append(f"Missing supported citations for {len(missing)} discovered service candidate(s).")
|
|
158
|
+
# Follow which heading each bullet sits under; any other line that is not a bullet ends the section.
|
|
159
|
+
section = None
|
|
160
|
+
for line in answer.splitlines():
|
|
161
|
+
heading = line.strip().strip('#*: ').lower()
|
|
162
|
+
if heading in ('service candidates', 'services', 'service entry points'):
|
|
163
|
+
section = 'service'
|
|
164
|
+
elif heading in ('tests', 'test apps', 'test candidates'):
|
|
165
|
+
section = 'test'
|
|
166
|
+
elif heading in ('stubs', 'stub apps', 'stub candidates'):
|
|
167
|
+
section = 'stub'
|
|
168
|
+
elif line.strip() and not line.lstrip().startswith(('-', '*')):
|
|
169
|
+
section = None
|
|
170
|
+
if section:
|
|
171
|
+
for row in evidence:
|
|
172
|
+
if mentions(line, row['path']) and row['kind'] != section:
|
|
173
|
+
issues.append(f"Classification mismatch: {row['path']} is labeled {row['kind']} in evidence, not {section}.")
|
|
174
|
+
return issues
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
def inventory(evidence, limited=False):
|
|
178
|
+
"""A plain list of the observed candidates by kind, shown instead of a discovery answer that failed its checks."""
|
|
179
|
+
lines = ["Observed source candidates (heuristic classification; not proof of deployment):"]
|
|
180
|
+
for kind in ('service', 'test', 'stub', 'source', 'reference'):
|
|
181
|
+
records = [row for row in evidence if row['kind'] == kind]
|
|
182
|
+
if records:
|
|
183
|
+
lines.append(f"{kind.capitalize()} candidates:")
|
|
184
|
+
lines.extend(f"- [{row['path']}:{row['line']}]" for row in records)
|
|
185
|
+
lines.append("Coverage is limited to the searched literal and eligible files." +
|
|
186
|
+
(" Search/evidence limits were reached." if limited else " No search/evidence limit was reached."))
|
|
187
|
+
return '\n'.join(lines)
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"""Root-scoped Git-style exclusion rules, with no Git subprocess or network."""
|
|
2
|
+
|
|
3
|
+
from pathspec import GitIgnoreSpec
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class IgnoreConfigurationError(ValueError):
|
|
7
|
+
"""An ignore file or --exclude pattern is unusable. Raised, never skipped, so a bad rule cannot silently expose files."""
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Exclusions:
|
|
11
|
+
"""Decides whether a path is ignored by .gitignore files, .agentignore files, or --exclude patterns."""
|
|
12
|
+
|
|
13
|
+
def __init__(self, root, patterns=()):
|
|
14
|
+
"""Validate the --exclude patterns and read the root rule files now, so a bad configuration fails at startup."""
|
|
15
|
+
self.root = root
|
|
16
|
+
self.patterns = tuple(patterns)
|
|
17
|
+
# cache: (directory, filename) -> compiled rules, or None for no file.
|
|
18
|
+
# decisions: (path parts, is a directory) -> whether that path is ignored.
|
|
19
|
+
self.cache = {}
|
|
20
|
+
self.decisions = {}
|
|
21
|
+
for pattern in self.patterns:
|
|
22
|
+
if not isinstance(pattern, str) or not pattern.strip() or '\n' in pattern or '\r' in pattern:
|
|
23
|
+
raise IgnoreConfigurationError("--exclude needs a nonblank single-line Git-style pattern")
|
|
24
|
+
if pattern.startswith('!'):
|
|
25
|
+
raise IgnoreConfigurationError("--exclude is deny-only; use .agentignore for ordered negation rules")
|
|
26
|
+
self.extra = self.compile(self.patterns, '--exclude')
|
|
27
|
+
for filename in ('.gitignore', '.agentignore'):
|
|
28
|
+
self.spec('', filename)
|
|
29
|
+
|
|
30
|
+
@staticmethod
|
|
31
|
+
def compile(lines, source):
|
|
32
|
+
"""Compile Git-style pattern lines; source only says where they came from if they are invalid."""
|
|
33
|
+
try:
|
|
34
|
+
return GitIgnoreSpec.from_lines(lines)
|
|
35
|
+
except Exception as exc:
|
|
36
|
+
raise IgnoreConfigurationError(f"Invalid exclusion rules in {source}: {exc}") from exc
|
|
37
|
+
|
|
38
|
+
def spec(self, directory, filename):
|
|
39
|
+
"""The compiled rules of one rule file in a directory (a root-relative POSIX string, "" for the root), or None
|
|
40
|
+
when there is none. Read once, then cached. Strings, not Paths, because this runs for every directory listed."""
|
|
41
|
+
key = (directory, filename)
|
|
42
|
+
if key not in self.cache:
|
|
43
|
+
path = self.root / directory / filename if directory else self.root / filename
|
|
44
|
+
if path.is_symlink():
|
|
45
|
+
self.cache[key] = None # Git does not follow symlinked .gitignore files.
|
|
46
|
+
else:
|
|
47
|
+
try:
|
|
48
|
+
if path.exists() and not path.is_file():
|
|
49
|
+
raise IgnoreConfigurationError(f"Exclusion configuration must be a regular file: {path}")
|
|
50
|
+
with path.open('rb') as handle:
|
|
51
|
+
# One byte past the 64 KB limit is enough to detect an oversized file.
|
|
52
|
+
data = handle.read(64_001)
|
|
53
|
+
if len(data) > 64_000:
|
|
54
|
+
raise IgnoreConfigurationError(f"Exclusion file exceeds 64 KB: {path}")
|
|
55
|
+
self.cache[key] = self.compile(data.decode('utf-8').splitlines(), path)
|
|
56
|
+
except FileNotFoundError:
|
|
57
|
+
self.cache[key] = None
|
|
58
|
+
except (OSError, UnicodeError) as exc:
|
|
59
|
+
raise IgnoreConfigurationError(f"Cannot read exclusion rules in {path}: {exc}") from exc
|
|
60
|
+
return self.cache[key]
|
|
61
|
+
|
|
62
|
+
def layer(self, parts, directory, filename):
|
|
63
|
+
"""Whether one kind of rule file ignores the path (given as its parts), applying each ancestor directory's file
|
|
64
|
+
from the root down."""
|
|
65
|
+
ignored = False
|
|
66
|
+
for depth in range(len(parts)):
|
|
67
|
+
spec = self.spec('/'.join(parts[:depth]), filename)
|
|
68
|
+
if spec is not None:
|
|
69
|
+
local = '/'.join(parts[depth:]) + ('/' if directory else '')
|
|
70
|
+
# True: a rule ignores the path. False: a ! rule re-includes it. None: this file has no matching rule.
|
|
71
|
+
# A deeper file's verdict replaces a shallower one, as in Git.
|
|
72
|
+
decision = spec.check_file(local).include
|
|
73
|
+
if decision is not None:
|
|
74
|
+
ignored = decision
|
|
75
|
+
return ignored
|
|
76
|
+
|
|
77
|
+
def ignored(self, relative, directory=False):
|
|
78
|
+
"""Whether the path, or any directory above it, is excluded by any of the three rule sources."""
|
|
79
|
+
# Evaluate parents too: a child cannot re-include an excluded directory.
|
|
80
|
+
# Rule files are cached once read, so each prefix decision can be cached as well.
|
|
81
|
+
parts = relative.parts
|
|
82
|
+
for depth in range(1, len(parts) + 1):
|
|
83
|
+
is_dir = depth < len(parts) or directory
|
|
84
|
+
key = (parts[:depth], is_dir)
|
|
85
|
+
decision = self.decisions.get(key)
|
|
86
|
+
if decision is None:
|
|
87
|
+
prefix = parts[:depth]
|
|
88
|
+
# Each source can only add exclusions: a ! rule in .agentignore cannot re-include what .gitignore ignores.
|
|
89
|
+
decision = self.decisions[key] = bool(
|
|
90
|
+
self.layer(prefix, is_dir, '.gitignore')
|
|
91
|
+
or self.layer(prefix, is_dir, '.agentignore')
|
|
92
|
+
or self.extra.match_file('/'.join(prefix) + ('/' if is_dir else '')))
|
|
93
|
+
if decision:
|
|
94
|
+
return True
|
|
95
|
+
return False
|
offline_agent/export.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Answers saved as Markdown, for a pull request, an issue, or the project's docs.
|
|
2
|
+
|
|
3
|
+
The model never writes files: CodeHaven's own code writes the questions and the answers as they were shown, with
|
|
4
|
+
their path:line citations and any failed answer checks, only when the user asks, to the file the user names.
|
|
5
|
+
"""
|
|
6
|
+
import time
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def markdown(turns, about, model=""):
|
|
11
|
+
"""turns: [(question, answer, issues)]. A heading per question, the answer under it, and failed checks as a quote."""
|
|
12
|
+
parts = [f"# CodeHaven: {about}", time.strftime("%Y-%m-%d %H:%M") + (f" · {model}" if model else "")]
|
|
13
|
+
for question, answer, issues in turns:
|
|
14
|
+
parts += [f"## {' '.join(question.split())}", answer or "(no final answer)"]
|
|
15
|
+
if issues:
|
|
16
|
+
parts.append("> **Unverified**\n" + "\n".join(f"> - {issue}" for issue in issues))
|
|
17
|
+
return "\n\n".join(parts) + "\n"
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def write(path, text):
|
|
21
|
+
"""Write text to path, refusing to replace a file that is there, and return the path written."""
|
|
22
|
+
target = Path(path).expanduser()
|
|
23
|
+
if target.is_dir():
|
|
24
|
+
target = target / time.strftime("codehaven-%Y%m%d-%H%M%S.md")
|
|
25
|
+
with open(target, "x", encoding="utf-8") as handle: # "x": an existing file is never overwritten.
|
|
26
|
+
handle.write(text)
|
|
27
|
+
return target
|
offline_agent/gui.css
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
/* ---- Colours and fonts: the light theme, then the dark one ---- */
|
|
2
|
+
:root {
|
|
3
|
+
color-scheme: light dark; /* So the browser's own parts, such as menus and scroll bars, follow the theme. */
|
|
4
|
+
--bg: #f6f5f1; --panel: #ffffff; --panel-2: #f0eee8; --text: #1d1d1b; --muted: #6b6a64; --line: #e2dfd6;
|
|
5
|
+
--accent: #2f6f5e; --accent-text: #ffffff; --accent-soft: #e3efe9; --warn: #8a5a00; --warn-soft: #fbf1dc;
|
|
6
|
+
--error: #a3302a; --error-soft: #fbe7e5; --code-bg: #f3f1ea; --mark: #fff1b8;
|
|
7
|
+
--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
8
|
+
--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
|
|
9
|
+
}
|
|
10
|
+
@media (prefers-color-scheme: dark) {
|
|
11
|
+
:root {
|
|
12
|
+
--bg: #161715; --panel: #1f201e; --panel-2: #272825; --text: #ecebe6; --muted: #a09e96; --line: #34352f;
|
|
13
|
+
--accent: #6cc3a5; --accent-text: #0f1a16; --accent-soft: #1f3a31; --warn: #f0c46a; --warn-soft: #3a2f17;
|
|
14
|
+
--error: #f28b82; --error-soft: #3d2220; --code-bg: #262723; --mark: #4a4220;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
/* ---- Base elements: buttons, inputs, code ---- */
|
|
18
|
+
* { box-sizing: border-box; }
|
|
19
|
+
[hidden] { display: none !important; }
|
|
20
|
+
html, body { height: 100%; margin: 0; }
|
|
21
|
+
body { background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); }
|
|
22
|
+
button, input, textarea { font: inherit; color: inherit; }
|
|
23
|
+
button { cursor: pointer; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 7px 12px; }
|
|
24
|
+
button:hover:not(:disabled) { border-color: var(--accent); }
|
|
25
|
+
button:hover:not(:disabled):not(.primary):not(.link) { background: var(--panel-2); }
|
|
26
|
+
button.primary:hover:not(:disabled) { filter: brightness(1.08); }
|
|
27
|
+
button:focus-visible, select:focus-visible, summary:focus-visible, a.cite:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
28
|
+
button, input, select, textarea { transition: border-color .12s, background-color .12s; }
|
|
29
|
+
button:disabled { opacity: .5; cursor: default; }
|
|
30
|
+
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
|
|
31
|
+
button.link { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; }
|
|
32
|
+
input[type=text], textarea { width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 8px 10px; }
|
|
33
|
+
input[type=text]:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
|
|
34
|
+
code, pre { font-family: var(--mono); font-size: 13px; }
|
|
35
|
+
/* Code and citations read left to right even inside an Arabic sentence, so store.py:12-20 is never reordered. */
|
|
36
|
+
code, pre, a.cite { direction: ltr; unicode-bidi: isolate; }
|
|
37
|
+
pre { text-align: left; }
|
|
38
|
+
/* Letter spacing pulls joined Arabic letters apart, so the Arabic page has none. */
|
|
39
|
+
[lang=ar] body, [lang=ar] body * { letter-spacing: 0 !important; }
|
|
40
|
+
/* File paths, addresses, and the map are left to right in the Arabic page as well. */
|
|
41
|
+
#path, #github, .modal .list label, .modal header .where, .drawer header .where, .drawer .code, .study-bar .chosen:not(.none), .map-scroll { direction: ltr; }
|
|
42
|
+
.lang { font-size: 13px; padding: 4px 10px; white-space: nowrap; }
|
|
43
|
+
|
|
44
|
+
/* ---- Page layout and sidebar (a few chat and upload rules added later sit here too) ---- */
|
|
45
|
+
.app { display: grid; grid-template-columns: 300px 1fr; height: 100vh; }
|
|
46
|
+
.sidebar { border-inline-end: 1px solid var(--line); background: var(--panel); padding: 18px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
|
|
47
|
+
.brand { display: flex; align-items: center; gap: 12px; }
|
|
48
|
+
.logo { width: 46px; height: 46px; flex: none; }
|
|
49
|
+
.brand h1 { font-size: 21px; margin: 0; letter-spacing: -.02em; line-height: 1.1; }
|
|
50
|
+
.brand .slogan { margin: 3px 0 0; color: var(--accent); font-size: 13px; font-weight: 600; }
|
|
51
|
+
.offline-card { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.45; }
|
|
52
|
+
.offline-card svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--accent); }
|
|
53
|
+
.offline-card strong { display: block; color: var(--text); font-size: 13px; }
|
|
54
|
+
.offline-card span { color: var(--muted); }
|
|
55
|
+
select { width: 100%; font: inherit; color: inherit; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 8px 10px; }
|
|
56
|
+
select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
|
|
57
|
+
.pill.offline { display: inline-flex; align-items: center; gap: 6px; }
|
|
58
|
+
.pill.offline::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
|
|
59
|
+
.section h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
|
|
60
|
+
.row { display: flex; gap: 8px; margin-top: 8px; }
|
|
61
|
+
.row button { flex: 1; }
|
|
62
|
+
.index-status { margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
|
|
63
|
+
.settings summary { cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; border-radius: 4px; }
|
|
64
|
+
.settings .field { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
|
|
65
|
+
.menu { display: none; padding: 4px 10px; font-size: 17px; line-height: 1.2; }
|
|
66
|
+
.start { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
|
|
67
|
+
.start button { padding: 9px 18px; }
|
|
68
|
+
.suggest-label { margin-top: 26px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
|
|
69
|
+
.toast { position: fixed; z-index: 20; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px)); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.25); overflow-wrap: anywhere; }
|
|
70
|
+
.msg-foot { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; }
|
|
71
|
+
.msg-foot details.steps { flex: 1; min-width: 0; margin-top: 0; }
|
|
72
|
+
.msg-foot .copy { flex: none; font-size: 12px; padding: 3px 10px; color: var(--muted); }
|
|
73
|
+
.index-status strong { color: var(--text); }
|
|
74
|
+
.index-status.error { color: var(--error); }
|
|
75
|
+
.upload-row { display: flex; gap: 8px; margin-top: 8px; }
|
|
76
|
+
.upload-row button { flex: 1; }
|
|
77
|
+
body.dropping .main::after { content: attr(data-drop); position: fixed; inset-block: 12px; inset-inline: 312px 12px; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--accent); border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 18px; z-index: 5; pointer-events: none; }
|
|
78
|
+
@media (max-width: 760px) { body.dropping .main::after { inset-inline: 12px; } }
|
|
79
|
+
.recent button { display: block; width: 100%; text-align: start; margin-bottom: 6px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
80
|
+
.privacy { margin-top: auto; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
|
|
81
|
+
|
|
82
|
+
/* ---- Main column and top bar ---- */
|
|
83
|
+
.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
|
|
84
|
+
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--line); background: var(--panel); }
|
|
85
|
+
.topbar .repo { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
86
|
+
.topbar .repo.empty { color: var(--muted); font-weight: 400; }
|
|
87
|
+
.topbar .spacer { flex: 1; }
|
|
88
|
+
.pill { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
|
|
89
|
+
|
|
90
|
+
/* ---- Chat area, empty state, and suggested questions ---- */
|
|
91
|
+
.messages { flex: 1; overflow-y: auto; padding: 22px; }
|
|
92
|
+
.messages-inner { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
|
|
93
|
+
.empty-state { text-align: center; color: var(--muted); margin-top: 12vh; }
|
|
94
|
+
.empty-state h2 { color: var(--text); font-size: 24px; letter-spacing: -.01em; margin-bottom: 6px; }
|
|
95
|
+
.empty-state p { max-width: 560px; margin: 0 auto; }
|
|
96
|
+
.chat-row { display: flex; gap: 6px; }
|
|
97
|
+
.chat-row button:first-child { flex: 1; min-width: 0; }
|
|
98
|
+
.chat-row .chat-delete { width: auto; flex: none; padding-left: 9px; padding-right: 9px; }
|
|
99
|
+
.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
|
|
100
|
+
.suggestions button { font-size: 13px; border-radius: 999px; padding: 6px 14px; color: var(--text); }
|
|
101
|
+
|
|
102
|
+
/* ---- Messages, answers, citations, and the unverified-answer box ---- */
|
|
103
|
+
.msg.user { align-self: flex-end; max-width: 80%; background: var(--accent); color: var(--accent-text); padding: 9px 14px; border-radius: 14px 14px 4px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
104
|
+
.msg.assistant { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; overflow-wrap: anywhere; }
|
|
105
|
+
.msg.note { align-self: center; max-width: 90%; font-size: 13px; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 14px; overflow-wrap: anywhere; }
|
|
106
|
+
.msg.note strong { color: var(--text); }
|
|
107
|
+
.msg.note.error { color: var(--error); border-color: var(--error); }
|
|
108
|
+
.msg.note button { font-size: 12px; padding: 3px 10px; margin-inline-start: 6px; }
|
|
109
|
+
.composer #attach { flex: none; width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; }
|
|
110
|
+
.composer #attach svg { width: 20px; height: 20px; }
|
|
111
|
+
.msg.assistant .status { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
|
|
112
|
+
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
|
|
113
|
+
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
|
|
114
|
+
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } .sidebar, button, input, select, textarea { transition: none !important; } }
|
|
115
|
+
.answer p { margin: 0 0 10px; }
|
|
116
|
+
.answer p:last-child { margin-bottom: 0; }
|
|
117
|
+
.answer ul, .answer ol { margin: 0 0 10px; padding-inline-start: 22px; }
|
|
118
|
+
.answer li { margin-bottom: 4px; }
|
|
119
|
+
.answer h4 { margin: 12px 0 6px; font-size: 15px; }
|
|
120
|
+
.answer code { background: var(--code-bg); padding: 1px 5px; border-radius: 4px; }
|
|
121
|
+
.answer pre { background: var(--code-bg); padding: 10px 12px; border-radius: 8px; overflow-x: auto; margin: 0 0 10px; }
|
|
122
|
+
.answer pre code { background: none; padding: 0; }
|
|
123
|
+
a.cite { color: var(--accent); font-family: var(--mono); font-size: 13px; text-decoration: none; border-bottom: 1px dashed var(--accent); }
|
|
124
|
+
a.cite:hover { border-bottom-style: solid; }
|
|
125
|
+
.stopped { margin-top: 10px; color: var(--muted); font-size: 13px; }
|
|
126
|
+
button.stop { border-color: var(--error); color: var(--error); font-weight: 600; }
|
|
127
|
+
.checks { margin-top: 12px; background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 9px 12px; font-size: 13px; }
|
|
128
|
+
.checks strong { display: block; margin-bottom: 4px; }
|
|
129
|
+
.checks ul { margin: 0; padding-inline-start: 18px; }
|
|
130
|
+
.error-box { margin-top: 10px; background: var(--error-soft); color: var(--error); border-radius: 8px; padding: 9px 12px; font-size: 13px; }
|
|
131
|
+
details.steps { margin-top: 12px; font-size: 13px; color: var(--muted); }
|
|
132
|
+
details.steps summary { cursor: pointer; }
|
|
133
|
+
details.steps pre { white-space: pre-wrap; background: var(--panel-2); padding: 8px 10px; border-radius: 8px; max-height: 320px; overflow-y: auto; margin: 6px 0 0; }
|
|
134
|
+
|
|
135
|
+
/* ---- Composer: the question box ---- */
|
|
136
|
+
.composer { border-top: 1px solid var(--line); background: var(--panel); padding: 14px 22px 16px; }
|
|
137
|
+
.composer-inner { max-width: 860px; margin: 0 auto; display: flex; gap: 10px; align-items: flex-end; }
|
|
138
|
+
.composer textarea { resize: none; min-height: 44px; max-height: 200px; }
|
|
139
|
+
.composer .hint { max-width: 860px; margin: 6px auto 0; font-size: 12px; color: var(--muted); }
|
|
140
|
+
|
|
141
|
+
/* ---- View tabs, structure map, flashcards, and the file picker's rows ---- */
|
|
142
|
+
.tabs { display: flex; gap: 4px; background: var(--panel-2); border-radius: 10px; padding: 3px; }
|
|
143
|
+
.tabs button { border: 0; background: none; padding: 5px 12px; border-radius: 7px; font-size: 13px; }
|
|
144
|
+
.tabs button[aria-pressed=true] { background: var(--panel); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
|
|
145
|
+
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
|
|
146
|
+
.study-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 22px; border-bottom: 1px solid var(--line); background: var(--panel); font-size: 13px; }
|
|
147
|
+
.study-bar .chosen { font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46%; }
|
|
148
|
+
.study-bar .chosen.none { font-family: var(--sans); color: var(--muted); }
|
|
149
|
+
.study-bar .spacer { flex: 1; }
|
|
150
|
+
.study-bar select { width: auto; padding: 5px 8px; }
|
|
151
|
+
.study-bar label { color: var(--muted); display: flex; align-items: center; gap: 6px; }
|
|
152
|
+
.study-status { padding: 10px 22px 0; font-size: 13px; color: var(--muted); }
|
|
153
|
+
.study-status.error { color: var(--error); }
|
|
154
|
+
.map-scroll { flex: 1; overflow: auto; padding: 14px 22px 22px; }
|
|
155
|
+
.map-scroll svg { display: block; }
|
|
156
|
+
.map-scroll .node { cursor: pointer; }
|
|
157
|
+
.map-scroll .node rect { fill: var(--panel); stroke: var(--line); stroke-width: 1.2; }
|
|
158
|
+
.map-scroll .node.class rect, .map-scroll .node.file rect { stroke: var(--accent); }
|
|
159
|
+
.map-scroll .node.ghost { cursor: default; }
|
|
160
|
+
.map-scroll .node.ghost rect { fill: var(--panel-2); stroke-dasharray: 4 3; }
|
|
161
|
+
.map-scroll .node:focus-visible rect, .map-scroll .node:hover rect { stroke: var(--accent); stroke-width: 2; }
|
|
162
|
+
.map-scroll .node:focus { outline: none; }
|
|
163
|
+
.map-scroll .node .label { fill: var(--text); font: 600 12px var(--mono); }
|
|
164
|
+
.map-scroll .node .sub { fill: var(--muted); font: 11px var(--sans); }
|
|
165
|
+
.map-scroll .edge { fill: none; stroke: var(--muted); stroke-width: 1.3; }
|
|
166
|
+
.map-scroll .edge.back { stroke-dasharray: 5 4; }
|
|
167
|
+
.map-scroll .arrow { fill: var(--muted); }
|
|
168
|
+
.map-scroll svg.focus .edge:not(.hot) { opacity: .12; }
|
|
169
|
+
.map-scroll svg.focus .node:not(.hot) { opacity: .4; }
|
|
170
|
+
.map-scroll .edge.hot { stroke: var(--accent); stroke-width: 2; }
|
|
171
|
+
.cards-body { flex: 1; overflow-y: auto; padding: 18px 22px 22px; }
|
|
172
|
+
.deck { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
|
|
173
|
+
.flashcard { min-height: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; overflow-wrap: anywhere; }
|
|
174
|
+
.flashcard:hover, .flashcard:focus-visible { border-color: var(--accent); outline: none; }
|
|
175
|
+
.flashcard.answer { background: var(--accent-soft); }
|
|
176
|
+
.flashcard .side { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
|
|
177
|
+
.flashcard .text { font-size: 18px; line-height: 1.45; margin: auto 0; }
|
|
178
|
+
.flashcard .text code { background: var(--code-bg); padding: 1px 5px; border-radius: 4px; font-size: 15px; }
|
|
179
|
+
.flashcard .source { font-size: 13px; color: var(--muted); min-height: 20px; }
|
|
180
|
+
.deck-nav { display: flex; align-items: center; gap: 10px; }
|
|
181
|
+
.deck-nav .count { flex: 1; text-align: center; color: var(--muted); font-size: 13px; }
|
|
182
|
+
.deck-tools { display: flex; gap: 8px; justify-content: center; }
|
|
183
|
+
.deck-tools button { font-size: 13px; }
|
|
184
|
+
.picker-filter { flex: 1; }
|
|
185
|
+
.modal .list label { display: flex; gap: 8px; align-items: center; padding: 5px 10px; border-radius: 6px; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; cursor: pointer; }
|
|
186
|
+
.modal .list label:hover { background: var(--panel-2); }
|
|
187
|
+
.modal footer .note { flex: 1; font-size: 12px; color: var(--muted); align-self: center; }
|
|
188
|
+
|
|
189
|
+
/* ---- Overlay and dialogs: folder browser and file picker ---- */
|
|
190
|
+
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: none; z-index: 10; }
|
|
191
|
+
.overlay.open { display: block; }
|
|
192
|
+
.modal { position: fixed; z-index: 11; top: 8vh; left: 50%; transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); max-height: 80vh; display: none; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
|
|
193
|
+
.modal.open { display: flex; }
|
|
194
|
+
.modal header { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
|
|
195
|
+
.modal header .where { flex: 1; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
|
|
196
|
+
.modal .list { overflow-y: auto; padding: 6px 8px; flex: 1; }
|
|
197
|
+
.modal .list button { display: flex; width: 100%; justify-content: space-between; border: 0; background: none; text-align: start; padding: 7px 10px; border-radius: 6px; }
|
|
198
|
+
.modal .list button:hover { background: var(--panel-2); }
|
|
199
|
+
.modal footer { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
|
|
200
|
+
.tag { font-size: 11px; color: var(--accent); }
|
|
201
|
+
|
|
202
|
+
/* ---- Drawer that shows cited code ---- */
|
|
203
|
+
.drawer { position: fixed; z-index: 11; top: 0; inset-inline-end: 0; bottom: 0; width: min(720px, 100vw); background: var(--panel); border-inline-start: 1px solid var(--line); display: none; flex-direction: column; }
|
|
204
|
+
.drawer.open { display: flex; }
|
|
205
|
+
.drawer header { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
|
|
206
|
+
.drawer header a { font-size: 13px; color: var(--accent); white-space: nowrap; }
|
|
207
|
+
.drawer header .where { flex: 1; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
|
|
208
|
+
.drawer .code { overflow: auto; flex: 1; padding: 8px 0; font-family: var(--mono); font-size: 13px; }
|
|
209
|
+
.drawer .line { display: flex; white-space: pre; padding: 0 16px; }
|
|
210
|
+
.drawer .line .n { color: var(--muted); width: 48px; flex: none; text-align: right; padding-right: 14px; user-select: none; }
|
|
211
|
+
.drawer .line.hit { background: var(--mark); }
|
|
212
|
+
|
|
213
|
+
/* ---- Small screens ---- */
|
|
214
|
+
@media (max-width: 760px) {
|
|
215
|
+
/* The sidebar slides in over the chat, so the chat is the first thing on a small screen. */
|
|
216
|
+
.app { grid-template-columns: 1fr; }
|
|
217
|
+
.sidebar { position: fixed; z-index: 12; top: 0; bottom: 0; inset-inline-start: 0; width: min(320px, 88vw); transform: translateX(-102%); transition: transform .18s ease; }
|
|
218
|
+
[dir=rtl] .sidebar { transform: translateX(102%); }
|
|
219
|
+
body.menu-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.25); }
|
|
220
|
+
.menu { display: block; }
|
|
221
|
+
.topbar .repo { flex: 1; min-width: 0; }
|
|
222
|
+
.topbar .spacer, #index-pill, #offline-pill { display: none; }
|
|
223
|
+
.composer .hint { display: none; }
|
|
224
|
+
.start { flex-direction: column; align-items: center; }
|
|
225
|
+
.messages { padding: 16px; }
|
|
226
|
+
.composer, .topbar, .study-bar, .study-status { padding-left: 16px; padding-right: 16px; }
|
|
227
|
+
.topbar { gap: 8px; }
|
|
228
|
+
.tabs button { padding: 5px 9px; }
|
|
229
|
+
.map-scroll, .cards-body { padding-left: 16px; padding-right: 16px; }
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/* A proposed change (--allow-edits): its diff, with Apply and Decline. */
|
|
233
|
+
.diff-box { margin-top: 10px; border: 1px solid var(--line, #d0d7de); border-radius: 8px; padding: 10px; }
|
|
234
|
+
.diff-box pre.diff { max-height: 360px; overflow: auto; font-size: 12px; margin: 8px 0; white-space: pre; }
|
|
235
|
+
.diff-box .add { background: rgba(46, 160, 67, 0.15); display: block; }
|
|
236
|
+
.diff-box .del { background: rgba(248, 81, 73, 0.15); display: block; }
|
|
237
|
+
.diff-actions { display: flex; gap: 8px; }
|