Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@inquirer/prompts": "^7.10.1",
"@oclif/core": "^5.0.0",
"@oclif/multi-stage-output": "^1.0.0",
"@salesforce/agents": "^2.5.0",
"@salesforce/agents": "^2.5.4",
"@salesforce/core": "^9.1.9",
"@salesforce/kit": "^4.0.0",
"@salesforce/sf-plugins-core": "^13.0.0",
Expand Down
2 changes: 1 addition & 1 deletion test/commands/agent/express-context/create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

/* eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-return */
/* eslint-disable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-return */

import { mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
import { tmpdir } from 'node:os';
Expand Down
9 changes: 8 additions & 1 deletion test/commands/agent/express-context/readCommands.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,14 @@ describe('agent express-context read/delete commands', () => {
destroy.rejects(new Error('in use'));
const result = await AgentExpressContextDelete.run(['--target-org', testOrg.username, '-i', LIB, '--no-prompt']);
expect(result).to.deep.equal({ libraryId: LIB, deleted: true });
expect(ux.warn.args.flat().join('\n')).to.include('FAQ_RetrieverAction').and.include('in use');
expect(
ux.warn.args
.flat()
.map((w) => (typeof w === 'string' ? w : w.message))
.join('\n')
)
.to.include('FAQ_RetrieverAction')
.and.include('in use');
});

it('still deletes the library when the lookup fails', async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/commands/agent/express-context/upload.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

/* eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-return */
/* eslint-disable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-return */

import { mkdtempSync, rmSync, writeFileSync } from 'node:fs';
import { tmpdir } from 'node:os';
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1431,10 +1431,10 @@
"@pnpm/network.ca-file" "^1.0.1"
config-chain "^1.1.11"

"@salesforce/agents@^2.5.0":
version "2.5.0"
resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-2.5.0.tgz#46315617feab965ac19c70c2da8b1da3e19ac755"
integrity sha512-s4fBQwavMx59qnKdN6SOMAJkwinDWq8TyQisxQFeW3jVfh4rXC8Uqt6f65+fjtOjuepmO/6YwkRacufd3jHq+w==
"@salesforce/agents@^2.5.4":
version "2.5.4"
resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-2.5.4.tgz#a9e41880cdefa0821e58fb929afe1f4ae56f3ba7"
integrity sha512-zwSmTEXDc6prxvImJ1aycXCnyrJgxuLgp23/hyELzqLI3eyTMblyZNc0+kl8ZaChBYv5xdK47afqboFbmMulFg==
dependencies:
"@salesforce/core" "^9.0.0"
"@salesforce/kit" "^4.0.0"
Expand Down
Loading