From 7d26e631498cf980b7720f484b29b871f4f9fe25 Mon Sep 17 00:00:00 2001 From: Dotta Date: Mon, 18 May 2026 08:47:10 -0500 Subject: [PATCH] Bootstrap workspace diff plugin package Co-Authored-By: Paperclip --- .../plugin-workspace-diff/package.json | 36 +++++++++++++++++-- scripts/bootstrap-npm-package.test.mjs | 6 ++++ scripts/release-package-manifest.json | 5 +++ 3 files changed, 45 insertions(+), 2 deletions(-) diff --git a/packages/plugins/plugin-workspace-diff/package.json b/packages/plugins/plugin-workspace-diff/package.json index 8bdc8bd7a1d..33e9a588683 100644 --- a/packages/plugins/plugin-workspace-diff/package.json +++ b/packages/plugins/plugin-workspace-diff/package.json @@ -2,22 +2,54 @@ "name": "@paperclipai/plugin-workspace-diff", "version": "0.1.0", "description": "First-party execution workspace Changes tab powered by plugin-local workspace metadata", + "license": "MIT", + "homepage": "https://github.com/paperclipai/paperclip", + "bugs": { + "url": "https://github.com/paperclipai/paperclip/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/paperclipai/paperclip", + "directory": "packages/plugins/plugin-workspace-diff" + }, "type": "module", - "private": true, "exports": { ".": "./src/index.ts" }, + "publishConfig": { + "access": "public", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js" + } + }, + "main": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "files": [ + "dist" + ], "paperclipPlugin": { "manifest": "./dist/manifest.js", "worker": "./dist/worker.js", "ui": "./dist/ui/" }, + "keywords": [ + "paperclip", + "plugin", + "workspace", + "diff" + ], "scripts": { + "postinstall": "node ../../../scripts/link-plugin-dev-sdk.mjs", "prebuild": "pnpm --filter @paperclipai/plugin-sdk ensure-build-deps", "build": "tsc && node ./scripts/build-ui.mjs", "clean": "rm -rf dist", "typecheck": "pnpm --filter @paperclipai/plugin-sdk ensure-build-deps && tsc --noEmit && tsc --noEmit -p tsconfig.test.json", - "test": "vitest run" + "test": "vitest run", + "prepack": "rm -f package.dev.json && cp package.json package.dev.json && node ../../../scripts/generate-plugin-package-json.mjs", + "postpack": "if [ -f package.dev.json ]; then mv package.dev.json package.json; fi" }, "dependencies": { "@paperclipai/plugin-sdk": "workspace:*", diff --git a/scripts/bootstrap-npm-package.test.mjs b/scripts/bootstrap-npm-package.test.mjs index 48deb739583..32270f6be4e 100644 --- a/scripts/bootstrap-npm-package.test.mjs +++ b/scripts/bootstrap-npm-package.test.mjs @@ -52,3 +52,9 @@ test("resolveTargetPackage matches by package name or dir", () => { assert.equal(resolveTargetPackage("@paperclipai/a", packages).dir, "packages/a"); assert.equal(resolveTargetPackage("./packages/b", packages).name, "@paperclipai/b"); }); + +test("resolveTargetPackage includes the workspace diff plugin bootstrap package", () => { + const pkg = resolveTargetPackage("@paperclipai/plugin-workspace-diff"); + + assert.equal(pkg.dir, "packages/plugins/plugin-workspace-diff"); +}); diff --git a/scripts/release-package-manifest.json b/scripts/release-package-manifest.json index 954c258e71e..7cdb1f23b61 100644 --- a/scripts/release-package-manifest.json +++ b/scripts/release-package-manifest.json @@ -64,6 +64,11 @@ "name": "@paperclipai/plugin-sdk", "publishFromCi": true }, + { + "dir": "packages/plugins/plugin-workspace-diff", + "name": "@paperclipai/plugin-workspace-diff", + "publishFromCi": false + }, { "dir": "server", "name": "@paperclipai/server",