Assistant house style: a drawing-convention text every AI assistant reads

QetSettings::houseStyle()/setHouseStyle() (assistant/house_style),
qet.houseStyle()/qet.setHouseStyle() in the script API, a house_style
field in qet-assistant.json, and qet_about in the qet MCP server
showing it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ispyisail
2026-10-05 18:32:42 +13:00
parent a5cd68ced5
commit 44dfb9d8d5
7 changed files with 91 additions and 4 deletions
+17
View File
@@ -173,6 +173,23 @@ namespace QetSettings
settings.setValue("scripting/live_assistant", enabled);
}
/**
* @brief houseStyle
* @return this installation's drawing conventions, in the user's own
* words -- empty when nobody has set any.
*/
QString houseStyle()
{
QSettings settings;
return settings.value("assistant/house_style", QString()).toString();
}
void setHouseStyle(const QString &text)
{
QSettings settings;
settings.setValue("assistant/house_style", text);
}
/**
* @brief setSheetBackground
* Store the sheet background last picked in the diagram editor, so the
+10
View File
@@ -41,6 +41,16 @@ namespace QetSettings
bool liveAssistantEnabled();
void setLiveAssistantEnabled(bool enabled);
/**
@brief Free-text drawing conventions for this installation (grid,
flow direction, routing, tagging, grouping, ...), written once by
the user and read by every AI assistant that connects -- live or
headless -- through qet-assistant.json and qet.houseStyle().
Empty when never set.
*/
QString houseStyle();
void setHouseStyle(const QString &text);
/**
@brief The sheet (folio) background the diagram editors draw.