eas-cli 23.1.0 → 23.2.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 +170 -147
- package/build/api.d.ts +1 -0
- package/build/api.js +12 -0
- 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/simulator/get.js +2 -0
- package/build/commands/simulator/index.d.ts +1 -0
- package/build/commands/simulator/index.js +10 -0
- 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/graphql/generated.d.ts +243 -3
- package/build/graphql/generated.js +28 -4
- 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/DeviceRunSessionQuery.js +5 -0
- package/build/graphql/queries/WorkflowJobSshQuery.d.ts +20 -0
- package/build/graphql/queries/WorkflowJobSshQuery.js +133 -0
- package/build/ora.d.ts +7 -0
- package/build/ora.js +12 -0
- package/build/simulator/utils.js +9 -1
- 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 +936 -833
- package/package.json +5 -2
- package/build/commandUtils/workflow/fetchLogs.d.ts +0 -6
- package/build/commandUtils/workflow/fetchLogs.js +0 -44
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eas-cli",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.2.0",
|
|
4
4
|
"description": "EAS command line tool",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
"ajv-formats": "2.1.1",
|
|
78
78
|
"better-opn": "3.0.2",
|
|
79
79
|
"bplist-parser": "^0.3.0",
|
|
80
|
+
"centrifuge": "5.7.1",
|
|
80
81
|
"chalk": "4.1.2",
|
|
81
82
|
"cli-progress": "3.12.0",
|
|
82
83
|
"dateformat": "4.6.3",
|
|
@@ -132,6 +133,7 @@
|
|
|
132
133
|
"untildify": "4.0.0",
|
|
133
134
|
"uuid": "11.1.1",
|
|
134
135
|
"wrap-ansi": "7.0.0",
|
|
136
|
+
"ws": "8.21.1",
|
|
135
137
|
"yaml": "2.6.0",
|
|
136
138
|
"zod": "^4.1.3"
|
|
137
139
|
},
|
|
@@ -160,6 +162,7 @@
|
|
|
160
162
|
"@types/tar-stream": "3.1.3",
|
|
161
163
|
"@types/tough-cookie": "4.0.2",
|
|
162
164
|
"@types/wrap-ansi": "3.0.0",
|
|
165
|
+
"@types/ws": "8.5.10",
|
|
163
166
|
"axios": "1.18.1",
|
|
164
167
|
"eslint-plugin-graphql": "4.0.0",
|
|
165
168
|
"jest": "29.7.0",
|
|
@@ -265,5 +268,5 @@
|
|
|
265
268
|
"engines": {
|
|
266
269
|
"node": ">=20.0.0"
|
|
267
270
|
},
|
|
268
|
-
"gitHead": "
|
|
271
|
+
"gitHead": "74292d2ace404759ab8936d5aa1369e15d4b4f9d"
|
|
269
272
|
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { WorkflowJobResult } from './types';
|
|
2
|
-
import { ExpoGraphqlClient } from '../context/contextUtils/createGraphqlClient';
|
|
3
|
-
export declare function fetchRawLogsForCustomJobAsync(job: WorkflowJobResult): Promise<string | null>;
|
|
4
|
-
export declare function fetchRawLogsForBuildJobAsync(state: {
|
|
5
|
-
graphqlClient: ExpoGraphqlClient;
|
|
6
|
-
}, job: WorkflowJobResult): Promise<string | null>;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fetchRawLogsForCustomJobAsync = fetchRawLogsForCustomJobAsync;
|
|
4
|
-
exports.fetchRawLogsForBuildJobAsync = fetchRawLogsForBuildJobAsync;
|
|
5
|
-
const BuildQuery_1 = require("../../graphql/queries/BuildQuery");
|
|
6
|
-
// This function is in a separate module for testing purposes
|
|
7
|
-
async function fetchRawLogsForCustomJobAsync(job) {
|
|
8
|
-
const firstLogFileUrl = job.turtleJobRun?.logFileUrls?.[0];
|
|
9
|
-
if (!firstLogFileUrl) {
|
|
10
|
-
return null;
|
|
11
|
-
}
|
|
12
|
-
const response = await fetch(firstLogFileUrl, {
|
|
13
|
-
method: 'GET',
|
|
14
|
-
});
|
|
15
|
-
const rawLogs = await response.text();
|
|
16
|
-
return rawLogs;
|
|
17
|
-
}
|
|
18
|
-
async function fetchRawLogsForBuildJobAsync(state, job) {
|
|
19
|
-
// Prefer turtleJobRun logs, which contain JSONL-formatted step logs
|
|
20
|
-
// for both built-in and custom build steps
|
|
21
|
-
const turtleLogFileUrl = job.turtleJobRun?.logFileUrls?.[0];
|
|
22
|
-
if (turtleLogFileUrl) {
|
|
23
|
-
const response = await fetch(turtleLogFileUrl, {
|
|
24
|
-
method: 'GET',
|
|
25
|
-
});
|
|
26
|
-
return await response.text();
|
|
27
|
-
}
|
|
28
|
-
// Fall back to build logFiles
|
|
29
|
-
const buildId = job.outputs?.build_id;
|
|
30
|
-
if (!buildId) {
|
|
31
|
-
return null;
|
|
32
|
-
}
|
|
33
|
-
const buildFragment = await BuildQuery_1.BuildQuery.byIdAsync(state.graphqlClient, buildId, {
|
|
34
|
-
useCache: false,
|
|
35
|
-
});
|
|
36
|
-
const firstLogFileUrl = buildFragment.logFiles?.[0];
|
|
37
|
-
if (!firstLogFileUrl) {
|
|
38
|
-
return null;
|
|
39
|
-
}
|
|
40
|
-
const response = await fetch(firstLogFileUrl, {
|
|
41
|
-
method: 'GET',
|
|
42
|
-
});
|
|
43
|
-
return await response.text();
|
|
44
|
-
}
|