@forge/cli-shared 9.11.0-next.9 → 10.0.0-next.12
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 +20 -0
- package/out/apps/create-an-app.d.ts +2 -2
- package/out/apps/create-an-app.d.ts.map +1 -1
- package/out/apps/create-an-app.js +2 -2
- package/out/apps/get-app-owner.d.ts.map +1 -1
- package/out/config/config-file.d.ts.map +1 -1
- package/out/config/config-file.js +1 -1
- package/out/file-system/file-system-reader.d.ts.map +1 -1
- package/out/file-system/file-system-reader.js +3 -4
- package/out/graphql/gql/graphql.d.ts +168 -15
- package/out/graphql/gql/graphql.d.ts.map +1 -1
- package/out/shared/forge-cli-attribution.d.ts +3 -0
- package/out/shared/forge-cli-attribution.d.ts.map +1 -1
- package/out/shared/forge-cli-attribution.js +32 -5
- package/out/shared/index.d.ts +0 -3
- package/out/shared/index.d.ts.map +1 -1
- package/out/shared/index.js +0 -5
- package/out/shared/read-app-config-files.d.ts.map +1 -1
- package/out/shared/read-app-config-files.js +3 -4
- package/out/shared/runner-signals.d.ts +6 -0
- package/out/shared/runner-signals.d.ts.map +1 -0
- package/out/shared/runner-signals.js +11 -0
- package/out/ui/text.d.ts +4 -4
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +8 -8
- package/package.json +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
+
## 10.0.0-next.12
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- a4b2f56: Rename --no-install to --skip-dependencies for create and module add
|
|
8
|
+
|
|
9
|
+
## 9.11.0-next.11
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 112c0c6: Add `isAgentV2` and `isCIV2` to the attribution payload (`atl-attribution` header and analytics events), detecting whether a named agent or CI runs the command without reading the `CI` variable: `isCIV2` is `"true"` when `ci-info` names a CI tool, not when `CI=true`, and `isAgentV2` is `"true"` when an agent names itself, with or without a terminal. A named agent in a CI tool is both. `isAgent` and `isCI` are unchanged. Also send `ciHint` (the CI tool's `ci-info` id), `isTerminal` (stdin is a terminal) and `isUnrecognizedNonTTY`. The new fields are strings so the backend keeps them as wildcard fields. With the `non-interactive` setting `auto`, non-interactive mode turns on for a named agent (`isAgentV2`), in CI or not; CI, scripts and unnamed agents keep today's behaviour
|
|
14
|
+
|
|
15
|
+
Bump `@vercel/detect-agent` to 1.2.7 and add `ci-info` 4.4.0
|
|
16
|
+
|
|
17
|
+
## 9.11.0-next.10
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 32cccae: Use native `Array.prototype.flat` and `flatMap` instead of the `array.prototype.flatmap` polyfill.
|
|
22
|
+
|
|
3
23
|
## 9.11.0-next.9
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -6,7 +6,7 @@ export interface CreateAppCommandInput extends CreateAppClientInput {
|
|
|
6
6
|
template: string;
|
|
7
7
|
directory: string;
|
|
8
8
|
compatibility?: AppCompatibility;
|
|
9
|
-
|
|
9
|
+
skipDependencies?: boolean;
|
|
10
10
|
prependAppName?: boolean;
|
|
11
11
|
beforeRegister?: (directory: string) => Promise<void>;
|
|
12
12
|
}
|
|
@@ -24,7 +24,7 @@ export declare class CreateAppCommand {
|
|
|
24
24
|
private readonly packageInstaller;
|
|
25
25
|
private readonly statsig;
|
|
26
26
|
constructor(templater: Templater, registerAppCommand: RegisterAppCommand, packageInstaller: PackageInstaller, statsig: StatsigService);
|
|
27
|
-
execute({ name, description, template, directory, compatibility, developerSpaceId, billingConsent, appFeatures,
|
|
27
|
+
execute({ name, description, template, directory, compatibility, developerSpaceId, billingConsent, appFeatures, skipDependencies, prependAppName, beforeRegister }: CreateAppCommandInput): Promise<CreateAppCommandResult>;
|
|
28
28
|
getAvailableTemplates(): Promise<string[]>;
|
|
29
29
|
filterAvailableProducts<T extends string>(products: T[], teamworkGraph: T, crossContext: T): Promise<T[]>;
|
|
30
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-an-app.d.ts","sourceRoot":"","sources":["../../src/apps/create-an-app.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC/G,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,
|
|
1
|
+
{"version":3,"file":"create-an-app.d.ts","sourceRoot":"","sources":["../../src/apps/create-an-app.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC/G,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACvD;AAED,qBAAa,gBAAiB,SAAQ,KAAK;;CAI1C;AAED,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,GAAG;IACvD,SAAS,EAAE;QACT,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAHP,SAAS,EAAE,SAAS,EACpB,kBAAkB,EAAE,kBAAkB,EACtC,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,cAAc;IAG7B,OAAO,CAAC,EACnB,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,cAAqB,EACrB,cAAc,EACf,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAmC7C,qBAAqB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAS1C,uBAAuB,CAAC,CAAC,SAAS,MAAM,EACnD,QAAQ,EAAE,CAAC,EAAE,EACb,aAAa,EAAE,CAAC,EAChB,YAAY,EAAE,CAAC,GACd,OAAO,CAAC,CAAC,EAAE,CAAC;CAchB"}
|
|
@@ -20,7 +20,7 @@ class CreateAppCommand {
|
|
|
20
20
|
this.packageInstaller = packageInstaller;
|
|
21
21
|
this.statsig = statsig;
|
|
22
22
|
}
|
|
23
|
-
async execute({ name, description, template, directory, compatibility, developerSpaceId, billingConsent, appFeatures,
|
|
23
|
+
async execute({ name, description, template, directory, compatibility, developerSpaceId, billingConsent, appFeatures, skipDependencies, prependAppName = true, beforeRegister }) {
|
|
24
24
|
await this.templater.downloadAndExtract(template, directory);
|
|
25
25
|
if (beforeRegister) {
|
|
26
26
|
try {
|
|
@@ -41,7 +41,7 @@ class CreateAppCommand {
|
|
|
41
41
|
shouldPrependAppName: prependAppName,
|
|
42
42
|
compatibility
|
|
43
43
|
});
|
|
44
|
-
if (
|
|
44
|
+
if (!skipDependencies) {
|
|
45
45
|
await this.packageInstaller.install(directory);
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
@@ -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,YAAY,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,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,YAAY,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,qBAAa,oBAAqB,SAAQ,KAAK;;CAI9C;AAED,eAAO,MAAM,aAAa;QAuC+68gH,8CAAc;GA9Br98gH,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 +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,gBAAgB,CAAC;AAGpE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAoB,MAAM,IAAI,CAAC;AAGlE,OAAO,EACL,OAAO,EACP,cAAc,EACd,SAAS,EAOV,MAAM,iBAA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O,CAAC,QAAQ,CAAC,cAAc,CAAiB;gBAE7B,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,gBAAgB;IAKlC,cAAc,IAAI,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAiBzC,UAAU,IAAI,OAAO,CAAC,cAAc,CAAC;IAYrC,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;IAkBhC,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;IAsB1E,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAKzD,OAAO,CAAC,eAAe;CAkCxB"}
|
|
@@ -181,7 +181,7 @@ class ConfigFile {
|
|
|
181
181
|
this.writeManifest(currentConfigDoc);
|
|
182
182
|
}
|
|
183
183
|
getHostedResourceModules(modules) {
|
|
184
|
-
const modulesArray =
|
|
184
|
+
const modulesArray = Object.values(modules).flat();
|
|
185
185
|
return modulesArray.filter(config_1.isHostedResourceModule);
|
|
186
186
|
}
|
|
187
187
|
assertNoMissingResources(modules, resources) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-system-reader.d.ts","sourceRoot":"","sources":["../../src/file-system/file-system-reader.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"file-system-reader.d.ts","sourceRoot":"","sources":["../../src/file-system/file-system-reader.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,MAAM,IAAI,CAAC;AAS9C,KAAK,cAAc,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,OAAO,CAAC;AAEjE,qBAAa,gBAAgB;IACpB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAIrC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAQxC,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAS5D,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,GAAG,cAAc,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAgBtG,QAAQ,CAAC,EAAE,OAAO,EAAE,SAAiB,EAAE,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAmB3G,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAI7C,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAQ9C,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IASxE,gBAAgB,IAAI,MAAM;IAI1B,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM;IAO3C,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAQvC,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAU/E,OAAO,CAAC,eAAe;IAQV,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAIpE"}
|
|
@@ -8,7 +8,6 @@ const os_1 = require("os");
|
|
|
8
8
|
const path_1 = tslib_1.__importStar(require("path"));
|
|
9
9
|
const util_1 = require("util");
|
|
10
10
|
const recursive_readdir_1 = tslib_1.__importDefault(require("recursive-readdir"));
|
|
11
|
-
const shared_1 = require("../shared");
|
|
12
11
|
const FILE_NOT_FOUND_CODE = 'ENOENT';
|
|
13
12
|
class FileSystemReader {
|
|
14
13
|
fileExists(filePath) {
|
|
@@ -46,14 +45,14 @@ class FileSystemReader {
|
|
|
46
45
|
async readGlob({ pattern, filesOnly = false }) {
|
|
47
46
|
let results = await (0, glob_1.glob)(pattern, {});
|
|
48
47
|
if (filesOnly) {
|
|
49
|
-
results = (
|
|
48
|
+
results = (await Promise.all(results.map(async (result) => {
|
|
50
49
|
if ((await fs_1.default.promises.lstat(result)).isFile()) {
|
|
51
50
|
return [result];
|
|
52
51
|
}
|
|
53
52
|
else {
|
|
54
53
|
return [];
|
|
55
54
|
}
|
|
56
|
-
})));
|
|
55
|
+
}))).flat();
|
|
57
56
|
}
|
|
58
57
|
results.sort();
|
|
59
58
|
return results;
|
|
@@ -113,7 +112,7 @@ class FileSystemReader {
|
|
|
113
112
|
}
|
|
114
113
|
async getFileGlobList(globList) {
|
|
115
114
|
const files = await Promise.all(globList.map((pattern) => this.readGlob({ pattern, filesOnly: true })));
|
|
116
|
-
return
|
|
115
|
+
return files.flat();
|
|
117
116
|
}
|
|
118
117
|
}
|
|
119
118
|
exports.FileSystemReader = FileSystemReader;
|