@apteva/apteva-kit 0.1.25 → 0.1.26

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.
package/dist/index.js CHANGED
@@ -711,6 +711,18 @@ function generateWidgetContext(enabledWidgets) {
711
711
 
712
712
  `;
713
713
  }
714
+ context += `### Meta field for extended data:
715
+
716
+ `;
717
+ context += `Any widget can include a "meta" field with extended data that isn't displayed but is captured by the UI:
718
+ `;
719
+ context += `- The widget displays from regular props (compact view)
720
+ `;
721
+ context += `- The "meta" field contains full/detailed data for external UI components
722
+ `;
723
+ context += `- Example: \`@ui:list[{"items": [{"id": "1", "title": "Task"}], "meta": {"items": [{"id": "1", "title": "Task", "description": "Full details...", "assignees": ["Alice"]}], "totalCount": 50}}]\`
724
+
725
+ `;
714
726
  context += `### Important notes:
715
727
  `;
716
728
  context += `- JSON must be valid (use double quotes for strings)
@@ -720,6 +732,8 @@ function generateWidgetContext(enabledWidgets) {
720
732
  context += `- You can include multiple widgets in a single response
721
733
  `;
722
734
  context += `- Combine widgets with regular text for context
735
+ `;
736
+ context += `- Use "meta" field when the UI needs more data than what's displayed
723
737
  `;
724
738
  return context;
725
739
  }
@@ -729,6 +743,8 @@ function generateCompactWidgetContext(enabledWidgets) {
729
743
  UI Widgets: Use @ui:type[{props}] syntax.
730
744
  `;
731
745
  context += `Available: ${widgets.join(", ")}
746
+ `;
747
+ context += `Add "meta" field for extended data not shown in widget but captured by UI.
732
748
  `;
733
749
  context += `Examples:
734
750
  `;