@paperclipai/plugin-sdk 2026.1029.0-canary.16 → 2026.1029.0-canary.18
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 +38 -0
- package/dist/.paperclip-build-complete +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -271,6 +271,44 @@ views, access failures, inactive runs and missing plugins contribute no task tab
|
|
|
271
271
|
Closing a tab preserves dismissal during polling; available panels remain in the
|
|
272
272
|
launcher. Only tab identity is persisted, never availability responses or secrets.
|
|
273
273
|
|
|
274
|
+
#### Runtime activity recording
|
|
275
|
+
|
|
276
|
+
A runtime client captures Runner's opaque activity context before an eligible
|
|
277
|
+
operation, then sends a structured notification after successful use:
|
|
278
|
+
|
|
279
|
+
```sh
|
|
280
|
+
context=$("$PAPERCLIP_RUNTIME_NOTIFICATION_HELPER" notification-context)
|
|
281
|
+
# Perform the operation; notify only on success.
|
|
282
|
+
"$PAPERCLIP_RUNTIME_NOTIFICATION_HELPER" record-activity "$context" example.runtime desktop.used
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
Runner supplies the matching absolute executable as
|
|
286
|
+
`PAPERCLIP_RUNTIME_NOTIFICATION_HELPER` and an atomic endpoint descriptor as
|
|
287
|
+
`PAPERCLIP_RUNTIME_NOTIFICATION_CONTEXT`. Configured task environment cannot
|
|
288
|
+
override them. Provider launch boundaries preserve both values. Codex receives
|
|
289
|
+
read access to the helper, descriptor and publisher lock, plus write access to
|
|
290
|
+
one named pipe. The pipe and lock live in a private temporary directory, outside
|
|
291
|
+
durable Runner state. The enclosing directories remain protected.
|
|
292
|
+
|
|
293
|
+
The helper captures context locally. After success, it publishes newline-delimited
|
|
294
|
+
JSON through a nonblocking pipe. A leading newline terminates an interrupted
|
|
295
|
+
previous write. A read-only file lock serializes publishers with a 500 ms deadline.
|
|
296
|
+
Runner reuses its bounded line reader: 2 KiB per record, 128 queued records and
|
|
297
|
+
16 records per control-loop iteration. Idle transport blocks; cleanup removes
|
|
298
|
+
only its pipe, lock and empty private directory.
|
|
299
|
+
|
|
300
|
+
A successful helper exit means publication to the pipe. Runner validates context
|
|
301
|
+
against the active run, deduplicates up to 128 activity pairs per authority, and
|
|
302
|
+
persists `runtime.activity.recorded` through its authenticated event stream.
|
|
303
|
+
Warm attachment and process recovery rotate context. The helper accepts no run
|
|
304
|
+
identity. Clients treat this hint as best effort, including with older runtimes.
|
|
305
|
+
Notify only after successful use; exclude help, schema discovery, status probes
|
|
306
|
+
and failures. No agent instruction is required.
|
|
307
|
+
|
|
308
|
+
Identifiers are 1–160 Unicode code points, excluding C0 controls and DEL.
|
|
309
|
+
Core maps declared activity identifiers to its consumers and applies their
|
|
310
|
+
existing discovery, authorization and availability checks.
|
|
311
|
+
|
|
274
312
|
#### `taskDetailView`
|
|
275
313
|
|
|
276
314
|
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":"
|
|
1
|
+
{"sources":"851abd1076ffa8539e9a74cbf53b3e7c9af13fec6d722b4453b525b756198f82","outputs":"2dbee883799e3cef21744a9f45ec5ae1fa3b6bec6d1257ca240fe5612a12fe71"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paperclipai/plugin-sdk",
|
|
3
|
-
"version": "2026.1029.0-canary.
|
|
3
|
+
"version": "2026.1029.0-canary.18",
|
|
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.
|
|
64
|
+
"@paperclipai/shared": "2026.1029.0-canary.18",
|
|
65
65
|
"zod": "^4.4.3"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|