-
Notifications
You must be signed in to change notification settings - Fork 1
DF Demo Branch [DO NOT MERGE] #210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
||
# flags.api-name.summary | ||
|
||
Path to the Agent Authoring Bundle to publish |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Path to the Agent Authoring Bundle to publish | |
API name of the Agent Authoring Bundle to publish |
}; | ||
} catch (error) { | ||
// Handle validation errors | ||
const err = error instanceof Error ? error : new Error(String(error)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: SfError.wrap()
does this for you.
const err = error instanceof Error ? error : new Error(String(error)); | |
const err = SfError.wrap(error); |
}; | ||
} catch (error) { | ||
// Handle validation errors | ||
const err = error instanceof Error ? error : new Error(String(error)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const err = error instanceof Error ? error : new Error(String(error)); | |
const err = SfError.wrap(error); |
import { execCmd } from '@salesforce/cli-plugins-testkit'; | ||
import type { AgentPublishAuthoringBundleResult } from '../../src/commands/agent/publish/authoring-bundle.js'; | ||
|
||
describe.skip('agent publish authoring-bundle NUTs', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove .skip
now?
import { execCmd } from '@salesforce/cli-plugins-testkit'; | ||
import type { AgentValidateAuthoringBundleResult } from '../../src/commands/agent/validate/authoring-bundle.js'; | ||
|
||
describe.skip('agent validate authoring-bundle NUTs', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove .skip
now?
* All rights reserved. | ||
* Licensed under the BSD 3-Clause license. | ||
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not blocking, but this isn't the license header to use anymore.
…file from the project
…File W-19829287: if api-name flag is not used, prompt user to select an .agent file from the project
Er/update search logic
W-19729552: Edit new NGA commands
DF DEMO BRANCH
main
<-wr/nga
<-nga
What does this PR do?
adds two commands:
agent publish authoring-bundle
agent validate authoring-bundle
What issues does this PR fix or reference?
@W-19294085@
@W-19294687@
Testing Setup
will require some new local files in the project

$SF_MOCK_DIR
set to agent librarytest/mocks