pullfrog 0.1.74 → 0.1.75
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/cli.mjs +1055 -1013
- package/dist/index.js +1053 -1011
- package/dist/internal.js +1 -1
- package/dist/mcp/shell.d.ts +5 -0
- package/dist/utils/lifecycle.d.ts +13 -0
- package/package.json +1 -1
package/dist/internal.js
CHANGED
package/dist/mcp/shell.d.ts
CHANGED
|
@@ -32,6 +32,11 @@ export declare function runSandboxed(params: {
|
|
|
32
32
|
env: Record<string, string | undefined>;
|
|
33
33
|
cwd: string;
|
|
34
34
|
timeout: number;
|
|
35
|
+
/** live-stream chunks as they arrive, on top of the buffered `output`.
|
|
36
|
+
* lifecycle hooks use this to keep a long `pnpm test` visible in the
|
|
37
|
+
* workflow log instead of silent until it exits. */
|
|
38
|
+
onStdout?: (chunk: string) => void;
|
|
39
|
+
onStderr?: (chunk: string) => void;
|
|
35
40
|
}): Promise<{
|
|
36
41
|
output: string;
|
|
37
42
|
exitCode: number;
|
|
@@ -1,6 +1,19 @@
|
|
|
1
|
+
import type { ShellPermission } from "../external.ts";
|
|
1
2
|
export interface ExecuteLifecycleHookParams {
|
|
2
3
|
event: string;
|
|
3
4
|
script: string | null;
|
|
5
|
+
/**
|
|
6
|
+
* the repo's shell permission, which decides the hook's environment on the
|
|
7
|
+
* same terms as the `shell` tool: `enabled` inherits the full process env,
|
|
8
|
+
* anything else gets the default-deny allowlist (safe set + the repo's
|
|
9
|
+
* `envAllowlist`).
|
|
10
|
+
*
|
|
11
|
+
* hooks are maintainer-authored, but the code they invoke is not — after
|
|
12
|
+
* `checkout_pr` on a fork PR, a `prepushScript` of `pnpm test` runs the
|
|
13
|
+
* contributor's script and test files. so the hook is treated as untrusted
|
|
14
|
+
* execution and gets the same sandbox + env scrub as `shell`.
|
|
15
|
+
*/
|
|
16
|
+
shell: ShellPermission;
|
|
4
17
|
/**
|
|
5
18
|
* when true, after the hook runs (success or failure), discard tracked-file
|
|
6
19
|
* mods so the agent doesn't see hook-generated drift (e.g. `pnpm install`
|