eas-cli 23.1.0 → 24.0.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/README.md +424 -226
- package/build/api.d.ts +1 -0
- package/build/api.js +12 -0
- package/build/build/utils/url.d.ts +1 -0
- package/build/build/utils/url.js +4 -0
- package/build/channel/protection.d.ts +4 -0
- package/build/channel/protection.js +49 -0
- package/build/channel/queries.d.ts +6 -0
- package/build/channel/queries.js +5 -1
- package/build/commandUtils/workflow/logs/fetchLogs.d.ts +5 -0
- package/build/commandUtils/workflow/logs/fetchLogs.js +24 -0
- package/build/commandUtils/workflow/logs/parseLogs.d.ts +14 -0
- package/build/commandUtils/workflow/logs/parseLogs.js +69 -0
- package/build/commandUtils/workflow/logs/watcher.d.ts +32 -0
- package/build/commandUtils/workflow/logs/watcher.js +162 -0
- package/build/commandUtils/workflow/stateMachine.js +2 -1
- package/build/commandUtils/workflow/types.d.ts +12 -5
- package/build/commandUtils/workflow/utils.d.ts +9 -5
- package/build/commandUtils/workflow/utils.js +144 -146
- package/build/commands/channel/protect.d.ts +16 -0
- package/build/commands/channel/protect.js +68 -0
- package/build/commands/channel/unprotect.d.ts +16 -0
- package/build/commands/channel/unprotect.js +78 -0
- package/build/commands/observe/errors.d.ts +27 -0
- package/build/commands/observe/errors.js +122 -0
- package/build/commands/observe/event.d.ts +18 -0
- package/build/commands/observe/event.js +149 -0
- package/build/commands/observe/events.d.ts +2 -0
- package/build/commands/observe/events.js +10 -4
- package/build/commands/observe/metrics-summary.d.ts +1 -0
- package/build/commands/observe/metrics-summary.js +3 -2
- package/build/commands/observe/metrics.d.ts +2 -0
- package/build/commands/observe/metrics.js +8 -4
- package/build/commands/observe/routes.d.ts +2 -1
- package/build/commands/observe/routes.js +5 -5
- package/build/commands/observe/session.d.ts +1 -0
- package/build/commands/observe/session.js +14 -8
- package/build/commands/observe/versions.d.ts +1 -0
- package/build/commands/observe/versions.js +3 -2
- package/build/commands/project/status.d.ts +16 -0
- package/build/commands/project/status.js +47 -0
- package/build/commands/simulator/get.js +5 -1
- package/build/commands/simulator/index.d.ts +1 -0
- package/build/commands/simulator/index.js +16 -2
- package/build/commands/simulator/list.d.ts +1 -0
- package/build/commands/simulator/list.js +9 -0
- package/build/commands/workflow/run.d.ts +8 -0
- package/build/commands/workflow/run.js +27 -0
- package/build/commands/workflow/ssh.d.ts +31 -0
- package/build/commands/workflow/ssh.js +190 -0
- package/build/credentials/ios/credentials.d.ts +5 -3
- package/build/credentials/ios/utils/printCredentials.js +6 -1
- package/build/graphql/generated.d.ts +2474 -1079
- package/build/graphql/generated.js +71 -16
- package/build/graphql/mutations/RealtimeLogsMutation.d.ts +6 -0
- package/build/graphql/mutations/RealtimeLogsMutation.js +40 -0
- package/build/graphql/mutations/WorkflowRunMutation.d.ts +3 -2
- package/build/graphql/mutations/WorkflowRunMutation.js +4 -1
- package/build/graphql/queries/AppStoreConnectApiKeyQuery.d.ts +1 -1
- package/build/graphql/queries/AppStoreConnectApiKeyQuery.js +1 -1
- package/build/graphql/queries/ChannelQuery.js +2 -0
- package/build/graphql/queries/DeviceRunSessionQuery.js +10 -0
- package/build/graphql/queries/ObserveQuery.d.ts +62 -30
- package/build/graphql/queries/ObserveQuery.js +276 -121
- package/build/graphql/queries/SubmissionQuery.d.ts +6 -1
- package/build/graphql/queries/SubmissionQuery.js +41 -0
- package/build/graphql/queries/WorkflowJobSshQuery.d.ts +20 -0
- package/build/graphql/queries/WorkflowJobSshQuery.js +133 -0
- package/build/graphql/types/Observe.d.ts +5 -3
- package/build/graphql/types/Observe.js +80 -21
- package/build/graphql/types/UpdateChannelBasicInfo.js +1 -0
- package/build/observe/fetchCustomEvents.d.ts +6 -4
- package/build/observe/fetchCustomEvents.js +4 -2
- package/build/observe/fetchErrors.d.ts +32 -0
- package/build/observe/fetchErrors.js +42 -0
- package/build/observe/fetchEvents.d.ts +9 -6
- package/build/observe/fetchEvents.js +16 -17
- package/build/observe/fetchMetrics.d.ts +2 -2
- package/build/observe/fetchMetrics.js +9 -9
- package/build/observe/fetchNavigationRoutes.d.ts +7 -5
- package/build/observe/fetchNavigationRoutes.js +8 -8
- package/build/observe/fetchSessions.d.ts +13 -11
- package/build/observe/fetchSessions.js +59 -30
- package/build/observe/fetchVersions.d.ts +4 -3
- package/build/observe/fetchVersions.js +7 -11
- package/build/observe/flags.d.ts +6 -0
- package/build/observe/flags.js +12 -2
- package/build/observe/formatCustomEvents.d.ts +16 -10
- package/build/observe/formatCustomEvents.js +61 -28
- package/build/observe/formatErrors.d.ts +97 -0
- package/build/observe/formatErrors.js +203 -0
- package/build/observe/formatEvents.d.ts +11 -5
- package/build/observe/formatEvents.js +46 -18
- package/build/observe/formatMetrics.d.ts +4 -4
- package/build/observe/formatMetrics.js +2 -2
- package/build/observe/formatNavigationRoutes.d.ts +4 -4
- package/build/observe/formatNavigationRoutes.js +3 -3
- package/build/observe/formatSessions.d.ts +3 -3
- package/build/observe/formatSessions.js +8 -8
- package/build/observe/formatVersions.js +2 -2
- package/build/observe/platforms.d.ts +10 -19
- package/build/observe/platforms.js +42 -40
- package/build/ora.d.ts +7 -0
- package/build/ora.js +12 -0
- package/build/project/projectStatus.d.ts +96 -0
- package/build/project/projectStatus.js +314 -0
- package/build/simulator/utils.d.ts +11 -0
- package/build/simulator/utils.js +51 -4
- package/build/submit/utils/urls.js +2 -3
- package/build/utils/centrifuge.d.ts +10 -0
- package/build/utils/centrifuge.js +89 -0
- package/build/utils/expodash/uniqBy.js +3 -2
- package/oclif.manifest.json +2947 -2328
- package/package.json +10 -7
- package/build/chat/chatClient.d.ts +0 -37
- package/build/chat/chatClient.js +0 -359
- package/build/chat/detectProject.d.ts +0 -5
- package/build/chat/detectProject.js +0 -41
- package/build/chat/renderMarkdown.d.ts +0 -7
- package/build/chat/renderMarkdown.js +0 -47
- package/build/chat/replInput.d.ts +0 -10
- package/build/chat/replInput.js +0 -52
- package/build/commandUtils/workflow/fetchLogs.d.ts +0 -6
- package/build/commandUtils/workflow/fetchLogs.js +0 -44
- package/build/commands/chat.d.ts +0 -18
- package/build/commands/chat.js +0 -221
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
|
+
import { RealtimeLogsMutation_GenerateCentrifugoSubscriptionTokenArgs } from '../graphql/generated';
|
|
3
|
+
export type RealtimeLogsSubscription = {
|
|
4
|
+
close: () => void;
|
|
5
|
+
};
|
|
6
|
+
export type RealtimeLogsClient = {
|
|
7
|
+
subscribeAsync: (args: RealtimeLogsMutation_GenerateCentrifugoSubscriptionTokenArgs, onPublication: (data: unknown) => void) => Promise<RealtimeLogsSubscription | null>;
|
|
8
|
+
close: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function createRealtimeLogsClient(graphqlClient: ExpoGraphqlClient): RealtimeLogsClient | null;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createRealtimeLogsClient = createRealtimeLogsClient;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const centrifuge_1 = require("centrifuge");
|
|
6
|
+
const ws_1 = tslib_1.__importDefault(require("ws"));
|
|
7
|
+
const api_1 = require("../api");
|
|
8
|
+
const RealtimeLogsMutation_1 = require("../graphql/mutations/RealtimeLogsMutation");
|
|
9
|
+
const fetch_1 = require("../fetch");
|
|
10
|
+
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
11
|
+
function createProxiedWebSocketConstructor(agent) {
|
|
12
|
+
return class ProxiedWebSocket extends ws_1.default {
|
|
13
|
+
constructor(address, protocols) {
|
|
14
|
+
super(address, protocols, { agent });
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function createWebSocketConstructor() {
|
|
19
|
+
return fetch_1.httpsProxyAgent ? createProxiedWebSocketConstructor(fetch_1.httpsProxyAgent) : ws_1.default;
|
|
20
|
+
}
|
|
21
|
+
function createRealtimeLogsClient(graphqlClient) {
|
|
22
|
+
const getTokenAsync = async () => {
|
|
23
|
+
const { token } = await RealtimeLogsMutation_1.RealtimeLogsMutation.generateCentrifugoConnectionTokenAsync(graphqlClient);
|
|
24
|
+
return token;
|
|
25
|
+
};
|
|
26
|
+
let client;
|
|
27
|
+
try {
|
|
28
|
+
client = new centrifuge_1.Centrifuge((0, api_1.getEASLogsWebsocketUrl)(), {
|
|
29
|
+
websocket: createWebSocketConstructor(),
|
|
30
|
+
getToken: getTokenAsync,
|
|
31
|
+
});
|
|
32
|
+
client.on('error', ({ error }) => {
|
|
33
|
+
log_1.default.debug(`Realtime logs connection error: ${error.message}`);
|
|
34
|
+
});
|
|
35
|
+
client.connect();
|
|
36
|
+
}
|
|
37
|
+
catch (err) {
|
|
38
|
+
log_1.default.debug(`Failed to connect to realtime logs: ${err.message}`);
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
subscribeAsync: async (args, onPublication) => {
|
|
43
|
+
const getSubscriptionTokenAsync = async () => {
|
|
44
|
+
const { token } = await RealtimeLogsMutation_1.RealtimeLogsMutation.generateCentrifugoSubscriptionTokenAsync(graphqlClient, args);
|
|
45
|
+
return token;
|
|
46
|
+
};
|
|
47
|
+
try {
|
|
48
|
+
const { channel, token } = await RealtimeLogsMutation_1.RealtimeLogsMutation.generateCentrifugoSubscriptionTokenAsync(graphqlClient, args);
|
|
49
|
+
const subscription = client.newSubscription(channel, {
|
|
50
|
+
token,
|
|
51
|
+
getToken: getSubscriptionTokenAsync,
|
|
52
|
+
});
|
|
53
|
+
subscription.on('error', ({ error }) => {
|
|
54
|
+
log_1.default.debug(`Realtime logs subscription error on ${channel}: ${error.message}`);
|
|
55
|
+
});
|
|
56
|
+
subscription.on('publication', ({ data }) => {
|
|
57
|
+
onPublication(data);
|
|
58
|
+
});
|
|
59
|
+
subscription.subscribe();
|
|
60
|
+
return {
|
|
61
|
+
close: () => {
|
|
62
|
+
closeSubscription(client, subscription);
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
catch (err) {
|
|
67
|
+
log_1.default.debug(`Failed to subscribe to realtime logs: ${err.message}`);
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
close: () => {
|
|
72
|
+
for (const subscription of Object.values(client.subscriptions())) {
|
|
73
|
+
closeSubscription(client, subscription);
|
|
74
|
+
}
|
|
75
|
+
client.removeAllListeners();
|
|
76
|
+
client.disconnect();
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function closeSubscription(client, subscription) {
|
|
81
|
+
try {
|
|
82
|
+
subscription.unsubscribe();
|
|
83
|
+
subscription.removeAllListeners();
|
|
84
|
+
client.removeSubscription(subscription);
|
|
85
|
+
}
|
|
86
|
+
catch (err) {
|
|
87
|
+
log_1.default.debug(`Failed to close realtime logs subscription: ${err.message}`);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -5,9 +5,10 @@ function uniqBy(list, getKey) {
|
|
|
5
5
|
const uniqueValues = new Set();
|
|
6
6
|
const result = [];
|
|
7
7
|
for (const i of list) {
|
|
8
|
-
|
|
8
|
+
const key = getKey(i);
|
|
9
|
+
if (!uniqueValues.has(key)) {
|
|
9
10
|
result.push(i);
|
|
10
|
-
uniqueValues.add(
|
|
11
|
+
uniqueValues.add(key);
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
return result;
|