remimem 0.2.0 → 0.3.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 +13 -13
- package/dist/cli/commands.js +16 -1
- package/dist/cli/index.js +47 -6
- package/dist/cli/program.js +21 -1
- package/dist/cli/ui.js +18 -2
- package/dist/dashboard/api.js +12 -1
- package/dist/dashboard/server.js +16 -1
- package/dist/dashboard/ui/app.css +1 -1
- package/dist/dashboard/ui/app.js +22 -22
- package/dist/dashboard/ui/geist-pixel-latin-400-normal-ODEFW7VT.woff2 +0 -0
- package/dist/dashboard/ui/index.html +5 -0
- package/dist/dashboard/ui/inter-latin-400-normal-55WT6UWF.woff2 +0 -0
- package/dist/dashboard/ui/inter-latin-500-normal-W62DVTXI.woff2 +0 -0
- package/dist/dashboard/ui/inter-latin-600-normal-R6Y2SZCR.woff2 +0 -0
- package/dist/dashboard/ui/jetbrains-mono-latin-400-normal-3OOWLGQ2.woff2 +0 -0
- package/dist/dashboard/ui/jetbrains-mono-latin-500-normal-V4XIP5OW.woff2 +0 -0
- package/dist/embedder/index.js +6 -2
- package/dist/graph/index.js +30 -9
- package/dist/graph/tsconfig.js +100 -0
- package/dist/indexer/index.js +1 -1
- package/dist/mcp/tools.js +41 -8
- package/dist/memory/import.js +136 -0
- package/dist/memory/index.js +26 -0
- package/dist/store/index.js +9 -0
- package/dist/store/probe.js +113 -0
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -145,23 +145,23 @@ Changed files are re-indexed before each tool call, so answers follow your edits
|
|
|
145
145
|
|
|
146
146
|
## Tools
|
|
147
147
|
|
|
148
|
-
| Tool | What it returns
|
|
149
|
-
| ------------------ |
|
|
150
|
-
| `get_context` | The best starting context for a task: project memory, the top code in full, and neighbor signatures. Inputs: `task`, `budget_tokens` (default 4,000), `paths`.
|
|
151
|
-
| `search_code` | Ranked code for a query, with the reason each result matched. Inputs: `query`, `k` (default 10), `budget_tokens`, `language`, `paths`.
|
|
152
|
-
| `get_symbol` | One function, class, or type with its callers and callees. Inputs: `name`, `include` (`body` or `signature`), `depth` (0 to 2).
|
|
153
|
-
| `get_file_outline` | The symbols of a file with signatures and line numbers, no bodies. Input: `path`.
|
|
154
|
-
| `find_references` | Where a symbol is called, extended, used as a type, or imported, as `path:line` grouped by file. Input: `name`.
|
|
155
|
-
| `remember` | Saves a decision, convention, gotcha, or todo, optionally linked to files and symbols. Inputs: `text`, `kind`, `paths`, `symbols`, `tags`.
|
|
156
|
-
| `recall` | Matching memories, stale ones marked. Inputs: `query`, `kind`.
|
|
157
|
-
| `forget` | Deletes a memory. Input: `id`.
|
|
158
|
-
| `index_status` | Files, chunks, last indexed commit, pending changes, embedding model.
|
|
148
|
+
| Tool | What it returns |
|
|
149
|
+
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
150
|
+
| `get_context` | The best starting context for a task: project memory, the top code in full, and neighbor signatures. Inputs: `task`, `budget_tokens` (default 4,000), `paths`. |
|
|
151
|
+
| `search_code` | Ranked code for a query, with the reason each result matched. Inputs: `query`, `k` (default 10), `budget_tokens`, `language`, `paths`. |
|
|
152
|
+
| `get_symbol` | One function, class, or type with its callers and callees. Inputs: `name`, `include` (`body` or `signature`), `depth` (0 to 2). |
|
|
153
|
+
| `get_file_outline` | The symbols of a file with signatures and line numbers, no bodies. Input: `path`. |
|
|
154
|
+
| `find_references` | Where a symbol is called, extended, used as a type, or imported, as `path:line` grouped by file. Input: `name`. |
|
|
155
|
+
| `remember` | Saves a decision, convention, gotcha, or todo, optionally linked to files and symbols; with an `id`, updates one or confirms a stale one is still true. Inputs: `text`, `kind`, `paths`, `symbols`, `tags`, `id`. |
|
|
156
|
+
| `recall` | Matching memories, stale ones marked. Inputs: `query`, `kind`. |
|
|
157
|
+
| `forget` | Deletes a memory. Input: `id`. |
|
|
158
|
+
| `index_status` | Files, chunks, last indexed commit, pending changes, embedding model. |
|
|
159
159
|
|
|
160
160
|
There is also one resource, `remimem://overview`: a directory map with the most-referenced symbols per directory.
|
|
161
161
|
|
|
162
162
|
## Dashboard
|
|
163
163
|
|
|
164
|
-
`remimem dashboard` opens a local page with the code graph (folders, files, then each symbol's callers and callees), a search playground that shows scores, reasons, and the exact packed answer, a memory manager, tokens saved per day, the setup checks, and a settings editor. An agent's `remimem serve` runs it too, and `index_status` gives its address. It listens on 127.0.0.1 only, and every request needs the random token in the printed address. Set `dashboard.enabled` to `false` to keep `serve` from opening a port.
|
|
164
|
+
`remimem dashboard` opens a local page with live agent activity (each tool call as it happens, with tokens and time), the code graph (folders, files, then each symbol's callers and callees), a search playground that shows scores, reasons, and the exact packed answer, a memory manager (with Still true for stale memories), tokens saved per day, the setup checks, and a settings editor. An agent's `remimem serve` runs it too, and `index_status` gives its address. It listens on 127.0.0.1 only, and every request needs the random token in the printed address. Set `dashboard.enabled` to `false` to keep `serve` from opening a port.
|
|
165
165
|
|
|
166
166
|
The same functions are available from the command line: `remimem init`, `index [--full]`, `watch`, `serve`, `search "<query>"`, `context "<task>"`, `memory list|add|rm`, `dashboard`, `stats`, `doctor`, and `bench` (from a source checkout).
|
|
167
167
|
|
|
@@ -201,7 +201,7 @@ Everything runs on your machine. Code is parsed, embedded, and stored locally, i
|
|
|
201
201
|
- **Memories cost a little code.** With project memory attached, the share of right files shown with a full body dropped by about 2 points in the benchmark (90% against 92%), because memory takes up to a quarter of the budget. Only a quarter of the memories attached there were relevant.
|
|
202
202
|
- **The default embedding model is not trained on code.** A code-trained alternative found no more of the right files in the benchmark and indexed five times slower, so it is an option, not the default.
|
|
203
203
|
- **Change detection trusts size and modification time.** A change that keeps both is missed until `remimem index` runs, which hashes every file.
|
|
204
|
-
- **Platform gaps.** Vector search has no prebuilt extension for Windows on ARM.
|
|
204
|
+
- **Platform gaps.** Vector search has no prebuilt extension for Windows on ARM. Go struct embedding and implicit interface satisfaction produce no graph links.
|
|
205
205
|
|
|
206
206
|
## Roadmap
|
|
207
207
|
|
package/dist/cli/commands.js
CHANGED
|
@@ -12,6 +12,7 @@ import { pack } from '../packer/index.js';
|
|
|
12
12
|
import { search } from '../retriever/index.js';
|
|
13
13
|
import { Store } from '../store/index.js';
|
|
14
14
|
import { runTool, TOOLS } from '../mcp/tools.js';
|
|
15
|
+
import { importDecisions } from '../memory/import.js';
|
|
15
16
|
import { formatStats } from '../stats/index.js';
|
|
16
17
|
const dbPath = (root) => join(root, CONFIG_DIR, 'index.db');
|
|
17
18
|
/** `remimem index`: returns the summary line. */
|
|
@@ -74,7 +75,7 @@ export async function runContext(root, task, options) {
|
|
|
74
75
|
/** `remimem memory list`, `add`, and `rm`: the memory tools from the command line. */
|
|
75
76
|
export async function runMemory(root, action, args) {
|
|
76
77
|
const config = loadConfig(root);
|
|
77
|
-
const name = { list: 'recall', add: 'remember', rm: 'forget' }[action];
|
|
78
|
+
const name = { list: 'recall', add: 'remember', rm: 'forget', confirm: 'remember' }[action];
|
|
78
79
|
const memoryTool = TOOLS.find((tool) => tool.name === name);
|
|
79
80
|
mkdirSync(join(root, CONFIG_DIR), { recursive: true });
|
|
80
81
|
const store = new Store(dbPath(root));
|
|
@@ -141,6 +142,20 @@ export async function runInit(root, options) {
|
|
|
141
142
|
const summary = await runIndex(root, options);
|
|
142
143
|
return [...steps, privacy, summary, '', clientConfigs()].join('\n');
|
|
143
144
|
}
|
|
145
|
+
/** `remimem memory import`: decisions from ADRs or a decision log, as memories. */
|
|
146
|
+
export function runMemoryImport(root, paths, options) {
|
|
147
|
+
return withStore(root, (store) => {
|
|
148
|
+
const { added, skipped } = importDecisions(root, store, paths, options);
|
|
149
|
+
const verb = options.dryRun ? 'Would import' : 'Imported';
|
|
150
|
+
const lines = [
|
|
151
|
+
`${verb} ${added.length} decision${added.length === 1 ? '' : 's'}${skipped.length ? ` (${skipped.length} already in memory)` : ''}.`,
|
|
152
|
+
...added.map((d) => ` ${d.path}: ${d.title}`),
|
|
153
|
+
];
|
|
154
|
+
if (options.dryRun && added.length)
|
|
155
|
+
lines.push('Run again without --dry-run to save them.');
|
|
156
|
+
return lines.join('\n');
|
|
157
|
+
});
|
|
158
|
+
}
|
|
144
159
|
function withStore(root, run) {
|
|
145
160
|
if (!existsSync(dbPath(root))) {
|
|
146
161
|
throw new StoreError('No index found in this directory; run `remimem index` first');
|
package/dist/cli/index.js
CHANGED
|
@@ -5,21 +5,63 @@ import { join } from 'node:path';
|
|
|
5
5
|
import { CONFIG_DIR } from '../config/index.js';
|
|
6
6
|
import { onModelDownload } from '../embedder/index.js';
|
|
7
7
|
import { RemimemError } from '../errors.js';
|
|
8
|
-
import {
|
|
8
|
+
import { probeSqlite } from '../store/probe.js';
|
|
9
9
|
import { downloadDisplay, paint, welcome } from './ui.js';
|
|
10
10
|
const pkg = createRequire(import.meta.url)('../../package.json');
|
|
11
|
+
/**
|
|
12
|
+
* Prints any failure so a person can act on it: the message, every underlying cause, and what to
|
|
13
|
+
* do next. Errors remimem did not expect also say how to get the full trace.
|
|
14
|
+
*/
|
|
15
|
+
function report(error) {
|
|
16
|
+
const err = process.stderr;
|
|
17
|
+
const expected = error instanceof RemimemError;
|
|
18
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
19
|
+
err.write(`${paint('red', 'error:', err)} ${expected ? message : `remimem stopped unexpectedly: ${message}`}\n`);
|
|
20
|
+
let cause = error instanceof Error ? error.cause : undefined;
|
|
21
|
+
for (let depth = 0; cause !== undefined && depth < 5; depth++) {
|
|
22
|
+
err.write(` ${paint('dim', 'because:', err)} ${cause instanceof Error ? cause.message : String(cause)}\n`);
|
|
23
|
+
cause = cause instanceof Error ? cause.cause : undefined;
|
|
24
|
+
}
|
|
25
|
+
const debug = process.env['REMIMEM_LOG_LEVEL'] === 'debug';
|
|
26
|
+
if (!expected) {
|
|
27
|
+
err.write(`Run \`remimem doctor\` to check the setup${debug ? '.' : ', or set REMIMEM_LOG_LEVEL=debug for the full trace.'}\n`);
|
|
28
|
+
}
|
|
29
|
+
if (debug && error instanceof Error && error.stack)
|
|
30
|
+
err.write(`${error.stack}\n`);
|
|
31
|
+
process.exitCode = 1;
|
|
32
|
+
}
|
|
11
33
|
// Exit quietly when the reader goes away, as in `remimem search x | head`.
|
|
12
34
|
process.stdout.on('error', (error) => {
|
|
13
35
|
if (error.code !== 'EPIPE')
|
|
14
36
|
throw error;
|
|
15
37
|
process.exit(0);
|
|
16
38
|
});
|
|
17
|
-
|
|
39
|
+
// Failures outside a command's own flow (a watcher callback, a stray promise) are shown too.
|
|
40
|
+
process.on('uncaughtException', (error) => {
|
|
41
|
+
report(error);
|
|
42
|
+
process.exit(1);
|
|
43
|
+
});
|
|
44
|
+
process.on('unhandledRejection', (error) => {
|
|
45
|
+
report(error);
|
|
46
|
+
process.exit(1);
|
|
47
|
+
});
|
|
48
|
+
const args = process.argv.slice(2);
|
|
49
|
+
const command = args[0];
|
|
18
50
|
// A bare `remimem` greets the user instead of printing an error and the full help.
|
|
19
51
|
if (command === undefined) {
|
|
20
52
|
console.log(welcome(pkg.version, existsSync(join(process.cwd(), CONFIG_DIR, 'index.db'))));
|
|
21
53
|
process.exit(0);
|
|
22
54
|
}
|
|
55
|
+
// Every command but help and the version reads the index, so check SQLite first: a broken native
|
|
56
|
+
// module would otherwise crash the process with no message at all.
|
|
57
|
+
const helpOnly = args.some((a) => ['-h', '--help', '-v', '--version'].includes(a));
|
|
58
|
+
if (!helpOnly) {
|
|
59
|
+
const sqlite = probeSqlite();
|
|
60
|
+
if (!sqlite.ok) {
|
|
61
|
+
process.stderr.write(`${paint('red', 'error:', process.stderr)} ${sqlite.message}\n`);
|
|
62
|
+
process.exit(1);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
23
65
|
// The MCP server talks over stdio, so it never draws anything.
|
|
24
66
|
if (command !== 'serve') {
|
|
25
67
|
let display;
|
|
@@ -29,11 +71,10 @@ if (command !== 'serve') {
|
|
|
29
71
|
});
|
|
30
72
|
}
|
|
31
73
|
try {
|
|
74
|
+
// Loaded after the check above: these modules open SQLite.
|
|
75
|
+
const { buildProgram } = await import('./program.js');
|
|
32
76
|
await buildProgram().parseAsync();
|
|
33
77
|
}
|
|
34
78
|
catch (error) {
|
|
35
|
-
|
|
36
|
-
throw error;
|
|
37
|
-
console.error(`${paint('red', 'error:', process.stderr)} ${error.message}`);
|
|
38
|
-
process.exitCode = 1;
|
|
79
|
+
report(error);
|
|
39
80
|
}
|
package/dist/cli/program.js
CHANGED
|
@@ -11,7 +11,7 @@ import { Store } from '../store/index.js';
|
|
|
11
11
|
import { RemimemError } from '../errors.js';
|
|
12
12
|
import { MEMORY_KINDS, MemoryError } from '../memory/index.js';
|
|
13
13
|
import { serve } from '../mcp/server.js';
|
|
14
|
-
import { runContext, runDoctor, runIndex, runInit, runMemory, runRefs, runSearch, runStats, runWatch, runSymbol, } from './commands.js';
|
|
14
|
+
import { runContext, runDoctor, runIndex, runInit, runMemory, runMemoryImport, runRefs, runSearch, runStats, runWatch, runSymbol, } from './commands.js';
|
|
15
15
|
import { resolveInRoot, scan } from '../scanner/index.js';
|
|
16
16
|
import { banner, clearLine, embedProgress, paint } from './ui.js';
|
|
17
17
|
const pkg = createRequire(import.meta.url)('../../package.json');
|
|
@@ -159,6 +159,26 @@ Docs: https://github.com/JaswanthRemiel/remimem`);
|
|
|
159
159
|
tags: options.tag,
|
|
160
160
|
}));
|
|
161
161
|
});
|
|
162
|
+
memory
|
|
163
|
+
.command('confirm <id>')
|
|
164
|
+
.description('Mark a stale memory as still true, linked to the code as it is now')
|
|
165
|
+
.action(async (id) => {
|
|
166
|
+
console.log(await runMemory(process.cwd(), 'confirm', { id }));
|
|
167
|
+
});
|
|
168
|
+
memory
|
|
169
|
+
.command('import <paths...>')
|
|
170
|
+
.description('Turn ADRs or a decision log (one "##" section per decision) into memories')
|
|
171
|
+
.option('--kind <kind>', 'decision, convention, gotcha, or todo', 'decision')
|
|
172
|
+
.option('--dry-run', 'list what would be imported without saving')
|
|
173
|
+
.action((paths, options) => {
|
|
174
|
+
if (!MEMORY_KINDS.includes(options.kind)) {
|
|
175
|
+
throw new MemoryError(`Unknown kind "${options.kind}". Use one of: ${MEMORY_KINDS.join(', ')}.`);
|
|
176
|
+
}
|
|
177
|
+
console.log(runMemoryImport(process.cwd(), paths, {
|
|
178
|
+
kind: options.kind,
|
|
179
|
+
dryRun: options.dryRun,
|
|
180
|
+
}));
|
|
181
|
+
});
|
|
162
182
|
memory
|
|
163
183
|
.command('rm <id>')
|
|
164
184
|
.description('Delete a memory')
|
package/dist/cli/ui.js
CHANGED
|
@@ -68,8 +68,24 @@ const MIN_DRAW_BYTES = 2 * 1_048_576;
|
|
|
68
68
|
*/
|
|
69
69
|
export function downloadDisplay(model) {
|
|
70
70
|
const out = process.stderr;
|
|
71
|
-
if (!out.isTTY)
|
|
72
|
-
|
|
71
|
+
if (!out.isTTY) {
|
|
72
|
+
// Not a terminal (CI, piped, some IDE consoles): no drawing, but say a download is happening.
|
|
73
|
+
let started = false;
|
|
74
|
+
let done = false;
|
|
75
|
+
const update = (loaded, total) => {
|
|
76
|
+
if (total < MIN_DRAW_BYTES || done)
|
|
77
|
+
return;
|
|
78
|
+
if (!started) {
|
|
79
|
+
started = true;
|
|
80
|
+
out.write(`Downloading the embedding model ${model} (${mb(total)} MB), once...\n`);
|
|
81
|
+
}
|
|
82
|
+
if (loaded >= total) {
|
|
83
|
+
done = true;
|
|
84
|
+
out.write(`Downloaded ${model}.\n`);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
return { update, finish: () => undefined };
|
|
88
|
+
}
|
|
73
89
|
let drawn = false;
|
|
74
90
|
let lastDraw = 0;
|
|
75
91
|
let last = { loaded: 0, total: 0 };
|
package/dist/dashboard/api.js
CHANGED
|
@@ -8,7 +8,7 @@ import { CONFIG_DIR, parseConfig } from '../config/index.js';
|
|
|
8
8
|
import { createProvider } from '../embedder/index.js';
|
|
9
9
|
import { RemimemError } from '../errors.js';
|
|
10
10
|
import { indexRepo, pendingChanges } from '../indexer/index.js';
|
|
11
|
-
import { forget, MEMORY_KINDS, MemoryError, remember } from '../memory/index.js';
|
|
11
|
+
import { confirmMemory, forget, MEMORY_KINDS, MemoryError, remember, } from '../memory/index.js';
|
|
12
12
|
import { pack } from '../packer/index.js';
|
|
13
13
|
import { search } from '../retriever/index.js';
|
|
14
14
|
import { refreshIndex } from '../mcp/tools.js';
|
|
@@ -159,10 +159,21 @@ export async function handleApi(ctx, req) {
|
|
|
159
159
|
})),
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
|
+
case 'POST /api/memories/confirm': {
|
|
163
|
+
const id = object(req.body)['id'];
|
|
164
|
+
if (typeof id !== 'string')
|
|
165
|
+
throw new MemoryError('Which memory? Send its id.');
|
|
166
|
+
return confirmMemory(ctx.root, store, id);
|
|
167
|
+
}
|
|
162
168
|
case 'GET /api/memories':
|
|
163
169
|
return { kinds: MEMORY_KINDS, memories: store.listMemories() };
|
|
164
170
|
case 'POST /api/memories':
|
|
165
171
|
return remember(ctx.root, store, memoryInput(req.body));
|
|
172
|
+
case 'GET /api/activity': {
|
|
173
|
+
// Polled by the page: the calls after the last one it has, at most 100 at a time.
|
|
174
|
+
const after = Number(req.query.get('after') ?? 0);
|
|
175
|
+
return { calls: store.queryLogAfter(Number.isFinite(after) ? after : 0, 100) };
|
|
176
|
+
}
|
|
166
177
|
case 'GET /api/stats':
|
|
167
178
|
return { byTool: store.queryLogSummary(), daily: store.queryLogDaily() };
|
|
168
179
|
case 'GET /api/doctor':
|
package/dist/dashboard/server.js
CHANGED
|
@@ -49,7 +49,7 @@ function send(res, status, body, type) {
|
|
|
49
49
|
'referrer-policy': 'no-referrer',
|
|
50
50
|
'x-frame-options': 'DENY',
|
|
51
51
|
'x-content-type-options': 'nosniff',
|
|
52
|
-
'content-security-policy': "default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; frame-ancestors 'none'",
|
|
52
|
+
'content-security-policy': "default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; frame-ancestors 'none'",
|
|
53
53
|
});
|
|
54
54
|
res.end(body);
|
|
55
55
|
}
|
|
@@ -89,6 +89,21 @@ export async function startDashboard(ctx, port = 0) {
|
|
|
89
89
|
const url = new URL(req.url ?? '/', `http://${host}`);
|
|
90
90
|
const method = req.method ?? 'GET';
|
|
91
91
|
if (!url.pathname.startsWith('/api/')) {
|
|
92
|
+
// The bundled fonts: a bare file name only, so nothing outside UI_DIR can be reached.
|
|
93
|
+
const font = /^\/([\w-]+\.woff2)$/.exec(url.pathname)?.[1];
|
|
94
|
+
if (method === 'GET' && font) {
|
|
95
|
+
try {
|
|
96
|
+
res.writeHead(200, {
|
|
97
|
+
'content-type': 'font/woff2',
|
|
98
|
+
'cache-control': 'public, max-age=31536000, immutable',
|
|
99
|
+
'x-content-type-options': 'nosniff',
|
|
100
|
+
});
|
|
101
|
+
return res.end(readFileSync(join(UI_DIR, font)));
|
|
102
|
+
}
|
|
103
|
+
catch {
|
|
104
|
+
return send(res, 404, 'Not found', 'text/plain');
|
|
105
|
+
}
|
|
106
|
+
}
|
|
92
107
|
const asset = method === 'GET' ? STATIC[url.pathname] : undefined;
|
|
93
108
|
if (!asset)
|
|
94
109
|
return send(res, 404, 'Not found', 'text/plain');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--bg: #
|
|
1
|
+
@font-face{font-family:Geist Pixel;src:url("./geist-pixel-latin-400-normal-ODEFW7VT.woff2") format("woff2");font-weight:400;font-display:swap}@font-face{font-family:Inter;src:url("./inter-latin-400-normal-55WT6UWF.woff2") format("woff2");font-weight:400;font-display:swap}@font-face{font-family:Inter;src:url("./inter-latin-500-normal-W62DVTXI.woff2") format("woff2");font-weight:500;font-display:swap}@font-face{font-family:Inter;src:url("./inter-latin-600-normal-R6Y2SZCR.woff2") format("woff2");font-weight:600;font-display:swap}@font-face{font-family:JetBrains Mono;src:url("./jetbrains-mono-latin-400-normal-3OOWLGQ2.woff2") format("woff2");font-weight:400;font-display:swap}@font-face{font-family:JetBrains Mono;src:url("./jetbrains-mono-latin-500-normal-V4XIP5OW.woff2") format("woff2");font-weight:500;font-display:swap}:root{--brand: #1f2bff;--bg: #05061a;--fg: #eef0ff;--card: #0a0c24;--muted: #12153a;--muted-fg: #9aa0c8;--border: #1c2050;--primary: #7581ff;--primary-fg: #05061a;--danger: #ff7a8a;--ok: #7ee0a8;--warn: #f6c177;--display: "Geist Pixel", ui-monospace, monospace;--sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;--mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;--ease-out: cubic-bezier(.23, 1, .32, 1);color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;height:100%}body{background:var(--bg);color:var(--fg);font:14px/1.5 var(--sans)}a{color:inherit}button,input,select,textarea{font:inherit;color:inherit}.shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100%}.side{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:4px;padding:20px 14px;border-right:1px solid rgb(255 255 255 / .2);background:radial-gradient(circle,rgb(255 255 255 / .18) 1px,transparent 1.6px) 0 0 / 7px 7px,linear-gradient(180deg,#2c38ff,#141fd8);color:#fff}.brand{display:flex;align-items:center;gap:10px;font:400 22px var(--display);letter-spacing:-.02em}.mark{display:grid;place-items:center;width:26px;height:26px;background:#fff;color:var(--brand);font:15px var(--sans)}.root{margin:6px 0 14px;font:12px var(--mono);color:#ffffffb3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:rtl;text-align:left}.tabs{display:flex;flex-direction:column;gap:2px}.tabs a{padding:8px 10px;text-decoration:none;color:#fffc;transition:background-color .15s ease}.tabs a:hover{background:#ffffff1f;color:#fff}.tabs a[aria-current=page]{background:#fff;color:var(--brand);font-weight:500}.version{margin-top:auto;font:12px var(--mono);color:#ffffffb3}main{padding:28px 32px 64px;outline:none;min-width:0}h1{margin:0 0 4px;font:400 34px/1.05 var(--display);letter-spacing:-.02em}h2{margin:30px 0 10px;font:400 22px var(--display);letter-spacing:-.01em}.lede{margin:0 0 20px;color:var(--muted-fg)}.grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.card{border:1px solid var(--border);border-radius:0;background:var(--card);padding:14px 16px;min-width:0}.stat .value{font:400 30px var(--display);color:var(--primary);font-variant-numeric:tabular-nums}.stat .label{color:var(--muted-fg);font-size:12px}.row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.spacer{flex:1}.btn{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:1px solid var(--border);background:var(--card);font:12.5px var(--mono);cursor:pointer;transition:transform .16s var(--ease-out),border-color .15s ease;-webkit-tap-highlight-color:transparent}.btn:active{transform:scale(.97)}.btn:hover{border-color:var(--primary)}.btn.primary{background:#fff;border-color:#fff;color:#0b0c1e}.btn.danger{color:var(--danger)}.btn:disabled{opacity:.55;cursor:progress}input[type=text],input[type=search],input[type=number],select,textarea{padding:7px 10px;border:1px solid var(--border);border-radius:0;background:var(--bg);min-width:0}input:focus-visible,select:focus-visible,textarea:focus-visible,.btn:focus-visible,.tabs a:focus-visible{outline:2px solid var(--primary);outline-offset:1px}textarea{width:100%;font:13px/1.5 var(--mono)}.mono{font-family:var(--mono);font-size:12.5px}.muted{color:var(--muted-fg)}.chip{display:inline-block;padding:1px 8px;border:1px solid var(--border);border-radius:999px;font-size:11.5px;color:var(--muted-fg);white-space:nowrap}.chip.exact,.chip.ok{color:var(--ok);border-color:color-mix(in oklab,var(--ok) 40%,transparent)}.chip.import{color:var(--primary);border-color:color-mix(in oklab,var(--primary) 40%,transparent)}.chip.name-match,.chip.stale,.chip.bad{color:var(--danger);border-color:color-mix(in oklab,var(--danger) 40%,transparent)}.bar{height:8px;border-radius:999px;background:var(--muted);overflow:hidden}.bar>span{display:block;height:100%;background:var(--primary)}table{width:100%;border-collapse:collapse}th,td{padding:7px 8px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}th{font-weight:500;color:var(--muted-fg);font-size:12px}.table-wrap{overflow-x:auto}pre.code{margin:0;padding:12px 14px;border:1px solid var(--border);border-radius:0;background:var(--card);overflow:auto;max-height:460px;font:12.5px/1.5 var(--mono)}.chart{width:100%;height:160px;display:block}.graph-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:14px}.crumbs{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin-bottom:10px;font:13px var(--mono)}.crumbs button{border:0;background:none;padding:2px 4px;color:var(--primary);cursor:pointer}#cy{height:min(68vh,640px);border:1px solid var(--border);border-radius:0;background:var(--card)}.panel{max-height:min(68vh,640px);overflow:auto}.symbol{padding:6px 0;border-bottom:1px solid var(--border)}.symbol>button{border:0;background:none;padding:0;cursor:pointer;text-align:left}.neighbors{margin:4px 0 0;padding:0;list-style:none;font-size:12.5px}.neighbors li{display:flex;gap:6px;align-items:baseline;padding:1px 0}.neighbors button{border:0;background:none;padding:0;color:var(--primary);cursor:pointer;font:12px var(--mono);text-align:left;overflow-wrap:anywhere}.legend{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px;font-size:12px;color:var(--muted-fg)}.legend i{display:inline-block;width:10px;height:10px;border-radius:999px;margin-right:4px;vertical-align:-1px}.calls{display:grid;padding:4px 16px}.call{display:grid;grid-template-columns:max-content 130px minmax(0,1fr) auto;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid var(--border)}.call:last-child{border-bottom:0}.call-tool{justify-self:start;font-family:var(--mono)}.call-query{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.call-stats{font-variant-numeric:tabular-nums;white-space:nowrap}.call-saved{color:var(--ok)}.call.fresh{animation:call-in .26s var(--ease-out),call-glow 2.4s ease-out}@keyframes call-in{0%{opacity:0;transform:translateY(-6px)}}@keyframes call-glow{0%{background:color-mix(in oklab,var(--primary) 18%,transparent)}}.live{display:inline-flex;align-items:center;gap:6px;font:12px var(--mono);color:var(--ok)}.live i{width:8px;height:8px;background:currentColor;animation:pulse 1.6s ease-in-out infinite}.live.off{color:var(--danger)}.live.off i{animation:none}@keyframes pulse{50%{opacity:.25}}.memory{display:grid;gap:8px}.memory p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.form{display:grid;gap:10px}.form label{display:grid;gap:4px;font-size:12.5px;color:var(--muted-fg)}.error{color:var(--danger);white-space:pre-wrap}.toast{position:fixed;right:16px;bottom:16px;max-width:min(420px,calc(100vw - 32px));padding:10px 14px;border:1px solid var(--border);border-radius:0;background:var(--fg);color:var(--bg);opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s;pointer-events:none}.toast.show{opacity:1;transform:none}@media(max-width:860px){.shell{grid-template-columns:minmax(0,1fr)}.side{position:sticky;z-index:5;height:auto;flex-direction:row;align-items:center;gap:12px;padding:10px 14px;border-right:0;border-bottom:1px solid var(--border)}.root,.version,.brand .name{display:none}.tabs{flex-direction:row;overflow-x:auto;scrollbar-width:none}.tabs a{white-space:nowrap}main{padding:20px 16px 48px}h1{font-size:25px}.graph-layout{grid-template-columns:minmax(0,1fr)}.call{grid-template-columns:auto minmax(0,1fr);row-gap:4px}.call-query,.call-stats{grid-column:1 / -1}#cy{height:56vh}.panel{max-height:none}}@media(prefers-reduced-motion:reduce){.toast,.btn{transition:none}.call.fresh{animation:call-glow 2.4s ease-out}.live i{animation:none}.btn:active{transform:none}}
|