Add frozen TikZRefinery demo baseline and build pipeline
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good

This commit is contained in:
2026-11-25 22:46:33 -05:00
parent 6064cce05e
commit 27b82c169e
456 changed files with 66509 additions and 0 deletions
@@ -0,0 +1,42 @@
# Shape API v1 - initial rectangle extraction
`tikzrefinery_shape_api` exports only these public headers and Qt Core.
The module implements `tkrShapeProvider`; the host loads it with Qt's native
plugin mechanism. Widgets, graphics items, byte ranges, files and history are
outside the API. This is a same-toolchain C++ contract, not a stable cross-vendor
ABI, sandbox or adapter layer. Use the exact API/schema, Qt, compiler, platform,
pointer size and Debug/Release build key in the module metadata.
Records use document centimetres and TeX-point stroke widths. An element has
document UUID, revision-scoped element ID/revision, family/type/schema, opposite
corners and appearance/content. The first provider supports black, unfilled,
empty-content rectangles. Other geometry/presentation schemas remain future work.
Operations are `tkr.move` and `tkr.resize`, parameter schema 1. Move supplies total
displacement from initial geometry; resize also supplies one of four semantic
corner IDs. Constraints contain optional fixed bounds and independent minimum
dimensions. Requests never contain source spellings or ranges. Results distinguish
PreparedChange, Unchanged and CannotPrepare with reason. A result is not acceptance.
Presentation contains an outline rectangle, selection rectangle, readable name
and four identified handle positions. The scene maps these values into its own
graphics items and constant-screen-size handles. It owns no plugin graphics item.
The edit service checks capabilities and proposal invariants, prepares exact
source replacements and the document applies guarded coordinate batches.
`tkrShapePluginStore` selects only the explicitly configured rectangle module
under `shape-plugins/`. It validates identity, role, API/data/parameter schemas,
operations and build key before activation, then pins its binding for the scene
lifetime (the Qt module remains resident for the process). A host UUID identifies
that runtime binding separately from the declared plugin ID/version. It does not
scan competing providers or choose one by load order. Candidate selection UI,
multiple-provider registration, hot updates and migration remain planned.
To build a provider, link the INTERFACE target, implement the three const methods,
use `Q_PLUGIN_METADATA` / `Q_INTERFACES`, and declare compatible metadata. The
working reference is `plugins/rectangle/`; compile a MODULE target with matching
headers/toolchain and deploy its DLL beside the app in `shape-plugins/`.
No provider function may mutate a live document, scene, history or file.
Reference: [Qt application plugins](https://doc.qt.io/qt-6/plugins-howto.html),
[QPluginLoader](https://doc.qt.io/qt-6/qpluginloader.html).