Skip to content

Added support for exporting agent definitions#6

Merged
burgaard merged 2 commits into
mainfrom
agent-export
Apr 2, 2026
Merged

Added support for exporting agent definitions#6
burgaard merged 2 commits into
mainfrom
agent-export

Conversation

@burgaard

@burgaard burgaard commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 2, 2026 04:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds SDK-level support for exporting agent definitions as a portable JSON snapshot, aligning TypeScript types and the generated OpenAPI surface with the new /agents/{agent_id}/export endpoint.

Changes:

  • Introduces AgentExportResponse schema/type and re-exports it from the public SDK surface.
  • Adds Seclai.exportAgent() convenience method to call GET /agents/{agent_id}/export with a download query param.
  • Updates generated OpenAPI types/docs, including the new export endpoint and a new input field on step attempt responses.

Reviewed changes

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

Show a summary per file
File Description
openapi/seclai.openapi.json Adds AgentExportResponse schema and /agents/{agent_id}/export endpoint to the OpenAPI spec.
src/openapi.ts Regenerated OpenAPI TypeScript types reflecting the spec updates and docstring changes.
src/types.ts Adds AgentExportResponse alias mapped to OpenAPI components schema.
src/index.ts Re-exports AgentExportResponse from the SDK entrypoint.
src/client.ts Adds exportAgent() method that calls the new export endpoint.
.github/copilot-instructions.md Updates internal contributor/assistant instructions and quality gate guidance.

Comment thread src/openapi.ts Outdated
Comment thread openapi/seclai.openapi.json Outdated
Comment thread src/client.ts
@burgaard burgaard merged commit bda2a3b into main Apr 2, 2026
1 check passed
@burgaard burgaard deleted the agent-export branch April 2, 2026 04:58
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