pullfrog 0.1.45 → 0.1.47

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/README.md CHANGED
@@ -101,7 +101,7 @@ jobs:
101
101
 
102
102
  ```
103
103
 
104
- To gate merges on Pullfrog with branch protection, add `status_checks: enabled` under `with:`. Each PR run then posts a `pullfrog` check (run completion success when the run finishes, failure on error/timeout) and a `pullfrog-approval` check (whether Pullfrog would approve the PR), both requireable as status checks. See [PR reviews → Required status checks](https://docs.pullfrog.dev/pr-reviews#required-status-checks-branch-protection).
104
+ Every PR run posts a `Pullfrog` commit-status check: `in_progress` from the moment the run is dispatched, then success when it finishes or failure on error/timeout. It is on by default (turn it off per-repo in the console). To also gate merges on Pullfrog's review verdict, add `status_checks: enabled`, which additionally posts a `Pullfrog approval` check (whether Pullfrog would approve the PR). Both are requireable as branch-protection status checks. See [PR reviews → Status checks](https://docs.pullfrog.dev/pr-reviews#status-checks).
105
105
 
106
106
  #### 2. Create `triggers.yml`
107
107
 
@@ -16,6 +16,30 @@ export type OpenCodeConfig = {
16
16
  export declare function geminiHighThinkingOverrides(): Record<string, {
17
17
  options: object;
18
18
  }>;
19
+ interface OpenAICompatibleProviderEntry {
20
+ npm: string;
21
+ name: string;
22
+ options: {
23
+ baseURL: string | undefined;
24
+ apiKey: string | undefined;
25
+ };
26
+ models: Record<string, {
27
+ name: string;
28
+ limit: ModelLimit;
29
+ }>;
30
+ }
31
+ interface ModelLimit {
32
+ context: number;
33
+ output: number;
34
+ }
35
+ /**
36
+ * OpenAI-compatible provider block for OPENCODE_CONFIG_CONTENT. opencode has no
37
+ * native provider for an arbitrary gateway, so inject one via
38
+ * `@ai-sdk/openai-compatible` when the run targets `openai-compatible/<model>`;
39
+ * `{}` otherwise so the caller can spread it unconditionally. base URL + key are
40
+ * guaranteed present by `validateOpenAICompatibleSetup`.
41
+ */
42
+ export declare function openAICompatibleProvider(model: string | undefined): Record<string, OpenAICompatibleProviderEntry>;
19
43
  /**
20
44
  * Build the `provider.openrouter.models[id].options` map that pins every Kimi
21
45
  * K2 OpenRouter alias away from the Enforcer-less providers via OpenRouter's
@@ -75,3 +99,4 @@ export declare function installOpencodeCli(params: {
75
99
  binPath: string;
76
100
  }): Promise<string>;
77
101
  export declare function autoSelectModel(): string | undefined;
102
+ export {};