@jini-ai/provider-plugins 0.0.0-stage → 0.6.15-rc.1
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/CHANGELOG.md +23 -0
- package/LICENSE +201 -0
- package/README.md +58 -2
- package/catalog.json +32 -0
- package/package.json +61 -3
- package/plugins/ai-trace-langfuse/0.6.15-rc.1/jini.plugin.json +75 -0
- package/plugins/ai-trace-langfuse/0.6.15-rc.1/licenses/_jini-ai_provider-plugins/LICENSE +201 -0
- package/plugins/ai-trace-langfuse/0.6.15-rc.1/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
- package/plugins/ai-trace-langfuse/0.6.15-rc.1/licenses/langfuse/LICENSE +21 -0
- package/plugins/ai-trace-langfuse/0.6.15-rc.1/licenses/langfuse/LICENSE-SOURCE +1 -0
- package/plugins/ai-trace-langfuse/0.6.15-rc.1/licenses/langfuse/SOURCE +1 -0
- package/plugins/ai-trace-langfuse/0.6.15-rc.1/licenses/langfuse/package-license.json +5 -0
- package/plugins/ai-trace-langfuse/0.6.15-rc.1/licenses/langfuse-core/LICENSE +21 -0
- package/plugins/ai-trace-langfuse/0.6.15-rc.1/licenses/langfuse-core/LICENSE-SOURCE +1 -0
- package/plugins/ai-trace-langfuse/0.6.15-rc.1/licenses/langfuse-core/SOURCE +1 -0
- package/plugins/ai-trace-langfuse/0.6.15-rc.1/licenses/langfuse-core/package-license.json +5 -0
- package/plugins/ai-trace-langfuse/0.6.15-rc.1/licenses/mustache/LICENSE +11 -0
- package/plugins/ai-trace-langfuse/0.6.15-rc.1/licenses/mustache/package-license.json +5 -0
- package/plugins/ai-trace-langfuse/0.6.15-rc.1/server/index.mjs +4172 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/jini.plugin.json +111 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/licenses/_jini-ai_cookie-consent/LICENSE +201 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/licenses/_jini-ai_cookie-consent/LICENSE-SOURCE +1 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/licenses/_jini-ai_cookie-consent/package-license.json +5 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/licenses/_jini-ai_core/LICENSE +201 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/licenses/_jini-ai_core/package-license.json +5 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/licenses/_jini-ai_diagnostics/LICENSE +201 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/licenses/_jini-ai_diagnostics/package-license.json +5 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/licenses/_jini-ai_provider-plugins/LICENSE +201 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/licenses/_posthog_core/LICENSE +417 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/licenses/_posthog_core/package-license.json +5 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/licenses/js-tokens/LICENSE +21 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/licenses/js-tokens/package-license.json +5 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/licenses/posthog-js/LICENSE +245 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/licenses/posthog-js/package-license.json +5 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/licenses/posthog-node/LICENSE +417 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/licenses/posthog-node/package-license.json +5 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/server/consent-adapter.mjs +1 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/server/index.mjs +9551 -0
- package/plugins/analytics-posthog/0.6.15-rc.1/server/posthog-browser.js +2 -0
- package/plugins/fixture-provider/0.6.15-rc.1/jini.plugin.json +35 -0
- package/plugins/fixture-provider/0.6.15-rc.1/licenses/_jini-ai_provider-plugins/LICENSE +201 -0
- package/plugins/fixture-provider/0.6.15-rc.1/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
- package/plugins/fixture-provider/0.6.15-rc.1/server/index.mjs +26 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/jini.plugin.json +160 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_jini-ai_analytics/LICENSE +201 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_jini-ai_analytics/package-license.json +5 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_jini-ai_core/LICENSE +201 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_jini-ai_core/package-license.json +5 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_jini-ai_diagnostics/LICENSE +201 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_jini-ai_diagnostics/package-license.json +5 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_jini-ai_plugins/LICENSE +201 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_jini-ai_plugins/LICENSE-SOURCE +1 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_jini-ai_plugins/package-license.json +5 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_jini-ai_provider-plugins/LICENSE +201 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_api/LICENSE +201 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_api/package-license.json +5 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_api-logs/LICENSE +201 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_api-logs/package-license.json +5 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_context-async-hooks/LICENSE +201 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_context-async-hooks/package-license.json +5 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_core/LICENSE +201 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_core/package-license.json +5 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_otlp-exporter-base/LICENSE +201 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_otlp-exporter-base/package-license.json +5 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_otlp-transformer/LICENSE +201 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_otlp-transformer/package-license.json +5 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_resources/LICENSE +201 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_resources/package-license.json +5 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_sdk-metrics/LICENSE +201 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_sdk-metrics/package-license.json +5 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_sdk-trace/LICENSE +201 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_sdk-trace/package-license.json +5 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_sdk-trace-base/LICENSE +201 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_sdk-trace-base/package-license.json +5 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_sdk-trace-node/LICENSE +201 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_sdk-trace-node/package-license.json +5 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_semantic-conventions/LICENSE +201 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/_opentelemetry_semantic-conventions/package-license.json +5 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/js-tokens/LICENSE +21 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/js-tokens/package-license.json +5 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/semver/LICENSE +15 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/licenses/semver/package-license.json +5 -0
- package/plugins/observability-opentelemetry/0.6.15-rc.1/server/index.mjs +20101 -0
- package/plugins/observability-sentry/0.6.15-rc.1/jini.plugin.json +71 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_jini-ai_core/LICENSE +201 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_jini-ai_core/package-license.json +5 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_jini-ai_diagnostics/LICENSE +201 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_jini-ai_diagnostics/package-license.json +5 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_jini-ai_provider-plugins/LICENSE +201 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_opentelemetry_api/LICENSE +201 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_opentelemetry_api/package-license.json +5 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_sentry_conventions/LICENSE +21 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_sentry_conventions/package-license.json +5 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_sentry_core/LICENSE +21 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_sentry_core/package-license.json +5 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_sentry_node/LICENSE +21 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_sentry_node/package-license.json +5 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_sentry_opentelemetry/LICENSE +21 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_sentry_opentelemetry/package-license.json +5 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_sentry_server-runtime-injection/LICENSE +21 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_sentry_server-runtime-injection/LICENSE-SOURCE +1 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_sentry_server-runtime-injection/package-license.json +5 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_sentry_server-utils/LICENSE +21 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_sentry_server-utils/LICENSE-SOURCE +1 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/_sentry_server-utils/package-license.json +5 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/js-tokens/LICENSE +21 -0
- package/plugins/observability-sentry/0.6.15-rc.1/licenses/js-tokens/package-license.json +5 -0
- package/plugins/observability-sentry/0.6.15-rc.1/server/index.mjs +13089 -0
- package/plugins/payments-stripe/0.6.15-rc.1/jini.plugin.json +35 -0
- package/plugins/payments-stripe/0.6.15-rc.1/licenses/_jini-ai_provider-plugins/LICENSE +201 -0
- package/plugins/payments-stripe/0.6.15-rc.1/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
- package/plugins/payments-stripe/0.6.15-rc.1/server/index.mjs +153 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# @jini-ai/provider-plugins
|
|
2
|
+
|
|
3
|
+
## 0.6.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e46b6ec: The Langfuse AI-trace sink moved out of `@jini-ai/agent-runtime` into the `ai-trace-langfuse` provider plugin (contract `ai_trace`), which bundles the `langfuse` SDK. Removed: the `@jini-ai/agent-runtime/ai-trace/langfuse` subpath (`createLangfuseAiTraceSink`, `loadLangfuseAiTraceSink`, `toLangfuseCall`). The runtime core has no Langfuse reference; a core-wide boundary test refuses vendor SDK imports or dependencies in any other package.
|
|
8
|
+
- 63bacc5: OpenTelemetry and Sentry observability adapters moved out of `@jini-ai/diagnostics` into the `observability-opentelemetry` and `observability-sentry` provider plugins of `@jini-ai/provider-plugins`. Removed: the `@jini-ai/diagnostics/observability/opentelemetry` and `/observability/sentry` subpaths and every `@opentelemetry/*` / `@sentry/node` dev and optional peer dependency. The OTel plugin accepts any OTLP/HTTP endpoint plus generic request headers. Packages bundled into plugin artifacts now ship their LICENSE file.
|
|
9
|
+
- 212cf50: The PostHog product-analytics adapter moved out of `@jini-ai/analytics` into the `analytics-posthog` provider plugin (contract `product_analytics`). Removed: the `@jini-ai/analytics/product/posthog` subpath and the optional `posthog-node` peer. `@jini-ai/analytics/product` is verified to bundle for a browser target with no Node builtin.
|
|
10
|
+
- 31819c8: The Stripe `PaymentsProvider` adapter moved unchanged out of `@jini-ai/capability-providers` into the `payments-stripe` provider plugin (move only: commerce's payment contract is canonical, conversion is deferred, and no host selects or activates it). Removed: the `@jini-ai/capability-providers/adapters/stripe` subpath. The hardwiring check treats `provider-plugins/` sources as provider adapters.
|
|
11
|
+
- 63342e9: The PostHog, Sentry, OpenTelemetry and Langfuse provider plugins show short display names ("PostHog", "Sentry", "OpenTelemetry", "Langfuse") instead of "<vendor> <category> provider".
|
|
12
|
+
- 4a9d6ca: Provider factories accept a neutral host `attribution` input (`attributes`, `groups`, `tags`; the host names the keys): OTel adds the attributes to every span's resource (`service.name` stays the host's), PostHog adds them to every event's properties (not overridable by the event) plus `$groups`, Langfuse adds them to trace metadata and appends the tags.
|
|
13
|
+
- 1f2464f: Add admitted server-provider factory contributions and generation-scoped resource disposal to the
|
|
14
|
+
existing plugin host. Introduce one self-contained provider artifact distribution with a tiny
|
|
15
|
+
fixture, integrity maps, bundled license texts, and build-on-pack support.
|
|
16
|
+
Pending initialization settles on retirement or a configurable `initializeTimeoutMs`, so a
|
|
17
|
+
hung factory cannot block boot or shutdown; shutdown also awaits in-flight direct lease disposal.
|
|
18
|
+
- 146be48: `ai-trace-langfuse`: a host-supplied (borrowed) client is never shut down by the provider; dispose and the sink's `shutdown` only flush it. A factory-built client is still shut down on dispose.
|
|
19
|
+
- 839dba9: `observability-opentelemetry`: the OTLP exporter, sampler, span limits and batch settings come from injected configuration only; standard `OTEL_*` environment variables (headers, endpoint, compression, sampler, resource attributes) no longer change what the plugin exports or where.
|
|
20
|
+
- 223fc22: Provider declarations may declare `settings` (public and secret fields, `name` = factory input key) so a host can render its secure settings card and decide "configured?" without executing plugin code. The OTel, Sentry, PostHog and Langfuse provider plugins declare theirs; the OTel factory also accepts the OTLP `Name=Value,…` header text and defaults `tracerName` to `serviceName`.
|
|
21
|
+
- 106d9dd: Provider settings fields can declare a `default`, `options` (a select of `{ value, label }`) and `allowCustom` (free text beside the options); public fields only. PostHog and Langfuse declare their cloud regions (PostHog US by default, Langfuse EU); OpenTelemetry takes a username/instance ID + token and builds `Authorization: Basic` (or `Bearer` with no username) itself, keeping raw extra headers as an advanced field (a card saved with raw headers still applies).
|
|
22
|
+
|
|
23
|
+
Release notes are maintained by Changesets.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Support. While redistributing the Work or
|
|
166
|
+
Derivative Works thereof, You may choose to offer, and charge a
|
|
167
|
+
fee for, acceptance of support, warranty, indemnity, or other
|
|
168
|
+
liability obligations and/or rights consistent with this License.
|
|
169
|
+
However, in accepting such obligations, You may act only on Your
|
|
170
|
+
own behalf and on Your sole responsibility, not on behalf of any
|
|
171
|
+
other Contributor, and only if You agree to indemnify, defend,
|
|
172
|
+
and hold each Contributor harmless for any liability incurred by,
|
|
173
|
+
or claims asserted against, such Contributor by reason of your
|
|
174
|
+
accepting any such warranty or support.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Open Design contributors
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,59 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @jini-ai/provider-plugins
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
One asset distribution of ordinary tier-3 Jini server plugins. There are no callable adapter exports:
|
|
4
|
+
hosts install and load the artifacts. Vendor SDKs are bundled into each artifact at build time and
|
|
5
|
+
never become dependencies or peers of a core `@jini-ai/*` package.
|
|
6
|
+
|
|
7
|
+
| plugin id | provider (`contract` / `id`) | factory `required` input | factory `optional` input |
|
|
8
|
+
|---|---|---|---|
|
|
9
|
+
| `fixture-provider` | `fixture` / `fixture` | `{ value }` | — (conformance fixture) |
|
|
10
|
+
| `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 | `{ spanProcessors? }` (tests) |
|
|
11
|
+
| `ai-trace-langfuse` | `ai_trace` / `langfuse` | `{ publicKey, secretKey, baseUrl?, environment?, release? }` | `{ client? }` (tests) |
|
|
12
|
+
| `analytics-posthog` | `product_analytics` / `posthog` | `{ apiKey, host }` | `{ fetch?, flushAt? }` (tests) |
|
|
13
|
+
| `observability-sentry` | `observability` / `sentry` | `{ dsn, environment?, tracesSampleRate? }` (rate default 0) | `{ client?, transport? }` (host-owned client is never closed) |
|
|
14
|
+
|
|
15
|
+
Observability factories return diagnostics' `ObservabilityPort` plus `dispose`; `analytics-posthog`
|
|
16
|
+
returns `@jini-ai/analytics/product`'s `ProductAnalyticsPort`, which the host wraps in
|
|
17
|
+
`withProductAnalyticsGuards` (consent, opaque ids, PII rules) before any event reaches the vendor;
|
|
18
|
+
`ai-trace-langfuse` returns an `@jini-ai/agent-runtime/ai-trace` sink, which the host combines with
|
|
19
|
+
`createFanOutAiTraceSink` and hands to the daemon's `withAiTracing`.
|
|
20
|
+
|
|
21
|
+
Cookie consent: the PostHog port's `consentAdapter({ path })` returns `{ adapter, http }`. Mount `http`
|
|
22
|
+
at `path` (same origin) and list `adapter` (a lazy `consent-adapter` entry for `@jini-ai/cookie-consent`)
|
|
23
|
+
in the page's consent config. The browser imports `consent-adapter.mjs` only on an analytics grant; it
|
|
24
|
+
loads the pinned posthog-js file (copied byte for byte; the build checks its SHA-256) with SRI, so other
|
|
25
|
+
bytes never run. Events go through the same-origin collector with `ip=0`. Sentry and OpenTelemetry are
|
|
26
|
+
server-only and set nothing in the visitor's browser, so they have no consent adapter.
|
|
27
|
+
|
|
28
|
+
Licenses: each artifact carries `licenses/<package>/` for every bundled package. A package that
|
|
29
|
+
ships no license file takes a bundled sibling's text from the same repository and declared license,
|
|
30
|
+
or a reviewed upstream copy under `license-supplements/<repository>/` (with a `SOURCE` note); the
|
|
31
|
+
build fails otherwise. Two configured observability
|
|
32
|
+
providers fan out through diagnostics' existing fan-out. Inputs come from the host's secure plugin
|
|
33
|
+
settings; never from manifests, browser assets or agent instructions.
|
|
34
|
+
|
|
35
|
+
`pnpm --filter @jini-ai/provider-plugins build` produces `catalog.json` and
|
|
36
|
+
`plugins/<id>/<version>/{jini.plugin.json,server/index.mjs,licenses/**}`. `pnpm pack` builds these
|
|
37
|
+
assets through `prepack`. esbuild bundles runtime dependencies, permits only Node builtins as
|
|
38
|
+
external imports, retains bundled packages' license/notice files, and the existing installer
|
|
39
|
+
integrity helper hashes every packaged file except the manifest. SDK packages are build-time
|
|
40
|
+
(dev) dependencies of this distribution, never runtime dependencies of an installed artifact.
|
|
41
|
+
|
|
42
|
+
Hosts read the catalog, install selected plugin folders with `previewSitePluginInstall` /
|
|
43
|
+
`installSitePlugin`, and use the existing `loadPlugin` with explicit tier admission. Supply
|
|
44
|
+
`providerContributions: { registry, isSelected }`; selection must require installed, enabled,
|
|
45
|
+
and configured state. Recheck selection when settings change. Detach the plugin's contribution
|
|
46
|
+
snapshot on disable/quarantine. Only admitted snapshots can initialize factories through
|
|
47
|
+
`createPluginProviderHost`. Await initialization before admitting application work, and dispose
|
|
48
|
+
that host on shutdown or failed boot. Unselected contracts keep the domain's existing noop.
|
|
49
|
+
|
|
50
|
+
Factories accept explicit configuration, credentials and borrowed effect ports as required object
|
|
51
|
+
inputs, plus an optional object, and return `{ port, dispose }`. Setup only registers factories.
|
|
52
|
+
The injected domain validator checks returned ports through core's `createProviderRegistry`.
|
|
53
|
+
A lease's `isCurrent({})` guards new work after replacement. Retirement releases resources with
|
|
54
|
+
idempotent, bounded, independent teardown; pending factories release their late results on arrival.
|
|
55
|
+
A teardown timeout bounds waiting and cannot forcibly interrupt arbitrary in-process code.
|
|
56
|
+
|
|
57
|
+
The fixture supports SDK `0.1.x` and `1.x`, and declares one publisher identity for two example
|
|
58
|
+
host identity namespaces. Tier-3 plugins execute trusted code in process; capability gating governs
|
|
59
|
+
supplied SDK handles and does not sandbox arbitrary Node code. No secrets belong in manifests.
|
package/catalog.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "ai-trace-langfuse",
|
|
4
|
+
"version": "0.6.15-rc.1",
|
|
5
|
+
"path": "plugins/ai-trace-langfuse/0.6.15-rc.1"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"id": "analytics-posthog",
|
|
9
|
+
"version": "0.6.15-rc.1",
|
|
10
|
+
"path": "plugins/analytics-posthog/0.6.15-rc.1"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"id": "fixture-provider",
|
|
14
|
+
"version": "0.6.15-rc.1",
|
|
15
|
+
"path": "plugins/fixture-provider/0.6.15-rc.1"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": "observability-opentelemetry",
|
|
19
|
+
"version": "0.6.15-rc.1",
|
|
20
|
+
"path": "plugins/observability-opentelemetry/0.6.15-rc.1"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "observability-sentry",
|
|
24
|
+
"version": "0.6.15-rc.1",
|
|
25
|
+
"path": "plugins/observability-sentry/0.6.15-rc.1"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "payments-stripe",
|
|
29
|
+
"version": "0.6.15-rc.1",
|
|
30
|
+
"path": "plugins/payments-stripe/0.6.15-rc.1"
|
|
31
|
+
}
|
|
32
|
+
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,64 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jini-ai/provider-plugins",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.6.15-rc.1",
|
|
4
|
+
"description": "Self-contained server provider plugin artifacts for the existing Jini plugin host.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/AINSEP/Jini.git",
|
|
10
|
+
"directory": "packages/provider-plugins"
|
|
11
|
+
},
|
|
12
|
+
"jini": {
|
|
13
|
+
"domain": "tooling",
|
|
14
|
+
"kind": "plugin-packaging",
|
|
15
|
+
"runtime": "node",
|
|
16
|
+
"entries": {
|
|
17
|
+
"./catalog": "node",
|
|
18
|
+
"./plugins/*": "node"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"exports": {
|
|
22
|
+
"./catalog": "./catalog.json",
|
|
23
|
+
"./plugins/*": "./plugins/*"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"catalog.json",
|
|
27
|
+
"plugins",
|
|
28
|
+
"README.md",
|
|
29
|
+
"CHANGELOG.md",
|
|
30
|
+
"LICENSE"
|
|
31
|
+
],
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public",
|
|
34
|
+
"registry": "https://registry.npmjs.org"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@opentelemetry/api": "^1.9.1",
|
|
38
|
+
"@opentelemetry/otlp-exporter-base": "^0.221.0",
|
|
39
|
+
"@opentelemetry/otlp-transformer": "^0.221.0",
|
|
40
|
+
"@opentelemetry/resources": "^2.10.0",
|
|
41
|
+
"@opentelemetry/sdk-metrics": "^2.10.0",
|
|
42
|
+
"@opentelemetry/sdk-trace-base": "^2.10.0",
|
|
43
|
+
"@opentelemetry/sdk-trace-node": "^2.10.0",
|
|
44
|
+
"@opentelemetry/semantic-conventions": "^1.43.0",
|
|
45
|
+
"@sentry/node": "11.6.0",
|
|
46
|
+
"esbuild": "^0.28.1",
|
|
47
|
+
"langfuse": "3.39.2",
|
|
48
|
+
"posthog-js": "1.260.2",
|
|
49
|
+
"posthog-node": "5.55.1",
|
|
50
|
+
"tsx": "^4.19.0",
|
|
51
|
+
"typescript": "^5.9.3",
|
|
52
|
+
"@jini-ai/agent-runtime": "^0.6.15-rc.1",
|
|
53
|
+
"@jini-ai/analytics": "^0.6.15-rc.1",
|
|
54
|
+
"@jini-ai/cookie-consent": "^0.6.15-rc.1",
|
|
55
|
+
"@jini-ai/plugins": "^0.6.15-rc.1",
|
|
56
|
+
"@jini-ai/capability-providers": "^0.6.15-rc.1",
|
|
57
|
+
"@jini-ai/diagnostics": "^0.6.15-rc.1"
|
|
58
|
+
},
|
|
59
|
+
"scripts": {
|
|
60
|
+
"build": "node --import tsx scripts/build.ts",
|
|
61
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
62
|
+
"test": "vitest run"
|
|
63
|
+
}
|
|
6
64
|
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "ai-trace-langfuse",
|
|
3
|
+
"name": "Langfuse",
|
|
4
|
+
"version": "0.6.15-rc.1",
|
|
5
|
+
"sdkRange": "^0.1.0 || ^1.0.0",
|
|
6
|
+
"engine": 1,
|
|
7
|
+
"tier": "tier-3",
|
|
8
|
+
"extensions": {
|
|
9
|
+
"tovu": {
|
|
10
|
+
"id": "jini/ai-trace-langfuse"
|
|
11
|
+
},
|
|
12
|
+
"open-marketing": {
|
|
13
|
+
"id": "jini/ai-trace-langfuse"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"capabilities": [
|
|
17
|
+
"providers.register"
|
|
18
|
+
],
|
|
19
|
+
"contributes": {
|
|
20
|
+
"providers": [
|
|
21
|
+
{
|
|
22
|
+
"contract": "ai_trace",
|
|
23
|
+
"id": "langfuse",
|
|
24
|
+
"contractVersion": 1,
|
|
25
|
+
"settings": [
|
|
26
|
+
{
|
|
27
|
+
"name": "baseUrl",
|
|
28
|
+
"label": "Region / host",
|
|
29
|
+
"default": "https://cloud.langfuse.com",
|
|
30
|
+
"options": [
|
|
31
|
+
{
|
|
32
|
+
"value": "https://cloud.langfuse.com",
|
|
33
|
+
"label": "EU Cloud"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"value": "https://us.cloud.langfuse.com",
|
|
37
|
+
"label": "US Cloud"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"allowCustom": true,
|
|
41
|
+
"hint": "Custom: your self-hosted Langfuse URL."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "publicKey",
|
|
45
|
+
"label": "Public key",
|
|
46
|
+
"required": true
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "secretKey",
|
|
50
|
+
"label": "Secret key",
|
|
51
|
+
"secret": true,
|
|
52
|
+
"required": true
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"hooks": [],
|
|
59
|
+
"fields": [],
|
|
60
|
+
"integrity": {
|
|
61
|
+
"licenses/_jini-ai_provider-plugins/LICENSE": "sha256-9d95806a26532623360eb84bb17d298f394b55ef73fb4c0796d99b4319b2b0da",
|
|
62
|
+
"licenses/_jini-ai_provider-plugins/package-license.json": "sha256-91e93d3da6e474b6efd1f03c2ca668285a0cf230d82de5c35224df1de263bd88",
|
|
63
|
+
"licenses/langfuse/LICENSE": "sha256-500dc50774b3a1b58900bf28e03f63906d6e910a56da147ef154cddb5c1619b3",
|
|
64
|
+
"licenses/langfuse/LICENSE-SOURCE": "sha256-86e467e07d45cff307b1b33738dea99cf2ae2a22fbe5fb571ae3a03819d41f54",
|
|
65
|
+
"licenses/langfuse/SOURCE": "sha256-7828b8d9c40401be34ccf1682306881431fd1ee6d86a3b5ad10f4104c217ce0a",
|
|
66
|
+
"licenses/langfuse/package-license.json": "sha256-d2211982a29978bd5c2d4cdb9ce682b8e584fbf0e474d72c1f24289b2b9382ef",
|
|
67
|
+
"licenses/langfuse-core/LICENSE": "sha256-500dc50774b3a1b58900bf28e03f63906d6e910a56da147ef154cddb5c1619b3",
|
|
68
|
+
"licenses/langfuse-core/LICENSE-SOURCE": "sha256-86e467e07d45cff307b1b33738dea99cf2ae2a22fbe5fb571ae3a03819d41f54",
|
|
69
|
+
"licenses/langfuse-core/SOURCE": "sha256-7828b8d9c40401be34ccf1682306881431fd1ee6d86a3b5ad10f4104c217ce0a",
|
|
70
|
+
"licenses/langfuse-core/package-license.json": "sha256-ddcfec5e1d2d66f0fa8747045c7318fadec83d68721520abfd8c9f45f3a545f5",
|
|
71
|
+
"licenses/mustache/LICENSE": "sha256-e60b280838180a70cbb4b934f825c8119cdcf8912259ff4c6da20b284231c832",
|
|
72
|
+
"licenses/mustache/package-license.json": "sha256-288d7af593a0809e08ead527831b7bd2dff0bd84fef7a5bbb61b0b9c812720ab",
|
|
73
|
+
"server/index.mjs": "sha256-78793710ec44af8b230b8ac0e33c93766cc1b9395de7bc814e1de6817a73ebde"
|
|
74
|
+
}
|
|
75
|
+
}
|