fontlab_aidus_agentus.install
install
Install, check or remove the Aidus Agentus Scripts-menu folder in a FontLab user folder.
Ported from the legacy repository's install.py. The old
installer symlinked the whole plugin into FontLab's Scripts folder, replaced
whatever was there, and ran uv sync for the brain. Here the host package is
installed with uv pip (README), and this module only manages
<user folder>/Scripts/Aidus Agentus: the same three thin menu scripts as the
repository's Scripts/Aidus Agentus/ folder plus a manifest (.fontlab-aidus-agentus-install,
format 1) holding the sha256 of every file it wrote. Ownership is per file:
unknown entries are kept, a modified, foreign or symlinked entry stops an install
before anything changes, and uninstall removes only unmodified owned files and
the folder only when it is then empty. A folder without a valid manifest,
including the workspace orchestrator's symlink, is never touched.
Run on the host, not inside FontLab: fontlab-aidus-install {install,check,uninstall}.
Classes
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
ACTIONS |
attribute | ||
FONTLAB |
attribute | ||
MARKER |
attribute | ||
MARKER_FORMAT |
attribute | ||
MENU_FOLDER |
attribute | ||
PACKAGE |
attribute | ||
SCRIPT |
attribute | ||
check |
function | (user_folder: Path | None=None) -> dict[str, Any] |
Report menu, package and brain-interpreter state without changing anything. |
default_user_folder |
function | () -> Path |
Return FontLab 9's per-user folder (the parent of its Scripts folder). |
install |
function | (user_folder: Path | None=None) -> Path |
Write the menu scripts with an ownership manifest. |
main |
function | (argv: list[str] | None=None) -> int |
|
menu_path |
function | (user_folder: Path | None=None) -> Path |
|
menu_scripts |
function | () -> dict[str, str] |
Source text of each menu script, identical to the repository's Scripts/Aidus Agentus/ files. |
menu_state |
function | (target: Path) -> str |
Classify the menu entry: missing, link, empty (unmarked, nothing inside), copy (ours, valid manifest) or foreign. |
read_marker |
function | (target: Path) -> dict[str, Any] | None |
The validated ownership manifest, or None (absent, symlinked, malformed or foreign). |
uninstall |
function | (user_folder: Path | None=None) -> dict[str, Any] | None |
Remove the unmodified files this installer wrote, then the folder if it is empty. |