Skip to content

Commit 8953d0c

Browse files
chore: snapshot and schemas
1 parent 347e293 commit 8953d0c

File tree

3 files changed

+67
-3
lines changed

3 files changed

+67
-3
lines changed

command-snapshot.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@
6969
},
7070
{
7171
"alias": [],
72-
"command": "agent:preview",
72+
"command": "agent:publish:authoring-bundle",
7373
"flagAliases": [],
74-
"flagChars": ["c", "d", "n", "o", "x"],
75-
"flags": ["apex-debug", "api-name", "api-version", "client-app", "flags-dir", "output-dir", "target-org"],
74+
"flagChars": ["n", "o"],
75+
"flags": ["api-name", "api-version", "flags-dir", "json", "target-org"],
7676
"plugin": "@salesforce/plugin-agent"
7777
},
7878
{
@@ -135,5 +135,13 @@
135135
"wait"
136136
],
137137
"plugin": "@salesforce/plugin-agent"
138+
},
139+
{
140+
"alias": [],
141+
"command": "agent:validate:authoring-bundle",
142+
"flagAliases": [],
143+
"flagChars": ["n", "o"],
144+
"flags": ["api-name", "api-version", "flags-dir", "json", "target-org"],
145+
"plugin": "@salesforce/plugin-agent"
138146
}
139147
]
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "agent-publish-authoring-bundle",
4+
"type": "object",
5+
"description": "Command to publish an agent authoring bundle",
6+
"properties": {
7+
"target-org": {
8+
"type": "string",
9+
"description": "The target org to publish to"
10+
},
11+
"api-version": {
12+
"type": "string",
13+
"description": "The API version to use"
14+
},
15+
"api-name": {
16+
"type": "string",
17+
"description": "The API name of the agent to publish"
18+
}
19+
},
20+
"required": ["target-org", "api-name"],
21+
"additionalProperties": false,
22+
"examples": [
23+
{
24+
"target-org": "myorg@example.com",
25+
"api-name": "MyAgent"
26+
}
27+
]
28+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "agent-validate-authoring-bundle",
4+
"type": "object",
5+
"description": "Command to validate an agent authoring bundle",
6+
"properties": {
7+
"target-org": {
8+
"type": "string",
9+
"description": "The target org to validate against"
10+
},
11+
"api-version": {
12+
"type": "string",
13+
"description": "The API version to use"
14+
},
15+
"api-name": {
16+
"type": "string",
17+
"description": "The API name of the agent to validate"
18+
}
19+
},
20+
"required": ["target-org", "api-name"],
21+
"additionalProperties": false,
22+
"examples": [
23+
{
24+
"target-org": "myorg@example.com",
25+
"api-name": "MyAgent"
26+
}
27+
]
28+
}

0 commit comments

Comments
 (0)