mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 08:03:39 +00:00
Major changes: - Migrate browser-extension to use web-ui package (85% code reduction) - Add JailJS content script with ES6+ transform support - Expose DOM constructors (Event, KeyboardEvent, etc.) to JailJS - Support top-level await by wrapping code in async IIFE - Add returnFile() support in JailJS execution - Refactor KeyStore into pluggable storage-adapter pattern - Make ChatPanel configurable with sandboxUrlProvider and additionalTools - Update jailjs to 0.1.1 Files deleted (33 duplicate files): - All browser-extension components, dialogs, state, tools, utils - Now using web-ui versions via @mariozechner/pi-web-ui Files added: - packages/browser-extension/src/content.ts (JailJS content script) - packages/web-ui/src/state/storage-adapter.ts - packages/web-ui/src/state/key-store.ts Browser extension now has only 5 source files (down from 38).
38 lines
1.7 KiB
JSON
38 lines
1.7 KiB
JSON
{
|
|
"name": "pi-monorepo",
|
|
"private": true,
|
|
"type": "module",
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"clean": "npm run clean --workspaces",
|
|
"build": "npm run build -w @mariozechner/pi-tui && npm run build -w @mariozechner/pi-ai && npm run build -w @mariozechner/pi-web-ui && npm run build -w @mariozechner/pi-reader-extension && npm run build -w @mariozechner/pi-agent && npm run build -w @mariozechner/pi",
|
|
"dev": "concurrently --names \"ai,web-ui,browser-ext,tui\" --prefix-colors \"cyan,green,yellow,magenta\" \"npm run dev -w @mariozechner/pi-ai\" \"npm run dev -w @mariozechner/pi-web-ui\" \"npm run dev -w @mariozechner/pi-reader-extension\" \"npm run dev -w @mariozechner/pi-tui\"",
|
|
"check": "biome check --write . && npm run check --workspaces && tsc --noEmit",
|
|
"test": "npm run test --workspaces --if-present",
|
|
"version:patch": "npm version patch -ws --no-git-tag-version && node scripts/sync-versions.js",
|
|
"version:minor": "npm version minor -ws --no-git-tag-version && node scripts/sync-versions.js",
|
|
"version:major": "npm version major -ws --no-git-tag-version && node scripts/sync-versions.js",
|
|
"version:set": "npm version -ws",
|
|
"prepublish": "npm run clean && npm run build && npm run check",
|
|
"publish": "npm run prepublish && npm publish -ws --access public",
|
|
"publish:dry": "npm run prepublish && npm publish -ws --access public --dry-run",
|
|
"prepare": "husky"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.1.4",
|
|
"@types/node": "^22.10.5",
|
|
"concurrently": "^9.2.1",
|
|
"husky": "^9.1.7",
|
|
"tsx": "^4.20.3",
|
|
"typescript": "^5.9.2"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.0.0"
|
|
},
|
|
"version": "0.0.1",
|
|
"dependencies": {
|
|
"@mariozechner/jailjs": "^0.1.1"
|
|
}
|
|
}
|