Skip to content

Commit

Permalink
Merge pull request #18 from salesforcecli/ew/agent-library
Browse files Browse the repository at this point in the history
Add agents library
  • Loading branch information
iowillhoit authored Nov 12, 2024
2 parents ecf43b0 + c92959b commit 6af9dd0
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 90 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ git clone [email protected]:salesforcecli/plugin-agent
yarn && yarn build
```

To use your plugin, run using the local `./bin/dev` or `./bin/dev.cmd` file.
To use your plugin, run using the local `./bin/dev.js` or `./bin/dev.cmd` file.

```bash
# Run using local run file.
./bin/dev agent
./bin/dev.js agent
```

There should be no differences when running via the Salesforce CLI or using the local run file. However, it can be useful to link the plugin to do some additional testing or run your commands from anywhere on your machine.
Expand Down
128 changes: 45 additions & 83 deletions command-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,84 +1,46 @@
[
{
"alias": [],
"command": "agent:create",
"flagAliases": [],
"flagChars": [
"f",
"n",
"o"
],
"flags": [
"api-version",
"flags-dir",
"job-spec",
"json",
"name",
"target-org"
],
"plugin": "@salesforce/plugin-agent"
},
{
"alias": [],
"command": "agent:generate:spec",
"flagAliases": [],
"flagChars": [
"d",
"f",
"o",
"t"
],
"flags": [
"api-version",
"company-description",
"company-name",
"company-website",
"file-name",
"flags-dir",
"json",
"output-dir",
"role",
"target-org",
"type"
],
"plugin": "@salesforce/plugin-agent"
},
{
"alias": [],
"command": "agent:test:cancel",
"flagAliases": [],
"flagChars": [
"i",
"o",
"r"
],
"flags": [
"flags-dir",
"job-id",
"json",
"target-org",
"use-most-recent"
],
"plugin": "@salesforce/plugin-agent"
},
{
"alias": [],
"command": "agent:test:run",
"flagAliases": [],
"flagChars": [
"d",
"i",
"o",
"w"
],
"flags": [
"flags-dir",
"id",
"json",
"output-dir",
"target-org",
"wait"
],
"plugin": "@salesforce/plugin-agent"
}
]
{
"alias": [],
"command": "agent:create",
"flagAliases": [],
"flagChars": ["f", "n", "o"],
"flags": ["api-version", "flags-dir", "job-spec", "json", "name", "target-org"],
"plugin": "@salesforce/plugin-agent"
},
{
"alias": [],
"command": "agent:generate:spec",
"flagAliases": [],
"flagChars": ["d", "f", "o", "t"],
"flags": [
"api-version",
"company-description",
"company-name",
"company-website",
"file-name",
"flags-dir",
"json",
"output-dir",
"role",
"target-org",
"type"
],
"plugin": "@salesforce/plugin-agent"
},
{
"alias": [],
"command": "agent:test:cancel",
"flagAliases": [],
"flagChars": ["i", "o", "r"],
"flags": ["flags-dir", "job-id", "json", "target-org", "use-most-recent"],
"plugin": "@salesforce/plugin-agent"
},
{
"alias": [],
"command": "agent:test:run",
"flagAliases": [],
"flagChars": ["d", "i", "o", "w"],
"flags": ["flags-dir", "id", "json", "output-dir", "target-org", "wait"],
"plugin": "@salesforce/plugin-agent"
}
]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"@inquirer/input": "^4.0.1",
"@inquirer/select": "^4.0.1",
"@oclif/core": "^4",
"@salesforce/agents": "^0.1.3",
"@oclif/multi-stage-output": "^0.7.12",
"@salesforce/agents": "^0.1.2",
"@salesforce/core": "^8.5.2",
"@salesforce/kit": "^3.2.1",
"@salesforce/sf-plugins-core": "^12",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1370,10 +1370,10 @@
resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==

"@salesforce/agents@^0.1.2":
version "0.1.2"
resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.1.2.tgz#eeadf5fb7fea42f241cc4d0c4bfc30d3dfca7fb5"
integrity sha512-Yj2UH9xr85a8KwIcyv399DzoXY3I5M0jtcP9nwzz6jj25YqYhqRCjbU2+vmu6C0ggQOztOzO9qv/tCW+ujWPdQ==
"@salesforce/agents@^0.1.3":
version "0.1.3"
resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.1.3.tgz#bd57d65e7708646efd082e22a40082e1b7049cdf"
integrity sha512-bvpSbGO0w7ZHwWX+GrLbWFBluEfJ6oLfalBSEry+O4ENZIDwu2mnw9xbLX0twwz02tsJyB8XibClSZZRL0RB0w==
dependencies:
"@salesforce/core" "^8.5.2"
"@salesforce/kit" "^3.2.3"
Expand Down

0 comments on commit 6af9dd0

Please sign in to comment.