pullfrog 0.1.50 → 0.1.52
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/opencodeShared.d.ts +1 -1
- package/dist/cli.mjs +847 -510
- package/dist/external.d.ts +1 -1
- package/dist/index.js +845 -509
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal.js +130 -38
- package/dist/mcp/shell.d.ts +3 -3
- package/dist/models.d.ts +29 -5
- package/dist/utils/activity.d.ts +8 -0
- package/dist/utils/apiKeys.d.ts +14 -9
- package/dist/utils/gitAuth.d.ts +13 -0
- package/dist/utils/modelAccess.d.ts +4 -2
- package/dist/utils/packageManager.d.ts +22 -0
- package/dist/utils/rangeDiff.d.ts +20 -1
- package/dist/utils/runContext.d.ts +1 -0
- package/dist/utils/runEffort.d.ts +15 -0
- package/dist/utils/runErrorRenderer.d.ts +15 -2
- package/dist/utils/secrets.d.ts +5 -0
- package/dist/utils/setup.d.ts +7 -0
- package/dist/utils/statusChecks.d.ts +1 -1
- package/dist/utils/worktree.d.ts +20 -0
- package/package.json +1 -1
package/dist/utils/secrets.d.ts
CHANGED
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
export declare const SENSITIVE_PATTERNS: RegExp[];
|
|
11
11
|
export declare function isSensitiveEnvName(key: string): boolean;
|
|
12
12
|
export declare function setEnvAllowlist(raw: string): void;
|
|
13
|
+
/**
|
|
14
|
+
* `filterEnv()` minus the workflow-command file paths. For subprocesses that
|
|
15
|
+
* execute third-party code we do not sandbox — the dependency installers.
|
|
16
|
+
*/
|
|
17
|
+
export declare function filterEnvForUntrustedCode(): Record<string, string>;
|
|
13
18
|
/** filter env vars using default-deny allowlist: safe set + user allowlist */
|
|
14
19
|
export declare function filterEnv(): Record<string, string>;
|
|
15
20
|
export type EnvMode = "restricted" | "inherit" | Record<string, string>;
|
package/dist/utils/setup.d.ts
CHANGED
|
@@ -53,6 +53,13 @@ export declare function setupTestRepo(options: SetupOptions): void;
|
|
|
53
53
|
export declare function removeIncludeIfEntries(repoDir: string): void;
|
|
54
54
|
export interface GitContext {
|
|
55
55
|
gitToken: string;
|
|
56
|
+
/**
|
|
57
|
+
* re-mint the git token when GitHub's git edge rejects the one we hold. the
|
|
58
|
+
* fetch path had no re-mint at all, so `checkout_pr` died unrecoverably on a
|
|
59
|
+
* bad token instance while `push_branch` recovered from the identical
|
|
60
|
+
* failure. see #1115.
|
|
61
|
+
*/
|
|
62
|
+
refreshGitToken?: ((stale: string) => Promise<string>) | undefined;
|
|
56
63
|
owner: string;
|
|
57
64
|
name: string;
|
|
58
65
|
octokit: OctokitWithPlugins;
|
|
@@ -8,7 +8,7 @@ import type { ToolContext } from "../mcp/server.ts";
|
|
|
8
8
|
* see `runStatusCheck.ts` for why a second create would leave two contradictory rows.
|
|
9
9
|
* the terminal-create fallback covers a payload with no `checkRun` (older server
|
|
10
10
|
* build mid-rolling-deploy, or a workflow driven outside Pullfrog's dispatch path).
|
|
11
|
-
* - `pullfrog-approval` stays opt-in (`
|
|
11
|
+
* - `pullfrog-approval` stays opt-in (`Repo.approvalCheck`, default off) and terminal-only:
|
|
12
12
|
* it asserts a review verdict, which only exists once a run produces one. anchored
|
|
13
13
|
* to the exact reviewed sha so a mid-run push leaves the new head unapproved until
|
|
14
14
|
* a follow-up re-review reports.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** tracked paths with staged or unstaged modifications. */
|
|
2
|
+
export declare function dirtyTrackedPaths(): Promise<Set<string>>;
|
|
3
|
+
/**
|
|
4
|
+
* discard tracked-file mods that appeared since the `before` snapshot, so the
|
|
5
|
+
* customer checkout is clean before agent tools run — any dirt makes
|
|
6
|
+
* `checkout_pr` refuse for the rest of the run. paths already dirty at snapshot
|
|
7
|
+
* time are left alone, and untracked files (`node_modules`, etc.) are never
|
|
8
|
+
* touched.
|
|
9
|
+
*
|
|
10
|
+
* attribution is by WINDOW, not by writer: every tracked path dirtied while the
|
|
11
|
+
* window was open gets reverted, whoever wrote it. a caller must therefore close
|
|
12
|
+
* its window before the agent can write, or it will discard the agent's own work
|
|
13
|
+
* (#1146 — background prep cannot make that guarantee).
|
|
14
|
+
*
|
|
15
|
+
* `actor` names the phase that owns the window and is what the log line blames.
|
|
16
|
+
*/
|
|
17
|
+
export declare function restoreDirtiedSince(params: {
|
|
18
|
+
before: Set<string>;
|
|
19
|
+
actor: string;
|
|
20
|
+
}): Promise<void>;
|