@forge/cli-shared 9.3.1-next.2-experimental-f258a6d → 9.4.0-next.11
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 +49 -6
- package/out/app-logs/graphql-client.d.ts.map +1 -1
- package/out/app-logs/graphql-client.js +26 -0
- package/out/app-logs/view-logs.d.ts +15 -3
- package/out/app-logs/view-logs.d.ts.map +1 -1
- package/out/app-logs/view-logs.js +14 -4
- package/out/graphql/graphql-types.d.ts +3150 -380
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +453 -104
- package/out/http-client/file-uploader.d.ts.map +1 -1
- package/out/service/statsig-service.d.ts +8 -2
- package/out/service/statsig-service.d.ts.map +1 -1
- package/out/service/statsig-service.js +28 -2
- package/out/ui/command-line-ui.d.ts +11 -2
- package/out/ui/command-line-ui.d.ts.map +1 -1
- package/out/ui/command-line-ui.js +62 -1
- package/out/ui/hint-rotation.d.ts +5 -0
- package/out/ui/hint-rotation.d.ts.map +1 -0
- package/out/ui/hint-rotation.js +27 -0
- package/out/ui/text.d.ts +45 -1
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +49 -5
- package/out/ui/ui.d.ts +2 -1
- package/out/ui/ui.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,60 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
-
## 9.
|
|
3
|
+
## 9.4.0-next.11
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- d9f80a3: Add feature-gated combined artifact uploads to `forge build`. Combined builds are queued for server-side processing and can be monitored in the Developer Console.
|
|
8
|
+
|
|
9
|
+
## 9.4.0-next.10
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- f6607ca: Added new logs filtering flags for containers, services and functions as well as removed the existing containers flag
|
|
14
|
+
|
|
15
|
+
## 9.4.0-next.9
|
|
8
16
|
|
|
9
17
|
### Patch Changes
|
|
10
18
|
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
- Updated dependencies [05f231c]
|
|
20
|
+
- @forge/manifest@13.3.1-next.2
|
|
21
|
+
|
|
22
|
+
## 9.4.0-next.8
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- 9afd5c3: Add native Forge CLI proxy support for Node and Undici network clients.
|
|
27
|
+
|
|
28
|
+
## 9.4.0-next.7
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- Updated dependencies [ccd5143]
|
|
33
|
+
- @forge/manifest@13.3.1-next.1
|
|
34
|
+
|
|
35
|
+
## 9.4.0-next.6
|
|
36
|
+
|
|
37
|
+
### Minor Changes
|
|
38
|
+
|
|
39
|
+
- d1767a0: New dynamic hint bar added to progress display
|
|
40
|
+
|
|
41
|
+
## 9.4.0-next.5
|
|
42
|
+
|
|
43
|
+
### Minor Changes
|
|
44
|
+
|
|
45
|
+
- 016ed9d: Upgrading graphql-request dependency
|
|
46
|
+
|
|
47
|
+
## 9.4.0-next.4
|
|
48
|
+
|
|
49
|
+
### Minor Changes
|
|
50
|
+
|
|
51
|
+
- 2b13c2e: Move from node-fetch to native fetch
|
|
52
|
+
|
|
53
|
+
## 9.4.0-next.3
|
|
54
|
+
|
|
55
|
+
### Minor Changes
|
|
56
|
+
|
|
57
|
+
- ff4f2bf: Add `forge site provision` to provision a new demo site or get an existing demo site.
|
|
15
58
|
|
|
16
59
|
## 9.3.1-next.2
|
|
17
60
|
|
|
@@ -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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CAAC,MAAM,EAAE,UAAU,CAAC,EACtC,sBAAsB,EAAE,UAAU,EAAE,EACpC,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,UAAU,EAAE,CAAC;IA6IX,WAAW,CAAC,OAAO,EAAE,cAAc;IAwEhD,OAAO,CAAC,qBAAqB;IAU7B,OAAO,CAAC,eAAe;YAcT,iBAAiB;CAqDhC"}
|
|
@@ -44,6 +44,10 @@ class LogsGraphQLClient {
|
|
|
44
44
|
$limit: Int!,
|
|
45
45
|
$queryStartTime: String!,
|
|
46
46
|
$runtime: String
|
|
47
|
+
$functionKeys: [String]
|
|
48
|
+
$containers: [String]
|
|
49
|
+
$instances: [String]
|
|
50
|
+
$services: [String]
|
|
47
51
|
) {
|
|
48
52
|
appLogsWithMetaData(
|
|
49
53
|
appId: $appId
|
|
@@ -54,6 +58,10 @@ class LogsGraphQLClient {
|
|
|
54
58
|
query: {
|
|
55
59
|
dates: $dateSearchInput
|
|
56
60
|
runtime: $runtime
|
|
61
|
+
functionKeys: $functionKeys
|
|
62
|
+
containers: $containers
|
|
63
|
+
instances: $instances
|
|
64
|
+
services: $services
|
|
57
65
|
}
|
|
58
66
|
) {
|
|
59
67
|
appLogs {
|
|
@@ -68,6 +76,24 @@ class LogsGraphQLClient {
|
|
|
68
76
|
other
|
|
69
77
|
ts
|
|
70
78
|
}
|
|
79
|
+
appLogsFilterBuckets {
|
|
80
|
+
containers {
|
|
81
|
+
key
|
|
82
|
+
count
|
|
83
|
+
__typename
|
|
84
|
+
}
|
|
85
|
+
services {
|
|
86
|
+
key
|
|
87
|
+
count
|
|
88
|
+
__typename
|
|
89
|
+
}
|
|
90
|
+
functionKeys {
|
|
91
|
+
key
|
|
92
|
+
count
|
|
93
|
+
__typename
|
|
94
|
+
}
|
|
95
|
+
__typename
|
|
96
|
+
}
|
|
71
97
|
hasNextPage
|
|
72
98
|
totalLogs
|
|
73
99
|
__typename
|
|
@@ -16,8 +16,11 @@ export interface QueryDetails {
|
|
|
16
16
|
limit: number;
|
|
17
17
|
context?: InstallContext;
|
|
18
18
|
startTime?: string | null;
|
|
19
|
-
containers?: boolean;
|
|
20
19
|
grouped?: boolean;
|
|
20
|
+
containerKey?: string;
|
|
21
|
+
containerInstance?: string;
|
|
22
|
+
serviceKey?: string;
|
|
23
|
+
functionKey?: string;
|
|
21
24
|
}
|
|
22
25
|
export type AppLogsDetails = {
|
|
23
26
|
appId: string;
|
|
@@ -33,6 +36,10 @@ export type AppLogsDetailsV2 = AppLogsDetails & {
|
|
|
33
36
|
dateSearchInput: DateSearchInput;
|
|
34
37
|
queryStartTime: string;
|
|
35
38
|
maxLimit: number;
|
|
39
|
+
containers?: string[];
|
|
40
|
+
instances?: string[];
|
|
41
|
+
services?: string[];
|
|
42
|
+
functionKeys?: string[];
|
|
36
43
|
};
|
|
37
44
|
export interface InvocationQueryDetails {
|
|
38
45
|
environmentKey: string;
|
|
@@ -71,8 +78,13 @@ export declare class ViewAppLogsCommand {
|
|
|
71
78
|
private readonly logsClient;
|
|
72
79
|
private readonly statsigService;
|
|
73
80
|
constructor(getAppConfig: AppConfigProvider, appEnvironmentClient: AppEnvironmentClient, globalEdgeClient: GlobalEdgeClient, logsClient: ViewAppLogsClient, statsigService: StatsigService);
|
|
74
|
-
getAll({ environmentKey, limit, context, startTime, grouped
|
|
75
|
-
getLogs(details: AppLogsDetails
|
|
81
|
+
getAll({ environmentKey, limit, context, containerKey, containerInstance, serviceKey, functionKey, startTime, grouped }: QueryDetails): Promise<Invocation[]>;
|
|
82
|
+
getLogs(details: AppLogsDetails, containerDetails: {
|
|
83
|
+
containerKey?: string;
|
|
84
|
+
containerInstance?: string;
|
|
85
|
+
serviceKey?: string;
|
|
86
|
+
functionKey?: string;
|
|
87
|
+
}): Promise<Invocation[]>;
|
|
76
88
|
getOne(details: InvocationQueryDetails): Promise<Invocation>;
|
|
77
89
|
}
|
|
78
90
|
//# sourceMappingURL=view-logs.d.ts.map
|
|
@@ -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,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,GAAG,CAAC;IACV,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,
|
|
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,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,GAAG,CAAC;IACV,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kB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AAc,EACd,KAAK,EACL,OAAO,EACP,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACV,WAAW,EACX,SAAgB,EAChB,OAAe,EAChB,EAAE,YAAY,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAqC1B,OAAO,CAClB,OAAO,EAAE,cAAc,EACvB,gBAAgB,EAAE;QAChB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,GACA,OAAO,CAAC,UAAU,EAAE,CAAC;IAgCX,MAAM,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,UAAU,CAAC;CAI1E"}
|
|
@@ -21,7 +21,7 @@ class ViewAppLogsCommand {
|
|
|
21
21
|
this.logsClient = logsClient;
|
|
22
22
|
this.statsigService = statsigService;
|
|
23
23
|
}
|
|
24
|
-
async getAll({ environmentKey, limit, context,
|
|
24
|
+
async getAll({ environmentKey, limit, context, containerKey, containerInstance, serviceKey, functionKey, startTime = null, grouped = false }) {
|
|
25
25
|
const { id: appId } = await this.getAppConfig();
|
|
26
26
|
const [environmentId, cloudId] = await Promise.all([
|
|
27
27
|
this.appEnvironmentClient.getAppEnvironmentId(appId, environmentKey),
|
|
@@ -36,16 +36,22 @@ class ViewAppLogsCommand {
|
|
|
36
36
|
contextAri: contextAri ? [contextAri] : undefined,
|
|
37
37
|
grouped
|
|
38
38
|
};
|
|
39
|
-
if (
|
|
39
|
+
if (containerKey || containerInstance || serviceKey) {
|
|
40
40
|
details.runtime = Runtime.CONTAINER.toLowerCase();
|
|
41
41
|
}
|
|
42
42
|
const isV2ApiEnabled = await this.statsigService.isLogsV2ApiEnabled();
|
|
43
43
|
if (isV2ApiEnabled) {
|
|
44
|
-
|
|
44
|
+
const containerDetails = {
|
|
45
|
+
containerKey,
|
|
46
|
+
containerInstance,
|
|
47
|
+
serviceKey,
|
|
48
|
+
functionKey
|
|
49
|
+
};
|
|
50
|
+
return this.getLogs(details, containerDetails);
|
|
45
51
|
}
|
|
46
52
|
return this.logsClient.viewAppLogs(details);
|
|
47
53
|
}
|
|
48
|
-
async getLogs(details) {
|
|
54
|
+
async getLogs(details, containerDetails) {
|
|
49
55
|
const latestStart = new Date().toISOString();
|
|
50
56
|
let earliestStart = new Date();
|
|
51
57
|
if (details.startTime) {
|
|
@@ -60,6 +66,10 @@ class ViewAppLogsCommand {
|
|
|
60
66
|
};
|
|
61
67
|
return this.logsClient.viewAppLogsV2({
|
|
62
68
|
...details,
|
|
69
|
+
containers: containerDetails.containerKey ? [containerDetails.containerKey] : [],
|
|
70
|
+
instances: containerDetails.containerInstance ? [containerDetails.containerInstance] : [],
|
|
71
|
+
services: containerDetails.serviceKey ? [containerDetails.serviceKey] : [],
|
|
72
|
+
functionKeys: containerDetails.functionKey ? [containerDetails.functionKey] : [],
|
|
63
73
|
offset: 0,
|
|
64
74
|
dateSearchInput,
|
|
65
75
|
queryStartTime: earliestStart.toISOString(),
|