@paperclipai/plugin-sdk 2026.1029.0-canary.22 → 2026.1029.0-canary.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -259,17 +259,21 @@ A card or section rendered on the main dashboard. Use this for at-a-glance metri
259
259
 
260
260
  An additional tab on a project, issue, agent, goal, or run detail page. Rendered when the user navigates to that entity's detail view. Receives `PluginDetailTabProps` with `context.companyId` set to the active company and `context.entityId` / `context.entityType` guaranteed to be non-null, so you can immediately scope data fetches to the relevant entity. Specify which entity types the tab applies to via the `entityTypes` array in the manifest slot declaration. Requires the `ui.detailTab.register` capability.
261
261
 
262
- Agent detail tabs can also appear in task side panels. Add
263
- `taskSidePanel: { availabilityPath: "/agents/:entityId/view/availability" }` to the
264
- slot and declare that exact path as a board-only GET API route with
265
- `companyResolution: { from: "agent", param: "entityId" }`. The route returns
266
- `{ available: true }` only while its view is in use. The host replaces `:entityId`
267
- with the task's running agent ID, polls availability and mounts the same component
268
- with agent context. The plugin owns availability, labels, content and controls.
269
- No private plugin identifier or provider protocol belongs in Core. Unavailable
270
- views, access failures, inactive runs and missing plugins contribute no task tab.
271
- Closing a tab preserves dismissal during polling; available panels remain in the
272
- launcher. Only tab identity is persisted, never availability responses or secrets.
262
+ Agent detail tabs can also appear in task side panels. Declare a mapping to a
263
+ runtime activity independently of the plugin and slot identifiers:
264
+
265
+ ```ts
266
+ taskSidePanel: {
267
+ availabilityPath: "/agents/:entityId/view/availability",
268
+ activation: { namespace: "example.runtime", activityKey: "desktop.used" },
269
+ }
270
+ ```
271
+
272
+ Declare the exact availability path as a board-only GET API route with
273
+ `companyResolution: { from: "agent", param: "entityId" }`. Core maps the declared
274
+ namespace/activity pair to installed agent detail tabs. Runner knows no plugin
275
+ or UI slot. Declarations without `activation` remain valid for agent detail pages
276
+ and contribute no task panel. Activity is a reported fact, not an authorization grant.
273
277
 
274
278
  #### Runtime activity recording
275
279
 
@@ -309,6 +313,18 @@ Identifiers are 1–160 Unicode code points, excluding C0 controls and DEL.
309
313
  Core maps declared activity identifiers to its consumers and applies their
310
314
  existing discovery, authorization and availability checks.
311
315
 
316
+ Core reads durable activity on mount/reconnect and uses the existing live stream.
317
+ The authorized run binding identifies company, task and agent; caller payloads
318
+ cannot override them. Core replaces `:entityId` with the running agent ID, adds
319
+ `runId` and `issueId`, and requires `{ available: true }`. History/live hints merge
320
+ without losing earlier activity. Only matching current-task activity contributes.
321
+ Readiness and transient discovery failures get at most three attempts; authorization
322
+ failures are not retried. No periodic readiness polling is added. Dismissal stays
323
+ scoped to the current run. Only tab identity is stored in browser state; activity
324
+ remains in the authorized run log. Missing/disabled plugins, failed history reads,
325
+ unavailable views and access failures contribute no task tab. The plugin owns
326
+ labels, content and controls. No private integration identifier belongs in Core.
327
+
312
328
  #### `taskDetailView`
313
329
 
314
330
  A specialized slot rendered in the context of a task or issue detail view. Similar to `detailTab` but designed for inline content within the task detail layout rather than a separate tab. Receives `context.companyId`, `context.entityId`, and `context.entityType` like `detailTab`. Requires the `ui.detailTab.register` capability.
@@ -1 +1 @@
1
- {"sources":"4708e138aa5dc78cf27d836ed879f4d3929cbeb3103e35257148e6891c2f60b9","outputs":"9601f6eabc74bddc7a770b203f12a6ad363d150c3ba7d138d7671a0ccb988b9d"}
1
+ {"sources":"b4f24b902ee44ebcb50b9592a516014047d69b35f10daefdba33d84754681cc0","outputs":"9601f6eabc74bddc7a770b203f12a6ad363d150c3ba7d138d7671a0ccb988b9d"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paperclipai/plugin-sdk",
3
- "version": "2026.1029.0-canary.22",
3
+ "version": "2026.1029.0-canary.24",
4
4
  "description": "Stable public API for Paperclip plugins — worker-side context and UI bridge hooks",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/paperclipai/paperclip",
@@ -61,7 +61,7 @@
61
61
  "dist"
62
62
  ],
63
63
  "dependencies": {
64
- "@paperclipai/shared": "2026.1029.0-canary.22",
64
+ "@paperclipai/shared": "2026.1029.0-canary.24",
65
65
  "zod": "^4.4.3"
66
66
  },
67
67
  "devDependencies": {