jeopi-catalog 16.2.13
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 +523 -0
- package/README.md +43 -0
- package/dist/types/build.d.ts +3 -0
- package/dist/types/compat/anthropic.d.ts +11 -0
- package/dist/types/compat/apply.d.ts +7 -0
- package/dist/types/compat/devin.d.ts +9 -0
- package/dist/types/compat/openai.d.ts +28 -0
- package/dist/types/discovery/antigravity.d.ts +70 -0
- package/dist/types/discovery/codex.d.ts +38 -0
- package/dist/types/discovery/cursor-gen/agent_pb.d.ts +13022 -0
- package/dist/types/discovery/cursor.d.ts +23 -0
- package/dist/types/discovery/devin-gen/buf/validate/validate_pb.d.ts +1715 -0
- package/dist/types/discovery/devin-gen/exa/analytics_pb/analytics_pb.d.ts +693 -0
- package/dist/types/discovery/devin-gen/exa/api_server_pb/api_server_pb.d.ts +9158 -0
- package/dist/types/discovery/devin-gen/exa/auth_pb/auth_pb.d.ts +52 -0
- package/dist/types/discovery/devin-gen/exa/auto_cascade_common_pb/auto_cascade_common_pb.d.ts +276 -0
- package/dist/types/discovery/devin-gen/exa/bug_checker_pb/bug_checker_pb.d.ts +78 -0
- package/dist/types/discovery/devin-gen/exa/cascade_plugins_pb/cascade_plugins_pb.d.ts +999 -0
- package/dist/types/discovery/devin-gen/exa/chat_pb/chat_pb.d.ts +1704 -0
- package/dist/types/discovery/devin-gen/exa/code_edit/code_edit_pb/code_edit_pb.d.ts +656 -0
- package/dist/types/discovery/devin-gen/exa/codeium_common_pb/codeium_common_pb.d.ts +15014 -0
- package/dist/types/discovery/devin-gen/exa/context_module_pb/context_module_pb.d.ts +607 -0
- package/dist/types/discovery/devin-gen/exa/cortex_pb/cortex_pb.d.ts +11830 -0
- package/dist/types/discovery/devin-gen/exa/diff_action_pb/diff_action_pb.d.ts +248 -0
- package/dist/types/discovery/devin-gen/exa/index_pb/index_pb.d.ts +1747 -0
- package/dist/types/discovery/devin-gen/exa/knowledge_base_pb/knowledge_base_pb.d.ts +509 -0
- package/dist/types/discovery/devin-gen/exa/language_server_pb/language_server_pb.d.ts +9048 -0
- package/dist/types/discovery/devin-gen/exa/opensearch_clients_pb/opensearch_clients_pb.d.ts +1760 -0
- package/dist/types/discovery/devin-gen/exa/prompt_pb/prompt_pb.d.ts +286 -0
- package/dist/types/discovery/devin-gen/exa/reactive_component_pb/reactive_component_pb.d.ts +405 -0
- package/dist/types/discovery/devin-gen/exa/trust_pb/trust_pb.d.ts +582 -0
- package/dist/types/discovery/devin.d.ts +24 -0
- package/dist/types/discovery/gemini.d.ts +25 -0
- package/dist/types/discovery/gitlab-duo-workflow.d.ts +30 -0
- package/dist/types/discovery/index.d.ts +5 -0
- package/dist/types/discovery/openai-compatible.d.ts +74 -0
- package/dist/types/effort.d.ts +9 -0
- package/dist/types/fireworks-model-id.d.ts +23 -0
- package/dist/types/hosts.d.ts +137 -0
- package/dist/types/identity/bundled.d.ts +3 -0
- package/dist/types/identity/classify.d.ts +69 -0
- package/dist/types/identity/dialect.d.ts +3 -0
- package/dist/types/identity/family.d.ts +139 -0
- package/dist/types/identity/id.d.ts +12 -0
- package/dist/types/identity/index.d.ts +8 -0
- package/dist/types/identity/markers.d.ts +4 -0
- package/dist/types/identity/priority.d.ts +1 -0
- package/dist/types/identity/reference.d.ts +23 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/model-cache.d.ts +17 -0
- package/dist/types/model-manager.d.ts +68 -0
- package/dist/types/model-thinking.d.ts +79 -0
- package/dist/types/models.d.ts +12 -0
- package/dist/types/provider-models/bundled-references.d.ts +11 -0
- package/dist/types/provider-models/descriptor-types.d.ts +74 -0
- package/dist/types/provider-models/descriptors.d.ts +427 -0
- package/dist/types/provider-models/google.d.ts +27 -0
- package/dist/types/provider-models/index.d.ts +6 -0
- package/dist/types/provider-models/ollama.d.ts +9 -0
- package/dist/types/provider-models/openai-compat.d.ts +450 -0
- package/dist/types/provider-models/special.d.ts +33 -0
- package/dist/types/types.d.ts +656 -0
- package/dist/types/utils.d.ts +20 -0
- package/dist/types/variant-collapse.d.ts +133 -0
- package/dist/types/wire/codex.d.ts +26 -0
- package/dist/types/wire/coreweave.d.ts +12 -0
- package/dist/types/wire/gemini-headers.d.ts +37 -0
- package/dist/types/wire/github-copilot.d.ts +45 -0
- package/package.json +101 -0
- package/src/build.ts +47 -0
- package/src/compat/anthropic.ts +93 -0
- package/src/compat/apply.ts +15 -0
- package/src/compat/devin.ts +12 -0
- package/src/compat/openai.ts +689 -0
- package/src/discovery/antigravity.ts +253 -0
- package/src/discovery/codex.ts +371 -0
- package/src/discovery/cursor-gen/agent_pb.ts +15274 -0
- package/src/discovery/cursor.ts +314 -0
- package/src/discovery/devin-gen/buf/validate/validate_pb.ts +1862 -0
- package/src/discovery/devin-gen/exa/analytics_pb/analytics_pb.ts +871 -0
- package/src/discovery/devin-gen/exa/api_server_pb/api_server_pb.ts +11083 -0
- package/src/discovery/devin-gen/exa/auth_pb/auth_pb.ts +71 -0
- package/src/discovery/devin-gen/exa/auto_cascade_common_pb/auto_cascade_common_pb.ts +348 -0
- package/src/discovery/devin-gen/exa/bug_checker_pb/bug_checker_pb.ts +103 -0
- package/src/discovery/devin-gen/exa/cascade_plugins_pb/cascade_plugins_pb.ts +1198 -0
- package/src/discovery/devin-gen/exa/chat_pb/chat_pb.ts +2063 -0
- package/src/discovery/devin-gen/exa/code_edit/code_edit_pb/code_edit_pb.ts +810 -0
- package/src/discovery/devin-gen/exa/codeium_common_pb/codeium_common_pb.ts +18354 -0
- package/src/discovery/devin-gen/exa/context_module_pb/context_module_pb.ts +732 -0
- package/src/discovery/devin-gen/exa/cortex_pb/cortex_pb.ts +14277 -0
- package/src/discovery/devin-gen/exa/diff_action_pb/diff_action_pb.ts +312 -0
- package/src/discovery/devin-gen/exa/index_pb/index_pb.ts +2106 -0
- package/src/discovery/devin-gen/exa/knowledge_base_pb/knowledge_base_pb.ts +623 -0
- package/src/discovery/devin-gen/exa/language_server_pb/language_server_pb.ts +10918 -0
- package/src/discovery/devin-gen/exa/opensearch_clients_pb/opensearch_clients_pb.ts +2125 -0
- package/src/discovery/devin-gen/exa/prompt_pb/prompt_pb.ts +361 -0
- package/src/discovery/devin-gen/exa/reactive_component_pb/reactive_component_pb.ts +450 -0
- package/src/discovery/devin-gen/exa/trust_pb/trust_pb.ts +712 -0
- package/src/discovery/devin.ts +151 -0
- package/src/discovery/gemini.ts +260 -0
- package/src/discovery/gitlab-duo-workflow.ts +855 -0
- package/src/discovery/index.ts +5 -0
- package/src/discovery/openai-compatible.ts +249 -0
- package/src/effort.ts +16 -0
- package/src/fireworks-model-id.ts +50 -0
- package/src/hosts.ts +129 -0
- package/src/identity/bundled.ts +28 -0
- package/src/identity/classify.ts +214 -0
- package/src/identity/dialect.ts +42 -0
- package/src/identity/family.ts +296 -0
- package/src/identity/id.ts +81 -0
- package/src/identity/index.ts +8 -0
- package/src/identity/markers.ts +49 -0
- package/src/identity/priority.ts +57 -0
- package/src/identity/reference.ts +148 -0
- package/src/index.ts +17 -0
- package/src/model-cache.ts +171 -0
- package/src/model-manager.ts +520 -0
- package/src/model-thinking.ts +760 -0
- package/src/models.json +88898 -0
- package/src/models.json.d.ts +9 -0
- package/src/models.ts +64 -0
- package/src/provider-models/bundled-references.ts +58 -0
- package/src/provider-models/descriptor-types.ts +79 -0
- package/src/provider-models/descriptors.ts +503 -0
- package/src/provider-models/google.ts +107 -0
- package/src/provider-models/index.ts +6 -0
- package/src/provider-models/ollama.ts +172 -0
- package/src/provider-models/openai-compat.ts +4283 -0
- package/src/provider-models/special.ts +159 -0
- package/src/types.ts +786 -0
- package/src/utils.ts +69 -0
- package/src/variant-collapse.ts +1065 -0
- package/src/wire/codex.ts +43 -0
- package/src/wire/coreweave.ts +51 -0
- package/src/wire/gemini-headers.ts +74 -0
- package/src/wire/github-copilot.ts +121 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { once } from "jeopi-utils";
|
|
2
|
+
import { fetchCodexModels } from "../discovery/codex";
|
|
3
|
+
import type { DevinModelDiscoveryOptions } from "../discovery/devin";
|
|
4
|
+
import { buildGitLabDuoWorkflowFallbackModel, fetchGitLabDuoWorkflowModels } from "../discovery/gitlab-duo-workflow";
|
|
5
|
+
import type { ModelManagerOptions } from "../model-manager";
|
|
6
|
+
import type { FetchImpl } from "../types";
|
|
7
|
+
|
|
8
|
+
// ---------------------------------------------------------------------------
|
|
9
|
+
// OpenAI Codex
|
|
10
|
+
// ---------------------------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
export interface OpenAICodexModelManagerConfig {
|
|
13
|
+
accessToken?: string;
|
|
14
|
+
accountId?: string;
|
|
15
|
+
clientVersion?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function openaiCodexModelManagerOptions(
|
|
19
|
+
config: OpenAICodexModelManagerConfig = {},
|
|
20
|
+
): ModelManagerOptions<"openai-codex-responses"> {
|
|
21
|
+
const { accessToken, accountId, clientVersion } = config;
|
|
22
|
+
return {
|
|
23
|
+
providerId: "openai-codex",
|
|
24
|
+
...(accessToken
|
|
25
|
+
? {
|
|
26
|
+
fetchDynamicModels: async () => {
|
|
27
|
+
const result = await fetchCodexModels({ accessToken, accountId, clientVersion });
|
|
28
|
+
return result?.models ?? null;
|
|
29
|
+
},
|
|
30
|
+
}
|
|
31
|
+
: undefined),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// ---------------------------------------------------------------------------
|
|
36
|
+
// Cursor
|
|
37
|
+
// ---------------------------------------------------------------------------
|
|
38
|
+
|
|
39
|
+
export interface CursorModelManagerConfig {
|
|
40
|
+
apiKey?: string;
|
|
41
|
+
baseUrl?: string;
|
|
42
|
+
clientVersion?: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function cursorModelManagerOptions(config: CursorModelManagerConfig = {}): ModelManagerOptions<"cursor-agent"> {
|
|
46
|
+
const { apiKey, baseUrl, clientVersion } = config;
|
|
47
|
+
return {
|
|
48
|
+
providerId: "cursor",
|
|
49
|
+
...(apiKey
|
|
50
|
+
? {
|
|
51
|
+
fetchDynamicModels: async () => {
|
|
52
|
+
const { fetchCursorUsableModels } = await cursorDiscovery();
|
|
53
|
+
return fetchCursorUsableModels({ apiKey, baseUrl, clientVersion });
|
|
54
|
+
},
|
|
55
|
+
}
|
|
56
|
+
: undefined),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const cursorDiscovery = once(() => import("../discovery/cursor"));
|
|
61
|
+
|
|
62
|
+
// ---------------------------------------------------------------------------
|
|
63
|
+
// GitLab Duo Workflow
|
|
64
|
+
// ---------------------------------------------------------------------------
|
|
65
|
+
|
|
66
|
+
export interface GitLabDuoWorkflowModelManagerConfig {
|
|
67
|
+
apiKey?: string;
|
|
68
|
+
baseUrl?: string;
|
|
69
|
+
fetch?: FetchImpl;
|
|
70
|
+
namespaceId?: string;
|
|
71
|
+
projectId?: string;
|
|
72
|
+
cwd?: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function gitLabDuoWorkflowModelManagerOptions(
|
|
76
|
+
config: GitLabDuoWorkflowModelManagerConfig = {},
|
|
77
|
+
): ModelManagerOptions<"gitlab-duo-agent"> {
|
|
78
|
+
const apiKey = config.apiKey;
|
|
79
|
+
return {
|
|
80
|
+
providerId: "gitlab-duo-agent",
|
|
81
|
+
// GitLab Duo discovery is credential- and namespace-specific
|
|
82
|
+
// (`aiChatAvailableModels(rootNamespaceId:)` also surfaces namespace-pinned
|
|
83
|
+
// models), so the default provider-id cache namespace would let a second
|
|
84
|
+
// account/namespace load the first one's authoritative model list at startup
|
|
85
|
+
// and skip refetching. Partition the cache by a non-reversible fingerprint of
|
|
86
|
+
// the exact inputs `fetchGitLabDuoWorkflowModels` resolves the namespace from
|
|
87
|
+
// (credential + base URL + namespace/project config + the same env vars + the
|
|
88
|
+
// effective workspace cwd whose git remote drives auto-discovery). Built-in
|
|
89
|
+
// discovery only passes apiKey/baseUrl/fetch, so the cwd/env terms — not the
|
|
90
|
+
// empty config fields — are what actually separate workspace A from B here.
|
|
91
|
+
// Falls back to the bare provider id when no credential is present.
|
|
92
|
+
...(apiKey ? { cacheProviderId: gitLabDuoWorkflowModelCacheProviderId(apiKey, config) } : undefined),
|
|
93
|
+
dynamicModelsAuthoritative: true,
|
|
94
|
+
staticModels: [
|
|
95
|
+
buildGitLabDuoWorkflowFallbackModel("claude_sonnet_4_6_vertex", "Claude Sonnet 4.6 - Vertex", config.baseUrl),
|
|
96
|
+
],
|
|
97
|
+
...(apiKey
|
|
98
|
+
? {
|
|
99
|
+
fetchDynamicModels: async () =>
|
|
100
|
+
fetchGitLabDuoWorkflowModels({
|
|
101
|
+
apiKey,
|
|
102
|
+
baseUrl: config.baseUrl,
|
|
103
|
+
fetch: config.fetch,
|
|
104
|
+
namespaceId: config.namespaceId,
|
|
105
|
+
projectId: config.projectId,
|
|
106
|
+
cwd: config.cwd,
|
|
107
|
+
}),
|
|
108
|
+
}
|
|
109
|
+
: undefined),
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function gitLabDuoWorkflowModelCacheProviderId(apiKey: string, config: GitLabDuoWorkflowModelManagerConfig): string {
|
|
114
|
+
// Mirror the exact inputs `discoverGitLabDuoWorkflowNamespace` keys off: explicit
|
|
115
|
+
// namespace/project config OR the same env vars, then the git remote at the
|
|
116
|
+
// effective cwd. Built-in discovery leaves the config fields empty, so the env +
|
|
117
|
+
// resolved cwd terms are what actually distinguish two workspaces sharing a token.
|
|
118
|
+
const namespaceId = config.namespaceId ?? Bun.env.GITLAB_DUO_NAMESPACE_ID ?? "";
|
|
119
|
+
const projectId = config.projectId ?? Bun.env.GITLAB_DUO_PROJECT_ID ?? Bun.env.GITLAB_DUO_PROJECT_PATH ?? "";
|
|
120
|
+
const cwd = config.cwd ?? process.cwd();
|
|
121
|
+
const scope = [config.baseUrl ?? "", namespaceId, projectId, cwd].join("\u0000");
|
|
122
|
+
return `gitlab-duo-agent:${Bun.hash(`${apiKey}\u0000${scope}`).toString(36)}`;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// Devin (Codeium Cascade)
|
|
126
|
+
// ---------------------------------------------------------------------------
|
|
127
|
+
|
|
128
|
+
export interface DevinModelManagerConfig {
|
|
129
|
+
apiKey?: string;
|
|
130
|
+
baseUrl?: string;
|
|
131
|
+
fetch?: DevinModelDiscoveryOptions["fetch"];
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function devinModelManagerOptions(config: DevinModelManagerConfig = {}): ModelManagerOptions<"devin-agent"> {
|
|
135
|
+
const { apiKey, baseUrl, fetch } = config;
|
|
136
|
+
return {
|
|
137
|
+
providerId: "devin",
|
|
138
|
+
...(apiKey ? { dynamicModelsAuthoritative: true } : undefined),
|
|
139
|
+
...(apiKey
|
|
140
|
+
? {
|
|
141
|
+
fetchDynamicModels: async () => {
|
|
142
|
+
const { fetchDevinModels } = await devinDiscovery();
|
|
143
|
+
return fetchDevinModels({ apiKey, baseUrl, fetch });
|
|
144
|
+
},
|
|
145
|
+
}
|
|
146
|
+
: undefined),
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
const devinDiscovery = once(() => import("../discovery/devin"));
|
|
151
|
+
// ---------------------------------------------------------------------------
|
|
152
|
+
// Zai
|
|
153
|
+
// ---------------------------------------------------------------------------
|
|
154
|
+
|
|
155
|
+
export interface ZaiModelManagerConfig {}
|
|
156
|
+
|
|
157
|
+
export function zaiModelManagerOptions(_config: ZaiModelManagerConfig = {}): ModelManagerOptions<"anthropic-messages"> {
|
|
158
|
+
return { providerId: "zai" };
|
|
159
|
+
}
|