pullfrog 0.1.29 → 0.1.31

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.
Files changed (60) hide show
  1. package/dist/agents/claudePretoolGate.d.ts +5 -1
  2. package/dist/agents/opencodePlugin.d.ts +2 -2
  3. package/dist/agents/postRun.d.ts +8 -31
  4. package/dist/agents/shared.d.ts +6 -0
  5. package/dist/agents/subagentToolGates.d.ts +22 -40
  6. package/dist/cli.mjs +63989 -59666
  7. package/dist/external.d.ts +45 -2
  8. package/dist/index.js +62509 -58186
  9. package/dist/internal/index.d.ts +2 -2
  10. package/dist/internal.js +99 -33
  11. package/dist/mcp/checkSuite.d.ts +3 -1
  12. package/dist/mcp/checkout.d.ts +4 -2
  13. package/dist/mcp/comment.d.ts +12 -4
  14. package/dist/mcp/commitInfo.d.ts +3 -1
  15. package/dist/mcp/dependencies.d.ts +6 -2
  16. package/dist/mcp/git.d.ts +32 -6
  17. package/dist/mcp/issue.d.ts +26 -1
  18. package/dist/mcp/issueComments.d.ts +3 -1
  19. package/dist/mcp/issueEvents.d.ts +3 -1
  20. package/dist/mcp/issueInfo.d.ts +3 -1
  21. package/dist/mcp/labels.d.ts +16 -1
  22. package/dist/mcp/output.d.ts +6 -2
  23. package/dist/mcp/pr.d.ts +19 -2
  24. package/dist/mcp/prInfo.d.ts +3 -1
  25. package/dist/mcp/resolveRepoCtx.d.ts +34 -0
  26. package/dist/mcp/review.d.ts +9 -3
  27. package/dist/mcp/reviewComments.d.ts +9 -3
  28. package/dist/mcp/selectMode.d.ts +3 -1
  29. package/dist/mcp/server.d.ts +7 -1
  30. package/dist/mcp/shared.d.ts +18 -1
  31. package/dist/mcp/shell.d.ts +6 -2
  32. package/dist/mcp/upload.d.ts +3 -1
  33. package/dist/mcp/xrepo.d.ts +15 -0
  34. package/dist/models.d.ts +58 -5
  35. package/dist/modes.d.ts +1 -1
  36. package/dist/toolState.d.ts +66 -16
  37. package/dist/utils/apiCommit.d.ts +40 -0
  38. package/dist/utils/apiKeys.d.ts +19 -0
  39. package/dist/utils/buildPullfrogFooter.d.ts +27 -0
  40. package/dist/utils/claudeSubscription.d.ts +30 -0
  41. package/dist/utils/errorReport.d.ts +2 -2
  42. package/dist/utils/github.d.ts +28 -2
  43. package/dist/utils/instructions.d.ts +11 -0
  44. package/dist/utils/isTransientNetworkError.d.ts +10 -0
  45. package/dist/utils/learnings.d.ts +14 -0
  46. package/dist/utils/modelAccess.d.ts +64 -0
  47. package/dist/utils/openCodeModels.d.ts +2 -2
  48. package/dist/utils/payload.d.ts +16 -0
  49. package/dist/utils/proxy.d.ts +3 -5
  50. package/dist/utils/runContext.d.ts +4 -0
  51. package/dist/utils/runContextData.d.ts +10 -0
  52. package/dist/utils/runErrorRenderer.d.ts +2 -2
  53. package/dist/utils/setup.d.ts +18 -3
  54. package/dist/utils/token.d.ts +22 -3
  55. package/dist/yes/index.d.ts +32 -0
  56. package/dist/yes/standard-schema.d.ts +117 -0
  57. package/dist/yes.js +1244 -0
  58. package/package.json +19 -10
  59. package/dist/utils/byokFallback.d.ts +0 -44
  60. package/dist/utils/retry.d.ts +0 -13
@@ -12,8 +12,8 @@ export type AgentId = "claude" | "opencode";
12
12
  * opencode: pullfrog_select_mode
13
13
  */
14
14
  export declare function formatMcpToolRef(agentId: AgentId, toolName: string): string;
15
- export type { ModelAlias, ModelProvider, ProviderConfig } from "./models.ts";
16
- export { DEFAULT_PROXY_MODEL, getAutoSelectHintModel, getModelEnvVars, getModelManagedCredentials, getModelProvider, getProviderDisplayName, modelAliases, parseModel, providers, resolveCliModel, resolveDisplayAlias, resolveModelSlug, resolveOpenRouterModel, } from "./models.ts";
15
+ export type { AutoTier, ModelAlias, ModelProvider, ProviderConfig } from "./models.ts";
16
+ export { AUTO_EFFICIENT, AUTO_INTELLIGENT, DEFAULT_PROXY_MODEL, defaultAutoTier, getAutoSelectHintModel, getModelEnvVars, getModelManagedCredentials, getModelProvider, getProviderDisplayName, isAutoTier, isCardGatedModel, modelAliases, parseModel, providers, resolveAutoTier, resolveCliModel, resolveDisplayAlias, resolveModelSlug, resolveOpenRouterModel, } from "./models.ts";
17
17
  export type ToolPermission = "disabled" | "enabled";
18
18
  export type ShellPermission = "disabled" | "restricted" | "enabled";
19
19
  export type PushPermission = "disabled" | "restricted" | "enabled";
@@ -189,16 +189,54 @@ interface UnknownEvent extends BasePayloadEvent {
189
189
  trigger: "unknown";
190
190
  }
191
191
  export type PayloadEvent = PullRequestOpenedEvent | PullRequestReadyForReviewEvent | PullRequestSynchronizeEvent | PullRequestReviewRequestedEvent | PullRequestReviewSubmittedEvent | PullRequestReviewCommentCreatedEvent | IssuesOpenedEvent | IssuesAssignedEvent | IssuesLabeledEvent | IssueCommentCreatedEvent | CheckSuiteCompletedEvent | WorkflowDispatchEvent | FixReviewEvent | ImplementPlanEvent | UnknownEvent;
192
+ /**
193
+ * cross-repo intent + resolved access sets, computed server-side from the
194
+ * `--xrepo` flag and the triggerer's own GitHub access. absent on every
195
+ * single-repo run (the default path is byte-identical to today). repo names
196
+ * are owner-implicit — a GitHub App installation is scoped to one account, so
197
+ * every entry shares the primary repo's owner. see utils/flags.ts + wiki.
198
+ */
199
+ export interface XrepoConfig {
200
+ /** `all` = bare `--xrepo` (top-N active), `explicit` = `--xrepo=a,b` subset */
201
+ mode: "all" | "explicit";
202
+ /** repo names the triggerer can READ (clone-for-reference); includes primary */
203
+ read: string[];
204
+ /** repo names the triggerer can WRITE (open PRs); subset of `read` */
205
+ write: string[];
206
+ /**
207
+ * repos the triggerer explicitly named (`--xrepo=a,b`) that were NOT granted —
208
+ * unknown to the installation, a different owner, or excluded for lacking a
209
+ * verified per-repo permission. surfaced by `list_repos` so a narrowed request
210
+ * isn't silently swallowed. empty for bare `--xrepo`. optional (defaulted to
211
+ * `[]` on read) so an older server build that predates this field can't
212
+ * hard-fail payload parse against a newer action across a rolling deploy.
213
+ */
214
+ unavailable?: string[] | undefined;
215
+ }
192
216
  export interface WriteablePayload {
193
217
  "~pullfrog": true;
194
218
  /** semantic version of the payload to ensure compatibility */
195
219
  version: string;
196
220
  /** provider/model slug (e.g. "anthropic/claude-opus") */
197
221
  model?: string | undefined;
222
+ /**
223
+ * true when `model` came from a per-run override flag (trigger / user prompt
224
+ * `--opus`, `--model=<slug>`). drives the model-access gate: an explicit,
225
+ * inaccessible model hard-fails; a standing default (repo setting or org/repo
226
+ * baseInstructions flag) keeps the soft-fallback safety net. see modelAccess.ts.
227
+ */
228
+ modelExplicit?: boolean | undefined;
198
229
  /** the user's actual request (body if @pullfrog tagged) */
199
230
  prompt: string;
200
231
  /** github username of the human who triggered this workflow run */
201
232
  triggerer?: string | undefined;
233
+ /**
234
+ * org + repo standing instructions (`Account.baseInstructions` then
235
+ * `Repo.baseInstructions`), custom-alias-expanded and reserved-flag-stripped
236
+ * server-side. always applies, regardless of user-prompt precedence — the
237
+ * most-general levels of the leveled-config stack. see utils/flags.ts.
238
+ */
239
+ baseInstructions?: string | undefined;
202
240
  /** event-level instructions for this trigger type (flag-expanded server-side) */
203
241
  eventInstructions?: string | undefined;
204
242
  /**
@@ -210,6 +248,11 @@ export interface WriteablePayload {
210
248
  previousRunsNote?: string | undefined;
211
249
  /** event data from webhook payload - discriminated union based on trigger field */
212
250
  event: PayloadEvent;
251
+ /**
252
+ * cross-repo access sets, resolved server-side. absent ⇒ single-repo run
253
+ * (every cross-repo runtime branch gates on this being present).
254
+ */
255
+ xrepo?: XrepoConfig | undefined;
213
256
  /** timeout for agent run (e.g., "10m", "1h30m") - defaults to "1h" */
214
257
  timeout?: string | undefined;
215
258
  /** working directory for the agent */