kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
26 wiersze
670 B
TypeScript
26 wiersze
670 B
TypeScript
import restoreCursor from 'restore-cursor'
|
|
import { zodToJsonSchema } from 'zod-to-json-schema'
|
|
|
|
import { agenticProjectSchema } from '../src'
|
|
|
|
async function main() {
|
|
restoreCursor()
|
|
|
|
const tempJsonSchema = zodToJsonSchema(agenticProjectSchema)
|
|
|
|
const publicJsonSchema = {
|
|
...tempJsonSchema,
|
|
$schema: 'https://json-schema.org/draft-07/schema',
|
|
// TODO
|
|
// $id: 'https://agentic.so/docs/schema.json',
|
|
title: 'Agentic project schema',
|
|
description:
|
|
"Schema used by 'agentic.json' files to configure Agentic projects."
|
|
}
|
|
|
|
// eslint-disable-next-line no-console
|
|
console.log(JSON.stringify(publicJsonSchema, null, 2))
|
|
}
|
|
|
|
await main()
|