@vellumai/plugin-api 0.12.2-dev.202609171017.61d51c8 → 0.12.2-dev.202609171418.b9a2adf

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 +20 -13
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -4629,22 +4629,29 @@ export declare function createLiveVoiceConnection(options: {
4629
4629
  /**
4630
4630
  * Plugin-facing credential resolution.
4631
4631
  *
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).
4632
+ * {@link resolveCredential} returns a stored credential's plaintext value
4633
+ * (the same value `assistant credentials reveal` prints), resolving a
4634
+ * reference that is either a credential UUID or a `"service/field"` string,
4635
+ * exactly as the reveal path does (see
4636
+ * {@link ../tools/credentials/resolve.resolveCredentialRef} and the
4637
+ * `credentials/reveal` route).
4637
4638
  *
4638
4639
  * ## Plugin scoping
4639
4640
  *
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.
4641
+ * When a plugin is in context, resolution is restricted to credentials
4642
+ * whose `service` equals the plugin's runtime install-directory name
4643
+ * (`sms/account_sid` for plugin `sms`). Context is:
4644
+ *
4645
+ * 1. In-process AsyncLocalStorage from `runInPluginContext` (hooks, plugin
4646
+ * tools, plugin routes).
4647
+ * 2. `VELLUM_PLUGIN_NAME` on a bash or skill-sandbox child.
4648
+ * 3. The process entry path, when it sits under
4649
+ * `plugins/<service>/skills/<skill>/{scripts,tools}/`.
4650
+ *
4651
+ * Outside any plugin context the resolver is unscoped and behaves like a
4652
+ * direct reveal. A standalone child has an empty in-process metadata
4653
+ * cache; when plugin context is set, a cache miss consults the live
4654
+ * credential catalog so an empty cache is not reported as "not found".
4648
4655
  */
4649
4656
  /**
4650
4657
  * 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.202609171017.61d51c8",
3
+ "version": "0.12.2-dev.202609171418.b9a2adf",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",