Skip to content

Updated make-agent validation, migrate validation & tests to bitte-ai-spec package #94

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Markeljan
Copy link
Member

@Markeljan Markeljan commented Feb 13, 2025

Updated make-agent validation
OpenAPI spec + Zod schema validation using new package bitte-ai-spec (temporary but live on NPM).
Export new BitteOpenAPISpec type from make-agent
New command make-agent validate [source] (can pass a path to json file or remote url to test spec validation)

Can test here on agent template branch:
BitteProtocol/agent-next-boilerplate#18
image

@Markeljan Markeljan marked this pull request as ready for review February 17, 2025 08:53
@Markeljan Markeljan changed the title mb extension zod schema and validation Updated make-agent validation, migrate validation & tests to bitte-ai-spec package Feb 17, 2025
Copy link
Member

@bh2smith bh2smith left a comment

Choose a reason for hiding this comment

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

Looks good. Are we creating a monorepo for all these scattered little packages, or just a bunch of scattered repos? I created the agent-sdk in bitteprotocol/core which is all setup for this. Its just waiting for a buddy to join.

Comment on lines -39 to -41
"@apidevtools/swagger-parser": "^10.1.0",
"ajv": "^8.17.1",
"ajv-draft-04": "^1.0.0",
Copy link
Member

Choose a reason for hiding this comment

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

Hooray 🎉

`Attempt ${attempt}/${maxAttempts}: Error detecting port:`,
winError,
`Attempt ${attempt}/${maxAttempts}: Error detecting port.`,
// winError, mute winError to prevent large, unneccesary console output
Copy link
Member

Choose a reason for hiding this comment

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

I would just delete this and put the comment in a comment here.

Suggested change
// winError, mute winError to prevent large, unneccesary console output

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