Skip to main content

Module mutations

Module mutations 

Source
Expand description

Filesystem-backed session mutations:

  • tag_session - appends a tag JSONL entry (pass None to clear).

Re-exportsΒ§

use std::fs; πŸ”’
use std::io::Write; πŸ”’
use std::path::Path; πŸ”’
use std::path::PathBuf; πŸ”’
use serde_json::json; πŸ”’
use forge_sdk::Error; πŸ”’
use forge_sdk::projects_dir_for; πŸ”’
use crate::userdata::catalog::scan::is_valid_uuid; πŸ”’

FunctionsΒ§

append_line πŸ”’
append_to_session πŸ”’
find_session_file πŸ”’
tag_session
Tag a session. Pass None to clear the tag (appends an empty-string entry which list_sessions interprets as cleared). project is required: a tag row that names no project cannot be told from another project’s.
validate_uuid πŸ”’
The CLI names transcripts by session UUID, so a stem that is not one is refused rather than matched against some other file.