@oh-my-pi/pi-catalog 15.13.3 → 16.0.0

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,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [16.0.0] - 2026-06-15
6
+
7
+ ### Breaking Changes
8
+
9
+ - Renamed the catalog-owned tool syntax API from `ToolCallSyntax`/`FALLBACK_TOOL_SYNTAX`/`preferredToolSyntax` to `Dialect`/`FALLBACK_DIALECT`/`preferredDialect`.
10
+
5
11
  ## [15.13.3] - 2026-06-15
6
12
 
7
13
  ### Added
@@ -0,0 +1,3 @@
1
+ export type Dialect = "glm" | "hermes" | "kimi" | "xml" | "anthropic" | "deepseek" | "harmony" | "pi" | "qwen3" | "gemini" | "gemma";
2
+ export declare const FALLBACK_DIALECT: Dialect;
3
+ export declare function preferredDialect(modelId: string): Dialect;
@@ -1,5 +1,6 @@
1
1
  export * from "./bundled";
2
2
  export * from "./classify";
3
+ export * from "./dialect";
3
4
  export * from "./equivalence";
4
5
  export * from "./family";
5
6
  export * from "./id";
@@ -7,4 +8,3 @@ export * from "./markers";
7
8
  export * from "./priority";
8
9
  export * from "./reference";
9
10
  export * from "./selection";
10
- export * from "./tool-syntax";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-catalog",
4
- "version": "15.13.3",
4
+ "version": "16.0.0",
5
5
  "description": "Model catalog for omp: bundled model database, provider discovery descriptors, model identity, classification, and equivalence",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Can Boluk",
@@ -34,11 +34,11 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@bufbuild/protobuf": "^2.12.0",
37
- "@oh-my-pi/pi-utils": "15.13.3",
37
+ "@oh-my-pi/pi-utils": "16.0.0",
38
38
  "zod": "^4"
39
39
  },
40
40
  "devDependencies": {
41
- "@oh-my-pi/pi-ai": "15.13.3",
41
+ "@oh-my-pi/pi-ai": "16.0.0",
42
42
  "@types/bun": "^1.3.14"
43
43
  },
44
44
  "engines": {
@@ -1,6 +1,6 @@
1
1
  import { modelFamilyToken } from "./family";
2
2
 
3
- export type ToolCallSyntax =
3
+ export type Dialect =
4
4
  | "glm"
5
5
  | "hermes"
6
6
  | "kimi"
@@ -13,9 +13,9 @@ export type ToolCallSyntax =
13
13
  | "gemini"
14
14
  | "gemma";
15
15
 
16
- export const FALLBACK_TOOL_SYNTAX: ToolCallSyntax = "xml";
16
+ export const FALLBACK_DIALECT: Dialect = "xml";
17
17
 
18
- export function preferredToolSyntax(modelId: string): ToolCallSyntax {
18
+ export function preferredDialect(modelId: string): Dialect {
19
19
  switch (modelFamilyToken(modelId)) {
20
20
  case "anthropic":
21
21
  return "anthropic";
@@ -35,6 +35,6 @@ export function preferredToolSyntax(modelId: string): ToolCallSyntax {
35
35
  case "gpt-oss":
36
36
  return "harmony";
37
37
  default:
38
- return FALLBACK_TOOL_SYNTAX;
38
+ return FALLBACK_DIALECT;
39
39
  }
40
40
  }
@@ -1,5 +1,6 @@
1
1
  export * from "./bundled";
2
2
  export * from "./classify";
3
+ export * from "./dialect";
3
4
  export * from "./equivalence";
4
5
  export * from "./family";
5
6
  export * from "./id";
@@ -7,4 +8,3 @@ export * from "./markers";
7
8
  export * from "./priority";
8
9
  export * from "./reference";
9
10
  export * from "./selection";
10
- export * from "./tool-syntax";
@@ -1,3 +0,0 @@
1
- export type ToolCallSyntax = "glm" | "hermes" | "kimi" | "xml" | "anthropic" | "deepseek" | "harmony" | "pi" | "qwen3" | "gemini" | "gemma";
2
- export declare const FALLBACK_TOOL_SYNTAX: ToolCallSyntax;
3
- export declare function preferredToolSyntax(modelId: string): ToolCallSyntax;