@forge/cli-shared 8.0.0-next.9 → 8.0.1-next.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 +92 -0
- package/out/app-logs/graphql-client.d.ts +1 -1
- package/out/app-logs/graphql-client.d.ts.map +1 -1
- package/out/app-logs/graphql-client.js +33 -18
- package/out/app-logs/view-logs.d.ts +4 -2
- package/out/app-logs/view-logs.d.ts.map +1 -1
- package/out/app-logs/view-logs.js +4 -3
- package/out/graphql/graphql-types.d.ts +547 -77
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +105 -26
- package/out/graphql/minimal-graphql-runner.d.ts +6 -1
- package/out/graphql/minimal-graphql-runner.d.ts.map +1 -1
- package/out/graphql/minimal-graphql-runner.js +19 -2
- package/out/shared/test.d.ts.map +1 -1
- package/out/shared/test.js +1 -2
- package/out/ui/command-line-ui.d.ts +0 -1
- package/out/ui/command-line-ui.d.ts.map +1 -1
- package/out/ui/command-line-ui.js +0 -5
- package/out/ui/logger.d.ts +0 -1
- package/out/ui/logger.d.ts.map +1 -1
- package/out/ui/logger.js +0 -2
- package/out/ui/text.d.ts +0 -14
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +1 -20
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,97 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
+
## 8.0.1-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 25a3da2: Update attribution header
|
|
8
|
+
- Updated dependencies [4b15e26]
|
|
9
|
+
- @forge/manifest@10.0.1-next.0
|
|
10
|
+
|
|
11
|
+
## 8.0.0
|
|
12
|
+
|
|
13
|
+
### Major Changes
|
|
14
|
+
|
|
15
|
+
- 8f2a3c9: Update the package to build on Node 20
|
|
16
|
+
- d33186c: Resolved sorting issue in the displayed log lines
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- e4ab25f: Rename forge containers list to forge containers repositories
|
|
21
|
+
- 9f050ff: Removed support for Sandbox Runtime and Sanpshots
|
|
22
|
+
- ba634d9: Remove further sandbox runtime related components
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- 75b7732: Remove feature flag for single wrapper packaging
|
|
27
|
+
- c3df542: Add an error for scoped token usage
|
|
28
|
+
- 64befbb: Refactor runtime version manifest check into a linter
|
|
29
|
+
- Updated dependencies [a7bd152]
|
|
30
|
+
- Updated dependencies [73a88f6]
|
|
31
|
+
- Updated dependencies [33c5750]
|
|
32
|
+
- Updated dependencies [0c92352]
|
|
33
|
+
- Updated dependencies [8f2a3c9]
|
|
34
|
+
- Updated dependencies [1992aaf]
|
|
35
|
+
- Updated dependencies [b44a5b3]
|
|
36
|
+
- Updated dependencies [9f050ff]
|
|
37
|
+
- Updated dependencies [e6cd96a]
|
|
38
|
+
- Updated dependencies [97255de]
|
|
39
|
+
- Updated dependencies [3d96d1c]
|
|
40
|
+
- Updated dependencies [18eab48]
|
|
41
|
+
- Updated dependencies [be59801]
|
|
42
|
+
- Updated dependencies [8a548ce]
|
|
43
|
+
- Updated dependencies [37eba69]
|
|
44
|
+
- Updated dependencies [c2e09b9]
|
|
45
|
+
- Updated dependencies [ba634d9]
|
|
46
|
+
- Updated dependencies [64befbb]
|
|
47
|
+
- @forge/manifest@10.0.0
|
|
48
|
+
|
|
49
|
+
## 8.0.0-next.15
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- Updated dependencies [3d96d1c]
|
|
54
|
+
- @forge/manifest@10.0.0-next.13
|
|
55
|
+
|
|
56
|
+
## 8.0.0-next.14
|
|
57
|
+
|
|
58
|
+
### Minor Changes
|
|
59
|
+
|
|
60
|
+
- ba634d9: Remove further sandbox runtime related components
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- Updated dependencies [ba634d9]
|
|
65
|
+
- @forge/manifest@10.0.0-next.12
|
|
66
|
+
|
|
67
|
+
## 8.0.0-next.13
|
|
68
|
+
|
|
69
|
+
### Patch Changes
|
|
70
|
+
|
|
71
|
+
- Updated dependencies [1992aaf]
|
|
72
|
+
- Updated dependencies [c2e09b9]
|
|
73
|
+
- @forge/manifest@10.0.0-next.11
|
|
74
|
+
|
|
75
|
+
## 8.0.0-next.12
|
|
76
|
+
|
|
77
|
+
### Major Changes
|
|
78
|
+
|
|
79
|
+
- d33186c: Resolved sorting issue in the displayed log lines
|
|
80
|
+
|
|
81
|
+
## 8.0.0-next.11
|
|
82
|
+
|
|
83
|
+
### Patch Changes
|
|
84
|
+
|
|
85
|
+
- Updated dependencies [e6cd96a]
|
|
86
|
+
- @forge/manifest@10.0.0-next.10
|
|
87
|
+
|
|
88
|
+
## 8.0.0-next.10
|
|
89
|
+
|
|
90
|
+
### Patch Changes
|
|
91
|
+
|
|
92
|
+
- Updated dependencies [33c5750]
|
|
93
|
+
- @forge/manifest@10.0.0-next.9
|
|
94
|
+
|
|
3
95
|
## 8.0.0-next.9
|
|
4
96
|
|
|
5
97
|
### Patch Changes
|
|
@@ -18,7 +18,7 @@ export declare class LogsGraphQLClient implements ViewAppLogsClient {
|
|
|
18
18
|
function?: string | undefined;
|
|
19
19
|
trigger?: string | undefined;
|
|
20
20
|
}>;
|
|
21
|
-
viewAppLogsV2(details: AppLogsDetailsV2, invocationMap: Map<string, Invocation>, totalRecieved: number): Promise<Invocation[]>;
|
|
21
|
+
viewAppLogsV2(details: AppLogsDetailsV2, invocationMap: Map<string, Invocation>, logLinesWithInvocation: Invocation[], totalRecieved: number): Promise<Invocation[]>;
|
|
22
22
|
viewAppLogs(details: AppLogsDetails): Promise<Invocation[]>;
|
|
23
23
|
private extractInvocationInfo;
|
|
24
24
|
private extractLogLines;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql-client.d.ts","sourceRoot":"","sources":["../../src/app-logs/graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6E,aAAa,EAAE,MAAM,YAAY,CAAC;AAEtH,OAAO,EACL,wBAAwB,EACxB,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,aAAa,CAAC;AAwBrB,qBAAa,mBAAoB,SAAQ,KAAK;CAAG;AACjD,qBAAa,uBAAwB,SAAQ,KAAK;CAAG;AACrD,qBAAa,sBAAuB,SAAQ,KAAK;CAAG;AACpD,qBAAa,oBAAqB,SAAQ,KAAK;CAAG;AAElD,qBAAa,iBAAkB,YAAW,iBAAiB;IAC7C,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE5C,kBAAkB,CAAC,OAAO,EAAE,wBAAwB;;;;;;;IAapD,aAAa,CACxB,OAAO,EAAE,gBAAgB,EACzB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,EACtC,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,UAAU,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"graphql-client.d.ts","sourceRoot":"","sources":["../../src/app-logs/graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6E,aAAa,EAAE,MAAM,YAAY,CAAC;AAEtH,OAAO,EACL,wBAAwB,EACxB,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,aAAa,CAAC;AAwBrB,qBAAa,mBAAoB,SAAQ,KAAK;CAAG;AACjD,qBAAa,uBAAwB,SAAQ,KAAK;CAAG;AACrD,qBAAa,sBAAuB,SAAQ,KAAK;CAAG;AACpD,qBAAa,oBAAqB,SAAQ,KAAK;CAAG;AAElD,qBAAa,iBAAkB,YAAW,iBAAiB;IAC7C,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE5C,kBAAkB,CAAC,OAAO,EAAE,wBAAwB;;;;;;;IAapD,aAAa,CACxB,OAAO,EAAE,gBAAgB,EACzB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,EACtC,sBAAsB,EAAE,UAAU,EAAE,EACpC,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,UAAU,EAAE,CAAC;IAoGX,WAAW,CAAC,OAAO,EAAE,cAAc;IAwEhD,OAAO,CAAC,qBAAqB;IAU7B,OAAO,CAAC,eAAe;YAcT,iBAAiB;CAqDhC"}
|
|
@@ -34,7 +34,7 @@ class LogsGraphQLClient {
|
|
|
34
34
|
logs: result.lines.map(sanitizeLogLine)
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
async viewAppLogsV2(details, invocationMap, totalRecieved) {
|
|
37
|
+
async viewAppLogsV2(details, invocationMap, logLinesWithInvocation, totalRecieved) {
|
|
38
38
|
const query = `
|
|
39
39
|
query forge_cli_getApplicationLogsV2(
|
|
40
40
|
$appId: String!,
|
|
@@ -79,33 +79,48 @@ class LogsGraphQLClient {
|
|
|
79
79
|
throw new MissingAppLogsError();
|
|
80
80
|
}
|
|
81
81
|
for (const logLine of result.appLogsWithMetaData.appLogs) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
logsMetadata
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
82
|
+
if (details.grouped) {
|
|
83
|
+
let logsMetadata = invocationMap.get(logLine.invocationId);
|
|
84
|
+
if (!logsMetadata) {
|
|
85
|
+
logsMetadata = {
|
|
86
|
+
id: logLine.invocationId,
|
|
87
|
+
appVersion: logLine.appVersion,
|
|
88
|
+
function: logLine.functionKey || undefined,
|
|
89
|
+
trigger: undefined,
|
|
90
|
+
logs: []
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
logsMetadata.logs.push({
|
|
94
|
+
message: logLine.message || undefined,
|
|
95
|
+
other: logLine.other ? JSON.parse(logLine.other) : [],
|
|
96
|
+
level: logLine.lvl || undefined,
|
|
97
|
+
timestamp: logLine.ts
|
|
98
|
+
});
|
|
99
|
+
invocationMap.set(logLine.invocationId, logsMetadata);
|
|
91
100
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
101
|
+
logLinesWithInvocation.push({
|
|
102
|
+
id: logLine.invocationId,
|
|
103
|
+
appVersion: logLine.appVersion,
|
|
104
|
+
function: logLine.functionKey || undefined,
|
|
105
|
+
logs: [
|
|
106
|
+
{
|
|
107
|
+
message: logLine.message || undefined,
|
|
108
|
+
other: logLine.other ? JSON.parse(logLine.other) : [],
|
|
109
|
+
level: logLine.lvl || undefined,
|
|
110
|
+
timestamp: logLine.ts
|
|
111
|
+
}
|
|
112
|
+
]
|
|
97
113
|
});
|
|
98
|
-
invocationMap.set(logLine.invocationId, logsMetadata);
|
|
99
114
|
}
|
|
100
115
|
const serverSideMaxLimit = result.appLogsWithMetaData.appLogs.length;
|
|
101
116
|
totalRecieved += serverSideMaxLimit;
|
|
102
117
|
if (result.appLogsWithMetaData.hasNextPage && details.maxLimit > totalRecieved) {
|
|
103
118
|
details.offset = details.offset + serverSideMaxLimit;
|
|
104
119
|
details.limit = details.limit - serverSideMaxLimit;
|
|
105
|
-
return this.viewAppLogsV2(details, invocationMap, totalRecieved);
|
|
120
|
+
return this.viewAppLogsV2(details, invocationMap, logLinesWithInvocation, totalRecieved);
|
|
106
121
|
}
|
|
107
122
|
const invocations = [...invocationMap.values()];
|
|
108
|
-
return invocations;
|
|
123
|
+
return details.grouped ? invocations : logLinesWithInvocation;
|
|
109
124
|
}
|
|
110
125
|
async viewAppLogs(details) {
|
|
111
126
|
const query = `
|
|
@@ -18,11 +18,13 @@ export interface QueryDetails {
|
|
|
18
18
|
context?: InstallContext;
|
|
19
19
|
startTime?: string | null;
|
|
20
20
|
containers?: boolean;
|
|
21
|
+
grouped?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export declare type AppLogsDetails = {
|
|
23
24
|
appId: string;
|
|
24
25
|
environmentId: string;
|
|
25
26
|
limit: number;
|
|
27
|
+
grouped?: boolean;
|
|
26
28
|
startTime?: string | null;
|
|
27
29
|
contextAri?: [Ari];
|
|
28
30
|
runtime?: string | null;
|
|
@@ -60,7 +62,7 @@ export declare enum Runtime {
|
|
|
60
62
|
}
|
|
61
63
|
export interface ViewAppLogsClient {
|
|
62
64
|
viewAppLogs(details: AppLogsDetails): Promise<Invocation[]>;
|
|
63
|
-
viewAppLogsV2(details: AppLogsDetailsV2, invocationMap: Map<string, Invocation>, totalRecieved: number): Promise<Invocation[]>;
|
|
65
|
+
viewAppLogsV2(details: AppLogsDetailsV2, invocationMap: Map<string, Invocation>, logLinesWithInvocation: Invocation[], totalRecieved: number): Promise<Invocation[]>;
|
|
64
66
|
viewInvocationLogs(details: AppInvocationLogsDetails): Promise<Invocation>;
|
|
65
67
|
}
|
|
66
68
|
export declare class ViewAppLogsCommand {
|
|
@@ -70,7 +72,7 @@ export declare class ViewAppLogsCommand {
|
|
|
70
72
|
private readonly logsClient;
|
|
71
73
|
private readonly statsigService;
|
|
72
74
|
constructor(getAppConfig: AppConfigProvider, appEnvironmentClient: AppEnvironmentClient, globalEdgeClient: GlobalEdgeClient, logsClient: ViewAppLogsClient, statsigService: StatsigService);
|
|
73
|
-
getAll({ environmentKey, limit, context, startTime, containers }: QueryDetails): Promise<Invocation[]>;
|
|
75
|
+
getAll({ environmentKey, limit, context, startTime, grouped, containers }: QueryDetails): Promise<Invocation[]>;
|
|
74
76
|
getLogs(details: AppLogsDetails): Promise<Invocation[]>;
|
|
75
77
|
getOne(details: InvocationQueryDetails): Promise<Invocation>;
|
|
76
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-logs.d.ts","sourceRoot":"","sources":["../../src/app-logs/view-logs.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAmB,MAAM,0BAA0B,CAAC;AAChE,OAAO,EA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ll({ environmentKey, limit, context, startTime = null, containers = false }) {
|
|
24
|
+
async getAll({ environmentKey, limit, context, startTime = null, grouped = false, containers = false }) {
|
|
25
25
|
const { id: appId } = await this.getAppConfig();
|
|
26
26
|
const [environmentId, cloudId] = await Promise.all([
|
|
27
27
|
this.appEnvironmentClient.getAppEnvironmentId(appId, environmentKey),
|
|
@@ -33,7 +33,8 @@ class ViewAppLogsCommand {
|
|
|
33
33
|
environmentId,
|
|
34
34
|
limit,
|
|
35
35
|
startTime,
|
|
36
|
-
contextAri: contextAri ? [contextAri] : undefined
|
|
36
|
+
contextAri: contextAri ? [contextAri] : undefined,
|
|
37
|
+
grouped
|
|
37
38
|
};
|
|
38
39
|
if (containers) {
|
|
39
40
|
details.runtime = Runtime.CONTAINER.toLowerCase();
|
|
@@ -63,7 +64,7 @@ class ViewAppLogsCommand {
|
|
|
63
64
|
dateSearchInput,
|
|
64
65
|
queryStartTime: earliestStart.toISOString(),
|
|
65
66
|
maxLimit: details.limit
|
|
66
|
-
}, new Map(), 0);
|
|
67
|
+
}, new Map(), [], 0);
|
|
67
68
|
}
|
|
68
69
|
async getOne(details) {
|
|
69
70
|
return this.logsClient.viewInvocationLogs({ invocationId: details.invocationId });
|