@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.
- package/dist/.source-stamp.json +1 -1
- package/dist/heavy-command-hook.js +20 -11
- package/dist/heavy-command-hook.js.map +1 -1
- package/dist/index.js +30 -14
- package/dist/index.js.map +1 -1
- package/dist/project-hook-delivery.d.ts.map +1 -1
- package/dist/project-hook-delivery.js +26 -16
- package/dist/project-hook-delivery.js.map +2 -2
- package/dist/providers/claude-code/index.js +21 -9
- package/dist/providers/claude-code/index.js.map +1 -1
- package/dist/providers/claude-sdk/index.js +10 -3
- package/dist/providers/claude-sdk/index.js.map +1 -1
- package/dist/providers/codex/index.js +30 -14
- package/dist/providers/codex/index.js.map +1 -1
- package/dist/providers/cursor/index.js +1 -0
- package/dist/providers/cursor/index.js.map +1 -1
- package/dist/providers/gemini-cli/index.js +10 -3
- package/dist/providers/gemini-cli/index.js.map +1 -1
- package/dist/providers/kimi/index.js +10 -3
- package/dist/providers/kimi/index.js.map +1 -1
- package/dist/providers/openai-sdk/index.js +10 -3
- package/dist/providers/openai-sdk/index.js.map +1 -1
- package/dist/providers/opencode/index.js +21 -9
- package/dist/providers/opencode/index.js.map +1 -1
- package/dist/providers/pi/index.js +10 -3
- package/dist/providers/pi/index.js.map +1 -1
- package/dist/providers/shared/heavy-command-hook-install.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/project-hook-delivery.ts +15 -10
- package/src/providers/shared/heavy-command-hook-install.ts +20 -11
|
@@ -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(
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
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: [
|
|
13382
|
+
requiredParams: [],
|
|
13378
13383
|
params: [
|
|
13379
13384
|
{
|
|
13380
13385
|
name: "taskId",
|
|
13381
13386
|
type: "string",
|
|
13382
|
-
required:
|
|
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",
|