@linxiraos/pi-catalog 1.1.13 → 1.1.15
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 +2 -69
- package/README.md +20 -0
- package/dist/types/compat/auth-ids.d.ts +2 -2
- package/dist/types/models.d.ts +10 -6
- package/dist/types/pricing.d.ts +5 -0
- package/dist/types/provider-models/descriptor-types.d.ts +15 -0
- package/dist/types/provider-models/descriptors.d.ts +20 -0
- package/dist/types/provider-models/openai-compat.d.ts +44 -0
- package/dist/types/types.d.ts +43 -2
- package/dist/types/wire/charm-hyper.d.ts +21 -0
- package/dist/types/wire/github-copilot.d.ts +19 -0
- package/package.json +4 -4
- package/src/build.ts +16 -2
- package/src/compat/auth-ids.ts +4 -0
- package/src/compat/axes.ts +9 -0
- package/src/compat/resolve.ts +18 -4
- package/src/compat/rules/README.md +37 -0
- package/src/compat/rules/auth/_order.kdl +1 -1
- package/src/compat/rules/auth/charm-hyper.kdl +19 -0
- package/src/compat/rules/auth/commandcode.kdl +13 -0
- package/src/compat/rules/classes/anthropic.kdl +41 -0
- package/src/compat/rules/classes/deepseek.kdl +11 -0
- package/src/compat/rules/classes/minimax.kdl +4 -2
- package/src/compat/rules/providers/amazon-bedrock.kdl +7 -0
- package/src/compat/rules/providers/anthropic.kdl +8 -0
- package/src/compat/rules/providers/charm-hyper.kdl +82 -0
- package/src/compat/rules/providers/commandcode.kdl +601 -0
- package/src/compat/rules/providers/deepseek.kdl +83 -1
- package/src/compat/rules/providers/opencode-go.kdl +22 -0
- package/src/compat/rules/providers/opencode-zen.kdl +12 -0
- package/src/compat/rules/runtime/behavior.kdl +5 -0
- package/src/compat/rules.json +2143 -131
- package/src/model-manager.ts +27 -13
- package/src/models.json +12953 -5481
- package/src/models.ts +93 -19
- package/src/pricing.ts +136 -0
- package/src/provider-models/cache-provider-id.ts +28 -4
- package/src/provider-models/descriptor-types.ts +15 -0
- package/src/provider-models/descriptors.ts +36 -0
- package/src/provider-models/openai-compat.ts +297 -3
- package/src/types.ts +46 -1
- package/src/wire/charm-hyper.ts +26 -0
- package/src/wire/github-copilot.ts +26 -0
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
// Provider-wire compat for "opencode-go"; regenerated from the frozen census using deployment contract selectors.
|
|
2
2
|
|
|
3
3
|
provider "opencode-go" {
|
|
4
|
+
// The Flash lanes accept images despite their IDs lacking a vision suffix;
|
|
5
|
+
// verified against the gateway (unguessable pixel-rendered text read back
|
|
6
|
+
// verbatim). Mirrors the OpenRouter carve-out for deepseek-v4.1-flash.
|
|
7
|
+
// The modality is declared here as well: live gateway discovery seeds
|
|
8
|
+
// `input: ["text"]`, and the wire guard requires the declared modality, so
|
|
9
|
+
// clearing `strip-image-input` alone would leave the lane text-only.
|
|
10
|
+
models "deepseek-flash" "deepseek-v4.1-flash" {
|
|
11
|
+
input-modalities "text" "image"
|
|
12
|
+
strip-image-input #false
|
|
13
|
+
}
|
|
4
14
|
// Replaces the OpenCode reasoning-model whenThinking fallback object.
|
|
5
15
|
when-thinking {
|
|
6
16
|
requires-reasoning-content-for-tool-calls #true
|
|
@@ -35,6 +45,18 @@ provider "opencode-go" {
|
|
|
35
45
|
class "kimi" {
|
|
36
46
|
thinking-mode "effort"
|
|
37
47
|
}
|
|
48
|
+
// The Go gateway proxies Muse Spark's Responses lane to Meta but cannot
|
|
49
|
+
// round-trip encrypted reasoning: the upstream issues `encrypted_content`
|
|
50
|
+
// bound to the gateway's own caller, so replaying it on a later step 400s
|
|
51
|
+
// with "reasoning `encrypted_content` was not issued to this caller"
|
|
52
|
+
// (#11928). Stop requesting it and drop native reasoning items from replay
|
|
53
|
+
// so multi-step tool-call turns stop failing.
|
|
54
|
+
class "meta" {
|
|
55
|
+
family "muse-spark" {
|
|
56
|
+
include-encrypted-reasoning #false
|
|
57
|
+
filter-reasoning-history #true
|
|
58
|
+
}
|
|
59
|
+
}
|
|
38
60
|
class "mimo" {
|
|
39
61
|
family "v2" {
|
|
40
62
|
thinking-mode "effort"
|
|
@@ -26,6 +26,18 @@ provider "opencode-zen" {
|
|
|
26
26
|
class "kimi" {
|
|
27
27
|
thinking-mode "effort"
|
|
28
28
|
}
|
|
29
|
+
// The Zen gateway proxies Muse Spark's Responses lane to Meta but cannot
|
|
30
|
+
// round-trip encrypted reasoning: the upstream issues `encrypted_content`
|
|
31
|
+
// bound to the gateway's own caller, so replaying it on a later step 400s
|
|
32
|
+
// with "reasoning `encrypted_content` was not issued to this caller"
|
|
33
|
+
// (#11928). Stop requesting it and drop native reasoning items from replay
|
|
34
|
+
// so multi-step tool-call turns stop failing.
|
|
35
|
+
class "meta" {
|
|
36
|
+
family "muse-spark" {
|
|
37
|
+
include-encrypted-reasoning #false
|
|
38
|
+
filter-reasoning-history #true
|
|
39
|
+
}
|
|
40
|
+
}
|
|
29
41
|
class "mimo" {
|
|
30
42
|
family "v2" {
|
|
31
43
|
thinking-mode "effort"
|
|
@@ -157,6 +157,11 @@ behavior {
|
|
|
157
157
|
glob="claude-fable-*" glob="claude-mythos-*"
|
|
158
158
|
route "openai-responses" exact="grok-4.5" exact="grok-4.6" prefix="gpt-5" prefix="gpt-6" prefix="oswe" prefix="mai-"
|
|
159
159
|
}
|
|
160
|
+
// Command Code serves Claude models through its Anthropic-compatible
|
|
161
|
+
// Messages endpoint and every other model through chat completions.
|
|
162
|
+
api-routes provider="commandcode" default="openai-completions" {
|
|
163
|
+
route "anthropic-messages" prefix="claude-"
|
|
164
|
+
}
|
|
160
165
|
// ZenMux fronts Anthropic ids on a dedicated Messages endpoint; every
|
|
161
166
|
// other namespace stays on chat completions.
|
|
162
167
|
api-routes provider="zenmux" default="openai-completions" {
|