pipeline-worker 0.1.6 → 0.1.7

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.
@@ -13,5 +13,10 @@ export interface CapturedDiff {
13
13
  * common ancestor when the worktree has since been rebased onto a newer
14
14
  * origin — otherwise a 3-way merge could fail to resolve an otherwise
15
15
  * legitimate abbreviated hash.
16
+ *
17
+ * `--binary` is required so changed binary files (images, etc.) carry their
18
+ * actual base64 patch data instead of a `Binary files a/... differ` stub —
19
+ * without it, `git apply` in worktree.ts fails with "missing binary patch
20
+ * data" for any binary file in the change set.
16
21
  */
17
22
  export declare function captureDiff(repoRoot: string): Promise<CapturedDiff>;
package/dist/git/diff.js CHANGED
@@ -12,9 +12,14 @@ const execFileAsync = promisify(execFile);
12
12
  * common ancestor when the worktree has since been rebased onto a newer
13
13
  * origin — otherwise a 3-way merge could fail to resolve an otherwise
14
14
  * legitimate abbreviated hash.
15
+ *
16
+ * `--binary` is required so changed binary files (images, etc.) carry their
17
+ * actual base64 patch data instead of a `Binary files a/... differ` stub —
18
+ * without it, `git apply` in worktree.ts fails with "missing binary patch
19
+ * data" for any binary file in the change set.
15
20
  */
16
21
  export async function captureDiff(repoRoot) {
17
- const { stdout: diffText } = await execFileAsync('git', ['diff', 'HEAD', '--full-index'], {
22
+ const { stdout: diffText } = await execFileAsync('git', ['diff', 'HEAD', '--full-index', '--binary'], {
18
23
  cwd: repoRoot,
19
24
  maxBuffer: 64 * 1024 * 1024,
20
25
  });
@@ -1 +1 @@
1
- {"version":3,"file":"diff.js","sourceRoot":"","sources":["../../src/git/diff.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AAO1C;;;;;;;;;;GAUG;AACH,MAAM,CAAC,K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AAE,EAAE,GAAG,IAAI,GAAG,IAAI;KAC5B,CAAC,CAAC;IAEH,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,aAAa,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,aAAa,CAAC,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvG,MAAM,cAAc,GAAG,SAAS;SAC7B,KAAK,CAAC,IAAI,CAAC;SACX,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;SACxC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAEvC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC;AACtC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipeline-worker",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Automated git-worktree workflow: captures intent from a diff via Claude Code or GitHub Copilot CLI, runs build/lint/test, opens a GitLab MR or GitHub PR, and auto-fixes failing pipelines — with a companion forge MCP server (TOON-encoded responses).",
5
5
  "license": "MIT",
6
6
  "author": "Mohan TN <mohan.tn100@gmail.com>",