@cleocode/adapters 2026.11.19 → 2026.11.20

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.
@@ -624,6 +624,7 @@ import {
624
624
  import { homedir, tmpdir } from "node:os";
625
625
  import { dirname, isAbsolute, join, resolve } from "node:path";
626
626
  import { updateJsonConfigFile } from "@cleocode/caamp";
627
+ import { boundedExecOptions } from "@cleocode/paths";
627
628
  var HEAVY_COMMAND_HOOK_TIMEOUT_SEC = 20;
628
629
  var OPENCODE_HEAVY_COMMAND_PLUGIN = "cleo-heavy-command.js";
629
630
  var HEAVY_TOOL_WORDS = Object.freeze([
@@ -711,12 +712,16 @@ var HOOK_FILE_EXCLUDE_MARKER = "# cleo-hook: keep a per-machine heavy-command ho
711
712
  var OPENCODE_PLUGIN_FILE = `.opencode/plugins/${OPENCODE_HEAVY_COMMAND_PLUGIN}`;
712
713
  function gitOutput(projectDir, args, env = process.env) {
713
714
  try {
714
- return execFileSync("git", ["-C", projectDir, ...args], {
715
- encoding: "utf-8",
716
- stdio: ["ignore", "pipe", "ignore"],
717
- timeout: 5e3,
718
- env
719
- }).trim();
715
+ return execFileSync(
716
+ "git",
717
+ ["-C", projectDir, ...args],
718
+ boundedExecOptions({
719
+ encoding: "utf-8",
720
+ stdio: ["ignore", "pipe", "ignore"],
721
+ timeout: 5e3,
722
+ env
723
+ })
724
+ ).trim();
720
725
  } catch {
721
726
  return null;
722
727
  }
@@ -13374,15 +13379,22 @@ var OPERATIONS = [
13374
13379
  tier: 1,
13375
13380
  idempotent: true,
13376
13381
  sessionRequired: false,
13377
- requiredParams: ["taskId"],
13382
+ requiredParams: [],
13378
13383
  params: [
13379
13384
  {
13380
13385
  name: "taskId",
13381
13386
  type: "string",
13382
- required: true,
13383
- description: "Task ID whose XDG worktree should be destroyed (e.g. T9805).",
13387
+ required: false,
13388
+ description: "Task ID whose XDG worktree should be destroyed (e.g. T9805). Give it or worktreePath, not both.",
13384
13389
  cli: { positional: true }
13385
13390
  },
13391
+ {
13392
+ name: "worktreePath",
13393
+ type: "string",
13394
+ required: false,
13395
+ description: "Exact path of a registered linked worktree to destroy, for one no task id names such as a detached HEAD (T14627). CLI: --path.",
13396
+ cli: { flag: "path" }
13397
+ },
13386
13398
  {
13387
13399
  name: "force",
13388
13400
  type: "boolean",