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/internal.js CHANGED
@@ -8,7 +8,7 @@ var __export = (target, all) => {
8
8
  // package.json
9
9
  var package_default = {
10
10
  name: "pullfrog",
11
- version: "0.1.74",
11
+ version: "0.1.75",
12
12
  cliContractVersion: "1",
13
13
  type: "module",
14
14
  bin: {
@@ -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`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pullfrog",
3
- "version": "0.1.74",
3
+ "version": "0.1.75",
4
4
  "cliContractVersion": "1",
5
5
  "type": "module",
6
6
  "bin": {