Zod schemas and helpers for release proposals and decisions.
// Source: https://github.com/open-multi-agent/open-multi-agent | License: MIT | Copyright Shenzhen YuanASI Technology Co., Ltd. and open-multi-agent contributors
// Provided via justclaw.it.com; keep this notice with the code.
import { z } from 'zod'
import { bumpVersion, type VersionBump } from './semver.js'
const singleLine = z.string().trim().min(3).max(800).refine(
value => !/[\r\n]/.test(value),
'must be a single line',
)
const bumpSchema = z.enum(['none', 'patch', 'minor', 'major'])
export const packageVersionsSchema = z.object({
core: z.string(),
otel: z.string(),
createOmaApp: z.string(),
})
export type PackageVersions = z.infer<typeof packageVersionsSchema>
export const releaseCommitSchema = z.object({
sha: z.string().regex(/^[0-9a-f]{40}$/),
subject: z.string(
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key