diff --git a/package.json b/package.json index 329e450..b25cefd 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "@inquirer/prompts": "^7.10.1", "@oclif/core": "^4", "@oclif/multi-stage-output": "^0.8.29", - "@salesforce/agents": "^0.23.0", + "@salesforce/agents": "^0.23.1", "@salesforce/core": "^8.25.1", "@salesforce/kit": "^3.2.4", "@salesforce/sf-plugins-core": "^12.2.6", diff --git a/test/nuts/agent.test.create.nut.ts b/test/nuts/agent.test.create.nut.ts index 8a7b1ff..6a80217 100644 --- a/test/nuts/agent.test.create.nut.ts +++ b/test/nuts/agent.test.create.nut.ts @@ -16,7 +16,6 @@ import { join, normalize } from 'node:path'; import { existsSync } from 'node:fs'; -import * as os from 'node:os'; import { expect } from 'chai'; import { genUniqueString, TestSession } from '@salesforce/cli-plugins-testkit'; import { execCmd } from '@salesforce/cli-plugins-testkit'; @@ -32,11 +31,7 @@ describe('agent test create', function () { this.timeout(30 * 60 * 1000); // 30 minutes for setup session = await getTestSession(); }); - // this NUT is failing on windows due to an invalid api name, but it seems valid to me, passes on unix - // Error: Unexpected exit code for command: agent test create --api-name Test_Agent_5096f046f91f34e7 --spec "...\agent-generate-template\specs\testSpec.yaml" --target-org test-relsveqne0do@example.com --json. Expected: 0 Actual: 1 - // Message: "Name: The AI Evaluation Definition API Name can only contain underscores and alphanumeric characters. It must be unique, begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.", - // Test_Agent_5096f046f91f34e7 only contains underscores, and alphanumeric characters... - (os.platform() === 'win32' ? it.skip : it)('should create test from test spec file', async function () { + it('should create test from test spec file', async function () { // Increase timeout to 30 minutes since deployment can take a long time this.timeout(30 * 60 * 1000); const testApiName = genUniqueString('Test_Agent_%s'); diff --git a/yarn.lock b/yarn.lock index 721e4e3..43bc375 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1743,10 +1743,10 @@ resolved "https://registry.yarnpkg.com/@rtsao/scc/-/scc-1.1.0.tgz#927dd2fae9bc3361403ac2c7a00c32ddce9ad7e8" integrity sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g== -"@salesforce/agents@^0.23.0": - version "0.23.0" - resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.23.0.tgz#6e2738ca8cc8d1e29e77f91f93ed98c442184368" - integrity sha512-C2a/ndRk+Vpi8B09e1YbECXbd3N8BRVq1PNW563+I3iNYgls41Rpf2SU2T2Pbl61r6lijI+RXT1YQ4gOrGqi8A== +"@salesforce/agents@^0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.23.1.tgz#a570619c92eb9103fc3b0280e8895e1cc41d6812" + integrity sha512-mQ140OBRbjIpf7/rgpMuMS4s5O0n8bkS16EdDFK6VZ87R66/m5sLb+T2VzSU7d9fS99O8ZC4/yy1X0UcbLDGPg== dependencies: "@salesforce/core" "^8.25.1" "@salesforce/kit" "^3.2.4"