@jini-ai/provider-plugins
The source workspace and published distribution of every Jini provider runtime. @jini-ai/provider-plugins/charts-recharts/*
and @jini-ai/provider-plugins/charts-echarts/* reach plugins/<id>/<version>/ (resolve
@jini-ai/provider-plugins/package.json for the version); each folder installs on its own. All other providers use the same subpath layout (see docs/plugin-packages-migration.md). There are no
callable adapter exports: hosts install and load the artifacts. Vendor SDKs (Recharts, React, ECharts
and its zrender/tslib) are bundled into each artifact at build time and stay development dependencies,
never dependencies or peers of a core @jini-ai/* package.
| plugin id |
provider (contract / id) |
factory required input |
factory optional input |
fixture-provider |
fixture / fixture |
{ value } |
— (conformance fixture) |
observability-opentelemetry |
observability / opentelemetry |
{ serviceName, tracerName, endpoint?, tracesEndpoint?, username?, token?, headers? } — any OTLP/HTTP endpoint; token (+ username) becomes Authorization: Bearer (or Basic), extra headers ride as given |
{ exportEnabled?, spanProcessors?, metricReaders? } |
ai-trace-langfuse |
ai_trace / langfuse |
{ publicKey, secretKey, baseUrl?, environment?, release? } |
{ client? } (tests) |
analytics-posthog |
product_analytics / posthog |
{ apiKey, host } |
{ fetch?, flushAt? } (tests) |
observability-sentry |
observability / sentry |
{ dsn, environment?, tracesSampleRate? } (rate default 0) |
{ exportEnabled?, client?, transport? } (host-owned client is never closed) |
charts-recharts |
browser chart / plugin.recharts (bar, line, pie) |
— browser-only; the server entry registers nothing |
— |
charts-echarts |
browser chart / plugin.echarts (bar, line, area, pie, donut, scatter, stacked-bar) |
— browser-only; the server entry registers nothing |
— |
Observability factories deny outbound delivery unless the host passes exportEnabled: true in
factory options, independently of saved configuration and user consent. Hosts use diagnostics'
observabilityExportAllowed decision with their own runtime facts. Sentry uses its private client's
SDK enabled option and guards borrowed clients; denied instances advertise no native crashUpload.
OpenTelemetry retains local tracing and metric admission with no export processors/readers when
denied. Analytics and AI tracing keep their existing policies.
Observability factories return diagnostics' ObservabilityPort plus dispose; analytics-posthog
returns @jini-ai/analytics/product's ProductAnalyticsPort, which the host wraps in
withProductAnalyticsGuards (consent, opaque ids, PII rules) before any event reaches the vendor;
ai-trace-langfuse returns an @jini-ai/agent-runtime/ai-trace sink, which the host combines with
createFanOutAiTraceSink and hands to the daemon's withAiTracing.
Cookie consent: the PostHog port's consentAdapter({ path }) returns { adapter, http }. Mount http
at path (same origin) and list adapter (a lazy consent-adapter entry for @jini-ai/cookie-consent)
in the page's consent config. The browser imports consent-adapter.mjs only on an analytics grant; it
loads the pinned posthog-js file (copied byte for byte; the build checks its SHA-256) with SRI, so other
bytes never run. Events go through the same-origin collector with ip=0. Sentry and OpenTelemetry are
server-only and set nothing in the visitor's browser, so they have no consent adapter.
Licenses: each artifact carries licenses/<package>/ for every bundled package. A package that
ships no license file takes a bundled sibling's text from the same repository and declared license,
or a reviewed upstream copy under license-supplements/<repository>/ (with a SOURCE note); the
build fails otherwise. Two configured observability
providers fan out through diagnostics' existing fan-out. Inputs come from the host's secure plugin
settings; never from manifests, browser assets or agent instructions.
pnpm --filter @jini-ai/provider-plugins build type-checks, then runs scripts/build.ts <id> . for
every provider id, producing
plugins/<id>/<version>/{jini.plugin.json,server/index.mjs,client/**,licenses/**}; building one id
leaves the others' folders in place. pnpm pack builds these assets through prepack. catalog.json
lists the shipped artifacts; its versions follow the package version, set by hand at release like
the manifest versions (the full catalog is @jini-ai/plugin-catalog/catalog). esbuild bundles runtime dependencies, permits only Node builtins as
external imports, retains bundled packages' license/notice files, and the existing installer
integrity helper hashes every packaged file except the manifest. SDK packages are build-time
(dev) dependencies of this distribution, never runtime dependencies of an installed artifact.
Hosts read the catalog, install selected plugin folders with previewSitePluginInstall /
installSitePlugin, and use the existing loadPlugin with explicit tier admission. Supply
providerContributions: { registry, isSelected }; selection must require installed, enabled,
and configured state. Recheck selection when settings change. Detach the plugin's contribution
snapshot on disable/quarantine. Only admitted snapshots can initialize factories through
createPluginProviderHost. Await initialization before admitting application work, and dispose
that host on shutdown or failed boot. Unselected contracts keep the domain's existing noop.
Factories accept explicit configuration, credentials and borrowed effect ports as required object
inputs, plus an optional object, and return { port, dispose }. Setup only registers factories.
The injected domain validator checks returned ports through core's createProviderRegistry.
A lease's isCurrent({}) guards new work after replacement. Retirement releases resources with
idempotent, bounded, independent teardown; pending factories release their late results on arrival.
A teardown timeout bounds waiting and cannot forcibly interrupt arbitrary in-process code.
The fixture supports SDK 0.1.x and 1.x, and declares one publisher identity for two example
host identity namespaces. Tier-3 plugins execute trusted code in process; capability gating governs
supplied SDK handles and does not sandbox arbitrary Node code. No secrets belong in manifests.