Pi4Word is a Microsoft Word task pane add-in that embeds a Pi Agent-powered assistant using @mariozechner/pi-agent-core.
For architecture, runtime behavior, tools, storage, and streaming details, see SPECS.md.
| File | Purpose | Task pane URL |
|---|---|---|
manifest.production.xml |
Production usage in Word | https://damianofalcioni.github.io/pi-for-word/public/index.html |
manifest.xml |
Local development and Word sideloading | https://localhost:3000/public/index.html |
https://localhost:3000 for local developmentUse manifest.production.xml to load the production add-in in Word. This manifest points Word to the public GitHub Pages build at https://damianofalcioni.github.io/pi-for-word/public/.
manifest.production.xml.After the add-in is loaded, use Open Pi4Word from the Word ribbon.
npx -y office-addin-debugging start manifest.production.xml desktop --app wordPi4Word is available under Home > Add-ins > Developer Add-ins.
C:\OfficeAddinCatalog.manifest.production.xml into that folder.\\YOUR-PC\OfficeAddinCatalog. Use this network path in Word, not the local C:\... path.After the add-in is loaded, use Open Pi4Word from the Word ribbon.
npm install
npm run build
npm run cert (windows only)
npm run word
npm run word starts the HTTPS dev server and sideloads manifest.xml into Word.
npm run build
The build runs tests, linting, and scripts/esbuild.mjs. Output is written to public/, including:
public/index.htmlpublic/index.min.jspublic/index.min.csspublic/assets/ and public/pdfjs-dist/| Command | Description |
|---|---|
npm run cert |
Creates local HTTPS certificate material on Windows. |
npm run serve |
Serves the repository over HTTPS on port 3000. |
npm run word |
Starts Word sideloading with manifest.xml. |
npm run test |
Runs Node tests. |
npm run eslint |
Runs ESLint. |
npm run esbuild |
Bundles the task pane into public/. |
npm run build |
Runs tests, linting, and bundling. |
MIT