feat: introduced omptype validation package and migrated workspace dependencies
- Introduce `@oh-my-pi/omptype` as a new ArkType-compatible schema validation package featuring a lazy JIT runtime, JSON Schema emission, and compatibility adapters. - Replace `arktype` across workspace packages and test utilities with `@oh-my-pi/omptype`. - Add benchmark suites, tests, and documentation for the new validation engine and adapters. - Update workspace build, test runner, and release configurations to include the new package.
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Changed
|
||||
|
||||
- Replaced arktype with `@oh-my-pi/omptype` for discovery payload schemas (same definition DSL, lazy JIT validation).
|
||||
|
||||
## [17.2.6] - 2026-08-03
|
||||
|
||||
### Added
|
||||
|
||||
@@ -35,8 +35,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@bufbuild/protobuf": "catalog:",
|
||||
"@oh-my-pi/omptype": "catalog:",
|
||||
"@oh-my-pi/pi-utils": "catalog:",
|
||||
"arktype": "catalog:",
|
||||
"zod": "catalog:"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { type } from "arktype";
|
||||
import { type } from "@oh-my-pi/omptype";
|
||||
import type { ModelSpec } from "../types";
|
||||
import { discoveryFetch, toPositiveNumber } from "../utils";
|
||||
import {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { type } from "arktype";
|
||||
import { type } from "@oh-my-pi/omptype";
|
||||
import { parseKnownModel, semverEqual } from "../identity/classify";
|
||||
import type { FetchImpl, ModelSpec } from "../types";
|
||||
import { discoveryFetch } from "../utils";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as http2 from "node:http2";
|
||||
import { create, fromBinary, toBinary } from "@bufbuild/protobuf";
|
||||
import { type } from "arktype";
|
||||
import { type } from "@oh-my-pi/omptype";
|
||||
import { isKimiK3ModelId } from "../identity";
|
||||
import { bareModelId, parseGlmModel, semverGte } from "../identity/classify";
|
||||
import { getBundledModels } from "../models";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { type } from "arktype";
|
||||
import { type } from "@oh-my-pi/omptype";
|
||||
import { getBundledModels } from "../models";
|
||||
import { toModelSpec } from "../provider-models/bundled-references";
|
||||
import type { FetchImpl, Model, ModelSpec } from "../types";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { type } from "arktype";
|
||||
import { type } from "@oh-my-pi/omptype";
|
||||
import type { Api, FetchImpl, ModelSpec, Provider } from "../types";
|
||||
import { discoveryFetch } from "../utils";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user