@gajae-code/ai 0.12.20 → 0.12.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.12.21] - 2026-08-09
6
+
5
7
  ## [0.12.20] - 2026-08-09
6
8
 
7
9
  ### Fixed
@@ -539,7 +539,7 @@ export type TSchema = ZodType | TJsonSchema;
539
539
  export type Static<S> = S extends ZodType ? z.infer<S> : S extends {
540
540
  static: infer T;
541
541
  } ? T : unknown;
542
- export type RawArgumentRejectionCode = "ask-intent-review-requires-positive-round" | "ask-intent-contract-requires-non-empty-authority" | "ask-deep-interview-metadata-requires-deep-interview-gate" | "todo-write-unknown-root-key" | "todo-write-unknown-op-entry-key" | "todo-write-done-drop-requires-target" | "todo-write-unknown-init-entry-key";
542
+ export type RawArgumentRejectionCode = "ask-intent-review-requires-positive-round" | "ask-intent-contract-requires-non-empty-authority" | "ask-deep-interview-metadata-requires-deep-interview-gate" | "todo-write-unknown-root-key" | "todo-write-unknown-op-entry-key" | "todo-write-unknown-op-value" | "todo-write-done-drop-requires-target" | "todo-write-unknown-init-entry-key";
543
543
  /**
544
544
  * Optional structured detail attached to a raw-argument rejection. The fixed
545
545
  * per-code guidance in `RAW_ARGUMENT_REJECTION_MESSAGES` explains the shape;
@@ -547,7 +547,7 @@ export type RawArgumentRejectionCode = "ask-intent-review-requires-positive-roun
547
547
  * differ from the failed call.
548
548
  */
549
549
  export interface RawArgumentRejectionDetail {
550
- /** Offending keys, in payload order. */
550
+ /** Offending keys, or the offending value, in payload order. */
551
551
  readonly rejectedKeys?: readonly string[];
552
552
  /**
553
553
  * Correction for a rejected key whose replacement is exact and
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@gajae-code/ai",
4
- "version": "0.12.20",
4
+ "version": "0.12.21",
5
5
  "description": "Unified LLM API with automatic model discovery and provider configuration",
6
6
  "homepage": "https://gajae-code.com",
7
7
  "author": "Yeachan-Heo and Gajae Code Contributors",
@@ -40,7 +40,7 @@
40
40
  "dependencies": {
41
41
  "@anthropic-ai/sdk": "^0.94.0",
42
42
  "@bufbuild/protobuf": "^2.12.0",
43
- "@gajae-code/utils": "0.12.20",
43
+ "@gajae-code/utils": "0.12.21",
44
44
  "openai": "^6.36.0",
45
45
  "partial-json": "^0.1.7",
46
46
  "zod": "4.4.3"
package/src/types.ts CHANGED
@@ -756,6 +756,7 @@ export type RawArgumentRejectionCode =
756
756
  | "ask-deep-interview-metadata-requires-deep-interview-gate"
757
757
  | "todo-write-unknown-root-key"
758
758
  | "todo-write-unknown-op-entry-key"
759
+ | "todo-write-unknown-op-value"
759
760
  | "todo-write-done-drop-requires-target"
760
761
  | "todo-write-unknown-init-entry-key";
761
762
 
@@ -766,7 +767,7 @@ export type RawArgumentRejectionCode =
766
767
  * differ from the failed call.
767
768
  */
768
769
  export interface RawArgumentRejectionDetail {
769
- /** Offending keys, in payload order. */
770
+ /** Offending keys, or the offending value, in payload order. */
770
771
  readonly rejectedKeys?: readonly string[];
771
772
  /**
772
773
  * Correction for a rejected key whose replacement is exact and
@@ -968,6 +968,7 @@ const RAW_ARGUMENT_REJECTION_MESSAGES: Record<RawArgumentRejectionCode, string>
968
968
  "todo-write-unknown-root-key": "todo_write root accepts only an ops array of operation entries",
969
969
  "todo-write-unknown-op-entry-key":
970
970
  "todo_write operation entries accept only op, list, task, phase, items, and text keys",
971
+ "todo-write-unknown-op-value": "todo_write operation entries require a known op value",
971
972
  "todo-write-done-drop-requires-target": "todo_write done and drop entries require a task or phase target",
972
973
  "todo-write-unknown-init-entry-key": "todo_write init list entries accept only phase and items keys",
973
974
  };