@await-widget/runtime 0.0.28 → 0.0.30
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/bin/await-widget.js +13 -2
- package/package.json +1 -1
- package/types/bridge.d.ts +1 -0
- package/types/model.d.ts +6 -0
package/bin/await-widget.js
CHANGED
|
@@ -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
|
|
955
|
-
npx await-widget app capture-current-preview --widget-id
|
|
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
package/types/bridge.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ export declare const AwaitStore: {
|
|
|
88
88
|
delete(key: string): void;
|
|
89
89
|
set(key: string, value: Encodable): void;
|
|
90
90
|
};
|
|
91
|
+
/** `AwaitFile` can interact only with files located within the widget directory. Do not access hidden paths or parent directories. */
|
|
91
92
|
export declare const AwaitFile: {
|
|
92
93
|
files(path: string): string[];
|
|
93
94
|
readJSON(path: string): unknown;
|
package/types/model.d.ts
CHANGED
|
@@ -92,9 +92,13 @@ type AwaitWeatherHourly = {
|
|
|
92
92
|
condition: string;
|
|
93
93
|
symbolName: string;
|
|
94
94
|
temperatureCelsius: number;
|
|
95
|
+
apparentTemperatureCelsius: number;
|
|
95
96
|
humidity: number;
|
|
96
97
|
uvIndex: number;
|
|
97
98
|
windSpeedMetersPerSecond: number;
|
|
99
|
+
windDirectionDegrees: number;
|
|
100
|
+
pressureHectopascals: number;
|
|
101
|
+
visibilityKilometers: number;
|
|
98
102
|
precipitationChance: number;
|
|
99
103
|
};
|
|
100
104
|
|
|
@@ -106,6 +110,8 @@ type AwaitWeatherDaily = {
|
|
|
106
110
|
lowTemperatureCelsius: number;
|
|
107
111
|
precipitationChance: number;
|
|
108
112
|
uvIndex: number;
|
|
113
|
+
windSpeedMetersPerSecond: number;
|
|
114
|
+
windDirectionDegrees: number;
|
|
109
115
|
};
|
|
110
116
|
|
|
111
117
|
type AwaitWeatherResult = {
|