@vellumai/plugin-api 0.12.2-dev.202609171225.565e464 → 0.12.2-dev.202609171516.2acdfd4

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 (2) hide show
  1. package/index.d.ts +21 -13
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1233,6 +1233,7 @@ declare const AssistantConfigSchema: z.ZodObject<{
1233
1233
  }, z.core.$strip>>;
1234
1234
  tools: z.ZodDefault<z.ZodObject<{
1235
1235
  exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
1236
+ mcpGlobalMaxTools: z.ZodOptional<z.ZodNumber>;
1236
1237
  }, z.core.$strip>>;
1237
1238
  workflows: z.ZodDefault<z.ZodObject<{
1238
1239
  maxAgentsPerRun: z.ZodDefault<z.ZodNumber>;
@@ -4629,22 +4630,29 @@ export declare function createLiveVoiceConnection(options: {
4629
4630
  /**
4630
4631
  * Plugin-facing credential resolution.
4631
4632
  *
4632
- * {@link resolveCredential} returns a stored credential's plaintext value — the
4633
- * same value `assistant credentials reveal` prints — resolving a reference that
4634
- * is either a credential UUID or a `"service/field"` string, exactly as the
4635
- * reveal path does (see {@link ../tools/credentials/resolve.resolveCredentialRef}
4636
- * and the `credentials/reveal` route).
4633
+ * {@link resolveCredential} returns a stored credential's plaintext value
4634
+ * (the same value `assistant credentials reveal` prints), resolving a
4635
+ * reference that is either a credential UUID or a `"service/field"` string,
4636
+ * exactly as the reveal path does (see
4637
+ * {@link ../tools/credentials/resolve.resolveCredentialRef} and the
4638
+ * `credentials/reveal` route).
4637
4639
  *
4638
4640
  * ## Plugin scoping
4639
4641
  *
4640
- * When a plugin is in context (its hook, tool, or one of its own
4641
- * `/x/plugins/<name>/` routes is executing, tracked by
4642
- * {@link ../plugins/plugin-execution-context.getCurrentPluginName}), resolution
4643
- * is restricted: the plugin may only resolve credentials whose `service`
4644
- * equals its manifest name (`imessage/api_key` for plugin `imessage`). It
4645
- * cannot read another service (`openai/api_key`, `openai/imessage`). Outside
4646
- * any plugin context (host-internal callers, CLI, tests) the resolver is
4647
- * unscoped and behaves like a direct reveal.
4642
+ * When a plugin is in context, resolution is restricted to credentials
4643
+ * whose `service` equals the plugin's runtime install-directory name
4644
+ * (`sms/account_sid` for plugin `sms`). Context is:
4645
+ *
4646
+ * 1. In-process AsyncLocalStorage from `runInPluginContext` (hooks, plugin
4647
+ * tools, plugin routes).
4648
+ * 2. `VELLUM_PLUGIN_NAME` on a bash or skill-sandbox child.
4649
+ * 3. The process entry path, when it sits under
4650
+ * `plugins/<service>/skills/<skill>/{scripts,tools}/`.
4651
+ *
4652
+ * Outside any plugin context the resolver is unscoped and behaves like a
4653
+ * direct reveal. A standalone child has an empty in-process metadata
4654
+ * cache; when plugin context is set, a cache miss consults the live
4655
+ * credential catalog so an empty cache is not reported as "not found".
4648
4656
  */
4649
4657
  /**
4650
4658
  * Raised when a credential cannot be resolved: the reference does not match a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.12.2-dev.202609171225.565e464",
3
+ "version": "0.12.2-dev.202609171516.2acdfd4",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",