Make mini-lit a peer dependency in pi-web-ui

- Move mini-lit from dependencies to peerDependencies
- Keep in devDependencies for development
- Prevents bundlers from including mini-lit when consuming pi-web-ui
- Consumer (sitegeist) provides mini-lit, esbuild bundles it once
- Fixes duplicate mini-lit bundling issue permanently
This commit is contained in:
Mario Zechner 2025-10-06 18:59:08 +02:00
parent 6126380879
commit 33145c5f24
4 changed files with 32 additions and 25 deletions

View file

@ -17,7 +17,6 @@
"check": "npm run typecheck"
},
"dependencies": {
"@mariozechner/mini-lit": "^0.1.8",
"@mariozechner/pi-ai": "^0.5.43",
"docx-preview": "^0.3.7",
"jszip": "^3.10.1",
@ -26,7 +25,11 @@
"pdfjs-dist": "^5.4.149",
"xlsx": "^0.18.5"
},
"peerDependencies": {
"@mariozechner/mini-lit": "^0.1.8"
},
"devDependencies": {
"@mariozechner/mini-lit": "^0.1.8",
"@tailwindcss/cli": "^4.0.0-beta.14",
"concurrently": "^9.2.1",
"typescript": "^5.7.3"

View file

@ -141,6 +141,7 @@ export class ChatPanel extends LitElement {
this.artifactCount = this.artifactsPanel.artifacts.size;
this.requestUpdate();
console.log("ChatPanel: Agent set with tools:", tools);
}
render() {