@volter/twin-replicate
v0.1.35
Published
Local Replicate twin for the model-inference prediction lifecycle (predictions, models/versions, webhooks, account/hardware) built on @volter/world-core.
Readme
@volter/twin-replicate
Connector pull:
syncReplicateFromRealreads the first page of each vendor list and hands the resources to the kernel'sobserveResources, which appends only what changed to the root's log. Check the generated index for protocol standing and use the shared model for current state semantics.
Local Replicate twin for the model-inference prediction lifecycle: predictions
(create → poll → cancel), models + versions, collections, account/hardware, and
Standard-Webhooks-signed webhook delivery — built on the shared @volter/world-core kernel.
API-first vendor (no product UI to mirror — the real Replicate surface agents integrate with
is the REST API / replicate SDK, not a dashboard).
bun packages/twin/replicate/src/cli.tsCoverage
This is a v1 slice of the Replicate API, not the full surface. Modeled done: the
predictions lifecycle (create/get/list/cancel, deterministic status progression, Prefer:
wait synchronous mode, webhook field round-trip), models + versions (CRUD/list/get,
official-model predictions), collections (static catalog), account, hardware, and
Standard-Webhooks-signed webhook secret retrieval + signature verification.
Left as todo (honest gaps, not yet modeled): trainings, deployments, files (uploads),
prediction output streaming (SSE), model search/readme/examples, version deletion, real
cursor pagination fidelity, prediction failure states / incremental logs / data-removed
lifecycle, webhook delivery + event filtering, the full RFC-7807 problem+json error
envelope, auth 401 parity, rate limiting (429), org-vs-user account distinction, serving
deterministic media bytes at the output urls a prediction returns, and two connector pull gaps
(trainings, push-to-real).
See src/replicate-capabilities.ts for the full manifest (the real vendor surface is the
denominator — coverage is honest and partial until the twin reaches it).
