@forge/cli-shared 7.0.0-next.9 → 7.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/CHANGELOG.md +39 -0
- package/out/app-logs/graphql-client.d.ts.map +1 -1
- package/out/app-logs/graphql-client.js +3 -1
- package/out/app-logs/view-logs.d.ts +7 -1
- package/out/app-logs/view-logs.d.ts.map +1 -1
- package/out/app-logs/view-logs.js +10 -2
- package/out/graphql/graphql-types.d.ts +172 -10
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +1 -0
- package/out/ui/text.d.ts +2 -0
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +3 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
+
## 7.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 7c128d8: Added new command line option "-c" or "--container" in forge logs command to fetch Container logs
|
|
8
|
+
- 3b2ffa9: updated the type of appVersion
|
|
9
|
+
- 3b2ffa9: update appVersion type in logs command
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 27f557d: Improve forge tunnel debugFunctionHandlers error handling
|
|
14
|
+
- 30d2f61: Add forge container tunnel MVP
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- a23892e: Update the variable name
|
|
19
|
+
- b011fe9: Add Forge container docker registry authentication
|
|
20
|
+
- 3af315d: Use .cjs extension for the single wrapper
|
|
21
|
+
- 7c02425: Unhide forge build commands
|
|
22
|
+
- Updated dependencies [35165ba]
|
|
23
|
+
- Updated dependencies [fe7e7e9]
|
|
24
|
+
- Updated dependencies [01be5cc]
|
|
25
|
+
- Updated dependencies [39b0e6c]
|
|
26
|
+
- Updated dependencies [8f741c6]
|
|
27
|
+
- Updated dependencies [cb38766]
|
|
28
|
+
- Updated dependencies [b25d06e]
|
|
29
|
+
- @forge/manifest@9.4.0
|
|
30
|
+
|
|
31
|
+
## 7.0.0-next.10
|
|
32
|
+
|
|
33
|
+
### Major Changes
|
|
34
|
+
|
|
35
|
+
- 7c128d8: Added new command line option "-c" or "--container" in forge logs command to fetch Container logs
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- Updated dependencies [cb38766]
|
|
40
|
+
- @forge/manifest@9.4.0-next.6
|
|
41
|
+
|
|
3
42
|
## 7.0.0-next.9
|
|
4
43
|
|
|
5
44
|
### Patch Changes
|
|
@@ -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,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,UAAU,EAAE,CAAC;IAoFX,WAAW,CAAC,OAAO,EAAE,cAAc;IAwEhD,OAAO,CAAC,qBAAqB;IAU7B,OAAO,CAAC,eAAe;YAcT,iBAAiB;CAqDhC"}
|
|
@@ -42,7 +42,8 @@ class LogsGraphQLClient {
|
|
|
42
42
|
$dateSearchInput: DateSearchInput,
|
|
43
43
|
$offset: Int!,
|
|
44
44
|
$limit: Int!,
|
|
45
|
-
$queryStartTime: String
|
|
45
|
+
$queryStartTime: String!,
|
|
46
|
+
$runtime: String
|
|
46
47
|
) {
|
|
47
48
|
appLogsWithMetaData(
|
|
48
49
|
appId: $appId
|
|
@@ -52,6 +53,7 @@ class LogsGraphQLClient {
|
|
|
52
53
|
queryStartTime: $queryStartTime
|
|
53
54
|
query: {
|
|
54
55
|
dates: $dateSearchInput
|
|
56
|
+
runtime: $runtime
|
|
55
57
|
}
|
|
56
58
|
) {
|
|
57
59
|
appLogs {
|
|
@@ -17,6 +17,7 @@ export interface QueryDetails {
|
|
|
17
17
|
limit: number;
|
|
18
18
|
context?: InstallContext;
|
|
19
19
|
startTime?: string | null;
|
|
20
|
+
containers?: boolean;
|
|
20
21
|
}
|
|
21
22
|
export declare type AppLogsDetails = {
|
|
22
23
|
appId: string;
|
|
@@ -24,6 +25,7 @@ export declare type AppLogsDetails = {
|
|
|
24
25
|
limit: number;
|
|
25
26
|
startTime?: string | null;
|
|
26
27
|
contextAri?: [Ari];
|
|
28
|
+
runtime?: string | null;
|
|
27
29
|
};
|
|
28
30
|
export declare type AppLogsDetailsV2 = AppLogsDetails & {
|
|
29
31
|
offset: number;
|
|
@@ -52,6 +54,10 @@ export interface Invocation {
|
|
|
52
54
|
function?: string;
|
|
53
55
|
trigger?: string;
|
|
54
56
|
}
|
|
57
|
+
export declare enum Runtime {
|
|
58
|
+
RUNTIMEV2 = "RUNTIMEV2",
|
|
59
|
+
CONTAINER = "CONTAINER"
|
|
60
|
+
}
|
|
55
61
|
export interface ViewAppLogsClient {
|
|
56
62
|
viewAppLogs(details: AppLogsDetails): Promise<Invocation[]>;
|
|
57
63
|
viewAppLogsV2(details: AppLogsDetailsV2, invocationMap: Map<string, Invocation>, totalRecieved: number): Promise<Invocation[]>;
|
|
@@ -64,7 +70,7 @@ export declare class ViewAppLogsCommand {
|
|
|
64
70
|
private readonly logsClient;
|
|
65
71
|
private readonly statsigService;
|
|
66
72
|
constructor(getAppConfig: AppConfigProvider, appEnvironmentClient: AppEnvironmentClient, globalEdgeClient: GlobalEdgeClient, logsClient: ViewAppLogsClient, statsigService: StatsigService);
|
|
67
|
-
getAll({ environmentKey, limit, context, startTime }: QueryDetails): Promise<Invocation[]>;
|
|
73
|
+
getAll({ environmentKey, limit, context, startTime, containers }: QueryDetails): Promise<Invocation[]>;
|
|
68
74
|
getLogs(details: AppLogsDetails): Promise<Invocation[]>;
|
|
69
75
|
getOne(details: InvocationQueryDetails): Promise<Invocation>;
|
|
70
76
|
}
|
|
@@ -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;
|
|
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,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sCommand = exports.Runtime = void 0;
|
|
4
4
|
const ari_1 = require("@forge/util/packages/ari");
|
|
5
5
|
const ari_2 = require("../ari");
|
|
6
|
+
var Runtime;
|
|
7
|
+
(function (Runtime) {
|
|
8
|
+
Runtime["RUNTIMEV2"] = "RUNTIMEV2";
|
|
9
|
+
Runtime["CONTAINER"] = "CONTAINER";
|
|
10
|
+
})(Runtime = exports.Runtime || (exports.Runtime = {}));
|
|
6
11
|
class ViewAppLogsCommand {
|
|
7
12
|
getAppConfig;
|
|
8
13
|
appEnvironmentClient;
|
|
@@ -16,7 +21,7 @@ class ViewAppLogsCommand {
|
|
|
16
21
|
this.logsClient = logsClient;
|
|
17
22
|
this.statsigService = statsigService;
|
|
18
23
|
}
|
|
19
|
-
async getAll({ environmentKey, limit, context, startTime = null }) {
|
|
24
|
+
async getAll({ environmentKey, limit, context, startTime = null, containers = false }) {
|
|
20
25
|
const { id: appId } = await this.getAppConfig();
|
|
21
26
|
const [environmentId, cloudId] = await Promise.all([
|
|
22
27
|
this.appEnvironmentClient.getAppEnvironmentId(appId, environmentKey),
|
|
@@ -30,6 +35,9 @@ class ViewAppLogsCommand {
|
|
|
30
35
|
startTime,
|
|
31
36
|
contextAri: contextAri ? [contextAri] : undefined
|
|
32
37
|
};
|
|
38
|
+
if (containers) {
|
|
39
|
+
details.runtime = Runtime.CONTAINER.toLowerCase();
|
|
40
|
+
}
|
|
33
41
|
const isV2ApiEnabled = await this.statsigService.isLogsV2ApiEnabled();
|
|
34
42
|
if (isV2ApiEnabled) {
|
|
35
43
|
return this.getLogs(details);
|