@forge/cli-shared 10.0.1-next.4-experimental-e080d98 → 10.1.0-next.10
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 +29 -10
- package/out/apps/get-app-owner.d.ts.map +1 -1
- package/out/auth/personal/me-graphql-client.d.ts +1 -3
- package/out/auth/personal/me-graphql-client.d.ts.map +1 -1
- package/out/auth/personal/me-graphql-client.js +2 -4
- package/out/auth/personal/user-repository.d.ts +1 -3
- package/out/auth/personal/user-repository.d.ts.map +1 -1
- package/out/auth/personal/user-repository.js +2 -4
- package/out/config/config-file.d.ts.map +1 -1
- package/out/config/config-file.js +2 -6
- package/out/config/index.d.ts +0 -1
- package/out/config/index.d.ts.map +1 -1
- package/out/config/index.js +0 -1
- package/out/graphql/gql/graphql.d.ts +90 -13
- package/out/graphql/gql/graphql.d.ts.map +1 -1
- package/out/service/bridge-script-service.d.ts +1 -1
- package/out/service/bridge-script-service.d.ts.map +1 -1
- package/out/service/bridge-script-service.js +3 -3
- package/out/service/iframe-resizer-script-service.d.ts +1 -1
- package/out/service/iframe-resizer-script-service.d.ts.map +1 -1
- package/out/service/iframe-resizer-script-service.js +3 -3
- package/out/service/statsig-service.d.ts +13 -2
- package/out/service/statsig-service.d.ts.map +1 -1
- package/out/service/statsig-service.js +90 -2
- package/out/service/supported-products-service.d.ts +8 -16
- package/out/service/supported-products-service.d.ts.map +1 -1
- package/out/service/supported-products-service.js +24 -60
- package/out/shared/error-handling.d.ts +2 -0
- package/out/shared/error-handling.d.ts.map +1 -1
- package/out/shared/error-handling.js +6 -1
- package/out/shared/forge-cli-attribution.d.ts +4 -0
- package/out/shared/forge-cli-attribution.d.ts.map +1 -1
- package/out/shared/forge-cli-attribution.js +15 -1
- package/out/shared/load-html.d.ts +3 -0
- package/out/shared/load-html.d.ts.map +1 -0
- package/out/shared/load-html.js +4 -0
- package/out/shared/test.d.ts.map +1 -1
- package/out/shared/test.js +1 -1
- package/out/ui/command-line-ui.d.ts +2 -0
- package/out/ui/command-line-ui.d.ts.map +1 -1
- package/out/ui/command-line-ui.js +13 -2
- package/out/ui/text.d.ts +0 -5
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +0 -5
- package/package.json +3 -2
- package/out/config/workflows-integration.d.ts +0 -18
- package/out/config/workflows-integration.d.ts.map +0 -1
- package/out/config/workflows-integration.js +0 -71
package/CHANGELOG.md
CHANGED
|
@@ -1,23 +1,42 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
-
## 10.0
|
|
3
|
+
## 10.1.0-next.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1b11dcc: Throw error message to print to user for UserNotFoundError
|
|
8
|
+
|
|
9
|
+
## 10.1.0-next.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 73a5262: Stop looking up feature gates and the custom spinner config at CLI startup; they are now only fetched when a gated option is used, its help is shown, or a spinner is first displayed
|
|
14
|
+
|
|
15
|
+
## 10.1.0-next.8
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- dd7fdb8: Reduced `forge` startup time by loading `undici`, the proxy agents and `form-data` on first use, and by not loading `@sentry/node` on exit unless analytics are on
|
|
20
|
+
|
|
21
|
+
## 10.1.0-next.7
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
6
24
|
|
|
7
|
-
-
|
|
25
|
+
- 4fc910f: Group an agent's commands into one session. The attribution (`atl-attribution` header and analytics events) now carries `sessionId` and `sessionIdSource`.
|
|
26
|
+
|
|
27
|
+
## 10.1.0-next.6
|
|
8
28
|
|
|
9
29
|
### Patch Changes
|
|
10
30
|
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
31
|
+
- 92f0a93: Load `cheerio/slim` instead of `cheerio`, which skips parse5 and undici, to start custom UI commands faster. `@forge/manifest` now loads `cheerio` and `@sentry/node` only when it needs them, and its error messages no longer pull in the whole manifest parser.
|
|
32
|
+
- Updated dependencies [92f0a93]
|
|
33
|
+
- @forge/manifest@13.9.2-next.1
|
|
14
34
|
|
|
15
|
-
|
|
35
|
+
## 10.1.0-next.5
|
|
16
36
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
-
|
|
20
|
-
- @forge/manifest@13.9.2-next.0-experimental-e080d98
|
|
37
|
+
### Minor Changes
|
|
38
|
+
|
|
39
|
+
- 7aeb5de: Transition to experiment gate for forge create with module templates
|
|
21
40
|
|
|
22
41
|
## 10.0.1-next.4
|
|
23
42
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-app-owner.d.ts","sourceRoot":"","sources":["../../src/apps/get-app-owner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA4B,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,qBAAa,oBAAqB,SAAQ,KAAK;;CAI9C;AAED,eAAO,MAAM,aAAa;
|
|
1
|
+
{"version":3,"file":"get-app-owner.d.ts","sourceRoot":"","sources":["../../src/apps/get-app-owner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA4B,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,qBAAa,oBAAqB,SAAQ,KAAK;;CAI9C;AAED,eAAO,MAAM,aAAa;QAuC0nzmH,iDAAc;GA9BhqzmH,CAAC;AAEH,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,YAAY;gBADZ,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,iBAAiB;IAGrC,OAAO;;;;;;;;;;;;;YAMN,WAAW;CAe1B"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { GraphQLClient, User } from '../../graphql/index.js';
|
|
2
2
|
import { UserError } from '../../shared/index.js';
|
|
3
|
-
import { Logger } from '../../ui/index.js';
|
|
4
3
|
export declare class UserNotFoundError extends UserError {
|
|
5
4
|
}
|
|
6
5
|
export declare class MeGraphqlClient {
|
|
7
6
|
private readonly graphqlClient;
|
|
8
|
-
|
|
9
|
-
constructor(graphqlClient: GraphQLClient, logger: Logger);
|
|
7
|
+
constructor(graphqlClient: GraphQLClient);
|
|
10
8
|
getUser(): Promise<User>;
|
|
11
9
|
}
|
|
12
10
|
//# sourceMappingURL=me-graphql-client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"me-graphql-client.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/me-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAW,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"me-graphql-client.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/me-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAW,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGlD,qBAAa,iBAAkB,SAAQ,SAAS;CAAG;AAEnD,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE5C,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAyBtC"}
|
|
@@ -5,10 +5,8 @@ export class UserNotFoundError extends UserError {
|
|
|
5
5
|
}
|
|
6
6
|
export class MeGraphqlClient {
|
|
7
7
|
graphqlClient;
|
|
8
|
-
|
|
9
|
-
constructor(graphqlClient, logger) {
|
|
8
|
+
constructor(graphqlClient) {
|
|
10
9
|
this.graphqlClient = graphqlClient;
|
|
11
|
-
this.logger = logger;
|
|
12
10
|
}
|
|
13
11
|
async getUser() {
|
|
14
12
|
try {
|
|
@@ -29,7 +27,7 @@ export class MeGraphqlClient {
|
|
|
29
27
|
}
|
|
30
28
|
}
|
|
31
29
|
catch (error) {
|
|
32
|
-
|
|
30
|
+
throw new UserNotFoundError(errorMessage(error));
|
|
33
31
|
}
|
|
34
32
|
throw new UserNotFoundError();
|
|
35
33
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GraphQLClient, User } from '../../graphql/index.js';
|
|
2
|
-
import { Logger } from '../../ui/index.js';
|
|
3
2
|
import { Authenticator } from '../index.js';
|
|
4
3
|
import { PersonalApiCredentials } from './credential-store.js';
|
|
5
4
|
export interface UserRepository {
|
|
@@ -7,9 +6,8 @@ export interface UserRepository {
|
|
|
7
6
|
}
|
|
8
7
|
export declare class UserRepositoryImpl {
|
|
9
8
|
private readonly createGraphQLClient;
|
|
10
|
-
private readonly logger;
|
|
11
9
|
private cache;
|
|
12
|
-
constructor(createGraphQLClient: (authenticator: Authenticator) => GraphQLClient
|
|
10
|
+
constructor(createGraphQLClient: (authenticator: Authenticator) => GraphQLClient);
|
|
13
11
|
private getCachedUser;
|
|
14
12
|
getUser(credentials: PersonalApiCredentials): Promise<User>;
|
|
15
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-repository.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/user-repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"user-repository.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/user-repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAI5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7D;AAED,qBAAa,kBAAkB;IAGjB,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAFhD,OAAO,CAAC,KAAK,CAA+C;gBAE/B,mBAAmB,EAAE,CAAC,aAAa,EAAE,aAAa,KAAK,aAAa;IAEjG,OAAO,CAAC,aAAa;IAWR,OAAO,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;CAkBzE"}
|
|
@@ -2,11 +2,9 @@ import { MeGraphqlClient } from './me-graphql-client.js';
|
|
|
2
2
|
import { PersonalTokenAuthenticator } from './token-authenticator.js';
|
|
3
3
|
export class UserRepositoryImpl {
|
|
4
4
|
createGraphQLClient;
|
|
5
|
-
logger;
|
|
6
5
|
cache = null;
|
|
7
|
-
constructor(createGraphQLClient
|
|
6
|
+
constructor(createGraphQLClient) {
|
|
8
7
|
this.createGraphQLClient = createGraphQLClient;
|
|
9
|
-
this.logger = logger;
|
|
10
8
|
}
|
|
11
9
|
getCachedUser(credentials) {
|
|
12
10
|
if (this.cache === null) {
|
|
@@ -27,7 +25,7 @@ export class UserRepositoryImpl {
|
|
|
27
25
|
getCredentials: async () => ({ ...credentials, accountId: '' })
|
|
28
26
|
});
|
|
29
27
|
const graphqlClient = this.createGraphQLClient(authenticator);
|
|
30
|
-
const meClient = new MeGraphqlClient(graphqlClient
|
|
28
|
+
const meClient = new MeGraphqlClient(graphqlClient);
|
|
31
29
|
const user = await meClient.getUser();
|
|
32
30
|
this.cache = [credentials, user];
|
|
33
31
|
return user;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-file.d.ts","sourceRoot":"","sources":["../../src/config/config-file.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAG7E,OAAO,EAAE,YAAY,EAAE,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;IAJ7B,OAAO,CAAC,cAAc,CAAC,CAAiB;gBAGrB,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,gBAAgB;IAGlC,cAAc,IAAI,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAiBzC,UAAU,IAAI,OAAO,CAAC,cAAc,CAAC;IAkBrC,WAAW,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAKvD,OAAO,CAAC,kBAAkB;IAoBb,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAajE,OAAO,CAAC,aAAa;IAIR,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAe1G,OAAO,CAAC,wBAAwB;IAKhC,OAAO,CAAC,wBAAwB;IAsBhC,OAAO,CAAC,6BAA6B;IAkBrC,OAAO,CAAC,gBAAgB;IAIX,oBAAoB,IAAI,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;KAAE,EAAE,CAAC;IAqClF,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAe1E,YAAY,CAAC,aAAa,CAAC,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAuB1E,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAKzD,OAAO,CAAC,eAAe;CAmCxB"}
|
|
@@ -3,7 +3,6 @@ import { Text } from '../ui/index.js';
|
|
|
3
3
|
import { manifestFileName } from './index.js';
|
|
4
4
|
import Case from 'case';
|
|
5
5
|
import { isHostedResourceModule, ModuleEntryPoints, validateResource } from './config.js';
|
|
6
|
-
import { loadWorkflowsIntegration, removeGeneratedModules } from './workflows-integration.js';
|
|
7
6
|
import { URL } from 'url';
|
|
8
7
|
import { UserError, ValidationError } from '../shared/index.js';
|
|
9
8
|
export class InvalidManifestError extends ValidationError {
|
|
@@ -118,9 +117,8 @@ export class ConfigFile {
|
|
|
118
117
|
throw new InvalidManifestError();
|
|
119
118
|
}
|
|
120
119
|
this.manifestParser ??= new (await import('@forge/manifest')).ManifestParserBuilder().withInterpolators().build();
|
|
121
|
-
let manifest;
|
|
122
120
|
try {
|
|
123
|
-
|
|
121
|
+
return this.manifestParser.parseManifest({
|
|
124
122
|
content: manifestFileContents,
|
|
125
123
|
filePath: manifestFileName
|
|
126
124
|
});
|
|
@@ -128,8 +126,6 @@ export class ConfigFile {
|
|
|
128
126
|
catch {
|
|
129
127
|
throw new InvalidManifestError();
|
|
130
128
|
}
|
|
131
|
-
const workflows = loadWorkflowsIntegration();
|
|
132
|
-
return workflows ? workflows.enrichManifest(manifest) : manifest;
|
|
133
129
|
}
|
|
134
130
|
async runtimeName() {
|
|
135
131
|
const config = await this.readConfig();
|
|
@@ -176,7 +172,7 @@ export class ConfigFile {
|
|
|
176
172
|
delete config[key];
|
|
177
173
|
}
|
|
178
174
|
});
|
|
179
|
-
currentConfigDoc.set(configKey,
|
|
175
|
+
currentConfigDoc.set(configKey, config);
|
|
180
176
|
this.writeManifest(currentConfigDoc);
|
|
181
177
|
}
|
|
182
178
|
getHostedResourceModules(modules) {
|
package/out/config/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export * from './config-codec-types.js';
|
|
|
2
2
|
export * from './config-file-section-reader.js';
|
|
3
3
|
export * from './config-file-section-writer.js';
|
|
4
4
|
export * from './config-file.js';
|
|
5
|
-
export * from './workflows-integration.js';
|
|
6
5
|
export * from './config-section.js';
|
|
7
6
|
export * from './config.js';
|
|
8
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAEA,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kBAAkB,CAAC;AACjC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAEA,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC"}
|
package/out/config/index.js
CHANGED
|
@@ -2,6 +2,5 @@ export * from './config-codec-types.js';
|
|
|
2
2
|
export * from './config-file-section-reader.js';
|
|
3
3
|
export * from './config-file-section-writer.js';
|
|
4
4
|
export * from './config-file.js';
|
|
5
|
-
export * from './workflows-integration.js';
|
|
6
5
|
export * from './config-section.js';
|
|
7
6
|
export * from './config.js';
|