Skip to main content

plugin

What a Resonate transport plugin is, and the approach every plugin takes — the entry point to plugin-prepare, plugin-specify, plugin-review and plugin-implement.

소스 정보

저장소
resonatehq/resonate-plugins
최근 소스 활동
2026년 8월 30일 07:24
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
plugin
description
What a Resonate transport plugin is, and the approach every plugin takes — the entry point to plugin-prepare, plugin-specify, plugin-review and plugin-implement.
# plugin ## The goal A plugin exposes a provider's API as durable promises, so that any Resonate SDK can call it as if it were a locally defined function. One integration, every language, no client library. Where an action runs long, the promise carries await semantics on top for free. That is the icing. It is not the qualification. ## The approach A provider that cannot hold an HTTP request open splits one action in two: submit, then poll. A durable promise can hold. So the plugin collapses the split — the default operation submits *and* waits, and resolves with the result. Support the resource's whole lifecycle. Half an API is a plugin a caller abandons the moment they need the other half. ## The algebra Classify every operation by what the provider makes a caller do. Two values, and they are the whole vocabulary at this level: | algebra | | Monitoring | |---|---|---| | `call` | one request; its answer is the outcome | `request_response` | | `call + poll` | submit, then re-read until a terminal state | `request_poll` | How an operation *begins* safely — a plain read, an idempotency key, or a look-before-you-create — is a finer question, answered against the provider's documentation once the surface is settled. That is the specification's Invocation rung, not this. ## Bannerbear, worked The provider: `POST /v1/images` → `202` with a pending record; `GET /v1/images/{uid}` → poll until `completed` or `failed`. | operation | algebra | resolves with | |---|---|---| | `image.create` | `call + poll` | the finished image | | `image.submit` | `call` | the handle — accepted, not finished | | `image.get` | `call` | the record | Bannerbear hands you two calls because HTTP made it. A caller wants one, so `image.create` is both of them and is the default. `image.submit` exists only because a render is slow enough that someone might not want to wait; `submit` is the reserved verb for that everywhere, and never appears without its waiting counterpart. ## The pipeline | skill | produces | |---|---| | [plugin-prepare](../plugin-prepare) | the design: motions, resources, the surface to support, the algebra → `spec/preparation.md` | | [plugin-specify](../plugin-specify) | the specification → `spec/specification.md` | | [plugin-review](../plugin-review) | §0 API Surface derived independently, then findings against the specification | | [plugin-implement](../plugin-implement) | the Rust crate → `src/` |
GitHub에서 보기