@await-widget/runtime 0.0.27 → 0.0.29

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.
@@ -640,6 +640,16 @@ const appCommands = [
640
640
  required: ['widgetId'],
641
641
  },
642
642
  },
643
+ {
644
+ name: 'get-recent-widget-logs',
645
+ usage: 'get-recent-widget-logs --widget-id <id>',
646
+ description: 'Get recent print logs for a widget. Requires Lifetime Pro in Await.',
647
+ inputSchema: {
648
+ type: 'object',
649
+ properties: {widgetId: {type: 'string'}},
650
+ required: ['widgetId'],
651
+ },
652
+ },
643
653
  {
644
654
  name: 'list-widget-intents',
645
655
  usage: 'list-widget-intents --widget-id <id>',
@@ -951,8 +961,9 @@ Examples:
951
961
  npx await-widget
952
962
  npx await-widget --port 4344
953
963
  npx await-widget app open-syncing-widget-detail
954
- npx await-widget app wait-for-widget-ready --widget-id 2
955
- npx await-widget app capture-current-preview --widget-id 2
964
+ npx await-widget app wait-for-widget-ready --widget-id YourWidget
965
+ npx await-widget app capture-current-preview --widget-id YourWidget
966
+ npx await-widget app get-recent-widget-logs --widget-id YourWidget
956
967
 
957
968
  App command options:
958
969
  --workspace <path> Read .await/bridge.json from another package/widget path.
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@await-widget/runtime",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
4
4
  "description": "TypeScript declarations for Await widgets.",
5
5
  "license": "MIT",
6
- "author": "LitoMore",
6
+ "author": "Maundy",
7
+ "contributors": [
8
+ "LitoMore",
9
+ "Mogita"
10
+ ],
7
11
  "type": "module",
8
12
  "repository": {
9
13
  "type": "git",
package/types/bridge.d.ts CHANGED
@@ -130,6 +130,7 @@ type AwaitDefineConfig<T extends Record<string, unknown>, Intents> = {
130
130
  widgetTimeline?: (
131
131
  context: TimelineContext,
132
132
  ) => Timeline<T> | Promise<Timeline<T>>;
133
+ widgetFamilies?: WidgetFamily[];
133
134
  widgetIntents?: {
134
135
  [IntentKey in keyof Intents]: Intents[IntentKey] extends (
135
136
  ...args: infer IntentArguments
package/types/model.d.ts CHANGED
@@ -11,11 +11,11 @@ type WidgetFamily =
11
11
  | 'medium'
12
12
  | 'large'
13
13
  | 'extraLarge'
14
+ | 'extraLargePortrait'
14
15
  | 'fullscreen'
15
16
  | 'accessoryInline'
16
17
  | 'accessoryCircular'
17
- | 'accessoryRectangular'
18
- | 'unknown';
18
+ | 'accessoryRectangular';
19
19
 
20
20
  type SingleNativeView =
21
21
  | string