@evandu/super-pi 0.1.65 → 0.1.66

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.
@@ -95,11 +95,26 @@ export type Message = {
95
95
  toolCalls?: ToolCallBlock[];
96
96
  thinking?: string;
97
97
  images?: MessageImage[];
98
+ attachments?: MessageAttachments;
98
99
  agentIdentity?: {
99
100
  id?: string;
100
101
  name: string;
101
102
  };
102
103
  };
104
+ /**
105
+ * A piece of context attached to a user message that is shown as its OWN block under the bubble, rather
106
+ * than flattened into the prompt. Today: a skill the person picked from the slash menu - the model gets
107
+ * the skill text inlined into the prompt for execution, and the transcript shows the user that the
108
+ * skill they asked for is the one that was loaded. Collapsed by default because skill bodies can be
109
+ * hundreds of lines and the user already chose the skill by name.
110
+ */
111
+ export type MessageAttachment = {
112
+ kind: "skill";
113
+ id: string;
114
+ name: string;
115
+ content: string;
116
+ };
117
+ export type MessageAttachments = MessageAttachment[];
103
118
  /**
104
119
  * ONE PARAMETER OF A TOOL CALL, as a call block lists it, and the boundary that keeps Pi's arguments out
105
120
  * of `state.json`.
@@ -674,6 +689,7 @@ export type QueuedMessage = {
674
689
  priority?: boolean;
675
690
  createdAt: string;
676
691
  images?: MessageImage[];
692
+ attachments?: MessageAttachments;
677
693
  };
678
694
  /**
679
695
  * What Pi reports about ITS OWN queue, forwarded to the browser as it arrives.
@@ -914,6 +930,7 @@ export type ClientCommandBody =
914
930
  conversationId: string;
915
931
  content: string;
916
932
  images?: MessageImage[];
933
+ attachments?: MessageAttachments;
917
934
  }
918
935
  /**
919
936
  * Revert the conversation to the state right AFTER one message: every message after it is removed from
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evandu/super-pi",
3
- "version": "0.1.65",
3
+ "version": "0.1.66",
4
4
  "description": "Web control plane and companion for Pi",
5
5
  "license": "MIT",
6
6
  "type": "module",