Skip to content

Conversation

@WillieRuemmele
Copy link
Member

NOTE:
original PR #65 was merged, and reverted #66

this PR reopens the original changes, which have all been approved and merged once-before


DO NOT MERGE


What does this PR do?
adds an AFDX: validate afscript context option to .afscript files
image

What issues does this PR fix or reference?
@W-19293903@

Functionality Before
no NGA functionality

Functionality After
able to quickly validate afScript via server-side compile

Testing Setup Notes
get the built vsix from the clicking on the green checkmark by the commit hash, select build-and-test, click on summary in the upper left, scroll to the bottom for the vsix, installing this, and setting SF_MOCK_DIR should work as well

using maybe-mock in the development extension host session is overly complicated. I found the best approach was to change vscode-agents/node_modules/@salesforce/agents/lib/agent.js Line 323 to be

const response = JSON.parse(await (0, promises_1.readFile)('YOUR/PATH/TO/agents/test/mocks/einstein_ai-agent_v1.1_authoring_compile.json', 'utf-8'));

and an example failure response,

{
"status": "failure",
"errors": [{
"errorType": "ISSUE",
"description": "couldn't compile this",
"colStart": 1,
"colEnd": 2,
"lineStart": 1,
"lineEnd": 1
},
{
"errorType": "ISSUE123",
"description": "testing error 2",
"colStart": 12,
"colEnd": 22,
"lineStart": 12,
"lineEnd": 12
}],
Note: there's an error property already in the mock, you just need to place those correctly and update the status for a failure response

WillieRuemmele and others added 30 commits September 26, 2025 08:49
Wr/rename afscript to agent @W-19803943@
…ency, introduce sample tracer data in json format
…ion management and communication with webview
…, enhancing user interaction and notifications
… session activity, improving user context awareness
…w, enhancing debugging capabilities and user feedback
…remove max-width from agent message content for improved layout consistency
marcelinollano and others added 30 commits October 6, 2025 23:52
… AgentCombinedView, update navigation group assignments in package.json for improved command organization
… for improved theming and adjust padding for better layout
…der text in ChatInput and PlaceholderContent for better user guidance
…oss AgentPreview and AgentTracer components to enhance UI consistency and improve user experience
…view and AgentTracer for enhanced visual consistency
…g custom variables for improved consistency across AgentPreview, AgentTracer, and shared components
…der properties, and responsive design elements for improved layout and visual consistency
…e VSCode theme tokens for color and adjust padding for improved visual consistency
…adding, and border-radius for improved visual consistency
…n AgentTracer component for improved visual consistency
…y esbuild configuration to disable bundling and enable sourcemaps, and clean up package.json by removing unused dependencies
…o target ES2022, and adjust esbuild configuration to exclude 'vscode' as an external dependency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants