@vellumai/plugin-api 0.10.3-dev.202606291517.f0c68f7 → 0.10.3-dev.202606291850.7e0a3f7

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 +40 -10
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -472,6 +472,15 @@ declare interface AssistantInboxEscalationResponse {
472
472
  };
473
473
  }
474
474
 
475
+ /**
476
+ * Managed skill authored by the assistant's retrospective. Identical shape to a
477
+ * custom skill — it stays managed/deletable — but carries a distinct origin so
478
+ * the UI badges it as "Assistant's Memory" instead of "Custom".
479
+ */
480
+ declare interface AssistantMemorySlimSkill extends SlimSkillBase {
481
+ origin: "assistant-memory";
482
+ }
483
+
475
484
  declare interface AssistantStatusMessage {
476
485
  type: "assistant_status";
477
486
  version?: string;
@@ -3050,19 +3059,29 @@ export declare interface PostToolUseContext {
3050
3059
  /**
3051
3060
  * Model id reported by the provider for the assistant turn that issued
3052
3061
  * this tool call (e.g. `claude-opus-4-8`,
3053
- * `accounts/fireworks/models/kimi-k2p6`). A hook needing a finer-grained
3054
- * model-family signal than {@link needsFirmerSteering} e.g. matching a
3055
- * specific loop-prone family reads it directly.
3062
+ * `accounts/fireworks/models/kimi-k2p6`). Hooks use it to vary coaching by
3063
+ * model family each plugin owns its own model policy (e.g. which families
3064
+ * need firmer steering) and matches against this string directly.
3056
3065
  */
3057
3066
  readonly model: string;
3058
3067
  /**
3059
- * Host's assessment that this turn's model needs firmer mid-turn steering
3060
- * than the static prompt provides `true` for weaker open-weight families
3061
- * that disregard prompt-level coaching, `false` for models that follow it.
3062
- * Hooks gate aggressive nudges on this boolean instead of re-deriving the
3063
- * model taxonomy themselves.
3068
+ * The LLM call site driving this turn `mainAgent` for a live user-facing
3069
+ * turn, `subagentSpawn` for a subagent, or a background site (e.g.
3070
+ * `heartbeatAgent`, `titleGenerate`). `null` when the run tagged none. A hook
3071
+ * that should only act on a live user-facing turn gates on
3072
+ * `callSite === "mainAgent"`; one that should skip subagents checks
3073
+ * `callSite === "subagentSpawn"`.
3064
3074
  */
3065
- readonly needsFirmerSteering: boolean;
3075
+ readonly callSite: LLMCallSite | null;
3076
+ /**
3077
+ * Whether the connected client can render dynamic UI surfaces this turn —
3078
+ * `true` unless the channel explicitly lacks the capability (SMS, phone,
3079
+ * email, and most chat bridges). A fact about what the model can *do* this
3080
+ * turn, not who is calling: a hook that prompts a surface tool (e.g. the
3081
+ * `ui_show` progress card) gates on this so it does not coach the model
3082
+ * toward a tool the channel filters out of the tool set.
3083
+ */
3084
+ readonly supportsDynamicUi: boolean;
3066
3085
  /**
3067
3086
  * The model's context-window size in tokens. Plugins derive their own
3068
3087
  * character budget from this (e.g. a share of the window) rather than
@@ -3753,7 +3772,7 @@ declare interface SlimSkillBase {
3753
3772
  owner?: OwnerInfo;
3754
3773
  }
3755
3774
 
3756
- declare type SlimSkillResponse = VellumSlimSkill | ClawhubSlimSkill | SkillsshSlimSkill | CustomSlimSkill;
3775
+ declare type SlimSkillResponse = VellumSlimSkill | ClawhubSlimSkill | SkillsshSlimSkill | CustomSlimSkill | AssistantMemorySlimSkill;
3757
3776
 
3758
3777
  /** Sent by the daemon when sounds config or sound files change on disk. */
3759
3778
  declare interface SoundsConfigUpdated {
@@ -4098,6 +4117,17 @@ export declare interface ToolContext {
4098
4117
  * @legacy
4099
4118
  */
4100
4119
  executionChannel?: string;
4120
+ /**
4121
+ * Origin tag of the turn driving this tool invocation (the conversation's
4122
+ * `TitleOrigin`, e.g. "memory_retrospective"). Set for background-job turns
4123
+ * that pass `requestOrigin` to `runBackgroundJob`, and for the
4124
+ * memory-retrospective wake (which pins it via {@link WakeToolContextPin}).
4125
+ * `buildPolicyContext` copies it onto the `PolicyContext` so the permission
4126
+ * checker can scope narrow non-interactive auto-grants (e.g. retrospective
4127
+ * skill authoring) to a specific internal origin. Unset for normal
4128
+ * interactive turns.
4129
+ */
4130
+ requestOrigin?: string;
4101
4131
  /**
4102
4132
  * Voice/call session ID, if the invocation originates from a call. Used for scoped grant consumption.
4103
4133
  * @legacy
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.10.3-dev.202606291517.f0c68f7",
3
+ "version": "0.10.3-dev.202606291850.7e0a3f7",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",