@vellumai/plugin-api 0.10.7-dev.202607091111.4355283 → 0.10.7-dev.202607091507.bac9bfe

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 +27 -12
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2063,7 +2063,7 @@ declare interface HostBashRequest {
2063
2063
  command: string;
2064
2064
  working_dir?: string;
2065
2065
  timeout_seconds?: number;
2066
- /** Extra environment variables to inject into the subprocess (e.g. VELLUM_UNTRUSTED_SHELL). */
2066
+ /** Extra environment variables to inject into the subprocess (e.g. __CONVERSATION_ID). */
2067
2067
  env?: Record<string, string>;
2068
2068
  /** When set, route this request only to the client with this ID. */
2069
2069
  targetClientId?: string;
@@ -2724,18 +2724,24 @@ declare const OpenUrlEventSchema: z.ZodObject<{
2724
2724
  }, z.core.$strip>;
2725
2725
 
2726
2726
  /**
2727
- * Identifies which extension owns a tool (skill / plugin / MCP server).
2728
- * Tracked by the tool registry keyed by tool name, not stored on the `Tool`
2729
- * object itself — query via {@link ../tools/registry.getToolOwner}.
2727
+ * Identifies what owns a tool: the built-in default set, or a skill / plugin /
2728
+ * MCP server / workspace override. Tracked by the tool registry keyed by tool
2729
+ * name, not stored on the `Tool` object itself — query via
2730
+ * {@link ../tools/registry.getToolOwner}.
2730
2731
  */
2731
2732
  declare interface OwnerInfo {
2732
2733
  kind: OwnerKind;
2733
- /** ID of the owning extension (skill id / plugin name / MCP server id / workspace path). */
2734
+ /** ID of the owner: skill id / plugin name / MCP server id / workspace path, or `"default"` for built-ins. */
2734
2735
  id: string;
2735
2736
  }
2736
2737
 
2737
- /** The kind of extension that owns a tool. Core tools have no owner. */
2738
- declare type OwnerKind = "skill" | "mcp" | "plugin" | "workspace";
2738
+ /**
2739
+ * The kind of entity that owns a tool. `"default"` is the built-in tool set
2740
+ * that ships with the assistant; the others are extension surfaces. Every
2741
+ * *registered* tool has an owner — {@link ../tools/registry.getToolOwner}
2742
+ * returns `undefined` only for a name that is not registered at all.
2743
+ */
2744
+ declare type OwnerKind = "default" | "skill" | "mcp" | "plugin" | "workspace";
2739
2745
 
2740
2746
  declare interface PartnerAudit {
2741
2747
  risk: RiskLevel_2;
@@ -3635,6 +3641,13 @@ declare interface ShowPlatformLogin {
3635
3641
  * The `assistantVersion` field mirrors the init context's so plugins that stash
3636
3642
  * a version stamp at init can compare against the same name on tear-down
3637
3643
  * without keeping their own copy.
3644
+ *
3645
+ * **`shutdown` may run in a different process than `init`.** A managed
3646
+ * `uninstall` runs it in whichever process performs the removal (the CLI or the
3647
+ * daemon), which is not necessarily the daemon process that ran `init`. Do not
3648
+ * close over in-memory state established at `init` (open handles, timers,
3649
+ * module-level singletons) and expect to tear it down here — reconstruct
3650
+ * anything you need from the plugin's config and `data/` directory instead.
3638
3651
  */
3639
3652
  export declare interface ShutdownContext {
3640
3653
  /** Assistant semver for compatibility checks inside the plugin. */
@@ -3651,8 +3664,10 @@ export declare interface ShutdownContext {
3651
3664
  * - `disable` — the plugin was disabled at runtime (e.g. a `.disabled`
3652
3665
  * sentinel was added, or a feature flag turned it off).
3653
3666
  * - `reload` — a source file inside the plugin directory changed and the
3654
- * plugin is being redeployed in place; the old version's `shutdown` runs
3655
- * before the new version is imported and its `init` fires.
3667
+ * plugin is being redeployed in place; `shutdown` runs before the new version
3668
+ * is imported and its `init` fires. Note the `shutdown` that runs is the one
3669
+ * currently on disk, which is the previous version *unless* the edit was to
3670
+ * `shutdown` itself.
3656
3671
  */
3657
3672
  declare type ShutdownReason = "shutdown" | "uninstall" | "disable" | "reload";
3658
3673
 
@@ -4087,9 +4102,9 @@ export declare interface ToolContext {
4087
4102
  * "Always Allow" rules, or non-interactive auto-approve shortcuts may
4088
4103
  * bypass the prompt. This flag is independently sufficient: it
4089
4104
  * promotes allow → prompt decisions on its own and suppresses
4090
- * temporary override options in the prompt UI. Used by
4091
- * `manage_secure_command_tool` to ensure a human reviews each secure
4092
- * bundle installation.
4105
+ * temporary override options in the prompt UI. Used by the `run_workflow`
4106
+ * launch path so a human consents to a run whose capability manifest grants
4107
+ * side-effecting tools.
4093
4108
  * @legacy
4094
4109
  */
4095
4110
  requireFreshApproval?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.10.7-dev.202607091111.4355283",
3
+ "version": "0.10.7-dev.202607091507.bac9bfe",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",