@cleocode/contracts 2026.5.73 → 2026.5.75
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.
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
/**
|
|
13
13
|
* Canonical wire-level API protocol supported by a provider.
|
|
14
14
|
*
|
|
15
|
-
* Closed
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* Closed union. Providers that speak multiple protocols (e.g. OpenAI supports
|
|
16
|
+
* both chat_completions and codex_responses) declare separate ProviderProfiles,
|
|
17
|
+
* one per ApiMode.
|
|
18
18
|
*
|
|
19
|
-
* Adding a
|
|
19
|
+
* Adding a new value is a significant change — confirm in ADR-072 before doing so.
|
|
20
20
|
*
|
|
21
21
|
* @see ADR-072 §Type lock-in
|
|
22
22
|
*/
|
|
23
|
-
export type ApiMode = 'chat_completions' | 'anthropic_messages' | 'codex_responses' | 'bedrock_converse';
|
|
23
|
+
export type ApiMode = 'chat_completions' | 'anthropic_messages' | 'codex_responses' | 'bedrock_converse' | 'ollama_native';
|
|
24
24
|
/**
|
|
25
25
|
* Fixed set of builtin provider identifiers shipped with CLEO core.
|
|
26
26
|
*
|
|
@@ -31,7 +31,7 @@ export type ApiMode = 'chat_completions' | 'anthropic_messages' | 'codex_respons
|
|
|
31
31
|
* is re-typed as `Extract<ProviderId, BuiltinProviderId>` for one release cycle
|
|
32
32
|
* (deprecated, then removed).
|
|
33
33
|
*/
|
|
34
|
-
export type BuiltinProviderId = 'anthropic' | 'openai' | 'gemini' | 'moonshot' | 'openrouter' | 'bedrock' | 'deepseek' | 'xai' | 'groq' | 'kimi-code';
|
|
34
|
+
export type BuiltinProviderId = 'anthropic' | 'openai' | 'gemini' | 'moonshot' | 'openrouter' | 'bedrock' | 'deepseek' | 'xai' | 'groq' | 'kimi-code' | 'ollama';
|
|
35
35
|
/**
|
|
36
36
|
* Provider identity string.
|
|
37
37
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-id.d.ts","sourceRoot":"","sources":["../../src/llm/provider-id.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;;;;;;;;GAUG;AACH,MAAM,MAAM,OAAO,GACf,kBAAkB,GAClB,oBAAoB,GACpB,iBAAiB,GACjB,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"provider-id.d.ts","sourceRoot":"","sources":["../../src/llm/provider-id.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;;;;;;;;GAUG;AACH,MAAM,MAAM,OAAO,GACf,kBAAkB,GAClB,oBAAoB,GACpB,iBAAiB,GACjB,kBAAkB,GAClB,eAAe,CAAC;AAEpB;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GACzB,WAAW,GACX,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,YAAY,GACZ,SAAS,GACT,UAAU,GACV,KAAK,GACL,MAAM,GACN,WAAW,GACX,QAAQ,CAAC;AAEb;;;;;;;;;;GAUG;AACH,MAAM,MAAM,UAAU,GAAG,iBAAiB,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleocode/contracts",
|
|
3
|
-
"version": "2026.5.
|
|
3
|
+
"version": "2026.5.75",
|
|
4
4
|
"description": "Domain types, interfaces, and contracts for the CLEO ecosystem",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"dependencies": {
|
|
99
99
|
"zod": "^4.3.6",
|
|
100
100
|
"zod-to-json-schema": "^3.25.2",
|
|
101
|
-
"@cleocode/lafs": "2026.5.
|
|
101
|
+
"@cleocode/lafs": "2026.5.75"
|
|
102
102
|
},
|
|
103
103
|
"scripts": {
|
|
104
104
|
"build": "tsc -b --force && node scripts/emit-schemas.mjs",
|
package/src/llm/provider-id.ts
CHANGED
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
/**
|
|
14
14
|
* Canonical wire-level API protocol supported by a provider.
|
|
15
15
|
*
|
|
16
|
-
* Closed
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* Closed union. Providers that speak multiple protocols (e.g. OpenAI supports
|
|
17
|
+
* both chat_completions and codex_responses) declare separate ProviderProfiles,
|
|
18
|
+
* one per ApiMode.
|
|
19
19
|
*
|
|
20
|
-
* Adding a
|
|
20
|
+
* Adding a new value is a significant change — confirm in ADR-072 before doing so.
|
|
21
21
|
*
|
|
22
22
|
* @see ADR-072 §Type lock-in
|
|
23
23
|
*/
|
|
@@ -25,7 +25,8 @@ export type ApiMode =
|
|
|
25
25
|
| 'chat_completions' // OpenAI, OpenRouter, Groq, DeepSeek, Moonshot, xAI, Gemini-via-OR
|
|
26
26
|
| 'anthropic_messages' // Native Anthropic SDK — full prompt-cache + thinking
|
|
27
27
|
| 'codex_responses' // OpenAI Responses API (Codex CLI, xAI-responses)
|
|
28
|
-
| 'bedrock_converse'
|
|
28
|
+
| 'bedrock_converse' // AWS Bedrock ConversationAPI
|
|
29
|
+
| 'ollama_native'; // Ollama /api/chat NDJSON-streaming protocol
|
|
29
30
|
|
|
30
31
|
/**
|
|
31
32
|
* Fixed set of builtin provider identifiers shipped with CLEO core.
|
|
@@ -47,7 +48,8 @@ export type BuiltinProviderId =
|
|
|
47
48
|
| 'deepseek'
|
|
48
49
|
| 'xai'
|
|
49
50
|
| 'groq'
|
|
50
|
-
| 'kimi-code'
|
|
51
|
+
| 'kimi-code'
|
|
52
|
+
| 'ollama';
|
|
51
53
|
|
|
52
54
|
/**
|
|
53
55
|
* Provider identity string.
|