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/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
@@ -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
  /**