pullfrog 0.1.66 → 0.1.68
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 +72 -149
- package/dist/cli.mjs +461 -126
- package/dist/effort.d.ts +10 -0
- package/dist/external.d.ts +9 -1
- package/dist/index.js +345 -63
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal.js +219 -2
- package/dist/models.d.ts +2 -0
- package/dist/toolState.d.ts +1 -1
- package/dist/utils/apiKeys.d.ts +34 -0
- package/dist/utils/billingErrors.d.ts +1 -2
- package/dist/utils/buildPullfrogFooter.d.ts +4 -1
- package/dist/utils/payload.d.ts +1 -0
- package/dist/utils/providerErrors.d.ts +8 -0
- package/dist/utils/proxy.d.ts +24 -0
- package/dist/utils/runContext.d.ts +7 -0
- package/dist/utils/runContextData.d.ts +9 -0
- package/package.json +1 -1
package/dist/effort.d.ts
CHANGED
|
@@ -32,6 +32,16 @@ export type EffortPosition = number;
|
|
|
32
32
|
* ran at before this setting existed.
|
|
33
33
|
*/
|
|
34
34
|
export declare const DEFAULT_EFFORT_POSITION: EffortPosition;
|
|
35
|
+
/**
|
|
36
|
+
* the rung a Pullfrog-subsidised OSS run is pinned to, whatever the repo or a
|
|
37
|
+
* per-kind-of-work row has stored — see `ossEffortFloor`, which spends it, and
|
|
38
|
+
* the console's Model card, which stops offering the control because of it.
|
|
39
|
+
*
|
|
40
|
+
* shared rather than written twice: the runtime pins the run and the console
|
|
41
|
+
* says so, and a console that names a different rung than the one that runs is
|
|
42
|
+
* the same class of bug as the Router opt-out the two surfaces disagreed on.
|
|
43
|
+
*/
|
|
44
|
+
export declare const SUBSIDY_RUNG = "high";
|
|
35
45
|
/**
|
|
36
46
|
* names we accept on user-facing surfaces (`--effort=`, the action input),
|
|
37
47
|
* mapped to fixed points on the axis. these are a typing convenience, NOT an
|
package/dist/external.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export declare function findDanglingPromptToolRefs(params: {
|
|
|
50
50
|
toolNames: string[];
|
|
51
51
|
}): string[];
|
|
52
52
|
export type { EffortPosition } from "./effort.ts";
|
|
53
|
-
export { DEFAULT_EFFORT_POSITION, EFFORT_ALIASES, isEffortPosition, offeredRungs, parseEffortPosition, resolveRung, rungLabel, rungPosition, } from "./effort.ts";
|
|
53
|
+
export { DEFAULT_EFFORT_POSITION, EFFORT_ALIASES, isEffortPosition, offeredRungs, parseEffortPosition, resolveRung, rungLabel, rungPosition, SUBSIDY_RUNG, } from "./effort.ts";
|
|
54
54
|
export type { AutoTier, ModelAlias, ModelProvider, ProviderConfig } from "./models.ts";
|
|
55
55
|
export { AUTO_EFFICIENT, AUTO_INTELLIGENT, DEFAULT_PROXY_MODEL, defaultAutoTier, getAutoSelectHintModel, getModelEffortLevels, getModelEnvVars, getModelManagedCredentials, getModelProvider, getProviderDisplayName, isAutoTier, isCardGatedModel, isOssAllowedModel, modelAliases, modelHasStoredAuth, OSS_MODEL_ALLOWLIST, OSS_RECOMMENDED_MODEL, ossFundedModelNames, parseModel, providers, resolveAutoTier, resolveCliModel, resolveDisplayAlias, resolveModelRung, resolveModelSlug, resolveOpenRouterModel, } from "./models.ts";
|
|
56
56
|
export type ToolPermission = "disabled" | "enabled";
|
|
@@ -257,6 +257,14 @@ export interface WriteablePayload {
|
|
|
257
257
|
"~pullfrog": true;
|
|
258
258
|
/** semantic version of the payload to ensure compatibility */
|
|
259
259
|
version: string;
|
|
260
|
+
/**
|
|
261
|
+
* which kind of work this run is (`pr-created`, `issue-created`, …). the
|
|
262
|
+
* server's own run-type vocabulary, opaque here: the action only forwards it
|
|
263
|
+
* to `run-context`, which resolves the repo's per-trigger model override
|
|
264
|
+
* against it. absent ⇒ the repo default, which is what every run got before
|
|
265
|
+
* overrides existed.
|
|
266
|
+
*/
|
|
267
|
+
type?: string | undefined;
|
|
260
268
|
/** provider/model slug (e.g. "anthropic/claude-opus") */
|
|
261
269
|
model?: string | undefined;
|
|
262
270
|
/**
|