aKode fase 5: rinomina interna (crate akode-*, akode-rs/, akode-cli/, binario akode, AKODE_*, ~/.akode, snapshot)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-11 11:06:46 +01:00
parent df99318392
commit 86e7c72e5f
10383 changed files with 749164 additions and 749170 deletions

View File

@@ -0,0 +1,52 @@
/// Parameters for listing independently persisted thread sections.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct ListThreadSectionsParams {
/// Opaque cursor returned by a previous section listing.
pub cursor: Option<String>,
/// Maximum number of sections to return.
pub limit: usize,
}
/// Parameters for creating a thread section.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct CreateThreadSectionParams {
/// User-facing section name.
pub name: String,
pub appearance: Option<akode_state::ThreadSectionAppearance>,
}
/// Parameters for renaming a thread section.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct RenameThreadSectionParams {
/// Stable identifier of the section to rename.
pub section_id: String,
/// Replacement user-facing section name.
pub name: String,
pub appearance: Option<Option<akode_state::ThreadSectionAppearance>>,
}
/// Parameters for deleting a thread section.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct DeleteThreadSectionParams {
/// Stable identifier of the section to delete.
pub section_id: String,
}
/// An independently persisted thread section and its user-facing name.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct StoredThreadSection {
/// Stable, server-owned section identifier.
pub id: String,
/// User-facing section name.
pub name: String,
pub appearance: Option<akode_state::ThreadSectionAppearance>,
}
/// A cursor-paginated page of independently persisted thread sections.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct StoredThreadSectionsPage {
/// Sections returned for this page.
pub sections: Vec<StoredThreadSection>,
/// Opaque cursor to continue listing sections.
pub next_cursor: Option<String>,
}