@d34dman/flowdrop 0.0.42 → 0.0.43

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.
@@ -266,6 +266,8 @@ export interface InterruptMessageMetadata {
266
266
  max_selections?: number;
267
267
  /** Username of the person who resolved the interrupt */
268
268
  resolvedByUserName?: string;
269
+ /** User ID of the person who resolved the interrupt */
270
+ resolvedByUserId?: string;
269
271
  }
270
272
  /**
271
273
  * Type guard to check if message metadata indicates an interrupt
@@ -49,7 +49,8 @@ export function extractInterruptMetadata(metadata) {
49
49
  multiple: metadata.multiple,
50
50
  min_selections: metadata.min_selections,
51
51
  max_selections: metadata.max_selections,
52
- resolvedByUserName: metadata.resolvedByUserName
52
+ resolvedByUserName: metadata.resolvedByUserName,
53
+ resolvedByUserId: metadata.resolvedByUserId
53
54
  };
54
55
  }
55
56
  /**
@@ -71,7 +72,12 @@ export function metadataToInterrupt(metadata, messageId, content) {
71
72
  messageId,
72
73
  createdAt: new Date().toISOString(),
73
74
  allowCancel: metadata.allow_cancel ?? true,
74
- config: buildInterruptConfig(metadata, content)
75
+ config: buildInterruptConfig(metadata, content),
76
+ // Include metadata for resolved-by info (passed through from message metadata)
77
+ metadata: {
78
+ resolvedByUserName: metadata.resolvedByUserName,
79
+ resolvedByUserId: metadata.resolvedByUserId
80
+ }
75
81
  };
76
82
  return baseInterrupt;
77
83
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@d34dman/flowdrop",
3
3
  "license": "MIT",
4
4
  "private": false,
5
- "version": "0.0.42",
5
+ "version": "0.0.43",
6
6
  "scripts": {
7
7
  "dev": "vite dev",
8
8
  "build": "vite build && npm run prepack",