@limrun/api 0.70.2 → 0.71.0
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/CHANGELOG.md +22 -0
- package/index.d.mts +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/persist-option.d.mts +4 -0
- package/internal/persist-option.d.mts.map +1 -1
- package/internal/persist-option.d.ts +4 -0
- package/internal/persist-option.d.ts.map +1 -1
- package/internal/persist-option.js +10 -3
- package/internal/persist-option.js.map +1 -1
- package/internal/persist-option.mjs +9 -3
- package/internal/persist-option.mjs.map +1 -1
- package/internal/session-stream.d.mts +6 -5
- package/internal/session-stream.d.mts.map +1 -1
- package/internal/session-stream.d.ts +6 -5
- package/internal/session-stream.d.ts.map +1 -1
- package/internal/session-stream.js +6 -5
- package/internal/session-stream.js.map +1 -1
- package/internal/session-stream.mjs +6 -5
- package/internal/session-stream.mjs.map +1 -1
- package/ios-client.d.mts +25 -1
- package/ios-client.d.mts.map +1 -1
- package/ios-client.d.ts +25 -1
- package/ios-client.d.ts.map +1 -1
- package/ios-client.js +22 -12
- package/ios-client.js.map +1 -1
- package/ios-client.mjs +23 -13
- package/ios-client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/android-instances.d.mts +11 -4
- package/resources/android-instances.d.mts.map +1 -1
- package/resources/android-instances.d.ts +11 -4
- package/resources/android-instances.d.ts.map +1 -1
- package/resources/gradle-instances.d.mts +11 -4
- package/resources/gradle-instances.d.mts.map +1 -1
- package/resources/gradle-instances.d.ts +11 -4
- package/resources/gradle-instances.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/ios-instances-helpers.d.mts +4 -0
- package/resources/ios-instances-helpers.d.mts.map +1 -1
- package/resources/ios-instances-helpers.d.ts +4 -0
- package/resources/ios-instances-helpers.d.ts.map +1 -1
- package/resources/ios-instances-helpers.js +6 -0
- package/resources/ios-instances-helpers.js.map +1 -1
- package/resources/ios-instances-helpers.mjs +6 -0
- package/resources/ios-instances-helpers.mjs.map +1 -1
- package/resources/ios-instances.d.mts +11 -4
- package/resources/ios-instances.d.mts.map +1 -1
- package/resources/ios-instances.d.ts +11 -4
- package/resources/ios-instances.d.ts.map +1 -1
- package/resources/session-artifacts.d.mts +46 -5
- package/resources/session-artifacts.d.mts.map +1 -1
- package/resources/session-artifacts.d.ts +46 -5
- package/resources/session-artifacts.d.ts.map +1 -1
- package/resources/session-artifacts.js +3 -3
- package/resources/session-artifacts.js.map +1 -1
- package/resources/session-artifacts.mjs +3 -3
- package/resources/session-artifacts.mjs.map +1 -1
- package/resources/xcode-instances.d.mts +11 -4
- package/resources/xcode-instances.d.mts.map +1 -1
- package/resources/xcode-instances.d.ts +11 -4
- package/resources/xcode-instances.d.ts.map +1 -1
- package/src/index.ts +2 -0
- package/src/internal/persist-option.ts +10 -5
- package/src/internal/session-stream.ts +6 -5
- package/src/ios-client.ts +64 -18
- package/src/resources/android-instances.ts +12 -4
- package/src/resources/gradle-instances.ts +12 -4
- package/src/resources/index.ts +2 -0
- package/src/resources/ios-instances-helpers.ts +7 -0
- package/src/resources/ios-instances.ts +12 -4
- package/src/resources/session-artifacts.ts +63 -8
- package/src/resources/xcode-instances.ts +12 -4
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/ios-client.ts
CHANGED
|
@@ -31,9 +31,9 @@ import {
|
|
|
31
31
|
type StartForwardHttpProxyOptions,
|
|
32
32
|
} from './http-proxy';
|
|
33
33
|
import { startXcrunShim as startClientXcrunShim } from './ios-shim';
|
|
34
|
-
import { persistFields, type PersistOption } from './internal/persist-option';
|
|
34
|
+
import { persistFields, ttlFields, type PersistOption } from './internal/persist-option';
|
|
35
35
|
import { streamSessionEntries } from './internal/session-stream';
|
|
36
|
-
import type { SessionLogLine, SessionEvent } from './resources/session-artifacts';
|
|
36
|
+
import type { SessionLogLine, SessionEvent, PerformanceSample } from './resources/session-artifacts';
|
|
37
37
|
import { LogStream } from './log-stream';
|
|
38
38
|
|
|
39
39
|
export { type PersistOption } from './internal/persist-option';
|
|
@@ -1087,6 +1087,31 @@ export type InstanceClient = {
|
|
|
1087
1087
|
onError?: (error: Error) => void;
|
|
1088
1088
|
}) => () => void;
|
|
1089
1089
|
|
|
1090
|
+
/**
|
|
1091
|
+
* Start saving the running apps' {@link PerformanceSample}s. The instance
|
|
1092
|
+
* samples whether or not anything listens, so this capture always persists:
|
|
1093
|
+
* it is uploaded to Limrun's bucket when it stops or the instance
|
|
1094
|
+
* terminates, kept for `ttlSeconds` (server default 72h); list it with
|
|
1095
|
+
* `iosInstances.listPerformanceCaptures`. One performance capture runs at a
|
|
1096
|
+
* time; the server rejects a second start.
|
|
1097
|
+
*/
|
|
1098
|
+
startPerformanceCapture: (options?: { ttlSeconds?: number }) => Promise<void>;
|
|
1099
|
+
|
|
1100
|
+
/** Stop the active performance capture and upload it. */
|
|
1101
|
+
stopPerformanceCapture: () => Promise<void>;
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* Tail the running apps' {@link PerformanceSample}s; no capture is needed.
|
|
1105
|
+
* On connect the instance replays its recent samples, so a late subscriber
|
|
1106
|
+
* still sees history. Same reconnect and lifecycle semantics as
|
|
1107
|
+
* {@link streamAppLogCapture}, except that a gap longer than the replay
|
|
1108
|
+
* window loses the samples in between.
|
|
1109
|
+
*/
|
|
1110
|
+
streamPerformance: (handlers: {
|
|
1111
|
+
onSample: (sample: PerformanceSample) => void;
|
|
1112
|
+
onError?: (error: Error) => void;
|
|
1113
|
+
}) => () => void;
|
|
1114
|
+
|
|
1090
1115
|
/**
|
|
1091
1116
|
* Play an audio file as the simulator's microphone input. Stage the file on
|
|
1092
1117
|
* the instance first with `pushFile` (no bundle ID); `path` is the same
|
|
@@ -2139,6 +2164,8 @@ export async function createInstanceClient(options: InstanceClientOptions): Prom
|
|
|
2139
2164
|
stopAppLogCaptureResult: () => undefined,
|
|
2140
2165
|
startEventCaptureResult: () => undefined,
|
|
2141
2166
|
stopEventCaptureResult: () => undefined,
|
|
2167
|
+
startPerformanceCaptureResult: () => undefined,
|
|
2168
|
+
stopPerformanceCaptureResult: () => undefined,
|
|
2142
2169
|
cameraControlResult: () => undefined,
|
|
2143
2170
|
playOnMicrophoneResult: (msg): IosPlayOnMicrophoneResult => ({
|
|
2144
2171
|
duration: msg.duration ?? 0,
|
|
@@ -2349,6 +2376,9 @@ export async function createInstanceClient(options: InstanceClientOptions): Prom
|
|
|
2349
2376
|
stopEventCapture,
|
|
2350
2377
|
streamAppLogCapture,
|
|
2351
2378
|
streamEventCapture,
|
|
2379
|
+
startPerformanceCapture,
|
|
2380
|
+
stopPerformanceCapture,
|
|
2381
|
+
streamPerformance,
|
|
2352
2382
|
playOnMicrophone,
|
|
2353
2383
|
stopMicrophonePlayback,
|
|
2354
2384
|
microphoneStatus,
|
|
@@ -2872,8 +2902,11 @@ export async function createInstanceClient(options: InstanceClientOptions): Prom
|
|
|
2872
2902
|
});
|
|
2873
2903
|
};
|
|
2874
2904
|
|
|
2905
|
+
// A stop answers once its persisted capture is uploaded, which grows with the capture's length.
|
|
2906
|
+
const captureStopTimeoutMs = 300_000;
|
|
2907
|
+
|
|
2875
2908
|
const stopAppLogCapture = async (): Promise<void> => {
|
|
2876
|
-
await sendRequest<void>('stopAppLogCapture');
|
|
2909
|
+
await sendRequest<void>('stopAppLogCapture', {}, undefined, captureStopTimeoutMs);
|
|
2877
2910
|
};
|
|
2878
2911
|
|
|
2879
2912
|
const startEventCapture = async (opts?: { persist?: PersistOption }): Promise<void> => {
|
|
@@ -2881,30 +2914,43 @@ export async function createInstanceClient(options: InstanceClientOptions): Prom
|
|
|
2881
2914
|
};
|
|
2882
2915
|
|
|
2883
2916
|
const stopEventCapture = async (): Promise<void> => {
|
|
2884
|
-
await sendRequest<void>('stopEventCapture');
|
|
2917
|
+
await sendRequest<void>('stopEventCapture', {}, undefined, captureStopTimeoutMs);
|
|
2918
|
+
};
|
|
2919
|
+
|
|
2920
|
+
const startPerformanceCapture = async (opts?: { ttlSeconds?: number }): Promise<void> => {
|
|
2921
|
+
await sendRequest<void>('startPerformanceCapture', ttlFields(opts?.ttlSeconds));
|
|
2885
2922
|
};
|
|
2886
2923
|
|
|
2924
|
+
const stopPerformanceCapture = async (): Promise<void> => {
|
|
2925
|
+
await sendRequest<void>('stopPerformanceCapture', {}, undefined, captureStopTimeoutMs);
|
|
2926
|
+
};
|
|
2927
|
+
|
|
2928
|
+
const tailSession = <T extends { ts: number }>(
|
|
2929
|
+
stream: 'applogs' | 'events' | 'performance',
|
|
2930
|
+
onEntry: (entry: T) => void,
|
|
2931
|
+
onError?: (error: Error) => void,
|
|
2932
|
+
): (() => void) =>
|
|
2933
|
+
streamSessionEntries<T>({
|
|
2934
|
+
url: `${options.apiUrl}/session/${stream}/events`,
|
|
2935
|
+
token: options.token,
|
|
2936
|
+
onEntry,
|
|
2937
|
+
onError,
|
|
2938
|
+
});
|
|
2939
|
+
|
|
2887
2940
|
const streamAppLogCapture = (handlers: {
|
|
2888
2941
|
onLine: (line: SessionLogLine) => void;
|
|
2889
2942
|
onError?: (error: Error) => void;
|
|
2890
|
-
}): (() => void) =>
|
|
2891
|
-
streamSessionEntries<SessionLogLine>({
|
|
2892
|
-
url: `${options.apiUrl}/session/applogs/events`,
|
|
2893
|
-
token: options.token,
|
|
2894
|
-
onEntry: handlers.onLine,
|
|
2895
|
-
onError: handlers.onError,
|
|
2896
|
-
});
|
|
2943
|
+
}): (() => void) => tailSession('applogs', handlers.onLine, handlers.onError);
|
|
2897
2944
|
|
|
2898
2945
|
const streamEventCapture = (handlers: {
|
|
2899
2946
|
onEvent: (event: SessionEvent) => void;
|
|
2900
2947
|
onError?: (error: Error) => void;
|
|
2901
|
-
}): (() => void) =>
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
});
|
|
2948
|
+
}): (() => void) => tailSession('events', handlers.onEvent, handlers.onError);
|
|
2949
|
+
|
|
2950
|
+
const streamPerformance = (handlers: {
|
|
2951
|
+
onSample: (sample: PerformanceSample) => void;
|
|
2952
|
+
onError?: (error: Error) => void;
|
|
2953
|
+
}): (() => void) => tailSession('performance', handlers.onSample, handlers.onError);
|
|
2908
2954
|
|
|
2909
2955
|
const stopRecording = async (saveTo: { presignedUrl?: string; localPath?: string }): Promise<string> => {
|
|
2910
2956
|
await sendRequest<void>('stopVideoRecording', {
|
|
@@ -77,6 +77,12 @@ export namespace AndroidInstance {
|
|
|
77
77
|
labels?: { [key: string]: string };
|
|
78
78
|
|
|
79
79
|
terminatedAt?: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Billing cutoff for a deletion requested while the region is unavailable.
|
|
83
|
+
* Absent for normal regional deletions.
|
|
84
|
+
*/
|
|
85
|
+
terminatingAt?: string;
|
|
80
86
|
}
|
|
81
87
|
|
|
82
88
|
export interface Spec {
|
|
@@ -120,7 +126,7 @@ export namespace AndroidInstance {
|
|
|
120
126
|
*/
|
|
121
127
|
token?: string;
|
|
122
128
|
|
|
123
|
-
state: 'unknown' | 'creating' | 'assigned' | 'ready' | 'terminated';
|
|
129
|
+
state: 'unknown' | 'creating' | 'assigned' | 'ready' | 'terminating' | 'terminated';
|
|
124
130
|
|
|
125
131
|
adbWebSocketUrl?: string;
|
|
126
132
|
|
|
@@ -147,13 +153,15 @@ export namespace AndroidInstance {
|
|
|
147
153
|
targetHttpPortUrlPrefix?: string;
|
|
148
154
|
|
|
149
155
|
/**
|
|
150
|
-
* Machine-readable reason
|
|
151
|
-
*
|
|
152
|
-
*
|
|
156
|
+
* Machine-readable reason for instance termination. Present when state is
|
|
157
|
+
* "terminating" or "terminated". New values may be added over time, so treat any
|
|
158
|
+
* unrecognized value as "Unknown". Known values:
|
|
153
159
|
*
|
|
154
160
|
* - "UserRequested": terminated by a delete request to the API.
|
|
155
161
|
* - "InactivityTimeout": the timeout given in spec.inactivityTimeout elapsed.
|
|
156
162
|
* - "HardTimeout": the timeout given in spec.hardTimeout elapsed.
|
|
163
|
+
* - "CapacityTimeout": no instance was free when it was created, and none freed
|
|
164
|
+
* up before its wait for capacity ended.
|
|
157
165
|
* - "Unknown": terminated for a cause the platform did not attribute, including
|
|
158
166
|
* instances that failed to get ready during creation. See errorMessage for
|
|
159
167
|
* details when available.
|
|
@@ -78,6 +78,12 @@ export namespace GradleInstance {
|
|
|
78
78
|
labels?: { [key: string]: string };
|
|
79
79
|
|
|
80
80
|
terminatedAt?: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Billing cutoff for a deletion requested while the region is unavailable.
|
|
84
|
+
* Absent for normal regional deletions.
|
|
85
|
+
*/
|
|
86
|
+
terminatingAt?: string;
|
|
81
87
|
}
|
|
82
88
|
|
|
83
89
|
export interface Spec {
|
|
@@ -102,20 +108,22 @@ export namespace GradleInstance {
|
|
|
102
108
|
*/
|
|
103
109
|
token?: string;
|
|
104
110
|
|
|
105
|
-
state: 'unknown' | 'creating' | 'assigned' | 'ready' | 'terminated';
|
|
111
|
+
state: 'unknown' | 'creating' | 'assigned' | 'ready' | 'terminating' | 'terminated';
|
|
106
112
|
|
|
107
113
|
apiUrl?: string;
|
|
108
114
|
|
|
109
115
|
errorMessage?: string;
|
|
110
116
|
|
|
111
117
|
/**
|
|
112
|
-
* Machine-readable reason
|
|
113
|
-
*
|
|
114
|
-
*
|
|
118
|
+
* Machine-readable reason for instance termination. Present when state is
|
|
119
|
+
* "terminating" or "terminated". New values may be added over time, so treat any
|
|
120
|
+
* unrecognized value as "Unknown". Known values:
|
|
115
121
|
*
|
|
116
122
|
* - "UserRequested": terminated by a delete request to the API.
|
|
117
123
|
* - "InactivityTimeout": the timeout given in spec.inactivityTimeout elapsed.
|
|
118
124
|
* - "HardTimeout": the timeout given in spec.hardTimeout elapsed.
|
|
125
|
+
* - "CapacityTimeout": no instance was free when it was created, and none freed
|
|
126
|
+
* up before its wait for capacity ended.
|
|
119
127
|
* - "Unknown": terminated for a cause the platform did not attribute, including
|
|
120
128
|
* instances that failed to get ready during creation. See errorMessage for
|
|
121
129
|
* details when available.
|
package/src/resources/index.ts
CHANGED
|
@@ -42,4 +42,11 @@ export class IosInstances extends GeneratedIosInstances {
|
|
|
42
42
|
listEvents(id: string, options?: RequestOptions): APIPromise<SessionArtifact[]> {
|
|
43
43
|
return this.listSessionArtifacts(id, 'eventLog', options);
|
|
44
44
|
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* List the instance's persisted performance captures.
|
|
48
|
+
*/
|
|
49
|
+
listPerformanceCaptures(id: string, options?: RequestOptions): APIPromise<SessionArtifact[]> {
|
|
50
|
+
return this.listSessionArtifacts(id, 'performance', options);
|
|
51
|
+
}
|
|
45
52
|
}
|
|
@@ -77,6 +77,12 @@ export namespace IosInstance {
|
|
|
77
77
|
labels?: { [key: string]: string };
|
|
78
78
|
|
|
79
79
|
terminatedAt?: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Billing cutoff for a deletion requested while the region is unavailable.
|
|
83
|
+
* Absent for normal regional deletions.
|
|
84
|
+
*/
|
|
85
|
+
terminatingAt?: string;
|
|
80
86
|
}
|
|
81
87
|
|
|
82
88
|
export interface Spec {
|
|
@@ -120,7 +126,7 @@ export namespace IosInstance {
|
|
|
120
126
|
*/
|
|
121
127
|
token?: string;
|
|
122
128
|
|
|
123
|
-
state: 'unknown' | 'creating' | 'assigned' | 'ready' | 'terminated';
|
|
129
|
+
state: 'unknown' | 'creating' | 'assigned' | 'ready' | 'terminating' | 'terminated';
|
|
124
130
|
|
|
125
131
|
apiUrl?: string;
|
|
126
132
|
|
|
@@ -143,13 +149,15 @@ export namespace IosInstance {
|
|
|
143
149
|
targetHttpPortUrlPrefix?: string;
|
|
144
150
|
|
|
145
151
|
/**
|
|
146
|
-
* Machine-readable reason
|
|
147
|
-
*
|
|
148
|
-
*
|
|
152
|
+
* Machine-readable reason for instance termination. Present when state is
|
|
153
|
+
* "terminating" or "terminated". New values may be added over time, so treat any
|
|
154
|
+
* unrecognized value as "Unknown". Known values:
|
|
149
155
|
*
|
|
150
156
|
* - "UserRequested": terminated by a delete request to the API.
|
|
151
157
|
* - "InactivityTimeout": the timeout given in spec.inactivityTimeout elapsed.
|
|
152
158
|
* - "HardTimeout": the timeout given in spec.hardTimeout elapsed.
|
|
159
|
+
* - "CapacityTimeout": no instance was free when it was created, and none freed
|
|
160
|
+
* up before its wait for capacity ended.
|
|
153
161
|
* - "Unknown": terminated for a cause the platform did not attribute, including
|
|
154
162
|
* instances that failed to get ready during creation. See errorMessage for
|
|
155
163
|
* details when available.
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
// Hand-written: the session-artifact list endpoint is not in the generated
|
|
2
2
|
// OpenAPI surface yet. Shared by the iOS and Android instance helpers.
|
|
3
|
-
// SessionLogLine and
|
|
4
|
-
// limrun repo; the runtimes emit the same JSON
|
|
5
|
-
// persisted JSONL artifacts.
|
|
3
|
+
// SessionLogLine, SessionEvent and PerformanceSample mirror
|
|
4
|
+
// pkg/artifacts/contract.go in the limrun repo; the runtimes emit the same JSON
|
|
5
|
+
// over live SSE and into the persisted JSONL artifacts.
|
|
6
6
|
|
|
7
7
|
/** The kind of a persisted session capture. */
|
|
8
|
-
export type SessionArtifactKind = 'recording' | 'appLog' | 'eventLog' | 'networkLog';
|
|
8
|
+
export type SessionArtifactKind = 'recording' | 'appLog' | 'eventLog' | 'networkLog' | 'performance';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* One persisted session capture of an instance: a video recording, an app log
|
|
12
|
-
* capture, a coalesced event log,
|
|
13
|
-
* director's
|
|
14
|
-
*
|
|
12
|
+
* capture, a coalesced event log, a HAR network log, or iOS app performance
|
|
13
|
+
* samples. Returned by the director's
|
|
14
|
+
* GET /v1/{ios,android}_instances/{id}/session_artifacts endpoint, optionally
|
|
15
|
+
* narrowed with its kind query parameter.
|
|
15
16
|
*/
|
|
16
17
|
export interface SessionArtifact {
|
|
17
18
|
id: string;
|
|
@@ -38,7 +39,8 @@ export interface SessionArtifact {
|
|
|
38
39
|
|
|
39
40
|
/**
|
|
40
41
|
* Short-lived presigned GET URL for the raw artifact: MP4 for recordings,
|
|
41
|
-
* JSONL for app logs and
|
|
42
|
+
* JSONL for app logs, event logs and performance samples, HAR for network
|
|
43
|
+
* logs.
|
|
42
44
|
*/
|
|
43
45
|
downloadUrl: string;
|
|
44
46
|
}
|
|
@@ -93,3 +95,56 @@ export interface SessionEvent {
|
|
|
93
95
|
*/
|
|
94
96
|
summary?: string;
|
|
95
97
|
}
|
|
98
|
+
|
|
99
|
+
/** One thread's share of an app's CPU in a {@link PerformanceSample}. */
|
|
100
|
+
export interface PerformanceThread {
|
|
101
|
+
/** The thread's name, `main` for the main thread, or empty. */
|
|
102
|
+
name: string;
|
|
103
|
+
|
|
104
|
+
/** Share of one core; 100 is one fully busy core. */
|
|
105
|
+
cpuPercent: number;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* One running app's resource use at one moment, the figures Xcode's debug
|
|
110
|
+
* gauges show. iOS instances sample every running app they installed once a
|
|
111
|
+
* second, delivered live by `streamPerformance` and stored one-per-line in
|
|
112
|
+
* `performance` artifacts. Rates cover the second since the previous sample of
|
|
113
|
+
* the same process, so a process's first sample has none.
|
|
114
|
+
*/
|
|
115
|
+
export interface PerformanceSample {
|
|
116
|
+
/** Epoch milliseconds, same clock as SessionLogLine. */
|
|
117
|
+
ts: number;
|
|
118
|
+
|
|
119
|
+
bundleId: string;
|
|
120
|
+
|
|
121
|
+
/** Changes when the app relaunches. */
|
|
122
|
+
pid: number;
|
|
123
|
+
|
|
124
|
+
/** The process start in epoch milliseconds. */
|
|
125
|
+
startedAt: number;
|
|
126
|
+
|
|
127
|
+
/** Set for XCTest runners such as WebDriverAgent. */
|
|
128
|
+
testRunner?: boolean;
|
|
129
|
+
|
|
130
|
+
/** One fully busy core is 100, so a multithreaded app can exceed it. */
|
|
131
|
+
cpuPercent?: number;
|
|
132
|
+
|
|
133
|
+
/** Physical footprint, the figure Xcode's memory gauge and iOS's memory limit use. */
|
|
134
|
+
footprintBytes: number;
|
|
135
|
+
|
|
136
|
+
/** The highest footprint over the process lifetime. */
|
|
137
|
+
peakFootprintBytes: number;
|
|
138
|
+
|
|
139
|
+
threadCount: number;
|
|
140
|
+
|
|
141
|
+
diskReadBytesPerSecond?: number;
|
|
142
|
+
|
|
143
|
+
diskWriteBytesPerSecond?: number;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Up to five threads using at least 0.1% of a core, busiest first. They add
|
|
147
|
+
* up to roughly, not exactly, the app's `cpuPercent`.
|
|
148
|
+
*/
|
|
149
|
+
topThreads?: PerformanceThread[];
|
|
150
|
+
}
|
|
@@ -77,6 +77,12 @@ export namespace XcodeInstance {
|
|
|
77
77
|
labels?: { [key: string]: string };
|
|
78
78
|
|
|
79
79
|
terminatedAt?: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Billing cutoff for a deletion requested while the region is unavailable.
|
|
83
|
+
* Absent for normal regional deletions.
|
|
84
|
+
*/
|
|
85
|
+
terminatingAt?: string;
|
|
80
86
|
}
|
|
81
87
|
|
|
82
88
|
export interface Spec {
|
|
@@ -101,20 +107,22 @@ export namespace XcodeInstance {
|
|
|
101
107
|
*/
|
|
102
108
|
token?: string;
|
|
103
109
|
|
|
104
|
-
state: 'unknown' | 'creating' | 'assigned' | 'ready' | 'terminated';
|
|
110
|
+
state: 'unknown' | 'creating' | 'assigned' | 'ready' | 'terminating' | 'terminated';
|
|
105
111
|
|
|
106
112
|
apiUrl?: string;
|
|
107
113
|
|
|
108
114
|
errorMessage?: string;
|
|
109
115
|
|
|
110
116
|
/**
|
|
111
|
-
* Machine-readable reason
|
|
112
|
-
*
|
|
113
|
-
*
|
|
117
|
+
* Machine-readable reason for instance termination. Present when state is
|
|
118
|
+
* "terminating" or "terminated". New values may be added over time, so treat any
|
|
119
|
+
* unrecognized value as "Unknown". Known values:
|
|
114
120
|
*
|
|
115
121
|
* - "UserRequested": terminated by a delete request to the API.
|
|
116
122
|
* - "InactivityTimeout": the timeout given in spec.inactivityTimeout elapsed.
|
|
117
123
|
* - "HardTimeout": the timeout given in spec.hardTimeout elapsed.
|
|
124
|
+
* - "CapacityTimeout": no instance was free when it was created, and none freed
|
|
125
|
+
* up before its wait for capacity ended.
|
|
118
126
|
* - "Unknown": terminated for a cause the platform did not attribute, including
|
|
119
127
|
* instances that failed to get ready during creation. See errorMessage for
|
|
120
128
|
* details when available.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.71.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.71.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.71.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.71.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|