diff --git a/packages/plugins/examples/plugin-mock-object-provider-example/package.json b/packages/plugins/examples/plugin-mock-object-provider-example/package.json deleted file mode 100644 index 5a16968c881..00000000000 --- a/packages/plugins/examples/plugin-mock-object-provider-example/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "@paperclipai/plugin-mock-object-provider-example", - "version": "0.1.0", - "description": "Reference plugin that contributes a provider-neutral external object reference provider", - "type": "module", - "private": true, - "exports": { - ".": "./src/index.ts" - }, - "paperclipPlugin": { - "manifest": "./dist/manifest.js", - "worker": "./dist/worker.js" - }, - "scripts": { - "prebuild": "node ../../../../scripts/ensure-plugin-build-deps.mjs", - "build": "tsc", - "clean": "rm -rf dist", - "typecheck": "pnpm --filter @paperclipai/plugin-sdk build && tsc --noEmit" - }, - "dependencies": { - "@paperclipai/plugin-sdk": "workspace:*" - }, - "devDependencies": { - "@types/node": "^24.6.0", - "typescript": "^5.7.3" - } -} diff --git a/packages/plugins/examples/plugin-mock-object-provider-example/src/index.ts b/packages/plugins/examples/plugin-mock-object-provider-example/src/index.ts deleted file mode 100644 index b569179db25..00000000000 --- a/packages/plugins/examples/plugin-mock-object-provider-example/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as manifest } from "./manifest.js"; -export { default as plugin } from "./worker.js"; diff --git a/packages/plugins/examples/plugin-mock-object-provider-example/src/manifest.ts b/packages/plugins/examples/plugin-mock-object-provider-example/src/manifest.ts deleted file mode 100644 index 3a7950fe58c..00000000000 --- a/packages/plugins/examples/plugin-mock-object-provider-example/src/manifest.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type { PaperclipPluginManifestV1 } from "@paperclipai/plugin-sdk"; - -const manifest: PaperclipPluginManifestV1 = { - id: "paperclipai.mock-object-provider", - apiVersion: 1, - version: "0.1.0", - displayName: "Mock Object Provider", - description: "Reference external object provider for non-GitHub URL detection and status resolution.", - author: "Paperclip", - categories: ["connector"], - capabilities: [ - "external.objects.detect", - "external.objects.read", - ], - entrypoints: { - worker: "./dist/worker.js", - }, - objectReferences: [ - { - providerKey: "mocktracker", - displayName: "Mock Tracker", - objectTypes: ["ticket"], - urlPatterns: ["https://mock.example/tickets/:id"], - refreshPolicy: { - defaultTtlSeconds: 300, - staleAfterSeconds: 1800, - }, - }, - ], -}; - -export default manifest; diff --git a/packages/plugins/examples/plugin-mock-object-provider-example/src/worker.ts b/packages/plugins/examples/plugin-mock-object-provider-example/src/worker.ts deleted file mode 100644 index 2c639757e9f..00000000000 --- a/packages/plugins/examples/plugin-mock-object-provider-example/src/worker.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { definePlugin, runWorker } from "@paperclipai/plugin-sdk"; - -const MOCK_TICKET_RE = /^https:\/\/mock\.example\/tickets\/([a-z0-9_-]+)$/i; - -const plugin = definePlugin({ - async setup(ctx) { - ctx.logger.info("Mock object provider ready"); - }, - - async onDetectExternalObjects(params) { - return { - detections: params.urls.flatMap((url) => { - const match = MOCK_TICKET_RE.exec(url.sanitizedCanonicalUrl); - if (!match?.[1]) return []; - const id = match[1].toUpperCase(); - return [{ - urlIdentityHash: url.canonicalIdentityHash, - providerKey: "mocktracker", - objectType: "ticket", - externalId: `MOCK-${id}`, - displayKey: "Mock Ticket", - iconKey: "circle-dot", - displayTitle: `Mock ticket ${id}`, - confidence: "exact" as const, - }]; - }), - }; - }, - - async onResolveExternalObject(params) { - return { - ok: true as const, - snapshot: { - displayTitle: `Resolved ${params.externalId}`, - displayKey: "Mock Ticket", - iconKey: "circle-dot", - statusKey: "ready", - statusLabel: "Ready", - statusIconKey: "check-circle", - statusCategory: "succeeded" as const, - statusTone: "success" as const, - isTerminal: false, - data: { - provider: "mocktracker", - externalId: params.externalId, - }, - ttlSeconds: 300, - }, - }; - }, -}); - -export default plugin; -runWorker(plugin, import.meta.url); diff --git a/packages/plugins/examples/plugin-mock-object-provider-example/tsconfig.json b/packages/plugins/examples/plugin-mock-object-provider-example/tsconfig.json deleted file mode 100644 index 2ba21645416..00000000000 --- a/packages/plugins/examples/plugin-mock-object-provider-example/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../../../tsconfig.json", - "compilerOptions": { - "outDir": "dist", - "rootDir": "src", - "lib": ["ES2023", "DOM"] - }, - "include": ["src"] -} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 6ce6cd0f30a..5bc8038cf95 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -9,9 +9,6 @@ packages: # Keep this smoke fixture installable as a local plugin example without # forcing PRs to commit pnpm-lock.yaml for a new workspace importer. - "!packages/plugins/examples/plugin-orchestration-smoke-example" - # Keep this object-provider fixture installable as a local plugin example - # without forcing PRs to commit pnpm-lock.yaml for a new workspace importer. - - "!packages/plugins/examples/plugin-mock-object-provider-example" - server - ui - cli