Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion adapters/images_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assertEquals, assertRejects } from "@std/assert"
import { ValidationError } from "@cliffy/command"
import { ValidationError } from "../errors.ts"
import { type } from "arktype"

import { resolveModel } from "../models.ts"
Expand Down
2 changes: 1 addition & 1 deletion adapters/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import OpenAI from "openai"
import type { ResponseCreateParamsNonStreaming } from "openai/resources/responses/responses"
import type { ImageGenerateParamsNonStreaming } from "openai/resources/images"
import { decodeBase64 } from "@std/encoding/base64"
import { ValidationError } from "@cliffy/command"
import { ValidationError } from "../errors.ts"
import { match, P } from "ts-pattern"

import { postprocessSchemaContent, prepareSchema } from "../schema.ts"
Expand Down
2 changes: 1 addition & 1 deletion adapters/request_size.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ValidationError } from "@cliffy/command"
import { ValidationError } from "../errors.ts"

const MB = 1_000_000
const encoder = new TextEncoder()
Expand Down
6 changes: 3 additions & 3 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"semiColons": false
},
"imports": {
"@cliffy/command": "jsr:@cliffy/command@1.2.1",
"@cliffy/prompt": "jsr:@cliffy/prompt@1.2.1",
"@cliffy/table": "jsr:@cliffy/table@1.2.1",
"@commander-js/extra-typings": "npm:@commander-js/extra-typings@^15.0.0",
"commander": "npm:commander@^15.0.0",
"@inquirer/core": "npm:@inquirer/core@^12",
"@david/dax": "jsr:@david/dax@^0.49.0",
"@mathjax/src": "npm:@mathjax/src@4.1.3",
"@resvg/resvg-wasm": "npm:@resvg/resvg-wasm@2.6.2",
Expand Down
158 changes: 74 additions & 84 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions errors.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**
* A problem with the user's input or state. The CLI reports these as a plain
* error message instead of a stack trace.
*/
export class ValidationError extends Error {}
Loading
Loading