@salesforce/plugin-agent 1.14.5-dev.4 → 1.14.5-dev.5
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/README.md +19 -19
- package/lib/commands/agent/test/create.d.ts +1 -1
- package/lib/commands/agent/test/create.js +42 -31
- package/lib/commands/agent/test/create.js.map +1 -1
- package/lib/flags.js +4 -4
- package/lib/flags.js.map +1 -1
- package/lib/yes-no-cancel.d.ts +10 -0
- package/lib/yes-no-cancel.js +60 -0
- package/lib/yes-no-cancel.js.map +1 -0
- package/messages/agent.test.create.md +5 -1
- package/npm-shrinkwrap.json +329 -8
- package/oclif.lock +24 -0
- package/oclif.manifest.json +3 -3
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -132,7 +132,7 @@ EXAMPLES
|
|
|
132
132
|
$ sf agent create --agent-name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
-
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.
|
|
135
|
+
_See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.5/src/commands/agent/create.ts)_
|
|
136
136
|
|
|
137
137
|
## `sf agent generate agent-spec`
|
|
138
138
|
|
|
@@ -236,7 +236,7 @@ EXAMPLES
|
|
|
236
236
|
$ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
|
|
237
237
|
```
|
|
238
238
|
|
|
239
|
-
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.
|
|
239
|
+
_See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.5/src/commands/agent/generate/agent-spec.ts)_
|
|
240
240
|
|
|
241
241
|
## `sf agent generate template`
|
|
242
242
|
|
|
@@ -269,7 +269,7 @@ EXAMPLES
|
|
|
269
269
|
$ sf agent generate template --agent-api-name My_Packaged_Agent
|
|
270
270
|
```
|
|
271
271
|
|
|
272
|
-
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.
|
|
272
|
+
_See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.5/src/commands/agent/generate/template.ts)_
|
|
273
273
|
|
|
274
274
|
## `sf agent generate test-spec`
|
|
275
275
|
|
|
@@ -296,7 +296,7 @@ EXAMPLES
|
|
|
296
296
|
$ sf agent generate test-spec
|
|
297
297
|
```
|
|
298
298
|
|
|
299
|
-
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.
|
|
299
|
+
_See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.5/src/commands/agent/generate/test-spec.ts)_
|
|
300
300
|
|
|
301
301
|
## `sf agent preview`
|
|
302
302
|
|
|
@@ -331,7 +331,7 @@ FLAG DESCRIPTIONS
|
|
|
331
331
|
the API name of the agent? (TBD based on agents library)
|
|
332
332
|
```
|
|
333
333
|
|
|
334
|
-
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.
|
|
334
|
+
_See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.5/src/commands/agent/preview.ts)_
|
|
335
335
|
|
|
336
336
|
## `sf agent test create`
|
|
337
337
|
|
|
@@ -339,17 +339,17 @@ Convert a test spec file into an AiEvaluationDefinition and deploy it to your or
|
|
|
339
339
|
|
|
340
340
|
```
|
|
341
341
|
USAGE
|
|
342
|
-
$ sf agent test create -o <value> [--json] [--flags-dir <value>] [--api-name <value>] [--spec <value>]
|
|
343
|
-
<value>] [--preview] [-p]
|
|
342
|
+
$ sf agent test create -o <value> [--json] [--flags-dir <value>] [--test-api-name <value>] [--spec <value>]
|
|
343
|
+
[--api-version <value>] [--preview] [-p]
|
|
344
344
|
|
|
345
345
|
FLAGS
|
|
346
|
-
-o, --target-org=<value>
|
|
347
|
-
|
|
348
|
-
-p, --no-prompt
|
|
349
|
-
--api-
|
|
350
|
-
--
|
|
351
|
-
--
|
|
352
|
-
--
|
|
346
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
347
|
+
configuration variable is already set.
|
|
348
|
+
-p, --no-prompt Don't prompt for confirmation when overwriting an existing test.
|
|
349
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
350
|
+
--preview Preview the test metadata without deploying to your org.
|
|
351
|
+
--spec=<value> The path to the spec file.
|
|
352
|
+
--test-api-name=<value> The API name of the AiEvaluationDefinition.
|
|
353
353
|
|
|
354
354
|
GLOBAL FLAGS
|
|
355
355
|
--flags-dir=<value> Import flag values from a directory.
|
|
@@ -367,7 +367,7 @@ EXAMPLES
|
|
|
367
367
|
$ sf agent test create
|
|
368
368
|
```
|
|
369
369
|
|
|
370
|
-
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.
|
|
370
|
+
_See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.5/src/commands/agent/test/create.ts)_
|
|
371
371
|
|
|
372
372
|
## `sf agent test list`
|
|
373
373
|
|
|
@@ -396,7 +396,7 @@ EXAMPLES
|
|
|
396
396
|
$ sf agent test list
|
|
397
397
|
```
|
|
398
398
|
|
|
399
|
-
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.
|
|
399
|
+
_See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.5/src/commands/agent/test/list.ts)_
|
|
400
400
|
|
|
401
401
|
## `sf agent test results`
|
|
402
402
|
|
|
@@ -452,7 +452,7 @@ FLAG DESCRIPTIONS
|
|
|
452
452
|
test results aren't written.
|
|
453
453
|
```
|
|
454
454
|
|
|
455
|
-
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.
|
|
455
|
+
_See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.5/src/commands/agent/test/results.ts)_
|
|
456
456
|
|
|
457
457
|
## `sf agent test resume`
|
|
458
458
|
|
|
@@ -515,7 +515,7 @@ FLAG DESCRIPTIONS
|
|
|
515
515
|
test results aren't written.
|
|
516
516
|
```
|
|
517
517
|
|
|
518
|
-
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.
|
|
518
|
+
_See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.5/src/commands/agent/test/resume.ts)_
|
|
519
519
|
|
|
520
520
|
## `sf agent test run`
|
|
521
521
|
|
|
@@ -578,6 +578,6 @@ FLAG DESCRIPTIONS
|
|
|
578
578
|
test results aren't written.
|
|
579
579
|
```
|
|
580
580
|
|
|
581
|
-
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.
|
|
581
|
+
_See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.14.5-dev.5/src/commands/agent/test/run.ts)_
|
|
582
582
|
|
|
583
583
|
<!-- commandsstop -->
|
|
@@ -16,7 +16,7 @@ export default class AgentTestCreate extends SfCommand<AgentTestCreateResult> {
|
|
|
16
16
|
preview: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
'no-prompt': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
18
18
|
spec: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
-
"api-name": import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
+
"test-api-name": import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
20
|
};
|
|
21
21
|
private mso?;
|
|
22
22
|
run(): Promise<AgentTestCreateResult>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2025, salesforce.com, inc.
|
|
3
3
|
* All rights reserved.
|
|
4
4
|
* Licensed under the BSD 3-Clause license.
|
|
5
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
@@ -7,32 +7,27 @@
|
|
|
7
7
|
import { join, resolve } from 'node:path';
|
|
8
8
|
import { existsSync } from 'node:fs';
|
|
9
9
|
import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
|
|
10
|
-
import { Lifecycle, Messages
|
|
10
|
+
import { Lifecycle, Messages } from '@salesforce/core';
|
|
11
11
|
import { AgentTester, AgentTestCreateLifecycleStages } from '@salesforce/agents';
|
|
12
12
|
import { MultiStageOutput } from '@oclif/multi-stage-output';
|
|
13
13
|
import { makeFlags, promptForFlag, promptForYamlFile } from '../../../flags.js';
|
|
14
|
-
|
|
15
|
-
// for example: LocalInfoAgent passes but not LocalInfoAgentTest
|
|
16
|
-
// export const FORTY_CHAR_API_NAME_REGEX =
|
|
17
|
-
// /^(?=.{1,57}$)[a-zA-Z]([a-zA-Z0-9]|_(?!_)){0,14}(__[a-zA-Z]([a-zA-Z0-9]|_(?!_)){0,39})?$/;
|
|
14
|
+
import yesNoOrCancel from '../../../yes-no-cancel.js';
|
|
18
15
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
19
16
|
const messages = Messages.loadMessages('@salesforce/plugin-agent', 'agent.test.create');
|
|
20
17
|
const FLAGGABLE_PROMPTS = {
|
|
21
|
-
'api-name': {
|
|
22
|
-
message: messages.getMessage('flags.api-name.summary'),
|
|
18
|
+
'test-api-name': {
|
|
19
|
+
message: messages.getMessage('flags.test-api-name.summary'),
|
|
23
20
|
validate: (d) => {
|
|
24
|
-
// ensure that it's not empty
|
|
25
21
|
if (!d.length) {
|
|
26
|
-
return '
|
|
22
|
+
return 'API name cannot be empty';
|
|
27
23
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
if (d.length > 80) {
|
|
25
|
+
return 'API name cannot be over 80 characters.';
|
|
26
|
+
}
|
|
27
|
+
const regex = /^[A-Za-z][A-Za-z0-9_]*[A-Za-z0-9]+$/;
|
|
28
|
+
if (!regex.test(d)) {
|
|
29
|
+
return 'Invalid API name.';
|
|
31
30
|
}
|
|
32
|
-
// check against FORTY_CHAR_API_NAME_REGEX once it's fixed
|
|
33
|
-
// if (!FORTY_CHAR_API_NAME_REGEX.test(d)) {
|
|
34
|
-
// return 'The non-namespaced portion an API name must begin with a letter, contain only letters, numbers, and underscores, not contain consecutive underscores, and not end with an underscore.';
|
|
35
|
-
// }
|
|
36
31
|
return true;
|
|
37
32
|
},
|
|
38
33
|
required: true,
|
|
@@ -49,6 +44,23 @@ const FLAGGABLE_PROMPTS = {
|
|
|
49
44
|
required: true,
|
|
50
45
|
},
|
|
51
46
|
};
|
|
47
|
+
async function promptUntilUniqueName(agentTester, name) {
|
|
48
|
+
const apiName = name ?? (await promptForFlag(FLAGGABLE_PROMPTS['test-api-name']));
|
|
49
|
+
const existingDefinitions = await agentTester.list();
|
|
50
|
+
if (existingDefinitions.some((d) => d.fullName === apiName)) {
|
|
51
|
+
const confirmation = await yesNoOrCancel({
|
|
52
|
+
message: messages.getMessage('prompt.confirm', [apiName]),
|
|
53
|
+
default: false,
|
|
54
|
+
});
|
|
55
|
+
if (confirmation === 'cancel') {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
if (!confirmation) {
|
|
59
|
+
return promptUntilUniqueName(agentTester);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return apiName;
|
|
63
|
+
}
|
|
52
64
|
export default class AgentTestCreate extends SfCommand {
|
|
53
65
|
static summary = messages.getMessage('summary');
|
|
54
66
|
static description = messages.getMessage('description');
|
|
@@ -70,16 +82,25 @@ export default class AgentTestCreate extends SfCommand {
|
|
|
70
82
|
async run() {
|
|
71
83
|
const { flags } = await this.parse(AgentTestCreate);
|
|
72
84
|
// throw error if --json is used and not all required flags are provided
|
|
73
|
-
if (this.jsonEnabled()) {
|
|
74
|
-
if (!flags['api-name']) {
|
|
75
|
-
throw messages.createError('error.missingRequiredFlags', ['api-name']);
|
|
85
|
+
if (this.jsonEnabled() || flags['no-prompt']) {
|
|
86
|
+
if (!flags['test-api-name']) {
|
|
87
|
+
throw messages.createError('error.missingRequiredFlags', ['test-api-name']);
|
|
76
88
|
}
|
|
77
89
|
if (!flags.spec) {
|
|
78
90
|
throw messages.createError('error.missingRequiredFlags', ['spec']);
|
|
79
91
|
}
|
|
80
92
|
}
|
|
81
93
|
const agentTester = new AgentTester(flags['target-org'].getConnection(flags['api-version']));
|
|
82
|
-
const apiName = flags['
|
|
94
|
+
const apiName = flags['no-prompt']
|
|
95
|
+
? flags['test-api-name']
|
|
96
|
+
: await promptUntilUniqueName(agentTester, flags['test-api-name']);
|
|
97
|
+
if (!apiName) {
|
|
98
|
+
this.log(messages.getMessage('info.cancel'));
|
|
99
|
+
return {
|
|
100
|
+
path: '',
|
|
101
|
+
contents: '',
|
|
102
|
+
};
|
|
103
|
+
}
|
|
83
104
|
const spec = flags.spec ?? (await promptForYamlFile(FLAGGABLE_PROMPTS.spec));
|
|
84
105
|
const lifecycle = Lifecycle.getInstance();
|
|
85
106
|
lifecycle.on(AgentTestCreateLifecycleStages.CreatingLocalMetadata, async () => {
|
|
@@ -104,16 +125,6 @@ export default class AgentTestCreate extends SfCommand {
|
|
|
104
125
|
}
|
|
105
126
|
return Promise.resolve();
|
|
106
127
|
});
|
|
107
|
-
const existingDefinitions = await agentTester.list();
|
|
108
|
-
if (existingDefinitions.some((d) => d.fullName === apiName)) {
|
|
109
|
-
const confirmation = await this.confirm({
|
|
110
|
-
message: messages.getMessage('prompt.confirm', [apiName]),
|
|
111
|
-
defaultAnswer: false,
|
|
112
|
-
});
|
|
113
|
-
if (!confirmation) {
|
|
114
|
-
throw new SfError(`An AiEvaluationDefinition with the name ${apiName} already exists in the org.`);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
128
|
const { path, contents } = await agentTester.create(apiName, spec, {
|
|
118
129
|
outputDir: join('force-app', 'main', 'default', 'aiEvaluationDefinitions'),
|
|
119
130
|
preview: flags.preview,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/agent/test/create.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/agent/test/create.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAW,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AAEjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,aAAa,MAAM,2BAA2B,CAAC;AAEtD,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,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AAE,GAAG,MAAM,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE;YACjE,SAAS,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,yBAAyB,CAAC;YAC1E,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB,CAAC,CAAC;QAEH,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;YAClB,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC;YACtD,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC;YACjB,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAChE,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,GAAG,CACN,QAAQ,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CACjH,CAAC;QACJ,CAAC;QAED,OAAO;YACL,IAAI;YACJ,QAAQ;SACT,CAAC;IACJ,CAAC;IAES,KAAK,CAAC,KAAiC;QAC/C,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC;QAClB,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC"}
|
package/lib/flags.js
CHANGED
|
@@ -61,15 +61,15 @@ async function traverseForYamlFiles(dir) {
|
|
|
61
61
|
return results;
|
|
62
62
|
}
|
|
63
63
|
export const promptForYamlFile = async (flagDef) => {
|
|
64
|
-
const
|
|
64
|
+
const yamlFiles = await traverseForYamlFiles(process.cwd());
|
|
65
65
|
return autocomplete({
|
|
66
66
|
message: flagDef.message,
|
|
67
67
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
68
68
|
source: async (input) => {
|
|
69
|
-
const
|
|
69
|
+
const arr = yamlFiles.map((o) => ({ name: relative(process.cwd(), o), value: o }));
|
|
70
70
|
if (!input)
|
|
71
|
-
return
|
|
72
|
-
return
|
|
71
|
+
return arr;
|
|
72
|
+
return arr.filter((o) => o.name.includes(input));
|
|
73
73
|
},
|
|
74
74
|
});
|
|
75
75
|
};
|
package/lib/flags.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flags.js","sourceRoot":"","sources":["../src/flags.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAc,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,YAAY,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,0BAA0B,EAAE,QAAQ,CAAC,CAAC;AAmB7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,CAAC;IAC3C,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,CAAU;IACnD,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,6BAA6B,CAAC;CAC5D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,MAA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AC;gBACnE,KAAK,EAAE,GAAG;aACX,CAAC,CAAC;QACL,CAAC;IACH,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EAAE,UAAsB,EAAE,SAAiB,EAAmB,EAAE;IACjG,MAAM,CAAC,GAAG,yCAAyC,SAAS,GAAG,CAAC;IAChE,OAAO,CAAC,MAAM,UAAU,CAAC,iBAAiB,CAAiB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACpE,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createPrompt, type Theme } from '@inquirer/core';
|
|
2
|
+
import type { PartialDeep } from '@inquirer/type';
|
|
3
|
+
type ConfirmConfig = {
|
|
4
|
+
message: string;
|
|
5
|
+
default?: boolean;
|
|
6
|
+
transformer?: (value: boolean) => string;
|
|
7
|
+
theme?: PartialDeep<Theme>;
|
|
8
|
+
};
|
|
9
|
+
declare const yesNoOrCancel: ReturnType<typeof createPrompt<boolean | 'cancel', ConfirmConfig>>;
|
|
10
|
+
export default yesNoOrCancel;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025, salesforce.com, inc.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* Licensed under the BSD 3-Clause license.
|
|
5
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
6
|
+
*/
|
|
7
|
+
import { createPrompt, useState, useKeypress, isEnterKey, usePrefix, makeTheme, } from '@inquirer/core';
|
|
8
|
+
function getBooleanValue(value, defaultValue) {
|
|
9
|
+
let answer = defaultValue !== false;
|
|
10
|
+
if (/^(y|yes)/i.test(value))
|
|
11
|
+
answer = true;
|
|
12
|
+
else if (/^(n|no)/i.test(value))
|
|
13
|
+
answer = false;
|
|
14
|
+
return answer;
|
|
15
|
+
}
|
|
16
|
+
function boolToString(value) {
|
|
17
|
+
return value ? 'Yes' : 'No';
|
|
18
|
+
}
|
|
19
|
+
// Adapted from https://github.com/SBoudrias/Inquirer.js/blob/main/packages/confirm/src/index.ts
|
|
20
|
+
const yesNoOrCancel = createPrompt((config, done) => {
|
|
21
|
+
const { transformer = boolToString } = config;
|
|
22
|
+
const [status, setStatus] = useState('idle');
|
|
23
|
+
const [value, setValue] = useState('');
|
|
24
|
+
const theme = makeTheme(config.theme);
|
|
25
|
+
const prefix = usePrefix({ status, theme });
|
|
26
|
+
useKeypress((key, rl) => {
|
|
27
|
+
if (isEnterKey(key)) {
|
|
28
|
+
const answer = getBooleanValue(value, config.default);
|
|
29
|
+
setValue(transformer(answer));
|
|
30
|
+
setStatus('done');
|
|
31
|
+
done(answer);
|
|
32
|
+
}
|
|
33
|
+
else if (key.name === 'tab') {
|
|
34
|
+
const answer = boolToString(!getBooleanValue(value, config.default));
|
|
35
|
+
rl.clearLine(0); // Remove the tab character.
|
|
36
|
+
rl.write(answer);
|
|
37
|
+
setValue(answer);
|
|
38
|
+
}
|
|
39
|
+
else if (key.name === 'c') {
|
|
40
|
+
setValue('cancel');
|
|
41
|
+
setStatus('done');
|
|
42
|
+
done('cancel');
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
setValue(rl.line);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
let formattedValue = value;
|
|
49
|
+
let defaultValue = '';
|
|
50
|
+
if (status === 'done') {
|
|
51
|
+
formattedValue = theme.style.answer(value);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
defaultValue = ` ${theme.style.defaultAnswer(config.default === false ? 'y/N/cancel' : 'Y/n/cancel')}`;
|
|
55
|
+
}
|
|
56
|
+
const message = theme.style.message(config.message, status);
|
|
57
|
+
return `${prefix} ${message}${defaultValue} ${formattedValue}`;
|
|
58
|
+
});
|
|
59
|
+
export default yesNoOrCancel;
|
|
60
|
+
//# sourceMappingURL=yes-no-cancel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yes-no-canc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AG,YAAY,IAAI,cAAc,EAAE,CAAC;AACjE,CAAC,CAAC,CAAC;AAEH,eAAe,aAAa,CAAC"}
|
|
@@ -20,7 +20,7 @@ Preview the test metadata without deploying to your org.
|
|
|
20
20
|
|
|
21
21
|
Don't prompt for confirmation when overwriting an existing test.
|
|
22
22
|
|
|
23
|
-
# flags.api-name.summary
|
|
23
|
+
# flags.test-api-name.summary
|
|
24
24
|
|
|
25
25
|
The API name of the AiEvaluationDefinition.
|
|
26
26
|
|
|
@@ -43,3 +43,7 @@ Preview of AiEvaluationDefinition created at %s
|
|
|
43
43
|
# error.missingRequiredFlags
|
|
44
44
|
|
|
45
45
|
Missing required flags: %s.
|
|
46
|
+
|
|
47
|
+
# info.cancel
|
|
48
|
+
|
|
49
|
+
Operation canceled.
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-agent",
|
|
3
|
-
"version": "1.14.5-dev.
|
|
3
|
+
"version": "1.14.5-dev.5",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@salesforce/plugin-agent",
|
|
9
|
-
"version": "1.14.5-dev.
|
|
9
|
+
"version": "1.14.5-dev.5",
|
|
10
10
|
"license": "BSD-3-Clause",
|
|
11
11
|
"dependencies": {
|
|
12
|
+
"@inquirer/core": "^10.1.6",
|
|
12
13
|
"@inquirer/figures": "^1.0.7",
|
|
13
14
|
"@inquirer/prompts": "^7.2.0",
|
|
14
15
|
"@oclif/core": "^4",
|
|
@@ -2161,6 +2162,47 @@
|
|
|
2161
2162
|
"@types/node": ">=18"
|
|
2162
2163
|
}
|
|
2163
2164
|
},
|
|
2165
|
+
"node_modules/@inquirer/checkbox/node_modules/@inquirer/core": {
|
|
2166
|
+
"version": "10.1.4",
|
|
2167
|
+
"resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.4.tgz",
|
|
2168
|
+
"integrity": "sha512-5y4/PUJVnRb4bwWY67KLdebWOhOc7xj5IP2J80oWXa64mVag24rwQ1VAdnj7/eDY/odhguW0zQ1Mp1pj6fO/2w==",
|
|
2169
|
+
"license": "MIT",
|
|
2170
|
+
"dependencies": {
|
|
2171
|
+
"@inquirer/figures": "^1.0.9",
|
|
2172
|
+
"@inquirer/type": "^3.0.2",
|
|
2173
|
+
"ansi-escapes": "^4.3.2",
|
|
2174
|
+
"cli-width": "^4.1.0",
|
|
2175
|
+
"mute-stream": "^2.0.0",
|
|
2176
|
+
"signal-exit": "^4.1.0",
|
|
2177
|
+
"strip-ansi": "^6.0.1",
|
|
2178
|
+
"wrap-ansi": "^6.2.0",
|
|
2179
|
+
"yoctocolors-cjs": "^2.1.2"
|
|
2180
|
+
},
|
|
2181
|
+
"engines": {
|
|
2182
|
+
"node": ">=18"
|
|
2183
|
+
}
|
|
2184
|
+
},
|
|
2185
|
+
"node_modules/@inquirer/checkbox/node_modules/mute-stream": {
|
|
2186
|
+
"version": "2.0.0",
|
|
2187
|
+
"resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz",
|
|
2188
|
+
"integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==",
|
|
2189
|
+
"license": "ISC",
|
|
2190
|
+
"engines": {
|
|
2191
|
+
"node": "^18.17.0 || >=20.5.0"
|
|
2192
|
+
}
|
|
2193
|
+
},
|
|
2194
|
+
"node_modules/@inquirer/checkbox/node_modules/signal-exit": {
|
|
2195
|
+
"version": "4.1.0",
|
|
2196
|
+
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
|
|
2197
|
+
"integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
|
|
2198
|
+
"license": "ISC",
|
|
2199
|
+
"engines": {
|
|
2200
|
+
"node": ">=14"
|
|
2201
|
+
},
|
|
2202
|
+
"funding": {
|
|
2203
|
+
"url": "https://github.com/sponsors/isaacs"
|
|
2204
|
+
}
|
|
2205
|
+
},
|
|
2164
2206
|
"node_modules/@inquirer/confirm": {
|
|
2165
2207
|
"version": "3.2.0",
|
|
2166
2208
|
"resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-3.2.0.tgz",
|
|
@@ -2232,25 +2274,58 @@
|
|
|
2232
2274
|
}
|
|
2233
2275
|
},
|
|
2234
2276
|
"node_modules/@inquirer/core": {
|
|
2235
|
-
"version": "10.1.
|
|
2236
|
-
"resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.
|
|
2237
|
-
"integrity": "sha512-
|
|
2277
|
+
"version": "10.1.6",
|
|
2278
|
+
"resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.6.tgz",
|
|
2279
|
+
"integrity": "sha512-Bwh/Zk6URrHwZnSSzAZAKH7YgGYi0xICIBDFOqBQoXNNAzBHw/bgXgLmChfp+GyR3PnChcTbiCTZGC6YJNJkMA==",
|
|
2238
2280
|
"license": "MIT",
|
|
2239
2281
|
"dependencies": {
|
|
2240
|
-
"@inquirer/figures": "^1.0.
|
|
2241
|
-
"@inquirer/type": "^3.0.
|
|
2282
|
+
"@inquirer/figures": "^1.0.10",
|
|
2283
|
+
"@inquirer/type": "^3.0.4",
|
|
2242
2284
|
"ansi-escapes": "^4.3.2",
|
|
2243
2285
|
"cli-width": "^4.1.0",
|
|
2244
2286
|
"mute-stream": "^2.0.0",
|
|
2245
2287
|
"signal-exit": "^4.1.0",
|
|
2246
|
-
"strip-ansi": "^6.0.1",
|
|
2247
2288
|
"wrap-ansi": "^6.2.0",
|
|
2248
2289
|
"yoctocolors-cjs": "^2.1.2"
|
|
2249
2290
|
},
|
|
2291
|
+
"engines": {
|
|
2292
|
+
"node": ">=18"
|
|
2293
|
+
},
|
|
2294
|
+
"peerDependencies": {
|
|
2295
|
+
"@types/node": ">=18"
|
|
2296
|
+
},
|
|
2297
|
+
"peerDependenciesMeta": {
|
|
2298
|
+
"@types/node": {
|
|
2299
|
+
"optional": true
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
},
|
|
2303
|
+
"node_modules/@inquirer/core/node_modules/@inquirer/figures": {
|
|
2304
|
+
"version": "1.0.10",
|
|
2305
|
+
"resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.10.tgz",
|
|
2306
|
+
"integrity": "sha512-Ey6176gZmeqZuY/W/nZiUyvmb1/qInjcpiZjXWi6nON+nxJpD1bxtSoBxNliGISae32n6OwbY+TSXPZ1CfS4bw==",
|
|
2307
|
+
"license": "MIT",
|
|
2250
2308
|
"engines": {
|
|
2251
2309
|
"node": ">=18"
|
|
2252
2310
|
}
|
|
2253
2311
|
},
|
|
2312
|
+
"node_modules/@inquirer/core/node_modules/@inquirer/type": {
|
|
2313
|
+
"version": "3.0.4",
|
|
2314
|
+
"resolved": "https://registry.npmjs.org/@inquirer/type/-/type-3.0.4.tgz",
|
|
2315
|
+
"integrity": "sha512-2MNFrDY8jkFYc9Il9DgLsHhMzuHnOYM1+CUYVWbzu9oT0hC7V7EcYvdCKeoll/Fcci04A+ERZ9wcc7cQ8lTkIA==",
|
|
2316
|
+
"license": "MIT",
|
|
2317
|
+
"engines": {
|
|
2318
|
+
"node": ">=18"
|
|
2319
|
+
},
|
|
2320
|
+
"peerDependencies": {
|
|
2321
|
+
"@types/node": ">=18"
|
|
2322
|
+
},
|
|
2323
|
+
"peerDependenciesMeta": {
|
|
2324
|
+
"@types/node": {
|
|
2325
|
+
"optional": true
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
},
|
|
2254
2329
|
"node_modules/@inquirer/core/node_modules/mute-stream": {
|
|
2255
2330
|
"version": "2.0.0",
|
|
2256
2331
|
"resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz",
|
|
@@ -2289,6 +2364,47 @@
|
|
|
2289
2364
|
"@types/node": ">=18"
|
|
2290
2365
|
}
|
|
2291
2366
|
},
|
|
2367
|
+
"node_modules/@inquirer/editor/node_modules/@inquirer/core": {
|
|
2368
|
+
"version": "10.1.4",
|
|
2369
|
+
"resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.4.tgz",
|
|
2370
|
+
"integrity": "sha512-5y4/PUJVnRb4bwWY67KLdebWOhOc7xj5IP2J80oWXa64mVag24rwQ1VAdnj7/eDY/odhguW0zQ1Mp1pj6fO/2w==",
|
|
2371
|
+
"license": "MIT",
|
|
2372
|
+
"dependencies": {
|
|
2373
|
+
"@inquirer/figures": "^1.0.9",
|
|
2374
|
+
"@inquirer/type": "^3.0.2",
|
|
2375
|
+
"ansi-escapes": "^4.3.2",
|
|
2376
|
+
"cli-width": "^4.1.0",
|
|
2377
|
+
"mute-stream": "^2.0.0",
|
|
2378
|
+
"signal-exit": "^4.1.0",
|
|
2379
|
+
"strip-ansi": "^6.0.1",
|
|
2380
|
+
"wrap-ansi": "^6.2.0",
|
|
2381
|
+
"yoctocolors-cjs": "^2.1.2"
|
|
2382
|
+
},
|
|
2383
|
+
"engines": {
|
|
2384
|
+
"node": ">=18"
|
|
2385
|
+
}
|
|
2386
|
+
},
|
|
2387
|
+
"node_modules/@inquirer/editor/node_modules/mute-stream": {
|
|
2388
|
+
"version": "2.0.0",
|
|
2389
|
+
"resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz",
|
|
2390
|
+
"integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==",
|
|
2391
|
+
"license": "ISC",
|
|
2392
|
+
"engines": {
|
|
2393
|
+
"node": "^18.17.0 || >=20.5.0"
|
|
2394
|
+
}
|
|
2395
|
+
},
|
|
2396
|
+
"node_modules/@inquirer/editor/node_modules/signal-exit": {
|
|
2397
|
+
"version": "4.1.0",
|
|
2398
|
+
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
|
|
2399
|
+
"integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
|
|
2400
|
+
"license": "ISC",
|
|
2401
|
+
"engines": {
|
|
2402
|
+
"node": ">=14"
|
|
2403
|
+
},
|
|
2404
|
+
"funding": {
|
|
2405
|
+
"url": "https://github.com/sponsors/isaacs"
|
|
2406
|
+
}
|
|
2407
|
+
},
|
|
2292
2408
|
"node_modules/@inquirer/expand": {
|
|
2293
2409
|
"version": "4.0.6",
|
|
2294
2410
|
"resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.6.tgz",
|
|
@@ -2306,6 +2422,47 @@
|
|
|
2306
2422
|
"@types/node": ">=18"
|
|
2307
2423
|
}
|
|
2308
2424
|
},
|
|
2425
|
+
"node_modules/@inquirer/expand/node_modules/@inquirer/core": {
|
|
2426
|
+
"version": "10.1.4",
|
|
2427
|
+
"resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.4.tgz",
|
|
2428
|
+
"integrity": "sha512-5y4/PUJVnRb4bwWY67KLdebWOhOc7xj5IP2J80oWXa64mVag24rwQ1VAdnj7/eDY/odhguW0zQ1Mp1pj6fO/2w==",
|
|
2429
|
+
"license": "MIT",
|
|
2430
|
+
"dependencies": {
|
|
2431
|
+
"@inquirer/figures": "^1.0.9",
|
|
2432
|
+
"@inquirer/type": "^3.0.2",
|
|
2433
|
+
"ansi-escapes": "^4.3.2",
|
|
2434
|
+
"cli-width": "^4.1.0",
|
|
2435
|
+
"mute-stream": "^2.0.0",
|
|
2436
|
+
"signal-exit": "^4.1.0",
|
|
2437
|
+
"strip-ansi": "^6.0.1",
|
|
2438
|
+
"wrap-ansi": "^6.2.0",
|
|
2439
|
+
"yoctocolors-cjs": "^2.1.2"
|
|
2440
|
+
},
|
|
2441
|
+
"engines": {
|
|
2442
|
+
"node": ">=18"
|
|
2443
|
+
}
|
|
2444
|
+
},
|
|
2445
|
+
"node_modules/@inquirer/expand/node_modules/mute-stream": {
|
|
2446
|
+
"version": "2.0.0",
|
|
2447
|
+
"resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz",
|
|
2448
|
+
"integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==",
|
|
2449
|
+
"license": "ISC",
|
|
2450
|
+
"engines": {
|
|
2451
|
+
"node": "^18.17.0 || >=20.5.0"
|
|
2452
|
+
}
|
|
2453
|
+
},
|
|
2454
|
+
"node_modules/@inquirer/expand/node_modules/signal-exit": {
|
|
2455
|
+
"version": "4.1.0",
|
|
2456
|
+
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
|
|
2457
|
+
"integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
|
|
2458
|
+
"license": "ISC",
|
|
2459
|
+
"engines": {
|
|
2460
|
+
"node": ">=14"
|
|
2461
|
+
},
|
|
2462
|
+
"funding": {
|
|
2463
|
+
"url": "https://github.com/sponsors/isaacs"
|
|
2464
|
+
}
|
|
2465
|
+
},
|
|
2309
2466
|
"node_modules/@inquirer/figures": {
|
|
2310
2467
|
"version": "1.0.9",
|
|
2311
2468
|
"resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.9.tgz",
|
|
@@ -2406,6 +2563,47 @@
|
|
|
2406
2563
|
"@types/node": ">=18"
|
|
2407
2564
|
}
|
|
2408
2565
|
},
|
|
2566
|
+
"node_modules/@inquirer/number/node_modules/@inquirer/core": {
|
|
2567
|
+
"version": "10.1.4",
|
|
2568
|
+
"resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.4.tgz",
|
|
2569
|
+
"integrity": "sha512-5y4/PUJVnRb4bwWY67KLdebWOhOc7xj5IP2J80oWXa64mVag24rwQ1VAdnj7/eDY/odhguW0zQ1Mp1pj6fO/2w==",
|
|
2570
|
+
"license": "MIT",
|
|
2571
|
+
"dependencies": {
|
|
2572
|
+
"@inquirer/figures": "^1.0.9",
|
|
2573
|
+
"@inquirer/type": "^3.0.2",
|
|
2574
|
+
"ansi-escapes": "^4.3.2",
|
|
2575
|
+
"cli-width": "^4.1.0",
|
|
2576
|
+
"mute-stream": "^2.0.0",
|
|
2577
|
+
"signal-exit": "^4.1.0",
|
|
2578
|
+
"strip-ansi": "^6.0.1",
|
|
2579
|
+
"wrap-ansi": "^6.2.0",
|
|
2580
|
+
"yoctocolors-cjs": "^2.1.2"
|
|
2581
|
+
},
|
|
2582
|
+
"engines": {
|
|
2583
|
+
"node": ">=18"
|
|
2584
|
+
}
|
|
2585
|
+
},
|
|
2586
|
+
"node_modules/@inquirer/number/node_modules/mute-stream": {
|
|
2587
|
+
"version": "2.0.0",
|
|
2588
|
+
"resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz",
|
|
2589
|
+
"integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==",
|
|
2590
|
+
"license": "ISC",
|
|
2591
|
+
"engines": {
|
|
2592
|
+
"node": "^18.17.0 || >=20.5.0"
|
|
2593
|
+
}
|
|
2594
|
+
},
|
|
2595
|
+
"node_modules/@inquirer/number/node_modules/signal-exit": {
|
|
2596
|
+
"version": "4.1.0",
|
|
2597
|
+
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
|
|
2598
|
+
"integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
|
|
2599
|
+
"license": "ISC",
|
|
2600
|
+
"engines": {
|
|
2601
|
+
"node": ">=14"
|
|
2602
|
+
},
|
|
2603
|
+
"funding": {
|
|
2604
|
+
"url": "https://github.com/sponsors/isaacs"
|
|
2605
|
+
}
|
|
2606
|
+
},
|
|
2409
2607
|
"node_modules/@inquirer/password": {
|
|
2410
2608
|
"version": "2.2.0",
|
|
2411
2609
|
"resolved": "https://registry.npmjs.org/@inquirer/password/-/password-2.2.0.tgz",
|
|
@@ -2517,6 +2715,26 @@
|
|
|
2517
2715
|
"@types/node": ">=18"
|
|
2518
2716
|
}
|
|
2519
2717
|
},
|
|
2718
|
+
"node_modules/@inquirer/prompts/node_modules/@inquirer/core": {
|
|
2719
|
+
"version": "10.1.4",
|
|
2720
|
+
"resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.4.tgz",
|
|
2721
|
+
"integrity": "sha512-5y4/PUJVnRb4bwWY67KLdebWOhOc7xj5IP2J80oWXa64mVag24rwQ1VAdnj7/eDY/odhguW0zQ1Mp1pj6fO/2w==",
|
|
2722
|
+
"license": "MIT",
|
|
2723
|
+
"dependencies": {
|
|
2724
|
+
"@inquirer/figures": "^1.0.9",
|
|
2725
|
+
"@inquirer/type": "^3.0.2",
|
|
2726
|
+
"ansi-escapes": "^4.3.2",
|
|
2727
|
+
"cli-width": "^4.1.0",
|
|
2728
|
+
"mute-stream": "^2.0.0",
|
|
2729
|
+
"signal-exit": "^4.1.0",
|
|
2730
|
+
"strip-ansi": "^6.0.1",
|
|
2731
|
+
"wrap-ansi": "^6.2.0",
|
|
2732
|
+
"yoctocolors-cjs": "^2.1.2"
|
|
2733
|
+
},
|
|
2734
|
+
"engines": {
|
|
2735
|
+
"node": ">=18"
|
|
2736
|
+
}
|
|
2737
|
+
},
|
|
2520
2738
|
"node_modules/@inquirer/prompts/node_modules/@inquirer/input": {
|
|
2521
2739
|
"version": "4.1.3",
|
|
2522
2740
|
"resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.1.3.tgz",
|
|
@@ -2569,6 +2787,27 @@
|
|
|
2569
2787
|
"@types/node": ">=18"
|
|
2570
2788
|
}
|
|
2571
2789
|
},
|
|
2790
|
+
"node_modules/@inquirer/prompts/node_modules/mute-stream": {
|
|
2791
|
+
"version": "2.0.0",
|
|
2792
|
+
"resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz",
|
|
2793
|
+
"integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==",
|
|
2794
|
+
"license": "ISC",
|
|
2795
|
+
"engines": {
|
|
2796
|
+
"node": "^18.17.0 || >=20.5.0"
|
|
2797
|
+
}
|
|
2798
|
+
},
|
|
2799
|
+
"node_modules/@inquirer/prompts/node_modules/signal-exit": {
|
|
2800
|
+
"version": "4.1.0",
|
|
2801
|
+
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
|
|
2802
|
+
"integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
|
|
2803
|
+
"license": "ISC",
|
|
2804
|
+
"engines": {
|
|
2805
|
+
"node": ">=14"
|
|
2806
|
+
},
|
|
2807
|
+
"funding": {
|
|
2808
|
+
"url": "https://github.com/sponsors/isaacs"
|
|
2809
|
+
}
|
|
2810
|
+
},
|
|
2572
2811
|
"node_modules/@inquirer/rawlist": {
|
|
2573
2812
|
"version": "4.0.6",
|
|
2574
2813
|
"resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-4.0.6.tgz",
|
|
@@ -2586,6 +2825,47 @@
|
|
|
2586
2825
|
"@types/node": ">=18"
|
|
2587
2826
|
}
|
|
2588
2827
|
},
|
|
2828
|
+
"node_modules/@inquirer/rawlist/node_modules/@inquirer/core": {
|
|
2829
|
+
"version": "10.1.4",
|
|
2830
|
+
"resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.4.tgz",
|
|
2831
|
+
"integrity": "sha512-5y4/PUJVnRb4bwWY67KLdebWOhOc7xj5IP2J80oWXa64mVag24rwQ1VAdnj7/eDY/odhguW0zQ1Mp1pj6fO/2w==",
|
|
2832
|
+
"license": "MIT",
|
|
2833
|
+
"dependencies": {
|
|
2834
|
+
"@inquirer/figures": "^1.0.9",
|
|
2835
|
+
"@inquirer/type": "^3.0.2",
|
|
2836
|
+
"ansi-escapes": "^4.3.2",
|
|
2837
|
+
"cli-width": "^4.1.0",
|
|
2838
|
+
"mute-stream": "^2.0.0",
|
|
2839
|
+
"signal-exit": "^4.1.0",
|
|
2840
|
+
"strip-ansi": "^6.0.1",
|
|
2841
|
+
"wrap-ansi": "^6.2.0",
|
|
2842
|
+
"yoctocolors-cjs": "^2.1.2"
|
|
2843
|
+
},
|
|
2844
|
+
"engines": {
|
|
2845
|
+
"node": ">=18"
|
|
2846
|
+
}
|
|
2847
|
+
},
|
|
2848
|
+
"node_modules/@inquirer/rawlist/node_modules/mute-stream": {
|
|
2849
|
+
"version": "2.0.0",
|
|
2850
|
+
"resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz",
|
|
2851
|
+
"integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==",
|
|
2852
|
+
"license": "ISC",
|
|
2853
|
+
"engines": {
|
|
2854
|
+
"node": "^18.17.0 || >=20.5.0"
|
|
2855
|
+
}
|
|
2856
|
+
},
|
|
2857
|
+
"node_modules/@inquirer/rawlist/node_modules/signal-exit": {
|
|
2858
|
+
"version": "4.1.0",
|
|
2859
|
+
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
|
|
2860
|
+
"integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
|
|
2861
|
+
"license": "ISC",
|
|
2862
|
+
"engines": {
|
|
2863
|
+
"node": ">=14"
|
|
2864
|
+
},
|
|
2865
|
+
"funding": {
|
|
2866
|
+
"url": "https://github.com/sponsors/isaacs"
|
|
2867
|
+
}
|
|
2868
|
+
},
|
|
2589
2869
|
"node_modules/@inquirer/search": {
|
|
2590
2870
|
"version": "3.0.6",
|
|
2591
2871
|
"resolved": "https://registry.npmjs.org/@inquirer/search/-/search-3.0.6.tgz",
|
|
@@ -2604,6 +2884,47 @@
|
|
|
2604
2884
|
"@types/node": ">=18"
|
|
2605
2885
|
}
|
|
2606
2886
|
},
|
|
2887
|
+
"node_modules/@inquirer/search/node_modules/@inquirer/core": {
|
|
2888
|
+
"version": "10.1.4",
|
|
2889
|
+
"resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.4.tgz",
|
|
2890
|
+
"integrity": "sha512-5y4/PUJVnRb4bwWY67KLdebWOhOc7xj5IP2J80oWXa64mVag24rwQ1VAdnj7/eDY/odhguW0zQ1Mp1pj6fO/2w==",
|
|
2891
|
+
"license": "MIT",
|
|
2892
|
+
"dependencies": {
|
|
2893
|
+
"@inquirer/figures": "^1.0.9",
|
|
2894
|
+
"@inquirer/type": "^3.0.2",
|
|
2895
|
+
"ansi-escapes": "^4.3.2",
|
|
2896
|
+
"cli-width": "^4.1.0",
|
|
2897
|
+
"mute-stream": "^2.0.0",
|
|
2898
|
+
"signal-exit": "^4.1.0",
|
|
2899
|
+
"strip-ansi": "^6.0.1",
|
|
2900
|
+
"wrap-ansi": "^6.2.0",
|
|
2901
|
+
"yoctocolors-cjs": "^2.1.2"
|
|
2902
|
+
},
|
|
2903
|
+
"engines": {
|
|
2904
|
+
"node": ">=18"
|
|
2905
|
+
}
|
|
2906
|
+
},
|
|
2907
|
+
"node_modules/@inquirer/search/node_modules/mute-stream": {
|
|
2908
|
+
"version": "2.0.0",
|
|
2909
|
+
"resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz",
|
|
2910
|
+
"integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==",
|
|
2911
|
+
"license": "ISC",
|
|
2912
|
+
"engines": {
|
|
2913
|
+
"node": "^18.17.0 || >=20.5.0"
|
|
2914
|
+
}
|
|
2915
|
+
},
|
|
2916
|
+
"node_modules/@inquirer/search/node_modules/signal-exit": {
|
|
2917
|
+
"version": "4.1.0",
|
|
2918
|
+
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
|
|
2919
|
+
"integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
|
|
2920
|
+
"license": "ISC",
|
|
2921
|
+
"engines": {
|
|
2922
|
+
"node": ">=14"
|
|
2923
|
+
},
|
|
2924
|
+
"funding": {
|
|
2925
|
+
"url": "https://github.com/sponsors/isaacs"
|
|
2926
|
+
}
|
|
2927
|
+
},
|
|
2607
2928
|
"node_modules/@inquirer/select": {
|
|
2608
2929
|
"version": "2.5.0",
|
|
2609
2930
|
"resolved": "https://registry.npmjs.org/@inquirer/select/-/select-2.5.0.tgz",
|
package/oclif.lock
CHANGED
|
@@ -1095,6 +1095,20 @@
|
|
|
1095
1095
|
wrap-ansi "^6.2.0"
|
|
1096
1096
|
yoctocolors-cjs "^2.1.2"
|
|
1097
1097
|
|
|
1098
|
+
"@inquirer/core@^10.1.6":
|
|
1099
|
+
version "10.1.6"
|
|
1100
|
+
resolved "https://registry.yarnpkg.com/@inquirer/core/-/core-10.1.6.tgz#2a92a219cb48c81453e145a5040d0e04f7df1aa2"
|
|
1101
|
+
integrity sha512-Bwh/Zk6URrHwZnSSzAZAKH7YgGYi0xICIBDFOqBQoXNNAzBHw/bgXgLmChfp+GyR3PnChcTbiCTZGC6YJNJkMA==
|
|
1102
|
+
dependencies:
|
|
1103
|
+
"@inquirer/figures" "^1.0.10"
|
|
1104
|
+
"@inquirer/type" "^3.0.4"
|
|
1105
|
+
ansi-escapes "^4.3.2"
|
|
1106
|
+
cli-width "^4.1.0"
|
|
1107
|
+
mute-stream "^2.0.0"
|
|
1108
|
+
signal-exit "^4.1.0"
|
|
1109
|
+
wrap-ansi "^6.2.0"
|
|
1110
|
+
yoctocolors-cjs "^2.1.2"
|
|
1111
|
+
|
|
1098
1112
|
"@inquirer/core@^3.1.1":
|
|
1099
1113
|
version "3.1.2"
|
|
1100
1114
|
resolved "https://registry.yarnpkg.com/@inquirer/core/-/core-3.1.2.tgz#d9691e6ffae85935685641550b8370ab7e599caa"
|
|
@@ -1151,6 +1165,11 @@
|
|
|
1151
1165
|
"@inquirer/type" "^3.0.2"
|
|
1152
1166
|
yoctocolors-cjs "^2.1.2"
|
|
1153
1167
|
|
|
1168
|
+
"@inquirer/figures@^1.0.10":
|
|
1169
|
+
version "1.0.10"
|
|
1170
|
+
resolved "https://registry.yarnpkg.com/@inquirer/figures/-/figures-1.0.10.tgz#e3676a51c9c51aaabcd6ba18a28e82b98417db37"
|
|
1171
|
+
integrity sha512-Ey6176gZmeqZuY/W/nZiUyvmb1/qInjcpiZjXWi6nON+nxJpD1bxtSoBxNliGISae32n6OwbY+TSXPZ1CfS4bw==
|
|
1172
|
+
|
|
1154
1173
|
"@inquirer/figures@^1.0.5", "@inquirer/figures@^1.0.7", "@inquirer/figures@^1.0.9":
|
|
1155
1174
|
version "1.0.9"
|
|
1156
1175
|
resolved "https://registry.yarnpkg.com/@inquirer/figures/-/figures-1.0.9.tgz#9d8128f8274cde4ca009ca8547337cab3f37a4a3"
|
|
@@ -1274,6 +1293,11 @@
|
|
|
1274
1293
|
resolved "https://registry.yarnpkg.com/@inquirer/type/-/type-3.0.2.tgz#baff9f8d70947181deb36772cd9a5b6876d3e60c"
|
|
1275
1294
|
integrity sha512-ZhQ4TvhwHZF+lGhQ2O/rsjo80XoZR5/5qhOY3t6FJuX5XBg5Be8YzYTvaUGJnc12AUGI2nr4QSUE4PhKSigx7g==
|
|
1276
1295
|
|
|
1296
|
+
"@inquirer/type@^3.0.4":
|
|
1297
|
+
version "3.0.4"
|
|
1298
|
+
resolved "https://registry.yarnpkg.com/@inquirer/type/-/type-3.0.4.tgz#fa5f9e91a0abf3c9e93d3e1990ecb891d8195cf2"
|
|
1299
|
+
integrity sha512-2MNFrDY8jkFYc9Il9DgLsHhMzuHnOYM1+CUYVWbzu9oT0hC7V7EcYvdCKeoll/Fcci04A+ERZ9wcc7cQ8lTkIA==
|
|
1300
|
+
|
|
1277
1301
|
"@isaacs/cliui@^8.0.2":
|
|
1278
1302
|
version "8.0.2"
|
|
1279
1303
|
resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550"
|
package/oclif.manifest.json
CHANGED
|
@@ -623,8 +623,8 @@
|
|
|
623
623
|
"multiple": false,
|
|
624
624
|
"type": "option"
|
|
625
625
|
},
|
|
626
|
-
"api-name": {
|
|
627
|
-
"name": "api-name",
|
|
626
|
+
"test-api-name": {
|
|
627
|
+
"name": "test-api-name",
|
|
628
628
|
"summary": "The API name of the AiEvaluationDefinition.",
|
|
629
629
|
"hasDynamicHelp": false,
|
|
630
630
|
"multiple": false,
|
|
@@ -1097,5 +1097,5 @@
|
|
|
1097
1097
|
]
|
|
1098
1098
|
}
|
|
1099
1099
|
},
|
|
1100
|
-
"version": "1.14.5-dev.
|
|
1100
|
+
"version": "1.14.5-dev.5"
|
|
1101
1101
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-agent",
|
|
3
3
|
"description": "Commands to interact with Salesforce agents",
|
|
4
|
-
"version": "1.14.5-dev.
|
|
4
|
+
"version": "1.14.5-dev.5",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
+
"@inquirer/core": "^10.1.6",
|
|
8
9
|
"@inquirer/figures": "^1.0.7",
|
|
9
10
|
"@inquirer/prompts": "^7.2.0",
|
|
10
11
|
"@oclif/core": "^4",
|
|
@@ -227,7 +228,7 @@
|
|
|
227
228
|
"exports": "./lib/index.js",
|
|
228
229
|
"type": "module",
|
|
229
230
|
"sfdx": {
|
|
230
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.14.5-dev.
|
|
231
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.14.5-dev.
|
|
231
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.14.5-dev.5.crt",
|
|
232
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.14.5-dev.5.sig"
|
|
232
233
|
}
|
|
233
234
|
}
|