@capybara-hq/plugin-sdk 0.1.0-rc.87 → 0.1.0-rc.89
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 +2 -0
- package/agent-docs/extensions.md +3 -2
- package/api/plugin-sdk.api.md +5921 -0
- package/dist/hooks.d.ts +9 -1
- package/dist/inbox.d.ts +13 -5
- package/dist/inbox.js +30 -9
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/theme-tokens.generated.d.ts +8 -4
- package/dist/theme-tokens.generated.js +14 -3
- package/dist/theme.d.ts +8 -0
- package/dist/theme.js +17 -2
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -18,6 +18,8 @@ npm install @capybara-hq/plugin-sdk
|
|
|
18
18
|
in capybara-hq/plugins and its reference plugin [plugins/example-counter](https://github.com/capybara-hq/plugins/tree/main/plugins/example-counter).
|
|
19
19
|
- Writing a plugin (manifest, skills, connector templates, dependencies, marketplaces):
|
|
20
20
|
[.agents/skills/writing-plugins](https://github.com/capybara-hq/core/tree/main/.agents/skills/writing-plugins).
|
|
21
|
+
- The public API report: `api/plugin-sdk.api.md` in this package (generated by API Extractor),
|
|
22
|
+
every exported name and its exact type in one file.
|
|
21
23
|
- The repository: [capybara-hq/core](https://github.com/capybara-hq/core).
|
|
22
24
|
|
|
23
25
|
Capybara is on 0.x: the SDK may change in breaking ways between minor versions, and each release's
|
package/agent-docs/extensions.md
CHANGED
|
@@ -122,8 +122,9 @@ ctx.setup.check("bot-token", {
|
|
|
122
122
|
- The `run.lifecycle` hook (`permissions.hooks`) tells the extension each phase of a run of a
|
|
123
123
|
conversation about its subject: `started`, `waiting` (on a person), `resumed` (that wait
|
|
124
124
|
cleared), `finished`, `failed` or `aborted`; and that directed work was not run
|
|
125
|
-
(`offer_declined`, `reason` `off`, `declined`, `paused`, `expired` or `undelivered
|
|
126
|
-
|
|
125
|
+
(`offer_declined`, `reason` `off`, `declined`, `paused`, `expired` or `undelivered`, with the
|
|
126
|
+
event's `eventId` and your `dedupeKey`, so you can tell a stale decline from one for your latest
|
|
127
|
+
event). It is delivered at least once: make the handler idempotent and treat it as a hint. For events about
|
|
127
128
|
your subjects see `trigger-source`.
|
|
128
129
|
|
|
129
130
|
## Extension points
|