@forge/cli-shared 10.0.0-next.17 → 10.0.0-next.18
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
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
+
## 10.0.0-next.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0024a97: The prompt sent to an AI assistant after a failed command no longer includes secret values, and `--verbose` GraphQL logs no longer show the OAuth client secret, web trigger secret key or encrypted variable values.
|
|
8
|
+
|
|
3
9
|
## 10.0.0-next.17
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debugging-graphql-runner.d.ts","sourceRoot":"","sources":["../../src/graphql/debugging-graphql-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAG/D,wBAAgB,SAAS,CAAC,SAAS,EAAE,GAAG,UAEvC;AAED,qBAAa,sBAAuB,YAAW,aAAa;IAKxD,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,MAAM;IALzB,OAAO,CAAC,QAAQ,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"debugging-graphql-runner.d.ts","sourceRoot":"","sources":["../../src/graphql/debugging-graphql-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAG/D,wBAAgB,SAAS,CAAC,SAAS,EAAE,GAAG,UAEvC;AAED,qBAAa,sBAAuB,YAAW,aAAa;IAKxD,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,MAAM;IALzB,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAsE;gBAGrF,WAAW,EAAE,aAAa,EAC1B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM;IAGjC,OAAO,CAAC,mBAAmB;IAyBd,GAAG,CAAC,UAAU,SAAS,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU;;;;;CAe5G"}
|
|
@@ -6,7 +6,7 @@ export class DebuggingGraphqlRunner {
|
|
|
6
6
|
innerClient;
|
|
7
7
|
endpoint;
|
|
8
8
|
logger;
|
|
9
|
-
sensitivePatterns = [/X-Amz-Security-Token/i];
|
|
9
|
+
sensitivePatterns = [/X-Amz-Security-Token/i, /^clientSecret$/i, /^secretKeyConfig$/i];
|
|
10
10
|
constructor(innerClient, endpoint, logger) {
|
|
11
11
|
this.innerClient = innerClient;
|
|
12
12
|
this.endpoint = endpoint;
|
|
@@ -20,6 +20,9 @@ export class DebuggingGraphqlRunner {
|
|
|
20
20
|
}
|
|
21
21
|
if (typeof data === 'object' && data !== null) {
|
|
22
22
|
const filtered = { ...data };
|
|
23
|
+
if (filtered.encrypt === true) {
|
|
24
|
+
delete filtered.value;
|
|
25
|
+
}
|
|
23
26
|
for (const key of Object.keys(filtered)) {
|
|
24
27
|
if (this.sensitivePatterns.some((pattern) => pattern.test(key))) {
|
|
25
28
|
delete filtered[key];
|
package/out/ui/text.js
CHANGED
|
@@ -1914,9 +1914,9 @@ When errors occur during Forge command execution, error details will be sent to
|
|
|
1914
1914
|
}
|
|
1915
1915
|
},
|
|
1916
1916
|
secretInput: {
|
|
1917
|
-
emptyStdin: (secretName) => `No ${secretName} was received on stdin. Pipe it in, or
|
|
1917
|
+
emptyStdin: (secretName) => `No ${secretName} was received on stdin. Pipe it in, or rerun the command without piped or redirected input to be prompted.`,
|
|
1918
1918
|
missingNonInteractive: (secretName, hint) => `The CLI can't ask for the ${secretName} in non-interactive mode. ${hint}`,
|
|
1919
|
-
stdinTimedOut: 'Failed to read from stdin: timed out waiting for input. Pipe the value
|
|
1919
|
+
stdinTimedOut: 'Failed to read from stdin: timed out waiting for input. Pipe the value in, or rerun the command without piped or redirected input to be prompted.',
|
|
1920
1920
|
cannotPromptWhileStdin: (askedFor, secretName, hint) => `The CLI can't ask for ${askedFor} while the ${secretName} comes from stdin. ${hint}`,
|
|
1921
1921
|
pipeIn: (secretName) => `Pipe the ${secretName} in on stdin.`,
|
|
1922
1922
|
passFlagAndPipeIn: (readFlag, secretName) => `Pass ${readFlag} and pipe the ${secretName} in on stdin.`,
|