@cleocode/adapters 2026.5.15 → 2026.5.17
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spawn.d.ts","sourceRoot":"","sources":["../../../src/providers/claude-code/spawn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAY3F;;;;;;;;;;;;;;GAcG;AACH,qBAAa,uBAAwB,YAAW,oBAAoB;IAClE,mDAAmD;IACnD,OAAO,CAAC,UAAU,CAAqC;IAEvD;;;;OAIG;IACG,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IASlC;;;;;;;;OAQG;IACG,KAAK,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"spawn.d.ts","sourceRoot":"","sources":["../../../src/providers/claude-code/spawn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAY3F;;;;;;;;;;;;;;GAcG;AACH,qBAAa,uBAAwB,YAAW,oBAAoB;IAClE,mDAAmD;IACnD,OAAO,CAAC,UAAU,CAAqC;IAEvD;;;;OAIG;IACG,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IASlC;;;;;;;;OAQG;IACG,KAAK,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC;IA8GxD;;;;;;;OAOG;IACG,WAAW,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAqB3C;;;;;;;OAOG;IACG,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAWnD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleocode/adapters",
|
|
3
|
-
"version": "2026.5.
|
|
3
|
+
"version": "2026.5.17",
|
|
4
4
|
"description": "Unified provider adapters for CLEO (Claude Code, OpenCode, Cursor)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"@ai-sdk/anthropic": "^3.0.69",
|
|
16
16
|
"@ai-sdk/openai": "^2.0.53",
|
|
17
17
|
"ai": "^6.0.168",
|
|
18
|
-
"@cleocode/caamp": "2026.5.
|
|
19
|
-
"@cleocode/contracts": "2026.5.
|
|
18
|
+
"@cleocode/caamp": "2026.5.17",
|
|
19
|
+
"@cleocode/contracts": "2026.5.17"
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"engines": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "^22.19.15",
|
|
31
31
|
"vitest": "^4.1.4",
|
|
32
|
-
"@cleocode/playbooks": "2026.5.
|
|
32
|
+
"@cleocode/playbooks": "2026.5.17"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|
|
@@ -111,9 +111,21 @@ export class ClaudeCodeSpawnProvider implements AdapterSpawnProvider {
|
|
|
111
111
|
};
|
|
112
112
|
|
|
113
113
|
if (context.workingDirectory) {
|
|
114
|
+
// T1759: workingDirectory is the isolation cwd from provisionIsolatedShell,
|
|
115
|
+
// not the project root. orchestrateSpawnExecute sets this via the
|
|
116
|
+
// centralized isolation utility.
|
|
114
117
|
spawnOpts.cwd = context.workingDirectory;
|
|
115
118
|
}
|
|
116
119
|
|
|
120
|
+
// T1759: Merge isolation env vars (from options.env) into the spawn
|
|
121
|
+
// environment so CLEO_WORKTREE_ROOT, CLEO_AGENT_ROLE, CLEO_WORKTREE_BRANCH,
|
|
122
|
+
// and CLEO_PROJECT_HASH are visible to the spawned agent process.
|
|
123
|
+
// Per-call options.env overrides win over process.env.
|
|
124
|
+
const optionsEnv = context.options?.env as Record<string, string> | undefined;
|
|
125
|
+
if (optionsEnv !== undefined && Object.keys(optionsEnv).length > 0) {
|
|
126
|
+
spawnOpts.env = { ...process.env, ...optionsEnv };
|
|
127
|
+
}
|
|
128
|
+
|
|
117
129
|
const child = nodeSpawn('claude', args, spawnOpts);
|
|
118
130
|
child.unref();
|
|
119
131
|
|