mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-23 07:04:14 +02:00
Live mode: create a new project (new_project, qet_live_new_project)
An assistant in live mode could only work on the project already open. new_project makes one as File > New does -- this installation's new-folio defaults, optional title and number of folios -- and makes it the current project, so the next request works on it. An optional absolute path saves it at once, never over an existing file: QElectroTech refuses, and the MCP server refuses before asking (a new never-overwrite class in its path policy, so an "overwrite" flag cannot get round it). Pages and links across pages already worked through scripts (qet.addFolio, setFolioTitle, linkElements across folios); the tool's description now says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -84,6 +84,7 @@ class LiveServer : public QObject
|
||||
QJsonObject runStored(const QString &id);
|
||||
QJsonObject command(const QString &id);
|
||||
QJsonObject showFolio(int folio);
|
||||
QJsonObject newProject(const QJsonObject &request);
|
||||
QJsonObject undoLast();
|
||||
QJsonObject screenshot();
|
||||
bool confirm(const QString &name, const QString &source);
|
||||
|
||||
Reference in New Issue
Block a user