pullfrog 0.1.57 → 0.1.59
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/dist/agents/codex.d.ts +1 -0
- package/dist/agents/index.d.ts +1 -0
- package/dist/agents/opencodeShared.d.ts +24 -0
- package/dist/cli.mjs +1059 -388
- package/dist/external.d.ts +2 -1
- package/dist/index.js +1094 -419
- package/dist/internal.js +18 -0
- package/dist/models.d.ts +42 -1
- package/dist/utils/agent.d.ts +10 -0
- package/dist/utils/codexHome.d.ts +27 -0
- package/dist/utils/roleMirror.d.ts +14 -0
- package/dist/utils/runContext.d.ts +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const codex: import("./shared.ts").Agent;
|
package/dist/agents/index.d.ts
CHANGED
|
@@ -24,6 +24,16 @@ interface ModelLimit {
|
|
|
24
24
|
context: number;
|
|
25
25
|
output: number;
|
|
26
26
|
}
|
|
27
|
+
/** azure needs no `npm` — opencode's native provider supplies it. */
|
|
28
|
+
interface AzureProviderEntry {
|
|
29
|
+
options: {
|
|
30
|
+
useCompletionUrls: boolean;
|
|
31
|
+
};
|
|
32
|
+
models: Record<string, {
|
|
33
|
+
name: string;
|
|
34
|
+
limit: ModelLimit;
|
|
35
|
+
}>;
|
|
36
|
+
}
|
|
27
37
|
/**
|
|
28
38
|
* OpenAI-compatible provider block for OPENCODE_CONFIG_CONTENT. opencode has no
|
|
29
39
|
* native provider for an arbitrary gateway, so inject one via
|
|
@@ -32,6 +42,20 @@ interface ModelLimit {
|
|
|
32
42
|
* guaranteed present by `validateOpenAICompatibleSetup`.
|
|
33
43
|
*/
|
|
34
44
|
export declare function openAICompatibleProvider(model: string | undefined): Record<string, OpenAICompatibleProviderEntry>;
|
|
45
|
+
/**
|
|
46
|
+
* Azure model block for OPENCODE_CONFIG_CONTENT. Unlike openai-compatible this
|
|
47
|
+
* does NOT declare a provider — opencode has a native `azure` one and the env
|
|
48
|
+
* loop already enables it. What it declares is the MODEL, because opencode
|
|
49
|
+
* resolves `azure/<deployment>` by looking the id up in the provider's catalog
|
|
50
|
+
* (`Provider.getModel` → `provider.models[modelID]`) and throws
|
|
51
|
+
* `ProviderModelNotFoundError` when it misses. A deployment name is chosen by
|
|
52
|
+
* whoever created the deployment, so it is absent from that catalog unless it
|
|
53
|
+
* happens to match a models.dev azure id — measured against opencode-ai@1.18.5:
|
|
54
|
+
* `azure/prod-reasoning` throws, and the same run with this block resolves and
|
|
55
|
+
* reaches the network. The limits come from env for the same reason
|
|
56
|
+
* openai-compatible's do; `validateAzureSetup` guarantees they parse.
|
|
57
|
+
*/
|
|
58
|
+
export declare function azureProvider(model: string | undefined): Record<string, AzureProviderEntry>;
|
|
35
59
|
/**
|
|
36
60
|
* Build the `provider.openrouter.models[id].options` map that pins every Kimi
|
|
37
61
|
* K2 OpenRouter alias away from the Enforcer-less providers via OpenRouter's
|