pipeline-worker 0.1.13 → 0.1.14

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.
@@ -2,8 +2,13 @@
2
2
  * Headless GitHub Copilot CLI adapter. Flags verified against GitHub's
3
3
  * "Copilot CLI programmatic reference" docs: `-s` (suppress stats/decoration,
4
4
  * output only the agent's response), `--no-ask-user`, `--allow-all-tools`
5
- * (required for unattended fix runs). Known gaps vs the Claude adapter,
6
- * handled here:
5
+ * and `--allow-all-paths` — both required for unattended fix runs, since
6
+ * tool approval and path/directory-trust approval are separate gates in
7
+ * Copilot CLI. Without `--allow-all-paths`, every run's disposable worktree
8
+ * is a directory Copilot has never seen before, so any shell command
9
+ * touching files there (e.g. listing test projects) trips the "trust this
10
+ * directory?" prompt; with no TTY to answer it, the CLI fails with
11
+ * permission-denied instead. Known gaps vs the Claude adapter, handled here:
7
12
  * - no structured-output/JSON-schema flag -> the schema is embedded in the
8
13
  * prompt and the JSON object is extracted from the response text;
9
14
  * - no per-invocation MCP config flag -> Copilot only reads
@@ -2,8 +2,13 @@
2
2
  * Headless GitHub Copilot CLI adapter. Flags verified against GitHub's
3
3
  * "Copilot CLI programmatic reference" docs: `-s` (suppress stats/decoration,
4
4
  * output only the agent's response), `--no-ask-user`, `--allow-all-tools`
5
- * (required for unattended fix runs). Known gaps vs the Claude adapter,
6
- * handled here:
5
+ * and `--allow-all-paths` — both required for unattended fix runs, since
6
+ * tool approval and path/directory-trust approval are separate gates in
7
+ * Copilot CLI. Without `--allow-all-paths`, every run's disposable worktree
8
+ * is a directory Copilot has never seen before, so any shell command
9
+ * touching files there (e.g. listing test projects) trips the "trust this
10
+ * directory?" prompt; with no TTY to answer it, the CLI fails with
11
+ * permission-denied instead. Known gaps vs the Claude adapter, handled here:
7
12
  * - no structured-output/JSON-schema flag -> the schema is embedded in the
8
13
  * prompt and the JSON object is extracted from the response text;
9
14
  * - no per-invocation MCP config flag -> Copilot only reads
@@ -50,7 +55,7 @@ export const copilotAdapter = {
50
55
  console.error(`pipeline-worker: copilot CLI has no per-invocation model flag; ignoring the configured model "${opts.model}". ` +
51
56
  "Switch copilot's model via its own /model command or config instead.");
52
57
  }
53
- const invocation = execFileAsync('copilot', ['-s', '--no-ask-user', '--allow-all-tools'], {
58
+ const invocation = execFileAsync('copilot', ['-s', '--no-ask-user', '--allow-all-tools', '--allow-all-paths'], {
54
59
  cwd: opts.cwd,
55
60
  timeout: INVOKE_TIMEOUT_MS,
56
61
  maxBuffer: 64 * 1024 * 1024,
@@ -1 +1 @@
1
- {"version":3,"file":"copilot.js","sourceRoot":"","sources":["../../src/agent/copilot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,MAAM,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AAE1C,MAAM,iBAAiB,GAAG,OAAO,CAAC;AAElC,0FAA0F;AAC1F,SAAS,iBAAiB,CAAC,IAAY;IACrC,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAChC,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAClC,OAAO,KAAK,KAAK,CAAC,CAAC,IAAI,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACzE,CAAC;AAED,MAAM,CAAC,MAAM,cAAc,GAAiB;IAC1C,KAAK,CAAC,MAAM,CAAC,IAAwB;QACnC,IAAI,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QACzB,IAAI,IAAI,CAAC,UAAU,E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AAC,KAAM,EAAE,MAAM,CAAC,CAAC;QACpD,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,UAAU,CAAC;QAEpC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC;IAC/E,CAAC;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipeline-worker",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
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>",