| 1 | # LibreOffice Plugin DOX |
| 2 | |
| 3 | ## Purpose |
| 4 | |
| 5 | - Own ODF-first LibreOffice office artifact workflows for Writer, Calc, and Impress files. |
| 6 | |
| 7 | ## Ownership |
| 8 | |
| 9 | - `tools/office_artifact.py` owns the agent-facing office artifact tool. |
| 10 | - `helpers/` owns artifact editing, canvas context, document storage, LibreOffice runtime, and presentation writing. |
| 11 | - `api/` owns office session and WebSocket handlers. |
| 12 | - `hooks.py`, `prompts/`, `skills/`, `extensions/`, and `webui/` own lifecycle behavior, prompts, skill guidance, hooks, and office panel UI. |
| 13 | |
| 14 | ## Local Contracts |
| 15 | |
| 16 | - Preserve document storage integrity and live session synchronization. |
| 17 | - Keep LibreOffice operations bounded to intended workspaces and artifact paths. |
| 18 | - Do not expose document contents or temporary files beyond intended UI/tool flows. |
| 19 | - Editor text Save As storage helpers must preserve exact `.md` or `.txt` text and create a new registered document without mutating or deleting the source document. |
| 20 | |
| 21 | ## Work Guidance |
| 22 | |
| 23 | - Coordinate tool, session, and panel changes so canvas state reflects document state. |
| 24 | |
| 25 | ## Verification |
| 26 | |
| 27 | - Smoke-test creating, editing, previewing, and reconnecting office artifact sessions after changes. |
| 28 | |
| 29 | ## Child DOX Index |
| 30 | |
| 31 | No child DOX files. |