Skip to content

Conversation

@GordonSmith
Copy link
Member

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new AI language model tool called getWorkunitECL that retrieves the ECL archive (XML format) for a specific workunit given its WUID. This complements the existing findWorkunits tool by allowing users to fetch the actual ECL source code that was submitted to create a workunit.

Key changes:

  • Adds new GetWorkunitECLTool class implementing the VS Code Language Model Tool interface
  • Registers the tool with VS Code's language model system
  • Contributes tool metadata and JSON schema in package.json for AI model consumption

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/ecl/lm/tools/getWorkunitECL.ts New tool implementation that fetches workunit ECL archive via @hpcc-js/comms Workunit API, with parameter validation, cancellation support, telemetry, and localized error messages
src/ecl/lm/tools.ts Registers the new getWorkunitECL tool with VS Code's language model tools registry
package.json Adds language model tool contribution with schema, tags, and display metadata for AI model discovery and invocation

Copy link
Collaborator

@jeclrsg jeclrsg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GordonSmith test.tmp included again. doesn't look like it's there to keep an empty dir or something?

test.tmp Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test.tmp included here again?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will remove...

@GordonSmith GordonSmith merged commit 9e54966 into hpcc-systems:main Jan 6, 2026
4 checks passed
@GordonSmith GordonSmith deleted the WUINFO_ECL branch January 6, 2026 17:19
@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2026

🎉 This change has been included in ecl-v2.34.0 🎉

The release is available on:

Your release-please bot 🚀🙏

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.

2 participants