@touchcastllc/napster-companion-api-dev 2.1.0-alpha.3 → 2.1.0-alpha.4

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.
@@ -15,19 +15,6 @@ export declare enum Position {
15
15
  TOP_LEFT = "top-left",
16
16
  CENTER = "center"
17
17
  }
18
- /**
19
- * Function definition for AI companion function calling.
20
- * Functions allow the AI companion to invoke external tools or actions
21
- * during a conversation.
22
- */
23
- export interface CompanionFunction {
24
- /** Unique function name the AI can invoke. */
25
- name: string;
26
- /** Human-readable description of what the function does. */
27
- description?: string;
28
- /** JSON-Schema style parameter definitions. */
29
- parameters?: Record<string, unknown>;
30
- }
31
18
  /**
32
19
  * A full function definition registered inline at runtime via
33
20
  * `set_settings.inline_functions`. Mirrors the backend's function record: a
@@ -65,7 +52,10 @@ export interface SendMessageData {
65
52
  trigger_response: boolean;
66
53
  /** Optional ID of the previous message in the conversation thread */
67
54
  previous_item_id?: string;
68
- /** Whether to delay the response (reserved for future use) */
55
+ /**
56
+ * With `trigger_response: true`, the agent finishes its current speech
57
+ * before replying.
58
+ */
69
59
  delay?: boolean;
70
60
  }
71
61
  /**
@@ -83,8 +73,11 @@ export type SetSettingsCommand = {
83
73
  data: {
84
74
  /** Session/connection modality (e.g. `"video"` for the avatar connection). */
85
75
  modality?: string;
86
- /** Functions configured at session start. */
87
- functions?: CompanionFunction[];
76
+ /**
77
+ * IDs of functions already registered on the backend — not definitions.
78
+ * To register a definition at runtime, use `inline_functions`.
79
+ */
80
+ functions?: string[];
88
81
  /**
89
82
  * Full function definitions provided inline at runtime. Used to register
90
83
  * tools MID-SESSION — e.g. the WebMCP bridge pushes the page's live
@@ -639,8 +632,6 @@ export interface NapsterCompanionApiInstance {
639
632
  readonly sessionId: string | undefined;
640
633
  /** Set the position of the SDK on screen (see `Position`). */
641
634
  setPosition: (position: Position) => void;
642
- /** Clear any programmatic position and revert to the configured/default position. */
643
- clearPosition: () => void;
644
635
  /** Update style configuration (e.g., view: round/silhouette/rectangle). */
645
636
  updateStyle: (newStyle: Partial<NonNullable<NapsterCompanionApiConfig["style"]>>) => void;
646
637
  /** Enable a named feature (one of the keys from `FeatureConfig`).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@touchcastllc/napster-companion-api-dev",
3
- "version": "2.1.0-alpha.3",
3
+ "version": "2.1.0-alpha.4",
4
4
  "keywords": [
5
5
  "napster",
6
6
  "companion-api",