@vonzio/plugin-api 0.1.0 → 0.2.0

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.
Files changed (3) hide show
  1. package/index.d.ts +16 -2
  2. package/index.js +3 -2
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -5,9 +5,10 @@ import type { FastifyInstance } from "fastify";
5
5
  * plugins whose major differs or whose minor is ahead of core's (see
6
6
  * `assertApiCompatible`). Bumped to 1.0.0 with the external-loader contract
7
7
  * (docs/PLUGIN_LOADER_SPEC.md) — the loader surface is now a stability
8
- * commitment.
8
+ * commitment. 1.1.0 added `scope`/`profile_ids` to PluginIntegration
9
+ * (additive; plugins targeting 1.0 are unaffected).
9
10
  */
10
- export declare const PLUGIN_API_VERSION = "1.0.0";
11
+ export declare const PLUGIN_API_VERSION = "1.1.0";
11
12
  /**
12
13
  * The shape every plugin's default export must satisfy. Generic over
13
14
  * the plugin's own config type so init() receives a fully-typed config.
@@ -195,6 +196,19 @@ export interface PluginIntegration {
195
196
  type: string;
196
197
  config: Record<string, unknown>;
197
198
  enabled: boolean;
199
+ /**
200
+ * Visibility scope for agent-facing surfaces (MCP injection, etc.):
201
+ * - `"all"`: available to every agent profile the user owns.
202
+ * - `"agents"`: restricted to the profiles listed in `profile_ids`.
203
+ * A plugin gating per-profile (e.g. only surface a bank to the agent the
204
+ * user scoped it to) filters with:
205
+ * `scope === "all" || profile_ids.includes(profileId)`.
206
+ * Added in plugin-api 1.1.0.
207
+ */
208
+ scope: "all" | "agents";
209
+ /** Profile ids this integration is restricted to when `scope === "agents"`
210
+ * (empty otherwise). Added in plugin-api 1.1.0. */
211
+ profile_ids: string[];
198
212
  /**
199
213
  * Last-modified timestamp (ISO-8601). Plugins use this for
200
214
  * optimistic-locking writes -- see `update({...}, { expectUpdatedAt })`.
package/index.js CHANGED
@@ -13,9 +13,10 @@
13
13
  * plugins whose major differs or whose minor is ahead of core's (see
14
14
  * `assertApiCompatible`). Bumped to 1.0.0 with the external-loader contract
15
15
  * (docs/PLUGIN_LOADER_SPEC.md) — the loader surface is now a stability
16
- * commitment.
16
+ * commitment. 1.1.0 added `scope`/`profile_ids` to PluginIntegration
17
+ * (additive; plugins targeting 1.0 are unaffected).
17
18
  */
18
- export const PLUGIN_API_VERSION = "1.0.0";
19
+ export const PLUGIN_API_VERSION = "1.1.0";
19
20
  export { PLUGIN_CAPABILITIES, CAPABILITY_SURFACE_MAP, ROOT_EQUIVALENT_COMBINATIONS, BUILTIN_ONLY_CAPABILITIES, isPluginCapability, } from "./capabilities.js";
20
21
  export { MANIFEST_ALLOWED_KEYS, POLICY_ENTRY_ALLOWED_KEYS, SCHEMA_PREFIX_PATTERN, MTLS_SECRET_NAME_PATTERN, } from "./manifest.js";
21
22
  export { validateManifest, validatePolicy, matchOutboundHost, normalizeHostPattern, } from "./manifest-validate.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonzio/plugin-api",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "description": "Plugin contract for vonzio. Defines the types + helpers a plugin author implements; defines what core-server's loader and bus implement. Stable surface: breaking changes require a major bump.",
6
6
  "license": "AGPL-3.0-or-later",