@capybara-hq/plugin-sdk 0.1.0-rc.87 → 0.1.0-rc.88

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/dist/hooks.d.ts CHANGED
@@ -322,7 +322,9 @@ export interface OrgDeletedPayload {
322
322
  * - `offer_declined`: directed work was not run (`reason`): the person's rule is `off`, the person
323
323
  * `declined` the offer, their acceptance automation is `paused`, the offer `expired` unanswered
324
324
  * (seven days), or the event stayed `undelivered` (the kernel gave up routing it). No run and no
325
- * conversation: `accountId` and `agentId` are the event's audience.
325
+ * conversation: `accountId` and `agentId` are the event's audience; `eventId` and `dedupeKey`
326
+ * name the event the decline is for, so a plugin can tell a stale decline (an older event of
327
+ * the subject) from one for its latest.
326
328
  */
327
329
  export interface RunLifecyclePayload {
328
330
  orgId: string;
@@ -345,6 +347,12 @@ export interface RunLifecyclePayload {
345
347
  waitingOn?: "approval" | "input";
346
348
  /** Set for `offer_declined`. */
347
349
  reason?: RunLifecycleDeclineReason;
350
+ /** Set for `offer_declined`: the kernel's id of the directed event that was not run. */
351
+ eventId?: string;
352
+ /**
353
+ * Set for `offer_declined`: the `dedupeKey` the plugin gave that event in `ctx.triggers.emit`.
354
+ */
355
+ dedupeKey?: string;
348
356
  }
349
357
  /** Why directed work was not run (`run.lifecycle` `offer_declined`). */
350
358
  export type RunLifecycleDeclineReason = "declined" | "off" | "paused" | "expired" | "undelivered";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const SDK_VERSION = "0.1.0-rc.87";
1
+ export declare const SDK_VERSION = "0.1.0-rc.88";
2
2
  export * from "./agent-template.js";
3
3
  export * from "./agents-ctx.js";
4
4
  export * from "./avatar-presets.js";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export const SDK_VERSION = "0.1.0-rc.87";
1
+ export const SDK_VERSION = "0.1.0-rc.88";
2
2
  export * from "./agent-template.js";
3
3
  export * from "./agents-ctx.js";
4
4
  export * from "./avatar-presets.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capybara-hq/plugin-sdk",
3
- "version": "0.1.0-rc.87",
3
+ "version": "0.1.0-rc.88",
4
4
  "description": "Capybara plugin SDK: the types and pure functions plugins are written against",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -28,6 +28,7 @@
28
28
  },
29
29
  "files": [
30
30
  "dist",
31
+ "api",
31
32
  "schemas",
32
33
  "agent-docs",
33
34
  "README.md",