zettelkasten.dashboard.backend.routes.notes¶
zettelkasten.dashboard.backend.routes.notes ¶
Note, reading-list, dataset, and note-authoring routes.
Split out of the former flat routes.py; behaviour is unchanged.
missing_definitions ¶
Terms the graph references but never defines, ranked by reference count.
Source code in zettelkasten/dashboard/backend/routes/notes.py
graph_reading_list ¶
Reading list for a single source: works its notes cite, with relevance.
Source code in zettelkasten/dashboard/backend/routes/notes.py
project_reading_list ¶
Reading list across a project: works cited by any source (plus _cross).
Source code in zettelkasten/dashboard/backend/routes/notes.py
get_note_snapshot ¶
Serve an equation or figure note's committed snapshot PNG (visual ground-truth).
404s when the note is missing, carries no snapshot pointer, or the sidecar
file is absent. The path is jailed to the graphs dir by
:func:equation_snapshot.resolve_snapshot_path.
Source code in zettelkasten/dashboard/backend/routes/notes.py
get_dataset_values ¶
Resolve a dataset note and return a paginated rows payload.
Shape: {columns, rows, num_rows, offset, limit, backend, format,
content_hash, schema, warning}. 404s when the note is missing or not a
dataset; a resolution problem (missing file, unknown provider) is a 200 with
an empty rows and a populated warning so the UI can show it inline.
Source code in zettelkasten/dashboard/backend/routes/notes.py
update_note ¶
Edit an existing note in place. Currently only the title is editable.
The note id is the stable identity (filename + link target), so renaming a note's title rewrites only the title frontmatter and leaves the id, file, and every reference to it untouched. Federated graphs are a read-only overlay → 403.
Source code in zettelkasten/dashboard/backend/routes/notes.py
auto_note_route ¶
Research term with a one-shot agent and add it as a note of type.
Powers the Inspect "Add" fields: the agent drafts a concise, grounded note
(it never writes), and this route deterministically creates it in name (a
single source graph, or _cross for project scope). A label already in the
graph short-circuits to the existing note (existed: true) without invoking
the agent. Federated graphs are read-only → 403.
Source code in zettelkasten/dashboard/backend/routes/notes.py
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 | |