pullfrog 0.1.46 → 0.1.48
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 +1 -1
- package/dist/agents/opencodePlugin.d.ts +2 -2
- package/dist/agents/opencodeShared.d.ts +0 -28
- package/dist/cli.mjs +541 -199
- package/dist/effort.d.ts +76 -0
- package/dist/external.d.ts +14 -1
- package/dist/index.js +527 -192
- package/dist/internal/index.d.ts +5 -2
- package/dist/internal.js +250 -1
- package/dist/models.d.ts +36 -2
- package/dist/toolState.d.ts +1 -0
- package/dist/utils/billingErrors.d.ts +27 -10
- package/dist/utils/payload.d.ts +12 -2
- package/dist/utils/runContext.d.ts +15 -3
- package/dist/utils/runContextData.d.ts +2 -1
- package/dist/utils/runEffort.d.ts +27 -0
- package/dist/utils/runStartupLog.d.ts +3 -3
- package/dist/utils/runStatusCheck.d.ts +170 -0
- package/dist/utils/statusChecks.d.ts +14 -17
- package/package.json +1 -1
- /package/dist/agents/{opencode_v2.d.ts → opencode.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -101,7 +101,7 @@ jobs:
|
|
|
101
101
|
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
-
|
|
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
|
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
* plugin — `buildOpencodeSubagentGateSource` below — because it's the
|
|
35
35
|
* load-bearing security fence and must ship into both opencode harnesses,
|
|
36
36
|
* whereas this events re-emitter is only needed by the legacy `opencode.ts`
|
|
37
|
-
* CLI-parsing path (the active `
|
|
37
|
+
* CLI-parsing path (the active `opencode.ts` reads subagent events directly
|
|
38
38
|
* off the SDK event stream, so it installs ONLY the gate plugin). Deny-list
|
|
39
39
|
* source of truth: `action/agents/subagentToolGates.ts`.
|
|
40
40
|
*
|
|
@@ -74,7 +74,7 @@ export declare const PULLFROG_OPENCODE_PLUGIN_SOURCE: string;
|
|
|
74
74
|
* Standalone subagent gate plugin written to
|
|
75
75
|
* `<XDG_CONFIG_HOME>/opencode/plugin/pullfrog-subagent-gate.ts`. Installed by
|
|
76
76
|
* BOTH opencode harnesses (the legacy `opencode.ts` and the active in-process
|
|
77
|
-
* `
|
|
77
|
+
* `opencode.ts`) — the gate is the load-bearing security fence, so it ships
|
|
78
78
|
* independently of the events re-emitter above (which v2 doesn't need).
|
|
79
79
|
*
|
|
80
80
|
* Hard-blocks state-mutating MCP tool calls originating from a subagent
|
|
@@ -8,14 +8,6 @@ export type OpenCodeConfig = {
|
|
|
8
8
|
enabled_providers?: string[];
|
|
9
9
|
[key: string]: unknown;
|
|
10
10
|
};
|
|
11
|
-
/**
|
|
12
|
-
* Build the `provider.google.models[id].options` map that pins every direct-Google
|
|
13
|
-
* Gemini alias to `thinkingLevel: "high"`. Sourced from the model registry so
|
|
14
|
-
* adding/renaming a Google alias in `action/models.ts` flows through automatically.
|
|
15
|
-
*/
|
|
16
|
-
export declare function geminiHighThinkingOverrides(): Record<string, {
|
|
17
|
-
options: object;
|
|
18
|
-
}>;
|
|
19
11
|
interface OpenAICompatibleProviderEntry {
|
|
20
12
|
npm: string;
|
|
21
13
|
name: string;
|
|
@@ -57,26 +49,6 @@ export declare function openAICompatibleProvider(model: string | undefined): Rec
|
|
|
57
49
|
export declare function kimiOpenRouterProviderOverrides(): Record<string, {
|
|
58
50
|
options: object;
|
|
59
51
|
}>;
|
|
60
|
-
/**
|
|
61
|
-
* Build the `provider.openrouter.models[id].options` map that pins the
|
|
62
|
-
* efficient-tier DeepSeek model to high reasoning effort on the OpenRouter
|
|
63
|
-
* route — the funded/OSS default path. The shape must nest under `options`
|
|
64
|
-
* (opencode builds `Model.options` only from the entry's `options` sub-object —
|
|
65
|
-
* `provider.ts` `mergeDeep(existingModel.options, model.options)`) and use a
|
|
66
|
-
* `reasoning` record (the openrouter provider forwards only `usage`/`reasoning`/
|
|
67
|
-
* `promptCacheKey`); a bare `reasoningEffort` sibling is silently dropped.
|
|
68
|
-
* Sourced from the registry so a resolve bump carries the override forward.
|
|
69
|
-
* `high` is the ceiling OpenRouter's unified `reasoning.effort` exposes
|
|
70
|
-
* (low/medium/high); DeepSeek's native `max` is only reachable via a direct
|
|
71
|
-
* DeepSeek key, not the OpenRouter route.
|
|
72
|
-
*/
|
|
73
|
-
export declare function deepseekHighEffortOverrides(): Record<string, {
|
|
74
|
-
options: {
|
|
75
|
-
reasoning: {
|
|
76
|
-
effort: string;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
}>;
|
|
80
52
|
/**
|
|
81
53
|
* Read-only `reviewfrog` subagent for lens-based review. Non-mutative +
|
|
82
54
|
* non-recursive — enforced by the system prompt in reviewer.ts.
|