@teamvibe/poller 0.1.38 → 0.1.39

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.
@@ -104,6 +104,9 @@ function buildPrompt(msg, resumeHint) {
104
104
  if (msg.type === 'approval_response' && msg.approval) {
105
105
  prompt += `\n\n**Action Response:** User ${msg.approval.approved ? 'APPROVED' : 'REJECTED'} the pending action: ${msg.approval.action_id}`;
106
106
  }
107
+ if (msg.type === 'button_click' && msg.button) {
108
+ prompt += `\n\n**Button Click:** User clicked button \`${msg.button.action_id}\` with value \`${msg.button.value}\``;
109
+ }
107
110
  if (resumeHint) {
108
111
  prompt += `\n\n${resumeHint}`;
109
112
  }
package/dist/types.d.ts CHANGED
@@ -19,11 +19,15 @@ export interface TeamVibeQueueMessage {
19
19
  message_ts: string;
20
20
  };
21
21
  };
22
- type: 'message' | 'approval_response';
22
+ type: 'message' | 'approval_response' | 'button_click';
23
23
  approval?: {
24
24
  action_id: string;
25
25
  approved: boolean;
26
26
  };
27
+ button?: {
28
+ action_id: string;
29
+ value: string;
30
+ };
27
31
  teamvibe: {
28
32
  workspaceId: string;
29
33
  botId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamvibe/poller",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {